@sma1lboy/kobe 0.8.159 → 0.8.160
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/index.js +2 -2
- package/dist/cli/kobe-run.js +2 -2
- package/dist/cli/rove-run.js +2 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -303,7 +303,7 @@ ${G}
|
|
|
303
303
|
`)}let z=VG0();for(let G of mT()){if(J&&G.vendor==="claude")continue;let W=G.globalSettingsPath();if(!W)continue;await G.installActivityHooks(W,{toolEvents:z}),await G.installWorktreeWatchHook(W)}await Nh()}catch{}}function VG0(){try{for(let $ of o4().plugins){if(!$.enabled)continue;try{if(G6($.root).manifest.events.some((Z)=>Z.on.startsWith("tool.")))return!0}catch{}}}catch{}return!1}async function Nh(){let $=OG0();if($.length===0)return;let Z=x5(qh),X=new Set([Mh()]),J=jG0(Z);if(J)X.add(J);for(let z of $)for(let G of X)await z.removeWorktreeSyncHook(G);if(Z!=="off")Y6(qh,"off")}async function _G0(){let $=mT().find((X)=>X.vendor==="claude"),Z=$?.globalSettingsPath();if(!$||!Z){process.stdout.write(`rove hook cleanup: no Claude hook adapter \u2014 nothing to do.
|
|
304
304
|
`);return}await $.removeActivityHooks(Z),await $.removeWorktreeWatchHook(Z),process.stdout.write([`rove hook cleanup: removed Rove's settings-managed hooks from ${Z}.`,"Only Rove's own entries were touched; your other hooks are intact.","The Claude Code plugin's hooks.json now carries these events (if the plugin","is not installed, the next Rove launch reinstalls the settings-managed set).",""].join(`
|
|
305
305
|
`))}async function CG0($){await Nh(),process.stdout.write(["rove hook setup is deprecated and now a no-op (cleanup only).","","The old external-worktree sync used a global WorktreeCreate hook, which is","a VCS provider hook \u2014 its presence broke `claude --worktree` / EnterWorktree","in every repo. Any hook Rove previously installed has been removed.","","Sync is now automatic: a `claude --worktree` (or any session) started in a","worktree under a repo Rove already tracks is adopted as a task on launch.","To adopt existing worktrees on demand, use the New Task dialog or `rove adopt`.",""].join(`
|
|
306
|
-
`))}var BG0=500,KG0="worktree-created",qh="externalWorktreeSync";var uT=c(()=>{E7();uX();VZ();bT();kT();C4();M2();u4()});var Ej;var Oh=c(()=>{Ej={$schema:"https://json.schemastore.org/package.json",name:"@sma1lboy/rove",version:"0.8.
|
|
306
|
+
`))}var BG0=500,KG0="worktree-created",qh="externalWorktreeSync";var uT=c(()=>{E7();uX();VZ();bT();kT();C4();M2();u4()});var Ej;var Oh=c(()=>{Ej={$schema:"https://json.schemastore.org/package.json",name:"@sma1lboy/rove",version:"0.8.160",description:"Rove \u2014 the agent multiplexer for your terminal. Run coding agents on parallel tasks with isolated worktrees and persistent sessions.",type:"module",packageManager:"bun@1.3.13",bin:{kobe:"dist/cli/kobe.js",rove:"dist/cli/rove.js"},files:["dist/cli","dist/web-ui","dist/skills","dist/*.wav","README.md","LICENSE"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/Sma1lboy/rove.git"},homepage:"https://github.com/Sma1lboy/rove#readme",bugs:{url:"https://github.com/Sma1lboy/rove/issues"},engines:{bun:">=1.3.11"},scripts:{dev:"ROVE_DEV=1 bun --conditions=browser ./src/cli/rove.ts","dev:kobe":"KOBE_DEV=1 bun --conditions=browser ./src/cli/kobe.ts","dev:mock":"KOBE_DEV=1 bun ./src/tui-react/mock/host.tsx","dev:mock-react":"KOBE_DEV=1 bun ./src/tui-react/mock/host.tsx","dev:mock-react-task-dialogs":"KOBE_DEV=1 bun ./src/tui-react/component/mock-dialogs-host.tsx","dev:mock-react-filetree":"KOBE_DEV=1 bun ./src/tui-react/panes/filetree/mock-host.tsx","dev:mock-react-sidebar":"KOBE_DEV=1 bun ./src/tui-react/panes/sidebar/mock-host.tsx","dev:mock-react-terminal":"KOBE_DEV=1 bun ./src/tui-react/panes/terminal/mock-host.tsx","dev:mock-react-dialogs":"KOBE_DEV=1 bun ./src/tui-react/mock/dialogs-host.tsx","dev:mock-react-workspace":"KOBE_DEV=1 bun ./src/tui-react/workspace/mock-host.tsx","dev:sandbox":"bun run scripts/dev-sandbox.ts run","dev:sandbox:reset":"bun run scripts/dev-sandbox.ts reset",build:"bun run scripts/build.ts","build:with-web":"bun run build",compile:"bun run scripts/compile.ts",typecheck:"tsc --noEmit","check-i18n":"bun run scripts/check-i18n.ts",test:"bun run test:fast && bun run test:socket","perf:golden":"bun scripts/perf-golden.ts","pty:soak":"bun scripts/pty-soak.ts","test:fast":"vitest run --passWithNoTests --minWorkers=1 --maxWorkers=8","test:socket":"KOBE_INCLUDE_SOCKET=1 vitest run test/daemon --pool forks --minWorkers=1 --maxWorkers=4 --passWithNoTests","test:socket:coverage":"KOBE_INCLUDE_SOCKET=1 KOBE_COVERAGE_DAEMON=1 vitest run test/daemon --coverage --pool forks --minWorkers=1 --maxWorkers=4 --passWithNoTests","test:behavior":"KOBE_INCLUDE_BEHAVIOR=1 vitest run test/behavior --pool forks --minWorkers=1 --maxWorkers=1 --retry=2 --passWithNoTests","test:render":"bun test test/render --coverage --coverage-reporter=text --coverage-reporter=lcov --coverage-dir=coverage-render",coverage:"vitest run --coverage --passWithNoTests",bench:"vitest bench --run",lint:"biome check .",knip:"knip-bun",postinstall:"bun run scripts/check-preview-deps.ts || true",prepublishOnly:"bun run typecheck && bun run build"},"//":"biome.json + bunfig.toml live at the monorepo root since they apply repo-wide; bun.lock also lives at root (workspace-shared).",dependencies:{"@ansi-tools/parser":"^1.0.15","@opentui/core":"0.4.3","@opentui/react":"0.4.3","@xterm/addon-serialize":"^0.14.0","@xterm/addon-unicode11":"^0.9.0","@xterm/headless":"^6.0.0","node-pty":"^1.1.0",react:"^19.2.8",ws:"^8.18.0"},devDependencies:{"@biomejs/biome":"1.9.4","@sma1lboy/kobe-daemon":"0.7.14","@tsconfig/bun":"1.0.10","@types/bun":"1.3.14","@types/node":"25.6.2","@types/react":"^19.2.0","@vitest/coverage-v8":"2.1.9",knip:"^6.14.2","kobe-web":"workspace:*","react-devtools-core":"^7.0.1",typescript:"5.8.2",vitest:"2.1.9"},trustedDependencies:[]}});var Vh={};A$(Vh,{repoSlug:()=>vY,releasePageUrl:()=>iT,recommendedGlobalInstallCommand:()=>lT,isNewerSemver:()=>cT,fetchReleaseSummaries:()=>BF,fetchReleaseNotesRange:()=>nT,fetchReleaseNotes:()=>pT,compareSemver:()=>D3,checkLatestVersion:()=>kY,breakingVersionsCrossed:()=>UF,UPDATE_SCRIPT_URL:()=>wj,UPDATE_COMMAND:()=>DZ,PACKAGE_NAME:()=>dT,CURRENT_VERSION:()=>R$,BREAKING_VERSIONS:()=>nX});function vY(){let $=Ej.repository?.url;if(!$)return null;let Z=$.match(/github\.com[:/]([^/]+)\/([^/.]+)/);if(!Z||!Z[1]||!Z[2])return null;return`${Z[1]}/${Z[2]}`}function lT(){return`npm install -g ${dT}@latest`}function UF($,Z,X=nX){let[J,z]=D3($,Z)<=0?[$,Z]:[Z,$];return X.filter((G)=>D3(G,J)>0&&D3(G,z)<=0)}async function AG0($){let Z=new AbortController,X=setTimeout(()=>Z.abort(),xj);try{let J=$.replace("/","%2F"),z=await fetch(`https://registry.npmjs.org/${J}/latest`,{signal:Z.signal,headers:{accept:"application/json"}});if(!z.ok)return null;let G=await z.json();if(typeof G.version!=="string")return null;return G.version}catch{return null}finally{clearTimeout(X)}}function cT($,Z){return D3($,Z)>0}function D3($,Z){let X=(G)=>G.split("-")[0]??G,J=X($).split(".").map((G)=>Number.parseInt(G,10)),z=X(Z).split(".").map((G)=>Number.parseInt(G,10));for(let G=0;G<3;G++){let W=J[G]??0,q=z[G]??0;if(Number.isNaN(W)||Number.isNaN(q))return 0;if(W>q)return 1;if(W<q)return-1}return 0}async function kY($={}){let Z=process.env.KOBE_FAKE_UPDATE;if(Z)return{current:R$,latest:Z,hasUpdate:cT(Z,R$)};if(Iq()&&!$.force)return null;let X=await AG0(dT);if(!X)return null;return{current:R$,latest:X,hasUpdate:cT(X,R$)}}function jh($){if(typeof $!=="string")return null;return $.match(/^v(\d+\.\d+\.\d+)$/)?.[1]??null}async function pT($){let Z=vY();if(!Z)return null;let X=`v${$}`,J=new AbortController,z=setTimeout(()=>J.abort(),xj);try{let G=await fetch(`https://api.github.com/repos/${Z}/releases/tags/${X}`,{signal:J.signal,headers:{accept:"application/vnd.github+json","x-github-api-version":"2022-11-28"}});if(!G.ok)return null;let W=await G.json();if(typeof W.body!=="string"||typeof W.html_url!=="string")return null;return{body:W.body,url:W.html_url,version:$}}catch{return null}finally{clearTimeout(z)}}async function nT($){let Z=vY();if(!Z)return[];let X=$.limit??100,J=new AbortController,z=setTimeout(()=>J.abort(),xj);try{let G=await fetch(`https://api.github.com/repos/${Z}/releases?per_page=${X}`,{signal:J.signal,headers:{accept:"application/vnd.github+json","x-github-api-version":"2022-11-28"}});if(!G.ok)return[];let W=await G.json();if(!Array.isArray(W))return[];return W.map((q)=>{let U=jh(q.tag_name);if(!U||typeof q.html_url!=="string"||typeof q.body!=="string")return null;if(D3(U,$.current)<=0)return null;if(D3(U,$.latest)>0)return null;return{version:U,url:q.html_url,body:q.body}}).filter((q)=>q!==null)}catch{return[]}finally{clearTimeout(z)}}async function BF($=12){let Z=vY();if(!Z)return[];let X=new AbortController,J=setTimeout(()=>X.abort(),xj);try{let z=await fetch(`https://api.github.com/repos/${Z}/releases?per_page=${$}`,{signal:X.signal,headers:{accept:"application/vnd.github+json","x-github-api-version":"2022-11-28"}});if(!z.ok)return[];let G=await z.json();if(!Array.isArray(G))return[];return G.map((W)=>{let q=jh(W.tag_name);if(!q||typeof W.html_url!=="string")return null;return{version:q,url:W.html_url}}).filter((W)=>W!==null)}catch{return[]}finally{clearTimeout(J)}}function iT($){let Z=vY();if(!Z)return null;return`https://github.com/${Z}/releases/tag/v${$}`}var R$,dT,wj="https://raw.githubusercontent.com/Sma1lboy/rove/main/scripts/update.sh",DZ,nX,xj=3000;var l8=c(()=>{Oh();V5();R$=Ej.version,dT=Ej.name;DZ=`curl -fsSL ${wj} | sh`;nX=[]});var Ch={};A$(Ch,{stampResetGate:()=>fj,resetGateBlockers:()=>_h,enforceResetGate:()=>aT,LAST_RUN_VERSION_KEY:()=>oT});function _h($,Z=R$,X=nX){if(typeof $!=="string"||$.length===0)return[];let[J,z]=D3($,Z)<=0?[$,Z]:[Z,$];return X.filter((G)=>D3(G,J)>0&&D3(G,z)<=0)}function aT(){let $=Z$(),Z=N4()[oT],X=_h(Z);if(X.length>0){let J=typeof Z==="string"?Z:"unknown";console.error([`${$} ${R$}: cannot start \u2014 version ${X.join(", ")} introduced breaking changes`,`(last run: ${J}). Your daemon/session state may be incompatible.`,"","Run:",` ${$} reset # stop daemon + PTY host + sessions (tasks kept)`,` ${$} reset --hard # additionally wipe the task index + UI state`,"","Then relaunch Rove. Worktrees are never touched."].join(`
|
|
307
307
|
`)),process.exit(1)}if(Z!==R$)fj()}function fj(){try{w7({[oT]:R$})}catch{}}var oT="app.lastRunVersion";var yj=c(()=>{x7();l8();u4()});import{existsSync as Ah,readFileSync as PG0}from"fs";import{homedir as RG0}from"os";import{join as Ph,resolve as Dh}from"path";import{fileURLToPath as TG0}from"url";function tT($=process.env){return`${Z$($)} skill install`}function gj(){let $=TG0(import.meta.url);return[Dh($,"../../../../../.agents/skills/kobe"),Dh($,"../../skills/rove")].find((X)=>Ah(Ph(X,"SKILL.md")))??null}function bj($={}){let Z=$.source!==void 0?$.source:gj(),X=$.agent===void 0?[]:typeof $.agent==="string"?[$.agent]:$.agent;return["skills","add",Z??IG0,"--skill",X6,...$.global===!1?[]:["--global"],...X.flatMap((J)=>["--agent",J])]}function mY($={}){return`npx ${bj($).join(" ")}`}async function eT($,Z){return await Bun.spawn(["npx",...bj({...$===void 0?{}:{agent:$},global:Z})],{stdin:"inherit",stdout:"inherit",stderr:"inherit"}).exited}function vj($={}){let Z=$.home??RG0(),X=$.cwd??process.cwd();return[Z,X].flatMap((J)=>SG0.map((z)=>Ph(J,z)))}function EG0($){let Z=$.match(/(?:rove|kobe)-skill-version:\s*(\d+)/);return Z?Number.parseInt(Z[1],10):null}function KF($){let Z=vj($).find((z)=>Ah(z));if(!Z)return{installed:!1,installedVersion:null,currentVersion:rT,stale:!1};let X=null;try{X=EG0(PG0(Z,"utf8"))}catch{X=null}let J=X===null||X<rT;return{installed:!0,installedVersion:X,currentVersion:rT,stale:J}}function wG0(){return new Promise(($)=>{process.stdin.resume(),process.stdin.once("data",(Z)=>{process.stdin.pause(),$(String(Z))})})}async function Rh($={}){let{isRovePluginEnabled:Z}=await Promise.resolve().then(() => (Ij(),Sj));if(Z())return;let X=Z$(),J=tT(),z=KF();if(!z.installed){if(x5(sT)==="1")return;Y6(sT,"1"),process.stderr.write(`
|
|
308
308
|
${X}: the Rove agent skill isn't installed \u2014 install it so your coding agent can drive Rove via \`${X} api\`:
|
|
309
309
|
${J}
|
|
@@ -668,7 +668,7 @@ ${o.join(`
|
|
|
668
668
|
|
|
669
669
|
`),{leaks:s,details:K0}}}function _(m){return A?.trackDisposable(m),m}function b(m){A?.markAsDisposed(m)}function S(m,t){A?.setParent(m,t)}function E(m){return typeof m=="object"&&m!==null&&typeof m.dispose=="function"&&m.dispose.length===0}function T(m){if(j.Iterable.is(m)){let t=[];for(let s of m)if(s)try{s.dispose()}catch(Y0){t.push(Y0)}if(t.length===1)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(m)?[]:m}if(m)return m.dispose(),m}function w(m){let t=_({dispose:(0,N.createSingleCallFunction)(()=>{b(t),m()})});return t}q.DisposableTracker=C;class y{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,_(this)}dispose(){this._isDisposed||(b(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{T(this._toDispose)}finally{this._toDispose.clear()}}add(m){if(!m)return m;if(m===this)throw Error("Cannot register a disposable on itself!");return S(m,this),this._isDisposed?y.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(m),m}delete(m){if(m){if(m===this)throw Error("Cannot dispose a disposable on itself!");this._toDispose.delete(m),m.dispose()}}deleteAndLeak(m){m&&this._toDispose.has(m)&&(this._toDispose.delete(m),S(m,null))}}q.DisposableStore=y;class f{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new y,_(this),S(this._store,this)}dispose(){b(this),this._store.dispose()}_register(m){if(m===this)throw Error("Cannot register a disposable on itself!");return this._store.add(m)}}q.Disposable=f;class h{constructor(){this._isDisposed=!1,_(this)}get value(){return this._isDisposed?void 0:this._value}set value(m){this._isDisposed||m===this._value||(this._value?.dispose(),m&&S(m,this),this._value=m)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,b(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let m=this._value;return this._value=void 0,m&&S(m,null),m}}q.MutableDisposable=h,q.MandatoryMutableDisposable=class{constructor(m){this._disposable=new h,this._isDisposed=!1,this._disposable.value=m}get value(){return this._disposable.value}set value(m){this._isDisposed||m===this._disposable.value||(this._disposable.value=m)}dispose(){this._isDisposed=!0,this._disposable.dispose()}},q.RefCountedDisposable=class{constructor(m){this._disposable=m,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}},q.SafeDisposable=class{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,_(this)}set(m){let t=m;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,b(this))},this}},q.ReferenceCollection=class{constructor(){this.references=new Map}acquire(m,...t){let s=this.references.get(m);s||(s={counter:0,object:this.createReferencedObject(m,...t)},this.references.set(m,s));let{object:Y0}=s,U0=(0,N.createSingleCallFunction)(()=>{--s.counter==0&&(this.destroyReferencedObject(m,s.object),this.references.delete(m))});return s.counter++,{object:Y0,dispose:U0}}},q.AsyncReferenceCollection=class{constructor(m){this.referenceCollection=m}async acquire(m,...t){let s=this.referenceCollection.acquire(m,...t);try{return{object:await s.object,dispose:()=>s.dispose()}}catch(Y0){throw s.dispose(),Y0}}},q.ImmortalReference=class{constructor(m){this.object=m}dispose(){}};class n{constructor(){this._store=new Map,this._isDisposed=!1,_(this)}dispose(){b(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{T(this._store.values())}finally{this._store.clear()}}has(m){return this._store.has(m)}get size(){return this._store.size}get(m){return this._store.get(m)}set(m,t,s=!1){this._isDisposed&&console.warn(Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),s||this._store.get(m)?.dispose(),this._store.set(m,t)}deleteAndDispose(m){this._store.get(m)?.dispose(),this._store.delete(m)}deleteAndLeak(m){let t=this._store.get(m);return this._store.delete(m),t}keys(){return this._store.keys()}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}}q.DisposableMap=n},6317:(W,q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.LinkedList=void 0;class U{static{this.Undefined=new U(void 0)}constructor(M){this.element=M,this.next=U.Undefined,this.prev=U.Undefined}}class B{constructor(){this._first=U.Undefined,this._last=U.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===U.Undefined}clear(){let M=this._first;for(;M!==U.Undefined;){let O=M.next;M.prev=U.Undefined,M.next=U.Undefined,M=O}this._first=U.Undefined,this._last=U.Undefined,this._size=0}unshift(M){return this._insert(M,!1)}push(M){return this._insert(M,!0)}_insert(M,O){let N=new U(M);if(this._first===U.Undefined)this._first=N,this._last=N;else if(O){let A=this._last;this._last=N,N.prev=A,A.next=N}else{let A=this._first;this._first=N,N.next=A,A.prev=N}this._size+=1;let j=!1;return()=>{j||(j=!0,this._remove(N))}}shift(){if(this._first!==U.Undefined){let M=this._first.element;return this._remove(this._first),M}}pop(){if(this._last!==U.Undefined){let M=this._last.element;return this._remove(this._last),M}}_remove(M){if(M.prev!==U.Undefined&&M.next!==U.Undefined){let O=M.prev;O.next=M.next,M.next.prev=O}else M.prev===U.Undefined&&M.next===U.Undefined?(this._first=U.Undefined,this._last=U.Undefined):M.next===U.Undefined?(this._last=this._last.prev,this._last.next=U.Undefined):M.prev===U.Undefined&&(this._first=this._first.next,this._first.prev=U.Undefined);this._size-=1}*[Symbol.iterator](){let M=this._first;for(;M!==U.Undefined;)yield M.element,M=M.next}}q.LinkedList=B},2608:(W,q)=>{var U;Object.defineProperty(q,"__esModule",{value:!0}),q.SetMap=q.BidirectionalMap=q.CounterSet=q.Touch=void 0,q.getOrSet=function(B,M,O){let N=B.get(M);return N===void 0&&(N=O,B.set(M,N)),N},q.mapToString=function(B){let M=[];return B.forEach((O,N)=>{M.push(`${N} => ${O}`)}),`Map(${B.size}) {${M.join(", ")}}`},q.setToString=function(B){let M=[];return B.forEach((O)=>{M.push(O)}),`Set(${B.size}) {${M.join(", ")}}`},q.mapsStrictEqualIgnoreOrder=function(B,M){if(B===M)return!0;if(B.size!==M.size)return!1;for(let[O,N]of B)if(!M.has(O)||M.get(O)!==N)return!1;for(let[O]of M)if(!B.has(O))return!1;return!0},function(B){B[B.None=0]="None",B[B.AsOld=1]="AsOld",B[B.AsNew=2]="AsNew"}(U||(q.Touch=U={})),q.CounterSet=class{constructor(){this.map=new Map}add(B){return this.map.set(B,(this.map.get(B)||0)+1),this}delete(B){let M=this.map.get(B)||0;return M!==0&&(M--,M===0?this.map.delete(B):this.map.set(B,M),!0)}has(B){return this.map.has(B)}},q.BidirectionalMap=class{constructor(B){if(this._m1=new Map,this._m2=new Map,B)for(let[M,O]of B)this.set(M,O)}clear(){this._m1.clear(),this._m2.clear()}set(B,M){this._m1.set(B,M),this._m2.set(M,B)}get(B){return this._m1.get(B)}getKey(B){return this._m2.get(B)}delete(B){let M=this._m1.get(B);return M!==void 0&&(this._m1.delete(B),this._m2.delete(M),!0)}forEach(B,M){this._m1.forEach((O,N)=>{B.call(M,O,N,this)})}keys(){return this._m1.keys()}values(){return this._m1.values()}},q.SetMap=class{constructor(){this.map=new Map}add(B,M){let O=this.map.get(B);O||(O=new Set,this.map.set(B,O)),O.add(M)}delete(B,M){let O=this.map.get(B);O&&(O.delete(M),O.size===0&&this.map.delete(B))}forEach(B,M){let O=this.map.get(B);O&&O.forEach(M)}get(B){return this.map.get(B)||new Set}}},9725:(W,q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.StopWatch=void 0;let U=globalThis.performance&&typeof globalThis.performance.now=="function";class B{static create(M){return new B(M)}constructor(M){this._now=U&&M===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}q.StopWatch=B}},Z={};function X(W){var q=Z[W];if(q!==void 0)return q.exports;var U=Z[W]={exports:{}};return $[W].call(U.exports,U,U.exports,X),U.exports}var J={};(()=>{var W=J;Object.defineProperty(W,"__esModule",{value:!0}),W.Terminal=void 0;let q=X(5101),U=X(6097),B=X(4335),M=X(5856),O=X(3027),N=X(7150),j=["cols","rows"];class A extends N.Disposable{constructor(C){super(),this._core=this._register(new M.Terminal(C)),this._addonManager=this._register(new O.AddonManager),this._publicOptions={...this._core.options};let _=(S)=>this._core.options[S],b=(S,E)=>{this._checkReadonlyOptions(S),this._core.options[S]=E};for(let S in this._core.options){Object.defineProperty(this._publicOptions,S,{get:()=>this._core.options[S],set:(T)=>{this._checkReadonlyOptions(S),this._core.options[S]=T}});let E={get:_.bind(this,S),set:b.bind(this,S)};Object.defineProperty(this._publicOptions,S,E)}}_checkReadonlyOptions(C){if(j.includes(C))throw Error(`Option "${C}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.options.allowProposedApi)throw Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onLineFeed(){return this._core.onLineFeed}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get parser(){return this._checkProposedApi(),this._parser||(this._parser=new U.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new B.UnicodeApi(this._core)}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._checkProposedApi(),this._buffer||(this._buffer=this._register(new q.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let C=this._core.coreService.decPrivateModes,_="none";switch(this._core.coreMouseService.activeProtocol){case"X10":_="x10";break;case"VT200":_="vt200";break;case"DRAG":_="drag";break;case"ANY":_="any"}return{applicationCursorKeysMode:C.applicationCursorKeys,applicationKeypadMode:C.applicationKeypad,bracketedPasteMode:C.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:_,originMode:C.origin,reverseWraparoundMode:C.reverseWraparound,sendFocusMode:C.sendFocus,synchronizedOutputMode:C.synchronizedOutput,wraparoundMode:C.wraparound}}get options(){return this._publicOptions}set options(C){for(let _ in C)this._publicOptions[_]=C[_]}input(C,_=!0){this._core.input(C,_)}resize(C,_){this._verifyIntegers(C,_),this._core.resize(C,_)}registerMarker(C=0){return this._checkProposedApi(),this._verifyIntegers(C),this._core.addMarker(C)}addMarker(C){return this.registerMarker(C)}dispose(){super.dispose()}scrollLines(C){this._verifyIntegers(C),this._core.scrollLines(C)}scrollPages(C){this._verifyIntegers(C),this._core.scrollPages(C)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(C){this._verifyIntegers(C),this._core.scrollToLine(C)}clear(){this._core.clear()}write(C,_){this._core.write(C,_)}writeln(C,_){this._core.write(C),this._core.write(`\r
|
|
670
670
|
`,_)}reset(){this._core.reset()}loadAddon(C){this._addonManager.loadAddon(this,C)}_verifyIntegers(...C){for(let _ of C)if(_===1/0||isNaN(_)||_%1!=0)throw Error("This API only accepts integers")}}W.Terminal=A})();var z=Wd;for(var G in J)z[G]=J[G];J.__esModule&&Object.defineProperty(z,"__esModule",{value:!0})})()});function KV($){let Z=typeof $==="number"?Math.floor($):typeof $==="string"?Number.parseInt($.trim(),10):Number.NaN;if(!Number.isFinite(Z))return BV;return Math.min(YH0,Math.max(zH0,Z))}function Hd(){return KV(N4()[UV])}var UV="terminal.scrollbackRows",BV=1000,zH0=100,YH0=1e5;var iS=c(()=>{x7()});var Ud;var Bd=c(()=>{Ud=[{id:"chat.send",scope:"workspace",keys:[],category:"Workspace",description:"Send message (composer)",hint:{keys:"enter"}},{id:"chat.newline",scope:"workspace",keys:[],category:"Workspace",description:"Newline in composer",hint:{keys:"shift+enter"}},{id:"chat.cycle-mode",scope:"workspace",keys:[],category:"Workspace",description:"Cycle permission mode (composer)",hint:{keys:"shift+tab"}},{id:"chat.steer",scope:"workspace",keys:[],category:"Workspace",description:"Steer (interrupt + send) \u2014 mid-stream only",hint:{keys:"ctrl+enter"}},{id:"chat.tab.new",scope:"workspace",keys:["ctrl+t"],category:"Workspace",description:"New chat tab",hint:{keys:"ctrl+t"},presentation:"onePress"},{id:"chat.tab.chooseEngine",scope:"workspace",keys:["ctrl+e"],category:"Workspace",description:"New conversation \u2014 engine/shell picker with destination + context toggles",hint:{keys:"ctrl+e"},presentation:"onePress"},{id:"chat.tab.fork",scope:"workspace",keys:[],prefixKeys:["c"],category:"Workspace",description:"Fork this chat into a new tab (same Task directory, keeps the conversation)",hint:{keys:"ctrl+a c"}},{id:"chat.fork.new",scope:"workspace",keys:[],prefixKeys:["f"],category:"Workspace",description:"Quick-fork: create child task seeded with current repo/branch/model",hint:{keys:"ctrl+a f"}},{id:"chat.session.resume",scope:"workspace",keys:[],prefixKeys:["y"],category:"Workspace",description:"Resume a prior session in this Task directory",hint:{keys:"ctrl+y"}},{id:"chat.tab.close",scope:"workspace",keys:["ctrl+w"],category:"Workspace",description:"Close chat tab",hint:{keys:"ctrl+w"},presentation:"onePress"},{id:"chat.tab.rename",scope:"workspace",keys:["f2"],category:"Workspace",description:"Rename active chat tab",hint:{keys:"f2"},presentation:"onePress"},{id:"chat.tab.cycle-next",scope:"workspace",keys:["ctrl+]"],category:"Workspace",description:"Next chat tab",hint:{keys:"ctrl+]"},presentation:"onePress"},{id:"chat.tab.cycle-prev",scope:"workspace",keys:["ctrl+["],category:"Workspace",description:"Previous chat tab",hint:{keys:"ctrl+["},presentation:"onePress"},{id:"workspace.split.right",scope:"workspace",keys:["ctrl+\\"],category:"Workspace",description:"Split right",hint:{keys:"ctrl+\\"},presentation:"onePress"},{id:"workspace.split.down",scope:"workspace",keys:["ctrl+="],category:"Workspace",description:"Split down",hint:{keys:"ctrl+="},presentation:"onePress"},{id:"workspace.split.focus-next",scope:"workspace",keys:["f3"],category:"Workspace",description:"Focus next split",hint:{keys:"f3"},presentation:"onePress"},{id:"workspace.split.close",scope:"workspace",keys:["ctrl+w"],prefixKeys:["w"],category:"Workspace",description:"Close active split (tab when unsplit)",hint:{keys:"ctrl+w"},presentation:"onePress"},{id:"workspace.split.rename",scope:"workspace",keys:["f2"],category:"Workspace",description:"Rename active split (tab when unsplit)",hint:{keys:"f2"},presentation:"onePress"}]});var Kd;var Fd=c(()=>{Kd=[{id:"files.nav",scope:"files",keys:["j","k","down","up"],category:"Files",description:"Move cursor up/down",hint:{keys:"j/k"}},{id:"files.hierarchy",scope:"files",keys:["h","l","left","right"],category:"Files",description:"Collapse / expand tree level",hint:{keys:"h/l"}},{id:"files.open",scope:"files",keys:["return"],category:"Files",description:"Open file in configured editor (diff when supported)",hint:{keys:"enter"}},{id:"files.tab",scope:"files",keys:["[","]"],category:"Files",description:"Switch tab (cycle All / Changes)",hint:{keys:"[/]"}},{id:"files.refresh",scope:"files",keys:["r"],category:"Files",description:"Refresh",hint:{keys:"r"}},{id:"files.scope",scope:"files",keys:["b"],category:"Files",description:"Toggle Changes scope (working \u2194 branch vs base)",hint:{keys:"b"}},{id:"files.diff",scope:"files",keys:["d"],category:"Files",description:"Open read-only diff in a workspace tab",hint:{keys:"d"}},{id:"files.openExternal",scope:"files",keys:["o"],category:"Files",description:"Open file in system default app (audio / video / pdf preview)",hint:{keys:"o"}},{id:"files.mention",scope:"files",keys:["a"],category:"Files",description:"Inject @<path> mention into the engine pane",hint:{keys:"a"}},{id:"files.createPR",scope:"global",keys:[],prefixKeys:["p","shift+p"],category:"Files",description:"Create PR from the current task"},{id:"diff.review.cursor",scope:"workspace",keys:[],category:"Diff review",description:"Move the line cursor over the diff",hint:{keys:"j/k"}},{id:"diff.review.range",scope:"workspace",keys:[],category:"Diff review",description:"Toggle range anchor at the cursor",hint:{keys:"v"}},{id:"diff.review.note",scope:"workspace",keys:[],category:"Diff review",description:"Add a review note at the cursor",hint:{keys:"c"}},{id:"diff.review.send",scope:"workspace",keys:[],category:"Diff review",description:"Send all unsent review notes to the engine",hint:{keys:"s"}}]});var Md;var Nd=c(()=>{Md=[{id:"inbox.show",scope:"global",keys:[],prefixKeys:["i"],category:"Global",description:"Open Inbox"},{id:"inbox.nav",scope:"inbox",keys:["j","k","down","up"],category:"Inbox",description:"Move cursor up/down",hint:{keys:"j/k"}},{id:"inbox.open",scope:"inbox",keys:["return"],category:"Inbox",description:"Open the selected Task and Terminal Tab",hint:{keys:"enter"}},{id:"inbox.delete",scope:"inbox",keys:["d"],category:"Inbox",description:"Remove the selected Inbox item",hint:{keys:"d"}}]});var GH0,Ld;var Od=c(()=>{GH0=["2","3","4","5","6","7","8","9","0"],Ld=GH0.map(($)=>`ctrl+${$}`)});var jd;var Vd=c(()=>{Od();jd=[{id:"sidebar.nav",scope:"sidebar",keys:["j","k","down","up"],category:"Sidebar",description:"Move cursor up/down",hint:{keys:"j/k"}},{id:"sidebar.select",scope:"sidebar",keys:["return"],category:"Sidebar",description:"Open the selected task",hint:{keys:"enter"}},{id:"sidebar.tree.open",scope:"sidebar",keys:["l","space"],category:"Sidebar",description:"Open the row under the cursor (a tab row enters its chat)",hint:{keys:"l"}},{id:"sidebar.goto",scope:"sidebar",keys:["g","shift+g"],category:"Sidebar",description:"Top / bottom of list (gg or shift-G)"},{id:"sidebar.rename",scope:"sidebar",keys:["r"],category:"Sidebar",description:"Rename task",hint:{keys:"r"}},{id:"sidebar.archive",scope:"sidebar",keys:["a"],category:"Sidebar",description:"Toggle archive",hint:{keys:"a"}},{id:"sidebar.localMerge",scope:"sidebar",keys:["shift+m"],category:"Sidebar",description:"Reorder row (Shift+M, then j/k)",hint:{keys:"M"}},{id:"sidebar.pin",scope:"sidebar",keys:["shift+p"],category:"Sidebar",description:"Pin / unpin task at top (Shift+P)",hint:{keys:"P"}},{id:"sidebar.previewToggle",scope:"sidebar",keys:["i"],category:"Sidebar",description:"Toggle live preview for task (i)",hint:{keys:"i"}},{id:"sidebar.sort",scope:"sidebar",keys:["t"],category:"Sidebar",description:"Switch task sort (default \u2194 recent)",hint:{keys:"t"}},{id:"sidebar.projectFilter",scope:"sidebar",keys:["ctrl+p"],category:"Sidebar",description:"Cycle task project filter",hint:{keys:"ctrl+p"}},{id:"sidebar.delete",scope:"sidebar",keys:["d"],category:"Sidebar",description:"Delete task (with confirm)",hint:{keys:"d"}},{id:"sidebar.search.enter",scope:"sidebar",keys:["/"],category:"Sidebar",description:"Search tasks (fuzzy filter)",hint:{keys:"/"}},{id:"sidebar.search.nav",scope:"sidebar",keys:["down","up"],category:"Sidebar",description:"Move highlight in search results"},{id:"sidebar.search.submit",scope:"sidebar",keys:["return"],category:"Sidebar",description:"Select search match and exit search"},{id:"sidebar.search.cancel",scope:"sidebar",keys:["escape"],category:"Sidebar",description:"Cancel search (restore prior selection)"},{id:"tasks.openWorktree",scope:"sidebar",keys:["o"],category:"Tasks pane",description:"Open selected Task directory in your editor",hint:{keys:"o"}},{id:"tasks.renameBranch",scope:"sidebar",keys:["b"],category:"Tasks pane",description:"Rename the selected task's git branch",hint:{keys:"b"}},{id:"tasks.cycleEngine",scope:"sidebar",keys:["v"],category:"Tasks pane",description:"Cycle engine vendor (claude \u2194 codex \u2194 \u2026) \u2014 applies on reopen",hint:{keys:"v"}},{id:"tasks.update",scope:"sidebar",keys:["u"],category:"Tasks pane",description:"Open the update page (when a new version is available)",hint:{keys:"u"}},{id:"tasks.jump",scope:"global",keys:[...Ld],category:"Tasks pane",description:"Jump to the task showing that digit (ctrl+2 = first row)",hint:{keys:"ctrl+2-0"},presentation:"onePress"},{id:"tasks.focusEngine",scope:"sidebar",keys:["right"],category:"Tasks pane",description:"Focus the engine pane of the current window",hint:{keys:"\u2192"}},{id:"tasks.toggleKeys",scope:"sidebar",keys:["?"],category:"Tasks pane",description:"Collapse / expand the keys legend",hint:{keys:"?"}}]});var G8;var oS=c(()=>{Bd();Fd();Nd();Vd();G8=[{id:"help.open",scope:"global",keys:["f1"],category:"Global",description:"Show keybindings help",hint:{keys:"F1"},presentation:"onePress"},{id:"task.new",scope:"sidebar",keys:["n"],category:"Sidebar",description:"New task",hint:{keys:"n"}},{id:"task.openEditor",scope:"global",keys:[],prefixKeys:["o"],category:"Global",description:"Open active Task directory in editor"},{id:"task.moveMode",scope:"global",keys:[],prefixKeys:["m"],category:"Global",description:"Reorder sidebar rows (then j/k)"},{id:"settings.open",scope:"global",keys:[],prefixKeys:[","],category:"Global",description:"Open settings"},{id:"settings.open.sidebar",scope:"sidebar",keys:["s"],category:"Sidebar",description:"Open settings",hint:{keys:"s"}},{id:"worktrees.open.sidebar",scope:"sidebar",keys:["x"],category:"Sidebar",description:"Open worktrees",hint:{keys:"x"}},{id:"kanban.open",scope:"global",keys:[],prefixKeys:["1"],category:"Global",description:"Open kanban (issues board)"},{id:"automations.open",scope:"global",keys:[],prefixKeys:["2"],category:"Global",description:"Open automations (scheduled tasks)"},{id:"workItems.open",scope:"global",keys:[],prefixKeys:["3"],category:"Global",description:"Open GitHub issues (external tracker)"},{id:"app.quit",scope:"sidebar",keys:["q","ctrl+q"],category:"Sidebar",description:"Quit (with confirm)",hint:{keys:"q"}},{id:"focus.sidebar",scope:"workspace",keys:["ctrl+q"],category:"Workspace",description:"Back to sidebar (tasks)",hint:{keys:"ctrl+q"},presentation:"onePress"},{id:"focus.previous",scope:"global",keys:[],prefixKeys:["h"],category:"Navigation",description:"Focus previous pane (files \u2192 workspace \u2192 sidebar)"},{id:"focus.next",scope:"global",keys:["f4"],prefixKeys:["l"],category:"Navigation",description:"Focus next pane (sidebar \u2192 workspace \u2192 files)",hint:{keys:"f4"},presentation:"onePress"},{id:"attention.next",scope:"global",keys:["f7"],category:"Navigation",description:"Jump to the next available Inbox item",hint:{keys:"f7"},presentation:"onePress"},{id:"workspace.zenToggle",scope:"global",keys:[],prefixKeys:["z"],category:"Navigation",description:"Toggle zen mode (hide the files column)"},{id:"chat.interrupt",scope:"workspace",keys:[],category:"Workspace",description:"Interrupt current turn (esc while streaming)"},...jd,...Ud,...Kd,...Md,{id:"terminal.scroll-up",scope:"terminal",keys:["ctrl+pageup"],category:"Terminal",description:"Scroll scrollback up",hint:{keys:"ctrl+pgup"}},{id:"terminal.scroll-down",scope:"terminal",keys:["ctrl+pagedown"],category:"Terminal",description:"Scroll scrollback down"},{id:"terminal.reset",scope:"terminal",keys:["f5"],category:"Terminal",description:"Reset terminal \u2014 kill the current shell and respawn",hint:{keys:"f5"},presentation:"onePress"},{id:"dialog.cancel",scope:"global",keys:[],category:"Dialog",description:"Close the top dialog (esc)"},{id:"dialog.newtask.tab.cycle",scope:"global",keys:[],category:"Dialog",description:"Switch New Task tab (Existing / New Repo)",hint:{keys:"ctrl+[/]"}}]});function _5($){let Z=[];for(let X in $){let J=$[X];if(!J)continue;let z=pQ(X),G=z?.keys??[],W=z?.prefixKeys??[];if(G.length===0&&W.length===0){console.warn(`[rove/keybindings] bindByIds: id="${X}" has no chords (or doesn't exist in KobeKeymap)`);continue}G.forEach((q,U)=>Z.push({key:q,cmd:J,slot:U,id:X})),W.forEach((q,U)=>Z.push({key:q,prefix:!0,cmd:J,slot:U,id:X}))}return Z}var _d=c(()=>{XJ()});function Dd($){return Cd.get($)?.keys??[]}function rS(){for(let $ of G8){let Z=Cd.get($.id);if(!Z)continue;let X=$;X.keys=[...Z.keys],X.prefixKeys=Z.prefixKeys&&[...Z.prefixKeys],X.hint=Z.hint?{...Z.hint}:void 0}}function sS(){return Ad}function tS($){return aS.add($),()=>{aS.delete($)}}function eS(){Ad+=1;for(let $ of[...aS])$()}function pQ($){return qH0.get($)}var Cd,Ad=0,aS,qH0;var XJ=c(()=>{oS();oS();_d();Cd=new Map(G8.map(($)=>[$.id,{keys:[...$.keys],prefixKeys:$.prefixKeys&&[...$.prefixKeys],hint:$.hint?{...$.hint}:void 0}]));aS=new Set;qH0=new Map(G8.map(($)=>[$.id,$]))});function $I($){let Z=$,X=typeof Z.sequence==="string"&&Z.sequence.length>0?Z.sequence:null,J=typeof Z.raw==="string"&&Pd.test(Z.raw)||X!=null&&Pd.test(X);if(X!=null&&!J)return X;if(X!=null&&X.length===1&&X>=" "&&X!=="\x7F"&&!$.ctrl&&!Z.option&&!Z.meta)return X;return Rd($)}function Rd($){let Z=$.name;if(!Z)return null;if($.shift&&Z==="tab")return"\x1B[Z";if($.option||$.meta){let X=Rd({...$,option:!1,meta:!1});return X==null?null:`\x1B${X}`}switch(Z){case"return":case"enter":return"\r";case"tab":return"\t";case"backspace":return"\x7F";case"delete":return"\x1B[3~";case"up":return"\x1B[A";case"down":return"\x1B[B";case"right":return"\x1B[C";case"left":return"\x1B[D";case"home":return"\x1B[H";case"end":return"\x1B[F";case"escape":return"\x1B";case"space":return $.ctrl?"\x00":" ";default:if(Z.length===1){if($.ctrl){let J=Z.toLowerCase().charCodeAt(0);if(J>=97&&J<=122)return String.fromCharCode(J-96);let z=HH0[Z];if(z!=null)return z;return null}if($.shift&&Z>="a"&&Z<="z")return Z.toUpperCase();return Z}return null}}function Id($,Z,X,J){if($.mouseTracking)return`\x1B[<${Z==="up"?64:65};${Math.max(1,X)};${Math.max(1,J)}M`;if($.alternateScreen)return($.applicationCursorKeys?Z==="up"?"\x1BOA":"\x1BOB":Z==="up"?"\x1B[A":"\x1B[B").repeat(3);return null}var Pd,HH0,Td=10,UH0,BH0,KH0,FH0,Sd;var ZI=c(()=>{XJ();Pd=/^\x1b\[[\d:;]*u$/,HH0={"@":"\x00","[":"\x1B","\\":"\x1C","]":"\x1D","^":"\x1E",_:"\x1F","?":"\x7F"};UH0=[{id:"help.open"},{id:"focus.sidebar"},{id:"chat.tab.new"},{id:"chat.tab.close"},{id:"chat.tab.cycle-next"},{id:"chat.tab.cycle-prev"},{id:"chat.tab.rename"},"ctrl+e","ctrl+f",{id:"workspace.split.right"},{id:"workspace.split.down"},{id:"workspace.split.focus-next"},{id:"focus.next"},{id:"terminal.reset"},{id:"attention.next"},{id:"tasks.jump"}],BH0=[...new Set(UH0.flatMap(($)=>typeof $==="string"?[$]:Dd($.id)))],KH0=[..."abcdefghijklmnopqrstuvwxyz".split(""),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),..."0123456789".split(""),..." `~!@#$%^&*()-_=+[]{}\\|;:'\",.<>/?".split(""),"return","enter","space","tab","backspace","delete","up","down","left","right","home","end","pageup","pagedown","escape","insert","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"],FH0=["","ctrl+","alt+","shift+","ctrl+shift+","alt+shift+","ctrl+alt+"],Sd=KH0.flatMap(($)=>FH0.map((Z)=>`${Z}${$}`)).filter(($)=>!BH0.includes($))});class XI{data=new Set;exits=new Set;titles=new Set;get dataCount(){return this.data.size}addData($){return this.data.add($),()=>this.data.delete($)}addExit($){return this.exits.add($),()=>this.exits.delete($)}addTitle($){return this.titles.add($),()=>this.titles.delete($)}publishData($,Z,X){for(let J of this.data)try{J($,Z,X)}catch{}}publishTitle($){for(let Z of this.titles)try{Z($)}catch{}}drainExits(){let $=[...this.exits];return this.exits.clear(),$}clearData(){this.data.clear()}clearAll(){this.data.clear(),this.exits.clear(),this.titles.clear()}}function Ed($,Z){if($===Z)return!0;return $!==void 0&&Z!==void 0&&$[0]===Z[0]&&$[1]===Z[1]&&$[2]===Z[2]}function MH0($,Z){return $.text===Z.text&&($.attributes??0)===(Z.attributes??0)&&Ed($.fg,Z.fg)&&Ed($.bg,Z.bg)}function NH0($,Z){if($===Z)return!0;if($.length!==Z.length)return!1;for(let X=0;X<$.length;X++)if(!MH0($[X],Z[X]))return!1;return!0}function JI($,Z){return $&&NH0($,Z)?$:Z}function wd($,Z){if($.length!==Z.length)return Z;let X=!1;for(let J=0;J<Z.length;J++){let z=JI($[J],Z[J]);if(Z[J]=z,z!==$[J])X=!0}return X?Z:$}function xd($,Z){if($===Z)return $;if($&&Z&&$.x===Z.x&&$.y===Z.y)return $;return Z}function JJ($){if($<0)return[0,0,0];if($<16)return LH0[$]??[0,0,0];if($<232){let Z=$-16,X=Math.floor(Z/36),J=Math.floor(Z/6%6),z=Z%6,G=(W)=>W===0?0:55+40*W;return[G(X),G(J),G(z)]}if($<256){let Z=8+10*($-232);return[Z,Z,Z]}return[0,0,0]}function OH0($,Z){let X=Z.length===0?[0]:Z.map((q)=>q===""?0:Number.parseInt(q,10)||0),J=$.fg,z=$.bg,G=$.attributes,W=0;while(W<X.length){let q=X[W];if(q===void 0)break;if(q===0){J=void 0,z=void 0,G=0,W+=1;continue}if(q===1){G|=W4.BOLD,W+=1;continue}if(q===2){G|=W4.DIM,W+=1;continue}if(q===3){G|=W4.ITALIC,W+=1;continue}if(q===4){G|=W4.UNDERLINE,W+=1;continue}if(q===5||q===6){G|=W4.BLINK,W+=1;continue}if(q===7){G|=W4.INVERSE,W+=1;continue}if(q===8){G|=W4.HIDDEN,W+=1;continue}if(q===9){G|=W4.STRIKETHROUGH,W+=1;continue}if(q===22){G&=~(W4.BOLD|W4.DIM),W+=1;continue}if(q===23){G&=~W4.ITALIC,W+=1;continue}if(q===24){G&=~W4.UNDERLINE,W+=1;continue}if(q===25){G&=~W4.BLINK,W+=1;continue}if(q===27){G&=~W4.INVERSE,W+=1;continue}if(q===28){G&=~W4.HIDDEN,W+=1;continue}if(q===29){G&=~W4.STRIKETHROUGH,W+=1;continue}if(q>=30&&q<=37){J=JJ(q-30),W+=1;continue}if(q>=90&&q<=97){J=JJ(q-90+8),W+=1;continue}if(q===39){J=void 0,W+=1;continue}if(q>=40&&q<=47){z=JJ(q-40),W+=1;continue}if(q>=100&&q<=107){z=JJ(q-100+8),W+=1;continue}if(q===49){z=void 0,W+=1;continue}if(q===38){let U=X[W+1];if(U===5){let B=X[W+2]??0;J=JJ(B),W+=3;continue}if(U===2){let B=X[W+2]??0,M=X[W+3]??0,O=X[W+4]??0;J=[B,M,O],W+=5;continue}W+=1;continue}if(q===48){let U=X[W+1];if(U===5){let B=X[W+2]??0;z=JJ(B),W+=3;continue}if(U===2){let B=X[W+2]??0,M=X[W+3]??0,O=X[W+4]??0;z=[B,M,O],W+=5;continue}W+=1;continue}W+=1}return{fg:J,bg:z,attributes:G}}function jH0($){let Z=$;if(Z.charCodeAt(0)===27)Z=Z.slice(2);else if(Z.charCodeAt(0)===155)Z=Z.slice(1);if(Z.endsWith("m"))Z=Z.slice(0,-1);return Z.split(";")}function VH0($,Z=fd){if($.length===0)return{chunks:[],endStyle:Z};let X=[],J={...Z},z="",G=()=>{if(z.length===0)return;let q={text:z,...J.fg?{fg:J.fg}:{},...J.bg?{bg:J.bg}:{},...J.attributes!==0?{attributes:J.attributes}:{}};X.push(q),z=""},W=PF($);for(let q of W){if(q.type==="TEXT"){z+=q.raw;continue}if(q.type==="CSI"&&q.command==="m"){G(),J=OH0(J,jH0(q.raw));continue}if(q.type==="OSC"&&q.command==="8"){G();let U=q.params[q.params.length-1]??"";J={...J,attributes:U?J.attributes|W4.UNDERLINE:J.attributes&~W4.UNDERLINE}}}return G(),{chunks:X,endStyle:J}}function FV($){let Z=$.split(`
|
|
671
|
-
`),X=[],J=fd;for(let z of Z){let{chunks:G,endStyle:W}=VH0(z,J);X.push(G),J=W}return X}var W4,fd,LH0;var VH=c(()=>{fS();W4=Object.freeze({BOLD:1,DIM:2,ITALIC:4,UNDERLINE:8,BLINK:16,INVERSE:32,HIDDEN:64,STRIKETHROUGH:128}),fd=Object.freeze({fg:void 0,bg:void 0,attributes:0});LH0=[[21,22,30],[247,118,142],[158,206,106],[224,175,104],[122,162,247],[187,154,247],[125,207,255],[169,177,214],[65,72,104],[255,137,157],[158,224,68],[250,186,74],[141,176,255],[199,169,255],[164,218,255],[192,202,245]]});function MV($){if($==="")return;let Z=$.indexOf(":"),X=Number($.slice(Z+1));if($.startsWith("rgb:"))return[X>>16&255,X>>8&255,X&255];if($.startsWith("pal:"))return JJ(X);return}function yd($,Z){if(Z==="fg"?$.isFgDefault():$.isBgDefault())return"";let J=Z==="fg"?$.getFgColorMode():$.getBgColorMode(),z=Z==="fg"?$.getFgColor():$.getBgColor();if(J===vd||(Z==="fg"?$.isFgRGB():$.isBgRGB()))return`rgb:${z}`;if(J===bd||(Z==="fg"?$.isFgPalette():$.isBgPalette()))return`pal:${z}`;if(J===_H0)return"";return""}function kd($){let Z=0;if($.isBold())Z|=W4.BOLD;if($.isDim())Z|=W4.DIM;if($.isItalic())Z|=W4.ITALIC;if($.isUnderline())Z|=W4.UNDERLINE;if($.isBlink())Z|=W4.BLINK;if($.isInverse())Z|=W4.INVERSE;if($.isInvisible())Z|=W4.HIDDEN;if($.isStrikethrough())Z|=W4.STRIKETHROUGH;return Z}function DH0($){return{fg:yd($,"fg"),bg:yd($,"bg"),attrs:kd($)}}function AH0($,Z){return $.fg===Z.fg&&$.bg===Z.bg&&$.attrs===Z.attrs}function PH0($){let Z=MV($.fg),X=MV($.bg);return{...Z?{fg:Z}:{},...X?{bg:X}:{},...$.attrs!==0?{attributes:$.attrs}:{}}}function md($){return $==="\u2580"||$==="\u2584"||$==="\u2588"}function hd($,Z){if($===void 0||Z===void 0)return!1;return $[0]===Z[0]&&$[1]===Z[1]&&$[2]===Z[2]}function ud($){let Z=$.getChars();if(Z!==""&&Z!==" ")return!0;return!$.isAttributeDefault()||!$.isFgDefault()||!$.isBgDefault()}function NV($,Z){if(QI===void 0){let X=$.getCell(Z);if(X)QI=X;return X}return $.getCell(Z,QI)}function cd($,Z=-1){let X=Math.min($.length-1,Z);for(let U=0;U<$.length;U++){let B=NV($,U);if(!B||B.getWidth()===0)continue;if(ud(B))X=Math.max(X,U)}if(X===-1)return[];let J=[],z=CH0,G=!1,W="",q=()=>{if(W==="")return;J.push({text:W,...PH0(z)}),W=""};for(let U=0;U<=X;U++){let B=NV($,U);if(!B||B.getWidth()===0)continue;let M=DH0(B);if(!AH0(z,M))q(),z=M,G=hd(MV(M.fg),MV(M.bg));let O=B.getChars()||" ";W+=md(O)&&G?" ":O}return q(),J}function gd($,Z,X){if(X==="fg"?Z.isFgDefault():Z.isBgDefault())return $===void 0;if(!$)return!1;let z=X==="fg"?Z.getFgColorMode():Z.getBgColorMode(),G=X==="fg"?Z.getFgColor():Z.getBgColor();if(z===vd||(X==="fg"?Z.isFgRGB():Z.isBgRGB()))return $[0]===(G>>16&255)&&$[1]===(G>>8&255)&&$[2]===(G&255);if(z===bd||(X==="fg"?Z.isFgPalette():Z.isBgPalette())){let W=JJ(G);return $[0]===W[0]&&$[1]===W[1]&&$[2]===W[2]}return!1}function RH0($,Z){return($.attributes??0)===kd(Z)&&gd($.fg,Z,"fg")&&gd($.bg,Z,"bg")}function dd($,Z,X=-1){if(!$)return Z.length===0;let J=Math.min($.length-1,X);for(let W=0;W<$.length;W++){let q=NV($,W);if(!q||q.getWidth()===0)continue;if(ud(q))J=Math.max(J,W)}if(J===-1)return Z.length===0;let z=0,G=0;for(let W=0;W<=J;W++){let q=NV($,W);if(!q||q.getWidth()===0)continue;let U=Z[z];if(!U||!RH0(U,q))return!1;let B=q.getChars()||" ",M=md(B)&&hd(U.fg,U.bg)?" ":B;if(!U.text.startsWith(M,G))return!1;if(G+=M.length,G===U.text.length)z++,G=0;else if(G>U.text.length)return!1}return z===Z.length&&G===0}var _H0=0,bd=16777216,vd=50331648,CH0,QI;var zI=c(()=>{VH();CH0=Object.freeze({fg:"",bg:"",attrs:0})});function ld($,Z){$.onData(Z.onReply),$.onTitleChange(Z.onTitle)}class YI{dirty=null;subscription;supported;constructor($){let Z=$._core?._inputHandler?.onRequestRefreshRows;if(!Z){this.supported=!1,this.subscription=null;return}this.supported=!0,this.subscription=Z((X)=>{if(!X){this.dirty={kind:"all"};return}if(!this.dirty)this.dirty={kind:"range",start:X.start,end:X.end};else if(this.dirty.kind==="range")this.dirty.start=Math.min(this.dirty.start,X.start),this.dirty.end=Math.max(this.dirty.end,X.end)})}markAll(){this.dirty={kind:"all"}}peek(){return this.dirty}clear(){this.dirty=null}dispose(){this.subscription?.dispose()}}function pd($,Z,X){return{type:$.type,baseY:$.baseY,length:$.length,start:Math.max(0,$.length-(Z+X))}}function TH0($,Z){return $.type===Z.type&&$.baseY===Z.baseY&&$.length===Z.length&&$.start===Z.start}function nd($,Z,X,J,z,G,W=null){if(!X||!TH0(X,J)||!z)return!1;let q=J.start,U=J.length-1;if(z.kind==="range")q=Math.max(q,$.baseY+z.start),U=Math.min(U,$.baseY+z.end);let B=$.baseY+$.cursorY;for(let M=q;M<=U;M++){let O=Z[M-J.start];if(!O)return!1;if(W&&M<W.baseY&&W.cache.get(W.absBase+M)===O)continue;let N=!G&&M===B?$.cursorX-1:-1;if(!dd($.getLine(M),O,N))return!1}return!0}function id($){try{return $.modes.synchronizedOutputMode===!0}catch{return!1}}function LV($){try{return $._core?.coreService?.isCursorHidden===!0}catch{return!1}}var GI=c(()=>{zI()});class RF{taskId;cwd;term;listeners=new XI;snapshot=[];cursor=null;snapshotWindow=null;snapshotEpoch=0;snapshotDirty=!1;scrollbackCache=new Map;anchor;anchorId=0;_title=null;_unwatchedSince=Date.now();_killed=!1;muteReplies=!1;cols;rows;refreshQueued=!1;refreshTracker;publishedMeta=null;scrollbackRows;constructor($){if(this.taskId=$.taskId,this.cwd=$.cwd,this.cols=$.cols??MH,this.rows=$.rows??NH,$.restore?.title)this._title=$.restore.title;this.scrollbackRows=$.scrollback??Hd(),this.term=new od.Terminal({allowProposedApi:!0,cols:this.cols,rows:this.rows,scrollback:this.scrollbackRows}),this.term.loadAddon(new Yd),this.term.unicode.activeVersion="11",this.refreshTracker=new YI(this.term),ld(this.term,{onReply:(Z)=>{if(this._killed||this.muteReplies)return;try{this.transportWrite(Z)}catch{}},onTitle:(Z)=>{if(!Z||Z===this._title)return;this._title=Z,this.listeners.publishTitle(Z)}})}get killed(){return this._killed}write($){if(this._killed||$.length===0)return;try{this.transportWrite($)}catch{this.markDead(!1)}}onExit($){if(this._killed)return $(),()=>{};return this.listeners.addExit($)}onTitleChange($){let Z=this.listeners.addTitle($);if(this._title)try{$(this._title)}catch{}return Z}paste($){if(this._killed||$.length===0)return;let Z=!1;try{Z=this.term.modes.bracketedPasteMode===!0}catch{}this.write(Z?`\x1B[200~${$}\x1B[201~`:$)}wheel($,Z,X){if(this._killed)return!1;try{let J=this.term.modes,z=Id({mouseTracking:J.mouseTrackingMode!=="none",applicationCursorKeys:J.applicationCursorKeysMode===!0,alternateScreen:this.term.buffer.active.type==="alternate"},$,Z,X);if(z!==null)return this.write(z),!0}catch{}return!1}onData($){this.ensureFreshSnapshot();let Z=this.listeners.addData($);if(this._unwatchedSince=null,this.snapshot.length>0)try{$(this.snapshot,this.cursor,this.snapshotWindow)}catch{}return()=>{if(Z(),this.listeners.dataCount===0&&this._unwatchedSince===null)this._unwatchedSince=Date.now()}}unwatchedSinceMs(){return this._unwatchedSince}get windowTitle(){return this._title}get scrollback(){return this.scrollbackRows}resizeEmulator($,Z){this.cols=$,this.rows=Z,this.term.resize($,Z),this.invalidateScrollbackCache(),this.refreshTracker.markAll()}get size(){return{cols:this.cols,rows:this.rows}}resize($,Z){if(this._killed)return;this.cols=$,this.rows=Z;try{this.term.resize($,Z),this.invalidateScrollbackCache(),this.transportResize($,Z),this.refreshTracker.markAll(),this.refreshSnapshot()}catch{this.markDead(!1)}}invalidateScrollbackCache(){this.scrollbackCache.clear(),this.anchor?.dispose(),this.anchor=void 0,this.anchorId=0,this.snapshotWindow=null,this.publishedMeta=null}capture(){return this.ensureFreshSnapshot(),this.snapshot}captureCursor(){return this.ensureFreshSnapshot(),this.cursor}captureWindow(){return this.ensureFreshSnapshot(),this.snapshotWindow}ensureFreshSnapshot(){if(!this.snapshotDirty||this._killed)return;this.refreshSnapshot()}kill(){if(this._killed)return;this.markDead(!0)}feed($){if(this._killed)return;this.term.write($,()=>{if(!this.refreshTracker.supported)this.refreshTracker.markAll();this.queueRefresh()})}feedReplay($){if(this._killed)return;this.muteReplies=!0,this.term.write($,()=>{if(this.muteReplies=!1,!this.refreshTracker.supported)this.refreshTracker.markAll();this.queueRefresh()})}queueRefresh(){if(this.listeners.dataCount===0){this.snapshotDirty=!0;return}if(this.refreshQueued)return;this.refreshQueued=!0,setTimeout(()=>{this.refreshQueued=!1,this.refreshSnapshot()},16)}refreshSnapshot(){if(this._killed)return;let $=this.snapshot,Z=this.cursor,X=this.snapshotWindow;if(id(this.term)){this.queueRefresh();return}let J=this.term.buffer.active,z=LV(this.term),G=pd(J,this.rows,this.scrollbackRows),W=xd(Z,z?null:{x:J.cursorX,y:J.baseY+J.cursorY-G.start}),q=this.anchor,U=J.type!=="alternate"&&q!==void 0&&!q.isDisposed?{baseY:J.baseY,absBase:this.anchorId-q.line,cache:this.scrollbackCache}:null;if(nd(J,$,this.publishedMeta,G,this.refreshTracker.peek(),z,U)){if(this.snapshotDirty=!1,this.refreshTracker.clear(),this.publishedMeta=G,this.cursor=W,this.cursor!==Z)this.publishSnapshot();return}let M=J.type!=="alternate"&&J.baseY>0;if(M&&(this.anchor===void 0||this.anchor.isDisposed)){this.scrollbackCache.clear();let S=this.term.registerMarker(-J.cursorY-1);if(S)this.snapshotEpoch+=1,this.anchor=S,this.anchorId=S.line}let O=M&&this.anchor!==void 0&&!this.anchor.isDisposed,N=O?this.anchorId-this.anchor.line:0,j=this.scrollbackCache,A=[],C=J.baseY+J.cursorY,_=G.start;for(let S=_;S<J.length;S++){let E=O&&S<J.baseY;if(E){let h=j.get(N+S);if(h){A.push(h);continue}}let T=J.getLine(S),w=!z&&S===C?J.cursorX-1:-1,y=T?cd(T,w):[],f=E?JI($[A.length],y):y;if(A.push(f),E)j.set(N+S,f)}if(O){let S=N+_;for(let E of j.keys())if(E<S)j.delete(E)}if(M){let S=this.term.registerMarker(-J.cursorY-1);if(S)this.anchorId=O?N+S.line:0,this.anchor?.dispose(),this.anchor=S}this.snapshot=wd($,A);let b=N+_;if(this.snapshotWindow=O?X?.epoch===this.snapshotEpoch&&X.startLine===b?X:{epoch:this.snapshotEpoch,startLine:b}:null,this.snapshotDirty=!1,this.refreshTracker.clear(),this.publishedMeta=G,this.cursor=W,this.snapshot===$&&this.cursor===Z&&this.snapshotWindow===X)return;this.publishSnapshot()}publishSnapshot(){this.listeners.publishData(this.snapshot,this.cursor,this.snapshotWindow)}disposeEmulator(){try{this.term.dispose()}catch{}}markDead($){if(this._killed)return;if(this._killed=!0,this.refreshTracker.dispose(),this.disposeEmulator(),$)try{this.transportKill()}catch{}let Z=this.listeners.drainExits();this.listeners.clearData();for(let X of Z)try{X()}catch{}}silentDispose(){this._killed=!0,this.refreshTracker.dispose(),this.disposeEmulator(),this.listeners.clearAll()}}var od;var WI=c(()=>{Gd();iS();ZI();A3();zI();GI();od=z1(qd(),1)});var SH0=150,TF;var OV=c(()=>{wX();Pc();AF();LH();WI();GI();LH();TF=class TF extends RF{client=null;opened=!1;pendingInput=[];pendingResize=null;unsubs=[];deadOnAttach=!1;sessionPid=void 0;pendingExitPid=null;get shellPid(){return this.sessionPid??null}serializer=new Ac;hostOffset=null;constructor($){super($);this.term.loadAddon(this.serializer),this.openRemote($)}static createdFresh($){return $.alive&&($.created??$.replay.length===0)}async openRemote($){try{let Z=await tY();if(this.killed)return;this.client=Z,cc(this),this.unsubs.push(Z.onLifecycle("close",()=>this.remoteGone()));let X=await Z.request("pty.open",{key:this.taskId,cwd:this.cwd,command:$.command,shell:$.shell,cols:this.cols,rows:this.rows,sinceOffset:$.restore?.byteOffset,sincePid:$.restore?.pid??void 0});if(this.killed)return;this.sessionPid=X.pid??null,this.hostOffset=X.offset??null;let J=$.restore!==void 0&&X.sinceValid===!0&&X.created!==!0&&(X.pid??null)===$.restore.pid;if(J&&$.restore){if(await this.restoreParked($.restore,Buffer.from(X.replay,"base64")),this.killed)return}else if(X.replay.length>0)this.feedReplay(Buffer.from(X.replay,"base64"));if(this.opened=!0,this.pendingResize){let{cols:W,rows:q}=this.pendingResize;this.pendingResize=null,this.sendResize(W,q)}let z=TF.createdFresh(X);if($.initialInput&&z)this.sendInput($.initialInput);if($.firstMessage&&z)aY(Z,this.taskId,$.engineBin,$.firstMessage).catch((W)=>M4("pty-hosted",W));for(let W of this.pendingInput.splice(0))this.sendInput(W);let G=this.pendingExitPid;if(this.pendingExitPid=null,!X.alive)this.deadOnAttach=X.replay.length>0||J,this.remoteGone();else if(G!==null&&G===this.sessionPid)this.remoteGone();else if(X.replay.length>0&&!J){if(this.sendResize(this.cols,Math.max(1,this.rows-1)),await Promise.all([this.nextDataOrTimeout(500),new Promise((W)=>setTimeout(W,SH0))]),!this.killed)this.sendResize(this.cols,this.rows)}}catch(Z){M4("pty-hosted",Z),this.remoteGone()}}transportWrite($){if(!this.opened){this.pendingInput.push($);return}this.sendInput($)}transportResize($,Z){if(!this.opened){this.pendingResize={cols:$,rows:Z};return}this.sendResize($,Z)}transportKill(){let $=this.client;if($)$.request("pty.kill",{key:this.taskId}).catch(()=>{});this.cleanup()}kill(){if(this.killed){this.client?.request("pty.kill",{key:this.taskId}).catch(()=>{});return}super.kill()}capturePark(){if(this.killed||!this.opened||this.hostOffset===null||this.sessionPid===void 0)return null;try{return{serialized:Buffer.from(this.serializer.serialize({scrollback:this.scrollback}),"utf8").toString(),title:this.windowTitle,cursorHidden:LV(this.term),cols:this.cols,rows:this.rows,byteOffset:this.hostOffset,pid:this.sessionPid}}catch{return null}}async restoreParked($,Z){let X=this.cols,J=this.rows;if($.cols!==X||$.rows!==J)this.resizeEmulator($.cols,$.rows);if(this.feedReplay($.serialized+($.cursorHidden?"\x1B[?25l":"")),Z.byteLength>0)this.feedReplay(Z);if(await new Promise((z)=>{let G=this.onExit(z);this.term.write("",()=>{G(),z()})}),!this.killed&&(this.cols!==X||this.rows!==J))this.resizeEmulator(X,J)}detach($={}){let Z=this.client;this.cleanup();let X=lc(this.taskId);if(Z&&X===0)Z.request("pty.detach",{key:this.taskId,parked:$.parked===!0,parkedScreenBytes:$.parkedScreenBytes}).catch(()=>{});this.silentDispose()}sendInput($){this.client?.request("pty.write",{key:this.taskId,data:$}).catch(()=>this.remoteGone())}sendResize($,Z){this.client?.request("pty.resize",{key:this.taskId,cols:$,rows:Z}).catch(()=>{})}dataWaiter=null;_lastOutputAt=null;lastOutputAtMs(){return this._lastOutputAt}nextDataOrTimeout($){return new Promise((Z)=>{let X=setTimeout(()=>{this.dataWaiter=null,Z()},$);this.dataWaiter=()=>{this.dataWaiter=null,clearTimeout(X),Z()}})}feedFrame($){this.dataWaiter?.(),this._lastOutputAt=Date.now();let Z=Buffer.from($,"base64");if(this.hostOffset!==null)this.hostOffset+=Z.byteLength;this.feed(Z)}remoteExited($){if(this.killed)return;if($===void 0){this.remoteGone();return}if(this.sessionPid===void 0){this.pendingExitPid=$;return}if($!==null&&$===this.sessionPid)this.remoteGone()}remoteGone(){this.cleanup(),this.markDead(!1)}cleanup(){dc(this);for(let $ of this.unsubs.splice(0))try{$()}catch{}}}});class jV{taskId;cwd;listeners=new Set;buffer="";writes=[];_killed=!1;_title=null;exitListeners=new Set;titleListeners=new Set;pastes=[];deadOnAttach=!1;wheels=[];_cols;_rows;_cursor=null;constructor($){if(this.taskId=$.taskId,this.cwd=$.cwd,this._cols=$.cols??MH,this._rows=$.rows??NH,$.initialInput)this.writes.push($.initialInput)}get killed(){return this._killed}get writeLog(){return this.writes}get geometry(){return{cols:this._cols,rows:this._rows}}feed($){if(this._killed)return;this.buffer+=$;let Z=YV($);if(Z&&Z!==this._title){this._title=Z;for(let J of this.titleListeners)try{J(Z)}catch{}}let X=this.capture();for(let J of this.listeners)try{J(X,this._cursor,null)}catch{}}write($){if(this._killed)return;this.writes.push($)}onData($){if(this.listeners.add($),this.buffer!=="")try{$(this.capture(),this._cursor,null)}catch{}return()=>{this.listeners.delete($)}}resize($,Z){if(this._killed)return;this._cols=$,this._rows=Z}capture(){return FV(this.buffer)}setCursor($){this._cursor=$}captureCursor(){if(this._killed)return null;return this._cursor}captureWindow(){return null}kill(){if(this._killed)return;this._killed=!0,this.listeners.clear();let $=[...this.exitListeners];this.exitListeners.clear();for(let Z of $)Z()}paste($){if(this._killed)return;this.pastes.push($)}wheel($,Z,X){if(this._killed)return!1;return this.wheels.push({direction:$,col:Z,row:X}),!1}onExit($){if(this._killed)return $(),()=>{};return this.exitListeners.add($),()=>{this.exitListeners.delete($)}}onTitleChange($){if(this.titleListeners.add($),this._title)try{$(this._title)}catch{}return()=>{this.titleListeners.delete($)}}}var qI=c(()=>{A3();VH()});import{spawn as IH0}from"child_process";class VV{taskId;cwd;proc;listeners=new Set;buffer="";_killed=!1;_title=null;exitListeners=new Set;titleListeners=new Set;cols;rows;constructor($){this.taskId=$.taskId,this.cwd=$.cwd,this.cols=$.cols??MH,this.rows=$.rows??NH;let Z=GV($),X=Z[0]??q5(),J=Z.slice(1);if(this.proc=IH0(X,J,{cwd:$.cwd,env:BH(process.env,{TERM:process.env.TERM??"xterm-256color",COLUMNS:String(this.cols),LINES:String(this.rows),KOBE_TERMINAL_PIPE:"1"}),stdio:["pipe","pipe","pipe"]}),this.proc.stdout?.setEncoding("utf8"),this.proc.stderr?.setEncoding("utf8"),this.proc.stdout?.on("data",(z)=>this.append(z)),this.proc.stderr?.on("data",(z)=>this.append(z)),this.proc.stdin?.on("error",()=>this.markDead(!1)),this.proc.on("error",(z)=>{this.append(`
|
|
671
|
+
`),X=[],J=fd;for(let z of Z){let{chunks:G,endStyle:W}=VH0(z,J);X.push(G),J=W}return X}var W4,fd,LH0;var VH=c(()=>{fS();W4=Object.freeze({BOLD:1,DIM:2,ITALIC:4,UNDERLINE:8,BLINK:16,INVERSE:32,HIDDEN:64,STRIKETHROUGH:128}),fd=Object.freeze({fg:void 0,bg:void 0,attributes:0});LH0=[[21,22,30],[247,118,142],[158,206,106],[224,175,104],[122,162,247],[187,154,247],[125,207,255],[169,177,214],[65,72,104],[255,137,157],[158,224,68],[250,186,74],[141,176,255],[199,169,255],[164,218,255],[192,202,245]]});function MV($){if($==="")return;let Z=$.indexOf(":"),X=Number($.slice(Z+1));if($.startsWith("rgb:"))return[X>>16&255,X>>8&255,X&255];if($.startsWith("pal:"))return JJ(X);return}function yd($,Z){if(Z==="fg"?$.isFgDefault():$.isBgDefault())return"";let J=Z==="fg"?$.getFgColorMode():$.getBgColorMode(),z=Z==="fg"?$.getFgColor():$.getBgColor();if(J===vd||(Z==="fg"?$.isFgRGB():$.isBgRGB()))return`rgb:${z}`;if(J===bd||(Z==="fg"?$.isFgPalette():$.isBgPalette()))return`pal:${z}`;if(J===_H0)return"";return""}function kd($){let Z=0;if($.isBold())Z|=W4.BOLD;if($.isDim())Z|=W4.DIM;if($.isItalic())Z|=W4.ITALIC;if($.isUnderline())Z|=W4.UNDERLINE;if($.isBlink())Z|=W4.BLINK;if($.isInverse())Z|=W4.INVERSE;if($.isInvisible())Z|=W4.HIDDEN;if($.isStrikethrough())Z|=W4.STRIKETHROUGH;return Z}function DH0($){return{fg:yd($,"fg"),bg:yd($,"bg"),attrs:kd($)}}function AH0($,Z){return $.fg===Z.fg&&$.bg===Z.bg&&$.attrs===Z.attrs}function PH0($){let Z=MV($.fg),X=MV($.bg);return{...Z?{fg:Z}:{},...X?{bg:X}:{},...$.attrs!==0?{attributes:$.attrs}:{}}}function md($){return $==="\u2580"||$==="\u2584"||$==="\u2588"}function hd($,Z){if($===void 0||Z===void 0)return!1;return $[0]===Z[0]&&$[1]===Z[1]&&$[2]===Z[2]}function ud($){let Z=$.getChars();if(Z!==""&&Z!==" ")return!0;return!$.isAttributeDefault()||!$.isFgDefault()||!$.isBgDefault()}function NV($,Z){if(QI===void 0){let X=$.getCell(Z);if(X)QI=X;return X}return $.getCell(Z,QI)}function cd($,Z=-1){let X=Math.min($.length-1,Z);for(let U=0;U<$.length;U++){let B=NV($,U);if(!B||B.getWidth()===0)continue;if(ud(B))X=Math.max(X,U)}if(X===-1)return[];let J=[],z=CH0,G=!1,W="",q=()=>{if(W==="")return;J.push({text:W,...PH0(z)}),W=""};for(let U=0;U<=X;U++){let B=NV($,U);if(!B||B.getWidth()===0)continue;let M=DH0(B);if(!AH0(z,M))q(),z=M,G=hd(MV(M.fg),MV(M.bg));let O=B.getChars()||" ";W+=md(O)&&G?" ":O}return q(),J}function gd($,Z,X){if(X==="fg"?Z.isFgDefault():Z.isBgDefault())return $===void 0;if(!$)return!1;let z=X==="fg"?Z.getFgColorMode():Z.getBgColorMode(),G=X==="fg"?Z.getFgColor():Z.getBgColor();if(z===vd||(X==="fg"?Z.isFgRGB():Z.isBgRGB()))return $[0]===(G>>16&255)&&$[1]===(G>>8&255)&&$[2]===(G&255);if(z===bd||(X==="fg"?Z.isFgPalette():Z.isBgPalette())){let W=JJ(G);return $[0]===W[0]&&$[1]===W[1]&&$[2]===W[2]}return!1}function RH0($,Z){return($.attributes??0)===kd(Z)&&gd($.fg,Z,"fg")&&gd($.bg,Z,"bg")}function dd($,Z,X=-1){if(!$)return Z.length===0;let J=Math.min($.length-1,X);for(let W=0;W<$.length;W++){let q=NV($,W);if(!q||q.getWidth()===0)continue;if(ud(q))J=Math.max(J,W)}if(J===-1)return Z.length===0;let z=0,G=0;for(let W=0;W<=J;W++){let q=NV($,W);if(!q||q.getWidth()===0)continue;let U=Z[z];if(!U||!RH0(U,q))return!1;let B=q.getChars()||" ",M=md(B)&&hd(U.fg,U.bg)?" ":B;if(!U.text.startsWith(M,G))return!1;if(G+=M.length,G===U.text.length)z++,G=0;else if(G>U.text.length)return!1}return z===Z.length&&G===0}var _H0=0,bd=16777216,vd=50331648,CH0,QI;var zI=c(()=>{VH();CH0=Object.freeze({fg:"",bg:"",attrs:0})});function ld($,Z){$.onData(Z.onReply),$.onTitleChange(Z.onTitle)}class YI{dirty=null;subscription;supported;constructor($){let Z=$._core?._inputHandler?.onRequestRefreshRows;if(!Z){this.supported=!1,this.subscription=null;return}this.supported=!0,this.subscription=Z((X)=>{if(!X){this.dirty={kind:"all"};return}if(!this.dirty)this.dirty={kind:"range",start:X.start,end:X.end};else if(this.dirty.kind==="range")this.dirty.start=Math.min(this.dirty.start,X.start),this.dirty.end=Math.max(this.dirty.end,X.end)})}markAll(){this.dirty={kind:"all"}}peek(){return this.dirty}clear(){this.dirty=null}dispose(){this.subscription?.dispose()}}function pd($,Z,X){return{type:$.type,baseY:$.baseY,length:$.length,start:Math.max(0,$.length-(Z+X))}}function TH0($,Z){return $.type===Z.type&&$.baseY===Z.baseY&&$.length===Z.length&&$.start===Z.start}function nd($,Z,X,J,z,G,W=null){if(!X||!TH0(X,J)||!z)return!1;let q=J.start,U=J.length-1;if(z.kind==="range")q=Math.max(q,$.baseY+z.start),U=Math.min(U,$.baseY+z.end);let B=$.baseY+$.cursorY;for(let M=q;M<=U;M++){let O=Z[M-J.start];if(!O)return!1;if(W&&M<W.baseY&&W.cache.get(W.absBase+M)===O)continue;let N=!G&&M===B?$.cursorX-1:-1;if(!dd($.getLine(M),O,N))return!1}return!0}function id($){try{return $.modes.synchronizedOutputMode===!0}catch{return!1}}function LV($){try{return $._core?.coreService?.isCursorHidden===!0}catch{return!1}}var GI=c(()=>{zI()});class RF{taskId;cwd;term;listeners=new XI;snapshot=[];cursor=null;snapshotWindow=null;snapshotEpoch=0;snapshotDirty=!1;scrollbackCache=new Map;anchor;anchorId=0;_title=null;_unwatchedSince=Date.now();_killed=!1;muteReplies=!1;cols;rows;refreshQueued=!1;refreshTracker;publishedMeta=null;scrollbackRows;constructor($){if(this.taskId=$.taskId,this.cwd=$.cwd,this.cols=$.cols??MH,this.rows=$.rows??NH,$.restore?.title)this._title=$.restore.title;this.scrollbackRows=$.scrollback??Hd(),this.term=new od.Terminal({allowProposedApi:!0,cols:this.cols,rows:this.rows,scrollback:this.scrollbackRows}),this.term.loadAddon(new Yd),this.term.unicode.activeVersion="11",this.refreshTracker=new YI(this.term),ld(this.term,{onReply:(Z)=>{if(this._killed||this.muteReplies)return;try{this.transportWrite(Z)}catch{}},onTitle:(Z)=>{if(!Z||Z===this._title)return;this._title=Z,this.listeners.publishTitle(Z)}})}get killed(){return this._killed}write($){if(this._killed||$.length===0)return;try{this.transportWrite($)}catch{this.markDead(!1)}}onExit($){if(this._killed)return $(),()=>{};return this.listeners.addExit($)}onTitleChange($){let Z=this.listeners.addTitle($);if(this._title)try{$(this._title)}catch{}return Z}paste($){if(this._killed||$.length===0)return;let Z=!1;try{Z=this.term.modes.bracketedPasteMode===!0}catch{}this.write(Z?`\x1B[200~${$}\x1B[201~`:$)}wheel($,Z,X){if(this._killed)return!1;try{let J=this.term.modes,z=Id({mouseTracking:J.mouseTrackingMode!=="none",applicationCursorKeys:J.applicationCursorKeysMode===!0,alternateScreen:this.term.buffer.active.type==="alternate"},$,Z,X);if(z!==null)return this.write(z),!0}catch{}return!1}onData($){this.ensureFreshSnapshot();let Z=this.listeners.addData($);if(this._unwatchedSince=null,this.snapshot.length>0)try{$(this.snapshot,this.cursor,this.snapshotWindow)}catch{}return()=>{if(Z(),this.listeners.dataCount===0&&this._unwatchedSince===null)this._unwatchedSince=Date.now()}}unwatchedSinceMs(){return this._unwatchedSince}get windowTitle(){return this._title}get scrollback(){return this.scrollbackRows}resizeEmulator($,Z){this.cols=$,this.rows=Z,this.term.resize($,Z),this.invalidateScrollbackCache(),this.refreshTracker.markAll()}get size(){return{cols:this.cols,rows:this.rows}}resize($,Z){if(this._killed)return;this.cols=$,this.rows=Z;try{this.term.resize($,Z),this.invalidateScrollbackCache(),this.transportResize($,Z),this.refreshTracker.markAll(),this.refreshSnapshot()}catch{this.markDead(!1)}}invalidateScrollbackCache(){this.scrollbackCache.clear(),this.anchor?.dispose(),this.anchor=void 0,this.anchorId=0,this.snapshotWindow=null,this.publishedMeta=null}capture(){return this.ensureFreshSnapshot(),this.snapshot}captureCursor(){return this.ensureFreshSnapshot(),this.cursor}captureWindow(){return this.ensureFreshSnapshot(),this.snapshotWindow}ensureFreshSnapshot(){if(!this.snapshotDirty||this._killed)return;this.refreshSnapshot()}kill(){if(this._killed)return;this.markDead(!0)}feed($){this.feedInternal($,!1)}feedReplay($){this.feedInternal($,!0)}feedInternal($,Z){if(this._killed)return;if(Z)this.muteReplies=!0;this.term.write($,()=>{if(Z)this.muteReplies=!1;if(!this.refreshTracker.supported)this.refreshTracker.markAll();this.queueRefresh()})}queueRefresh(){if(this.listeners.dataCount===0){this.snapshotDirty=!0;return}if(this.refreshQueued)return;this.refreshQueued=!0,setTimeout(()=>{this.refreshQueued=!1,this.refreshSnapshot()},16)}refreshSnapshot(){if(this._killed)return;let $=this.snapshot,Z=this.cursor,X=this.snapshotWindow;if(id(this.term)){this.queueRefresh();return}let J=this.term.buffer.active,z=LV(this.term),G=pd(J,this.rows,this.scrollbackRows),W=xd(Z,z?null:{x:J.cursorX,y:J.baseY+J.cursorY-G.start}),q=this.anchor,U=J.type!=="alternate"&&q!==void 0&&!q.isDisposed?{baseY:J.baseY,absBase:this.anchorId-q.line,cache:this.scrollbackCache}:null;if(nd(J,$,this.publishedMeta,G,this.refreshTracker.peek(),z,U)){if(this.snapshotDirty=!1,this.refreshTracker.clear(),this.publishedMeta=G,this.cursor=W,this.cursor!==Z)this.publishSnapshot();return}let M=J.type!=="alternate"&&J.baseY>0;if(M&&(this.anchor===void 0||this.anchor.isDisposed)){this.scrollbackCache.clear();let S=this.term.registerMarker(-J.cursorY-1);if(S)this.snapshotEpoch+=1,this.anchor=S,this.anchorId=S.line}let O=M&&this.anchor!==void 0&&!this.anchor.isDisposed,N=O&&this.anchor?this.anchorId-this.anchor.line:0,j=this.scrollbackCache,A=[],C=J.baseY+J.cursorY,_=G.start;for(let S=_;S<J.length;S++){let E=O&&S<J.baseY;if(E){let h=j.get(N+S);if(h){A.push(h);continue}}let T=J.getLine(S),w=!z&&S===C?J.cursorX-1:-1,y=T?cd(T,w):[],f=E?JI($[A.length],y):y;if(A.push(f),E)j.set(N+S,f)}if(O){let S=N+_;for(let E of j.keys())if(E<S)j.delete(E)}if(M){let S=this.term.registerMarker(-J.cursorY-1);if(S)this.anchorId=O?N+S.line:0,this.anchor?.dispose(),this.anchor=S}this.snapshot=wd($,A);let b=N+_;if(this.snapshotWindow=O?X?.epoch===this.snapshotEpoch&&X.startLine===b?X:{epoch:this.snapshotEpoch,startLine:b}:null,this.snapshotDirty=!1,this.refreshTracker.clear(),this.publishedMeta=G,this.cursor=W,this.snapshot===$&&this.cursor===Z&&this.snapshotWindow===X)return;this.publishSnapshot()}publishSnapshot(){this.listeners.publishData(this.snapshot,this.cursor,this.snapshotWindow)}disposeEmulator(){try{this.term.dispose()}catch{}}markDead($){if(this._killed)return;if(this._killed=!0,this.refreshTracker.dispose(),this.disposeEmulator(),$)try{this.transportKill()}catch{}let Z=this.listeners.drainExits();this.listeners.clearData();for(let X of Z)try{X()}catch{}}silentDispose(){this._killed=!0,this.refreshTracker.dispose(),this.disposeEmulator(),this.listeners.clearAll()}}var od;var WI=c(()=>{Gd();iS();ZI();A3();zI();GI();od=z1(qd(),1)});var SH0=150,TF;var OV=c(()=>{wX();Pc();AF();LH();WI();GI();LH();TF=class TF extends RF{client=null;opened=!1;pendingInput=[];pendingResize=null;unsubs=[];deadOnAttach=!1;sessionPid=void 0;pendingExitPid=null;get shellPid(){return this.sessionPid??null}serializer=new Ac;hostOffset=null;constructor($){super($);this.term.loadAddon(this.serializer),this.openRemote($)}static createdFresh($){return $.alive&&($.created??$.replay.length===0)}async openRemote($){try{let Z=await tY();if(this.killed)return;this.client=Z,cc(this),this.unsubs.push(Z.onLifecycle("close",()=>this.remoteGone()));let X=await Z.request("pty.open",{key:this.taskId,cwd:this.cwd,command:$.command,shell:$.shell,cols:this.cols,rows:this.rows,sinceOffset:$.restore?.byteOffset,sincePid:$.restore?.pid??void 0});if(this.killed)return;this.sessionPid=X.pid??null,this.hostOffset=X.offset??null;let J=$.restore!==void 0&&X.sinceValid===!0&&X.created!==!0&&(X.pid??null)===$.restore.pid;if(J&&$.restore){if(await this.restoreParked($.restore,Buffer.from(X.replay,"base64")),this.killed)return}else if(X.replay.length>0)this.feedReplay(Buffer.from(X.replay,"base64"));if(this.opened=!0,this.pendingResize){let{cols:W,rows:q}=this.pendingResize;this.pendingResize=null,this.sendResize(W,q)}let z=TF.createdFresh(X);if($.initialInput&&z)this.sendInput($.initialInput);if($.firstMessage&&z)aY(Z,this.taskId,$.engineBin,$.firstMessage).catch((W)=>M4("pty-hosted",W));for(let W of this.pendingInput.splice(0))this.sendInput(W);let G=this.pendingExitPid;if(this.pendingExitPid=null,!X.alive)this.deadOnAttach=X.replay.length>0||J,this.remoteGone();else if(G!==null&&G===this.sessionPid)this.remoteGone();else if(X.replay.length>0&&!J){if(this.sendResize(this.cols,Math.max(1,this.rows-1)),await Promise.all([this.nextDataOrTimeout(500),new Promise((W)=>setTimeout(W,SH0))]),!this.killed)this.sendResize(this.cols,this.rows)}}catch(Z){M4("pty-hosted",Z),this.remoteGone()}}transportWrite($){if(!this.opened){this.pendingInput.push($);return}this.sendInput($)}transportResize($,Z){if(!this.opened){this.pendingResize={cols:$,rows:Z};return}this.sendResize($,Z)}transportKill(){let $=this.client;if($)$.request("pty.kill",{key:this.taskId}).catch(()=>{});this.cleanup()}kill(){if(this.killed){this.client?.request("pty.kill",{key:this.taskId}).catch(()=>{});return}super.kill()}capturePark(){if(this.killed||!this.opened||this.hostOffset===null||this.sessionPid===void 0)return null;try{return{serialized:Buffer.from(this.serializer.serialize({scrollback:this.scrollback}),"utf8").toString(),title:this.windowTitle,cursorHidden:LV(this.term),cols:this.cols,rows:this.rows,byteOffset:this.hostOffset,pid:this.sessionPid}}catch{return null}}async restoreParked($,Z){let X=this.cols,J=this.rows;if($.cols!==X||$.rows!==J)this.resizeEmulator($.cols,$.rows);if(this.feedReplay($.serialized+($.cursorHidden?"\x1B[?25l":"")),Z.byteLength>0)this.feedReplay(Z);if(await new Promise((z)=>{let G=this.onExit(z);this.term.write("",()=>{G(),z()})}),!this.killed&&(this.cols!==X||this.rows!==J))this.resizeEmulator(X,J)}detach($={}){let Z=this.client;this.cleanup();let X=lc(this.taskId);if(Z&&X===0)Z.request("pty.detach",{key:this.taskId,parked:$.parked===!0,parkedScreenBytes:$.parkedScreenBytes}).catch(()=>{});this.silentDispose()}sendInput($){this.client?.request("pty.write",{key:this.taskId,data:$}).catch(()=>this.remoteGone())}sendResize($,Z){this.client?.request("pty.resize",{key:this.taskId,cols:$,rows:Z}).catch(()=>{})}dataWaiter=null;_lastOutputAt=null;lastOutputAtMs(){return this._lastOutputAt}nextDataOrTimeout($){return new Promise((Z)=>{let X=setTimeout(()=>{this.dataWaiter=null,Z()},$);this.dataWaiter=()=>{this.dataWaiter=null,clearTimeout(X),Z()}})}feedFrame($){this.dataWaiter?.(),this._lastOutputAt=Date.now();let Z=Buffer.from($,"base64");if(this.hostOffset!==null)this.hostOffset+=Z.byteLength;this.feed(Z)}remoteExited($){if(this.killed)return;if($===void 0){this.remoteGone();return}if(this.sessionPid===void 0){this.pendingExitPid=$;return}if($!==null&&$===this.sessionPid)this.remoteGone()}remoteGone(){this.cleanup(),this.markDead(!1)}cleanup(){dc(this);for(let $ of this.unsubs.splice(0))try{$()}catch{}}}});class jV{taskId;cwd;listeners=new Set;buffer="";writes=[];_killed=!1;_title=null;exitListeners=new Set;titleListeners=new Set;pastes=[];deadOnAttach=!1;wheels=[];_cols;_rows;_cursor=null;constructor($){if(this.taskId=$.taskId,this.cwd=$.cwd,this._cols=$.cols??MH,this._rows=$.rows??NH,$.initialInput)this.writes.push($.initialInput)}get killed(){return this._killed}get writeLog(){return this.writes}get geometry(){return{cols:this._cols,rows:this._rows}}feed($){if(this._killed)return;this.buffer+=$;let Z=YV($);if(Z&&Z!==this._title){this._title=Z;for(let J of this.titleListeners)try{J(Z)}catch{}}let X=this.capture();for(let J of this.listeners)try{J(X,this._cursor,null)}catch{}}write($){if(this._killed)return;this.writes.push($)}onData($){if(this.listeners.add($),this.buffer!=="")try{$(this.capture(),this._cursor,null)}catch{}return()=>{this.listeners.delete($)}}resize($,Z){if(this._killed)return;this._cols=$,this._rows=Z}capture(){return FV(this.buffer)}setCursor($){this._cursor=$}captureCursor(){if(this._killed)return null;return this._cursor}captureWindow(){return null}kill(){if(this._killed)return;this._killed=!0,this.listeners.clear();let $=[...this.exitListeners];this.exitListeners.clear();for(let Z of $)Z()}paste($){if(this._killed)return;this.pastes.push($)}wheel($,Z,X){if(this._killed)return!1;return this.wheels.push({direction:$,col:Z,row:X}),!1}onExit($){if(this._killed)return $(),()=>{};return this.exitListeners.add($),()=>{this.exitListeners.delete($)}}onTitleChange($){if(this.titleListeners.add($),this._title)try{$(this._title)}catch{}return()=>{this.titleListeners.delete($)}}}var qI=c(()=>{A3();VH()});import{spawn as IH0}from"child_process";class VV{taskId;cwd;proc;listeners=new Set;buffer="";_killed=!1;_title=null;exitListeners=new Set;titleListeners=new Set;cols;rows;constructor($){this.taskId=$.taskId,this.cwd=$.cwd,this.cols=$.cols??MH,this.rows=$.rows??NH;let Z=GV($),X=Z[0]??q5(),J=Z.slice(1);if(this.proc=IH0(X,J,{cwd:$.cwd,env:BH(process.env,{TERM:process.env.TERM??"xterm-256color",COLUMNS:String(this.cols),LINES:String(this.rows),KOBE_TERMINAL_PIPE:"1"}),stdio:["pipe","pipe","pipe"]}),this.proc.stdout?.setEncoding("utf8"),this.proc.stderr?.setEncoding("utf8"),this.proc.stdout?.on("data",(z)=>this.append(z)),this.proc.stderr?.on("data",(z)=>this.append(z)),this.proc.stdin?.on("error",()=>this.markDead(!1)),this.proc.on("error",(z)=>{this.append(`
|
|
672
672
|
[Rove terminal] failed to start shell: ${z.message}
|
|
673
673
|
`),this.markDead(!1)}),this.proc.on("exit",()=>this.markDead(!1)),this.proc.unref?.(),$.initialInput)this.write($.initialInput)}get killed(){return this._killed}write($){if(this._killed||$.length===0)return;let Z=this.proc.stdin;if(!Z||Z.destroyed)return;let X=$.replace(/\r/g,`
|
|
674
674
|
`);try{Z.write(X)}catch{this.markDead(!1)}}onData($){if(this.listeners.add($),this.buffer!=="")try{$(this.capture(),null,null)}catch{}return()=>{this.listeners.delete($)}}resize($,Z){if(this._killed)return;this.cols=$,this.rows=Z}capture(){return FV(this.buffer)}captureCursor(){return null}captureWindow(){return null}kill(){if(this._killed)return;this.markDead(!0)}append($){if(this._killed)return;if(this.buffer+=$,this.buffer.length>yS)this.buffer=this.buffer.slice(this.buffer.length-yS);let Z=YV($);if(Z&&Z!==this._title){this._title=Z;for(let J of this.titleListeners)try{J(Z)}catch{}}let X=this.capture();for(let J of this.listeners)try{J(X,null,null)}catch{}}markDead($){if(this._killed)return;if(this._killed=!0,$)try{this.proc.kill("SIGTERM")}catch{}let Z=[...this.exitListeners];this.listeners.clear(),this.exitListeners.clear();for(let X of Z)try{X()}catch{}}paste($){this.write($)}wheel(){return!1}onExit($){if(this._killed)return $(),()=>{};return this.exitListeners.add($),()=>{this.exitListeners.delete($)}}onTitleChange($){if(this.titleListeners.add($),this._title)try{$(this._title)}catch{}return()=>{this.titleListeners.delete($)}}}var HI=c(()=>{sj();A3();VH()});function rd($){let Z=process.env.KOBE_TERMINAL_BACKEND??"hosted";if(Z==="mock")return new jV($);if(Z==="pipe")return new VV($);if(Z==="bun-pty")return new ad($);if(Z==="hosted")return new TF($);throw Error(`unknown terminal backend: ${Z}`)}var ad;var sd=c(()=>{sj();OV();qI();HI();A3();WI();qI();HI();OV();ad=class ad extends RF{proc;constructor($){super($);if(this.proc=Bun.spawn(GV($),{cwd:$.cwd,env:BH(process.env,{TERM:"xterm-256color",COLUMNS:String(this.cols),LINES:String(this.rows),BASH_SILENCE_DEPRECATION_WARNING:"1",KOBE_TERMINAL_PTY:"1"}),terminal:{cols:this.cols,rows:this.rows,name:"xterm-256color",data:(Z,X)=>this.feed(X),exit:()=>this.markDead(!1)}}),this.proc.exited.then(()=>this.markDead(!1),()=>this.markDead(!1)),this.proc.unref?.(),$.initialInput)this.transportWrite($.initialInput)}get shellPid(){return this.proc.pid??null}transportWrite($){this.proc.terminal?.write($)}transportResize($,Z){this.proc.terminal?.resize($,Z)}transportKill(){try{this.proc.terminal?.close()}catch{}try{this.proc.kill("SIGTERM")}catch{}}}});class td{map=new Map;parked=new Map;factory;sweepTimer=null;constructor($=rd){this.factory=$}ensureSweeper(){if(this.sweepTimer)return;let $=setInterval(()=>this.parkIdle(EH0),wH0);$.unref?.(),this.sweepTimer=$}stopSweeper(){if(this.sweepTimer)clearInterval(this.sweepTimer);this.sweepTimer=null}parkIdle($,Z=Date.now()){let X=[];for(let[J,z]of this.map){if(z.killed)continue;if(!z.detach||!z.unwatchedSinceMs)continue;let G=z.unwatchedSinceMs();if(G===null||Z-G<$)continue;let W=z.lastOutputAtMs?.()??null;if(W!==null&&Z-W<xH0)continue;let q=z.capturePark?.()??null;try{z.detach({parked:q!==null,parkedScreenBytes:q?Buffer.byteLength(q.serialized):void 0})}catch{}if(this.map.delete(J),q)this.parked.set(J,q);X.push(J)}if(X.length>0&&Iq()){let J=Math.round(process.memoryUsage().rss/1048576);console.error(`[rove pty] parked ${X.length} idle terminal(s); ${this.map.size} live; rss=${J}MB`)}return X}acquire($,Z,X={}){let J=this.map.get($);if(J&&!J.killed)return J;if(J)this.map.delete($);let z=this.parked.get($);if(z)this.parked.delete($);let G=this.factory({taskId:$,cwd:Z,...X,...z?{restore:z}:{}});return this.map.set($,G),this.ensureSweeper(),G}get($){let Z=this.map.get($);if(!Z)return null;if(Z.killed)return this.map.delete($),null;return Z}has($){return this.get($)!==null}release($){let Z=this.map.get($);if(this.map.delete($),this.parked.delete($),!Z)return;try{Z.kill()}catch{}}releaseWhere($){let Z=Array.from(this.map.keys()).filter($);for(let X of Z)this.release(X);for(let X of Array.from(this.parked.keys()).filter($))this.parked.delete(X)}releaseAll(){let $=Array.from(this.map.keys());for(let Z of $)this.release(Z);this.parked.clear(),this.stopSweeper()}detachAll(){let $=Array.from(this.map.values());this.map.clear(),this.parked.clear(),this.stopSweeper();for(let Z of $)try{if(Z.detach)Z.detach();else Z.kill()}catch{}}reset($,Z,X={}){return this.release($),this.acquire($,Z,X)}resetIfCurrent($,Z,X,J={}){if(Z.killed||this.map.get($)!==Z)return null;return this.reset($,X,J)}get size(){return this.map.size}entries(){return[...this.map]}}function i$(){if(!UI)UI=new td;return UI}var EH0=120000,wH0=30000,xH0=30000,UI=null;var W8=c(()=>{V5();sd()});function MI($,Z=[],X=null){FI.update((J)=>{if(!$&&!J.armed&&J.options.length===0)return J;return{...J,armed:$,armedAt:$?X:null,options:$?Z:[]}})}function NI($){FI.update((Z)=>({...Z,armed:!1,armedAt:null,options:[],entries:[...Z.entries,{...$,id:yH0++}].slice(-fH0)}))}var BI=4000,KI=180,fH0=3,FI,yH0=1,ed;var LI=c(()=>{FZ();FI=n$({armed:!1,armedAt:null,options:[],entries:[]}),ed=FI});function Xl($,Z){if(Z.modalOwner!==void 0){let X=$.findIndex((J)=>J.modalMember===Z.modalOwner);if(X>=0){$.splice(X,0,Z);return}}$.push(Z)}function gH0($){let Z=[],X=$.name;if(X)Z.push(X);if(X==="return")Z.push("enter");if(X==="enter")Z.push("return");if(X==="backspace"&&$.raw==="\b"&&!$.meta&&!$.option)Z.push("ctrl+h");if(X==="linefeed"&&!$.meta&&!$.option)Z.push("ctrl+j");let J=[];if($.ctrl)J.push("ctrl");if($.meta)J.push("cmd");if($.option)J.push("alt");let z=$.shift&&X!==void 0&&X.length===1&&J.length===0;if($.shift&&X&&X.length>1)J.push("shift");if(J.length===0){if(z)return[...Z.map((W)=>`shift+${W}`),...Z];return Z}let G=`${J.join("+")}+`;return Z.map((W)=>G+W)}function Jl($){QJ={...$},F9()}function Ql(){QJ={...CH},F9()}function H6(){return QJ}function F9(){if(_V!==null)clearTimeout(_V);_V=null,_H=null,VI=!1,MI(!1)}function zl($,Z,X){F9(),_H=$,VI=X,_V=setTimeout(F9,QJ.timeoutMs),MI(!0,Z,$)}function Yl($,Z=Date.now()){if(QJ.key===null)return!1;if(!Gl($))return!1;return zl(Z,Wl($),jI($)),!0}function bH0($,Z,X,J){for(let z=Z-1;z>=0;z--){let G=$[z]?.config();if(!G||G.enabled===!1)continue;let W=G.bindings.find((q)=>Boolean(q.prefix)===J&&X.includes(q.key));if(W){if(!$l.has(W.key))$l.add(W.key),console.error(`[rove keymap] "${W.key}" matched two ENABLED bindings \u2014 the lower one is shadowed by LIFO order. Gate one of them off (see tui-react/lib/keymap.ts header).`);return}if(G.modal)return}}function Gl($){for(let Z=$.length-1;Z>=0;Z--){let X=$[Z]?.config();if(!X||X.enabled===!1)continue;if(X.bindings.some((J)=>J.prefix===!0))return!0;if(X.modal)return!1}return!1}function jI($){for(let Z=$.length-1;Z>=0;Z--){let X=$[Z]?.config();if(!X||X.enabled===!1)continue;if(X.bindings.some((J)=>J.passthrough))return!0;if(X.modal)return!1}return!1}function Wl($){let Z=[],X=new Set;for(let J=$.length-1;J>=0;J--){let z=$[J]?.config();if(!z||z.enabled===!1)continue;for(let G of z.bindings){if(G.prefix!==!0||X.has(G.key))continue;X.add(G.key),Z.push({stroke:G.key,action:G.id??G.key})}if(z.modal)break}return Z}function ql($){let Z=new Set,X=new Set,J=!1;for(let z=$.length-1;z>=0;z--){let G=$[z]?.config();if(!G||G.enabled===!1)continue;for(let W of G.bindings){if(W.passthrough)J=!0;if(!W.id)continue;(W.prefix===!0?X:Z).add(W.id)}if(G.modal)break}return{direct:Z,prefix:X,inputPassthrough:J}}function Zl($,Z,X,J){for(let z=$.length-1;z>=0;z--){let G=$[z];if(!G)continue;let W=G.config();if(W.enabled===!1)continue;let q;for(let U of X)if(q=W.bindings.find((B)=>Boolean(B.prefix)===J&&B.key===U),q)break;if(q){if(!W.modal&&Iq())bH0($,z,X,J);return q.cmd(Z,q.slot),q}if(W.modal)return null}return null}function _I($,Z,X=Date.now()){if(Z.defaultPrevented||OI)return!1;let J=$.slice(),z=gH0(Z);OI=!0;try{if(_H!==null&&jI(J)!==VI)F9();if(_H!==null){let W=QJ.key??"",q=X-_H>QJ.timeoutMs;if(_H=null,q)F9();else{if(z.includes("escape"))return F9(),Z.preventDefault(),!0;F9();let U=Zl(J,Z,z,!0);return NI({prefixKey:W,stroke:z[0]??"",action:U?U.id??U.key:null,at:X}),Z.preventDefault(),!0}}if(QJ.key!==null&&z.includes(QJ.key)){if(Gl(J))return zl(X,Wl(J),jI(J)),Z.preventDefault(),!0}let G=Zl(J,Z,z,!1);if(G){if(G.id&&G.key.includes("+")&&!G.key.startsWith("shift+"))NI({prefixKey:"",stroke:G.key,action:G.id??G.key,at:X});return Z.preventDefault(),!0}return!1}finally{OI=!1}}var OI=!1,CH,QJ,_H=null,VI=!1,_V=null,$l;var TZ=c(()=>{V5();LI();CH={key:"ctrl+a",timeoutMs:5000},QJ={...CH};$l=new Set});var CV;var CI=c(()=>{CV={$schema:"https://opencode.ai/theme.json",defs:{darkBg:"#141413",darkBgRaised:"#1A1917",darkBgInset:"#2B2A27",darkBgMenu:"#33312E",darkBorderSubtle:"#2B2A27",darkBorder:"#3A3835",darkBorderActive:"#5C5853",darkText:"#EAE7DF",darkTextMuted:"#A9A39A",darkTextSubtle:"#6B665F",darkPrimary:"#CC785C",darkSecondary:"#D4967E",darkAccent:"#CC785C",darkAccentHover:"#E0AB96",darkRed:"#D47563",darkOrange:"#D97757",darkYellow:"#E8C96B",darkGreen:"#9ACA86",darkBlue:"#61AAF2",darkViolet:"#9B87F5",darkTerracotta:"#BF4D43",lightBg:"#FAF9F5",lightBgRaised:"#F0EEE6",lightBgInset:"#EAE7DF",lightBgMenu:"#E2DED4",lightBorderSubtle:"#EAE7DF",lightBorder:"#D9D5CC",lightBorderActive:"#A9A39A",lightText:"#1A1917",lightTextMuted:"#6B665F",lightTextSubtle:"#8D877D",lightPrimary:"#C96442",lightSecondary:"#B85F3D",lightAccent:"#CC785C",lightAccentHover:"#B85F3D",lightRed:"#A84B3A",lightOrange:"#C96442",lightYellow:"#8A6220",lightGreen:"#2E7C4C",lightBlue:"#207FDE",lightViolet:"#7B5BB6",lightTerracotta:"#BF4D43"},theme:{primary:{dark:"darkPrimary",light:"lightPrimary"},secondary:{dark:"darkSecondary",light:"lightSecondary"},accent:{dark:"darkAccent",light:"lightAccent"},error:{dark:"darkRed",light:"lightRed"},warning:{dark:"darkYellow",light:"lightYellow"},success:{dark:"darkGreen",light:"lightGreen"},info:{dark:"darkBlue",light:"lightBlue"},text:{dark:"darkText",light:"lightText"},textMuted:{dark:"darkTextMuted",light:"lightTextMuted"},background:{dark:"darkBg",light:"lightBg"},backgroundPanel:{dark:"darkBgRaised",light:"lightBgRaised"},backgroundElement:{dark:"darkBgInset",light:"lightBgInset"},backgroundMenu:{dark:"darkBgMenu",light:"lightBgMenu"},backgroundDialog:{dark:"darkBgRaised",light:"lightBgRaised"},border:{dark:"darkBorder",light:"lightBorder"},borderActive:{dark:"darkBorderActive",light:"lightBorderActive"},borderSubtle:{dark:"darkBorderSubtle",light:"lightBorderSubtle"},diffAdded:{dark:"darkGreen",light:"lightGreen"},diffRemoved:{dark:"darkRed",light:"lightRed"},diffContext:{dark:"darkTextMuted",light:"lightTextSubtle"},diffHunkHeader:{dark:"darkTextMuted",light:"lightTextSubtle"},diffHighlightAdded:{dark:"#B5E0A0",light:"#1F6638"},diffHighlightRemoved:{dark:"#E89180",light:"#8A3A2C"},diffAddedBg:{dark:"#1F2A1F",light:"#E5EEDF"},diffRemovedBg:{dark:"#2A1F1C",light:"#F5DAD3"},diffContextBg:{dark:"darkBgRaised",light:"lightBgRaised"},diffLineNumber:{dark:"darkTextSubtle",light:"lightTextSubtle"},diffAddedLineNumberBg:{dark:"#1A2419",light:"#D5E2CC"},diffRemovedLineNumberBg:{dark:"#241915",light:"#EBC8BE"},markdownText:{dark:"darkText",light:"lightText"},markdownHeading:{dark:"darkPrimary",light:"lightPrimary"},markdownLink:{dark:"darkAccent",light:"lightAccent"},markdownLinkText:{dark:"darkBlue",light:"lightBlue"},markdownCode:{dark:"darkSecondary",light:"lightSecondary"},markdownBlockQuote:{dark:"darkTextMuted",light:"lightTextMuted"},markdownEmph:{dark:"darkYellow",light:"lightYellow"},markdownStrong:{dark:"darkPrimary",light:"lightPrimary"},markdownHorizontalRule:{dark:"darkTextMuted",light:"lightTextMuted"},markdownListItem:{dark:"darkAccent",light:"lightAccent"},markdownListEnumeration:{dark:"darkBlue",light:"lightBlue"},markdownImage:{dark:"darkAccent",light:"lightAccent"},markdownImageText:{dark:"darkBlue",light:"lightBlue"},markdownCodeBlock:{dark:"darkText",light:"lightText"},markdownQuote:{dark:"darkTextMuted",light:"lightTextMuted"},syntaxComment:{dark:"darkTextSubtle",light:"lightTextSubtle"},syntaxKeyword:{dark:"darkPrimary",light:"lightPrimary"},syntaxFunction:{dark:"darkBlue",light:"lightBlue"},syntaxVariable:{dark:"darkText",light:"lightText"},syntaxString:{dark:"darkGreen",light:"lightGreen"},syntaxNumber:{dark:"darkOrange",light:"lightOrange"},syntaxType:{dark:"darkViolet",light:"lightViolet"},syntaxOperator:{dark:"darkSecondary",light:"lightSecondary"},syntaxPunctuation:{dark:"darkText",light:"lightText"},selectedListItemText:{dark:"darkBg",light:"lightBg"}}}});var DV;var DI=c(()=>{DV={$schema:"https://opencode.ai/theme.json",defs:{darkStep1:"#0a0a0a",darkStep2:"#111111",darkStep3:"#181818",darkStep4:"#1f1f1f",darkStep5:"#2a2a2a",darkStep6:"#363636",darkStep7:"#444444",darkStep8:"#5a5a5a",darkStep9:"#7a7a7a",darkStep10:"#9a9a9a",darkStep11:"#909090",darkStep12:"#e8e8e8",darkAccent:"#7da5c8",darkAccentBright:"#9bc3e3",darkRed:"#e06c75",darkOrange:"#d6a668",darkGreen:"#7fd88f",darkCyan:"#7da5c8",darkYellow:"#d6a668",lightStep1:"#fafafa",lightStep2:"#f3f3f3",lightStep3:"#ececec",lightStep4:"#e2e2e2",lightStep5:"#d4d4d4",lightStep6:"#bdbdbd",lightStep7:"#9c9c9c",lightStep8:"#7c7c7c",lightStep9:"#5b5b5b",lightStep10:"#404040",lightStep11:"#6c6c6c",lightStep12:"#1a1a1a",lightAccent:"#3d6f9f",lightAccentBright:"#1a4f87",lightRed:"#c9343a",lightOrange:"#a06b1a",lightGreen:"#3d9a57",lightCyan:"#3d6f9f",lightYellow:"#a06b1a"},theme:{primary:{dark:"darkStep12",light:"lightStep12"},secondary:{dark:"darkAccentBright",light:"lightAccentBright"},accent:{dark:"darkAccent",light:"lightAccent"},error:{dark:"darkRed",light:"lightRed"},warning:{dark:"darkOrange",light:"lightOrange"},success:{dark:"darkGreen",light:"lightGreen"},info:{dark:"darkCyan",light:"lightCyan"},text:{dark:"darkStep12",light:"lightStep12"},textMuted:{dark:"darkStep11",light:"lightStep11"},background:{dark:"darkStep1",light:"lightStep1"},backgroundPanel:{dark:"darkStep2",light:"lightStep2"},backgroundElement:{dark:"darkStep3",light:"lightStep3"},backgroundMenu:{dark:"darkStep4",light:"lightStep4"},border:{dark:"darkStep6",light:"lightStep6"},borderActive:{dark:"darkStep8",light:"lightStep8"},borderSubtle:{dark:"darkStep4",light:"lightStep4"},diffAdded:{dark:"#7fd88f",light:"#3d9a57"},diffRemoved:{dark:"#e06c75",light:"#c9343a"},diffContext:{dark:"darkStep10",light:"lightStep10"},diffHunkHeader:{dark:"darkStep10",light:"lightStep10"},diffHighlightAdded:{dark:"#9be5ad",light:"#2d7a3f"},diffHighlightRemoved:{dark:"#f08490",light:"#a82530"},diffAddedBg:{dark:"#15241a",light:"#d8efdc"},diffRemovedBg:{dark:"#2a1518",light:"#f5dadc"},diffContextBg:{dark:"darkStep2",light:"lightStep2"},diffLineNumber:{dark:"darkStep9",light:"lightStep9"},diffAddedLineNumberBg:{dark:"#0f1c14",light:"#c5deca"},diffRemovedLineNumberBg:{dark:"#221012",light:"#e5c5c8"},markdownText:{dark:"darkStep12",light:"lightStep12"},markdownHeading:{dark:"darkStep12",light:"lightStep12"},markdownLink:{dark:"darkAccent",light:"lightAccent"},markdownCode:{dark:"darkAccentBright",light:"lightAccentBright"},markdownCodeBlock:{dark:"darkStep12",light:"lightStep12"},markdownQuote:{dark:"darkStep11",light:"lightStep11"},selectedListItemText:{dark:"darkStep1",light:"lightStep1"}}}});var AV;var AI=c(()=>{AV={$schema:"https://opencode.ai/theme.json",defs:{darkStep1:"#1a1b26",darkStep2:"#1e2030",darkStep3:"#222436",darkStep4:"#292e42",darkStep5:"#3b4261",darkStep6:"#545c7e",darkStep7:"#737aa2",darkStep8:"#9099b2",darkStep9:"#82aaff",darkStep10:"#89b4fa",darkStep11:"#828bb8",darkStep12:"#c8d3f5",darkRed:"#ff757f",darkOrange:"#ff966c",darkYellow:"#ffc777",darkGreen:"#c3e88d",darkCyan:"#86e1fc",darkPurple:"#c099ff",lightStep1:"#e1e2e7",lightStep2:"#d5d6db",lightStep3:"#c8c9ce",lightStep4:"#b9bac1",lightStep5:"#a8aecb",lightStep6:"#9699a8",lightStep7:"#737a8c",lightStep8:"#5a607d",lightStep9:"#2e7de9",lightStep10:"#1a6ce7",lightStep11:"#8990a3",lightStep12:"#3760bf",lightRed:"#f52a65",lightOrange:"#b15c00",lightYellow:"#8c6c3e",lightGreen:"#587539",lightCyan:"#007197",lightPurple:"#9854f1"},theme:{primary:{dark:"darkStep9",light:"lightStep9"},secondary:{dark:"darkPurple",light:"lightPurple"},accent:{dark:"darkOrange",light:"lightOrange"},error:{dark:"darkRed",light:"lightRed"},warning:{dark:"darkOrange",light:"lightOrange"},success:{dark:"darkGreen",light:"lightGreen"},info:{dark:"darkStep9",light:"lightStep9"},text:{dark:"darkStep12",light:"lightStep12"},textMuted:{dark:"darkStep11",light:"lightStep11"},background:{dark:"darkStep1",light:"lightStep1"},backgroundPanel:{dark:"darkStep2",light:"lightStep2"},backgroundElement:{dark:"darkStep3",light:"lightStep3"},border:{dark:"darkStep7",light:"lightStep7"},borderActive:{dark:"darkStep8",light:"lightStep8"},borderSubtle:{dark:"darkStep6",light:"lightStep6"},diffAdded:{dark:"#4fd6be",light:"#1e725c"},diffRemoved:{dark:"#c53b53",light:"#c53b53"},diffContext:{dark:"#828bb8",light:"#7086b5"},diffHunkHeader:{dark:"#828bb8",light:"#7086b5"},diffHighlightAdded:{dark:"#b8db87",light:"#4db380"},diffHighlightRemoved:{dark:"#e26a75",light:"#f52a65"},diffAddedBg:{dark:"#20303b",light:"#d5e5d5"},diffRemovedBg:{dark:"#37222c",light:"#f7d8db"},diffContextBg:{dark:"darkStep2",light:"lightStep2"},diffLineNumber:{dark:"#8f909a",light:"#59595b"},diffAddedLineNumberBg:{dark:"#1b2b34",light:"#c5d5c5"},diffRemovedLineNumberBg:{dark:"#2d1f26",light:"#e7c8cb"},markdownText:{dark:"darkStep12",light:"lightStep12"},markdownHeading:{dark:"darkPurple",light:"lightPurple"},markdownLink:{dark:"darkStep9",light:"lightStep9"},markdownLinkText:{dark:"darkCyan",light:"lightCyan"},markdownCode:{dark:"darkGreen",light:"lightGreen"},markdownBlockQuote:{dark:"darkYellow",light:"lightYellow"},markdownEmph:{dark:"darkYellow",light:"lightYellow"},markdownStrong:{dark:"darkOrange",light:"lightOrange"},markdownHorizontalRule:{dark:"darkStep11",light:"lightStep11"},markdownListItem:{dark:"darkStep9",light:"lightStep9"},markdownListEnumeration:{dark:"darkCyan",light:"lightCyan"},markdownImage:{dark:"darkStep9",light:"lightStep9"},markdownImageText:{dark:"darkCyan",light:"lightCyan"},markdownCodeBlock:{dark:"darkStep12",light:"lightStep12"},syntaxComment:{dark:"darkStep11",light:"lightStep11"},syntaxKeyword:{dark:"darkPurple",light:"lightPurple"},syntaxFunction:{dark:"darkStep9",light:"lightStep9"},syntaxVariable:{dark:"darkRed",light:"lightRed"},syntaxString:{dark:"darkGreen",light:"lightGreen"},syntaxNumber:{dark:"darkOrange",light:"lightOrange"},syntaxType:{dark:"darkYellow",light:"lightYellow"},syntaxOperator:{dark:"darkCyan",light:"lightCyan"},syntaxPunctuation:{dark:"darkStep12",light:"lightStep12"}}}});var Hl;var Ul=c(()=>{CI();DI();AI();Hl={claude:CV,conductor:DV,tokyonight:AV}});import{RGBA as eY}from"@opentui/core";function Bl($){return Boolean(PI[$])}function SF($,Z="dark"){let X=$.defs??{};function J(U,B=[]){if(typeof U==="string"){if(U==="transparent"||U==="none")return eY.fromInts(0,0,0,0);if(U.startsWith("#"))return eY.fromHex(U);if(B.includes(U))return eY.fromInts(0,0,0);let M=X[U]??$.theme[U];if(M===void 0)return eY.fromInts(0,0,0);return J(M,[...B,U])}return J(U[Z],B)}let z={};for(let[U,B]of Object.entries($.theme))z[U]=J(B);let G=z.text??eY.fromHex("#ffffff"),W=z.background??eY.fromHex("#000000");return{...{primary:z.primary??G,secondary:z.secondary??G,accent:z.accent??z.primary??G,error:z.error??G,warning:z.warning??G,success:z.success??G,info:z.info??G,text:G,textMuted:z.textMuted??G,background:W,backgroundPanel:z.backgroundPanel??W,backgroundElement:z.backgroundElement??W,backgroundMenu:z.backgroundMenu??z.backgroundElement??W,backgroundDialog:z.backgroundDialog??z.backgroundPanel??W,border:z.border??G,borderActive:z.borderActive??z.border??G,borderSubtle:z.borderSubtle??z.border??G,diffAdded:z.diffAdded??z.success??G,diffRemoved:z.diffRemoved??z.error??G,diffContext:z.diffContext??z.textMuted??G,diffHunkHeader:z.diffHunkHeader??z.textMuted??G,diffAddedBg:z.diffAddedBg??W,diffRemovedBg:z.diffRemovedBg??W,selectedListItemText:z.selectedListItemText??W},...z}}function Kl($,Z,X){let J={...$,focusAccent:$[Z]??$.primary};if(!X)return J;let z=eY.fromInts(0,0,0,0);return{...J,background:z,backgroundPanel:z}}var PI,nQ;var PV=c(()=>{Ul();PI=Hl;nQ=["primary","success","info"]});function X4($){return Fl.useSyncExternalStore($.subscribe,$.get,$.get)}var Fl;var M9=c(()=>{Fl=z1(H1(),1)});var R;var a0=c(()=>{R=z1($S(),1)});import{RGBA as hH0}from"@opentui/core";function uH0(){return Object.keys(q8.get().themes)}function DH($){return Boolean(q8.get().themes[$])}function RI($,Z){if(!$)return!1;if(!Z||typeof Z!=="object"||!Z.theme)return!1;return q8.update((X)=>({...X,themes:{...X.themes,[$]:Z}})),!0}function Ml(){return q8.get().active}function Nl($){if(!DH($))return!1;return q8.update((Z)=>({...Z,active:$})),!0}function Ll(){return q8.get().transparentBackground}function Ol($){q8.update((Z)=>({...Z,transparentBackground:$}))}function jl(){return q8.get().focusAccent}function Vl($){q8.update((Z)=>({...Z,focusAccent:$}))}function cH0($){let Z=$.themes[$.active];if(Z)return SF(Z,$.mode);let X=$.themes.claude??$.themes.opencode??Object.values($.themes)[0];if(!X)return SF({theme:{background:"#000000",text:"#ffffff"}},$.mode);return SF(X,$.mode)}function Cl($){SZ.useMemo(()=>{q8.update((G)=>({...G,mode:$.mode??G.mode,active:$.theme&&G.themes[$.theme]?$.theme:G.active}))},[]);let Z=X4(q8),X=L4(),J=SZ.useMemo(()=>Kl(cH0(Z),Z.focusAccent,Z.transparentBackground),[Z]);SZ.useEffect(()=>{if(X?.screenMode==="split-footer")return;X?.setBackgroundColor(J.background??hH0.fromInts(0,0,0))},[X,J]);let z=SZ.useMemo(()=>({theme:J,selected:Z.active,transparentBackground:Z.transparentBackground,focusAccent:Z.focusAccent,mode:()=>Z.mode,set(G){if(!DH(G))return!1;return q8.update((W)=>({...W,active:G})),!0},setMode(G){q8.update((W)=>({...W,mode:G}))},setTransparentBackground(G){q8.update((W)=>({...W,transparentBackground:G}))},setFocusAccent(G){q8.update((W)=>({...W,focusAccent:G}))},all:uH0,has:DH}),[J,Z]);return R.jsxDEV(_l.Provider,{value:z,children:$.children},void 0,!1,void 0,this)}function d0(){let $=SZ.useContext(_l);if(!$)throw Error("Theme context must be used within a context provider");return $}var SZ,q8,_l;var X$=c(async()=>{FZ();PV();M9();PV();a0();await v4();SZ=z1(H1(),1),q8=wO({themes:{...PI},active:"claude",mode:"dark",transparentBackground:!0,focusAccent:"primary"});_l=SZ.createContext(null)});var Dl,Al;var Pl=c(()=>{Dl={title:"ROUTINES",holdingDaemon:"keeping the daemon awake",notHolding:"none active",paused:"paused",newTitle:"New routine",fieldName:"name",fieldRepo:"repo",fieldPrompt:"prompt",fieldSchedule:"schedule (five-field cron)",namePlaceholder:"weekday dependency audit",promptPlaceholder:"Audit dependencies and summarize risky changes.",needRepo:"Open a project first \u2014 a routine runs in one.",cronInvalid:"not a five-field cron",cronField:{minute:"min",hour:"hour",dayOfMonth:"day",month:"month",dayOfWeek:"weekday"},cronNever:"valid, but never fires",missing:{name:"Give it a name.",repo:"Pick a project.",prompt:"Say what it should do.",schedule:"That schedule will not run."},empty:"No routines scheduled.",emptyHint:"Press n to create one.",precheck:"precheck: {command}",recentRuns:"RECENT RUNS",noRuns:"Not run yet.",noSelection:"A routine runs its prompt in a project on a schedule.",running:"Running {name}\u2026",ranWith:"{name}: {status}",runNow:"[ run now ]",runNowHint:"try it without waiting for the schedule",deleteTitle:"Delete routine?",deleteBody:"{name} and its run history will be removed. Tasks it already created are untouched.",deleteButton:"Delete"},Al={title:"\u4F8B\u884C\u4EFB\u52A1",holdingDaemon:"\u6B63\u5728\u4FDD\u6301\u5B88\u62A4\u8FDB\u7A0B\u5E38\u9A7B",notHolding:"\u65E0\u542F\u7528\u9879",paused:"\u5DF2\u6682\u505C",newTitle:"\u65B0\u5EFA\u4F8B\u884C\u4EFB\u52A1",fieldName:"\u540D\u79F0",fieldRepo:"\u4ED3\u5E93",fieldPrompt:"\u63D0\u793A\u8BCD",fieldSchedule:"\u8C03\u5EA6\uFF08\u4E94\u6BB5 cron\uFF09",namePlaceholder:"\u5DE5\u4F5C\u65E5\u4F9D\u8D56\u5BA1\u8BA1",promptPlaceholder:"\u5BA1\u8BA1\u4F9D\u8D56\u5E76\u603B\u7ED3\u6709\u98CE\u9669\u7684\u53D8\u66F4\u3002",needRepo:"\u5148\u6253\u5F00\u4E00\u4E2A\u9879\u76EE\u2014\u2014\u4F8B\u884C\u4EFB\u52A1\u8981\u8DD1\u5728\u67D0\u4E2A\u9879\u76EE\u91CC\u3002",cronInvalid:"\u4E0D\u662F\u5408\u6CD5\u7684\u4E94\u6BB5 cron",cronField:{minute:"\u5206",hour:"\u65F6",dayOfMonth:"\u65E5",month:"\u6708",dayOfWeek:"\u661F\u671F"},cronNever:"\u8BED\u6CD5\u5408\u6CD5\uFF0C\u4F46\u6C38\u8FDC\u4E0D\u4F1A\u89E6\u53D1",missing:{name:"\u8D77\u4E2A\u540D\u5B57\u3002",repo:"\u9009\u4E00\u4E2A\u9879\u76EE\u3002",prompt:"\u8BF4\u660E\u5B83\u8981\u505A\u4EC0\u4E48\u3002",schedule:"\u8FD9\u4E2A\u8C03\u5EA6\u4E0D\u4F1A\u89E6\u53D1\u3002"},empty:"\u8FD8\u6CA1\u6709\u4F8B\u884C\u4EFB\u52A1\u3002",emptyHint:"\u6309 n \u65B0\u5EFA\u4E00\u6761\u3002",precheck:"\u9884\u68C0\uFF1A{command}",recentRuns:"\u6700\u8FD1\u6267\u884C",noRuns:"\u5C1A\u672A\u6267\u884C\u3002",noSelection:"\u4F8B\u884C\u4EFB\u52A1\u4F1A\u6309\u8C03\u5EA6\u5728\u67D0\u4E2A\u9879\u76EE\u91CC\u8DD1\u5B83\u7684\u63D0\u793A\u8BCD\u3002",running:"\u6B63\u5728\u8FD0\u884C {name}\u2026",ranWith:"{name}\uFF1A{status}",runNow:"[ \u7ACB\u5373\u8FD0\u884C ]",runNowHint:"\u4E0D\u7B49\u8C03\u5EA6\uFF0C\u76F4\u63A5\u8BD5\u4E00\u6B21",deleteTitle:"\u5220\u9664\u8FD9\u6761\u4F8B\u884C\u4EFB\u52A1\uFF1F",deleteBody:"\u5C06\u5220\u9664 {name} \u53CA\u5176\u6267\u884C\u8BB0\u5F55\u3002\u5B83\u5DF2\u7ECF\u521B\u5EFA\u7684\u4EFB\u52A1\u4E0D\u53D7\u5F71\u54CD\u3002",deleteButton:"\u5220\u9664"}});var Rl,Tl;var Sl=c(()=>{Rl={cancel:"Cancel",next:"next",create:"create",confirm:"Confirm",paneCrash:{title:"This pane crashed",hint:"Reload it from the Tasks pane (the error was logged to client.log)."},rename:{defaultTitle:"Rename task",defaultFieldLabel:"title",footerHint:"enter {submitLabel} \xB7 esc cancel",defaultSubmitLabel:"rename"},prompt:{fieldLabel:"input",submitLabel:"submit"}},Tl={cancel:"\u53D6\u6D88",next:"\u4E0B\u4E00\u6B65",create:"\u521B\u5EFA",confirm:"\u786E\u8BA4",paneCrash:{title:"\u6B64\u9762\u677F\u5DF2\u5D29\u6E83",hint:"\u8BF7\u4ECE\u4EFB\u52A1\u9762\u677F\u91CD\u65B0\u52A0\u8F7D\uFF08\u9519\u8BEF\u5DF2\u8BB0\u5F55\u5230 client.log\uFF09\u3002"},rename:{defaultTitle:"\u91CD\u547D\u540D\u4EFB\u52A1",defaultFieldLabel:"\u540D\u79F0",footerHint:"enter {submitLabel} \xB7 esc \u53D6\u6D88",defaultSubmitLabel:"\u91CD\u547D\u540D"},prompt:{fieldLabel:"\u8F93\u5165",submitLabel:"\u63D0\u4EA4"}}});var Il,El;var wl=c(()=>{Il={tabs:{all:"All",changes:"Changes"},actions:{zen:"Zen",createPR:"Create PR"},legend:{changes:"M modified \xB7 A added \xB7 D deleted \xB7 ? untracked"},scope:{working:"scope: working tree",branch:"scope: vs {base}",toggleHint:"b to toggle"},empty:{noTask:"(no task \u2014 press n to create)",noFiles:"(empty worktree)",noChanges:"(no changes \u2014 clean worktree)"},error:{retryHint:"press r to retry",notGitRepo:"not a git repository",pathMissing:"worktree path is missing",permissionDenied:"permission denied",gitNotInstalled:"git is not installed",gitFailed:"git command failed"},toast:{prOnTargetBranch:"Already on the target branch ({branch}) \u2014 create the PR from a task branch"}},El={tabs:{all:"\u5168\u90E8",changes:"\u6539\u52A8"},actions:{zen:"\u4E13\u6CE8\u6A21\u5F0F",createPR:"\u521B\u5EFA PR"},legend:{changes:"M \u5DF2\u4FEE\u6539 \xB7 A \u5DF2\u6DFB\u52A0 \xB7 D \u5DF2\u5220\u9664 \xB7 ? \u672A\u8DDF\u8E2A"},scope:{working:"\u8303\u56F4\uFF1A\u5DE5\u4F5C\u533A\u6539\u52A8",branch:"\u8303\u56F4\uFF1A\u5BF9\u6BD4 {base}",toggleHint:"\u6309 b \u5207\u6362"},empty:{noTask:"\uFF08\u6682\u65E0\u4EFB\u52A1 \u2014 \u6309 n \u521B\u5EFA\uFF09",noFiles:"\uFF08worktree \u4E3A\u7A7A\uFF09",noChanges:"\uFF08\u65E0\u6539\u52A8 \u2014 worktree \u5E72\u51C0\uFF09"},error:{retryHint:"\u6309 r \u91CD\u8BD5",notGitRepo:"\u4E0D\u662F git \u4ED3\u5E93",pathMissing:"worktree \u8DEF\u5F84\u4E0D\u5B58\u5728",permissionDenied:"\u6743\u9650\u4E0D\u8DB3",gitNotInstalled:"\u672A\u5B89\u88C5 git",gitFailed:"git \u547D\u4EE4\u5931\u8D25"},toast:{prOnTargetBranch:"\u5F53\u524D\u5C31\u5728\u76EE\u6807\u5206\u652F\uFF08{branch}\uFF09\u2014 \u8BF7\u5728\u4EFB\u52A1\u5206\u652F\u4E0A\u521B\u5EFA PR"}}});var xl,fl;var yl=c(()=>{xl={title:"Rove \u2014 keybindings",esc:"esc",commandLayer:"{prefix} \u2014 more Rove commands",escCancel:"esc cancel",focused:"Focused: {surface}",allBindings:"All keybinding contexts",grammar:"Use keys here \xB7 one-press Rove shortcuts \xB7 {prefix} for more commands",disabled:"prefix disabled",here:"HERE \u2014 only in {surface}",direct:"ONE PRESS \u2014 Rove shortcuts",afterPrefix:"AFTER PREFIX \u2014 more Rove commands",otherPane:"OTHER PANE \u2014 {surface}"},fl={title:"Rove \u2014 \u5FEB\u6377\u952E",esc:"esc",commandLayer:"{prefix} \u2014 \u66F4\u591A Rove \u547D\u4EE4",escCancel:"esc \u53D6\u6D88",focused:"\u5F53\u524D\u7126\u70B9\uFF1A{surface}",allBindings:"\u6240\u6709\u5FEB\u6377\u952E\u4E0A\u4E0B\u6587",grammar:"\u5F53\u524D\u533A\u57DF\u76F4\u63A5\u6309 \xB7 Rove \u5355\u6B21\u5FEB\u6377\u952E \xB7 {prefix} \u6253\u5F00\u66F4\u591A\u547D\u4EE4",disabled:"Prefix \u5DF2\u7981\u7528",here:"\u5F53\u524D\u533A\u57DF \u2014 \u4EC5\u5728{surface}",direct:"\u4E00\u6B21\u6309\u4E0B \u2014 Rove \u5FEB\u6377\u952E",afterPrefix:"\u6309\u4E0B Prefix \u540E \u2014 \u66F4\u591A Rove \u547D\u4EE4",otherPane:"\u5176\u4ED6\u533A\u57DF \u2014 {surface}"}});var gl,bl;var vl=c(()=>{gl={status:{commands:"{key} commands",help:"{key} help",sidebar:"{key} sidebar",settings:"settings"},pane:{move:"move",open:"open",fold:"fold",diff:"diff"}},bl={status:{commands:"{key} \u547D\u4EE4",help:"{key} \u5E2E\u52A9",sidebar:"{key} \u4FA7\u680F",settings:"\u8BBE\u7F6E"},pane:{move:"\u79FB\u52A8",open:"\u6253\u5F00",fold:"\u6298\u53E0",diff:"\u5DEE\u5F02"}}});var kl,ml;var hl=c(()=>{kl={empty:"No engine history for this task.",loading:"loading\u2026",earlier:"\u2026 {count} earlier messages",sessionLabel:"Session",archivedTag:"ARCHIVED",liveTag:"\u25CF LIVE",hint:"[ ] session \xB7 j/k scroll \xB7 \u23CE expand",hintExpanded:"[ ] session \xB7 j/k scroll \xB7 \u23CE collapse",role:{user:"USER",assistant:"ASSISTANT",system:"SYSTEM"},thinking:"thinking"},ml={empty:"\u6B64\u4EFB\u52A1\u6CA1\u6709\u5F15\u64CE\u5386\u53F2\u8BB0\u5F55\u3002",loading:"\u52A0\u8F7D\u4E2D\u2026",earlier:"\u2026 \u4E4B\u524D\u8FD8\u6709 {count} \u6761\u6D88\u606F",sessionLabel:"\u4F1A\u8BDD",archivedTag:"\u5DF2\u5F52\u6863",liveTag:"\u25CF \u5B9E\u65F6",hint:"[ ] \u4F1A\u8BDD \xB7 j/k \u6EDA\u52A8 \xB7 \u23CE \u5C55\u5F00",hintExpanded:"[ ] \u4F1A\u8BDD \xB7 j/k \u6EDA\u52A8 \xB7 \u23CE \u6536\u8D77",role:{user:"\u7528\u6237",assistant:"\u52A9\u624B",system:"\u7CFB\u7EDF"},thinking:"\u601D\u8003"}});var ul,cl;var dl=c(()=>{ul={title:"Kanban",hint:"tab project \xB7 \u2190\u2193\u2191\u2192 card \xB7 enter detail \xB7 n new \xB7 d delete \xB7 r refresh \xB7 esc close",loading:"Loading issues\u2026",noRepos:"No projects yet \u2014 create a task first.",empty:"No issues \u2014 agents file them via `rove api issue-create`.",column:{backlog:"Backlog",inProgress:"In progress",parked:"Parked",done:"Done"},more:"+{count} more",attention:"{count} need you",turnComplete:"turn done",detail:{status:{open:"open",doing:"doing",hold:"hold",done:"done"},created:"created {date}",linked:"linked to a session",titleLabel:"TITLE",description:"DESCRIPTION",noDescription:"No description.",attachHint:"paste a path / ctrl+v screenshot \u2192 inserts an image placeholder",engine:"ENGINE",workspace:"WORKSPACE",placement:{worktree:"New worktree task \u2014 its own workspace",projectWorktree:"New worktree \u2014 as a chattab in the project workspace",project:"Project checkout \u2014 a new chattab, no worktree"},jumpLabel:"AFTER START",jump:{stay:"Stay on the board",follow:"Jump to the session"},startLegend:"enter/ctrl+enter start \xB7 tab fields \xB7 \u2190\u2192 engine \xB7 \u2191\u2193 workspace \xB7 esc save & close",sessionLabel:"SESSION",openAction:"Open the linked session \u21B5",openLegend:"enter/ctrl+enter open the linked session \xB7 tab fields \xB7 esc save & close",eventsLabel:"EVENTS",eventsLoading:"Loading events\u2026",eventsNone:"No engine events recorded yet.",doneNote:"Done stories have nothing left to start \xB7 esc save & close",startedBackground:"Started in background: {title}",newStory:"NEW STORY",createLegend:"ctrl+s save \xB7 enter/ctrl+enter save & start \xB7 tab fields \xB7 esc cancel"},confirmDelete:{title:"Delete story #{id}?",body:"\u201C{title}\u201D will be removed from the tracker. A linked task, branch, or worktree is left untouched."}},cl={title:"\u770B\u677F",hint:"tab \u5207\u9879\u76EE \xB7 \u2190\u2193\u2191\u2192 \u9009\u5361\u7247 \xB7 enter \u8BE6\u60C5 \xB7 n \u65B0\u5EFA \xB7 d \u5220\u9664 \xB7 r \u5237\u65B0 \xB7 esc \u5173\u95ED",loading:"\u6B63\u5728\u52A0\u8F7D issues\u2026",noRepos:"\u8FD8\u6CA1\u6709\u9879\u76EE\u2014\u2014\u5148\u521B\u5EFA\u4E00\u4E2A\u4EFB\u52A1\u3002",empty:"\u6682\u65E0 issue\u2014\u2014agent \u53EF\u901A\u8FC7 `rove api issue-create` \u521B\u5EFA\u3002",column:{backlog:"\u5F85\u529E",inProgress:"\u8FDB\u884C\u4E2D",parked:"\u6401\u7F6E",done:"\u5DF2\u5B8C\u6210"},more:"\u8FD8\u6709 {count} \u6761",attention:"{count} \u5F20\u7B49\u4F60\u5904\u7406",turnComplete:"\u56DE\u5408\u5B8C\u6210",detail:{status:{open:"\u5F85\u529E",doing:"\u8FDB\u884C\u4E2D",hold:"\u6401\u7F6E",done:"\u5DF2\u5B8C\u6210"},created:"\u521B\u5EFA\u4E8E {date}",linked:"\u5DF2\u5173\u8054\u4F1A\u8BDD",titleLabel:"\u6807\u9898",description:"\u63CF\u8FF0",noDescription:"\u6682\u65E0\u63CF\u8FF0\u3002",attachHint:"\u7C98\u8D34\u8DEF\u5F84 / ctrl+v \u8D34\u622A\u56FE \u2192 \u63D2\u5165\u56FE\u7247\u5360\u4F4D\u884C",engine:"\u5F15\u64CE",workspace:"\u5DE5\u4F5C\u533A",placement:{worktree:"\u65B0\u5EFA worktree \u4EFB\u52A1\u2014\u2014\u72EC\u7ACB\u5DE5\u4F5C\u533A",projectWorktree:"\u65B0\u5EFA worktree\u2014\u2014\u4F5C\u4E3A\u9879\u76EE\u5DE5\u4F5C\u533A\u91CC\u7684 chattab",project:"\u9879\u76EE\u4E3B\u76EE\u5F55\u2014\u2014\u65B0\u5F00 chattab,\u4E0D\u5EFA worktree"},jumpLabel:"\u542F\u52A8\u540E",jump:{stay:"\u7559\u5728\u770B\u677F",follow:"\u8DF3\u8F6C\u5230\u4F1A\u8BDD"},startLegend:"enter/ctrl+enter \u542F\u52A8 \xB7 tab \u5207\u5B57\u6BB5 \xB7 \u2190\u2192 \u5F15\u64CE \xB7 \u2191\u2193 \u5DE5\u4F5C\u533A \xB7 esc \u4FDD\u5B58\u5173\u95ED",sessionLabel:"\u4F1A\u8BDD",openAction:"\u6253\u5F00\u5173\u8054\u4F1A\u8BDD \u21B5",openLegend:"enter/ctrl+enter \u6253\u5F00\u5DF2\u5173\u8054\u4F1A\u8BDD \xB7 tab \u5207\u5B57\u6BB5 \xB7 esc \u4FDD\u5B58\u5173\u95ED",eventsLabel:"\u4E8B\u4EF6",eventsLoading:"\u6B63\u5728\u52A0\u8F7D\u4E8B\u4EF6\u2026",eventsNone:"\u6682\u65E0\u5F15\u64CE\u4E8B\u4EF6\u8BB0\u5F55\u3002",doneNote:"\u5DF2\u5B8C\u6210\u7684 story \u65E0\u9700\u542F\u52A8 \xB7 esc \u4FDD\u5B58\u5173\u95ED",startedBackground:"\u5DF2\u5728\u540E\u53F0\u542F\u52A8:{title}",newStory:"\u65B0\u5EFA STORY",createLegend:"ctrl+s \u4EC5\u4FDD\u5B58 \xB7 enter/ctrl+enter \u4FDD\u5B58\u5E76\u542F\u52A8 \xB7 tab \u5207\u5B57\u6BB5 \xB7 esc \u53D6\u6D88"},confirmDelete:{title:"\u5220\u9664 story #{id}?",body:"\u300C{title}\u300D\u5C06\u4ECE tracker \u4E2D\u79FB\u9664\u3002\u5DF2\u5173\u8054\u7684\u4EFB\u52A1\u3001\u5206\u652F\u3001worktree \u4E0D\u53D7\u5F71\u54CD\u3002"}}});var ll,pl;var nl=c(()=>{ll={category:{Global:"Global",Sidebar:"Sidebar",Workspace:"Workspace",Navigation:"Navigation","Tasks pane":"Tasks pane",Files:"Files",Terminal:"Terminal",Dialog:"Dialog",Views:"Views",Tasks:"Tasks",Sessions:"Sessions",Attention:"Attention",Tools:"Tools"},desc:{"help.open":"Show keybindings help","task.new":"New task","task.openEditor":"Open active Task directory in editor","task.moveMode":"Reorder sidebar rows (then j/k \u2014 tab, task, or project)","settings.open":"Open settings","settings.open.sidebar":"Open settings","inbox.show":"Open attention Inbox","worktrees.open.sidebar":"Open worktrees","kanban.open":"Open kanban (issues board)","automations.open":"Open automations (scheduled tasks)","workItems.open":"Open GitHub issues (external tracker)","app.quit":"Quit (with confirm)","focus.sidebar":"Back to sidebar (tasks)","focus.previous":"Focus previous pane (files \u2192 workspace \u2192 sidebar)","focus.next":"Focus next pane (sidebar \u2192 workspace \u2192 files)","workspace.zenToggle":"Toggle zen mode","attention.next":"Jump to the next attention item","chat.interrupt":"Interrupt current turn (esc while streaming)","sidebar.nav":"Move cursor up/down","sidebar.select":"Open the selected task","sidebar.tree.open":"Open the row under the cursor","sidebar.goto":"Top / bottom of list (gg or shift-G)","sidebar.rename":"Rename task","sidebar.archive":"Toggle archive","sidebar.localMerge":"Reorder row (Shift+M, then j/k \u2014 tab, task, or project)","sidebar.pin":"Pin / unpin task at top (Shift+P)","sidebar.previewToggle":"Toggle live preview (watch task)","sidebar.sort":"Switch task sort (default \u2194 recent)","sidebar.projectFilter":"Cycle task project filter","sidebar.delete":"Delete task (with confirm)","sidebar.search.enter":"Search tasks (fuzzy filter)","sidebar.search.nav":"Move highlight in search results","sidebar.search.submit":"Select search match and exit search","sidebar.search.cancel":"Cancel search (restore prior selection)","tasks.openWorktree":"Open selected Task directory in your editor","tasks.renameBranch":"Rename the selected task's git branch","tasks.cycleEngine":"Cycle engine vendor (claude \u2194 codex \u2194 \u2026) \u2014 applies on reopen","tasks.update":"Open the update page (when a new version is available)","tasks.focusEngine":"Focus the engine pane of the current window","tasks.jump":"Jump to the task showing that digit","tasks.toggleKeys":"Collapse / expand the keys legend","chat.send":"Send message (composer)","chat.newline":"Newline in composer","chat.cycle-mode":"Cycle permission mode (composer)","chat.steer":"Steer (interrupt + send) \u2014 mid-stream only","chat.tab.new":"New chat tab","chat.tab.chooseEngine":"New conversation \u2014 engine/shell picker with destination + context toggles","chat.tab.fork":"Fork this chat into a new tab (same Task directory, keeps the conversation)","chat.fork.new":"Quick-fork: create child task seeded with current repo/branch/model","chat.session.resume":"Resume a prior session in this Task directory","chat.tab.close":"Close chat tab","chat.tab.rename":"Rename active chat tab","chat.tab.cycle-next":"Next chat tab","chat.tab.cycle-prev":"Previous chat tab","workspace.split.right":"Split right","workspace.split.down":"Split down","workspace.split.focus-next":"Focus next split","workspace.split.close":"Close active split (tab when unsplit)","workspace.split.rename":"Rename active split (tab when unsplit)","files.nav":"Move cursor up/down","files.hierarchy":"Collapse / expand tree level","files.open":"Open file in configured editor (diff when supported)","files.tab":"Switch tab (cycle All / Changes)","files.refresh":"Refresh","files.scope":"Toggle Changes scope (working \u2194 branch vs base)","files.diff":"Open a read-only diff in a workspace tab","files.openExternal":"Open file in system default app (audio / video / pdf preview)","files.mention":"Inject @<path> mention into the engine pane","files.createPR":"Create PR from the current task","diff.review.cursor":"Move the line cursor over the diff","diff.review.range":"Toggle range anchor at the cursor","diff.review.note":"Add a review note at the cursor","diff.review.send":"Send all unsent review notes to the engine","inbox.nav":"Move through attention items","inbox.open":"Open the selected attention item","inbox.delete":"Remove the selected attention item","terminal.scroll-up":"Scroll scrollback up","terminal.scroll-down":"Scroll scrollback down","terminal.reset":"Reset terminal \u2014 kill the current shell and respawn","dialog.cancel":"Close the top dialog (esc)","dialog.newtask.tab.cycle":"Switch New Task tab (Existing / New Repo)"}},pl={category:{Global:"\u5168\u5C40",Sidebar:"\u4FA7\u8FB9\u680F",Workspace:"\u5DE5\u4F5C\u533A",Navigation:"\u5BFC\u822A","Tasks pane":"\u4EFB\u52A1\u9762\u677F",Files:"\u6587\u4EF6",Terminal:"\u7EC8\u7AEF",Dialog:"\u5BF9\u8BDD\u6846",Views:"\u89C6\u56FE",Tasks:"\u4EFB\u52A1",Sessions:"\u4F1A\u8BDD",Attention:"\u63D0\u9192",Tools:"\u5DE5\u5177"},desc:{"help.open":"\u663E\u793A\u5FEB\u6377\u952E\u5E2E\u52A9","task.new":"\u65B0\u5EFA\u4EFB\u52A1","task.openEditor":"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u5F53\u524D Task \u7684\u76EE\u5F55","task.moveMode":"\u8C03\u6574\u4FA7\u8FB9\u680F\u884C\u987A\u5E8F\uFF08\u7136\u540E j/k\u2014\u2014tab / \u4EFB\u52A1 / \u9879\u76EE\uFF09","settings.open":"\u6253\u5F00\u8BBE\u7F6E","settings.open.sidebar":"\u6253\u5F00\u8BBE\u7F6E","inbox.show":"\u6253\u5F00\u63D0\u9192\u6536\u4EF6\u7BB1","worktrees.open.sidebar":"\u6253\u5F00 worktrees","kanban.open":"\u6253\u5F00\u770B\u677F\uFF08issues\uFF09","automations.open":"\u6253\u5F00\u81EA\u52A8\u5316\uFF08\u5B9A\u65F6\u4EFB\u52A1\uFF09","workItems.open":"\u6253\u5F00 GitHub issues\uFF08\u5916\u90E8\u8DDF\u8E2A\u5668\uFF09","app.quit":"\u9000\u51FA\uFF08\u9700\u786E\u8BA4\uFF09","focus.sidebar":"\u8FD4\u56DE\u4FA7\u8FB9\u680F\uFF08\u4EFB\u52A1\u5217\u8868\uFF09","focus.previous":"\u805A\u7126\u4E0A\u4E00\u4E2A\u9762\u677F\uFF08\u6587\u4EF6 \u2192 \u5DE5\u4F5C\u533A \u2192 \u4FA7\u8FB9\u680F\uFF09","focus.next":"\u805A\u7126\u4E0B\u4E00\u4E2A\u9762\u677F\uFF08\u4FA7\u8FB9\u680F \u2192 \u5DE5\u4F5C\u533A \u2192 \u6587\u4EF6\uFF09","workspace.zenToggle":"\u5207\u6362\u7985\u6A21\u5F0F","attention.next":"\u8DF3\u5230\u4E0B\u4E00\u4E2A\u9700\u8981\u6CE8\u610F\u7684\u9879\u76EE","chat.interrupt":"\u4E2D\u65AD\u5F53\u524D\u8F6E\u6B21\uFF08\u6D41\u5F0F\u8F93\u51FA\u4E2D\u6309 esc\uFF09","sidebar.nav":"\u4E0A\u4E0B\u79FB\u52A8\u5149\u6807","sidebar.select":"\u6253\u5F00\u9009\u4E2D\u7684\u4EFB\u52A1","sidebar.tree.open":"\u6253\u5F00\u5149\u6807\u6240\u5728\u884C","sidebar.goto":"\u8DF3\u5230\u5217\u8868\u9876\u90E8 / \u5E95\u90E8\uFF08gg \u6216 shift-G\uFF09","sidebar.rename":"\u91CD\u547D\u540D\u4EFB\u52A1","sidebar.archive":"\u5207\u6362\u5F52\u6863\u72B6\u6001","sidebar.localMerge":"\u8C03\u6574\u5F53\u524D\u884C\u987A\u5E8F\uFF08Shift+M\uFF0C\u7136\u540E j/k\u2014\u2014tab / \u4EFB\u52A1 / \u9879\u76EE\uFF09","sidebar.pin":"\u7F6E\u9876 / \u53D6\u6D88\u7F6E\u9876\u4EFB\u52A1\uFF08Shift+P\uFF09","sidebar.previewToggle":"\u5207\u6362\u5B9E\u65F6\u9884\u89C8\uFF08\u89C2\u770B\u4EFB\u52A1\uFF09","sidebar.sort":"\u5207\u6362\u4EFB\u52A1\u6392\u5E8F\u65B9\u5F0F\uFF08\u9ED8\u8BA4 \u2194 \u6700\u8FD1\uFF09","sidebar.projectFilter":"\u5FAA\u73AF\u5207\u6362\u4EFB\u52A1\u9879\u76EE\u7B5B\u9009","sidebar.delete":"\u5220\u9664\u4EFB\u52A1\uFF08\u9700\u786E\u8BA4\uFF09","sidebar.search.enter":"\u641C\u7D22\u4EFB\u52A1\uFF08\u6A21\u7CCA\u8FC7\u6EE4\uFF09","sidebar.search.nav":"\u5728\u641C\u7D22\u7ED3\u679C\u4E2D\u79FB\u52A8\u9AD8\u4EAE","sidebar.search.submit":"\u9009\u4E2D\u641C\u7D22\u5339\u914D\u9879\u5E76\u9000\u51FA\u641C\u7D22","sidebar.search.cancel":"\u53D6\u6D88\u641C\u7D22\uFF08\u6062\u590D\u4E4B\u524D\u7684\u9009\u4E2D\u9879\uFF09","tasks.openWorktree":"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u9009\u4E2D Task \u7684\u76EE\u5F55","tasks.renameBranch":"\u91CD\u547D\u540D\u9009\u4E2D\u4EFB\u52A1\u7684 git \u5206\u652F","tasks.cycleEngine":"\u5FAA\u73AF\u5207\u6362\u5F15\u64CE\u5382\u5546\uFF08claude \u2194 codex \u2194 \u2026\uFF09\u2014\u2014\u91CD\u65B0\u6253\u5F00\u540E\u751F\u6548","tasks.update":"\u6253\u5F00\u66F4\u65B0\u9875\u9762\uFF08\u6709\u65B0\u7248\u672C\u65F6\uFF09","tasks.focusEngine":"\u805A\u7126\u5F53\u524D\u7A97\u53E3\u7684\u5F15\u64CE\u9762\u677F","tasks.jump":"\u8DF3\u5230\u663E\u793A\u5BF9\u5E94\u6570\u5B57\u7684\u4EFB\u52A1","tasks.toggleKeys":"\u6298\u53E0 / \u5C55\u5F00\u5FEB\u6377\u952E\u8BF4\u660E","chat.send":"\u53D1\u9001\u6D88\u606F\uFF08\u8F93\u5165\u6846\uFF09","chat.newline":"\u5728\u8F93\u5165\u6846\u4E2D\u6362\u884C","chat.cycle-mode":"\u5FAA\u73AF\u5207\u6362\u6743\u9650\u6A21\u5F0F\uFF08\u8F93\u5165\u6846\uFF09","chat.steer":"\u5F15\u5BFC\uFF08\u4E2D\u65AD\u5E76\u53D1\u9001\uFF09\u2014\u2014\u4EC5\u9650\u6D41\u5F0F\u8F93\u51FA\u4E2D","chat.tab.new":"\u65B0\u5EFA\u804A\u5929\u6807\u7B7E\u9875","chat.tab.chooseEngine":"\u65B0\u5EFA\u5BF9\u8BDD \u2014\u2014 \u9009\u62E9\u5F15\u64CE\u6216 shell\uFF0C\u53EF\u5207\u6362\u843D\u70B9\u4E0E\u4E0A\u4E0B\u6587","chat.tab.fork":"\u6D3E\u751F\u5F53\u524D\u5BF9\u8BDD\u5230\u65B0\u6807\u7B7E\u9875\uFF08\u540C\u4E00 Task \u76EE\u5F55\uFF0C\u5E26\u4E0A\u5DF2\u6709\u5BF9\u8BDD\uFF09","chat.fork.new":"\u5FEB\u901F\u6D3E\u751F\uFF1A\u4EE5\u5F53\u524D\u4ED3\u5E93/\u5206\u652F/\u6A21\u578B\u521B\u5EFA\u5B50\u4EFB\u52A1","chat.session.resume":"\u5728\u6B64 Task \u76EE\u5F55\u4E2D\u6062\u590D\u4E4B\u524D\u7684\u4F1A\u8BDD","chat.tab.close":"\u5173\u95ED\u804A\u5929\u6807\u7B7E\u9875","chat.tab.rename":"\u91CD\u547D\u540D\u5F53\u524D\u804A\u5929\u6807\u7B7E\u9875","chat.tab.cycle-next":"\u4E0B\u4E00\u4E2A\u804A\u5929\u6807\u7B7E\u9875","chat.tab.cycle-prev":"\u4E0A\u4E00\u4E2A\u804A\u5929\u6807\u7B7E\u9875","workspace.split.right":"\u5411\u53F3\u5206\u5C4F","workspace.split.down":"\u5411\u4E0B\u5206\u5C4F","workspace.split.focus-next":"\u805A\u7126\u4E0B\u4E00\u4E2A\u5206\u5C4F","workspace.split.close":"\u5173\u95ED\u5F53\u524D\u5206\u5C4F\uFF08\u672A\u5206\u5C4F\u65F6\u5173\u95ED\u6807\u7B7E\u9875\uFF09","workspace.split.rename":"\u91CD\u547D\u540D\u5F53\u524D\u5206\u5C4F\uFF08\u672A\u5206\u5C4F\u65F6\u91CD\u547D\u540D\u6807\u7B7E\u9875\uFF09","files.nav":"\u4E0A\u4E0B\u79FB\u52A8\u5149\u6807","files.hierarchy":"\u6298\u53E0 / \u5C55\u5F00\u6811\u5C42\u7EA7","files.open":"\u5728\u5DF2\u914D\u7F6E\u7684\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u6587\u4EF6\uFF08\u652F\u6301\u65F6\u663E\u793A diff\uFF09","files.tab":"\u5207\u6362\u6807\u7B7E\u9875\uFF08\u5FAA\u73AF \u5168\u90E8 / \u53D8\u66F4\uFF09","files.refresh":"\u5237\u65B0","files.scope":"\u5207\u6362\u53D8\u66F4\u8303\u56F4\uFF08\u5DE5\u4F5C\u533A \u2194 \u5206\u652F\u5BF9\u6BD4 base\uFF09","files.diff":"\u5728\u5DE5\u4F5C\u533A\u6807\u7B7E\u9875\u4E2D\u6253\u5F00\u53EA\u8BFB diff","files.openExternal":"\u5728\u7CFB\u7EDF\u9ED8\u8BA4\u5E94\u7528\u4E2D\u6253\u5F00\u6587\u4EF6\uFF08\u97F3\u9891 / \u89C6\u9891 / pdf \u9884\u89C8\uFF09","files.mention":"\u5C06 @<path> \u63D0\u53CA\u6CE8\u5165\u5F15\u64CE\u9762\u677F","files.createPR":"\u4ECE\u5F53\u524D\u4EFB\u52A1\u521B\u5EFA PR","diff.review.cursor":"\u5728 diff \u4E2D\u79FB\u52A8\u884C\u5149\u6807","diff.review.range":"\u5728\u5149\u6807\u5904\u5207\u6362\u8303\u56F4\u951A\u70B9","diff.review.note":"\u5728\u5149\u6807\u5904\u6DFB\u52A0\u5BA1\u9605\u5907\u6CE8","diff.review.send":"\u5C06\u6240\u6709\u672A\u53D1\u9001\u7684\u5BA1\u9605\u5907\u6CE8\u53D1\u7ED9\u5F15\u64CE","inbox.nav":"\u5728\u63D0\u9192\u9879\u76EE\u4E4B\u95F4\u79FB\u52A8","inbox.open":"\u6253\u5F00\u9009\u4E2D\u7684\u63D0\u9192\u9879\u76EE","inbox.delete":"\u79FB\u9664\u9009\u4E2D\u7684\u63D0\u9192\u9879\u76EE","terminal.scroll-up":"\u5411\u4E0A\u6EDA\u52A8\u56DE\u6EDA","terminal.scroll-down":"\u5411\u4E0B\u6EDA\u52A8\u56DE\u6EDA","terminal.reset":"\u91CD\u7F6E\u7EC8\u7AEF\u2014\u2014\u5173\u95ED\u5F53\u524D shell \u5E76\u91CD\u65B0\u542F\u52A8","dialog.cancel":"\u5173\u95ED\u9876\u5C42\u5BF9\u8BDD\u6846\uFF08esc\uFF09","dialog.newtask.tab.cycle":"\u5207\u6362\u65B0\u5EFA\u4EFB\u52A1\u6807\u7B7E\u9875\uFF08\u73B0\u6709\u4ED3\u5E93 / \u65B0\u4ED3\u5E93\uFF09"}}});var il,ol;var al=c(()=>{il={title:"New task",tabs:{existing:"For Existing",clone:"For New Repo",adopt:"Adopt Worktree"},field:{engine:"engine",repo:"repo",fromBranch:"from branch",gitUrl:"git url",parentDir:"parent dir",folderName:"folder name",baseBranch:"base branch",adoptFilter:"filter (path glob)"},placeholder:{folderName:"auto from url",adoptFilter:"* \u2014 type e.g. feature-* to narrow"},hint:{engineCycle:"ctrl+e",remembered:"(remembered \u2014 next clone defaults to this dir)",currentDir:"(current dir)",noBranchesFound:"(no local branches found \u2014 typed text will be used as ref)",noMatchBranch:"(no match \u2014 typed text will be used as ref)",scanningWorktrees:"scanning worktrees\u2026"},picker:{moreAbove:"\u2191 {count} more",moreBelow:"\u2193 {count} more"},adopt:{repoLine:"repo: {path}",repoNone:"(none)",noUnlinked:"no unlinked worktrees \u2014 every git worktree here is already a task",noMatch:"no worktrees match the filter",hintSelected:"{count} selected \xB7 enter toggles \xB7 ctrl+a all \xB7 Create imports",hintDefault:"enter toggles \xB7 ctrl+a all \xB7 Create imports the highlighted row",summaryAll:"Adopted {count} worktree(s)",summaryPartial:"Adopted {done}/{total} worktrees \u2014 the rest failed (see log)",summaryNone:"Couldn't adopt any worktree: {error}"},clone:{progressFallback:"Cloning\u2026",progressInto:"Cloning into {target}\u2026"},button:{create:"[ Create ]",createFocused:"\u25B8 [ Create ]",cloning:"[ Cloning\u2026 ]"},error:{gitUrlRequired:"git URL is required",gitUrlInvalid:"does not look like a git URL: {url}",folderRequired:"folder name is required",folderHasSeparator:"folder name cannot contain path separators",parentRequired:"parent directory is required",parentNotFound:"parent directory does not exist: {path}",parentNotDir:"not a directory: {path}",targetExists:"target already exists: {path}",cloneFailed:"git clone failed: {error}",noAdoptable:"no adoptable worktrees to import"}},ol={title:"\u65B0\u5EFA\u4EFB\u52A1",tabs:{existing:"\u5DF2\u6709\u4ED3\u5E93",clone:"\u514B\u9686\u65B0\u4ED3\u5E93",adopt:"\u63A5\u7BA1 Worktree"},field:{engine:"\u5F15\u64CE",repo:"\u4ED3\u5E93",fromBranch:"\u57FA\u51C6\u5206\u652F",gitUrl:"git \u5730\u5740",parentDir:"\u7236\u76EE\u5F55",folderName:"\u6587\u4EF6\u5939\u540D",baseBranch:"\u57FA\u51C6\u5206\u652F",adoptFilter:"\u8FC7\u6EE4\uFF08\u8DEF\u5F84 glob\uFF09"},placeholder:{folderName:"\u81EA\u52A8\u4ECE\u5730\u5740\u63A8\u5BFC",adoptFilter:"* \u2014 \u8F93\u5165\u5982 feature-* \u6765\u7F29\u5C0F\u8303\u56F4"},hint:{engineCycle:"ctrl+e",remembered:"\uFF08\u5DF2\u8BB0\u4F4F \u2014 \u4E0B\u6B21\u514B\u9686\u9ED8\u8BA4\u4F7F\u7528\u6B64\u76EE\u5F55\uFF09",currentDir:"\uFF08\u5F53\u524D\u76EE\u5F55\uFF09",noBranchesFound:"\uFF08\u672A\u627E\u5230\u672C\u5730\u5206\u652F \u2014 \u5C06\u76F4\u63A5\u4F7F\u7528\u8F93\u5165\u6587\u672C\u4F5C\u4E3A ref\uFF09",noMatchBranch:"\uFF08\u65E0\u5339\u914D \u2014 \u5C06\u76F4\u63A5\u4F7F\u7528\u8F93\u5165\u6587\u672C\u4F5C\u4E3A ref\uFF09",scanningWorktrees:"\u6B63\u5728\u626B\u63CF worktree\u2026"},picker:{moreAbove:"\u2191 \u8FD8\u6709 {count} \u9879",moreBelow:"\u2193 \u8FD8\u6709 {count} \u9879"},adopt:{repoLine:"\u4ED3\u5E93\uFF1A{path}",repoNone:"\uFF08\u65E0\uFF09",noUnlinked:"\u6CA1\u6709\u672A\u5173\u8054\u7684 worktree \u2014 \u6B64\u4ED3\u5E93\u6240\u6709 git worktree \u5747\u5DF2\u662F\u4EFB\u52A1",noMatch:"\u6CA1\u6709 worktree \u5339\u914D\u6B64\u8FC7\u6EE4\u6761\u4EF6",hintSelected:"\u5DF2\u9009 {count} \u9879 \xB7 enter \u5207\u6362\u9009\u4E2D \xB7 ctrl+a \u5168\u9009 \xB7 \u521B\u5EFA \u5BFC\u5165",hintDefault:"enter \u5207\u6362\u9009\u4E2D \xB7 ctrl+a \u5168\u9009 \xB7 \u521B\u5EFA \u5C06\u5BFC\u5165\u9AD8\u4EAE\u884C",summaryAll:"\u5DF2\u63A5\u7BA1 {count} \u4E2A worktree",summaryPartial:"\u5DF2\u63A5\u7BA1 {done}/{total} \u4E2A worktree \u2014 \u5176\u4F59\u5931\u8D25\uFF08\u8BE6\u89C1\u65E5\u5FD7\uFF09",summaryNone:"\u6CA1\u6709 worktree \u63A5\u7BA1\u6210\u529F\uFF1A{error}"},clone:{progressFallback:"\u514B\u9686\u4E2D\u2026",progressInto:"\u6B63\u5728\u514B\u9686\u5230 {target}\u2026"},button:{create:"[ \u521B\u5EFA ]",createFocused:"\u25B8 [ \u521B\u5EFA ]",cloning:"[ \u514B\u9686\u4E2D\u2026 ]"},error:{gitUrlRequired:"git \u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A",gitUrlInvalid:"\u4E0D\u50CF\u662F\u6709\u6548\u7684 git \u5730\u5740\uFF1A{url}",folderRequired:"\u6587\u4EF6\u5939\u540D\u4E0D\u80FD\u4E3A\u7A7A",folderHasSeparator:"\u6587\u4EF6\u5939\u540D\u4E0D\u80FD\u5305\u542B\u8DEF\u5F84\u5206\u9694\u7B26",parentRequired:"\u7236\u76EE\u5F55\u4E0D\u80FD\u4E3A\u7A7A",parentNotFound:"\u7236\u76EE\u5F55\u4E0D\u5B58\u5728\uFF1A{path}",parentNotDir:"\u4E0D\u662F\u76EE\u5F55\uFF1A{path}",targetExists:"\u76EE\u6807\u8DEF\u5F84\u5DF2\u5B58\u5728\uFF1A{path}",cloneFailed:"git clone \u5931\u8D25\uFF1A{error}",noAdoptable:"\u6CA1\u6709\u53EF\u63A5\u7BA1\u7684 worktree"}}});var rl,sl;var tl=c(()=>{rl={title:"Welcome to Rove",subtitle:"Two quick questions before your first launch.",completionsQuestion:"Install shell completions for {shell}?",completionsExplain:"Tab-completes rove subcommands. One line is added to your shell config.",skillQuestion:"Install the Rove agent skill?",skillExplain:"Teaches coding agents (Claude Code, Codex) to drive Rove from the shell via `rove api`.",optionYes:"Yes (recommended)",optionNo:"No",legend:"\u2191\u2193 select \xB7 enter confirm \xB7 q skip setup",keysTitle:"Keyboard basics",keysBare:"Bare keys act in the focused pane \u2014 {nav} moves, {open} opens.",keysOnePress:"A few one-press chords are Rove's own \u2014 {newTab} new tab, {focusNext} next pane.",keysPrefix:"{prefix} opens the command map \u2014 hold it a beat and a guide appears.",keysHelp:"{help} shows the full live reference anytime.",keysLegend:"enter finish",appliedCompletions:"\u2713 completions hooked into {path} (takes effect in new shells)",skippedCompletions:"\xB7 completions skipped \u2014 run `{command}` anytime",installingSkill:"installing the Rove agent skill ({command})\u2026",skillFailed:"! skill install failed \u2014 retry with `{command}`",skippedSkill:"\xB7 agent skill skipped \u2014 run `{command}` anytime",ready:"You're ready to go!",readyHint:"Run `rove` to launch the TUI."},sl={title:"\u6B22\u8FCE\u4F7F\u7528 Rove",subtitle:"\u9996\u6B21\u542F\u52A8\u524D\uFF0C\u5148\u56DE\u7B54\u4E24\u4E2A\u5C0F\u95EE\u9898\u3002",completionsQuestion:"\u4E3A {shell} \u5B89\u88C5 shell \u8865\u5168\u5417\uFF1F",completionsExplain:"\u8BA9 rove \u5B50\u547D\u4EE4\u652F\u6301 Tab \u8865\u5168\uFF0C\u4F1A\u5728\u4F60\u7684 shell \u914D\u7F6E\u91CC\u52A0\u4E00\u884C\u3002",skillQuestion:"\u5B89\u88C5 Rove agent skill \u5417\uFF1F",skillExplain:"\u6559\u4F1A\u7F16\u7801 agent\uFF08Claude Code\u3001Codex\uFF09\u901A\u8FC7 `rove api` \u5728\u547D\u4EE4\u884C\u9A71\u52A8 Rove\u3002",optionYes:"\u5B89\u88C5\uFF08\u63A8\u8350\uFF09",optionNo:"\u8DF3\u8FC7",legend:"\u2191\u2193 \u9009\u62E9 \xB7 enter \u786E\u8BA4 \xB7 q \u8DF3\u8FC7\u8BBE\u7F6E",keysTitle:"\u952E\u76D8\u57FA\u7840",keysBare:"\u88F8\u952E\u4F5C\u7528\u4E8E\u5F53\u524D\u805A\u7126\u9762\u677F \u2014 {nav} \u79FB\u52A8\uFF0C{open} \u6253\u5F00\u3002",keysOnePress:"\u5C11\u91CF\u5355\u6B21\u5FEB\u6377\u952E\u5C5E\u4E8E Rove \u81EA\u5DF1 \u2014 {newTab} \u65B0\u6807\u7B7E\u9875\uFF0C{focusNext} \u5207\u6362\u9762\u677F\u3002",keysPrefix:"{prefix} \u6253\u5F00\u547D\u4EE4\u5C42 \u2014 \u6309\u4F4F\u7A0D\u7B49\u4F1A\u51FA\u73B0\u547D\u4EE4\u6307\u5357\u3002",keysHelp:"\u968F\u65F6\u6309 {help} \u67E5\u770B\u5B8C\u6574\u7684\u5B9E\u65F6\u952E\u4F4D\u8868\u3002",keysLegend:"enter \u5B8C\u6210",appliedCompletions:"\u2713 \u8865\u5168\u5DF2\u5199\u5165 {path}\uFF08\u65B0\u5F00\u7684 shell \u751F\u6548\uFF09",skippedCompletions:"\xB7 \u5DF2\u8DF3\u8FC7\u8865\u5168 \u2014 \u4E4B\u540E\u53EF\u968F\u65F6\u8FD0\u884C `{command}`",installingSkill:"\u6B63\u5728\u5B89\u88C5 Rove agent skill\uFF08{command}\uFF09\u2026",skillFailed:"! skill \u5B89\u88C5\u5931\u8D25 \u2014 \u53EF\u7528 `{command}` \u91CD\u8BD5",skippedSkill:"\xB7 \u5DF2\u8DF3\u8FC7 agent skill \u2014 \u4E4B\u540E\u53EF\u968F\u65F6\u8FD0\u884C `{command}`",ready:"\u4E00\u5207\u5C31\u7EEA\uFF01",readyHint:"\u8FD0\u884C `rove` \u542F\u52A8 TUI\u3002"}});var el,$p;var Zp=c(()=>{el={preview:{diffVsHead:"diff vs HEAD",diffVsBase:"diff vs {base}",file:"file",image:"image",binary:"binary file",closeHint:"\xB7 q to close",loading:"loading\u2026",noTextPreview:"no text preview",openHint:"o open in system viewer",review:{noteDialogTitle:"Review note \u2014 {location}",noteFieldLabel:"note",noteSubmitLabel:"add note",notePlaceholder:"what should the agent change here?",count:"{total} notes \xB7 {unsent} unsent",keysHint:"j/k line \xB7 v range \xB7 c note \xB7 s send"}}},$p={preview:{diffVsHead:"\u4E0E HEAD \u5BF9\u6BD4",diffVsBase:"\u4E0E {base} \u5BF9\u6BD4",file:"\u6587\u4EF6",image:"\u56FE\u7247",binary:"\u4E8C\u8FDB\u5236\u6587\u4EF6",closeHint:"\xB7 q \u5173\u95ED",loading:"\u52A0\u8F7D\u4E2D\u2026",noTextPreview:"\u65E0\u6587\u672C\u9884\u89C8",openHint:"o \u7528\u7CFB\u7EDF\u67E5\u770B\u5668\u6253\u5F00",review:{noteDialogTitle:"\u8BC4\u5BA1\u5907\u6CE8 \u2014 {location}",noteFieldLabel:"\u5907\u6CE8",noteSubmitLabel:"\u6DFB\u52A0\u5907\u6CE8",notePlaceholder:"\u5E0C\u671B agent \u5728\u8FD9\u91CC\u6539\u4EC0\u4E48\uFF1F",count:"{total} \u6761\u5907\u6CE8 \xB7 {unsent} \u6761\u672A\u53D1\u9001",keysHint:"j/k \u884C \xB7 v \u8303\u56F4 \xB7 c \u5907\u6CE8 \xB7 s \u53D1\u9001"}}}});var Xp,Jp;var Qp=c(()=>{Xp={title:"Quick task \xB7 {repoLabel}",esc:"esc",promptLabel:"prompt",promptPlaceholder:"what should this task do?",engineLabel:"engine",branchLabel:"branch"},Jp={title:"\u5FEB\u901F\u4EFB\u52A1 \xB7 {repoLabel}",esc:"esc",promptLabel:"\u63D0\u793A\u8BCD",promptPlaceholder:"\u8FD9\u4E2A\u4EFB\u52A1\u8981\u505A\u4EC0\u4E48\uFF1F",engineLabel:"\u5F15\u64CE",branchLabel:"\u5206\u652F"}});var zp,Yp;var Gp=c(()=>{zp={title:"Settings",esc:"esc",nav:{default:"j/k pick \xB7 h/l switch level \xB7 enter activate \xB7 esc close",feedback:"tab next field \xB7 enter sends on Send \xB7 esc close"},sections:{general:"General",engines:"Engines",accounts:"Accounts",plugins:"Plugins",keys:"Keybindings",feedback:"Feedback",dev:"Dev"},general:{usage:"USAGE",theme:"Theme",themeHint:"l to enter list \xB7 j/k to highlight \xB7 enter to apply",language:"Language",languageHint:"Display language for Rove's UI. l to enter list \xB7 j/k to highlight \xB7 enter to apply.",transparent:"Transparent background",transparentHint:"Drops the renderer's bg fill so the host terminal shows through. `t` toggles.",on:"[x] on",off:"[ ] off",focusAccent:"Focus accent",focusAccentHint:"Color of focused pane title, \u258C marker, and split borders.",accentPrimary:"Primary (brand accent)",accentSuccess:"Success (legacy green)",accentInfo:"Info (cool blue)",appearance:"Appearance",appearanceHint:"How split panes draw: a full box frame around every pane, or a single divider line between neighbors.",splitBox:"Box frames",splitLine:"Divider line",notifications:"Notifications",notificationsHint:"Fired when a background chat tab finishes or pauses on an approval. Toast = bottom-right popup; Sound = terminal bell + chime + OSC 9 desktop notification (rides SSH to your local terminal). Cross-task = also notify when a task you've switched AWAY from pauses/errors/finishes. Tab-chip unread dot is always on.",toast:"Toast",sound:"Sound",crossTask:"Notify for background tasks",keyHints:"Keyboard hints",keyHintsHint:"The status-bar command/help reminder and the one-line first-use key hints in the sidebar and files panes. Re-enabling relights pane hints that were dismissed by use.",keyHintsShow:"Show keyboard hints",zen:"Zen mode",zenHint:"The `zen` chip (above the file list) and `prefix`+z hide Files while keeping the Tasks rail and workspace visible. The legacy Keep Tasks value is retained in settings but currently has no layout effect.",zenDefaultOn:"Start in zen mode",zenKeepTasks:"Keep Tasks pane in zen mode (legacy; no effect)",editor:"Editor",editorHint:"What enter opens a file with in the file tree. Changed files use the editor's diff mode when supported; if the editor isn't installed Rove falls back to its read-only preview. `auto` (default) follows $VISUAL / $EDITOR, else auto-detects nvim / vim / emacs / nano. Enter on the row below cycles auto / vim / nvim / nano / emacs / custom.",editorRow:"editor: < {kind} > (enter to change)",editorCustom:"custom: {cmd}",editorCustomUnset:"(unset \u2014 enter to edit)",worktree:"Worktree location",worktreeHint:"Where new task worktrees are created. `next to project` keeps them beside each repo; custom takes any path (`~`, relative, or a leading `$project_dir`). New tasks only.",worktreeBase:"location: < {kind} > (enter switches)",worktreeKindDefault:"default ~/.rove/worktrees",worktreeKindNext:"next to project",worktreeKindCustom:"custom",worktreeCustom:"custom: {path}",worktreeCustomUnset:"(unset \u2014 enter to edit)",worktreeBaseTitle:"Custom worktree location (blank = default; $project_dir = project root)",worktreeBaseField:"path",terminal:"Terminal",terminalHint:"Scrollback: how many rows of history each embedded terminal keeps (100\u2013100000). Applies to terminals opened after the change. Larger values cost proportionally more CPU per redraw \u2014 1000 rows is roughly 2\xD7 the cost of 50.",scrollbackRow:"scrollback: {rows} rows (enter to edit)",scrollbackTitle:"Terminal scrollback rows (100\u2013100000)",scrollbackField:"rows",scrollbackInvalidTitle:"Not a number",scrollbackInvalidBody:"Scrollback must be a number of rows (e.g. 1000). Keeping the previous setting.",tabStripRow:"tab strip: {mode} (enter to cycle)",tabStripMode:{never:"off \u2014 the sidebar tree lists tabs",multipleOnly:"only with 2+ tabs",always:"always"}},engines:{title:"Launch command",hint:"The command each engine's task pane runs. Override a built-in when your binary isn't on PATH as `claude` / `codex` (e.g. it's `cl`) or to pass default flags, or add your own engine. \u25CF = global default engine (per-project picks, e.g. Ctrl+Shift+T, override it). enter edit command \xB7 r rename \xB7 x reset/remove \xB7 d set default.",defaultTag:" (default)",customTag:" (custom)",addEngine:"+ Add engine"},accounts:{title:"Accounts",hint:"Read-only view of locally-detected engine accounts. Login flows land here later.",checking:"Checking\u2026",notLoggedIn:"\u25CB Not logged in",loggedIn:"\u25CF Logged in: {email}",apiKeyConfigured:"\u25CF API key configured",chatgptLogin:"\u25CF ChatGPT login: {email}",tokenConfigured:"\u25CF Token configured ({source})",copilotDetected:"\u25CF Copilot login detected",kimiDetected:"\u25CF Kimi login detected"},plugins:{title:"Plugins",hint:"Plugins registered in ~/.kobe/plugins.json. enter (or click) toggles one on or off \u2014 the daemon watches the file, so the change applies live. Rows indented under a plugin are the settings it declares; enter edits one, and the value reaches the plugin on its next run. Install and remove them from the shell: `rove plugin install <owner/repo>`, `rove plugin link <dir>`.",empty:"No plugins registered. Install one with `rove plugin install <owner/repo>` \u2014 browse the `rove-plugin` topic on GitHub.",sourceLink:"linked {path}",sourceGithub:"{spec}",updateAvailable:"update available \u2014 rove plugin update",declares:"{actions} actions \xB7 {events} events \xB7 {panes} panes",manifestUnreadable:"manifest unreadable",lastRun:"\xB7 last run {label} {status} {ago} ago",neverRun:"\xB7 never run",runOk:"ok",runFailed:"failed to start",runExit:"exit {code}",settingUnset:"(unset \u2014 enter to edit)",settingInvalidTitle:"Not a number",settingInvalidBody:"{label} only accepts a number. Keeping the previous value."},keybindings:{title:"Keybindings",hint:"Edit the YAML below to rebind direct and PureTUI prefix chords; changes reload live. Press F1 anywhere for the live keymap with every binding id.",configFile:"Config file",notCreated:" (not created yet)",prefixTitle:"Command layer ({prefix})",prefixHint:"Bare keys act in the focused pane; a small one-press set covers frequent Rove actions; {prefix} opens the command map ({timeout}ms second-stroke window \u2014 hold on and a guide appears). Prefix bindings keep their pane scope and modal rules.",prefixDisabled:"disabled",fixed:"Fixed (not rebindable): {ids}.",example:"Example",overridesApplied:"Overrides applied",none:"none",warnings:"Warnings"},feedback:{title:"Feedback",hint:"Sends a GitHub Discussion to the Rove repo through `gh`. Requires `gh auth login`; category defaults to Feedback.",titleLabel:"title",titlePlaceholder:"Short summary",descriptionLabel:"description",descriptionPlaceholder:"What happened? (enter for a new line \xB7 tab to Send)",send:"[enter] Send to GitHub Discussions"},dev:{reset:"Reset UI state",resetHint:"Clears ~/.config/rove/state.json and ~/.rove/tasks.json, then quits Rove \u2014 relaunch to start fresh. Working session / Archive lists, pane sizes, theme, model picks all reset. Worktrees on disk and Claude Code session history are not touched.",resetButton:"[enter] Reset",restart:"Restart backend",restartHint:"Stops the Rove daemon and quits this Rove window so the next launch spawns a fresh daemon \u2014 picks up daemon / orchestrator / engine edits without a process kill. Other attached Rove windows will lose their connection too.",restartButton:"[enter] Restart",doctorHint:"Daemon wedged or unresponsive? From a shell, run `rove daemon restart`, then relaunch Rove. Hosted engine sessions stay alive across a daemon restart.",experimental:"Experimental",remoteHint:"Remote projects (SSH): register a project whose git worktrees live on another host, driven from this local Rove. Unfinished \u2014 Hosted PTY engine launch over SSH is not implemented, and file/diff panes still degrade. Enables `rove add --remote`.",remoteOn:"[x] Remote projects (on)",remoteOff:"[ ] Remote projects (off)",autoStatusHint:"Auto status flow: a backlog task moves to in_progress when its engine starts a turn, and new claude sessions get a system-prompt note telling the agent to set in_review itself when the work is done. Never touches done/canceled.",autoStatusOn:"[x] Auto status flow (on)",autoStatusOff:"[ ] Auto status flow (off)",dispatcherHint:"Field-notes dispatcher: task sessions file one-line gotchas (`rove api note`), the daemon forwards each to the repo's main session, and that session relays them to the in-flight tasks that benefit (`rove api dispatch`). Web-hosted sessions receive the relays today.",dispatcherOn:"[x] Field-notes dispatcher (on)",dispatcherOff:"[ ] Field-notes dispatcher (off)",archivedHistoryHint:"Archived history preview (beta): opening an archived task shows a read-only `rove history` pane (session selector + transcript) in the engine slot instead of relaunching the engine. Its transcript survives worktree removal because the engine store is keyed by the worktree path. Shared with the web dashboard.",archivedHistoryOn:"[x] Archived history preview (on)",archivedHistoryOff:"[ ] Archived history preview (off)"}},Yp={title:"\u8BBE\u7F6E",esc:"esc",nav:{default:"j/k \u9009\u62E9 \xB7 h/l \u5207\u6362\u5C42\u7EA7 \xB7 enter \u786E\u8BA4 \xB7 esc \u5173\u95ED",feedback:"tab \u4E0B\u4E00\u9879 \xB7 enter \u5728\u53D1\u9001\u9879\u53D1\u9001 \xB7 esc \u5173\u95ED"},sections:{general:"\u901A\u7528",engines:"\u5F15\u64CE",accounts:"\u8D26\u6237",plugins:"\u63D2\u4EF6",keys:"\u5FEB\u6377\u952E",feedback:"\u53CD\u9988",dev:"\u5F00\u53D1"},general:{usage:"\u7528\u91CF",theme:"\u4E3B\u9898",themeHint:"l \u8FDB\u5165\u5217\u8868 \xB7 j/k \u9AD8\u4EAE \xB7 enter \u5E94\u7528",language:"\u8BED\u8A00",languageHint:"Rove \u754C\u9762\u7684\u663E\u793A\u8BED\u8A00\u3002l \u8FDB\u5165\u5217\u8868 \xB7 j/k \u9AD8\u4EAE \xB7 enter \u5E94\u7528\u3002",transparent:"\u900F\u660E\u80CC\u666F",transparentHint:"\u53BB\u6389\u6E32\u67D3\u5668\u7684\u80CC\u666F\u586B\u5145\uFF0C\u8BA9\u5BBF\u4E3B\u7EC8\u7AEF\u900F\u51FA\u6765\u3002\u6309 `t` \u5207\u6362\u3002",on:"[x] \u5F00",off:"[ ] \u5173",focusAccent:"\u805A\u7126\u5F3A\u8C03\u8272",focusAccentHint:"\u805A\u7126\u9762\u677F\u6807\u9898\u3001\u258C \u6807\u8BB0\u548C\u5206\u9694\u8FB9\u6846\u7684\u989C\u8272\u3002",accentPrimary:"\u4E3B\u8272\uFF08\u54C1\u724C\u5F3A\u8C03\u8272\uFF09",accentSuccess:"\u6210\u529F\u8272\uFF08\u4F20\u7EDF\u7EFF\uFF09",accentInfo:"\u4FE1\u606F\u8272\uFF08\u51B7\u84DD\uFF09",appearance:"\u5916\u89C2",appearanceHint:"\u5206\u5C4F\u9762\u677F\u7684\u63CF\u8FB9\u65B9\u5F0F\uFF1A\u6BCF\u4E2A\u9762\u677F\u4E00\u4E2A\u5B8C\u6574\u65B9\u6846\uFF0C\u6216\u76F8\u90BB\u9762\u677F\u4E4B\u95F4\u4E00\u6761\u5206\u9694\u7EBF\u3002",splitBox:"\u65B9\u6846\u8FB9\u6846",splitLine:"\u5355\u7EBF\u5206\u9694",notifications:"\u901A\u77E5",notificationsHint:"\u540E\u53F0\u804A\u5929\u9875\u5B8C\u6210\u6216\u5728\u5BA1\u6279\u5904\u6682\u505C\u65F6\u89E6\u53D1\u3002Toast = \u53F3\u4E0B\u89D2\u5F39\u7A97\uFF1BSound = \u7EC8\u7AEF\u54CD\u94C3 + \u63D0\u793A\u97F3 + OSC 9 \u684C\u9762\u901A\u77E5\uFF08\u7ECF SSH \u76F4\u8FBE\u4F60\u672C\u5730\u7EC8\u7AEF\uFF09\u3002\u8DE8\u4EFB\u52A1 = \u4F60\u5DF2\u5207\u8D70\u7684\u4EFB\u52A1\u6682\u505C/\u51FA\u9519/\u5B8C\u6210\u65F6\u4E5F\u901A\u77E5\u3002\u6807\u7B7E\u4E0A\u7684\u672A\u8BFB\u5706\u70B9\u59CB\u7EC8\u5F00\u542F\u3002",toast:"Toast \u5F39\u7A97",sound:"\u58F0\u97F3",crossTask:"\u4E3A\u540E\u53F0\u4EFB\u52A1\u53D1\u9001\u901A\u77E5",keyHints:"\u952E\u76D8\u63D0\u793A",keyHintsHint:"\u72B6\u6001\u680F\u7684\u547D\u4EE4/\u5E2E\u52A9\u63D0\u9192\uFF0C\u4EE5\u53CA\u4FA7\u680F\u548C\u6587\u4EF6\u9762\u677F\u7684\u4E00\u884C\u9996\u7528\u6309\u952E\u63D0\u793A\u3002\u91CD\u65B0\u5F00\u542F\u4F1A\u91CD\u65B0\u70B9\u4EAE\u5DF2\u56E0\u4F7F\u7528\u800C\u7184\u706D\u7684\u9762\u677F\u63D0\u793A\u3002",keyHintsShow:"\u663E\u793A\u952E\u76D8\u63D0\u793A",zen:"\u7985\u6A21\u5F0F",zenHint:"`zen` \u6807\u8BB0\uFF08\u6587\u4EF6\u5217\u8868\u4E0A\u65B9\uFF09\u548C `prefix`+z \u4F1A\u9690\u85CF Files\uFF0C\u540C\u65F6\u4FDD\u7559 Tasks \u4FA7\u680F\u4E0E workspace\u3002\u65E7\u7684\u201C\u7985\u6A21\u5F0F\u4E0B\u4FDD\u7559 Tasks \u9762\u677F\u201D\u8BBE\u7F6E\u4ECD\u4F1A\u4FDD\u5B58\uFF0C\u4F46\u5F53\u524D\u4E0D\u4F1A\u6539\u53D8\u5E03\u5C40\u3002",zenDefaultOn:"\u542F\u52A8\u5373\u8FDB\u5165\u7985\u6A21\u5F0F",zenKeepTasks:"\u7985\u6A21\u5F0F\u4E0B\u4FDD\u7559 Tasks \u9762\u677F\uFF08\u65E7\u8BBE\u7F6E\uFF1B\u5F53\u524D\u65E0\u6548\uFF09",editor:"\u7F16\u8F91\u5668",editorHint:"\u6587\u4EF6\u6811\u91CC\u6309 enter \u7528\u4EC0\u4E48\u6253\u5F00\u6587\u4EF6\uFF1B\u4FEE\u6539\u8FC7\u7684\u6587\u4EF6\u4F1A\u5728\u652F\u6301\u65F6\u4F7F\u7528\u7F16\u8F91\u5668 diff \u6A21\u5F0F\uFF0C\u7F16\u8F91\u5668\u672A\u5B89\u88C5\u65F6\u56DE\u9000\u5230 Rove \u7684\u53EA\u8BFB\u9884\u89C8\u3002`auto`\uFF08\u9ED8\u8BA4\uFF09\u8DDF\u968F $VISUAL / $EDITOR\uFF0C\u5426\u5219\u81EA\u52A8\u63A2\u6D4B nvim / vim / emacs / nano\u3002\u5728\u4E0B\u65B9\u4E00\u884C\u6309 enter \u5728 auto / vim / nvim / nano / emacs / custom \u95F4\u5FAA\u73AF\u3002",editorRow:"\u7F16\u8F91\u5668: < {kind} > (enter \u5207\u6362)",editorCustom:"\u81EA\u5B9A\u4E49: {cmd}",editorCustomUnset:"(\u672A\u8BBE\u7F6E \u2014 enter \u7F16\u8F91)",worktree:"\u5DE5\u4F5C\u6811\u4F4D\u7F6E",worktreeHint:"\u65B0\u4EFB\u52A1\u5DE5\u4F5C\u6811\u7684\u521B\u5EFA\u4F4D\u7F6E\u3002\u300C\u9879\u76EE\u65C1\u8FB9\u300D= \u7D27\u6328\u5404\u81EA\u4ED3\u5E93\u5B58\u653E\uFF1B\u81EA\u5B9A\u4E49\u53EF\u586B\u4EFB\u610F\u8DEF\u5F84\uFF08`~`\u3001\u76F8\u5BF9\u8DEF\u5F84\u6216\u4EE5 `$project_dir` \u5F00\u5934\uFF09\u3002\u4EC5\u5BF9\u65B0\u4EFB\u52A1\u751F\u6548\u3002",worktreeBase:"\u4F4D\u7F6E: < {kind} > (enter \u5207\u6362)",worktreeKindDefault:"\u9ED8\u8BA4 ~/.rove/worktrees",worktreeKindNext:"\u9879\u76EE\u65C1\u8FB9",worktreeKindCustom:"\u81EA\u5B9A\u4E49",worktreeCustom:"\u81EA\u5B9A\u4E49: {path}",worktreeCustomUnset:"(\u672A\u8BBE\u7F6E \u2014 enter \u7F16\u8F91)",worktreeBaseTitle:"\u81EA\u5B9A\u4E49\u5DE5\u4F5C\u6811\u4F4D\u7F6E\uFF08\u7559\u7A7A = \u9ED8\u8BA4\uFF1B$project_dir = \u9879\u76EE\u6839\u76EE\u5F55\uFF09",worktreeBaseField:"\u8DEF\u5F84",terminal:"\u7EC8\u7AEF",terminalHint:"\u56DE\u6EDA\u7F13\u51B2\uFF1A\u6BCF\u4E2A\u5185\u5D4C\u7EC8\u7AEF\u4FDD\u7559\u591A\u5C11\u884C\u5386\u53F2\uFF08100\u2013100000\uFF09\u3002\u5BF9\u4FEE\u6539\u540E\u65B0\u6253\u5F00\u7684\u7EC8\u7AEF\u751F\u6548\u3002\u8C03\u5927\u4F1A\u6309\u6BD4\u4F8B\u589E\u52A0\u6BCF\u6B21\u91CD\u7ED8\u7684 CPU\u2014\u20141000 \u884C\u7EA6\u4E3A 50 \u884C\u7684 2 \u500D\u3002",scrollbackRow:"\u56DE\u6EDA\u884C\u6570: {rows} \u884C (enter \u7F16\u8F91)",scrollbackTitle:"\u7EC8\u7AEF\u56DE\u6EDA\u884C\u6570\uFF08100\u2013100000\uFF09",scrollbackField:"\u884C\u6570",scrollbackInvalidTitle:"\u4E0D\u662F\u6570\u5B57",scrollbackInvalidBody:"\u56DE\u6EDA\u884C\u6570\u5FC5\u987B\u662F\u6570\u5B57\uFF08\u5982 1000\uFF09\u3002\u4FDD\u7559\u539F\u8BBE\u7F6E\u3002",tabStripRow:"\u6807\u7B7E\u680F: {mode} (enter \u5207\u6362)",tabStripMode:{never:"\u5173\u95ED \u2014 \u6807\u7B7E\u5728\u5DE6\u4FA7\u6811\u91CC",multipleOnly:"\u4EC5 2 \u4E2A\u4EE5\u4E0A\u6807\u7B7E\u65F6\u663E\u793A",always:"\u59CB\u7EC8\u663E\u793A"}},engines:{title:"\u542F\u52A8\u547D\u4EE4",hint:"\u6BCF\u4E2A\u5F15\u64CE\u7684\u4EFB\u52A1\u9762\u677F\u8FD0\u884C\u7684\u547D\u4EE4\u3002\u5F53\u4E8C\u8FDB\u5236\u6587\u4EF6\u4E0D\u5728 PATH \u4E0A\u7684 `claude` / `codex` \u540D\u4E0B\uFF08\u6BD4\u5982\u53EB `cl`\uFF09\u3001\u8981\u4F20\u9ED8\u8BA4\u53C2\u6570\uFF0C\u6216\u8981\u6DFB\u52A0\u81EA\u5DF1\u7684\u5F15\u64CE\u65F6\uFF0C\u53EF\u8986\u76D6\u5185\u7F6E\u9879\u3002\u25CF = \u5168\u5C40\u9ED8\u8BA4\u5F15\u64CE\uFF08\u5404\u9879\u76EE\u81EA\u5DF1\u7684\u9009\u62E9\u4F1A\u8986\u76D6\u5B83\uFF0C\u5982 Ctrl+Shift+T\uFF09\u3002enter \u7F16\u8F91\u547D\u4EE4 \xB7 r \u91CD\u547D\u540D \xB7 x \u91CD\u7F6E/\u79FB\u9664 \xB7 d \u8BBE\u4E3A\u9ED8\u8BA4\u3002",defaultTag:" (\u9ED8\u8BA4)",customTag:" (\u81EA\u5B9A\u4E49)",addEngine:"+ \u6DFB\u52A0\u5F15\u64CE"},accounts:{title:"\u8D26\u6237",hint:"\u672C\u5730\u63A2\u6D4B\u5230\u7684\u5F15\u64CE\u8D26\u6237\u7684\u53EA\u8BFB\u89C6\u56FE\u3002\u767B\u5F55\u6D41\u7A0B\u7A0D\u540E\u4F1A\u63A5\u5165\u8FD9\u91CC\u3002",checking:"\u68C0\u67E5\u4E2D\u2026",notLoggedIn:"\u25CB \u672A\u767B\u5F55",loggedIn:"\u25CF \u5DF2\u767B\u5F55: {email}",apiKeyConfigured:"\u25CF \u5DF2\u914D\u7F6E API key",chatgptLogin:"\u25CF ChatGPT \u767B\u5F55: {email}",tokenConfigured:"\u25CF \u5DF2\u914D\u7F6E Token ({source})",copilotDetected:"\u25CF \u68C0\u6D4B\u5230 Copilot \u767B\u5F55",kimiDetected:"\u25CF \u68C0\u6D4B\u5230 Kimi \u767B\u5F55"},plugins:{title:"\u63D2\u4EF6",hint:"\u5728 ~/.kobe/plugins.json \u91CC\u6CE8\u518C\u7684\u63D2\u4EF6\u3002enter\uFF08\u6216\u70B9\u51FB\uFF09\u5207\u6362\u542F\u7528/\u7981\u7528\u2014\u2014daemon \u76D1\u542C\u8BE5\u6587\u4EF6\uFF0C\u6539\u52A8\u5B9E\u65F6\u751F\u6548\u3002\u63D2\u4EF6\u4E0B\u65B9\u7F29\u8FDB\u7684\u884C\u662F\u5B83\u58F0\u660E\u7684\u8BBE\u7F6E\u9879\uFF0Center \u7F16\u8F91\uFF0C\u65B0\u503C\u5728\u63D2\u4EF6\u4E0B\u6B21\u8FD0\u884C\u65F6\u751F\u6548\u3002\u5B89\u88C5\u4E0E\u79FB\u9664\u5728 shell \u91CC\u505A\uFF1A`rove plugin install <owner/repo>`\u3001`rove plugin link <dir>`\u3002",empty:"\u5C1A\u672A\u6CE8\u518C\u4EFB\u4F55\u63D2\u4EF6\u3002\u7528 `rove plugin install <owner/repo>` \u5B89\u88C5\u4E00\u4E2A\u2014\u2014\u53EF\u5728 GitHub \u7684 `rove-plugin` \u8BDD\u9898\u4E0B\u6D4F\u89C8\u3002",sourceLink:"\u672C\u5730\u94FE\u63A5 {path}",sourceGithub:"{spec}",updateAvailable:"\u6709\u65B0\u7248\u672C \u2014 rove plugin update",declares:"{actions} \u4E2A\u52A8\u4F5C \xB7 {events} \u4E2A\u4E8B\u4EF6 \xB7 {panes} \u4E2A\u9762\u677F",manifestUnreadable:"manifest \u65E0\u6CD5\u89E3\u6790",lastRun:"\xB7 \u4E0A\u6B21\u8FD0\u884C {label} {status} {ago}\u524D",neverRun:"\xB7 \u5C1A\u672A\u8FD0\u884C\u8FC7",runOk:"\u6210\u529F",runFailed:"\u542F\u52A8\u5931\u8D25",runExit:"\u9000\u51FA\u7801 {code}",settingUnset:"(\u672A\u8BBE\u7F6E \u2014 enter \u7F16\u8F91)",settingInvalidTitle:"\u4E0D\u662F\u6570\u5B57",settingInvalidBody:"{label} \u53EA\u63A5\u53D7\u6570\u5B57\uFF0C\u4FDD\u7559\u539F\u503C\u3002"},keybindings:{title:"\u5FEB\u6377\u952E",hint:"\u7F16\u8F91\u4E0B\u9762\u7684 YAML \u6765\u91CD\u7ED1\u5B9A\u76F4\u63A5\u6309\u952E\u548C PureTUI prefix \u7EC4\u5408\uFF1B\u4FEE\u6539\u4F1A\u5B9E\u65F6\u52A0\u8F7D\u3002\u4EFB\u610F\u4F4D\u7F6E\u6309 F1 \u67E5\u770B\u5E26\u6BCF\u4E2A\u7ED1\u5B9A id \u7684\u5B9E\u65F6\u952E\u4F4D\u8868\u3002",configFile:"\u914D\u7F6E\u6587\u4EF6",notCreated:" (\u5C1A\u672A\u521B\u5EFA)",prefixTitle:"\u547D\u4EE4\u5C42\uFF08{prefix}\uFF09",prefixHint:"\u88F8\u952E\u4F5C\u7528\u4E8E\u5F53\u524D\u805A\u7126\u9762\u677F\uFF1B\u5C11\u91CF\u5355\u6B21\u5FEB\u6377\u952E\u8986\u76D6\u9AD8\u9891 Rove \u64CD\u4F5C\uFF1B{prefix} \u6253\u5F00\u547D\u4EE4\u5C42\uFF08\u7B2C\u4E8C\u51FB\u7A97\u53E3 {timeout}ms \u2014 \u7A0D\u7B49\u4F1A\u51FA\u73B0\u547D\u4EE4\u6307\u5357\uFF09\u3002Prefix \u7ED1\u5B9A\u4FDD\u6301\u539F\u6709\u7684\u9762\u677F\u4F5C\u7528\u57DF\u548C modal \u89C4\u5219\u3002",prefixDisabled:"\u5DF2\u7981\u7528",fixed:"\u56FA\u5B9A\uFF08\u4E0D\u53EF\u91CD\u7ED1\u5B9A\uFF09\uFF1A{ids}\u3002",example:"\u793A\u4F8B",overridesApplied:"\u5DF2\u5E94\u7528\u7684\u8986\u76D6",none:"\u65E0",warnings:"\u8B66\u544A"},feedback:{title:"\u53CD\u9988",hint:"\u901A\u8FC7 `gh` \u5411 Rove \u4ED3\u5E93\u53D1\u4E00\u6761 GitHub Discussion\u3002\u9700\u8981 `gh auth login`\uFF1B\u5206\u7C7B\u9ED8\u8BA4\u4E3A Feedback\u3002",titleLabel:"\u6807\u9898",titlePlaceholder:"\u7B80\u77ED\u6982\u62EC",descriptionLabel:"\u63CF\u8FF0",descriptionPlaceholder:"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F(enter \u6362\u884C \xB7 tab \u8DF3\u5230\u53D1\u9001)",send:"[enter] \u53D1\u9001\u5230 GitHub Discussions"},dev:{reset:"\u91CD\u7F6E UI \u72B6\u6001",resetHint:"\u6E05\u7A7A ~/.config/rove/state.json \u548C ~/.rove/tasks.json\uFF0C\u7136\u540E\u9000\u51FA Rove\u2014\u2014\u91CD\u65B0\u542F\u52A8\u5373\u53EF\u4ECE\u5934\u5F00\u59CB\u3002\u5DE5\u4F5C\u4F1A\u8BDD / \u5F52\u6863\u5217\u8868\u3001\u9762\u677F\u5C3A\u5BF8\u3001\u4E3B\u9898\u3001\u6A21\u578B\u9009\u62E9\u90FD\u4F1A\u91CD\u7F6E\u3002\u78C1\u76D8\u4E0A\u7684 worktree \u548C Claude Code \u4F1A\u8BDD\u5386\u53F2\u4E0D\u53D7\u5F71\u54CD\u3002",resetButton:"[enter] \u91CD\u7F6E",restart:"\u91CD\u542F\u540E\u7AEF",restartHint:"\u505C\u6B62 Rove daemon \u5E76\u9000\u51FA\u5F53\u524D Rove \u7A97\u53E3\uFF0C\u4E0B\u6B21\u542F\u52A8\u4F1A\u62C9\u8D77\u4E00\u4E2A\u5168\u65B0\u7684 daemon\u2014\u2014\u65E0\u9700\u6740\u8FDB\u7A0B\u5373\u53EF\u5E94\u7528 daemon / orchestrator / engine \u7684\u6539\u52A8\u3002\u5176\u4ED6\u5DF2\u8FDE\u63A5\u7684 Rove \u7A97\u53E3\u4E5F\u4F1A\u65AD\u5F00\u8FDE\u63A5\u3002",restartButton:"[enter] \u91CD\u542F",doctorHint:"daemon \u5361\u4F4F\u6216\u65E0\u54CD\u5E94\uFF1F\u5728 shell \u91CC\u8FD0\u884C `rove daemon restart`\uFF0C\u7136\u540E\u91CD\u65B0\u542F\u52A8 Rove\u3002Hosted PTY \u5F15\u64CE\u4F1A\u8BDD\u4E0D\u4F1A\u56E0 daemon \u91CD\u542F\u800C\u9000\u51FA\u3002",experimental:"\u5B9E\u9A8C\u6027",remoteHint:"\u8FDC\u7A0B\u9879\u76EE\uFF08SSH\uFF09\uFF1A\u6CE8\u518C\u4E00\u4E2A git worktree + \u5F15\u64CE\u90FD\u901A\u8FC7 SSH \u8DD1\u5728\u53E6\u4E00\u53F0\u4E3B\u673A\u4E0A\u3001\u7531\u672C\u5730 Rove \u9A71\u52A8\u7684\u9879\u76EE\u3002\u5C1A\u672A\u5B8C\u6210\u2014\u2014\u6587\u4EF6/diff \u9762\u677F\u5BF9\u8FDC\u7A0B\u4ECD\u4F1A\u964D\u7EA7\u3002\u542F\u7528 `rove add --remote`\u3002",remoteOn:"[x] \u8FDC\u7A0B\u9879\u76EE (\u5F00)",remoteOff:"[ ] \u8FDC\u7A0B\u9879\u76EE (\u5173)",autoStatusHint:"\u81EA\u52A8\u72B6\u6001\u6D41\u8F6C\uFF1Abacklog \u4EFB\u52A1\u5728\u5176\u5F15\u64CE\u5F00\u59CB\u4E00\u8F6E\u65F6\u79FB\u5230 in_progress\uFF0C\u65B0\u7684 claude \u4F1A\u8BDD\u4F1A\u62FF\u5230\u4E00\u6761\u7CFB\u7EDF\u63D0\u793A\uFF0C\u544A\u8BC9 agent \u5B8C\u6210\u540E\u81EA\u884C\u8BBE\u4E3A in_review\u3002\u7EDD\u4E0D\u89E6\u78B0 done/canceled\u3002",autoStatusOn:"[x] \u81EA\u52A8\u72B6\u6001\u6D41\u8F6C (\u5F00)",autoStatusOff:"[ ] \u81EA\u52A8\u72B6\u6001\u6D41\u8F6C (\u5173)",dispatcherHint:"\u73B0\u573A\u7B14\u8BB0\u8C03\u5EA6\u5668\uFF1A\u4EFB\u52A1\u4F1A\u8BDD\u63D0\u4EA4\u4E00\u884C\u7ECF\u9A8C\uFF08`rove api note`\uFF09\uFF0Cdaemon \u5C06\u6BCF\u6761\u8F6C\u53D1\u7ED9\u4ED3\u5E93\u7684\u4E3B\u4F1A\u8BDD\uFF0C\u4E3B\u4F1A\u8BDD\u518D\u628A\u5B83\u4EEC\u8F6C\u8FBE\u7ED9\u80FD\u53D7\u76CA\u7684\u8FDB\u884C\u4E2D\u4EFB\u52A1\uFF08`rove api dispatch`\uFF09\u3002\u76EE\u524D\u7531 Web \u6258\u7BA1\u7684\u4F1A\u8BDD\u4F1A\u6536\u5230\u8F6C\u8FBE\u3002",dispatcherOn:"[x] \u73B0\u573A\u7B14\u8BB0\u8C03\u5EA6\u5668 (\u5F00)",dispatcherOff:"[ ] \u73B0\u573A\u7B14\u8BB0\u8C03\u5EA6\u5668 (\u5173)",archivedHistoryHint:"\u5F52\u6863\u5386\u53F2\u9884\u89C8\uFF08beta\uFF09\uFF1A\u6253\u5F00\u5DF2\u5F52\u6863\u7684\u4EFB\u52A1\u65F6\uFF0C\u5F15\u64CE\u4F4D\u7F6E\u6539\u4E3A\u53EA\u8BFB\u7684 `rove history` \u9762\u677F\uFF08\u4F1A\u8BDD\u9009\u62E9\u5668 + \u5BF9\u8BDD\u8BB0\u5F55\uFF09\uFF0C\u800C\u4E0D\u662F\u91CD\u65B0\u542F\u52A8\u5F15\u64CE\u3002\u5F15\u64CE\u8BB0\u5F55\u6309 worktree \u8DEF\u5F84\u5B58\u50A8\uFF0C\u6240\u4EE5 worktree \u88AB\u5220\u9664\u540E\u5386\u53F2\u4ECD\u7136\u53EF\u8BFB\u3002\u4E0E Web \u4EEA\u8868\u76D8\u5171\u7528\u540C\u4E00\u5F00\u5173\u3002",archivedHistoryOn:"[x] \u5F52\u6863\u5386\u53F2\u9884\u89C8 (\u5F00)",archivedHistoryOff:"[ ] \u5F52\u6863\u5386\u53F2\u9884\u89C8 (\u5173)"}}});var Wp,qp;var Hp=c(()=>{Wp={nav:{workspace:"Workspace",kanban:"Kanban",automations:"Routines",issues:"Issues"},header:{projects:"PROJECTS",tasks:"TASKS",scratch:"SCRATCH"},search:{placeholder:"fuzzy filter"},menu:{open:"Open",openTab:"Open tab",closeTab:"Close tab",newChat:"New conversation",newShell:"New shell",newTask:"New task",rename:"Rename",pin:"Pin",unpin:"Unpin",localMerge:"Merge into local",archive:"Archive",delete:"Delete"},moveChip:" move",recentJump:"Recent: {title}",empty:{noMatchSearch:"No matching tasks \u2014 esc to clear.",noActiveProject:"No active tasks for this project.",noActive:"No active tasks \u2014 create one above."},activity:{rateLimited:"rate limited",permissionNeeded:"needs permission",error:"error"},subtitle:{noTracking:"no activity tracking",materializing:"materializing",deleting:"deleting",deleteFailed:"delete failed"},hints:{headerFolded:"\u2500\u2500 keys ?\u25B8 \u2500\u2500",headerUnfolded:"\u2500\u2500 keys ?\u25BE \u2500\u2500",fullHelp:"full help",newTask:"new task",settings:"settings",open:"open",focusEngine:"focus engine",openWorktree:"open wt",delete:"delete",views:"views",project:"project",reorder:"reorder",done:"done"},reBranch:{title:"Set branch",fieldLabel:"branch",hintNoBranches:"(no local branches \u2014 type a new name)",hintNoMatch:"(no match \u2014 enter renames to this branch)",footer:"\u2191\u2193 pick \xB7 enter set \xB7 esc cancel"},toast:{noDaemonWorktree:"No daemon running \u2014 can't create the worktree",noDaemonOpen:"No daemon running \u2014 can't open this task",noEditor:"No editor found \u2014 set ROVE_OPEN_EDITOR (e.g. 'code', 'cursor', 'nvim')",openWorktreeFailed:"Couldn't open worktree with {label}",sessionStartFailed:"Couldn't start this task's session",moveTaskFailed:"Couldn't move task: {message}",alreadyLatest:"Already on the latest version (v{version})",worktreeErrorNotGit:"This project isn't a git repo yet \u2014 a task needs a git branch. Run `git init` (+ a first commit) in the project, then open the task. Non-git support is coming.",worktreeErrorGeneric:"Couldn't create the worktree: {message}",scratchAdopted:"Adopted into {repo} \u2014 save it as a project from New Task if you want it in the picker",scratchOpenFailed:"Couldn't open a scratch shell: {message}",scratchCloseFailed:"Couldn't close the scratch task: {message}"}},qp={nav:{workspace:"\u5DE5\u4F5C\u533A",kanban:"\u770B\u677F",automations:"\u4F8B\u884C\u4EFB\u52A1",issues:"\u8BAE\u9898"},header:{projects:"\u9879\u76EE",tasks:"\u4EFB\u52A1",scratch:"\u4E34\u65F6"},search:{placeholder:"\u6A21\u7CCA\u641C\u7D22"},menu:{open:"\u6253\u5F00",openTab:"\u6253\u5F00\u8BE5\u6807\u7B7E\u9875",closeTab:"\u5173\u95ED\u8BE5\u6807\u7B7E\u9875",newChat:"\u65B0\u5EFA\u4F1A\u8BDD",newShell:"\u65B0\u5EFA\u7EC8\u7AEF",newTask:"\u65B0\u5EFA\u4EFB\u52A1",rename:"\u91CD\u547D\u540D",pin:"\u7F6E\u9876",unpin:"\u53D6\u6D88\u7F6E\u9876",localMerge:"\u5408\u5165\u672C\u5730\u5206\u652F",archive:"\u5F52\u6863",delete:"\u5220\u9664"},moveChip:" \u79FB\u52A8",recentJump:"\u6700\u8FD1:{title}",empty:{noMatchSearch:"\u65E0\u5339\u914D\u4EFB\u52A1\u2014\u2014\u6309 esc \u6E05\u9664\u3002",noActiveProject:"\u8BE5\u9879\u76EE\u6682\u65E0\u6D3B\u8DC3\u4EFB\u52A1\u3002",noActive:"\u6682\u65E0\u6D3B\u8DC3\u4EFB\u52A1\u2014\u2014\u5728\u4E0A\u65B9\u65B0\u5EFA\u3002"},activity:{rateLimited:"\u8BF7\u6C42\u53D7\u9650",permissionNeeded:"\u7B49\u5F85\u6388\u6743",error:"\u9519\u8BEF"},subtitle:{noTracking:"\u4E0D\u8DDF\u8E2A\u6D3B\u52A8",materializing:"\u6B63\u5728\u521B\u5EFA worktree",deleting:"\u6B63\u5728\u5220\u9664",deleteFailed:"\u5220\u9664\u5931\u8D25"},hints:{headerFolded:"\u2500\u2500 \u5FEB\u6377\u952E ?\u25B8 \u2500\u2500",headerUnfolded:"\u2500\u2500 \u5FEB\u6377\u952E ?\u25BE \u2500\u2500",fullHelp:"\u5B8C\u6574\u5E2E\u52A9",newTask:"\u65B0\u5EFA\u4EFB\u52A1",settings:"\u8BBE\u7F6E",open:"\u6253\u5F00",focusEngine:"\u805A\u7126\u5F15\u64CE",openWorktree:"\u6253\u5F00 worktree",delete:"\u5220\u9664",views:"\u89C6\u56FE",project:"\u9879\u76EE",reorder:"\u91CD\u65B0\u6392\u5E8F",done:"\u5B8C\u6210"},reBranch:{title:"\u8BBE\u7F6E\u5206\u652F",fieldLabel:"\u5206\u652F",hintNoBranches:"\uFF08\u6CA1\u6709\u672C\u5730\u5206\u652F\u2014\u2014\u8F93\u5165\u65B0\u540D\u79F0\uFF09",hintNoMatch:"\uFF08\u65E0\u5339\u914D\u2014\u2014\u56DE\u8F66\u5C06\u5206\u652F\u91CD\u547D\u540D\u4E3A\u6B64\u540D\uFF09",footer:"\u2191\u2193 \u9009\u62E9 \xB7 enter \u8BBE\u7F6E \xB7 esc \u53D6\u6D88"},toast:{noDaemonWorktree:"\u5B88\u62A4\u8FDB\u7A0B\u672A\u8FD0\u884C\u2014\u2014\u65E0\u6CD5\u521B\u5EFA worktree",noDaemonOpen:"\u5B88\u62A4\u8FDB\u7A0B\u672A\u8FD0\u884C\u2014\u2014\u65E0\u6CD5\u6253\u5F00\u6B64\u4EFB\u52A1",noEditor:"\u672A\u627E\u5230\u7F16\u8F91\u5668\u2014\u2014\u8BF7\u8BBE\u7F6E ROVE_OPEN_EDITOR\uFF08\u5982 'code'\u3001'cursor'\u3001'nvim'\uFF09",openWorktreeFailed:"\u65E0\u6CD5\u7528 {label} \u6253\u5F00 worktree",sessionStartFailed:"\u65E0\u6CD5\u542F\u52A8\u6B64\u4EFB\u52A1\u7684\u4F1A\u8BDD",moveTaskFailed:"\u65E0\u6CD5\u79FB\u52A8\u4EFB\u52A1\uFF1A{message}",alreadyLatest:"\u5DF2\u662F\u6700\u65B0\u7248\u672C\uFF08v{version}\uFF09",worktreeErrorNotGit:"\u8BE5\u9879\u76EE\u5C1A\u975E git \u4ED3\u5E93\u2014\u2014\u4EFB\u52A1\u9700\u8981 git \u5206\u652F\u3002\u8BF7\u5728\u9879\u76EE\u4E2D\u6267\u884C `git init`\uFF08+ \u9996\u6B21\u63D0\u4EA4\uFF09\u540E\u518D\u6253\u5F00\u4EFB\u52A1\u3002\u975E git \u9879\u76EE\u7684\u652F\u6301\u5373\u5C06\u63A8\u51FA\u3002",worktreeErrorGeneric:"\u65E0\u6CD5\u521B\u5EFA worktree\uFF1A{message}",scratchAdopted:"\u5DF2\u5F52\u5165 {repo}\u2014\u2014\u82E5\u8981\u51FA\u73B0\u5728\u9879\u76EE\u9009\u62E9\u5668\u91CC,\u53EF\u5728\u65B0\u5EFA\u4EFB\u52A1\u4E2D\u4FDD\u5B58\u4E3A\u9879\u76EE",scratchOpenFailed:"\u65E0\u6CD5\u6253\u5F00\u4E34\u65F6 Shell:{message}",scratchCloseFailed:"\u65E0\u6CD5\u5173\u95ED\u4E34\u65F6\u4EFB\u52A1:{message}"}}});var Up,Bp;var Kp=c(()=>{Up={noTask:"(no task \u2014 press n to create)",exited:"process exited \u2014 F5 restarts it",restoring:"restoring session\u2026",tab:{groupTitle:"group {n}",renameTitle:"Rename tab",renameField:"tab title",renameSubmit:"rename",chooseEngineHint:"\u2190/\u2192 or h/l choose, enter confirm, esc cancel",newChat:{title:"New conversation",destLabel:"tab \u2014 destination: ",destTab:"new tab in this worktree",destFork:"fork a child task (new worktree)",ctxLabel:"ctrl+f \u2014 context: ",ctxFresh:"fresh conversation",ctxContinue:"continue this conversation",scratchChoice:"scratch shell"},cannotCloseLast:"Cannot close the only tab",nothingToFork:"No conversation in this tab to fork yet",noTranscriptToHandOff:"{engine} keeps no readable transcript to hand over"},split:{renameTitle:"Rename split",renameField:"split name"},scrolledBack:"\u2191 scrolled {lines}L (ctrl+pgdn to follow)",unavailable:{shellMissing:"terminal unavailable \u2014 configured shell is not available",spawnFailed:"terminal unavailable \u2014 shell could not start"},reset:{title:"Reset terminal?",body:"The running shell will be killed and a fresh one will spawn at the worktree. Any in-flight processes (vim, htop, paused jobs) end immediately."}},Bp={noTask:"\uFF08\u65E0\u4EFB\u52A1 \u2014\u2014 \u6309 n \u521B\u5EFA\uFF09",exited:"\u8FDB\u7A0B\u5DF2\u9000\u51FA \u2014\u2014 \u6309 F5 \u91CD\u542F",restoring:"\u6B63\u5728\u6062\u590D\u4F1A\u8BDD\u2026",tab:{groupTitle:"group {n}",renameTitle:"\u91CD\u547D\u540D\u6807\u7B7E\u9875",renameField:"\u6807\u7B7E\u9875\u540D\u79F0",renameSubmit:"\u91CD\u547D\u540D",chooseEngineHint:"\u2190/\u2192 \u6216 h/l \u9009\u62E9\uFF0Center \u786E\u8BA4\uFF0Cesc \u53D6\u6D88",newChat:{title:"\u65B0\u5EFA\u5BF9\u8BDD",destLabel:"tab \u2014\u2014 \u843D\u70B9\uFF1A",destTab:"\u672C worktree \u65B0\u6807\u7B7E\u9875",destFork:"fork \u5B50\u4EFB\u52A1\uFF08\u65B0 worktree\uFF09",ctxLabel:"ctrl+f \u2014\u2014 \u4E0A\u4E0B\u6587\uFF1A",ctxFresh:"\u5168\u65B0\u5BF9\u8BDD",ctxContinue:"\u63A5\u7740\u5F53\u524D\u5BF9\u8BDD",scratchChoice:"\u4E34\u65F6 shell"},cannotCloseLast:"\u65E0\u6CD5\u5173\u95ED\u552F\u4E00\u7684\u6807\u7B7E\u9875",nothingToFork:"\u8FD9\u4E2A\u6807\u7B7E\u9875\u8FD8\u6CA1\u6709\u53EF\u6D3E\u751F\u7684\u5BF9\u8BDD",noTranscriptToHandOff:"{engine} \u6CA1\u6709\u53EF\u8BFB\u7684\u5BF9\u8BDD\u8BB0\u5F55\uFF0C\u65E0\u6CD5\u4EA4\u63A5"},split:{renameTitle:"\u91CD\u547D\u540D\u5206\u5C4F",renameField:"\u5206\u5C4F\u540D\u79F0"},scrolledBack:"\u2191 \u5DF2\u56DE\u6EDA {lines} \u884C\uFF08ctrl+pgdn \u56DE\u5230\u5E95\u90E8\uFF09",unavailable:{shellMissing:"\u7EC8\u7AEF\u4E0D\u53EF\u7528 \u2014\u2014 \u914D\u7F6E\u7684 shell \u4E0D\u5B58\u5728",spawnFailed:"\u7EC8\u7AEF\u4E0D\u53EF\u7528 \u2014\u2014 shell \u542F\u52A8\u5931\u8D25"},reset:{title:"\u91CD\u7F6E\u7EC8\u7AEF\uFF1F",body:"\u6B63\u5728\u8FD0\u884C\u7684 shell \u4F1A\u88AB\u6740\u6389\u5E76\u5728 worktree \u91CD\u65B0\u542F\u52A8\uFF0C\u8FDB\u884C\u4E2D\u7684\u8FDB\u7A0B\uFF08vim\u3001htop\u3001\u6682\u505C\u7684\u4EFB\u52A1\uFF09\u4F1A\u7ACB\u5373\u7ED3\u675F\u3002"}}});var Fp,Mp;var Np=c(()=>{Fp={pageTitle:"ROVE UPDATE",current:"current",latest:"latest",releaseUrlUnavailable:"release URL unavailable",statusReleaseOpened:"Opened release page in your browser.",statusReleaseError:"Could not open release URL.",statusRunningUpdater:"Closing the TUI and running the updater in this terminal...",loadingNotes:"Loading release notes...",notesUnavailable:"Release notes are unavailable. Use Open release to view the GitHub release page.",changesSectionHeader:"\u2500\u2500 changes from v{from} to v{to} \u2500\u2500",updateComplete:"Rove update complete. Relaunch Rove to use the new version.",updateFailed:"Rove update failed with exit code {code}.",pressAnyKey:"Press any key to close this update window.",actions:{updateNow:"Update now",openRelease:"Open release",close:"Close",closeDetail:"return to the workspace"},skew:{title:"\u26A0 DAEMON OUT OF DATE",olderBuild:"an older build",hint:"daemon is {daemon} \u2014 you launched v{clientVersion}. Run `rove daemon restart`, then relaunch Rove"},versions:{pageTitle:"ROVE VERSIONS",loading:"Loading releases...",unavailable:"Could not fetch releases (offline or rate-limited).",tagCurrent:"current",tagLatest:"latest",tagBreaking:"breaking",breakingWarning:"\u26A0 installing this crosses breaking version(s) {versions} \u2014 run `rove reset` after the update.",footerHint:"j/k select \xB7 enter install \xB7 q close"}},Mp={pageTitle:"ROVE \u66F4\u65B0",current:"\u5F53\u524D",latest:"\u6700\u65B0",releaseUrlUnavailable:"\u53D1\u5E03\u94FE\u63A5\u4E0D\u53EF\u7528",statusReleaseOpened:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u53D1\u5E03\u8BF4\u660E\u9875\u9762\u3002",statusReleaseError:"\u65E0\u6CD5\u6253\u5F00\u53D1\u5E03\u94FE\u63A5\u3002",statusRunningUpdater:"\u6B63\u5728\u5173\u95ED TUI\uFF0C\u5E76\u5728\u5F53\u524D\u7EC8\u7AEF\u4E2D\u8FD0\u884C\u66F4\u65B0\u7A0B\u5E8F\u2026\u2026",loadingNotes:"\u6B63\u5728\u52A0\u8F7D\u53D1\u5E03\u8BF4\u660E\u2026\u2026",notesUnavailable:"\u53D1\u5E03\u8BF4\u660E\u4E0D\u53EF\u7528\u3002\u8BF7\u4F7F\u7528\u300C\u6253\u5F00\u53D1\u5E03\u9875\u300D\u67E5\u770B GitHub \u53D1\u5E03\u9875\u9762\u3002",changesSectionHeader:"\u2500\u2500 v{from} \u81F3 v{to} \u7684\u53D8\u66F4 \u2500\u2500",updateComplete:"Rove \u66F4\u65B0\u5B8C\u6210\u3002\u8BF7\u91CD\u65B0\u542F\u52A8 Rove \u4EE5\u4F7F\u7528\u65B0\u7248\u672C\u3002",updateFailed:"Rove \u66F4\u65B0\u5931\u8D25\uFF0C\u9000\u51FA\u7801\u4E3A {code}\u3002",pressAnyKey:"\u6309\u4EFB\u610F\u952E\u5173\u95ED\u6B64\u66F4\u65B0\u7A97\u53E3\u3002",actions:{updateNow:"\u7ACB\u5373\u66F4\u65B0",openRelease:"\u6253\u5F00\u53D1\u5E03\u9875",close:"\u5173\u95ED",closeDetail:"\u8FD4\u56DE\u5DE5\u4F5C\u533A"},skew:{title:"\u26A0 DAEMON \u7248\u672C\u4E0D\u4E00\u81F4",olderBuild:"\u65E7\u7248\u672C\u6784\u5EFA",hint:"daemon \u8FD0\u884C\u7684\u662F {daemon}\uFF0C\u800C\u4F60\u542F\u52A8\u7684\u662F v{clientVersion}\u3002\u8BF7\u8FD0\u884C `rove daemon restart`\uFF0C\u7136\u540E\u91CD\u65B0\u542F\u52A8 Rove"},versions:{pageTitle:"ROVE \u7248\u672C\u5217\u8868",loading:"\u6B63\u5728\u52A0\u8F7D\u53D1\u5E03\u5217\u8868\u2026\u2026",unavailable:"\u65E0\u6CD5\u83B7\u53D6\u53D1\u5E03\u5217\u8868\uFF08\u79BB\u7EBF\u6216\u89E6\u53D1\u9650\u6D41\uFF09\u3002",tagCurrent:"\u5F53\u524D",tagLatest:"\u6700\u65B0",tagBreaking:"breaking",breakingWarning:"\u26A0 \u5B89\u88C5\u8BE5\u7248\u672C\u4F1A\u8DE8\u8FC7 breaking \u7248\u672C {versions}\u2014\u2014\u66F4\u65B0\u540E\u9700\u8FD0\u884C `rove reset`\u3002",footerHint:"j/k \u9009\u62E9 \xB7 enter \u5B89\u88C5 \xB7 q \u5173\u95ED"}}});var Lp,Op;var jp=c(()=>{Lp={title:"ISSUES",noRepo:"no project",empty:"No open issues.",assignedFilter:"assigned to me",starting:"Starting work on #{number}\u2026",startedNoEngine:"Created {title}, but its engine did not start."},Op={title:"\u8BAE\u9898",noRepo:"\u65E0\u9879\u76EE",empty:"\u6CA1\u6709\u5F00\u653E\u7684\u8BAE\u9898\u3002",assignedFilter:"\u5206\u914D\u7ED9\u6211\u7684",starting:"\u6B63\u5728\u5F00\u59CB\u5904\u7406 #{number}\u2026",startedNoEngine:"\u5DF2\u521B\u5EFA {title}\uFF0C\u4F46\u5F15\u64CE\u6CA1\u6709\u542F\u52A8\u3002"}});var Vp,_p;var Cp=c(()=>{Vp={quit:{confirmTitle:"Quit Rove?",confirmBody:"The daemon and task sessions keep running. This closes only the native workspace.",confirmLabel:"Quit"},empty:{selectTask:"Select a task with a worktree"},attention:{none:"No available Inbox items"},inbox:{title:"INBOX",empty:"No pending attention",openHint:"enter open",deleteHint:"d delete",section:{attention:"ATTENTION",recent:"RECENT"},state:{done:"done",needsInput:"needs input",error:"error",rateLimited:"rate limited",running:"running"}},terminalComing:"Embedded terminal is starting..."},_p={quit:{confirmTitle:"\u9000\u51FA Rove\uFF1F",confirmBody:"\u5B88\u62A4\u8FDB\u7A0B\u548C\u4EFB\u52A1\u4F1A\u8BDD\u4F1A\u7EE7\u7EED\u8FD0\u884C\uFF0C\u8FD9\u91CC\u53EA\u5173\u95ED\u539F\u751F\u5DE5\u4F5C\u533A\u3002",confirmLabel:"\u9000\u51FA"},empty:{selectTask:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u5E26 worktree \u7684\u4EFB\u52A1"},attention:{none:"\u6536\u4EF6\u7BB1\u4E2D\u6CA1\u6709\u53EF\u6253\u5F00\u7684\u9879\u76EE"},inbox:{title:"\u6536\u4EF6\u7BB1",empty:"\u6682\u65E0\u5F85\u5904\u7406",openHint:"enter \u6253\u5F00",deleteHint:"d \u5220\u9664",section:{attention:"\u5F85\u5904\u7406",recent:"\u6700\u8FD1\u4F7F\u7528"},state:{done:"\u5B8C\u6210",needsInput:"\u9700\u8981\u8F93\u5165",error:"\u51FA\u9519",rateLimited:"\u9650\u6D41",running:"\u8FDB\u884C\u4E2D"}},terminalComing:"\u5D4C\u5165\u7EC8\u7AEF\u6B63\u5728\u542F\u52A8\u2026\u2026"}});var Dp,Ap;var Pp=c(()=>{Dp={title:"Worktrees",loading:"Loading worktrees\u2026",noProjects:"No local projects known to Rove yet.",noWorktrees:"No worktrees.",badge:{kobeManaged:"rove",dirty:"dirty",remoteOn:"on remote",remoteOff:"not pushed",remoteUnknown:"remote unknown"},verdict:{prOpen:"PR open",prMerged:"merged (PR)",inMain:"in main",prClosed:"PR closed",idle:"stale"},row:{detached:"(detached)",created:"created {age} ago",linkedTask:"task: {title}"},delete:{button:"Delete",confirmTitle:"Delete worktree?",confirmBody:'Delete the worktree for "{branch}"? This removes the working directory; the branch itself is kept.',forceTitle:"Force delete worktree?",forceBody:'"{branch}" has uncommitted or untracked changes that will be PERMANENTLY LOST. Force delete anyway?',failed:"Failed to delete worktree: {error}"},land:{button:"Land",confirmTitle:"Land branch?",confirmBody:`Merge "{branch}" into the base repo's current branch? A dirty base checkout is refused; conflicts abort with a file list.`,noTask:"This worktree isn't tracked as a Rove task \u2014 nothing to land.",conflict:"Land hit conflicts (merge aborted). Resolve by hand: {files}",dirtyBase:"The base checkout has uncommitted changes \u2014 commit or stash them, then land.",failed:"Land failed: {error}",done:'Landed "{branch}" onto {landedOn} ({commit}).'},hint:{}},Ap={title:"\u5DE5\u4F5C\u6811",loading:"\u6B63\u5728\u52A0\u8F7D worktree\u2026",noProjects:"Rove \u8FD8\u6CA1\u6709\u5DF2\u77E5\u7684\u672C\u5730\u9879\u76EE\u3002",noWorktrees:"\u6CA1\u6709 worktree\u3002",badge:{kobeManaged:"rove",dirty:"\u6709\u6539\u52A8",remoteOn:"\u5DF2\u63A8\u9001",remoteOff:"\u672A\u63A8\u9001",remoteUnknown:"\u8FDC\u7AEF\u672A\u77E5"},verdict:{prOpen:"PR \u8BC4\u5BA1\u4E2D",prMerged:"\u5DF2\u5408\u5165 (PR)",inMain:"\u5DF2\u5728\u4E3B\u5206\u652F",prClosed:"PR \u5DF2\u5173\u95ED",idle:"\u9648\u65E7"},row:{detached:"(\u6E38\u79BB\u72B6\u6001)",created:"{age}\u524D\u521B\u5EFA",linkedTask:"\u4EFB\u52A1\uFF1A{title}"},delete:{button:"\u5220\u9664",confirmTitle:"\u5220\u9664 worktree\uFF1F",confirmBody:'\u786E\u5B9A\u5220\u9664 "{branch}" \u5BF9\u5E94\u7684 worktree\uFF1F\u5DE5\u4F5C\u76EE\u5F55\u4F1A\u88AB\u79FB\u9664\uFF0C\u5206\u652F\u672C\u8EAB\u4F1A\u4FDD\u7559\u3002',forceTitle:"\u5F3A\u5236\u5220\u9664 worktree\uFF1F",forceBody:'"{branch}" \u5B58\u5728\u672A\u63D0\u4EA4\u6216\u672A\u8DDF\u8E2A\u7684\u6539\u52A8\uFF0C\u5F3A\u5236\u5220\u9664\u540E\u5C06\u6C38\u4E45\u4E22\u5931\u3002\u4ECD\u8981\u5F3A\u5236\u5220\u9664\u5417\uFF1F',failed:"\u5220\u9664 worktree \u5931\u8D25\uFF1A{error}"},land:{button:"\u5408\u5165",confirmTitle:"\u5408\u5165\u5206\u652F\uFF1F",confirmBody:'\u628A "{branch}" \u5408\u5165\u57FA\u4ED3\u5E93\u5F53\u524D\u5206\u652F\uFF1F\u57FA\u7840\u68C0\u51FA\u6709\u672A\u63D0\u4EA4\u6539\u52A8\u4F1A\u88AB\u62D2\u7EDD\uFF1B\u51B2\u7A81\u4F1A\u4E2D\u6B62\u5E76\u7ED9\u51FA\u6587\u4EF6\u6E05\u5355\u3002',noTask:"\u8BE5 worktree \u672A\u4F5C\u4E3A Rove \u4EFB\u52A1\u88AB\u8DDF\u8E2A\u2014\u2014\u6CA1\u6709\u53EF\u5408\u5165\u7684\u5BF9\u8C61\u3002",conflict:"\u5408\u5165\u9047\u5230\u51B2\u7A81\uFF08\u5DF2\u4E2D\u6B62\uFF09\u3002\u8BF7\u624B\u52A8\u89E3\u51B3\uFF1A{files}",dirtyBase:"\u57FA\u7840\u68C0\u51FA\u6709\u672A\u63D0\u4EA4\u6539\u52A8\u2014\u2014\u8BF7\u5148\u63D0\u4EA4\u6216 stash\uFF0C\u518D\u5408\u5165\u3002",failed:"\u5408\u5165\u5931\u8D25\uFF1A{error}",done:'\u5DF2\u628A "{branch}" \u5408\u5165 {landedOn}\uFF08{commit}\uFF09\u3002'},hint:{}}});function PH($){return typeof $==="string"&&$G.some((Z)=>Z.id===$)}var dH0,lH0,$G,AH,ZG="en";var XG=c(()=>{Pl();Sl();wl();yl();vl();hl();dl();nl();al();tl();Zp();Qp();Gp();Hp();Kp();Np();jp();Cp();Pp();dH0={settings:zp,tasks:Wp,terminal:Up,files:Il,newTask:il,onboarding:rl,ops:el,update:Fp,quickTask:Xp,help:xl,hints:gl,history:kl,common:Rl,keys:ll,workspace:Vp,worktrees:Dp,kanban:ul,automations:Dl,workItems:Lp},lH0={settings:Yp,tasks:qp,terminal:Bp,files:El,newTask:ol,onboarding:sl,ops:$p,update:Mp,quickTask:Jp,help:fl,hints:bl,history:ml,common:Tl,keys:pl,workspace:_p,worktrees:Ap,kanban:cl,automations:Al,workItems:Op},$G=[{id:"en",label:"English"},{id:"zh",label:"\u4E2D\u6587"}],AH={en:dH0,zh:lH0}});function TI($,Z){let X=$;for(let J of Z.split("."))if(X&&typeof X==="object"&&J in X)X=X[J];else return;return typeof X==="string"?X:void 0}function Rp($,Z){if(!Z)return $;return $.replace(/\{(\w+)\}/g,(X,J)=>(J in Z)?String(Z[J]):X)}function SI($,Z,X){return $.keys[Z]?.[X]}function RH($){if(AH[$])IF.set($)}function RV(){return IF.get()}function Tp(){return IF}function q$($,Z){let X=IF.get(),J=TI(AH[X],$)??TI(AH.en,$)??$;return Rp(J,Z)}function zJ($,Z){let X=IF.get();return SI(AH[X],$,Z)??SI(AH.en,$,Z)??Z}var IF;var IZ=c(()=>{FZ();XG();XG();IF=n$(ZG)});function pH0(){return X4(Tp())}function e0(){let $=pH0();return Sp.useCallback((Z,X)=>q$(Z,X),[$])}var Sp;var Q$=c(()=>{IZ();M9();XG();Sp=z1(H1(),1)});function N9($){return $<70}function Ip($){if($.focusedPane==="sidebar")return"sidebar";return $.hasSelection||$.hasOpenPage?"content":"sidebar"}function wp($){if(!pQ($))return $;return zJ("desc",$)}function nH0($){if(["kanban.open","automations.open","workItems.open"].includes($))return"Views";if($.startsWith("focus."))return"Navigation";if($.startsWith("inbox.")||$.startsWith("attention."))return"Attention";if($.startsWith("chat.tab.")||$.startsWith("chat.session."))return"Sessions";if($.startsWith("chat.fork.")||$.startsWith("task."))return"Tasks";if($.startsWith("settings.")||$==="workspace.zenToggle")return"Tools";return pQ($)?.category??"Global"}function iH0($){let Z=new Map(G8.map((G,W)=>[G.id,W])),X=new Map;for(let G of $){let W=X.get(G.action);if(W)W.strokes.push(G.stroke);else X.set(G.action,{action:G.action,strokes:[G.stroke]})}let J=new Map,z=[...X.values()].sort((G,W)=>(Z.get(G.action)??Number.MAX_SAFE_INTEGER)-(Z.get(W.action)??Number.MAX_SAFE_INTEGER));for(let G of z){let W=nH0(G.action),q=J.get(W);if(q)q.push(G);else J.set(W,[G])}return[...J].map(([G,W])=>({category:G,actions:W}))}function xp($){let{theme:Z}=d0(),X=e0(),J=f5(),z=X4(ed),[,G]=EF.useState(0),W=Date.now(),q=z.entries.filter((b)=>W-b.at<BI),U=q[0]?.at;EF.useEffect(()=>{if(U===void 0)return;let b=setTimeout(()=>G((S)=>S+1),Math.max(30,U+BI-Date.now()));return()=>clearTimeout(b)},[U]),EF.useEffect(()=>{if(!z.armed||z.armedAt===null)return;let b=z.armedAt+KI-Date.now();if(b<=0)return;let S=setTimeout(()=>G((E)=>E+1),b);return()=>clearTimeout(S)},[z.armed,z.armedAt]);let B=q.length+(z.armed?1:0);if(B===0)return null;let M=H6().key??"",O=z.armed&&z.armedAt!==null&&W-z.armedAt>=KI,N=O?iH0(z.options):[];if(O){let b=J.width<88,S=b?1:Math.min(3,Math.max(1,N.length)),E=Array.from({length:Math.ceil(N.length/S)},(h,n)=>N.slice(n*S,(n+1)*S)),T=E.reduce((h,n)=>h+Math.max(1,...n.map((m)=>m.actions.length))+1,3),w=Math.max(20,J.width-4),y=Math.max(0,J.height-Ep-T),f=b?w-4:Math.max(18,Math.floor((w-4)/S));return R.jsxDEV("box",{position:"absolute",zIndex:2400,left:2,top:y,width:w,border:!0,borderColor:Z.borderActive,backgroundColor:Z.backgroundDialog,paddingLeft:1,paddingRight:1,flexDirection:"column",children:[R.jsxDEV("box",{flexDirection:"row",justifyContent:"space-between",children:[R.jsxDEV("text",{fg:Z.primary,children:X("help.commandLayer",{prefix:M})},void 0,!1,void 0,this),R.jsxDEV("text",{fg:Z.textMuted,children:X("help.escCancel")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R.jsxDEV("box",{flexDirection:"column",children:E.map((h)=>R.jsxDEV("box",{flexDirection:"row",gap:b?0:1,children:h.map((n)=>R.jsxDEV("box",{flexDirection:"column",flexGrow:1,flexBasis:0,children:[R.jsxDEV("text",{fg:Z.accent,children:zJ("category",n.category)},void 0,!1,void 0,this),n.actions.map((m)=>{let t=m.strokes.join("/"),s=PZ(wp(m.action),Math.max(4,f-t.length-3));return R.jsxDEV("box",{flexDirection:"row",gap:1,children:[R.jsxDEV("box",{width:Math.min(9,Math.max(3,t.length)),children:R.jsxDEV("text",{fg:Z.primary,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this),R.jsxDEV("text",{fg:Z.text,wrapMode:"none",children:s},void 0,!1,void 0,this)]},m.action,!0,void 0,this)})]},n.category,!0,void 0,this))},h.map((n)=>n.category).join("-"),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}let j=N9(J.width),A=j?0:$.left,C=j?J.width:$.width,_=Math.max(0,J.height-Ep-B);return R.jsxDEV("box",{position:"absolute",zIndex:2400,left:A,top:_,width:C,flexDirection:"column",children:[q.map((b)=>R.jsxDEV("box",{paddingLeft:1,paddingRight:1,backgroundColor:Z.backgroundDialog,children:R.jsxDEV("text",{fg:Z.textMuted,wrapMode:"none",children:PZ(`${b.prefixKey?`${b.prefixKey} + `:""}${b.stroke} ${b.action?`\u2192 ${wp(b.action)}`:"\u2205"}`,C-2)},void 0,!1,void 0,this)},b.id,!1,void 0,this)),z.armed?R.jsxDEV("box",{paddingLeft:1,paddingRight:1,backgroundColor:Z.backgroundDialog,children:R.jsxDEV("text",{fg:Z.textMuted,wrapMode:"none",children:`${M} \u22EF`},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var EF,Ep=1;var fp=c(async()=>{XJ();TZ();LI();Q$();M9();a0();await J$([v4(),X$()]);EF=z1(H1(),1)});import{spawnSync as oH0}from"child_process";function sH0($){let[Z,X]=$.split("/");if(!Z||!X)throw Error(`invalid GitHub repository slug: ${$}`);return{owner:Z,name:X}}function yp($,Z){let X=$.trim();if(!X)throw Error(`${Z} is required`);return X}function gp($,Z){let X=Z?.map((J)=>typeof J.message==="string"?J.message:null).filter((J)=>!!J);if(X&&X.length>0)return X.join("; ");return $.trim()||"GitHub CLI returned an empty response"}function bp($,Z,X){let J=["api","graphql","-f",`query=${$}`];for(let[U,B]of Object.entries(Z))J.push("-f",`${U}=${B}`);let z=X.spawn("gh",J,{encoding:"utf8"});if(z.error)throw Error(`failed to run gh: ${z.error.message}`);let G=typeof z.stdout==="string"?z.stdout:String(z.stdout??""),W=typeof z.stderr==="string"?z.stderr:String(z.stderr??""),q;try{q=JSON.parse(G)}catch{throw Error(`failed to parse gh response: ${gp(W,void 0)}`)}if((z.status??0)!==0||q.errors?.length)throw Error(gp(W,q.errors));if(!q.data)throw Error("GitHub CLI response did not include data");return q.data}function tH0($){return`${$}
|