agent-rev 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/repl.js +16 -0
- package/package.json +1 -1
package/dist/commands/repl.js
CHANGED
|
@@ -720,6 +720,8 @@ function cmdHelp(fi) {
|
|
|
720
720
|
{ key: '/run orch <task>', value: 'Run only orchestrator' },
|
|
721
721
|
{ key: '/run impl <id>', value: 'Run only implementor' },
|
|
722
722
|
{ key: '/run rev <id>', value: 'Run only reviewer' },
|
|
723
|
+
{ key: '/run explorer [task]', value: 'Run only explorer' },
|
|
724
|
+
{ key: '/explorer [task]', value: 'Run explorer (shortcut)' },
|
|
723
725
|
{ key: '/models', value: 'List models for all installed CLIs' },
|
|
724
726
|
{ key: '/models <cli>', value: 'List models for a specific CLI' },
|
|
725
727
|
{ key: '/login', value: 'Login (Qwen OAuth or CLI auth)' },
|
|
@@ -1035,6 +1037,11 @@ export async function runRepl(resumeSession) {
|
|
|
1035
1037
|
const progress = await readJson(path.join(taskDir, 'progress.json'));
|
|
1036
1038
|
await engine.runReviewer(taskId, plan, progress);
|
|
1037
1039
|
}
|
|
1040
|
+
else if (args[0] === 'exp' || args[0] === 'explorer') {
|
|
1041
|
+
const task = args.slice(1).join(' ');
|
|
1042
|
+
const engine = new AgentEngine(config, dir, gCoordinatorCmd, rl, fi, handleCmd);
|
|
1043
|
+
await engine.runExplorer(task);
|
|
1044
|
+
}
|
|
1038
1045
|
else {
|
|
1039
1046
|
const task = args.join(' ');
|
|
1040
1047
|
const engine = new AgentEngine(config, dir, gCoordinatorCmd, rl, fi, handleCmd);
|
|
@@ -1042,6 +1049,15 @@ export async function runRepl(resumeSession) {
|
|
|
1042
1049
|
}
|
|
1043
1050
|
break;
|
|
1044
1051
|
}
|
|
1052
|
+
case 'explorer':
|
|
1053
|
+
case 'exp': {
|
|
1054
|
+
const dir = process.cwd();
|
|
1055
|
+
const config = await loadProjectConfig(dir);
|
|
1056
|
+
const task = args.join(' ');
|
|
1057
|
+
const engine = new AgentEngine(config, dir, gCoordinatorCmd, rl, fi, handleCmd);
|
|
1058
|
+
await engine.runExplorer(task);
|
|
1059
|
+
break;
|
|
1060
|
+
}
|
|
1045
1061
|
case 'models':
|
|
1046
1062
|
case 'model':
|
|
1047
1063
|
await withRl((rl) => cmdModels(args[0], fi, rl));
|