githolon 0.101.1 → 0.101.3

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/cli.mjs CHANGED
@@ -6623,7 +6623,8 @@ __export(proof_offline_exports, {
6623
6623
  runChildBirthLeg: () => runChildBirthLeg,
6624
6624
  runOfflineLegs: () => runOfflineLegs,
6625
6625
  runOfflineProofStandalone: () => runOfflineProofStandalone,
6626
- runRelationBootstrapLeg: () => runRelationBootstrapLeg
6626
+ runRelationBootstrapLeg: () => runRelationBootstrapLeg,
6627
+ summarizeOfflineProofLines: () => summarizeOfflineProofLines
6627
6628
  });
6628
6629
  import { existsSync as existsSync7, readFileSync as readFileSync7 } from "node:fs";
6629
6630
  import { createHash as createHash4 } from "node:crypto";
@@ -6676,6 +6677,29 @@ function parseOfflineLegs(proofSource) {
6676
6677
  ...countLeg !== void 0 ? { count: countLeg } : {}
6677
6678
  };
6678
6679
  }
6680
+ function summarizeOfflineProofLines(lines) {
6681
+ const diagnosticCounts = /* @__PURE__ */ new Map();
6682
+ for (const line of lines) {
6683
+ if (line.startsWith("\u2013 ")) {
6684
+ diagnosticCounts.set(line, (diagnosticCounts.get(line) ?? 0) + 1);
6685
+ }
6686
+ }
6687
+ const seenDiagnostics = /* @__PURE__ */ new Set();
6688
+ const summary = [];
6689
+ for (const line of lines) {
6690
+ if (!line.startsWith("\u2013 ")) {
6691
+ summary.push(line);
6692
+ continue;
6693
+ }
6694
+ if (seenDiagnostics.has(line)) continue;
6695
+ seenDiagnostics.add(line);
6696
+ const count2 = diagnosticCounts.get(line) ?? 1;
6697
+ summary.push(
6698
+ count2 > 1 ? `${line} (${count2} proof legs share this limitation; reported once)` : line
6699
+ );
6700
+ }
6701
+ return summary;
6702
+ }
6679
6703
  async function mountIsolatedProofWs(eng, baseWs, lawHash, deployUsda) {
6680
6704
  const iso = `${baseWs}-rb`;
6681
6705
  await mountFresh(eng, iso);
@@ -7371,7 +7395,7 @@ async function runOfflineProofStandalone(proofPath, cloud, domain) {
7371
7395
  author(eng, ws, "bootstrap", "installDomain", installPayload(eng.hashes.nomos, eng.nomosPkg, "githolon-proof"), "");
7372
7396
  author(eng, ws, "nomos", "installDomain", installPayload(lawHash, deployBody.packageUsda, "githolon-proof"), eng.hashes.nomos);
7373
7397
  const v = await runOfflineLegs(eng, ws, lawHash, legs, eng.hashes.nomos, deployBody.packageUsda);
7374
- for (const l of v.legs) console.log(l);
7398
+ for (const l of summarizeOfflineProofLines(v.legs)) console.log(l);
7375
7399
  if (!v.ok) {
7376
7400
  console.error(`\u2717 ${v.error}`);
7377
7401
  return 1;
@@ -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.1",
3
+ "version": "0.101.3",
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.1",
33
- "@githolon/dsl": "^0.101.1",
32
+ "@githolon/client": "^0.101.3",
33
+ "@githolon/dsl": "^0.101.3",
34
34
  "isomorphic-git": "^1.38.4"
35
35
  },
36
36
  "devDependencies": {