@fusion.dev/helix-diagnostics 0.187.0 → 0.188.0

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/README.md CHANGED
@@ -174,6 +174,23 @@ runs in, or the file `--config <path>` names, and refuses a setting that names
174
174
  nothing, as the page does. It exits 1 on a finding at `error`, and 3 where the
175
175
  project installs no Helix lint data. `--json` prints the run.
176
176
 
177
+ ## Run it on a page, from the command line
178
+
179
+ `helix diagnostics --once <url>` opens the page headless, runs this package's
180
+ diagnostics in it once the page holds still, prints each finding and what the
181
+ library logged as it ran, and exits. Nothing is added to your app: the
182
+ command serves the installed package on the page's own origin. Repeat
183
+ `--once` for each page.
184
+
185
+ ```sh
186
+ npx helix diagnostics --once http://localhost:5173/ --once http://localhost:5173/settings
187
+ ```
188
+
189
+ It needs `@fusion.dev/helix-cli` and Playwright installed beside this package.
190
+ It exits 1 on a finding at `error`, and 3 where a page could not be opened.
191
+ `--out` writes the runs to the CI file, and `--json` prints one document a
192
+ page. An agent gets the same runs from the MCP tool `helix_check_page`.
193
+
177
194
  ## Run it once, directly
178
195
 
179
196
  `diagnose()` is one run, which `initDiagnostics()` makes for you. Call it
package/dist/analyze.d.ts CHANGED
@@ -54,8 +54,8 @@ export declare const analyze: (rules: Located[], tags: Map<string, Published>, f
54
54
  * it happens, with both class objects in hand, which is a position nothing
55
55
  * later can improve on: by the time a page can be scanned, the losing class is
56
56
  * unreachable and all that is left is an identity mismatch to infer from. So
57
- * this reads `duplicateRegistrations()` rather than re-deriving it, which is
58
- * `AGENTS.md`'s rule about where a fix lives applied to a detector.
57
+ * this reads `duplicateRegistrations()` and does not re-derive it, so the fact
58
+ * comes from where the fault starts.
59
59
  *
60
60
  * The identity check stays as a fallback, for the copy that never went through
61
61
  * Helix's own decorator: a fork, a hand-written `customElements.define`, or a
package/dist/collect.d.ts CHANGED
@@ -36,8 +36,8 @@ export interface Located {
36
36
  * because its class sets `styles = [HelixIconButton.styles, styles].flat()`:
37
37
  * it borrows another component's stylesheet outright. That is not inheritance,
38
38
  * not a mixin and not a part, so no manifest field describes it and `cem` records
39
- * nothing. Two correct declarations in this repository's own `landing.module.css`
40
- * were called dead on the strength of that silence.
39
+ * nothing. Two correct declarations in a site's stylesheet were called dead on
40
+ * the strength of that silence.
41
41
  *
42
42
  * A `var(--x)` inside the element's own shadow styles is direct evidence that
43
43
  * the element reads the property, which is a stronger claim than the manifest
package/dist/version.d.ts CHANGED
@@ -6,4 +6,4 @@
6
6
  * release, so the two never disagree; a spec beside this holds them to it.
7
7
  * Nothing else in the running code knows which release it is.
8
8
  */
9
- export declare const VERSION = "0.187.0";
9
+ export declare const VERSION = "0.188.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.187.0';
1
+ export const VERSION = '0.188.0';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-diagnostics",
3
3
  "description": "Finds the Helix mistakes that are valid CSS: dead parts, misnamed hooks, two copies of the library.",
4
- "version": "0.187.0",
4
+ "version": "0.188.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "bugs": "https://github.com/project-fusion/fusion/issues",
35
35
  "devDependencies": {
36
- "@fusion.dev/helix-testing": "0.187.0",
36
+ "@fusion.dev/helix-testing": "0.188.0",
37
37
  "@types/bun": "^1.4.2"
38
38
  },
39
39
  "homepage": "https://fusion.dev",