@sma1lboy/rove 0.9.307 → 0.9.308-next.458
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/{chunk-gvqpdhrx.js → chunk-0kkee6sj.js} +2 -2
- package/dist/cli/{chunk-vbq0gh7a.js → chunk-0mbe6ag9.js} +1 -1
- package/dist/cli/{chunk-4drrctpt.js → chunk-0rffqvag.js} +2 -2
- package/dist/cli/{chunk-mpg3km6m.js → chunk-1af32mg7.js} +1 -1
- package/dist/cli/{chunk-crnfw9tg.js → chunk-1tdca3cn.js} +1 -1
- package/dist/cli/{chunk-00qmedzm.js → chunk-1w7f9mbx.js} +1 -1
- package/dist/cli/{chunk-8xaeybn6.js → chunk-26yve83p.js} +1 -1
- package/dist/cli/{chunk-pw484p7h.js → chunk-39rn20pf.js} +1 -1
- package/dist/cli/{chunk-chd7ac6d.js → chunk-3h7tc668.js} +1 -1
- package/dist/cli/{chunk-qdqkefy1.js → chunk-3jpt7be5.js} +1 -1
- package/dist/cli/{chunk-kj9ecwp3.js → chunk-4e5k5sek.js} +2 -2
- package/dist/cli/{chunk-0qkbtdkf.js → chunk-4ghhgyq2.js} +1 -1
- package/dist/cli/{chunk-23684z1k.js → chunk-4mj47dk3.js} +1 -1
- package/dist/cli/{chunk-c7373vn9.js → chunk-4myc34a0.js} +1 -1
- package/dist/cli/{chunk-hvvp922k.js → chunk-4zae7xn6.js} +1 -1
- package/dist/cli/{chunk-ycjaznhz.js → chunk-51zva1y3.js} +1 -1
- package/dist/cli/{chunk-2tgr6qzw.js → chunk-5g9hbkq5.js} +2 -2
- package/dist/cli/{chunk-86szempt.js → chunk-5r8v89qz.js} +1 -1
- package/dist/cli/{chunk-enttnysa.js → chunk-5t4dggxf.js} +1 -1
- package/dist/cli/{chunk-4enb5fbt.js → chunk-6s6cz4vf.js} +1 -1
- package/dist/cli/{chunk-af9qtrm0.js → chunk-7j4qsbg4.js} +1 -1
- package/dist/cli/{chunk-j8e3ch8f.js → chunk-7pdnn9d8.js} +1 -1
- package/dist/cli/{chunk-94dbkj4r.js → chunk-7zksk1t6.js} +1 -1
- package/dist/cli/chunk-81axh7y2.js +3 -0
- package/dist/cli/{chunk-fa899p00.js → chunk-88hjwpzw.js} +1 -1
- package/dist/cli/{chunk-53qngaz2.js → chunk-8g1dkra6.js} +1 -1
- package/dist/cli/{chunk-jkrtbm14.js → chunk-9h7zv8ge.js} +1 -1
- package/dist/cli/{chunk-n2avgbe1.js → chunk-a1jdqcqq.js} +1 -1
- package/dist/cli/{chunk-gscmmm5k.js → chunk-a4kqnhy9.js} +1 -1
- package/dist/cli/{chunk-zd47wexr.js → chunk-adfxyz0h.js} +1 -1
- package/dist/cli/{chunk-w7d6sg08.js → chunk-b523a35f.js} +1 -1
- package/dist/cli/{chunk-b8qenb74.js → chunk-daepgv4q.js} +1 -1
- package/dist/cli/{chunk-ba6nwnp2.js → chunk-dc0sectg.js} +1 -1
- package/dist/cli/{chunk-pnsnk3bq.js → chunk-djkqvbxx.js} +1 -1
- package/dist/cli/{chunk-ff4mqsvb.js → chunk-dqatj3x0.js} +1 -1
- package/dist/cli/{chunk-r4yhdnwn.js → chunk-feeh04rh.js} +1 -1
- package/dist/cli/{chunk-tywfrkf5.js → chunk-fqyja8kw.js} +1 -1
- package/dist/cli/{chunk-gy30mccq.js → chunk-g3h0m06y.js} +1 -1
- package/dist/cli/{chunk-6ncva9jm.js → chunk-h0s8vdyf.js} +1 -1
- package/dist/cli/{chunk-3vydmskq.js → chunk-hk3tds7a.js} +1 -1
- package/dist/cli/{chunk-as9fk4ge.js → chunk-hqpsm9v4.js} +1 -1
- package/dist/cli/{chunk-q604954w.js → chunk-k77jjpfs.js} +1 -1
- package/dist/cli/{chunk-c276egr8.js → chunk-kxfxn5ys.js} +1 -1
- package/dist/cli/{chunk-jba8whk5.js → chunk-n6vy964p.js} +1 -1
- package/dist/cli/{chunk-xg4bcxdm.js → chunk-n9e31hs7.js} +1 -1
- package/dist/cli/{chunk-kbmjx4qm.js → chunk-nj9qv55y.js} +1 -1
- package/dist/cli/{chunk-pspz5wdw.js → chunk-nmgvpvm0.js} +1 -1
- package/dist/cli/{chunk-34fs2a0y.js → chunk-ntmypfsy.js} +1 -1
- package/dist/cli/{chunk-v4sdjmxq.js → chunk-p3tkczs9.js} +1 -1
- package/dist/cli/{chunk-hf5t4fkg.js → chunk-pg1g9sq7.js} +6 -6
- package/dist/cli/{chunk-5g2788gz.js → chunk-qad5kas1.js} +1 -1
- package/dist/cli/{chunk-j8yk2b9e.js → chunk-qk7te5tx.js} +1 -1
- package/dist/cli/{chunk-gks7q8yb.js → chunk-r1zh9snn.js} +1 -1
- package/dist/cli/{chunk-3j202sdr.js → chunk-r7wcpkc8.js} +1 -1
- package/dist/cli/{chunk-sg927a3n.js → chunk-rh6kjc4w.js} +1 -1
- package/dist/cli/{chunk-bmb2dsqf.js → chunk-scqj49fg.js} +1 -1
- package/dist/cli/{chunk-r8s8q12t.js → chunk-srgdpqtc.js} +2 -2
- package/dist/cli/{chunk-079zk9kp.js → chunk-tj77gkzk.js} +1 -1
- package/dist/cli/{chunk-ansebjem.js → chunk-tv3yyrm1.js} +1 -1
- package/dist/cli/{chunk-g3njx5g8.js → chunk-vfzwggkc.js} +1 -1
- package/dist/cli/{chunk-00kv8t1v.js → chunk-vjpe5s4v.js} +1 -1
- package/dist/cli/{chunk-c4tgjhb8.js → chunk-w9wa22mj.js} +1 -1
- package/dist/cli/{chunk-9t6gsy5x.js → chunk-wadea4v3.js} +1 -1
- package/dist/cli/{chunk-gyrjk0vf.js → chunk-wjx8kehz.js} +1 -1
- package/dist/cli/{chunk-p87q2kty.js → chunk-x92jx8wb.js} +1 -1
- package/dist/cli/{chunk-5k614jcg.js → chunk-yc3bt3gy.js} +1 -1
- package/dist/cli/{chunk-a5zeh32h.js → chunk-zq7gk3te.js} +2 -2
- package/dist/cli/{chunk-7enycv4f.js → chunk-zvcfhx1n.js} +1 -1
- package/dist/cli/index.js +3 -3
- package/dist/cli/rove.js +1 -1
- package/dist/web/assets/index-eWC9hC7P.js +84 -0
- package/dist/web/assets/{term-mount-BvGYGQds.js → term-mount-BCYKRvTf.js} +1 -1
- package/dist/web/index.html +1 -1
- package/dist/web/relay/index.html +4 -4
- package/package.json +1 -1
- package/dist/cli/chunk-61b8tafs.js +0 -3
- package/dist/web/assets/index-DNE1RJFD.js +0 -84
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{currentLang,intlLocale,localeState,registerMessages,setLocaleLang,t,tKeys}from"./chunk-
|
|
2
|
+
import{currentLang,intlLocale,localeState,registerMessages,setLocaleLang,t,tKeys}from"./chunk-n9e31hs7.js";import"./chunk-cmp64q4j.js";import"./chunk-91sykzqq.js";export{tKeys,t,setLocaleLang,registerMessages,localeState,intlLocale,currentLang};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{__require}from"./chunk-91sykzqq.js";var CONNECTOR_LOADERS={weixin:async()=>(await import("./chunk-
|
|
2
|
+
import{__require}from"./chunk-91sykzqq.js";var CONNECTOR_LOADERS={weixin:async()=>(await import("./chunk-dc0sectg.js")).default,lark:async()=>(await import("./chunk-daepgv4q.js")).default};async function runConnectorCli(id,argv){let load=CONNECTOR_LOADERS[id];if(!load)throw Error(`no chat connector "${id}"`);await(await load()).runCli(argv)}async function startChatConnectors(ctx){let started=[];for(let[id,load]of Object.entries(CONNECTOR_LOADERS))try{let connector=(await load()).createConnector();await connector.start(ctx),started.push(connector)}catch(err){ctx.log("connector",`${id} did not start: ${err instanceof Error?err.message:String(err)}`)}return started}function chatConnectorStatuses(){return Promise.all(Object.entries(CONNECTOR_LOADERS).map(async([id,load])=>{let mod=await load();return{id,connectable:mod.connect!==void 0,...mod.status()}}))}async function moduleOf(id){let load=CONNECTOR_LOADERS[id];if(!load)throw Error(`no chat connector "${id}"`);return await load()}async function disconnectChatConnector(id){return(await moduleOf(id)).disconnect()}async function connectChatConnector(id){let mod=await moduleOf(id);return mod.connect?await mod.connect():{ok:!1,message:`rove ${id} login`}}async function updateChatConnector(id,settings){(await moduleOf(id)).update(settings)}
|
|
3
3
|
export{runConnectorCli,startChatConnectors,chatConnectorStatuses,disconnectChatConnector,connectChatConnector,updateChatConnector};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{REPEAT_SEP,VerbArgs,defaultApiRuntime,findVerb,parseFlags,unknownVerbError,validateAgainstSpec}from"./chunk-
|
|
2
|
+
import{REPEAT_SEP,VerbArgs,defaultApiRuntime,findVerb,parseFlags,unknownVerbError,validateAgainstSpec}from"./chunk-0kkee6sj.js";import{ensurePluginEnginesLoaded}from"./chunk-ty0ptx0v.js";import{REPO_HAS_NO_COMMITS_CODE,REPO_HAS_NO_COMMITS_HINT}from"./chunk-72g45nwx.js";import{ApiError,cliCaller,requireVerbInstalled,splitDaemonCode}from"./chunk-jz1kj4sf.js";import{ROVE_API_VERSION}from"./chunk-96kvwzj8.js";import{errorMessage}from"./chunk-9gctbddn.js";var DAEMON_UNREACHABLE_MESSAGE="the rove daemon is not answering (restarting or stopped); nothing was changed, try again in a moment";function isDaemonUnreachable(err){if(!err||typeof err!=="object"||!("code"in err))return!1;if(err.code==="DAEMON_UNREACHABLE")return!0;return"syscall"in err&&err.syscall==="connect"&&(err.code==="ENOENT"||err.code==="ECONNREFUSED")}function toApiError(err){if(err instanceof ApiError)return err;if(isDaemonUnreachable(err))return new ApiError(DAEMON_UNREACHABLE_MESSAGE,"DAEMON_UNREACHABLE");let message=errorMessage(err);if(/task not found/i.test(message))return new ApiError(message,"TASK_NOT_FOUND",{hint:"that task id does not exist (deleted or mistyped) \u2014 list live tasks and retry with a real id",nextCommandArgs:["api","list"]});if(/unknown daemon request:/i.test(message))return versionSkewError(message);let coded=splitDaemonCode(message);if(coded?.code===REPO_HAS_NO_COMMITS_CODE)return new ApiError(coded.rest,coded.code,{hint:REPO_HAS_NO_COMMITS_HINT});if(coded)return new ApiError(coded.rest,coded.code);return new ApiError(message,"RPC_ERROR")}function versionSkewError(message){return new ApiError(message,"DAEMON_VERSION_SKEW",{hint:"the running daemon is a different build than this CLI, so it does not serve this verb \u2014 restart the daemon to pick up this build, then retry (if the verb is gone for good, `rove api schema` lists what this daemon actually serves)",nextCommandArgs:["daemon","restart"]})}function errorBody(err){return{message:err.message,code:err.code,...err.data}}function successEnvelope(result){return{apiVersion:ROVE_API_VERSION,ok:!0,result}}function errorEnvelope(err){return{apiVersion:ROVE_API_VERSION,ok:!1,error:errorBody(toApiError(err))}}function flagText(name,spec,value){let type=spec?.type;if(typeof value==="string")return value;if(spec?.repeatable&&Array.isArray(value)&&value.every((item)=>typeof item==="string"))return value.join(REPEAT_SEP);if(typeof value==="boolean"&&(type==="bool"||type===void 0))return String(value);if(typeof value==="number"&&(type==="int"||type==="uint"||type===void 0))return String(value);if(Array.isArray(value)&&(type==="csv"||type===void 0)){if(!value.every((item)=>typeof item==="string"&&!item.includes(",")))throw new ApiError(`param ${name} must be a list of strings without ","`,"BAD_FLAG");return value.join(",")}throw new ApiError(`param ${name} does not fit its ${type} flag`,"BAD_FLAG")}function paramsToFlags(verb,params){let flags=new Map;for(let[name,value]of Object.entries(params))flags.set(name,flagText(name,verb.flags.find((f)=>f.name===name),value));return flags}function booleanFlagsOf(verb){return new Set(verb.flags.filter((f)=>f.type==="bool").map((f)=>f.name))}function repeatableFlagsOf(verb){return new Set(verb.flags.filter((f)=>f.repeatable).map((f)=>f.name))}async function callVerb(verb,flags,deps){requireVerbInstalled(verb);let caller=deps.caller??cliCaller();try{return await verb.handler({args:new VerbArgs(verb,flags,caller),caller,client:deps.client,runtime:deps.runtime??defaultApiRuntime})}catch(err){throw toApiError(err)}}async function runVerb(verbName,input,deps){ensurePluginEnginesLoaded();let verb=findVerb(verbName);if(!verb)throw unknownVerbError(verbName);if(verb.cliOnly&&!(deps.caller??cliCaller()).cli)throw new ApiError(`"${verbName}" streams over stdout/stdin, so only \`rove api\` can run it`,"CLI_ONLY_VERB",{hint:"run it as a CLI command on the machine whose daemon you are talking to"});let flags="argv"in input?parseFlags(input.argv,booleanFlagsOf(verb),repeatableFlagsOf(verb)).flags:paramsToFlags(verb,input.params);return validateAgainstSpec(verb,flags),callVerb(verb,flags,deps)}async function executeVerb(verbName,input,deps){try{return successEnvelope(await runVerb(verbName,input,deps))}catch(err){return errorEnvelope(err)}}function argvToParams(verbName,argv){let verb=findVerb(verbName);if(!verb)throw unknownVerbError(verbName);let{flags}=parseFlags(argv,booleanFlagsOf(verb),repeatableFlagsOf(verb));return Object.fromEntries(flags)}
|
|
3
3
|
export{DAEMON_UNREACHABLE_MESSAGE,isDaemonUnreachable,toApiError,errorBody,successEnvelope,errorEnvelope,paramsToFlags,booleanFlagsOf,repeatableFlagsOf,callVerb,runVerb,executeVerb,argvToParams};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{machineTasks}from"./chunk-
|
|
2
|
+
import{machineTasks}from"./chunk-1tdca3cn.js";import"./chunk-y0e28qha.js";import"./chunk-ejs6dnxf.js";import"./chunk-a6s52zm5.js";import"./chunk-9h7zv8ge.js";import"./chunk-1590vtyb.js";import"./chunk-g9ba25q5.js";import"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-021xteq8.js";import"./chunk-catrr0z3.js";import"./chunk-xjrkvksc.js";import"./chunk-tn9gtf18.js";import"./chunk-s4dxjqgt.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-vqgmdehh.js";import"./chunk-89xeg26e.js";import"./chunk-kgnb7x69.js";import"./chunk-78rtznxy.js";import"./chunk-w7zv47mp.js";import"./chunk-cw9h73h5.js";import{dedupeMachines,listMachines}from"./chunk-37g0yabr.js";import"./chunk-nw48bskt.js";import"./chunk-k7tdg6kb.js";import"./chunk-1pmzr8kr.js";import"./chunk-e5jxbd98.js";import"./chunk-84q9hv7m.js";import"./chunk-96kvwzj8.js";import"./chunk-62ewk1qg.js";import"./chunk-40dgv828.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-9gctbddn.js";import"./chunk-3pp65k25.js";import"./chunk-yvg46jh9.js";import"./chunk-xasg8z9e.js";import"./chunk-n9e31hs7.js";import"./chunk-cmp64q4j.js";import"./chunk-sp6vvssh.js";import"./chunk-sbm7qcw4.js";import"./chunk-bdmbevk8.js";import"./chunk-7kysxgbq.js";import"./chunk-pgvfx31j.js";import"./chunk-cwfs2kae.js";import"./chunk-y8hjgmn0.js";import"./chunk-xy8be792.js";import"./chunk-h2m7em1e.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-m5nd44st.js";import"./chunk-rxb0hw1e.js";import"./chunk-tw25g9g5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.js";import"./chunk-8143k3t6.js";import"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-1mp632fj.js";import"./chunk-91sykzqq.js";async function mergeTaskList(local){let machines=dedupeMachines(listMachines());if(machines.length===0)return local;let tasks=(local.tasks??[]).map((task)=>({...task,origin:{machineId:"local",hostLabel:"local"}}));for(let entry of machines){let remote=await machineTasks(entry);if(!remote)continue;let hostLabel=entry.alias;for(let task of remote){let kind=task.kind==="main"?"dir":task.kind;tasks.push({...task,kind,origin:{machineId:entry.alias,hostLabel}})}}return{tasks}}export{mergeTaskList};
|
|
@@ -9,5 +9,5 @@ import{createStateCell}from"./chunk-cmp64q4j.js";var en={title:"ROUTINES",holdin
|
|
|
9
9
|
An agent can list them, remove the ones you confirm, and take out any old Rove worktree hook still in your settings.`,legacyAdoptMore:"\u2026 and {count} more",legacyAdoptClean:"ask an agent",legacyAdoptLater:"not now",legacyAdoptNever:"don't ask again",legacyAdoptSessionTitle:"Remove leftover sessions",legacyAdoptPrompt:"An older Rove version added sessions to the sidebar by itself whenever a git worktree was created outside Rove. These look like leftovers:\n\n{list}\n\nShow me this list and ask which ones to remove, then wait for my answer. For each one I confirm, first run `git -C <path> status --short`. If it has uncommitted changes, tell me and ask again. Otherwise run `rove api delete --task-id <id> --wait`. Remove nothing I did not confirm, and never pass --force.\n\nThen look for the hook that older version installed. Check my engine settings files, both the global ones and the ones in each repo above, for any hook whose command runs `rove hook worktree-created`. Show me each entry you find and its file, and remove it only after I confirm. Leave every other hook as it is.",legacyAdoptFailed:"Couldn't start the cleanup session: {message}"},zh21={cancel:"\u53D6\u6D88",forgetProjectTitle:"\u4ECE\u5217\u8868\u4E2D\u79FB\u9664\u9879\u76EE\u300C{title}\u300D\uFF1F",forgetProjectBody:"\u628A\u5B83\u4ECE\u9879\u76EE\u5217\u8868\u91CC\u79FB\u9664\u3002\u4ED3\u5E93\u3001\u5206\u652F\u3001worktree \u4EE5\u53CA\u5B83\u4E0B\u9762\u7684\u4F1A\u8BDD\u90FD\u4F1A\u4FDD\u7559\uFF0C\u4E4B\u540E\u53EF\u4EE5\u7528 `rove add` \u91CD\u65B0\u52A0\u56DE\u6765\u3002",forgetProjectConfirm:"\u79FB\u9664",deleteTitle:"\u79FB\u9664\u4F1A\u8BDD\u300C{title}\u300D\uFF1F",deleteTitleDir:"\u79FB\u9664\u4F1A\u8BDD\u300C{title}\u300D\uFF1F",deleteBodyDir:"\u7ED3\u675F\u8FD9\u4E2A\u4F1A\u8BDD\uFF0C\u5173\u95ED\u5B83\u7684\u6240\u6709\u6807\u7B7E\u9875\u3002\u78C1\u76D8\u4E0A\u4EC0\u4E48\u90FD\u4E0D\u52A8\uFF1A\u6587\u4EF6\u5939\u548C\u91CC\u9762\u7684\u6587\u4EF6\u90FD\u4F1A\u4FDD\u7559\u3002",deleteBodyTask:"\u7ED3\u675F\u8FD9\u4E2A\u4F1A\u8BDD\uFF0C\u5173\u95ED\u5B83\u7684\u6240\u6709\u6807\u7B7E\u9875\uFF0C\u5E76\u5220\u9664\u5B83\u7684 worktree \u6587\u4EF6\u5939\u3002git \u5206\u652F\u4F1A\u4FDD\u7559\u3002",deleteBodyTaskBranch:"\u7ED3\u675F\u8FD9\u4E2A\u4F1A\u8BDD\uFF0C\u5173\u95ED\u5B83\u7684\u6240\u6709\u6807\u7B7E\u9875\uFF0C\u5220\u9664\u5B83\u7684 worktree \u6587\u4EF6\u5939\uFF0C\u4EE5\u53CA\u5DF2\u5408\u5E76\u7684 git \u5206\u652F\u3002\u672A\u5408\u5E76\u7684\u5206\u652F\u4F1A\u4FDD\u7559\u3002",deleteConfirm:"\u79FB\u9664",childrenTitle:"\u300C{title}\u300D\u6709 {count} \u4E2A\u5B50\u4EFB\u52A1",childrenBody:"\u63D0\u5347\u4F1A\u628A\u5B83\u4EEC\u4E0A\u79FB\u4E00\u7EA7\uFF0C\u5E76\u4FDD\u7559\u5B83\u4EEC\u7684 worktree \u548C\u4F1A\u8BDD\u3002\u8FDE\u540C\u5B50\u4EFB\u52A1\u79FB\u9664\u4F1A\u628A\u5B83\u4EEC\u4E00\u5E76\u79FB\u9664\u3002",childrenPromote:"\u63D0\u5347\u5B50\u4EFB\u52A1",childrenCascade:"\u8FDE\u540C\u5B50\u4EFB\u52A1\u79FB\u9664",archiveChildrenBody:"\u63D0\u5347\u4F1A\u628A\u5B83\u4EEC\u4E0A\u79FB\u4E00\u7EA7\uFF0C\u5E76\u8BA9\u5B83\u4EEC\u7EE7\u7EED\u8FD0\u884C\u3002\u8FDE\u540C\u5B50\u4EFB\u52A1\u5F52\u6863\u4F1A\u628A\u5B83\u4EEC\u4E00\u5E76\u9690\u85CF\uFF0C\u5E76\u7ED3\u675F\u5B83\u4EEC\u7684\u4F1A\u8BDD\u3002",archiveChildrenAll:"\u8FDE\u540C\u5B50\u4EFB\u52A1\u5F52\u6863",forceDeleteTitle:"\u300C{title}\u300D\u6709\u672A\u63D0\u4EA4\u7684\u6539\u52A8",forceDeleteConfirm:"\u5F3A\u5236\u79FB\u9664",legacyAdoptTitle:"\u79FB\u9664 {count} \u4E2A Rove \u81EA\u5DF1\u52A0\u8FDB\u6765\u7684\u4F1A\u8BDD\uFF1F",legacyAdoptBody:`\u65E7\u7248 Rove \u4F1A\u5728\u522B\u5904\u521B\u5EFA worktree \u65F6\u81EA\u52A8\u52A0\u4E00\u4E2A\u4F1A\u8BDD\uFF0C\u73B0\u5728\u5DF2\u7ECF\u4E0D\u4F1A\u4E86\u3002\u4E0B\u9762\u8FD9\u4E9B\u770B\u8D77\u6765\u662F\u5F53\u65F6\u7559\u4E0B\u7684\uFF1A
|
|
10
10
|
{list}
|
|
11
11
|
|
|
12
|
-
\u53EF\u4EE5\u4EA4\u7ED9 agent\uFF1A\u5B83\u5148\u5217\u51FA\u6765\uFF0C\u4F60\u786E\u8BA4\u54EA\u4E9B\u5C31\u5220\u54EA\u4E9B\uFF0C\u5E76\u628A\u8BBE\u7F6E\u91CC\u8FD8\u7559\u7740\u7684\u65E7\u7248 Rove worktree hook \u4E00\u8D77\u6E05\u6389\u3002`,legacyAdoptMore:"\u2026\u2026\u8FD8\u6709 {count} \u4E2A",legacyAdoptClean:"\u4EA4\u7ED9 agent",legacyAdoptLater:"\u4EE5\u540E\u518D\u8BF4",legacyAdoptNever:"\u4E0D\u518D\u63D0\u793A",legacyAdoptSessionTitle:"\u79FB\u9664\u6B8B\u7559\u4F1A\u8BDD",legacyAdoptPrompt:"\u65E7\u7248 Rove \u4F1A\u5728 Rove \u4E4B\u5916\u521B\u5EFA git worktree \u65F6\u81EA\u52A8\u5F80\u4FA7\u680F\u52A0\u4F1A\u8BDD\u3002\u4E0B\u9762\u8FD9\u4E9B\u770B\u8D77\u6765\u662F\u5F53\u65F6\u7559\u4E0B\u7684\uFF1A\n\n{list}\n\n\u5148\u628A\u8FD9\u4EFD\u6E05\u5355\u7ED9\u6211\u770B\uFF0C\u95EE\u6211\u8981\u5220\u54EA\u4E9B\uFF0C\u7136\u540E\u7B49\u6211\u56DE\u7B54\u3002\u5BF9\u6211\u786E\u8BA4\u7684\u6BCF\u4E00\u4E2A\uFF0C\u5148\u8FD0\u884C `git -C <path> status --short`\uFF1B\u6709\u672A\u63D0\u4EA4\u7684\u6539\u52A8\u5C31\u544A\u8BC9\u6211\u5E76\u518D\u95EE\u4E00\u6B21\uFF0C\u6CA1\u6709\u5C31\u8FD0\u884C `rove api delete --task-id <id> --wait`\u3002\u6211\u6CA1\u786E\u8BA4\u7684\u4E00\u4E2A\u90FD\u4E0D\u8981\u5220\uFF0C\u4E5F\u4E0D\u8981\u52A0 --force\u3002\n\n\u7136\u540E\u627E\u4E00\u4E0B\u90A3\u4E2A\u65E7\u7248\u672C\u88C5\u7684 hook\u3002\u68C0\u67E5\u6211\u7684\u5F15\u64CE\u8BBE\u7F6E\u6587\u4EF6\uFF0C\u5305\u62EC\u5168\u5C40\u7684\u548C\u4E0A\u9762\u6BCF\u4E2A\u4ED3\u5E93\u91CC\u7684\uFF0C\u627E\u547D\u4EE4\u91CC\u8FD0\u884C `rove hook worktree-created` \u7684 hook\u3002\u628A\u627E\u5230\u7684\u6BCF\u4E00\u6761\u8FDE\u540C\u6240\u5728\u6587\u4EF6\u7ED9\u6211\u770B\uFF0C\u6211\u786E\u8BA4\u540E\u518D\u5220\u3002\u5176\u4ED6 hook \u4E00\u5F8B\u4E0D\u52A8\u3002",legacyAdoptFailed:"\u6E05\u7406\u4F1A\u8BDD\u6CA1\u80FD\u542F\u52A8\uFF1A{message}"};var en22={open:"Open",collapseChildren:"Collapse children",expandChildren:"Expand children",newChat:"New conversation",newShell:"New shell",continueEngine:"Continue in another engine\u2026",newScratchChat:"New conversation (no folder)",newTask:"New task",newTaskFromBranch:"New task from this branch",forgetProject:"Remove project",fieldNotes:"Field notes",rename:"Rename",pin:"Pin",unpin:"Unpin",reorder:"Reorder row",moveToTop:"Move to top",moveProjectUp:"Move up",moveProjectDown:"Move down",runAgain:"Run again",setStatus:"Set status",moveToProject:"Move to project\u2026",copy:"Copy",more:"More",copyId:"Copy task ID",copyBranch:"Copy branch name",copyPath:"Copy path",openEditor:"Open in editor",renameBranch:"Rename branch",changeEngine:"Change engine",fixChecks:"Fix failing checks",rerunChecks:"Re-run failed checks",syncBase:"Sync with base",resolveConflicts:"Resolve conflicts",land:"Land into base branch",muteNotifications:"Mute notifications",unmuteNotifications:"Unmute notifications",archive:"Archive",unarchive:"Unarchive",delete:"Remove session"},zh22={open:"\u6253\u5F00",collapseChildren:"\u6298\u53E0\u5B50\u4EFB\u52A1",expandChildren:"\u5C55\u5F00\u5B50\u4EFB\u52A1",newChat:"\u65B0\u5EFA\u4F1A\u8BDD",newShell:"\u65B0\u5EFA\u7EC8\u7AEF",continueEngine:"\u6362\u4E2A\u5F15\u64CE\u7EE7\u7EED\u2026",newScratchChat:"\u65B0\u5EFA\u4F1A\u8BDD\uFF08\u65E0\u6587\u4EF6\u5939\uFF09",newTask:"\u65B0\u5EFA\u4EFB\u52A1",newTaskFromBranch:"\u57FA\u4E8E\u6B64\u5206\u652F\u65B0\u5EFA\u4EFB\u52A1",forgetProject:"\u79FB\u9664\u9879\u76EE",fieldNotes:"\u73B0\u573A\u7B14\u8BB0",rename:"\u91CD\u547D\u540D",pin:"\u7F6E\u9876",unpin:"\u53D6\u6D88\u7F6E\u9876",reorder:"\u91CD\u65B0\u6392\u5E8F",moveToTop:"\u79FB\u5230\u9876\u90E8",moveProjectUp:"\u4E0A\u79FB",moveProjectDown:"\u4E0B\u79FB",runAgain:"\u91CD\u65B0\u8FD0\u884C",setStatus:"\u8BBE\u7F6E\u72B6\u6001",moveToProject:"\u79FB\u5230\u5176\u4ED6\u9879\u76EE\u2026",copy:"\u590D\u5236",more:"\u66F4\u591A",copyId:"\u590D\u5236\u4EFB\u52A1 ID",copyBranch:"\u590D\u5236\u5206\u652F\u540D",copyPath:"\u590D\u5236\u8DEF\u5F84",openEditor:"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00",renameBranch:"\u91CD\u547D\u540D\u5206\u652F",changeEngine:"\u5207\u6362\u5F15\u64CE",fixChecks:"\u4FEE\u590D\u5931\u8D25\u7684\u68C0\u67E5",rerunChecks:"\u91CD\u65B0\u8FD0\u884C\u5931\u8D25\u7684\u68C0\u67E5",syncBase:"\u540C\u6B65\u57FA\u7840\u5206\u652F",resolveConflicts:"\u8BA9 agent \u89E3\u51B3\u51B2\u7A81",land:"\u5408\u5165\u57FA\u7840\u5206\u652F",muteNotifications:"\u9759\u97F3\u901A\u77E5",unmuteNotifications:"\u53D6\u6D88\u9759\u97F3\u901A\u77E5",archive:"\u5F52\u6863",unarchive:"\u53D6\u6D88\u5F52\u6863",delete:"\u79FB\u9664\u4F1A\u8BDD"};var en23={noDaemonWorktree:"No daemon running \u2014 can't create the worktree. Start it with `rove daemon restart`.",noEditor:"No editor found \u2014 set ROVE_OPEN_EDITOR (e.g. 'code', 'cursor', 'nvim')",openWorktreeFailed:"Couldn't open worktree with {label}",worktreeErrorDeleting:"This task is being deleted \u2014 it can't be opened",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}",noDiskSpace:"The disk is full, so the checkout could not be created. Free some space, then try again.",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}",worktreeGoneTitle:'Worktree for "{title}" is gone',worktreeGoneBody:"Closed {count} tab(s). The branch {branch} is still there \u2014 reopen the task to re-create its worktree.",checksPassingTitle:'Checks passed for "{title}"',checksFailingTitle:'Checks failed for "{title}"',checksResolvedBody:"PR {pr} on {branch}",copiedId:"Copied task ID {text}",copiedTab:"Copied tab address {text}",copiedSession:"Copied session ID {text}",copiedBranch:"Copied branch {text}",copiedPath:"Copied path {text}",copyFailed:"Couldn't reach a clipboard \u2014 no clipboard command on PATH, and this terminal refused OSC 52.",forgetProjectFailed:"Couldn't remove the project: {error}",deleteFailed:`Couldn't delete "{title}": {error}`,createFailed:"Couldn't create the task: {error}",engineStartFailed:"Task created; engine did not start",engineStartRetry:"{error}. Press \u23CE on the task to retry.",forkFailed:"Couldn't fork the task: {error}",forkLeftBehind:"Started from the last commit \u2014 uncommitted work stays in the original task ({reason})",childFailed:"Couldn't start the new conversation: {error}",renameFailed:"Couldn't rename the task: {error}",renameBranchFailed:"Couldn't rename the branch: {error}",switchEngineFailed:"Couldn't switch the engine: {error}",setStatusFailed:"Couldn't set the status: {error}",pinFailed:"Couldn't change the pin: {error}",moveFailed:"Couldn't move the task: {error}",moveToProjectFailed:"Couldn't move the task to that project: {error}",movedToProject:"Moved to {project}",issueChatFailed:"Couldn't start the issue chat: {error}",inboxMarkReadFailed:"Couldn't mark it read: {error}",inboxDismissFailed:"Couldn't dismiss it: {error}",engineSwitched:"Engine \u2192 {engine} (applies on reopen)",statusSet:"Status \u2192 {status}"},zh23={noDaemonWorktree:"\u5B88\u62A4\u8FDB\u7A0B\u672A\u8FD0\u884C\u2014\u2014\u65E0\u6CD5\u521B\u5EFA worktree\u3002\u8BF7\u8FD0\u884C `rove daemon restart` \u542F\u52A8\u5B83\u3002",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",worktreeErrorDeleting:"\u8BE5\u4EFB\u52A1\u6B63\u5728\u5220\u9664\u4E2D\u2014\u2014\u65E0\u6CD5\u6253\u5F00",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}",noDiskSpace:"\u78C1\u76D8\u7A7A\u95F4\u4E0D\u8DB3\uFF0C\u6CA1\u6CD5\u521B\u5EFA\u5DE5\u4F5C\u76EE\u5F55\u3002\u6E05\u7406\u51FA\u4E00\u4E9B\u7A7A\u95F4\u540E\u518D\u91CD\u8BD5\u3002",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}",worktreeGoneTitle:'"{title}" \u7684 worktree \u5DF2\u6D88\u5931',worktreeGoneBody:"\u5DF2\u5173\u95ED {count} \u4E2A\u6807\u7B7E\u9875\u3002\u5206\u652F {branch} \u4ECD\u5728\u2014\u2014\u91CD\u65B0\u6253\u5F00\u8BE5\u4EFB\u52A1\u4F1A\u91CD\u5EFA worktree\u3002",checksPassingTitle:"\u300C{title}\u300D\u7684 PR \u68C0\u67E5\u5DF2\u901A\u8FC7",checksFailingTitle:"\u300C{title}\u300D\u7684 PR \u68C0\u67E5\u5931\u8D25\u4E86",checksResolvedBody:"PR {pr}\uFF0C\u5206\u652F {branch}",copiedId:"\u5DF2\u590D\u5236\u4EFB\u52A1 ID {text}",copiedTab:"\u5DF2\u590D\u5236\u6807\u7B7E\u9875\u5730\u5740 {text}",copiedSession:"\u5DF2\u590D\u5236\u4F1A\u8BDD ID {text}",copiedBranch:"\u5DF2\u590D\u5236\u5206\u652F {text}",copiedPath:"\u5DF2\u590D\u5236\u8DEF\u5F84 {text}",copyFailed:"\u65E0\u6CD5\u8BBF\u95EE\u526A\u8D34\u677F\u2014\u2014PATH \u4E0A\u6CA1\u6709\u526A\u8D34\u677F\u547D\u4EE4\uFF0C\u8FD9\u4E2A\u7EC8\u7AEF\u4E5F\u62D2\u7EDD\u4E86 OSC 52\u3002",forgetProjectFailed:"\u79FB\u9664\u9879\u76EE\u5931\u8D25\uFF1A{error}",deleteFailed:"\u5220\u9664\u300C{title}\u300D\u5931\u8D25\uFF1A{error}",createFailed:"\u521B\u5EFA\u4EFB\u52A1\u5931\u8D25\uFF1A{error}",engineStartFailed:"\u4EFB\u52A1\u5DF2\u521B\u5EFA\uFF0C\u5F15\u64CE\u6CA1\u6709\u542F\u52A8",engineStartRetry:"{error}\u3002\u5728\u4EFB\u52A1\u4E0A\u6309 \u23CE \u91CD\u8BD5\u3002",forkFailed:"fork \u4EFB\u52A1\u5931\u8D25\uFF1A{error}",forkLeftBehind:"\u5DF2\u4ECE\u6700\u8FD1\u4E00\u6B21\u63D0\u4EA4\u5F00\u59CB\u2014\u2014\u672A\u63D0\u4EA4\u7684\u6539\u52A8\u7559\u5728\u539F\u4EFB\u52A1\u91CC\uFF08{reason}\uFF09",childFailed:"\u65E0\u6CD5\u5F00\u59CB\u65B0\u5BF9\u8BDD\uFF1A{error}",renameFailed:"\u91CD\u547D\u540D\u4EFB\u52A1\u5931\u8D25\uFF1A{error}",renameBranchFailed:"\u91CD\u547D\u540D\u5206\u652F\u5931\u8D25\uFF1A{error}",switchEngineFailed:"\u5207\u6362\u5F15\u64CE\u5931\u8D25\uFF1A{error}",setStatusFailed:"\u8BBE\u7F6E\u72B6\u6001\u5931\u8D25\uFF1A{error}",pinFailed:"\u4FEE\u6539\u7F6E\u9876\u72B6\u6001\u5931\u8D25\uFF1A{error}",moveFailed:"\u79FB\u52A8\u4EFB\u52A1\u5931\u8D25\uFF1A{error}",moveToProjectFailed:"\u79FB\u5230\u8BE5\u9879\u76EE\u5931\u8D25\uFF1A{error}",movedToProject:"\u5DF2\u79FB\u5230 {project}",issueChatFailed:"\u542F\u52A8\u8BAE\u9898\u4F1A\u8BDD\u5931\u8D25\uFF1A{error}",inboxMarkReadFailed:"\u6807\u8BB0\u4E3A\u5DF2\u8BFB\u5931\u8D25\uFF1A{error}",inboxDismissFailed:"\u5FFD\u7565\u5931\u8D25\uFF1A{error}",engineSwitched:"\u5F15\u64CE \u2192 {engine}\uFF08\u91CD\u65B0\u6253\u5F00\u540E\u751F\u6548\uFF09",statusSet:"\u72B6\u6001 \u2192 {status}"};var en24={nav:{kanban:"Kanban",automations:"Routines",issues:"Issues",mods:"Mods"},header:{scratch:"Ungrouped"},search:{placeholder:"fuzzy filter"},sort:{label:"sort: {mode}",hint:"Change the order (manual \u2192 newest \u2192 attention \u2192 name)",reorderSwitched:"Reorder needs manual order \u2014 switched",modes:{default:"manual",recent:"newest",attention:"attention",name:"name"}},menu:en22,status:{backlog:"Backlog",inProgress:"In progress",inReview:"In review",done:"Done",canceled:"Canceled",error:"Error"},setStatus:{title:"Set status",current:"current",footer:"\u2191\u2193 choose \xB7 enter set \xB7 esc cancel"},moveToProject:{title:"Move to project",empty:"No other project yet \u2014 add one first, or run `rove api update --project PATH`",footer:"\u2191\u2193 choose \xB7 enter move \xB7 esc cancel"},sync:{done:"Merged {base} into this worktree",alreadyCurrent:"Already up to date with {base}",conflict:"Merge conflict \u2014 resolve then commit: {files}",dirty:"Commit the worktree's changes first, then sync: {files}",failed:"Sync failed: {error}"},archive:{done:"Archived {title}",restored:"Restored {title}",busyTitle:"Archive while it's working?",busyBody:"An engine in {title} is still working or waiting on you. Archiving stops it.",busyConfirm:"Archive anyway",failed:"Couldn't archive: {error}",restoreFailed:"Couldn't restore: {error}"},rerun:{started:"Re-running failed checks",none:"No failed checks to re-run",external:"These checks didn't run on GitHub Actions; re-run them where they ran",refused:"Re-run refused: {detail}"},changeEngine:{title:"Change engine",current:"current",effortLabel:"EFFORT",noEffort:"engine default",footer:{engine:"\u2191\u2193 engine",effort:"\u2190\u2192 effort",model:"tab model",set:"enter set",cancel:"esc cancel"}},engineModel:{label:"MODEL",placeholder:"engine default",loading:"listing models\u2026"},tier:{swift:"swift",standard:"standard",deep:"deep",manual:"manual"},tierDesc:{swift:"small, well-specified edits \u2014 the fastest, cheapest setting",standard:"everyday feature work and bug fixes",deep:"hard problems: unclear root causes, large refactors, design decisions"},runAgain:{title:"Run again",source:"Brief from \u201C{title}\u201D",hint:"Runs this brief again in a new task, on its own branch and worktree.",confirm:"Run again",footer:"\u2191\u2193 scroll \xB7 \u2190\u2192 choose \xB7 enter run \xB7 esc cancel"},fieldNotes:{title:"Field notes",empty:"No field notes for this repo yet \u2014 agents file one with `rove api note`.",loading:"Loading\u2026",footer:"\u2191\u2193 scroll \xB7 esc close",footerDeletable:"\u2191\u2193 select \xB7 d delete \xB7 esc close",confirmDelete:{title:"Delete this field note?",body:"\u201C{text}\u201D stops being injected into new sessions on this repo. Nothing else changes."}},confirm:en21,renameBranch:{title:"Rename branch",fieldLabel:"branch"},moveChip:" move",recentJump:"Recent: {title}",archivedHit:"{title} \xB7 archived, enter unarchives",machine:{connecting:"connecting\u2026",offline:"offline",unsupported:"unsupported",mismatch:"protocol mismatch",filesElsewhere:"on {host}",filesHint:"{host} is unreachable right now; its files show here again when it reconnects.",terminalElsewhere:"This task runs on {host}, which is unreachable right now.",runsOn:"on {host}",noTabs:"No tabs on {host} yet \u2014 prefix t opens one there."},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:{working:"working",rateLimited:"rate limited",permissionNeeded:"needs permission",error:"error",dead:"engine exited"},group:{waitingOnYou:"needs you",landing:"ready to land",readyForReview:"needs review",working:"working"},subtitle:{noTracking:"no activity tracking",materializing:"materializing",deleting:"deleting",deleteFailed:"delete failed"},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:en23},zh24={nav:{kanban:"\u770B\u677F",automations:"\u4F8B\u884C\u4EFB\u52A1",issues:"\u8BAE\u9898",mods:"Mods"},header:{scratch:"\u672A\u5206\u7EC4"},search:{placeholder:"\u6A21\u7CCA\u641C\u7D22"},sort:{label:"\u6392\u5E8F\uFF1A{mode}",hint:"\u5207\u6362\u6392\u5E8F\uFF08\u624B\u52A8 \u2192 \u6700\u65B0 \u2192 \u5173\u6CE8 \u2192 \u540D\u79F0\uFF09",reorderSwitched:"\u8C03\u6574\u987A\u5E8F\u9700\u624B\u52A8\u6392\u5E8F\uFF0C\u5DF2\u5207\u6362",modes:{default:"\u624B\u52A8",recent:"\u6700\u65B0",attention:"\u5173\u6CE8",name:"\u540D\u79F0"}},menu:zh22,status:{backlog:"\u5F85\u529E",inProgress:"\u8FDB\u884C\u4E2D",inReview:"\u5F85\u8BC4\u5BA1",done:"\u5DF2\u5B8C\u6210",canceled:"\u5DF2\u53D6\u6D88",error:"\u51FA\u9519"},setStatus:{title:"\u8BBE\u7F6E\u72B6\u6001",current:"\u5F53\u524D",footer:"\u2191\u2193 \u9009\u62E9 \xB7 enter \u8BBE\u7F6E \xB7 esc \u53D6\u6D88"},moveToProject:{title:"\u79FB\u5230\u5176\u4ED6\u9879\u76EE",empty:"\u8FD8\u6CA1\u6709\u5176\u4ED6\u9879\u76EE\u2014\u2014\u5148\u6DFB\u52A0\u4E00\u4E2A\uFF0C\u6216\u8FD0\u884C `rove api update --project PATH`",footer:"\u2191\u2193 \u9009\u62E9 \xB7 enter \u79FB\u52A8 \xB7 esc \u53D6\u6D88"},sync:{done:"\u5DF2\u628A {base} \u5408\u5E76\u8FDB\u8BE5\u5DE5\u4F5C\u6811",alreadyCurrent:"\u5DF2\u7ECF\u548C {base} \u540C\u6B65",conflict:"\u5408\u5E76\u51B2\u7A81\u2014\u2014\u89E3\u51B3\u540E\u63D0\u4EA4\uFF1A{files}",dirty:"\u8BF7\u5148\u63D0\u4EA4\u5DE5\u4F5C\u6811\u91CC\u7684\u6539\u52A8\uFF0C\u518D\u540C\u6B65\uFF1A{files}",failed:"\u540C\u6B65\u5931\u8D25\uFF1A{error}"},archive:{done:"\u5DF2\u5F52\u6863 {title}",restored:"\u5DF2\u6062\u590D {title}",busyTitle:"\u5B83\u8FD8\u5728\u5DE5\u4F5C\uFF0C\u4ECD\u8981\u5F52\u6863\uFF1F",busyBody:"{title} \u91CC\u6709\u5F15\u64CE\u4ECD\u5728\u5DE5\u4F5C\u6216\u5728\u7B49\u4F60\u3002\u5F52\u6863\u4F1A\u628A\u5B83\u505C\u6389\u3002",busyConfirm:"\u4ECD\u8981\u5F52\u6863",failed:"\u5F52\u6863\u5931\u8D25\uFF1A{error}",restoreFailed:"\u6062\u590D\u5931\u8D25\uFF1A{error}"},rerun:{started:"\u6B63\u5728\u91CD\u65B0\u8FD0\u884C\u5931\u8D25\u7684\u68C0\u67E5",none:"\u6CA1\u6709\u53EF\u91CD\u65B0\u8FD0\u884C\u7684\u5931\u8D25\u68C0\u67E5",external:"\u8FD9\u4E9B\u68C0\u67E5\u4E0D\u662F\u5728 GitHub Actions \u4E0A\u8FD0\u884C\u7684\uFF0C\u8BF7\u5230\u5B83\u4EEC\u8FD0\u884C\u7684\u5730\u65B9\u91CD\u65B0\u8FD0\u884C",refused:"\u65E0\u6CD5\u91CD\u65B0\u8FD0\u884C\uFF1A{detail}"},changeEngine:{title:"\u5207\u6362\u5F15\u64CE",current:"\u5F53\u524D",effortLabel:"\u63A8\u7406\u5F3A\u5EA6",noEffort:"\u5F15\u64CE\u9ED8\u8BA4",footer:{engine:"\u2191\u2193 \u5F15\u64CE",effort:"\u2190\u2192 \u5F3A\u5EA6",model:"tab \u6A21\u578B",set:"enter \u8BBE\u7F6E",cancel:"esc \u53D6\u6D88"}},engineModel:{label:"\u6A21\u578B",placeholder:"\u5F15\u64CE\u9ED8\u8BA4",loading:"\u6B63\u5728\u5217\u51FA\u6A21\u578B\u2026"},tier:{swift:"\u8F7B\u5FEB",standard:"\u6807\u51C6",deep:"\u6DF1\u5165",manual:"\u624B\u52A8"},tierDesc:{swift:"\u5C0F\u800C\u660E\u786E\u7684\u6539\u52A8\u2014\u2014\u6700\u5FEB\u3001\u6700\u7701\u7684\u4E00\u6863",standard:"\u65E5\u5E38\u7684\u529F\u80FD\u5F00\u53D1\u548C\u4FEE bug",deep:"\u96BE\u9898\uFF1A\u6839\u56E0\u4E0D\u660E\u3001\u5927\u91CD\u6784\u3001\u8BBE\u8BA1\u51B3\u7B56"},runAgain:{title:"\u91CD\u65B0\u8FD0\u884C",source:"\u6765\u81EA\u4EFB\u52A1\u300C{title}\u300D\u7684\u6307\u4EE4",hint:"\u5728\u65B0\u4EFB\u52A1\u91CC\u91CD\u65B0\u6267\u884C\u8FD9\u6BB5\u6307\u4EE4\uFF0C\u65B0\u4EFB\u52A1\u6709\u81EA\u5DF1\u7684\u5206\u652F\u548C\u5DE5\u4F5C\u6811\u3002",confirm:"\u91CD\u65B0\u8FD0\u884C",footer:"\u2191\u2193 \u6EDA\u52A8 \xB7 \u2190\u2192 \u9009\u62E9 \xB7 enter \u8FD0\u884C \xB7 esc \u53D6\u6D88"},confirm:zh21,renameBranch:{title:"\u91CD\u547D\u540D\u5206\u652F",fieldLabel:"\u5206\u652F"},fieldNotes:{title:"\u73B0\u573A\u7B14\u8BB0",empty:"\u8BE5\u4ED3\u5E93\u6682\u65E0\u73B0\u573A\u7B14\u8BB0\u2014\u2014agent \u53EF\u7528 `rove api note` \u8BB0\u5F55\u3002",loading:"\u52A0\u8F7D\u4E2D\u2026",footer:"\u2191\u2193 \u6EDA\u52A8 \xB7 esc \u5173\u95ED",footerDeletable:"\u2191\u2193 \u9009\u62E9 \xB7 d \u5220\u9664 \xB7 esc \u5173\u95ED",confirmDelete:{title:"\u5220\u9664\u8FD9\u6761\u73B0\u573A\u7B14\u8BB0?",body:"\u300C{text}\u300D\u5C06\u4E0D\u518D\u6CE8\u5165\u8BE5\u4ED3\u5E93\u7684\u65B0\u4F1A\u8BDD\u3002\u5176\u4ED6\u5185\u5BB9\u4E0D\u53D7\u5F71\u54CD\u3002"}},moveChip:" \u79FB\u52A8",recentJump:"\u6700\u8FD1:{title}",archivedHit:"{title} \xB7 \u5DF2\u5F52\u6863\uFF0C\u56DE\u8F66\u6062\u590D",machine:{connecting:"\u8FDE\u63A5\u4E2D\u2026",offline:"\u79BB\u7EBF",unsupported:"\u4E0D\u652F\u6301",mismatch:"\u534F\u8BAE\u4E0D\u517C\u5BB9",filesElsewhere:"\u5728 {host} \u4E0A",filesHint:"{host} \u6682\u65F6\u8FDE\u4E0D\u4E0A\uFF1B\u91CD\u65B0\u8FDE\u4E0A\u540E\u8FD9\u91CC\u4F1A\u518D\u663E\u793A\u5B83\u7684\u6587\u4EF6\u3002",terminalElsewhere:"\u8FD9\u4E2A\u4EFB\u52A1\u8DD1\u5728 {host} \u4E0A\uFF0C\u6682\u65F6\u8FDE\u4E0D\u4E0A\u3002",runsOn:"\u5728 {host} \u4E0A",noTabs:"{host} \u4E0A\u8FD8\u6CA1\u6709 tab\u2014\u2014\u6309 prefix t \u5728\u90A3\u91CC\u65B0\u5F00\u4E00\u4E2A\u3002"},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:{working:"\u8FD0\u884C\u4E2D",rateLimited:"\u8BF7\u6C42\u53D7\u9650",permissionNeeded:"\u7B49\u5F85\u6388\u6743",error:"\u9519\u8BEF",dead:"\u5F15\u64CE\u5DF2\u9000\u51FA"},group:{waitingOnYou:"\u7B49\u4F60\u5904\u7406",landing:"\u53EF\u4EE5\u5408\u4E86",readyForReview:"\u5F85\u4F60\u9A8C\u6536",working:"\u8FD0\u884C\u4E2D"},subtitle:{noTracking:"\u4E0D\u8DDF\u8E2A\u6D3B\u52A8",materializing:"\u6B63\u5728\u521B\u5EFA worktree",deleting:"\u6B63\u5728\u5220\u9664",deleteFailed:"\u5220\u9664\u5931\u8D25"},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:zh23};var en25={noTask:"(no task \u2014 press n to create)",exited:"process exited \u2014 F5 restarts it",engineExit:{title:"Engine exited",titleCode:"Engine exited (code {code})",retry:"Retry",settings:"Settings \u2192 Engines",another:"Another engine",continueIn:"Continue in another engine"},usageLimit:{title:"Usage limit reached",dismiss:"Dismiss"},restoring:"restoring session\u2026",recovery:{live:"Live process reattached",relaunched:"Command relaunched in a new process. Any restored output is historical; check the engine to resume or continue your conversation.",restored:"Historical screen restored; previous process ended. Restart and check the engine before continuing."},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",engine:"ENGINE",destLabel:"DESTINATION",destTab:"child task, same directory",destFork:"fork a child task (new worktree)",destScratch:"new scratch task ($HOME)",ctxLabel:"CONTEXT",ctxFresh:"fresh conversation",ctxContinue:"continue this conversation"},cannotCloseLast:"Cannot close the only tab",tabGone:"That tab is no longer there",closeOthersTitle:"Close the other tabs?",closeOthersBody:"Closing {count} \xB7 their sessions end, this tab stays open.",closeOthersConfirm:"close tabs",closeOthersCancel:"cancel",menu:{rename:"Rename tab",copyAddress:"Copy tab address",copySessionId:"Copy session ID",continueEngine:"Continue in another engine\u2026",closeOthers:"Close other tabs",close:"Close tab"},nothingToFork:"No conversation in this tab to fork yet",noSessionYet:"No conversation in this tab yet",noSessionYetHint:"Send the engine a prompt; its session ID exists once the conversation starts.",noTranscriptToHandOff:"{engine} keeps no readable transcript to hand over"},split:{renameTitle:"Rename split",renameField:"SPLIT NAME"},scrolledBack:"\u2191 scrolled {lines}L",scrollFirst:"[first]",scrollLatest:"[latest]",unavailable:{shellMissing:"terminal unavailable \u2014 the shell named by $SHELL isn't on this machine. Point $SHELL at one that exists, or unset it to fall back to the system default.",spawnFailed:"terminal unavailable \u2014 the shell exited immediately. Its error is in ~/.rove/pty.log.",retry:"F5 tries again"},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."}},zh25={recovery:{live:"\u5DF2\u91CD\u65B0\u8FDE\u63A5\u4ECD\u5728\u8FD0\u884C\u7684\u8FDB\u7A0B",relaunched:"\u547D\u4EE4\u5DF2\u5728\u65B0\u8FDB\u7A0B\u4E2D\u91CD\u542F\u3002\u5982\u6709\u6062\u590D\u7684\u8F93\u51FA\uFF0C\u5B83\u5C5E\u4E8E\u5386\u53F2\u8BB0\u5F55\uFF1B\u8BF7\u5728\u5F15\u64CE\u5185\u786E\u8BA4\u4F1A\u8BDD\u6062\u590D\u6216\u7EE7\u7EED\u64CD\u4F5C\u3002",restored:"\u5DF2\u6062\u590D\u5386\u53F2\u753B\u9762\uFF1B\u539F\u8FDB\u7A0B\u5DF2\u7ED3\u675F\u3002\u8BF7\u91CD\u542F\u5E76\u786E\u8BA4\u5F15\u64CE\u72B6\u6001\u540E\u7EE7\u7EED\u3002"},noTask:"\uFF08\u65E0\u4EFB\u52A1 \u2014\u2014 \u6309 n \u521B\u5EFA\uFF09",exited:"\u8FDB\u7A0B\u5DF2\u9000\u51FA \u2014\u2014 \u6309 F5 \u91CD\u542F",engineExit:{title:"\u5F15\u64CE\u5DF2\u9000\u51FA",titleCode:"\u5F15\u64CE\u5DF2\u9000\u51FA\uFF08\u9000\u51FA\u7801 {code}\uFF09",retry:"\u91CD\u8BD5",settings:"\u8BBE\u7F6E \u2192 \u5F15\u64CE",another:"\u6362\u4E2A\u5F15\u64CE",continueIn:"\u6362\u4E2A\u5F15\u64CE\u7EE7\u7EED"},usageLimit:{title:"\u5DF2\u8FBE\u5230\u7528\u91CF\u4E0A\u9650",dismiss:"\u5FFD\u7565"},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",engine:"\u5F15\u64CE",destLabel:"\u843D\u70B9",destTab:"\u5B50\u4EFB\u52A1\uFF0C\u540C\u4E00\u76EE\u5F55",destFork:"fork \u5B50\u4EFB\u52A1\uFF08\u65B0 worktree\uFF09",destScratch:"\u65B0\u4E34\u65F6\u4EFB\u52A1\uFF08$HOME\uFF09",ctxLabel:"\u4E0A\u4E0B\u6587",ctxFresh:"\u5168\u65B0\u5BF9\u8BDD",ctxContinue:"\u63A5\u7740\u5F53\u524D\u5BF9\u8BDD"},cannotCloseLast:"\u65E0\u6CD5\u5173\u95ED\u552F\u4E00\u7684\u6807\u7B7E\u9875",tabGone:"\u8FD9\u4E2A\u6807\u7B7E\u9875\u5DF2\u7ECF\u4E0D\u5728\u4E86",closeOthersTitle:"\u5173\u95ED\u5176\u4ED6\u6807\u7B7E\u9875\uFF1F",closeOthersBody:"\u5C06\u5173\u95ED {count} \u4E2A\uFF0C\u5B83\u4EEC\u7684\u4F1A\u8BDD\u4F1A\u7ED3\u675F\uFF0C\u53EA\u4FDD\u7559\u8FD9\u4E2A\u6807\u7B7E\u9875\u3002",closeOthersConfirm:"\u5173\u95ED\u6807\u7B7E\u9875",closeOthersCancel:"\u53D6\u6D88",menu:{rename:"\u91CD\u547D\u540D\u6807\u7B7E\u9875",copyAddress:"\u590D\u5236\u6807\u7B7E\u9875\u5730\u5740",copySessionId:"\u590D\u5236\u4F1A\u8BDD ID",continueEngine:"\u6362\u4E2A\u5F15\u64CE\u7EE7\u7EED\u2026",closeOthers:"\u5173\u95ED\u5176\u4ED6\u6807\u7B7E\u9875",close:"\u5173\u95ED\u6807\u7B7E\u9875"},nothingToFork:"\u8FD9\u4E2A\u6807\u7B7E\u9875\u8FD8\u6CA1\u6709\u53EF\u6D3E\u751F\u7684\u5BF9\u8BDD",noSessionYet:"\u8FD9\u4E2A\u6807\u7B7E\u9875\u8FD8\u6CA1\u6709\u5BF9\u8BDD",noSessionYetHint:"\u5148\u7ED9\u5F15\u64CE\u53D1\u4E00\u6761\u6D88\u606F\uFF0C\u5BF9\u8BDD\u5F00\u59CB\u540E\u624D\u6709\u4F1A\u8BDD ID\u3002",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",scrollFirst:"[\u6700\u65E9]",scrollLatest:"[\u6700\u65B0]",unavailable:{shellMissing:"\u7EC8\u7AEF\u4E0D\u53EF\u7528 \u2014\u2014 $SHELL \u6307\u5411\u7684 shell \u5728\u8FD9\u53F0\u673A\u5668\u4E0A\u4E0D\u5B58\u5728\u3002\u8BF7\u628A $SHELL \u6307\u5411\u4E00\u4E2A\u771F\u5B9E\u5B58\u5728\u7684 shell\uFF0C\u6216\u53D6\u6D88\u8BBE\u7F6E\u4EE5\u56DE\u9000\u5230\u7CFB\u7EDF\u9ED8\u8BA4\u3002",spawnFailed:"\u7EC8\u7AEF\u4E0D\u53EF\u7528 \u2014\u2014 shell \u542F\u52A8\u540E\u7ACB\u5373\u9000\u51FA\u3002\u5177\u4F53\u9519\u8BEF\u89C1 ~/.rove/pty.log\u3002",retry:"\u6309 F5 \u91CD\u8BD5"},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 en26={pageTitle:"ROVE UPDATE",closeHint:"q / esc close",chip:"\u2191 {version}",current:"current",available:"v{version} available",latest:"latest",latestUnknown:"unknown \u2014 could not reach the registry",registryRetry:"Check your connection, then close and reopen Update to retry.",upToDate:"No newer release \u2014 nothing to install.",releaseUrlUnavailable:"release URL unavailable; visit github.com/Sma1lboy/rove/releases",statusReleaseOpened:"Opened release page in your browser.",statusReleaseError:"Could not open release URL. Visit github.com/Sma1lboy/rove/releases in your browser.",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}. Check the output above, then run `rove update` to retry.",pressAnyKey:"Press any key to close this update window.",webRunning:"Running {command} \u2026",webInstalled:"Installed. Restart Rove to run v{latest}; this page reloads itself when it is back.",webRestart:"Restart Rove",webRestarting:"Restarting Rove\u2026 this page reloads itself when it is back.",webStartFailed:"Could not start the updater: {error}",actions:{updateNow:"Update now",openRelease:"Open release",close:"Close",closeDetail:"return to the workspace"},whatsNew:{title:"WHAT'S NEW \uD83C\uDF89",closeHint:"q / esc continue",upgraded:"You're now on Rove v{to}, up from v{from}. Here's what changed.",notesUnavailable:"Could not load the release notes \u2014 check your connection, or read them on GitHub.",sourceHint:"release notes: {url}"},skew:{title:"\u26A0 DAEMON OUT OF DATE",olderBuild:"an older build",hint:"daemon is {daemon} \u2014 you launched v{clientVersion}. Press {keys} to refresh Rove onto the installed build",hintNoKey:"daemon is {daemon} \u2014 you launched v{clientVersion}. Run `rove daemon restart`, then relaunch Rove"},refresh:{confirmTitle:"Refresh Rove?",confirmBody:"Rove restarts the daemon and relaunches itself on the installed build. Running engine sessions live in the PTY host and keep going; open tabs come back.",confirmLabel:"Refresh",relaunching:"rove: restarting on the installed build...",alreadyCurrent:"Rove and the daemon already run the same build \u2014 nothing to refresh.",installGone:"This Rove was installed from a directory that no longer exists, so it cannot relaunch itself. Reinstall with `npm install -g @sma1lboy/rove`."},staleInstall:{title:"\u2715 ROVE INSTALL IS GONE",hint:"this Rove is running from an install that no longer exists on disk, so it cannot start a daemon. Reinstall (`npm install -g @sma1lboy/rove`) and relaunch Rove"},versions:{pageTitle:"ROVE VERSIONS",loading:"Loading releases...",unavailable:"Could not fetch releases. Check your connection or wait for the rate limit, then reopen this page.",tagCurrent:"current",tagLatest:"latest",tagBreaking:"breaking",breakingWarning:"\u26A0 installing this crosses breaking version(s) {versions}. Rove will refuse to start until you run `rove reset`, which stops the daemon, the PTY host, and every live session. Tasks and worktrees are kept.",footerHint:"j/k select \xB7 enter install \xB7 q close",closeHint:"q / esc close"}},zh26={pageTitle:"ROVE \u66F4\u65B0",closeHint:"q / esc \u5173\u95ED",chip:"\u2191 {version}",current:"\u5F53\u524D",available:"\u6709\u65B0\u7248\u672C v{version}",latest:"\u6700\u65B0",latestUnknown:"\u672A\u77E5 \u2014\u2014 \u65E0\u6CD5\u8FDE\u63A5\u5230 registry",registryRetry:"\u8BF7\u68C0\u67E5\u7F51\u7EDC\uFF0C\u7136\u540E\u5173\u95ED\u5E76\u91CD\u65B0\u6253\u5F00\u66F4\u65B0\u9875\u91CD\u8BD5\u3002",upToDate:"\u6CA1\u6709\u66F4\u65B0\u7684\u7248\u672C \u2014\u2014 \u65E0\u9700\u5B89\u88C5\u3002",releaseUrlUnavailable:"\u53D1\u5E03\u94FE\u63A5\u4E0D\u53EF\u7528\uFF1B\u8BF7\u8BBF\u95EE github.com/Sma1lboy/rove/releases",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\u8BF7\u5728\u6D4F\u89C8\u5668\u8BBF\u95EE github.com/Sma1lboy/rove/releases\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\u8BF7\u68C0\u67E5\u4E0A\u65B9\u8F93\u51FA\uFF0C\u518D\u8FD0\u884C `rove update` \u91CD\u8BD5\u3002",pressAnyKey:"\u6309\u4EFB\u610F\u952E\u5173\u95ED\u6B64\u66F4\u65B0\u7A97\u53E3\u3002",webRunning:"\u6B63\u5728\u8FD0\u884C {command} \u2026",webInstalled:"\u5DF2\u5B89\u88C5\u3002\u91CD\u542F Rove \u540E\u8FD0\u884C v{latest}\uFF1B\u6062\u590D\u540E\u9875\u9762\u4F1A\u81EA\u52A8\u5237\u65B0\u3002",webRestart:"\u91CD\u542F Rove",webRestarting:"\u6B63\u5728\u91CD\u542F Rove\u2026 \u6062\u590D\u540E\u9875\u9762\u4F1A\u81EA\u52A8\u5237\u65B0\u3002",webStartFailed:"\u65E0\u6CD5\u542F\u52A8\u66F4\u65B0\u7A0B\u5E8F\uFF1A{error}",actions:{updateNow:"\u7ACB\u5373\u66F4\u65B0",openRelease:"\u6253\u5F00\u53D1\u5E03\u9875",close:"\u5173\u95ED",closeDetail:"\u8FD4\u56DE\u5DE5\u4F5C\u533A"},whatsNew:{title:"\u66F4\u65B0\u5185\u5BB9 \uD83C\uDF89",closeHint:"q / esc \u7EE7\u7EED",upgraded:"Rove \u5DF2\u4ECE v{from} \u66F4\u65B0\u5230 v{to}\uFF0C\u672C\u6B21\u53D8\u66F4\u5982\u4E0B\u3002",notesUnavailable:"\u65E0\u6CD5\u52A0\u8F7D\u53D1\u5E03\u8BF4\u660E \u2014\u2014 \u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\uFF0C\u6216\u5230 GitHub \u4E0A\u67E5\u770B\u3002",sourceHint:"\u53D1\u5E03\u8BF4\u660E\uFF1A{url}"},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\u6309 {keys} \u53EF\u8BA9 Rove \u5237\u65B0\u5230\u5DF2\u5B89\u88C5\u7684\u7248\u672C",hintNoKey:"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"},refresh:{confirmTitle:"\u5237\u65B0 Rove\uFF1F",confirmBody:"Rove \u4F1A\u91CD\u542F daemon\uFF0C\u5E76\u4EE5\u5DF2\u5B89\u88C5\u7684\u7248\u672C\u91CD\u65B0\u542F\u52A8\u81EA\u8EAB\u3002\u6B63\u5728\u8FD0\u884C\u7684\u5F15\u64CE\u4F1A\u8BDD\u7531 PTY host \u6258\u7BA1\uFF0C\u4E0D\u4F1A\u4E2D\u65AD\uFF1B\u5DF2\u6253\u5F00\u7684\u6807\u7B7E\u9875\u4F1A\u6062\u590D\u3002",confirmLabel:"\u5237\u65B0",relaunching:"rove\uFF1A\u6B63\u5728\u4EE5\u5DF2\u5B89\u88C5\u7684\u7248\u672C\u91CD\u65B0\u542F\u52A8\u2026\u2026",alreadyCurrent:"Rove \u4E0E daemon \u5DF2\u7ECF\u662F\u540C\u4E00\u4E2A\u7248\u672C \u2014\u2014 \u65E0\u9700\u5237\u65B0\u3002",installGone:"\u5F53\u524D Rove \u7684\u5B89\u88C5\u76EE\u5F55\u5DF2\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u91CD\u65B0\u542F\u52A8\u81EA\u8EAB\u3002\u8BF7\u8FD0\u884C `npm install -g @sma1lboy/rove` \u91CD\u65B0\u5B89\u88C5\u3002"},staleInstall:{title:"\u2715 ROVE \u5B89\u88C5\u5DF2\u4E0D\u5B58\u5728",hint:"\u5F53\u524D Rove \u8FD0\u884C\u81EA\u4E00\u4EFD\u5DF2\u4ECE\u78C1\u76D8\u5220\u9664\u7684\u5B89\u88C5\uFF0C\u56E0\u6B64\u65E0\u6CD5\u542F\u52A8 daemon\u3002\u8BF7\u91CD\u65B0\u5B89\u88C5\uFF08`npm install -g @sma1lboy/rove`\uFF09\u5E76\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\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216\u7B49\u5F85\u9650\u6D41\u89E3\u9664\uFF0C\u7136\u540E\u91CD\u65B0\u6253\u5F00\u672C\u9875\u3002",tagCurrent:"\u5F53\u524D",tagLatest:"\u6700\u65B0",tagBreaking:"breaking",breakingWarning:"\u26A0 \u5B89\u88C5\u8BE5\u7248\u672C\u4F1A\u8DE8\u8FC7 breaking \u7248\u672C {versions}\u3002\u66F4\u65B0\u540E Rove \u4F1A\u62D2\u7EDD\u542F\u52A8\uFF0C\u76F4\u5230\u4F60\u8FD0\u884C `rove reset`\u2014\u2014\u5B83\u4F1A\u505C\u6389 daemon\u3001PTY host \u548C\u6240\u6709\u6D3B\u52A8\u4F1A\u8BDD\u3002\u4EFB\u52A1\u548C worktree \u4F1A\u4FDD\u7559\u3002",footerHint:"j/k \u9009\u62E9 \xB7 enter \u5B89\u88C5 \xB7 q \u5173\u95ED",closeHint:"q / esc \u5173\u95ED"}};var en27={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.",linkedChip:"\u2192 {title}",openingLinked:"Opening {title}\u2026",startFailed:"Couldn't start work on #{number}: {error}",errorHint:{noRemote:"Add a GitHub remote (`git remote add origin <url>`) and try again, or press q / esc to close.",ghMissing:"Install the `gh` CLI and authenticate, or press q / esc to close.",auth:"Run `gh auth login`, or press q / esc to close.",fallback:"{message} \xB7 press q / esc to close"}},zh27={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",linkedChip:"\u2192 {title}",openingLinked:"\u6B63\u5728\u6253\u5F00 {title}\u2026",startFailed:"\u5F00\u59CB\u5904\u7406 #{number} \u5931\u8D25\uFF1A{error}",errorHint:{noRemote:"\u6DFB\u52A0 GitHub remote\uFF08`git remote add origin <url>`\uFF09\u540E\u91CD\u8BD5\uFF0C\u6216\u6309 q / esc \u5173\u95ED\u3002",ghMissing:"\u5B89\u88C5 `gh` CLI \u5E76\u767B\u5F55\uFF0C\u6216\u6309 q / esc \u5173\u95ED\u3002",auth:"\u6267\u884C `gh auth login`\uFF0C\u6216\u6309 q / esc \u5173\u95ED\u3002",fallback:"{message} \xB7 \u6309 q / esc \u5173\u95ED"}};var en28={quit:{confirmTitle:"Quit Rove?",confirmBody:"The daemon and task sessions keep running. This closes only the native workspace.",confirmLabel:"Quit"},narrowBack:"Tasks",noPreviousTask:"No previous task to go back to",empty:{selectTask:"Select a task with a worktree",noSessions:"No sessions here \u2014 press \u23CE to start {engine}, or ctrl+e to pick another",noSessionsShell:"No sessions here \u2014 press \u23CE to start a shell, or ctrl+e to pick another",remoteUnsupported:"Hosted engine launch over SSH is not implemented \u2014 this task's worktree is on {host}"},welcome:{title:"Welcome to Rove",tagline:"All your coding agents in one place: when one runs out of quota, switch the task to another, and agents talk to each other directly.",worktreeExplain:"Managed tasks create isolated worktrees and branches. Directory and project tasks reuse existing files; tabs within a task share its directory.",stepNew:"creates your first task \u2014 pick a repo, a base branch, an engine",stepHelp:"shows every shortcut reachable from the current focus",stepPrefix:"opens the command menu",enginesFound:"\u2713 engines: {list}",enginesSignedOut:"\u2717 installed but not signed in: {list} \u2014 run one of them in a shell and log in",enginesMissing:"\u2717 no engine CLI found \u2014 install claude, codex, copilot, or kimi, then restart Rove",gitMissing:"\u2717 git not found on PATH \u2014 Rove needs git to create worktrees",doctorHint:"run `rove doctor` in a shell for the full diagnosis",docsHint:"docs: https://docs.rove.run"},attention:{none:"No available Inbox items"},inbox:{title:"INBOX",chip:"inbox {count}",empty:"No pending attention",openHint:"enter open",clearHint:"d ack",clearAllHint:"D ack all",more:"+{count} more",section:{attention:"ATTENTION",recent:"RECENT"},state:{done:"done",needsInput:"needs input",error:"error",rateLimited:"rate limited",running:"running",dead:"engine exited",restored:"restored after restart",routineFailed:"routine needs you",reportMissing:"report missing",decisionNeeded:"decision needed",gateAnswered:"answered \xB7 engine not running"},resumesAt:"resumes {time}"}},zh28={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"},narrowBack:"\u4EFB\u52A1",noPreviousTask:"\u6CA1\u6709\u53EF\u4EE5\u56DE\u53BB\u7684\u4E0A\u4E00\u4E2A\u4EFB\u52A1",empty:{selectTask:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u5E26 worktree \u7684\u4EFB\u52A1",noSessions:"\u8FD9\u91CC\u6CA1\u6709\u4F1A\u8BDD\u2014\u2014\u6309 \u23CE \u542F\u52A8 {engine}\uFF0C\u6216\u6309 ctrl+e \u53E6\u9009\u4E00\u4E2A",noSessionsShell:"\u8FD9\u91CC\u6CA1\u6709\u4F1A\u8BDD\u2014\u2014\u6309 \u23CE \u542F\u52A8 shell\uFF0C\u6216\u6309 ctrl+e \u53E6\u9009\u4E00\u4E2A",remoteUnsupported:"\u5C1A\u672A\u5B9E\u73B0\u901A\u8FC7 SSH \u542F\u52A8\u6258\u7BA1\u5F15\u64CE\u2014\u2014\u8BE5\u4EFB\u52A1\u7684 worktree \u5728 {host} \u4E0A"},welcome:{title:"\u6B22\u8FCE\u4F7F\u7528 Rove",tagline:"\u6240\u6709\u7F16\u7A0B agent \u90FD\u5728\u4E00\u4E2A\u5730\u65B9\uFF1A\u4E00\u4E2A\u989D\u5EA6\u7528\u5B8C\u4E86\uFF0C\u6362\u53E6\u4E00\u4E2A\u63A5\u7740\u5E72\uFF1Bagent \u4E4B\u95F4\u76F4\u63A5\u5BF9\u8BDD\uFF0C\u4E0D\u7528\u4F60\u4F20\u8BDD\u3002",worktreeExplain:"\u6258\u7BA1\u4EFB\u52A1\u521B\u5EFA\u72EC\u7ACB\u7684 worktree \u548C\u5206\u652F\u3002\u76EE\u5F55\u4E0E\u9879\u76EE\u4EFB\u52A1\u590D\u7528\u73B0\u6709\u6587\u4EF6\uFF1B\u540C\u4E00\u4EFB\u52A1\u5185\u7684\u6807\u7B7E\u9875\u5171\u4EAB\u76EE\u5F55\u3002",stepNew:"\u521B\u5EFA\u4F60\u7684\u7B2C\u4E00\u4E2A\u4EFB\u52A1\u2014\u2014\u9009\u4ED3\u5E93\u3001\u57FA\u7840\u5206\u652F\u548C\u5F15\u64CE",stepHelp:"\u67E5\u770B\u5F53\u524D\u7126\u70B9\u4E0B\u7684\u5168\u90E8\u5FEB\u6377\u952E",stepPrefix:"\u6253\u5F00\u547D\u4EE4\u83DC\u5355",enginesFound:"\u2713 \u5DF2\u68C0\u6D4B\u5230\u5F15\u64CE:{list}",enginesSignedOut:"\u2717 \u5DF2\u5B89\u88C5\u4F46\u672A\u767B\u5F55:{list}\u2014\u2014\u8BF7\u5728 shell \u91CC\u8FD0\u884C\u5176\u4E2D\u4E4B\u4E00\u5E76\u5B8C\u6210\u767B\u5F55",enginesMissing:"\u2717 \u672A\u627E\u5230\u5F15\u64CE CLI\u2014\u2014\u8BF7\u5B89\u88C5 claude\u3001codex\u3001copilot \u6216 kimi \u540E\u91CD\u542F Rove",gitMissing:"\u2717 PATH \u4E0A\u6CA1\u6709 git\u2014\u2014Rove \u9700\u8981 git \u6765\u521B\u5EFA worktree",doctorHint:"\u5728 shell \u91CC\u8FD0\u884C `rove doctor` \u67E5\u770B\u5B8C\u6574\u8BCA\u65AD",docsHint:"\u6587\u6863:https://docs.rove.run"},attention:{none:"\u6536\u4EF6\u7BB1\u4E2D\u6CA1\u6709\u53EF\u6253\u5F00\u7684\u9879\u76EE"},inbox:{title:"\u6536\u4EF6\u7BB1",chip:"\u6536\u4EF6\u7BB1 {count}",empty:"\u6682\u65E0\u5F85\u5904\u7406",openHint:"enter \u6253\u5F00",clearHint:"d \u5DF2\u9605",clearAllHint:"D \u5168\u90E8\u5DF2\u9605",more:"\u8FD8\u6709 {count} \u6761",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",dead:"\u5F15\u64CE\u5DF2\u9000\u51FA",restored:"\u91CD\u542F\u540E\u5DF2\u6062\u590D",routineFailed:"\u4F8B\u884C\u4EFB\u52A1\u9700\u8981\u5904\u7406",reportMissing:"\u672A\u56DE\u62A5",decisionNeeded:"\u7B49\u4F60\u51B3\u5B9A",gateAnswered:"\u5DF2\u56DE\u7B54 \xB7 \u5F15\u64CE\u672A\u8FD0\u884C"},resumesAt:"{time} \u6062\u590D"}};var en29={title:"Worktrees",loading:"Loading worktrees\u2026",noProjects:"No local projects known to Rove yet.",loadFailed:"Could not read the worktrees: {message}",noWorktrees:"No worktrees.",badge:{roveManaged:"rove",dirty:"dirty",dirtyUnknown:"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"},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, untracked, or gitignored work. Force delete removes the worktree, but the work is snapshotted first to a salvage ref \u2014 list them with `git for-each-ref refs/rove/salvage`. Force delete anyway?',forceReason:"Refused because: {reason}",failed:"Failed to delete worktree: {error}",residue:"Git deregistered the worktree, but couldn't delete {path} ({reason}). Rove is done with it \u2014 retrying won't help; delete the directory by hand if you want the space."},land:{button:"Land",confirmTitle:"Land branch?",confirmBody:'Merge "{branch}" into {landedOn} ({commits} commits), then remove this worktree? The branch is kept. Conflicts abort with a file list.',confirmBodyOne:'Merge "{branch}" into {landedOn} (1 commit), then remove this worktree? The branch is kept. 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 them, then land. Never `git stash` here: the stash stack lives in the repo's common dir and is shared by every linked worktree, so a stash can entangle other tasks' work.",failed:"Land failed: {error}",done:'Landed "{branch}" onto {landedOn} ({commit}).',worktreeKept:"Landed, but the worktree was kept: {reason}",worktreePathStale:"Landed and removed the worktree, but the task still points at it: {reason}",worktreeResidue:"Landed. Git deregistered the worktree, but couldn't delete {path} ({reason}) \u2014 delete the directory by hand if you want the space."},hint:{}},zh29={title:"\u5DE5\u4F5C\u6811",loading:"\u6B63\u5728\u52A0\u8F7D worktree\u2026",noProjects:"Rove \u8FD8\u6CA1\u6709\u5DF2\u77E5\u7684\u672C\u5730\u9879\u76EE\u3002",loadFailed:"\u8BFB\u4E0D\u5230 worktree \u5217\u8868\uFF1A{message}",noWorktrees:"\u6CA1\u6709 worktree\u3002",badge:{roveManaged:"rove",dirty:"\u6709\u6539\u52A8",dirtyUnknown:"\u6539\u52A8\u672A\u77E5",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"},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\u3001\u672A\u8DDF\u8E2A\u6216\u88AB gitignore \u7684\u6539\u52A8\u3002\u5F3A\u5236\u5220\u9664\u4F1A\u79FB\u9664 worktree\uFF0C\u4F46\u8FD9\u4E9B\u6539\u52A8\u4F1A\u5148\u88AB\u5FEB\u7167\u5230\u4E00\u4E2A salvage ref\u2014\u2014\u7528 `git for-each-ref refs/rove/salvage` \u53EF\u4EE5\u5217\u51FA\u5B83\u4EEC\u3002\u4ECD\u8981\u5F3A\u5236\u5220\u9664\u5417\uFF1F',forceReason:"\u62D2\u7EDD\u539F\u56E0\uFF1A{reason}",failed:"\u5220\u9664 worktree \u5931\u8D25\uFF1A{error}",residue:"Git \u5DF2\u6CE8\u9500\u8BE5 worktree\uFF0C\u4F46\u6CA1\u80FD\u5220\u6389 {path}\uFF08{reason}\uFF09\u3002Rove \u8FD9\u8FB9\u5DF2\u7ECF\u5904\u7406\u5B8C\u4E86\u2014\u2014\u91CD\u8BD5\u6CA1\u6709\u7528\uFF1B\u60F3\u8981\u56DE\u78C1\u76D8\u7A7A\u95F4\u8BF7\u624B\u52A8\u5220\u9664\u8BE5\u76EE\u5F55\u3002"},land:{button:"\u5408\u5165",confirmTitle:"\u5408\u5165\u5206\u652F\uFF1F",confirmBody:'\u628A "{branch}" \u5408\u5165 {landedOn}\uFF08{commits} \u4E2A\u63D0\u4EA4\uFF09\uFF0C\u7136\u540E\u79FB\u9664\u8FD9\u4E2A worktree\uFF1F\u5206\u652F\u4F1A\u4FDD\u7559\u3002\u51B2\u7A81\u4F1A\u4E2D\u6B62\u5E76\u7ED9\u51FA\u6587\u4EF6\u6E05\u5355\u3002',confirmBodyOne:'\u628A "{branch}" \u5408\u5165 {landedOn}\uFF081 \u4E2A\u63D0\u4EA4\uFF09\uFF0C\u7136\u540E\u79FB\u9664\u8FD9\u4E2A worktree\uFF1F\u5206\u652F\u4F1A\u4FDD\u7559\u3002\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\u518D\u5408\u5165\u3002\u7EDD\u4E0D\u8981\u5728\u8FD9\u91CC `git stash`\uFF1Astash \u6808\u5B58\u653E\u5728\u4ED3\u5E93\u7684 common dir \u4E2D\uFF0C\u8BE5\u4ED3\u5E93\u6240\u6709 linked worktree \u5171\u4EAB\uFF0C\u4E00\u6B21 stash \u53EF\u80FD\u7EA0\u7F20\u5176\u4ED6\u4EFB\u52A1\u7684\u5DE5\u4F5C\u3002",failed:"\u5408\u5165\u5931\u8D25\uFF1A{error}",done:'\u5DF2\u628A "{branch}" \u5408\u5165 {landedOn}\uFF08{commit}\uFF09\u3002',worktreeKept:"\u5DF2\u5408\u5165\uFF0C\u4F46 worktree \u4FDD\u7559\u4E86\uFF1A{reason}",worktreePathStale:"\u5DF2\u5408\u5165\u5E76\u79FB\u9664 worktree\uFF0C\u4F46\u4EFB\u52A1\u4ECD\u6307\u5411\u5B83\uFF1A{reason}",worktreeResidue:"\u5DF2\u5408\u5165\u3002Git \u5DF2\u6CE8\u9500\u8BE5 worktree\uFF0C\u4F46\u6CA1\u80FD\u5220\u6389 {path}\uFF08{reason}\uFF09\u2014\u2014\u60F3\u8981\u56DE\u78C1\u76D8\u7A7A\u95F4\u8BF7\u624B\u52A8\u5220\u9664\u8BE5\u76EE\u5F55\u3002"},hint:{}};var en30={settings:en20,tasks:en24,terminal:en25,files:en4,newTask:en11,onboarding:en12,ops:en13,update:en26,quickTask:en14,help:en6,hints:en7,common:en2,keys:en9,workspace:en28,worktrees:en29,kanban:en8,automations:en,workItems:en27,gates:en5,doctor:en3,mods:en10,search:en15},zh30={settings:zh20,tasks:zh24,terminal:zh25,files:zh4,newTask:zh11,onboarding:zh12,ops:zh13,update:zh26,quickTask:zh14,help:zh6,hints:zh7,common:zh2,keys:zh9,workspace:zh28,worktrees:zh29,kanban:zh8,automations:zh,workItems:zh27,gates:zh5,doctor:zh3,mods:zh10,search:zh15},LOCALES=[{id:"en",label:"English",intl:"en-US"},{id:"zh",label:"\u4E2D\u6587",intl:"zh-CN"}],CATALOGS={en:en30,zh:zh30},DEFAULT_LOCALE="en";function isLocaleId(value){return typeof value==="string"&&LOCALES.some((l)=>l.id===value)}function lookup(catalog,key){let node=catalog;for(let part of key.split("."))if(node&&typeof node==="object"&&part in node)node=node[part];else return;return typeof node==="string"?node:void 0}function interpolate(template,params){if(!params)return template;return template.replace(/\{(\w+)\}/g,(whole,name)=>(name in params)?String(params[name]):whole)}function lookupKeys(catalog,group,key){return catalog.keys[group]?.[key]}var langState=createStateCell(DEFAULT_LOCALE);function setLocaleLang(lang){if(CATALOGS[lang])langState.set(lang)}function currentLang(){return langState.get()}function intlLocale(){return LOCALES.find((locale)=>locale.id===langState.get())?.intl??"en-US"}function localeState(){return langState}var pluginNamespaces=new Set;function registerMessages(namespace,messages){let en31=CATALOGS.en,zh31=CATALOGS.zh;if(namespace in en31&&!pluginNamespaces.has(namespace))throw Error(`i18n namespace "${namespace}" belongs to the host`);if(pluginNamespaces.add(namespace),en31[namespace]=messages.en,messages.zh)zh31[namespace]=messages.zh;else delete zh31[namespace]}function t(key,params){let lang=langState.get(),resolved=lookup(CATALOGS[lang],key)??lookup(CATALOGS.en,key)??key;return interpolate(resolved,params)}function tKeys(group,key){let lang=langState.get();return lookupKeys(CATALOGS[lang],group,key)??lookupKeys(CATALOGS.en,group,key)??key}
|
|
12
|
+
\u53EF\u4EE5\u4EA4\u7ED9 agent\uFF1A\u5B83\u5148\u5217\u51FA\u6765\uFF0C\u4F60\u786E\u8BA4\u54EA\u4E9B\u5C31\u5220\u54EA\u4E9B\uFF0C\u5E76\u628A\u8BBE\u7F6E\u91CC\u8FD8\u7559\u7740\u7684\u65E7\u7248 Rove worktree hook \u4E00\u8D77\u6E05\u6389\u3002`,legacyAdoptMore:"\u2026\u2026\u8FD8\u6709 {count} \u4E2A",legacyAdoptClean:"\u4EA4\u7ED9 agent",legacyAdoptLater:"\u4EE5\u540E\u518D\u8BF4",legacyAdoptNever:"\u4E0D\u518D\u63D0\u793A",legacyAdoptSessionTitle:"\u79FB\u9664\u6B8B\u7559\u4F1A\u8BDD",legacyAdoptPrompt:"\u65E7\u7248 Rove \u4F1A\u5728 Rove \u4E4B\u5916\u521B\u5EFA git worktree \u65F6\u81EA\u52A8\u5F80\u4FA7\u680F\u52A0\u4F1A\u8BDD\u3002\u4E0B\u9762\u8FD9\u4E9B\u770B\u8D77\u6765\u662F\u5F53\u65F6\u7559\u4E0B\u7684\uFF1A\n\n{list}\n\n\u5148\u628A\u8FD9\u4EFD\u6E05\u5355\u7ED9\u6211\u770B\uFF0C\u95EE\u6211\u8981\u5220\u54EA\u4E9B\uFF0C\u7136\u540E\u7B49\u6211\u56DE\u7B54\u3002\u5BF9\u6211\u786E\u8BA4\u7684\u6BCF\u4E00\u4E2A\uFF0C\u5148\u8FD0\u884C `git -C <path> status --short`\uFF1B\u6709\u672A\u63D0\u4EA4\u7684\u6539\u52A8\u5C31\u544A\u8BC9\u6211\u5E76\u518D\u95EE\u4E00\u6B21\uFF0C\u6CA1\u6709\u5C31\u8FD0\u884C `rove api delete --task-id <id> --wait`\u3002\u6211\u6CA1\u786E\u8BA4\u7684\u4E00\u4E2A\u90FD\u4E0D\u8981\u5220\uFF0C\u4E5F\u4E0D\u8981\u52A0 --force\u3002\n\n\u7136\u540E\u627E\u4E00\u4E0B\u90A3\u4E2A\u65E7\u7248\u672C\u88C5\u7684 hook\u3002\u68C0\u67E5\u6211\u7684\u5F15\u64CE\u8BBE\u7F6E\u6587\u4EF6\uFF0C\u5305\u62EC\u5168\u5C40\u7684\u548C\u4E0A\u9762\u6BCF\u4E2A\u4ED3\u5E93\u91CC\u7684\uFF0C\u627E\u547D\u4EE4\u91CC\u8FD0\u884C `rove hook worktree-created` \u7684 hook\u3002\u628A\u627E\u5230\u7684\u6BCF\u4E00\u6761\u8FDE\u540C\u6240\u5728\u6587\u4EF6\u7ED9\u6211\u770B\uFF0C\u6211\u786E\u8BA4\u540E\u518D\u5220\u3002\u5176\u4ED6 hook \u4E00\u5F8B\u4E0D\u52A8\u3002",legacyAdoptFailed:"\u6E05\u7406\u4F1A\u8BDD\u6CA1\u80FD\u542F\u52A8\uFF1A{message}"};var en22={open:"Open",collapseChildren:"Collapse children",expandChildren:"Expand children",newChat:"New conversation",newShell:"New shell",continueEngine:"Continue in another engine\u2026",newScratchChat:"New conversation (no folder)",newTask:"New task",newTaskFromBranch:"New task from this branch",forgetProject:"Remove project",fieldNotes:"Field notes",rename:"Rename",pin:"Pin",unpin:"Unpin",reorder:"Reorder row",moveToTop:"Move to top",moveProjectUp:"Move up",moveProjectDown:"Move down",runAgain:"Run again",setStatus:"Set status",moveToProject:"Move to project\u2026",copy:"Copy",more:"More",copyId:"Copy task ID",copyBranch:"Copy branch name",copyPath:"Copy path",openEditor:"Open in editor",renameBranch:"Rename branch",changeEngine:"Change engine",fixChecks:"Fix failing checks",rerunChecks:"Re-run failed checks",syncBase:"Sync with base",resolveConflicts:"Resolve conflicts",land:"Land into base branch",muteNotifications:"Mute notifications",unmuteNotifications:"Unmute notifications",archive:"Archive",unarchive:"Unarchive",delete:"Remove session"},zh22={open:"\u6253\u5F00",collapseChildren:"\u6298\u53E0\u5B50\u4EFB\u52A1",expandChildren:"\u5C55\u5F00\u5B50\u4EFB\u52A1",newChat:"\u65B0\u5EFA\u4F1A\u8BDD",newShell:"\u65B0\u5EFA\u7EC8\u7AEF",continueEngine:"\u6362\u4E2A\u5F15\u64CE\u7EE7\u7EED\u2026",newScratchChat:"\u65B0\u5EFA\u4F1A\u8BDD\uFF08\u65E0\u6587\u4EF6\u5939\uFF09",newTask:"\u65B0\u5EFA\u4EFB\u52A1",newTaskFromBranch:"\u57FA\u4E8E\u6B64\u5206\u652F\u65B0\u5EFA\u4EFB\u52A1",forgetProject:"\u79FB\u9664\u9879\u76EE",fieldNotes:"\u73B0\u573A\u7B14\u8BB0",rename:"\u91CD\u547D\u540D",pin:"\u7F6E\u9876",unpin:"\u53D6\u6D88\u7F6E\u9876",reorder:"\u91CD\u65B0\u6392\u5E8F",moveToTop:"\u79FB\u5230\u9876\u90E8",moveProjectUp:"\u4E0A\u79FB",moveProjectDown:"\u4E0B\u79FB",runAgain:"\u91CD\u65B0\u8FD0\u884C",setStatus:"\u8BBE\u7F6E\u72B6\u6001",moveToProject:"\u79FB\u5230\u5176\u4ED6\u9879\u76EE\u2026",copy:"\u590D\u5236",more:"\u66F4\u591A",copyId:"\u590D\u5236\u4EFB\u52A1 ID",copyBranch:"\u590D\u5236\u5206\u652F\u540D",copyPath:"\u590D\u5236\u8DEF\u5F84",openEditor:"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00",renameBranch:"\u91CD\u547D\u540D\u5206\u652F",changeEngine:"\u5207\u6362\u5F15\u64CE",fixChecks:"\u4FEE\u590D\u5931\u8D25\u7684\u68C0\u67E5",rerunChecks:"\u91CD\u65B0\u8FD0\u884C\u5931\u8D25\u7684\u68C0\u67E5",syncBase:"\u540C\u6B65\u57FA\u7840\u5206\u652F",resolveConflicts:"\u8BA9 agent \u89E3\u51B3\u51B2\u7A81",land:"\u5408\u5165\u57FA\u7840\u5206\u652F",muteNotifications:"\u9759\u97F3\u901A\u77E5",unmuteNotifications:"\u53D6\u6D88\u9759\u97F3\u901A\u77E5",archive:"\u5F52\u6863",unarchive:"\u53D6\u6D88\u5F52\u6863",delete:"\u79FB\u9664\u4F1A\u8BDD"};var en23={noDaemonWorktree:"No daemon running \u2014 can't create the worktree. Start it with `rove daemon restart`.",noEditor:"No editor found \u2014 set ROVE_OPEN_EDITOR (e.g. 'code', 'cursor', 'nvim')",openWorktreeFailed:"Couldn't open worktree with {label}",worktreeErrorDeleting:"This task is being deleted \u2014 it can't be opened",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}",noDiskSpace:"The disk is full, so the checkout could not be created. Free some space, then try again.",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}",worktreeGoneTitle:'Worktree for "{title}" is gone',worktreeGoneBody:"Closed {count} tab(s). The branch {branch} is still there \u2014 reopen the task to re-create its worktree.",checksPassingTitle:'Checks passed for "{title}"',checksFailingTitle:'Checks failed for "{title}"',checksResolvedBody:"PR {pr} on {branch}",copiedId:"Copied task ID {text}",copiedTab:"Copied tab address {text}",copiedSession:"Copied session ID {text}",copiedBranch:"Copied branch {text}",copiedPath:"Copied path {text}",copyFailed:"Couldn't reach a clipboard \u2014 no clipboard command on PATH, and this terminal refused OSC 52.",forgetProjectFailed:"Couldn't remove the project: {error}",deleteFailed:`Couldn't delete "{title}": {error}`,createFailed:"Couldn't create the task: {error}",engineStartFailed:"Task created; engine did not start",engineStartRetry:"{error}. Press \u23CE on the task to retry.",forkFailed:"Couldn't fork the task: {error}",forkLeftBehind:"Started from the last commit \u2014 uncommitted work stays in the original task ({reason})",childFailed:"Couldn't start the new conversation: {error}",renameFailed:"Couldn't rename the task: {error}",renameBranchFailed:"Couldn't rename the branch: {error}",switchEngineFailed:"Couldn't switch the engine: {error}",setStatusFailed:"Couldn't set the status: {error}",pinFailed:"Couldn't change the pin: {error}",moveFailed:"Couldn't move the task: {error}",moveToProjectFailed:"Couldn't move the task to that project: {error}",movedToProject:"Moved to {project}",issueChatFailed:"Couldn't start the issue chat: {error}",inboxMarkReadFailed:"Couldn't mark it read: {error}",inboxDismissFailed:"Couldn't dismiss it: {error}",engineSwitched:"Engine \u2192 {engine} (applies on reopen)",statusSet:"Status \u2192 {status}"},zh23={noDaemonWorktree:"\u5B88\u62A4\u8FDB\u7A0B\u672A\u8FD0\u884C\u2014\u2014\u65E0\u6CD5\u521B\u5EFA worktree\u3002\u8BF7\u8FD0\u884C `rove daemon restart` \u542F\u52A8\u5B83\u3002",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",worktreeErrorDeleting:"\u8BE5\u4EFB\u52A1\u6B63\u5728\u5220\u9664\u4E2D\u2014\u2014\u65E0\u6CD5\u6253\u5F00",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}",noDiskSpace:"\u78C1\u76D8\u7A7A\u95F4\u4E0D\u8DB3\uFF0C\u6CA1\u6CD5\u521B\u5EFA\u5DE5\u4F5C\u76EE\u5F55\u3002\u6E05\u7406\u51FA\u4E00\u4E9B\u7A7A\u95F4\u540E\u518D\u91CD\u8BD5\u3002",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}",worktreeGoneTitle:'"{title}" \u7684 worktree \u5DF2\u6D88\u5931',worktreeGoneBody:"\u5DF2\u5173\u95ED {count} \u4E2A\u6807\u7B7E\u9875\u3002\u5206\u652F {branch} \u4ECD\u5728\u2014\u2014\u91CD\u65B0\u6253\u5F00\u8BE5\u4EFB\u52A1\u4F1A\u91CD\u5EFA worktree\u3002",checksPassingTitle:"\u300C{title}\u300D\u7684 PR \u68C0\u67E5\u5DF2\u901A\u8FC7",checksFailingTitle:"\u300C{title}\u300D\u7684 PR \u68C0\u67E5\u5931\u8D25\u4E86",checksResolvedBody:"PR {pr}\uFF0C\u5206\u652F {branch}",copiedId:"\u5DF2\u590D\u5236\u4EFB\u52A1 ID {text}",copiedTab:"\u5DF2\u590D\u5236\u6807\u7B7E\u9875\u5730\u5740 {text}",copiedSession:"\u5DF2\u590D\u5236\u4F1A\u8BDD ID {text}",copiedBranch:"\u5DF2\u590D\u5236\u5206\u652F {text}",copiedPath:"\u5DF2\u590D\u5236\u8DEF\u5F84 {text}",copyFailed:"\u65E0\u6CD5\u8BBF\u95EE\u526A\u8D34\u677F\u2014\u2014PATH \u4E0A\u6CA1\u6709\u526A\u8D34\u677F\u547D\u4EE4\uFF0C\u8FD9\u4E2A\u7EC8\u7AEF\u4E5F\u62D2\u7EDD\u4E86 OSC 52\u3002",forgetProjectFailed:"\u79FB\u9664\u9879\u76EE\u5931\u8D25\uFF1A{error}",deleteFailed:"\u5220\u9664\u300C{title}\u300D\u5931\u8D25\uFF1A{error}",createFailed:"\u521B\u5EFA\u4EFB\u52A1\u5931\u8D25\uFF1A{error}",engineStartFailed:"\u4EFB\u52A1\u5DF2\u521B\u5EFA\uFF0C\u5F15\u64CE\u6CA1\u6709\u542F\u52A8",engineStartRetry:"{error}\u3002\u5728\u4EFB\u52A1\u4E0A\u6309 \u23CE \u91CD\u8BD5\u3002",forkFailed:"fork \u4EFB\u52A1\u5931\u8D25\uFF1A{error}",forkLeftBehind:"\u5DF2\u4ECE\u6700\u8FD1\u4E00\u6B21\u63D0\u4EA4\u5F00\u59CB\u2014\u2014\u672A\u63D0\u4EA4\u7684\u6539\u52A8\u7559\u5728\u539F\u4EFB\u52A1\u91CC\uFF08{reason}\uFF09",childFailed:"\u65E0\u6CD5\u5F00\u59CB\u65B0\u5BF9\u8BDD\uFF1A{error}",renameFailed:"\u91CD\u547D\u540D\u4EFB\u52A1\u5931\u8D25\uFF1A{error}",renameBranchFailed:"\u91CD\u547D\u540D\u5206\u652F\u5931\u8D25\uFF1A{error}",switchEngineFailed:"\u5207\u6362\u5F15\u64CE\u5931\u8D25\uFF1A{error}",setStatusFailed:"\u8BBE\u7F6E\u72B6\u6001\u5931\u8D25\uFF1A{error}",pinFailed:"\u4FEE\u6539\u7F6E\u9876\u72B6\u6001\u5931\u8D25\uFF1A{error}",moveFailed:"\u79FB\u52A8\u4EFB\u52A1\u5931\u8D25\uFF1A{error}",moveToProjectFailed:"\u79FB\u5230\u8BE5\u9879\u76EE\u5931\u8D25\uFF1A{error}",movedToProject:"\u5DF2\u79FB\u5230 {project}",issueChatFailed:"\u542F\u52A8\u8BAE\u9898\u4F1A\u8BDD\u5931\u8D25\uFF1A{error}",inboxMarkReadFailed:"\u6807\u8BB0\u4E3A\u5DF2\u8BFB\u5931\u8D25\uFF1A{error}",inboxDismissFailed:"\u5FFD\u7565\u5931\u8D25\uFF1A{error}",engineSwitched:"\u5F15\u64CE \u2192 {engine}\uFF08\u91CD\u65B0\u6253\u5F00\u540E\u751F\u6548\uFF09",statusSet:"\u72B6\u6001 \u2192 {status}"};var en24={nav:{kanban:"Kanban",automations:"Routines",issues:"Issues",mods:"Mods"},header:{scratch:"Ungrouped",connector:{weixin:"WeChat",lark:"Lark"}},search:{placeholder:"fuzzy filter"},sort:{label:"sort: {mode}",hint:"Change the order (manual \u2192 newest \u2192 attention \u2192 name)",reorderSwitched:"Reorder needs manual order \u2014 switched",modes:{default:"manual",recent:"newest",attention:"attention",name:"name"}},menu:en22,status:{backlog:"Backlog",inProgress:"In progress",inReview:"In review",done:"Done",canceled:"Canceled",error:"Error"},setStatus:{title:"Set status",current:"current",footer:"\u2191\u2193 choose \xB7 enter set \xB7 esc cancel"},moveToProject:{title:"Move to project",empty:"No other project yet \u2014 add one first, or run `rove api update --project PATH`",footer:"\u2191\u2193 choose \xB7 enter move \xB7 esc cancel"},sync:{done:"Merged {base} into this worktree",alreadyCurrent:"Already up to date with {base}",conflict:"Merge conflict \u2014 resolve then commit: {files}",dirty:"Commit the worktree's changes first, then sync: {files}",failed:"Sync failed: {error}"},archive:{done:"Archived {title}",restored:"Restored {title}",busyTitle:"Archive while it's working?",busyBody:"An engine in {title} is still working or waiting on you. Archiving stops it.",busyConfirm:"Archive anyway",failed:"Couldn't archive: {error}",restoreFailed:"Couldn't restore: {error}"},rerun:{started:"Re-running failed checks",none:"No failed checks to re-run",external:"These checks didn't run on GitHub Actions; re-run them where they ran",refused:"Re-run refused: {detail}"},changeEngine:{title:"Change engine",current:"current",effortLabel:"EFFORT",noEffort:"engine default",footer:{engine:"\u2191\u2193 engine",effort:"\u2190\u2192 effort",model:"tab model",set:"enter set",cancel:"esc cancel"}},engineModel:{label:"MODEL",placeholder:"engine default",loading:"listing models\u2026"},tier:{swift:"swift",standard:"standard",deep:"deep",manual:"manual"},tierDesc:{swift:"small, well-specified edits \u2014 the fastest, cheapest setting",standard:"everyday feature work and bug fixes",deep:"hard problems: unclear root causes, large refactors, design decisions"},runAgain:{title:"Run again",source:"Brief from \u201C{title}\u201D",hint:"Runs this brief again in a new task, on its own branch and worktree.",confirm:"Run again",footer:"\u2191\u2193 scroll \xB7 \u2190\u2192 choose \xB7 enter run \xB7 esc cancel"},fieldNotes:{title:"Field notes",empty:"No field notes for this repo yet \u2014 agents file one with `rove api note`.",loading:"Loading\u2026",footer:"\u2191\u2193 scroll \xB7 esc close",footerDeletable:"\u2191\u2193 select \xB7 d delete \xB7 esc close",confirmDelete:{title:"Delete this field note?",body:"\u201C{text}\u201D stops being injected into new sessions on this repo. Nothing else changes."}},confirm:en21,renameBranch:{title:"Rename branch",fieldLabel:"branch"},moveChip:" move",recentJump:"Recent: {title}",archivedHit:"{title} \xB7 archived, enter unarchives",machine:{connecting:"connecting\u2026",offline:"offline",unsupported:"unsupported",mismatch:"protocol mismatch",filesElsewhere:"on {host}",filesHint:"{host} is unreachable right now; its files show here again when it reconnects.",terminalElsewhere:"This task runs on {host}, which is unreachable right now.",runsOn:"on {host}",noTabs:"No tabs on {host} yet \u2014 prefix t opens one there."},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:{working:"working",rateLimited:"rate limited",permissionNeeded:"needs permission",error:"error",dead:"engine exited"},group:{waitingOnYou:"needs you",landing:"ready to land",readyForReview:"needs review",working:"working"},subtitle:{noTracking:"no activity tracking",materializing:"materializing",deleting:"deleting",deleteFailed:"delete failed"},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:en23},zh24={nav:{kanban:"\u770B\u677F",automations:"\u4F8B\u884C\u4EFB\u52A1",issues:"\u8BAE\u9898",mods:"Mods"},header:{scratch:"\u672A\u5206\u7EC4",connector:{weixin:"\u5FAE\u4FE1",lark:"\u98DE\u4E66"}},search:{placeholder:"\u6A21\u7CCA\u641C\u7D22"},sort:{label:"\u6392\u5E8F\uFF1A{mode}",hint:"\u5207\u6362\u6392\u5E8F\uFF08\u624B\u52A8 \u2192 \u6700\u65B0 \u2192 \u5173\u6CE8 \u2192 \u540D\u79F0\uFF09",reorderSwitched:"\u8C03\u6574\u987A\u5E8F\u9700\u624B\u52A8\u6392\u5E8F\uFF0C\u5DF2\u5207\u6362",modes:{default:"\u624B\u52A8",recent:"\u6700\u65B0",attention:"\u5173\u6CE8",name:"\u540D\u79F0"}},menu:zh22,status:{backlog:"\u5F85\u529E",inProgress:"\u8FDB\u884C\u4E2D",inReview:"\u5F85\u8BC4\u5BA1",done:"\u5DF2\u5B8C\u6210",canceled:"\u5DF2\u53D6\u6D88",error:"\u51FA\u9519"},setStatus:{title:"\u8BBE\u7F6E\u72B6\u6001",current:"\u5F53\u524D",footer:"\u2191\u2193 \u9009\u62E9 \xB7 enter \u8BBE\u7F6E \xB7 esc \u53D6\u6D88"},moveToProject:{title:"\u79FB\u5230\u5176\u4ED6\u9879\u76EE",empty:"\u8FD8\u6CA1\u6709\u5176\u4ED6\u9879\u76EE\u2014\u2014\u5148\u6DFB\u52A0\u4E00\u4E2A\uFF0C\u6216\u8FD0\u884C `rove api update --project PATH`",footer:"\u2191\u2193 \u9009\u62E9 \xB7 enter \u79FB\u52A8 \xB7 esc \u53D6\u6D88"},sync:{done:"\u5DF2\u628A {base} \u5408\u5E76\u8FDB\u8BE5\u5DE5\u4F5C\u6811",alreadyCurrent:"\u5DF2\u7ECF\u548C {base} \u540C\u6B65",conflict:"\u5408\u5E76\u51B2\u7A81\u2014\u2014\u89E3\u51B3\u540E\u63D0\u4EA4\uFF1A{files}",dirty:"\u8BF7\u5148\u63D0\u4EA4\u5DE5\u4F5C\u6811\u91CC\u7684\u6539\u52A8\uFF0C\u518D\u540C\u6B65\uFF1A{files}",failed:"\u540C\u6B65\u5931\u8D25\uFF1A{error}"},archive:{done:"\u5DF2\u5F52\u6863 {title}",restored:"\u5DF2\u6062\u590D {title}",busyTitle:"\u5B83\u8FD8\u5728\u5DE5\u4F5C\uFF0C\u4ECD\u8981\u5F52\u6863\uFF1F",busyBody:"{title} \u91CC\u6709\u5F15\u64CE\u4ECD\u5728\u5DE5\u4F5C\u6216\u5728\u7B49\u4F60\u3002\u5F52\u6863\u4F1A\u628A\u5B83\u505C\u6389\u3002",busyConfirm:"\u4ECD\u8981\u5F52\u6863",failed:"\u5F52\u6863\u5931\u8D25\uFF1A{error}",restoreFailed:"\u6062\u590D\u5931\u8D25\uFF1A{error}"},rerun:{started:"\u6B63\u5728\u91CD\u65B0\u8FD0\u884C\u5931\u8D25\u7684\u68C0\u67E5",none:"\u6CA1\u6709\u53EF\u91CD\u65B0\u8FD0\u884C\u7684\u5931\u8D25\u68C0\u67E5",external:"\u8FD9\u4E9B\u68C0\u67E5\u4E0D\u662F\u5728 GitHub Actions \u4E0A\u8FD0\u884C\u7684\uFF0C\u8BF7\u5230\u5B83\u4EEC\u8FD0\u884C\u7684\u5730\u65B9\u91CD\u65B0\u8FD0\u884C",refused:"\u65E0\u6CD5\u91CD\u65B0\u8FD0\u884C\uFF1A{detail}"},changeEngine:{title:"\u5207\u6362\u5F15\u64CE",current:"\u5F53\u524D",effortLabel:"\u63A8\u7406\u5F3A\u5EA6",noEffort:"\u5F15\u64CE\u9ED8\u8BA4",footer:{engine:"\u2191\u2193 \u5F15\u64CE",effort:"\u2190\u2192 \u5F3A\u5EA6",model:"tab \u6A21\u578B",set:"enter \u8BBE\u7F6E",cancel:"esc \u53D6\u6D88"}},engineModel:{label:"\u6A21\u578B",placeholder:"\u5F15\u64CE\u9ED8\u8BA4",loading:"\u6B63\u5728\u5217\u51FA\u6A21\u578B\u2026"},tier:{swift:"\u8F7B\u5FEB",standard:"\u6807\u51C6",deep:"\u6DF1\u5165",manual:"\u624B\u52A8"},tierDesc:{swift:"\u5C0F\u800C\u660E\u786E\u7684\u6539\u52A8\u2014\u2014\u6700\u5FEB\u3001\u6700\u7701\u7684\u4E00\u6863",standard:"\u65E5\u5E38\u7684\u529F\u80FD\u5F00\u53D1\u548C\u4FEE bug",deep:"\u96BE\u9898\uFF1A\u6839\u56E0\u4E0D\u660E\u3001\u5927\u91CD\u6784\u3001\u8BBE\u8BA1\u51B3\u7B56"},runAgain:{title:"\u91CD\u65B0\u8FD0\u884C",source:"\u6765\u81EA\u4EFB\u52A1\u300C{title}\u300D\u7684\u6307\u4EE4",hint:"\u5728\u65B0\u4EFB\u52A1\u91CC\u91CD\u65B0\u6267\u884C\u8FD9\u6BB5\u6307\u4EE4\uFF0C\u65B0\u4EFB\u52A1\u6709\u81EA\u5DF1\u7684\u5206\u652F\u548C\u5DE5\u4F5C\u6811\u3002",confirm:"\u91CD\u65B0\u8FD0\u884C",footer:"\u2191\u2193 \u6EDA\u52A8 \xB7 \u2190\u2192 \u9009\u62E9 \xB7 enter \u8FD0\u884C \xB7 esc \u53D6\u6D88"},confirm:zh21,renameBranch:{title:"\u91CD\u547D\u540D\u5206\u652F",fieldLabel:"\u5206\u652F"},fieldNotes:{title:"\u73B0\u573A\u7B14\u8BB0",empty:"\u8BE5\u4ED3\u5E93\u6682\u65E0\u73B0\u573A\u7B14\u8BB0\u2014\u2014agent \u53EF\u7528 `rove api note` \u8BB0\u5F55\u3002",loading:"\u52A0\u8F7D\u4E2D\u2026",footer:"\u2191\u2193 \u6EDA\u52A8 \xB7 esc \u5173\u95ED",footerDeletable:"\u2191\u2193 \u9009\u62E9 \xB7 d \u5220\u9664 \xB7 esc \u5173\u95ED",confirmDelete:{title:"\u5220\u9664\u8FD9\u6761\u73B0\u573A\u7B14\u8BB0?",body:"\u300C{text}\u300D\u5C06\u4E0D\u518D\u6CE8\u5165\u8BE5\u4ED3\u5E93\u7684\u65B0\u4F1A\u8BDD\u3002\u5176\u4ED6\u5185\u5BB9\u4E0D\u53D7\u5F71\u54CD\u3002"}},moveChip:" \u79FB\u52A8",recentJump:"\u6700\u8FD1:{title}",archivedHit:"{title} \xB7 \u5DF2\u5F52\u6863\uFF0C\u56DE\u8F66\u6062\u590D",machine:{connecting:"\u8FDE\u63A5\u4E2D\u2026",offline:"\u79BB\u7EBF",unsupported:"\u4E0D\u652F\u6301",mismatch:"\u534F\u8BAE\u4E0D\u517C\u5BB9",filesElsewhere:"\u5728 {host} \u4E0A",filesHint:"{host} \u6682\u65F6\u8FDE\u4E0D\u4E0A\uFF1B\u91CD\u65B0\u8FDE\u4E0A\u540E\u8FD9\u91CC\u4F1A\u518D\u663E\u793A\u5B83\u7684\u6587\u4EF6\u3002",terminalElsewhere:"\u8FD9\u4E2A\u4EFB\u52A1\u8DD1\u5728 {host} \u4E0A\uFF0C\u6682\u65F6\u8FDE\u4E0D\u4E0A\u3002",runsOn:"\u5728 {host} \u4E0A",noTabs:"{host} \u4E0A\u8FD8\u6CA1\u6709 tab\u2014\u2014\u6309 prefix t \u5728\u90A3\u91CC\u65B0\u5F00\u4E00\u4E2A\u3002"},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:{working:"\u8FD0\u884C\u4E2D",rateLimited:"\u8BF7\u6C42\u53D7\u9650",permissionNeeded:"\u7B49\u5F85\u6388\u6743",error:"\u9519\u8BEF",dead:"\u5F15\u64CE\u5DF2\u9000\u51FA"},group:{waitingOnYou:"\u7B49\u4F60\u5904\u7406",landing:"\u53EF\u4EE5\u5408\u4E86",readyForReview:"\u5F85\u4F60\u9A8C\u6536",working:"\u8FD0\u884C\u4E2D"},subtitle:{noTracking:"\u4E0D\u8DDF\u8E2A\u6D3B\u52A8",materializing:"\u6B63\u5728\u521B\u5EFA worktree",deleting:"\u6B63\u5728\u5220\u9664",deleteFailed:"\u5220\u9664\u5931\u8D25"},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:zh23};var en25={noTask:"(no task \u2014 press n to create)",exited:"process exited \u2014 F5 restarts it",engineExit:{title:"Engine exited",titleCode:"Engine exited (code {code})",retry:"Retry",settings:"Settings \u2192 Engines",another:"Another engine",continueIn:"Continue in another engine"},usageLimit:{title:"Usage limit reached",dismiss:"Dismiss"},restoring:"restoring session\u2026",recovery:{live:"Live process reattached",relaunched:"Command relaunched in a new process. Any restored output is historical; check the engine to resume or continue your conversation.",restored:"Historical screen restored; previous process ended. Restart and check the engine before continuing."},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",engine:"ENGINE",destLabel:"DESTINATION",destTab:"child task, same directory",destFork:"fork a child task (new worktree)",destScratch:"new scratch task ($HOME)",ctxLabel:"CONTEXT",ctxFresh:"fresh conversation",ctxContinue:"continue this conversation"},cannotCloseLast:"Cannot close the only tab",tabGone:"That tab is no longer there",closeOthersTitle:"Close the other tabs?",closeOthersBody:"Closing {count} \xB7 their sessions end, this tab stays open.",closeOthersConfirm:"close tabs",closeOthersCancel:"cancel",menu:{rename:"Rename tab",copyAddress:"Copy tab address",copySessionId:"Copy session ID",continueEngine:"Continue in another engine\u2026",closeOthers:"Close other tabs",close:"Close tab"},nothingToFork:"No conversation in this tab to fork yet",noSessionYet:"No conversation in this tab yet",noSessionYetHint:"Send the engine a prompt; its session ID exists once the conversation starts.",noTranscriptToHandOff:"{engine} keeps no readable transcript to hand over"},split:{renameTitle:"Rename split",renameField:"SPLIT NAME"},scrolledBack:"\u2191 scrolled {lines}L",scrollFirst:"[first]",scrollLatest:"[latest]",unavailable:{shellMissing:"terminal unavailable \u2014 the shell named by $SHELL isn't on this machine. Point $SHELL at one that exists, or unset it to fall back to the system default.",spawnFailed:"terminal unavailable \u2014 the shell exited immediately. Its error is in ~/.rove/pty.log.",retry:"F5 tries again"},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."}},zh25={recovery:{live:"\u5DF2\u91CD\u65B0\u8FDE\u63A5\u4ECD\u5728\u8FD0\u884C\u7684\u8FDB\u7A0B",relaunched:"\u547D\u4EE4\u5DF2\u5728\u65B0\u8FDB\u7A0B\u4E2D\u91CD\u542F\u3002\u5982\u6709\u6062\u590D\u7684\u8F93\u51FA\uFF0C\u5B83\u5C5E\u4E8E\u5386\u53F2\u8BB0\u5F55\uFF1B\u8BF7\u5728\u5F15\u64CE\u5185\u786E\u8BA4\u4F1A\u8BDD\u6062\u590D\u6216\u7EE7\u7EED\u64CD\u4F5C\u3002",restored:"\u5DF2\u6062\u590D\u5386\u53F2\u753B\u9762\uFF1B\u539F\u8FDB\u7A0B\u5DF2\u7ED3\u675F\u3002\u8BF7\u91CD\u542F\u5E76\u786E\u8BA4\u5F15\u64CE\u72B6\u6001\u540E\u7EE7\u7EED\u3002"},noTask:"\uFF08\u65E0\u4EFB\u52A1 \u2014\u2014 \u6309 n \u521B\u5EFA\uFF09",exited:"\u8FDB\u7A0B\u5DF2\u9000\u51FA \u2014\u2014 \u6309 F5 \u91CD\u542F",engineExit:{title:"\u5F15\u64CE\u5DF2\u9000\u51FA",titleCode:"\u5F15\u64CE\u5DF2\u9000\u51FA\uFF08\u9000\u51FA\u7801 {code}\uFF09",retry:"\u91CD\u8BD5",settings:"\u8BBE\u7F6E \u2192 \u5F15\u64CE",another:"\u6362\u4E2A\u5F15\u64CE",continueIn:"\u6362\u4E2A\u5F15\u64CE\u7EE7\u7EED"},usageLimit:{title:"\u5DF2\u8FBE\u5230\u7528\u91CF\u4E0A\u9650",dismiss:"\u5FFD\u7565"},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",engine:"\u5F15\u64CE",destLabel:"\u843D\u70B9",destTab:"\u5B50\u4EFB\u52A1\uFF0C\u540C\u4E00\u76EE\u5F55",destFork:"fork \u5B50\u4EFB\u52A1\uFF08\u65B0 worktree\uFF09",destScratch:"\u65B0\u4E34\u65F6\u4EFB\u52A1\uFF08$HOME\uFF09",ctxLabel:"\u4E0A\u4E0B\u6587",ctxFresh:"\u5168\u65B0\u5BF9\u8BDD",ctxContinue:"\u63A5\u7740\u5F53\u524D\u5BF9\u8BDD"},cannotCloseLast:"\u65E0\u6CD5\u5173\u95ED\u552F\u4E00\u7684\u6807\u7B7E\u9875",tabGone:"\u8FD9\u4E2A\u6807\u7B7E\u9875\u5DF2\u7ECF\u4E0D\u5728\u4E86",closeOthersTitle:"\u5173\u95ED\u5176\u4ED6\u6807\u7B7E\u9875\uFF1F",closeOthersBody:"\u5C06\u5173\u95ED {count} \u4E2A\uFF0C\u5B83\u4EEC\u7684\u4F1A\u8BDD\u4F1A\u7ED3\u675F\uFF0C\u53EA\u4FDD\u7559\u8FD9\u4E2A\u6807\u7B7E\u9875\u3002",closeOthersConfirm:"\u5173\u95ED\u6807\u7B7E\u9875",closeOthersCancel:"\u53D6\u6D88",menu:{rename:"\u91CD\u547D\u540D\u6807\u7B7E\u9875",copyAddress:"\u590D\u5236\u6807\u7B7E\u9875\u5730\u5740",copySessionId:"\u590D\u5236\u4F1A\u8BDD ID",continueEngine:"\u6362\u4E2A\u5F15\u64CE\u7EE7\u7EED\u2026",closeOthers:"\u5173\u95ED\u5176\u4ED6\u6807\u7B7E\u9875",close:"\u5173\u95ED\u6807\u7B7E\u9875"},nothingToFork:"\u8FD9\u4E2A\u6807\u7B7E\u9875\u8FD8\u6CA1\u6709\u53EF\u6D3E\u751F\u7684\u5BF9\u8BDD",noSessionYet:"\u8FD9\u4E2A\u6807\u7B7E\u9875\u8FD8\u6CA1\u6709\u5BF9\u8BDD",noSessionYetHint:"\u5148\u7ED9\u5F15\u64CE\u53D1\u4E00\u6761\u6D88\u606F\uFF0C\u5BF9\u8BDD\u5F00\u59CB\u540E\u624D\u6709\u4F1A\u8BDD ID\u3002",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",scrollFirst:"[\u6700\u65E9]",scrollLatest:"[\u6700\u65B0]",unavailable:{shellMissing:"\u7EC8\u7AEF\u4E0D\u53EF\u7528 \u2014\u2014 $SHELL \u6307\u5411\u7684 shell \u5728\u8FD9\u53F0\u673A\u5668\u4E0A\u4E0D\u5B58\u5728\u3002\u8BF7\u628A $SHELL \u6307\u5411\u4E00\u4E2A\u771F\u5B9E\u5B58\u5728\u7684 shell\uFF0C\u6216\u53D6\u6D88\u8BBE\u7F6E\u4EE5\u56DE\u9000\u5230\u7CFB\u7EDF\u9ED8\u8BA4\u3002",spawnFailed:"\u7EC8\u7AEF\u4E0D\u53EF\u7528 \u2014\u2014 shell \u542F\u52A8\u540E\u7ACB\u5373\u9000\u51FA\u3002\u5177\u4F53\u9519\u8BEF\u89C1 ~/.rove/pty.log\u3002",retry:"\u6309 F5 \u91CD\u8BD5"},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 en26={pageTitle:"ROVE UPDATE",closeHint:"q / esc close",chip:"\u2191 {version}",current:"current",available:"v{version} available",latest:"latest",latestUnknown:"unknown \u2014 could not reach the registry",registryRetry:"Check your connection, then close and reopen Update to retry.",upToDate:"No newer release \u2014 nothing to install.",releaseUrlUnavailable:"release URL unavailable; visit github.com/Sma1lboy/rove/releases",statusReleaseOpened:"Opened release page in your browser.",statusReleaseError:"Could not open release URL. Visit github.com/Sma1lboy/rove/releases in your browser.",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}. Check the output above, then run `rove update` to retry.",pressAnyKey:"Press any key to close this update window.",webRunning:"Running {command} \u2026",webInstalled:"Installed. Restart Rove to run v{latest}; this page reloads itself when it is back.",webRestart:"Restart Rove",webRestarting:"Restarting Rove\u2026 this page reloads itself when it is back.",webStartFailed:"Could not start the updater: {error}",actions:{updateNow:"Update now",openRelease:"Open release",close:"Close",closeDetail:"return to the workspace"},whatsNew:{title:"WHAT'S NEW \uD83C\uDF89",closeHint:"q / esc continue",upgraded:"You're now on Rove v{to}, up from v{from}. Here's what changed.",notesUnavailable:"Could not load the release notes \u2014 check your connection, or read them on GitHub.",sourceHint:"release notes: {url}"},skew:{title:"\u26A0 DAEMON OUT OF DATE",olderBuild:"an older build",hint:"daemon is {daemon} \u2014 you launched v{clientVersion}. Press {keys} to refresh Rove onto the installed build",hintNoKey:"daemon is {daemon} \u2014 you launched v{clientVersion}. Run `rove daemon restart`, then relaunch Rove"},refresh:{confirmTitle:"Refresh Rove?",confirmBody:"Rove restarts the daemon and relaunches itself on the installed build. Running engine sessions live in the PTY host and keep going; open tabs come back.",confirmLabel:"Refresh",relaunching:"rove: restarting on the installed build...",alreadyCurrent:"Rove and the daemon already run the same build \u2014 nothing to refresh.",installGone:"This Rove was installed from a directory that no longer exists, so it cannot relaunch itself. Reinstall with `npm install -g @sma1lboy/rove`."},staleInstall:{title:"\u2715 ROVE INSTALL IS GONE",hint:"this Rove is running from an install that no longer exists on disk, so it cannot start a daemon. Reinstall (`npm install -g @sma1lboy/rove`) and relaunch Rove"},versions:{pageTitle:"ROVE VERSIONS",loading:"Loading releases...",unavailable:"Could not fetch releases. Check your connection or wait for the rate limit, then reopen this page.",tagCurrent:"current",tagLatest:"latest",tagBreaking:"breaking",breakingWarning:"\u26A0 installing this crosses breaking version(s) {versions}. Rove will refuse to start until you run `rove reset`, which stops the daemon, the PTY host, and every live session. Tasks and worktrees are kept.",footerHint:"j/k select \xB7 enter install \xB7 q close",closeHint:"q / esc close"}},zh26={pageTitle:"ROVE \u66F4\u65B0",closeHint:"q / esc \u5173\u95ED",chip:"\u2191 {version}",current:"\u5F53\u524D",available:"\u6709\u65B0\u7248\u672C v{version}",latest:"\u6700\u65B0",latestUnknown:"\u672A\u77E5 \u2014\u2014 \u65E0\u6CD5\u8FDE\u63A5\u5230 registry",registryRetry:"\u8BF7\u68C0\u67E5\u7F51\u7EDC\uFF0C\u7136\u540E\u5173\u95ED\u5E76\u91CD\u65B0\u6253\u5F00\u66F4\u65B0\u9875\u91CD\u8BD5\u3002",upToDate:"\u6CA1\u6709\u66F4\u65B0\u7684\u7248\u672C \u2014\u2014 \u65E0\u9700\u5B89\u88C5\u3002",releaseUrlUnavailable:"\u53D1\u5E03\u94FE\u63A5\u4E0D\u53EF\u7528\uFF1B\u8BF7\u8BBF\u95EE github.com/Sma1lboy/rove/releases",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\u8BF7\u5728\u6D4F\u89C8\u5668\u8BBF\u95EE github.com/Sma1lboy/rove/releases\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\u8BF7\u68C0\u67E5\u4E0A\u65B9\u8F93\u51FA\uFF0C\u518D\u8FD0\u884C `rove update` \u91CD\u8BD5\u3002",pressAnyKey:"\u6309\u4EFB\u610F\u952E\u5173\u95ED\u6B64\u66F4\u65B0\u7A97\u53E3\u3002",webRunning:"\u6B63\u5728\u8FD0\u884C {command} \u2026",webInstalled:"\u5DF2\u5B89\u88C5\u3002\u91CD\u542F Rove \u540E\u8FD0\u884C v{latest}\uFF1B\u6062\u590D\u540E\u9875\u9762\u4F1A\u81EA\u52A8\u5237\u65B0\u3002",webRestart:"\u91CD\u542F Rove",webRestarting:"\u6B63\u5728\u91CD\u542F Rove\u2026 \u6062\u590D\u540E\u9875\u9762\u4F1A\u81EA\u52A8\u5237\u65B0\u3002",webStartFailed:"\u65E0\u6CD5\u542F\u52A8\u66F4\u65B0\u7A0B\u5E8F\uFF1A{error}",actions:{updateNow:"\u7ACB\u5373\u66F4\u65B0",openRelease:"\u6253\u5F00\u53D1\u5E03\u9875",close:"\u5173\u95ED",closeDetail:"\u8FD4\u56DE\u5DE5\u4F5C\u533A"},whatsNew:{title:"\u66F4\u65B0\u5185\u5BB9 \uD83C\uDF89",closeHint:"q / esc \u7EE7\u7EED",upgraded:"Rove \u5DF2\u4ECE v{from} \u66F4\u65B0\u5230 v{to}\uFF0C\u672C\u6B21\u53D8\u66F4\u5982\u4E0B\u3002",notesUnavailable:"\u65E0\u6CD5\u52A0\u8F7D\u53D1\u5E03\u8BF4\u660E \u2014\u2014 \u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\uFF0C\u6216\u5230 GitHub \u4E0A\u67E5\u770B\u3002",sourceHint:"\u53D1\u5E03\u8BF4\u660E\uFF1A{url}"},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\u6309 {keys} \u53EF\u8BA9 Rove \u5237\u65B0\u5230\u5DF2\u5B89\u88C5\u7684\u7248\u672C",hintNoKey:"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"},refresh:{confirmTitle:"\u5237\u65B0 Rove\uFF1F",confirmBody:"Rove \u4F1A\u91CD\u542F daemon\uFF0C\u5E76\u4EE5\u5DF2\u5B89\u88C5\u7684\u7248\u672C\u91CD\u65B0\u542F\u52A8\u81EA\u8EAB\u3002\u6B63\u5728\u8FD0\u884C\u7684\u5F15\u64CE\u4F1A\u8BDD\u7531 PTY host \u6258\u7BA1\uFF0C\u4E0D\u4F1A\u4E2D\u65AD\uFF1B\u5DF2\u6253\u5F00\u7684\u6807\u7B7E\u9875\u4F1A\u6062\u590D\u3002",confirmLabel:"\u5237\u65B0",relaunching:"rove\uFF1A\u6B63\u5728\u4EE5\u5DF2\u5B89\u88C5\u7684\u7248\u672C\u91CD\u65B0\u542F\u52A8\u2026\u2026",alreadyCurrent:"Rove \u4E0E daemon \u5DF2\u7ECF\u662F\u540C\u4E00\u4E2A\u7248\u672C \u2014\u2014 \u65E0\u9700\u5237\u65B0\u3002",installGone:"\u5F53\u524D Rove \u7684\u5B89\u88C5\u76EE\u5F55\u5DF2\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u91CD\u65B0\u542F\u52A8\u81EA\u8EAB\u3002\u8BF7\u8FD0\u884C `npm install -g @sma1lboy/rove` \u91CD\u65B0\u5B89\u88C5\u3002"},staleInstall:{title:"\u2715 ROVE \u5B89\u88C5\u5DF2\u4E0D\u5B58\u5728",hint:"\u5F53\u524D Rove \u8FD0\u884C\u81EA\u4E00\u4EFD\u5DF2\u4ECE\u78C1\u76D8\u5220\u9664\u7684\u5B89\u88C5\uFF0C\u56E0\u6B64\u65E0\u6CD5\u542F\u52A8 daemon\u3002\u8BF7\u91CD\u65B0\u5B89\u88C5\uFF08`npm install -g @sma1lboy/rove`\uFF09\u5E76\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\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216\u7B49\u5F85\u9650\u6D41\u89E3\u9664\uFF0C\u7136\u540E\u91CD\u65B0\u6253\u5F00\u672C\u9875\u3002",tagCurrent:"\u5F53\u524D",tagLatest:"\u6700\u65B0",tagBreaking:"breaking",breakingWarning:"\u26A0 \u5B89\u88C5\u8BE5\u7248\u672C\u4F1A\u8DE8\u8FC7 breaking \u7248\u672C {versions}\u3002\u66F4\u65B0\u540E Rove \u4F1A\u62D2\u7EDD\u542F\u52A8\uFF0C\u76F4\u5230\u4F60\u8FD0\u884C `rove reset`\u2014\u2014\u5B83\u4F1A\u505C\u6389 daemon\u3001PTY host \u548C\u6240\u6709\u6D3B\u52A8\u4F1A\u8BDD\u3002\u4EFB\u52A1\u548C worktree \u4F1A\u4FDD\u7559\u3002",footerHint:"j/k \u9009\u62E9 \xB7 enter \u5B89\u88C5 \xB7 q \u5173\u95ED",closeHint:"q / esc \u5173\u95ED"}};var en27={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.",linkedChip:"\u2192 {title}",openingLinked:"Opening {title}\u2026",startFailed:"Couldn't start work on #{number}: {error}",errorHint:{noRemote:"Add a GitHub remote (`git remote add origin <url>`) and try again, or press q / esc to close.",ghMissing:"Install the `gh` CLI and authenticate, or press q / esc to close.",auth:"Run `gh auth login`, or press q / esc to close.",fallback:"{message} \xB7 press q / esc to close"}},zh27={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",linkedChip:"\u2192 {title}",openingLinked:"\u6B63\u5728\u6253\u5F00 {title}\u2026",startFailed:"\u5F00\u59CB\u5904\u7406 #{number} \u5931\u8D25\uFF1A{error}",errorHint:{noRemote:"\u6DFB\u52A0 GitHub remote\uFF08`git remote add origin <url>`\uFF09\u540E\u91CD\u8BD5\uFF0C\u6216\u6309 q / esc \u5173\u95ED\u3002",ghMissing:"\u5B89\u88C5 `gh` CLI \u5E76\u767B\u5F55\uFF0C\u6216\u6309 q / esc \u5173\u95ED\u3002",auth:"\u6267\u884C `gh auth login`\uFF0C\u6216\u6309 q / esc \u5173\u95ED\u3002",fallback:"{message} \xB7 \u6309 q / esc \u5173\u95ED"}};var en28={quit:{confirmTitle:"Quit Rove?",confirmBody:"The daemon and task sessions keep running. This closes only the native workspace.",confirmLabel:"Quit"},narrowBack:"Tasks",noPreviousTask:"No previous task to go back to",empty:{selectTask:"Select a task with a worktree",noSessions:"No sessions here \u2014 press \u23CE to start {engine}, or ctrl+e to pick another",noSessionsShell:"No sessions here \u2014 press \u23CE to start a shell, or ctrl+e to pick another",remoteUnsupported:"Hosted engine launch over SSH is not implemented \u2014 this task's worktree is on {host}"},welcome:{title:"Welcome to Rove",tagline:"All your coding agents in one place: when one runs out of quota, switch the task to another, and agents talk to each other directly.",worktreeExplain:"Managed tasks create isolated worktrees and branches. Directory and project tasks reuse existing files; tabs within a task share its directory.",stepNew:"creates your first task \u2014 pick a repo, a base branch, an engine",stepHelp:"shows every shortcut reachable from the current focus",stepPrefix:"opens the command menu",enginesFound:"\u2713 engines: {list}",enginesSignedOut:"\u2717 installed but not signed in: {list} \u2014 run one of them in a shell and log in",enginesMissing:"\u2717 no engine CLI found \u2014 install claude, codex, copilot, or kimi, then restart Rove",gitMissing:"\u2717 git not found on PATH \u2014 Rove needs git to create worktrees",doctorHint:"run `rove doctor` in a shell for the full diagnosis",docsHint:"docs: https://docs.rove.run"},attention:{none:"No available Inbox items"},inbox:{title:"INBOX",chip:"inbox {count}",empty:"No pending attention",openHint:"enter open",clearHint:"d ack",clearAllHint:"D ack all",more:"+{count} more",section:{attention:"ATTENTION",recent:"RECENT"},state:{done:"done",needsInput:"needs input",error:"error",rateLimited:"rate limited",running:"running",dead:"engine exited",restored:"restored after restart",routineFailed:"routine needs you",reportMissing:"report missing",decisionNeeded:"decision needed",gateAnswered:"answered \xB7 engine not running"},resumesAt:"resumes {time}"}},zh28={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"},narrowBack:"\u4EFB\u52A1",noPreviousTask:"\u6CA1\u6709\u53EF\u4EE5\u56DE\u53BB\u7684\u4E0A\u4E00\u4E2A\u4EFB\u52A1",empty:{selectTask:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u5E26 worktree \u7684\u4EFB\u52A1",noSessions:"\u8FD9\u91CC\u6CA1\u6709\u4F1A\u8BDD\u2014\u2014\u6309 \u23CE \u542F\u52A8 {engine}\uFF0C\u6216\u6309 ctrl+e \u53E6\u9009\u4E00\u4E2A",noSessionsShell:"\u8FD9\u91CC\u6CA1\u6709\u4F1A\u8BDD\u2014\u2014\u6309 \u23CE \u542F\u52A8 shell\uFF0C\u6216\u6309 ctrl+e \u53E6\u9009\u4E00\u4E2A",remoteUnsupported:"\u5C1A\u672A\u5B9E\u73B0\u901A\u8FC7 SSH \u542F\u52A8\u6258\u7BA1\u5F15\u64CE\u2014\u2014\u8BE5\u4EFB\u52A1\u7684 worktree \u5728 {host} \u4E0A"},welcome:{title:"\u6B22\u8FCE\u4F7F\u7528 Rove",tagline:"\u6240\u6709\u7F16\u7A0B agent \u90FD\u5728\u4E00\u4E2A\u5730\u65B9\uFF1A\u4E00\u4E2A\u989D\u5EA6\u7528\u5B8C\u4E86\uFF0C\u6362\u53E6\u4E00\u4E2A\u63A5\u7740\u5E72\uFF1Bagent \u4E4B\u95F4\u76F4\u63A5\u5BF9\u8BDD\uFF0C\u4E0D\u7528\u4F60\u4F20\u8BDD\u3002",worktreeExplain:"\u6258\u7BA1\u4EFB\u52A1\u521B\u5EFA\u72EC\u7ACB\u7684 worktree \u548C\u5206\u652F\u3002\u76EE\u5F55\u4E0E\u9879\u76EE\u4EFB\u52A1\u590D\u7528\u73B0\u6709\u6587\u4EF6\uFF1B\u540C\u4E00\u4EFB\u52A1\u5185\u7684\u6807\u7B7E\u9875\u5171\u4EAB\u76EE\u5F55\u3002",stepNew:"\u521B\u5EFA\u4F60\u7684\u7B2C\u4E00\u4E2A\u4EFB\u52A1\u2014\u2014\u9009\u4ED3\u5E93\u3001\u57FA\u7840\u5206\u652F\u548C\u5F15\u64CE",stepHelp:"\u67E5\u770B\u5F53\u524D\u7126\u70B9\u4E0B\u7684\u5168\u90E8\u5FEB\u6377\u952E",stepPrefix:"\u6253\u5F00\u547D\u4EE4\u83DC\u5355",enginesFound:"\u2713 \u5DF2\u68C0\u6D4B\u5230\u5F15\u64CE:{list}",enginesSignedOut:"\u2717 \u5DF2\u5B89\u88C5\u4F46\u672A\u767B\u5F55:{list}\u2014\u2014\u8BF7\u5728 shell \u91CC\u8FD0\u884C\u5176\u4E2D\u4E4B\u4E00\u5E76\u5B8C\u6210\u767B\u5F55",enginesMissing:"\u2717 \u672A\u627E\u5230\u5F15\u64CE CLI\u2014\u2014\u8BF7\u5B89\u88C5 claude\u3001codex\u3001copilot \u6216 kimi \u540E\u91CD\u542F Rove",gitMissing:"\u2717 PATH \u4E0A\u6CA1\u6709 git\u2014\u2014Rove \u9700\u8981 git \u6765\u521B\u5EFA worktree",doctorHint:"\u5728 shell \u91CC\u8FD0\u884C `rove doctor` \u67E5\u770B\u5B8C\u6574\u8BCA\u65AD",docsHint:"\u6587\u6863:https://docs.rove.run"},attention:{none:"\u6536\u4EF6\u7BB1\u4E2D\u6CA1\u6709\u53EF\u6253\u5F00\u7684\u9879\u76EE"},inbox:{title:"\u6536\u4EF6\u7BB1",chip:"\u6536\u4EF6\u7BB1 {count}",empty:"\u6682\u65E0\u5F85\u5904\u7406",openHint:"enter \u6253\u5F00",clearHint:"d \u5DF2\u9605",clearAllHint:"D \u5168\u90E8\u5DF2\u9605",more:"\u8FD8\u6709 {count} \u6761",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",dead:"\u5F15\u64CE\u5DF2\u9000\u51FA",restored:"\u91CD\u542F\u540E\u5DF2\u6062\u590D",routineFailed:"\u4F8B\u884C\u4EFB\u52A1\u9700\u8981\u5904\u7406",reportMissing:"\u672A\u56DE\u62A5",decisionNeeded:"\u7B49\u4F60\u51B3\u5B9A",gateAnswered:"\u5DF2\u56DE\u7B54 \xB7 \u5F15\u64CE\u672A\u8FD0\u884C"},resumesAt:"{time} \u6062\u590D"}};var en29={title:"Worktrees",loading:"Loading worktrees\u2026",noProjects:"No local projects known to Rove yet.",loadFailed:"Could not read the worktrees: {message}",noWorktrees:"No worktrees.",badge:{roveManaged:"rove",dirty:"dirty",dirtyUnknown:"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"},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, untracked, or gitignored work. Force delete removes the worktree, but the work is snapshotted first to a salvage ref \u2014 list them with `git for-each-ref refs/rove/salvage`. Force delete anyway?',forceReason:"Refused because: {reason}",failed:"Failed to delete worktree: {error}",residue:"Git deregistered the worktree, but couldn't delete {path} ({reason}). Rove is done with it \u2014 retrying won't help; delete the directory by hand if you want the space."},land:{button:"Land",confirmTitle:"Land branch?",confirmBody:'Merge "{branch}" into {landedOn} ({commits} commits), then remove this worktree? The branch is kept. Conflicts abort with a file list.',confirmBodyOne:'Merge "{branch}" into {landedOn} (1 commit), then remove this worktree? The branch is kept. 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 them, then land. Never `git stash` here: the stash stack lives in the repo's common dir and is shared by every linked worktree, so a stash can entangle other tasks' work.",failed:"Land failed: {error}",done:'Landed "{branch}" onto {landedOn} ({commit}).',worktreeKept:"Landed, but the worktree was kept: {reason}",worktreePathStale:"Landed and removed the worktree, but the task still points at it: {reason}",worktreeResidue:"Landed. Git deregistered the worktree, but couldn't delete {path} ({reason}) \u2014 delete the directory by hand if you want the space."},hint:{}},zh29={title:"\u5DE5\u4F5C\u6811",loading:"\u6B63\u5728\u52A0\u8F7D worktree\u2026",noProjects:"Rove \u8FD8\u6CA1\u6709\u5DF2\u77E5\u7684\u672C\u5730\u9879\u76EE\u3002",loadFailed:"\u8BFB\u4E0D\u5230 worktree \u5217\u8868\uFF1A{message}",noWorktrees:"\u6CA1\u6709 worktree\u3002",badge:{roveManaged:"rove",dirty:"\u6709\u6539\u52A8",dirtyUnknown:"\u6539\u52A8\u672A\u77E5",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"},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\u3001\u672A\u8DDF\u8E2A\u6216\u88AB gitignore \u7684\u6539\u52A8\u3002\u5F3A\u5236\u5220\u9664\u4F1A\u79FB\u9664 worktree\uFF0C\u4F46\u8FD9\u4E9B\u6539\u52A8\u4F1A\u5148\u88AB\u5FEB\u7167\u5230\u4E00\u4E2A salvage ref\u2014\u2014\u7528 `git for-each-ref refs/rove/salvage` \u53EF\u4EE5\u5217\u51FA\u5B83\u4EEC\u3002\u4ECD\u8981\u5F3A\u5236\u5220\u9664\u5417\uFF1F',forceReason:"\u62D2\u7EDD\u539F\u56E0\uFF1A{reason}",failed:"\u5220\u9664 worktree \u5931\u8D25\uFF1A{error}",residue:"Git \u5DF2\u6CE8\u9500\u8BE5 worktree\uFF0C\u4F46\u6CA1\u80FD\u5220\u6389 {path}\uFF08{reason}\uFF09\u3002Rove \u8FD9\u8FB9\u5DF2\u7ECF\u5904\u7406\u5B8C\u4E86\u2014\u2014\u91CD\u8BD5\u6CA1\u6709\u7528\uFF1B\u60F3\u8981\u56DE\u78C1\u76D8\u7A7A\u95F4\u8BF7\u624B\u52A8\u5220\u9664\u8BE5\u76EE\u5F55\u3002"},land:{button:"\u5408\u5165",confirmTitle:"\u5408\u5165\u5206\u652F\uFF1F",confirmBody:'\u628A "{branch}" \u5408\u5165 {landedOn}\uFF08{commits} \u4E2A\u63D0\u4EA4\uFF09\uFF0C\u7136\u540E\u79FB\u9664\u8FD9\u4E2A worktree\uFF1F\u5206\u652F\u4F1A\u4FDD\u7559\u3002\u51B2\u7A81\u4F1A\u4E2D\u6B62\u5E76\u7ED9\u51FA\u6587\u4EF6\u6E05\u5355\u3002',confirmBodyOne:'\u628A "{branch}" \u5408\u5165 {landedOn}\uFF081 \u4E2A\u63D0\u4EA4\uFF09\uFF0C\u7136\u540E\u79FB\u9664\u8FD9\u4E2A worktree\uFF1F\u5206\u652F\u4F1A\u4FDD\u7559\u3002\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\u518D\u5408\u5165\u3002\u7EDD\u4E0D\u8981\u5728\u8FD9\u91CC `git stash`\uFF1Astash \u6808\u5B58\u653E\u5728\u4ED3\u5E93\u7684 common dir \u4E2D\uFF0C\u8BE5\u4ED3\u5E93\u6240\u6709 linked worktree \u5171\u4EAB\uFF0C\u4E00\u6B21 stash \u53EF\u80FD\u7EA0\u7F20\u5176\u4ED6\u4EFB\u52A1\u7684\u5DE5\u4F5C\u3002",failed:"\u5408\u5165\u5931\u8D25\uFF1A{error}",done:'\u5DF2\u628A "{branch}" \u5408\u5165 {landedOn}\uFF08{commit}\uFF09\u3002',worktreeKept:"\u5DF2\u5408\u5165\uFF0C\u4F46 worktree \u4FDD\u7559\u4E86\uFF1A{reason}",worktreePathStale:"\u5DF2\u5408\u5165\u5E76\u79FB\u9664 worktree\uFF0C\u4F46\u4EFB\u52A1\u4ECD\u6307\u5411\u5B83\uFF1A{reason}",worktreeResidue:"\u5DF2\u5408\u5165\u3002Git \u5DF2\u6CE8\u9500\u8BE5 worktree\uFF0C\u4F46\u6CA1\u80FD\u5220\u6389 {path}\uFF08{reason}\uFF09\u2014\u2014\u60F3\u8981\u56DE\u78C1\u76D8\u7A7A\u95F4\u8BF7\u624B\u52A8\u5220\u9664\u8BE5\u76EE\u5F55\u3002"},hint:{}};var en30={settings:en20,tasks:en24,terminal:en25,files:en4,newTask:en11,onboarding:en12,ops:en13,update:en26,quickTask:en14,help:en6,hints:en7,common:en2,keys:en9,workspace:en28,worktrees:en29,kanban:en8,automations:en,workItems:en27,gates:en5,doctor:en3,mods:en10,search:en15},zh30={settings:zh20,tasks:zh24,terminal:zh25,files:zh4,newTask:zh11,onboarding:zh12,ops:zh13,update:zh26,quickTask:zh14,help:zh6,hints:zh7,common:zh2,keys:zh9,workspace:zh28,worktrees:zh29,kanban:zh8,automations:zh,workItems:zh27,gates:zh5,doctor:zh3,mods:zh10,search:zh15},LOCALES=[{id:"en",label:"English",intl:"en-US"},{id:"zh",label:"\u4E2D\u6587",intl:"zh-CN"}],CATALOGS={en:en30,zh:zh30},DEFAULT_LOCALE="en";function isLocaleId(value){return typeof value==="string"&&LOCALES.some((l)=>l.id===value)}function lookup(catalog,key){let node=catalog;for(let part of key.split("."))if(node&&typeof node==="object"&&part in node)node=node[part];else return;return typeof node==="string"?node:void 0}function interpolate(template,params){if(!params)return template;return template.replace(/\{(\w+)\}/g,(whole,name)=>(name in params)?String(params[name]):whole)}function lookupKeys(catalog,group,key){return catalog.keys[group]?.[key]}var langState=createStateCell(DEFAULT_LOCALE);function setLocaleLang(lang){if(CATALOGS[lang])langState.set(lang)}function currentLang(){return langState.get()}function intlLocale(){return LOCALES.find((locale)=>locale.id===langState.get())?.intl??"en-US"}function localeState(){return langState}var pluginNamespaces=new Set;function registerMessages(namespace,messages){let en31=CATALOGS.en,zh31=CATALOGS.zh;if(namespace in en31&&!pluginNamespaces.has(namespace))throw Error(`i18n namespace "${namespace}" belongs to the host`);if(pluginNamespaces.add(namespace),en31[namespace]=messages.en,messages.zh)zh31[namespace]=messages.zh;else delete zh31[namespace]}function t(key,params){let lang=langState.get(),resolved=lookup(CATALOGS[lang],key)??lookup(CATALOGS.en,key)??key;return interpolate(resolved,params)}function tKeys(group,key){let lang=langState.get();return lookupKeys(CATALOGS[lang],group,key)??lookupKeys(CATALOGS.en,group,key)??key}
|
|
13
13
|
export{LOCALES,DEFAULT_LOCALE,isLocaleId,setLocaleLang,currentLang,intlLocale,localeState,registerMessages,t,tKeys};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{canonPath,normalizeMainRepo,randomDirTaskSuffix,repoWorkingDir,samePrStatus,titleFromRepo}from"./chunk-46y4se2m.js";import{isUnlistedCheckout}from"./chunk-n8z4nb8v.js";import{CLONEFILEAT_PERL,GitWorktreeManager,defaultExecDeps,git,headCommit,isDirtyOutput,parseDirtyPaths}from"./chunk-tqgtv0jd.js";import{readLastActiveTaskId,writeLastActiveTaskId}from"./chunk-ak0ezn5t.js";import{LAUNCH_PREFIX_FILE}from"./chunk-4dt1gfb3.js";import{PLACEHOLDER_TASK_TITLE,isPlaceholderDerivedBranch,sanitizeTaskTitle}from"./chunk-2xsxcdp6.js";import{DirtyWorktreeError,EmptyBranchDirtyWorktreeError,EmptyBranchError,ExtraRepoNotGitError,ForkUnsupportedError,GitCommandFailedError,IllegalTransitionError,InvalidWorktreeNameError,LandConflictError,MainCheckoutDirtyError,MissingRefError,MoveRefusedError,NotAGitRepoError,NotALinkedRepoError,REMOTE_PARENT_UNSUPPORTED_CODE,RemoteExtraUnsupportedError,RemoteParentUnsupportedError,ReparentRefusedError,RepoDuplicateError,TaskDeletingError,TaskNotFoundError,TooManyReposError,WorktreeNameTakenError,WorktreeRemoveFailedError,canonicalize,listWorktreeDirNames,worktreePathFor}from"./chunk-72g45nwx.js";import{forwardVerb,requireMachine}from"./chunk-crnfw9tg.js";import{resolvePreferredVendor}from"./chunk-s5h7ay1w.js";import{READ_ONLY_GIT_ENV}from"./chunk-6xppe9bj.js";import{detectLanguage}from"./chunk-021xteq8.js";import{readRemoteWorkspace,removeRemoteLink}from"./chunk-78rtznxy.js";import{addSavedRepo,getPersistedString,isGitRepo,isRemoteRepoKey,removeSavedRepo,resolveMainRepoRoot,resolveRepoRoot,storedRepos}from"./chunk-62ewk1qg.js";import{errorMessage}from"./chunk-9gctbddn.js";import{projectRejection,rejectionReason}from"./chunk-3pp65k25.js";import{createStateCell}from"./chunk-cmp64q4j.js";import{MULTI_REPO_CAP,SESSION_PR_CAP,WORKSPACE_CAPABILITIES,applyTodoOps,checkNotes,childrenOf,deletionTargets,gitRepoOf,lineageRootId,pickRepos,repoNameOf,subtreeIds,taskCwd,taskRepos,taskWorktreePaths,uniqueRepoName,workspaceBackendId,workspaceCapabilities}from"./chunk-cwfs2kae.js";import{DEFAULT_TASK_VENDOR,toTaskId}from"./chunk-xy8be792.js";import{pathWithin,samePath}from"./chunk-pn5ygqn6.js";class WorkspaceCheckpoints{store;worktrees;workspaces;requireTask;constructor(store,worktrees,workspaces,requireTask){this.store=store;this.worktrees=worktrees;this.workspaces=workspaces;this.requireTask=requireTask}workspaceOwner(id){let task=this.requireTask(id);return(task.sharesWorkspaceOf?this.store.get(task.sharesWorkspaceOf):void 0)??task}checkpointScope(id){let owner=this.workspaceOwner(id),sharers=this.store.list().filter((t)=>t.sharesWorkspaceOf===owner.id&&!t.deletion);return{ownerId:String(owner.id),sharerIds:[String(owner.id),...sharers.map((t)=>String(t.id))]}}canCheckpoint(id){if(!this.store.get(id))return!1;let owner=this.workspaceOwner(id);return workspaceCapabilities(owner).checkpoint&&!owner.deletion&&owner.worktreePath!==""}async target(id){let owner=this.workspaceOwner(id),own=this.canCheckpoint(id)?this.workspaces.get(workspaceBackendId(owner)).checkpoints:void 0,dir=owner.worktreePath;if(!this.canCheckpoint(id)||!await this.worktrees.pathExists(own?dir:`${dir}/.git`))throw Error(`NOT_CHECKPOINTABLE: ${owner.kind==="task"?"the task has no workspace on disk":`a ${owner.kind} task works in your own checkout`}`);let ownerId=String(owner.id);return{ownerId,dir,via:own??{take:(d,opts)=>this.worktrees.takeCheckpoint(d,ownerId,opts),list:(d)=>this.worktrees.listCheckpoints(d,ownerId),rewind:(d,n)=>this.worktrees.rewindToCheckpoint(d,ownerId,n)}}}async takeCheckpoint(id,opts){let{dir,via}=await this.target(id);return via.take(dir,opts)}async listCheckpoints(id){let{dir,via}=await this.target(id);return via.list(dir)}async rewindToCheckpoint(id,n){let{dir,via}=await this.target(id);return via.rewind(dir,n)}async exportBranch(id){let owner=this.workspaceOwner(id),backend=this.workspaces.get(workspaceBackendId(owner));if(!backend.exportBranch||!owner.worktreePath)throw Error("EXPORT_UNSUPPORTED: the task's branch is already in its repo (or it has no workspace yet)");return backend.exportBranch({path:owner.worktreePath,repo:gitRepoOf(owner),branch:owner.branch})}}var TYPE_PREFIXES=new Set(["feat","feature","fix","bugfix","hotfix","chore","docs","doc","refactor","test","tests","ci","build","perf","style","revert","release"]),BRAND_TOKENS=new Set(["rove"]);function inferBranchStyle(names){let typed=new Map,bare=0;for(let raw of new Set(names)){let name=raw.trim();if(!name||name==="HEAD")continue;let slash=name.indexOf("/");if(slash===-1){bare+=1;continue}let prefix=name.slice(0,slash);if(TYPE_PREFIXES.has(prefix))typed.set(prefix,(typed.get(prefix)??0)+1)}let typedTotal=0;for(let n of typed.values())typedTotal+=n;if(typedTotal===0||typedTotal<bare)return{kind:"bare"};let best="",bestN=0;for(let[prefix,n]of typed)if(n>bestN||n===bestN&&(best===""||prefix<best))best=prefix,bestN=n;return{kind:"typed",defaultPrefix:best}}function slugTokens(title){return title.toLowerCase().replace(/[^a-z0-9]+/g,"-").split("-").filter((t)=>t.length>0&&!BRAND_TOKENS.has(t))}function capSlug(tokens){let slug="";for(let token of tokens){let candidate=slug?`${slug}-${token}`:token;if(candidate.length>32)return slug||token.slice(0,32);slug=candidate}return slug}function identitySlug(taskId){return`task-${taskId.slice(-6).toLowerCase()}`}function deriveConventionBranch(title,style,taskId){let tokens=slugTokens(title);if(style.kind==="typed"){let first=tokens[0];return`${first!==void 0&&TYPE_PREFIXES.has(first)?tokens.shift():style.defaultPrefix}/${capSlug(tokens)||identitySlug(taskId)}`}return capSlug(tokens)||identitySlug(taskId)}function uniqueBranchName(base,taken,taskId){let dirs=new Set;for(let name of taken)for(let i=name.indexOf("/");i>0;i=name.indexOf("/",i+1))dirs.add(name.slice(0,i));let isFree=(name)=>!taken.has(name)&&!dirs.has(name),segments=base.split("/"),root=segments.slice(0,-1).some((_,i)=>taken.has(segments.slice(0,i+1).join("/")))?segments.join("-"):base;if(isFree(root))return root;for(let n=2;n<=99;n+=1){let candidate=`${root}-${n}`;if(isFree(candidate))return candidate}return`${root}-${taskId.slice(-6).toLowerCase()}`}function planExtraRepos(primary,inputs){if(inputs.length===0)return[];if(1+inputs.length>MULTI_REPO_CAP)throw new TooManyReposError(1+inputs.length,MULTI_REPO_CAP);if(isRemoteRepoKey(primary))throw new RemoteExtraUnsupportedError(primary);let seen=new Set([canonPath(primary)]),names=new Set([repoNameOf(primary)]);return inputs.map((input)=>{if(isRemoteRepoKey(input.repo))throw new RemoteExtraUnsupportedError(input.repo);let{repo}=normalizeMainRepo(input.repo);if(!isGitRepo(repo))throw new ExtraRepoNotGitError(input.repo);if(seen.has(canonPath(repo)))throw new RepoDuplicateError(repo);seen.add(canonPath(repo));let name=uniqueRepoName(repoNameOf(repo),names);names.add(name);let baseRef=input.baseRef?.trim();return{name,repo,branch:"",worktreePath:"",...baseRef?{baseRef}:{}}})}async function rollbackWorktree(backend,created){try{await backend.dispose({path:created.path,...created.fresh},created.fresh?{force:!0,deleteBranch:!0}:{force:!0})}catch(err){console.error(`[rove] ensureWorktree rollback failed for ${created.path}:`,err)}}async function extrasToMaterialise(worktrees,extras){let missing=[];for(let extra of extras??[])if(!extra.worktreePath||!await worktrees.pathExists(extra.worktreePath))missing.push(extra);return missing}function scaleProgress(onProgress,step,total){return onProgress&&((percent)=>onProgress(Math.floor((step+percent/100)/total*100)))}async function materialiseExtras(opts){let{worktrees,backend,slugs,task}=opts,callerNamed=task.branch!=="",created=[],picked=[],done=new Map,missing=await extrasToMaterialise(worktrees,task.extraRepos);try{for(let[index,extra]of missing.entries()){if(extra.worktreePath)await worktrees.pruneWorktrees(extra.repo);let names=await worktrees.listBranchNames(extra.repo),branch=extra.branch||(callerNamed||!names.includes(opts.branch)?opts.branch:uniqueBranchName(opts.branch,new Set(names),task.id)),slug=await slugs.allocate(extra.repo);picked.push({repo:extra.repo,slug});let info=await backend.materialize({repo:extra.repo,slug,branch,baseRef:extra.baseRef,onProgress:opts.progressFor(index)});created.push({path:info.path,...names.includes(branch)?{}:{fresh:{repo:extra.repo,branch}}}),done.set(extra.name,{...extra,branch,worktreePath:info.path})}}catch(err){for(let wt of created.reverse())await rollbackWorktree(backend,wt);for(let{repo,slug}of picked)slugs.cancel(repo,slug);throw err}return{extraRepos:(task.extraRepos??[]).map((e)=>done.get(e.name)??e),created,slugs:picked}}function nestingParent(store,id){let parent=store.get(id);if(!parent)throw new TaskNotFoundError(id);if(parent.deletion)throw new TaskDeletingError(String(parent.id));if(isRemoteRepoKey(parent.repo))throw new RemoteParentUnsupportedError(String(parent.id));return toTaskId(lineageRootId(store.list(),parent.id))}async function createTaskRow(deps,input){if(!input.repo)throw Error("createTask: repo is required");let extraRepos=planExtraRepos(normalizeMainRepo(input.repo).repo,input.extraRepos??[]),parentTaskId=input.parentTaskId?nestingParent(deps.store,input.parentTaskId):void 0,repo=deps.projects.ensureIfEligible(input.repo,input.projectIntent??"explicit")??normalizeMainRepo(input.repo).repo,title=sanitizeTaskTitle(input.title??PLACEHOLDER_TASK_TITLE)||PLACEHOLDER_TASK_TITLE,worktreeName=input.worktreeName?.trim();if(worktreeName)await deps.claimWorktreeName(repo,worktreeName);return await deps.store.create({repo,title,branch:input.branch??"",worktreePath:"",status:"backlog",kind:"task",vendor:input.vendor??DEFAULT_TASK_VENDOR,...input.command?.trim()?{command:input.command.trim()}:{},...input.modelEffort?{modelEffort:input.modelEffort}:{},...input.model?.trim()?{model:input.model.trim()}:{},...input.tier?.trim()?{tier:input.tier.trim()}:{},...input.groupId?{groupId:input.groupId}:{},...input.dispatcher?{dispatcher:input.dispatcher}:{},...parentTaskId?{parentTaskId}:{},...input.worktreeOnly?{worktreeOnly:!0}:{},...input.cwdSubpath?{cwdSubpath:input.cwdSubpath}:{},...input.routine?{routine:input.routine}:{},...input.baseRef?.trim()?{baseRef:input.baseRef.trim()}:{},...extraRepos.length>0?{extraRepos}:{},...input.workspace?{workspace:input.workspace}:{},...worktreeName?{worktreeName}:{}})}async function openDirectoryTaskRow(deps,input){if(!input.dir)throw Error("openDirectoryTask: dir is required");let remote=isRemoteRepoKey(input.dir),dir=remote?input.dir:canonPath(input.dir),title=(input.title?sanitizeTaskTitle(input.title):"")||(input.scratch?"":`${titleFromRepo(dir)}-${randomDirTaskSuffix()}`);return deps.store.create({repo:dir,title,branch:"",worktreePath:remote?repoWorkingDir(dir):dir,status:"backlog",kind:"dir",...input.scratch?{scratch:!0}:{},...input.noProject?{noProject:!0}:{},...input.routine?{routine:input.routine}:{},...input.workspace?{workspace:input.workspace}:{},...input.modelEffort?{modelEffort:input.modelEffort}:{},...input.model?.trim()?{model:input.model.trim()}:{},vendor:input.vendor??resolvePreferredVendor()})}async function adoptScratchRepoRow(deps,id,repo){let task=deps.store.get(id);if(!task||task.kind!=="dir"||task.scratch!==!0)return;let dir=canonPath(repo);await deps.store.update(id,{repo:dir,worktreePath:dir,scratch:!1,title:titleFromRepo(dir)})}class BorrowedBackend{id="borrowed";capabilities=WORKSPACE_CAPABILITIES.borrowed;async materialize(spec){return{backend:this.id,path:spec.path??repoWorkingDir(spec.repo)}}async dispose(){}}import{execFile}from"child_process";import{promises as fs,statSync}from"fs";import path from"path";import{promisify}from"util";var run=promisify(execFile),CP_CHUNK=200;function cloneFlags(){if(process.platform==="darwin")return["-c","-R","-P"];if(process.platform==="linux")return["--reflink=always","-a"];return null}var cpClone=async(entries,to)=>{let flags=cloneFlags();if(!flags)throw new ForkUnsupportedError(`copy-on-write clones are not supported on ${process.platform}`);for(let i=0;i<entries.length;i+=CP_CHUNK)try{await run("cp",[...flags,...entries.slice(i,i+CP_CHUNK),`${to}${path.sep}`])}catch(err){let detail=err.stderr?.trim()||String(err);throw Error(`cloning the worktree failed: ${detail}`)}},probeCache=new Map;async function cloneOneFile(source,target){if(process.platform==="darwin")await run("/usr/bin/perl",["-e",CLONEFILEAT_PERL,source,target]);else if(process.platform==="linux")await run("cp",["--reflink=always",source,target]);else throw Error(`no clone primitive on ${process.platform}`)}var volumeProbe=(from,toDir)=>{let key=`${statSync(from).dev}:${statSync(toDir).dev}`,known=probeCache.get(key);if(!known)known=(async()=>{let probe=path.join(toDir,`.rove-clone-probe-${process.pid}`);try{return await cloneOneFile(path.join(from,".git"),probe),!0}catch{return!1}finally{await fs.rm(probe,{force:!0})}})(),probeCache.set(key,known);return known};async function git2(cwd,args){let{stdout}=await run("git",[...args],{cwd,maxBuffer:67108864});return stdout.trim()}class CowCloneBackend{plain;id="cow-clone";capabilities=WORKSPACE_CAPABILITIES["cow-clone"];probe;cloneEntries;constructor(plain,deps={}){this.plain=plain;this.probe=deps.probe??volumeProbe,this.cloneEntries=deps.cloneEntries??cpClone}async materialize(spec){let parent=spec.forkFrom;if(!parent)return{...await this.plain.materialize(spec),backend:this.id};if(isRemoteRepoKey(spec.repo))throw new ForkUnsupportedError("a remote project's worktree cannot be cloned");let target=worktreePathFor(spec.repo,spec.slug),root=path.dirname(target);if(await fs.mkdir(root,{recursive:!0}),!await this.probe(parent,root))throw new ForkUnsupportedError(`${parent} and ${root} are not on one volume that can clone files (APFS, btrfs, XFS with reflink); the fork would have to copy the whole tree`);let head=await git2(parent,["rev-parse","HEAD"]);await git2(spec.repo,["worktree","add","--no-checkout","-b",spec.branch,target,head]);try{let entries=(await fs.readdir(parent)).filter((name)=>name!==".git").map((name)=>path.join(parent,name));await this.cloneEntries(entries,target),await this.carryIndex(parent,target)}catch(err){throw await this.discard(spec.repo,target,spec.branch),err}return{backend:this.id,path:target}}async carryIndex(parent,target){let indexOf=(dir)=>git2(dir,["rev-parse","--path-format=absolute","--git-path","index"]);try{await fs.copyFile(await indexOf(parent),await indexOf(target)),await git2(target,["update-index","-q","--refresh"])}catch{await git2(target,["reset","-q"])}}async discard(repo,target,branch){await git2(repo,["worktree","remove","--force",target]).catch(()=>{}),await fs.rm(target,{recursive:!0,force:!0}),await git2(repo,["worktree","prune"]).catch(()=>{}),await git2(repo,["branch","-D",branch]).catch(()=>{})}dispose(target,opts){return this.plain.dispose(target,opts)}}class GitWorktreeBackend{worktrees;id="git-worktree";capabilities=WORKSPACE_CAPABILITIES["git-worktree"];constructor(worktrees){this.worktrees=worktrees}async materialize(spec){let info=await this.worktrees.createForTask({repo:spec.repo,slug:spec.slug,branch:spec.branch,baseRef:spec.baseRef,onProgress:spec.onProgress});return{backend:this.id,path:info.path}}async dispose(target,opts){await this.worktrees.remove(target.path,{...opts,repo:target.repo,branch:target.branch})}}import{execFile as execFile2}from"child_process";import{createHash}from"crypto";import{promises as fs2,readFileSync}from"fs";import os from"os";import path2 from"path";import{promisify as promisify2}from"util";var LAYERFS_CONFIG_KEY="experimental.layerfs",STATE_FILE=".rove-layerfs.json",SANDBOX_USER="501:20",SANDBOX_HOME="/tmp/rove-home",KILL_TAGGED=`for p in /proc/[0-9]*; do tr '\\0' '\\n' < $p/environ 2>/dev/null | grep -qx "$1" && kill -KILL \${p#/proc/}; done; true`,KILL_UNDER='for p in /proc/[0-9]*; do case $(readlink $p/cwd) in "$1"|"$1"/*) kill -KILL ${p#/proc/};; esac; done; sleep 0.2',execRun=async(file,args)=>{try{let{stdout}=await promisify2(execFile2)(file,[...args],{maxBuffer:67108864});return stdout}catch(err){let e=err;throw Error((e.stderr?.trim()||e.stdout?.trim()||e.message).slice(0,2000))}};function parseLayerfsEnv(text){let env={};for(let line of text.split(`
|
|
2
|
+
import{canonPath,normalizeMainRepo,randomDirTaskSuffix,repoWorkingDir,samePrStatus,titleFromRepo}from"./chunk-46y4se2m.js";import{isUnlistedCheckout}from"./chunk-n8z4nb8v.js";import{CLONEFILEAT_PERL,GitWorktreeManager,defaultExecDeps,git,headCommit,isDirtyOutput,parseDirtyPaths}from"./chunk-tqgtv0jd.js";import{readLastActiveTaskId,writeLastActiveTaskId}from"./chunk-ak0ezn5t.js";import{LAUNCH_PREFIX_FILE}from"./chunk-4dt1gfb3.js";import{PLACEHOLDER_TASK_TITLE,isPlaceholderDerivedBranch,sanitizeTaskTitle}from"./chunk-2xsxcdp6.js";import{DirtyWorktreeError,EmptyBranchDirtyWorktreeError,EmptyBranchError,ExtraRepoNotGitError,ForkUnsupportedError,GitCommandFailedError,IllegalTransitionError,InvalidWorktreeNameError,LandConflictError,MainCheckoutDirtyError,MissingRefError,MoveRefusedError,NotAGitRepoError,NotALinkedRepoError,REMOTE_PARENT_UNSUPPORTED_CODE,RemoteExtraUnsupportedError,RemoteParentUnsupportedError,ReparentRefusedError,RepoDuplicateError,TaskDeletingError,TaskNotFoundError,TooManyReposError,WorktreeNameTakenError,WorktreeRemoveFailedError,canonicalize,listWorktreeDirNames,worktreePathFor}from"./chunk-72g45nwx.js";import{forwardVerb,requireMachine}from"./chunk-1tdca3cn.js";import{resolvePreferredVendor}from"./chunk-s5h7ay1w.js";import{READ_ONLY_GIT_ENV}from"./chunk-6xppe9bj.js";import{detectLanguage}from"./chunk-021xteq8.js";import{readRemoteWorkspace,removeRemoteLink}from"./chunk-78rtznxy.js";import{addSavedRepo,getPersistedString,isGitRepo,isRemoteRepoKey,removeSavedRepo,resolveMainRepoRoot,resolveRepoRoot,storedRepos}from"./chunk-62ewk1qg.js";import{errorMessage}from"./chunk-9gctbddn.js";import{projectRejection,rejectionReason}from"./chunk-3pp65k25.js";import{createStateCell}from"./chunk-cmp64q4j.js";import{MULTI_REPO_CAP,SESSION_PR_CAP,WORKSPACE_CAPABILITIES,applyTodoOps,checkNotes,childrenOf,deletionTargets,gitRepoOf,lineageRootId,pickRepos,repoNameOf,subtreeIds,taskCwd,taskRepos,taskWorktreePaths,uniqueRepoName,workspaceBackendId,workspaceCapabilities}from"./chunk-cwfs2kae.js";import{DEFAULT_TASK_VENDOR,toTaskId}from"./chunk-xy8be792.js";import{pathWithin,samePath}from"./chunk-pn5ygqn6.js";class WorkspaceCheckpoints{store;worktrees;workspaces;requireTask;constructor(store,worktrees,workspaces,requireTask){this.store=store;this.worktrees=worktrees;this.workspaces=workspaces;this.requireTask=requireTask}workspaceOwner(id){let task=this.requireTask(id);return(task.sharesWorkspaceOf?this.store.get(task.sharesWorkspaceOf):void 0)??task}checkpointScope(id){let owner=this.workspaceOwner(id),sharers=this.store.list().filter((t)=>t.sharesWorkspaceOf===owner.id&&!t.deletion);return{ownerId:String(owner.id),sharerIds:[String(owner.id),...sharers.map((t)=>String(t.id))]}}canCheckpoint(id){if(!this.store.get(id))return!1;let owner=this.workspaceOwner(id);return workspaceCapabilities(owner).checkpoint&&!owner.deletion&&owner.worktreePath!==""}async target(id){let owner=this.workspaceOwner(id),own=this.canCheckpoint(id)?this.workspaces.get(workspaceBackendId(owner)).checkpoints:void 0,dir=owner.worktreePath;if(!this.canCheckpoint(id)||!await this.worktrees.pathExists(own?dir:`${dir}/.git`))throw Error(`NOT_CHECKPOINTABLE: ${owner.kind==="task"?"the task has no workspace on disk":`a ${owner.kind} task works in your own checkout`}`);let ownerId=String(owner.id);return{ownerId,dir,via:own??{take:(d,opts)=>this.worktrees.takeCheckpoint(d,ownerId,opts),list:(d)=>this.worktrees.listCheckpoints(d,ownerId),rewind:(d,n)=>this.worktrees.rewindToCheckpoint(d,ownerId,n)}}}async takeCheckpoint(id,opts){let{dir,via}=await this.target(id);return via.take(dir,opts)}async listCheckpoints(id){let{dir,via}=await this.target(id);return via.list(dir)}async rewindToCheckpoint(id,n){let{dir,via}=await this.target(id);return via.rewind(dir,n)}async exportBranch(id){let owner=this.workspaceOwner(id),backend=this.workspaces.get(workspaceBackendId(owner));if(!backend.exportBranch||!owner.worktreePath)throw Error("EXPORT_UNSUPPORTED: the task's branch is already in its repo (or it has no workspace yet)");return backend.exportBranch({path:owner.worktreePath,repo:gitRepoOf(owner),branch:owner.branch})}}var TYPE_PREFIXES=new Set(["feat","feature","fix","bugfix","hotfix","chore","docs","doc","refactor","test","tests","ci","build","perf","style","revert","release"]),BRAND_TOKENS=new Set(["rove"]);function inferBranchStyle(names){let typed=new Map,bare=0;for(let raw of new Set(names)){let name=raw.trim();if(!name||name==="HEAD")continue;let slash=name.indexOf("/");if(slash===-1){bare+=1;continue}let prefix=name.slice(0,slash);if(TYPE_PREFIXES.has(prefix))typed.set(prefix,(typed.get(prefix)??0)+1)}let typedTotal=0;for(let n of typed.values())typedTotal+=n;if(typedTotal===0||typedTotal<bare)return{kind:"bare"};let best="",bestN=0;for(let[prefix,n]of typed)if(n>bestN||n===bestN&&(best===""||prefix<best))best=prefix,bestN=n;return{kind:"typed",defaultPrefix:best}}function slugTokens(title){return title.toLowerCase().replace(/[^a-z0-9]+/g,"-").split("-").filter((t)=>t.length>0&&!BRAND_TOKENS.has(t))}function capSlug(tokens){let slug="";for(let token of tokens){let candidate=slug?`${slug}-${token}`:token;if(candidate.length>32)return slug||token.slice(0,32);slug=candidate}return slug}function identitySlug(taskId){return`task-${taskId.slice(-6).toLowerCase()}`}function deriveConventionBranch(title,style,taskId){let tokens=slugTokens(title);if(style.kind==="typed"){let first=tokens[0];return`${first!==void 0&&TYPE_PREFIXES.has(first)?tokens.shift():style.defaultPrefix}/${capSlug(tokens)||identitySlug(taskId)}`}return capSlug(tokens)||identitySlug(taskId)}function uniqueBranchName(base,taken,taskId){let dirs=new Set;for(let name of taken)for(let i=name.indexOf("/");i>0;i=name.indexOf("/",i+1))dirs.add(name.slice(0,i));let isFree=(name)=>!taken.has(name)&&!dirs.has(name),segments=base.split("/"),root=segments.slice(0,-1).some((_,i)=>taken.has(segments.slice(0,i+1).join("/")))?segments.join("-"):base;if(isFree(root))return root;for(let n=2;n<=99;n+=1){let candidate=`${root}-${n}`;if(isFree(candidate))return candidate}return`${root}-${taskId.slice(-6).toLowerCase()}`}function planExtraRepos(primary,inputs){if(inputs.length===0)return[];if(1+inputs.length>MULTI_REPO_CAP)throw new TooManyReposError(1+inputs.length,MULTI_REPO_CAP);if(isRemoteRepoKey(primary))throw new RemoteExtraUnsupportedError(primary);let seen=new Set([canonPath(primary)]),names=new Set([repoNameOf(primary)]);return inputs.map((input)=>{if(isRemoteRepoKey(input.repo))throw new RemoteExtraUnsupportedError(input.repo);let{repo}=normalizeMainRepo(input.repo);if(!isGitRepo(repo))throw new ExtraRepoNotGitError(input.repo);if(seen.has(canonPath(repo)))throw new RepoDuplicateError(repo);seen.add(canonPath(repo));let name=uniqueRepoName(repoNameOf(repo),names);names.add(name);let baseRef=input.baseRef?.trim();return{name,repo,branch:"",worktreePath:"",...baseRef?{baseRef}:{}}})}async function rollbackWorktree(backend,created){try{await backend.dispose({path:created.path,...created.fresh},created.fresh?{force:!0,deleteBranch:!0}:{force:!0})}catch(err){console.error(`[rove] ensureWorktree rollback failed for ${created.path}:`,err)}}async function extrasToMaterialise(worktrees,extras){let missing=[];for(let extra of extras??[])if(!extra.worktreePath||!await worktrees.pathExists(extra.worktreePath))missing.push(extra);return missing}function scaleProgress(onProgress,step,total){return onProgress&&((percent)=>onProgress(Math.floor((step+percent/100)/total*100)))}async function materialiseExtras(opts){let{worktrees,backend,slugs,task}=opts,callerNamed=task.branch!=="",created=[],picked=[],done=new Map,missing=await extrasToMaterialise(worktrees,task.extraRepos);try{for(let[index,extra]of missing.entries()){if(extra.worktreePath)await worktrees.pruneWorktrees(extra.repo);let names=await worktrees.listBranchNames(extra.repo),branch=extra.branch||(callerNamed||!names.includes(opts.branch)?opts.branch:uniqueBranchName(opts.branch,new Set(names),task.id)),slug=await slugs.allocate(extra.repo);picked.push({repo:extra.repo,slug});let info=await backend.materialize({repo:extra.repo,slug,branch,baseRef:extra.baseRef,onProgress:opts.progressFor(index)});created.push({path:info.path,...names.includes(branch)?{}:{fresh:{repo:extra.repo,branch}}}),done.set(extra.name,{...extra,branch,worktreePath:info.path})}}catch(err){for(let wt of created.reverse())await rollbackWorktree(backend,wt);for(let{repo,slug}of picked)slugs.cancel(repo,slug);throw err}return{extraRepos:(task.extraRepos??[]).map((e)=>done.get(e.name)??e),created,slugs:picked}}function nestingParent(store,id){let parent=store.get(id);if(!parent)throw new TaskNotFoundError(id);if(parent.deletion)throw new TaskDeletingError(String(parent.id));if(isRemoteRepoKey(parent.repo))throw new RemoteParentUnsupportedError(String(parent.id));return toTaskId(lineageRootId(store.list(),parent.id))}async function createTaskRow(deps,input){if(!input.repo)throw Error("createTask: repo is required");let extraRepos=planExtraRepos(normalizeMainRepo(input.repo).repo,input.extraRepos??[]),parentTaskId=input.parentTaskId?nestingParent(deps.store,input.parentTaskId):void 0,repo=deps.projects.ensureIfEligible(input.repo,input.projectIntent??"explicit")??normalizeMainRepo(input.repo).repo,title=sanitizeTaskTitle(input.title??PLACEHOLDER_TASK_TITLE)||PLACEHOLDER_TASK_TITLE,worktreeName=input.worktreeName?.trim();if(worktreeName)await deps.claimWorktreeName(repo,worktreeName);return await deps.store.create({repo,title,branch:input.branch??"",worktreePath:"",status:"backlog",kind:"task",vendor:input.vendor??DEFAULT_TASK_VENDOR,...input.command?.trim()?{command:input.command.trim()}:{},...input.modelEffort?{modelEffort:input.modelEffort}:{},...input.model?.trim()?{model:input.model.trim()}:{},...input.tier?.trim()?{tier:input.tier.trim()}:{},...input.groupId?{groupId:input.groupId}:{},...input.dispatcher?{dispatcher:input.dispatcher}:{},...parentTaskId?{parentTaskId}:{},...input.worktreeOnly?{worktreeOnly:!0}:{},...input.cwdSubpath?{cwdSubpath:input.cwdSubpath}:{},...input.routine?{routine:input.routine}:{},...input.baseRef?.trim()?{baseRef:input.baseRef.trim()}:{},...extraRepos.length>0?{extraRepos}:{},...input.workspace?{workspace:input.workspace}:{},...worktreeName?{worktreeName}:{}})}async function openDirectoryTaskRow(deps,input){if(!input.dir)throw Error("openDirectoryTask: dir is required");let remote=isRemoteRepoKey(input.dir),dir=remote?input.dir:canonPath(input.dir),title=(input.title?sanitizeTaskTitle(input.title):"")||(input.scratch?"":`${titleFromRepo(dir)}-${randomDirTaskSuffix()}`);return deps.store.create({repo:dir,title,branch:"",worktreePath:remote?repoWorkingDir(dir):dir,status:"backlog",kind:"dir",...input.scratch?{scratch:!0}:{},...input.noProject?{noProject:!0}:{},...input.routine?{routine:input.routine}:{},...input.workspace?{workspace:input.workspace}:{},...input.modelEffort?{modelEffort:input.modelEffort}:{},...input.model?.trim()?{model:input.model.trim()}:{},vendor:input.vendor??resolvePreferredVendor()})}async function adoptScratchRepoRow(deps,id,repo){let task=deps.store.get(id);if(!task||task.kind!=="dir"||task.scratch!==!0)return;let dir=canonPath(repo);await deps.store.update(id,{repo:dir,worktreePath:dir,scratch:!1,title:titleFromRepo(dir)})}class BorrowedBackend{id="borrowed";capabilities=WORKSPACE_CAPABILITIES.borrowed;async materialize(spec){return{backend:this.id,path:spec.path??repoWorkingDir(spec.repo)}}async dispose(){}}import{execFile}from"child_process";import{promises as fs,statSync}from"fs";import path from"path";import{promisify}from"util";var run=promisify(execFile),CP_CHUNK=200;function cloneFlags(){if(process.platform==="darwin")return["-c","-R","-P"];if(process.platform==="linux")return["--reflink=always","-a"];return null}var cpClone=async(entries,to)=>{let flags=cloneFlags();if(!flags)throw new ForkUnsupportedError(`copy-on-write clones are not supported on ${process.platform}`);for(let i=0;i<entries.length;i+=CP_CHUNK)try{await run("cp",[...flags,...entries.slice(i,i+CP_CHUNK),`${to}${path.sep}`])}catch(err){let detail=err.stderr?.trim()||String(err);throw Error(`cloning the worktree failed: ${detail}`)}},probeCache=new Map;async function cloneOneFile(source,target){if(process.platform==="darwin")await run("/usr/bin/perl",["-e",CLONEFILEAT_PERL,source,target]);else if(process.platform==="linux")await run("cp",["--reflink=always",source,target]);else throw Error(`no clone primitive on ${process.platform}`)}var volumeProbe=(from,toDir)=>{let key=`${statSync(from).dev}:${statSync(toDir).dev}`,known=probeCache.get(key);if(!known)known=(async()=>{let probe=path.join(toDir,`.rove-clone-probe-${process.pid}`);try{return await cloneOneFile(path.join(from,".git"),probe),!0}catch{return!1}finally{await fs.rm(probe,{force:!0})}})(),probeCache.set(key,known);return known};async function git2(cwd,args){let{stdout}=await run("git",[...args],{cwd,maxBuffer:67108864});return stdout.trim()}class CowCloneBackend{plain;id="cow-clone";capabilities=WORKSPACE_CAPABILITIES["cow-clone"];probe;cloneEntries;constructor(plain,deps={}){this.plain=plain;this.probe=deps.probe??volumeProbe,this.cloneEntries=deps.cloneEntries??cpClone}async materialize(spec){let parent=spec.forkFrom;if(!parent)return{...await this.plain.materialize(spec),backend:this.id};if(isRemoteRepoKey(spec.repo))throw new ForkUnsupportedError("a remote project's worktree cannot be cloned");let target=worktreePathFor(spec.repo,spec.slug),root=path.dirname(target);if(await fs.mkdir(root,{recursive:!0}),!await this.probe(parent,root))throw new ForkUnsupportedError(`${parent} and ${root} are not on one volume that can clone files (APFS, btrfs, XFS with reflink); the fork would have to copy the whole tree`);let head=await git2(parent,["rev-parse","HEAD"]);await git2(spec.repo,["worktree","add","--no-checkout","-b",spec.branch,target,head]);try{let entries=(await fs.readdir(parent)).filter((name)=>name!==".git").map((name)=>path.join(parent,name));await this.cloneEntries(entries,target),await this.carryIndex(parent,target)}catch(err){throw await this.discard(spec.repo,target,spec.branch),err}return{backend:this.id,path:target}}async carryIndex(parent,target){let indexOf=(dir)=>git2(dir,["rev-parse","--path-format=absolute","--git-path","index"]);try{await fs.copyFile(await indexOf(parent),await indexOf(target)),await git2(target,["update-index","-q","--refresh"])}catch{await git2(target,["reset","-q"])}}async discard(repo,target,branch){await git2(repo,["worktree","remove","--force",target]).catch(()=>{}),await fs.rm(target,{recursive:!0,force:!0}),await git2(repo,["worktree","prune"]).catch(()=>{}),await git2(repo,["branch","-D",branch]).catch(()=>{})}dispose(target,opts){return this.plain.dispose(target,opts)}}class GitWorktreeBackend{worktrees;id="git-worktree";capabilities=WORKSPACE_CAPABILITIES["git-worktree"];constructor(worktrees){this.worktrees=worktrees}async materialize(spec){let info=await this.worktrees.createForTask({repo:spec.repo,slug:spec.slug,branch:spec.branch,baseRef:spec.baseRef,onProgress:spec.onProgress});return{backend:this.id,path:info.path}}async dispose(target,opts){await this.worktrees.remove(target.path,{...opts,repo:target.repo,branch:target.branch})}}import{execFile as execFile2}from"child_process";import{createHash}from"crypto";import{promises as fs2,readFileSync}from"fs";import os from"os";import path2 from"path";import{promisify as promisify2}from"util";var LAYERFS_CONFIG_KEY="experimental.layerfs",STATE_FILE=".rove-layerfs.json",SANDBOX_USER="501:20",SANDBOX_HOME="/tmp/rove-home",KILL_TAGGED=`for p in /proc/[0-9]*; do tr '\\0' '\\n' < $p/environ 2>/dev/null | grep -qx "$1" && kill -KILL \${p#/proc/}; done; true`,KILL_UNDER='for p in /proc/[0-9]*; do case $(readlink $p/cwd) in "$1"|"$1"/*) kill -KILL ${p#/proc/};; esac; done; sleep 0.2',execRun=async(file,args)=>{try{let{stdout}=await promisify2(execFile2)(file,[...args],{maxBuffer:67108864});return stdout}catch(err){let e=err;throw Error((e.stderr?.trim()||e.stdout?.trim()||e.message).slice(0,2000))}};function parseLayerfsEnv(text){let env={};for(let line of text.split(`
|
|
3
3
|
`)){let m=/^\s*(?:export\s+)?([A-Z_][A-Z0-9_]*)=(.*)$/.exec(line);if(m)env[m[1]]=m[2].trim().replace(/^(["'])(.*)\1$/,"$2")}return env}class LayerfsBackend{id="layerfs";capabilities=WORKSPACE_CAPABILITIES.layerfs;run;configPath;platform;rootChecked=!1;constructor(deps={}){this.run=deps.run??execRun,this.configPath=deps.configPath??(()=>getPersistedString(LAYERFS_CONFIG_KEY)),this.platform=deps.platform??process.platform}async preflight(){this.env(),await this.requireRoot()}env(){if(this.platform!=="linux")throw unavailable(`it runs on Linux Runners only, not ${this.platform}`);let file=this.configPath();if(!file)throw unavailable(`set ${LAYERFS_CONFIG_KEY} in state.json to a LayerFS env file`);let env;try{env=parseLayerfsEnv(readFileSync(file,"utf8"))}catch(err){throw unavailable(`cannot read ${file}: ${err.message}`)}for(let key of["LAYERFS_CLI","LAYERFS_NODE","LAYERFS_HOME","LAYERFS_STORE_PATH","LAYERFS_IMAGE"])if(!env[key])throw unavailable(`${file} does not set ${key}`);return env}async requireRoot(){if(this.rootChecked)return;try{await this.run("sudo",["-n","true"])}catch{throw Error("LAYERFS_NEEDS_ROOT: LayerFS Store calls run as root, and `sudo -n` cannot (configure passwordless sudo for this user)")}this.rootChecked=!0}async lfs(project,...args){let env=this.env();await this.requireRoot();let pass=Object.entries(env).filter(([k])=>k!=="LAYERFS_CLI"&&k!=="LAYERFS_NODE").map(([k,v])=>`${k}=${v}`),out=await this.run("sudo",["-n","env",...pass,`LAYERFS_PROJECT=${project}`,env.LAYERFS_NODE,env.LAYERFS_CLI,...args]);return JSON.parse(out)}docker(...args){return this.run("docker",args)}inSandbox(s,dir,...argv){return this.docker("exec","-u",SANDBOX_USER,"-w",dir,"-e",`HOME=${SANDBOX_HOME}`,s.container,...argv)}async ensureProject(repo){let project=`rove-${createHash("sha1").update(repo).digest("hex").slice(0,12)}`;try{await this.lfs(project,"project","list_branches","--page-size","1")}catch{await this.lfs(project,"init",project,repo,"--timeout","1800000")}return project}async materialize(spec){if(spec.forkFrom||spec.path)throw unavailable("a layerfs task cannot be forked or borrow a directory");this.env();let dir=worktreePathFor(spec.repo,spec.slug),project=await this.ensureProject(spec.repo),branch=`${spec.slug}-${Date.now().toString(36)}`;await this.lfs(project,"branch","fork",branch);let{sandbox}=await this.lfs(project,"sandbox","create"),s={project,sandbox,ws:"",container:"",branch,gitBase:"",checkpoints:[]};try{s.container=await this.containerOf(project,sandbox),await this.mount(s,dir),await this.inSandbox(s,dir,"git","checkout","-q","-b",spec.branch,...spec.baseRef?[spec.baseRef]:[]),s.gitBase=(await this.inSandbox(s,dir,"git","rev-parse","HEAD")).trim();let reap=["docker","exec","-u",SANDBOX_USER,s.container,"sh","-c",KILL_TAGGED,"sh","ROVE_LAUNCH={launch}"];await fs2.writeFile(path2.join(dir,LAUNCH_PREFIX_FILE),JSON.stringify({prefix:this.launchPrefix(s,dir),reap})),await this.save(dir,s)}catch(err){throw await this.teardown(s,dir,!0).catch(()=>{}),err}return{backend:this.id,path:dir,ref:`${project}:${branch}`}}launchPrefix(s,dir){let env=["-e",`HOME=${SANDBOX_HOME}`,"-e","ROVE_LAUNCH={launch}","-e","TERM","-e","COLUMNS","-e","LINES"];return["docker","exec","-it","-u",SANDBOX_USER,"-w",dir,...env,s.container]}async containerOf(project,sandbox){let id=(await this.docker("ps","-q","--filter",`label=layerfs.project=${project}`,"--filter",`label=layerfs.sandbox=${sandbox}`)).trim();if(!id||id.includes(`
|
|
4
4
|
`))throw Error(`no single container for LayerFS sandbox ${project}/${sandbox}`);return id}async mount(s,dir){s.ws=(await this.lfs(s.project,"workspace","mount",s.sandbox,s.branch)).ws,await fs2.mkdir(dir,{recursive:!0}),await this.bind(s,dir)}async bind(s,dir){let mountPath=s.ws.slice(s.ws.indexOf(":")+1),script=`mkdir -p "$1" ${SANDBOX_HOME} && chown ${SANDBOX_USER} ${SANDBOX_HOME} && mount --bind "$2" "$1"`;await this.docker("exec","-u","0",s.container,"sh","-c",script,"sh",dir,mountPath)}async unbind(s,dir){try{await this.docker("exec","-u","0",s.container,"umount",dir)}catch(err){if(!/busy/i.test(err.message))throw err;throw Error(`WORKSPACE_BUSY: a process still runs in ${dir} inside the sandbox; close the task's terminals first`)}}async unmount(s,dir,discard){await this.unbind(s,dir);try{await this.lfs(s.project,"workspace","unmount",s.ws,...discard?["--discard"]:[])}catch(err){if(await this.bind(s,dir),!/"code":"Dirty"/.test(err.message))throw err;throw Error(`WORKSPACE_DIRTY: LayerFS has uncommitted changes in ${dir}; checkpoint first, or force`)}}async teardown(s,dir,discard){if(s.ws){if(s.container)await this.docker("exec","-u",SANDBOX_USER,s.container,"sh","-c",KILL_UNDER,"sh",dir);await this.unmount(s,dir,discard)}await this.lfs(s.project,"sandbox","close",s.sandbox),await fs2.rm(path2.join(dir,STATE_FILE),{force:!0}),await fs2.rm(path2.join(dir,LAUNCH_PREFIX_FILE),{force:!0}),await fs2.rmdir(dir).catch(()=>{})}async dispose(target,opts){let s=await this.load(target.path).catch(()=>{return});if(!s){await fs2.rm(path2.join(target.path,LAUNCH_PREFIX_FILE),{force:!0}),await fs2.rmdir(target.path).catch(()=>{});return}await this.teardown(s,target.path,opts.force===!0)}async dirtyPaths(dir){let s=await this.load(dir).catch(()=>{return});if(!s?.ws)return[];let{items}=await this.lfs(s.project,"sandbox","list_workspaces",s.sandbox);return items.find((w)=>`${s.sandbox}:${w.path}`===s.ws)?.changed?["(changes since the last checkpoint, inside the LayerFS sandbox)"]:[]}checkpoints={take:(dir,opts)=>this.take(dir,opts?.tabId),list:async(dir)=>(await this.load(dir)).checkpoints,rewind:async(dir,n)=>{let target=(await this.load(dir)).checkpoints.find((c)=>c.n===n);if(!target)throw Error(`CHECKPOINT_NOT_FOUND: checkpoint ${n} does not exist`);let undo=(await this.take(dir)).checkpoint,after=await this.load(dir),fork=`${after.branch.replace(/-r[0-9a-z]+$/,"")}-r${Date.now().toString(36)}`;return await this.lfs(after.project,"branch","fork",fork,target.commit),await this.unmount(after,dir,!0),after.branch=fork,await this.mount(after,dir),await this.save(dir,after),{target,undo,uncaptured:[]}}};async take(dir,tabId){let s=await this.load(dir),latest=s.checkpoints.at(-1),reply=await this.lfs(s.project,"workspace","commit",s.ws,"-m","rove checkpoint",...latest?[]:["--force"]);if(latest&&reply.kind==="UpToDate")return{created:!1,checkpoint:latest};let checkpoint={n:(latest?.n??0)+1,ref:`layerfs:${s.project}:${s.branch}`,commit:reply.head,tree:reply.commit?.root??reply.root??reply.head,at:new Date().toISOString(),...tabId?{tabId}:{}};return s.checkpoints.push(checkpoint),await this.save(dir,s),{created:!0,checkpoint,uncaptured:[]}}async exportBranch(target){let s=await this.load(target.path),inner=`/tmp/rove-export-${process.pid}.bundle`;await this.inSandbox(s,target.path,"git","bundle","create","-q",inner,target.branch,`^${s.gitBase}`);let local=path2.join(os.tmpdir(),`rove-layerfs-${process.pid}-${Date.now()}.bundle`);try{await this.docker("cp",`${s.container}:${inner}`,local),await this.run("git",["-C",target.repo,"fetch","-q",local,`${target.branch}:refs/heads/${target.branch}`]);let commit=(await this.run("git",["-C",target.repo,"rev-parse",target.branch])).trim();return{branch:target.branch,commit}}finally{await fs2.rm(local,{force:!0})}}async load(dir){return JSON.parse(await fs2.readFile(path2.join(dir,STATE_FILE),"utf8"))}save(dir,s){return fs2.writeFile(path2.join(dir,STATE_FILE),`${JSON.stringify(s,null,2)}
|
|
5
5
|
`)}}function unavailable(why){return Error(`LAYERFS_UNAVAILABLE: the layerfs workspace backend is unavailable: ${why}`)}class RemoteBackend{id="remote";capabilities=WORKSPACE_CAPABILITIES.remote;async materialize(){throw Error("a remote workspace is created by `rove api add --workspace-on <machine>`")}async dispose(target,opts){let ws=readRemoteWorkspace(target.path);if(ws){let gone=await forwardVerb(requireMachine(ws.machine),"delete",{"task-id":ws.taskId,wait:!0,...opts.force?{force:!0}:{}});if(!gone.ok&&gone.error.code!=="TASK_NOT_FOUND"&&!opts.force)throw Error(gone.error.message)}removeRemoteLink(target.path)}async dirtyPaths(){return[]}}class WorkspaceRegistry{backends=new Map;constructor(backends){for(let backend of backends)this.backends.set(backend.id,backend)}get(id){let backend=this.backends.get(id);if(!backend)throw Error(`workspace backend '${id}' is not available in this build`);return backend}}function createWorkspaceRegistry(worktrees,cowClone){let plain=new GitWorktreeBackend(worktrees);return new WorkspaceRegistry([plain,new BorrowedBackend,new CowCloneBackend(plain,cowClone),new LayerfsBackend,new RemoteBackend])}async function createOrForkTask(deps,input){if(input.workspace)await deps.workspaces.get(input.workspace.backend).preflight?.();let createRow=(row)=>createTaskRow(deps,row),{forkFrom}=input;return forkFrom?forkTaskRow({...deps,createRow},{...input,forkFrom}):createRow(input)}async function forkTaskRow(deps,input){let parent=deps.store.get(input.forkFrom);if(!parent)throw new TaskNotFoundError(input.forkFrom);if(parent.deletion)throw new TaskDeletingError(String(parent.id));if(!workspaceCapabilities(parent).ownsDirectory)throw new ForkUnsupportedError("a directory task has no Rove-created worktree to clone");if(isRemoteRepoKey(parent.repo))throw new ForkUnsupportedError("a remote project's worktree cannot be cloned");if(parent.extraRepos?.length)throw new ForkUnsupportedError("a multi-repo task cannot be forked: only its primary repo would be cloned");let parentPath=await deps.ensureWorktree(parent.id),baseRef=headCommit(parentPath),child=await deps.createRow({...input,repo:gitRepoOf(parent),title:input.title??`${parent.title} (fork)`,baseRef,workspace:{backend:"cow-clone",ref:String(parent.id)},...parent.cwdSubpath?{cwdSubpath:parent.cwdSubpath}:{}});if(parent.gitRepo)await deps.store.update(child.id,{repo:parent.repo,gitRepo:parent.gitRepo});try{await deps.cloneInto(child,parentPath)}catch(err){throw await discard(deps,child).catch((cleanup)=>console.error(`[rove] fork rollback failed for ${child.id}:`,cleanup)),await deps.store.remove(child.id),err}return deps.store.get(child.id)??child}async function discard(deps,child){let row=deps.store.get(child.id);if(!row?.worktreePath)return;await deps.workspaces.get(workspaceBackendId(row)).dispose({path:row.worktreePath,repo:gitRepoOf(row),branch:row.branch},{force:!0,deleteBranch:!0})}function baseRepoCtx(repo,deps){let basePath=deps.remoteBasePath(repo);return{exec:deps.execForRepo(repo),dir:basePath??repo}}async function landGit(exec,dir,args,opts){let r=await exec.run(["git",...args],{cwd:dir,env:opts?.readOnly?READ_ONLY_GIT_ENV:void 0});return{stdout:r.stdout,stderr:r.stderr,exitCode:r.exitCode}}async function isDirty(exec,dir){return isDirtyOutput((await landGit(exec,dir,["status","--porcelain"],{readOnly:!0})).stdout)}async function landPreflight(task,deps=defaultExecDeps){let refuse=(pf,refusal)=>{let refused={...pf,refusal};return{...refused,message:landRefusalError(task,refused).message}},branch=task.branch.trim();if(!branch)throw Error(`landPreflight: task ${task.id} has no branch to land (never materialised)`);let{exec,dir}=baseRepoCtx(gitRepoOf(task),deps),headOut=await landGit(exec,dir,["symbolic-ref","--short","HEAD"],{readOnly:!0}),landedOn=headOut.stdout.trim();if(headOut.exitCode!==0||!landedOn){let headCommit2=await landGit(exec,dir,["rev-parse","--verify","--quiet","HEAD"],{readOnly:!0}),detached=headCommit2.exitCode===0&&headCommit2.stdout.trim().length>0;return refuse({branch,landedOn:"",baseDir:dir},detached?"DETACHED_HEAD":"UNREADABLE_BASE")}if(landedOn===branch)return refuse({branch,landedOn,baseDir:dir},"SAME_BRANCH");let baseDirty=await isDirty(exec,dir),aheadOut=await landGit(exec,dir,["rev-list","--count",`${landedOn}..${branch}`],{readOnly:!0});if(aheadOut.exitCode!==0){let baseHead=await landGit(exec,dir,["rev-parse","--verify","--quiet","HEAD"],{readOnly:!0});if(baseHead.exitCode!==0||!baseHead.stdout.trim())return refuse({branch,landedOn,baseDirty,baseDir:dir},"UNBORN_BASE");return refuse({branch,landedOn,baseDirty,baseDir:dir},baseDirty?"MAIN_CHECKOUT_DIRTY":"MISSING_REF")}let parsed=Number.parseInt(aheadOut.stdout.trim(),10),base={branch,landedOn,baseDirty,baseDir:dir,...Number.isFinite(parsed)?{ahead:parsed}:{}};if(baseDirty)return refuse(base,"MAIN_CHECKOUT_DIRTY");if(base.ahead!==0)return base;let worktreePath=task.worktreePath.trim();if(worktreePath){let manager=new GitWorktreeManager(deps),dirty=!1;try{dirty=await manager.isDirty(worktreePath)}catch{dirty=!1}if(dirty){let wtExec=deps.execForPath(worktreePath),files=parseDirtyPaths((await landGit(wtExec,worktreePath,["status","--porcelain"],{readOnly:!0})).stdout);return refuse({...base,dirtyFiles:files},"EMPTY_BRANCH_DIRTY_WORKTREE")}}return refuse(base,"EMPTY_BRANCH")}function landRefusalError(task,pf){switch(pf.refusal){case"DETACHED_HEAD":return Error(`landTask: base checkout at ${pf.baseDir} is in detached-HEAD state; check out a branch first`);case"UNREADABLE_BASE":return Error(`landTask: could not read HEAD of the base checkout at ${pf.baseDir} \u2014 is it still a git repo?`);case"UNBORN_BASE":return Error(`landTask: base checkout at ${pf.baseDir} is on '${pf.landedOn}' but has no commits yet, so there is nothing to merge '${pf.branch}' into; make the first commit there (or \`git merge --ff-only ${pf.branch}\`) and land again`);case"SAME_BRANCH":return Error(`landTask: base checkout is already on '${pf.branch}' \u2014 nothing to land onto`);case"MAIN_CHECKOUT_DIRTY":return new MainCheckoutDirtyError(gitRepoOf(task),pf.baseDir);case"MISSING_REF":return new MissingRefError(pf.branch,pf.landedOn,pf.baseDir);case"EMPTY_BRANCH_DIRTY_WORKTREE":return new EmptyBranchDirtyWorktreeError(pf.branch,pf.landedOn,task.worktreePath.trim(),[...pf.dirtyFiles??[]]);case"EMPTY_BRANCH":return new EmptyBranchError(pf.branch,pf.landedOn)}}function assertOwnsBranch(task){if(workspaceCapabilities(task).ownsBranch)return;throw Error("landTask: a directory task has no Rove-managed branch to land")}async function landTaskWithCleanup(task,opts,deps){assertOwnsBranch(task);let result=await landTask(task,{strategy:opts.strategy});return finishLanded(task,result,opts,deps)}async function finishLanded(task,result,opts,deps){let worktree=opts.removeWorktree===!1?void 0:await removeLandedWorktree(task,opts.callerCwd,deps),branchAnchor=null,branchKept,worktreeGone=!task.worktreePath.trim()||worktree?.removed===!0;if(opts.deleteBranch&&!worktreeGone)branchKept={reason:worktree?.reason??`worktree ${task.worktreePath} was kept, and still has the branch checked out`};else if(opts.deleteBranch){let outcome=await deps.worktrees.deleteBranch(gitRepoOf(task),result.branch,{force:!0,onAnchor:(record)=>{branchAnchor=record}});if(!outcome.deleted)branchKept={reason:outcome.reason}}return{...result,...worktree?{worktree}:{},...branchAnchor?{branchAnchor}:{},...branchKept?{branchKept}:{}}}async function removeLandedWorktree(task,callerCwd,deps){let worktreePath=task.worktreePath.trim();if(!worktreePath)return{removed:!1,reason:"task has no worktree on disk (never materialised)"};let wt=canonicalize(worktreePath);if(samePath(wt,canonicalize(gitRepoOf(task))))return{removed:!1,reason:"refusing to remove the base checkout"};if(deps.sharesWorktree?.(task))return{removed:!1,reason:`kept ${worktreePath}: other tasks still run in this directory`};if(callerCwd){if(pathWithin(wt,canonicalize(callerCwd))!==null)return{removed:!1,reason:`refusing to remove the caller's own worktree (${worktreePath}) \u2014 re-run from outside it`}}if(deps.tearDownSession)try{await deps.tearDownSession(task.id)}catch{}let residue;try{await deps.worktrees.remove(worktreePath,{onResidue:(r)=>{residue=r}})}catch(err){return{removed:!1,reason:errText(err)}}try{await deps.clearWorktreePath(task.id)}catch(err){return{removed:!0,reason:`worktree removed, but clearing the task's worktree path failed: ${errText(err)}`,...residue?{residue}:{}}}return{removed:!0,...residue?{residue}:{}}}function errText(err){return err instanceof Error?err.message:String(err)}async function conflictedFiles(exec,dir){return(await landGit(exec,dir,["diff","--name-only","--diff-filter=U"],{readOnly:!0})).stdout.split(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{isPathLikeArg,runOpenDirectory}from"./chunk-
|
|
2
|
+
import{isPathLikeArg,runOpenDirectory}from"./chunk-4zae7xn6.js";import"./chunk-1feav1w3.js";import"./chunk-pn5ygqn6.js";import"./chunk-8143k3t6.js";import"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-91sykzqq.js";export{runOpenDirectory,isPathLikeArg};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{parseNumstatRows}from"./chunk-t7j8g9f6.js";import{parsePorcelainRows,unquoteGitPath}from"./chunk-dmzg9zdc.js";import{readHeadSha,resolveGitDirs}from"./chunk-kg9kmwt9.js";import{READ_ONLY_GIT_ENV}from"./chunk-6xppe9bj.js";import{readTabsSnapshot}from"./chunk-
|
|
2
|
+
import{parseNumstatRows}from"./chunk-t7j8g9f6.js";import{parsePorcelainRows,unquoteGitPath}from"./chunk-dmzg9zdc.js";import{readHeadSha,resolveGitDirs}from"./chunk-kg9kmwt9.js";import{READ_ONLY_GIT_ENV}from"./chunk-6xppe9bj.js";import{readTabsSnapshot}from"./chunk-9h7zv8ge.js";import{engineCanFork,engineDisplayName,getEngineProtocol,protocolEntry,sessionProtocol}from"./chunk-1590vtyb.js";import{execHostForWorktreePath}from"./chunk-s4dxjqgt.js";import{supportsStructuredHistory}from"./chunk-89xeg26e.js";import{getPersistedString,getPersistedValue}from"./chunk-62ewk1qg.js";import{recordSpawn}from"./chunk-40dgv828.js";import{errorMessage}from"./chunk-9gctbddn.js";import{t}from"./chunk-n9e31hs7.js";import{rollupPr}from"./chunk-cwfs2kae.js";import{isObject}from"./chunk-7ghwdjdc.js";import{acquireSync,releaseSync}from"./chunk-rxb0hw1e.js";import{secretsPath}from"./chunk-8143k3t6.js";import{readFile,stat}from"fs/promises";var PER_SESSION=3,SNIPPET_RADIUS=60,READ_BATCH=8,READ_BUDGET_MS=1500;function snippetOf(text,needle){let flat=text.replace(/\s+/g," "),want=needle.replace(/\s+/g," "),at=flat.toLowerCase().indexOf(want.toLowerCase());if(at<0)return null;let start=Math.max(0,at-SNIPPET_RADIUS),end=Math.min(flat.length,at+want.length+SNIPPET_RADIUS);return`${start>0?"\u2026":""}${flat.slice(start,end).trim()}${end<flat.length?"\u2026":""}`}function matchMessages(messages,needle,max){let out=[];for(let m of messages){if(m.role!=="user"&&m.role!=="assistant")continue;for(let b of m.blocks){if(b.type!=="text")continue;let snippet=snippetOf(b.text,needle);if(snippet===null)continue;out.push({role:m.role,at:m.timestamp,snippet});break}if(out.length>=max)break}return out}function prefilterToken(query){return query.split(/["\\\s]+/).reduce((a,b)=>b.length>a.length?b:a,"")}async function candidatesOf(tasks,skipped){let claimed=new Set,pinned=[],unpinned=[],sharedDirs=new Map;for(let t2 of tasks)if(t2.worktreePath)sharedDirs.set(t2.worktreePath,(sharedDirs.get(t2.worktreePath)??0)+1);for(let task of tasks){if(task.origin){skipped.push({taskId:task.id,reason:"other-machine"});continue}let vendor=task.vendor,tabs=(readTabsSnapshot(task.id)?.tabs??[]).filter((t2)=>t2.kind==="engine"),any=!1;for(let tab of tabs){let tabVendor=tab.vendor??vendor;if(!tabVendor||!supportsStructuredHistory(sessionProtocol(tabVendor))||!tab.sessionId)continue;if(claimed.has(tab.sessionId))continue;claimed.add(tab.sessionId);let reader=protocolEntry(tabVendor).history;pinned.push({task,reader,sessionId:tab.sessionId,tabId:tab.id,path:null,mtimeMs:0}),any=!0}if(any)continue;if(!vendor||!supportsStructuredHistory(sessionProtocol(vendor))){skipped.push({taskId:task.id,reason:"engine-unsupported"});continue}let worktree=task.worktreePath;if(worktree&&(sharedDirs.get(worktree)??0)===1)unpinned.push({task,reader:protocolEntry(vendor).history,worktree})}let listed=await Promise.all(unpinned.map(async({task,reader,worktree})=>(await reader.listSessionIdsForWorktree(worktree)).filter((id)=>!claimed.has(id)).map((sessionId)=>({task,reader,sessionId,path:null,mtimeMs:0})))),all=[...pinned,...listed.flat()];return Promise.all(all.map(async(c)=>{let worktree=c.task.worktreePath||c.task.repo,path=await c.reader.transcriptPath(c.sessionId,worktree).catch(()=>null),mtimeMs=path?await stat(path).then((s)=>s.mtimeMs,()=>0):0;return{...c,path,mtimeMs}}))}async function filesContaining(paths,token){if(paths.length===0||token==="")return new Set(paths);let rg=Bun.which("rg");if(rg){let proc=Bun.spawn([rg,"-l","-i","-F","--no-messages","--",token,...paths],{stdout:"pipe",stderr:"ignore"}),out=await new Response(proc.stdout).text();return await proc.exited,new Set(out.split(`
|
|
3
3
|
`).filter(Boolean))}let needle=token.toLowerCase(),hits=new Set;for(let p of paths)if((await readFile(p,"utf8").catch(()=>"")).toLowerCase().includes(needle))hits.add(p);return hits}async function searchTasks(tasks,query,limit,budgetMs=READ_BUDGET_MS){let started=Date.now(),skipped=[],candidates=await candidatesOf(tasks,skipped),withPath=candidates.filter((c)=>c.path!==null).map((c)=>c.path),hits=await filesContaining(withPath,prefilterToken(query)),toRead=candidates.filter((c)=>c.path===null||hits.has(c.path)).sort((a,b)=>b.mtimeMs-a.mtimeMs),matches=[],scanned=0;while(scanned<toRead.length&&matches.length<limit&&Date.now()-started<budgetMs){let batch=toRead.slice(scanned,scanned+READ_BATCH),read=await Promise.all(batch.map((c)=>c.reader.readHistory(c.sessionId).catch(()=>[])));for(let[i,messages]of read.entries()){let c=batch[i];scanned++;for(let m of matchMessages(messages,query,Math.min(PER_SESSION,limit-matches.length)))matches.push({taskId:c.task.id,title:c.task.title,...c.tabId?{tabId:c.tabId}:{},...m});if(matches.length>=limit)break}}return{query,matches,skipped,truncated:scanned<toRead.length}}async function runWorktreeGit(worktreePath,args,options={}){if(!worktreePath)return{stdout:"",stderr:"worktreePath is required",status:-1};let exec=(options.execForPath??execHostForWorktreePath)(worktreePath),controller=options.timeoutMs&&options.timeoutMs>0?new AbortController:null,timedOut=!1,timer=controller?setTimeout(()=>{timedOut=!0,controller.abort()},options.timeoutMs):null,signal=controller&&options.signal?AbortSignal.any([controller.signal,options.signal]):controller?.signal??options.signal,result;try{recordSpawn("worktree.content",["git",...args],worktreePath),result=await exec.run(["git",...args],{cwd:worktreePath,env:READ_ONLY_GIT_ENV,signal})}catch(err){if(timer)clearTimeout(timer);return{stdout:"",stderr:errorMessage(err),status:-1}}if(timer)clearTimeout(timer);if(timedOut&&result.exitCode===-1&&!result.stderr)return{stdout:result.stdout,stderr:`git ${args.join(" ")} timed out after ${options.timeoutMs}ms`,status:-1};return{stdout:result.stdout,stderr:result.stderr,status:result.exitCode}}function readLocalWorktreeHead(worktreePath,deps={}){if(!worktreePath||(deps.execForPath??execHostForWorktreePath)(worktreePath).isRemote)return null;try{let dirs=resolveGitDirs(worktreePath);return dirs?readHeadSha(dirs):null}catch{return null}}function worktreeFilePath(worktreePath,relPath){if(!worktreePath||!relPath)return null;if(/^[/\\]/.test(relPath)||/^[a-zA-Z]:[/\\]/.test(relPath))return null;if(relPath.split(/[/\\]/).some((part)=>part===".."))return null;let parts=relPath.split("/");return`${worktreePath.replace(/\/+$/,"")}/${parts.filter(Boolean).join("/")}`}async function worktreeFileSize(worktreePath,relPath,deps={}){let path=worktreeFilePath(worktreePath,relPath);if(!path)return null;let exec=(deps.execForPath??execHostForWorktreePath)(worktreePath);try{let res=await exec.run(["wc","-c",path]);if(res.exitCode!==0)return null;let n=Number.parseInt(res.stdout.trim().split(/\s+/)[0]??"",10);return Number.isFinite(n)?n:null}catch{return null}}async function readWorktreeFile(worktreePath,relPath,deps={}){let path=worktreeFilePath(worktreePath,relPath);if(!path)return null;let exec=(deps.execForPath??execHostForWorktreePath)(worktreePath);try{return await exec.readFile(path)}catch{return null}}function filetypeOf(relPath,firstLine){let leaf=relPath.slice(relPath.lastIndexOf("/")+1),dot=leaf.lastIndexOf(".");if(dot<=0)return firstLine===void 0?void 0:shebangFiletype(firstLine);switch(leaf.slice(dot+1).toLowerCase()){case"ts":case"tsx":case"mts":case"cts":return"typescript";case"js":case"jsx":case"mjs":case"cjs":return"javascript";case"md":case"markdown":return"markdown";case"zig":return"zig";default:return}}var SHEBANG_INTERPRETERS=new Map([["node","javascript"],["nodejs","javascript"],["bun","typescript"],["deno","typescript"],["tsx","typescript"],["ts-node","typescript"]]);function shebangFiletype(line){if(!line.startsWith("#!"))return;let words=line.slice(2).trim().split(/\s+/),first=words[0]??"",program=first.slice(first.lastIndexOf("/")+1);if(program==="env"){let i=1;for(;i<words.length;i++){let word=words[i]??"";if(word==="--"){i++;break}if(["-u","--unset","-C","--chdir","-P","-a","--argv0"].includes(word)){i++;continue}if(!word.startsWith("-")&&!word.includes("="))break}let command=words[i]??"";program=command.slice(command.lastIndexOf("/")+1)}return SHEBANG_INTERPRETERS.get(program)}function patchFirstLine(patch){let lines=patch.split(`
|
|
4
4
|
`),at=lines.findIndex((l)=>/^@@ -\d+(?:,\d+)? \+1(?:,\d+)? @@/.test(l));if(at<0)return;return lines.slice(at+1).find((l)=>l.startsWith(" ")||l.startsWith("+"))?.slice(1)}function contentFirstLine(text){let nl=text.indexOf(`
|
|
5
5
|
`);return nl<0?text:text.slice(0,nl)}function isCombinedPathspec(relPath){return relPath==="."||relPath.endsWith("/")}function hunklessPatchNote(patch){if(/^@@/m.test(patch))return null;let binary=!1,from,to,renameFrom,renameTo,emptyChange;for(let line of patch.split(`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{__require}from"./chunk-91sykzqq.js";var welcomeWrite=Promise.resolve();function trackWelcomeWrite(write){welcomeWrite=write}async function launchTui(){let{startTui}=await import("./chunk-
|
|
2
|
+
import{__require}from"./chunk-91sykzqq.js";var welcomeWrite=Promise.resolve();function trackWelcomeWrite(write){welcomeWrite=write}async function launchTui(){let{startTui}=await import("./chunk-g3h0m06y.js");await startTui(),await welcomeWrite;let{runPendingWelcomeInstalls}=await import("./chunk-x92jx8wb.js");runPendingWelcomeInstalls()}
|
|
3
3
|
export{trackWelcomeWrite,launchTui};
|