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,171 @@
|
|
|
1
|
+
import { describe, it, beforeEach } from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { VerbosityManager, shouldShowAtLevel } from './verbosity.js';
|
|
4
|
+
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// VerbosityManager
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
describe('VerbosityManager', () => {
|
|
10
|
+
let vm: VerbosityManager;
|
|
11
|
+
|
|
12
|
+
beforeEach(() => {
|
|
13
|
+
vm = new VerbosityManager();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('returns default level for unknown channel', () => {
|
|
17
|
+
assert.equal(vm.getLevel('chan-1'), 'default');
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('set/get round-trips', () => {
|
|
21
|
+
vm.setLevel('chan-1', 'quiet');
|
|
22
|
+
assert.equal(vm.getLevel('chan-1'), 'quiet');
|
|
23
|
+
vm.setLevel('chan-1', 'verbose');
|
|
24
|
+
assert.equal(vm.getLevel('chan-1'), 'verbose');
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('different channels are independent', () => {
|
|
28
|
+
vm.setLevel('chan-a', 'quiet');
|
|
29
|
+
vm.setLevel('chan-b', 'verbose');
|
|
30
|
+
assert.equal(vm.getLevel('chan-a'), 'quiet');
|
|
31
|
+
assert.equal(vm.getLevel('chan-b'), 'verbose');
|
|
32
|
+
assert.equal(vm.getLevel('chan-c'), 'default');
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('shouldShow delegates to the level-based filter', () => {
|
|
36
|
+
vm.setLevel('chan-q', 'quiet');
|
|
37
|
+
assert.equal(vm.shouldShow('chan-q', 'tool_execution_start'), false);
|
|
38
|
+
assert.equal(vm.shouldShow('chan-q', 'extension_ui_request'), true);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
// shouldShowAtLevel — quiet
|
|
44
|
+
// ---------------------------------------------------------------------------
|
|
45
|
+
|
|
46
|
+
describe('shouldShowAtLevel — quiet', () => {
|
|
47
|
+
const level = 'quiet' as const;
|
|
48
|
+
|
|
49
|
+
it('shows blockers', () => {
|
|
50
|
+
assert.equal(shouldShowAtLevel(level, 'extension_ui_request'), true);
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it('shows execution_complete', () => {
|
|
54
|
+
assert.equal(shouldShowAtLevel(level, 'execution_complete'), true);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('shows error', () => {
|
|
58
|
+
assert.equal(shouldShowAtLevel(level, 'error'), true);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('shows session_error', () => {
|
|
62
|
+
assert.equal(shouldShowAtLevel(level, 'session_error'), true);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('hides tool calls', () => {
|
|
66
|
+
assert.equal(shouldShowAtLevel(level, 'tool_execution_start'), false);
|
|
67
|
+
assert.equal(shouldShowAtLevel(level, 'tool_execution_end'), false);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('hides messages', () => {
|
|
71
|
+
assert.equal(shouldShowAtLevel(level, 'message_start'), false);
|
|
72
|
+
assert.equal(shouldShowAtLevel(level, 'message'), false);
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
it('hides cost_update', () => {
|
|
76
|
+
assert.equal(shouldShowAtLevel(level, 'cost_update'), false);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it('hides task_transition', () => {
|
|
80
|
+
assert.equal(shouldShowAtLevel(level, 'task_transition'), false);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it('hides unknown events', () => {
|
|
84
|
+
assert.equal(shouldShowAtLevel(level, 'totally_random'), false);
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
// ---------------------------------------------------------------------------
|
|
89
|
+
// shouldShowAtLevel — default
|
|
90
|
+
// ---------------------------------------------------------------------------
|
|
91
|
+
|
|
92
|
+
describe('shouldShowAtLevel — default', () => {
|
|
93
|
+
const level = 'default' as const;
|
|
94
|
+
|
|
95
|
+
it('shows blockers', () => {
|
|
96
|
+
assert.equal(shouldShowAtLevel(level, 'extension_ui_request'), true);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it('shows execution_complete', () => {
|
|
100
|
+
assert.equal(shouldShowAtLevel(level, 'execution_complete'), true);
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
it('shows error', () => {
|
|
104
|
+
assert.equal(shouldShowAtLevel(level, 'error'), true);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
it('shows tool calls', () => {
|
|
108
|
+
assert.equal(shouldShowAtLevel(level, 'tool_execution_start'), true);
|
|
109
|
+
assert.equal(shouldShowAtLevel(level, 'tool_execution_end'), true);
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
it('shows messages', () => {
|
|
113
|
+
assert.equal(shouldShowAtLevel(level, 'message_start'), true);
|
|
114
|
+
assert.equal(shouldShowAtLevel(level, 'message_end'), true);
|
|
115
|
+
assert.equal(shouldShowAtLevel(level, 'message'), true);
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
it('shows task_transition', () => {
|
|
119
|
+
assert.equal(shouldShowAtLevel(level, 'task_transition'), true);
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
it('shows session_started', () => {
|
|
123
|
+
assert.equal(shouldShowAtLevel(level, 'session_started'), true);
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
it('hides cost_update', () => {
|
|
127
|
+
assert.equal(shouldShowAtLevel(level, 'cost_update'), false);
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it('hides status events', () => {
|
|
131
|
+
assert.equal(shouldShowAtLevel(level, 'state_update'), false);
|
|
132
|
+
assert.equal(shouldShowAtLevel(level, 'status'), false);
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
it('hides unknown events', () => {
|
|
136
|
+
assert.equal(shouldShowAtLevel(level, 'something_weird'), false);
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
// ---------------------------------------------------------------------------
|
|
141
|
+
// shouldShowAtLevel — verbose
|
|
142
|
+
// ---------------------------------------------------------------------------
|
|
143
|
+
|
|
144
|
+
describe('shouldShowAtLevel — verbose', () => {
|
|
145
|
+
const level = 'verbose' as const;
|
|
146
|
+
|
|
147
|
+
it('shows everything that quiet/default show', () => {
|
|
148
|
+
const events = [
|
|
149
|
+
'extension_ui_request', 'execution_complete', 'error', 'session_error',
|
|
150
|
+
'tool_execution_start', 'tool_execution_end', 'message_start', 'message_end',
|
|
151
|
+
'message', 'task_transition', 'session_started',
|
|
152
|
+
];
|
|
153
|
+
for (const e of events) {
|
|
154
|
+
assert.equal(shouldShowAtLevel(level, e), true, `Expected verbose to show ${e}`);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
it('shows cost_update', () => {
|
|
159
|
+
assert.equal(shouldShowAtLevel(level, 'cost_update'), true);
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
it('shows status events', () => {
|
|
163
|
+
assert.equal(shouldShowAtLevel(level, 'state_update'), true);
|
|
164
|
+
assert.equal(shouldShowAtLevel(level, 'status'), true);
|
|
165
|
+
assert.equal(shouldShowAtLevel(level, 'set_status'), true);
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
it('shows unknown/arbitrary events', () => {
|
|
169
|
+
assert.equal(shouldShowAtLevel(level, 'something_arbitrary'), true);
|
|
170
|
+
});
|
|
171
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* verbosity.ts — Per-channel verbosity filter for Discord event streaming.
|
|
3
|
+
*
|
|
4
|
+
* Controls which RPC event types reach each Discord channel.
|
|
5
|
+
* Three levels:
|
|
6
|
+
* - 'quiet': blockers, errors, completions only
|
|
7
|
+
* - 'default': tool calls, messages, transitions, blockers, errors, completions
|
|
8
|
+
* - 'verbose': everything (adds cost_update, status, generic events)
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { VerbosityLevel } from './types.js';
|
|
12
|
+
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
// Event classification
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
/** Event types that are always shown (even in quiet mode). */
|
|
18
|
+
const ALWAYS_SHOWN: ReadonlySet<string> = new Set([
|
|
19
|
+
'extension_ui_request', // blockers
|
|
20
|
+
'execution_complete',
|
|
21
|
+
'error',
|
|
22
|
+
'session_error',
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
/** Event types shown at default level and above. */
|
|
26
|
+
const DEFAULT_SHOWN: ReadonlySet<string> = new Set([
|
|
27
|
+
'tool_execution_start',
|
|
28
|
+
'tool_execution_end',
|
|
29
|
+
'message_start',
|
|
30
|
+
'message_end',
|
|
31
|
+
'message',
|
|
32
|
+
'task_transition',
|
|
33
|
+
'session_started',
|
|
34
|
+
]);
|
|
35
|
+
|
|
36
|
+
/** Event types shown only at verbose level. */
|
|
37
|
+
const VERBOSE_ONLY: ReadonlySet<string> = new Set([
|
|
38
|
+
'cost_update',
|
|
39
|
+
'state_update',
|
|
40
|
+
'status',
|
|
41
|
+
'set_status',
|
|
42
|
+
'set_widget',
|
|
43
|
+
'set_title',
|
|
44
|
+
]);
|
|
45
|
+
|
|
46
|
+
// ---------------------------------------------------------------------------
|
|
47
|
+
// VerbosityManager
|
|
48
|
+
// ---------------------------------------------------------------------------
|
|
49
|
+
|
|
50
|
+
export class VerbosityManager {
|
|
51
|
+
private levels: Map<string, VerbosityLevel> = new Map();
|
|
52
|
+
|
|
53
|
+
/** Get the verbosity level for a channel. Defaults to 'default'. */
|
|
54
|
+
getLevel(channelId: string): VerbosityLevel {
|
|
55
|
+
return this.levels.get(channelId) ?? 'default';
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Set the verbosity level for a channel. */
|
|
59
|
+
setLevel(channelId: string, level: VerbosityLevel): void {
|
|
60
|
+
this.levels.set(channelId, level);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Determine whether an event of the given type should be shown
|
|
65
|
+
* in the specified channel.
|
|
66
|
+
*/
|
|
67
|
+
shouldShow(channelId: string, eventType: string): boolean {
|
|
68
|
+
const level = this.getLevel(channelId);
|
|
69
|
+
return shouldShowAtLevel(level, eventType);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// ---------------------------------------------------------------------------
|
|
74
|
+
// Pure filter — exported for direct use and testability
|
|
75
|
+
// ---------------------------------------------------------------------------
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Pure predicate: should an event of this type be shown at the given verbosity level?
|
|
79
|
+
*/
|
|
80
|
+
export function shouldShowAtLevel(level: VerbosityLevel, eventType: string): boolean {
|
|
81
|
+
// Always-shown events pass through regardless of level
|
|
82
|
+
if (ALWAYS_SHOWN.has(eventType)) return true;
|
|
83
|
+
|
|
84
|
+
switch (level) {
|
|
85
|
+
case 'quiet':
|
|
86
|
+
// Quiet only shows ALWAYS_SHOWN events
|
|
87
|
+
return false;
|
|
88
|
+
|
|
89
|
+
case 'default':
|
|
90
|
+
// Default shows ALWAYS_SHOWN + DEFAULT_SHOWN
|
|
91
|
+
return DEFAULT_SHOWN.has(eventType);
|
|
92
|
+
|
|
93
|
+
case 'verbose':
|
|
94
|
+
// Verbose shows everything
|
|
95
|
+
return true;
|
|
96
|
+
|
|
97
|
+
default:
|
|
98
|
+
// Unknown level → treat as default
|
|
99
|
+
return DEFAULT_SHOWN.has(eventType);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2024",
|
|
4
|
+
"module": "Node16",
|
|
5
|
+
"lib": ["ES2024"],
|
|
6
|
+
"strict": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"declarationMap": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"inlineSources": true,
|
|
14
|
+
"inlineSourceMap": false,
|
|
15
|
+
"moduleResolution": "Node16",
|
|
16
|
+
"resolveJsonModule": true,
|
|
17
|
+
"allowImportingTsExtensions": false,
|
|
18
|
+
"types": ["node"],
|
|
19
|
+
"outDir": "./dist",
|
|
20
|
+
"rootDir": "./src"
|
|
21
|
+
},
|
|
22
|
+
"include": ["src/**/*.ts"],
|
|
23
|
+
"exclude": ["node_modules", "dist", "**/*.d.ts", "src/**/*.d.ts"]
|
|
24
|
+
}
|
|
@@ -169,5 +169,28 @@ export declare const CUSTOM_MODELS: {
|
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
+
readonly zai: {
|
|
173
|
+
readonly "glm-5.1": {
|
|
174
|
+
id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
api: "openai-completions";
|
|
177
|
+
provider: string;
|
|
178
|
+
baseUrl: string;
|
|
179
|
+
reasoning: true;
|
|
180
|
+
input: "text"[];
|
|
181
|
+
cost: {
|
|
182
|
+
input: number;
|
|
183
|
+
output: number;
|
|
184
|
+
cacheRead: number;
|
|
185
|
+
cacheWrite: number;
|
|
186
|
+
};
|
|
187
|
+
contextWindow: number;
|
|
188
|
+
maxTokens: number;
|
|
189
|
+
compat: {
|
|
190
|
+
thinkingFormat: "zai";
|
|
191
|
+
supportsDeveloperRole: false;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
172
195
|
};
|
|
173
196
|
//# sourceMappingURL=models.custom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.custom.d.ts","sourceRoot":"","sources":["../src/models.custom.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"models.custom.d.ts","sourceRoot":"","sources":["../src/models.custom.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqLhB,CAAC"}
|
|
@@ -166,5 +166,29 @@ export const CUSTOM_MODELS = {
|
|
|
166
166
|
compat: { thinkingFormat: "zai", supportsDeveloperRole: false },
|
|
167
167
|
},
|
|
168
168
|
},
|
|
169
|
+
// ─── Z.AI (GLM-5.1) ────────────────────────────────────────────────
|
|
170
|
+
// GLM-5.1 is the latest GLM model from Zhipu AI, not yet in models.dev.
|
|
171
|
+
// Uses the Z.AI Coding Plan endpoint (OpenAI-compatible).
|
|
172
|
+
// Ref: https://docs.z.ai/devpack/using5.1
|
|
173
|
+
"zai": {
|
|
174
|
+
"glm-5.1": {
|
|
175
|
+
id: "glm-5.1",
|
|
176
|
+
name: "GLM-5.1",
|
|
177
|
+
api: "openai-completions",
|
|
178
|
+
provider: "zai",
|
|
179
|
+
baseUrl: "https://api.z.ai/api/coding/paas/v4",
|
|
180
|
+
reasoning: true,
|
|
181
|
+
input: ["text"],
|
|
182
|
+
cost: {
|
|
183
|
+
input: 1,
|
|
184
|
+
output: 3.2,
|
|
185
|
+
cacheRead: 0.2,
|
|
186
|
+
cacheWrite: 0,
|
|
187
|
+
},
|
|
188
|
+
contextWindow: 204800,
|
|
189
|
+
maxTokens: 131072,
|
|
190
|
+
compat: { thinkingFormat: "zai", supportsDeveloperRole: false },
|
|
191
|
+
},
|
|
192
|
+
},
|
|
169
193
|
};
|
|
170
194
|
//# sourceMappingURL=models.custom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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AAS,EAAE,IAAI;YACf,KAAK,EAAE,CAAC,MAAM,CAAC;YACf,IAAI,EAAE;gBACL,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,CAAC;gBACT,SAAS,EAAE,CAAC;gBACZ,UAAU,EAAE,CAAC;aACb;YACD,aAAa,EAAE,MAAM;YACrB,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE;SACzB;KACvC;CACQ,CAAC","sourcesContent":["// Manually-maintained model definitions for providers NOT tracked by models.dev.\n//\n// The auto-generated file (models.generated.ts) is rebuilt from the models.dev\n// third-party catalog. Providers that use proprietary endpoints and are not\n// listed on models.dev must be defined here so they survive regeneration.\n//\n// See: https://github.com/gsd-build/gsd-2/issues/2339\n//\n// To add a custom provider:\n// 1. Add its model definitions below following the existing pattern.\n// 2. Add its API key mapping to env-api-keys.ts.\n// 3. Add its provider name to KnownProvider in types.ts (if not already there).\n\nimport type { Model } from \"./types.js\";\n\nexport const CUSTOM_MODELS = {\n\t// ─── Alibaba Coding Plan ─────────────────────────────────────────────\n\t// Direct Alibaba DashScope Coding Plan endpoint (OpenAI-compatible).\n\t// NOT the same as alibaba/* models on OpenRouter — different endpoint & auth.\n\t// Original PR: #295 | Fixes: #1003, #1055, #1057\n\t\"alibaba-coding-plan\": {\n\t\t\"qwen3.5-plus\": {\n\t\t\tid: \"qwen3.5-plus\",\n\t\t\tname: \"Qwen3.5 Plus\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 983616,\n\t\t\tmaxTokens: 65536,\n\t\t\tcompat: { thinkingFormat: \"qwen\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"qwen3-max-2026-01-23\": {\n\t\t\tid: \"qwen3-max-2026-01-23\",\n\t\t\tname: \"Qwen3 Max 2026-01-23\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 258048,\n\t\t\tmaxTokens: 32768,\n\t\t\tcompat: { thinkingFormat: \"qwen\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"qwen3-coder-next\": {\n\t\t\tid: \"qwen3-coder-next\",\n\t\t\tname: \"Qwen3 Coder Next\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: false,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 204800,\n\t\t\tmaxTokens: 65536,\n\t\t\tcompat: { supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"qwen3-coder-plus\": {\n\t\t\tid: \"qwen3-coder-plus\",\n\t\t\tname: \"Qwen3 Coder Plus\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: false,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 997952,\n\t\t\tmaxTokens: 65536,\n\t\t\tcompat: { supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"MiniMax-M2.5\": {\n\t\t\tid: \"MiniMax-M2.5\",\n\t\t\tname: \"MiniMax M2.5\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 196608,\n\t\t\tmaxTokens: 65536,\n\t\t\tcompat: {\n\t\t\t\tsupportsStore: false,\n\t\t\t\tsupportsDeveloperRole: false,\n\t\t\t\tsupportsReasoningEffort: true,\n\t\t\t\tmaxTokensField: \"max_tokens\",\n\t\t\t},\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"glm-5\": {\n\t\t\tid: \"glm-5\",\n\t\t\tname: \"GLM-5\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 202752,\n\t\t\tmaxTokens: 16384,\n\t\t\tcompat: { thinkingFormat: \"qwen\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"glm-4.7\": {\n\t\t\tid: \"glm-4.7\",\n\t\t\tname: \"GLM-4.7\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 169984,\n\t\t\tmaxTokens: 16384,\n\t\t\tcompat: { thinkingFormat: \"qwen\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"kimi-k2.5\": {\n\t\t\tid: \"kimi-k2.5\",\n\t\t\tname: \"Kimi K2.5\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 258048,\n\t\t\tmaxTokens: 32768,\n\t\t\tcompat: { thinkingFormat: \"zai\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t},\n} as const;\n"]}
|
|
1
|
+
{"version":3,"file":"models.custom.js","sourceRoot":"","sources":["../src/models.custom.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,0EAA0E;AAC1E,EAAE;AACF,sDAAsD;AACtD,EAAE;AACF,4BAA4B;AAC5B,uEAAuE;AACvE,mDAAmD;AACnD,kFAAkF;AAIlF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,wEAAwE;IACxE,qEAAqE;IACrE,8EAA8E;IAC9E,iDAAi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E;IACtE,wEAAwE;IACxE,0DAA0D;IAC1D,0CAA0C;IAC1C,KAAK,EAAE;QACN,SAAS,EAAE;YACV,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,oBAAoB;YACzB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,qCAAqC;YAC9C,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,CAAC,MAAM,CAAC;YACf,IAAI,EAAE;gBACL,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,GAAG;gBACX,SAAS,EAAE,GAAG;gBACd,UAAU,EAAE,CAAC;aACb;YACD,aAAa,EAAE,MAAM;YACrB,SAAS,EAAE,MAAM;YACjB,MAAM,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE;SACzB;KACvC;CACQ,CAAC","sourcesContent":["// Manually-maintained model definitions for providers NOT tracked by models.dev.\n//\n// The auto-generated file (models.generated.ts) is rebuilt from the models.dev\n// third-party catalog. Providers that use proprietary endpoints and are not\n// listed on models.dev must be defined here so they survive regeneration.\n//\n// See: https://github.com/gsd-build/gsd-2/issues/2339\n//\n// To add a custom provider:\n// 1. Add its model definitions below following the existing pattern.\n// 2. Add its API key mapping to env-api-keys.ts.\n// 3. Add its provider name to KnownProvider in types.ts (if not already there).\n\nimport type { Model } from \"./types.js\";\n\nexport const CUSTOM_MODELS = {\n\t// ─── Alibaba Coding Plan ─────────────────────────────────────────────\n\t// Direct Alibaba DashScope Coding Plan endpoint (OpenAI-compatible).\n\t// NOT the same as alibaba/* models on OpenRouter — different endpoint & auth.\n\t// Original PR: #295 | Fixes: #1003, #1055, #1057\n\t\"alibaba-coding-plan\": {\n\t\t\"qwen3.5-plus\": {\n\t\t\tid: \"qwen3.5-plus\",\n\t\t\tname: \"Qwen3.5 Plus\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 983616,\n\t\t\tmaxTokens: 65536,\n\t\t\tcompat: { thinkingFormat: \"qwen\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"qwen3-max-2026-01-23\": {\n\t\t\tid: \"qwen3-max-2026-01-23\",\n\t\t\tname: \"Qwen3 Max 2026-01-23\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 258048,\n\t\t\tmaxTokens: 32768,\n\t\t\tcompat: { thinkingFormat: \"qwen\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"qwen3-coder-next\": {\n\t\t\tid: \"qwen3-coder-next\",\n\t\t\tname: \"Qwen3 Coder Next\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: false,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 204800,\n\t\t\tmaxTokens: 65536,\n\t\t\tcompat: { supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"qwen3-coder-plus\": {\n\t\t\tid: \"qwen3-coder-plus\",\n\t\t\tname: \"Qwen3 Coder Plus\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: false,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 997952,\n\t\t\tmaxTokens: 65536,\n\t\t\tcompat: { supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"MiniMax-M2.5\": {\n\t\t\tid: \"MiniMax-M2.5\",\n\t\t\tname: \"MiniMax M2.5\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 196608,\n\t\t\tmaxTokens: 65536,\n\t\t\tcompat: {\n\t\t\t\tsupportsStore: false,\n\t\t\t\tsupportsDeveloperRole: false,\n\t\t\t\tsupportsReasoningEffort: true,\n\t\t\t\tmaxTokensField: \"max_tokens\",\n\t\t\t},\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"glm-5\": {\n\t\t\tid: \"glm-5\",\n\t\t\tname: \"GLM-5\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 202752,\n\t\t\tmaxTokens: 16384,\n\t\t\tcompat: { thinkingFormat: \"qwen\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"glm-4.7\": {\n\t\t\tid: \"glm-4.7\",\n\t\t\tname: \"GLM-4.7\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 169984,\n\t\t\tmaxTokens: 16384,\n\t\t\tcompat: { thinkingFormat: \"qwen\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t\t\"kimi-k2.5\": {\n\t\t\tid: \"kimi-k2.5\",\n\t\t\tname: \"Kimi K2.5\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"alibaba-coding-plan\",\n\t\t\tbaseUrl: \"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 0,\n\t\t\t\toutput: 0,\n\t\t\t\tcacheRead: 0,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 258048,\n\t\t\tmaxTokens: 32768,\n\t\t\tcompat: { thinkingFormat: \"zai\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t},\n\n\t// ─── Z.AI (GLM-5.1) ────────────────────────────────────────────────\n\t// GLM-5.1 is the latest GLM model from Zhipu AI, not yet in models.dev.\n\t// Uses the Z.AI Coding Plan endpoint (OpenAI-compatible).\n\t// Ref: https://docs.z.ai/devpack/using5.1\n\t\"zai\": {\n\t\t\"glm-5.1\": {\n\t\t\tid: \"glm-5.1\",\n\t\t\tname: \"GLM-5.1\",\n\t\t\tapi: \"openai-completions\",\n\t\t\tprovider: \"zai\",\n\t\t\tbaseUrl: \"https://api.z.ai/api/coding/paas/v4\",\n\t\t\treasoning: true,\n\t\t\tinput: [\"text\"],\n\t\t\tcost: {\n\t\t\t\tinput: 1,\n\t\t\t\toutput: 3.2,\n\t\t\t\tcacheRead: 0.2,\n\t\t\t\tcacheWrite: 0,\n\t\t\t},\n\t\t\tcontextWindow: 204800,\n\t\t\tmaxTokens: 131072,\n\t\t\tcompat: { thinkingFormat: \"zai\", supportsDeveloperRole: false },\n\t\t} satisfies Model<\"openai-completions\">,\n\t},\n} as const;\n"]}
|
|
@@ -56,6 +56,35 @@ describe("model registry — custom providers", () => {
|
|
|
56
56
|
assert.equal(model.provider, "alibaba-coding-plan");
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
|
+
describe("model registry — custom zai provider (GLM-5.1)", () => {
|
|
60
|
+
it("zai provider includes glm-5.1 from custom models", () => {
|
|
61
|
+
const models = getModels("zai");
|
|
62
|
+
const ids = models.map((m) => m.id);
|
|
63
|
+
assert.ok(ids.includes("glm-5.1"), `Expected "glm-5.1" in zai models, got: ${ids.join(", ")}`);
|
|
64
|
+
});
|
|
65
|
+
it("glm-5.1 has correct provider and base URL", () => {
|
|
66
|
+
const model = getModel("zai", "glm-5.1");
|
|
67
|
+
assert.ok(model, "Expected getModel to return a model for zai/glm-5.1");
|
|
68
|
+
assert.equal(model.id, "glm-5.1");
|
|
69
|
+
assert.equal(model.provider, "zai");
|
|
70
|
+
assert.equal(model.baseUrl, "https://api.z.ai/api/coding/paas/v4");
|
|
71
|
+
assert.equal(model.api, "openai-completions");
|
|
72
|
+
});
|
|
73
|
+
it("glm-5.1 has reasoning enabled and correct context window", () => {
|
|
74
|
+
const model = getModel("zai", "glm-5.1");
|
|
75
|
+
assert.ok(model);
|
|
76
|
+
assert.equal(model.reasoning, true);
|
|
77
|
+
assert.equal(model.contextWindow, 204800);
|
|
78
|
+
assert.equal(model.maxTokens, 131072);
|
|
79
|
+
});
|
|
80
|
+
it("custom glm-5.1 does not overwrite generated zai models", () => {
|
|
81
|
+
const models = getModels("zai");
|
|
82
|
+
const ids = models.map((m) => m.id);
|
|
83
|
+
// Generated models must still exist alongside custom glm-5.1
|
|
84
|
+
assert.ok(ids.includes("glm-5"), "Generated glm-5 should still exist");
|
|
85
|
+
assert.ok(ids.includes("glm-5-turbo"), "Generated glm-5-turbo should still exist");
|
|
86
|
+
});
|
|
87
|
+
});
|
|
59
88
|
describe("model registry — custom models do not collide with generated models", () => {
|
|
60
89
|
it("generated providers still exist alongside custom providers", () => {
|
|
61
90
|
const providers = getProviders();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.test.js","sourceRoot":"","sources":["../src/models.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGvG,8EAA8E;AAC9E,mDAAmD;AACnD,EAAE;AACF,0EAA0E;AAC1E,qEAAqE;AACrE,8CAA8C;AAC9C,8EAA8E;AAE9E,QAAQ,CAAC,mCAAmC,EAAE,GAAG,EAAE;IAClD,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACvD,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;QACjC,MAAM,CAAC,EAAE,CACR,SAAS,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACzC,qDAAqD,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC3E,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAA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AO,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QAC9C,kDAAkD;QAClD,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8DAA8D,EAAE,GAAG,EAAE;QACvE,MAAM,KAAK,GAAG,cAAc,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,sBAAsB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9C,MAAM,MAAM,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAC7C,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { describe, it } from \"node:test\";\nimport assert from \"node:assert/strict\";\nimport { getProviders, getModels, getModel, supportsXhigh, applyCapabilityPatches } from \"./models.js\";\nimport type { Api, Model } from \"./types.js\";\n\n// ═══════════════════════════════════════════════════════════════════════════\n// Custom provider preservation (regression: #2339)\n//\n// Custom providers (like alibaba-coding-plan) are manually maintained and\n// NOT sourced from models.dev. They must survive models.generated.ts\n// regeneration by living in models.custom.ts.\n// ═══════════════════════════════════════════════════════════════════════════\n\ndescribe(\"model registry — custom providers\", () => {\n\tit(\"alibaba-coding-plan is a registered provider\", () => {\n\t\tconst providers = getProviders();\n\t\tassert.ok(\n\t\t\tproviders.includes(\"alibaba-coding-plan\"),\n\t\t\t`Expected \"alibaba-coding-plan\" in providers, got: ${providers.join(\", \")}`,\n\t\t);\n\t});\n\n\tit(\"alibaba-coding-plan has all expected models\", () => {\n\t\tconst models = getModels(\"alibaba-coding-plan\");\n\t\tconst ids = models.map((m) => m.id).sort();\n\t\tconst expected = [\n\t\t\t\"MiniMax-M2.5\",\n\t\t\t\"glm-4.7\",\n\t\t\t\"glm-5\",\n\t\t\t\"kimi-k2.5\",\n\t\t\t\"qwen3-coder-next\",\n\t\t\t\"qwen3-coder-plus\",\n\t\t\t\"qwen3-max-2026-01-23\",\n\t\t\t\"qwen3.5-plus\",\n\t\t];\n\t\tassert.deepEqual(ids, expected);\n\t});\n\n\tit(\"alibaba-coding-plan models use the correct base URL\", () => {\n\t\tconst models = getModels(\"alibaba-coding-plan\");\n\t\tfor (const model of models) {\n\t\t\tassert.equal(\n\t\t\t\tmodel.baseUrl,\n\t\t\t\t\"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\t\t`Model ${model.id} has wrong baseUrl: ${model.baseUrl}`,\n\t\t\t);\n\t\t}\n\t});\n\n\tit(\"alibaba-coding-plan models use openai-completions API\", () => {\n\t\tconst models = getModels(\"alibaba-coding-plan\");\n\t\tfor (const model of models) {\n\t\t\tassert.equal(model.api, \"openai-completions\", `Model ${model.id} has wrong api: ${model.api}`);\n\t\t}\n\t});\n\n\tit(\"alibaba-coding-plan models have provider set correctly\", () => {\n\t\tconst models = getModels(\"alibaba-coding-plan\");\n\t\tfor (const model of models) {\n\t\t\tassert.equal(\n\t\t\t\tmodel.provider,\n\t\t\t\t\"alibaba-coding-plan\",\n\t\t\t\t`Model ${model.id} has wrong provider: ${model.provider}`,\n\t\t\t);\n\t\t}\n\t});\n\n\tit(\"getModel retrieves alibaba-coding-plan models by provider+id\", () => {\n\t\t// Use type assertion to test runtime behavior — alibaba-coding-plan may come\n\t\t// from custom models rather than the generated file, so the narrow\n\t\t// GeneratedProvider type doesn't include it until models.custom.ts is merged.\n\t\tconst model = getModel(\"alibaba-coding-plan\" as any, \"qwen3.5-plus\" as any);\n\t\tassert.ok(model, \"Expected getModel to return a model for alibaba-coding-plan/qwen3.5-plus\");\n\t\tassert.equal(model.id, \"qwen3.5-plus\");\n\t\tassert.equal(model.provider, \"alibaba-coding-plan\");\n\t});\n});\n\ndescribe(\"model registry — custom models do not collide with generated models\", () => {\n\tit(\"generated providers still exist alongside custom providers\", () => {\n\t\tconst providers = getProviders();\n\t\t// Spot-check a few generated providers\n\t\tassert.ok(providers.includes(\"openai\"), \"openai should be in providers\");\n\t\tassert.ok(providers.includes(\"anthropic\"), \"anthropic should be in providers\");\n\t});\n});\n\n// ═══════════════════════════════════════════════════════════════════════════\n// Capability patches (regression: #2546)\n//\n// CAPABILITY_PATCHES must apply capabilities to models in the static\n// registry AND to models constructed outside of it (custom, extension,\n// discovered). supportsXhigh() reads model.capabilities — not model IDs.\n// ═══════════════════════════════════════════════════════════════════════════\n\n/** Helper: build a minimal synthetic model for testing */\nfunction syntheticModel(overrides: Partial<Model<Api>>): Model<Api> {\n\treturn {\n\t\tid: \"test-model\",\n\t\tname: \"Test Model\",\n\t\tapi: \"openai-completions\" as Api,\n\t\tprovider: \"test-provider\",\n\t\tbaseUrl: \"https://example.com\",\n\t\treasoning: false,\n\t\tinput: [\"text\"],\n\t\tcost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },\n\t\tcontextWindow: 128000,\n\t\tmaxTokens: 16384,\n\t\t...overrides,\n\t} as Model<Api>;\n}\n\ndescribe(\"supportsXhigh — registry models\", () => {\n\tit(\"returns true for GPT-5.4 from the registry\", () => {\n\t\tconst model = getModel(\"openai\", \"gpt-5.4\" as any);\n\t\tif (!model) return; // skip if model not in generated catalog\n\t\tassert.equal(supportsXhigh(model), true);\n\t});\n\n\tit(\"returns false for a non-reasoning model\", () => {\n\t\tconst models = getModels(\"openai\");\n\t\tconst nonXhigh = models.find((m) => !m.id.includes(\"gpt-5.\"));\n\t\tif (!nonXhigh) return;\n\t\tassert.equal(supportsXhigh(nonXhigh), false);\n\t});\n});\n\ndescribe(\"supportsXhigh — synthetic models (regression: custom/extension models)\", () => {\n\tit(\"returns false for a model without capabilities\", () => {\n\t\tconst model = syntheticModel({ id: \"my-custom-model\" });\n\t\tassert.equal(supportsXhigh(model), false);\n\t});\n\n\tit(\"returns true when capabilities.supportsXhigh is explicitly set\", () => {\n\t\tconst model = syntheticModel({\n\t\t\tid: \"my-custom-model\",\n\t\t\tcapabilities: { supportsXhigh: true },\n\t\t});\n\t\tassert.equal(supportsXhigh(model), true);\n\t});\n});\n\ndescribe(\"applyCapabilityPatches\", () => {\n\tit(\"patches a GPT-5.4 model that has no capabilities\", () => {\n\t\tconst model = syntheticModel({ id: \"gpt-5.4-custom\" });\n\t\tassert.equal(model.capabilities, undefined);\n\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\tassert.equal(patched.capabilities?.supportsXhigh, true);\n\t\tassert.equal(patched.capabilities?.supportsServiceTier, true);\n\t});\n\n\tit(\"patches a GPT-5.2 model\", () => {\n\t\tconst model = syntheticModel({ id: \"gpt-5.2\" });\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\tassert.equal(patched.capabilities?.supportsXhigh, true);\n\t});\n\n\tit(\"patches an Anthropic Opus 4.6 model\", () => {\n\t\tconst model = syntheticModel({\n\t\t\tid: \"claude-opus-4-6-20260301\",\n\t\t\tapi: \"anthropic-messages\" as Api,\n\t\t});\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\tassert.equal(patched.capabilities?.supportsXhigh, true);\n\t\t// Opus should not get supportsServiceTier\n\t\tassert.equal(patched.capabilities?.supportsServiceTier, undefined);\n\t});\n\n\tit(\"preserves explicit capabilities over patches\", () => {\n\t\tconst model = syntheticModel({\n\t\t\tid: \"gpt-5.4-custom\",\n\t\t\tcapabilities: { supportsXhigh: false, charsPerToken: 3 },\n\t\t});\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\t// Explicit supportsXhigh: false wins over patch's true\n\t\tassert.equal(patched.capabilities?.supportsXhigh, false);\n\t\t// Patch fills in supportsServiceTier since it wasn't explicitly set\n\t\tassert.equal(patched.capabilities?.supportsServiceTier, true);\n\t\t// Explicit charsPerToken is preserved\n\t\tassert.equal(patched.capabilities?.charsPerToken, 3);\n\t});\n\n\tit(\"does not modify models that match no patches\", () => {\n\t\tconst model = syntheticModel({ id: \"gemini-2.5-pro\" });\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\tassert.equal(patched.capabilities, undefined);\n\t\t// Should return the same reference when unpatched\n\t\tassert.equal(patched, model);\n\t});\n\n\tit(\"is idempotent — re-applying patches produces the same result\", () => {\n\t\tconst model = syntheticModel({ id: \"gpt-5.3\" });\n\t\tconst first = applyCapabilityPatches([model]);\n\t\tconst second = applyCapabilityPatches(first);\n\t\tassert.deepEqual(first[0].capabilities, second[0].capabilities);\n\t});\n});\n"]}
|
|
1
|
+
{"version":3,"file":"models.test.js","sourceRoot":"","sources":["../src/models.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGvG,8EAA8E;AAC9E,mDAAmD;AACnD,EAAE;AACF,0EAA0E;AAC1E,qEAAqE;AACrE,8CAA8C;AAC9C,8EAA8E;AAE9E,QAAQ,CAAC,mCAAmC,EAAE,GAAG,EAAE;IAClD,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACvD,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;QACjC,MAAM,CAAC,EAAE,CACR,SAAS,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EACzC,qDAAqD,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC3E,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACtD,MAAM,MAAM,GAAG,SAAS,CAAC,qBAAqB,CAAC,CAAC;QAChD,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC3C,MAAM,QA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AAC,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACvD,MAAM,KAAK,GAAG,cAAc,CAAC,EAAE,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC;QACvD,MAAM,CAAC,OAAO,CAAC,GAAG,sBAAsB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QAC9C,kDAAkD;QAClD,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8DAA8D,EAAE,GAAG,EAAE;QACvE,MAAM,KAAK,GAAG,cAAc,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,sBAAsB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9C,MAAM,MAAM,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAC7C,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { describe, it } from \"node:test\";\nimport assert from \"node:assert/strict\";\nimport { getProviders, getModels, getModel, supportsXhigh, applyCapabilityPatches } from \"./models.js\";\nimport type { Api, Model } from \"./types.js\";\n\n// ═══════════════════════════════════════════════════════════════════════════\n// Custom provider preservation (regression: #2339)\n//\n// Custom providers (like alibaba-coding-plan) are manually maintained and\n// NOT sourced from models.dev. They must survive models.generated.ts\n// regeneration by living in models.custom.ts.\n// ═══════════════════════════════════════════════════════════════════════════\n\ndescribe(\"model registry — custom providers\", () => {\n\tit(\"alibaba-coding-plan is a registered provider\", () => {\n\t\tconst providers = getProviders();\n\t\tassert.ok(\n\t\t\tproviders.includes(\"alibaba-coding-plan\"),\n\t\t\t`Expected \"alibaba-coding-plan\" in providers, got: ${providers.join(\", \")}`,\n\t\t);\n\t});\n\n\tit(\"alibaba-coding-plan has all expected models\", () => {\n\t\tconst models = getModels(\"alibaba-coding-plan\");\n\t\tconst ids = models.map((m) => m.id).sort();\n\t\tconst expected = [\n\t\t\t\"MiniMax-M2.5\",\n\t\t\t\"glm-4.7\",\n\t\t\t\"glm-5\",\n\t\t\t\"kimi-k2.5\",\n\t\t\t\"qwen3-coder-next\",\n\t\t\t\"qwen3-coder-plus\",\n\t\t\t\"qwen3-max-2026-01-23\",\n\t\t\t\"qwen3.5-plus\",\n\t\t];\n\t\tassert.deepEqual(ids, expected);\n\t});\n\n\tit(\"alibaba-coding-plan models use the correct base URL\", () => {\n\t\tconst models = getModels(\"alibaba-coding-plan\");\n\t\tfor (const model of models) {\n\t\t\tassert.equal(\n\t\t\t\tmodel.baseUrl,\n\t\t\t\t\"https://coding-intl.dashscope.aliyuncs.com/v1\",\n\t\t\t\t`Model ${model.id} has wrong baseUrl: ${model.baseUrl}`,\n\t\t\t);\n\t\t}\n\t});\n\n\tit(\"alibaba-coding-plan models use openai-completions API\", () => {\n\t\tconst models = getModels(\"alibaba-coding-plan\");\n\t\tfor (const model of models) {\n\t\t\tassert.equal(model.api, \"openai-completions\", `Model ${model.id} has wrong api: ${model.api}`);\n\t\t}\n\t});\n\n\tit(\"alibaba-coding-plan models have provider set correctly\", () => {\n\t\tconst models = getModels(\"alibaba-coding-plan\");\n\t\tfor (const model of models) {\n\t\t\tassert.equal(\n\t\t\t\tmodel.provider,\n\t\t\t\t\"alibaba-coding-plan\",\n\t\t\t\t`Model ${model.id} has wrong provider: ${model.provider}`,\n\t\t\t);\n\t\t}\n\t});\n\n\tit(\"getModel retrieves alibaba-coding-plan models by provider+id\", () => {\n\t\t// Use type assertion to test runtime behavior — alibaba-coding-plan may come\n\t\t// from custom models rather than the generated file, so the narrow\n\t\t// GeneratedProvider type doesn't include it until models.custom.ts is merged.\n\t\tconst model = getModel(\"alibaba-coding-plan\" as any, \"qwen3.5-plus\" as any);\n\t\tassert.ok(model, \"Expected getModel to return a model for alibaba-coding-plan/qwen3.5-plus\");\n\t\tassert.equal(model.id, \"qwen3.5-plus\");\n\t\tassert.equal(model.provider, \"alibaba-coding-plan\");\n\t});\n});\n\ndescribe(\"model registry — custom zai provider (GLM-5.1)\", () => {\n\tit(\"zai provider includes glm-5.1 from custom models\", () => {\n\t\tconst models = getModels(\"zai\" as any);\n\t\tconst ids = models.map((m) => m.id);\n\t\tassert.ok(ids.includes(\"glm-5.1\"), `Expected \"glm-5.1\" in zai models, got: ${ids.join(\", \")}`);\n\t});\n\n\tit(\"glm-5.1 has correct provider and base URL\", () => {\n\t\tconst model = getModel(\"zai\" as any, \"glm-5.1\" as any);\n\t\tassert.ok(model, \"Expected getModel to return a model for zai/glm-5.1\");\n\t\tassert.equal(model.id, \"glm-5.1\");\n\t\tassert.equal(model.provider, \"zai\");\n\t\tassert.equal(model.baseUrl, \"https://api.z.ai/api/coding/paas/v4\");\n\t\tassert.equal(model.api, \"openai-completions\");\n\t});\n\n\tit(\"glm-5.1 has reasoning enabled and correct context window\", () => {\n\t\tconst model = getModel(\"zai\" as any, \"glm-5.1\" as any);\n\t\tassert.ok(model);\n\t\tassert.equal(model.reasoning, true);\n\t\tassert.equal(model.contextWindow, 204800);\n\t\tassert.equal(model.maxTokens, 131072);\n\t});\n\n\tit(\"custom glm-5.1 does not overwrite generated zai models\", () => {\n\t\tconst models = getModels(\"zai\" as any);\n\t\tconst ids = models.map((m) => m.id);\n\t\t// Generated models must still exist alongside custom glm-5.1\n\t\tassert.ok(ids.includes(\"glm-5\"), \"Generated glm-5 should still exist\");\n\t\tassert.ok(ids.includes(\"glm-5-turbo\"), \"Generated glm-5-turbo should still exist\");\n\t});\n});\n\ndescribe(\"model registry — custom models do not collide with generated models\", () => {\n\tit(\"generated providers still exist alongside custom providers\", () => {\n\t\tconst providers = getProviders();\n\t\t// Spot-check a few generated providers\n\t\tassert.ok(providers.includes(\"openai\"), \"openai should be in providers\");\n\t\tassert.ok(providers.includes(\"anthropic\"), \"anthropic should be in providers\");\n\t});\n});\n\n// ═══════════════════════════════════════════════════════════════════════════\n// Capability patches (regression: #2546)\n//\n// CAPABILITY_PATCHES must apply capabilities to models in the static\n// registry AND to models constructed outside of it (custom, extension,\n// discovered). supportsXhigh() reads model.capabilities — not model IDs.\n// ═══════════════════════════════════════════════════════════════════════════\n\n/** Helper: build a minimal synthetic model for testing */\nfunction syntheticModel(overrides: Partial<Model<Api>>): Model<Api> {\n\treturn {\n\t\tid: \"test-model\",\n\t\tname: \"Test Model\",\n\t\tapi: \"openai-completions\" as Api,\n\t\tprovider: \"test-provider\",\n\t\tbaseUrl: \"https://example.com\",\n\t\treasoning: false,\n\t\tinput: [\"text\"],\n\t\tcost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },\n\t\tcontextWindow: 128000,\n\t\tmaxTokens: 16384,\n\t\t...overrides,\n\t} as Model<Api>;\n}\n\ndescribe(\"supportsXhigh — registry models\", () => {\n\tit(\"returns true for GPT-5.4 from the registry\", () => {\n\t\tconst model = getModel(\"openai\", \"gpt-5.4\" as any);\n\t\tif (!model) return; // skip if model not in generated catalog\n\t\tassert.equal(supportsXhigh(model), true);\n\t});\n\n\tit(\"returns false for a non-reasoning model\", () => {\n\t\tconst models = getModels(\"openai\");\n\t\tconst nonXhigh = models.find((m) => !m.id.includes(\"gpt-5.\"));\n\t\tif (!nonXhigh) return;\n\t\tassert.equal(supportsXhigh(nonXhigh), false);\n\t});\n});\n\ndescribe(\"supportsXhigh — synthetic models (regression: custom/extension models)\", () => {\n\tit(\"returns false for a model without capabilities\", () => {\n\t\tconst model = syntheticModel({ id: \"my-custom-model\" });\n\t\tassert.equal(supportsXhigh(model), false);\n\t});\n\n\tit(\"returns true when capabilities.supportsXhigh is explicitly set\", () => {\n\t\tconst model = syntheticModel({\n\t\t\tid: \"my-custom-model\",\n\t\t\tcapabilities: { supportsXhigh: true },\n\t\t});\n\t\tassert.equal(supportsXhigh(model), true);\n\t});\n});\n\ndescribe(\"applyCapabilityPatches\", () => {\n\tit(\"patches a GPT-5.4 model that has no capabilities\", () => {\n\t\tconst model = syntheticModel({ id: \"gpt-5.4-custom\" });\n\t\tassert.equal(model.capabilities, undefined);\n\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\tassert.equal(patched.capabilities?.supportsXhigh, true);\n\t\tassert.equal(patched.capabilities?.supportsServiceTier, true);\n\t});\n\n\tit(\"patches a GPT-5.2 model\", () => {\n\t\tconst model = syntheticModel({ id: \"gpt-5.2\" });\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\tassert.equal(patched.capabilities?.supportsXhigh, true);\n\t});\n\n\tit(\"patches an Anthropic Opus 4.6 model\", () => {\n\t\tconst model = syntheticModel({\n\t\t\tid: \"claude-opus-4-6-20260301\",\n\t\t\tapi: \"anthropic-messages\" as Api,\n\t\t});\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\tassert.equal(patched.capabilities?.supportsXhigh, true);\n\t\t// Opus should not get supportsServiceTier\n\t\tassert.equal(patched.capabilities?.supportsServiceTier, undefined);\n\t});\n\n\tit(\"preserves explicit capabilities over patches\", () => {\n\t\tconst model = syntheticModel({\n\t\t\tid: \"gpt-5.4-custom\",\n\t\t\tcapabilities: { supportsXhigh: false, charsPerToken: 3 },\n\t\t});\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\t// Explicit supportsXhigh: false wins over patch's true\n\t\tassert.equal(patched.capabilities?.supportsXhigh, false);\n\t\t// Patch fills in supportsServiceTier since it wasn't explicitly set\n\t\tassert.equal(patched.capabilities?.supportsServiceTier, true);\n\t\t// Explicit charsPerToken is preserved\n\t\tassert.equal(patched.capabilities?.charsPerToken, 3);\n\t});\n\n\tit(\"does not modify models that match no patches\", () => {\n\t\tconst model = syntheticModel({ id: \"gemini-2.5-pro\" });\n\t\tconst [patched] = applyCapabilityPatches([model]);\n\t\tassert.equal(patched.capabilities, undefined);\n\t\t// Should return the same reference when unpatched\n\t\tassert.equal(patched, model);\n\t});\n\n\tit(\"is idempotent — re-applying patches produces the same result\", () => {\n\t\tconst model = syntheticModel({ id: \"gpt-5.3\" });\n\t\tconst first = applyCapabilityPatches([model]);\n\t\tconst second = applyCapabilityPatches(first);\n\t\tassert.deepEqual(first[0].capabilities, second[0].capabilities);\n\t});\n});\n"]}
|
|
@@ -169,4 +169,29 @@ export const CUSTOM_MODELS = {
|
|
|
169
169
|
compat: { thinkingFormat: "zai", supportsDeveloperRole: false },
|
|
170
170
|
} satisfies Model<"openai-completions">,
|
|
171
171
|
},
|
|
172
|
+
|
|
173
|
+
// ─── Z.AI (GLM-5.1) ────────────────────────────────────────────────
|
|
174
|
+
// GLM-5.1 is the latest GLM model from Zhipu AI, not yet in models.dev.
|
|
175
|
+
// Uses the Z.AI Coding Plan endpoint (OpenAI-compatible).
|
|
176
|
+
// Ref: https://docs.z.ai/devpack/using5.1
|
|
177
|
+
"zai": {
|
|
178
|
+
"glm-5.1": {
|
|
179
|
+
id: "glm-5.1",
|
|
180
|
+
name: "GLM-5.1",
|
|
181
|
+
api: "openai-completions",
|
|
182
|
+
provider: "zai",
|
|
183
|
+
baseUrl: "https://api.z.ai/api/coding/paas/v4",
|
|
184
|
+
reasoning: true,
|
|
185
|
+
input: ["text"],
|
|
186
|
+
cost: {
|
|
187
|
+
input: 1,
|
|
188
|
+
output: 3.2,
|
|
189
|
+
cacheRead: 0.2,
|
|
190
|
+
cacheWrite: 0,
|
|
191
|
+
},
|
|
192
|
+
contextWindow: 204800,
|
|
193
|
+
maxTokens: 131072,
|
|
194
|
+
compat: { thinkingFormat: "zai", supportsDeveloperRole: false },
|
|
195
|
+
} satisfies Model<"openai-completions">,
|
|
196
|
+
},
|
|
172
197
|
} as const;
|
|
@@ -76,6 +76,39 @@ describe("model registry — custom providers", () => {
|
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
+
describe("model registry — custom zai provider (GLM-5.1)", () => {
|
|
80
|
+
it("zai provider includes glm-5.1 from custom models", () => {
|
|
81
|
+
const models = getModels("zai" as any);
|
|
82
|
+
const ids = models.map((m) => m.id);
|
|
83
|
+
assert.ok(ids.includes("glm-5.1"), `Expected "glm-5.1" in zai models, got: ${ids.join(", ")}`);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
it("glm-5.1 has correct provider and base URL", () => {
|
|
87
|
+
const model = getModel("zai" as any, "glm-5.1" as any);
|
|
88
|
+
assert.ok(model, "Expected getModel to return a model for zai/glm-5.1");
|
|
89
|
+
assert.equal(model.id, "glm-5.1");
|
|
90
|
+
assert.equal(model.provider, "zai");
|
|
91
|
+
assert.equal(model.baseUrl, "https://api.z.ai/api/coding/paas/v4");
|
|
92
|
+
assert.equal(model.api, "openai-completions");
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it("glm-5.1 has reasoning enabled and correct context window", () => {
|
|
96
|
+
const model = getModel("zai" as any, "glm-5.1" as any);
|
|
97
|
+
assert.ok(model);
|
|
98
|
+
assert.equal(model.reasoning, true);
|
|
99
|
+
assert.equal(model.contextWindow, 204800);
|
|
100
|
+
assert.equal(model.maxTokens, 131072);
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
it("custom glm-5.1 does not overwrite generated zai models", () => {
|
|
104
|
+
const models = getModels("zai" as any);
|
|
105
|
+
const ids = models.map((m) => m.id);
|
|
106
|
+
// Generated models must still exist alongside custom glm-5.1
|
|
107
|
+
assert.ok(ids.includes("glm-5"), "Generated glm-5 should still exist");
|
|
108
|
+
assert.ok(ids.includes("glm-5-turbo"), "Generated glm-5-turbo should still exist");
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
79
112
|
describe("model registry — custom models do not collide with generated models", () => {
|
|
80
113
|
it("generated providers still exist alongside custom providers", () => {
|
|
81
114
|
const providers = getProviders();
|
package/pkg/package.json
CHANGED
|
@@ -209,7 +209,10 @@ export interface LoopDeps {
|
|
|
209
209
|
verbose: boolean,
|
|
210
210
|
startModel: { provider: string; id: string } | null,
|
|
211
211
|
retryContext?: { isRetry: boolean; previousTier?: string },
|
|
212
|
-
) => Promise<{
|
|
212
|
+
) => Promise<{
|
|
213
|
+
routing: { tier: string; modelDowngraded: boolean } | null;
|
|
214
|
+
appliedModel: { provider: string; id: string } | null;
|
|
215
|
+
}>;
|
|
213
216
|
resolveModelId: <T extends { id: string; provider: string }>(
|
|
214
217
|
modelId: string,
|
|
215
218
|
availableModels: T[],
|