githolon 0.79.0 → 0.80.0

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 (2) hide show
  1. package/dist/cli.mjs +3 -2
  2. package/package.json +3 -3
package/dist/cli.mjs CHANGED
@@ -1171,8 +1171,9 @@ async function admitIntentOffers(eng, ws, ledger, offers, { receiptFence = null,
1171
1171
  let blob = offer?.blob instanceof Uint8Array ? offer.blob : null;
1172
1172
  try {
1173
1173
  if (!blob && typeof offer?.intentB64 === "string") blob = Uint8Array.from(atob(offer.intentB64), (c) => c.charCodeAt(0));
1174
- if (!blob || blob.byteLength === 0 || blob.byteLength > 8 * 1024 * 1024) {
1175
- rec.rejected.push({ oid: String(offer?.oid || "").slice(0, 10), error: "intent offer must carry intentB64 <= 8 MiB" });
1174
+ const maxOfferBytes = offer?.staged ? 64 * 1024 * 1024 : 8 * 1024 * 1024;
1175
+ if (!blob || blob.byteLength === 0 || blob.byteLength > maxOfferBytes) {
1176
+ rec.rejected.push({ oid: String(offer?.oid || "").slice(0, 10), error: `intent offer must carry intentB64 <= ${maxOfferBytes / (1024 * 1024)} MiB` });
1176
1177
  continue;
1177
1178
  }
1178
1179
  let doc = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githolon",
3
- "version": "0.79.0",
3
+ "version": "0.80.0",
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.79.0",
33
- "@githolon/dsl": "^0.79.0",
32
+ "@githolon/client": "^0.80.0",
33
+ "@githolon/dsl": "^0.80.0",
34
34
  "isomorphic-git": "^1.38.4"
35
35
  },
36
36
  "devDependencies": {