@shivaedev/quality 0.59.0 → 0.61.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.
Files changed (183) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +41 -18
  3. package/dist/adapters/biome/relocateConfig.d.ts +1 -1
  4. package/dist/adapters/biome/relocateConfig.d.ts.map +1 -1
  5. package/dist/adapters/biome/relocateConfig.js +6 -5
  6. package/dist/adapters/biome/relocateConfig.js.map +1 -1
  7. package/dist/adapters/biome/run.d.ts +1 -1
  8. package/dist/adapters/biome/run.d.ts.map +1 -1
  9. package/dist/adapters/biome/run.js +2 -2
  10. package/dist/adapters/biome/run.js.map +1 -1
  11. package/dist/adapters/biome/withExceptionConfig.d.ts +1 -1
  12. package/dist/adapters/biome/withExceptionConfig.d.ts.map +1 -1
  13. package/dist/adapters/biome/withExceptionConfig.js +3 -3
  14. package/dist/adapters/biome/withExceptionConfig.js.map +1 -1
  15. package/dist/adapters/bodyReference.d.ts +9 -0
  16. package/dist/adapters/bodyReference.d.ts.map +1 -0
  17. package/dist/adapters/bodyReference.js +10 -0
  18. package/dist/adapters/bodyReference.js.map +1 -0
  19. package/dist/adapters/bodyReferences.d.ts +1 -6
  20. package/dist/adapters/bodyReferences.d.ts.map +1 -1
  21. package/dist/adapters/bodyReferences.js +16 -12
  22. package/dist/adapters/bodyReferences.js.map +1 -1
  23. package/dist/adapters/engineEscapes.d.ts.map +1 -1
  24. package/dist/adapters/engineEscapes.js.map +1 -1
  25. package/dist/adapters/imports/projects.js +1 -1
  26. package/dist/adapters/imports/projects.js.map +1 -1
  27. package/dist/adapters/knip/configuration.d.ts.map +1 -1
  28. package/dist/adapters/knip/configuration.js +9 -1
  29. package/dist/adapters/knip/configuration.js.map +1 -1
  30. package/dist/adapters/knip/run.js +1 -1
  31. package/dist/adapters/knip/run.js.map +1 -1
  32. package/dist/adapters/queueReadoutFindings.js +1 -1
  33. package/dist/adapters/queueReadoutFindings.js.map +1 -1
  34. package/dist/adapters/serviceAccess.d.ts +1 -1
  35. package/dist/adapters/serviceAccess.d.ts.map +1 -1
  36. package/dist/{rules/stories/program.d.ts → adapters/storyProgram.d.ts} +1 -1
  37. package/dist/adapters/storyProgram.d.ts.map +1 -0
  38. package/dist/{rules/stories/program.js → adapters/storyProgram.js} +14 -5
  39. package/dist/adapters/storyProgram.js.map +1 -0
  40. package/dist/adapters/tanstackRoutes.d.ts +11 -0
  41. package/dist/adapters/tanstackRoutes.d.ts.map +1 -0
  42. package/dist/adapters/tanstackRoutes.js +65 -0
  43. package/dist/adapters/tanstackRoutes.js.map +1 -0
  44. package/dist/biome/nonEffectPlugins.d.ts +7 -0
  45. package/dist/biome/nonEffectPlugins.d.ts.map +1 -0
  46. package/dist/biome/nonEffectPlugins.js +24 -0
  47. package/dist/biome/nonEffectPlugins.js.map +1 -0
  48. package/dist/biome/report.d.ts +1 -1
  49. package/dist/biome/report.d.ts.map +1 -1
  50. package/dist/biome/report.js +5 -5
  51. package/dist/biome/report.js.map +1 -1
  52. package/dist/cli/baseline.d.ts.map +1 -1
  53. package/dist/cli/baseline.js +0 -6
  54. package/dist/cli/baseline.js.map +1 -1
  55. package/dist/cli/fix.d.ts.map +1 -1
  56. package/dist/cli/fix.js +7 -7
  57. package/dist/cli/fix.js.map +1 -1
  58. package/dist/cli/messages.d.ts +1 -1
  59. package/dist/cli/messages.d.ts.map +1 -1
  60. package/dist/cli/messages.js +1 -1
  61. package/dist/config/decode.d.ts +1 -0
  62. package/dist/config/decode.d.ts.map +1 -1
  63. package/dist/config/decode.js +2 -0
  64. package/dist/config/decode.js.map +1 -1
  65. package/dist/config/load.d.ts +1 -0
  66. package/dist/config/load.d.ts.map +1 -1
  67. package/dist/config/load.js +1 -0
  68. package/dist/config/load.js.map +1 -1
  69. package/dist/config/nonEffectFolders.d.ts +5 -0
  70. package/dist/config/nonEffectFolders.d.ts.map +1 -0
  71. package/dist/config/nonEffectFolders.js +17 -0
  72. package/dist/config/nonEffectFolders.js.map +1 -0
  73. package/dist/config/resolve.d.ts +1 -0
  74. package/dist/config/resolve.d.ts.map +1 -1
  75. package/dist/config.d.ts +1 -0
  76. package/dist/config.d.ts.map +1 -1
  77. package/dist/config.js.map +1 -1
  78. package/dist/engine/runRules.d.ts.map +1 -1
  79. package/dist/engine/runRules.js +4 -1
  80. package/dist/engine/runRules.js.map +1 -1
  81. package/dist/engine/session.d.ts.map +1 -1
  82. package/dist/engine/session.js +1 -0
  83. package/dist/engine/session.js.map +1 -1
  84. package/dist/inventory/routeFiles.d.ts +7 -0
  85. package/dist/inventory/routeFiles.d.ts.map +1 -0
  86. package/dist/inventory/routeFiles.js +62 -0
  87. package/dist/inventory/routeFiles.js.map +1 -0
  88. package/dist/inventory/shadcnAlias.js +1 -1
  89. package/dist/inventory/shadcnAlias.js.map +1 -1
  90. package/dist/rule.d.ts +1 -0
  91. package/dist/rule.d.ts.map +1 -1
  92. package/dist/rule.js.map +1 -1
  93. package/dist/rules/biome.js +2 -2
  94. package/dist/rules/biome.js.map +1 -1
  95. package/dist/rules/builtIn.d.ts +2 -2
  96. package/dist/rules/effect/boundary.js +1 -1
  97. package/dist/rules/effect/boundary.js.map +1 -1
  98. package/dist/rules/effect/serviceParameters.js +1 -1
  99. package/dist/rules/effect/serviceParameters.js.map +1 -1
  100. package/dist/rules/files/folderNames.d.ts +1 -1
  101. package/dist/rules/files/folderNames.d.ts.map +1 -1
  102. package/dist/rules/files/folderNames.js +6 -4
  103. package/dist/rules/files/folderNames.js.map +1 -1
  104. package/dist/rules/files/namedAfterExport.d.ts +1 -1
  105. package/dist/rules/files/namedAfterExport.d.ts.map +1 -1
  106. package/dist/rules/files/namedAfterExport.js +5 -3
  107. package/dist/rules/files/namedAfterExport.js.map +1 -1
  108. package/dist/rules/manifestsExportsShape.d.ts.map +1 -1
  109. package/dist/rules/manifestsExportsShape.js +2 -1
  110. package/dist/rules/manifestsExportsShape.js.map +1 -1
  111. package/dist/rules/manifestsSourceFirst.d.ts.map +1 -1
  112. package/dist/rules/manifestsSourceFirst.js +4 -4
  113. package/dist/rules/manifestsSourceFirst.js.map +1 -1
  114. package/dist/rules/stories/adapterOnlyFakes.js +1 -1
  115. package/dist/rules/stories/adapterOnlyFakes.js.map +1 -1
  116. package/dist/rules/stories/origins.d.ts.map +1 -1
  117. package/dist/rules/stories/origins.js +1 -1
  118. package/dist/rules/stories/origins.js.map +1 -1
  119. package/dist/rules/stories/sources.d.ts +1 -0
  120. package/dist/rules/stories/sources.d.ts.map +1 -1
  121. package/dist/rules/stories/sources.js +17 -0
  122. package/dist/rules/stories/sources.js.map +1 -1
  123. package/dist/rules/stories/waitOnEvents.d.ts.map +1 -1
  124. package/dist/rules/stories/waitOnEvents.js +74 -10
  125. package/dist/rules/stories/waitOnEvents.js.map +1 -1
  126. package/dist/testing/adapters/cli.js +1 -1
  127. package/dist/testing/adapters/cli.js.map +1 -1
  128. package/dist/testing/adapters/hookRepository.js +1 -1
  129. package/dist/testing/adapters/hookRepository.js.map +1 -1
  130. package/dist/testing/adapters/packageExports.d.ts +1 -1
  131. package/dist/testing/adapters/packageExports.d.ts.map +1 -1
  132. package/dist/testing/adapters/packageExports.js +6 -3
  133. package/dist/testing/adapters/packageExports.js.map +1 -1
  134. package/dist/testing/ruleStory.d.ts +1 -0
  135. package/dist/testing/ruleStory.d.ts.map +1 -1
  136. package/dist/testing/ruleStory.js +4 -0
  137. package/dist/testing/ruleStory.js.map +1 -1
  138. package/docs/debt-and-hooks.md +1 -1
  139. package/package.json +9 -9
  140. package/src/adapters/biome/relocateConfig.ts +6 -4
  141. package/src/adapters/biome/run.ts +17 -12
  142. package/src/adapters/biome/withExceptionConfig.ts +3 -2
  143. package/src/adapters/bodyReference.ts +19 -0
  144. package/src/adapters/bodyReferences.ts +16 -23
  145. package/src/adapters/engineEscapes.ts +2 -1
  146. package/src/adapters/imports/projects.ts +1 -1
  147. package/src/adapters/knip/configuration.ts +8 -1
  148. package/src/adapters/knip/run.ts +1 -1
  149. package/src/adapters/queueReadoutFindings.ts +1 -1
  150. package/src/adapters/serviceAccess.ts +1 -1
  151. package/src/{rules/stories/program.ts → adapters/storyProgram.ts} +13 -4
  152. package/src/adapters/tanstackRoutes.ts +73 -0
  153. package/src/biome/nonEffectPlugins.ts +27 -0
  154. package/src/biome/report.ts +5 -3
  155. package/src/cli/baseline.ts +0 -6
  156. package/src/cli/fix.ts +13 -5
  157. package/src/cli/messages.ts +1 -1
  158. package/src/config/decode.ts +2 -0
  159. package/src/config/load.ts +2 -0
  160. package/src/config/nonEffectFolders.ts +26 -0
  161. package/src/config.ts +1 -0
  162. package/src/engine/runRules.ts +9 -1
  163. package/src/engine/session.ts +1 -0
  164. package/src/inventory/routeFiles.ts +78 -0
  165. package/src/inventory/shadcnAlias.ts +1 -1
  166. package/src/rule.ts +1 -0
  167. package/src/rules/biome.ts +2 -2
  168. package/src/rules/effect/boundary.ts +1 -1
  169. package/src/rules/effect/serviceParameters.ts +1 -1
  170. package/src/rules/files/folderNames.ts +7 -5
  171. package/src/rules/files/namedAfterExport.ts +5 -3
  172. package/src/rules/manifestsExportsShape.ts +2 -1
  173. package/src/rules/manifestsSourceFirst.ts +4 -5
  174. package/src/rules/stories/adapterOnlyFakes.ts +1 -1
  175. package/src/rules/stories/origins.ts +1 -1
  176. package/src/rules/stories/sources.ts +18 -0
  177. package/src/rules/stories/waitOnEvents.ts +89 -10
  178. package/src/testing/adapters/cli.ts +1 -1
  179. package/src/testing/adapters/hookRepository.ts +1 -1
  180. package/src/testing/adapters/packageExports.ts +6 -3
  181. package/src/testing/ruleStory.ts +7 -0
  182. package/dist/rules/stories/program.d.ts.map +0 -1
  183. package/dist/rules/stories/program.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.61.0 - 2026-11-04
4
+
5
+ ### Added
6
+
7
+ - Declare deliberately non-Effect subsystems with `nonEffectFolders` in Quality config. All `effect/*` rules and Effect-specific Biome plugins are off in those folders and their descendants; other rules and Effect importers remain checked. The declaration applies to the gate and Biome fix passes without adding baseline debt.
8
+
9
+ ### Fixed
10
+
11
+ - Let `baseline write --first-adoption` record findings from every rule, including rules that permit config exceptions. A repository without a baseline may record all rules at once; policy upgrades with an existing baseline still name explicit rules, and ordinary later writes still require changed file selections.
12
+ - Follow story specs' runtime imports into test-support when reporting sleeps, polling, quiet windows, fake timers and `eventually`. Keep product timers and controlled kit clock advances accepted, and explain that a deadline bounds a failure but does not prove completion.
13
+
14
+ ## 0.60.0 - 2026-11-04
15
+
16
+ ### Added
17
+
18
+ - Recognise TanStack Router's file-routed folders from `tsr.config.json` and literal Vite plugin options. Route file and folder names follow the router without per-file exceptions, including newly added routes; ordinary files and ignored helpers retain naming checks.
19
+
20
+ ### Fixed
21
+
22
+ - Report raw service acquisition, `story.engine` access and production constructor wiring in story bodies even when traits or kit inputs are used. Keep colocated constructor subjects, native Effect data constructors and SQL handles used only for transaction blocks available.
23
+ - Recognise Schema error classes imported from installed `@shivaedev` packages as data in story bodies, while continuing to report production constructors.
24
+
25
+ ### Breaking
26
+
27
+ - TypeScript source exports now use `@shivaedev/source` instead of `source`. Replace `source` with `@shivaedev/source` in Node `--conditions`, TypeScript `customConditions`, and Vite/Vitest `resolve.conditions`. Bare `source` selects built JavaScript; no compatibility alias is provided.
28
+
3
29
  ## 0.59.0 - 2026-11-04
4
30
 
5
31
  ### Added
package/README.md CHANGED
@@ -64,10 +64,26 @@ ruleStory.it(
64
64
  );
65
65
  ```
66
66
 
67
- Seed a `quality.config.ts` that registers the custom rule to test the whole gate. `gate()` runs `quality lint`; `gateOutcome()` reads `passed`, `rejected` or `invalid`, and `gateReport()` reads its output. `writes(...)` changes fixture files and `removes(path)` deletes them. Use the kit’s `qualityInstalled()` trait when a fixture imports Quality or its tooling presets. It links the installed package into that fixture. The kit removes its temporary repository when the scope closes. Config imports are cached within the process, so use `quality` from `@shivaedev/quality/testing/adapters/cli.ts` to spawn a fresh command after changing a config.
67
+ Seed a `quality.config.ts` that registers the custom rule to test the whole gate. `gate()` runs `quality lint`; `gateOutcome()` reads `passed`, `rejected` or `invalid`, `gateReport()` reads its output, and `gateReports(prefix)` reads the finding sections whose rule starts with that prefix. `writes(...)` changes fixture files and `removes(path)` deletes them. Use the kit’s `qualityInstalled()` trait when a fixture imports Quality or its tooling presets. It links the installed package into that fixture. The kit removes its temporary repository when the scope closes. Config imports are cached within the process, so use `quality` from `@shivaedev/quality/testing/adapters/cli.ts` to spawn a fresh command after changing a config.
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
+ ### Folders that are not Effect code
72
+
73
+ Declare deliberately non-Effect subsystems, such as a game engine or simulation, once in `quality.config.ts`:
74
+
75
+ ```ts
76
+ import { defineConfig } from "@shivaedev/quality/config.ts";
77
+
78
+ export default defineConfig({
79
+ nonEffectFolders: ["src/game/engine", "src/game/simulation"],
80
+ });
81
+ ```
82
+
83
+ `nonEffectFolders` names explicit folders relative to the config directory, without glob patterns or parent traversal. A declaration covers every descendant and does not cover similarly named siblings. A leading `./` or trailing slash is accepted. Inside these folders, every `effect/*` rule and the Effect-specific Biome plugins (ambient runtime, Effect functions and test bodies, Schema naming and keys, and service Layers) are off. Every other rule remains on, including formatting, comments, naming, imports and suppression checks.
84
+
85
+ The declaration describes code, not imports: an Effect module importing a non-Effect subsystem stays checked, including service types imported from that subsystem. The full inventory and import graph remain available to every rule. Declare the folders in config instead of recording their Effect findings as permanent debt.
86
+
71
87
  ### Effect boundaries and services
72
88
 
73
89
  `effect/boundary` checks every TypeScript or JavaScript source in Quality's inventory, including shipped code, tooling and specs. It reports async functions, methods and arrows, await (including `for await`), `new Promise(...)`, `.then(...)`, try statements and throw statements. Model the work with Effect, fail with a tagged error, and use `Effect.die` for defects. Effect's resource and finalizer primitives model cleanup.
@@ -76,15 +92,15 @@ It also reports synchronous calls imported from `node:fs` and `node:child_proces
76
92
 
77
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.
78
94
 
79
- Only 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. Code that cannot be Effect belongs in that bridge or calls for a better Effect primitive. Adapter code still follows `effect/service-parameters` and the ambient time, randomness, console and environment bans.
95
+ 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.
80
96
 
81
97
  The `ambient-runtime` Biome plugin also reports `Effect.run*` calls whose computation contains `Clock`, `Config` or `Random`, `currentTimeMillisUnsafe`, crypto UUIDs and bytes, `performance.now`, process arguments, working directory and exit state, `globalThis.process.env`, timeouts and microtasks. Yield service computations in the caller's Effect so its environment controls them. These additional checks apply to core TypeScript code. They accept `cli.ts`, `main.ts(x)`, `entry.ts(x)`, `*-cli.ts`, modules that call `runMain`, use `NodeRuntime.runMain` or guard execution with `fileURLToPath(import.meta.url) === process.argv[1]`, tool configs, tests, `adapters/` and `test-support/`. The existing `Date.now()`, `new Date()`, `Math.random()`, console and direct `process.env` bans still apply there.
82
98
 
83
- `effect/service-parameters` reports parameters carrying a service in exported functions and public methods, including returned factories. It follows service classes and tags, non-empty Contexts and service implementation shapes through aliases, interfaces, generic constraints, inferred parameters and destructuring. Read services from Effect's environment instead. An Effect or Stream requiring a service is a computation and is accepted. Methods implementing a service and functions constructing Layers may take services as parameters. Only `test-support/` folders are exempt from this rule; `adapters/` folders are checked. Installed implementation shapes are discovered in the consuming repository's package scopes, alongside the framework service package's scope.
99
+ `effect/service-parameters` reports parameters carrying a service in exported functions and public methods, including returned factories. It follows service classes and tags, non-empty Contexts and service implementation shapes through aliases, interfaces, generic constraints, inferred parameters and destructuring. Read services from Effect's environment instead. An Effect or Stream requiring a service is a computation and is accepted. Methods implementing a service and functions constructing Layers may take services as parameters. Within Effect code, `test-support/` folders are exempt from this rule; `adapters/` folders are checked. Installed implementation shapes are discovered in the consuming repository's package scopes, alongside the framework service package's scope.
84
100
 
85
101
  Both rules refuse config exceptions and inline suppressions. Record existing debt with `quality baseline write --rule effect/boundary --file src/legacy.ts` and `quality baseline write --rule effect/service-parameters --file src/legacy.ts`; the normal report and baseline burn-down apply.
86
102
 
87
- When an upgrade expands these checks, inspect the new findings, repair the small ones and record retained debt with `quality baseline write --first-adoption --rule effect/boundary` (or `--rule effect/service-parameters`). This explicit first-adoption mode requires named rules that refuse config exceptions and may record unchanged files. Review each raised count and explain its reason in the pull request. Ordinary writes still require changed `--file` selections. Run `quality baseline tighten` after repairs to lower the touched files' counts.
103
+ When an upgrade expands these checks, inspect the new findings, repair the small ones and record retained debt with `quality baseline write --first-adoption --rule effect/boundary` (or `--rule effect/service-parameters`). This explicit first-adoption mode accepts every rule, including rules that permit config exceptions, and may record unchanged files. With an existing baseline, name the rules being adopted. Review each raised count and explain its reason in the pull request. Ordinary writes still require changed `--file` selections. Run `quality baseline tighten` after repairs to lower the touched files' counts.
88
104
 
89
105
  ### Package service ids
90
106
 
@@ -167,7 +183,7 @@ quality hooks install
167
183
 
168
184
  For an application setup script, use `quality setup`. It installs the same hook when the current folder has its own `.git` entry, including a linked worktree. An unversioned app or an app inside another repository leaves hooks alone.
169
185
 
170
- Installing the package does not install a hook. `hooks install` writes the repository's pre-commit hook. A hook Quality did not write is kept unless `--force` replaces it. For an existing repository, `quality baseline write` records error-level findings when there is no baseline; ordinary later writes require `--rule <id>` and `--file <path>`. Each selected path must be changed since `HEAD`; stage new files first. Initial adoption without a baseline may record the repository once.
186
+ Installing the package does not install a hook. `hooks install` writes the repository's pre-commit hook. A hook Quality did not write is kept unless `--force` replaces it. For an existing repository, `quality baseline write` records error-level findings when there is no baseline; ordinary later writes require `--rule <id>` and `--file <path>`. Each selected path must be changed since `HEAD`; stage new files first. `quality baseline write --first-adoption` also records every rule repo-wide when there is no baseline, including rules that permit config exceptions. With an existing baseline, first-adoption writes require explicit `--rule <id>` selections for a policy upgrade; omitting them refuses the write. Ordinary later writes still require changed file selections.
171
187
 
172
188
  When upgrading Quality, the starter and apps generated by create-app provide `pnpm baseline write --rule <id> --file <path>`. Record each new rule’s findings in the changed files, review the baseline diff, and land the upgrade before burning down that debt. Checks remain strict for findings above the recorded counts. After repairs, run `pnpm baseline tighten` to lower the touched files’ debt.
173
189
 
@@ -187,6 +203,8 @@ When a config exists, its folder is the root for paths and hook scripts. Without
187
203
 
188
204
  Quality discovers each app’s `components.json` and resolves `aliases.ui` through its TypeScript paths or package imports. Inside that folder, source rules and Biome lint, formatting and fixes skip only canonical shadcn registry filenames such as `button.tsx` and `dialog.tsx`, including their `.ts`, `.js` and `.jsx` variants. Hand-written components with other names stay checked, as do matching names outside the configured UI folder. Knip still follows imports from skipped components, so their dependencies count as used. Ownership follows filenames: a hand-written file that reuses a registry name inside the UI folder is also skipped.
189
205
 
206
+ Quality reads each app's `tsr.config.json` and literal `tanstackRouter` / `TanStackRouterVite` options imported from `@tanstack/router-plugin/vite` or `@tanstack/router-vite-plugin` in `vite.config.*`. `routesDirectory` is relative to that app's config folder and defaults to `src/routes`; Vite options override the JSON options. Declare the folder once in the router configuration: `files/named-after-export` accepts route filenames, and `files/folder-names` accepts their route groups and pathless layout folders, including routes added later. Other source rules still check routes. Ordinary files outside that folder, other apps and helper files excluded by `routeFileIgnorePrefix` (default `-`), `routeFileIgnorePattern` or `routeFilePrefix` keep their normal naming checks. A folder named `routes` alone establishes no ownership. Ignore patterns use Unicode regular expressions. Quality reads configuration without executing Vite: computed or spread router options must move into `tsr.config.json` or become literal options. Malformed JSON or invalid route-folder settings stop the gate. Exception declarations still name explicit files; route discovery adds no exception globs.
207
+
190
208
  Module folders under `src/modules/<name>` use the same `client/` and `server/` import boundaries as the foundation, and their shared declarations remain independent of both runtimes.
191
209
 
192
210
  Naming rules treat numbered migration files such as `src/server/migrations/0001_create_notes.ts` as tool-owned, including in nested apps and in module folders such as `src/modules/notes/server/migrations`. The file must sit directly in its migration folder and match `NNNN_snake_case.ts`: four digits, an underscore and a lowercase name starting with a letter. Files elsewhere, files with other names and subfolders remain checked. The Biome preset lets `.ts` files directly in that folder whose names start with four digits and an underscore default-export their migration Effect, because Effect's migration loader imports the default export; Biome globs cannot spell the rest of the pattern, so the naming rules still report a malformed name.
@@ -239,7 +257,7 @@ export default [uiBoundary];
239
257
 
240
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.
241
259
 
242
- 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 `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:
260
+ 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:
243
261
 
244
262
  ```ts
245
263
  import { defineConfig } from "@shivaedev/quality/config.ts";
@@ -271,7 +289,11 @@ Quality's `tests/story-setup` rule reports top-level test functions named with t
271
289
 
272
290
  Specs keep expectations visible. `tests/spec-helpers` moves all module-level helper functions out of specs and into the kit; `tests/no-expect-in-support` moves `expect` calls into the spec, except in test-support files that register tests at module top level and are not imported by any module, so nested Vitest runs can execute them as test files with real assertions. `tests/named-values` rejects numeric literals passed to `toBe` or `toHaveLength` in specs, except zero and process exit codes asserted on an `exitCode` subject: assert the observed items or use a domain name that comes from the story's inputs or the product. For HTTP statuses, import `* as HttpStatus` from `effect/http/HttpStatus` and use `HttpStatus.fromLiteral("NotFound")`; subjects named `status` or `code` do not exempt numeric assertions. A spec-local numeric const that only feeds these matchers is reported, including aliases for zero and codes. `tests/no-limit-imports` rejects importing `MAX_*` constants from a `limits` module into specs, so a story proves behavior instead of copying an implementation cap.
273
291
 
274
- Three more rules keep a spec readable as a story, as the [story-testing skill](https://github.com/ShivaeDev/platform/blob/main/packages/skills/skills/story-testing/SKILL.md) describes. Together with `tests/spec-helpers`, `tests/named-values` and `tests/no-limit-imports`, they read files whose test declarations trace to a story kit, whatever their suffix: a `.test` or `.spec` file outside `test-support` that is not a type or unit test, such as `orders.spec.ts`, `pane.dom.test.ts` or `orders.slow.test.ts`. The suffix says where a test sits under `tests/follow`, not whether it is a story, and `tests/story-specs` already holds every such file to the story kit. They exempt the same test-story prerequisites as `tests/story-specs`. `tests/domain-outcomes` reports each use of Effect's `Exit`, `Cause` or `Result` module, each `_tag` read or destructuring, and each object literal tagged `"Success"` or `"Failure"`: the kit's verb or readout returns the outcome in the domain's words, such as `"unauthorized"`, and a trait builds any failing input. A domain's own tagged value, such as `{ _tag: "Resync" }`, passes. `tests/grouped-outcomes` reports each run of two or more consecutive `expect(yield* …)` statements once, at its first statement: write the outcomes as rows of one `outcomes` call. `tests/wait-on-events` reports `Effect.sleep`, `setTimeout` and `setInterval`, calls to an imported `eventually`, Vitest's fake timers, `vi.waitFor`, and `TestClock.adjust` and `TestClock.setTime`: settle on the engine's own signal through a kit verb, and when time passing is the behaviour, advance the clock in a verb named for it.
292
+ Three more rules keep a spec readable as a story, as the [story-testing skill](https://github.com/ShivaeDev/platform/blob/main/packages/skills/skills/story-testing/SKILL.md) describes. Together with `tests/spec-helpers`, `tests/named-values` and `tests/no-limit-imports`, they read files whose test declarations trace to a story kit, whatever their suffix: a `.test` or `.spec` file outside `test-support` that is not a type or unit test, such as `orders.spec.ts`, `pane.dom.test.ts` or `orders.slow.test.ts`. The suffix says where a test sits under `tests/follow`, not whether it is a story, and `tests/story-specs` already holds every such file to the story kit. They exempt the same test-story prerequisites as `tests/story-specs`. `tests/domain-outcomes` reports each use of Effect's `Exit`, `Cause` or `Result` module, each `_tag` read or destructuring, and each object literal tagged `"Success"` or `"Failure"`: the kit's verb or readout returns the outcome in the domain's words, such as `"unauthorized"`, and a trait builds any failing input. A domain's own tagged value, such as `{ _tag: "Resync" }`, passes. `tests/grouped-outcomes` reports each run of two or more consecutive `expect(yield* …)` statements once, at its first statement: write the outcomes as rows of one `outcomes` call.
293
+
294
+ `tests/wait-on-events` checks those story specs and the `test-support/` modules reachable through their runtime imports, including aliases, re-exports and literal dynamic imports. It reports `Effect.sleep`, `setTimeout` and `setInterval`, calls to an imported `eventually`, Vitest's fake timers and `vi.waitFor`, including polling loops and quiet windows built from these calls. Product modules keep their timers. `TestClock.adjust` and `TestClock.setTime` are reported in specs and accepted in support: when time passing is the behaviour, advance the controlled clock in a kit verb named for it.
295
+
296
+ Settle on the engine's own signal through a kit verb. A deadline bounds a failure but does not prove completion; reaching it must fail the story. The rule accepts failing Effect timeouts, a sleep piped directly into `Effect.andThen(Effect.fail(...))` or `Effect.andThen(Effect.die(...))`, and timeout callbacks that end by calling their enclosing Promise executor's rejection parameter. A resolving timeout or a sleep that ends successfully still guesses when the work is done.
275
297
 
276
298
  `tests/positive-refusals` reports `.not.toBe` and `.not.toEqual` on a readout or field whose name ends in `outcome` (case insensitive), including locally stored readout aliases. In the same story, positively assert a concrete domain reason or public response on that same outcome with `toBe`, `toEqual`, `toMatchObject` or an `outcomes` row. For example, pair `expect(yield* submitOutcome()).not.toBe("saved")` with `expect(yield* submitOutcome()).toBe("unauthorized")`, or replace the negative check with the positive one. Another story, another outcome, an empty object or a boolean does not supply that evidence. The rule uses the same story-file scope and prerequisite exemptions as `tests/domain-outcomes`; it checks visible assertion syntax, while review establishes that a readout preserves unexpected failures.
277
299
 
@@ -363,7 +385,7 @@ For adoption, run `quality baseline write --rule code/unused --file src/legacy.t
363
385
  - **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.
364
386
  - **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.
365
387
  - **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.
366
- - **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 `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 `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 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.
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.
367
389
  - **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.
368
390
 
369
391
  ### Decide before JSX
@@ -473,15 +495,16 @@ Import names from their defining module; there is no root entry. The package's `
473
495
 
474
496
  #### Config
475
497
 
476
- | Key | Default | Meaning |
477
- | ------------ | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
478
- | `sources` | `["."]` | Directories or files the source rules check, relative to the repository root. |
479
- | `extensions` | `.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs` | Source extensions. |
480
- | `baseline` | `quality-baseline.jsonl` | Root shard for paths outside packages; package shards use `packages/<package>/quality-baseline.jsonl`. |
481
- | `exceptions` | `[]` | Permanent exceptions as `{ files, rules, reason, subject? }`. |
482
- | `registry` | `quality/registry.json` | Legacy input for upgrades; run `quality exceptions migrate`. |
483
- | `local` | `[]` | Exposed extension API for rules made with `defineRule`; not required for adoption. |
484
- | `rules` | Every rule at `error` | Options by rule id, such as import boundaries. An explicit `error` or `{ level: "error", options }` is also accepted. |
498
+ | Key | Default | Meaning |
499
+ | ------------------ | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
500
+ | `sources` | `["."]` | Directories or files the source rules check, relative to the repository root. |
501
+ | `nonEffectFolders` | `[]` | Explicit folders whose descendants are not Effect code; other quality rules still apply. |
502
+ | `extensions` | `.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs` | Source extensions. |
503
+ | `baseline` | `quality-baseline.jsonl` | Root shard for paths outside packages; package shards use `packages/<package>/quality-baseline.jsonl`. |
504
+ | `exceptions` | `[]` | Permanent exceptions as `{ files, rules, reason, subject? }`. |
505
+ | `registry` | `quality/registry.json` | Legacy input for upgrades; run `quality exceptions migrate`. |
506
+ | `local` | `[]` | Exposed extension API for rules made with `defineRule`; not required for adoption. |
507
+ | `rules` | Every rule at `error` | Options by rule id, such as import boundaries. An explicit `error` or `{ level: "error", options }` is also accepted. |
485
508
 
486
509
  #### Local rules
487
510
 
@@ -569,7 +592,7 @@ import { appTestConfig } from "@shivaedev/quality/appTestConfig.ts";
569
592
  export default appTestConfig();
570
593
  ```
571
594
 
572
- Use this in `vitest.config.ts`. It composes `testProjects` with browser and server resolution and inlines the `@shivaedev` packages for the test server, since an application imports each framework piece by its own name. Its `testProjects` defaults enable Node’s on-disk compilation cache in workers to reuse compiled dependencies while Vitest keeps module state isolated between files. Node’s `NODE_DISABLE_COMPILE_CACHE=1` disables that cache. Both helpers accept extra export conditions for workspace development: `appViteConfig(plugins, ["source"])` and `appTestConfig(["source"])`. Published apps use the defaults.
595
+ Use this in `vitest.config.ts`. It composes `testProjects` with browser and server resolution and inlines the `@shivaedev` packages for the test server, since an application imports each framework piece by its own name. Its `testProjects` defaults enable Node’s on-disk compilation cache in workers to reuse compiled dependencies while Vitest keeps module state isolated between files. Node’s `NODE_DISABLE_COMPILE_CACHE=1` disables that cache. Both helpers accept extra export conditions for workspace development: `appViteConfig(plugins, ["@shivaedev/source"])` and `appTestConfig(["@shivaedev/source"])`. Published apps use the defaults.
573
596
 
574
597
  For Vitest, install `vitest`, and add `@shivaedev/test-story` and `happy-dom` when the repository has DOM tests, then use:
575
598
 
@@ -2,5 +2,5 @@ import { Effect, FileSystem, type PlatformError, Schema, type Scope } from "effe
2
2
  export declare function parseConfig(path: string, text: string): Effect.Effect<{
3
3
  readonly [x: string]: unknown;
4
4
  }, Schema.SchemaError, never>;
5
- export declare function relocateConfig(root: string, original: string, config: Readonly<Record<string, unknown>>): Effect.Effect<string, PlatformError.PlatformError | Schema.SchemaError, FileSystem.FileSystem | Scope.Scope>;
5
+ export declare function relocateConfig(root: string, original: string, config: Readonly<Record<string, unknown>>, nonEffectFolders?: readonly string[]): Effect.Effect<string, PlatformError.PlatformError | Schema.SchemaError, FileSystem.FileSystem | Scope.Scope>;
6
6
  //# sourceMappingURL=relocateConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"relocateConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/relocateConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAKpF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;8BAKrD;AA4CD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,gHAEvG"}
1
+ {"version":3,"file":"relocateConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/relocateConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAMpF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;8BAKrD;AA6CD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,gBAAgB,GAAE,SAAS,MAAM,EAAO,gHAEjJ"}
@@ -2,6 +2,7 @@ import { createRequire } from "node:module";
2
2
  import { dirname, resolve } from "node:path";
3
3
  import { Effect, FileSystem, Schema } from "effect";
4
4
  import ts from "typescript";
5
+ import { nonEffectPlugins } from "#biome/nonEffectPlugins.ts";
5
6
  const ObjectConfig = Schema.Record(Schema.String, Schema.Unknown);
6
7
  export function parseConfig(path, text) {
7
8
  const parsed = ts.parseConfigFileTextToJson(path, text);
@@ -9,7 +10,7 @@ export function parseConfig(path, text) {
9
10
  ? Schema.decodeUnknownEffect(ObjectConfig)(parsed.config)
10
11
  : Effect.die(new Error(`Cannot load ${path}: ${ts.flattenDiagnosticMessageText(parsed.error.messageText, " ")}`));
11
12
  }
12
- const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, config, paths) {
13
+ const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, config, paths, nonEffectFolders) {
13
14
  const existing = paths.get(original);
14
15
  if (existing !== undefined) {
15
16
  return existing;
@@ -22,7 +23,7 @@ const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, co
22
23
  for (const specifier of Array.isArray(config.extends) ? config.extends : []) {
23
24
  const source = specifier.startsWith(".") ? resolve(dirname(original), specifier) : require.resolve(specifier);
24
25
  const inherited = yield* parseConfig(source, yield* fs.readFileString(source));
25
- extended.push(yield* writeConfig(root, source, inherited, paths));
26
+ extended.push(yield* writeConfig(root, source, inherited, paths, nonEffectFolders));
26
27
  }
27
28
  const vcs = config.vcs ?? {};
28
29
  const generated = {
@@ -30,7 +31,7 @@ const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, co
30
31
  ...(Array.isArray(config.extends) ? { extends: extended } : {}),
31
32
  ...(Array.isArray(config.plugins)
32
33
  ? {
33
- plugins: config.plugins.map((plugin) => typeof plugin === "string" ? resolve(root, plugin) : { ...plugin, path: resolve(root, plugin.path) }),
34
+ plugins: nonEffectPlugins(config.plugins, nonEffectFolders).map((plugin) => typeof plugin === "string" ? resolve(root, plugin) : { ...plugin, path: resolve(root, plugin.path) }),
34
35
  }
35
36
  : {}),
36
37
  vcs: Schema.is(ObjectConfig)(vcs)
@@ -43,7 +44,7 @@ const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, co
43
44
  yield* fs.writeFileString(path, JSON.stringify(generated));
44
45
  return path;
45
46
  });
46
- export function relocateConfig(root, original, config) {
47
- return writeConfig(root, original, config, new Map());
47
+ export function relocateConfig(root, original, config, nonEffectFolders = []) {
48
+ return writeConfig(root, original, config, new Map(), nonEffectFolders);
48
49
  }
49
50
  //# sourceMappingURL=relocateConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"relocateConfig.js","sourceRoot":"","sources":["../../../src/adapters/biome/relocateConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAsB,MAAM,EAAc,MAAM,QAAQ,CAAC;AACpF,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,MAAM,YAAY,GAAG,MAAM,C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CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC;aACjF;YACF,CAAC,CAAC,GAAG;KACN,CAAC;IACF,KAAK,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3D,OAAO,IAAI,CAAC;AACb,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,QAAgB,EAAE,MAAyC,EAAE,gBAAgB,GAAsB,EAAE;IACjJ,OAAO,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC;AACzE,CAAC"}
@@ -9,7 +9,7 @@ export declare const runBiome: (root: string, args: readonly string[], exception
9
9
  readonly reason: string;
10
10
  readonly rules: readonly [string, ...string[]];
11
11
  readonly subject?: string;
12
- }[] | undefined) => Effect.Effect<{
12
+ }[] | undefined, nonEffectFolders?: readonly string[] | undefined) => Effect.Effect<{
13
13
  code: number;
14
14
  stderr: string;
15
15
  stdout: string;
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAMxC,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACxB;AAID,eAAO,MAAM,QAAQ;;;;;;;;;kOA4BnB,CAAC"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAMxC,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACxB;AAID,eAAO,MAAM,QAAQ;;;;;;;;;kOAiCnB,CAAC"}
@@ -5,7 +5,7 @@ import { ChildProcess, ChildProcessSpawner } from "effect/process";
5
5
  import { withExceptionConfig } from "#adapters/biome/withExceptionConfig.ts";
6
6
  import { shadcnFiles } from "#inventory/shadcnFiles.ts";
7
7
  const BIN = createRequire(import.meta.url).resolve("@biomejs/biome/bin/biome");
8
- export const runBiome = Effect.fn("Biome.runBiome")(function* (root, args, exceptions = []) {
8
+ export const runBiome = Effect.fn("Biome.runBiome")(function* (root, args, exceptions = [], nonEffectFolders = []) {
9
9
  const files = yield* shadcnFiles(root);
10
10
  const toolOwned = [
11
11
  {
@@ -19,6 +19,6 @@ export const runBiome = Effect.fn("Biome.runBiome")(function* (root, args, excep
19
19
  const child = yield* spawner.spawn(ChildProcess.make(process.execPath, [BIN, ...args, ...configArgs, "--colors=off"], { cwd: root, stdin: "ignore" }));
20
20
  const [stdout, stderr, code] = yield* Effect.all([Stream.mkString(Stream.decodeText(child.stdout)), Stream.mkString(Stream.decodeText(child.stderr)), child.exitCode], { concurrency: "unbounded" });
21
21
  return { code: Number(code), stderr, stdout };
22
- })));
22
+ }), nonEffectFolders));
23
23
  });
24
24
  //# sourceMappingURL=run.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAA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IAC/C,CAAC,CAAC,EACH,gBAAgB,CAChB,CACD,CAAC;AACH,CAAC,CAAC,CAAC"}
@@ -4,5 +4,5 @@ export declare const withExceptionConfig: <TValue, TError, TRequirements>(root:
4
4
  readonly reason: string;
5
5
  readonly rules: readonly [string, ...string[]];
6
6
  readonly subject?: string;
7
- }[], run: (args: readonly string[]) => Effect.Effect<TValue, TError, TRequirements>) => Effect.Effect<TValue, TError | import("#inventory/filesystem.ts").FilesystemFailure | import("effect/PlatformError").PlatformError | Schema.SchemaError, TRequirements | import("effect/FileSystem").FileSystem | import("effect/Scope").Scope>;
7
+ }[], run: (args: readonly string[]) => Effect.Effect<TValue, TError, TRequirements>, nonEffectFolders?: readonly string[] | undefined) => Effect.Effect<TValue, TError | import("#inventory/filesystem.ts").FilesystemFailure | import("effect/PlatformError").PlatformError | Schema.SchemaError, TRequirements | import("effect/FileSystem").FileSystem | import("effect/Scope").Scope>;
8
8
  //# sourceMappingURL=withExceptionConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withExceptionConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMxC,eAAO,MAAM,mBAAmB,GAAqD,MAAM,EAAE,MAAM,EAAE,aAAa;;;;;iBAGrG,SAAS,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,oPAkC7E,CAAC"}
1
+ {"version":3,"file":"withExceptionConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMxC,eAAO,MAAM,mBAAmB,GAAqD,MAAM,EAAE,MAAM,EAAE,aAAa;;;;;iBAGrG,SAAS,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,sSAmC7E,CAAC"}
@@ -3,9 +3,9 @@ import { Effect, Schema } from "effect";
3
3
  import { exceptionConfig } from "#biome/exceptionConfig.ts";
4
4
  import { readOptionalText } from "#inventory/filesystem.ts";
5
5
  import { parseConfig, relocateConfig } from "./relocateConfig.js";
6
- export const withExceptionConfig = Effect.fn("Biome.withExceptionConfig")(function* (root, declarations, run) {
6
+ export const withExceptionConfig = Effect.fn("Biome.withExceptionConfig")(function* (root, declarations, run, nonEffectFolders = []) {
7
7
  const { includes, overrides } = exceptionConfig(declarations);
8
- if (includes.length === 0 && overrides.length === 0) {
8
+ if (includes.length === 0 && overrides.length === 0 && nonEffectFolders.length === 0) {
9
9
  return yield* run([]);
10
10
  }
11
11
  const { config, text } = yield* Effect.gen(function* () {
@@ -32,7 +32,7 @@ export const withExceptionConfig = Effect.fn("Biome.withExceptionConfig")(functi
32
32
  files: { ...files, includes: [...previousIncludes, ...includes.filter((pattern) => pattern !== "**"), "!.worktrees", "!.quality-biome-*"] },
33
33
  overrides: [...previousOverrides, ...overrides],
34
34
  };
35
- const path = yield* relocateConfig(root, join(root, config), generated);
35
+ const path = yield* relocateConfig(root, join(root, config), generated, nonEffectFolders);
36
36
  return yield* run([`--config-path=${path}`]);
37
37
  });
38
38
  //# sourceMappingURL=withExceptionConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withExceptionConfig.js","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAElE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QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACjF,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,6IAA6I;IAC7I,MAAM,SAAS,GAAG;QACjB,GAAG,GAAG;QACN,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,gBAAgB,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,EAAE,aAAa,EAAE,mBAAmB,CAAC,EAAE;QAC3I,SAAS,EAAE,CAAC,GAAG,iBAAiB,EAAE,GAAG,SAAS,CAAC;KAC/C,CAAC;IACF,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAC1F,OAAO,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC,CAAC;AAC9C,CAAC,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export interface BodyReference {
2
+ readonly file?: string | undefined;
3
+ readonly kind: "data" | "import" | "service" | "told";
4
+ readonly module: string;
5
+ readonly path: readonly string[];
6
+ }
7
+ export declare function dataFactory({ module, path }: BodyReference): boolean;
8
+ export declare function serviceFactory({ module, path }: BodyReference): boolean;
9
+ //# sourceMappingURL=bodyReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bodyReference.d.ts","sourceRoot":"","sources":["../../src/adapters/bodyReference.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,aAAa,GAAG,OAAO,CAEpE;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,aAAa,GAAG,OAAO,CAOvE"}
@@ -0,0 +1,10 @@
1
+ export function dataFactory({ module, path }) {
2
+ return (module === "effect" && (path[0] === "Schema" || path[0] === "Data")) || module === "effect/Schema" || module === "effect/Data";
3
+ }
4
+ export function serviceFactory({ module, path }) {
5
+ return ((module === "@shivaedev/service/defineService.ts" && path[0] === "defineService")
6
+ || ((module === "effect" || module === "effect/Context")
7
+ && path.at(-1) !== undefined
8
+ && ["Service", "Tag", "GenericTag", "Reference"].includes(path.at(-1) ?? "")));
9
+ }
10
+ //# sourceMappingURL=bodyReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bodyReference.js","sourceRoot":"","sources":["../../src/adapters/bodyReference.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAiB;IAC1D,OAAO,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,IAAI,MAAM,KAAK,eAAe,IAAI,MAAM,KAAK,aAAa,CAAC;AACxI,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAAE,IAAI,EAAiB;IAC7D,OAAO,CACN,CAAC,MAAM,KAAK,qCAAqC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,eAAe,CAAC;WAC9E,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,gBAAgB,CAAC;eACpD,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,SAAS;eACzB,CAAC,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAC9E,CAAC;AACH,CAAC"}
@@ -1,10 +1,5 @@
1
1
  import ts from "typescript";
2
- export interface BodyReference {
3
- readonly file?: string | undefined;
4
- readonly kind: "data" | "import" | "service" | "told";
5
- readonly module: string;
6
- readonly path: readonly string[];
7
- }
2
+ import { type BodyReference } from "./bodyReference.ts";
8
3
  export declare function storyBody(body: ts.Expression, checker: ts.TypeChecker): ts.ArrowFunction | ts.ConstructorDeclaration | ts.FunctionDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration | undefined;
9
4
  export declare function bodyReferences(body: ts.SignatureDeclaration, checker: ts.TypeChecker): (node: ts.Node) => BodyReference | undefined;
10
5
  //# sourceMappingURL=bodyReferences.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bodyReferences.d.ts","sourceRoot":"","sources":["../../src/adapters/bodyReferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAI5B,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC,WAAW,4LAGrE;AAiBD,wBAAgB,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAoB,EAAE,OAAO,EAAE,EAAE,CAAC,WAAW,UAqF/D,EAAE,CAAC,IAAI,KAAG,aAAa,GAAG,SAAS,CAWxD"}
1
+ {"version":3,"file":"bodyReferences.d.ts","sourceRoot":"","sources":["../../src/adapters/bodyReferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,OAAO,EAAE,KAAK,aAAa,EAA+B,MAAM,oBAAoB,CAAC;AAErF,wBAAgB,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC,WAAW,4LAGrE;AAiBD,wBAAgB,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAoB,EAAE,OAAO,EAAE,EAAE,CAAC,WAAW,UAiG/D,EAAE,CAAC,IAAI,KAAG,aAAa,GAAG,SAAS,CAWxD"}
@@ -1,6 +1,7 @@
1
1
  import ts from "typescript";
2
2
  import { importFrom } from "#rules/stories/importOrigin.ts";
3
- import { memberName, unwrapped } from "#rules/stories/syntax.ts";
3
+ import { memberName } from "#rules/stories/syntax.ts";
4
+ import { dataFactory, serviceFactory } from "./bodyReference.js";
4
5
  export function storyBody(body, checker) {
5
6
  const declaration = checker.getTypeAtLocation(body).getCallSignatures()[0]?.declaration;
6
7
  return declaration !== undefined && "body" in declaration ? declaration : undefined;
@@ -22,7 +23,8 @@ export function bodyReferences(body, checker) {
22
23
  const visiting = new Set();
23
24
  const told = body.parameters[0];
24
25
  function symbol(value) {
25
- return value?.declarations?.map(visit).find((reference) => reference !== undefined);
26
+ const direct = value?.declarations?.map(visit).find((reference) => reference !== undefined);
27
+ return direct ?? (value !== undefined && value.flags & ts.SymbolFlags.Alias ? symbol(checker.getAliasedSymbol(value)) : undefined);
26
28
  }
27
29
  function imported(node) {
28
30
  const name = importName(node);
@@ -66,7 +68,18 @@ export function bodyReferences(body, checker) {
66
68
  }
67
69
  return member(receiver, memberName(node) ?? "");
68
70
  }
71
+ function variable(node) {
72
+ const value = node.initializer ?? node.type;
73
+ return value === undefined ? undefined : visit(value);
74
+ }
69
75
  function expression(node) {
76
+ if (ts.isTypeReferenceNode(node)) {
77
+ const target = visit(node.typeName);
78
+ return target?.kind === "import" && dataFactory(target) ? { kind: "data", module: target.module, path: [] } : undefined;
79
+ }
80
+ if (ts.isQualifiedName(node)) {
81
+ return member(visit(node.left), node.right.text);
82
+ }
70
83
  if (ts.isIdentifier(node)) {
71
84
  return symbol(checker.getSymbolAtLocation(node));
72
85
  }
@@ -91,7 +104,7 @@ export function bodyReferences(body, checker) {
91
104
  return imported(node);
92
105
  }
93
106
  if (ts.isVariableDeclaration(node)) {
94
- return node.initializer === undefined ? undefined : visit(unwrapped(node.initializer));
107
+ return variable(node);
95
108
  }
96
109
  if (ts.isBindingElement(node)) {
97
110
  return binding(node);
@@ -113,13 +126,4 @@ export function bodyReferences(body, checker) {
113
126
  }
114
127
  return visit;
115
128
  }
116
- function dataFactory({ module, path }) {
117
- return (module === "effect" && (path[0] === "Schema" || path[0] === "Data")) || module === "effect/Schema" || module === "effect/Data";
118
- }
119
- function serviceFactory({ module, path }) {
120
- return ((module === "@shivaedev/service/defineService.ts" && path[0] === "defineService")
121
- || ((module === "effect" || module === "effect/Context")
122
- && path.at(-1) !== undefined
123
- && ["Service", "Tag", "GenericTag", "Reference"].includes(path.at(-1) ?? "")));
124
- }
125
129
  //# sourceMappingURL=bodyReferences.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bodyReferences.js","sourceRoot":"","sources":["../../src/adapters/bodyReferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AASjE,MAAM,UAAU,SAAS,CAAC,IAAmB,EAAE,OAAuB;IACrE,MAAM,WAAW,GAAG,OAAO,C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QACnB,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3B,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtB,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACvB,OAAO,KAAK,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"engineEscapes.d.ts","sourceRoot":"","sources":["../../src/adapters/engineEscapes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAC;AAO5B,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACxB;AA0BD,wBAAgB,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,MAAM;;;EAiFvF"}
1
+ {"version":3,"file":"engineEscapes.d.ts","sourceRoot":"","sources":["../../src/adapters/engineEscapes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAC;AAQ5B,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACxB;AA0BD,wBAAgB,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,MAAM;;;EAiFvF"}
@@ -1 +1 @@
1
- {"version":3,"file":"engineEscapes.js","sourceRoot":"","sources":["../../src/adapters/engineEscapes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,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AAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,gCAAgC,EAAE,CAAC,CAAC;QAClE,CAAC;IACF,CAAC;IACD,SAAS,KAAK,CAAC,IAAa;QAC3B,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACzB,OAAO;QACR,CAAC;QACD,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC;YACxG,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;YAClC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;gBAC1B,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;gBAC/B,OAAO;YACR,CAAC;QACF,CAAC;QACD,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3D,gBAAgB,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;QACD,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACxB,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,EAAE,CAAC;AAC5I,CAAC"}
@@ -10,7 +10,7 @@ function resolutionOptions(options, declarations) {
10
10
  function projectOf(root, parsed) {
11
11
  const options = parsed?.options ?? {
12
12
  allowJs: true,
13
- customConditions: ["source"],
13
+ customConditions: ["@shivaedev/source"],
14
14
  module: ts.ModuleKind.ESNext,
15
15
  moduleResolution: ts.ModuleResolutionKind.Bundler,
16
16
  resolveJsonModule: true,