@oxvm/cli 0.0.27 → 0.0.29
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/README.md +1 -1
- package/dist/starter-release.js +1 -1
- package/dist/starter.generated.js +1 -1
- package/dist/starter.json +1 -1
- package/package.json +4 -4
- package/sbom.cdx.json +4 -4
package/README.md
CHANGED
|
@@ -24,5 +24,5 @@ Fresh projects use `oxvm.config.ts` and `oxvm.lock.json`. Existing legacy
|
|
|
24
24
|
project files remain supported. Keep one coherent set of project files.
|
|
25
25
|
|
|
26
26
|
Read the [documentation](https://oxvm.dev/docs/) and
|
|
27
|
-
[migration guide](https://github.com/spacia-ai/
|
|
27
|
+
[migration guide](https://github.com/spacia-ai/oxvm-sdk-public/blob/main/docs/migration.md).
|
|
28
28
|
The CLI uses Apache-2.0. Engine and guest licenses remain separate.
|
package/dist/starter-release.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var C=Object.defineProperty;var o=(t,e)=>C(t,"name",{value:e,configurable:!0});import{defineImage as b,VMError as s}from"@oxvm/sdk";import{decodeEngineCompliancePin as U,decodeImageDigest as m,getSDKRelease as S}from"@oxvm/sdk/image-builder";import{starterRelease as g}from"./starter.generated.js";import{fields as l,number as L,object as c,text as d}from"./validation.js";function w(t){const e=new URL(d(t));if(e.origin!=="https://cdn.oxvm.dev"&&e.origin!=="https://cdn.oxidevm.dev"||e.username!==""||e.password!==""||!e.pathname.startsWith("/images/")||e.search!==""||e.hash!=="")throw new s("PROTOCOL_ERROR","starter assets must use their pinned public CDN location");return e.href}o(w,"publicURL");function P(t,e,E){const r=c(t,"starter release");if(l(r,["schemaVersion","sdkVersion","engineRelease","engineCompliance","image","archive","materialsSHA256","materialsUrl"]),r.schemaVersion!==2||r.sdkVersion!==e)throw new s("PROTOCOL_ERROR","starter version differs from the installed SDK and CLI version");const h=m(r.engineRelease,"starter engine");if(`sha256:${h}`!==E)throw new s("PROTOCOL_ERROR","starter engine differs from the installed SDK");const
|
|
1
|
+
var C=Object.defineProperty;var o=(t,e)=>C(t,"name",{value:e,configurable:!0});import{defineImage as b,VMError as s}from"@oxvm/sdk";import{decodeEngineCompliancePin as U,decodeImageDigest as m,getSDKRelease as S}from"@oxvm/sdk/image-builder";import{starterRelease as g}from"./starter.generated.js";import{fields as l,number as L,object as c,text as d}from"./validation.js";function w(t){const e=new URL(d(t));if(e.origin!=="https://cdn.oxvm.dev"&&e.origin!=="https://cdn.oxidevm.dev"||e.username!==""||e.password!==""||!e.pathname.startsWith("/images/")||e.search!==""||e.hash!=="")throw new s("PROTOCOL_ERROR","starter assets must use their pinned public CDN location");return e.href}o(w,"publicURL");function P(t,e,E){const r=c(t,"starter release");if(l(r,["schemaVersion","sdkVersion","engineRelease","engineCompliance","image","archive","materialsSHA256","materialsUrl"]),r.schemaVersion!==2||r.sdkVersion!==e)throw new s("PROTOCOL_ERROR","starter version differs from the installed SDK and CLI version");const h=m(r.engineRelease,"starter engine");if(`sha256:${h}`!==E)throw new s("PROTOCOL_ERROR","starter engine differs from the installed SDK");const a=c(r.image,"starter image");if(l(a,["mode","manifestUrl","manifestSHA256","trust"]),a.mode!=="userspace")throw new s("PROTOCOL_ERROR","public starter requires Userspace");const i=c(a.trust,"starter author trust");if(l(i,["algorithm","keyId","publicKey"]),i.algorithm!=="Ed25519")throw new s("PROTOCOL_ERROR","starter author trust requires Ed25519");const R=b({mode:"userspace",manifestUrl:w(a.manifestUrl),manifestSHA256:m(a.manifestSHA256,"starter image"),trust:{algorithm:"Ed25519",keyId:d(i.keyId),publicKey:d(i.publicKey)}}),[,v,f,p]=new URL(R.manifestUrl).pathname.split("/"),u=new URL(d(r.materialsUrl));if(v!=="images"||f===void 0||p===void 0||u.pathname!==`/spacia-ai/oxvm-sdk-public/releases/download/image-${f}-v${p}/OPEN-SOURCE-NOTICE.md`||!/^https:\/\/github\.com\/spacia-ai\/oxvm-sdk-public\/releases\/download\/image-[A-Za-z0-9][A-Za-z0-9._-]*-v[0-9]+\.[0-9]+\.[0-9]+\/OPEN-SOURCE-NOTICE\.md$/u.test(u.href))throw new s("PROTOCOL_ERROR","starter materials require their pinned GitHub release");const n=c(r.archive,"starter archive");l(n,["url","bytes","sha256"]);const O=L(n.bytes,1);if(O>512*1024**2)throw new s("PROTOCOL_ERROR","starter archive exceeds its size limit");return{schemaVersion:2,sdkVersion:e,engineRelease:h,engineCompliance:U(r.engineCompliance,h),image:R,archive:{url:w(n.url),bytes:O,sha256:m(n.sha256,"starter archive")},materialsUrl:u.href,materialsSHA256:m(r.materialsSHA256,"starter license materials")}}o(P,"decodeStarterRelease");function A(){if(g===null)return;const t=S();return P(g,t.sdkVersion,t.engineRelease)}o(A,"pinnedStarterRelease");export{P as decodeStarterRelease,A as pinnedStarterRelease};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={schemaVersion:2,sdkVersion:"0.0.
|
|
1
|
+
const e={schemaVersion:2,sdkVersion:"0.0.29",engineRelease:"3ac1f1185bca6837d187e96aad810bcc9555401fb4eec76aceacd2956cee563d",engineCompliance:{url:"https://cdn.oxvm.dev/engine/3ac1f1185bca6837d187e96aad810bcc9555401fb4eec76aceacd2956cee563d/compliance/b52713e53ff19a364d459cdf987f587b233e94e2fc2dfe4d27b6242359ce6db6/compliance.json",bytes:746,sha256:"b52713e53ff19a364d459cdf987f587b233e94e2fc2dfe4d27b6242359ce6db6"},image:{mode:"userspace",manifestUrl:"https://cdn.oxvm.dev/images/oxidevm-starter-pandas/0.0.3/da71749f0624f5444be55994fb92256535004f7983c46b38a2891178bb31e657/manifest.json",manifestSHA256:"da71749f0624f5444be55994fb92256535004f7983c46b38a2891178bb31e657",trust:{algorithm:"Ed25519",keyId:"ed25519-d753cdd5739b36c670441766e2c08ea8",publicKey:"MCowBQYDK2VwAyEAynhb7WG89CT3+mWXxbt8zgaDJJmArtm1F9KTf3bzKTU="}},archive:{url:"https://cdn.oxvm.dev/images/oxidevm-starter-pandas/0.0.3/da71749f0624f5444be55994fb92256535004f7983c46b38a2891178bb31e657/bundle.tgz",bytes:338969488,sha256:"ad060aaa834912f8d004905db2cf8b65b60e531fcc3cbb729294c579f57a9267"},materialsSHA256:"90fa99dc8b0bfac3528d69dbfd313835b8059380cb4a7e4788695f3eddf13c86",materialsUrl:"https://github.com/spacia-ai/oxvm-sdk-public/releases/download/image-oxidevm-starter-pandas-v0.0.3/OPEN-SOURCE-NOTICE.md"};export{e as starterRelease};
|