isol8 0.10.3 → 0.11.0

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.
@@ -188,6 +188,65 @@
188
188
  },
189
189
  "type": "object"
190
190
  },
191
+ "remoteCode": {
192
+ "additionalProperties": false,
193
+ "description": "Remote code fetching policy. (Partial override allowed).",
194
+ "properties": {
195
+ "allowedHosts": {
196
+ "description": "Allowed hostname regex patterns. Empty means allow all (subject to blocklist).",
197
+ "items": {
198
+ "type": "string"
199
+ },
200
+ "type": "array"
201
+ },
202
+ "allowedSchemes": {
203
+ "default": ["https"],
204
+ "description": "Allowed URL schemes.",
205
+ "items": {
206
+ "type": "string"
207
+ },
208
+ "type": "array"
209
+ },
210
+ "blockedHosts": {
211
+ "description": "Blocked hostname regex patterns.",
212
+ "items": {
213
+ "type": "string"
214
+ },
215
+ "type": "array"
216
+ },
217
+ "cacheTtl": {
218
+ "default": 3600,
219
+ "description": "Cache TTL in seconds for future use.",
220
+ "type": "number"
221
+ },
222
+ "enableCache": {
223
+ "default": true,
224
+ "description": "Cache support toggle for future use.",
225
+ "type": "boolean"
226
+ },
227
+ "enabled": {
228
+ "default": false,
229
+ "description": "Enable URL-based source fetching.",
230
+ "type": "boolean"
231
+ },
232
+ "fetchTimeoutMs": {
233
+ "default": 30000,
234
+ "description": "Fetch timeout in milliseconds.",
235
+ "type": "number"
236
+ },
237
+ "maxCodeSize": {
238
+ "default": "10485760 (10MB)",
239
+ "description": "Max fetched source size in bytes.",
240
+ "type": "number"
241
+ },
242
+ "requireHash": {
243
+ "default": false,
244
+ "description": "Require `ExecutionRequest.codeHash` for URL-based execution.",
245
+ "type": "boolean"
246
+ }
247
+ },
248
+ "type": "object"
249
+ },
191
250
  "security": {
192
251
  "$ref": "#/definitions/SecurityConfig",
193
252
  "description": "Security settings."