@marktiderman/genesis-cli 1.16.2 → 1.17.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.
@@ -1,6 +1,9 @@
1
+ import { OverlayMarker } from '@marktiderman/genesis-features';
2
+
1
3
  /**
2
4
  * Public types for `genesis doctor` and its rule plugins.
3
5
  */
6
+
4
7
  /** `info` is reported but never fails a run, `--strict` included. */
5
8
  type Level = "error" | "warn" | "info";
6
9
  /** A rule's configured level: a level, or `"off"` to drop its findings. */
@@ -227,6 +230,8 @@ interface DoctorContext {
227
230
  config: DoctorConfig;
228
231
  /** The git ref change checks compare against (`--base`), when given. */
229
232
  base?: string;
233
+ /** The run treats warnings as failures (`--strict`). */
234
+ strict?: boolean;
230
235
  /** The Genesis and local packages whose declared rules run, with their declarations. */
231
236
  packages: readonly DeclaringPackage[];
232
237
  /** Record a finding. Config `rules` levels and `allow` entries apply afterwards. */
@@ -330,6 +335,8 @@ interface DeclaringPackage {
330
335
  error?: string;
331
336
  /** What was left out of an accepted declaration (unknown keys, rules that don't validate), when anything was. */
332
337
  ignored?: string[];
338
+ /** A local package's valid `genesis.overlay` marker: it is the app's copy of the Genesis package of that name. */
339
+ overlay?: OverlayMarker;
333
340
  }
334
341
 
335
342
  /** A genesis.config.json that can't be read or has a block of the wrong shape. */
package/dist/doctor.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { D as DoctorConfig, k as GenesisFacts, l as PatternRule, h as DoctorPlugin, S as SourceFile, g as DoctorContext, m as PreferRule, n as DeclaringPackage, o as PackageDeclaration, i as DoctorResult, F as Finding } from './config-DewJ3DR6.js';
2
- export { A as AllowEntry, C as CompanionPackage, q as ContractsConfig, f as DoctorConfigError, s as DoctorPack, t as FindingInput, c as GenesisConfigError, j as GenesisConfigFile, b as GenesisLinks, L as Level, N as NativePackConfig, u as PackageRuleSetting, w as PackagesPackConfig, x as PluginSpec, y as PrimitiveEntry, R as RuleSetting, z as SupabasePackConfig, B as loadConfig, r as readGenesisConfig, E as validateConfig, v as validateLinks } from './config-DewJ3DR6.js';
1
+ import { D as DoctorConfig, k as GenesisFacts, l as PatternRule, h as DoctorPlugin, S as SourceFile, g as DoctorContext, m as PreferRule, n as DeclaringPackage, o as PackageDeclaration, i as DoctorResult, F as Finding } from './config-1jP8eCZy.js';
2
+ export { A as AllowEntry, C as CompanionPackage, q as ContractsConfig, f as DoctorConfigError, s as DoctorPack, t as FindingInput, c as GenesisConfigError, j as GenesisConfigFile, b as GenesisLinks, L as Level, N as NativePackConfig, u as PackageRuleSetting, w as PackagesPackConfig, x as PluginSpec, y as PrimitiveEntry, R as RuleSetting, z as SupabasePackConfig, B as loadConfig, r as readGenesisConfig, E as validateConfig, v as validateLinks } from './config-1jP8eCZy.js';
3
+ import '@marktiderman/genesis-features';
3
4
 
4
5
  /** The installed folder of `name`, looking in node_modules from `from` upward (works with hoisting and pnpm). */
5
6
  declare function findPackageDir(from: string, name: string): string | null;
@@ -26,7 +27,7 @@ declare function parseRulesMarkdown(markdown: string): PatternRule[];
26
27
  declare function defineDoctorPlugin(plugin: DoctorPlugin): DoctorPlugin;
27
28
 
28
29
  /** Ids of the built-in rules, for `rules` overrides and `allow` entries. */
29
- declare const BUILTIN_RULES: readonly ["local-primitives", "starter-leftover", "forbidden-import", "raw-tag", "palette-color", "arbitrary-color", "raw-color", "undefined-token", "shadowed-export", "version-skew", "duplicate-genesis-package", "peer-range-mismatch", "hand-rolled-sub-nav", "local-genesis-copy", "resource-workspace", "page-layout", "iso-date-slice", "resource-view-tree", "studio-server-auth-import", "removed-scope-name", "scope-practice-id", "native-raw-primitive", "native-literal-color", "native-custom-header", "native-screen-layout", "store-readiness", "migration-grants", "migration-rls", "migration-definer-search-path", "migration-edited", "migration-testing-kit", "migration-view-rls", "package-app-import", "package-undeclared-dependency", "package-migration-test", "package-migration-number", "package-migration-edited", "package-unregistered", "package-unversioned-change", "package-export-missing", "package-block-invalid", "package-untagged-tests", "package-doctor-declaration", "package-rules-invalid", "package-rule-override", "ratchet-skipped", "allow-grew", "rules-weakened", "agent-guide-stale", "contracts-stale"];
30
+ declare const BUILTIN_RULES: readonly ["local-primitives", "starter-leftover", "forbidden-import", "raw-tag", "palette-color", "arbitrary-color", "raw-color", "undefined-token", "shadowed-export", "version-skew", "duplicate-genesis-package", "peer-range-mismatch", "hand-rolled-sub-nav", "local-genesis-copy", "resource-workspace", "page-layout", "iso-date-slice", "resource-view-tree", "studio-server-auth-import", "removed-scope-name", "scope-practice-id", "deprecated-import", "beta-import", "native-raw-primitive", "native-literal-color", "native-custom-header", "native-screen-layout", "store-readiness", "migration-grants", "migration-rls", "migration-definer-search-path", "migration-edited", "migration-testing-kit", "migration-view-rls", "package-app-import", "package-undeclared-dependency", "package-migration-test", "package-migration-number", "package-migration-edited", "package-unregistered", "package-unversioned-change", "package-export-missing", "package-block-invalid", "package-untagged-tests", "package-doctor-declaration", "overlay-unmarked", "overlay-invalid", "overlay-age", "overlay-version", "package-rules-invalid", "package-rule-override", "ratchet-skipped", "allow-grew", "rules-weakened", "agent-guide-stale", "contracts-stale"];
30
31
 
31
32
  /**
32
33
  * Minimal globs for config: `*` matches within a folder, `**` across folders,
@@ -191,7 +192,7 @@ declare function primitivesSummary(packages: readonly DeclaringPackage[]): {
191
192
  declare function catalogTable(rows: readonly PrimitiveRow[], options?: {
192
193
  docs?: boolean;
193
194
  }): string;
194
- /** `genesis primitives`: the catalog for a terminal. */
195
+ /** `genesis catalog` (and its old name, `genesis primitives`): the catalog for a terminal. */
195
196
  declare function formatPrimitives(rows: readonly PrimitiveRow[]): string;
196
197
  declare const SKILL_PATH = ".claude/skills/genesis/SKILL.md";
197
198
  /** `.claude/skills/genesis/SKILL.md`, generated. */