githolon 0.101.1 → 0.101.2
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/dist/dev-server.mjs +14 -0
- package/package.json +3 -3
package/dist/dev-server.mjs
CHANGED
|
@@ -2512,6 +2512,20 @@ async function startDevCloud(opts = {}) {
|
|
|
2512
2512
|
res.writeHead(200, { ...CORS, "content-type": "application/wasm", "cache-control": "no-store", "x-nomos-kernel": kernelKind, "x-nomos-kernel-sha": kernelSha });
|
|
2513
2513
|
return res.end(Buffer.from(wasmBytes));
|
|
2514
2514
|
}
|
|
2515
|
+
const pinnedKernel = url.pathname.match(/^\/v1\/runtime\/kernels\/([0-9a-f]{64})\/holon\.wasm$/);
|
|
2516
|
+
if (pinnedKernel) {
|
|
2517
|
+
if (pinnedKernel[1] !== kernelSha) {
|
|
2518
|
+
return sendJson(res, { ok: false, error: "kernel artifact not found", requested: pinnedKernel[1] }, 404);
|
|
2519
|
+
}
|
|
2520
|
+
res.writeHead(200, {
|
|
2521
|
+
...CORS,
|
|
2522
|
+
"content-type": "application/wasm",
|
|
2523
|
+
"cache-control": "public, max-age=31536000, immutable",
|
|
2524
|
+
"x-nomos-kernel": kernelKind,
|
|
2525
|
+
"x-nomos-kernel-sha": kernelSha
|
|
2526
|
+
});
|
|
2527
|
+
return res.end(Buffer.from(wasmBytes));
|
|
2528
|
+
}
|
|
2515
2529
|
if (url.pathname === "/v1/runtime/capabilities") {
|
|
2516
2530
|
const stamp = capabilitiesForKernelHash(kernelSha);
|
|
2517
2531
|
return sendJson(res, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "githolon",
|
|
3
|
-
"version": "0.101.
|
|
3
|
+
"version": "0.101.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "githolon — the Nomos developer CLI: Rails-style generators for @githolon/dsl domains + the package compiler. Kernel-independent.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@bjorn3/browser_wasi_shim": "0.4.2",
|
|
32
|
-
"@githolon/client": "^0.101.
|
|
33
|
-
"@githolon/dsl": "^0.101.
|
|
32
|
+
"@githolon/client": "^0.101.2",
|
|
33
|
+
"@githolon/dsl": "^0.101.2",
|
|
34
34
|
"isomorphic-git": "^1.38.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|