agent-orchestrator/packages/cli/src/commands
Harsh Batheja 97f914f73c feat(plugin): add kimicode agent plugin
Add @aoagents/ao-plugin-agent-kimicode implementing the Agent interface
for MoonshotAI's Kimi Code CLI. Follows the AO activity JSONL + PATH
wrapper pattern established by agent-aider/opencode, with a native-ish
signal sourced from ~/.kimi/<session>/ mtimes when present.

- Full Agent interface: getLaunchCommand (--yolo, --model, --agent-file),
  getEnvironment (AO_SESSION_ID + ~/.ao/bin PATH + GH_PATH), detectActivity,
  getActivityState (5-step cascade with mandatory JSONL entry fallback),
  isProcessRunning (tmux TTY + PID signal-0, matches `.kimi`/`uv run kimi`),
  getSessionInfo (state.json parsing), getRestoreCommand (--resume <id>
  with --continue fallback), setupWorkspaceHooks, postLaunchSetup,
  recordActivity, detect().
- Post-launch prompt delivery — kimi's `-p` implicitly enables --print and
  exits, which would break interactive supervised sessions.
- 58 unit tests covering all 7 mandatory getActivityState cases plus
  manifest, launch, env, prompt classification, process detection,
  session info extraction, restore command, and detect().
- Register in cli/src/lib/plugins.ts, detect-agent.ts, plugin-registry.json,
  cli package deps, and update user-facing docs / yaml examples.

Closes #1384
2026-04-21 04:19:31 +05:30
..
dashboard.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
doctor.ts feat(cli): install-aware ao update, startup notifier, doctor version check (#1156) 2026-04-13 11:46:26 +05:30
init.ts Simplify onboarding: absorb init + add-project into ao start 2026-03-17 01:17:33 +05:30
open.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
plugin.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
report.ts feat: report non-terminal PR workflow events (#131) 2026-04-17 21:46:57 +05:30
review-check.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
send.ts fix: fail ao send when killed session delivery is not confirmed (#1236) 2026-04-20 13:56:31 +05:30
session.ts feat(cli): filter terminated sessions from ao session ls / ao status by default (#1340) 2026-04-20 13:05:34 +05:30
setup.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
spawn.ts refactor(cli): remove lifecycle-worker subprocess, poll in-process (#1186) 2026-04-14 17:23:33 +05:30
start.ts feat(plugin): add kimicode agent plugin 2026-04-21 04:19:31 +05:30
status.ts feat(cli): filter terminated sessions from ao session ls / ao status by default (#1340) 2026-04-20 13:05:34 +05:30
update.ts feat(cli): install-aware ao update, startup notifier, doctor version check (#1156) 2026-04-13 11:46:26 +05:30
verify.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00