@githolon/runtime 0.113.1 → 0.113.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.
@@ -58,7 +58,6 @@
58
58
  24f5eb575e633b68771328cc12fa6fde751ecc5f2700a6f52ea325938dc94342 node_modules/is-unsafe/src/index.js
59
59
  25c033d29ed62a510d8c43054ec238776bcba0949808cb6054df5cbea951ddf7 adapter/proto/nomos/runtime/v2/interaction_desk_pb.js
60
60
  25d57b7e880708c04738087de674a8c98092e5bfd39d5193cdb63a2f1e33871e node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js
61
- 268188e466adbd048097b01170ada3ae7f6650769d1484614eb871e73dc9a67c platform-shells/browser/worker_entry.ts
62
61
  27cd18d5bc8e1fa9ccc4d7e1322b2ca864023e8c268304b4f795a8ad9a222fd8 adapter/amortized_memory_file.ts
63
62
  27d164987aeae0cffae136eaa84ff39ca6efd9c07018dce4b63f0d352d3d855b adapter/proto/nomos/runtime/v2/maintenance_desk_pb.js
64
63
  286c659a8f940c313077afe8a00c0dc128d4a138edf6d9a4519f29538b58c94f node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
@@ -72,16 +71,17 @@
72
71
  2f1340ab32dce314f41638b7ee6d0368b974e3302983154b815a6d49a6dfb63b node_modules/@nodable/entities/src/all-entities.js
73
72
  30b48d6f01b36d491c79f60f73170e0efb2bab6ac68a5285b88e81e940a9ddc8 peer-office/src/runtime/recovery_desk.ts
74
73
  31765c70a6b4d88ceb34921c8cfacede363a2e8cdf5ede663f7bf8fcfcbc4330 peer-office/package/runner/shims.js
74
+ 31f10d01fe72c8cd679fbda5cd393fbbaeced53f035dfd06e9e657f60c291019 platform-shells/browser/peer.ts
75
75
  330dd51c5ed866affe7ab19e38cad9fb9204847a51cc86e932c02771bcfcd702 node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js
76
76
  3321bab1c56461419b77491bd28cd08a3bec451426b2e021007189b51a1c4f13 adapter/proto/nomos/runtime/v2/framework_pb.js
77
77
  33917d22c20458fce8ef7e3a4fca8f51af8ace4508e6a435870b3ad61ea2eab4 peer-office/src/git_read_lease.ts
78
78
  33e7d6bdd22396057d3f8db92384079f7ec2fda4b3582709de2d43fccacc4a9c node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js
79
79
  34f8712de2bd30a2cb8366d8cfdcde466d979f1a28ac0d78f7547341b01f6c57 adapter/proto/nomos/kernel/v1/progress_pb.js
80
- 386b0d2f0777fc0200ba882e60eea492fe057e991e5d437c135cf146b29e4fab platform-shells/browser/worker_page_entry.ts
81
80
  3a90933569db7e42ec2ed3b77509c29d1ab75f6eb078f53fe5d1ac6d239d231e peer-office/src/runtime/peer_background_scheduler.ts
82
81
  3c092b8d4185badd23ecf4552434d05aa541b0cd0d534781d687db55260d5da8 adapter/proto/nomos/runtime/v2/sealing_desk_pb.js
83
82
  3c98fa838c05abcfd8dfda1128f2d1fca9b196a371fe9751abbd8f4c3b9d04ec node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js
84
83
  3d05089a8c1008f20e06da9907eec7f8824f871edfc95e907c15dc8e2bdf43e7 node_modules/@bufbuild/protobuf/dist/esm/extensions.js
84
+ 3e5e0540872bcfb39a59047a1b1d1f5942e9de12f0a834e81912c6670a8e1269 platform-shells/browser/worker_page_entry.ts
85
85
  3eef60b7d08402d6a0b9427fde0308878929398918f09747833fd9a06ea3fa7d workspace-discovery/src/http.ts
86
86
  3fa38ca64538032d871cd44da41bf6a6ad2eb133b6b8ebc2d8b4d33615b00dcf peer-office/src/reception/application_session_pipe.ts
87
87
  3fade4f9262d10e39f346b57a7f08d03641e0ebd75556d087f6319f6c6003a24 peer-office/src/runtime/sha256.ts
@@ -98,6 +98,7 @@
98
98
  48b8a92448c21da157755c24058a1522d62389815254bd43858e27fc200cc793 peer-office/src/runtime/retention_observer.ts
99
99
  497ee51559f8769c47defb7679dd516b5736c22c433bc857a19e8ccd9593c842 node_modules/is-unsafe/src/contexts/xml.js
100
100
  4b96aaeb5ac5986cf802cbf22b975c656682d22a38248160c96fc2ded5644869 node_modules/@bjorn3/browser_wasi_shim/dist/fs_opfs.js
101
+ 4bb63a465e91fd7af727cd3b4c06ea2caa7aa1b92e9ae9b2b60beee037cd3256 platform-shells/browser/custody_store.ts
101
102
  4d5b4d0e3a8b3bfa4535e85a2182446f05f32e179dffba00e07422da84cbdb69 node_modules/fast-xml-builder/src/orderedJs2Xml.js
102
103
  4de8a60302e6ab22ef5607ee88ab6dd6559221fb8620780fb874a1dcf3000d06 node_modules/is-unsafe/src/contexts/sql.js
103
104
  4f177e43f1ac36dc25b2b6a44970c97918091416bd15722b65ac938256bda687 node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
@@ -165,7 +166,6 @@
165
166
  85dbc9e0ee784d9ff8b55452644e00bf7058e32355aab974f8b71d7d85772324 node_modules/@bjorn3/browser_wasi_shim/dist/fs_mem.js
166
167
  8682a066cf855574abf093eb0c0aec93399a9ea135b9641977c5cec90b1400a8 node_modules/@bufbuild/protobuf/dist/esm/index.js
167
168
  870ccd88a5d51e35ef8cbc59e7f2a35d31defc87aded9c06023ae57838851901 node_modules/fast-xml-parser/src/util.js
168
- 87638f7663a5d68c42da568452aabebd8b4340f6a72fecf982ca56bfb02e3911 peer-office/package/package.json
169
169
  87be44002a7340bb0c13167b3815625ea25a3f60aaa4254015fed35b1b0044f1 peer-office/src/runtime/application_readiness_desk.ts
170
170
  89f8c8a3ca87eacd6d1787156d8a950ce0e3ad85894ed94140f4c696ee142147 node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js
171
171
  8a2735fc5e9f2acbdb75d0c6e622afd4f1dd57bc1700137774e5cf8836971b25 peer-office/src/runtime/remote_generated_offer.ts
@@ -182,6 +182,7 @@
182
182
  94a3cef0f355a9a177661748d24faae32206a5cc382c8601a34dcf005340107b node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
183
183
  95ad7c933403a0c8f7fd3e2df6c4df3008c29911d3d5db063a90460a14144da2 peer-office/src/runtime/records_desk.ts
184
184
  95dbcb2580ed30cb11222c773163c6a906a7e363c5ec4263bd39c1f3a7a16cc2 node_modules/@bufbuild/protobuf/dist/esm/from-json.js
185
+ 9634891339d48126199a20c3ee535eb20b0635b862f632725fdc6d645542eff2 peer-office/package/package.json
185
186
  96cb2eb563ccb18dc23fd9f8fb0f65193a1b90f39758a561eed747368ead00b3 node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js
186
187
  96ec5d127a4e8cd77bdc678422f0d57c8ff9e37bcec999983da71a7b72ce9a0e node_modules/@nodable/entities/src/entities.js
187
188
  98f5abf9a7fb522aab513ef3831dd9c5837cebcb38a960cb546ffd084926d746 node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js
@@ -217,6 +218,7 @@ b07e6f28e18bcf30df86fd71007976ad01ecee7ed45dcc91ec7c2ee5d7184088 peer-office/sr
217
218
  b09ee99807e1edeb746b4a4a1e41519edaff1fed9f71a170bc15e8835af93e25 node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js
218
219
  b1db7ea18d82851f6f19f0ce9c1e718bf64556425e7723cca5ba213b8558ac2d peer-office/src/runtime/peer_maintenance_scheduler.ts
219
220
  b2510e5dcadaccb131d63fd3900ab17f85f54c9c6e2178400ceb1eace6ca552a peer-office/src/runtime/kernel_port.ts
221
+ b29d03c7242a44fa4e6b8ee5c8e9279965c328baf5f97b314272c5fefad855b2 platform-shells/browser/worker_entry.ts
220
222
  b4932f38ab2f4b89fbdd4458944591cbea052ef40180a2b64475ee44891e62e1 platform-shells/shared/with_workspace_discovery.ts
221
223
  b4c474e617f91b74f99322f19561ad699933becf7efe73f0582da94db1bec465 node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js
222
224
  b68312b9501ba96f45496f3f30db62c158a127bbb00d7e8ff081b2d741218497 adapter/git_custody_desk.ts
@@ -276,7 +278,6 @@ e2133d7e0f0ce5491a3e9bd560e9e47db2243a6a9f762be89c82e027d99d278e peer-office/sr
276
278
  e394b7a580a2853949ec937d742b54fd8169029a5d10a3e4e521b984c60adb6d peer-office/src/runtime/identity_desk.ts
277
279
  e411cf95c1c0c7063b863a08ad568d61044069f9338028eace56e362029ad3a7 peer-office/src/runtime/residency_desk.ts
278
280
  e45a879696cd2e7b692aa282677abf216297c1d129135e914b8a76fd0cbe15bd peer-office/src/reception/generated_offer_counter.ts
279
- e73558ce46f5e55526015696d299aad8188825bbd1e09deb8ea22b181c3f253a platform-shells/browser/custody_store.ts
280
281
  eb9e106e81226ab9547882079e7fd6a9d885d2c71ba78784f7edaa7db61bb941 node_modules/is-unsafe/src/contexts/svg.js
281
282
  ebbf22c6979f6b2b05c580922e7dd197f4f4a246d504d4c0cc8e64778f12d4ed node_modules/path-expression-matcher/src/index.js
282
283
  ece435d3784d928d02bff4d015b7cb686f8c06de8536ff9f8ebc38a8f403a3be node_modules/@bjorn3/browser_wasi_shim/dist/strace.js
@@ -293,7 +294,6 @@ f8b97660653e1826c51166d4700d079d2fc89dd923ee522706b11297e06f3165 node_modules/@
293
294
  f8c6a9b031489dfc1573e7a669e4860223ddeedc0007db5dbf5878a14249776d node_modules/anynum/anynum.js
294
295
  fa2838d141fba0e8ee5bd2197956c3f6b1d23668be2c8841a585614ea7051f99 node_modules/@nodable/entities/src/entityTries.js
295
296
  fbc88bbf3cea189f0494b0949049ffeac334b8c5015ebfc988217f2fcdb3262b node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js
296
- fd3a6108238dacd441a475c62baf64f78698918ed566eb53796a261010a094fe platform-shells/browser/peer.ts
297
297
  fe1678ab1c98db7387bea6892ec10a90a06a8e2ed01efb1ee577c3d155e4a395 node_modules/is-unsafe/src/contexts/log.js
298
298
  fe3e2b20c1ebb57c3b390c8f685ad1e04e6f493517fa7e432f4351bb77a1a4d0 node_modules/ieee754/index.js
299
299
  ff7cd9328539ca7bea898b6074d796b32e5600ab35e357d0ca050f068260b2b6 peer-office/src/runtime/application_compatibility_posture.ts
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  (() => {
3
3
  // ../../platform-shells/browser/worker_page_entry.ts
4
- var workerDigest = true ? "ade4b5cad661abe236e62493f1fae81a32cf1ff3275da2b4f2938a5eb3ae9754" : "";
4
+ var workerDigest = true ? "051bd37c4dec771340abac5fab088d66a63328bce47c928d3fe547fd950eaef5" : "";
5
5
  var SLOW_OPERATION_MICROS = 1e6;
6
6
  var slowOperationsReported = 0;
7
7
  var bootStages = [];
@@ -145,7 +145,13 @@
145
145
  bootResolve = resolve;
146
146
  bootReject = reject;
147
147
  });
148
- send({ kind: "boot", base });
148
+ let reloaded = false;
149
+ try {
150
+ const navigation = performance.getEntriesByType("navigation")[0];
151
+ reloaded = navigation?.type === "reload" || navigation?.type === "back_forward";
152
+ } catch {
153
+ }
154
+ send({ kind: "boot", base, reloaded });
149
155
  } catch (error) {
150
156
  fail(error instanceof Error ? error : new Error(String(error)));
151
157
  return Promise.reject(error);
@@ -12295,7 +12295,8 @@
12295
12295
  var BrowserCustodyStore = _BrowserCustodyStore;
12296
12296
  var CUSTODY_LOCK_WAIT_MILLIS = 8e3;
12297
12297
  var anotherTab = () => new Error("This application's workspace is open in another tab. Close that tab and retry; your saved data is preserved.");
12298
- async function openBrowserCustody(base) {
12298
+ async function openBrowserCustody(base, options = {}) {
12299
+ const lockWaitMillis = options.lockWaitMillis ?? CUSTODY_LOCK_WAIT_MILLIS;
12299
12300
  if (!globalThis.indexedDB || !globalThis.navigator?.locks) throw new Error("Durable browser custody needs IndexedDB and Web Locks. Use a supported browser on HTTPS and allow site storage.");
12300
12301
  const name = `nomos-custody-v1:${base.replace(/\/+$/, "")}`;
12301
12302
  let release;
@@ -12316,9 +12317,11 @@
12316
12317
  void navigator.locks.request(name, { ifAvailable: true }, async (lock) => {
12317
12318
  if (lock) return holding(lock);
12318
12319
  let signal;
12319
- try {
12320
- signal = AbortSignal.timeout(CUSTODY_LOCK_WAIT_MILLIS);
12321
- } catch {
12320
+ if (lockWaitMillis > 0) {
12321
+ try {
12322
+ signal = AbortSignal.timeout(lockWaitMillis);
12323
+ } catch {
12324
+ }
12322
12325
  }
12323
12326
  if (!signal) {
12324
12327
  refuse(anotherTab());
@@ -36741,7 +36744,7 @@
36741
36744
  });
36742
36745
  selecting.catch(() => {
36743
36746
  });
36744
- const storage = options.custodyStore ?? await openBrowserCustody(options.base);
36747
+ const storage = options.custodyStore ?? await openBrowserCustody(options.base, options.custodyLockWaitMillis === void 0 ? {} : { lockWaitMillis: options.custodyLockWaitMillis });
36745
36748
  progress("opened browser custody");
36746
36749
  storage.onCheckpoint = options.onCustodyCheckpoint;
36747
36750
  try {
@@ -36955,7 +36958,7 @@
36955
36958
  send({ kind: "effect", id, pending: toBase64(toBinary(CorrespondencePendingSchema, pending)) });
36956
36959
  return fromBinary(PeerEffectReceiptSchema, fromBase64(await received));
36957
36960
  };
36958
- var boot2 = (base) => {
36961
+ var boot2 = (base, reloaded = false) => {
36959
36962
  if (disposing) return Promise.reject(new Error("Nomos peer runtime is disposing"));
36960
36963
  if (peer) return Promise.resolve();
36961
36964
  if (booting) return booting;
@@ -36988,6 +36991,8 @@
36988
36991
  deviceIdentity: externalPeerEffect,
36989
36992
  lawPackage: externalPeerEffect,
36990
36993
  base: base.replace(/\/+$/, ""),
36994
+ // Wait for a predecessor's custody lock only when this page is a reload of it.
36995
+ ...reloaded ? {} : { custodyLockWaitMillis: 0 },
36991
36996
  kernelRepositoryUrl: void 0,
36992
36997
  release: define_NOMOS_KERNEL_RELEASE_default,
36993
36998
  profile: {
@@ -37025,7 +37030,7 @@
37025
37030
  const message = event.data;
37026
37031
  switch (message.kind) {
37027
37032
  case "boot":
37028
- void boot2(message.base).then(() => {
37033
+ void boot2(message.base, message.reloaded === true).then(() => {
37029
37034
  if (!disposing) send({ kind: "booted" });
37030
37035
  }, (error) => {
37031
37036
  if (!disposing) send({ kind: "boot-failed", error: errorText(error) });
@@ -12295,7 +12295,8 @@
12295
12295
  var BrowserCustodyStore = _BrowserCustodyStore;
12296
12296
  var CUSTODY_LOCK_WAIT_MILLIS = 8e3;
12297
12297
  var anotherTab = () => new Error("This application's workspace is open in another tab. Close that tab and retry; your saved data is preserved.");
12298
- async function openBrowserCustody(base) {
12298
+ async function openBrowserCustody(base, options = {}) {
12299
+ const lockWaitMillis = options.lockWaitMillis ?? CUSTODY_LOCK_WAIT_MILLIS;
12299
12300
  if (!globalThis.indexedDB || !globalThis.navigator?.locks) throw new Error("Durable browser custody needs IndexedDB and Web Locks. Use a supported browser on HTTPS and allow site storage.");
12300
12301
  const name = `nomos-custody-v1:${base.replace(/\/+$/, "")}`;
12301
12302
  let release;
@@ -12316,9 +12317,11 @@
12316
12317
  void navigator.locks.request(name, { ifAvailable: true }, async (lock) => {
12317
12318
  if (lock) return holding(lock);
12318
12319
  let signal;
12319
- try {
12320
- signal = AbortSignal.timeout(CUSTODY_LOCK_WAIT_MILLIS);
12321
- } catch {
12320
+ if (lockWaitMillis > 0) {
12321
+ try {
12322
+ signal = AbortSignal.timeout(lockWaitMillis);
12323
+ } catch {
12324
+ }
12322
12325
  }
12323
12326
  if (!signal) {
12324
12327
  refuse(anotherTab());
@@ -36732,7 +36735,7 @@
36732
36735
  });
36733
36736
  selecting.catch(() => {
36734
36737
  });
36735
- const storage = options.custodyStore ?? await openBrowserCustody(options.base);
36738
+ const storage = options.custodyStore ?? await openBrowserCustody(options.base, options.custodyLockWaitMillis === void 0 ? {} : { lockWaitMillis: options.custodyLockWaitMillis });
36736
36739
  progress("opened browser custody");
36737
36740
  storage.onCheckpoint = options.onCustodyCheckpoint;
36738
36741
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@githolon/runtime",
3
- "version": "0.113.1",
3
+ "version": "0.113.2",
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",