@tickernelz/paperclip-pro-adapter-utils 2026.925.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/acpx-engine/cli.d.ts +2 -0
- package/dist/acpx-engine/cli.d.ts.map +1 -0
- package/dist/acpx-engine/cli.js +128 -0
- package/dist/acpx-engine/cli.js.map +1 -0
- package/dist/acpx-engine/composed-run-characterization.test.d.ts +2 -0
- package/dist/acpx-engine/composed-run-characterization.test.d.ts.map +1 -0
- package/dist/acpx-engine/composed-run-characterization.test.js +739 -0
- package/dist/acpx-engine/composed-run-characterization.test.js.map +1 -0
- package/dist/acpx-engine/constants.d.ts +20 -0
- package/dist/acpx-engine/constants.d.ts.map +1 -0
- package/dist/acpx-engine/constants.js +37 -0
- package/dist/acpx-engine/constants.js.map +1 -0
- package/dist/acpx-engine/execute-identity.test.d.ts +2 -0
- package/dist/acpx-engine/execute-identity.test.d.ts.map +1 -0
- package/dist/acpx-engine/execute-identity.test.js +218 -0
- package/dist/acpx-engine/execute-identity.test.js.map +1 -0
- package/dist/acpx-engine/execute.d.ts +325 -0
- package/dist/acpx-engine/execute.d.ts.map +1 -0
- package/dist/acpx-engine/execute.js +4448 -0
- package/dist/acpx-engine/execute.js.map +1 -0
- package/dist/acpx-engine/execute.test.d.ts +2 -0
- package/dist/acpx-engine/execute.test.d.ts.map +1 -0
- package/dist/acpx-engine/execute.test.js +6694 -0
- package/dist/acpx-engine/execute.test.js.map +1 -0
- package/dist/acpx-engine/index.d.ts +6 -0
- package/dist/acpx-engine/index.d.ts.map +1 -0
- package/dist/acpx-engine/index.js +6 -0
- package/dist/acpx-engine/index.js.map +1 -0
- package/dist/acpx-engine/local-process-control.d.ts +5 -0
- package/dist/acpx-engine/local-process-control.d.ts.map +1 -0
- package/dist/acpx-engine/local-process-control.js +39 -0
- package/dist/acpx-engine/local-process-control.js.map +1 -0
- package/dist/acpx-engine/local-process-control.test.d.ts +2 -0
- package/dist/acpx-engine/local-process-control.test.d.ts.map +1 -0
- package/dist/acpx-engine/local-process-control.test.js +38 -0
- package/dist/acpx-engine/local-process-control.test.js.map +1 -0
- package/dist/acpx-engine/operator-stop.test.d.ts +2 -0
- package/dist/acpx-engine/operator-stop.test.d.ts.map +1 -0
- package/dist/acpx-engine/operator-stop.test.js +107 -0
- package/dist/acpx-engine/operator-stop.test.js.map +1 -0
- package/dist/acpx-engine/remote-spawn-smoke.test.d.ts +2 -0
- package/dist/acpx-engine/remote-spawn-smoke.test.d.ts.map +1 -0
- package/dist/acpx-engine/remote-spawn-smoke.test.js +151 -0
- package/dist/acpx-engine/remote-spawn-smoke.test.js.map +1 -0
- package/dist/acpx-engine/run-contracts.d.ts +413 -0
- package/dist/acpx-engine/run-contracts.d.ts.map +1 -0
- package/dist/acpx-engine/run-contracts.js +20 -0
- package/dist/acpx-engine/run-contracts.js.map +1 -0
- package/dist/acpx-engine/run-contracts.test.d.ts +2 -0
- package/dist/acpx-engine/run-contracts.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-contracts.test.js +57 -0
- package/dist/acpx-engine/run-contracts.test.js.map +1 -0
- package/dist/acpx-engine/run-coordinator.d.ts +57 -0
- package/dist/acpx-engine/run-coordinator.d.ts.map +1 -0
- package/dist/acpx-engine/run-coordinator.js +63 -0
- package/dist/acpx-engine/run-coordinator.js.map +1 -0
- package/dist/acpx-engine/run-coordinator.test.d.ts +2 -0
- package/dist/acpx-engine/run-coordinator.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-coordinator.test.js +160 -0
- package/dist/acpx-engine/run-coordinator.test.js.map +1 -0
- package/dist/acpx-engine/run-fault-matrix.test.d.ts +2 -0
- package/dist/acpx-engine/run-fault-matrix.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-fault-matrix.test.js +829 -0
- package/dist/acpx-engine/run-fault-matrix.test.js.map +1 -0
- package/dist/acpx-engine/run-resource-ledger.d.ts +30 -0
- package/dist/acpx-engine/run-resource-ledger.d.ts.map +1 -0
- package/dist/acpx-engine/run-resource-ledger.js +148 -0
- package/dist/acpx-engine/run-resource-ledger.js.map +1 -0
- package/dist/acpx-engine/run-resource-ledger.test.d.ts +2 -0
- package/dist/acpx-engine/run-resource-ledger.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-resource-ledger.test.js +154 -0
- package/dist/acpx-engine/run-resource-ledger.test.js.map +1 -0
- package/dist/acpx-engine/run-site-host.d.ts +73 -0
- package/dist/acpx-engine/run-site-host.d.ts.map +1 -0
- package/dist/acpx-engine/run-site-host.js +65 -0
- package/dist/acpx-engine/run-site-host.js.map +1 -0
- package/dist/acpx-engine/run-site-host.test.d.ts +2 -0
- package/dist/acpx-engine/run-site-host.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-site-host.test.js +98 -0
- package/dist/acpx-engine/run-site-host.test.js.map +1 -0
- package/dist/acpx-engine/run-site-sandbox.d.ts +142 -0
- package/dist/acpx-engine/run-site-sandbox.d.ts.map +1 -0
- package/dist/acpx-engine/run-site-sandbox.js +278 -0
- package/dist/acpx-engine/run-site-sandbox.js.map +1 -0
- package/dist/acpx-engine/run-site-sandbox.test.d.ts +2 -0
- package/dist/acpx-engine/run-site-sandbox.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-site-sandbox.test.js +275 -0
- package/dist/acpx-engine/run-site-sandbox.test.js.map +1 -0
- package/dist/acpx-engine/session-codec.d.ts +3 -0
- package/dist/acpx-engine/session-codec.d.ts.map +1 -0
- package/dist/acpx-engine/session-codec.js +49 -0
- package/dist/acpx-engine/session-codec.js.map +1 -0
- package/dist/acpx-engine/session-reuse-store.d.ts +62 -0
- package/dist/acpx-engine/session-reuse-store.d.ts.map +1 -0
- package/dist/acpx-engine/session-reuse-store.js +134 -0
- package/dist/acpx-engine/session-reuse-store.js.map +1 -0
- package/dist/acpx-engine/session-reuse-store.test.d.ts +2 -0
- package/dist/acpx-engine/session-reuse-store.test.d.ts.map +1 -0
- package/dist/acpx-engine/session-reuse-store.test.js +134 -0
- package/dist/acpx-engine/session-reuse-store.test.js.map +1 -0
- package/dist/acpx-engine/settlement-characterization.test.d.ts +2 -0
- package/dist/acpx-engine/settlement-characterization.test.d.ts.map +1 -0
- package/dist/acpx-engine/settlement-characterization.test.js +880 -0
- package/dist/acpx-engine/settlement-characterization.test.js.map +1 -0
- package/dist/acpx-engine/settlement-sequence.d.ts +77 -0
- package/dist/acpx-engine/settlement-sequence.d.ts.map +1 -0
- package/dist/acpx-engine/settlement-sequence.js +119 -0
- package/dist/acpx-engine/settlement-sequence.js.map +1 -0
- package/dist/acpx-engine/settlement-sequence.test.d.ts +2 -0
- package/dist/acpx-engine/settlement-sequence.test.d.ts.map +1 -0
- package/dist/acpx-engine/settlement-sequence.test.js +272 -0
- package/dist/acpx-engine/settlement-sequence.test.js.map +1 -0
- package/dist/acpx-engine/spawn-smoke.test.d.ts +2 -0
- package/dist/acpx-engine/spawn-smoke.test.d.ts.map +1 -0
- package/dist/acpx-engine/spawn-smoke.test.js +184 -0
- package/dist/acpx-engine/spawn-smoke.test.js.map +1 -0
- package/dist/acpx-engine/startup-cancellation.d.ts +8 -0
- package/dist/acpx-engine/startup-cancellation.d.ts.map +1 -0
- package/dist/acpx-engine/startup-cancellation.js +92 -0
- package/dist/acpx-engine/startup-cancellation.js.map +1 -0
- package/dist/acpx-engine/startup-cancellation.test.d.ts +2 -0
- package/dist/acpx-engine/startup-cancellation.test.d.ts.map +1 -0
- package/dist/acpx-engine/startup-cancellation.test.js +115 -0
- package/dist/acpx-engine/startup-cancellation.test.js.map +1 -0
- package/dist/acpx-engine/startup-characterization.test.d.ts +2 -0
- package/dist/acpx-engine/startup-characterization.test.d.ts.map +1 -0
- package/dist/acpx-engine/startup-characterization.test.js +742 -0
- package/dist/acpx-engine/startup-characterization.test.js.map +1 -0
- package/dist/acpx-engine/startup-timing.d.ts +419 -0
- package/dist/acpx-engine/startup-timing.d.ts.map +1 -0
- package/dist/acpx-engine/startup-timing.js +616 -0
- package/dist/acpx-engine/startup-timing.js.map +1 -0
- package/dist/acpx-engine/startup-timing.test.d.ts +2 -0
- package/dist/acpx-engine/startup-timing.test.d.ts.map +1 -0
- package/dist/acpx-engine/startup-timing.test.js +619 -0
- package/dist/acpx-engine/startup-timing.test.js.map +1 -0
- package/dist/acpx-engine/turn-characterization.test.d.ts +2 -0
- package/dist/acpx-engine/turn-characterization.test.d.ts.map +1 -0
- package/dist/acpx-engine/turn-characterization.test.js +566 -0
- package/dist/acpx-engine/turn-characterization.test.js.map +1 -0
- package/dist/acpx-engine/turn-sequence.d.ts +54 -0
- package/dist/acpx-engine/turn-sequence.d.ts.map +1 -0
- package/dist/acpx-engine/turn-sequence.js +75 -0
- package/dist/acpx-engine/turn-sequence.js.map +1 -0
- package/dist/acpx-engine/turn-sequence.test.d.ts +2 -0
- package/dist/acpx-engine/turn-sequence.test.d.ts.map +1 -0
- package/dist/acpx-engine/turn-sequence.test.js +177 -0
- package/dist/acpx-engine/turn-sequence.test.js.map +1 -0
- package/dist/acpx-engine/ui.d.ts +3 -0
- package/dist/acpx-engine/ui.d.ts.map +1 -0
- package/dist/acpx-engine/ui.js +162 -0
- package/dist/acpx-engine/ui.js.map +1 -0
- package/dist/billing.d.ts +2 -0
- package/dist/billing.d.ts.map +1 -0
- package/dist/billing.js +16 -0
- package/dist/billing.js.map +1 -0
- package/dist/billing.test.d.ts +2 -0
- package/dist/billing.test.d.ts.map +1 -0
- package/dist/billing.test.js +14 -0
- package/dist/billing.test.js.map +1 -0
- package/dist/bridge-transport-contract.d.ts +43 -0
- package/dist/bridge-transport-contract.d.ts.map +1 -0
- package/dist/bridge-transport-contract.js +33 -0
- package/dist/bridge-transport-contract.js.map +1 -0
- package/dist/chat-file-delivery.d.ts +10 -0
- package/dist/chat-file-delivery.d.ts.map +1 -0
- package/dist/chat-file-delivery.js +38 -0
- package/dist/chat-file-delivery.js.map +1 -0
- package/dist/chat-file-delivery.test.d.ts +2 -0
- package/dist/chat-file-delivery.test.d.ts.map +1 -0
- package/dist/chat-file-delivery.test.js +92 -0
- package/dist/chat-file-delivery.test.js.map +1 -0
- package/dist/command-managed-runtime.d.ts +162 -0
- package/dist/command-managed-runtime.d.ts.map +1 -0
- package/dist/command-managed-runtime.js +456 -0
- package/dist/command-managed-runtime.js.map +1 -0
- package/dist/command-managed-runtime.test.d.ts +2 -0
- package/dist/command-managed-runtime.test.d.ts.map +1 -0
- package/dist/command-managed-runtime.test.js +908 -0
- package/dist/command-managed-runtime.test.js.map +1 -0
- package/dist/command-redaction.d.ts +15 -0
- package/dist/command-redaction.d.ts.map +1 -0
- package/dist/command-redaction.js +97 -0
- package/dist/command-redaction.js.map +1 -0
- package/dist/command-redaction.test.d.ts +2 -0
- package/dist/command-redaction.test.d.ts.map +1 -0
- package/dist/command-redaction.test.js +80 -0
- package/dist/command-redaction.test.js.map +1 -0
- package/dist/duplex-frame-codec.d.ts +124 -0
- package/dist/duplex-frame-codec.d.ts.map +1 -0
- package/dist/duplex-frame-codec.js +134 -0
- package/dist/duplex-frame-codec.js.map +1 -0
- package/dist/duplex-frame-codec.test.d.ts +2 -0
- package/dist/duplex-frame-codec.test.d.ts.map +1 -0
- package/dist/duplex-frame-codec.test.js +172 -0
- package/dist/duplex-frame-codec.test.js.map +1 -0
- package/dist/duplex-observability.d.ts +220 -0
- package/dist/duplex-observability.d.ts.map +1 -0
- package/dist/duplex-observability.js +248 -0
- package/dist/duplex-observability.js.map +1 -0
- package/dist/duplex-observability.test.d.ts +2 -0
- package/dist/duplex-observability.test.d.ts.map +1 -0
- package/dist/duplex-observability.test.js +55 -0
- package/dist/duplex-observability.test.js.map +1 -0
- package/dist/env-bindings.d.ts +17 -0
- package/dist/env-bindings.d.ts.map +1 -0
- package/dist/env-bindings.js +98 -0
- package/dist/env-bindings.js.map +1 -0
- package/dist/env-bindings.test.d.ts +2 -0
- package/dist/env-bindings.test.d.ts.map +1 -0
- package/dist/env-bindings.test.js +66 -0
- package/dist/env-bindings.test.js.map +1 -0
- package/dist/exclude-patterns.d.ts +4 -0
- package/dist/exclude-patterns.d.ts.map +1 -0
- package/dist/exclude-patterns.js +26 -0
- package/dist/exclude-patterns.js.map +1 -0
- package/dist/execution-target-sandbox.test.d.ts +2 -0
- package/dist/execution-target-sandbox.test.d.ts.map +1 -0
- package/dist/execution-target-sandbox.test.js +6522 -0
- package/dist/execution-target-sandbox.test.js.map +1 -0
- package/dist/execution-target-stdin-race.test.d.ts +2 -0
- package/dist/execution-target-stdin-race.test.d.ts.map +1 -0
- package/dist/execution-target-stdin-race.test.js +1842 -0
- package/dist/execution-target-stdin-race.test.js.map +1 -0
- package/dist/execution-target.d.ts +537 -0
- package/dist/execution-target.d.ts.map +1 -0
- package/dist/execution-target.js +3877 -0
- package/dist/execution-target.js.map +1 -0
- package/dist/execution-target.test.d.ts +2 -0
- package/dist/execution-target.test.d.ts.map +1 -0
- package/dist/execution-target.test.js +346 -0
- package/dist/execution-target.test.js.map +1 -0
- package/dist/git-workspace-sync.d.ts +193 -0
- package/dist/git-workspace-sync.d.ts.map +1 -0
- package/dist/git-workspace-sync.js +786 -0
- package/dist/git-workspace-sync.js.map +1 -0
- package/dist/git-workspace-sync.test.d.ts +2 -0
- package/dist/git-workspace-sync.test.d.ts.map +1 -0
- package/dist/git-workspace-sync.test.js +830 -0
- package/dist/git-workspace-sync.test.js.map +1 -0
- package/dist/github-launcher-environment.test.d.ts +2 -0
- package/dist/github-launcher-environment.test.d.ts.map +1 -0
- package/dist/github-launcher-environment.test.js +285 -0
- package/dist/github-launcher-environment.test.js.map +1 -0
- package/dist/github-launcher.d.ts +8 -0
- package/dist/github-launcher.d.ts.map +1 -0
- package/dist/github-launcher.js +127 -0
- package/dist/github-launcher.js.map +1 -0
- package/dist/github-launcher.test.d.ts +2 -0
- package/dist/github-launcher.test.d.ts.map +1 -0
- package/dist/github-launcher.test.js +166 -0
- package/dist/github-launcher.test.js.map +1 -0
- package/dist/http2-bridge-server.d.ts +465 -0
- package/dist/http2-bridge-server.d.ts.map +1 -0
- package/dist/http2-bridge-server.js +1087 -0
- package/dist/http2-bridge-server.js.map +1 -0
- package/dist/http2-bridge-server.test.d.ts +2 -0
- package/dist/http2-bridge-server.test.d.ts.map +1 -0
- package/dist/http2-bridge-server.test.js +2129 -0
- package/dist/http2-bridge-server.test.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/local-process-sandbox.d.ts +41 -0
- package/dist/local-process-sandbox.d.ts.map +1 -0
- package/dist/local-process-sandbox.js +432 -0
- package/dist/local-process-sandbox.js.map +1 -0
- package/dist/local-process-sandbox.test.d.ts +2 -0
- package/dist/local-process-sandbox.test.d.ts.map +1 -0
- package/dist/local-process-sandbox.test.js +399 -0
- package/dist/local-process-sandbox.test.js.map +1 -0
- package/dist/log-redaction.d.ts +9 -0
- package/dist/log-redaction.d.ts.map +1 -0
- package/dist/log-redaction.js +88 -0
- package/dist/log-redaction.js.map +1 -0
- package/dist/login-capability.d.ts +88 -0
- package/dist/login-capability.d.ts.map +1 -0
- package/dist/login-capability.js +78 -0
- package/dist/login-capability.js.map +1 -0
- package/dist/login-capability.test.d.ts +2 -0
- package/dist/login-capability.test.d.ts.map +1 -0
- package/dist/login-capability.test.js +78 -0
- package/dist/login-capability.test.js.map +1 -0
- package/dist/login-pty-transport.d.ts +80 -0
- package/dist/login-pty-transport.d.ts.map +1 -0
- package/dist/login-pty-transport.js +75 -0
- package/dist/login-pty-transport.js.map +1 -0
- package/dist/login-pty-transport.test.d.ts +2 -0
- package/dist/login-pty-transport.test.d.ts.map +1 -0
- package/dist/login-pty-transport.test.js +185 -0
- package/dist/login-pty-transport.test.js.map +1 -0
- package/dist/login-runner-lifecycle.d.ts +70 -0
- package/dist/login-runner-lifecycle.d.ts.map +1 -0
- package/dist/login-runner-lifecycle.js +52 -0
- package/dist/login-runner-lifecycle.js.map +1 -0
- package/dist/login-runner-lifecycle.test.d.ts +2 -0
- package/dist/login-runner-lifecycle.test.d.ts.map +1 -0
- package/dist/login-runner-lifecycle.test.js +122 -0
- package/dist/login-runner-lifecycle.test.js.map +1 -0
- package/dist/mcp-isolation.integration.test.d.ts +2 -0
- package/dist/mcp-isolation.integration.test.d.ts.map +1 -0
- package/dist/mcp-isolation.integration.test.js +202 -0
- package/dist/mcp-isolation.integration.test.js.map +1 -0
- package/dist/paperclip-runner-permissions.d.ts +110 -0
- package/dist/paperclip-runner-permissions.d.ts.map +1 -0
- package/dist/paperclip-runner-permissions.js +150 -0
- package/dist/paperclip-runner-permissions.js.map +1 -0
- package/dist/paperclip-runner-permissions.test.d.ts +2 -0
- package/dist/paperclip-runner-permissions.test.d.ts.map +1 -0
- package/dist/paperclip-runner-permissions.test.js +47 -0
- package/dist/paperclip-runner-permissions.test.js.map +1 -0
- package/dist/published-exports.test.d.ts +2 -0
- package/dist/published-exports.test.d.ts.map +1 -0
- package/dist/published-exports.test.js +17 -0
- package/dist/published-exports.test.js.map +1 -0
- package/dist/remote-execution-env.d.ts +2 -0
- package/dist/remote-execution-env.d.ts.map +1 -0
- package/dist/remote-execution-env.js +46 -0
- package/dist/remote-execution-env.js.map +1 -0
- package/dist/remote-managed-runtime.d.ts +45 -0
- package/dist/remote-managed-runtime.d.ts.map +1 -0
- package/dist/remote-managed-runtime.js +183 -0
- package/dist/remote-managed-runtime.js.map +1 -0
- package/dist/remote-managed-runtime.test.d.ts +2 -0
- package/dist/remote-managed-runtime.test.d.ts.map +1 -0
- package/dist/remote-managed-runtime.test.js +294 -0
- package/dist/remote-managed-runtime.test.js.map +1 -0
- package/dist/runner-connectivity.d.ts +61 -0
- package/dist/runner-connectivity.d.ts.map +1 -0
- package/dist/runner-connectivity.js +81 -0
- package/dist/runner-connectivity.js.map +1 -0
- package/dist/runner-connectivity.test.d.ts +2 -0
- package/dist/runner-connectivity.test.d.ts.map +1 -0
- package/dist/runner-connectivity.test.js +183 -0
- package/dist/runner-connectivity.test.js.map +1 -0
- package/dist/runtime-progress.d.ts +48 -0
- package/dist/runtime-progress.d.ts.map +1 -0
- package/dist/runtime-progress.js +99 -0
- package/dist/runtime-progress.js.map +1 -0
- package/dist/runtime-progress.test.d.ts +2 -0
- package/dist/runtime-progress.test.d.ts.map +1 -0
- package/dist/runtime-progress.test.js +240 -0
- package/dist/runtime-progress.test.js.map +1 -0
- package/dist/sandbox-callback-bridge-body.d.ts +12 -0
- package/dist/sandbox-callback-bridge-body.d.ts.map +1 -0
- package/dist/sandbox-callback-bridge-body.js +39 -0
- package/dist/sandbox-callback-bridge-body.js.map +1 -0
- package/dist/sandbox-callback-bridge-body.test.d.ts +2 -0
- package/dist/sandbox-callback-bridge-body.test.d.ts.map +1 -0
- package/dist/sandbox-callback-bridge-body.test.js +31 -0
- package/dist/sandbox-callback-bridge-body.test.js.map +1 -0
- package/dist/sandbox-callback-bridge.d.ts +268 -0
- package/dist/sandbox-callback-bridge.d.ts.map +1 -0
- package/dist/sandbox-callback-bridge.js +2357 -0
- package/dist/sandbox-callback-bridge.js.map +1 -0
- package/dist/sandbox-callback-bridge.test.d.ts +2 -0
- package/dist/sandbox-callback-bridge.test.d.ts.map +1 -0
- package/dist/sandbox-callback-bridge.test.js +3253 -0
- package/dist/sandbox-callback-bridge.test.js.map +1 -0
- package/dist/sandbox-file-sync.test.d.ts +2 -0
- package/dist/sandbox-file-sync.test.d.ts.map +1 -0
- package/dist/sandbox-file-sync.test.js +419 -0
- package/dist/sandbox-file-sync.test.js.map +1 -0
- package/dist/sandbox-install-command.d.ts +2 -0
- package/dist/sandbox-install-command.d.ts.map +1 -0
- package/dist/sandbox-install-command.js +47 -0
- package/dist/sandbox-install-command.js.map +1 -0
- package/dist/sandbox-install-command.test.d.ts +2 -0
- package/dist/sandbox-install-command.test.d.ts.map +1 -0
- package/dist/sandbox-install-command.test.js +22 -0
- package/dist/sandbox-install-command.test.js.map +1 -0
- package/dist/sandbox-managed-runtime.d.ts +417 -0
- package/dist/sandbox-managed-runtime.d.ts.map +1 -0
- package/dist/sandbox-managed-runtime.js +1337 -0
- package/dist/sandbox-managed-runtime.js.map +1 -0
- package/dist/sandbox-managed-runtime.test.d.ts +2 -0
- package/dist/sandbox-managed-runtime.test.d.ts.map +1 -0
- package/dist/sandbox-managed-runtime.test.js +3746 -0
- package/dist/sandbox-managed-runtime.test.js.map +1 -0
- package/dist/sandbox-run-log-stream.d.ts +44 -0
- package/dist/sandbox-run-log-stream.d.ts.map +1 -0
- package/dist/sandbox-run-log-stream.js +203 -0
- package/dist/sandbox-run-log-stream.js.map +1 -0
- package/dist/sandbox-shell.d.ts +3 -0
- package/dist/sandbox-shell.d.ts.map +1 -0
- package/dist/sandbox-shell.js +7 -0
- package/dist/sandbox-shell.js.map +1 -0
- package/dist/server-utils-env.test.d.ts +2 -0
- package/dist/server-utils-env.test.d.ts.map +1 -0
- package/dist/server-utils-env.test.js +15 -0
- package/dist/server-utils-env.test.js.map +1 -0
- package/dist/server-utils.d.ts +617 -0
- package/dist/server-utils.d.ts.map +1 -0
- package/dist/server-utils.js +3258 -0
- package/dist/server-utils.js.map +1 -0
- package/dist/server-utils.test.d.ts +2 -0
- package/dist/server-utils.test.d.ts.map +1 -0
- package/dist/server-utils.test.js +3047 -0
- package/dist/server-utils.test.js.map +1 -0
- package/dist/session-compaction.d.ts +25 -0
- package/dist/session-compaction.d.ts.map +1 -0
- package/dist/session-compaction.js +165 -0
- package/dist/session-compaction.js.map +1 -0
- package/dist/skill-library-manifest.d.ts +6 -0
- package/dist/skill-library-manifest.d.ts.map +1 -0
- package/dist/skill-library-manifest.js +53 -0
- package/dist/skill-library-manifest.js.map +1 -0
- package/dist/skill-library-manifest.test.d.ts +2 -0
- package/dist/skill-library-manifest.test.d.ts.map +1 -0
- package/dist/skill-library-manifest.test.js +84 -0
- package/dist/skill-library-manifest.test.js.map +1 -0
- package/dist/skills-staging-follow-symlinks.test.d.ts +2 -0
- package/dist/skills-staging-follow-symlinks.test.d.ts.map +1 -0
- package/dist/skills-staging-follow-symlinks.test.js +126 -0
- package/dist/skills-staging-follow-symlinks.test.js.map +1 -0
- package/dist/ssh-fixture.test.d.ts +2 -0
- package/dist/ssh-fixture.test.d.ts.map +1 -0
- package/dist/ssh-fixture.test.js +832 -0
- package/dist/ssh-fixture.test.js.map +1 -0
- package/dist/ssh.d.ts +124 -0
- package/dist/ssh.d.ts.map +1 -0
- package/dist/ssh.js +1667 -0
- package/dist/ssh.js.map +1 -0
- package/dist/sync-operation-schedule.d.ts +17 -0
- package/dist/sync-operation-schedule.d.ts.map +1 -0
- package/dist/sync-operation-schedule.js +66 -0
- package/dist/sync-operation-schedule.js.map +1 -0
- package/dist/sync-operation-schedule.test.d.ts +2 -0
- package/dist/sync-operation-schedule.test.d.ts.map +1 -0
- package/dist/sync-operation-schedule.test.js +130 -0
- package/dist/sync-operation-schedule.test.js.map +1 -0
- package/dist/test-support/mcp-isolation-harness.d.ts +23 -0
- package/dist/test-support/mcp-isolation-harness.d.ts.map +1 -0
- package/dist/test-support/mcp-isolation-harness.js +67 -0
- package/dist/test-support/mcp-isolation-harness.js.map +1 -0
- package/dist/types.d.ts +780 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/dist/workspace-restore-merge.d.ts +77 -0
- package/dist/workspace-restore-merge.d.ts.map +1 -0
- package/dist/workspace-restore-merge.js +396 -0
- package/dist/workspace-restore-merge.js.map +1 -0
- package/dist/workspace-restore-merge.test.d.ts +2 -0
- package/dist/workspace-restore-merge.test.d.ts.map +1 -0
- package/dist/workspace-restore-merge.test.js +438 -0
- package/dist/workspace-restore-merge.test.js.map +1 -0
- package/dist/workspace-restore-teardown.d.ts +29 -0
- package/dist/workspace-restore-teardown.d.ts.map +1 -0
- package/dist/workspace-restore-teardown.js +34 -0
- package/dist/workspace-restore-teardown.js.map +1 -0
- package/dist/workspace-restore-teardown.test.d.ts +2 -0
- package/dist/workspace-restore-teardown.test.d.ts.map +1 -0
- package/dist/workspace-restore-teardown.test.js +71 -0
- package/dist/workspace-restore-teardown.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/LICENSE +191 -0
- package/node_modules/@agentclientprotocol/sdk/README.md +70 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +1803 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js +1869 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +5036 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.d.ts +89 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.js +490 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js +507 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.d.ts +26 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js +96 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js +77 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js +232 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js +132 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.d.ts +9 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js +221 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js +86 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js +112 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js +88 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.d.ts +33 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js +435 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js +1380 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +603 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +1076 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js +917 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.d.ts +22 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js +64 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js +45 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.d.ts +17 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js +426 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js +499 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.d.ts +37 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js +474 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js +535 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.d.ts +11 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.js +69 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js +82 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +183 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js +207 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +51 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +52 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +6219 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js +3 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +15215 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +3084 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +30 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js +98 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js +93 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js +261 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js +536 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js +88 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js +53 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js +992 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.d.ts +81 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.js +386 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.test.js +1116 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.d.ts +4 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.js +91 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js +126 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +35 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.js +115 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js +195 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.d.ts +8 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js +51 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.d.ts +24 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js +163 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.d.ts +9 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js +74 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +957 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +1484 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js +1287 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +946 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +1046 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +42 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js +43 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +6208 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js +3 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +33267 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +3199 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-server.d.ts +14 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js +357 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.d.ts +54 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js +253 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js +836 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.d.ts +13 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js +78 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js +42 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/package.json +104 -0
- package/node_modules/@agentclientprotocol/sdk/schema/schema.json +8967 -0
- package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +10242 -0
- package/node_modules/@clack/core/LICENSE +9 -0
- package/node_modules/@clack/core/README.md +22 -0
- package/node_modules/@clack/core/dist/index.d.mts +503 -0
- package/node_modules/@clack/core/dist/index.mjs +1003 -0
- package/node_modules/@clack/core/package.json +63 -0
- package/node_modules/@clack/prompts/LICENSE +9 -0
- package/node_modules/@clack/prompts/README.md +396 -0
- package/node_modules/@clack/prompts/dist/index.d.mts +949 -0
- package/node_modules/@clack/prompts/dist/index.mjs +1423 -0
- package/node_modules/@clack/prompts/package.json +67 -0
- package/node_modules/@esbuild/linux-x64/README.md +3 -0
- package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-x64/package.json +20 -0
- package/node_modules/acpx/LICENSE +21 -0
- package/node_modules/acpx/README.md +424 -0
- package/node_modules/acpx/dist/cli-CxsS1XQp.js +197 -0
- package/node_modules/acpx/dist/cli-CxsS1XQp.js.map +1 -0
- package/node_modules/acpx/dist/cli.d.ts +14 -0
- package/node_modules/acpx/dist/cli.d.ts.map +1 -0
- package/node_modules/acpx/dist/cli.js +2683 -0
- package/node_modules/acpx/dist/cli.js.map +1 -0
- package/node_modules/acpx/dist/client-DwNyFauq.d.ts +192 -0
- package/node_modules/acpx/dist/client-DwNyFauq.d.ts.map +1 -0
- package/node_modules/acpx/dist/flags-Bjq_XQ4-.js +260 -0
- package/node_modules/acpx/dist/flags-Bjq_XQ4-.js.map +1 -0
- package/node_modules/acpx/dist/flows-Db_LZKu9.js +1920 -0
- package/node_modules/acpx/dist/flows-Db_LZKu9.js.map +1 -0
- package/node_modules/acpx/dist/flows.d.ts +318 -0
- package/node_modules/acpx/dist/flows.d.ts.map +1 -0
- package/node_modules/acpx/dist/flows.js +2 -0
- package/node_modules/acpx/dist/live-checkpoint-ClPCSdrW.js +6210 -0
- package/node_modules/acpx/dist/live-checkpoint-ClPCSdrW.js.map +1 -0
- package/node_modules/acpx/dist/output-CjdF5rHk.js +4593 -0
- package/node_modules/acpx/dist/output-CjdF5rHk.js.map +1 -0
- package/node_modules/acpx/dist/runtime.d.ts +472 -0
- package/node_modules/acpx/dist/runtime.d.ts.map +1 -0
- package/node_modules/acpx/dist/runtime.js +1711 -0
- package/node_modules/acpx/dist/runtime.js.map +1 -0
- package/node_modules/acpx/dist/session-options-jkYbBxGE.d.ts +278 -0
- package/node_modules/acpx/dist/session-options-jkYbBxGE.d.ts.map +1 -0
- package/node_modules/acpx/package.json +129 -0
- package/node_modules/acpx/skills/acpx/SKILL.md +617 -0
- package/node_modules/b4a/LICENSE +201 -0
- package/node_modules/b4a/README.md +153 -0
- package/node_modules/b4a/browser.js +546 -0
- package/node_modules/b4a/index.d.ts +144 -0
- package/node_modules/b4a/index.js +193 -0
- package/node_modules/b4a/lib/ascii.js +31 -0
- package/node_modules/b4a/lib/base64.js +64 -0
- package/node_modules/b4a/lib/hex.js +51 -0
- package/node_modules/b4a/lib/latin1.js +31 -0
- package/node_modules/b4a/lib/utf16le.js +40 -0
- package/node_modules/b4a/lib/utf8.js +144 -0
- package/node_modules/b4a/package.json +54 -0
- package/node_modules/b4a/react-native.js +5 -0
- package/node_modules/b4a/runtime.d.ts +14 -0
- package/node_modules/bare-events/LICENSE +201 -0
- package/node_modules/bare-events/README.md +25 -0
- package/node_modules/bare-events/global.d.ts +15 -0
- package/node_modules/bare-events/global.js +5 -0
- package/node_modules/bare-events/index.d.ts +89 -0
- package/node_modules/bare-events/index.js +397 -0
- package/node_modules/bare-events/lib/errors.js +23 -0
- package/node_modules/bare-events/package.json +63 -0
- package/node_modules/bare-events/web.d.ts +79 -0
- package/node_modules/bare-events/web.js +417 -0
- package/node_modules/bare-fs/CMakeLists.txt +13 -0
- package/node_modules/bare-fs/LICENSE +201 -0
- package/node_modules/bare-fs/README.md +33 -0
- package/node_modules/bare-fs/binding.c +2913 -0
- package/node_modules/bare-fs/binding.js +1 -0
- package/node_modules/bare-fs/index.d.ts +1502 -0
- package/node_modules/bare-fs/index.js +2855 -0
- package/node_modules/bare-fs/lib/constants.d.ts +50 -0
- package/node_modules/bare-fs/lib/constants.js +49 -0
- package/node_modules/bare-fs/lib/errors.d.ts +13 -0
- package/node_modules/bare-fs/lib/errors.js +55 -0
- package/node_modules/bare-fs/package.json +74 -0
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/promises.d.ts +480 -0
- package/node_modules/bare-fs/promises.js +119 -0
- package/node_modules/bare-path/CMakeLists.txt +13 -0
- package/node_modules/bare-path/LICENSE +201 -0
- package/node_modules/bare-path/NOTICE +28 -0
- package/node_modules/bare-path/README.md +19 -0
- package/node_modules/bare-path/binding.c +106 -0
- package/node_modules/bare-path/binding.js +1 -0
- package/node_modules/bare-path/index.d.ts +27 -0
- package/node_modules/bare-path/index.js +9 -0
- package/node_modules/bare-path/lib/constants.js +11 -0
- package/node_modules/bare-path/lib/posix.js +263 -0
- package/node_modules/bare-path/lib/shared.js +81 -0
- package/node_modules/bare-path/lib/win32.js +564 -0
- package/node_modules/bare-path/package.json +47 -0
- package/node_modules/bare-path/prebuilds/android-arm/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/android-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/android-ia32/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/android-x64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/darwin-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/darwin-x64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/ios-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/ios-arm64-simulator/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/ios-x64-simulator/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/linux-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/linux-x64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/win32-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/win32-x64/bare-path.bare +0 -0
- package/node_modules/bare-stream/LICENSE +201 -0
- package/node_modules/bare-stream/README.md +354 -0
- package/node_modules/bare-stream/global.d.ts +31 -0
- package/node_modules/bare-stream/global.js +15 -0
- package/node_modules/bare-stream/index.d.ts +235 -0
- package/node_modules/bare-stream/index.js +493 -0
- package/node_modules/bare-stream/package.json +75 -0
- package/node_modules/bare-stream/promises.js +3 -0
- package/node_modules/bare-stream/web.d.ts +152 -0
- package/node_modules/bare-stream/web.js +607 -0
- package/node_modules/bare-url/CMakeLists.txt +36 -0
- package/node_modules/bare-url/LICENSE +201 -0
- package/node_modules/bare-url/README.md +33 -0
- package/node_modules/bare-url/binding.c +422 -0
- package/node_modules/bare-url/binding.js +1 -0
- package/node_modules/bare-url/global.d.ts +24 -0
- package/node_modules/bare-url/global.js +2 -0
- package/node_modules/bare-url/index.d.ts +96 -0
- package/node_modules/bare-url/index.js +676 -0
- package/node_modules/bare-url/lib/errors.d.ts +10 -0
- package/node_modules/bare-url/lib/errors.js +33 -0
- package/node_modules/bare-url/lib/url-search-params.d.ts +66 -0
- package/node_modules/bare-url/lib/url-search-params.js +276 -0
- package/node_modules/bare-url/package.json +54 -0
- package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1172 -0
- package/node_modules/commander/index.js +21 -0
- package/node_modules/commander/lib/argument.js +147 -0
- package/node_modules/commander/lib/command.js +2790 -0
- package/node_modules/commander/lib/error.js +36 -0
- package/node_modules/commander/lib/help.js +731 -0
- package/node_modules/commander/lib/option.js +377 -0
- package/node_modules/commander/lib/suggestSimilar.js +99 -0
- package/node_modules/commander/package-support.json +19 -0
- package/node_modules/commander/package.json +64 -0
- package/node_modules/commander/typings/index.d.ts +1113 -0
- package/node_modules/esbuild/LICENSE.md +21 -0
- package/node_modules/esbuild/README.md +3 -0
- package/node_modules/esbuild/bin/esbuild +223 -0
- package/node_modules/esbuild/install.js +300 -0
- package/node_modules/esbuild/lib/main.d.ts +720 -0
- package/node_modules/esbuild/lib/main.js +2536 -0
- package/node_modules/esbuild/package.json +74 -0
- package/node_modules/events-universal/LICENSE +201 -0
- package/node_modules/events-universal/README.md +17 -0
- package/node_modules/events-universal/bare.js +1 -0
- package/node_modules/events-universal/default.js +1 -0
- package/node_modules/events-universal/index.js +1 -0
- package/node_modules/events-universal/package.json +39 -0
- package/node_modules/events-universal/react-native.js +1 -0
- package/node_modules/fast-fifo/LICENSE +21 -0
- package/node_modules/fast-fifo/README.md +78 -0
- package/node_modules/fast-fifo/fixed-size.js +39 -0
- package/node_modules/fast-fifo/index.js +48 -0
- package/node_modules/fast-fifo/package.json +28 -0
- package/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
- package/node_modules/fast-string-truncated-width/dist/index.js +111 -0
- package/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
- package/node_modules/fast-string-truncated-width/dist/types.js +2 -0
- package/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
- package/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
- package/node_modules/fast-string-truncated-width/license +21 -0
- package/node_modules/fast-string-truncated-width/package.json +35 -0
- package/node_modules/fast-string-truncated-width/readme.md +59 -0
- package/node_modules/fast-string-width/dist/index.d.ts +4 -0
- package/node_modules/fast-string-width/dist/index.js +14 -0
- package/node_modules/fast-string-width/license +21 -0
- package/node_modules/fast-string-width/package.json +34 -0
- package/node_modules/fast-string-width/readme.md +42 -0
- package/node_modules/fast-wrap-ansi/LICENSE +23 -0
- package/node_modules/fast-wrap-ansi/README.md +26 -0
- package/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
- package/node_modules/fast-wrap-ansi/lib/main.js +218 -0
- package/node_modules/fast-wrap-ansi/package.json +51 -0
- package/node_modules/sisteransi/license +21 -0
- package/node_modules/sisteransi/package.json +34 -0
- package/node_modules/sisteransi/readme.md +113 -0
- package/node_modules/sisteransi/src/index.js +58 -0
- package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/node_modules/skillflag/LICENSE +21 -0
- package/node_modules/skillflag/README.md +44 -0
- package/node_modules/skillflag/dist/bin/skill-install.d.ts +3 -0
- package/node_modules/skillflag/dist/bin/skill-install.d.ts.map +1 -0
- package/node_modules/skillflag/dist/bin/skill-install.js +6 -0
- package/node_modules/skillflag/dist/bin/skill-install.js.map +1 -0
- package/node_modules/skillflag/dist/bin/skillflag.d.ts +3 -0
- package/node_modules/skillflag/dist/bin/skillflag.d.ts.map +1 -0
- package/node_modules/skillflag/dist/bin/skillflag.js +25 -0
- package/node_modules/skillflag/dist/bin/skillflag.js.map +1 -0
- package/node_modules/skillflag/dist/core/digest.d.ts +2 -0
- package/node_modules/skillflag/dist/core/digest.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/digest.js +15 -0
- package/node_modules/skillflag/dist/core/digest.js.map +1 -0
- package/node_modules/skillflag/dist/core/errors.d.ts +6 -0
- package/node_modules/skillflag/dist/core/errors.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/errors.js +13 -0
- package/node_modules/skillflag/dist/core/errors.js.map +1 -0
- package/node_modules/skillflag/dist/core/export.d.ts +2 -0
- package/node_modules/skillflag/dist/core/export.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/export.js +28 -0
- package/node_modules/skillflag/dist/core/export.js.map +1 -0
- package/node_modules/skillflag/dist/core/list.d.ts +21 -0
- package/node_modules/skillflag/dist/core/list.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/list.js +71 -0
- package/node_modules/skillflag/dist/core/list.js.map +1 -0
- package/node_modules/skillflag/dist/core/paths.d.ts +15 -0
- package/node_modules/skillflag/dist/core/paths.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/paths.js +149 -0
- package/node_modules/skillflag/dist/core/paths.js.map +1 -0
- package/node_modules/skillflag/dist/core/show.d.ts +2 -0
- package/node_modules/skillflag/dist/core/show.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/show.js +8 -0
- package/node_modules/skillflag/dist/core/show.js.map +1 -0
- package/node_modules/skillflag/dist/core/skillflag.d.ts +3 -0
- package/node_modules/skillflag/dist/core/skillflag.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/skillflag.js +2 -0
- package/node_modules/skillflag/dist/core/skillflag.js.map +1 -0
- package/node_modules/skillflag/dist/core/tar.d.ts +16 -0
- package/node_modules/skillflag/dist/core/tar.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/tar.js +140 -0
- package/node_modules/skillflag/dist/core/tar.js.map +1 -0
- package/node_modules/skillflag/dist/index.d.ts +5 -0
- package/node_modules/skillflag/dist/index.d.ts.map +1 -0
- package/node_modules/skillflag/dist/index.js +3 -0
- package/node_modules/skillflag/dist/index.js.map +1 -0
- package/node_modules/skillflag/dist/install/cli.d.ts +57 -0
- package/node_modules/skillflag/dist/install/cli.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/cli.js +653 -0
- package/node_modules/skillflag/dist/install/cli.js.map +1 -0
- package/node_modules/skillflag/dist/install/copy.d.ts +2 -0
- package/node_modules/skillflag/dist/install/copy.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/copy.js +19 -0
- package/node_modules/skillflag/dist/install/copy.js.map +1 -0
- package/node_modules/skillflag/dist/install/errors.d.ts +6 -0
- package/node_modules/skillflag/dist/install/errors.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/errors.js +13 -0
- package/node_modules/skillflag/dist/install/errors.js.map +1 -0
- package/node_modules/skillflag/dist/install/extract.d.ts +3 -0
- package/node_modules/skillflag/dist/install/extract.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/extract.js +76 -0
- package/node_modules/skillflag/dist/install/extract.js.map +1 -0
- package/node_modules/skillflag/dist/install/install.d.ts +21 -0
- package/node_modules/skillflag/dist/install/install.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/install.js +35 -0
- package/node_modules/skillflag/dist/install/install.js.map +1 -0
- package/node_modules/skillflag/dist/install/resolve.d.ts +12 -0
- package/node_modules/skillflag/dist/install/resolve.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/resolve.js +119 -0
- package/node_modules/skillflag/dist/install/resolve.js.map +1 -0
- package/node_modules/skillflag/dist/install/validate.d.ts +7 -0
- package/node_modules/skillflag/dist/install/validate.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/validate.js +28 -0
- package/node_modules/skillflag/dist/install/validate.js.map +1 -0
- package/node_modules/skillflag/dist/shared/frontmatter.d.ts +2 -0
- package/node_modules/skillflag/dist/shared/frontmatter.d.ts.map +1 -0
- package/node_modules/skillflag/dist/shared/frontmatter.js +28 -0
- package/node_modules/skillflag/dist/shared/frontmatter.js.map +1 -0
- package/node_modules/skillflag/dist/skillflag.d.ts +29 -0
- package/node_modules/skillflag/dist/skillflag.d.ts.map +1 -0
- package/node_modules/skillflag/dist/skillflag.js +230 -0
- package/node_modules/skillflag/dist/skillflag.js.map +1 -0
- package/node_modules/skillflag/dist/utils/collections.d.ts +3 -0
- package/node_modules/skillflag/dist/utils/collections.d.ts.map +1 -0
- package/node_modules/skillflag/dist/utils/collections.js +18 -0
- package/node_modules/skillflag/dist/utils/collections.js.map +1 -0
- package/node_modules/skillflag/package.json +78 -0
- package/node_modules/skillflag/skills/skillflag/SKILL.md +144 -0
- package/node_modules/streamx/LICENSE +21 -0
- package/node_modules/streamx/README.md +550 -0
- package/node_modules/streamx/index.d.ts +198 -0
- package/node_modules/streamx/index.js +1314 -0
- package/node_modules/streamx/lib/errors.d.ts +13 -0
- package/node_modules/streamx/lib/errors.js +47 -0
- package/node_modules/streamx/package.json +51 -0
- package/node_modules/streamx/runtime.d.ts +55 -0
- package/node_modules/tar-stream/LICENSE +21 -0
- package/node_modules/tar-stream/README.md +183 -0
- package/node_modules/tar-stream/constants.js +14 -0
- package/node_modules/tar-stream/extract.js +418 -0
- package/node_modules/tar-stream/headers.js +322 -0
- package/node_modules/tar-stream/index.d.ts +60 -0
- package/node_modules/tar-stream/index.js +2 -0
- package/node_modules/tar-stream/pack.js +287 -0
- package/node_modules/tar-stream/package.json +50 -0
- package/node_modules/teex/LICENSE +21 -0
- package/node_modules/teex/README.md +31 -0
- package/node_modules/teex/example.js +16 -0
- package/node_modules/teex/index.js +52 -0
- package/node_modules/teex/package.json +26 -0
- package/node_modules/teex/test.js +68 -0
- package/node_modules/text-decoder/LICENSE +201 -0
- package/node_modules/text-decoder/README.md +36 -0
- package/node_modules/text-decoder/index.js +64 -0
- package/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
- package/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
- package/node_modules/text-decoder/package.json +39 -0
- package/node_modules/tsx/LICENSE +21 -0
- package/node_modules/tsx/README.md +32 -0
- package/node_modules/tsx/dist/cjs/api/index.cjs +2 -0
- package/node_modules/tsx/dist/cjs/api/index.d.cts +35 -0
- package/node_modules/tsx/dist/cjs/api/index.d.mts +35 -0
- package/node_modules/tsx/dist/cjs/api/index.mjs +2 -0
- package/node_modules/tsx/dist/cjs/index.cjs +1 -0
- package/node_modules/tsx/dist/cli.mjs +55 -0
- package/node_modules/tsx/dist/client-XItNFmsq.cjs +1 -0
- package/node_modules/tsx/dist/esm/api/index.cjs +2 -0
- package/node_modules/tsx/dist/esm/api/index.d.cts +37 -0
- package/node_modules/tsx/dist/esm/api/index.d.mts +37 -0
- package/node_modules/tsx/dist/esm/api/index.mjs +2 -0
- package/node_modules/tsx/dist/esm/index.mjs +2 -0
- package/node_modules/tsx/dist/index-Bqjv9TxC.mjs +1 -0
- package/node_modules/tsx/dist/index-DE3OBZuV.mjs +14 -0
- package/node_modules/tsx/dist/lexer-CGfpMDSb.cjs +3 -0
- package/node_modules/tsx/dist/lexer-CanA6ArK.mjs +3 -0
- package/node_modules/tsx/dist/loader.mjs +2 -0
- package/node_modules/tsx/dist/package-Dj0mHsMt.mjs +1 -0
- package/node_modules/tsx/dist/patch-repl.cjs +1 -0
- package/node_modules/tsx/dist/preflight.cjs +1 -0
- package/node_modules/tsx/dist/register-B1c7OH6V.cjs +23 -0
- package/node_modules/tsx/dist/register-nyXW-TH3.mjs +2 -0
- package/node_modules/tsx/dist/repl.mjs +4 -0
- package/node_modules/tsx/dist/require-CBjy4Foe.mjs +10 -0
- package/node_modules/tsx/dist/require-CVaYn9z3.cjs +1 -0
- package/node_modules/tsx/dist/suppress-warnings.cjs +1 -0
- package/node_modules/tsx/dist/temporary-directory-Du7LpLp9.mjs +1 -0
- package/node_modules/tsx/package.json +70 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +218 -0
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +52 -0
- package/node_modules/zod/index.d.cts +3 -0
- package/node_modules/zod/index.d.ts +3 -0
- package/node_modules/zod/index.js +7 -0
- package/node_modules/zod/locales/index.cjs +36 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +51 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +147 -0
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1875 -0
- package/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/node_modules/zod/src/v4/core/compile.ts +2313 -0
- package/node_modules/zod/src/v4/core/core.ts +230 -0
- package/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/node_modules/zod/src/v4/core/index.ts +19 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/node_modules/zod/src/v4/core/util.ts +1280 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +120 -0
- package/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +167 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +143 -0
- package/node_modules/zod/v3/errors.cjs +36 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +41 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +156 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +52 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +21 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3798 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3697 -0
- package/node_modules/zod/v4/classic/checks.cjs +53 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +66 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +80 -0
- package/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/node_modules/zod/v4/classic/errors.js +57 -0
- package/node_modules/zod/v4/classic/external.cjs +97 -0
- package/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/node_modules/zod/v4/classic/external.js +17 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +52 -0
- package/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/node_modules/zod/v4/classic/iso.js +15 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/node_modules/zod/v4/classic/parse.js +16 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/node_modules/zod/v4/core/api.cjs +1269 -0
- package/node_modules/zod/v4/core/api.d.cts +335 -0
- package/node_modules/zod/v4/core/api.d.ts +335 -0
- package/node_modules/zod/v4/core/api.js +1107 -0
- package/node_modules/zod/v4/core/checks.cjs +561 -0
- package/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/node_modules/zod/v4/core/checks.js +516 -0
- package/node_modules/zod/v4/core/compile.cjs +1908 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1858 -0
- package/node_modules/zod/v4/core/core.cjs +167 -0
- package/node_modules/zod/v4/core/core.d.cts +82 -0
- package/node_modules/zod/v4/core/core.d.ts +82 -0
- package/node_modules/zod/v4/core/core.js +141 -0
- package/node_modules/zod/v4/core/doc.cjs +61 -0
- package/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/node_modules/zod/v4/core/doc.js +38 -0
- package/node_modules/zod/v4/core/errors.cjs +317 -0
- package/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/node_modules/zod/v4/core/errors.js +267 -0
- package/node_modules/zod/v4/core/index.cjs +70 -0
- package/node_modules/zod/v4/core/index.d.cts +19 -0
- package/node_modules/zod/v4/core/index.d.ts +19 -0
- package/node_modules/zod/v4/core/index.js +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +233 -0
- package/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/node_modules/zod/v4/core/parse.js +175 -0
- package/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/node_modules/zod/v4/core/regexes.js +156 -0
- package/node_modules/zod/v4/core/registries.cjs +75 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2669 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1273 -0
- package/node_modules/zod/v4/core/schemas.js +2606 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/node_modules/zod/v4/core/util.cjs +949 -0
- package/node_modules/zod/v4/core/util.d.cts +278 -0
- package/node_modules/zod/v4/core/util.d.ts +278 -0
- package/node_modules/zod/v4/core/util.js +859 -0
- package/node_modules/zod/v4/core/versions.cjs +27 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +51 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +4 -0
- package/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +111 -0
- package/node_modules/zod/v4/locales/az.cjs +137 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +110 -0
- package/node_modules/zod/v4/locales/be.cjs +195 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +168 -0
- package/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +125 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +112 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +116 -0
- package/node_modules/zod/v4/locales/da.cjs +147 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +120 -0
- package/node_modules/zod/v4/locales/de.cjs +140 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +113 -0
- package/node_modules/zod/v4/locales/el.cjs +139 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +112 -0
- package/node_modules/zod/v4/locales/en.cjs +152 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +125 -0
- package/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +114 -0
- package/node_modules/zod/v4/locales/es.cjs +163 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +136 -0
- package/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +119 -0
- package/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +117 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +129 -0
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +248 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +221 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +126 -0
- package/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +113 -0
- package/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +158 -0
- package/node_modules/zod/v4/locales/id.cjs +138 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +111 -0
- package/node_modules/zod/v4/locales/index.cjs +152 -0
- package/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/node_modules/zod/v4/locales/index.js +63 -0
- package/node_modules/zod/v4/locales/is.cjs +141 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +114 -0
- package/node_modules/zod/v4/locales/it.cjs +140 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +113 -0
- package/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +112 -0
- package/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +117 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +142 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +115 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +116 -0
- package/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +207 -0
- package/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +114 -0
- package/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +112 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +115 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +140 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +113 -0
- package/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +114 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +114 -0
- package/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +119 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +142 -0
- package/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +122 -0
- package/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +168 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +114 -0
- package/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +115 -0
- package/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +115 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +142 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +115 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +110 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +113 -0
- package/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +115 -0
- package/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +113 -0
- package/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +113 -0
- package/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +112 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/node_modules/zod/v4/mini/checks.cjs +54 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +71 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +95 -0
- package/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/node_modules/zod/v4/mini/external.js +16 -0
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +51 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +83 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +37 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +51 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +50 -0
|
@@ -0,0 +1,1502 @@
|
|
|
1
|
+
import EventEmitter, { EventMap } from 'bare-events'
|
|
2
|
+
import Buffer, { BufferEncoding } from 'bare-buffer'
|
|
3
|
+
import URL from 'bare-url'
|
|
4
|
+
import { Readable, Writable } from 'bare-stream'
|
|
5
|
+
import promises from './promises'
|
|
6
|
+
import constants from './lib/constants'
|
|
7
|
+
|
|
8
|
+
export { promises, constants }
|
|
9
|
+
|
|
10
|
+
export type Path = string | Buffer | URL
|
|
11
|
+
|
|
12
|
+
export type Flag =
|
|
13
|
+
| 'a'
|
|
14
|
+
| 'a+'
|
|
15
|
+
| 'as'
|
|
16
|
+
| 'as+'
|
|
17
|
+
| 'ax'
|
|
18
|
+
| 'ax+'
|
|
19
|
+
| 'r'
|
|
20
|
+
| 'r+'
|
|
21
|
+
| 'rs'
|
|
22
|
+
| 'rs+'
|
|
23
|
+
| 'sa'
|
|
24
|
+
| 'sa+'
|
|
25
|
+
| 'sr'
|
|
26
|
+
| 'sr+'
|
|
27
|
+
| 'w'
|
|
28
|
+
| 'w+'
|
|
29
|
+
| 'wx'
|
|
30
|
+
| 'wx+'
|
|
31
|
+
| 'xa'
|
|
32
|
+
| 'xa+'
|
|
33
|
+
| 'xw'
|
|
34
|
+
| 'xw+'
|
|
35
|
+
|
|
36
|
+
interface Callback<A extends unknown[] = []> {
|
|
37
|
+
(err: Error | null, ...args: A): void
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface Dir<T extends string | Buffer = string | Buffer>
|
|
41
|
+
extends Iterable<Dirent>, AsyncIterable<Dirent> {
|
|
42
|
+
/** The path of the directory. */
|
|
43
|
+
readonly path: string
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Read the next entry from the directory.
|
|
47
|
+
* @returns The next `Dirent` for the directory, or `null` once every entry has been read.
|
|
48
|
+
*/
|
|
49
|
+
read(): Promise<Dirent<T> | null>
|
|
50
|
+
read(cb: Callback<[dirent: Dirent<T> | null]>): void
|
|
51
|
+
/**
|
|
52
|
+
* Read the next entry from the directory.
|
|
53
|
+
* @returns The next `Dirent` for the directory, or `null` once every entry has been read.
|
|
54
|
+
*/
|
|
55
|
+
readSync(): Dirent<T> | null
|
|
56
|
+
|
|
57
|
+
/** Close the directory handle opened by `fs.opendir()`. */
|
|
58
|
+
close(): Promise<void>
|
|
59
|
+
close(cb: Callback): void
|
|
60
|
+
/** Close the directory handle opened by `fs.opendirSync()`. */
|
|
61
|
+
closeSync(): void
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export class Dir {
|
|
65
|
+
private constructor(path: string, handle: ArrayBuffer, opts?: OpendirOptions)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface Dirent<T extends string | Buffer = string | Buffer> {
|
|
69
|
+
/** The path of the parent directory. */
|
|
70
|
+
readonly parentPath: string
|
|
71
|
+
/** The name of the directory entry, as a string or `Buffer` depending on the encoding. */
|
|
72
|
+
readonly name: T
|
|
73
|
+
/** The numeric type of the directory entry. */
|
|
74
|
+
readonly type: number
|
|
75
|
+
|
|
76
|
+
/** Returns `true` if the file is a regular file. */
|
|
77
|
+
isFile(): boolean
|
|
78
|
+
/** Returns `true` if the file is a directory. */
|
|
79
|
+
isDirectory(): boolean
|
|
80
|
+
/** Returns `true` if the file is a symbolic link. Only meaningful when using `fs.lstat()`. */
|
|
81
|
+
isSymbolicLink(): boolean
|
|
82
|
+
/** Returns `true` if the file is a FIFO (named pipe). */
|
|
83
|
+
isFIFO(): boolean
|
|
84
|
+
/** Returns `true` if the file is a socket. */
|
|
85
|
+
isSocket(): boolean
|
|
86
|
+
/** Returns `true` if the file is a character device. */
|
|
87
|
+
isCharacterDevice(): boolean
|
|
88
|
+
/** Returns `true` if the file is a block device. */
|
|
89
|
+
isBlockDevice(): boolean
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export class Dirent<T extends string | Buffer = string | Buffer> {
|
|
93
|
+
private constructor(parentPath: string, name: T, type: number)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface Stats {
|
|
97
|
+
/** The device identifier. */
|
|
98
|
+
readonly dev: number
|
|
99
|
+
/** The file mode (type and permissions). */
|
|
100
|
+
readonly mode: number
|
|
101
|
+
/** The number of hard links. */
|
|
102
|
+
readonly nlink: number
|
|
103
|
+
/** The user identifier of the file owner. */
|
|
104
|
+
readonly uid: number
|
|
105
|
+
/** The group identifier of the file owner. */
|
|
106
|
+
readonly gid: number
|
|
107
|
+
/** The device identifier for special files. */
|
|
108
|
+
readonly rdev: number
|
|
109
|
+
/** The file system block size for I/O operations. */
|
|
110
|
+
readonly blksize: number
|
|
111
|
+
/** The inode number. */
|
|
112
|
+
readonly ino: number
|
|
113
|
+
/** The size of the file in bytes. */
|
|
114
|
+
readonly size: number
|
|
115
|
+
/** The number of 512-byte blocks allocated. */
|
|
116
|
+
readonly blocks: number
|
|
117
|
+
/** The access time in milliseconds since the epoch. */
|
|
118
|
+
readonly atimeMs: number
|
|
119
|
+
/** The modification time in milliseconds since the epoch. */
|
|
120
|
+
readonly mtimeMs: number
|
|
121
|
+
/** The change time in milliseconds since the epoch. */
|
|
122
|
+
readonly ctimeMs: number
|
|
123
|
+
/** The creation time in milliseconds since the epoch. */
|
|
124
|
+
readonly birthtimeMs: number
|
|
125
|
+
/** The access time as a `Date` object. */
|
|
126
|
+
readonly atime: Date
|
|
127
|
+
/** The modification time as a `Date` object. */
|
|
128
|
+
readonly mtime: Date
|
|
129
|
+
/** The change time as a `Date` object. */
|
|
130
|
+
readonly ctime: Date
|
|
131
|
+
/** The creation time as a `Date` object. */
|
|
132
|
+
readonly birthtime: Date
|
|
133
|
+
|
|
134
|
+
isDirectory(): boolean
|
|
135
|
+
isFile(): boolean
|
|
136
|
+
isBlockDevice(): boolean
|
|
137
|
+
isCharacterDevice(): boolean
|
|
138
|
+
isFIFO(): boolean
|
|
139
|
+
isSymbolicLink(): boolean
|
|
140
|
+
isSocket(): boolean
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export class Stats {
|
|
144
|
+
private constructor(
|
|
145
|
+
dev: number,
|
|
146
|
+
mode: number,
|
|
147
|
+
nlink: number,
|
|
148
|
+
uid: number,
|
|
149
|
+
gid: number,
|
|
150
|
+
rdev: number,
|
|
151
|
+
blksize: number,
|
|
152
|
+
ino: number,
|
|
153
|
+
size: number,
|
|
154
|
+
blocks: number,
|
|
155
|
+
atimeMs: number,
|
|
156
|
+
mtimeMs: number,
|
|
157
|
+
ctimeMs: number,
|
|
158
|
+
birthtimeMs: number
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface StatFs {
|
|
163
|
+
readonly type: number
|
|
164
|
+
readonly bsize: number
|
|
165
|
+
readonly blocks: number
|
|
166
|
+
readonly bfree: number
|
|
167
|
+
readonly bavail: number
|
|
168
|
+
readonly files: number
|
|
169
|
+
readonly ffree: number
|
|
170
|
+
readonly frsize: number
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export class StatFs {
|
|
174
|
+
private constructor(
|
|
175
|
+
type: number,
|
|
176
|
+
bsize: number,
|
|
177
|
+
blocks: number,
|
|
178
|
+
bfree: number,
|
|
179
|
+
bavail: number,
|
|
180
|
+
files: number,
|
|
181
|
+
ffree: number,
|
|
182
|
+
frsize: number
|
|
183
|
+
)
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Options for `fs.createReadStream()`. `fd`, if given, is used instead of opening `path`. `flags`
|
|
188
|
+
* defaults to `'r'` and `mode` to `0o666`. `start` (default `0`) is the first byte read; `end`, if
|
|
189
|
+
* given, is the last byte read (inclusive).
|
|
190
|
+
*/
|
|
191
|
+
export interface ReadStreamOptions {
|
|
192
|
+
/** The underlying file descriptor. */
|
|
193
|
+
fd?: number
|
|
194
|
+
/** The flags the file was opened with. */
|
|
195
|
+
flags?: Flag
|
|
196
|
+
mode?: number
|
|
197
|
+
start?: number
|
|
198
|
+
end?: number
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface ReadStream extends Readable {
|
|
202
|
+
readonly path: string | null
|
|
203
|
+
readonly fd: number
|
|
204
|
+
readonly flags: Flag
|
|
205
|
+
readonly mode: number
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export class ReadStream {
|
|
209
|
+
private constructor(path: Path | null, opts?: ReadStreamOptions)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Create a readable stream for a file. Returns a `ReadStream`.
|
|
214
|
+
* @param path - May be `null` if `opts.fd` specifies an already-open file descriptor to read from
|
|
215
|
+
* instead of opening `path`.
|
|
216
|
+
* @param opts - `flags` defaults to `'r'`, `mode` to `0o666`, `start` (byte offset) to `0`; `end`
|
|
217
|
+
* (inclusive byte offset), if given, stops the stream early.
|
|
218
|
+
*/
|
|
219
|
+
export function createReadStream(path: Path | null, opts?: ReadStreamOptions): ReadStream
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Options for `fs.createWriteStream()`. `fd`, if given, is used instead of opening `path`. `flags`
|
|
223
|
+
* defaults to `'w'` and `mode` to `0o666`.
|
|
224
|
+
*/
|
|
225
|
+
export interface WriteStreamOptions {
|
|
226
|
+
fd?: number
|
|
227
|
+
flags?: Flag
|
|
228
|
+
mode?: number
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export interface WriteStream extends Writable {
|
|
232
|
+
readonly path: string | null
|
|
233
|
+
readonly fd: number
|
|
234
|
+
readonly flags: Flag
|
|
235
|
+
readonly mode: number
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export class WriteStream {
|
|
239
|
+
private constructor(path: Path | null, opts?: WriteStreamOptions)
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Create a writable stream for a file. Returns a `WriteStream`.
|
|
244
|
+
* @param path - May be `null` if `opts.fd` specifies an already-open file descriptor to write to
|
|
245
|
+
* instead of opening `path`.
|
|
246
|
+
* @param opts - `flags` defaults to `'w'`, `mode` to `0o666`.
|
|
247
|
+
*/
|
|
248
|
+
export function createWriteStream(path: Path | null, opts?: WriteStreamOptions): WriteStream
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Options for `fs.watch()`. `persistent` defaults to `true` (if `false`, the watcher is `unref()`'d
|
|
252
|
+
* immediately so it does not keep the process alive). `recursive` defaults to `false` and also
|
|
253
|
+
* watches subdirectories. `encoding` defaults to `'utf8'`.
|
|
254
|
+
*/
|
|
255
|
+
export interface WatcherOptions {
|
|
256
|
+
persistent?: boolean
|
|
257
|
+
recursive?: boolean
|
|
258
|
+
encoding?: BufferEncoding | 'buffer'
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type WatcherEventType = 'rename' | 'change'
|
|
262
|
+
|
|
263
|
+
export interface WatcherEvents<T extends string | Buffer = string | Buffer> extends EventMap {
|
|
264
|
+
error: [err: Error]
|
|
265
|
+
change: [eventType: WatcherEventType, filename: T]
|
|
266
|
+
/** Emitted once the watcher has stopped watching. */
|
|
267
|
+
close: []
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export interface Watcher<T extends string | Buffer = string | Buffer>
|
|
271
|
+
extends
|
|
272
|
+
EventEmitter<WatcherEvents<T>>,
|
|
273
|
+
AsyncIterable<{ eventType: WatcherEventType; filename: T }> {
|
|
274
|
+
/** Stop watching for further changes. Once closed, a `close` event is emitted. */
|
|
275
|
+
close(): void
|
|
276
|
+
/** Prevent the event loop from exiting while the watcher is active. */
|
|
277
|
+
ref(): void
|
|
278
|
+
/** Allow the event loop to exit even if the watcher is still active. */
|
|
279
|
+
unref(): void
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export class Watcher {
|
|
283
|
+
private constructor(path: Path, opts: WatcherOptions)
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Check whether the file at `filepath` is accessible. `mode` defaults to `fs.constants.F_OK`.
|
|
288
|
+
* @param mode - Defaults to `fs.constants.F_OK` (existence only); may also combine `R_OK`, `W_OK`,
|
|
289
|
+
* and/or `X_OK`.
|
|
290
|
+
*/
|
|
291
|
+
export function access(filepath: Path, mode?: number): Promise<void>
|
|
292
|
+
|
|
293
|
+
export function access(filepath: Path, mode: number, cb: Callback): void
|
|
294
|
+
|
|
295
|
+
export function access(filepath: Path, cb: Callback): void
|
|
296
|
+
|
|
297
|
+
export function accessSync(filepath: Path, mode?: number): void
|
|
298
|
+
|
|
299
|
+
export interface AppendFileOptions {
|
|
300
|
+
encoding?: BufferEncoding
|
|
301
|
+
flag?: string
|
|
302
|
+
mode?: number
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Append `data` to a file, creating it if it does not exist. Accepts the same options as
|
|
307
|
+
* `fs.writeFile()` but defaults to the `'a'` flag.
|
|
308
|
+
*/
|
|
309
|
+
export function appendFile(
|
|
310
|
+
filepath: Path,
|
|
311
|
+
data: string | Buffer | ArrayBufferView,
|
|
312
|
+
opts?: AppendFileOptions
|
|
313
|
+
): Promise<void>
|
|
314
|
+
|
|
315
|
+
export function appendFile(
|
|
316
|
+
filepath: Path,
|
|
317
|
+
data: string | Buffer | ArrayBufferView,
|
|
318
|
+
encoding: BufferEncoding
|
|
319
|
+
): Promise<void>
|
|
320
|
+
|
|
321
|
+
export function appendFile(
|
|
322
|
+
filepath: Path,
|
|
323
|
+
data: string | Buffer | ArrayBufferView,
|
|
324
|
+
opts: AppendFileOptions,
|
|
325
|
+
cb: Callback
|
|
326
|
+
): void
|
|
327
|
+
|
|
328
|
+
export function appendFile(
|
|
329
|
+
filepath: Path,
|
|
330
|
+
data: string | Buffer | ArrayBufferView,
|
|
331
|
+
encoding: BufferEncoding,
|
|
332
|
+
cb: Callback
|
|
333
|
+
): void
|
|
334
|
+
|
|
335
|
+
export function appendFile(
|
|
336
|
+
filepath: Path,
|
|
337
|
+
data: string | Buffer | ArrayBufferView,
|
|
338
|
+
cb: Callback
|
|
339
|
+
): void
|
|
340
|
+
|
|
341
|
+
export function appendFileSync(
|
|
342
|
+
filepath: Path,
|
|
343
|
+
data: string | Buffer | ArrayBufferView,
|
|
344
|
+
opts?: AppendFileOptions
|
|
345
|
+
): void
|
|
346
|
+
|
|
347
|
+
export function appendFileSync(
|
|
348
|
+
filepath: Path,
|
|
349
|
+
data: string | Buffer | ArrayBufferView,
|
|
350
|
+
encoding: BufferEncoding
|
|
351
|
+
): void
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Change the permissions of a file. `mode` may be a numeric mode or a string that will be parsed as
|
|
355
|
+
* octal.
|
|
356
|
+
*/
|
|
357
|
+
export function chmod(filepath: Path, mode: string | number): Promise<void>
|
|
358
|
+
|
|
359
|
+
export function chmod(filepath: Path, mode: string | number, cb: Callback): void
|
|
360
|
+
|
|
361
|
+
export function chmodSync(filepath: Path, mode: string | number): void
|
|
362
|
+
|
|
363
|
+
/** Change the owner and group of a file. */
|
|
364
|
+
export function chown(filepath: Path, uid: number, gid: number): Promise<void>
|
|
365
|
+
|
|
366
|
+
export function chown(filepath: Path, uid: number, gid: number, cb: Callback): void
|
|
367
|
+
|
|
368
|
+
export function chownSync(filepath: Path, uid: number, gid: number): void
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Close a file descriptor.
|
|
372
|
+
* @param fd - The file descriptor to close, as returned by `fs.open()`.
|
|
373
|
+
*/
|
|
374
|
+
export function close(fd: number): Promise<void>
|
|
375
|
+
|
|
376
|
+
export function close(fd: number, cb: Callback): void
|
|
377
|
+
|
|
378
|
+
/** Close the directory handle opened by `fs.opendirSync()`. */
|
|
379
|
+
export function closeSync(fd: number): void
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Copy a file from `src` to `dst`. `mode` is an optional bitmask created from
|
|
383
|
+
* `fs.constants.COPYFILE_EXCL`, `fs.constants.COPYFILE_FICLONE`, or
|
|
384
|
+
* `fs.constants.COPYFILE_FICLONE_FORCE`.
|
|
385
|
+
* @param mode - Defaults to `0`. A bitmask of `fs.constants.COPYFILE_EXCL` (fail if `dst` exists),
|
|
386
|
+
* `COPYFILE_FICLONE`, or `COPYFILE_FICLONE_FORCE`.
|
|
387
|
+
* @throws {EEXIST} `dst` already exists and `mode` includes `fs.constants.COPYFILE_EXCL`.
|
|
388
|
+
*/
|
|
389
|
+
export function copyFile(src: Path, dst: Path, mode?: number): Promise<void>
|
|
390
|
+
|
|
391
|
+
export function copyFile(src: Path, dst: Path, mode: number, cb: Callback): void
|
|
392
|
+
|
|
393
|
+
export function copyFile(src: Path, dst: Path, cb: Callback): void
|
|
394
|
+
|
|
395
|
+
export function copyFileSync(src: Path, dst: Path, mode?: number): void
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Options for `fs.cp()`. `recursive` must be `true` to copy a directory; without it, copying a
|
|
399
|
+
* directory throws `EISDIR`.
|
|
400
|
+
*/
|
|
401
|
+
export interface CpOptions {
|
|
402
|
+
recursive?: boolean
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Copy a file or directory from `src` to `dst`.
|
|
407
|
+
* @param opts - `recursive` must be `true` to copy a directory; copying a directory without it
|
|
408
|
+
* throws `EISDIR`.
|
|
409
|
+
* @throws {EISDIR} `src` is a directory and `opts.recursive` is not set.
|
|
410
|
+
*/
|
|
411
|
+
export function cp(src: Path, dst: Path, opts?: CpOptions): Promise<void>
|
|
412
|
+
|
|
413
|
+
export function cp(src: Path, dst: Path, opts: CpOptions, cb: Callback): void
|
|
414
|
+
|
|
415
|
+
export function cp(src: Path, dst: Path, cb: Callback): void
|
|
416
|
+
|
|
417
|
+
export function cpSync(src: Path, dst: Path, opts?: CpOptions): void
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Check whether a file exists at `filepath`. Returns `true` if the file is accessible, `false`
|
|
421
|
+
* otherwise.
|
|
422
|
+
*/
|
|
423
|
+
export function exists(filepath: Path): Promise<boolean>
|
|
424
|
+
|
|
425
|
+
export function exists(filepath: Path, cb: (exists: boolean) => void): void
|
|
426
|
+
|
|
427
|
+
export function existsSync(filepath: Path): boolean
|
|
428
|
+
|
|
429
|
+
/** Change the permissions of a file by its file descriptor. */
|
|
430
|
+
export function fchmod(fd: number, mode: string | number): Promise<void>
|
|
431
|
+
|
|
432
|
+
export function fchmod(fd: number, mode: string | number, cb: Callback): void
|
|
433
|
+
|
|
434
|
+
export function fchmodSync(fd: number, mode: string | number): void
|
|
435
|
+
|
|
436
|
+
/** Change the owner and group of a file by its file descriptor. */
|
|
437
|
+
export function fchown(fd: number, uid: number, gid: number): Promise<void>
|
|
438
|
+
|
|
439
|
+
export function fchown(fd: number, uid: number, gid: number, cb: Callback): void
|
|
440
|
+
|
|
441
|
+
export function fchownSync(fd: number, uid: number, gid: number): void
|
|
442
|
+
|
|
443
|
+
/** Similar to `fsync`, but does not flush modified metadata unless necessary. */
|
|
444
|
+
export function fdatasync(fd: number): Promise<void>
|
|
445
|
+
|
|
446
|
+
export function fdatasync(fd: number, cb: Callback): void
|
|
447
|
+
|
|
448
|
+
export function fdatasyncSync(fd: number): void
|
|
449
|
+
|
|
450
|
+
/** Get the status of a file by its file descriptor. Returns a `Stats` object. */
|
|
451
|
+
export function fstat(fd: number): Promise<Stats>
|
|
452
|
+
|
|
453
|
+
export function fstat(fd: number, cb: Callback<[stats: Stats | null]>): void
|
|
454
|
+
|
|
455
|
+
export function fstatSync(fd: number): Stats
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Flush all modified in-core data of the file referred by its file descriptor to the disk device.
|
|
459
|
+
*/
|
|
460
|
+
export function fsync(fd: number): Promise<void>
|
|
461
|
+
|
|
462
|
+
export function fsync(fd: number, cb: Callback): void
|
|
463
|
+
|
|
464
|
+
export function fsyncSync(fd: number): void
|
|
465
|
+
|
|
466
|
+
/** Truncate a file to `len` bytes. `len` defaults to `0`. */
|
|
467
|
+
export function ftruncate(fd: number, len?: number): Promise<void>
|
|
468
|
+
|
|
469
|
+
export function ftruncate(fd: number, len: number, cb: Callback): void
|
|
470
|
+
|
|
471
|
+
export function ftruncate(fd: number, cb: Callback): void
|
|
472
|
+
|
|
473
|
+
export function ftruncateSync(fd: number, len?: number): void
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Change the owner and group of a file, but if `filepath` is a symbolic link, the changes are
|
|
477
|
+
* applied only to the link, not the file it refers to.
|
|
478
|
+
*/
|
|
479
|
+
export function lchown(filepath: Path, uid: number, gid: number): Promise<void>
|
|
480
|
+
|
|
481
|
+
export function lchown(filepath: Path, uid: number, gid: number, cb: Callback): void
|
|
482
|
+
|
|
483
|
+
export function lchownSync(filepath: Path, uid: number, gid: number): void
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Like `fs.stat()`, but if `filepath` is a symbolic link, the link itself is statted, not the file
|
|
487
|
+
* it refers to.
|
|
488
|
+
*/
|
|
489
|
+
export function lstat(filepath: Path): Promise<Stats>
|
|
490
|
+
|
|
491
|
+
export function lstat(filepath: Path, cb: Callback<[stats: Stats | null]>): void
|
|
492
|
+
|
|
493
|
+
export function lstatSync(filepath: Path): Stats
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Change the access and modification times of a file. Times may be numbers (seconds since epoch) or
|
|
497
|
+
* `Date` objects.
|
|
498
|
+
*/
|
|
499
|
+
export function utimes(filepath: Path, atime: number | Date, mtime: number | Date): Promise<void>
|
|
500
|
+
|
|
501
|
+
export function utimes(
|
|
502
|
+
filepath: Path,
|
|
503
|
+
atime: number | Date,
|
|
504
|
+
mtime: number | Date,
|
|
505
|
+
cb: Callback
|
|
506
|
+
): void
|
|
507
|
+
|
|
508
|
+
export function utimesSync(filepath: Path, atime: number | Date, mtime: number | Date): void
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Like `fs.utimes()`, but if `filepath` is a symbolic link, the timestamps of the link is changed,
|
|
512
|
+
* not the file it refers to.
|
|
513
|
+
*/
|
|
514
|
+
export function lutimes(filepath: Path, atime: number | Date, mtime: number | Date): Promise<void>
|
|
515
|
+
|
|
516
|
+
export function lutimes(
|
|
517
|
+
filepath: Path,
|
|
518
|
+
atime: number | Date,
|
|
519
|
+
mtime: number | Date,
|
|
520
|
+
cb: Callback
|
|
521
|
+
): void
|
|
522
|
+
|
|
523
|
+
export function lutimesSync(filepath: Path, atime: number | Date, mtime: number | Date): void
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Change the access and modification times of a file by its file descriptor. Times may be numbers
|
|
527
|
+
* (seconds since epoch) or `Date` objects.
|
|
528
|
+
*/
|
|
529
|
+
export function futimes(fd: number, atime: number | Date, mtime: number | Date): Promise<void>
|
|
530
|
+
|
|
531
|
+
export function futimes(fd: number, atime: number | Date, mtime: number | Date, cb: Callback): void
|
|
532
|
+
|
|
533
|
+
export function futimesSync(fd: number, atime: number | Date, mtime: number | Date): void
|
|
534
|
+
|
|
535
|
+
/** Creates a new link (also known as a hard link) to an existing file. */
|
|
536
|
+
export function link(src: Path, dst: Path): Promise<void>
|
|
537
|
+
|
|
538
|
+
export function link(src: Path, dst: Path, cb: Callback): void
|
|
539
|
+
|
|
540
|
+
export function linkSync(src: Path, dst: Path): void
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Options for `fs.mkdir()`. `mode` defaults to `0o777`. `recursive`, if `true`, creates any missing
|
|
544
|
+
* parent directories and does not error if `filepath` already exists as a directory.
|
|
545
|
+
*/
|
|
546
|
+
export interface MkdirOptions {
|
|
547
|
+
mode?: number
|
|
548
|
+
recursive?: boolean
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Create a directory at `filepath`.
|
|
553
|
+
* @param opts - `mode` defaults to `0o777`. `recursive`, if `true`, creates missing parent
|
|
554
|
+
* directories and does not error if `filepath` already exists as a directory.
|
|
555
|
+
* @throws {ENOENT} a parent directory in `filepath` does not exist and `opts.recursive` is not set.
|
|
556
|
+
* @throws {EEXIST} `filepath` already exists; when `opts.recursive` is set this is only thrown if
|
|
557
|
+
* the existing path is not itself a directory.
|
|
558
|
+
*/
|
|
559
|
+
export function mkdir(filepath: Path, opts?: MkdirOptions): Promise<void>
|
|
560
|
+
|
|
561
|
+
export function mkdir(filepath: Path, mode: number): Promise<void>
|
|
562
|
+
|
|
563
|
+
export function mkdir(filepath: Path, opts: MkdirOptions, cb: Callback): void
|
|
564
|
+
|
|
565
|
+
export function mkdir(filepath: Path, mode: number, cb: Callback): void
|
|
566
|
+
|
|
567
|
+
export function mkdir(filepath: Path, cb: Callback): void
|
|
568
|
+
|
|
569
|
+
export function mkdirSync(filepath: Path, opts?: MkdirOptions): void
|
|
570
|
+
|
|
571
|
+
export function mkdirSync(filepath: Path, mode: number): void
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Create a unique temporary directory.
|
|
575
|
+
* @param prefix - The literal suffix `'XXXXXX'` is appended to `prefix` and replaced with random
|
|
576
|
+
* characters to form the directory name.
|
|
577
|
+
* @returns The path of the newly created directory, including its randomly generated suffix.
|
|
578
|
+
*/
|
|
579
|
+
export function mkdtemp(prefix: Path): Promise<string>
|
|
580
|
+
|
|
581
|
+
export function mkdtemp(prefix: Path, cb: Callback<[path: string | null]>): void
|
|
582
|
+
|
|
583
|
+
export function mkdtempSync(prefix: Path): string
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Open a file, returning a file descriptor. `flags` defaults to `'r'` and `mode` defaults to
|
|
587
|
+
* `0o666`. `flags` may be a string such as `'r'`, `'w'`, `'a'`, `'r+'`, etc., or a numeric
|
|
588
|
+
* combination of `fs.constants` flags.
|
|
589
|
+
* @param flags - Defaults to `'r'`. Selects read/write mode and whether the file is created,
|
|
590
|
+
* truncated, or appended.
|
|
591
|
+
* @param mode - Defaults to `0o666`. Applied only when `flags` creates a new file.
|
|
592
|
+
* @returns The file descriptor for the newly opened file.
|
|
593
|
+
* @throws {ENOENT} `filepath` does not exist and `flags` does not include a creating variant (for
|
|
594
|
+
* example the default `'r'`).
|
|
595
|
+
* @throws {EEXIST} `flags` is an exclusive variant (`'wx'`, `'ax'`, `'xw'`, `'xa'`, etc.) and
|
|
596
|
+
* `filepath` already exists.
|
|
597
|
+
*/
|
|
598
|
+
export function open(filepath: Path, flags?: Flag | number, mode?: string | number): Promise<number>
|
|
599
|
+
|
|
600
|
+
export function open(
|
|
601
|
+
filepath: Path,
|
|
602
|
+
flags: Flag | number,
|
|
603
|
+
mode: string | number,
|
|
604
|
+
cb: Callback<[fd: number]>
|
|
605
|
+
): void
|
|
606
|
+
|
|
607
|
+
export function open(filepath: Path, flags: Flag | number, cb: Callback<[fd: number]>): void
|
|
608
|
+
|
|
609
|
+
export function open(filepath: Path, cb: Callback<[fd: number]>): void
|
|
610
|
+
|
|
611
|
+
export function openSync(filepath: Path, flags?: Flag | number, mode?: string | number): number
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Options for `fs.opendir()`. `bufferSize` defaults to `32` and sets how many directory entries are
|
|
615
|
+
* buffered internally per read.
|
|
616
|
+
*/
|
|
617
|
+
export interface OpendirOptions {
|
|
618
|
+
encoding?: BufferEncoding | 'buffer'
|
|
619
|
+
bufferSize?: number
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/** Open a directory for iteration. Returns a `Dir` object. */
|
|
623
|
+
export function opendir(
|
|
624
|
+
filepath: Path,
|
|
625
|
+
opts: OpendirOptions & { encoding?: BufferEncoding }
|
|
626
|
+
): Promise<Dir<string>>
|
|
627
|
+
|
|
628
|
+
export function opendir(
|
|
629
|
+
filepath: Path,
|
|
630
|
+
opts: OpendirOptions & { encoding: 'buffer' }
|
|
631
|
+
): Promise<Dir<Buffer>>
|
|
632
|
+
|
|
633
|
+
export function opendir(filepath: Path, opts: OpendirOptions): Promise<Dir>
|
|
634
|
+
|
|
635
|
+
export function opendir(filepath: Path, encoding: BufferEncoding): Promise<Dir<string>>
|
|
636
|
+
|
|
637
|
+
export function opendir(filepath: Path, encoding: 'buffer'): Promise<Dir<Buffer>>
|
|
638
|
+
|
|
639
|
+
export function opendir(filepath: Path, encoding: BufferEncoding | 'buffer'): Promise<Dir>
|
|
640
|
+
|
|
641
|
+
export function opendir(filepath: Path): Promise<Dir<string>>
|
|
642
|
+
|
|
643
|
+
export function opendir(
|
|
644
|
+
filepath: Path,
|
|
645
|
+
opts: OpendirOptions & { encoding?: BufferEncoding },
|
|
646
|
+
cb: Callback<[dir: Dir<string> | null]>
|
|
647
|
+
): void
|
|
648
|
+
|
|
649
|
+
export function opendir(
|
|
650
|
+
filepath: Path,
|
|
651
|
+
opts: OpendirOptions & { encoding: 'buffer' },
|
|
652
|
+
cb: Callback<[dir: Dir<Buffer> | null]>
|
|
653
|
+
): void
|
|
654
|
+
|
|
655
|
+
export function opendir(filepath: Path, opts: OpendirOptions, cb: Callback<[dir: Dir | null]>): void
|
|
656
|
+
|
|
657
|
+
export function opendir(
|
|
658
|
+
filepath: Path,
|
|
659
|
+
encoding: BufferEncoding,
|
|
660
|
+
cb: Callback<[dir: Dir<string> | null]>
|
|
661
|
+
): void
|
|
662
|
+
|
|
663
|
+
export function opendir(
|
|
664
|
+
filepath: Path,
|
|
665
|
+
encoding: 'buffer',
|
|
666
|
+
cb: Callback<[dir: Dir<Buffer> | null]>
|
|
667
|
+
): void
|
|
668
|
+
|
|
669
|
+
export function opendir(
|
|
670
|
+
filepath: Path,
|
|
671
|
+
encoding: BufferEncoding | 'buffer',
|
|
672
|
+
cb: Callback<[dir: Dir | null]>
|
|
673
|
+
): void
|
|
674
|
+
|
|
675
|
+
export function opendir(filepath: Path, cb: Callback<[dir: Dir<string> | null]>): void
|
|
676
|
+
|
|
677
|
+
export function opendirSync(
|
|
678
|
+
filepath: Path,
|
|
679
|
+
opts: OpendirOptions & { encoding?: BufferEncoding }
|
|
680
|
+
): Dir<string>
|
|
681
|
+
|
|
682
|
+
export function opendirSync(
|
|
683
|
+
filepath: Path,
|
|
684
|
+
opts: OpendirOptions & { encoding: 'buffer' }
|
|
685
|
+
): Dir<Buffer>
|
|
686
|
+
|
|
687
|
+
export function opendirSync(filepath: Path, opts: OpendirOptions): Dir
|
|
688
|
+
|
|
689
|
+
export function opendirSync(filepath: Path, encoding: BufferEncoding): Dir<string>
|
|
690
|
+
|
|
691
|
+
export function opendirSync(filepath: Path, encoding: 'buffer'): Dir<Buffer>
|
|
692
|
+
|
|
693
|
+
export function opendirSync(filepath: Path, encoding: BufferEncoding | 'buffer'): Dir
|
|
694
|
+
|
|
695
|
+
export function opendirSync(filepath: Path): Dir<string>
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Read from a file descriptor into `buffer`. `offset` defaults to `0`, `len` defaults to
|
|
699
|
+
* `buffer.byteLength - offset`, and `pos` defaults to `-1` (current position). Returns the number
|
|
700
|
+
* of bytes read.
|
|
701
|
+
* @param fd - The file descriptor to read from, as returned by `fs.open()`.
|
|
702
|
+
* @param offset - The offset within `buffer` to start writing to. Defaults to `0`.
|
|
703
|
+
* @param len - The number of bytes to read. Defaults to `buffer.byteLength - offset`.
|
|
704
|
+
* @param pos - The position in the file to read from. Defaults to `-1`, which reads from the
|
|
705
|
+
* current file position and advances it.
|
|
706
|
+
* @returns The number of bytes actually read, which may be less than `len` (`0` at end of file).
|
|
707
|
+
*/
|
|
708
|
+
export function read(
|
|
709
|
+
fd: number,
|
|
710
|
+
buffer: Buffer | ArrayBufferView,
|
|
711
|
+
offset?: number,
|
|
712
|
+
len?: number,
|
|
713
|
+
pos?: number
|
|
714
|
+
): Promise<number>
|
|
715
|
+
|
|
716
|
+
export function read(
|
|
717
|
+
fd: number,
|
|
718
|
+
buffer: Buffer | ArrayBufferView,
|
|
719
|
+
offset: number,
|
|
720
|
+
len: number,
|
|
721
|
+
pos: number,
|
|
722
|
+
cb: Callback<[len: number]>
|
|
723
|
+
): void
|
|
724
|
+
|
|
725
|
+
export function read(
|
|
726
|
+
fd: number,
|
|
727
|
+
buffer: Buffer | ArrayBufferView,
|
|
728
|
+
offset: number,
|
|
729
|
+
len: number,
|
|
730
|
+
cb: Callback<[len: number]>
|
|
731
|
+
): void
|
|
732
|
+
|
|
733
|
+
export function read(
|
|
734
|
+
fd: number,
|
|
735
|
+
buffer: Buffer | ArrayBufferView,
|
|
736
|
+
offset: number,
|
|
737
|
+
cb: Callback<[len: number]>
|
|
738
|
+
): void
|
|
739
|
+
|
|
740
|
+
export function read(
|
|
741
|
+
fd: number,
|
|
742
|
+
buffer: Buffer | ArrayBufferView,
|
|
743
|
+
cb: Callback<[len: number]>
|
|
744
|
+
): void
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Read the next entry from the directory.
|
|
748
|
+
* @returns The next `Dirent` for the directory, or `null` once every entry has been read.
|
|
749
|
+
*/
|
|
750
|
+
export function readSync(
|
|
751
|
+
fd: number,
|
|
752
|
+
buffer: Buffer | ArrayBufferView,
|
|
753
|
+
offset?: number,
|
|
754
|
+
len?: number,
|
|
755
|
+
pos?: number
|
|
756
|
+
): number
|
|
757
|
+
|
|
758
|
+
export interface ReadFileOptions {
|
|
759
|
+
encoding?: BufferEncoding | 'buffer'
|
|
760
|
+
flag?: Flag
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Read the entire contents of a file. Returns a `Buffer` by default, or a string if an `encoding`
|
|
765
|
+
* is specified.
|
|
766
|
+
* @param opts - `encoding` defaults to `'buffer'` (returning a `Buffer` rather than a string);
|
|
767
|
+
* `flag` defaults to `'r'`.
|
|
768
|
+
*/
|
|
769
|
+
export function readFile(
|
|
770
|
+
filepath: Path,
|
|
771
|
+
opts: ReadFileOptions & { encoding: BufferEncoding }
|
|
772
|
+
): Promise<string>
|
|
773
|
+
|
|
774
|
+
export function readFile(
|
|
775
|
+
filepath: Path,
|
|
776
|
+
opts: ReadFileOptions & { encoding?: 'buffer' }
|
|
777
|
+
): Promise<Buffer>
|
|
778
|
+
|
|
779
|
+
export function readFile(filepath: Path, opts: ReadFileOptions): Promise<string | Buffer>
|
|
780
|
+
|
|
781
|
+
export function readFile(filepath: Path, encoding: BufferEncoding): Promise<string>
|
|
782
|
+
|
|
783
|
+
export function readFile(filepath: Path, encoding: 'buffer'): Promise<Buffer>
|
|
784
|
+
|
|
785
|
+
export function readFile(
|
|
786
|
+
filepath: Path,
|
|
787
|
+
encoding?: BufferEncoding | 'buffer'
|
|
788
|
+
): Promise<string | Buffer>
|
|
789
|
+
|
|
790
|
+
export function readFile(filepath: Path): Promise<Buffer>
|
|
791
|
+
|
|
792
|
+
export function readFile(
|
|
793
|
+
filepath: Path,
|
|
794
|
+
opts: ReadFileOptions & { encoding: BufferEncoding },
|
|
795
|
+
cb: Callback<[buffer?: string]>
|
|
796
|
+
): void
|
|
797
|
+
|
|
798
|
+
export function readFile(
|
|
799
|
+
filepath: Path,
|
|
800
|
+
opts: ReadFileOptions & { encoding?: 'buffer' },
|
|
801
|
+
cb: Callback<[buffer?: Buffer]>
|
|
802
|
+
): void
|
|
803
|
+
|
|
804
|
+
export function readFile(
|
|
805
|
+
filepath: Path,
|
|
806
|
+
opts: ReadFileOptions,
|
|
807
|
+
cb: Callback<[buffer?: string | Buffer]>
|
|
808
|
+
): void
|
|
809
|
+
|
|
810
|
+
export function readFile(
|
|
811
|
+
filepath: Path,
|
|
812
|
+
encoding: BufferEncoding,
|
|
813
|
+
cb: Callback<[buffer?: string]>
|
|
814
|
+
): void
|
|
815
|
+
|
|
816
|
+
export function readFile(filepath: Path, encoding: 'buffer', cb: Callback<[buffer?: Buffer]>): void
|
|
817
|
+
|
|
818
|
+
export function readFile(
|
|
819
|
+
filepath: Path,
|
|
820
|
+
encoding: BufferEncoding | 'buffer',
|
|
821
|
+
cb: Callback<[buffer?: string | Buffer]>
|
|
822
|
+
): void
|
|
823
|
+
|
|
824
|
+
export function readFile(filepath: Path, cb: Callback<[buffer?: Buffer]>): void
|
|
825
|
+
|
|
826
|
+
export function readFileSync(
|
|
827
|
+
filepath: Path,
|
|
828
|
+
opts: ReadFileOptions & { encoding: BufferEncoding }
|
|
829
|
+
): string
|
|
830
|
+
|
|
831
|
+
export function readFileSync(
|
|
832
|
+
filepath: Path,
|
|
833
|
+
opts: ReadFileOptions & { encoding?: 'buffer' }
|
|
834
|
+
): Buffer
|
|
835
|
+
|
|
836
|
+
export function readFileSync(filepath: Path, opts: ReadFileOptions): string | Buffer
|
|
837
|
+
|
|
838
|
+
export function readFileSync(filepath: Path, encoding: BufferEncoding): string
|
|
839
|
+
|
|
840
|
+
export function readFileSync(filepath: Path, encoding: 'buffer'): Buffer
|
|
841
|
+
|
|
842
|
+
export function readFileSync(filepath: Path, encoding?: BufferEncoding | 'buffer'): string | Buffer
|
|
843
|
+
|
|
844
|
+
export function readFileSync(filepath: Path): Buffer
|
|
845
|
+
|
|
846
|
+
export interface ReaddirOptions extends OpendirOptions {
|
|
847
|
+
withFileTypes?: boolean
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Read the contents of a directory. Returns an array of filenames or, if `withFileTypes` is `true`,
|
|
851
|
+
* an array of `Dirent` objects.
|
|
852
|
+
* @param opts - `withFileTypes`, if `true`, returns `Dirent` objects instead of plain filename
|
|
853
|
+
* strings.
|
|
854
|
+
*/
|
|
855
|
+
export function readdir(
|
|
856
|
+
filepath: Path,
|
|
857
|
+
opts: ReaddirOptions & { encoding?: BufferEncoding }
|
|
858
|
+
): Promise<Dirent<string>[] | string[]>
|
|
859
|
+
|
|
860
|
+
export function readdir(
|
|
861
|
+
filepath: Path,
|
|
862
|
+
opts: ReaddirOptions & { encoding?: BufferEncoding; withFileTypes: true }
|
|
863
|
+
): Promise<Dirent<string>[]>
|
|
864
|
+
|
|
865
|
+
export function readdir(
|
|
866
|
+
filepath: Path,
|
|
867
|
+
opts: ReaddirOptions & { encoding?: BufferEncoding; withFileTypes?: false }
|
|
868
|
+
): Promise<string[]>
|
|
869
|
+
|
|
870
|
+
export function readdir(
|
|
871
|
+
filepath: Path,
|
|
872
|
+
opts: ReaddirOptions & { encoding: 'buffer' }
|
|
873
|
+
): Promise<Dirent<Buffer>[] | Buffer[]>
|
|
874
|
+
|
|
875
|
+
export function readdir(
|
|
876
|
+
filepath: Path,
|
|
877
|
+
opts: ReaddirOptions & { encoding: 'buffer'; withFileTypes: true }
|
|
878
|
+
): Promise<Dirent<Buffer>[]>
|
|
879
|
+
|
|
880
|
+
export function readdir(
|
|
881
|
+
filepath: Path,
|
|
882
|
+
opts: ReaddirOptions & { encoding: 'buffer'; withFileTypes?: false }
|
|
883
|
+
): Promise<Buffer[]>
|
|
884
|
+
|
|
885
|
+
export function readdir(
|
|
886
|
+
filepath: Path,
|
|
887
|
+
opts: ReaddirOptions & { withFileTypes: true }
|
|
888
|
+
): Promise<Dirent<string | Buffer>[]>
|
|
889
|
+
|
|
890
|
+
export function readdir(
|
|
891
|
+
filepath: Path,
|
|
892
|
+
opts: ReaddirOptions & { withFileTypes?: false }
|
|
893
|
+
): Promise<string[] | Buffer[]>
|
|
894
|
+
|
|
895
|
+
export function readdir(
|
|
896
|
+
filepath: Path,
|
|
897
|
+
opts: ReaddirOptions
|
|
898
|
+
): Promise<Dirent[] | string[] | Buffer[]>
|
|
899
|
+
|
|
900
|
+
export function readdir(filepath: Path, encoding: BufferEncoding): Promise<string[]>
|
|
901
|
+
|
|
902
|
+
export function readdir(filepath: Path, encoding: 'buffer'): Promise<Buffer[]>
|
|
903
|
+
|
|
904
|
+
export function readdir(
|
|
905
|
+
filepath: Path,
|
|
906
|
+
encoding: BufferEncoding | 'buffer'
|
|
907
|
+
): Promise<string[] | Buffer[]>
|
|
908
|
+
|
|
909
|
+
export function readdir(filepath: Path): Promise<string[]>
|
|
910
|
+
|
|
911
|
+
export function readdir(
|
|
912
|
+
filepath: Path,
|
|
913
|
+
opts: ReaddirOptions & { encoding?: BufferEncoding },
|
|
914
|
+
cb: Callback<[entries: Dirent<string>[] | string[] | null]>
|
|
915
|
+
): void
|
|
916
|
+
|
|
917
|
+
export function readdir(
|
|
918
|
+
filepath: Path,
|
|
919
|
+
opts: ReaddirOptions & { encoding?: BufferEncoding; withFileTypes: true },
|
|
920
|
+
cb: Callback<[entries: Dirent<string>[] | null]>
|
|
921
|
+
): void
|
|
922
|
+
|
|
923
|
+
export function readdir(
|
|
924
|
+
filepath: Path,
|
|
925
|
+
opts: ReaddirOptions & { encoding?: BufferEncoding; withFileTypes?: false },
|
|
926
|
+
cb: Callback<[entries: string[] | null]>
|
|
927
|
+
): void
|
|
928
|
+
|
|
929
|
+
export function readdir(
|
|
930
|
+
filepath: Path,
|
|
931
|
+
opts: ReaddirOptions & { encoding: 'buffer' },
|
|
932
|
+
cb: Callback<[entries: Dirent<Buffer>[] | Buffer[] | null]>
|
|
933
|
+
): void
|
|
934
|
+
|
|
935
|
+
export function readdir(
|
|
936
|
+
filepath: Path,
|
|
937
|
+
opts: ReaddirOptions & { encoding: 'buffer'; withFileTypes: true },
|
|
938
|
+
cb: Callback<[entries: Dirent<Buffer>[] | null]>
|
|
939
|
+
): void
|
|
940
|
+
|
|
941
|
+
export function readdir(
|
|
942
|
+
filepath: Path,
|
|
943
|
+
opts: ReaddirOptions & { encoding: 'buffer'; withFileTypes?: false },
|
|
944
|
+
cb: Callback<[entries: Buffer[] | null]>
|
|
945
|
+
): void
|
|
946
|
+
|
|
947
|
+
export function readdir(
|
|
948
|
+
filepath: Path,
|
|
949
|
+
opts: ReaddirOptions & { withFileTypes: true },
|
|
950
|
+
cb: Callback<[entries: Dirent<string | Buffer>[] | null]>
|
|
951
|
+
): void
|
|
952
|
+
|
|
953
|
+
export function readdir(
|
|
954
|
+
filepath: Path,
|
|
955
|
+
opts: ReaddirOptions & { withFileTypes?: false },
|
|
956
|
+
cb: Callback<[entries: string[] | Buffer[] | null]>
|
|
957
|
+
): void
|
|
958
|
+
|
|
959
|
+
export function readdir(
|
|
960
|
+
filepath: Path,
|
|
961
|
+
opts: ReaddirOptions,
|
|
962
|
+
cb: Callback<[entries: Dirent[] | string[] | Buffer[] | null]>
|
|
963
|
+
): void
|
|
964
|
+
|
|
965
|
+
export function readdir(
|
|
966
|
+
filepath: Path,
|
|
967
|
+
encoding: BufferEncoding,
|
|
968
|
+
cb: Callback<[entries: string[] | null]>
|
|
969
|
+
): void
|
|
970
|
+
|
|
971
|
+
export function readdir(
|
|
972
|
+
filepath: Path,
|
|
973
|
+
encoding: 'buffer',
|
|
974
|
+
cb: Callback<[entries: Buffer[] | null]>
|
|
975
|
+
): void
|
|
976
|
+
|
|
977
|
+
export function readdir(
|
|
978
|
+
filepath: Path,
|
|
979
|
+
encoding: BufferEncoding | 'buffer',
|
|
980
|
+
cb: Callback<[entries: string[] | Buffer[] | null]>
|
|
981
|
+
): void
|
|
982
|
+
|
|
983
|
+
export function readdir(filepath: Path, cb: Callback<[entries: string[] | null]>): void
|
|
984
|
+
|
|
985
|
+
export function readdirSync(
|
|
986
|
+
filepath: Path,
|
|
987
|
+
opts: ReaddirOptions & { encoding?: BufferEncoding }
|
|
988
|
+
): Dirent<string>[] | string[]
|
|
989
|
+
|
|
990
|
+
export function readdirSync(
|
|
991
|
+
filepath: Path,
|
|
992
|
+
opts: ReaddirOptions & { encoding?: BufferEncoding; withFileTypes: true }
|
|
993
|
+
): Dirent<string>[]
|
|
994
|
+
|
|
995
|
+
export function readdirSync(
|
|
996
|
+
filepath: Path,
|
|
997
|
+
opts: ReaddirOptions & { encoding?: BufferEncoding; withFileTypes?: false }
|
|
998
|
+
): string[]
|
|
999
|
+
|
|
1000
|
+
export function readdirSync(
|
|
1001
|
+
filepath: Path,
|
|
1002
|
+
opts: ReaddirOptions & { encoding: 'buffer' }
|
|
1003
|
+
): Dirent<Buffer>[] | Buffer[]
|
|
1004
|
+
|
|
1005
|
+
export function readdirSync(
|
|
1006
|
+
filepath: Path,
|
|
1007
|
+
opts: ReaddirOptions & { encoding: 'buffer'; withFileTypes: true }
|
|
1008
|
+
): Dirent<Buffer>[]
|
|
1009
|
+
|
|
1010
|
+
export function readdirSync(
|
|
1011
|
+
filepath: Path,
|
|
1012
|
+
opts: ReaddirOptions & { encoding: 'buffer'; withFileTypes?: false }
|
|
1013
|
+
): Buffer[]
|
|
1014
|
+
|
|
1015
|
+
export function readdirSync(
|
|
1016
|
+
filepath: Path,
|
|
1017
|
+
opts: ReaddirOptions & { withFileTypes: true }
|
|
1018
|
+
): Dirent<string | Buffer>[]
|
|
1019
|
+
|
|
1020
|
+
export function readdirSync(
|
|
1021
|
+
filepath: Path,
|
|
1022
|
+
opts: ReaddirOptions & { withFileTypes?: false }
|
|
1023
|
+
): string[] | Buffer[]
|
|
1024
|
+
|
|
1025
|
+
export function readdirSync(filepath: Path, opts: ReaddirOptions): Dirent[] | string[] | Buffer[]
|
|
1026
|
+
|
|
1027
|
+
export function readdirSync(filepath: Path, encoding: BufferEncoding): string[]
|
|
1028
|
+
|
|
1029
|
+
export function readdirSync(filepath: Path, encoding: 'buffer'): Buffer[]
|
|
1030
|
+
|
|
1031
|
+
export function readdirSync(
|
|
1032
|
+
filepath: Path,
|
|
1033
|
+
encoding: BufferEncoding | 'buffer'
|
|
1034
|
+
): string[] | Buffer[]
|
|
1035
|
+
|
|
1036
|
+
export function readdirSync(filepath: Path): string[]
|
|
1037
|
+
|
|
1038
|
+
export interface ReadlinkOptions {
|
|
1039
|
+
encoding?: BufferEncoding | 'buffer'
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/** Read the target of a symbolic link. */
|
|
1043
|
+
export function readlink(
|
|
1044
|
+
filepath: Path,
|
|
1045
|
+
opts: ReadlinkOptions & { encoding?: BufferEncoding }
|
|
1046
|
+
): Promise<string>
|
|
1047
|
+
|
|
1048
|
+
export function readlink(
|
|
1049
|
+
filepath: Path,
|
|
1050
|
+
opts: ReadlinkOptions & { encoding: 'buffer' }
|
|
1051
|
+
): Promise<Buffer>
|
|
1052
|
+
|
|
1053
|
+
export function readlink(filepath: Path, opts: ReadlinkOptions): Promise<string | Buffer>
|
|
1054
|
+
|
|
1055
|
+
export function readlink(filepath: Path, encoding: BufferEncoding): Promise<string>
|
|
1056
|
+
|
|
1057
|
+
export function readlink(filepath: Path, encoding: 'buffer'): Promise<Buffer>
|
|
1058
|
+
|
|
1059
|
+
export function readlink(
|
|
1060
|
+
filepath: Path,
|
|
1061
|
+
encoding: BufferEncoding | 'buffer'
|
|
1062
|
+
): Promise<string | Buffer>
|
|
1063
|
+
|
|
1064
|
+
export function readlink(filepath: Path): Promise<string>
|
|
1065
|
+
|
|
1066
|
+
export function readlink(
|
|
1067
|
+
filepath: Path,
|
|
1068
|
+
opts: ReadlinkOptions & { encoding?: BufferEncoding },
|
|
1069
|
+
cb: Callback<[link: string | null]>
|
|
1070
|
+
): void
|
|
1071
|
+
|
|
1072
|
+
export function readlink(
|
|
1073
|
+
filepath: Path,
|
|
1074
|
+
opts: ReadlinkOptions & { encoding: 'buffer' },
|
|
1075
|
+
cb: Callback<[link: Buffer | null]>
|
|
1076
|
+
): void
|
|
1077
|
+
|
|
1078
|
+
export function readlink(
|
|
1079
|
+
filepath: Path,
|
|
1080
|
+
opts: ReadlinkOptions,
|
|
1081
|
+
cb: Callback<[link: string | Buffer | null]>
|
|
1082
|
+
): void
|
|
1083
|
+
|
|
1084
|
+
export function readlink(
|
|
1085
|
+
filepath: Path,
|
|
1086
|
+
encoding: BufferEncoding,
|
|
1087
|
+
cb: Callback<[link: string | null]>
|
|
1088
|
+
): void
|
|
1089
|
+
|
|
1090
|
+
export function readlink(
|
|
1091
|
+
filepath: Path,
|
|
1092
|
+
encoding: 'buffer',
|
|
1093
|
+
cb: Callback<[link: Buffer | null]>
|
|
1094
|
+
): void
|
|
1095
|
+
|
|
1096
|
+
export function readlink(
|
|
1097
|
+
filepath: Path,
|
|
1098
|
+
encoding: BufferEncoding | 'buffer',
|
|
1099
|
+
cb: Callback<[link: string | Buffer | null]>
|
|
1100
|
+
): void
|
|
1101
|
+
|
|
1102
|
+
export function readlink(filepath: Path, cb: Callback<[link: string | null]>): void
|
|
1103
|
+
|
|
1104
|
+
export function readlinkSync(
|
|
1105
|
+
filepath: Path,
|
|
1106
|
+
opts: ReadlinkOptions & { encoding?: BufferEncoding }
|
|
1107
|
+
): string
|
|
1108
|
+
|
|
1109
|
+
export function readlinkSync(filepath: Path, opts: ReadlinkOptions & { encoding: 'buffer' }): Buffer
|
|
1110
|
+
|
|
1111
|
+
export function readlinkSync(filepath: Path, opts: ReadlinkOptions): string | Buffer
|
|
1112
|
+
|
|
1113
|
+
export function readlinkSync(filepath: Path, encoding: BufferEncoding): string
|
|
1114
|
+
|
|
1115
|
+
export function readlinkSync(filepath: Path, encoding: 'buffer'): Buffer
|
|
1116
|
+
|
|
1117
|
+
export function readlinkSync(filepath: Path, encoding: BufferEncoding | 'buffer'): string | Buffer
|
|
1118
|
+
|
|
1119
|
+
export function readlinkSync(filepath: Path): string
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Read from a file descriptor into an array of `buffers`. `pos` defaults to `-1`.
|
|
1123
|
+
* @returns The number of bytes actually read across all buffers.
|
|
1124
|
+
*/
|
|
1125
|
+
export function readv(fd: number, buffers: ArrayBufferView[], position?: number): Promise<number>
|
|
1126
|
+
|
|
1127
|
+
export function readv(
|
|
1128
|
+
fd: number,
|
|
1129
|
+
buffers: ArrayBufferView[],
|
|
1130
|
+
position: number,
|
|
1131
|
+
cb: Callback<[len: number]>
|
|
1132
|
+
): void
|
|
1133
|
+
|
|
1134
|
+
export function readv(fd: number, buffers: ArrayBufferView[], cb: Callback<[len: number]>): void
|
|
1135
|
+
|
|
1136
|
+
export function readvSync(fd: number, buffers: ArrayBufferView[], position?: number): number
|
|
1137
|
+
|
|
1138
|
+
export interface RealpathOptions {
|
|
1139
|
+
encoding?: BufferEncoding | 'buffer'
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
/** Resolve the real path of `filepath`, expanding all symbolic links. */
|
|
1143
|
+
export function realpath(
|
|
1144
|
+
filepath: Path,
|
|
1145
|
+
opts: RealpathOptions & { encoding?: BufferEncoding }
|
|
1146
|
+
): Promise<string>
|
|
1147
|
+
|
|
1148
|
+
export function realpath(
|
|
1149
|
+
filepath: Path,
|
|
1150
|
+
opts: RealpathOptions & { encoding: 'buffer' }
|
|
1151
|
+
): Promise<Buffer>
|
|
1152
|
+
|
|
1153
|
+
export function realpath(filepath: Path, opts: RealpathOptions): Promise<string | Buffer>
|
|
1154
|
+
|
|
1155
|
+
export function realpath(filepath: Path, encoding: BufferEncoding): Promise<string>
|
|
1156
|
+
|
|
1157
|
+
export function realpath(filepath: Path, encoding: 'buffer'): Promise<Buffer>
|
|
1158
|
+
|
|
1159
|
+
export function realpath(
|
|
1160
|
+
filepath: Path,
|
|
1161
|
+
encoding: BufferEncoding | 'buffer'
|
|
1162
|
+
): Promise<string | Buffer>
|
|
1163
|
+
|
|
1164
|
+
export function realpath(filepath: Path): Promise<string>
|
|
1165
|
+
|
|
1166
|
+
export function realpath(
|
|
1167
|
+
filepath: Path,
|
|
1168
|
+
opts: RealpathOptions & { encoding?: BufferEncoding },
|
|
1169
|
+
cb: Callback<[path: string | null]>
|
|
1170
|
+
): void
|
|
1171
|
+
|
|
1172
|
+
export function realpath(
|
|
1173
|
+
filepath: Path,
|
|
1174
|
+
opts: RealpathOptions & { encoding: 'buffer' },
|
|
1175
|
+
cb: Callback<[path: Buffer | null]>
|
|
1176
|
+
): void
|
|
1177
|
+
|
|
1178
|
+
export function realpath(
|
|
1179
|
+
filepath: Path,
|
|
1180
|
+
opts: RealpathOptions,
|
|
1181
|
+
cb: Callback<[path: string | Buffer | null]>
|
|
1182
|
+
): void
|
|
1183
|
+
|
|
1184
|
+
export function realpath(
|
|
1185
|
+
filepath: Path,
|
|
1186
|
+
encoding: BufferEncoding,
|
|
1187
|
+
cb: Callback<[path: string | null]>
|
|
1188
|
+
): void
|
|
1189
|
+
|
|
1190
|
+
export function realpath(
|
|
1191
|
+
filepath: Path,
|
|
1192
|
+
encoding: 'buffer',
|
|
1193
|
+
cb: Callback<[path: Buffer | null]>
|
|
1194
|
+
): void
|
|
1195
|
+
|
|
1196
|
+
export function realpath(
|
|
1197
|
+
filepath: Path,
|
|
1198
|
+
encoding: BufferEncoding | 'buffer',
|
|
1199
|
+
cb: Callback<[path: string | Buffer | null]>
|
|
1200
|
+
): void
|
|
1201
|
+
|
|
1202
|
+
export function realpath(filepath: Path, cb: Callback<[path: string | null]>): void
|
|
1203
|
+
|
|
1204
|
+
export function realpathSync(
|
|
1205
|
+
filepath: Path,
|
|
1206
|
+
opts: RealpathOptions & { encoding?: BufferEncoding }
|
|
1207
|
+
): string
|
|
1208
|
+
|
|
1209
|
+
export function realpathSync(filepath: Path, opts: RealpathOptions & { encoding: 'buffer' }): Buffer
|
|
1210
|
+
|
|
1211
|
+
export function realpathSync(filepath: Path, opts: RealpathOptions): string | Buffer
|
|
1212
|
+
|
|
1213
|
+
export function realpathSync(filepath: Path, encoding: BufferEncoding): string
|
|
1214
|
+
|
|
1215
|
+
export function realpathSync(filepath: Path, encoding: 'buffer'): Buffer
|
|
1216
|
+
|
|
1217
|
+
export function realpathSync(filepath: Path, encoding: BufferEncoding | 'buffer'): string | Buffer
|
|
1218
|
+
|
|
1219
|
+
export function realpathSync(filepath: Path): string
|
|
1220
|
+
|
|
1221
|
+
/** Rename a file from `src` to `dst`. */
|
|
1222
|
+
export function rename(src: Path, dst: Path): Promise<void>
|
|
1223
|
+
|
|
1224
|
+
export function rename(src: Path, dst: Path, cb: Callback): void
|
|
1225
|
+
|
|
1226
|
+
export function renameSync(src: Path, dst: Path): void
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Options for `fs.rm()`. `recursive`, if `true`, removes directories and their contents. `force`,
|
|
1230
|
+
* if `true`, suppresses the error when `filepath` does not exist.
|
|
1231
|
+
*/
|
|
1232
|
+
export interface RmOptions {
|
|
1233
|
+
force?: boolean
|
|
1234
|
+
recursive?: boolean
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Remove a file or directory at `filepath`.
|
|
1239
|
+
* @param opts - `recursive`, if `true`, removes directories and their contents; `force`, if `true`,
|
|
1240
|
+
* suppresses the error when `filepath` does not exist.
|
|
1241
|
+
* @throws {EISDIR} `filepath` is a directory and `opts.recursive` is not set.
|
|
1242
|
+
*/
|
|
1243
|
+
export function rm(filepath: Path, opts?: RmOptions): Promise<void>
|
|
1244
|
+
|
|
1245
|
+
export function rm(filepath: Path, opts: RmOptions, cb: Callback): void
|
|
1246
|
+
|
|
1247
|
+
export function rm(filepath: Path, cb: Callback): void
|
|
1248
|
+
|
|
1249
|
+
export function rmSync(filepath: Path, opts?: RmOptions): void
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* Remove an empty directory.
|
|
1253
|
+
* @throws {ENOTEMPTY} the directory is not empty.
|
|
1254
|
+
*/
|
|
1255
|
+
export function rmdir(filepath: Path): Promise<void>
|
|
1256
|
+
|
|
1257
|
+
export function rmdir(filepath: Path, cb: Callback): void
|
|
1258
|
+
|
|
1259
|
+
export function rmdirSync(filepath: Path): void
|
|
1260
|
+
|
|
1261
|
+
/** Get the status of a file. Returns a `Stats` object. */
|
|
1262
|
+
export function stat(filepath: Path): Promise<Stats>
|
|
1263
|
+
|
|
1264
|
+
export function stat(filepath: Path, cb: Callback<[stats: Stats | null]>): void
|
|
1265
|
+
|
|
1266
|
+
export function statSync(filepath: Path): Stats
|
|
1267
|
+
|
|
1268
|
+
/** Get filesystem statistics. Returns a `StatFs` object. */
|
|
1269
|
+
export function statfs(filepath: Path): Promise<StatFs>
|
|
1270
|
+
|
|
1271
|
+
export function statfs(filepath: Path, cb: Callback<[stats: StatFs | null]>): void
|
|
1272
|
+
|
|
1273
|
+
export function statfsSync(filepath: Path): StatFs
|
|
1274
|
+
|
|
1275
|
+
/**
|
|
1276
|
+
* Create a symbolic link at `filepath` pointing to `target`. `type` may be `'file'`, `'dir'`, or
|
|
1277
|
+
* `'junction'` (Windows only) or a numeric flag. On Windows, if `type` is not provided, it is
|
|
1278
|
+
* inferred from the target.
|
|
1279
|
+
*/
|
|
1280
|
+
export function symlink(target: Path, filepath: Path, type?: string | number): Promise<void>
|
|
1281
|
+
|
|
1282
|
+
export function symlink(target: Path, filepath: Path, type: string | number, cb: Callback): void
|
|
1283
|
+
|
|
1284
|
+
export function symlink(target: Path, filepath: Path, cb: Callback): void
|
|
1285
|
+
|
|
1286
|
+
export function symlinkSync(target: Path, filepath: Path, type?: string | number): void
|
|
1287
|
+
|
|
1288
|
+
/** Truncate the file at `filename` to `len` bytes. `len` defaults to `0`. */
|
|
1289
|
+
export function truncate(filepath: Path, len?: number): Promise<void>
|
|
1290
|
+
|
|
1291
|
+
export function truncate(filepath: Path, len: number, cb: Callback): void
|
|
1292
|
+
|
|
1293
|
+
export function truncate(filepath: Path, cb: Callback): void
|
|
1294
|
+
|
|
1295
|
+
export function truncateSync(filepath: Path, len?: number): void
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Remove a file.
|
|
1299
|
+
* @param filepath - The path of the file to remove.
|
|
1300
|
+
*/
|
|
1301
|
+
export function unlink(filepath: Path): Promise<void>
|
|
1302
|
+
|
|
1303
|
+
export function unlink(filepath: Path, cb: Callback): void
|
|
1304
|
+
|
|
1305
|
+
export function unlinkSync(filepath: Path): void
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Watch a file or directory for changes. Returns a `Watcher` object. The `callback`, if provided,
|
|
1309
|
+
* is called with `(eventType, filename)` on each change.
|
|
1310
|
+
* @param opts - `persistent` defaults to `true`; `recursive` (default `false`) also watches
|
|
1311
|
+
* subdirectories; `encoding` defaults to `'utf8'`.
|
|
1312
|
+
* @param cb - Called with `(eventType, filename)` on each change; equivalent to listening for the
|
|
1313
|
+
* `Watcher`'s `'change'` event.
|
|
1314
|
+
*/
|
|
1315
|
+
export function watch(
|
|
1316
|
+
filepath: Path,
|
|
1317
|
+
opts: WatcherOptions & { encoding?: BufferEncoding },
|
|
1318
|
+
cb: (eventType: WatcherEventType, filename: string) => void
|
|
1319
|
+
): Watcher<string>
|
|
1320
|
+
|
|
1321
|
+
export function watch(
|
|
1322
|
+
filepath: Path,
|
|
1323
|
+
opts: WatcherOptions & { encoding: 'buffer' },
|
|
1324
|
+
cb: (eventType: WatcherEventType, filename: Buffer) => void
|
|
1325
|
+
): Watcher<Buffer>
|
|
1326
|
+
|
|
1327
|
+
export function watch(
|
|
1328
|
+
filepath: Path,
|
|
1329
|
+
opts: WatcherOptions,
|
|
1330
|
+
cb: (eventType: WatcherEventType, filename: string | Buffer) => void
|
|
1331
|
+
): Watcher
|
|
1332
|
+
|
|
1333
|
+
export function watch(
|
|
1334
|
+
filepath: Path,
|
|
1335
|
+
encoding: BufferEncoding,
|
|
1336
|
+
cb: (eventType: WatcherEventType, filename: string) => void
|
|
1337
|
+
): Watcher<string>
|
|
1338
|
+
|
|
1339
|
+
export function watch(
|
|
1340
|
+
filepath: Path,
|
|
1341
|
+
encoding: 'buffer',
|
|
1342
|
+
cb: (eventType: WatcherEventType, filename: Buffer) => void
|
|
1343
|
+
): Watcher<Buffer>
|
|
1344
|
+
|
|
1345
|
+
export function watch(
|
|
1346
|
+
filepath: Path,
|
|
1347
|
+
encoding: BufferEncoding | 'buffer',
|
|
1348
|
+
cb: (eventType: WatcherEventType, filename: string | Buffer) => void
|
|
1349
|
+
): Watcher
|
|
1350
|
+
|
|
1351
|
+
export function watch(
|
|
1352
|
+
filepath: Path,
|
|
1353
|
+
cb: (eventType: WatcherEventType, filename: string) => void
|
|
1354
|
+
): Watcher<string>
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* Write `data` to a file descriptor. When `data` is a string, the signature is
|
|
1358
|
+
* `fs.write(fd, data[, pos[, encoding]])` where `encoding` defaults to `'utf8'`. Returns the number
|
|
1359
|
+
* of bytes written.
|
|
1360
|
+
* @param fd - The file descriptor to write to, as returned by `fs.open()`.
|
|
1361
|
+
* @param data - The bytes to write. May also be a string, in which case the signature becomes
|
|
1362
|
+
* `fs.write(fd, data[, pos[, encoding]])`.
|
|
1363
|
+
* @param offset - The offset within `data` to start writing from. Defaults to `0`.
|
|
1364
|
+
* @param len - The number of bytes to write. Defaults to `data.byteLength - offset`.
|
|
1365
|
+
* @param pos - The position in the file to write to. Defaults to `-1`, which writes at the current
|
|
1366
|
+
* file position and advances it.
|
|
1367
|
+
* @returns The number of bytes actually written, which may be less than `data`'s length.
|
|
1368
|
+
*/
|
|
1369
|
+
export function write(
|
|
1370
|
+
fd: number,
|
|
1371
|
+
data: Buffer | ArrayBufferView,
|
|
1372
|
+
offset?: number,
|
|
1373
|
+
len?: number,
|
|
1374
|
+
pos?: number
|
|
1375
|
+
): Promise<number>
|
|
1376
|
+
|
|
1377
|
+
export function write(
|
|
1378
|
+
fd: number,
|
|
1379
|
+
data: string,
|
|
1380
|
+
pos?: number,
|
|
1381
|
+
encoding?: BufferEncoding
|
|
1382
|
+
): Promise<number>
|
|
1383
|
+
|
|
1384
|
+
export function write(
|
|
1385
|
+
fd: number,
|
|
1386
|
+
data: Buffer | ArrayBufferView,
|
|
1387
|
+
offset: number,
|
|
1388
|
+
len: number,
|
|
1389
|
+
pos: number,
|
|
1390
|
+
cb: Callback<[len: number]>
|
|
1391
|
+
): void
|
|
1392
|
+
|
|
1393
|
+
export function write(
|
|
1394
|
+
fd: number,
|
|
1395
|
+
data: Buffer | ArrayBufferView,
|
|
1396
|
+
offset: number,
|
|
1397
|
+
len: number,
|
|
1398
|
+
cb: Callback<[len: number]>
|
|
1399
|
+
): void
|
|
1400
|
+
|
|
1401
|
+
export function write(
|
|
1402
|
+
fd: number,
|
|
1403
|
+
data: string,
|
|
1404
|
+
pos: number,
|
|
1405
|
+
encoding: BufferEncoding,
|
|
1406
|
+
cb: Callback<[len: number]>
|
|
1407
|
+
): void
|
|
1408
|
+
|
|
1409
|
+
export function write(
|
|
1410
|
+
fd: number,
|
|
1411
|
+
data: Buffer | ArrayBufferView,
|
|
1412
|
+
offset: number,
|
|
1413
|
+
cb: Callback<[len: number]>
|
|
1414
|
+
): void
|
|
1415
|
+
|
|
1416
|
+
export function write(fd: number, data: string, pos: number, cb: Callback<[len: number]>): void
|
|
1417
|
+
|
|
1418
|
+
export function write(fd: number, data: Buffer | ArrayBufferView, cb: Callback<[len: number]>): void
|
|
1419
|
+
|
|
1420
|
+
export function write(fd: number, data: string, cb: Callback<[len: number]>): void
|
|
1421
|
+
|
|
1422
|
+
export function writeSync(
|
|
1423
|
+
fd: number,
|
|
1424
|
+
data: Buffer | ArrayBufferView,
|
|
1425
|
+
offset?: number,
|
|
1426
|
+
len?: number,
|
|
1427
|
+
pos?: number
|
|
1428
|
+
): number
|
|
1429
|
+
|
|
1430
|
+
export function writeSync(fd: number, data: string, pos?: number, encoding?: BufferEncoding): number
|
|
1431
|
+
|
|
1432
|
+
export interface WriteFileOptions {
|
|
1433
|
+
encoding?: BufferEncoding
|
|
1434
|
+
flag?: Flag
|
|
1435
|
+
mode?: number
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* Write `data` to a file, replacing it if it already exists.
|
|
1440
|
+
* @param opts - `flag` defaults to `'w'` (truncating any existing file); `mode` defaults to
|
|
1441
|
+
* `0o666`.
|
|
1442
|
+
*/
|
|
1443
|
+
export function writeFile(
|
|
1444
|
+
filepath: Path,
|
|
1445
|
+
data: string | Buffer | ArrayBufferView,
|
|
1446
|
+
opts?: WriteFileOptions
|
|
1447
|
+
): Promise<void>
|
|
1448
|
+
|
|
1449
|
+
export function writeFile(
|
|
1450
|
+
filepath: Path,
|
|
1451
|
+
data: string | Buffer | ArrayBufferView,
|
|
1452
|
+
encoding: BufferEncoding
|
|
1453
|
+
): Promise<void>
|
|
1454
|
+
|
|
1455
|
+
export function writeFile(
|
|
1456
|
+
filepath: Path,
|
|
1457
|
+
data: string | Buffer | ArrayBufferView,
|
|
1458
|
+
opts: WriteFileOptions,
|
|
1459
|
+
cb: Callback
|
|
1460
|
+
): void
|
|
1461
|
+
|
|
1462
|
+
export function writeFile(
|
|
1463
|
+
filepath: Path,
|
|
1464
|
+
data: string | Buffer | ArrayBufferView,
|
|
1465
|
+
encoding: BufferEncoding,
|
|
1466
|
+
cb: Callback
|
|
1467
|
+
): void
|
|
1468
|
+
|
|
1469
|
+
export function writeFile(
|
|
1470
|
+
filepath: Path,
|
|
1471
|
+
data: string | Buffer | ArrayBufferView,
|
|
1472
|
+
cb: Callback
|
|
1473
|
+
): void
|
|
1474
|
+
|
|
1475
|
+
export function writeFileSync(
|
|
1476
|
+
filepath: Path,
|
|
1477
|
+
data: string | Buffer | ArrayBufferView,
|
|
1478
|
+
opts?: WriteFileOptions
|
|
1479
|
+
): void
|
|
1480
|
+
|
|
1481
|
+
export function writeFileSync(
|
|
1482
|
+
filepath: Path,
|
|
1483
|
+
data: string | Buffer | ArrayBufferView,
|
|
1484
|
+
encoding: BufferEncoding
|
|
1485
|
+
): void
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Write an array of `buffers` to a file descriptor. `pos` defaults to `-1`.
|
|
1489
|
+
* @returns The number of bytes actually written across all buffers.
|
|
1490
|
+
*/
|
|
1491
|
+
export function writev(fd: number, buffers: ArrayBufferView[], pos?: number): Promise<number>
|
|
1492
|
+
|
|
1493
|
+
export function writev(
|
|
1494
|
+
fd: number,
|
|
1495
|
+
buffers: ArrayBufferView[],
|
|
1496
|
+
pos: number,
|
|
1497
|
+
cb: Callback<[len: number]>
|
|
1498
|
+
): void
|
|
1499
|
+
|
|
1500
|
+
export function writev(fd: number, buffers: ArrayBufferView[], cb: Callback<[len: number]>): void
|
|
1501
|
+
|
|
1502
|
+
export function writevSync(fd: number, buffers: ArrayBufferView[], pos?: number): number
|