@reason-machines/cli-linux-arm64 0.2.458 → 0.2.460
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-7aqwa709.js +2 -0
- package/bin/vm-hands/api-credentials-fh34tvkh.js +2 -0
- package/bin/vm-hands/connect-cli-8vkhdyn7.js +2 -0
- package/bin/vm-hands/credentials-31d5svns.js +2 -0
- package/bin/vm-hands/custom-endpoint-device-v3rkzm7q.js +2 -0
- package/bin/vm-hands/desktop-account-1k06r449.js +2 -0
- package/bin/vm-hands/device-workspace-vaqjetag.js +2 -0
- package/bin/vm-hands/{fsevents-5c1c8fc6.js → fsevents-sxsgn7s9.js} +1 -1
- package/bin/vm-hands/hands-worker-source-1y3ffkre.js +2 -0
- package/bin/vm-hands/{index-0dp6x9h4.js → index-ww1zq4h9.js} +18 -18
- package/bin/vm-hands/install-receipt-g4xmdyrg.js +2 -0
- package/bin/vm-hands/local-automation-khtqsw27.js +2 -0
- package/bin/vm-hands/local-capabilities-0v1tmead.js +2 -0
- package/bin/vm-hands/local-desktop-users-xk05xr6n.js +2 -0
- package/bin/vm-hands/local-display-mac-49yz00hp.js +2 -0
- package/bin/vm-hands/local-display-session-ae33d049.js +2 -0
- package/bin/vm-hands/local-display-video-b3hyaefy.js +2 -0
- package/bin/vm-hands/local-managed-process-pnd72aaw.js +2 -0
- package/bin/vm-hands/local-pty-session-hcpz5scq.js +2 -0
- package/bin/vm-hands/managed-runtime-e6ev22c7.js +2 -0
- package/bin/vm-hands/network-contract-g1jewvb5.js +2 -0
- package/bin/vm-hands/package-8v6gpwas.js +2 -0
- package/bin/vm-hands/permissions-a7rcytp4.js +2 -0
- package/bin/vm-hands/reason-hands-protocol-cebk43jj.js +2 -0
- package/bin/vm-hands/serve-service-ddds922x.js +2 -0
- package/bin/vm-hands/status-q3by8hq6.js +10 -0
- package/bin/vm-hands/version-e55vkeaw.js +2 -0
- package/bin/vm-hands/{vm-hands-entry-lite-hg4zeyaq.js → vm-hands-entry-lite-168m1q57.js} +9 -9
- package/bin/vm-hands/vm-hands-entry-lite-1f25jgyr.js +3 -0
- package/bin/vm-hands/{vm-hands-entry-lite-12rzrd95.js → vm-hands-entry-lite-1ts6q468.js} +2 -2
- package/bin/vm-hands/vm-hands-entry-lite-26w5ejds.js +5 -0
- package/bin/vm-hands/{vm-hands-entry-lite-b8k78r34.js → vm-hands-entry-lite-2mm1b4qj.js} +32 -32
- package/bin/vm-hands/{vm-hands-entry-lite-d9g1pzzx.js → vm-hands-entry-lite-38qt915d.js} +3 -3
- package/bin/vm-hands/{vm-hands-entry-lite-t5q30ne0.js → vm-hands-entry-lite-43v0ccsr.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-ba3qq0bs.js → vm-hands-entry-lite-5agyspqp.js} +4 -4
- package/bin/vm-hands/{vm-hands-entry-lite-4fwf7wgb.js → vm-hands-entry-lite-6ccgnrgg.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-2d4yxt6s.js → vm-hands-entry-lite-6zzn5qbb.js} +14 -9
- package/bin/vm-hands/{vm-hands-entry-lite-2cadk44t.js → vm-hands-entry-lite-75y8022r.js} +12 -12
- package/bin/vm-hands/{vm-hands-entry-lite-a3w8m8nb.js → vm-hands-entry-lite-76xb3wgd.js} +3 -3
- package/bin/vm-hands/{vm-hands-entry-lite-9ynaxc3m.js → vm-hands-entry-lite-8402gdx0.js} +15 -15
- package/bin/vm-hands/{vm-hands-entry-lite-j75w7ppy.js → vm-hands-entry-lite-8fqrpycx.js} +5 -5
- package/bin/vm-hands/{vm-hands-entry-lite-g9z467dk.js → vm-hands-entry-lite-8x5znjnm.js} +3 -3
- package/bin/vm-hands/{vm-hands-entry-lite-gcjjhsm2.js → vm-hands-entry-lite-99y4caf9.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-2yz6b0n3.js → vm-hands-entry-lite-9apjqd3s.js} +2 -2
- package/bin/vm-hands/vm-hands-entry-lite-9h4bfd4w.js +2 -0
- package/bin/vm-hands/{vm-hands-entry-lite-3rwtqr28.js → vm-hands-entry-lite-arrmd8qx.js} +2 -2
- package/bin/vm-hands/vm-hands-entry-lite-c4jj2s7a.js +3 -0
- package/bin/vm-hands/{vm-hands-entry-lite-0x3nqyax.js → vm-hands-entry-lite-cmm2ybdr.js} +3 -3
- package/bin/vm-hands/{vm-hands-entry-lite-07vak0wy.js → vm-hands-entry-lite-d2fveq6h.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-0nxa8avm.js → vm-hands-entry-lite-e7mr44v7.js} +33 -33
- package/bin/vm-hands/{vm-hands-entry-lite-j4kapgvr.js → vm-hands-entry-lite-eya4kgw8.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-em7mk9tn.js → vm-hands-entry-lite-ffn3k8a5.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-dh8f2h2d.js → vm-hands-entry-lite-kgknanhj.js} +5 -5
- package/bin/vm-hands/{vm-hands-entry-lite-9sa1knn7.js → vm-hands-entry-lite-mdqdbhk1.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-9z3v15d2.js → vm-hands-entry-lite-mmrdd8gk.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-8j7p91hr.js → vm-hands-entry-lite-mvsdn8xd.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-dcxvxpne.js → vm-hands-entry-lite-n8gng724.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-jcf61cb4.js → vm-hands-entry-lite-p2zjx5cn.js} +5 -5
- package/bin/vm-hands/{vm-hands-entry-lite-g11ygjyy.js → vm-hands-entry-lite-pj4vv7c3.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-r2ydfzy4.js → vm-hands-entry-lite-pry1an8k.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-1f2cam25.js → vm-hands-entry-lite-qh6hnhtr.js} +4 -4
- package/bin/vm-hands/{vm-hands-entry-lite-n4x7reax.js → vm-hands-entry-lite-r17x4n1w.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-3pnjdh8m.js → vm-hands-entry-lite-r3s4j28z.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-ndbx6t33.js → vm-hands-entry-lite-rgwm9y7f.js} +20 -20
- package/bin/vm-hands/{vm-hands-entry-lite-1qwwtep5.js → vm-hands-entry-lite-rkvhw41t.js} +1 -1
- package/bin/vm-hands/{vm-hands-entry-lite-q6p5cnw4.js → vm-hands-entry-lite-rseyh0ej.js} +3 -3
- package/bin/vm-hands/vm-hands-entry-lite-t7zr2tea.js +3 -0
- package/bin/vm-hands/{vm-hands-entry-lite-zcjwx0jz.js → vm-hands-entry-lite-te16hx2y.js} +5 -5
- package/bin/vm-hands/{vm-hands-entry-lite-r7zs4ce2.js → vm-hands-entry-lite-vsm90vke.js} +2 -2
- package/bin/vm-hands/{vm-hands-entry-lite-tqc2ezda.js → vm-hands-entry-lite-wsspeegr.js} +5 -5
- package/bin/vm-hands/{vm-hands-entry-lite-njs8k65s.js → vm-hands-entry-lite-z599genq.js} +4 -4
- package/bin/vm-hands/{vm-hands-entry-lite-qyp2a4c3.js → vm-hands-entry-lite-zw5stc7m.js} +2 -2
- package/bin/vm-hands/vm-hands-entry-lite.js +2 -2
- package/bin/vm-hands/{vm-hands-executor-5cfss4kk.js → vm-hands-executor-t04rk1xy.js} +3 -3
- package/bin/vm-hands/vm-hands-op-runner-tatf8me7.js +2 -0
- package/bin/vm-hands/{vm-hands-runtime-xc4te4a4.js → vm-hands-runtime-zx8s6rs7.js} +3 -3
- package/bin/vm-hands/worker-preview-readiness-10ex5n3a.js +2 -0
- package/bin/vm-hands/worker-sandbox-wjyfgj98.js +2 -0
- package/package.json +1 -1
- package/bin/vm-hands/api-credentials-skdwhmrz.js +0 -2
- package/bin/vm-hands/api-s23qevwq.js +0 -2
- package/bin/vm-hands/connect-cli-ra46yt61.js +0 -2
- package/bin/vm-hands/custom-endpoint-device-2s9qxe6t.js +0 -2
- package/bin/vm-hands/desktop-account-nb7g2ek5.js +0 -2
- package/bin/vm-hands/device-workspace-6av4wa2e.js +0 -2
- package/bin/vm-hands/hands-worker-source-v7ds6vp1.js +0 -2
- package/bin/vm-hands/install-receipt-4sjr0jhg.js +0 -2
- package/bin/vm-hands/local-automation-d6m82hz2.js +0 -2
- package/bin/vm-hands/local-capabilities-knfs3f4m.js +0 -2
- package/bin/vm-hands/local-desktop-users-2azpqr2m.js +0 -2
- package/bin/vm-hands/local-display-mac-1ddx6s3j.js +0 -2
- package/bin/vm-hands/local-display-session-12vk21q8.js +0 -2
- package/bin/vm-hands/local-display-video-14s59sd2.js +0 -2
- package/bin/vm-hands/local-managed-process-9k5m126b.js +0 -2
- package/bin/vm-hands/local-pty-session-gvnfgrxt.js +0 -2
- package/bin/vm-hands/managed-runtime-pkxf8pm7.js +0 -2
- package/bin/vm-hands/network-contract-8fkzm0t0.js +0 -2
- package/bin/vm-hands/package-k6jdrvn6.js +0 -2
- package/bin/vm-hands/permissions-qdejbe14.js +0 -2
- package/bin/vm-hands/reason-hands-protocol-nkj7481a.js +0 -2
- package/bin/vm-hands/serve-service-0y3w5sj5.js +0 -2
- package/bin/vm-hands/status-w4sv5pnh.js +0 -10
- package/bin/vm-hands/version-wharm62x.js +0 -2
- package/bin/vm-hands/vm-hands-entry-lite-9jgf223h.js +0 -5
- package/bin/vm-hands/vm-hands-entry-lite-cm497v4t.js +0 -3
- package/bin/vm-hands/vm-hands-entry-lite-hq5kd671.js +0 -2
- package/bin/vm-hands/vm-hands-entry-lite-hw26gewc.js +0 -3
- package/bin/vm-hands/vm-hands-op-runner-f29wpjzc.js +0 -2
- package/bin/vm-hands/worker-preview-readiness-kmwcrttt.js +0 -2
- package/bin/vm-hands/worker-sandbox-epre0fnv.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{gt,_,_t}from"./vm-hands-entry-lite-t7zr2tea.js";import{chmodSync as Q,existsSync as C,mkdirSync as Z,readlinkSync as S,readFileSync as b,renameSync as nn,unlinkSync as tn,writeFileSync as en}from"fs";import{homedir as u}from"os";import{basename as h,dirname as p,isAbsolute as f,join as o,normalize as A,relative as O,resolve as N}from"path";var c=3,P=1,D=2,x=1,T=1,L="Reason may read and write files and run commands in this signed-in OS account, subject to saved restrictions and operating system permissions.",M="Reason may later execute on this computer inside a Reason sandbox, limited to folders explicitly attached by the user.",F=[M,"Ara may later execute on this computer inside an Ara sandbox, limited to folders explicitly attached by the user."];function B(n){return typeof n==="string"&&F.includes(n)}var U=["future_device","updates_only","cli_only"];function y(n){return typeof n==="string"&&U.some((t)=>t===n)}function V(n=process.env,t=u()){return n.XDG_CONFIG_HOME?.trim()||o(t,".config")}function Kr(n=process.env,t=u()){let r=_({env:n}),e=V(n,t);return o(e,_t(e).state==="kept"?"ara":"reason",...r==="staging"?["staging"]:[],"installation.json")}function a(n){return typeof n==="string"&&n.trim().length>0}var K=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function z(n){return typeof n==="string"&&K.test(n)}function l(n){return a(n)&&f(n)&&A(n)===n}function g(n){if(!n||typeof n!=="object"||Array.isArray(n))return!1;let t=n;return l(t.path)&&(t.role==="launcher"&&(t.kind==="file"||t.kind==="symlink")||t.role==="worker_root"&&t.kind==="directory"||t.role==="alias"&&t.kind==="symlink"&&l(t.target))}function m(n){return n==="staging"?["reason-staging","ara-staging"]:["reason","ara"]}function Yn(n){let t=n.owned_paths.filter((e)=>e.role==="launcher").map((e)=>e.path),[r]=m(n.channel);return t.find((e)=>h(e)===r)??t[0]??null}function I(n){let[t,r]=m(n.channel==="staging"?"staging":"production"),e=[[t,r],[r,t]];return n.owned_paths?.every((i)=>i.role!=="alias"||n.installer==="shell"&&e.some(([s,R])=>i.path===o(n.install_dir,s)&&i.target===o(n.install_dir,R))&&n.owned_paths?.some((s)=>s.role==="launcher"&&s.path===i.target))??!1}function d(n,t){try{return N(p(n),S(n))===t}catch{return!1}}function Jr(n){let t=h(n),r=t==="ara"?"reason":t==="ara-staging"?"reason-staging":null;if(!r)return n;let e=o(p(n),r);return d(e,n)||d(n,e)?e:n}function w(n,t){let r=O(n,t);return r.length>0&&!r.startsWith("..")&&!f(r)}function E(n){if(n===null)return!0;if(!n||typeof n!=="object"||Array.isArray(n))return!1;let t=n;return(t.kind==="shell_profile"||t.kind==="windows_user_path")&&a(t.location)&&a(t.value)&&(typeof t.added_by_installer==="boolean"||typeof t.added_by_ara==="boolean")&&(t.added_by_installer===void 0||typeof t.added_by_installer==="boolean")&&(t.added_by_ara===void 0||typeof t.added_by_ara==="boolean")}function k(n,t){if(t===null)return n==="cli_only";if(!t||typeof t!=="object"||Array.isArray(t))return!1;let r=t;if(r.version!==x||!a(r.recorded_at))return!1;if(n==="future_device")return r.decision==="authorized"&&B(r.scope);return r.scope===null&&r.decision===(n==="updates_only"?"ask":"disabled")}function G(n){if(!n||typeof n!=="object"||Array.isArray(n))return null;let t=n;if(t.schema_version!==P||!gt.includes(t.channel)||t.install_method!=="curl"||t.installer!=="shell"&&t.installer!=="powershell"||!a(t.installed_at)||!a(t.version)||!a(t.target)||!l(t.install_dir)||!Array.isArray(t.owned_paths)||!t.owned_paths.every(g)||!t.owned_paths.every((r)=>w(t.install_dir,r.path))||!I(t)||!E(t.path_entry))return null;return{...t,schema_version:c,installation_id:null,background_mode:"cli_only",device_consent:null}}function j(n){if(!n||typeof n!=="object"||Array.isArray(n))return null;let t=n;if(t.schema_version!==D||!v(t)||!y(t.background_mode)||!k(t.background_mode,t.device_consent))return null;return{...t,schema_version:c,installation_id:null}}function v(n){return gt.includes(n.channel)&&(n.install_method==="curl"&&(n.installer==="shell"||n.installer==="powershell")||n.install_method==="desktop"&&n.installer==="desktop"&&Array.isArray(n.owned_paths)&&n.owned_paths.length===0&&n.path_entry===null)&&a(n.installed_at)&&a(n.version)&&a(n.target)&&l(n.install_dir)&&Array.isArray(n.owned_paths)&&n.owned_paths.every(g)&&n.owned_paths.every((t)=>w(n.install_dir,t.path))&&I(n)&&E(n.path_entry)}function H(n){let t=G(n);if(t)return t;let r=j(n);if(r)return r;if(!n||typeof n!=="object"||Array.isArray(n))return null;let e=n;if(e.schema_version!==c||!z(e.installation_id)||!v(e)||!y(e.background_mode)||!k(e.background_mode,e.device_consent)||e.desktop_account_access!==void 0&&(e.desktop_account_access===null||typeof e.desktop_account_access!=="object"||Array.isArray(e.desktop_account_access)||e.desktop_account_access.version!==T||e.desktop_account_access.scope!==L||!a(e.desktop_account_access.recorded_at)||!Number.isFinite(Date.parse(e.desktop_account_access.recorded_at))))return null;return e}function Qn(n=Kr()){if(!C(n))return null;try{return H(JSON.parse(b(n,"utf8")))}catch{return null}}export{Kr,Yn,Jr,Qn};
|