2025-11-05 13:28:38 +05:30
|
|
|
#!/usr/bin/env node
|
2025-11-15 01:51:22 +05:30
|
|
|
import yargs from 'yargs';
|
|
|
|
|
import { hideBin } from 'yargs/helpers';
|
|
|
|
|
import { app } from '../dist/app.js';
|
2025-11-05 13:28:38 +05:30
|
|
|
|
2025-11-15 01:51:22 +05:30
|
|
|
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",
|
2025-11-16 20:58:31 +05:30
|
|
|
})
|
|
|
|
|
.option("no-interactive", {
|
|
|
|
|
type: "boolean",
|
|
|
|
|
description: "Do not interact with the user",
|
|
|
|
|
default: false,
|
2025-11-15 01:51:22 +05:30
|
|
|
}),
|
|
|
|
|
(argv) => {
|
|
|
|
|
app({
|
|
|
|
|
agent: argv.agent,
|
|
|
|
|
runId: argv.run_id,
|
|
|
|
|
input: argv.input,
|
2025-11-16 20:58:31 +05:30
|
|
|
noInteractive: argv.noInteractive,
|
2025-11-15 01:51:22 +05:30
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
.parse();
|