mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 16:36:22 +02:00
everything is an agent
This commit is contained in:
parent
2d6a647c70
commit
80dae17fd1
24 changed files with 1261 additions and 1573 deletions
|
|
@ -1,4 +1,32 @@
|
|||
#!/usr/bin/env node
|
||||
import yargs from 'yargs';
|
||||
import { hideBin } from 'yargs/helpers';
|
||||
import { app } from '../dist/app.js';
|
||||
|
||||
import { start } from '../dist/x.js';
|
||||
start();
|
||||
yargs(hideBin(process.argv))
|
||||
.command(
|
||||
"$0",
|
||||
"Run rowboatx",
|
||||
(y) => y
|
||||
.option("agent", {
|
||||
type: "string",
|
||||
description: "The agent to run",
|
||||
default: "copilot",
|
||||
})
|
||||
.option("run_id", {
|
||||
type: "string",
|
||||
description: "Continue an existing run",
|
||||
})
|
||||
.option("input", {
|
||||
type: "string",
|
||||
description: "The input to the agent",
|
||||
}),
|
||||
(argv) => {
|
||||
app({
|
||||
agent: argv.agent,
|
||||
runId: argv.run_id,
|
||||
input: argv.input,
|
||||
});
|
||||
}
|
||||
)
|
||||
.parse();
|
||||
Loading…
Add table
Add a link
Reference in a new issue