@secure-exec/core 0.0.0-split-runtime-preview.7b0dded

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 (66) hide show
  1. package/README.md +7 -0
  2. package/dist/binary.d.ts +4 -0
  3. package/dist/binary.js +25 -0
  4. package/dist/bytes.d.ts +2 -0
  5. package/dist/bytes.js +6 -0
  6. package/dist/callbacks.d.ts +41 -0
  7. package/dist/callbacks.js +94 -0
  8. package/dist/cargo.d.ts +2 -0
  9. package/dist/cargo.js +142 -0
  10. package/dist/correlation.d.ts +10 -0
  11. package/dist/correlation.js +49 -0
  12. package/dist/descriptors.d.ts +34 -0
  13. package/dist/descriptors.js +37 -0
  14. package/dist/event-buffer.d.ts +90 -0
  15. package/dist/event-buffer.js +313 -0
  16. package/dist/ext.d.ts +7 -0
  17. package/dist/ext.js +13 -0
  18. package/dist/filesystem.d.ts +41 -0
  19. package/dist/filesystem.js +70 -0
  20. package/dist/frame-payload-codec.d.ts +8 -0
  21. package/dist/frame-payload-codec.js +14 -0
  22. package/dist/frame-rpc.d.ts +38 -0
  23. package/dist/frame-rpc.js +73 -0
  24. package/dist/frame-stream.d.ts +27 -0
  25. package/dist/frame-stream.js +99 -0
  26. package/dist/framing.d.ts +7 -0
  27. package/dist/framing.js +22 -0
  28. package/dist/generated-protocol.d.ts +1038 -0
  29. package/dist/generated-protocol.js +2879 -0
  30. package/dist/index.d.ts +23 -0
  31. package/dist/index.js +23 -0
  32. package/dist/json.d.ts +2 -0
  33. package/dist/json.js +20 -0
  34. package/dist/kernel-proxy.d.ts +137 -0
  35. package/dist/kernel-proxy.js +1725 -0
  36. package/dist/native-client.d.ts +41 -0
  37. package/dist/native-client.js +124 -0
  38. package/dist/numbers.d.ts +1 -0
  39. package/dist/numbers.js +8 -0
  40. package/dist/ownership.d.ts +18 -0
  41. package/dist/ownership.js +77 -0
  42. package/dist/permissions.d.ts +29 -0
  43. package/dist/permissions.js +68 -0
  44. package/dist/process.d.ts +35 -0
  45. package/dist/process.js +125 -0
  46. package/dist/protocol-client.d.ts +46 -0
  47. package/dist/protocol-client.js +180 -0
  48. package/dist/protocol-frames.d.ts +68 -0
  49. package/dist/protocol-frames.js +139 -0
  50. package/dist/protocol-maps.d.ts +28 -0
  51. package/dist/protocol-maps.js +217 -0
  52. package/dist/protocol-schema.d.ts +10 -0
  53. package/dist/protocol-schema.js +11 -0
  54. package/dist/request-payloads.d.ts +139 -0
  55. package/dist/request-payloads.js +213 -0
  56. package/dist/response-payloads.d.ts +107 -0
  57. package/dist/response-payloads.js +161 -0
  58. package/dist/sidecar-client.d.ts +250 -0
  59. package/dist/sidecar-client.js +802 -0
  60. package/dist/state.d.ts +40 -0
  61. package/dist/state.js +44 -0
  62. package/dist/test-runtime.d.ts +483 -0
  63. package/dist/test-runtime.js +1985 -0
  64. package/fixtures/alpine-defaults.json +520 -0
  65. package/fixtures/base-filesystem.json +528 -0
  66. package/package.json +188 -0
@@ -0,0 +1,528 @@
1
+ {
2
+ "source": {
3
+ "snapshotPath": "alpine-defaults.json",
4
+ "image": "alpine:3.22",
5
+ "snapshotCreatedAt": "2026-04-01T18:44:12.482Z",
6
+ "builtAt": "2026-06-12T21:26:11.555Z",
7
+ "transforms": [
8
+ "Normalize HOSTNAME to secure-exec",
9
+ "Preserve the captured user-level environment and filesystem layout as the secure-exec base layer"
10
+ ]
11
+ },
12
+ "environment": {
13
+ "env": {
14
+ "CHARSET": "UTF-8",
15
+ "HOME": "/home/user",
16
+ "HOSTNAME": "secure-exec",
17
+ "LANG": "C.UTF-8",
18
+ "LC_COLLATE": "C",
19
+ "LOGNAME": "user",
20
+ "PAGER": "less",
21
+ "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
22
+ "SHELL": "/bin/sh",
23
+ "USER": "user"
24
+ },
25
+ "prompt": "\\h:\\w\\$ "
26
+ },
27
+ "filesystem": {
28
+ "entries": [
29
+ {
30
+ "path": "/",
31
+ "type": "directory",
32
+ "mode": "755",
33
+ "uid": 0,
34
+ "gid": 0
35
+ },
36
+ {
37
+ "path": "/bin",
38
+ "type": "directory",
39
+ "mode": "755",
40
+ "uid": 0,
41
+ "gid": 0
42
+ },
43
+ {
44
+ "path": "/etc",
45
+ "type": "directory",
46
+ "mode": "755",
47
+ "uid": 0,
48
+ "gid": 0
49
+ },
50
+ {
51
+ "path": "/etc/alpine-release",
52
+ "type": "file",
53
+ "mode": "644",
54
+ "uid": 0,
55
+ "gid": 0,
56
+ "content": "3.22.3\n"
57
+ },
58
+ {
59
+ "path": "/etc/apk",
60
+ "type": "directory",
61
+ "mode": "755",
62
+ "uid": 0,
63
+ "gid": 0
64
+ },
65
+ {
66
+ "path": "/etc/busybox-paths.d",
67
+ "type": "directory",
68
+ "mode": "755",
69
+ "uid": 0,
70
+ "gid": 0
71
+ },
72
+ {
73
+ "path": "/etc/crontabs",
74
+ "type": "directory",
75
+ "mode": "755",
76
+ "uid": 0,
77
+ "gid": 0
78
+ },
79
+ {
80
+ "path": "/etc/group",
81
+ "type": "file",
82
+ "mode": "644",
83
+ "uid": 0,
84
+ "gid": 0,
85
+ "content": "root:x:0:root\nbin:x:1:root,bin,daemon\ndaemon:x:2:root,bin,daemon\nsys:x:3:root,bin\nadm:x:4:root,daemon\ntty:x:5:\ndisk:x:6:root\nlp:x:7:lp\nkmem:x:9:\nwheel:x:10:root\nfloppy:x:11:root\nmail:x:12:mail\nnews:x:13:news\nuucp:x:14:uucp\ncron:x:16:cron\naudio:x:18:\ncdrom:x:19:\ndialout:x:20:root\nftp:x:21:\nsshd:x:22:\ninput:x:23:\ntape:x:26:root\nvideo:x:27:root\nnetdev:x:28:\nkvm:x:34:kvm\ngames:x:35:\nshadow:x:42:\nwww-data:x:82:\nusers:x:100:games\nntp:x:123:\nabuild:x:300:\nutmp:x:406:\nping:x:999:\nnogroup:x:65533:\nnobody:x:65534:\nuser:x:1000:\n"
86
+ },
87
+ {
88
+ "path": "/etc/hostname",
89
+ "type": "file",
90
+ "mode": "644",
91
+ "uid": 0,
92
+ "gid": 0,
93
+ "content": "secure-exec\n"
94
+ },
95
+ {
96
+ "path": "/etc/logrotate.d",
97
+ "type": "directory",
98
+ "mode": "755",
99
+ "uid": 0,
100
+ "gid": 0
101
+ },
102
+ {
103
+ "path": "/etc/modprobe.d",
104
+ "type": "directory",
105
+ "mode": "755",
106
+ "uid": 0,
107
+ "gid": 0
108
+ },
109
+ {
110
+ "path": "/etc/modules-load.d",
111
+ "type": "directory",
112
+ "mode": "755",
113
+ "uid": 0,
114
+ "gid": 0
115
+ },
116
+ {
117
+ "path": "/etc/network",
118
+ "type": "directory",
119
+ "mode": "755",
120
+ "uid": 0,
121
+ "gid": 0
122
+ },
123
+ {
124
+ "path": "/etc/nsswitch.conf",
125
+ "type": "file",
126
+ "mode": "644",
127
+ "uid": 0,
128
+ "gid": 0,
129
+ "content": "# musl itself does not support NSS, however some third-party DNS\n# implementations use the nsswitch.conf file to determine what\n# policy to follow.\n# Editing this file is not recommended.\nhosts: files dns\n"
130
+ },
131
+ {
132
+ "path": "/etc/opt",
133
+ "type": "directory",
134
+ "mode": "755",
135
+ "uid": 0,
136
+ "gid": 0
137
+ },
138
+ {
139
+ "path": "/etc/os-release",
140
+ "type": "symlink",
141
+ "mode": "777",
142
+ "uid": 0,
143
+ "gid": 0,
144
+ "target": "../usr/lib/os-release"
145
+ },
146
+ {
147
+ "path": "/etc/passwd",
148
+ "type": "file",
149
+ "mode": "644",
150
+ "uid": 0,
151
+ "gid": 0,
152
+ "content": "root:x:0:0:root:/root:/bin/sh\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\nlp:x:4:7:lp:/var/spool/lpd:/sbin/nologin\nsync:x:5:0:sync:/sbin:/bin/sync\nshutdown:x:6:0:shutdown:/sbin:/sbin/shutdown\nhalt:x:7:0:halt:/sbin:/sbin/halt\nmail:x:8:12:mail:/var/mail:/sbin/nologin\nnews:x:9:13:news:/usr/lib/news:/sbin/nologin\nuucp:x:10:14:uucp:/var/spool/uucppublic:/sbin/nologin\ncron:x:16:16:cron:/var/spool/cron:/sbin/nologin\nftp:x:21:21::/var/lib/ftp:/sbin/nologin\nsshd:x:22:22:sshd:/dev/null:/sbin/nologin\ngames:x:35:35:games:/usr/games:/sbin/nologin\nntp:x:123:123:NTP:/var/empty:/sbin/nologin\nguest:x:405:100:guest:/dev/null:/sbin/nologin\nnobody:x:65534:65534:nobody:/:/sbin/nologin\nuser:x:1000:1000::/home/user:/bin/sh\n"
153
+ },
154
+ {
155
+ "path": "/etc/periodic",
156
+ "type": "directory",
157
+ "mode": "755",
158
+ "uid": 0,
159
+ "gid": 0
160
+ },
161
+ {
162
+ "path": "/etc/profile",
163
+ "type": "file",
164
+ "mode": "644",
165
+ "uid": 0,
166
+ "gid": 0,
167
+ "content": "export PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\n\nexport PAGER=less\numask 022\n\n# use nicer PS1 for bash and busybox ash\nif [ -n \"$BASH_VERSION\" -o \"$BB_ASH_VERSION\" ]; then\n\tPS1='\\h:\\w\\$ '\n# use nicer PS1 for zsh\nelif [ -n \"$ZSH_VERSION\" ]; then\n\tPS1='%m:%~%# '\n# set up fallback default PS1\nelse\n\t: \"${HOSTNAME:=$(hostname)}\"\n\tPS1='${HOSTNAME%%.*}:$PWD'\n\t[ \"$(id -u)\" -eq 0 ] && PS1=\"${PS1}# \" || PS1=\"${PS1}\\$ \"\nfi\n\nfor script in /etc/profile.d/*.sh ; do\n\tif [ -r \"$script\" ] ; then\n\t\t. \"$script\"\n\tfi\ndone\nunset script\n"
168
+ },
169
+ {
170
+ "path": "/etc/profile.d",
171
+ "type": "directory",
172
+ "mode": "755",
173
+ "uid": 0,
174
+ "gid": 0
175
+ },
176
+ {
177
+ "path": "/etc/secfixes.d",
178
+ "type": "directory",
179
+ "mode": "755",
180
+ "uid": 0,
181
+ "gid": 0
182
+ },
183
+ {
184
+ "path": "/etc/shadow",
185
+ "type": "file",
186
+ "mode": "640",
187
+ "uid": 0,
188
+ "gid": 42,
189
+ "content": "root:*::0:::::\nbin:!::0:::::\ndaemon:!::0:::::\nlp:!::0:::::\nsync:!::0:::::\nshutdown:!::0:::::\nhalt:!::0:::::\nmail:!::0:::::\nnews:!::0:::::\nuucp:!::0:::::\ncron:!::0:::::\nftp:!::0:::::\nsshd:!::0:::::\ngames:!::0:::::\nntp:!::0:::::\nguest:!::0:::::\nnobody:!::0:::::\nuser:!:20544:0:99999:7:::\n"
190
+ },
191
+ {
192
+ "path": "/etc/shells",
193
+ "type": "file",
194
+ "mode": "644",
195
+ "uid": 0,
196
+ "gid": 0,
197
+ "content": "# valid login shells\n/bin/sh\n/bin/ash\n"
198
+ },
199
+ {
200
+ "path": "/etc/ssl",
201
+ "type": "directory",
202
+ "mode": "755",
203
+ "uid": 0,
204
+ "gid": 0
205
+ },
206
+ {
207
+ "path": "/etc/ssl1.1",
208
+ "type": "directory",
209
+ "mode": "755",
210
+ "uid": 0,
211
+ "gid": 0
212
+ },
213
+ {
214
+ "path": "/etc/sysctl.d",
215
+ "type": "directory",
216
+ "mode": "755",
217
+ "uid": 0,
218
+ "gid": 0
219
+ },
220
+ {
221
+ "path": "/etc/udhcpc",
222
+ "type": "directory",
223
+ "mode": "755",
224
+ "uid": 0,
225
+ "gid": 0
226
+ },
227
+ {
228
+ "path": "/home",
229
+ "type": "directory",
230
+ "mode": "755",
231
+ "uid": 0,
232
+ "gid": 0
233
+ },
234
+ {
235
+ "path": "/home/user",
236
+ "type": "directory",
237
+ "mode": "2755",
238
+ "uid": 1000,
239
+ "gid": 1000
240
+ },
241
+ {
242
+ "path": "/lib",
243
+ "type": "directory",
244
+ "mode": "755",
245
+ "uid": 0,
246
+ "gid": 0
247
+ },
248
+ {
249
+ "path": "/lib/apk",
250
+ "type": "directory",
251
+ "mode": "755",
252
+ "uid": 0,
253
+ "gid": 0
254
+ },
255
+ {
256
+ "path": "/lib/firmware",
257
+ "type": "directory",
258
+ "mode": "755",
259
+ "uid": 0,
260
+ "gid": 0
261
+ },
262
+ {
263
+ "path": "/lib/modules-load.d",
264
+ "type": "directory",
265
+ "mode": "755",
266
+ "uid": 0,
267
+ "gid": 0
268
+ },
269
+ {
270
+ "path": "/lib/sysctl.d",
271
+ "type": "directory",
272
+ "mode": "755",
273
+ "uid": 0,
274
+ "gid": 0
275
+ },
276
+ {
277
+ "path": "/media",
278
+ "type": "directory",
279
+ "mode": "755",
280
+ "uid": 0,
281
+ "gid": 0
282
+ },
283
+ {
284
+ "path": "/media/cdrom",
285
+ "type": "directory",
286
+ "mode": "755",
287
+ "uid": 0,
288
+ "gid": 0
289
+ },
290
+ {
291
+ "path": "/media/floppy",
292
+ "type": "directory",
293
+ "mode": "755",
294
+ "uid": 0,
295
+ "gid": 0
296
+ },
297
+ {
298
+ "path": "/media/usb",
299
+ "type": "directory",
300
+ "mode": "755",
301
+ "uid": 0,
302
+ "gid": 0
303
+ },
304
+ {
305
+ "path": "/mnt",
306
+ "type": "directory",
307
+ "mode": "755",
308
+ "uid": 0,
309
+ "gid": 0
310
+ },
311
+ {
312
+ "path": "/opt",
313
+ "type": "directory",
314
+ "mode": "755",
315
+ "uid": 0,
316
+ "gid": 0
317
+ },
318
+ {
319
+ "path": "/root",
320
+ "type": "directory",
321
+ "mode": "700",
322
+ "uid": 0,
323
+ "gid": 0
324
+ },
325
+ {
326
+ "path": "/run",
327
+ "type": "directory",
328
+ "mode": "755",
329
+ "uid": 0,
330
+ "gid": 0
331
+ },
332
+ {
333
+ "path": "/run/lock",
334
+ "type": "directory",
335
+ "mode": "755",
336
+ "uid": 0,
337
+ "gid": 0
338
+ },
339
+ {
340
+ "path": "/sbin",
341
+ "type": "directory",
342
+ "mode": "755",
343
+ "uid": 0,
344
+ "gid": 0
345
+ },
346
+ {
347
+ "path": "/srv",
348
+ "type": "directory",
349
+ "mode": "755",
350
+ "uid": 0,
351
+ "gid": 0
352
+ },
353
+ {
354
+ "path": "/sys",
355
+ "type": "directory",
356
+ "mode": "555",
357
+ "uid": 0,
358
+ "gid": 0
359
+ },
360
+ {
361
+ "path": "/tmp",
362
+ "type": "directory",
363
+ "mode": "1777",
364
+ "uid": 0,
365
+ "gid": 0
366
+ },
367
+ {
368
+ "path": "/usr",
369
+ "type": "directory",
370
+ "mode": "755",
371
+ "uid": 0,
372
+ "gid": 0
373
+ },
374
+ {
375
+ "path": "/usr/bin",
376
+ "type": "directory",
377
+ "mode": "755",
378
+ "uid": 0,
379
+ "gid": 0
380
+ },
381
+ {
382
+ "path": "/usr/bin/env",
383
+ "type": "symlink",
384
+ "mode": "777",
385
+ "uid": 0,
386
+ "gid": 0,
387
+ "target": "/bin/busybox"
388
+ },
389
+ {
390
+ "path": "/usr/lib",
391
+ "type": "directory",
392
+ "mode": "755",
393
+ "uid": 0,
394
+ "gid": 0
395
+ },
396
+ {
397
+ "path": "/usr/lib/os-release",
398
+ "type": "file",
399
+ "mode": "644",
400
+ "uid": 0,
401
+ "gid": 0,
402
+ "content": "NAME=\"Alpine Linux\"\nID=alpine\nVERSION_ID=3.22.3\nPRETTY_NAME=\"Alpine Linux v3.22\"\nHOME_URL=\"https://alpinelinux.org/\"\nBUG_REPORT_URL=\"https://gitlab.alpinelinux.org/alpine/aports/-/issues\"\n"
403
+ },
404
+ {
405
+ "path": "/usr/local",
406
+ "type": "directory",
407
+ "mode": "755",
408
+ "uid": 0,
409
+ "gid": 0
410
+ },
411
+ {
412
+ "path": "/usr/sbin",
413
+ "type": "directory",
414
+ "mode": "755",
415
+ "uid": 0,
416
+ "gid": 0
417
+ },
418
+ {
419
+ "path": "/usr/share",
420
+ "type": "directory",
421
+ "mode": "755",
422
+ "uid": 0,
423
+ "gid": 0
424
+ },
425
+ {
426
+ "path": "/var",
427
+ "type": "directory",
428
+ "mode": "755",
429
+ "uid": 0,
430
+ "gid": 0
431
+ },
432
+ {
433
+ "path": "/var/cache",
434
+ "type": "directory",
435
+ "mode": "755",
436
+ "uid": 0,
437
+ "gid": 0
438
+ },
439
+ {
440
+ "path": "/var/empty",
441
+ "type": "directory",
442
+ "mode": "555",
443
+ "uid": 0,
444
+ "gid": 0
445
+ },
446
+ {
447
+ "path": "/var/lib",
448
+ "type": "directory",
449
+ "mode": "755",
450
+ "uid": 0,
451
+ "gid": 0
452
+ },
453
+ {
454
+ "path": "/var/local",
455
+ "type": "directory",
456
+ "mode": "755",
457
+ "uid": 0,
458
+ "gid": 0
459
+ },
460
+ {
461
+ "path": "/var/lock",
462
+ "type": "symlink",
463
+ "mode": "777",
464
+ "uid": 0,
465
+ "gid": 0,
466
+ "target": "../run/lock"
467
+ },
468
+ {
469
+ "path": "/var/log",
470
+ "type": "directory",
471
+ "mode": "755",
472
+ "uid": 0,
473
+ "gid": 0
474
+ },
475
+ {
476
+ "path": "/var/mail",
477
+ "type": "directory",
478
+ "mode": "755",
479
+ "uid": 0,
480
+ "gid": 0
481
+ },
482
+ {
483
+ "path": "/var/opt",
484
+ "type": "directory",
485
+ "mode": "755",
486
+ "uid": 0,
487
+ "gid": 0
488
+ },
489
+ {
490
+ "path": "/var/run",
491
+ "type": "symlink",
492
+ "mode": "777",
493
+ "uid": 0,
494
+ "gid": 0,
495
+ "target": "../run"
496
+ },
497
+ {
498
+ "path": "/var/spool",
499
+ "type": "directory",
500
+ "mode": "755",
501
+ "uid": 0,
502
+ "gid": 0
503
+ },
504
+ {
505
+ "path": "/var/spool/cron",
506
+ "type": "directory",
507
+ "mode": "755",
508
+ "uid": 0,
509
+ "gid": 0
510
+ },
511
+ {
512
+ "path": "/var/spool/cron/crontabs",
513
+ "type": "symlink",
514
+ "mode": "777",
515
+ "uid": 0,
516
+ "gid": 0,
517
+ "target": "../../../etc/crontabs"
518
+ },
519
+ {
520
+ "path": "/var/tmp",
521
+ "type": "directory",
522
+ "mode": "1777",
523
+ "uid": 0,
524
+ "gid": 0
525
+ }
526
+ ]
527
+ }
528
+ }