@sma1lboy/rove 0.9.296-next.328 → 0.9.296-next.331
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-8pvh2fff.js → chunk-09tyy8gw.js} +3 -3
- package/dist/cli/{chunk-bdbm8jkd.js → chunk-0kbd6nzm.js} +1 -1
- package/dist/cli/{chunk-f1wh362h.js → chunk-0xk05694.js} +1 -1
- package/dist/cli/{chunk-awmb1vzd.js → chunk-1hydxa8k.js} +1 -1
- package/dist/cli/{chunk-e9gnt61v.js → chunk-2bgb2810.js} +1 -1
- package/dist/cli/{chunk-7kgksv06.js → chunk-2z2jwetd.js} +2 -2
- package/dist/cli/{chunk-6pfeq5mx.js → chunk-3193p75b.js} +1 -1
- package/dist/cli/{chunk-2t0wxzcc.js → chunk-352dhjkf.js} +1 -1
- package/dist/cli/{chunk-t6q1we78.js → chunk-38w60dmy.js} +1 -1
- package/dist/cli/{chunk-4eh8ts01.js → chunk-3pbbf6hf.js} +1 -1
- package/dist/cli/chunk-44h0mhsa.js +2 -0
- package/dist/cli/chunk-49zh8bgk.js +2 -0
- package/dist/cli/{chunk-ncn022hs.js → chunk-4hvacnnr.js} +1 -1
- package/dist/cli/{chunk-77xn441d.js → chunk-4n7s5h9s.js} +1 -1
- package/dist/cli/{chunk-7f02vk0v.js → chunk-4rebycv9.js} +1 -1
- package/dist/cli/{chunk-ceg2g6ce.js → chunk-4sfdr0qw.js} +2 -2
- package/dist/cli/{chunk-c0fd63tg.js → chunk-4vbk9z6n.js} +1 -1
- package/dist/cli/{chunk-fv2j6zvm.js → chunk-53eqkfas.js} +1 -1
- package/dist/cli/{chunk-yfwn3fj5.js → chunk-5c591htx.js} +1 -1
- package/dist/cli/chunk-5drk7d2z.js +2 -0
- package/dist/cli/{chunk-6zxjc0et.js → chunk-5g01tqn6.js} +5 -5
- package/dist/cli/{chunk-mezp33qp.js → chunk-5jd2z8n0.js} +1 -1
- package/dist/cli/{chunk-arqemcjt.js → chunk-5wjskd40.js} +1 -1
- package/dist/cli/{chunk-wgk3dkq9.js → chunk-66vj434n.js} +3 -3
- package/dist/cli/chunk-6br2a2ze.js +2 -0
- package/dist/cli/{chunk-x58p36jn.js → chunk-6cmqh134.js} +1 -1
- package/dist/cli/{chunk-nps8009r.js → chunk-6dk6zcqm.js} +1 -1
- package/dist/cli/{chunk-gagrapmj.js → chunk-6evkd8be.js} +1 -1
- package/dist/cli/{chunk-da2j4tx2.js → chunk-75b4cgbz.js} +1 -1
- package/dist/cli/chunk-7cptm3td.js +2 -0
- package/dist/cli/chunk-7fxadh60.js +2 -0
- package/dist/cli/{chunk-cj4t4q1r.js → chunk-7j7sdn4p.js} +1 -1
- package/dist/cli/{chunk-m781veb4.js → chunk-7m3txy05.js} +1 -1
- package/dist/cli/{chunk-s8hc0wfr.js → chunk-7wwdcw8e.js} +2 -2
- package/dist/cli/{chunk-r79nb3kg.js → chunk-8cw8zznb.js} +1 -1
- package/dist/cli/{chunk-ynzyrjks.js → chunk-8ejt1bqj.js} +1 -1
- package/dist/cli/chunk-8hcmyjjn.js +2 -0
- package/dist/cli/{chunk-6xzx53b7.js → chunk-8q0nr6v6.js} +1 -1
- package/dist/cli/{chunk-p84bhs57.js → chunk-8trtyc98.js} +1 -1
- package/dist/cli/{chunk-29b3pj9h.js → chunk-8wfz7gyp.js} +1 -1
- package/dist/cli/{chunk-4tah26ys.js → chunk-95tzjzgb.js} +1 -1
- package/dist/cli/{chunk-k9a2b00g.js → chunk-9bhf8tkd.js} +3 -3
- package/dist/cli/{chunk-mw6rdm3k.js → chunk-9gevsmy4.js} +1 -1
- package/dist/cli/{chunk-yfzfbqp5.js → chunk-9we0f035.js} +1 -1
- package/dist/cli/{chunk-qbxpecq4.js → chunk-9wre0m8x.js} +1 -1
- package/dist/cli/chunk-a1scaehn.js +2 -0
- package/dist/cli/chunk-a2z0b48q.js +2 -0
- package/dist/cli/{chunk-k0yjcgd8.js → chunk-apaw34c5.js} +1 -1
- package/dist/cli/{chunk-jxc240wh.js → chunk-avf521sy.js} +1 -1
- package/dist/cli/{chunk-vd36r76s.js → chunk-b53drx76.js} +1 -1
- package/dist/cli/{chunk-p525sfz5.js → chunk-bk2vb6jj.js} +1 -1
- package/dist/cli/{chunk-nr8pxs18.js → chunk-bkhbaqt1.js} +1 -1
- package/dist/cli/chunk-c5w5t1t8.js +2 -0
- package/dist/cli/{chunk-7dmcpc3d.js → chunk-c5xnhy0v.js} +1 -1
- package/dist/cli/{chunk-85hmnbh1.js → chunk-c70kbg4m.js} +1 -1
- package/dist/cli/{chunk-s00k8tn6.js → chunk-cqzkk7j0.js} +1 -1
- package/dist/cli/{chunk-f26k5yqw.js → chunk-d63mrw6g.js} +1 -1
- package/dist/cli/{chunk-ewdanfd9.js → chunk-dvpjthdf.js} +1 -1
- package/dist/cli/chunk-dxyy3ep8.js +2 -0
- package/dist/cli/chunk-dz562xtj.js +2 -0
- package/dist/cli/{chunk-g8wzy7mn.js → chunk-e3bqjaff.js} +1 -1
- package/dist/cli/{chunk-5frd2aze.js → chunk-eaav6ajz.js} +1 -1
- package/dist/cli/{chunk-k3n95g00.js → chunk-etac300d.js} +1 -1
- package/dist/cli/{chunk-fjw8qqpz.js → chunk-f5hhhn3x.js} +1 -1
- package/dist/cli/{chunk-xwbntnv8.js → chunk-fhejs7ph.js} +1 -1
- package/dist/cli/{chunk-zbnw68pg.js → chunk-fj8awvx3.js} +2 -2
- package/dist/cli/{chunk-aw0rz15f.js → chunk-fqm68m42.js} +1 -1
- package/dist/cli/{chunk-nd5bhfxv.js → chunk-g37q36fs.js} +1 -1
- package/dist/cli/{chunk-hkqcc1t4.js → chunk-g5jc6c2d.js} +1 -1
- package/dist/cli/{chunk-wevvztwk.js → chunk-gceeh3yr.js} +1 -1
- package/dist/cli/chunk-h57gekkj.js +2 -0
- package/dist/cli/{chunk-m45b6d19.js → chunk-h72tns53.js} +1 -1
- package/dist/cli/{chunk-8yce2acw.js → chunk-jhnpr3cj.js} +1 -1
- package/dist/cli/{chunk-vda9epmy.js → chunk-jjc3v2zc.js} +1 -1
- package/dist/cli/{chunk-w8da1czv.js → chunk-jt9n8k7z.js} +1 -1
- package/dist/cli/{chunk-a1bzaw1b.js → chunk-jyakk1ah.js} +2 -2
- package/dist/cli/{chunk-hg0eck4e.js → chunk-kdf7cq06.js} +7 -7
- package/dist/cli/chunk-kvj8s9ck.js +2 -0
- package/dist/cli/{chunk-tygdsqwk.js → chunk-m5s8vn56.js} +1 -1
- package/dist/cli/{chunk-xejbrtx2.js → chunk-m6kw77w3.js} +1 -1
- package/dist/cli/{chunk-ev45vka6.js → chunk-m9ssmhrc.js} +1 -1
- package/dist/cli/chunk-mdx18vtz.js +3 -0
- package/dist/cli/{chunk-bfvfche3.js → chunk-mf2p3p9k.js} +1 -1
- package/dist/cli/{chunk-kvf0qqye.js → chunk-msgr4fes.js} +1 -1
- package/dist/cli/{chunk-86ssev5h.js → chunk-mx2smec1.js} +1 -1
- package/dist/cli/{chunk-86fzfqvw.js → chunk-mz82b1jf.js} +1 -1
- package/dist/cli/{chunk-8xtc0gqb.js → chunk-n1nt3zx9.js} +1 -1
- package/dist/cli/chunk-n2hz851r.js +2 -0
- package/dist/cli/{chunk-pn3tpqam.js → chunk-nawvr7j5.js} +1 -1
- package/dist/cli/{chunk-s8d3d2c2.js → chunk-ne7bbq1z.js} +5 -5
- package/dist/cli/{chunk-tcq7zep6.js → chunk-nv64scpb.js} +1 -1
- package/dist/cli/{chunk-dkcgm1cx.js → chunk-p2h4we4w.js} +1 -1
- package/dist/cli/chunk-p8te8w0d.js +2 -0
- package/dist/cli/chunk-pcmd0ydw.js +2 -0
- package/dist/cli/chunk-pferbnyr.js +2 -0
- package/dist/cli/{chunk-kfak0axd.js → chunk-pywaz045.js} +1 -1
- package/dist/cli/{chunk-3qg5wjnq.js → chunk-q5ncrh80.js} +1 -1
- package/dist/cli/{chunk-zb50xk9t.js → chunk-qcces6e3.js} +1 -1
- package/dist/cli/{chunk-fcs8szn5.js → chunk-qcdznw50.js} +1 -1
- package/dist/cli/{chunk-1tmmkk54.js → chunk-qdatysve.js} +1 -1
- package/dist/cli/{chunk-zgcfzfq3.js → chunk-qg92cfsh.js} +1 -1
- package/dist/cli/{chunk-857zfv82.js → chunk-qgf01sm2.js} +1 -1
- package/dist/cli/chunk-qjr36jpm.js +2 -0
- package/dist/cli/chunk-qpncf5as.js +2 -0
- package/dist/cli/{chunk-vn6brdp7.js → chunk-qqc8mn6x.js} +1 -1
- package/dist/cli/{chunk-7p8pb8c5.js → chunk-r271mcer.js} +1 -1
- package/dist/cli/{chunk-qa3dghyt.js → chunk-r7khfa3k.js} +1 -1
- package/dist/cli/{chunk-b8dr13gm.js → chunk-rr0cjy1v.js} +1 -1
- package/dist/cli/{chunk-9y21c892.js → chunk-s9j0sbmf.js} +1 -1
- package/dist/cli/chunk-sj0h67ht.js +2 -0
- package/dist/cli/{chunk-dsq5eqd5.js → chunk-t1vbw2me.js} +1 -1
- package/dist/cli/{chunk-5wjs7phr.js → chunk-t74ptmvq.js} +1 -1
- package/dist/cli/{chunk-rgz4m509.js → chunk-t7thxgcc.js} +1 -1
- package/dist/cli/chunk-tjtgks9k.js +2 -0
- package/dist/cli/chunk-v8e5smwe.js +2 -0
- package/dist/cli/{chunk-102yytay.js → chunk-v9n5e14e.js} +1 -1
- package/dist/cli/{chunk-5m8v3c29.js → chunk-vyh3ddp0.js} +1 -1
- package/dist/cli/{chunk-88cap497.js → chunk-w56terew.js} +1 -1
- package/dist/cli/chunk-wf5q5wm0.js +2 -0
- package/dist/cli/{chunk-qdf11nnb.js → chunk-wg9agpvf.js} +4 -4
- package/dist/cli/chunk-x8nc6bc2.js +2 -0
- package/dist/cli/{chunk-b0szsxbc.js → chunk-xxz504p6.js} +1 -1
- package/dist/cli/{chunk-49zrnjq1.js → chunk-y0skz8j9.js} +1 -1
- package/dist/cli/{chunk-b6ds8yfb.js → chunk-y2pt0wa6.js} +1 -1
- package/dist/cli/{chunk-vfrxywtx.js → chunk-y8hjgmn0.js} +1 -1
- package/dist/cli/{chunk-6r74n1g2.js → chunk-ywwg5zxs.js} +1 -1
- package/dist/cli/{chunk-s5ymevzg.js → chunk-yzdpmamq.js} +1 -1
- package/dist/cli/{chunk-ym33391g.js → chunk-z3k0wg31.js} +1 -1
- package/dist/cli/{chunk-mg9rjc2f.js → chunk-z538fdny.js} +1 -1
- package/dist/cli/{chunk-md47as1y.js → chunk-zjxz2v8a.js} +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/rove-run.js +1 -1
- package/dist/cli/rove.js +1 -1
- package/dist/skills/rove/SKILL.md +77 -1
- package/dist/skills/rove/references/api-flags.md +1 -1
- package/dist/web/assets/{index-DXX0TiVw.js → index-BugGU1Rz.js} +36 -36
- package/dist/web/assets/index-DBXOSxIY.css +1 -0
- package/dist/web/assets/{term-mount-C5szHrI9.js → term-mount-DnP2B2rY.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/cli/chunk-0e0dd4gt.js +0 -2
- package/dist/cli/chunk-3qmb3hhp.js +0 -2
- package/dist/cli/chunk-44msqtz9.js +0 -2
- package/dist/cli/chunk-4cr4pb6t.js +0 -2
- package/dist/cli/chunk-4fsdtw4r.js +0 -2
- package/dist/cli/chunk-6mxck5m6.js +0 -2
- package/dist/cli/chunk-6xhvprnc.js +0 -2
- package/dist/cli/chunk-atn06ncf.js +0 -3
- package/dist/cli/chunk-b6xrkzhj.js +0 -2
- package/dist/cli/chunk-dtb0dqwh.js +0 -2
- package/dist/cli/chunk-fftmsc4z.js +0 -2
- package/dist/cli/chunk-gsqphkca.js +0 -2
- package/dist/cli/chunk-gw9kzc63.js +0 -2
- package/dist/cli/chunk-h8m26j04.js +0 -2
- package/dist/cli/chunk-hq76ge1j.js +0 -2
- package/dist/cli/chunk-k4c7aqtj.js +0 -2
- package/dist/cli/chunk-pne75syz.js +0 -2
- package/dist/cli/chunk-q6t3gcs1.js +0 -2
- package/dist/cli/chunk-qb7jzw8e.js +0 -2
- package/dist/cli/chunk-r92mwjet.js +0 -2
- package/dist/cli/chunk-s84z30t2.js +0 -2
- package/dist/cli/chunk-ta9w2w9k.js +0 -2
- package/dist/cli/chunk-ts3q3a8a.js +0 -2
- package/dist/cli/chunk-vddmgpdz.js +0 -2
- package/dist/cli/chunk-wcwzvssh.js +0 -2
- package/dist/cli/chunk-znbtn8b8.js +0 -2
- package/dist/web/assets/index-DcF7AQIK.css +0 -1
|
@@ -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-ne7bbq1z.js";import{ensurePluginEnginesLoaded}from"./chunk-qcdznw50.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)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,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{defaultDaemonLogPath,defaultPtyHostLogPath}from"./chunk-
|
|
2
|
+
import{defaultDaemonLogPath,defaultPtyHostLogPath}from"./chunk-2z2jwetd.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-91sykzqq.js";import{mkdirSync,readFileSync,writeFileSync}from"fs";import{dirname,join}from"path";var REPORT_ENV_SUFFIXES=["HOME_DIR","DAEMON_SOCKET_PATH","SOCKET_PATH","PTY_SOCKET_PATH","PTY_PORT","WEB_HOST","BIN_PATH","DEV","DEBUG","TERMINAL_BACKEND","TASK_ID","TAB_ID"],REPORT_ENV_KEYS=["SHELL","TERM","TERM_PROGRAM","TERM_PROGRAM_VERSION","COLORTERM","VISUAL","EDITOR",...REPORT_ENV_SUFFIXES.flatMap((suffix)=>[`ROVE_${suffix}`,`ROVE_${suffix}`]),"ROVE_INVOKED_AS"],LOG_TAIL_LINES=200;function logTail(path,count){try{return readFileSync(path,"utf8").split(`
|
|
3
3
|
`).filter((line)=>line.trim().length>0).slice(-count).join(`
|
|
4
4
|
`)}catch{return""}}function reportEnvLines(env){let shown=new Set(REPORT_ENV_KEYS),keys=new Set(shown);for(let key of Object.keys(env))if(key.startsWith("ROVE_")||key.startsWith("ROVE_"))keys.add(key);return[...keys].sort().map((key)=>{let value=env[key];if(value===void 0)return`${key}=(unset)`;return shown.has(key)?`${key}=${value}`:`${key}=(set)`})}function buildReportBundle(doctorLines,parts){return["# Rove doctor report",`generated: ${parts.generatedAt}`,"","## diagnosis",...doctorLines,"","## environment",...reportEnvLines(parts.env),"",`## daemon.log (last ${LOG_TAIL_LINES} lines)`,parts.daemonLog||"(empty or absent)","",`## pty.log (last ${LOG_TAIL_LINES} lines)`,parts.ptyLog||"(empty or absent)",""].join(`
|
|
5
5
|
`)}function writeReportBundle(doctorLines){let dir=dirname(defaultDaemonLogPath());mkdirSync(dir,{recursive:!0});let path=join(dir,"rove-doctor-report.txt");return writeFileSync(path,buildReportBundle(doctorLines,{generatedAt:new Date().toISOString(),env:process.env,daemonLog:logTail(defaultDaemonLogPath(),LOG_TAIL_LINES),ptyLog:logTail(defaultPtyHostLogPath(),LOG_TAIL_LINES)})),path}export{writeReportBundle,reportEnvLines,buildReportBundle};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{connectIfRunning}from"./chunk-mz82b1jf.js";import"./chunk-jhnpr3cj.js";import"./chunk-w56terew.js";import"./chunk-8wfz7gyp.js";import"./chunk-96kvwzj8.js";import"./chunk-y8hjgmn0.js";import"./chunk-pn5ygqn6.js";import"./chunk-apaw34c5.js";import"./chunk-yt15y085.js";import"./chunk-2z2jwetd.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import{__require}from"./chunk-91sykzqq.js";async function openLocalOrchestrator(){let{TaskIndexStore}=await import("./chunk-dz562xtj.js"),{GitWorktreeManager}=await import("./chunk-kvj8s9ck.js"),{Orchestrator}=await import("./chunk-44h0mhsa.js"),store=new TaskIndexStore;return await store.load(),new Orchestrator({store,worktrees:new GitWorktreeManager})}async function withDaemonOrLocal(bridge){let client=await connectIfRunning();if(client)try{return await bridge.daemon(client)}finally{client.close()}let orch=await openLocalOrchestrator();return bridge.local(orch)}export{withDaemonOrLocal,openLocalOrchestrator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ENGINE_NOT_OBSERVED_REASON,ENGINE_START_POLL_MS,ENGINE_START_PROBE_MS,deliverHostedPrompt,deliverToKey,ensurePtyHost,findEngineKey,isTaskKey,killTaskSessions,listSessions,listSessionsOrNull,openPtyHost,outcomeFields,taskKeys}from"./chunk-53eqkfas.js";import"./chunk-qcces6e3.js";import"./chunk-ywwg5zxs.js";import"./chunk-y0skz8j9.js";import"./chunk-mqfvzdpr.js";import"./chunk-v62qfbbq.js";import"./chunk-rxqdw6s5.js";import"./chunk-xe3zr5b9.js";import"./chunk-gzn14mwk.js";import"./chunk-m6kw77w3.js";import"./chunk-6jcmdxza.js";import"./chunk-m9ssmhrc.js";import"./chunk-han0d078.js";import"./chunk-jz1kj4sf.js";import"./chunk-v8nbqjwc.js";import"./chunk-ws2q07kb.js";import"./chunk-g9ba25q5.js";import"./chunk-cqzkk7j0.js";import"./chunk-catrr0z3.js";import"./chunk-dvpjthdf.js";import"./chunk-tn9gtf18.js";import"./chunk-r7khfa3k.js";import"./chunk-sak1tphp.js";import"./chunk-y1xnjx8x.js";import"./chunk-etfh8f4z.js";import"./chunk-zsfyj36g.js";import"./chunk-1feav1w3.js";import"./chunk-vpph4nqf.js";import"./chunk-cmp64q4j.js";import"./chunk-8cw8zznb.js";import"./chunk-z3k0wg31.js";import"./chunk-4hvacnnr.js";import"./chunk-w7zv47mp.js";import"./chunk-mz82b1jf.js";import"./chunk-jhnpr3cj.js";import"./chunk-w56terew.js";import"./chunk-8wfz7gyp.js";import"./chunk-96kvwzj8.js";import"./chunk-v9n5e14e.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-mg1cas61.js";import"./chunk-8trtyc98.js";import"./chunk-g5jc6c2d.js";import"./chunk-qdatysve.js";import"./chunk-7kysxgbq.js";import"./chunk-5c591htx.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-jt9n8k7z.js";import"./chunk-apaw34c5.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";export{taskKeys,outcomeFields,openPtyHost,listSessionsOrNull,listSessions,killTaskSessions,isTaskKey,findEngineKey,ensurePtyHost,deliverToKey,deliverHostedPrompt,ENGINE_START_PROBE_MS,ENGINE_START_POLL_MS,ENGINE_NOT_OBSERVED_REASON};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{upgradeMachine}from"./chunk-vyh3ddp0.js";import"./chunk-b53drx76.js";import"./chunk-7m3txy05.js";import"./chunk-qqc8mn6x.js";import"./chunk-y1xnjx8x.js";import"./chunk-8trtyc98.js";import"./chunk-7kysxgbq.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.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-91sykzqq.js";export{upgradeMachine};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{CURRENT_VERSION}from"./chunk-
|
|
2
|
+
import{CURRENT_VERSION}from"./chunk-qqc8mn6x.js";import{isRemoteWorkspace,readRemoteWorkspace,rxPath}from"./chunk-6jcmdxza.js";import"./chunk-han0d078.js";import{flagValue}from"./chunk-zsfyj36g.js";import{quoteShellArg}from"./chunk-7kysxgbq.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";import{spawnSync}from"child_process";import{realpathSync}from"fs";import{dirname,resolve}from"path";import{createInterface}from"readline";async function runRemoteWorkspaceSubcommand(args){let dir=flagValue(args,"--dir")??process.cwd();if(!isRemoteWorkspace(dir))return;if(args[0]==="bash-hook")process.stdout.write(bashHookReply(await readAll(process.stdin),rxPath(dir)));else if(args[0]==="file-hook")process.stdout.write(fileHookReply(await readAll(process.stdin),dir));else if(args[0]==="mcp")await serveMcp(rxPath(dir))}async function readAll(stream){let text="";for await(let chunk of stream)text+=chunk;return text}function bashHookReply(payload,rx){let input;try{input=JSON.parse(payload).tool_input??{}}catch{return""}let command=input.command;if(typeof command!=="string"||/^\s*(\S*\/)?rx\s/.test(command))return"";return JSON.stringify({hookSpecificOutput:{hookEventName:"PreToolUse",updatedInput:{...input,command:`${quoteShellArg(rx)} ${quoteShellArg(command)}`}}})}function fileHookReply(payload,dir){let call;try{call=JSON.parse(payload)}catch{return""}let input=call.tool_input??{},named=[input.file_path,input.notebook_path,input.path].find((p)=>typeof p==="string"&&p),target=resolve(call.cwd??dir,typeof named==="string"?named:"."),ws=readRemoteWorkspace(dir);if(![dir,realPath(dir),...ws?[ws.path]:[]].some((root)=>target===root||target.startsWith(`${root}/`)))return"";let where=ws?`the machine "${ws.machine}", at ${ws.path}`:"another machine";return JSON.stringify({hookSpecificOutput:{hookEventName:"PreToolUse",permissionDecision:"deny",permissionDecisionReason:`${target} is in the project, which is on ${where}. This tool only sees this machine. Use the workspace read / write / edit tools for the project's files (paths relative to its root), and the shell to search it (rg, find, ls): shell commands run there.`}})}function realPath(dir){try{return realpathSync(dir)}catch{return dir}}var runThrough=(rx)=>(command,stdin)=>{let res=spawnSync(rx,[command],{input:stdin,encoding:"utf8",maxBuffer:67108864});return{ok:res.status===0,out:res.status===0?res.stdout:(res.stderr||res.stdout||"failed").trim()}},READ_LINES=2000,TOOLS=[{name:"read",description:`Read a file of the project. Returns its text; at most ${READ_LINES} lines unless offset/limit ask for a range.`,inputSchema:{type:"object",properties:{path:{type:"string",description:"Path, relative to the project root or absolute on that machine."},offset:{type:"number",description:"First line to return (1-based)."},limit:{type:"number",description:"How many lines to return."}},required:["path"]}},{name:"write",description:"Create a file of the project or replace its whole content. Parent directories are created.",inputSchema:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},required:["path","content"]}},{name:"edit",description:"Replace old_string with new_string in a file of the project. old_string must match exactly and occur once, unless replace_all is true.",inputSchema:{type:"object",properties:{path:{type:"string"},old_string:{type:"string"},new_string:{type:"string"},replace_all:{type:"boolean"}},required:["path","old_string","new_string"]}}];function callWorkspaceTool(run,name,a){let path=typeof a.path==="string"?a.path:"";if(!path)throw Error("path is required");let file=quoteShellArg(path),must=(res)=>{if(!res.ok)throw Error(res.out);return res.out},write=(content)=>must(run(`mkdir -p -- ${quoteShellArg(dirname(path))} && cat > ${file}`,content));if(name==="read"){let from=Math.max(1,Math.trunc(Number(a.offset)||1)),count=Math.max(1,Math.trunc(Number(a.limit)||READ_LINES)),text=must(run(`sed -n '${from},${from+count}p' -- ${file}`)),lines=text.split(`
|
|
3
3
|
`);if(lines.length<=count+1)return text;return`${lines.slice(0,count).join(`
|
|
4
4
|
`)}
|
|
5
5
|
[cut at line ${from+count-1}; pass offset to read on]`}if(name==="write"){if(typeof a.content!=="string")throw Error("content is required");return write(a.content),`wrote ${path}`}if(name==="edit"){let{old_string:from,new_string:to}=a;if(typeof from!=="string"||typeof to!=="string"||!from)throw Error("old_string and new_string are required");let text=must(run(`cat -- ${file}`)),hits=text.split(from).length-1;if(hits===0)throw Error(`old_string not found in ${path}`);if(hits>1&&a.replace_all!==!0)throw Error(`old_string occurs ${hits} times in ${path}; add context to make it unique, or pass replace_all`);return write(text.split(from).join(to)),`edited ${path} (${hits} replacement${hits===1?"":"s"})`}throw Error(`unknown tool: ${name}`)}function mcpReply(run,msg){if(msg.id===void 0||!msg.method)return null;let result=(value)=>({jsonrpc:"2.0",id:msg.id,result:value});if(msg.method==="initialize")return result({protocolVersion:typeof msg.params?.protocolVersion==="string"?msg.params.protocolVersion:"2024-11-05",capabilities:{tools:{}},serverInfo:{name:"rove-workspace",version:CURRENT_VERSION}});if(msg.method==="ping")return result({});if(msg.method==="tools/list")return result({tools:TOOLS});if(msg.method==="tools/call"){let args=msg.params?.arguments??{};try{let text=callWorkspaceTool(run,String(msg.params?.name??""),args);return result({content:[{type:"text",text}]})}catch(err){return result({content:[{type:"text",text:err instanceof Error?err.message:String(err)}],isError:!0})}}return{jsonrpc:"2.0",id:msg.id,error:{code:-32601,message:`method not found: ${msg.method}`}}}async function serveMcp(rx){let run=runThrough(rx);for await(let line of createInterface({input:process.stdin})){if(!line.trim())continue;let msg;try{msg=JSON.parse(line)}catch{continue}let reply=mcpReply(run,msg);if(reply)process.stdout.write(`${JSON.stringify(reply)}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ReleaseNotesBody,bootPaneHost,pageCloseBindings,runShellUpdater,useBindings,useT,useTheme}from"./chunk-
|
|
2
|
+
import{ReleaseNotesBody,bootPaneHost,pageCloseBindings,runShellUpdater,useBindings,useT,useTheme}from"./chunk-9wre0m8x.js";import"./chunk-6dk6zcqm.js";import{$jsx,$jsxs,useRenderer}from"./chunk-preza5s4.js";import{require_react_production}from"./chunk-2wd4744g.js";import"./chunk-t7thxgcc.js";import"./chunk-cpgnm1xr.js";import"./chunk-r3s2t9af.js";import"./chunk-6xr1prk6.js";import"./chunk-g37q36fs.js";import"./chunk-mdx18vtz.js";import"./chunk-55ajzrj6.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-6xppe9bj.js";import{BREAKING_VERSIONS,CURRENT_VERSION,breakingVersionsCrossed,fetchReleaseNotes,fetchReleaseSummaries,updateCommandFor}from"./chunk-qqc8mn6x.js";import"./chunk-v62qfbbq.js";import"./chunk-rxqdw6s5.js";import"./chunk-gzn14mwk.js";import"./chunk-dvpjthdf.js";import"./chunk-tn9gtf18.js";import"./chunk-1feav1w3.js";import{currentLang}from"./chunk-vpph4nqf.js";import"./chunk-cmp64q4j.js";import"./chunk-mz82b1jf.js";import"./chunk-jhnpr3cj.js";import"./chunk-w56terew.js";import"./chunk-8wfz7gyp.js";import"./chunk-96kvwzj8.js";import"./chunk-40dgv828.js";import"./chunk-9gctbddn.js";import"./chunk-8trtyc98.js";import"./chunk-y8hjgmn0.js";import"./chunk-xy8be792.js";import"./chunk-pn5ygqn6.js";import"./chunk-7ghwdjdc.js";import"./chunk-jt9n8k7z.js";import"./chunk-apaw34c5.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{__toESM}from"./chunk-91sykzqq.js";import{TextAttributes}from"@opentui/core";var import_react2=__toESM(require_react_production(),1);var RELEASE_LIMIT=20;function VersionsPage(props){let{theme}=useTheme(),t=useT(),renderer=useRenderer(),[releases,setReleases]=import_react2.useState(null),[cursor,setCursor]=import_react2.useState(0),[notes,setNotes]=import_react2.useState({}),[status,setStatus]=import_react2.useState(null),selected=releases?.[cursor],crossings=selected?breakingVersionsCrossed(CURRENT_VERSION,selected.version):[],loadSummaries=props.fetchSummaries??fetchReleaseSummaries,loadNotes=props.fetchNotes??fetchReleaseNotes;import_react2.useEffect(()=>{loadSummaries(RELEASE_LIMIT).then((fetched)=>setReleases(fetched))},[loadSummaries]);let selectedVersion=selected?.version;import_react2.useEffect(()=>{if(selectedVersion===void 0||notes[selectedVersion]!==void 0)return;setNotes((cache)=>({...cache,[selectedVersion]:"loading"})),loadNotes(selectedVersion,currentLang()).then((fetched)=>{setNotes((cache)=>({...cache,[selectedVersion]:fetched??"missing"}))})},[selectedVersion,notes,loadNotes]);function move(delta){let count=releases?.length??0;if(count===0)return;setCursor((index)=>(index+delta+count)%count)}async function installSelected(){if(!selected)return;setStatus(t("update.statusRunningUpdater")),await new Promise((resolve)=>setTimeout(resolve,30)),await runShellUpdater({renderer,t,targetLabel:selected.version,command:updateCommandFor(selected.version)})}useBindings(()=>({bindings:[{key:"up",cmd:()=>move(-1)},{key:"down",cmd:()=>move(1)},{key:"k",cmd:()=>move(-1)},{key:"j",cmd:()=>move(1)},{key:"return",cmd:()=>void installSelected()},{key:"u",cmd:()=>void installSelected()},...pageCloseBindings(props.onClose)]}));let selectedNotes=selectedVersion===void 0?void 0:notes[selectedVersion];return $jsxs("box",{flexDirection:"column",flexGrow:1,paddingTop:1,paddingLeft:2,paddingRight:2,children:[$jsxs("box",{flexDirection:"row",justifyContent:"space-between",flexShrink:0,children:[$jsx("text",{fg:theme.text,attributes:TextAttributes.BOLD,wrapMode:"none",children:t("update.versions.pageTitle")}),$jsx("text",{fg:theme.textMuted,wrapMode:"none",onMouseUp:props.onClose,children:t("update.versions.closeHint")})]}),$jsxs("box",{flexDirection:"row",flexGrow:1,paddingTop:1,gap:2,children:[$jsxs("box",{flexDirection:"column",width:26,flexShrink:0,children:[releases===null?$jsx("text",{fg:theme.textMuted,children:t("update.versions.loading")}):null,releases!==null&&releases.length===0?$jsx("text",{fg:theme.textMuted,wrapMode:"word",children:t("update.versions.unavailable")}):null,(releases??[]).map((release,index)=>{let active=index===cursor,tags=[release.version===CURRENT_VERSION?t("update.versions.tagCurrent"):"",index===0?t("update.versions.tagLatest"):"",BREAKING_VERSIONS.includes(release.version)?t("update.versions.tagBreaking"):""].filter(Boolean).join(" ");return $jsxs("box",{flexDirection:"row",gap:1,paddingLeft:1,backgroundColor:active?theme.primary:void 0,onMouseUp:()=>setCursor(index),children:[$jsxs("text",{fg:active?theme.selectedListItemText:theme.text,attributes:release.version===CURRENT_VERSION?TextAttributes.BOLD:void 0,wrapMode:"none",children:["v",release.version]}),tags?$jsx("text",{fg:active?theme.selectedListItemText:theme.textMuted,wrapMode:"none",children:tags}):null]},release.version)})]}),$jsxs("box",{flexDirection:"column",flexGrow:1,flexShrink:1,children:[$jsx("scrollbox",{flexGrow:1,flexShrink:1,stickyScroll:!1,verticalScrollbarOptions:{trackOptions:{foregroundColor:"transparent"}},children:$jsxs("box",{flexDirection:"column",paddingRight:1,paddingBottom:1,gap:0,children:[selectedNotes==="loading"?$jsx("text",{fg:theme.textMuted,children:t("update.loadingNotes")}):null,selectedNotes==="missing"?$jsx("text",{fg:theme.textMuted,wrapMode:"word",children:t("update.notesUnavailable")}):null,selectedNotes!==void 0&&selectedNotes!=="loading"&&selectedNotes!=="missing"?$jsx(ReleaseNotesBody,{body:selectedNotes.body}):null]})}),crossings.length>0?$jsx("text",{fg:theme.warning,wrapMode:"word",children:t("update.versions.breakingWarning",{versions:crossings.join(", ")})}):null]})]}),status?$jsx("text",{fg:theme.info,wrapMode:"word",children:status}):null,$jsx("box",{flexShrink:0,paddingTop:1,children:$jsx("text",{fg:theme.textMuted,attributes:TextAttributes.DIM,wrapMode:"none",children:t("update.versions.footerHint")})})]})}var INLINE_ROWS=24;async function startVersionsHost(){await bootPaneHost({inlineRows:INLINE_ROWS,setup:()=>({root:()=>$jsx(VersionsPage,{onClose:()=>process.exit(0)})})})}export{startVersionsHost,VersionsPage};
|