@sma1lboy/rove 0.9.299 → 0.9.300-next.355
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.
- package/dist/cli/{chunk-6wssap0t.js → chunk-115bza3h.js} +1 -1
- package/dist/cli/{chunk-7tgkwp99.js → chunk-20gf6y6b.js} +1 -1
- package/dist/cli/{chunk-1e1vfppc.js → chunk-213h6sk6.js} +1 -1
- package/dist/cli/{chunk-hp4k9vpe.js → chunk-22810s2r.js} +1 -1
- package/dist/cli/{chunk-88wz9zcq.js → chunk-2z8ckebn.js} +1 -1
- package/dist/cli/{chunk-wrg4bsbw.js → chunk-3q7ytcgb.js} +1 -1
- package/dist/cli/{chunk-3aym3sba.js → chunk-6m8kr510.js} +1 -1
- package/dist/cli/{chunk-34fhp2ck.js → chunk-6re9wfms.js} +2 -2
- package/dist/cli/{chunk-ncjwdhse.js → chunk-7ca9s17e.js} +1 -1
- package/dist/cli/{chunk-nvf8k04m.js → chunk-7jdph2h4.js} +1 -1
- package/dist/cli/{chunk-3m41b0n7.js → chunk-7mtx3cvd.js} +1 -1
- package/dist/cli/{chunk-tjcw0fzt.js → chunk-8wf10wtd.js} +1 -1
- package/dist/cli/chunk-8zw9ya8n.js +3 -0
- package/dist/cli/{chunk-9sq7th80.js → chunk-bdfsefsx.js} +2 -2
- package/dist/cli/{chunk-tw73vrq4.js → chunk-bry010mp.js} +1 -1
- package/dist/cli/{chunk-g6hzc2dw.js → chunk-ccn3tc96.js} +2 -2
- package/dist/cli/{chunk-g1drj26p.js → chunk-djkv0n0p.js} +2 -2
- package/dist/cli/{chunk-5xker6xn.js → chunk-e4f3gqsy.js} +1 -1
- package/dist/cli/{chunk-dk2vbkbv.js → chunk-e4wzk82z.js} +1 -1
- package/dist/cli/{chunk-ydvtzf74.js → chunk-eh35q61a.js} +1 -1
- package/dist/cli/{chunk-yzzs69np.js → chunk-fchps4nq.js} +1 -1
- package/dist/cli/{chunk-8qr3kca5.js → chunk-fzqfdrpx.js} +1 -1
- package/dist/cli/{chunk-3cf967q4.js → chunk-g9jcfw3m.js} +1 -1
- package/dist/cli/{chunk-xyw32jjt.js → chunk-gep10vs7.js} +1 -1
- package/dist/cli/{chunk-j6rkg0a4.js → chunk-h5eqfpta.js} +1 -1
- package/dist/cli/{chunk-xxgrq4d3.js → chunk-hh1w1jfk.js} +1 -1
- package/dist/cli/{chunk-64v78t3w.js → chunk-j0br9w5z.js} +1 -1
- package/dist/cli/{chunk-wxs2yqnz.js → chunk-j0zscf52.js} +1 -1
- package/dist/cli/{chunk-m4zacsjk.js → chunk-kqnkn19k.js} +1 -1
- package/dist/cli/{chunk-rvb9b1mr.js → chunk-m225bvmy.js} +1 -1
- package/dist/cli/{chunk-nsfewp42.js → chunk-nbg158p0.js} +1 -1
- package/dist/cli/{chunk-a02mweev.js → chunk-neft2vsn.js} +1 -1
- package/dist/cli/{chunk-e2xh0w1a.js → chunk-p58pyctw.js} +1 -1
- package/dist/cli/{chunk-ay8pwbgn.js → chunk-qdv3jc34.js} +1 -1
- package/dist/cli/{chunk-8tp3vs1j.js → chunk-r46zcbba.js} +1 -1
- package/dist/cli/{chunk-swg22z6q.js → chunk-s0jsmawr.js} +1 -1
- package/dist/cli/{chunk-yjw1wa8d.js → chunk-snmtgs5r.js} +1 -1
- package/dist/cli/{chunk-vyqgq8ct.js → chunk-t5cccery.js} +1 -1
- package/dist/cli/{chunk-xe6wrg72.js → chunk-ta2jwp3j.js} +1 -1
- package/dist/cli/{chunk-2xe3wr7g.js → chunk-tk4b553b.js} +1 -1
- package/dist/cli/{chunk-9gg07kkc.js → chunk-vbrh0sf9.js} +1 -1
- package/dist/cli/{chunk-fyj9wy78.js → chunk-vr4ktnaz.js} +1 -1
- package/dist/cli/{chunk-4zb3nqs5.js → chunk-xhssxnhp.js} +1 -1
- package/dist/cli/{chunk-a2naafjr.js → chunk-xrmr3098.js} +1 -1
- package/dist/cli/{chunk-ttpwban2.js → chunk-y7aggk7c.js} +1 -1
- package/dist/cli/{chunk-16xhmzfh.js → chunk-z4g22n0g.js} +2 -2
- package/dist/cli/index.js +2 -2
- package/dist/cli/rove.js +3 -3
- package/dist/web/assets/{index-CidDBOEI.css → index-DYvEJ1Mu.css} +1 -1
- package/dist/web/assets/index-GQQlLq2C.js +83 -0
- package/dist/web/assets/{term-mount-pkpAikMy.js → term-mount-D_eQTRxq.js} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/relay/index.html +2 -2
- package/package.json +1 -1
- package/dist/cli/chunk-xfz83737.js +0 -3
- package/dist/web/assets/index-Xz9-coqU.js +0 -83
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t,b as n,c as r,d as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _,v,y}from"./index-
|
|
1
|
+
import{_ as e,a as t,b as n,c as r,d as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _,v,y}from"./index-GQQlLq2C.js";var b=0,x=0,S=0,C=0,w;(e=>{function t(e,t,n,r){return r===void 0?`#${D(e)}${D(t)}${D(n)}`:`#${D(e)}${D(t)}${D(n)}${D(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 ee;(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=te.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]=te.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]=te.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})(ee||={});var T;(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})(T||={});var E;(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})(E||={});var te;(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=E.relativeLuminance(e>>8),o=E.relativeLuminance(t>>8);if(O(a,o)<n){if(o<a){let o=r(e,t,n),s=O(a,E.relativeLuminance(o>>8));if(s<n){let r=i(e,t,n);return s>O(a,E.relativeLuminance(r>>8))?o:r}return o}let s=i(e,t,n),c=O(a,E.relativeLuminance(s>>8));if(c<n){let i=r(e,t,n);return c>O(a,E.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=O(E.relativeLuminance2(o,s,c),E.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=O(E.relativeLuminance2(o,s,c),E.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=O(E.relativeLuminance2(o,s,c),E.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=O(E.relativeLuminance2(o,s,c),E.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})(te||={});function D(e){let t=e.toString(16);return t.length<2?`0`+t:t}function O(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var ne=Object.freeze((()=>{let e=[T.toColor(`#2e3436`),T.toColor(`#cc0000`),T.toColor(`#4e9a06`),T.toColor(`#c4a000`),T.toColor(`#3465a4`),T.toColor(`#75507b`),T.toColor(`#06989a`),T.toColor(`#d3d7cf`),T.toColor(`#555753`),T.toColor(`#ef2929`),T.toColor(`#8ae234`),T.toColor(`#fce94f`),T.toColor(`#729fcf`),T.toColor(`#ad7fa8`),T.toColor(`#34e2e2`),T.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 re(e,t,n){return Math.max(t,Math.min(e,n))}function k(e){switch(e){case`&`:return`&`;case`<`:return`<`}return e}var A=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 j(e,t){return e.getFgColorMode()===t.getFgColorMode()&&e.getFgColor()===t.getFgColor()}function ie(e,t){return e.getBgColorMode()===t.getBgColorMode()&&e.getBgColor()===t.getBgColor()}function ae(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 oe=class extends A{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&&!ie(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
2
|
`,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)&&ie(i,o)&&(c=!0),s&&(a.getChars()||a.getWidth()===0)&&ie(i,o)&&ie(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=!j(e,t),i=!ie(e,t),a=!ae(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?!ie(this._cursorStyle,e):a.length>0){this._nullCellCount>0&&(ie(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&&(ie(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}},se=class{activate(e){this._terminal=e}_serializeBufferByScrollback(e,t,n){let r=t.length,i=n===void 0?r:re(n+e.rows,0,r);return this._serializeBufferByRange(e,t,{start:r-i,end:r-1},!1)}_serializeBufferByRange(e,t,n,r){return new oe(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 ce(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:re(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(){}},ce=class extends A{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:ne}_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=!j(e,t),i=!ie(e,t),a=!ae(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+=k(e.getChars())}_serializeString(){return this._htmlContent}},le=[[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]],ue=[[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]],M;function de(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 fe=class{constructor(){if(this.version=`6`,!M){M=new Uint8Array(65536),M.fill(1),M[0]=0,M.fill(0,1,32),M.fill(0,127,160),M.fill(2,4352,4448),M[9001]=2,M[9002]=2,M.fill(2,11904,42192),M[12351]=1,M.fill(2,44032,55204),M.fill(2,63744,64256),M.fill(2,65040,65050),M.fill(2,65072,65136),M.fill(2,65280,65377),M.fill(2,65504,65511);for(let e=0;e<le.length;++e)M.fill(0,le[e][0],le[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?M[e]:de(e,ue)?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=Xe.extractWidth(t);e===0?r=!1:e>n&&(n=e)}return Xe.createPropertyValue(0,n,r)}},pe=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?ve.isErrorNoTelemetry(e)?new ve(e.message+`
|
|
3
3
|
|
|
4
4
|
`+e.stack):Error(e.message+`
|
package/dist/web/index.html
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
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-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-GQQlLq2C.js"></script>
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DYvEJ1Mu.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="root"></div>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<meta name="referrer" content="no-referrer" />
|
|
7
|
-
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'sha256-
|
|
7
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'sha256-4aPmCyc2fwrj+yiPq3HjzKd6p30M2g14Iw5Ndsg2qNg=' blob:; style-src 'unsafe-inline'; font-src blob: data:; img-src data: blob:; media-src data: blob:; connect-src 'self' ws: wss:; base-uri 'none'; form-action 'none'" />
|
|
8
8
|
<title>rove</title>
|
|
9
9
|
<style>html,body{margin:0;background:#1a1a1a;color:#ccc;font:14px ui-monospace,monospace}#relay-status{padding:24px}</style>
|
|
10
10
|
</head>
|
|
@@ -28,7 +28,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
28
28
|
This worktree is at the PR's head ({head}, going into {base}). Read the change against {base} (git diff origin/{base}...HEAD), then tell me what you find: bugs, risks, missing tests, anything unclear. Do not push, comment on or approve the PR; report here.`}},ho={reviewQueue:{sourceIssues:"[ 议题 ]",sourceReviews:"[ 等我评审的 PR ]",palette:"评审队列",title:"等我评审的 PR",empty:"你的项目里没有等你评审的 PR。",other:"另有 {count} 个在 Rove 不认识的项目里。",draft:"草稿",fork:"fork",checksPassing:"检查通过",checksFailing:"检查未通过",checksPending:"检查进行中",start:"[ 评审 ]",preparing:"正在获取 #{number}…",failed:"无法开始评审 #{number}:{error}",gh:{missing:"没有安装 `gh` 命令行,或不在 PATH 中。",unauthenticated:"`gh` 未登录:请在这台 Mac 上运行 `gh auth login`。",failed:"暂时读不到 GitHub。按 r 重试。"},prompt:`评审 {repo} 的拉取请求 #{number}:{title}
|
|
29
29
|
{url}
|
|
30
30
|
|
|
31
|
-
这个 worktree 在该 PR 的头部({head},合入 {base})。对照 {base} 阅读改动(git diff origin/{base}...HEAD),然后告诉我你的发现:bug、风险、缺失的测试、不清楚的地方。不要推送、评论或批准这个 PR;在这里汇报。`}};var Te={};f(Te,{zh:()=>ao,en:()=>ro});var ro={runLog:{title:"Runs",all:"all",outcome:{ok:"ok",blocked:"blocked",failed:"failed",skipped:"skipped"},source:{schedule:"schedule",manual:"manual",webhook:"webhook"},blocked:{"task-missing":"task is gone","awaiting-owner":"waiting on a decision","report-missing":"last run never reported",quota:"rate limited","engine-error":"engine error","engine-dead":"engine stopped","awaiting-permission":"waiting on a permission",busy:"still working"},blockedRun:"blocked: {reason}",empty:"No runs match.",more:"+{count} more"}},ao={runLog:{title:"运行记录",all:"全部",outcome:{ok:"成功",blocked:"受阻",failed:"失败",skipped:"跳过"},source:{schedule:"定时",manual:"手动",webhook:"Webhook"},blocked:{"task-missing":"任务已不存在","awaiting-owner":"等你做决定","report-missing":"上次运行没有汇报",quota:"触发限流","engine-error":"引擎出错","engine-dead":"引擎已停止","awaiting-permission":"等你授权",busy:"仍在运行"},blockedRun:"受阻:{reason}",empty:"没有符合条件的运行。",more:"另有 {count} 条"}};var Me={};f(Me,{zh:()=>uo,en:()=>go});var go={settings:{title:"Settings",open:"settings",sections:{connectors:"Connectors",appearance:"Appearance",notifications:"Notifications",snippets:"Snippets",about:"About",voice:"Voice"},groups:{preferences:"Preferences",agents:"Agents and tools",more:"More"},pages:{general:"Language, layout, and where Rove opens files and creates worktrees.",appearance:"Theme, colours, and how tasks and panes look.",notifications:"When Rove tells you a task finished or needs you.",keys:"Rebind chords in your own file, and how the prefix guide behaves.",engines:"The coding agents Rove can start, and how it plugs into them.",autoRouting:"What each depth tier starts, and who picks the tier.",voice:"Dictation: the recognizer that turns what you say into prompts.",connectors:"Accounts Rove uses, here and on your other machines.",plugins:"Built-in pages and registered plugins.",about:"Versions, updates, and this browser.",feedback:"Send a note to the Rove team.",dev:"Experimental switches, restarts and resets.",snippets:"Prompt text you reuse. Type @name in a prompt to insert it."},connectors:{githubDescription:"Clone, push and open PRs on every machine with one GitHub account",connect:"Connect",disconnect:"Disconnect",disconnectBody:"Signs this machine's gh out of GitHub, for every tool that uses gh and not only Rove. Other machines keep their own sign-ins.",machines:"Machines",thisMachine:"This machine",machinesHint:"Each machine signs in to GitHub by itself. The mark says whether it uses the same account as this one.",refresh:"Check again",refreshing:"Checking…",useRove:"Use Rove's account",loginThere:"Log in there",codeHint:"Enter this code at GitHub (click the code to copy it)",openGithub:"Open github.com/login/device",codeCopied:"Code copied",syncing:"Signed in. Bringing the other machines along…",loginFailed:"Sign-in failed: {error}",dismiss:"Dismiss",loading:"checking…",markSame:"✓ same account",markDifferent:"⚠ @{login}",markSignedOut:"✗ signed out",markNoGh:"gh is not installed",markOutdated:"Rove there is outdated",markOffline:"offline",markDenied:"refuses credential changes",markFailed:"could not check",detail:"git over {protocol} · SSH key {ssh}",synced:"{machine} now uses @{login}"},general:{groupInterface:"Interface",groupFiles:"Worktrees",groupTerminal:"Terminal",tabStrip:"Tab strip",scrollback:"Scrollback"},appearance:{groupColours:"Colours",groupTasks:"Tasks and panes",taskColorsNote:"Gives each task its own hue on the working border and in the list.",colorblindNote:"Shows added and removed lines in blue and red instead of green and red.",workingBorderNote:"The pane's border while the selected task is working.",railGroup:"Task list",railGroupProject:"By project",railGroupState:"By state",statusMark:"Task status",statusMarkEngine:"Engine icon",statusMarkBoth:"Icon and dots",statusMarkDots:"Dots only",previewWorking:"Working",previewDone:"Finished, unread",previewIdle:"Idle",previewWaiting:"Waiting for you",previewBroken:"Broken",previewTitle:"Fix the login redirect"},notifications:{toastNote:"A popup in the corner of this page.",volume:"Chime volume"},about:{groupRove:"Rove",daemon:"Daemon",daemonCurrent:"rove {version}, same build as this page",daemonStale:"rove {version} is out of date; run `rove daemon restart`",updates:"Updates",browser:"This browser",browserHint:"Forget this browser's token. A login token is revoked on the host too.",access:"Access",signIn:"Sign-in",signInMode:{open:"None",password:"Password",token:"Token link"},signInHint:{open:"A browser on this computer opens Rove with no link or password. Phones and other computers still need a token.",password:"A browser without a token signs in with the password. Token links keep working.",token:"Only the link rove printed, or a device token, gets in. Password sign-in is off."},passwordSet:"Set a password",passwordChange:"Change the password",passwordHint:"At least {min} characters. It is stored hashed on this computer.",passwordField:"New password",passwordSave:"Save",signOut:"Sign out"},engines:{enabled:"Offer {name} when picking an engine",default:"Make {name} the default engine",namePlaceholder:"Display name (blank = default)",rename:"Rename",reset:"Reset to defaults",remove:"Remove engine",save:"Save",cancel:"Cancel"},plugins:{builtIn:"Built in",builtInHint:"First-party pages. Turning one off removes its entry from the rail.",registered:"Registered plugins",empty:"No other plugins registered.",linked:"linked",unsupportedPlatform:"unsupported platform",turnOn:"Install {name}"},feedback:{hint:"Files a public GitHub issue on the Rove repo, through `gh` on the machine running rove. Without a signed-in `gh` you get a prefilled link to open instead.",kindLabel:"Kind",kindBug:"Bug",kindIdea:"Idea",kindQuestion:"Question",titleLabel:"Title",body:"What happened",send:"File issue",sent:"Filed issue #{number}",notFiled:"Not filed yet. {hint}",openLink:"Open the prefilled issue",report:"Report a problem with an agent",reportNote:"An agent asks what went wrong, drafts the issue with you and files it.",reportFailed:"Could not start the conversation.",reportPrompt:"You are helping the user report a problem with Rove itself (not their own project) as a GitHub issue. First ask what they were doing and what felt wrong: one to three short questions, one at a time. Then collect context: run `rove --version` and `rove daemon status`, and read the last ~50 lines of `${ROVE_HOME_DIR:-$HOME}/.rove/daemon.log` only if the problem could involve the daemon. Draft an issue title and body (what happened, what they expected, steps, relevant output) and show it to the user. Only after they say OK, file it with a heredoc: `rove feedback --kind bug|idea|question --title \"...\" --body-file - <<'EOF'` followed by the body and `EOF`. Then share the issue URL. If it prints a prefilled link instead (gh missing or signed out), give the user that link and tell them to run `gh auth login`."}},prefs:{languageHint:"Display language, shared with the TUI.",soundHint:"chime, plus a desktop notification while this tab is in the background",soundVolumeHint:"Plays the new level when you pick it.",push:"Notify when this page is closed",pushHint:"This browser gets a notification when a task finishes, needs you or fails, even with no Rove page open. Follows the cross-task switch.",pushUnsupported:"This browser can't receive push here: it needs https (or localhost), and on iPhone/iPad the page added to the home screen.",pushBlocked:"Notifications are blocked for this site; allow them in the browser's site settings.",pushFailed:"Couldn't turn it on: {error}",zenHint:"Hide the Files pane. The zen chip and ctrl+a z toggle it and write this same setting.",editInTui:"Edit it in the TUI.",tierModel:"model",tierEdit:"Edit",tierEffort:"Reasoning effort",classifierConnection:"Classifier connection",unset:"(none)",modeAuto:"Auto (follow the browser)",themePreviewHint:"Point at a theme to see this page in it; click to keep it. The TUI follows.",themeUser:"yours",themeInstalled:"Installed",themeMoreHint:"Not installed yet: point to preview, click to install and switch.",themeBrowse:"Browse {count} more from rove.run",themeHide:"Hide themes from rove.run",themeGet:"get",themeInstalling:"installing…",themeInstallFailed:"failed, retry",themeAgent:"Make one with an agent",themeAgentHint:"opens a Scratch session; reopen Settings to see what it wrote.",themeAgentFailed:"couldn't open the session; try again.",themeAgentPrompt:"Make me a new Rove color theme. Ask me first what look I want, unless I already said. Save it as one JSON file in {dir} (for example {dir}/my-theme.json); the file name is the theme's name. The format is in https://github.com/sma1lboy/rove/blob/main/docs/themes.md and the JSON schema is https://raw.githubusercontent.com/sma1lboy/rove/main/packages/rove/src/tui/context/theme/theme.schema.json. Start from https://raw.githubusercontent.com/sma1lboy/rove/main/packages/rove/src/tui/context/theme/claude.json, give each color slot a { dark, light } pair, and keep text readable on every background. When it's saved, run `rove theme list` to check it loads, then tell me the name: it appears in Settings → Appearance.",resetButton:"Reset",resetHint:"Clears this Mac's saved settings and task list, restarts the Rove daemon, then reloads this page. Worktrees on disk and engine session history are not touched.",resetBody:"Wipes ~/.config/rove/state.json and ~/.rove/tasks.json and restarts the daemon, then reloads this page with an empty task list. Worktrees on disk and engine session history are NOT touched.",restartButton:"Restart",restartHint:"Stops the Rove daemon and starts a fresh one; this page reconnects on its own. Running engine sessions live in the PTY host and survive it.",restartBody:"Stops the Rove daemon and starts a fresh one, picking up daemon edits. This page reconnects in a few seconds. Running engine sessions survive.",keysYaml:"The file is read on the Mac; changes apply when you come back to this page."},keys:{editHint:"Click a key to record a new one, then press the key you want. To put it behind the prefix, press the prefix key first. The × removes it.",reset:"Reset",recordFor:"Record a key for {name}",removeFor:"Remove the key for {name}",pluginNoTask:"Select a task before using a plugin chord.",pluginChords:"Plugin chords",agent:"Change them with an agent",agentHint:"opens a Scratch session; reopen Settings to see what it changed.",agentFailed:"couldn't open the session; try again.",agentPrompt:"Change my Rove keybindings. Ask me first what I want changed, unless I already said. Edit {path} (create it if it is missing; keep existing entries and comments you were not asked to change). The format, every binding id and its default chord are in https://github.com/sma1lboy/rove/blob/main/docs/KEYBINDINGS.md (see Customizing). Only use binding ids listed there; a direct override replaces that binding's whole chord list, and null unbinds. The file must stay valid YAML: check it parses (for example with `ruby -ryaml -e 'YAML.load_file(ARGV[0])' {path}` or any YAML parser you have). Rove reloads it live, and unknown ids or invalid chords are ignored with a warning, so when you are done tell me what you changed and ask me to reopen Settings → Keybindings: it lists every applied override and every warning."},pages:{attachTooLarge:"{name} is larger than 500 MB",new:"[ new ]",routinePause:"[ pause ]",routineEnable:"[ enable ]",delete:"[ delete ]",routinesNeedYou:"NEEDS YOU",routinesActive:"ACTIVE",routinesPaused:"PAUSED",laterStarts:"LATER",laterCancel:"[ cancel ]",laterFailed:"Did not start: {error}",laterCancelFailed:"Could not cancel the start: {error}",routineSchedule:"Schedule",routineNext:"Next run",routineProject:"Project",routineDelivers:"Delivers to",routineEngine:"Engine",routineChangeEngine:"[ change ]",routinePrompt:"PROMPT",routineScript:"SCRIPT",cronDown:"Decrease {field}",cronUp:"Increase {field}",storySave:"save",storySaveStart:"save & start",storyStart:"start",attachHintTouch:"paste a path / a screenshot → inserts an image placeholder"}},uo={settings:{title:"设置",open:"设置",sections:{connectors:"连接器",appearance:"外观",notifications:"通知",snippets:"片段",about:"关于",voice:"语音"},groups:{preferences:"偏好",agents:"智能体与工具",more:"更多"},pages:{general:"语言、布局,以及 Rove 在哪里打开文件、创建 worktree。",appearance:"主题、颜色,以及任务和面板的外观。",notifications:"任务完成或需要你时,Rove 怎么提醒。",keys:"在你自己的文件里重绑快捷键,以及前缀引导的行为。",engines:"Rove 能启动的编码智能体,以及它如何接入它们。",autoRouting:"每个深度档位启动什么,以及由谁选择档位。",voice:"口述:把你说的话变成提示词的识别器。",connectors:"Rove 使用的账号,本机和你的其他机器。",plugins:"内置页面和已注册的插件。",about:"版本、更新,以及此浏览器。",feedback:"给 Rove 团队留一条意见。",dev:"实验开关、重启和重置。",snippets:"常用的提示词文本。在提示词里输入 @名称 即可插入。"},connectors:{githubDescription:"用同一个 GitHub 账号在每台机器上克隆、推送和开 PR",connect:"连接",disconnect:"断开",disconnectBody:"把这台机器的 gh 从 GitHub 退出登录,所有用 gh 的工具都会受影响,不只是 Rove。其他机器保持各自的登录。",machines:"机器",thisMachine:"本机",machinesHint:"每台机器各自登录 GitHub。右边的标记表示它和本机用的是不是同一个账号。",refresh:"重新检查",refreshing:"检查中…",useRove:"使用 Rove 的账号",loginThere:"在那里登录",codeHint:"到 GitHub 输入这个验证码(点击验证码可复制)",openGithub:"打开 github.com/login/device",codeCopied:"验证码已复制",syncing:"已登录,正在同步其他机器…",loginFailed:"登录失败:{error}",dismiss:"关闭",loading:"检查中…",markSame:"✓ 同一账号",markDifferent:"⚠ @{login}",markSignedOut:"✗ 未登录",markNoGh:"未安装 gh",markOutdated:"那边的 Rove 版本过旧",markOffline:"离线",markDenied:"拒绝修改凭据",markFailed:"无法检查",detail:"git 走 {protocol} · SSH 密钥 {ssh}",synced:"{machine} 现在使用 @{login}"},general:{groupInterface:"界面",groupFiles:"Worktree",groupTerminal:"终端",tabStrip:"标签栏",scrollback:"回滚行数"},appearance:{groupColours:"颜色",groupTasks:"任务与面板",taskColorsNote:"让每个任务在工作边框和列表里有自己的色调。",colorblindNote:"新增和删除的行用蓝色和红色,而不是绿色和红色。",workingBorderNote:"所选任务工作时,面板边框的样子。",railGroup:"任务列表",railGroupProject:"按项目",railGroupState:"按状态",statusMark:"任务状态",statusMarkEngine:"引擎图标",statusMarkBoth:"图标加点阵",statusMarkDots:"只有点阵",previewWorking:"正在跑",previewDone:"完成未读",previewIdle:"空闲",previewWaiting:"等你回答",previewBroken:"出错",previewTitle:"修复登录跳转"},notifications:{toastNote:"本页角落里的弹出提示。",volume:"提示音音量"},about:{groupRove:"Rove",daemon:"守护进程",daemonCurrent:"rove {version},与本页同一版本",daemonStale:"rove {version} 版本过旧;运行 `rove daemon restart`",updates:"更新",browser:"此浏览器",browserHint:"忘掉此浏览器的令牌。登录得到的令牌也会在主机上吊销。",access:"访问",signIn:"登录方式",signInMode:{open:"免登录",password:"密码",token:"Token 链接"},signInHint:{open:"本机浏览器不用链接或密码就能打开 Rove。手机和其他电脑仍然需要 token。",password:"没有 token 的浏览器用密码登录。Token 链接照常可用。",token:"只有 rove 打印的链接或设备 token 能进。密码登录关闭。"},passwordSet:"设置密码",passwordChange:"修改密码",passwordHint:"至少 {min} 个字符。以哈希形式存在本机。",passwordField:"新密码",passwordSave:"保存",signOut:"退出登录"},engines:{enabled:"选引擎时列出 {name}",default:"把 {name} 设为默认引擎",namePlaceholder:"显示名称(留空 = 默认)",rename:"重命名",reset:"恢复默认",remove:"移除引擎",save:"保存",cancel:"取消"},plugins:{builtIn:"内置",builtInHint:"官方页面。关掉后,它在侧栏的入口会消失。",registered:"已注册的插件",empty:"没有其他已注册的插件。",linked:"已链接",unsupportedPlatform:"平台不支持",turnOn:"安装 {name}"},feedback:{hint:"通过运行 rove 那台机器上的 `gh`,在 Rove 仓库提一个公开的 GitHub issue。没有登录 `gh` 时会给你一条预填好的链接。",kindLabel:"类型",kindBug:"缺陷",kindIdea:"想法",kindQuestion:"问题",titleLabel:"标题",body:"发生了什么",send:"提交 issue",sent:"已提交 issue #{number}",notFiled:"还没提交。{hint}",openLink:"打开预填好的 issue",report:"让 agent 帮我报告问题",reportNote:"由 agent 问清哪里不对,和你一起起草 issue 并提交。",reportFailed:"没能开始对话。",reportPrompt:"你在帮用户把 Rove 本身的问题(不是他们自己项目的问题)提成一个 GitHub issue。先问清楚他们当时在做什么、哪里不对劲:一到三个简短的问题,一次问一个。然后收集上下文:运行 `rove --version` 和 `rove daemon status`,只有问题可能和 daemon 有关时才读 `${ROVE_HOME_DIR:-$HOME}/.rove/daemon.log` 的最后约 50 行。起草 issue 的标题和正文(发生了什么、期望什么、复现步骤、相关输出)并展示给用户。用户确认之后才提交,用 heredoc:`rove feedback --kind bug|idea|question --title \"...\" --body-file - <<'EOF'`,接正文,最后一行 `EOF`。然后把 issue 链接发给用户。如果输出的是预填链接(没装 gh 或没登录),把链接给用户,并告诉他运行 `gh auth login`。"}},prefs:{languageHint:"显示语言,与 TUI 共用同一设置。",soundHint:"提示音;本页在后台时另发桌面通知",soundVolumeHint:"选中后会播放新音量。",push:"页面关闭时也通知",pushHint:"任务完成、需要你或出错时,即使没有打开任何 Rove 页面,这个浏览器也会收到通知。跟随「跨任务通知」开关。",pushUnsupported:"这个浏览器在这里收不到推送:需要 https(或 localhost),iPhone/iPad 上还要先把页面添加到主屏幕。",pushBlocked:"这个网站的通知被浏览器屏蔽了,去浏览器的网站设置里允许。",pushFailed:"没能开启:{error}",zenHint:"收起文件栏。zen 按钮和 ctrl+a z 切换时会写入同一个设置。",editInTui:"请在 TUI 中编辑",tierModel:"模型",tierEdit:"编辑",tierEffort:"推理强度",classifierConnection:"分类器连接",unset:"(无)",modeAuto:"自动(跟随浏览器)",themePreviewHint:"鼠标指向一个主题,整页就换成它看看;点一下就定下来。TUI 也会跟着换。",themeUser:"自装",themeInstalled:"已安装",themeMoreHint:"尚未安装:指向即预览,点一下安装并切换。",themeBrowse:"浏览 rove.run 上的另外 {count} 个主题",themeHide:"收起 rove.run 的主题",themeGet:"安装",themeInstalling:"安装中…",themeInstallFailed:"失败,重试",themeAgent:"让 agent 做一个",themeAgentHint:"会开一个 Scratch 会话;做好后重新打开设置就能看到。",themeAgentFailed:"会话没打开,再试一次。",themeAgentPrompt:"帮我做一个新的 Rove 配色主题。先问我想要什么风格,除非我已经说过。把它存成 {dir} 下的一个 JSON 文件(比如 {dir}/my-theme.json),文件名就是主题名。格式说明见 https://github.com/sma1lboy/rove/blob/main/docs/themes.md,JSON schema 是 https://raw.githubusercontent.com/sma1lboy/rove/main/packages/rove/src/tui/context/theme/theme.schema.json。以 https://raw.githubusercontent.com/sma1lboy/rove/main/packages/rove/src/tui/context/theme/claude.json 为起点,每个颜色槽都给 { dark, light } 两个值,并保证文字在每种背景上都看得清。存好后运行 `rove theme list` 确认能加载,然后告诉我主题名:它会出现在 设置 → 外观 里。",resetButton:"重置",resetHint:"清空这台 Mac 上保存的设置和任务列表,重启 Rove 守护进程,然后刷新本页。磁盘上的工作树和引擎会话历史不受影响。",resetBody:"清空 ~/.config/rove/state.json 和 ~/.rove/tasks.json 并重启守护进程,然后刷新本页,任务列表为空。磁盘上的工作树和引擎会话历史不会被动。",restartButton:"重启",restartHint:"停止 Rove 守护进程并启动新的进程,本页会自动重连。运行中的引擎会话在 PTY 宿主里,不受影响。",restartBody:"停止 Rove 守护进程并启动新的进程,载入守护进程的改动。本页几秒后自动重连,运行中的引擎会话不受影响。",keysYaml:"该文件在 Mac 上读取,改动会在你回到本页时生效。"},keys:{editHint:"点一个按键开始录入,再按你想要的键。想放到 prefix 后面,就先按 prefix 键。× 是删掉它。",reset:"恢复默认",recordFor:"为「{name}」录入按键",removeFor:"删掉「{name}」的按键",pluginNoTask:"使用插件快捷键前请先选中一个任务。",pluginChords:"插件快捷键",agent:"让 agent 来改",agentHint:"会开一个 Scratch 会话;改好后重新打开设置就能看到。",agentFailed:"会话没打开,再试一次。",agentPrompt:"帮我改 Rove 的快捷键。先问我想改什么,除非我已经说过。编辑 {path}(不存在就新建;没让你改的条目和注释都保留)。格式、每个 binding id 及其默认按键见 https://github.com/sma1lboy/rove/blob/main/docs/KEYBINDINGS.md(Customizing 一节)。只用那里列出的 binding id;直接覆盖会替换该 binding 的整个按键列表,null 表示解绑。文件必须保持合法 YAML:确认它能解析(比如 `ruby -ryaml -e 'YAML.load_file(ARGV[0])' {path}`,或任何你有的 YAML 解析器)。Rove 会实时重新加载它,未知 id 或无效按键会被忽略并给出警告,所以改完后告诉我改了什么,并请我重新打开 设置 → 快捷键:那里会列出所有生效的覆盖和所有警告。"},pages:{attachTooLarge:"{name} 超过 500 MB",new:"[ 新建 ]",routinePause:"[ 暂停 ]",routineEnable:"[ 启用 ]",delete:"[ 删除 ]",routinesNeedYou:"需要处理",routinesActive:"运行中",routinesPaused:"已暂停",laterStarts:"稍后启动",laterCancel:"[ 取消 ]",laterFailed:"没有启动:{error}",laterCancelFailed:"取消失败:{error}",routineSchedule:"调度",routineNext:"下次执行",routineProject:"项目",routineDelivers:"投递到",routineEngine:"引擎",routineChangeEngine:"[ 更换 ]",routinePrompt:"提示词",routineScript:"脚本",cronDown:"减小{field}",cronUp:"增大{field}",storySave:"保存",storySaveStart:"保存并启动",storyStart:"启动",attachHintTouch:"粘贴路径 / 截图 → 插入图片占位行"}};var Ce={};f(Ce,{zh:()=>lo,en:()=>mo});var mo={transcript:{you:"You",agent:"Agent",system:"System",copy:"[ copy ]",copied:"Copied",export:"[ export .md ]",findPlaceholder:"Find in this conversation",findCount:"{at} / {total}",findNone:"no match",prev:"[ prev ]",next:"[ next ]",older:"[ load earlier ]",loading:"Reading the conversation…",empty:"Nothing said yet.",failed:"failed",error:"Could not read the conversation: {error}",retry:"[ retry ]",noHistory:"This engine keeps no history Rove can read. Showing its terminal tail.",tail:"Terminal tail"}},lo={transcript:{you:"你",agent:"智能体",system:"系统",copy:"[ 复制 ]",copied:"已复制",export:"[ 导出 .md ]",findPlaceholder:"在这段对话中查找",findCount:"{at} / {total}",findNone:"没有匹配",prev:"[ 上一个 ]",next:"[ 下一个 ]",older:"[ 加载更早 ]",loading:"正在读取对话…",empty:"还没有对话内容。",failed:"失败",error:"读不到这段对话:{error}",retry:"[ 重试 ]",noHistory:"这个引擎没有 Rove 能读取的历史记录,显示的是它的终端末尾。",tail:"终端末尾"}};var Be={};f(Be,{zh:()=>vo,en:()=>wo});var wo={usage:{title:"Usage",receipt:"Usage receipt",total:"Total tokens",thanks:"Thank you, burn again soon",open:"Open usage",range:"last {days} days · tokens are input + output",perDay:"Per day",byModel:"By engine and model",topTasks:"Top tasks",quota:"Quota",turns:"{count} turns",loading:"Loading…",empty:"No turns recorded in this window.",failed:"Could not read usage: {error}",cutoff:"The daemon returns at most {count} turns: {day} and earlier are partial.",noReader:"{engines}: no turn reader, so their work is not counted here.",removedTask:"(removed task)",full:"at this pace full around {time}, before it resets",lasts:"at this pace it lasts until the reset"}},vo={usage:{title:"用量",receipt:"用量小票",total:"合计 token",thanks:"谢谢惠顾,欢迎再烧",open:"打开用量",range:"最近 {days} 天 · token 为输入加输出",perDay:"按天",byModel:"按引擎和模型",topTasks:"用量最高的任务",quota:"额度",turns:"{count} 轮",loading:"加载中…",empty:"这段时间没有记录到任何一轮。",failed:"无法读取用量:{error}",cutoff:"守护进程最多返回 {count} 轮:{day} 及更早的数据不完整。",noReader:"{engines}:没有轮次读取器,这里不统计它们的工作。",removedTask:"(已删除的任务)",full:"按当前速度约 {time} 用完,早于重置时间",lasts:"按当前速度可撑到重置"}};var Oe={};f(Oe,{zh:()=>ko,en:()=>po});var po={voice:{say:"Say",stop:"Stop {time}",release:"Release {time}",working:"Hearing…",hint:"Dictate: tap to start and stop, or hold to talk and let go",slideToSend:"Slide up to send",tipSend:"Let go to send",hold:"Hold to talk",holdOrType:"Hold to talk, tap to type",learned:"Learned {pairs}",learnedPair:"{spoken} → {term}",undo:"undo",unlearned:"Forgotten",unlearnFailed:"Couldn't undo: the voice sidecar isn't answering",setup:{dictation:"Dictation",backend:{off:"Off",local:"On this Mac",cloud:"Cloud"},unavailable:"This Rove cannot set up dictation",offHint:"The mic is hidden. Nothing runs in the background.",localNeeded:"Install the model below; the mic shows once it is ready.",localInstalling:"Installing the model; the mic shows once it is ready.",cloudNeeded:"Save an endpoint below to turn dictation on.",ready:"{model} · ready",starting:"Starting…",localTitle:"Whisper large-v3",localHint:"Runs on this Mac's GPU, about 3.5 GB to download. Audio never leaves the Mac.",install:"Install",installing:"Installing…",installed:"Installed, about 4 GB on disk.",failed:"Install failed: {line}",uninstall:"Uninstall",uninstallAsk:"Remove the model?",cancel:"Cancel",cloudTitle:"Cloud endpoint",cloudHint:"Any OpenAI-compatible /audio/transcriptions service. The audio and your terms go there; the key stays on the Mac.",baseURL:"Base URL",model:"Model",apiKey:"API key",keySaved:"Saved; leave empty to keep it",save:"Save",saveAndUse:"Save and use",forget:"Forget",forgetAsk:"Remove the endpoint and its key?"}}},ko={voice:{say:"说",stop:"停 {time}",release:"松手 {time}",working:"在听…",hint:"口述:点一下开始、再点一下结束,或按住说话、松手结束",slideToSend:"上滑发送",tipSend:"松手发送",hold:"按住说话",holdOrType:"按住说话,轻点打字",learned:"记住了 {pairs}",learnedPair:"{spoken} → {term}",undo:"撤销",unlearned:"已撤销",unlearnFailed:"没能撤销:语音服务没有响应",setup:{dictation:"语音输入",backend:{off:"关闭",local:"本机",cloud:"云端"},unavailable:"这个 Rove 无法设置语音输入",offHint:"不显示麦克风,后台也不运行任何东西。",localNeeded:"在下面安装模型,就绪后显示麦克风。",localInstalling:"正在安装模型,就绪后显示麦克风。",cloudNeeded:"在下面保存一个服务地址后开启。",ready:"{model} · 就绪",starting:"启动中…",localTitle:"Whisper large-v3",localHint:"在这台 Mac 的 GPU 上运行,约需下载 3.5 GB。音频不离开这台 Mac。",install:"安装",installing:"安装中…",installed:"已安装,约占 4 GB 磁盘。",failed:"安装失败:{line}",uninstall:"卸载",uninstallAsk:"删除模型?",cancel:"取消",cloudTitle:"云端服务",cloudHint:"任何兼容 OpenAI /audio/transcriptions 的服务。音频和你的术语会发到那里;密钥只存在这台 Mac 上。",baseURL:"Base URL",model:"模型",apiKey:"API 密钥",keySaved:"已保存;留空则保留原密钥",save:"保存",saveAndUse:"保存并使用",forget:"删除",forgetAsk:"删除这个服务地址和密钥?"}}};var Fe={};f(Fe,{zh:()=>fo,en:()=>co});var co={workspace:{pickTask:"pick a task on the left",noTabs:"no open sessions in this task",startEngine:"Start {engine}",startSession:"Start session",tabNotLive:"this tab has no running session",restored:"restored session, read-only until reopened",exited:"session ended (exit {code})",attachFailed:"could not open this session: {message}",reopen:"Reopen session",reopening:"Reopening…",reopenFailed:"could not reopen this session: {message}",engineExited:"engine exited (code {code})",retry:"Retry",engineSettings:"Settings → Engines",usageLimitUntil:"usage limit reached — rove resumes this task at {time}",resumeQuota:"resume now",resumingQuota:"resuming…",usageLimit:"usage limit reached",dismiss:"Dismiss",openTask:"Open"},tab:{shell:"shell",engine:"engine"},firstRun:{title:"All your coding agents, in one place",body:"When one runs out of quota, switch the task to another. Agents talk to each other directly, and every task gets its own worktree and branch.",start:"Start your first task"},status:{connecting:"connecting",retrying:"reconnecting, attempt {count}",retry:"retry now",backlog:"Backlog",inProgress:"In progress",inReview:"In review",done:"Done",canceled:"Canceled",error:"Error"},connect:{title:"open the link rove printed",body:"Run `rove --web` and open the link it prints, or paste it here.",placeholder:"http://127.0.0.1:7878/#token=…",submit:"connect",invalid:"that is not a `rove --web` link",failing:"can't reach rove. Is `rove --web` still running? After `--rotate-token`, open the new link.",forget:"forget this link",notConnected:"not connected to rove — reconnecting (the view refreshes on its own)"},relay:{unpaired:"open the relay link that `rove --web --preset relay` printed on your computer",connecting:"connecting to your computer through the relay…",loading:"loading rove…",offline:"your computer is not answering on this relay. Is `rove --web --preset relay` still running? After `--rotate-relay`, open the new link. Reload to retry.",failed:"can't reach your computer through the relay ({error}). Reload to retry."},login:{title:"sign in",body:"Enter this Rove's password.",field:"password",submit:"sign in",checking:"checking…",wrong:"that did not work",locked:"too many tries from here; try again in {minutes} min",lockedHost:"password login is locked; run `rove --web --unlock` on the host",unreachable:"can't reach rove. Is `rove --web` still running?"},layout:{splitTooSmall:"Not enough room to split here",railFold:"Fold the task list",navBack:"Back",navForward:"Forward",railUnfold:"Unfold the task list",dropUploading:"Uploading {name}…",pasteNoImage:"No image on this browser's clipboard",pasteNoAccess:"Can't read this browser's clipboard: {error}",pasteNeedsHttps:"the page needs https or localhost",refreshRove:"Refresh Rove",refreshConfirm:"Rove will restart the daemon and reconnect. Your running sessions will keep going.",refreshVersions:"bridge {bridge} · daemon {daemon}",unknownVersion:"unknown",refreshTimeout:"The daemon did not come back on the new build in time; check `rove daemon status`",railResize:"Drag to resize the task list, click to fold it, double-click to reset",composerPlaceholder:"Message the agent",composerSend:"Send",composerAttach:"Attach a file",composerNotSent:"Not sent: {reason}",composerOldBridge:"This Mac's rove --web is older than this page; restart it to send from here.",composerAtMenu:"The agent is waiting on a choice. Answer it with the 1–4 and ⏎ keys below; your message is kept.",termKeys:"Terminal keys",termKeyUp:"Up arrow",termKeyDown:"Down arrow",termKeyLeft:"Left arrow",termKeyRight:"Right arrow",termKeyInterrupt:"Ctrl+C, interrupt",termKeyEnter:"Enter",narrowTerminal:"Terminal"}},fo={workspace:{pickTask:"从左边选一个任务",noTabs:"这个任务没有打开的会话",startEngine:"启动 {engine}",startSession:"启动会话",tabNotLive:"这个标签没有在运行的会话",restored:"已恢复的会话,重新打开前只读",exited:"会话已结束(退出码 {code})",attachFailed:"打不开这个会话:{message}",reopen:"重新打开会话",reopening:"正在重新打开…",reopenFailed:"重新打开失败:{message}",engineExited:"引擎已退出(退出码 {code})",retry:"重试",engineSettings:"设置 → 引擎",usageLimitUntil:"已达到用量上限 —— rove 会在 {time} 自动继续这个任务",resumeQuota:"现在继续",resumingQuota:"正在继续…",usageLimit:"已达到用量上限",dismiss:"忽略",openTask:"打开"},tab:{shell:"终端",engine:"引擎"},firstRun:{title:"所有编程 agent,都在一个地方",body:"一个额度用完了,换另一个接着干;agent 之间直接对话。每个任务有独立的 worktree 和分支,互不覆盖。",start:"开始第一个任务"},status:{connecting:"连接中",retrying:"重连中,第 {count} 次",retry:"立即重试",backlog:"待办",inProgress:"进行中",inReview:"待评审",done:"已完成",canceled:"已取消",error:"出错"},connect:{title:"打开 rove 打印的链接",body:"运行 `rove --web`,打开它打印的链接,或者把链接粘贴到这里。",placeholder:"http://127.0.0.1:7878/#token=…",submit:"连接",invalid:"这不是 `rove --web` 打印的链接",failing:"连不上 rove。`rove --web` 还在运行吗?用过 `--rotate-token` 的话,请打开新的链接。",forget:"忘掉这个链接",notConnected:"没有连上 rove,正在重连(连上后这里会自动刷新)"},relay:{unpaired:"打开电脑上 `rove --web --preset relay` 打印的 relay 链接",connecting:"正在通过 relay 连接你的电脑…",loading:"正在加载 rove…",offline:"你的电脑没有在这个 relay 上应答。`rove --web --preset relay` 还在运行吗?用过 `--rotate-relay` 的话,请打开新的链接。刷新重试。",failed:"无法通过 relay 连到你的电脑({error})。刷新重试。"},login:{title:"登录",body:"输入这台 Rove 的密码。",field:"密码",submit:"登录",checking:"验证中…",wrong:"登录失败",locked:"这里尝试次数过多;{minutes} 分钟后再试",lockedHost:"密码登录已锁定;在主机上运行 `rove --web --unlock`",unreachable:"连不上 rove。`rove --web` 还在运行吗?"},layout:{splitTooSmall:"这里放不下分屏了",railFold:"折叠任务列表",navBack:"后退",navForward:"前进",railUnfold:"展开任务列表",dropUploading:"正在上传 {name}…",pasteNoImage:"浏览器剪贴板里没有图片",pasteNoAccess:"读不到浏览器剪贴板:{error}",pasteNeedsHttps:"页面要走 https 或 localhost",refreshRove:"刷新 Rove",refreshConfirm:"Rove 会重启守护进程并重新连接。正在运行的会话会继续。",refreshVersions:"桥接服务 {bridge} · 守护进程 {daemon}",unknownVersion:"版本未知",refreshTimeout:"守护进程没能及时以新版本重新上线,请检查 `rove daemon status`",railResize:"拖动调整任务列表宽度,单击折叠,双击还原",composerPlaceholder:"给 agent 发消息",composerSend:"发送",composerAttach:"附加文件",composerNotSent:"没发出去:{reason}",composerOldBridge:"这台 Mac 上的 rove --web 比页面旧,重启它之后才能从这里发送。",composerAtMenu:"agent 正在等你选择。用下方的 1–4 和 ⏎ 键回答;你的消息已保留。",termKeys:"终端按键",termKeyUp:"上方向键",termKeyDown:"下方向键",termKeyLeft:"左方向键",termKeyRight:"右方向键",termKeyInterrupt:"Ctrl+C 中断",termKeyEnter:"回车",narrowTerminal:"终端"}};var dt=[Pe,Fe,ce,Re,Me,pe,He,Te,Be,Ce,fe,ve,xe,ke,Oe],ht=Object.assign({},...dt.map((t)=>t.en)),Ro=Object.assign({},...dt.map((t)=>t.zh)),Ho={en:ht,zh:Ro};function Po(){try{let t=JSON.parse(localStorage.getItem("rove.prefs")??"null");if(t&&typeof t==="object"&&"prefs"in t){let o=t.prefs;if(o&&typeof o==="object"&&"locale"in o&&(o.locale==="en"||o.locale==="zh"))return o.locale}}catch{}return globalThis.navigator?.language?.toLowerCase().startsWith("zh")?"zh":"en"}var ze=st(Po());function rt(){let t=typeof document>"u"?void 0:document.documentElement;if(t)t.lang=ze.get()==="zh"?"zh-CN":"en"}rt();ze.subscribe(rt);function it(t,o){let s=t;for(let i of o.split(".")){if(!s||typeof s!=="object"||!(i in s))return;s=Reflect.get(s,i)}return typeof s==="string"?s:void 0}function xo(t,o){return o?t.replace(/\{(\w+)\}/g,(s,i)=>String(o[i]??s)):t}function I(t,o){return xo(it(Ho[ze.get()],t)??it(ht,t)??t,o)}var To=new Set([101,204,205,304]);function at(t){return t.state==="ready"?Promise.resolve():t.connect()}function gt(t){class o{static OPEN=1;readyState=0;onopen=null;onmessage=null;onclose=null;onerror=null;sock=null;constructor(s,i){let r=i.find((v)=>v.startsWith("rove.bearer."))?.slice(12),g=new URL(s,"http://relay").pathname+(r?`?token=${encodeURIComponent(r)}`:"");this.open(g)}async open(s){try{await at(t);let i=await t.openSocket(s);if(this.readyState===3){i.close();return}this.sock=i,i.onmessage=(r)=>this.onmessage?.({data:typeof r==="string"?r:new TextDecoder().decode(r)}),i.onclose=()=>this.closed(),this.readyState=1,this.onopen?.(new Event("open"))}catch{this.closed()}}send(s){this.sock?.send(s)}close(){this.sock?.close(),this.closed()}closed(){if(this.readyState===3)return;this.readyState=3,this.onclose?.(new Event("close"))}}return{async fetch(s,i={}){await at(t);let r=typeof i.body==="string"?i.body:void 0,g=await t.fetch(s,{method:i.method,headers:Object.fromEntries(new Headers(i.headers).entries()),body:r});return new Response(To.has(g.status)?null:g.bytes(),{status:g.status,headers:g.headers})},WebSocket:o}}var ut="rove.relay",Mo=/url\((\/assets\/[^)]+)\)/g;function j(t){let o=document.getElementById("relay-status");if(o)o.textContent=t}function Co(){let t=new URLSearchParams(location.hash.slice(1)),o=t.get("code");if(o){let s={server:t.get("relay")??location.origin,code:o};localStorage.setItem(ut,JSON.stringify(s));let i=t.get("token");return history.replaceState(null,"",location.pathname+location.search+(i?`#token=${i}`:"")),s}try{let s=JSON.parse(localStorage.getItem(ut)??"null");if(s&&typeof s==="object"&&"server"in s&&"code"in s){if(typeof s.server==="string"&&typeof s.code==="string")return{server:s.server,code:s.code}}}catch{}return null}function Bo(t){let o=t instanceof Error?t.message:String(t);if(/\b(4404|1011)\b|timed out|auth/i.test(o))return I("relay.offline");return I("relay.failed",{error:o})}async function mt(t,o,s){let i=await t.fetch(o);if(!i.ok)throw Error(`${o}: HTTP ${i.status}`);return URL.createObjectURL(new Blob([await i.arrayBuffer()],{type:s}))}async function Oo(t){let o=await t.fetch("/"),s=new DOMParser().parseFromString(await o.text(),"text/html"),i=s.querySelector('script[type="module"][src]')?.getAttribute("src");if(!i)throw Error(`no client script in the bridge's page (HTTP ${o.status})`);for(let g of s.querySelectorAll('link[rel="stylesheet"][href]')){let c=await(await t.fetch(g.getAttribute("href")??"")).text(),T=[...new Set([...c.matchAll(Mo)].map((H)=>H[1]??""))],M=await Promise.all(T.map(async(H)=>[H,await mt(t,H,"")]));for(let[H,z]of M)c=c.replaceAll(`url(${H})`,`url(${z})`);let C=document.createElement("style");C.textContent=c,document.head.append(C)}Reflect.set(globalThis,"__roveRelay",t);let r=document.createElement("script");r.type="module",r.src=await mt(t,i,"text/javascript"),document.head.append(r)}async function Fo(){let t=Co();if(!t){j(I("relay.unpaired"));return}j(I("relay.connecting"));let o=new we({serverUrl:t.server,code:t.code,quiet:!0});try{await o.connect(),j(I("relay.loading")),await Oo(gt(o))}catch(s){j(Bo(s))}}Fo();
|
|
31
|
+
这个 worktree 在该 PR 的头部({head},合入 {base})。对照 {base} 阅读改动(git diff origin/{base}...HEAD),然后告诉我你的发现:bug、风险、缺失的测试、不清楚的地方。不要推送、评论或批准这个 PR;在这里汇报。`}};var Te={};f(Te,{zh:()=>ao,en:()=>ro});var ro={runLog:{title:"Runs",all:"all",outcome:{ok:"ok",blocked:"blocked",failed:"failed",skipped:"skipped"},source:{schedule:"schedule",manual:"manual",webhook:"webhook"},blocked:{"task-missing":"task is gone","awaiting-owner":"waiting on a decision","report-missing":"last run never reported",quota:"rate limited","engine-error":"engine error","engine-dead":"engine stopped","awaiting-permission":"waiting on a permission",busy:"still working"},blockedRun:"blocked: {reason}",empty:"No runs match.",more:"+{count} more"}},ao={runLog:{title:"运行记录",all:"全部",outcome:{ok:"成功",blocked:"受阻",failed:"失败",skipped:"跳过"},source:{schedule:"定时",manual:"手动",webhook:"Webhook"},blocked:{"task-missing":"任务已不存在","awaiting-owner":"等你做决定","report-missing":"上次运行没有汇报",quota:"触发限流","engine-error":"引擎出错","engine-dead":"引擎已停止","awaiting-permission":"等你授权",busy:"仍在运行"},blockedRun:"受阻:{reason}",empty:"没有符合条件的运行。",more:"另有 {count} 条"}};var Me={};f(Me,{zh:()=>uo,en:()=>go});var go={settings:{title:"Settings",open:"settings",sections:{connectors:"Connectors",appearance:"Appearance",notifications:"Notifications",snippets:"Snippets",about:"About",voice:"Voice"},groups:{preferences:"Preferences",agents:"Agents and tools",more:"More"},pages:{general:"Language, layout, and where Rove opens files and creates worktrees.",appearance:"Theme, colours, and how tasks and panes look.",notifications:"When Rove tells you a task finished or needs you.",keys:"Rebind chords in your own file, and how the prefix guide behaves.",engines:"The coding agents Rove can start, and how it plugs into them.",autoRouting:"What each depth tier starts, and who picks the tier.",voice:"Dictation: the recognizer that turns what you say into prompts.",connectors:"Accounts Rove uses, here and on your other machines.",plugins:"Built-in pages and registered plugins.",about:"Versions, updates, and this browser.",feedback:"Send a note to the Rove team.",dev:"Experimental switches, restarts and resets.",snippets:"Prompt text you reuse. Type @name in a prompt to insert it."},connectors:{githubDescription:"Clone, push and open PRs on every machine with one GitHub account",connect:"Connect",disconnect:"Disconnect",disconnectBody:"Signs this machine's gh out of GitHub, for every tool that uses gh and not only Rove. Other machines keep their own sign-ins.",machines:"Machines",thisMachine:"This machine",machinesHint:"Each machine signs in to GitHub by itself. The mark says whether it uses the same account as this one.",refresh:"Check again",refreshing:"Checking…",useRove:"Use Rove's account",loginThere:"Log in there",codeHint:"Enter this code at GitHub (click the code to copy it)",openGithub:"Open github.com/login/device",codeCopied:"Code copied",syncing:"Signed in. Bringing the other machines along…",loginFailed:"Sign-in failed: {error}",dismiss:"Dismiss",loading:"checking…",markSame:"✓ same account",markDifferent:"⚠ @{login}",markSignedOut:"✗ signed out",markNoGh:"gh is not installed",markOutdated:"Rove there is outdated",markOffline:"offline",markDenied:"refuses credential changes",markFailed:"could not check",detail:"git over {protocol} · SSH key {ssh}",synced:"{machine} now uses @{login}"},general:{groupInterface:"Interface",tuiKeyHints:"Show shortcut reminders in the Rove terminal interface.",groupFiles:"Worktrees",groupTerminal:"Terminal",tabStrip:"Tab strip",scrollback:"Scrollback"},appearance:{groupColours:"Colours",groupTasks:"Tasks and panes",taskColorsNote:"Gives each task its own hue on the working border and in the list.",colorblindNote:"Shows added and removed lines in blue and red instead of green and red.",workingBorderNote:"The pane's border while the selected task is working.",railGroup:"Task list",railGroupProject:"By project",railGroupState:"By state",statusMark:"Task status",statusMarkEngine:"Engine icon",statusMarkBoth:"Icon and dots",statusMarkDots:"Dots only",previewWorking:"Working",previewDone:"Finished, unread",previewIdle:"Idle",previewWaiting:"Waiting for you",previewBroken:"Broken",previewTitle:"Fix the login redirect"},notifications:{toastNote:"A popup in the corner of this page.",volume:"Chime volume"},about:{groupRove:"Rove",daemon:"Daemon",daemonCurrent:"rove {version}, same build as this page",daemonStale:"rove {version} is out of date; run `rove daemon restart`",updates:"Updates",browser:"This browser",browserHint:"Forget this browser's token. A login token is revoked on the host too.",access:"Access",signIn:"Sign-in",signInMode:{open:"None",password:"Password",token:"Token link"},signInHint:{open:"A browser on this computer opens Rove with no link or password. Phones and other computers still need a token.",password:"A browser without a token signs in with the password. Token links keep working.",token:"Only the link rove printed, or a device token, gets in. Password sign-in is off."},passwordSet:"Set a password",passwordChange:"Change the password",passwordHint:"At least {min} characters. It is stored hashed on this computer.",passwordField:"New password",passwordSave:"Save",signOut:"Sign out"},engines:{enabled:"Offer {name} when picking an engine",default:"Make {name} the default engine",namePlaceholder:"Display name (blank = default)",rename:"Rename",reset:"Reset to defaults",remove:"Remove engine",save:"Save",cancel:"Cancel"},plugins:{builtIn:"Built in",builtInHint:"First-party pages. Turning one off removes its entry from the rail.",registered:"Registered plugins",empty:"No other plugins registered.",linked:"linked",unsupportedPlatform:"unsupported platform",turnOn:"Install {name}"},feedback:{hint:"Files a public GitHub issue on the Rove repo, through `gh` on the machine running rove. Without a signed-in `gh` you get a prefilled link to open instead.",kindLabel:"Kind",kindBug:"Bug",kindIdea:"Idea",kindQuestion:"Question",titleLabel:"Title",body:"What happened",send:"File issue",sent:"Filed issue #{number}",notFiled:"Not filed yet. {hint}",openLink:"Open the prefilled issue",report:"Report a problem with an agent",reportNote:"An agent asks what went wrong, drafts the issue with you and files it.",reportFailed:"Could not start the conversation.",reportPrompt:"You are helping the user report a problem with Rove itself (not their own project) as a GitHub issue. First ask what they were doing and what felt wrong: one to three short questions, one at a time. Then collect context: run `rove --version` and `rove daemon status`, and read the last ~50 lines of `${ROVE_HOME_DIR:-$HOME}/.rove/daemon.log` only if the problem could involve the daemon. Draft an issue title and body (what happened, what they expected, steps, relevant output) and show it to the user. Only after they say OK, file it with a heredoc: `rove feedback --kind bug|idea|question --title \"...\" --body-file - <<'EOF'` followed by the body and `EOF`. Then share the issue URL. If it prints a prefilled link instead (gh missing or signed out), give the user that link and tell them to run `gh auth login`."}},prefs:{languageHint:"Display language, shared with the TUI.",soundHint:"chime, plus a desktop notification while this tab is in the background",soundVolumeHint:"Plays the new level when you pick it.",push:"Notify when this page is closed",pushHint:"This browser gets a notification when a task finishes, needs you or fails, even with no Rove page open. Follows the cross-task switch.",pushUnsupported:"This browser can't receive push here: it needs https (or localhost), and on iPhone/iPad the page added to the home screen.",pushBlocked:"Notifications are blocked for this site; allow them in the browser's site settings.",pushFailed:"Couldn't turn it on: {error}",zenHint:"Hide the Files pane. The zen chip and ctrl+a z toggle it and write this same setting.",editInTui:"Edit it in the TUI.",tierModel:"model",tierEdit:"Edit",tierEffort:"Reasoning effort",classifierConnection:"Classifier connection",unset:"(none)",modeAuto:"Auto (follow the browser)",themePreviewHint:"Point at a theme to see this page in it; click to keep it. The TUI follows.",themeUser:"yours",themeInstalled:"Installed",themeMoreHint:"Not installed yet: point to preview, click to install and switch.",themeBrowse:"Browse {count} more from rove.run",themeHide:"Hide themes from rove.run",themeGet:"get",themeInstalling:"installing…",themeInstallFailed:"failed, retry",themeAgent:"Make one with an agent",themeAgentHint:"opens a Scratch session; reopen Settings to see what it wrote.",themeAgentFailed:"couldn't open the session; try again.",themeAgentPrompt:"Make me a new Rove color theme. Ask me first what look I want, unless I already said. Save it as one JSON file in {dir} (for example {dir}/my-theme.json); the file name is the theme's name. The format is in https://github.com/sma1lboy/rove/blob/main/docs/themes.md and the JSON schema is https://raw.githubusercontent.com/sma1lboy/rove/main/packages/rove/src/tui/context/theme/theme.schema.json. Start from https://raw.githubusercontent.com/sma1lboy/rove/main/packages/rove/src/tui/context/theme/claude.json, give each color slot a { dark, light } pair, and keep text readable on every background. When it's saved, run `rove theme list` to check it loads, then tell me the name: it appears in Settings → Appearance.",resetButton:"Reset",resetHint:"Clears this Mac's saved settings and task list, restarts the Rove daemon, then reloads this page. Worktrees on disk and engine session history are not touched.",resetBody:"Wipes ~/.config/rove/state.json and ~/.rove/tasks.json and restarts the daemon, then reloads this page with an empty task list. Worktrees on disk and engine session history are NOT touched.",restartButton:"Restart",restartHint:"Stops the Rove daemon and starts a fresh one; this page reconnects on its own. Running engine sessions live in the PTY host and survive it.",restartBody:"Stops the Rove daemon and starts a fresh one, picking up daemon edits. This page reconnects in a few seconds. Running engine sessions survive.",keysYaml:"The file is read on the Mac; changes apply when you come back to this page."},keys:{editHint:"Click a key to record a new one, then press the key you want. To put it behind the prefix, press the prefix key first. The × removes it.",reset:"Reset",recordFor:"Record a key for {name}",removeFor:"Remove the key for {name}",pluginNoTask:"Select a task before using a plugin chord.",pluginChords:"Plugin chords",agent:"Change them with an agent",agentHint:"opens a Scratch session; reopen Settings to see what it changed.",agentFailed:"couldn't open the session; try again.",agentPrompt:"Change my Rove keybindings. Ask me first what I want changed, unless I already said. Edit {path} (create it if it is missing; keep existing entries and comments you were not asked to change). The format, every binding id and its default chord are in https://github.com/sma1lboy/rove/blob/main/docs/KEYBINDINGS.md (see Customizing). Only use binding ids listed there; a direct override replaces that binding's whole chord list, and null unbinds. The file must stay valid YAML: check it parses (for example with `ruby -ryaml -e 'YAML.load_file(ARGV[0])' {path}` or any YAML parser you have). Rove reloads it live, and unknown ids or invalid chords are ignored with a warning, so when you are done tell me what you changed and ask me to reopen Settings → Keybindings: it lists every applied override and every warning."},pages:{attachTooLarge:"{name} is larger than 500 MB",new:"[ new ]",routinePause:"[ pause ]",routineEnable:"[ enable ]",delete:"[ delete ]",routinesNeedYou:"NEEDS YOU",routinesActive:"ACTIVE",routinesPaused:"PAUSED",laterStarts:"LATER",laterCancel:"[ cancel ]",laterFailed:"Did not start: {error}",laterCancelFailed:"Could not cancel the start: {error}",routineSchedule:"Schedule",routineNext:"Next run",routineProject:"Project",routineDelivers:"Delivers to",routineEngine:"Engine",routineChangeEngine:"[ change ]",routinePrompt:"PROMPT",routineScript:"SCRIPT",cronDown:"Decrease {field}",cronUp:"Increase {field}",storySave:"save",storySaveStart:"save & start",storyStart:"start",attachHintTouch:"paste a path / a screenshot → inserts an image placeholder"}},uo={settings:{title:"设置",open:"设置",sections:{connectors:"连接器",appearance:"外观",notifications:"通知",snippets:"片段",about:"关于",voice:"语音"},groups:{preferences:"偏好",agents:"智能体与工具",more:"更多"},pages:{general:"语言、布局,以及 Rove 在哪里打开文件、创建 worktree。",appearance:"主题、颜色,以及任务和面板的外观。",notifications:"任务完成或需要你时,Rove 怎么提醒。",keys:"在你自己的文件里重绑快捷键,以及前缀引导的行为。",engines:"Rove 能启动的编码智能体,以及它如何接入它们。",autoRouting:"每个深度档位启动什么,以及由谁选择档位。",voice:"口述:把你说的话变成提示词的识别器。",connectors:"Rove 使用的账号,本机和你的其他机器。",plugins:"内置页面和已注册的插件。",about:"版本、更新,以及此浏览器。",feedback:"给 Rove 团队留一条意见。",dev:"实验开关、重启和重置。",snippets:"常用的提示词文本。在提示词里输入 @名称 即可插入。"},connectors:{githubDescription:"用同一个 GitHub 账号在每台机器上克隆、推送和开 PR",connect:"连接",disconnect:"断开",disconnectBody:"把这台机器的 gh 从 GitHub 退出登录,所有用 gh 的工具都会受影响,不只是 Rove。其他机器保持各自的登录。",machines:"机器",thisMachine:"本机",machinesHint:"每台机器各自登录 GitHub。右边的标记表示它和本机用的是不是同一个账号。",refresh:"重新检查",refreshing:"检查中…",useRove:"使用 Rove 的账号",loginThere:"在那里登录",codeHint:"到 GitHub 输入这个验证码(点击验证码可复制)",openGithub:"打开 github.com/login/device",codeCopied:"验证码已复制",syncing:"已登录,正在同步其他机器…",loginFailed:"登录失败:{error}",dismiss:"关闭",loading:"检查中…",markSame:"✓ 同一账号",markDifferent:"⚠ @{login}",markSignedOut:"✗ 未登录",markNoGh:"未安装 gh",markOutdated:"那边的 Rove 版本过旧",markOffline:"离线",markDenied:"拒绝修改凭据",markFailed:"无法检查",detail:"git 走 {protocol} · SSH 密钥 {ssh}",synced:"{machine} 现在使用 @{login}"},general:{groupInterface:"界面",tuiKeyHints:"在 Rove 终端界面显示快捷键提示。",groupFiles:"Worktree",groupTerminal:"终端",tabStrip:"标签栏",scrollback:"回滚行数"},appearance:{groupColours:"颜色",groupTasks:"任务与面板",taskColorsNote:"让每个任务在工作边框和列表里有自己的色调。",colorblindNote:"新增和删除的行用蓝色和红色,而不是绿色和红色。",workingBorderNote:"所选任务工作时,面板边框的样子。",railGroup:"任务列表",railGroupProject:"按项目",railGroupState:"按状态",statusMark:"任务状态",statusMarkEngine:"引擎图标",statusMarkBoth:"图标加点阵",statusMarkDots:"只有点阵",previewWorking:"正在跑",previewDone:"完成未读",previewIdle:"空闲",previewWaiting:"等你回答",previewBroken:"出错",previewTitle:"修复登录跳转"},notifications:{toastNote:"本页角落里的弹出提示。",volume:"提示音音量"},about:{groupRove:"Rove",daemon:"守护进程",daemonCurrent:"rove {version},与本页同一版本",daemonStale:"rove {version} 版本过旧;运行 `rove daemon restart`",updates:"更新",browser:"此浏览器",browserHint:"忘掉此浏览器的令牌。登录得到的令牌也会在主机上吊销。",access:"访问",signIn:"登录方式",signInMode:{open:"免登录",password:"密码",token:"Token 链接"},signInHint:{open:"本机浏览器不用链接或密码就能打开 Rove。手机和其他电脑仍然需要 token。",password:"没有 token 的浏览器用密码登录。Token 链接照常可用。",token:"只有 rove 打印的链接或设备 token 能进。密码登录关闭。"},passwordSet:"设置密码",passwordChange:"修改密码",passwordHint:"至少 {min} 个字符。以哈希形式存在本机。",passwordField:"新密码",passwordSave:"保存",signOut:"退出登录"},engines:{enabled:"选引擎时列出 {name}",default:"把 {name} 设为默认引擎",namePlaceholder:"显示名称(留空 = 默认)",rename:"重命名",reset:"恢复默认",remove:"移除引擎",save:"保存",cancel:"取消"},plugins:{builtIn:"内置",builtInHint:"官方页面。关掉后,它在侧栏的入口会消失。",registered:"已注册的插件",empty:"没有其他已注册的插件。",linked:"已链接",unsupportedPlatform:"平台不支持",turnOn:"安装 {name}"},feedback:{hint:"通过运行 rove 那台机器上的 `gh`,在 Rove 仓库提一个公开的 GitHub issue。没有登录 `gh` 时会给你一条预填好的链接。",kindLabel:"类型",kindBug:"缺陷",kindIdea:"想法",kindQuestion:"问题",titleLabel:"标题",body:"发生了什么",send:"提交 issue",sent:"已提交 issue #{number}",notFiled:"还没提交。{hint}",openLink:"打开预填好的 issue",report:"让 agent 帮我报告问题",reportNote:"由 agent 问清哪里不对,和你一起起草 issue 并提交。",reportFailed:"没能开始对话。",reportPrompt:"你在帮用户把 Rove 本身的问题(不是他们自己项目的问题)提成一个 GitHub issue。先问清楚他们当时在做什么、哪里不对劲:一到三个简短的问题,一次问一个。然后收集上下文:运行 `rove --version` 和 `rove daemon status`,只有问题可能和 daemon 有关时才读 `${ROVE_HOME_DIR:-$HOME}/.rove/daemon.log` 的最后约 50 行。起草 issue 的标题和正文(发生了什么、期望什么、复现步骤、相关输出)并展示给用户。用户确认之后才提交,用 heredoc:`rove feedback --kind bug|idea|question --title \"...\" --body-file - <<'EOF'`,接正文,最后一行 `EOF`。然后把 issue 链接发给用户。如果输出的是预填链接(没装 gh 或没登录),把链接给用户,并告诉他运行 `gh auth login`。"}},prefs:{languageHint:"显示语言,与 TUI 共用同一设置。",soundHint:"提示音;本页在后台时另发桌面通知",soundVolumeHint:"选中后会播放新音量。",push:"页面关闭时也通知",pushHint:"任务完成、需要你或出错时,即使没有打开任何 Rove 页面,这个浏览器也会收到通知。跟随「跨任务通知」开关。",pushUnsupported:"这个浏览器在这里收不到推送:需要 https(或 localhost),iPhone/iPad 上还要先把页面添加到主屏幕。",pushBlocked:"这个网站的通知被浏览器屏蔽了,去浏览器的网站设置里允许。",pushFailed:"没能开启:{error}",zenHint:"收起文件栏。zen 按钮和 ctrl+a z 切换时会写入同一个设置。",editInTui:"请在 TUI 中编辑",tierModel:"模型",tierEdit:"编辑",tierEffort:"推理强度",classifierConnection:"分类器连接",unset:"(无)",modeAuto:"自动(跟随浏览器)",themePreviewHint:"鼠标指向一个主题,整页就换成它看看;点一下就定下来。TUI 也会跟着换。",themeUser:"自装",themeInstalled:"已安装",themeMoreHint:"尚未安装:指向即预览,点一下安装并切换。",themeBrowse:"浏览 rove.run 上的另外 {count} 个主题",themeHide:"收起 rove.run 的主题",themeGet:"安装",themeInstalling:"安装中…",themeInstallFailed:"失败,重试",themeAgent:"让 agent 做一个",themeAgentHint:"会开一个 Scratch 会话;做好后重新打开设置就能看到。",themeAgentFailed:"会话没打开,再试一次。",themeAgentPrompt:"帮我做一个新的 Rove 配色主题。先问我想要什么风格,除非我已经说过。把它存成 {dir} 下的一个 JSON 文件(比如 {dir}/my-theme.json),文件名就是主题名。格式说明见 https://github.com/sma1lboy/rove/blob/main/docs/themes.md,JSON schema 是 https://raw.githubusercontent.com/sma1lboy/rove/main/packages/rove/src/tui/context/theme/theme.schema.json。以 https://raw.githubusercontent.com/sma1lboy/rove/main/packages/rove/src/tui/context/theme/claude.json 为起点,每个颜色槽都给 { dark, light } 两个值,并保证文字在每种背景上都看得清。存好后运行 `rove theme list` 确认能加载,然后告诉我主题名:它会出现在 设置 → 外观 里。",resetButton:"重置",resetHint:"清空这台 Mac 上保存的设置和任务列表,重启 Rove 守护进程,然后刷新本页。磁盘上的工作树和引擎会话历史不受影响。",resetBody:"清空 ~/.config/rove/state.json 和 ~/.rove/tasks.json 并重启守护进程,然后刷新本页,任务列表为空。磁盘上的工作树和引擎会话历史不会被动。",restartButton:"重启",restartHint:"停止 Rove 守护进程并启动新的进程,本页会自动重连。运行中的引擎会话在 PTY 宿主里,不受影响。",restartBody:"停止 Rove 守护进程并启动新的进程,载入守护进程的改动。本页几秒后自动重连,运行中的引擎会话不受影响。",keysYaml:"该文件在 Mac 上读取,改动会在你回到本页时生效。"},keys:{editHint:"点一个按键开始录入,再按你想要的键。想放到 prefix 后面,就先按 prefix 键。× 是删掉它。",reset:"恢复默认",recordFor:"为「{name}」录入按键",removeFor:"删掉「{name}」的按键",pluginNoTask:"使用插件快捷键前请先选中一个任务。",pluginChords:"插件快捷键",agent:"让 agent 来改",agentHint:"会开一个 Scratch 会话;改好后重新打开设置就能看到。",agentFailed:"会话没打开,再试一次。",agentPrompt:"帮我改 Rove 的快捷键。先问我想改什么,除非我已经说过。编辑 {path}(不存在就新建;没让你改的条目和注释都保留)。格式、每个 binding id 及其默认按键见 https://github.com/sma1lboy/rove/blob/main/docs/KEYBINDINGS.md(Customizing 一节)。只用那里列出的 binding id;直接覆盖会替换该 binding 的整个按键列表,null 表示解绑。文件必须保持合法 YAML:确认它能解析(比如 `ruby -ryaml -e 'YAML.load_file(ARGV[0])' {path}`,或任何你有的 YAML 解析器)。Rove 会实时重新加载它,未知 id 或无效按键会被忽略并给出警告,所以改完后告诉我改了什么,并请我重新打开 设置 → 快捷键:那里会列出所有生效的覆盖和所有警告。"},pages:{attachTooLarge:"{name} 超过 500 MB",new:"[ 新建 ]",routinePause:"[ 暂停 ]",routineEnable:"[ 启用 ]",delete:"[ 删除 ]",routinesNeedYou:"需要处理",routinesActive:"运行中",routinesPaused:"已暂停",laterStarts:"稍后启动",laterCancel:"[ 取消 ]",laterFailed:"没有启动:{error}",laterCancelFailed:"取消失败:{error}",routineSchedule:"调度",routineNext:"下次执行",routineProject:"项目",routineDelivers:"投递到",routineEngine:"引擎",routineChangeEngine:"[ 更换 ]",routinePrompt:"提示词",routineScript:"脚本",cronDown:"减小{field}",cronUp:"增大{field}",storySave:"保存",storySaveStart:"保存并启动",storyStart:"启动",attachHintTouch:"粘贴路径 / 截图 → 插入图片占位行"}};var Ce={};f(Ce,{zh:()=>lo,en:()=>mo});var mo={transcript:{you:"You",agent:"Agent",system:"System",copy:"[ copy ]",copied:"Copied",export:"[ export .md ]",findPlaceholder:"Find in this conversation",findCount:"{at} / {total}",findNone:"no match",prev:"[ prev ]",next:"[ next ]",older:"[ load earlier ]",loading:"Reading the conversation…",empty:"Nothing said yet.",failed:"failed",error:"Could not read the conversation: {error}",retry:"[ retry ]",noHistory:"This engine keeps no history Rove can read. Showing its terminal tail.",tail:"Terminal tail"}},lo={transcript:{you:"你",agent:"智能体",system:"系统",copy:"[ 复制 ]",copied:"已复制",export:"[ 导出 .md ]",findPlaceholder:"在这段对话中查找",findCount:"{at} / {total}",findNone:"没有匹配",prev:"[ 上一个 ]",next:"[ 下一个 ]",older:"[ 加载更早 ]",loading:"正在读取对话…",empty:"还没有对话内容。",failed:"失败",error:"读不到这段对话:{error}",retry:"[ 重试 ]",noHistory:"这个引擎没有 Rove 能读取的历史记录,显示的是它的终端末尾。",tail:"终端末尾"}};var Be={};f(Be,{zh:()=>vo,en:()=>wo});var wo={usage:{title:"Usage",receipt:"Usage receipt",total:"Total tokens",thanks:"Thank you, burn again soon",open:"Open usage",range:"last {days} days · tokens are input + output",perDay:"Per day",byModel:"By engine and model",topTasks:"Top tasks",quota:"Quota",turns:"{count} turns",loading:"Loading…",empty:"No turns recorded in this window.",failed:"Could not read usage: {error}",cutoff:"The daemon returns at most {count} turns: {day} and earlier are partial.",noReader:"{engines}: no turn reader, so their work is not counted here.",removedTask:"(removed task)",full:"at this pace full around {time}, before it resets",lasts:"at this pace it lasts until the reset"}},vo={usage:{title:"用量",receipt:"用量小票",total:"合计 token",thanks:"谢谢惠顾,欢迎再烧",open:"打开用量",range:"最近 {days} 天 · token 为输入加输出",perDay:"按天",byModel:"按引擎和模型",topTasks:"用量最高的任务",quota:"额度",turns:"{count} 轮",loading:"加载中…",empty:"这段时间没有记录到任何一轮。",failed:"无法读取用量:{error}",cutoff:"守护进程最多返回 {count} 轮:{day} 及更早的数据不完整。",noReader:"{engines}:没有轮次读取器,这里不统计它们的工作。",removedTask:"(已删除的任务)",full:"按当前速度约 {time} 用完,早于重置时间",lasts:"按当前速度可撑到重置"}};var Oe={};f(Oe,{zh:()=>ko,en:()=>po});var po={voice:{say:"Say",stop:"Stop {time}",release:"Release {time}",working:"Hearing…",hint:"Dictate: tap to start and stop, or hold to talk and let go",slideToSend:"Slide up to send",tipSend:"Let go to send",hold:"Hold to talk",holdOrType:"Hold to talk, tap to type",learned:"Learned {pairs}",learnedPair:"{spoken} → {term}",undo:"undo",unlearned:"Forgotten",unlearnFailed:"Couldn't undo: the voice sidecar isn't answering",setup:{dictation:"Dictation",backend:{off:"Off",local:"On this Mac",cloud:"Cloud"},unavailable:"This Rove cannot set up dictation",offHint:"The mic is hidden. Nothing runs in the background.",localNeeded:"Install the model below; the mic shows once it is ready.",localInstalling:"Installing the model; the mic shows once it is ready.",cloudNeeded:"Save an endpoint below to turn dictation on.",ready:"{model} · ready",starting:"Starting…",localTitle:"Whisper large-v3",localHint:"Runs on this Mac's GPU, about 3.5 GB to download. Audio never leaves the Mac.",install:"Install",installing:"Installing…",installed:"Installed, about 4 GB on disk.",failed:"Install failed: {line}",uninstall:"Uninstall",uninstallAsk:"Remove the model?",cancel:"Cancel",cloudTitle:"Cloud endpoint",cloudHint:"Any OpenAI-compatible /audio/transcriptions service. The audio and your terms go there; the key stays on the Mac.",baseURL:"Base URL",model:"Model",apiKey:"API key",keySaved:"Saved; leave empty to keep it",save:"Save",saveAndUse:"Save and use",forget:"Forget",forgetAsk:"Remove the endpoint and its key?"}}},ko={voice:{say:"说",stop:"停 {time}",release:"松手 {time}",working:"在听…",hint:"口述:点一下开始、再点一下结束,或按住说话、松手结束",slideToSend:"上滑发送",tipSend:"松手发送",hold:"按住说话",holdOrType:"按住说话,轻点打字",learned:"记住了 {pairs}",learnedPair:"{spoken} → {term}",undo:"撤销",unlearned:"已撤销",unlearnFailed:"没能撤销:语音服务没有响应",setup:{dictation:"语音输入",backend:{off:"关闭",local:"本机",cloud:"云端"},unavailable:"这个 Rove 无法设置语音输入",offHint:"不显示麦克风,后台也不运行任何东西。",localNeeded:"在下面安装模型,就绪后显示麦克风。",localInstalling:"正在安装模型,就绪后显示麦克风。",cloudNeeded:"在下面保存一个服务地址后开启。",ready:"{model} · 就绪",starting:"启动中…",localTitle:"Whisper large-v3",localHint:"在这台 Mac 的 GPU 上运行,约需下载 3.5 GB。音频不离开这台 Mac。",install:"安装",installing:"安装中…",installed:"已安装,约占 4 GB 磁盘。",failed:"安装失败:{line}",uninstall:"卸载",uninstallAsk:"删除模型?",cancel:"取消",cloudTitle:"云端服务",cloudHint:"任何兼容 OpenAI /audio/transcriptions 的服务。音频和你的术语会发到那里;密钥只存在这台 Mac 上。",baseURL:"Base URL",model:"模型",apiKey:"API 密钥",keySaved:"已保存;留空则保留原密钥",save:"保存",saveAndUse:"保存并使用",forget:"删除",forgetAsk:"删除这个服务地址和密钥?"}}};var Fe={};f(Fe,{zh:()=>fo,en:()=>co});var co={workspace:{pickTask:"pick a task on the left",noTabs:"no open sessions in this task",startEngine:"Start {engine}",startSession:"Start session",tabNotLive:"this tab has no running session",restored:"restored session, read-only until reopened",exited:"session ended (exit {code})",attachFailed:"could not open this session: {message}",reopen:"Reopen session",reopening:"Reopening…",reopenFailed:"could not reopen this session: {message}",engineExited:"engine exited (code {code})",retry:"Retry",engineSettings:"Settings → Engines",usageLimitUntil:"usage limit reached — rove resumes this task at {time}",resumeQuota:"resume now",resumingQuota:"resuming…",usageLimit:"usage limit reached",dismiss:"Dismiss",openTask:"Open"},tab:{shell:"shell",engine:"engine"},firstRun:{title:"All your coding agents, in one place",body:"When one runs out of quota, switch the task to another. Agents talk to each other directly, and every task gets its own worktree and branch.",start:"Start your first task"},status:{connecting:"connecting",retrying:"reconnecting, attempt {count}",retry:"retry now",backlog:"Backlog",inProgress:"In progress",inReview:"In review",done:"Done",canceled:"Canceled",error:"Error"},connect:{title:"open the link rove printed",body:"Run `rove --web` and open the link it prints, or paste it here.",placeholder:"http://127.0.0.1:7878/#token=…",submit:"connect",invalid:"that is not a `rove --web` link",failing:"can't reach rove. Is `rove --web` still running? After `--rotate-token`, open the new link.",forget:"forget this link",notConnected:"not connected to rove — reconnecting (the view refreshes on its own)"},relay:{unpaired:"open the relay link that `rove --web --preset relay` printed on your computer",connecting:"connecting to your computer through the relay…",loading:"loading rove…",offline:"your computer is not answering on this relay. Is `rove --web --preset relay` still running? After `--rotate-relay`, open the new link. Reload to retry.",failed:"can't reach your computer through the relay ({error}). Reload to retry."},login:{title:"sign in",body:"Enter this Rove's password.",field:"password",submit:"sign in",checking:"checking…",wrong:"that did not work",locked:"too many tries from here; try again in {minutes} min",lockedHost:"password login is locked; run `rove --web --unlock` on the host",unreachable:"can't reach rove. Is `rove --web` still running?"},layout:{splitTooSmall:"Not enough room to split here",railFold:"Fold the task list",navBack:"Back",navForward:"Forward",railUnfold:"Unfold the task list",dropUploading:"Uploading {name}…",pasteNoImage:"No image on this browser's clipboard",pasteNoAccess:"Can't read this browser's clipboard: {error}",pasteNeedsHttps:"the page needs https or localhost",refreshRove:"Refresh Rove",refreshConfirm:"Rove will restart the daemon and reconnect. Your running sessions will keep going.",refreshVersions:"bridge {bridge} · daemon {daemon}",unknownVersion:"unknown",refreshTimeout:"The daemon did not come back on the new build in time; check `rove daemon status`",railResize:"Drag to resize the task list, click to fold it, double-click to reset",composerPlaceholder:"Message the agent",composerSend:"Send",composerAttach:"Attach a file",composerNotSent:"Not sent: {reason}",composerOldBridge:"This Mac's rove --web is older than this page; restart it to send from here.",composerAtMenu:"The agent is waiting on a choice. Answer it with the 1–4 and ⏎ keys below; your message is kept.",termKeys:"Terminal keys",termKeyUp:"Up arrow",termKeyDown:"Down arrow",termKeyLeft:"Left arrow",termKeyRight:"Right arrow",termKeyInterrupt:"Ctrl+C, interrupt",termKeyEnter:"Enter",narrowTerminal:"Terminal"}},fo={workspace:{pickTask:"从左边选一个任务",noTabs:"这个任务没有打开的会话",startEngine:"启动 {engine}",startSession:"启动会话",tabNotLive:"这个标签没有在运行的会话",restored:"已恢复的会话,重新打开前只读",exited:"会话已结束(退出码 {code})",attachFailed:"打不开这个会话:{message}",reopen:"重新打开会话",reopening:"正在重新打开…",reopenFailed:"重新打开失败:{message}",engineExited:"引擎已退出(退出码 {code})",retry:"重试",engineSettings:"设置 → 引擎",usageLimitUntil:"已达到用量上限 —— rove 会在 {time} 自动继续这个任务",resumeQuota:"现在继续",resumingQuota:"正在继续…",usageLimit:"已达到用量上限",dismiss:"忽略",openTask:"打开"},tab:{shell:"终端",engine:"引擎"},firstRun:{title:"所有编程 agent,都在一个地方",body:"一个额度用完了,换另一个接着干;agent 之间直接对话。每个任务有独立的 worktree 和分支,互不覆盖。",start:"开始第一个任务"},status:{connecting:"连接中",retrying:"重连中,第 {count} 次",retry:"立即重试",backlog:"待办",inProgress:"进行中",inReview:"待评审",done:"已完成",canceled:"已取消",error:"出错"},connect:{title:"打开 rove 打印的链接",body:"运行 `rove --web`,打开它打印的链接,或者把链接粘贴到这里。",placeholder:"http://127.0.0.1:7878/#token=…",submit:"连接",invalid:"这不是 `rove --web` 打印的链接",failing:"连不上 rove。`rove --web` 还在运行吗?用过 `--rotate-token` 的话,请打开新的链接。",forget:"忘掉这个链接",notConnected:"没有连上 rove,正在重连(连上后这里会自动刷新)"},relay:{unpaired:"打开电脑上 `rove --web --preset relay` 打印的 relay 链接",connecting:"正在通过 relay 连接你的电脑…",loading:"正在加载 rove…",offline:"你的电脑没有在这个 relay 上应答。`rove --web --preset relay` 还在运行吗?用过 `--rotate-relay` 的话,请打开新的链接。刷新重试。",failed:"无法通过 relay 连到你的电脑({error})。刷新重试。"},login:{title:"登录",body:"输入这台 Rove 的密码。",field:"密码",submit:"登录",checking:"验证中…",wrong:"登录失败",locked:"这里尝试次数过多;{minutes} 分钟后再试",lockedHost:"密码登录已锁定;在主机上运行 `rove --web --unlock`",unreachable:"连不上 rove。`rove --web` 还在运行吗?"},layout:{splitTooSmall:"这里放不下分屏了",railFold:"折叠任务列表",navBack:"后退",navForward:"前进",railUnfold:"展开任务列表",dropUploading:"正在上传 {name}…",pasteNoImage:"浏览器剪贴板里没有图片",pasteNoAccess:"读不到浏览器剪贴板:{error}",pasteNeedsHttps:"页面要走 https 或 localhost",refreshRove:"刷新 Rove",refreshConfirm:"Rove 会重启守护进程并重新连接。正在运行的会话会继续。",refreshVersions:"桥接服务 {bridge} · 守护进程 {daemon}",unknownVersion:"版本未知",refreshTimeout:"守护进程没能及时以新版本重新上线,请检查 `rove daemon status`",railResize:"拖动调整任务列表宽度,单击折叠,双击还原",composerPlaceholder:"给 agent 发消息",composerSend:"发送",composerAttach:"附加文件",composerNotSent:"没发出去:{reason}",composerOldBridge:"这台 Mac 上的 rove --web 比页面旧,重启它之后才能从这里发送。",composerAtMenu:"agent 正在等你选择。用下方的 1–4 和 ⏎ 键回答;你的消息已保留。",termKeys:"终端按键",termKeyUp:"上方向键",termKeyDown:"下方向键",termKeyLeft:"左方向键",termKeyRight:"右方向键",termKeyInterrupt:"Ctrl+C 中断",termKeyEnter:"回车",narrowTerminal:"终端"}};var dt=[Pe,Fe,ce,Re,Me,pe,He,Te,Be,Ce,fe,ve,xe,ke,Oe],ht=Object.assign({},...dt.map((t)=>t.en)),Ro=Object.assign({},...dt.map((t)=>t.zh)),Ho={en:ht,zh:Ro};function Po(){try{let t=JSON.parse(localStorage.getItem("rove.prefs")??"null");if(t&&typeof t==="object"&&"prefs"in t){let o=t.prefs;if(o&&typeof o==="object"&&"locale"in o&&(o.locale==="en"||o.locale==="zh"))return o.locale}}catch{}return globalThis.navigator?.language?.toLowerCase().startsWith("zh")?"zh":"en"}var ze=st(Po());function rt(){let t=typeof document>"u"?void 0:document.documentElement;if(t)t.lang=ze.get()==="zh"?"zh-CN":"en"}rt();ze.subscribe(rt);function it(t,o){let s=t;for(let i of o.split(".")){if(!s||typeof s!=="object"||!(i in s))return;s=Reflect.get(s,i)}return typeof s==="string"?s:void 0}function xo(t,o){return o?t.replace(/\{(\w+)\}/g,(s,i)=>String(o[i]??s)):t}function I(t,o){return xo(it(Ho[ze.get()],t)??it(ht,t)??t,o)}var To=new Set([101,204,205,304]);function at(t){return t.state==="ready"?Promise.resolve():t.connect()}function gt(t){class o{static OPEN=1;readyState=0;onopen=null;onmessage=null;onclose=null;onerror=null;sock=null;constructor(s,i){let r=i.find((v)=>v.startsWith("rove.bearer."))?.slice(12),g=new URL(s,"http://relay").pathname+(r?`?token=${encodeURIComponent(r)}`:"");this.open(g)}async open(s){try{await at(t);let i=await t.openSocket(s);if(this.readyState===3){i.close();return}this.sock=i,i.onmessage=(r)=>this.onmessage?.({data:typeof r==="string"?r:new TextDecoder().decode(r)}),i.onclose=()=>this.closed(),this.readyState=1,this.onopen?.(new Event("open"))}catch{this.closed()}}send(s){this.sock?.send(s)}close(){this.sock?.close(),this.closed()}closed(){if(this.readyState===3)return;this.readyState=3,this.onclose?.(new Event("close"))}}return{async fetch(s,i={}){await at(t);let r=typeof i.body==="string"?i.body:void 0,g=await t.fetch(s,{method:i.method,headers:Object.fromEntries(new Headers(i.headers).entries()),body:r});return new Response(To.has(g.status)?null:g.bytes(),{status:g.status,headers:g.headers})},WebSocket:o}}var ut="rove.relay",Mo=/url\((\/assets\/[^)]+)\)/g;function j(t){let o=document.getElementById("relay-status");if(o)o.textContent=t}function Co(){let t=new URLSearchParams(location.hash.slice(1)),o=t.get("code");if(o){let s={server:t.get("relay")??location.origin,code:o};localStorage.setItem(ut,JSON.stringify(s));let i=t.get("token");return history.replaceState(null,"",location.pathname+location.search+(i?`#token=${i}`:"")),s}try{let s=JSON.parse(localStorage.getItem(ut)??"null");if(s&&typeof s==="object"&&"server"in s&&"code"in s){if(typeof s.server==="string"&&typeof s.code==="string")return{server:s.server,code:s.code}}}catch{}return null}function Bo(t){let o=t instanceof Error?t.message:String(t);if(/\b(4404|1011)\b|timed out|auth/i.test(o))return I("relay.offline");return I("relay.failed",{error:o})}async function mt(t,o,s){let i=await t.fetch(o);if(!i.ok)throw Error(`${o}: HTTP ${i.status}`);return URL.createObjectURL(new Blob([await i.arrayBuffer()],{type:s}))}async function Oo(t){let o=await t.fetch("/"),s=new DOMParser().parseFromString(await o.text(),"text/html"),i=s.querySelector('script[type="module"][src]')?.getAttribute("src");if(!i)throw Error(`no client script in the bridge's page (HTTP ${o.status})`);for(let g of s.querySelectorAll('link[rel="stylesheet"][href]')){let c=await(await t.fetch(g.getAttribute("href")??"")).text(),T=[...new Set([...c.matchAll(Mo)].map((H)=>H[1]??""))],M=await Promise.all(T.map(async(H)=>[H,await mt(t,H,"")]));for(let[H,z]of M)c=c.replaceAll(`url(${H})`,`url(${z})`);let C=document.createElement("style");C.textContent=c,document.head.append(C)}Reflect.set(globalThis,"__roveRelay",t);let r=document.createElement("script");r.type="module",r.src=await mt(t,i,"text/javascript"),document.head.append(r)}async function Fo(){let t=Co();if(!t){j(I("relay.unpaired"));return}j(I("relay.connecting"));let o=new we({serverUrl:t.server,code:t.code,quiet:!0});try{await o.connect(),j(I("relay.loading")),await Oo(gt(o))}catch(s){j(Bo(s))}}Fo();
|
|
32
32
|
</script>
|
|
33
33
|
</body>
|
|
34
34
|
</html>
|
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.
|
|
4
|
+
"version": "0.9.300-next.355",
|
|
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",
|
|
@@ -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.299",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.60","rove-weixin":"0.0.60",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};
|