@agoric/spawner 0.6.9 → 0.6.10-upgrade-23-dev-bd79330.0.bd79330

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/spawner",
3
- "version": "0.6.9",
3
+ "version": "0.6.10-upgrade-23-dev-bd79330.0.bd79330",
4
4
  "description": "Wrapper for JavaScript map",
5
5
  "type": "module",
6
6
  "main": "./src/contractHost.js",
@@ -8,14 +8,12 @@
8
8
  "node": "^20.9 || ^22.11"
9
9
  },
10
10
  "scripts": {
11
- "build": "yarn build:bundles",
12
- "build:bundles": "node scripts/build-bundles.js",
13
11
  "test": "ava",
14
12
  "test:c8": "c8 --all ${C8_OPTIONS:-} ava",
15
13
  "test:xs": "exit 0",
16
14
  "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
17
15
  "lint-fix": "yarn lint:eslint --fix",
18
- "lint:eslint": "yarn run -T eslint ."
16
+ "lint:eslint": "node ../../scripts/eslint-repo.mjs ."
19
17
  },
20
18
  "repository": {
21
19
  "type": "git",
@@ -37,11 +35,11 @@
37
35
  "@endo/marshal": "^1.8.0"
38
36
  },
39
37
  "devDependencies": {
40
- "@agoric/internal": "0.4.0",
41
- "@agoric/swingset-vat": "0.33.0",
38
+ "@agoric/internal": "0.4.1-upgrade-23-dev-bd79330.0.bd79330",
39
+ "@agoric/swingset-vat": "0.33.1-upgrade-23-dev-bd79330.0.bd79330",
42
40
  "@endo/bundle-source": "^4.1.2",
43
41
  "@endo/init": "^1.1.12",
44
- "ava": "^5.3.0",
42
+ "ava": "^6.4.1",
45
43
  "c8": "^10.1.3"
46
44
  },
47
45
  "files": [
@@ -59,10 +57,11 @@
59
57
  "require": [
60
58
  "@endo/init/debug.js"
61
59
  ],
60
+ "workerThreads": false,
62
61
  "timeout": "2m"
63
62
  },
64
63
  "typeCoverage": {
65
64
  "atLeast": 55.05
66
65
  },
67
- "gitHead": "0922d0447ab8fae9d2d87415964403330b5ca313"
66
+ "gitHead": "bd79330f78dae2faf9cc3d8b10063567700da07b"
68
67
  }
@@ -4,10 +4,9 @@ import { assert } from '@endo/errors';
4
4
  import { E } from '@endo/eventual-send';
5
5
  import { Far } from '@endo/marshal';
6
6
 
7
- // spawnBundle is built with 'yarn build'
8
- import spawnBundle from '../bundles/bundle-spawn.js';
9
-
10
- function makeSpawner(vatAdminSvc) {
7
+ function makeSpawner(vatAdminSvc, spawnBundleCapP = undefined) {
8
+ const spawnBundleRefP =
9
+ spawnBundleCapP || E(vatAdminSvc).getNamedBundleCap('spawn');
11
10
  return Far('spawner', {
12
11
  install(bundle, oldModuleFormat) {
13
12
  assert(!oldModuleFormat, 'oldModuleFormat not supported');
@@ -15,7 +14,8 @@ function makeSpawner(vatAdminSvc) {
15
14
  async spawn(argsP) {
16
15
  const meter = await E(vatAdminSvc).createUnlimitedMeter();
17
16
  const opts = { name: 'spawn', meter };
18
- const { root } = await E(vatAdminSvc).createVat(spawnBundle, opts);
17
+ const spawnBundleRef = await spawnBundleRefP;
18
+ const { root } = await E(vatAdminSvc).createVat(spawnBundleRef, opts);
19
19
  return E(E(root).loadBundle(bundle)).start(argsP);
20
20
  },
21
21
  });
@@ -1,465 +0,0 @@
1
- {
2
- "bundleFileName": "bundle-spawn.js",
3
- "bundleTime": "2026-04-08T20:39:41.958Z",
4
- "bundleSize": 517897,
5
- "moduleSource": {
6
- "relative": "../../src/vat-spawned.js",
7
- "absolute": "/Users/mfig/.codex/worktrees/06b5/agoric-sdk/packages/spawner/src/vat-spawned.js"
8
- },
9
- "contents": [
10
- {
11
- "relativePath": "",
12
- "mtime": "2026-04-03T05:53:10.255Z",
13
- "size": 713
14
- },
15
- {
16
- "relativePath": "../../../../node_modules/@endo/import-bundle/src/index.js",
17
- "mtime": "2026-04-08T20:38:59.971Z",
18
- "size": 9017
19
- },
20
- {
21
- "relativePath": "../../../../node_modules/@endo/marshal/index.js",
22
- "mtime": "2026-04-08T20:38:59.664Z",
23
- "size": 1114
24
- },
25
- {
26
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/import-archive.js",
27
- "mtime": "2026-04-08T20:38:59.821Z",
28
- "size": 189
29
- },
30
- {
31
- "relativePath": "../../../../node_modules/@endo/base64/index.js",
32
- "mtime": "2026-04-08T20:38:59.960Z",
33
- "size": 164
34
- },
35
- {
36
- "relativePath": "../../../../node_modules/@endo/import-bundle/src/compartment-wrapper.js",
37
- "mtime": "2026-04-08T20:38:59.971Z",
38
- "size": 5530
39
- },
40
- {
41
- "relativePath": "../../../../node_modules/@endo/errors/index.js",
42
- "mtime": "2026-04-08T20:38:59.632Z",
43
- "size": 2711
44
- },
45
- {
46
- "relativePath": "../../../../node_modules/@endo/marshal/src/encodeToCapData.js",
47
- "mtime": "2026-04-08T20:38:59.653Z",
48
- "size": 16131
49
- },
50
- {
51
- "relativePath": "../../../../node_modules/@endo/marshal/src/marshal.js",
52
- "mtime": "2026-04-08T20:38:59.654Z",
53
- "size": 14652
54
- },
55
- {
56
- "relativePath": "../../../../node_modules/@endo/marshal/src/marshal-stringify.js",
57
- "mtime": "2026-04-08T20:38:59.654Z",
58
- "size": 1881
59
- },
60
- {
61
- "relativePath": "../../../../node_modules/@endo/marshal/src/marshal-justin.js",
62
- "mtime": "2026-04-08T20:38:59.653Z",
63
- "size": 15501
64
- },
65
- {
66
- "relativePath": "../../../../node_modules/@endo/marshal/src/encodePassable.js",
67
- "mtime": "2026-04-08T20:38:59.652Z",
68
- "size": 29588
69
- },
70
- {
71
- "relativePath": "../../../../node_modules/@endo/marshal/src/rankOrder.js",
72
- "mtime": "2026-04-08T20:38:59.655Z",
73
- "size": 19858
74
- },
75
- {
76
- "relativePath": "../../../../node_modules/@endo/marshal/src/types.js",
77
- "mtime": "2026-04-08T20:38:59.655Z",
78
- "size": 8177
79
- },
80
- {
81
- "relativePath": "../../../../node_modules/@endo/pass-style/index.js",
82
- "mtime": "2026-04-08T20:38:59.785Z",
83
- "size": 1210
84
- },
85
- {
86
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/types-external.js",
87
- "mtime": "2026-04-08T20:38:59.771Z",
88
- "size": 62
89
- },
90
- {
91
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/import-archive.js",
92
- "mtime": "2026-04-08T20:38:59.763Z",
93
- "size": 3421
94
- },
95
- {
96
- "relativePath": "../../../../node_modules/@endo/base64/src/encode.js",
97
- "mtime": "2026-04-08T20:38:59.956Z",
98
- "size": 1972
99
- },
100
- {
101
- "relativePath": "../../../../node_modules/@endo/base64/src/decode.js",
102
- "mtime": "2026-04-08T20:38:59.956Z",
103
- "size": 2435
104
- },
105
- {
106
- "relativePath": "../../../../node_modules/@endo/base64/btoa.js",
107
- "mtime": "2026-04-08T20:38:59.955Z",
108
- "size": 512
109
- },
110
- {
111
- "relativePath": "../../../../node_modules/@endo/base64/atob.js",
112
- "mtime": "2026-04-08T20:38:59.954Z",
113
- "size": 330
114
- },
115
- {
116
- "relativePath": "../../../../node_modules/@endo/marshal/src/encodeToSmallcaps.js",
117
- "mtime": "2026-04-08T20:38:59.653Z",
118
- "size": 16658
119
- },
120
- {
121
- "relativePath": "../../../../node_modules/@endo/nat/src/index.js",
122
- "mtime": "2026-04-08T20:38:59.656Z",
123
- "size": 2526
124
- },
125
- {
126
- "relativePath": "../../../../node_modules/@endo/common/object-map.js",
127
- "mtime": "2026-04-08T20:38:59.756Z",
128
- "size": 2213
129
- },
130
- {
131
- "relativePath": "../../../../node_modules/@endo/env-options/index.js",
132
- "mtime": "2026-04-08T20:39:00.062Z",
133
- "size": 38
134
- },
135
- {
136
- "relativePath": "../../../../node_modules/@endo/pass-style/src/iter-helpers.js",
137
- "mtime": "2026-04-08T20:38:59.769Z",
138
- "size": 1810
139
- },
140
- {
141
- "relativePath": "../../../../node_modules/@endo/pass-style/src/passStyle-helpers.js",
142
- "mtime": "2026-04-08T20:38:59.770Z",
143
- "size": 6367
144
- },
145
- {
146
- "relativePath": "../../../../node_modules/@endo/pass-style/src/error.js",
147
- "mtime": "2026-04-08T20:38:59.768Z",
148
- "size": 6252
149
- },
150
- {
151
- "relativePath": "../../../../node_modules/@endo/pass-style/src/remotable.js",
152
- "mtime": "2026-04-08T20:38:59.771Z",
153
- "size": 10111
154
- },
155
- {
156
- "relativePath": "../../../../node_modules/@endo/pass-style/src/symbol.js",
157
- "mtime": "2026-04-08T20:38:59.772Z",
158
- "size": 4117
159
- },
160
- {
161
- "relativePath": "../../../../node_modules/@endo/pass-style/src/string.js",
162
- "mtime": "2026-04-08T20:38:59.771Z",
163
- "size": 3121
164
- },
165
- {
166
- "relativePath": "../../../../node_modules/@endo/pass-style/src/passStyleOf.js",
167
- "mtime": "2026-04-08T20:38:59.771Z",
168
- "size": 13505
169
- },
170
- {
171
- "relativePath": "../../../../node_modules/@endo/pass-style/src/makeTagged.js",
172
- "mtime": "2026-04-08T20:38:59.770Z",
173
- "size": 810
174
- },
175
- {
176
- "relativePath": "../../../../node_modules/@endo/pass-style/src/make-far.js",
177
- "mtime": "2026-04-08T20:38:59.769Z",
178
- "size": 8349
179
- },
180
- {
181
- "relativePath": "../../../../node_modules/@endo/pass-style/src/typeGuards.js",
182
- "mtime": "2026-04-08T20:38:59.772Z",
183
- "size": 4025
184
- },
185
- {
186
- "relativePath": "../../../../node_modules/@endo/pass-style/src/deeplyFulfilled.js",
187
- "mtime": "2026-04-08T20:38:59.768Z",
188
- "size": 5437
189
- },
190
- {
191
- "relativePath": "../../../../node_modules/@endo/pass-style/src/types.js",
192
- "mtime": "2026-04-08T20:38:59.773Z",
193
- "size": 47
194
- },
195
- {
196
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/import-archive-parsers.js",
197
- "mtime": "2026-04-08T20:38:59.761Z",
198
- "size": 816
199
- },
200
- {
201
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/import-archive-lite.js",
202
- "mtime": "2026-04-08T20:38:59.761Z",
203
- "size": 13748
204
- },
205
- {
206
- "relativePath": "../../../../node_modules/@endo/base64/src/common.js",
207
- "mtime": "2026-04-08T20:38:59.955Z",
208
- "size": 572
209
- },
210
- {
211
- "relativePath": "../../../../node_modules/@endo/base64/encode.js",
212
- "mtime": "2026-04-08T20:38:59.960Z",
213
- "size": 48
214
- },
215
- {
216
- "relativePath": "../../../../node_modules/@endo/base64/decode.js",
217
- "mtime": "2026-04-08T20:38:59.960Z",
218
- "size": 48
219
- },
220
- {
221
- "relativePath": "../../../../node_modules/@endo/env-options/src/env-options.js",
222
- "mtime": "2026-04-08T20:39:00.061Z",
223
- "size": 4660
224
- },
225
- {
226
- "relativePath": "../../../../node_modules/@endo/eventual-send/utils.js",
227
- "mtime": "2026-04-08T20:38:59.655Z",
228
- "size": 125
229
- },
230
- {
231
- "relativePath": "../../../../node_modules/@endo/pass-style/src/copyArray.js",
232
- "mtime": "2026-04-08T20:38:59.768Z",
233
- "size": 1411
234
- },
235
- {
236
- "relativePath": "../../../../node_modules/@endo/pass-style/src/byteArray.js",
237
- "mtime": "2026-04-08T20:38:59.768Z",
238
- "size": 2746
239
- },
240
- {
241
- "relativePath": "../../../../node_modules/@endo/pass-style/src/copyRecord.js",
242
- "mtime": "2026-04-08T20:38:59.768Z",
243
- "size": 2213
244
- },
245
- {
246
- "relativePath": "../../../../node_modules/@endo/pass-style/src/tagged.js",
247
- "mtime": "2026-04-08T20:38:59.772Z",
248
- "size": 1596
249
- },
250
- {
251
- "relativePath": "../../../../node_modules/@endo/pass-style/src/safe-promise.js",
252
- "mtime": "2026-04-08T20:38:59.771Z",
253
- "size": 4891
254
- },
255
- {
256
- "relativePath": "../../../../node_modules/@endo/promise-kit/index.js",
257
- "mtime": "2026-04-08T20:38:59.660Z",
258
- "size": 1607
259
- },
260
- {
261
- "relativePath": "../../../../node_modules/@endo/common/ident-checker.js",
262
- "mtime": "2026-04-08T20:38:59.752Z",
263
- "size": 1613
264
- },
265
- {
266
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/no-shim.js",
267
- "mtime": "2026-04-08T20:38:59.644Z",
268
- "size": 1051
269
- },
270
- {
271
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-pre-cjs.js",
272
- "mtime": "2026-04-08T20:38:59.769Z",
273
- "size": 1807
274
- },
275
- {
276
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-json.js",
277
- "mtime": "2026-04-08T20:38:59.769Z",
278
- "size": 1086
279
- },
280
- {
281
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-text.js",
282
- "mtime": "2026-04-08T20:38:59.770Z",
283
- "size": 1101
284
- },
285
- {
286
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-bytes.js",
287
- "mtime": "2026-04-08T20:38:59.768Z",
288
- "size": 1142
289
- },
290
- {
291
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-pre-mjs.js",
292
- "mtime": "2026-04-08T20:38:59.769Z",
293
- "size": 1178
294
- },
295
- {
296
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/link.js",
297
- "mtime": "2026-04-08T20:38:59.765Z",
298
- "size": 13083
299
- },
300
- {
301
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/json.js",
302
- "mtime": "2026-04-08T20:38:59.764Z",
303
- "size": 650
304
- },
305
- {
306
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/powers.js",
307
- "mtime": "2026-04-08T20:38:59.771Z",
308
- "size": 2687
309
- },
310
- {
311
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/node-module-specifier.js",
312
- "mtime": "2026-04-08T20:38:59.767Z",
313
- "size": 5158
314
- },
315
- {
316
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/compartment-map.js",
317
- "mtime": "2026-04-08T20:38:59.760Z",
318
- "size": 11444
319
- },
320
- {
321
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/import-hook.js",
322
- "mtime": "2026-04-08T20:38:59.763Z",
323
- "size": 29025
324
- },
325
- {
326
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/policy.js",
327
- "mtime": "2026-04-08T20:38:59.771Z",
328
- "size": 15030
329
- },
330
- {
331
- "relativePath": "../../../../node_modules/@endo/zip/index.js",
332
- "mtime": "2026-04-08T20:39:00.080Z",
333
- "size": 183
334
- },
335
- {
336
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/local.js",
337
- "mtime": "2026-04-08T20:38:59.644Z",
338
- "size": 4235
339
- },
340
- {
341
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/message-breakpoints.js",
342
- "mtime": "2026-04-08T20:38:59.644Z",
343
- "size": 5618
344
- },
345
- {
346
- "relativePath": "../../../../node_modules/@endo/promise-kit/src/promise-executor-kit.js",
347
- "mtime": "2026-04-08T20:38:59.661Z",
348
- "size": 1535
349
- },
350
- {
351
- "relativePath": "../../../../node_modules/@endo/promise-kit/src/memo-race.js",
352
- "mtime": "2026-04-08T20:38:59.660Z",
353
- "size": 5162
354
- },
355
- {
356
- "relativePath": "../../../../node_modules/@endo/promise-kit/src/is-promise.js",
357
- "mtime": "2026-04-08T20:38:59.660Z",
358
- "size": 290
359
- },
360
- {
361
- "relativePath": "../../../../node_modules/@endo/promise-kit/src/types.js",
362
- "mtime": "2026-04-08T20:38:59.661Z",
363
- "size": 681
364
- },
365
- {
366
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/E.js",
367
- "mtime": "2026-04-08T20:38:59.643Z",
368
- "size": 15661
369
- },
370
- {
371
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/exports.js",
372
- "mtime": "2026-04-08T20:38:59.643Z",
373
- "size": 76
374
- },
375
- {
376
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-cjs-shared-export-wrapper.js",
377
- "mtime": "2026-04-08T20:38:59.768Z",
378
- "size": 7497
379
- },
380
- {
381
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/map-parser.js",
382
- "mtime": "2026-04-08T20:38:59.766Z",
383
- "size": 12444
384
- },
385
- {
386
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/policy-format.js",
387
- "mtime": "2026-04-08T20:38:59.771Z",
388
- "size": 6968
389
- },
390
- {
391
- "relativePath": "../../../../node_modules/@endo/trampoline/index.js",
392
- "mtime": "2026-04-08T20:39:04.683Z",
393
- "size": 37
394
- },
395
- {
396
- "relativePath": "../../../../node_modules/@endo/zip/src/types.js",
397
- "mtime": "2026-04-08T20:39:00.070Z",
398
- "size": 1349
399
- },
400
- {
401
- "relativePath": "../../../../node_modules/@endo/zip/src/reader.js",
402
- "mtime": "2026-04-08T20:39:00.069Z",
403
- "size": 1444
404
- },
405
- {
406
- "relativePath": "../../../../node_modules/@endo/zip/src/writer.js",
407
- "mtime": "2026-04-08T20:39:00.070Z",
408
- "size": 1434
409
- },
410
- {
411
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/track-turns.js",
412
- "mtime": "2026-04-08T20:38:59.645Z",
413
- "size": 3987
414
- },
415
- {
416
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/extension.js",
417
- "mtime": "2026-04-08T20:38:59.760Z",
418
- "size": 558
419
- },
420
- {
421
- "relativePath": "../../../../node_modules/@endo/trampoline/src/trampoline.js",
422
- "mtime": "2026-04-08T20:39:04.684Z",
423
- "size": 2066
424
- },
425
- {
426
- "relativePath": "../../../../node_modules/@endo/zip/src/buffer-reader.js",
427
- "mtime": "2026-04-08T20:39:00.066Z",
428
- "size": 6160
429
- },
430
- {
431
- "relativePath": "../../../../node_modules/@endo/zip/src/format-reader.js",
432
- "mtime": "2026-04-08T20:39:00.068Z",
433
- "size": 14620
434
- },
435
- {
436
- "relativePath": "../../../../node_modules/@endo/zip/src/buffer-writer.js",
437
- "mtime": "2026-04-08T20:39:00.067Z",
438
- "size": 4177
439
- },
440
- {
441
- "relativePath": "../../../../node_modules/@endo/zip/src/format-writer.js",
442
- "mtime": "2026-04-08T20:39:00.069Z",
443
- "size": 7377
444
- },
445
- {
446
- "relativePath": "../../../../node_modules/@endo/zip/src/crc32.js",
447
- "mtime": "2026-04-08T20:39:00.068Z",
448
- "size": 1005
449
- },
450
- {
451
- "relativePath": "../../../../node_modules/@endo/zip/src/compression.js",
452
- "mtime": "2026-04-08T20:39:00.067Z",
453
- "size": 89
454
- },
455
- {
456
- "relativePath": "../../../../node_modules/@endo/zip/src/signature.js",
457
- "mtime": "2026-04-08T20:39:00.070Z",
458
- "size": 616
459
- }
460
- ],
461
- "noTransforms": false,
462
- "elideComments": true,
463
- "format": "endoZipBase64",
464
- "conditions": []
465
- }