@sma1lboy/rove 0.9.310 → 0.9.311-next.652
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-7vassnhs.js → chunk-03whhqrz.js} +2 -2
- package/dist/cli/{chunk-ep7abg35.js → chunk-05qy22n2.js} +1 -1
- package/dist/cli/{chunk-tzhfek18.js → chunk-13ksj14n.js} +1 -1
- package/dist/cli/{chunk-cjzyc7cn.js → chunk-1gsx09y2.js} +1 -1
- package/dist/cli/{chunk-cqazrkzw.js → chunk-1wyh9y6a.js} +1 -1
- package/dist/cli/{chunk-v72qzktg.js → chunk-2b7fxp0m.js} +1 -1
- package/dist/cli/{chunk-gfsgk1n8.js → chunk-361ckrdf.js} +1 -1
- package/dist/cli/{chunk-z3cje8hk.js → chunk-42kfx76z.js} +1 -1
- package/dist/cli/{chunk-vg3tyctk.js → chunk-4p9kf28e.js} +1 -1
- package/dist/cli/{chunk-kzcd7vdj.js → chunk-4xymwmhd.js} +6 -6
- package/dist/cli/{chunk-a2rxzyy4.js → chunk-5ed719m6.js} +1 -1
- package/dist/cli/{chunk-v29v0cgd.js → chunk-63bctdq6.js} +1 -1
- package/dist/cli/{chunk-etj5h8hg.js → chunk-63q6b00y.js} +1 -1
- package/dist/cli/{chunk-3kraw5fh.js → chunk-64a1f6yf.js} +1 -1
- package/dist/cli/{chunk-fads90r0.js → chunk-682vfavw.js} +1 -1
- package/dist/cli/{chunk-zgmnse5q.js → chunk-6xnkb887.js} +1 -1
- package/dist/cli/{chunk-j6g8jmke.js → chunk-72egz2xg.js} +2 -2
- package/dist/cli/{chunk-jx3zndsh.js → chunk-75q59qzs.js} +1 -1
- package/dist/cli/{chunk-b3nrywgm.js → chunk-7khad8jm.js} +1 -1
- package/dist/cli/{chunk-w3dpq6aj.js → chunk-7wwhc9ws.js} +2 -2
- package/dist/cli/{chunk-bz3p5vp1.js → chunk-8tsrz9b8.js} +1 -1
- package/dist/cli/{chunk-j0s13v56.js → chunk-a829rth3.js} +1 -1
- package/dist/cli/{chunk-teq8p5rp.js → chunk-apb6h69g.js} +2 -2
- package/dist/cli/{chunk-11vgtrm4.js → chunk-d4bgckyv.js} +1 -1
- package/dist/cli/{chunk-3yd8nyv6.js → chunk-dgm2m9mh.js} +1 -1
- package/dist/cli/{chunk-bsprr76b.js → chunk-dm5jgcax.js} +1 -1
- package/dist/cli/{chunk-ehssspvr.js → chunk-dshz0qjd.js} +1 -1
- package/dist/cli/{chunk-gf37e6ty.js → chunk-dvcsqv9a.js} +1 -1
- package/dist/cli/{chunk-ymmzwv5w.js → chunk-er6kwqnb.js} +1 -1
- package/dist/cli/{chunk-8akyzrjc.js → chunk-f37yjgwr.js} +1 -1
- package/dist/cli/{chunk-kmfas00z.js → chunk-ht19kt66.js} +1 -1
- package/dist/cli/chunk-j0p1wh0d.js +3 -0
- package/dist/cli/{chunk-hwckecfa.js → chunk-je1vyf9m.js} +1 -1
- package/dist/cli/{chunk-mp535p99.js → chunk-kqcrpy9k.js} +1 -1
- package/dist/cli/{chunk-jpa26n83.js → chunk-nq6jk2vq.js} +1 -1
- package/dist/cli/{chunk-0rfkgmns.js → chunk-qv7pwt3f.js} +1 -1
- package/dist/cli/{chunk-pgaf0wqj.js → chunk-qyxgcsp7.js} +1 -1
- package/dist/cli/{chunk-k1pk159f.js → chunk-s816xgcp.js} +1 -1
- package/dist/cli/{chunk-3d6caevx.js → chunk-sfdhvwdd.js} +1 -1
- package/dist/cli/{chunk-451z1265.js → chunk-sqttce2k.js} +1 -1
- package/dist/cli/{chunk-ecdnw5xe.js → chunk-t091ym28.js} +2 -2
- package/dist/cli/{chunk-z6k53zqj.js → chunk-tnfy7bdh.js} +1 -1
- package/dist/cli/{chunk-expgczbc.js → chunk-vj55mp03.js} +1 -1
- package/dist/cli/{chunk-wth84cjn.js → chunk-w2z62a9x.js} +1 -1
- package/dist/cli/{chunk-29ftjs96.js → chunk-wfrwbva1.js} +1 -1
- package/dist/cli/{chunk-0mdzphdz.js → chunk-x8xfxtjn.js} +1 -1
- package/dist/cli/{chunk-0x3vfkz9.js → chunk-ycgszrey.js} +1 -1
- package/dist/cli/{chunk-6qp32yje.js → chunk-ycj7xrez.js} +1 -1
- package/dist/cli/{chunk-ene2k7kb.js → chunk-zk7apx57.js} +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/rove.js +1 -1
- package/dist/web/assets/{index-D7OcIn1Q.js → index-DNftGWC7.js} +44 -44
- package/dist/web/assets/index-DmblaqlN.css +1 -0
- package/dist/web/assets/{term-mount-CSGanVNa.js → term-mount-Bt5DSA8g.js} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/relay/index.html +2 -2
- package/dist/web/relay-client/assets/{index-B307rVpU.js → index-ChEvrb3o.js} +41 -41
- package/dist/web/relay-client/assets/index-Dno3gMd0.css +1 -0
- package/dist/web/relay-client/index.html +2 -2
- package/package.json +1 -1
- package/dist/cli/chunk-aterhn60.js +0 -3
- package/dist/web/assets/index-BWayUsdy.css +0 -1
- package/dist/web/relay-client/assets/index-T6nIyGrP.css +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content" />
|
|
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-QhJe6iq9WXjR5Kmlpy77yjMLXGHoUcYBEY9N05id7cg=' 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>:root{--rs-paper:#141413;--rs-surface:#1a1917;--rs-line:#3a3835;--rs-ink:#eae7df;--rs-muted:#a9a39a;--rs-subtle:#9d9a95;--rs-accent:#cc785c;--rs-error:#ec6f74;--rs-hover:rgba(234,231,223,.07);color-scheme:dark}@media (prefers-color-scheme:light){:root{--rs-paper:#faf9f5;--rs-surface:#f0eee6;--rs-line:#d9d5cc;--rs-ink:#1a1917;--rs-muted:#5e5953;--rs-subtle:#66615a;--rs-accent:#b5532f;--rs-error:#ad2f36;--rs-hover:rgba(26,25,23,.07);color-scheme:light}}html,body{height:100%;margin:0}body{background:var(--rs-paper);color:var(--rs-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;-webkit-font-smoothing:antialiased}#root{box-sizing:border-box;height:100%;overflow-y:auto;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}#relay-splash{box-sizing:border-box;min-height:100%;display:grid;grid-template-rows:calc(50dvh - 11px - 24px - env(safe-area-inset-top)) auto 1fr;justify-items:center;padding:24px;text-align:center}#relay-logo{grid-row:2;font:700 22px/1 "JetBrains Mono","IBM Plex Mono","SF Mono",Menlo,Consolas,ui-monospace,monospace;letter-spacing:.02em;white-space:nowrap;user-select:none;-webkit-user-select:none}#relay-logo .b{color:var(--rs-accent)}#relay-logo .w i{display:inline-block;font-style:normal;animation:rs-hop 1.4s cubic-bezier(.3,0,.3,1) infinite}#relay-logo .w i:nth-child(2){animation-delay:.09s}#relay-logo .w i:nth-child(3){animation-delay:.18s}#relay-logo .w i:nth-child(4){animation-delay:.27s}#relay-logo[data-still] .w i{animation:none}@keyframes rs-hop{0%,36%,100%{transform:none}18%{transform:translateY(-6px)}}#relay-status .dots{display:inline-flex;gap:3px;margin-left:6px;vertical-align:middle}#relay-status .dots i{width:4px;height:4px;border-radius:50%;background:var(--rs-accent);animation:rs-dot 1s ease-in-out infinite}#relay-status .dots i:nth-child(2){animation-delay:.15s}#relay-status .dots i:nth-child(3){animation-delay:.3s}@keyframes rs-dot{0%,70%,100%{opacity:.3;transform:none}35%{opacity:1;transform:translateY(-3px)}}#relay-body{grid-row:3;align-self:start;display:flex;flex-direction:column;align-items:center;gap:14px;padding-top:16px;max-width:34ch}#relay-status{margin:0;font-size:13px;line-height:1.5;color:var(--rs-subtle);opacity:0;transition:opacity 200ms ease-out}#relay-status[data-visible]{opacity:1}#relay-status[data-tone="info"]{font-size:14px;color:var(--rs-muted)}#relay-status[data-tone="error"]{font-size:14px;color:var(--rs-error)}#relay-retry{font:500 13px/1 "JetBrains Mono","IBM Plex Mono","SF Mono",Menlo,Consolas,ui-monospace,monospace;color:var(--rs-ink);background:var(--rs-surface);border:1px solid var(--rs-line);border-radius:6px;padding:10px 18px;min-height:44px;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;transition:transform 120ms ease-out}@media (min-resolution:2dppx){#relay-retry{border-width:.5px}}#relay-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}#relay-body button.ghost{background:transparent;color:var(--rs-muted)}#relay-switch,#relay-copy{font:500 13px/1 "JetBrains Mono","IBM Plex Mono","SF Mono",Menlo,Consolas,ui-monospace,monospace;border:1px solid var(--rs-line);border-radius:6px;padding:10px 18px;min-height:44px;cursor:pointer;-webkit-tap-highlight-color:transparent}#relay-body button[hidden],#relay-details[hidden]{display:none}#relay-body button:hover{background:var(--rs-hover)}#relay-body button:active{transform:scale(.97)}#relay-body button:focus-visible{outline:1px solid var(--rs-accent);outline-offset:2px}#relay-details{width:min(34ch,100%);text-align:left;font-size:13px;color:var(--rs-muted)}#relay-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:center;list-style:none}#relay-details summary::-webkit-details-marker{display:none}#relay-detail-text{margin:0 0 10px;padding:10px;background:var(--rs-surface);border:1px solid var(--rs-line);border-radius:6px;white-space:pre-wrap;word-break:break-word;font:12px/1.5 "SF Mono",Menlo,ui-monospace,monospace;color:var(--rs-ink);user-select:text;-webkit-user-select:text}@media (prefers-reduced-motion:reduce){#relay-status,#relay-body button{transition:none}#relay-body button:active{transform:none}#relay-logo .w i,#relay-status .dots i{animation:none}}</style>
|
|
10
10
|
</head>
|
|
@@ -22,7 +22,7 @@ Your code should look like:
|
|
|
22
22
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
23
23
|
2. You might be breaking the Rules of Hooks
|
|
24
24
|
3. You might have more than one copy of React in the same app
|
|
25
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),o}function Yo(){v.asyncTransitions--}function q(o){if(K===null)try{var i=("require"+Math.random()).slice(0,7);K=(c&&c[i]).call(c,"timers").setImmediate}catch(h){K=function(g){on===!1&&(on=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var x=new MessageChannel;x.port1.onmessage=g,x.port2.postMessage(void 0)}}return K(o)}function X(o){return 1<o.length&&typeof AggregateError==="function"?AggregateError(o):o[0]}function J(o,i){i!==j-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),j=i}function oo(o,i,h){var g=v.actQueue;if(g!==null)if(g.length!==0)try{no(g),q(function(){return oo(o,i,h)});return}catch(x){v.thrownErrors.push(x)}else v.actQueue=null;0<v.thrownErrors.length?(g=X(v.thrownErrors),v.thrownErrors.length=0,h(g)):i(o)}function no(o){if(!go){go=!0;var i=0;try{for(;i<o.length;i++){var h=o[i];do{v.didUsePromise=!1;var g=h(!1);if(g!==null){if(v.didUsePromise){o[i]=h,o.splice(0,i);return}h=g}else break}while(1)}o.length=0}catch(x){o.splice(0,i+1),v.thrownErrors.push(x)}finally{go=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var to=Symbol.for("react.transitional.element"),Qo=Symbol.for("react.portal"),io=Symbol.for("react.fragment"),Xo=Symbol.for("react.strict_mode"),Zo=Symbol.for("react.profiler"),so=Symbol.for("react.consumer"),Wo=Symbol.for("react.context"),Eo=Symbol.for("react.forward_ref"),Io=Symbol.for("react.suspense"),Un=Symbol.for("react.suspense_list"),eo=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),$o=Symbol.for("react.activity"),qo=Symbol.iterator,Jo={},bo={isMounted:function(){return!1},enqueueForceUpdate:function(o){s(o,"forceUpdate")},enqueueReplaceState:function(o){s(o,"replaceState")},enqueueSetState:function(o){s(o,"setState")}},Ko=Object.assign,ho={};Object.freeze(ho),e.prototype.isReactComponent={},e.prototype.setState=function(o,i){if(typeof o!=="object"&&typeof o!=="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,i,"setState")},e.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(W in N)N.hasOwnProperty(W)&&n(W,N[W]);d.prototype=e.prototype,N=u.prototype=new d,N.constructor=u,Ko(N,e.prototype),N.isPureReactComponent=!0;var jo=Array.isArray,Gn=Symbol.for("react.client.reference"),v={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},b=Object.prototype.hasOwnProperty,Vo=console.createTask?console.createTask:function(){return null};N={react_stack_bottom_frame:function(o){return o()}};var _o,co,So={},zn=N.react_stack_bottom_frame.bind(N,G)(),rn=Vo(f(G)),po=!1,lo=/\/+/g,yo=typeof reportError==="function"?reportError:function(o){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o==="object"&&o!==null&&typeof o.message==="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",o);return}console.error(o)},on=!1,K=null,j=0,V=!1,go=!1,nn=typeof queueMicrotask==="function"?function(o){queueMicrotask(function(){return queueMicrotask(o)})}:q;N=Object.freeze({__proto__:null,c:function(o){return M().useMemoCache(o)}});var W={map:$,forEach:function(o,i,h){$(o,function(){i.apply(this,arguments)},h)},count:function(o){var i=0;return $(o,function(){i++}),i},toArray:function(o){return $(o,function(i){return i})||[]},only:function(o){if(!F(o))throw Error("React.Children.only expected to receive a single React element child.");return o}};cn.Activity=$o,cn.Children=W,cn.Component=e,cn.Fragment=io,cn.Profiler=Zo,cn.PureComponent=u,cn.StrictMode=Xo,cn.Suspense=Io,cn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,cn.__COMPILER_RUNTIME=N,cn.act=function(o){var i=v.actQueue,h=j;j++;var g=v.actQueue=i!==null?i:[],x=!1;try{var k=o()}catch(m){v.thrownErrors.push(m)}if(0<v.thrownErrors.length)throw J(i,h),o=X(v.thrownErrors),v.thrownErrors.length=0,o;if(k!==null&&typeof k==="object"&&typeof k.then==="function"){var R=k;return nn(function(){x||V||(V=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(m,z){x=!0,R.then(function(Y){if(J(i,h),h===0){try{no(g),q(function(){return oo(Y,m,z)})}catch(Fn){v.thrownErrors.push(Fn)}if(0<v.thrownErrors.length){var Ln=X(v.thrownErrors);v.thrownErrors.length=0,z(Ln)}}else m(Y)},function(Y){J(i,h),0<v.thrownErrors.length?(Y=X(v.thrownErrors),v.thrownErrors.length=0,z(Y)):z(Y)})}}}var T=k;if(J(i,h),h===0&&(no(g),g.length!==0&&nn(function(){x||V||(V=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),v.actQueue=null),0<v.thrownErrors.length)throw o=X(v.thrownErrors),v.thrownErrors.length=0,o;return{then:function(m,z){x=!0,h===0?(v.actQueue=g,q(function(){return oo(T,m,z)})):m(T)}}},cn.cache=function(o){return function(){return o.apply(null,arguments)}},cn.cacheSignal=function(){return null},cn.captureOwnerStack=function(){var o=v.getCurrentStack;return o===null?null:o()},cn.cloneElement=function(o,i,h){if(o===null||o===void 0)throw Error("The argument must be a React element, but you passed "+o+".");var g=Ko({},o.props),x=o.key,k=o._owner;if(i!=null){var R;o:{if(b.call(i,"ref")&&(R=Object.getOwnPropertyDescriptor(i,"ref").get)&&R.isReactWarning){R=!1;break o}R=i.ref!==void 0}R&&(k=a()),I(i)&&(C(i.key),x=""+i.key);for(T in i)!b.call(i,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&i.ref===void 0||(g[T]=i[T])}var T=arguments.length-2;if(T===1)g.children=h;else if(1<T){R=Array(T);for(var m=0;m<T;m++)R[m]=arguments[m+2];g.children=R}g=l(o.type,x,g,k,o._debugStack,o._debugTask);for(x=2;x<arguments.length;x++)Ao(arguments[x]);return g},cn.createContext=function(o){return o={$$typeof:Wo,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:so,_context:o},o._currentRenderer=null,o._currentRenderer2=null,o},cn.createElement=function(o,i,h){for(var g=2;g<arguments.length;g++)Ao(arguments[g]);g={};var x=null;if(i!=null)for(m in co||!("__self"in i)||"key"in i||(co=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),I(i)&&(C(i.key),x=""+i.key),i)b.call(i,m)&&m!=="key"&&m!=="__self"&&m!=="__source"&&(g[m]=i[m]);var k=arguments.length-2;if(k===1)g.children=h;else if(1<k){for(var R=Array(k),T=0;T<k;T++)R[T]=arguments[T+2];Object.freeze&&Object.freeze(R),g.children=R}if(o&&o.defaultProps)for(m in k=o.defaultProps,k)g[m]===void 0&&(g[m]=k[m]);x&&Pn(g,typeof o==="function"?o.displayName||o.name||"Unknown":o);var m=1e4>v.recentlyCreatedOwnerStacks++;return l(o,x,g,a(),m?Error("react-stack-top-frame"):zn,m?Vo(f(o)):rn)},cn.createRef=function(){var o={current:null};return Object.seal(o),o},cn.forwardRef=function(o){o!=null&&o.$$typeof===eo?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof o!=="function"?console.error("forwardRef requires a render function but was given %s.",o===null?"null":typeof o):o.length!==0&&o.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",o.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),o!=null&&o.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var i={$$typeof:Eo,render:o},h;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return h},set:function(g){h=g,o.name||o.displayName||(Object.defineProperty(o,"name",{value:g}),o.displayName=g)}}),i},cn.isValidElement=F,cn.lazy=function(o){o={_status:-1,_result:o};var i={$$typeof:Z,_payload:o,_init:Nn},h={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return o._ioInfo=h,i._debugInfo=[{awaited:h}],i},cn.memo=function(o,i){o==null&&console.error("memo: The first argument must be a component. Instead received: %s",o===null?"null":typeof o),i={$$typeof:eo,type:o,compare:i===void 0?null:i};var h;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return h},set:function(g){h=g,o.name||o.displayName||(Object.defineProperty(o,"name",{value:g}),o.displayName=g)}}),i},cn.startTransition=function(o){var i=v.T,h={};h._updatedFibers=new Set,v.T=h;try{var g=o(),x=v.S;x!==null&&x(h,g),typeof g==="object"&&g!==null&&typeof g.then==="function"&&(v.asyncTransitions++,g.then(Yo,Yo),g.then(w,yo))}catch(k){yo(k)}finally{i===null&&h._updatedFibers&&(o=h._updatedFibers.size,h._updatedFibers.clear(),10<o&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),i!==null&&h.types!==null&&(i.types!==null&&i.types!==h.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),i.types=h.types),v.T=i}},cn.unstable_useCacheRefresh=function(){return M().useCacheRefresh()},cn.use=function(o){return M().use(o)},cn.useActionState=function(o,i,h){return M().useActionState(o,i,h)},cn.useCallback=function(o,i){return M().useCallback(o,i)},cn.useContext=function(o){var i=M();return o.$$typeof===so&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),i.useContext(o)},cn.useDebugValue=function(o,i){return M().useDebugValue(o,i)},cn.useDeferredValue=function(o,i){return M().useDeferredValue(o,i)},cn.useEffect=function(o,i){return o==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useEffect(o,i)},cn.useEffectEvent=function(o){return M().useEffectEvent(o)},cn.useId=function(){return M().useId()},cn.useImperativeHandle=function(o,i,h){return M().useImperativeHandle(o,i,h)},cn.useInsertionEffect=function(o,i){return o==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useInsertionEffect(o,i)},cn.useLayoutEffect=function(o,i){return o==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useLayoutEffect(o,i)},cn.useMemo=function(o,i){return M().useMemo(o,i)},cn.useOptimistic=function(o,i){return M().useOptimistic(o,i)},cn.useReducer=function(o,i,h){return M().useReducer(o,i,h)},cn.useRef=function(o){return M().useRef(o)},cn.useState=function(o){return M().useState(o)},cn.useSyncExternalStore=function(o,i,h){return M().useSyncExternalStore(o,i,h)},cn.useTransition=function(){return M().useTransition()},cn.version="19.2.8",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var B=(globalThis.crypto??globalThis.crypto).subtle,E=new TextEncoder;function r(n){let t="";for(let s=0;s<n.length;s+=32768)t+=String.fromCharCode(...n.subarray(s,s+32768));return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function L(n){let t=n.replace(/-/g,"+").replace(/_/g,"/"),s=atob(t+"=".repeat((4-t.length%4)%4)),e=new Uint8Array(s.length);for(let d=0;d<s.length;d++)e[d]=s.charCodeAt(d);return e}function xo(...n){let t=n.reduce((d,u)=>d+u.length,0),s=new Uint8Array(t),e=0;for(let d of n)s.set(d,e),e+=d.length;return s}function wo(n,t){if(n.length!==t.length)return!1;let s=0;for(let e=0;e<n.length;e++)s|=n[e]^t[e];return s===0}function U(n){return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}async function bn(n){return new Uint8Array(await B.digest("SHA-256",U(n)))}async function tn(n){let t=await B.importKey("raw",U(E.encode(n)),"HKDF",!1,["deriveBits"]),s=await B.deriveBits({name:"HKDF",hash:"SHA-256",salt:E.encode("relay-e2e/v1/routing"),info:new Uint8Array(0)},t,128);return r(new Uint8Array(s))}async function Ro(){let n=await B.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveBits"]);return{privateKey:n.privateKey,publicKeyRaw:new Uint8Array(await B.exportKey("raw",n.publicKey))}}async function _(n,t,s,e){let d=await B.importKey("raw",U(n),"HKDF",!1,["deriveBits"]);return new Uint8Array(await B.deriveBits({name:"HKDF",hash:"SHA-256",salt:U(t),info:U(xo(E.encode(s),e))},d,256))}async function vo(n){let t=await B.importKey("raw",U(n.peerPublicKeyRaw),{name:"ECDH",namedCurve:"P-256"},!1,[]),s=new Uint8Array(await B.deriveBits({name:"ECDH",public:t},n.privateKey,256)),e=await bn(xo(E.encode("relay-e2e/v1"),n.initiatorPublicKeyRaw,n.responderPublicKeyRaw,n.initiatorNonce,n.responderNonce)),d=E.encode(n.code),[u,w,H,C]=await Promise.all([_(s,d,"c2s|",e),_(s,d,"s2c|",e),_(s,d,"confirm-r|",e),_(s,d,"confirm-i|",e)]);return{c2s:await B.importKey("raw",U(u),"AES-GCM",!1,["encrypt","decrypt"]),s2c:await B.importKey("raw",U(w),"AES-GCM",!1,["encrypt","decrypt"]),confirmResponder:H,confirmInitiator:C}}class Q{#o=0n;#n=null;#i;constructor(n){this.#i=n}async seal(n){let t=new Uint8Array(12);new DataView(t.buffer).setBigUint64(4,this.#o++);let s=new Uint8Array(await B.encrypt({name:"AES-GCM",iv:U(t)},this.#i,U(n)));return xo(t,s)}async open(n){if(n.length<12)throw Error("E2E frame too short");let t=n.subarray(0,12),s=n.subarray(12),e=new DataView(t.buffer,t.byteOffset+4,8).getBigUint64(0);if(this.#n!==null&&e<=this.#n)throw Error(`E2E replay detected (counter ${e} <= ${this.#n})`);return this.#n=e,new Uint8Array(await B.decrypt({name:"AES-GCM",iv:U(t)},this.#i,U(s)))}}class ko{#o;#n;#i;#t;#g;#d;#s=null;#u=crypto.getRandomValues(new Uint8Array(16));#h=null;#x=null;#w=null;#e="init";#m=[];#T=Promise.resolve();#R=Promise.resolve();#H=new TextEncoder;#M=new TextDecoder;constructor(n){this.#o=n.role,this.#n=n.code,this.#i=n.send,this.#t=n.onReady,this.#g=n.onFrame,this.#d=n.onError}async start(){if(this.#o!=="initiator")return;this.#s=await Ro(),this.#e="await-hi",this.#i(JSON.stringify({t:"hi",epk:r(this.#s.publicKeyRaw),n:r(this.#u)}))}isReady(){return this.#e==="ready"}sendFrame(n){if(this.#e==="failed")return Promise.resolve();if(this.#e!=="ready"||!this.#x)return this.#m.push(n),Promise.resolve();let t=this.#T.then(async()=>{if(this.#e==="failed"||!this.#x)throw Error("E2E session failed");let s=await this.#x.seal(this.#H.encode(JSON.stringify(n)));this.#i(s)});return this.#T=t.catch((s)=>this.#v(s instanceof Error?s.message:String(s))),t}onMessage(n){return this.#R=this.#R.then(()=>this.#P(n)).catch(()=>{}),this.#R}async#P(n){if(this.#e==="failed")return;try{if(typeof n==="string")await this.#C(JSON.parse(n));else{if(!this.#w)return;let t=await this.#w.open(n);this.#g(JSON.parse(this.#M.decode(t)))}}catch(t){this.#v(t instanceof Error?t.message:String(t))}}async#C(n){if(this.#o==="responder"&&n.t==="hi"&&this.#e==="init"){let t=L(String(n.epk)),s=L(String(n.n));this.#s=await Ro(),this.#h=await vo({privateKey:this.#s.privateKey,peerPublicKeyRaw:t,code:this.#n,initiatorPublicKeyRaw:t,responderPublicKeyRaw:this.#s.publicKeyRaw,initiatorNonce:s,responderNonce:this.#u}),this.#e="await-ok",this.#i(JSON.stringify({t:"hi",epk:r(this.#s.publicKeyRaw),n:r(this.#u),cr:r(this.#h.confirmResponder)}));return}if(this.#o==="initiator"&&n.t==="hi"&&this.#e==="await-hi"){let t=L(String(n.epk)),s=L(String(n.n));if(this.#h=await vo({privateKey:this.#s.privateKey,peerPublicKeyRaw:t,code:this.#n,initiatorPublicKeyRaw:this.#s.publicKeyRaw,responderPublicKeyRaw:t,initiatorNonce:this.#u,responderNonce:s}),!wo(L(String(n.cr)),this.#h.confirmResponder)){this.#i(JSON.stringify({t:"err",message:"auth-failed"})),this.#v("Handshake authentication failed (wrong code or man-in-the-middle)");return}this.#i(JSON.stringify({t:"ok",ci:r(this.#h.confirmInitiator)})),this.#x=new Q(this.#h.c2s),this.#w=new Q(this.#h.s2c),await this.#k();return}if(this.#o==="responder"&&n.t==="ok"&&this.#e==="await-ok"){if(!wo(L(String(n.ci)),this.#h.confirmInitiator)){this.#v("Handshake authentication failed (wrong code or man-in-the-middle)");return}this.#x=new Q(this.#h.s2c),this.#w=new Q(this.#h.c2s),await this.#k();return}if(n.t==="err")this.#v(`Peer rejected handshake: ${String(n.message||"unknown")}`)}async#k(){this.#e="ready",this.#t();let n=this.#m;this.#m=[];for(let t of n)await this.sendFrame(t)}#v(n){if(this.#e!=="failed")this.#e="failed",this.#d(n)}}function Kn(n,t){switch(n){case 1000:return"closed normally";case 1001:return"relay went away — server shutdown or redeploy";case 1006:return"socket died without a close frame — radio drop, network switch, or NAT idle timeout; reconnect";case 1011:return"agent disconnected — the desktop side went offline; retry once it is back";case 1015:return"TLS handshake failed — TLS-intercepting middlebox or wrong scheme";case 4404:return"no agent registered for this pairing — is the desktop agent running, and is the code right?"}if(n!==null&&n>=4000&&n<5000)return"relay policy rejection — see PROTOCOL.md §9";if(t)return`relay said: ${t}`;return"unexpected close — see PROTOCOL.md §9"}function jn(n){if(/timed out/i.test(n))return"relay unreachable or slow — check the server URL and network path";if(/authentication failed|auth-failed/i.test(n))return"handshake rejected — wrong pairing code";if(/Failed to open/i.test(n))return"could not open the WebSocket — bad server URL, blocked network, or TLS issue";if(/went silent/i.test(n))return"no frame for idleTimeoutMs — radio sleep or half-dead socket; reconnect and retry";if(/disconnected during pairing/i.test(n))return"close() or a newer connect() interrupted this attempt";if(/not connected/i.test(n))return"tunnel was already down";return"see PROTOCOL.md §9 and the relay's own logs (wrangler tail)"}class sn{status;headers;#o;constructor(n,t,s){this.status=n,this.headers=t,this.#o=s}text(){return new TextDecoder().decode(this.concat())}json(){return JSON.parse(this.text())}bytes(){return this.concat()}concat(){let n=0;for(let e of this.#o)n+=e.length;let t=new Uint8Array(n),s=0;for(let e of this.#o)t.set(e,s),s+=e.length;return t}}class en{#o;#n={open:new Set,message:new Set,close:new Set,error:new Set};onopen=null;onmessage=null;onclose=null;onerror=null;readyState=0;constructor(n){this.#o=n}#i(n,t){this.#n[n].forEach((s)=>s(t)),this["on"+n]?.(t)}addEventListener(n,t){this.#n[n].add(t)}removeEventListener(n,t){this.#n[n].delete(t)}send(n){if(this.readyState!==1)throw Error("tunnel ws not open");if(typeof n==="string")this.#o({t:"wmsg",id:this.#t,s:n});else this.#o({t:"wmsg",id:this.#t,b:mo(n)})}close(){if(this.readyState===2)return;this.readyState=2,this.#o({t:"wclose",id:this.#t,code:1000}),this.#i("close")}#t;_attach(n){this.#t=n}_opened(){if(this.readyState===1)return;this.readyState=1,this.#i("open")}_message(n){for(let t of this.#n.message)t(n);this.onmessage?.(n)}_error(n){this.readyState=2,this.#i("error",n)}_closed(){if(this.readyState===2)return;this.readyState=2,this.#i("close")}}function mo(n){let t="";for(let s=0;s<n.length;s+=32768)t+=String.fromCharCode(...n.subarray(s,s+32768));return btoa(t)}function Vn(n){try{return new URL(n).host}catch{return n}}function _n(n){if(n<1000)return`${n} ms`;if(n<60000)return`${(n/1000).toFixed(1)} s`;return`${(n/60000).toFixed(1)} min`}class To{#o;#n=null;#i=null;#t="idle";#g=new Map;#d=new Map;#s=[];#u=!1;#h=null;#x=null;#w=0;#e=0;#m=null;#T=null;constructor(n){this.#o=n}get state(){return this.#t}#R(n,t){this.#t=n,this.#o.onStateChange?.(n,t)}#H(n){if(!this.#o.quiet){if(n.type==="connect")console.log(`[RelayClient] connecting to ${Vn(n.server)}`);else if(n.type==="ready")console.log(`[RelayClient] tunnel ready (${n.ms} ms)`);else if(n.type==="disconnect"){if(!n.byUser){let t=n.lastedMs!=null?` after ${_n(n.lastedMs)}`:" before ready",s=n.error??`close ${n.code}`;console.warn(`[RelayClient] tunnel closed${t}: ${s} — ${n.hint}`)}}else if(!n.byUser)console.warn(`[RelayClient] tunnel failed: ${n.error} — ${n.hint}`)}try{this.#o.onDiag?.(n)}catch(t){console.warn("[RelayClient] onDiag threw:",t)}}async connect(){if(this.#t==="connecting"||this.#t==="ready")return this.ready();this.#u=!1,this.#R("connecting"),this.#m=Date.now(),this.#T=null,this.#H({type:"connect",server:this.#o.serverUrl});let n=++this.#e;this.#M();let t=this.#o.WebSocketImpl??globalThis.WebSocket,s=await tn(this.#o.code),e=new t(`${this.#o.serverUrl.replace(/\/+$/,"").replace(/^http/,"ws")}/c/${s}/__alma_e2e__`);e.binaryType="arraybuffer",this.#n=e,this.#h=setTimeout(()=>{this.#k("Encrypted relay connection timed out");try{e.close()}catch{}},this.#o.connectTimeoutMs??20000);let d=new ko({role:"initiator",code:this.#o.code,send:(u)=>e.send(u),onReady:()=>{if(this.#n!==e)return;clearTimeout(this.#h),this.#w=Date.now(),this.#T=Date.now(),this.#P(),this.#R("ready"),this.#H({type:"ready",ms:this.#m?Date.now()-this.#m:0});for(let u of this.#s)u.resolve();this.#s=[]},onFrame:(u)=>this.#a(u),onError:(u)=>this.#k(u)});if(this.#i=d,e.onopen=()=>void d.start(),e.onmessage=(u)=>{if(this.#n!==e)return;let w=u.data;if(typeof w==="string")d.onMessage(w);else if(w instanceof ArrayBuffer)d.onMessage(new Uint8Array(w));else if(ArrayBuffer.isView(w))d.onMessage(new Uint8Array(w.buffer,w.byteOffset,w.byteLength))},e.onclose=(u)=>{if(this.#n!==e)return;clearTimeout(this.#h);let w=`Relay tunnel closed (${u.code}${u.reason?` ${u.reason}`:""})`;this.#O(w,u.code,u.reason||null)},e.onerror=()=>{if(this.#n===e&&this.#t==="connecting")this.#k("Failed to open relay tunnel")},n!==this.#e)this.#k("Client disconnected during pairing");return this.ready()}ready(){if(this.#t==="ready")return Promise.resolve();if(this.#t==="error"||this.#t==="closed")return Promise.reject(Error("E2E tunnel not connected"));return new Promise((n,t)=>this.#s.push({resolve:n,reject:t}))}close(){this.#e++,this.#u=!0;try{this.#n?.close()}catch{}this.#M(),clearTimeout(this.#h),this.#C(),this.#v(Error("Tunnel closed"));for(let n of this.#s)n.reject(Error("Tunnel closed"));this.#s=[],this.#R("closed")}get lastFrameAt(){return this.#w}#M(){let n=this.#n;if(n)n.onmessage=null,n.onclose=null,n.onerror=null,n.onopen=null;this.#n=null,this.#i=null}#P(){this.#C(),this.#x=setInterval(()=>{if(!this.#g.size||Date.now()-this.#w<=(this.#o.idleTimeoutMs??45000))return;this.#k("Tunnel went silent with a request pending");try{this.#n?.close()}catch{}},2000)}#C(){if(this.#x)clearInterval(this.#x);this.#x=null}#k(n){this.#C();let t=this.#n;this.#M();try{t?.close()}catch{}this.#v(Error(n));for(let s of this.#s)s.reject(Error(n));this.#s=[],this.#R("error",n),this.#H({type:"failed",error:n,hint:jn(n),byUser:this.#u})}#v(n){for(let[,t]of this.#g)t.reject(n);this.#g.clear();for(let[,t]of this.#d)t._closed();this.#d.clear()}#O(n,t=null,s=null){this.#C(),this.#v(Error(n));for(let e of this.#s)e.reject(Error(n));this.#s=[],this.#R(this.#u?"closed":"error",n),this.#H({type:"disconnect",code:t,reason:s,error:n,hint:Kn(t,s),lastedMs:this.#T?Date.now()-this.#T:null,byUser:this.#u})}#D(n){this.#i?.sendFrame(n)}#a(n){if(this.#w=Date.now(),n.t==="hres"||n.t==="hchunk"||n.t==="hend"||n.t==="herr"){let t=this.#g.get(String(n.id));if(!t)return;if(n.t==="hres")t.status=n.status,t.headers=n.headers,t.onHeaders?.(n.status,n.headers);else if(n.t==="hchunk"){let s=atob(n.b),e=new Uint8Array(s.length);for(let d=0;d<s.length;d++)e[d]=s.charCodeAt(d);t.chunks.push(e),t.onChunk?.(e)}else if(n.t==="hend")this.#g.delete(String(n.id)),t.resolve(new sn(t.status??0,t.headers??{},t.chunks));else this.#g.delete(String(n.id)),t.reject(Error(n.message));return}if(n.t==="wopened"){this.#d.get(String(n.id))?._opened();return}if(n.t==="wmsg"){let t=this.#d.get(String(n.id));if(!t)return;if(typeof n.s==="string")t._message(n.s);else if(typeof n.b==="string"){let s=atob(n.b),e=new Uint8Array(s.length);for(let d=0;d<s.length;d++)e[d]=s.charCodeAt(d);t._message(e)}return}if(n.t==="wclose"){let t=this.#d.get(String(n.id));if(t)this.#d.delete(String(n.id)),t._closed();return}if(n.t==="werr"){let t=this.#d.get(String(n.id));if(t)this.#d.delete(String(n.id)),t._error(n.message)}}async fetch(n,t={}){if(await this.ready(),this.#t==="closed"||this.#t==="error")throw Error("Tunnel closed");let s=t.signal;if(s?.aborted)throw Error("aborted");let e=`h${Math.random().toString(36).slice(2)}`,d=(t.method??"GET").toUpperCase(),u;if(t.body!=null&&d!=="GET"&&d!=="HEAD")u=typeof t.body==="string"?mo(new TextEncoder().encode(t.body)):mo(t.body);let w=new Promise((H,C)=>{let D={resolve:H,reject:C,status:0,headers:{},chunks:[],onChunk:t.onChunk,onHeaders:t.onHeaders};if(s){let f=()=>{if(!this.#g.delete(e))return;this.#D({t:"hcancel",id:e}),D.reject(Error("aborted"))};s.addEventListener("abort",f,{once:!0});let a=(G)=>(I)=>{s.removeEventListener("abort",f),G(I)};D.resolve=a(H),D.reject=a(C)}this.#g.set(e,D)});return this.#D({t:"hreq",id:e,method:d,path:n,headers:t.headers??{},b:u}),w}async openSocket(n){if(await this.ready(),this.#t==="closed"||this.#t==="error")throw Error("Tunnel closed");let t=`w${Math.random().toString(36).slice(2)}`,s=new en((d)=>this.#D(d));this.#d.set(t,s),s._attach(t);let e=new Promise((d,u)=>{let w=setTimeout(()=>{this.#d.delete(t),s._closed(),u(Error("tunnel ws open timeout"))},15000);s.addEventListener("open",()=>{clearTimeout(w),d()}),s.addEventListener("error",(H)=>{clearTimeout(w),this.#d.delete(t),u(Error(String(H)))})});return this.#D({t:"wopen",id:t,path:n}),await e,s}}var Sn=In(hn(),1);function dn(n){let t=n,s=new Set;return{get:()=>t,set(e){if(Object.is(e,t))return;t=e;for(let d of s)d()},subscribe(e){return s.add(e),()=>s.delete(e)}}}var Ho={};O(Ho,{zh:()=>ln,en:()=>pn});var pn={artifact:{preview:"preview",source:"source",open:"[ open ]",loading:"Loading…",tooLarge:"Too large to preview ({size}); the source view reads it as text.",notPreviewable:"This file cannot be previewed.",gone:"The file is gone.",failed:"Could not read the file: {error}"}},ln={artifact:{preview:"预览",source:"源码",open:"[ 打开 ]",loading:"加载中…",tooLarge:"文件太大,无法预览({size});可在源码视图中按文本查看。",notPreviewable:"这个文件无法预览。",gone:"文件已不存在。",failed:"无法读取文件:{error}"}};var Co={};O(Co,{zh:()=>ot,en:()=>yn});var yn={compare:{title:"Compare attempts",menu:"Compare attempts",severalEngines:"[ compare engines ]",oneEngine:"[ one engine ]",needsPrompt:"Compare runs the prompt, so it needs one",empty:"No attempts left in this round.",noReply:"no reply yet",noChanges:"no changes",status:{working:"working",waiting:"waiting for you",error:"needs a look",done:"done",idle:"idle"},files:"files: {count}",attempts:"attempts: {count}",moreLines:"[ {count} more lines in the diff ]",kept:"kept",strip:"[ compare ]",stackLabel:"Stacked tasks",landBottom:"[ land bottom ]",landBottomPhone:"Land bottom",terminal:"[ terminal ]",diff:"[ diff ]",keep:"Keep this one",unkeep:"[ unkeep ]",keptToast:"kept {title}",unkeptToast:"no longer kept: {title}",keepFailed:"could not mark it kept: {error}",archiveTitle:"Archive the other attempts?",archiveBody:"Hides the other {count} from the rail and closes their sessions. Their worktrees and branches stay.",archiveConfirm:"Archive",archiveBusyTitle:"Some attempts are still working",archiveBusyBody:"Archive them anyway? They are stopped; their worktrees and branches stay.",archiveBusyConfirm:"Archive anyway",archived:"archived {count} attempts",archivedOne:"archived 1 attempt",archiveFailed:"could not archive: {error}"}},ot={compare:{title:"对比方案",menu:"对比方案",severalEngines:"[ 多引擎对比 ]",oneEngine:"[ 单引擎 ]",needsPrompt:"对比要运行提示词,请先写一个",empty:"这一轮没有剩下的方案。",noReply:"还没有回复",noChanges:"没有改动",status:{working:"运行中",waiting:"等你处理",error:"需要看一眼",done:"已完成",idle:"空闲"},files:"文件:{count}",attempts:"方案:{count}",moreLines:"[ diff 里还有 {count} 行 ]",kept:"已保留",strip:"[ 对比 ]",stackLabel:"堆叠任务",landBottom:"[ 合并底部 ]",landBottomPhone:"合并底部",terminal:"[ 终端 ]",diff:"[ diff ]",keep:"保留这个",unkeep:"[ 取消保留 ]",keptToast:"已保留 {title}",unkeptToast:"已取消保留:{title}",keepFailed:"无法标记保留:{error}",archiveTitle:"归档其他方案?",archiveBody:"把其余 {count} 个从侧栏收起,并结束它们的会话。worktree 和分支都保留。",archiveConfirm:"归档",archiveBusyTitle:"有方案还在运行",archiveBusyBody:"仍要归档吗?它们会被停掉,worktree 和分支都保留。",archiveBusyConfirm:"仍然归档",archived:"已归档 {count} 个方案",archivedOne:"已归档 1 个方案",archiveFailed:"无法归档:{error}"}};var Mo={};O(Mo,{zh:()=>tt,en:()=>nt});var nt={context:{used:"{percent} used",usedTokens:"{tokens} used",loading:"Reading context…",none:"No context reading for this conversation: its engine records none, or it has not answered yet.",failed:"Couldn't read context: {error}",probing:"Reading what fills it…",more:"+{count} more",part:{system:"System prompt & tools",system_prompt:"System prompt",system_tools:"System tools",mcp_tools:"MCP tools",mcp_instructions:"MCP server instructions",mcp_tools_deferred:"MCP tools (deferred)",system_tools_deferred:"System tools (deferred)",custom_agents:"Custom agents",memory_files:"Memory files",skills:"Skills",messages:"Messages",used:"Used",free:"Free space"}}},tt={context:{used:"已用 {percent}",usedTokens:"已用 {tokens}",loading:"正在读取上下文…",none:"这个会话没有上下文读数:它的引擎不记录,或者还没回复过。",failed:"读取上下文失败:{error}",probing:"正在读取构成…",more:"另有 {count} 项",part:{system:"系统提示与工具",system_prompt:"系统提示",system_tools:"系统工具",mcp_tools:"MCP 工具",mcp_instructions:"MCP 服务器说明",mcp_tools_deferred:"MCP 工具(按需加载)",system_tools_deferred:"系统工具(按需加载)",custom_agents:"自定义 agent",memory_files:"记忆文件",skills:"技能",messages:"消息",used:"已用",free:"剩余空间"}}};var Do={};O(Do,{zh:()=>st,en:()=>it});var it={dialog:{cancel:"Cancel",save:"Save",close:"Close"},crash:{title:"This page hit an error. Copy the report below before reloading.",copy:"Copy report",copied:"Copied",reload:"Reload"},updatePrompt:{title:"Rove {version} is available",body:"This computer runs {current}. Update installs the new version on it.",yes:"Update",later:"Not now",skip:"Skip this version"},whatsNew:{title:"What's new",continue:"Continue",openRelease:"Open release notes",keys:"q / esc"},menu:{cancel:"Cancel",closeTab:"Close tab",newChat:"New conversation",newChatPick:"New conversation with…",retryEdit:"Retry with edited prompt…",retryNoPrompt:"This task has no stored prompt",startNow:"Start now",cancelStart:"Cancel scheduled start",continueEngine:"Continue in another engine…",newShell:"New shell",newChatNoFolder:"New conversation (no folder)",renameTab:"Rename tab",splitRight:"Split right",splitDown:"Split down",renamePane:"Rename pane",closePane:"Close pane",newTask:"New task",rename:"Rename",pin:"Pin",unpin:"Unpin",setStatus:"Set status",copy:"Copy",copyWhat:{id:"Task ID",branch:"Branch name",path:"Worktree path"},renameBranch:"Rename branch",changeEngine:"Change engine",land:"Land into base branch",delete:"Delete",removeSession:"Remove session",archiveMany:"Archive {count} sessions",archivedMany:"Archived {count} sessions",archiveManyBusy:"These are still working or waiting on you:",removeMany:"Remove {count} sessions",removedMany:"Removed {count} sessions",removeManyTitle:"Remove {count} sessions?",removeManyBody:"Ends each session, closes its tabs and removes its worktree folder. Git branches stay; a child moves up to its parent's place.",removeManyDirtyTitle:"Some worktrees have uncommitted changes",removeManyDirtyBody:"Removing them anyway loses those changes:",viewSessions:"View all sessions",more:"More",copied:"copied {text}",copyFailed:"the browser refused the clipboard",nothingToCopy:"this task has no {what} yet",what:{id:"id",branch:"branch",path:"worktree path"}},confirm:{closeTabTitle:'Close "{tab}"?',closeTabBody:"Stops the session in this tab. The task and its worktree stay.",closePaneTitle:'Close "{pane}"?',closePaneBody:"The engine session in this pane ends. The tab's other panes stay.",delete:"delete",forceDelete:"force delete"},newTask:{title:"new task",repo:"project",engine:"engine",notReady:"not installed or not signed in",taskTitle:"title",titlePlaceholder:"optional; derived from the prompt otherwise",prompt:"first message",promptPlaceholder:"optional; ⌘↵ creates",create:"create",needRepo:"pick a project first"},newChat:{title:"new conversation",prompt:"first message",start:"start",promptPlaceholder:"optional; empty opens the engine without a message"},newSession:{title:"New session",tagline:"Pick a project and a model, then describe the task. The session starts with your first message.",placeholder:"Describe a task or ask a question",start:"Start session",later:"Start later…",laterConfirm:"Start later",laterPlaceholder:"22:30 · tomorrow 9:00 · +30m",laterBad:"That is not a time ahead. Try 22:30, tomorrow 9:00 or +2h.",laterSet:"Starts at {time}. Until then it waits under Routines, where you can cancel it.",retryArchiveTitle:'Archive "{title}"?',retryArchiveBody:"The retry has started. Archive the original? Its session is closed; nothing is deleted.",needRepo:"Pick a project first",needPrompt:"Describe the task first",repo:"Project",repoSearch:"Search projects or type a path",repoEmpty:"No matching project",noFolder:"No folder",chooseFolder:"Choose folder",openFolder:"+ Open folder…",openFolderHeading:"Open folder",folderFilter:"Paste a path or filter folders…",folderUse:'Use "{name}"',folderBack:"← Back",folderParent:"parent",folderGit:"git",folderEmpty:"No subfolders",folderHint:"← up · → open · enter select · esc back",cloneRow:"Clone {source}",cloning:"Cloning {source}",githubGroup:"Your GitHub repositories",githubLoading:"Reading your GitHub repositories…",branch:"Branch",branchSearch:"Search branches",branches:"Branches",branchName:"Branch name, shared by every repo",branchNamePlaceholder:"derived from the prompt",primary:"primary",repoCount:"{count} repos: the first is the primary",branchEmpty:"No matching branch",model:"Model",modelHeading:"Model for this session",engine:"Engine",shell:"Shell",shellPlaceholder:"A command to run first, or leave empty for a plain terminal",shellOneLine:"A shell command is one line",modelDefault:"Default",more:"More",attach:"Attach",attachHint:"Add files to the first message; you can also paste or drop them on the prompt",removeAttachment:"Remove {name}",worktree:"Worktree",worktreeOn:"Runs in its own worktree and branch. Click to run in the project's checkout instead",worktreeOff:"Runs in the project's checkout as it is, on its current branch. Click for a worktree",worktreeMulti:"A task across several repos always gets a worktree in each",worktreeNoGit:"Not a git repository: the session runs in the folder itself",worktreeRemoteRequired:"An agent running on that machine, or a repo it still has to clone, always gets a worktree",plainMulti:"A folder without git can't join a task across several repos",machine:"Machine",thisMachine:"This machine",machineAuto:"Auto",machineAutoNote:"Starts on the least busy machine that has this project.",startedOn:"Started on {machine}",retry:"Retry",agentPlace:"Agent runs on",agentHereNote:"Uses this machine's engines and sign-in. Only the files and commands are on {machine}.",agentThereNote:"The engine runs on {machine}, so it must be installed and signed in there.",cloneRowOn:"Clone {source} on {machine}",cloningOn:"Cloning {source} on {machine}",startingOn:"Starting the task on {machine}",engineMissing:"{engine} · not installed",engineMissingOn:"{engine} is not installed on {machine}. Install it there, or pick another engine.",repoSearchRemote:"Search or type owner/repo",remoteOffline:"{machine} is offline",remoteOutdated:"{machine} runs a Rove too old to list its projects",remoteFailed:"Could not read {machine}'s projects: {message}",remoteNone:"{machine} has no projects yet. Type owner/repo to clone one there",remoteLoading:"Reading {machine}'s projects…",branchTypeRef:"Type a branch or ref to start from",branchRemoteDefault:"Its current branch"},sessions:{title:"Sessions",active:"Active",archived:"Archived",allProjects:"all projects",emptyActive:"No sessions here. Start one from New task.",emptyArchived:"Nothing archived here. Archive a session from its row menu.",keys:"tab project · a archived · enter open · q close"},search:{tasks:"Tasks",archived:"{repo} · archived, pick to unarchive",commands:"Commands",inConversations:"In conversations",searching:"searching…",none:"Nothing said matches “{query}”.",you:"you",agent:"agent",truncated:"Stopped early to stay fast; add a word to narrow it.",skipped:"{count} task(s) not searched: another machine's, or an engine Rove cannot read."},taskops:{publishTitle:"publish to the remote",publishBody:"{branch} lives on {host}. Push it from there and open a pull request?",publishButton:"push & open PR",publishedPr:"pushed {branch} — PR {url}",publishedNoPr:"pushed {branch}, but no PR: {reason}",set:"set",retire:"delete",close:"close",moveHint:"j/k move · enter or esc done",fixSent:"asked the agent to fix the failing checks",forkNeedsMessage:"a message is required to fork a task",forkLeftBehind:"Started from the last commit — uncommitted work stays in the original task ({reason})",forkBranch:"fork from branch",openedExternal:"opened in the Mac's app"}},st={dialog:{cancel:"取消",save:"保存",close:"关闭"},crash:{title:"页面出错了。刷新前先把下面的报告复制下来。",copy:"复制报告",copied:"已复制",reload:"刷新"},updatePrompt:{title:"Rove {version} 可以更新了",body:"这台电脑运行的是 {current}。点更新会在它上面安装新版本。",yes:"更新",later:"暂不",skip:"跳过这个版本"},whatsNew:{title:"更新内容",continue:"继续",openRelease:"打开发布说明",keys:"q / esc"},menu:{cancel:"取消",closeTab:"关闭该标签页",newChat:"新建会话",newChatPick:"选择引擎新建会话…",retryEdit:"改提示词后重试…",retryNoPrompt:"这个任务没有保存的提示词",startNow:"立即启动",cancelStart:"取消定时启动",continueEngine:"换个引擎继续…",newShell:"新建终端",newChatNoFolder:"新建会话(无文件夹)",renameTab:"重命名标签页",splitRight:"向右分屏",splitDown:"向下分屏",renamePane:"重命名分屏",closePane:"关闭分屏",newTask:"新建任务",rename:"重命名",pin:"置顶",unpin:"取消置顶",setStatus:"设置状态",copy:"复制",copyWhat:{id:"任务 ID",branch:"分支名",path:"worktree 路径"},renameBranch:"重命名分支",changeEngine:"切换引擎",land:"合入基础分支",delete:"删除",removeSession:"移除会话",archiveMany:"归档 {count} 个会话",archivedMany:"已归档 {count} 个会话",archiveManyBusy:"这些会话还在运行或在等你:",removeMany:"移除 {count} 个会话",removedMany:"已移除 {count} 个会话",removeManyTitle:"移除 {count} 个会话?",removeManyBody:"结束每个会话,关闭它的标签页,并删除它的 worktree 文件夹。git 分支会保留;子会话会上移到父会话的位置。",removeManyDirtyTitle:"有些 worktree 还有未提交的改动",removeManyDirtyBody:"仍然移除会丢掉这些改动:",viewSessions:"查看全部会话",more:"更多",copied:"已复制 {text}",copyFailed:"浏览器拒绝了剪贴板访问",nothingToCopy:"这个任务还没有{what}",what:{id:"ID",branch:"分支",path:"worktree 路径"}},confirm:{closeTabTitle:"关闭「{tab}」?",closeTabBody:"停止这个标签里的会话。任务和它的 worktree 会保留。",closePaneTitle:"关闭「{pane}」?",closePaneBody:"这个分屏里的引擎会话会结束。标签里的其他分屏会保留。",delete:"删除",forceDelete:"强制删除"},newTask:{title:"新建任务",repo:"项目",engine:"引擎",notReady:"未安装或未登录",taskTitle:"标题",titlePlaceholder:"可选;不填就从第一条消息生成",prompt:"第一条消息",promptPlaceholder:"可选;⌘↵ 创建",create:"创建",needRepo:"先选一个项目"},newChat:{title:"新建会话",prompt:"第一条消息",start:"开始",promptPlaceholder:"可选;留空则直接打开引擎,不发消息"},newSession:{title:"新会话",tagline:"选好项目和模型,再描述任务。会话从你的第一条消息开始。",placeholder:"描述一个任务,或提个问题",start:"开始会话",later:"稍后启动…",laterConfirm:"稍后启动",laterPlaceholder:"22:30 · 明天 9:00 · +30m",laterBad:"这不是一个未来的时间。试试 22:30、明天 9:00 或 +2h。",laterSet:"{time} 启动。在那之前它列在「例行任务」里,可以在那里取消。",retryArchiveTitle:"归档「{title}」?",retryArchiveBody:"重试已经开始。要把原来的会话归档吗?它的进程会结束,不会删除任何东西。",needRepo:"先选一个项目",needPrompt:"先描述一下任务",repo:"项目",repoSearch:"搜索项目,或输入路径",repoEmpty:"没有匹配的项目",noFolder:"无文件夹",chooseFolder:"选择文件夹",openFolder:"+ 打开文件夹…",openFolderHeading:"打开文件夹",folderFilter:"粘贴路径或过滤文件夹…",folderUse:"使用「{name}」",folderBack:"← 返回",folderParent:"上级目录",folderGit:"git",folderEmpty:"没有子文件夹",folderHint:"← 上一级 · → 进入 · enter 选定 · esc 返回",cloneRow:"克隆 {source}",cloning:"正在克隆 {source}",githubGroup:"你的 GitHub 仓库",githubLoading:"正在读取你的 GitHub 仓库…",branch:"分支",branchSearch:"搜索分支",branches:"分支",branchName:"分支名,所有仓库共用",branchNamePlaceholder:"不填就从提示词生成",primary:"主仓库",repoCount:"{count} 个仓库,第一个是主仓库",branchEmpty:"没有匹配的分支",model:"模型",modelHeading:"本次会话的模型",engine:"引擎",shell:"Shell",shellPlaceholder:"先运行的命令,留空就只开一个终端",shellOneLine:"Shell 命令只能写一行",modelDefault:"默认",more:"更多",attach:"附件",attachHint:"给第一条消息加文件;也可以直接粘贴或拖到输入框里",removeAttachment:"移除 {name}",worktree:"Worktree",worktreeOn:"在独立的 worktree 和分支里运行。点击改为直接在项目目录里运行",worktreeOff:"直接在项目目录里运行,用它当前的分支。点击改为独立 worktree",worktreeMulti:"跨多个仓库的任务每个仓库都会有 worktree",worktreeNoGit:"不是 git 仓库:会话直接在这个文件夹里运行",worktreeRemoteRequired:"agent 跑在那台机器上,或仓库还要先克隆时,总会建 worktree",plainMulti:"没有 git 的文件夹不能加入跨多个仓库的任务",machine:"机器",thisMachine:"本机",machineAuto:"自动",machineAutoNote:"在有这个项目、且最空闲的机器上启动。",startedOn:"已在 {machine} 上启动",retry:"重试",agentPlace:"agent 运行在",agentHereNote:"用本机的引擎和登录,只有文件和命令在 {machine} 上。",agentThereNote:"引擎在 {machine} 上运行,那边要装好并登录。",cloneRowOn:"在 {machine} 上克隆 {source}",cloningOn:"正在 {machine} 上克隆 {source}",startingOn:"正在 {machine} 上启动任务",engineMissing:"{engine} · 未安装",engineMissingOn:"{machine} 上没有安装 {engine}。在那台机器上装好,或者换一个引擎。",repoSearchRemote:"搜索,或输入 owner/repo",remoteOffline:"{machine} 已离线",remoteOutdated:"{machine} 上的 Rove 太旧,列不出它的项目",remoteFailed:"读不到 {machine} 上的项目:{message}",remoteNone:"{machine} 上还没有项目。输入 owner/repo 就能在那里克隆",remoteLoading:"正在读取 {machine} 上的项目…",branchTypeRef:"输入要基于的分支或 ref",branchRemoteDefault:"它当前的分支"},sessions:{title:"会话",active:"进行中",archived:"已归档",allProjects:"全部项目",emptyActive:"这里还没有会话。从「新建任务」开始一个。",emptyArchived:"这里没有已归档的会话。在会话的右键菜单里归档。",keys:"tab 切换项目 · a 已归档 · enter 打开 · q 关闭"},search:{tasks:"任务",archived:"{repo} · 已归档,选中即恢复",commands:"命令",inConversations:"在对话里",searching:"搜索中…",none:"没有说过「{query}」。",you:"你",agent:"agent",truncated:"为了快提前停了;多加一个词缩小范围。",skipped:"有 {count} 个任务没搜:在别的机器上,或 Rove 读不了它的引擎记录。"},taskops:{publishTitle:"推送到远端",publishBody:"{branch} 在 {host} 上。要从那台机器推送它并开一个 PR 吗?",publishButton:"推送并开 PR",publishedPr:"已推送 {branch} — PR {url}",publishedNoPr:"已推送 {branch},但没开成 PR:{reason}",set:"设置",retire:"删除",close:"关闭",moveHint:"j/k 移动 · enter 或 esc 完成",fixSent:"已请 agent 修复失败的检查",forkNeedsMessage:"fork 任务需要填写消息",forkLeftBehind:"已从最近一次提交开始——未提交的改动留在原任务里({reason})",forkBranch:"基于分支",openedExternal:"已在 Mac 上用系统应用打开"}};var Po={};O(Po,{zh:()=>ht,en:()=>et});var et={machines:{title:"Machines",open:"[ machines ]",none:"No other machines registered. Add one with `rove machine add`.",newHere:"[ new task here ]",tasks:"[ tasks ]",repos:"[ repos ]",hide:"[ hide ]",noTasks:"no tasks",noRepos:"no repos",loading:"…",reposFailed:"couldn't read its repos: {message}",update:"[ update rove ]",updating:"updating… this can take a few minutes",updated:"updated: v{from} → v{to}",upToDate:"already on the newest build of this machine's channel (v{to})",updateFailed:"couldn't update it: {message}",reason:{refused:"ssh was refused (nothing is listening or a firewall is in the way)",timeout:"ssh timed out","host-key-changed":"its ssh host key changed; check it, then update known_hosts","host-key-unverified":"its ssh host key is not known yet; connect once by hand to trust it","auth-denied":"ssh refused the login (no key or password accepted)",unresolved:"its hostname does not resolve","ssh-failed":"ssh failed","no-rove":"rove is not installed there","no-daemon":"its rove daemon is not running","bad-status":"it answered with something rove could not read",handshake:"the link came up but the handshake failed","no-forwarding":"ssh forwarding is disabled there",lost:"the link dropped; reconnecting"}}},ht={machines:{title:"机器",open:"[ 机器 ]",none:"没有注册其他机器。用 `rove machine add` 添加。",newHere:"[ 在这台新建任务 ]",tasks:"[ 任务 ]",repos:"[ 仓库 ]",hide:"[ 收起 ]",noTasks:"没有任务",noRepos:"没有仓库",loading:"…",reposFailed:"读不到它的仓库:{message}",update:"[ 更新 rove ]",updating:"正在更新…可能要几分钟",updated:"已更新:v{from} → v{to}",upToDate:"已经是这台机器所在通道的最新版(v{to})",updateFailed:"更新失败:{message}",reason:{refused:"ssh 被拒绝(没有进程在监听,或被防火墙挡住)",timeout:"ssh 超时","host-key-changed":"它的 ssh 主机密钥变了;确认无误后更新 known_hosts","host-key-unverified":"还不认识它的 ssh 主机密钥;先手动连一次以信任它","auth-denied":"ssh 拒绝了登录(没有被接受的密钥或密码)",unresolved:"它的主机名解析不了","ssh-failed":"ssh 失败","no-rove":"那里没有安装 rove","no-daemon":"它的 rove 守护进程没在运行","bad-status":"它返回了 rove 读不懂的内容",handshake:"链路通了但握手失败","no-forwarding":"那里禁用了 ssh 端口转发",lost:"链路断了;正在重连"}}};var Oo={};O(Oo,{zh:()=>gt,en:()=>dt});var dt={files:{autoFix:{on:"[ auto-fix CI ]",off:"[ turn off ]",count:"auto-fix {n}/{max}",stopped:"auto-fix stopped {n}/{max}",hint:"When checks fail on a new push and the agent is idle, send it the failing logs. At most once per push, 3 times in all, then it stops and tells your Inbox."},stripCreate:"[ create PR ]",stripFixCi:"[ fix CI ]",stripConflicts:"[ resolve conflicts ]",stripComments:"[ address comments ]",stripArchive:"[ archive ]",stripFilled:"prompt is in the input; edit it and press Enter",stripNoEngine:"No engine session open in this task — nowhere to put the prompt.",stripUnavailable:"couldn't read the PR's checks: {detail}",stripNothing:"nothing to ask the agent about right now",openPort:"[ open :{port} ]",checks:{title:"checks",summary:"{pass}/{total} passed",failed:"{count} failed",running:"{count} running",none:"no checks",refresh:"[ refresh ]",loading:"…",unavailable:"couldn't read the PR: {detail}",log:"[ log ]",hideLog:"[ hide ]",noLog:"no log excerpt for this job",logUnavailable:"couldn't read the log: {detail}",more:"{count} more not shown",took:"{duration}",tookAgo:"{duration} · {age} ago",finishedAgo:"{age} ago",runningFor:"running {elapsed}"},merge:{draft:"draft",conflicts:"conflicts",behind:"behind base",unstable:"checks not passing",blocked:"blocked",clean:"mergeable",approved:"approved",changes:"changes requested",reviewRequired:"review required"},stripCommit:"[ commit ]",prRequested:"asked the agent to create the PR",remoteNoExternal:"this file is on {host}; open it there",mentionNoEngine:"No engine session open in this task — nothing to mention into.",menu:{attach:"Attach as context",diff:"Open diff",copy:"Copy",copyRelative:"Relative path",copyAbsolute:"Absolute path",copyName:"Filename",openExternal:"Open in the Mac's app",reveal:"Show in Finder",terminal:"Open in terminal"},landTodos:"{count} todo(s) on this task are still unchecked.",emptyAll:"(empty worktree)",truncated:"Only the first {count} files are listed.",state:{conflict:"conflict",deleted:"deleted",modified:"modified",untracked:"untracked",added:"added",renamed:"renamed"}},preview:{loading:"loading…",whole:"whole worktree",unknown:"nothing to show",binary:"binary file — not shown as text",empty:"no changes",noHunks:"no text changes ({kind})",modeFile:"[ file ]",modeDiff:"[ diff ]",askInChat:"ask in chat",askInChatHint:"Put the selected lines in the engine's prompt",sent:"sent {count} notes to the engine",sentOne:"sent 1 note to the engine",notSent:"notes not sent: {reason}"},review:{comment:"comment",range:"range",count:"{count} comments",countOne:"1 comment",send:"send {count}",sending:"sending…",edit:"edit",drop:"drop",moved:"moved",movedHint:"The code under this comment changed since it was written.",show:"Show in the diff",noteOn:"note on {location}",noteEditOn:"edit note on {location}",noteAdd:"[ add note ]",noteSave:"[ save note ]",noteCancel:"[ cancel ]",fold:"Fold {path}",unfold:"Unfold {path}",foldAll:"fold all",unfoldAll:"unfold all",ignoreWs:"[ ws ]",ignoreWsHint:"Hide whitespace-only changes (git diff -w)",viewed:"[ viewed ]",markViewed:"Mark {path} viewed",viewedOn:"[x] viewed",unmarkViewed:"Unmark {path} viewed",totals:"{files} files · +{added} −{removed}",totalsOne:"1 file · +{added} −{removed}",viewedCount:"{done}/{files} viewed",nextFile:"[ next file ]",nextComment:"[ next comment ]",scopeMenu:"{base} → {scope} ▾",compareAgainst:"Compare against {base}…",baseDefault:"task base",baseBranch:"branch",baseRemote:"remote",baseTag:"tag",basePlaceholder:"branch, tag or commit",shape:{effort:"effort {n}/5",lockfile:"{count} lockfile",lockfiles:"{count} lockfiles",generated:"{count} generated",tests:"{count} tests",config:"{count} config",docs:"{count} docs",source:"{count} source"},scopeWorking:"Uncommitted changes",scopeBranch:"Committed changes",scopeTask:"All changes",lineClipped:"… {count} more characters",notSupported:"This bridge is older than the page and can't do that; restart it."},panel:{tabs:"Browser tabs",files:"Files",chat:"Chat",diff:"Diff",browser:"Browser",quota:"Context",resize:"Drag to resize the panel, double-click to reset",new:"New tab",close:"Close",expand:"Expand the side panel",restore:"Restore the side panel size",closeOthers:"Close others",resizeSplit:"Drag to resize, double-click to reset the widths"},browser:{address:"Address",placeholder:"https://… or localhost:3000",back:"Back",forward:"Forward",reload:"Reload",openTab:"Open in a new tab",invalid:"That is not a web address; only http and https pages open here.",outside:"Only files inside this task's directory open here.",empty:"Enter a web address, or a local dev server.",emptyPorts:"Enter a web address. A dev server started in this task is listed here.",noFrame:"Only https pages open here; this address uses plain http. Use ↗ to open it in a new tab.",self:"That address is Rove itself, which can't be framed. Use ↗ to open it in a new tab.",refuses:"{host} doesn't allow being shown inside another page.",unreachable:"{host} can't be reached from here.",remote:"{host} runs on the Rove machine, not on this one.",annotate:"Mark up this page",pen:"Pen",box:"Box",text:"Text",undo:"Undo the last mark",addToChat:"Add to chat",annotateDone:"Stop marking",noEngine:"Open an agent session in this task first; the picture goes into its prompt.",captureFailed:"Couldn't take a picture of the page: {error}",handToAgent:"Hand to agent",takeControl:"Agent · Take control",handedToAgent:"Handed {id} to agent",handedToHuman:"Took control of {id}"}},gt={files:{autoFix:{on:"[ 自动修复 CI ]",off:"[ 关闭 ]",count:"自动修复 {n}/{max}",stopped:"自动修复已停止 {n}/{max}",hint:"检查在新提交上失败且代理空闲时,自动把失败日志发给它。每次提交最多一次、总共 3 次,之后停止并通知收件箱。"},stripCreate:"[ 创建 PR ]",stripFixCi:"[ 修复 CI ]",stripConflicts:"[ 解决冲突 ]",stripComments:"[ 处理评论 ]",stripArchive:"[ 归档 ]",stripFilled:"提示词已放进输入框,修改后按 Enter 发送",stripNoEngine:"这个任务没有打开的引擎会话,提示词无处可放。",stripUnavailable:"读不到 PR 的检查结果:{detail}",stripNothing:"现在没有需要让代理处理的事",openPort:"[ 打开 :{port} ]",checks:{title:"检查",summary:"{pass}/{total} 通过",failed:"{count} 个失败",running:"{count} 个进行中",none:"没有检查",refresh:"[ 刷新 ]",loading:"…",unavailable:"读不到这个 PR:{detail}",log:"[ 日志 ]",hideLog:"[ 收起 ]",noLog:"这个作业没有日志摘录",logUnavailable:"读不到日志:{detail}",more:"还有 {count} 个未显示",took:"{duration}",tookAgo:"{duration} · {age}前",finishedAgo:"{age}前",runningFor:"已运行 {elapsed}"},merge:{draft:"草稿",conflicts:"有冲突",behind:"落后于基线",unstable:"检查未通过",blocked:"被阻塞",clean:"可合并",approved:"已批准",changes:"要求修改",reviewRequired:"需要评审"},stripCommit:"[ 提交 ]",prRequested:"已让代理去创建 PR",remoteNoExternal:"这个文件在 {host} 上,请到那台机器上打开",mentionNoEngine:"这个任务没有打开的引擎会话——没有地方可以提及。",menu:{attach:"作为上下文附加",diff:"打开 diff",copy:"复制",copyRelative:"相对路径",copyAbsolute:"绝对路径",copyName:"文件名",openExternal:"用 Mac 上的应用打开",reveal:"在 Finder 中显示",terminal:"在终端中打开"},landTodos:"此任务还有 {count} 条待办未完成。",emptyAll:"(空工作区)",truncated:"只列出了前 {count} 个文件。",state:{conflict:"有冲突",deleted:"已删除",modified:"已修改",untracked:"未跟踪",added:"已新增",renamed:"已重命名"}},preview:{loading:"加载中…",whole:"整个工作区",unknown:"没有可显示的内容",binary:"二进制文件——不以文本显示",empty:"没有变更",noHunks:"没有文本变更({kind})",modeFile:"[ 文件 ]",modeDiff:"[ 差异 ]",askInChat:"在对话里问",askInChatHint:"把选中的几行放进引擎的输入框",sent:"已把 {count} 条批注发给引擎",sentOne:"已把 1 条批注发给引擎",notSent:"批注没有发出:{reason}"},review:{comment:"批注",range:"选范围",count:"{count} 条批注",countOne:"1 条批注",send:"发送 {count} 条",sending:"发送中…",edit:"编辑",drop:"删除",moved:"已移位",movedHint:"这条批注下面的代码在写下之后变了。",show:"在差异里定位",noteOn:"批注 {location}",noteEditOn:"编辑批注 {location}",noteAdd:"[ 添加批注 ]",noteSave:"[ 保存批注 ]",noteCancel:"[ 取消 ]",fold:"折叠 {path}",unfold:"展开 {path}",foldAll:"全部折叠",unfoldAll:"全部展开",ignoreWs:"[ ws ]",ignoreWsHint:"隐藏仅空白的改动 (git diff -w)",viewed:"[ 已看 ]",markViewed:"标记 {path} 为已看",viewedOn:"[x] 已看",unmarkViewed:"取消 {path} 的已看",totals:"{files} 个文件 · +{added} −{removed}",totalsOne:"1 个文件 · +{added} −{removed}",viewedCount:"已看 {done}/{files}",nextFile:"[ 下个文件 ]",nextComment:"[ 下条评论 ]",scopeMenu:"{base} → {scope} ▾",compareAgainst:"对比基准:{base}…",baseDefault:"任务基准",baseBranch:"分支",baseRemote:"远程",baseTag:"标签",basePlaceholder:"分支、标签或提交",shape:{effort:"评审量 {n}/5",lockfile:"{count} 个锁文件",lockfiles:"{count} 个锁文件",generated:"{count} 个生成文件",tests:"{count} 个测试",config:"{count} 个配置",docs:"{count} 个文档",source:"{count} 个源码"},scopeWorking:"未提交的改动",scopeBranch:"已提交的改动",scopeTask:"全部改动",lineClipped:"…还有 {count} 个字符",notSupported:"这个 bridge 比页面旧,做不了这个;请重启它。"},panel:{tabs:"浏览器标签页",files:"文件",chat:"对话",diff:"差异",browser:"浏览器",quota:"上下文",resize:"拖动调整侧边栏宽度,双击复位",new:"新建标签页",close:"关闭",expand:"展开侧边栏",restore:"还原侧边栏大小",closeOthers:"关闭其他",resizeSplit:"拖动调整宽度,双击恢复默认宽度"},browser:{address:"地址",placeholder:"https://… 或 localhost:3000",back:"后退",forward:"前进",reload:"刷新",openTab:"在新标签页打开",invalid:"这不是网页地址;这里只能打开 http 和 https 页面。",outside:"这里只能打开这个任务目录里的文件。",empty:"输入网页地址,或本地开发服务器的地址。",emptyPorts:"输入网页地址。在这个任务里启动的开发服务器会列在这里。",noFrame:"这里只能打开 https 页面;这个地址用的是 http。点 ↗ 在新标签页打开。",self:"这个地址就是 Rove 本身,不能嵌入。点 ↗ 在新标签页打开。",refuses:"{host} 不允许嵌入其他页面。",unreachable:"从这里访问不到 {host}。",remote:"{host} 运行在 Rove 所在的机器上,不在这台设备上。",annotate:"在页面上标注",pen:"画笔",box:"方框",text:"文字",undo:"撤销上一笔",addToChat:"加到对话",annotateDone:"结束标注",noEngine:"先在这个任务里打开一个 agent 会话;截图会进它的输入框。",captureFailed:"没能截下这个页面:{error}",handToAgent:"交给代理",takeControl:"代理控制中 · 接管",handedToAgent:"已将 {id} 交给代理",handedToHuman:"已接管 {id}"}};var ao={};O(ao,{zh:()=>xt,en:()=>ut});var ut={quote:{action:"[ quote ]",title:"Put the selection in the prompt as a quote",atMenu:"The agent is waiting on a choice. Answer it first, then quote.",notReady:"The agent's prompt is not taking pasted text yet. Try again in a moment."},snippets:{empty:"No snippets yet.",name:"Name",namePlaceholder:"review",text:"Text",textPlaceholder:"Review this change for bugs and missing tests.",add:"[ add ]",save:"[ save ]",edit:"[ edit ]",cancel:"[ cancel ]",remove:"[ remove ]",removed:"Removed @{name}",badName:"A name is letters, digits, - or _, up to 32.",phone:{add:"Add snippet",save:"Save",cancel:"Cancel",remove:"Delete snippet"}}},xt={quote:{action:"[ 引用 ]",title:"把选中的内容作为引用放进提示词",atMenu:"agent 正在等你做选择。先回答它,再引用。",notReady:"agent 的输入框暂时还不接受粘贴。稍等一下再试。"},snippets:{empty:"还没有片段。",name:"名称",namePlaceholder:"review",text:"内容",textPlaceholder:"检查这次改动有没有 bug,有没有漏掉的测试。",add:"[ 添加 ]",save:"[ 保存 ]",edit:"[ 编辑 ]",cancel:"[ 取消 ]",remove:"[ 删除 ]",removed:"已删除 @{name}",badName:"名称只能是字母、数字、- 或 _,最长 32 位。",phone:{add:"添加片段",save:"保存",cancel:"取消",remove:"删除片段"}}};var Bo={};O(Bo,{zh:()=>Rt,en:()=>wt});var wt={rail:{markNotice:"Task rows now start with the engine's icon. Change it in Settings → Appearance.",markNoticeUndo:"Old look",inbox:"inbox {count}",empty:"no tasks yet",skillCue:"skill missing",newTask:"New task",update:"Update",settings:"Settings",noProject:"Ungrouped",connector:{weixin:"WeChat",lark:"Lark",inbox:"External messages"},expandGroup:"Expand {name}",collapseGroup:"Collapse {name}",reconnecting:"reconnecting",extensions:"Extensions",addExtension:"Add extension",newTaskMode:{worktree:"worktree",folder:"folder"},lastOpened:"Last opened",state:{needs:"needs you",working:"working",ready:"ready",idle:"idle"},extraRepos:"{count} more repos in this task",extraReposOne:"1 more repo in this task",todos:"{done} of {total} todos done",todosOne:"{done} of 1 todo done",startsAt:"Starts {time}",pr:{state:{open:"open",merged:"merged",closed:"closed"},many:"{count} PRs in this task and its children",checks:{conflict:"conflicts with its base",failing:"checks failing",passing:"checks passing",pending:"checks running"}},searchPlaceholder:"fuzzy filter",engineSwitched:"Engine → {engine} (applies on reopen)",engineSwitchFailed:"could not switch engine: {error}"},inbox:{title:"inbox",hints:"↑↓ move · enter open · d ack · esc close",attention:"attention",recent:"recent",empty:"no pending attention",send:"Send",openTab:"[ open ]",noOutput:"no output yet",outputUnreadable:"couldn't read this tab's output",replyPlaceholder:"reply to this session",gateKept:"Saved; the engine isn't running and will get it with its next message.",gateAnswer:"Answer",phone:{title:"Inbox",empty:"Nothing needs you right now.",ackAll:"Ack all",ack:"Ack",open:"Open",reply:"Reply"},state:{done:"done",needsInput:"needs input",error:"error",rateLimited:"rate limited",dead:"engine exited",restored:"restored after restart",routineFailed:"routine needs you",decision:"needs a decision",reportMissing:"report missing"}}},Rt={rail:{markNotice:"任务行现在以引擎图标开头。可在设置 → 外观里更改。",markNoticeUndo:"换回旧样式",inbox:"收件箱 {count}",empty:"还没有任务",skillCue:"缺少技能",newTask:"新建任务",update:"更新",settings:"设置",noProject:"未分组",connector:{weixin:"微信",lark:"飞书",inbox:"外部消息"},expandGroup:"展开{name}",collapseGroup:"收起{name}",reconnecting:"重连中",extensions:"扩展",addExtension:"添加扩展",newTaskMode:{worktree:"worktree",folder:"文件夹"},lastOpened:"上次打开",state:{needs:"等你处理",working:"进行中",ready:"待收尾",idle:"空闲"},extraRepos:"这个任务还含 {count} 个仓库",extraReposOne:"这个任务还含 1 个仓库",todos:"{done}/{total} 条待办已完成",todosOne:"{done}/1 条待办已完成",startsAt:"{time} 启动",pr:{state:{open:"进行中",merged:"已合并",closed:"已关闭"},many:"这个任务及子任务共 {count} 个 PR",checks:{conflict:"与基础分支冲突",failing:"检查未通过",passing:"检查已通过",pending:"检查进行中"}},searchPlaceholder:"模糊搜索",engineSwitched:"引擎 → {engine}(重新打开后生效)",engineSwitchFailed:"切换引擎失败:{error}"},inbox:{title:"收件箱",hints:"↑↓ 移动 · enter 打开 · d 已阅 · esc 关闭",attention:"待处理",recent:"最近使用",empty:"暂无待处理",send:"发送",openTab:"[ 打开 ]",noOutput:"还没有输出",outputUnreadable:"读不到这个标签页的输出",replyPlaceholder:"回复这个会话",gateKept:"已记下;引擎没在运行,下次发消息时一并送达。",gateAnswer:"回答",phone:{title:"收件箱",empty:"现在没有需要你处理的。",ackAll:"全部已阅",ack:"已阅",open:"打开",reply:"回复"},state:{done:"完成",needsInput:"需要输入",error:"出错",rateLimited:"限流",dead:"引擎已退出",restored:"重启后已恢复",routineFailed:"例行任务需要处理",decision:"等你决定",reportMissing:"未回报"}}};var fo={};O(fo,{zh:()=>kt,en:()=>vt});var vt={reviewQueue:{sourceIssues:"[ issues ]",sourceReviews:"[ PRs waiting on me ]",palette:"Review queue",title:"PRs waiting on me",empty:"No open PR asks for your review in your projects.",other:"{count} more in projects Rove doesn't know.",draft:"draft",fork:"fork",checksPassing:"checks passing",checksFailing:"checks failing",checksPending:"checks running",start:"[ review ]",preparing:"Fetching #{number}…",failed:"Could not start the review of #{number}: {error}",gh:{missing:"The `gh` CLI is not installed or not on PATH.",unauthenticated:"`gh` is not signed in: run `gh auth login` on this Mac.",failed:"GitHub could not be read just now. Press r to retry."},prompt:`Review pull request #{number} in {repo}: {title}
|
|
25
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),o}function Yo(){v.asyncTransitions--}function q(o){if(K===null)try{var i=("require"+Math.random()).slice(0,7);K=(c&&c[i]).call(c,"timers").setImmediate}catch(h){K=function(g){on===!1&&(on=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var x=new MessageChannel;x.port1.onmessage=g,x.port2.postMessage(void 0)}}return K(o)}function X(o){return 1<o.length&&typeof AggregateError==="function"?AggregateError(o):o[0]}function J(o,i){i!==j-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),j=i}function oo(o,i,h){var g=v.actQueue;if(g!==null)if(g.length!==0)try{no(g),q(function(){return oo(o,i,h)});return}catch(x){v.thrownErrors.push(x)}else v.actQueue=null;0<v.thrownErrors.length?(g=X(v.thrownErrors),v.thrownErrors.length=0,h(g)):i(o)}function no(o){if(!go){go=!0;var i=0;try{for(;i<o.length;i++){var h=o[i];do{v.didUsePromise=!1;var g=h(!1);if(g!==null){if(v.didUsePromise){o[i]=h,o.splice(0,i);return}h=g}else break}while(1)}o.length=0}catch(x){o.splice(0,i+1),v.thrownErrors.push(x)}finally{go=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var to=Symbol.for("react.transitional.element"),Qo=Symbol.for("react.portal"),io=Symbol.for("react.fragment"),Xo=Symbol.for("react.strict_mode"),Zo=Symbol.for("react.profiler"),so=Symbol.for("react.consumer"),Wo=Symbol.for("react.context"),Eo=Symbol.for("react.forward_ref"),Io=Symbol.for("react.suspense"),Un=Symbol.for("react.suspense_list"),eo=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),$o=Symbol.for("react.activity"),qo=Symbol.iterator,Jo={},bo={isMounted:function(){return!1},enqueueForceUpdate:function(o){s(o,"forceUpdate")},enqueueReplaceState:function(o){s(o,"replaceState")},enqueueSetState:function(o){s(o,"setState")}},Ko=Object.assign,ho={};Object.freeze(ho),e.prototype.isReactComponent={},e.prototype.setState=function(o,i){if(typeof o!=="object"&&typeof o!=="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,i,"setState")},e.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(W in N)N.hasOwnProperty(W)&&n(W,N[W]);d.prototype=e.prototype,N=u.prototype=new d,N.constructor=u,Ko(N,e.prototype),N.isPureReactComponent=!0;var jo=Array.isArray,Gn=Symbol.for("react.client.reference"),v={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},b=Object.prototype.hasOwnProperty,Vo=console.createTask?console.createTask:function(){return null};N={react_stack_bottom_frame:function(o){return o()}};var _o,co,So={},zn=N.react_stack_bottom_frame.bind(N,G)(),rn=Vo(f(G)),po=!1,lo=/\/+/g,yo=typeof reportError==="function"?reportError:function(o){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o==="object"&&o!==null&&typeof o.message==="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",o);return}console.error(o)},on=!1,K=null,j=0,V=!1,go=!1,nn=typeof queueMicrotask==="function"?function(o){queueMicrotask(function(){return queueMicrotask(o)})}:q;N=Object.freeze({__proto__:null,c:function(o){return M().useMemoCache(o)}});var W={map:$,forEach:function(o,i,h){$(o,function(){i.apply(this,arguments)},h)},count:function(o){var i=0;return $(o,function(){i++}),i},toArray:function(o){return $(o,function(i){return i})||[]},only:function(o){if(!F(o))throw Error("React.Children.only expected to receive a single React element child.");return o}};cn.Activity=$o,cn.Children=W,cn.Component=e,cn.Fragment=io,cn.Profiler=Zo,cn.PureComponent=u,cn.StrictMode=Xo,cn.Suspense=Io,cn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,cn.__COMPILER_RUNTIME=N,cn.act=function(o){var i=v.actQueue,h=j;j++;var g=v.actQueue=i!==null?i:[],x=!1;try{var k=o()}catch(m){v.thrownErrors.push(m)}if(0<v.thrownErrors.length)throw J(i,h),o=X(v.thrownErrors),v.thrownErrors.length=0,o;if(k!==null&&typeof k==="object"&&typeof k.then==="function"){var R=k;return nn(function(){x||V||(V=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(m,z){x=!0,R.then(function(Y){if(J(i,h),h===0){try{no(g),q(function(){return oo(Y,m,z)})}catch(Fn){v.thrownErrors.push(Fn)}if(0<v.thrownErrors.length){var Ln=X(v.thrownErrors);v.thrownErrors.length=0,z(Ln)}}else m(Y)},function(Y){J(i,h),0<v.thrownErrors.length?(Y=X(v.thrownErrors),v.thrownErrors.length=0,z(Y)):z(Y)})}}}var T=k;if(J(i,h),h===0&&(no(g),g.length!==0&&nn(function(){x||V||(V=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),v.actQueue=null),0<v.thrownErrors.length)throw o=X(v.thrownErrors),v.thrownErrors.length=0,o;return{then:function(m,z){x=!0,h===0?(v.actQueue=g,q(function(){return oo(T,m,z)})):m(T)}}},cn.cache=function(o){return function(){return o.apply(null,arguments)}},cn.cacheSignal=function(){return null},cn.captureOwnerStack=function(){var o=v.getCurrentStack;return o===null?null:o()},cn.cloneElement=function(o,i,h){if(o===null||o===void 0)throw Error("The argument must be a React element, but you passed "+o+".");var g=Ko({},o.props),x=o.key,k=o._owner;if(i!=null){var R;o:{if(b.call(i,"ref")&&(R=Object.getOwnPropertyDescriptor(i,"ref").get)&&R.isReactWarning){R=!1;break o}R=i.ref!==void 0}R&&(k=a()),I(i)&&(C(i.key),x=""+i.key);for(T in i)!b.call(i,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&i.ref===void 0||(g[T]=i[T])}var T=arguments.length-2;if(T===1)g.children=h;else if(1<T){R=Array(T);for(var m=0;m<T;m++)R[m]=arguments[m+2];g.children=R}g=l(o.type,x,g,k,o._debugStack,o._debugTask);for(x=2;x<arguments.length;x++)Ao(arguments[x]);return g},cn.createContext=function(o){return o={$$typeof:Wo,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:so,_context:o},o._currentRenderer=null,o._currentRenderer2=null,o},cn.createElement=function(o,i,h){for(var g=2;g<arguments.length;g++)Ao(arguments[g]);g={};var x=null;if(i!=null)for(m in co||!("__self"in i)||"key"in i||(co=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),I(i)&&(C(i.key),x=""+i.key),i)b.call(i,m)&&m!=="key"&&m!=="__self"&&m!=="__source"&&(g[m]=i[m]);var k=arguments.length-2;if(k===1)g.children=h;else if(1<k){for(var R=Array(k),T=0;T<k;T++)R[T]=arguments[T+2];Object.freeze&&Object.freeze(R),g.children=R}if(o&&o.defaultProps)for(m in k=o.defaultProps,k)g[m]===void 0&&(g[m]=k[m]);x&&Pn(g,typeof o==="function"?o.displayName||o.name||"Unknown":o);var m=1e4>v.recentlyCreatedOwnerStacks++;return l(o,x,g,a(),m?Error("react-stack-top-frame"):zn,m?Vo(f(o)):rn)},cn.createRef=function(){var o={current:null};return Object.seal(o),o},cn.forwardRef=function(o){o!=null&&o.$$typeof===eo?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof o!=="function"?console.error("forwardRef requires a render function but was given %s.",o===null?"null":typeof o):o.length!==0&&o.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",o.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),o!=null&&o.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var i={$$typeof:Eo,render:o},h;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return h},set:function(g){h=g,o.name||o.displayName||(Object.defineProperty(o,"name",{value:g}),o.displayName=g)}}),i},cn.isValidElement=F,cn.lazy=function(o){o={_status:-1,_result:o};var i={$$typeof:Z,_payload:o,_init:Nn},h={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return o._ioInfo=h,i._debugInfo=[{awaited:h}],i},cn.memo=function(o,i){o==null&&console.error("memo: The first argument must be a component. Instead received: %s",o===null?"null":typeof o),i={$$typeof:eo,type:o,compare:i===void 0?null:i};var h;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return h},set:function(g){h=g,o.name||o.displayName||(Object.defineProperty(o,"name",{value:g}),o.displayName=g)}}),i},cn.startTransition=function(o){var i=v.T,h={};h._updatedFibers=new Set,v.T=h;try{var g=o(),x=v.S;x!==null&&x(h,g),typeof g==="object"&&g!==null&&typeof g.then==="function"&&(v.asyncTransitions++,g.then(Yo,Yo),g.then(w,yo))}catch(k){yo(k)}finally{i===null&&h._updatedFibers&&(o=h._updatedFibers.size,h._updatedFibers.clear(),10<o&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),i!==null&&h.types!==null&&(i.types!==null&&i.types!==h.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),i.types=h.types),v.T=i}},cn.unstable_useCacheRefresh=function(){return M().useCacheRefresh()},cn.use=function(o){return M().use(o)},cn.useActionState=function(o,i,h){return M().useActionState(o,i,h)},cn.useCallback=function(o,i){return M().useCallback(o,i)},cn.useContext=function(o){var i=M();return o.$$typeof===so&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),i.useContext(o)},cn.useDebugValue=function(o,i){return M().useDebugValue(o,i)},cn.useDeferredValue=function(o,i){return M().useDeferredValue(o,i)},cn.useEffect=function(o,i){return o==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useEffect(o,i)},cn.useEffectEvent=function(o){return M().useEffectEvent(o)},cn.useId=function(){return M().useId()},cn.useImperativeHandle=function(o,i,h){return M().useImperativeHandle(o,i,h)},cn.useInsertionEffect=function(o,i){return o==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useInsertionEffect(o,i)},cn.useLayoutEffect=function(o,i){return o==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),M().useLayoutEffect(o,i)},cn.useMemo=function(o,i){return M().useMemo(o,i)},cn.useOptimistic=function(o,i){return M().useOptimistic(o,i)},cn.useReducer=function(o,i,h){return M().useReducer(o,i,h)},cn.useRef=function(o){return M().useRef(o)},cn.useState=function(o){return M().useState(o)},cn.useSyncExternalStore=function(o,i,h){return M().useSyncExternalStore(o,i,h)},cn.useTransition=function(){return M().useTransition()},cn.version="19.2.8",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var B=(globalThis.crypto??globalThis.crypto).subtle,E=new TextEncoder;function r(n){let t="";for(let s=0;s<n.length;s+=32768)t+=String.fromCharCode(...n.subarray(s,s+32768));return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function L(n){let t=n.replace(/-/g,"+").replace(/_/g,"/"),s=atob(t+"=".repeat((4-t.length%4)%4)),e=new Uint8Array(s.length);for(let d=0;d<s.length;d++)e[d]=s.charCodeAt(d);return e}function xo(...n){let t=n.reduce((d,u)=>d+u.length,0),s=new Uint8Array(t),e=0;for(let d of n)s.set(d,e),e+=d.length;return s}function wo(n,t){if(n.length!==t.length)return!1;let s=0;for(let e=0;e<n.length;e++)s|=n[e]^t[e];return s===0}function U(n){return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}async function bn(n){return new Uint8Array(await B.digest("SHA-256",U(n)))}async function tn(n){let t=await B.importKey("raw",U(E.encode(n)),"HKDF",!1,["deriveBits"]),s=await B.deriveBits({name:"HKDF",hash:"SHA-256",salt:E.encode("relay-e2e/v1/routing"),info:new Uint8Array(0)},t,128);return r(new Uint8Array(s))}async function Ro(){let n=await B.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveBits"]);return{privateKey:n.privateKey,publicKeyRaw:new Uint8Array(await B.exportKey("raw",n.publicKey))}}async function _(n,t,s,e){let d=await B.importKey("raw",U(n),"HKDF",!1,["deriveBits"]);return new Uint8Array(await B.deriveBits({name:"HKDF",hash:"SHA-256",salt:U(t),info:U(xo(E.encode(s),e))},d,256))}async function vo(n){let t=await B.importKey("raw",U(n.peerPublicKeyRaw),{name:"ECDH",namedCurve:"P-256"},!1,[]),s=new Uint8Array(await B.deriveBits({name:"ECDH",public:t},n.privateKey,256)),e=await bn(xo(E.encode("relay-e2e/v1"),n.initiatorPublicKeyRaw,n.responderPublicKeyRaw,n.initiatorNonce,n.responderNonce)),d=E.encode(n.code),[u,w,H,C]=await Promise.all([_(s,d,"c2s|",e),_(s,d,"s2c|",e),_(s,d,"confirm-r|",e),_(s,d,"confirm-i|",e)]);return{c2s:await B.importKey("raw",U(u),"AES-GCM",!1,["encrypt","decrypt"]),s2c:await B.importKey("raw",U(w),"AES-GCM",!1,["encrypt","decrypt"]),confirmResponder:H,confirmInitiator:C}}class Q{#o=0n;#n=null;#i;constructor(n){this.#i=n}async seal(n){let t=new Uint8Array(12);new DataView(t.buffer).setBigUint64(4,this.#o++);let s=new Uint8Array(await B.encrypt({name:"AES-GCM",iv:U(t)},this.#i,U(n)));return xo(t,s)}async open(n){if(n.length<12)throw Error("E2E frame too short");let t=n.subarray(0,12),s=n.subarray(12),e=new DataView(t.buffer,t.byteOffset+4,8).getBigUint64(0);if(this.#n!==null&&e<=this.#n)throw Error(`E2E replay detected (counter ${e} <= ${this.#n})`);return this.#n=e,new Uint8Array(await B.decrypt({name:"AES-GCM",iv:U(t)},this.#i,U(s)))}}class ko{#o;#n;#i;#t;#g;#d;#s=null;#u=crypto.getRandomValues(new Uint8Array(16));#h=null;#x=null;#w=null;#e="init";#m=[];#T=Promise.resolve();#R=Promise.resolve();#H=new TextEncoder;#M=new TextDecoder;constructor(n){this.#o=n.role,this.#n=n.code,this.#i=n.send,this.#t=n.onReady,this.#g=n.onFrame,this.#d=n.onError}async start(){if(this.#o!=="initiator")return;this.#s=await Ro(),this.#e="await-hi",this.#i(JSON.stringify({t:"hi",epk:r(this.#s.publicKeyRaw),n:r(this.#u)}))}isReady(){return this.#e==="ready"}sendFrame(n){if(this.#e==="failed")return Promise.resolve();if(this.#e!=="ready"||!this.#x)return this.#m.push(n),Promise.resolve();let t=this.#T.then(async()=>{if(this.#e==="failed"||!this.#x)throw Error("E2E session failed");let s=await this.#x.seal(this.#H.encode(JSON.stringify(n)));this.#i(s)});return this.#T=t.catch((s)=>this.#v(s instanceof Error?s.message:String(s))),t}onMessage(n){return this.#R=this.#R.then(()=>this.#P(n)).catch(()=>{}),this.#R}async#P(n){if(this.#e==="failed")return;try{if(typeof n==="string")await this.#C(JSON.parse(n));else{if(!this.#w)return;let t=await this.#w.open(n);this.#g(JSON.parse(this.#M.decode(t)))}}catch(t){this.#v(t instanceof Error?t.message:String(t))}}async#C(n){if(this.#o==="responder"&&n.t==="hi"&&this.#e==="init"){let t=L(String(n.epk)),s=L(String(n.n));this.#s=await Ro(),this.#h=await vo({privateKey:this.#s.privateKey,peerPublicKeyRaw:t,code:this.#n,initiatorPublicKeyRaw:t,responderPublicKeyRaw:this.#s.publicKeyRaw,initiatorNonce:s,responderNonce:this.#u}),this.#e="await-ok",this.#i(JSON.stringify({t:"hi",epk:r(this.#s.publicKeyRaw),n:r(this.#u),cr:r(this.#h.confirmResponder)}));return}if(this.#o==="initiator"&&n.t==="hi"&&this.#e==="await-hi"){let t=L(String(n.epk)),s=L(String(n.n));if(this.#h=await vo({privateKey:this.#s.privateKey,peerPublicKeyRaw:t,code:this.#n,initiatorPublicKeyRaw:this.#s.publicKeyRaw,responderPublicKeyRaw:t,initiatorNonce:this.#u,responderNonce:s}),!wo(L(String(n.cr)),this.#h.confirmResponder)){this.#i(JSON.stringify({t:"err",message:"auth-failed"})),this.#v("Handshake authentication failed (wrong code or man-in-the-middle)");return}this.#i(JSON.stringify({t:"ok",ci:r(this.#h.confirmInitiator)})),this.#x=new Q(this.#h.c2s),this.#w=new Q(this.#h.s2c),await this.#k();return}if(this.#o==="responder"&&n.t==="ok"&&this.#e==="await-ok"){if(!wo(L(String(n.ci)),this.#h.confirmInitiator)){this.#v("Handshake authentication failed (wrong code or man-in-the-middle)");return}this.#x=new Q(this.#h.s2c),this.#w=new Q(this.#h.c2s),await this.#k();return}if(n.t==="err")this.#v(`Peer rejected handshake: ${String(n.message||"unknown")}`)}async#k(){this.#e="ready",this.#t();let n=this.#m;this.#m=[];for(let t of n)await this.sendFrame(t)}#v(n){if(this.#e!=="failed")this.#e="failed",this.#d(n)}}function Kn(n,t){switch(n){case 1000:return"closed normally";case 1001:return"relay went away — server shutdown or redeploy";case 1006:return"socket died without a close frame — radio drop, network switch, or NAT idle timeout; reconnect";case 1011:return"agent disconnected — the desktop side went offline; retry once it is back";case 1015:return"TLS handshake failed — TLS-intercepting middlebox or wrong scheme";case 4404:return"no agent registered for this pairing — is the desktop agent running, and is the code right?"}if(n!==null&&n>=4000&&n<5000)return"relay policy rejection — see PROTOCOL.md §9";if(t)return`relay said: ${t}`;return"unexpected close — see PROTOCOL.md §9"}function jn(n){if(/timed out/i.test(n))return"relay unreachable or slow — check the server URL and network path";if(/authentication failed|auth-failed/i.test(n))return"handshake rejected — wrong pairing code";if(/Failed to open/i.test(n))return"could not open the WebSocket — bad server URL, blocked network, or TLS issue";if(/went silent/i.test(n))return"no frame for idleTimeoutMs — radio sleep or half-dead socket; reconnect and retry";if(/disconnected during pairing/i.test(n))return"close() or a newer connect() interrupted this attempt";if(/not connected/i.test(n))return"tunnel was already down";return"see PROTOCOL.md §9 and the relay's own logs (wrangler tail)"}class sn{status;headers;#o;constructor(n,t,s){this.status=n,this.headers=t,this.#o=s}text(){return new TextDecoder().decode(this.concat())}json(){return JSON.parse(this.text())}bytes(){return this.concat()}concat(){let n=0;for(let e of this.#o)n+=e.length;let t=new Uint8Array(n),s=0;for(let e of this.#o)t.set(e,s),s+=e.length;return t}}class en{#o;#n={open:new Set,message:new Set,close:new Set,error:new Set};onopen=null;onmessage=null;onclose=null;onerror=null;readyState=0;constructor(n){this.#o=n}#i(n,t){this.#n[n].forEach((s)=>s(t)),this["on"+n]?.(t)}addEventListener(n,t){this.#n[n].add(t)}removeEventListener(n,t){this.#n[n].delete(t)}send(n){if(this.readyState!==1)throw Error("tunnel ws not open");if(typeof n==="string")this.#o({t:"wmsg",id:this.#t,s:n});else this.#o({t:"wmsg",id:this.#t,b:mo(n)})}close(){if(this.readyState===2)return;this.readyState=2,this.#o({t:"wclose",id:this.#t,code:1000}),this.#i("close")}#t;_attach(n){this.#t=n}_opened(){if(this.readyState===1)return;this.readyState=1,this.#i("open")}_message(n){for(let t of this.#n.message)t(n);this.onmessage?.(n)}_error(n){this.readyState=2,this.#i("error",n)}_closed(){if(this.readyState===2)return;this.readyState=2,this.#i("close")}}function mo(n){let t="";for(let s=0;s<n.length;s+=32768)t+=String.fromCharCode(...n.subarray(s,s+32768));return btoa(t)}function Vn(n){try{return new URL(n).host}catch{return n}}function _n(n){if(n<1000)return`${n} ms`;if(n<60000)return`${(n/1000).toFixed(1)} s`;return`${(n/60000).toFixed(1)} min`}class To{#o;#n=null;#i=null;#t="idle";#g=new Map;#d=new Map;#s=[];#u=!1;#h=null;#x=null;#w=0;#e=0;#m=null;#T=null;constructor(n){this.#o=n}get state(){return this.#t}#R(n,t){this.#t=n,this.#o.onStateChange?.(n,t)}#H(n){if(!this.#o.quiet){if(n.type==="connect")console.log(`[RelayClient] connecting to ${Vn(n.server)}`);else if(n.type==="ready")console.log(`[RelayClient] tunnel ready (${n.ms} ms)`);else if(n.type==="disconnect"){if(!n.byUser){let t=n.lastedMs!=null?` after ${_n(n.lastedMs)}`:" before ready",s=n.error??`close ${n.code}`;console.warn(`[RelayClient] tunnel closed${t}: ${s} — ${n.hint}`)}}else if(!n.byUser)console.warn(`[RelayClient] tunnel failed: ${n.error} — ${n.hint}`)}try{this.#o.onDiag?.(n)}catch(t){console.warn("[RelayClient] onDiag threw:",t)}}async connect(){if(this.#t==="connecting"||this.#t==="ready")return this.ready();this.#u=!1,this.#R("connecting"),this.#m=Date.now(),this.#T=null,this.#H({type:"connect",server:this.#o.serverUrl});let n=++this.#e;this.#M();let t=this.#o.WebSocketImpl??globalThis.WebSocket,s=await tn(this.#o.code),e=new t(`${this.#o.serverUrl.replace(/\/+$/,"").replace(/^http/,"ws")}/c/${s}/__alma_e2e__`);e.binaryType="arraybuffer",this.#n=e,this.#h=setTimeout(()=>{this.#k("Encrypted relay connection timed out");try{e.close()}catch{}},this.#o.connectTimeoutMs??20000);let d=new ko({role:"initiator",code:this.#o.code,send:(u)=>e.send(u),onReady:()=>{if(this.#n!==e)return;clearTimeout(this.#h),this.#w=Date.now(),this.#T=Date.now(),this.#P(),this.#R("ready"),this.#H({type:"ready",ms:this.#m?Date.now()-this.#m:0});for(let u of this.#s)u.resolve();this.#s=[]},onFrame:(u)=>this.#a(u),onError:(u)=>this.#k(u)});if(this.#i=d,e.onopen=()=>void d.start(),e.onmessage=(u)=>{if(this.#n!==e)return;let w=u.data;if(typeof w==="string")d.onMessage(w);else if(w instanceof ArrayBuffer)d.onMessage(new Uint8Array(w));else if(ArrayBuffer.isView(w))d.onMessage(new Uint8Array(w.buffer,w.byteOffset,w.byteLength))},e.onclose=(u)=>{if(this.#n!==e)return;clearTimeout(this.#h);let w=`Relay tunnel closed (${u.code}${u.reason?` ${u.reason}`:""})`;this.#O(w,u.code,u.reason||null)},e.onerror=()=>{if(this.#n===e&&this.#t==="connecting")this.#k("Failed to open relay tunnel")},n!==this.#e)this.#k("Client disconnected during pairing");return this.ready()}ready(){if(this.#t==="ready")return Promise.resolve();if(this.#t==="error"||this.#t==="closed")return Promise.reject(Error("E2E tunnel not connected"));return new Promise((n,t)=>this.#s.push({resolve:n,reject:t}))}close(){this.#e++,this.#u=!0;try{this.#n?.close()}catch{}this.#M(),clearTimeout(this.#h),this.#C(),this.#v(Error("Tunnel closed"));for(let n of this.#s)n.reject(Error("Tunnel closed"));this.#s=[],this.#R("closed")}get lastFrameAt(){return this.#w}#M(){let n=this.#n;if(n)n.onmessage=null,n.onclose=null,n.onerror=null,n.onopen=null;this.#n=null,this.#i=null}#P(){this.#C(),this.#x=setInterval(()=>{if(!this.#g.size||Date.now()-this.#w<=(this.#o.idleTimeoutMs??45000))return;this.#k("Tunnel went silent with a request pending");try{this.#n?.close()}catch{}},2000)}#C(){if(this.#x)clearInterval(this.#x);this.#x=null}#k(n){this.#C();let t=this.#n;this.#M();try{t?.close()}catch{}this.#v(Error(n));for(let s of this.#s)s.reject(Error(n));this.#s=[],this.#R("error",n),this.#H({type:"failed",error:n,hint:jn(n),byUser:this.#u})}#v(n){for(let[,t]of this.#g)t.reject(n);this.#g.clear();for(let[,t]of this.#d)t._closed();this.#d.clear()}#O(n,t=null,s=null){this.#C(),this.#v(Error(n));for(let e of this.#s)e.reject(Error(n));this.#s=[],this.#R(this.#u?"closed":"error",n),this.#H({type:"disconnect",code:t,reason:s,error:n,hint:Kn(t,s),lastedMs:this.#T?Date.now()-this.#T:null,byUser:this.#u})}#D(n){this.#i?.sendFrame(n)}#a(n){if(this.#w=Date.now(),n.t==="hres"||n.t==="hchunk"||n.t==="hend"||n.t==="herr"){let t=this.#g.get(String(n.id));if(!t)return;if(n.t==="hres")t.status=n.status,t.headers=n.headers,t.onHeaders?.(n.status,n.headers);else if(n.t==="hchunk"){let s=atob(n.b),e=new Uint8Array(s.length);for(let d=0;d<s.length;d++)e[d]=s.charCodeAt(d);t.chunks.push(e),t.onChunk?.(e)}else if(n.t==="hend")this.#g.delete(String(n.id)),t.resolve(new sn(t.status??0,t.headers??{},t.chunks));else this.#g.delete(String(n.id)),t.reject(Error(n.message));return}if(n.t==="wopened"){this.#d.get(String(n.id))?._opened();return}if(n.t==="wmsg"){let t=this.#d.get(String(n.id));if(!t)return;if(typeof n.s==="string")t._message(n.s);else if(typeof n.b==="string"){let s=atob(n.b),e=new Uint8Array(s.length);for(let d=0;d<s.length;d++)e[d]=s.charCodeAt(d);t._message(e)}return}if(n.t==="wclose"){let t=this.#d.get(String(n.id));if(t)this.#d.delete(String(n.id)),t._closed();return}if(n.t==="werr"){let t=this.#d.get(String(n.id));if(t)this.#d.delete(String(n.id)),t._error(n.message)}}async fetch(n,t={}){if(await this.ready(),this.#t==="closed"||this.#t==="error")throw Error("Tunnel closed");let s=t.signal;if(s?.aborted)throw Error("aborted");let e=`h${Math.random().toString(36).slice(2)}`,d=(t.method??"GET").toUpperCase(),u;if(t.body!=null&&d!=="GET"&&d!=="HEAD")u=typeof t.body==="string"?mo(new TextEncoder().encode(t.body)):mo(t.body);let w=new Promise((H,C)=>{let D={resolve:H,reject:C,status:0,headers:{},chunks:[],onChunk:t.onChunk,onHeaders:t.onHeaders};if(s){let f=()=>{if(!this.#g.delete(e))return;this.#D({t:"hcancel",id:e}),D.reject(Error("aborted"))};s.addEventListener("abort",f,{once:!0});let a=(G)=>(I)=>{s.removeEventListener("abort",f),G(I)};D.resolve=a(H),D.reject=a(C)}this.#g.set(e,D)});return this.#D({t:"hreq",id:e,method:d,path:n,headers:t.headers??{},b:u}),w}async openSocket(n){if(await this.ready(),this.#t==="closed"||this.#t==="error")throw Error("Tunnel closed");let t=`w${Math.random().toString(36).slice(2)}`,s=new en((d)=>this.#D(d));this.#d.set(t,s),s._attach(t);let e=new Promise((d,u)=>{let w=setTimeout(()=>{this.#d.delete(t),s._closed(),u(Error("tunnel ws open timeout"))},15000);s.addEventListener("open",()=>{clearTimeout(w),d()}),s.addEventListener("error",(H)=>{clearTimeout(w),this.#d.delete(t),u(Error(String(H)))})});return this.#D({t:"wopen",id:t,path:n}),await e,s}}var Sn=In(hn(),1);function dn(n){let t=n,s=new Set;return{get:()=>t,set(e){if(Object.is(e,t))return;t=e;for(let d of s)d()},subscribe(e){return s.add(e),()=>s.delete(e)}}}var Ho={};O(Ho,{zh:()=>ln,en:()=>pn});var pn={artifact:{preview:"preview",source:"source",open:"[ open ]",loading:"Loading…",tooLarge:"Too large to preview ({size}); the source view reads it as text.",notPreviewable:"This file cannot be previewed.",gone:"The file is gone.",failed:"Could not read the file: {error}"}},ln={artifact:{preview:"预览",source:"源码",open:"[ 打开 ]",loading:"加载中…",tooLarge:"文件太大,无法预览({size});可在源码视图中按文本查看。",notPreviewable:"这个文件无法预览。",gone:"文件已不存在。",failed:"无法读取文件:{error}"}};var Co={};O(Co,{zh:()=>ot,en:()=>yn});var yn={compare:{title:"Compare attempts",menu:"Compare attempts",severalEngines:"[ compare engines ]",oneEngine:"[ one engine ]",needsPrompt:"Compare runs the prompt, so it needs one",empty:"No attempts left in this round.",noReply:"no reply yet",noChanges:"no changes",status:{working:"working",waiting:"waiting for you",error:"needs a look",done:"done",idle:"idle"},files:"files: {count}",attempts:"attempts: {count}",moreLines:"[ {count} more lines in the diff ]",kept:"kept",strip:"[ compare ]",stackLabel:"Stacked tasks",landBottom:"[ land bottom ]",landBottomPhone:"Land bottom",terminal:"[ terminal ]",diff:"[ diff ]",keep:"Keep this one",unkeep:"[ unkeep ]",keptToast:"kept {title}",unkeptToast:"no longer kept: {title}",keepFailed:"could not mark it kept: {error}",archiveTitle:"Archive the other attempts?",archiveBody:"Hides the other {count} from the rail and closes their sessions. Their worktrees and branches stay.",archiveConfirm:"Archive",archiveBusyTitle:"Some attempts are still working",archiveBusyBody:"Archive them anyway? They are stopped; their worktrees and branches stay.",archiveBusyConfirm:"Archive anyway",archived:"archived {count} attempts",archivedOne:"archived 1 attempt",archiveFailed:"could not archive: {error}"}},ot={compare:{title:"对比方案",menu:"对比方案",severalEngines:"[ 多引擎对比 ]",oneEngine:"[ 单引擎 ]",needsPrompt:"对比要运行提示词,请先写一个",empty:"这一轮没有剩下的方案。",noReply:"还没有回复",noChanges:"没有改动",status:{working:"运行中",waiting:"等你处理",error:"需要看一眼",done:"已完成",idle:"空闲"},files:"文件:{count}",attempts:"方案:{count}",moreLines:"[ diff 里还有 {count} 行 ]",kept:"已保留",strip:"[ 对比 ]",stackLabel:"堆叠任务",landBottom:"[ 合并底部 ]",landBottomPhone:"合并底部",terminal:"[ 终端 ]",diff:"[ diff ]",keep:"保留这个",unkeep:"[ 取消保留 ]",keptToast:"已保留 {title}",unkeptToast:"已取消保留:{title}",keepFailed:"无法标记保留:{error}",archiveTitle:"归档其他方案?",archiveBody:"把其余 {count} 个从侧栏收起,并结束它们的会话。worktree 和分支都保留。",archiveConfirm:"归档",archiveBusyTitle:"有方案还在运行",archiveBusyBody:"仍要归档吗?它们会被停掉,worktree 和分支都保留。",archiveBusyConfirm:"仍然归档",archived:"已归档 {count} 个方案",archivedOne:"已归档 1 个方案",archiveFailed:"无法归档:{error}"}};var Mo={};O(Mo,{zh:()=>tt,en:()=>nt});var nt={context:{used:"{percent} used",usedTokens:"{tokens} used",loading:"Reading context…",none:"No context reading for this conversation: its engine records none, or it has not answered yet.",failed:"Couldn't read context: {error}",probing:"Reading what fills it…",more:"+{count} more",part:{system:"System prompt & tools",system_prompt:"System prompt",system_tools:"System tools",mcp_tools:"MCP tools",mcp_instructions:"MCP server instructions",mcp_tools_deferred:"MCP tools (deferred)",system_tools_deferred:"System tools (deferred)",custom_agents:"Custom agents",memory_files:"Memory files",skills:"Skills",messages:"Messages",used:"Used",free:"Free space"}}},tt={context:{used:"已用 {percent}",usedTokens:"已用 {tokens}",loading:"正在读取上下文…",none:"这个会话没有上下文读数:它的引擎不记录,或者还没回复过。",failed:"读取上下文失败:{error}",probing:"正在读取构成…",more:"另有 {count} 项",part:{system:"系统提示与工具",system_prompt:"系统提示",system_tools:"系统工具",mcp_tools:"MCP 工具",mcp_instructions:"MCP 服务器说明",mcp_tools_deferred:"MCP 工具(按需加载)",system_tools_deferred:"系统工具(按需加载)",custom_agents:"自定义 agent",memory_files:"记忆文件",skills:"技能",messages:"消息",used:"已用",free:"剩余空间"}}};var Do={};O(Do,{zh:()=>st,en:()=>it});var it={dialog:{cancel:"Cancel",save:"Save",close:"Close"},crash:{title:"This page hit an error. Copy the report below before reloading.",copy:"Copy report",copied:"Copied",reload:"Reload"},updatePrompt:{title:"Rove {version} is available",body:"This computer runs {current}. Update installs the new version on it.",yes:"Update",later:"Not now",skip:"Skip this version"},whatsNew:{title:"What's new",continue:"Continue",openRelease:"Open release notes",keys:"q / esc"},menu:{cancel:"Cancel",closeTab:"Close tab",newChat:"New conversation",newChatPick:"New conversation with…",retryEdit:"Retry with edited prompt…",retryNoPrompt:"This task has no stored prompt",startNow:"Start now",cancelStart:"Cancel scheduled start",continueEngine:"Continue in another engine…",newShell:"New shell",newChatNoFolder:"New conversation (no folder)",renameTab:"Rename tab",splitRight:"Split right",splitDown:"Split down",renamePane:"Rename pane",closePane:"Close pane",newTask:"New task",rename:"Rename",pin:"Pin",unpin:"Unpin",setStatus:"Set status",copy:"Copy",copyWhat:{id:"Task ID",branch:"Branch name",path:"Worktree path"},renameBranch:"Rename branch",changeEngine:"Change engine",land:"Land into base branch",delete:"Delete",removeSession:"Remove session",archiveMany:"Archive {count} sessions",archivedMany:"Archived {count} sessions",archiveManyBusy:"These are still working or waiting on you:",removeMany:"Remove {count} sessions",removedMany:"Removed {count} sessions",removeManyTitle:"Remove {count} sessions?",removeManyBody:"Ends each session, closes its tabs and removes its worktree folder. Git branches stay; a child moves up to its parent's place.",removeManyDirtyTitle:"Some worktrees have uncommitted changes",removeManyDirtyBody:"Removing them anyway loses those changes:",viewSessions:"View all sessions",more:"More",copied:"copied {text}",copyFailed:"the browser refused the clipboard",nothingToCopy:"this task has no {what} yet",what:{id:"id",branch:"branch",path:"worktree path"}},confirm:{closeTabTitle:'Close "{tab}"?',closeTabBody:"Stops the session in this tab. The task and its worktree stay.",closePaneTitle:'Close "{pane}"?',closePaneBody:"The engine session in this pane ends. The tab's other panes stay.",delete:"delete",forceDelete:"force delete"},newTask:{title:"new task",repo:"project",engine:"engine",notReady:"not installed or not signed in",taskTitle:"title",titlePlaceholder:"optional; derived from the prompt otherwise",prompt:"first message",promptPlaceholder:"optional; ⌘↵ creates",create:"create",needRepo:"pick a project first"},newChat:{title:"new conversation",prompt:"first message",start:"start",promptPlaceholder:"optional; empty opens the engine without a message"},newSession:{title:"New session",tagline:"Pick a project and a model, then describe the task. The session starts with your first message.",placeholder:"Describe a task or ask a question",start:"Start session",later:"Start later…",laterConfirm:"Start later",laterPlaceholder:"22:30 · tomorrow 9:00 · +30m",laterBad:"That is not a time ahead. Try 22:30, tomorrow 9:00 or +2h.",laterSet:"Starts at {time}. Until then it waits under Routines, where you can cancel it.",retryArchiveTitle:'Archive "{title}"?',retryArchiveBody:"The retry has started. Archive the original? Its session is closed; nothing is deleted.",needRepo:"Pick a project first",needPrompt:"Describe the task first",repo:"Project",repoSearch:"Search projects or type a path",repoEmpty:"No matching project",noFolder:"No folder",chooseFolder:"Choose folder",openFolder:"+ Open folder…",openFolderHeading:"Open folder",folderFilter:"Paste a path or filter folders…",folderUse:'Use "{name}"',folderBack:"← Back",folderParent:"parent",folderGit:"git",folderEmpty:"No subfolders",folderHint:"← up · → open · enter select · esc back",cloneRow:"Clone {source}",cloning:"Cloning {source}",githubGroup:"Your GitHub repositories",githubLoading:"Reading your GitHub repositories…",branch:"Branch",branchSearch:"Search branches",branches:"Branches",branchName:"Branch name, shared by every repo",branchNamePlaceholder:"derived from the prompt",primary:"primary",repoCount:"{count} repos: the first is the primary",branchEmpty:"No matching branch",model:"Model",modelHeading:"Model for this session",engine:"Engine",shell:"Shell",shellPlaceholder:"A command to run first, or leave empty for a plain terminal",shellOneLine:"A shell command is one line",modelDefault:"Default",more:"More",attach:"Attach",attachHint:"Add files to the first message; you can also paste or drop them on the prompt",removeAttachment:"Remove {name}",worktree:"Worktree",worktreeOn:"Runs in its own worktree and branch. Click to run in the project's checkout instead",worktreeOff:"Runs in the project's checkout as it is, on its current branch. Click for a worktree",worktreeMulti:"A task across several repos always gets a worktree in each",worktreeNoGit:"Not a git repository: the session runs in the folder itself",worktreeRemoteRequired:"An agent running on that machine, or a repo it still has to clone, always gets a worktree",plainMulti:"A folder without git can't join a task across several repos",machine:"Machine",thisMachine:"This machine",machineAuto:"Auto",machineAutoNote:"Starts on the least busy machine that has this project.",startedOn:"Started on {machine}",retry:"Retry",agentPlace:"Agent runs on",agentHereNote:"Uses this machine's engines and sign-in. Only the files and commands are on {machine}.",agentThereNote:"The engine runs on {machine}, so it must be installed and signed in there.",cloneRowOn:"Clone {source} on {machine}",cloningOn:"Cloning {source} on {machine}",startingOn:"Starting the task on {machine}",engineMissing:"{engine} · not installed",engineMissingOn:"{engine} is not installed on {machine}. Install it there, or pick another engine.",repoSearchRemote:"Search or type owner/repo",remoteOffline:"{machine} is offline",remoteOutdated:"{machine} runs a Rove too old to list its projects",remoteFailed:"Could not read {machine}'s projects: {message}",remoteNone:"{machine} has no projects yet. Type owner/repo to clone one there",remoteLoading:"Reading {machine}'s projects…",branchTypeRef:"Type a branch or ref to start from",branchRemoteDefault:"Its current branch"},sessions:{title:"Sessions",active:"Active",archived:"Archived",allProjects:"all projects",emptyActive:"No sessions here. Start one from New task.",emptyArchived:"Nothing archived here. Archive a session from its row menu.",keys:"tab project · a archived · enter open · q close"},search:{tasks:"Tasks",archived:"{repo} · archived, pick to unarchive",commands:"Commands",inConversations:"In conversations",searching:"searching…",none:"Nothing said matches “{query}”.",you:"you",agent:"agent",truncated:"Stopped early to stay fast; add a word to narrow it.",skipped:"{count} task(s) not searched: another machine's, or an engine Rove cannot read."},taskops:{publishTitle:"publish to the remote",publishBody:"{branch} lives on {host}. Push it from there and open a pull request?",publishButton:"push & open PR",publishedPr:"pushed {branch} — PR {url}",publishedNoPr:"pushed {branch}, but no PR: {reason}",set:"set",retire:"delete",close:"close",moveHint:"j/k move · enter or esc done",fixSent:"asked the agent to fix the failing checks",forkNeedsMessage:"a message is required to fork a task",forkLeftBehind:"Started from the last commit — uncommitted work stays in the original task ({reason})",forkBranch:"fork from branch",openedExternal:"opened in the Mac's app"}},st={dialog:{cancel:"取消",save:"保存",close:"关闭"},crash:{title:"页面出错了。刷新前先把下面的报告复制下来。",copy:"复制报告",copied:"已复制",reload:"刷新"},updatePrompt:{title:"Rove {version} 可以更新了",body:"这台电脑运行的是 {current}。点更新会在它上面安装新版本。",yes:"更新",later:"暂不",skip:"跳过这个版本"},whatsNew:{title:"更新内容",continue:"继续",openRelease:"打开发布说明",keys:"q / esc"},menu:{cancel:"取消",closeTab:"关闭该标签页",newChat:"新建会话",newChatPick:"选择引擎新建会话…",retryEdit:"改提示词后重试…",retryNoPrompt:"这个任务没有保存的提示词",startNow:"立即启动",cancelStart:"取消定时启动",continueEngine:"换个引擎继续…",newShell:"新建终端",newChatNoFolder:"新建会话(无文件夹)",renameTab:"重命名标签页",splitRight:"向右分屏",splitDown:"向下分屏",renamePane:"重命名分屏",closePane:"关闭分屏",newTask:"新建任务",rename:"重命名",pin:"置顶",unpin:"取消置顶",setStatus:"设置状态",copy:"复制",copyWhat:{id:"任务 ID",branch:"分支名",path:"worktree 路径"},renameBranch:"重命名分支",changeEngine:"切换引擎",land:"合入基础分支",delete:"删除",removeSession:"移除会话",archiveMany:"归档 {count} 个会话",archivedMany:"已归档 {count} 个会话",archiveManyBusy:"这些会话还在运行或在等你:",removeMany:"移除 {count} 个会话",removedMany:"已移除 {count} 个会话",removeManyTitle:"移除 {count} 个会话?",removeManyBody:"结束每个会话,关闭它的标签页,并删除它的 worktree 文件夹。git 分支会保留;子会话会上移到父会话的位置。",removeManyDirtyTitle:"有些 worktree 还有未提交的改动",removeManyDirtyBody:"仍然移除会丢掉这些改动:",viewSessions:"查看全部会话",more:"更多",copied:"已复制 {text}",copyFailed:"浏览器拒绝了剪贴板访问",nothingToCopy:"这个任务还没有{what}",what:{id:"ID",branch:"分支",path:"worktree 路径"}},confirm:{closeTabTitle:"关闭「{tab}」?",closeTabBody:"停止这个标签里的会话。任务和它的 worktree 会保留。",closePaneTitle:"关闭「{pane}」?",closePaneBody:"这个分屏里的引擎会话会结束。标签里的其他分屏会保留。",delete:"删除",forceDelete:"强制删除"},newTask:{title:"新建任务",repo:"项目",engine:"引擎",notReady:"未安装或未登录",taskTitle:"标题",titlePlaceholder:"可选;不填就从第一条消息生成",prompt:"第一条消息",promptPlaceholder:"可选;⌘↵ 创建",create:"创建",needRepo:"先选一个项目"},newChat:{title:"新建会话",prompt:"第一条消息",start:"开始",promptPlaceholder:"可选;留空则直接打开引擎,不发消息"},newSession:{title:"新会话",tagline:"选好项目和模型,再描述任务。会话从你的第一条消息开始。",placeholder:"描述一个任务,或提个问题",start:"开始会话",later:"稍后启动…",laterConfirm:"稍后启动",laterPlaceholder:"22:30 · 明天 9:00 · +30m",laterBad:"这不是一个未来的时间。试试 22:30、明天 9:00 或 +2h。",laterSet:"{time} 启动。在那之前它列在「例行任务」里,可以在那里取消。",retryArchiveTitle:"归档「{title}」?",retryArchiveBody:"重试已经开始。要把原来的会话归档吗?它的进程会结束,不会删除任何东西。",needRepo:"先选一个项目",needPrompt:"先描述一下任务",repo:"项目",repoSearch:"搜索项目,或输入路径",repoEmpty:"没有匹配的项目",noFolder:"无文件夹",chooseFolder:"选择文件夹",openFolder:"+ 打开文件夹…",openFolderHeading:"打开文件夹",folderFilter:"粘贴路径或过滤文件夹…",folderUse:"使用「{name}」",folderBack:"← 返回",folderParent:"上级目录",folderGit:"git",folderEmpty:"没有子文件夹",folderHint:"← 上一级 · → 进入 · enter 选定 · esc 返回",cloneRow:"克隆 {source}",cloning:"正在克隆 {source}",githubGroup:"你的 GitHub 仓库",githubLoading:"正在读取你的 GitHub 仓库…",branch:"分支",branchSearch:"搜索分支",branches:"分支",branchName:"分支名,所有仓库共用",branchNamePlaceholder:"不填就从提示词生成",primary:"主仓库",repoCount:"{count} 个仓库,第一个是主仓库",branchEmpty:"没有匹配的分支",model:"模型",modelHeading:"本次会话的模型",engine:"引擎",shell:"Shell",shellPlaceholder:"先运行的命令,留空就只开一个终端",shellOneLine:"Shell 命令只能写一行",modelDefault:"默认",more:"更多",attach:"附件",attachHint:"给第一条消息加文件;也可以直接粘贴或拖到输入框里",removeAttachment:"移除 {name}",worktree:"Worktree",worktreeOn:"在独立的 worktree 和分支里运行。点击改为直接在项目目录里运行",worktreeOff:"直接在项目目录里运行,用它当前的分支。点击改为独立 worktree",worktreeMulti:"跨多个仓库的任务每个仓库都会有 worktree",worktreeNoGit:"不是 git 仓库:会话直接在这个文件夹里运行",worktreeRemoteRequired:"agent 跑在那台机器上,或仓库还要先克隆时,总会建 worktree",plainMulti:"没有 git 的文件夹不能加入跨多个仓库的任务",machine:"机器",thisMachine:"本机",machineAuto:"自动",machineAutoNote:"在有这个项目、且最空闲的机器上启动。",startedOn:"已在 {machine} 上启动",retry:"重试",agentPlace:"agent 运行在",agentHereNote:"用本机的引擎和登录,只有文件和命令在 {machine} 上。",agentThereNote:"引擎在 {machine} 上运行,那边要装好并登录。",cloneRowOn:"在 {machine} 上克隆 {source}",cloningOn:"正在 {machine} 上克隆 {source}",startingOn:"正在 {machine} 上启动任务",engineMissing:"{engine} · 未安装",engineMissingOn:"{machine} 上没有安装 {engine}。在那台机器上装好,或者换一个引擎。",repoSearchRemote:"搜索,或输入 owner/repo",remoteOffline:"{machine} 已离线",remoteOutdated:"{machine} 上的 Rove 太旧,列不出它的项目",remoteFailed:"读不到 {machine} 上的项目:{message}",remoteNone:"{machine} 上还没有项目。输入 owner/repo 就能在那里克隆",remoteLoading:"正在读取 {machine} 上的项目…",branchTypeRef:"输入要基于的分支或 ref",branchRemoteDefault:"它当前的分支"},sessions:{title:"会话",active:"进行中",archived:"已归档",allProjects:"全部项目",emptyActive:"这里还没有会话。从「新建任务」开始一个。",emptyArchived:"这里没有已归档的会话。在会话的右键菜单里归档。",keys:"tab 切换项目 · a 已归档 · enter 打开 · q 关闭"},search:{tasks:"任务",archived:"{repo} · 已归档,选中即恢复",commands:"命令",inConversations:"在对话里",searching:"搜索中…",none:"没有说过「{query}」。",you:"你",agent:"agent",truncated:"为了快提前停了;多加一个词缩小范围。",skipped:"有 {count} 个任务没搜:在别的机器上,或 Rove 读不了它的引擎记录。"},taskops:{publishTitle:"推送到远端",publishBody:"{branch} 在 {host} 上。要从那台机器推送它并开一个 PR 吗?",publishButton:"推送并开 PR",publishedPr:"已推送 {branch} — PR {url}",publishedNoPr:"已推送 {branch},但没开成 PR:{reason}",set:"设置",retire:"删除",close:"关闭",moveHint:"j/k 移动 · enter 或 esc 完成",fixSent:"已请 agent 修复失败的检查",forkNeedsMessage:"fork 任务需要填写消息",forkLeftBehind:"已从最近一次提交开始——未提交的改动留在原任务里({reason})",forkBranch:"基于分支",openedExternal:"已在 Mac 上用系统应用打开"}};var Po={};O(Po,{zh:()=>ht,en:()=>et});var et={machines:{title:"Machines",open:"[ machines ]",none:"No other machines registered. Add one with `rove machine add`.",newHere:"[ new task here ]",tasks:"[ tasks ]",repos:"[ repos ]",hide:"[ hide ]",noTasks:"no tasks",noRepos:"no repos",loading:"…",reposFailed:"couldn't read its repos: {message}",update:"[ update rove ]",updating:"updating… this can take a few minutes",updated:"updated: v{from} → v{to}",upToDate:"already on the newest build of this machine's channel (v{to})",updateFailed:"couldn't update it: {message}",reason:{refused:"ssh was refused (nothing is listening or a firewall is in the way)",timeout:"ssh timed out","host-key-changed":"its ssh host key changed; check it, then update known_hosts","host-key-unverified":"its ssh host key is not known yet; connect once by hand to trust it","auth-denied":"ssh refused the login (no key or password accepted)",unresolved:"its hostname does not resolve","ssh-failed":"ssh failed","no-rove":"rove is not installed there","no-daemon":"its rove daemon is not running","bad-status":"it answered with something rove could not read",handshake:"the link came up but the handshake failed","no-forwarding":"ssh forwarding is disabled there",lost:"the link dropped; reconnecting"}}},ht={machines:{title:"机器",open:"[ 机器 ]",none:"没有注册其他机器。用 `rove machine add` 添加。",newHere:"[ 在这台新建任务 ]",tasks:"[ 任务 ]",repos:"[ 仓库 ]",hide:"[ 收起 ]",noTasks:"没有任务",noRepos:"没有仓库",loading:"…",reposFailed:"读不到它的仓库:{message}",update:"[ 更新 rove ]",updating:"正在更新…可能要几分钟",updated:"已更新:v{from} → v{to}",upToDate:"已经是这台机器所在通道的最新版(v{to})",updateFailed:"更新失败:{message}",reason:{refused:"ssh 被拒绝(没有进程在监听,或被防火墙挡住)",timeout:"ssh 超时","host-key-changed":"它的 ssh 主机密钥变了;确认无误后更新 known_hosts","host-key-unverified":"还不认识它的 ssh 主机密钥;先手动连一次以信任它","auth-denied":"ssh 拒绝了登录(没有被接受的密钥或密码)",unresolved:"它的主机名解析不了","ssh-failed":"ssh 失败","no-rove":"那里没有安装 rove","no-daemon":"它的 rove 守护进程没在运行","bad-status":"它返回了 rove 读不懂的内容",handshake:"链路通了但握手失败","no-forwarding":"那里禁用了 ssh 端口转发",lost:"链路断了;正在重连"}}};var Oo={};O(Oo,{zh:()=>gt,en:()=>dt});var dt={files:{autoFix:{on:"[ auto-fix CI ]",off:"[ turn off ]",count:"auto-fix {n}/{max}",stopped:"auto-fix stopped {n}/{max}",hint:"When checks fail on a new push and the agent is idle, send it the failing logs. At most once per push, 3 times in all, then it stops and tells your Inbox."},stripCreate:"[ create PR ]",stripFixCi:"[ fix CI ]",stripConflicts:"[ resolve conflicts ]",stripComments:"[ address comments ]",stripArchive:"[ archive ]",stripFilled:"prompt is in the input; edit it and press Enter",stripNoEngine:"No engine session open in this task — nowhere to put the prompt.",stripUnavailable:"couldn't read the PR's checks: {detail}",stripNothing:"nothing to ask the agent about right now",openPort:"[ open :{port} ]",checks:{title:"checks",summary:"{pass}/{total} passed",failed:"{count} failed",running:"{count} running",none:"no checks",refresh:"[ refresh ]",loading:"…",unavailable:"couldn't read the PR: {detail}",log:"[ log ]",hideLog:"[ hide ]",noLog:"no log excerpt for this job",logUnavailable:"couldn't read the log: {detail}",more:"{count} more not shown",took:"{duration}",tookAgo:"{duration} · {age} ago",finishedAgo:"{age} ago",runningFor:"running {elapsed}"},merge:{draft:"draft",conflicts:"conflicts",behind:"behind base",unstable:"checks not passing",blocked:"blocked",clean:"mergeable",approved:"approved",changes:"changes requested",reviewRequired:"review required"},stripCommit:"[ commit ]",prRequested:"asked the agent to create the PR",remoteNoExternal:"this file is on {host}; open it there",mentionNoEngine:"No engine session open in this task — nothing to mention into.",menu:{attach:"Attach as context",diff:"Open diff",copy:"Copy",copyRelative:"Relative path",copyAbsolute:"Absolute path",copyName:"Filename",openExternal:"Open in the Mac's app",reveal:"Show in Finder",terminal:"Open in terminal"},landTodos:"{count} todo(s) on this task are still unchecked.",emptyAll:"(empty worktree)",truncated:"Only the first {count} files are listed.",state:{conflict:"conflict",deleted:"deleted",modified:"modified",untracked:"untracked",added:"added",renamed:"renamed"}},preview:{loading:"loading…",whole:"whole worktree",unknown:"nothing to show",binary:"binary file — not shown as text",empty:"no changes",noHunks:"no text changes ({kind})",modeFile:"[ file ]",modeDiff:"[ diff ]",askInChat:"ask in chat",askInChatHint:"Put the selected lines in the engine's prompt",sent:"sent {count} notes to the engine",sentOne:"sent 1 note to the engine",notSent:"notes not sent: {reason}"},review:{comment:"comment",range:"range",count:"{count} comments",countOne:"1 comment",send:"send {count}",sending:"sending…",edit:"edit",drop:"drop",moved:"moved",movedHint:"The code under this comment changed since it was written.",show:"Show in the diff",noteOn:"note on {location}",noteEditOn:"edit note on {location}",noteAdd:"[ add note ]",noteSave:"[ save note ]",noteCancel:"[ cancel ]",fold:"Fold {path}",unfold:"Unfold {path}",foldAll:"fold all",unfoldAll:"unfold all",ignoreWs:"[ ws ]",ignoreWsHint:"Hide whitespace-only changes (git diff -w)",viewed:"[ viewed ]",markViewed:"Mark {path} viewed",viewedOn:"[x] viewed",unmarkViewed:"Unmark {path} viewed",totals:"{files} files · +{added} −{removed}",totalsOne:"1 file · +{added} −{removed}",viewedCount:"{done}/{files} viewed",nextFile:"[ next file ]",nextComment:"[ next comment ]",scopeMenu:"{base} → {scope} ▾",compareAgainst:"Compare against {base}…",baseDefault:"task base",baseBranch:"branch",baseRemote:"remote",baseTag:"tag",basePlaceholder:"branch, tag or commit",shape:{effort:"effort {n}/5",lockfile:"{count} lockfile",lockfiles:"{count} lockfiles",generated:"{count} generated",tests:"{count} tests",config:"{count} config",docs:"{count} docs",source:"{count} source"},scopeWorking:"Uncommitted changes",scopeBranch:"Committed changes",scopeTask:"All changes",lineClipped:"… {count} more characters",notSupported:"This bridge is older than the page and can't do that; restart it."},panel:{tabs:"Browser tabs",files:"Files",chat:"Chat",diff:"Diff",browser:"Browser",quota:"Context",resize:"Drag to resize the panel, double-click to reset",new:"New tab",close:"Close",expand:"Expand the side panel",restore:"Restore the side panel size",closeOthers:"Close others",resizeSplit:"Drag to resize, double-click to reset the widths"},browser:{address:"Address",placeholder:"https://… or localhost:3000",back:"Back",forward:"Forward",reload:"Reload",openTab:"Open in a new tab",invalid:"That is not a web address; only http and https pages open here.",outside:"Only files inside this task's directory open here.",empty:"Enter a web address, or a local dev server.",emptyPorts:"Enter a web address. A dev server started in this task is listed here.",noFrame:"Only https pages open here; this address uses plain http. Use ↗ to open it in a new tab.",self:"That address is Rove itself, which can't be framed. Use ↗ to open it in a new tab.",refuses:"{host} doesn't allow being shown inside another page.",unreachable:"{host} can't be reached from here.",remote:"{host} runs on the Rove machine, not on this one.",annotate:"Mark up this page",pen:"Pen",box:"Box",text:"Text",undo:"Undo the last mark",addToChat:"Add to chat",annotateDone:"Stop marking",noEngine:"Open an agent session in this task first; the picture goes into its prompt.",captureFailed:"Couldn't take a picture of the page: {error}",handToAgent:"Hand to agent",takeControl:"Agent · Take control",handedToAgent:"Handed {id} to agent",handedToHuman:"Took control of {id}"}},gt={files:{autoFix:{on:"[ 自动修复 CI ]",off:"[ 关闭 ]",count:"自动修复 {n}/{max}",stopped:"自动修复已停止 {n}/{max}",hint:"检查在新提交上失败且代理空闲时,自动把失败日志发给它。每次提交最多一次、总共 3 次,之后停止并通知收件箱。"},stripCreate:"[ 创建 PR ]",stripFixCi:"[ 修复 CI ]",stripConflicts:"[ 解决冲突 ]",stripComments:"[ 处理评论 ]",stripArchive:"[ 归档 ]",stripFilled:"提示词已放进输入框,修改后按 Enter 发送",stripNoEngine:"这个任务没有打开的引擎会话,提示词无处可放。",stripUnavailable:"读不到 PR 的检查结果:{detail}",stripNothing:"现在没有需要让代理处理的事",openPort:"[ 打开 :{port} ]",checks:{title:"检查",summary:"{pass}/{total} 通过",failed:"{count} 个失败",running:"{count} 个进行中",none:"没有检查",refresh:"[ 刷新 ]",loading:"…",unavailable:"读不到这个 PR:{detail}",log:"[ 日志 ]",hideLog:"[ 收起 ]",noLog:"这个作业没有日志摘录",logUnavailable:"读不到日志:{detail}",more:"还有 {count} 个未显示",took:"{duration}",tookAgo:"{duration} · {age}前",finishedAgo:"{age}前",runningFor:"已运行 {elapsed}"},merge:{draft:"草稿",conflicts:"有冲突",behind:"落后于基线",unstable:"检查未通过",blocked:"被阻塞",clean:"可合并",approved:"已批准",changes:"要求修改",reviewRequired:"需要评审"},stripCommit:"[ 提交 ]",prRequested:"已让代理去创建 PR",remoteNoExternal:"这个文件在 {host} 上,请到那台机器上打开",mentionNoEngine:"这个任务没有打开的引擎会话——没有地方可以提及。",menu:{attach:"作为上下文附加",diff:"打开 diff",copy:"复制",copyRelative:"相对路径",copyAbsolute:"绝对路径",copyName:"文件名",openExternal:"用 Mac 上的应用打开",reveal:"在 Finder 中显示",terminal:"在终端中打开"},landTodos:"此任务还有 {count} 条待办未完成。",emptyAll:"(空工作区)",truncated:"只列出了前 {count} 个文件。",state:{conflict:"有冲突",deleted:"已删除",modified:"已修改",untracked:"未跟踪",added:"已新增",renamed:"已重命名"}},preview:{loading:"加载中…",whole:"整个工作区",unknown:"没有可显示的内容",binary:"二进制文件——不以文本显示",empty:"没有变更",noHunks:"没有文本变更({kind})",modeFile:"[ 文件 ]",modeDiff:"[ 差异 ]",askInChat:"在对话里问",askInChatHint:"把选中的几行放进引擎的输入框",sent:"已把 {count} 条批注发给引擎",sentOne:"已把 1 条批注发给引擎",notSent:"批注没有发出:{reason}"},review:{comment:"批注",range:"选范围",count:"{count} 条批注",countOne:"1 条批注",send:"发送 {count} 条",sending:"发送中…",edit:"编辑",drop:"删除",moved:"已移位",movedHint:"这条批注下面的代码在写下之后变了。",show:"在差异里定位",noteOn:"批注 {location}",noteEditOn:"编辑批注 {location}",noteAdd:"[ 添加批注 ]",noteSave:"[ 保存批注 ]",noteCancel:"[ 取消 ]",fold:"折叠 {path}",unfold:"展开 {path}",foldAll:"全部折叠",unfoldAll:"全部展开",ignoreWs:"[ ws ]",ignoreWsHint:"隐藏仅空白的改动 (git diff -w)",viewed:"[ 已看 ]",markViewed:"标记 {path} 为已看",viewedOn:"[x] 已看",unmarkViewed:"取消 {path} 的已看",totals:"{files} 个文件 · +{added} −{removed}",totalsOne:"1 个文件 · +{added} −{removed}",viewedCount:"已看 {done}/{files}",nextFile:"[ 下个文件 ]",nextComment:"[ 下条评论 ]",scopeMenu:"{base} → {scope} ▾",compareAgainst:"对比基准:{base}…",baseDefault:"任务基准",baseBranch:"分支",baseRemote:"远程",baseTag:"标签",basePlaceholder:"分支、标签或提交",shape:{effort:"评审量 {n}/5",lockfile:"{count} 个锁文件",lockfiles:"{count} 个锁文件",generated:"{count} 个生成文件",tests:"{count} 个测试",config:"{count} 个配置",docs:"{count} 个文档",source:"{count} 个源码"},scopeWorking:"未提交的改动",scopeBranch:"已提交的改动",scopeTask:"全部改动",lineClipped:"…还有 {count} 个字符",notSupported:"这个 bridge 比页面旧,做不了这个;请重启它。"},panel:{tabs:"浏览器标签页",files:"文件",chat:"对话",diff:"差异",browser:"浏览器",quota:"上下文",resize:"拖动调整侧边栏宽度,双击复位",new:"新建标签页",close:"关闭",expand:"展开侧边栏",restore:"还原侧边栏大小",closeOthers:"关闭其他",resizeSplit:"拖动调整宽度,双击恢复默认宽度"},browser:{address:"地址",placeholder:"https://… 或 localhost:3000",back:"后退",forward:"前进",reload:"刷新",openTab:"在新标签页打开",invalid:"这不是网页地址;这里只能打开 http 和 https 页面。",outside:"这里只能打开这个任务目录里的文件。",empty:"输入网页地址,或本地开发服务器的地址。",emptyPorts:"输入网页地址。在这个任务里启动的开发服务器会列在这里。",noFrame:"这里只能打开 https 页面;这个地址用的是 http。点 ↗ 在新标签页打开。",self:"这个地址就是 Rove 本身,不能嵌入。点 ↗ 在新标签页打开。",refuses:"{host} 不允许嵌入其他页面。",unreachable:"从这里访问不到 {host}。",remote:"{host} 运行在 Rove 所在的机器上,不在这台设备上。",annotate:"在页面上标注",pen:"画笔",box:"方框",text:"文字",undo:"撤销上一笔",addToChat:"加到对话",annotateDone:"结束标注",noEngine:"先在这个任务里打开一个 agent 会话;截图会进它的输入框。",captureFailed:"没能截下这个页面:{error}",handToAgent:"交给代理",takeControl:"代理控制中 · 接管",handedToAgent:"已将 {id} 交给代理",handedToHuman:"已接管 {id}"}};var ao={};O(ao,{zh:()=>xt,en:()=>ut});var ut={quote:{action:"[ quote ]",title:"Put the selection in the prompt as a quote",atMenu:"The agent is waiting on a choice. Answer it first, then quote.",notReady:"The agent's prompt is not taking pasted text yet. Try again in a moment."},snippets:{empty:"No snippets yet.",name:"Name",namePlaceholder:"review",text:"Text",textPlaceholder:"Review this change for bugs and missing tests.",add:"[ add ]",save:"[ save ]",edit:"[ edit ]",cancel:"[ cancel ]",remove:"[ remove ]",removed:"Removed @{name}",badName:"A name is letters, digits, - or _, up to 32.",phone:{add:"Add snippet",save:"Save",cancel:"Cancel",remove:"Delete snippet"}}},xt={quote:{action:"[ 引用 ]",title:"把选中的内容作为引用放进提示词",atMenu:"agent 正在等你做选择。先回答它,再引用。",notReady:"agent 的输入框暂时还不接受粘贴。稍等一下再试。"},snippets:{empty:"还没有片段。",name:"名称",namePlaceholder:"review",text:"内容",textPlaceholder:"检查这次改动有没有 bug,有没有漏掉的测试。",add:"[ 添加 ]",save:"[ 保存 ]",edit:"[ 编辑 ]",cancel:"[ 取消 ]",remove:"[ 删除 ]",removed:"已删除 @{name}",badName:"名称只能是字母、数字、- 或 _,最长 32 位。",phone:{add:"添加片段",save:"保存",cancel:"取消",remove:"删除片段"}}};var Bo={};O(Bo,{zh:()=>Rt,en:()=>wt});var wt={rail:{markNotice:"Task rows now start with the engine's icon. Change it in Settings → Appearance.",markNoticeUndo:"Old look",inbox:"inbox {count}",empty:"no tasks yet",skillCue:"skill missing",newTask:"New task",update:"Update",settings:"Settings",noProject:"Ungrouped",connector:{weixin:"WeChat",lark:"Lark",inbox:"External messages"},expandGroup:"Expand {name}",collapseGroup:"Collapse {name}",reconnecting:"reconnecting",computer:"this computer",switchComputer:"Switch computer or pair another",extensions:"Extensions",addExtension:"Add extension",newTaskMode:{worktree:"worktree",folder:"folder"},lastOpened:"Last opened",state:{needs:"needs you",working:"working",ready:"ready",idle:"idle"},extraRepos:"{count} more repos in this task",extraReposOne:"1 more repo in this task",todos:"{done} of {total} todos done",todosOne:"{done} of 1 todo done",startsAt:"Starts {time}",pr:{state:{open:"open",merged:"merged",closed:"closed"},many:"{count} PRs in this task and its children",checks:{conflict:"conflicts with its base",failing:"checks failing",passing:"checks passing",pending:"checks running"}},searchPlaceholder:"fuzzy filter",engineSwitched:"Engine → {engine} (applies on reopen)",engineSwitchFailed:"could not switch engine: {error}"},inbox:{title:"inbox",hints:"↑↓ move · enter open · d ack · esc close",attention:"attention",recent:"recent",empty:"no pending attention",send:"Send",openTab:"[ open ]",noOutput:"no output yet",outputUnreadable:"couldn't read this tab's output",replyPlaceholder:"reply to this session",gateKept:"Saved; the engine isn't running and will get it with its next message.",gateAnswer:"Answer",phone:{title:"Inbox",empty:"Nothing needs you right now.",ackAll:"Ack all",ack:"Ack",open:"Open",reply:"Reply"},state:{done:"done",needsInput:"needs input",error:"error",rateLimited:"rate limited",dead:"engine exited",restored:"restored after restart",routineFailed:"routine needs you",decision:"needs a decision",reportMissing:"report missing"}}},Rt={rail:{markNotice:"任务行现在以引擎图标开头。可在设置 → 外观里更改。",markNoticeUndo:"换回旧样式",inbox:"收件箱 {count}",empty:"还没有任务",skillCue:"缺少技能",newTask:"新建任务",update:"更新",settings:"设置",noProject:"未分组",connector:{weixin:"微信",lark:"飞书",inbox:"外部消息"},expandGroup:"展开{name}",collapseGroup:"收起{name}",reconnecting:"重连中",computer:"这台电脑",switchComputer:"切换电脑或配对另一台",extensions:"扩展",addExtension:"添加扩展",newTaskMode:{worktree:"worktree",folder:"文件夹"},lastOpened:"上次打开",state:{needs:"等你处理",working:"进行中",ready:"待收尾",idle:"空闲"},extraRepos:"这个任务还含 {count} 个仓库",extraReposOne:"这个任务还含 1 个仓库",todos:"{done}/{total} 条待办已完成",todosOne:"{done}/1 条待办已完成",startsAt:"{time} 启动",pr:{state:{open:"进行中",merged:"已合并",closed:"已关闭"},many:"这个任务及子任务共 {count} 个 PR",checks:{conflict:"与基础分支冲突",failing:"检查未通过",passing:"检查已通过",pending:"检查进行中"}},searchPlaceholder:"模糊搜索",engineSwitched:"引擎 → {engine}(重新打开后生效)",engineSwitchFailed:"切换引擎失败:{error}"},inbox:{title:"收件箱",hints:"↑↓ 移动 · enter 打开 · d 已阅 · esc 关闭",attention:"待处理",recent:"最近使用",empty:"暂无待处理",send:"发送",openTab:"[ 打开 ]",noOutput:"还没有输出",outputUnreadable:"读不到这个标签页的输出",replyPlaceholder:"回复这个会话",gateKept:"已记下;引擎没在运行,下次发消息时一并送达。",gateAnswer:"回答",phone:{title:"收件箱",empty:"现在没有需要你处理的。",ackAll:"全部已阅",ack:"已阅",open:"打开",reply:"回复"},state:{done:"完成",needsInput:"需要输入",error:"出错",rateLimited:"限流",dead:"引擎已退出",restored:"重启后已恢复",routineFailed:"例行任务需要处理",decision:"等你决定",reportMissing:"未回报"}}};var fo={};O(fo,{zh:()=>kt,en:()=>vt});var vt={reviewQueue:{sourceIssues:"[ issues ]",sourceReviews:"[ PRs waiting on me ]",palette:"Review queue",title:"PRs waiting on me",empty:"No open PR asks for your review in your projects.",other:"{count} more in projects Rove doesn't know.",draft:"draft",fork:"fork",checksPassing:"checks passing",checksFailing:"checks failing",checksPending:"checks running",start:"[ review ]",preparing:"Fetching #{number}…",failed:"Could not start the review of #{number}: {error}",gh:{missing:"The `gh` CLI is not installed or not on PATH.",unauthenticated:"`gh` is not signed in: run `gh auth login` on this Mac.",failed:"GitHub could not be read just now. Press r to retry."},prompt:`Review pull request #{number} in {repo}: {title}
|
|
26
26
|
{url}
|
|
27
27
|
|
|
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.`}},kt={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}
|