@wezzard/mcp-relay 0.14.1 → 0.14.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-relay",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "Runs an agent's code on fresh, isolated VMs, several at once, each run recorded with evidence",
5
5
  "author": {
6
6
  "name": "WeZZard"
@@ -126,12 +126,12 @@
126
126
  "node_modules/typebox/build/format/_registry.mjs": "f60d2bf0b9a6e0c7e999123f971694e6e21a048ee7d8da79167b3aa3acb7d86a",
127
127
  "node_modules/typebox/build/format/date.mjs": "8144db22f2b2ab1b04292cdcabc33c4500777ec4cfa8a5f34f80464122813f96",
128
128
  "node_modules/typebox/build/format/date_time.mjs": "eba189f6ed086a57087b2bb006a75ef6af3287bb90972b217e90f2fa9d748257",
129
- "node_modules/typebox/build/format/duration.mjs": "9c5a69120b0096d0171853f0b0175c14e1cab8c440d8d3edfb4872b22fcd20b9",
129
+ "node_modules/typebox/build/format/duration.mjs": "72c993ff50d16dbc7d7cc906a01708f8a06390c96e60a0e68a6ceb2c2ae0ca2f",
130
130
  "node_modules/typebox/build/format/email.mjs": "19ebb0170894cce6b972207c7dd9b0878bcea82f213981c0a475b5f140ace0fa",
131
131
  "node_modules/typebox/build/format/format.mjs": "7512e7849bebf243b675cdb81bbf958c8c2e1a7721d5e6355664fb1c3e8386a6",
132
132
  "node_modules/typebox/build/format/hostname.mjs": "4ed9300346a70d8a4f482cf810cca2fb07597c10fed71c5e277b11347c1247f3",
133
- "node_modules/typebox/build/format/idn_email.mjs": "75dc692e2efe3ddbb6528e3ae4a2282e47495c8263527c8e4b39ab28db3c57cd",
134
- "node_modules/typebox/build/format/idn_hostname.mjs": "7a2920c74a2b56fe8f6795724d29da8487a3231df91f995b41d4b9aa9a6a859c",
133
+ "node_modules/typebox/build/format/idn_email.mjs": "b6360b4ed677105e106e4f5c33565bedeb50192162535e134a68edcd13fbb08a",
134
+ "node_modules/typebox/build/format/idn_hostname.mjs": "a2c96cb4b016429a3c67b89b808165843584ac25b34793a3a17d1096b537a379",
135
135
  "node_modules/typebox/build/format/idna/format/bidi.mjs": "646aae2b5f8d552d145e5736effd86caca651758ed6919e6a0fd2bd35bb3230d",
136
136
  "node_modules/typebox/build/format/idna/format/puny.mjs": "6af99f7c6a4bf34af9dbc500771879be9c1f2715e62e98d1f009743a07beeb31",
137
137
  "node_modules/typebox/build/format/idna/hostname.mjs": "91a9b9add2cb8e6b81cd8cfd72f9aa5e349c95e2e3aa904efce0918995ddda08",
@@ -142,54 +142,56 @@
142
142
  "node_modules/typebox/build/format/idna/label/unicode.mjs": "60e566150ef15a71c8da82698ed620434aa95c77a62a97c31abbfff5bd072f34",
143
143
  "node_modules/typebox/build/format/idna/pattern/pattern.mjs": "b4ca2476da5fe031fae9daebae6bb6132c4143e4bbeb116edab36c6a521bfa51",
144
144
  "node_modules/typebox/build/format/index.mjs": "a9526e81d59d3a884aeb164b7fc03f511ffdacbfbf891291d6678a490c7f1dd3",
145
- "node_modules/typebox/build/format/ipv4.mjs": "3623c0243cfdda43ca810cf03ef90634e1aede631a8debea841446ae109611ba",
146
- "node_modules/typebox/build/format/ipv6.mjs": "22f1124c54fa541fa17cb5fd1bcb8cf8d764699206fc314fdd7de34ebc5de409",
147
- "node_modules/typebox/build/format/iri.mjs": "522b9bff91b7f242b8ca4b2c86b4168003f207d46febc20c0f76ff56fd3f1ff7",
145
+ "node_modules/typebox/build/format/ipv4.mjs": "e8b7c177de583bd8845695a4bad1417c81e1f7b551596926a7985b338b38beed",
146
+ "node_modules/typebox/build/format/ipv6.mjs": "2608a7b1159915968f0c7ee942dabd92abe9e8d9e433f47b328bf79b99468176",
147
+ "node_modules/typebox/build/format/iri.mjs": "5b35a1bf728101d668abf65adf78808c61b170ccc9fc3432445677655c685a6a",
148
148
  "node_modules/typebox/build/format/iri_reference.mjs": "b7205d00c6b466b2e3b24251f0291ce69b3db93fc1131d09babd53fd5bd58e83",
149
149
  "node_modules/typebox/build/format/json_pointer.mjs": "1a72eaa1f2b6bb8b7f80271012048fb838b7010b33895225b29d80c25768e313",
150
150
  "node_modules/typebox/build/format/json_pointer_uri_fragment.mjs": "4eb06e629623d416f7bbc036375130b0805a7319b8c3c10caadc0d7c7d30e8d1",
151
151
  "node_modules/typebox/build/format/regex.mjs": "c99a276e560cde89bca7378102329f10be772b6591cc585c1b9ccb8d6fe184bb",
152
- "node_modules/typebox/build/format/relative_json_pointer.mjs": "e4d4c96d402a366f90aa3fa4695910880ef1ed81a1424783c20b399247f9e191",
152
+ "node_modules/typebox/build/format/relative_json_pointer.mjs": "4a92642c2c446d9ccffe9991793d10642c276d56316eed843ef7eb91979ffae8",
153
153
  "node_modules/typebox/build/format/time.mjs": "9e5ebed19650da4ed466f26113775a96a623ad0717550ccd5d259f4c1208a2b4",
154
154
  "node_modules/typebox/build/format/uri.mjs": "90cde0f07795ae202622259d5ea0bf3ac763f3d9e9822453af5e4173f1940c57",
155
155
  "node_modules/typebox/build/format/uri_reference.mjs": "6734527159e6fe543c8a925ee18810d3ae49e79c0d2f85056240f20f31f1b79a",
156
156
  "node_modules/typebox/build/format/uri_template.mjs": "3f9a734b996b25cd73d3a842bdf4848cd31a02f28fe0a4f5d1408c91fb9393df",
157
157
  "node_modules/typebox/build/format/url.mjs": "f1dea199f91ffee22cfb63b645599df9c8838235ad0e980908905c2231eceb6b",
158
158
  "node_modules/typebox/build/format/uuid.mjs": "d2d72274c342fcd677ca0eb7163b3d27b5ba15b01b396fce0f8f1861623f6633",
159
- "node_modules/typebox/build/guard/emit.mjs": "ee96d04edc1dd32b1993c0dc47a8157c907e554b2c3f40ba1fded5fcb33d5f22",
159
+ "node_modules/typebox/build/guard/emit.mjs": "4437ac3226b4c37f4c739e0d4813271bf85e7053e6800a48b1255d979478c8ec",
160
160
  "node_modules/typebox/build/guard/globals.mjs": "e020f5c629058f1abeb07ab91e2204a2603c4eea70b08be85776826dd9d556ed",
161
- "node_modules/typebox/build/guard/guard.mjs": "6d244b6026c8820429dc8074124f175c749f01f67af6b1ef0a5df053c5bafe8d",
162
- "node_modules/typebox/build/guard/index.mjs": "caf94a5eb02c8c0bfcf82d413e9e27f78059cc9ca052d2204954fdd6caaaebad",
161
+ "node_modules/typebox/build/guard/guard.mjs": "a3a99fa3d4d84274349dc45c901c38db7cef431ff038de638008f8dd3e1f446a",
162
+ "node_modules/typebox/build/guard/index.mjs": "77d13e52aade73c95328eaf4a634e41a330a46079402e7333dfb7de63be32c90",
163
163
  "node_modules/typebox/build/guard/native.mjs": "b1383cda7b657e060a9eec1ad5dae1c34dc70bda29fa2f0856642d06c9e56ec2",
164
- "node_modules/typebox/build/guard/string.mjs": "06373a5407d9cdc1d4e0a764a82ab31fe285685a2118380b5e64501e19ab6504",
164
+ "node_modules/typebox/build/guard/unicode/unicode.mjs": "61b2d5f74ec6dd87565b49d09ee84fe491bbb97b193567a93960405261cb68f7",
165
+ "node_modules/typebox/build/guard/unicode/unicode_segment.mjs": "1261cd45572fcb4d4a201719528389a51d48638df2ae64651867dd18101db248",
165
166
  "node_modules/typebox/build/index.mjs": "26af1f941dfdb2c65928f2a11862bb4a1210652bcc6764135f5a425d7e4aeb72",
166
- "node_modules/typebox/build/schema/build.mjs": "13b8a2c1636e5d66abb0c14c8f9ed5cdf4aae3fa15b56e42334bf9738fc203fa",
167
+ "node_modules/typebox/build/schema/build.mjs": "dc83e88414c0a48257525a8205266d3dbbc10c55162c5cecc85e0f3b1450cc72",
167
168
  "node_modules/typebox/build/schema/check.mjs": "6583b97f692ba69bde3b45b84490036511a89202ca2247d92acc8040d4d006b8",
168
169
  "node_modules/typebox/build/schema/compile.mjs": "7e20d962689705477b5ff6ca161dfbc3c6696b4796b54436d2d6d132179b7885",
169
170
  "node_modules/typebox/build/schema/engine/_context.mjs": "6176c82b158c96b247d24dd10e2e636afe11a0092ae1614e77ddf14c5ed7be1f",
170
171
  "node_modules/typebox/build/schema/engine/_exact_optional.mjs": "be57c0e1e3099521a3b01ff28d77b63e33a8c30790bada3bb1f6ac55850c7e82",
171
172
  "node_modules/typebox/build/schema/engine/_externals.mjs": "59bfb3faa91acbb49c839b456f2707cc9d8375cfea6d143d3cf1c7f40d49503b",
172
173
  "node_modules/typebox/build/schema/engine/_functions.mjs": "33444df70ced3a5cad80c921cdb0876401ab207d3585ecaa7d22903e78e157e4",
174
+ "node_modules/typebox/build/schema/engine/_pathing.mjs": "676842f0d6a88164d5fd238dd4b15e5a47fe8cb3ec1b33af5117f6afdb346556",
173
175
  "node_modules/typebox/build/schema/engine/_reducer.mjs": "0fbf041b8c105a8ab419a741dfabd06758a275ae1a2600bd1d7973fd28f3aece",
174
- "node_modules/typebox/build/schema/engine/_refine.mjs": "e0aa0aff2bd09a9a13762c3b410f730a8fea6d505fadd9ffc9a0880e4ba86328",
176
+ "node_modules/typebox/build/schema/engine/_refine.mjs": "ac6edb9f1d32d4d2d2fe4ef67b288fe43c12adc6c7695c48c3822b9719f35b48",
175
177
  "node_modules/typebox/build/schema/engine/_regexp.mjs": "1480622faa8c90cadcfd04dba25f5e40854e5267f147c3a5270cc89e3beccaed",
176
178
  "node_modules/typebox/build/schema/engine/_stack.mjs": "6b8ef03d3a3fc6a1e02ae0fb0a9b3dbc832f2f77b5be7ebb68ac37b1b287d664",
177
179
  "node_modules/typebox/build/schema/engine/_unique.mjs": "f203b28367f9641abbc749871f75dc34a3f12988a6e2c86add7dccfcdc7b24be",
178
180
  "node_modules/typebox/build/schema/engine/additionalItems.mjs": "b3f9294f5bf65ac6b6cffbb555f73191dee818ff62e1de7b58d520b314043d9f",
179
- "node_modules/typebox/build/schema/engine/additionalProperties.mjs": "8a732d1e7a583cb0bc79cbf13a39c633bb1a2c0483af59245103b034e57a095f",
181
+ "node_modules/typebox/build/schema/engine/additionalProperties.mjs": "183ed5d7443706ae2da1bfdd9be092aa4487cb7fd89ec8d176e02b4c94cccd69",
180
182
  "node_modules/typebox/build/schema/engine/allOf.mjs": "2a263e1c4021628c107e099061b3dce8e840fcd8ed713e2ef00a34be5db95642",
181
183
  "node_modules/typebox/build/schema/engine/anyOf.mjs": "fee33a7bb051a82e97bd1a3f814351ac660bddfd1e6bdcf1b2e8a6078cd42fa3",
182
184
  "node_modules/typebox/build/schema/engine/boolean.mjs": "856be79387a10ed0084e77d9a71e5275f563b41447ea29739709465331f67a7c",
183
185
  "node_modules/typebox/build/schema/engine/const.mjs": "081fa331a84f763e2d017c49df765af690a063fda4fccc29688f7e2e85e4acb9",
184
186
  "node_modules/typebox/build/schema/engine/contains.mjs": "9b157c6051450efb6628958bb9fba0639072b14885d5db3a39a20660cb51f858",
185
- "node_modules/typebox/build/schema/engine/dependencies.mjs": "d8ee5030d8dd38e0b8a53e2b5d7d7e91a6481408bc7b33c7aaf9e223fa925813",
187
+ "node_modules/typebox/build/schema/engine/dependencies.mjs": "5ae37a6a6677da03f9ec79bfa2a047b08dd4e4cf93d97f1a35a82dd62eaf8c75",
186
188
  "node_modules/typebox/build/schema/engine/dependentRequired.mjs": "9c67a9b0e10655ffef8dcfdda25d298de59c4378a915d7c8163fb7addc5d5179",
187
- "node_modules/typebox/build/schema/engine/dependentSchemas.mjs": "8aac2f661f56e06a9723ac85b4dc96a229db334434e0dc9e42de49ceb9211eb5",
188
- "node_modules/typebox/build/schema/engine/dynamicRef.mjs": "dbb96f4bddd3dd5eaf8f4f21ead9e351fb434501adc4a05ae46ae444dc6f3ed3",
189
+ "node_modules/typebox/build/schema/engine/dependentSchemas.mjs": "0a5fbca5e18e630f90b0d08061daddef69980e48f66077d39d84c3e7a66e598e",
190
+ "node_modules/typebox/build/schema/engine/dynamicRef.mjs": "33f26f1fb24960fd49fc15f886657711db5ea7916f8769309010f7397c734411",
189
191
  "node_modules/typebox/build/schema/engine/enum.mjs": "b533603e5dd904f32225abfb63d1c59b79e03aa6ac77cd1d201366a1b3f8d31a",
190
192
  "node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs": "b12b3ff4ad157ae980b7de15b926ac498dda319f46670789bc7b7408e8ed08f6",
191
193
  "node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs": "8ce7de4f267aaa0ab41139ac1a8117f9243ebc78f3e9f28303318d1a1a54365f",
192
- "node_modules/typebox/build/schema/engine/format.mjs": "8f2effd9c0845f2ffd7b46bf6a80feb57bacd97bf39c06469e714a2f56bb21bb",
194
+ "node_modules/typebox/build/schema/engine/format.mjs": "7627c84762d88d54547ee74040332fc098571464a523c8c1158997f65679bccd",
193
195
  "node_modules/typebox/build/schema/engine/if.mjs": "0c7e9aa632eb3b9d0897172d6602c56912b05ea2a59631b13c36a20870d182c0",
194
196
  "node_modules/typebox/build/schema/engine/index.mjs": "7e12013ba924c237d611f07dfa288c9c41621d8a88cd58dfc43cf0e981e5e59e",
195
197
  "node_modules/typebox/build/schema/engine/items.mjs": "8ac58f3dd716f9371e0e1446a6a9a3097ca85736cf4532cb95cbb15735858ab2",
@@ -207,14 +209,14 @@
207
209
  "node_modules/typebox/build/schema/engine/not.mjs": "15b1b8303618e24fadd8393753ed6398bfeaeab945ce4063eabeb1592eb24f05",
208
210
  "node_modules/typebox/build/schema/engine/oneOf.mjs": "c7e13407216d39738e88763f9def5deb3386e75e061cf962a18924d0fc988d02",
209
211
  "node_modules/typebox/build/schema/engine/pattern.mjs": "f112d8fe6c210dbc94c43d793634a1dee866d90e6c5af5ce794a2c2ec4bf7e7e",
210
- "node_modules/typebox/build/schema/engine/patternProperties.mjs": "d3e9ae51b57a6127b545ceb6452f953565c2d02ad379f98a862549290716b0a4",
212
+ "node_modules/typebox/build/schema/engine/patternProperties.mjs": "c9847faa91643dcfe1718391c92d9af5b19c79525a2093dd36c542538dbc3f34",
211
213
  "node_modules/typebox/build/schema/engine/prefixItems.mjs": "b1d6775518cdaa792879729e50c695648ded849c03997bf7f3f9a20a4e0079c3",
212
- "node_modules/typebox/build/schema/engine/properties.mjs": "ec474f96f1995ee251b15122a5ca997450cc20c27e27c9e8ad187e238bfaf0d5",
213
- "node_modules/typebox/build/schema/engine/propertyNames.mjs": "0a2bfa4a896192af8d58ee5ba98f9f0d2e2a9e632ebadcdb2064eace435a73cb",
214
- "node_modules/typebox/build/schema/engine/recursiveRef.mjs": "71a3bb14e1acf6770c7261406dff1dfd478e991e873712c3bf62e5547b607f79",
215
- "node_modules/typebox/build/schema/engine/ref.mjs": "3505f87262c02a9d677ecae9948e805f531a2e521a288b165c22db109ed84d2c",
214
+ "node_modules/typebox/build/schema/engine/properties.mjs": "2e706fa95c6520ade1128e28788aa60b7e47f94d7ccc2487f18c5b5a2eb604eb",
215
+ "node_modules/typebox/build/schema/engine/propertyNames.mjs": "91f246d3ad78cea78b16a61f116cbdc56a7c3cee075da6e7f2c5483405e5ebf7",
216
+ "node_modules/typebox/build/schema/engine/recursiveRef.mjs": "231431781d09724ad521c4fe0d4c1559d64958ed4d3d3705f516d1a46aa956a5",
217
+ "node_modules/typebox/build/schema/engine/ref.mjs": "14565cf7dae9cf6f06f04e731070d21c37060a95e61edcba99c7ecef57203edb",
216
218
  "node_modules/typebox/build/schema/engine/required.mjs": "427faf5f32fe8b03670a04b8ff8241dff68b39fe2af222e40768973a62338378",
217
- "node_modules/typebox/build/schema/engine/schema.mjs": "067356665884e6263bb3bc870d68d60364661ca203894811fb7628be40ec632c",
219
+ "node_modules/typebox/build/schema/engine/schema.mjs": "6c20d0a517629907a90fd470b5065968d93e3e4fe7eb9a9d599052bf8e69ed5e",
218
220
  "node_modules/typebox/build/schema/engine/type.mjs": "7881d4a7a405b8032fba7d2b209dd75d1f71e30ffbf973ec03cf25c7f8a6372d",
219
221
  "node_modules/typebox/build/schema/engine/unevaluatedItems.mjs": "0f2e9d0017ae0a56d4a0b259e7397a3ea003378994e4803b68396f73baf3c328",
220
222
  "node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs": "e13d957b75c0ad8efea1aef23e236ed1b197f8f5889f2e14154b0a662507ec4e",
@@ -232,9 +234,9 @@
232
234
  "node_modules/typebox/build/schema/meta/index.mjs": "02c32acdad689964a08ea03a4eb6f1cc4dcba4b9760d470c3a8d9be37d9a3ef0",
233
235
  "node_modules/typebox/build/schema/meta/meta.mjs": "2e4deb95c65633a7f1018b53535de121dff70ff321b882cd56fe4388ccc1aa22",
234
236
  "node_modules/typebox/build/schema/meta/schema.mjs": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
235
- "node_modules/typebox/build/schema/parse.mjs": "d21a22cfdc72365a1a42a00267d579a05ef133ca7ea43067c07836bac735f271",
237
+ "node_modules/typebox/build/schema/parse.mjs": "ebf71b40a5bf7b0266bac91260197722ed9d59bff23cdcf6d1177df6234b1ea9",
236
238
  "node_modules/typebox/build/schema/pointer/index.mjs": "03acd429f22e6e483eb714e222539512bf0d6355895c6e1c4837095f09594e23",
237
- "node_modules/typebox/build/schema/pointer/pointer.mjs": "d881e6d8fc165ef7b75beabccbbafaa6ad0192f297fbb312874669dd55f01186",
239
+ "node_modules/typebox/build/schema/pointer/pointer.mjs": "194829ed7efe3c27e90ecb0c6bd6d2e5c035444a6ed17b74bdaedabc73c37bda",
238
240
  "node_modules/typebox/build/schema/pointer/pointer_get.mjs": "d82c519bec2cb451cb7742f8f08ca00478464ec615aad40bfbfbe7dabda93dff",
239
241
  "node_modules/typebox/build/schema/resolve/index.mjs": "ff277bdc89de803109ab31f222dea28032d6d30eee9540e3834d9d98299f995e",
240
242
  "node_modules/typebox/build/schema/resolve/resolve.mjs": "cdc6cbcb7011c1e00303a9b0aefdbb9ffbbf0f0c67a2761f1d561f931b875e7f",
@@ -297,7 +299,7 @@
297
299
  "node_modules/typebox/build/system/environment/environment.mjs": "4615bb15fd14d923e6d069b9abbd8053747b905104853b95d63db4dfeafbf6a9",
298
300
  "node_modules/typebox/build/system/environment/evaluate.mjs": "57249e9f79661f26d15cb79437ca0446daf5202f5f574b6cb9c8ccbe67067e05",
299
301
  "node_modules/typebox/build/system/environment/index.mjs": "899247fd7fbe6fe95ad8063db11eefaa6561e6e5559d9b502d8f94bdbc4e2a87",
300
- "node_modules/typebox/build/system/hashing/hash.mjs": "f7588a0d193eb1d09bcfc67353354abd85200df246e5e6f2dd31e09af136fb6b",
302
+ "node_modules/typebox/build/system/hashing/hash.mjs": "9b82229397139cd93be02a1ffc8fa140b30459c6bdf08796b13c7fc6f3b2aaed",
301
303
  "node_modules/typebox/build/system/hashing/index.mjs": "b031de7a7ce6a4787080c043c2ac387d662c24bf13de41a7c422fcfb2b5c32db",
302
304
  "node_modules/typebox/build/system/index.mjs": "afc73bd72351db8f795f259f124d9490b6213fea0ff1bd5c601e3f7352669cf0",
303
305
  "node_modules/typebox/build/system/locale/_config.mjs": "7236363eb385ecdb1fabede0dbdaff6ee447acb710c6a535ae89747724e83480",
@@ -307,7 +309,7 @@
307
309
  "node_modules/typebox/build/system/locale/cs_CZ.mjs": "c741a3103a9ee0b418d44329616b78cd5d6493c66c5b7c0d9ecf1589d7f1cd7e",
308
310
  "node_modules/typebox/build/system/locale/de_DE.mjs": "45d875ccbef0ec355d4af3b4fae2472804654e366b51216cd6fb73450b963ae1",
309
311
  "node_modules/typebox/build/system/locale/el_GR.mjs": "549dbf046dee83c05bd0170909afe1af469d9454afc6451004539d1b85e44ea6",
310
- "node_modules/typebox/build/system/locale/en_US.mjs": "a568c8c536af7e8022c6cd479f42c232e77eacb39534b119d1535404d550fb74",
312
+ "node_modules/typebox/build/system/locale/en_US.mjs": "77658143b2e6f021a1de6e2822f0940892071ae2c63debc303be1388d54734fa",
311
313
  "node_modules/typebox/build/system/locale/es_419.mjs": "06fb59b64c830f6ab197762297099236499b11d9127666ed605947c56acfc320",
312
314
  "node_modules/typebox/build/system/locale/es_AR.mjs": "b0534a214a2cf9a75e972c47187168e3c43c6c6bd94457e1cf0af0903c92297e",
313
315
  "node_modules/typebox/build/system/locale/es_ES.mjs": "0a25b613f6e9961952b1dc1d52e62ca2a2a96e1e61130118198f13b9999a4756",
@@ -351,7 +353,8 @@
351
353
  "node_modules/typebox/build/system/memory/metrics.mjs": "b98b01ee048533cd9773efcaf6235232d3397287b528ae38729232e5c8d58002",
352
354
  "node_modules/typebox/build/system/memory/update.mjs": "c4646ff018e0743a9c999be3e84811017adb24ab5c3f3742956e14b944bccc63",
353
355
  "node_modules/typebox/build/system/settings/index.mjs": "003fca24bd5ed779380ee39900e0c397ef87e2ee64d0e9f2f787d87779e56e19",
354
- "node_modules/typebox/build/system/settings/settings.mjs": "d5d2395001e8990a3c23a105440db862bbb9989d7038176e511c009adf60a97d",
356
+ "node_modules/typebox/build/system/settings/internal.mjs": "45ba427831574a8c15f2a669f19382ce8b307a02efcc762243d1c203e8986aee",
357
+ "node_modules/typebox/build/system/settings/settings.mjs": "01a518a523e54f048769c30de6f761f364bc8b4f1a6dec639501bc429ba9d2d7",
355
358
  "node_modules/typebox/build/system/system.mjs": "4084fd18596fe3174af21fe5963b56136bd4ba0083b91cbd35ba98dcef642473",
356
359
  "node_modules/typebox/build/system/unreachable/index.mjs": "235fca7fbd597e14385dc5183bceef257f4a19efccc5e352602d9557a28e969f",
357
360
  "node_modules/typebox/build/system/unreachable/unreachable.mjs": "d76237b89f570fd23b30fae2d846d75c2501b3801000c2e5a0bf53134f96b1ef",
@@ -566,7 +569,7 @@
566
569
  "node_modules/typebox/build/type/extends/extends_right.mjs": "3e8494c0917066323650c561081fa54443baf314fe9be605ab99904d2eea2ceb",
567
570
  "node_modules/typebox/build/type/extends/function.mjs": "9370aa57e2998f4b7bd04a11214f9cdd1b0e3b161afe29efe9d7b1bb7149ce31",
568
571
  "node_modules/typebox/build/type/extends/index.mjs": "6be8efe4ab2f6c2b3ab4659d52c55ca5446c22df1468be87510f99baa207860d",
569
- "node_modules/typebox/build/type/extends/inference.mjs": "ee9ed5e28664aaa5419ff9c9550f868194e309a46db9f6664cf83f5d60af6780",
572
+ "node_modules/typebox/build/type/extends/inference.mjs": "9aca7f6da566c89da7ac5b0e5ad7c91c00ab9c08b79ac2140ab7567529c4c71b",
570
573
  "node_modules/typebox/build/type/extends/integer.mjs": "e73955644410271b78d89185feef813fccbe467c65f12a92790ad4f9c06bd415",
571
574
  "node_modules/typebox/build/type/extends/intersect.mjs": "b836ebcb271f3a6e2bb66bbebcea72358f8dc4391f4bb4ef2d9f27a540a17efc",
572
575
  "node_modules/typebox/build/type/extends/literal.mjs": "0d98ac66a524b54413e4cc536d8a7f6927080df69ca93435a07828ee7d3ef1f7",
@@ -581,7 +584,7 @@
581
584
  "node_modules/typebox/build/type/extends/string.mjs": "bb199648ef294754647d24c4989851ad0fcb3145395597c88245a5f5927da2d6",
582
585
  "node_modules/typebox/build/type/extends/symbol.mjs": "dcdad5c9a7c308c60f93c127455ecac8f74b63c11acc9ec9278a5fea03a9b0c9",
583
586
  "node_modules/typebox/build/type/extends/template_literal.mjs": "67554d08c890bc50770d8e6226a742a834d4e9829d1e85322eb46f0c7cd41307",
584
- "node_modules/typebox/build/type/extends/tuple.mjs": "665879298577ebe7f279de1e96de033f748b627bc1c80ff3db062611ab407a3a",
587
+ "node_modules/typebox/build/type/extends/tuple.mjs": "552b6a0fb37f4d41b84b3f3806c1b30ea79192ad12143baa6e5e77f52c4403c0",
585
588
  "node_modules/typebox/build/type/extends/undefined.mjs": "d63164ee7851e7482ed23c5a7d3e5fb9ca1745cabe8dcb7fec8fd8efc550c60b",
586
589
  "node_modules/typebox/build/type/extends/union.mjs": "819935676ec4cae417cb406b8c4d53b6bf2faa8cbf2ce177f0cef67b361366e3",
587
590
  "node_modules/typebox/build/type/extends/unknown.mjs": "a39ef852f77d93ca77bd6e641809595ed2b4d9e5cdb6331690e496b2fe97b120",
@@ -665,7 +668,7 @@
665
668
  "node_modules/typebox/build/value/clean/from_array.mjs": "3bd13b27361adfb66e3f9db39642f469532a3690ebe7b4bd9764327b62e75985",
666
669
  "node_modules/typebox/build/value/clean/from_cyclic.mjs": "2dfb83b0c885ac7b79aac5f71129c5cbe9833837d9aa7c76208a662dd3030a5b",
667
670
  "node_modules/typebox/build/value/clean/from_intersect.mjs": "badefb3df5d3f033019e723c8bfff6c5cf717e9104675a96ecec9ae3dd5e41be",
668
- "node_modules/typebox/build/value/clean/from_object.mjs": "2ac45340d02598dba6ab8e3ab6200254ba9ece6ad0fb4fb173cb1700a453e889",
671
+ "node_modules/typebox/build/value/clean/from_object.mjs": "1245dca935ef0662d69488765b7bf2c7da582d820311aa403602a4c6f3478946",
669
672
  "node_modules/typebox/build/value/clean/from_record.mjs": "3198bf4020238cdb83d29f2b364d6c90531db033ee780d115c492fe2dc1b0cbf",
670
673
  "node_modules/typebox/build/value/clean/from_ref.mjs": "3e9bc607523210ac57bce554e113154db659600c330496c4863cba4997cb811d",
671
674
  "node_modules/typebox/build/value/clean/from_tuple.mjs": "0cce96d67c65a3f1aa6765ede26d7d7ff1ca26d2ade26125fa37a78058bd03fb",
@@ -773,7 +776,7 @@
773
776
  "node_modules/typebox/build/value/hash/index.mjs": "c39be24e0cf86757c682e49176ede0b266ce43a32134069704439dfffb5b6484",
774
777
  "node_modules/typebox/build/value/index.mjs": "8d09532c9198a51443ff5af9423a9d771f999493b065294aae6b71a11b87e0bc",
775
778
  "node_modules/typebox/build/value/parse/index.mjs": "e178061774c6bf4a9261f3634fa9093a1220427de1e2cc6aa15aaf6ef1dc6b96",
776
- "node_modules/typebox/build/value/parse/parse.mjs": "4d2d9baa1da870fd8be0cfe68b5c6f08b782eb7657e05b3368d03da8b1fbbabd",
779
+ "node_modules/typebox/build/value/parse/parse.mjs": "464c6a5806625b2accdfd103dff9d681186963cf7dd2ad32621ddb0cb68f2c53",
777
780
  "node_modules/typebox/build/value/pipeline/index.mjs": "311b8671ca350e55c65074ead639cc2e2ea41bbbca2bc33d77496e6c2df37e78",
778
781
  "node_modules/typebox/build/value/pipeline/pipeline.mjs": "fd630c0a8777e6987cf60b54e6fb9440a9e8ac259517d05e71781afc4b477639",
779
782
  "node_modules/typebox/build/value/pointer/index.mjs": "3023e639a0ae125796858afa90cc29624e74f6ea547c2bf47119301bdb84f34e",
@@ -793,7 +796,7 @@
793
796
  "node_modules/typebox/build/value/repair/repair.mjs": "50591cb9574c469384b14eb8c67116d849722b3359692cfa9e2a855a654ce316",
794
797
  "node_modules/typebox/build/value/shared/index.mjs": "6b647669fb7f4e10e8eab222b2cba173a768a79bec50222c4299f74c59fa7549",
795
798
  "node_modules/typebox/build/value/shared/optional_undefined.mjs": "34cd3f015adf7ca7eaeacf11a77cd6cb8740139ccbe16c30c576479db5267524",
796
- "node_modules/typebox/build/value/shared/union_priority_sort.mjs": "6f3fe3d2e9847105322e70d287efe19c2e0f3f3914b76c97348ef88b67e4ebb6",
799
+ "node_modules/typebox/build/value/shared/union_priority_sort.mjs": "cd3beabc02d254660e6e9b4647f7b54706955d27ad6df8200de756248599b50e",
797
800
  "node_modules/typebox/build/value/shared/union_score_select.mjs": "48ac87f8b950b98655383ad35ef6027f5f13d75523d4c33de3cdfcc3d623af29",
798
801
  "node_modules/typebox/build/value/value.mjs": "4e2948390e27c53f0a63bcd4813cd7517daf1a9cb5719ec86751f81cacc0ac52",
799
802
  "node_modules/zod-to-json-schema/dist/esm/Options.js": "11bfc58fbf69f3044798d1871b10d1c11951bb51c1a35636ebfcad9c04c0a950",
@@ -959,10 +962,10 @@
959
962
  "src/environment.ts": "04bc2a82eb56c1b0d77dabc9db4b0af9331f18c14398e7370e31a0081914f019",
960
963
  "src/evidence-merge.ts": "2f2759e28e70595ef9284fec85e1d6082bf25e815d04f0a36a253c24bfb75110",
961
964
  "src/guest/image-evidence.ts": "e0d914cff90eac678818c49e60c7754e6bbb9b59861b9dcf8bc5b64c56ac2e52",
962
- "src/guest/receiver.ts": "ba87fc34e6a25a914138d3ebb435128e1ee9fded865ddad78f2b082faa667c0e",
965
+ "src/guest/receiver.ts": "187939653e3a7a463bfee98434f9dda07b64cb924b0395d5d7601f48a54f67b1",
963
966
  "src/image-presentation.ts": "64ca29a3444a04606cb783c81ac2d0f3136f9a9ac730ae9074156f0a63256c76",
964
967
  "src/images.ts": "734a30ba34cd80ef0b5c3791232f13b170b06d6d74c4b843d39566d2e09136d0",
965
- "src/manager.ts": "ecb8a7cbb833d8ff1f563fdbb5fbbb62ae0c35917f9def6a7543425dbae462b2",
968
+ "src/manager.ts": "2c5547af6b83de0b8728a20f237ed143caa241c5b3dcd60a4d1e74580e18f6d2",
966
969
  "src/owner-lock.ts": "a99cbaba67b4aff0e646dc5d5967db4497ba6dbda83fb1838c55f0bf0f6e0367",
967
970
  "src/package.ts": "a52ed791813922e3ace9144706ddde8313a67d8580a3acd54a0799de3ebe44d2",
968
971
  "src/probe.ts": "40a123f725aad7c22fe63707dd2de99646cb1f307d7d660927e8ca2b973e9ce0",
@@ -972,7 +975,7 @@
972
975
  "src/search-diagnostics.ts": "cea037618c56f075d51155101ad1cc0314bfa67b174bdb070191e0ea5ea04679",
973
976
  "src/search.ts": "8aaf544fcb27e7e018bd976e1ba7d3c70c047aeda3182b3dce91873a901a245e",
974
977
  "src/server.ts": "9f8e6cbc4ea346f226f61f9f9860c5d10d4864eecf41a25af1713a3fb5a0691e",
975
- "src/surface.ts": "a7f2373a1d4e1b741d22133880dcd15f6c3e6cdbddcbd742cc468e9bb71dede7",
978
+ "src/surface.ts": "bd34b2b60aa8042276fbb27380c55c5b29c8474e5fe7427d37a111e6b3c1cd25",
976
979
  "src/transfer.ts": "009dfb72ebd41a5642ec02a48ab7b678bed75e5db8859acc15a45e7f0bd43462",
977
980
  "src/transport.ts": "28661615bd8f31635811c8c6b21d4d968bcd79b8c16c7a798f744dcf33c0f217",
978
981
  "src/typebox.ts": "7f071fbc67548c7d3701272dabe88a217812e12e41dfad76974ff08169fa1a7e",
package/dist/doctor.mjs CHANGED
@@ -54,6 +54,8 @@ var VmServiceError = class extends Error {
54
54
  this.responseBody = responseBody;
55
55
  this.name = "VmServiceError";
56
56
  }
57
+ status;
58
+ responseBody;
57
59
  /** The host is at capacity, such as its limit on running macOS VMs: nothing was reserved, and the same acquisition may be asked again (DC-22). */
58
60
  capacity = false;
59
61
  };
@@ -75,6 +77,7 @@ var AcquireIndeterminateError = class extends VmServiceError {
75
77
  this.purpose = purpose;
76
78
  this.name = "AcquireIndeterminateError";
77
79
  }
80
+ purpose;
78
81
  };
79
82
  function positive(value, label) {
80
83
  if (!Number.isSafeInteger(value) || value <= 0 || value > 2147483647) throw new TypeError(`${label} must be a positive bounded integer`);
@@ -1,6 +1,6 @@
1
1
  {
2
- "server.mjs": "b35f3fc7f03664cf922ff0017954ebad95702a011ac2d8487ddffcf0e903095b",
3
- "receiver.mjs": "bee8582ef3b39cc3fa85eeba33203a3e7740c7e5958184b92a6b8d932305ca1d",
4
- "doctor.mjs": "cdf39c872f8d1e2e18b1e10d98e6ca82b61d48ac86fef462bab3a377d3b91c20",
5
- "review-data.mjs": "5971d6d721e9c4248c4dbaedf4f75e164a5284c3a59c1411887acdff6bbb193d"
2
+ "server.mjs": "ffb1d595668b5a6d135088ccde3c2e67a48043c4ee1fdf49e4c0bf9d55687cb8",
3
+ "receiver.mjs": "2c98de7231780391c6f958c054409d80318230bb009e529a4fc68ed34e34f09e",
4
+ "doctor.mjs": "32bcfbcf318ab72f81be6fa1d2106b7556e7978ed61bf0da0c79bc9f5da360d2",
5
+ "review-data.mjs": "da7b6b35d060e09cfc445df4febda02a1a0c0f23d9b854866aed8d604cbb3993"
6
6
  }
package/dist/receiver.mjs CHANGED
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
3
3
  // src/guest/receiver.ts
4
4
  import { spawn, execFile } from "node:child_process";
5
5
  import { createHash as createHash2, randomUUID } from "node:crypto";
6
- import { mkdir as mkdir3, open, readFile as readFile2, rename as rename3, rm as rm2, stat as stat2, realpath } from "node:fs/promises";
6
+ import { access, constants, mkdir as mkdir3, open, readFile as readFile2, rename as rename3, rm as rm2, stat as stat2, realpath } from "node:fs/promises";
7
7
  import { dirname as dirname2, isAbsolute, join as join3, resolve } from "node:path";
8
8
  import { pathToFileURL } from "node:url";
9
9
 
@@ -1025,6 +1025,29 @@ async function runArgv(argv, options, onSpawn) {
1025
1025
  });
1026
1026
  });
1027
1027
  }
1028
+ async function onPath(name) {
1029
+ for (const dir of (process.env.PATH ?? "").split(":")) {
1030
+ if (!dir) continue;
1031
+ try {
1032
+ await access(join3(dir, name), constants.X_OK);
1033
+ return true;
1034
+ } catch {
1035
+ }
1036
+ }
1037
+ return false;
1038
+ }
1039
+ async function interpreterArgv(language, path, find = onPath, node = { execPath: process.execPath, version: process.versions.node, strips: Boolean(process.features.typescript) }) {
1040
+ if (language === "python") {
1041
+ if (!await find("python3")) throw new Error("python3 is not on the guest's PATH, so a Python script cannot run; relay_probe scope=guest reports which runtimes the guest has");
1042
+ return ["python3", path];
1043
+ }
1044
+ if (language !== "typescript") return [node.execPath, path];
1045
+ if (await find("tsx")) return ["tsx", path];
1046
+ if (node.strips) return [node.execPath, "--disable-warning=ExperimentalWarning", path];
1047
+ const [major = 0, minor = 0] = node.version.split(".").map(Number);
1048
+ if (major > 22 || major === 22 && minor >= 6) return [node.execPath, "--experimental-strip-types", "--disable-warning=ExperimentalWarning", path];
1049
+ throw new Error(`the guest has no tsx on its PATH, and its Node.js ${node.version} predates type stripping (22.6), so a TypeScript script cannot run; write it in JavaScript instead`);
1050
+ }
1028
1051
  async function captureWithDriver(outFile, driver, dispatch = runArgv) {
1029
1052
  const result = await dispatch([driver, "call", "get_desktop_state", "--json", JSON.stringify({ screenshot_out_file: outFile })], { env: process.env, timeoutMs: 6e4 });
1030
1053
  if (result.exitStatus.code !== 0 || result.timedOut || result.outputTruncated || result.spawnError || result.terminationConfirmed !== true) throw new Error(`display capture unavailable: ${JSON.stringify({ exitStatus: result.exitStatus, timedOut: result.timedOut, outputTruncated: result.outputTruncated, spawnError: result.spawnError, terminationConfirmed: result.terminationConfirmed, terminationDiagnostic: result.terminationDiagnostic, stdout: result.stdout?.slice(0, 1500), stderr: result.stderr?.slice(0, 1500) })}`);
@@ -1204,7 +1227,7 @@ async function receive(input, options = {}) {
1204
1227
  if (hash(await readFile2(request.remotePath)) !== request.scriptSha256) throw new Error("script hash mismatch");
1205
1228
  const expected = request.language === "python" ? "python3" : request.language === "typescript" ? "tsx" : "node";
1206
1229
  if (argv.length !== 2 || argv[0].split("/").at(-1) !== expected || argv[1] !== request.remotePath) throw new Error("script argv must be [interpreter, verified remotePath]");
1207
- if (request.language === "javascript") argv = [process.execPath, request.remotePath];
1230
+ argv = await interpreterArgv(request.language, request.remotePath);
1208
1231
  } else if (request.kind === "code") {
1209
1232
  if (hash(request.code) !== request.codeSha256) throw new Error("streamed code hash mismatch");
1210
1233
  const extension = request.language === "python" ? "py" : request.language === "typescript" ? "ts" : "js";
@@ -1218,7 +1241,7 @@ async function receive(input, options = {}) {
1218
1241
  await file.close();
1219
1242
  }
1220
1243
  if (hash(await readFile2(path)) !== request.codeSha256) throw new Error("materialized streamed code hash mismatch");
1221
- argv = [request.language === "python" ? "python3" : request.language === "typescript" ? "tsx" : process.execPath, path];
1244
+ argv = await interpreterArgv(request.language, path);
1222
1245
  }
1223
1246
  } catch (error) {
1224
1247
  return await refuse(message(error));
@@ -1336,6 +1359,7 @@ export {
1336
1359
  afterRequested,
1337
1360
  confirmProcessGroupExit,
1338
1361
  groupAbsentFromProcessTable,
1362
+ interpreterArgv,
1339
1363
  receive,
1340
1364
  validateImageEvidence
1341
1365
  };
@@ -1,7 +1,12 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  var __getOwnPropNames = Object.getOwnPropertyNames;
3
- var __esm = (fn, res) => function __init() {
4
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
3
+ var __esm = (fn, res, err) => function __init() {
4
+ if (err) throw err[0];
5
+ try {
6
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
7
+ } catch (e) {
8
+ throw err = [e], e;
9
+ }
5
10
  };
6
11
 
7
12
  // node_modules/@wezzard/relay-driver-host-sdk/dist/src/evidence-package.js
package/dist/server.mjs CHANGED
@@ -6,11 +6,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __esm = (fn, res) => function __init() {
10
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
+ var __esm = (fn, res, err) => function __init() {
10
+ if (err) throw err[0];
11
+ try {
12
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
13
+ } catch (e) {
14
+ throw err = [e], e;
15
+ }
11
16
  };
12
17
  var __commonJS = (cb, mod) => function __require() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ try {
19
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
20
+ } catch (e) {
21
+ throw mod = 0, e;
22
+ }
14
23
  };
15
24
  var __export = (target, all) => {
16
25
  for (var name in all)
@@ -472,7 +481,7 @@ var require_codegen = __commonJS({
472
481
  return `break${label};` + _n;
473
482
  }
474
483
  };
475
- var Throw = class extends Node {
484
+ var Throw2 = class extends Node {
476
485
  constructor(error2) {
477
486
  super();
478
487
  this.error = error2;
@@ -917,7 +926,7 @@ var require_codegen = __commonJS({
917
926
  }
918
927
  // `throw` statement
919
928
  throw(error2) {
920
- return this._leafNode(new Throw(error2));
929
+ return this._leafNode(new Throw2(error2));
921
930
  }
922
931
  // start self-balancing block
923
932
  block(body, nodeCount) {
@@ -8361,8 +8370,8 @@ function $constructor(name, initializer3, proto, params) {
8361
8370
  }
8362
8371
  }
8363
8372
  }
8364
- const Parent = params?.Parent ?? Object;
8365
- class Definition extends Parent {
8373
+ const Parent2 = params?.Parent ?? Object;
8374
+ class Definition extends Parent2 {
8366
8375
  }
8367
8376
  Object.defineProperty(Definition, "name", { value: name });
8368
8377
  function _(def) {
@@ -12716,7 +12725,7 @@ var nonoptionalProcessor = (schema, ctx, _json, params) => {
12716
12725
  const seen = ctx.seen.get(schema);
12717
12726
  seen.ref = def.innerType;
12718
12727
  };
12719
- var UNREPRESENTABLE_DEFAULT = Symbol();
12728
+ var UNREPRESENTABLE_DEFAULT = /* @__PURE__ */ Symbol();
12720
12729
  function serializeDefaultValue(value, schema, ctx, json2, params) {
12721
12730
  let unrepresentable = false;
12722
12731
  const serialized = JSON.stringify(value, (_, val) => {
@@ -15401,9 +15410,6 @@ function isTerminal(status) {
15401
15410
  return status === "completed" || status === "failed" || status === "cancelled";
15402
15411
  }
15403
15412
 
15404
- // node_modules/zod-to-json-schema/dist/esm/Options.js
15405
- var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
15406
-
15407
15413
  // node_modules/zod-to-json-schema/dist/esm/parsers/string.js
15408
15414
  var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
15409
15415
 
@@ -17747,6 +17753,8 @@ var VmServiceError = class extends Error {
17747
17753
  this.responseBody = responseBody;
17748
17754
  this.name = "VmServiceError";
17749
17755
  }
17756
+ status;
17757
+ responseBody;
17750
17758
  /** The host is at capacity, such as its limit on running macOS VMs: nothing was reserved, and the same acquisition may be asked again (DC-22). */
17751
17759
  capacity = false;
17752
17760
  };
@@ -17768,6 +17776,7 @@ var AcquireIndeterminateError = class extends VmServiceError {
17768
17776
  this.purpose = purpose;
17769
17777
  this.name = "AcquireIndeterminateError";
17770
17778
  }
17779
+ purpose;
17771
17780
  };
17772
17781
  function positive(value, label) {
17773
17782
  if (!Number.isSafeInteger(value) || value <= 0 || value > 2147483647) throw new TypeError(`${label} must be a positive bounded integer`);
@@ -18473,6 +18482,7 @@ var ImageTransferError = class extends Error {
18473
18482
  this.code = code;
18474
18483
  this.name = "ImageTransferError";
18475
18484
  }
18485
+ code;
18476
18486
  };
18477
18487
  function imagePath(root, target) {
18478
18488
  for (const path of [root, target]) {
@@ -18564,6 +18574,10 @@ var Transfer = class {
18564
18574
  this.node = node2;
18565
18575
  this.options = options;
18566
18576
  }
18577
+ vm;
18578
+ name;
18579
+ node;
18580
+ options;
18567
18581
  async copy(operation, transfer, validate2) {
18568
18582
  for (let attempt = 1; ; attempt++) {
18569
18583
  await validate2();
@@ -19095,6 +19109,10 @@ var VmTransport = class {
19095
19109
  this.hostRoot = hostRoot;
19096
19110
  this.cuaDriver = cuaDriver;
19097
19111
  }
19112
+ transfer;
19113
+ guestRoot;
19114
+ hostRoot;
19115
+ cuaDriver;
19098
19116
  because = "";
19099
19117
  timeoutMs = 12e4;
19100
19118
  diagnostic = false;
@@ -19755,6 +19773,7 @@ __export(settings_exports, {
19755
19773
  // node_modules/typebox/build/guard/guard.mjs
19756
19774
  var guard_exports = {};
19757
19775
  __export(guard_exports, {
19776
+ CodePointCount: () => CodePointCount2,
19758
19777
  Counted: () => Counted,
19759
19778
  Entries: () => Entries,
19760
19779
  EntriesRegExp: () => EntriesRegExp,
@@ -19795,16 +19814,13 @@ __export(guard_exports, {
19795
19814
  Values: () => Values
19796
19815
  });
19797
19816
 
19798
- // node_modules/typebox/build/guard/string.mjs
19817
+ // node_modules/typebox/build/guard/unicode/unicode_segment.mjs
19799
19818
  function IsBetween(value, min, max) {
19800
19819
  return value >= min && value <= max;
19801
19820
  }
19802
19821
  function IsZeroWidthJoiner(value) {
19803
19822
  return value === 8205;
19804
19823
  }
19805
- function IsHighSurrogate(value) {
19806
- return IsBetween(value, 55296, 56319);
19807
- }
19808
19824
  function IsRegionalIndicator(value) {
19809
19825
  return IsBetween(value, 127462, 127487);
19810
19826
  }
@@ -19842,64 +19858,30 @@ function NextGraphemeClusterIndex(value, clusterStart) {
19842
19858
  }
19843
19859
  return clusterEnd;
19844
19860
  }
19845
- function IsGraphemeCodePoint(value) {
19846
- return value >= 768 && // above special range
19847
- (IsHighSurrogate(value) || IsCombiningMark(value) || IsVariationSelector(value) || IsZeroWidthJoiner(value));
19848
- }
19849
19861
  function GraphemeCount(value) {
19850
- let count = 0;
19851
- let index = 0;
19862
+ let count = 0, index = 0;
19852
19863
  while (index < value.length) {
19853
19864
  index = NextGraphemeClusterIndex(value, index);
19854
19865
  count++;
19855
19866
  }
19856
19867
  return count;
19857
19868
  }
19858
- function IsMinLengthSegmented(value, minLength) {
19859
- let count = 0;
19860
- let index = 0;
19869
+
19870
+ // node_modules/typebox/build/guard/unicode/unicode.mjs
19871
+ function CodePointCount(value) {
19872
+ let result2 = 0, index = 0, prev = 0;
19861
19873
  while (index < value.length) {
19862
- index = NextGraphemeClusterIndex(value, index);
19863
- if (++count >= minLength)
19864
- return true;
19874
+ const next = value.charCodeAt(index++) >> 10;
19875
+ result2 += +((prev << 8 | next) !== 13879);
19876
+ prev = next;
19865
19877
  }
19866
- return false;
19878
+ return result2;
19867
19879
  }
19868
- function IsMaxLengthSegmented(value, maxLength) {
19869
- let count = 0;
19870
- let index = 0;
19871
- while (index < value.length) {
19872
- index = NextGraphemeClusterIndex(value, index);
19873
- if (++count > maxLength)
19874
- return false;
19875
- }
19876
- return true;
19880
+ function IsMaxLength(value, maxLength) {
19881
+ return value.length <= maxLength || value.length <= maxLength << 1 && CodePointCount(value) <= maxLength;
19877
19882
  }
19878
19883
  function IsMinLength(value, minLength) {
19879
- if (minLength === 0)
19880
- return true;
19881
- if (value.length < minLength)
19882
- return false;
19883
- let index = 0;
19884
- while (true) {
19885
- if (IsGraphemeCodePoint(value.charCodeAt(index))) {
19886
- return IsMinLengthSegmented(value, minLength);
19887
- }
19888
- if (++index >= minLength)
19889
- return true;
19890
- }
19891
- }
19892
- function IsMaxLength(value, maxLength) {
19893
- if (value.length <= maxLength)
19894
- return true;
19895
- let index = 0;
19896
- while (true) {
19897
- if (IsGraphemeCodePoint(value.charCodeAt(index))) {
19898
- return IsMaxLengthSegmented(value, maxLength);
19899
- }
19900
- if (++index > maxLength)
19901
- return false;
19902
- }
19884
+ return value.length >= minLength << 1 || value.length >= minLength && CodePointCount(value) >= minLength;
19903
19885
  }
19904
19886
 
19905
19887
  // node_modules/typebox/build/guard/guard.mjs
@@ -19990,11 +19972,14 @@ function IsValueLike(value) {
19990
19972
  function GraphemeCount2(value) {
19991
19973
  return GraphemeCount(value);
19992
19974
  }
19993
- function IsMaxLength2(value, length) {
19994
- return IsMaxLength(value, length);
19975
+ function CodePointCount2(value) {
19976
+ return CodePointCount(value);
19977
+ }
19978
+ function IsMaxLength2(value, maxLength) {
19979
+ return IsMaxLength(value, maxLength);
19995
19980
  }
19996
- function IsMinLength2(value, length) {
19997
- return IsMinLength(value, length);
19981
+ function IsMinLength2(value, minLength) {
19982
+ return IsMinLength(value, minLength);
19998
19983
  }
19999
19984
  function Every(value, offset, callback) {
20000
19985
  return value.every((item, index) => index < offset || callback(item, index));
@@ -20146,6 +20131,7 @@ var guard_default = guard_exports;
20146
20131
  var settings = {
20147
20132
  immutableTypes: false,
20148
20133
  maxErrors: 8,
20134
+ maxParseErrors: 1,
20149
20135
  maxInstantiationCount: 128,
20150
20136
  useAcceleration: true,
20151
20137
  exactOptionalPropertyTypes: false,
@@ -20156,6 +20142,7 @@ var settings = {
20156
20142
  function Reset() {
20157
20143
  settings.immutableTypes = false;
20158
20144
  settings.maxErrors = 8;
20145
+ settings.maxParseErrors = 1;
20159
20146
  settings.maxInstantiationCount = 128;
20160
20147
  settings.useAcceleration = true;
20161
20148
  settings.exactOptionalPropertyTypes = false;
@@ -20575,23 +20562,22 @@ function InstanceKeys(value) {
20575
20562
  function IsIEEE754(value) {
20576
20563
  return typeof value === "number";
20577
20564
  }
20578
- var ByteMarker;
20579
- (function(ByteMarker2) {
20580
- ByteMarker2[ByteMarker2["Array"] = 0] = "Array";
20581
- ByteMarker2[ByteMarker2["BigInt"] = 1] = "BigInt";
20582
- ByteMarker2[ByteMarker2["Boolean"] = 2] = "Boolean";
20583
- ByteMarker2[ByteMarker2["Date"] = 3] = "Date";
20584
- ByteMarker2[ByteMarker2["Constructor"] = 4] = "Constructor";
20585
- ByteMarker2[ByteMarker2["Function"] = 5] = "Function";
20586
- ByteMarker2[ByteMarker2["Null"] = 6] = "Null";
20587
- ByteMarker2[ByteMarker2["Number"] = 7] = "Number";
20588
- ByteMarker2[ByteMarker2["Object"] = 8] = "Object";
20589
- ByteMarker2[ByteMarker2["RegExp"] = 9] = "RegExp";
20590
- ByteMarker2[ByteMarker2["String"] = 10] = "String";
20591
- ByteMarker2[ByteMarker2["Symbol"] = 11] = "Symbol";
20592
- ByteMarker2[ByteMarker2["TypeArray"] = 12] = "TypeArray";
20593
- ByteMarker2[ByteMarker2["Undefined"] = 13] = "Undefined";
20594
- })(ByteMarker || (ByteMarker = {}));
20565
+ var ByteMarker = {
20566
+ Array: 0,
20567
+ BigInt: 1,
20568
+ Boolean: 2,
20569
+ Date: 3,
20570
+ Constructor: 4,
20571
+ Function: 5,
20572
+ Null: 6,
20573
+ Number: 7,
20574
+ Object: 8,
20575
+ RegExp: 9,
20576
+ String: 10,
20577
+ Symbol: 11,
20578
+ TypeArray: 12,
20579
+ Undefined: 13
20580
+ };
20595
20581
  var Accumulator = BigInt("14695981039346656037");
20596
20582
  var [Prime, Size] = [BigInt("1099511628211"), BigInt(
20597
20583
  "18446744073709551616"
@@ -20758,7 +20744,7 @@ function en_US(error2) {
20758
20744
  return `must not have duplicate items`;
20759
20745
  case "~refine":
20760
20746
  return error2.params.message;
20761
- // deno-coverage-ignore - unreachable
20747
+ // deno-coverage-ignore-start - unreachable
20762
20748
  default:
20763
20749
  return "an unknown validation error occurred";
20764
20750
  }
@@ -22626,8 +22612,14 @@ function TryRestInferable(type) {
22626
22612
  function TryInferable(type) {
22627
22613
  return IsInfer(type) ? Inferrable(type.name, type.extends) : void 0;
22628
22614
  }
22629
- function TryInferResults(rest, right, result2 = []) {
22630
- return guard_exports.ShiftLeft(rest, (head, tail) => Match3(ExtendsLeft({}, head, right), () => TryInferResults(tail, right, [...result2, head]), () => void 0), () => result2);
22615
+ function TryInferResults(rest, right) {
22616
+ const result2 = [];
22617
+ for (const head of rest) {
22618
+ if (!IsExtendsTrueLike(ExtendsLeft({}, head, right)))
22619
+ return void 0;
22620
+ result2.push(head);
22621
+ }
22622
+ return result2;
22631
22623
  }
22632
22624
  function InferTupleResult(inferred, name, left, right) {
22633
22625
  const results = TryInferResults(left, right);
@@ -22671,9 +22663,18 @@ function ExtendsTupleToTuple(inferred, left, right) {
22671
22663
  const reversed = Reversed(instantiatedRight);
22672
22664
  return Elements(inferred, reversed, ApplyReverse(left, reversed), ApplyReverse(instantiatedRight, reversed));
22673
22665
  }
22666
+ function ExtendsTupleToArrayReduce(inferred, left, right) {
22667
+ for (const head of left) {
22668
+ const result2 = ExtendsLeft(inferred, head, right);
22669
+ if (!IsExtendsTrueLike(result2))
22670
+ return result2;
22671
+ inferred = result2.inferred;
22672
+ }
22673
+ return ExtendsTrue(inferred);
22674
+ }
22674
22675
  function ExtendsTupleToArray(inferred, left, right) {
22675
22676
  const inferrable = TryInferable(right);
22676
- return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable["name"], left, inferrable["type"]) : guard_exports.ShiftLeft(left, (head, tail) => Match3(ExtendsLeft(inferred, head, right), (inferred2) => ExtendsTupleToArray(inferred2, tail, right), () => ExtendsFalse()), () => ExtendsTrue(inferred));
22677
+ return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable["name"], left, inferrable["type"]) : ExtendsTupleToArrayReduce(inferred, left, right);
22677
22678
  }
22678
22679
  function ExtendsTuple(inferred, left, right) {
22679
22680
  const instantiatedLeft = InstantiateElements(inferred, State([], []), left);
@@ -24700,10 +24701,7 @@ function CheckRefine(_stack, _context, schema, value) {
24700
24701
  }
24701
24702
  function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) {
24702
24703
  return guard_exports.EveryAll(schema["~refine"], 0, (refinement, index) => {
24703
- return refinement.check(value) || context.AddError("~refine", schemaPath, instancePath, {
24704
- index,
24705
- message: refinement.error(value)
24706
- });
24704
+ return refinement.check(value) || context.AddError("~refine", schemaPath, instancePath, { index, message: refinement.error(value) });
24707
24705
  });
24708
24706
  }
24709
24707
 
@@ -24832,6 +24830,11 @@ function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema,
24832
24830
  return isAdditionalItems;
24833
24831
  }
24834
24832
 
24833
+ // node_modules/typebox/build/schema/engine/_pathing.mjs
24834
+ function EncodeFragment(fragment) {
24835
+ return fragment.replace(/~/g, "~0").replace(/\//g, "~1");
24836
+ }
24837
+
24835
24838
  // node_modules/typebox/build/schema/engine/_regexp.mjs
24836
24839
  function UnicodeRegExp(pattern) {
24837
24840
  return new RegExp(pattern, "u");
@@ -24862,7 +24865,7 @@ function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, sch
24862
24865
  const additionalProperties = [];
24863
24866
  const isAdditionalProperties = guard_exports.EveryAll(guard_exports.Keys(value), 0, (key, _index) => {
24864
24867
  const nextSchemaPath = `${schemaPath}/additionalProperties`;
24865
- const nextInstancePath = `${instancePath}/${key}`;
24868
+ const nextInstancePath = `${instancePath}/${EncodeFragment(key)}`;
24866
24869
  const isAdditionalProperty = regexp.test(key) || ErrorSchemaPushStack(stack, context, nextSchemaPath, nextInstancePath, schema.additionalProperties, value[key]) && context.AddKey(key);
24867
24870
  if (!isAdditionalProperty)
24868
24871
  additionalProperties.push(key);
@@ -24961,7 +24964,7 @@ function CheckDependencies(stack, context, schema, value) {
24961
24964
  function ErrorDependencies(stack, context, schemaPath, instancePath, schema, value) {
24962
24965
  const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
24963
24966
  const isEvery = guard_exports.EveryAll(guard_exports.Entries(schema.dependencies), 0, ([key, schema2]) => {
24964
- const nextSchemaPath = `${schemaPath}/dependencies/${key}`;
24967
+ const nextSchemaPath = `${schemaPath}/dependencies/${EncodeFragment(key)}`;
24965
24968
  return !guard_exports.HasPropertyKey(value, key) || (guard_exports.IsArray(schema2) ? schema2.every((dependency) => guard_exports.HasPropertyKey(value, dependency) || context.AddError("dependencies", schemaPath, instancePath, { property: key, dependencies: schema2 })) : ErrorSchema(stack, context, nextSchemaPath, instancePath, schema2, value));
24966
24969
  });
24967
24970
  return isLength || isEvery;
@@ -24994,7 +24997,7 @@ function CheckDependentSchemas(stack, context, schema, value) {
24994
24997
  function ErrorDependentSchemas(stack, context, schemaPath, instancePath, schema, value) {
24995
24998
  const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
24996
24999
  const isEvery = guard_exports.EveryAll(guard_exports.Entries(schema.dependentSchemas), 0, ([key, schema2]) => {
24997
- const nextSchemaPath = `${schemaPath}/dependentSchemas/${key}`;
25000
+ const nextSchemaPath = `${schemaPath}/dependentSchemas/${EncodeFragment(key)}`;
24998
25001
  return !guard_exports.HasPropertyKey(value, key) || ErrorSchema(stack, context, nextSchemaPath, instancePath, schema2, value);
24999
25002
  });
25000
25003
  return isLength || isEvery;
@@ -25017,80 +25020,68 @@ __export(pointer_exports, {
25017
25020
  Indices: () => Indices,
25018
25021
  Set: () => Set3
25019
25022
  });
25020
- function AssertNotRoot(indices) {
25021
- if (indices.length === 0)
25022
- throw Error("Cannot set root");
25023
- }
25024
- function AssertCanSet(value) {
25025
- if (!guard_exports.IsObject(value))
25026
- throw Error("Cannot set value");
25027
- }
25028
- function AssertIndex(index) {
25029
- if (guard_exports.IsUnsafePropertyKey(index))
25030
- throw Error("Pointer contains unsafe property key");
25031
- }
25032
- function AssertIndices(indices) {
25033
- for (const index of indices)
25034
- AssertIndex(index);
25035
- }
25036
- function IsNumericIndex(index) {
25037
- return /^(0|[1-9]\d*)$/.test(index);
25023
+ function Throw(message3) {
25024
+ throw Error(message3);
25038
25025
  }
25039
- function TakeIndexRight(indices) {
25040
- return [
25041
- indices.slice(0, indices.length - 1),
25042
- indices.slice(indices.length - 1)[0]
25043
- ];
25044
- }
25045
- function HasIndex(index, value) {
25046
- return guard_exports.IsObject(value) && guard_exports.HasPropertyKey(value, index);
25026
+ function ThrowUnsafePropertyKey() {
25027
+ Throw("Pointer contains unsafe property key");
25047
25028
  }
25048
- function GetIndex(index, value) {
25049
- return guard_exports.IsObject(value) && !guard_exports.IsUnsafePropertyKey(index) ? value[index] : void 0;
25050
- }
25051
- function GetIndices(indices, value) {
25052
- return indices.reduce((value2, index) => GetIndex(index, value2), value);
25029
+ function ThrowCannotSetRoot() {
25030
+ Throw("Cannot set value");
25053
25031
  }
25054
25032
  function Indices(pointer) {
25055
- if (guard_exports.IsEqual(pointer.length, 0))
25056
- return [];
25057
25033
  const indices = pointer.split("/").map((index) => index.replace(/~1/g, "/").replace(/~0/g, "~"));
25058
- return indices.length > 0 && indices[0] === "" ? indices.slice(1) : indices;
25034
+ return indices[0] === "" ? indices.slice(1) : indices;
25059
25035
  }
25060
25036
  function Has(value, pointer) {
25061
25037
  let current = value;
25062
- return Indices(pointer).every((index) => {
25063
- if (!HasIndex(index, current))
25038
+ for (const index of Indices(pointer)) {
25039
+ if (!guard_exports.IsObject(current) || !guard_exports.HasPropertyKey(current, index))
25064
25040
  return false;
25065
25041
  current = current[index];
25066
- return true;
25067
- });
25042
+ }
25043
+ return true;
25068
25044
  }
25069
25045
  function Get3(value, pointer) {
25070
- const indices = Indices(pointer);
25071
- return GetIndices(indices, value);
25046
+ let current = value;
25047
+ for (const index of Indices(pointer)) {
25048
+ if (!guard_exports.IsObject(current) || guard_exports.IsUnsafePropertyKey(index))
25049
+ return void 0;
25050
+ current = current[index];
25051
+ }
25052
+ return current;
25053
+ }
25054
+ function Parent(value, indices, last) {
25055
+ let current = value;
25056
+ for (const index of indices) {
25057
+ if (guard_exports.IsUnsafePropertyKey(index))
25058
+ ThrowUnsafePropertyKey();
25059
+ current = guard_exports.IsObject(current) ? current[index] : void 0;
25060
+ }
25061
+ if (guard_exports.IsUnsafePropertyKey(last))
25062
+ ThrowUnsafePropertyKey();
25063
+ if (!guard_exports.IsObject(current))
25064
+ ThrowCannotSetRoot();
25065
+ return current;
25072
25066
  }
25073
25067
  function Set3(value, pointer, next) {
25074
25068
  const indices = Indices(pointer);
25075
- AssertNotRoot(indices);
25076
- AssertIndices(indices);
25077
- const [head, index] = TakeIndexRight(indices);
25078
- const parent = GetIndices(head, value);
25079
- AssertCanSet(parent);
25080
- parent[index] = next;
25069
+ const last = indices.pop();
25070
+ if (guard_exports.IsUndefined(last))
25071
+ ThrowCannotSetRoot();
25072
+ Parent(value, indices, last)[last] = next;
25081
25073
  return value;
25082
25074
  }
25083
25075
  function Delete(value, pointer) {
25084
25076
  const indices = Indices(pointer);
25085
- AssertNotRoot(indices);
25086
- AssertIndices(indices);
25087
- const [head, index] = TakeIndexRight(indices);
25088
- const parent = GetIndices(head, value);
25089
- AssertCanSet(parent);
25090
- if (guard_exports.IsArray(parent) && IsNumericIndex(index)) {
25091
- parent.splice(+index, 1);
25077
+ const last = indices.pop();
25078
+ if (guard_exports.IsUndefined(last))
25079
+ ThrowCannotSetRoot();
25080
+ const parent = Parent(value, indices, last);
25081
+ if (guard_exports.IsArray(parent) && /^(0|[1-9]\d*)$/.test(last)) {
25082
+ parent.splice(Number(last), 1);
25092
25083
  } else {
25093
- delete parent[index];
25084
+ delete parent[last];
25094
25085
  }
25095
25086
  return value;
25096
25087
  }
@@ -25332,10 +25323,10 @@ function CheckDynamicRef(stack, context, schema, value) {
25332
25323
  const nextStack = target ? { ...stack, pendingResource: true } : stack;
25333
25324
  return IsSchema2(target) && CheckSchema(nextStack, context, target, value);
25334
25325
  }
25335
- function ErrorDynamicRef(stack, context, _schemaPath, instancePath, schema, value) {
25326
+ function ErrorDynamicRef(stack, context, schemaPath, instancePath, schema, value) {
25336
25327
  const target = resolve_exports.DynamicRef(stack, schema) ?? false;
25337
25328
  const nextStack = target ? { ...stack, pendingResource: true } : stack;
25338
- return IsSchema2(target) && ErrorSchema(nextStack, context, "#", instancePath, target, value);
25329
+ return IsSchema2(target) && ErrorSchema(nextStack, context, schemaPath, instancePath, target, value);
25339
25330
  }
25340
25331
 
25341
25332
  // node_modules/typebox/build/schema/engine/enum.mjs
@@ -25828,19 +25819,14 @@ function IsIriReference(value) {
25828
25819
  }
25829
25820
 
25830
25821
  // node_modules/typebox/build/format/iri.mjs
25831
- var IpvFutureMatchMaxLength = 2048;
25832
- var IpvFutureMatch = /\[[vV][0-9a-fA-F]+\.[^\]]+\]/;
25833
25822
  var InvalidIriChars2 = /[\x00-\x20<>\^`{|}\\]/;
25834
25823
  var InvalidPercentEncoding = /%(?![0-9a-fA-F]{2})/;
25835
- function NarrowIpvFuture(value) {
25836
- return value.length < IpvFutureMatchMaxLength ? value.replace(IpvFutureMatch, "[::1]") : value;
25837
- }
25838
25824
  function IsIri(value) {
25839
25825
  if (InvalidIriChars2.test(value))
25840
25826
  return false;
25841
25827
  if (InvalidPercentEncoding.test(value))
25842
25828
  return false;
25843
- return URL.canParse(NarrowIpvFuture(value));
25829
+ return URL.canParse(value);
25844
25830
  }
25845
25831
 
25846
25832
  // node_modules/typebox/build/format/json_pointer_uri_fragment.mjs
@@ -26163,10 +26149,10 @@ function CheckPatternProperties(stack, context, schema, value) {
26163
26149
  }
26164
26150
  function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value) {
26165
26151
  return guard_exports.EveryAll(guard_exports.Entries(schema.patternProperties), 0, ([pattern, schema2]) => {
26166
- const nextSchemaPath = `${schemaPath}/patternProperties/${pattern}`;
26152
+ const nextSchemaPath = `${schemaPath}/patternProperties/${EncodeFragment(pattern)}`;
26167
26153
  const regexp = UnicodeRegExp(pattern);
26168
26154
  return guard_exports.EveryAll(guard_exports.Entries(value), 0, ([key, value2]) => {
26169
- const nextInstancePath = `${instancePath}/${key}`;
26155
+ const nextInstancePath = `${instancePath}/${EncodeFragment(key)}`;
26170
26156
  const notKey = !regexp.test(key);
26171
26157
  return notKey || ErrorSchemaPushStack(stack, context, nextSchemaPath, nextInstancePath, schema2, value2) && context.AddKey(key);
26172
26158
  });
@@ -26207,8 +26193,8 @@ function CheckProperties(stack, context, schema, value) {
26207
26193
  function ErrorProperties(stack, context, schemaPath, instancePath, schema, value) {
26208
26194
  const required2 = IsRequired(schema) ? schema.required : [];
26209
26195
  const isProperties = guard_exports.EveryAll(guard_exports.Entries(schema.properties), 0, ([key, schema2]) => {
26210
- const nextSchemaPath = `${schemaPath}/properties/${key}`;
26211
- const nextInstancePath = `${instancePath}/${key}`;
26196
+ const nextSchemaPath = `${schemaPath}/properties/${EncodeFragment(key)}`;
26197
+ const nextInstancePath = `${instancePath}/${EncodeFragment(key)}`;
26212
26198
  const isProperty = () => !guard_exports.HasPropertyKey(value, key) || ErrorSchemaPushStack(stack, context, nextSchemaPath, nextInstancePath, schema2, value[key]) && context.AddKey(key);
26213
26199
  return IsExactOptional(required2, key) ? isProperty() : InexactOptionalCheck(value, key) || isProperty();
26214
26200
  });
@@ -26222,7 +26208,7 @@ function CheckPropertyNames(stack, context, schema, value) {
26222
26208
  function ErrorPropertyNames(stack, context, schemaPath, instancePath, schema, value) {
26223
26209
  const propertyNames = [];
26224
26210
  const isPropertyNames = guard_exports.EveryAll(guard_exports.Keys(value), 0, (key, _index) => {
26225
- const nextInstancePath = `${instancePath}/${key}`;
26211
+ const nextInstancePath = `${instancePath}/${EncodeFragment(key)}`;
26226
26212
  const nextSchemaPath = `${schemaPath}/propertyNames`;
26227
26213
  const isPropertyName = ErrorSchema(stack, context, nextSchemaPath, nextInstancePath, schema.propertyNames, key);
26228
26214
  if (!isPropertyName)
@@ -26238,10 +26224,10 @@ function CheckRecursiveRef(stack, context, schema, value) {
26238
26224
  const nextStack = target ? { ...stack, pendingResource: true } : stack;
26239
26225
  return IsSchema2(target) && CheckSchema(nextStack, context, target, value);
26240
26226
  }
26241
- function ErrorRecursiveRef(stack, context, _schemaPath, instancePath, schema, value) {
26227
+ function ErrorRecursiveRef(stack, context, schemaPath, instancePath, schema, value) {
26242
26228
  const target = resolve_exports.RecursiveRef(stack, schema) ?? false;
26243
26229
  const nextStack = target ? { ...stack, pendingResource: true } : stack;
26244
- return IsSchema2(target) && ErrorSchema(nextStack, context, "#", instancePath, target, value);
26230
+ return IsSchema2(target) && ErrorSchema(nextStack, context, schemaPath, instancePath, target, value);
26245
26231
  }
26246
26232
 
26247
26233
  // node_modules/typebox/build/schema/engine/ref.mjs
@@ -26254,11 +26240,11 @@ function CheckRef(stack, context, schema, value) {
26254
26240
  context.Merge([nextContext]);
26255
26241
  return valid;
26256
26242
  }
26257
- function ErrorRef(stack, context, _schemaPath, instancePath, schema, value) {
26243
+ function ErrorRef(stack, context, schemaPath, instancePath, schema, value) {
26258
26244
  const result2 = resolve_exports.Ref(stack, schema);
26259
26245
  const target = result2.schema ?? false;
26260
26246
  const nextContext = new ErrorContext();
26261
- const valid = IsSchema2(target) && ErrorSchema(result2.stack, nextContext, "#", instancePath, target, value);
26247
+ const valid = IsSchema2(target) && ErrorSchema(result2.stack, nextContext, schemaPath, instancePath, target, value);
26262
26248
  if (valid)
26263
26249
  context.Merge([nextContext]);
26264
26250
  if (!valid)
@@ -26374,7 +26360,7 @@ function CheckSchemaPushStack(stack, context, schema, value) {
26374
26360
  }
26375
26361
  function CheckSchema(stack, context, schema, value) {
26376
26362
  const current = NextStack(stack, schema);
26377
- const result2 = IsSchemaBoolean(schema) ? CheckSchemaBoolean(current, context, schema, value) : (!IsType(schema) || CheckType(current, context, schema, value)) && (!(guard_exports.IsObject(value) && !guard_exports.IsArray(value)) || (!IsRequired(schema) || CheckRequired(current, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(current, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(current, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(current, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(current, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(current, context, schema, value)) && (!IsProperties(schema) || CheckProperties(current, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(current, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(current, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(current, context, schema, value))) && (!guard_exports.IsArray(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(current, context, schema, value)) && (!IsContains(schema) || CheckContains(current, context, schema, value)) && (!IsItems(schema) || CheckItems(current, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(current, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(current, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(current, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(current, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(current, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(current, context, schema, value))) && (!guard_exports.IsString(value) || (!IsMaxLength3(schema) || CheckMaxLength(current, context, schema, value)) && (!IsMinLength3(schema) || CheckMinLength(current, context, schema, value)) && (!IsFormat(schema) || CheckFormat(current, context, schema, value)) && (!IsPattern(schema) || CheckPattern(current, context, schema, value))) && (!(guard_exports.IsNumber(value) || guard_exports.IsBigInt(value)) || (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(current, context, schema, value)) && (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(current, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(current, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(current, context, schema, value)) && (!IsMultipleOf2(schema) || CheckMultipleOf(current, context, schema, value))) && (!IsRef2(schema) || CheckRef(current, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(current, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(current, context, schema, value)) && (!IsConst(schema) || CheckConst(current, context, schema, value)) && (!IsEnum2(schema) || CheckEnum(current, context, schema, value)) && (!IsIf(schema) || CheckIf(current, context, schema, value)) && (!IsNot(schema) || CheckNot(current, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(current, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(current, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(current, context, schema, value)) && (!IsUnevaluatedItems(schema) || (!guard_exports.IsArray(value) || CheckUnevaluatedItems(current, context, schema, value))) && (!IsUnevaluatedProperties(schema) || (!guard_exports.IsObject(value) || CheckUnevaluatedProperties(current, context, schema, value))) && (!IsRefine2(schema) || CheckRefine(current, context, schema, value));
26363
+ const result2 = IsSchemaBoolean(schema) ? CheckSchemaBoolean(current, context, schema, value) : (!IsType(schema) || CheckType(current, context, schema, value)) && (!(guard_exports.IsObject(value) && !guard_exports.IsArray(value)) || (!IsRequired(schema) || CheckRequired(current, context, schema, value)) && (!IsAdditionalProperties(schema) || CheckAdditionalProperties(current, context, schema, value)) && (!IsDependencies(schema) || CheckDependencies(current, context, schema, value)) && (!IsDependentRequired(schema) || CheckDependentRequired(current, context, schema, value)) && (!IsDependentSchemas(schema) || CheckDependentSchemas(current, context, schema, value)) && (!IsPatternProperties(schema) || CheckPatternProperties(current, context, schema, value)) && (!IsProperties(schema) || CheckProperties(current, context, schema, value)) && (!IsPropertyNames(schema) || CheckPropertyNames(current, context, schema, value)) && (!IsMinProperties(schema) || CheckMinProperties(current, context, schema, value)) && (!IsMaxProperties(schema) || CheckMaxProperties(current, context, schema, value))) && (!guard_exports.IsArray(value) || (!IsAdditionalItems(schema) || CheckAdditionalItems(current, context, schema, value)) && (!IsContains(schema) || CheckContains(current, context, schema, value)) && (!IsItems(schema) || CheckItems(current, context, schema, value)) && (!IsMinContains(schema) || CheckMinContains(current, context, schema, value)) && (!IsMaxContains(schema) || CheckMaxContains(current, context, schema, value)) && (!IsMinItems(schema) || CheckMinItems(current, context, schema, value)) && (!IsMaxItems(schema) || CheckMaxItems(current, context, schema, value)) && (!IsPrefixItems(schema) || CheckPrefixItems(current, context, schema, value)) && (!IsUniqueItems(schema) || CheckUniqueItems(current, context, schema, value))) && (!guard_exports.IsString(value) || (!IsMinLength3(schema) || CheckMinLength(current, context, schema, value)) && (!IsMaxLength3(schema) || CheckMaxLength(current, context, schema, value)) && (!IsFormat(schema) || CheckFormat(current, context, schema, value)) && (!IsPattern(schema) || CheckPattern(current, context, schema, value))) && (!(guard_exports.IsNumber(value) || guard_exports.IsBigInt(value)) || (!IsExclusiveMinimum(schema) || CheckExclusiveMinimum(current, context, schema, value)) && (!IsExclusiveMaximum(schema) || CheckExclusiveMaximum(current, context, schema, value)) && (!IsMinimum(schema) || CheckMinimum(current, context, schema, value)) && (!IsMaximum(schema) || CheckMaximum(current, context, schema, value)) && (!IsMultipleOf2(schema) || CheckMultipleOf(current, context, schema, value))) && (!IsRef2(schema) || CheckRef(current, context, schema, value)) && (!IsRecursiveRef(schema) || CheckRecursiveRef(current, context, schema, value)) && (!IsDynamicRef(schema) || CheckDynamicRef(current, context, schema, value)) && (!IsConst(schema) || CheckConst(current, context, schema, value)) && (!IsEnum2(schema) || CheckEnum(current, context, schema, value)) && (!IsIf(schema) || CheckIf(current, context, schema, value)) && (!IsNot(schema) || CheckNot(current, context, schema, value)) && (!IsAllOf(schema) || CheckAllOf(current, context, schema, value)) && (!IsAnyOf(schema) || CheckAnyOf(current, context, schema, value)) && (!IsOneOf(schema) || CheckOneOf(current, context, schema, value)) && (!IsUnevaluatedItems(schema) || (!guard_exports.IsArray(value) || CheckUnevaluatedItems(current, context, schema, value))) && (!IsUnevaluatedProperties(schema) || (!guard_exports.IsObject(value) || CheckUnevaluatedProperties(current, context, schema, value))) && (!IsRefine2(schema) || CheckRefine(current, context, schema, value));
26378
26364
  return result2;
26379
26365
  }
26380
26366
  function ErrorSchemaPushStack(stack, context, schemaPath, instancePath, schema, value) {
@@ -26384,7 +26370,7 @@ function ErrorSchema(stack, context, schemaPath, instancePath, schema, value) {
26384
26370
  if (context.AtCapacity())
26385
26371
  return false;
26386
26372
  const current = NextStack(stack, schema);
26387
- const result2 = IsSchemaBoolean(schema) ? ErrorSchemaBoolean(current, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(current, context, schemaPath, instancePath, schema, value)) & +(!(guard_exports.IsObject(value) && !guard_exports.IsArray(value)) || !!(+(!IsRequired(schema) || ErrorRequired(current, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(current, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(current, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(current, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(current, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(current, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(current, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(current, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(current, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(current, context, schemaPath, instancePath, schema, value)))) & +(!guard_exports.IsArray(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(current, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(current, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(current, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(current, context, schemaPath, instancePath, schema, value)))) & +(!guard_exports.IsString(value) || !!(+(!IsMaxLength3(schema) || ErrorMaxLength(current, context, schemaPath, instancePath, schema, value)) & +(!IsMinLength3(schema) || ErrorMinLength(current, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(current, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(current, context, schemaPath, instancePath, schema, value)))) & +(!(guard_exports.IsNumber(value) || guard_exports.IsBigInt(value)) || !!(+(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(current, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(current, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(current, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(current, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf2(schema) || ErrorMultipleOf(current, context, schemaPath, instancePath, schema, value)))) & +(!IsRef2(schema) || ErrorRef(current, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(current, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(current, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(current, context, schemaPath, instancePath, schema, value)) & +(!IsEnum2(schema) || ErrorEnum(current, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(current, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(current, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(current, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(current, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(current, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || (!guard_exports.IsArray(value) || ErrorUnevaluatedItems(current, context, schemaPath, instancePath, schema, value))) & +(!IsUnevaluatedProperties(schema) || (!guard_exports.IsObject(value) || ErrorUnevaluatedProperties(current, context, schemaPath, instancePath, schema, value)))) && (!IsRefine2(schema) || ErrorRefine(current, context, schemaPath, instancePath, schema, value));
26373
+ const result2 = IsSchemaBoolean(schema) ? ErrorSchemaBoolean(current, context, schemaPath, instancePath, schema, value) : !!(+(!IsType(schema) || ErrorType(current, context, schemaPath, instancePath, schema, value)) & +(!(guard_exports.IsObject(value) && !guard_exports.IsArray(value)) || !!(+(!IsRequired(schema) || ErrorRequired(current, context, schemaPath, instancePath, schema, value)) & +(!IsAdditionalProperties(schema) || ErrorAdditionalProperties(current, context, schemaPath, instancePath, schema, value)) & +(!IsDependencies(schema) || ErrorDependencies(current, context, schemaPath, instancePath, schema, value)) & +(!IsDependentRequired(schema) || ErrorDependentRequired(current, context, schemaPath, instancePath, schema, value)) & +(!IsDependentSchemas(schema) || ErrorDependentSchemas(current, context, schemaPath, instancePath, schema, value)) & +(!IsPatternProperties(schema) || ErrorPatternProperties(current, context, schemaPath, instancePath, schema, value)) & +(!IsProperties(schema) || ErrorProperties(current, context, schemaPath, instancePath, schema, value)) & +(!IsPropertyNames(schema) || ErrorPropertyNames(current, context, schemaPath, instancePath, schema, value)) & +(!IsMinProperties(schema) || ErrorMinProperties(current, context, schemaPath, instancePath, schema, value)) & +(!IsMaxProperties(schema) || ErrorMaxProperties(current, context, schemaPath, instancePath, schema, value)))) & +(!guard_exports.IsArray(value) || !!(+(!IsAdditionalItems(schema) || ErrorAdditionalItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsContains(schema) || ErrorContains(current, context, schemaPath, instancePath, schema, value)) & +(!IsItems(schema) || ErrorItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsMinContains(schema) || ErrorMinContains(current, context, schemaPath, instancePath, schema, value)) & +(!IsMaxContains(schema) || ErrorMaxContains(current, context, schemaPath, instancePath, schema, value)) & +(!IsMinItems(schema) || ErrorMinItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsMaxItems(schema) || ErrorMaxItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsPrefixItems(schema) || ErrorPrefixItems(current, context, schemaPath, instancePath, schema, value)) & +(!IsUniqueItems(schema) || ErrorUniqueItems(current, context, schemaPath, instancePath, schema, value)))) & +(!guard_exports.IsString(value) || !!(+(!IsMinLength3(schema) || ErrorMinLength(current, context, schemaPath, instancePath, schema, value)) & +(!IsMaxLength3(schema) || ErrorMaxLength(current, context, schemaPath, instancePath, schema, value)) & +(!IsFormat(schema) || ErrorFormat(current, context, schemaPath, instancePath, schema, value)) & +(!IsPattern(schema) || ErrorPattern(current, context, schemaPath, instancePath, schema, value)))) & +(!(guard_exports.IsNumber(value) || guard_exports.IsBigInt(value)) || !!(+(!IsExclusiveMinimum(schema) || ErrorExclusiveMinimum(current, context, schemaPath, instancePath, schema, value)) & +(!IsExclusiveMaximum(schema) || ErrorExclusiveMaximum(current, context, schemaPath, instancePath, schema, value)) & +(!IsMinimum(schema) || ErrorMinimum(current, context, schemaPath, instancePath, schema, value)) & +(!IsMaximum(schema) || ErrorMaximum(current, context, schemaPath, instancePath, schema, value)) & +(!IsMultipleOf2(schema) || ErrorMultipleOf(current, context, schemaPath, instancePath, schema, value)))) & +(!IsRef2(schema) || ErrorRef(current, context, schemaPath, instancePath, schema, value)) & +(!IsRecursiveRef(schema) || ErrorRecursiveRef(current, context, schemaPath, instancePath, schema, value)) & +(!IsDynamicRef(schema) || ErrorDynamicRef(current, context, schemaPath, instancePath, schema, value)) & +(!IsConst(schema) || ErrorConst(current, context, schemaPath, instancePath, schema, value)) & +(!IsEnum2(schema) || ErrorEnum(current, context, schemaPath, instancePath, schema, value)) & +(!IsIf(schema) || ErrorIf(current, context, schemaPath, instancePath, schema, value)) & +(!IsNot(schema) || ErrorNot(current, context, schemaPath, instancePath, schema, value)) & +(!IsAllOf(schema) || ErrorAllOf(current, context, schemaPath, instancePath, schema, value)) & +(!IsAnyOf(schema) || ErrorAnyOf(current, context, schemaPath, instancePath, schema, value)) & +(!IsOneOf(schema) || ErrorOneOf(current, context, schemaPath, instancePath, schema, value)) & +(!IsUnevaluatedItems(schema) || (!guard_exports.IsArray(value) || ErrorUnevaluatedItems(current, context, schemaPath, instancePath, schema, value))) & +(!IsUnevaluatedProperties(schema) || (!guard_exports.IsObject(value) || ErrorUnevaluatedProperties(current, context, schemaPath, instancePath, schema, value)))) && (!IsRefine2(schema) || ErrorRefine(current, context, schemaPath, instancePath, schema, value));
26388
26374
  return result2;
26389
26375
  }
26390
26376
 
@@ -26403,6 +26389,18 @@ function Errors(...args) {
26403
26389
  return [result2, localized];
26404
26390
  }
26405
26391
 
26392
+ // node_modules/typebox/build/system/settings/internal.mjs
26393
+ var TempMaxErrors = 0;
26394
+ function EnableParseErrors() {
26395
+ const settings2 = Get();
26396
+ TempMaxErrors = settings2.maxErrors;
26397
+ settings2.maxErrors = settings2.maxParseErrors;
26398
+ }
26399
+ function DisableParseErrors() {
26400
+ const settings2 = Get();
26401
+ settings2.maxErrors = TempMaxErrors;
26402
+ }
26403
+
26406
26404
  // node_modules/typebox/build/schema/check.mjs
26407
26405
  function Check(...args) {
26408
26406
  const [context, schema, value] = arguments_exports.Match(args, {
@@ -26482,7 +26480,7 @@ function FromObject10(context, type, value) {
26482
26480
  return value;
26483
26481
  const additionalProperties = GetAdditionalProperties(type);
26484
26482
  for (const key of guard_exports.Keys(value)) {
26485
- if (guard_exports.HasPropertyKey(type.properties, key)) {
26483
+ if (guard_exports.HasPropertyKey(type.properties, key) && IsSchema(type.properties[key])) {
26486
26484
  value[key] = FromType19(context, type.properties[key], value[key]);
26487
26485
  continue;
26488
26486
  }
@@ -26574,6 +26572,9 @@ function FromProperties4(properties) {
26574
26572
  result2[key] = FromType20(properties[key]);
26575
26573
  return result2;
26576
26574
  }
26575
+ function FromRecordKey(type) {
26576
+ return String2({ pattern: RecordPattern(type) });
26577
+ }
26577
26578
  function FromPriorityTypes(types) {
26578
26579
  return FromTypes6(Priority(types));
26579
26580
  }
@@ -26581,7 +26582,7 @@ function FromTypes6(types) {
26581
26582
  return types.map((type) => FromType20(type));
26582
26583
  }
26583
26584
  function FromType20(type) {
26584
- const next = IsArray2(type) ? _Array_(FromType20(type.items), ArrayOptions(type)) : IsIntersect(type) ? Intersect(FromTypes6(type.allOf)) : IsUnion(type) ? Union(FromPriorityTypes(type.anyOf)) : IsObject2(type) ? _Object_(FromProperties4(type.properties)) : IsRecord(type) ? Record(RecordKey(type), FromType20(RecordValue(type))) : IsTuple(type) ? Tuple(FromTypes6(type.items)) : type;
26585
+ const next = IsArray2(type) ? _Array_(FromType20(type.items), ArrayOptions(type)) : IsIntersect(type) ? Intersect(FromTypes6(type.allOf)) : IsUnion(type) ? Union(FromPriorityTypes(type.anyOf)) : IsObject2(type) ? _Object_(FromProperties4(type.properties)) : IsRecord(type) ? Record(FromRecordKey(type), FromType20(RecordValue(type))) : IsTuple(type) ? Tuple(FromTypes6(type.items)) : type;
26585
26586
  return Modifiers(type, next);
26586
26587
  }
26587
26588
  function UnionPrioritySort(type) {
@@ -27294,8 +27295,11 @@ var ParseError = class extends AssertError {
27294
27295
  }
27295
27296
  };
27296
27297
  function Assert3(context, type, value) {
27298
+ EnableParseErrors();
27299
+ const errors = Errors2(context, type, value);
27300
+ DisableParseErrors();
27297
27301
  if (!Check2(context, type, value))
27298
- throw new ParseError(value, Errors2(context, type, value));
27302
+ throw new ParseError(value, errors);
27299
27303
  return value;
27300
27304
  }
27301
27305
  var Parser = Pipeline([
@@ -28035,6 +28039,7 @@ var ImageError = class extends Error {
28035
28039
  super(message3);
28036
28040
  this.code = code;
28037
28041
  }
28042
+ code;
28038
28043
  };
28039
28044
  function fail(code, message3) {
28040
28045
  throw new ImageError(code, message3);
@@ -28162,6 +28167,7 @@ var ImageStore = class {
28162
28167
  constructor(options) {
28163
28168
  this.options = options;
28164
28169
  }
28170
+ options;
28165
28171
  get binding() {
28166
28172
  const o = this.options;
28167
28173
  return hash(JSON.stringify([o.owner, o.enclosure, o.backend]));
@@ -28489,6 +28495,7 @@ var DownloadQueue = class {
28489
28495
  constructor(options) {
28490
28496
  this.options = options;
28491
28497
  }
28498
+ options;
28492
28499
  state = "open";
28493
28500
  /** Set after a transient failure: the worker takes nothing until a relay operation reaches the guest (AD-4). */
28494
28501
  paused = false;
@@ -28736,6 +28743,8 @@ var CAPTURE_SOFTWARE = ["bundle:com.trycua.driver", "dpkg:cua-driver"];
28736
28743
  var DOWNLOAD_BOUND = 64;
28737
28744
  var DOWNLOAD_RETRY_DELAYS_MS = [1e3, 3e3];
28738
28745
  var CAPACITY_RETRY_MS = 15e3;
28746
+ var CAPTURE_READY_WAIT_MS = 12e4;
28747
+ var CAPTURE_READY_RETRY_MS = 2e3;
28739
28748
  var TASK = /^[a-z0-9][a-z0-9-]{0,35}$/;
28740
28749
  var GUEST_NAME = /^[a-z0-9][a-z0-9-]{0,47}$/;
28741
28750
  var downloadKey = (target) => `${target.sessionId}/${target.executionId}`;
@@ -28771,6 +28780,7 @@ var RelayManager = class {
28771
28780
  pull: (name, remote_path, local_path, options2) => this.vm.pull(name, { remote_path, local_path }, options2)
28772
28781
  };
28773
28782
  }
28783
+ options;
28774
28784
  vm;
28775
28785
  environment;
28776
28786
  tartHome;
@@ -29214,6 +29224,8 @@ var Guest = class {
29214
29224
  this.restored = !record3;
29215
29225
  this.downloads = new DownloadQueue({ bound: m.options.downloadBound ?? DOWNLOAD_BOUND, record: (job) => this.recordDownload(job) });
29216
29226
  }
29227
+ m;
29228
+ name;
29217
29229
  /** `guests/<name>` in the session's state directory: the guest's `lease.json` and `owner.lock`. */
29218
29230
  dir;
29219
29231
  enclosure;
@@ -29344,6 +29356,8 @@ var Guest = class {
29344
29356
  checks.push({ name, language: language2, required: required2, ready: false, diagnostic: String(error2) });
29345
29357
  }
29346
29358
  }
29359
+ const tsx = checks[1], nodeVersion = /^v(\d+)\.(\d+)/.exec(String(checks[0].stdout ?? ""));
29360
+ if (!tsx.ready && nodeVersion && (Number(nodeVersion[1]) > 22 || Number(nodeVersion[1]) === 22 && Number(nodeVersion[2]) >= 6)) Object.assign(tsx, { ready: true, runsWith: "Node.js type stripping" });
29347
29361
  let software;
29348
29362
  try {
29349
29363
  const catalog = await this.m.vm.applications({ timeoutMs: 1e4 });
@@ -29687,8 +29701,10 @@ VM state: ${JSON.stringify(this.status())}`, { cause: error2 });
29687
29701
  } catch (error2) {
29688
29702
  throw new Error(`relay_stage needs Node.js in the guest to run the relay's own code, and \`${node2} --version\` failed: ${error2 instanceof Error ? error2.message : String(error2)}. The relay pushes no runtime, so an image without Node.js cannot be staged; choose an image that lists Node.js (relay_search), or name the guest's Node.js with nodePath.`, { cause: error2 });
29689
29703
  }
29704
+ const cuaDriver = input.cuaDriver ?? e.cuaDriver ?? (e.lease.image_kind === "macos" ? "/Applications/CuaDriver.app/Contents/MacOS/cua-driver" : "cua-driver");
29705
+ if (e.capture !== false) await this.awaitCapture(transfer, e, node2, cuaDriver, signal);
29690
29706
  e.node = node2;
29691
- e.cuaDriver = input.cuaDriver ?? e.cuaDriver ?? (e.lease.image_kind === "macos" ? "/Applications/CuaDriver.app/Contents/MacOS/cua-driver" : "cua-driver");
29707
+ e.cuaDriver = cuaDriver;
29692
29708
  await this.save();
29693
29709
  if (e.staged) {
29694
29710
  await this.session?.close();
@@ -29727,6 +29743,37 @@ VM state: ${JSON.stringify(this.status())}`, { cause: error2 });
29727
29743
  await this.log("capture-software", void 0, { image: e.image, capture, ids: CAPTURE_SOFTWARE });
29728
29744
  return capture;
29729
29745
  }
29746
+ /**
29747
+ * Waits until the guest's cua-driver takes a screenshot, as each run's
29748
+ * snapshots do (DC-24). The image starts its daemon at login, which can
29749
+ * follow the guest's readiness, so the first runs would otherwise be refused.
29750
+ */
29751
+ async awaitCapture(transfer, e, node2, cuaDriver, signal) {
29752
+ const probe = join13(e.guestRoot, "state", ".stage-capture-probe.png");
29753
+ const waitMs = this.m.options.captureReadyWaitMs ?? CAPTURE_READY_WAIT_MS, retryMs = this.m.options.captureReadyRetryMs ?? CAPTURE_READY_RETRY_MS;
29754
+ const since = Date.now();
29755
+ await transfer.checked(["/bin/mkdir", "-p", join13(e.guestRoot, "state")], void 0, signal);
29756
+ for (let attempt = 1; ; attempt++) {
29757
+ try {
29758
+ await transfer.checked([cuaDriver, "call", "get_desktop_state", "--json", JSON.stringify({ screenshot_out_file: probe })], 6e4, signal);
29759
+ await transfer.checked([node2, "-e", 'require("node:fs").rmSync(process.argv[1], { force: true })', probe], void 0, signal);
29760
+ if (attempt > 1) await this.log("capture-ready", void 0, { waitedMs: Date.now() - since, attempts: attempt });
29761
+ return;
29762
+ } catch (error2) {
29763
+ if (signal?.aborted) throw error2;
29764
+ const waited = Date.now() - since;
29765
+ if (waited + retryMs > waitMs) throw new Error(`relay_stage waited ${Math.round(waited / 1e3)} s for ${e.image}'s cua-driver to take a screenshot, which each run's before and after snapshots need, and it never did: ${message(error2)}. Diagnose or start it with relay_command and diagnostic: true, such as \`${cuaDriver} serve\` on Linux, then call relay_stage again.`, { cause: error2 });
29766
+ await new Promise((done) => {
29767
+ const timer = setTimeout(done, retryMs);
29768
+ signal?.addEventListener("abort", () => {
29769
+ clearTimeout(timer);
29770
+ done();
29771
+ }, { once: true });
29772
+ });
29773
+ if (signal?.aborted) throw error2;
29774
+ }
29775
+ }
29776
+ }
29730
29777
  /** What a lease's runs record: snapshots when its image lists cua-driver, none otherwise. */
29731
29778
  snapshotFacts(e) {
29732
29779
  return e.capture === false ? { taken: false, reason: `${e.image} lists no capture software (cua-driver), so runs take no snapshots and their records have none.` } : { taken: true, reason: e.capture ? `${e.image} lists cua-driver, so each run takes before and after snapshots.` : "This lease predates the capture decision, so each run takes before and after snapshots." };
@@ -30433,7 +30480,7 @@ var relayTools = [
30433
30480
  action: "stage",
30434
30481
  title: "Stage the guest runtime",
30435
30482
  annotations: acts(false),
30436
- description: "Push and hash-check the guest runtime, plus an optional workspace and support files (`files`, landing under `support/`), onto the acquired guest that `guest` names. `workspace` and each `files[].local` lie in the project folder, relative to it or absolute inside it, with no symlinks. Staging needs only Node.js in the guest (`nodePath`, default `node`); an image without it is refused, because the relay pushes no runtime. Runs take before and after snapshots only when the image lists capture software (cua-driver); otherwise their records have none, and the result's `snapshots` says which. `cuaDriver` names the guest cua-driver the snapshots use. A failed stage can be retried; once staged, only corrected executable paths may be resubmitted, and staging does not prove capture readiness. `resetRecording: true` archives the current recording's evidence and starts a fresh recording on the same VM; it refuses while a receiver lock is held."
30483
+ description: "Push and hash-check the guest runtime, plus an optional workspace and support files (`files`, landing under `support/`), onto the acquired guest that `guest` names. `workspace` and each `files[].local` lie in the project folder, relative to it or absolute inside it, with no symlinks. Staging needs only Node.js in the guest (`nodePath`, default `node`); an image without it is refused, because the relay pushes no runtime. Runs take before and after snapshots only when the image lists capture software (cua-driver); otherwise their records have none, and the result's `snapshots` says which. When the image lists cua-driver, staging waits up to 120 s for it to take a screenshot, since the image starts its daemon at login, and refuses if it never does. `cuaDriver` names the guest cua-driver the snapshots use. A failed stage can be retried; once staged, only corrected executable paths may be resubmitted, and staging does not prove capture readiness. `resetRecording: true` archives the current recording's evidence and starts a fresh recording on the same VM; it refuses while a receiver lock is held."
30437
30484
  },
30438
30485
  {
30439
30486
  name: "relay_command",
@@ -30449,7 +30496,7 @@ var relayTools = [
30449
30496
  kind: "script",
30450
30497
  title: "Run a guest script",
30451
30498
  annotations: acts(true),
30452
- description: `Run one guest script as this call's single recorded operation; the script drives whatever the image lists, such as cua-driver, Playwright or Chrome DevTools, through their own libraries or command lines. ${runShared} Requires \`language\` (\`javascript\`, \`typescript\` or \`python\`) and \`inline\`: with \`inline: true\` give the script itself as \`code\` (up to 1 MiB); with \`inline: false\` give \`localPath\`, a host file in the project folder (relative to it or absolute inside it, with no symlinks). Give exactly the one \`inline\` names; any other call is refused. It runs in the staged workspace: JavaScript with the guest's Node.js, TypeScript with \`tsx\` and Python with \`python3\` from the guest's PATH (relay_probe scope=guest reports which run).`
30499
+ description: `Run one guest script as this call's single recorded operation; the script drives whatever the image lists, such as cua-driver, Playwright or Chrome DevTools, through their own libraries or command lines. ${runShared} Requires \`language\` (\`javascript\`, \`typescript\` or \`python\`) and \`inline\`: with \`inline: true\` give the script itself as \`code\` (up to 1 MiB); with \`inline: false\` give \`localPath\`, a host file in the project folder (relative to it or absolute inside it, with no symlinks). Give exactly the one \`inline\` names; any other call is refused. It runs in the staged workspace: JavaScript with the guest's Node.js, TypeScript with \`tsx\` from the guest's PATH or else the guest Node.js's own type stripping (22.6 or later), and Python with \`python3\` from the guest's PATH (relay_probe scope=guest reports which run); a missing runtime refuses the run before it starts.`
30453
30500
  },
30454
30501
  {
30455
30502
  name: "relay_image",
@@ -30597,7 +30644,7 @@ async function relayCall(host, raw, options = {}) {
30597
30644
 
30598
30645
  // src/server.ts
30599
30646
  var SERVER_NAME = "relay";
30600
- var SERVER_VERSION = true ? "0.14.1" : JSON.parse(readFileSync(fileURLToPath(new URL("../package.json", import.meta.url)), "utf8")).version;
30647
+ var SERVER_VERSION = true ? "0.14.2" : JSON.parse(readFileSync(fileURLToPath(new URL("../package.json", import.meta.url)), "utf8")).version;
30601
30648
  var STATUS_TOOL = "relay_status";
30602
30649
  var PLUGIN_TOOL_PREFIX = "mcp__plugin_mcp-relay_relay__";
30603
30650
  var message2 = (error2) => error2 instanceof Error ? error2.message : String(error2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wezzard/mcp-relay",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "type": "module",
5
5
  "description": "MCP server and Claude Code plugin. Runs an agent's code on fresh, isolated VMs, several at once, each run recorded with evidence",
6
6
  "license": "MIT",
@@ -62,14 +62,14 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@modelcontextprotocol/sdk": "^1.30.0",
65
- "@types/node": "^24.0.0",
65
+ "@types/node": "^26.6.5",
66
66
  "@wezzard/relay-driver-core": "^0.2.1",
67
67
  "@wezzard/relay-driver-host-sdk": "^0.2.1",
68
68
  "@wezzard/relay-driver-remote-runtime": "^0.2.1",
69
- "esbuild": "^0.25.0",
70
- "tsx": "^4.20.0",
71
- "typebox": "1.3.30",
72
- "typescript": "^5.9.0"
69
+ "esbuild": "^0.28.2",
70
+ "tsx": "^4.23.15",
71
+ "typebox": "1.3.37",
72
+ "typescript": "^7.0.2"
73
73
  },
74
74
  "engines": {
75
75
  "node": ">=22"
package/pi-mcp.json CHANGED
@@ -1 +1 @@
1
- {"mcpServers":{"relay":{"command":"npx","args":["-y","@wezzard/mcp-relay@0.14.1"],"lifecycle":"lazy-keep-alive","requestTimeoutMs":3900000,"directTools":true,"toolPrefix":"none"}}}
1
+ {"mcpServers":{"relay":{"command":"npx","args":["-y","@wezzard/mcp-relay@0.14.2"],"lifecycle":"lazy-keep-alive","requestTimeoutMs":3900000,"directTools":true,"toolPrefix":"none"}}}