@sma1lboy/rove 0.9.290-next.244 → 0.9.290
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-e0a4r0v7.js → chunk-096d8t1w.js} +1 -1
- package/dist/cli/{chunk-gad02v91.js → chunk-1f1pp6g9.js} +1 -1
- package/dist/cli/{chunk-0fja7mch.js → chunk-1sv8pqd5.js} +1 -1
- package/dist/cli/{chunk-6sza99eb.js → chunk-2bms37we.js} +1 -1
- package/dist/cli/{chunk-chstknja.js → chunk-2dw5nnst.js} +2 -2
- package/dist/cli/{chunk-en7twkyr.js → chunk-4gh60hy3.js} +1 -1
- package/dist/cli/{chunk-tky2akch.js → chunk-5pjnsgpq.js} +1 -1
- package/dist/cli/{chunk-0s1219yc.js → chunk-7826y9er.js} +1 -1
- package/dist/cli/{chunk-ymekx8qh.js → chunk-7pmvpmyh.js} +1 -1
- package/dist/cli/{chunk-zc91nhqy.js → chunk-879qe7k5.js} +1 -1
- package/dist/cli/{chunk-2gv6b5jb.js → chunk-8zhm9zcy.js} +3 -3
- package/dist/cli/{chunk-18yaqk3m.js → chunk-9abnv2rp.js} +1 -1
- package/dist/cli/{chunk-y0x6xcqy.js → chunk-acq8t3f0.js} +1 -1
- package/dist/cli/{chunk-k7y82gtz.js → chunk-ahg4mfkk.js} +1 -1
- package/dist/cli/{chunk-43dp88p1.js → chunk-ak8qgzjj.js} +2 -2
- package/dist/cli/{chunk-j25257t2.js → chunk-bbm2nx1k.js} +1 -1
- package/dist/cli/{chunk-09c850h7.js → chunk-c9chdgpd.js} +2 -2
- package/dist/cli/{chunk-t29ewsgm.js → chunk-cjckb6v5.js} +1 -1
- package/dist/cli/{chunk-yygp4qnw.js → chunk-d14hd9er.js} +1 -1
- package/dist/cli/{chunk-1fx3cevt.js → chunk-e386zv6q.js} +2 -2
- package/dist/cli/{chunk-ewv0nk5g.js → chunk-edv4kzn7.js} +1 -1
- package/dist/cli/{chunk-7y0s7mj7.js → chunk-er2w0ypm.js} +1 -1
- package/dist/cli/{chunk-j9hv22pr.js → chunk-et43fdyh.js} +1 -1
- package/dist/cli/{chunk-xe9f5vrf.js → chunk-fp8vt81w.js} +1 -1
- package/dist/cli/{chunk-fw4cpx6x.js → chunk-gw8k0np0.js} +1 -1
- package/dist/cli/{chunk-w743j2ee.js → chunk-h08b9tnf.js} +1 -1
- package/dist/cli/{chunk-mhrt8590.js → chunk-h0m7vvw0.js} +1 -1
- package/dist/cli/{chunk-38yvq637.js → chunk-h5c4x18y.js} +1 -1
- package/dist/cli/{chunk-wzpq388z.js → chunk-h9f4k6m3.js} +1 -1
- package/dist/cli/{chunk-y3jcz1g7.js → chunk-hffc0cpc.js} +1 -1
- package/dist/cli/{chunk-hd62157q.js → chunk-hsnj8gk8.js} +1 -1
- package/dist/cli/{chunk-mstjz816.js → chunk-hsw0j462.js} +1 -1
- package/dist/cli/{chunk-fj7mp56a.js → chunk-j5200rz1.js} +1 -1
- package/dist/cli/{chunk-1ccwb79m.js → chunk-k2pqj8tp.js} +1 -1
- package/dist/cli/{chunk-5eskjd8s.js → chunk-kvwbd2jt.js} +2 -2
- package/dist/cli/{chunk-9bmc632c.js → chunk-mcsh9g8m.js} +1 -1
- package/dist/cli/{chunk-mrd7g7cj.js → chunk-n4z1kjsr.js} +1 -1
- package/dist/cli/{chunk-c89w56jn.js → chunk-pbk2yfvv.js} +3 -3
- package/dist/cli/{chunk-e97bdvvk.js → chunk-rqktbpmr.js} +1 -1
- package/dist/cli/{chunk-7xjk7n7y.js → chunk-rrzr54cj.js} +1 -1
- package/dist/cli/{chunk-q1zck6yc.js → chunk-sh6m9nvx.js} +1 -1
- package/dist/cli/{chunk-vhv4p83m.js → chunk-ssaeqq6t.js} +1 -1
- package/dist/cli/{chunk-v6fmhgnx.js → chunk-t6bwmhef.js} +1 -1
- package/dist/cli/{chunk-e8jjsgnk.js → chunk-w8swtyh2.js} +1 -1
- package/dist/cli/{chunk-xhpy9090.js → chunk-wdwhqcf8.js} +1 -1
- package/dist/cli/{chunk-9bgezjpm.js → chunk-wmj6d98x.js} +1 -1
- package/dist/cli/{chunk-83zkas4h.js → chunk-wwzgtqjr.js} +1 -1
- package/dist/cli/{chunk-jnhvg3vb.js → chunk-xs295wcy.js} +1 -1
- package/dist/cli/chunk-xxenxxtt.js +2 -0
- package/dist/cli/{chunk-6cxqyvwn.js → chunk-z6pdf6t9.js} +2 -2
- package/dist/cli/index.js +3 -3
- package/dist/cli/rove.js +1 -1
- package/dist/web/assets/index-DenH5E3i.js +63 -0
- package/dist/web/assets/{term-mount-yFkdBhhN.js → term-mount-ZA8nuqiR.js} +1 -1
- package/dist/web/index.html +1 -1
- package/dist/web/relay/index.html +2 -2
- package/package.json +3 -3
- package/dist/cli/chunk-97jpncj6.js +0 -2
- package/dist/web/assets/index-CeSPK5FP.js +0 -63
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{MachineFeed,decodeMachines}from"./chunk-
|
|
2
|
+
import{MachineFeed,decodeMachines}from"./chunk-xs295wcy.js";import"./chunk-mcsh9g8m.js";import"./chunk-j5200rz1.js";import"./chunk-6xr1prk6.js";import"./chunk-atn06ncf.js";import"./chunk-x0f8a3ez.js";import"./chunk-55ajzrj6.js";import"./chunk-t7j8g9f6.js";import"./chunk-dmzg9zdc.js";import"./chunk-6xppe9bj.js";import"./chunk-d14hd9er.js";import"./chunk-y1xnjx8x.js";import"./chunk-cmp64q4j.js";import"./chunk-q3cnqs5k.js";import"./chunk-88cap497.js";import"./chunk-8yce2acw.js";import"./chunk-29b3pj9h.js";import"./chunk-96kvwzj8.js";import"./chunk-40dgv828.js";import"./chunk-p84bhs57.js";import"./chunk-7kysxgbq.js";import"./chunk-vfrxywtx.js";import"./chunk-xy8be792.js";import"./chunk-pn5ygqn6.js";import"./chunk-w8da1czv.js";import"./chunk-k0yjcgd8.js";import"./chunk-yt15y085.js";import"./chunk-7kgksv06.js";import"./chunk-8143k3t6.js";import"./chunk-zt7wfnva.js";import"./chunk-g6wb8p4p.js";import"./chunk-nc46gddg.js";import"./chunk-91sykzqq.js";export{decodeMachines,MachineFeed};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{isPathLikeArg,runOpenDirectory}from"./chunk-
|
|
2
|
+
import{isPathLikeArg,runOpenDirectory}from"./chunk-sh6m9nvx.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,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-ak8qgzjj.js";import{ensurePluginEnginesLoaded}from"./chunk-w14jz8pd.js";import{ApiError,cliCaller,requireVerbInstalled,splitDaemonCode}from"./chunk-yx4mar9e.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};
|