@cyanheads/browser-compat-mcp-server 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -4
- package/CLAUDE.md +4 -4
- package/README.md +10 -10
- package/THIRD_PARTY_NOTICES.md +5 -5
- package/changelog/0.3.x/0.3.1.md +36 -0
- package/changelog/template.md +10 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js +31 -7
- package/dist/mcp-server/tools/definitions/browsercompat-check-baseline.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js +49 -36
- package/dist/mcp-server/tools/definitions/browsercompat-compare-support.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-list-reference.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js +5 -13
- package/dist/mcp-server/tools/definitions/browsercompat-search-features.tool.js.map +1 -1
- package/dist/services/bcd/bcd-service.d.ts +7 -3
- package/dist/services/bcd/bcd-service.d.ts.map +1 -1
- package/dist/services/bcd/bcd-service.js +9 -3
- package/dist/services/bcd/bcd-service.js.map +1 -1
- package/dist/services/targets/targets-service.d.ts +20 -3
- package/dist/services/targets/targets-service.d.ts.map +1 -1
- package/dist/services/targets/targets-service.js +48 -11
- package/dist/services/targets/targets-service.js.map +1 -1
- package/dist/services/targets/types.d.ts +23 -6
- package/dist/services/targets/types.d.ts.map +1 -1
- package/package.json +12 -12
- package/server.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** browser-compat-mcp-server
|
|
4
|
-
**Version:** 0.3.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
6
|
-
**Engines:** Bun ≥1.4.
|
|
4
|
+
**Version:** 0.3.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
|
|
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
|
|
9
9
|
|
|
@@ -389,7 +389,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
389
389
|
|
|
390
390
|
## Bundling
|
|
391
391
|
|
|
392
|
-
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs
|
|
392
|
+
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs — `framework-skills/`, `skills/`, `.claude/`, `.agents/`, `AGENTS.md`, and `CLAUDE.md` at a package's root, and `SKILL.md` anywhere (a `skills/` deeper in a package is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
393
393
|
|
|
394
394
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
|
|
395
395
|
|
package/CLAUDE.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** browser-compat-mcp-server
|
|
4
|
-
**Version:** 0.3.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.
|
|
6
|
-
**Engines:** Bun ≥1.4.
|
|
4
|
+
**Version:** 0.3.1
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.22`
|
|
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
|
|
9
9
|
|
|
@@ -389,7 +389,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
389
389
|
|
|
390
390
|
## Bundling
|
|
391
391
|
|
|
392
|
-
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs
|
|
392
|
+
`npm run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs — `framework-skills/`, `skills/`, `.claude/`, `.agents/`, `AGENTS.md`, and `CLAUDE.md` at a package's root, and `SKILL.md` anywhere (a `skills/` deeper in a package is runtime code and stays); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp` (`config.gypi`, Makefiles, `obj.target/`, `.deps/`, object files and debug symbols), which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, and config bases (`biome.json`, `vitest.config.base.mjs`, `config/tsconfig.base.json`), and `better-sqlite3`'s `deps/` and `src/` C sources. A server using DataCanvas therefore ships a portable bundle without the DuckDB native — `@duckdb/node-api` is an optional peer loaded lazily, so canvas tools report an actionable install hint and every other tool works normally. MCPB is stdio-only — HTTP and Cloudflare Workers deployments are unaffected. Consumers who don't need it can delete `manifest.json` and `.mcpbignore`; `lint:packaging` skips cleanly.
|
|
393
393
|
|
|
394
394
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
|
|
395
395
|
|
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` (
|
|
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.
|
|
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
|
---
|
|
@@ -65,7 +65,7 @@ The [browser-compat-guide](./skills/browser-compat-guide/SKILL.md) covers assess
|
|
|
65
65
|
### `browsercompat_check_baseline` <sub>tool</sub>
|
|
66
66
|
|
|
67
67
|
- BCD keys or web-features ids, 1–200 characters each. Up to 100 are accepted and the first 20 are evaluated in input order; the rest come back verbatim in `omitted_features`. More than 100 is rejected, and a whitespace-only entry returns `invalid_feature_input`.
|
|
68
|
-
- Results carry Baseline state and dates, `limiting_browser`, `deprecated`, `experimental`, and `discouraged`, plus `usage_percent_excluded` and `usage_source` where caniuse covers the feature. Usage is left out when unavailable, never reported as zero.
|
|
68
|
+
- Results carry Baseline state and dates, `limiting_browser`, `deprecated`, `experimental`, and `discouraged`, plus `usage_percent_excluded`, `usage_percent_prefixed`, and `usage_source` where caniuse covers the feature. `usage_percent_excluded` is the traffic without default, unprefixed, unflagged support; `usage_percent_prefixed` is the part of it a vendor prefix recovers. Usage is left out when unavailable, never reported as zero.
|
|
69
69
|
- `all_widely_available` is true only when every entry resolves at `widely` and none was omitted; it does not assess deprecation.
|
|
70
70
|
|
|
71
71
|
---
|
|
@@ -74,7 +74,7 @@ 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,
|
|
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.
|
|
78
78
|
|
|
79
79
|
---
|
|
80
80
|
|
|
@@ -82,7 +82,7 @@ The [browser-compat-guide](./skills/browser-compat-guide/SKILL.md) covers assess
|
|
|
82
82
|
|
|
83
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`.
|
|
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,
|
|
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.
|
|
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.
|
|
94
|
-
| [`web-features`](https://github.com/web-platform-dx/web-features) | `^3.
|
|
95
|
-
| [`caniuse-lite`](https://github.com/browserslist/caniuse-lite) | `^1.0.
|
|
96
|
-
| [`browserslist`](https://github.com/browserslist/browserslist) | `^4.29.
|
|
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 |
|
|
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.
|
|
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).
|
|
99
99
|
|
|
100
100
|
---
|
|
101
101
|
|
|
@@ -201,7 +201,7 @@ MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
|
|
|
201
201
|
|
|
202
202
|
### Prerequisites
|
|
203
203
|
|
|
204
|
-
- [Bun v1.4.
|
|
204
|
+
- [Bun v1.4.4](https://bun.sh/) or higher (or Node.js v24+).
|
|
205
205
|
- No API keys, accounts, or network access required — every dataset ships with the package.
|
|
206
206
|
|
|
207
207
|
### Installation
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -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.
|
|
10
|
-
| `web-features` | ^3.
|
|
11
|
-
| `caniuse-lite` | ^1.0.
|
|
12
|
-
| `browserslist` | ^4.29.
|
|
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 |
|
|
13
13
|
|
|
14
14
|
Every tool response echoes the exact version of each dataset it answered from, under
|
|
15
15
|
`data_version`.
|
|
@@ -246,7 +246,7 @@ Commons Attribution 4.0 International License. CC BY 4.0 requires attribution wh
|
|
|
246
246
|
data is conveyed, so alongside this file every tool response that quotes a usage percentage
|
|
247
247
|
carries this string verbatim in its `attribution` field:
|
|
248
248
|
|
|
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.
|
|
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
|
|
|
251
251
|
Full license: https://creativecommons.org/licenses/by/4.0/legalcode
|
|
252
252
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Grouped browserslist targets are judged at every release they span, usage exclusion counts only default unprefixed support and reports the prefix-recoverable share, and requested page sizes up to 1000 are honored."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.3.1 — 2026-11-11
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`usage_percent_prefixed`** on `browsercompat_check_baseline` results reports the part of `usage_percent_excluded` where the feature works only with a vendor prefix ([#39](https://github.com/cyanheads/browser-compat-mcp-server/issues/39)).
|
|
12
|
+
|
|
13
|
+
## Changed
|
|
14
|
+
|
|
15
|
+
- **`limit` (`browsercompat_search_features`) and `target_limit` (`browsercompat_compare_support`)** are honored up to the schema maximum of 1000 instead of being served as 50 and 10; defaults stay 10, and `cap` reports the requested size ([#40](https://github.com/cyanheads/browser-compat-mcp-server/issues/40)).
|
|
16
|
+
- **Bundled datasets** refreshed: `browsercompat_list_reference` lists 105 `groups` (was 104), and the caniuse attribution string reports ~97.6% tracked traffic (was ~97.5%).
|
|
17
|
+
- **Development tooling** resynced from the framework: skills, `devcheck`, packaging lint, release script, `.env.example` JWT audience and issuer entries.
|
|
18
|
+
|
|
19
|
+
## Fixed
|
|
20
|
+
|
|
21
|
+
- **Grouped browserslist tokens** such as `ios_saf 15.0-15.1` are judged at every BCD release they span, so a removal inside the range now fails the target instead of clearing at the lower endpoint ([#38](https://github.com/cyanheads/browser-compat-mcp-server/issues/38)).
|
|
22
|
+
- **`usage_percent_excluded`** counts a browser version as supported only for default, unprefixed, enabled support; prefix-required (`x`) and disabled-by-default (`d`) caniuse support are now excluded, except for features whose compat keys are all vendor-prefixed names ([#39](https://github.com/cyanheads/browser-compat-mcp-server/issues/39)).
|
|
23
|
+
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
- `@cyanheads/mcp-ts-core` ^0.13.18 → ^0.13.22
|
|
27
|
+
- `@mdn/browser-compat-data` ^8.1.7 → ^8.1.8
|
|
28
|
+
- `browserslist` ^4.29.4 → ^4.29.5
|
|
29
|
+
- `caniuse-lite` ^1.0.30001819 → ^1.0.30001823
|
|
30
|
+
- `web-features` ^3.44.0 → ^3.45.0
|
|
31
|
+
- `@biomejs/biome` 2.6.3 → 2.6.6
|
|
32
|
+
- `@types/node` 26.6.5 → 26.6.6
|
|
33
|
+
- `@vitest/coverage-istanbul` 5.0.5 → 5.1.0
|
|
34
|
+
- `tsc-alias` ^1.9.9 → ^1.9.10
|
|
35
|
+
- `vitest` ^5.0.5 → ^5.1.0
|
|
36
|
+
- `engines.bun` >=1.4.0 → >=1.4.4
|
package/changelog/template.md
CHANGED
|
@@ -116,14 +116,21 @@ security: false
|
|
|
116
116
|
resolves to whatever real item already owns 42, and timeline previews pull
|
|
117
117
|
in that unrelated item's metadata.
|
|
118
118
|
|
|
119
|
+
Outside reporters: when the issue or PR came from outside the project
|
|
120
|
+
(`git-wrapup` step 5 says how to tell), thank its author in the same
|
|
121
|
+
parenthetical, profile linked by full URL for the same reason:
|
|
122
|
+
|
|
123
|
+
([#38](https://github.com/cyanheads/mcp-ts-core/issues/38), thanks [@octocat](https://github.com/octocat)!)
|
|
124
|
+
|
|
119
125
|
TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
|
|
120
126
|
via `gh release create --notes-from-tag`. It is a condensed digest of this
|
|
121
127
|
entry, never a copy, and its format is owned by the `release-and-publish`
|
|
122
128
|
skill (step 4, "Create the annotated tag"): a short subject line without the
|
|
123
129
|
version, flat headline bullets — no Keep-a-Changelog section headers, no
|
|
124
|
-
gates line — at most one deps line, issue backlinks
|
|
125
|
-
last. In release-PR mode the `git-wrapup`
|
|
126
|
-
PR body's `## Changes` and the tag copies
|
|
130
|
+
gates line — at most one deps line, issue backlinks with any outside-reporter
|
|
131
|
+
thanks, and the changelog link last. In release-PR mode the `git-wrapup`
|
|
132
|
+
skill authors those bullets as the PR body's `## Changes` and the tag copies
|
|
133
|
+
them.
|
|
127
134
|
-->
|
|
128
135
|
|
|
129
136
|
## Added
|
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
|
|
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.',
|
|
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,yCA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AAgB,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"}
|
|
@@ -55,6 +55,7 @@ export declare const browsercompatCheckBaseline: import("@cyanheads/mcp-ts-core"
|
|
|
55
55
|
according_to: z.ZodArray<z.ZodString>;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
57
|
usage_percent_excluded: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
usage_percent_prefixed: z.ZodOptional<z.ZodNumber>;
|
|
58
59
|
usage_source: z.ZodOptional<z.ZodString>;
|
|
59
60
|
compat_keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
61
|
compat_keys_total: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browsercompat-check-baseline.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-check-baseline.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"browsercompat-check-baseline.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-check-baseline.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA6GjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkPrC,CAAC"}
|
|
@@ -15,6 +15,17 @@ import { markdownText } from '../../../utils/markdown-text.js';
|
|
|
15
15
|
import { BaselineSchema, batchCompatKeys, DiscouragedSchema, FEATURES_MAX, FEATURES_PER_CALL, formatBaselineLine, formatBatchCompatKeys, formatLimitingBrowser, formatOmittedFeatures, LimitingBrowserSchema, ResolvedAsSchema, } from './compat-shapes.js';
|
|
16
16
|
/** What the usage figure is a share of, stated on every result that carries one. */
|
|
17
17
|
const USAGE_SOURCE = 'Feature-level caniuse figure; reported for a BCD key only when it is the feature’s sole declared compat key. Percentage points of global traffic; untracked traffic is unknown.';
|
|
18
|
+
/** A BCD key segment spelled with a vendor prefix, such as `-webkit-text-stroke`. */
|
|
19
|
+
const VENDOR_PREFIXED_SEGMENT = /^-(?:webkit|moz|ms|o)-/;
|
|
20
|
+
/**
|
|
21
|
+
* True when the feature owns at least one compat key and every one names a
|
|
22
|
+
* vendor-prefixed identifier: the feature is spelled with the prefix, so
|
|
23
|
+
* caniuse's prefix-required support is support for it as written.
|
|
24
|
+
*/
|
|
25
|
+
function spelledWithPrefix(compatKeys) {
|
|
26
|
+
return (compatKeys.length > 0 &&
|
|
27
|
+
compatKeys.every((key) => key.split('.').some((segment) => VENDOR_PREFIXED_SEGMENT.test(segment))));
|
|
28
|
+
}
|
|
18
29
|
const ResultSchema = z.object({
|
|
19
30
|
input: z.string().describe('The feature string as the caller sent it.'),
|
|
20
31
|
found: z.boolean().describe('True when the feature string resolved to a tracked entry.'),
|
|
@@ -37,11 +48,15 @@ const ResultSchema = z.object({
|
|
|
37
48
|
usage_percent_excluded: z
|
|
38
49
|
.number()
|
|
39
50
|
.optional()
|
|
40
|
-
.describe('Feature-level percentage points of global traffic excluded. A resolved BCD key receives
|
|
51
|
+
.describe('Feature-level percentage points of global traffic excluded: browser versions where caniuse records no support that works by default, so partial, prefix-required, flag-gated, and unknown support all count as excluded. For a feature whose compat keys all name a vendor-prefixed identifier, such as -webkit-text-stroke, prefix-required support counts as supported. A resolved BCD key receives the figure only when it is the feature’s sole declared compat key. Absent without caniuse data — never zero in that case.'),
|
|
52
|
+
usage_percent_prefixed: z
|
|
53
|
+
.number()
|
|
54
|
+
.optional()
|
|
55
|
+
.describe('Of usage_percent_excluded, the percentage points of global traffic where the feature works only with a vendor prefix; writing the prefixed form recovers this share. Present whenever usage_percent_excluded is, and never larger.'),
|
|
41
56
|
usage_source: z
|
|
42
57
|
.string()
|
|
43
58
|
.optional()
|
|
44
|
-
.describe('What usage_percent_excluded
|
|
59
|
+
.describe('What usage_percent_excluded and usage_percent_prefixed are shares of. Present whenever those figures are.'),
|
|
45
60
|
compat_keys: z
|
|
46
61
|
.array(z.string())
|
|
47
62
|
.optional()
|
|
@@ -160,10 +175,12 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
|
|
|
160
175
|
const discouraged = featureId === null ? undefined : baseline.discouraged(featureId);
|
|
161
176
|
const featureKeys = featureId === null ? [] : baseline.compatKeys(featureId);
|
|
162
177
|
const usageMatches = key === null || (featureKeys.length === 1 && featureKeys[0] === key);
|
|
163
|
-
const
|
|
178
|
+
const usage = featureId === null || !usageMatches
|
|
164
179
|
? undefined
|
|
165
|
-
: targets.excludedUsage(baseline.caniuseIds(featureId)
|
|
166
|
-
|
|
180
|
+
: targets.excludedUsage(baseline.caniuseIds(featureId), {
|
|
181
|
+
spelledWithPrefix: spelledWithPrefix(featureKeys),
|
|
182
|
+
});
|
|
183
|
+
if (usage !== undefined)
|
|
167
184
|
anyUsage = true;
|
|
168
185
|
results.push({
|
|
169
186
|
input: entry,
|
|
@@ -177,9 +194,13 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
|
|
|
177
194
|
? {}
|
|
178
195
|
: { deprecated: leaf.status.deprecated, experimental: leaf.status.experimental }),
|
|
179
196
|
...(discouraged === undefined ? {} : { discouraged }),
|
|
180
|
-
...(
|
|
197
|
+
...(usage === undefined
|
|
181
198
|
? {}
|
|
182
|
-
: {
|
|
199
|
+
: {
|
|
200
|
+
usage_percent_excluded: usage.excludedPercent,
|
|
201
|
+
usage_percent_prefixed: usage.prefixedPercent,
|
|
202
|
+
usage_source: USAGE_SOURCE,
|
|
203
|
+
}),
|
|
183
204
|
...(compatKeys === undefined ? {} : batchCompatKeys(compatKeys)),
|
|
184
205
|
});
|
|
185
206
|
}
|
|
@@ -229,6 +250,9 @@ export const browsercompatCheckBaseline = tool('browsercompat_check_baseline', {
|
|
|
229
250
|
if (item.usage_percent_excluded !== undefined) {
|
|
230
251
|
lines.push(`**usage_percent_excluded:** ${item.usage_percent_excluded}%`);
|
|
231
252
|
}
|
|
253
|
+
if (item.usage_percent_prefixed !== undefined) {
|
|
254
|
+
lines.push(`**usage_percent_prefixed:** ${item.usage_percent_prefixed}%`);
|
|
255
|
+
}
|
|
232
256
|
if (item.usage_source !== undefined)
|
|
233
257
|
lines.push(`**usage_source:** ${markdownText(item.usage_source)}`);
|
|
234
258
|
if (item.compat_keys) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browsercompat-check-baseline.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-check-baseline.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,iBAAiB,GAClB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAE5B,oFAAoF;AACpF,MAAM,YAAY,GAChB,iLAAiL,CAAC;AAEpL,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IACvE,KAAK,EAAE,CAAC,CAAC,O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AgB,CAAC,CAAC,CAAC;QAC5F,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"browsercompat-check-baseline.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/browsercompat-check-baseline.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,iBAAiB,GAClB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAE5B,oFAAoF;AACpF,MAAM,YAAY,GAChB,iLAAiL,CAAC;AAEpL,qFAAqF;AACrF,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAEzD;;;;GAIG;AACH,SAAS,iBAAiB,CAAC,UAAoB;IAC7C,OAAO,CACL,UAAU,CAAC,MAAM,GAAG,CAAC;QACrB,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CACvB,GAA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C,CAAC;YAC5E,CAAC;YACD,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS;gBACjC,KAAK,CAAC,IAAI,CAAC,qBAAqB,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;YACrE,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;gBACrB,KAAK,CAAC,IAAI,CACR,oBAAoB,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,CAC9J,CAAC;YACJ,CAAC;YACD,IAAI,IAAI,CAAC,QAAQ;gBAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC7D,CAAC;QACD,IAAI,MAAM,CAAC,gBAAgB;YAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,qBAAqB,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC5F,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -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;
|
|
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"}
|
|
@@ -31,7 +31,7 @@ const FailingVerdictSchema = z
|
|
|
31
31
|
'before_feature_support',
|
|
32
32
|
'no_feature_support',
|
|
33
33
|
])
|
|
34
|
-
.describe('Why this target failed. From a key: partial means the implementation does not meet the mandatory specified behavior, prefixed means it only ships under a vendor prefix or a different name, flagged means it only works behind a preference or runtime flag, removed means it shipped and was later removed before
|
|
34
|
+
.describe('Why this target failed. From a key: partial means the implementation does not meet the mandatory specified behavior, prefixed means it only ships under a vendor prefix or a different name, flagged means it only works behind a preference or runtime flag, removed means it shipped and was later removed, at or before the release the target failed at, unsupported means it was never added, preview_only means it only works in a preview channel. From web-features’ feature-level support: before_feature_support means the target predates the release web-features lists for the feature, no_feature_support means web-features lists no release of this core browser for the feature — which also covers a feature it lists no release for at all, such as a discontinued one (mutation-events) that older releases shipped; call again with one of compat_keys for a key-level verdict on such a target.');
|
|
35
35
|
const FailingTargetSchema = z.object({
|
|
36
36
|
agent: z.string().describe('browserslist agent id the target came from.'),
|
|
37
37
|
version_token: z.string().describe('Version token browserslist produced for that agent.'),
|
|
@@ -39,7 +39,7 @@ const FailingTargetSchema = z.object({
|
|
|
39
39
|
bcd_version: z
|
|
40
40
|
.string()
|
|
41
41
|
.nullable()
|
|
42
|
-
.describe('browser-compat-data release the token
|
|
42
|
+
.describe('browser-compat-data release the failure was found at: the release the token maps to, or for a grouped token such as ios_saf 15.0-15.1 the oldest failing release it spans. null when that release predates them all.'),
|
|
43
43
|
verdict: FailingVerdictSchema,
|
|
44
44
|
...STATEMENT_FIELDS,
|
|
45
45
|
});
|
|
@@ -59,14 +59,14 @@ const ResolvedTargetSchema = z.object({
|
|
|
59
59
|
bcd_version: z
|
|
60
60
|
.string()
|
|
61
61
|
.nullable()
|
|
62
|
-
.describe('browser-compat-data release the token
|
|
62
|
+
.describe('browser-compat-data release the token maps to, or null when it predates them all. A grouped token such as ios_saf 15.0-15.1 maps at its lower endpoint and is judged at every release from this one through its upper endpoint’s.'),
|
|
63
63
|
bcd_release_index: z
|
|
64
64
|
.number()
|
|
65
65
|
.int()
|
|
66
|
-
.describe('
|
|
66
|
+
.describe('Ordinal of the bcd_version release; -1 when the token predates every release.'),
|
|
67
67
|
evaluated: z
|
|
68
68
|
.boolean()
|
|
69
|
-
.describe('True when every compared feature has compatibility data for this target. False when at least one compared feature
|
|
69
|
+
.describe('True when every compared feature has compatibility data for this target. False when the data of at least one compared feature does not establish support for it either way, or when no feature in the call was comparable — the target then also appears in unchecked_targets. Mapping onto a release is not evaluation.'),
|
|
70
70
|
});
|
|
71
71
|
const UncheckedTargetSchema = z.object({
|
|
72
72
|
agent: z.string().describe('browserslist agent id.'),
|
|
@@ -79,7 +79,7 @@ const UncheckedTargetSchema = z.object({
|
|
|
79
79
|
'no_feature_level_data',
|
|
80
80
|
'no_comparable_feature',
|
|
81
81
|
])
|
|
82
|
-
.describe('no_bcd_browser when the agent has no browser-compat-data counterpart, unknown_version when the token maps to no release, no_bcd_data when a compared key records nothing for that browser, no_feature_level_data when a feature judged on web-features’ feature-level support has no answer for the target — a browser outside the Baseline core set, or a release before a ≤ bound — so call again with one of its compat_keys for a key-level answer, no_comparable_feature when every entry in features was a miss or ambiguous so nothing was compared. In the top-level list a target unchecked by several compared features takes the reason of the first of them.'),
|
|
82
|
+
.describe('no_bcd_browser when the agent has no browser-compat-data counterpart, unknown_version when the token maps to no release, no_bcd_data when a compared key’s data does not establish support either way for the target — the key records nothing for that browser, or the target sits before a ≤ bound — no_feature_level_data when a feature judged on web-features’ feature-level support has no answer for the target — a browser outside the Baseline core set, or a release before a ≤ bound — so call again with one of its compat_keys for a key-level answer, no_comparable_feature when every entry in features was a miss or ambiguous so nothing was compared. In the top-level list a target unchecked by several compared features takes the reason of the first of them.'),
|
|
83
83
|
usage_percent: z.number().describe('Percentage points of global traffic this target covers.'),
|
|
84
84
|
});
|
|
85
85
|
const ResultSchema = z.object({
|
|
@@ -139,14 +139,27 @@ const ResultSchema = z.object({
|
|
|
139
139
|
.describe('Every browser-compat-data key the id owns. Present with compat_keys.'),
|
|
140
140
|
guidance: z.string().optional().describe('What to do next on a miss or an ambiguous verdict.'),
|
|
141
141
|
});
|
|
142
|
-
/**
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
/**
|
|
143
|
+
* Judge a target at every release it spans, oldest first. The oldest failing
|
|
144
|
+
* release decides, and the failure names that release; with no failure, a
|
|
145
|
+
* release the source has no answer for leaves the target unknown, so a grouped
|
|
146
|
+
* token never clears on part of its range.
|
|
147
|
+
*/
|
|
148
|
+
function judgeSpan(target, judge) {
|
|
149
|
+
let unknown = false;
|
|
150
|
+
for (const release of target.span) {
|
|
151
|
+
const judgement = judge(target.bcd_browser, release.index);
|
|
152
|
+
if (judgement.verdict === 'unknown')
|
|
153
|
+
unknown = true;
|
|
154
|
+
else if (judgement.verdict !== 'supported')
|
|
155
|
+
return { ...judgement, release };
|
|
156
|
+
}
|
|
157
|
+
return { verdict: unknown ? 'unknown' : 'supported' };
|
|
158
|
+
}
|
|
146
159
|
/** The browserslist token a target row came from. */
|
|
147
160
|
const tokenOf = (target) => `${target.agent} ${target.version_token}`.trim();
|
|
148
161
|
export const browsercompatCompareSupport = tool('browsercompat_compare_support', {
|
|
149
|
-
description: 'Compute whether a set of web features clears an explicit browserslist target query. Compares up to 20 features per call; up to 100 may be sent, and entries past the 20th come back unevaluated in omitted_features for the next call. Every call evaluates the whole query: each feature gets a verdict, the count of failing targets, those targets grouped into runs of consecutive query targets per browser in failing_ranges, and its own evaluated and unevaluated target counts with the percentage points of global traffic each covers. The target rows behind those numbers — which release each target maps to, which targets were not evaluated and why, and the failing and unevaluated targets of each feature, a failing row carrying the prefix, alternative name, or flag behind its verdict — cover
|
|
162
|
+
description: 'Compute whether a set of web features clears an explicit browserslist target query. Compares up to 20 features per call; up to 100 may be sent, and entries past the 20th come back unevaluated in omitted_features for the next call. Every call evaluates the whole query: each feature gets a verdict, the count of failing targets, those targets grouped into runs of consecutive query targets per browser in failing_ranges, and its own evaluated and unevaluated target counts with the percentage points of global traffic each covers. The target rows behind those numbers — which release each target maps to, which targets were not evaluated and why, and the failing and unevaluated targets of each feature, a failing row carrying the prefix, alternative name, or flag behind its verdict — cover target_limit query targets per call, 10 by default and up to 1000; page through them with target_offset, and the verdicts, coverage, and totals stay identical on every page. A target counts as evaluated only where compatibility data was read for it, so a feature clears only when every target in the query was evaluated and supports it, and is inconclusive otherwise — a query that includes a browser with no compatibility data, as "defaults" does, never clears. A BCD key is judged on its own per-browser support. A web-features id spanning several keys, such as grid, is judged on the release web-features lists for the feature as a whole in each Baseline core browser, as support_source says; its other browsers are not evaluated.',
|
|
150
163
|
annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false },
|
|
151
164
|
input: z.object({
|
|
152
165
|
features: z
|
|
@@ -173,9 +186,9 @@ export const browsercompatCompareSupport = tool('browsercompat_compare_support',
|
|
|
173
186
|
.number()
|
|
174
187
|
.int()
|
|
175
188
|
.min(1)
|
|
176
|
-
.max(
|
|
177
|
-
.default(
|
|
178
|
-
.describe('How many query targets this page covers,
|
|
189
|
+
.max(1000)
|
|
190
|
+
.default(10)
|
|
191
|
+
.describe('How many query targets this page covers, 1 to 1000; the page holds that many, fewer only on the last page. It bounds every list of target rows in the response and never the evaluation: verdicts, coverage, and totals always describe the whole query.'),
|
|
179
192
|
}),
|
|
180
193
|
output: z.object({
|
|
181
194
|
query_echo: z.string().describe('The targets query as the server parsed it.'),
|
|
@@ -222,9 +235,7 @@ export const browsercompatCompareSupport = tool('browsercompat_compare_support',
|
|
|
222
235
|
data_version: DataVersionSchema.describe('Vintage of each bundled dataset behind this answer.'),
|
|
223
236
|
totalCount: z.number().describe('Number of targets the query resolved to, across every page.'),
|
|
224
237
|
shown: z.number().describe('Number of query targets this page covers.'),
|
|
225
|
-
cap: z
|
|
226
|
-
.number()
|
|
227
|
-
.describe('The page size applied: target_limit, or 10 when target_limit was above 10.'),
|
|
238
|
+
cap: z.number().describe('The page size requested in target_limit.'),
|
|
228
239
|
truncated: z.boolean().describe('True when more query targets remain past this page.'),
|
|
229
240
|
nextOffset: z
|
|
230
241
|
.number()
|
|
@@ -304,8 +315,7 @@ export const browsercompatCompareSupport = tool('browsercompat_compare_support',
|
|
|
304
315
|
const queryTargets = tokens
|
|
305
316
|
.map((token) => byToken.get(token))
|
|
306
317
|
.filter((target) => target !== undefined);
|
|
307
|
-
const
|
|
308
|
-
const onPage = new Set(tokens.slice(input.target_offset, input.target_offset + pageSize));
|
|
318
|
+
const onPage = new Set(tokens.slice(input.target_offset, input.target_offset + input.target_limit));
|
|
309
319
|
const isOnPage = (target) => onPage.has(tokenOf(target));
|
|
310
320
|
const usage = new Map();
|
|
311
321
|
/** A mapped target a comparison could not evaluate, reported the way an unmapped one is. */
|
|
@@ -324,11 +334,12 @@ export const browsercompatCompareSupport = tool('browsercompat_compare_support',
|
|
|
324
334
|
};
|
|
325
335
|
};
|
|
326
336
|
/**
|
|
327
|
-
* Judge every query target with one support source
|
|
328
|
-
* no answer for is unchecked with that
|
|
329
|
-
* Failing targets are also grouped into
|
|
330
|
-
*
|
|
331
|
-
*
|
|
337
|
+
* Judge every query target with one support source, at every release the
|
|
338
|
+
* target spans. A target the source has no answer for is unchecked with that
|
|
339
|
+
* source's reason, never a failure. Failing targets are also grouped into
|
|
340
|
+
* runs as they arrive in query order: a run continues only across
|
|
341
|
+
* consecutive targets of one agent failing with one verdict, and any target
|
|
342
|
+
* that passed or went unevaluated ends it.
|
|
332
343
|
*/
|
|
333
344
|
const compare = (judge, unknownReason) => {
|
|
334
345
|
const failing = [];
|
|
@@ -342,22 +353,23 @@ export const browsercompatCompareSupport = tool('browsercompat_compare_support',
|
|
|
342
353
|
run = undefined;
|
|
343
354
|
continue;
|
|
344
355
|
}
|
|
345
|
-
const
|
|
346
|
-
if (verdict === 'unknown') {
|
|
356
|
+
const judgement = judgeSpan(target, judge);
|
|
357
|
+
if (judgement.verdict === 'unknown') {
|
|
347
358
|
notEvaluated.push(uncheckedRow(target, unknownReason));
|
|
348
359
|
run = undefined;
|
|
349
360
|
continue;
|
|
350
361
|
}
|
|
351
362
|
evaluatedTokens.push(tokenOf(target));
|
|
352
|
-
if (verdict === 'supported') {
|
|
363
|
+
if (judgement.verdict === 'supported') {
|
|
353
364
|
run = undefined;
|
|
354
365
|
continue;
|
|
355
366
|
}
|
|
367
|
+
const { verdict, statement, release } = judgement;
|
|
356
368
|
failing.push({
|
|
357
369
|
agent: target.agent,
|
|
358
370
|
version_token: target.version_token,
|
|
359
371
|
bcd_browser: target.bcd_browser,
|
|
360
|
-
bcd_version:
|
|
372
|
+
bcd_version: release.version,
|
|
361
373
|
verdict,
|
|
362
374
|
...statement,
|
|
363
375
|
});
|
|
@@ -425,8 +437,8 @@ export const browsercompatCompareSupport = tool('browsercompat_compare_support',
|
|
|
425
437
|
source: 'bcd_key',
|
|
426
438
|
cacheKey: `${key}`,
|
|
427
439
|
unknownReason: 'no_bcd_data',
|
|
428
|
-
judge: (
|
|
429
|
-
const { verdict, detail } = bcd.supportAt(leaf,
|
|
440
|
+
judge: (browser, releaseIndex) => {
|
|
441
|
+
const { verdict, detail } = bcd.supportAt(leaf, browser, releaseIndex);
|
|
430
442
|
if (verdict === 'supported' || verdict === 'unknown')
|
|
431
443
|
return { verdict };
|
|
432
444
|
const { notes: _notes, impl_url: _implUrl, ...statement } = detail;
|
|
@@ -438,8 +450,8 @@ export const browsercompatCompareSupport = tool('browsercompat_compare_support',
|
|
|
438
450
|
source: 'web_features_feature',
|
|
439
451
|
cacheKey: `${featureId}`,
|
|
440
452
|
unknownReason: 'no_feature_level_data',
|
|
441
|
-
judge: (
|
|
442
|
-
verdict: bcd.featureSupportAt(featureLevel, baseline.coreBrowserIds,
|
|
453
|
+
judge: (browser, releaseIndex) => ({
|
|
454
|
+
verdict: bcd.featureSupportAt(featureLevel, baseline.coreBrowserIds, browser, releaseIndex),
|
|
443
455
|
}),
|
|
444
456
|
}
|
|
445
457
|
: undefined;
|
|
@@ -515,7 +527,7 @@ export const browsercompatCompareSupport = tool('browsercompat_compare_support',
|
|
|
515
527
|
const shown = onPage.size;
|
|
516
528
|
const nextOffset = input.target_offset + shown;
|
|
517
529
|
const truncated = nextOffset < tokens.length;
|
|
518
|
-
ctx.enrich({ totalCount: tokens.length, shown, cap:
|
|
530
|
+
ctx.enrich({ totalCount: tokens.length, shown, cap: input.target_limit, truncated });
|
|
519
531
|
if (truncated)
|
|
520
532
|
ctx.enrich({ nextOffset });
|
|
521
533
|
if (shown === 0) {
|
|
@@ -546,9 +558,10 @@ export const browsercompatCompareSupport = tool('browsercompat_compare_support',
|
|
|
546
558
|
return {
|
|
547
559
|
query_echo: input.targets.trim(),
|
|
548
560
|
comparable_features: comparableFeatures,
|
|
549
|
-
targets_resolved: resolved
|
|
550
|
-
|
|
551
|
-
|
|
561
|
+
targets_resolved: resolved.filter(isOnPage).map(({ span: _span, ...target }) => ({
|
|
562
|
+
...target,
|
|
563
|
+
evaluated: !uncheckedTokens.has(tokenOf(target)),
|
|
564
|
+
})),
|
|
552
565
|
targets_resolved_total: resolved.length,
|
|
553
566
|
evaluated_targets_total: evaluatedTokens.length,
|
|
554
567
|
unchecked_targets: uncheckedTargets.filter(isOnPage),
|