@reason-machines/cli-linux-x64 0.2.548 → 0.2.550
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/bin/reason +1 -1
- package/bin/vm-hands/api-1hg44g5p.js +2 -0
- package/bin/vm-hands/api-credentials-583d8hqh.js +2 -0
- package/bin/vm-hands/connect-cli-yag4mcx3.js +2 -0
- package/bin/vm-hands/{credentials-ts56n6gk.js → credentials-sbza33ac.js} +1 -1
- package/bin/vm-hands/{custom-endpoint-device-rrzyx1tx.js → custom-endpoint-device-mydksbg8.js} +1 -1
- package/bin/vm-hands/desktop-account-d7x4xn27.js +2 -0
- package/bin/vm-hands/{device-workspace-rxqaw78v.js → device-workspace-b534qy2c.js} +1 -1
- package/bin/vm-hands/{hands-worker-source-hkjndq4w.js → hands-worker-source-wc8a2nhs.js} +1 -1
- package/bin/vm-hands/{install-receipt-8tpfepde.js → install-receipt-zv1bjbgh.js} +1 -1
- package/bin/vm-hands/local-automation-h23c6rbt.js +2 -0
- package/bin/vm-hands/local-capabilities-nmavzbh6.js +2 -0
- package/bin/vm-hands/local-display-session-4yqgmf58.js +2 -0
- package/bin/vm-hands/local-display-video-h1gkxz10.js +2 -0
- package/bin/vm-hands/local-managed-process-71zecsgv.js +2 -0
- package/bin/vm-hands/local-pty-session-yr22ryvy.js +2 -0
- package/bin/vm-hands/{managed-runtime-8hmzpmxq.js → managed-runtime-fvfxqzt2.js} +1 -1
- package/bin/vm-hands/{network-contract-dp38yj78.js → network-contract-kx0hz3wt.js} +1 -1
- package/bin/vm-hands/permissions-srnj6hj6.js +2 -0
- package/bin/vm-hands/{reason-hands-protocol-39wqa1xa.js → reason-hands-protocol-k12sw3vm.js} +1 -1
- package/bin/vm-hands/{serve-service-n1csh09n.js → serve-service-7wjwt28s.js} +1 -1
- package/bin/vm-hands/status-7497p9kj.js +10 -0
- package/bin/vm-hands/version-3536gv17.js +2 -0
- package/bin/vm-hands/vm-hands-entry-lite-01jwj3j0.js +2 -0
- package/bin/vm-hands/{vm-hands-entry-lite-nxd394w3.js → vm-hands-entry-lite-07apxfh8.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-m8rnbrp2.js → vm-hands-entry-lite-0v7e7rjv.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-89hkxk2k.js → vm-hands-entry-lite-2kr0gzvk.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-s1nczbt6.js → vm-hands-entry-lite-2nnaprk5.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-m0bygsdn.js → vm-hands-entry-lite-3pk1chkr.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-nt8dqx0t.js → vm-hands-entry-lite-40c005a8.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-ytv9bqxy.js → vm-hands-entry-lite-485f6kk4.js} +5 -5
- package/bin/vm-hands/{vm-hands-entry-lite-a0g6c3wr.js → vm-hands-entry-lite-48rphbjm.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-t3tw786k.js → vm-hands-entry-lite-5de5nxcj.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-hhk4h552.js → vm-hands-entry-lite-645wzfhr.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-jvszqt0z.js → vm-hands-entry-lite-8dfw96ym.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-m7sm6pkh.js → vm-hands-entry-lite-aye39vcc.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-cvz0wr8h.js → vm-hands-entry-lite-bb3akhfh.js} +9 -9
- package/bin/vm-hands/{vm-hands-entry-lite-yrwtn479.js → vm-hands-entry-lite-dap4s1nc.js} +5 -5
- package/bin/vm-hands/{vm-hands-entry-lite-xv7tgef8.js → vm-hands-entry-lite-fxzadxz4.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-zm3jpx2q.js → vm-hands-entry-lite-hvsrx90r.js} +15 -15
- package/bin/vm-hands/{vm-hands-entry-lite-5ekjcxg4.js → vm-hands-entry-lite-jmv3f069.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-4r1yn35v.js → vm-hands-entry-lite-kmtz5h74.js} +1 -1
- package/bin/vm-hands/vm-hands-entry-lite-r0m8akr5.js +539 -0
- package/bin/vm-hands/{vm-hands-entry-lite-hv3dxd5k.js → vm-hands-entry-lite-sb7b4z8t.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-1102qzpr.js → vm-hands-entry-lite-tcbyhvee.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-m23yeat8.js → vm-hands-entry-lite-tegkvvs1.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-vj0gm694.js → vm-hands-entry-lite-w29d7ey0.js} +4 -4
- package/bin/vm-hands/{vm-hands-entry-lite-dszmx6yf.js → vm-hands-entry-lite-wzv13c8k.js} +3 -3
- package/bin/vm-hands/{vm-hands-entry-lite-ct4mtq1m.js → vm-hands-entry-lite-xrqztkhv.js} +1 -1
- package/bin/vm-hands/vm-hands-entry-lite.js +2 -2
- package/bin/vm-hands/{vm-hands-executor-qfhw00en.js → vm-hands-executor-x0ay52as.js} +1 -1
- package/bin/vm-hands/{vm-hands-op-runner-v8n4bfhf.js → vm-hands-op-runner-p0x18bzk.js} +1 -1
- package/bin/vm-hands/{vm-hands-runtime-3wanhz9x.js → vm-hands-runtime-1yay8jp7.js} +3 -3
- package/package.json +1 -1
- package/bin/vm-hands/api-82ywv35t.js +0 -2
- package/bin/vm-hands/api-credentials-3e255c4p.js +0 -2
- package/bin/vm-hands/connect-cli-xrj833yz.js +0 -2
- package/bin/vm-hands/desktop-account-jdqya1ff.js +0 -2
- package/bin/vm-hands/local-automation-awagzr9c.js +0 -2
- package/bin/vm-hands/local-capabilities-vq6zjv6n.js +0 -2
- package/bin/vm-hands/local-display-session-6bw6m96f.js +0 -2
- package/bin/vm-hands/local-display-video-g11v50n4.js +0 -2
- package/bin/vm-hands/local-managed-process-0kdh279w.js +0 -2
- package/bin/vm-hands/local-pty-session-92d5hy1c.js +0 -2
- package/bin/vm-hands/permissions-f0n5ggkt.js +0 -2
- package/bin/vm-hands/status-5ts4m2hs.js +0 -10
- package/bin/vm-hands/version-ts7dbj55.js +0 -2
- package/bin/vm-hands/vm-hands-entry-lite-hjsjqfd8.js +0 -2
- package/bin/vm-hands/vm-hands-entry-lite-mds15w8t.js +0 -539
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{r}from"./vm-hands-entry-lite-qy9xg6em.js";import{readdirSync as b,readFileSync as P}from"fs";import{userInfo as k}from"os";var ur="--vm-hands-op-runner-kind=person",dr="--vm-hands-op-runner-kind=surface",Rt="--vm-hands-surface-uid=",Tt="--vm-hands-surface-dir=",It=new Set(["automation.call.v1","display.stream.v1","preview.serve.v1"]);function R(t){let c=new Set([t]),l=[];try{l=b("/proc")}catch{}for(let o of l){if(!/^\d+$/.test(o))continue;try{let d=P(`/proc/${o}/stat`,"utf8");if(Number(d.slice(d.lastIndexOf(")")+2).split(" ")[3])===t)c.add(Number(o))}catch{}}for(let o of c)try{process.kill(o,"SIGKILL")}catch{}}var A=(t)=>{let c=globalThis.Bun;if(!c)throw new r("pty_unavailable","Reason terminals require the Bun runtime.");let l=c.spawn({cmd:[t.shell,...t.args],cwd:t.cwd,env:{...t.environment,TERM:"xterm-256color"},terminal:{cols:t.cols,rows:t.rows,data:(i,s)=>t.onData(s)}}),o=l.terminal,d=()=>{R(l.pid);try{o?.close()}catch{}};if(!o)throw d(),new r("pty_unavailable","Reason could not allocate a pseudo-terminal.");return{write:(i)=>o.write(i),resize:(i,s)=>o.resize(i,s),kill:d,exited:l.exited.then((i)=>typeof i==="number"?i:null,()=>null)}};function x(){let t=(()=>{try{return k().username}catch{return}})();return{PATH:process.env.PATH,HOME:process.env.HOME,SHELL:process.env.SHELL,LANG:"C.UTF-8",...t?{USER:t,LOGNAME:t}:{}}}async function E(t){let[{localAutomationAvailable:c},{localDisplayReady:l},{localDisplayVideoAvailable:o},{probeWorkerPreview:d},y]=await Promise.all([import("./local-automation-
|
|
2
|
+
import{r}from"./vm-hands-entry-lite-qy9xg6em.js";import{readdirSync as b,readFileSync as P}from"fs";import{userInfo as k}from"os";var ur="--vm-hands-op-runner-kind=person",dr="--vm-hands-op-runner-kind=surface",Rt="--vm-hands-surface-uid=",Tt="--vm-hands-surface-dir=",It=new Set(["automation.call.v1","display.stream.v1","preview.serve.v1"]);function R(t){let c=new Set([t]),l=[];try{l=b("/proc")}catch{}for(let o of l){if(!/^\d+$/.test(o))continue;try{let d=P(`/proc/${o}/stat`,"utf8");if(Number(d.slice(d.lastIndexOf(")")+2).split(" ")[3])===t)c.add(Number(o))}catch{}}for(let o of c)try{process.kill(o,"SIGKILL")}catch{}}var A=(t)=>{let c=globalThis.Bun;if(!c)throw new r("pty_unavailable","Reason terminals require the Bun runtime.");let l=c.spawn({cmd:[t.shell,...t.args],cwd:t.cwd,env:{...t.environment,TERM:"xterm-256color"},terminal:{cols:t.cols,rows:t.rows,data:(i,s)=>t.onData(s)}}),o=l.terminal,d=()=>{R(l.pid);try{o?.close()}catch{}};if(!o)throw d(),new r("pty_unavailable","Reason could not allocate a pseudo-terminal.");return{write:(i)=>o.write(i),resize:(i,s)=>o.resize(i,s),kill:d,exited:l.exited.then((i)=>typeof i==="number"?i:null,()=>null)}};function x(){let t=(()=>{try{return k().username}catch{return}})();return{PATH:process.env.PATH,HOME:process.env.HOME,SHELL:process.env.SHELL,LANG:"C.UTF-8",...t?{USER:t,LOGNAME:t}:{}}}async function E(t){let[{localAutomationAvailable:c},{localDisplayReady:l},{localDisplayVideoAvailable:o},{probeWorkerPreview:d},y]=await Promise.all([import("./local-automation-h23c6rbt.js"),import("./local-display-session-4yqgmf58.js"),import("./local-display-video-h1gkxz10.js"),import("./worker-preview-readiness-84stxabw.js"),import("fs")]),i=AbortSignal.timeout(15000),s=null;try{y.mkdirSync(t,{recursive:!0,mode:448}),s=y.mkdtempSync(`${t}/probe-`);let[g,p,m]=await Promise.all([Promise.resolve().then(()=>c()).catch(()=>!1),l().catch(()=>!1),d(s,i).catch(()=>!1)]);return{t:"readiness",display_video:p&&await o().catch(()=>!1),lanes:{"automation.call.v1":g,"display.stream.v1":p,"preview.serve.v1":m,"tunnel.open":m,"tunnel.close":m}}}finally{if(s)y.rmSync(s,{recursive:!0,force:!0})}}async function vs(){let[{executeLocalOperation:t,spawnCaptured:c},{runLocalPtySession:l},{configureDesktopAccount:o,desktopAccount:d},{configureWorkerSandbox:y}]=await Promise.all([import("./local-capabilities-nmavzbh6.js"),import("./local-pty-session-yr22ryvy.js"),import("./desktop-account-d7x4xn27.js"),import("./worker-sandbox-563c5g2f.js")]);y();let i=process.argv.includes(ur),s=process.argv.includes(dr),g=(a,e,u)=>c(a,e[0]==="-lic"?["-lc",...e.slice(1)]:e,u),p=(process.geteuid?.()??0)!==0;if(s){p=!1;let a=process.argv.find((e)=>e.startsWith(Rt))?.slice(Rt.length);if((process.geteuid?.()??-1)===0&&a)try{p=o({value:a})!==null&&d()!==null}catch{p=!1}}let m=new Map,v=new Map,f=(a)=>{try{process.send?.(a)}catch{}};if(process.on("message",(a)=>{let e=a;if(e?.t==="cancel"){m.get(e.id)?.abort();return}if(e?.t==="control"){let n=v.get(e.id);if(s&&n&&e.control&&typeof e.control.kind==="string")import("./local-managed-process-71zecsgv.js").then(({controlManagedDeviceProcess:_})=>_(n,{kind:e.control.kind,payload:e.control.payload??{}})).catch(()=>!1);return}if(e?.t==="retire"){if(s&&typeof e.operation_id==="string"&&typeof e.status==="string")import("./local-managed-process-71zecsgv.js").then(({retireManagedDeviceProcess:n})=>n(e.operation_id,e.status)).catch(()=>!1);return}if(e?.t!=="op")return;if(!p){f({t:"done",id:e.id,completion:{status:"failed",error_code:"vm_hands_payload_account_unavailable"}});return}let u=e.claim.capability;if(u==="pty.start"&&!i){f({t:"done",id:e.id,completion:{status:"failed",error_code:"capability_not_granted"}});return}if(It.has(u)!==s){f({t:"done",id:e.id,completion:{status:"failed",error_code:"capability_not_granted"}});return}let w=new AbortController;m.set(e.id,w),v.set(e.id,e.claim);let S=u==="pty.start"?{runPtySession:(n)=>l(n,{spawnPty:A,environment:x(),loadProxy:()=>null})}:{worker:e.worker,...u==="exec.full"?{spawnFullControl:g}:{}};t(e.state,e.claim,{...S,signal:w.signal,emit:(n)=>{let{deliverySignal:_,...h}=n;f({t:"event",id:e.id,event:h})}}).then((n)=>f({t:"done",id:e.id,completion:n}),(n)=>f({t:"done",id:e.id,completion:{status:"failed",error_code:n&&typeof n==="object"&&"code"in n&&typeof n.code==="string"?n.code:"vm_hands_op_failed"}})).finally(()=>{m.delete(e.id),v.delete(e.id)})}),process.on("disconnect",()=>process.exit(0)),s){let a=process.argv.find((u)=>u.startsWith(Tt))?.slice(Tt.length),e={t:"readiness",display_video:!1,lanes:{}};f(p&&a?await E(a).catch(()=>e):e)}await new Promise(()=>{})}
|
|
3
3
|
export{ur,dr,Rt,Tt,It,vs};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Qr,en,tn,or}from"./vm-hands-entry-lite-
|
|
2
|
+
import{Qr,en,tn,or}from"./vm-hands-entry-lite-48rphbjm.js";import{Do,Oo,P,Br,Fr,zn,ft,qn,jr,Je,Se,Wn,Xe,ne,Ye,Ee,Zt,Hr,Ur,Gn}from"./vm-hands-entry-lite-sb7b4z8t.js";import{lr}from"./vm-hands-entry-lite-s85p7tqp.js";import{Xt}from"./vm-hands-entry-lite-y9jarm7q.js";import{ve}from"./vm-hands-entry-lite-72nj66ab.js";var r=["cgroup_membership_read_failed","cgroup_v2_membership_absent","cgroup_scope_invalid","cgroup_root_unavailable","cgroup_directory_unavailable","cgroup_limit_read_failed","cgroup_events_read_failed","cgroup_current_read_failed","cgroup_stat_read_failed","boot_id_read_failed","boot_id_invalid","guest_meminfo_read_failed","guest_vmstat_read_failed","memory_counter_invalid","memory_field_missing","memory_capacity_invalid"];var o=String.raw`(function(fs, path) {
|
|
3
3
|
const fail = (message, reasonCode) => { throw Object.assign(Error(message), {reasonCode}); };
|
|
4
4
|
const read = (p, reasonCode, trim=true) => { try { const text=fs.readFileSync(p, "utf8"); return trim?text.trim():text; }
|
|
5
5
|
catch { fail("memory_read", reasonCode); } };
|