@reason-machines/cli-linux-arm64-musl 0.2.367 → 0.2.368
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/ara +1 -1
- package/bin/vm-hands/api-credentials-ke2v1y5k.js +2 -0
- package/bin/vm-hands/api-ewpnfn05.js +2 -0
- package/bin/vm-hands/{ask-relay-99s9r5qx.js → ask-relay-y5v8wyxy.js} +3 -3
- package/bin/vm-hands/connect-cli-nm7at96x.js +2 -0
- package/bin/vm-hands/{custom-endpoint-device-rzf5q89e.js → custom-endpoint-device-wmcf39x6.js} +1 -1
- package/bin/vm-hands/desktop-account-cppm1dhr.js +2 -0
- package/bin/vm-hands/{device-workspace-4zmq6vnb.js → device-workspace-05nkwrpp.js} +1 -1
- package/bin/vm-hands/{hands-worker-source-s2p9t76m.js → hands-worker-source-5wv1djgv.js} +1 -1
- package/bin/vm-hands/{index-s2jxdd91.js → index-kf4q2kw5.js} +1 -1
- package/bin/vm-hands/{install-receipt-z3jw7v66.js → install-receipt-vaytv1sf.js} +1 -1
- package/bin/vm-hands/local-automation-v5awrbbd.js +2 -0
- package/bin/vm-hands/local-capabilities-wxmrcn9w.js +2 -0
- package/bin/vm-hands/local-desktop-users-ejwwkfer.js +2 -0
- package/bin/vm-hands/local-display-mac-x0eq4rzq.js +2 -0
- package/bin/vm-hands/local-display-session-ezjk5ykh.js +2 -0
- package/bin/vm-hands/local-pty-session-pzg7bk32.js +2 -0
- package/bin/vm-hands/{managed-runtime-8yf32zv3.js → managed-runtime-tp3070ba.js} +1 -1
- package/bin/vm-hands/{network-contract-mtrzq59w.js → network-contract-zez17y8t.js} +1 -1
- package/bin/vm-hands/package-gxv23nam.js +2 -0
- package/bin/vm-hands/permissions-bc9v5k73.js +2 -0
- package/bin/vm-hands/{reason-hands-protocol-b8c4s9jx.js → reason-hands-protocol-dase3v7x.js} +1 -1
- package/bin/vm-hands/serve-service-ad0yqe2n.js +2 -0
- package/bin/vm-hands/{status-gwe4v7q7.js → status-gstpmc50.js} +2 -2
- package/bin/vm-hands/version-vn3a7967.js +2 -0
- package/bin/vm-hands/{vm-hands-entry-lite-qdb917g9.js → vm-hands-entry-lite-1gk31757.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-0csqb5x1.js → vm-hands-entry-lite-2c88t2at.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-4p6v05yh.js → vm-hands-entry-lite-2fyemnas.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-d12rwjw1.js → vm-hands-entry-lite-2w18ysma.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-1yn5vrs6.js → vm-hands-entry-lite-4nkcn8sy.js} +37 -37
- package/bin/vm-hands/{vm-hands-entry-lite-pp4mnye8.js → vm-hands-entry-lite-4s4qrm5m.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-peqmq6j6.js → vm-hands-entry-lite-5zmn6a7p.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-1c1rxx8v.js → vm-hands-entry-lite-7fx4xtf6.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-10sgx6g1.js → vm-hands-entry-lite-8sddhaka.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-0rwpp6hr.js → vm-hands-entry-lite-9fr904x2.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-jmfb6mqq.js → vm-hands-entry-lite-b775ysr4.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-zg9a3kv5.js → vm-hands-entry-lite-bt6esncn.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-0q46m8na.js → vm-hands-entry-lite-d7y6aah1.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-5jbnm3bm.js → vm-hands-entry-lite-db4z7ekz.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-3ydgst12.js → vm-hands-entry-lite-dm52srp5.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-khnx8tzk.js → vm-hands-entry-lite-dq1fdx0j.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-6gtpyxz7.js → vm-hands-entry-lite-e8skq97c.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-21856esq.js → vm-hands-entry-lite-ew42tvvz.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-7cqmn2f8.js → vm-hands-entry-lite-fp51jz5j.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-44f1pr87.js → vm-hands-entry-lite-g576hpce.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-wry37am5.js → vm-hands-entry-lite-g9rvf5qk.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-thskh018.js → vm-hands-entry-lite-gzyps3ev.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-wej1p1ry.js → vm-hands-entry-lite-hh24bq0d.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-cgh7q3ss.js → vm-hands-entry-lite-kxajkxmr.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-gxjxx1r2.js → vm-hands-entry-lite-mcv6pse6.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-59napxaf.js → vm-hands-entry-lite-me398z5a.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-q01t7ykc.js → vm-hands-entry-lite-ngytzkx1.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-je3n2wnb.js → vm-hands-entry-lite-nhfd61cx.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-wmd391jw.js → vm-hands-entry-lite-pasmdmkj.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-xy8xmzjw.js → vm-hands-entry-lite-pt633d84.js} +1 -1
- package/bin/vm-hands/vm-hands-entry-lite-q9gjfqev.js +52 -0
- package/bin/vm-hands/{vm-hands-entry-lite-f4gvypnx.js → vm-hands-entry-lite-rjwk6sfj.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-5cmafbnh.js → vm-hands-entry-lite-s65swswr.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-smhq7c4x.js → vm-hands-entry-lite-sfsgeynk.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-ht2k3g94.js → vm-hands-entry-lite-vygp7vq8.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-6hcx1k08.js → vm-hands-entry-lite-w4swepp1.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-c4mk1cwv.js → vm-hands-entry-lite-w81kt3sf.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-dyyhxg5m.js → vm-hands-entry-lite-x9pmwqjd.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-d2pbd9ky.js → vm-hands-entry-lite-y3wncwjd.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-mq8bw5c9.js → vm-hands-entry-lite-y9wkxydj.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-p30699xy.js → vm-hands-entry-lite-zmf1terc.js} +2 -2
- package/bin/vm-hands/vm-hands-entry-lite.js +1 -1
- package/bin/vm-hands/{vm-hands-executor-frexe1jn.js → vm-hands-executor-n24f7xm4.js} +1 -1
- package/bin/vm-hands/vm-hands-op-runner-gep65pf2.js +2 -0
- package/bin/vm-hands/{vm-hands-runtime-90my200c.js → vm-hands-runtime-9y7gd6hx.js} +3 -3
- package/bin/vm-hands/worker-sandbox-e4kvy715.js +2 -0
- package/package.json +1 -1
- package/bin/vm-hands/api-credentials-5phwd017.js +0 -2
- package/bin/vm-hands/api-v98h8tbt.js +0 -2
- package/bin/vm-hands/connect-cli-9ef3cz0p.js +0 -2
- package/bin/vm-hands/desktop-account-2dtsbtf1.js +0 -2
- package/bin/vm-hands/local-automation-kykn3t5n.js +0 -2
- package/bin/vm-hands/local-capabilities-emphypye.js +0 -2
- package/bin/vm-hands/local-desktop-users-4nz6kmyw.js +0 -2
- package/bin/vm-hands/local-display-mac-v9ev5jg4.js +0 -2
- package/bin/vm-hands/local-display-session-bgmnyfdn.js +0 -2
- package/bin/vm-hands/local-pty-session-c394saph.js +0 -2
- package/bin/vm-hands/package-08dpakav.js +0 -2
- package/bin/vm-hands/permissions-b8k7me17.js +0 -2
- package/bin/vm-hands/serve-service-mqkz53dh.js +0 -2
- package/bin/vm-hands/version-bgxwc0n4.js +0 -2
- package/bin/vm-hands/vm-hands-entry-lite-4zg490k6.js +0 -37
- package/bin/vm-hands/vm-hands-op-runner-aekwp51s.js +0 -2
- package/bin/vm-hands/worker-sandbox-bjwykp0q.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$j as M}from"./vm-hands-entry-lite-y3wncwjd.js";import{fk as G}from"./vm-hands-entry-lite-7fx4xtf6.js";import{readdirSync as D,readFileSync as I}from"fs";import{userInfo as A}from"os";var O="--vm-hands-op-runner-kind=person";function x(q){let Q=new Set([q]),K=[];try{K=D("/proc")}catch{}for(let z of K){if(!/^\d+$/.test(z))continue;try{let X=I(`/proc/${z}/stat`,"utf8");if(Number(X.slice(X.lastIndexOf(")")+2).split(" ")[3])===q)Q.add(Number(z))}catch{}}for(let z of Q)try{process.kill(z,"SIGKILL")}catch{}}var C=(q)=>{let Q=globalThis.Bun;if(!Q)throw new M("pty_unavailable","Reason terminals require the Bun runtime.");let K=Q.spawn({cmd:[q.shell,...q.args],cwd:q.cwd,env:{...q.environment,TERM:"xterm-256color"},terminal:{cols:q.cols,rows:q.rows,data:(J,Y)=>q.onData(Y)}}),z=K.terminal,X=()=>{x(K.pid);try{z?.close()}catch{}};if(!z)throw X(),new M("pty_unavailable","Reason could not allocate a pseudo-terminal.");return{write:(J)=>z.write(J),resize:(J,Y)=>z.resize(J,Y),kill:X,exited:K.exited.then((J)=>typeof J==="number"?J:null,()=>null)}};function L(){let q=(()=>{try{return A().username}catch{return}})();return{PATH:process.env.PATH,HOME:process.env.HOME,SHELL:process.env.SHELL,LANG:"C.UTF-8",...q?{USER:q,LOGNAME:q}:{}}}async function P(){let[{executeLocalOperation:q,spawnCaptured:Q},{runLocalPtySession:K},{configureDesktopAccount:z},{configureWorkerSandbox:X}]=await Promise.all([import("./local-capabilities-wxmrcn9w.js"),import("./local-pty-session-pzg7bk32.js"),import("./desktop-account-cppm1dhr.js"),import("./worker-sandbox-e4kvy715.js")]);X();let T=process.argv.includes(O),J=($,j,F)=>Q($,j[0]==="-lic"?["-lc",...j.slice(1)]:j,F),Y=(process.geteuid?.()??0)!==0,H=new Map,Z=($)=>{try{process.send?.($)}catch{}};process.on("message",($)=>{let j=$;if(j?.t==="cancel"){H.get(j.id)?.abort();return}if(j?.t!=="op")return;if(!Y){Z({t:"done",id:j.id,completion:{status:"failed",error_code:"vm_hands_payload_account_unavailable"}});return}let F=j.claim.capability;if(F==="pty.start"&&!T){Z({t:"done",id:j.id,completion:{status:"failed",error_code:"capability_not_granted"}});return}let U=new AbortController;H.set(j.id,U);let V=F==="pty.start"?{runPtySession:(B)=>K(B,{spawnPty:C,environment:L(),loadProxy:()=>null})}:{worker:j.worker,...F==="exec.full"?{spawnFullControl:J}:{}};q(j.state,j.claim,{...V,signal:U.signal,emit:(B)=>{let{deliverySignal:N,...W}=B;Z({t:"event",id:j.id,event:W})}}).then((B)=>Z({t:"done",id:j.id,completion:B}),(B)=>Z({t:"done",id:j.id,completion:{status:"failed",error_code:B&&typeof B==="object"&&"code"in B&&typeof B.code==="string"?B.code:"vm_hands_op_failed"}})).finally(()=>H.delete(j.id))}),process.on("disconnect",()=>process.exit(0)),await new Promise(()=>{})}
|
|
3
3
|
export{O as s,C as t,P as u};
|