@sma1lboy/rove 0.9.305-next.430 → 0.9.305

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 (91) hide show
  1. package/dist/cli/{chunk-2agspgfq.js → chunk-0rm5essq.js} +1 -1
  2. package/dist/cli/{chunk-vat1vjkk.js → chunk-0tgvsnfw.js} +1 -1
  3. package/dist/cli/{chunk-vjejmwzj.js → chunk-0y7btzkb.js} +1 -1
  4. package/dist/cli/{chunk-qwqa75g1.js → chunk-17f1k5g1.js} +1 -1
  5. package/dist/cli/{chunk-me70fpec.js → chunk-1jff1zbz.js} +1 -1
  6. package/dist/cli/{chunk-gz0x179r.js → chunk-20ya2bwa.js} +1 -1
  7. package/dist/cli/{chunk-1bertmzz.js → chunk-228cg4e1.js} +1 -1
  8. package/dist/cli/{chunk-5dv7pw3w.js → chunk-22mzajwm.js} +2 -2
  9. package/dist/cli/{chunk-b7rxn7c9.js → chunk-2an5bkk2.js} +1 -1
  10. package/dist/cli/{chunk-hct98wxq.js → chunk-2hd9yc39.js} +1 -1
  11. package/dist/cli/{chunk-dab3kttb.js → chunk-34yry2y8.js} +1 -1
  12. package/dist/cli/{chunk-2gpr5dm4.js → chunk-3r544y4v.js} +1 -1
  13. package/dist/cli/{chunk-zze1pw22.js → chunk-48q16gte.js} +1 -1
  14. package/dist/cli/{chunk-t8gt3kq8.js → chunk-4acjw6wk.js} +1 -1
  15. package/dist/cli/{chunk-z1fpd4k2.js → chunk-4fr4az7p.js} +1 -1
  16. package/dist/cli/chunk-4q7hm4jh.js +3 -0
  17. package/dist/cli/{chunk-yk3we30f.js → chunk-4xtapamr.js} +1 -1
  18. package/dist/cli/{chunk-p4rhkv3k.js → chunk-547xfzwg.js} +1 -1
  19. package/dist/cli/{chunk-7yhekmvy.js → chunk-57rtb9mf.js} +1 -1
  20. package/dist/cli/{chunk-h2xantkm.js → chunk-5jwhjn9b.js} +1 -1
  21. package/dist/cli/{chunk-0s7j1xps.js → chunk-5p0rd52x.js} +1 -1
  22. package/dist/cli/{chunk-7ezpcrkf.js → chunk-5rq2x11k.js} +1 -1
  23. package/dist/cli/{chunk-8hfkcjxm.js → chunk-6153jj5t.js} +1 -1
  24. package/dist/cli/{chunk-vwynmap6.js → chunk-67mnh6f2.js} +1 -1
  25. package/dist/cli/{chunk-8wejvvsz.js → chunk-6ewh2d6q.js} +1 -1
  26. package/dist/cli/{chunk-xj3034s1.js → chunk-73bn2t5z.js} +1 -1
  27. package/dist/cli/{chunk-6cggsxpr.js → chunk-75j5mted.js} +1 -1
  28. package/dist/cli/chunk-78rtznxy.js +16 -0
  29. package/dist/cli/{chunk-am70fwd0.js → chunk-7gv7yt9m.js} +1 -1
  30. package/dist/cli/{chunk-d35ctfpd.js → chunk-7yv9n60a.js} +1 -1
  31. package/dist/cli/{chunk-cvcp1aye.js → chunk-888sg2t5.js} +1 -1
  32. package/dist/cli/{chunk-9tke0g8m.js → chunk-8d8nxya2.js} +1 -1
  33. package/dist/cli/{chunk-s129kc10.js → chunk-8pr6mn2t.js} +1 -1
  34. package/dist/cli/{chunk-ggjg0h5c.js → chunk-9knnk0py.js} +1 -1
  35. package/dist/cli/{chunk-n15p38e5.js → chunk-c7vs657h.js} +1 -1
  36. package/dist/cli/{chunk-vd9670dy.js → chunk-cdaqwvcb.js} +1 -1
  37. package/dist/cli/{chunk-3jh1cfdj.js → chunk-d7z4smjj.js} +1 -1
  38. package/dist/cli/{chunk-pf3nzz87.js → chunk-dkqdctbn.js} +1 -1
  39. package/dist/cli/{chunk-59ff10tt.js → chunk-e45vfect.js} +1 -1
  40. package/dist/cli/{chunk-gvs8sbp2.js → chunk-ejzcfjy4.js} +1 -1
  41. package/dist/cli/{chunk-sffdpzfv.js → chunk-fjbxagq6.js} +1 -1
  42. package/dist/cli/{chunk-6azsw0ry.js → chunk-fqnz65z7.js} +4 -4
  43. package/dist/cli/{chunk-a5pd9fk3.js → chunk-fsamf4mg.js} +1 -1
  44. package/dist/cli/{chunk-t4reqv8m.js → chunk-gkvpgath.js} +1 -1
  45. package/dist/cli/{chunk-gafj4yp3.js → chunk-gxb2cx4t.js} +4 -4
  46. package/dist/cli/{chunk-19n8y9xp.js → chunk-hf10xgs6.js} +2 -2
  47. package/dist/cli/{chunk-qaznc1bg.js → chunk-hf8dswph.js} +1 -1
  48. package/dist/cli/{chunk-s6wqbs6y.js → chunk-hqr1g388.js} +1 -1
  49. package/dist/cli/{chunk-sggsdk9s.js → chunk-jqc18yt1.js} +2 -2
  50. package/dist/cli/{chunk-ga448pv8.js → chunk-kbs4ttp9.js} +1 -1
  51. package/dist/cli/{chunk-weah9492.js → chunk-kj929z6t.js} +1 -1
  52. package/dist/cli/{chunk-nhsem71y.js → chunk-mvcfxz7c.js} +1 -1
  53. package/dist/cli/{chunk-zp4efbtb.js → chunk-ncr2aqwh.js} +1 -1
  54. package/dist/cli/{chunk-mavyyarb.js → chunk-nkddj071.js} +1 -1
  55. package/dist/cli/{chunk-1et3gskx.js → chunk-phzem4ep.js} +1 -1
  56. package/dist/cli/{chunk-yzz6vx5j.js → chunk-pjbg2bax.js} +1 -1
  57. package/dist/cli/{chunk-a8j2x5pf.js → chunk-pw9wcs34.js} +1 -1
  58. package/dist/cli/{chunk-3da0g8md.js → chunk-q2vz3m8b.js} +1 -1
  59. package/dist/cli/{chunk-g70rcpsp.js → chunk-q5t33vtx.js} +1 -1
  60. package/dist/cli/{chunk-zc67sqet.js → chunk-qzbs252j.js} +1 -1
  61. package/dist/cli/{chunk-29e7x3qx.js → chunk-r1npkr2s.js} +1 -1
  62. package/dist/cli/{chunk-8nbvsger.js → chunk-ramz2x04.js} +1 -1
  63. package/dist/cli/{chunk-ragdpajw.js → chunk-s6pbgb9q.js} +1 -1
  64. package/dist/cli/{chunk-cs7m5f61.js → chunk-tfpt0rna.js} +1 -1
  65. package/dist/cli/{chunk-06vsvvtr.js → chunk-tmxy5xd5.js} +1 -1
  66. package/dist/cli/{chunk-6wzb9c2x.js → chunk-txe974cf.js} +1 -1
  67. package/dist/cli/{chunk-m5ddrj6q.js → chunk-v1t13rzp.js} +1 -1
  68. package/dist/cli/{chunk-t7qj639x.js → chunk-v9bkgasj.js} +1 -1
  69. package/dist/cli/{chunk-8ag7qs90.js → chunk-w3czf347.js} +1 -1
  70. package/dist/cli/{chunk-nyr8zxgd.js → chunk-wk4h2zm5.js} +2 -2
  71. package/dist/cli/{chunk-kvwneanp.js → chunk-wm3ps4tc.js} +1 -1
  72. package/dist/cli/{chunk-9b42t2wf.js → chunk-wwvqvrax.js} +1 -1
  73. package/dist/cli/{chunk-7gk8g1ae.js → chunk-x23cchn4.js} +1 -1
  74. package/dist/cli/{chunk-7dah6dc9.js → chunk-xbn448m0.js} +1 -1
  75. package/dist/cli/{chunk-fmhnw1nz.js → chunk-xjt62dxr.js} +2 -2
  76. package/dist/cli/chunk-xtqc3xcr.js +3 -0
  77. package/dist/cli/{chunk-aejb41e3.js → chunk-y8p2e1n0.js} +1 -1
  78. package/dist/cli/{chunk-4nzf8w3e.js → chunk-yepm9ww9.js} +2 -2
  79. package/dist/cli/{chunk-2bapg0v2.js → chunk-zq3tbpm7.js} +10 -9
  80. package/dist/cli/{chunk-2nddryb2.js → chunk-zvp9f75r.js} +1 -1
  81. package/dist/cli/index.js +3 -3
  82. package/dist/cli/pty-host-node.mjs +11 -1
  83. package/dist/cli/rove.js +3 -3
  84. package/dist/web/assets/index-Dfq3buJH.js +84 -0
  85. package/dist/web/assets/{term-mount-OMVJnrk8.js → term-mount-C6rfINle.js} +1 -1
  86. package/dist/web/index.html +1 -1
  87. package/package.json +3 -3
  88. package/dist/cli/chunk-750rk2xz.js +0 -16
  89. package/dist/cli/chunk-7bgbansg.js +0 -3
  90. package/dist/cli/chunk-s2eezz0a.js +0 -3
  91. package/dist/web/assets/index-7xgjby6F.js +0 -84
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/addon-canvas-CY8shz_h.js","assets/rolldown-runtime-hePW80VL.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{_ as t,a as n,b as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,x as ee,y as te}from"./index-7xgjby6F.js";var b=0,x=0,S=0,C=0,w;(e=>{function t(e,t,n,r){return r===void 0?`#${k(e)}${k(t)}${k(n)}`:`#${k(e)}${k(t)}${k(n)}${k(r)}`}e.toCss=t;function n(e,t,n,r=255){return(e<<24|t<<16|n<<8|r)>>>0}e.toRgba=n;function r(t,n,r,i){return{css:e.toCss(t,n,r,i),rgba:e.toRgba(t,n,r,i)}}e.toColor=r})(w||={});var T;(e=>{function t(e,t){if(C=(t.rgba&255)/255,C===1)return{css:t.css,rgba:t.rgba};let n=t.rgba>>24&255,r=t.rgba>>16&255,i=t.rgba>>8&255,a=e.rgba>>24&255,o=e.rgba>>16&255,s=e.rgba>>8&255;return b=a+Math.round((n-a)*C),x=o+Math.round((r-o)*C),S=s+Math.round((i-s)*C),{css:w.toCss(b,x,S),rgba:w.toRgba(b,x,S)}}e.blend=t;function n(e){return(e.rgba&255)==255}e.isOpaque=n;function r(e,t,n){let r=O.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return w.toColor(r>>24&255,r>>16&255,r>>8&255)}e.ensureContrastRatio=r;function i(e){let t=(e.rgba|255)>>>0;return[b,x,S]=O.toChannels(t),{css:w.toCss(b,x,S),rgba:t}}e.opaque=i;function a(e,t){return C=Math.round(t*255),[b,x,S]=O.toChannels(e.rgba),{css:w.toCss(b,x,S,C),rgba:w.toRgba(b,x,S,C)}}e.opacity=a;function o(e,t){return C=e.rgba&255,a(e,C*t/255)}e.multiplyOpacity=o;function s(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}e.toColorRGB=s})(T||={});var E;(e=>{let t,n;try{let e=document.createElement(`canvas`);e.width=1,e.height=1;let r=e.getContext(`2d`,{willReadFrequently:!0});r&&(t=r,t.globalCompositeOperation=`copy`,n=t.createLinearGradient(0,0,1,1))}catch{}function r(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return b=parseInt(e.slice(1,2).repeat(2),16),x=parseInt(e.slice(2,3).repeat(2),16),S=parseInt(e.slice(3,4).repeat(2),16),w.toColor(b,x,S);case 5:return b=parseInt(e.slice(1,2).repeat(2),16),x=parseInt(e.slice(2,3).repeat(2),16),S=parseInt(e.slice(3,4).repeat(2),16),C=parseInt(e.slice(4,5).repeat(2),16),w.toColor(b,x,S,C);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}let r=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(r)return b=parseInt(r[1]),x=parseInt(r[2]),S=parseInt(r[3]),C=Math.round((r[5]===void 0?1:parseFloat(r[5]))*255),w.toColor(b,x,S,C);if(!t||!n||(t.fillStyle=n,t.fillStyle=e,typeof t.fillStyle!=`string`)||(t.fillRect(0,0,1,1),[b,x,S,C]=t.getImageData(0,0,1,1).data,C!==255))throw Error(`css.toColor: Unsupported css format`);return{rgba:w.toRgba(b,x,S,C),css:e}}e.toColor=r})(E||={});var D;(e=>{function t(e){return n(e>>16&255,e>>8&255,e&255)}e.relativeLuminance=t;function n(e,t,n){let r=e/255,i=t/255,a=n/255,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4,s=i<=.03928?i/12.92:((i+.055)/1.055)**2.4,c=a<=.03928?a/12.92:((a+.055)/1.055)**2.4;return o*.2126+s*.7152+c*.0722}e.relativeLuminance2=n})(D||={});var O;(e=>{function t(e,t){if(C=(t&255)/255,C===1)return t;let n=t>>24&255,r=t>>16&255,i=t>>8&255,a=e>>24&255,o=e>>16&255,s=e>>8&255;return b=a+Math.round((n-a)*C),x=o+Math.round((r-o)*C),S=s+Math.round((i-s)*C),w.toRgba(b,x,S)}e.blend=t;function n(e,t,n){let a=D.relativeLuminance(e>>8),o=D.relativeLuminance(t>>8);if(ne(a,o)<n){if(o<a){let o=r(e,t,n),s=ne(a,D.relativeLuminance(o>>8));if(s<n){let r=i(e,t,n);return s>ne(a,D.relativeLuminance(r>>8))?o:r}return o}let s=i(e,t,n),c=ne(a,D.relativeLuminance(s>>8));if(c<n){let i=r(e,t,n);return c>ne(a,D.relativeLuminance(i>>8))?s:i}return s}}e.ensureContrastRatio=n;function r(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=ne(D.relativeLuminance2(o,s,c),D.relativeLuminance2(r,i,a));for(;l<n&&(o>0||s>0||c>0);)o-=Math.max(0,Math.ceil(o*.1)),s-=Math.max(0,Math.ceil(s*.1)),c-=Math.max(0,Math.ceil(c*.1)),l=ne(D.relativeLuminance2(o,s,c),D.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.reduceLuminance=r;function i(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=ne(D.relativeLuminance2(o,s,c),D.relativeLuminance2(r,i,a));for(;l<n&&(o<255||s<255||c<255);)o=Math.min(255,o+Math.ceil((255-o)*.1)),s=Math.min(255,s+Math.ceil((255-s)*.1)),c=Math.min(255,c+Math.ceil((255-c)*.1)),l=ne(D.relativeLuminance2(o,s,c),D.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.increaseLuminance=i;function a(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}e.toChannels=a})(O||={});function k(e){let t=e.toString(16);return t.length<2?`0`+t:t}function ne(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var A=Object.freeze((()=>{let e=[E.toColor(`#2e3436`),E.toColor(`#cc0000`),E.toColor(`#4e9a06`),E.toColor(`#c4a000`),E.toColor(`#3465a4`),E.toColor(`#75507b`),E.toColor(`#06989a`),E.toColor(`#d3d7cf`),E.toColor(`#555753`),E.toColor(`#ef2929`),E.toColor(`#8ae234`),E.toColor(`#fce94f`),E.toColor(`#729fcf`),E.toColor(`#ad7fa8`),E.toColor(`#34e2e2`),E.toColor(`#eeeeec`)],t=[0,95,135,175,215,255];for(let n=0;n<216;n++){let r=t[n/36%6|0],i=t[n/6%6|0],a=t[n%6];e.push({css:w.toCss(r,i,a),rgba:w.toRgba(r,i,a)})}for(let t=0;t<24;t++){let n=8+t*10;e.push({css:w.toCss(n,n,n),rgba:w.toRgba(n,n,n)})}return e})());function j(e,t,n){return Math.max(t,Math.min(e,n))}function M(e){switch(e){case`&`:return`&amp;`;case`<`:return`&lt;`}return e}var re=class{constructor(e){this._buffer=e}serialize(e,t){let n=this._buffer.getNullCell(),r=this._buffer.getNullCell(),i=n,a=e.start.y,o=e.end.y,s=e.start.x,c=e.end.x;this._beforeSerialize(o-a,a,o);for(let t=a;t<=o;t++){let a=this._buffer.getLine(t);if(a){let o=t===e.start.y?s:0,l=t===e.end.y?c:a.length;for(let e=o;e<l;e++){let o=a.getCell(e,i===n?r:n);if(!o){console.warn(`Can't get cell at row=${t}, col=${e}`);continue}this._nextCell(o,i,t,e),i=o}}this._rowEnd(t,t===o)}return this._afterSerialize(),this._serializeString(t)}_nextCell(e,t,n,r){}_rowEnd(e,t){}_beforeSerialize(e,t,n){}_afterSerialize(){}_serializeString(e){return``}};function ie(e,t){return e.getFgColorMode()===t.getFgColorMode()&&e.getFgColor()===t.getFgColor()}function ae(e,t){return e.getBgColorMode()===t.getBgColorMode()&&e.getBgColor()===t.getBgColor()}function oe(e,t){return e.isInverse()===t.isInverse()&&e.isBold()===t.isBold()&&e.isUnderline()===t.isUnderline()&&e.isOverline()===t.isOverline()&&e.isBlink()===t.isBlink()&&e.isInvisible()===t.isInvisible()&&e.isItalic()===t.isItalic()&&e.isDim()===t.isDim()&&e.isStrikethrough()===t.isStrikethrough()}var se=class extends re{constructor(e,t){super(e),this._terminal=t,this._rowIndex=0,this._allRows=[],this._allRowSeparators=[],this._currentRow=``,this._nullCellCount=0,this._cursorStyle=this._buffer.getNullCell(),this._cursorStyleRow=0,this._cursorStyleCol=0,this._backgroundCell=this._buffer.getNullCell(),this._firstRow=0,this._lastCursorRow=0,this._lastCursorCol=0,this._lastContentCursorRow=0,this._lastContentCursorCol=0,this._thisRowLastChar=this._buffer.getNullCell(),this._thisRowLastSecondChar=this._buffer.getNullCell(),this._nextRowFirstChar=this._buffer.getNullCell()}_beforeSerialize(e,t,n){this._allRows=Array(e),this._lastContentCursorRow=t,this._lastCursorRow=t,this._firstRow=t}_rowEnd(e,t){this._nullCellCount>0&&!ae(this._cursorStyle,this._backgroundCell)&&(this._currentRow+=`\x1B[${this._nullCellCount}X`);let n=``;if(!t){e-this._firstRow>=this._terminal.rows&&this._buffer.getLine(this._cursorStyleRow)?.getCell(this._cursorStyleCol,this._backgroundCell);let t=this._buffer.getLine(e),r=this._buffer.getLine(e+1);if(!r.isWrapped)n=`\r
2
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{_ as t,a as n,b as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,x as ee,y as te}from"./index-Dfq3buJH.js";var b=0,x=0,S=0,C=0,w;(e=>{function t(e,t,n,r){return r===void 0?`#${k(e)}${k(t)}${k(n)}`:`#${k(e)}${k(t)}${k(n)}${k(r)}`}e.toCss=t;function n(e,t,n,r=255){return(e<<24|t<<16|n<<8|r)>>>0}e.toRgba=n;function r(t,n,r,i){return{css:e.toCss(t,n,r,i),rgba:e.toRgba(t,n,r,i)}}e.toColor=r})(w||={});var T;(e=>{function t(e,t){if(C=(t.rgba&255)/255,C===1)return{css:t.css,rgba:t.rgba};let n=t.rgba>>24&255,r=t.rgba>>16&255,i=t.rgba>>8&255,a=e.rgba>>24&255,o=e.rgba>>16&255,s=e.rgba>>8&255;return b=a+Math.round((n-a)*C),x=o+Math.round((r-o)*C),S=s+Math.round((i-s)*C),{css:w.toCss(b,x,S),rgba:w.toRgba(b,x,S)}}e.blend=t;function n(e){return(e.rgba&255)==255}e.isOpaque=n;function r(e,t,n){let r=O.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return w.toColor(r>>24&255,r>>16&255,r>>8&255)}e.ensureContrastRatio=r;function i(e){let t=(e.rgba|255)>>>0;return[b,x,S]=O.toChannels(t),{css:w.toCss(b,x,S),rgba:t}}e.opaque=i;function a(e,t){return C=Math.round(t*255),[b,x,S]=O.toChannels(e.rgba),{css:w.toCss(b,x,S,C),rgba:w.toRgba(b,x,S,C)}}e.opacity=a;function o(e,t){return C=e.rgba&255,a(e,C*t/255)}e.multiplyOpacity=o;function s(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}e.toColorRGB=s})(T||={});var E;(e=>{let t,n;try{let e=document.createElement(`canvas`);e.width=1,e.height=1;let r=e.getContext(`2d`,{willReadFrequently:!0});r&&(t=r,t.globalCompositeOperation=`copy`,n=t.createLinearGradient(0,0,1,1))}catch{}function r(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return b=parseInt(e.slice(1,2).repeat(2),16),x=parseInt(e.slice(2,3).repeat(2),16),S=parseInt(e.slice(3,4).repeat(2),16),w.toColor(b,x,S);case 5:return b=parseInt(e.slice(1,2).repeat(2),16),x=parseInt(e.slice(2,3).repeat(2),16),S=parseInt(e.slice(3,4).repeat(2),16),C=parseInt(e.slice(4,5).repeat(2),16),w.toColor(b,x,S,C);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}let r=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(r)return b=parseInt(r[1]),x=parseInt(r[2]),S=parseInt(r[3]),C=Math.round((r[5]===void 0?1:parseFloat(r[5]))*255),w.toColor(b,x,S,C);if(!t||!n||(t.fillStyle=n,t.fillStyle=e,typeof t.fillStyle!=`string`)||(t.fillRect(0,0,1,1),[b,x,S,C]=t.getImageData(0,0,1,1).data,C!==255))throw Error(`css.toColor: Unsupported css format`);return{rgba:w.toRgba(b,x,S,C),css:e}}e.toColor=r})(E||={});var D;(e=>{function t(e){return n(e>>16&255,e>>8&255,e&255)}e.relativeLuminance=t;function n(e,t,n){let r=e/255,i=t/255,a=n/255,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4,s=i<=.03928?i/12.92:((i+.055)/1.055)**2.4,c=a<=.03928?a/12.92:((a+.055)/1.055)**2.4;return o*.2126+s*.7152+c*.0722}e.relativeLuminance2=n})(D||={});var O;(e=>{function t(e,t){if(C=(t&255)/255,C===1)return t;let n=t>>24&255,r=t>>16&255,i=t>>8&255,a=e>>24&255,o=e>>16&255,s=e>>8&255;return b=a+Math.round((n-a)*C),x=o+Math.round((r-o)*C),S=s+Math.round((i-s)*C),w.toRgba(b,x,S)}e.blend=t;function n(e,t,n){let a=D.relativeLuminance(e>>8),o=D.relativeLuminance(t>>8);if(ne(a,o)<n){if(o<a){let o=r(e,t,n),s=ne(a,D.relativeLuminance(o>>8));if(s<n){let r=i(e,t,n);return s>ne(a,D.relativeLuminance(r>>8))?o:r}return o}let s=i(e,t,n),c=ne(a,D.relativeLuminance(s>>8));if(c<n){let i=r(e,t,n);return c>ne(a,D.relativeLuminance(i>>8))?s:i}return s}}e.ensureContrastRatio=n;function r(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=ne(D.relativeLuminance2(o,s,c),D.relativeLuminance2(r,i,a));for(;l<n&&(o>0||s>0||c>0);)o-=Math.max(0,Math.ceil(o*.1)),s-=Math.max(0,Math.ceil(s*.1)),c-=Math.max(0,Math.ceil(c*.1)),l=ne(D.relativeLuminance2(o,s,c),D.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.reduceLuminance=r;function i(e,t,n){let r=e>>24&255,i=e>>16&255,a=e>>8&255,o=t>>24&255,s=t>>16&255,c=t>>8&255,l=ne(D.relativeLuminance2(o,s,c),D.relativeLuminance2(r,i,a));for(;l<n&&(o<255||s<255||c<255);)o=Math.min(255,o+Math.ceil((255-o)*.1)),s=Math.min(255,s+Math.ceil((255-s)*.1)),c=Math.min(255,c+Math.ceil((255-c)*.1)),l=ne(D.relativeLuminance2(o,s,c),D.relativeLuminance2(r,i,a));return(o<<24|s<<16|c<<8|255)>>>0}e.increaseLuminance=i;function a(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}e.toChannels=a})(O||={});function k(e){let t=e.toString(16);return t.length<2?`0`+t:t}function ne(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var A=Object.freeze((()=>{let e=[E.toColor(`#2e3436`),E.toColor(`#cc0000`),E.toColor(`#4e9a06`),E.toColor(`#c4a000`),E.toColor(`#3465a4`),E.toColor(`#75507b`),E.toColor(`#06989a`),E.toColor(`#d3d7cf`),E.toColor(`#555753`),E.toColor(`#ef2929`),E.toColor(`#8ae234`),E.toColor(`#fce94f`),E.toColor(`#729fcf`),E.toColor(`#ad7fa8`),E.toColor(`#34e2e2`),E.toColor(`#eeeeec`)],t=[0,95,135,175,215,255];for(let n=0;n<216;n++){let r=t[n/36%6|0],i=t[n/6%6|0],a=t[n%6];e.push({css:w.toCss(r,i,a),rgba:w.toRgba(r,i,a)})}for(let t=0;t<24;t++){let n=8+t*10;e.push({css:w.toCss(n,n,n),rgba:w.toRgba(n,n,n)})}return e})());function j(e,t,n){return Math.max(t,Math.min(e,n))}function M(e){switch(e){case`&`:return`&amp;`;case`<`:return`&lt;`}return e}var re=class{constructor(e){this._buffer=e}serialize(e,t){let n=this._buffer.getNullCell(),r=this._buffer.getNullCell(),i=n,a=e.start.y,o=e.end.y,s=e.start.x,c=e.end.x;this._beforeSerialize(o-a,a,o);for(let t=a;t<=o;t++){let a=this._buffer.getLine(t);if(a){let o=t===e.start.y?s:0,l=t===e.end.y?c:a.length;for(let e=o;e<l;e++){let o=a.getCell(e,i===n?r:n);if(!o){console.warn(`Can't get cell at row=${t}, col=${e}`);continue}this._nextCell(o,i,t,e),i=o}}this._rowEnd(t,t===o)}return this._afterSerialize(),this._serializeString(t)}_nextCell(e,t,n,r){}_rowEnd(e,t){}_beforeSerialize(e,t,n){}_afterSerialize(){}_serializeString(e){return``}};function ie(e,t){return e.getFgColorMode()===t.getFgColorMode()&&e.getFgColor()===t.getFgColor()}function ae(e,t){return e.getBgColorMode()===t.getBgColorMode()&&e.getBgColor()===t.getBgColor()}function oe(e,t){return e.isInverse()===t.isInverse()&&e.isBold()===t.isBold()&&e.isUnderline()===t.isUnderline()&&e.isOverline()===t.isOverline()&&e.isBlink()===t.isBlink()&&e.isInvisible()===t.isInvisible()&&e.isItalic()===t.isItalic()&&e.isDim()===t.isDim()&&e.isStrikethrough()===t.isStrikethrough()}var se=class extends re{constructor(e,t){super(e),this._terminal=t,this._rowIndex=0,this._allRows=[],this._allRowSeparators=[],this._currentRow=``,this._nullCellCount=0,this._cursorStyle=this._buffer.getNullCell(),this._cursorStyleRow=0,this._cursorStyleCol=0,this._backgroundCell=this._buffer.getNullCell(),this._firstRow=0,this._lastCursorRow=0,this._lastCursorCol=0,this._lastContentCursorRow=0,this._lastContentCursorCol=0,this._thisRowLastChar=this._buffer.getNullCell(),this._thisRowLastSecondChar=this._buffer.getNullCell(),this._nextRowFirstChar=this._buffer.getNullCell()}_beforeSerialize(e,t,n){this._allRows=Array(e),this._lastContentCursorRow=t,this._lastCursorRow=t,this._firstRow=t}_rowEnd(e,t){this._nullCellCount>0&&!ae(this._cursorStyle,this._backgroundCell)&&(this._currentRow+=`\x1B[${this._nullCellCount}X`);let n=``;if(!t){e-this._firstRow>=this._terminal.rows&&this._buffer.getLine(this._cursorStyleRow)?.getCell(this._cursorStyleCol,this._backgroundCell);let t=this._buffer.getLine(e),r=this._buffer.getLine(e+1);if(!r.isWrapped)n=`\r
3
3
  `,this._lastCursorRow=e+1,this._lastCursorCol=0;else{n=``;let i=t.getCell(t.length-1,this._thisRowLastChar),a=t.getCell(t.length-2,this._thisRowLastSecondChar),o=r.getCell(0,this._nextRowFirstChar),s=o.getWidth()>1,c=!1;(o.getChars()&&s?this._nullCellCount<=1:this._nullCellCount<=0)&&((i.getChars()||i.getWidth()===0)&&ae(i,o)&&(c=!0),s&&(a.getChars()||a.getWidth()===0)&&ae(i,o)&&ae(a,o)&&(c=!0)),c||(n=`-`.repeat(this._nullCellCount+1),n+=`\x1B[1D\x1B[1X`,this._nullCellCount>0&&(n+=`\x1B[A`,n+=`\x1B[${t.length-this._nullCellCount}C`,n+=`\x1B[${this._nullCellCount}X`,n+=`\x1B[${t.length-this._nullCellCount}D`,n+=`\x1B[B`),this._lastContentCursorRow=e+1,this._lastContentCursorCol=0,this._lastCursorRow=e+1,this._lastCursorCol=0)}}this._allRows[this._rowIndex]=this._currentRow,this._allRowSeparators[this._rowIndex++]=n,this._currentRow=``,this._nullCellCount=0}_diffStyle(e,t){let n=[],r=!ie(e,t),i=!ae(e,t),a=!oe(e,t);if(r||i||a){if(e.isAttributeDefault())t.isAttributeDefault()||n.push(0);else{if(r){let t=e.getFgColor();e.isFgRGB()?n.push(38,2,t>>>16&255,t>>>8&255,t&255):e.isFgPalette()?t>=16?n.push(38,5,t):n.push(t&8?90+(t&7):30+(t&7)):n.push(39)}if(i){let t=e.getBgColor();e.isBgRGB()?n.push(48,2,t>>>16&255,t>>>8&255,t&255):e.isBgPalette()?t>=16?n.push(48,5,t):n.push(t&8?100+(t&7):40+(t&7)):n.push(49)}a&&(e.isInverse()!==t.isInverse()&&n.push(e.isInverse()?7:27),e.isBold()!==t.isBold()&&n.push(e.isBold()?1:22),e.isUnderline()!==t.isUnderline()&&n.push(e.isUnderline()?4:24),e.isOverline()!==t.isOverline()&&n.push(e.isOverline()?53:55),e.isBlink()!==t.isBlink()&&n.push(e.isBlink()?5:25),e.isInvisible()!==t.isInvisible()&&n.push(e.isInvisible()?8:28),e.isItalic()!==t.isItalic()&&n.push(e.isItalic()?3:23),e.isDim()!==t.isDim()&&n.push(e.isDim()?2:22),e.isStrikethrough()!==t.isStrikethrough()&&n.push(e.isStrikethrough()?9:29))}}return n}_nextCell(e,t,n,r){if(e.getWidth()===0)return;let i=e.getChars()===``,a=this._diffStyle(e,this._cursorStyle);if(i?!ae(this._cursorStyle,e):a.length>0){this._nullCellCount>0&&(ae(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`\x1B[${this._nullCellCount}X`),this._currentRow+=`\x1B[${this._nullCellCount}C`,this._nullCellCount=0),this._lastContentCursorRow=this._lastCursorRow=n,this._lastContentCursorCol=this._lastCursorCol=r,this._currentRow+=`\x1B[${a.join(`;`)}m`;let e=this._buffer.getLine(n);e!==void 0&&(e.getCell(r,this._cursorStyle),this._cursorStyleRow=n,this._cursorStyleCol=r)}i?this._nullCellCount+=e.getWidth():(this._nullCellCount>0&&(ae(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`\x1B[${this._nullCellCount}X`),this._currentRow+=`\x1B[${this._nullCellCount}C`,this._nullCellCount=0),this._currentRow+=e.getChars(),this._lastContentCursorRow=this._lastCursorRow=n,this._lastContentCursorCol=this._lastCursorCol=r+e.getWidth())}_serializeString(e){let t=this._allRows.length;this._buffer.length-this._firstRow<=this._terminal.rows&&(t=this._lastContentCursorRow+1-this._firstRow,this._lastCursorCol=this._lastContentCursorCol,this._lastCursorRow=this._lastContentCursorRow);let n=``;for(let e=0;e<t;e++)n+=this._allRows[e],e+1<t&&(n+=this._allRowSeparators[e]);if(!e){let e=this._buffer.baseY+this._buffer.cursorY,t=this._buffer.cursorX;(e!==this._lastCursorRow||t!==this._lastCursorCol)&&((e=>{e>0?n+=`\x1B[${e}B`:e<0&&(n+=`\x1B[${-e}A`)})(e-this._lastCursorRow),(e=>{e>0?n+=`\x1B[${e}C`:e<0&&(n+=`\x1B[${-e}D`)})(t-this._lastCursorCol))}let r=this._terminal._core._inputHandler._curAttrData,i=this._diffStyle(r,this._cursorStyle);return i.length>0&&(n+=`\x1B[${i.join(`;`)}m`),n}},ce=class{activate(e){this._terminal=e}_serializeBufferByScrollback(e,t,n){let r=t.length,i=n===void 0?r:j(n+e.rows,0,r);return this._serializeBufferByRange(e,t,{start:r-i,end:r-1},!1)}_serializeBufferByRange(e,t,n,r){return new se(t,e).serialize({start:{x:0,y:typeof n.start==`number`?n.start:n.start.line},end:{x:e.cols,y:typeof n.end==`number`?n.end:n.end.line}},r)}_serializeBufferAsHTML(e,t){let n=e.buffer.active,r=new le(n,e,t),i=t.onlySelection??!1,a=t.range;if(a)return r.serialize({start:{x:a.startCol,y:(a.startLine,a.startLine)},end:{x:e.cols,y:(a.endLine,a.endLine)}});if(!i){let i=n.length,a=t.scrollback,o=a===void 0?i:j(a+e.rows,0,i);return r.serialize({start:{x:0,y:i-o},end:{x:e.cols,y:i-1}})}let o=this._terminal?.getSelectionPosition();return o===void 0?``:r.serialize({start:{x:o.start.x,y:o.start.y},end:{x:o.end.x,y:o.end.y}})}_serializeModes(e){let t=``,n=e.modes;if(n.applicationCursorKeysMode&&(t+=`\x1B[?1h`),n.applicationKeypadMode&&(t+=`\x1B[?66h`),n.bracketedPasteMode&&(t+=`\x1B[?2004h`),n.insertMode&&(t+=`\x1B[4h`),n.originMode&&(t+=`\x1B[?6h`),n.reverseWraparoundMode&&(t+=`\x1B[?45h`),n.sendFocusMode&&(t+=`\x1B[?1004h`),n.wraparoundMode===!1&&(t+=`\x1B[?7l`),n.mouseTrackingMode!==`none`)switch(n.mouseTrackingMode){case`x10`:t+=`\x1B[?9h`;break;case`vt200`:t+=`\x1B[?1000h`;break;case`drag`:t+=`\x1B[?1002h`;break;case`any`:t+=`\x1B[?1003h`}return t}serialize(e){if(!this._terminal)throw Error(`Cannot use addon until it has been loaded`);let t=e?.range?this._serializeBufferByRange(this._terminal,this._terminal.buffer.normal,e.range,!0):this._serializeBufferByScrollback(this._terminal,this._terminal.buffer.normal,e?.scrollback);if(!e?.excludeAltBuffer&&this._terminal.buffer.active.type===`alternate`){let e=this._serializeBufferByScrollback(this._terminal,this._terminal.buffer.alternate,void 0);t+=`\x1B[?1049h\x1B[H${e}`}return e?.excludeModes||(t+=this._serializeModes(this._terminal)),t}serializeAsHTML(e){if(!this._terminal)throw Error(`Cannot use addon until it has been loaded`);return this._serializeBufferAsHTML(this._terminal,e||{})}dispose(){}},le=class extends re{constructor(e,t,n){super(e),this._terminal=t,this._options=n,this._currentRow=``,this._htmlContent=``,this._ansiColors=t._core._themeService?t._core._themeService.colors.ansi:A}_padStart(e,t,n){return t>>=0,n??=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e)}_beforeSerialize(e,t,n){this._htmlContent+=`<html><body><!--StartFragment--><pre>`;let r=`#000000`,i=`#ffffff`;(this._options.includeGlobalBackground??!1)&&(r=this._terminal.options.theme?.foreground??`#ffffff`,i=this._terminal.options.theme?.background??`#000000`);let a=[];a.push(`color: `+r+`;`),a.push(`background-color: `+i+`;`),a.push(`font-family: `+this._terminal.options.fontFamily+`;`),a.push(`font-size: `+this._terminal.options.fontSize+`px;`),this._htmlContent+=`<div style='`+a.join(` `)+`'>`}_afterSerialize(){this._htmlContent+=`</div>`,this._htmlContent+=`</pre><!--EndFragment--></body></html>`}_rowEnd(e,t){this._htmlContent+=`<div><span>`+this._currentRow+`</span></div>`,this._currentRow=``}_getHexColor(e,t){let n=t?e.getFgColor():e.getBgColor();if(t?e.isFgRGB():e.isBgRGB())return`#`+[n>>16&255,n>>8&255,n&255].map(e=>this._padStart(e.toString(16),2,`0`)).join(``);if(t?e.isFgPalette():e.isBgPalette())return this._ansiColors[n].css}_diffStyle(e,t){let n=[],r=!ie(e,t),i=!ae(e,t),a=!oe(e,t);if(r||i||a){let t=this._getHexColor(e,!0);t&&n.push(`color: `+t+`;`);let r=this._getHexColor(e,!1);return r&&n.push(`background-color: `+r+`;`),e.isInverse()&&n.push(`color: #000000; background-color: #BFBFBF;`),e.isBold()&&n.push(`font-weight: bold;`),e.isUnderline()&&e.isOverline()?n.push(`text-decoration: overline underline;`):e.isUnderline()?n.push(`text-decoration: underline;`):e.isOverline()&&n.push(`text-decoration: overline;`),e.isBlink()&&n.push(`text-decoration: blink;`),e.isInvisible()&&n.push(`visibility: hidden;`),e.isItalic()&&n.push(`font-style: italic;`),e.isDim()&&n.push(`opacity: 0.5;`),e.isStrikethrough()&&n.push(`text-decoration: line-through;`),n}}_nextCell(e,t,n,r){if(e.getWidth()===0)return;let i=e.getChars()===``,a=this._diffStyle(e,t);a&&(this._currentRow+=a.length===0?`</span><span>`:`</span><span style='`+a.join(` `)+`'>`),i?this._currentRow+=` `:this._currentRow+=M(e.getChars())}_serializeString(){return this._htmlContent}},ue=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],de=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],N;function fe(e,t){let n=0,r=t.length-1,i;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else if(e<t[i][0])r=i-1;else return!0;return!1}var pe=class{constructor(){if(this.version=`6`,!N){N=new Uint8Array(65536),N.fill(1),N[0]=0,N.fill(0,1,32),N.fill(0,127,160),N.fill(2,4352,4448),N[9001]=2,N[9002]=2,N.fill(2,11904,42192),N[12351]=1,N.fill(2,44032,55204),N.fill(2,63744,64256),N.fill(2,65040,65050),N.fill(2,65072,65136),N.fill(2,65280,65377),N.fill(2,65504,65511);for(let e=0;e<ue.length;++e)N.fill(0,ue[e][0],ue[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?N[e]:fe(e,de)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let n=this.wcwidth(e),r=n===0&&t!==0;if(r){let e=Ze.extractWidth(t);e===0?r=!1:e>n&&(n=e)}return Ze.createPropertyValue(0,n,r)}},me=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?ye.isErrorNoTelemetry(e)?new ye(e.message+`
4
4
 
5
5
  `+e.stack):Error(e.message+`
@@ -11,7 +11,7 @@
11
11
  <meta name="apple-mobile-web-app-capable" content="yes" />
12
12
  <meta name="apple-mobile-web-app-title" content="rove" />
13
13
  <title>rove</title>
14
- <script type="module" crossorigin src="/assets/index-7xgjby6F.js"></script>
14
+ <script type="module" crossorigin src="/assets/index-Dfq3buJH.js"></script>
15
15
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
16
16
  <link rel="stylesheet" crossorigin href="/assets/index-CdiGbCTZ.css">
17
17
  </head>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@sma1lboy/rove",
4
- "version": "0.9.305-next.430",
4
+ "version": "0.9.305",
5
5
  "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.",
6
6
  "keywords": [
7
7
  "terminal",
@@ -106,8 +106,8 @@
106
106
  "@vitest/coverage-v8": "2.1.9",
107
107
  "knip": "^6.14.2",
108
108
  "react-devtools-core": "^7.0.1",
109
- "rove-bridge": "0.0.65",
110
- "rove-weixin": "0.0.65",
109
+ "rove-bridge": "0.0.66",
110
+ "rove-weixin": "0.0.66",
111
111
  "typescript": "5.8.2",
112
112
  "vitest": "2.1.9"
113
113
  },
@@ -1,16 +0,0 @@
1
- // @bun
2
- import{SSH_SHELL_IS_CMD,SSH_SHELL_PROBE,isWindowsPath,windowsRshScript,windowsRxScript}from"./chunk-cw9h73h5.js";import{getMachine,machineSshArgs}from"./chunk-37g0yabr.js";import{runAsync}from"./chunk-nw48bskt.js";import{quoteShellArg,quoteShellArgv}from"./chunk-7kysxgbq.js";import{pathWithin}from"./chunk-pn5ygqn6.js";import{homeDir}from"./chunk-8143k3t6.js";import{spawnSync}from"child_process";import{createHash}from"crypto";function forwardedServerName(name,machine){return`${name}-${machine}`.replace(/[^A-Za-z0-9_-]/g,"_")}function forwardPort(machine,host,port){return 20000+createHash("sha256").update(`${machine}\x00${host}:${port}`).digest().readUInt32BE(0)%40000}function forwardedMcp(machine,servers){return servers.flatMap((entry)=>{let url;try{url=new URL(entry.url)}catch{return[]}if(url.protocol!=="http:"&&url.protocol!=="https:")return[];let port=Number(url.port)||(url.protocol==="https:"?443:80),host=url.hostname,local=forwardPort(machine,host,port),here=new URL(url);return here.hostname="127.0.0.1",here.port=String(local),[{server:forwardedServerName(entry.name,machine),url:here.toString(),target:{host,port},port:local}]})}function machineMcp(machine){return forwardedMcp(machine,getMachine(machine)?.mcp??[])}function ensureMcpForwards(machine,forwards){let config=getMachine(machine);if(!config||forwards.length===0)return config?[]:[...forwards];let base=machineSshArgs(machine,config),flags=base.slice(1,-1),target=base.at(-1)??machine,ssh=(args,timeout)=>spawnSync(base[0]??"ssh",[...flags,...args,target],{stdio:"ignore",timeout}).status===0;if(!(ssh(["-O","check"],5000)||spawnSync(base[0]??"ssh",[...base.slice(1),"exit"],{stdio:"ignore",timeout:30000}).status===0))return[...forwards];return forwards.filter((fwd)=>!ssh(["-O","forward","-L",`127.0.0.1:${fwd.port}:${fwd.target.host}:${fwd.target.port}`],1e4))}import{chmodSync,existsSync as existsSync2,mkdirSync,readFileSync as readFileSync2,rmSync,rmdirSync,writeFileSync}from"fs";import{basename,dirname,join as join2}from"path";import{spawnSync as spawnSync2}from"child_process";import{existsSync,readFileSync}from"fs";import{join}from"path";function normalizeRemoteUrl(url){let u=url.trim();return u=u.replace(/^[a-z+]+:\/\//i,""),u=u.replace(/^[^@/]+@/,""),u=u.replace(/^([^/:]+):(?!\d+\/)/,"$1/"),u=u.replace(/^([^/:]+):\d+\//,"$1/"),u=u.replace(/\/+$/,"").replace(/\.git$/i,""),u=u.replace(/^ssh\.github\.com\//i,"github.com/"),u.toLowerCase()}function git(cwd,args){let res=spawnSync2("git",["-C",cwd,...args],{encoding:"utf8",timeout:5000,windowsHide:!0});return res.status===0?res.stdout.trim():null}var REMOTE_WORKSPACE_FILE=".rove-remote.json";function readLink(path){try{return JSON.parse(readFileSync(join(path,REMOTE_WORKSPACE_FILE),"utf8"))}catch{return}}function linkedRepoId(path){let id=readLink(path)?.repoId;return typeof id==="string"&&id?id:void 0}function linkedWorkspace(path){let link=readLink(path);return typeof link?.machine==="string"&&typeof link.path==="string"?{machine:link.machine,path:link.path}:void 0}function computeRepoId(path){let linked=linkedRepoId(path);if(linked)return linked;let origin=git(path,["remote","get-url","origin"]);if(origin)return normalizeRemoteUrl(origin);let root=git(path,["rev-list","--max-parents=0","HEAD"])?.split(`
3
- `).filter(Boolean).sort()[0];return root?`root:${root}`:void 0}var memo=new Map,NO_ID_TTL_MS=30000;function repoIdOf(path,now=Date.now()){if(!path)return;let hit=memo.get(path);if(hit&&(hit.id!==void 0||now-hit.at<NO_ID_TTL_MS))return hit.id;if(!existsSync(path))return;let id=computeRepoId(path);return memo.set(path,{id,at:now}),id}function remoteWorkspacesRoot(home=homeDir()){return join2(home,".rove","remote-workspaces")}function remoteWorkspaceDir(machine,taskId,name,home=homeDir()){return join2(remoteWorkspacesRoot(home),taskId,machine,basename(name.replaceAll("\\","/"))||"workspace")}function readRemoteWorkspace(dir){try{let raw=JSON.parse(readFileSync2(join2(dir,REMOTE_WORKSPACE_FILE),"utf8"));if(typeof raw.machine!=="string"||typeof raw.taskId!=="string"||typeof raw.path!=="string")return null;return{machine:raw.machine,taskId:raw.taskId,path:raw.path,...typeof raw.branch==="string"?{branch:raw.branch}:{},...typeof raw.repoId==="string"?{repoId:raw.repoId}:{}}}catch{return null}}var isRemoteWorkspace=(dir)=>existsSync2(join2(dir,REMOTE_WORKSPACE_FILE)),remoteBinDir=(dir)=>join2(dir,"bin"),rxPath=(dir)=>join2(remoteBinDir(dir),"rx"),SED_QUOTE=`sed "s/'/'\\\\\\\\''/g"`;function rxScript(sshArgv,path){return["#!/bin/sh","# Rove: run one command in this task's workspace on another machine.",`dir=${quoteShellArg(path)}`,`d=$(printf '%s' "$dir" | ${SED_QUOTE})`,`c=$(printf '%s' "$1" | ${SED_QUOTE})`,`exec ${quoteShellArgv(sshArgv)} "cd '$d' && exec \\"\\\${SHELL:-sh}\\" -lc '$c'"`,""].join(`
4
- `)}function rshScript(sshArgv,path){let[ssh="ssh",...rest]=sshArgv;return["#!/bin/sh","# Rove: open a shell in this task's workspace on another machine.",`dir=${quoteShellArg(path)}`,`d=$(printf '%s' "$dir" | ${SED_QUOTE})`,`exec ${quoteShellArgv([ssh,"-t",...rest])} "cd '$d' && exec \\"\\\${SHELL:-sh}\\" -l"`,""].join(`
5
- `)}var rshPath=(dir)=>join2(remoteBinDir(dir),"rsh");function remoteShellInput(dir){return existsSync2(rshPath(dir))?` exec ${quoteShellArg(rshPath(dir))}\r`:""}function linkedWorktree(dir){let ws=dir?readRemoteWorkspace(dir):null;return ws?{machine:ws.machine,taskId:ws.taskId}:void 0}function remoteNotes(ws){return["# This project lives on another machine","",`The project is not in this directory. It is on ${`the machine "${ws.machine}"${ws.system?` (${ws.system})`:""}`}, at \`${ws.path}\`. This directory only links to it.`,"","- Run every command as `rx '<command>'`. It runs in the project root there and passes stdin, output and the exit code through: `rx 'git status'`, `rx 'cat > src/a.ts' <<'EOF'`.","- Each `rx` call starts in the project root; a `cd` does not carry over to the next call.","- Read, search and edit the project's files through commands there. File tools that work on local paths only see this directory.","- git, tests and builds all run there. Nothing of the project is on this machine.",...whereThingsRun(ws,"- Run `rove` without `rx`: Rove and your task are on this machine, so `rove api \u2026` reaches this Rove and takes this machine's paths."),""].join(`
6
- `)}function whereThingsRun(ws,roveLine){let forwarded=ws.mcp??[];return["","## Which machine runs what","",roveLine,`- Your MCP tools${forwarded.length>0?" not listed below":""}, a browser among them, run on this machine, so \`localhost\` in them is this machine, not the project's.`,forwarded.length>0?`- These MCP servers are ${ws.machine}'s, forwarded here: ${forwarded.map((s)=>`\`${s}\``).join(", ")}. A page served on ${ws.machine} (a dev server you started there) opens in its browser at ${ws.machine}'s own \`localhost\` address; use them for that.`:`- A page served on ${ws.machine} is not at this machine's \`localhost\`. To open it in ${ws.machine}'s own browser, the owner can forward that machine's browser MCP server: \`rove machine mcp ${ws.machine} <name> <url>\`; it shows up in new sessions as \`<name>-${ws.machine}\`.`]}function projectInstructions(text){return text.trim()?`
7
- # The project's own instructions
8
-
9
- ${text.trim()}
10
- `:""}var MARK="@@rove-workspace@@";async function createRemoteLink(input,home=homeDir()){let{ws}=input,dir=remoteWorkspaceDir(ws.machine,ws.taskId,input.repo,home);if(mkdirSync(remoteBinDir(dir),{recursive:!0}),writeFileSync(join2(dir,REMOTE_WORKSPACE_FILE),`${JSON.stringify(ws,null,2)}
11
- `),isWindowsPath(ws.path)){let shell=await runAsync(input.sshArgv[0]??"ssh",[...input.sshArgv.slice(1),SSH_SHELL_PROBE],{timeoutMs:30000});writeFileSync(rxPath(dir),windowsRxScript(input.sshArgv,ws.path,SSH_SHELL_IS_CMD.test(shell.stdout))),writeFileSync(rshPath(dir),windowsRshScript(input.sshArgv,ws.path))}else writeFileSync(rxPath(dir),rxScript(input.sshArgv,ws.path)),writeFileSync(rshPath(dir),rshScript(input.sshArgv,ws.path));chmodSync(rxPath(dir),493),chmodSync(rshPath(dir),493);let probe=await runAsync(rxPath(dir),[`uname -sm; echo ${MARK}; cat AGENTS.md 2>/dev/null || cat CLAUDE.md 2>/dev/null`],{timeoutMs:30000});if(!probe.ok&&!probe.stdout.includes(MARK))throw removeRemoteLink(dir,home),Error(`${ws.machine} did not answer at ${ws.path}: ${(probe.stderr||"ssh failed").trim()}`);let[system="",...rest]=probe.stdout.split(`
12
- ${MARK}
13
- `),note={...ws,system:system.trim(),...input.mcp?.length?{mcp:input.mcp}:{}},project=projectInstructions(rest.join(`
14
- ${MARK}
15
- `));writeFileSync(join2(dir,"AGENTS.md"),remoteNotes(note)+project);for(let notes of input.engineNotes)writeFileSync(join2(dir,notes.file),notes.text(note)+project);return dir}function removeRemoteLink(dir,home=homeDir()){if(!pathWithin(remoteWorkspacesRoot(home),dir)||!isRemoteWorkspace(dir))return;rmSync(dir,{recursive:!0,force:!0});for(let parent of[dirname(dir),dirname(dirname(dir))])try{rmdirSync(parent)}catch{}}
16
- export{forwardedMcp,machineMcp,ensureMcpForwards,normalizeRemoteUrl,linkedWorkspace,repoIdOf,readRemoteWorkspace,isRemoteWorkspace,remoteBinDir,rxPath,remoteShellInput,linkedWorktree,whereThingsRun,createRemoteLink,removeRemoteLink};
@@ -1,3 +0,0 @@
1
- // @bun
2
- var IDENTITY_VARS=new Set(["TERM_PROGRAM","TERM_PROGRAM_VERSION","TERM_SESSION_ID","TERM_FEATURES","LC_TERMINAL","LC_TERMINAL_VERSION","__CFBundleIdentifier","VTE_VERSION","WT_SESSION","WT_PROFILE_ID","TMUX","TMUX_PANE","ZELLIJ","STY","WINDOW"]),IDENTITY_PREFIXES=["ITERM_","KITTY_","GHOSTTY_","WEZTERM_","ALACRITTY_","KONSOLE_","ZELLIJ_"];function embeddedTerminalEnv(base,overrides={}){let env={};for(let[key,value]of Object.entries(base)){if(IDENTITY_VARS.has(key))continue;if(IDENTITY_PREFIXES.some((prefix)=>key.startsWith(prefix)))continue;env[key]=value}return{...env,...overrides}}
3
- export{embeddedTerminalEnv};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{isDev}from"./chunk-8143k3t6.js";import{fileURLToPath}from"url";var package_default={$schema:"https://json.schemastore.org/package.json",name:"@sma1lboy/rove",version:"0.9.305-next.430",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.65","rove-weixin":"0.0.65",typescript:"5.8.2",vitest:"2.1.9"},trustedDependencies:[]};var RELEASE_CHANNELS=["latest","next","nightly"],DEFAULT_RELEASE_CHANNEL="latest";function channelFor(version){let dash=version.indexOf("-"),tag=dash===-1?void 0:version.slice(dash+1).split(".")[0];return tag==="nightly"||tag==="next"?tag:"latest"}var CURRENT_VERSION=package_default.version,PACKAGE_NAME=package_default.name;function repoSlug(){let url=package_default.repository?.url;if(!url)return null;let m=url.match(/github\.com[:/]([^/]+)\/([^/.]+)/);if(!m||!m[1]||!m[2])return null;return`${m[1]}/${m[2]}`}var UPDATE_SCRIPT_URL="https://raw.githubusercontent.com/Sma1lboy/rove/main/scripts/update.sh",UPDATE_COMMAND=`curl -fsSL ${UPDATE_SCRIPT_URL} | sh`;function updateCommandFor(target){return target===void 0||target===DEFAULT_RELEASE_CHANNEL?UPDATE_COMMAND:`${UPDATE_COMMAND} -s -- ${target}`}function owningNpmPrefix(modulePath=fileURLToPath(import.meta.url)){let at=modulePath.indexOf("/lib/node_modules/");if(at<=0)return null;return modulePath.slice(0,at)}function recommendedGlobalInstallCommand(prefix=owningNpmPrefix()){let target=`${PACKAGE_NAME}@latest`;return prefix===null?`npm install -g ${target}`:`npm install -g --prefix ${prefix} ${target}`}var BREAKING_VERSIONS=[];function breakingVersionsCrossed(from,to,breaking=BREAKING_VERSIONS){let[lo,hi]=compareSemver(from,to)<=0?[from,to]:[to,from];return breaking.filter((b)=>compareSemver(b,lo)>0&&compareSemver(b,hi)<=0)}var FETCH_TIMEOUT_MS=3000,PACKUMENT_TIMEOUT_MS=15000;function channelOf(version=CURRENT_VERSION){return channelFor(version)}async function fetchLatestFromRegistry(packageName,channel){let ctrl=new AbortController,timer=setTimeout(()=>ctrl.abort(),FETCH_TIMEOUT_MS);try{let encoded=packageName.replace("/","%2F"),res=await fetch(`https://registry.npmjs.org/${encoded}/${channel}`,{signal:ctrl.signal,headers:{accept:"application/json"}});if(!res.ok)return null;let body=await res.json();if(typeof body.version!=="string")return null;return body.version}catch{return null}finally{clearTimeout(timer)}}async function fetchPublishedAt(packageName,version){let ctrl=new AbortController,timer=setTimeout(()=>ctrl.abort(),PACKUMENT_TIMEOUT_MS);try{let encoded=packageName.replace("/","%2F"),res=await fetch(`https://registry.npmjs.org/${encoded}`,{signal:ctrl.signal,headers:{accept:"application/json"}});if(!res.ok)return null;let stamp=(await res.json()).time?.[version],ms=typeof stamp==="string"?Date.parse(stamp):Number.NaN;return Number.isFinite(ms)?ms:null}catch{return null}finally{clearTimeout(timer)}}function isNewerSemver(latest,current){let core=compareSemver(latest,current);if(core!==0)return core>0;return comparePrerelease(prereleaseOf(latest),prereleaseOf(current))>0}function prereleaseOf(version){let dash=version.indexOf("-");return dash===-1?void 0:version.slice(dash+1)||void 0}function comparePrerelease(a,b){if(a===b)return 0;if(a===void 0)return 1;if(b===void 0)return-1;let aParts=a.split("."),bParts=b.split(".");for(let i=0;i<Math.max(aParts.length,bParts.length);i++){let av=aParts[i],bv=bParts[i];if(av===void 0)return-1;if(bv===void 0)return 1;if(av===bv)continue;let an=/^\d+$/.test(av)?Number.parseInt(av,10):null,bn=/^\d+$/.test(bv)?Number.parseInt(bv,10):null;if(an!==null&&bn!==null)return an>bn?1:-1;if(an!==null)return-1;if(bn!==null)return 1;return av>bv?1:-1}return 0}function compareSemver(aVersion,bVersion){let norm=(v)=>v.split("-")[0]??v,a=norm(aVersion).split(".").map((s)=>Number.parseInt(s,10)),b=norm(bVersion).split(".").map((s)=>Number.parseInt(s,10));for(let i=0;i<3;i++){let av=a[i]??0,bv=b[i]??0;if(Number.isNaN(av)||Number.isNaN(bv))return 0;if(av>bv)return 1;if(av<bv)return-1}return 0}async function checkLatestVersion(opts={}){let channel=opts.channel??channelOf(),fake=process.env.ROVE_FAKE_UPDATE;if(fake)return{current:CURRENT_VERSION,latest:fake,hasUpdate:isNewerSemver(fake,CURRENT_VERSION),channel};if(isDev()&&!opts.force)return null;let latest=await fetchLatestFromRegistry(PACKAGE_NAME,channel);if(!latest)return null;let hasUpdate=isNewerSemver(latest,CURRENT_VERSION),minAgeMs=(opts.minAgeHours??0)*3600000;if(hasUpdate&&minAgeMs>0){let publishedAt=await fetchPublishedAt(PACKAGE_NAME,latest),now=(opts.now??Date.now)();if(publishedAt!==null&&now-publishedAt<minAgeMs)hasUpdate=!1}return{current:CURRENT_VERSION,latest,hasUpdate,channel}}function versionFromTagName(tagName,channel){if(typeof tagName!=="string")return null;let match=tagName.match(/^v\d+\.\d+\.\d+(?:-([a-z]+)\.\d+)?$/);if(!match||match[1]&&match[1]!==channel)return null;return tagName.slice(1)}var ZH_NOTES_ASSET="release-notes.zh.md";async function notesBody(release,locale,signal){if(locale!=="zh"||!Array.isArray(release.assets))return release.body;let asset=release.assets.find((a)=>a.name===ZH_NOTES_ASSET);if(typeof asset?.browser_download_url!=="string")return release.body;try{let res=await fetch(asset.browser_download_url,{signal}),text=res.ok?await res.text():"";return text.trim()?text:release.body}catch{return release.body}}async function fetchReleaseNotes(version,locale="en"){let slug=repoSlug();if(!slug)return null;let tag=`v${version}`,ctrl=new AbortController,timer=setTimeout(()=>ctrl.abort(),FETCH_TIMEOUT_MS);try{let res=await fetch(`https://api.github.com/repos/${slug}/releases/tags/${tag}`,{signal:ctrl.signal,headers:{accept:"application/vnd.github+json","x-github-api-version":"2022-11-28"}});if(!res.ok)return null;let body=await res.json();if(typeof body.body!=="string"||typeof body.html_url!=="string")return null;return{body:await notesBody({...body,body:body.body},locale,ctrl.signal),url:body.html_url,version}}catch{return null}finally{clearTimeout(timer)}}var RELEASES_PER_PAGE=100,MAX_RELEASE_PAGES=10;async function walkReleases(visit){let slug=repoSlug();if(!slug)return;for(let page=1;page<=MAX_RELEASE_PAGES;page++){let body;try{let res=await fetch(`https://api.github.com/repos/${slug}/releases?per_page=${RELEASES_PER_PAGE}&page=${page}`,{signal:AbortSignal.timeout(FETCH_TIMEOUT_MS),headers:{accept:"application/vnd.github+json","x-github-api-version":"2022-11-28"}});if(!res.ok)return;body=await res.json()}catch{return}if(!Array.isArray(body))return;for(let release of body)if(!visit(release))return;if(body.length<RELEASES_PER_PAGE)return}}async function fetchReleaseNotesRange(args){let channel=channelFor(args.latest),inRange=[];await walkReleases((release)=>{let version=versionFromTagName(release.tag_name,channel);if(!version)return!0;if(!isNewerSemver(version,args.current))return!1;if(isNewerSemver(version,args.latest))return!0;if(typeof release.html_url==="string"&&typeof release.body==="string")inRange.push({version,url:release.html_url,release:{...release,body:release.body}});return!0});let signal=AbortSignal.timeout(FETCH_TIMEOUT_MS);return Promise.all(inRange.map(async({version,url,release})=>({version,url,body:await notesBody(release,args.locale??"en",signal)})))}async function fetchReleaseSummaries(limit=12){let summaries=[];return await walkReleases((release)=>{let version=versionFromTagName(release.tag_name);if(version&&typeof release.html_url==="string")summaries.push({version,url:release.html_url});return summaries.length<limit}),summaries}function releasePageUrl(version){let slug=repoSlug();if(!slug)return null;return`https://github.com/${slug}/releases/tag/v${version}`}
3
- export{package_default,RELEASE_CHANNELS,DEFAULT_RELEASE_CHANNEL,CURRENT_VERSION,PACKAGE_NAME,repoSlug,UPDATE_SCRIPT_URL,UPDATE_COMMAND,updateCommandFor,owningNpmPrefix,recommendedGlobalInstallCommand,BREAKING_VERSIONS,breakingVersionsCrossed,channelOf,isNewerSemver,compareSemver,checkLatestVersion,ZH_NOTES_ASSET,fetchReleaseNotes,fetchReleaseNotesRange,fetchReleaseSummaries,releasePageUrl};