@agoric/internal 0.3.3-other-dev-d15096d.0.d15096d → 0.3.3-other-dev-ecf44df.0.ecf44df

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 (132) hide show
  1. package/package.json +32 -36
  2. package/src/action-types.d.ts +47 -20
  3. package/src/action-types.d.ts.map +1 -1
  4. package/src/action-types.js +21 -21
  5. package/src/ava-force-exit.d.mts +2 -0
  6. package/src/ava-force-exit.d.mts.map +1 -0
  7. package/src/ava-force-exit.mjs +7 -0
  8. package/src/batched-deliver.d.ts +2 -2
  9. package/src/batched-deliver.d.ts.map +1 -1
  10. package/src/batched-deliver.js +2 -3
  11. package/src/build-cache-types.d.ts +33 -0
  12. package/src/build-cache-types.d.ts.map +1 -0
  13. package/src/build-cache-types.js +42 -0
  14. package/src/build-cache.d.ts +12 -0
  15. package/src/build-cache.d.ts.map +1 -0
  16. package/src/build-cache.js +184 -0
  17. package/src/callback.d.ts +1 -1
  18. package/src/callback.d.ts.map +1 -1
  19. package/src/callback.js +1 -0
  20. package/src/chain-storage-paths.d.ts.map +1 -1
  21. package/src/chain-storage-paths.js +0 -2
  22. package/src/config.d.ts +3 -3
  23. package/src/config.d.ts.map +1 -1
  24. package/src/config.js +6 -5
  25. package/src/debug.d.ts +2 -2
  26. package/src/debug.d.ts.map +1 -1
  27. package/src/debug.js +19 -5
  28. package/src/hex.d.ts.map +1 -1
  29. package/src/hex.js +18 -22
  30. package/src/index.d.ts +1 -0
  31. package/src/index.js +1 -2
  32. package/src/js-utils.d.ts +17 -2
  33. package/src/js-utils.d.ts.map +1 -1
  34. package/src/js-utils.js +49 -3
  35. package/src/keyMirror.d.ts +3 -0
  36. package/src/keyMirror.d.ts.map +1 -0
  37. package/src/keyMirror.js +45 -0
  38. package/src/kv-store.d.ts +33 -0
  39. package/src/kv-store.d.ts.map +1 -0
  40. package/src/kv-store.js +265 -0
  41. package/src/lib-chainStorage.d.ts +25 -42
  42. package/src/lib-chainStorage.d.ts.map +1 -1
  43. package/src/lib-chainStorage.js +38 -14
  44. package/src/lib-nodejs/ava-unhandled-rejection.d.ts +18 -3
  45. package/src/lib-nodejs/ava-unhandled-rejection.d.ts.map +1 -1
  46. package/src/lib-nodejs/ava-unhandled-rejection.js +217 -20
  47. package/src/lib-nodejs/engine-gc.js +2 -2
  48. package/src/lib-nodejs/gc-and-finalize.d.ts +2 -1
  49. package/src/lib-nodejs/gc-and-finalize.d.ts.map +1 -1
  50. package/src/lib-nodejs/gc-and-finalize.js +1 -0
  51. package/src/lib-nodejs/spawnSubprocessWorker.d.ts +11 -4
  52. package/src/lib-nodejs/spawnSubprocessWorker.d.ts.map +1 -1
  53. package/src/lib-nodejs/spawnSubprocessWorker.js +14 -4
  54. package/src/lib-nodejs/worker-protocol.d.ts +1 -1
  55. package/src/lib-nodejs/worker-protocol.d.ts.map +1 -1
  56. package/src/lib-nodejs/worker-protocol.js +5 -6
  57. package/src/magic-cookie-test-only.d.ts.map +1 -1
  58. package/src/magic-cookie-test-only.js +0 -2
  59. package/src/marshal/board-client-utils.d.ts.map +1 -1
  60. package/src/marshal/board-client-utils.js +4 -1
  61. package/src/marshal/cap-data.d.ts +9 -1
  62. package/src/marshal/cap-data.d.ts.map +1 -1
  63. package/src/marshal/cap-data.js +1 -2
  64. package/src/marshal/wrap-marshaller.d.ts +34 -7
  65. package/src/marshal/wrap-marshaller.d.ts.map +1 -1
  66. package/src/marshal/wrap-marshaller.js +64 -68
  67. package/src/metrics.d.ts +1 -4
  68. package/src/metrics.d.ts.map +1 -1
  69. package/src/metrics.js +7 -2
  70. package/src/module-utils.d.ts +1 -0
  71. package/src/module-utils.d.ts.map +1 -1
  72. package/src/module-utils.js +17 -0
  73. package/src/natural-sort.d.ts.map +1 -1
  74. package/src/natural-sort.js +7 -3
  75. package/src/netstring.d.ts +1 -1
  76. package/src/netstring.d.ts.map +1 -1
  77. package/src/netstring.js +5 -6
  78. package/src/node/buffer-line-transform.d.ts.map +1 -1
  79. package/src/node/buffer-line-transform.js +0 -1
  80. package/src/node/createBundles.d.ts +7 -3
  81. package/src/node/createBundles.d.ts.map +1 -1
  82. package/src/node/createBundles.js +31 -10
  83. package/src/node/fs-stream.d.ts +8 -5
  84. package/src/node/fs-stream.d.ts.map +1 -1
  85. package/src/node/fs-stream.js +120 -8
  86. package/src/node/read-json.d.ts +2 -0
  87. package/src/node/read-json.d.ts.map +1 -0
  88. package/src/node/read-json.js +16 -0
  89. package/src/node/shutdown.d.ts +6 -2
  90. package/src/node/shutdown.d.ts.map +1 -1
  91. package/src/node/shutdown.js +9 -3
  92. package/src/priority-senders.d.ts.map +1 -1
  93. package/src/priority-senders.js +1 -0
  94. package/src/queue.d.ts.map +1 -1
  95. package/src/queue.js +10 -2
  96. package/src/scratch.d.ts +32 -10
  97. package/src/scratch.d.ts.map +1 -1
  98. package/src/scratch.js +11 -0
  99. package/src/ses-utils.d.ts +14 -3
  100. package/src/ses-utils.d.ts.map +1 -1
  101. package/src/ses-utils.js +13 -15
  102. package/src/storage-test-utils.d.ts +4 -11
  103. package/src/storage-test-utils.d.ts.map +1 -1
  104. package/src/storage-test-utils.js +16 -14
  105. package/src/tagged.d.ts +18 -1
  106. package/src/testing-utils.d.ts +22 -1
  107. package/src/testing-utils.d.ts.map +1 -1
  108. package/src/testing-utils.js +131 -6
  109. package/src/tmpDir.d.ts.map +1 -1
  110. package/src/tmpDir.js +1 -1
  111. package/src/typeCheck.d.ts +4 -8
  112. package/src/typeCheck.d.ts.map +1 -1
  113. package/src/typeCheck.js +13 -6
  114. package/src/typeGuards.d.ts +5 -5
  115. package/src/typeGuards.d.ts.map +1 -1
  116. package/src/typeGuards.js +4 -5
  117. package/src/types-index.d.ts +1 -0
  118. package/src/types.d.ts +41 -14
  119. package/src/types.d.ts.map +1 -1
  120. package/src/types.js +161 -0
  121. package/src/upgrade-api.d.ts +2 -2
  122. package/src/upgrade-api.d.ts.map +1 -1
  123. package/src/upgrade-api.js +4 -3
  124. package/src/work-pool.d.ts.map +1 -1
  125. package/src/work-pool.js +9 -2
  126. package/vendor/anylogger.d.ts +98 -0
  127. package/vendor/anylogger.d.ts.map +1 -0
  128. package/vendor/anylogger.js +60 -0
  129. package/vendor/anylogger.ts +160 -0
  130. package/vendor/tsconfig.anylogger.json +15 -0
  131. package/exported.js +0 -2
  132. package/src/types.ts +0 -133
package/package.json CHANGED
@@ -1,70 +1,66 @@
1
1
  {
2
2
  "name": "@agoric/internal",
3
- "version": "0.3.3-other-dev-d15096d.0.d15096d",
3
+ "version": "0.3.3-other-dev-ecf44df.0.ecf44df",
4
4
  "description": "Externally unsupported utilities internal to agoric-sdk",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/Agoric/agoric-sdk.git"
8
+ },
5
9
  "type": "module",
6
10
  "main": "src/index.js",
7
11
  "engines": {
8
- "node": "^20.9 || ^22.11"
12
+ "node": "^22.11 || ^24.14"
9
13
  },
10
14
  "scripts": {
11
15
  "build": "exit 0",
12
- "prepack": "yarn run -T tsc --build tsconfig.build.json",
13
- "postpack": "git clean -f '*.d.*ts*' '*.tsbuildinfo'",
16
+ "prepack": "yarn run -T prepack-package",
17
+ "postpack": "yarn run -T postpack-package",
14
18
  "test": "ava",
15
19
  "test:nyc": "exit 0",
16
20
  "test:xs": "exit 0",
17
21
  "lint-fix": "yarn lint:eslint --fix",
18
22
  "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
19
- "lint:eslint": "yarn run -T eslint .",
20
- "lint:types": "yarn run -T tsc"
23
+ "lint:eslint": "node ../../scripts/eslint-repo.mjs .",
24
+ "lint:types": "yarn run -T tsgo --tsBuildInfoFile tsconfig.tsgo.tsbuildinfo"
21
25
  },
22
26
  "dependencies": {
23
- "@agoric/base-zone": "0.1.1-other-dev-d15096d.0.d15096d",
27
+ "@agoric/base-zone": "0.1.1-other-dev-ecf44df.0.ecf44df",
24
28
  "@endo/cache-map": "^1.1.0",
25
- "@endo/common": "^1.2.13",
26
- "@endo/compartment-mapper": "^1.6.3",
27
- "@endo/errors": "^1.2.13",
28
- "@endo/eventual-send": "^1.3.4",
29
+ "@endo/common": "^1.4.0",
30
+ "@endo/compartment-mapper": "^2.3.0",
31
+ "@endo/errors": "^1.3.1",
32
+ "@endo/eventual-send": "^1.5.0",
29
33
  "@endo/far": "^1.1.14",
30
- "@endo/init": "^1.1.12",
31
- "@endo/marshal": "^1.8.0",
32
- "@endo/nat": "^5.1.3",
33
- "@endo/pass-style": "^1.6.3",
34
- "@endo/patterns": "^1.7.0",
35
- "@endo/promise-kit": "^1.1.13",
36
- "@endo/stream": "^1.2.13",
37
- "anylogger": "^0.21.0",
34
+ "@endo/init": "^1.1.13",
35
+ "@endo/marshal": "^1.10.0",
36
+ "@endo/nat": "^5.2.0",
37
+ "@endo/pass-style": "^1.8.1",
38
+ "@endo/patterns": "^1.9.1",
39
+ "@endo/promise-kit": "^1.2.1",
40
+ "@endo/stream": "^1.3.1",
41
+ "import-meta-resolve": "^4.1.0",
38
42
  "jessie.js": "^0.3.4"
39
43
  },
40
44
  "devDependencies": {
41
- "@agoric/cosmic-proto": "0.4.1-other-dev-d15096d.0.d15096d",
42
- "@endo/exo": "^1.5.12",
43
- "@endo/init": "^1.1.12",
44
- "@endo/ses-ava": "^1.3.2",
45
- "@fast-check/ava": "^2.0.1",
46
- "ava": "^5.3.0",
45
+ "@agoric/cosmic-proto": "0.4.1-other-dev-ecf44df.0.ecf44df",
46
+ "@endo/exo": "^1.7.0",
47
+ "@endo/init": "^1.1.13",
48
+ "@endo/ses-ava": "^1.4.2",
49
+ "@fast-check/ava": "^3.0.1",
50
+ "ava": "^8.0.1",
47
51
  "tsd": "^0.33.0"
48
52
  },
49
- "ava": {
50
- "require": [
51
- "@endo/init/debug.js"
52
- ],
53
- "files": [
54
- "test/**/*.test.*"
55
- ]
56
- },
57
53
  "author": "Agoric",
58
54
  "license": "Apache-2.0",
59
55
  "files": [
60
56
  "src",
61
- "exported.js"
57
+ "vendor"
62
58
  ],
63
59
  "publishConfig": {
64
60
  "access": "public"
65
61
  },
66
62
  "typeCoverage": {
67
- "atLeast": 92.89
63
+ "atLeast": 95.63
68
64
  },
69
- "gitHead": "d15096dc4ff8b96e9b6cd11954c20d3a9efbb393"
65
+ "gitHead": "ecf44df5eadcc7a1d68745f056fca19155fb5231"
70
66
  }
@@ -11,14 +11,28 @@
11
11
  * - ../../cosmic-swingset/src/launch-chain.js
12
12
  */
13
13
  export type SwingsetMessageType = (typeof SwingsetMessageType)[keyof typeof SwingsetMessageType];
14
- export namespace SwingsetMessageType {
15
- let AG_COSMOS_INIT: "AG_COSMOS_INIT";
16
- let BEGIN_BLOCK: "BEGIN_BLOCK";
17
- let END_BLOCK: "END_BLOCK";
18
- let COMMIT_BLOCK: "COMMIT_BLOCK";
19
- let AFTER_COMMIT_BLOCK: "AFTER_COMMIT_BLOCK";
20
- let SWING_STORE_EXPORT: "SWING_STORE_EXPORT";
21
- }
14
+ /**
15
+ * Types of messages used for communication between a cosmos-sdk blockchain node
16
+ * and its paired swingset VM, especially for the ABCI lifecycle. See:
17
+ *
18
+ * - https://github.com/tendermint/tendermint/blob/v0.34.x/spec/abci/abci.md#block-execution
19
+ * - ../../../golang/cosmos/vm/action.go
20
+ * - ../../../golang/cosmos/app/app.go
21
+ * - ../../../golang/cosmos/x/swingset/abci.go
22
+ * - ../../../golang/cosmos/x/swingset/keeper/swing_store_exports_handler.go
23
+ * - ../../cosmic-swingset/src/chain-main.js
24
+ * - ../../cosmic-swingset/src/launch-chain.js
25
+ *
26
+ * @typedef {(typeof SwingsetMessageType)[keyof typeof SwingsetMessageType]} SwingsetMessageType
27
+ */
28
+ export const SwingsetMessageType: import("./keyMirror.js").KeyMirrorResult<{
29
+ AG_COSMOS_INIT: null;
30
+ BEGIN_BLOCK: null;
31
+ END_BLOCK: null;
32
+ COMMIT_BLOCK: null;
33
+ AFTER_COMMIT_BLOCK: null;
34
+ SWING_STORE_EXPORT: null;
35
+ }>;
22
36
  export const AG_COSMOS_INIT: "AG_COSMOS_INIT";
23
37
  export const BEGIN_BLOCK: "BEGIN_BLOCK";
24
38
  export const END_BLOCK: "END_BLOCK";
@@ -37,18 +51,31 @@ export const SWING_STORE_EXPORT: "SWING_STORE_EXPORT";
37
51
  * - ../../../golang/cosmos/x/vibc/types/ibc_module.go
38
52
  */
39
53
  export type QueuedActionType = (typeof QueuedActionType)[keyof typeof QueuedActionType];
40
- export namespace QueuedActionType {
41
- let CORE_EVAL: "CORE_EVAL";
42
- let DELIVER_INBOUND: "DELIVER_INBOUND";
43
- let IBC_EVENT: "IBC_EVENT";
44
- let INSTALL_BUNDLE: "INSTALL_BUNDLE";
45
- let PLEASE_PROVISION: "PLEASE_PROVISION";
46
- let VBANK_BALANCE_UPDATE: "VBANK_BALANCE_UPDATE";
47
- let WALLET_ACTION: "WALLET_ACTION";
48
- let WALLET_SPEND_ACTION: "WALLET_SPEND_ACTION";
49
- let VTRANSFER_IBC_EVENT: "VTRANSFER_IBC_EVENT";
50
- let KERNEL_UPGRADE_EVENTS: "KERNEL_UPGRADE_EVENTS";
51
- }
54
+ /**
55
+ * Types of "action" messages consumed by the swingset VM from actionQueue or
56
+ * highPriorityQueue during END_BLOCK. See:
57
+ *
58
+ * - ../../../golang/cosmos/x/swingset/keeper/msg_server.go
59
+ * - ../../../golang/cosmos/x/swingset/keeper/proposal.go
60
+ * - ../../../golang/cosmos/x/vbank/vbank.go
61
+ * - ../../../golang/cosmos/x/vibc/handler.go
62
+ * - ../../../golang/cosmos/x/vibc/keeper/triggers.go
63
+ * - ../../../golang/cosmos/x/vibc/types/ibc_module.go
64
+ *
65
+ * @typedef {(typeof QueuedActionType)[keyof typeof QueuedActionType]} QueuedActionType
66
+ */
67
+ export const QueuedActionType: import("./keyMirror.js").KeyMirrorResult<{
68
+ CORE_EVAL: null;
69
+ DELIVER_INBOUND: null;
70
+ IBC_EVENT: null;
71
+ INSTALL_BUNDLE: null;
72
+ PLEASE_PROVISION: null;
73
+ VBANK_BALANCE_UPDATE: null;
74
+ WALLET_ACTION: null;
75
+ WALLET_SPEND_ACTION: null;
76
+ VTRANSFER_IBC_EVENT: null;
77
+ KERNEL_UPGRADE_EVENTS: null;
78
+ }>;
52
79
  export const CORE_EVAL: "CORE_EVAL";
53
80
  export const DELIVER_INBOUND: "DELIVER_INBOUND";
54
81
  export const IBC_EVENT: "IBC_EVENT";
@@ -1 +1 @@
1
- {"version":3,"file":"action-types.d.ts","sourceRoot":"","sources":["action-types.js"],"names":[],"mappings":";;;;;;;;;;;;kCAcU,CAAC,OAAO,mBAAmB,EAAE,MAAM,OAAO,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;+BAiC9D,CAAC,OAAO,gBAAgB,EAAE,MAAM,OAAO,gBAAgB,CAAC"}
1
+ {"version":3,"file":"action-types.d.ts","sourceRoot":"","sources":["action-types.js"],"names":[],"mappings":";;;;;;;;;;;;kCAca,CAAC,OAAO,mBAAmB,EAAE,MAAM,OAAO,mBAAmB,CAAC;AAZ3E;;;;;;;;;;;;;GAaG;AACH;;;;;;;GAOG;;;;;;;;;;;;;;;;;;+BAwBU,CAAC,OAAO,gBAAgB,EAAE,MAAM,OAAO,gBAAgB,CAAC;AAXrE;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;;GAWG"}
@@ -1,4 +1,4 @@
1
- // @jessie-check
1
+ import { keyMirror } from './keyMirror.js';
2
2
 
3
3
  /**
4
4
  * Types of messages used for communication between a cosmos-sdk blockchain node
@@ -12,15 +12,15 @@
12
12
  * - ../../cosmic-swingset/src/chain-main.js
13
13
  * - ../../cosmic-swingset/src/launch-chain.js
14
14
  *
15
- * @enum {(typeof SwingsetMessageType)[keyof typeof SwingsetMessageType]}
15
+ * @typedef {(typeof SwingsetMessageType)[keyof typeof SwingsetMessageType]} SwingsetMessageType
16
16
  */
17
- export const SwingsetMessageType = /** @type {const} */ ({
18
- AG_COSMOS_INIT: 'AG_COSMOS_INIT', // used to synchronize at process launch
19
- BEGIN_BLOCK: 'BEGIN_BLOCK',
20
- END_BLOCK: 'END_BLOCK',
21
- COMMIT_BLOCK: 'COMMIT_BLOCK',
22
- AFTER_COMMIT_BLOCK: 'AFTER_COMMIT_BLOCK',
23
- SWING_STORE_EXPORT: 'SWING_STORE_EXPORT', // used to synchronize data export
17
+ export const SwingsetMessageType = keyMirror({
18
+ AG_COSMOS_INIT: null, // used to synchronize at process launch
19
+ BEGIN_BLOCK: null,
20
+ END_BLOCK: null,
21
+ COMMIT_BLOCK: null,
22
+ AFTER_COMMIT_BLOCK: null,
23
+ SWING_STORE_EXPORT: null, // used to synchronize data export
24
24
  });
25
25
  harden(SwingsetMessageType);
26
26
 
@@ -45,19 +45,19 @@ export const {
45
45
  * - ../../../golang/cosmos/x/vibc/keeper/triggers.go
46
46
  * - ../../../golang/cosmos/x/vibc/types/ibc_module.go
47
47
  *
48
- * @enum {(typeof QueuedActionType)[keyof typeof QueuedActionType]}
48
+ * @typedef {(typeof QueuedActionType)[keyof typeof QueuedActionType]} QueuedActionType
49
49
  */
50
- export const QueuedActionType = /** @type {const} */ ({
51
- CORE_EVAL: 'CORE_EVAL',
52
- DELIVER_INBOUND: 'DELIVER_INBOUND',
53
- IBC_EVENT: 'IBC_EVENT',
54
- INSTALL_BUNDLE: 'INSTALL_BUNDLE',
55
- PLEASE_PROVISION: 'PLEASE_PROVISION',
56
- VBANK_BALANCE_UPDATE: 'VBANK_BALANCE_UPDATE',
57
- WALLET_ACTION: 'WALLET_ACTION',
58
- WALLET_SPEND_ACTION: 'WALLET_SPEND_ACTION',
59
- VTRANSFER_IBC_EVENT: 'VTRANSFER_IBC_EVENT',
60
- KERNEL_UPGRADE_EVENTS: 'KERNEL_UPGRADE_EVENTS',
50
+ export const QueuedActionType = keyMirror({
51
+ CORE_EVAL: null,
52
+ DELIVER_INBOUND: null,
53
+ IBC_EVENT: null,
54
+ INSTALL_BUNDLE: null,
55
+ PLEASE_PROVISION: null,
56
+ VBANK_BALANCE_UPDATE: null,
57
+ WALLET_ACTION: null,
58
+ WALLET_SPEND_ACTION: null,
59
+ VTRANSFER_IBC_EVENT: null,
60
+ KERNEL_UPGRADE_EVENTS: null,
61
61
  });
62
62
  harden(QueuedActionType);
63
63
 
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ava-force-exit.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ava-force-exit.d.mts","sourceRoot":"","sources":["ava-force-exit.mjs"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import process from 'node:process';
2
+ // eslint-disable-next-line import/no-extraneous-dependencies -- `ava` is the test runner; this hook ships with the package
3
+ import { registerCompletionHandler } from 'ava';
4
+
5
+ registerCompletionHandler(() => {
6
+ process.exit();
7
+ });
@@ -4,8 +4,8 @@
4
4
  /**
5
5
  * @param {DeliverMessages} deliver
6
6
  * @param {{
7
- * clearTimeout: clearTimeout;
8
- * setTimeout: setTimeout;
7
+ * clearTimeout: typeof globalThis.clearTimeout;
8
+ * setTimeout: typeof globalThis.setTimeout;
9
9
  * }} io
10
10
  * @param {number} batchTimeoutMs
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"batched-deliver.d.ts","sourceRoot":"","sources":["batched-deliver.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;;;;;;;GAOG;AACH,4CAPW,eAAe,gCACf;IACN,YAAY,iCAAe;IAC3B,UAAU,+BAAa;CACxB,mBACO,MAAM,aATM,OAAO,EAAE,UAAU,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAiDjE;AAzDD;;;GAGG;AAEH,uCAAwC,IAAI,CAAC;8BAGhC,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"batched-deliver.d.ts","sourceRoot":"","sources":["batched-deliver.js"],"names":[],"mappings":"AASA;;GAEG;AAEH;;;;;;;GAOG;AACH,4CAPW,eAAe,gCACf;IACN,YAAY,EAAE,OAAO,UAAU,CAAC,YAAY,CAAC;IAC7C,UAAU,EAAE,OAAO,UAAU,CAAC,UAAU,CAAC;CAC1C,mBACO,MAAM,aATM,OAAO,EAAE,UAAU,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAiDjE;AAzDD;;;GAGG;AAEH,uCAAwC,IAAI,CAAC;8BAGhC,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC"}
@@ -1,4 +1,3 @@
1
- // @jessie-check
2
1
  // @ts-check
3
2
 
4
3
  /**
@@ -15,8 +14,8 @@ export const DEFAULT_BATCH_TIMEOUT_MS = 1000;
15
14
  /**
16
15
  * @param {DeliverMessages} deliver
17
16
  * @param {{
18
- * clearTimeout: clearTimeout;
19
- * setTimeout: setTimeout;
17
+ * clearTimeout: typeof globalThis.clearTimeout;
18
+ * setTimeout: typeof globalThis.setTimeout;
20
19
  * }} io
21
20
  * @param {number} batchTimeoutMs
22
21
  */
@@ -0,0 +1,33 @@
1
+ export interface LockLifecycleEvent {
2
+ key: string;
3
+ lockPath: string;
4
+ type: 'lock-acquired' | 'lock-released';
5
+ }
6
+ export interface LockWaitingEvent {
7
+ key: string;
8
+ lockPath: string;
9
+ type: 'lock-waiting';
10
+ waitedMs: number;
11
+ }
12
+ export interface LockBrokenEvent {
13
+ ageMs?: number;
14
+ key: string;
15
+ lockPath: string;
16
+ ownerPid?: number;
17
+ reason: 'dead-owner' | 'stale-age';
18
+ staleLockMs?: number;
19
+ type: 'lock-broken';
20
+ }
21
+ export type BuildCacheEvent = LockLifecycleEvent | LockWaitingEvent | LockBrokenEvent;
22
+ export interface DirectoryLockPowers {
23
+ acquireTimeoutMs: number;
24
+ delayMs: (ms: number) => Promise<unknown>;
25
+ fs: Pick<typeof import('node:fs/promises'), 'mkdir' | 'readFile' | 'rm' | 'stat' | 'writeFile'>;
26
+ isPidAlive: (pid: number) => boolean;
27
+ lockRoot: string;
28
+ now: () => number;
29
+ onEvent?: (event: BuildCacheEvent) => void;
30
+ pid: number;
31
+ staleLockMs: number;
32
+ }
33
+ //# sourceMappingURL=build-cache-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-cache-types.d.ts","sourceRoot":"","sources":["build-cache-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,eAAe,GAAG,eAAe,CAAC;CACzC;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,YAAY,GAAG,WAAW,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,GACvB,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,CAAC;AAEpB,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1C,EAAE,EAAE,IAAI,CACN,cAAc,kBAAkB,CAAC,EACjC,OAAO,GAAG,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,WAAW,CACnD,CAAC;IACF,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,12 @@
1
+ export function makeDirectoryLock(powers: DirectoryLockPowers): {
2
+ withLock: (key: string, body: () => Promise<any>) => Promise<any>;
3
+ };
4
+ export function writeFileAtomic({ fs, filePath, data, now, pid }: {
5
+ fs: Pick<typeof import("node:fs/promises"), "rename" | "writeFile">;
6
+ filePath: string;
7
+ data: string;
8
+ now: () => number;
9
+ pid: number;
10
+ }): Promise<void>;
11
+ import type { DirectoryLockPowers } from './build-cache-types.js';
12
+ //# sourceMappingURL=build-cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-cache.d.ts","sourceRoot":"","sources":["build-cache.js"],"names":[],"mappings":"AASO,0CAFI,mBAAmB;oBAmEjB,MAAM,QACN,MAAM,OAAO,CAAC,GAAG,CAAC;EAsF9B;AAgBM,kEAVI;IACN,EAAE,EAAE,IAAI,CAAC,cAAc,kBAAkB,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC,CAAC;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb,iBASH;yCAnLsD,wBAAwB"}
@@ -0,0 +1,184 @@
1
+ import path from 'node:path';
2
+
3
+ /**
4
+ * @import {BuildCacheEvent, DirectoryLockPowers} from './build-cache-types.js';
5
+ */
6
+
7
+ /**
8
+ * @param {DirectoryLockPowers} powers
9
+ */
10
+ export const makeDirectoryLock = powers => {
11
+ const {
12
+ fs,
13
+ delayMs,
14
+ now,
15
+ pid,
16
+ isPidAlive,
17
+ lockRoot,
18
+ staleLockMs,
19
+ acquireTimeoutMs,
20
+ onEvent = () => {},
21
+ } = powers;
22
+ /** @param {BuildCacheEvent} event */
23
+ const safeEmit = event => {
24
+ try {
25
+ onEvent(event);
26
+ } catch {
27
+ // Event sinks must not interfere with cache lock correctness.
28
+ }
29
+ };
30
+
31
+ /** @param {string} dpath */
32
+ const mkdirUnlessExists = async dpath => {
33
+ await null; // avoid accidentally catching synchronous exceptions
34
+ try {
35
+ await fs.mkdir(dpath);
36
+ return true;
37
+ } catch (err) {
38
+ const e = /** @type {NodeJS.ErrnoException} */ (err);
39
+ if (e.code === 'EEXIST') {
40
+ return false;
41
+ }
42
+ throw err;
43
+ }
44
+ };
45
+
46
+ /** @param {string} fpath */
47
+ const statUnlessMissing = async fpath => {
48
+ await null; // avoid accidentally catching synchronous exceptions
49
+ try {
50
+ return await fs.stat(fpath);
51
+ } catch (err) {
52
+ const e = /** @type {NodeJS.ErrnoException} */ (err);
53
+ if (e.code === 'ENOENT') {
54
+ return undefined;
55
+ }
56
+ throw err;
57
+ }
58
+ };
59
+
60
+ /** @param {string} fpath */
61
+ const readUnlessMissing = async fpath => {
62
+ await null; // avoid accidentally catching synchronous exceptions
63
+ try {
64
+ return await fs.readFile(fpath, 'utf8');
65
+ } catch (err) {
66
+ const e = /** @type {NodeJS.ErrnoException} */ (err);
67
+ if (e.code === 'ENOENT') {
68
+ return undefined;
69
+ }
70
+ throw err;
71
+ }
72
+ };
73
+
74
+ /**
75
+ * @param {string} key
76
+ * @param {() => Promise<any>} body
77
+ */
78
+ const withLock = async (key, body) => {
79
+ const lockPath = path.join(lockRoot, `${encodeURIComponent(key)}.lock`);
80
+ const ownerPath = path.join(lockPath, 'owner.json');
81
+ await fs.mkdir(lockRoot, { recursive: true });
82
+ const started = now();
83
+
84
+ const maybeBreakStaleLock = async () => {
85
+ const ownerText = await readUnlessMissing(ownerPath);
86
+ if (ownerText) {
87
+ try {
88
+ const ownerInfo = JSON.parse(ownerText);
89
+ if (
90
+ ownerInfo &&
91
+ typeof ownerInfo === 'object' &&
92
+ Number.isInteger(ownerInfo.pid) &&
93
+ !isPidAlive(ownerInfo.pid)
94
+ ) {
95
+ await fs.rm(lockPath, { recursive: true, force: true });
96
+ safeEmit({
97
+ type: 'lock-broken',
98
+ key,
99
+ lockPath,
100
+ reason: 'dead-owner',
101
+ ownerPid: ownerInfo.pid,
102
+ });
103
+ return true;
104
+ }
105
+ } catch {
106
+ // rely on age-based lock breaking for malformed owner files
107
+ }
108
+ }
109
+
110
+ const lockStats = await statUnlessMissing(lockPath);
111
+ if (!lockStats) {
112
+ return true;
113
+ }
114
+ const ageMs = now() - lockStats.mtimeMs;
115
+ if (ageMs >= staleLockMs) {
116
+ await fs.rm(lockPath, { recursive: true, force: true });
117
+ safeEmit({
118
+ type: 'lock-broken',
119
+ key,
120
+ lockPath,
121
+ reason: 'stale-age',
122
+ ageMs,
123
+ staleLockMs,
124
+ });
125
+ return true;
126
+ }
127
+
128
+ return false;
129
+ };
130
+
131
+ for (;;) {
132
+ if (await mkdirUnlessExists(lockPath)) {
133
+ await fs.writeFile(
134
+ ownerPath,
135
+ JSON.stringify({ pid, createdAt: now() }),
136
+ 'utf8',
137
+ );
138
+ safeEmit({ type: 'lock-acquired', key, lockPath });
139
+ break;
140
+ }
141
+ const recovered = await maybeBreakStaleLock();
142
+ if (recovered) {
143
+ continue;
144
+ }
145
+ const waitedMs = now() - started;
146
+ safeEmit({ type: 'lock-waiting', key, lockPath, waitedMs });
147
+ if (waitedMs >= acquireTimeoutMs) {
148
+ throw Error(`Timed out waiting for cache lock ${lockPath}`);
149
+ }
150
+ await delayMs(20);
151
+ }
152
+
153
+ try {
154
+ return await body();
155
+ } finally {
156
+ await fs.rm(lockPath, { recursive: true, force: true });
157
+ safeEmit({ type: 'lock-released', key, lockPath });
158
+ }
159
+ };
160
+
161
+ return harden({ withLock });
162
+ };
163
+ harden(makeDirectoryLock);
164
+
165
+ let atomicWriteSequence = 0;
166
+
167
+ /**
168
+ * @param {{
169
+ * fs: Pick<typeof import('node:fs/promises'), 'rename' | 'writeFile'>;
170
+ * filePath: string;
171
+ * data: string;
172
+ * now: () => number;
173
+ * pid: number;
174
+ * }} options
175
+ * @throws {NodeJS.ErrnoException} when a unique temp file cannot be created
176
+ * or the atomic rename fails.
177
+ */
178
+ export const writeFileAtomic = async ({ fs, filePath, data, now, pid }) => {
179
+ atomicWriteSequence += 1;
180
+ const tempPath = `${filePath}.${pid}.${now()}.${atomicWriteSequence}.tmp`;
181
+ await fs.writeFile(tempPath, data, { flag: 'wx' });
182
+ await fs.rename(tempPath, filePath);
183
+ };
184
+ harden(writeFileAtomic);
package/src/callback.d.ts CHANGED
@@ -12,7 +12,7 @@ export function prepareAttenuator<M extends PropertyKey>(zone: Zone, methodNames
12
12
  target?: any;
13
13
  isSync?: boolean | undefined;
14
14
  overrides?: { [K_1 in M]?: Callback<any> | null | undefined; } | undefined;
15
- }) => import("@endo/exo").Guarded<{ [K_2 in M]: (this: any, ...args: any[]) => any; }>;
15
+ }) => import("@endo/exo").Guarded<{ [K_2 in M]: (this: any, ...args: any[]) => any; }, InterfaceGuard>;
16
16
  export function prepareGuardedAttenuator<G extends InterfaceGuard>(zone: Zone, interfaceGuard: G, opts?: {
17
17
  tag?: string | undefined;
18
18
  }): MakeAttenuator<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["callback.js"],"names":[],"mappings":"AAuDO,yBALgC,CAAC,SAA3B,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,YAC3B,aAAa,CAAC,CAAC,WACf,UAAU,CAAC,CAAC,CAAC,GACX,UAAU,CAAC,CAAC,CAAC,CAQzB;AAWM,sBALgC,CAAC,SAA3B,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,YAC3B,SAAS,CAAC,CAAC,WACX,UAAU,CAAC,CAAC,CAAC,GACX,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAQ3C;AAaM,yCAPgC,CAAC,SAA3B,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,EAC+B,CAAC,S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AQ,IAAI,SAAS,GAAG,CAAC,CAcrC;AAgBM,kCAVoB,CAAC,SAAd,WAAY,QACf,IAAI,eACJ,CAAC,EAAE,4BAEX;IAEU,cAAc,qBADrB,CAAC;IAGkB,GAAG;CAC3B;aAiEc,GAAG;;;uDAtDgB,GAAG,WAAW,GAAG,EAAE,KAAK,GAAG,qBAyF5D;AAYM,yCANuB,CAAC,SAAlB,cAAgB,QAClB,IAAI,kBACJ,CAAC,SAET;IAAsB,GAAG;CAAC,GAQT,cAAc,CAAC,GAAG,CAAC,CACtC;2BAxSsB,CAAC,SAAX,OAAS,IACT,CACZ,GAAO,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,KACtD,QAAQ,CAAC,CAAC;kCAdwB,YAAY;8BAAZ,YAAY;0BAP/B,WAAW;0BAGX,mBAAmB;iCAEZ,gBAAgB;oCADb,gBAAgB;6BAHvB,WAAW;6BACX,WAAW"}
package/src/callback.js CHANGED
@@ -261,6 +261,7 @@ export const prepareAttenuator = (
261
261
  */
262
262
  const makeAttenuator = zone.exoClass(
263
263
  tag,
264
+ // @ts-expect-error optional InterfaceGuard doesn't match either overload
264
265
  interfaceGuard,
265
266
  /**
266
267
  * @param {object} opts
@@ -1 +1 @@
1
- {"version":3,"file":"chain-storage-paths.d.ts","sourceRoot":"","sources":["chain-storage-paths.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,2BAA4B,aAAa,CAAC;AAC1C,kCAAmC,mBAAmB,CAAC;AACvD,oCAAqC,qBAAqB,CAAC;AAC3D,yBAA0B,YAAY,CAAC;AACvC,qBAAsB,QAAQ,CAAC;AAC/B,sBAAuB,SAAS,CAAC;AACjC,sBAAuB,SAAS,CAAC;AACjC,qBAAsB,WAAW,CAAC;AAClC,0BAA2B,YAAY,CAAC"}
1
+ {"version":3,"file":"chain-storage-paths.d.ts","sourceRoot":"","sources":["chain-storage-paths.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,2BAA4B,aAAa,CAAC;AAC1C,kCAAmC,mBAAmB,CAAC;AACvD,oCAAqC,qBAAqB,CAAC;AAC3D,yBAA0B,YAAY,CAAC;AACvC,qBAAsB,QAAQ,CAAC;AAC/B,sBAAuB,SAAS,CAAC;AACjC,sBAAuB,SAAS,CAAC;AACjC,qBAAsB,WAAW,CAAC;AAClC,0BAA2B,YAAY,CAAC"}
@@ -1,5 +1,3 @@
1
- // @jessie-check
2
-
3
1
  /**
4
2
  * These identify top-level paths for SwingSet chain storage (and serve as
5
3
  * prefixes). To avoid collisions, they should remain synchronized with
package/src/config.d.ts CHANGED
@@ -17,9 +17,9 @@ export namespace CosmosInitKeyToBridgeId {
17
17
  let vbankPort: "bank";
18
18
  let vibcPort: "dibc";
19
19
  }
20
- export namespace WalletName {
21
- let depositFacet: "depositFacet";
22
- }
20
+ export const WalletName: import("./keyMirror.js").KeyMirrorResult<{
21
+ depositFacet: null;
22
+ }>;
23
23
  export namespace VBankAccount {
24
24
  namespace reserve {
25
25
  let module: "vbank/reserve";
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.js"],"names":[],"mappings":";;;uBAuCU,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BANrC,OAAO,GAAG,SAAS,GAAG,SAAS"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.js"],"names":[],"mappings":";;;uBAwCa,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;;;;;;;;AAsBrD;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA9BU,OAAO,GAAG,SAAS,GAAG,SAAS"}