githolon 0.103.1 → 0.103.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.
@@ -2271,6 +2271,23 @@ async function bootstrapPlatform(dev, opts) {
2271
2271
  grantedAt: Date.now()
2272
2272
  });
2273
2273
  if (!enrolled.ok) throw new Error(`platform founding signer enrollment REFUSED: ${String(enrolled.error).slice(0, 400)}`);
2274
+ const applicationMaxChildWorkspaces = opts.applicationMaxChildWorkspacesPerUser;
2275
+ if (applicationMaxChildWorkspaces !== void 0) {
2276
+ if (!Number.isInteger(applicationMaxChildWorkspaces) || applicationMaxChildWorkspaces < 0) {
2277
+ throw new Error(
2278
+ "--application-max-child-workspaces-per-user must be a non-negative integer from the compiled application declaration"
2279
+ );
2280
+ }
2281
+ const seededPolicy = await preWarrant("seedBirthPolicy", {
2282
+ maxBirthsPerPrincipal: applicationMaxChildWorkspaces,
2283
+ setBy: foundingPrincipal,
2284
+ setAt: (/* @__PURE__ */ new Date()).toISOString()
2285
+ });
2286
+ if (!seededPolicy.ok) {
2287
+ throw new Error(`platform application birth-policy seed REFUSED: ${String(seededPolicy.error).slice(0, 400)}`);
2288
+ }
2289
+ log2(`application birth policy seeded from the compiled scenario (${applicationMaxChildWorkspaces} child workspaces per principal)`);
2290
+ }
2274
2291
  const warrant = await signed("seedGenesis", {
2275
2292
  principal: foundingPrincipal,
2276
2293
  workspaceId: platform,
@@ -2479,8 +2496,8 @@ function resolveGatewayOperation(spec, opName, method) {
2479
2496
 
2480
2497
  // ../cloud/cloudflare-shell/src/kernel-registry.generated.ts
2481
2498
  var DEPLOYED_KERNELS = [
2482
- { prefix: "efe619cb", hash: "efe619cbabba8f5d9d1a1309e7ab60feb489ddb4794ce5a6a95f35c7e7ae5928", version: "kernel-efe619cb", note: "production (this candidate)", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience"] },
2483
- { prefix: "0a801b8f", hash: "0a801b8f40a17d3a1534d1452f0dc990f160299f6db55fe9c0c39d7aa726730b", version: "kernel-0a801b8f", note: "test-mint (this candidate) \u2014 feature-equivalent to production", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience"] }
2499
+ { prefix: "4bf8f270", hash: "4bf8f2709135d729475c4dfbabb2014f8d1e10ff506506da1ee0299a808c415e", version: "kernel-4bf8f270", note: "production (this candidate)", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience"] },
2500
+ { prefix: "c83316d6", hash: "c83316d63542760b76df0588e42c1ec34367536790bb73775694c6d167a8a87e", version: "kernel-c83316d6", note: "test-mint (this candidate) \u2014 feature-equivalent to production", features: ["compoundKeys", "capturedReads", "invariantGate", "surfacedMerge", "fieldProvenance", "nullSemantics", "attestedReads", "conflictSnapshots", "ownedAudience"] }
2484
2501
  ];
2485
2502
 
2486
2503
  // ../cloud/cloudflare-shell/src/staged-intents.ts
@@ -3532,11 +3549,17 @@ async function startGeneratedApplicationProofCloud(opts) {
3532
3549
  ephemeral: true,
3533
3550
  attested: true,
3534
3551
  platform: opts.platform,
3535
- lawUsdz: opts.lawUsdz
3552
+ lawUsdz: opts.lawUsdz,
3553
+ ...opts.applicationMaxChildWorkspacesPerUser === void 0 ? {} : { applicationMaxChildWorkspacesPerUser: opts.applicationMaxChildWorkspacesPerUser }
3536
3554
  });
3537
3555
  try {
3538
3556
  const { bootstrapPlatform: bootstrapPlatform2 } = await Promise.resolve().then(() => (init_bootstrap(), bootstrap_exports));
3539
- await bootstrapPlatform2(dev, { platform: opts.platform, lawUsdz: opts.lawUsdz, attested: true });
3557
+ await bootstrapPlatform2(dev, {
3558
+ platform: opts.platform,
3559
+ lawUsdz: opts.lawUsdz,
3560
+ attested: true,
3561
+ ...opts.applicationMaxChildWorkspacesPerUser === void 0 ? {} : { applicationMaxChildWorkspacesPerUser: opts.applicationMaxChildWorkspacesPerUser }
3562
+ });
3540
3563
  dev.platformReady = true;
3541
3564
  if (dev.operatorDevice === void 0) {
3542
3565
  throw new Error("the local proof cloud did not establish its private founding device");
@@ -3565,7 +3588,9 @@ function parseArgs(argv) {
3565
3588
  else if (a === "--data") o.data = argv[++i];
3566
3589
  else if (a === "--firebase-project") o.firebaseProject = argv[++i];
3567
3590
  else if (a === "--platform") o.platform = argv[++i];
3568
- else if (a === "--law") {
3591
+ else if (a === "--application-max-child-workspaces-per-user") {
3592
+ o.applicationMaxChildWorkspacesPerUser = parseInt(argv[++i], 10);
3593
+ } else if (a === "--law") {
3569
3594
  const lawUsdz = argv[++i];
3570
3595
  o.lawUsdz = lawUsdz;
3571
3596
  (o.lawUsdzs ??= []).push(lawUsdz);
Binary file
Binary file
package/dist/full-cli.mjs CHANGED
@@ -20778,9 +20778,15 @@ async function runGeneratedApplicationProofLocally(proofPath) {
20778
20778
  throw new Error("the bundled local Nomos cloud predates generated application execution \u2014 rebuild githolon");
20779
20779
  }
20780
20780
  const platform = `proof-app-${createHash6("sha256").update(readFileSync12(proofPath)).digest("hex").slice(0, 20)}`;
20781
+ const proofLegs = parseOfflineLegs(readFileSync12(proofPath, "utf8"));
20782
+ const applicationMaxChildWorkspacesPerUser = proofLegs.applicationMaxChildWorkspacesPerUser;
20781
20783
  let dev2;
20782
20784
  try {
20783
- dev2 = await module.startGeneratedApplicationProofCloud({ platform, lawUsdz: lawUsdzPath });
20785
+ dev2 = await module.startGeneratedApplicationProofCloud({
20786
+ platform,
20787
+ lawUsdz: lawUsdzPath,
20788
+ ...applicationMaxChildWorkspacesPerUser === void 0 ? {} : { applicationMaxChildWorkspacesPerUser }
20789
+ });
20784
20790
  const proof = dev2.generatedApplicationProof;
20785
20791
  if (!proof) throw new Error("the local proof cloud returned no blank generated-application authority");
20786
20792
  const testKRootPublic = dev2.testKRoot?.public;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githolon",
3
- "version": "0.103.1",
3
+ "version": "0.103.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",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@bjorn3/browser_wasi_shim": "0.4.2",
32
32
  "@bufbuild/protobuf": "^2.13.0",
33
- "@githolon/dsl": "^0.103.1",
33
+ "@githolon/dsl": "^0.103.3",
34
34
  "isomorphic-git": "^1.38.4",
35
35
  "tsx": "^4.19.2"
36
36
  },