@cyanheads/browser-compat-mcp-server 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/AGENTS.md +5 -5
  2. package/CLAUDE.md +5 -5
  3. package/README.md +10 -10
  4. package/THIRD_PARTY_NOTICES.md +6 -6
  5. package/changelog/0.3.x/0.3.2.md +39 -0
  6. package/changelog/template.md +10 -8
  7. package/dist/data/browserslist-bcd-map.d.ts +7 -6
  8. package/dist/data/browserslist-bcd-map.d.ts.map +1 -1
  9. package/dist/data/browserslist-bcd-map.js +7 -6
  10. package/dist/data/browserslist-bcd-map.js.map +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts +13 -2
  14. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts.map +1 -1
  15. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js +86 -36
  16. package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js.map +1 -1
  17. package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js +2 -2
  18. package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js.map +1 -1
  19. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.d.ts.map +1 -1
  20. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js +12 -29
  21. package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js.map +1 -1
  22. package/dist/services/bcd/bcd-service.d.ts +3 -0
  23. package/dist/services/bcd/bcd-service.d.ts.map +1 -1
  24. package/dist/services/bcd/bcd-service.js +16 -1
  25. package/dist/services/bcd/bcd-service.js.map +1 -1
  26. package/dist/services/targets/targets-service.d.ts +12 -8
  27. package/dist/services/targets/targets-service.d.ts.map +1 -1
  28. package/dist/services/targets/targets-service.js +45 -15
  29. package/dist/services/targets/targets-service.js.map +1 -1
  30. package/package.json +13 -13
  31. package/server.json +3 -3
  32. package/skills/browser-compat-guide/SKILL.md +5 -3
package/AGENTS.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** browser-compat-mcp-server
4
- **Version:** 0.3.1
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
4
+ **Version:** 0.3.2
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.24`
6
6
  **Engines:** Bun ≥1.4.4, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
@@ -160,9 +160,9 @@ export function getServerConfig() {
160
160
  }
161
161
  ```
162
162
 
163
- `parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`MY_API_KEY`) not the path (`apiKey`). Throws `ConfigurationError`, which the framework prints as a clean startup banner.
163
+ `parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`MY_API_KEY`) not the path (`apiKey`). Throws `ConfigurationError`, which the framework prints as a clean startup banner when the call runs in `setup()`; a call at import, such as a module-scope `disabledTool()` gate, exits on the raw stack instead.
164
164
 
165
- For env booleans use `z.stringbool()`, never `z.coerce.boolean()` — `Boolean("false")` is `true`, so a coerced flag can't be disabled through the environment. `z.stringbool()` parses `true/false/1/0/yes/no/on/off` and rejects anything else, so `=false` actually disables.
165
+ For env booleans use `z.stringbool()`, never `z.coerce.boolean()` — `Boolean("false")` is `true`, so a coerced flag can't be disabled through the environment. `z.stringbool()` parses `true/false`, `1/0`, `yes/no`, `on/off`, `y/n`, and `enabled/disabled` (any case) and rejects anything else, so `=false` actually disables.
166
166
 
167
167
  ### Server identity and instructions
168
168
 
@@ -222,7 +222,7 @@ Handlers receive a unified `ctx` object. Key properties:
222
222
 
223
223
  Handlers throw — the framework catches, classifies, and formats.
224
224
 
225
- **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
225
+ **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. A declared `retryable` reaches the same failures the same way, as `data.retryable`, unless the throw sets its own. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
226
226
 
227
227
  ```ts
228
228
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
package/CLAUDE.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Developer Protocol
2
2
 
3
3
  **Server:** browser-compat-mcp-server
4
- **Version:** 0.3.1
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
4
+ **Version:** 0.3.2
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.24`
6
6
  **Engines:** Bun ≥1.4.4, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
@@ -160,9 +160,9 @@ export function getServerConfig() {
160
160
  }
161
161
  ```
162
162
 
163
- `parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`MY_API_KEY`) not the path (`apiKey`). Throws `ConfigurationError`, which the framework prints as a clean startup banner.
163
+ `parseEnvConfig` maps Zod schema paths → env var names so errors name the variable (`MY_API_KEY`) not the path (`apiKey`). Throws `ConfigurationError`, which the framework prints as a clean startup banner when the call runs in `setup()`; a call at import, such as a module-scope `disabledTool()` gate, exits on the raw stack instead.
164
164
 
165
- For env booleans use `z.stringbool()`, never `z.coerce.boolean()` — `Boolean("false")` is `true`, so a coerced flag can't be disabled through the environment. `z.stringbool()` parses `true/false/1/0/yes/no/on/off` and rejects anything else, so `=false` actually disables.
165
+ For env booleans use `z.stringbool()`, never `z.coerce.boolean()` — `Boolean("false")` is `true`, so a coerced flag can't be disabled through the environment. `z.stringbool()` parses `true/false`, `1/0`, `yes/no`, `on/off`, `y/n`, and `enabled/disabled` (any case) and rejects anything else, so `=false` actually disables.
166
166
 
167
167
  ### Server identity and instructions
168
168
 
@@ -222,7 +222,7 @@ Handlers receive a unified `ctx` object. Key properties:
222
222
 
223
223
  Handlers throw — the framework catches, classifies, and formats.
224
224
 
225
- **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
225
+ **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable?, severity?, thrownBy? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required (≥ 5 words, lint-validated) — the single source of truth for the agent's next move. The framework puts it on the wire whenever a failure carrying that `reason` arrives without a hint — a bare `ctx.fail('reason')` or a service throw with `data: { reason }` — as `data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim; override with an explicit `{ recovery: { hint: '...' } }` when dynamic runtime context matters. A declared `retryable` reaches the same failures the same way, as `data.retryable`, unless the throw sets its own. Every error envelope also carries `data.requestId`, the id the server's log records for that call carry, and `content[]` closes with `(reason … · request <id>)`. Mark an entry the service layer throws with `thrownBy: 'service'` so `error-contract-unthrown` skips it — lint-only metadata, nothing at runtime reads it. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
226
226
 
227
227
  ```ts
228
228
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
package/README.md CHANGED
@@ -49,7 +49,7 @@ The [browser-compat-guide](./skills/browser-compat-guide/SKILL.md) covers assess
49
49
 
50
50
  ### `browsercompat_list_reference` <sub>tool</sub>
51
51
 
52
- - Required `topic`: `bcd_namespaces` (12), `bcd_browsers` (17), `browserslist_agents` (19), `baseline_states` (4), `groups` (105), or `snapshots` (11). Group and snapshot ids feed the search filters.
52
+ - Required `topic`: `bcd_namespaces` (12), `bcd_browsers` (17), `browserslist_agents` (19 browser agents plus Node.js), `baseline_states` (4), `groups` (106), or `snapshots` (11). Group and snapshot ids feed the search filters.
53
53
  - Entries carry `id`, `label`, and `detail`, plus `count`, `reported`, `bcd_browser`, `usage_percent`, `maps_from`, or `spec_url` where applicable. An agent's `bcd_browser: null` means support comparisons cannot evaluate it and report it in `unchecked_targets`.
54
54
 
55
55
  ---
@@ -74,15 +74,15 @@ The [browser-compat-guide](./skills/browser-compat-guide/SKILL.md) covers assess
74
74
 
75
75
  - `query`, 1–100 characters, accepts names, keywords, or notation such as `Array.prototype.at`, `display: grid`, or `<dialog>`. Combine `namespace` (12 BCD namespaces), `baseline` (`widely`, `newly`, `limited`, `not_mapped`), `group` (including nested groups), and `snapshot` (such as `ecmascript-2023`).
76
76
  - `matched_on` says why a result ranked where it did, and `support_summary` covers the seven Baseline core browsers: `Firefox 33 (flagged)`, `Safari 3 (prefixed)`, `Chrome 94 (partial)`, and `Edge ≤18` preserve the selected verdict and addition bound; `—` means unsupported, removed, or preview-only, and `?` means unknown. Typed failures: `invalid_query` (zero searchable tokens), `unknown_group`, `unknown_snapshot`.
77
- - Page with `limit` (default 10, 1–1000; `cap` reports the requested size) and `offset` (default 0); `totalCount` and `nextOffset` drive paging. Zero hits succeed with a notice naming a filter to drop.
77
+ - Page with `limit` (default 10, 1–1000; `cap` reports the requested size) and `offset` (default 0); `totalCount` and `nextOffset` drive paging. When filters exclude every match, the notice gives the count available without them. A query with no matches anywhere gets spelling and discovery guidance.
78
78
 
79
79
  ---
80
80
 
81
81
  ### `browsercompat_compare_support` <sub>tool</sub>
82
82
 
83
- - Up to 20 features per call against a required self-contained `targets` browserslist query, such as `defaults` or `> 0.5%, last 2 versions`; config packages and custom configuration are rejected, and local config discovery is disabled. Up to 100 features are accepted and the rest come back in `omitted_features`, which makes `all_clear` false. Typed failures: `invalid_target_query`, `no_targets_resolved`, `invalid_feature_input`.
83
+ - Up to 20 features per call against a required self-contained `targets` browserslist query, such as `defaults` or `> 0.5%, last 2 versions`; config packages and custom configuration are rejected, and local config discovery is disabled. Up to 100 features are accepted and the rest come back in `omitted_features`, which makes `all_clear` false. Node queries such as `maintained node versions` use BCD’s `nodejs` records. A target beyond the newest recorded release is unchecked. Typed failures include `invalid_target_query`, `unknown_region`, `no_targets_resolved`, and `invalid_feature_input`.
84
84
  - Each `verdict` is `clears`, `fails`, `inconclusive`, `miss`, or `ambiguous`. A feature clears only when every target in the query was evaluated and supports it, so a query that includes a browser with no compatibility data, as `defaults` does, never clears. `all_clear` is true only when every feature clears.
85
- - Results report `support_source`, `failing_ranges`, `failing_total`, and evaluated and unchecked totals with coverage percentages. Target rows page with `target_offset` (default 0) and `target_limit` (default 10, 1–1000; `cap` reports the requested size); verdicts and totals are the same on every page, and `totalCount` and `nextOffset` drive paging.
85
+ - Pass `usage_region` to weight traffic by a country or region, such as `CN` or `alt-as`. The default is global. `failing_coverage_percent` gives each compared feature’s failing traffic across the whole query. Every failing run and paged failing target carries `usage_percent`. Node targets carry zero traffic weight. Target rows page with `target_offset` (default 0) and `target_limit` (default 10, 1–1000; `cap` reports the requested size); verdicts and totals are the same on every page, and `totalCount` and `nextOffset` drive paging.
86
86
 
87
87
  ---
88
88
 
@@ -90,12 +90,12 @@ The [browser-compat-guide](./skills/browser-compat-guide/SKILL.md) covers assess
90
90
 
91
91
  | Package | Version | License | Supplies |
92
92
  |:---|:---|:---|:---|
93
- | [`@mdn/browser-compat-data`](https://github.com/mdn/browser-compat-data) | `^8.1.8` | CC0-1.0 | Per-browser support, standards status, MDN and specification links |
94
- | [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.45.0` | Apache-2.0 | Baseline state and dates, feature-level core-browser support, discouraged flags, groups, ECMAScript snapshots |
95
- | [`caniuse-lite`](https://github.com/browserslist/caniuse-lite) | `^1.0.30001823` | CC-BY-4.0 | Usage weighting, plus feature titles for the search index |
96
- | [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.5` | MIT | Target query resolution and coverage figures |
93
+ | [`@mdn/browser-compat-data`](https://github.com/mdn/browser-compat-data) | `^8.1.11` | CC0-1.0 | Per-browser support, standards status, MDN and specification links |
94
+ | [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.48.0` | Apache-2.0 | Baseline state and dates, feature-level core-browser support, discouraged flags, groups, ECMAScript snapshots |
95
+ | [`caniuse-lite`](https://github.com/browserslist/caniuse-lite) | `^1.0.30001828` | CC-BY-4.0 | Usage weighting, plus feature titles for the search index |
96
+ | [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.6` | MIT | Target query resolution and coverage figures |
97
97
 
98
- CC BY 4.0 requires attribution wherever the caniuse data travels, so every response carrying a usage figure carries this string: `Usage data from caniuse.com, © Can I Use contributors, CC BY 4.0. Figures are percentage points of global traffic. The bundled data tracks ~97.6% of global traffic; the remainder is untracked and unknown.` Values are raw global percentages, without normalization to tracked traffic. Full license texts and notices are in [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md).
98
+ CC BY 4.0 requires attribution wherever the caniuse data travels, so responses carrying global usage figures carry this attribution: `Usage data from caniuse.com, © Can I Use contributors, CC BY 4.0. Figures are percentage points of global traffic. The bundled data tracks ~97.6% of global traffic; the remainder is untracked and unknown.` Regional comparisons name the selected audience. All values are raw percentage points of that audience’s traffic. Full license texts and notices are in [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md).
99
99
 
100
100
  ---
101
101
 
@@ -113,7 +113,7 @@ Browser-compat-specific:
113
113
  Agent-friendly output:
114
114
 
115
115
  - Every response echoes `data_version`, the version of each bundled dataset behind the answer
116
- - A pass is never claimed for a browser that was not evaluated; targets without data land in `unchecked_targets` and make the verdict `inconclusive`
116
+ - Targets without data appear in `unchecked_targets`. A known failure still yields `fails`. With unchecked targets and no known failure, a compared feature is `inconclusive`.
117
117
  - Misses are results, not failures: `found: false` with `guidance` naming the next call, and typed errors with recovery hints
118
118
  - Usage figures state the population they are a share of and carry the caniuse attribution
119
119
 
@@ -6,10 +6,10 @@ attribution those datasets require.
6
6
 
7
7
  | Dataset | Version range | License | Source |
8
8
  |:--------|:--------------|:--------|:-------|
9
- | `@mdn/browser-compat-data` | ^8.1.8 | CC0-1.0 | https://github.com/mdn/browser-compat-data |
10
- | `web-features` | ^3.45.0 | Apache-2.0 | https://github.com/web-platform-dx/web-features |
11
- | `caniuse-lite` | ^1.0.30001823 | CC-BY-4.0 | https://github.com/browserslist/caniuse-lite |
12
- | `browserslist` | ^4.29.5 | MIT | https://github.com/browserslist/browserslist |
9
+ | `@mdn/browser-compat-data` | ^8.1.11 | CC0-1.0 | https://github.com/mdn/browser-compat-data |
10
+ | `web-features` | ^3.48.0 | Apache-2.0 | https://github.com/web-platform-dx/web-features |
11
+ | `caniuse-lite` | ^1.0.30001828 | CC-BY-4.0 | https://github.com/browserslist/caniuse-lite |
12
+ | `browserslist` | ^4.29.6 | MIT | https://github.com/browserslist/browserslist |
13
13
 
14
14
  Every tool response echoes the exact version of each dataset it answered from, under
15
15
  `data_version`.
@@ -243,8 +243,8 @@ beyond carrying the license text below and stating this attribution.
243
243
 
244
244
  Browser usage and support statistics from the Can I Use project, licensed under the Creative
245
245
  Commons Attribution 4.0 International License. CC BY 4.0 requires attribution wherever the
246
- data is conveyed, so alongside this file every tool response that quotes a usage percentage
247
- carries this string verbatim in its `attribution` field:
246
+ data is conveyed. Every response with a usage percentage credits Can I Use in its `attribution`
247
+ field. Regional comparisons identify the selected audience. The global attribution reads:
248
248
 
249
249
  > Usage data from caniuse.com, © Can I Use contributors, CC BY 4.0. Figures are percentage points of global traffic. The bundled data tracks ~97.6% of global traffic; the remainder is untracked and unknown.
250
250
 
@@ -0,0 +1,39 @@
1
+ ---
2
+ summary: "Measure failing browser traffic by audience and compare Node.js targets."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.3.2 — 2026-11-27
8
+
9
+ ## Added
10
+
11
+ - **Failing traffic** appears per feature, per failing version run, and per paged failing target in `browsercompat_compare_support`. Feature and run totals cover the entire query on every page. ([#43](https://github.com/cyanheads/browser-compat-mcp-server/issues/43))
12
+ - **`usage_region`** weights every compare-support traffic figure using a bundled country or regional dataset, such as `CN` or `alt-as`. Omit it for global traffic. ([#44](https://github.com/cyanheads/browser-compat-mcp-server/issues/44))
13
+ - **Node.js targets** such as `maintained node versions` use BCD's `nodejs` data for exact compatibility keys and carry zero browser traffic. Web-features comparisons leave Node unchecked and return compatibility keys for follow-up. ([#45](https://github.com/cyanheads/browser-compat-mcp-server/issues/45))
14
+
15
+ ## Changed
16
+
17
+ - **Compare-support guidance** explains that a known failure takes precedence over unchecked targets and that aggregate coverage counts only targets evaluated for every compared feature.
18
+ - **BCD identifiers** changed in the bundled data. Drop the `at_` prefix from the 16 margin keys under `css.at-rules.page.`, use `api.SpeechGrammarList.addFromUri` in place of `api.SpeechGrammarList.addFromURI`, and use `css.properties.hyphenate-limit-lines` for the former prefixed key.
19
+ - **Obsolete BCD entries** now return exact-key misses: `api.DelegatedInkTrailPresenter.expectedImprovement`, `api.History.pushState.unused_parameter`, `api.History.replaceState.unused_parameter`, `api.PushSubscription.subscriptionId`, and `css.properties.alt`.
20
+
21
+ ## Fixed
22
+
23
+ - **Targets beyond BCD's numeric ceiling** are unchecked as `unknown_version`. This applies to both endpoints of grouped versions. ([#42](https://github.com/cyanheads/browser-compat-mcp-server/issues/42))
24
+ - **Filtered searches with zero hits** report the unfiltered count when dropping filters would help. Queries with no matches anywhere get spelling and discovery guidance. ([#46](https://github.com/cyanheads/browser-compat-mcp-server/issues/46))
25
+
26
+ ## Dependencies
27
+
28
+ - `@cyanheads/mcp-ts-core` ^0.13.22 → ^0.13.24
29
+ - `@mdn/browser-compat-data` ^8.1.8 → ^8.1.11
30
+ - `browserslist` ^4.29.5 → ^4.29.6
31
+ - `caniuse-lite` ^1.0.30001823 → ^1.0.30001828
32
+ - `web-features` ^3.45.0 → ^3.48.0
33
+ - `@biomejs/biome` 2.6.6 → 2.6.9
34
+ - `@types/node` 26.6.6 → 26.6.11
35
+ - `@vitest/coverage-istanbul` 5.1.0 → ^5.1.2
36
+ - `fast-check` ^4.10.2 → ^4.11.0
37
+ - `ignore` ^7.0.14 → ^7.0.17
38
+ - `tsc-alias` ^1.9.10 → ^1.9.11
39
+ - `vitest` ^5.1.0 → ^5.1.2
@@ -75,17 +75,19 @@ security: false
75
75
  Example — same fact, right size:
76
76
 
77
77
  TOO LONG: **`fetchWithTimeout`'s `timeoutMs` bounds the whole exchange**
78
- (#341). `fetch` resolves once headers arrive and the deadline was
79
- cleared as the helper returned, so a peer that answered promptly and
80
- then stalled the stream held the request open indefinitely. A 2xx
81
- carrying a body now comes back as a passthrough wrapper that disarms
82
- the deadline when the body closes, errors, or is cancelled; …
78
+ ([#341](https://github.com/cyanheads/mcp-ts-core/issues/341)). `fetch`
79
+ resolves once headers arrive and the deadline was cleared as the helper
80
+ returned, so a peer that answered promptly and then stalled the stream
81
+ held the request open indefinitely. A 2xx carrying a body now comes back
82
+ as a passthrough wrapper that disarms the deadline when the body closes,
83
+ errors, or is cancelled; …
83
84
  [+90 more words of mechanism and edge cases]
84
85
 
85
86
  RIGHT: **`fetchWithTimeout`'s `timeoutMs` now bounds the whole
86
- exchange, not just the headers** (#341). A stalled body aborts with
87
- the same `Timeout` error; the returned `Response` is a wrapper, so
88
- identity assertions (`toBe(response)`) no longer hold.
87
+ exchange, not just the headers**
88
+ ([#341](https://github.com/cyanheads/mcp-ts-core/issues/341)). A stalled
89
+ body aborts with the same `Timeout` error; the returned `Response` is a
90
+ wrapper, so identity assertions (`toBe(response)`) no longer hold.
89
91
 
90
92
  Narrative intro: skip by default. Add one short sentence only when the
91
93
  release theme genuinely needs framing the bullets can't carry. When many
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @fileoverview Hand-maintained mapping from browserslist/caniuse agent ids to
3
- * browser-compat-data browser ids. Declares all 19 agents explicitly — mapped or
4
- * `null` — so an agent added to caniuse-lite surfaces as an unchecked target
5
- * rather than disappearing from the comparison.
3
+ * browser-compat-data browser ids. Declares every caniuse agent and the
4
+ * browserslist Node.js runtime target. Unmapped agents remain visible as
5
+ * unchecked targets.
6
6
  * @module data/browserslist-bcd-map
7
7
  */
8
8
  /**
9
- * Every caniuse agent id, mapped to its browser-compat-data counterpart or to
9
+ * Every caniuse agent id and Node.js, mapped to a browser-compat-data id or to
10
10
  * `null` where no counterpart exists. `webview_ios` is the one reported BCD
11
11
  * browser with no agent, so it never appears as a target.
12
12
  */
@@ -30,10 +30,11 @@ export declare const BROWSERSLIST_BCD_MAP: {
30
30
  readonly baidu: null;
31
31
  readonly kaios: null;
32
32
  readonly ie_mob: null;
33
+ readonly node: 'nodejs';
33
34
  };
34
- /** A caniuse agent id declared in {@link BROWSERSLIST_BCD_MAP}. */
35
+ /** A browserslist target id declared in {@link BROWSERSLIST_BCD_MAP}. */
35
36
  export type BrowserslistAgentId = keyof typeof BROWSERSLIST_BCD_MAP;
36
- /** Resolve a caniuse agent id to a BCD browser id, or `null` when none exists. */
37
+ /** Resolve a browserslist agent id to a BCD browser id, or `null` when none exists. */
37
38
  export declare function bcdBrowserForAgent(agent: string): string | null;
38
39
  /** True when the agent id is declared in the map, mapped or not. */
39
40
  export declare function isDeclaredAgent(agent: string): agent is BrowserslistAgentId;
@@ -1 +1 @@
1
- {"version":3,"file":"browserslist-bcd-map.d.ts","sourceRoot":"","sources":["../../src/data/browserslist-bcd-map.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;qBACvB,QAAQ;sBACP,gBAAgB;mBACnB,MAAM;sBACH,SAAS;qBACV,iBAAiB;iBACrB,IAAI;oBACD,OAAO;qBACN,eAAe;qBACf,QAAQ;sBACP,YAAY;sBACZ,yBAAyB;sBACzB,iBAAiB;;;;;;;;CAQsB,CAAC;AAEnD,mEAAmE;AACnE,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAEpE,kFAAkF;AAClF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE/D;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAE3E"}
1
+ {"version":3,"file":"browserslist-bcd-map.d.ts","sourceRoot":"","sources":["../../src/data/browserslist-bcd-map.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;qBACvB,QAAQ;sBACP,gBAAgB;mBACnB,MAAM;sBACH,SAAS;qBACV,iBAAiB;iBACrB,IAAI;oBACD,OAAO;qBACN,eAAe;qBACf,QAAQ;sBACP,YAAY;sBACZ,yBAAyB;sBACzB,iBAAiB;;;;;;;;mBAQpB,QAAQ;CACkC,CAAC;AAEnD,yEAAyE;AACzE,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAEpE,uFAAuF;AACvF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE/D;AAED,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAE3E"}
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @fileoverview Hand-maintained mapping from browserslist/caniuse agent ids to
3
- * browser-compat-data browser ids. Declares all 19 agents explicitly — mapped or
4
- * `null` — so an agent added to caniuse-lite surfaces as an unchecked target
5
- * rather than disappearing from the comparison.
3
+ * browser-compat-data browser ids. Declares every caniuse agent and the
4
+ * browserslist Node.js runtime target. Unmapped agents remain visible as
5
+ * unchecked targets.
6
6
  * @module data/browserslist-bcd-map
7
7
  */
8
8
  /**
9
- * Every caniuse agent id, mapped to its browser-compat-data counterpart or to
9
+ * Every caniuse agent id and Node.js, mapped to a browser-compat-data id or to
10
10
  * `null` where no counterpart exists. `webview_ios` is the one reported BCD
11
11
  * browser with no agent, so it never appears as a target.
12
12
  */
@@ -30,10 +30,11 @@ export const BROWSERSLIST_BCD_MAP = {
30
30
  baidu: null,
31
31
  kaios: null,
32
32
  ie_mob: null,
33
+ node: 'nodejs',
33
34
  };
34
- /** Resolve a caniuse agent id to a BCD browser id, or `null` when none exists. */
35
+ /** Resolve a browserslist agent id to a BCD browser id, or `null` when none exists. */
35
36
  export function bcdBrowserForAgent(agent) {
36
- return BROWSERSLIST_BCD_MAP[agent] ?? null;
37
+ return isDeclaredAgent(agent) ? BROWSERSLIST_BCD_MAP[agent] : null;
37
38
  }
38
39
  /** True when the agent id is declared in the map, mapped or not. */
39
40
  export function isDeclaredAgent(agent) {
@@ -1 +1 @@
1
- {"version":3,"file":"browserslist-bcd-map.js","sourceRoot":"","sources":["../../src/data/browserslist-bcd-map.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,gBAAgB;IACzB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,iBAAiB;IACzB,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,IAAI;IACb,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;CACoC,CAAC;AAKnD,kFAAkF;AAClF,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC9C,OAAQ,oBAAkE,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;AAC5F,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,eAAe,CAAC,KAAa;IAC3C,OAAO,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"browserslist-bcd-map.js","sourceRoot":"","sources":["../../src/data/browserslist-bcd-map.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,gBAAgB;IACzB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,iBAAiB;IACzB,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,IAAI;IACb,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,QAAQ;CACkC,CAAC;AAKnD,uFAAuF;AACvF,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC9C,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACrE,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,eAAe,CAAC,KAAa;IAC3C,OAAO,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC"}
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ await createApp({
31
31
  resources: [],
32
32
  prompts: [],
33
33
  skills: 'skills',
34
- instructions: 'Browser support and Baseline status for web platform features, served from bundled MDN browser-compat-data, web-features, and caniuse data — offline, no API key, no rate limit. Start at browsercompat_search_features when the feature key is unknown; browsercompat_get_feature returns the per-feature record and browsercompat_check_baseline answers ship-or-not across up to 20 features at once. Feature inputs accept a BCD key (css.selectors.has) or a web-features id (has); resolved_as identifies successful matches, and unresolved features come back as found: false rather than errors. A web-features id that spans several BCD keys, such as grid, is answered from web-features’ own release per Baseline core browser for the feature as a whole, with its compat_keys for a key-level follow-up. browsercompat_compare_support requires an explicit browserslist query and evaluates all of it on every call: verdicts, coverage, and totals describe the whole query, while the target rows cover target_limit query targets per call (10 by default, up to 1000) — pass nextOffset as target_offset for the next page. A feature clears only when every target in the query was evaluated and supports it; a target with no compatibility data is counted as unchecked and makes the verdict inconclusive, so a pass is never claimed for a browser that was not evaluated. browsercompat_list_reference enumerates the namespaces, browser ids, browserslist agents, Baseline states, groups, and snapshots the other tools expect. Every response echoes data_version; the data is a package snapshot, so a feature that shipped in the last few weeks may lag.',
34
+ instructions: 'Browser support and Baseline status for web platform features, served from bundled MDN browser-compat-data, web-features, and caniuse data — offline, no API key, no rate limit. Start at browsercompat_search_features when the feature key is unknown; browsercompat_get_feature returns the per-feature record and browsercompat_check_baseline answers ship-or-not across up to 20 features at once. Feature inputs accept a BCD key (css.selectors.has) or a web-features id (has); resolved_as identifies successful matches, and unresolved features come back as found: false rather than errors. A web-features id that spans several BCD keys, such as grid, is answered from web-features’ own release per Baseline core browser for the feature as a whole, with its compat_keys for a key-level follow-up. browsercompat_compare_support requires an explicit browserslist query and evaluates all of it on every call: verdicts, coverage, and totals describe the whole query, while the target rows cover target_limit query targets per call (10 by default, up to 1000) — pass nextOffset as target_offset for the next page. A feature clears only when every target in the query was evaluated and supports it; a known failure yields fails even when another target is unchecked. With unchecked targets and no known failure, a compared feature is inconclusive. browsercompat_list_reference enumerates the namespaces, browser ids, browserslist agents, Baseline states, groups, and snapshots the other tools expect. Every response echoes data_version; the data is a package snapshot, so a feature that shipped in the last few weeks may lag.',
35
35
  // Keyless public reference data — serve the full inventory without an auth gate.
36
36
  landing: { requireAuth: false },
37
37
  setup(core) {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AACjH,OAAO,EAAE,2BAA2B,EAAE,MAAM,sEAAsE,CAAC;AACnH,OAAO,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AACjH,OAAO,EAAE,2BAA2B,EAAE,MAAM,sEAAsE,CAAC;AACnH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,2BAA2B;IAClC,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;QACxD,iBAAiB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;KAC9D;IACD,KAAK,EAAE;QACL,0BAA0B;QAC1B,uBAAuB;QACvB,0BAA0B;QAC1B,2BAA2B;QAC3B,2BAA2B;KAC5B;IACD,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,QAAQ;IAChB,YAAY,EACV,4lDAA4lD;IAC9lD,iFAAiF;IACjF,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAE/B,KAAK,CAAC,IAAI;QACR,wEAAwE;QACxE,4EAA4E;QAC5E,qBAAqB;QACrB,OAAO,CAAC,GAAG,CAAC;YACV,aAAa,EAAE;YACf,kBAAkB,EAAE;YACpB,iBAAiB,EAAE;YACnB,gBAAgB,EAAE;YAClB,cAAc,EAAE;SACjB,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,wBAAwB,EACxB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAC1D,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AACjH,OAAO,EAAE,2BAA2B,EAAE,MAAM,sEAAsE,CAAC;AACnH,OAAO,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AACjH,OAAO,EAAE,2BAA2B,EAAE,MAAM,sEAAsE,CAAC;AACnH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,2BAA2B;IAClC,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;QACxD,iBAAiB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE;KAC9D;IACD,KAAK,EAAE;QACL,0BAA0B;QAC1B,uBAAuB;QACvB,0BAA0B;QAC1B,2BAA2B;QAC3B,2BAA2B;KAC5B;IACD,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,QAAQ;IAChB,YAAY,EACV,glDAAglD;IACllD,iFAAiF;IACjF,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAE/B,KAAK,CAAC,IAAI;QACR,wEAAwE;QACxE,4EAA4E;QAC5E,qBAAqB;QACrB,OAAO,CAAC,GAAG,CAAC;YACV,aAAa,EAAE;YACf,kBAAkB,EAAE;YACpB,iBAAiB,EAAE;YACnB,gBAAgB,EAAE;YAClB,cAAc,EAAE;SACjB,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,wBAAwB,EACxB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAC1D,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
@@ -11,11 +11,13 @@ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
11
11
  export declare const browsercompatCompareSupport: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
12
12
  features: z.ZodArray<z.ZodString>;
13
13
  targets: z.ZodString;
14
+ usage_region: z.ZodOptional<z.ZodString>;
14
15
  resolve: z.ZodDefault<z.ZodBoolean>;
15
16
  target_offset: z.ZodDefault<z.ZodNumber>;
16
17
  target_limit: z.ZodDefault<z.ZodNumber>;
17
18
  }, z.core.$strip>, z.ZodObject<{
18
19
  query_echo: z.ZodString;
20
+ usage_region: z.ZodOptional<z.ZodString>;
19
21
  comparable_features: z.ZodNumber;
20
22
  targets_resolved: z.ZodArray<z.ZodObject<{
21
23
  agent: z.ZodString;
@@ -99,8 +101,10 @@ export declare const browsercompatCompareSupport: import("@cyanheads/mcp-ts-core
99
101
  removed: "removed";
100
102
  unsupported: "unsupported";
101
103
  }>;
104
+ usage_percent: z.ZodNumber;
102
105
  }, z.core.$strip>>;
103
106
  failing_total: z.ZodOptional<z.ZodNumber>;
107
+ failing_coverage_percent: z.ZodOptional<z.ZodNumber>;
104
108
  failing_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
109
  agent: z.ZodString;
106
110
  newest: z.ZodString;
@@ -116,6 +120,7 @@ export declare const browsercompatCompareSupport: import("@cyanheads/mcp-ts-core
116
120
  removed: "removed";
117
121
  unsupported: "unsupported";
118
122
  }>;
123
+ usage_percent: z.ZodNumber;
119
124
  }, z.core.$strip>>>;
120
125
  evaluated_total: z.ZodOptional<z.ZodNumber>;
121
126
  evaluated_coverage_percent: z.ZodOptional<z.ZodNumber>;
@@ -143,13 +148,19 @@ export declare const browsercompatCompareSupport: import("@cyanheads/mcp-ts-core
143
148
  readonly reason: "invalid_target_query";
144
149
  readonly code: JsonRpcErrorCode.ValidationError;
145
150
  readonly when: "browserslist rejected the targets query, or it requires config packages or custom configuration.";
146
- readonly recovery: "Use a self-contained query without config packages or custom configuration — call browsercompat_list_reference with topic browserslist_agents for the 19 valid agent ids. A negation-only query needs a base, e.g. \"defaults, not dead\" rather than \"not dead\".";
151
+ readonly recovery: "Use a self-contained query without config packages or custom configuration — call browsercompat_list_reference with topic browserslist_agents for valid agent ids. A negation-only query needs a base, e.g. \"defaults, not dead\" rather than \"not dead\".";
147
152
  readonly thrownBy: "service";
148
153
  }, {
149
154
  readonly reason: "no_targets_resolved";
150
155
  readonly code: JsonRpcErrorCode.ValidationError;
151
156
  readonly when: "The query matched no browser versions at all, or only agents with no browser-compat-data counterpart. A mapped agent whose version token does not resolve is reported in unchecked_targets instead.";
152
- readonly recovery: "Widen the targets query so it selects at least one browser that has compatibility data — call browsercompat_list_reference with topic browserslist_agents to see which of the 19 agents do.";
157
+ readonly recovery: "Widen the targets query so it selects at least one agent with compatibility data — call browsercompat_list_reference with topic browserslist_agents to see which agents do.";
158
+ }, {
159
+ readonly reason: "unknown_region";
160
+ readonly code: JsonRpcErrorCode.ValidationError;
161
+ readonly when: "usage_region is malformed or has no bundled caniuse usage data.";
162
+ readonly recovery: "Use a bundled country code such as CN or an alt-xx code such as alt-as, or omit usage_region for global traffic.";
163
+ readonly thrownBy: "service";
153
164
  }, {
154
165
  readonly reason: "invalid_feature_input";
155
166
  readonly code: JsonRpcErrorCode.ValidationError;
@@ -1 +1 @@
1
- {"version":3,"file":"browsercompat-compare-support.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-compare-support.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA8OjE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4lBtC,CAAC"}
1
+ {"version":3,"file":"browsercompat-compare-support.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-compare-support.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAmQjE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwoBtC,CAAC"}