@secure-exec/core 0.1.1-rc.3 → 0.2.0-rc.1

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 (102) hide show
  1. package/dist/esm-compiler.d.ts +5 -1
  2. package/dist/esm-compiler.js +5 -1
  3. package/dist/fs-helpers.d.ts +1 -1
  4. package/dist/generated/isolate-runtime.d.ts +15 -15
  5. package/dist/generated/isolate-runtime.js +15 -15
  6. package/dist/index.d.ts +24 -5
  7. package/dist/index.js +23 -3
  8. package/dist/isolate-runtime/apply-custom-global-policy.js +3 -3
  9. package/dist/isolate-runtime/apply-timing-mitigation-freeze.js +2 -2
  10. package/dist/isolate-runtime/apply-timing-mitigation-off.js +2 -2
  11. package/dist/isolate-runtime/bridge-attach.js +2 -2
  12. package/dist/isolate-runtime/bridge-initial-globals.js +145 -6
  13. package/dist/isolate-runtime/eval-script-result.js +1 -1
  14. package/dist/isolate-runtime/global-exposure-helpers.js +2 -2
  15. package/dist/isolate-runtime/init-commonjs-module-globals.js +2 -2
  16. package/dist/isolate-runtime/override-process-cwd.js +1 -1
  17. package/dist/isolate-runtime/override-process-env.js +1 -1
  18. package/dist/isolate-runtime/require-setup.js +1600 -338
  19. package/dist/isolate-runtime/set-commonjs-file-globals.js +2 -2
  20. package/dist/isolate-runtime/set-stdin-data.js +1 -1
  21. package/dist/isolate-runtime/setup-dynamic-import.js +47 -19
  22. package/dist/isolate-runtime/setup-fs-facade.js +62 -23
  23. package/dist/kernel/command-registry.d.ts +44 -0
  24. package/dist/kernel/command-registry.js +114 -0
  25. package/dist/kernel/device-layer.d.ts +12 -0
  26. package/dist/kernel/device-layer.js +262 -0
  27. package/dist/kernel/dns-cache.d.ts +29 -0
  28. package/dist/kernel/dns-cache.js +52 -0
  29. package/dist/kernel/fd-table.d.ts +84 -0
  30. package/dist/kernel/fd-table.js +278 -0
  31. package/dist/kernel/file-lock.d.ts +34 -0
  32. package/dist/kernel/file-lock.js +123 -0
  33. package/dist/kernel/host-adapter.d.ts +50 -0
  34. package/dist/kernel/host-adapter.js +8 -0
  35. package/dist/kernel/index.d.ts +36 -0
  36. package/dist/kernel/index.js +34 -0
  37. package/dist/kernel/inode-table.d.ts +43 -0
  38. package/dist/kernel/inode-table.js +85 -0
  39. package/dist/kernel/kernel.d.ts +9 -0
  40. package/dist/kernel/kernel.js +1396 -0
  41. package/dist/kernel/permissions.d.ts +27 -0
  42. package/dist/kernel/permissions.js +118 -0
  43. package/dist/kernel/pipe-manager.d.ts +64 -0
  44. package/dist/kernel/pipe-manager.js +267 -0
  45. package/dist/kernel/proc-layer.d.ts +11 -0
  46. package/dist/kernel/proc-layer.js +501 -0
  47. package/dist/kernel/process-table.d.ts +124 -0
  48. package/dist/kernel/process-table.js +631 -0
  49. package/dist/kernel/pty.d.ts +108 -0
  50. package/dist/kernel/pty.js +541 -0
  51. package/dist/kernel/socket-table.d.ts +305 -0
  52. package/dist/kernel/socket-table.js +1124 -0
  53. package/dist/kernel/timer-table.d.ts +54 -0
  54. package/dist/kernel/timer-table.js +108 -0
  55. package/dist/kernel/types.d.ts +500 -0
  56. package/dist/kernel/types.js +89 -0
  57. package/dist/kernel/user.d.ts +29 -0
  58. package/dist/kernel/user.js +35 -0
  59. package/dist/kernel/vfs.d.ts +54 -0
  60. package/dist/kernel/vfs.js +8 -0
  61. package/dist/kernel/wait.d.ts +45 -0
  62. package/dist/kernel/wait.js +112 -0
  63. package/dist/kernel/wstatus.d.ts +21 -0
  64. package/dist/kernel/wstatus.js +33 -0
  65. package/dist/module-resolver.d.ts +4 -0
  66. package/dist/module-resolver.js +4 -0
  67. package/dist/package-bundler.d.ts +6 -1
  68. package/dist/runtime-driver.d.ts +3 -1
  69. package/dist/shared/bridge-contract.d.ts +329 -20
  70. package/dist/shared/bridge-contract.js +60 -5
  71. package/dist/shared/console-formatter.js +8 -4
  72. package/dist/shared/global-exposure.js +269 -19
  73. package/dist/shared/in-memory-fs.d.ts +30 -11
  74. package/dist/shared/in-memory-fs.js +383 -109
  75. package/dist/shared/permissions.d.ts +4 -6
  76. package/dist/shared/permissions.js +19 -39
  77. package/dist/types.d.ts +8 -159
  78. package/dist/types.js +5 -0
  79. package/package.json +12 -22
  80. package/dist/bridge/active-handles.d.ts +0 -22
  81. package/dist/bridge/active-handles.js +0 -55
  82. package/dist/bridge/child-process.d.ts +0 -99
  83. package/dist/bridge/child-process.js +0 -670
  84. package/dist/bridge/fs.d.ts +0 -281
  85. package/dist/bridge/fs.js +0 -2235
  86. package/dist/bridge/index.d.ts +0 -10
  87. package/dist/bridge/index.js +0 -41
  88. package/dist/bridge/module.d.ts +0 -75
  89. package/dist/bridge/module.js +0 -308
  90. package/dist/bridge/network.d.ts +0 -350
  91. package/dist/bridge/network.js +0 -2050
  92. package/dist/bridge/os.d.ts +0 -13
  93. package/dist/bridge/os.js +0 -256
  94. package/dist/bridge/polyfills.d.ts +0 -2
  95. package/dist/bridge/polyfills.js +0 -11
  96. package/dist/bridge/process.d.ts +0 -89
  97. package/dist/bridge/process.js +0 -1015
  98. package/dist/bridge.js +0 -12496
  99. package/dist/python-runtime.d.ts +0 -16
  100. package/dist/python-runtime.js +0 -45
  101. package/dist/runtime.d.ts +0 -31
  102. package/dist/runtime.js +0 -69
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * @deprecated Canonical source moved to @secure-exec/nodejs (US-002).
3
+ * This copy is retained for backward compatibility during phased migration.
4
+ * Will be removed in US-005 when kernel merges into core.
5
+ *
2
6
  * Bridge contract: typed declarations for the globals shared between the
3
7
  * host (Node.js) and the isolate (sandbox V8 context).
4
8
  *
@@ -6,7 +10,7 @@
6
10
  * - Host bridge globals: set by the host before bridge code runs (fs refs, timers, etc.)
7
11
  * - Runtime bridge globals: installed by the bridge bundle itself (active handles, modules, etc.)
8
12
  *
9
- * The typed `Ref` aliases describe the isolated-vm calling convention for each global.
13
+ * The typed `Ref` aliases describe the bridge calling convention for each global.
10
14
  */
11
15
  export type ValueOf<T> = T[keyof T];
12
16
  /** Globals injected by the host before the bridge bundle executes. */
@@ -14,9 +18,7 @@ export declare const HOST_BRIDGE_GLOBAL_KEYS: {
14
18
  readonly dynamicImport: "_dynamicImport";
15
19
  readonly loadPolyfill: "_loadPolyfill";
16
20
  readonly resolveModule: "_resolveModule";
17
- readonly resolveModuleSync: "_resolveModuleSync";
18
21
  readonly loadFile: "_loadFile";
19
- readonly loadFileSync: "_loadFileSync";
20
22
  readonly scheduleTimer: "_scheduleTimer";
21
23
  readonly cryptoRandomFill: "_cryptoRandomFill";
22
24
  readonly cryptoRandomUuid: "_cryptoRandomUUID";
@@ -31,7 +33,15 @@ export declare const HOST_BRIDGE_GLOBAL_KEYS: {
31
33
  readonly cryptoCipherivFinal: "_cryptoCipherivFinal";
32
34
  readonly cryptoSign: "_cryptoSign";
33
35
  readonly cryptoVerify: "_cryptoVerify";
36
+ readonly cryptoAsymmetricOp: "_cryptoAsymmetricOp";
37
+ readonly cryptoCreateKeyObject: "_cryptoCreateKeyObject";
34
38
  readonly cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync";
39
+ readonly cryptoGenerateKeySync: "_cryptoGenerateKeySync";
40
+ readonly cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync";
41
+ readonly cryptoDiffieHellman: "_cryptoDiffieHellman";
42
+ readonly cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup";
43
+ readonly cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate";
44
+ readonly cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall";
35
45
  readonly cryptoSubtle: "_cryptoSubtle";
36
46
  readonly fsReadFile: "_fsReadFile";
37
47
  readonly fsWriteFile: "_fsWriteFile";
@@ -62,14 +72,57 @@ export declare const HOST_BRIDGE_GLOBAL_KEYS: {
62
72
  readonly networkHttpRequestRaw: "_networkHttpRequestRaw";
63
73
  readonly networkHttpServerListenRaw: "_networkHttpServerListenRaw";
64
74
  readonly networkHttpServerCloseRaw: "_networkHttpServerCloseRaw";
75
+ readonly networkHttpServerRespondRaw: "_networkHttpServerRespondRaw";
76
+ readonly networkHttpServerWaitRaw: "_networkHttpServerWaitRaw";
77
+ readonly networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw";
78
+ readonly networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw";
79
+ readonly networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw";
80
+ readonly networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw";
81
+ readonly networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw";
82
+ readonly networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw";
83
+ readonly networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw";
84
+ readonly networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw";
85
+ readonly networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw";
86
+ readonly networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw";
87
+ readonly networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw";
88
+ readonly networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw";
89
+ readonly networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw";
90
+ readonly networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw";
91
+ readonly networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw";
92
+ readonly networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw";
93
+ readonly networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw";
94
+ readonly networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw";
95
+ readonly networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw";
96
+ readonly networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw";
97
+ readonly networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw";
65
98
  readonly upgradeSocketWriteRaw: "_upgradeSocketWriteRaw";
66
99
  readonly upgradeSocketEndRaw: "_upgradeSocketEndRaw";
67
100
  readonly upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw";
68
101
  readonly netSocketConnectRaw: "_netSocketConnectRaw";
102
+ readonly netSocketWaitConnectRaw: "_netSocketWaitConnectRaw";
103
+ readonly netSocketReadRaw: "_netSocketReadRaw";
104
+ readonly netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw";
105
+ readonly netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw";
69
106
  readonly netSocketWriteRaw: "_netSocketWriteRaw";
70
107
  readonly netSocketEndRaw: "_netSocketEndRaw";
71
108
  readonly netSocketDestroyRaw: "_netSocketDestroyRaw";
72
109
  readonly netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw";
110
+ readonly netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw";
111
+ readonly netSocketTlsQueryRaw: "_netSocketTlsQueryRaw";
112
+ readonly tlsGetCiphersRaw: "_tlsGetCiphersRaw";
113
+ readonly netServerListenRaw: "_netServerListenRaw";
114
+ readonly netServerAcceptRaw: "_netServerAcceptRaw";
115
+ readonly netServerCloseRaw: "_netServerCloseRaw";
116
+ readonly dgramSocketCreateRaw: "_dgramSocketCreateRaw";
117
+ readonly dgramSocketBindRaw: "_dgramSocketBindRaw";
118
+ readonly dgramSocketRecvRaw: "_dgramSocketRecvRaw";
119
+ readonly dgramSocketSendRaw: "_dgramSocketSendRaw";
120
+ readonly dgramSocketCloseRaw: "_dgramSocketCloseRaw";
121
+ readonly dgramSocketAddressRaw: "_dgramSocketAddressRaw";
122
+ readonly dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw";
123
+ readonly dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw";
124
+ readonly resolveModuleSync: "_resolveModuleSync";
125
+ readonly loadFileSync: "_loadFileSync";
73
126
  readonly ptySetRawMode: "_ptySetRawMode";
74
127
  readonly processConfig: "_processConfig";
75
128
  readonly osConfig: "_osConfig";
@@ -90,12 +143,14 @@ export declare const RUNTIME_BRIDGE_GLOBAL_KEYS: {
90
143
  readonly httpsModule: "_httpsModule";
91
144
  readonly http2Module: "_http2Module";
92
145
  readonly dnsModule: "_dnsModule";
146
+ readonly dgramModule: "_dgramModule";
93
147
  readonly httpServerDispatch: "_httpServerDispatch";
94
148
  readonly httpServerUpgradeDispatch: "_httpServerUpgradeDispatch";
149
+ readonly httpServerConnectDispatch: "_httpServerConnectDispatch";
150
+ readonly http2Dispatch: "_http2Dispatch";
151
+ readonly timerDispatch: "_timerDispatch";
95
152
  readonly upgradeSocketData: "_upgradeSocketData";
96
153
  readonly upgradeSocketEnd: "_upgradeSocketEnd";
97
- readonly netModule: "_netModule";
98
- readonly tlsModule: "_tlsModule";
99
154
  readonly netSocketDispatch: "_netSocketDispatch";
100
155
  readonly fsFacade: "_fs";
101
156
  readonly requireFrom: "_requireFrom";
@@ -109,9 +164,7 @@ export declare const HOST_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
109
164
  readonly dynamicImport: "_dynamicImport";
110
165
  readonly loadPolyfill: "_loadPolyfill";
111
166
  readonly resolveModule: "_resolveModule";
112
- readonly resolveModuleSync: "_resolveModuleSync";
113
167
  readonly loadFile: "_loadFile";
114
- readonly loadFileSync: "_loadFileSync";
115
168
  readonly scheduleTimer: "_scheduleTimer";
116
169
  readonly cryptoRandomFill: "_cryptoRandomFill";
117
170
  readonly cryptoRandomUuid: "_cryptoRandomUUID";
@@ -126,7 +179,15 @@ export declare const HOST_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
126
179
  readonly cryptoCipherivFinal: "_cryptoCipherivFinal";
127
180
  readonly cryptoSign: "_cryptoSign";
128
181
  readonly cryptoVerify: "_cryptoVerify";
182
+ readonly cryptoAsymmetricOp: "_cryptoAsymmetricOp";
183
+ readonly cryptoCreateKeyObject: "_cryptoCreateKeyObject";
129
184
  readonly cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync";
185
+ readonly cryptoGenerateKeySync: "_cryptoGenerateKeySync";
186
+ readonly cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync";
187
+ readonly cryptoDiffieHellman: "_cryptoDiffieHellman";
188
+ readonly cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup";
189
+ readonly cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate";
190
+ readonly cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall";
130
191
  readonly cryptoSubtle: "_cryptoSubtle";
131
192
  readonly fsReadFile: "_fsReadFile";
132
193
  readonly fsWriteFile: "_fsWriteFile";
@@ -157,14 +218,57 @@ export declare const HOST_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
157
218
  readonly networkHttpRequestRaw: "_networkHttpRequestRaw";
158
219
  readonly networkHttpServerListenRaw: "_networkHttpServerListenRaw";
159
220
  readonly networkHttpServerCloseRaw: "_networkHttpServerCloseRaw";
221
+ readonly networkHttpServerRespondRaw: "_networkHttpServerRespondRaw";
222
+ readonly networkHttpServerWaitRaw: "_networkHttpServerWaitRaw";
223
+ readonly networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw";
224
+ readonly networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw";
225
+ readonly networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw";
226
+ readonly networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw";
227
+ readonly networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw";
228
+ readonly networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw";
229
+ readonly networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw";
230
+ readonly networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw";
231
+ readonly networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw";
232
+ readonly networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw";
233
+ readonly networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw";
234
+ readonly networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw";
235
+ readonly networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw";
236
+ readonly networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw";
237
+ readonly networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw";
238
+ readonly networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw";
239
+ readonly networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw";
240
+ readonly networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw";
241
+ readonly networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw";
242
+ readonly networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw";
243
+ readonly networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw";
160
244
  readonly upgradeSocketWriteRaw: "_upgradeSocketWriteRaw";
161
245
  readonly upgradeSocketEndRaw: "_upgradeSocketEndRaw";
162
246
  readonly upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw";
163
247
  readonly netSocketConnectRaw: "_netSocketConnectRaw";
248
+ readonly netSocketWaitConnectRaw: "_netSocketWaitConnectRaw";
249
+ readonly netSocketReadRaw: "_netSocketReadRaw";
250
+ readonly netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw";
251
+ readonly netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw";
164
252
  readonly netSocketWriteRaw: "_netSocketWriteRaw";
165
253
  readonly netSocketEndRaw: "_netSocketEndRaw";
166
254
  readonly netSocketDestroyRaw: "_netSocketDestroyRaw";
167
255
  readonly netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw";
256
+ readonly netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw";
257
+ readonly netSocketTlsQueryRaw: "_netSocketTlsQueryRaw";
258
+ readonly tlsGetCiphersRaw: "_tlsGetCiphersRaw";
259
+ readonly netServerListenRaw: "_netServerListenRaw";
260
+ readonly netServerAcceptRaw: "_netServerAcceptRaw";
261
+ readonly netServerCloseRaw: "_netServerCloseRaw";
262
+ readonly dgramSocketCreateRaw: "_dgramSocketCreateRaw";
263
+ readonly dgramSocketBindRaw: "_dgramSocketBindRaw";
264
+ readonly dgramSocketRecvRaw: "_dgramSocketRecvRaw";
265
+ readonly dgramSocketSendRaw: "_dgramSocketSendRaw";
266
+ readonly dgramSocketCloseRaw: "_dgramSocketCloseRaw";
267
+ readonly dgramSocketAddressRaw: "_dgramSocketAddressRaw";
268
+ readonly dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw";
269
+ readonly dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw";
270
+ readonly resolveModuleSync: "_resolveModuleSync";
271
+ readonly loadFileSync: "_loadFileSync";
168
272
  readonly ptySetRawMode: "_ptySetRawMode";
169
273
  readonly processConfig: "_processConfig";
170
274
  readonly osConfig: "_osConfig";
@@ -184,12 +288,14 @@ export declare const RUNTIME_BRIDGE_GLOBAL_KEY_LIST: ValueOf<{
184
288
  readonly httpsModule: "_httpsModule";
185
289
  readonly http2Module: "_http2Module";
186
290
  readonly dnsModule: "_dnsModule";
291
+ readonly dgramModule: "_dgramModule";
187
292
  readonly httpServerDispatch: "_httpServerDispatch";
188
293
  readonly httpServerUpgradeDispatch: "_httpServerUpgradeDispatch";
294
+ readonly httpServerConnectDispatch: "_httpServerConnectDispatch";
295
+ readonly http2Dispatch: "_http2Dispatch";
296
+ readonly timerDispatch: "_timerDispatch";
189
297
  readonly upgradeSocketData: "_upgradeSocketData";
190
298
  readonly upgradeSocketEnd: "_upgradeSocketEnd";
191
- readonly netModule: "_netModule";
192
- readonly tlsModule: "_tlsModule";
193
299
  readonly netSocketDispatch: "_netSocketDispatch";
194
300
  readonly fsFacade: "_fs";
195
301
  readonly requireFrom: "_requireFrom";
@@ -200,9 +306,7 @@ export declare const BRIDGE_GLOBAL_KEY_LIST: readonly (ValueOf<{
200
306
  readonly dynamicImport: "_dynamicImport";
201
307
  readonly loadPolyfill: "_loadPolyfill";
202
308
  readonly resolveModule: "_resolveModule";
203
- readonly resolveModuleSync: "_resolveModuleSync";
204
309
  readonly loadFile: "_loadFile";
205
- readonly loadFileSync: "_loadFileSync";
206
310
  readonly scheduleTimer: "_scheduleTimer";
207
311
  readonly cryptoRandomFill: "_cryptoRandomFill";
208
312
  readonly cryptoRandomUuid: "_cryptoRandomUUID";
@@ -217,7 +321,15 @@ export declare const BRIDGE_GLOBAL_KEY_LIST: readonly (ValueOf<{
217
321
  readonly cryptoCipherivFinal: "_cryptoCipherivFinal";
218
322
  readonly cryptoSign: "_cryptoSign";
219
323
  readonly cryptoVerify: "_cryptoVerify";
324
+ readonly cryptoAsymmetricOp: "_cryptoAsymmetricOp";
325
+ readonly cryptoCreateKeyObject: "_cryptoCreateKeyObject";
220
326
  readonly cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync";
327
+ readonly cryptoGenerateKeySync: "_cryptoGenerateKeySync";
328
+ readonly cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync";
329
+ readonly cryptoDiffieHellman: "_cryptoDiffieHellman";
330
+ readonly cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup";
331
+ readonly cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate";
332
+ readonly cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall";
221
333
  readonly cryptoSubtle: "_cryptoSubtle";
222
334
  readonly fsReadFile: "_fsReadFile";
223
335
  readonly fsWriteFile: "_fsWriteFile";
@@ -248,14 +360,57 @@ export declare const BRIDGE_GLOBAL_KEY_LIST: readonly (ValueOf<{
248
360
  readonly networkHttpRequestRaw: "_networkHttpRequestRaw";
249
361
  readonly networkHttpServerListenRaw: "_networkHttpServerListenRaw";
250
362
  readonly networkHttpServerCloseRaw: "_networkHttpServerCloseRaw";
363
+ readonly networkHttpServerRespondRaw: "_networkHttpServerRespondRaw";
364
+ readonly networkHttpServerWaitRaw: "_networkHttpServerWaitRaw";
365
+ readonly networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw";
366
+ readonly networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw";
367
+ readonly networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw";
368
+ readonly networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw";
369
+ readonly networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw";
370
+ readonly networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw";
371
+ readonly networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw";
372
+ readonly networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw";
373
+ readonly networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw";
374
+ readonly networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw";
375
+ readonly networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw";
376
+ readonly networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw";
377
+ readonly networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw";
378
+ readonly networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw";
379
+ readonly networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw";
380
+ readonly networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw";
381
+ readonly networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw";
382
+ readonly networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw";
383
+ readonly networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw";
384
+ readonly networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw";
385
+ readonly networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw";
251
386
  readonly upgradeSocketWriteRaw: "_upgradeSocketWriteRaw";
252
387
  readonly upgradeSocketEndRaw: "_upgradeSocketEndRaw";
253
388
  readonly upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw";
254
389
  readonly netSocketConnectRaw: "_netSocketConnectRaw";
390
+ readonly netSocketWaitConnectRaw: "_netSocketWaitConnectRaw";
391
+ readonly netSocketReadRaw: "_netSocketReadRaw";
392
+ readonly netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw";
393
+ readonly netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw";
255
394
  readonly netSocketWriteRaw: "_netSocketWriteRaw";
256
395
  readonly netSocketEndRaw: "_netSocketEndRaw";
257
396
  readonly netSocketDestroyRaw: "_netSocketDestroyRaw";
258
397
  readonly netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw";
398
+ readonly netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw";
399
+ readonly netSocketTlsQueryRaw: "_netSocketTlsQueryRaw";
400
+ readonly tlsGetCiphersRaw: "_tlsGetCiphersRaw";
401
+ readonly netServerListenRaw: "_netServerListenRaw";
402
+ readonly netServerAcceptRaw: "_netServerAcceptRaw";
403
+ readonly netServerCloseRaw: "_netServerCloseRaw";
404
+ readonly dgramSocketCreateRaw: "_dgramSocketCreateRaw";
405
+ readonly dgramSocketBindRaw: "_dgramSocketBindRaw";
406
+ readonly dgramSocketRecvRaw: "_dgramSocketRecvRaw";
407
+ readonly dgramSocketSendRaw: "_dgramSocketSendRaw";
408
+ readonly dgramSocketCloseRaw: "_dgramSocketCloseRaw";
409
+ readonly dgramSocketAddressRaw: "_dgramSocketAddressRaw";
410
+ readonly dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw";
411
+ readonly dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw";
412
+ readonly resolveModuleSync: "_resolveModuleSync";
413
+ readonly loadFileSync: "_loadFileSync";
259
414
  readonly ptySetRawMode: "_ptySetRawMode";
260
415
  readonly processConfig: "_processConfig";
261
416
  readonly osConfig: "_osConfig";
@@ -274,19 +429,21 @@ export declare const BRIDGE_GLOBAL_KEY_LIST: readonly (ValueOf<{
274
429
  readonly httpsModule: "_httpsModule";
275
430
  readonly http2Module: "_http2Module";
276
431
  readonly dnsModule: "_dnsModule";
432
+ readonly dgramModule: "_dgramModule";
277
433
  readonly httpServerDispatch: "_httpServerDispatch";
278
434
  readonly httpServerUpgradeDispatch: "_httpServerUpgradeDispatch";
435
+ readonly httpServerConnectDispatch: "_httpServerConnectDispatch";
436
+ readonly http2Dispatch: "_http2Dispatch";
437
+ readonly timerDispatch: "_timerDispatch";
279
438
  readonly upgradeSocketData: "_upgradeSocketData";
280
439
  readonly upgradeSocketEnd: "_upgradeSocketEnd";
281
- readonly netModule: "_netModule";
282
- readonly tlsModule: "_tlsModule";
283
440
  readonly netSocketDispatch: "_netSocketDispatch";
284
441
  readonly fsFacade: "_fs";
285
442
  readonly requireFrom: "_requireFrom";
286
443
  readonly moduleCache: "_moduleCache";
287
444
  readonly processExitError: "ProcessExitError";
288
445
  }>)[];
289
- /** An isolated-vm Reference that resolves async via `{ result: { promise: true } }`. */
446
+ /** A bridge Reference that resolves async via `{ result: { promise: true } }`. */
290
447
  export interface BridgeApplyRef<TArgs extends unknown[], TResult> {
291
448
  apply(ctx: undefined, args: TArgs, options: {
292
449
  result: {
@@ -294,12 +451,12 @@ export interface BridgeApplyRef<TArgs extends unknown[], TResult> {
294
451
  };
295
452
  }): Promise<TResult>;
296
453
  }
297
- /** An isolated-vm Reference called synchronously (blocks the isolate). */
454
+ /** A bridge Reference called synchronously (blocks the isolate). */
298
455
  export interface BridgeApplySyncRef<TArgs extends unknown[], TResult> {
299
456
  applySync(ctx: undefined, args: TArgs): TResult;
300
457
  }
301
458
  /**
302
- * An isolated-vm Reference that blocks the isolate while the host resolves
459
+ * A bridge Reference that blocks the isolate while the host resolves
303
460
  * a Promise. Used for sync-looking APIs (require, readFileSync) that need
304
461
  * async host operations.
305
462
  */
@@ -341,31 +498,70 @@ export type CryptoScryptBridgeRef = BridgeApplySyncRef<[
341
498
  export type CryptoCipherivBridgeRef = BridgeApplySyncRef<[
342
499
  string,
343
500
  string,
501
+ string | null,
344
502
  string,
345
- string
503
+ string?
346
504
  ], string>;
347
505
  export type CryptoDecipherivBridgeRef = BridgeApplySyncRef<[
348
506
  string,
507
+ string,
508
+ string | null,
509
+ string,
510
+ string
511
+ ], string>;
512
+ export type CryptoCipherivCreateBridgeRef = BridgeApplySyncRef<[
349
513
  string,
350
514
  string,
351
515
  string,
516
+ string | null,
517
+ string
518
+ ], number>;
519
+ export type CryptoCipherivUpdateBridgeRef = BridgeApplySyncRef<[
520
+ number,
352
521
  string
353
522
  ], string>;
523
+ export type CryptoCipherivFinalBridgeRef = BridgeApplySyncRef<[
524
+ number
525
+ ], string>;
354
526
  export type CryptoSignBridgeRef = BridgeApplySyncRef<[
355
- string,
527
+ string | null,
356
528
  string,
357
529
  string
358
530
  ], string>;
359
531
  export type CryptoVerifyBridgeRef = BridgeApplySyncRef<[
360
- string,
532
+ string | null,
361
533
  string,
362
534
  string,
363
535
  string
364
536
  ], boolean>;
537
+ export type CryptoAsymmetricOpBridgeRef = BridgeApplySyncRef<[
538
+ string,
539
+ string,
540
+ string
541
+ ], string>;
542
+ export type CryptoCreateKeyObjectBridgeRef = BridgeApplySyncRef<[
543
+ string,
544
+ string
545
+ ], string>;
365
546
  export type CryptoGenerateKeyPairSyncBridgeRef = BridgeApplySyncRef<[
366
547
  string,
367
548
  string
368
549
  ], string>;
550
+ export type CryptoGenerateKeySyncBridgeRef = BridgeApplySyncRef<[
551
+ string,
552
+ string
553
+ ], string>;
554
+ export type CryptoGeneratePrimeSyncBridgeRef = BridgeApplySyncRef<[
555
+ number,
556
+ string
557
+ ], string>;
558
+ export type CryptoDiffieHellmanBridgeRef = BridgeApplySyncRef<[string], string>;
559
+ export type CryptoDiffieHellmanGroupBridgeRef = BridgeApplySyncRef<[string], string>;
560
+ export type CryptoDiffieHellmanSessionCreateBridgeRef = BridgeApplySyncRef<[string], number>;
561
+ export type CryptoDiffieHellmanSessionCallBridgeRef = BridgeApplySyncRef<[
562
+ number,
563
+ string
564
+ ], string>;
369
565
  export type CryptoSubtleBridgeRef = BridgeApplySyncRef<[string], string>;
370
566
  export type FsReadFileBridgeRef = BridgeApplySyncPromiseRef<[string], string>;
371
567
  export type FsWriteFileBridgeRef = BridgeApplySyncPromiseRef<[string, string], void>;
@@ -432,14 +628,127 @@ export type NetworkDnsLookupRawBridgeRef = BridgeApplyRef<[string], string>;
432
628
  export type NetworkHttpRequestRawBridgeRef = BridgeApplyRef<[string, string], string>;
433
629
  export type NetworkHttpServerListenRawBridgeRef = BridgeApplyRef<[string], string>;
434
630
  export type NetworkHttpServerCloseRawBridgeRef = BridgeApplyRef<[number], void>;
631
+ export type NetworkHttpServerRespondRawBridgeRef = BridgeApplySyncRef<[
632
+ number,
633
+ number,
634
+ string
635
+ ], void>;
636
+ export type NetworkHttpServerWaitRawBridgeRef = BridgeApplyRef<[number], void>;
637
+ export type NetworkHttp2ServerListenRawBridgeRef = BridgeApplySyncPromiseRef<[
638
+ string
639
+ ], string>;
640
+ export type NetworkHttp2ServerCloseRawBridgeRef = BridgeApplyRef<[number], void>;
641
+ export type NetworkHttp2ServerWaitRawBridgeRef = BridgeApplyRef<[number], void>;
642
+ export type NetworkHttp2SessionConnectRawBridgeRef = BridgeApplySyncPromiseRef<[
643
+ string
644
+ ], string>;
645
+ export type NetworkHttp2SessionRequestRawBridgeRef = BridgeApplySyncRef<[
646
+ number,
647
+ string,
648
+ string
649
+ ], number>;
650
+ export type NetworkHttp2SessionSettingsRawBridgeRef = BridgeApplySyncRef<[
651
+ number,
652
+ string
653
+ ], void>;
654
+ export type NetworkHttp2SessionSetLocalWindowSizeRawBridgeRef = BridgeApplySyncRef<[
655
+ number,
656
+ number
657
+ ], string>;
658
+ export type NetworkHttp2SessionGoawayRawBridgeRef = BridgeApplySyncRef<[
659
+ number,
660
+ number,
661
+ number,
662
+ string | null
663
+ ], void>;
664
+ export type NetworkHttp2SessionCloseRawBridgeRef = BridgeApplySyncRef<[
665
+ number
666
+ ], void>;
667
+ export type NetworkHttp2SessionDestroyRawBridgeRef = BridgeApplySyncRef<[
668
+ number
669
+ ], void>;
670
+ export type NetworkHttp2SessionWaitRawBridgeRef = BridgeApplyRef<[number], void>;
671
+ export type NetworkHttp2ServerPollRawBridgeRef = BridgeApplySyncRef<[
672
+ number
673
+ ], string | null>;
674
+ export type NetworkHttp2SessionPollRawBridgeRef = BridgeApplySyncRef<[
675
+ number
676
+ ], string | null>;
677
+ export type NetworkHttp2StreamRespondRawBridgeRef = BridgeApplySyncRef<[
678
+ number,
679
+ string
680
+ ], void>;
681
+ export type NetworkHttp2StreamPushStreamRawBridgeRef = BridgeApplySyncPromiseRef<[
682
+ number,
683
+ string,
684
+ string
685
+ ], string>;
686
+ export type NetworkHttp2StreamWriteRawBridgeRef = BridgeApplySyncRef<[
687
+ number,
688
+ string
689
+ ], boolean>;
690
+ export type NetworkHttp2StreamEndRawBridgeRef = BridgeApplySyncRef<[
691
+ number,
692
+ string | null
693
+ ], void>;
694
+ export type NetworkHttp2StreamPauseRawBridgeRef = BridgeApplySyncRef<[number], void>;
695
+ export type NetworkHttp2StreamResumeRawBridgeRef = BridgeApplySyncRef<[number], void>;
696
+ export type NetworkHttp2StreamRespondWithFileRawBridgeRef = BridgeApplySyncRef<[
697
+ number,
698
+ string,
699
+ string,
700
+ string
701
+ ], void>;
702
+ export type NetworkHttp2ServerRespondRawBridgeRef = BridgeApplySyncRef<[
703
+ number,
704
+ number,
705
+ string
706
+ ], void>;
435
707
  export type UpgradeSocketWriteRawBridgeRef = BridgeApplySyncRef<[number, string], void>;
436
708
  export type UpgradeSocketEndRawBridgeRef = BridgeApplySyncRef<[number], void>;
437
709
  export type UpgradeSocketDestroyRawBridgeRef = BridgeApplySyncRef<[number], void>;
438
- export type NetSocketConnectRawBridgeRef = BridgeApplySyncRef<[string, number], number>;
710
+ export type NetSocketConnectRawBridgeRef = BridgeApplySyncRef<[string], number>;
711
+ export type NetSocketWaitConnectRawBridgeRef = BridgeApplyRef<[number], string>;
712
+ export type NetSocketReadRawBridgeRef = BridgeApplySyncRef<[number], string | null>;
713
+ export type NetSocketSetNoDelayRawBridgeRef = BridgeApplySyncRef<[number, boolean], void>;
714
+ export type NetSocketSetKeepAliveRawBridgeRef = BridgeApplySyncRef<[number, boolean, number], void>;
439
715
  export type NetSocketWriteRawBridgeRef = BridgeApplySyncRef<[number, string], void>;
440
716
  export type NetSocketEndRawBridgeRef = BridgeApplySyncRef<[number], void>;
441
717
  export type NetSocketDestroyRawBridgeRef = BridgeApplySyncRef<[number], void>;
442
718
  export type NetSocketUpgradeTlsRawBridgeRef = BridgeApplySyncRef<[number, string], void>;
719
+ export type NetSocketGetTlsClientHelloRawBridgeRef = BridgeApplySyncRef<[number], string>;
720
+ export type NetSocketTlsQueryRawBridgeRef = BridgeApplySyncRef<[
721
+ number,
722
+ string,
723
+ boolean?
724
+ ], string>;
725
+ export type TlsGetCiphersRawBridgeRef = BridgeApplySyncRef<[], string>;
726
+ export type NetServerListenRawBridgeRef = BridgeApplyRef<[string], string>;
727
+ export type NetServerAcceptRawBridgeRef = BridgeApplySyncRef<[number], string | null>;
728
+ export type NetServerCloseRawBridgeRef = BridgeApplyRef<[number], void>;
729
+ export type DgramSocketCreateRawBridgeRef = BridgeApplySyncRef<[string], number>;
730
+ export type DgramSocketBindRawBridgeRef = BridgeApplySyncPromiseRef<[number, string], string>;
731
+ export type DgramSocketRecvRawBridgeRef = BridgeApplySyncRef<[number], string | null>;
732
+ export type DgramSocketSendRawBridgeRef = BridgeApplySyncPromiseRef<[number, string], number>;
733
+ export type DgramSocketCloseRawBridgeRef = BridgeApplySyncPromiseRef<[number], void>;
734
+ export type DgramSocketAddressRawBridgeRef = BridgeApplySyncRef<[number], string>;
735
+ export type DgramSocketSetBufferSizeRawBridgeRef = BridgeApplySyncRef<[
736
+ number,
737
+ "recv" | "send",
738
+ number
739
+ ], void>;
740
+ export type DgramSocketGetBufferSizeRawBridgeRef = BridgeApplySyncRef<[
741
+ number,
742
+ "recv" | "send"
743
+ ], number>;
744
+ export type ResolveModuleSyncBridgeRef = BridgeApplySyncRef<[
745
+ string,
746
+ string
747
+ ], string | null>;
748
+ export type LoadFileSyncBridgeRef = BridgeApplySyncRef<[string], string | null>;
443
749
  export type PtySetRawModeBridgeRef = BridgeApplySyncRef<[boolean], void>;
444
750
  export type RegisterHandleBridgeFn = (id: string, description: string) => void;
445
751
  export type UnregisterHandleBridgeFn = (id: string) => void;
752
+ export type BatchResolveModulesBridgeRef = BridgeApplySyncPromiseRef<[
753
+ string
754
+ ], string>;
@@ -1,4 +1,8 @@
1
1
  /**
2
+ * @deprecated Canonical source moved to @secure-exec/nodejs (US-002).
3
+ * This copy is retained for backward compatibility during phased migration.
4
+ * Will be removed in US-005 when kernel merges into core.
5
+ *
2
6
  * Bridge contract: typed declarations for the globals shared between the
3
7
  * host (Node.js) and the isolate (sandbox V8 context).
4
8
  *
@@ -6,7 +10,7 @@
6
10
  * - Host bridge globals: set by the host before bridge code runs (fs refs, timers, etc.)
7
11
  * - Runtime bridge globals: installed by the bridge bundle itself (active handles, modules, etc.)
8
12
  *
9
- * The typed `Ref` aliases describe the isolated-vm calling convention for each global.
13
+ * The typed `Ref` aliases describe the bridge calling convention for each global.
10
14
  */
11
15
  function valuesOf(object) {
12
16
  return Object.values(object);
@@ -16,9 +20,7 @@ export const HOST_BRIDGE_GLOBAL_KEYS = {
16
20
  dynamicImport: "_dynamicImport",
17
21
  loadPolyfill: "_loadPolyfill",
18
22
  resolveModule: "_resolveModule",
19
- resolveModuleSync: "_resolveModuleSync",
20
23
  loadFile: "_loadFile",
21
- loadFileSync: "_loadFileSync",
22
24
  scheduleTimer: "_scheduleTimer",
23
25
  cryptoRandomFill: "_cryptoRandomFill",
24
26
  cryptoRandomUuid: "_cryptoRandomUUID",
@@ -33,7 +35,15 @@ export const HOST_BRIDGE_GLOBAL_KEYS = {
33
35
  cryptoCipherivFinal: "_cryptoCipherivFinal",
34
36
  cryptoSign: "_cryptoSign",
35
37
  cryptoVerify: "_cryptoVerify",
38
+ cryptoAsymmetricOp: "_cryptoAsymmetricOp",
39
+ cryptoCreateKeyObject: "_cryptoCreateKeyObject",
36
40
  cryptoGenerateKeyPairSync: "_cryptoGenerateKeyPairSync",
41
+ cryptoGenerateKeySync: "_cryptoGenerateKeySync",
42
+ cryptoGeneratePrimeSync: "_cryptoGeneratePrimeSync",
43
+ cryptoDiffieHellman: "_cryptoDiffieHellman",
44
+ cryptoDiffieHellmanGroup: "_cryptoDiffieHellmanGroup",
45
+ cryptoDiffieHellmanSessionCreate: "_cryptoDiffieHellmanSessionCreate",
46
+ cryptoDiffieHellmanSessionCall: "_cryptoDiffieHellmanSessionCall",
37
47
  cryptoSubtle: "_cryptoSubtle",
38
48
  fsReadFile: "_fsReadFile",
39
49
  fsWriteFile: "_fsWriteFile",
@@ -64,14 +74,57 @@ export const HOST_BRIDGE_GLOBAL_KEYS = {
64
74
  networkHttpRequestRaw: "_networkHttpRequestRaw",
65
75
  networkHttpServerListenRaw: "_networkHttpServerListenRaw",
66
76
  networkHttpServerCloseRaw: "_networkHttpServerCloseRaw",
77
+ networkHttpServerRespondRaw: "_networkHttpServerRespondRaw",
78
+ networkHttpServerWaitRaw: "_networkHttpServerWaitRaw",
79
+ networkHttp2ServerListenRaw: "_networkHttp2ServerListenRaw",
80
+ networkHttp2ServerCloseRaw: "_networkHttp2ServerCloseRaw",
81
+ networkHttp2ServerWaitRaw: "_networkHttp2ServerWaitRaw",
82
+ networkHttp2SessionConnectRaw: "_networkHttp2SessionConnectRaw",
83
+ networkHttp2SessionRequestRaw: "_networkHttp2SessionRequestRaw",
84
+ networkHttp2SessionSettingsRaw: "_networkHttp2SessionSettingsRaw",
85
+ networkHttp2SessionSetLocalWindowSizeRaw: "_networkHttp2SessionSetLocalWindowSizeRaw",
86
+ networkHttp2SessionGoawayRaw: "_networkHttp2SessionGoawayRaw",
87
+ networkHttp2SessionCloseRaw: "_networkHttp2SessionCloseRaw",
88
+ networkHttp2SessionDestroyRaw: "_networkHttp2SessionDestroyRaw",
89
+ networkHttp2SessionWaitRaw: "_networkHttp2SessionWaitRaw",
90
+ networkHttp2ServerPollRaw: "_networkHttp2ServerPollRaw",
91
+ networkHttp2SessionPollRaw: "_networkHttp2SessionPollRaw",
92
+ networkHttp2StreamRespondRaw: "_networkHttp2StreamRespondRaw",
93
+ networkHttp2StreamPushStreamRaw: "_networkHttp2StreamPushStreamRaw",
94
+ networkHttp2StreamWriteRaw: "_networkHttp2StreamWriteRaw",
95
+ networkHttp2StreamEndRaw: "_networkHttp2StreamEndRaw",
96
+ networkHttp2StreamPauseRaw: "_networkHttp2StreamPauseRaw",
97
+ networkHttp2StreamResumeRaw: "_networkHttp2StreamResumeRaw",
98
+ networkHttp2StreamRespondWithFileRaw: "_networkHttp2StreamRespondWithFileRaw",
99
+ networkHttp2ServerRespondRaw: "_networkHttp2ServerRespondRaw",
67
100
  upgradeSocketWriteRaw: "_upgradeSocketWriteRaw",
68
101
  upgradeSocketEndRaw: "_upgradeSocketEndRaw",
69
102
  upgradeSocketDestroyRaw: "_upgradeSocketDestroyRaw",
70
103
  netSocketConnectRaw: "_netSocketConnectRaw",
104
+ netSocketWaitConnectRaw: "_netSocketWaitConnectRaw",
105
+ netSocketReadRaw: "_netSocketReadRaw",
106
+ netSocketSetNoDelayRaw: "_netSocketSetNoDelayRaw",
107
+ netSocketSetKeepAliveRaw: "_netSocketSetKeepAliveRaw",
71
108
  netSocketWriteRaw: "_netSocketWriteRaw",
72
109
  netSocketEndRaw: "_netSocketEndRaw",
73
110
  netSocketDestroyRaw: "_netSocketDestroyRaw",
74
111
  netSocketUpgradeTlsRaw: "_netSocketUpgradeTlsRaw",
112
+ netSocketGetTlsClientHelloRaw: "_netSocketGetTlsClientHelloRaw",
113
+ netSocketTlsQueryRaw: "_netSocketTlsQueryRaw",
114
+ tlsGetCiphersRaw: "_tlsGetCiphersRaw",
115
+ netServerListenRaw: "_netServerListenRaw",
116
+ netServerAcceptRaw: "_netServerAcceptRaw",
117
+ netServerCloseRaw: "_netServerCloseRaw",
118
+ dgramSocketCreateRaw: "_dgramSocketCreateRaw",
119
+ dgramSocketBindRaw: "_dgramSocketBindRaw",
120
+ dgramSocketRecvRaw: "_dgramSocketRecvRaw",
121
+ dgramSocketSendRaw: "_dgramSocketSendRaw",
122
+ dgramSocketCloseRaw: "_dgramSocketCloseRaw",
123
+ dgramSocketAddressRaw: "_dgramSocketAddressRaw",
124
+ dgramSocketSetBufferSizeRaw: "_dgramSocketSetBufferSizeRaw",
125
+ dgramSocketGetBufferSizeRaw: "_dgramSocketGetBufferSizeRaw",
126
+ resolveModuleSync: "_resolveModuleSync",
127
+ loadFileSync: "_loadFileSync",
75
128
  ptySetRawMode: "_ptySetRawMode",
76
129
  processConfig: "_processConfig",
77
130
  osConfig: "_osConfig",
@@ -92,12 +145,14 @@ export const RUNTIME_BRIDGE_GLOBAL_KEYS = {
92
145
  httpsModule: "_httpsModule",
93
146
  http2Module: "_http2Module",
94
147
  dnsModule: "_dnsModule",
148
+ dgramModule: "_dgramModule",
95
149
  httpServerDispatch: "_httpServerDispatch",
96
150
  httpServerUpgradeDispatch: "_httpServerUpgradeDispatch",
151
+ httpServerConnectDispatch: "_httpServerConnectDispatch",
152
+ http2Dispatch: "_http2Dispatch",
153
+ timerDispatch: "_timerDispatch",
97
154
  upgradeSocketData: "_upgradeSocketData",
98
155
  upgradeSocketEnd: "_upgradeSocketEnd",
99
- netModule: "_netModule",
100
- tlsModule: "_tlsModule",
101
156
  netSocketDispatch: "_netSocketDispatch",
102
157
  fsFacade: "_fs",
103
158
  requireFrom: "_requireFrom",