gsd-pi 2.56.0-dev.b753b00 → 2.57.0-dev.f22a903
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/headless-events.d.ts +2 -0
- package/dist/headless-events.js +3 -0
- package/dist/headless.js +6 -5
- package/dist/resources/extensions/gsd/auto/infra-errors.js +4 -0
- package/dist/resources/extensions/gsd/auto/phases.js +3 -0
- package/dist/resources/extensions/gsd/auto/run-unit.js +6 -0
- package/dist/resources/extensions/gsd/auto/session.js +2 -0
- package/dist/resources/extensions/gsd/auto-artifact-paths.js +6 -0
- package/dist/resources/extensions/gsd/auto-dashboard.js +5 -2
- package/dist/resources/extensions/gsd/auto-dispatch.js +3 -3
- package/dist/resources/extensions/gsd/auto-model-selection.js +11 -3
- package/dist/resources/extensions/gsd/auto-post-unit.js +1 -1
- package/dist/resources/extensions/gsd/auto-start.js +19 -6
- package/dist/resources/extensions/gsd/auto-worktree.js +7 -2
- package/dist/resources/extensions/gsd/bootstrap/db-tools.js +2 -1
- package/dist/resources/extensions/gsd/complexity-classifier.js +1 -0
- package/dist/resources/extensions/gsd/dashboard-overlay.js +2 -0
- package/dist/resources/extensions/gsd/dispatch-guard.js +11 -1
- package/dist/resources/extensions/gsd/docs/preferences-reference.md +4 -2
- package/dist/resources/extensions/gsd/gsd-db.js +8 -1
- package/dist/resources/extensions/gsd/guided-flow.js +17 -16
- package/dist/resources/extensions/gsd/metrics.js +4 -1
- package/dist/resources/extensions/gsd/parallel-orchestrator.js +23 -6
- package/dist/resources/extensions/gsd/preferences-models.js +12 -0
- package/dist/resources/extensions/gsd/preferences.js +29 -15
- package/dist/resources/extensions/gsd/prompts/validate-milestone.md +2 -2
- package/dist/resources/extensions/gsd/roadmap-slices.js +1 -0
- package/dist/resources/extensions/gsd/tools/validate-milestone.js +4 -0
- package/dist/resources/extensions/subagent/agents.js +8 -3
- package/dist/web/standalone/.next/BUILD_ID +1 -1
- package/dist/web/standalone/.next/app-path-routes-manifest.json +19 -19
- package/dist/web/standalone/.next/build-manifest.json +3 -3
- package/dist/web/standalone/.next/prerender-manifest.json +3 -3
- package/dist/web/standalone/.next/react-loadable-manifest.json +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.html +2 -2
- package/dist/web/standalone/.next/server/app/_global-error.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.html +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/api/boot/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/browse-directories/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/session/events/route.js +1 -1
- package/dist/web/standalone/.next/server/app/api/shutdown/route.js +1 -1
- package/dist/web/standalone/.next/server/app/index.html +1 -1
- package/dist/web/standalone/.next/server/app/index.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app-paths-manifest.json +19 -19
- package/dist/web/standalone/.next/server/chunks/2229.js +1 -1
- package/dist/web/standalone/.next/server/middleware-build-manifest.js +1 -1
- package/dist/web/standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/dist/web/standalone/.next/server/pages/404.html +1 -1
- package/dist/web/standalone/.next/server/pages/500.html +2 -2
- package/dist/web/standalone/.next/server/server-reference-manifest.json +1 -1
- package/dist/web/standalone/.next/static/chunks/6502.8b732f67a11b11b4.js +9 -0
- package/dist/web/standalone/.next/static/chunks/{webpack-4332cbd5dd1be584.js → webpack-61d3afac6d0f0ce7.js} +1 -1
- package/package.json +1 -1
- package/packages/daemon/node_modules/@anthropic-ai/sdk/CHANGELOG.md +1677 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/LICENSE +8 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/README.md +674 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +226 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +223 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/api-promise.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/api-promise.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/api-promise.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/api-promise.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/api-promise.mjs +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/bin/cli +53 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/bin/migration-config.json +7 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/client.d.mts +225 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/client.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/client.d.ts +225 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/client.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/client.js +536 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/client.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/client.mjs +531 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/client.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +49 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts +49 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/api-promise.js +76 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/api-promise.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +72 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/error.d.mts +47 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/error.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/error.d.ts +47 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/error.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/error.js +114 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/error.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/error.mjs +98 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/error.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +63 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/pagination.d.ts +63 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/pagination.js +123 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/pagination.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/pagination.mjs +117 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/pagination.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/resource.d.mts +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/resource.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/resource.d.ts +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/resource.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/resource.js +11 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/resource.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/resource.mjs +7 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/resource.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +31 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/streaming.d.ts +31 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/streaming.js +282 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/streaming.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/streaming.mjs +277 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/streaming.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/uploads.d.mts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/uploads.d.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/uploads.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/uploads.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/uploads.mjs +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/core/uploads.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/error.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/error.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/error.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/error.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/error.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/error.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/error.mjs +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/error.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/index.d.mts +7 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/index.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/index.d.ts +7 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/index.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/index.js +35 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/index.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/index.mjs +8 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/index.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts +73 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts +73 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/builtin-types.js +4 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/builtin-types.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/constants.d.mts +5 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/constants.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/constants.d.ts +5 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/constants.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/constants.js +15 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/constants.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/constants.mjs +12 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/constants.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts +10 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts +10 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js +39 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs +35 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts +17 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts +17 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/line.js +113 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/line.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs +108 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts +15 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts +15 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/detect-platform.js +162 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/detect-platform.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs +157 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/errors.d.mts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/errors.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/errors.d.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/errors.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/errors.js +41 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/errors.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/errors.mjs +36 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/errors.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/headers.d.mts +22 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/headers.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/headers.d.ts +22 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/headers.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/headers.js +79 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/headers.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/headers.mjs +74 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/headers.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +17 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/parse.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/parse.d.ts +17 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/parse.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/parse.js +55 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/parse.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/parse.mjs +51 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +34 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts +34 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/request-options.js +14 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/request-options.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +10 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/request-options.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shim-types.d.mts +28 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shim-types.d.ts +28 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shims.d.mts +20 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shims.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shims.d.ts +20 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shims.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shims.js +92 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shims.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shims.mjs +85 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/shims.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts +8 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts +8 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/stream-utils.js +38 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/stream-utils.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs +35 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts +45 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts +45 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/to-file.js +96 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/to-file.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/to-file.mjs +93 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/to-file.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/tslib.js +81 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/tslib.mjs +17 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/types.d.mts +67 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/types.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/types.d.ts +67 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/types.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/types.js +4 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/types.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/types.mjs +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/types.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts +42 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts +42 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/uploads.js +146 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/uploads.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/uploads.mjs +136 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/base64.js +38 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/base64.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs +33 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts +4 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts +4 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js +31 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs +26 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts +9 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts +9 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/env.js +22 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/env.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs +18 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +37 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts +37 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/log.js +86 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/log.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +80 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts +15 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts +15 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/path.js +58 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/path.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs +53 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js +7 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts +5 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts +5 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js +19 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs +15 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts +16 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts +16 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/values.js +109 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/values.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs +92 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils.d.mts +7 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils.d.ts +7 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils.js +11 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils.mjs +8 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/internal/utils.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +114 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts +114 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +553 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +549 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +114 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +114 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +553 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +549 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/package.json +185 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/pagination.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/pagination.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/pagination.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/pagination.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/pagination.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/pagination.mjs +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/pagination.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resource.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resource.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resource.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resource.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resource.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resource.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resource.mjs +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resource.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +61 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +61 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +25 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +20 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +151 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +151 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/files.js +122 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +118 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +5 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +5 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/index.js +13 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +343 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts +343 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +204 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +200 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js +9 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs +4 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +1561 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +1561 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +86 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +81 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +74 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts +74 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/models.js +60 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/models.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +56 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta.mjs +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/beta.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +183 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/completions.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +183 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/completions.js +23 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/completions.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/completions.mjs +19 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/index.d.mts +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/index.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/index.d.ts +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/index.js +15 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/index.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/index.mjs +7 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +304 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts +304 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +153 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/batches.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +149 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/index.js +9 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/index.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs +4 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +1264 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +1264 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +72 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +67 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages.mjs +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/models.d.mts +59 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/models.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/models.d.ts +59 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/models.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/models.js +45 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/models.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/models.mjs +41 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/models.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/shared.d.mts +42 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/shared.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/shared.d.ts +42 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/shared.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/shared.js +4 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/shared.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/shared.mjs +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/shared.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/top-level.js +4 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/top-level.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources/top-level.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources.js +5 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources.mjs +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/resources.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +264 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/api-promise.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/client.ts +1070 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/core/README.md +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +101 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/core/error.ts +133 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +201 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/core/resource.ts +11 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +331 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/core/uploads.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/error.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/index.ts +23 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/README.md +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/builtin-types.ts +93 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/constants.ts +12 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/decoders/jsonl.ts +48 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/decoders/line.ts +135 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/detect-platform.ts +196 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/errors.ts +33 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +99 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +84 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +39 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/shim-types.d.ts +28 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/shims.ts +107 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/stream-utils.ts +32 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/to-file.ts +159 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/types.ts +92 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/uploads.ts +193 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/utils/base64.ts +40 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/utils/bytes.ts +32 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/utils/env.ts +18 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +127 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/utils/path.ts +65 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/utils/sleep.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/utils/uuid.ts +17 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/utils/values.ts +102 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/internal/utils.ts +8 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/lib/.keep +4 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +683 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +684 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/pagination.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resource.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +380 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +258 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +148 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +502 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +135 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +2249 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/beta/messages.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +118 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/beta.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +231 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/index.ts +121 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +396 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +110 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +1783 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/models.ts +103 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/shared.ts +72 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources/top-level.ts +3 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/resources.ts +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/streaming.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/tsconfig.json +11 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/uploads.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/src/version.ts +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/streaming.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/streaming.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/streaming.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/streaming.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/streaming.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/streaming.mjs +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/streaming.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/uploads.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/uploads.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/uploads.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/uploads.js +6 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/uploads.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/uploads.mjs +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/uploads.mjs.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/version.d.mts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/version.d.mts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/version.d.ts +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/version.d.ts.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/version.js +5 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/version.js.map +1 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/version.mjs +2 -0
- package/packages/daemon/node_modules/@anthropic-ai/sdk/version.mjs.map +1 -0
- package/packages/daemon/node_modules/zod/LICENSE +21 -0
- package/packages/daemon/node_modules/zod/README.md +208 -0
- package/packages/daemon/node_modules/zod/index.cjs +33 -0
- package/packages/daemon/node_modules/zod/index.d.cts +4 -0
- package/packages/daemon/node_modules/zod/index.d.ts +4 -0
- package/packages/daemon/node_modules/zod/index.js +4 -0
- package/packages/daemon/node_modules/zod/package.json +118 -0
- package/packages/daemon/node_modules/zod/src/index.ts +4 -0
- package/packages/daemon/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/packages/daemon/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/packages/daemon/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/packages/daemon/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/packages/daemon/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/packages/daemon/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/packages/daemon/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/packages/daemon/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/packages/daemon/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/packages/daemon/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/packages/daemon/node_modules/zod/src/v3/errors.ts +13 -0
- package/packages/daemon/node_modules/zod/src/v3/external.ts +6 -0
- package/packages/daemon/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/packages/daemon/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/packages/daemon/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/packages/daemon/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/packages/daemon/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/packages/daemon/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/packages/daemon/node_modules/zod/src/v3/index.ts +4 -0
- package/packages/daemon/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/packages/daemon/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/packages/daemon/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/packages/daemon/node_modules/zod/src/v3/types.ts +5136 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/packages/daemon/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/packages/daemon/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/packages/daemon/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/packages/daemon/node_modules/zod/src/v4/core/config.ts +15 -0
- package/packages/daemon/node_modules/zod/src/v4/core/core.ts +134 -0
- package/packages/daemon/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/packages/daemon/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/packages/daemon/node_modules/zod/src/v4/core/function.ts +176 -0
- package/packages/daemon/node_modules/zod/src/v4/core/index.ts +15 -0
- package/packages/daemon/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/packages/daemon/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/packages/daemon/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/packages/daemon/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/packages/daemon/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/packages/daemon/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/packages/daemon/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/packages/daemon/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/packages/daemon/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/packages/daemon/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/packages/daemon/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/packages/daemon/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/packages/daemon/node_modules/zod/src/v4/core/util.ts +775 -0
- package/packages/daemon/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/packages/daemon/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/packages/daemon/node_modules/zod/src/v4/index.ts +4 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/packages/daemon/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/packages/daemon/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/packages/daemon/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/packages/daemon/node_modules/zod/v3/ZodError.cjs +138 -0
- package/packages/daemon/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/packages/daemon/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/packages/daemon/node_modules/zod/v3/ZodError.js +133 -0
- package/packages/daemon/node_modules/zod/v3/errors.cjs +17 -0
- package/packages/daemon/node_modules/zod/v3/errors.d.cts +5 -0
- package/packages/daemon/node_modules/zod/v3/errors.d.ts +5 -0
- package/packages/daemon/node_modules/zod/v3/errors.js +9 -0
- package/packages/daemon/node_modules/zod/v3/external.cjs +22 -0
- package/packages/daemon/node_modules/zod/v3/external.d.cts +6 -0
- package/packages/daemon/node_modules/zod/v3/external.d.ts +6 -0
- package/packages/daemon/node_modules/zod/v3/external.js +6 -0
- package/packages/daemon/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/packages/daemon/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/packages/daemon/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/packages/daemon/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/packages/daemon/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/packages/daemon/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/packages/daemon/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/packages/daemon/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/packages/daemon/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/packages/daemon/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/packages/daemon/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/packages/daemon/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/packages/daemon/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/packages/daemon/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/packages/daemon/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/packages/daemon/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/packages/daemon/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/packages/daemon/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/packages/daemon/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/packages/daemon/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/packages/daemon/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/packages/daemon/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/packages/daemon/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/packages/daemon/node_modules/zod/v3/helpers/util.js +133 -0
- package/packages/daemon/node_modules/zod/v3/index.cjs +33 -0
- package/packages/daemon/node_modules/zod/v3/index.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v3/index.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v3/index.js +4 -0
- package/packages/daemon/node_modules/zod/v3/locales/en.cjs +111 -0
- package/packages/daemon/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/packages/daemon/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/packages/daemon/node_modules/zod/v3/locales/en.js +109 -0
- package/packages/daemon/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/packages/daemon/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/packages/daemon/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/packages/daemon/node_modules/zod/v3/standard-schema.js +1 -0
- package/packages/daemon/node_modules/zod/v3/types.cjs +3775 -0
- package/packages/daemon/node_modules/zod/v3/types.d.cts +1031 -0
- package/packages/daemon/node_modules/zod/v3/types.d.ts +1031 -0
- package/packages/daemon/node_modules/zod/v3/types.js +3693 -0
- package/packages/daemon/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/packages/daemon/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/packages/daemon/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/packages/daemon/node_modules/zod/v4/classic/checks.js +1 -0
- package/packages/daemon/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/packages/daemon/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/packages/daemon/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/packages/daemon/node_modules/zod/v4/classic/coerce.js +17 -0
- package/packages/daemon/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/packages/daemon/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/packages/daemon/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/packages/daemon/node_modules/zod/v4/classic/compat.js +27 -0
- package/packages/daemon/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/packages/daemon/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/packages/daemon/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/packages/daemon/node_modules/zod/v4/classic/errors.js +41 -0
- package/packages/daemon/node_modules/zod/v4/classic/external.cjs +70 -0
- package/packages/daemon/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/packages/daemon/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/packages/daemon/node_modules/zod/v4/classic/external.js +18 -0
- package/packages/daemon/node_modules/zod/v4/classic/index.cjs +33 -0
- package/packages/daemon/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/classic/index.js +4 -0
- package/packages/daemon/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/packages/daemon/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/packages/daemon/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/packages/daemon/node_modules/zod/v4/classic/iso.js +30 -0
- package/packages/daemon/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/packages/daemon/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/packages/daemon/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/packages/daemon/node_modules/zod/v4/classic/parse.js +6 -0
- package/packages/daemon/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/packages/daemon/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/packages/daemon/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/packages/daemon/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/packages/daemon/node_modules/zod/v4/core/api.cjs +1039 -0
- package/packages/daemon/node_modules/zod/v4/core/api.d.cts +284 -0
- package/packages/daemon/node_modules/zod/v4/core/api.d.ts +284 -0
- package/packages/daemon/node_modules/zod/v4/core/api.js +906 -0
- package/packages/daemon/node_modules/zod/v4/core/checks.cjs +591 -0
- package/packages/daemon/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/packages/daemon/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/packages/daemon/node_modules/zod/v4/core/checks.js +565 -0
- package/packages/daemon/node_modules/zod/v4/core/core.cjs +67 -0
- package/packages/daemon/node_modules/zod/v4/core/core.d.cts +49 -0
- package/packages/daemon/node_modules/zod/v4/core/core.d.ts +49 -0
- package/packages/daemon/node_modules/zod/v4/core/core.js +61 -0
- package/packages/daemon/node_modules/zod/v4/core/doc.cjs +39 -0
- package/packages/daemon/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/packages/daemon/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/packages/daemon/node_modules/zod/v4/core/doc.js +35 -0
- package/packages/daemon/node_modules/zod/v4/core/errors.cjs +226 -0
- package/packages/daemon/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/packages/daemon/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/packages/daemon/node_modules/zod/v4/core/errors.js +195 -0
- package/packages/daemon/node_modules/zod/v4/core/function.cjs +102 -0
- package/packages/daemon/node_modules/zod/v4/core/function.d.cts +52 -0
- package/packages/daemon/node_modules/zod/v4/core/function.d.ts +52 -0
- package/packages/daemon/node_modules/zod/v4/core/function.js +75 -0
- package/packages/daemon/node_modules/zod/v4/core/index.cjs +44 -0
- package/packages/daemon/node_modules/zod/v4/core/index.d.cts +15 -0
- package/packages/daemon/node_modules/zod/v4/core/index.d.ts +15 -0
- package/packages/daemon/node_modules/zod/v4/core/index.js +15 -0
- package/packages/daemon/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/packages/daemon/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/packages/daemon/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/packages/daemon/node_modules/zod/v4/core/json-schema.js +1 -0
- package/packages/daemon/node_modules/zod/v4/core/parse.cjs +87 -0
- package/packages/daemon/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/packages/daemon/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/packages/daemon/node_modules/zod/v4/core/parse.js +57 -0
- package/packages/daemon/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/packages/daemon/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/packages/daemon/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/packages/daemon/node_modules/zod/v4/core/regexes.js +95 -0
- package/packages/daemon/node_modules/zod/v4/core/registries.cjs +56 -0
- package/packages/daemon/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/packages/daemon/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/packages/daemon/node_modules/zod/v4/core/registries.js +51 -0
- package/packages/daemon/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/packages/daemon/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/packages/daemon/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/packages/daemon/node_modules/zod/v4/core/schemas.js +1717 -0
- package/packages/daemon/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/packages/daemon/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/packages/daemon/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/packages/daemon/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/packages/daemon/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/packages/daemon/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/packages/daemon/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/packages/daemon/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/packages/daemon/node_modules/zod/v4/core/util.cjs +539 -0
- package/packages/daemon/node_modules/zod/v4/core/util.d.cts +183 -0
- package/packages/daemon/node_modules/zod/v4/core/util.d.ts +183 -0
- package/packages/daemon/node_modules/zod/v4/core/util.js +493 -0
- package/packages/daemon/node_modules/zod/v4/core/versions.cjs +8 -0
- package/packages/daemon/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/packages/daemon/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/packages/daemon/node_modules/zod/v4/core/versions.js +5 -0
- package/packages/daemon/node_modules/zod/v4/index.cjs +22 -0
- package/packages/daemon/node_modules/zod/v4/index.d.cts +3 -0
- package/packages/daemon/node_modules/zod/v4/index.d.ts +3 -0
- package/packages/daemon/node_modules/zod/v4/index.js +3 -0
- package/packages/daemon/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/packages/daemon/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ar.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/az.cjs +141 -0
- package/packages/daemon/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/az.js +115 -0
- package/packages/daemon/node_modules/zod/v4/locales/be.cjs +190 -0
- package/packages/daemon/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/be.js +164 -0
- package/packages/daemon/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/packages/daemon/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ca.js +118 -0
- package/packages/daemon/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/packages/daemon/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/cs.js +135 -0
- package/packages/daemon/node_modules/zod/v4/locales/de.cjs +142 -0
- package/packages/daemon/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/de.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/en.cjs +145 -0
- package/packages/daemon/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/packages/daemon/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/packages/daemon/node_modules/zod/v4/locales/en.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/packages/daemon/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/packages/daemon/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/packages/daemon/node_modules/zod/v4/locales/eo.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/es.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/es.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/packages/daemon/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/fa.js +122 -0
- package/packages/daemon/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/packages/daemon/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/fi.js +122 -0
- package/packages/daemon/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/packages/daemon/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/fr.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/he.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/he.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/hu.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/id.cjs +142 -0
- package/packages/daemon/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/id.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/index.cjs +84 -0
- package/packages/daemon/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/packages/daemon/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/packages/daemon/node_modules/zod/v4/locales/index.js +39 -0
- package/packages/daemon/node_modules/zod/v4/locales/it.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/it.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/packages/daemon/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ja.js +115 -0
- package/packages/daemon/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/kh.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/packages/daemon/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ko.js +121 -0
- package/packages/daemon/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/packages/daemon/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/mk.js +118 -0
- package/packages/daemon/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/packages/daemon/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ms.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/nl.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/no.cjs +142 -0
- package/packages/daemon/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/no.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ota.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/pl.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/packages/daemon/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ps.js +122 -0
- package/packages/daemon/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/packages/daemon/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/pt.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/packages/daemon/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ru.js +164 -0
- package/packages/daemon/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/sl.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/packages/daemon/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/sv.js +118 -0
- package/packages/daemon/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ta.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/th.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/th.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/packages/daemon/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/packages/daemon/node_modules/zod/v4/locales/tr.js +115 -0
- package/packages/daemon/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ua.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/ur.js +117 -0
- package/packages/daemon/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/packages/daemon/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/vi.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/packages/daemon/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/packages/daemon/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/packages/daemon/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/packages/daemon/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/packages/daemon/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/packages/daemon/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/packages/daemon/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/packages/daemon/node_modules/zod/v4/mini/checks.js +1 -0
- package/packages/daemon/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/packages/daemon/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/packages/daemon/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/packages/daemon/node_modules/zod/v4/mini/coerce.js +17 -0
- package/packages/daemon/node_modules/zod/v4/mini/external.cjs +62 -0
- package/packages/daemon/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/packages/daemon/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/packages/daemon/node_modules/zod/v4/mini/external.js +13 -0
- package/packages/daemon/node_modules/zod/v4/mini/index.cjs +32 -0
- package/packages/daemon/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/packages/daemon/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/packages/daemon/node_modules/zod/v4/mini/index.js +3 -0
- package/packages/daemon/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/packages/daemon/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/packages/daemon/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/packages/daemon/node_modules/zod/v4/mini/iso.js +30 -0
- package/packages/daemon/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/packages/daemon/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/packages/daemon/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/packages/daemon/node_modules/zod/v4/mini/parse.js +1 -0
- package/packages/daemon/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/packages/daemon/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/packages/daemon/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/packages/daemon/node_modules/zod/v4/mini/schemas.js +732 -0
- package/packages/daemon/node_modules/zod/v4-mini/index.cjs +17 -0
- package/packages/daemon/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/packages/daemon/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/packages/daemon/node_modules/zod/v4-mini/index.js +1 -0
- package/packages/daemon/package.json +48 -0
- package/packages/daemon/src/channel-manager.ts +223 -0
- package/packages/daemon/src/cli.ts +47 -0
- package/packages/daemon/src/commands.ts +110 -0
- package/packages/daemon/src/config.ts +137 -0
- package/packages/daemon/src/daemon.test.ts +660 -0
- package/packages/daemon/src/daemon.ts +176 -0
- package/packages/daemon/src/discord-bot.test.ts +792 -0
- package/packages/daemon/src/discord-bot.ts +421 -0
- package/packages/daemon/src/event-bridge.test.ts +619 -0
- package/packages/daemon/src/event-bridge.ts +488 -0
- package/packages/daemon/src/event-formatter.test.ts +402 -0
- package/packages/daemon/src/event-formatter.ts +386 -0
- package/packages/daemon/src/index.ts +46 -0
- package/packages/daemon/src/logger.ts +88 -0
- package/packages/daemon/src/message-batcher.test.ts +308 -0
- package/packages/daemon/src/message-batcher.ts +210 -0
- package/packages/daemon/src/orchestrator.test.ts +583 -0
- package/packages/daemon/src/orchestrator.ts +440 -0
- package/packages/daemon/src/project-scanner.test.ts +235 -0
- package/packages/daemon/src/project-scanner.ts +99 -0
- package/packages/daemon/src/session-manager.test.ts +822 -0
- package/packages/daemon/src/session-manager.ts +394 -0
- package/packages/daemon/src/types.ts +199 -0
- package/packages/daemon/src/verbosity.test.ts +171 -0
- package/packages/daemon/src/verbosity.ts +101 -0
- package/packages/daemon/tsconfig.json +24 -0
- package/packages/pi-ai/dist/models.custom.d.ts +23 -0
- package/packages/pi-ai/dist/models.custom.d.ts.map +1 -1
- package/packages/pi-ai/dist/models.custom.js +24 -0
- package/packages/pi-ai/dist/models.custom.js.map +1 -1
- package/packages/pi-ai/dist/models.test.js +29 -0
- package/packages/pi-ai/dist/models.test.js.map +1 -1
- package/packages/pi-ai/src/models.custom.ts +25 -0
- package/packages/pi-ai/src/models.test.ts +33 -0
- package/packages/pi-coding-agent/package.json +1 -1
- package/pkg/package.json +1 -1
- package/src/resources/extensions/gsd/auto/infra-errors.ts +3 -0
- package/src/resources/extensions/gsd/auto/loop-deps.ts +4 -1
- package/src/resources/extensions/gsd/auto/phases.ts +3 -0
- package/src/resources/extensions/gsd/auto/run-unit.ts +10 -0
- package/src/resources/extensions/gsd/auto/session.ts +3 -0
- package/src/resources/extensions/gsd/auto-artifact-paths.ts +6 -0
- package/src/resources/extensions/gsd/auto-dashboard.ts +5 -2
- package/src/resources/extensions/gsd/auto-dispatch.ts +3 -3
- package/src/resources/extensions/gsd/auto-model-selection.ts +12 -2
- package/src/resources/extensions/gsd/auto-post-unit.ts +1 -1
- package/src/resources/extensions/gsd/auto-start.ts +23 -6
- package/src/resources/extensions/gsd/auto-worktree.ts +7 -2
- package/src/resources/extensions/gsd/bootstrap/db-tools.ts +2 -1
- package/src/resources/extensions/gsd/complexity-classifier.ts +1 -0
- package/src/resources/extensions/gsd/dashboard-overlay.ts +2 -0
- package/src/resources/extensions/gsd/dispatch-guard.ts +12 -1
- package/src/resources/extensions/gsd/docs/preferences-reference.md +4 -2
- package/src/resources/extensions/gsd/gsd-db.ts +6 -1
- package/src/resources/extensions/gsd/guided-flow.ts +17 -16
- package/src/resources/extensions/gsd/metrics.ts +5 -2
- package/src/resources/extensions/gsd/parallel-orchestrator.ts +23 -6
- package/src/resources/extensions/gsd/preferences-models.ts +12 -0
- package/src/resources/extensions/gsd/preferences-types.ts +4 -0
- package/src/resources/extensions/gsd/preferences.ts +32 -14
- package/src/resources/extensions/gsd/prompts/validate-milestone.md +2 -2
- package/src/resources/extensions/gsd/roadmap-slices.ts +1 -0
- package/src/resources/extensions/gsd/tests/auto-loop.test.ts +39 -1
- package/src/resources/extensions/gsd/tests/auto-start-cold-db-bootstrap.test.ts +37 -0
- package/src/resources/extensions/gsd/tests/custom-engine-loop-integration.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/dispatch-guard.test.ts +47 -0
- package/src/resources/extensions/gsd/tests/journal-integration.test.ts +1 -1
- package/src/resources/extensions/gsd/tests/model-unittype-mapping.test.ts +192 -0
- package/src/resources/extensions/gsd/tests/parallel-worker-monitoring.test.ts +9 -8
- package/src/resources/extensions/gsd/tests/preferences.test.ts +34 -0
- package/src/resources/extensions/gsd/tests/prompt-contracts.test.ts +7 -0
- package/src/resources/extensions/gsd/tests/roadmap-slices.test.ts +17 -0
- package/src/resources/extensions/gsd/tests/sqlite-unavailable-gate.test.ts +14 -12
- package/src/resources/extensions/gsd/tests/subagent-agent-discovery.test.ts +44 -0
- package/src/resources/extensions/gsd/tests/validate-milestone-write-order.test.ts +23 -1
- package/src/resources/extensions/gsd/tests/validation-gate-patterns.test.ts +44 -2
- package/src/resources/extensions/gsd/tests/worktree-db-same-file.test.ts +175 -0
- package/src/resources/extensions/gsd/tools/validate-milestone.ts +5 -0
- package/src/resources/extensions/subagent/agents.ts +8 -2
- package/dist/web/standalone/.next/static/chunks/6502.2305d0afd2385711.js +0 -9
- /package/dist/web/standalone/.next/static/{ZQGF6SPE1F4YPUZu1vXqt → OS7_z6QaL6uqp8q5pjHSJ}/_buildManifest.js +0 -0
- /package/dist/web/standalone/.next/static/{ZQGF6SPE1F4YPUZu1vXqt → OS7_z6QaL6uqp8q5pjHSJ}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,1070 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import type { RequestInit, RequestInfo, BodyInit } from './internal/builtin-types';
|
|
4
|
+
import type { HTTPMethod, PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from './internal/types';
|
|
5
|
+
import { uuid4 } from './internal/utils/uuid';
|
|
6
|
+
import { validatePositiveInteger, isAbsoluteURL, safeJSON } from './internal/utils/values';
|
|
7
|
+
import { sleep } from './internal/utils/sleep';
|
|
8
|
+
import { type Logger, type LogLevel, parseLogLevel } from './internal/utils/log';
|
|
9
|
+
export type { Logger, LogLevel } from './internal/utils/log';
|
|
10
|
+
import { castToError, isAbortError } from './internal/errors';
|
|
11
|
+
import type { APIResponseProps } from './internal/parse';
|
|
12
|
+
import { getPlatformHeaders } from './internal/detect-platform';
|
|
13
|
+
import * as Shims from './internal/shims';
|
|
14
|
+
import * as Opts from './internal/request-options';
|
|
15
|
+
import { VERSION } from './version';
|
|
16
|
+
import * as Errors from './core/error';
|
|
17
|
+
import * as Pagination from './core/pagination';
|
|
18
|
+
import { type PageParams, PageResponse } from './core/pagination';
|
|
19
|
+
import * as Uploads from './core/uploads';
|
|
20
|
+
import * as API from './resources/index';
|
|
21
|
+
import { APIPromise } from './core/api-promise';
|
|
22
|
+
import { type Fetch } from './internal/builtin-types';
|
|
23
|
+
import { isRunningInBrowser } from './internal/detect-platform';
|
|
24
|
+
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
25
|
+
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
26
|
+
import {
|
|
27
|
+
Completion,
|
|
28
|
+
CompletionCreateParams,
|
|
29
|
+
CompletionCreateParamsNonStreaming,
|
|
30
|
+
CompletionCreateParamsStreaming,
|
|
31
|
+
Completions,
|
|
32
|
+
} from './resources/completions';
|
|
33
|
+
import { ModelInfo, ModelInfosPage, ModelListParams, ModelRetrieveParams, Models } from './resources/models';
|
|
34
|
+
import { readEnv } from './internal/utils/env';
|
|
35
|
+
import { formatRequestDetails, loggerFor } from './internal/utils/log';
|
|
36
|
+
import { isEmptyObj } from './internal/utils/values';
|
|
37
|
+
import {
|
|
38
|
+
AnthropicBeta,
|
|
39
|
+
Beta,
|
|
40
|
+
BetaAPIError,
|
|
41
|
+
BetaAuthenticationError,
|
|
42
|
+
BetaBillingError,
|
|
43
|
+
BetaError,
|
|
44
|
+
BetaErrorResponse,
|
|
45
|
+
BetaGatewayTimeoutError,
|
|
46
|
+
BetaInvalidRequestError,
|
|
47
|
+
BetaNotFoundError,
|
|
48
|
+
BetaOverloadedError,
|
|
49
|
+
BetaPermissionError,
|
|
50
|
+
BetaRateLimitError,
|
|
51
|
+
} from './resources/beta/beta';
|
|
52
|
+
import {
|
|
53
|
+
Base64ImageSource,
|
|
54
|
+
Base64PDFSource,
|
|
55
|
+
CacheControlEphemeral,
|
|
56
|
+
CitationCharLocation,
|
|
57
|
+
CitationCharLocationParam,
|
|
58
|
+
CitationContentBlockLocation,
|
|
59
|
+
CitationContentBlockLocationParam,
|
|
60
|
+
CitationPageLocation,
|
|
61
|
+
CitationPageLocationParam,
|
|
62
|
+
CitationWebSearchResultLocationParam,
|
|
63
|
+
CitationsConfigParam,
|
|
64
|
+
CitationsDelta,
|
|
65
|
+
CitationsWebSearchResultLocation,
|
|
66
|
+
ContentBlock,
|
|
67
|
+
ContentBlockDeltaEvent,
|
|
68
|
+
ContentBlockParam,
|
|
69
|
+
ContentBlockStartEvent,
|
|
70
|
+
ContentBlockStopEvent,
|
|
71
|
+
ContentBlockSource,
|
|
72
|
+
ContentBlockSourceContent,
|
|
73
|
+
DocumentBlockParam,
|
|
74
|
+
ImageBlockParam,
|
|
75
|
+
InputJSONDelta,
|
|
76
|
+
Message,
|
|
77
|
+
MessageStreamParams,
|
|
78
|
+
MessageCountTokensParams,
|
|
79
|
+
MessageCountTokensTool,
|
|
80
|
+
MessageCreateParams,
|
|
81
|
+
MessageCreateParamsNonStreaming,
|
|
82
|
+
MessageCreateParamsStreaming,
|
|
83
|
+
MessageDeltaEvent,
|
|
84
|
+
MessageDeltaUsage,
|
|
85
|
+
MessageParam,
|
|
86
|
+
MessageStartEvent,
|
|
87
|
+
MessageStopEvent,
|
|
88
|
+
MessageStreamEvent,
|
|
89
|
+
MessageTokensCount,
|
|
90
|
+
Messages,
|
|
91
|
+
Metadata,
|
|
92
|
+
Model,
|
|
93
|
+
PlainTextSource,
|
|
94
|
+
RawContentBlockDelta,
|
|
95
|
+
RawContentBlockDeltaEvent,
|
|
96
|
+
RawContentBlockStartEvent,
|
|
97
|
+
RawContentBlockStopEvent,
|
|
98
|
+
RawMessageDeltaEvent,
|
|
99
|
+
RawMessageStartEvent,
|
|
100
|
+
RawMessageStopEvent,
|
|
101
|
+
RawMessageStreamEvent,
|
|
102
|
+
RedactedThinkingBlock,
|
|
103
|
+
RedactedThinkingBlockParam,
|
|
104
|
+
ServerToolUsage,
|
|
105
|
+
ServerToolUseBlock,
|
|
106
|
+
ServerToolUseBlockParam,
|
|
107
|
+
SignatureDelta,
|
|
108
|
+
StopReason,
|
|
109
|
+
TextBlock,
|
|
110
|
+
TextBlockParam,
|
|
111
|
+
TextCitation,
|
|
112
|
+
TextCitationParam,
|
|
113
|
+
TextDelta,
|
|
114
|
+
ThinkingBlock,
|
|
115
|
+
ThinkingBlockParam,
|
|
116
|
+
ThinkingConfigDisabled,
|
|
117
|
+
ThinkingConfigEnabled,
|
|
118
|
+
ThinkingConfigParam,
|
|
119
|
+
ThinkingDelta,
|
|
120
|
+
Tool,
|
|
121
|
+
ToolBash20250124,
|
|
122
|
+
ToolChoice,
|
|
123
|
+
ToolChoiceAny,
|
|
124
|
+
ToolChoiceAuto,
|
|
125
|
+
ToolChoiceNone,
|
|
126
|
+
ToolChoiceTool,
|
|
127
|
+
ToolResultBlockParam,
|
|
128
|
+
ToolTextEditor20250124,
|
|
129
|
+
ToolUnion,
|
|
130
|
+
ToolUseBlock,
|
|
131
|
+
ToolUseBlockParam,
|
|
132
|
+
URLImageSource,
|
|
133
|
+
URLPDFSource,
|
|
134
|
+
Usage,
|
|
135
|
+
WebSearchResultBlock,
|
|
136
|
+
WebSearchResultBlockParam,
|
|
137
|
+
WebSearchTool20250305,
|
|
138
|
+
WebSearchToolRequestError,
|
|
139
|
+
WebSearchToolResultBlock,
|
|
140
|
+
WebSearchToolResultBlockContent,
|
|
141
|
+
WebSearchToolResultBlockParam,
|
|
142
|
+
WebSearchToolResultBlockParamContent,
|
|
143
|
+
WebSearchToolResultError,
|
|
144
|
+
} from './resources/messages/messages';
|
|
145
|
+
|
|
146
|
+
export interface ClientOptions {
|
|
147
|
+
/**
|
|
148
|
+
* Defaults to process.env['ANTHROPIC_API_KEY'].
|
|
149
|
+
*/
|
|
150
|
+
apiKey?: string | null | undefined;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Defaults to process.env['ANTHROPIC_AUTH_TOKEN'].
|
|
154
|
+
*/
|
|
155
|
+
authToken?: string | null | undefined;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
159
|
+
*
|
|
160
|
+
* Defaults to process.env['ANTHROPIC_BASE_URL'].
|
|
161
|
+
*/
|
|
162
|
+
baseURL?: string | null | undefined;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
166
|
+
* from the server before timing out a single request.
|
|
167
|
+
*
|
|
168
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
169
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
170
|
+
*/
|
|
171
|
+
timeout?: number | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
174
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
175
|
+
*/
|
|
176
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Specify a custom `fetch` function implementation.
|
|
180
|
+
*
|
|
181
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
182
|
+
*/
|
|
183
|
+
fetch?: Fetch | undefined;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
187
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
188
|
+
*
|
|
189
|
+
* @default 2
|
|
190
|
+
*/
|
|
191
|
+
maxRetries?: number | undefined;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Default headers to include with every request to the API.
|
|
195
|
+
*
|
|
196
|
+
* These can be removed in individual requests by explicitly setting the
|
|
197
|
+
* header to `null` in request options.
|
|
198
|
+
*/
|
|
199
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Default query parameters to include with every request to the API.
|
|
203
|
+
*
|
|
204
|
+
* These can be removed in individual requests by explicitly setting the
|
|
205
|
+
* param to `undefined` in request options.
|
|
206
|
+
*/
|
|
207
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
|
|
211
|
+
* Only set this option to `true` if you understand the risks and have appropriate mitigations in place.
|
|
212
|
+
*/
|
|
213
|
+
dangerouslyAllowBrowser?: boolean | undefined;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Set the log level.
|
|
217
|
+
*
|
|
218
|
+
* Defaults to process.env['ANTHROPIC_LOG'] or 'warn' if it isn't set.
|
|
219
|
+
*/
|
|
220
|
+
logLevel?: LogLevel | undefined;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Set the logger.
|
|
224
|
+
*
|
|
225
|
+
* Defaults to globalThis.console.
|
|
226
|
+
*/
|
|
227
|
+
logger?: Logger | undefined;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export class BaseAnthropic {
|
|
231
|
+
apiKey: string | null;
|
|
232
|
+
authToken: string | null;
|
|
233
|
+
|
|
234
|
+
baseURL: string;
|
|
235
|
+
maxRetries: number;
|
|
236
|
+
timeout: number;
|
|
237
|
+
logger: Logger | undefined;
|
|
238
|
+
logLevel: LogLevel | undefined;
|
|
239
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
240
|
+
|
|
241
|
+
private fetch: Fetch;
|
|
242
|
+
#encoder: Opts.RequestEncoder;
|
|
243
|
+
protected idempotencyHeader?: string;
|
|
244
|
+
private _options: ClientOptions;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* API Client for interfacing with the Anthropic API.
|
|
248
|
+
*
|
|
249
|
+
* @param {string | null | undefined} [opts.apiKey=process.env['ANTHROPIC_API_KEY'] ?? null]
|
|
250
|
+
* @param {string | null | undefined} [opts.authToken=process.env['ANTHROPIC_AUTH_TOKEN'] ?? null]
|
|
251
|
+
* @param {string} [opts.baseURL=process.env['ANTHROPIC_BASE_URL'] ?? https://api.anthropic.com] - Override the default base URL for the API.
|
|
252
|
+
* @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
253
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
254
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
255
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
256
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
257
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
258
|
+
* @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
|
|
259
|
+
*/
|
|
260
|
+
constructor({
|
|
261
|
+
baseURL = readEnv('ANTHROPIC_BASE_URL'),
|
|
262
|
+
apiKey = readEnv('ANTHROPIC_API_KEY') ?? null,
|
|
263
|
+
authToken = readEnv('ANTHROPIC_AUTH_TOKEN') ?? null,
|
|
264
|
+
...opts
|
|
265
|
+
}: ClientOptions = {}) {
|
|
266
|
+
const options: ClientOptions = {
|
|
267
|
+
apiKey,
|
|
268
|
+
authToken,
|
|
269
|
+
...opts,
|
|
270
|
+
baseURL: baseURL || `https://api.anthropic.com`,
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
if (!options.dangerouslyAllowBrowser && isRunningInBrowser()) {
|
|
274
|
+
throw new Errors.AnthropicError(
|
|
275
|
+
"It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew Anthropic({ apiKey, dangerouslyAllowBrowser: true });\n",
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
this.baseURL = options.baseURL!;
|
|
280
|
+
this.timeout = options.timeout ?? Anthropic.DEFAULT_TIMEOUT /* 10 minutes */;
|
|
281
|
+
this.logger = options.logger ?? console;
|
|
282
|
+
const defaultLogLevel = 'warn';
|
|
283
|
+
// Set default logLevel early so that we can log a warning in parseLogLevel.
|
|
284
|
+
this.logLevel = defaultLogLevel;
|
|
285
|
+
this.logLevel =
|
|
286
|
+
parseLogLevel(options.logLevel, 'ClientOptions.logLevel', this) ??
|
|
287
|
+
parseLogLevel(readEnv('ANTHROPIC_LOG'), "process.env['ANTHROPIC_LOG']", this) ??
|
|
288
|
+
defaultLogLevel;
|
|
289
|
+
this.fetchOptions = options.fetchOptions;
|
|
290
|
+
this.maxRetries = options.maxRetries ?? 2;
|
|
291
|
+
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
292
|
+
this.#encoder = Opts.FallbackEncoder;
|
|
293
|
+
|
|
294
|
+
this._options = options;
|
|
295
|
+
|
|
296
|
+
this.apiKey = apiKey;
|
|
297
|
+
this.authToken = authToken;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
302
|
+
*/
|
|
303
|
+
withOptions(options: Partial<ClientOptions>): this {
|
|
304
|
+
return new (this.constructor as any as new (props: ClientOptions) => typeof this)({
|
|
305
|
+
...this._options,
|
|
306
|
+
baseURL: this.baseURL,
|
|
307
|
+
maxRetries: this.maxRetries,
|
|
308
|
+
timeout: this.timeout,
|
|
309
|
+
logger: this.logger,
|
|
310
|
+
logLevel: this.logLevel,
|
|
311
|
+
fetchOptions: this.fetchOptions,
|
|
312
|
+
apiKey: this.apiKey,
|
|
313
|
+
authToken: this.authToken,
|
|
314
|
+
...options,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined {
|
|
319
|
+
return this._options.defaultQuery;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
protected validateHeaders({ values, nulls }: NullableHeaders) {
|
|
323
|
+
if (this.apiKey && values.get('x-api-key')) {
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
if (nulls.has('x-api-key')) {
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
if (this.authToken && values.get('authorization')) {
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
if (nulls.has('authorization')) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
throw new Error(
|
|
338
|
+
'Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted',
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined {
|
|
343
|
+
return buildHeaders([this.apiKeyAuth(opts), this.bearerAuth(opts)]);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
protected apiKeyAuth(opts: FinalRequestOptions): NullableHeaders | undefined {
|
|
347
|
+
if (this.apiKey == null) {
|
|
348
|
+
return undefined;
|
|
349
|
+
}
|
|
350
|
+
return buildHeaders([{ 'X-Api-Key': this.apiKey }]);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
protected bearerAuth(opts: FinalRequestOptions): NullableHeaders | undefined {
|
|
354
|
+
if (this.authToken == null) {
|
|
355
|
+
return undefined;
|
|
356
|
+
}
|
|
357
|
+
return buildHeaders([{ Authorization: `Bearer ${this.authToken}` }]);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
362
|
+
*/
|
|
363
|
+
protected stringifyQuery(query: Record<string, unknown>): string {
|
|
364
|
+
return Object.entries(query)
|
|
365
|
+
.filter(([_, value]) => typeof value !== 'undefined')
|
|
366
|
+
.map(([key, value]) => {
|
|
367
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
368
|
+
return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
|
|
369
|
+
}
|
|
370
|
+
if (value === null) {
|
|
371
|
+
return `${encodeURIComponent(key)}=`;
|
|
372
|
+
}
|
|
373
|
+
throw new Errors.AnthropicError(
|
|
374
|
+
`Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`,
|
|
375
|
+
);
|
|
376
|
+
})
|
|
377
|
+
.join('&');
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
private getUserAgent(): string {
|
|
381
|
+
return `${this.constructor.name}/JS ${VERSION}`;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
protected defaultIdempotencyKey(): string {
|
|
385
|
+
return `stainless-node-retry-${uuid4()}`;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
protected makeStatusError(
|
|
389
|
+
status: number,
|
|
390
|
+
error: Object,
|
|
391
|
+
message: string | undefined,
|
|
392
|
+
headers: Headers,
|
|
393
|
+
): Errors.APIError {
|
|
394
|
+
return Errors.APIError.generate(status, error, message, headers);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined): string {
|
|
398
|
+
const url =
|
|
399
|
+
isAbsoluteURL(path) ?
|
|
400
|
+
new URL(path)
|
|
401
|
+
: new URL(this.baseURL + (this.baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
|
|
402
|
+
|
|
403
|
+
const defaultQuery = this.defaultQuery();
|
|
404
|
+
if (!isEmptyObj(defaultQuery)) {
|
|
405
|
+
query = { ...defaultQuery, ...query };
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (typeof query === 'object' && query && !Array.isArray(query)) {
|
|
409
|
+
url.search = this.stringifyQuery(query as Record<string, unknown>);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
return url.toString();
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
_calculateNonstreamingTimeout(maxTokens: number): number {
|
|
416
|
+
const defaultTimeout = 10 * 60;
|
|
417
|
+
const expectedTimeout = (60 * 60 * maxTokens) / 128_000;
|
|
418
|
+
if (expectedTimeout > defaultTimeout) {
|
|
419
|
+
throw new Errors.AnthropicError(
|
|
420
|
+
'Streaming is strongly recommended for operations that may take longer than 10 minutes. ' +
|
|
421
|
+
'See https://github.com/anthropics/anthropic-sdk-python#streaming-responses for more details',
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
return defaultTimeout * 1000;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
429
|
+
*/
|
|
430
|
+
protected async prepareOptions(options: FinalRequestOptions): Promise<void> {}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
434
|
+
*
|
|
435
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
436
|
+
* the request properties, e.g. `method` or `url`.
|
|
437
|
+
*/
|
|
438
|
+
protected async prepareRequest(
|
|
439
|
+
request: RequestInit,
|
|
440
|
+
{ url, options }: { url: string; options: FinalRequestOptions },
|
|
441
|
+
): Promise<void> {}
|
|
442
|
+
|
|
443
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
444
|
+
return this.methodRequest('get', path, opts);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
448
|
+
return this.methodRequest('post', path, opts);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
452
|
+
return this.methodRequest('patch', path, opts);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
456
|
+
return this.methodRequest('put', path, opts);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
460
|
+
return this.methodRequest('delete', path, opts);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
private methodRequest<Rsp>(
|
|
464
|
+
method: HTTPMethod,
|
|
465
|
+
path: string,
|
|
466
|
+
opts?: PromiseOrValue<RequestOptions>,
|
|
467
|
+
): APIPromise<Rsp> {
|
|
468
|
+
return this.request(
|
|
469
|
+
Promise.resolve(opts).then((opts) => {
|
|
470
|
+
return { method, path, ...opts };
|
|
471
|
+
}),
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
request<Rsp>(
|
|
476
|
+
options: PromiseOrValue<FinalRequestOptions>,
|
|
477
|
+
remainingRetries: number | null = null,
|
|
478
|
+
): APIPromise<Rsp> {
|
|
479
|
+
return new APIPromise(this, this.makeRequest(options, remainingRetries, undefined));
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
private async makeRequest(
|
|
483
|
+
optionsInput: PromiseOrValue<FinalRequestOptions>,
|
|
484
|
+
retriesRemaining: number | null,
|
|
485
|
+
retryOfRequestLogID: string | undefined,
|
|
486
|
+
): Promise<APIResponseProps> {
|
|
487
|
+
const options = await optionsInput;
|
|
488
|
+
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
489
|
+
if (retriesRemaining == null) {
|
|
490
|
+
retriesRemaining = maxRetries;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
await this.prepareOptions(options);
|
|
494
|
+
|
|
495
|
+
const { req, url, timeout } = this.buildRequest(options, { retryCount: maxRetries - retriesRemaining });
|
|
496
|
+
|
|
497
|
+
await this.prepareRequest(req, { url, options });
|
|
498
|
+
|
|
499
|
+
/** Not an API request ID, just for correlating local log entries. */
|
|
500
|
+
const requestLogID = 'log_' + ((Math.random() * (1 << 24)) | 0).toString(16).padStart(6, '0');
|
|
501
|
+
const retryLogStr = retryOfRequestLogID === undefined ? '' : `, retryOf: ${retryOfRequestLogID}`;
|
|
502
|
+
const startTime = Date.now();
|
|
503
|
+
|
|
504
|
+
loggerFor(this).debug(
|
|
505
|
+
`[${requestLogID}] sending request`,
|
|
506
|
+
formatRequestDetails({
|
|
507
|
+
retryOfRequestLogID,
|
|
508
|
+
method: options.method,
|
|
509
|
+
url,
|
|
510
|
+
options,
|
|
511
|
+
headers: req.headers,
|
|
512
|
+
}),
|
|
513
|
+
);
|
|
514
|
+
|
|
515
|
+
if (options.signal?.aborted) {
|
|
516
|
+
throw new Errors.APIUserAbortError();
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
const controller = new AbortController();
|
|
520
|
+
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
|
|
521
|
+
const headersTime = Date.now();
|
|
522
|
+
|
|
523
|
+
if (response instanceof Error) {
|
|
524
|
+
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
525
|
+
if (options.signal?.aborted) {
|
|
526
|
+
throw new Errors.APIUserAbortError();
|
|
527
|
+
}
|
|
528
|
+
// detect native connection timeout errors
|
|
529
|
+
// deno throws "TypeError: error sending request for url (https://example/): client error (Connect): tcp connect error: Operation timed out (os error 60): Operation timed out (os error 60)"
|
|
530
|
+
// undici throws "TypeError: fetch failed" with cause "ConnectTimeoutError: Connect Timeout Error (attempted address: example:443, timeout: 1ms)"
|
|
531
|
+
// others do not provide enough information to distinguish timeouts from other connection errors
|
|
532
|
+
const isTimeout =
|
|
533
|
+
isAbortError(response) ||
|
|
534
|
+
/timed? ?out/i.test(String(response) + ('cause' in response ? String(response.cause) : ''));
|
|
535
|
+
if (retriesRemaining) {
|
|
536
|
+
loggerFor(this).info(
|
|
537
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - ${retryMessage}`,
|
|
538
|
+
);
|
|
539
|
+
loggerFor(this).debug(
|
|
540
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (${retryMessage})`,
|
|
541
|
+
formatRequestDetails({
|
|
542
|
+
retryOfRequestLogID,
|
|
543
|
+
url,
|
|
544
|
+
durationMs: headersTime - startTime,
|
|
545
|
+
message: response.message,
|
|
546
|
+
}),
|
|
547
|
+
);
|
|
548
|
+
return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID);
|
|
549
|
+
}
|
|
550
|
+
loggerFor(this).info(
|
|
551
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - error; no more retries left`,
|
|
552
|
+
);
|
|
553
|
+
loggerFor(this).debug(
|
|
554
|
+
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (error; no more retries left)`,
|
|
555
|
+
formatRequestDetails({
|
|
556
|
+
retryOfRequestLogID,
|
|
557
|
+
url,
|
|
558
|
+
durationMs: headersTime - startTime,
|
|
559
|
+
message: response.message,
|
|
560
|
+
}),
|
|
561
|
+
);
|
|
562
|
+
if (isTimeout) {
|
|
563
|
+
throw new Errors.APIConnectionTimeoutError();
|
|
564
|
+
}
|
|
565
|
+
throw new Errors.APIConnectionError({ cause: response });
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
const specialHeaders = [...response.headers.entries()]
|
|
569
|
+
.filter(([name]) => name === 'request-id')
|
|
570
|
+
.map(([name, value]) => ', ' + name + ': ' + JSON.stringify(value))
|
|
571
|
+
.join('');
|
|
572
|
+
const responseInfo = `[${requestLogID}${retryLogStr}${specialHeaders}] ${req.method} ${url} ${
|
|
573
|
+
response.ok ? 'succeeded' : 'failed'
|
|
574
|
+
} with status ${response.status} in ${headersTime - startTime}ms`;
|
|
575
|
+
|
|
576
|
+
if (!response.ok) {
|
|
577
|
+
const shouldRetry = this.shouldRetry(response);
|
|
578
|
+
if (retriesRemaining && shouldRetry) {
|
|
579
|
+
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
580
|
+
|
|
581
|
+
// We don't need the body of this response.
|
|
582
|
+
await Shims.CancelReadableStream(response.body);
|
|
583
|
+
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
584
|
+
loggerFor(this).debug(
|
|
585
|
+
`[${requestLogID}] response error (${retryMessage})`,
|
|
586
|
+
formatRequestDetails({
|
|
587
|
+
retryOfRequestLogID,
|
|
588
|
+
url: response.url,
|
|
589
|
+
status: response.status,
|
|
590
|
+
headers: response.headers,
|
|
591
|
+
durationMs: headersTime - startTime,
|
|
592
|
+
}),
|
|
593
|
+
);
|
|
594
|
+
return this.retryRequest(
|
|
595
|
+
options,
|
|
596
|
+
retriesRemaining,
|
|
597
|
+
retryOfRequestLogID ?? requestLogID,
|
|
598
|
+
response.headers,
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
const retryMessage = shouldRetry ? `error; no more retries left` : `error; not retryable`;
|
|
603
|
+
|
|
604
|
+
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
605
|
+
|
|
606
|
+
const errText = await response.text().catch((err: any) => castToError(err).message);
|
|
607
|
+
const errJSON = safeJSON(errText);
|
|
608
|
+
const errMessage = errJSON ? undefined : errText;
|
|
609
|
+
|
|
610
|
+
loggerFor(this).debug(
|
|
611
|
+
`[${requestLogID}] response error (${retryMessage})`,
|
|
612
|
+
formatRequestDetails({
|
|
613
|
+
retryOfRequestLogID,
|
|
614
|
+
url: response.url,
|
|
615
|
+
status: response.status,
|
|
616
|
+
headers: response.headers,
|
|
617
|
+
message: errMessage,
|
|
618
|
+
durationMs: Date.now() - startTime,
|
|
619
|
+
}),
|
|
620
|
+
);
|
|
621
|
+
|
|
622
|
+
const err = this.makeStatusError(response.status, errJSON, errMessage, response.headers);
|
|
623
|
+
throw err;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
loggerFor(this).info(responseInfo);
|
|
627
|
+
loggerFor(this).debug(
|
|
628
|
+
`[${requestLogID}] response start`,
|
|
629
|
+
formatRequestDetails({
|
|
630
|
+
retryOfRequestLogID,
|
|
631
|
+
url: response.url,
|
|
632
|
+
status: response.status,
|
|
633
|
+
headers: response.headers,
|
|
634
|
+
durationMs: headersTime - startTime,
|
|
635
|
+
}),
|
|
636
|
+
);
|
|
637
|
+
|
|
638
|
+
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(
|
|
642
|
+
path: string,
|
|
643
|
+
Page: new (...args: any[]) => PageClass,
|
|
644
|
+
opts?: RequestOptions,
|
|
645
|
+
): Pagination.PagePromise<PageClass, Item> {
|
|
646
|
+
return this.requestAPIList(Page, { method: 'get', path, ...opts });
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
requestAPIList<
|
|
650
|
+
Item = unknown,
|
|
651
|
+
PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>,
|
|
652
|
+
>(
|
|
653
|
+
Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass,
|
|
654
|
+
options: FinalRequestOptions,
|
|
655
|
+
): Pagination.PagePromise<PageClass, Item> {
|
|
656
|
+
const request = this.makeRequest(options, null, undefined);
|
|
657
|
+
return new Pagination.PagePromise<PageClass, Item>(this as any as Anthropic, request, Page);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
async fetchWithTimeout(
|
|
661
|
+
url: RequestInfo,
|
|
662
|
+
init: RequestInit | undefined,
|
|
663
|
+
ms: number,
|
|
664
|
+
controller: AbortController,
|
|
665
|
+
): Promise<Response> {
|
|
666
|
+
const { signal, method, ...options } = init || {};
|
|
667
|
+
if (signal) signal.addEventListener('abort', () => controller.abort());
|
|
668
|
+
|
|
669
|
+
const timeout = setTimeout(() => controller.abort(), ms);
|
|
670
|
+
|
|
671
|
+
const isReadableBody =
|
|
672
|
+
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
|
673
|
+
(typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
|
|
674
|
+
|
|
675
|
+
const fetchOptions: RequestInit = {
|
|
676
|
+
signal: controller.signal as any,
|
|
677
|
+
...(isReadableBody ? { duplex: 'half' } : {}),
|
|
678
|
+
method: 'GET',
|
|
679
|
+
...options,
|
|
680
|
+
};
|
|
681
|
+
if (method) {
|
|
682
|
+
// Custom methods like 'patch' need to be uppercased
|
|
683
|
+
// See https://github.com/nodejs/undici/issues/2294
|
|
684
|
+
fetchOptions.method = method.toUpperCase();
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
try {
|
|
688
|
+
// use undefined this binding; fetch errors if bound to something else in browser/cloudflare
|
|
689
|
+
return await this.fetch.call(undefined, url, fetchOptions);
|
|
690
|
+
} finally {
|
|
691
|
+
clearTimeout(timeout);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
private shouldRetry(response: Response): boolean {
|
|
696
|
+
// Note this is not a standard header.
|
|
697
|
+
const shouldRetryHeader = response.headers.get('x-should-retry');
|
|
698
|
+
|
|
699
|
+
// If the server explicitly says whether or not to retry, obey.
|
|
700
|
+
if (shouldRetryHeader === 'true') return true;
|
|
701
|
+
if (shouldRetryHeader === 'false') return false;
|
|
702
|
+
|
|
703
|
+
// Retry on request timeouts.
|
|
704
|
+
if (response.status === 408) return true;
|
|
705
|
+
|
|
706
|
+
// Retry on lock timeouts.
|
|
707
|
+
if (response.status === 409) return true;
|
|
708
|
+
|
|
709
|
+
// Retry on rate limits.
|
|
710
|
+
if (response.status === 429) return true;
|
|
711
|
+
|
|
712
|
+
// Retry internal errors.
|
|
713
|
+
if (response.status >= 500) return true;
|
|
714
|
+
|
|
715
|
+
return false;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
private async retryRequest(
|
|
719
|
+
options: FinalRequestOptions,
|
|
720
|
+
retriesRemaining: number,
|
|
721
|
+
requestLogID: string,
|
|
722
|
+
responseHeaders?: Headers | undefined,
|
|
723
|
+
): Promise<APIResponseProps> {
|
|
724
|
+
let timeoutMillis: number | undefined;
|
|
725
|
+
|
|
726
|
+
// Note the `retry-after-ms` header may not be standard, but is a good idea and we'd like proactive support for it.
|
|
727
|
+
const retryAfterMillisHeader = responseHeaders?.get('retry-after-ms');
|
|
728
|
+
if (retryAfterMillisHeader) {
|
|
729
|
+
const timeoutMs = parseFloat(retryAfterMillisHeader);
|
|
730
|
+
if (!Number.isNaN(timeoutMs)) {
|
|
731
|
+
timeoutMillis = timeoutMs;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
// About the Retry-After header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
|
|
736
|
+
const retryAfterHeader = responseHeaders?.get('retry-after');
|
|
737
|
+
if (retryAfterHeader && !timeoutMillis) {
|
|
738
|
+
const timeoutSeconds = parseFloat(retryAfterHeader);
|
|
739
|
+
if (!Number.isNaN(timeoutSeconds)) {
|
|
740
|
+
timeoutMillis = timeoutSeconds * 1000;
|
|
741
|
+
} else {
|
|
742
|
+
timeoutMillis = Date.parse(retryAfterHeader) - Date.now();
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
// If the API asks us to wait a certain amount of time (and it's a reasonable amount),
|
|
747
|
+
// just do what it says, but otherwise calculate a default
|
|
748
|
+
if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
|
|
749
|
+
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
750
|
+
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
|
|
751
|
+
}
|
|
752
|
+
await sleep(timeoutMillis);
|
|
753
|
+
|
|
754
|
+
return this.makeRequest(options, retriesRemaining - 1, requestLogID);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
private calculateDefaultRetryTimeoutMillis(retriesRemaining: number, maxRetries: number): number {
|
|
758
|
+
const initialRetryDelay = 0.5;
|
|
759
|
+
const maxRetryDelay = 8.0;
|
|
760
|
+
|
|
761
|
+
const numRetries = maxRetries - retriesRemaining;
|
|
762
|
+
|
|
763
|
+
// Apply exponential backoff, but not more than the max.
|
|
764
|
+
const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay);
|
|
765
|
+
|
|
766
|
+
// Apply some jitter, take up to at most 25 percent of the retry time.
|
|
767
|
+
const jitter = 1 - Math.random() * 0.25;
|
|
768
|
+
|
|
769
|
+
return sleepSeconds * jitter * 1000;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
public calculateNonstreamingTimeout(maxTokens: number, maxNonstreamingTokens?: number): number {
|
|
773
|
+
const maxTime = 60 * 60 * 1000; // 10 minutes
|
|
774
|
+
const defaultTime = 60 * 10 * 1000; // 10 minutes
|
|
775
|
+
|
|
776
|
+
const expectedTime = (maxTime * maxTokens) / 128000;
|
|
777
|
+
if (expectedTime > defaultTime || (maxNonstreamingTokens != null && maxTokens > maxNonstreamingTokens)) {
|
|
778
|
+
throw new Errors.AnthropicError(
|
|
779
|
+
'Streaming is strongly recommended for operations that may token longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#long-requests for more details',
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
return defaultTime;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
buildRequest(
|
|
787
|
+
inputOptions: FinalRequestOptions,
|
|
788
|
+
{ retryCount = 0 }: { retryCount?: number } = {},
|
|
789
|
+
): { req: FinalizedRequestInit; url: string; timeout: number } {
|
|
790
|
+
const options = { ...inputOptions };
|
|
791
|
+
const { method, path, query } = options;
|
|
792
|
+
|
|
793
|
+
const url = this.buildURL(path!, query as Record<string, unknown>);
|
|
794
|
+
if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
|
|
795
|
+
options.timeout = options.timeout ?? this.timeout;
|
|
796
|
+
const { bodyHeaders, body } = this.buildBody({ options });
|
|
797
|
+
const reqHeaders = this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
|
|
798
|
+
|
|
799
|
+
const req: FinalizedRequestInit = {
|
|
800
|
+
method,
|
|
801
|
+
headers: reqHeaders,
|
|
802
|
+
...(options.signal && { signal: options.signal }),
|
|
803
|
+
...((globalThis as any).ReadableStream &&
|
|
804
|
+
body instanceof (globalThis as any).ReadableStream && { duplex: 'half' }),
|
|
805
|
+
...(body && { body }),
|
|
806
|
+
...((this.fetchOptions as any) ?? {}),
|
|
807
|
+
...((options.fetchOptions as any) ?? {}),
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
return { req, url, timeout: options.timeout };
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
private buildHeaders({
|
|
814
|
+
options,
|
|
815
|
+
method,
|
|
816
|
+
bodyHeaders,
|
|
817
|
+
retryCount,
|
|
818
|
+
}: {
|
|
819
|
+
options: FinalRequestOptions;
|
|
820
|
+
method: HTTPMethod;
|
|
821
|
+
bodyHeaders: HeadersLike;
|
|
822
|
+
retryCount: number;
|
|
823
|
+
}): Headers {
|
|
824
|
+
let idempotencyHeaders: HeadersLike = {};
|
|
825
|
+
if (this.idempotencyHeader && method !== 'get') {
|
|
826
|
+
if (!options.idempotencyKey) options.idempotencyKey = this.defaultIdempotencyKey();
|
|
827
|
+
idempotencyHeaders[this.idempotencyHeader] = options.idempotencyKey;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
const headers = buildHeaders([
|
|
831
|
+
idempotencyHeaders,
|
|
832
|
+
{
|
|
833
|
+
Accept: 'application/json',
|
|
834
|
+
'User-Agent': this.getUserAgent(),
|
|
835
|
+
'X-Stainless-Retry-Count': String(retryCount),
|
|
836
|
+
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
837
|
+
...getPlatformHeaders(),
|
|
838
|
+
...(this._options.dangerouslyAllowBrowser ?
|
|
839
|
+
{ 'anthropic-dangerous-direct-browser-access': 'true' }
|
|
840
|
+
: undefined),
|
|
841
|
+
'anthropic-version': '2023-06-01',
|
|
842
|
+
},
|
|
843
|
+
this.authHeaders(options),
|
|
844
|
+
this._options.defaultHeaders,
|
|
845
|
+
bodyHeaders,
|
|
846
|
+
options.headers,
|
|
847
|
+
]);
|
|
848
|
+
|
|
849
|
+
this.validateHeaders(headers);
|
|
850
|
+
|
|
851
|
+
return headers.values;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
|
|
855
|
+
bodyHeaders: HeadersLike;
|
|
856
|
+
body: BodyInit | undefined;
|
|
857
|
+
} {
|
|
858
|
+
if (!body) {
|
|
859
|
+
return { bodyHeaders: undefined, body: undefined };
|
|
860
|
+
}
|
|
861
|
+
const headers = buildHeaders([rawHeaders]);
|
|
862
|
+
if (
|
|
863
|
+
// Pass raw type verbatim
|
|
864
|
+
ArrayBuffer.isView(body) ||
|
|
865
|
+
body instanceof ArrayBuffer ||
|
|
866
|
+
body instanceof DataView ||
|
|
867
|
+
(typeof body === 'string' &&
|
|
868
|
+
// Preserve legacy string encoding behavior for now
|
|
869
|
+
headers.values.has('content-type')) ||
|
|
870
|
+
// `Blob` is superset of `File`
|
|
871
|
+
body instanceof Blob ||
|
|
872
|
+
// `FormData` -> `multipart/form-data`
|
|
873
|
+
body instanceof FormData ||
|
|
874
|
+
// `URLSearchParams` -> `application/x-www-form-urlencoded`
|
|
875
|
+
body instanceof URLSearchParams ||
|
|
876
|
+
// Send chunked stream (each chunk has own `length`)
|
|
877
|
+
((globalThis as any).ReadableStream && body instanceof (globalThis as any).ReadableStream)
|
|
878
|
+
) {
|
|
879
|
+
return { bodyHeaders: undefined, body: body as BodyInit };
|
|
880
|
+
} else if (
|
|
881
|
+
typeof body === 'object' &&
|
|
882
|
+
(Symbol.asyncIterator in body ||
|
|
883
|
+
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
|
|
884
|
+
) {
|
|
885
|
+
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
|
|
886
|
+
} else {
|
|
887
|
+
return this.#encoder({ body, headers });
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
static Anthropic = this;
|
|
892
|
+
static HUMAN_PROMPT = '\n\nHuman:';
|
|
893
|
+
static AI_PROMPT = '\n\nAssistant:';
|
|
894
|
+
static DEFAULT_TIMEOUT = 600000; // 10 minutes
|
|
895
|
+
|
|
896
|
+
static AnthropicError = Errors.AnthropicError;
|
|
897
|
+
static APIError = Errors.APIError;
|
|
898
|
+
static APIConnectionError = Errors.APIConnectionError;
|
|
899
|
+
static APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
900
|
+
static APIUserAbortError = Errors.APIUserAbortError;
|
|
901
|
+
static NotFoundError = Errors.NotFoundError;
|
|
902
|
+
static ConflictError = Errors.ConflictError;
|
|
903
|
+
static RateLimitError = Errors.RateLimitError;
|
|
904
|
+
static BadRequestError = Errors.BadRequestError;
|
|
905
|
+
static AuthenticationError = Errors.AuthenticationError;
|
|
906
|
+
static InternalServerError = Errors.InternalServerError;
|
|
907
|
+
static PermissionDeniedError = Errors.PermissionDeniedError;
|
|
908
|
+
static UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
909
|
+
|
|
910
|
+
static toFile = Uploads.toFile;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* API Client for interfacing with the Anthropic API.
|
|
915
|
+
*/
|
|
916
|
+
export class Anthropic extends BaseAnthropic {
|
|
917
|
+
completions: API.Completions = new API.Completions(this);
|
|
918
|
+
messages: API.Messages = new API.Messages(this);
|
|
919
|
+
models: API.Models = new API.Models(this);
|
|
920
|
+
beta: API.Beta = new API.Beta(this);
|
|
921
|
+
}
|
|
922
|
+
Anthropic.Completions = Completions;
|
|
923
|
+
Anthropic.Messages = Messages;
|
|
924
|
+
Anthropic.Models = Models;
|
|
925
|
+
Anthropic.Beta = Beta;
|
|
926
|
+
export declare namespace Anthropic {
|
|
927
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
928
|
+
|
|
929
|
+
export import Page = Pagination.Page;
|
|
930
|
+
export { type PageParams as PageParams, type PageResponse as PageResponse };
|
|
931
|
+
|
|
932
|
+
export {
|
|
933
|
+
Completions as Completions,
|
|
934
|
+
type Completion as Completion,
|
|
935
|
+
type CompletionCreateParams as CompletionCreateParams,
|
|
936
|
+
type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming,
|
|
937
|
+
type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming,
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
export {
|
|
941
|
+
Messages as Messages,
|
|
942
|
+
type Base64ImageSource as Base64ImageSource,
|
|
943
|
+
type Base64PDFSource as Base64PDFSource,
|
|
944
|
+
type CacheControlEphemeral as CacheControlEphemeral,
|
|
945
|
+
type CitationCharLocation as CitationCharLocation,
|
|
946
|
+
type CitationCharLocationParam as CitationCharLocationParam,
|
|
947
|
+
type CitationContentBlockLocation as CitationContentBlockLocation,
|
|
948
|
+
type CitationContentBlockLocationParam as CitationContentBlockLocationParam,
|
|
949
|
+
type CitationPageLocation as CitationPageLocation,
|
|
950
|
+
type CitationPageLocationParam as CitationPageLocationParam,
|
|
951
|
+
type CitationWebSearchResultLocationParam as CitationWebSearchResultLocationParam,
|
|
952
|
+
type CitationsConfigParam as CitationsConfigParam,
|
|
953
|
+
type CitationsDelta as CitationsDelta,
|
|
954
|
+
type CitationsWebSearchResultLocation as CitationsWebSearchResultLocation,
|
|
955
|
+
type ContentBlock as ContentBlock,
|
|
956
|
+
type ContentBlockDeltaEvent as ContentBlockDeltaEvent,
|
|
957
|
+
type ContentBlockParam as ContentBlockParam,
|
|
958
|
+
type ContentBlockStartEvent as ContentBlockStartEvent,
|
|
959
|
+
type ContentBlockStopEvent as ContentBlockStopEvent,
|
|
960
|
+
type ContentBlockSource as ContentBlockSource,
|
|
961
|
+
type ContentBlockSourceContent as ContentBlockSourceContent,
|
|
962
|
+
type DocumentBlockParam as DocumentBlockParam,
|
|
963
|
+
type ImageBlockParam as ImageBlockParam,
|
|
964
|
+
type InputJSONDelta as InputJSONDelta,
|
|
965
|
+
type Message as Message,
|
|
966
|
+
type MessageCountTokensTool as MessageCountTokensTool,
|
|
967
|
+
type MessageDeltaEvent as MessageDeltaEvent,
|
|
968
|
+
type MessageDeltaUsage as MessageDeltaUsage,
|
|
969
|
+
type MessageParam as MessageParam,
|
|
970
|
+
type MessageStartEvent as MessageStartEvent,
|
|
971
|
+
type MessageStopEvent as MessageStopEvent,
|
|
972
|
+
type MessageStreamEvent as MessageStreamEvent,
|
|
973
|
+
type MessageTokensCount as MessageTokensCount,
|
|
974
|
+
type Metadata as Metadata,
|
|
975
|
+
type Model as Model,
|
|
976
|
+
type PlainTextSource as PlainTextSource,
|
|
977
|
+
type RawContentBlockDelta as RawContentBlockDelta,
|
|
978
|
+
type RawContentBlockDeltaEvent as RawContentBlockDeltaEvent,
|
|
979
|
+
type RawContentBlockStartEvent as RawContentBlockStartEvent,
|
|
980
|
+
type RawContentBlockStopEvent as RawContentBlockStopEvent,
|
|
981
|
+
type RawMessageDeltaEvent as RawMessageDeltaEvent,
|
|
982
|
+
type RawMessageStartEvent as RawMessageStartEvent,
|
|
983
|
+
type RawMessageStopEvent as RawMessageStopEvent,
|
|
984
|
+
type RawMessageStreamEvent as RawMessageStreamEvent,
|
|
985
|
+
type RedactedThinkingBlock as RedactedThinkingBlock,
|
|
986
|
+
type RedactedThinkingBlockParam as RedactedThinkingBlockParam,
|
|
987
|
+
type ServerToolUsage as ServerToolUsage,
|
|
988
|
+
type ServerToolUseBlock as ServerToolUseBlock,
|
|
989
|
+
type ServerToolUseBlockParam as ServerToolUseBlockParam,
|
|
990
|
+
type SignatureDelta as SignatureDelta,
|
|
991
|
+
type StopReason as StopReason,
|
|
992
|
+
type TextBlock as TextBlock,
|
|
993
|
+
type TextBlockParam as TextBlockParam,
|
|
994
|
+
type TextCitation as TextCitation,
|
|
995
|
+
type TextCitationParam as TextCitationParam,
|
|
996
|
+
type TextDelta as TextDelta,
|
|
997
|
+
type ThinkingBlock as ThinkingBlock,
|
|
998
|
+
type ThinkingBlockParam as ThinkingBlockParam,
|
|
999
|
+
type ThinkingConfigDisabled as ThinkingConfigDisabled,
|
|
1000
|
+
type ThinkingConfigEnabled as ThinkingConfigEnabled,
|
|
1001
|
+
type ThinkingConfigParam as ThinkingConfigParam,
|
|
1002
|
+
type ThinkingDelta as ThinkingDelta,
|
|
1003
|
+
type Tool as Tool,
|
|
1004
|
+
type ToolBash20250124 as ToolBash20250124,
|
|
1005
|
+
type ToolChoice as ToolChoice,
|
|
1006
|
+
type ToolChoiceAny as ToolChoiceAny,
|
|
1007
|
+
type ToolChoiceAuto as ToolChoiceAuto,
|
|
1008
|
+
type ToolChoiceNone as ToolChoiceNone,
|
|
1009
|
+
type ToolChoiceTool as ToolChoiceTool,
|
|
1010
|
+
type ToolResultBlockParam as ToolResultBlockParam,
|
|
1011
|
+
type ToolTextEditor20250124 as ToolTextEditor20250124,
|
|
1012
|
+
type ToolUnion as ToolUnion,
|
|
1013
|
+
type ToolUseBlock as ToolUseBlock,
|
|
1014
|
+
type ToolUseBlockParam as ToolUseBlockParam,
|
|
1015
|
+
type URLImageSource as URLImageSource,
|
|
1016
|
+
type URLPDFSource as URLPDFSource,
|
|
1017
|
+
type Usage as Usage,
|
|
1018
|
+
type WebSearchResultBlock as WebSearchResultBlock,
|
|
1019
|
+
type WebSearchResultBlockParam as WebSearchResultBlockParam,
|
|
1020
|
+
type WebSearchTool20250305 as WebSearchTool20250305,
|
|
1021
|
+
type WebSearchToolRequestError as WebSearchToolRequestError,
|
|
1022
|
+
type WebSearchToolResultBlock as WebSearchToolResultBlock,
|
|
1023
|
+
type WebSearchToolResultBlockContent as WebSearchToolResultBlockContent,
|
|
1024
|
+
type WebSearchToolResultBlockParam as WebSearchToolResultBlockParam,
|
|
1025
|
+
type WebSearchToolResultBlockParamContent as WebSearchToolResultBlockParamContent,
|
|
1026
|
+
type WebSearchToolResultError as WebSearchToolResultError,
|
|
1027
|
+
type MessageCreateParams as MessageCreateParams,
|
|
1028
|
+
type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming,
|
|
1029
|
+
type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
|
|
1030
|
+
type MessageStreamParams as MessageStreamParams,
|
|
1031
|
+
type MessageCountTokensParams as MessageCountTokensParams,
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
export {
|
|
1035
|
+
Models as Models,
|
|
1036
|
+
type ModelInfo as ModelInfo,
|
|
1037
|
+
type ModelInfosPage as ModelInfosPage,
|
|
1038
|
+
type ModelRetrieveParams as ModelRetrieveParams,
|
|
1039
|
+
type ModelListParams as ModelListParams,
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
export {
|
|
1043
|
+
Beta as Beta,
|
|
1044
|
+
type AnthropicBeta as AnthropicBeta,
|
|
1045
|
+
type BetaAPIError as BetaAPIError,
|
|
1046
|
+
type BetaAuthenticationError as BetaAuthenticationError,
|
|
1047
|
+
type BetaBillingError as BetaBillingError,
|
|
1048
|
+
type BetaError as BetaError,
|
|
1049
|
+
type BetaErrorResponse as BetaErrorResponse,
|
|
1050
|
+
type BetaGatewayTimeoutError as BetaGatewayTimeoutError,
|
|
1051
|
+
type BetaInvalidRequestError as BetaInvalidRequestError,
|
|
1052
|
+
type BetaNotFoundError as BetaNotFoundError,
|
|
1053
|
+
type BetaOverloadedError as BetaOverloadedError,
|
|
1054
|
+
type BetaPermissionError as BetaPermissionError,
|
|
1055
|
+
type BetaRateLimitError as BetaRateLimitError,
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
export type APIErrorObject = API.APIErrorObject;
|
|
1059
|
+
export type AuthenticationError = API.AuthenticationError;
|
|
1060
|
+
export type BillingError = API.BillingError;
|
|
1061
|
+
export type ErrorObject = API.ErrorObject;
|
|
1062
|
+
export type ErrorResponse = API.ErrorResponse;
|
|
1063
|
+
export type GatewayTimeoutError = API.GatewayTimeoutError;
|
|
1064
|
+
export type InvalidRequestError = API.InvalidRequestError;
|
|
1065
|
+
export type NotFoundError = API.NotFoundError;
|
|
1066
|
+
export type OverloadedError = API.OverloadedError;
|
|
1067
|
+
export type PermissionError = API.PermissionError;
|
|
1068
|
+
export type RateLimitError = API.RateLimitError;
|
|
1069
|
+
}
|
|
1070
|
+
export const { HUMAN_PROMPT, AI_PROMPT } = Anthropic;
|