@sma1lboy/rove 0.9.253 → 0.9.254

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.
Files changed (110) hide show
  1. package/dist/cli/chunk-0g1me47p.js +2 -0
  2. package/dist/cli/{chunk-7hkkjx6g.js → chunk-13msr643.js} +1 -1
  3. package/dist/cli/{chunk-t6j3pmpp.js → chunk-18dpws0y.js} +1 -1
  4. package/dist/cli/{chunk-19h18xca.js → chunk-1e6jbj70.js} +1 -1
  5. package/dist/cli/{chunk-avdg2rrh.js → chunk-1yzg4hzy.js} +1 -1
  6. package/dist/cli/{chunk-yq99x0r6.js → chunk-3r8v2gza.js} +1 -1
  7. package/dist/cli/{chunk-mrtfvgb2.js → chunk-4mxn5jg6.js} +1 -1
  8. package/dist/cli/{chunk-mw35vd6g.js → chunk-4myck788.js} +1 -1
  9. package/dist/cli/{chunk-zy20hzvh.js → chunk-5a6b4kv9.js} +1 -1
  10. package/dist/cli/{chunk-xmf4053m.js → chunk-5b7pd8j5.js} +1 -1
  11. package/dist/cli/{chunk-3j1x55tc.js → chunk-5d0vb6v9.js} +1 -1
  12. package/dist/cli/{chunk-jk9b9ztf.js → chunk-5fhrns31.js} +1 -1
  13. package/dist/cli/{chunk-c3d36ryd.js → chunk-5j6z32fh.js} +1 -1
  14. package/dist/cli/{chunk-8je3dmzq.js → chunk-5s4g1bkx.js} +1 -1
  15. package/dist/cli/{chunk-3r4ekafa.js → chunk-68pcd00x.js} +1 -1
  16. package/dist/cli/{chunk-34vpdm19.js → chunk-6d5csfp4.js} +1 -1
  17. package/dist/cli/{chunk-hbq7nqnp.js → chunk-6g5wvt5m.js} +1 -1
  18. package/dist/cli/{chunk-mwm63vz3.js → chunk-6wxnkz3c.js} +8 -8
  19. package/dist/cli/{chunk-pcyatg4b.js → chunk-6zvh002j.js} +1 -1
  20. package/dist/cli/chunk-7wga6bet.js +8 -0
  21. package/dist/cli/{chunk-2nfz06mq.js → chunk-7zpkyrxy.js} +1 -1
  22. package/dist/cli/{chunk-ffjwgbck.js → chunk-80zzjcvp.js} +1 -1
  23. package/dist/cli/{chunk-0x7zcw52.js → chunk-8bd054vx.js} +1 -1
  24. package/dist/cli/{chunk-6ygwq4w5.js → chunk-9dendh71.js} +1 -1
  25. package/dist/cli/chunk-9g0vz9dk.js +209 -0
  26. package/dist/cli/{chunk-ad5gbdcf.js → chunk-ant4k6dm.js} +1 -1
  27. package/dist/cli/chunk-cm923k09.js +52 -0
  28. package/dist/cli/{chunk-sncjkw3g.js → chunk-d48g9zzm.js} +3 -3
  29. package/dist/cli/{chunk-2bmebw8q.js → chunk-d4mvprvq.js} +1 -1
  30. package/dist/cli/{chunk-02h0488p.js → chunk-ddc4t38t.js} +1 -1
  31. package/dist/cli/{chunk-dk0hffvd.js → chunk-dqprpnd6.js} +1 -1
  32. package/dist/cli/{chunk-814ktvx2.js → chunk-e5vnptx5.js} +1 -1
  33. package/dist/cli/chunk-edsm15ht.js +4 -0
  34. package/dist/cli/{chunk-v9avfsxq.js → chunk-ef7ckm5b.js} +1 -1
  35. package/dist/cli/{chunk-y33j54yr.js → chunk-fnsch8kr.js} +2 -2
  36. package/dist/cli/{chunk-vcq9hb2a.js → chunk-fwt0t2h7.js} +1 -1
  37. package/dist/cli/chunk-gqpka00s.js +30 -0
  38. package/dist/cli/{chunk-p8d9va1w.js → chunk-hqp8b49k.js} +2 -2
  39. package/dist/cli/{chunk-yjk0465m.js → chunk-hzzq6pdb.js} +1 -1
  40. package/dist/cli/{chunk-x2c8f2qz.js → chunk-j19gkhzh.js} +1 -1
  41. package/dist/cli/{chunk-s21t29qn.js → chunk-j7831wcj.js} +1 -1
  42. package/dist/cli/{chunk-mt8vtz20.js → chunk-j84zbw79.js} +2 -2
  43. package/dist/cli/chunk-j9c9tdfg.js +2 -0
  44. package/dist/cli/{chunk-67q0qw7z.js → chunk-jetsx9zr.js} +1 -1
  45. package/dist/cli/{chunk-q349ydch.js → chunk-jtpjdmb6.js} +1 -1
  46. package/dist/cli/{chunk-c4e149yb.js → chunk-jwtqe209.js} +1 -1
  47. package/dist/cli/{chunk-gt1vbz3f.js → chunk-k7ke95vy.js} +1 -1
  48. package/dist/cli/{chunk-bdvqjzwh.js → chunk-k9ahks28.js} +9 -7
  49. package/dist/cli/{chunk-tq1hrd9n.js → chunk-kwd59v51.js} +1 -1
  50. package/dist/cli/{chunk-75zg2k73.js → chunk-m0cbndc2.js} +1 -1
  51. package/dist/cli/{chunk-rm2wy5hf.js → chunk-mpdfhvgs.js} +3 -3
  52. package/dist/cli/{chunk-6k424rbf.js → chunk-mxkm0snt.js} +1 -1
  53. package/dist/cli/{chunk-nhpadsbv.js → chunk-n3wdy4z4.js} +1 -1
  54. package/dist/cli/{chunk-bk4pfjs0.js → chunk-n5xj11ps.js} +1 -1
  55. package/dist/cli/{chunk-hqzgejfj.js → chunk-p5902z3e.js} +1 -1
  56. package/dist/cli/{chunk-q1e0qqmd.js → chunk-pahcf9td.js} +1 -1
  57. package/dist/cli/{chunk-76adkzyf.js → chunk-pvah9q79.js} +1 -1
  58. package/dist/cli/{chunk-bq0xsdqx.js → chunk-pyv2ywxr.js} +1 -1
  59. package/dist/cli/{chunk-6e54q8g5.js → chunk-qkd4eweb.js} +1 -1
  60. package/dist/cli/{chunk-sk3h2pzj.js → chunk-r7q7s63y.js} +2 -2
  61. package/dist/cli/{chunk-zmw0v18d.js → chunk-rf4z7b6g.js} +1 -1
  62. package/dist/cli/{chunk-8wze6dnr.js → chunk-rn97jntv.js} +1 -1
  63. package/dist/cli/{chunk-jbqpyp76.js → chunk-rnxk3587.js} +1 -1
  64. package/dist/cli/{chunk-pwybgztt.js → chunk-s96qnht3.js} +1 -1
  65. package/dist/cli/chunk-sma961wh.js +3 -0
  66. package/dist/cli/{chunk-b18pnmsv.js → chunk-stcvcsfm.js} +1 -1
  67. package/dist/cli/{chunk-epyw87gt.js → chunk-sxhjvr0w.js} +1 -1
  68. package/dist/cli/{chunk-97vsqj97.js → chunk-sxt12set.js} +1 -1
  69. package/dist/cli/{chunk-xgq5ycyn.js → chunk-tbq3t259.js} +1 -1
  70. package/dist/cli/{chunk-hm7t9gkb.js → chunk-tewt7vre.js} +1 -1
  71. package/dist/cli/{chunk-k8dm013e.js → chunk-tnft1xw4.js} +1 -1
  72. package/dist/cli/{chunk-b3j5s2jb.js → chunk-tq6pq1ws.js} +1 -1
  73. package/dist/cli/{chunk-3dgghmjv.js → chunk-v7prawj1.js} +1 -1
  74. package/dist/cli/chunk-v9fgdd90.js +3 -0
  75. package/dist/cli/chunk-vfwbgx85.js +2 -0
  76. package/dist/cli/{chunk-qc06psqb.js → chunk-vvw1njx5.js} +1 -1
  77. package/dist/cli/{chunk-wq6pfbek.js → chunk-vzn94t0z.js} +2 -2
  78. package/dist/cli/chunk-wn2w5ar9.js +2 -0
  79. package/dist/cli/{chunk-65tbvcjj.js → chunk-wsv6tw1b.js} +1 -1
  80. package/dist/cli/{chunk-6r84zkcz.js → chunk-x40h0f1w.js} +1 -1
  81. package/dist/cli/{chunk-g3wdrhxk.js → chunk-x7ryv67y.js} +2 -2
  82. package/dist/cli/{chunk-9wkf17yd.js → chunk-x951qvk5.js} +1 -1
  83. package/dist/cli/{chunk-dkb8nj75.js → chunk-xdhs40fx.js} +1 -1
  84. package/dist/cli/{chunk-p98w5ffk.js → chunk-y330t2bt.js} +2 -2
  85. package/dist/cli/{chunk-b1mk33gy.js → chunk-yebn33mf.js} +1 -1
  86. package/dist/cli/{chunk-rpm771v5.js → chunk-ykdpg0zd.js} +8 -8
  87. package/dist/cli/index.js +4 -4
  88. package/dist/cli/rove.js +1 -1
  89. package/dist/completions/rove.bash +1 -1
  90. package/dist/completions/rove.fish +1 -1
  91. package/dist/completions/rove.zsh +1 -1
  92. package/dist/skills/rove/SKILL.md +14 -3
  93. package/dist/skills/rove/references/api-flags.md +47 -32
  94. package/dist/web/assets/{index-DmRZRttZ.js → index-BydepNFM.js} +1 -1
  95. package/dist/web/index.html +1 -1
  96. package/dist/web-ui/assets/{harness-BHiciz5A.js → harness-dYkQBfYz.js} +3 -3
  97. package/dist/web-ui/assets/{index-BkxJISAI.js → index-ByMdqeTv.js} +2 -2
  98. package/dist/web-ui/index.html +1 -1
  99. package/package.json +3 -3
  100. package/dist/cli/chunk-9g7gneek.js +0 -30
  101. package/dist/cli/chunk-9jbcfrse.js +0 -2
  102. package/dist/cli/chunk-9r6x8mh4.js +0 -8
  103. package/dist/cli/chunk-admwmjjy.js +0 -4
  104. package/dist/cli/chunk-cgy92ks5.js +0 -2
  105. package/dist/cli/chunk-n7dtvega.js +0 -2
  106. package/dist/cli/chunk-parvvj8h.js +0 -2
  107. package/dist/cli/chunk-r2pd9tv9.js +0 -3
  108. package/dist/cli/chunk-sb2xg6py.js +0 -5
  109. package/dist/cli/chunk-vx4e787s.js +0 -3
  110. package/dist/cli/chunk-zfjqy7hp.js +0 -52
package/dist/cli/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{matchPathGlob}from"./chunk-kg11c1py.js";import{failureHint}from"./chunk-3dgghmjv.js";import{switchFlag}from"./chunk-zsfyj36g.js";import{connectIfRunning}from"./chunk-ad5gbdcf.js";import"./chunk-19h18xca.js";import"./chunk-p98w5ffk.js";import{expandTilde}from"./chunk-ag3txfg2.js";import{errorMessage}from"./chunk-2brn8e1y.js";import{BUILTIN_VENDORS,coerceVendorId,isBuiltinVendor}from"./chunk-h2m7em1e.js";import{CURRENT_VERSION}from"./chunk-75zg2k73.js";import{rejectionReason}from"./chunk-3342qzve.js";import"./chunk-b31cte10.js";import"./chunk-prqeddy7.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";import"./chunk-yt15y085.js";import"./chunk-b3j5s2jb.js";import"./chunk-r2pd9tv9.js";import"./chunk-cmp64q4j.js";import"./chunk-y33j54yr.js";import"./chunk-278sc87n.js";import"./chunk-y55zpren.js";import{pathSyntax}from"./chunk-pn5ygqn6.js";import"./chunk-z7zm8h1q.js";import"./chunk-b39sdtt0.js";import"./chunk-nc46gddg.js";import{__require}from"./chunk-91sykzqq.js";import{resolve as resolve2}from"path";function debugEnabled(env){return env.ROVE_DEBUG==="1"||env.ROVE_DEBUG==="1"}function failureSubject(cliName,argv){let verb=argv[2];return verb&&!verb.startsWith("-")&&!verb.includes("/")?`${cliName} ${verb}`:cliName}function summarizeCliGitError(message,cwd){if(!/not a git repository/i.test(message))return null;return`${cwd} is not a git repository \u2014 run this inside one, or pass a repo path.`}function formatCliFailure(err,opts){let subject=failureSubject(opts.cliName,opts.argv);if(debugEnabled(opts.env))return`${subject}: ${String(err instanceof Error?err.stack??err:err)}
3
+ import{matchPathGlob}from"./chunk-kg11c1py.js";import{failureHint}from"./chunk-v7prawj1.js";import{switchFlag}from"./chunk-zsfyj36g.js";import{connectIfRunning}from"./chunk-ant4k6dm.js";import"./chunk-1e6jbj70.js";import"./chunk-y330t2bt.js";import{expandTilde}from"./chunk-ag3txfg2.js";import{errorMessage}from"./chunk-2brn8e1y.js";import{BUILTIN_VENDORS,coerceVendorId,isBuiltinVendor}from"./chunk-h2m7em1e.js";import{CURRENT_VERSION}from"./chunk-m0cbndc2.js";import{rejectionReason}from"./chunk-3342qzve.js";import"./chunk-b31cte10.js";import"./chunk-prqeddy7.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";import"./chunk-yt15y085.js";import"./chunk-tq6pq1ws.js";import"./chunk-sma961wh.js";import"./chunk-cmp64q4j.js";import"./chunk-fnsch8kr.js";import"./chunk-278sc87n.js";import"./chunk-y55zpren.js";import{pathSyntax}from"./chunk-pn5ygqn6.js";import"./chunk-z7zm8h1q.js";import"./chunk-b39sdtt0.js";import"./chunk-nc46gddg.js";import{__require}from"./chunk-91sykzqq.js";import{resolve as resolve2}from"path";function debugEnabled(env){return env.ROVE_DEBUG==="1"||env.ROVE_DEBUG==="1"}function failureSubject(cliName,argv){let verb=argv[2];return verb&&!verb.startsWith("-")&&!verb.includes("/")?`${cliName} ${verb}`:cliName}function summarizeCliGitError(message,cwd){if(!/not a git repository/i.test(message))return null;return`${cwd} is not a git repository \u2014 run this inside one, or pass a repo path.`}function formatCliFailure(err,opts){let subject=failureSubject(opts.cliName,opts.argv);if(debugEnabled(opts.env))return`${subject}: ${String(err instanceof Error?err.stack??err:err)}
4
4
  ${failureHint(err,opts.cliName)}`;let raw=errorMessage(err),git=summarizeCliGitError(raw,opts.cwd);return`${subject}: ${git??`${raw}
5
- ${failureHint(err,opts.cliName)}`}`}var DYNAMIC_COMMANDS=new Map([["completions",async(args)=>{let{runCompletionsSubcommand}=await import("./chunk-sk3h2pzj.js");await runCompletionsSubcommand(args)}],["export",async(args)=>{let{runExportSubcommand}=await import("./chunk-wbtebbrv.js");await runExportSubcommand(args)}],["repo",async(args)=>{let{runRepoSubcommand}=await import("./chunk-j26zqrnq.js");await runRepoSubcommand(args)}],["api",async(args)=>{let{runApiSubcommand}=await import("./chunk-9jbcfrse.js");await runApiSubcommand(args)}],["update",async(args)=>{let{runUpdateSubcommand}=await import("./chunk-mt8vtz20.js");await runUpdateSubcommand(args)}],["theme",async(args)=>{let{runThemeSubcommand}=await import("./chunk-7cd1epfw.js");await runThemeSubcommand(args)}],["feedback",async(args)=>{let{runFeedbackSubcommand}=await import("./chunk-dkb8nj75.js");await runFeedbackSubcommand(args)}],["daemon",async(args)=>{let{runDaemonSubcommand}=await import("./chunk-g3wdrhxk.js");await runDaemonSubcommand(args)}],["machine",async(args)=>{let{runMachineSubcommand}=await import("./chunk-bk4pfjs0.js");await runMachineSubcommand(args)}],["weixin",async(args)=>{let{runChannelCli}=await import("./chunk-k8dm013e.js");await runChannelCli("weixin",args)}],["doctor",async(args)=>{let{runDoctorSubcommand}=await import("./chunk-hbq7nqnp.js");await runDoctorSubcommand(args)}],["config",async(args)=>{let{runConfigSubcommand}=await import("./chunk-yshp8cmx.js");await runConfigSubcommand(args)}],["reset",async(args)=>{let{runResetSubcommand}=await import("./chunk-xmf4053m.js");await runResetSubcommand(args)}],["pty-host",async(args)=>{let{runPtyHostSubcommand}=await import("./chunk-7hkkjx6g.js");await runPtyHostSubcommand(args)}],["skill",async(args)=>{let{runSkillSubcommand}=await import("./chunk-sncjkw3g.js");await runSkillSubcommand(args)}],["plugin",async(args)=>{let{runPluginSubcommand}=await import("./chunk-rm2wy5hf.js");await runPluginSubcommand(args)}],["hook",async(args)=>{let{runHookSubcommand}=await import("./chunk-34vpdm19.js");await runHookSubcommand(args)}]]);import{statSync}from"fs";import{resolve}from"path";async function openLocalOrchestrator(){let{TaskIndexStore}=await import("./chunk-v8s0s21v.js"),{GitWorktreeManager}=await import("./chunk-qb6ktr8a.js"),{Orchestrator}=await import("./chunk-cjxvb9vg.js"),store=new TaskIndexStore;return await store.load(),new Orchestrator({store,worktrees:new GitWorktreeManager})}async function withDaemonOrLocal(bridge){let client=await connectIfRunning();if(client)try{return await bridge.daemon(client)}finally{client.close()}let orch=await openLocalOrchestrator();return bridge.local(orch)}function isPathLikeArg(arg){return arg==="."||arg===".."||arg.startsWith("./")||arg.startsWith("../")||arg.startsWith(".\\")||arg.startsWith("..\\")||pathSyntax(arg).isAbsolute(arg)||arg.startsWith("/")||arg==="~"||arg.startsWith("~/")||arg.startsWith("~\\")}async function projectRootFor(dir){let{isGitRepo,resolveRepoRoot}=await import("./chunk-afwh7as3.js"),{projectRejection}=await import("./chunk-4z01vg3t.js"),top=resolveRepoRoot(dir);if(top!==dir)return null;return projectRejection(top,isGitRepo,"explicit")?null:top}async function runOpenDirectory(arg){let dir=resolve(process.cwd(),expandTilde(arg)),isDir=!1;try{isDir=statSync(dir).isDirectory()}catch{isDir=!1}if(!isDir)process.stderr.write(`${ROVE_PRODUCT_NAME}: "${arg}" is not a directory (resolved to ${dir}).
6
- `),process.exit(1);let projectRoot=await projectRootFor(dir);await withDaemonOrLocal({daemon:async(client)=>{let taskId;if(projectRoot)taskId=(await client.request("task.ensureMain",{repo:projectRoot})).task.id;else taskId=(await client.request("task.openDir",{dir})).taskId;await client.request("task.setActive",{taskId})},local:async(orch)=>{let task=projectRoot?await orch.ensureMainTask(projectRoot):await orch.openDirectoryTask({dir}),{writeLastActiveTaskId}=await import("./chunk-dx72asyw.js");writeLastActiveTaskId(String(task.id))}});let{publishRoveTerminalTitle}=await import("./chunk-g8wrdp7n.js");publishRoveTerminalTitle();let{launchTui}=await import("./chunk-jk9b9ztf.js");await launchTui()}function topLevelUsage(cliName=ROVE_PRODUCT_NAME){return[`${cliName} ${CURRENT_VERSION}`,"",`Usage: ${cliName} [command] [options]`,"","Run with no command to launch PureTUI.",`Run \`${cliName} .\` (or \`${cliName} <path>\`) to open a directory as a standalone task.`,"","Commands:"," completions <shell> Generate shell completion script (bash/zsh/fish)"," add [path] Save a repo path for the new-task picker"," remove [path] Forget a saved project (inverse of add; non-destructive)"," adopt [glob] Import existing git worktrees as tasks"," export [--csv|--json] Print the task list (json/csv/table; daemon-free)"," repo <verb> Per-repo init script + first prompt (show|set|unset)",` api <verb> Scriptable RPC surface for agents (see \`${cliName} api --help\`)`," daemon <verb> Manage the daemon (start|stop|status|restart)"," machine <verb> Other computers running Rove (add|doctor|remove|list)"," weixin <verb> Talk to Rove from WeChat (login|logout|status|allow|deny)"," doctor [--report|--fix] Diagnose daemon/PTY/engines/git; --fix walks the remedies",` config [--path] Open ${cliName}'s config file (state.json) in your editor`," reset [--hard] Stop runtimes; optionally wipe task/UI state"," theme <verb> Manage user themes (list|add|remove)",` skill <verb> Install the ${cliName} agent skill (install|status|command|print)`," plugin <verb> Install and run plugins (install|link|list|action|\u2026)"," feedback Send feedback to GitHub Discussions",` update [version|channel|list] Self-update ${cliName}, switch channel, or list versions`,"","Options:"," -v, --version Print version"," -h, --help Print this help"," --skill Print the agent skill file and exit"," --web [bridge flags] Serve the browser client on 127.0.0.1 and print its link"].join(`
5
+ ${failureHint(err,opts.cliName)}`}`}var DYNAMIC_COMMANDS=new Map([["completions",async(args)=>{let{runCompletionsSubcommand}=await import("./chunk-r7q7s63y.js");await runCompletionsSubcommand(args)}],["export",async(args)=>{let{runExportSubcommand}=await import("./chunk-wbtebbrv.js");await runExportSubcommand(args)}],["repo",async(args)=>{let{runRepoSubcommand}=await import("./chunk-j26zqrnq.js");await runRepoSubcommand(args)}],["api",async(args)=>{let{runApiSubcommand}=await import("./chunk-0g1me47p.js");await runApiSubcommand(args)}],["update",async(args)=>{let{runUpdateSubcommand}=await import("./chunk-j84zbw79.js");await runUpdateSubcommand(args)}],["theme",async(args)=>{let{runThemeSubcommand}=await import("./chunk-7cd1epfw.js");await runThemeSubcommand(args)}],["feedback",async(args)=>{let{runFeedbackSubcommand}=await import("./chunk-xdhs40fx.js");await runFeedbackSubcommand(args)}],["daemon",async(args)=>{let{runDaemonSubcommand}=await import("./chunk-x7ryv67y.js");await runDaemonSubcommand(args)}],["machine",async(args)=>{let{runMachineSubcommand}=await import("./chunk-n5xj11ps.js");await runMachineSubcommand(args)}],["weixin",async(args)=>{let{runChannelCli}=await import("./chunk-tnft1xw4.js");await runChannelCli("weixin",args)}],["doctor",async(args)=>{let{runDoctorSubcommand}=await import("./chunk-6g5wvt5m.js");await runDoctorSubcommand(args)}],["config",async(args)=>{let{runConfigSubcommand}=await import("./chunk-yshp8cmx.js");await runConfigSubcommand(args)}],["reset",async(args)=>{let{runResetSubcommand}=await import("./chunk-5b7pd8j5.js");await runResetSubcommand(args)}],["pty-host",async(args)=>{let{runPtyHostSubcommand}=await import("./chunk-13msr643.js");await runPtyHostSubcommand(args)}],["skill",async(args)=>{let{runSkillSubcommand}=await import("./chunk-d48g9zzm.js");await runSkillSubcommand(args)}],["plugin",async(args)=>{let{runPluginSubcommand}=await import("./chunk-mpdfhvgs.js");await runPluginSubcommand(args)}],["hook",async(args)=>{let{runHookSubcommand}=await import("./chunk-6d5csfp4.js");await runHookSubcommand(args)}]]);import{statSync}from"fs";import{resolve}from"path";async function openLocalOrchestrator(){let{TaskIndexStore}=await import("./chunk-v8s0s21v.js"),{GitWorktreeManager}=await import("./chunk-qb6ktr8a.js"),{Orchestrator}=await import("./chunk-cjxvb9vg.js"),store=new TaskIndexStore;return await store.load(),new Orchestrator({store,worktrees:new GitWorktreeManager})}async function withDaemonOrLocal(bridge){let client=await connectIfRunning();if(client)try{return await bridge.daemon(client)}finally{client.close()}let orch=await openLocalOrchestrator();return bridge.local(orch)}function isPathLikeArg(arg){return arg==="."||arg===".."||arg.startsWith("./")||arg.startsWith("../")||arg.startsWith(".\\")||arg.startsWith("..\\")||pathSyntax(arg).isAbsolute(arg)||arg.startsWith("/")||arg==="~"||arg.startsWith("~/")||arg.startsWith("~\\")}async function projectRootFor(dir){let{isGitRepo,resolveRepoRoot}=await import("./chunk-afwh7as3.js"),{projectRejection}=await import("./chunk-4z01vg3t.js"),top=resolveRepoRoot(dir);if(top!==dir)return null;return projectRejection(top,isGitRepo,"explicit")?null:top}async function runOpenDirectory(arg){let dir=resolve(process.cwd(),expandTilde(arg)),isDir=!1;try{isDir=statSync(dir).isDirectory()}catch{isDir=!1}if(!isDir)process.stderr.write(`${ROVE_PRODUCT_NAME}: "${arg}" is not a directory (resolved to ${dir}).
6
+ `),process.exit(1);let projectRoot=await projectRootFor(dir);await withDaemonOrLocal({daemon:async(client)=>{let taskId;if(projectRoot)taskId=(await client.request("task.ensureMain",{repo:projectRoot})).task.id;else taskId=(await client.request("task.openDir",{dir})).taskId;await client.request("task.setActive",{taskId})},local:async(orch)=>{let task=projectRoot?await orch.ensureMainTask(projectRoot):await orch.openDirectoryTask({dir}),{writeLastActiveTaskId}=await import("./chunk-dx72asyw.js");writeLastActiveTaskId(String(task.id))}});let{publishRoveTerminalTitle}=await import("./chunk-g8wrdp7n.js");publishRoveTerminalTitle();let{launchTui}=await import("./chunk-5fhrns31.js");await launchTui()}function topLevelUsage(cliName=ROVE_PRODUCT_NAME){return[`${cliName} ${CURRENT_VERSION}`,"",`Usage: ${cliName} [command] [options]`,"","Run with no command to launch PureTUI.",`Run \`${cliName} .\` (or \`${cliName} <path>\`) to open a directory as a standalone task.`,"","Commands:"," completions <shell> Generate shell completion script (bash/zsh/fish)"," add [path] Save a repo path for the new-task picker"," remove [path] Forget a saved project (inverse of add; non-destructive)"," adopt [glob] Import existing git worktrees as tasks"," export [--csv|--json] Print the task list (json/csv/table; daemon-free)"," repo <verb> Per-repo init script + first prompt (show|set|unset)",` api <verb> Scriptable RPC surface for agents (see \`${cliName} api --help\`)`," daemon <verb> Manage the daemon (start|stop|status|restart)"," machine <verb> Other computers running Rove (add|doctor|remove|list)"," weixin <verb> Talk to Rove from WeChat (login|logout|status|allow|deny)"," doctor [--report|--fix] Diagnose daemon/PTY/engines/git; --fix walks the remedies",` config [--path] Open ${cliName}'s config file (state.json) in your editor`," reset [--hard] Stop runtimes; optionally wipe task/UI state"," theme <verb> Manage user themes (list|add|remove)",` skill <verb> Install the ${cliName} agent skill (install|status|command|print)`," plugin <verb> Install and run plugins (install|link|list|action|\u2026)"," feedback Send feedback to GitHub Discussions",` update [version|channel|list] Self-update ${cliName}, switch channel, or list versions`,"","Options:"," -v, --version Print version"," -h, --help Print this help"," --skill Print the agent skill file and exit"," --web [bridge flags] Serve the browser client on 127.0.0.1 and print its link"].join(`
7
7
  `)}var CLI_NAME=ROVE_PRODUCT_NAME,ADD_USAGE=[`Usage: ${CLI_NAME} add [path]`,` ${CLI_NAME} add --remote --host <host> --user <user> --path <basePath> [--port N] [--key [path] | --password]`,"","Save a repo for the new-task picker. With --remote, register an SSH-backed","project whose worktrees live on <host>; engine launch over SSH is pending.",""].join(`
8
8
  `);async function runAddSubcommand(rest){let arg=rest[0];if(arg==="--help"||arg==="-h"||arg==="help"){process.stdout.write(ADD_USAGE);return}if(arg==="--remote"){let{runAddRemote}=await import("./chunk-xpxxgzw9.js");await runAddRemote(rest.slice(1));return}if(arg?.startsWith("-"))process.stderr.write(`${CLI_NAME} add: unknown flag "${arg}"
9
9
 
@@ -26,4 +26,4 @@ ${ADOPT_USAGE}
26
26
  pass a path glob to adopt, e.g. ${CLI_NAME} adopt '${repo}/*' --yes`);return}let matched=worktrees.filter(isMatch);if(matched.length===0){console.log(`
27
27
  no worktrees match glob ${JSON.stringify(glob)}`);return}if(!yes){console.log(`
28
28
  ${matched.length} worktree(s) match \u2014 re-run with --yes to adopt them`);return}await adoptWorktreesInto(orch,repo,matched,vendor),console.log(`done \u2014 adopted ${matched.length} worktree(s)`)}function printTopLevelUsage(out){out.write(`${topLevelUsage()}
29
- `)}var COMMANDS=new Map([["add",runAddSubcommand],["remove",runRemoveSubcommand],["adopt",runAdoptSubcommand],...DYNAMIC_COMMANDS]);async function main(){let[,,...rawArgs]=process.argv,[subcommand,...rest]=rawArgs;if(subcommand==="--version"||subcommand==="-v"||subcommand==="version"){let{CURRENT_VERSION:CURRENT_VERSION2}=await import("./chunk-8wze6dnr.js");console.log(`${CLI_NAME} ${CURRENT_VERSION2}`);return}if(subcommand==="--help"||subcommand==="-h"||subcommand==="help"){printTopLevelUsage(process.stdout);return}if(subcommand==="--skill"){let{runSkillSubcommand}=await import("./chunk-sncjkw3g.js");await runSkillSubcommand(["print"]);return}if(subcommand==="--web"){let{runWebSubcommand}=await import("./chunk-76adkzyf.js");await runWebSubcommand(rest);return}let handler=subcommand!==void 0?COMMANDS.get(subcommand):void 0;if(handler){await handler(rest);return}if(subcommand!==void 0&&isPathLikeArg(subcommand)){await runOpenDirectory(subcommand);return}if(subcommand!==void 0)console.error(`${CLI_NAME}: unknown command '${subcommand}'`),printTopLevelUsage(process.stderr),process.exit(2);let{publishRoveTerminalTitle}=await import("./chunk-g8wrdp7n.js");publishRoveTerminalTitle();let{launchTui}=await import("./chunk-jk9b9ztf.js");await launchTui()}main().catch((err)=>{console.error(formatCliFailure(err,{cliName:CLI_NAME,argv:process.argv,cwd:process.cwd(),env:process.env})),process.exit(1)});
29
+ `)}var COMMANDS=new Map([["add",runAddSubcommand],["remove",runRemoveSubcommand],["adopt",runAdoptSubcommand],...DYNAMIC_COMMANDS]);async function main(){let[,,...rawArgs]=process.argv,[subcommand,...rest]=rawArgs;if(subcommand==="--version"||subcommand==="-v"||subcommand==="version"){let{CURRENT_VERSION:CURRENT_VERSION2}=await import("./chunk-rn97jntv.js");console.log(`${CLI_NAME} ${CURRENT_VERSION2}`);return}if(subcommand==="--help"||subcommand==="-h"||subcommand==="help"){printTopLevelUsage(process.stdout);return}if(subcommand==="--skill"){let{runSkillSubcommand}=await import("./chunk-d48g9zzm.js");await runSkillSubcommand(["print"]);return}if(subcommand==="--web"){let{runWebSubcommand}=await import("./chunk-pvah9q79.js");await runWebSubcommand(rest);return}let handler=subcommand!==void 0?COMMANDS.get(subcommand):void 0;if(handler){await handler(rest);return}if(subcommand!==void 0&&isPathLikeArg(subcommand)){await runOpenDirectory(subcommand);return}if(subcommand!==void 0)console.error(`${CLI_NAME}: unknown command '${subcommand}'`),printTopLevelUsage(process.stderr),process.exit(2);let{publishRoveTerminalTitle}=await import("./chunk-g8wrdp7n.js");publishRoveTerminalTitle();let{launchTui}=await import("./chunk-5fhrns31.js");await launchTui()}main().catch((err)=>{console.error(formatCliFailure(err,{cliName:CLI_NAME,argv:process.argv,cwd:process.cwd(),env:process.env})),process.exit(1)});
package/dist/cli/rove.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{join as n}from"node:path";import{createInterface as a}from"node:readline/promises";import{pathToFileURL as ss}from"node:url";import{spawnSync as Q}from"node:child_process";import{constants as V,accessSync as R}from"node:fs";import{homedir as e}from"node:os";import{basename as I,delimiter as U,dirname as o,join as y}from"node:path";import{fileURLToPath as T}from"node:url";var H={$schema:"https://json.schemastore.org/package.json",name:"@sma1lboy/rove",version:"0.9.253",description:"Rove — the agent multiplexer for your terminal. Run coding agents on parallel tasks with isolated worktrees and persistent sessions.",keywords:["terminal","tui","cli","multiplexer","ai-agents","coding-agent","ai-coding-assistant","agentic-ai","parallel-agents","git-worktree","claude-code","codex","llm","developer-tools"],type:"module",packageManager:"bun@1.3.13",bin:{rove:"dist/cli/rove.js"},files:["dist/cli","dist/completions","dist/web","dist/web-ui","dist/skills","dist/*.wav","README.md","LICENSE"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/Sma1lboy/rove.git"},homepage:"https://rove.run",bugs:{url:"https://github.com/Sma1lboy/rove/issues"},engines:{bun:">=1.3.11"},scripts:{dev:"ROVE_DEV=1 bun --conditions=browser ./src/cli/rove.ts","dev:mock":"ROVE_DEV=1 bun ./src/tui-react/mock/host.tsx","dev:sandbox":"bun run scripts/dev-sandbox.ts run","dev:sandbox:reset":"bun run scripts/dev-sandbox.ts reset",build:"bun run scripts/build.ts","build:rubric":"bun run scripts/build-tier-rubric.ts",compile:"bun run scripts/compile.ts",typecheck:"tsc --noEmit","check-i18n":"bun run scripts/check-i18n.ts",test:"bun run test:fast && bun run test:socket","perf:golden":"bun scripts/perf-golden.ts","pty:soak":"bun scripts/pty-soak.ts","test:fast":"vitest run --passWithNoTests --minWorkers=1 --maxWorkers=8","test:socket":"ROVE_INCLUDE_SOCKET=1 vitest run test/daemon --pool forks --minWorkers=1 --maxWorkers=4 --passWithNoTests","test:socket:coverage":"ROVE_INCLUDE_SOCKET=1 ROVE_COVERAGE_DAEMON=1 vitest run test/daemon --coverage --pool forks --minWorkers=1 --maxWorkers=4 --passWithNoTests","test:behavior":"ROVE_INCLUDE_BEHAVIOR=1 vitest run test/behavior --pool forks --minWorkers=1 --maxWorkers=1 --retry=2 --passWithNoTests","test:render":"bun scripts/render-track.mjs",coverage:"vitest run --coverage --passWithNoTests",bench:"vitest bench --run",lint:"biome check .",knip:"knip-bun",postinstall:"bun run scripts/check-preview-deps.ts || true",prepublishOnly:"bun run typecheck && bun run build","plugin-sandbox":"bun run scripts/plugin-sandbox.ts"},"//":"biome.json + bunfig.toml live at the monorepo root since they apply repo-wide; bun.lock also lives at root (workspace-shared).",dependencies:{"@ansi-tools/parser":"^1.0.15","@opentui/core":"0.4.3","@opentui/react":"0.4.3","@xterm/addon-serialize":"^0.14.0","@xterm/addon-unicode11":"^0.9.0","@xterm/headless":"^6.0.0","node-pty":"^1.1.0",react:"^19.2.8","smol-toml":"^1.7.1",ws:"^8.21.3"},devDependencies:{"@biomejs/biome":"1.9.4","@sma1lboy/rove-daemon":"0.7.22","@tsconfig/bun":"1.0.11","@types/bun":"1.3.14","@types/node":"25.6.2","@types/react":"^19.2.0","@vitest/coverage-v8":"2.1.9",knip:"^6.14.2","react-devtools-core":"^7.0.1","rove-bridge":"0.0.14","rove-weixin":"0.0.14",typescript:"5.8.2",vitest:"2.1.9"},trustedDependencies:[]};var q="rove";var k=q;var z="ROVE_BUN",_="ROVE_NO_BUN_BOOTSTRAP",F="ROVE_SKIP_BUN_CHECK",$=H.engines.bun.match(/\d+\.\d+\.\d+/)?.[0]??"0.0.0",L=(s)=>{try{return R(s,V.X_OK),!0}catch{return!1}},B=(s)=>s==="win32"?"bun.exe":"bun",f=(s)=>{let t=Q(s,["--version"],{encoding:"utf8",timeout:5000});if(t.error||t.status!==0)return null;return t.stdout?.split(`
2
+ import{join as n}from"node:path";import{createInterface as a}from"node:readline/promises";import{pathToFileURL as ss}from"node:url";import{spawnSync as Q}from"node:child_process";import{constants as V,accessSync as R}from"node:fs";import{homedir as e}from"node:os";import{basename as I,delimiter as U,dirname as o,join as y}from"node:path";import{fileURLToPath as T}from"node:url";var H={$schema:"https://json.schemastore.org/package.json",name:"@sma1lboy/rove",version:"0.9.254",description:"Rove — the agent multiplexer for your terminal. Run coding agents on parallel tasks with isolated worktrees and persistent sessions.",keywords:["terminal","tui","cli","multiplexer","ai-agents","coding-agent","ai-coding-assistant","agentic-ai","parallel-agents","git-worktree","claude-code","codex","llm","developer-tools"],type:"module",packageManager:"bun@1.3.13",bin:{rove:"dist/cli/rove.js"},files:["dist/cli","dist/completions","dist/web","dist/web-ui","dist/skills","dist/*.wav","README.md","LICENSE"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/Sma1lboy/rove.git"},homepage:"https://rove.run",bugs:{url:"https://github.com/Sma1lboy/rove/issues"},engines:{bun:">=1.3.11"},scripts:{dev:"ROVE_DEV=1 bun --conditions=browser ./src/cli/rove.ts","dev:mock":"ROVE_DEV=1 bun ./src/tui-react/mock/host.tsx","dev:sandbox":"bun run scripts/dev-sandbox.ts run","dev:sandbox:reset":"bun run scripts/dev-sandbox.ts reset",build:"bun run scripts/build.ts","build:rubric":"bun run scripts/build-tier-rubric.ts",compile:"bun run scripts/compile.ts",typecheck:"tsc --noEmit","check-i18n":"bun run scripts/check-i18n.ts",test:"bun run test:fast && bun run test:socket","perf:golden":"bun scripts/perf-golden.ts","pty:soak":"bun scripts/pty-soak.ts","test:fast":"vitest run --passWithNoTests --minWorkers=1 --maxWorkers=8","test:socket":"ROVE_INCLUDE_SOCKET=1 vitest run test/daemon --pool forks --minWorkers=1 --maxWorkers=4 --passWithNoTests","test:socket:coverage":"ROVE_INCLUDE_SOCKET=1 ROVE_COVERAGE_DAEMON=1 vitest run test/daemon --coverage --pool forks --minWorkers=1 --maxWorkers=4 --passWithNoTests","test:behavior":"ROVE_INCLUDE_BEHAVIOR=1 vitest run test/behavior --pool forks --minWorkers=1 --maxWorkers=1 --retry=2 --passWithNoTests","test:render":"bun scripts/render-track.mjs",coverage:"vitest run --coverage --passWithNoTests",bench:"vitest bench --run",lint:"biome check .",knip:"knip-bun",postinstall:"bun run scripts/check-preview-deps.ts || true",prepublishOnly:"bun run typecheck && bun run build","plugin-sandbox":"bun run scripts/plugin-sandbox.ts"},"//":"biome.json + bunfig.toml live at the monorepo root since they apply repo-wide; bun.lock also lives at root (workspace-shared).",dependencies:{"@ansi-tools/parser":"^1.0.15","@opentui/core":"0.4.3","@opentui/react":"0.4.3","@xterm/addon-serialize":"^0.14.0","@xterm/addon-unicode11":"^0.9.0","@xterm/headless":"^6.0.0","node-pty":"^1.1.0",react:"^19.2.8","smol-toml":"^1.7.1",ws:"^8.21.3"},devDependencies:{"@biomejs/biome":"1.9.4","@sma1lboy/rove-daemon":"0.7.22","@tsconfig/bun":"1.0.11","@types/bun":"1.3.14","@types/node":"25.6.2","@types/react":"^19.2.0","@vitest/coverage-v8":"2.1.9",knip:"^6.14.2","react-devtools-core":"^7.0.1","rove-bridge":"0.0.15","rove-weixin":"0.0.15",typescript:"5.8.2",vitest:"2.1.9"},trustedDependencies:[]};var q="rove";var k=q;var z="ROVE_BUN",_="ROVE_NO_BUN_BOOTSTRAP",F="ROVE_SKIP_BUN_CHECK",$=H.engines.bun.match(/\d+\.\d+\.\d+/)?.[0]??"0.0.0",L=(s)=>{try{return R(s,V.X_OK),!0}catch{return!1}},B=(s)=>s==="win32"?"bun.exe":"bun",f=(s)=>{let t=Q(s,["--version"],{encoding:"utf8",timeout:5000});if(t.error||t.status!==0)return null;return t.stdout?.split(`
3
3
  `)[0]?.trim()??""};function J(s){return s.trim().match(/^v?(\d+\.\d+\.\d+)/)?.[1]??null}function X(s,t=$){let c=J(s),W=J(t);if(!c||!W)return!0;let b=c.split(".").map(Number),g=W.split(".").map(Number);for(let x=0;x<3;x++){let i=b[x]??0,r=g[x]??0;if(i!==r)return i>r}return!0}function Y(s=process.env){return s[F]==="1"}function A(s={}){let t=s.env??process.env,c=s.platform??process.platform,W=s.home??t.HOME??t.USERPROFILE??e(),b=B(c),g=[],x=t[z]?.trim();if(x)g.push(x);for(let G of(t.PATH??t.Path??"").split(U))if(G)g.push(y(G,b));let i=t.BUN_INSTALL?.trim();if(i)g.push(y(i,"bin",b));if(W)g.push(y(W,".bun","bin",b));let r=s.launcherDir;if(r)g.push(y(r,"..","..","node_modules","bun","bin",b)),g.push(y(r,"..","..","..","bun","bin",b));return g}function N(s={}){let t=s.isExecutable??L;return A(s).find((c)=>t(c))??null}function Z(s={}){let t=s.isExecutable??L,c=s.bunVersionOf??f;if(Y(s.env??process.env))return{bun:N(s),stale:null,unusable:null};let W=null,b=null;for(let g of A(s)){if(!t(g))continue;let x=c(g);if(x===null){b??=g;continue}if(X(x))return{bun:g,stale:W,unusable:b};W??={path:g,version:J(x)??x}}return{bun:null,stale:W,unusable:b}}function h(s){return o(T(s))}function C(s){return I(T(s)).replace(/\.[cm]?[jt]s$/,"")}function u(s=process.platform){return s==="win32"?["powershell","-NoProfile","-Command","irm bun.sh/install.ps1 | iex"]:["bash","-c","curl -fsSL https://bun.sh/install | bash"]}function D(s=k,t=process.platform){let c=t==="win32"?'powershell -c "irm bun.sh/install.ps1 | iex"':"curl -fsSL https://bun.sh/install | bash";return[`${s}: Rove runs on the Bun runtime, and no Bun was found on this machine.`,"","Install Bun, then run this command again:",` ${c}`," npm install -g bun # any platform, if you already have npm","","Or install Bun and Rove together in one step:"," curl -fsSL https://rove.run/install.sh | sh","",`Already have Bun somewhere unusual? Point Rove at it: ${z}=/path/to/bun`,""].join(`
4
4
  `)}function j(s,t,c=k){return[`${c}: this machine's Bun is too old for Rove — found ${t} at ${s}, need ${$} or newer.`,"","Rove's terminals are built on Bun's PTY API. An older Bun ignores it silently,","so every terminal and engine tab would open empty and stay empty.","","Upgrade Bun, then run this command again:"," bun upgrade # Bun installed itself (~/.bun)"," brew upgrade bun # Homebrew"," npm install -g bun@latest # npm-managed Bun","",`Have a newer Bun elsewhere? Point Rove at it: ${z}=/path/to/bun`,`Run on this one anyway (unsupported, terminals will be blank): ${F}=1`,""].join(`
5
5
  `)}function v(s,t=k){return[`${t}: the Bun at ${s} could not be run — \`${s} --version\` failed or never returned.`,"","Rove skipped it rather than starting through it, which would hang or fail","with a message from that binary instead of this one.","","Reinstall Bun, then run this command again:"," curl -fsSL https://bun.sh/install | bash","",`Have a working Bun elsewhere? Point Rove at it: ${z}=/path/to/bun`,""].join(`
@@ -12,7 +12,7 @@ _rove() {
12
12
  fi
13
13
  if [[ ${COMP_CWORD} -eq 2 ]]; then
14
14
  case "${prev}" in
15
- api) COMPREPLY=( $(compgen -W "schema engine-list list get-task pty-list collect context digest agent-turns inspect read-output watch deliveries add send dispatch interrupt note note-list note-delete pane-open pane-close pane-graphics tab-close tab-new tab-split notify prompt engine-report row-token set-active report gate-raise gate-answer gate-withdraw gates feedback issue-list issue-create issue-update issue-delete routine-list routine-create routine-update routine-delete routine-run-now routine-respond routine-runs workitem-list workitem-start update land delete ensure-worktree remove-worktree discover-adoptable adopt" -- "${cur}") ) ;;
15
+ api) COMPREPLY=( $(compgen -W "schema engine-list list get-task pty-list collect context digest agent-turns inspect read-output watch deliveries should-run add send dispatch interrupt note note-list note-delete pane-open pane-close pane-graphics tab-close tab-new tab-split notify prompt engine-report row-token set-active report attention-dismiss gate-raise gate-answer gate-withdraw gates feedback issue-list issue-create issue-update issue-delete routine-list routine-create routine-update routine-delete routine-run-now routine-respond routine-runs workitem-list workitem-start update land delete ensure-worktree remove-worktree discover-adoptable adopt" -- "${cur}") ) ;;
16
16
  daemon) COMPREPLY=( $(compgen -W "status start stop restart" -- "${cur}") ) ;;
17
17
  machine) COMPREPLY=( $(compgen -W "add doctor remove list" -- "${cur}") ) ;;
18
18
  plugin) COMPREPLY=( $(compgen -W "install link list search outdated update enable disable unlink uninstall config-dir log action pane" -- "${cur}") ) ;;
@@ -19,7 +19,7 @@ complete -c rove -f -n __fish_use_subcommand -a skill
19
19
  complete -c rove -f -n __fish_use_subcommand -a plugin
20
20
  complete -c rove -f -n __fish_use_subcommand -a feedback
21
21
  complete -c rove -f -n __fish_use_subcommand -a update
22
- complete -c rove -f -n "__fish_seen_subcommand_from api" -a "schema engine-list list get-task pty-list collect context digest agent-turns inspect read-output watch deliveries add send dispatch interrupt note note-list note-delete pane-open pane-close pane-graphics tab-close tab-new tab-split notify prompt engine-report row-token set-active report gate-raise gate-answer gate-withdraw gates feedback issue-list issue-create issue-update issue-delete routine-list routine-create routine-update routine-delete routine-run-now routine-respond routine-runs workitem-list workitem-start update land delete ensure-worktree remove-worktree discover-adoptable adopt"
22
+ complete -c rove -f -n "__fish_seen_subcommand_from api" -a "schema engine-list list get-task pty-list collect context digest agent-turns inspect read-output watch deliveries should-run add send dispatch interrupt note note-list note-delete pane-open pane-close pane-graphics tab-close tab-new tab-split notify prompt engine-report row-token set-active report attention-dismiss gate-raise gate-answer gate-withdraw gates feedback issue-list issue-create issue-update issue-delete routine-list routine-create routine-update routine-delete routine-run-now routine-respond routine-runs workitem-list workitem-start update land delete ensure-worktree remove-worktree discover-adoptable adopt"
23
23
  complete -c rove -f -n "__fish_seen_subcommand_from daemon" -a "status start stop restart"
24
24
  complete -c rove -f -n "__fish_seen_subcommand_from machine" -a "add doctor remove list"
25
25
  complete -c rove -f -n "__fish_seen_subcommand_from plugin" -a "install link list search outdated update enable disable unlink uninstall config-dir log action pane"
@@ -13,7 +13,7 @@ _rove() {
13
13
 
14
14
  verbs=()
15
15
  case "${words[2]}" in
16
- api) verbs=("schema" "engine-list" "list" "get-task" "pty-list" "collect" "context" "digest" "agent-turns" "inspect" "read-output" "watch" "deliveries" "add" "send" "dispatch" "interrupt" "note" "note-list" "note-delete" "pane-open" "pane-close" "pane-graphics" "tab-close" "tab-new" "tab-split" "notify" "prompt" "engine-report" "row-token" "set-active" "report" "gate-raise" "gate-answer" "gate-withdraw" "gates" "feedback" "issue-list" "issue-create" "issue-update" "issue-delete" "routine-list" "routine-create" "routine-update" "routine-delete" "routine-run-now" "routine-respond" "routine-runs" "workitem-list" "workitem-start" "update" "land" "delete" "ensure-worktree" "remove-worktree" "discover-adoptable" "adopt") ;;
16
+ api) verbs=("schema" "engine-list" "list" "get-task" "pty-list" "collect" "context" "digest" "agent-turns" "inspect" "read-output" "watch" "deliveries" "should-run" "add" "send" "dispatch" "interrupt" "note" "note-list" "note-delete" "pane-open" "pane-close" "pane-graphics" "tab-close" "tab-new" "tab-split" "notify" "prompt" "engine-report" "row-token" "set-active" "report" "attention-dismiss" "gate-raise" "gate-answer" "gate-withdraw" "gates" "feedback" "issue-list" "issue-create" "issue-update" "issue-delete" "routine-list" "routine-create" "routine-update" "routine-delete" "routine-run-now" "routine-respond" "routine-runs" "workitem-list" "workitem-start" "update" "land" "delete" "ensure-worktree" "remove-worktree" "discover-adoptable" "adopt") ;;
17
17
  daemon) verbs=("status" "start" "stop" "restart") ;;
18
18
  machine) verbs=("add" "doctor" "remove" "list") ;;
19
19
  plugin) verbs=("install" "link" "list" "search" "outdated" "update" "enable" "disable" "unlink" "uninstall" "config-dir" "log" "action" "pane") ;;
@@ -3,7 +3,7 @@ name: rove
3
3
  description: Use when controlling Rove tasks, parallel coding attempts, hosted agent sessions, task lifecycle, or the daemon-owned issue tracker from a shell. Also the ONLY channel for messaging another agent session on this machine — `rove api send`, never a peer/MCP side channel.
4
4
  ---
5
5
 
6
- <!-- rove-skill-version: 63 — bump in lockstep with ROVE_SKILL_VERSION (src/lib/skill-install.ts). -->
6
+ <!-- rove-skill-version: 64 — bump in lockstep with ROVE_SKILL_VERSION (src/lib/skill-install.ts). -->
7
7
 
8
8
  # Rove shell control
9
9
 
@@ -273,7 +273,7 @@ turn either. These five carry almost all traffic:
273
273
 
274
274
  ```text
275
275
  add --repo(REQ) --prompt --title --command --count --agents --activate
276
- send --prompt|--prompt-file(REQ) --task-id --tab --command --plain --expect-report
276
+ send --prompt|--prompt-file(REQ) --task-id --tab --command --plain --expect-report --if-runnable
277
277
  get-task --task-id(REQ) list (no flags)
278
278
  collect --group <groupId> | --task-ids <csv> | --repo
279
279
  ```
@@ -294,7 +294,7 @@ Find your section by what you were ASKED, not by Rove's noun for it:
294
294
  | track work in Rove's own backlog, move a kanban card | issues |
295
295
  | remember this for the repo, leave a field note / 记一笔 | drive |
296
296
  | what did the agent do, per-turn cost, read its screen | read |
297
- | a prompt ends `[ROVE] … report with: rove api report`; tick a task unattended and want proof it reported | drive (`report`, `send --expect-report`) / read (`deliveries`) |
297
+ | a prompt ends `[ROVE] … report with: rove api report`; tick a task unattended and want proof it reported, or skip a tick the task can't use | drive (`report`, `send --expect-report`, `send --if-runnable`) / read (`deliveries`, `should-run`) |
298
298
  | make / rename / retarget / land / close a task | create / edit / lifecycle |
299
299
  | materialize or adopt a checkout | worktree |
300
300
  | which engines exist, send Rove product feedback | discover / feedback |
@@ -657,6 +657,17 @@ or why it went missing) instead of a growing notes file. Silence still never
657
657
  proves a worker is dead — `missing` says the turn ended or the engine died
658
658
  without a report; look before you act on it.
659
659
 
660
+ **Don't tick a task that can't use it.** `rove api should-run --task-id <id>`
661
+ prints `{run:true}` (exit 0) or `{run:false, reason, detail?, until?,
662
+ gateIds?}` (exit 3, verdict still on stdout). `reason`, first match wins:
663
+ `awaiting-owner` (an open gate), `report-missing` (the last tick ended
664
+ unreported), `quota` (clears itself at `until`), `engine-error`,
665
+ `engine-dead`, `awaiting-permission`, `busy`. Check and send in one step with
666
+ `rove api send --if-runnable --expect-report --task-id <id> --prompt "…"`:
667
+ a refused tick pastes nothing, replies `{skipped: {…}}` with exit 3 and is
668
+ recorded as a `skipped` delivery. Drop the tick; never queue it for later.
669
+ `get-task` and `collect` carry the same verdict as `runnability`.
670
+
660
671
  ### A task is finished when it is GONE
661
672
 
662
673
  The dispatcher closes tasks. A worker cannot delete itself, so when it reports
@@ -82,6 +82,7 @@ inspect --task-id
82
82
  read-output --task-id --tab --source{auto|history|terminal}(auto) --cursor --limit
83
83
  watch --task-ids <a,b,c> --group --until(REQ) <STATE[,STATE]> --timeout
84
84
  deliveries --task-id(REQ) --limit
85
+ should-run --task-id(REQ) --tab
85
86
  gates --repo --task-id --status{open|answered|withdrawn|all}(open)
86
87
  ```
87
88
  <!-- generated:end -->
@@ -92,10 +93,14 @@ gates --repo --task-id --status{open|answered|withdrawn|all}(open)
92
93
  the wider diagnostic — daemon activity, a pty walk, and every tab snapshot.
93
94
 
94
95
  `deliveries --task-id` is the task's report log, newest first: for each armed
95
- prompt its `status` (`awaiting`, `reported`, `missing`), the report
96
+ prompt its `status` (`awaiting`, `reported`, `missing`, `skipped`), the report
96
97
  (`outcome`, `summary`, `evidence`, `next`) or why it went missing (`cause`,
97
- `note`). A loop that wakes a task reads `deliveries --limit 5` for what the
98
- last ticks did, instead of a growing notes file.
98
+ `note`; a `missing` row also carries `dismissedAt` once the owner dismissed it).
99
+ A `skipped` row is a tick `send --if-runnable` refused: `skipped` is
100
+ the verdict (`reason`, `detail`, `until`, `gateIds`) and `repeats` counts the
101
+ identical refusals (same tab, same reason) that one row stands for. A loop that
102
+ wakes a task reads `deliveries --limit 5` for what the last ticks did, instead
103
+ of a growing notes file.
99
104
 
100
105
  `pty-list` is what `NO_ENGINE_TAB`'s hint points at: when `.tabs[]` and reality
101
106
  disagree, it is the ground truth for what is actually alive — key, alive, pid,
@@ -119,35 +124,36 @@ needs numbers, not when you want to know what a task is doing.
119
124
 
120
125
  <!-- generated:begin drive -->
121
126
  ```text
122
- send --task-id --prompt|--prompt-file(REQ) --tab --command --respawn --plain
123
- --allow-empty --expect-report
124
- dispatch --task-id(REQ) --prompt|--prompt-file(REQ) --tab
125
- interrupt --task-id(REQ) --tab
126
- note --task-id(REQ) --text(REQ)
127
- note-list --repo(REQ)
128
- note-delete --repo(REQ) --id(REQ)
129
- pane-open --task-id --tab --command --direction{right|down}(right)
130
- --placement{split|tab}(split) --title
131
- pane-close --task-id --title(REQ) --tab
132
- pane-graphics --task-id --tab(REQ) --image-id
133
- tab-close --task-id(REQ) --tab(REQ)
134
- tab-new --task-id(REQ) --kind{shell|engine|editor|pane|viewport}(REQ) --command
135
- --file --line --pane --tab --view-task
136
- tab-split --task-id(REQ) --tab(REQ) --action{open|close|rename|reset}(REQ)
137
- --direction{right|down}(right) --leaf --title --cols --rows
138
- notify --title(REQ) --body --kind(done) --task-id --source
139
- prompt --title(REQ) --placeholder --initial --timeout
140
- engine-report --task-id
141
- --kind{session-start|turn-start|turn-complete|turn-failed|turn-interrupted|awaiting-input|session-end|tool-pre|tool-post|tool-failed|pre-compact|post-compact|subagent-start|subagent-stop}(REQ)
142
- --engine --tab --detail
143
- row-token --task-id(REQ) --text --ttl(60) --key(default)
144
- --tone{info|success|warning|error|muted} --clear
145
- set-active --task-id --none
146
- report --delivery --outcome{done|partial|blocked|failed} --summary --evidence
147
- --next --json
148
- gate-raise --task-id(REQ) --tab --question(REQ) --option --recommend --context
149
- gate-answer --gate(REQ) --option --text
150
- gate-withdraw --gate(REQ)
127
+ send --task-id --prompt|--prompt-file(REQ) --tab --command --respawn --plain
128
+ --allow-empty --expect-report --if-runnable
129
+ dispatch --task-id(REQ) --prompt|--prompt-file(REQ) --tab
130
+ interrupt --task-id(REQ) --tab
131
+ note --task-id(REQ) --text(REQ)
132
+ note-list --repo(REQ)
133
+ note-delete --repo(REQ) --id(REQ)
134
+ pane-open --task-id --tab --command --direction{right|down}(right)
135
+ --placement{split|tab}(split) --title
136
+ pane-close --task-id --title(REQ) --tab
137
+ pane-graphics --task-id --tab(REQ) --image-id
138
+ tab-close --task-id(REQ) --tab(REQ)
139
+ tab-new --task-id(REQ) --kind{shell|engine|editor|pane|viewport}(REQ) --command
140
+ --file --line --pane --tab --view-task
141
+ tab-split --task-id(REQ) --tab(REQ) --action{open|close|rename|reset}(REQ)
142
+ --direction{right|down}(right) --leaf --title --cols --rows
143
+ notify --title(REQ) --body --kind(done) --task-id --source
144
+ prompt --title(REQ) --placeholder --initial --timeout
145
+ engine-report --task-id
146
+ --kind{session-start|turn-start|turn-complete|turn-failed|turn-interrupted|awaiting-input|session-end|tool-pre|tool-post|tool-failed|pre-compact|post-compact|subagent-start|subagent-stop}(REQ)
147
+ --engine --tab --detail
148
+ row-token --task-id(REQ) --text --ttl(60) --key(default)
149
+ --tone{info|success|warning|error|muted} --clear
150
+ set-active --task-id --none
151
+ report --delivery --outcome{done|partial|blocked|failed} --summary --evidence
152
+ --next --json
153
+ attention-dismiss --delivery(REQ)
154
+ gate-raise --task-id(REQ) --tab --question(REQ) --option --recommend --context
155
+ gate-answer --gate(REQ) --option --text
156
+ gate-withdraw --gate(REQ)
151
157
  ```
152
158
  <!-- generated:end -->
153
159
 
@@ -179,6 +185,15 @@ last step, before you stop. A turn that ends without it raises a
179
185
  report; a late one clears the flag. `outcome` is `blocked` when you need the
180
186
  owner, `failed` when you tried and could not. Summary max 32,000 characters.
181
187
 
188
+ **`send --if-runnable` skips a tick the task can't use.** The daemon checks
189
+ `should-run`, claims the tab and arms the delivery in one step, so two ticks
190
+ arriving together cannot both pass. A refusal pastes nothing and replies
191
+ `{skipped: {run:false, reason, detail?, until?, gateIds?}}` with exit 3
192
+ (a `skipped` delivery is recorded when the send would have owed a report).
193
+ `reason` is `awaiting-owner`, `report-missing`, `quota`, `engine-error`,
194
+ `engine-dead`, `awaiting-permission` or `busy`; `should-run` asks the same
195
+ question without sending. A skip is dropped, never queued.
196
+
182
197
  `notify --kind` styles the toast: `done`, `needs_input`, `error` get severity
183
198
  treatment and an unread mark, anything else renders neutrally.
184
199