mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 02:01:29 +00:00
WP14: Create main-new.ts and cli-new.ts using AgentSession and new modes
This commit is contained in:
parent
7890fb836a
commit
e9f6de7cb8
3 changed files with 1274 additions and 10 deletions
|
|
@ -1390,16 +1390,16 @@ npx tsx src/cli-new.ts # interactive mode
|
|||
3. Manual test: `npx tsx src/cli-new.ts --mode json "hello"` works
|
||||
4. Manual test: `npx tsx src/cli-new.ts --mode rpc` works
|
||||
|
||||
- [ ] Copy main.ts to main-new.ts
|
||||
- [ ] Remove `runSingleShotMode()` from main-new.ts
|
||||
- [ ] Remove `runRpcMode()` from main-new.ts
|
||||
- [ ] Remove `executeRpcBashCommand()` from main-new.ts
|
||||
- [ ] Import and use `runPrintMode` from modes
|
||||
- [ ] Import and use `runRpcMode` from modes
|
||||
- [ ] Create `AgentSession` in main()
|
||||
- [ ] Update mode routing to use new functions
|
||||
- [ ] Create cli-new.ts
|
||||
- [ ] Verify with `npm run check`
|
||||
- [x] Copy main.ts to main-new.ts
|
||||
- [x] Remove `runSingleShotMode()` from main-new.ts
|
||||
- [x] Remove `runRpcMode()` from main-new.ts
|
||||
- [x] Remove `executeRpcBashCommand()` from main-new.ts
|
||||
- [x] Import and use `runPrintMode` from modes
|
||||
- [x] Import and use `runRpcMode` from modes
|
||||
- [x] Create `AgentSession` in main()
|
||||
- [x] Update mode routing to use new functions
|
||||
- [x] Create cli-new.ts
|
||||
- [x] Verify with `npm run check`
|
||||
- [ ] Manual test all three modes via cli-new.ts
|
||||
|
||||
---
|
||||
|
|
|
|||
10
packages/coding-agent/src/cli-new.ts
Normal file
10
packages/coding-agent/src/cli-new.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env node
|
||||
/**
|
||||
* CLI entry point for the refactored coding agent.
|
||||
* Uses main-new.ts with AgentSession and new mode modules.
|
||||
*
|
||||
* Test with: npx tsx src/cli-new.ts [args...]
|
||||
*/
|
||||
import { main } from "./main-new.js";
|
||||
|
||||
main(process.argv.slice(2));
|
||||
1254
packages/coding-agent/src/main-new.ts
Normal file
1254
packages/coding-agent/src/main-new.ts
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue