@shivaedev/quality 0.61.1 → 0.62.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +25 -5
  3. package/dist/adapters/agentLinkFindings.d.ts +7 -0
  4. package/dist/adapters/agentLinkFindings.d.ts.map +1 -0
  5. package/dist/adapters/agentLinkFindings.js +18 -0
  6. package/dist/adapters/agentLinkFindings.js.map +1 -0
  7. package/dist/adapters/asciiFindings.d.ts +10 -0
  8. package/dist/adapters/asciiFindings.d.ts.map +1 -0
  9. package/dist/adapters/asciiFindings.js +31 -0
  10. package/dist/adapters/asciiFindings.js.map +1 -0
  11. package/dist/adapters/catalogEntries.d.ts +14 -0
  12. package/dist/adapters/catalogEntries.d.ts.map +1 -0
  13. package/dist/adapters/catalogEntries.js +58 -0
  14. package/dist/adapters/catalogEntries.js.map +1 -0
  15. package/dist/adapters/catalogWorkspace.d.ts +7 -0
  16. package/dist/adapters/catalogWorkspace.d.ts.map +1 -0
  17. package/dist/adapters/catalogWorkspace.js +18 -0
  18. package/dist/adapters/catalogWorkspace.js.map +1 -0
  19. package/dist/adapters/repositoryPathFindings.d.ts +4 -0
  20. package/dist/adapters/repositoryPathFindings.d.ts.map +1 -0
  21. package/dist/adapters/repositoryPathFindings.js +60 -0
  22. package/dist/adapters/repositoryPathFindings.js.map +1 -0
  23. package/dist/adapters/serviceFolderFindings.d.ts +3 -0
  24. package/dist/adapters/serviceFolderFindings.d.ts.map +1 -0
  25. package/dist/adapters/serviceFolderFindings.js +65 -0
  26. package/dist/adapters/serviceFolderFindings.js.map +1 -0
  27. package/dist/inventory/walk.js +1 -1
  28. package/dist/inventory/walk.js.map +1 -1
  29. package/dist/rules/builtIn.d.ts +3 -1
  30. package/dist/rules/builtIn.d.ts.map +1 -1
  31. package/dist/rules/builtIn.js +10 -0
  32. package/dist/rules/builtIn.js.map +1 -1
  33. package/dist/rules/docs/agentLinks.d.ts +2 -0
  34. package/dist/rules/docs/agentLinks.d.ts.map +1 -0
  35. package/dist/rules/docs/agentLinks.js +8 -0
  36. package/dist/rules/docs/agentLinks.js.map +1 -0
  37. package/dist/rules/docs/repositoryPaths.d.ts +2 -0
  38. package/dist/rules/docs/repositoryPaths.d.ts.map +1 -0
  39. package/dist/rules/docs/repositoryPaths.js +8 -0
  40. package/dist/rules/docs/repositoryPaths.js.map +1 -0
  41. package/dist/rules/effect/serviceFolders.d.ts +2 -0
  42. package/dist/rules/effect/serviceFolders.d.ts.map +1 -0
  43. package/dist/rules/effect/serviceFolders.js +9 -0
  44. package/dist/rules/effect/serviceFolders.js.map +1 -0
  45. package/dist/rules/files/ascii.d.ts +4 -0
  46. package/dist/rules/files/ascii.d.ts.map +1 -0
  47. package/dist/rules/files/ascii.js +13 -0
  48. package/dist/rules/files/ascii.js.map +1 -0
  49. package/dist/rules/files/folderNames.d.ts.map +1 -1
  50. package/dist/rules/files/folderNames.js +7 -4
  51. package/dist/rules/files/folderNames.js.map +1 -1
  52. package/dist/rules/manifestsDependencyPins.d.ts +2 -0
  53. package/dist/rules/manifestsDependencyPins.d.ts.map +1 -0
  54. package/dist/rules/manifestsDependencyPins.js +50 -0
  55. package/dist/rules/manifestsDependencyPins.js.map +1 -0
  56. package/dist/rules/manifestsExportsShape.d.ts.map +1 -1
  57. package/dist/rules/manifestsExportsShape.js +20 -11
  58. package/dist/rules/manifestsExportsShape.js.map +1 -1
  59. package/dist/testing/adapters/hookRepository.d.ts.map +1 -1
  60. package/dist/testing/adapters/hookRepository.js +1 -1
  61. package/dist/testing/adapters/hookRepository.js.map +1 -1
  62. package/package.json +3 -3
  63. package/src/adapters/agentLinkFindings.ts +23 -0
  64. package/src/adapters/asciiFindings.ts +39 -0
  65. package/src/adapters/catalogEntries.ts +81 -0
  66. package/src/adapters/catalogWorkspace.ts +19 -0
  67. package/src/adapters/repositoryPathFindings.ts +68 -0
  68. package/src/adapters/serviceFolderFindings.ts +75 -0
  69. package/src/inventory/walk.ts +1 -1
  70. package/src/rules/builtIn.ts +10 -0
  71. package/src/rules/docs/agentLinks.ts +8 -0
  72. package/src/rules/docs/repositoryPaths.ts +9 -0
  73. package/src/rules/effect/serviceFolders.ts +10 -0
  74. package/src/rules/files/ascii.ts +14 -0
  75. package/src/rules/files/folderNames.ts +7 -4
  76. package/src/rules/manifestsDependencyPins.ts +66 -0
  77. package/src/rules/manifestsExportsShape.ts +20 -11
  78. package/src/testing/adapters/hookRepository.ts +5 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.62.1 - 2026-11-04
4
+
5
+ ### Fixed
6
+
7
+ - Accept source-only file-preserving wildcard exports for packages with `"private": true`. Published packages still require source, types and dist mappings, and every package must keep `#test/*` rooted at `./src/test-support/*`.
8
+
9
+ ## 0.62.0 - 2026-11-04
10
+
11
+ ### Added
12
+
13
+ - Require exact external dependency pins and pnpm catalog references when catalogs are declared, including exact catalog entries.
14
+ - Check repository paths in Markdown backticks and require CLAUDE.md links to the sibling AGENTS.md.
15
+ - Check services/<name>/service.ts for a single exported defineService declaration.
16
+ - Check selected text files for non-ASCII bytes with files/ascii options.files.
17
+
18
+ ### Fixed
19
+
20
+ - Accept nested package folders when their path below the workspace package root joins with hyphens to the unscoped package name, such as `packages/glass/client` for `@antumbra/glass-client`. Folder-name findings explain both accepted forms.
21
+
3
22
  ## 0.61.1 - 2026-11-04
4
23
 
5
24
  ### Changed
package/README.md CHANGED
@@ -68,6 +68,26 @@ Seed a `quality.config.ts` that registers the custom rule to test the whole gate
68
68
 
69
69
  For an existing kit, compose the lower-level helpers through its local test-support facade: `seedTree` and `removeSeededTrees` from `@shivaedev/quality/testing/adapters/tree.ts` manage fixture files; `scanned` and `findingsIn` from `@shivaedev/quality/testing/adapters/imports.ts` collect inventory and run a configured rule; `runQuality` from `@shivaedev/quality/testing/adapters/cli.ts` runs commands in process. Yield `runQuality(root, "lint")` as an Effect in the kit so it uses the story's controlled clock. These helpers use the same engine as the rule story kit.
70
70
 
71
+ ### Dependency pins and repository hygiene
72
+
73
+ `manifests/dependency-pins` checks dependencies, development dependencies, optional dependencies and peers in every inventoried package manifest. External dependencies use exact versions, including npm aliases. Workspace, file and link dependencies stay local. Quality finds the nearest `pnpm-workspace.yaml` at or above its config folder. When that workspace declares a default or named catalog, external dependencies use `catalog:` or `catalog:<name>`, and the referenced catalog must contain that dependency. Catalog entries themselves use exact versions. Write catalogs as indented block mappings; inline mappings and YAML aliases receive findings instead of escaping the check.
74
+
75
+ `files/ascii` is opt-in by file selection. It checks the bytes of selected text files, including a UTF-8 BOM, and reports each line containing non-ASCII bytes. Other files are left alone. Supply repository-relative glob patterns:
76
+
77
+ ```ts
78
+ export default defineConfig({
79
+ rules: {
80
+ "files/ascii": { options: { files: ["docs/**/*.txt"] } },
81
+ },
82
+ });
83
+ ```
84
+
85
+ `docs/repository-paths` checks paths in backticks in Markdown prose. Explicit `./` and `../` paths resolve from the document; `./` may also name a path from the repository root, as in a command run there. Other paths with a file extension or trailing slash are checked when their first folder belongs to the repository inventory; they may resolve from the repository root or the document’s folder. Prefix an extensionless repository file with `./` or `../` to distinguish it from a rule id or other identifier. Line suffixes and heading fragments are removed before checking existence. Commands, URLs, package specifiers, installed `node_modules` paths, globs, placeholders, fenced examples and released changelogs are left alone. Use a placeholder such as `<app>/src/main.ts` when describing a consumer's example rather than a path in this repository.
86
+
87
+ `docs/agent-links` requires each inventoried `CLAUDE.md`, including dangling links, to be a symlink to an existing `AGENTS.md` file beside it. Keep the instructions in that sibling file.
88
+
89
+ `effect/service-folders` checks folders directly beneath a `services/` grouping. Each has a `service.ts` with exactly one named exported const initialized by a direct `defineService` call. Type exports may stay; other runtime exports belong in focused files. The existing `effect/service-definition-assembly` check enforces the operation inventory. Files named `service.ts` outside this grouping keep their existing rules.
90
+
71
91
  ### Folders that are not Effect code
72
92
 
73
93
  Declare deliberately non-Effect subsystems, such as a game engine or simulation, once in `quality.config.ts`:
@@ -90,7 +110,7 @@ The declaration describes code, not imports: an Effect module importing a non-Ef
90
110
 
91
111
  It also reports synchronous calls imported from `node:fs` and `node:child_process` (including aliases, namespace imports and string member keys), parameters typed as Promise or callbacks returning Promise, and each call to a helper whose body throws, unless the helper is defined in an `adapters/` folder. Calls to adapters that bridge throwing third-party control flow, such as a router’s `redirect` or `notFound`, need no call-site exception. A guard called 31 times contributes 31 call findings, in addition to its throw statement. `Effect.sync` reports a throwing body: explicit throws, throwing helpers, synchronous Node IO, `JSON.parse`, URI encoding/decoding, `BigInt` and synchronous Schema decoders/encoders. Use `FileSystem` and `ChildProcessSpawner` for IO, and `Effect.try` with a tagged error for fallible synchronous work.
92
112
 
93
- `Effect.run*` references in core are reported even without Clock, Config or Random. Yield the computation so it uses the caller's runtime. Runners are accepted in `cli.ts`, `main.ts(x)`, `entry.ts(x)`, `*-cli.ts`, tool configs and tests, modules that call `runMain`, and modules with the `fileURLToPath(import.meta.url) === process.argv[1]` entry guard. Browser bootstraps use the `main` or `entry` filename convention; the starter uses `src/client/main.tsx`. These entry-point conventions accept runners only; the other boundary checks still apply.
113
+ `Effect.run*` references in core are reported even without Clock, Config or Random. Yield the computation so it uses the caller's runtime. Runners are accepted in `cli.ts`, `main.ts(x)`, `entry.ts(x)`, `*-cli.ts`, tool configs and tests, modules that call `runMain`, and modules with the `fileURLToPath(import.meta.url) === process.argv[1]` entry guard. Browser bootstraps use the `main` or `entry` filename convention; the starter uses `examples/starter/src/client/main.tsx`. These entry-point conventions accept runners only; the other boundary checks still apply.
94
114
 
95
115
  Within Effect code, folders named `adapters/` or `test-support/`, at any depth, are exempt from this boundary rule. An `adapters/` folder bridges an outside library and hands the rest of the application Effect values. The name is fixed by convention, with no config or copied Biome plugin globs. Adapter code still follows `effect/service-parameters` and the ambient time, randomness, console and environment bans.
96
116
 
@@ -104,7 +124,7 @@ When an upgrade expands these checks, inspect the new findings, repair the small
104
124
 
105
125
  ### Package service ids
106
126
 
107
- `effect/service-ids` checks literal ids passed to `Context.Service`, `Context.Reference`, `defineService` and RPC middleware `Service` or `Tag` constructors in workspace packages under `packages/`. Each id must start with the owning package manifest's `name`, including a trailing slash. The workspace declarations identify package folders, and the deepest matching folder owns a source file. For example, `packages/group/domain/package.json` named `@antumbra/domain` uses `@antumbra/domain/Store`. Prefix a reported id with its owning package and update any references to that id.
127
+ `effect/service-ids` checks literal ids passed to `Context.Service`, `Context.Reference`, `defineService` and RPC middleware `Service` or `Tag` constructors in workspace packages under `packages/`. Each id must start with the owning package manifest's `name`, including a trailing slash. The workspace declarations identify package folders, and the deepest matching folder owns a source file. For example, `packages/<group>/<domain>/package.json` named `@antumbra/domain` uses `@antumbra/domain/Store`. Prefix a reported id with its owning package and update any references to that id.
108
128
 
109
129
  Import and local aliases, string literals and templates without substitutions are checked, including in adapters and tests. Computed ids, files without a named workspace owner and files outside `packages/` are left alone. This rule refuses config exceptions and inline suppressions.
110
130
 
@@ -255,7 +275,7 @@ const uiBoundary = fence("ui-never-imports-server")
255
275
  export default [uiBoundary];
256
276
  ```
257
277
 
258
- This is `packages/ui/quality.fences.config.ts`; paths remain relative to the repository root. Fences supplied through `rules["imports/fences"].options.fences` join the same policy. This adds a fact about the repository's architecture to the shared import check. It does not select a different set of Quality rules. Every file named in either chain must exist in the checked tree; a deleted file stops the run. Use `external()` for external targets. The chains demonstrate hypothetical imports between those files; they need not be actual imports. The illegal chain must cross this fence alone; the legal chain must cross none. `mayNotImport` checks direct imports; `mayNotReach` also follows repository imports transitively; `mayImportOnly(...subjects).of(unit)` permits only named modules or folders of a unit. A source exception such as `.from(folders("packages/ui/src").except(files("packages/ui/src/testClient.ts")))` admits that one file while its siblings remain fenced. Fences count type imports but never hold test files or files under `test-support/`. The default `imports/no-test-code` rule rejects production imports of either, including type imports and re-exports. Move shared code into a production module that tests can import.
278
+ This is `packages/<ui>/quality.fences.config.ts`; paths remain relative to the repository root. Fences supplied through `rules["imports/fences"].options.fences` join the same policy. This adds a fact about the repository's architecture to the shared import check. It does not select a different set of Quality rules. Every file named in either chain must exist in the checked tree; a deleted file stops the run. Use `external()` for external targets. The chains demonstrate hypothetical imports between those files; they need not be actual imports. The illegal chain must cross this fence alone; the legal chain must cross none. `mayNotImport` checks direct imports; `mayNotReach` also follows repository imports transitively; `mayImportOnly(...subjects).of(unit)` permits only named modules or folders of a unit. A source exception such as `.from(folders("packages/ui/src").except(files("packages/ui/src/testClient.ts")))` admits that one file while its siblings remain fenced. Fences count type imports but never hold test files or files under `test-support/`. The default `imports/no-test-code` rule rejects production imports of either, including type imports and re-exports. Move shared code into a production module that tests can import.
259
279
 
260
280
  The import rules resolve every literal specifier with the nearest `tsconfig.json`, or the project it references that includes the file. They preserve the compiler's resolution settings, inherited path aliases and package export conditions, including NodeNext's import and require branches. `imports/resolvable` reports config syntax errors, invalid options and unreadable extended or referenced configs as findings on the config file; repair those before relying on import findings. Without a tsconfig, Quality uses bundler resolution with the `@shivaedev/source` condition. The run stops when the sources hold no module at all. A relative or `#` import of a file that a generator writes before the tests run resolves only inside a folder that `imports/resolvable` lists as `generated`; the folder, or every file an import names in it, must be ignored by git:
261
281
 
@@ -379,13 +399,13 @@ For adoption, run `quality baseline write --rule code/unused --file src/legacy.t
379
399
  - **Documentation:** `docs/references` checks every Markdown file in the sources except `CHANGELOG.md`, whose released history keeps the links of its release. Relative links, reference definitions and `href`/`src` attributes reach an existing file or folder inside the repository, and a heading anchor matches one GitHub forms from the target's headings. A link to the repository's own GitHub tree, named by the root `package.json` `repository` field, is checked like a relative one unless it is pinned to a commit or a release tag. A published workspace package's README is shown on npm without the repository around it, so its links that leave the package use absolute URLs. Imports in TypeScript and JavaScript code blocks, workspace module paths such as `@scope/lib/repository.ts` written as inline code, `` `name` from `module` `` phrases and a package README's API rows resolve through the owning package's `exports` to an exported module, and every named import exists in that module unless it re-exports another. A linked document such as `CLAUDE.md` beside `AGENTS.md` is checked once, through its target. `docs/unversioned-installs` rejects a version after a package name in install commands, in shell code blocks and inline code; the package's own version ranges decide what installs, and a written version goes stale with the next release. A dist-tag such as `latest` passes.
380
400
  - **Hidden casts:** `suppressions/no-double-cast` also checks code outside `adapters/` and `test-support/` for concrete annotations on `JSON.parse` results, unchecked `Reflect.get` bindings, SQL tagged-template row generics, identity overloads whose implementation returns `unknown`, context retagging through `Context.makeUnsafe(...mapUnsafe)`, and writes to readonly properties or native Scope state. Keep untrusted values as `unknown` and decode them with `Schema.decodeUnknownEffect`; decode SQL rows with `SqlSchema` rather than declaring their shape. Give an identity implementation its declared return type, preserve the Context service type, and use native constructors or lifecycle operations instead of changing native fields. Constructor initialization, mutable object writes and extensions that do not replace readonly fields are accepted. These checks read syntax and TypeScript declarations; they do not prove that arbitrary helper functions validate their input.
381
401
  - **Suppressions:** the `suppressions/*` rules reject inline lint and compiler directives, casts through `unknown`, `any` or `never`, Biome settings that weaken a check, recommended Biome rules the preset leaves below `error`, and `ignoreDeprecations`. None of them takes exceptions. A type test (`*.typecheck.test.ts`) may use `@ts-expect-error`; a test that must pass a rejected value at run time calls the API through `Reflect.apply`.
382
- - **Imports:** cycles, unresolvable imports, workspace imports missing from the manifest or an entry point, relative imports that leave their folder (except a module’s client or server `registration.ts` or `registration.tsx` importing its own `./admin/` subtree), production imports of test code, runtime folders and fences, as described above.
402
+ - **Imports:** cycles, unresolvable imports, workspace imports missing from the manifest or an entry point, relative imports that leave their folder (except a module’s client or server `registration.ts` or `registration.tsx` importing its own `<module>/admin/` subtree), production imports of test code, runtime folders and fences, as described above.
383
403
  - **Names and files:** the Biome preset's naming rules and plugins, and the `files/*` rules, which name a file after its main export with its folders as the prefix. `files/named-after-export` accepts a file named after its single exported constant, such as `liveQueryWindow.ts` exporting `const liveQueryWindow`. It keeps the export’s full name while the file name omits words already supplied by any folder above it. In `spaces/client/`, a component exporting `CreateSpace` lives in `Create.tsx`: `spaces/` supplies “Space” even across the intervening `client/` folder. Keep the export named `CreateSpace`; `CreateSpace.tsx` would repeat a folder name. Inside a module’s `client/admin/` or `server/admin/` subtree, file names may repeat words from above `admin/`: `src/modules/inbox/client/admin/inboxRoutes.ts` may export `inboxRoutes`. Names must still match their exports and omit words repeated by folders within the admin subtree. No naming rule renames anything; the author picks the name. A name an outside system owns, such as a query parameter or an environment variable, is written as a quoted key, which the naming rules skip. A `Schema.Struct` field stays camelCase even when quoted and maps to the outside name with `Schema.encodeKeys`. Biome's naming messages print only a pattern: spell acronyms as words (`HttpClient`, `userId`, `parseUrl`) rather than turning off `strictCase` as its hint suggests, give a type no `I` prefix, and name a type parameter `T`, `T` plus a PascalCase name (`TItem`), or Effect's `A`, `E` and `R`. No rule checks these, so review does: a boolean reads as a question (`isOpen`, `canRetry`) unless the DOM or React names it (`open`, `disabled`); a schema shares its name with its type (`type Item = typeof Item.Type`); an unused parameter is removed rather than renamed with the `_` prefix TypeScript accepts. The naming rules take repository facts: `toolOwned` lists `.gitignore` patterns whose names a tool fixes, and a configured list extends the rule's defaults, so list only repository-specific additions; `content` lists snake_case content folders and files; `tests/follow` and `tests/colocated` take `suites` for test folders with their own layout, such as a Playwright suite.
384
404
  - **Change keys:** `boundaries/imported-change-keys` reports literal collection and bucket names in Reactivity invalidations and mutations, SQL `invalidateOnCommit`, and the `changes` key encoders. Import the owning declaration and use its name, list, item or bucket key. Literal record IDs and bucket values are accepted, as are names at their collection declaration.
385
405
  - **SQL transactions:** `effect/sql-transact` reports native `sql.withTransaction` calls around repository writes, `transact` or `invalidateOnCommit`. Begin the outer transaction with `transact(effect, { onSqlError })` so changed keys follow its commit. The rule resolves native SQL and repository declarations and follows direct calls, pipes, local aliases and source helpers. Native read-only and raw SQL transactions and unrelated transaction methods remain supported.
386
406
  - **React:** `react/jsx-conditionals` reports `&&` and ternaries in the JSX children a component returns, including nested decisions and returned `.map` items. Decisions in a `const` above the return, JSX built inside library callbacks and conditional attributes are accepted. A ternary with two plain string or number literal branches, such as `{on ? "On" : "Off"}`, is accepted; branches that select JSX, components or computed values still need a decision before the JSX. This rule owns the check, so the shared Biome preset leaves `noLeakedRender` off.
387
407
  - **Tests:** `tests/follow` and `tests/colocated` keep a test beside the code it covers, named `<file>[.<modifier>].test.ts` or `<behaviour>[.<modifier>].spec.ts` with at most one modifier of `dom`, `slow`, `typecheck` and `unit`; a unit test runs without the DOM, so `.unit.dom` is rejected. `tests/colocated` always treats `__tests__/` as a test folder. It treats `test/`, `tests/` and `spec/` as test folders only when their directly contained checked files are all tests or test support; a product folder with source beside its specs is an ordinary source folder. Declared `suites` keep their own layout. Shared test support belongs in `test-support/`, the sanctioned test-only folder. A test covering a whole module may sit at its root or directly beside its folder. The story rules above keep setup in the kit.
388
- - **Manifests:** `manifests/valid` decodes every repository `package.json` through one shared Schema before dependent rules run and reports each invalid manifest once with its file path. An unreadable manifest or one removed after discovery becomes a `manifests/valid` finding. Optional lookups still treat `NotFound` as absence. `manifests/sorted` keeps every `package.json` in sort-package-json order, and `manifests/source-first` puts the `@shivaedev/source` or `source` condition first in `exports` and `imports`. `manifests/exports-shape` checks the package root and workspace members. They use one file-preserving TypeScript wildcard: for example, `./*.ts` maps to `./src/*.ts`, `./dist/*.d.ts` and `./dist/*.js` under `@shivaedev/source` (or an application’s own `source`), `types` and `default`. A subtree pattern such as `./server/*.ts` keeps that same subtree in its targets. An optional root entry and exact-path non-code assets such as JSON presets and `./package.json` are allowed. Every module remains importable; `null` export entries fail with a request to remove the block. A package without modules, such as a dependency shell, exports only exact assets and needs no wildcard. Import each module at its path under `src/`; named aliases, flattened paths, per-file module lists and additional wildcards fail. When declared, the standard imports must preserve their roots: `#*.ts` maps directly to `./src/*.ts` or uses `@shivaedev/source` (or an application’s own `source`) `./src/*.ts`, types `./dist/*.d.ts` and default `./dist/*.js`; `#test/*` maps to `./src/test-support/*`. Include subfolders in specifiers, such as `#server/module.ts`. Other aliases are allowed. `manifests/application` keeps an application on its entry points, as described above.
408
+ - **Manifests:** `manifests/valid` decodes every repository `package.json` through one shared Schema before dependent rules run and reports each invalid manifest once with its file path. An unreadable manifest or one removed after discovery becomes a `manifests/valid` finding. Optional lookups still treat `NotFound` as absence. `manifests/sorted` keeps every `package.json` in sort-package-json order, and `manifests/source-first` puts the `@shivaedev/source` or `source` condition first in `exports` and `imports`. `manifests/exports-shape` checks the package root and workspace members. They use one file-preserving TypeScript wildcard: for example, `./*.ts` maps to `./src/*.ts`, `./dist/*.d.ts` and `./dist/*.js` under `@shivaedev/source` (or an application’s own `source`), `types` and `default`. Packages with `"private": true` may instead map the wildcard directly to source (`"./*.ts": "./src/*.ts"`); published packages require the full source, types and default conditions. A subtree pattern such as `./server/*.ts` keeps that same subtree in its targets. An optional root entry and exact-path non-code assets such as JSON presets and `./package.json` are allowed. Every module remains importable; `null` export entries fail with a request to remove the block. A package without modules, such as a dependency shell, exports only exact assets and needs no wildcard. Import each module at its path under `src/`; named aliases, flattened paths, per-file module lists and additional wildcards fail. When declared, the standard imports must preserve their roots: `#*.ts` maps directly to `./src/*.ts` or uses `@shivaedev/source` (or an application’s own `source`) `./src/*.ts`, types `./dist/*.d.ts` and default `./dist/*.js`; `#test/*` maps to `./src/test-support/*`. Include subfolders in specifiers, such as `#server/module.ts`. Other aliases are allowed. `manifests/application` keeps an application on its entry points, as described above.
389
409
  - **Biome:** the `biome` rule reports Biome's error findings as `biome/<category>`. A Biome run that fails without an error finding, such as one whose config leaves no file to check, fails lint and fix with Biome's message. The preset leaves out the `.worktrees` folder at the root, so a checkout does not lint its linked worktrees, while a worktree inside it lints all of its own files. The preset's plugins ban ambient time, randomness, `console` and `process.env` in favour of Effect's services.
390
410
 
391
411
  ### Decide before JSX
@@ -0,0 +1,7 @@
1
+ import { Effect, FileSystem } from "effect";
2
+ import type { RuleInputs } from "#rule.ts";
3
+ export declare const agentLinkFindings: (args_0: RuleInputs) => Effect.Effect<{
4
+ file: string;
5
+ message: string;
6
+ }[], import("#inventory/filesystem.ts").FilesystemFailure | import("effect/PlatformError").PlatformError, FileSystem.FileSystem>;
7
+ //# sourceMappingURL=agentLinkFindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentLinkFindings.d.ts","sourceRoot":"","sources":["../../src/adapters/agentLinkFindings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;gIAiB5B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { dirname, join, resolve } from "node:path";
2
+ import { Effect, FileSystem } from "effect";
3
+ import { orWhenAbsent } from "#inventory/filesystem.ts";
4
+ export const agentLinkFindings = Effect.fn("Quality.agentLinkFindings")(function* ({ files, root }) {
5
+ const fs = yield* FileSystem.FileSystem;
6
+ const findings = yield* Effect.forEach(files.filter((file) => file === "CLAUDE.md" || file.endsWith("/CLAUDE.md")), (file) => Effect.gen(function* () {
7
+ const path = join(root, file);
8
+ const info = yield* fs.lstat(path);
9
+ const target = info.type === "SymbolicLink" ? yield* fs.readLink(path) : undefined;
10
+ const agents = join(dirname(path), "AGENTS.md");
11
+ const sibling = yield* orWhenAbsent(agents, fs.stat(agents), undefined);
12
+ return target !== undefined && resolve(dirname(path), target) === agents && sibling?.type === "File"
13
+ ? []
14
+ : [{ file, message: "Replace CLAUDE.md with a symlink to the AGENTS.md file beside it, and keep the instructions in AGENTS.md." }];
15
+ }));
16
+ return findings.flat();
17
+ });
18
+ //# sourceMappingURL=agentLinkFindings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentLinkFindings.js","sourceRoot":"","sources":["../../src/adapters/agentLinkFindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,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AC,IAAI,EAAE,CAAC;AACxB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Effect, FileSystem } from "effect";
2
+ import type { RuleContext } from "#rule.ts";
3
+ export declare const asciiFindings: (args_0: RuleContext<{
4
+ readonly files: readonly string[];
5
+ }>) => Effect.Effect<{
6
+ file: string;
7
+ line: number;
8
+ message: string;
9
+ }[], import("effect/PlatformError").PlatformError, FileSystem.FileSystem>;
10
+ //# sourceMappingURL=asciiFindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asciiFindings.d.ts","sourceRoot":"","sources":["../../src/adapters/asciiFindings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAgB5C,eAAO,MAAM,aAAa;oBAIO,SAAS,MAAM,EAAE;;;;;yEAehD,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { join } from "node:path";
2
+ import { Effect, FileSystem } from "effect";
3
+ import { globMatcher } from "#imports/globMatcher.ts";
4
+ function nonAsciiLines(bytes) {
5
+ const lines = new Set();
6
+ let line = 1;
7
+ for (const byte of bytes) {
8
+ if (byte > 127) {
9
+ lines.add(line);
10
+ }
11
+ if (byte === 10) {
12
+ line += 1;
13
+ }
14
+ }
15
+ return [...lines];
16
+ }
17
+ export const asciiFindings = Effect.fn("Quality.asciiFindings")(function* ({ files, options, root, }) {
18
+ const fs = yield* FileSystem.FileSystem;
19
+ const patterns = options.files.map(globMatcher);
20
+ const selected = files.filter((file) => patterns.some((matches) => matches(file)));
21
+ const findings = yield* Effect.forEach(selected, (file) => Effect.gen(function* () {
22
+ const bytes = yield* fs.readFile(join(root, file));
23
+ return nonAsciiLines(bytes).map((line) => ({
24
+ file,
25
+ line,
26
+ message: "This file is ASCII-only. Replace non-ASCII characters with ASCII text or escapes.",
27
+ }));
28
+ }));
29
+ return findings.flat();
30
+ });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QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CACzD,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACnB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QACnD,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC1C,IAAI;YACJ,IAAI;YACJ,OAAO,EAAE,mFAAmF;SAC5F,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CACF,CAAC;IACF,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;AACxB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { Finding } from "#rule.ts";
2
+ interface CatalogEntry {
3
+ readonly catalog: string;
4
+ readonly line: number;
5
+ readonly name: string;
6
+ readonly version: string;
7
+ }
8
+ export declare function catalogEntries(text: string): {
9
+ entries: CatalogEntry[];
10
+ findings: Finding[];
11
+ present: boolean;
12
+ };
13
+ export {};
14
+ //# sourceMappingURL=catalogEntries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogEntries.d.ts","sourceRoot":"","sources":["../../src/adapters/catalogEntries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,YAAY;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CACzB;AAyDD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM;IAejC,OAAO;IAAgB,QAAQ;IAAiB,OAAO;EAChE"}
@@ -0,0 +1,58 @@
1
+ const HEADING = /^(?:catalog|["']catalog["'])\s*:\s*(?<default>.*)$|^(?:catalogs|["']catalogs["'])\s*:\s*(?<named>.*)$/u;
2
+ const MEMBER = /^(?<indent> +)(?:"(?<double>[^"]+)"|'(?<single>[^']+)'|(?<plain>[^\s:][^:]*)):\s*(?<value>.*)$/u;
3
+ function scalar(text) {
4
+ return text
5
+ .replace(/(?:^|\s+)#.*$/u, "")
6
+ .trim()
7
+ .replace(/^["']|["']$/gu, "");
8
+ }
9
+ function finding(scan, line, message) {
10
+ scan.findings.push({ file: "pnpm-workspace.yaml", line, message });
11
+ }
12
+ function heading(scan, fields, line) {
13
+ scan.active = true;
14
+ scan.present = true;
15
+ scan.named = fields.named !== undefined;
16
+ scan.catalog = "";
17
+ scan.catalogIndent = 0;
18
+ if (scalar(fields.named ?? fields.default ?? "") !== "") {
19
+ finding(scan, line, "Write catalogs as indented block mappings so every dependency pin can be checked.");
20
+ }
21
+ }
22
+ function member(scan, text, line) {
23
+ const fields = MEMBER.exec(text)?.groups;
24
+ const name = fields?.double ?? fields?.single ?? fields?.plain;
25
+ if (fields === undefined || name === undefined) {
26
+ finding(scan, line, "Write this catalog entry as a name and an exact version in an indented block mapping.");
27
+ return;
28
+ }
29
+ const indent = fields.indent?.length ?? 0;
30
+ const value = scalar(fields.value ?? "");
31
+ if (scan.named && (scan.catalogIndent === 0 || indent <= scan.catalogIndent)) {
32
+ scan.catalog = name;
33
+ scan.catalogIndent = indent;
34
+ if (value !== "") {
35
+ finding(scan, line, "Write this named catalog as an indented block mapping of exact dependency pins.");
36
+ }
37
+ return;
38
+ }
39
+ scan.entries.push({ catalog: scan.catalog, line, name: name.trim(), version: value });
40
+ }
41
+ export function catalogEntries(text) {
42
+ const scan = { active: false, catalog: "", catalogIndent: 0, entries: [], findings: [], named: false, present: false };
43
+ for (const [index, line] of text.split("\n").entries()) {
44
+ const fields = HEADING.exec(line)?.groups;
45
+ if (fields !== undefined) {
46
+ heading(scan, fields, index + 1);
47
+ continue;
48
+ }
49
+ if (/^[^\s#]/u.test(line)) {
50
+ scan.active = false;
51
+ }
52
+ if (scan.active && !/^\s*(?:#.*)?$/u.test(line)) {
53
+ member(scan, line, index + 1);
54
+ }
55
+ }
56
+ return { entries: scan.entries, findings: scan.findings, present: scan.present };
57
+ }
58
+ //# sourceMappingURL=catalogEntries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogEntries.js","sourceRoot":"","sources":["../../src/adapters/catalogEntries.ts"],"names":[],"mappings":"AAmBA,MAAM,OAAO,GAAG,wGAAwG,CAAC;AACzH,MAAM,MAAM,GAAG,iGAAiG,CAAC;AAEjH,SAAS,MAAM,CAAC,IAAY;IAC3B,OAAO,IAAI;SACT,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;SAC7B,IAAI,EAAE;SACN,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,OAAO,CAAC,IAAiB,EAAE,IAAY,EAAE,OAAe;IAChE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AACpE,CAAC;AAED,SAAS,OAAO,CAAC,IAAiB,EAAE,MAAwC,EAAE,IAAY;IACzF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC;IACxC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;IAClB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC;IACvB,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC;QACzD,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,mFAAmF,CAAC,CAAC;IAC1G,CAAC;AACF,CAAC;AAED,SAAS,MAAM,CAAC,IAAiB,EAAE,IAAY,EAAE,IAAY;IAC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EAAE,KAAK,EAAE,CAAC;IACpI,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;QACxD,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAC1C,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YAC1B,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;YACjC,SAAS;QACV,CAAC;QACD,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACrB,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACjD,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;QAC/B,CAAC;IACF,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;AAClF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Effect } from "effect";
2
+ import type { RuleInputs } from "#rule.ts";
3
+ export declare const catalogWorkspace: (args_0: Pick<RuleInputs, "readText" | "root">) => Effect.Effect<{
4
+ file: string;
5
+ text: string;
6
+ }, never, never>;
7
+ //# sourceMappingURL=catalogWorkspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogWorkspace.d.ts","sourceRoot":"","sources":["../../src/adapters/catalogWorkspace.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,gBAAgB;;;gBAc3B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { dirname, join, relative, sep } from "node:path";
2
+ import { Effect } from "effect";
3
+ export const catalogWorkspace = Effect.fn("Manifests.catalogWorkspace")(function* ({ readText, root }) {
4
+ let directory = root;
5
+ for (;;) {
6
+ const file = relative(root, join(directory, "pnpm-workspace.yaml")).split(sep).join("/");
7
+ const text = yield* Effect.promise(() => readText(file));
8
+ if (text !== undefined) {
9
+ return { file, text };
10
+ }
11
+ const parent = dirname(directory);
12
+ if (parent === directory) {
13
+ return { file: "pnpm-workspace.yaml", text: "" };
14
+ }
15
+ directory = parent;
16
+ }
17
+ });
18
+ //# sourceMappingURL=catalogWorkspace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogWorkspace.js","sourceRoot":"","sources":["../../src/adapters/catalogWorkspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,EAAE,CAAC,4BAA4B,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAyC;IAC3I,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,SAAS,CAAC;QACT,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzF,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QACzD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACvB,CAAC;QACD,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;QAClC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YAC1B,OAAO,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QAClD,CAAC;QACD,SAAS,GAAG,MAAM,CAAC;IACpB,CAAC;AACF,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Effect, FileSystem } from "effect";
2
+ import type { Finding, RuleInputs } from "#rule.ts";
3
+ export declare const repositoryPathFindings: (args_0: RuleInputs) => Effect.Effect<Finding[], import("effect/PlatformError").PlatformError, FileSystem.FileSystem>;
4
+ //# sourceMappingURL=repositoryPathFindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repositoryPathFindings.d.ts","sourceRoot":"","sources":["../../src/adapters/repositoryPathFindings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAG5C,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AA0CpD,eAAO,MAAM,sBAAsB,uHAqBjC,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { join, posix } from "node:path";
2
+ import { Effect, FileSystem } from "effect";
3
+ import { isDocument } from "#docs/isDocument.ts";
4
+ import { codeSpans, markdownLines } from "#docs/markdownLines.ts";
5
+ function pathIn(span) {
6
+ if (!(span.includes("/") && (span.startsWith(".") || span.endsWith("/") || /\.[a-z0-9]+(?::\d+(?::\d+)?|#.*)?$/iu.test(span)))
7
+ || /[\s*?<>${}\\]/u.test(span)
8
+ || /^(?:\/|@|~|[\w+.-]+:)/u.test(span)
9
+ || /(?:^|\/)node_modules(?:\/|$)/u.test(span)) {
10
+ return;
11
+ }
12
+ return span.replace(/(?::\d+(?::\d+)?|#.*)$/u, "").replace(/\/+$/u, "");
13
+ }
14
+ function references(text) {
15
+ return markdownLines(text)
16
+ .filter((line) => line.kind === "prose")
17
+ .flatMap((line) => codeSpans(line.text).flatMap((span) => {
18
+ const path = pathIn(span);
19
+ return path === undefined ? [] : [{ line: line.number, path, span }];
20
+ }));
21
+ }
22
+ const missingPath = Effect.fn("Docs.missingPath")(function* (root, file, path) {
23
+ const fs = yield* FileSystem.FileSystem;
24
+ const explicit = path.startsWith("./") || path.startsWith("../");
25
+ const local = posix.join(posix.dirname(file), path);
26
+ const target = explicit ? local : posix.normalize(path);
27
+ if (target === ".." || target.startsWith("../")) {
28
+ return true;
29
+ }
30
+ if (yield* fs.exists(join(root, target))) {
31
+ return false;
32
+ }
33
+ if (path.startsWith("./") && (yield* fs.exists(join(root, path)))) {
34
+ return false;
35
+ }
36
+ return explicit || !(yield* fs.exists(join(root, local)));
37
+ });
38
+ export const repositoryPathFindings = Effect.fn("Docs.repositoryPathFindings")(function* ({ files, readText, root }) {
39
+ const roots = new Set(files.map((file) => file.split("/")[0]));
40
+ const findings = [];
41
+ for (const file of files.filter((path) => isDocument(path) && posix.basename(path) !== "CLAUDE.md")) {
42
+ const text = yield* Effect.promise(() => readText(file));
43
+ for (const reference of references(text ?? "")) {
44
+ const { path, span, line } = reference;
45
+ if (!(path.startsWith("./") || path.startsWith("../") || roots.has(path.split("/")[0]))) {
46
+ continue;
47
+ }
48
+ if (yield* missingPath(root, file, path)) {
49
+ findings.push({
50
+ file,
51
+ line,
52
+ message: `Repository path "${span}" does not resolve to an existing path inside the repository. Use its current path, relative to this document (./ or ../) or the repository root.`,
53
+ subject: span,
54
+ });
55
+ }
56
+ }
57
+ }
58
+ return findings;
59
+ });
60
+ //# sourceMappingURL=repositoryPathFindings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repositoryPathFindings.js","sourceRoot":"","sources":["../../src/adapters/repositoryPathFindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAA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AAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Finding, RuleInputs } from "#rule.ts";
2
+ export declare function serviceFolderFindings({ files, sources }: RuleInputs): readonly Finding[];
3
+ //# sourceMappingURL=serviceFolderFindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceFolderFindings.d.ts","sourceRoot":"","sources":["../../src/adapters/serviceFolderFindings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAc,MAAM,UAAU,CAAC;AAiDhE,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,UAAU,GAAG,SAAS,OAAO,EAAE,CAqBxF"}
@@ -0,0 +1,65 @@
1
+ import { posix } from "node:path";
2
+ import ts from "typescript";
3
+ import { serviceAssemblyImports } from "#adapters/serviceAssemblyImports.ts";
4
+ import { directServiceDefinitions, unwrapExpression } from "#adapters/serviceAssemblySyntax.ts";
5
+ import { parse } from "#rules/parse.ts";
6
+ function exported(statement) {
7
+ return ts.canHaveModifiers(statement) && (ts.getModifiers(statement)?.some((modifier) => modifier.kind === ts.SyntaxKind.ExportKeyword) ?? false);
8
+ }
9
+ function runtimeReexport(node) {
10
+ if (!ts.isExportDeclaration(node) || node.isTypeOnly) {
11
+ return false;
12
+ }
13
+ const clause = node.exportClause;
14
+ return clause === undefined || !ts.isNamedExports(clause) || clause.elements.length === 0 || clause.elements.some((item) => !item.isTypeOnly);
15
+ }
16
+ function serviceShape(file) {
17
+ const source = parse(file);
18
+ if (source === undefined) {
19
+ return [];
20
+ }
21
+ const definitions = directServiceDefinitions(source, serviceAssemblyImports(source).definitions);
22
+ const runtime = source.statements.filter((candidate) => exported(candidate) && !ts.isInterfaceDeclaration(candidate) && !ts.isTypeAliasDeclaration(candidate));
23
+ const [statement] = runtime;
24
+ const declaration = statement !== undefined && ts.isVariableStatement(statement) ? statement.declarationList.declarations[0] : undefined;
25
+ const valid = runtime.length === 1
26
+ && definitions.length === 1
27
+ && statement !== undefined
28
+ && ts.isVariableStatement(statement)
29
+ && (statement.declarationList.flags & ts.NodeFlags.Const) !== 0
30
+ && statement.declarationList.declarations.length === 1
31
+ && declaration?.initializer !== undefined
32
+ && ts.isIdentifier(declaration.name)
33
+ && definitions[0] === unwrapExpression(declaration.initializer)
34
+ && !source.statements.some((node) => ts.isExportAssignment(node) || runtimeReexport(node));
35
+ return valid
36
+ ? []
37
+ : [
38
+ {
39
+ file: file.path,
40
+ line: 1,
41
+ message: "Export exactly one named const initialized by a direct defineService call from service.ts. Move other runtime exports to their own files; type exports may stay.",
42
+ },
43
+ ];
44
+ }
45
+ export function serviceFolderFindings({ files, sources }) {
46
+ const folders = new Set(files.flatMap((file) => {
47
+ const match = /^(?<folder>(?:.*\/)?services\/[^/]+)\//u.exec(file)?.groups?.folder;
48
+ return match === undefined ? [] : [match];
49
+ }));
50
+ const findings = [];
51
+ for (const folder of folders) {
52
+ const service = `${folder}/service.ts`;
53
+ if (!files.includes(service)) {
54
+ findings.push({
55
+ file: folder,
56
+ message: "Give this service folder a service.ts that exports its defineService declaration. Keep operations in focused sibling files.",
57
+ });
58
+ }
59
+ }
60
+ return [
61
+ ...findings,
62
+ ...sources.filter((file) => posix.basename(file.path) === "service.ts" && folders.has(posix.dirname(file.path))).flatMap(serviceShape),
63
+ ];
64
+ }
65
+ //# sourceMappingURL=serviceFolderFindings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceFolderFindings.js","sourceRoot":"","sources":["../../src/adapters/serviceFolderFindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEhG,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC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,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC;QACnF,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,CACF,CAAC;IACF,MAAM,QAAQ,GAAc,EAAE,CAAC;IAC/B,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC9B,MAAM,OAAO,GAAG,GAAG,MAAM,aAAa,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAC9B,QAAQ,CAAC,IAAI,CAAC;gBACb,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,6HAA6H;aACtI,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IACD,OAAO;QACN,GAAG,QAAQ;QACX,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;KACtI,CAAC;AACH,CAAC"}
@@ -44,7 +44,7 @@ const walkDirectory = Effect.fnUntraced(function* (dir, inherited, tracked) {
44
44
  });
45
45
  const walkEntry = Effect.fnUntraced(function* (path, scope, tracked) {
46
46
  const fs = yield* FileSystem.FileSystem;
47
- const info = yield* orWhenAbsent(path, fs.stat(path), undefined);
47
+ const info = yield* orWhenAbsent(path, path.endsWith("/CLAUDE.md") ? fs.lstat(path) : fs.stat(path), undefined);
48
48
  if (info === undefined) {
49
49
  return [];
50
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"walk.js","sourceRoot":"","sources":["../../src/inventory/walk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,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AClG,CAAC,CAAC,CAAC"}
@@ -1,4 +1,6 @@
1
- export declare const builtInRules: readonly [import("../rule.ts").Rule<"code/unused", undefined, import("../rule.ts").RuleServices>, import("../rule.ts").Rule<"effect/adapter-imports", undefined, never>, import("../rule.ts").Rule<"effect/boundary", undefined, never>, import("../rule.ts").Rule<"effect/failure-honesty", undefined, never>, import("../rule.ts").Rule<"effect/rpc-boundary", undefined, never>, import("../rule.ts").Rule<"effect/service-definition-assembly", undefined, never>, import("../rule.ts").Rule<"effect/service-ids", undefined, never>, import("../rule.ts").Rule<"effect/service-parameters", undefined, never>, import("../rule.ts").Rule<"effect/shared-error-classes", undefined, never>, import("../rule.ts").Rule<"effect/sql-transact", undefined, never>, import("../rule.ts").Rule<"react/jsx-conditionals", undefined, never>, import("../rule.ts").Rule<"structure/max-lines", {
1
+ export declare const builtInRules: readonly [import("../rule.ts").Rule<"docs/agent-links", undefined, import("effect/FileSystem").FileSystem>, import("../rule.ts").Rule<"docs/repository-paths", undefined, import("effect/FileSystem").FileSystem>, import("../rule.ts").Rule<"effect/service-folders", undefined, never>, import("../rule.ts").Rule<"files/ascii", {
2
+ readonly files?: readonly string[];
3
+ }, import("effect/FileSystem").FileSystem>, import("../rule.ts").Rule<"manifests/dependency-pins", undefined, never>, import("../rule.ts").Rule<"code/unused", undefined, import("../rule.ts").RuleServices>, import("../rule.ts").Rule<"effect/adapter-imports", undefined, never>, import("../rule.ts").Rule<"effect/boundary", undefined, never>, import("../rule.ts").Rule<"effect/failure-honesty", undefined, never>, import("../rule.ts").Rule<"effect/rpc-boundary", undefined, never>, import("../rule.ts").Rule<"effect/service-definition-assembly", undefined, never>, import("../rule.ts").Rule<"effect/service-ids", undefined, never>, import("../rule.ts").Rule<"effect/service-parameters", undefined, never>, import("../rule.ts").Rule<"effect/shared-error-classes", undefined, never>, import("../rule.ts").Rule<"effect/sql-transact", undefined, never>, import("../rule.ts").Rule<"react/jsx-conditionals", undefined, never>, import("../rule.ts").Rule<"structure/max-lines", {
2
4
  readonly source?: number;
3
5
  readonly test?: number;
4
6
  }, never>, import("../rule.ts").Rule<"nesting/max-depth", undefined, never>, import("../rule.ts").Rule<"structure/no-barrel", undefined, never>, import("../rule.ts").Rule<"comments/no-jsdoc", {
@@ -1 +1 @@
1
- {"version":3,"file":"builtIn.d.ts","sourceRoot":"","sources":["../../src/rules/builtIn.ts"],"names":[],"mappings":"AAmEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8aAmEf,CAAC"}
1
+ {"version":3,"file":"builtIn.d.ts","sourceRoot":"","sources":["../../src/rules/builtIn.ts"],"names":[],"mappings":"AAwEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8aAwEf,CAAC"}
@@ -5,17 +5,21 @@ import { noJsdoc } from "#rules/comments/noJsdoc.ts";
5
5
  import { noLineReference } from "#rules/comments/noLineReference.ts";
6
6
  import { noPrReference } from "#rules/comments/noPrReference.ts";
7
7
  import { noTodo } from "#rules/comments/noTodo.ts";
8
+ import { agentLinks } from "#rules/docs/agentLinks.ts";
8
9
  import { docsReferences } from "#rules/docs/references.ts";
10
+ import { repositoryPaths } from "#rules/docs/repositoryPaths.ts";
9
11
  import { docsUnversionedInstalls } from "#rules/docs/unversionedInstalls.ts";
10
12
  import { adapterImports } from "#rules/effect/adapterImports.ts";
11
13
  import { effectBoundary } from "#rules/effect/boundary.ts";
12
14
  import { failureHonesty } from "#rules/effect/failureHonesty.ts";
13
15
  import { rpcBoundary } from "#rules/effect/rpcBoundary.ts";
14
16
  import { serviceDefinitionAssembly } from "#rules/effect/serviceDefinitionAssembly.ts";
17
+ import { serviceFolders } from "#rules/effect/serviceFolders.ts";
15
18
  import { serviceIds } from "#rules/effect/serviceIds.ts";
16
19
  import { serviceParameters } from "#rules/effect/serviceParameters.ts";
17
20
  import { sharedErrorClasses } from "#rules/effect/sharedErrorClasses.ts";
18
21
  import { sqlTransact } from "#rules/effect/sqlTransact.ts";
22
+ import { ascii } from "#rules/files/ascii.ts";
19
23
  import { distinctCase } from "#rules/files/distinctCase.ts";
20
24
  import { folderNames } from "#rules/files/folderNames.ts";
21
25
  import { namedAfterExport } from "#rules/files/namedAfterExport.ts";
@@ -56,6 +60,7 @@ import { testsColocated } from "#rules/test-names/colocated.ts";
56
60
  import { testsFollow } from "#rules/test-names/follow.ts";
57
61
  import { biome } from "./biome.js";
58
62
  import { manifestsApplication } from "./manifestsApplication.js";
63
+ import { manifestsDependencyPins } from "./manifestsDependencyPins.js";
59
64
  import { manifestsExportsShape } from "./manifestsExportsShape.js";
60
65
  import { manifestsSorted } from "./manifestsSorted.js";
61
66
  import { manifestsSourceFirst } from "./manifestsSourceFirst.js";
@@ -65,6 +70,11 @@ import { maxLines } from "./maxLines.js";
65
70
  import { noBarrel } from "./noBarrel.js";
66
71
  import { unusedCode } from "./unusedCode.js";
67
72
  export const builtInRules = [
73
+ agentLinks,
74
+ repositoryPaths,
75
+ serviceFolders,
76
+ ascii,
77
+ manifestsDependencyPins,
68
78
  unusedCode,
69
79
  adapterImports,
70
80
  effectBoundary,