@agoric/spawner 0.6.9-dev-754698c.0.754698c → 0.6.9-dev-1d67c2a.0.1d67c2a

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-dev-754698c.0.754698c",
3
+ "version": "0.6.9-dev-1d67c2a.0.1d67c2a",
4
4
  "description": "Wrapper for JavaScript map",
5
5
  "type": "module",
6
6
  "main": "./src/contractHost.js",
@@ -8,8 +8,6 @@
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",
@@ -37,8 +35,8 @@
37
35
  "@endo/marshal": "^1.8.0"
38
36
  },
39
37
  "devDependencies": {
40
- "@agoric/internal": "0.3.3-dev-754698c.0.754698c",
41
- "@agoric/swingset-vat": "0.32.3-dev-754698c.0.754698c",
38
+ "@agoric/internal": "0.3.3-dev-1d67c2a.0.1d67c2a",
39
+ "@agoric/swingset-vat": "0.32.3-dev-1d67c2a.0.1d67c2a",
42
40
  "@endo/bundle-source": "^4.1.2",
43
41
  "@endo/init": "^1.1.12",
44
42
  "ava": "^6.4.1",
@@ -65,5 +63,5 @@
65
63
  "typeCoverage": {
66
64
  "atLeast": 55.05
67
65
  },
68
- "gitHead": "754698ceecae0bf068be0022082e672ff4bc71cb"
66
+ "gitHead": "1d67c2a384e8486c7638ab8e424f46e15f4b321d"
69
67
  }
@@ -4,11 +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
- // eslint-disable-next-line import/no-extraneous-dependencies -- cannot detect self-reference
9
- import spawnBundle from '@agoric/spawner/bundles/bundle-spawn.js';
10
-
11
- function makeSpawner(vatAdminSvc) {
7
+ function makeSpawner(vatAdminSvc, spawnBundleCapP = undefined) {
8
+ const spawnBundleRefP =
9
+ spawnBundleCapP || E(vatAdminSvc).getNamedBundleCap('spawn');
12
10
  return Far('spawner', {
13
11
  install(bundle, oldModuleFormat) {
14
12
  assert(!oldModuleFormat, 'oldModuleFormat not supported');
@@ -16,7 +14,8 @@ function makeSpawner(vatAdminSvc) {
16
14
  async spawn(argsP) {
17
15
  const meter = await E(vatAdminSvc).createUnlimitedMeter();
18
16
  const opts = { name: 'spawn', meter };
19
- const { root } = await E(vatAdminSvc).createVat(spawnBundle, opts);
17
+ const spawnBundleRef = await spawnBundleRefP;
18
+ const { root } = await E(vatAdminSvc).createVat(spawnBundleRef, opts);
20
19
  return E(E(root).loadBundle(bundle)).start(argsP);
21
20
  },
22
21
  });
@@ -1,465 +0,0 @@
1
- {
2
- "bundleFileName": "bundle-spawn.js",
3
- "bundleTime": "2026-02-12T05:47:20.216Z",
4
- "bundleSize": 518193,
5
- "moduleSource": {
6
- "relative": "../../src/vat-spawned.js",
7
- "absolute": "/home/runner/work/agoric-sdk/agoric-sdk/packages/spawner/src/vat-spawned.js"
8
- },
9
- "contents": [
10
- {
11
- "relativePath": "",
12
- "mtime": "2026-02-12T05:45:46.776Z",
13
- "size": 713
14
- },
15
- {
16
- "relativePath": "../../../../node_modules/@endo/import-bundle/src/index.js",
17
- "mtime": "2026-02-12T05:46:18.470Z",
18
- "size": 9017
19
- },
20
- {
21
- "relativePath": "../../../../node_modules/@endo/marshal/index.js",
22
- "mtime": "2026-02-12T05:46:18.247Z",
23
- "size": 1114
24
- },
25
- {
26
- "relativePath": "../../../../node_modules/@endo/import-bundle/src/compartment-wrapper.js",
27
- "mtime": "2026-02-12T05:46:18.470Z",
28
- "size": 5530
29
- },
30
- {
31
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/import-archive.js",
32
- "mtime": "2026-02-12T05:46:18.372Z",
33
- "size": 189
34
- },
35
- {
36
- "relativePath": "../../../../node_modules/@endo/base64/index.js",
37
- "mtime": "2026-02-12T05:46:18.464Z",
38
- "size": 164
39
- },
40
- {
41
- "relativePath": "../../../../node_modules/@endo/errors/index.js",
42
- "mtime": "2026-02-12T05:46:18.233Z",
43
- "size": 2711
44
- },
45
- {
46
- "relativePath": "../../../../node_modules/@endo/marshal/src/encodeToCapData.js",
47
- "mtime": "2026-02-12T05:46:18.250Z",
48
- "size": 16131
49
- },
50
- {
51
- "relativePath": "../../../../node_modules/@endo/marshal/src/marshal.js",
52
- "mtime": "2026-02-12T05:46:18.254Z",
53
- "size": 14652
54
- },
55
- {
56
- "relativePath": "../../../../node_modules/@endo/marshal/src/marshal-stringify.js",
57
- "mtime": "2026-02-12T05:46:18.254Z",
58
- "size": 1881
59
- },
60
- {
61
- "relativePath": "../../../../node_modules/@endo/marshal/src/marshal-justin.js",
62
- "mtime": "2026-02-12T05:46:18.253Z",
63
- "size": 15501
64
- },
65
- {
66
- "relativePath": "../../../../node_modules/@endo/marshal/src/encodePassable.js",
67
- "mtime": "2026-02-12T05:46:18.250Z",
68
- "size": 29587
69
- },
70
- {
71
- "relativePath": "../../../../node_modules/@endo/marshal/src/rankOrder.js",
72
- "mtime": "2026-02-12T05:46:18.255Z",
73
- "size": 19858
74
- },
75
- {
76
- "relativePath": "../../../../node_modules/@endo/marshal/src/types.js",
77
- "mtime": "2026-02-12T05:46:18.256Z",
78
- "size": 8177
79
- },
80
- {
81
- "relativePath": "../../../../node_modules/@endo/pass-style/index.js",
82
- "mtime": "2026-02-12T05:46:18.324Z",
83
- "size": 1210
84
- },
85
- {
86
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/types-external.js",
87
- "mtime": "2026-02-12T05:46:18.326Z",
88
- "size": 62
89
- },
90
- {
91
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/import-archive.js",
92
- "mtime": "2026-02-12T05:46:18.317Z",
93
- "size": 3421
94
- },
95
- {
96
- "relativePath": "../../../../node_modules/@endo/base64/src/encode.js",
97
- "mtime": "2026-02-12T05:46:18.461Z",
98
- "size": 1972
99
- },
100
- {
101
- "relativePath": "../../../../node_modules/@endo/base64/src/decode.js",
102
- "mtime": "2026-02-12T05:46:18.461Z",
103
- "size": 2435
104
- },
105
- {
106
- "relativePath": "../../../../node_modules/@endo/base64/btoa.js",
107
- "mtime": "2026-02-12T05:46:18.460Z",
108
- "size": 512
109
- },
110
- {
111
- "relativePath": "../../../../node_modules/@endo/base64/atob.js",
112
- "mtime": "2026-02-12T05:46:18.460Z",
113
- "size": 330
114
- },
115
- {
116
- "relativePath": "../../../../node_modules/@endo/marshal/src/encodeToSmallcaps.js",
117
- "mtime": "2026-02-12T05:46:18.252Z",
118
- "size": 16676
119
- },
120
- {
121
- "relativePath": "../../../../node_modules/@endo/nat/src/index.js",
122
- "mtime": "2026-02-12T05:46:18.246Z",
123
- "size": 2526
124
- },
125
- {
126
- "relativePath": "../../../../node_modules/@endo/common/object-map.js",
127
- "mtime": "2026-02-12T05:46:18.313Z",
128
- "size": 2213
129
- },
130
- {
131
- "relativePath": "../../../../node_modules/@endo/env-options/index.js",
132
- "mtime": "2026-02-12T05:46:18.520Z",
133
- "size": 38
134
- },
135
- {
136
- "relativePath": "../../../../node_modules/@endo/pass-style/src/iter-helpers.js",
137
- "mtime": "2026-02-12T05:46:18.331Z",
138
- "size": 1810
139
- },
140
- {
141
- "relativePath": "../../../../node_modules/@endo/pass-style/src/passStyle-helpers.js",
142
- "mtime": "2026-02-12T05:46:18.334Z",
143
- "size": 7039
144
- },
145
- {
146
- "relativePath": "../../../../node_modules/@endo/pass-style/src/error.js",
147
- "mtime": "2026-02-12T05:46:18.329Z",
148
- "size": 6252
149
- },
150
- {
151
- "relativePath": "../../../../node_modules/@endo/pass-style/src/remotable.js",
152
- "mtime": "2026-02-12T05:46:18.335Z",
153
- "size": 10110
154
- },
155
- {
156
- "relativePath": "../../../../node_modules/@endo/pass-style/src/symbol.js",
157
- "mtime": "2026-02-12T05:46:18.338Z",
158
- "size": 4117
159
- },
160
- {
161
- "relativePath": "../../../../node_modules/@endo/pass-style/src/string.js",
162
- "mtime": "2026-02-12T05:46:18.337Z",
163
- "size": 3121
164
- },
165
- {
166
- "relativePath": "../../../../node_modules/@endo/pass-style/src/passStyleOf.js",
167
- "mtime": "2026-02-12T05:46:18.335Z",
168
- "size": 13505
169
- },
170
- {
171
- "relativePath": "../../../../node_modules/@endo/pass-style/src/makeTagged.js",
172
- "mtime": "2026-02-12T05:46:18.333Z",
173
- "size": 810
174
- },
175
- {
176
- "relativePath": "../../../../node_modules/@endo/pass-style/src/make-far.js",
177
- "mtime": "2026-02-12T05:46:18.331Z",
178
- "size": 8349
179
- },
180
- {
181
- "relativePath": "../../../../node_modules/@endo/pass-style/src/typeGuards.js",
182
- "mtime": "2026-02-12T05:46:18.340Z",
183
- "size": 4025
184
- },
185
- {
186
- "relativePath": "../../../../node_modules/@endo/pass-style/src/deeplyFulfilled.js",
187
- "mtime": "2026-02-12T05:46:18.328Z",
188
- "size": 5576
189
- },
190
- {
191
- "relativePath": "../../../../node_modules/@endo/pass-style/src/types.js",
192
- "mtime": "2026-02-12T05:46:18.340Z",
193
- "size": 47
194
- },
195
- {
196
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/import-archive-parsers.js",
197
- "mtime": "2026-02-12T05:46:18.317Z",
198
- "size": 816
199
- },
200
- {
201
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/import-archive-lite.js",
202
- "mtime": "2026-02-12T05:46:18.316Z",
203
- "size": 13748
204
- },
205
- {
206
- "relativePath": "../../../../node_modules/@endo/base64/src/common.js",
207
- "mtime": "2026-02-12T05:46:18.460Z",
208
- "size": 572
209
- },
210
- {
211
- "relativePath": "../../../../node_modules/@endo/base64/encode.js",
212
- "mtime": "2026-02-12T05:46:18.464Z",
213
- "size": 48
214
- },
215
- {
216
- "relativePath": "../../../../node_modules/@endo/base64/decode.js",
217
- "mtime": "2026-02-12T05:46:18.463Z",
218
- "size": 48
219
- },
220
- {
221
- "relativePath": "../../../../node_modules/@endo/env-options/src/env-options.js",
222
- "mtime": "2026-02-12T05:46:18.519Z",
223
- "size": 4660
224
- },
225
- {
226
- "relativePath": "../../../../node_modules/@endo/eventual-send/utils.js",
227
- "mtime": "2026-02-12T05:46:18.251Z",
228
- "size": 125
229
- },
230
- {
231
- "relativePath": "../../../../node_modules/@endo/pass-style/src/copyArray.js",
232
- "mtime": "2026-02-12T05:46:18.326Z",
233
- "size": 1411
234
- },
235
- {
236
- "relativePath": "../../../../node_modules/@endo/pass-style/src/byteArray.js",
237
- "mtime": "2026-02-12T05:46:18.325Z",
238
- "size": 2746
239
- },
240
- {
241
- "relativePath": "../../../../node_modules/@endo/pass-style/src/copyRecord.js",
242
- "mtime": "2026-02-12T05:46:18.327Z",
243
- "size": 2213
244
- },
245
- {
246
- "relativePath": "../../../../node_modules/@endo/pass-style/src/tagged.js",
247
- "mtime": "2026-02-12T05:46:18.339Z",
248
- "size": 1596
249
- },
250
- {
251
- "relativePath": "../../../../node_modules/@endo/pass-style/src/safe-promise.js",
252
- "mtime": "2026-02-12T05:46:18.336Z",
253
- "size": 4891
254
- },
255
- {
256
- "relativePath": "../../../../node_modules/@endo/promise-kit/index.js",
257
- "mtime": "2026-02-12T05:46:18.252Z",
258
- "size": 1607
259
- },
260
- {
261
- "relativePath": "../../../../node_modules/@endo/common/ident-checker.js",
262
- "mtime": "2026-02-12T05:46:18.311Z",
263
- "size": 1613
264
- },
265
- {
266
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/no-shim.js",
267
- "mtime": "2026-02-12T05:46:18.247Z",
268
- "size": 1051
269
- },
270
- {
271
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-pre-cjs.js",
272
- "mtime": "2026-02-12T05:46:18.324Z",
273
- "size": 1807
274
- },
275
- {
276
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-json.js",
277
- "mtime": "2026-02-12T05:46:18.324Z",
278
- "size": 1086
279
- },
280
- {
281
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-text.js",
282
- "mtime": "2026-02-12T05:46:18.325Z",
283
- "size": 1101
284
- },
285
- {
286
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-bytes.js",
287
- "mtime": "2026-02-12T05:46:18.321Z",
288
- "size": 1142
289
- },
290
- {
291
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-pre-mjs.js",
292
- "mtime": "2026-02-12T05:46:18.325Z",
293
- "size": 1178
294
- },
295
- {
296
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/link.js",
297
- "mtime": "2026-02-12T05:46:18.318Z",
298
- "size": 13083
299
- },
300
- {
301
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/json.js",
302
- "mtime": "2026-02-12T05:46:18.318Z",
303
- "size": 650
304
- },
305
- {
306
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/powers.js",
307
- "mtime": "2026-02-12T05:46:18.326Z",
308
- "size": 2687
309
- },
310
- {
311
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/node-module-specifier.js",
312
- "mtime": "2026-02-12T05:46:18.319Z",
313
- "size": 5158
314
- },
315
- {
316
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/compartment-map.js",
317
- "mtime": "2026-02-12T05:46:18.315Z",
318
- "size": 11444
319
- },
320
- {
321
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/import-hook.js",
322
- "mtime": "2026-02-12T05:46:18.317Z",
323
- "size": 29025
324
- },
325
- {
326
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/policy.js",
327
- "mtime": "2026-02-12T05:46:18.325Z",
328
- "size": 15030
329
- },
330
- {
331
- "relativePath": "../../../../node_modules/@endo/zip/index.js",
332
- "mtime": "2026-02-12T05:46:18.532Z",
333
- "size": 183
334
- },
335
- {
336
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/local.js",
337
- "mtime": "2026-02-12T05:46:18.244Z",
338
- "size": 4235
339
- },
340
- {
341
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/message-breakpoints.js",
342
- "mtime": "2026-02-12T05:46:18.246Z",
343
- "size": 5618
344
- },
345
- {
346
- "relativePath": "../../../../node_modules/@endo/promise-kit/src/promise-executor-kit.js",
347
- "mtime": "2026-02-12T05:46:18.253Z",
348
- "size": 1535
349
- },
350
- {
351
- "relativePath": "../../../../node_modules/@endo/promise-kit/src/memo-race.js",
352
- "mtime": "2026-02-12T05:46:18.253Z",
353
- "size": 5162
354
- },
355
- {
356
- "relativePath": "../../../../node_modules/@endo/promise-kit/src/is-promise.js",
357
- "mtime": "2026-02-12T05:46:18.252Z",
358
- "size": 290
359
- },
360
- {
361
- "relativePath": "../../../../node_modules/@endo/promise-kit/src/types.js",
362
- "mtime": "2026-02-12T05:46:18.253Z",
363
- "size": 681
364
- },
365
- {
366
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/E.js",
367
- "mtime": "2026-02-12T05:46:18.240Z",
368
- "size": 17389
369
- },
370
- {
371
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/exports.js",
372
- "mtime": "2026-02-12T05:46:18.241Z",
373
- "size": 76
374
- },
375
- {
376
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/parse-cjs-shared-export-wrapper.js",
377
- "mtime": "2026-02-12T05:46:18.322Z",
378
- "size": 7497
379
- },
380
- {
381
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/map-parser.js",
382
- "mtime": "2026-02-12T05:46:18.319Z",
383
- "size": 12444
384
- },
385
- {
386
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/policy-format.js",
387
- "mtime": "2026-02-12T05:46:18.325Z",
388
- "size": 6968
389
- },
390
- {
391
- "relativePath": "../../../../node_modules/@endo/trampoline/index.js",
392
- "mtime": "2026-02-12T05:46:20.813Z",
393
- "size": 37
394
- },
395
- {
396
- "relativePath": "../../../../node_modules/@endo/zip/src/types.js",
397
- "mtime": "2026-02-12T05:46:18.525Z",
398
- "size": 1349
399
- },
400
- {
401
- "relativePath": "../../../../node_modules/@endo/zip/src/reader.js",
402
- "mtime": "2026-02-12T05:46:18.525Z",
403
- "size": 1444
404
- },
405
- {
406
- "relativePath": "../../../../node_modules/@endo/zip/src/writer.js",
407
- "mtime": "2026-02-12T05:46:18.526Z",
408
- "size": 1434
409
- },
410
- {
411
- "relativePath": "../../../../node_modules/@endo/eventual-send/src/track-turns.js",
412
- "mtime": "2026-02-12T05:46:18.250Z",
413
- "size": 3987
414
- },
415
- {
416
- "relativePath": "../../../../node_modules/@endo/compartment-mapper/src/extension.js",
417
- "mtime": "2026-02-12T05:46:18.315Z",
418
- "size": 558
419
- },
420
- {
421
- "relativePath": "../../../../node_modules/@endo/trampoline/src/trampoline.js",
422
- "mtime": "2026-02-12T05:46:20.813Z",
423
- "size": 2066
424
- },
425
- {
426
- "relativePath": "../../../../node_modules/@endo/zip/src/buffer-reader.js",
427
- "mtime": "2026-02-12T05:46:18.524Z",
428
- "size": 6160
429
- },
430
- {
431
- "relativePath": "../../../../node_modules/@endo/zip/src/format-reader.js",
432
- "mtime": "2026-02-12T05:46:18.525Z",
433
- "size": 14620
434
- },
435
- {
436
- "relativePath": "../../../../node_modules/@endo/zip/src/buffer-writer.js",
437
- "mtime": "2026-02-12T05:46:18.524Z",
438
- "size": 4177
439
- },
440
- {
441
- "relativePath": "../../../../node_modules/@endo/zip/src/format-writer.js",
442
- "mtime": "2026-02-12T05:46:18.525Z",
443
- "size": 7377
444
- },
445
- {
446
- "relativePath": "../../../../node_modules/@endo/zip/src/crc32.js",
447
- "mtime": "2026-02-12T05:46:18.524Z",
448
- "size": 1005
449
- },
450
- {
451
- "relativePath": "../../../../node_modules/@endo/zip/src/signature.js",
452
- "mtime": "2026-02-12T05:46:18.525Z",
453
- "size": 616
454
- },
455
- {
456
- "relativePath": "../../../../node_modules/@endo/zip/src/compression.js",
457
- "mtime": "2026-02-12T05:46:18.524Z",
458
- "size": 89
459
- }
460
- ],
461
- "noTransforms": false,
462
- "elideComments": true,
463
- "format": "endoZipBase64",
464
- "conditions": []
465
- }