gsd-pi 2.55.0-dev.9ec7cdf → 2.56.0-dev.603f970
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 +2 -4
- 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-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/complexity-classifier.js +1 -0
- package/dist/resources/extensions/gsd/dashboard-overlay.js +2 -0
- package/dist/resources/extensions/gsd/docs/preferences-reference.md +4 -2
- package/dist/resources/extensions/gsd/guided-flow.js +17 -16
- package/dist/resources/extensions/gsd/metrics.js +4 -1
- package/dist/resources/extensions/gsd/preferences-models.js +12 -0
- package/dist/resources/extensions/gsd/roadmap-slices.js +1 -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 +17 -17
- package/dist/web/standalone/.next/build-manifest.json +2 -2
- package/dist/web/standalone/.next/prerender-manifest.json +3 -3
- 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/browse-directories/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 +17 -17
- package/dist/web/standalone/.next/server/chunks/2229.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/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/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-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/complexity-classifier.ts +1 -0
- package/src/resources/extensions/gsd/dashboard-overlay.ts +2 -0
- package/src/resources/extensions/gsd/docs/preferences-reference.md +4 -2
- package/src/resources/extensions/gsd/guided-flow.ts +17 -16
- package/src/resources/extensions/gsd/metrics.ts +5 -2
- 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/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/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/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/subagent/agents.ts +8 -2
- /package/dist/web/standalone/.next/static/{k92jvAf8IfV4dZE3nnrAr → 3XCsmJU9i9WebfYynW_BO}/_buildManifest.js +0 -0
- /package/dist/web/standalone/.next/static/{k92jvAf8IfV4dZE3nnrAr → 3XCsmJU9i9WebfYynW_BO}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _MessageStream_instances, _MessageStream_currentMessageSnapshot, _MessageStream_connectedPromise, _MessageStream_resolveConnectedPromise, _MessageStream_rejectConnectedPromise, _MessageStream_endPromise, _MessageStream_resolveEndPromise, _MessageStream_rejectEndPromise, _MessageStream_listeners, _MessageStream_ended, _MessageStream_errored, _MessageStream_aborted, _MessageStream_catchingPromiseCreated, _MessageStream_response, _MessageStream_request_id, _MessageStream_getFinalMessage, _MessageStream_getFinalText, _MessageStream_handleError, _MessageStream_beginRequest, _MessageStream_addStreamEvent, _MessageStream_endRequest, _MessageStream_accumulateMessage;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MessageStream = void 0;
|
|
5
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
6
|
+
const errors_1 = require("../internal/errors.js");
|
|
7
|
+
const error_1 = require("../error.js");
|
|
8
|
+
const streaming_1 = require("../streaming.js");
|
|
9
|
+
const parser_1 = require("../_vendor/partial-json-parser/parser.js");
|
|
10
|
+
const JSON_BUF_PROPERTY = '__json_buf';
|
|
11
|
+
class MessageStream {
|
|
12
|
+
constructor() {
|
|
13
|
+
_MessageStream_instances.add(this);
|
|
14
|
+
this.messages = [];
|
|
15
|
+
this.receivedMessages = [];
|
|
16
|
+
_MessageStream_currentMessageSnapshot.set(this, void 0);
|
|
17
|
+
this.controller = new AbortController();
|
|
18
|
+
_MessageStream_connectedPromise.set(this, void 0);
|
|
19
|
+
_MessageStream_resolveConnectedPromise.set(this, () => { });
|
|
20
|
+
_MessageStream_rejectConnectedPromise.set(this, () => { });
|
|
21
|
+
_MessageStream_endPromise.set(this, void 0);
|
|
22
|
+
_MessageStream_resolveEndPromise.set(this, () => { });
|
|
23
|
+
_MessageStream_rejectEndPromise.set(this, () => { });
|
|
24
|
+
_MessageStream_listeners.set(this, {});
|
|
25
|
+
_MessageStream_ended.set(this, false);
|
|
26
|
+
_MessageStream_errored.set(this, false);
|
|
27
|
+
_MessageStream_aborted.set(this, false);
|
|
28
|
+
_MessageStream_catchingPromiseCreated.set(this, false);
|
|
29
|
+
_MessageStream_response.set(this, void 0);
|
|
30
|
+
_MessageStream_request_id.set(this, void 0);
|
|
31
|
+
_MessageStream_handleError.set(this, (error) => {
|
|
32
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_errored, true, "f");
|
|
33
|
+
if ((0, errors_1.isAbortError)(error)) {
|
|
34
|
+
error = new error_1.APIUserAbortError();
|
|
35
|
+
}
|
|
36
|
+
if (error instanceof error_1.APIUserAbortError) {
|
|
37
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_aborted, true, "f");
|
|
38
|
+
return this._emit('abort', error);
|
|
39
|
+
}
|
|
40
|
+
if (error instanceof error_1.AnthropicError) {
|
|
41
|
+
return this._emit('error', error);
|
|
42
|
+
}
|
|
43
|
+
if (error instanceof Error) {
|
|
44
|
+
const anthropicError = new error_1.AnthropicError(error.message);
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
anthropicError.cause = error;
|
|
47
|
+
return this._emit('error', anthropicError);
|
|
48
|
+
}
|
|
49
|
+
return this._emit('error', new error_1.AnthropicError(String(error)));
|
|
50
|
+
});
|
|
51
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_connectedPromise, new Promise((resolve, reject) => {
|
|
52
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_resolveConnectedPromise, resolve, "f");
|
|
53
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_rejectConnectedPromise, reject, "f");
|
|
54
|
+
}), "f");
|
|
55
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_endPromise, new Promise((resolve, reject) => {
|
|
56
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_resolveEndPromise, resolve, "f");
|
|
57
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_rejectEndPromise, reject, "f");
|
|
58
|
+
}), "f");
|
|
59
|
+
// Don't let these promises cause unhandled rejection errors.
|
|
60
|
+
// we will manually cause an unhandled rejection error later
|
|
61
|
+
// if the user hasn't registered any error listener or called
|
|
62
|
+
// any promise-returning method.
|
|
63
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_connectedPromise, "f").catch(() => { });
|
|
64
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_endPromise, "f").catch(() => { });
|
|
65
|
+
}
|
|
66
|
+
get response() {
|
|
67
|
+
return tslib_1.__classPrivateFieldGet(this, _MessageStream_response, "f");
|
|
68
|
+
}
|
|
69
|
+
get request_id() {
|
|
70
|
+
return tslib_1.__classPrivateFieldGet(this, _MessageStream_request_id, "f");
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns the `MessageStream` data, the raw `Response` instance and the ID of the request,
|
|
74
|
+
* returned vie the `request-id` header which is useful for debugging requests and resporting
|
|
75
|
+
* issues to Anthropic.
|
|
76
|
+
*
|
|
77
|
+
* This is the same as the `APIPromise.withResponse()` method.
|
|
78
|
+
*
|
|
79
|
+
* This method will raise an error if you created the stream using `MessageStream.fromReadableStream`
|
|
80
|
+
* as no `Response` is available.
|
|
81
|
+
*/
|
|
82
|
+
async withResponse() {
|
|
83
|
+
const response = await tslib_1.__classPrivateFieldGet(this, _MessageStream_connectedPromise, "f");
|
|
84
|
+
if (!response) {
|
|
85
|
+
throw new Error('Could not resolve a `Response` object');
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
data: this,
|
|
89
|
+
response,
|
|
90
|
+
request_id: response.headers.get('request-id'),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Intended for use on the frontend, consuming a stream produced with
|
|
95
|
+
* `.toReadableStream()` on the backend.
|
|
96
|
+
*
|
|
97
|
+
* Note that messages sent to the model do not appear in `.on('message')`
|
|
98
|
+
* in this context.
|
|
99
|
+
*/
|
|
100
|
+
static fromReadableStream(stream) {
|
|
101
|
+
const runner = new MessageStream();
|
|
102
|
+
runner._run(() => runner._fromReadableStream(stream));
|
|
103
|
+
return runner;
|
|
104
|
+
}
|
|
105
|
+
static createMessage(messages, params, options) {
|
|
106
|
+
const runner = new MessageStream();
|
|
107
|
+
for (const message of params.messages) {
|
|
108
|
+
runner._addMessageParam(message);
|
|
109
|
+
}
|
|
110
|
+
runner._run(() => runner._createMessage(messages, { ...params, stream: true }, { ...options, headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'stream' } }));
|
|
111
|
+
return runner;
|
|
112
|
+
}
|
|
113
|
+
_run(executor) {
|
|
114
|
+
executor().then(() => {
|
|
115
|
+
this._emitFinal();
|
|
116
|
+
this._emit('end');
|
|
117
|
+
}, tslib_1.__classPrivateFieldGet(this, _MessageStream_handleError, "f"));
|
|
118
|
+
}
|
|
119
|
+
_addMessageParam(message) {
|
|
120
|
+
this.messages.push(message);
|
|
121
|
+
}
|
|
122
|
+
_addMessage(message, emit = true) {
|
|
123
|
+
this.receivedMessages.push(message);
|
|
124
|
+
if (emit) {
|
|
125
|
+
this._emit('message', message);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
async _createMessage(messages, params, options) {
|
|
129
|
+
const signal = options?.signal;
|
|
130
|
+
if (signal) {
|
|
131
|
+
if (signal.aborted)
|
|
132
|
+
this.controller.abort();
|
|
133
|
+
signal.addEventListener('abort', () => this.controller.abort());
|
|
134
|
+
}
|
|
135
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_beginRequest).call(this);
|
|
136
|
+
const { response, data: stream } = await messages
|
|
137
|
+
.create({ ...params, stream: true }, { ...options, signal: this.controller.signal })
|
|
138
|
+
.withResponse();
|
|
139
|
+
this._connected(response);
|
|
140
|
+
for await (const event of stream) {
|
|
141
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_addStreamEvent).call(this, event);
|
|
142
|
+
}
|
|
143
|
+
if (stream.controller.signal?.aborted) {
|
|
144
|
+
throw new error_1.APIUserAbortError();
|
|
145
|
+
}
|
|
146
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_endRequest).call(this);
|
|
147
|
+
}
|
|
148
|
+
_connected(response) {
|
|
149
|
+
if (this.ended)
|
|
150
|
+
return;
|
|
151
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_response, response, "f");
|
|
152
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_request_id, response?.headers.get('request-id'), "f");
|
|
153
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_resolveConnectedPromise, "f").call(this, response);
|
|
154
|
+
this._emit('connect');
|
|
155
|
+
}
|
|
156
|
+
get ended() {
|
|
157
|
+
return tslib_1.__classPrivateFieldGet(this, _MessageStream_ended, "f");
|
|
158
|
+
}
|
|
159
|
+
get errored() {
|
|
160
|
+
return tslib_1.__classPrivateFieldGet(this, _MessageStream_errored, "f");
|
|
161
|
+
}
|
|
162
|
+
get aborted() {
|
|
163
|
+
return tslib_1.__classPrivateFieldGet(this, _MessageStream_aborted, "f");
|
|
164
|
+
}
|
|
165
|
+
abort() {
|
|
166
|
+
this.controller.abort();
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Adds the listener function to the end of the listeners array for the event.
|
|
170
|
+
* No checks are made to see if the listener has already been added. Multiple calls passing
|
|
171
|
+
* the same combination of event and listener will result in the listener being added, and
|
|
172
|
+
* called, multiple times.
|
|
173
|
+
* @returns this MessageStream, so that calls can be chained
|
|
174
|
+
*/
|
|
175
|
+
on(event, listener) {
|
|
176
|
+
const listeners = tslib_1.__classPrivateFieldGet(this, _MessageStream_listeners, "f")[event] || (tslib_1.__classPrivateFieldGet(this, _MessageStream_listeners, "f")[event] = []);
|
|
177
|
+
listeners.push({ listener });
|
|
178
|
+
return this;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Removes the specified listener from the listener array for the event.
|
|
182
|
+
* off() will remove, at most, one instance of a listener from the listener array. If any single
|
|
183
|
+
* listener has been added multiple times to the listener array for the specified event, then
|
|
184
|
+
* off() must be called multiple times to remove each instance.
|
|
185
|
+
* @returns this MessageStream, so that calls can be chained
|
|
186
|
+
*/
|
|
187
|
+
off(event, listener) {
|
|
188
|
+
const listeners = tslib_1.__classPrivateFieldGet(this, _MessageStream_listeners, "f")[event];
|
|
189
|
+
if (!listeners)
|
|
190
|
+
return this;
|
|
191
|
+
const index = listeners.findIndex((l) => l.listener === listener);
|
|
192
|
+
if (index >= 0)
|
|
193
|
+
listeners.splice(index, 1);
|
|
194
|
+
return this;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Adds a one-time listener function for the event. The next time the event is triggered,
|
|
198
|
+
* this listener is removed and then invoked.
|
|
199
|
+
* @returns this MessageStream, so that calls can be chained
|
|
200
|
+
*/
|
|
201
|
+
once(event, listener) {
|
|
202
|
+
const listeners = tslib_1.__classPrivateFieldGet(this, _MessageStream_listeners, "f")[event] || (tslib_1.__classPrivateFieldGet(this, _MessageStream_listeners, "f")[event] = []);
|
|
203
|
+
listeners.push({ listener, once: true });
|
|
204
|
+
return this;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* This is similar to `.once()`, but returns a Promise that resolves the next time
|
|
208
|
+
* the event is triggered, instead of calling a listener callback.
|
|
209
|
+
* @returns a Promise that resolves the next time given event is triggered,
|
|
210
|
+
* or rejects if an error is emitted. (If you request the 'error' event,
|
|
211
|
+
* returns a promise that resolves with the error).
|
|
212
|
+
*
|
|
213
|
+
* Example:
|
|
214
|
+
*
|
|
215
|
+
* const message = await stream.emitted('message') // rejects if the stream errors
|
|
216
|
+
*/
|
|
217
|
+
emitted(event) {
|
|
218
|
+
return new Promise((resolve, reject) => {
|
|
219
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_catchingPromiseCreated, true, "f");
|
|
220
|
+
if (event !== 'error')
|
|
221
|
+
this.once('error', reject);
|
|
222
|
+
this.once(event, resolve);
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
async done() {
|
|
226
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_catchingPromiseCreated, true, "f");
|
|
227
|
+
await tslib_1.__classPrivateFieldGet(this, _MessageStream_endPromise, "f");
|
|
228
|
+
}
|
|
229
|
+
get currentMessage() {
|
|
230
|
+
return tslib_1.__classPrivateFieldGet(this, _MessageStream_currentMessageSnapshot, "f");
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* @returns a promise that resolves with the the final assistant Message response,
|
|
234
|
+
* or rejects if an error occurred or the stream ended prematurely without producing a Message.
|
|
235
|
+
*/
|
|
236
|
+
async finalMessage() {
|
|
237
|
+
await this.done();
|
|
238
|
+
return tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_getFinalMessage).call(this);
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* @returns a promise that resolves with the the final assistant Message's text response, concatenated
|
|
242
|
+
* together if there are more than one text blocks.
|
|
243
|
+
* Rejects if an error occurred or the stream ended prematurely without producing a Message.
|
|
244
|
+
*/
|
|
245
|
+
async finalText() {
|
|
246
|
+
await this.done();
|
|
247
|
+
return tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_getFinalText).call(this);
|
|
248
|
+
}
|
|
249
|
+
_emit(event, ...args) {
|
|
250
|
+
// make sure we don't emit any MessageStreamEvents after end
|
|
251
|
+
if (tslib_1.__classPrivateFieldGet(this, _MessageStream_ended, "f"))
|
|
252
|
+
return;
|
|
253
|
+
if (event === 'end') {
|
|
254
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_ended, true, "f");
|
|
255
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_resolveEndPromise, "f").call(this);
|
|
256
|
+
}
|
|
257
|
+
const listeners = tslib_1.__classPrivateFieldGet(this, _MessageStream_listeners, "f")[event];
|
|
258
|
+
if (listeners) {
|
|
259
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_listeners, "f")[event] = listeners.filter((l) => !l.once);
|
|
260
|
+
listeners.forEach(({ listener }) => listener(...args));
|
|
261
|
+
}
|
|
262
|
+
if (event === 'abort') {
|
|
263
|
+
const error = args[0];
|
|
264
|
+
if (!tslib_1.__classPrivateFieldGet(this, _MessageStream_catchingPromiseCreated, "f") && !listeners?.length) {
|
|
265
|
+
Promise.reject(error);
|
|
266
|
+
}
|
|
267
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_rejectConnectedPromise, "f").call(this, error);
|
|
268
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_rejectEndPromise, "f").call(this, error);
|
|
269
|
+
this._emit('end');
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
if (event === 'error') {
|
|
273
|
+
// NOTE: _emit('error', error) should only be called from #handleError().
|
|
274
|
+
const error = args[0];
|
|
275
|
+
if (!tslib_1.__classPrivateFieldGet(this, _MessageStream_catchingPromiseCreated, "f") && !listeners?.length) {
|
|
276
|
+
// Trigger an unhandled rejection if the user hasn't registered any error handlers.
|
|
277
|
+
// If you are seeing stack traces here, make sure to handle errors via either:
|
|
278
|
+
// - runner.on('error', () => ...)
|
|
279
|
+
// - await runner.done()
|
|
280
|
+
// - await runner.final...()
|
|
281
|
+
// - etc.
|
|
282
|
+
Promise.reject(error);
|
|
283
|
+
}
|
|
284
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_rejectConnectedPromise, "f").call(this, error);
|
|
285
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_rejectEndPromise, "f").call(this, error);
|
|
286
|
+
this._emit('end');
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
_emitFinal() {
|
|
290
|
+
const finalMessage = this.receivedMessages.at(-1);
|
|
291
|
+
if (finalMessage) {
|
|
292
|
+
this._emit('finalMessage', tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_getFinalMessage).call(this));
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
async _fromReadableStream(readableStream, options) {
|
|
296
|
+
const signal = options?.signal;
|
|
297
|
+
if (signal) {
|
|
298
|
+
if (signal.aborted)
|
|
299
|
+
this.controller.abort();
|
|
300
|
+
signal.addEventListener('abort', () => this.controller.abort());
|
|
301
|
+
}
|
|
302
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_beginRequest).call(this);
|
|
303
|
+
this._connected(null);
|
|
304
|
+
const stream = streaming_1.Stream.fromReadableStream(readableStream, this.controller);
|
|
305
|
+
for await (const event of stream) {
|
|
306
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_addStreamEvent).call(this, event);
|
|
307
|
+
}
|
|
308
|
+
if (stream.controller.signal?.aborted) {
|
|
309
|
+
throw new error_1.APIUserAbortError();
|
|
310
|
+
}
|
|
311
|
+
tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_endRequest).call(this);
|
|
312
|
+
}
|
|
313
|
+
[(_MessageStream_currentMessageSnapshot = new WeakMap(), _MessageStream_connectedPromise = new WeakMap(), _MessageStream_resolveConnectedPromise = new WeakMap(), _MessageStream_rejectConnectedPromise = new WeakMap(), _MessageStream_endPromise = new WeakMap(), _MessageStream_resolveEndPromise = new WeakMap(), _MessageStream_rejectEndPromise = new WeakMap(), _MessageStream_listeners = new WeakMap(), _MessageStream_ended = new WeakMap(), _MessageStream_errored = new WeakMap(), _MessageStream_aborted = new WeakMap(), _MessageStream_catchingPromiseCreated = new WeakMap(), _MessageStream_response = new WeakMap(), _MessageStream_request_id = new WeakMap(), _MessageStream_handleError = new WeakMap(), _MessageStream_instances = new WeakSet(), _MessageStream_getFinalMessage = function _MessageStream_getFinalMessage() {
|
|
314
|
+
if (this.receivedMessages.length === 0) {
|
|
315
|
+
throw new error_1.AnthropicError('stream ended without producing a Message with role=assistant');
|
|
316
|
+
}
|
|
317
|
+
return this.receivedMessages.at(-1);
|
|
318
|
+
}, _MessageStream_getFinalText = function _MessageStream_getFinalText() {
|
|
319
|
+
if (this.receivedMessages.length === 0) {
|
|
320
|
+
throw new error_1.AnthropicError('stream ended without producing a Message with role=assistant');
|
|
321
|
+
}
|
|
322
|
+
const textBlocks = this.receivedMessages
|
|
323
|
+
.at(-1)
|
|
324
|
+
.content.filter((block) => block.type === 'text')
|
|
325
|
+
.map((block) => block.text);
|
|
326
|
+
if (textBlocks.length === 0) {
|
|
327
|
+
throw new error_1.AnthropicError('stream ended without producing a content block with type=text');
|
|
328
|
+
}
|
|
329
|
+
return textBlocks.join(' ');
|
|
330
|
+
}, _MessageStream_beginRequest = function _MessageStream_beginRequest() {
|
|
331
|
+
if (this.ended)
|
|
332
|
+
return;
|
|
333
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_currentMessageSnapshot, undefined, "f");
|
|
334
|
+
}, _MessageStream_addStreamEvent = function _MessageStream_addStreamEvent(event) {
|
|
335
|
+
if (this.ended)
|
|
336
|
+
return;
|
|
337
|
+
const messageSnapshot = tslib_1.__classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_accumulateMessage).call(this, event);
|
|
338
|
+
this._emit('streamEvent', event, messageSnapshot);
|
|
339
|
+
switch (event.type) {
|
|
340
|
+
case 'content_block_delta': {
|
|
341
|
+
const content = messageSnapshot.content.at(-1);
|
|
342
|
+
switch (event.delta.type) {
|
|
343
|
+
case 'text_delta': {
|
|
344
|
+
if (content.type === 'text') {
|
|
345
|
+
this._emit('text', event.delta.text, content.text || '');
|
|
346
|
+
}
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
case 'citations_delta': {
|
|
350
|
+
if (content.type === 'text') {
|
|
351
|
+
this._emit('citation', event.delta.citation, content.citations ?? []);
|
|
352
|
+
}
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
case 'input_json_delta': {
|
|
356
|
+
if (content.type === 'tool_use' && content.input) {
|
|
357
|
+
this._emit('inputJson', event.delta.partial_json, content.input);
|
|
358
|
+
}
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
case 'thinking_delta': {
|
|
362
|
+
if (content.type === 'thinking') {
|
|
363
|
+
this._emit('thinking', event.delta.thinking, content.thinking);
|
|
364
|
+
}
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
case 'signature_delta': {
|
|
368
|
+
if (content.type === 'thinking') {
|
|
369
|
+
this._emit('signature', content.signature);
|
|
370
|
+
}
|
|
371
|
+
break;
|
|
372
|
+
}
|
|
373
|
+
default:
|
|
374
|
+
checkNever(event.delta);
|
|
375
|
+
}
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
case 'message_stop': {
|
|
379
|
+
this._addMessageParam(messageSnapshot);
|
|
380
|
+
this._addMessage(messageSnapshot, true);
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
case 'content_block_stop': {
|
|
384
|
+
this._emit('contentBlock', messageSnapshot.content.at(-1));
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
case 'message_start': {
|
|
388
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_currentMessageSnapshot, messageSnapshot, "f");
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
case 'content_block_start':
|
|
392
|
+
case 'message_delta':
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
}, _MessageStream_endRequest = function _MessageStream_endRequest() {
|
|
396
|
+
if (this.ended) {
|
|
397
|
+
throw new error_1.AnthropicError(`stream has ended, this shouldn't happen`);
|
|
398
|
+
}
|
|
399
|
+
const snapshot = tslib_1.__classPrivateFieldGet(this, _MessageStream_currentMessageSnapshot, "f");
|
|
400
|
+
if (!snapshot) {
|
|
401
|
+
throw new error_1.AnthropicError(`request ended without sending any chunks`);
|
|
402
|
+
}
|
|
403
|
+
tslib_1.__classPrivateFieldSet(this, _MessageStream_currentMessageSnapshot, undefined, "f");
|
|
404
|
+
return snapshot;
|
|
405
|
+
}, _MessageStream_accumulateMessage = function _MessageStream_accumulateMessage(event) {
|
|
406
|
+
let snapshot = tslib_1.__classPrivateFieldGet(this, _MessageStream_currentMessageSnapshot, "f");
|
|
407
|
+
if (event.type === 'message_start') {
|
|
408
|
+
if (snapshot) {
|
|
409
|
+
throw new error_1.AnthropicError(`Unexpected event order, got ${event.type} before receiving "message_stop"`);
|
|
410
|
+
}
|
|
411
|
+
return event.message;
|
|
412
|
+
}
|
|
413
|
+
if (!snapshot) {
|
|
414
|
+
throw new error_1.AnthropicError(`Unexpected event order, got ${event.type} before "message_start"`);
|
|
415
|
+
}
|
|
416
|
+
switch (event.type) {
|
|
417
|
+
case 'message_stop':
|
|
418
|
+
return snapshot;
|
|
419
|
+
case 'message_delta':
|
|
420
|
+
snapshot.stop_reason = event.delta.stop_reason;
|
|
421
|
+
snapshot.stop_sequence = event.delta.stop_sequence;
|
|
422
|
+
snapshot.usage.output_tokens = event.usage.output_tokens;
|
|
423
|
+
// Update other usage fields if they exist in the event
|
|
424
|
+
if (event.usage.input_tokens != null) {
|
|
425
|
+
snapshot.usage.input_tokens = event.usage.input_tokens;
|
|
426
|
+
}
|
|
427
|
+
if (event.usage.cache_creation_input_tokens != null) {
|
|
428
|
+
snapshot.usage.cache_creation_input_tokens = event.usage.cache_creation_input_tokens;
|
|
429
|
+
}
|
|
430
|
+
if (event.usage.cache_read_input_tokens != null) {
|
|
431
|
+
snapshot.usage.cache_read_input_tokens = event.usage.cache_read_input_tokens;
|
|
432
|
+
}
|
|
433
|
+
if (event.usage.server_tool_use != null) {
|
|
434
|
+
snapshot.usage.server_tool_use = event.usage.server_tool_use;
|
|
435
|
+
}
|
|
436
|
+
return snapshot;
|
|
437
|
+
case 'content_block_start':
|
|
438
|
+
snapshot.content.push(event.content_block);
|
|
439
|
+
return snapshot;
|
|
440
|
+
case 'content_block_delta': {
|
|
441
|
+
const snapshotContent = snapshot.content.at(event.index);
|
|
442
|
+
switch (event.delta.type) {
|
|
443
|
+
case 'text_delta': {
|
|
444
|
+
if (snapshotContent?.type === 'text') {
|
|
445
|
+
snapshotContent.text += event.delta.text;
|
|
446
|
+
}
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
449
|
+
case 'citations_delta': {
|
|
450
|
+
if (snapshotContent?.type === 'text') {
|
|
451
|
+
snapshotContent.citations ?? (snapshotContent.citations = []);
|
|
452
|
+
snapshotContent.citations.push(event.delta.citation);
|
|
453
|
+
}
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
case 'input_json_delta': {
|
|
457
|
+
if (snapshotContent?.type === 'tool_use') {
|
|
458
|
+
// we need to keep track of the raw JSON string as well so that we can
|
|
459
|
+
// re-parse it for each delta, for now we just store it as an untyped
|
|
460
|
+
// non-enumerable property on the snapshot
|
|
461
|
+
let jsonBuf = snapshotContent[JSON_BUF_PROPERTY] || '';
|
|
462
|
+
jsonBuf += event.delta.partial_json;
|
|
463
|
+
Object.defineProperty(snapshotContent, JSON_BUF_PROPERTY, {
|
|
464
|
+
value: jsonBuf,
|
|
465
|
+
enumerable: false,
|
|
466
|
+
writable: true,
|
|
467
|
+
});
|
|
468
|
+
if (jsonBuf) {
|
|
469
|
+
snapshotContent.input = (0, parser_1.partialParse)(jsonBuf);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
case 'thinking_delta': {
|
|
475
|
+
if (snapshotContent?.type === 'thinking') {
|
|
476
|
+
snapshotContent.thinking += event.delta.thinking;
|
|
477
|
+
}
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
case 'signature_delta': {
|
|
481
|
+
if (snapshotContent?.type === 'thinking') {
|
|
482
|
+
snapshotContent.signature = event.delta.signature;
|
|
483
|
+
}
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
default:
|
|
487
|
+
checkNever(event.delta);
|
|
488
|
+
}
|
|
489
|
+
return snapshot;
|
|
490
|
+
}
|
|
491
|
+
case 'content_block_stop':
|
|
492
|
+
return snapshot;
|
|
493
|
+
}
|
|
494
|
+
}, Symbol.asyncIterator)]() {
|
|
495
|
+
const pushQueue = [];
|
|
496
|
+
const readQueue = [];
|
|
497
|
+
let done = false;
|
|
498
|
+
this.on('streamEvent', (event) => {
|
|
499
|
+
const reader = readQueue.shift();
|
|
500
|
+
if (reader) {
|
|
501
|
+
reader.resolve(event);
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
pushQueue.push(event);
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
this.on('end', () => {
|
|
508
|
+
done = true;
|
|
509
|
+
for (const reader of readQueue) {
|
|
510
|
+
reader.resolve(undefined);
|
|
511
|
+
}
|
|
512
|
+
readQueue.length = 0;
|
|
513
|
+
});
|
|
514
|
+
this.on('abort', (err) => {
|
|
515
|
+
done = true;
|
|
516
|
+
for (const reader of readQueue) {
|
|
517
|
+
reader.reject(err);
|
|
518
|
+
}
|
|
519
|
+
readQueue.length = 0;
|
|
520
|
+
});
|
|
521
|
+
this.on('error', (err) => {
|
|
522
|
+
done = true;
|
|
523
|
+
for (const reader of readQueue) {
|
|
524
|
+
reader.reject(err);
|
|
525
|
+
}
|
|
526
|
+
readQueue.length = 0;
|
|
527
|
+
});
|
|
528
|
+
return {
|
|
529
|
+
next: async () => {
|
|
530
|
+
if (!pushQueue.length) {
|
|
531
|
+
if (done) {
|
|
532
|
+
return { value: undefined, done: true };
|
|
533
|
+
}
|
|
534
|
+
return new Promise((resolve, reject) => readQueue.push({ resolve, reject })).then((chunk) => (chunk ? { value: chunk, done: false } : { value: undefined, done: true }));
|
|
535
|
+
}
|
|
536
|
+
const chunk = pushQueue.shift();
|
|
537
|
+
return { value: chunk, done: false };
|
|
538
|
+
},
|
|
539
|
+
return: async () => {
|
|
540
|
+
this.abort();
|
|
541
|
+
return { value: undefined, done: true };
|
|
542
|
+
},
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
toReadableStream() {
|
|
546
|
+
const stream = new streaming_1.Stream(this[Symbol.asyncIterator].bind(this), this.controller);
|
|
547
|
+
return stream.toReadableStream();
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
exports.MessageStream = MessageStream;
|
|
551
|
+
// used to ensure exhaustive case matching without throwing a runtime error
|
|
552
|
+
function checkNever(x) { }
|
|
553
|
+
//# sourceMappingURL=MessageStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageStream.js","sourceRoot":"","sources":["../src/lib/MessageStream.ts"],"names":[],"mappings":";;;;;AAAA,kDAAkD;AAClD,uCAA6D;AAY7D,+CAAsC;AACtC,qEAAqE;AAyBrE,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAEvC,MAAa,aAAa;IAwBxB;;QAvBA,aAAQ,GAAmB,EAAE,CAAC;QAC9B,qBAAgB,GAAc,EAAE,CAAC;QACjC,wDAA6C;QAE7C,eAAU,GAAoB,IAAI,eAAe,EAAE,CAAC;QAEpD,kDAA4C;QAC5C,iDAAgE,GAAG,EAAE,GAAE,CAAC,EAAC;QACzE,gDAA2D,GAAG,EAAE,GAAE,CAAC,EAAC;QAEpE,4CAA2B;QAC3B,2CAAiC,GAAG,EAAE,GAAE,CAAC,EAAC;QAC1C,0CAAqD,GAAG,EAAE,GAAE,CAAC,EAAC;QAE9D,mCAA4F,EAAE,EAAC;QAE/F,+BAAS,KAAK,EAAC;QACf,iCAAW,KAAK,EAAC;QACjB,iCAAW,KAAK,EAAC;QACjB,gDAA0B,KAAK,EAAC;QAChC,0CAAuC;QACvC,4CAAuC;QA6QvC,qCAAe,CAAC,KAAc,EAAE,EAAE;YAChC,+BAAA,IAAI,0BAAY,IAAI,MAAA,CAAC;YACrB,IAAI,IAAA,qBAAY,EAAC,KAAK,CAAC,EAAE,CAAC;gBACxB,KAAK,GAAG,IAAI,yBAAiB,EAAE,CAAC;YAClC,CAAC;YACD,IAAI,KAAK,YAAY,yBAAiB,EAAE,CAAC;gBACvC,+BAAA,IAAI,0BAAY,IAAI,MAAA,CAAC;gBACrB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACpC,CAAC;YACD,IAAI,KAAK,YAAY,s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