@kamilio/wire 0.1.9 → 0.1.11
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/dist/adapters/root.d.ts +2 -1
- package/dist/adapters/root.d.ts.map +1 -1
- package/dist/adapters/root.js +30 -18
- package/dist/adapters/root.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +10 -1
- package/dist/cli.js.map +1 -1
- package/dist/executable.d.ts.map +1 -1
- package/dist/executable.js +2 -1
- package/dist/executable.js.map +1 -1
- package/dist/mcp.d.ts +2 -3
- package/dist/mcp.d.ts.map +1 -1
- package/node_modules/provider-slack/dist/index.d.ts +1 -1
- package/node_modules/provider-slack/dist/index.d.ts.map +1 -1
- package/node_modules/provider-slack/dist/index.js +1 -1
- package/node_modules/provider-slack/dist/index.js.map +1 -1
- package/node_modules/provider-slack/dist/slack.d.ts +10 -0
- package/node_modules/provider-slack/dist/slack.d.ts.map +1 -1
- package/node_modules/provider-slack/dist/slack.js +415 -22
- package/node_modules/provider-slack/dist/slack.js.map +1 -1
- package/node_modules/provider-slack/package.json +10 -4
- package/node_modules/provider-slack/src/index.ts +1 -1
- package/node_modules/provider-slack/src/slack.ts +330 -20
- package/node_modules/toolcraft/LICENSE +21 -0
- package/node_modules/toolcraft/README.md +268 -23
- package/node_modules/toolcraft/composition.json +165 -0
- package/node_modules/toolcraft/dist/agent-defs.d.ts +1 -0
- package/node_modules/toolcraft/dist/agent-defs.js +1 -0
- package/node_modules/toolcraft/dist/agent-mcp-config.d.ts +1 -0
- package/node_modules/toolcraft/dist/agent-mcp-config.js +1 -0
- package/node_modules/toolcraft/dist/applied-default.d.ts +3 -0
- package/node_modules/toolcraft/dist/applied-default.js +16 -0
- package/node_modules/toolcraft/dist/auth-store.d.ts +1 -0
- package/node_modules/toolcraft/dist/auth-store.js +1 -0
- package/node_modules/toolcraft/dist/cli.compile-check.js +20 -2
- package/node_modules/toolcraft/dist/cli.d.ts +97 -4
- package/node_modules/toolcraft/dist/cli.js +1322 -412
- package/node_modules/toolcraft/dist/composition.d.ts +15 -0
- package/node_modules/toolcraft/dist/composition.js +10 -0
- package/node_modules/toolcraft/dist/composition.json +165 -0
- package/node_modules/toolcraft/dist/config-mutations.d.ts +1 -0
- package/node_modules/toolcraft/dist/config-mutations.js +1 -0
- package/node_modules/toolcraft/dist/design/help-formatter.d.ts +2 -2
- package/node_modules/toolcraft/dist/design/help-formatter.js +1 -1
- package/node_modules/toolcraft/dist/design/render-markdown-plaintext.d.ts +2 -0
- package/node_modules/toolcraft/dist/design/render-markdown-plaintext.js +1 -0
- package/node_modules/toolcraft/dist/design/render-markdown.d.ts +2 -0
- package/node_modules/toolcraft/dist/design/render-markdown.js +1 -0
- package/node_modules/toolcraft/dist/discriminator.d.ts +9 -0
- package/node_modules/toolcraft/dist/discriminator.js +32 -0
- package/node_modules/toolcraft/dist/error-report.d.ts +12 -17
- package/node_modules/toolcraft/dist/error-report.js +25 -16
- package/node_modules/toolcraft/dist/file-change-renderer.d.ts +9 -0
- package/node_modules/toolcraft/dist/file-change-renderer.js +10 -0
- package/node_modules/toolcraft/dist/frontmatter.d.ts +1 -0
- package/node_modules/toolcraft/dist/frontmatter.js +1 -0
- package/node_modules/toolcraft/dist/http-hosted-oauth.compile-check.js +60 -0
- package/node_modules/toolcraft/dist/http-hosted-oauth.d.ts +124 -0
- package/node_modules/toolcraft/dist/http-hosted-oauth.js +473 -0
- package/node_modules/toolcraft/dist/http.compile-check.js +31 -0
- package/node_modules/toolcraft/dist/http.d.ts +31 -0
- package/node_modules/toolcraft/dist/http.js +161 -0
- package/node_modules/toolcraft/dist/human-in-loop/approval-tasks.d.ts +8 -2
- package/node_modules/toolcraft/dist/human-in-loop/approval-tasks.js +33 -19
- package/node_modules/toolcraft/dist/human-in-loop/approvals-commands.d.ts +3 -3
- package/node_modules/toolcraft/dist/human-in-loop/approvals-commands.js +27 -33
- package/node_modules/toolcraft/dist/human-in-loop/config.js +3 -0
- package/node_modules/toolcraft/dist/human-in-loop/gate.d.ts +7 -3
- package/node_modules/toolcraft/dist/human-in-loop/gate.js +33 -31
- package/node_modules/toolcraft/dist/human-in-loop/index.d.ts +4 -1
- package/node_modules/toolcraft/dist/human-in-loop/index.js +2 -0
- package/node_modules/toolcraft/dist/human-in-loop/plan-hash.d.ts +13 -0
- package/node_modules/toolcraft/dist/human-in-loop/plan-hash.js +78 -0
- package/node_modules/toolcraft/dist/human-in-loop/runner.d.ts +1 -1
- package/node_modules/toolcraft/dist/human-in-loop/runner.js +45 -32
- package/node_modules/toolcraft/dist/human-in-loop/runtime-options.d.ts +19 -0
- package/node_modules/toolcraft/dist/human-in-loop/runtime.d.ts +2 -0
- package/node_modules/toolcraft/dist/human-in-loop/runtime.js +14 -0
- package/node_modules/toolcraft/dist/human-in-loop/spawn.d.ts +2 -2
- package/node_modules/toolcraft/dist/human-in-loop/types.d.ts +14 -14
- package/node_modules/toolcraft/dist/human-in-loop/wiring.d.ts +11 -0
- package/node_modules/toolcraft/dist/human-in-loop/wiring.js +36 -0
- package/node_modules/toolcraft/dist/index.compile-check.js +50 -1
- package/node_modules/toolcraft/dist/index.d.ts +1 -210
- package/node_modules/toolcraft/dist/index.js +1 -475
- package/node_modules/toolcraft/dist/json-schema-converter.d.ts +14 -6
- package/node_modules/toolcraft/dist/json-schema-converter.js +150 -20
- package/node_modules/toolcraft/dist/mcp-proxy-metadata.d.ts +2 -0
- package/node_modules/toolcraft/dist/mcp-proxy-metadata.js +13 -0
- package/node_modules/toolcraft/dist/mcp-proxy.d.ts +2 -1
- package/node_modules/toolcraft/dist/mcp-proxy.js +69 -64
- package/node_modules/toolcraft/dist/mcp-result.d.ts +3 -0
- package/node_modules/toolcraft/dist/mcp-result.js +10 -0
- package/node_modules/toolcraft/dist/mcp.compile-check.js +4 -1
- package/node_modules/toolcraft/dist/mcp.d.ts +13 -3
- package/node_modules/toolcraft/dist/mcp.js +391 -217
- package/node_modules/toolcraft/dist/node-require-shim.js +4 -0
- package/node_modules/toolcraft/dist/package-metadata.js +9 -2
- package/node_modules/toolcraft/dist/process-runner.d.ts +1 -0
- package/node_modules/toolcraft/dist/process-runner.js +1 -0
- package/node_modules/toolcraft/dist/project-root.d.ts +1 -0
- package/node_modules/toolcraft/dist/project-root.js +15 -0
- package/node_modules/toolcraft/dist/redaction.js +26 -17
- package/node_modules/toolcraft/dist/renderer.d.ts +1 -1
- package/node_modules/toolcraft/dist/renderer.js +43 -42
- package/node_modules/toolcraft/dist/runtime/io.d.ts +5 -0
- package/node_modules/toolcraft/dist/runtime/io.js +59 -0
- package/node_modules/toolcraft/dist/runtime-platform.d.ts +2 -0
- package/node_modules/toolcraft/dist/runtime-platform.js +2 -0
- package/node_modules/toolcraft/dist/runtime-platform.workerd.d.ts +3 -0
- package/node_modules/toolcraft/dist/runtime-platform.workerd.js +10 -0
- package/node_modules/toolcraft/dist/runtime.d.ts +266 -0
- package/node_modules/toolcraft/dist/runtime.js +576 -0
- package/node_modules/toolcraft/dist/safe-bash-capabilities.compile-check.js +11 -0
- package/node_modules/toolcraft/dist/safe-bash.compile-check.js +16 -0
- package/node_modules/toolcraft/dist/safe-bash.d.ts +75 -0
- package/node_modules/toolcraft/dist/safe-bash.js +226 -0
- package/node_modules/toolcraft/dist/schema-member-names.d.ts +2 -0
- package/node_modules/toolcraft/dist/schema-member-names.js +39 -0
- package/node_modules/toolcraft/dist/schema-scope.d.ts +1 -0
- package/node_modules/toolcraft/dist/schema-scope.js +29 -16
- package/node_modules/toolcraft/dist/schema-standard.compile-check.js +4 -0
- package/node_modules/toolcraft/dist/schema.d.ts +2 -0
- package/node_modules/toolcraft/dist/schema.js +1 -0
- package/node_modules/toolcraft/dist/sdk.compile-check.js +31 -1
- package/node_modules/toolcraft/dist/sdk.d.ts +22 -13
- package/node_modules/toolcraft/dist/sdk.js +237 -108
- package/node_modules/toolcraft/dist/stream.d.ts +19 -0
- package/node_modules/toolcraft/dist/stream.js +93 -0
- package/node_modules/toolcraft/dist/testing/diagnostic-value.d.ts +1 -0
- package/node_modules/toolcraft/dist/testing/diagnostic-value.js +57 -0
- package/node_modules/toolcraft/dist/testing/fakes.d.ts +20 -0
- package/node_modules/toolcraft/dist/testing/fakes.js +84 -0
- package/node_modules/toolcraft/dist/testing/fixtures.d.ts +8 -0
- package/node_modules/toolcraft/dist/testing/fixtures.js +248 -0
- package/node_modules/toolcraft/dist/testing/harness.d.ts +97 -0
- package/node_modules/toolcraft/dist/testing/harness.js +490 -0
- package/node_modules/toolcraft/dist/testing/hosted-oauth-storage.d.ts +6 -0
- package/node_modules/toolcraft/dist/testing/hosted-oauth-storage.js +140 -0
- package/node_modules/toolcraft/dist/testing/index.d.ts +5 -0
- package/node_modules/toolcraft/dist/testing/index.js +4 -0
- package/node_modules/toolcraft/dist/testing/memory-fs.d.ts +11 -0
- package/node_modules/toolcraft/dist/testing/memory-fs.js +102 -0
- package/node_modules/toolcraft/dist/testing/parity.d.ts +25 -0
- package/node_modules/toolcraft/dist/testing/parity.js +428 -0
- package/node_modules/toolcraft/dist/testing/render-capture.d.ts +6 -0
- package/node_modules/toolcraft/dist/testing/render-capture.js +55 -0
- package/node_modules/toolcraft/dist/tiny-mcp-client.d.ts +1 -0
- package/node_modules/toolcraft/dist/tiny-mcp-client.js +1 -0
- package/node_modules/toolcraft/dist/union-validation.d.ts +5 -0
- package/node_modules/toolcraft/dist/union-validation.js +36 -0
- package/node_modules/toolcraft/dist/user-error.d.ts +8 -0
- package/node_modules/toolcraft/dist/user-error.js +10 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/README.md +478 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/_blake.d.ts +20 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/_blake.js +59 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/_md.d.ts +95 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/_md.js +209 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/_u64.d.ts +36 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/_u64.js +77 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/argon2.d.ts +148 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/argon2.js +577 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/blake1.d.ts +162 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/blake1.js +630 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/blake2.d.ts +203 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/blake2.js +573 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/blake3.d.ts +68 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/blake3.js +310 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/eskdf.d.ts +91 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/eskdf.js +225 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/hkdf.d.ts +70 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/hkdf.js +152 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/hmac.d.ts +50 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/hmac.js +93 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/index.js +34 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/legacy.d.ts +107 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/legacy.js +348 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/package.json +91 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/pbkdf2.d.ts +66 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/pbkdf2.js +176 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/scrypt.d.ts +98 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/scrypt.js +304 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/sha2.d.ts +176 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/sha2.js +446 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/sha3-addons.d.ts +533 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/sha3-addons.js +973 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/sha3.d.ts +208 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/sha3.js +475 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/_blake.ts +67 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/_md.ts +227 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/_u64.ts +111 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/argon2.ts +693 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/blake1.ts +677 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/blake2.ts +648 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/blake3.ts +344 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/eskdf.ts +265 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/hkdf.ts +161 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/hmac.ts +130 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/index.ts +33 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/legacy.ts +361 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/pbkdf2.ts +219 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/scrypt.ts +375 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/sha2.ts +486 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/sha3-addons.ts +1157 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/sha3.ts +525 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/utils.ts +978 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/src/webcrypto.ts +283 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/utils.d.ts +560 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/utils.js +687 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/webcrypto.d.ts +121 -0
- package/node_modules/toolcraft/node_modules/@noble/hashes/webcrypto.js +228 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/README.md +15 -2
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/claude-code.js +2 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/claude-desktop.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/codex.js +2 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/cursor.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/gemini-cli.js +2 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/goose.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/index.d.ts +1 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/index.js +1 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/opencode.js +2 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/{kimi.d.ts → pi.d.ts} +1 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/pi.js +15 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/poe-agent.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/capabilities.d.ts +14 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/capabilities.js +63 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/index.d.ts +3 -2
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/index.js +2 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/registry.js +5 -2
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/types.d.ts +8 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/package.json +11 -5
- package/node_modules/toolcraft/node_modules/@poe-code/agent-human-in-loop/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-human-in-loop/README.md +12 -2
- package/node_modules/toolcraft/node_modules/@poe-code/agent-human-in-loop/package.json +10 -4
- package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/README.md +7 -7
- package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/dist/apply.js +23 -9
- package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/dist/configs.js +0 -6
- package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/package.json +9 -6
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/README.md +17 -8
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/execution/apply-mutation.js +17 -19
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/execution/path-utils.d.ts +3 -3
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/execution/path-utils.js +4 -4
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/formats/json.js +1 -3
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/formats/toml.js +1 -3
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/formats/yaml.js +1 -3
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/template/render.js +1 -1
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/testing/mock-fs.d.ts +2 -2
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/testing/mock-fs.js +3 -6
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/types.d.ts +5 -1
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/types.js +1 -1
- package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/package.json +9 -8
- package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/README.md +7 -2
- package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/dist/index.d.ts +1 -1
- package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/dist/index.js +1 -1
- package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/dist/parse.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/dist/parse.js +16 -0
- package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/package.json +7 -5
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/README.md +5 -2
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/docker/build-context.js +2 -3
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/docker/docker-execution-env.js +66 -34
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/host/host-execution-env.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/transfer-filesystem.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/transfer-filesystem.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/transfer-filesystem.workerd.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/transfer-filesystem.workerd.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/types.d.ts +12 -5
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/workspace-transfer.d.ts +6 -5
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/workspace-transfer.js +67 -29
- package/node_modules/toolcraft/node_modules/@poe-code/process-runner/package.json +22 -7
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/PROVENANCE.json +428 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/README.md +453 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/confinement.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/confinement.js +171 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/filesystem.d.ts +93 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/filesystem.js +453 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/index.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/index.js +19 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/stats.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/stats.js +37 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/types.d.ts +81 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/values.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/values.js +65 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/memory.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/memory.js +7 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/real.d.ts +5 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/real.js +16 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/registry.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/registry.js +15 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.d.ts +15 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.js +46 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.node.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.node.js +11 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.portable.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.portable.js +9 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/abort.d.ts +5 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/abort.js +34 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/cleanup.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/cleanup.js +9 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/descriptor.d.ts +38 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/descriptor.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/errors.d.ts +53 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/errors.js +99 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/filesystem.d.ts +411 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/filesystem.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/index.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/index.js +6 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/io.d.ts +12 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/io.js +321 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/object.d.ts +134 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/object.js +97 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/path.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/path.js +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/portable-path.d.ts +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/portable-path.js +78 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/virtual-path.d.ts +15 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/virtual-path.js +162 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/core.d.ts +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/core.js +19 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/capabilities.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/capabilities.js +223 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/conditional-chmod.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/conditional-chmod.js +19 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/descriptor.d.ts +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/descriptor.js +279 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/index.d.ts +62 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/index.js +926 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/path.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/path.js +256 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/plain-path.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/plain-path.js +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/stream.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/stream.js +136 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/directory-admission.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/directory-admission.js +14 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/atomic-view.d.ts +12 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/atomic-view.js +13 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/index.d.ts +190 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/index.js +3862 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/ledger.d.ts +27 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/ledger.js +90 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/limits.d.ts +13 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/limits.js +26 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/missing-target.d.ts +15 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/missing-target.js +144 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/comparison.d.ts +19 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/comparison.js +118 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/identity.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/identity.js +29 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/index.d.ts +79 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/index.js +1490 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/object-authority.d.ts +27 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/object-authority.js +287 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/object-publication/index.d.ts +46 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/object-publication/index.js +536 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/overlay/index.d.ts +91 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/overlay/index.js +1305 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/overlay/memory-publication.d.ts +43 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/overlay/memory-publication.js +583 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/path-namespace.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/path-namespace.js +63 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/quota/index.d.ts +12 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/quota/index.js +525 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/read-file-stream.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/read-file-stream.js +103 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/readonly/index.d.ts +38 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/readonly/index.js +218 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/real/allocation.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/real/allocation.js +8 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/real/index.d.ts +109 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/real/index.js +1393 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/authority.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/authority.js +38 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/filesystem.d.ts +131 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/filesystem.js +1176 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/bytes.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/bytes.js +9 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/index.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/index.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-fetch.d.ts +15 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-fetch.js +74 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-node.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-node.js +111 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request.js +89 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/signature.d.ts +20 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/signature.js +76 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/transport.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/transport.js +478 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/types.d.ts +30 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/types.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/xml.d.ts +14 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/xml.js +192 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/index.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/index.js +4 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/key-order.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/key-order.js +11 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/manifest-admission.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/manifest-admission.js +167 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/mock.d.ts +48 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/mock.js +249 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/namespace.d.ts +13 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/namespace.js +400 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/registry.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/registry.js +73 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/transport.d.ts +103 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/transport.js +28 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/scoped.d.ts +20 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/scoped.js +668 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/staging-ancestry.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/staging-ancestry.js +115 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/staging-cleanup.d.ts +5 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/staging-cleanup.js +63 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/index.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/index.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/resource-id.d.ts +18 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/resource-id.js +109 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/webdav.d.ts +141 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/webdav.js +1377 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/xml.d.ts +15 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/xml.js +59 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/index.d.ts +26 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/index.js +22 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/native/fs-seek/linux-x64-glibc.node +0 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/native/fs-seek/loader.d.ts +5 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/native/fs-seek/loader.mjs +120 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/native/fs-seek/manifest.json +46 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/filesystem.d.ts +19 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/filesystem.js +30 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/host.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/host.js +78 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/index.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/index.js +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/native-seek-unavailable.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/native-seek-unavailable.js +5 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/native-seek.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/native-seek.js +54 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/stats.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/stats.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/values.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/values.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node-host.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node-host.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node-unavailable.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node-unavailable.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/package.json +29 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/browser-path.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/browser-path.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/browser.d.ts +26 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/browser.js +58 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/node-path.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/node-path.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/node.d.ts +26 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/node.js +64 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/transport-budget.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/transport-budget.js +17 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/directory.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/directory.js +38 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/emscripten.d.ts +15 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/emscripten.js +372 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/filesystem.d.ts +51 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/filesystem.js +258 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/flags.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/flags.js +14 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/index.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/index.js +5 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/native.d.ts +18 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/native.js +477 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/request.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/request.js +62 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/stat.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/stat.js +34 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/runtime-core.d.ts +28 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/runtime-core.js +58 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/storage.d.ts +81 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/storage.js +430 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/atomic-filesystem.d.ts +16 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/atomic-filesystem.js +496 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-io-control.d.ts +23 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-io-control.js +39 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-io-metrics.d.ts +31 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-io-metrics.js +144 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-publication.d.ts +19 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-publication.js +209 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/xml.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/xml.js +1 -0
- package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/package.json +196 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/README.md +28 -3
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/gh-issues-client.d.ts +1 -1
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/gh-issues-client.js +15 -4
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/markdown-dir.js +3 -4
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/utils.js +36 -43
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/yaml-file.js +2 -5
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/default-host.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/default-host.js +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/default-host.workerd.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/default-host.workerd.js +6 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/filesystem.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/filesystem.js +32 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/move.js +3 -3
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/open.js +2 -5
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/paths.d.ts +12 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/paths.js +7 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/schema/ids.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/schema/ids.js +6 -0
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/types.d.ts +7 -5
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/package.json +16 -5
- package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/README.md +12 -0
- package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/dist/index.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/dist/index.js +20 -0
- package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/package.json +22 -0
- package/node_modules/toolcraft/node_modules/@poe-code/user-error/README.md +56 -0
- package/node_modules/toolcraft/node_modules/@poe-code/user-error/dist/index.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/@poe-code/user-error/dist/index.js +21 -0
- package/node_modules/toolcraft/node_modules/{mcp-oauth → @poe-code/user-error}/package.json +4 -10
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/README.md +139 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/attributes.d.ts +69 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/attributes.js +62 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/characters.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/characters.js +53 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/errors.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/errors.js +7 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/frames.d.ts +67 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/frames.js +87 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/index.d.ts +101 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/index.js +945 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/source.d.ts +28 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/source.js +71 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/stream.d.ts +32 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/stream.js +179 -0
- package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/package.json +25 -0
- package/node_modules/toolcraft/node_modules/auth-store/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/auth-store/README.md +77 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/create-secret-store.d.ts +3 -1
- package/node_modules/toolcraft/node_modules/auth-store/dist/create-secret-store.js +3 -2
- package/node_modules/toolcraft/node_modules/auth-store/dist/encrypted-file-store.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/encrypted-file-store.js +16 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/index.browser.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/index.browser.js +2 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/index.d.ts +2 -1
- package/node_modules/toolcraft/node_modules/auth-store/dist/index.js +1 -1
- package/node_modules/toolcraft/node_modules/auth-store/dist/keychain-store.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/keychain-store.js +13 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/provider-store.d.ts +1 -1
- package/node_modules/toolcraft/node_modules/auth-store/dist/provider-store.js +3 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/safe-fs-secret-store.d.ts +21 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/safe-fs-secret-store.js +119 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/secret-store.d.ts +12 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/secret-store.js +1 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/transaction-lock.d.ts +22 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/transaction-lock.js +153 -0
- package/node_modules/toolcraft/node_modules/auth-store/dist/types.d.ts +2 -7
- package/node_modules/toolcraft/node_modules/auth-store/package.json +21 -6
- package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/index.js +111 -0
- package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
- package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/types.js +2 -0
- package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
- package/node_modules/toolcraft/node_modules/fast-string-truncated-width/license +21 -0
- package/node_modules/toolcraft/node_modules/fast-string-truncated-width/package.json +35 -0
- package/node_modules/toolcraft/node_modules/fast-string-truncated-width/readme.md +59 -0
- package/node_modules/toolcraft/node_modules/fast-string-width/dist/index.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/fast-string-width/dist/index.js +14 -0
- package/node_modules/toolcraft/node_modules/fast-string-width/license +21 -0
- package/node_modules/toolcraft/node_modules/fast-string-width/package.json +34 -0
- package/node_modules/toolcraft/node_modules/fast-string-width/readme.md +42 -0
- package/node_modules/toolcraft/node_modules/fast-wrap-ansi/LICENSE +23 -0
- package/node_modules/toolcraft/node_modules/fast-wrap-ansi/README.md +26 -0
- package/node_modules/toolcraft/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/fast-wrap-ansi/lib/main.js +218 -0
- package/node_modules/toolcraft/node_modules/fast-wrap-ansi/package.json +51 -0
- package/node_modules/toolcraft/node_modules/ignore/LICENSE-MIT +21 -0
- package/node_modules/toolcraft/node_modules/ignore/README.md +412 -0
- package/node_modules/toolcraft/node_modules/ignore/index.d.ts +61 -0
- package/node_modules/toolcraft/node_modules/ignore/index.js +636 -0
- package/node_modules/toolcraft/node_modules/ignore/legacy.js +559 -0
- package/node_modules/toolcraft/node_modules/ignore/package.json +74 -0
- package/node_modules/toolcraft/node_modules/jose/LICENSE.md +21 -0
- package/node_modules/toolcraft/node_modules/jose/README.md +153 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/index.d.ts +55 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +31 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +65 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +31 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +83 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +38 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +74 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwk/embedded.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwk/thumbprint.d.ts +32 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwks/local.d.ts +29 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwks/remote.d.ts +237 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jws/compact/sign.d.ts +36 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jws/compact/verify.d.ts +33 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jws/flattened/sign.d.ts +42 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jws/flattened/verify.d.ts +33 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jws/general/sign.d.ts +53 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jws/general/verify.d.ts +41 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/decrypt.d.ts +35 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/encrypt.d.ts +91 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/sign.d.ts +43 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/unsecured.d.ts +43 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/verify.d.ts +37 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/key/export.d.ts +33 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/key/generate_key_pair.d.ts +47 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/key/generate_secret.d.ts +35 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/key/import.d.ts +83 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/types.d.ts +852 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/util/base64url.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/util/decode_jwt.d.ts +18 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/util/decode_protected_header.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/jose/dist/types/util/errors.d.ts +213 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/index.js +32 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +159 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +167 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/general/encrypt.js +182 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwks/local.js +119 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/flattened/sign.js +89 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/flattened/verify.js +110 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/general/sign.js +70 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/encrypt.js +101 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/key/export.js +11 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/key/import.js +57 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/aesgcmkw.js +15 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/asn1.js +243 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/buffer_utils.js +43 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/check_key_type.js +122 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/content_encryption.js +217 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/crypto_key.js +136 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/deflate.js +44 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/helpers.js +19 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/invalid_key_input.js +27 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/jwk_to_key.js +107 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +238 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/key_management.js +186 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/normalize_key.js +166 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/pbes2kw.js +42 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/signing.js +68 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/type_checks.js +40 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/util/base64url.js +30 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
- package/node_modules/toolcraft/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/node_modules/toolcraft/node_modules/jose/package.json +200 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/CHANGELOG.md +76 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/LICENSE.md +21 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/README.md +364 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/SECURITY.md +41 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/edit.js +185 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/format.js +261 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/parser.js +659 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/scanner.js +443 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +29 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/main.d.ts +351 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/main.js +178 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/edit.js +201 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/format.js +275 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/parser.js +682 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/scanner.js +456 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/main.d.ts +351 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/main.js +194 -0
- package/node_modules/toolcraft/node_modules/jsonc-parser/package.json +37 -0
- package/node_modules/toolcraft/node_modules/mcp-oauth-server/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/mcp-oauth-server/README.md +192 -0
- package/node_modules/toolcraft/node_modules/mcp-oauth-server/dist/index.d.ts +161 -0
- package/node_modules/toolcraft/node_modules/mcp-oauth-server/dist/index.js +723 -0
- package/node_modules/toolcraft/node_modules/mcp-oauth-server/package.json +34 -0
- package/node_modules/toolcraft/node_modules/saxes/README.md +323 -0
- package/node_modules/toolcraft/node_modules/saxes/package.json +71 -0
- package/node_modules/toolcraft/node_modules/saxes/saxes.d.ts +635 -0
- package/node_modules/toolcraft/node_modules/saxes/saxes.js +2053 -0
- package/node_modules/toolcraft/node_modules/saxes/saxes.js.map +1 -0
- package/node_modules/toolcraft/node_modules/sisteransi/license +21 -0
- package/node_modules/toolcraft/node_modules/sisteransi/package.json +34 -0
- package/node_modules/toolcraft/node_modules/sisteransi/readme.md +113 -0
- package/node_modules/toolcraft/node_modules/sisteransi/src/index.js +58 -0
- package/node_modules/toolcraft/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/node_modules/toolcraft/node_modules/smol-toml/LICENSE +24 -0
- package/node_modules/toolcraft/node_modules/smol-toml/README.md +404 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/date.d.ts +42 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/date.d.ts.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/date.js +128 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/date.js.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/error.d.ts +39 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/error.d.ts.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/error.js +64 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/error.js.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/extract.d.ts +31 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/extract.d.ts.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/extract.js +101 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/extract.js.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/index.cjs +708 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/index.cjs.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/index.d.ts +44 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/index.d.ts.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/index.js +34 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/index.js.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/parse.d.ts +38 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/parse.d.ts.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/parse.js +148 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/parse.js.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/primitive.d.ts +32 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/primitive.d.ts.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/primitive.js +237 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/primitive.js.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/stringify.d.ts +32 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/stringify.d.ts.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/stringify.js +168 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/stringify.js.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/struct.d.ts +33 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/struct.d.ts.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/struct.js +179 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/struct.js.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/util.d.ts +42 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/util.d.ts.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/util.js +86 -0
- package/node_modules/toolcraft/node_modules/smol-toml/dist/util.js.map +1 -0
- package/node_modules/toolcraft/node_modules/smol-toml/package.json +64 -0
- package/node_modules/toolcraft/node_modules/smol-toml/src/date.ts +152 -0
- package/node_modules/toolcraft/node_modules/smol-toml/src/error.ts +77 -0
- package/node_modules/toolcraft/node_modules/smol-toml/src/extract.ts +112 -0
- package/node_modules/toolcraft/node_modules/smol-toml/src/index.ts +42 -0
- package/node_modules/toolcraft/node_modules/smol-toml/src/parse.ts +184 -0
- package/node_modules/toolcraft/node_modules/smol-toml/src/primitive.ts +247 -0
- package/node_modules/toolcraft/node_modules/smol-toml/src/stringify.ts +191 -0
- package/node_modules/toolcraft/node_modules/smol-toml/src/struct.ts +199 -0
- package/node_modules/toolcraft/node_modules/smol-toml/src/util.ts +101 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/README.md +836 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/auth.d.ts +69 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/auth.js +261 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/cli.d.ts +20 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/cli.js +493 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/composition.json +65 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/express-middleware.d.ts +18 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/express-middleware.js +90 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/fetch-body.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/fetch-body.js +47 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/fetch.d.ts +23 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/fetch.js +130 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/http-server.d.ts +53 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/http-server.js +262 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/http-transport.d.ts +173 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/http-transport.js +1097 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/index.d.ts +13 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/index.js +6 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/load-oauth-verifier.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/load-oauth-verifier.js +43 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/modern-headers.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/modern-headers.js +34 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/parse-body.d.ts +23 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/parse-body.js +161 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/server.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/server.js +4 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/session.d.ts +18 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/session.js +37 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/sse.d.ts +11 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/sse.js +22 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/test-support.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/test-support.js +415 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/testing.d.ts +59 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/testing.js +192 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/README.md +390 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/auth-store-session-store.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/auth-store-session-store.js +61 -36
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/authorization-error.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/authorization-error.js +16 -0
- package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/authorization-state.js +4 -4
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/bounded-json.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/bounded-json.js +44 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/cancellable-operation.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/cancellable-operation.js +18 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/client-registration.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/client-registration.js +118 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/default-oauth-client-provider.js +841 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/loopback-authorization.d.ts +36 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/loopback-authorization.js +317 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/oauth-form.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/oauth-form.js +20 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/persistence-options.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/persistence-options.js +10 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/pkce.js +8 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/redirect-target.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/redirect-target.js +42 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/register-client.d.ts +20 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/register-client.js +68 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resource-bound-store.d.ts +20 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resource-bound-store.js +179 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resumable.d.ts +66 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resumable.js +153 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/revoke-token.d.ts +12 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/revoke-token.js +23 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/scope.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/scope.js +9 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/session-transaction.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/session-transaction.js +50 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/token-auth-method.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/token-auth-method.js +7 -0
- package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/token-endpoint.d.ts +11 -3
- package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/token-endpoint.js +66 -29
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/token-grant.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/token-grant.js +56 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/types.d.ts +196 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/types.js +1 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/http-fetch.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/http-fetch.js +45 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/http-response.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/http-response.js +50 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.browser.d.ts +24 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.browser.js +31 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.d.ts +25 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.js +19 -0
- package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/server/jwks-token-verifier.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/server/jwks-token-verifier.js +406 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/types.compile-check.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/package.json +35 -0
- package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/package.json +65 -0
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/README.md +150 -49
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/index.browser.d.ts +909 -0
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/index.browser.js +6923 -0
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/index.d.ts +909 -2
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/index.js +10285 -1
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/package.json +42 -3
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/README.md +296 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/base64.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/base64.js +10 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/composition.json +15 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/audio.d.ts +18 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/audio.js +84 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/convert.d.ts +20 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/convert.js +96 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/file-type.d.ts +11 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/file-type.js +93 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/file.d.ts +33 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/file.js +110 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/image.d.ts +18 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/image.js +72 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/index.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/index.js +9 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/mime.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/mime.js +52 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/remote.d.ts +5 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/remote.js +69 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/core.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/core.js +4 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/headers.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/headers.js +181 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/index.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/index.js +7 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/input-request-schema.d.ts +220 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/input-request-schema.js +1995 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/jsonrpc.d.ts +15 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/jsonrpc.js +131 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/metadata.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/metadata.js +37 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol-server.d.ts +48 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol-server.js +1169 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol-validation.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol-validation.js +53 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol.js +228 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/request-cancellation.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/request-cancellation.js +18 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/sampling-messages.d.ts +18 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/sampling-messages.js +34 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/schema.d.ts +26 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/schema.js +26 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/server.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/server.js +7 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/standard-schema.compile-check.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/standard-schema.compile-check.js +15 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/stdio-input.d.ts +11 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/stdio-input.js +67 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/stdio-output.d.ts +24 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/stdio-output.js +131 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/subscriptions.d.ts +11 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/subscriptions.js +128 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/testing.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/testing.js +20 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/tool-call-admission.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/tool-call-admission.js +51 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/tool-schema.d.ts +13 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/tool-schema.js +53 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/types.d.ts +299 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/types.js +23 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/uri-template.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/uri-template.js +363 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/uri.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/uri.js +41 -0
- package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/package.json +66 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/README.md +47 -7
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/components.d.ts +8 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/components.js +11 -6
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/index.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/index.js +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/plan.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/plan.js +50 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/command-registry.d.ts +11 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/command-registry.js +24 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/command-errors.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/command-errors.js +8 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/file-changes.d.ts +16 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/file-changes.js +162 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/help-formatter-plain.js +61 -25
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/help-formatter.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/help-formatter.js +128 -29
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/index.d.ts +5 -3
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/index.js +3 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/table.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/table.js +58 -5
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/template.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/template.js +27 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/ansi.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/ansi.js +81 -27
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/buffer.js +39 -25
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/border.js +6 -5
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/context-pane.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/context-pane.js +22 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/footer.d.ts +2 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/footer.js +46 -24
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/output-pane.d.ts +6 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/output-pane.js +128 -10
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/run-view.d.ts +27 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/run-view.js +283 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/stats-pane.d.ts +3 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/stats-pane.js +60 -19
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/composer-layout.d.ts +12 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/composer-layout.js +45 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/composer.d.ts +24 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/composer.js +107 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/dashboard.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/dashboard.js +268 -13
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/elapsed.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/elapsed.js +8 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/index.d.ts +4 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/index.js +2 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/keymap.js +26 -6
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/layout.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/layout.js +19 -3
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/line-buffer.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/line-buffer.js +63 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/output-preview.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/output-preview.js +70 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/snapshot.js +3 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/store.js +10 -3
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal-strings.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal-strings.js +108 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal-width.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal-width.js +27 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal.js +39 -12
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/testing/pipeline-scenario.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/testing/pipeline-scenario.js +128 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/types.d.ts +47 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/escape-terminal-text.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/escape-terminal-text.js +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/event-groups.d.ts +19 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/event-groups.js +49 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/actions.d.ts +8 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/actions.js +52 -4
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/demo.js +3 -3
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/detail-content.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/detail-content.js +24 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/events.d.ts +12 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/filter.js +48 -9
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/index.d.ts +2 -4
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/index.js +1 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/jobs.d.ts +2 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/jobs.js +29 -3
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/keymap.d.ts +13 -3
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/keymap.js +89 -348
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/layout.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/layout.js +22 -4
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/reducer.js +198 -45
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/detail.d.ts +2 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/detail.js +37 -31
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/footer.d.ts +1 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/footer.js +18 -3
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/header.d.ts +1 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/header.js +6 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/index.d.ts +1 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/index.js +2 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/list.d.ts +16 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/list.js +49 -43
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/modal.d.ts +1 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/modal.js +26 -13
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/pane.d.ts +6 -3
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/pane.js +10 -14
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/test-fixtures.js +3 -4
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/runtime.js +141 -75
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/runtime.test-helpers.d.ts +23 -37
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/runtime.test-helpers.js +32 -83
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/state.d.ts +95 -8
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/state.js +77 -22
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/help-formatter.d.ts +2 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/help-formatter.js +1 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/index.d.ts +22 -9
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/index.js +15 -6
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/inline-notice.d.ts +14 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/inline-notice.js +28 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/metric.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/metric.js +21 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/overlay-manager.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/overlay-manager.js +10 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/primitives.d.ts +12 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/primitives.js +7 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/progress-group.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/progress-group.js +10 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/core.d.ts +9 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/core.js +208 -31
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/multiselect.js +3 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/pagination.js +21 -27
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/password.js +11 -8
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/select.js +3 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/text.js +12 -9
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/primitives/note.d.ts +1 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/primitives/note.js +4 -4
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/primitives/spinner.js +2 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/render-markdown-plaintext.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/render-markdown-plaintext.js +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/render-performance.d.ts +33 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/render-performance.js +71 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/ansi-text.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/ansi-text.js +35 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/screen.d.ts +40 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/screen.js +122 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/style.d.ts +16 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/style.js +55 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/task-tree.d.ts +22 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/task-tree.js +79 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/driver.d.ts +34 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/driver.js +65 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/input.d.ts +25 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/input.js +197 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/output.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/output.js +44 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/index.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/index.js +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/parser/frontmatter.js +2 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/parser/inline.js +64 -13
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/parser.js +2 -1
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/plaintext-renderer.d.ts +11 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/plaintext-renderer.js +228 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/viewport.d.ts +18 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/viewport.js +56 -0
- package/node_modules/toolcraft/node_modules/toolcraft-design/package.json +13 -9
- package/node_modules/toolcraft/node_modules/toolcraft-schema/LICENSE +21 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/README.md +151 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/clone-default.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/clone-default.js +26 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/index.compile-check.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/index.compile-check.js +18 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/index.d.ts +220 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/index.js +354 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/compiler.d.ts +12 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/compiler.js +396 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/evaluate.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/evaluate.js +445 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/index.d.ts +5 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/index.js +19 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/normalize-nullability.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/normalize-nullability.js +69 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/properties.d.ts +16 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/properties.js +129 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/types.d.ts +34 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/types.js +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/utils.d.ts +19 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/utils.js +174 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema-document.d.ts +14 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema-document.js +17 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json.compile-check.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json.compile-check.js +2 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json.d.ts +23 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json.js +81 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/native-json-schema.d.ts +13 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/native-json-schema.js +12 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/oneof.compile-check.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/oneof.compile-check.js +12 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/oneof.d.ts +16 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/oneof.js +19 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/record.compile-check.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/record.compile-check.js +2 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/record.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/record.js +7 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/standard.compile-check.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/standard.compile-check.js +20 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/standard.d.ts +92 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/standard.js +38 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/union.compile-check.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/union.compile-check.js +9 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/union.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/union.js +46 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/validate.d.ts +21 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/validate.js +393 -0
- package/node_modules/toolcraft/node_modules/toolcraft-schema/package.json +33 -0
- package/node_modules/toolcraft/node_modules/xmlchars/LICENSE +18 -0
- package/node_modules/toolcraft/node_modules/xmlchars/README.md +33 -0
- package/node_modules/toolcraft/node_modules/xmlchars/package.json +51 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xmlchars.d.ts +170 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xmlchars.js +191 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xmlchars.js.map +1 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
- package/node_modules/toolcraft/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
- package/node_modules/toolcraft/node_modules/yaml/LICENSE +13 -0
- package/node_modules/toolcraft/node_modules/yaml/README.md +172 -0
- package/node_modules/toolcraft/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/toolcraft/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/composer.js +224 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Alias.js +118 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/parse/parser.js +980 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/toolcraft/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/toolcraft/node_modules/yaml/package.json +97 -0
- package/node_modules/toolcraft/node_modules/yaml/util.js +2 -0
- package/node_modules/toolcraft/package.json +121 -12
- package/package.json +2 -2
- package/src/adapters/root.ts +30 -18
- package/src/cli.ts +6 -1
- package/src/executable.ts +3 -1
- package/src/mcp.ts +1 -1
- package/node_modules/toolcraft/dist/design/run-two-pane-explorer.d.ts +0 -2
- package/node_modules/toolcraft/dist/design/run-two-pane-explorer.js +0 -1
- package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/kimi.js +0 -16
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/schema/store.schema.json +0 -32
- package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/schema/task.schema.json +0 -33
- package/node_modules/toolcraft/node_modules/mcp-oauth/README.md +0 -31
- package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/auth-store-session-store.d.ts +0 -14
- package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/default-oauth-client-provider.js +0 -627
- package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/loopback-authorization.d.ts +0 -20
- package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/loopback-authorization.js +0 -207
- package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/pkce.js +0 -7
- package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/types.d.ts +0 -113
- package/node_modules/toolcraft/node_modules/mcp-oauth/dist/index.d.ts +0 -10
- package/node_modules/toolcraft/node_modules/mcp-oauth/dist/index.js +0 -7
- package/node_modules/toolcraft/node_modules/mcp-oauth/dist/server/jwks-token-verifier.js +0 -304
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/.turbo/turbo-build.log +0 -7
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/internal.d.ts +0 -556
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/internal.js +0 -2688
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/jsonrpc-types.compile-check.js +0 -37
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-lifecycle-types.compile-check.js +0 -50
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-prompt-types.compile-check.js +0 -50
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-resource-types.compile-check.js +0 -51
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-tool-types.compile-check.js +0 -99
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-transport-types.compile-check.js +0 -56
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-utility-types.compile-check.js +0 -145
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/oauth-discovery.d.ts +0 -24
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/oauth-discovery.js +0 -382
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/http-oauth.integration.test.ts +0 -808
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/http-oauth.test.ts +0 -922
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/index.ts +0 -94
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/internal.ts +0 -3904
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/jsonrpc-types.compile-check.ts +0 -66
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-client-http-transport.integration.test.ts +0 -222
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-client-sdk.test.ts +0 -1326
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-client-tiny-stdio-test-server-tools.test.ts +0 -143
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-lifecycle-types.compile-check.ts +0 -65
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-prompt-types.compile-check.ts +0 -66
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-resource-types.compile-check.ts +0 -70
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-tool-types.compile-check.ts +0 -127
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-transport-types.compile-check.ts +0 -75
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-utility-types.compile-check.ts +0 -181
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mock-servers.test.ts +0 -980
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/oauth-discovery.ts +0 -578
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/package-runtime.test.ts +0 -25
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/transports.test.ts +0 -9018
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/utilities.test.ts +0 -372
- package/node_modules/toolcraft/node_modules/tiny-mcp-client/tsconfig.json +0 -11
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/two-pane.d.ts +0 -102
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/two-pane.js +0 -510
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/run-two-pane-explorer.d.ts +0 -2
- package/node_modules/toolcraft/node_modules/toolcraft-design/dist/run-two-pane-explorer.js +0 -1
- /package/node_modules/toolcraft/{node_modules/mcp-oauth/dist/client/types.js → dist/http-hosted-oauth.compile-check.d.ts} +0 -0
- /package/node_modules/toolcraft/{node_modules/mcp-oauth/dist/types.compile-check.d.ts → dist/http.compile-check.d.ts} +0 -0
- /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/jsonrpc-types.compile-check.d.ts → dist/human-in-loop/runtime-options.js} +0 -0
- /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/mcp-lifecycle-types.compile-check.d.ts → dist/node-require-shim.d.ts} +0 -0
- /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/mcp-prompt-types.compile-check.d.ts → dist/safe-bash-capabilities.compile-check.d.ts} +0 -0
- /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/mcp-resource-types.compile-check.d.ts → dist/safe-bash.compile-check.d.ts} +0 -0
- /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/mcp-tool-types.compile-check.d.ts → dist/schema-standard.compile-check.d.ts} +0 -0
- /package/node_modules/toolcraft/node_modules/{tiny-mcp-client/dist/mcp-transport-types.compile-check.d.ts → @noble/hashes/index.d.ts} +0 -0
- /package/node_modules/toolcraft/node_modules/{tiny-mcp-client/dist/mcp-utility-types.compile-check.d.ts → @poe-code/safe-fs/dist/bridge/types.js} +0 -0
- /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/authorization-state.d.ts +0 -0
- /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/default-oauth-client-provider.d.ts +0 -0
- /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/pkce.d.ts +0 -0
- /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/resource-indicator.d.ts +0 -0
- /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/resource-indicator.js +0 -0
- /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/types.compile-check.js +0 -0
|
@@ -0,0 +1,1305 @@
|
|
|
1
|
+
import { OverlayMemoryPublication } from "./memory-publication.js";
|
|
2
|
+
import { platform } from "#safe-fs-platform";
|
|
3
|
+
import { openRetainedReadFile, requireCapabilities, retainedReadCapabilities } from "../capabilities.js";
|
|
4
|
+
import { finishCleanup } from "../../contracts/cleanup.js";
|
|
5
|
+
import { collectBytes, readBytes } from "../../contracts/io.js";
|
|
6
|
+
import { FsError, toFsError } from "../../contracts/errors.js";
|
|
7
|
+
import { dirname, isPathWithin, normalizePath, validatePath } from "../../contracts/virtual-path.js";
|
|
8
|
+
import { compareIdentity } from "../mount/identity.js";
|
|
9
|
+
import { compareEntries, registerEntryView } from "../mount/comparison.js";
|
|
10
|
+
import { admitDirectoryEntries, directoryEntryLimit } from "../directory-admission.js";
|
|
11
|
+
function snapshotStat(stat) {
|
|
12
|
+
const { type, filesystemType, size, allocatedBytes, ioBlockSize, preferredIoBlockSize, mode, mtimeMs, atimeMs, ctimeMs, birthtimeMs, revision, identityScope, opaqueIdentity, opaqueVersion, ino, dev, rdevMajor, rdevMinor, nlink, uid, gid } = stat;
|
|
13
|
+
return {
|
|
14
|
+
type, size, mode, mtimeMs, atimeMs, ctimeMs,
|
|
15
|
+
...(filesystemType === undefined ? {} : { filesystemType }),
|
|
16
|
+
...(allocatedBytes === undefined ? {} : { allocatedBytes }),
|
|
17
|
+
...(ioBlockSize === undefined ? {} : { ioBlockSize }),
|
|
18
|
+
...(preferredIoBlockSize === undefined ? {} : { preferredIoBlockSize }),
|
|
19
|
+
...(birthtimeMs === undefined ? {} : { birthtimeMs }),
|
|
20
|
+
...(revision === undefined ? {} : { revision }),
|
|
21
|
+
...(identityScope === undefined ? {} : { identityScope }),
|
|
22
|
+
...(opaqueIdentity === undefined ? {} : { opaqueIdentity }),
|
|
23
|
+
...(opaqueVersion === undefined ? {} : { opaqueVersion }),
|
|
24
|
+
...(ino === undefined ? {} : { ino }),
|
|
25
|
+
...(dev === undefined ? {} : { dev }),
|
|
26
|
+
...(rdevMajor === undefined ? {} : { rdevMajor }),
|
|
27
|
+
...(rdevMinor === undefined ? {} : { rdevMinor }),
|
|
28
|
+
...(nlink === undefined ? {} : { nlink }),
|
|
29
|
+
...(uid === undefined ? {} : { uid }),
|
|
30
|
+
...(gid === undefined ? {} : { gid }),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function hasCode(error, code) {
|
|
34
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === code;
|
|
35
|
+
}
|
|
36
|
+
function fail(code, path, message) {
|
|
37
|
+
throw new FsError(code, { syscall: "overlay", path, ...(message === undefined ? {} : { message }) });
|
|
38
|
+
}
|
|
39
|
+
function integer(value, path, unlimited = false) {
|
|
40
|
+
if (unlimited && value === Infinity)
|
|
41
|
+
return;
|
|
42
|
+
if (!Number.isSafeInteger(value) || value < 0)
|
|
43
|
+
fail("EINVAL", path);
|
|
44
|
+
}
|
|
45
|
+
function mode(value, path) {
|
|
46
|
+
if (value !== undefined && (!Number.isInteger(value) || value < 0 || value > 0o7777))
|
|
47
|
+
fail("EINVAL", path);
|
|
48
|
+
}
|
|
49
|
+
function movedPath(path, moves) {
|
|
50
|
+
for (const move of moves) {
|
|
51
|
+
if (isPathWithin(move.source, path))
|
|
52
|
+
path = move.destination + path.slice(move.source.length);
|
|
53
|
+
}
|
|
54
|
+
return path;
|
|
55
|
+
}
|
|
56
|
+
async function waitForTurn(previous, signal) {
|
|
57
|
+
signal?.throwIfAborted();
|
|
58
|
+
if (!signal)
|
|
59
|
+
return previous;
|
|
60
|
+
return new Promise((resolve, reject) => {
|
|
61
|
+
const abort = () => { signal.removeEventListener("abort", abort); reject(signal.reason); };
|
|
62
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
63
|
+
void previous.then(() => { signal.removeEventListener("abort", abort); resolve(); });
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export class OverlayFileSystem {
|
|
67
|
+
capabilities;
|
|
68
|
+
#upper;
|
|
69
|
+
#lower;
|
|
70
|
+
maxBufferBytes;
|
|
71
|
+
whiteouts = new Set();
|
|
72
|
+
opaque = new Set();
|
|
73
|
+
garbage = new Set();
|
|
74
|
+
activeStages = new Set();
|
|
75
|
+
linkMetadata = new Map();
|
|
76
|
+
linkOrigins = new Map();
|
|
77
|
+
publication;
|
|
78
|
+
queue = Promise.resolve();
|
|
79
|
+
constructor(options) {
|
|
80
|
+
if (options.upper === options.lower)
|
|
81
|
+
throw new TypeError("Overlay upper and lower must be distinct backends");
|
|
82
|
+
this.#upper = options.upper;
|
|
83
|
+
this.#lower = options.lower;
|
|
84
|
+
this.publication = new OverlayMemoryPublication(this.#upper, this.#lower, this.whiteouts, this.opaque, this.activeStages);
|
|
85
|
+
registerEntryView(this, (path, options) => this.run(options, async () => {
|
|
86
|
+
const entry = await this.required(path, options);
|
|
87
|
+
return { filesystem: entry.backend, path: entry.path, readOnly: this.capabilities.readOnly === true };
|
|
88
|
+
}, false));
|
|
89
|
+
this.maxBufferBytes = options.maxBufferBytes ?? Infinity;
|
|
90
|
+
if (options.maxBufferBytes !== undefined)
|
|
91
|
+
integer(options.maxBufferBytes, "/", true);
|
|
92
|
+
const writable = !this.#upper.capabilities.readOnly && this.#upper.capabilities.atomicRename === true;
|
|
93
|
+
const readable = [this.#upper, this.#lower].map((backend) => retainedReadCapabilities(backend).retainedRead);
|
|
94
|
+
const streamingRead = readable.every((capability) => capability === true) ? true
|
|
95
|
+
: readable.every((capability) => capability === false) ? false : undefined;
|
|
96
|
+
const retainedRead = streamingRead;
|
|
97
|
+
const streamingWrite = writable && this.#upper.capabilities.streamingWrite === true
|
|
98
|
+
&& retainedReadCapabilities(this.#upper).retainedRead === true
|
|
99
|
+
&& typeof this.#upper.writeStream === "function"
|
|
100
|
+
? readable.every((capability) => capability === true) ? true : undefined : false;
|
|
101
|
+
const append = !writable || this.#upper.capabilities.append === false ? false
|
|
102
|
+
: this.#upper.capabilities.append === true ? true : undefined;
|
|
103
|
+
const upper = this.#upper.capabilities;
|
|
104
|
+
const mutation = requireCapabilities(writable, upper.mkdir, upper.rename, upper.remove, upper.exclusiveCreate, upper.timestamps, upper.permissions);
|
|
105
|
+
const effectiveAppend = requireCapabilities(append, mutation);
|
|
106
|
+
const effectiveStreamingWrite = requireCapabilities(streamingWrite, mutation);
|
|
107
|
+
const semantics = Object.fromEntries([
|
|
108
|
+
...["read", "stat", "readdir", "realpath", "access"].map(capability => [capability,
|
|
109
|
+
requireCapabilities(upper[capability], this.#lower.capabilities[capability], ...(capability === "read" ? readable : []))]),
|
|
110
|
+
["write", requireCapabilities(mutation, upper.write)],
|
|
111
|
+
["exclusiveCreate", requireCapabilities(mutation, upper.exclusiveCreate)],
|
|
112
|
+
["mkdir", requireCapabilities(mutation, upper.mkdir)],
|
|
113
|
+
["recursiveMkdir", requireCapabilities(mutation, upper.recursiveMkdir)],
|
|
114
|
+
["remove", requireCapabilities(mutation, upper.remove)],
|
|
115
|
+
["removeDirectory", requireCapabilities(mutation, upper.removeDirectory)],
|
|
116
|
+
["recursiveRemove", requireCapabilities(mutation, upper.recursiveRemove)],
|
|
117
|
+
["rename", requireCapabilities(mutation, upper.rename, upper.write)],
|
|
118
|
+
["copy", requireCapabilities(mutation, upper.write)],
|
|
119
|
+
["exclusiveCopy", requireCapabilities(mutation, upper.exclusiveCreate)],
|
|
120
|
+
["truncate", requireCapabilities(mutation, streamingWrite)],
|
|
121
|
+
["streamingAppend", requireCapabilities(mutation, streamingWrite)],
|
|
122
|
+
["randomAccessWrite", requireCapabilities(mutation, upper.randomAccessWrite)],
|
|
123
|
+
["explicitDirectories", requireCapabilities(upper.explicitDirectories, this.#lower.capabilities.explicitDirectories)],
|
|
124
|
+
].filter(([, value]) => value !== undefined));
|
|
125
|
+
this.capabilities = Object.freeze({
|
|
126
|
+
...semantics,
|
|
127
|
+
open: false,
|
|
128
|
+
conditionalChmod: this.publication.supported(),
|
|
129
|
+
atomicFilePublication: false, atomicFileMutation: this.publication.supported(), atomicEntryRemoval: false, atomicEntryRemovalReceipt: false, atomicFileStaging: this.publication.supported(), atomicStagingAncestry: this.publication.supported(), retainedStagingCleanup: this.publication.supported(), atomicDirectoryMetadata: this.publication.supported(), trustedOwnedStaging: false,
|
|
130
|
+
implicitDirectories: false,
|
|
131
|
+
readlink: upper.readlink === true && this.#lower.capabilities.readlink === true ? true
|
|
132
|
+
: upper.readlink === false && this.#lower.capabilities.readlink === false ? false : undefined,
|
|
133
|
+
...(upper.readOnly === undefined ? {} : { readOnly: upper.readOnly }),
|
|
134
|
+
...(effectiveAppend === undefined ? {} : { append: effectiveAppend }),
|
|
135
|
+
atomicRename: this.publication.supported(), atomicRenameNoReplace: this.publication.supported(),
|
|
136
|
+
descriptorWriteStream: false,
|
|
137
|
+
retainedResize: false, atomicResize: false,
|
|
138
|
+
hardlinks: false,
|
|
139
|
+
symlinks: writable && this.#upper.capabilities.symlinks === true
|
|
140
|
+
&& typeof this.#upper.symlink === "function" && typeof this.#upper.readlink === "function"
|
|
141
|
+
&& (this.#lower.capabilities.symlinks !== true || typeof this.#lower.readlink === "function"),
|
|
142
|
+
permissions: writable && this.#upper.capabilities.permissions === true && typeof this.#upper.chmod === "function",
|
|
143
|
+
timestamps: writable && this.#upper.capabilities.timestamps === true && typeof this.#upper.utimes === "function",
|
|
144
|
+
...(streamingRead === undefined ? {} : { streamingRead }),
|
|
145
|
+
...(retainedRead === undefined ? {} : { retainedRead }),
|
|
146
|
+
...(effectiveStreamingWrite === undefined ? {} : { streamingWrite: effectiveStreamingWrite }),
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(this, "capabilities", { writable: false, configurable: false });
|
|
149
|
+
}
|
|
150
|
+
confineExtraction(roots, options = {}) {
|
|
151
|
+
if (options.commitGuard !== undefined)
|
|
152
|
+
return Promise.reject(new FsError("ENOTSUP"));
|
|
153
|
+
return this.run(options, async () => this.publication.confine(roots, options, (options, operation) => this.run(options, operation, false), this, this.maxBufferBytes), false);
|
|
154
|
+
}
|
|
155
|
+
createStagedFile(directory, name, content, options) {
|
|
156
|
+
return this.run(options, async () => {
|
|
157
|
+
if (content.type === "file" && content.data.byteLength > this.maxBufferBytes)
|
|
158
|
+
fail("EFBIG", directory);
|
|
159
|
+
return this.publication.create(directory, name, content, options);
|
|
160
|
+
}, false);
|
|
161
|
+
}
|
|
162
|
+
publishStagedFile(staging, destination, options) {
|
|
163
|
+
return this.run(options, () => this.publication.publish(staging, destination, options), false);
|
|
164
|
+
}
|
|
165
|
+
removeStagedFile(staging, options = {}) {
|
|
166
|
+
return this.run(options, () => this.publication.cleanup(staging, options), false);
|
|
167
|
+
}
|
|
168
|
+
async open(path, options) {
|
|
169
|
+
options.signal?.throwIfAborted();
|
|
170
|
+
throw new FsError("ENOTSUP", { syscall: "open", path });
|
|
171
|
+
}
|
|
172
|
+
async run(options, operation, cleanup = true) {
|
|
173
|
+
options.signal?.throwIfAborted();
|
|
174
|
+
const previous = this.queue;
|
|
175
|
+
let release;
|
|
176
|
+
this.queue = new Promise((resolve) => { release = resolve; });
|
|
177
|
+
try {
|
|
178
|
+
await waitForTurn(previous, options.signal);
|
|
179
|
+
}
|
|
180
|
+
catch (error) {
|
|
181
|
+
void previous.then(release);
|
|
182
|
+
throw error;
|
|
183
|
+
}
|
|
184
|
+
try {
|
|
185
|
+
options.signal?.throwIfAborted();
|
|
186
|
+
if (cleanup)
|
|
187
|
+
await this.cleanGarbage(false);
|
|
188
|
+
return await operation();
|
|
189
|
+
}
|
|
190
|
+
finally {
|
|
191
|
+
release();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
capabilitiesFor(path, options = {}) {
|
|
195
|
+
return this.run(options, async () => {
|
|
196
|
+
validatePath(path);
|
|
197
|
+
// Owned cleanup queries capabilities before using its retained receipt;
|
|
198
|
+
// private staging is deliberately unavailable to pathname resolution.
|
|
199
|
+
if ([...this.activeStages].some(root => isPathWithin(root, path)))
|
|
200
|
+
return this.capabilities;
|
|
201
|
+
const location = await this.resolve(path, options, options.create !== undefined || options.creation !== "exclusive", true);
|
|
202
|
+
const backend = location.entry?.backend ?? this.#upper;
|
|
203
|
+
const capabilities = await backend.capabilitiesFor?.(location.path, options) ?? backend.capabilities;
|
|
204
|
+
options.signal?.throwIfAborted();
|
|
205
|
+
const { retainedRead: ignoredRetainedRead, ...composed } = this.capabilities;
|
|
206
|
+
const retainedRead = retainedReadCapabilities(backend, capabilities).retainedRead;
|
|
207
|
+
return Object.freeze({ ...composed, ...(retainedRead === undefined ? {} : { retainedRead }) });
|
|
208
|
+
}, false);
|
|
209
|
+
}
|
|
210
|
+
openReadFile(path, options = {}) {
|
|
211
|
+
return this.run(options, async () => {
|
|
212
|
+
const entry = await this.required(path, options);
|
|
213
|
+
if (entry.stat.type !== "file") {
|
|
214
|
+
const allowDirectory = options.allowDirectory === true;
|
|
215
|
+
options.signal?.throwIfAborted();
|
|
216
|
+
if (entry.stat.type !== "directory" || !allowDirectory)
|
|
217
|
+
fail("EISDIR", path);
|
|
218
|
+
}
|
|
219
|
+
this.permission(entry, 4);
|
|
220
|
+
return this.pinRead(entry, options);
|
|
221
|
+
}, false);
|
|
222
|
+
}
|
|
223
|
+
async pinRead(entry, options) {
|
|
224
|
+
// A retained object, not the resolved pathname, carries read authority.
|
|
225
|
+
if (compareIdentity(entry.stat, entry.stat) !== "same")
|
|
226
|
+
fail("ENOTSUP", entry.path, "overlay reads require stable backend identity");
|
|
227
|
+
const ancestors = [];
|
|
228
|
+
let parent = dirname(entry.path);
|
|
229
|
+
while (true) {
|
|
230
|
+
const stat = await entry.backend.lstat(parent, options);
|
|
231
|
+
if (stat.type !== "directory" || compareIdentity(stat, stat) !== "same")
|
|
232
|
+
fail("ENOTSUP", entry.path, "overlay reads require stable directory ancestry");
|
|
233
|
+
ancestors.push({ backend: entry.backend, path: parent, stat });
|
|
234
|
+
if (parent === "/")
|
|
235
|
+
break;
|
|
236
|
+
parent = dirname(parent);
|
|
237
|
+
}
|
|
238
|
+
const handle = await openRetainedReadFile(entry.backend, entry.path, options);
|
|
239
|
+
try {
|
|
240
|
+
if (compareIdentity(entry.stat, await handle.stat(options)) !== "same")
|
|
241
|
+
fail("ENOTSUP", entry.path, "backend read object changed during admission");
|
|
242
|
+
for (const ancestor of ancestors) {
|
|
243
|
+
const stat = await entry.backend.lstat(ancestor.path, options);
|
|
244
|
+
if (stat.type !== "directory" || compareIdentity(ancestor.stat, stat) !== "same")
|
|
245
|
+
fail("ENOTSUP", entry.path, "backend read ancestry changed during admission");
|
|
246
|
+
}
|
|
247
|
+
const current = await this.required(entry.path, options);
|
|
248
|
+
if (current.backend !== entry.backend || compareIdentity(entry.stat, current.stat) !== "same")
|
|
249
|
+
fail("ENOTSUP", entry.path, "overlay read layer changed during admission");
|
|
250
|
+
options.signal?.throwIfAborted();
|
|
251
|
+
if (entry.stat.type === "directory" && this.publication.supported()) {
|
|
252
|
+
const logical = this.publication.stat(entry.path, snapshotStat(entry.stat));
|
|
253
|
+
return new Proxy(handle, {
|
|
254
|
+
get(target, property) {
|
|
255
|
+
if (property === "stat")
|
|
256
|
+
return async (options = {}) => ({
|
|
257
|
+
...await target.stat(options), identityScope: logical.identityScope, dev: logical.dev, ino: logical.ino,
|
|
258
|
+
});
|
|
259
|
+
const value = Reflect.get(target, property, target);
|
|
260
|
+
return typeof value === "function" ? value.bind(target) : value;
|
|
261
|
+
},
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
return handle;
|
|
265
|
+
}
|
|
266
|
+
catch (error) {
|
|
267
|
+
await finishCleanup(() => handle.close(), true);
|
|
268
|
+
throw error;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
async *handleBytes(handle, options) {
|
|
272
|
+
let position = options.start ?? 0;
|
|
273
|
+
const end = options.endExclusive ?? Number.MAX_SAFE_INTEGER;
|
|
274
|
+
const chunkSize = options.chunkSize ?? 64 * 1024;
|
|
275
|
+
while (position < end) {
|
|
276
|
+
const size = Math.min(chunkSize, end - position);
|
|
277
|
+
const chunk = await handle.read(position, size, options);
|
|
278
|
+
options.signal?.throwIfAborted();
|
|
279
|
+
if (!(chunk instanceof Uint8Array) || chunk.byteLength > size)
|
|
280
|
+
fail("EIO", "", "backend returned invalid retained bytes");
|
|
281
|
+
if (!chunk.byteLength)
|
|
282
|
+
break;
|
|
283
|
+
position += chunk.byteLength;
|
|
284
|
+
yield new Uint8Array(chunk);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
writable(path) {
|
|
288
|
+
if (this.#upper.capabilities.readOnly)
|
|
289
|
+
fail("EROFS", path);
|
|
290
|
+
if (this.#upper.capabilities.atomicRename !== true)
|
|
291
|
+
fail("ENOTSUP", path, "staged mutations require an atomic-rename-capable upper");
|
|
292
|
+
}
|
|
293
|
+
permission(entry, mask) {
|
|
294
|
+
if (entry.backend.capabilities.permissions && ((entry.stat.mode >> 6) & mask) !== mask)
|
|
295
|
+
fail("EACCES", entry.path);
|
|
296
|
+
}
|
|
297
|
+
async maybeStat(backend, path, options) {
|
|
298
|
+
options.signal?.throwIfAborted();
|
|
299
|
+
let stat;
|
|
300
|
+
try {
|
|
301
|
+
stat = await backend.lstat(path, options);
|
|
302
|
+
}
|
|
303
|
+
catch (error) {
|
|
304
|
+
options.signal?.throwIfAborted();
|
|
305
|
+
if (hasCode(error, "ENOENT"))
|
|
306
|
+
return undefined;
|
|
307
|
+
throw error;
|
|
308
|
+
}
|
|
309
|
+
return snapshotStat(stat);
|
|
310
|
+
}
|
|
311
|
+
hidden(path) {
|
|
312
|
+
return [...this.garbage, ...this.activeStages].some((root) => isPathWithin(root, path));
|
|
313
|
+
}
|
|
314
|
+
async lowerVisible(path, options) {
|
|
315
|
+
for (const root of this.whiteouts)
|
|
316
|
+
if (isPathWithin(root, path))
|
|
317
|
+
return false;
|
|
318
|
+
for (const root of this.opaque)
|
|
319
|
+
if (root !== path && isPathWithin(root, path))
|
|
320
|
+
return false;
|
|
321
|
+
const ancestors = path.split("/").filter(Boolean).slice(0, -1);
|
|
322
|
+
let parent = "";
|
|
323
|
+
for (const component of ancestors) {
|
|
324
|
+
parent += `/${component}`;
|
|
325
|
+
const stat = await this.maybeStat(this.#lower, parent, options);
|
|
326
|
+
if (!stat || stat.type !== "directory")
|
|
327
|
+
return false;
|
|
328
|
+
}
|
|
329
|
+
return true;
|
|
330
|
+
}
|
|
331
|
+
async lookup(path, options) {
|
|
332
|
+
if (this.hidden(path))
|
|
333
|
+
return undefined;
|
|
334
|
+
const upper = await this.maybeStat(this.#upper, path, options);
|
|
335
|
+
if (upper)
|
|
336
|
+
return { path, backend: this.#upper, stat: { ...upper, ...(upper.type === "symlink" ? this.linkMetadata.get(path) : {}) } };
|
|
337
|
+
if (!await this.lowerVisible(path, options))
|
|
338
|
+
return undefined;
|
|
339
|
+
const lower = await this.maybeStat(this.#lower, path, options);
|
|
340
|
+
return lower ? { path, backend: this.#lower, stat: lower } : undefined;
|
|
341
|
+
}
|
|
342
|
+
async resolve(path, options, followFinal = true, allowMissing = false, createMode) {
|
|
343
|
+
validatePath(path);
|
|
344
|
+
if (!path)
|
|
345
|
+
fail("ENOENT", path);
|
|
346
|
+
const pending = path.split("/").filter(Boolean);
|
|
347
|
+
if (path.endsWith("/"))
|
|
348
|
+
pending.push(".");
|
|
349
|
+
const verifications = [];
|
|
350
|
+
const verified = async (location) => {
|
|
351
|
+
for (const verification of verifications) {
|
|
352
|
+
const canonical = await verification.backend.realpath(verification.path, options);
|
|
353
|
+
options.signal?.throwIfAborted();
|
|
354
|
+
validatePath(canonical);
|
|
355
|
+
if (!canonical.startsWith("/"))
|
|
356
|
+
fail("EIO", verification.path, "backend returned a nonabsolute realpath");
|
|
357
|
+
if (verification.finalName !== undefined) {
|
|
358
|
+
try {
|
|
359
|
+
await verification.backend.lstat(`${verification.path}/${verification.finalName}`, options);
|
|
360
|
+
}
|
|
361
|
+
catch (error) {
|
|
362
|
+
if (location.entry || !hasCode(error, "ENOENT"))
|
|
363
|
+
throw error;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
const expected = verification.finalName === undefined ? canonical
|
|
367
|
+
: `${canonical === "/" ? "" : canonical}/${verification.finalName}`;
|
|
368
|
+
if (location.path !== movedPath(expected, verification.moves ?? []))
|
|
369
|
+
fail("ENOTSUP", path, "backend cannot confirm the overlay symlink namespace");
|
|
370
|
+
}
|
|
371
|
+
options.signal?.throwIfAborted();
|
|
372
|
+
return location;
|
|
373
|
+
};
|
|
374
|
+
let current = "/";
|
|
375
|
+
let links = 0;
|
|
376
|
+
while (pending.length) {
|
|
377
|
+
options.signal?.throwIfAborted();
|
|
378
|
+
const parent = await this.lookup(current, options);
|
|
379
|
+
if (!parent)
|
|
380
|
+
fail("ENOENT", current);
|
|
381
|
+
if (parent.stat.type !== "directory")
|
|
382
|
+
fail("ENOTDIR", current);
|
|
383
|
+
this.permission(parent, 1);
|
|
384
|
+
const component = pending.shift();
|
|
385
|
+
if (component === ".")
|
|
386
|
+
continue;
|
|
387
|
+
if (component === "..") {
|
|
388
|
+
current = dirname(current);
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
if (new TextEncoder().encode(component).byteLength > 255)
|
|
392
|
+
fail("ENAMETOOLONG", path);
|
|
393
|
+
const candidate = current === "/" ? `/${component}` : `${current}/${component}`;
|
|
394
|
+
if (this.hidden(candidate))
|
|
395
|
+
fail(allowMissing || createMode !== undefined ? "EBUSY" : "ENOENT", candidate);
|
|
396
|
+
let entry = await this.lookup(candidate, options);
|
|
397
|
+
if (!entry && createMode !== undefined) {
|
|
398
|
+
if (verifications.length)
|
|
399
|
+
fail("ENOTSUP", path, "recursive creation through symlinks cannot be verified before mutation");
|
|
400
|
+
await this.makeDirectory(candidate, createMode, options);
|
|
401
|
+
entry = await this.lookup(candidate, options);
|
|
402
|
+
}
|
|
403
|
+
if (!entry) {
|
|
404
|
+
if (allowMissing && pending.length === 0)
|
|
405
|
+
return verified({ path: candidate });
|
|
406
|
+
fail("ENOENT", candidate);
|
|
407
|
+
}
|
|
408
|
+
if (entry.stat.type === "symlink" && (followFinal || pending.length > 0)) {
|
|
409
|
+
if (++links > 40)
|
|
410
|
+
fail("ELOOP", path);
|
|
411
|
+
const suffix = [...pending];
|
|
412
|
+
const last = suffix.at(-1);
|
|
413
|
+
const finalName = !followFinal && last !== undefined && last !== "." && last !== ".." ? suffix.pop() : undefined;
|
|
414
|
+
verifications.push({
|
|
415
|
+
backend: entry.backend,
|
|
416
|
+
path: candidate + (suffix.length ? `/${suffix.join("/")}` : ""),
|
|
417
|
+
finalName,
|
|
418
|
+
});
|
|
419
|
+
const origin = entry.backend === this.#upper ? this.linkOrigins.get(candidate) : undefined;
|
|
420
|
+
if (origin)
|
|
421
|
+
verifications.push({
|
|
422
|
+
backend: this.#lower,
|
|
423
|
+
path: origin.path + (suffix.length ? `/${suffix.join("/")}` : ""),
|
|
424
|
+
finalName,
|
|
425
|
+
moves: origin.moves,
|
|
426
|
+
});
|
|
427
|
+
const target = await this.linkTarget(entry, options);
|
|
428
|
+
const parts = target.split("/").filter(Boolean);
|
|
429
|
+
if (target.endsWith("/"))
|
|
430
|
+
parts.push(".");
|
|
431
|
+
pending.unshift(...parts);
|
|
432
|
+
if (target.startsWith("/"))
|
|
433
|
+
current = "/";
|
|
434
|
+
}
|
|
435
|
+
else
|
|
436
|
+
current = candidate;
|
|
437
|
+
}
|
|
438
|
+
const entry = await this.lookup(current, options);
|
|
439
|
+
if (!entry)
|
|
440
|
+
fail("ENOENT", current);
|
|
441
|
+
return verified({ path: current, entry });
|
|
442
|
+
}
|
|
443
|
+
async linkTarget(entry, options) {
|
|
444
|
+
if (!entry.backend.readlink)
|
|
445
|
+
fail("ENOTSUP", entry.path);
|
|
446
|
+
const target = await entry.backend.readlink(entry.path, options);
|
|
447
|
+
options.signal?.throwIfAborted();
|
|
448
|
+
validatePath(target);
|
|
449
|
+
if (!target)
|
|
450
|
+
fail("ENOENT", entry.path);
|
|
451
|
+
return target;
|
|
452
|
+
}
|
|
453
|
+
async movableLinkTarget(entry, options) {
|
|
454
|
+
const target = await this.linkTarget(entry, options);
|
|
455
|
+
const canonical = await entry.backend.realpath(entry.path, options);
|
|
456
|
+
options.signal?.throwIfAborted();
|
|
457
|
+
const parts = target.split("/").filter(Boolean);
|
|
458
|
+
if (target.endsWith("/"))
|
|
459
|
+
parts.push(".");
|
|
460
|
+
let current = target.startsWith("/") ? "/" : dirname(entry.path);
|
|
461
|
+
let stat = await this.maybeStat(entry.backend, current, options);
|
|
462
|
+
for (const part of parts) {
|
|
463
|
+
if (!stat)
|
|
464
|
+
fail("ENOENT", current);
|
|
465
|
+
if (stat.type !== "directory")
|
|
466
|
+
fail("ENOTSUP", entry.path, "symlink copy-up requires an alias-free target path");
|
|
467
|
+
if (part === ".")
|
|
468
|
+
continue;
|
|
469
|
+
current = part === ".." ? dirname(current) : `${current === "/" ? "" : current}/${part}`;
|
|
470
|
+
stat = await this.maybeStat(entry.backend, current, options);
|
|
471
|
+
if (stat?.type === "symlink")
|
|
472
|
+
fail("ENOTSUP", entry.path, "symlink copy-up cannot preserve an ambiguous target alias");
|
|
473
|
+
}
|
|
474
|
+
if (!stat)
|
|
475
|
+
fail("ENOENT", current);
|
|
476
|
+
if (canonical !== current)
|
|
477
|
+
fail("ENOTSUP", entry.path, "backend cannot prove symlink semantics survive copy-up");
|
|
478
|
+
return target;
|
|
479
|
+
}
|
|
480
|
+
async required(path, options, followFinal = true) {
|
|
481
|
+
return (await this.resolve(path, options, followFinal)).entry;
|
|
482
|
+
}
|
|
483
|
+
async listing(entry, options, limit) {
|
|
484
|
+
if (entry.stat.type !== "directory")
|
|
485
|
+
fail("ENOTDIR", entry.path);
|
|
486
|
+
this.permission(entry, 4);
|
|
487
|
+
const names = new Set();
|
|
488
|
+
const admit = (name) => {
|
|
489
|
+
options.signal?.throwIfAborted();
|
|
490
|
+
if (!names.has(name))
|
|
491
|
+
admitDirectoryEntries(names.size + 1, limit, entry.path);
|
|
492
|
+
names.add(name);
|
|
493
|
+
};
|
|
494
|
+
const upper = await this.maybeStat(this.#upper, entry.path, options);
|
|
495
|
+
if (upper?.type === "directory") {
|
|
496
|
+
const children = await this.#upper.readdir(entry.path, options);
|
|
497
|
+
options.signal?.throwIfAborted();
|
|
498
|
+
admitDirectoryEntries(children.length, limit, entry.path);
|
|
499
|
+
for (const child of children)
|
|
500
|
+
admit(child.name);
|
|
501
|
+
}
|
|
502
|
+
if (await this.lowerVisible(entry.path, options) && !this.opaque.has(entry.path)) {
|
|
503
|
+
const lower = await this.maybeStat(this.#lower, entry.path, options);
|
|
504
|
+
if (lower?.type === "directory") {
|
|
505
|
+
const children = await this.#lower.readdir(entry.path, options);
|
|
506
|
+
options.signal?.throwIfAborted();
|
|
507
|
+
admitDirectoryEntries(children.length, limit, entry.path);
|
|
508
|
+
for (const child of children)
|
|
509
|
+
admit(child.name);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
const entries = [];
|
|
513
|
+
for (const name of [...names].sort()) {
|
|
514
|
+
if (!name || name === "." || name === ".." || name.includes("/") || name.includes("\0"))
|
|
515
|
+
fail("EIO", entry.path, "invalid backend directory entry");
|
|
516
|
+
const child = await this.lookup(entry.path === "/" ? `/${name}` : `${entry.path}/${name}`, options);
|
|
517
|
+
if (child)
|
|
518
|
+
entries.push({ name, type: child.stat.type });
|
|
519
|
+
}
|
|
520
|
+
return entries;
|
|
521
|
+
}
|
|
522
|
+
async bytes(entry, options) {
|
|
523
|
+
if (entry.stat.type !== "file")
|
|
524
|
+
fail("EISDIR", entry.path);
|
|
525
|
+
this.permission(entry, 4);
|
|
526
|
+
if (options.maxBytes !== undefined)
|
|
527
|
+
integer(options.maxBytes, entry.path, true);
|
|
528
|
+
const limit = Math.min(options.maxBytes ?? this.maxBufferBytes, this.maxBufferBytes);
|
|
529
|
+
if (entry.stat.size > limit)
|
|
530
|
+
fail("EFBIG", entry.path);
|
|
531
|
+
const handle = await this.pinRead(entry, options);
|
|
532
|
+
let failed = true;
|
|
533
|
+
try {
|
|
534
|
+
const result = await collectBytes(this.handleBytes(handle, options), { ...options, ...(limit === Infinity ? {} : { maxBytes: limit }) });
|
|
535
|
+
failed = false;
|
|
536
|
+
return result;
|
|
537
|
+
}
|
|
538
|
+
finally {
|
|
539
|
+
await finishCleanup(() => handle.close(), failed);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
async cleanGarbage(strict) {
|
|
543
|
+
const failures = [];
|
|
544
|
+
for (const path of this.garbage) {
|
|
545
|
+
try {
|
|
546
|
+
await this.#upper.rm(path, { recursive: true, force: true });
|
|
547
|
+
this.garbage.delete(path);
|
|
548
|
+
}
|
|
549
|
+
catch (error) {
|
|
550
|
+
failures.push(error);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
if (strict && failures.length)
|
|
554
|
+
throw new AggregateError(failures, "Overlay staging cleanup failed");
|
|
555
|
+
}
|
|
556
|
+
async cleanup(options = {}) {
|
|
557
|
+
return this.run(options, () => this.cleanGarbage(true));
|
|
558
|
+
}
|
|
559
|
+
// Receipts describe overlay paths and identities, never backing-layer staging paths.
|
|
560
|
+
stagingOptions({ signal }) {
|
|
561
|
+
return signal === undefined ? {} : { signal };
|
|
562
|
+
}
|
|
563
|
+
async staged(options, operation) {
|
|
564
|
+
options = this.stagingOptions(options);
|
|
565
|
+
const root = `/.virtual-bash-overlay-${platform.randomUUID()}`;
|
|
566
|
+
if (await this.maybeStat(this.#upper, root, options) || await this.maybeStat(this.#lower, root, options))
|
|
567
|
+
fail("EEXIST", root);
|
|
568
|
+
this.activeStages.add(root);
|
|
569
|
+
try {
|
|
570
|
+
await this.#upper.mkdir(root, { ...options, mode: 0o700 });
|
|
571
|
+
return await operation(`${root}/entry`);
|
|
572
|
+
}
|
|
573
|
+
finally {
|
|
574
|
+
this.activeStages.delete(root);
|
|
575
|
+
this.garbage.add(root);
|
|
576
|
+
await this.cleanGarbage(false);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
async preserve(path, stat, options) {
|
|
580
|
+
options = this.stagingOptions(options);
|
|
581
|
+
if (this.#upper.chmod)
|
|
582
|
+
await this.#upper.chmod(path, stat.mode & 0o7777, options);
|
|
583
|
+
else if (((await this.#upper.lstat(path, options)).mode & 0o7777) !== (stat.mode & 0o7777))
|
|
584
|
+
fail("ENOTSUP", path, "upper cannot preserve modes");
|
|
585
|
+
if (!this.#upper.utimes)
|
|
586
|
+
fail("ENOTSUP", path, "upper cannot preserve timestamps during copy-up");
|
|
587
|
+
await this.#upper.utimes(path, stat.atimeMs, stat.mtimeMs, options);
|
|
588
|
+
}
|
|
589
|
+
async clone(entry, destination, options) {
|
|
590
|
+
options = this.stagingOptions(options);
|
|
591
|
+
if (entry.stat.type !== "directory" && ((entry.stat.nlink ?? 1) > 1
|
|
592
|
+
|| (entry.backend.capabilities.hardlinks === true && entry.stat.nlink === undefined))) {
|
|
593
|
+
fail("ENOTSUP", entry.path, "copy-up cannot preserve hardlink identity");
|
|
594
|
+
}
|
|
595
|
+
if (entry.stat.type === "symlink") {
|
|
596
|
+
if (!this.capabilities.symlinks || !entry.backend.readlink || !this.#upper.symlink)
|
|
597
|
+
fail("ENOTSUP", entry.path);
|
|
598
|
+
await this.#upper.symlink(await this.movableLinkTarget(entry, options), destination, options);
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
if (entry.stat.type === "directory")
|
|
602
|
+
await this.#upper.mkdir(destination, { ...options, mode: entry.stat.mode & 0o7777 });
|
|
603
|
+
else {
|
|
604
|
+
if (this.#upper.capabilities.streamingWrite !== true || !this.#upper.writeStream)
|
|
605
|
+
fail("ENOTSUP", destination, "copy-up requires a streaming upper");
|
|
606
|
+
this.permission(entry, 4);
|
|
607
|
+
if (entry.stat.size > this.maxBufferBytes)
|
|
608
|
+
fail("EFBIG", entry.path);
|
|
609
|
+
await this.streamToUpper(destination, this.bounded(this.entryBytes(entry, options), entry.path, options), { ...options, mode: 0o600, flag: "wx" });
|
|
610
|
+
}
|
|
611
|
+
await this.preserve(destination, entry.stat, options);
|
|
612
|
+
}
|
|
613
|
+
rememberLink(entry, destination) {
|
|
614
|
+
this.linkMetadata.delete(destination);
|
|
615
|
+
if (entry.stat.type === "symlink") {
|
|
616
|
+
this.linkMetadata.set(destination, { mode: entry.stat.mode, atimeMs: entry.stat.atimeMs, mtimeMs: entry.stat.mtimeMs });
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
async ensureDirectory(path, options) {
|
|
620
|
+
options = this.stagingOptions(options);
|
|
621
|
+
const entry = await this.lookup(path, options);
|
|
622
|
+
if (!entry)
|
|
623
|
+
fail("ENOENT", path);
|
|
624
|
+
if (entry.stat.type !== "directory")
|
|
625
|
+
fail("ENOTDIR", path);
|
|
626
|
+
if (entry.backend === this.#upper)
|
|
627
|
+
return;
|
|
628
|
+
await this.copyUp(entry, options);
|
|
629
|
+
}
|
|
630
|
+
async copyUp(entry, options) {
|
|
631
|
+
options = this.stagingOptions(options);
|
|
632
|
+
if (entry.backend === this.#upper)
|
|
633
|
+
return;
|
|
634
|
+
if (entry.path === "/")
|
|
635
|
+
fail("ENOTSUP", entry.path, "upper must have a directory root");
|
|
636
|
+
let origin;
|
|
637
|
+
if (entry.stat.type === "symlink") {
|
|
638
|
+
const target = await this.movableLinkTarget(entry, options);
|
|
639
|
+
origin = { path: entry.path, target, canonical: normalizePath(target, dirname(entry.path)), moves: [] };
|
|
640
|
+
}
|
|
641
|
+
await this.ensureDirectory(dirname(entry.path), options);
|
|
642
|
+
await this.staged(options, async (temporary) => {
|
|
643
|
+
await this.clone(entry, temporary, options);
|
|
644
|
+
options.signal?.throwIfAborted();
|
|
645
|
+
await this.#upper.rename(temporary, entry.path, options);
|
|
646
|
+
if (entry.stat.type === "directory")
|
|
647
|
+
this.publication.copiedDirectory(entry.path, entry.stat);
|
|
648
|
+
this.rememberLink(entry, entry.path);
|
|
649
|
+
if (origin)
|
|
650
|
+
this.linkOrigins.set(entry.path, origin);
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
async parent(path, options) {
|
|
654
|
+
options = this.stagingOptions(options);
|
|
655
|
+
const parent = await this.lookup(dirname(path), options);
|
|
656
|
+
if (!parent)
|
|
657
|
+
fail("ENOENT", dirname(path));
|
|
658
|
+
if (parent.stat.type !== "directory")
|
|
659
|
+
fail("ENOTDIR", dirname(path));
|
|
660
|
+
this.permission(parent, 3);
|
|
661
|
+
await this.ensureDirectory(parent.path, options);
|
|
662
|
+
}
|
|
663
|
+
async makeDirectory(path, permissions, options) {
|
|
664
|
+
await this.parent(path, options);
|
|
665
|
+
await this.staged(options, async (temporary) => {
|
|
666
|
+
await this.#upper.mkdir(temporary, { ...options, mode: permissions });
|
|
667
|
+
options.signal?.throwIfAborted();
|
|
668
|
+
await this.#upper.rename(temporary, path, options);
|
|
669
|
+
this.opaque.add(path);
|
|
670
|
+
this.linkMetadata.delete(path);
|
|
671
|
+
this.linkOrigins.delete(path);
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
writeOptions(path, options) {
|
|
675
|
+
this.writable(path);
|
|
676
|
+
mode(options.mode, path);
|
|
677
|
+
if (!["w", "wx", "a", "ax"].includes(options.flag ?? "w"))
|
|
678
|
+
fail("EINVAL", path);
|
|
679
|
+
}
|
|
680
|
+
async writeLocation(path, options) {
|
|
681
|
+
const exclusive = options.flag === "wx" || options.flag === "ax";
|
|
682
|
+
const location = await this.resolve(path, options, !exclusive, true);
|
|
683
|
+
if (exclusive && location.entry)
|
|
684
|
+
fail("EEXIST", path);
|
|
685
|
+
if (location.entry) {
|
|
686
|
+
if (location.entry.stat.type !== "file")
|
|
687
|
+
fail("EISDIR", path);
|
|
688
|
+
this.permission(location.entry, 2);
|
|
689
|
+
}
|
|
690
|
+
return location;
|
|
691
|
+
}
|
|
692
|
+
async replace(location, options, operation, commitGuard) {
|
|
693
|
+
await this.parent(location.path, options);
|
|
694
|
+
await this.staged(options, async (temporary) => {
|
|
695
|
+
if (location.entry)
|
|
696
|
+
await this.clone(location.entry, temporary, options);
|
|
697
|
+
await operation(temporary);
|
|
698
|
+
options.signal?.throwIfAborted();
|
|
699
|
+
commitGuard?.();
|
|
700
|
+
await this.#upper.rename(temporary, location.path, options);
|
|
701
|
+
this.linkMetadata.delete(location.path);
|
|
702
|
+
this.linkOrigins.delete(location.path);
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
async readFile(path, options = {}) {
|
|
706
|
+
return this.run(options, async () => this.bytes(await this.required(path, options), options));
|
|
707
|
+
}
|
|
708
|
+
async writeFile(path, data, options = {}) {
|
|
709
|
+
options.signal?.throwIfAborted();
|
|
710
|
+
this.writeOptions(path, options);
|
|
711
|
+
if (!(data instanceof Uint8Array))
|
|
712
|
+
throw new TypeError("Overlay files require Uint8Array data");
|
|
713
|
+
if (data.byteLength > this.maxBufferBytes)
|
|
714
|
+
fail("EFBIG", path);
|
|
715
|
+
const bytes = new Uint8Array(data);
|
|
716
|
+
return this.run(options, async () => {
|
|
717
|
+
const location = await this.writeLocation(path, options);
|
|
718
|
+
const append = options.flag === "a" || options.flag === "ax";
|
|
719
|
+
if (append && (location.entry?.stat.size ?? 0) + bytes.byteLength > this.maxBufferBytes)
|
|
720
|
+
fail("EFBIG", path);
|
|
721
|
+
if (this.publication.supported() && location.entry?.backend === this.#upper) {
|
|
722
|
+
const parent = await this.required(dirname(location.path), options);
|
|
723
|
+
await this.publication.writeFile(location.path, bytes, {
|
|
724
|
+
...options, parent: this.publication.stat(parent.path, parent.stat),
|
|
725
|
+
expected: this.publication.stat(location.path, location.entry.stat), append,
|
|
726
|
+
}, this.maxBufferBytes);
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
await this.replace(location, options, async (temporary) => {
|
|
730
|
+
await this.#upper.writeFile(temporary, bytes, { ...options, flag: append ? "a" : "w" });
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
prepareDirectory(path, options) {
|
|
736
|
+
const captured = { ...options };
|
|
737
|
+
return this.run(captured, () => this.publication.prepareDirectory(path, captured), false);
|
|
738
|
+
}
|
|
739
|
+
async writeFileConditional(path, data, options) {
|
|
740
|
+
options.signal?.throwIfAborted();
|
|
741
|
+
if (!(data instanceof Uint8Array))
|
|
742
|
+
throw new TypeError("Overlay files require Uint8Array data");
|
|
743
|
+
const bytes = new Uint8Array(data);
|
|
744
|
+
if (bytes.byteLength > this.maxBufferBytes)
|
|
745
|
+
fail("EFBIG", path);
|
|
746
|
+
const captured = { ...options };
|
|
747
|
+
return this.run(captured, () => this.publication.writeFile(path, bytes, captured, this.maxBufferBytes), false);
|
|
748
|
+
}
|
|
749
|
+
removeFileConditional(path, options) {
|
|
750
|
+
const captured = { ...options };
|
|
751
|
+
return this.run(captured, () => this.publication.removeFile(path, captured), false);
|
|
752
|
+
}
|
|
753
|
+
async appendFile(path, data, options = {}) {
|
|
754
|
+
return this.writeFile(path, data, { ...options, flag: "a" });
|
|
755
|
+
}
|
|
756
|
+
async stat(path, options = {}) {
|
|
757
|
+
return this.run(options, async () => {
|
|
758
|
+
const entry = await this.required(path, options);
|
|
759
|
+
return this.publication.stat(entry.path, snapshotStat(entry.stat));
|
|
760
|
+
}, false);
|
|
761
|
+
}
|
|
762
|
+
async lstat(path, options = {}) {
|
|
763
|
+
return this.run(options, async () => {
|
|
764
|
+
const entry = await this.required(path, options, false);
|
|
765
|
+
return this.publication.stat(entry.path, snapshotStat(entry.stat));
|
|
766
|
+
}, false);
|
|
767
|
+
}
|
|
768
|
+
compareEntry(path, peer, peerPath, options = {}) {
|
|
769
|
+
return compareEntries(this, path, peer, peerPath, options);
|
|
770
|
+
}
|
|
771
|
+
async readdir(path, options = {}) {
|
|
772
|
+
const limit = directoryEntryLimit(options, path);
|
|
773
|
+
return this.run(options, async () => this.listing(await this.required(path, options), options, limit), false);
|
|
774
|
+
}
|
|
775
|
+
async *iterateDirectory(path, options = {}) {
|
|
776
|
+
const directory = await this.run(options, async () => {
|
|
777
|
+
const entry = await this.required(path, options);
|
|
778
|
+
if (entry.stat.type !== "directory")
|
|
779
|
+
fail("ENOTDIR", path);
|
|
780
|
+
this.permission(entry, 4);
|
|
781
|
+
return entry.path;
|
|
782
|
+
}, false);
|
|
783
|
+
const admit = async () => {
|
|
784
|
+
const current = await this.required(path, options);
|
|
785
|
+
if (current.path !== directory || current.stat.type !== "directory")
|
|
786
|
+
fail("EBUSY", path);
|
|
787
|
+
this.permission(current, 4);
|
|
788
|
+
};
|
|
789
|
+
for (const backend of [this.#upper, this.#lower]) {
|
|
790
|
+
const iterator = await this.run(options, async () => {
|
|
791
|
+
await admit();
|
|
792
|
+
if (backend === this.#lower && (!await this.lowerVisible(directory, options) || this.opaque.has(directory)))
|
|
793
|
+
return undefined;
|
|
794
|
+
if ((await this.maybeStat(backend, directory, options))?.type !== "directory")
|
|
795
|
+
return undefined;
|
|
796
|
+
if (!backend.iterateDirectory)
|
|
797
|
+
fail("ENOTSUP", directory);
|
|
798
|
+
return backend.iterateDirectory(directory, options)[Symbol.asyncIterator]();
|
|
799
|
+
}, false);
|
|
800
|
+
if (!iterator)
|
|
801
|
+
continue;
|
|
802
|
+
let complete = false, failed = false;
|
|
803
|
+
try {
|
|
804
|
+
while (true) {
|
|
805
|
+
const result = await this.run(options, async () => {
|
|
806
|
+
await admit();
|
|
807
|
+
if (backend === this.#lower && (!await this.lowerVisible(directory, options) || this.opaque.has(directory)))
|
|
808
|
+
fail("EBUSY", path);
|
|
809
|
+
const next = await iterator.next();
|
|
810
|
+
options.signal?.throwIfAborted();
|
|
811
|
+
if (next.done)
|
|
812
|
+
return { done: true };
|
|
813
|
+
const name = next.value.name;
|
|
814
|
+
if (!name || name === "." || name === ".." || name.includes("/") || name.includes("\0"))
|
|
815
|
+
fail("EIO", directory, "invalid backend directory entry");
|
|
816
|
+
const child = await this.lookup(directory === "/" ? `/${name}` : `${directory}/${name}`, options);
|
|
817
|
+
options.signal?.throwIfAborted();
|
|
818
|
+
// A lower name shadowed by upper storage is skipped by lookup,
|
|
819
|
+
// without retaining a directory-sized set of previously seen names.
|
|
820
|
+
return { done: false, entry: child?.backend === backend ? { name, type: child.stat.type } : undefined };
|
|
821
|
+
}, false);
|
|
822
|
+
if (result.done) {
|
|
823
|
+
complete = true;
|
|
824
|
+
break;
|
|
825
|
+
}
|
|
826
|
+
if (result.entry)
|
|
827
|
+
yield result.entry;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
catch (error) {
|
|
831
|
+
failed = true;
|
|
832
|
+
throw error;
|
|
833
|
+
}
|
|
834
|
+
finally {
|
|
835
|
+
if (!complete)
|
|
836
|
+
await finishCleanup(() => iterator.return?.(), failed);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
options.signal?.throwIfAborted();
|
|
840
|
+
}
|
|
841
|
+
async realpath(path, options = {}) {
|
|
842
|
+
return this.run(options, async () => (await this.required(path, options)).path, false);
|
|
843
|
+
}
|
|
844
|
+
async access(path, requestedMode = 0, options = {}) {
|
|
845
|
+
return this.run(options, async () => {
|
|
846
|
+
if (!Number.isInteger(requestedMode) || requestedMode < 0 || requestedMode > 7)
|
|
847
|
+
fail("EINVAL", path);
|
|
848
|
+
const entry = await this.required(path, options);
|
|
849
|
+
if (requestedMode & 2)
|
|
850
|
+
this.writable(path);
|
|
851
|
+
this.permission(entry, requestedMode);
|
|
852
|
+
await entry.backend.access(entry.path, requestedMode & ~2, options);
|
|
853
|
+
}, false);
|
|
854
|
+
}
|
|
855
|
+
async mkdir(path, options = {}) {
|
|
856
|
+
return this.run(options, async () => {
|
|
857
|
+
this.writable(path);
|
|
858
|
+
mode(options.mode, path);
|
|
859
|
+
validatePath(path);
|
|
860
|
+
if (options.recursive) {
|
|
861
|
+
const entry = (await this.resolve(path, options, true, false, options.mode ?? 0o777)).entry;
|
|
862
|
+
if (entry.stat.type !== "directory")
|
|
863
|
+
fail("EEXIST", path);
|
|
864
|
+
}
|
|
865
|
+
else {
|
|
866
|
+
const location = await this.resolve(path.replace(/\/+$/, "") || (path ? "/" : ""), options, false, true);
|
|
867
|
+
if (location.entry)
|
|
868
|
+
fail("EEXIST", path);
|
|
869
|
+
await this.makeDirectory(location.path, options.mode ?? 0o777, options);
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
async rmdir(path, options = {}) {
|
|
874
|
+
try {
|
|
875
|
+
await this.run(options, async () => {
|
|
876
|
+
this.writable(path);
|
|
877
|
+
validatePath(path);
|
|
878
|
+
const entry = await this.required(path.replace(/\/+$/, "") || (path ? "/" : ""), options, false);
|
|
879
|
+
if (/(?:^|\/)\.{1,2}\/*$/.test(path))
|
|
880
|
+
fail("EINVAL", path);
|
|
881
|
+
if (entry.path === "/")
|
|
882
|
+
fail("EBUSY", path);
|
|
883
|
+
if (entry.stat.type !== "directory")
|
|
884
|
+
fail("ENOTDIR", path);
|
|
885
|
+
const parent = await this.required(dirname(entry.path), options);
|
|
886
|
+
this.permission(parent, 3);
|
|
887
|
+
if ((await this.listing(entry, options)).length)
|
|
888
|
+
fail("ENOTEMPTY", path);
|
|
889
|
+
options.signal?.throwIfAborted();
|
|
890
|
+
if (this.#upper.capabilities.snapshotRmdir === true) {
|
|
891
|
+
fail("ENOTSUP", path, "snapshot-marker upper removal cannot safely publish an overlay whiteout");
|
|
892
|
+
}
|
|
893
|
+
if (entry.backend === this.#upper) {
|
|
894
|
+
if (!this.#upper.rmdir)
|
|
895
|
+
fail("ENOTSUP", path);
|
|
896
|
+
await this.#upper.rmdir(entry.path, options);
|
|
897
|
+
}
|
|
898
|
+
this.whiteouts.add(entry.path);
|
|
899
|
+
for (const key of this.linkMetadata.keys())
|
|
900
|
+
if (isPathWithin(entry.path, key))
|
|
901
|
+
this.linkMetadata.delete(key);
|
|
902
|
+
for (const key of this.linkOrigins.keys())
|
|
903
|
+
if (isPathWithin(entry.path, key))
|
|
904
|
+
this.linkOrigins.delete(key);
|
|
905
|
+
}, false);
|
|
906
|
+
}
|
|
907
|
+
catch (error) {
|
|
908
|
+
options.signal?.throwIfAborted();
|
|
909
|
+
throw new FsError(toFsError(error).code, { syscall: "rmdir", path, cause: error });
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
async rm(path, options = {}) {
|
|
913
|
+
return this.run(options, async () => {
|
|
914
|
+
this.writable(path);
|
|
915
|
+
let entry;
|
|
916
|
+
try {
|
|
917
|
+
entry = await this.required(path, options, false);
|
|
918
|
+
}
|
|
919
|
+
catch (error) {
|
|
920
|
+
if (options.force && hasCode(error, "ENOENT"))
|
|
921
|
+
return;
|
|
922
|
+
throw error;
|
|
923
|
+
}
|
|
924
|
+
if (entry.path === "/")
|
|
925
|
+
fail("EBUSY", path);
|
|
926
|
+
if (entry.stat.type === "directory" && !options.recursive && (await this.listing(entry, options)).length)
|
|
927
|
+
fail("ENOTEMPTY", path);
|
|
928
|
+
await this.parent(entry.path, options);
|
|
929
|
+
if (entry.backend === this.#upper) {
|
|
930
|
+
await this.staged(options, async (temporary) => {
|
|
931
|
+
options.signal?.throwIfAborted();
|
|
932
|
+
await this.#upper.rename(entry.path, temporary, options);
|
|
933
|
+
this.whiteouts.add(entry.path);
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
else {
|
|
937
|
+
options.signal?.throwIfAborted();
|
|
938
|
+
this.whiteouts.add(entry.path);
|
|
939
|
+
}
|
|
940
|
+
for (const key of this.linkMetadata.keys())
|
|
941
|
+
if (isPathWithin(entry.path, key))
|
|
942
|
+
this.linkMetadata.delete(key);
|
|
943
|
+
for (const key of this.linkOrigins.keys())
|
|
944
|
+
if (isPathWithin(entry.path, key))
|
|
945
|
+
this.linkOrigins.delete(key);
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
async materialize(entry, options) {
|
|
949
|
+
if (entry.stat.type === "symlink" && entry.backend === this.#upper)
|
|
950
|
+
await this.movableLinkTarget(entry, options);
|
|
951
|
+
const children = entry.stat.type === "directory" ? await this.listing(entry, options) : [];
|
|
952
|
+
await this.copyUp(entry, options);
|
|
953
|
+
for (const child of children) {
|
|
954
|
+
const path = `${entry.path}/${child.name}`;
|
|
955
|
+
const visible = await this.lookup(path, options);
|
|
956
|
+
if (!visible)
|
|
957
|
+
fail("EIO", path, "visible tree changed during materialization");
|
|
958
|
+
await this.materialize(visible, options);
|
|
959
|
+
}
|
|
960
|
+
if (entry.stat.type === "directory")
|
|
961
|
+
await this.preserve(entry.path, entry.stat, options);
|
|
962
|
+
}
|
|
963
|
+
async rename(source, destination, options = {}) {
|
|
964
|
+
return this.run(options, async () => {
|
|
965
|
+
if (options.noReplace && !this.publication.supported())
|
|
966
|
+
fail("ENOTSUP", source, "atomic no-replace rename is unsupported");
|
|
967
|
+
this.writable(source);
|
|
968
|
+
const original = await this.required(source, options, false);
|
|
969
|
+
const target = await this.resolve(destination, options, false, true);
|
|
970
|
+
if (options.noReplace && target.entry)
|
|
971
|
+
fail("EEXIST", destination);
|
|
972
|
+
if (original.path === target.path)
|
|
973
|
+
return;
|
|
974
|
+
if (original.path === "/" || target.path === "/")
|
|
975
|
+
fail("EBUSY", source);
|
|
976
|
+
if (original.stat.type === "directory" && isPathWithin(original.path, target.path))
|
|
977
|
+
fail("EINVAL", destination);
|
|
978
|
+
if (target.entry) {
|
|
979
|
+
if (original.stat.type === "directory" && target.entry.stat.type !== "directory")
|
|
980
|
+
fail("ENOTDIR", destination);
|
|
981
|
+
if (original.stat.type !== "directory" && target.entry.stat.type === "directory")
|
|
982
|
+
fail("EISDIR", destination);
|
|
983
|
+
if (target.entry.stat.type === "directory" && (await this.listing(target.entry, options)).length)
|
|
984
|
+
fail("ENOTEMPTY", destination);
|
|
985
|
+
}
|
|
986
|
+
const guard = this.capabilities.atomicRename ? this.publication.prepareRename(original.path, target.path) : undefined;
|
|
987
|
+
await this.parent(original.path, options);
|
|
988
|
+
await this.parent(target.path, options);
|
|
989
|
+
await this.materialize(original, options);
|
|
990
|
+
options.signal?.throwIfAborted();
|
|
991
|
+
const move = { source: original.path, destination: target.path };
|
|
992
|
+
const movedOrigins = [];
|
|
993
|
+
for (const [path, origin] of this.linkOrigins) {
|
|
994
|
+
if (!isPathWithin(original.path, path))
|
|
995
|
+
continue;
|
|
996
|
+
const destination = movedPath(path, [move]);
|
|
997
|
+
const moves = origin.target.startsWith("/") ? origin.moves : [...origin.moves, move];
|
|
998
|
+
if (normalizePath(origin.target, dirname(destination)) !== movedPath(origin.canonical, moves)) {
|
|
999
|
+
fail("ENOTSUP", path, "relocation changes an unprovable relative symlink target");
|
|
1000
|
+
}
|
|
1001
|
+
movedOrigins.push([destination, { ...origin, moves }]);
|
|
1002
|
+
}
|
|
1003
|
+
options.signal?.throwIfAborted();
|
|
1004
|
+
if (this.capabilities.atomicRename)
|
|
1005
|
+
await this.publication.rename(original.path, target.path, options, guard);
|
|
1006
|
+
else
|
|
1007
|
+
await this.#upper.rename(original.path, target.path, options);
|
|
1008
|
+
this.whiteouts.add(original.path);
|
|
1009
|
+
if (original.stat.type === "directory")
|
|
1010
|
+
this.opaque.add(target.path);
|
|
1011
|
+
const moved = [...this.linkMetadata].filter(([path]) => isPathWithin(original.path, path));
|
|
1012
|
+
for (const path of this.linkMetadata.keys()) {
|
|
1013
|
+
if (isPathWithin(original.path, path) || isPathWithin(target.path, path))
|
|
1014
|
+
this.linkMetadata.delete(path);
|
|
1015
|
+
}
|
|
1016
|
+
for (const [path, metadata] of moved)
|
|
1017
|
+
this.linkMetadata.set(target.path + path.slice(original.path.length), metadata);
|
|
1018
|
+
for (const path of this.linkOrigins.keys()) {
|
|
1019
|
+
if (isPathWithin(original.path, path) || isPathWithin(target.path, path))
|
|
1020
|
+
this.linkOrigins.delete(path);
|
|
1021
|
+
}
|
|
1022
|
+
for (const [path, origin] of movedOrigins)
|
|
1023
|
+
this.linkOrigins.set(path, origin);
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
async copyFile(source, destination, options = {}) {
|
|
1027
|
+
return this.run(options, async () => {
|
|
1028
|
+
this.writable(destination);
|
|
1029
|
+
const original = await this.required(source, options);
|
|
1030
|
+
const target = await this.writeLocation(destination, { ...options, flag: options.exclusive ? "wx" : "w" });
|
|
1031
|
+
if (original.path === target.path)
|
|
1032
|
+
fail("EINVAL", destination, "source and destination are the same file");
|
|
1033
|
+
if (target.entry) {
|
|
1034
|
+
let identity = compareIdentity(original.stat, target.entry.stat);
|
|
1035
|
+
if (identity === "unknown")
|
|
1036
|
+
identity = await compareEntries(original.backend, original.path, target.entry.backend, target.entry.path, options);
|
|
1037
|
+
if (identity === "same")
|
|
1038
|
+
fail("EINVAL", destination, "source and destination are the same file");
|
|
1039
|
+
if (identity === "unknown")
|
|
1040
|
+
fail("ENOTSUP", destination, "backing-entry identity is unknown");
|
|
1041
|
+
}
|
|
1042
|
+
if (target.entry?.backend !== this.#upper) {
|
|
1043
|
+
const upper = await this.maybeStat(this.#upper, target.path, options);
|
|
1044
|
+
if (upper) {
|
|
1045
|
+
let identity = compareIdentity(original.stat, upper);
|
|
1046
|
+
if (identity === "unknown")
|
|
1047
|
+
identity = await compareEntries(original.backend, original.path, this.#upper, target.path, options);
|
|
1048
|
+
if (identity === "same")
|
|
1049
|
+
fail("EINVAL", destination, "source and destination are the same file");
|
|
1050
|
+
if (identity === "unknown")
|
|
1051
|
+
fail("ENOTSUP", destination, "upper backing-entry identity is unknown");
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
await this.cleanGarbage(false);
|
|
1055
|
+
if (original.stat.size > this.maxBufferBytes)
|
|
1056
|
+
fail("EFBIG", source);
|
|
1057
|
+
await this.replace(target, options, async (temporary) => {
|
|
1058
|
+
await this.streamToUpper(temporary, this.entryBytes(original, options), { ...options, mode: original.stat.mode & 0o7777, flag: "w" });
|
|
1059
|
+
if (this.#upper.chmod)
|
|
1060
|
+
await this.#upper.chmod(temporary, original.stat.mode & 0o7777, options);
|
|
1061
|
+
else if (((await this.#upper.lstat(temporary, options)).mode & 0o7777) !== (original.stat.mode & 0o7777))
|
|
1062
|
+
fail("ENOTSUP", destination);
|
|
1063
|
+
});
|
|
1064
|
+
}, false);
|
|
1065
|
+
}
|
|
1066
|
+
async readlink(path, options = {}) {
|
|
1067
|
+
return this.run(options, async () => {
|
|
1068
|
+
const entry = await this.required(path, options, false);
|
|
1069
|
+
if (entry.stat.type !== "symlink")
|
|
1070
|
+
fail("EINVAL", path);
|
|
1071
|
+
if (!entry.backend.readlink)
|
|
1072
|
+
fail("ENOTSUP", path);
|
|
1073
|
+
return entry.backend.readlink(entry.path, options);
|
|
1074
|
+
}, false);
|
|
1075
|
+
}
|
|
1076
|
+
async symlink(target, path, options = {}) {
|
|
1077
|
+
return this.run(options, async () => {
|
|
1078
|
+
this.writable(path);
|
|
1079
|
+
if (!this.capabilities.symlinks || !this.#upper.symlink)
|
|
1080
|
+
fail("ENOTSUP", path);
|
|
1081
|
+
validatePath(target);
|
|
1082
|
+
if (!target)
|
|
1083
|
+
fail("ENOENT", path);
|
|
1084
|
+
const location = await this.resolve(path, options, false, true);
|
|
1085
|
+
if (location.entry)
|
|
1086
|
+
fail("EEXIST", path);
|
|
1087
|
+
await this.replace(location, options, (temporary) => this.#upper.symlink(target, temporary, options));
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
async link(_existingPath, newPath, options = {}) {
|
|
1091
|
+
options.signal?.throwIfAborted();
|
|
1092
|
+
fail("ENOTSUP", newPath, "overlay hardlinks are not supported");
|
|
1093
|
+
}
|
|
1094
|
+
async metadata(path, capability, options, operation) {
|
|
1095
|
+
return this.run(options, async () => {
|
|
1096
|
+
this.writable(path);
|
|
1097
|
+
if (!this.capabilities[capability])
|
|
1098
|
+
fail("ENOTSUP", path);
|
|
1099
|
+
const entry = await this.required(path, options);
|
|
1100
|
+
if (entry.stat.type === "directory") {
|
|
1101
|
+
await this.copyUp(entry, options);
|
|
1102
|
+
await operation(entry.path);
|
|
1103
|
+
}
|
|
1104
|
+
else if (this.publication.supported() && entry.backend === this.#upper) {
|
|
1105
|
+
await operation(entry.path);
|
|
1106
|
+
}
|
|
1107
|
+
else
|
|
1108
|
+
await this.replace({ path: entry.path, entry }, options, operation);
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
async chmod(path, permissions, options = {}) {
|
|
1112
|
+
options.signal?.throwIfAborted();
|
|
1113
|
+
if (permissions === undefined)
|
|
1114
|
+
fail("EINVAL", path);
|
|
1115
|
+
mode(permissions, path);
|
|
1116
|
+
const guard = this.publication.prepareChmod(path, options);
|
|
1117
|
+
if (guard) {
|
|
1118
|
+
const controls = options.signal === undefined ? {} : { signal: options.signal };
|
|
1119
|
+
return this.run(controls, async () => {
|
|
1120
|
+
this.writable(path);
|
|
1121
|
+
guard();
|
|
1122
|
+
const entry = await this.required(path, controls, false);
|
|
1123
|
+
guard();
|
|
1124
|
+
if (entry.stat.type === "directory") {
|
|
1125
|
+
await this.copyUp(entry, controls);
|
|
1126
|
+
guard();
|
|
1127
|
+
await this.#upper.chmod(entry.path, permissions, controls);
|
|
1128
|
+
}
|
|
1129
|
+
else {
|
|
1130
|
+
await this.replace({ path: entry.path, entry }, controls, temporary => this.#upper.chmod(temporary, permissions, controls), guard);
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
return this.metadata(path, "permissions", options, (target) => this.#upper.chmod(target, permissions, options));
|
|
1135
|
+
}
|
|
1136
|
+
async utimes(path, atimeMs, mtimeMs, options = {}) {
|
|
1137
|
+
options.signal?.throwIfAborted();
|
|
1138
|
+
if (!Number.isFinite(atimeMs) || !Number.isFinite(mtimeMs))
|
|
1139
|
+
fail("EINVAL", path);
|
|
1140
|
+
return this.metadata(path, "timestamps", options, (target) => this.#upper.utimes(target, atimeMs, mtimeMs, options));
|
|
1141
|
+
}
|
|
1142
|
+
async truncate(path, length = 0, options = {}) {
|
|
1143
|
+
integer(length, path);
|
|
1144
|
+
return this.run(options, async () => {
|
|
1145
|
+
this.writable(path);
|
|
1146
|
+
if (length > this.maxBufferBytes)
|
|
1147
|
+
fail("EFBIG", path);
|
|
1148
|
+
const entry = await this.required(path, options);
|
|
1149
|
+
if (entry.stat.type !== "file")
|
|
1150
|
+
fail("EISDIR", path);
|
|
1151
|
+
this.permission(entry, 2);
|
|
1152
|
+
if ((entry.stat.nlink ?? 1) > 1 || (entry.backend.capabilities.hardlinks === true && entry.stat.nlink === undefined)) {
|
|
1153
|
+
fail("ENOTSUP", path, "copy-up cannot preserve hardlink identity");
|
|
1154
|
+
}
|
|
1155
|
+
await this.parent(entry.path, options);
|
|
1156
|
+
await this.staged(options, async (temporary) => {
|
|
1157
|
+
const prefix = this.entryBytes(entry, { ...options, endExclusive: length });
|
|
1158
|
+
const source = async function* () {
|
|
1159
|
+
let written = 0;
|
|
1160
|
+
for await (const chunk of prefix) {
|
|
1161
|
+
written += chunk.byteLength;
|
|
1162
|
+
yield chunk;
|
|
1163
|
+
}
|
|
1164
|
+
while (written < length) {
|
|
1165
|
+
options.signal?.throwIfAborted();
|
|
1166
|
+
const zero = new Uint8Array(Math.min(64 * 1024, length - written));
|
|
1167
|
+
written += zero.byteLength;
|
|
1168
|
+
yield zero;
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
await this.streamToUpper(temporary, source(), { ...options, mode: 0o600, flag: "wx" });
|
|
1172
|
+
await this.preserve(temporary, entry.stat, options);
|
|
1173
|
+
await this.#upper.utimes(temporary, entry.stat.atimeMs, Date.now(), options);
|
|
1174
|
+
options.signal?.throwIfAborted();
|
|
1175
|
+
await this.#upper.rename(temporary, entry.path, options);
|
|
1176
|
+
});
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
async *readStream(path, options = {}) {
|
|
1180
|
+
options.signal?.throwIfAborted();
|
|
1181
|
+
const start = options.start ?? 0;
|
|
1182
|
+
const chunkSize = options.chunkSize ?? 64 * 1024;
|
|
1183
|
+
integer(start, path);
|
|
1184
|
+
integer(chunkSize, path);
|
|
1185
|
+
if (!chunkSize)
|
|
1186
|
+
fail("EINVAL", path);
|
|
1187
|
+
if (options.endExclusive !== undefined) {
|
|
1188
|
+
integer(options.endExclusive, path);
|
|
1189
|
+
if (options.endExclusive < start)
|
|
1190
|
+
fail("EINVAL", path);
|
|
1191
|
+
}
|
|
1192
|
+
const handle = await this.run(options, async () => {
|
|
1193
|
+
const entry = await this.required(path, options);
|
|
1194
|
+
if (entry.stat.type !== "file")
|
|
1195
|
+
fail("EISDIR", path);
|
|
1196
|
+
this.permission(entry, 4);
|
|
1197
|
+
return this.pinRead(entry, options);
|
|
1198
|
+
});
|
|
1199
|
+
let failed = true;
|
|
1200
|
+
try {
|
|
1201
|
+
yield* readBytes(this.handleBytes(handle, options), options.signal);
|
|
1202
|
+
failed = false;
|
|
1203
|
+
}
|
|
1204
|
+
finally {
|
|
1205
|
+
await finishCleanup(() => handle.close(), failed);
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
async *bounded(source, path, options) {
|
|
1209
|
+
let size = 0;
|
|
1210
|
+
for await (const chunk of readBytes(source, options.signal)) {
|
|
1211
|
+
if (chunk.byteLength > this.maxBufferBytes - size)
|
|
1212
|
+
fail("EFBIG", path);
|
|
1213
|
+
size += chunk.byteLength;
|
|
1214
|
+
yield new Uint8Array(chunk);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
async streamToUpper(path, source, options) {
|
|
1218
|
+
if (!this.#upper.writeStream || this.#upper.capabilities.streamingWrite !== true)
|
|
1219
|
+
fail("ENOTSUP", path);
|
|
1220
|
+
const input = readBytes(source, options.signal);
|
|
1221
|
+
let failed = false;
|
|
1222
|
+
try {
|
|
1223
|
+
await this.#upper.writeStream(path, input, options);
|
|
1224
|
+
}
|
|
1225
|
+
catch (error) {
|
|
1226
|
+
failed = true;
|
|
1227
|
+
throw error;
|
|
1228
|
+
}
|
|
1229
|
+
finally {
|
|
1230
|
+
await finishCleanup(() => input.return(undefined), failed);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
async *entryBytes(entry, options) {
|
|
1234
|
+
this.permission(entry, 4);
|
|
1235
|
+
const handle = this.activeStages.has(dirname(entry.path)) && entry.backend === this.#upper
|
|
1236
|
+
? await openRetainedReadFile(this.#upper, entry.path, options) : await this.pinRead(entry, options);
|
|
1237
|
+
let failed = true;
|
|
1238
|
+
try {
|
|
1239
|
+
if (compareIdentity(await handle.stat(options), entry.stat) !== "same")
|
|
1240
|
+
fail("EAGAIN", entry.path);
|
|
1241
|
+
yield* this.handleBytes(handle, options);
|
|
1242
|
+
failed = false;
|
|
1243
|
+
}
|
|
1244
|
+
finally {
|
|
1245
|
+
await finishCleanup(() => handle.close(), failed);
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
async writeStream(path, source, options = {}) {
|
|
1249
|
+
options.signal?.throwIfAborted();
|
|
1250
|
+
this.writeOptions(path, options);
|
|
1251
|
+
if (this.capabilities.streamingWrite === false)
|
|
1252
|
+
fail("ENOTSUP", path, "streaming requires retained reads and a streaming upper");
|
|
1253
|
+
await this.run(options, () => this.writeLocation(path, options));
|
|
1254
|
+
await this.staged(options, async (incoming) => {
|
|
1255
|
+
await this.streamToUpper(incoming, this.bounded(source, path, options), { ...options, flag: "wx", mode: 0o600 });
|
|
1256
|
+
const incomingEntry = { path: incoming, backend: this.#upper, stat: await this.#upper.lstat(incoming, options) };
|
|
1257
|
+
await this.run(options, async () => {
|
|
1258
|
+
const location = await this.writeLocation(path, options);
|
|
1259
|
+
const append = options.flag === "a" || options.flag === "ax";
|
|
1260
|
+
if (append && (location.entry?.stat.size ?? 0) + incomingEntry.stat.size > this.maxBufferBytes)
|
|
1261
|
+
fail("EFBIG", path);
|
|
1262
|
+
if (this.publication.supported() && location.entry?.backend === this.#upper) {
|
|
1263
|
+
const parent = await this.required(dirname(location.path), options);
|
|
1264
|
+
const controls = { ...options, parent: this.publication.stat(parent.path, parent.stat),
|
|
1265
|
+
expected: this.publication.stat(location.path, location.entry.stat) };
|
|
1266
|
+
const guard = this.publication.prepareWrite(location.path, controls);
|
|
1267
|
+
if (append) {
|
|
1268
|
+
await this.staged(options, async (temporary) => {
|
|
1269
|
+
const previous = this.entryBytes(location.entry, options);
|
|
1270
|
+
const added = this.entryBytes(incomingEntry, options);
|
|
1271
|
+
await this.streamToUpper(temporary, (async function* () { yield* previous; yield* added; })(), { ...options, flag: "wx", mode: 0o600 });
|
|
1272
|
+
this.publication.replaceContents(temporary, location.path, guard);
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
else
|
|
1276
|
+
this.publication.replaceContents(incoming, location.path, guard);
|
|
1277
|
+
}
|
|
1278
|
+
else {
|
|
1279
|
+
if (location.entry && ((location.entry.stat.nlink ?? 1) > 1
|
|
1280
|
+
|| (location.entry.backend.capabilities.hardlinks === true && location.entry.stat.nlink === undefined))) {
|
|
1281
|
+
fail("ENOTSUP", path, "copy-up cannot preserve hardlink identity");
|
|
1282
|
+
}
|
|
1283
|
+
await this.parent(location.path, options);
|
|
1284
|
+
await this.staged(options, async (temporary) => {
|
|
1285
|
+
const previous = append && location.entry ? this.entryBytes(location.entry, options) : undefined;
|
|
1286
|
+
const added = this.entryBytes(incomingEntry, options);
|
|
1287
|
+
await this.streamToUpper(temporary, (async function* () { if (previous)
|
|
1288
|
+
yield* previous; yield* added; })(), { ...options, flag: "wx", mode: location.entry ? 0o600 : options.mode ?? 0o666 });
|
|
1289
|
+
if (location.entry) {
|
|
1290
|
+
await this.preserve(temporary, location.entry.stat, options);
|
|
1291
|
+
await this.#upper.utimes(temporary, location.entry.stat.atimeMs, Date.now(), options);
|
|
1292
|
+
}
|
|
1293
|
+
options.signal?.throwIfAborted();
|
|
1294
|
+
await this.#upper.rename(temporary, location.path, options);
|
|
1295
|
+
this.linkMetadata.delete(location.path);
|
|
1296
|
+
this.linkOrigins.delete(location.path);
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
});
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
export function createOverlayFileSystem(options) {
|
|
1304
|
+
return new OverlayFileSystem(options);
|
|
1305
|
+
}
|