@sma1lboy/rove 0.9.296 → 0.9.297-next.337

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 (123) hide show
  1. package/dist/cli/{chunk-by8qsfpw.js → chunk-02dnpr84.js} +3 -6
  2. package/dist/cli/{chunk-yb90vkjq.js → chunk-02fvj8jj.js} +8 -8
  3. package/dist/cli/{chunk-01v7c774.js → chunk-05j6n3dy.js} +1 -1
  4. package/dist/cli/{chunk-w56terew.js → chunk-0b3mxres.js} +1 -1
  5. package/dist/cli/{chunk-xspfqx0x.js → chunk-0s0f2m0h.js} +1 -1
  6. package/dist/cli/{chunk-kvj8s9ck.js → chunk-0tz899zd.js} +1 -1
  7. package/dist/cli/{chunk-8cw8zznb.js → chunk-1dxpkpqv.js} +1 -1
  8. package/dist/cli/{chunk-f3283nz1.js → chunk-1mcwwjdt.js} +1 -1
  9. package/dist/cli/{chunk-8v27b5cc.js → chunk-1p9arh3n.js} +1 -1
  10. package/dist/cli/{chunk-cwzwkqtn.js → chunk-1t7nedq5.js} +1 -1
  11. package/dist/cli/{chunk-bpj7vk5n.js → chunk-1tn8kb6y.js} +1 -1
  12. package/dist/cli/{chunk-x0as3qp6.js → chunk-1x34sdat.js} +1 -1
  13. package/dist/cli/{chunk-qdatysve.js → chunk-27hpzddr.js} +1 -1
  14. package/dist/cli/{chunk-kpatnxjs.js → chunk-2gd3wnza.js} +1 -1
  15. package/dist/cli/{chunk-qjr36jpm.js → chunk-2gte2kv5.js} +1 -1
  16. package/dist/cli/{chunk-c0gdgahx.js → chunk-2j4nng9y.js} +1 -1
  17. package/dist/cli/{chunk-mb1tythq.js → chunk-32es1ykk.js} +3 -3
  18. package/dist/cli/{chunk-sfhj74g9.js → chunk-34ec6fs4.js} +1 -1
  19. package/dist/cli/{chunk-mz82b1jf.js → chunk-3spvd3vw.js} +1 -1
  20. package/dist/cli/{chunk-qcdznw50.js → chunk-3yx9cd91.js} +1 -1
  21. package/dist/cli/{chunk-xqp838p0.js → chunk-3zyngx03.js} +1 -1
  22. package/dist/cli/{chunk-zjxz2v8a.js → chunk-4gt29avz.js} +1 -1
  23. package/dist/cli/{chunk-n2hz851r.js → chunk-4zc1jvcc.js} +1 -1
  24. package/dist/cli/{chunk-sj4dmdzp.js → chunk-4zzn4s1m.js} +1 -1
  25. package/dist/cli/{chunk-entdmr95.js → chunk-53nvp1cm.js} +2 -2
  26. package/dist/cli/{chunk-k2xtg52k.js → chunk-5fwm8fn5.js} +1 -1
  27. package/dist/cli/{chunk-2bgb2810.js → chunk-5s9yshk7.js} +1 -1
  28. package/dist/cli/{chunk-a1scaehn.js → chunk-6bfhcy6k.js} +1 -1
  29. package/dist/cli/{chunk-kdf7cq06.js → chunk-6drheddc.js} +5 -5
  30. package/dist/cli/{chunk-z3k0wg31.js → chunk-76gh55cc.js} +1 -1
  31. package/dist/cli/{chunk-1er9syxh.js → chunk-78x0h05c.js} +1 -1
  32. package/dist/cli/{chunk-c5xnhy0v.js → chunk-7ay57tgs.js} +1 -1
  33. package/dist/cli/{chunk-b2p959ft.js → chunk-7rjq8mbj.js} +1 -1
  34. package/dist/cli/chunk-8g6sb0q6.js +3 -0
  35. package/dist/cli/chunk-95pc2w9m.js +3 -0
  36. package/dist/cli/{chunk-wrptfjk1.js → chunk-9h97cmm1.js} +1 -1
  37. package/dist/cli/chunk-a503k6ds.js +13 -0
  38. package/dist/cli/{chunk-9gevsmy4.js → chunk-a696vmsn.js} +1 -1
  39. package/dist/cli/{chunk-yb00yrvr.js → chunk-a6pwb5qf.js} +4 -4
  40. package/dist/cli/{chunk-4bcxnk94.js → chunk-amx9axkn.js} +1 -1
  41. package/dist/cli/{chunk-6wmx34ha.js → chunk-b4fbghz1.js} +1 -1
  42. package/dist/cli/{chunk-a95aghfk.js → chunk-bmwr7x5e.js} +2 -2
  43. package/dist/cli/{chunk-632n6mt1.js → chunk-c296xy6x.js} +1 -1
  44. package/dist/cli/{chunk-avf521sy.js → chunk-ckyjn0av.js} +1 -1
  45. package/dist/cli/{chunk-bkhbaqt1.js → chunk-cn6qc47w.js} +1 -1
  46. package/dist/cli/{chunk-wcnb5vbx.js → chunk-d89mvn1k.js} +1 -1
  47. package/dist/cli/{chunk-7cptm3td.js → chunk-db0kdm4z.js} +1 -1
  48. package/dist/cli/{chunk-p7mc1c1g.js → chunk-dqcedeaw.js} +1 -1
  49. package/dist/cli/{chunk-5hphve8z.js → chunk-dz2m3cjw.js} +1 -1
  50. package/dist/cli/{chunk-8wfz7gyp.js → chunk-fgb5ev6w.js} +1 -1
  51. package/dist/cli/{chunk-dxyy3ep8.js → chunk-fmmn895c.js} +1 -1
  52. package/dist/cli/{chunk-h4vsddk4.js → chunk-fpqj5vqe.js} +1 -1
  53. package/dist/cli/{chunk-hsx9fbx1.js → chunk-fsas0egj.js} +1 -1
  54. package/dist/cli/{chunk-jjc3v2zc.js → chunk-h0ezf1yg.js} +1 -1
  55. package/dist/cli/{chunk-6zjbhrq2.js → chunk-hda3rmst.js} +1 -1
  56. package/dist/cli/{chunk-h57gekkj.js → chunk-j25q6bz5.js} +1 -1
  57. package/dist/cli/{chunk-brz4hsbt.js → chunk-jf49gpeb.js} +1 -1
  58. package/dist/cli/{chunk-ywwg5zxs.js → chunk-jmfxkahq.js} +1 -1
  59. package/dist/cli/{chunk-btzp2e5y.js → chunk-jmvzdp0t.js} +1 -1
  60. package/dist/cli/{chunk-em5gq23f.js → chunk-ka790mbb.js} +1 -1
  61. package/dist/cli/{chunk-mx2smec1.js → chunk-kcta89jz.js} +1 -1
  62. package/dist/cli/{chunk-3n1cq57r.js → chunk-kffnz94v.js} +1 -1
  63. package/dist/cli/{chunk-0pgc4zqm.js → chunk-kqem8ygn.js} +3 -3
  64. package/dist/cli/{chunk-70k6jpa7.js → chunk-kzb5x0cp.js} +5 -5
  65. package/dist/cli/{chunk-xw1gayhz.js → chunk-m9zj97y6.js} +1 -1
  66. package/dist/cli/chunk-mavz1h73.js +3 -0
  67. package/dist/cli/{chunk-e3bqjaff.js → chunk-md3xyfxb.js} +1 -1
  68. package/dist/cli/{chunk-y21c6jk8.js → chunk-mx1r6k70.js} +1 -1
  69. package/dist/cli/{chunk-wf5q5wm0.js → chunk-mz19jng6.js} +1 -1
  70. package/dist/cli/{chunk-4hvacnnr.js → chunk-ng0kaekc.js} +1 -1
  71. package/dist/cli/{chunk-44bh467x.js → chunk-nweeyjqj.js} +1 -1
  72. package/dist/cli/{chunk-37shgbcw.js → chunk-p1x2bcng.js} +1 -1
  73. package/dist/cli/{chunk-7jc8e7zj.js → chunk-p3e2vcx8.js} +12 -12
  74. package/dist/cli/{chunk-dz562xtj.js → chunk-p6fc4mze.js} +1 -1
  75. package/dist/cli/{chunk-9vt2v6k4.js → chunk-pd05zqce.js} +1 -1
  76. package/dist/cli/{chunk-tqa7aw5p.js → chunk-pqtwx9ty.js} +1 -1
  77. package/dist/cli/chunk-q7t4bnjn.js +3 -0
  78. package/dist/cli/{chunk-paxy7y8f.js → chunk-q9avp4wf.js} +1 -1
  79. package/dist/cli/{chunk-h72tns53.js → chunk-qck7a377.js} +1 -1
  80. package/dist/cli/{chunk-5pd144sp.js → chunk-qg26tp0c.js} +1 -1
  81. package/dist/cli/chunk-qm3vt4ra.js +8 -0
  82. package/dist/cli/{chunk-qc40t7z9.js → chunk-r80x9m80.js} +1 -1
  83. package/dist/cli/{chunk-sc5xvzb1.js → chunk-rhhffhn7.js} +1 -1
  84. package/dist/cli/{chunk-8e6j2507.js → chunk-s0t989c7.js} +1 -1
  85. package/dist/cli/{chunk-3cqyw1z8.js → chunk-sjdngs0f.js} +1 -1
  86. package/dist/cli/{chunk-10yyd82a.js → chunk-sty6nxzc.js} +1 -1
  87. package/dist/cli/{chunk-qg92cfsh.js → chunk-t89b4n6d.js} +1 -1
  88. package/dist/cli/{chunk-e0xzwcb7.js → chunk-t9vt4259.js} +1 -1
  89. package/dist/cli/{chunk-4k0k6f9v.js → chunk-tefep7b1.js} +1 -1
  90. package/dist/cli/{chunk-knnnymss.js → chunk-v6ckw0fe.js} +1 -1
  91. package/dist/cli/{chunk-mf2p3p9k.js → chunk-vdgtsda7.js} +1 -1
  92. package/dist/cli/{chunk-8tr2kq1p.js → chunk-w1qr186f.js} +1 -1
  93. package/dist/cli/{chunk-4vbk9z6n.js → chunk-w2g26k38.js} +1 -1
  94. package/dist/cli/{chunk-m9ssmhrc.js → chunk-x62wqf3s.js} +1 -1
  95. package/dist/cli/{chunk-g5jc6c2d.js → chunk-x8jpnh1n.js} +1 -1
  96. package/dist/cli/{chunk-jhnpr3cj.js → chunk-xq05a8a5.js} +1 -1
  97. package/dist/cli/{chunk-7j7sdn4p.js → chunk-xxf4t4ge.js} +1 -1
  98. package/dist/cli/{chunk-rr0cjy1v.js → chunk-ybwqj9mp.js} +1 -1
  99. package/dist/cli/{chunk-fmmfb3gy.js → chunk-ygr4zb4r.js} +4 -4
  100. package/dist/cli/{chunk-k291yw81.js → chunk-yqgnceba.js} +1 -1
  101. package/dist/cli/{chunk-n1nt3zx9.js → chunk-yrczh9ct.js} +1 -1
  102. package/dist/cli/{chunk-ekpyyfnd.js → chunk-yrgprggb.js} +1 -1
  103. package/dist/cli/{chunk-4bs5vsz3.js → chunk-ytr5x20b.js} +1 -1
  104. package/dist/cli/{chunk-cjf4hwav.js → chunk-z3y6c62g.js} +1 -1
  105. package/dist/cli/{chunk-ysw51r58.js → chunk-z9g1axf4.js} +1 -1
  106. package/dist/cli/{chunk-v9d9tfsg.js → chunk-zdxbf065.js} +1 -1
  107. package/dist/cli/{chunk-s9j0sbmf.js → chunk-znknvm7g.js} +1 -1
  108. package/dist/cli/{chunk-m70jtmkt.js → chunk-zw0p1wxc.js} +1 -1
  109. package/dist/cli/index.js +4 -4
  110. package/dist/cli/pty-host-node.mjs +1 -1
  111. package/dist/cli/rove.js +3 -3
  112. package/dist/skills/rove/SKILL.md +6 -4
  113. package/dist/skills/rove/references/api-flags.md +2 -2
  114. package/dist/web/assets/{index-CnmLR3Eh.js → index-VLiA_Vij.js} +35 -35
  115. package/dist/web/assets/{term-mount-QawNA0jJ.js → term-mount-CEw0hxaB.js} +1 -1
  116. package/dist/web/index.html +1 -1
  117. package/package.json +1 -1
  118. package/dist/cli/chunk-2jan428s.js +0 -13
  119. package/dist/cli/chunk-5c591htx.js +0 -3
  120. package/dist/cli/chunk-bytqgcde.js +0 -8
  121. package/dist/cli/chunk-c70kbg4m.js +0 -3
  122. package/dist/cli/chunk-hw1aj9sk.js +0 -3
  123. package/dist/cli/chunk-mj9bzcm8.js +0 -3
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{ReleaseNotesBody,bootPaneHost,pageCloseBindings,runShellUpdater,useBindings,useT,useTheme}from"./chunk-44bh467x.js";import"./chunk-3kfwrpjf.js";import{$jsx,$jsxs,useRenderer}from"./chunk-preza5s4.js";import{require_react_production}from"./chunk-2wd4744g.js";import"./chunk-mj9bzcm8.js";import"./chunk-cpgnm1xr.js";import"./chunk-r3s2t9af.js";import"./chunk-6xr1prk6.js";import"./chunk-8v27b5cc.js";import"./chunk-mdx18vtz.js";import"./chunk-55ajzrj6.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-6xppe9bj.js";import{BREAKING_VERSIONS,CURRENT_VERSION,breakingVersionsCrossed,fetchReleaseNotes,fetchReleaseSummaries,updateCommandFor}from"./chunk-hw1aj9sk.js";import"./chunk-8tr2kq1p.js";import"./chunk-rxqdw6s5.js";import"./chunk-gzn14mwk.js";import"./chunk-dvpjthdf.js";import"./chunk-tn9gtf18.js";import"./chunk-1feav1w3.js";import{currentLang}from"./chunk-2jan428s.js";import"./chunk-cmp64q4j.js";import"./chunk-mz82b1jf.js";import"./chunk-jhnpr3cj.js";import"./chunk-w56terew.js";import"./chunk-8wfz7gyp.js";import"./chunk-96kvwzj8.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-8trtyc98.js";import"./chunk-y8hjgmn0.js";import"./chunk-xy8be792.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.js";import"./chunk-8143k3t6.js";import"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import{__toESM}from"./chunk-91sykzqq.js";import{TextAttributes}from"@opentui/core";var import_react2=__toESM(require_react_production(),1);var RELEASE_LIMIT=20;function VersionsPage(props){let{theme}=useTheme(),t=useT(),renderer=useRenderer(),[releases,setReleases]=import_react2.useState(null),[cursor,setCursor]=import_react2.useState(0),[notes,setNotes]=import_react2.useState({}),[status,setStatus]=import_react2.useState(null),selected=releases?.[cursor],crossings=selected?breakingVersionsCrossed(CURRENT_VERSION,selected.version):[],loadSummaries=props.fetchSummaries??fetchReleaseSummaries,loadNotes=props.fetchNotes??fetchReleaseNotes;import_react2.useEffect(()=>{loadSummaries(RELEASE_LIMIT).then((fetched)=>setReleases(fetched))},[loadSummaries]);let selectedVersion=selected?.version;import_react2.useEffect(()=>{if(selectedVersion===void 0||notes[selectedVersion]!==void 0)return;setNotes((cache)=>({...cache,[selectedVersion]:"loading"})),loadNotes(selectedVersion,currentLang()).then((fetched)=>{setNotes((cache)=>({...cache,[selectedVersion]:fetched??"missing"}))})},[selectedVersion,notes,loadNotes]);function move(delta){let count=releases?.length??0;if(count===0)return;setCursor((index)=>(index+delta+count)%count)}async function installSelected(){if(!selected)return;setStatus(t("update.statusRunningUpdater")),await new Promise((resolve)=>setTimeout(resolve,30)),await runShellUpdater({renderer,t,targetLabel:selected.version,command:updateCommandFor(selected.version)})}useBindings(()=>({bindings:[{key:"up",cmd:()=>move(-1)},{key:"down",cmd:()=>move(1)},{key:"k",cmd:()=>move(-1)},{key:"j",cmd:()=>move(1)},{key:"return",cmd:()=>void installSelected()},{key:"u",cmd:()=>void installSelected()},...pageCloseBindings(props.onClose)]}));let selectedNotes=selectedVersion===void 0?void 0:notes[selectedVersion];return $jsxs("box",{flexDirection:"column",flexGrow:1,paddingTop:1,paddingLeft:2,paddingRight:2,children:[$jsxs("box",{flexDirection:"row",justifyContent:"space-between",flexShrink:0,children:[$jsx("text",{fg:theme.text,attributes:TextAttributes.BOLD,wrapMode:"none",children:t("update.versions.pageTitle")}),$jsx("text",{fg:theme.textMuted,wrapMode:"none",onMouseUp:props.onClose,children:t("update.versions.closeHint")})]}),$jsxs("box",{flexDirection:"row",flexGrow:1,paddingTop:1,gap:2,children:[$jsxs("box",{flexDirection:"column",width:26,flexShrink:0,children:[releases===null?$jsx("text",{fg:theme.textMuted,children:t("update.versions.loading")}):null,releases!==null&&releases.length===0?$jsx("text",{fg:theme.textMuted,wrapMode:"word",children:t("update.versions.unavailable")}):null,(releases??[]).map((release,index)=>{let active=index===cursor,tags=[release.version===CURRENT_VERSION?t("update.versions.tagCurrent"):"",index===0?t("update.versions.tagLatest"):"",BREAKING_VERSIONS.includes(release.version)?t("update.versions.tagBreaking"):""].filter(Boolean).join(" ");return $jsxs("box",{flexDirection:"row",gap:1,paddingLeft:1,backgroundColor:active?theme.primary:void 0,onMouseUp:()=>setCursor(index),children:[$jsxs("text",{fg:active?theme.selectedListItemText:theme.text,attributes:release.version===CURRENT_VERSION?TextAttributes.BOLD:void 0,wrapMode:"none",children:["v",release.version]}),tags?$jsx("text",{fg:active?theme.selectedListItemText:theme.textMuted,wrapMode:"none",children:tags}):null]},release.version)})]}),$jsxs("box",{flexDirection:"column",flexGrow:1,flexShrink:1,children:[$jsx("scrollbox",{flexGrow:1,flexShrink:1,stickyScroll:!1,verticalScrollbarOptions:{trackOptions:{foregroundColor:"transparent"}},children:$jsxs("box",{flexDirection:"column",paddingRight:1,paddingBottom:1,gap:0,children:[selectedNotes==="loading"?$jsx("text",{fg:theme.textMuted,children:t("update.loadingNotes")}):null,selectedNotes==="missing"?$jsx("text",{fg:theme.textMuted,wrapMode:"word",children:t("update.notesUnavailable")}):null,selectedNotes!==void 0&&selectedNotes!=="loading"&&selectedNotes!=="missing"?$jsx(ReleaseNotesBody,{body:selectedNotes.body}):null]})}),crossings.length>0?$jsx("text",{fg:theme.warning,wrapMode:"word",children:t("update.versions.breakingWarning",{versions:crossings.join(", ")})}):null]})]}),status?$jsx("text",{fg:theme.info,wrapMode:"word",children:status}):null,$jsx("box",{flexShrink:0,paddingTop:1,children:$jsx("text",{fg:theme.textMuted,attributes:TextAttributes.DIM,wrapMode:"none",children:t("update.versions.footerHint")})})]})}var INLINE_ROWS=24;async function startVersionsHost(){await bootPaneHost({inlineRows:INLINE_ROWS,setup:()=>({root:()=>$jsx(VersionsPage,{onClose:()=>process.exit(0)})})})}export{startVersionsHost,VersionsPage};
2
+ import{ReleaseNotesBody,bootPaneHost,pageCloseBindings,runShellUpdater,useBindings,useT,useTheme}from"./chunk-nweeyjqj.js";import"./chunk-3kfwrpjf.js";import{$jsx,$jsxs,useRenderer}from"./chunk-preza5s4.js";import{require_react_production}from"./chunk-2wd4744g.js";import"./chunk-95pc2w9m.js";import"./chunk-cpgnm1xr.js";import"./chunk-r3s2t9af.js";import"./chunk-6xr1prk6.js";import"./chunk-1p9arh3n.js";import"./chunk-mdx18vtz.js";import"./chunk-55ajzrj6.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-6xppe9bj.js";import{BREAKING_VERSIONS,CURRENT_VERSION,breakingVersionsCrossed,fetchReleaseNotes,fetchReleaseSummaries,updateCommandFor}from"./chunk-q7t4bnjn.js";import"./chunk-w1qr186f.js";import"./chunk-rxqdw6s5.js";import"./chunk-gzn14mwk.js";import"./chunk-dvpjthdf.js";import"./chunk-tn9gtf18.js";import"./chunk-1feav1w3.js";import{currentLang}from"./chunk-a503k6ds.js";import"./chunk-cmp64q4j.js";import"./chunk-3spvd3vw.js";import"./chunk-xq05a8a5.js";import"./chunk-0b3mxres.js";import"./chunk-fgb5ev6w.js";import"./chunk-96kvwzj8.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-8trtyc98.js";import"./chunk-y8hjgmn0.js";import"./chunk-xy8be792.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.js";import"./chunk-8143k3t6.js";import"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import{__toESM}from"./chunk-91sykzqq.js";import{TextAttributes}from"@opentui/core";var import_react2=__toESM(require_react_production(),1);var RELEASE_LIMIT=20;function VersionsPage(props){let{theme}=useTheme(),t=useT(),renderer=useRenderer(),[releases,setReleases]=import_react2.useState(null),[cursor,setCursor]=import_react2.useState(0),[notes,setNotes]=import_react2.useState({}),[status,setStatus]=import_react2.useState(null),selected=releases?.[cursor],crossings=selected?breakingVersionsCrossed(CURRENT_VERSION,selected.version):[],loadSummaries=props.fetchSummaries??fetchReleaseSummaries,loadNotes=props.fetchNotes??fetchReleaseNotes;import_react2.useEffect(()=>{loadSummaries(RELEASE_LIMIT).then((fetched)=>setReleases(fetched))},[loadSummaries]);let selectedVersion=selected?.version;import_react2.useEffect(()=>{if(selectedVersion===void 0||notes[selectedVersion]!==void 0)return;setNotes((cache)=>({...cache,[selectedVersion]:"loading"})),loadNotes(selectedVersion,currentLang()).then((fetched)=>{setNotes((cache)=>({...cache,[selectedVersion]:fetched??"missing"}))})},[selectedVersion,notes,loadNotes]);function move(delta){let count=releases?.length??0;if(count===0)return;setCursor((index)=>(index+delta+count)%count)}async function installSelected(){if(!selected)return;setStatus(t("update.statusRunningUpdater")),await new Promise((resolve)=>setTimeout(resolve,30)),await runShellUpdater({renderer,t,targetLabel:selected.version,command:updateCommandFor(selected.version)})}useBindings(()=>({bindings:[{key:"up",cmd:()=>move(-1)},{key:"down",cmd:()=>move(1)},{key:"k",cmd:()=>move(-1)},{key:"j",cmd:()=>move(1)},{key:"return",cmd:()=>void installSelected()},{key:"u",cmd:()=>void installSelected()},...pageCloseBindings(props.onClose)]}));let selectedNotes=selectedVersion===void 0?void 0:notes[selectedVersion];return $jsxs("box",{flexDirection:"column",flexGrow:1,paddingTop:1,paddingLeft:2,paddingRight:2,children:[$jsxs("box",{flexDirection:"row",justifyContent:"space-between",flexShrink:0,children:[$jsx("text",{fg:theme.text,attributes:TextAttributes.BOLD,wrapMode:"none",children:t("update.versions.pageTitle")}),$jsx("text",{fg:theme.textMuted,wrapMode:"none",onMouseUp:props.onClose,children:t("update.versions.closeHint")})]}),$jsxs("box",{flexDirection:"row",flexGrow:1,paddingTop:1,gap:2,children:[$jsxs("box",{flexDirection:"column",width:26,flexShrink:0,children:[releases===null?$jsx("text",{fg:theme.textMuted,children:t("update.versions.loading")}):null,releases!==null&&releases.length===0?$jsx("text",{fg:theme.textMuted,wrapMode:"word",children:t("update.versions.unavailable")}):null,(releases??[]).map((release,index)=>{let active=index===cursor,tags=[release.version===CURRENT_VERSION?t("update.versions.tagCurrent"):"",index===0?t("update.versions.tagLatest"):"",BREAKING_VERSIONS.includes(release.version)?t("update.versions.tagBreaking"):""].filter(Boolean).join(" ");return $jsxs("box",{flexDirection:"row",gap:1,paddingLeft:1,backgroundColor:active?theme.primary:void 0,onMouseUp:()=>setCursor(index),children:[$jsxs("text",{fg:active?theme.selectedListItemText:theme.text,attributes:release.version===CURRENT_VERSION?TextAttributes.BOLD:void 0,wrapMode:"none",children:["v",release.version]}),tags?$jsx("text",{fg:active?theme.selectedListItemText:theme.textMuted,wrapMode:"none",children:tags}):null]},release.version)})]}),$jsxs("box",{flexDirection:"column",flexGrow:1,flexShrink:1,children:[$jsx("scrollbox",{flexGrow:1,flexShrink:1,stickyScroll:!1,verticalScrollbarOptions:{trackOptions:{foregroundColor:"transparent"}},children:$jsxs("box",{flexDirection:"column",paddingRight:1,paddingBottom:1,gap:0,children:[selectedNotes==="loading"?$jsx("text",{fg:theme.textMuted,children:t("update.loadingNotes")}):null,selectedNotes==="missing"?$jsx("text",{fg:theme.textMuted,wrapMode:"word",children:t("update.notesUnavailable")}):null,selectedNotes!==void 0&&selectedNotes!=="loading"&&selectedNotes!=="missing"?$jsx(ReleaseNotesBody,{body:selectedNotes.body}):null]})}),crossings.length>0?$jsx("text",{fg:theme.warning,wrapMode:"word",children:t("update.versions.breakingWarning",{versions:crossings.join(", ")})}):null]})]}),status?$jsx("text",{fg:theme.info,wrapMode:"word",children:status}):null,$jsx("box",{flexShrink:0,paddingTop:1,children:$jsx("text",{fg:theme.textMuted,attributes:TextAttributes.DIM,wrapMode:"none",children:t("update.versions.footerHint")})})]})}var INLINE_ROWS=24;async function startVersionsHost(){await bootPaneHost({inlineRows:INLINE_ROWS,setup:()=>({root:()=>$jsx(VersionsPage,{onClose:()=>process.exit(0)})})})}export{startVersionsHost,VersionsPage};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{activityHookAdapters}from"./chunk-z3k0wg31.js";import{readFileSync}from"fs";function hookConfigIssues(){let issues=[];for(let adapter of activityHookAdapters()){if(!adapter.hookConfigRefusal)continue;let file=adapter.globalSettingsPath();if(!file)continue;let raw;try{raw=readFileSync(file,"utf8")}catch{continue}let reason=adapter.hookConfigRefusal(raw);if(reason)issues.push({file,reason})}return issues}
2
+ import{activityHookAdapters}from"./chunk-76gh55cc.js";import{readFileSync}from"fs";function hookConfigIssues(){let issues=[];for(let adapter of activityHookAdapters()){if(!adapter.hookConfigRefusal)continue;let file=adapter.globalSettingsPath();if(!file)continue;let raw;try{raw=readFileSync(file,"utf8")}catch{continue}let reason=adapter.hookConfigRefusal(raw);if(reason)issues.push({file,reason})}return issues}
3
3
  export{hookConfigIssues};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{INBOUND_CLASSES,INBOUND_KEY,deniedClasses,inboundClassOf,inboundRefusal,setInbound}from"./chunk-4bs5vsz3.js";import"./chunk-yb90vkjq.js";import"./chunk-6wmx34ha.js";import"./chunk-qcdznw50.js";import"./chunk-s9j0sbmf.js";import"./chunk-38hnq4aq.js";import"./chunk-e3bqjaff.js";import"./chunk-t1vbw2me.js";import"./chunk-sfhj74g9.js";import"./chunk-rset5pt8.js";import"./chunk-2xsxcdp6.js";import"./chunk-c70kbg4m.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-mdx18vtz.js";import"./chunk-10yyd82a.js";import"./chunk-xspfqx0x.js";import"./chunk-em5gq23f.js";import"./chunk-bkhbaqt1.js";import"./chunk-7m3txy05.js";import"./chunk-y0e28qha.js";import"./chunk-qkehg2c1.js";import"./chunk-xxz504p6.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-kg9kmwt9.js";import"./chunk-6xppe9bj.js";import"./chunk-hw1aj9sk.js";import"./chunk-hsx9fbx1.js";import"./chunk-wrptfjk1.js";import"./chunk-ywwg5zxs.js";import"./chunk-y0skz8j9.js";import"./chunk-mqfvzdpr.js";import"./chunk-8tr2kq1p.js";import"./chunk-rxqdw6s5.js";import"./chunk-xe3zr5b9.js";import"./chunk-gzn14mwk.js";import"./chunk-by8qsfpw.js";import"./chunk-6jcmdxza.js";import"./chunk-m9ssmhrc.js";import"./chunk-han0d078.js";import"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-cqzkk7j0.js";import"./chunk-catrr0z3.js";import"./chunk-dvpjthdf.js";import"./chunk-tn9gtf18.js";import"./chunk-r7khfa3k.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-etfh8f4z.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-2jan428s.js";import"./chunk-cmp64q4j.js";import"./chunk-8cw8zznb.js";import"./chunk-z3k0wg31.js";import"./chunk-4hvacnnr.js";import"./chunk-w7zv47mp.js";import"./chunk-mz82b1jf.js";import"./chunk-jhnpr3cj.js";import"./chunk-w56terew.js";import"./chunk-8wfz7gyp.js";import"./chunk-96kvwzj8.js";import"./chunk-v9n5e14e.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import"./chunk-8trtyc98.js";import"./chunk-g5jc6c2d.js";import"./chunk-qdatysve.js";import"./chunk-7kysxgbq.js";import"./chunk-5c591htx.js";import"./chunk-y8hjgmn0.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.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{setInbound,inboundRefusal,inboundClassOf,deniedClasses,INBOUND_KEY,INBOUND_CLASSES};
2
+ import{INBOUND_CLASSES,INBOUND_KEY,deniedClasses,inboundClassOf,inboundRefusal,setInbound}from"./chunk-ytr5x20b.js";import"./chunk-02fvj8jj.js";import"./chunk-b4fbghz1.js";import"./chunk-3yx9cd91.js";import"./chunk-znknvm7g.js";import"./chunk-38hnq4aq.js";import"./chunk-md3xyfxb.js";import"./chunk-t1vbw2me.js";import"./chunk-34ec6fs4.js";import"./chunk-rset5pt8.js";import"./chunk-2xsxcdp6.js";import"./chunk-mavz1h73.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-mdx18vtz.js";import"./chunk-sty6nxzc.js";import"./chunk-0s0f2m0h.js";import"./chunk-ka790mbb.js";import"./chunk-cn6qc47w.js";import"./chunk-7m3txy05.js";import"./chunk-y0e28qha.js";import"./chunk-qkehg2c1.js";import"./chunk-xxz504p6.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-kg9kmwt9.js";import"./chunk-6xppe9bj.js";import"./chunk-q7t4bnjn.js";import"./chunk-fsas0egj.js";import"./chunk-9h97cmm1.js";import"./chunk-jmfxkahq.js";import"./chunk-y0skz8j9.js";import"./chunk-mqfvzdpr.js";import"./chunk-w1qr186f.js";import"./chunk-rxqdw6s5.js";import"./chunk-xe3zr5b9.js";import"./chunk-gzn14mwk.js";import"./chunk-02dnpr84.js";import"./chunk-6jcmdxza.js";import"./chunk-x62wqf3s.js";import"./chunk-han0d078.js";import"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-cqzkk7j0.js";import"./chunk-catrr0z3.js";import"./chunk-dvpjthdf.js";import"./chunk-tn9gtf18.js";import"./chunk-r7khfa3k.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-etfh8f4z.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-a503k6ds.js";import"./chunk-cmp64q4j.js";import"./chunk-1dxpkpqv.js";import"./chunk-76gh55cc.js";import"./chunk-ng0kaekc.js";import"./chunk-w7zv47mp.js";import"./chunk-3spvd3vw.js";import"./chunk-xq05a8a5.js";import"./chunk-0b3mxres.js";import"./chunk-fgb5ev6w.js";import"./chunk-96kvwzj8.js";import"./chunk-v9n5e14e.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import"./chunk-8trtyc98.js";import"./chunk-x8jpnh1n.js";import"./chunk-27hpzddr.js";import"./chunk-7kysxgbq.js";import"./chunk-8g6sb0q6.js";import"./chunk-y8hjgmn0.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.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{setInbound,inboundRefusal,inboundClassOf,deniedClasses,INBOUND_KEY,INBOUND_CLASSES};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{findVerb}from"./chunk-yb90vkjq.js";import{VERB_GROUP_IDS}from"./chunk-jz1kj4sf.js";import{loadStateFile,updateStateFile}from"./chunk-8trtyc98.js";var INBOUND_KEY="machineInbound",INBOUND_CLASSES=[...VERB_GROUP_IDS,"land","credentials"],LAND_VERBS=new Set(["land","publish"]),CREDENTIAL_VERBS={"github-login":!0,"github-logout":!0,"github-sync":!0,"github-apply":!0};function inboundClassOf(verb){if(LAND_VERBS.has(verb))return"land";if(Object.hasOwn(CREDENTIAL_VERBS,verb))return"credentials";return findVerb(verb)?.group??null}function deniedClasses(state=loadStateFile()){let raw=state[INBOUND_KEY],deny=raw&&typeof raw==="object"?raw.deny:void 0;return Array.isArray(deny)?deny.filter((c)=>typeof c==="string"):[]}function inboundRefusal(verb,state){let cls=inboundClassOf(verb);return cls&&deniedClasses(state).includes(cls)?cls:null}function setInbound(cls,allow){let next=[];return updateStateFile((state)=>{let current=new Set(deniedClasses(state));if(allow)current.delete(cls);else current.add(cls);return next=[...current].sort(),state[INBOUND_KEY]={deny:next},!0}),next}
2
+ import{findVerb}from"./chunk-02fvj8jj.js";import{VERB_GROUP_IDS}from"./chunk-jz1kj4sf.js";import{loadStateFile,updateStateFile}from"./chunk-8trtyc98.js";var INBOUND_KEY="machineInbound",INBOUND_CLASSES=[...VERB_GROUP_IDS,"land","credentials"],LAND_VERBS=new Set(["land","publish"]),CREDENTIAL_VERBS={"github-login":!0,"github-logout":!0,"github-sync":!0,"github-apply":!0};function inboundClassOf(verb){if(LAND_VERBS.has(verb))return"land";if(Object.hasOwn(CREDENTIAL_VERBS,verb))return"credentials";return findVerb(verb)?.group??null}function deniedClasses(state=loadStateFile()){let raw=state[INBOUND_KEY],deny=raw&&typeof raw==="object"?raw.deny:void 0;return Array.isArray(deny)?deny.filter((c)=>typeof c==="string"):[]}function inboundRefusal(verb,state){let cls=inboundClassOf(verb);return cls&&deniedClasses(state).includes(cls)?cls:null}function setInbound(cls,allow){let next=[];return updateStateFile((state)=>{let current=new Set(deniedClasses(state));if(allow)current.delete(cls);else current.add(cls);return next=[...current].sort(),state[INBOUND_KEY]={deny:next},!0}),next}
3
3
  export{INBOUND_KEY,INBOUND_CLASSES,inboundClassOf,deniedClasses,inboundRefusal,setInbound};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{FEEDBACK_KINDS,isFeedbackKind,submitFeedback}from"./chunk-xspfqx0x.js";import"./chunk-xxz504p6.js";import"./chunk-hw1aj9sk.js";import"./chunk-v9n5e14e.js";import"./chunk-40dgv828.js";import"./chunk-mg1cas61.js";import"./chunk-8trtyc98.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.js";import"./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";var CLI_NAME=ROVE_PRODUCT_NAME,FEEDBACK_USAGE=[`Usage: ${CLI_NAME} feedback --title <text> (--body <text> | --body-file <path>) [--kind bug|idea|question]`,"","File a GitHub issue on the Rove repository using the GitHub CLI. Rove appends its","version, OS, install kind and default engine to the body.","","Requires:"," gh auth login","Without a signed-in gh, prints a prefilled new-issue link to open instead.","","Options:"," --title <text> Issue title"," --body <text> Issue body"," --body-file <path> Read the issue body from a file; use - for stdin"," --kind <kind> bug (default, label bug), idea (enhancement) or question"," -h, --help Print this help",""].join(`
2
+ import{FEEDBACK_KINDS,isFeedbackKind,submitFeedback}from"./chunk-0s0f2m0h.js";import"./chunk-xxz504p6.js";import"./chunk-q7t4bnjn.js";import"./chunk-v9n5e14e.js";import"./chunk-40dgv828.js";import"./chunk-mg1cas61.js";import"./chunk-8trtyc98.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.js";import"./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";var CLI_NAME=ROVE_PRODUCT_NAME,FEEDBACK_USAGE=[`Usage: ${CLI_NAME} feedback --title <text> (--body <text> | --body-file <path>) [--kind bug|idea|question]`,"","File a GitHub issue on the Rove repository using the GitHub CLI. Rove appends its","version, OS, install kind and default engine to the body.","","Requires:"," gh auth login","Without a signed-in gh, prints a prefilled new-issue link to open instead.","","Options:"," --title <text> Issue title"," --body <text> Issue body"," --body-file <path> Read the issue body from a file; use - for stdin"," --kind <kind> bug (default, label bug), idea (enhancement) or question"," -h, --help Print this help",""].join(`
3
3
  `);function usageError(message){process.stderr.write(`${CLI_NAME} feedback: ${message}
4
4
 
5
5
  ${FEEDBACK_USAGE}
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{MachineHub}from"./chunk-cwzwkqtn.js";import"./chunk-mj9bzcm8.js";import"./chunk-6xr1prk6.js";import{upgradeMachine}from"./chunk-sfhj74g9.js";import"./chunk-mdx18vtz.js";import{preferredReleaseChannel}from"./chunk-10yyd82a.js";import{machineDaemonSocket}from"./chunk-em5gq23f.js";import"./chunk-bkhbaqt1.js";import{isWindowsMachine,listMachines}from"./chunk-7m3txy05.js";import"./chunk-y0e28qha.js";import"./chunk-55ajzrj6.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-6xppe9bj.js";import{CURRENT_VERSION,checkLatestVersion,isNewerSemver}from"./chunk-hw1aj9sk.js";import{logDaemonInfo}from"./chunk-rxqdw6s5.js";import"./chunk-by8qsfpw.js";import"./chunk-6jcmdxza.js";import"./chunk-m9ssmhrc.js";import"./chunk-han0d078.js";import"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-cqzkk7j0.js";import"./chunk-catrr0z3.js";import"./chunk-dvpjthdf.js";import"./chunk-tn9gtf18.js";import"./chunk-r7khfa3k.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-2jan428s.js";import"./chunk-cmp64q4j.js";import"./chunk-8cw8zznb.js";import"./chunk-z3k0wg31.js";import"./chunk-4hvacnnr.js";import"./chunk-w7zv47mp.js";import"./chunk-mz82b1jf.js";import"./chunk-jhnpr3cj.js";import"./chunk-w56terew.js";import{RoveDaemonClient}from"./chunk-8wfz7gyp.js";import"./chunk-96kvwzj8.js";import"./chunk-v9n5e14e.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import{loadStateFile}from"./chunk-8trtyc98.js";import"./chunk-g5jc6c2d.js";import"./chunk-qdatysve.js";import"./chunk-7kysxgbq.js";import"./chunk-5c591htx.js";import"./chunk-y8hjgmn0.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.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";var MACHINES_AUTO_UPDATE_KEY="machines.autoUpdate",DEFAULTS={hubVersion:CURRENT_VERSION,enabled:()=>loadStateFile()[MACHINES_AUTO_UPDATE_KEY]!==!1,head:async()=>(await checkLatestVersion({force:!0,channel:preferredReleaseChannel()}))?.latest??null,entryOf:(alias)=>listMachines().find((m)=>m.alias===alias),busy:async(entry)=>{let socketPath=await machineDaemonSocket(entry);if(!socketPath)return!0;let client=new RoveDaemonClient(socketPath);try{return((await client.request("daemon.status")).invoking??0)>0}catch{return!0}finally{client.close()}},upgrade:upgradeMachine,log:(line)=>logDaemonInfo("machines",line),retryMs:60000};function startMachineAutoUpdate(machines,overrides={}){let deps={...DEFAULTS,...overrides},tried=new Set,running=new Set,retry=null,attempt=async(alias,version)=>{let key=`${alias}@${version}`,entry=deps.entryOf(alias);if(!entry||isWindowsMachine(entry))return void tried.add(key);let head=await deps.head();if(!head||!isNewerSemver(head,version))return void tried.add(key);if(await deps.busy(entry)){retry??=setTimeout(()=>{retry=null,look()},deps.retryMs);return}tried.add(key);let done=await deps.upgrade(entry);deps.log(done.changed?`${alias} updated: ${done.from??"?"} \u2192 ${done.to??"?"}`:`${alias} had nothing newer to install`)},look=()=>{if(!deps.enabled())return;for(let row of machines.get()){if(row.state!=="online"||!row.version||row.duplicateOf)continue;if(!isNewerSemver(deps.hubVersion,row.version))continue;if(tried.has(`${row.alias}@${row.version}`)||running.has(row.alias))continue;running.add(row.alias),attempt(row.alias,row.version).catch((err)=>deps.log(`${row.alias} auto-update failed: ${err instanceof Error?err.message:err}`)).finally(()=>running.delete(row.alias))}},stop=machines.subscribe(look);return look(),()=>{if(stop(),retry)clearTimeout(retry)}}var PUBLISH_DEBOUNCE_MS=50;function startDaemonMachineHub(bus){let hub=new MachineHub,timer=null,publish=()=>{timer=null;let live=hub.liveSignal().get(),payload={machines:hub.machinesSignal().get(),tasks:hub.tasksSignal().get().map((task)=>({...task,kind:task.kind??"task",pinned:task.pinned??!1})),live:{activity:Object.fromEntries(live.activity),changes:Object.fromEntries(live.changes),tokens:Object.fromEntries(live.tokens)}};bus.publish("machines",payload)},schedule=()=>{timer??=setTimeout(publish,PUBLISH_DEBOUNCE_MS)},stops=[hub.machinesSignal(),hub.tasksSignal(),hub.liveSignal()].map((signal)=>signal.subscribe(schedule)),lastRegistry=null,offState=bus.onPublish((event)=>{if(event.channel!=="state")return;let state=event.payload.state,text=JSON.stringify(state.machines??null);if(text===lastRegistry)return;lastRegistry=text,hub.sync()});hub.sync(),publish();let stopAutoUpdate=startMachineAutoUpdate(hub.machinesSignal());return()=>{stopAutoUpdate(),offState();for(let stop of stops)stop();if(timer)clearTimeout(timer);hub.dispose(),bus.publish("machines",{machines:[],tasks:[],live:{activity:{},changes:{},tokens:{}}})}}export{startDaemonMachineHub};
2
+ import{MachineHub}from"./chunk-1t7nedq5.js";import"./chunk-95pc2w9m.js";import"./chunk-6xr1prk6.js";import{upgradeMachine}from"./chunk-34ec6fs4.js";import"./chunk-mdx18vtz.js";import{preferredReleaseChannel}from"./chunk-sty6nxzc.js";import{machineDaemonSocket}from"./chunk-ka790mbb.js";import"./chunk-cn6qc47w.js";import{isWindowsMachine,listMachines}from"./chunk-7m3txy05.js";import"./chunk-y0e28qha.js";import"./chunk-55ajzrj6.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-6xppe9bj.js";import{CURRENT_VERSION,checkLatestVersion,isNewerSemver}from"./chunk-q7t4bnjn.js";import{logDaemonInfo}from"./chunk-rxqdw6s5.js";import"./chunk-02dnpr84.js";import"./chunk-6jcmdxza.js";import"./chunk-x62wqf3s.js";import"./chunk-han0d078.js";import"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-cqzkk7j0.js";import"./chunk-catrr0z3.js";import"./chunk-dvpjthdf.js";import"./chunk-tn9gtf18.js";import"./chunk-r7khfa3k.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-a503k6ds.js";import"./chunk-cmp64q4j.js";import"./chunk-1dxpkpqv.js";import"./chunk-76gh55cc.js";import"./chunk-ng0kaekc.js";import"./chunk-w7zv47mp.js";import"./chunk-3spvd3vw.js";import"./chunk-xq05a8a5.js";import"./chunk-0b3mxres.js";import{RoveDaemonClient}from"./chunk-fgb5ev6w.js";import"./chunk-96kvwzj8.js";import"./chunk-v9n5e14e.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import{loadStateFile}from"./chunk-8trtyc98.js";import"./chunk-x8jpnh1n.js";import"./chunk-27hpzddr.js";import"./chunk-7kysxgbq.js";import"./chunk-8g6sb0q6.js";import"./chunk-y8hjgmn0.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.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";var MACHINES_AUTO_UPDATE_KEY="machines.autoUpdate",DEFAULTS={hubVersion:CURRENT_VERSION,enabled:()=>loadStateFile()[MACHINES_AUTO_UPDATE_KEY]!==!1,head:async()=>(await checkLatestVersion({force:!0,channel:preferredReleaseChannel()}))?.latest??null,entryOf:(alias)=>listMachines().find((m)=>m.alias===alias),busy:async(entry)=>{let socketPath=await machineDaemonSocket(entry);if(!socketPath)return!0;let client=new RoveDaemonClient(socketPath);try{return((await client.request("daemon.status")).invoking??0)>0}catch{return!0}finally{client.close()}},upgrade:upgradeMachine,log:(line)=>logDaemonInfo("machines",line),retryMs:60000};function startMachineAutoUpdate(machines,overrides={}){let deps={...DEFAULTS,...overrides},tried=new Set,running=new Set,retry=null,attempt=async(alias,version)=>{let key=`${alias}@${version}`,entry=deps.entryOf(alias);if(!entry||isWindowsMachine(entry))return void tried.add(key);let head=await deps.head();if(!head||!isNewerSemver(head,version))return void tried.add(key);if(await deps.busy(entry)){retry??=setTimeout(()=>{retry=null,look()},deps.retryMs);return}tried.add(key);let done=await deps.upgrade(entry);deps.log(done.changed?`${alias} updated: ${done.from??"?"} \u2192 ${done.to??"?"}`:`${alias} had nothing newer to install`)},look=()=>{if(!deps.enabled())return;for(let row of machines.get()){if(row.state!=="online"||!row.version||row.duplicateOf)continue;if(!isNewerSemver(deps.hubVersion,row.version))continue;if(tried.has(`${row.alias}@${row.version}`)||running.has(row.alias))continue;running.add(row.alias),attempt(row.alias,row.version).catch((err)=>deps.log(`${row.alias} auto-update failed: ${err instanceof Error?err.message:err}`)).finally(()=>running.delete(row.alias))}},stop=machines.subscribe(look);return look(),()=>{if(stop(),retry)clearTimeout(retry)}}var PUBLISH_DEBOUNCE_MS=50;function startDaemonMachineHub(bus){let hub=new MachineHub,timer=null,publish=()=>{timer=null;let live=hub.liveSignal().get(),payload={machines:hub.machinesSignal().get(),tasks:hub.tasksSignal().get().map((task)=>({...task,kind:task.kind??"task",pinned:task.pinned??!1})),live:{activity:Object.fromEntries(live.activity),changes:Object.fromEntries(live.changes),tokens:Object.fromEntries(live.tokens)}};bus.publish("machines",payload)},schedule=()=>{timer??=setTimeout(publish,PUBLISH_DEBOUNCE_MS)},stops=[hub.machinesSignal(),hub.tasksSignal(),hub.liveSignal()].map((signal)=>signal.subscribe(schedule)),lastRegistry=null,offState=bus.onPublish((event)=>{if(event.channel!=="state")return;let state=event.payload.state,text=JSON.stringify(state.machines??null);if(text===lastRegistry)return;lastRegistry=text,hub.sync()});hub.sync(),publish();let stopAutoUpdate=startMachineAutoUpdate(hub.machinesSignal());return()=>{stopAutoUpdate(),offState();for(let stop of stops)stop();if(timer)clearTimeout(timer);hub.dispose(),bus.publish("machines",{machines:[],tasks:[],live:{activity:{},changes:{},tokens:{}}})}}export{startDaemonMachineHub};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{t}from"./chunk-2jan428s.js";function failureHint(error,cliName="rove"){let details=typeof error==="object"&&error!==null?error:null,hint=details&&"hint"in details&&typeof details.hint==="string"?details.hint:null,args=details&&"nextCommandArgs"in details?details.nextCommandArgs:null,command=Array.isArray(args)&&args.length>0&&args.every((arg)=>typeof arg==="string")?[cliName,...args].map((arg)=>/^[\w./:@=-]+$/.test(arg)?arg:`'${arg.replaceAll("'","'\\''")}'`).join(" "):null;return[hint,command].filter(Boolean).join(`
2
+ import{t}from"./chunk-a503k6ds.js";function failureHint(error,cliName="rove"){let details=typeof error==="object"&&error!==null?error:null,hint=details&&"hint"in details&&typeof details.hint==="string"?details.hint:null,args=details&&"nextCommandArgs"in details?details.nextCommandArgs:null,command=Array.isArray(args)&&args.length>0&&args.every((arg)=>typeof arg==="string")?[cliName,...args].map((arg)=>/^[\w./:@=-]+$/.test(arg)?arg:`'${arg.replaceAll("'","'\\''")}'`).join(" "):null;return[hint,command].filter(Boolean).join(`
3
3
  `)||t("common.failureHint",{command:`${cliName} doctor`})}
4
4
  export{failureHint};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{connectIfRunning,connectOrStartDaemon}from"./chunk-mz82b1jf.js";async function openDaemonSession(opts={}){let client=opts.mode==="require-running"?await connectIfRunning():await connectOrStartDaemon();if(!client)return null;return{client,close:()=>client.close()}}async function resolveActiveTaskId(client){let activeId=null,off=client.onChannel("active-task",(payload)=>{activeId=payload.taskId});try{await client.subscribe()}finally{off()}return activeId}
2
+ import{connectIfRunning,connectOrStartDaemon}from"./chunk-3spvd3vw.js";async function openDaemonSession(opts={}){let client=opts.mode==="require-running"?await connectIfRunning():await connectOrStartDaemon();if(!client)return null;return{client,close:()=>client.close()}}async function resolveActiveTaskId(client){let activeId=null,off=client.onChannel("active-task",(payload)=>{activeId=payload.taskId});try{await client.subscribe()}finally{off()}return activeId}
3
3
  export{openDaemonSession,resolveActiveTaskId};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{currentLang,intlLocale,localeState,registerMessages,setLocaleLang,t,tKeys}from"./chunk-2jan428s.js";import"./chunk-cmp64q4j.js";import"./chunk-91sykzqq.js";export{tKeys,t,setLocaleLang,registerMessages,localeState,intlLocale,currentLang};
2
+ import{currentLang,intlLocale,localeState,registerMessages,setLocaleLang,t,tKeys}from"./chunk-a503k6ds.js";import"./chunk-cmp64q4j.js";import"./chunk-91sykzqq.js";export{tKeys,t,setLocaleLang,registerMessages,localeState,intlLocale,currentLang};
package/dist/cli/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{isPathLikeArg}from"./chunk-8e6j2507.js";import{matchPathGlob}from"./chunk-kg11c1py.js";import{CURRENT_VERSION}from"./chunk-hw1aj9sk.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-entdmr95.js");await runCompletionsSubcommand(args)}],["export",async(args)=>{let{runExportSubcommand}=await import("./chunk-h72tns53.js");await runExportSubcommand(args)}],["repo",async(args)=>{let{runRepoSubcommand}=await import("./chunk-z538fdny.js");await runRepoSubcommand(args)}],["api",async(args)=>{let{runApiSubcommand}=await import("./chunk-p7mc1c1g.js");await runApiSubcommand(args)}],["update",async(args)=>{let{runUpdateSubcommand}=await import("./chunk-a95aghfk.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-cjf4hwav.js");await runFeedbackSubcommand(args)}],["daemon",async(args)=>{let{runDaemonSubcommand}=await import("./chunk-mb1tythq.js");await runDaemonSubcommand(args)}],["machine",async(args)=>{let{runMachineSubcommand}=await import("./chunk-yb00yrvr.js");await runMachineSubcommand(args)}],["weixin",async(args)=>{let{runChannelCli}=await import("./chunk-3cqyw1z8.js");await runChannelCli("weixin",args)}],["doctor",async(args)=>{let{runDoctorSubcommand}=await import("./chunk-paxy7y8f.js");await runDoctorSubcommand(args)}],["config",async(args)=>{let{runConfigSubcommand}=await import("./chunk-msgr4fes.js");await runConfigSubcommand(args)}],["reset",async(args)=>{let{runResetSubcommand}=await import("./chunk-9vt2v6k4.js");await runResetSubcommand(args)}],["pty-host",async(args)=>{let{runPtyHostSubcommand}=await import("./chunk-3n1cq57r.js");await runPtyHostSubcommand(args)}],["skill",async(args)=>{let{runSkillSubcommand}=await import("./chunk-avf521sy.js");await runSkillSubcommand(args)}],["plugin",async(args)=>{let{runPluginSubcommand}=await import("./chunk-0pgc4zqm.js");await runPluginSubcommand(args)}],["remote-workspace",async(args)=>{let{runRemoteWorkspaceSubcommand}=await import("./chunk-01v7c774.js");await runRemoteWorkspaceSubcommand(args)}],["hook",async(args)=>{let{runHookSubcommand}=await import("./chunk-n2hz851r.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
- `)}var bridge=()=>import("./chunk-xw1gayhz.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(`
3
+ import{isPathLikeArg}from"./chunk-s0t989c7.js";import{matchPathGlob}from"./chunk-kg11c1py.js";import{CURRENT_VERSION}from"./chunk-q7t4bnjn.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-53nvp1cm.js");await runCompletionsSubcommand(args)}],["export",async(args)=>{let{runExportSubcommand}=await import("./chunk-qck7a377.js");await runExportSubcommand(args)}],["repo",async(args)=>{let{runRepoSubcommand}=await import("./chunk-z538fdny.js");await runRepoSubcommand(args)}],["api",async(args)=>{let{runApiSubcommand}=await import("./chunk-dqcedeaw.js");await runApiSubcommand(args)}],["update",async(args)=>{let{runUpdateSubcommand}=await import("./chunk-bmwr7x5e.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-z3y6c62g.js");await runFeedbackSubcommand(args)}],["daemon",async(args)=>{let{runDaemonSubcommand}=await import("./chunk-32es1ykk.js");await runDaemonSubcommand(args)}],["machine",async(args)=>{let{runMachineSubcommand}=await import("./chunk-a6pwb5qf.js");await runMachineSubcommand(args)}],["weixin",async(args)=>{let{runChannelCli}=await import("./chunk-sjdngs0f.js");await runChannelCli("weixin",args)}],["doctor",async(args)=>{let{runDoctorSubcommand}=await import("./chunk-q9avp4wf.js");await runDoctorSubcommand(args)}],["config",async(args)=>{let{runConfigSubcommand}=await import("./chunk-msgr4fes.js");await runConfigSubcommand(args)}],["reset",async(args)=>{let{runResetSubcommand}=await import("./chunk-pd05zqce.js");await runResetSubcommand(args)}],["pty-host",async(args)=>{let{runPtyHostSubcommand}=await import("./chunk-kffnz94v.js");await runPtyHostSubcommand(args)}],["skill",async(args)=>{let{runSkillSubcommand}=await import("./chunk-ckyjn0av.js");await runSkillSubcommand(args)}],["plugin",async(args)=>{let{runPluginSubcommand}=await import("./chunk-kqem8ygn.js");await runPluginSubcommand(args)}],["remote-workspace",async(args)=>{let{runRemoteWorkspaceSubcommand}=await import("./chunk-05j6n3dy.js");await runRemoteWorkspaceSubcommand(args)}],["hook",async(args)=>{let{runHookSubcommand}=await import("./chunk-4zc1jvcc.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
+ `)}var bridge=()=>import("./chunk-m9zj97y6.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-3193p75b.js");await runAddRemote(rest.slice(1));return}if(arg?.startsWith("-"))process.stderr.write(`${CLI_NAME} add: unknown flag "${arg}"
6
6
 
7
7
  ${ADD_USAGE}`),process.exit(2);let target=resolve(process.cwd(),expandTilde(arg&&arg.length>0?arg:".")),{addSavedRepo}=await import("./chunk-75b4cgbz.js"),result=addSavedRepo(target);if(result.rejected)process.stderr.write(`${CLI_NAME} add: "${arg&&arg.length>0?arg:"."}" cannot be a project \u2014 ${rejectionReason(result.rejected)} (resolved to ${result.path}).
8
- `),process.exit(1);if(result.added)console.log(`added ${result.path} (${result.total} saved repo${result.total===1?"":"s"} total)`);else console.log(`already saved: ${result.path}`);await ensureProjectMainTask(result.path),await adoptAllWorktrees(result.path)}async function ensureProjectMainTask(repo){try{await(await bridge()).withDaemonOrLocal({daemon:(client)=>client.request("task.ensureMain",{repo}),local:(orch)=>orch.ensureMainTask(repo)})}catch(err){console.error(`(skipped project main-task setup: ${errorMessage(err)}). Run ${CLI_NAME} doctor, then retry ${CLI_NAME} add.`)}}var PURGE_FLAG="--purge-credentials",REMOVE_USAGE=[`Usage: ${CLI_NAME} remove [path] [--purge-credentials]`,"","Forget a saved project (drop it from the new-task picker). Non-destructive:","the repo's files, worktrees, branches and tasks all stay on disk. A remote","(ssh://) project also has its stored connection config dropped.",""," path defaults to the current directory. Pass an exact saved entry (e.g. a"," remote `ssh://user@host` key) to remove it verbatim. Run with no match to"," print the current saved projects.",""," --purge-credentials also delete the remote project's SSH password from"," the OS keychain. Off by default: forgetting a project"," should not silently destroy a stored secret.",""].join(`
8
+ `),process.exit(1);if(result.added)console.log(`added ${result.path} (${result.total} saved repo${result.total===1?"":"s"} total)`);else console.log(`already saved: ${result.path}`);await adoptAllWorktrees(result.path)}var PURGE_FLAG="--purge-credentials",REMOVE_USAGE=[`Usage: ${CLI_NAME} remove [path] [--purge-credentials]`,"","Forget a saved project (drop it from the new-task picker). Non-destructive:","the repo's files, worktrees, branches and tasks all stay on disk. A remote","(ssh://) project also has its stored connection config dropped.",""," path defaults to the current directory. Pass an exact saved entry (e.g. a"," remote `ssh://user@host` key) to remove it verbatim. Run with no match to"," print the current saved projects.",""," --purge-credentials also delete the remote project's SSH password from"," the OS keychain. Off by default: forgetting a project"," should not silently destroy a stored secret.",""].join(`
9
9
  `);async function runRemoveSubcommand(rest){let purgeCredentials=switchFlag(rest,PURGE_FLAG),arg=rest.filter((a)=>a!==PURGE_FLAG&&!a.startsWith(`${PURGE_FLAG}=`))[0];if(arg==="--help"||arg==="-h"||arg==="help"){process.stdout.write(REMOVE_USAGE);return}if(purgeCredentials===void 0)process.stderr.write(`${CLI_NAME} remove: ${PURGE_FLAG} takes true or false
10
10
 
11
11
  ${REMOVE_USAGE}`),process.exit(2);if(arg?.startsWith("-"))process.stderr.write(`${CLI_NAME} remove: unknown flag "${arg}"
@@ -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-e0xzwcb7.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-avf521sy.js");await runSkillSubcommand(["print"]);return}if(subcommand==="--web"){let{runWebSubcommand}=await import("./chunk-brz4hsbt.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-bpj7vk5n.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-sc5xvzb1.js");await launchTui()}var cliDone=main().catch(async(err)=>{let{formatCliFailure}=await import("./chunk-4k0k6f9v.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-t9vt4259.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-ckyjn0av.js");await runSkillSubcommand(["print"]);return}if(subcommand==="--web"){let{runWebSubcommand}=await import("./chunk-jf49gpeb.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-1tn8kb6y.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-rhhffhn7.js");await launchTui()}var cliDone=main().catch(async(err)=>{let{formatCliFailure}=await import("./chunk-tefep7b1.js");console.error(formatCliFailure(err,{cliName:CLI_NAME,argv:process.argv,cwd:process.cwd(),env:process.env})),process.exit(1)});export{cliDone};
@@ -773,7 +773,7 @@ var BLOCKING_RPCS = new Set([
773
773
  "pr.reviewComments",
774
774
  "task.ensureWorktree",
775
775
  "task.spawn",
776
- "task.ensureMain",
776
+ "project.ensure",
777
777
  "task.moveToProject",
778
778
  "worktree.discoverAdoptable",
779
779
  "worktree.adopt",
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.296",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.57","rove-weixin":"0.0.57",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.297-next.337",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.57","rove-weixin":"0.0.57",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,13 +3,13 @@ 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: 130 — bump in lockstep with ROVE_SKILL_VERSION (src/lib/skill-install.ts). -->
6
+ <!-- rove-skill-version: 131 — bump in lockstep with ROVE_SKILL_VERSION (src/lib/skill-install.ts). -->
7
7
 
8
8
  # Rove shell control
9
9
 
10
10
  Use `rove api` to manage local coding tasks. Managed Tasks created by API
11
- automation own a git Worktree and branch plus Hosted PTY engine tabs; project
12
- main and directory Tasks reuse existing directories. API automation works
11
+ automation own a git Worktree and branch plus Hosted PTY engine tabs;
12
+ directory Tasks reuse existing directories. API automation works
13
13
  without an open TUI; prompted `send` and `add` ensure a target engine tab.
14
14
 
15
15
  ## Inside a Rove session, Rove verbs come first
@@ -79,7 +79,7 @@ user asks for Rove by name.
79
79
 
80
80
  | Term | What it is | Isolation it gives | Users also say |
81
81
  |---|---|---|---|
82
- | **Task** | one tracked workspace record — managed worktree, saved-project main, or existing directory | managed Tasks own files + branch; main/directory Tasks reuse files | "a task", "a new one", "a separate attempt" |
82
+ | **Task** | one tracked workspace record — managed worktree or existing directory | managed Tasks own files + branch; directory Tasks reuse files | "a task", "a new one", "a separate attempt" |
83
83
  | **Worktree** | the isolated git working tree a managed Task owns (`.task.worktreePath`) — a filesystem address, never shown in the UI | — | "workspace", "this checkout", "this branch", "here" |
84
84
  | **Terminal Tab** | one engine, shell, command, or content surface inside a Task | an engine tab has its own conversation, but every tab uses the SAME Task files | "tab", "chattab", "another chat", "a second agent on this" |
85
85
  | **Split** | the tree that divides ONE Terminal Tab into several regions (the `pane-open` verb's unit; a leaf is not called a pane) | none — same session's screen, same files | "split it", "side by side", "put the logs next to it" |
@@ -148,6 +148,7 @@ the first row that fits:
148
148
  | "try it N ways", "compare approaches" | N new tasks | `rove api add --repo "$PWD" --count N --prompt "…"` |
149
149
  | "branch off this and keep my uncommitted changes", "fork this task" | a sibling task cloned from THIS worktree, edits and untracked files included | `rove api add --fork "$ROVE_TASK_ID" --prompt "…"` (refused with `FORK_UNSUPPORTED` where the volume cannot clone; then plain `add --repo` starts from the last commit) |
150
150
  | "split", "side by side", "keep an eye on X while…" | a new region in the CURRENT tab | `rove api pane-open --command "…"` |
151
+ | a request for ANOTHER repo on this machine: "ask the X project", "file this with X" | a new session in that repo's own checkout (no worktree) | `rove api send --repo <path> --prompt "…"` |
151
152
  | names a tab: "tell the agent in tab 3" | that exact tab | `rove api send --task-id <id> --tab tab-3 --prompt "…"` |
152
153
  | a LOCATION word: "in this workspace/worktree/checkout", "on this branch", "here", "same task" | a shared CHILD of THIS task (same directory) | `rove api add --no-worktree --prompt "…"` |
153
154
  | names an ENGINE for the same files: "let codex take over here", "try this one with claude instead" | a shared child of THIS task on that engine | `rove api add --no-worktree --command codex --prompt "…"` |
@@ -351,6 +352,7 @@ rove api ports --task-id <id>
351
352
  # through review feedback. `unavailable` = gh could not be asked, not "none".
352
353
  rove api review-comments --task-id <id>
353
354
  rove api send --task-id <id> --tab tab-3 --prompt "<turn>" # exact alive tab
355
+ rove api send --repo <path> --prompt "<turn>" # another project: a new session in its checkout
354
356
  rove api add --parent <id> --no-worktree --prompt "<turn>" # shared child; reply taskId != <id> if a child was made
355
357
  # Same directory, DIFFERENT agent (the TUI's ctrl+e pick); the parent's engine stays.
356
358
  rove api add --parent <id> --no-worktree --command codex --prompt "<turn>"
@@ -135,8 +135,8 @@ needs numbers, not when you want to know what a task is doing.
135
135
 
136
136
  <!-- generated:begin drive -->
137
137
  ```text
138
- send --task-id --prompt|--prompt-file --tab --replace --command --respawn
139
- --plain --allow-empty --expect-report --if-runnable --queue
138
+ send --task-id --repo --prompt|--prompt-file --tab --replace --command
139
+ --respawn --plain --allow-empty --expect-report --if-runnable --queue
140
140
  dispatch --task-id(REQ) --prompt|--prompt-file(REQ) --tab
141
141
  interrupt --task-id --group --all --tab
142
142
  resume-quota --task-id --all