poe-code 12.0.7 → 12.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -10
- package/dist/cli/commands/harness.js +1 -1
- package/dist/cli/commands/harness.js.map +1 -1
- package/dist/index.js +287 -262
- package/dist/index.js.map +3 -3
- package/dist/metafile.json +1 -1
- package/package.json +41 -16
- package/packages/agent-harness/dist/loader/extract-schema.js +1 -1
- package/packages/agent-harness/dist/loader/run.d.ts +1 -1
- package/packages/agent-harness/dist/loader/run.js +1 -1
- package/packages/package-lint/dist/bundle-policy.d.ts +13 -13
- package/packages/package-lint/dist/bundle-policy.js +13 -10
- package/packages/{safejs/dist/chunks/chunk-NDHGDM46.js → safe-js/dist/chunks/chunk-JGTN4U7F.js} +103 -103
- package/packages/{safejs/dist/chunks/chunk-NTYX57KK.js → safe-js/dist/chunks/chunk-PY5NKSTP.js} +23 -23
- package/packages/{safejs → safe-js}/dist/cli.js +8 -6
- package/packages/{safejs → safe-js}/dist/cli.js.map +2 -2
- package/packages/{safejs → safe-js}/dist/core.js +1 -1
- package/packages/{safejs → safe-js}/dist/index.js +6 -6
- package/packages/toolcraft-codemode/dist/execute.d.ts +1 -1
- package/packages/toolcraft-codemode/dist/execute.js +1 -1
- /package/packages/{safejs → safe-js}/dist/browser/chunks/chunk-MUKMA7ZY.js +0 -0
- /package/packages/{safejs → safe-js}/dist/browser/chunks/chunk-MUKMA7ZY.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/browser/safe-fs-core.js +0 -0
- /package/packages/{safejs → safe-js}/dist/browser/safe-fs-core.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/browser/safe-fs.js +0 -0
- /package/packages/{safejs → safe-js}/dist/browser/safe-fs.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/chunks/chunk-4YIDX44G.js +0 -0
- /package/packages/{safejs → safe-js}/dist/chunks/chunk-4YIDX44G.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/chunks/chunk-F7NY24BF.js +0 -0
- /package/packages/{safejs → safe-js}/dist/chunks/chunk-F7NY24BF.js.map +0 -0
- /package/packages/{safejs/dist/chunks/chunk-NDHGDM46.js.map → safe-js/dist/chunks/chunk-JGTN4U7F.js.map} +0 -0
- /package/packages/{safejs/dist/chunks/chunk-NTYX57KK.js.map → safe-js/dist/chunks/chunk-PY5NKSTP.js.map} +0 -0
- /package/packages/{safejs → safe-js}/dist/chunks/chunk-YBQUQPZV.js +0 -0
- /package/packages/{safejs → safe-js}/dist/chunks/chunk-YBQUQPZV.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/cli.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/core.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/core.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/dump.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/dump.js +0 -0
- /package/packages/{safejs → safe-js}/dist/error/format.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/error/format.js +0 -0
- /package/packages/{safejs → safe-js}/dist/error/shape.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/error/shape.js +0 -0
- /package/packages/{safejs → safe-js}/dist/error-codes.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/error-codes.js +0 -0
- /package/packages/{safejs → safe-js}/dist/example-runner.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/example-runner.js +0 -0
- /package/packages/{safejs → safe-js}/dist/graph-depth.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/graph-depth.js +0 -0
- /package/packages/{safejs → safe-js}/dist/index.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/index.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/arguments.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/arguments.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/async.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/async.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/budget.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/budget.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/cancel.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/cancel.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/exceptions.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/exceptions.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/float32.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/float32.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/generator.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/generator.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/collections.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/collections.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/console-json.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/console-json.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/error.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/error.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/float32array.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/float32array.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/math.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/math.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/misc.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/misc.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/object-array.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/object-array.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/regex.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/globals/regex.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/host-bridge.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/host-bridge.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/host-call.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/host-call.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/interpreter.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/interpreter.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/iteration.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/iteration.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/jobs.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/jobs.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/array.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/array.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/collection-callback.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/collection-callback.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/function.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/function.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/generator.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/generator.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/map.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/map.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/number.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/number.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/regex.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/regex.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/set.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/set.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/string.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/methods/string.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/patterns.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/patterns.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/promise-replay.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/promise-replay.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/promise-tracker.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/promise-tracker.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/promise.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/promise.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/regex/engine.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/regex/engine.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/regex/parse.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/regex/parse.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/resources.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/resources.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/running-state.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/running-state.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/scope.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/scope.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/values.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/values.js +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/var-hoist.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/interp/var-hoist.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/index.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/index.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-async-not-needed.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-async-not-needed.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-destructure-null-default.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-destructure-null-default.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-export-import-meta.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-export-import-meta.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-floating-promise.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-floating-promise.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-frontmatter-field-unused.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-frontmatter-field-unused.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-import-cycle.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-import-cycle.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-jsdoc-type.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-jsdoc-type.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-large-literal.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-large-literal.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-missing-async.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-missing-async.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-mutating-frozen.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-mutating-frozen.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-needless-template.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-needless-template.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-shadow-global.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-shadow-global.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unbounded-loop.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unbounded-loop.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unreachable.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unreachable.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unused-import.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unused-import.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS001.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS001.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS003.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS003.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS004.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS004.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS005.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS005.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS006-007.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS006-007.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS009.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS009.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS010.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS010.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS011.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS011.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS013.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS013.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS014.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS014.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS015.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/AS015.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/known-globals.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/known-globals.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/module-registry.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/rules/module-registry.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/runtime-modules.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint/runtime-modules.js +0 -0
- /package/packages/{safejs → safe-js}/dist/lint.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/lint.js +0 -0
- /package/packages/{safejs → safe-js}/dist/loader/extract-block.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/loader/extract-block.js +0 -0
- /package/packages/{safejs → safe-js}/dist/loader/find-exported.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/loader/find-exported.js +0 -0
- /package/packages/{safejs → safe-js}/dist/loader/frontmatter.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/loader/frontmatter.js +0 -0
- /package/packages/{safejs → safe-js}/dist/migrate.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/migrate.js +0 -0
- /package/packages/{safejs → safe-js}/dist/migration-file.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/migration-file.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/agent.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/agent.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/canonical-path.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/canonical-path.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/env.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/env.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/fail.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/fail.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/fs-config.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/fs-config.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/fs.conformance-cases.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/fs.conformance-cases.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/fs.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/fs.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/git.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/git.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/harness.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/harness.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/log.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/log.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/mcp-transport.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/mcp-transport.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/mcp.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/mcp.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/metric.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/metric.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/registry.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/registry.js +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/time.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/modules/time.js +0 -0
- /package/packages/{safejs → safe-js}/dist/observability/otel.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/observability/otel.js +0 -0
- /package/packages/{safejs → safe-js}/dist/output-stream.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/output-stream.js +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/assign-ids.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/assign-ids.js +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/bindings.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/bindings.js +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/format-error.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/format-error.js +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/hash.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/hash.js +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/parse-export.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/parse-export.js +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/parse-import-meta.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/parse-import-meta.js +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/parser.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/parser.js +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/tokenizer.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/parse/tokenizer.js +0 -0
- /package/packages/{safejs → safe-js}/dist/parse.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/parse.js +0 -0
- /package/packages/{safejs → safe-js}/dist/random.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/random.js +0 -0
- /package/packages/{safejs → safe-js}/dist/restore.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/restore.js +0 -0
- /package/packages/{safejs → safe-js}/dist/run.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/run.js +0 -0
- /package/packages/{safejs → safe-js}/dist/runner/run-harness.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/runner/run-harness.js +0 -0
- /package/packages/{safejs → safe-js}/dist/runner/signal-dump.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/runner/signal-dump.js +0 -0
- /package/packages/{safejs → safe-js}/dist/safe-fs-core.js +0 -0
- /package/packages/{safejs → safe-js}/dist/safe-fs-core.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/safe-fs-node.js +0 -0
- /package/packages/{safejs → safe-js}/dist/safe-fs-node.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/safe-fs.js +0 -0
- /package/packages/{safejs → safe-js}/dist/safe-fs.js.map +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/arguments.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/arguments.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/arrays.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/arrays.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/backend.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/backend.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/dump-format.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/dump-format.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/dump.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/dump.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/float32array.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/float32array.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/migration.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/migration.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/policy.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/policy.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/replay-data.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/replay-data.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/replay-inputs.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/replay-inputs.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/restore.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/restore.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/scheduler.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/scheduler.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/serialize.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/serialize.js +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/validation.d.ts +0 -0
- /package/packages/{safejs → safe-js}/dist/snapshot/validation.js +0 -0
package/dist/index.js
CHANGED
|
@@ -118807,7 +118807,7 @@ var init_error_codes21 = __esm({
|
|
|
118807
118807
|
}
|
|
118808
118808
|
});
|
|
118809
118809
|
|
|
118810
|
-
// packages/
|
|
118810
|
+
// packages/safe-js/src/parse/bindings.ts
|
|
118811
118811
|
function getFunctionLength(params) {
|
|
118812
118812
|
const firstOptional = params.findIndex(
|
|
118813
118813
|
(param) => param.type === "AssignmentPattern" || param.type === "RestElement"
|
|
@@ -118899,12 +118899,12 @@ function* hoistedVarDeclarations(nodes) {
|
|
|
118899
118899
|
}
|
|
118900
118900
|
}
|
|
118901
118901
|
var init_bindings = __esm({
|
|
118902
|
-
"packages/
|
|
118902
|
+
"packages/safe-js/src/parse/bindings.ts"() {
|
|
118903
118903
|
"use strict";
|
|
118904
118904
|
}
|
|
118905
118905
|
});
|
|
118906
118906
|
|
|
118907
|
-
// packages/
|
|
118907
|
+
// packages/safe-js/src/parse/tokenizer.ts
|
|
118908
118908
|
function tokenize3(source, options = {}) {
|
|
118909
118909
|
const lexer = new Lexer(source, options);
|
|
118910
118910
|
return lexer.tokenize();
|
|
@@ -119000,7 +119000,7 @@ function popGroupingContext(groupingStack, expected) {
|
|
|
119000
119000
|
}
|
|
119001
119001
|
var KEYWORDS, EXPRESSION_ENDING_KEYWORDS, CONTROL_FLOW_PAREN_KEYWORDS, MAX_UNICODE_CODE_POINT, IDENTIFIER_START_PATTERN, IDENTIFIER_PART_PATTERN, PUNCTUATORS, Lexer;
|
|
119002
119002
|
var init_tokenizer2 = __esm({
|
|
119003
|
-
"packages/
|
|
119003
|
+
"packages/safe-js/src/parse/tokenizer.ts"() {
|
|
119004
119004
|
"use strict";
|
|
119005
119005
|
KEYWORDS = /* @__PURE__ */ new Set([
|
|
119006
119006
|
"const",
|
|
@@ -119838,7 +119838,7 @@ var init_tokenizer2 = __esm({
|
|
|
119838
119838
|
}
|
|
119839
119839
|
});
|
|
119840
119840
|
|
|
119841
|
-
// packages/
|
|
119841
|
+
// packages/safe-js/src/parse/assign-ids.ts
|
|
119842
119842
|
function assignIds(root) {
|
|
119843
119843
|
const visited = /* @__PURE__ */ new Set();
|
|
119844
119844
|
const children2 = [];
|
|
@@ -119939,12 +119939,12 @@ function isAstNode(value) {
|
|
|
119939
119939
|
return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string" && "span" in value && typeof value.span?.start.offset === "number" && typeof value.span?.end.offset === "number";
|
|
119940
119940
|
}
|
|
119941
119941
|
var init_assign_ids = __esm({
|
|
119942
|
-
"packages/
|
|
119942
|
+
"packages/safe-js/src/parse/assign-ids.ts"() {
|
|
119943
119943
|
"use strict";
|
|
119944
119944
|
}
|
|
119945
119945
|
});
|
|
119946
119946
|
|
|
119947
|
-
// packages/
|
|
119947
|
+
// packages/safe-js/src/error/shape.ts
|
|
119948
119948
|
function formatErrorStack(name, message2, stackFrames = []) {
|
|
119949
119949
|
const header = message2.length === 0 ? name : `${name}: ${message2}`;
|
|
119950
119950
|
return [header, ...stackFrames].join("\n");
|
|
@@ -120072,7 +120072,7 @@ function findSourceOffset(source, line, column) {
|
|
|
120072
120072
|
}
|
|
120073
120073
|
var wrappedErrorCause, sandboxErrorNames, sandboxErrorTypes, hostErrorData;
|
|
120074
120074
|
var init_shape = __esm({
|
|
120075
|
-
"packages/
|
|
120075
|
+
"packages/safe-js/src/error/shape.ts"() {
|
|
120076
120076
|
"use strict";
|
|
120077
120077
|
wrappedErrorCause = /* @__PURE__ */ Symbol("wrappedErrorCause");
|
|
120078
120078
|
sandboxErrorNames = [
|
|
@@ -120090,7 +120090,7 @@ var init_shape = __esm({
|
|
|
120090
120090
|
}
|
|
120091
120091
|
});
|
|
120092
120092
|
|
|
120093
|
-
// packages/
|
|
120093
|
+
// packages/safe-js/src/parse/format-error.ts
|
|
120094
120094
|
function formatParseError(source, filename, error3) {
|
|
120095
120095
|
const location = parseErrorLocation(error3.message);
|
|
120096
120096
|
if (location === void 0) {
|
|
@@ -120248,7 +120248,7 @@ function findNumberEnd(value, startIndex) {
|
|
|
120248
120248
|
}
|
|
120249
120249
|
var ParseError, MAX_EXCERPT_CONTENT_LENGTH, ELLIPSIS2;
|
|
120250
120250
|
var init_format_error = __esm({
|
|
120251
|
-
"packages/
|
|
120251
|
+
"packages/safe-js/src/parse/format-error.ts"() {
|
|
120252
120252
|
"use strict";
|
|
120253
120253
|
init_shape();
|
|
120254
120254
|
ParseError = class extends Error {
|
|
@@ -120276,7 +120276,7 @@ var init_format_error = __esm({
|
|
|
120276
120276
|
}
|
|
120277
120277
|
});
|
|
120278
120278
|
|
|
120279
|
-
// packages/
|
|
120279
|
+
// packages/safe-js/src/parse/parse-export.ts
|
|
120280
120280
|
function createExportNamedDeclaration(exportToken, declaration) {
|
|
120281
120281
|
return {
|
|
120282
120282
|
type: "ExportNamedDeclaration",
|
|
@@ -120298,12 +120298,12 @@ function createSpan(start, end) {
|
|
|
120298
120298
|
};
|
|
120299
120299
|
}
|
|
120300
120300
|
var init_parse_export = __esm({
|
|
120301
|
-
"packages/
|
|
120301
|
+
"packages/safe-js/src/parse/parse-export.ts"() {
|
|
120302
120302
|
"use strict";
|
|
120303
120303
|
}
|
|
120304
120304
|
});
|
|
120305
120305
|
|
|
120306
|
-
// packages/
|
|
120306
|
+
// packages/safe-js/src/parse/parse-import-meta.ts
|
|
120307
120307
|
function isImportMetaTokenSequence(importToken, dotToken, metaToken) {
|
|
120308
120308
|
return importToken.type === "keyword" && importToken.value === "import" && dotToken.type === "punctuator" && dotToken.value === "." && metaToken.type === "identifier" && metaToken.value === "meta" && importToken.end.offset === dotToken.start.offset && dotToken.end.offset === metaToken.start.offset;
|
|
120309
120309
|
}
|
|
@@ -120329,12 +120329,12 @@ function createIdentifier(token, name) {
|
|
|
120329
120329
|
};
|
|
120330
120330
|
}
|
|
120331
120331
|
var init_parse_import_meta = __esm({
|
|
120332
|
-
"packages/
|
|
120332
|
+
"packages/safe-js/src/parse/parse-import-meta.ts"() {
|
|
120333
120333
|
"use strict";
|
|
120334
120334
|
}
|
|
120335
120335
|
});
|
|
120336
120336
|
|
|
120337
|
-
// packages/
|
|
120337
|
+
// packages/safe-js/src/interp/regex/parse.ts
|
|
120338
120338
|
function parseRegex(source, flags = "") {
|
|
120339
120339
|
const parsedFlags = parseFlags(flags);
|
|
120340
120340
|
const parser = new RegexParser(source);
|
|
@@ -120385,7 +120385,7 @@ function allHexDigits(value) {
|
|
|
120385
120385
|
}
|
|
120386
120386
|
var RegexParser;
|
|
120387
120387
|
var init_parse5 = __esm({
|
|
120388
|
-
"packages/
|
|
120388
|
+
"packages/safe-js/src/interp/regex/parse.ts"() {
|
|
120389
120389
|
"use strict";
|
|
120390
120390
|
RegexParser = class {
|
|
120391
120391
|
constructor(source) {
|
|
@@ -120659,7 +120659,7 @@ var init_parse5 = __esm({
|
|
|
120659
120659
|
}
|
|
120660
120660
|
});
|
|
120661
120661
|
|
|
120662
|
-
// packages/
|
|
120662
|
+
// packages/safe-js/src/parse/parser.ts
|
|
120663
120663
|
function parse15(source, filename = "<input>") {
|
|
120664
120664
|
try {
|
|
120665
120665
|
const result = assignIds(parseTokens(tokenize3(source, { allowRegexLiterals: true })));
|
|
@@ -121527,7 +121527,7 @@ function matchingOpeningPunctuator(value) {
|
|
|
121527
121527
|
}
|
|
121528
121528
|
var MAX_CONDITIONAL_EXPRESSION_DEPTH, MAX_IF_STATEMENT_DEPTH, DisallowedSyntaxError, EQUALITY_OPERATORS, RELATIONAL_OPERATORS, SHIFT_OPERATORS, ADDITIVE_OPERATORS, MULTIPLICATIVE_OPERATORS, BITWISE_OR_OPERATORS, BITWISE_XOR_OPERATORS, BITWISE_AND_OPERATORS, MAX_UNICODE_CODE_POINT2, TOP_LEVEL_STATEMENT_KEYWORDS, Parser;
|
|
121529
121529
|
var init_parser3 = __esm({
|
|
121530
|
-
"packages/
|
|
121530
|
+
"packages/safe-js/src/parse/parser.ts"() {
|
|
121531
121531
|
"use strict";
|
|
121532
121532
|
init_bindings();
|
|
121533
121533
|
init_tokenizer2();
|
|
@@ -124148,15 +124148,15 @@ var init_parser3 = __esm({
|
|
|
124148
124148
|
}
|
|
124149
124149
|
});
|
|
124150
124150
|
|
|
124151
|
-
// packages/
|
|
124151
|
+
// packages/safe-js/src/parse.ts
|
|
124152
124152
|
var init_parse6 = __esm({
|
|
124153
|
-
"packages/
|
|
124153
|
+
"packages/safe-js/src/parse.ts"() {
|
|
124154
124154
|
"use strict";
|
|
124155
124155
|
init_parser3();
|
|
124156
124156
|
}
|
|
124157
124157
|
});
|
|
124158
124158
|
|
|
124159
|
-
// packages/
|
|
124159
|
+
// packages/safe-js/src/lint/rules/AS001.ts
|
|
124160
124160
|
function AS001(source, options = {}) {
|
|
124161
124161
|
return new AS001Scanner(source, options.filename ?? "<input>").scan();
|
|
124162
124162
|
}
|
|
@@ -124333,7 +124333,7 @@ function isExpressionEndingPunctuator2(value) {
|
|
|
124333
124333
|
}
|
|
124334
124334
|
var KEYWORDS2, EXPRESSION_ENDING_KEYWORDS2, CONTROL_FLOW_PAREN_KEYWORDS2, PUNCTUATORS2, AS001Scanner;
|
|
124335
124335
|
var init_AS001 = __esm({
|
|
124336
|
-
"packages/
|
|
124336
|
+
"packages/safe-js/src/lint/rules/AS001.ts"() {
|
|
124337
124337
|
"use strict";
|
|
124338
124338
|
KEYWORDS2 = /* @__PURE__ */ new Set([
|
|
124339
124339
|
"async",
|
|
@@ -124852,10 +124852,10 @@ var init_AS001 = __esm({
|
|
|
124852
124852
|
}
|
|
124853
124853
|
});
|
|
124854
124854
|
|
|
124855
|
-
// packages/
|
|
124855
|
+
// packages/safe-js/src/lint/rules/known-globals.ts
|
|
124856
124856
|
var KNOWN_RUNTIME_GLOBALS;
|
|
124857
124857
|
var init_known_globals = __esm({
|
|
124858
|
-
"packages/
|
|
124858
|
+
"packages/safe-js/src/lint/rules/known-globals.ts"() {
|
|
124859
124859
|
"use strict";
|
|
124860
124860
|
KNOWN_RUNTIME_GLOBALS = [
|
|
124861
124861
|
"AggregateError",
|
|
@@ -124888,7 +124888,7 @@ var init_known_globals = __esm({
|
|
|
124888
124888
|
}
|
|
124889
124889
|
});
|
|
124890
124890
|
|
|
124891
|
-
// packages/
|
|
124891
|
+
// packages/safe-js/src/lint/rules/AS003.ts
|
|
124892
124892
|
function AS003(source, options = {}) {
|
|
124893
124893
|
return new AS003Scanner(
|
|
124894
124894
|
options.filename ?? "<input>",
|
|
@@ -124928,7 +124928,7 @@ function getLevenshteinDistance2(left, right) {
|
|
|
124928
124928
|
}
|
|
124929
124929
|
var AS003Scanner;
|
|
124930
124930
|
var init_AS003 = __esm({
|
|
124931
|
-
"packages/
|
|
124931
|
+
"packages/safe-js/src/lint/rules/AS003.ts"() {
|
|
124932
124932
|
"use strict";
|
|
124933
124933
|
init_parser3();
|
|
124934
124934
|
init_known_globals();
|
|
@@ -125505,7 +125505,7 @@ var init_AS003 = __esm({
|
|
|
125505
125505
|
}
|
|
125506
125506
|
});
|
|
125507
125507
|
|
|
125508
|
-
// packages/
|
|
125508
|
+
// packages/safe-js/src/lint/rules/module-registry.ts
|
|
125509
125509
|
function collectImportDeclarations(source, filename) {
|
|
125510
125510
|
const module = parseModule(source, filename);
|
|
125511
125511
|
return module.body.flatMap(
|
|
@@ -125609,13 +125609,13 @@ function normalizeAsyncExports(exports) {
|
|
|
125609
125609
|
);
|
|
125610
125610
|
}
|
|
125611
125611
|
var init_module_registry = __esm({
|
|
125612
|
-
"packages/
|
|
125612
|
+
"packages/safe-js/src/lint/rules/module-registry.ts"() {
|
|
125613
125613
|
"use strict";
|
|
125614
125614
|
init_parser3();
|
|
125615
125615
|
}
|
|
125616
125616
|
});
|
|
125617
125617
|
|
|
125618
|
-
// packages/
|
|
125618
|
+
// packages/safe-js/src/lint/rules/AS004.ts
|
|
125619
125619
|
function AS004(source, options = {}) {
|
|
125620
125620
|
const filename = options.filename ?? "<input>";
|
|
125621
125621
|
const modules = normalizeModules(options.modules);
|
|
@@ -125638,13 +125638,13 @@ function AS004(source, options = {}) {
|
|
|
125638
125638
|
});
|
|
125639
125639
|
}
|
|
125640
125640
|
var init_AS004 = __esm({
|
|
125641
|
-
"packages/
|
|
125641
|
+
"packages/safe-js/src/lint/rules/AS004.ts"() {
|
|
125642
125642
|
"use strict";
|
|
125643
125643
|
init_module_registry();
|
|
125644
125644
|
}
|
|
125645
125645
|
});
|
|
125646
125646
|
|
|
125647
|
-
// packages/
|
|
125647
|
+
// packages/safe-js/src/lint/rules/AS005.ts
|
|
125648
125648
|
function AS005(source, options = {}) {
|
|
125649
125649
|
const filename = options.filename ?? "<input>";
|
|
125650
125650
|
const modules = normalizeModules(options.modules);
|
|
@@ -125681,19 +125681,19 @@ function AS005(source, options = {}) {
|
|
|
125681
125681
|
});
|
|
125682
125682
|
}
|
|
125683
125683
|
var init_AS005 = __esm({
|
|
125684
|
-
"packages/
|
|
125684
|
+
"packages/safe-js/src/lint/rules/AS005.ts"() {
|
|
125685
125685
|
"use strict";
|
|
125686
125686
|
init_module_registry();
|
|
125687
125687
|
}
|
|
125688
125688
|
});
|
|
125689
125689
|
|
|
125690
|
-
// packages/
|
|
125690
|
+
// packages/safe-js/src/lint/rules/AS006-007.ts
|
|
125691
125691
|
function AS006_007(source, options = {}) {
|
|
125692
125692
|
return new AS006007Scanner(options.filename ?? "<input>").scan(source);
|
|
125693
125693
|
}
|
|
125694
125694
|
var AS006007Scanner;
|
|
125695
125695
|
var init_AS006_007 = __esm({
|
|
125696
|
-
"packages/
|
|
125696
|
+
"packages/safe-js/src/lint/rules/AS006-007.ts"() {
|
|
125697
125697
|
"use strict";
|
|
125698
125698
|
init_parser3();
|
|
125699
125699
|
init_bindings();
|
|
@@ -126345,13 +126345,13 @@ var init_AS006_007 = __esm({
|
|
|
126345
126345
|
}
|
|
126346
126346
|
});
|
|
126347
126347
|
|
|
126348
|
-
// packages/
|
|
126348
|
+
// packages/safe-js/src/lint/rules/AS009.ts
|
|
126349
126349
|
function AS009(source, options = {}) {
|
|
126350
126350
|
return new AS009Scanner(options.filename ?? "<input>").scan(source);
|
|
126351
126351
|
}
|
|
126352
126352
|
var MESSAGE, AS009Scanner;
|
|
126353
126353
|
var init_AS009 = __esm({
|
|
126354
|
-
"packages/
|
|
126354
|
+
"packages/safe-js/src/lint/rules/AS009.ts"() {
|
|
126355
126355
|
"use strict";
|
|
126356
126356
|
init_parser3();
|
|
126357
126357
|
MESSAGE = "Async arrow returns a host call without awaiting it. Add 'await' or document that this function intentionally returns a Promise.";
|
|
@@ -126832,13 +126832,13 @@ var init_AS009 = __esm({
|
|
|
126832
126832
|
}
|
|
126833
126833
|
});
|
|
126834
126834
|
|
|
126835
|
-
// packages/
|
|
126835
|
+
// packages/safe-js/src/lint/rules/AS010.ts
|
|
126836
126836
|
function AS010(source, options = {}) {
|
|
126837
126837
|
return new AS010Scanner(options.filename ?? "<input>").scan(source);
|
|
126838
126838
|
}
|
|
126839
126839
|
var AS010Scanner;
|
|
126840
126840
|
var init_AS010 = __esm({
|
|
126841
|
-
"packages/
|
|
126841
|
+
"packages/safe-js/src/lint/rules/AS010.ts"() {
|
|
126842
126842
|
"use strict";
|
|
126843
126843
|
init_parser3();
|
|
126844
126844
|
AS010Scanner = class {
|
|
@@ -127496,13 +127496,13 @@ var init_AS010 = __esm({
|
|
|
127496
127496
|
}
|
|
127497
127497
|
});
|
|
127498
127498
|
|
|
127499
|
-
// packages/
|
|
127499
|
+
// packages/safe-js/src/lint/rules/AS011.ts
|
|
127500
127500
|
function AS011(source, options = {}) {
|
|
127501
127501
|
return new AS011Scanner(options.filename ?? "<input>").scan(source);
|
|
127502
127502
|
}
|
|
127503
127503
|
var FORBIDDEN_PROPERTY_NAMES, MESSAGE2, AS011Scanner;
|
|
127504
127504
|
var init_AS011 = __esm({
|
|
127505
|
-
"packages/
|
|
127505
|
+
"packages/safe-js/src/lint/rules/AS011.ts"() {
|
|
127506
127506
|
"use strict";
|
|
127507
127507
|
init_parser3();
|
|
127508
127508
|
FORBIDDEN_PROPERTY_NAMES = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
@@ -127839,7 +127839,7 @@ var init_AS011 = __esm({
|
|
|
127839
127839
|
}
|
|
127840
127840
|
});
|
|
127841
127841
|
|
|
127842
|
-
// packages/
|
|
127842
|
+
// packages/safe-js/src/lint/rules/AS013.ts
|
|
127843
127843
|
function AS013(source, options = {}) {
|
|
127844
127844
|
const filename = options.filename ?? "<input>";
|
|
127845
127845
|
const reservedNames = new Set(normalizeModules(options.modules).keys());
|
|
@@ -127921,14 +127921,14 @@ function collectPatternDiagnostics(pattern, reservedNames, diagnostics, filename
|
|
|
127921
127921
|
}
|
|
127922
127922
|
}
|
|
127923
127923
|
var init_AS013 = __esm({
|
|
127924
|
-
"packages/
|
|
127924
|
+
"packages/safe-js/src/lint/rules/AS013.ts"() {
|
|
127925
127925
|
"use strict";
|
|
127926
127926
|
init_parser3();
|
|
127927
127927
|
init_module_registry();
|
|
127928
127928
|
}
|
|
127929
127929
|
});
|
|
127930
127930
|
|
|
127931
|
-
// packages/
|
|
127931
|
+
// packages/safe-js/src/lint/rules/AS015.ts
|
|
127932
127932
|
function AS015(source, options = {}) {
|
|
127933
127933
|
return new AS015Scanner(options.filename ?? "<input>").scan(source);
|
|
127934
127934
|
}
|
|
@@ -127947,7 +127947,7 @@ function isPromiseRace(node) {
|
|
|
127947
127947
|
}
|
|
127948
127948
|
var AS015Scanner;
|
|
127949
127949
|
var init_AS015 = __esm({
|
|
127950
|
-
"packages/
|
|
127950
|
+
"packages/safe-js/src/lint/rules/AS015.ts"() {
|
|
127951
127951
|
"use strict";
|
|
127952
127952
|
init_parser3();
|
|
127953
127953
|
AS015Scanner = class {
|
|
@@ -128252,7 +128252,7 @@ var init_AS015 = __esm({
|
|
|
128252
128252
|
}
|
|
128253
128253
|
});
|
|
128254
128254
|
|
|
128255
|
-
// packages/
|
|
128255
|
+
// packages/safe-js/src/lint/rules/AS-async-not-needed.ts
|
|
128256
128256
|
function AS_ASYNC_NOT_NEEDED(source, options = {}) {
|
|
128257
128257
|
return new ASAsyncNotNeededScanner(source, options.filename ?? "<input>").scan();
|
|
128258
128258
|
}
|
|
@@ -128431,7 +128431,7 @@ function patternTargetContainsAwait(node) {
|
|
|
128431
128431
|
}
|
|
128432
128432
|
var AS_ASYNC_NOT_NEEDED_MESSAGE, ASAsyncNotNeededScanner;
|
|
128433
128433
|
var init_AS_async_not_needed = __esm({
|
|
128434
|
-
"packages/
|
|
128434
|
+
"packages/safe-js/src/lint/rules/AS-async-not-needed.ts"() {
|
|
128435
128435
|
"use strict";
|
|
128436
128436
|
init_parser3();
|
|
128437
128437
|
AS_ASYNC_NOT_NEEDED_MESSAGE = "Async functions without await should remove the async keyword.";
|
|
@@ -128806,7 +128806,7 @@ var init_AS_async_not_needed = __esm({
|
|
|
128806
128806
|
}
|
|
128807
128807
|
});
|
|
128808
128808
|
|
|
128809
|
-
// packages/
|
|
128809
|
+
// packages/safe-js/src/lint/rules/AS-destructure-null-default.ts
|
|
128810
128810
|
function AS_DESTRUCTURE_NULL_DEFAULT(source, options = {}) {
|
|
128811
128811
|
return new ASDestructureNullDefaultScanner(options.filename ?? "<input>").scan(source);
|
|
128812
128812
|
}
|
|
@@ -128851,7 +128851,7 @@ function getStaticPropertyKey(key3) {
|
|
|
128851
128851
|
}
|
|
128852
128852
|
var MESSAGE3, HINT, ASDestructureNullDefaultScanner;
|
|
128853
128853
|
var init_AS_destructure_null_default = __esm({
|
|
128854
|
-
"packages/
|
|
128854
|
+
"packages/safe-js/src/lint/rules/AS-destructure-null-default.ts"() {
|
|
128855
128855
|
"use strict";
|
|
128856
128856
|
init_parser3();
|
|
128857
128857
|
MESSAGE3 = "Destructuring default values only apply to undefined, not null.";
|
|
@@ -129258,7 +129258,7 @@ var init_AS_destructure_null_default = __esm({
|
|
|
129258
129258
|
}
|
|
129259
129259
|
});
|
|
129260
129260
|
|
|
129261
|
-
// packages/
|
|
129261
|
+
// packages/safe-js/src/lint/rules/AS-export-import-meta.ts
|
|
129262
129262
|
function AS_EXPORT_IMPORT_META(source, options = {}) {
|
|
129263
129263
|
return new Scanner(
|
|
129264
129264
|
options.filename ?? "<input>",
|
|
@@ -129307,7 +129307,7 @@ function isImportMetaAssignmentTarget2(node) {
|
|
|
129307
129307
|
}
|
|
129308
129308
|
var Scanner;
|
|
129309
129309
|
var init_AS_export_import_meta = __esm({
|
|
129310
|
-
"packages/
|
|
129310
|
+
"packages/safe-js/src/lint/rules/AS-export-import-meta.ts"() {
|
|
129311
129311
|
"use strict";
|
|
129312
129312
|
init_parser3();
|
|
129313
129313
|
Scanner = class {
|
|
@@ -129698,13 +129698,13 @@ var init_AS_export_import_meta = __esm({
|
|
|
129698
129698
|
}
|
|
129699
129699
|
});
|
|
129700
129700
|
|
|
129701
|
-
// packages/
|
|
129701
|
+
// packages/safe-js/src/lint/rules/AS-floating-promise.ts
|
|
129702
129702
|
function AS_FLOATING_PROMISE(source, options = {}) {
|
|
129703
129703
|
return new ASFloatingPromiseScanner(options.filename ?? "<input>", options.modules).scan(source);
|
|
129704
129704
|
}
|
|
129705
129705
|
var AS_FLOATING_PROMISE_MESSAGE, PROMISE_CONSUMERS, PROMISE_FACTORIES, PROMISE_CHAIN_METHODS, ASFloatingPromiseScanner;
|
|
129706
129706
|
var init_AS_floating_promise = __esm({
|
|
129707
|
-
"packages/
|
|
129707
|
+
"packages/safe-js/src/lint/rules/AS-floating-promise.ts"() {
|
|
129708
129708
|
"use strict";
|
|
129709
129709
|
init_parser3();
|
|
129710
129710
|
init_module_registry();
|
|
@@ -130306,7 +130306,7 @@ var init_AS_floating_promise = __esm({
|
|
|
130306
130306
|
}
|
|
130307
130307
|
});
|
|
130308
130308
|
|
|
130309
|
-
// packages/
|
|
130309
|
+
// packages/safe-js/src/lint/rules/AS-frontmatter-field-unused.ts
|
|
130310
130310
|
function AS_FRONTMATTER_FIELD_UNUSED(source, options = {}) {
|
|
130311
130311
|
if (options.frontmatterFields === void 0) {
|
|
130312
130312
|
return [];
|
|
@@ -130336,7 +130336,7 @@ function readPropertyKey(node) {
|
|
|
130336
130336
|
}
|
|
130337
130337
|
var ASFrontmatterFieldUnusedScanner;
|
|
130338
130338
|
var init_AS_frontmatter_field_unused = __esm({
|
|
130339
|
-
"packages/
|
|
130339
|
+
"packages/safe-js/src/lint/rules/AS-frontmatter-field-unused.ts"() {
|
|
130340
130340
|
"use strict";
|
|
130341
130341
|
init_parser3();
|
|
130342
130342
|
ASFrontmatterFieldUnusedScanner = class {
|
|
@@ -130738,7 +130738,7 @@ var init_AS_frontmatter_field_unused = __esm({
|
|
|
130738
130738
|
}
|
|
130739
130739
|
});
|
|
130740
130740
|
|
|
130741
|
-
// packages/
|
|
130741
|
+
// packages/safe-js/src/lint/rules/AS-import-cycle.ts
|
|
130742
130742
|
function AS_IMPORT_CYCLE(source, options = {}) {
|
|
130743
130743
|
const filename = options.filename ?? "<input>";
|
|
130744
130744
|
const sourceModules = collectSafeJSSourceModules(options.modules);
|
|
@@ -130822,7 +130822,7 @@ function findPathToModule(currentModuleName, targetModuleName, dependencyGraph,
|
|
|
130822
130822
|
return void 0;
|
|
130823
130823
|
}
|
|
130824
130824
|
var init_AS_import_cycle = __esm({
|
|
130825
|
-
"packages/
|
|
130825
|
+
"packages/safe-js/src/lint/rules/AS-import-cycle.ts"() {
|
|
130826
130826
|
"use strict";
|
|
130827
130827
|
init_format_error();
|
|
130828
130828
|
init_parser3();
|
|
@@ -130830,7 +130830,7 @@ var init_AS_import_cycle = __esm({
|
|
|
130830
130830
|
}
|
|
130831
130831
|
});
|
|
130832
130832
|
|
|
130833
|
-
// packages/
|
|
130833
|
+
// packages/safe-js/src/lint/rules/AS-jsdoc-type.ts
|
|
130834
130834
|
function AS_JSDOC_TYPE(source, options = {}) {
|
|
130835
130835
|
if (!hasTypedModuleRegistrations(options.modules)) {
|
|
130836
130836
|
return [];
|
|
@@ -131178,7 +131178,7 @@ function positionAt(source, offset) {
|
|
|
131178
131178
|
}
|
|
131179
131179
|
var ASJsdocTypeScanner;
|
|
131180
131180
|
var init_AS_jsdoc_type = __esm({
|
|
131181
|
-
"packages/
|
|
131181
|
+
"packages/safe-js/src/lint/rules/AS-jsdoc-type.ts"() {
|
|
131182
131182
|
"use strict";
|
|
131183
131183
|
init_parser3();
|
|
131184
131184
|
init_module_registry();
|
|
@@ -131575,7 +131575,7 @@ var init_AS_jsdoc_type = __esm({
|
|
|
131575
131575
|
}
|
|
131576
131576
|
});
|
|
131577
131577
|
|
|
131578
|
-
// packages/
|
|
131578
|
+
// packages/safe-js/src/lint/rules/AS-large-literal.ts
|
|
131579
131579
|
function AS_LARGE_LITERAL(source, options = {}) {
|
|
131580
131580
|
return new ASLargeLiteralScanner(
|
|
131581
131581
|
options.filename ?? "<input>",
|
|
@@ -131590,7 +131590,7 @@ function createObjectMessage(count, threshold) {
|
|
|
131590
131590
|
}
|
|
131591
131591
|
var DEFAULT_LARGE_LITERAL_THRESHOLD, ASLargeLiteralScanner;
|
|
131592
131592
|
var init_AS_large_literal = __esm({
|
|
131593
|
-
"packages/
|
|
131593
|
+
"packages/safe-js/src/lint/rules/AS-large-literal.ts"() {
|
|
131594
131594
|
"use strict";
|
|
131595
131595
|
init_parser3();
|
|
131596
131596
|
DEFAULT_LARGE_LITERAL_THRESHOLD = 1e3;
|
|
@@ -131946,7 +131946,7 @@ var init_AS_large_literal = __esm({
|
|
|
131946
131946
|
}
|
|
131947
131947
|
});
|
|
131948
131948
|
|
|
131949
|
-
// packages/
|
|
131949
|
+
// packages/safe-js/src/lint/rules/AS-missing-async.ts
|
|
131950
131950
|
function AS_MISSING_ASYNC(source, options = {}) {
|
|
131951
131951
|
return new ASMissingAsyncScanner(options.filename ?? "<input>").scan(source);
|
|
131952
131952
|
}
|
|
@@ -132115,7 +132115,7 @@ function patternTargetContainsAwait2(node) {
|
|
|
132115
132115
|
}
|
|
132116
132116
|
var AS_MISSING_ASYNC_MESSAGE, ASMissingAsyncScanner;
|
|
132117
132117
|
var init_AS_missing_async = __esm({
|
|
132118
|
-
"packages/
|
|
132118
|
+
"packages/safe-js/src/lint/rules/AS-missing-async.ts"() {
|
|
132119
132119
|
"use strict";
|
|
132120
132120
|
init_parser3();
|
|
132121
132121
|
AS_MISSING_ASYNC_MESSAGE = "Functions that contain await must be marked async.";
|
|
@@ -132477,7 +132477,7 @@ var init_AS_missing_async = __esm({
|
|
|
132477
132477
|
}
|
|
132478
132478
|
});
|
|
132479
132479
|
|
|
132480
|
-
// packages/
|
|
132480
|
+
// packages/safe-js/src/lint/rules/AS-mutating-frozen.ts
|
|
132481
132481
|
function AS_MUTATING_FROZEN(source, options = {}) {
|
|
132482
132482
|
return new ASMutatingFrozenScanner(options.filename ?? "<input>").scan(source);
|
|
132483
132483
|
}
|
|
@@ -132516,7 +132516,7 @@ function isImmutableArrayFactoryCall(node, isBound) {
|
|
|
132516
132516
|
}
|
|
132517
132517
|
var MUTATING_ARRAY_METHODS, ASMutatingFrozenScanner;
|
|
132518
132518
|
var init_AS_mutating_frozen = __esm({
|
|
132519
|
-
"packages/
|
|
132519
|
+
"packages/safe-js/src/lint/rules/AS-mutating-frozen.ts"() {
|
|
132520
132520
|
"use strict";
|
|
132521
132521
|
init_parser3();
|
|
132522
132522
|
MUTATING_ARRAY_METHODS = /* @__PURE__ */ new Set([
|
|
@@ -133004,7 +133004,7 @@ var init_AS_mutating_frozen = __esm({
|
|
|
133004
133004
|
}
|
|
133005
133005
|
});
|
|
133006
133006
|
|
|
133007
|
-
// packages/
|
|
133007
|
+
// packages/safe-js/src/lint/rules/AS-needless-template.ts
|
|
133008
133008
|
function AS_NEEDLESS_TEMPLATE(source, options = {}) {
|
|
133009
133009
|
return new ASNeedlessTemplateScanner(source, options.filename ?? "<input>").scan();
|
|
133010
133010
|
}
|
|
@@ -133025,7 +133025,7 @@ function isNeedlessTemplate(node) {
|
|
|
133025
133025
|
}
|
|
133026
133026
|
var AS_NEEDLESS_TEMPLATE_MESSAGE, ASNeedlessTemplateScanner;
|
|
133027
133027
|
var init_AS_needless_template = __esm({
|
|
133028
|
-
"packages/
|
|
133028
|
+
"packages/safe-js/src/lint/rules/AS-needless-template.ts"() {
|
|
133029
133029
|
"use strict";
|
|
133030
133030
|
init_parser3();
|
|
133031
133031
|
AS_NEEDLESS_TEMPLATE_MESSAGE = "Template literals with only one interpolation should use the value or String(value).";
|
|
@@ -133395,7 +133395,7 @@ var init_AS_needless_template = __esm({
|
|
|
133395
133395
|
}
|
|
133396
133396
|
});
|
|
133397
133397
|
|
|
133398
|
-
// packages/
|
|
133398
|
+
// packages/safe-js/src/lint/rules/AS-shadow-global.ts
|
|
133399
133399
|
function AS_SHADOW_GLOBAL(source, options = {}) {
|
|
133400
133400
|
return new ASShadowGlobalScanner(
|
|
133401
133401
|
options.filename ?? "<input>",
|
|
@@ -133404,7 +133404,7 @@ function AS_SHADOW_GLOBAL(source, options = {}) {
|
|
|
133404
133404
|
}
|
|
133405
133405
|
var ASShadowGlobalScanner;
|
|
133406
133406
|
var init_AS_shadow_global = __esm({
|
|
133407
|
-
"packages/
|
|
133407
|
+
"packages/safe-js/src/lint/rules/AS-shadow-global.ts"() {
|
|
133408
133408
|
"use strict";
|
|
133409
133409
|
init_parser3();
|
|
133410
133410
|
init_known_globals();
|
|
@@ -133807,7 +133807,7 @@ var init_AS_shadow_global = __esm({
|
|
|
133807
133807
|
}
|
|
133808
133808
|
});
|
|
133809
133809
|
|
|
133810
|
-
// packages/
|
|
133810
|
+
// packages/safe-js/src/lint/rules/AS-unbounded-loop.ts
|
|
133811
133811
|
function AS_UNBOUNDED_LOOP(source, options = {}) {
|
|
133812
133812
|
return new ASUnboundedLoopScanner(options.filename ?? "<input>").scan(source);
|
|
133813
133813
|
}
|
|
@@ -133865,7 +133865,7 @@ function bodyHasExit(node, exitingLabels, allowUnlabeledBreak) {
|
|
|
133865
133865
|
}
|
|
133866
133866
|
var MESSAGE4, ASUnboundedLoopScanner;
|
|
133867
133867
|
var init_AS_unbounded_loop = __esm({
|
|
133868
|
-
"packages/
|
|
133868
|
+
"packages/safe-js/src/lint/rules/AS-unbounded-loop.ts"() {
|
|
133869
133869
|
"use strict";
|
|
133870
133870
|
init_parser3();
|
|
133871
133871
|
MESSAGE4 = "Unbounded loop or generator source has no static exit with break, return, or throw.";
|
|
@@ -134177,7 +134177,7 @@ var init_AS_unbounded_loop = __esm({
|
|
|
134177
134177
|
}
|
|
134178
134178
|
});
|
|
134179
134179
|
|
|
134180
|
-
// packages/
|
|
134180
|
+
// packages/safe-js/src/lint/rules/AS-unreachable.ts
|
|
134181
134181
|
function AS_UNREACHABLE(source, options = {}) {
|
|
134182
134182
|
return new ASUnreachableScanner(options.filename ?? "<input>").scan(source);
|
|
134183
134183
|
}
|
|
@@ -134186,7 +134186,7 @@ function isEmptyBlockStatement(statement) {
|
|
|
134186
134186
|
}
|
|
134187
134187
|
var ASUnreachableScanner;
|
|
134188
134188
|
var init_AS_unreachable = __esm({
|
|
134189
|
-
"packages/
|
|
134189
|
+
"packages/safe-js/src/lint/rules/AS-unreachable.ts"() {
|
|
134190
134190
|
"use strict";
|
|
134191
134191
|
init_parser3();
|
|
134192
134192
|
ASUnreachableScanner = class {
|
|
@@ -134483,7 +134483,7 @@ var init_AS_unreachable = __esm({
|
|
|
134483
134483
|
}
|
|
134484
134484
|
});
|
|
134485
134485
|
|
|
134486
|
-
// packages/
|
|
134486
|
+
// packages/safe-js/src/lint/rules/AS-unused-import.ts
|
|
134487
134487
|
function AS_UNUSED_IMPORT(source, options = {}) {
|
|
134488
134488
|
const filename = options.filename ?? "<input>";
|
|
134489
134489
|
const unusedImports = collectUnusedImports(source, filename);
|
|
@@ -134588,7 +134588,7 @@ function skipInlineWhitespace(source, offset) {
|
|
|
134588
134588
|
}
|
|
134589
134589
|
var ASUnusedImportScanner;
|
|
134590
134590
|
var init_AS_unused_import = __esm({
|
|
134591
|
-
"packages/
|
|
134591
|
+
"packages/safe-js/src/lint/rules/AS-unused-import.ts"() {
|
|
134592
134592
|
"use strict";
|
|
134593
134593
|
init_parser3();
|
|
134594
134594
|
ASUnusedImportScanner = class {
|
|
@@ -135096,7 +135096,7 @@ var init_AS_unused_import = __esm({
|
|
|
135096
135096
|
}
|
|
135097
135097
|
});
|
|
135098
135098
|
|
|
135099
|
-
// packages/
|
|
135099
|
+
// packages/safe-js/src/lint/index.ts
|
|
135100
135100
|
function lint(source, options = {}) {
|
|
135101
135101
|
const diagnostics = collectDiagnostics(source, options);
|
|
135102
135102
|
if (!options.fix) {
|
|
@@ -135433,7 +135433,7 @@ function hasOnlyRegexLiteralDiagnostics(diagnostics) {
|
|
|
135433
135433
|
}
|
|
135434
135434
|
var RULES, KNOWN_DIAGNOSTIC_CODES;
|
|
135435
135435
|
var init_lint3 = __esm({
|
|
135436
|
-
"packages/
|
|
135436
|
+
"packages/safe-js/src/lint/index.ts"() {
|
|
135437
135437
|
"use strict";
|
|
135438
135438
|
init_AS001();
|
|
135439
135439
|
init_AS003();
|
|
@@ -135532,15 +135532,15 @@ var init_lint3 = __esm({
|
|
|
135532
135532
|
}
|
|
135533
135533
|
});
|
|
135534
135534
|
|
|
135535
|
-
// packages/
|
|
135535
|
+
// packages/safe-js/src/lint.ts
|
|
135536
135536
|
var init_lint4 = __esm({
|
|
135537
|
-
"packages/
|
|
135537
|
+
"packages/safe-js/src/lint.ts"() {
|
|
135538
135538
|
"use strict";
|
|
135539
135539
|
init_lint3();
|
|
135540
135540
|
}
|
|
135541
135541
|
});
|
|
135542
135542
|
|
|
135543
|
-
// packages/
|
|
135543
|
+
// packages/safe-js/src/parse/hash.ts
|
|
135544
135544
|
function hashSource(source) {
|
|
135545
135545
|
try {
|
|
135546
135546
|
return hashParsedAst(parse15(source));
|
|
@@ -135624,7 +135624,7 @@ function shouldIncludeTemplateRaw(record2, key3, includeTemplateRaw) {
|
|
|
135624
135624
|
}
|
|
135625
135625
|
var FNV_OFFSET_BASIS, FNV_PRIME, IGNORED_KEYS;
|
|
135626
135626
|
var init_hash = __esm({
|
|
135627
|
-
"packages/
|
|
135627
|
+
"packages/safe-js/src/parse/hash.ts"() {
|
|
135628
135628
|
"use strict";
|
|
135629
135629
|
init_parser3();
|
|
135630
135630
|
FNV_OFFSET_BASIS = 2166136261;
|
|
@@ -135633,7 +135633,7 @@ var init_hash = __esm({
|
|
|
135633
135633
|
}
|
|
135634
135634
|
});
|
|
135635
135635
|
|
|
135636
|
-
// packages/
|
|
135636
|
+
// packages/safe-js/src/interp/resources.ts
|
|
135637
135637
|
import { AsyncLocalStorage as AsyncLocalStorage3 } from "node:async_hooks";
|
|
135638
135638
|
async function withRunResources(signal, execute2) {
|
|
135639
135639
|
const controller = new AbortController();
|
|
@@ -135668,13 +135668,13 @@ async function withRunResources(signal, execute2) {
|
|
|
135668
135668
|
}
|
|
135669
135669
|
var runResources;
|
|
135670
135670
|
var init_resources = __esm({
|
|
135671
|
-
"packages/
|
|
135671
|
+
"packages/safe-js/src/interp/resources.ts"() {
|
|
135672
135672
|
"use strict";
|
|
135673
135673
|
runResources = new AsyncLocalStorage3();
|
|
135674
135674
|
}
|
|
135675
135675
|
});
|
|
135676
135676
|
|
|
135677
|
-
// packages/
|
|
135677
|
+
// packages/safe-js/src/observability/otel.ts
|
|
135678
135678
|
function bindOtelSpan(value, span) {
|
|
135679
135679
|
spanByAsyncValue.set(value, span);
|
|
135680
135680
|
}
|
|
@@ -135754,7 +135754,7 @@ function readErrorMessage3(error3) {
|
|
|
135754
135754
|
}
|
|
135755
135755
|
var noopOtelSpan2, spanByAsyncValue, activeSpans, activeSinks;
|
|
135756
135756
|
var init_otel2 = __esm({
|
|
135757
|
-
"packages/
|
|
135757
|
+
"packages/safe-js/src/observability/otel.ts"() {
|
|
135758
135758
|
"use strict";
|
|
135759
135759
|
noopOtelSpan2 = {
|
|
135760
135760
|
setAttribute: () => void 0,
|
|
@@ -135767,7 +135767,7 @@ var init_otel2 = __esm({
|
|
|
135767
135767
|
}
|
|
135768
135768
|
});
|
|
135769
135769
|
|
|
135770
|
-
// packages/
|
|
135770
|
+
// packages/safe-js/src/interp/float32.ts
|
|
135771
135771
|
function isFloat32Array(value) {
|
|
135772
135772
|
return ArrayBuffer.isView(value) && Object.getPrototypeOf(value) === Float32Array.prototype && Reflect.apply(readTag, value, []) === "Float32Array";
|
|
135773
135773
|
}
|
|
@@ -135823,7 +135823,7 @@ function copyFloat32Storage(value, state) {
|
|
|
135823
135823
|
}
|
|
135824
135824
|
var typedArrayPrototype, readLength, readOffset, readBuffer, readTag, bufferLength, bufferResizable;
|
|
135825
135825
|
var init_float32 = __esm({
|
|
135826
|
-
"packages/
|
|
135826
|
+
"packages/safe-js/src/interp/float32.ts"() {
|
|
135827
135827
|
"use strict";
|
|
135828
135828
|
typedArrayPrototype = Object.getPrototypeOf(Float32Array.prototype);
|
|
135829
135829
|
readLength = Object.getOwnPropertyDescriptor(typedArrayPrototype, "length").get;
|
|
@@ -135835,7 +135835,7 @@ var init_float32 = __esm({
|
|
|
135835
135835
|
}
|
|
135836
135836
|
});
|
|
135837
135837
|
|
|
135838
|
-
// packages/
|
|
135838
|
+
// packages/safe-js/src/interp/budget.ts
|
|
135839
135839
|
function allocateRegexSteps(steps) {
|
|
135840
135840
|
if (!Number.isInteger(steps) || steps < 0) {
|
|
135841
135841
|
throw new Error("steps must be a non-negative integer.");
|
|
@@ -135861,7 +135861,7 @@ function normalizeLimit(name, value) {
|
|
|
135861
135861
|
}
|
|
135862
135862
|
var REGEX_STEP_LIMIT, DEADLINE_CHECK_INTERVAL, SandboxError, Budget;
|
|
135863
135863
|
var init_budget2 = __esm({
|
|
135864
|
-
"packages/
|
|
135864
|
+
"packages/safe-js/src/interp/budget.ts"() {
|
|
135865
135865
|
"use strict";
|
|
135866
135866
|
init_shape();
|
|
135867
135867
|
REGEX_STEP_LIMIT = 2e3;
|
|
@@ -136089,7 +136089,7 @@ var init_budget2 = __esm({
|
|
|
136089
136089
|
}
|
|
136090
136090
|
});
|
|
136091
136091
|
|
|
136092
|
-
// packages/
|
|
136092
|
+
// packages/safe-js/src/interp/promise-tracker.ts
|
|
136093
136093
|
import { AsyncLocalStorage as AsyncLocalStorage4 } from "node:async_hooks";
|
|
136094
136094
|
function assertPromiseExecutionAllowed() {
|
|
136095
136095
|
const failure = activePromiseTracker.getStore()?.failure;
|
|
@@ -136125,7 +136125,7 @@ async function flushPromiseJobs() {
|
|
|
136125
136125
|
}
|
|
136126
136126
|
var SandboxPromiseRejectionTracker, activePromiseTracker, fatalRejectionCleanup;
|
|
136127
136127
|
var init_promise_tracker = __esm({
|
|
136128
|
-
"packages/
|
|
136128
|
+
"packages/safe-js/src/interp/promise-tracker.ts"() {
|
|
136129
136129
|
"use strict";
|
|
136130
136130
|
init_budget2();
|
|
136131
136131
|
SandboxPromiseRejectionTracker = class {
|
|
@@ -136209,7 +136209,7 @@ var init_promise_tracker = __esm({
|
|
|
136209
136209
|
}
|
|
136210
136210
|
});
|
|
136211
136211
|
|
|
136212
|
-
// packages/
|
|
136212
|
+
// packages/safe-js/src/interp/arguments.ts
|
|
136213
136213
|
function createSandboxArguments(values) {
|
|
136214
136214
|
const result = /* @__PURE__ */ (function() {
|
|
136215
136215
|
return arguments;
|
|
@@ -136254,13 +136254,13 @@ function copySandboxArgumentProperties(source, target, copyValue) {
|
|
|
136254
136254
|
}
|
|
136255
136255
|
var sandboxArgumentsBrand;
|
|
136256
136256
|
var init_arguments = __esm({
|
|
136257
|
-
"packages/
|
|
136257
|
+
"packages/safe-js/src/interp/arguments.ts"() {
|
|
136258
136258
|
"use strict";
|
|
136259
136259
|
sandboxArgumentsBrand = /* @__PURE__ */ Symbol("SandboxArguments");
|
|
136260
136260
|
}
|
|
136261
136261
|
});
|
|
136262
136262
|
|
|
136263
|
-
// packages/
|
|
136263
|
+
// packages/safe-js/src/graph-depth.ts
|
|
136264
136264
|
function assertSandboxDataDepth(depth) {
|
|
136265
136265
|
if (depth > MAX_DATA_DEPTH) {
|
|
136266
136266
|
throw new SandboxError({ budget: "dataDepth", current: depth, limit: MAX_DATA_DEPTH });
|
|
@@ -136324,7 +136324,7 @@ function graphEntries(value) {
|
|
|
136324
136324
|
}
|
|
136325
136325
|
var MAX_DATA_DEPTH, SnapshotBudgetError;
|
|
136326
136326
|
var init_graph_depth = __esm({
|
|
136327
|
-
"packages/
|
|
136327
|
+
"packages/safe-js/src/graph-depth.ts"() {
|
|
136328
136328
|
"use strict";
|
|
136329
136329
|
init_shape();
|
|
136330
136330
|
init_budget2();
|
|
@@ -136348,7 +136348,7 @@ var init_graph_depth = __esm({
|
|
|
136348
136348
|
}
|
|
136349
136349
|
});
|
|
136350
136350
|
|
|
136351
|
-
// packages/
|
|
136351
|
+
// packages/safe-js/src/snapshot/arguments.ts
|
|
136352
136352
|
function serializeArguments(value, serializeValue) {
|
|
136353
136353
|
const properties = /* @__PURE__ */ Object.create(null);
|
|
136354
136354
|
for (const [key3, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
|
|
@@ -136381,12 +136381,12 @@ function serializeArguments(value, serializeValue) {
|
|
|
136381
136381
|
};
|
|
136382
136382
|
}
|
|
136383
136383
|
var init_arguments2 = __esm({
|
|
136384
|
-
"packages/
|
|
136384
|
+
"packages/safe-js/src/snapshot/arguments.ts"() {
|
|
136385
136385
|
"use strict";
|
|
136386
136386
|
}
|
|
136387
136387
|
});
|
|
136388
136388
|
|
|
136389
|
-
// packages/
|
|
136389
|
+
// packages/safe-js/src/snapshot/arrays.ts
|
|
136390
136390
|
function requiresArrayEntries(value) {
|
|
136391
136391
|
const keys = Object.keys(value);
|
|
136392
136392
|
return keys.length !== value.length || keys.some((key3, index) => key3 !== String(index));
|
|
@@ -136415,12 +136415,12 @@ function serializeArray(value, serializeValue) {
|
|
|
136415
136415
|
return { kind: "array", length: value.length, entries };
|
|
136416
136416
|
}
|
|
136417
136417
|
var init_arrays = __esm({
|
|
136418
|
-
"packages/
|
|
136418
|
+
"packages/safe-js/src/snapshot/arrays.ts"() {
|
|
136419
136419
|
"use strict";
|
|
136420
136420
|
}
|
|
136421
136421
|
});
|
|
136422
136422
|
|
|
136423
|
-
// packages/
|
|
136423
|
+
// packages/safe-js/src/snapshot/float32array.ts
|
|
136424
136424
|
function encodeFloat32Storage(value, id, buffers, reference) {
|
|
136425
136425
|
const storage2 = float32Storage(value);
|
|
136426
136426
|
const existing = buffers.get(storage2.buffer);
|
|
@@ -136456,13 +136456,13 @@ function decodeFloat32Storage(value, resolve17) {
|
|
|
136456
136456
|
return new Float32Array(buffer, Number(value.byteOffset), Number(value.length));
|
|
136457
136457
|
}
|
|
136458
136458
|
var init_float32array = __esm({
|
|
136459
|
-
"packages/
|
|
136459
|
+
"packages/safe-js/src/snapshot/float32array.ts"() {
|
|
136460
136460
|
"use strict";
|
|
136461
136461
|
init_float32();
|
|
136462
136462
|
}
|
|
136463
136463
|
});
|
|
136464
136464
|
|
|
136465
|
-
// packages/
|
|
136465
|
+
// packages/safe-js/src/snapshot/dump-format.ts
|
|
136466
136466
|
function serializeSafeJSSnapshot(snapshot2) {
|
|
136467
136467
|
const replayError = Object.getOwnPropertyDescriptor(snapshot2, "replayError");
|
|
136468
136468
|
if (replayError !== void 0) {
|
|
@@ -136670,7 +136670,7 @@ function getEnumerableDataValues(value) {
|
|
|
136670
136670
|
}
|
|
136671
136671
|
var DUMP_FORMAT_VERSION, EXECUTION_SEMANTICS, SKIP_VALUE;
|
|
136672
136672
|
var init_dump_format = __esm({
|
|
136673
|
-
"packages/
|
|
136673
|
+
"packages/safe-js/src/snapshot/dump-format.ts"() {
|
|
136674
136674
|
"use strict";
|
|
136675
136675
|
init_graph_depth();
|
|
136676
136676
|
init_shape();
|
|
@@ -136685,7 +136685,7 @@ var init_dump_format = __esm({
|
|
|
136685
136685
|
}
|
|
136686
136686
|
});
|
|
136687
136687
|
|
|
136688
|
-
// packages/
|
|
136688
|
+
// packages/safe-js/src/snapshot/validation.ts
|
|
136689
136689
|
import { types } from "node:util";
|
|
136690
136690
|
function validateSnapshotData(value) {
|
|
136691
136691
|
validateGenericValue(value, "$", 0, {
|
|
@@ -137097,7 +137097,7 @@ function fail2(code, path191, detail) {
|
|
|
137097
137097
|
}
|
|
137098
137098
|
var DEFAULT_MAX_DEPTH, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_STRING_LENGTH, DEFAULT_MAX_DATA_SIZE, TAGGED_VALUE_KINDS, SnapshotValidationError;
|
|
137099
137099
|
var init_validation = __esm({
|
|
137100
|
-
"packages/
|
|
137100
|
+
"packages/safe-js/src/snapshot/validation.ts"() {
|
|
137101
137101
|
"use strict";
|
|
137102
137102
|
init_shape();
|
|
137103
137103
|
init_dump_format();
|
|
@@ -137136,7 +137136,7 @@ var init_validation = __esm({
|
|
|
137136
137136
|
}
|
|
137137
137137
|
});
|
|
137138
137138
|
|
|
137139
|
-
// packages/
|
|
137139
|
+
// packages/safe-js/src/interp/promise-replay.ts
|
|
137140
137140
|
import { AsyncLocalStorage as AsyncLocalStorage5 } from "node:async_hooks";
|
|
137141
137141
|
function validateReplay(value) {
|
|
137142
137142
|
validateSnapshotData(value);
|
|
@@ -137215,7 +137215,7 @@ function isCounter(value) {
|
|
|
137215
137215
|
}
|
|
137216
137216
|
var PromiseReplay, promiseReplayContext;
|
|
137217
137217
|
var init_promise_replay = __esm({
|
|
137218
|
-
"packages/
|
|
137218
|
+
"packages/safe-js/src/interp/promise-replay.ts"() {
|
|
137219
137219
|
"use strict";
|
|
137220
137220
|
init_validation();
|
|
137221
137221
|
init_budget2();
|
|
@@ -137490,7 +137490,7 @@ var init_promise_replay = __esm({
|
|
|
137490
137490
|
}
|
|
137491
137491
|
});
|
|
137492
137492
|
|
|
137493
|
-
// packages/
|
|
137493
|
+
// packages/safe-js/src/snapshot/replay-data.ts
|
|
137494
137494
|
function encodeReplayData(value, options = {}) {
|
|
137495
137495
|
const nodes = [];
|
|
137496
137496
|
const seen = /* @__PURE__ */ new WeakMap();
|
|
@@ -137781,7 +137781,7 @@ function own(value, key3) {
|
|
|
137781
137781
|
}
|
|
137782
137782
|
var MissingReplayCapabilityError;
|
|
137783
137783
|
var init_replay_data = __esm({
|
|
137784
|
-
"packages/
|
|
137784
|
+
"packages/safe-js/src/snapshot/replay-data.ts"() {
|
|
137785
137785
|
"use strict";
|
|
137786
137786
|
init_graph_depth();
|
|
137787
137787
|
init_float32();
|
|
@@ -137795,7 +137795,7 @@ var init_replay_data = __esm({
|
|
|
137795
137795
|
}
|
|
137796
137796
|
});
|
|
137797
137797
|
|
|
137798
|
-
// packages/
|
|
137798
|
+
// packages/safe-js/src/snapshot/policy.ts
|
|
137799
137799
|
function registerPendingHostCallPolicy(registration) {
|
|
137800
137800
|
const moduleId = readRequiredString2(registration.moduleId, "moduleId");
|
|
137801
137801
|
const operation = readRequiredString2(registration.operation, "operation");
|
|
@@ -137821,7 +137821,7 @@ function readPendingHostCallPolicyModeValue(value) {
|
|
|
137821
137821
|
}
|
|
137822
137822
|
var MODULE_PENDING_HOST_CALL_POLICIES;
|
|
137823
137823
|
var init_policy = __esm({
|
|
137824
|
-
"packages/
|
|
137824
|
+
"packages/safe-js/src/snapshot/policy.ts"() {
|
|
137825
137825
|
"use strict";
|
|
137826
137826
|
MODULE_PENDING_HOST_CALL_POLICIES = Object.assign(
|
|
137827
137827
|
/* @__PURE__ */ Object.create(null),
|
|
@@ -137844,7 +137844,7 @@ var init_policy = __esm({
|
|
|
137844
137844
|
}
|
|
137845
137845
|
});
|
|
137846
137846
|
|
|
137847
|
-
// packages/
|
|
137847
|
+
// packages/safe-js/src/interp/host-call.ts
|
|
137848
137848
|
import { createHash as createHash13, randomUUID as randomUUID49 } from "node:crypto";
|
|
137849
137849
|
function copyOutcome(outcome) {
|
|
137850
137850
|
return outcome.status === "fulfilled" ? { status: "fulfilled", value: cloneSandboxValue(outcome.value) } : { status: "rejected", reason: cloneSandboxValue(outcome.reason) };
|
|
@@ -138063,7 +138063,7 @@ function normalize2(value, seen) {
|
|
|
138063
138063
|
}
|
|
138064
138064
|
var HostCallResumabilityError, UnresolvedReplayCapabilityError, HostCallJournal;
|
|
138065
138065
|
var init_host_call = __esm({
|
|
138066
|
-
"packages/
|
|
138066
|
+
"packages/safe-js/src/interp/host-call.ts"() {
|
|
138067
138067
|
"use strict";
|
|
138068
138068
|
init_float32();
|
|
138069
138069
|
init_values();
|
|
@@ -138444,7 +138444,7 @@ var init_host_call = __esm({
|
|
|
138444
138444
|
}
|
|
138445
138445
|
});
|
|
138446
138446
|
|
|
138447
|
-
// packages/
|
|
138447
|
+
// packages/safe-js/src/interp/exceptions.ts
|
|
138448
138448
|
async function evaluateThrowStatement(node, context, evaluateNode3) {
|
|
138449
138449
|
const argument = await evaluateNode3(node.argument, context);
|
|
138450
138450
|
if (argument.kind !== "normal") {
|
|
@@ -138864,7 +138864,7 @@ function copyObjectRest(value, excludedKeys) {
|
|
|
138864
138864
|
}
|
|
138865
138865
|
var capturedExceptionBrand;
|
|
138866
138866
|
var init_exceptions = __esm({
|
|
138867
|
-
"packages/
|
|
138867
|
+
"packages/safe-js/src/interp/exceptions.ts"() {
|
|
138868
138868
|
"use strict";
|
|
138869
138869
|
init_shape();
|
|
138870
138870
|
init_budget2();
|
|
@@ -138875,7 +138875,7 @@ var init_exceptions = __esm({
|
|
|
138875
138875
|
}
|
|
138876
138876
|
});
|
|
138877
138877
|
|
|
138878
|
-
// packages/
|
|
138878
|
+
// packages/safe-js/src/interp/running-state.ts
|
|
138879
138879
|
function enterRunningState(object) {
|
|
138880
138880
|
if (runningObjects.has(object)) {
|
|
138881
138881
|
throw new SandboxError("reentry");
|
|
@@ -138915,7 +138915,7 @@ function assertSnapshotInactive(snapshot2) {
|
|
|
138915
138915
|
}
|
|
138916
138916
|
var runningObjects, lockedCollections, activeSnapshots;
|
|
138917
138917
|
var init_running_state = __esm({
|
|
138918
|
-
"packages/
|
|
138918
|
+
"packages/safe-js/src/interp/running-state.ts"() {
|
|
138919
138919
|
"use strict";
|
|
138920
138920
|
init_budget2();
|
|
138921
138921
|
runningObjects = /* @__PURE__ */ new WeakSet();
|
|
@@ -138924,7 +138924,7 @@ var init_running_state = __esm({
|
|
|
138924
138924
|
}
|
|
138925
138925
|
});
|
|
138926
138926
|
|
|
138927
|
-
// packages/
|
|
138927
|
+
// packages/safe-js/src/interp/iteration.ts
|
|
138928
138928
|
function getSandboxIterator(value) {
|
|
138929
138929
|
if (isFloat32Array(value)) {
|
|
138930
138930
|
return syncIterator(Float32Array.prototype.values.call(value));
|
|
@@ -139022,7 +139022,7 @@ function syncIterator(iterator) {
|
|
|
139022
139022
|
};
|
|
139023
139023
|
}
|
|
139024
139024
|
var init_iteration = __esm({
|
|
139025
|
-
"packages/
|
|
139025
|
+
"packages/safe-js/src/interp/iteration.ts"() {
|
|
139026
139026
|
"use strict";
|
|
139027
139027
|
init_values();
|
|
139028
139028
|
init_running_state();
|
|
@@ -139030,7 +139030,7 @@ var init_iteration = __esm({
|
|
|
139030
139030
|
}
|
|
139031
139031
|
});
|
|
139032
139032
|
|
|
139033
|
-
// packages/
|
|
139033
|
+
// packages/safe-js/src/interp/jobs.ts
|
|
139034
139034
|
import { AsyncLocalStorage as AsyncLocalStorage6 } from "node:async_hooks";
|
|
139035
139035
|
function runPromiseJob(task) {
|
|
139036
139036
|
const job = activeJob.getStore();
|
|
@@ -139063,7 +139063,7 @@ async function suspendJob(pending) {
|
|
|
139063
139063
|
}
|
|
139064
139064
|
var activeJob, SandboxJobQueue;
|
|
139065
139065
|
var init_jobs4 = __esm({
|
|
139066
|
-
"packages/
|
|
139066
|
+
"packages/safe-js/src/interp/jobs.ts"() {
|
|
139067
139067
|
"use strict";
|
|
139068
139068
|
activeJob = new AsyncLocalStorage6();
|
|
139069
139069
|
SandboxJobQueue = class {
|
|
@@ -139122,7 +139122,7 @@ var init_jobs4 = __esm({
|
|
|
139122
139122
|
}
|
|
139123
139123
|
});
|
|
139124
139124
|
|
|
139125
|
-
// packages/
|
|
139125
|
+
// packages/safe-js/src/interp/promise.ts
|
|
139126
139126
|
function isSandboxPromiseConstructor(value) {
|
|
139127
139127
|
return isSandboxClosure(value) && promiseConstructors.has(value);
|
|
139128
139128
|
}
|
|
@@ -139858,7 +139858,7 @@ function isPromiseLike3(value) {
|
|
|
139858
139858
|
}
|
|
139859
139859
|
var promiseConstructors, intrinsicPromiseConstructors, promisePrototypes;
|
|
139860
139860
|
var init_promise = __esm({
|
|
139861
|
-
"packages/
|
|
139861
|
+
"packages/safe-js/src/interp/promise.ts"() {
|
|
139862
139862
|
"use strict";
|
|
139863
139863
|
init_budget2();
|
|
139864
139864
|
init_exceptions();
|
|
@@ -139872,7 +139872,7 @@ var init_promise = __esm({
|
|
|
139872
139872
|
}
|
|
139873
139873
|
});
|
|
139874
139874
|
|
|
139875
|
-
// packages/
|
|
139875
|
+
// packages/safe-js/src/interp/cancel.ts
|
|
139876
139876
|
import { AsyncLocalStorage as AsyncLocalStorage7 } from "node:async_hooks";
|
|
139877
139877
|
function withCancellationSignal(signal, task) {
|
|
139878
139878
|
return activeCancellation.run({ signal, host: false }, task);
|
|
@@ -140047,7 +140047,7 @@ function isPromiseLike4(value) {
|
|
|
140047
140047
|
}
|
|
140048
140048
|
var activeCancellation, sandboxPromises, cancelableOutcomes;
|
|
140049
140049
|
var init_cancel2 = __esm({
|
|
140050
|
-
"packages/
|
|
140050
|
+
"packages/safe-js/src/interp/cancel.ts"() {
|
|
140051
140051
|
"use strict";
|
|
140052
140052
|
init_values();
|
|
140053
140053
|
init_promise_tracker();
|
|
@@ -140059,7 +140059,7 @@ var init_cancel2 = __esm({
|
|
|
140059
140059
|
}
|
|
140060
140060
|
});
|
|
140061
140061
|
|
|
140062
|
-
// packages/
|
|
140062
|
+
// packages/safe-js/src/interp/values.ts
|
|
140063
140063
|
function createSandboxClosure(input) {
|
|
140064
140064
|
const closure = {
|
|
140065
140065
|
kind: "fn",
|
|
@@ -140746,7 +140746,7 @@ function joinArrayPath(path191, key3) {
|
|
|
140746
140746
|
}
|
|
140747
140747
|
var sandboxClosureBrand, sandboxGeneratorBrand, sandboxMapBrand, sandboxPromiseBrand, sandboxRegexBrand, sandboxRegexPattern, sandboxSetBrand, sandboxRetainedValues;
|
|
140748
140748
|
var init_values = __esm({
|
|
140749
|
-
"packages/
|
|
140749
|
+
"packages/safe-js/src/interp/values.ts"() {
|
|
140750
140750
|
"use strict";
|
|
140751
140751
|
init_otel2();
|
|
140752
140752
|
init_float32();
|
|
@@ -140770,7 +140770,7 @@ var init_values = __esm({
|
|
|
140770
140770
|
}
|
|
140771
140771
|
});
|
|
140772
140772
|
|
|
140773
|
-
// packages/
|
|
140773
|
+
// packages/safe-js/src/interp/globals/math.ts
|
|
140774
140774
|
function createMathGlobals(options = {}) {
|
|
140775
140775
|
const random = options.random ?? Math.random;
|
|
140776
140776
|
const mathObject = {
|
|
@@ -140818,7 +140818,7 @@ function normalizeSeed(seed) {
|
|
|
140818
140818
|
}
|
|
140819
140819
|
var mathMethods;
|
|
140820
140820
|
var init_math = __esm({
|
|
140821
|
-
"packages/
|
|
140821
|
+
"packages/safe-js/src/interp/globals/math.ts"() {
|
|
140822
140822
|
"use strict";
|
|
140823
140823
|
init_values();
|
|
140824
140824
|
mathMethods = {
|
|
@@ -140860,7 +140860,7 @@ var init_math = __esm({
|
|
|
140860
140860
|
}
|
|
140861
140861
|
});
|
|
140862
140862
|
|
|
140863
|
-
// packages/
|
|
140863
|
+
// packages/safe-js/src/random.ts
|
|
140864
140864
|
import { randomInt } from "node:crypto";
|
|
140865
140865
|
function createReplayableRandom(options = {}) {
|
|
140866
140866
|
const snapshot2 = options.snapshot;
|
|
@@ -140875,13 +140875,13 @@ function createReplayableRandom(options = {}) {
|
|
|
140875
140875
|
return { seed: saved?.seed ?? generator.snapshot(), ...generator };
|
|
140876
140876
|
}
|
|
140877
140877
|
var init_random = __esm({
|
|
140878
|
-
"packages/
|
|
140878
|
+
"packages/safe-js/src/random.ts"() {
|
|
140879
140879
|
"use strict";
|
|
140880
140880
|
init_math();
|
|
140881
140881
|
}
|
|
140882
140882
|
});
|
|
140883
140883
|
|
|
140884
|
-
// packages/
|
|
140884
|
+
// packages/safe-js/src/snapshot/migration.ts
|
|
140885
140885
|
function validateMigrationSemantics(value) {
|
|
140886
140886
|
if (!["jobs-v1", "jobs-v2", "jobs-v3", "jobs-v4", "jobs-v5", "jobs-v6", "jobs-v7"].includes(
|
|
140887
140887
|
value
|
|
@@ -140966,7 +140966,7 @@ function isCheckpointDigest(value) {
|
|
|
140966
140966
|
return typeof value === "string" && value.length === 64 && [...value].every((character2) => "0123456789abcdef".includes(character2));
|
|
140967
140967
|
}
|
|
140968
140968
|
var init_migration = __esm({
|
|
140969
|
-
"packages/
|
|
140969
|
+
"packages/safe-js/src/snapshot/migration.ts"() {
|
|
140970
140970
|
"use strict";
|
|
140971
140971
|
init_host_call();
|
|
140972
140972
|
init_replay_data();
|
|
@@ -140974,7 +140974,7 @@ var init_migration = __esm({
|
|
|
140974
140974
|
}
|
|
140975
140975
|
});
|
|
140976
140976
|
|
|
140977
|
-
// packages/
|
|
140977
|
+
// packages/safe-js/src/restore.ts
|
|
140978
140978
|
function restore2(snapshot2, options) {
|
|
140979
140979
|
assertSnapshotInactive(snapshot2);
|
|
140980
140980
|
validateDumpEnvelope(snapshot2);
|
|
@@ -140994,7 +140994,7 @@ function restore2(snapshot2, options) {
|
|
|
140994
140994
|
}
|
|
140995
140995
|
var SnapshotMismatchError;
|
|
140996
140996
|
var init_restore = __esm({
|
|
140997
|
-
"packages/
|
|
140997
|
+
"packages/safe-js/src/restore.ts"() {
|
|
140998
140998
|
"use strict";
|
|
140999
140999
|
init_hash();
|
|
141000
141000
|
init_shape();
|
|
@@ -141018,7 +141018,7 @@ var init_restore = __esm({
|
|
|
141018
141018
|
}
|
|
141019
141019
|
});
|
|
141020
141020
|
|
|
141021
|
-
// packages/
|
|
141021
|
+
// packages/safe-js/src/interp/generator.ts
|
|
141022
141022
|
function createGeneratorChannel(body) {
|
|
141023
141023
|
let state = "unstarted";
|
|
141024
141024
|
let signal = deferred();
|
|
@@ -141116,13 +141116,13 @@ function deferred() {
|
|
|
141116
141116
|
return { promise, reject, resolve: resolve17 };
|
|
141117
141117
|
}
|
|
141118
141118
|
var init_generator = __esm({
|
|
141119
|
-
"packages/
|
|
141119
|
+
"packages/safe-js/src/interp/generator.ts"() {
|
|
141120
141120
|
"use strict";
|
|
141121
141121
|
init_running_state();
|
|
141122
141122
|
}
|
|
141123
141123
|
});
|
|
141124
141124
|
|
|
141125
|
-
// packages/
|
|
141125
|
+
// packages/safe-js/src/interp/patterns.ts
|
|
141126
141126
|
async function bindPattern2(pattern, value, target, scope, context) {
|
|
141127
141127
|
switch (pattern.type) {
|
|
141128
141128
|
case "Identifier":
|
|
@@ -141330,13 +141330,13 @@ function defineProperty(target, key3, value) {
|
|
|
141330
141330
|
});
|
|
141331
141331
|
}
|
|
141332
141332
|
var init_patterns = __esm({
|
|
141333
|
-
"packages/
|
|
141333
|
+
"packages/safe-js/src/interp/patterns.ts"() {
|
|
141334
141334
|
"use strict";
|
|
141335
141335
|
init_values();
|
|
141336
141336
|
}
|
|
141337
141337
|
});
|
|
141338
141338
|
|
|
141339
|
-
// packages/
|
|
141339
|
+
// packages/safe-js/src/interp/var-hoist.ts
|
|
141340
141340
|
function hoistVarDeclarations(node, scope) {
|
|
141341
141341
|
for (const declaration of hoistedVarDeclarations([node])) {
|
|
141342
141342
|
for (const declarator of declaration.declarations) {
|
|
@@ -141347,13 +141347,13 @@ function hoistVarDeclarations(node, scope) {
|
|
|
141347
141347
|
}
|
|
141348
141348
|
}
|
|
141349
141349
|
var init_var_hoist = __esm({
|
|
141350
|
-
"packages/
|
|
141350
|
+
"packages/safe-js/src/interp/var-hoist.ts"() {
|
|
141351
141351
|
"use strict";
|
|
141352
141352
|
init_bindings();
|
|
141353
141353
|
}
|
|
141354
141354
|
});
|
|
141355
141355
|
|
|
141356
|
-
// packages/
|
|
141356
|
+
// packages/safe-js/src/interp/async.ts
|
|
141357
141357
|
function emitResumeBreakpoint(context, breakpoint) {
|
|
141358
141358
|
context.onYield?.({
|
|
141359
141359
|
...breakpoint,
|
|
@@ -141618,7 +141618,7 @@ function normalizeClosureResult(result, budget) {
|
|
|
141618
141618
|
});
|
|
141619
141619
|
}
|
|
141620
141620
|
var init_async = __esm({
|
|
141621
|
-
"packages/
|
|
141621
|
+
"packages/safe-js/src/interp/async.ts"() {
|
|
141622
141622
|
"use strict";
|
|
141623
141623
|
init_generator();
|
|
141624
141624
|
init_otel2();
|
|
@@ -141632,7 +141632,7 @@ var init_async = __esm({
|
|
|
141632
141632
|
}
|
|
141633
141633
|
});
|
|
141634
141634
|
|
|
141635
|
-
// packages/
|
|
141635
|
+
// packages/safe-js/src/interp/host-bridge.ts
|
|
141636
141636
|
function declareHostOperation(operation, policy, options = {}) {
|
|
141637
141637
|
hostOperationPolicies.set(operation, policy);
|
|
141638
141638
|
if (options.onReplay !== void 0) hostOperationReplayHandlers.set(operation, options.onReplay);
|
|
@@ -142507,7 +142507,7 @@ function describeValue2(value) {
|
|
|
142507
142507
|
}
|
|
142508
142508
|
var AsyncFunction, hostErrorMetadata, hostOperationPolicies, hostOperationReplayHandlers;
|
|
142509
142509
|
var init_host_bridge = __esm({
|
|
142510
|
-
"packages/
|
|
142510
|
+
"packages/safe-js/src/interp/host-bridge.ts"() {
|
|
142511
142511
|
"use strict";
|
|
142512
142512
|
init_async();
|
|
142513
142513
|
init_shape();
|
|
@@ -142534,7 +142534,7 @@ var init_host_bridge = __esm({
|
|
|
142534
142534
|
}
|
|
142535
142535
|
});
|
|
142536
142536
|
|
|
142537
|
-
// packages/
|
|
142537
|
+
// packages/safe-js/src/interp/globals/console-json.ts
|
|
142538
142538
|
function createConsoleJsonGlobals(options) {
|
|
142539
142539
|
const sink = options.sink ?? console;
|
|
142540
142540
|
return {
|
|
@@ -142809,14 +142809,14 @@ function defineDataProperty8(target, key3, value) {
|
|
|
142809
142809
|
});
|
|
142810
142810
|
}
|
|
142811
142811
|
var init_console_json = __esm({
|
|
142812
|
-
"packages/
|
|
142812
|
+
"packages/safe-js/src/interp/globals/console-json.ts"() {
|
|
142813
142813
|
"use strict";
|
|
142814
142814
|
init_host_bridge();
|
|
142815
142815
|
init_values();
|
|
142816
142816
|
}
|
|
142817
142817
|
});
|
|
142818
142818
|
|
|
142819
|
-
// packages/
|
|
142819
|
+
// packages/safe-js/src/interp/globals/collections.ts
|
|
142820
142820
|
function createCollectionGlobals(options) {
|
|
142821
142821
|
const mapConstructor = createSandboxClosure({
|
|
142822
142822
|
sandbox: true,
|
|
@@ -142924,7 +142924,7 @@ function createBudgetedSet(values, budget) {
|
|
|
142924
142924
|
}
|
|
142925
142925
|
var mapConstructors, setConstructors;
|
|
142926
142926
|
var init_collections = __esm({
|
|
142927
|
-
"packages/
|
|
142927
|
+
"packages/safe-js/src/interp/globals/collections.ts"() {
|
|
142928
142928
|
"use strict";
|
|
142929
142929
|
init_iteration();
|
|
142930
142930
|
init_values();
|
|
@@ -142933,7 +142933,7 @@ var init_collections = __esm({
|
|
|
142933
142933
|
}
|
|
142934
142934
|
});
|
|
142935
142935
|
|
|
142936
|
-
// packages/
|
|
142936
|
+
// packages/safe-js/src/interp/globals/float32array.ts
|
|
142937
142937
|
function createFloat32ArrayGlobal(budget) {
|
|
142938
142938
|
const constructor = createSandboxClosure({
|
|
142939
142939
|
sandbox: true,
|
|
@@ -143058,7 +143058,7 @@ function relativeIndex(value, length, fallback) {
|
|
|
143058
143058
|
}
|
|
143059
143059
|
var constructors;
|
|
143060
143060
|
var init_float32array2 = __esm({
|
|
143061
|
-
"packages/
|
|
143061
|
+
"packages/safe-js/src/interp/globals/float32array.ts"() {
|
|
143062
143062
|
"use strict";
|
|
143063
143063
|
init_float32();
|
|
143064
143064
|
init_values();
|
|
@@ -143066,7 +143066,7 @@ var init_float32array2 = __esm({
|
|
|
143066
143066
|
}
|
|
143067
143067
|
});
|
|
143068
143068
|
|
|
143069
|
-
// packages/
|
|
143069
|
+
// packages/safe-js/src/interp/globals/error.ts
|
|
143070
143070
|
function createErrorGlobals(options) {
|
|
143071
143071
|
return Object.fromEntries(
|
|
143072
143072
|
errorNames.map((name) => [name, createErrorConstructor(name, options.budget)])
|
|
@@ -143110,7 +143110,7 @@ function isObjectLike(value) {
|
|
|
143110
143110
|
}
|
|
143111
143111
|
var errorConstructorNames, errorNames;
|
|
143112
143112
|
var init_error = __esm({
|
|
143113
|
-
"packages/
|
|
143113
|
+
"packages/safe-js/src/interp/globals/error.ts"() {
|
|
143114
143114
|
"use strict";
|
|
143115
143115
|
init_exceptions();
|
|
143116
143116
|
init_values();
|
|
@@ -143126,7 +143126,7 @@ var init_error = __esm({
|
|
|
143126
143126
|
}
|
|
143127
143127
|
});
|
|
143128
143128
|
|
|
143129
|
-
// packages/
|
|
143129
|
+
// packages/safe-js/src/interp/globals/regex.ts
|
|
143130
143130
|
function createRegexGlobals() {
|
|
143131
143131
|
const construct = (args) => createSandboxRegex(String(args[0] ?? ""), String(args[1] ?? ""));
|
|
143132
143132
|
return {
|
|
@@ -143134,13 +143134,13 @@ function createRegexGlobals() {
|
|
|
143134
143134
|
};
|
|
143135
143135
|
}
|
|
143136
143136
|
var init_regex = __esm({
|
|
143137
|
-
"packages/
|
|
143137
|
+
"packages/safe-js/src/interp/globals/regex.ts"() {
|
|
143138
143138
|
"use strict";
|
|
143139
143139
|
init_values();
|
|
143140
143140
|
}
|
|
143141
143141
|
});
|
|
143142
143142
|
|
|
143143
|
-
// packages/
|
|
143143
|
+
// packages/safe-js/src/interp/globals/misc.ts
|
|
143144
143144
|
function createMiscGlobals(options) {
|
|
143145
143145
|
return {
|
|
143146
143146
|
structuredClone: createSandboxClosure({
|
|
@@ -143202,14 +143202,14 @@ function assertStructuredCloneable(value, seen) {
|
|
|
143202
143202
|
}
|
|
143203
143203
|
}
|
|
143204
143204
|
var init_misc = __esm({
|
|
143205
|
-
"packages/
|
|
143205
|
+
"packages/safe-js/src/interp/globals/misc.ts"() {
|
|
143206
143206
|
"use strict";
|
|
143207
143207
|
init_graph_depth();
|
|
143208
143208
|
init_values();
|
|
143209
143209
|
}
|
|
143210
143210
|
});
|
|
143211
143211
|
|
|
143212
|
-
// packages/
|
|
143212
|
+
// packages/safe-js/src/interp/globals/object-array.ts
|
|
143213
143213
|
function createObjectArrayGlobals(options) {
|
|
143214
143214
|
return {
|
|
143215
143215
|
Object: {
|
|
@@ -143520,7 +143520,7 @@ function getTemplateRawParts(template2) {
|
|
|
143520
143520
|
return raw;
|
|
143521
143521
|
}
|
|
143522
143522
|
var init_object_array = __esm({
|
|
143523
|
-
"packages/
|
|
143523
|
+
"packages/safe-js/src/interp/globals/object-array.ts"() {
|
|
143524
143524
|
"use strict";
|
|
143525
143525
|
init_shape();
|
|
143526
143526
|
init_float32();
|
|
@@ -143530,7 +143530,7 @@ var init_object_array = __esm({
|
|
|
143530
143530
|
}
|
|
143531
143531
|
});
|
|
143532
143532
|
|
|
143533
|
-
// packages/
|
|
143533
|
+
// packages/safe-js/src/interp/methods/array.ts
|
|
143534
143534
|
function getArrayMember(value, property, options) {
|
|
143535
143535
|
const index = getArrayIndex(property);
|
|
143536
143536
|
if (index !== void 0) {
|
|
@@ -144121,7 +144121,7 @@ function toIntegerOrInfinity(value) {
|
|
|
144121
144121
|
}
|
|
144122
144122
|
var activeArrayCallbacks, arrayMethodNames;
|
|
144123
144123
|
var init_array = __esm({
|
|
144124
|
-
"packages/
|
|
144124
|
+
"packages/safe-js/src/interp/methods/array.ts"() {
|
|
144125
144125
|
"use strict";
|
|
144126
144126
|
init_values();
|
|
144127
144127
|
init_running_state();
|
|
@@ -144164,7 +144164,7 @@ var init_array = __esm({
|
|
|
144164
144164
|
}
|
|
144165
144165
|
});
|
|
144166
144166
|
|
|
144167
|
-
// packages/
|
|
144167
|
+
// packages/safe-js/src/interp/methods/function.ts
|
|
144168
144168
|
function getFunctionMember(target, property, options) {
|
|
144169
144169
|
const propertyValue = target.properties?.[String(property)];
|
|
144170
144170
|
if (propertyValue !== void 0 || Object.hasOwn(target.properties ?? {}, String(property))) {
|
|
@@ -144221,14 +144221,14 @@ function callFunctionMethod(target, methodName, args, options, stack) {
|
|
|
144221
144221
|
}
|
|
144222
144222
|
var functionMethodNames;
|
|
144223
144223
|
var init_function = __esm({
|
|
144224
|
-
"packages/
|
|
144224
|
+
"packages/safe-js/src/interp/methods/function.ts"() {
|
|
144225
144225
|
"use strict";
|
|
144226
144226
|
init_values();
|
|
144227
144227
|
functionMethodNames = /* @__PURE__ */ new Set(["apply", "bind", "call"]);
|
|
144228
144228
|
}
|
|
144229
144229
|
});
|
|
144230
144230
|
|
|
144231
|
-
// packages/
|
|
144231
|
+
// packages/safe-js/src/interp/methods/collection-callback.ts
|
|
144232
144232
|
function enterKeyedCollectionCallback(target, keys, budget) {
|
|
144233
144233
|
let state = activeCallbacks.get(target);
|
|
144234
144234
|
if (state === void 0) {
|
|
@@ -144289,14 +144289,14 @@ function updatePendingKeys(cursor2, mutation, key3) {
|
|
|
144289
144289
|
}
|
|
144290
144290
|
var activeCallbacks;
|
|
144291
144291
|
var init_collection_callback = __esm({
|
|
144292
|
-
"packages/
|
|
144292
|
+
"packages/safe-js/src/interp/methods/collection-callback.ts"() {
|
|
144293
144293
|
"use strict";
|
|
144294
144294
|
init_running_state();
|
|
144295
144295
|
activeCallbacks = /* @__PURE__ */ new WeakMap();
|
|
144296
144296
|
}
|
|
144297
144297
|
});
|
|
144298
144298
|
|
|
144299
|
-
// packages/
|
|
144299
|
+
// packages/safe-js/src/interp/methods/map.ts
|
|
144300
144300
|
function isMapMethodName(value) {
|
|
144301
144301
|
return typeof value === "string" && mapMethodNames.has(value);
|
|
144302
144302
|
}
|
|
@@ -144369,7 +144369,7 @@ async function callMapMethod(target, methodName, args, options, stack = []) {
|
|
|
144369
144369
|
}
|
|
144370
144370
|
var mapMethodNames;
|
|
144371
144371
|
var init_map = __esm({
|
|
144372
|
-
"packages/
|
|
144372
|
+
"packages/safe-js/src/interp/methods/map.ts"() {
|
|
144373
144373
|
"use strict";
|
|
144374
144374
|
init_values();
|
|
144375
144375
|
init_running_state();
|
|
@@ -144388,7 +144388,7 @@ var init_map = __esm({
|
|
|
144388
144388
|
}
|
|
144389
144389
|
});
|
|
144390
144390
|
|
|
144391
|
-
// packages/
|
|
144391
|
+
// packages/safe-js/src/interp/methods/number.ts
|
|
144392
144392
|
function getNumberMember(value, property, budget) {
|
|
144393
144393
|
if (!isNumberMethodName(property)) {
|
|
144394
144394
|
return void 0;
|
|
@@ -144453,7 +144453,7 @@ function toIntegerOrInfinity2(value) {
|
|
|
144453
144453
|
}
|
|
144454
144454
|
var numberMethodNames;
|
|
144455
144455
|
var init_number = __esm({
|
|
144456
|
-
"packages/
|
|
144456
|
+
"packages/safe-js/src/interp/methods/number.ts"() {
|
|
144457
144457
|
"use strict";
|
|
144458
144458
|
init_values();
|
|
144459
144459
|
numberMethodNames = /* @__PURE__ */ new Set([
|
|
@@ -144465,7 +144465,7 @@ var init_number = __esm({
|
|
|
144465
144465
|
}
|
|
144466
144466
|
});
|
|
144467
144467
|
|
|
144468
|
-
// packages/
|
|
144468
|
+
// packages/safe-js/src/interp/methods/generator.ts
|
|
144469
144469
|
function getGeneratorMember(target, property, budget) {
|
|
144470
144470
|
if (typeof property !== "string" || !generatorMethodNames.has(property)) {
|
|
144471
144471
|
return void 0;
|
|
@@ -144485,7 +144485,7 @@ function getGeneratorMember(target, property, budget) {
|
|
|
144485
144485
|
}
|
|
144486
144486
|
var generatorMethodNames;
|
|
144487
144487
|
var init_generator2 = __esm({
|
|
144488
|
-
"packages/
|
|
144488
|
+
"packages/safe-js/src/interp/methods/generator.ts"() {
|
|
144489
144489
|
"use strict";
|
|
144490
144490
|
init_iteration();
|
|
144491
144491
|
init_values();
|
|
@@ -144493,7 +144493,7 @@ var init_generator2 = __esm({
|
|
|
144493
144493
|
}
|
|
144494
144494
|
});
|
|
144495
144495
|
|
|
144496
|
-
// packages/
|
|
144496
|
+
// packages/safe-js/src/interp/regex/engine.ts
|
|
144497
144497
|
function matchRegex(pattern, input, lastIndex = 0) {
|
|
144498
144498
|
const startIndex = pattern.flags.global ? normalizeLastIndex(lastIndex) : 0;
|
|
144499
144499
|
return matchRegexFrom(pattern, input, startIndex);
|
|
@@ -144723,13 +144723,13 @@ function isLineTerminator(character2) {
|
|
|
144723
144723
|
return character2 === "\n" || character2 === "\r" || character2 === "\u2028" || character2 === "\u2029";
|
|
144724
144724
|
}
|
|
144725
144725
|
var init_engine2 = __esm({
|
|
144726
|
-
"packages/
|
|
144726
|
+
"packages/safe-js/src/interp/regex/engine.ts"() {
|
|
144727
144727
|
"use strict";
|
|
144728
144728
|
init_budget2();
|
|
144729
144729
|
}
|
|
144730
144730
|
});
|
|
144731
144731
|
|
|
144732
|
-
// packages/
|
|
144732
|
+
// packages/safe-js/src/interp/methods/regex.ts
|
|
144733
144733
|
function isRegexMethodName(property) {
|
|
144734
144734
|
return typeof property === "string" && regexMethodNames.has(property);
|
|
144735
144735
|
}
|
|
@@ -144774,7 +144774,7 @@ function toMatchArray(match, input) {
|
|
|
144774
144774
|
}
|
|
144775
144775
|
var regexMethodNames;
|
|
144776
144776
|
var init_regex2 = __esm({
|
|
144777
|
-
"packages/
|
|
144777
|
+
"packages/safe-js/src/interp/methods/regex.ts"() {
|
|
144778
144778
|
"use strict";
|
|
144779
144779
|
init_values();
|
|
144780
144780
|
init_engine2();
|
|
@@ -144782,7 +144782,7 @@ var init_regex2 = __esm({
|
|
|
144782
144782
|
}
|
|
144783
144783
|
});
|
|
144784
144784
|
|
|
144785
|
-
// packages/
|
|
144785
|
+
// packages/safe-js/src/interp/methods/string.ts
|
|
144786
144786
|
function getStringMember(value, property, budget) {
|
|
144787
144787
|
const index = getStringIndex(property);
|
|
144788
144788
|
if (index !== void 0) {
|
|
@@ -145119,7 +145119,7 @@ function asStringOrUndefined(value) {
|
|
|
145119
145119
|
}
|
|
145120
145120
|
var SPLIT_STRING_MESSAGE, stringMethodNames;
|
|
145121
145121
|
var init_string = __esm({
|
|
145122
|
-
"packages/
|
|
145122
|
+
"packages/safe-js/src/interp/methods/string.ts"() {
|
|
145123
145123
|
"use strict";
|
|
145124
145124
|
init_values();
|
|
145125
145125
|
init_regex2();
|
|
@@ -145158,7 +145158,7 @@ var init_string = __esm({
|
|
|
145158
145158
|
}
|
|
145159
145159
|
});
|
|
145160
145160
|
|
|
145161
|
-
// packages/
|
|
145161
|
+
// packages/safe-js/src/interp/methods/set.ts
|
|
145162
145162
|
function isSetMethodName(value) {
|
|
145163
145163
|
return typeof value === "string" && setMethodNames.has(value);
|
|
145164
145164
|
}
|
|
@@ -145227,7 +145227,7 @@ async function callSetMethod(target, methodName, args, options, stack = []) {
|
|
|
145227
145227
|
}
|
|
145228
145228
|
var setMethodNames;
|
|
145229
145229
|
var init_set = __esm({
|
|
145230
|
-
"packages/
|
|
145230
|
+
"packages/safe-js/src/interp/methods/set.ts"() {
|
|
145231
145231
|
"use strict";
|
|
145232
145232
|
init_values();
|
|
145233
145233
|
init_running_state();
|
|
@@ -145245,7 +145245,7 @@ var init_set = __esm({
|
|
|
145245
145245
|
}
|
|
145246
145246
|
});
|
|
145247
145247
|
|
|
145248
|
-
// packages/
|
|
145248
|
+
// packages/safe-js/src/interp/scope.ts
|
|
145249
145249
|
function defineSnapshotBinding(target, name, value) {
|
|
145250
145250
|
Object.defineProperty(target, name, {
|
|
145251
145251
|
configurable: true,
|
|
@@ -145256,7 +145256,7 @@ function defineSnapshotBinding(target, name, value) {
|
|
|
145256
145256
|
}
|
|
145257
145257
|
var uninitialized, Scope;
|
|
145258
145258
|
var init_scope = __esm({
|
|
145259
|
-
"packages/
|
|
145259
|
+
"packages/safe-js/src/interp/scope.ts"() {
|
|
145260
145260
|
"use strict";
|
|
145261
145261
|
uninitialized = /* @__PURE__ */ Symbol("uninitialized");
|
|
145262
145262
|
Scope = class _Scope {
|
|
@@ -145470,7 +145470,7 @@ var init_scope = __esm({
|
|
|
145470
145470
|
}
|
|
145471
145471
|
});
|
|
145472
145472
|
|
|
145473
|
-
// packages/
|
|
145473
|
+
// packages/safe-js/src/interp/interpreter.ts
|
|
145474
145474
|
async function interpret(node, options = {}) {
|
|
145475
145475
|
const budget = options.budget ?? new Budget();
|
|
145476
145476
|
const scope = options.scope === void 0 ? new Scope(
|
|
@@ -147968,7 +147968,7 @@ function isPromiseLikeResult(value) {
|
|
|
147968
147968
|
}
|
|
147969
147969
|
var taggedTemplateRawArrays, dispatchTable;
|
|
147970
147970
|
var init_interpreter = __esm({
|
|
147971
|
-
"packages/
|
|
147971
|
+
"packages/safe-js/src/interp/interpreter.ts"() {
|
|
147972
147972
|
"use strict";
|
|
147973
147973
|
init_promise_replay();
|
|
147974
147974
|
init_promise_tracker();
|
|
@@ -148051,7 +148051,7 @@ var init_interpreter = __esm({
|
|
|
148051
148051
|
}
|
|
148052
148052
|
});
|
|
148053
148053
|
|
|
148054
|
-
// packages/
|
|
148054
|
+
// packages/safe-js/src/modules/registry.ts
|
|
148055
148055
|
function createUnknownModuleMessage2(moduleName, moduleNames) {
|
|
148056
148056
|
if (moduleNames.length === 0) {
|
|
148057
148057
|
return `Unknown module '${moduleName}'. No modules are registered.`;
|
|
@@ -148168,7 +148168,7 @@ function createBindingRecord(entries) {
|
|
|
148168
148168
|
return Object.assign(/* @__PURE__ */ Object.create(null), entries);
|
|
148169
148169
|
}
|
|
148170
148170
|
var init_registry7 = __esm({
|
|
148171
|
-
"packages/
|
|
148171
|
+
"packages/safe-js/src/modules/registry.ts"() {
|
|
148172
148172
|
"use strict";
|
|
148173
148173
|
init_shape();
|
|
148174
148174
|
init_cancel2();
|
|
@@ -148177,7 +148177,7 @@ var init_registry7 = __esm({
|
|
|
148177
148177
|
}
|
|
148178
148178
|
});
|
|
148179
148179
|
|
|
148180
|
-
// packages/
|
|
148180
|
+
// packages/safe-js/src/snapshot/dump.ts
|
|
148181
148181
|
function attachDumpController(result, controller) {
|
|
148182
148182
|
Object.defineProperty(result, RUN_DUMP_CONTROLLER, {
|
|
148183
148183
|
configurable: false,
|
|
@@ -148309,7 +148309,7 @@ function serializeRunSnapshot(snapshot2) {
|
|
|
148309
148309
|
}
|
|
148310
148310
|
var RUN_DUMP_CONTROLLER;
|
|
148311
148311
|
var init_dump = __esm({
|
|
148312
|
-
"packages/
|
|
148312
|
+
"packages/safe-js/src/snapshot/dump.ts"() {
|
|
148313
148313
|
"use strict";
|
|
148314
148314
|
init_dump_format();
|
|
148315
148315
|
init_budget2();
|
|
@@ -148317,7 +148317,7 @@ var init_dump = __esm({
|
|
|
148317
148317
|
}
|
|
148318
148318
|
});
|
|
148319
148319
|
|
|
148320
|
-
// packages/
|
|
148320
|
+
// packages/safe-js/src/error-codes.ts
|
|
148321
148321
|
function getOwnErrorCode2(error3) {
|
|
148322
148322
|
if (typeof error3 !== "object" || error3 === null || !Object.prototype.hasOwnProperty.call(error3, "code")) {
|
|
148323
148323
|
return void 0;
|
|
@@ -148329,12 +148329,12 @@ function hasOwnErrorCode29(error3, code) {
|
|
|
148329
148329
|
return getOwnErrorCode2(error3) === code;
|
|
148330
148330
|
}
|
|
148331
148331
|
var init_error_codes22 = __esm({
|
|
148332
|
-
"packages/
|
|
148332
|
+
"packages/safe-js/src/error-codes.ts"() {
|
|
148333
148333
|
"use strict";
|
|
148334
148334
|
}
|
|
148335
148335
|
});
|
|
148336
148336
|
|
|
148337
|
-
// packages/
|
|
148337
|
+
// packages/safe-js/src/snapshot/backend.ts
|
|
148338
148338
|
import { randomUUID as randomUUID50 } from "node:crypto";
|
|
148339
148339
|
import { readFile as readFile52, rename as rename27, stat as stat33, unlink as unlink24, writeFile as writeFile28 } from "node:fs/promises";
|
|
148340
148340
|
import { dirname as dirname12 } from "node:path";
|
|
@@ -148452,7 +148452,7 @@ function isLockedFileError(error3) {
|
|
|
148452
148452
|
}
|
|
148453
148453
|
var DEFAULT_WRITE_MAX_ATTEMPTS, DEFAULT_WRITE_RETRY_DELAY_MS, LOCKED_FILE_ERROR_CODES, pendingOperations, FileSnapshotBackend;
|
|
148454
148454
|
var init_backend = __esm({
|
|
148455
|
-
"packages/
|
|
148455
|
+
"packages/safe-js/src/snapshot/backend.ts"() {
|
|
148456
148456
|
"use strict";
|
|
148457
148457
|
init_error_codes22();
|
|
148458
148458
|
init_dump_format();
|
|
@@ -148506,7 +148506,7 @@ var init_backend = __esm({
|
|
|
148506
148506
|
}
|
|
148507
148507
|
});
|
|
148508
148508
|
|
|
148509
|
-
// packages/
|
|
148509
|
+
// packages/safe-js/src/snapshot/scheduler.ts
|
|
148510
148510
|
function createSnapshotScheduler(options) {
|
|
148511
148511
|
const snapshotBackend = options.snapshotBackend ?? (options.snapshotPath === void 0 ? void 0 : new FileSnapshotBackend(options.snapshotPath, createFileSnapshotBackendOptions(options)));
|
|
148512
148512
|
if (snapshotBackend === void 0) {
|
|
@@ -148591,17 +148591,17 @@ function createFileSnapshotBackendOptions(options) {
|
|
|
148591
148591
|
}
|
|
148592
148592
|
var DEFAULT_SNAPSHOT_INTERVAL_MS;
|
|
148593
148593
|
var init_scheduler = __esm({
|
|
148594
|
-
"packages/
|
|
148594
|
+
"packages/safe-js/src/snapshot/scheduler.ts"() {
|
|
148595
148595
|
"use strict";
|
|
148596
148596
|
init_backend();
|
|
148597
148597
|
DEFAULT_SNAPSHOT_INTERVAL_MS = 3e4;
|
|
148598
148598
|
}
|
|
148599
148599
|
});
|
|
148600
148600
|
|
|
148601
|
-
// packages/
|
|
148601
|
+
// packages/safe-js/src/snapshot/serialize.ts
|
|
148602
148602
|
var UnsnapshotableValueError;
|
|
148603
148603
|
var init_serialize = __esm({
|
|
148604
|
-
"packages/
|
|
148604
|
+
"packages/safe-js/src/snapshot/serialize.ts"() {
|
|
148605
148605
|
"use strict";
|
|
148606
148606
|
init_hash();
|
|
148607
148607
|
init_shape();
|
|
@@ -148624,7 +148624,7 @@ var init_serialize = __esm({
|
|
|
148624
148624
|
}
|
|
148625
148625
|
});
|
|
148626
148626
|
|
|
148627
|
-
// packages/
|
|
148627
|
+
// packages/safe-js/src/snapshot/replay-inputs.ts
|
|
148628
148628
|
function prepareReplayInputs(current, saved, preparePromise, onCapabilityRestored) {
|
|
148629
148629
|
const identities = /* @__PURE__ */ new WeakMap();
|
|
148630
148630
|
const capabilities = /* @__PURE__ */ new Map();
|
|
@@ -148719,7 +148719,7 @@ function assertReplayInputShape(restored) {
|
|
|
148719
148719
|
}
|
|
148720
148720
|
var validationPromise;
|
|
148721
148721
|
var init_replay_inputs = __esm({
|
|
148722
|
-
"packages/
|
|
148722
|
+
"packages/safe-js/src/snapshot/replay-inputs.ts"() {
|
|
148723
148723
|
"use strict";
|
|
148724
148724
|
init_values();
|
|
148725
148725
|
init_replay_data();
|
|
@@ -148727,7 +148727,7 @@ var init_replay_inputs = __esm({
|
|
|
148727
148727
|
}
|
|
148728
148728
|
});
|
|
148729
148729
|
|
|
148730
|
-
// packages/
|
|
148730
|
+
// packages/safe-js/src/run.ts
|
|
148731
148731
|
import { AsyncLocalStorage as AsyncLocalStorage8 } from "node:async_hooks";
|
|
148732
148732
|
function run(source, options = {}) {
|
|
148733
148733
|
const lifecycle = {
|
|
@@ -149253,7 +149253,7 @@ function createPendingAwaitSnapshot(yieldPoint) {
|
|
|
149253
149253
|
}
|
|
149254
149254
|
var UnhandledRejectionError, DEFAULT_MAX_CALL_DEPTH;
|
|
149255
149255
|
var init_run7 = __esm({
|
|
149256
|
-
"packages/
|
|
149256
|
+
"packages/safe-js/src/run.ts"() {
|
|
149257
149257
|
"use strict";
|
|
149258
149258
|
init_hash();
|
|
149259
149259
|
init_resources();
|
|
@@ -149301,16 +149301,16 @@ var init_run7 = __esm({
|
|
|
149301
149301
|
}
|
|
149302
149302
|
});
|
|
149303
149303
|
|
|
149304
|
-
// packages/
|
|
149304
|
+
// packages/safe-js/src/dump.ts
|
|
149305
149305
|
var init_dump2 = __esm({
|
|
149306
|
-
"packages/
|
|
149306
|
+
"packages/safe-js/src/dump.ts"() {
|
|
149307
149307
|
"use strict";
|
|
149308
149308
|
init_dump_format();
|
|
149309
149309
|
init_dump();
|
|
149310
149310
|
}
|
|
149311
149311
|
});
|
|
149312
149312
|
|
|
149313
|
-
// packages/
|
|
149313
|
+
// packages/safe-js/src/migrate.ts
|
|
149314
149314
|
import { createHash as createHash14 } from "node:crypto";
|
|
149315
149315
|
function inspectSnapshotMigration(snapshot2, options) {
|
|
149316
149316
|
assertSnapshotInactive(snapshot2);
|
|
@@ -149380,7 +149380,7 @@ function canonicalData(value) {
|
|
|
149380
149380
|
return JSON.stringify(value);
|
|
149381
149381
|
}
|
|
149382
149382
|
var init_migrate = __esm({
|
|
149383
|
-
"packages/
|
|
149383
|
+
"packages/safe-js/src/migrate.ts"() {
|
|
149384
149384
|
"use strict";
|
|
149385
149385
|
init_running_state();
|
|
149386
149386
|
init_values();
|
|
@@ -149393,7 +149393,7 @@ var init_migrate = __esm({
|
|
|
149393
149393
|
}
|
|
149394
149394
|
});
|
|
149395
149395
|
|
|
149396
|
-
// packages/
|
|
149396
|
+
// packages/safe-js/src/migration-file.ts
|
|
149397
149397
|
import { randomUUID as randomUUID51 } from "node:crypto";
|
|
149398
149398
|
import { link as link3, open as open8, readFile as readFile53, unlink as unlink25 } from "node:fs/promises";
|
|
149399
149399
|
import path184 from "node:path";
|
|
@@ -149469,7 +149469,7 @@ async function migrateSnapshotFile(options) {
|
|
|
149469
149469
|
return { inspection, outputPath, dryRun: options.dryRun === true };
|
|
149470
149470
|
}
|
|
149471
149471
|
var init_migration_file = __esm({
|
|
149472
|
-
"packages/
|
|
149472
|
+
"packages/safe-js/src/migration-file.ts"() {
|
|
149473
149473
|
"use strict";
|
|
149474
149474
|
init_error_codes22();
|
|
149475
149475
|
init_migrate();
|
|
@@ -149477,22 +149477,22 @@ var init_migration_file = __esm({
|
|
|
149477
149477
|
}
|
|
149478
149478
|
});
|
|
149479
149479
|
|
|
149480
|
-
// packages/
|
|
149480
|
+
// packages/safe-js/src/error/format.ts
|
|
149481
149481
|
var init_format3 = __esm({
|
|
149482
|
-
"packages/
|
|
149482
|
+
"packages/safe-js/src/error/format.ts"() {
|
|
149483
149483
|
"use strict";
|
|
149484
149484
|
init_budget2();
|
|
149485
149485
|
}
|
|
149486
149486
|
});
|
|
149487
149487
|
|
|
149488
|
-
// packages/
|
|
149488
|
+
// packages/safe-js/src/loader/extract-block.ts
|
|
149489
149489
|
var init_extract_block = __esm({
|
|
149490
|
-
"packages/
|
|
149490
|
+
"packages/safe-js/src/loader/extract-block.ts"() {
|
|
149491
149491
|
"use strict";
|
|
149492
149492
|
}
|
|
149493
149493
|
});
|
|
149494
149494
|
|
|
149495
|
-
// packages/
|
|
149495
|
+
// packages/safe-js/src/loader/frontmatter.ts
|
|
149496
149496
|
function splitFrontmatter3(markdown) {
|
|
149497
149497
|
try {
|
|
149498
149498
|
const parsed = parseFrontmatterDocument(markdown);
|
|
@@ -149549,27 +149549,27 @@ function countLines3(value) {
|
|
|
149549
149549
|
return count;
|
|
149550
149550
|
}
|
|
149551
149551
|
var init_frontmatter6 = __esm({
|
|
149552
|
-
"packages/
|
|
149552
|
+
"packages/safe-js/src/loader/frontmatter.ts"() {
|
|
149553
149553
|
"use strict";
|
|
149554
149554
|
init_src();
|
|
149555
149555
|
}
|
|
149556
149556
|
});
|
|
149557
149557
|
|
|
149558
|
-
// packages/
|
|
149558
|
+
// packages/safe-js/src/lint/runtime-modules.ts
|
|
149559
149559
|
var AsyncFunction2;
|
|
149560
149560
|
var init_runtime_modules = __esm({
|
|
149561
|
-
"packages/
|
|
149561
|
+
"packages/safe-js/src/lint/runtime-modules.ts"() {
|
|
149562
149562
|
"use strict";
|
|
149563
149563
|
init_values();
|
|
149564
149564
|
AsyncFunction2 = (async () => void 0).constructor;
|
|
149565
149565
|
}
|
|
149566
149566
|
});
|
|
149567
149567
|
|
|
149568
|
-
// packages/
|
|
149568
|
+
// packages/safe-js/src/runner/run-harness.ts
|
|
149569
149569
|
import { readFile as readFile54, stat as stat34 } from "node:fs/promises";
|
|
149570
149570
|
import { extname } from "node:path";
|
|
149571
149571
|
var init_run_harness = __esm({
|
|
149572
|
-
"packages/
|
|
149572
|
+
"packages/safe-js/src/runner/run-harness.ts"() {
|
|
149573
149573
|
"use strict";
|
|
149574
149574
|
init_configs();
|
|
149575
149575
|
init_types4();
|
|
@@ -149583,7 +149583,7 @@ var init_run_harness = __esm({
|
|
|
149583
149583
|
}
|
|
149584
149584
|
});
|
|
149585
149585
|
|
|
149586
|
-
// packages/
|
|
149586
|
+
// packages/safe-js/src/loader/find-exported.ts
|
|
149587
149587
|
function findExportedConstInitializer(module, name) {
|
|
149588
149588
|
for (const statement of module.body) {
|
|
149589
149589
|
if (statement.type === "ExportDefaultDeclaration") {
|
|
@@ -149617,12 +149617,12 @@ function findExportedConstInitializer(module, name) {
|
|
|
149617
149617
|
return void 0;
|
|
149618
149618
|
}
|
|
149619
149619
|
var init_find_exported = __esm({
|
|
149620
|
-
"packages/
|
|
149620
|
+
"packages/safe-js/src/loader/find-exported.ts"() {
|
|
149621
149621
|
"use strict";
|
|
149622
149622
|
}
|
|
149623
149623
|
});
|
|
149624
149624
|
|
|
149625
|
-
// packages/
|
|
149625
|
+
// packages/safe-js/src/modules/agent.ts
|
|
149626
149626
|
import { AsyncLocalStorage as AsyncLocalStorage9 } from "node:async_hooks";
|
|
149627
149627
|
function createSpawnUsageAccumulator() {
|
|
149628
149628
|
let inputTokens = 0;
|
|
@@ -150510,7 +150510,7 @@ function isRecord42(value) {
|
|
|
150510
150510
|
}
|
|
150511
150511
|
var AgentSpawnError, activeUsageAccumulator, oneAttemptRetryOptions;
|
|
150512
150512
|
var init_agent3 = __esm({
|
|
150513
|
-
"packages/
|
|
150513
|
+
"packages/safe-js/src/modules/agent.ts"() {
|
|
150514
150514
|
"use strict";
|
|
150515
150515
|
init_configs();
|
|
150516
150516
|
init_parallel();
|
|
@@ -150536,7 +150536,7 @@ var init_agent3 = __esm({
|
|
|
150536
150536
|
}
|
|
150537
150537
|
});
|
|
150538
150538
|
|
|
150539
|
-
// packages/
|
|
150539
|
+
// packages/safe-js/src/modules/env.ts
|
|
150540
150540
|
function makeEnvModule(input) {
|
|
150541
150541
|
const options = normalizeEnvOptions(Array.isArray(input) ? { allow: input } : input);
|
|
150542
150542
|
const allowedNames = new Set(options.allow);
|
|
@@ -150611,7 +150611,7 @@ function readEnvName(value, label) {
|
|
|
150611
150611
|
}
|
|
150612
150612
|
var EnvAccessError;
|
|
150613
150613
|
var init_env = __esm({
|
|
150614
|
-
"packages/
|
|
150614
|
+
"packages/safe-js/src/modules/env.ts"() {
|
|
150615
150615
|
"use strict";
|
|
150616
150616
|
init_shape();
|
|
150617
150617
|
EnvAccessError = class extends Error {
|
|
@@ -150627,7 +150627,7 @@ var init_env = __esm({
|
|
|
150627
150627
|
}
|
|
150628
150628
|
});
|
|
150629
150629
|
|
|
150630
|
-
// packages/
|
|
150630
|
+
// packages/safe-js/src/modules/fail.ts
|
|
150631
150631
|
function makeFailModule() {
|
|
150632
150632
|
function fail3(message2) {
|
|
150633
150633
|
throw new HarnessFailure(readNonEmptyString5(message2, "Harness failure message"));
|
|
@@ -150647,7 +150647,7 @@ function readNonEmptyString5(value, label) {
|
|
|
150647
150647
|
}
|
|
150648
150648
|
var HarnessFailure;
|
|
150649
150649
|
var init_fail = __esm({
|
|
150650
|
-
"packages/
|
|
150650
|
+
"packages/safe-js/src/modules/fail.ts"() {
|
|
150651
150651
|
"use strict";
|
|
150652
150652
|
HarnessFailure = class extends Error {
|
|
150653
150653
|
constructor(message2) {
|
|
@@ -150658,7 +150658,7 @@ var init_fail = __esm({
|
|
|
150658
150658
|
}
|
|
150659
150659
|
});
|
|
150660
150660
|
|
|
150661
|
-
// packages/
|
|
150661
|
+
// packages/safe-js/src/modules/canonical-path.ts
|
|
150662
150662
|
import { basename as basename8, dirname as dirname13, isAbsolute as isAbsolute9, relative as relative7, resolve as resolve13, sep as sep6 } from "node:path";
|
|
150663
150663
|
async function resolveCanonicalPath({ realpath: realpath20, readlink: readlink5 }, path191) {
|
|
150664
150664
|
const missingSegments = [];
|
|
@@ -150757,7 +150757,7 @@ async function readIdentity(stat36, path191) {
|
|
|
150757
150757
|
}
|
|
150758
150758
|
var MISSING_PATH_CODES, NOT_A_SYMLINK_CODES, MAX_SYMLINK_FOLLOWS;
|
|
150759
150759
|
var init_canonical_path = __esm({
|
|
150760
|
-
"packages/
|
|
150760
|
+
"packages/safe-js/src/modules/canonical-path.ts"() {
|
|
150761
150761
|
"use strict";
|
|
150762
150762
|
init_error_codes22();
|
|
150763
150763
|
MISSING_PATH_CODES = ["ENOENT", "ENOTDIR"];
|
|
@@ -150766,7 +150766,7 @@ var init_canonical_path = __esm({
|
|
|
150766
150766
|
}
|
|
150767
150767
|
});
|
|
150768
150768
|
|
|
150769
|
-
// packages/
|
|
150769
|
+
// packages/safe-js/src/modules/fs.ts
|
|
150770
150770
|
import { constants as nodeFsConstants } from "node:fs";
|
|
150771
150771
|
import * as nodeFsPromises from "node:fs/promises";
|
|
150772
150772
|
import { dirname as dirname14, isAbsolute as isAbsolute10, resolve as resolve14 } from "node:path";
|
|
@@ -151174,7 +151174,7 @@ function isObjectLike2(value) {
|
|
|
151174
151174
|
}
|
|
151175
151175
|
var BUFFER_BY_DEFAULT, REFUSED_OPTION_REASONS, UNKNOWN_OPTION_REASON, ROOT_REFUSED_DEREFERENCE_REASON, FS_OPTION_SURFACE, STAT_NUMBER_FIELDS, FILE_TYPE_PREDICATES, BUFFER_ENCODING, FS_SYSCALLS, FS_PATH_ARGUMENTS, ACCESS_DENIED_CODE, INVALID_ARGUMENT_CODE, INVALID_ARGUMENT_TYPE_CODE, NULL_BYTE, ACCESS_DENIED_ERRNO, ACCESS_DENIED_MESSAGE;
|
|
151176
151176
|
var init_fs2 = __esm({
|
|
151177
|
-
"packages/
|
|
151177
|
+
"packages/safe-js/src/modules/fs.ts"() {
|
|
151178
151178
|
"use strict";
|
|
151179
151179
|
init_error_codes22();
|
|
151180
151180
|
init_host_bridge();
|
|
@@ -151322,7 +151322,7 @@ var init_fs2 = __esm({
|
|
|
151322
151322
|
}
|
|
151323
151323
|
});
|
|
151324
151324
|
|
|
151325
|
-
// packages/
|
|
151325
|
+
// packages/safe-js/src/modules/fs-config.ts
|
|
151326
151326
|
import {
|
|
151327
151327
|
createFileSystem,
|
|
151328
151328
|
createNodeFileSystemAdapterRegistry,
|
|
@@ -151358,12 +151358,12 @@ async function resolveFsConfig(config2, options = {}) {
|
|
|
151358
151358
|
return { adapter, ...paths };
|
|
151359
151359
|
}
|
|
151360
151360
|
var init_fs_config = __esm({
|
|
151361
|
-
"packages/
|
|
151361
|
+
"packages/safe-js/src/modules/fs-config.ts"() {
|
|
151362
151362
|
"use strict";
|
|
151363
151363
|
}
|
|
151364
151364
|
});
|
|
151365
151365
|
|
|
151366
|
-
// packages/
|
|
151366
|
+
// packages/safe-js/src/modules/git.ts
|
|
151367
151367
|
import { execFile as execFile3 } from "node:child_process";
|
|
151368
151368
|
import { mkdir as mkdir38, readlink as readlink4, realpath as realpath19, rm as rm16, stat as stat35 } from "node:fs/promises";
|
|
151369
151369
|
import { dirname as dirname15, isAbsolute as isAbsolute11, resolve as resolve15 } from "node:path";
|
|
@@ -151689,7 +151689,7 @@ function hasOwnProperty17(value, name) {
|
|
|
151689
151689
|
}
|
|
151690
151690
|
var GIT_EXEC_MAX_BUFFER, SAVEPOINT_REF_PREFIX;
|
|
151691
151691
|
var init_git2 = __esm({
|
|
151692
|
-
"packages/
|
|
151692
|
+
"packages/safe-js/src/modules/git.ts"() {
|
|
151693
151693
|
"use strict";
|
|
151694
151694
|
init_canonical_path();
|
|
151695
151695
|
GIT_EXEC_MAX_BUFFER = 10 * 1024 * 1024;
|
|
@@ -151697,7 +151697,7 @@ var init_git2 = __esm({
|
|
|
151697
151697
|
}
|
|
151698
151698
|
});
|
|
151699
151699
|
|
|
151700
|
-
// packages/
|
|
151700
|
+
// packages/safe-js/src/modules/harness.ts
|
|
151701
151701
|
function makeHarnessModule(frontmatter, meta) {
|
|
151702
151702
|
const copiedFrontmatter = copyHarnessValue(frontmatter);
|
|
151703
151703
|
const constraints = readConstraints(copiedFrontmatter);
|
|
@@ -151744,13 +151744,13 @@ ${constraints.map((constraint) => `- ${constraint}`).join("\n")}`;
|
|
|
151744
151744
|
${prompt}`;
|
|
151745
151745
|
}
|
|
151746
151746
|
var init_harness2 = __esm({
|
|
151747
|
-
"packages/
|
|
151747
|
+
"packages/safe-js/src/modules/harness.ts"() {
|
|
151748
151748
|
"use strict";
|
|
151749
151749
|
init_values();
|
|
151750
151750
|
}
|
|
151751
151751
|
});
|
|
151752
151752
|
|
|
151753
|
-
// packages/
|
|
151753
|
+
// packages/safe-js/src/output-stream.ts
|
|
151754
151754
|
function createBrokenPipeState() {
|
|
151755
151755
|
return { closed: false };
|
|
151756
151756
|
}
|
|
@@ -151789,13 +151789,13 @@ function isBrokenPipeError(error3) {
|
|
|
151789
151789
|
return hasOwnErrorCode29(error3, "EPIPE");
|
|
151790
151790
|
}
|
|
151791
151791
|
var init_output_stream = __esm({
|
|
151792
|
-
"packages/
|
|
151792
|
+
"packages/safe-js/src/output-stream.ts"() {
|
|
151793
151793
|
"use strict";
|
|
151794
151794
|
init_error_codes22();
|
|
151795
151795
|
}
|
|
151796
151796
|
});
|
|
151797
151797
|
|
|
151798
|
-
// packages/
|
|
151798
|
+
// packages/safe-js/src/modules/log.ts
|
|
151799
151799
|
function makeLogModule(sink = createJsonlStdoutSink()) {
|
|
151800
151800
|
const normalizedSink = readSink(sink);
|
|
151801
151801
|
return {
|
|
@@ -151904,13 +151904,13 @@ function toJsonValue(value, seen) {
|
|
|
151904
151904
|
return String(value);
|
|
151905
151905
|
}
|
|
151906
151906
|
var init_log2 = __esm({
|
|
151907
|
-
"packages/
|
|
151907
|
+
"packages/safe-js/src/modules/log.ts"() {
|
|
151908
151908
|
"use strict";
|
|
151909
151909
|
init_output_stream();
|
|
151910
151910
|
}
|
|
151911
151911
|
});
|
|
151912
151912
|
|
|
151913
|
-
// packages/
|
|
151913
|
+
// packages/safe-js/src/modules/metric.ts
|
|
151914
151914
|
function makeMetricModule(npmRunner) {
|
|
151915
151915
|
return {
|
|
151916
151916
|
async run(name) {
|
|
@@ -151947,12 +151947,12 @@ function readNonEmptyString8(value, label) {
|
|
|
151947
151947
|
return normalizedValue;
|
|
151948
151948
|
}
|
|
151949
151949
|
var init_metric = __esm({
|
|
151950
|
-
"packages/
|
|
151950
|
+
"packages/safe-js/src/modules/metric.ts"() {
|
|
151951
151951
|
"use strict";
|
|
151952
151952
|
}
|
|
151953
151953
|
});
|
|
151954
151954
|
|
|
151955
|
-
// packages/
|
|
151955
|
+
// packages/safe-js/src/modules/mcp-transport.ts
|
|
151956
151956
|
import { spawn as spawn11 } from "node:child_process";
|
|
151957
151957
|
import path185 from "node:path";
|
|
151958
151958
|
function parseMcpConfig3(source, directory) {
|
|
@@ -152194,13 +152194,13 @@ function connectMcpTransport(server, options, signal) {
|
|
|
152194
152194
|
return { ready, close };
|
|
152195
152195
|
}
|
|
152196
152196
|
var init_mcp_transport = __esm({
|
|
152197
|
-
"packages/
|
|
152197
|
+
"packages/safe-js/src/modules/mcp-transport.ts"() {
|
|
152198
152198
|
"use strict";
|
|
152199
152199
|
init_src19();
|
|
152200
152200
|
}
|
|
152201
152201
|
});
|
|
152202
152202
|
|
|
152203
|
-
// packages/
|
|
152203
|
+
// packages/safe-js/src/modules/mcp.ts
|
|
152204
152204
|
function makeMcpModule(connectMcp) {
|
|
152205
152205
|
if (typeof connectMcp !== "function") {
|
|
152206
152206
|
const options = normalizeMcpOptions(connectMcp);
|
|
@@ -152588,7 +152588,7 @@ function isPlainObjectRecord(value) {
|
|
|
152588
152588
|
}
|
|
152589
152589
|
var DEFAULT_TOOL_BATCH_CONCURRENCY;
|
|
152590
152590
|
var init_mcp5 = __esm({
|
|
152591
|
-
"packages/
|
|
152591
|
+
"packages/safe-js/src/modules/mcp.ts"() {
|
|
152592
152592
|
"use strict";
|
|
152593
152593
|
init_src19();
|
|
152594
152594
|
init_shape();
|
|
@@ -152599,7 +152599,7 @@ var init_mcp5 = __esm({
|
|
|
152599
152599
|
}
|
|
152600
152600
|
});
|
|
152601
152601
|
|
|
152602
|
-
// packages/
|
|
152602
|
+
// packages/safe-js/src/modules/time.ts
|
|
152603
152603
|
function makeTimeModule(options = {}) {
|
|
152604
152604
|
const hasDeterministicRandom = options.random !== void 0 || options.seed !== void 0;
|
|
152605
152605
|
const random = options.random ?? (options.seed === void 0 ? () => Math.random() : createSeededRandom(options.seed).next);
|
|
@@ -152670,15 +152670,15 @@ function createSleepAbortError() {
|
|
|
152670
152670
|
return new Error("time.sleep aborted.");
|
|
152671
152671
|
}
|
|
152672
152672
|
var init_time = __esm({
|
|
152673
|
-
"packages/
|
|
152673
|
+
"packages/safe-js/src/modules/time.ts"() {
|
|
152674
152674
|
"use strict";
|
|
152675
152675
|
init_math();
|
|
152676
152676
|
}
|
|
152677
152677
|
});
|
|
152678
152678
|
|
|
152679
|
-
// packages/
|
|
152679
|
+
// packages/safe-js/src/index.ts
|
|
152680
152680
|
var init_src49 = __esm({
|
|
152681
|
-
"packages/
|
|
152681
|
+
"packages/safe-js/src/index.ts"() {
|
|
152682
152682
|
"use strict";
|
|
152683
152683
|
init_parse6();
|
|
152684
152684
|
init_parser3();
|
|
@@ -156452,7 +156452,7 @@ var init_package2 = __esm({
|
|
|
156452
156452
|
"package.json"() {
|
|
156453
156453
|
package_default2 = {
|
|
156454
156454
|
name: "poe-code",
|
|
156455
|
-
version: "12.0.
|
|
156455
|
+
version: "12.0.8",
|
|
156456
156456
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
156457
156457
|
license: "MIT",
|
|
156458
156458
|
type: "module",
|
|
@@ -156470,26 +156470,26 @@ var init_package2 = __esm({
|
|
|
156470
156470
|
"./safejs": {
|
|
156471
156471
|
types: {
|
|
156472
156472
|
browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
|
|
156473
|
-
default: "./packages/
|
|
156473
|
+
default: "./packages/safe-js/dist/index.d.ts"
|
|
156474
156474
|
},
|
|
156475
156475
|
browser: null,
|
|
156476
|
-
import: "./packages/
|
|
156476
|
+
import: "./packages/safe-js/dist/index.js"
|
|
156477
156477
|
},
|
|
156478
156478
|
"./safejs/core": {
|
|
156479
156479
|
types: {
|
|
156480
156480
|
browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
|
|
156481
|
-
default: "./packages/
|
|
156481
|
+
default: "./packages/safe-js/dist/core.d.ts"
|
|
156482
156482
|
},
|
|
156483
156483
|
browser: null,
|
|
156484
|
-
import: "./packages/
|
|
156484
|
+
import: "./packages/safe-js/dist/core.js"
|
|
156485
156485
|
},
|
|
156486
156486
|
"./safejs/cli": {
|
|
156487
156487
|
types: {
|
|
156488
156488
|
browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
|
|
156489
|
-
default: "./packages/
|
|
156489
|
+
default: "./packages/safe-js/dist/cli.d.ts"
|
|
156490
156490
|
},
|
|
156491
156491
|
browser: null,
|
|
156492
|
-
import: "./packages/
|
|
156492
|
+
import: "./packages/safe-js/dist/cli.js"
|
|
156493
156493
|
},
|
|
156494
156494
|
"./agent": {
|
|
156495
156495
|
types: "./dist/agent.d.ts",
|
|
@@ -156516,16 +156516,16 @@ var init_package2 = __esm({
|
|
|
156516
156516
|
browser: "./packages/safe-fs/dist/core.d.ts",
|
|
156517
156517
|
default: "./packages/safe-fs/dist/index.d.ts"
|
|
156518
156518
|
},
|
|
156519
|
-
browser: "./packages/
|
|
156520
|
-
import: "./packages/
|
|
156519
|
+
browser: "./packages/safe-js/dist/browser/safe-fs.js",
|
|
156520
|
+
import: "./packages/safe-js/dist/safe-fs.js"
|
|
156521
156521
|
},
|
|
156522
156522
|
"./safe-fs/core": {
|
|
156523
156523
|
types: {
|
|
156524
156524
|
browser: "./packages/safe-fs/dist/core.d.ts",
|
|
156525
156525
|
default: "./packages/safe-fs/dist/core.d.ts"
|
|
156526
156526
|
},
|
|
156527
|
-
browser: "./packages/
|
|
156528
|
-
import: "./packages/
|
|
156527
|
+
browser: "./packages/safe-js/dist/browser/safe-fs-core.js",
|
|
156528
|
+
import: "./packages/safe-js/dist/safe-fs-core.js"
|
|
156529
156529
|
},
|
|
156530
156530
|
"./safe-fs/node": {
|
|
156531
156531
|
types: {
|
|
@@ -156533,7 +156533,31 @@ var init_package2 = __esm({
|
|
|
156533
156533
|
default: "./packages/safe-fs/dist/node-host.d.ts"
|
|
156534
156534
|
},
|
|
156535
156535
|
browser: null,
|
|
156536
|
-
import: "./packages/
|
|
156536
|
+
import: "./packages/safe-js/dist/safe-fs-node.js"
|
|
156537
|
+
},
|
|
156538
|
+
"./safe-js": {
|
|
156539
|
+
types: {
|
|
156540
|
+
browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
|
|
156541
|
+
default: "./packages/safe-js/dist/index.d.ts"
|
|
156542
|
+
},
|
|
156543
|
+
browser: null,
|
|
156544
|
+
import: "./packages/safe-js/dist/index.js"
|
|
156545
|
+
},
|
|
156546
|
+
"./safe-js/core": {
|
|
156547
|
+
types: {
|
|
156548
|
+
browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
|
|
156549
|
+
default: "./packages/safe-js/dist/core.d.ts"
|
|
156550
|
+
},
|
|
156551
|
+
browser: null,
|
|
156552
|
+
import: "./packages/safe-js/dist/core.js"
|
|
156553
|
+
},
|
|
156554
|
+
"./safe-js/cli": {
|
|
156555
|
+
types: {
|
|
156556
|
+
browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
|
|
156557
|
+
default: "./packages/safe-js/dist/cli.d.ts"
|
|
156558
|
+
},
|
|
156559
|
+
browser: null,
|
|
156560
|
+
import: "./packages/safe-js/dist/cli.js"
|
|
156537
156561
|
}
|
|
156538
156562
|
},
|
|
156539
156563
|
workspaces: [
|
|
@@ -156612,7 +156636,8 @@ var init_package2 = __esm({
|
|
|
156612
156636
|
"poe-code": "dist/bin.cjs",
|
|
156613
156637
|
"poe-agent": "dist/bin/poe-agent.js",
|
|
156614
156638
|
"poe-superintendent-mcp": "packages/superintendent/dist/mcp.js",
|
|
156615
|
-
"poe-safejs": "packages/
|
|
156639
|
+
"poe-safejs": "packages/safe-js/dist/cli.js",
|
|
156640
|
+
"poe-safe-js": "packages/safe-js/dist/cli.js"
|
|
156616
156641
|
},
|
|
156617
156642
|
files: [
|
|
156618
156643
|
"LICENSE",
|
|
@@ -156638,7 +156663,7 @@ var init_package2 = __esm({
|
|
|
156638
156663
|
"packages/agent-hook-config/dist",
|
|
156639
156664
|
"packages/agent-human-in-loop/dist",
|
|
156640
156665
|
"packages/maestro/dist",
|
|
156641
|
-
"packages/
|
|
156666
|
+
"packages/safe-js/dist",
|
|
156642
156667
|
"packages/agent-spawn/dist",
|
|
156643
156668
|
"packages/auth-store/dist",
|
|
156644
156669
|
"packages/braintrust/dist",
|
|
@@ -156760,7 +156785,6 @@ var init_package2 = __esm({
|
|
|
156760
156785
|
"@poe-code/py-poe-spawn": "*",
|
|
156761
156786
|
"@poe-code/ralph": "*",
|
|
156762
156787
|
"@poe-code/safe-fs": "*",
|
|
156763
|
-
"@poe-code/safejs": "*",
|
|
156764
156788
|
"@poe-code/superintendent": "*",
|
|
156765
156789
|
"@poe-code/task-list": "*",
|
|
156766
156790
|
"@poe-code/user-error": "*",
|
|
@@ -156809,7 +156833,8 @@ var init_package2 = __esm({
|
|
|
156809
156833
|
typescript: "^5.9.3",
|
|
156810
156834
|
"typescript-eslint": "8.55.0",
|
|
156811
156835
|
vite: "6.4.3",
|
|
156812
|
-
vitest: "^3.2.6"
|
|
156836
|
+
vitest: "^3.2.6",
|
|
156837
|
+
"@poe-code/safe-js": "*"
|
|
156813
156838
|
},
|
|
156814
156839
|
repository: {
|
|
156815
156840
|
type: "git",
|