diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ba42b95..a41ed1d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,5 +50,10 @@ jobs: - name: Build distribution run: npm run compile + - name: Bundle dependency guards + run: | + npm run check:bundle + npm run check:notices + - name: Inspect npm package run: npm pack --dry-run --ignore-scripts diff --git a/.gitignore b/.gitignore index 19a1f2c6..d5b9f65e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules/ dist/ +meta/ .worktrees/ *.log .DS_Store @@ -9,4 +10,5 @@ opencode-debug.log .cache/ coverage/ opencode.json* +AGENTS.md docs/articles/ diff --git a/RELEASE.md b/RELEASE.md index b3d94486..a911125e 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -20,6 +20,23 @@ feature branches -> dev -> release/vX.Y.Z -> main -> publish Release branches are short-lived per-version branches. There is no long-lived `release` branch. +## Bundled Dependencies + +`dist/runtime.js` and `dist/tui.js` bundle the OpenCode plugin SDKs (`@opencode/plugin`, and the type-only `@opencode-ai/plugin`) at build time, so the published package declares **no runtime or peer dependencies** and hosts install it without unpacking a dependency tree. Consequences for releases: + +1. Bump the `@opencode/plugin` / `@opencode-ai/plugin` devDependencies when preparing a release if you want the published plugin to track a newer SDK; the bundled copy is otherwise frozen at the last bump. +2. Do not add entries to `dependencies`, `peerDependencies`, or `optionalDependencies`. Hosts materialize every installed dependency as individual files in their plugin cache (a previous external-SDK setup unpacked ~30k files per install). `npm run check:bundle` fails the build if a bundled output keeps an external import or the manifest declares installable dependencies again. +3. `npm run compile` regenerates `dist/THIRD-PARTY-NOTICES.md` from the esbuild metafiles: an inventory of every bundled package with its exact version and full license text, shipped inside the tarball. `npm run check:notices` (part of `validate:package`) fails if the file is stale or a bundled package has no license classification, and `scripts/release.ts` embeds the SDK versions it lists into the GitHub release notes. +4. Development builds (`npm run build`) retain source maps for debugging. Release publishing uses `npm run build:release`, which compiles without source maps and removes stale `.map` files before packaging. The `files` allowlist also excludes source maps as a final packaging safeguard. + +## Release Validation + +`npm run validate:package` (run by the publish path) checks the release contract introduced with the bundling change: + +- `npm run check:bundle` — zero installable dependencies, SDKs bundled into the runtime. +- `npm run check:notices` — `dist/THIRD-PARTY-NOTICES.md` matches what the bundles actually contain. +- `test/types-consumer.test.ts` (via the test suites) — a clean consumer typechecks against the published package with nothing but ambient Node types installed. + ## What the Workflows Do ### Release Workflow diff --git a/bun.lock b/bun.lock index 2b1205c6..9c9d7fbd 100644 --- a/bun.lock +++ b/bun.lock @@ -4,13 +4,10 @@ "workspaces": { "": { "name": "opencode-model-discovery", - "dependencies": { - "@opencode/plugin": "2.2.6", - "xdg-basedir": "^5.1.0", - }, "devDependencies": { "@eslint/js": "^10.0.1", "@opencode-ai/plugin": "^1.18.29", + "@opencode/plugin": "2.2.6", "@types/node": "^26.5.1", "@vitest/coverage-v8": "^5.0.0", "esbuild": "^0.28.2", @@ -19,9 +16,7 @@ "typescript": "^5.9.3", "typescript-eslint": "^8.70.0", "vitest": "^5.0.0", - }, - "peerDependencies": { - "@opencode-ai/plugin": ">=1.18.29", + "xdg-basedir": "^5.1.0", }, }, }, @@ -90,12 +85,6 @@ "@cacheable/utils": ["@cacheable/utils@2.5.0", "", { "dependencies": { "hashery": "^1.5.1", "keyv": "^5.6.0" } }, "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA=="], - "@effect/opentelemetry": ["@effect/opentelemetry@4.1.0", "", { "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <2.0.0", "@opentelemetry/api-logs": ">=0.203.0 <0.300.0", "@opentelemetry/resources": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-logs": ">=0.203.0 <0.300.0", "@opentelemetry/sdk-metrics": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-base": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-node": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-web": ">=2.0.0 <3.0.0", "@opentelemetry/semantic-conventions": ">=1.33.0 <2.0.0", "effect": "^4.1.0" }, "optionalPeers": ["@opentelemetry/api", "@opentelemetry/api-logs", "@opentelemetry/resources", "@opentelemetry/sdk-logs", "@opentelemetry/sdk-metrics", "@opentelemetry/sdk-trace-base", "@opentelemetry/sdk-trace-node", "@opentelemetry/sdk-trace-web"] }, "sha512-j9bNzQaoQvcnimBFMG0i3piEW20E8HjkXAQHTJN/XqG2e4uJ9zCv53/HCNzD7+ooFn5S4nwQy/BOXeNReMIe+A=="], - - "@effect/platform-node": ["@effect/platform-node@4.1.0", "", { "dependencies": { "@effect/platform-node-shared": "^4.1.0", "undici": "^8.12.2" }, "peerDependencies": { "effect": "^4.1.0", "redis": ">=5.0.0 <7.0.0" } }, "sha512-v+X7moGVF9k5oMVvz0slA+NgtEod+W+oygeI285MDJgSlUCW3JcqElj+cD3rlijFZtpKhC7RLkU1GuCxjGHTpA=="], - - "@effect/platform-node-shared": ["@effect/platform-node-shared@4.1.0", "", { "dependencies": { "@types/ws": "^8.18.2", "ws": "^8.22.0" }, "peerDependencies": { "effect": "^4.1.0" } }, "sha512-uYQfFRoxWLo8fIhiSeBcmz/R1ooOfE3HF3cWHFgxz82tZMk2Wn02BGABcdLmaAch9VpDLbtWnuhSxNyBsGMUFg=="], - "@emnapi/core": ["@emnapi/core@1.9.2", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.1", "tslib": "^2.4.0" } }, "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA=="], "@emnapi/runtime": ["@emnapi/runtime@1.9.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw=="], @@ -922,12 +911,6 @@ "@aws-crypto/util/@smithy/util-utf8": ["@smithy/util-utf8@2.3.0", "", { "dependencies": { "@smithy/util-buffer-from": "^2.2.0", "tslib": "^2.6.2" } }, "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A=="], - "@effect/opentelemetry/effect": ["effect@4.1.0", "", {}, "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q=="], - - "@effect/platform-node/effect": ["effect@4.1.0", "", {}, "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q=="], - - "@effect/platform-node-shared/effect": ["effect@4.1.0", "", {}, "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q=="], - "@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="], "@jridgewell/trace-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], @@ -948,6 +931,12 @@ "@opencode/schema/effect": ["effect@4.1.0", "", {}, "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q=="], + "@opencode/util/@effect/opentelemetry": ["@effect/opentelemetry@4.1.0", "", { "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <2.0.0", "@opentelemetry/api-logs": ">=0.203.0 <0.300.0", "@opentelemetry/resources": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-logs": ">=0.203.0 <0.300.0", "@opentelemetry/sdk-metrics": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-base": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-node": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-web": ">=2.0.0 <3.0.0", "@opentelemetry/semantic-conventions": ">=1.33.0 <2.0.0", "effect": "^4.1.0" }, "optionalPeers": ["@opentelemetry/api", "@opentelemetry/api-logs", "@opentelemetry/resources", "@opentelemetry/sdk-logs", "@opentelemetry/sdk-metrics", "@opentelemetry/sdk-trace-base", "@opentelemetry/sdk-trace-node", "@opentelemetry/sdk-trace-web"] }, "sha512-j9bNzQaoQvcnimBFMG0i3piEW20E8HjkXAQHTJN/XqG2e4uJ9zCv53/HCNzD7+ooFn5S4nwQy/BOXeNReMIe+A=="], + + "@opencode/util/@effect/platform-node": ["@effect/platform-node@4.1.0", "", { "dependencies": { "@effect/platform-node-shared": "^4.1.0", "undici": "^8.12.2" }, "peerDependencies": { "effect": "^4.1.0", "redis": ">=5.0.0 <7.0.0" } }, "sha512-v+X7moGVF9k5oMVvz0slA+NgtEod+W+oygeI285MDJgSlUCW3JcqElj+cD3rlijFZtpKhC7RLkU1GuCxjGHTpA=="], + + "@opencode/util/@effect/platform-node-shared": ["@effect/platform-node-shared@4.1.0", "", { "dependencies": { "@types/ws": "^8.18.2", "ws": "^8.22.0" }, "peerDependencies": { "effect": "^4.1.0" } }, "sha512-uYQfFRoxWLo8fIhiSeBcmz/R1ooOfE3HF3cWHFgxz82tZMk2Wn02BGABcdLmaAch9VpDLbtWnuhSxNyBsGMUFg=="], + "@opencode/util/effect": ["effect@4.1.0", "", {}, "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q=="], "@opencode/util/minimatch": ["minimatch@10.2.5", "", { "dependencies": { "brace-expansion": "^5.0.5" } }, "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg=="], diff --git a/docs/configuration.md b/docs/configuration.md index f70ad283..13e06e59 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -119,6 +119,7 @@ Each provider can configure discovery behavior through `provider..options. | `provider..options.modelsDiscovery.modelInfoEndpoint` | `string` | Override a format-specific metadata endpoint as an origin-relative path or complete URL. Defaults to `/v1/model/info` for `"litellm"`, `/api/v1/models` for `"lmstudio"`, and `/api/show` for `"ollama"`; for `"aiproxy"`, it overrides the models.dev fallback URL | | `provider..options.modelsDiscovery.modelInfoFormat` | `string` | Model info response format. Currently supports `"aiproxy"`, `"bifrost"`, `"litellm"`, `"models.dev"`, `"vllm"`, `"lmstudio"`, `"llama-swap"`, `"omniroute"`, `"openrouter"`, and `"ollama"` | | `provider..options.modelsDiscovery.filterNonChat` | `boolean` | When model info is available, skip models whose `model_info.mode` is not `chat`. Defaults to `true` | +| `provider..options.modelsDiscovery.pruneMissing` | `boolean` | OpenCode v2 only. Remove models from the provider's catalog when the provider's models endpoint doesn't list them by `id` or `modelID`, including ones excluded by the filters below. The plugin can't tell config-declared models from built-in ones, so any model it sees is pruned the same way; on OpenCode 2.2.5, models declared in `provider..models` were applied after the plugin and stayed. A failed refresh reuses the last successful list, and nothing is removed until one succeeds. Defaults to `false` | | `provider..options.modelsDiscovery.models.includeRegex` | `string[]` | Shortcut regex allow-list for discovered model ids only | | `provider..options.modelsDiscovery.models.excludeRegex` | `string[]` | Shortcut regex deny-list for discovered model ids only | | `provider..options.modelsDiscovery.models.includeBy` | `{ field: string, equals: string \| number \| boolean \| null }[]` or `{ field: string, match: string }[]` | Allow-list for top-level raw provider model fields | @@ -362,7 +363,7 @@ The plugin currently supports ten model info formats: | `"aiproxy"` | AIProxy's discovered `/models` entries plus models.dev | No | Maps inline AIProxy limits, pricing, and declared effort tiers; models.dev supplies general metadata | | `"bifrost"` | Fields in Bifrost's `/v1/models` response | No | Reads Bifrost inline limits, modalities, and base pricing when present | | `"litellm"` | Provider-specific model info endpoint | No | Uses `/v1/model/info` by default; set `modelInfoEndpoint` to override it | -| `"models.dev"` | `https://models.dev/models.json` | No | Uses the public models.dev metadata index | +| `"models.dev"` | `https://models.dev/models.json` | No | Uses the public models.dev metadata index; limits advertised inline by the provider take precedence | | `"vllm"` | Fields in the provider's `/v1/models` response | No | Reads vLLM-style `max_model_len` when present | | `"lmstudio"` | LM Studio 0.4.0+ `/api/v1/models` inventory | No | Uses `/api/v1/models` by default; set `modelInfoEndpoint` for another path | | `"llama-swap"` | Fields in llama-swap's `/v1/models` response | No | Reads inline context, modalities, and function-calling metadata when present | @@ -374,7 +375,7 @@ The plugin currently supports ten model info formats: ### AIProxy Metadata -Use `modelInfoFormat: "aiproxy"` when the configured model-list endpoint returns AIProxy's inline `limits` and `pricing` fields. The plugin makes no second request to AIProxy. It also fetches models.dev for general metadata and display names, then overlays valid AIProxy values. Explicit model configuration remains highest priority. +Use `modelInfoFormat: "aiproxy"` when the configured model-list endpoint returns AIProxy's inline `limits` and `pricing` fields. The plugin makes no second request to AIProxy. It also fetches models.dev for general metadata and display names, then overlays valid AIProxy values. Limits advertised inline in the model-list entry are kept as the base, so they win over models.dev before the AIProxy `limits` block is applied. Explicit model configuration remains highest priority. ```jsonc { @@ -689,6 +690,8 @@ When a discovered model can be matched to models.dev metadata, the plugin may po The current models.dev data uses a flat `provider/model`-keyed object. Its `limit` object is singular, and its `context`, `input`, and `output` fields are independently optional. `structured_output` and `temperature` may also be omitted; the plugin leaves omitted fields unset rather than inferring `false`. The current models.dev dataset does not provide `variants` metadata. +For gateways that expose inline limits on their `/v1/models` entries, those values take precedence over matching models.dev limits. The plugin reads `context_length` or `max_context_length` for the context window and `max_completion_tokens` or `max_output_tokens` for the output budget, then fills any remaining gap from models.dev. This keeps gateways that front several upstreams (for example a LiteLLM pool or a custom router) authoritative for what their own routes accept, while models.dev still supplies names and capabilities. A models.dev input limit is bounded by the effective context window. + Matching is intentionally conservative: - Exact model ids are preferred. diff --git a/package-lock.json b/package-lock.json index 2848e3d6..8f9e3d8d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,17 @@ { "name": "opencode-models-discovery", - "version": "2.1.2", + "version": "2.2.0-rc.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opencode-models-discovery", - "version": "2.1.2", + "version": "2.2.0-rc.1", "license": "MIT", - "dependencies": { - "@opencode/plugin": "2.2.6", - "xdg-basedir": "^5.1.0" - }, "devDependencies": { "@eslint/js": "^10.0.1", "@opencode-ai/plugin": "^1.18.29", + "@opencode/plugin": "2.2.6", "@types/node": "^26.5.1", "@vitest/coverage-v8": "^5.0.0", "esbuild": "^0.28.2", @@ -22,19 +19,18 @@ "globals": "^17.12.0", "typescript": "^5.9.3", "typescript-eslint": "^8.70.0", - "vitest": "^5.0.0" + "vitest": "^5.0.0", + "xdg-basedir": "^5.1.0" }, "engines": { "opencode": ">=1.18.29" - }, - "peerDependencies": { - "@opencode-ai/plugin": ">=1.18.29" } }, "node_modules/@ai-sdk/provider": { "version": "3.0.8", "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.8.tgz", "integrity": "sha512-oGMAgGoQdBXbZqNG0Ze56CHjDZ1IDYOwGYxYjO5KLSlz5HiNQ9udIXsPZ61VWaHGZ5XW/jyjmr6t2xz2jGVwbQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "json-schema": "^0.4.0" @@ -47,6 +43,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/util": "^5.2.0", @@ -61,6 +58,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-js": "^5.2.0", @@ -76,6 +74,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^2.2.0", @@ -89,6 +88,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/util-buffer-from": "^2.2.0", @@ -102,6 +102,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/util": "^5.2.0", @@ -116,6 +117,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" @@ -125,6 +127,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "^3.222.0", @@ -136,6 +139,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^2.2.0", @@ -149,6 +153,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/util-buffer-from": "^2.2.0", @@ -162,6 +167,7 @@ "version": "3.1057.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.1057.0.tgz", "integrity": "sha512-5MliYkp2u0+2arTp5fZIaxl+xmm90LEKv/VeSxhfNQW4t0fvWJrNO429/jchWQenNoDRrOGE59VfbuZUfwFujg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", @@ -183,6 +189,7 @@ "version": "3.980.1", "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.980.1.tgz", "integrity": "sha512-W7jDWUPucezIUjFZpr8MudQQtz/m6yPMyAFrOyyQcHjuF4UrZdcCdP8eV1js06U9sH3dxp0AbhN+s9uHwQyXzQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "^3.975.0", @@ -202,6 +209,7 @@ "version": "3.972.81", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.972.81.tgz", "integrity": "sha512-WS8AKP5qS6SzDN7bNZBd3ECmjeHkBbHgBmZjtFvHo7zdnSn5v+U9hSRuQLDQ9aueU2/ToH0x56mC7UgtLueBiA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/nested-clients": "^3.998.1", @@ -218,6 +226,7 @@ "version": "3.972.82", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.82.tgz", "integrity": "sha512-sAfysgoFWKg/CJvufYM7lhvMUfJpTsuwjCLzp843Vtw8NlQh2PW9/+upUFrsoQK46pJcv3u1a+st7qJ4jfSODw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/core": "^3.980.1", @@ -234,6 +243,7 @@ "version": "3.972.84", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.84.tgz", "integrity": "sha512-6xFe7tGPZedfak01TLUxuExU2Xhqw0VtoVvcS/+1OLjPB8If5vulTpCaR0TKTA/J6sAhTOjZHb6+4R1e1KRMKg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/core": "^3.980.1", @@ -252,6 +262,7 @@ "version": "3.973.27", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.27.tgz", "integrity": "sha512-geyao3+s46HIo8C0vyLz7cQ1qaOM1H6wrP/nNWTr5SoR4r97qlWrubi+a7Sg128KmvRZIFbwXTvkbKawBeysqg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/core": "^3.980.1", @@ -276,6 +287,7 @@ "version": "3.972.89", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.89.tgz", "integrity": "sha512-5kcIZkMMs6eYvU6psqZkmeWsS3EGES53S6xUJFCC6eoJak3BQCCaF8yLU1bN6LTAOr2a9RWw+m1XBGen7Jcq+Q==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/core": "^3.980.1", @@ -293,6 +305,7 @@ "version": "3.972.94", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.94.tgz", "integrity": "sha512-qZzjRq45j0S0rI4XjHKGL63gGSFGPDYRe18Crp7l4Zk3Yr6PG4PjIixZEtsGIliOjtZ/h+ATExgjE54JQJeZMQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "^3.972.82", @@ -315,6 +328,7 @@ "version": "3.972.82", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.82.tgz", "integrity": "sha512-VsFOXU7gYDWqYwRis7Rif3CrE+c7xMNxp0L3XqGPuvF6JO2K93FYjhLlEphW5uEMpHEXkOOutZ5USGErgfKaog==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/core": "^3.980.1", @@ -331,6 +345,7 @@ "version": "3.973.26", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.973.26.tgz", "integrity": "sha512-IIrqv0iFNwO8Cd5EigbwILsnsvmprCAw5/BPfRvP/EiLQtBfv3PI9KpyUj2+qsJhYcpmKad+ugaS0+izle8OqQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/core": "^3.980.1", @@ -349,6 +364,7 @@ "version": "3.972.88", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.88.tgz", "integrity": "sha512-RmeE04naP7gWzux9l1vqNQPzuo2OkH0Ca9WDtX5Zf4NERoBLeWZNU2g1ka7aJ4Fc9fqBxBLtGL89vYEfFP1LHw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/core": "^3.980.1", @@ -366,6 +382,7 @@ "version": "3.1057.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.1057.0.tgz", "integrity": "sha512-rbrEHtz11g0kxsSkYr3fx2HABNNblp4AhB2MgPvJHgYOWfJ2eBviU7Mvoaef0PW8QH6lbZDfJcnM7eKvtvz3sw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-cognito-identity": "3.1057.0", @@ -394,6 +411,7 @@ "version": "3.998.1", "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.998.1.tgz", "integrity": "sha512-KPw5W6LN3waUskfDCRXRcyBEHAev5PVlMOjMq74OIivFYbgPvq39QeFege7IOFPncO425/AQK0qxdfaoeGejYQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/core": "^3.980.1", @@ -413,6 +431,7 @@ "version": "3.996.51", "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.51.tgz", "integrity": "sha512-+aHvUugVBuMPXxgkPfWnTMyGdE/yWS8GHi5+qQ37HowS0YqzrbuaDLznj+Dtmtu5jgCdqz36gXmujOToUhNNWw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "^3.975.0", @@ -428,6 +447,7 @@ "version": "3.1164.0", "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1164.0.tgz", "integrity": "sha512-9LPRWfev5QZH1EnNn9O/Y++iCRpfxrJs4EIsJuOAKYZ0DY/kZ3aOx0qWzmN1OUOd8JlUk6Mjy1tJ8b7ul5tuVw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-sdk/core": "^3.980.1", @@ -445,6 +465,7 @@ "version": "3.975.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.975.0.tgz", "integrity": "sha512-WQlhs6juByzWOzj5fwxOx0mPJaEqMcG/sDpl3Id61B3XhKE63xY+0QWcnG+sWR/sCfprmreyUo1lM7IKZmHMzw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/types": "^4.19.0", @@ -458,6 +479,7 @@ "version": "3.965.10", "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.965.10.tgz", "integrity": "sha512-ycwH6Zd2GhuSqdXX9ihbCjeGTB6xOJs+O3+Jb8/zDG9978XU80qs75dfkPJRMNKe5MvBZPuNeFpd4JZKPoUF4g==", + "dev": true, "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" @@ -470,6 +492,7 @@ "version": "3.972.42", "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.42.tgz", "integrity": "sha512-smX8/gNP8Kjq+CWTBMZQLQ912vOQjiWExzwzvMO+eujPB5RY8IbtF0AGdUUXHKN7KoDWK9dIcuW0WG269kiP6w==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/types": "^4.19.0", @@ -483,6 +506,7 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.3.0.tgz", "integrity": "sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==", + "dev": true, "license": "Apache-2.0", "engines": { "node": ">=18.0.0" @@ -577,6 +601,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -593,6 +618,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -609,6 +635,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -625,6 +652,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -641,6 +669,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -657,6 +686,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -673,6 +703,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -689,6 +720,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -705,6 +737,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -721,6 +754,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -737,6 +771,7 @@ "cpu": [ "ia32" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -753,6 +788,7 @@ "cpu": [ "loong64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -769,6 +805,7 @@ "cpu": [ "mips64el" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -785,6 +822,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -801,6 +839,7 @@ "cpu": [ "riscv64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -817,6 +856,7 @@ "cpu": [ "s390x" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -833,6 +873,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -849,6 +890,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -865,6 +907,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -881,6 +924,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -897,6 +941,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -913,6 +958,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -929,6 +975,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -945,6 +992,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -961,6 +1009,7 @@ "cpu": [ "ia32" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -977,6 +1026,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1118,6 +1168,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/@gar/promise-retry/-/promise-retry-1.0.3.tgz", "integrity": "sha512-GmzA9ckNokPypTg10pgpeHNQe7ph+iIKKmhKu3Ob9ANkswreCx7R3cKmY781K8QK3AqVL3xVh9A42JvIAbkkSA==", + "dev": true, "license": "MIT", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -1193,6 +1244,7 @@ "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, "license": "ISC", "dependencies": { "string-width": "^5.1.2", @@ -1210,6 +1262,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "dev": true, "license": "ISC", "dependencies": { "minipass": "^7.0.4" @@ -1222,6 +1275,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@isaacs/string-locale-compare/-/string-locale-compare-1.1.0.tgz", "integrity": "sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==", + "dev": true, "license": "ISC" }, "node_modules/@jridgewell/resolve-uri": { @@ -1364,6 +1418,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/@npmcli/agent/-/agent-4.0.2.tgz", "integrity": "sha512-EUEuWAxnL07Sp5/iC/1X6Xj+XThUvnbei9zfRWZdEXa7lss9RTHMhAHBeg+MZ5To9s/gGaSI+UwZTPdYMvKSeg==", + "dev": true, "license": "ISC", "dependencies": { "agent-base": "^7.1.0", @@ -1380,6 +1435,7 @@ "version": "9.4.0", "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-9.4.0.tgz", "integrity": "sha512-4Bm8hNixJG/sii1PMnag0V9i/sGOX9VRzFrUiZMSBJpGlLR38f+Btl85d07G9GL56xO0l0OZjvrGNYsDYp0xKA==", + "dev": true, "license": "ISC", "dependencies": { "@isaacs/string-locale-compare": "^1.1.0", @@ -1427,6 +1483,7 @@ "version": "10.8.1", "resolved": "https://registry.npmjs.org/@npmcli/config/-/config-10.8.1.tgz", "integrity": "sha512-MAYk9IlIGiyC0c9fnjdBSQfIFPZT0g1MfeSiD1UXTq2zJOLX55jS9/sETJHqw/7LN18JjITrhYfgCfapbmZHiQ==", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/map-workspaces": "^5.0.0", @@ -1446,6 +1503,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz", "integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -1455,6 +1513,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-5.0.0.tgz", "integrity": "sha512-7OsC1gNORBEawOa5+j2pXN9vsicaIOH5cPXxoR6fJOmH6/EXpJB2CajXOu1fPRFun2m1lktEFX11+P89hqO/og==", + "dev": true, "license": "ISC", "dependencies": { "semver": "^7.3.5" @@ -1467,6 +1526,7 @@ "version": "7.0.2", "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-7.0.2.tgz", "integrity": "sha512-oeolHDjExNAJAnlYP2qzNjMX/Xi9bmu78C9dIGr4xjobrSKbuMYCph8lTzn4vnW3NjIqVmw/f8BCfouqyJXlRg==", + "dev": true, "license": "ISC", "dependencies": { "@gar/promise-retry": "^1.0.0", @@ -1486,6 +1546,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz", "integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -1495,6 +1556,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": ">=20" @@ -1504,6 +1566,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", + "dev": true, "license": "ISC", "dependencies": { "isexe": "^4.0.0" @@ -1519,6 +1582,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-4.0.0.tgz", "integrity": "sha512-yNyAdkBxB72gtZ4GrwXCM0ZUedo9nIbOMKfGjt6Cu6DXf0p8y1PViZAKDC8q8kv/fufx0WTjRBdSlyrvnP7hmA==", + "dev": true, "license": "ISC", "dependencies": { "npm-bundled": "^5.0.0", @@ -1535,6 +1599,7 @@ "version": "5.0.3", "resolved": "https://registry.npmjs.org/@npmcli/map-workspaces/-/map-workspaces-5.0.3.tgz", "integrity": "sha512-o2grssXo1e774E5OtEwwrgoszYRh0lqkJH+Pb9r78UcqdGJRDRfhpM8DvZPjzNLLNYeD/rNbjOKM3Ss5UABROw==", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/name-from-folder": "^4.0.0", @@ -1550,6 +1615,7 @@ "version": "9.0.3", "resolved": "https://registry.npmjs.org/@npmcli/metavuln-calculator/-/metavuln-calculator-9.0.3.tgz", "integrity": "sha512-94GLSYhLXF2t2LAC7pDwLaM4uCARzxShyAQKsirmlNcpidH89VA4/+K1LbJmRMgz5gy65E/QBBWQdUvGLe2Frg==", + "dev": true, "license": "ISC", "dependencies": { "cacache": "^20.0.0", @@ -1566,6 +1632,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/@npmcli/name-from-folder/-/name-from-folder-4.0.0.tgz", "integrity": "sha512-qfrhVlOSqmKM8i6rkNdZzABj8MKEITGFAY+4teqBziksCQAOLutiAxM1wY2BKEd8KjUSpWmWCYxvXr0y4VTlPg==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -1575,6 +1642,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-5.0.0.tgz", "integrity": "sha512-uuG5HZFXLfyFKqg8QypsmgLQW7smiRjVc45bqD/ofZZcR/uxEjgQU8qDPv0s9TEeMUiAAU/GC5bR6++UdTirIQ==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -1584,6 +1652,7 @@ "version": "7.0.5", "resolved": "https://registry.npmjs.org/@npmcli/package-json/-/package-json-7.0.5.tgz", "integrity": "sha512-iVuTlG3ORq2iaVa1IWUxAO/jIp77tUKBhoMjuzYW2kL4MLN1bi/ofqkZ7D7OOwh8coAx1/S2ge0rMdGv8sLSOQ==", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/git": "^7.0.0", @@ -1602,6 +1671,7 @@ "version": "9.0.2", "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-9.0.2.tgz", "integrity": "sha512-h7b1j0egrruBm/32eVA6/zMw5VJxxaB3vT+uVGGQ4SAAMrQVFHNuzL4+EAXn66j+huj0jApINc1fW3fC+kVoeA==", + "dev": true, "license": "ISC", "dependencies": { "which": "^6.0.0" @@ -1614,6 +1684,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": ">=20" @@ -1623,6 +1694,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", + "dev": true, "license": "ISC", "dependencies": { "isexe": "^4.0.0" @@ -1638,6 +1710,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/@npmcli/query/-/query-5.0.0.tgz", "integrity": "sha512-8TZWfTQOsODpLqo9SVhVjHovmKXNpevHU0gO9e+y4V4fRIOneiXy0u0sMP9LmS71XivrEWfZWg50ReH4WRT4aQ==", + "dev": true, "license": "ISC", "dependencies": { "postcss-selector-parser": "^7.0.0" @@ -1650,6 +1723,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/@npmcli/redact/-/redact-4.0.0.tgz", "integrity": "sha512-gOBg5YHMfZy+TfHArfVogwgfBeQnKbbGo3pSUyK/gSI0AVu+pEiDVcKlQb0D8Mg1LNRZILZ6XG8I5dJ4KuAd9Q==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -1659,6 +1733,7 @@ "version": "10.0.4", "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-10.0.4.tgz", "integrity": "sha512-mGUWr1uMnf0le2TwfOZY4SFxZGXGfm4Jtay/nwAa2FLNAKXUoUwaGwBMNH36UHPtinWfTSJ3nqFQr0091CxVGg==", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/node-gyp": "^5.0.0", @@ -1714,6 +1789,7 @@ "version": "2.2.6", "resolved": "https://registry.npmjs.org/@opencode/ai/-/ai-2.2.6.tgz", "integrity": "sha512-VRes4ACJj1Lw8tpAgWwOy8+QPeXTko/KkJA8NDGVgVtl+MmzV/J5tlrpnpAI6zAgUARYV3GDFYj6EHn1V5ndLQ==", + "dev": true, "license": "MIT", "dependencies": { "@aws-sdk/credential-providers": "3.1057.0", @@ -1729,12 +1805,14 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/effect/-/effect-4.1.0.tgz", "integrity": "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q==", + "dev": true, "license": "MIT" }, "node_modules/@opencode/plugin": { "version": "2.2.6", "resolved": "https://registry.npmjs.org/@opencode/plugin/-/plugin-2.2.6.tgz", "integrity": "sha512-PbQD4aN8YJ8w3gM5L9h2msXppxEAUVj8Ejbaj6MMNb+99jPm7/XM+g2ugZomSNs1XXuab2IlrIKDgbiI49VfLw==", + "dev": true, "license": "MIT", "dependencies": { "@ai-sdk/provider": "3.0.8", @@ -1782,6 +1860,7 @@ "version": "2.2.6", "resolved": "https://registry.npmjs.org/@opencode/client/-/client-2.2.6.tgz", "integrity": "sha512-o90b8Z6tk62U3MiRK1g6r7WmNWLzHzIHme75/MCWa9/XmOREMzY4W1N01wAuHwU3J6UH/PlUDNKvLkeX5qCyeA==", + "dev": true, "license": "MIT", "dependencies": { "@opencode/protocol": "2.2.6", @@ -1804,12 +1883,14 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/effect/-/effect-4.1.0.tgz", "integrity": "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q==", + "dev": true, "license": "MIT" }, "node_modules/@opencode/protocol": { "version": "2.2.6", "resolved": "https://registry.npmjs.org/@opencode/protocol/-/protocol-2.2.6.tgz", "integrity": "sha512-XBAgz2qnhFS/EI4P3pgC9A6HJTHnFiaQXkqux3liXwE7hZh5wEzRZ551nQZD95rkrH00EnryUSaKI2y/O2Bt6w==", + "dev": true, "license": "MIT", "dependencies": { "@opencode/schema": "2.2.6", @@ -1820,12 +1901,14 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/effect/-/effect-4.1.0.tgz", "integrity": "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q==", + "dev": true, "license": "MIT" }, "node_modules/@opencode/schema": { "version": "2.2.6", "resolved": "https://registry.npmjs.org/@opencode/schema/-/schema-2.2.6.tgz", "integrity": "sha512-TaLr30ktFFVsuReorFNbqYvybTVxV/4M44qm5XzRjUqq6deR0jH4h4Wt1gB0NTkXDFL0LMH+Ul1oVBnp5w9TRg==", + "dev": true, "license": "MIT", "dependencies": { "@standard-schema/spec": "1.1.0", @@ -1836,12 +1919,14 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/effect/-/effect-4.1.0.tgz", "integrity": "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q==", + "dev": true, "license": "MIT" }, "node_modules/@opencode/util": { "version": "2.2.6", "resolved": "https://registry.npmjs.org/@opencode/util/-/util-2.2.6.tgz", "integrity": "sha512-mOj2x3Aqw66sYzXq8MrypJVksFiO7GmFoSi5zi65TLtePbZCxvS/2TMbjgfa5MfWQp8YOl2327iv4W2rg6QQag==", + "dev": true, "license": "MIT", "dependencies": { "@effect/opentelemetry": "4.1.0", @@ -1872,6 +1957,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/@effect/opentelemetry/-/opentelemetry-4.1.0.tgz", "integrity": "sha512-j9bNzQaoQvcnimBFMG0i3piEW20E8HjkXAQHTJN/XqG2e4uJ9zCv53/HCNzD7+ooFn5S4nwQy/BOXeNReMIe+A==", + "dev": true, "license": "MIT", "engines": { "node": ">=22.19.0" @@ -1919,6 +2005,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/@effect/platform-node/-/platform-node-4.1.0.tgz", "integrity": "sha512-v+X7moGVF9k5oMVvz0slA+NgtEod+W+oygeI285MDJgSlUCW3JcqElj+cD3rlijFZtpKhC7RLkU1GuCxjGHTpA==", + "dev": true, "license": "MIT", "dependencies": { "@effect/platform-node-shared": "^4.1.0", @@ -1936,6 +2023,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/@effect/platform-node-shared/-/platform-node-shared-4.1.0.tgz", "integrity": "sha512-uYQfFRoxWLo8fIhiSeBcmz/R1ooOfE3HF3cWHFgxz82tZMk2Wn02BGABcdLmaAch9VpDLbtWnuhSxNyBsGMUFg==", + "dev": true, "license": "MIT", "dependencies": { "@types/ws": "^8.18.2", @@ -1952,12 +2040,14 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/effect/-/effect-4.1.0.tgz", "integrity": "sha512-lGx2MJJyrXA8RZb2UpQ/0Nkb5Utaimby7oD92+18noBxLPE85IFOvptdzau8dvcxAOwfwHo9iqapbKeFzqQM/Q==", + "dev": true, "license": "MIT" }, "node_modules/@opencode/util/node_modules/minimatch": { "version": "10.2.5", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "brace-expansion": "^5.0.5" @@ -1973,6 +2063,7 @@ "version": "8.12.4", "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.4.tgz", "integrity": "sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==", + "dev": true, "license": "MIT", "engines": { "node": ">=22.19.0" @@ -1982,6 +2073,7 @@ "version": "1.9.0", "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", + "dev": true, "license": "Apache-2.0", "engines": { "node": ">=8.0.0" @@ -1991,6 +2083,7 @@ "version": "0.219.0", "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.219.0.tgz", "integrity": "sha512-FFx7YnaYJlIjqWW/AG/yAZ0L/NEY724PipXXXQLdtZPbLwBGbUMTGL1i/esI56TWfTUXxhLfpgrnWJCG8aUJyg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0" @@ -2003,6 +2096,7 @@ "version": "2.8.0", "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.8.0.tgz", "integrity": "sha512-/3FIraneMcng67SUJCxvyInk/oxzwsxyadufk0wwfOBLf5wqtAGX4MoQASwSbndBPeARzBryUM9Azr5kHIdWLw==", + "dev": true, "license": "Apache-2.0", "engines": { "node": "^18.19.0 || >=20.6.0" @@ -2015,6 +2109,7 @@ "version": "2.8.0", "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.8.0.tgz", "integrity": "sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" @@ -2030,6 +2125,7 @@ "version": "0.219.0", "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.219.0.tgz", "integrity": "sha512-9t6SvBXXBEjOBcIzgozvBbd3jWrv3Gt3ngGhl1fhdZ/zRc7oZDVOFEqbi2zlBpW9BXhgDMKv422J0DL/3iQWfw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "2.8.0", @@ -2049,6 +2145,7 @@ "version": "0.219.0", "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-exporter-base/-/otlp-exporter-base-0.219.0.tgz", "integrity": "sha512-zvIxQX/AZUVKDU+hCuYx+7UkiP7GRdnk1ZbFQRYzHvYp47cAWR4j3IhoPhV9KaeXEv2xdGq3IA6PnpzDmLcmSA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "2.8.0", @@ -2065,6 +2162,7 @@ "version": "0.219.0", "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.219.0.tgz", "integrity": "sha512-aaYKAyXhw9VchKZVGOopD3Gw/kPsyrX2c6IQ0AW32mTjqmZOh5Y6Gf5OYqTNqVktAeBjmFinhyFaCwW6GYK9YQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/api-logs": "0.219.0", @@ -2085,6 +2183,7 @@ "version": "2.8.0", "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.8.0.tgz", "integrity": "sha512-qmXQ27ilDbUK/vGMqwL8D4/rhn76C+sherM4wTbjlfknR8Nvfc/hCxjRJPhkzZzUsPiNg16SA31NxMabwttRjg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "2.8.0", @@ -2101,6 +2200,7 @@ "version": "0.219.0", "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.219.0.tgz", "integrity": "sha512-s6lTKRakaPClvKoWHRChxnXjDMkM/TQ30ff78jN6EBGf7MI7VzANE5PU3f4z9qDUudWjvZjOLHG0rBnBKYvoXA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/api-logs": "0.219.0", @@ -2119,6 +2219,7 @@ "version": "2.8.0", "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-2.8.0.tgz", "integrity": "sha512-UDBGaj6W0Rgy5rTTaoxs8gVGF/aGkAKyjurJv7se6wjRxJu7FoquTLT/vt54DZfo4crbprYfhX/SOK9+BPw1qg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "2.8.0", @@ -2136,6 +2237,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.8.0.tgz", "integrity": "sha512-mhU4jp+vW0mGbFRd+GeXHvmfA4aDqWjBjLC3pE5XMpLs0IE2ryYb019Ts2AQrOq67gaTF25D91+fgvEHDZEnuQ==", "deprecated": "Use @opentelemetry/sdk-trace package", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "2.8.0", @@ -2154,6 +2256,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-2.8.0.tgz", "integrity": "sha512-nZt9OGufioAc3AfoLTqA9bsAeaMJAictYDdI2VcNQ+PmT+3rfKjAZDZvgPfd8VPX0O5Bw1hdQF6kDK8VSpZiWg==", "deprecated": "Use @opentelemetry/sdk-trace package", + "dev": true, "license": "Apache-2.0", "dependencies": { "@opentelemetry/context-async-hooks": "2.8.0", @@ -2171,6 +2274,7 @@ "version": "1.45.0", "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.45.0.tgz", "integrity": "sha512-aOP45mbcOKbQVvFWfQmgoOPT8R2iwbbbgl83k4CujGV9BrJhFr3qG55MFpwFs4YLabpuW3HhzUY9eQxPlDqaZw==", + "dev": true, "license": "Apache-2.0", "engines": { "node": ">=14" @@ -2180,7 +2284,7 @@ "version": "0.154.0", "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.154.0.tgz", "integrity": "sha512-KYOUGQFlLWR+s4QMV2Q9ko38TZm7EdO87Qm7rvZLqk/webse/cDjtyxKhg/47l0byCbs/k46LT8qc4PKjAikzA==", - "devOptional": true, + "dev": true, "license": "MIT", "peer": true, "funding": { @@ -2191,6 +2295,7 @@ "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, "license": "MIT", "optional": true, "engines": { @@ -2201,6 +2306,7 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-6.3.1.tgz", "integrity": "sha512-dpF9j2yJDoPzSCaZn0MSB3xzmnXQVJeTSAWJcQVcgbmluwhpFeemmII0cF1t+WYfoVS+shEFq79+MmUItgzJLg==", + "dev": true, "license": "MIT", "peer": true, "engines": { @@ -2214,6 +2320,7 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/@redis/client/-/client-6.3.1.tgz", "integrity": "sha512-masbfVKULdoAofwddepZxRhWa4w6zvBHn6TRn90TRPrRkVIlGCur3pFqwWaCbMxtYI9twepkz63e/T/tEH8GjA==", + "dev": true, "license": "MIT", "peer": true, "engines": { @@ -2236,6 +2343,7 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/@redis/json/-/json-6.3.1.tgz", "integrity": "sha512-fMz4kUwJzEftcU9EMaqsjZcUwzpTQLOYRqhQsAD6uKvZWeamblK13ZhgO5SzVSZVk31jmwLeTRpU5GAl5egfUw==", + "dev": true, "license": "MIT", "peer": true, "engines": { @@ -2249,6 +2357,7 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/@redis/search/-/search-6.3.1.tgz", "integrity": "sha512-T67pvPUpW82VrZLvihO8O2DFMC7eY2oMAzMzapCbiPZn7mdWqHMEIlohYim12gIawT5kn6qT/Cvmm4WulKB+kQ==", + "dev": true, "license": "MIT", "peer": true, "engines": { @@ -2262,6 +2371,7 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-6.3.1.tgz", "integrity": "sha512-MNDgrm+i63M/1a+XA+HcDsScwt4uBh/fGGJ84swTQZTFK5K5wMmxdlTRa4ZgmNJzjxMaszW/ipPScMUGV3aAMg==", + "dev": true, "license": "MIT", "peer": true, "engines": { @@ -2278,6 +2388,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2295,6 +2406,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2312,6 +2424,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2329,6 +2442,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2346,6 +2460,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2363,6 +2478,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2380,6 +2496,7 @@ "cpu": [ "arm64" ], + "dev": true, "libc": [ "glibc" ], @@ -2400,6 +2517,7 @@ "cpu": [ "arm64" ], + "dev": true, "libc": [ "musl" ], @@ -2420,6 +2538,7 @@ "cpu": [ "ppc64" ], + "dev": true, "libc": [ "glibc" ], @@ -2440,6 +2559,7 @@ "cpu": [ "s390x" ], + "dev": true, "libc": [ "glibc" ], @@ -2460,6 +2580,7 @@ "cpu": [ "x64" ], + "dev": true, "libc": [ "glibc" ], @@ -2480,6 +2601,7 @@ "cpu": [ "x64" ], + "dev": true, "libc": [ "musl" ], @@ -2500,6 +2622,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2517,6 +2640,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2534,6 +2658,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2548,7 +2673,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", - "devOptional": true, + "dev": true, "license": "MIT", "peer": true }, @@ -2556,6 +2681,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-4.0.0.tgz", "integrity": "sha512-NwCl5Y0V6Di0NexvkTqdoVfmjTaQwoLM236r89KEojGmq/jMls8S+zb7yOwAPdXvbwfKDlP+lmXgAL4vKSQT+A==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@sigstore/protobuf-specs": "^0.5.0" @@ -2568,6 +2694,7 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/@sigstore/core/-/core-3.2.1.tgz", "integrity": "sha512-qRsxPnCrbC/puegGxKuynfnxgLiHqWStrSjxkoB4YKqq3Z3s4cyZyj42ZdWFAEblNP65C+rBH8EuREHIXoi83g==", + "dev": true, "license": "Apache-2.0", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -2577,6 +2704,7 @@ "version": "0.5.2", "resolved": "https://registry.npmjs.org/@sigstore/protobuf-specs/-/protobuf-specs-0.5.2.tgz", "integrity": "sha512-SQqvFMt4V78fdjcDdYX6HbiVSOR4QK3ZgwCa2KOsopAgPIHy1rU5UDUmzLl02r5oyyaYcYHR1hpwDRk/yUe+Mw==", + "dev": true, "license": "Apache-2.0", "engines": { "node": "^18.17.0 || >=20.5.0" @@ -2586,6 +2714,7 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/@sigstore/sign/-/sign-4.1.1.tgz", "integrity": "sha512-Hf4xglukg0XXQ2RiD5vSoLjdPe8OBUPA8XeVjUObheuDcWdYWrnH/BNmxZCzkAy68MzmNCxXLeurJvs6hcP2OQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@gar/promise-retry": "^1.0.2", @@ -2603,6 +2732,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/@sigstore/tuf/-/tuf-4.0.2.tgz", "integrity": "sha512-TCAzTy0xzdP79EnxSjq9KQ3eaR7+FmudLC6eRKknVKZbV7ZNlGLClAAQb/HMNJ5n2OBNk2GT1tEmU0xuPr+SLQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@sigstore/protobuf-specs": "^0.5.0", @@ -2616,6 +2746,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/@sigstore/verify/-/verify-3.1.1.tgz", "integrity": "sha512-qv7+G3J2cc6wwFj3yKvXOamzqhMwSk1ogPGmhpS8iXllcPrJaIIBA+4HbttlHVu1pqWTdmaCH/WE7UOC51kdoA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@sigstore/bundle": "^4.0.0", @@ -2630,6 +2761,7 @@ "version": "3.39.0", "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.39.0.tgz", "integrity": "sha512-JJ/46AWQ4ipS1N2eZmUj7yzIhH8NhQIfAE+dce7NSB6dmFh+7hvD4pbofcoT4I0Xzfy/LNhZx3V2QhwYyAiqdg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/types": "^4.20.0", @@ -2643,6 +2775,7 @@ "version": "4.5.2", "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.5.2.tgz", "integrity": "sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/core": "^3.33.2", @@ -2657,6 +2790,7 @@ "version": "4.2.14", "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.2.14.tgz", "integrity": "sha512-erZq0nOIpzfeZdCyzZjdJb4nVSKLUmSkaQUVkRGQTXs30gyUGeKnrYEg+Xe1W5gE3aReS7IgsvANwVPxSzY6Pw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/crc32": "5.2.0", @@ -2672,6 +2806,7 @@ "version": "5.8.1", "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.8.1.tgz", "integrity": "sha512-h8BdMUrUBhMhMaeK7QqAdINRZezCGuYOCpcOZZ1ewxbHST9rdTd09xwNpvLTYfzDRehxQiReK4SKbdYZxBA+ew==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/core": "^3.39.0", @@ -2686,6 +2821,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" @@ -2698,6 +2834,7 @@ "version": "4.14.2", "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.14.2.tgz", "integrity": "sha512-i1uORV1v3qBqP43ayRKzIdm1q5x14tf8N4Dd06/QUX1Szm6VxHMrTsu20X5E63UFsaNZCRjI4SXG0jDmqYa+3w==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/core": "^3.39.0", @@ -2712,6 +2849,7 @@ "version": "5.7.5", "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.7.5.tgz", "integrity": "sha512-WPjdr5oWOk1LArpI4pavu+fSo+/evi0Re1olxGvqwuZopd4gYR1UGCi+Soyn/IjmafqbWs+ZC+3AKxJS3ZpwUg==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/core": "^3.38.0", @@ -2726,6 +2864,7 @@ "version": "4.20.0", "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.20.0.tgz", "integrity": "sha512-lCA6QG22dPk9ecHbv91jDQZsmtPUjdS1aE2Il6NNPqe7DrYc0dZQi6DhcESk2KYXH2sp5xbAcGdYMZDFnuzA2A==", + "dev": true, "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" @@ -2738,6 +2877,7 @@ "version": "4.5.2", "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-4.5.2.tgz", "integrity": "sha512-nxu3SgmAw9JXT2CtkU0m/XNLWpP9MsaBx1zAGAypCbYj15tIFlmcYwpF+Oh18le83d+IM9PT7ENdXnE4C+d5mA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/core": "^3.33.2", @@ -2751,6 +2891,7 @@ "version": "4.5.2", "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-4.5.2.tgz", "integrity": "sha512-iq+cW3mAb7vfcxEEpYi3zXKpDtbrIFyanWjQl4zBq4seWD4OSxXDWSfespZxenX6aEaighn+NR3u1nU1DSvs3w==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/core": "^3.33.2", @@ -2764,6 +2905,7 @@ "version": "4.2.2", "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.2.2.tgz", "integrity": "sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@smithy/util-buffer-from": "^4.2.2", @@ -2775,12 +2917,14 @@ }, "node_modules/@standard-schema/spec": { "version": "1.1.0", + "dev": true, "license": "MIT" }, "node_modules/@tufjs/canonical-json": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tufjs/canonical-json/-/canonical-json-2.0.0.tgz", "integrity": "sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA==", + "dev": true, "license": "MIT", "engines": { "node": "^16.14.0 || >=18.0.0" @@ -2790,6 +2934,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/@tufjs/models/-/models-4.1.0.tgz", "integrity": "sha512-Y8cK9aggNRsqJVaKUlEYs4s7CvQ1b1ta2DVPyAimb0I2qhzjNk+A+mxvll/klL0RlfuIUei8BF7YWiua4kQqww==", + "dev": true, "license": "MIT", "dependencies": { "@tufjs/canonical-json": "2.0.0", @@ -2840,6 +2985,7 @@ "version": "26.6.6", "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz", "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", + "dev": true, "license": "MIT", "dependencies": { "undici-types": "~8.9.0" @@ -2849,6 +2995,7 @@ "version": "8.18.2", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.2.tgz", "integrity": "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==", + "dev": true, "license": "MIT", "dependencies": { "@types/node": "*" @@ -3178,6 +3325,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz", "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -3210,6 +3358,7 @@ "version": "7.1.4", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true, "license": "MIT", "engines": { "node": ">= 14" @@ -3236,6 +3385,7 @@ "version": "6.5.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.5.0.tgz", "integrity": "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ==", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -3248,6 +3398,7 @@ "version": "6.2.3", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -3282,12 +3433,14 @@ "version": "1.0.20", "resolved": "https://registry.npmjs.org/aws4fetch/-/aws4fetch-1.0.20.tgz", "integrity": "sha512-/djoAN709iY65ETD6LKCtyyEI04XIBP5xVvfmNxsEP0uJB5tyaGBztSryRr4HqMStr9R06PisQE7m9zDTXKu6g==", + "dev": true, "license": "MIT" }, "node_modules/balanced-match": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, "license": "MIT", "engines": { "node": "18 || 20 || >=22" @@ -3297,6 +3450,7 @@ "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, "funding": [ { "type": "github", @@ -3317,6 +3471,7 @@ "version": "9.3.1", "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "dev": true, "license": "MIT", "engines": { "node": "*" @@ -3326,6 +3481,7 @@ "version": "6.0.3", "resolved": "https://registry.npmjs.org/bin-links/-/bin-links-6.0.3.tgz", "integrity": "sha512-Qg5FD7/YSReWJB1zaM8VIi1l4O637JKK/WPaF/JzJGy/9FcMDWtSklF0dOX5S9X2OMrPGhifIHIKuwtHG0IGFg==", + "dev": true, "license": "ISC", "dependencies": { "cmd-shim": "^8.0.0", @@ -3342,12 +3498,14 @@ "version": "2.15.0", "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.15.0.tgz", "integrity": "sha512-xic6KSZglg/I4ymp45fdM4GWfYpBK79Fxd/TOvJktlaPgQqqDxvmGwOPZl2V0dyeS3Lj5c180bLhXF43iyAjZQ==", + "dev": true, "license": "MIT" }, "node_modules/brace-expansion": { "version": "5.0.12", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^4.0.2" @@ -3360,12 +3518,14 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "dev": true, "license": "BSD-3-Clause" }, "node_modules/bundle-name": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz", "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==", + "dev": true, "license": "MIT", "dependencies": { "run-applescript": "^7.0.0" @@ -3381,6 +3541,7 @@ "version": "20.0.4", "resolved": "https://registry.npmjs.org/cacache/-/cacache-20.0.4.tgz", "integrity": "sha512-M3Lab8NPYlZU2exsL3bMVvMrMqgwCnMWfdZbK28bn3pK6APT/Te/I8hjRPNu1uwORY9a1eEQoifXbKPQMfMTOA==", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/fs": "^5.0.0", @@ -3426,6 +3587,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": ">=18" @@ -3435,6 +3597,7 @@ "version": "4.4.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", + "dev": true, "funding": [ { "type": "github", @@ -3450,6 +3613,7 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-8.0.0.tgz", "integrity": "sha512-Jk/BK6NCapZ58BKUxlSI+ouKRbjH1NLZCgJkYoab+vEHUY3f6OzpNBN9u7HFSv9J6TRDGs4PLOHezoKGaFRSCA==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -3459,6 +3623,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -3471,12 +3636,14 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, "license": "MIT" }, "node_modules/common-ancestor-path": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-2.0.0.tgz", "integrity": "sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": ">= 18" @@ -3486,6 +3653,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -3497,6 +3665,7 @@ }, "node_modules/cross-spawn": { "version": "7.0.6", + "dev": true, "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -3511,6 +3680,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, "license": "MIT", "bin": { "cssesc": "bin/cssesc" @@ -3523,6 +3693,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "dev": true, "license": "MIT", "engines": { "node": ">= 12" @@ -3532,6 +3703,7 @@ "version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -3556,6 +3728,7 @@ "version": "5.5.1", "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz", "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==", + "dev": true, "license": "MIT", "dependencies": { "bundle-name": "^4.1.0", @@ -3572,6 +3745,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", + "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -3584,6 +3758,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -3594,7 +3769,7 @@ }, "node_modules/detect-libc": { "version": "2.1.2", - "devOptional": true, + "dev": true, "license": "Apache-2.0", "engines": { "node": ">=8" @@ -3604,12 +3779,14 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, "license": "MIT" }, "node_modules/ecdsa-sig-formatter": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" @@ -3638,12 +3815,14 @@ "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, "license": "MIT" }, "node_modules/env-paths": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -3660,7 +3839,7 @@ "version": "0.28.2", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", - "devOptional": true, + "dev": true, "hasInstallScript": true, "license": "MIT", "bin": { @@ -3890,12 +4069,14 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz", "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==", + "dev": true, "license": "Apache-2.0" }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true, "license": "MIT" }, "node_modules/fast-check": { @@ -3946,6 +4127,7 @@ "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, "license": "MIT", "engines": { "node": ">=12.0.0" @@ -3963,6 +4145,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "dev": true, "funding": [ { "type": "github", @@ -4039,6 +4222,7 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, "license": "ISC", "dependencies": { "cross-spawn": "^7.0.6", @@ -4055,6 +4239,7 @@ "version": "4.0.10", "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "dev": true, "license": "MIT", "dependencies": { "fetch-blob": "^3.1.2" @@ -4067,6 +4252,7 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-3.0.3.tgz", "integrity": "sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==", + "dev": true, "license": "ISC", "dependencies": { "minipass": "^7.0.3" @@ -4079,6 +4265,7 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, @@ -4094,6 +4281,7 @@ "version": "7.3.1", "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.3.1.tgz", "integrity": "sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "extend": "^3.0.2", @@ -4108,6 +4296,7 @@ "version": "8.1.4", "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.4.tgz", "integrity": "sha512-iJ9KMsiu+xKtNRX0PmGLSaIU3bUBAyzWTyqKemKPzNPsmmsBCQYmlNg+brEbES7IHSXtdVwzBPzx1vz3FAaipw==", + "dev": true, "license": "Apache-2.0", "dependencies": { "gaxios": "7.1.3", @@ -4122,6 +4311,7 @@ "version": "7.1.3", "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.3.tgz", "integrity": "sha512-YGGyuEdVIjqxkxVH1pUTMY/XtmmsApXrCVv5EU25iX6inEPbV+VakJfLealkBtJN69AQmh1eGOdCl9Sm1UP6XQ==", + "dev": true, "license": "Apache-2.0", "dependencies": { "extend": "^3.0.2", @@ -4137,6 +4327,7 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz", "integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==", + "dev": true, "license": "Apache-2.0", "engines": { "node": ">=14" @@ -4146,6 +4337,7 @@ "version": "13.0.5", "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.5.tgz", "integrity": "sha512-BzXxZg24Ibra1pbQ/zE7Kys4Ua1ks7Bn6pKLkVPZ9FZe4JQS6/Q7ef3LG1H+k7lUf5l4T3PLSyYyYJVYUvfgTw==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "minimatch": "^10.2.1", @@ -4189,6 +4381,7 @@ "version": "10.5.0", "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.5.0.tgz", "integrity": "sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w==", + "dev": true, "license": "Apache-2.0", "dependencies": { "base64-js": "^1.3.0", @@ -4207,6 +4400,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.2.0.tgz", "integrity": "sha512-WE9av4wKDZgRjBwgVUabocx8T6/7o3Ca1Fat46FXDhXVAFibzNadedcOXrdgd1Kzmk8tsk/9ZH89Wyf/SqeZ3A==", + "dev": true, "license": "Apache-2.0", "engines": { "node": ">=18" @@ -4216,12 +4410,14 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, "license": "ISC" }, "node_modules/gtoken": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-8.0.0.tgz", "integrity": "sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==", + "dev": true, "license": "MIT", "dependencies": { "gaxios": "^7.0.0", @@ -4255,6 +4451,7 @@ "version": "9.0.3", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz", "integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==", + "dev": true, "license": "ISC", "dependencies": { "lru-cache": "^11.1.0" @@ -4267,12 +4464,14 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz", "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==", + "dev": true, "license": "BSD-2-Clause" }, "node_modules/http-proxy-agent": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "dev": true, "license": "MIT", "dependencies": { "agent-base": "^7.1.0", @@ -4286,6 +4485,7 @@ "version": "7.0.6", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, "license": "MIT", "dependencies": { "agent-base": "^7.1.2", @@ -4299,6 +4499,7 @@ "version": "0.7.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -4326,6 +4527,7 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-8.0.0.tgz", "integrity": "sha512-FCeMZT4NiRQGh+YkeKMtWrOmBgWjHjMJ26WQWrRQyoyzqevdaGSakUaJW5xQYmjLlUVk2qUnCjYVBax9EKKg8A==", + "dev": true, "license": "ISC", "dependencies": { "minimatch": "^10.0.3" @@ -4358,6 +4560,7 @@ "version": "10.7.6", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.6.tgz", "integrity": "sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg==", + "dev": true, "license": "MIT", "engines": { "node": ">= 12" @@ -4367,6 +4570,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, "license": "MIT", "bin": { "is-docker": "cli.js" @@ -4392,6 +4596,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -4414,6 +4619,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz", "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==", + "dev": true, "license": "MIT", "engines": { "node": ">=20" @@ -4426,6 +4632,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, "license": "MIT", "dependencies": { "is-docker": "^3.0.0" @@ -4444,6 +4651,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", + "dev": true, "license": "MIT", "dependencies": { "is-inside-container": "^1.0.0" @@ -4457,12 +4665,14 @@ }, "node_modules/isexe": { "version": "2.0.0", + "dev": true, "license": "ISC" }, "node_modules/jackspeak": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" @@ -4485,6 +4695,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "dev": true, "license": "MIT", "dependencies": { "bignumber.js": "^9.0.0" @@ -4494,6 +4705,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-5.0.0.tgz", "integrity": "sha512-ZF1nxZ28VhQouRWhUcVlUIN3qwSgPuswK05s/HIaoetAoE/9tngVmCHjSxmSQPav1nd+lPtTL0YZ/2AFdR/iYQ==", + "dev": true, "license": "MIT", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -4503,6 +4715,7 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "dev": true, "license": "(AFL-2.1 OR BSD-3-Clause)" }, "node_modules/json-schema-traverse": { @@ -4523,6 +4736,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/json-stringify-nice/-/json-stringify-nice-1.1.4.tgz", "integrity": "sha512-5Z5RFW63yxReJ7vANgW6eZFGWaQvnPE3WNmZoOJrSkGju2etKA2L5rrOa1sm877TVTFt57A80BH1bArcmlLfPw==", + "dev": true, "license": "ISC", "funding": { "url": "https://github.com/sponsors/isaacs" @@ -4532,6 +4746,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", + "dev": true, "engines": [ "node >= 0.2.0" ], @@ -4541,18 +4756,21 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/just-diff/-/just-diff-6.0.2.tgz", "integrity": "sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA==", + "dev": true, "license": "MIT" }, "node_modules/just-diff-apply": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/just-diff-apply/-/just-diff-apply-5.5.0.tgz", "integrity": "sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw==", + "dev": true, "license": "MIT" }, "node_modules/jwa": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "dev": true, "license": "MIT", "dependencies": { "buffer-equal-constant-time": "^1.0.1", @@ -4564,6 +4782,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "dev": true, "license": "MIT", "dependencies": { "jwa": "^2.0.1", @@ -4605,7 +4824,7 @@ "version": "1.33.0", "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", - "devOptional": true, + "dev": true, "license": "MPL-2.0", "peer": true, "dependencies": { @@ -4639,6 +4858,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -4660,6 +4880,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -4681,6 +4902,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -4702,6 +4924,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -4723,6 +4946,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -4744,6 +4968,7 @@ "cpu": [ "arm64" ], + "dev": true, "libc": [ "glibc" ], @@ -4768,6 +4993,7 @@ "cpu": [ "arm64" ], + "dev": true, "libc": [ "musl" ], @@ -4792,6 +5018,7 @@ "cpu": [ "x64" ], + "dev": true, "libc": [ "glibc" ], @@ -4816,6 +5043,7 @@ "cpu": [ "x64" ], + "dev": true, "libc": [ "musl" ], @@ -4840,6 +5068,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -4861,6 +5090,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -4895,6 +5125,7 @@ "version": "11.5.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" @@ -4926,6 +5157,7 @@ "version": "15.0.6", "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-15.0.6.tgz", "integrity": "sha512-Je0fLJ0F5atA7F+eIlLzk+Wkcl57JDf4kf+EW8xiP5E31xOQxkIxTbgf1Oi1Lw9tRI9UEMRdI5Vz2xTzoNU1Jw==", + "dev": true, "license": "ISC", "dependencies": { "@gar/promise-retry": "^1.0.0", @@ -4949,6 +5181,7 @@ "version": "1.54.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -4958,6 +5191,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "dev": true, "license": "MIT", "dependencies": { "mime-db": "^1.54.0" @@ -4974,6 +5208,7 @@ "version": "10.2.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "brace-expansion": "^5.0.8" @@ -4989,6 +5224,7 @@ "version": "7.1.3", "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": ">=16 || 14 >=14.17" @@ -4998,6 +5234,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-2.0.1.tgz", "integrity": "sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==", + "dev": true, "license": "ISC", "dependencies": { "minipass": "^7.0.3" @@ -5010,6 +5247,7 @@ "version": "5.0.2", "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-5.0.2.tgz", "integrity": "sha512-2d0q2a8eCi2IRg/IGubCNRJoYbA1+YPXAzQVRFmB45gdGZafyivnZ5YSEfo3JikbjGxOdntGFvBQGqaSMXlAFQ==", + "dev": true, "license": "MIT", "dependencies": { "minipass": "^7.0.3", @@ -5027,6 +5265,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.7.tgz", "integrity": "sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "minipass": "^3.0.0" @@ -5039,6 +5278,7 @@ "version": "3.3.6", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -5051,12 +5291,14 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, "license": "ISC" }, "node_modules/minipass-pipeline": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", + "dev": true, "license": "ISC", "dependencies": { "minipass": "^3.0.0" @@ -5069,6 +5311,7 @@ "version": "3.3.6", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -5081,12 +5324,14 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, "license": "ISC" }, "node_modules/minipass-sized": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-2.0.0.tgz", "integrity": "sha512-zSsHhto5BcUVM2m1LurnXY6M//cGhVaegT71OfOXoprxT6o780GZd792ea6FfrQkuU4usHZIUczAQMRUE2plzA==", + "dev": true, "license": "ISC", "dependencies": { "minipass": "^7.1.2" @@ -5099,6 +5344,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "dev": true, "license": "MIT", "dependencies": { "minipass": "^7.1.2" @@ -5111,6 +5357,7 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, "license": "MIT" }, "node_modules/msgpackr": { @@ -5157,7 +5404,7 @@ "version": "3.3.20", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", - "devOptional": true, + "dev": true, "funding": [ { "type": "github", @@ -5184,6 +5431,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", + "dev": true, "license": "MIT", "dependencies": { "content-type": "^2.1.0" @@ -5201,6 +5449,7 @@ "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", "deprecated": "Use your platform's native DOMException instead", + "dev": true, "funding": [ { "type": "github", @@ -5220,6 +5469,7 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "dev": true, "license": "MIT", "dependencies": { "data-uri-to-buffer": "^4.0.0", @@ -5238,6 +5488,7 @@ "version": "12.4.0", "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-12.4.0.tgz", "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==", + "dev": true, "license": "MIT", "dependencies": { "env-paths": "^2.2.0", @@ -5278,6 +5529,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": ">=20" @@ -5287,6 +5539,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", + "dev": true, "license": "ISC", "dependencies": { "isexe": "^4.0.0" @@ -5302,6 +5555,7 @@ "version": "9.0.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz", "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==", + "dev": true, "license": "ISC", "dependencies": { "abbrev": "^4.0.0" @@ -5317,6 +5571,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-5.0.0.tgz", "integrity": "sha512-JLSpbzh6UUXIEoqPsYBvVNVmyrjVZ1fzEFbqxKkTJQkWBO3xFzFT+KDnSKQWwOQNbuWRwt5LSD6HOTLGIWzfrw==", + "dev": true, "license": "ISC", "dependencies": { "npm-normalize-package-bin": "^5.0.0" @@ -5329,6 +5584,7 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-8.0.0.tgz", "integrity": "sha512-ScAUdMpyzkbpxoNekQ3tNRdFI8SJ86wgKZSQZdUxT+bj0wVFpsEMWnkXP0twVe1gJyNF5apBWDJhhIbgrIViRA==", + "dev": true, "license": "BSD-2-Clause", "dependencies": { "semver": "^7.1.1" @@ -5341,6 +5597,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-5.0.0.tgz", "integrity": "sha512-CJi3OS4JLsNMmr2u07OJlhcrPxCeOeP/4xq67aWNai6TNWWbTrlNDgl8NcFKVlcBKp18GPj+EzbNIgrBfZhsag==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -5350,6 +5607,7 @@ "version": "13.0.2", "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-13.0.2.tgz", "integrity": "sha512-IciCE3SY3uE84Ld8WZU23gAPPV9rIYod4F+rc+vJ7h7cwAJt9Vk6TVsK60ry7Uj3SRS3bqRRIGuTp9YVlk6WNA==", + "dev": true, "license": "ISC", "dependencies": { "hosted-git-info": "^9.0.0", @@ -5365,6 +5623,7 @@ "version": "10.0.4", "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-10.0.4.tgz", "integrity": "sha512-uMW73iajD8hiH4ZBxEV3HC+eTnppIqwakjOYuvgddnalIw2lJguKviK1pcUJDlIWm1wSJkchpDZDSVVsZEYRng==", + "dev": true, "license": "ISC", "dependencies": { "ignore-walk": "^8.0.0", @@ -5378,6 +5637,7 @@ "version": "11.0.3", "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-11.0.3.tgz", "integrity": "sha512-buzyCfeoGY/PxKqmBqn1IUJrZnUi1VVJTdSSRPGI60tJdUhUoSQFhs0zycJokDdOznQentgrpf8LayEHyyYlqQ==", + "dev": true, "license": "ISC", "dependencies": { "npm-install-checks": "^8.0.0", @@ -5393,6 +5653,7 @@ "version": "19.1.1", "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-19.1.1.tgz", "integrity": "sha512-TakBap6OM1w0H73VZVDf44iFXsOS3h+L4wVMXmbWOQroZgFhMch0juN6XSzBNlD965yIKvWg2dfu7NSiaYLxtw==", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/redact": "^4.0.0", @@ -5426,6 +5687,7 @@ "version": "11.0.4", "resolved": "https://registry.npmjs.org/open/-/open-11.0.4.tgz", "integrity": "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==", + "dev": true, "license": "MIT", "dependencies": { "default-browser": "^5.5.1", @@ -5496,6 +5758,7 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.1.1.tgz", "integrity": "sha512-6Lh3jQPLthYujSrlw6ccWXBGZTkoTCz27Hd92g79LH/kjAbgoEu0t442cCCNbegPSJsA0lwDX8z0bcKtkpA32g==", + "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -5508,12 +5771,14 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, "license": "BlueOak-1.0.0" }, "node_modules/pacote": { "version": "21.5.1", "resolved": "https://registry.npmjs.org/pacote/-/pacote-21.5.1.tgz", "integrity": "sha512-KvcJ9iy3crysCsgqc4+PknH/w6jkrp8JN36mpZBPwNaDRwTfMZD37YzRazNstiZUOhuF5pno9f78n9mEJBavwg==", + "dev": true, "license": "ISC", "dependencies": { "@gar/promise-retry": "^1.0.0", @@ -5545,6 +5810,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/parse-conflict-json/-/parse-conflict-json-5.0.1.tgz", "integrity": "sha512-ZHEmNKMq1wyJXNwLxyHnluPfRAFSIliBvbK/UiOceROt4Xh9Pz0fq49NytIaeaCUf5VR86hwQ/34FCcNU5/LKQ==", + "dev": true, "license": "ISC", "dependencies": { "json-parse-even-better-errors": "^5.0.0", @@ -5567,6 +5833,7 @@ }, "node_modules/path-key": { "version": "3.1.1", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -5576,6 +5843,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^11.0.0", @@ -5592,7 +5860,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "devOptional": true, + "dev": true, "license": "ISC", "peer": true }, @@ -5600,6 +5868,7 @@ "version": "4.0.7", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -5612,7 +5881,7 @@ "version": "8.5.30", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.30.tgz", "integrity": "sha512-zkd+e9S1AQHhmaBKye9zlFHWjOwVgqXl1q3ECYy8561K7qxR2cREf/STLskulBFd78k6AOFeA+ff1TtEzk9bAA==", - "devOptional": true, + "dev": true, "funding": [ { "type": "opencollective", @@ -5642,6 +5911,7 @@ "version": "7.1.7", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.7.tgz", "integrity": "sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==", + "dev": true, "license": "MIT", "dependencies": { "cssesc": "^3.0.0", @@ -5655,6 +5925,7 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.2.1.tgz", "integrity": "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==", + "dev": true, "license": "MIT", "engines": { "node": ">=20" @@ -5677,6 +5948,7 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz", "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -5686,6 +5958,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/proggy/-/proggy-4.0.0.tgz", "integrity": "sha512-MbA4R+WQT76ZBm/5JUpV9yqcJt92175+Y0Bodg3HgiXzrmKu7Ggq+bpn6y6wHH+gN9NcyKn3yg1+d47VaKwNAQ==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -5695,6 +5968,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", + "dev": true, "license": "ISC", "funding": { "url": "https://github.com/sponsors/isaacs" @@ -5704,6 +5978,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/promise-call-limit/-/promise-call-limit-3.0.2.tgz", "integrity": "sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw==", + "dev": true, "license": "ISC", "funding": { "url": "https://github.com/sponsors/isaacs" @@ -5760,6 +6035,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/read-cmd-shim/-/read-cmd-shim-6.0.0.tgz", "integrity": "sha512-1zM5HuOfagXCBWMN83fuFI/x+T/UhZ7k+KIzhrHXcQoeX5+7gmaDYjELQHmmzIodumBHeByBJT4QYS7ufAgs7A==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -5769,6 +6045,7 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/redis/-/redis-6.3.1.tgz", "integrity": "sha512-mV96ZKxQ4CGn3SyEGaY0Lb9YA443mdVey3c+mdr0NAUaBxiOZGoYCWX8PoM55kictSOmxlJRtZJxIsmZm3jL+w==", + "dev": true, "license": "MIT", "peer": true, "dependencies": { @@ -5786,6 +6063,7 @@ "version": "5.0.10", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", + "dev": true, "license": "ISC", "dependencies": { "glob": "^10.3.7" @@ -5801,12 +6079,14 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, "license": "MIT" }, "node_modules/rimraf/node_modules/brace-expansion": { "version": "2.1.7", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", + "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" @@ -5817,6 +6097,7 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, "license": "ISC", "dependencies": { "foreground-child": "^3.1.0", @@ -5837,12 +6118,14 @@ "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, "license": "ISC" }, "node_modules/rimraf/node_modules/minimatch": { "version": "9.0.9", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^2.0.2" @@ -5858,6 +6141,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^10.2.0", @@ -5874,7 +6158,7 @@ "version": "1.2.14", "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.14.tgz", "integrity": "sha512-eTBTTqMR6uHKLgcUqpJP8ntzDI6V4LYA8negAMBEI7gkgVvOdrx6VsvS2Ym+83KhOPdLCHWJu0w7UQFJZhHKNw==", - "devOptional": true, + "dev": true, "license": "MIT", "peer": true, "dependencies": { @@ -5909,6 +6193,7 @@ "version": "7.1.0", "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -5921,6 +6206,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, "funding": [ { "type": "github", @@ -5941,6 +6227,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true, "license": "MIT", "optional": true }, @@ -5948,6 +6235,7 @@ "version": "7.8.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -5958,6 +6246,7 @@ }, "node_modules/shebang-command": { "version": "2.0.0", + "dev": true, "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" @@ -5968,6 +6257,7 @@ }, "node_modules/shebang-regex": { "version": "3.0.0", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -5977,6 +6267,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, "license": "ISC", "engines": { "node": ">=14" @@ -5989,6 +6280,7 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/sigstore/-/sigstore-4.1.1.tgz", "integrity": "sha512-endqECJkfhozrXMK5ngu/UAA0xVcVEFdnHJCElGaExypjW+HK5i6zu3NteLoaX/iFbRUbC3+DjttQs0GARr+5w==", + "dev": true, "license": "Apache-2.0", "dependencies": { "@sigstore/bundle": "^4.0.0", @@ -6006,6 +6298,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "dev": true, "license": "MIT", "engines": { "node": ">= 6.0.0", @@ -6016,6 +6309,7 @@ "version": "2.8.10", "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.10.tgz", "integrity": "sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==", + "dev": true, "license": "MIT", "dependencies": { "ip-address": "^10.1.1", @@ -6030,6 +6324,7 @@ "version": "8.0.5", "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", + "dev": true, "license": "MIT", "dependencies": { "agent-base": "^7.1.2", @@ -6044,7 +6339,7 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", - "devOptional": true, + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -6054,12 +6349,14 @@ "version": "2.5.0", "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", + "dev": true, "license": "CC-BY-3.0" }, "node_modules/spdx-expression-parse": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz", "integrity": "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==", + "dev": true, "license": "MIT", "dependencies": { "spdx-exceptions": "^2.1.0", @@ -6070,12 +6367,14 @@ "version": "3.0.24", "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.24.tgz", "integrity": "sha512-cLS9TtWkIQFyLkJ3/5aFQAOHOSKTlOs/7WDut/XPSdjom1fJhUdkepeJAKXa9Y05+FabHd0sti+Et559vDtkpQ==", + "dev": true, "license": "CC0-1.0" }, "node_modules/ssri": { "version": "13.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-13.0.1.tgz", "integrity": "sha512-QUiRf1+u9wPTL/76GTYlKttDEBWV1ga9ZXW8BG6kfdeyyM8LGPix9gROyg9V2+P0xNyF3X2Go526xKFdMZrHSQ==", + "dev": true, "license": "ISC", "dependencies": { "minipass": "^7.0.3" @@ -6095,6 +6394,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, "license": "MIT", "dependencies": { "eastasianwidth": "^0.2.0", @@ -6113,6 +6413,7 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -6127,6 +6428,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -6136,12 +6438,14 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, "license": "MIT" }, "node_modules/string-width-cjs/node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" @@ -6154,6 +6458,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^6.2.2" @@ -6170,6 +6475,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" @@ -6182,6 +6488,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -6191,6 +6498,7 @@ "version": "7.5.22", "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/fs-minipass": "^4.0.0", @@ -6227,6 +6535,7 @@ "version": "0.2.17", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, "license": "MIT", "dependencies": { "fdir": "^6.5.0", @@ -6263,6 +6572,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/treeverse/-/treeverse-3.0.0.tgz", "integrity": "sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ==", + "dev": true, "license": "ISC", "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" @@ -6285,12 +6595,14 @@ "version": "2.9.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "dev": true, "license": "0BSD" }, "node_modules/tuf-js": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-4.1.0.tgz", "integrity": "sha512-50QV99kCKH5P/Vs4E2Gzp7BopNV+KzTXqWeaxrfu5IQJBOULRsTIS9seSsOVT8ZnGXzCyx55nYWAi4qJzpZKEQ==", + "dev": true, "license": "MIT", "dependencies": { "@tufjs/models": "4.1.0", @@ -6354,6 +6666,7 @@ "version": "6.29.1", "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz", "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==", + "dev": true, "license": "MIT", "engines": { "node": ">=18.17" @@ -6363,6 +6676,7 @@ "version": "8.9.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", + "dev": true, "license": "MIT" }, "node_modules/uri-js": { @@ -6379,6 +6693,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, "license": "MIT" }, "node_modules/uuid": { @@ -6399,6 +6714,7 @@ "version": "7.0.2", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-7.0.2.tgz", "integrity": "sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==", + "dev": true, "license": "ISC", "engines": { "node": "^20.17.0 || >=22.9.0" @@ -6408,7 +6724,7 @@ "version": "8.3.4", "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.4.tgz", "integrity": "sha512-IftLE8phJhdNRIGNEV4JCCvfNScoZQVfcXaN8TQropWGJtOHcu+iAB9pHcuGvmEb/kddw0LBe/jS8ztdC6xdiQ==", - "devOptional": true, + "dev": true, "license": "MIT", "peer": true, "dependencies": { @@ -6570,6 +6886,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-4.0.0.tgz", "integrity": "sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==", + "dev": true, "license": "ISC", "engines": { "node": "20 || >=22" @@ -6579,6 +6896,7 @@ "version": "3.3.3", "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "dev": true, "license": "MIT", "engines": { "node": ">= 8" @@ -6586,6 +6904,7 @@ }, "node_modules/which": { "version": "2.0.2", + "dev": true, "license": "ISC", "dependencies": { "isexe": "^2.0.0" @@ -6624,6 +6943,7 @@ "version": "8.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^6.1.0", @@ -6642,6 +6962,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", @@ -6659,6 +6980,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -6668,6 +6990,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -6683,12 +7006,14 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, "license": "MIT" }, "node_modules/wrap-ansi-cjs/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -6703,6 +7028,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" @@ -6715,6 +7041,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-7.0.1.tgz", "integrity": "sha512-OTIk8iR8/aCRWBqvxrzxR0hgxWpnYBblY1S5hDWBQfk/VFmJwzmJgQFN3WsoUKHISv2eAwe+PpbUzyL1CKTLXg==", + "dev": true, "license": "ISC", "dependencies": { "signal-exit": "^4.0.1" @@ -6727,6 +7054,7 @@ "version": "8.22.1", "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.1.tgz", "integrity": "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g==", + "dev": true, "license": "MIT", "engines": { "node": ">=10.0.0" @@ -6748,6 +7076,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-1.0.1.tgz", "integrity": "sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==", + "dev": true, "license": "MIT", "dependencies": { "is-wsl": "^3.1.0", @@ -6764,6 +7093,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz", "integrity": "sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -6776,6 +7106,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": ">=18" @@ -6785,7 +7116,7 @@ "version": "2.9.0", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==", - "devOptional": true, + "dev": true, "license": "ISC", "bin": { "yaml": "bin.mjs" diff --git a/package.json b/package.json index 5c118975..e5710f83 100644 --- a/package.json +++ b/package.json @@ -1,28 +1,29 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "opencode-models-discovery", - "version": "2.1.2", + "version": "2.2.0-rc.1", "description": "OpenCode plugin for auto-discovery of OpenAI-compatible models with dynamic provider configuration", "type": "module", "main": "./dist/index.js", - "types": "./src/index.ts", + "types": "./types/index.d.ts", "exports": { ".": { - "types": "./src/index.ts", + "types": "./types/index.d.ts", "default": "./dist/index.js" }, "./server": { - "types": "./src/server.ts", + "types": "./types/server.d.ts", "default": "./dist/server.js" }, "./tui": { - "types": "./src/tui.ts", + "types": "./types/tui.d.ts", "default": "./dist/tui.js" } }, "files": [ - "dist", - "src" + "dist/*.js", + "dist/THIRD-PARTY-NOTICES.md", + "types" ], "scripts": { "typecheck": "tsc --noEmit", @@ -32,19 +33,27 @@ "test:watch": "vitest watch", "lint": "eslint src", "lint:fix": "eslint src --fix", - "compile": "npm run compile:runtime && npm run compile:root && npm run compile:server && npm run compile:tui", - "compile:runtime": "esbuild src/runtime.ts --bundle --format=esm --platform=node --packages=external --target=node18 --sourcemap --keep-names --outfile=dist/runtime.js", + "compile": "npm run compile:runtime && npm run compile:root && npm run compile:server && npm run compile:tui && bun scripts/bundle-notices.ts", + "compile:release": "npm run compile:runtime:release && npm run compile:root:release && npm run compile:server:release && npm run compile:tui:release && bun scripts/remove-source-maps.ts && bun scripts/bundle-notices.ts", + "compile:runtime": "esbuild src/runtime.ts --bundle --format=esm --platform=node --target=node18 --sourcemap --keep-names --metafile=meta/runtime.meta.json --outfile=dist/runtime.js", + "compile:runtime:release": "esbuild src/runtime.ts --bundle --format=esm --platform=node --target=node18 --keep-names --metafile=meta/runtime.meta.json --outfile=dist/runtime.js", "compile:root": "esbuild src/index.ts --format=esm --platform=node --packages=external --target=node18 --sourcemap --keep-names --outfile=dist/index.js", + "compile:root:release": "esbuild src/index.ts --format=esm --platform=node --packages=external --target=node18 --keep-names --outfile=dist/index.js", "compile:server": "esbuild src/server.ts --format=esm --platform=node --packages=external --target=node18 --sourcemap --keep-names --outfile=dist/server.js", - "compile:tui": "esbuild src/tui.ts --bundle --format=esm --platform=node --packages=external --target=node18 --sourcemap --keep-names --outfile=dist/tui.js", - "build": "npm run lint && npm run typecheck && npm run test:run && npm run compile", + "compile:server:release": "esbuild src/server.ts --format=esm --platform=node --packages=external --target=node18 --keep-names --outfile=dist/server.js", + "compile:tui": "esbuild src/tui.ts --bundle --format=esm --platform=node --target=node18 --sourcemap --keep-names --metafile=meta/tui.meta.json --outfile=dist/tui.js", + "compile:tui:release": "esbuild src/tui.ts --bundle --format=esm --platform=node --target=node18 --keep-names --metafile=meta/tui.meta.json --outfile=dist/tui.js", + "build": "npm run lint && npm run typecheck && npm run test:run && npm run compile && npm run check:bundle && npm run check:notices", + "build:release": "npm run lint && npm run typecheck && npm run test:run && npm run compile:release && npm run check:bundle && npm run check:notices", + "check:bundle": "bun scripts/check-bundle-deps.ts meta/runtime.meta.json meta/tui.meta.json", + "check:notices": "bun scripts/check-bundle-deps.ts --notices meta/runtime.meta.json meta/tui.meta.json", "test:v1": "vitest run test/plugin.test.ts test/v1-v2-isolation.test.ts", "test:v2": "vitest run test/v2", - "validate:package": "npm run compile && npm pack --dry-run --ignore-scripts", + "validate:package": "npm run compile && npm run check:bundle && npm run check:notices && npm pack --dry-run --ignore-scripts", "validate": "npm run lint && npm run typecheck && npm run test:run", "validate:config": "bun scripts/validate-config.ts", "release": "bun scripts/release.ts", - "prepublishOnly": "npm run build" + "prepublishOnly": "npm run build:release" }, "keywords": [ "opencode", @@ -66,16 +75,11 @@ "type": "git", "url": "git+https://github.com/yuhp/opencode-models-discovery.git" }, - "dependencies": { - "@opencode/plugin": "2.2.6", - "xdg-basedir": "^5.1.0" - }, - "peerDependencies": { - "@opencode-ai/plugin": ">=1.18.29" - }, + "dependencies": {}, "devDependencies": { "@eslint/js": "^10.0.1", "@opencode-ai/plugin": "^1.18.29", + "@opencode/plugin": "2.2.6", "@types/node": "^26.5.1", "@vitest/coverage-v8": "^5.0.0", "esbuild": "^0.28.2", @@ -83,6 +87,7 @@ "globals": "^17.12.0", "typescript": "^5.9.3", "typescript-eslint": "^8.70.0", - "vitest": "^5.0.0" + "vitest": "^5.0.0", + "xdg-basedir": "^5.1.0" } } diff --git a/scripts/bundle-notices.ts b/scripts/bundle-notices.ts new file mode 100644 index 00000000..a000fb64 --- /dev/null +++ b/scripts/bundle-notices.ts @@ -0,0 +1,190 @@ +#!/usr/bin/env bun +/** + * Generates dist/THIRD-PARTY-NOTICES.md covering every package whose code + * (or types) are bundled into the published distribution. + * + * Bundling the SDKs removes the installed node_modules tree but keeps the + * bundled packages under their own licenses (MIT etc.), which still require + * attribution when redistributed. The esbuild metafiles (written by + * compile:runtime/compile:tui) list exactly which packages ended up in the + * bundles, so the inventory stays accurate without manual bookkeeping. It + * also doubles as the source of truth for scripts/gen-types.ts, which must + * inline the same package set into the shipped .d.ts files. + * + * Usage: bun scripts/bundle-notices.ts [meta/runtime.meta.json meta/tui.meta.json] + */ + +import { existsSync, readFileSync, writeFileSync } from 'node:fs' +import path from 'node:path' + +export interface EsbuildMetafile { + outputs: Record }> +} + +export interface PackageManifestLite { + version: string + license?: string +} + +export interface BundlePackage { + name: string + dir: string + version: string + license: string +} + +const NODE_MODULES_SEGMENT = 'node_modules/' + +function packageDirsFor(inputPath: string): { dir: string; name: string }[] { + const dirs: { dir: string; name: string }[] = [] + let searchFrom = 0 + for (;;) { + const index = inputPath.indexOf(NODE_MODULES_SEGMENT, searchFrom) + if (index === -1) return dirs + const after = index + NODE_MODULES_SEGMENT.length + const first = inputPath.indexOf('/', after) + if (first === -1) return dirs + const firstSegment = inputPath.slice(after, first) + const nameEnd = firstSegment.startsWith('@') ? inputPath.indexOf('/', first + 1) : first + if (nameEnd === -1) return dirs + const name = inputPath.slice(after, nameEnd) + dirs.push({ dir: inputPath.slice(0, nameEnd), name }) + searchFrom = nameEnd + 1 + } +} + +/** Innermost package directory containing an input file (nested installs win). */ +function innermostPackage(inputPath: string): { dir: string; name: string } | null { + const dirs = packageDirsFor(inputPath) + return dirs.length > 0 ? dirs[dirs.length - 1] : null +} + +function allInputs(metafile: EsbuildMetafile): string[] { + return Object.values(metafile.outputs).flatMap((output) => Object.keys(output.inputs ?? {})) +} + +/** Sorted unique package names whose files were bundled. */ +export function bundledPackageNames(metafile: EsbuildMetafile): string[] { + const names = new Set() + for (const input of allInputs(metafile)) { + const innermost = innermostPackage(input) + if (innermost) names.add(innermost.name) + } + return [...names].sort() +} + +/** Resolves a package directory (e.g. 'node_modules/effect') to its manifest. */ +export type PackageManifestReader = (packageDir: string) => PackageManifestLite | null + +/** One entry per distinct bundled package, sorted by name then version. */ +export function collectBundledPackages( + metafile: EsbuildMetafile, + readPackage: PackageManifestReader +): BundlePackage[] { + const byKey = new Map() + for (const input of allInputs(metafile)) { + const innermost = innermostPackage(input) + if (!innermost) continue + const manifest = readPackage(innermost.dir) + if (!manifest) continue + const license = manifest.license ?? 'UNKNOWN' + const key = `${innermost.dir}@${manifest.version}` + if (!byKey.has(key)) { + byKey.set(key, { name: innermost.name, dir: innermost.dir, version: manifest.version, license }) + } + } + return [...byKey.values()].sort( + (a, b) => a.name.localeCompare(b.name) || a.version.localeCompare(b.version) || a.dir.localeCompare(b.dir) + ) +} + +/** Renderer for license texts, given a collected package entry. */ +export type LicenseTextReader = (pkg: BundlePackage) => string | undefined + +export function renderNoticesMd( + packages: BundlePackage[], + readLicenseText: LicenseTextReader +): string { + const lines: string[] = [ + '# Third-party notices', + '', + 'This distribution statically bundles the following packages (plus their', + 'transitive code and type declarations) into `dist/runtime.js`, `dist/tui.js`,', + 'and the generated `.d.ts` files. They are listed with the exact versions that', + 'were bundled; the full license text of each is reproduced below.', + '', + '## Bundled packages', + '', + ] + for (const pkg of packages) { + lines.push(`- ${pkg.name}@${pkg.version} (${pkg.license})`) + } + lines.push('') + for (const pkg of packages) { + lines.push(`## ${pkg.name}@${pkg.version}`, '', `License: ${pkg.license}`, '') + const text = readLicenseText(pkg) + if (text) { + lines.push(text.trim(), '') + } else { + lines.push('_No license text file was found in the published package; see the license field above and the upstream repository._', '') + } + } + return lines.join('\n') +} + +const LICENSE_FILENAMES = ['LICENSE', 'LICENSE.md', 'LICENSE.txt', 'LICENCE', 'LICENCE.md', 'COPYING'] + +function main(metaPaths: string[]): void { + const root = path.resolve(import.meta.dirname ?? '.', '..') + const readPackage: PackageManifestReader = (packageDir) => { + const manifestPath = path.join(root, packageDir, 'package.json') + if (!existsSync(manifestPath)) return null + const manifest = JSON.parse(readFileSync(manifestPath, 'utf-8')) as { + version?: string + license?: string | { type?: string } + } + const license = + typeof manifest.license === 'string' + ? manifest.license + : typeof manifest.license?.type === 'string' + ? manifest.license.type + : undefined + return { version: manifest.version ?? '0.0.0-unknown', license } + } + const readLicenseText: LicenseTextReader = (pkg) => { + for (const name of LICENSE_FILENAMES) { + const candidate = path.join(root, pkg.dir, name) + if (existsSync(candidate)) return readFileSync(candidate, 'utf-8') + } + return undefined + } + + const byKey = new Map() + for (const metaPath of metaPaths) { + for (const pkg of collectBundledPackages(JSON.parse(readFileSync(path.resolve(root, metaPath), 'utf-8')), readPackage)) { + const key = `${pkg.name}@${pkg.version}` + if (!byKey.has(key)) byKey.set(key, pkg) + } + } + const packages = [...byKey.values()].sort( + (a, b) => a.name.localeCompare(b.name) || a.version.localeCompare(b.version) + ) + + const outFile = path.join(root, 'dist', 'THIRD-PARTY-NOTICES.md') + writeFileSync(outFile, renderNoticesMd(packages, readLicenseText)) + const tracked = packages.filter((pkg) => + ['@opencode/plugin', '@opencode-ai/plugin', 'effect'].includes(pkg.name) + ) + console.log( + `bundle-notices: ${packages.length} packages -> ${path.relative(root, outFile)} ` + + `(bundled ${tracked.map((pkg) => `${pkg.name}@${pkg.version}`).join(', ')})` + ) +} + +const invokedDirectly = + import.meta.main || + (process.argv[1] !== undefined && import.meta.filename === path.resolve(process.argv[1])) +if (invokedDirectly) { + const args = process.argv.slice(2) + main(args.length > 0 ? args : ['meta/runtime.meta.json', 'meta/tui.meta.json']) +} diff --git a/scripts/check-bundle-deps.ts b/scripts/check-bundle-deps.ts new file mode 100644 index 00000000..ad7a84ff --- /dev/null +++ b/scripts/check-bundle-deps.ts @@ -0,0 +1,169 @@ +#!/usr/bin/env bun +/** + * Fails the build when a plugin install would materialize a dependency tree. + * + * Checks three invariants that keep the host's plugin cache small: + * 1. Bundled outputs (esbuild metafiles passed as CLI args) contain no + * external imports - every dependency must be bundled and tree-shaken. + * 2. package.json declares no dependencies, peerDependencies, or + * optionalDependencies: hosts like OpenCode install plugins into a + * versioned cache directory and materialize every one of them as real + * files, which is how this package once shipped ~30k files per install. + * 3. With --notices, dist/THIRD-PARTY-NOTICES.md (written by + * scripts/bundle-notices.ts during `npm run compile`) must list exactly + * the packages the bundles contain, each with a license classification. + * + * Usage: bun scripts/check-bundle-deps.ts [--notices] dist/runtime.meta.json dist/tui.meta.json + */ + +import { existsSync, readdirSync, readFileSync } from 'node:fs' +import { builtinModules } from 'node:module' +import path from 'node:path' + +import { collectBundledPackages, type EsbuildMetafile as InputsMetafile } from './bundle-notices.ts' + +export interface EsbuildMetafile { + outputs: Record< + string, + { + imports?: { path: string; kind: string; external?: boolean }[] + } + > +} + +export interface DependencyManifest { + dependencies?: Record + peerDependencies?: Record + optionalDependencies?: Record +} + +const INSTALLED_FIELDS = ['dependencies', 'peerDependencies', 'optionalDependencies'] as const + +const BUILTIN_MODULES = new Set(builtinModules) + +function isNodeBuiltin(specifier: string): boolean { + return specifier.startsWith('node:') || BUILTIN_MODULES.has(specifier) +} + +/** Violations for outputs that still resolve packages outside the bundle. */ +export function findExternalImports(metafile: EsbuildMetafile): string[] { + const violations: string[] = [] + for (const [output, info] of Object.entries(metafile.outputs)) { + for (const entry of info.imports ?? []) { + if (entry.external && !isNodeBuiltin(entry.path)) { + violations.push(`${output}: external import "${entry.path}" (${entry.kind})`) + } + } + } + return violations +} + +/** Violations for dependency fields a package manager would install for hosts. */ +export function findPackagedRuntimeDependencies(manifest: DependencyManifest): string[] { + const violations: string[] = [] + for (const field of INSTALLED_FIELDS) { + for (const name of Object.keys(manifest[field] ?? {})) { + violations.push(`${field}: ${name}`) + } + } + return violations.sort() +} + +function main(argv: string[]): void { + const violations: string[] = [] + for (const metafilePath of argv) { + const metafile = JSON.parse(readFileSync(metafilePath, 'utf-8')) as EsbuildMetafile + violations.push(...findExternalImports(metafile)) + } + const manifestPath = path.resolve(import.meta.dirname ?? '.', '..', 'package.json') + violations.push(...findPackagedRuntimeDependencies(JSON.parse(readFileSync(manifestPath, 'utf-8')))) + + if (violations.length > 0) { + console.error('check-bundle-deps: plugin install would materialize dependencies:') + for (const violation of violations) console.error(` - ${violation}`) + process.exit(1) + } + console.log(`check-bundle-deps: OK (${argv.length} metafile(s), no external imports, no packaged dependencies)`) +} + +const ROOT = path.resolve(import.meta.dirname ?? '.', '..') + +/** Violations for a THIRD-PARTY-NOTICES.md that diverged from the bundles. */ +export function findNoticeViolations( + noticesMarkdown: string, + metafiles: InputsMetafile[], + readPackage: (packageDir: string) => { version: string; license?: string } | null +): string[] { + const byKey = new Map() + for (const metafile of metafiles) { + for (const pkg of collectBundledPackages(metafile, readPackage)) { + const key = `${pkg.name}@${pkg.version}` + if (!byKey.has(key)) byKey.set(key, { name: pkg.name, version: pkg.version, license: pkg.license }) + } + } + + // Greedy match splits at the last "@", so scoped names stay intact. + const listed = new Set( + [...noticesMarkdown.matchAll(/^- (\S+)@(\S+) \(([^)]+)\)$/gm)].map((m) => `${m[1]}@${m[2]}`) + ) + const violations: string[] = [] + for (const pkg of byKey.values()) { + const key = `${pkg.name}@${pkg.version}` + if (!listed.has(key)) violations.push(`${key} is bundled but missing from THIRD-PARTY-NOTICES.md`) + if (pkg.license === 'UNKNOWN') violations.push(`${key} has no license classification`) + } + for (const entry of listed) { + if (![...byKey.keys()].includes(entry)) { + violations.push(`${entry} is listed in THIRD-PARTY-NOTICES.md but is not bundled`) + } + } + return violations +} + +function checkNotices(metafiles: string[]): void { + const noticesPath = path.join(ROOT, 'dist', 'THIRD-PARTY-NOTICES.md') + if (!existsSync(noticesPath)) { + console.error('check-bundle-deps: dist/THIRD-PARTY-NOTICES.md is missing; run `npm run compile` first') + process.exit(1) + } + const readPackage = (packageDir: string) => { + const manifestPath = path.join(ROOT, packageDir, 'package.json') + if (!existsSync(manifestPath)) return null + const manifest = JSON.parse(readFileSync(manifestPath, 'utf-8')) as { + version?: string + license?: string | { type?: string } + } + const license = + typeof manifest.license === 'string' + ? manifest.license + : typeof manifest.license?.type === 'string' + ? manifest.license.type + : undefined + return { version: manifest.version ?? '0.0.0-unknown', license } + } + const parsed = metafiles.map( + (metaPath) => JSON.parse(readFileSync(path.resolve(ROOT, metaPath), 'utf-8')) as InputsMetafile + ) + const violations = findNoticeViolations(readFileSync(noticesPath, 'utf-8'), parsed, readPackage) + if (violations.length > 0) { + console.error('check-bundle-deps: third-party notices are out of sync:') + for (const violation of violations) console.error(` - ${violation}`) + process.exit(1) + } + console.log(`check-bundle-deps: OK (THIRD-PARTY-NOTICES.md matches the bundled packages)`) +} + +if (import.meta.main || import.meta.filename === path.resolve(process.argv[1] ?? '')) { + const argv = process.argv.slice(2) + const noticesMode = argv[0] === '--notices' + const metafiles = noticesMode ? argv.slice(1) : argv + const target = noticesMode ? checkNotices : main + if (metafiles.length > 0) { + target(metafiles) + } else { + const discovered = readdirSync(path.join(ROOT, 'meta')) + .filter((file) => file.endsWith('.meta.json')) + .map((file) => `meta/${file}`) + target(discovered) + } +} diff --git a/scripts/release.ts b/scripts/release.ts index d20ebc97..bf511528 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -174,6 +174,42 @@ function groupCommits(commits: CommitEntry[]): Array<{ title: string; commits: C return grouped } +/** + * Summarizes the versions that were actually bundled into dist/ by reading + * THIRD-PARTY-NOTICES.md, which `npm run compile` regenerates from the esbuild + * metafiles on every build (see scripts/bundle-notices.ts). + */ +function bundledDependencySection(): string { + const noticesPath = 'dist/THIRD-PARTY-NOTICES.md' + if (!existsSync(noticesPath)) { + return '### Bundled dependencies\n\n- dist/THIRD-PARTY-NOTICES.md is missing; run `npm run compile` before releasing.' + } + + const inventory = readFileSync(noticesPath, 'utf-8') + .split('\n') + .slice(0, 40) // inventory lines live before the first license section + .filter((line) => line.startsWith('- ') && /@[^ ]+ \([^)]+\)$/.test(line)) + + if (inventory.length === 0) { + return '### Bundled dependencies\n\n- THIRD-PARTY-NOTICES.md lists no bundled packages; the build may be broken.' + } + + const sdkNames = ['@opencode/plugin', '@opencode-ai/plugin'] + const sdk = inventory + .map((line) => line.slice(2)) + .filter((entry) => sdkNames.some((name) => entry.startsWith(`${name}@`))) + + return [ + '### Bundled dependencies', + '', + 'The plugin SDKs are statically bundled (the published package installs no runtime dependencies):', + '', + ...(sdk.length > 0 ? sdk.map((entry) => `- ${entry}`) : ['- _No SDK entries found in THIRD-PARTY-NOTICES.md._']), + '', + `The exact versions bundled into this release are recorded in \`dist/THIRD-PARTY-NOTICES.md\` (${inventory.length} packages).`, + ].join('\n') +} + function generateReleaseNotes(version: string): string { const { name } = getPackageInfo() const previousTag = getPreviousTag() @@ -194,6 +230,8 @@ ${compareText} ${changesSection} +${bundledDependencySection()} + ### Installation \`\`\`bash @@ -257,7 +295,7 @@ function publishCurrentVersion(): void { console.log(`\nšŸš€ Publishing release ${tagName}`) - runCommand('npm', ['run', 'build'], 'Running build and tests') + runCommand('npm', ['run', 'build:release'], 'Running release build and tests') const releaseNotes = generateReleaseNotes(newVersion) const notesFile = `/tmp/release-notes-${newVersion}.md` diff --git a/scripts/remove-source-maps.ts b/scripts/remove-source-maps.ts new file mode 100644 index 00000000..077f3817 --- /dev/null +++ b/scripts/remove-source-maps.ts @@ -0,0 +1,12 @@ +#!/usr/bin/env bun + +import { existsSync, readdirSync, unlinkSync } from 'node:fs' +import path from 'node:path' + +const dist = path.resolve(import.meta.dirname ?? '.', '..', 'dist') + +if (existsSync(dist)) { + for (const entry of readdirSync(dist)) { + if (entry.endsWith('.map')) unlinkSync(path.join(dist, entry)) + } +} diff --git a/src/core/model-types.ts b/src/core/model-types.ts index cfddfef8..f994e3a3 100644 --- a/src/core/model-types.ts +++ b/src/core/model-types.ts @@ -45,7 +45,7 @@ export interface NormalizedModelLimit { /** * Creates a normalized limit object. * - requires a positive context window - * - preserves valid explicit output limits, bounded by the context limit + * - preserves valid explicit output and input limits, bounded by the context limit * - falls back to Math.min(context, DEFAULT_OUTPUT_TOKEN_LIMIT) when output is missing or non-positive */ export function createModelLimits( @@ -58,11 +58,14 @@ export function createModelLimits( const output = typeof explicitOutput === 'number' && Number.isFinite(explicitOutput) && explicitOutput > 0 ? Math.min(explicitOutput, context) : Math.min(context, DEFAULT_OUTPUT_TOKEN_LIMIT) + const normalizedInput = typeof input === 'number' && Number.isFinite(input) && input > 0 + ? Math.min(input, context) + : undefined return { context, output, - ...(typeof input === 'number' && Number.isFinite(input) && input > 0 ? { input } : {}), + ...(normalizedInput !== undefined ? { input: normalizedInput } : {}), } } diff --git a/src/utils/model-info/aiproxy.ts b/src/utils/model-info/aiproxy.ts index a2fcd92e..b4ee03b1 100644 --- a/src/utils/model-info/aiproxy.ts +++ b/src/utils/model-info/aiproxy.ts @@ -1,4 +1,5 @@ import type { ModelEnricher, ModelEnrichmentResult } from '../../core/model-enrichment' +import { createModelLimits } from '../../core/model-types' import { createModelsDevEnricher } from './models-dev' const REASONING_EFFORTS = new Set(['none', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max']) @@ -46,11 +47,11 @@ export function createAIProxyEnricher(data: unknown): ModelEnricher { const outputLimit = limits?.max_output_tokens const existingLimit = result.limit if (existingLimit && positiveNumber(existingLimit.context) && (positiveNumber(inputLimit) || positiveNumber(outputLimit))) { - result.limit = { - ...existingLimit, - ...(positiveNumber(inputLimit) ? { input: inputLimit } : {}), - ...(positiveNumber(outputLimit) ? { output: outputLimit } : {}), - } + result.limit = createModelLimits( + existingLimit.context, + positiveNumber(outputLimit) ? outputLimit : existingLimit.output, + positiveNumber(inputLimit) ? inputLimit : existingLimit.input, + ) } const pricing = object(model.pricing) diff --git a/src/utils/model-info/models-dev.ts b/src/utils/model-info/models-dev.ts index 2a1a1475..4e7b505f 100644 --- a/src/utils/model-info/models-dev.ts +++ b/src/utils/model-info/models-dev.ts @@ -1,19 +1,43 @@ import { lookupModelsDevData, type ModelsDevModel } from '../models-dev-fetcher' import type { ModelEnricher } from '../../core/model-enrichment' -import { createModelLimits } from '../../core/model-types' +import { createModelLimits, type DiscoveredRawModel } from '../../core/model-types' function hasUsableNumber(value: unknown): value is number { return typeof value === 'number' && Number.isFinite(value) && value > 0 } +function firstUsableNumber(...values: readonly unknown[]): number | undefined { + return values.find(hasUsableNumber) +} + +/** + * Reads token limits advertised inline by an OpenAI-compatible /v1/models entry. + * + * Gateways that front several upstreams (CLIProxyAPI, LiteLLM poolers, custom + * routers) advertise the limits they actually accept. Those values describe the + * live endpoint, so they take precedence over the static models.dev catalog, + * which can lag behind or overstate what a specific route enforces. + */ +function advertisedProviderLimits(model: DiscoveredRawModel): { context?: number; output?: number } | undefined { + const context = firstUsableNumber(model.context_length, model.max_context_length) + const output = firstUsableNumber(model.max_completion_tokens, model.max_output_tokens) + if (context === undefined && output === undefined) return undefined + return { + ...(context !== undefined ? { context } : {}), + ...(output !== undefined ? { output } : {}), + } +} + export function createModelsDevEnricher(data: unknown): ModelEnricher { const cache = data instanceof Map ? data as Map : new Map() return { enrich(model) { const info = lookupModelsDevData(model.id, cache) - const contextLimit = hasUsableNumber(info?.limit?.context) ? info?.limit?.context : info?.limit?.input + const advertised = advertisedProviderLimits(model) + const infoContext = hasUsableNumber(info?.limit?.context) ? info?.limit?.context : info?.limit?.input + const contextLimit = advertised?.context ?? infoContext const limits = hasUsableNumber(contextLimit) - ? createModelLimits(contextLimit, info?.limit?.output, info?.limit?.input) + ? createModelLimits(contextLimit, advertised?.output ?? info?.limit?.output, info?.limit?.input) : undefined return { metadataName: info?.name, diff --git a/src/v2/catalog.ts b/src/v2/catalog.ts index ab15a58b..a64136cb 100644 --- a/src/v2/catalog.ts +++ b/src/v2/catalog.ts @@ -34,6 +34,7 @@ export interface ConfiguredProvider { readonly package: string readonly settings: Record readonly apiKey?: string + readonly pruneMissing?: boolean } type ProviderContext = Pick @@ -101,7 +102,13 @@ export function createProviderController( const models = inventory.get(provider.id) if (!models) continue const source = editor.get(providerID) - const existing = source ? [...source.models.values()] : [] + const sourceModels = source ? [...source.models.values()] : [] + // An empty inventory is what a failed first request looks like, so it must never prune. + // Match on either key: a source model can alias a listed upstream model under its own id. + const listed = new Set([...models.values()].flatMap((model) => [model.id, model.modelID])) + const existing = provider.pruneMissing && models.size > 0 + ? sourceModels.filter((model) => listed.has(String(model.id)) || listed.has(String((model as { modelID?: unknown }).modelID))) + : sourceModels const existingIDs = new Set(existing.map((model) => String(model.id))) editor.models.set(providerID, [ ...existing, diff --git a/src/v2/index.ts b/src/v2/index.ts index a775cd53..a93f8f9f 100644 --- a/src/v2/index.ts +++ b/src/v2/index.ts @@ -53,6 +53,7 @@ async function configuredProviders(ctx: Plugin.Context): Promise<{ name: typeof entry.name === "string" ? entry.name : undefined, package: entry.package, settings, + pruneMissing: parsed.pruneMissing, }) discovery.set(entry.id, parsed) } diff --git a/src/v2/provider-config.ts b/src/v2/provider-config.ts index 3b69e786..e12d5e8c 100644 --- a/src/v2/provider-config.ts +++ b/src/v2/provider-config.ts @@ -18,6 +18,7 @@ export interface ProviderDiscoveryOptions { readonly modelInfoFormat?: ModelInfoFormat readonly modelInfoEndpoint?: string readonly filterNonChat: boolean + readonly pruneMissing: boolean readonly cache?: { readonly enabled: boolean readonly ttlSeconds: number @@ -106,6 +107,7 @@ export function parseProviderDiscoveryOptions(raw: unknown): ProviderDiscoveryOp modelInfoFormat, modelInfoEndpoint, filterNonChat, + pruneMissing: value.pruneMissing === true, cache, } } diff --git a/test/aiproxy-model-info.test.ts b/test/aiproxy-model-info.test.ts index b98b3de6..2e27d030 100644 --- a/test/aiproxy-model-info.test.ts +++ b/test/aiproxy-model-info.test.ts @@ -60,4 +60,20 @@ describe('native AIProxy model enricher', () => { capabilities: { effort_tiers: ['unsupported'] }, }, { filterNonChat: true })).toEqual({ variants: {} }) }) + + it('keeps provider-advertised limits as the base that inline limits overlay', () => { + const enricher = createAIProxyEnricher(new Map([['gpt-6-luna', { + id: 'gpt-6-luna', + limit: { context: 1_050_000, output: 32_000 }, + }]])) + + const result = enricher.enrich({ + id: 'gpt-6-luna', + context_length: 272_000, + max_completion_tokens: 128_000, + limits: { max_input_tokens: 500_000, max_output_tokens: 64_000 }, + }, { filterNonChat: true }) + + expect(result.limit).toEqual({ context: 272_000, input: 272_000, output: 64_000 }) + }) }) diff --git a/test/bundle-deps-guard.test.ts b/test/bundle-deps-guard.test.ts new file mode 100644 index 00000000..292377cf --- /dev/null +++ b/test/bundle-deps-guard.test.ts @@ -0,0 +1,111 @@ +/** + * Guard against re-introducing the multi-thousand-file install tree. + * + * OpenCode installs plugins into a versioned cache directory and materializes + * every runtime/peer dependency as real files. Historically this package kept + * `@opencode/plugin` external, so installing the plugin unpacked ~30k files + * (the whole OpenCode SDK tree plus AWS/Redis/OpenTelemetry transitives). + * The SDK is now bundled into `dist/runtime.js` and `dist/tui.js`, so these + * tests pin the two properties that keep installs tiny: + * 1. bundled outputs must not keep any external imports, and + * 2. the published manifest must not declare installed dependencies. + */ +import { readFileSync } from 'node:fs' +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import { describe, expect, it } from 'vitest' +import { + findExternalImports, + findPackagedRuntimeDependencies, +} from '../scripts/check-bundle-deps.ts' + +const repoRoot = path.resolve(fileURLToPath(new URL('.', import.meta.url)), '..') + +function metafile(outputs: Record) { + return { + outputs: Object.fromEntries( + Object.entries(outputs).map(([output, imports]) => [ + output, + { bytes: 1, inputs: { 'src/entry.ts': { bytes: 1 } }, imports }, + ]) + ), + } +} + +describe('findExternalImports', () => { + it('flags an output that keeps an external import', () => { + const violations = findExternalImports( + metafile({ 'dist/runtime.js': [{ path: '@opencode/plugin', kind: 'import-statement', external: true }] }) + ) + expect(violations).toEqual(['dist/runtime.js: external import "@opencode/plugin" (import-statement)']) + }) + + it('flags external requires, not just import statements', () => { + const violations = findExternalImports( + metafile({ 'dist/tui.js': [{ path: 'some-package', kind: 'require-call', external: true }] }) + ) + expect(violations).toEqual(['dist/tui.js: external import "some-package" (require-call)']) + }) + + it('accepts bundled outputs whose imports are internal', () => { + const violations = findExternalImports( + metafile({ + 'dist/runtime.js': [ + { path: 'src/plugin/index.ts', kind: 'import-statement' }, + { path: './runtime.js', kind: 'import-statement' }, + ], + }) + ) + expect(violations).toEqual([]) + }) + + it('exempts node builtins, with or without the node: prefix', () => { + const violations = findExternalImports( + metafile({ + 'dist/runtime.js': [ + { path: 'node:http', kind: 'import-statement', external: true }, + { path: 'os', kind: 'import-statement', external: true }, + ], + }) + ) + expect(violations).toEqual([]) + }) +}) + +describe('findPackagedRuntimeDependencies', () => { + it('flags runtime dependencies with their manifest field', () => { + const violations = findPackagedRuntimeDependencies({ + dependencies: { 'xdg-basedir': '^5.1.0', '@opencode/plugin': '2.2.6' }, + }) + expect(violations).toEqual([ + 'dependencies: @opencode/plugin', + 'dependencies: xdg-basedir', + ]) + }) + + it('flags peer and optional dependencies because package managers auto-install them', () => { + const violations = findPackagedRuntimeDependencies({ + peerDependencies: { '@opencode-ai/plugin': '>=1.18.29' }, + optionalDependencies: { fsevents: '2.3.3' }, + }) + expect(violations).toEqual([ + 'optionalDependencies: fsevents', + 'peerDependencies: @opencode-ai/plugin', + ]) + }) + + it('accepts a manifest with nothing to install', () => { + expect( + findPackagedRuntimeDependencies({ + devDependencies: { vitest: '^5.0.0' }, + }) + ).toEqual([]) + }) +}) + +describe('published manifest regression', () => { + it('ships no dependencies a plugin host would have to install', () => { + const manifest = JSON.parse(readFileSync(path.join(repoRoot, 'package.json'), 'utf-8')) + expect(findPackagedRuntimeDependencies(manifest)).toEqual([]) + }) +}) diff --git a/test/bundle-notices.test.ts b/test/bundle-notices.test.ts new file mode 100644 index 00000000..36495efc --- /dev/null +++ b/test/bundle-notices.test.ts @@ -0,0 +1,167 @@ +/** + * Tests for the third-party notices generator that documents (and feeds the + * type-inlining list to) whatever the esbuild bundles pull in. + */ +import { execFileSync } from 'node:child_process' +import { existsSync, readFileSync } from 'node:fs' +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import { beforeAll, describe, expect, it } from 'vitest' +import { + bundledPackageNames, + collectBundledPackages, + renderNoticesMd, +} from '../scripts/bundle-notices.ts' +import { findNoticeViolations } from '../scripts/check-bundle-deps.ts' + +const repoRoot = path.resolve(fileURLToPath(new URL('.', import.meta.url)), '..') + +function metafile(...inputPaths: string[]) { + return { + outputs: { + 'dist/runtime.js': { + bytes: 1, + inputs: Object.fromEntries(inputPaths.map((p) => [p, { bytes: 1 }])), + imports: [], + }, + }, + } +} + +describe('bundledPackageNames', () => { + it('lists unique node_modules packages and ignores src files', () => { + const names = bundledPackageNames( + metafile( + 'src/index.ts', + 'node_modules/effect/dist/x.js', + 'node_modules/@opencode/plugin/a.ts', + 'node_modules/@opencode/plugin/node_modules/@opencode/client/b.js', + 'node_modules/@opencode/ai/y.js' + ) + ) + expect(names).toEqual([ + '@opencode/ai', + '@opencode/client', + '@opencode/plugin', + 'effect', + ]) + }) +}) + +describe('collectBundledPackages', () => { + it('attributes each input to its innermost containing package', () => { + const manifests: Record = { + 'node_modules/a': { version: '1.0.0', license: 'MIT' }, + 'node_modules/a/node_modules/b': { version: '9.9.9', license: 'ISC' }, + } + const collected = collectBundledPackages( + metafile('node_modules/a/o.js', 'node_modules/a/node_modules/b/i.js'), + (packageDir) => manifests[packageDir] ?? null + ) + expect(collected).toEqual([ + { name: 'a', dir: 'node_modules/a', version: '1.0.0', license: 'MIT' }, + { name: 'b', dir: 'node_modules/a/node_modules/b', version: '9.9.9', license: 'ISC' }, + ]) + }) + + it('defaults a missing license field to UNKNOWN', () => { + const collected = collectBundledPackages( + metafile('node_modules/m/x.js'), + () => ({ version: '0.1.0' }) + ) + expect(collected).toEqual([{ name: 'm', dir: 'node_modules/m', version: '0.1.0', license: 'UNKNOWN' }]) + }) + + it('deduplicates inputs pointing into the same package version', () => { + const collected = collectBundledPackages( + metafile('node_modules/m/x.js', 'node_modules/m/y.js', 'node_modules/m/z.js'), + () => ({ version: '0.1.0', license: 'MIT' }) + ) + expect(collected).toHaveLength(1) + }) + + it('skips inputs whose package manifest cannot be read', () => { + expect(collectBundledPackages(metafile('node_modules/g/x.js'), () => null)).toEqual([]) + }) +}) + +describe('renderNoticesMd', () => { + it('renders an inventory plus the license text of each package', () => { + const md = renderNoticesMd( + [{ name: 'effect', dir: 'node_modules/effect', version: '4.1.0', license: 'MIT' }], + () => 'MIT License text' + ) + expect(md).toContain('effect@4.1.0 (MIT)') + expect(md).toContain('## effect@4.1.0') + expect(md).toContain('MIT License text') + }) + + it('notes when no license text file ships with a package', () => { + const md = renderNoticesMd( + [{ name: 'mystery', dir: 'node_modules/mystery', version: '1.0.0', license: 'UNKNOWN' }], + () => undefined + ) + expect(md).toContain('No license text file was found') + }) +}) + +describe('findNoticeViolations', () => { + const meta = metafile('node_modules/@opencode/plugin/a.js', 'node_modules/effect/x.js') + const reader = (dir: string) => + dir.endsWith('@opencode/plugin') ? { version: '2.2.6', license: 'MIT' } : { version: '4.1.0', license: 'MIT' } + const complete = '# notices\n\n- @opencode/plugin@2.2.6 (MIT)\n- effect@4.1.0 (MIT)\n' + + it('passes when the inventory matches the bundles', () => { + expect(findNoticeViolations(complete, [meta], reader)).toEqual([]) + }) + + it('flags bundled packages missing from the notices', () => { + expect(findNoticeViolations('# notices\n\n- effect@4.1.0 (MIT)\n', [meta], reader)).toEqual([ + '@opencode/plugin@2.2.6 is bundled but missing from THIRD-PARTY-NOTICES.md', + ]) + }) + + it('flags listed packages that are not bundled', () => { + const extra = `${complete}- ghost@1.0.0 (MIT)\n` + expect(findNoticeViolations(extra, [meta], reader)).toEqual([ + 'ghost@1.0.0 is listed in THIRD-PARTY-NOTICES.md but is not bundled', + ]) + }) + + it('flags bundled packages without a license classification', () => { + const violations = findNoticeViolations(complete, [meta], (dir) => + dir.endsWith('@opencode/plugin') ? { version: '2.2.6' } : { version: '4.1.0', license: 'MIT' } + ) + expect(violations).toEqual(['@opencode/plugin@2.2.6 has no license classification']) + }) +}) + +describe('generated notices for this build', () => { + beforeAll(() => { + if (!existsSync(path.join(repoRoot, 'meta/runtime.meta.json'))) { + execFileSync('npm', ['run', 'compile'], { cwd: repoRoot, stdio: 'pipe' }) + } + }, 120_000) + + it('lists every package bundled into dist/runtime.js', () => { + const runtimeMeta = JSON.parse(readFileSync(path.join(repoRoot, 'meta/runtime.meta.json'), 'utf-8')) + const fsReader = (packageDir: string) => { + const manifestPath = path.join(repoRoot, packageDir, 'package.json') + if (!existsSync(manifestPath)) return null + const manifest = JSON.parse(readFileSync(manifestPath, 'utf-8')) + return { version: manifest.version as string, license: typeof manifest.license === 'string' ? manifest.license : undefined } + } + const packages = collectBundledPackages(runtimeMeta, fsReader) + const byName = new Map(packages.map((p) => [p.name, p])) + + const sdk = byName.get('@opencode/plugin') + expect(sdk, '@opencode/plugin must appear in the bundled inventory').toBeDefined() + const pinnedVersion = JSON.parse(readFileSync(path.join(repoRoot, 'package.json'), 'utf-8')) + .devDependencies['@opencode/plugin'] + expect(sdk?.version, 'inventory records the exact bundled SDK version').toBe(pinnedVersion) + expect(sdk?.license).not.toBe('UNKNOWN') + + // Every listed package must have a license classification + for (const pkg of packages) expect(pkg.license, `${pkg.name} license`).toBeTruthy() + }) +}) diff --git a/test/core/model-types.test.ts b/test/core/model-types.test.ts index 585829ae..9f53d9b0 100644 --- a/test/core/model-types.test.ts +++ b/test/core/model-types.test.ts @@ -115,4 +115,9 @@ describe('Model limit normalization (createModelLimits)', () => { const limits = createModelLimits(32768, 4096, 28000) expect(limits).toEqual({ context: 32768, output: 4096, input: 28000 }) }) + + it('bounds explicit input limits so they do not exceed context', () => { + const limits = createModelLimits(32768, 4096, 64000) + expect(limits).toEqual({ context: 32768, output: 4096, input: 32768 }) + }) }) diff --git a/test/models-dev-model-info.test.ts b/test/models-dev-model-info.test.ts new file mode 100644 index 00000000..fa374705 --- /dev/null +++ b/test/models-dev-model-info.test.ts @@ -0,0 +1,107 @@ +import { describe, expect, it } from 'vitest' +import { createModelsDevEnricher } from '../src/utils/model-info/models-dev' + +function catalog(id: string, limit: { context?: number; input?: number; output?: number }, extra: Record = {}) { + return new Map([[id, { id, limit, ...extra }]]) +} + +describe('models.dev model enricher', () => { + it('prefers limits advertised by the provider over the models.dev catalog', () => { + const enricher = createModelsDevEnricher(catalog('deepseek/deepseek-v4.1-flash', { + context: 1_048_576, + output: 393_216, + })) + + const result = enricher.enrich({ + id: 'deepseek/deepseek-v4.1-flash', + context_length: 1_000_000, + max_completion_tokens: 384_000, + }, { filterNonChat: true }) + + expect(result.limit).toEqual({ context: 1_000_000, output: 384_000 }) + }) + + it('accepts max_context_length and max_output_tokens aliases', () => { + const enricher = createModelsDevEnricher(catalog('custom-model', { + context: 1_000_000, + output: 384_000, + })) + + const result = enricher.enrich({ + id: 'custom-model', + max_context_length: 262_144, + max_output_tokens: 65_536, + }, { filterNonChat: true }) + + expect(result.limit).toEqual({ context: 262_144, output: 65_536 }) + }) + + it('fills missing provider fields and bounds catalog input to provider context', () => { + const enricher = createModelsDevEnricher(catalog('custom-model', { + context: 1_000_000, + input: 900_000, + output: 32_000, + })) + + const result = enricher.enrich({ + id: 'custom-model', + context_length: 200_000, + }, { filterNonChat: true }) + + expect(result.limit).toEqual({ context: 200_000, input: 200_000, output: 32_000 }) + }) + + it('keeps the models.dev context when the provider advertises output only', () => { + const enricher = createModelsDevEnricher(catalog('custom-model', { + context: 1_000_000, + output: 393_216, + })) + + const result = enricher.enrich({ + id: 'custom-model', + max_completion_tokens: 128_000, + }, { filterNonChat: true }) + + expect(result.limit).toEqual({ context: 1_000_000, output: 128_000 }) + }) + + it('ignores malformed provider limits', () => { + const enricher = createModelsDevEnricher(catalog('custom-model', { + context: 128_000, + output: 16_384, + })) + + const result = enricher.enrich({ + id: 'custom-model', + context_length: '128000', + max_context_length: 0, + max_completion_tokens: Number.POSITIVE_INFINITY, + max_output_tokens: -1, + }, { filterNonChat: true }) + + expect(result.limit).toEqual({ context: 128_000, output: 16_384 }) + }) + + it('uses advertised context for models missing from the models.dev catalog', () => { + const enricher = createModelsDevEnricher(new Map()) + + const result = enricher.enrich({ + id: 'gateway-only-model', + context_length: 64_000, + }, { filterNonChat: true }) + + expect(result.limit).toEqual({ context: 64_000, output: 32_000 }) + }) + + it('clamps advertised output to the advertised context', () => { + const enricher = createModelsDevEnricher(new Map()) + + const result = enricher.enrich({ + id: 'gateway-only-model', + context_length: 64_000, + max_completion_tokens: 128_000, + }, { filterNonChat: true }) + + expect(result.limit).toEqual({ context: 64_000, output: 64_000 }) + }) +}) diff --git a/test/node-loadable.test.ts b/test/node-loadable.test.ts index 25d3ccbc..b06e5a4a 100644 --- a/test/node-loadable.test.ts +++ b/test/node-loadable.test.ts @@ -15,7 +15,7 @@ * step the Desktop plugin loader performs. */ import { execFileSync } from 'node:child_process' -import { existsSync, mkdtempSync, mkdirSync, readdirSync, readFileSync, rmSync, renameSync, cpSync, writeFileSync } from 'node:fs' +import { existsSync, mkdtempSync, mkdirSync, readdirSync, readFileSync, rmSync, renameSync, writeFileSync } from 'node:fs' import { tmpdir } from 'node:os' import path from 'node:path' import { fileURLToPath } from 'node:url' @@ -101,26 +101,10 @@ describe('Node host compatibility (OpenCode Desktop)', () => { rmSync(stagedPkgDir, { recursive: true, force: true }) renameSync(path.join(stagedRoot, 'package'), stagedPkgDir) - // Provide the runtime dependency the host would install alongside the plugin. - const depSource = path.join(repoRoot, 'node_modules', 'xdg-basedir') - if (existsSync(depSource)) { - cpSync(depSource, path.join(stagedRoot, 'node_modules', 'xdg-basedir'), { recursive: true }) - } - - // The combined V1/V2 entrypoint has an external V2 SDK dependency. Install - // production dependencies in the temporary consumer just like a package - // manager would for a published plugin. - const dependencyRoot = path.join(workDir, 'runtime-dependencies') - mkdirSync(dependencyRoot, { recursive: true }) - execFileSync('npm', [ - 'install', - '--prefix', dependencyRoot, - '--ignore-scripts', - '--no-package-lock', - '--omit=dev', - '@opencode/plugin@2.0.26', - ], { stdio: 'pipe', env: cleanNpmEnv() }) - cpSync(path.join(dependencyRoot, 'node_modules'), path.join(stagedRoot, 'node_modules'), { recursive: true }) + // The published package bundles its SDK dependencies, so no runtime + // dependencies are installed alongside it. Staging the tarball alone + // proves the entries load self-contained, exactly as a host with an + // empty dependency tree would load them. }, 180_000) afterAll(() => { diff --git a/test/types-consumer.test.ts b/test/types-consumer.test.ts new file mode 100644 index 00000000..3fa50a94 --- /dev/null +++ b/test/types-consumer.test.ts @@ -0,0 +1,117 @@ +/** + * Clean-consumer typecheck regression for the bundled distribution. + * + * The package's `types` entries must be self-contained: the runtime SDKs are + * bundled into dist/*.js and no longer published as installable dependencies, + * so a consumer that installs ONLY this package (plus ambient Node types, + * which any Node-based TypeScript consumer has) must typecheck against the + * shipped declarations. Historically the `types` entries pointed at + * src/*.ts, which import '@opencode/plugin' - keeping that layout after the + * dependency removal made clean-consumer `tsc` fail with TS2307. + */ +import { execFileSync } from 'node:child_process' +import { cpSync, existsSync, mkdirSync, mkdtempSync, readdirSync, renameSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import { afterAll, beforeAll, describe, expect, it } from 'vitest' + +const repoRoot = path.resolve(fileURLToPath(new URL('.', import.meta.url)), '..') + +function cleanNpmEnv(): NodeJS.ProcessEnv { + const env = { ...process.env } + for (const key of Object.keys(env)) { + if (key.startsWith('npm_config_')) delete env[key] + } + return env +} + +const CONSUMER_SOURCE = `import combined, { ModelDiscoveryPlugin, setupV2 } from 'opencode-models-discovery' +import serverDefault from 'opencode-models-discovery/server' +import tuiDefault, { defineTuiPlugin, type TuiCleanup, type TuiPluginDefinition } from 'opencode-models-discovery/tui' + +const pluginId: string = combined.id +const serverId: string = serverDefault.id +const tuiId: string = tuiDefault.id +const cleanup: TuiCleanup = () => undefined + +const definition: TuiPluginDefinition = defineTuiPlugin({ + id: 'consumer-check', + setup: async () => cleanup, +}) + +export const checked = [pluginId, serverId, tuiId, definition.id, ModelDiscoveryPlugin, setupV2] as const +` + +describe('clean-consumer typecheck', () => { + let workDir: string + let stagedRoot: string + + beforeAll(() => { + workDir = mkdtempSync(path.join(tmpdir(), 'omd-types-consumer-')) + stagedRoot = path.join(workDir, 'consumer') + const consumerNodeModules = path.join(stagedRoot, 'node_modules') + mkdirSync(path.join(consumerNodeModules, '@types'), { recursive: true }) + + execFileSync('npm', ['run', 'compile'], { cwd: repoRoot, stdio: 'pipe', env: cleanNpmEnv() }) + execFileSync('npm', ['pack', '--pack-destination', workDir, '--ignore-scripts'], { + cwd: repoRoot, + stdio: 'pipe', + env: cleanNpmEnv(), + }) + const tarball = readdirSync(workDir).find((f) => f.endsWith('.tgz')) + if (!tarball) throw new Error('npm pack produced no tarball') + execFileSync('tar', ['-xzf', path.join(workDir, tarball), '-C', consumerNodeModules], { stdio: 'pipe' }) + const extracted = path.join(consumerNodeModules, 'package') + const pkgDir = path.join(consumerNodeModules, 'opencode-models-discovery') + rmSync(pkgDir, { recursive: true, force: true }) + renameSync(extracted, pkgDir) + + // Ambient Node types stand for what any Node-based consumer already has; + // nothing else (no SDK, no effect) is provided. + for (const [sourceName, destName] of [ + ['@types/node', '@types/node'], + ['undici-types', 'undici-types'], + ] as const) { + const source = path.join(repoRoot, 'node_modules', sourceName) + if (existsSync(source)) { + cpSync(source, path.join(consumerNodeModules, destName), { recursive: true }) + } + } + + writeFileSync(path.join(stagedRoot, 'consumer.ts'), CONSUMER_SOURCE) + }, 300_000) + + afterAll(() => { + if (workDir) rmSync(workDir, { recursive: true, force: true }) + }) + + it('typechecks a consumer that installed only this package', () => { + const tscBin = path.join(repoRoot, 'node_modules', 'typescript', 'bin', 'tsc') + let status = 0 + let output = '' + try { + output = execFileSync( + process.execPath, + [ + tscBin, + '--noEmit', + '--strict', + '--target', 'es2022', + '--module', 'esnext', + '--moduleResolution', 'bundler', + 'consumer.ts', + ], + { cwd: stagedRoot, stdio: 'pipe', encoding: 'utf-8', env: cleanNpmEnv() } + ) + } catch (error) { + const e = error as { status?: number; stdout?: string; stderr?: string } + status = e.status ?? 1 + output = `${e.stdout ?? ''}${e.stderr ?? ''}` + } + expect( + { status, output: output.trim().slice(0, 2000) }, + 'tsc against the published types must succeed with only this package installed' + ).toEqual({ status: 0, output: '' }) + }, 240_000) +}) diff --git a/test/v2/catalog.test.ts b/test/v2/catalog.test.ts index 9a4b750c..ba98f6b4 100644 --- a/test/v2/catalog.test.ts +++ b/test/v2/catalog.test.ts @@ -66,6 +66,78 @@ describe("V2 provider controller", () => { expect(added[0]?.info.settings).toBeUndefined() }) + describe("pruneMissing", () => { + function run(pruneMissing: boolean) { + const set = vi.fn() + const kept = { id: "both", modelID: "both" } + const stale = { id: "stale", modelID: "stale" } + const controller = createProviderController( + { provider: { reload: vi.fn() } } as never, + [{ ...provider(), pruneMissing }], + (id) => `integration.${id}`, + ) + const editor = { + get: vi.fn().mockReturnValue({ + provider: { id: "local" }, + models: new Map([["both", kept], ["stale", stale]]), + }), + add: vi.fn(), + update: vi.fn(), + models: { set }, + } + return { controller, editor, set, kept, stale } + } + + function discovered(...ids: string[]): Inventory { + const models = inventory(ids[0]).get("local")! + for (const id of ids.slice(1)) models.set(id, { ...models.get(ids[0])!, id, modelID: id }) + return new Map([["local", models]]) + } + + it("removes source models the provider no longer lists and keeps source metadata for the rest", async () => { + const { controller, editor, set, kept } = run(true) + await controller.replaceInventory(discovered("both", "new")) + controller.transform(editor as never) + expect(set).toHaveBeenCalledWith("local", [kept, expect.objectContaining({ modelID: "new" })]) + }) + + it("keeps a source model whose modelID is listed under a different catalog id", async () => { + const set = vi.fn() + const alias = { id: "alias", modelID: "listed" } + const hidden = { id: "other", modelID: "hidden" } + const controller = createProviderController( + { provider: { reload: vi.fn() } } as never, + [{ ...provider(), pruneMissing: true }], + (id) => `integration.${id}`, + ) + const editor = { + get: vi.fn().mockReturnValue({ provider: { id: "local" }, models: new Map([["alias", alias], ["other", hidden]]) }), + add: vi.fn(), + update: vi.fn(), + models: { set }, + } + await controller.replaceInventory(discovered("listed")) + controller.transform(editor as never) + const ids = set.mock.calls[0]![1].map((model: { id: string }) => model.id) + expect(ids).toContain("alias") + expect(ids).not.toContain("other") + }) + + it("keeps source models when the option is off", async () => { + const { controller, editor, set, kept, stale } = run(false) + await controller.replaceInventory(discovered("both")) + controller.transform(editor as never) + expect(set).toHaveBeenCalledWith("local", [kept, stale]) + }) + + it("does not prune when the inventory is empty, as after a failed first request", async () => { + const { controller, editor, set, kept, stale } = run(true) + await controller.replaceInventory(new Map([["local", new Map()]])) + controller.transform(editor as never) + expect(set).toHaveBeenCalledWith("local", [kept, stale]) + }) + }) + it("preserves existing source models when adding discovered models", async () => { const set = vi.fn() const existing = { modelID: "explicit-model" } diff --git a/types/index.d.ts b/types/index.d.ts new file mode 100644 index 00000000..ce400f79 --- /dev/null +++ b/types/index.d.ts @@ -0,0 +1,43 @@ +/** + * Self-contained public types for opencode-models-discovery. + * + * The runtime SDKs (@opencode/plugin, @opencode-ai/plugin) are bundled into + * dist/*.js at build time and the published package declares no installable + * dependencies, so these declarations describe the plugin contract + * structurally instead of importing SDK types: consumers typecheck against + * this package alone (proven by test/types-consumer.test.ts). Keep the shapes + * below in sync with src/index.ts / src/runtime.ts; test/node-loadable.test.ts + * verifies the runtime side of the same contract against a plain Node host. + */ + +/** + * Minimal structural view of the OpenCode v2 plugin context. Hosts pass a + * rich context object (providers, tui, storage, ...); only `id`/`setup` + * consumption is contract-relevant, so unknown host members are preserved. + */ +export interface PluginContext { + readonly [key: string]: unknown; +} + +/** Cleanup callback returned by plugin setup hooks. */ +export type Cleanup = () => Promise | void; + +/** OpenCode V1 server plugin factory (a function per @opencode-ai/plugin). */ +export type ServerPluginFactory = (context: unknown) => unknown; + +/** The combined adapter consumed by both OpenCode V1 and V2 hosts. */ +export interface CombinedPlugin { + readonly id: string; + readonly setup: (context: PluginContext) => Promise | Cleanup | void; + readonly server: ServerPluginFactory; +} + +/** V1 server plugin factory exported for hosts that load this package directly. */ +export declare const ModelDiscoveryPlugin: ServerPluginFactory; + +/** V2 setup entry point exported for hosts that wire it into their own plugin. */ +export declare function setupV2(context: PluginContext): Promise; + +declare const combinedPlugin: CombinedPlugin; + +export default combinedPlugin; diff --git a/types/server.d.ts b/types/server.d.ts new file mode 100644 index 00000000..10d29201 --- /dev/null +++ b/types/server.d.ts @@ -0,0 +1,7 @@ +/** + * Self-contained types for the `opencode-models-discovery/server` entry. + * The runtime default is the same combined adapter as the root entry. + */ +import combinedPlugin from './index.js'; + +export default combinedPlugin; diff --git a/types/tui.d.ts b/types/tui.d.ts new file mode 100644 index 00000000..3cd20d76 --- /dev/null +++ b/types/tui.d.ts @@ -0,0 +1,27 @@ +/** + * Self-contained public types for the `opencode-models-discovery/tui` entry. + * Described structurally (see types/index.d.ts for the rationale); keep in + * sync with src/tui.ts. test/types-consumer.test.ts verifies consumers can + * implement TuiPluginDefinition and call defineTuiPlugin against these types. + */ + +/** Minimal structural view of the OpenCode V2 TUI plugin context. */ +export interface TuiPluginContext { + readonly [key: string]: unknown; +} + +/** Cleanup callback a TUI plugin's setup may return. */ +export type TuiCleanup = () => Promise | void; + +/** Definition shape accepted by defineTuiPlugin. */ +export interface TuiPluginDefinition { + readonly id: string; + readonly setup: (context: TuiPluginContext) => Promise | TuiCleanup | void; +} + +/** Identity helper that registers a TUI plugin definition. */ +export declare function defineTuiPlugin(plugin: TuiPluginDefinition): TuiPluginDefinition; + +declare const tuiPlugin: TuiPluginDefinition; + +export default tuiPlugin;