@sma1lboy/rove 0.9.294 → 0.9.295-next.320

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 (59) hide show
  1. package/dist/cli/{chunk-z4017ss3.js → chunk-01ekh175.js} +1 -1
  2. package/dist/cli/{chunk-f7kaxhs0.js → chunk-05vpa04d.js} +1 -1
  3. package/dist/cli/{chunk-m2n78yy0.js → chunk-097dzz4a.js} +1 -1
  4. package/dist/cli/{chunk-9zm62ndy.js → chunk-0t81dyc8.js} +1 -1
  5. package/dist/cli/{chunk-skv8cv3z.js → chunk-0w81tahc.js} +1 -1
  6. package/dist/cli/{chunk-f28gnjvp.js → chunk-1975ej5j.js} +1 -1
  7. package/dist/cli/{chunk-b5epzfht.js → chunk-1b1wzmfn.js} +1 -1
  8. package/dist/cli/{chunk-khcgbts9.js → chunk-2mn87bwe.js} +1 -1
  9. package/dist/cli/{chunk-t10f6ybb.js → chunk-37sc43gb.js} +1 -1
  10. package/dist/cli/{chunk-8r8ba78e.js → chunk-3pk8zypt.js} +1 -1
  11. package/dist/cli/chunk-3prnp53k.js +3 -0
  12. package/dist/cli/{chunk-d9jf96nf.js → chunk-47g6ecty.js} +1 -1
  13. package/dist/cli/{chunk-am82s655.js → chunk-6d5sjgd8.js} +1 -1
  14. package/dist/cli/{chunk-8y160wdx.js → chunk-6r1120mc.js} +2 -2
  15. package/dist/cli/{chunk-90v6rdc7.js → chunk-80bzwf6j.js} +1 -1
  16. package/dist/cli/{chunk-6be8b4v2.js → chunk-8jbcwja0.js} +1 -1
  17. package/dist/cli/{chunk-c3jd6f68.js → chunk-8nypbzrg.js} +1 -1
  18. package/dist/cli/{chunk-03t4t0sn.js → chunk-90af74mn.js} +2 -2
  19. package/dist/cli/{chunk-j34tg4mx.js → chunk-9k60sxq2.js} +1 -1
  20. package/dist/cli/{chunk-c9jdz10a.js → chunk-a3yt083k.js} +1 -1
  21. package/dist/cli/{chunk-9x404t1p.js → chunk-asagdr71.js} +1 -1
  22. package/dist/cli/{chunk-wxx1art9.js → chunk-b15q2s62.js} +1 -1
  23. package/dist/cli/{chunk-25hw5fb2.js → chunk-bfqpnera.js} +2 -2
  24. package/dist/cli/{chunk-j92hev7v.js → chunk-bs6d1pkg.js} +1 -1
  25. package/dist/cli/{chunk-d5fdbrd9.js → chunk-c1441pfv.js} +1 -1
  26. package/dist/cli/{chunk-k0tx8ybc.js → chunk-cp8d5q26.js} +1 -1
  27. package/dist/cli/{chunk-0tqfnw3h.js → chunk-dm2ycqag.js} +1 -1
  28. package/dist/cli/{chunk-a0p8t1p5.js → chunk-ebybc98b.js} +2 -2
  29. package/dist/cli/{chunk-m7yw9d7k.js → chunk-gc9sanw0.js} +1 -1
  30. package/dist/cli/{chunk-j93b42yv.js → chunk-h90nwdg8.js} +1 -1
  31. package/dist/cli/{chunk-e62qpmrh.js → chunk-hbnnbbpd.js} +1 -1
  32. package/dist/cli/{chunk-592mrege.js → chunk-jxdc5g7p.js} +2 -2
  33. package/dist/cli/{chunk-mcb74w0j.js → chunk-k0f912qf.js} +1 -1
  34. package/dist/cli/{chunk-j96df7ae.js → chunk-maq0qvms.js} +1 -1
  35. package/dist/cli/{chunk-c5aw9yrt.js → chunk-mct40bd0.js} +1 -1
  36. package/dist/cli/{chunk-61pxwadx.js → chunk-mehqk0h4.js} +1 -1
  37. package/dist/cli/{chunk-ea4zm7g0.js → chunk-nt00jh8k.js} +1 -1
  38. package/dist/cli/{chunk-98d0rpdv.js → chunk-nx2da2j6.js} +1 -1
  39. package/dist/cli/{chunk-agacwtcz.js → chunk-qcypgc4n.js} +1 -1
  40. package/dist/cli/{chunk-z74pj630.js → chunk-qn1wqzvg.js} +1 -1
  41. package/dist/cli/{chunk-7h7dfp3b.js → chunk-r4w7x5zw.js} +1 -1
  42. package/dist/cli/{chunk-434886z8.js → chunk-s70prg81.js} +1 -1
  43. package/dist/cli/{chunk-79rmjvqm.js → chunk-sjkk3jkf.js} +5 -5
  44. package/dist/cli/{chunk-7zkc31ax.js → chunk-v893heq9.js} +1 -1
  45. package/dist/cli/{chunk-jat715c6.js → chunk-vb2ct88r.js} +1 -1
  46. package/dist/cli/{chunk-qys9g9sb.js → chunk-vg68mg6p.js} +1 -1
  47. package/dist/cli/{chunk-zs428z6r.js → chunk-w4kbb5fa.js} +1 -1
  48. package/dist/cli/{chunk-mezj6vmr.js → chunk-xrfptza1.js} +1 -1
  49. package/dist/cli/{chunk-k0tqjnbb.js → chunk-y9j708v1.js} +1 -1
  50. package/dist/cli/{chunk-02fh3406.js → chunk-zj25qsfj.js} +1 -1
  51. package/dist/cli/{chunk-xchzbpyz.js → chunk-zx1yw850.js} +1 -1
  52. package/dist/cli/index.js +2 -2
  53. package/dist/cli/rove.js +3 -3
  54. package/dist/skills/rove/SKILL.md +2 -2
  55. package/dist/web/assets/{index-BXCepdnn.js → index-DDALm7-O.js} +2 -2
  56. package/dist/web/assets/{term-mount-C5HqiLAQ.js → term-mount-B1mCULdd.js} +2 -2
  57. package/dist/web/index.html +1 -1
  58. package/package.json +1 -1
  59. package/dist/cli/chunk-m9b8afhp.js +0 -3
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{invokeVerb,runApiSubcommand}from"./chunk-xchzbpyz.js";import{executeVerb,toApiError}from"./chunk-z4017ss3.js";import{API_SCHEMA_VERSION,API_VERBS,VERBS,VERB_GROUPS,VerbArgs,apiUsage,buildCountPlan,defaultApiRuntime,deliverPrompt,findVerb,fullSchema,parseAgentsSpec,parseFlags,schemaIndex,validateAgainstSpec,verbHelp,verbSchema}from"./chunk-79rmjvqm.js";import"./chunk-4bmv4jgc.js";import"./chunk-w14jz8pd.js";import"./chunk-9y21c892.js";import"./chunk-38hnq4aq.js";import"./chunk-pg1n8w1x.js";import"./chunk-rz19rphb.js";import"./chunk-02fh3406.js";import"./chunk-rset5pt8.js";import"./chunk-2xsxcdp6.js";import"./chunk-gbe6hggt.js";import"./chunk-17e2tgyg.js";import"./chunk-q8ffd1pc.js";import"./chunk-je7egpqh.js";import"./chunk-5mhvjytn.js";import"./chunk-d1vv8xk6.js";import"./chunk-2bgmby1d.js";import"./chunk-psxhek7n.js";import"./chunk-atn06ncf.js";import"./chunk-c5aw9yrt.js";import"./chunk-wxx1art9.js";import"./chunk-ssyt8vmv.js";import"./chunk-nr8pxs18.js";import"./chunk-m781veb4.js";import"./chunk-y0e28qha.js";import"./chunk-qkehg2c1.js";import"./chunk-k6gx8sqh.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-kg9kmwt9.js";import"./chunk-6xppe9bj.js";import"./chunk-m9b8afhp.js";import"./chunk-z44vb8p5.js";import"./chunk-n7rpqyjs.js";import"./chunk-6r74n1g2.js";import"./chunk-49zrnjq1.js";import"./chunk-mqfvzdpr.js";import"./chunk-v62qfbbq.js";import"./chunk-rxqdw6s5.js";import"./chunk-xe3zr5b9.js";import"./chunk-gzn14mwk.js";import"./chunk-2wakfp6d.js";import"./chunk-6jcmdxza.js";import"./chunk-6cq9t92a.js";import"./chunk-han0d078.js";import{ApiError}from"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-0mw4pd9k.js";import"./chunk-catrr0z3.js";import"./chunk-ewdanfd9.js";import"./chunk-tn9gtf18.js";import"./chunk-y849hsgp.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-etfh8f4z.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-vpph4nqf.js";import"./chunk-cmp64q4j.js";import"./chunk-cqhtjxh7.js";import"./chunk-fgx76t84.js";import"./chunk-av0n24rf.js";import"./chunk-w7zv47mp.js";import"./chunk-86fzfqvw.js";import"./chunk-8yce2acw.js";import"./chunk-88cap497.js";import"./chunk-29b3pj9h.js";import"./chunk-96kvwzj8.js";import"./chunk-bgmpczgm.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import"./chunk-p84bhs57.js";import"./chunk-hkqcc1t4.js";import"./chunk-1tmmkk54.js";import"./chunk-7kysxgbq.js";import"./chunk-yfwn3fj5.js";import"./chunk-vfrxywtx.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-w8da1czv.js";import"./chunk-k0yjcgd8.js";import"./chunk-yt15y085.js";import"./chunk-7kgksv06.js";import"./chunk-8143k3t6.js";import"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-1mp632fj.js";import"./chunk-91sykzqq.js";export{verbSchema,verbHelp,validateAgainstSpec,toApiError,schemaIndex,runApiSubcommand,parseFlags,parseAgentsSpec,invokeVerb,fullSchema,findVerb,executeVerb,deliverPrompt,defaultApiRuntime,buildCountPlan,apiUsage,VerbArgs,VERB_GROUPS,VERBS,ApiError,API_VERBS,API_SCHEMA_VERSION};
2
+ import{invokeVerb,runApiSubcommand}from"./chunk-zx1yw850.js";import{executeVerb,toApiError}from"./chunk-01ekh175.js";import{API_SCHEMA_VERSION,API_VERBS,VERBS,VERB_GROUPS,VerbArgs,apiUsage,buildCountPlan,defaultApiRuntime,deliverPrompt,findVerb,fullSchema,parseAgentsSpec,parseFlags,schemaIndex,validateAgainstSpec,verbHelp,verbSchema}from"./chunk-sjkk3jkf.js";import"./chunk-4bmv4jgc.js";import"./chunk-w14jz8pd.js";import"./chunk-9y21c892.js";import"./chunk-38hnq4aq.js";import"./chunk-pg1n8w1x.js";import"./chunk-rz19rphb.js";import"./chunk-zj25qsfj.js";import"./chunk-rset5pt8.js";import"./chunk-2xsxcdp6.js";import"./chunk-gbe6hggt.js";import"./chunk-17e2tgyg.js";import"./chunk-q8ffd1pc.js";import"./chunk-je7egpqh.js";import"./chunk-5mhvjytn.js";import"./chunk-d1vv8xk6.js";import"./chunk-2bgmby1d.js";import"./chunk-psxhek7n.js";import"./chunk-atn06ncf.js";import"./chunk-mct40bd0.js";import"./chunk-b15q2s62.js";import"./chunk-ssyt8vmv.js";import"./chunk-nr8pxs18.js";import"./chunk-m781veb4.js";import"./chunk-y0e28qha.js";import"./chunk-qkehg2c1.js";import"./chunk-k6gx8sqh.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-kg9kmwt9.js";import"./chunk-6xppe9bj.js";import"./chunk-3prnp53k.js";import"./chunk-z44vb8p5.js";import"./chunk-n7rpqyjs.js";import"./chunk-6r74n1g2.js";import"./chunk-49zrnjq1.js";import"./chunk-mqfvzdpr.js";import"./chunk-v62qfbbq.js";import"./chunk-rxqdw6s5.js";import"./chunk-xe3zr5b9.js";import"./chunk-gzn14mwk.js";import"./chunk-2wakfp6d.js";import"./chunk-6jcmdxza.js";import"./chunk-6cq9t92a.js";import"./chunk-han0d078.js";import{ApiError}from"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-0mw4pd9k.js";import"./chunk-catrr0z3.js";import"./chunk-ewdanfd9.js";import"./chunk-tn9gtf18.js";import"./chunk-y849hsgp.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-etfh8f4z.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-vpph4nqf.js";import"./chunk-cmp64q4j.js";import"./chunk-cqhtjxh7.js";import"./chunk-fgx76t84.js";import"./chunk-av0n24rf.js";import"./chunk-w7zv47mp.js";import"./chunk-86fzfqvw.js";import"./chunk-8yce2acw.js";import"./chunk-88cap497.js";import"./chunk-29b3pj9h.js";import"./chunk-96kvwzj8.js";import"./chunk-bgmpczgm.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import"./chunk-p84bhs57.js";import"./chunk-hkqcc1t4.js";import"./chunk-1tmmkk54.js";import"./chunk-7kysxgbq.js";import"./chunk-yfwn3fj5.js";import"./chunk-vfrxywtx.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-w8da1czv.js";import"./chunk-k0yjcgd8.js";import"./chunk-yt15y085.js";import"./chunk-7kgksv06.js";import"./chunk-8143k3t6.js";import"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-1mp632fj.js";import"./chunk-91sykzqq.js";export{verbSchema,verbHelp,validateAgainstSpec,toApiError,schemaIndex,runApiSubcommand,parseFlags,parseAgentsSpec,invokeVerb,fullSchema,findVerb,executeVerb,deliverPrompt,defaultApiRuntime,buildCountPlan,apiUsage,VerbArgs,VERB_GROUPS,VERBS,ApiError,API_VERBS,API_SCHEMA_VERSION};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{DAEMON_UNREACHABLE_MESSAGE,argvToParams,booleanFlagsOf,callVerb,errorBody,errorEnvelope,executeVerb,isDaemonUnreachable,paramsToFlags,repeatableFlagsOf,runVerb,successEnvelope,toApiError}from"./chunk-z4017ss3.js";import"./chunk-79rmjvqm.js";import"./chunk-4bmv4jgc.js";import"./chunk-w14jz8pd.js";import"./chunk-9y21c892.js";import"./chunk-38hnq4aq.js";import"./chunk-pg1n8w1x.js";import"./chunk-rz19rphb.js";import"./chunk-02fh3406.js";import"./chunk-rset5pt8.js";import"./chunk-2xsxcdp6.js";import"./chunk-gbe6hggt.js";import"./chunk-17e2tgyg.js";import"./chunk-q8ffd1pc.js";import"./chunk-je7egpqh.js";import"./chunk-5mhvjytn.js";import"./chunk-d1vv8xk6.js";import"./chunk-2bgmby1d.js";import"./chunk-psxhek7n.js";import"./chunk-atn06ncf.js";import"./chunk-c5aw9yrt.js";import"./chunk-wxx1art9.js";import"./chunk-ssyt8vmv.js";import"./chunk-nr8pxs18.js";import"./chunk-m781veb4.js";import"./chunk-y0e28qha.js";import"./chunk-qkehg2c1.js";import"./chunk-k6gx8sqh.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-kg9kmwt9.js";import"./chunk-6xppe9bj.js";import"./chunk-m9b8afhp.js";import"./chunk-z44vb8p5.js";import"./chunk-n7rpqyjs.js";import"./chunk-6r74n1g2.js";import"./chunk-49zrnjq1.js";import"./chunk-mqfvzdpr.js";import"./chunk-v62qfbbq.js";import"./chunk-rxqdw6s5.js";import"./chunk-xe3zr5b9.js";import"./chunk-gzn14mwk.js";import"./chunk-2wakfp6d.js";import"./chunk-6jcmdxza.js";import"./chunk-6cq9t92a.js";import"./chunk-han0d078.js";import"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-0mw4pd9k.js";import"./chunk-catrr0z3.js";import"./chunk-ewdanfd9.js";import"./chunk-tn9gtf18.js";import"./chunk-y849hsgp.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-etfh8f4z.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-vpph4nqf.js";import"./chunk-cmp64q4j.js";import"./chunk-cqhtjxh7.js";import"./chunk-fgx76t84.js";import"./chunk-av0n24rf.js";import"./chunk-w7zv47mp.js";import"./chunk-86fzfqvw.js";import"./chunk-8yce2acw.js";import"./chunk-88cap497.js";import"./chunk-29b3pj9h.js";import"./chunk-96kvwzj8.js";import"./chunk-bgmpczgm.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import"./chunk-p84bhs57.js";import"./chunk-hkqcc1t4.js";import"./chunk-1tmmkk54.js";import"./chunk-7kysxgbq.js";import"./chunk-yfwn3fj5.js";import"./chunk-vfrxywtx.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-w8da1czv.js";import"./chunk-k0yjcgd8.js";import"./chunk-yt15y085.js";import"./chunk-7kgksv06.js";import"./chunk-8143k3t6.js";import"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-1mp632fj.js";import"./chunk-91sykzqq.js";export{toApiError,successEnvelope,runVerb,repeatableFlagsOf,paramsToFlags,isDaemonUnreachable,executeVerb,errorEnvelope,errorBody,callVerb,booleanFlagsOf,argvToParams,DAEMON_UNREACHABLE_MESSAGE};
2
+ import{DAEMON_UNREACHABLE_MESSAGE,argvToParams,booleanFlagsOf,callVerb,errorBody,errorEnvelope,executeVerb,isDaemonUnreachable,paramsToFlags,repeatableFlagsOf,runVerb,successEnvelope,toApiError}from"./chunk-01ekh175.js";import"./chunk-sjkk3jkf.js";import"./chunk-4bmv4jgc.js";import"./chunk-w14jz8pd.js";import"./chunk-9y21c892.js";import"./chunk-38hnq4aq.js";import"./chunk-pg1n8w1x.js";import"./chunk-rz19rphb.js";import"./chunk-zj25qsfj.js";import"./chunk-rset5pt8.js";import"./chunk-2xsxcdp6.js";import"./chunk-gbe6hggt.js";import"./chunk-17e2tgyg.js";import"./chunk-q8ffd1pc.js";import"./chunk-je7egpqh.js";import"./chunk-5mhvjytn.js";import"./chunk-d1vv8xk6.js";import"./chunk-2bgmby1d.js";import"./chunk-psxhek7n.js";import"./chunk-atn06ncf.js";import"./chunk-mct40bd0.js";import"./chunk-b15q2s62.js";import"./chunk-ssyt8vmv.js";import"./chunk-nr8pxs18.js";import"./chunk-m781veb4.js";import"./chunk-y0e28qha.js";import"./chunk-qkehg2c1.js";import"./chunk-k6gx8sqh.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-kg9kmwt9.js";import"./chunk-6xppe9bj.js";import"./chunk-3prnp53k.js";import"./chunk-z44vb8p5.js";import"./chunk-n7rpqyjs.js";import"./chunk-6r74n1g2.js";import"./chunk-49zrnjq1.js";import"./chunk-mqfvzdpr.js";import"./chunk-v62qfbbq.js";import"./chunk-rxqdw6s5.js";import"./chunk-xe3zr5b9.js";import"./chunk-gzn14mwk.js";import"./chunk-2wakfp6d.js";import"./chunk-6jcmdxza.js";import"./chunk-6cq9t92a.js";import"./chunk-han0d078.js";import"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-0mw4pd9k.js";import"./chunk-catrr0z3.js";import"./chunk-ewdanfd9.js";import"./chunk-tn9gtf18.js";import"./chunk-y849hsgp.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-etfh8f4z.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-vpph4nqf.js";import"./chunk-cmp64q4j.js";import"./chunk-cqhtjxh7.js";import"./chunk-fgx76t84.js";import"./chunk-av0n24rf.js";import"./chunk-w7zv47mp.js";import"./chunk-86fzfqvw.js";import"./chunk-8yce2acw.js";import"./chunk-88cap497.js";import"./chunk-29b3pj9h.js";import"./chunk-96kvwzj8.js";import"./chunk-bgmpczgm.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import"./chunk-p84bhs57.js";import"./chunk-hkqcc1t4.js";import"./chunk-1tmmkk54.js";import"./chunk-7kysxgbq.js";import"./chunk-yfwn3fj5.js";import"./chunk-vfrxywtx.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-w8da1czv.js";import"./chunk-k0yjcgd8.js";import"./chunk-yt15y085.js";import"./chunk-7kgksv06.js";import"./chunk-8143k3t6.js";import"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-1mp632fj.js";import"./chunk-91sykzqq.js";export{toApiError,successEnvelope,runVerb,repeatableFlagsOf,paramsToFlags,isDaemonUnreachable,executeVerb,errorEnvelope,errorBody,callVerb,booleanFlagsOf,argvToParams,DAEMON_UNREACHABLE_MESSAGE};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{engineEntry,identifiableEngineIds}from"./chunk-fgx76t84.js";import{existsSync,mkdirSync,readFileSync,readdirSync,writeFileSync}from"fs";import{join,resolve}from"path";import{fileURLToPath}from"url";var ROVE_SKILL_VERSION=127,SKILL_NAME="rove";function bundledSkillDir(){let here=fileURLToPath(import.meta.url);return[resolve(here,"../../../../../.agents/skills/rove"),resolve(here,"../../skills/rove")].find((dir)=>existsSync(join(dir,"SKILL.md")))??null}function parseSkillVersion(content){let m=content.match(/rove-skill-version:\s*(\d+)/);return m?Number.parseInt(m[1],10):null}function readSkillCopy(dir){let text;try{text=readFileSync(join(dir,"SKILL.md"),"utf8")}catch{return{state:"not-installed",version:null}}let version=parseSkillVersion(text);return{state:version!==null&&version>=ROVE_SKILL_VERSION?"installed":"outdated",version}}function engineSkillDir(vendor){let base=engineEntry(vendor).skillsDir?.();return base?join(base,SKILL_NAME):null}function skillTargets(vendors=identifiableEngineIds()){let seen=new Set,out=[];for(let vendor of vendors){let dir=engineSkillDir(vendor);if(!dir||seen.has(dir))continue;seen.add(dir),out.push({vendor,displayName:engineEntry(vendor).displayName,dir,...readSkillCopy(dir)})}return out}function missingSkillNames(installed){return skillTargets(installed).filter((t)=>t.state==="not-installed").map((t)=>t.displayName)}function skillOverview(targets=skillTargets()){return{targets,installed:targets.some((t)=>t.state!=="not-installed"),outdated:targets.filter((t)=>t.state==="outdated")}}function copyTree(src,dest){mkdirSync(dest,{recursive:!0});for(let entry of readdirSync(src,{withFileTypes:!0})){let from=join(src,entry.name),to=join(dest,entry.name);if(entry.isDirectory())copyTree(from,to);else writeFileSync(to,readFileSync(from))}}function installSkill(targets,source=bundledSkillDir()){if(!source)throw Error("this Rove build ships no bundled skill");return targets.map((target)=>{try{return copyTree(source,target.dir),{target,error:null}}catch(error){return{target,error:error instanceof Error?error.message:String(error)}}})}function refreshOutdatedSkills(source=bundledSkillDir()){let outdated=skillOverview().outdated;if(outdated.length===0||!source)return[];return installSkill(outdated,source)}function installSkillErrors(source=bundledSkillDir()){try{let failed=installSkill(skillTargets().filter((t)=>t.state!=="installed"),source).filter((r)=>r.error);return failed.length===0?null:failed.map((r)=>`${r.target.displayName}: ${r.error}`).join("; ")}catch(error){return error instanceof Error?error.message:String(error)}}function installedSkillDiffersFromBundled(dir){let bundled=bundledSkillDir();if(!bundled)return!1;try{return readFileSync(join(bundled,"SKILL.md"),"utf8")!==readFileSync(join(dir,"SKILL.md"),"utf8")}catch{return!1}}
2
+ import{engineEntry,identifiableEngineIds}from"./chunk-fgx76t84.js";import{existsSync,mkdirSync,readFileSync,readdirSync,writeFileSync}from"fs";import{join,resolve}from"path";import{fileURLToPath}from"url";var ROVE_SKILL_VERSION=128,SKILL_NAME="rove";function bundledSkillDir(){let here=fileURLToPath(import.meta.url);return[resolve(here,"../../../../../.agents/skills/rove"),resolve(here,"../../skills/rove")].find((dir)=>existsSync(join(dir,"SKILL.md")))??null}function parseSkillVersion(content){let m=content.match(/rove-skill-version:\s*(\d+)/);return m?Number.parseInt(m[1],10):null}function readSkillCopy(dir){let text;try{text=readFileSync(join(dir,"SKILL.md"),"utf8")}catch{return{state:"not-installed",version:null}}let version=parseSkillVersion(text);return{state:version!==null&&version>=ROVE_SKILL_VERSION?"installed":"outdated",version}}function engineSkillDir(vendor){let base=engineEntry(vendor).skillsDir?.();return base?join(base,SKILL_NAME):null}function skillTargets(vendors=identifiableEngineIds()){let seen=new Set,out=[];for(let vendor of vendors){let dir=engineSkillDir(vendor);if(!dir||seen.has(dir))continue;seen.add(dir),out.push({vendor,displayName:engineEntry(vendor).displayName,dir,...readSkillCopy(dir)})}return out}function missingSkillNames(installed){return skillTargets(installed).filter((t)=>t.state==="not-installed").map((t)=>t.displayName)}function skillOverview(targets=skillTargets()){return{targets,installed:targets.some((t)=>t.state!=="not-installed"),outdated:targets.filter((t)=>t.state==="outdated")}}function copyTree(src,dest){mkdirSync(dest,{recursive:!0});for(let entry of readdirSync(src,{withFileTypes:!0})){let from=join(src,entry.name),to=join(dest,entry.name);if(entry.isDirectory())copyTree(from,to);else writeFileSync(to,readFileSync(from))}}function installSkill(targets,source=bundledSkillDir()){if(!source)throw Error("this Rove build ships no bundled skill");return targets.map((target)=>{try{return copyTree(source,target.dir),{target,error:null}}catch(error){return{target,error:error instanceof Error?error.message:String(error)}}})}function refreshOutdatedSkills(source=bundledSkillDir()){let outdated=skillOverview().outdated;if(outdated.length===0||!source)return[];return installSkill(outdated,source)}function installSkillErrors(source=bundledSkillDir()){try{let failed=installSkill(skillTargets().filter((t)=>t.state!=="installed"),source).filter((r)=>r.error);return failed.length===0?null:failed.map((r)=>`${r.target.displayName}: ${r.error}`).join("; ")}catch(error){return error instanceof Error?error.message:String(error)}}function installedSkillDiffersFromBundled(dir){let bundled=bundledSkillDir();if(!bundled)return!1;try{return readFileSync(join(bundled,"SKILL.md"),"utf8")!==readFileSync(join(dir,"SKILL.md"),"utf8")}catch{return!1}}
3
3
  export{bundledSkillDir,readSkillCopy,engineSkillDir,skillTargets,missingSkillNames,skillOverview,installSkill,refreshOutdatedSkills,installSkillErrors,installedSkillDiffersFromBundled};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{formatBytes}from"./chunk-my20q579.js";import{hookConfigIssues}from"./chunk-68fxwkag.js";import{applyFixes,daemonRestartFix,defaultFixRuntime,engineTabsManualFix,humanOnlyFix,killOrphansManualFix,noEngineFix,reinstallManualFix,resetManualFix,skillInstallFix,spawnHelperFix}from"./chunk-0y98hsf7.js";import{inspectLegacyTmux,legacyTmuxDoctorLines}from"./chunk-gkdfct7t.js";import"./chunk-m90n6nks.js";import"./chunk-gqp05bkh.js";import"./chunk-a4hsqj1b.js";import"./chunk-wwpq8gs4.js";import"./chunk-rmnm3f9n.js";import{skillOverview}from"./chunk-qys9g9sb.js";import"./chunk-cpgnm1xr.js";import"./chunk-r3s2t9af.js";import"./chunk-6xr1prk6.js";import{describeAccount,detectEngineStatuses,probeableEngineIds,summarizeEngines}from"./chunk-pg1n8w1x.js";import"./chunk-q8ffd1pc.js";import"./chunk-je7egpqh.js";import"./chunk-5mhvjytn.js";import"./chunk-d1vv8xk6.js";import"./chunk-2bgmby1d.js";import"./chunk-psxhek7n.js";import"./chunk-atn06ncf.js";import"./chunk-y0e28qha.js";import"./chunk-5frd2aze.js";import"./chunk-dmzg9zdc.js";import"./chunk-kg9kmwt9.js";import{CURRENT_VERSION,package_default}from"./chunk-m9b8afhp.js";import{resolveNodeBinary}from"./chunk-6r74n1g2.js";import"./chunk-49zrnjq1.js";import"./chunk-mqfvzdpr.js";import{formatDaemonInfo}from"./chunk-rxqdw6s5.js";import"./chunk-6cq9t92a.js";import"./chunk-han0d078.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-tn9gtf18.js";import"./chunk-etfh8f4z.js";import"./chunk-zsfyj36g.js";import{t}from"./chunk-vpph4nqf.js";import"./chunk-cmp64q4j.js";import"./chunk-cqhtjxh7.js";import"./chunk-fgx76t84.js";import"./chunk-av0n24rf.js";import"./chunk-w7zv47mp.js";import{isStaleInstallError,resolveRoveSpawn}from"./chunk-86fzfqvw.js";import"./chunk-8yce2acw.js";import"./chunk-88cap497.js";import{RoveDaemonClient,isForeignDaemonHome}from"./chunk-29b3pj9h.js";import"./chunk-96kvwzj8.js";import"./chunk-bgmpczgm.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import"./chunk-p84bhs57.js";import"./chunk-hkqcc1t4.js";import"./chunk-1tmmkk54.js";import"./chunk-7kysxgbq.js";import{readableLegacyIndexPath}from"./chunk-yfwn3fj5.js";import"./chunk-vfrxywtx.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-w8da1czv.js";import{readPidFile}from"./chunk-k0yjcgd8.js";import"./chunk-yt15y085.js";import{defaultDaemonLogPath,defaultDaemonPidPath,defaultDaemonSocketPath,defaultPtyHostLogPath,defaultPtyHostPidPath,defaultPtyHostSocketPath}from"./chunk-7kgksv06.js";import{homeDir,kvStatePath,roveStateDir}from"./chunk-8143k3t6.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";import{preRenameStateDir}from"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-1mp632fj.js";import{__require}from"./chunk-91sykzqq.js";import{existsSync,readFileSync as readFileSync2,statSync as statSync2}from"fs";import{join as join2}from"path";var MIN_BUN_VERSION=package_default.engines.bun.match(/\d+\.\d+\.\d+/)?.[0]??"0.0.0";function parseBunVersion(raw){return raw.trim().match(/^v?(\d+\.\d+\.\d+)/)?.[1]??null}function isBunAtLeast(raw,minimum=MIN_BUN_VERSION){let found=parseBunVersion(raw),floor=parseBunVersion(minimum);if(!found||!floor)return!0;let a=found.split(".").map(Number),b=floor.split(".").map(Number);for(let i=0;i<3;i++){let av=a[i]??0,bv=b[i]??0;if(av!==bv)return av>bv}return!0}function classifyHookChannel(input){let total=0,hooked=0;for(let tabs of Object.values(input.tabs))for(let entry of Object.values(tabs))if(total++,entry.source==="hook")hooked++;if(total===0)return{kind:"no-tabs"};if(hooked===0)return{kind:"down",totalTabs:total};return{kind:"live",hookTabs:hooked,totalTabs:total}}function hookChannelDoctorLines(verdict,input,cliName){let configLines=(input.configIssues??[]).flatMap((issue)=>[` \u26A0 hook install skipped: ${issue.file}`,` ${issue.reason} \u2014 fix the file, then relaunch Rove`]);if(verdict.kind==="no-tabs")return["hooks: \u2014 no engine tabs yet (nothing to check)",...configLines];if(verdict.kind==="live")return[`hooks: \u2713 engine hook channel live (${verdict.hookTabs}/${verdict.totalTabs} tab(s) hook-sourced)`,...configLines];let out=[`hooks: \u2717 NO hook events reaching the daemon (0/${verdict.totalTabs} tab(s) hook-sourced)`," badges fall back to a ~10s poll, so activity looks seconds late",` daemon socket: ${input.socketPath}`,...configLines];return out.push(' \u2192 compare with an engine tab\'s own path: `ps eww -p <engine-pid> | tr " " "\\n" | grep DAEMON_SOCKET_PATH`',` \u2192 restart the engine tabs (they may hold a stale socket path), or run \`${cliName} daemon restart\``,` \u2192 debug one hook directly: \`ROVE_HOOK_DEBUG=1 echo '{}' | ${cliName} hook turn-start --engine claude\``),out}import{readdirSync,statSync}from"fs";import{createRequire}from"module";import{dirname,join}from"path";function installedSpawnHelpers(){let pkg;try{pkg=dirname(createRequire(import.meta.url).resolve("node-pty/package.json"))}catch{return[]}let prebuilds=join(pkg,"prebuilds"),arches;try{arches=readdirSync(prebuilds).filter((name)=>name.startsWith("darwin-"))}catch{return[]}let helpers=[];for(let arch of arches){let path=join(prebuilds,arch,"spawn-helper");try{helpers.push({path,executable:(statSync(path).mode&64)!==0})}catch{}}return helpers}function spawnHelperDoctorLines(helpers){let broken=helpers.filter((helper)=>!helper.executable).map((helper)=>helper.path);if(helpers.length===0)return{lines:["node-pty: ? no darwin spawn-helper found next to node-pty"],broken};if(broken.length===0)return{lines:[`node-pty: \u2713 spawn-helper executable (${helpers.length} arch)`],broken};return{lines:["node-pty: \u2717 spawn-helper is not executable \u2014 every node-pty PTY spawn fails",...broken.map((path)=>` ${path}`),` \u2192 chmod 755 ${broken.join(" ")}`],broken}}import{appendFileSync,readFileSync}from"fs";var PTY_MARKER="ROVE_TERMINAL_PTY=1",run=async(argv)=>{try{let proc=Bun.spawn([...argv],{stdin:"ignore",stdout:"pipe",stderr:"ignore"}),[stdout,code]=await Promise.all([new Response(proc.stdout).text().catch(()=>""),proc.exited]);return{code,stdout}}catch{return{code:127,stdout:""}}};function parsePsRows(output){let rows=[];for(let line of output.split(`
2
+ import{formatBytes}from"./chunk-my20q579.js";import{hookConfigIssues}from"./chunk-68fxwkag.js";import{applyFixes,daemonRestartFix,defaultFixRuntime,engineTabsManualFix,humanOnlyFix,killOrphansManualFix,noEngineFix,reinstallManualFix,resetManualFix,skillInstallFix,spawnHelperFix}from"./chunk-0y98hsf7.js";import{inspectLegacyTmux,legacyTmuxDoctorLines}from"./chunk-gkdfct7t.js";import"./chunk-m90n6nks.js";import"./chunk-gqp05bkh.js";import"./chunk-a4hsqj1b.js";import"./chunk-wwpq8gs4.js";import"./chunk-rmnm3f9n.js";import{skillOverview}from"./chunk-vg68mg6p.js";import"./chunk-cpgnm1xr.js";import"./chunk-r3s2t9af.js";import"./chunk-6xr1prk6.js";import{describeAccount,detectEngineStatuses,probeableEngineIds,summarizeEngines}from"./chunk-pg1n8w1x.js";import"./chunk-q8ffd1pc.js";import"./chunk-je7egpqh.js";import"./chunk-5mhvjytn.js";import"./chunk-d1vv8xk6.js";import"./chunk-2bgmby1d.js";import"./chunk-psxhek7n.js";import"./chunk-atn06ncf.js";import"./chunk-y0e28qha.js";import"./chunk-5frd2aze.js";import"./chunk-dmzg9zdc.js";import"./chunk-kg9kmwt9.js";import{CURRENT_VERSION,package_default}from"./chunk-3prnp53k.js";import{resolveNodeBinary}from"./chunk-6r74n1g2.js";import"./chunk-49zrnjq1.js";import"./chunk-mqfvzdpr.js";import{formatDaemonInfo}from"./chunk-rxqdw6s5.js";import"./chunk-6cq9t92a.js";import"./chunk-han0d078.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-tn9gtf18.js";import"./chunk-etfh8f4z.js";import"./chunk-zsfyj36g.js";import{t}from"./chunk-vpph4nqf.js";import"./chunk-cmp64q4j.js";import"./chunk-cqhtjxh7.js";import"./chunk-fgx76t84.js";import"./chunk-av0n24rf.js";import"./chunk-w7zv47mp.js";import{isStaleInstallError,resolveRoveSpawn}from"./chunk-86fzfqvw.js";import"./chunk-8yce2acw.js";import"./chunk-88cap497.js";import{RoveDaemonClient,isForeignDaemonHome}from"./chunk-29b3pj9h.js";import"./chunk-96kvwzj8.js";import"./chunk-bgmpczgm.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import"./chunk-p84bhs57.js";import"./chunk-hkqcc1t4.js";import"./chunk-1tmmkk54.js";import"./chunk-7kysxgbq.js";import{readableLegacyIndexPath}from"./chunk-yfwn3fj5.js";import"./chunk-vfrxywtx.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-w8da1czv.js";import{readPidFile}from"./chunk-k0yjcgd8.js";import"./chunk-yt15y085.js";import{defaultDaemonLogPath,defaultDaemonPidPath,defaultDaemonSocketPath,defaultPtyHostLogPath,defaultPtyHostPidPath,defaultPtyHostSocketPath}from"./chunk-7kgksv06.js";import{homeDir,kvStatePath,roveStateDir}from"./chunk-8143k3t6.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";import{preRenameStateDir}from"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-1mp632fj.js";import{__require}from"./chunk-91sykzqq.js";import{existsSync,readFileSync as readFileSync2,statSync as statSync2}from"fs";import{join as join2}from"path";var MIN_BUN_VERSION=package_default.engines.bun.match(/\d+\.\d+\.\d+/)?.[0]??"0.0.0";function parseBunVersion(raw){return raw.trim().match(/^v?(\d+\.\d+\.\d+)/)?.[1]??null}function isBunAtLeast(raw,minimum=MIN_BUN_VERSION){let found=parseBunVersion(raw),floor=parseBunVersion(minimum);if(!found||!floor)return!0;let a=found.split(".").map(Number),b=floor.split(".").map(Number);for(let i=0;i<3;i++){let av=a[i]??0,bv=b[i]??0;if(av!==bv)return av>bv}return!0}function classifyHookChannel(input){let total=0,hooked=0;for(let tabs of Object.values(input.tabs))for(let entry of Object.values(tabs))if(total++,entry.source==="hook")hooked++;if(total===0)return{kind:"no-tabs"};if(hooked===0)return{kind:"down",totalTabs:total};return{kind:"live",hookTabs:hooked,totalTabs:total}}function hookChannelDoctorLines(verdict,input,cliName){let configLines=(input.configIssues??[]).flatMap((issue)=>[` \u26A0 hook install skipped: ${issue.file}`,` ${issue.reason} \u2014 fix the file, then relaunch Rove`]);if(verdict.kind==="no-tabs")return["hooks: \u2014 no engine tabs yet (nothing to check)",...configLines];if(verdict.kind==="live")return[`hooks: \u2713 engine hook channel live (${verdict.hookTabs}/${verdict.totalTabs} tab(s) hook-sourced)`,...configLines];let out=[`hooks: \u2717 NO hook events reaching the daemon (0/${verdict.totalTabs} tab(s) hook-sourced)`," badges fall back to a ~10s poll, so activity looks seconds late",` daemon socket: ${input.socketPath}`,...configLines];return out.push(' \u2192 compare with an engine tab\'s own path: `ps eww -p <engine-pid> | tr " " "\\n" | grep DAEMON_SOCKET_PATH`',` \u2192 restart the engine tabs (they may hold a stale socket path), or run \`${cliName} daemon restart\``,` \u2192 debug one hook directly: \`ROVE_HOOK_DEBUG=1 echo '{}' | ${cliName} hook turn-start --engine claude\``),out}import{readdirSync,statSync}from"fs";import{createRequire}from"module";import{dirname,join}from"path";function installedSpawnHelpers(){let pkg;try{pkg=dirname(createRequire(import.meta.url).resolve("node-pty/package.json"))}catch{return[]}let prebuilds=join(pkg,"prebuilds"),arches;try{arches=readdirSync(prebuilds).filter((name)=>name.startsWith("darwin-"))}catch{return[]}let helpers=[];for(let arch of arches){let path=join(prebuilds,arch,"spawn-helper");try{helpers.push({path,executable:(statSync(path).mode&64)!==0})}catch{}}return helpers}function spawnHelperDoctorLines(helpers){let broken=helpers.filter((helper)=>!helper.executable).map((helper)=>helper.path);if(helpers.length===0)return{lines:["node-pty: ? no darwin spawn-helper found next to node-pty"],broken};if(broken.length===0)return{lines:[`node-pty: \u2713 spawn-helper executable (${helpers.length} arch)`],broken};return{lines:["node-pty: \u2717 spawn-helper is not executable \u2014 every node-pty PTY spawn fails",...broken.map((path)=>` ${path}`),` \u2192 chmod 755 ${broken.join(" ")}`],broken}}import{appendFileSync,readFileSync}from"fs";var PTY_MARKER="ROVE_TERMINAL_PTY=1",run=async(argv)=>{try{let proc=Bun.spawn([...argv],{stdin:"ignore",stdout:"pipe",stderr:"ignore"}),[stdout,code]=await Promise.all([new Response(proc.stdout).text().catch(()=>""),proc.exited]);return{code,stdout}}catch{return{code:127,stdout:""}}};function parsePsRows(output){let rows=[];for(let line of output.split(`
3
3
  `)){let parts=line.trim().split(/\s+/);if(parts.length<6)continue;let[pid,ppid,pgid]=[parts[0],parts[1],parts[2]].map((value)=>Number.parseInt(value??"",10)),rssKb=Number.parseInt(parts[4]??"",10);if(!Number.isFinite(pid)||!Number.isFinite(ppid)||!Number.isFinite(pgid)||!Number.isFinite(rssKb))continue;rows.push({pid,ppid,pgid,etime:parts[3]??"",rssKb,command:parts.slice(5).join(" ")})}return rows}function pidAlive(pid,rows){return rows.some((row)=>row.pid===pid)}function orphanCandidates(rows,selfPgid,liveSessionPids){return rows.filter((row)=>row.ppid===1&&row.pgid!==selfPgid&&!liveSessionPids.has(row.pgid)&&!pidAlive(row.pgid,rows))}async function markedPids(pids,deps={}){let runProbe=deps.run??run,readEnviron=deps.readEnviron??((pid)=>readFileSync(`/proc/${pid}/environ`,"utf8")),marked=new Set;if(pids.length===0)return{marked,failed:null};if((deps.platform??process.platform)==="linux"){let refused=null;for(let pid of pids)try{if(readEnviron(pid).split("\x00").includes(PTY_MARKER))marked.add(pid)}catch(err){let code=err.code;if(code!=="ENOENT"&&code!=="ESRCH")refused??=`/proc/${pid}/environ: ${code??"unreadable"}`}return{marked,failed:refused}}let result=await runProbe(["ps","eww","-o","pid=,command=","-p",pids.join(",")]);if(result.code!==0)return{marked,failed:`ps eww exited ${result.code}`};let marker=new RegExp(`(^|\\s)${PTY_MARKER}(\\s|$)`);for(let line of result.stdout.split(`
4
4
  `)){let pid=Number.parseInt(line.trim().split(/\s+/)[0]??"",10);if(Number.isFinite(pid)&&marker.test(line))marked.add(pid)}return{marked,failed:null}}async function ownPgid(runProbe){let result=await runProbe(["ps","-o","pgid=","-p",String(process.pid)]),pgid=Number.parseInt(result.stdout.trim(),10);return Number.isFinite(pgid)?pgid:-1}async function collectOrphans(liveSessionPids,deps={}){let runProbe=deps.run??run;if((deps.platform??process.platform)==="win32")return{orphans:[],error:null};let ps=await runProbe(["ps","-A","-o","pid=,ppid=,pgid=,etime=,rss=,command="]);if(ps.code!==0)return{orphans:[],error:`could not read the process table \u2014 ps exited ${ps.code}`};let rows=parsePsRows(ps.stdout),candidates=orphanCandidates(rows,await ownPgid(runProbe),liveSessionPids),{marked,failed}=await markedPids(candidates.map((row)=>row.pid),deps);if(failed)return{orphans:[],error:`could not read process environments \u2014 ${failed}`};return{orphans:candidates.filter((row)=>marked.has(row.pid)),error:null}}function formatMb(rssKb){return`${(rssKb/1024).toFixed(0)} MB`}function orphanDoctorLines(orphans,error,cliName,killing=!1){if(error)return[`orphans: \u2717 ${error}`];if(orphans.length===0)return["orphans: \u2713 none \u2014 no processes left behind by a dead PTY session"];let totalMb=orphans.reduce((sum,row)=>sum+row.rssKb,0)/1024,lines=[`orphans: \u26A0 ${orphans.length} process(es) outlived the PTY session that spawned them (${totalMb.toFixed(0)} MB RSS)`," each is reparented to init, carries Rove's PTY marker, and its process"," group leader is gone \u2014 no live task owns them"];for(let row of[...orphans].sort((a,b)=>b.rssKb-a.rssKb))lines.push(` pid ${row.pid} (group ${row.pgid}) up ${row.etime}, ${formatMb(row.rssKb)}: ${row.command.slice(0,90)}`);if(!killing)lines.push(` \u2192 \`${cliName} doctor --kill-orphans\` ends those process groups (SIGTERM, then SIGKILL)`," read the list first: something you backgrounded from a Rove terminal and then"," closed the tab on looks exactly like a leak, and doctor cannot tell them apart");return lines}var GROUP_EXIT_GRACE_MS=2000,GROUP_POLL_MS=100;function logOrphanKill(pgid,signal,logPath=defaultDaemonLogPath()){try{appendFileSync(logPath,formatDaemonInfo("doctor-kill-orphans",`${signal} process group ${pgid}`))}catch{}}function groupAlive(pgid){try{return process.kill(-pgid,0),!0}catch(err){return err.code!=="ESRCH"}}async function killOrphanGroups(orphans){let groups=[...new Set(orphans.map((row)=>row.pgid))];for(let pgid of groups)try{process.kill(-pgid,"SIGTERM"),logOrphanKill(pgid,"SIGTERM")}catch{}let deadline=Date.now()+GROUP_EXIT_GRACE_MS,survivors=groups.filter(groupAlive);while(survivors.length>0&&Date.now()<deadline)await new Promise((resolve)=>setTimeout(resolve,GROUP_POLL_MS)),survivors=survivors.filter(groupAlive);for(let pgid of survivors)try{process.kill(-pgid,"SIGKILL"),logOrphanKill(pgid,"SIGKILL")}catch{}return await new Promise((resolve)=>setTimeout(resolve,GROUP_POLL_MS)),{groups,survivors:survivors.filter(groupAlive)}}function multiplexerLabel(env){if(env.TMUX)return"tmux";if(env.ZELLIJ)return"zellij";if(env.STY)return"screen";return"no"}function terminalEnvLines(env){let show=(v)=>v&&v.length>0?v:"(unset)",program=env.TERM_PROGRAM?`${env.TERM_PROGRAM}${env.TERM_PROGRAM_VERSION?` v${env.TERM_PROGRAM_VERSION}`:""}`:"(unset)";return[`terminal: TERM=${show(env.TERM)} TERM_PROGRAM=${program} COLORTERM=${show(env.COLORTERM)}`,` running inside a multiplexer: ${multiplexerLabel(env)}`]}function parseKittyProbeReply(data){let kitty=data.match(/\x1b\[\?(\d+)u/);if(kitty?.[1]!==void 0)return{kind:"supported",flags:Number.parseInt(kitty[1],10)};if(/\x1b\[\?[\d;]*c/.test(data))return{kind:"unsupported"};return null}function kittyProbeLine(result){switch(result.kind){case"supported":return` kitty keyboard protocol: \u2713 answered (flags=${result.flags})`;case"unsupported":return[" kitty keyboard protocol: \u2717 not supported \u2014 legacy key path"," (ctrl+h/ctrl+j arrive as C0 backspace/linefeed bytes; the"," split chords ctrl+\\ and ctrl+= cannot be encoded at all)"].join(`
5
5
  `);case"no-response":return" kitty keyboard protocol: ? no reply (terminal ignored both the kitty query and DA1)";case"skipped":return` kitty keyboard protocol: skipped (${result.reason})`}}async function probeKittyKeyboard(timeoutMs=300){let stdin=process.stdin;if(!stdin.isTTY||!process.stdout.isTTY)return{kind:"skipped",reason:"not an interactive terminal"};let wasRaw=stdin.isRaw===!0,buffer="";return await new Promise((resolve)=>{let done=!1,finish=(result)=>{if(done)return;if(done=!0,clearTimeout(timer),stdin.off("data",onData),stdin.pause(),!wasRaw)stdin.setRawMode(!1);resolve(result)},onData=(chunk)=>{buffer+=chunk.toString("latin1");let decided=parseKittyProbeReply(buffer);if(decided)finish(decided)},timer=setTimeout(()=>finish({kind:"no-response"}),timeoutMs);stdin.setRawMode(!0),stdin.resume(),stdin.on("data",onData),process.stdout.write("\x1B[?u\x1B[c")})}async function terminalDoctorLines(){return[...terminalEnvLines(process.env),kittyProbeLine(await probeKittyKeyboard())]}async function probeGit(){try{let proc=Bun.spawn(["git","--version"],{stdin:"ignore",stdout:"pipe",stderr:"ignore"}),text=(await new Response(proc.stdout).text()).trim();if(await proc.exited===0&&text)return{line:`git: \u2713 ${text}`,found:!0}}catch{}return{line:"git: \u2717 not found on PATH",found:!1}}function binaryLabel(binary){return binary.found?`\u2713 ${binary.path}`:`\u2717 ${binary.error}`}async function probeEngines(){let statuses=await detectEngineStatuses(await probeableEngineIds()),lines=["engines:"];for(let status of statuses){let account=describeAccount(status.account),name=`${status.vendor.padEnd(7)} `;if(lines.push(` ${name}${binaryLabel(status.binary)}${status.binary.found?` \u2014 ${account}`:""}`),status.accountError)lines.push(` \u26A0 ${status.accountError}`)}let{usable,signedOut}=summarizeEngines(statuses);return{lines,anyUsable:usable.length>0,signedOut}}var CLI_NAME=ROVE_PRODUCT_NAME;function isProcessAlive(pid){try{return process.kill(pid,0),!0}catch(err){return err.code==="EPERM"}}async function requestIfReachable(socketPath,name){let client=new RoveDaemonClient(socketPath);try{return await client.request(name,{})}catch{return null}finally{client.close()}}function fmtDuration(ms){let seconds=Math.floor(ms/1000);if(seconds<60)return`${seconds}s`;let minutes=Math.floor(seconds/60);if(minutes<60)return`${minutes}m ${seconds%60}s`;return`${Math.floor(minutes/60)}h ${minutes%60}m`}function describeFile(path){try{let stat=statSync2(path);return`present (${formatBytes(stat.size)}, modified ${stat.mtime.toISOString()})`}catch{return"absent"}}function taskCount(path){try{let parsed=JSON.parse(readFileSync2(path,"utf8"));return Array.isArray(parsed.tasks)?parsed.tasks.length:null}catch{return null}}function tailFile(path,count){try{return readFileSync2(path,"utf8").split(`
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{stampResetGate}from"./chunk-k0tqjnbb.js";import{stopLegacyTmux}from"./chunk-gkdfct7t.js";import"./chunk-m9b8afhp.js";import{clearFrozenSessions}from"./chunk-49zrnjq1.js";import"./chunk-mqfvzdpr.js";import{stopDaemonProcess}from"./chunk-88cap497.js";import"./chunk-29b3pj9h.js";import"./chunk-96kvwzj8.js";import{errorMessage}from"./chunk-9gctbddn.js";import"./chunk-p84bhs57.js";import"./chunk-vfrxywtx.js";import"./chunk-pn5ygqn6.js";import"./chunk-w8da1czv.js";import"./chunk-k0yjcgd8.js";import"./chunk-yt15y085.js";import{defaultDaemonPidPath,defaultDaemonSocketPath,defaultPtyFreezeDir,defaultPtyHostPidPath,defaultPtyHostSocketPath}from"./chunk-7kgksv06.js";import{kvStatePath,legacyRoveKvStatePath,legacyRoveStateDir,roveStateDir}from"./chunk-8143k3t6.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-91sykzqq.js";import{readFileSync}from"fs";import{unlink}from"fs/promises";import{join}from"path";import{createInterface}from"readline";var CLI_NAME=ROVE_PRODUCT_NAME;function printUsage(out){out.write([`Usage: ${CLI_NAME} reset [--hard] [--yes]`,"","Recover a wedged install: stop the daemon, Hosted PTY host, and any pre-v0.8 tmux sessions.","This ends background terminal and engine sessions; the next launch starts fresh.","Never touches your git worktrees.","","Options:"," --hard Also DELETE the task index and the whole settings file"," (saved projects, custom engines, theme, language, onboarding)"," -y, --yes Skip the interactive confirmation. REQUIRED without a terminal;"," a non-interactive run without it exits 2 and changes nothing."," -h, --help Print this help",""].join(`
2
+ import{stampResetGate}from"./chunk-y9j708v1.js";import{stopLegacyTmux}from"./chunk-gkdfct7t.js";import"./chunk-3prnp53k.js";import{clearFrozenSessions}from"./chunk-49zrnjq1.js";import"./chunk-mqfvzdpr.js";import{stopDaemonProcess}from"./chunk-88cap497.js";import"./chunk-29b3pj9h.js";import"./chunk-96kvwzj8.js";import{errorMessage}from"./chunk-9gctbddn.js";import"./chunk-p84bhs57.js";import"./chunk-vfrxywtx.js";import"./chunk-pn5ygqn6.js";import"./chunk-w8da1czv.js";import"./chunk-k0yjcgd8.js";import"./chunk-yt15y085.js";import{defaultDaemonPidPath,defaultDaemonSocketPath,defaultPtyFreezeDir,defaultPtyHostPidPath,defaultPtyHostSocketPath}from"./chunk-7kgksv06.js";import{kvStatePath,legacyRoveKvStatePath,legacyRoveStateDir,roveStateDir}from"./chunk-8143k3t6.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-91sykzqq.js";import{readFileSync}from"fs";import{unlink}from"fs/promises";import{join}from"path";import{createInterface}from"readline";var CLI_NAME=ROVE_PRODUCT_NAME;function printUsage(out){out.write([`Usage: ${CLI_NAME} reset [--hard] [--yes]`,"","Recover a wedged install: stop the daemon, Hosted PTY host, and any pre-v0.8 tmux sessions.","This ends background terminal and engine sessions; the next launch starts fresh.","Never touches your git worktrees.","","Options:"," --hard Also DELETE the task index and the whole settings file"," (saved projects, custom engines, theme, language, onboarding)"," -y, --yes Skip the interactive confirmation. REQUIRED without a terminal;"," a non-interactive run without it exits 2 and changes nothing."," -h, --help Print this help",""].join(`
3
3
  `))}function taskCount(path){try{let parsed=JSON.parse(readFileSync(path,"utf8"));return Array.isArray(parsed.tasks)?parsed.tasks.length:null}catch{return null}}function stateSummary(path){let parsed;try{parsed=JSON.parse(readFileSync(path,"utf8"))}catch{return[]}let count=(key)=>Array.isArray(parsed[key])?parsed[key].length:0,lines=[` saved projects: ${count("savedRepos")}`,` custom engines: ${count("customEngineIds")} (their launch commands live here and nowhere else)`],present=[["activeTheme","theme"],["defaultVendor","default engine"],["locale","language"],["onboarded","onboarding (the wizard runs again)"]].filter(([key])=>parsed[key]!==void 0).map(([,label])=>label);if(present.length>0)lines.push(` also set: ${present.join(", ")}`);return lines.push(` ${Object.keys(parsed).length} setting(s) in total`),lines}async function confirmTty(prompt){let readline=createInterface({input:process.stdin,output:process.stdout});try{let answer=await new Promise((resolve)=>readline.question(prompt,resolve));return/^y(es)?$/i.test(answer.trim())}finally{readline.close()}}async function removeStateFile(path,label){try{await unlink(path),console.log(` removed ${label} (${path})`)}catch(err){if(err.code==="ENOENT")console.log(` ${label}: already absent`);else throw Error(`failed to remove ${label} (${path}): ${errorMessage(err)}`)}}async function runResetSubcommand(argv){if(argv.some((arg)=>arg==="--help"||arg==="-h"||arg==="help")){printUsage(process.stdout);return}let known=new Set(["--hard","--yes","-y"]),unknown=argv.find((arg)=>!known.has(arg));if(unknown!==void 0)process.stderr.write(`${CLI_NAME} reset: unknown argument "${unknown}"
4
4
 
5
5
  `),printUsage(process.stderr),process.exit(2);let hard=argv.includes("--hard"),yes=argv.includes("--yes")||argv.includes("-y"),daemonSocket=defaultDaemonSocketPath(),tasksPath=join(roveStateDir(),"tasks.json"),legacyTasksPath=join(legacyRoveStateDir(),"tasks.json"),statePath=kvStatePath(),legacyStatePath=legacyRoveKvStatePath();if(console.log(`${CLI_NAME} reset will:`),console.log(" \u2022 stop the Rove daemon (graceful \u2192 SIGTERM \u2192 SIGKILL)"),console.log(` \u2022 remove its socket + pidfile (${daemonSocket})`),console.log(" \u2022 stop the standalone Hosted PTY host and all background terminal/engine sessions"),console.log(" \u2022 stop any pre-v0.8 tmux sessions after SIGTERM-ing their pane process groups"),hard){let count=taskCount(tasksPath)??taskCount(legacyTasksPath);console.log(` \u2022 DELETE the task index${count===null?"":` (${count} task(s))`} \u2014 ${tasksPath}`),console.log(` \u2022 DELETE the whole settings file \u2014 ${statePath}`);for(let line of stateSummary(statePath))console.log(line);console.log(" \u2022 DELETE the pre-Rove task/UI indexes too, so migration cannot restore reset state")}if(console.log(" \u2022 NOT touch your git worktrees under ~/.rove/worktrees/ or existing repo-local roots"),!hard)console.log(" (your task list, settings & worktrees are kept \u2014 add --hard to also delete the task index and settings file)");if(!yes){if(!process.stdin.isTTY){console.log(`
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{BREAKING_VERSIONS,CURRENT_VERSION,compareSemver}from"./chunk-m9b8afhp.js";import{loadStateFile,patchStateFile}from"./chunk-p84bhs57.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";var LAST_RUN_VERSION_KEY="app.lastRunVersion";function resetGateBlockers(lastRun,current=CURRENT_VERSION,breaking=BREAKING_VERSIONS){if(typeof lastRun!=="string"||lastRun.length===0)return[];let[lo,hi]=compareSemver(lastRun,current)<=0?[lastRun,current]:[current,lastRun];return breaking.filter((b)=>compareSemver(b,lo)>0&&compareSemver(b,hi)<=0)}function enforceResetGate(){let cliName=ROVE_PRODUCT_NAME,lastRun=loadStateFile()[LAST_RUN_VERSION_KEY],blockers=resetGateBlockers(lastRun);if(blockers.length>0){let from=typeof lastRun==="string"?lastRun:"unknown";console.error([`${cliName} ${CURRENT_VERSION}: cannot start \u2014 version ${blockers.join(", ")} introduced breaking changes`,`(last run: ${from}). Your daemon/session state may be incompatible.`,"","Run:",` ${cliName} reset # stop daemon + PTY host + sessions (tasks kept)`,` ${cliName} reset --hard # additionally wipe the task index + UI state`,"","Then relaunch Rove. Worktrees are never touched."].join(`
2
+ import{BREAKING_VERSIONS,CURRENT_VERSION,compareSemver}from"./chunk-3prnp53k.js";import{loadStateFile,patchStateFile}from"./chunk-p84bhs57.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";var LAST_RUN_VERSION_KEY="app.lastRunVersion";function resetGateBlockers(lastRun,current=CURRENT_VERSION,breaking=BREAKING_VERSIONS){if(typeof lastRun!=="string"||lastRun.length===0)return[];let[lo,hi]=compareSemver(lastRun,current)<=0?[lastRun,current]:[current,lastRun];return breaking.filter((b)=>compareSemver(b,lo)>0&&compareSemver(b,hi)<=0)}function enforceResetGate(){let cliName=ROVE_PRODUCT_NAME,lastRun=loadStateFile()[LAST_RUN_VERSION_KEY],blockers=resetGateBlockers(lastRun);if(blockers.length>0){let from=typeof lastRun==="string"?lastRun:"unknown";console.error([`${cliName} ${CURRENT_VERSION}: cannot start \u2014 version ${blockers.join(", ")} introduced breaking changes`,`(last run: ${from}). Your daemon/session state may be incompatible.`,"","Run:",` ${cliName} reset # stop daemon + PTY host + sessions (tasks kept)`,` ${cliName} reset --hard # additionally wipe the task index + UI state`,"","Then relaunch Rove. Worktrees are never touched."].join(`
3
3
  `)),process.exit(1)}if(lastRun!==CURRENT_VERSION)stampResetGate()}function stampResetGate(){try{patchStateFile({[LAST_RUN_VERSION_KEY]:CURRENT_VERSION})}catch{}}
4
4
  export{LAST_RUN_VERSION_KEY,enforceResetGate,stampResetGate};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{preferredReleaseChannel}from"./chunk-c5aw9yrt.js";import{discoverMachine,remoteRove,runOnMachine}from"./chunk-m781veb4.js";var DEFAULTS={version:async(entry)=>{let found=await discoverMachine(entry.alias,entry);return found.ok?found.status.roveVersion||null:null},installed:async(entry)=>{let out=await runOnMachine(entry.alias,entry,remoteRove(entry.roveBin,["--version"]),{timeoutMs:30000});return/\b(\d+\.\d+\.\d+\S*)/.exec(out.stdout)?.[1]??null},run:(entry,args,timeoutMs)=>runOnMachine(entry.alias,entry,remoteRove(entry.roveBin,args),{timeoutMs}),channel:preferredReleaseChannel},lastLines=(run)=>`${run.stdout}
2
+ import{preferredReleaseChannel}from"./chunk-mct40bd0.js";import{discoverMachine,remoteRove,runOnMachine}from"./chunk-m781veb4.js";var DEFAULTS={version:async(entry)=>{let found=await discoverMachine(entry.alias,entry);return found.ok?found.status.roveVersion||null:null},installed:async(entry)=>{let out=await runOnMachine(entry.alias,entry,remoteRove(entry.roveBin,["--version"]),{timeoutMs:30000});return/\b(\d+\.\d+\.\d+\S*)/.exec(out.stdout)?.[1]??null},run:(entry,args,timeoutMs)=>runOnMachine(entry.alias,entry,remoteRove(entry.roveBin,args),{timeoutMs}),channel:preferredReleaseChannel},lastLines=(run)=>`${run.stdout}
3
3
  ${run.stderr}`.trim().split(`
4
4
  `).slice(-6).join(`
5
5
  `)||`exit ${run.exitCode}`;async function upgradeMachine(entry,overrides={}){let deps={...DEFAULTS,...overrides},{alias}=entry,from=await deps.version(entry),install=await deps.run(entry,["update","--channel",deps.channel()],600000);if(install.exitCode!==0)throw Error(`rove update on ${alias} failed:
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{booleanFlagsOf,callVerb,errorBody,errorEnvelope,repeatableFlagsOf,runVerb,successEnvelope,toApiError}from"./chunk-z4017ss3.js";import{VerbArgs,apiUsage,findVerb,parseFlags,unknownVerbError,validateAgainstSpec,verbHelp}from"./chunk-79rmjvqm.js";import{ensurePluginEnginesLoaded}from"./chunk-w14jz8pd.js";import{openDaemonSession}from"./chunk-9y21c892.js";import{AUTO_MACHINE,LOCAL_MACHINE,addStaysHere,forwardVerb,pickMachine,repoHosts,requireMachine,routeTarget,takeIdentityWarning}from"./chunk-ssyt8vmv.js";import{ApiError,requireVerbInstalled,verbInstalled}from"./chunk-jz1kj4sf.js";import{argvHasFlag}from"./chunk-zsfyj36g.js";import{ROVE_API_VERSION}from"./chunk-96kvwzj8.js";import{errorMessage}from"./chunk-9gctbddn.js";function takeMachineFlag(argv){let rest=[],machine;for(let i=0;i<argv.length;i++){let arg=argv[i];if(arg==="--machine")machine=argv[i+1],i+=1;else if(arg.startsWith("--machine="))machine=arg.slice(10);else rest.push(arg)}return{machine:machine||void 0,rest}}function forwardParams(verb,flags){if(!flags.has("prompt-file")||!verb.flags.some((f)=>f.name==="prompt"))return Object.fromEntries(flags);let text=new VerbArgs(verb,flags).promptText(),params=Object.fromEntries([...flags].filter(([name])=>name!=="prompt-file"));return text===void 0?params:{...params,prompt:text}}var envelopeMode=!1;function writeJson(value,pretty,stream=process.stdout){stream.write(`${pretty?JSON.stringify(value,null,2):JSON.stringify(value)}
2
+ import{booleanFlagsOf,callVerb,errorBody,errorEnvelope,repeatableFlagsOf,runVerb,successEnvelope,toApiError}from"./chunk-01ekh175.js";import{VerbArgs,apiUsage,findVerb,parseFlags,unknownVerbError,validateAgainstSpec,verbHelp}from"./chunk-sjkk3jkf.js";import{ensurePluginEnginesLoaded}from"./chunk-w14jz8pd.js";import{openDaemonSession}from"./chunk-9y21c892.js";import{AUTO_MACHINE,LOCAL_MACHINE,addStaysHere,forwardVerb,pickMachine,repoHosts,requireMachine,routeTarget,takeIdentityWarning}from"./chunk-ssyt8vmv.js";import{ApiError,requireVerbInstalled,verbInstalled}from"./chunk-jz1kj4sf.js";import{argvHasFlag}from"./chunk-zsfyj36g.js";import{ROVE_API_VERSION}from"./chunk-96kvwzj8.js";import{errorMessage}from"./chunk-9gctbddn.js";function takeMachineFlag(argv){let rest=[],machine;for(let i=0;i<argv.length;i++){let arg=argv[i];if(arg==="--machine")machine=argv[i+1],i+=1;else if(arg.startsWith("--machine="))machine=arg.slice(10);else rest.push(arg)}return{machine:machine||void 0,rest}}function forwardParams(verb,flags){if(!flags.has("prompt-file")||!verb.flags.some((f)=>f.name==="prompt"))return Object.fromEntries(flags);let text=new VerbArgs(verb,flags).promptText(),params=Object.fromEntries([...flags].filter(([name])=>name!=="prompt-file"));return text===void 0?params:{...params,prompt:text}}var envelopeMode=!1;function writeJson(value,pretty,stream=process.stdout){stream.write(`${pretty?JSON.stringify(value,null,2):JSON.stringify(value)}
3
3
  `)}function emit(value,pretty){let warning=takeIdentityWarning(),payload=warning&&value&&typeof value==="object"&&!Array.isArray(value)?{...value,identityWarning:warning}:value;writeJson(envelopeMode?successEnvelope(payload):payload,pretty)}function fail(message,code,exitCode=1,data){let error=errorBody(new ApiError(message,code,data));if(envelopeMode)writeJson({apiVersion:ROVE_API_VERSION,ok:!1,error},!1);else writeJson({error},!1,process.stderr);process.exit(exitCode)}var USAGE_ERROR_CODES=new Set(["BAD_VERB","UNKNOWN_VERB","BAD_FLAG","MISSING_FLAG","MISSING_VERB","BAD_DAEMON","UNKNOWN_MACHINE"]);async function invokeVerb(verbName,argv,deps){return runVerb(verbName,{argv},deps)}async function runApiSubcommand(argv){let[verbName,...withMachine]=argv,{machine,rest}=takeMachineFlag(withMachine);if(envelopeMode=argvHasFlag(rest,"--envelope"),!verbName||verbName==="--help"||verbName==="-h"||verbName==="help"){if(!verbName)fail(apiUsage(),"MISSING_VERB",2);process.stdout.write(`${apiUsage()}
4
4
  `);return}ensurePluginEnginesLoaded();let verb=findVerb(verbName);if(!verb){let err=unknownVerbError(verbName);fail(`${err.message}
5
5
  ${apiUsage()}`,err.code,2,err.data)}let parsed;try{parsed=parseFlags(rest,booleanFlagsOf(verb),repeatableFlagsOf(verb))}catch(err){if(err instanceof ApiError)fail(err.message,err.code,2,err.data);fail(errorMessage(err),"BAD_FLAG",2)}if(parsed.help){if(!verbInstalled(verb))try{requireVerbInstalled(verb)}catch(err){if(err instanceof ApiError)fail(err.message,err.code,2,err.data)}process.stdout.write(`${verbHelp(verb)}
package/dist/cli/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{isPathLikeArg}from"./chunk-t10f6ybb.js";import{matchPathGlob}from"./chunk-kg11c1py.js";import{CURRENT_VERSION}from"./chunk-m9b8afhp.js";import{switchFlag}from"./chunk-zsfyj36g.js";import{expandTilde}from"./chunk-1feav1w3.js";import{errorMessage}from"./chunk-9gctbddn.js";import{rejectionReason}from"./chunk-mg1cas61.js";import{BUILTIN_VENDORS,coerceVendorId,isBuiltinVendor}from"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-8143k3t6.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import{__require}from"./chunk-91sykzqq.js";import{resolve}from"path";var DYNAMIC_COMMANDS=new Map([["completions",async(args)=>{let{runCompletionsSubcommand}=await import("./chunk-khcgbts9.js");await runCompletionsSubcommand(args)}],["export",async(args)=>{let{runExportSubcommand}=await import("./chunk-m45b6d19.js");await runExportSubcommand(args)}],["repo",async(args)=>{let{runRepoSubcommand}=await import("./chunk-843yxtz9.js");await runRepoSubcommand(args)}],["api",async(args)=>{let{runApiSubcommand}=await import("./chunk-7zkc31ax.js");await runApiSubcommand(args)}],["update",async(args)=>{let{runUpdateSubcommand}=await import("./chunk-592mrege.js");await runUpdateSubcommand(args)}],["theme",async(args)=>{let{runThemeSubcommand}=await import("./chunk-1s8etezx.js");await runThemeSubcommand(args)}],["feedback",async(args)=>{let{runFeedbackSubcommand}=await import("./chunk-6be8b4v2.js");await runFeedbackSubcommand(args)}],["daemon",async(args)=>{let{runDaemonSubcommand}=await import("./chunk-03t4t0sn.js");await runDaemonSubcommand(args)}],["machine",async(args)=>{let{runMachineSubcommand}=await import("./chunk-8y160wdx.js");await runMachineSubcommand(args)}],["weixin",async(args)=>{let{runChannelCli}=await import("./chunk-j96df7ae.js");await runChannelCli("weixin",args)}],["doctor",async(args)=>{let{runDoctorSubcommand}=await import("./chunk-zs428z6r.js");await runDoctorSubcommand(args)}],["config",async(args)=>{let{runConfigSubcommand}=await import("./chunk-f3j2vxw9.js");await runConfigSubcommand(args)}],["reset",async(args)=>{let{runResetSubcommand}=await import("./chunk-mezj6vmr.js");await runResetSubcommand(args)}],["pty-host",async(args)=>{let{runPtyHostSubcommand}=await import("./chunk-j93b42yv.js");await runPtyHostSubcommand(args)}],["skill",async(args)=>{let{runSkillSubcommand}=await import("./chunk-j92hev7v.js");await runSkillSubcommand(args)}],["plugin",async(args)=>{let{runPluginSubcommand}=await import("./chunk-25hw5fb2.js");await runPluginSubcommand(args)}],["remote-workspace",async(args)=>{let{runRemoteWorkspaceSubcommand}=await import("./chunk-9zm62ndy.js");await runRemoteWorkspaceSubcommand(args)}],["hook",async(args)=>{let{runHookSubcommand}=await import("./chunk-xnrnmkph.js");await runHookSubcommand(args)}]]);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|send|agent)"," 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 File a GitHub issue on the Rove repo",` 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(`
3
+ import{isPathLikeArg}from"./chunk-37sc43gb.js";import{matchPathGlob}from"./chunk-kg11c1py.js";import{CURRENT_VERSION}from"./chunk-3prnp53k.js";import{switchFlag}from"./chunk-zsfyj36g.js";import{expandTilde}from"./chunk-1feav1w3.js";import{errorMessage}from"./chunk-9gctbddn.js";import{rejectionReason}from"./chunk-mg1cas61.js";import{BUILTIN_VENDORS,coerceVendorId,isBuiltinVendor}from"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-8143k3t6.js";import{ROVE_PRODUCT_NAME}from"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import{__require}from"./chunk-91sykzqq.js";import{resolve}from"path";var DYNAMIC_COMMANDS=new Map([["completions",async(args)=>{let{runCompletionsSubcommand}=await import("./chunk-2mn87bwe.js");await runCompletionsSubcommand(args)}],["export",async(args)=>{let{runExportSubcommand}=await import("./chunk-m45b6d19.js");await runExportSubcommand(args)}],["repo",async(args)=>{let{runRepoSubcommand}=await import("./chunk-843yxtz9.js");await runRepoSubcommand(args)}],["api",async(args)=>{let{runApiSubcommand}=await import("./chunk-v893heq9.js");await runApiSubcommand(args)}],["update",async(args)=>{let{runUpdateSubcommand}=await import("./chunk-jxdc5g7p.js");await runUpdateSubcommand(args)}],["theme",async(args)=>{let{runThemeSubcommand}=await import("./chunk-1s8etezx.js");await runThemeSubcommand(args)}],["feedback",async(args)=>{let{runFeedbackSubcommand}=await import("./chunk-8jbcwja0.js");await runFeedbackSubcommand(args)}],["daemon",async(args)=>{let{runDaemonSubcommand}=await import("./chunk-90af74mn.js");await runDaemonSubcommand(args)}],["machine",async(args)=>{let{runMachineSubcommand}=await import("./chunk-6r1120mc.js");await runMachineSubcommand(args)}],["weixin",async(args)=>{let{runChannelCli}=await import("./chunk-maq0qvms.js");await runChannelCli("weixin",args)}],["doctor",async(args)=>{let{runDoctorSubcommand}=await import("./chunk-w4kbb5fa.js");await runDoctorSubcommand(args)}],["config",async(args)=>{let{runConfigSubcommand}=await import("./chunk-f3j2vxw9.js");await runConfigSubcommand(args)}],["reset",async(args)=>{let{runResetSubcommand}=await import("./chunk-xrfptza1.js");await runResetSubcommand(args)}],["pty-host",async(args)=>{let{runPtyHostSubcommand}=await import("./chunk-h90nwdg8.js");await runPtyHostSubcommand(args)}],["skill",async(args)=>{let{runSkillSubcommand}=await import("./chunk-bs6d1pkg.js");await runSkillSubcommand(args)}],["plugin",async(args)=>{let{runPluginSubcommand}=await import("./chunk-bfqpnera.js");await runPluginSubcommand(args)}],["remote-workspace",async(args)=>{let{runRemoteWorkspaceSubcommand}=await import("./chunk-0t81dyc8.js");await runRemoteWorkspaceSubcommand(args)}],["hook",async(args)=>{let{runHookSubcommand}=await import("./chunk-xnrnmkph.js");await runHookSubcommand(args)}]]);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|send|agent)"," 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 File a GitHub issue on the Rove repo",` 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(`
4
4
  `)}var bridge=()=>import("./chunk-g6z2d0ca.js"),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(`
5
5
  `);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-yt649tra.js");await runAddRemote(rest.slice(1));return}if(arg?.startsWith("-"))process.stderr.write(`${CLI_NAME} add: unknown flag "${arg}"
6
6
 
@@ -23,4 +23,4 @@ ${ADOPT_USAGE}
23
23
  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(`
24
24
  no worktrees match glob ${JSON.stringify(glob)}`);return}if(!yes){console.log(`
25
25
  ${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()}
26
- `)}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-e62qpmrh.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-j92hev7v.js");await runSkillSubcommand(["print"]);return}if(subcommand==="--web"){let{runWebSubcommand}=await import("./chunk-f7kaxhs0.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)){let{runOpenDirectory}=await import("./chunk-c9jdz10a.js");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-j34tg4mx.js");await launchTui()}var cliDone=main().catch(async(err)=>{let{formatCliFailure}=await import("./chunk-23xz053h.js");console.error(formatCliFailure(err,{cliName:CLI_NAME,argv:process.argv,cwd:process.cwd(),env:process.env})),process.exit(1)});export{cliDone};
26
+ `)}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-hbnnbbpd.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-bs6d1pkg.js");await runSkillSubcommand(["print"]);return}if(subcommand==="--web"){let{runWebSubcommand}=await import("./chunk-05vpa04d.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)){let{runOpenDirectory}=await import("./chunk-a3yt083k.js");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-9k60sxq2.js");await launchTui()}var cliDone=main().catch(async(err)=>{let{formatCliFailure}=await import("./chunk-23xz053h.js");console.error(formatCliFailure(err,{cliName:CLI_NAME,argv:process.argv,cwd:process.cwd(),env:process.env})),process.exit(1)});export{cliDone};
package/dist/cli/rove.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import{join as u}from"node:path";import{createInterface as a}from"node:readline/promises";import{pathToFileURL as tt}from"node:url";import{spawnSync as z}from"node:child_process";import{constants as O,accessSync as P}from"node:fs";import{homedir as V}from"node:os";import{basename as R,delimiter as I,dirname as U,join as x}from"node:path";import{fileURLToPath as C}from"node:url";var Z={$schema:"https://json.schemastore.org/package.json",name:"@sma1lboy/rove",version:"0.9.294",description:"Rove: all your coding agents, in one place. An agentic development environment (ADE) for your terminal: Claude Code, Codex, Copilot and more, side by side in isolated worktrees, handing tasks to each other.",keywords:["terminal","tui","cli","ade","agentic-development-environment","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/voice","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","rove-bench":"bun --conditions=browser scripts/rove-bench.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.8.4","@opentui/react":"0.8.4","@xterm/addon-serialize":"^0.14.0","@xterm/addon-unicode11":"^0.9.0","@xterm/headless":"^6.0.0",react:"^19.2.8","smol-toml":"^1.7.1",ws:"^8.21.3",yaml:"^2.9.0"},optionalDependencies:{"@sma1lboy/opentui-rove-darwin-arm64":"0.8.4-rove.1","@sma1lboy/opentui-rove-linux-x64":"0.8.4-rove.1","node-pty":"^1.1.0"},devDependencies:{"@biomejs/biome":"1.9.4","@sma1lboy/rove-daemon":"0.7.23","@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.55","rove-weixin":"0.0.55",typescript:"5.8.2",vitest:"2.1.9"},trustedDependencies:[]};var d="rove";var y=d;var o="ROVE_BUN",_="ROVE_NO_BUN_BOOTSTRAP",G="ROVE_SKIP_BUN_CHECK",k=Z.engines.bun.match(/\d+\.\d+\.\d+/)?.[0]??"0.0.0",H=(t)=>{try{return P(t,O.X_OK),!0}catch{return!1}},B=(t)=>t==="win32"?"bun.exe":"bun",f=(t)=>{let s=z(t,["--version"],{encoding:"utf8",timeout:5000});if(s.error||s.status!==0)return null;return s.stdout?.split(`
3
- `)[0]?.trim()??""};function v(t){return t.trim().match(/^v?(\d+\.\d+\.\d+)/)?.[1]??null}function $(t,s=k){let c=v(t),b=v(s);if(!c||!b)return!0;let g=c.split(".").map(Number),i=b.split(".").map(Number);for(let r=0;r<3;r++){let W=g[r]??0,e=i[r]??0;if(W!==e)return W>e}return!0}function J(t=process.env){return t[G]==="1"}function h(t={}){let s=t.env??process.env,c=t.platform??process.platform,b=t.home??s.HOME??s.USERPROFILE??V(),g=B(c),i=[],r=s[o]?.trim();if(r)i.push(r);for(let Y of(s.PATH??s.Path??"").split(I))if(Y)i.push(x(Y,g));let W=s.BUN_INSTALL?.trim();if(W)i.push(x(W,"bin",g));if(b)i.push(x(b,".bun","bin",g));let e=t.launcherDir;if(e)i.push(x(e,"..","..","node_modules","bun","bin",g)),i.push(x(e,"..","..","..","bun","bin",g));return i}function N(t={}){let s=t.isExecutable??H;return h(t).find((c)=>s(c))??null}function Q(t={}){let s=t.isExecutable??H,c=t.bunVersionOf??f;if(J(t.env??process.env))return{bun:N(t),stale:null,unusable:null};let b=null,g=null;for(let i of h(t)){if(!s(i))continue;let r=c(i);if(r===null){g??=i;continue}if($(r))return{bun:i,stale:b,unusable:g};b??={path:i,version:v(r)??r}}return{bun:null,stale:b,unusable:g}}function q(t){return U(C(t))}function A(t){return R(C(t)).replace(/\.[cm]?[jt]s$/,"")}function n(t=process.platform){return t==="win32"?["powershell","-NoProfile","-Command","irm bun.sh/install.ps1 | iex"]:["bash","-c","curl -fsSL https://bun.sh/install | bash"]}function K(t=y,s=process.platform){let c=s==="win32"?'powershell -c "irm bun.sh/install.ps1 | iex"':"curl -fsSL https://bun.sh/install | bash";return[`${t}: 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: ${o}=/path/to/bun`,""].join(`
2
+ import{join as u}from"node:path";import{createInterface as a}from"node:readline/promises";import{pathToFileURL as tt}from"node:url";import{spawnSync as z}from"node:child_process";import{constants as O,accessSync as P}from"node:fs";import{homedir as V}from"node:os";import{basename as R,delimiter as I,dirname as U,join as x}from"node:path";import{fileURLToPath as C}from"node:url";var Z={$schema:"https://json.schemastore.org/package.json",name:"@sma1lboy/rove",version:"0.9.295-next.320",description:"Rove: all your coding agents, in one place. An agentic development environment (ADE) for your terminal: Claude Code, Codex, Copilot and more, side by side in isolated worktrees, handing tasks to each other.",keywords:["terminal","tui","cli","ade","agentic-development-environment","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/voice","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","rove-bench":"bun --conditions=browser scripts/rove-bench.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.8.4","@opentui/react":"0.8.4","@xterm/addon-serialize":"^0.14.0","@xterm/addon-unicode11":"^0.9.0","@xterm/headless":"^6.0.0",react:"^19.2.8","smol-toml":"^1.7.1",ws:"^8.21.3",yaml:"^2.9.0"},optionalDependencies:{"@sma1lboy/opentui-rove-darwin-arm64":"0.8.4-rove.1","@sma1lboy/opentui-rove-linux-x64":"0.8.4-rove.1","node-pty":"^1.1.0"},devDependencies:{"@biomejs/biome":"1.9.4","@sma1lboy/rove-daemon":"0.7.23","@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.55","rove-weixin":"0.0.55",typescript:"5.8.2",vitest:"2.1.9"},trustedDependencies:[]};var d="rove";var y=d;var o="ROVE_BUN",_="ROVE_NO_BUN_BOOTSTRAP",G="ROVE_SKIP_BUN_CHECK",k=Z.engines.bun.match(/\d+\.\d+\.\d+/)?.[0]??"0.0.0",H=(t)=>{try{return P(t,O.X_OK),!0}catch{return!1}},B=(t)=>t==="win32"?"bun.exe":"bun",f=(t)=>{let s=z(t,["--version"],{encoding:"utf8",timeout:5000});if(s.error||s.status!==0)return null;return s.stdout?.split(`
3
+ `)[0]?.trim()??""};function v(t){return t.trim().match(/^v?(\d+\.\d+\.\d+)/)?.[1]??null}function $(t,s=k){let c=v(t),b=v(s);if(!c||!b)return!0;let g=c.split(".").map(Number),i=b.split(".").map(Number);for(let r=0;r<3;r++){let W=g[r]??0,p=i[r]??0;if(W!==p)return W>p}return!0}function J(t=process.env){return t[G]==="1"}function h(t={}){let s=t.env??process.env,c=t.platform??process.platform,b=t.home??s.HOME??s.USERPROFILE??V(),g=B(c),i=[],r=s[o]?.trim();if(r)i.push(r);for(let Y of(s.PATH??s.Path??"").split(I))if(Y)i.push(x(Y,g));let W=s.BUN_INSTALL?.trim();if(W)i.push(x(W,"bin",g));if(b)i.push(x(b,".bun","bin",g));let p=t.launcherDir;if(p)i.push(x(p,"..","..","node_modules","bun","bin",g)),i.push(x(p,"..","..","..","bun","bin",g));return i}function N(t={}){let s=t.isExecutable??H;return h(t).find((c)=>s(c))??null}function Q(t={}){let s=t.isExecutable??H,c=t.bunVersionOf??f;if(J(t.env??process.env))return{bun:N(t),stale:null,unusable:null};let b=null,g=null;for(let i of h(t)){if(!s(i))continue;let r=c(i);if(r===null){g??=i;continue}if($(r))return{bun:i,stale:b,unusable:g};b??={path:i,version:v(r)??r}}return{bun:null,stale:b,unusable:g}}function q(t){return U(C(t))}function A(t){return R(C(t)).replace(/\.[cm]?[jt]s$/,"")}function n(t=process.platform){return t==="win32"?["powershell","-NoProfile","-Command","irm bun.sh/install.ps1 | iex"]:["bash","-c","curl -fsSL https://bun.sh/install | bash"]}function K(t=y,s=process.platform){let c=s==="win32"?'powershell -c "irm bun.sh/install.ps1 | iex"':"curl -fsSL https://bun.sh/install | bash";return[`${t}: 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: ${o}=/path/to/bun`,""].join(`
4
4
  `)}function X(t,s,c=y){return[`${c}: this machine's Bun is too old for Rove — found ${s} at ${t}, need ${k} 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: ${o}=/path/to/bun`,`Run on this one anyway (unsupported, terminals will be blank): ${G}=1`,""].join(`
5
5
  `)}function T(t,s=y){return[`${s}: the Bun at ${t} could not be run — \`${t} --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: ${o}=/path/to/bun`,""].join(`
6
6
  `)}function F(t=process.env,s=process.stdin,c=process.stdout){if(t[_]==="1")return!1;if(t.CI==="true"||t.CI==="1")return!1;return Boolean(s.isTTY&&c.isTTY)}function L(t={},s=z){let c=t.platform??process.platform,[b,...g]=n(c);if(!b)return null;let i=s(b,g,{stdio:"inherit"});if(i.error||i.status!==0)return null;return Q(t).bun}function l(t){if(typeof t.status==="number")return t.status;if(t.signal)return 128+(Object.hasOwn(j,t.signal)?j[t.signal]:0);return 1}var j={SIGINT:2,SIGQUIT:3,SIGKILL:9,SIGTERM:15};function m(t,s,c,b=z){let g=b(t,[s,...c],{stdio:"inherit"});if(g.error)return process.stderr.write(`rove: could not start Bun at ${t}: ${g.error.message}. Check that this path is executable, or reinstall Bun from https://bun.sh.
7
- `),1;return l(g)}var M=q(import.meta.url),p=A(import.meta.url),D=u(M,`${p}-run.js`);async function st(t){let s=a({input:process.stdin,output:process.stdout});try{let c=(await s.question(t)).trim().toLowerCase();return c===""||c==="y"||c==="yes"}finally{s.close()}}async function ct(){let t={launcherDir:M},s=Q(t);if(s.bun||!F())return s;let c=s.stale?`${p}: Bun ${s.stale.version} is too old for Rove (needs ${k}+). Install the latest Bun now? [Y/n] `:`${p}: Rove runs on the Bun runtime, and none is installed. Install Bun now? [Y/n] `;if(!await st(c))return s;return{bun:L(t),stale:s.stale,unusable:s.unusable}}var w=globalThis.Bun;if(w){let t=w.version;if(t&&!J()&&!$(t))process.stderr.write(X(process.execPath,t,p)),process.exit(1);await import(tt(D).href)}else{let{bun:t,stale:s,unusable:c}=await ct();if(!t){let b=s?X(s.path,s.version,p):c?T(c,p):K(p);process.stderr.write(b),process.exit(1)}process.exit(m(t,D,process.argv.slice(2)))}
7
+ `),1;return l(g)}var M=q(import.meta.url),e=A(import.meta.url),D=u(M,`${e}-run.js`);async function st(t){let s=a({input:process.stdin,output:process.stdout});try{let c=(await s.question(t)).trim().toLowerCase();return c===""||c==="y"||c==="yes"}finally{s.close()}}async function ct(){let t={launcherDir:M},s=Q(t);if(s.bun||!F())return s;let c=s.stale?`${e}: Bun ${s.stale.version} is too old for Rove (needs ${k}+). Install the latest Bun now? [Y/n] `:`${e}: Rove runs on the Bun runtime, and none is installed. Install Bun now? [Y/n] `;if(!await st(c))return s;return{bun:L(t),stale:s.stale,unusable:s.unusable}}var w=globalThis.Bun;if(w){let t=w.version;if(t&&!J()&&!$(t))process.stderr.write(X(process.execPath,t,e)),process.exit(1);await import(tt(D).href)}else{let{bun:t,stale:s,unusable:c}=await ct();if(!t){let b=s?X(s.path,s.version,e):c?T(c,e):K(e);process.stderr.write(b),process.exit(1)}process.exit(m(t,D,process.argv.slice(2)))}
@@ -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: 127 — bump in lockstep with ROVE_SKILL_VERSION (src/lib/skill-install.ts). -->
6
+ <!-- rove-skill-version: 128 — bump in lockstep with ROVE_SKILL_VERSION (src/lib/skill-install.ts). -->
7
7
 
8
8
  # Rove shell control
9
9
 
@@ -287,7 +287,7 @@ Find your section by what you were ASKED, not by Rove's noun for it:
287
287
  | which engines exist, report a Rove problem or idea | discover / feedback |
288
288
  | an error code came back, `nextCommandArgs` | Error codes |
289
289
 
290
- When the user says anything in Rove itself is awkward, broken or missing, offer to file it right away: draft a short title and body, show it, and on their OK run `rove feedback --kind bug|idea|question --title … --body-file -` (body on stdin), then share the URL. If it prints a prefilled link instead, hand that over and say to run `gh auth login`. Only for Rove; another project's bug is a `send` to its main task.
290
+ When the user says anything in Rove itself is awkward, broken or missing, offer to file it right away: draft a short title and body, show it, and on their OK run `rove feedback --kind bug|idea|question --title … --body-file -` (body on stdin), then share the URL. If it prints a prefilled link instead, hand that over and say to run `gh auth login`. Only for Rove; another project's bug is a `send` to that project's row (`list`, `kind: "main"`), which starts a new session there, or to the task the user named.
291
291
 
292
292
  Reach for `schema` when the binary and that file disagree.
293
293