@githolon/runtime 0.116.4 → 0.117.1

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.
@@ -50,7 +50,6 @@
50
50
  25404198bf6e6a95f77c52105b346e9428e0848ed913a488be2027fd2d5aa5dc adapter/proto/nomos/runtime/v2/observability_desk_pb.js
51
51
  25c033d29ed62a510d8c43054ec238776bcba0949808cb6054df5cbea951ddf7 adapter/proto/nomos/runtime/v2/interaction_desk_pb.js
52
52
  25d57b7e880708c04738087de674a8c98092e5bfd39d5193cdb63a2f1e33871e node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js
53
- 2714c5889de50faaecded2a44a0b238ac5c3a05b30fda2758973dc2c69425a9f peer-office/package/package.json
54
53
  27d164987aeae0cffae136eaa84ff39ca6efd9c07018dce4b63f0d352d3d855b adapter/proto/nomos/runtime/v2/maintenance_desk_pb.js
55
54
  286c659a8f940c313077afe8a00c0dc128d4a138edf6d9a4519f29538b58c94f node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
56
55
  2902315d1ae081647345f4e2aab7c8e60f8f8ae16de1a6c6e642ed6fd14e4959 peer-office/src/runtime/law_package_desk.ts
@@ -131,11 +130,11 @@
131
130
  630032abddfaaf6bc05e2069c060983e055bcce535f9ccf9c0d742b1f2806936 node_modules/@bufbuild/protobuf/dist/esm/equals.js
132
131
  64256c9570f2d73851f8b7e1a47ccee787120ca13b862b317d46c1bdb128f06c adapter/custody_paths.ts
133
132
  65e488c0d57b10b4eb4fe66d176c1aeb96ac08517e1a6c04e346b7d701acf99a runtime/kernel_local_dev_trust.ts
134
- 666242642051bff6e5bff6d2697b774fe518b78461bde4e0bdb497592cd56d95 peer-office/package/src/nominal_value.ts
135
133
  66e4f0999f103935c005ae2b718a4515c6e1bafe5cecaa0fab77fbc74a03d969 platform-shells/browser/memory_watch.ts
136
134
  670732c36d82f9292fb87ef04bcf1d018e980a8e9fa34a89c6993c4516aa7694 peer-office/src/runtime/subscription_manager.ts
137
135
  692c6542af574ad4ec2882ae9591db3be7635e7721b43af13158a5397f537ebb adapter/git_placement_custody.ts
138
136
  6baee09202d599e59e3450687ad35414a8662d99566b5dae6db02214525f9800 peer-office/src/runtime/model_adoption_desk.ts
137
+ 6bdd8e5643454c5eceb048e5468a7f19a151f968216b825fa33bed87448e99dd adapter/git_custody_desk.ts
139
138
  6cfa5fe6f17219f03e2650dec635934cff6601dbee72f188bbd2874a9d1d4523 platform-shells/shared/credential_effects.ts
140
139
  6eb1b52bfa2c7eb3e36b6817973defd7be18dbc7ce4b56ca576b1222dd5df4d7 node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
141
140
  6ec9654705968f0c75cb0b184d4bb6629a932c05e3d27d603eb42a3cb9447f6f node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js
@@ -158,6 +157,7 @@
158
157
  7e2fd52ee3f728bb0b1d6e449724e0f13e3d586bb25bde6e02a66366175b5605 node_modules/@bjorn3/browser_wasi_shim/dist/index.js
159
158
  7e956d8fa1d2c22869fd24e6f9ae7f694a891b12c2768c2b398a043ceedc9bc7 peer-office/src/runtime/receiving_group_desk.ts
160
159
  8060660b99a885f1d7a951e34db7a460e9af51de1e1ffd9e97e6a8f61c16c5a1 peer-office/src/runtime/offer_readiness_desk.ts
160
+ 80cb14c7c07f5ca12b4a5d1f92cbb4f2ca08efcc9b51347af3131e6e39ed3aa6 peer-office/package/src/nominal_value.ts
161
161
  812a2077e073564d6470b8fda8ac0d20ecaaf75ddb1594d55d28acc2da8a1a71 node_modules/@nodable/entities/src/EntityEncoder.js
162
162
  829eadd8a1a441d25be0cb93b00e16a0d0c20fd294db95d8f2ed87e6954b7182 node_modules/base64-js/index.js
163
163
  8321a0b1c5ad34328b0ce8d60870a8d4a649e6ac2d9053ea174abc1f65a9511c peer-office/src/runtime/history_acquisition_desk.ts
@@ -213,7 +213,6 @@ ab80eeeafd4d89a5daaf5d2e00fb471cc6b53fa90776750ca3ad82df482d7c3f peer-office/sr
213
213
  ac6a9d7dcd84fb126bb9546336eb2ae7272c7631496246c8af61da9726eb186d peer-office/src/runtime/read_maintenance_desk.ts
214
214
  acb869e032dff98fd5a7f410c9eb3ca1ff757f4a7d79eeea680d1364c562315a peer-office/src/runtime/replica_follow_controller.ts
215
215
  ad3de46df125304b2a61c2fa5537b0e519635997d99686a76119b38cf260963f adapter/proto/nomos/runtime/v2/identity_desk_pb.js
216
- af247828eb19fc6b2f4cf653b53e3d7c46a1b4af334ceb9d28e3d1c831a2aee5 adapter/git_custody_desk.ts
217
216
  afde3ddb29cc6ee2c48b30043feca4ea14b5690035aa134b08b4df83558faa7c platform-shells/shared/system_observation_clock.ts
218
217
  b07e6f28e18bcf30df86fd71007976ad01ecee7ed45dcc91ec7c2ee5d7184088 peer-office/src/runtime/custody_receipts.ts
219
218
  b09ee99807e1edeb746b4a4a1e41519edaff1fed9f71a170bc15e8835af93e25 node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js
@@ -290,6 +289,7 @@ dbca15f5c8261b7de898df7e5f8fa56478bfb7df92f5b2adaac608cf6f4e62f4 peer-office/sr
290
289
  dd9f3f24fb154cfbfbde94e8f2647647c80c8ca050b98e981a407e760a4b9c1e node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js
291
290
  ddd7292fd2896beb0ef2d954157b862316d84f632171b1b48d7e70df2c12d371 peer-office/src/runtime/replica_follow_state.ts
292
291
  dff6af323ca5f9c73dd06120879fcd5f561d22a8a7fd36d3317e564ae4e10e3b platform-shells/shared/kernel_work_accounting.ts
292
+ e01eff0b11aef37fd124f8ead03c038e3d1c0b138b694759b9e7b19396ef74a6 peer-office/package/package.json
293
293
  e15dbb7fb7bc9e8cc9c08f2c7e832d2dcbd696ffbdeccccea074fec03ea84898 peer-office/src/runtime/replica_identity.ts
294
294
  e20a132033f105a29db1cfdb3d85bbadbb7206b9a7e3336bcb030a63d66b4ab2 node_modules/is-unsafe/src/contexts/nosql.js
295
295
  e2133d7e0f0ce5491a3e9bd560e9e47db2243a6a9f762be89c82e027d99d278e peer-office/src/runtime/credential_sessions.ts
@@ -105,7 +105,7 @@ var NominalValue = class {
105
105
  };
106
106
  function parseNominalValue(bytes) {
107
107
  if (bytes.length > 65536) throw new TypeError("Nominal refusal exceeds its byte limit");
108
- const source = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
108
+ const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: false }).decode(bytes);
109
109
  if (!source.startsWith("#usda 1.0")) throw new TypeError("Expected canonical nominal USDA");
110
110
  const tokens = [];
111
111
  const pattern = /\s+|#[^\n]*|"(?:[^"\\]|\\.)*"|<[^<>\n]*>|[{}()=]|[A-Za-z_][A-Za-z_0-9:]*|-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/gy;
@@ -17017,7 +17017,7 @@ var NomosRuntimeComponent = (() => {
17017
17017
  }
17018
17018
 
17019
17019
  // ../src/runtime/runtime_identity.ts
17020
- var PEER_RUNTIME_IDENTITY = "0.116.4" ? `@githolon/runtime@${"0.116.4"}` : "@githolon/runtime@unbundled";
17020
+ var PEER_RUNTIME_IDENTITY = "0.117.1" ? `@githolon/runtime@${"0.117.1"}` : "@githolon/runtime@unbundled";
17021
17021
 
17022
17022
  // ../src/runtime/replica_follow_desk.ts
17023
17023
  var REPLICA_FOLLOW_NAMESPACE = "nomos.peer-desk.replica-follow/v2";
@@ -284,7 +284,7 @@
284
284
  }
285
285
 
286
286
  // ../../platform-shells/browser/worker_page_entry.ts
287
- var workerDigest = true ? "6e7df4b6aebb61c321198fe4a4fd13cb897ce0e25ef0518c5a190b6dd71e0bc8" : "";
287
+ var workerDigest = true ? "cce3f1a07f1c1c162a1dcf961f955cd6a51c537a11a0dae691751168cc0f5099" : "";
288
288
  var SLOW_OPERATION_MICROS = 1e6;
289
289
  var slowOperationsReported = 0;
290
290
  var bootStages = [];
@@ -12306,6 +12306,18 @@
12306
12306
  }
12307
12307
  const publish = async (allowReconcile) => {
12308
12308
  const oldHead = remote.get(reference) ?? ZERO_OID;
12309
+ const expectedRemote = sealedMain.get(key) ?? resolveRef(workspace, receiptRef(ledger)) ?? ZERO_OID;
12310
+ if (allowReconcile && expectedRemote !== ZERO_OID && oldHead !== expectedRemote) {
12311
+ remote = new Map(Object.entries(await lsRefs(
12312
+ ledger.remote,
12313
+ ledger.headers ?? {},
12314
+ { service: "git-receive-pack", prefix: "refs/", signal: ledger.signal },
12315
+ fetchImpl
12316
+ )));
12317
+ observedRemoteRefs.set(key, remote);
12318
+ await publish(false);
12319
+ return;
12320
+ }
12309
12321
  const bookmarkUpdates = [SYNC_BASE_REF, PLACEMENT_SYNC_BASE_REF].filter((ref) => named.has(ref) && remote.get(ref) !== named.get(ref)).map((ref) => ({ ref, oldOid: remote.get(ref) ?? ZERO_OID, newOid: named.get(ref) }));
12310
12322
  const outcomeUpdates = cursors.filter(([ref]) => ref.startsWith(EFFECT_OUTCOME_PREFIX) && remote.get(ref) === void 0).map(([ref, oid]) => ({ ref, oldOid: ZERO_OID, newOid: oid }));
12311
12323
  const deliveryUpdates = cursors.filter(([ref]) => ref.startsWith(DELIVERY_PREFIX) && remote.get(ref) === void 0).map(([ref, oid]) => ({ ref, oldOid: ZERO_OID, newOid: oid }));
@@ -12315,7 +12327,6 @@
12315
12327
  if (ledger.readOnly) {
12316
12328
  throw new Error(`read-only custody for '${workspace}' does not hold the requested frontier`);
12317
12329
  }
12318
- const expectedRemote = sealedMain.get(key) ?? resolveRef(workspace, receiptRef(ledger)) ?? ZERO_OID;
12319
12330
  let ancestryPack;
12320
12331
  if (oldHead !== expectedRemote && oldHead !== head) {
12321
12332
  if (oldHead !== ZERO_OID) {
@@ -26087,7 +26098,7 @@
26087
26098
  // ../src/runtime/runtime_identity.ts
26088
26099
  init_define_NOMOS_KERNEL_RELEASE();
26089
26100
  init_shims();
26090
- var PEER_RUNTIME_IDENTITY = "0.116.4" ? `@githolon/runtime@${"0.116.4"}` : "@githolon/runtime@unbundled";
26101
+ var PEER_RUNTIME_IDENTITY = "0.117.1" ? `@githolon/runtime@${"0.117.1"}` : "@githolon/runtime@unbundled";
26091
26102
 
26092
26103
  // ../src/runtime/replica_follow_desk.ts
26093
26104
  init_define_NOMOS_KERNEL_RELEASE();
@@ -12572,6 +12572,18 @@
12572
12572
  }
12573
12573
  const publish = async (allowReconcile) => {
12574
12574
  const oldHead = remote.get(reference) ?? ZERO_OID;
12575
+ const expectedRemote = sealedMain.get(key) ?? resolveRef(workspace, receiptRef(ledger)) ?? ZERO_OID;
12576
+ if (allowReconcile && expectedRemote !== ZERO_OID && oldHead !== expectedRemote) {
12577
+ remote = new Map(Object.entries(await lsRefs(
12578
+ ledger.remote,
12579
+ ledger.headers ?? {},
12580
+ { service: "git-receive-pack", prefix: "refs/", signal: ledger.signal },
12581
+ fetchImpl
12582
+ )));
12583
+ observedRemoteRefs.set(key, remote);
12584
+ await publish(false);
12585
+ return;
12586
+ }
12575
12587
  const bookmarkUpdates = [SYNC_BASE_REF, PLACEMENT_SYNC_BASE_REF].filter((ref) => named.has(ref) && remote.get(ref) !== named.get(ref)).map((ref) => ({ ref, oldOid: remote.get(ref) ?? ZERO_OID, newOid: named.get(ref) }));
12576
12588
  const outcomeUpdates = cursors.filter(([ref]) => ref.startsWith(EFFECT_OUTCOME_PREFIX) && remote.get(ref) === void 0).map(([ref, oid]) => ({ ref, oldOid: ZERO_OID, newOid: oid }));
12577
12589
  const deliveryUpdates = cursors.filter(([ref]) => ref.startsWith(DELIVERY_PREFIX) && remote.get(ref) === void 0).map(([ref, oid]) => ({ ref, oldOid: ZERO_OID, newOid: oid }));
@@ -12581,7 +12593,6 @@
12581
12593
  if (ledger.readOnly) {
12582
12594
  throw new Error(`read-only custody for '${workspace}' does not hold the requested frontier`);
12583
12595
  }
12584
- const expectedRemote = sealedMain.get(key) ?? resolveRef(workspace, receiptRef(ledger)) ?? ZERO_OID;
12585
12596
  let ancestryPack;
12586
12597
  if (oldHead !== expectedRemote && oldHead !== head) {
12587
12598
  if (oldHead !== ZERO_OID) {
@@ -26350,7 +26361,7 @@
26350
26361
  // ../src/runtime/runtime_identity.ts
26351
26362
  init_define_NOMOS_KERNEL_RELEASE();
26352
26363
  init_shims();
26353
- var PEER_RUNTIME_IDENTITY = "0.116.4" ? `@githolon/runtime@${"0.116.4"}` : "@githolon/runtime@unbundled";
26364
+ var PEER_RUNTIME_IDENTITY = "0.117.1" ? `@githolon/runtime@${"0.117.1"}` : "@githolon/runtime@unbundled";
26354
26365
 
26355
26366
  // ../src/runtime/replica_follow_desk.ts
26356
26367
  init_define_NOMOS_KERNEL_RELEASE();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@githolon/runtime",
3
- "version": "0.116.4",
3
+ "version": "0.117.1",
4
4
  "type": "module",
5
5
  "description": "The portable Nomos application runtime, reception contracts, and Node/browser runners.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -8694,6 +8694,18 @@ function gitCustodyDesk(kernel, fetchImpl = fetch, observe, phaseStarted, import
8694
8694
  }
8695
8695
  const publish = async (allowReconcile) => {
8696
8696
  const oldHead = remote.get(reference) ?? ZERO_OID;
8697
+ const expectedRemote = sealedMain.get(key) ?? resolveRef(workspace, receiptRef(ledger)) ?? ZERO_OID;
8698
+ if (allowReconcile && expectedRemote !== ZERO_OID && oldHead !== expectedRemote) {
8699
+ remote = new Map(Object.entries(await lsRefs(
8700
+ ledger.remote,
8701
+ ledger.headers ?? {},
8702
+ { service: "git-receive-pack", prefix: "refs/", signal: ledger.signal },
8703
+ fetchImpl
8704
+ )));
8705
+ observedRemoteRefs.set(key, remote);
8706
+ await publish(false);
8707
+ return;
8708
+ }
8697
8709
  const bookmarkUpdates = [SYNC_BASE_REF, PLACEMENT_SYNC_BASE_REF].filter((ref) => named.has(ref) && remote.get(ref) !== named.get(ref)).map((ref) => ({ ref, oldOid: remote.get(ref) ?? ZERO_OID, newOid: named.get(ref) }));
8698
8710
  const outcomeUpdates = cursors.filter(([ref]) => ref.startsWith(EFFECT_OUTCOME_PREFIX) && remote.get(ref) === void 0).map(([ref, oid]) => ({ ref, oldOid: ZERO_OID, newOid: oid }));
8699
8711
  const deliveryUpdates = cursors.filter(([ref]) => ref.startsWith(DELIVERY_PREFIX) && remote.get(ref) === void 0).map(([ref, oid]) => ({ ref, oldOid: ZERO_OID, newOid: oid }));
@@ -8703,7 +8715,6 @@ function gitCustodyDesk(kernel, fetchImpl = fetch, observe, phaseStarted, import
8703
8715
  if (ledger.readOnly) {
8704
8716
  throw new Error(`read-only custody for '${workspace}' does not hold the requested frontier`);
8705
8717
  }
8706
- const expectedRemote = sealedMain.get(key) ?? resolveRef(workspace, receiptRef(ledger)) ?? ZERO_OID;
8707
8718
  let ancestryPack;
8708
8719
  if (oldHead !== expectedRemote && oldHead !== head) {
8709
8720
  if (oldHead !== ZERO_OID) {
@@ -24990,7 +25001,7 @@ function delayUntilDue(follow, nowUnixMillis) {
24990
25001
 
24991
25002
  // ../src/runtime/runtime_identity.ts
24992
25003
  init_define_NOMOS_KERNEL_RELEASE();
24993
- var PEER_RUNTIME_IDENTITY = "0.116.4" ? `@githolon/runtime@${"0.116.4"}` : "@githolon/runtime@unbundled";
25004
+ var PEER_RUNTIME_IDENTITY = "0.117.1" ? `@githolon/runtime@${"0.117.1"}` : "@githolon/runtime@unbundled";
24994
25005
 
24995
25006
  // ../src/runtime/replica_follow_desk.ts
24996
25007
  init_define_NOMOS_KERNEL_RELEASE();
@@ -48,7 +48,7 @@ export class NominalValue {
48
48
 
49
49
  export function parseNominalValue(bytes: Uint8Array): NominalValue {
50
50
  if (bytes.length > 65536) throw new TypeError('Nominal refusal exceeds its byte limit');
51
- const source = new TextDecoder('utf-8', { fatal: true }).decode(bytes);
51
+ const source = new TextDecoder('utf-8', { fatal: true, ignoreBOM: false }).decode(bytes);
52
52
  if (!source.startsWith('#usda 1.0')) throw new TypeError('Expected canonical nominal USDA');
53
53
  const tokens: string[] = [];
54
54
  const pattern = /\s+|#[^\n]*|"(?:[^"\\]|\\.)*"|<[^<>\n]*>|[{}()=]|[A-Za-z_][A-Za-z_0-9:]*|-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/gy;