@reason-machines/cli-linux-x64 0.2.397 → 0.2.398

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.
Files changed (93) hide show
  1. package/bin/reason +1 -1
  2. package/bin/runtime/srt/sandbox-runtime.mjs +38 -38
  3. package/bin/vm-hands/api-5fk9zhcg.js +2 -0
  4. package/bin/vm-hands/api-credentials-y4f0h1hq.js +2 -0
  5. package/bin/vm-hands/{ask-relay-daxz8gxj.js → ask-relay-t4m6n3zq.js} +3 -3
  6. package/bin/vm-hands/connect-cli-vq039qgz.js +2 -0
  7. package/bin/vm-hands/{custom-endpoint-device-qd3zcysz.js → custom-endpoint-device-2hzektq4.js} +1 -1
  8. package/bin/vm-hands/desktop-account-skdwydhn.js +2 -0
  9. package/bin/vm-hands/{device-workspace-ntckpym4.js → device-workspace-1n8aaz1j.js} +1 -1
  10. package/bin/vm-hands/{hands-worker-source-p6530nj7.js → hands-worker-source-2x76smhs.js} +1 -1
  11. package/bin/vm-hands/{index-z6q2j1e0.js → index-58750fwy.js} +1 -1
  12. package/bin/vm-hands/{install-receipt-kqayxfsn.js → install-receipt-jddye4b2.js} +1 -1
  13. package/bin/vm-hands/local-automation-azdzmmhp.js +2 -0
  14. package/bin/vm-hands/local-capabilities-vvpsze8k.js +2 -0
  15. package/bin/vm-hands/local-desktop-users-aqjt40m2.js +2 -0
  16. package/bin/vm-hands/local-display-mac-r6nm1tb1.js +2 -0
  17. package/bin/vm-hands/local-display-session-061jhxjw.js +2 -0
  18. package/bin/vm-hands/local-pty-session-ysfq0rq1.js +2 -0
  19. package/bin/vm-hands/{managed-runtime-x71r3316.js → managed-runtime-4rg0bkrp.js} +1 -1
  20. package/bin/vm-hands/network-contract-h7dq97gc.js +2 -0
  21. package/bin/vm-hands/package-9c803cqw.js +2 -0
  22. package/bin/vm-hands/permissions-y7petg2m.js +2 -0
  23. package/bin/vm-hands/{reason-hands-protocol-90kpyg4s.js → reason-hands-protocol-bexqzhq5.js} +1 -1
  24. package/bin/vm-hands/{serve-service-b48mzw9d.js → serve-service-bxyvbaf8.js} +1 -1
  25. package/bin/vm-hands/{status-agadvsjb.js → status-1md7695q.js} +2 -2
  26. package/bin/vm-hands/version-r3x5z0dj.js +2 -0
  27. package/bin/vm-hands/{vm-hands-entry-lite-bgs4zjkf.js → vm-hands-entry-lite-04y4b7c6.js} +1 -1
  28. package/bin/vm-hands/{vm-hands-entry-lite-qvj5560v.js → vm-hands-entry-lite-09yt840b.js} +5 -5
  29. package/bin/vm-hands/{vm-hands-entry-lite-e1cbqqqw.js → vm-hands-entry-lite-0a1ch6wx.js} +1 -1
  30. package/bin/vm-hands/{vm-hands-entry-lite-q5h859gg.js → vm-hands-entry-lite-0kzefw0a.js} +2 -2
  31. package/bin/vm-hands/{vm-hands-entry-lite-f9akybcm.js → vm-hands-entry-lite-18kfytsa.js} +2 -2
  32. package/bin/vm-hands/{vm-hands-entry-lite-0nd56w02.js → vm-hands-entry-lite-39wk67c3.js} +1 -1
  33. package/bin/vm-hands/{vm-hands-entry-lite-29f3m7x2.js → vm-hands-entry-lite-3pecyp8y.js} +1 -1
  34. package/bin/vm-hands/{vm-hands-entry-lite-f50vcbjg.js → vm-hands-entry-lite-4yw77epm.js} +1 -1
  35. package/bin/vm-hands/{vm-hands-entry-lite-5d31qv44.js → vm-hands-entry-lite-4yw8vx5h.js} +1 -1
  36. package/bin/vm-hands/{vm-hands-entry-lite-sbn9bmf7.js → vm-hands-entry-lite-6ffdqdyw.js} +1 -1
  37. package/bin/vm-hands/{vm-hands-entry-lite-gk3y60ap.js → vm-hands-entry-lite-923jmcs3.js} +2 -2
  38. package/bin/vm-hands/{vm-hands-entry-lite-kbjh8x26.js → vm-hands-entry-lite-ajmxhzs9.js} +1 -1
  39. package/bin/vm-hands/{vm-hands-entry-lite-xhbjkkk5.js → vm-hands-entry-lite-bw28d85m.js} +1 -1
  40. package/bin/vm-hands/{vm-hands-entry-lite-4tgb7chd.js → vm-hands-entry-lite-ce3vtmdk.js} +2 -2
  41. package/bin/vm-hands/{vm-hands-entry-lite-2sx1a43v.js → vm-hands-entry-lite-ecgyzbdp.js} +2 -2
  42. package/bin/vm-hands/{vm-hands-entry-lite-hx4w3r63.js → vm-hands-entry-lite-ew7amfaf.js} +2 -2
  43. package/bin/vm-hands/{vm-hands-entry-lite-t839nkd2.js → vm-hands-entry-lite-fgdtrsf4.js} +2 -2
  44. package/bin/vm-hands/{vm-hands-entry-lite-e99ftdr6.js → vm-hands-entry-lite-fkkmhfjc.js} +1 -1
  45. package/bin/vm-hands/{vm-hands-entry-lite-6nj2ejfh.js → vm-hands-entry-lite-h3vmfk68.js} +1 -1
  46. package/bin/vm-hands/{vm-hands-entry-lite-69n9q5f1.js → vm-hands-entry-lite-hkvkfq0z.js} +1 -1
  47. package/bin/vm-hands/{vm-hands-entry-lite-ps9gjbs5.js → vm-hands-entry-lite-ht482g94.js} +2 -2
  48. package/bin/vm-hands/vm-hands-entry-lite-jkcbweew.js +458 -0
  49. package/bin/vm-hands/{vm-hands-entry-lite-1cs1jy20.js → vm-hands-entry-lite-k90ysszf.js} +2 -2
  50. package/bin/vm-hands/{vm-hands-entry-lite-kq5ns1y9.js → vm-hands-entry-lite-mkrwdts5.js} +1 -1
  51. package/bin/vm-hands/{vm-hands-entry-lite-ek5r435m.js → vm-hands-entry-lite-mkynexaq.js} +2 -2
  52. package/bin/vm-hands/{vm-hands-entry-lite-sjn5yjvx.js → vm-hands-entry-lite-mrw8bv5s.js} +2 -2
  53. package/bin/vm-hands/{vm-hands-entry-lite-cfwke54v.js → vm-hands-entry-lite-n71rv7kv.js} +1 -1
  54. package/bin/vm-hands/{vm-hands-entry-lite-y81bvazz.js → vm-hands-entry-lite-nsbsmrva.js} +1 -1
  55. package/bin/vm-hands/{vm-hands-entry-lite-m7jreg8p.js → vm-hands-entry-lite-qv9j0tb5.js} +2 -2
  56. package/bin/vm-hands/{vm-hands-entry-lite-v0kpksbf.js → vm-hands-entry-lite-qwxmr70t.js} +1 -1
  57. package/bin/vm-hands/{vm-hands-entry-lite-hjqvsn91.js → vm-hands-entry-lite-qxx37a43.js} +2 -2
  58. package/bin/vm-hands/{vm-hands-entry-lite-efhxea9x.js → vm-hands-entry-lite-r67d5w6h.js} +2 -2
  59. package/bin/vm-hands/{vm-hands-entry-lite-vqfpryez.js → vm-hands-entry-lite-rmaawtgm.js} +1 -1
  60. package/bin/vm-hands/{vm-hands-entry-lite-smrymax6.js → vm-hands-entry-lite-saemagkr.js} +1 -1
  61. package/bin/vm-hands/{vm-hands-entry-lite-eatqxe5y.js → vm-hands-entry-lite-shm5nhjk.js} +1 -1
  62. package/bin/vm-hands/{vm-hands-entry-lite-34h6rv5c.js → vm-hands-entry-lite-sqyf9q9z.js} +1 -1
  63. package/bin/vm-hands/{vm-hands-entry-lite-j5krwp78.js → vm-hands-entry-lite-vz6nt5sc.js} +1 -1
  64. package/bin/vm-hands/{vm-hands-entry-lite-6ny2ejyx.js → vm-hands-entry-lite-wdpx0750.js} +1 -1
  65. package/bin/vm-hands/{vm-hands-entry-lite-k4erfh5k.js → vm-hands-entry-lite-x64d3bdx.js} +1 -1
  66. package/bin/vm-hands/{vm-hands-entry-lite-h9y0kkvn.js → vm-hands-entry-lite-xdfghcd0.js} +32 -32
  67. package/bin/vm-hands/{vm-hands-entry-lite-e4kdpq0t.js → vm-hands-entry-lite-xz9w76j7.js} +1 -1
  68. package/bin/vm-hands/{vm-hands-entry-lite-q62fwa20.js → vm-hands-entry-lite-z9y1sb0f.js} +1 -1
  69. package/bin/vm-hands/{vm-hands-entry-lite-6pppz0ze.js → vm-hands-entry-lite-zd4xbqsv.js} +2 -2
  70. package/bin/vm-hands/{vm-hands-entry-lite-vh8cmbzn.js → vm-hands-entry-lite-zxpa53zd.js} +3 -3
  71. package/bin/vm-hands/vm-hands-entry-lite.js +1 -1
  72. package/bin/vm-hands/{vm-hands-executor-sbvf94es.js → vm-hands-executor-652ckfnw.js} +1 -1
  73. package/bin/vm-hands/vm-hands-op-runner-z3fqtf7t.js +2 -0
  74. package/bin/vm-hands/{vm-hands-runtime-47wr7pv0.js → vm-hands-runtime-79x8rs7b.js} +3 -3
  75. package/bin/vm-hands/worker-sandbox-0bwwxmxz.js +2 -0
  76. package/package.json +1 -1
  77. package/bin/vm-hands/api-credentials-200ret9z.js +0 -2
  78. package/bin/vm-hands/api-jcccjxss.js +0 -2
  79. package/bin/vm-hands/connect-cli-b6zy55y2.js +0 -2
  80. package/bin/vm-hands/desktop-account-r5fsgx43.js +0 -2
  81. package/bin/vm-hands/local-automation-xf0bf7yj.js +0 -2
  82. package/bin/vm-hands/local-capabilities-zejjqdq5.js +0 -2
  83. package/bin/vm-hands/local-desktop-users-7kbrnvba.js +0 -2
  84. package/bin/vm-hands/local-display-mac-0k5twcjj.js +0 -2
  85. package/bin/vm-hands/local-display-session-njsbx29c.js +0 -2
  86. package/bin/vm-hands/local-pty-session-a0fz1f9t.js +0 -2
  87. package/bin/vm-hands/network-contract-xgbrevt2.js +0 -2
  88. package/bin/vm-hands/package-x8ct3epg.js +0 -2
  89. package/bin/vm-hands/permissions-b5hsfd8y.js +0 -2
  90. package/bin/vm-hands/version-2h9j0pmx.js +0 -2
  91. package/bin/vm-hands/vm-hands-entry-lite-j5mrzpef.js +0 -458
  92. package/bin/vm-hands/vm-hands-op-runner-rk2dc1mv.js +0 -2
  93. package/bin/vm-hands/worker-sandbox-ecjj14h5.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  import{createHash as f,createPublicKey as V,verify as G}from"crypto";var Y="libara_device_keychain.dylib",H="libreason_device_keychain.dylib",k=1,x=2,h=536870912,R=262144;var U=["darwin-arm64","darwin-x64"];class J extends Error{code;constructor(z,F){super(F);this.code=z;this.name="ManagedRuntimeError"}}var C=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,N=/^[a-f0-9]{64}$/;function X(z){return Boolean(z)&&typeof z==="object"&&!Array.isArray(z)}function $(z,F,Q=[]){let Z=new Set([...F,...Q]);return F.every((W)=>(W in z))&&Object.keys(z).every((W)=>Z.has(W))}function B(z){return typeof z==="string"&&C.test(z)}function O(z){return typeof z==="string"&&!Number.isNaN(Date.parse(z))&&new Date(z).toISOString()===z}function I(z){return U.includes(z)}function c(z,F){if(!B(z)||!I(F))throw new J("invalid_release_asset","Invalid managed runtime release asset.")}function K(z,F){return c(z,F),`reason-runtime-v${z}-${F}`}function g(z,F){return`${K(z,F)}-${H}`}var o="managed-runtime-identity.json",D="reason-macos-background-identity-v1";function q(z){if(z===null)return"null";if(typeof z==="string"||typeof z==="boolean")return JSON.stringify(z);if(typeof z==="number"){if(!Number.isFinite(z))throw new J("invalid_manifest","Manifest numbers must be finite.");return JSON.stringify(z)}if(Array.isArray(z))return`[${z.map((F)=>q(F)).join(",")}]`;if(X(z))return`{${Object.keys(z).sort().map((F)=>`${JSON.stringify(F)}:${q(z[F])}`).join(",")}}`;throw new J("invalid_manifest","Manifest contains an unsupported value.")}function j(z){if(!X(z)||!$(z,["url","sha256","size_bytes"])||typeof z.url!=="string"||typeof z.sha256!=="string"||!N.test(z.sha256)||typeof z.size_bytes!=="number"||!Number.isSafeInteger(z.size_bytes)||z.size_bytes<=0||z.size_bytes>h)throw new J("invalid_manifest","Manifest contains an invalid runtime artifact.");let F;try{F=new URL(z.url)}catch{throw new J("invalid_manifest","Runtime artifact URL is invalid.")}if(F.protocol!=="https:"||F.username||F.password||F.hash)throw new J("invalid_manifest","Runtime artifact URL must be an HTTPS URL without credentials or a fragment.");return{url:F.toString(),sha256:z.sha256,size_bytes:z.size_bytes}}function b(z){if(!X(z)||!$(z,["broker","credential_library"]))throw new J("invalid_manifest","Manifest must bind the broker and credential library as one runtime.");return{broker:j(z.broker),credential_library:j(z.credential_library)}}function _(z){if(!X(z)||!$(z,["schema_version","version","published_at","artifacts"])||z.schema_version!==x||!B(z.version)||!O(z.published_at)||!X(z.artifacts)||!$(z.artifacts,[...U]))throw new J("invalid_manifest","Managed Reason runtime manifest is invalid.");return{schema_version:x,version:z.version,published_at:z.published_at,artifacts:{"darwin-arm64":b(z.artifacts["darwin-arm64"]),"darwin-x64":b(z.artifacts["darwin-x64"])}}}function M(z){if(!X(z)||!$(z,["schema_version","version","published_at","artifacts"])||z.schema_version!==k||!B(z.version)||!O(z.published_at)||!X(z.artifacts)||!$(z.artifacts,[...U]))throw new J("invalid_manifest","Legacy managed runtime manifest is invalid.");return{schema_version:k,version:z.version,published_at:z.published_at,artifacts:{"darwin-arm64":j(z.artifacts["darwin-arm64"]),"darwin-x64":j(z.artifacts["darwin-x64"])}}}function A(z){if(!X(z)||!$(z,["schema","version","published_at","artifacts"])||z.schema!==D||!B(z.version)||!O(z.published_at)||!X(z.artifacts)||!$(z.artifacts,[...U]))throw new J("invalid_manifest","Reason background identity manifest is invalid.");return{schema:D,version:z.version,published_at:z.published_at,artifacts:{"darwin-arm64":j(z.artifacts["darwin-arm64"]),"darwin-x64":j(z.artifacts["darwin-x64"])}}}function S(z){if(typeof z!=="string"||!/^[A-Za-z0-9+/]+={0,2}$/.test(z))throw new J("invalid_signature","Runtime manifest signature is invalid.");let F=Buffer.from(z,"base64");if(F.length!==64||F.toString("base64")!==z)throw new J("invalid_signature","Runtime manifest signature is invalid.");return F}function L(z){let F=z;if(typeof z==="string")try{F=JSON.parse(z)}catch{throw new J("invalid_manifest","Managed Reason runtime manifest is not valid JSON.")}if(!X(F)||!$(F,["key_id","manifest","signature"])||typeof F.key_id!=="string"||!/^[A-Za-z0-9._-]{1,80}$/.test(F.key_id)||typeof F.signature!=="string")throw new J("invalid_manifest","Signed managed Reason runtime manifest is invalid.");return F}function E(z,F){let Q=L(z),Z=F[Q.key_id];if(!Z)throw new J("untrusted_key","Runtime manifest was signed by an unknown key.");let W=_(Q.manifest),w=S(Q.signature),P=!1;try{P=G(null,Buffer.from(q(W)),V(Z),w)}catch{throw new J("invalid_signature","Runtime manifest signature could not be verified.")}if(!P)throw new J("invalid_signature","Runtime manifest signature did not match.");return{key_id:Q.key_id,manifest:W,signature:Q.signature}}function d(z,F){let Q=L(z),Z=F[Q.key_id];if(!Z)throw new J("untrusted_key","Background identity manifest was signed by an unknown key.");let W=A(Q.manifest),w=S(Q.signature),P=!1;try{P=G(null,Buffer.from(q(W)),V(Z),w)}catch{throw new J("invalid_signature","Background identity manifest signature could not be verified.")}if(!P)throw new J("invalid_signature","Background identity manifest signature did not match.");return{key_id:Q.key_id,manifest:W,signature:Q.signature}}function i(z,F){let Q=z;if(typeof z==="string")try{Q=JSON.parse(z)}catch{throw new J("invalid_manifest","Legacy managed runtime manifest is not valid JSON.")}if(!X(Q)||!$(Q,["key_id","manifest","signature"])||typeof Q.key_id!=="string"||!/^[A-Za-z0-9._-]{1,80}$/.test(Q.key_id)||typeof Q.signature!=="string")throw new J("invalid_manifest","Signed legacy managed runtime manifest is invalid.");let Z=F[Q.key_id];if(!Z)throw new J("untrusted_key","Legacy runtime manifest was signed by an unknown key.");let W=M(Q.manifest),w=S(Q.signature),P=!1;try{P=G(null,Buffer.from(q(W)),V(Z),w)}catch{throw new J("invalid_signature","Legacy runtime manifest signature could not be verified.")}if(!P)throw new J("invalid_signature","Legacy runtime manifest signature did not match.");return{key_id:Q.key_id,manifest:W,signature:Q.signature}}function y(z){return f("sha256").update(z).digest("hex")}function n(z,F){if(z.byteLength!==F.size_bytes)throw new J("artifact_size_mismatch","Runtime artifact size did not match its manifest.");if(y(z)!==F.sha256)throw new J("artifact_checksum_mismatch","Runtime artifact checksum did not match its manifest.")}import{existsSync as p}from"fs";import{join as T}from"path";function r(z){let F=T(z,H);return p(F)?F:T(z,Y)}
3
- export{Y as _h,H as $h,k as ai,x as bi,h as ci,R as di,U as ei,J as fi,K as gi,g as hi,o as ii,q as ji,E as ki,d as li,i as mi,y as ni,n as oi,r as pi};
3
+ export{Y as ai,H as bi,k as ci,x as di,h as ei,R as fi,U as gi,J as hi,K as ii,g as ji,o as ki,q as li,E as mi,d as ni,i as oi,y as pi,n as qi,r as ri};