@animus-ui/extract 0.1.9 → 0.1.12

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 (158) hide show
  1. package/README.md +48 -1
  2. package/crates/extract-v2/animus-extract-v2.darwin-arm64.node +0 -0
  3. package/crates/extract-v2/animus-extract-v2.linux-arm64-gnu.node +0 -0
  4. package/crates/extract-v2/animus-extract-v2.linux-x64-gnu.node +0 -0
  5. package/crates/extract-v2/index.d.ts +17 -98
  6. package/dist/index.cjs +78 -2101
  7. package/dist/index.mjs +2 -2026
  8. package/dist/{analyze-project-args.d.ts → pipeline/analyze-project-args.d.ts} +0 -12
  9. package/dist/pipeline/analyze-project-args.d.ts.map +1 -0
  10. package/dist/pipeline/assemble-stylesheet.d.ts +23 -0
  11. package/dist/pipeline/assemble-stylesheet.d.ts.map +1 -0
  12. package/dist/pipeline/asset-placeholders.d.ts +4 -0
  13. package/dist/pipeline/asset-placeholders.d.ts.map +1 -0
  14. package/dist/pipeline/content-hash.d.ts +2 -0
  15. package/dist/pipeline/content-hash.d.ts.map +1 -0
  16. package/dist/pipeline/core-options.d.ts +96 -0
  17. package/dist/pipeline/core-options.d.ts.map +1 -0
  18. package/dist/pipeline/correlate-external-tokens.d.ts +38 -0
  19. package/dist/pipeline/correlate-external-tokens.d.ts.map +1 -0
  20. package/dist/pipeline/discover-files.d.ts +4 -0
  21. package/dist/pipeline/discover-files.d.ts.map +1 -0
  22. package/dist/pipeline/discover-packages.d.ts +55 -0
  23. package/dist/pipeline/discover-packages.d.ts.map +1 -0
  24. package/dist/pipeline/dynamic-prop-config.d.ts +22 -0
  25. package/dist/pipeline/dynamic-prop-config.d.ts.map +1 -0
  26. package/dist/pipeline/engine-adapter.d.ts +63 -0
  27. package/dist/pipeline/engine-adapter.d.ts.map +1 -0
  28. package/dist/pipeline/engine-retirement.d.ts +3 -0
  29. package/dist/pipeline/engine-retirement.d.ts.map +1 -0
  30. package/dist/pipeline/error-diagnostics.d.ts +8 -0
  31. package/dist/pipeline/error-diagnostics.d.ts.map +1 -0
  32. package/dist/{index.d.ts → pipeline/index.d.ts} +16 -6
  33. package/dist/pipeline/index.d.ts.map +1 -0
  34. package/dist/pipeline/internal-wire.d.ts +2 -0
  35. package/dist/pipeline/internal-wire.d.ts.map +1 -0
  36. package/dist/pipeline/manifest-diagnostics.d.ts +57 -0
  37. package/dist/pipeline/manifest-diagnostics.d.ts.map +1 -0
  38. package/dist/pipeline/manifest-schema.d.ts +117 -0
  39. package/dist/pipeline/manifest-schema.d.ts.map +1 -0
  40. package/dist/pipeline/mdx-preprocessor.d.ts +25 -0
  41. package/dist/pipeline/mdx-preprocessor.d.ts.map +1 -0
  42. package/dist/pipeline/path-aliases.d.ts +15 -0
  43. package/dist/pipeline/path-aliases.d.ts.map +1 -0
  44. package/dist/{post-process-css.d.ts → pipeline/post-process-css.d.ts} +0 -8
  45. package/dist/pipeline/post-process-css.d.ts.map +1 -0
  46. package/dist/pipeline/prefix.d.ts +8 -0
  47. package/dist/pipeline/prefix.d.ts.map +1 -0
  48. package/dist/pipeline/replacement-plans.d.ts +22 -0
  49. package/dist/pipeline/replacement-plans.d.ts.map +1 -0
  50. package/dist/pipeline/resolve-asset.d.ts +11 -0
  51. package/dist/pipeline/resolve-asset.d.ts.map +1 -0
  52. package/dist/pipeline/run-analysis.d.ts +62 -0
  53. package/dist/pipeline/run-analysis.d.ts.map +1 -0
  54. package/dist/pipeline/source-corpus.d.ts +25 -0
  55. package/dist/pipeline/source-corpus.d.ts.map +1 -0
  56. package/dist/pipeline/source-identity.d.ts +63 -0
  57. package/dist/pipeline/source-identity.d.ts.map +1 -0
  58. package/dist/pipeline/source-ingestion.d.ts +168 -0
  59. package/dist/pipeline/source-ingestion.d.ts.map +1 -0
  60. package/dist/pipeline/static-css.d.ts +16 -0
  61. package/dist/pipeline/static-css.d.ts.map +1 -0
  62. package/dist/pipeline/structural-self-check.d.ts +12 -0
  63. package/dist/pipeline/structural-self-check.d.ts.map +1 -0
  64. package/dist/pipeline/svelte-source-adapter.d.ts +81 -0
  65. package/dist/pipeline/svelte-source-adapter.d.ts.map +1 -0
  66. package/dist/pipeline/system-config.d.ts +40 -0
  67. package/dist/pipeline/system-config.d.ts.map +1 -0
  68. package/dist/pipeline/system-props-module.d.ts +8 -0
  69. package/dist/pipeline/system-props-module.d.ts.map +1 -0
  70. package/dist/pipeline/timing-waterfall.d.ts +6 -0
  71. package/dist/pipeline/timing-waterfall.d.ts.map +1 -0
  72. package/dist/pipeline/tsconfig-paths.d.ts +7 -0
  73. package/dist/pipeline/tsconfig-paths.d.ts.map +1 -0
  74. package/dist/pipeline/unit-fallback.d.ts +2 -0
  75. package/dist/pipeline/unit-fallback.d.ts.map +1 -0
  76. package/dist/pipeline/utils.d.ts +3 -0
  77. package/dist/pipeline/utils.d.ts.map +1 -0
  78. package/dist/pipeline/watch-keys.d.ts +2 -0
  79. package/dist/pipeline/watch-keys.d.ts.map +1 -0
  80. package/dist/pipeline-DeEENy5C.mjs +2905 -0
  81. package/dist/pipeline-x1yBZ2UP.cjs +3386 -0
  82. package/dist/session/extraction-session.d.ts +240 -0
  83. package/dist/session/extraction-session.d.ts.map +1 -0
  84. package/dist/session/index.d.ts +10 -0
  85. package/dist/session/index.d.ts.map +1 -0
  86. package/dist/session/published-set.d.ts +52 -0
  87. package/dist/session/published-set.d.ts.map +1 -0
  88. package/dist/session/resolve-packages.d.ts +7 -0
  89. package/dist/session/resolve-packages.d.ts.map +1 -0
  90. package/dist/session/session-paths.d.ts +97 -0
  91. package/dist/session/session-paths.d.ts.map +1 -0
  92. package/dist/session/singleton.d.ts +85 -0
  93. package/dist/session/singleton.d.ts.map +1 -0
  94. package/dist/session/timing.d.ts +2 -0
  95. package/dist/session/timing.d.ts.map +1 -0
  96. package/dist/session/turbopack-orchestrator.d.ts +27 -0
  97. package/dist/session/turbopack-orchestrator.d.ts.map +1 -0
  98. package/dist/session.cjs +1999 -0
  99. package/dist/session.mjs +1955 -0
  100. package/index-v2.js +0 -9
  101. package/package.json +22 -9
  102. package/dist/analyze-project-args.d.ts.map +0 -1
  103. package/dist/assemble-stylesheet.d.ts +0 -58
  104. package/dist/assemble-stylesheet.d.ts.map +0 -1
  105. package/dist/asset-placeholders.d.ts +0 -29
  106. package/dist/asset-placeholders.d.ts.map +0 -1
  107. package/dist/content-hash.d.ts +0 -9
  108. package/dist/content-hash.d.ts.map +0 -1
  109. package/dist/correlate-external-tokens.d.ts +0 -46
  110. package/dist/correlate-external-tokens.d.ts.map +0 -1
  111. package/dist/discover-files.d.ts +0 -10
  112. package/dist/discover-files.d.ts.map +0 -1
  113. package/dist/discover-packages.d.ts +0 -192
  114. package/dist/discover-packages.d.ts.map +0 -1
  115. package/dist/dynamic-prop-config.d.ts +0 -37
  116. package/dist/dynamic-prop-config.d.ts.map +0 -1
  117. package/dist/engine-adapter.d.ts +0 -97
  118. package/dist/engine-adapter.d.ts.map +0 -1
  119. package/dist/engine-retirement.d.ts +0 -22
  120. package/dist/engine-retirement.d.ts.map +0 -1
  121. package/dist/error-diagnostics.d.ts +0 -32
  122. package/dist/error-diagnostics.d.ts.map +0 -1
  123. package/dist/external-keyframes.d.ts +0 -23
  124. package/dist/external-keyframes.d.ts.map +0 -1
  125. package/dist/index.d.ts.map +0 -1
  126. package/dist/manifest-diagnostics.d.ts +0 -62
  127. package/dist/manifest-diagnostics.d.ts.map +0 -1
  128. package/dist/mdx-preprocessor.d.ts +0 -39
  129. package/dist/mdx-preprocessor.d.ts.map +0 -1
  130. package/dist/path-aliases.d.ts +0 -34
  131. package/dist/path-aliases.d.ts.map +0 -1
  132. package/dist/post-process-css.d.ts.map +0 -1
  133. package/dist/prefix.d.ts +0 -15
  134. package/dist/prefix.d.ts.map +0 -1
  135. package/dist/replacement-plans.d.ts +0 -46
  136. package/dist/replacement-plans.d.ts.map +0 -1
  137. package/dist/resolve-asset.d.ts +0 -14
  138. package/dist/resolve-asset.d.ts.map +0 -1
  139. package/dist/run-analysis.d.ts +0 -74
  140. package/dist/run-analysis.d.ts.map +0 -1
  141. package/dist/source-identity.d.ts +0 -93
  142. package/dist/source-identity.d.ts.map +0 -1
  143. package/dist/static-css.d.ts +0 -25
  144. package/dist/static-css.d.ts.map +0 -1
  145. package/dist/system-config.d.ts +0 -57
  146. package/dist/system-config.d.ts.map +0 -1
  147. package/dist/system-props-module.d.ts +0 -22
  148. package/dist/system-props-module.d.ts.map +0 -1
  149. package/dist/timing-waterfall.d.ts +0 -17
  150. package/dist/timing-waterfall.d.ts.map +0 -1
  151. package/dist/tsconfig-paths.d.ts +0 -8
  152. package/dist/tsconfig-paths.d.ts.map +0 -1
  153. package/dist/unit-fallback.d.ts +0 -7
  154. package/dist/unit-fallback.d.ts.map +0 -1
  155. package/dist/utils.d.ts +0 -3
  156. package/dist/utils.d.ts.map +0 -1
  157. package/dist/watch-keys.d.ts +0 -12
  158. package/dist/watch-keys.d.ts.map +0 -1
@@ -1,11 +1,3 @@
1
- /**
2
- * The positional argument tuple for the NAPI `analyzeProject` call.
3
- *
4
- * This is the single authoritative copy of the 17-slot contract consumed by
5
- * both extraction plugins (vite-plugin and next-plugin). The slot order is
6
- * mirrored by the Rust NAPI surface — changing it requires a coordinated
7
- * Rust-side update.
8
- */
9
1
  /** @internal */
10
2
  export type AnalyzeProjectArgs = [
11
3
  filesJson: string,
@@ -42,12 +34,8 @@ export interface AnalyzeProjectInputs {
42
34
  globalStyleBlocksJson: string | null;
43
35
  pathAliasesJson: string | null;
44
36
  keyframesJson: string | null;
45
- /** Forced-emission declarations (spec: static-emission-overrides). */
46
37
  staticCssJson: string | null;
47
- /** Condition alias map JSON (modern-css-surface inc 03), or null. */
48
38
  conditionAliasesJson: string | null;
49
- /** rootDir-relative external package dirs (JSON string array) for the
50
- * external-token candidate walk, or null. */
51
39
  externalDirsJson: string | null;
52
40
  transformSourcesJson: string | null;
53
41
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyze-project-args.d.ts","sourceRoot":"","sources":["../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IAAI,CAAC;IAC7B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,gBAAgB;AAChB,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,oBAAoB,GAC3B,kBAAkB,CAqBpB"}
@@ -0,0 +1,23 @@
1
+ export declare const ANIMUS_LAYERS: readonly ['anm-global', 'anm-base', 'anm-variants', 'anm-compounds', 'anm-states', 'anm-system', 'anm-custom'];
2
+ export declare function validateLayerOrder(layers: string[]): void;
3
+ export declare function stripLeadingLayerDeclaration(css: string): string;
4
+ export interface AssembleStylesheetParts {
5
+ declaration: string;
6
+ variables: string;
7
+ body: string;
8
+ }
9
+ export interface AssembleStylesheetOptions {
10
+ layers?: string[];
11
+ variableCss?: string;
12
+ globalCss?: string;
13
+ componentCss?: string;
14
+ split?: boolean;
15
+ }
16
+ export declare function assembleStylesheet(options: AssembleStylesheetOptions & {
17
+ split: true;
18
+ }): AssembleStylesheetParts;
19
+ export declare function assembleStylesheet(options: AssembleStylesheetOptions & {
20
+ split?: false;
21
+ }): string;
22
+ export declare function assembleStylesheet(options: AssembleStylesheetOptions): string | AssembleStylesheetParts;
23
+ //# sourceMappingURL=assemble-stylesheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assemble-stylesheet.d.ts","sourceRoot":"","sources":["../../pipeline/assemble-stylesheet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,YACxB,YAAY,EACZ,UAAU,EACV,cAAc,EACd,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,YAAY,CACJ,CAAC;AAUX,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CA2BzD;AAED,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,GACnD,uBAAuB,CAAC;AAC3B,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACrD,MAAM,CAAC;AACV,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,yBAAyB,GACjC,MAAM,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const ASSET_PLACEHOLDER_PREFIX = "animus-asset:";
2
+ export declare function findAssetSpecifiers(css: string): string[];
3
+ export declare function substituteAssetPlaceholders(css: string, urlBySpecifier: ReadonlyMap<string, string>): string;
4
+ //# sourceMappingURL=asset-placeholders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-placeholders.d.ts","sourceRoot":"","sources":["../../pipeline/asset-placeholders.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAWxD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAczD;AAED,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAC1C,MAAM,CAgBR"}
@@ -0,0 +1,2 @@
1
+ export declare function contentHash(source: string | Buffer): string;
2
+ //# sourceMappingURL=content-hash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-hash.d.ts","sourceRoot":"","sources":["../../pipeline/content-hash.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAE3D"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * One option schema shared by the Vite, Next, and CLI drivers: key semantics,
3
+ * default exclusions, and mode authority cannot drift per driver.
4
+ */
5
+ import type { StaticCssConfig } from './static-css';
6
+ export declare const DRIVER_NAMESPACES: readonly ['vite', 'next', 'cli'];
7
+ export type DriverNamespace = (typeof DRIVER_NAMESPACES)[number];
8
+ /**
9
+ * Applied unconditionally: `node_modules` belongs to external-package
10
+ * collection, and `.next`/`.animus` hold output, never source.
11
+ */
12
+ export declare const STRUCTURAL_EXCLUDE: string[];
13
+ /** Defaults a user `exclude` list replaces; the structural set it cannot. */
14
+ export declare const REPLACEABLE_DEFAULT_EXCLUDE: string[];
15
+ export declare const DEFAULT_EXCLUDE: string[];
16
+ /** Explicit dev/prod emission mode. When absent each driver defaults on its
17
+ * own signal: Vite `config.command`, Next `NODE_ENV`, CLI production. */
18
+ export type AnimusMode = 'development' | 'production';
19
+ export interface AnimusCoreOptions {
20
+ /** Path to a module exporting a SystemInstance from `@animus-ui/system`. */
21
+ system: string;
22
+ /**
23
+ * Replaces the replaceable defaults, never the structural ones. Patterns
24
+ * with `*`/`?` are globs on the root-relative path; others are substrings.
25
+ */
26
+ exclude?: string[];
27
+ /** File extensions to scan; replaces the default list entirely. */
28
+ extensions?: string[];
29
+ /** When true, extraction failures throw instead of warning. */
30
+ strict?: boolean;
31
+ verbose?: boolean;
32
+ /** Namespace prefix for CSS variables and class names. */
33
+ prefix?: string;
34
+ /** Browser targets for CSS autoprefixing and syntax lowering. */
35
+ targets?: string | string[];
36
+ /** Minification control; `undefined` = minify in production mode only. */
37
+ minify?: boolean;
38
+ /** Forced-emission declarations for usage the scanner cannot observe. */
39
+ staticCss?: StaticCssConfig;
40
+ /** Full `@layer` declaration order. */
41
+ layers?: string[];
42
+ engine?: 'v2';
43
+ /**
44
+ * Decides emitted bytes (minify, dev diagnostics, engine devMode) and wins
45
+ * over environment signals; never process lifecycle (watchers, HMR).
46
+ */
47
+ mode?: AnimusMode;
48
+ /** Root every relative input resolves against. Plugin drivers derive their
49
+ * root from the host bundler and reject this key. */
50
+ root?: string;
51
+ }
52
+ export declare const CORE_OPTION_KEYS: ReadonlySet<string>;
53
+ /** Carries a stable `name` so drivers can map it to their own config-error
54
+ * surface (the CLI's exit code 2). */
55
+ export declare class AnimusConfigError extends Error {
56
+ constructor(message: string);
57
+ }
58
+ /** Applies to unknown and rejected KEYS only: invalid VALUES always throw.
59
+ * Published plugin entries pass `'warn'` so a stale key cannot break them. */
60
+ export type AssertKnownOptionKeysOpts = {
61
+ onUnknownKey?: 'throw';
62
+ } | {
63
+ onUnknownKey: 'warn';
64
+ warn: (message: string) => void;
65
+ };
66
+ /**
67
+ * `ownKeys` is the caller's own top-level surface; `rejectKeys` names core
68
+ * keys it does not honor, which must fail rather than be silently ignored.
69
+ */
70
+ export declare function assertKnownOptionKeys<Value>(raw: Readonly<Record<string, Value>>, ownKeys?: readonly string[], rejectKeys?: ReadonlyArray<{
71
+ key: string;
72
+ reason: string;
73
+ }>, opts?: AssertKnownOptionKeysOpts): void;
74
+ export interface ExcludeMatcher {
75
+ /** Effective list: structural ∪ (user ?? replaceable defaults). */
76
+ readonly patterns: readonly string[];
77
+ /** Per-pattern hit counts over this matcher's lifetime; zero hits after
78
+ * discovery means the pattern matched nothing. */
79
+ stats(): ReadonlyMap<string, number>;
80
+ /** True when the path is excluded; both path forms are tested. */
81
+ matches(fullPath: string, relativePath: string): boolean;
82
+ explain(fullPath: string, relativePath: string): string | null;
83
+ }
84
+ /**
85
+ * A user list replaces only the replaceable defaults. Driver-owned
86
+ * invariants belong in `extraStructural`; a user list would replace those.
87
+ */
88
+ export declare function createExcludeMatcher(userPatterns?: readonly string[], extraStructural?: readonly string[]): ExcludeMatcher;
89
+ /** How a resolved value was decided; surfaced by `--print-config`. */
90
+ export type OptionProvenance = 'explicit' | 'driver-default' | 'default';
91
+ export interface ResolvedMode {
92
+ mode: AnimusMode;
93
+ provenance: OptionProvenance;
94
+ }
95
+ export declare function resolveMode(explicit: AnimusMode | undefined, driverDefault: () => AnimusMode): ResolvedMode;
96
+ //# sourceMappingURL=core-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core-options.d.ts","sourceRoot":"","sources":["../../pipeline/core-options.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,iBAAiB,YAAI,MAAM,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAIjE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,UAAuC,CAAC;AAEvE,6EAA6E;AAC7E,eAAO,MAAM,2BAA2B,UAA+B,CAAC;AAExE,eAAO,MAAM,eAAe,UAG3B,CAAC;AAEF;0EAC0E;AAC1E,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,YAAY,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,0EAA0E;IAC1E,MAAM,CAAC,EAAE,OAAO,CAAC;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M,GAAG,MAAM,GAAG,IAAI,CAAC;CAChE;AA6DD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,EAChC,eAAe,GAAE,SAAS,MAAM,EAAO,GACtC,cAAc,CA2BhB;AAED,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,UAAU,GAAG,SAAS,EAChC,aAAa,EAAE,MAAM,UAAU,GAC9B,YAAY,CAKd"}
@@ -0,0 +1,38 @@
1
+ import type { ManifestDiagnostic } from './manifest-diagnostics';
2
+ /**
3
+ * Index the loader-captured theme manifests by owning specifier. An
4
+ * unparseable capture throws: an empty index reads as "no source defines it".
5
+ */
6
+ export declare function buildSourceTokenIndex(opts: {
7
+ sourceThemeManifestsJson: string | null | undefined;
8
+ /** Absolute package dir → owning specifier. */
9
+ dirOwners: Record<string, string>;
10
+ }): Map<string, Set<string>>;
11
+ /**
12
+ * One message per distinct (component, token, specifier) whose source
13
+ * defines the token. Severity routing stays at the caller.
14
+ */
15
+ export declare function correlateExternalTokenDiagnostics(opts: {
16
+ diagnostics: ManifestDiagnostic[] | undefined;
17
+ /** rootDir-relative file path → owning specifier. */
18
+ fileOwners: Record<string, string>;
19
+ /** specifier → token paths the source itself defines. */
20
+ sourceTokens: Map<string, Set<string>>;
21
+ }): string[];
22
+ /**
23
+ * The one cross-source token-contract gate both plugins share, so the hosts
24
+ * cannot drift on wiring or severity.
25
+ */
26
+ export declare function enforceExternalTokenContracts(opts: {
27
+ diagnostics: ManifestDiagnostic[] | undefined;
28
+ /** rootDir-relative file path → owning specifier. */
29
+ fileOwners: Record<string, string>;
30
+ /** Absolute package dir → owning specifier. */
31
+ dirOwners: Record<string, string>;
32
+ sourceThemeManifestsJson: string | null | undefined;
33
+ strict: boolean | undefined;
34
+ /** Host log prefix, e.g. `[animus-extract]`. */
35
+ prefix: string;
36
+ warn: (message: string) => void;
37
+ }): void;
38
+ //# sourceMappingURL=correlate-external-tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"correlate-external-tokens.d.ts","sourceRoot":"","sources":["../../pipeline/correlate-external-tokens.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAUjE;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,wBAAwB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAwD3B;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE;IACtD,WAAW,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC;IAC9C,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,yDAAyD;IACzD,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;CACxC,GAAG,MAAM,EAAE,CAyBX;AASD;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE;IAClD,WAAW,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC;IAC9C,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,wBAAwB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,GAAG,IAAI,CAwBP"}
@@ -0,0 +1,4 @@
1
+ import type { ExcludeMatcher } from './core-options';
2
+ export declare function compareDiscoveryOrder(a: string, b: string): number;
3
+ export declare function discoverFiles(dir: string, rootDir: string, exclude: ExcludeMatcher | undefined, extensionsSet: ReadonlySet<string>): string[];
4
+ //# sourceMappingURL=discover-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discover-files.d.ts","sourceRoot":"","sources":["../../pipeline/discover-files.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMrD,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAQlE;AAED,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,GAAG,SAAS,EACnC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,GACjC,MAAM,EAAE,CAIV"}
@@ -0,0 +1,55 @@
1
+ export declare function findPackageRoot(absEntryPath: string): string;
2
+ export declare const PACKAGE_SRC_EXCLUDES: string[];
3
+ export declare function isExcludedPackageRelativePath(rel: string): boolean;
4
+ export declare function walkPackageSources(packageDir: string, extensionsSet: ReadonlySet<string>): string[];
5
+ export interface ExternalPackageOutcome {
6
+ specifier: string;
7
+ outcome: 'resolved' | 'unresolvable' | 'empty' | 'stale-dist';
8
+ fileCount: number;
9
+ }
10
+ export declare function resolveAbsolutePathSpecifier(absSpecifier: string, extensionsSet: ReadonlySet<string>): string | null;
11
+ export interface CollectedExternalPackages {
12
+ /** New file entries for the analysis set, at rootDir-relative paths. */
13
+ entries: Array<{
14
+ path: string;
15
+ source: string;
16
+ }>;
17
+ /** specifier → rootDir-relative module-resolution entry. */
18
+ packageMap: Record<string, string>;
19
+ sourceEntries: Map<string, string>;
20
+ /** Absolute directories for bundler loader allowlisting. */
21
+ packageDirs: string[];
22
+ /** Absolute package dir → every declared specifier that claimed it, in
23
+ * declaration order. `firstOwners` derives the single-value view. */
24
+ dirOwnerSets: Record<string, string[]>;
25
+ /** Absolute package dir → the exact extension list its walk used. Rewalking
26
+ * with the project default drops files the widened walk admitted. */
27
+ dirExtensions: Record<string, string[]>;
28
+ /** rootDir-relative path → the first specifier that contributed it. Files
29
+ * the caller's set already supplied stay unattributed. */
30
+ fileOwners: Record<string, string>;
31
+ outcomes: ExternalPackageOutcome[];
32
+ }
33
+ export declare function collectExternalPackageSources(opts: {
34
+ specifiers: string[];
35
+ resolveSpecifier: (specifier: string) => string | null | Promise<string | null>;
36
+ rootDir: string;
37
+ extensionsSet: ReadonlySet<string>;
38
+ hasEntry: (relPath: string) => boolean;
39
+ onSourceRead?: (source: string, relPath: string, absPath: string) => void;
40
+ onUnreadable: <Thrown>(relPath: string, error: Thrown) => void;
41
+ /** Called once per specifier after its package dir is derived and BEFORE
42
+ * its sources are walked, so a host can watch with no blind gap. */
43
+ onPackageResolved?: (specifier: string, packageDir: string) => void;
44
+ }): Promise<CollectedExternalPackages>;
45
+ export interface PackageDirOwners {
46
+ [packageDir: string]: string;
47
+ }
48
+ export declare function firstOwners(dirOwnerSets: Record<string, string[]>): PackageDirOwners;
49
+ export declare function excludeCollectedPackages(collected: CollectedExternalPackages, rejectedSpecifiers: ReadonlySet<string>, rootDir: string): CollectedExternalPackages;
50
+ export declare function unresolvableIncludesMessage(outcomes: ExternalPackageOutcome[]): string | null;
51
+ /** A stale dist silently skews merged registry content while discovery
52
+ * compiles the fresh sources; null when no specifier is stale. */
53
+ export declare function staleDistIncludesMessage(outcomes: ExternalPackageOutcome[]): string | null;
54
+ export declare function extractSystemFilePackages(systemFilePath: string): string[];
55
+ //# sourceMappingURL=discover-packages.d.ts.map
@@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AI,CAMf;AAED,wBAAgB,yBAAyB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,CA+K1E"}
@@ -0,0 +1,22 @@
1
+ export interface DynamicPropMeta {
2
+ varName: string;
3
+ slotClass: string;
4
+ property?: string | null;
5
+ properties?: readonly string[] | null;
6
+ transformName?: string | null;
7
+ transformFnSource?: string | null;
8
+ scaleValues?: Record<string, string> | null;
9
+ }
10
+ export interface DynamicPropConfigEntry {
11
+ varName: string;
12
+ slotClass: string;
13
+ property?: string;
14
+ properties?: readonly string[];
15
+ transformName?: string;
16
+ scaleValues?: Record<string, string>;
17
+ }
18
+ export interface DynamicPropConfig {
19
+ [propName: string]: DynamicPropConfigEntry;
20
+ }
21
+ export declare function buildDynamicPropConfig(dynamicProps: Record<string, DynamicPropMeta>): DynamicPropConfig;
22
+ //# sourceMappingURL=dynamic-prop-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamic-prop-config.d.ts","sourceRoot":"","sources":["../../pipeline/dynamic-prop-config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC7C;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,QAAQ,EAAE,MAAM,GAAG,sBAAsB,CAAC;CAC5C;AAED,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAC5C,iBAAiB,CAwBnB"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * One engine API for both plugins. Imports neither the native binding nor any
3
+ * plugin or bundler — every such dependency arrives injected.
4
+ */
5
+ /** The stateful engine handle produced by `new native.ExtractEngine(...)`. */
6
+ export interface V2ExtractEngine {
7
+ analyze(filesJson: string): string;
8
+ transformFile(path: string): string;
9
+ clearCache(): void;
10
+ }
11
+ export interface TransformFileResult {
12
+ code: string;
13
+ hasComponents: boolean;
14
+ }
15
+ /**
16
+ * `analyzeProject` takes its arguments positionally to mirror the NAPI
17
+ * contract, so argument order is part of the contract.
18
+ */
19
+ export interface EngineApi {
20
+ loadSystemModule: (...args: unknown[]) => any;
21
+ /** Parse-only native fact extraction used to prepare adapted sources. */
22
+ extractFacts?: (filesJson: string) => string;
23
+ analyzeProject: (filesJson: string, scalesJson: string, variableMapJson: string, contextualVarsJson: string | null, propConfigJson: string, groupRegistryJson: string, packageResolutionJson: string, devMode: boolean, emitterConfigJson: string | null, selectorAliasesJson: string | null, selectorOrderJson: string | null, globalStyleBlocksJson: string | null, pathAliasesJson: string | null, keyframesJson: string | null, staticCssJson: string | null, conditionAliasesJson: string | null, externalDirsJson: string | null, transformSourcesJson: string | null) => string;
24
+ transformFile: (source: string, path: string, manifest: string) => TransformFileResult;
25
+ clearAnalysisCache: () => void;
26
+ }
27
+ /**
28
+ * Per-run storage for the engine instance, the analyze-time sources drift
29
+ * detection compares against, and the one-shot drift flag.
30
+ */
31
+ export interface V2EngineStateStore {
32
+ getEngine(): V2ExtractEngine | null;
33
+ setEngine(engine: V2ExtractEngine | null): void;
34
+ getSentSources(): Map<string, string> | null;
35
+ setSentSources(sources: Map<string, string> | null): void;
36
+ getDriftWarned(): boolean;
37
+ setDriftWarned(value: boolean): void;
38
+ }
39
+ /** The native engine module. Its own generated `.d.ts` is authoritative. */
40
+ type NativeEngineModule = any;
41
+ export interface V2EngineAdapterDeps {
42
+ /** Log label for the drift warning and the fail-loud transform error. */
43
+ label: string;
44
+ /** When false, `engineApi()` returns the raw native module unchanged. */
45
+ isV2(): boolean;
46
+ /** Requires the native module; loading semantics live at the call site. */
47
+ loadNativeEngine(): NativeEngineModule;
48
+ /** Per-run state storage (globalThis for next, closure for vite). */
49
+ store: V2EngineStateStore;
50
+ /** Passes paths absent from the last `analyze()` set through unchanged —
51
+ * the webpack loader hands over files outside the analysis universe. */
52
+ passThroughUnknownPaths?: boolean;
53
+ /** Refills empty sources before analyze: vite's HMR sends empty sources
54
+ * for unchanged files and the engine keeps no cache. Identity if omitted. */
55
+ rehydrateFilesJson?(filesJsonRaw: string): string;
56
+ }
57
+ /**
58
+ * Returns a function, invoked per call site, so `isV2()` and
59
+ * `loadNativeEngine()` re-evaluate each time instead of being captured.
60
+ */
61
+ export declare function createV2EngineApi(deps: V2EngineAdapterDeps): () => EngineApi;
62
+ export {};
63
+ //# sourceMappingURL=engine-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-adapter.d.ts","sourceRoot":"","sources":["../../pipeline/engine-adapter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,UAAU,IAAI,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,SA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GAAG,IAAI,GAAG,IAAI,CAAC;IAC1D,cAAc,IAAI,OAAO,CAAC;IAC1B,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACtC;AAED,4EAA4E;AAE5E,KAAK,kBAAkB,GAAG,GAAG,CAAC;AA2B9B,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,IAAI,IAAI,OAAO,CAAC;IAChB,2EAA2E;IAC3E,gBAAgB,IAAI,kBAAkB,CAAC;IACvC,qEAAqE;IACrE,KAAK,EAAE,kBAAkB,CAAC;IAC1B;6EACyE;IACzE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;kFAC8E;IAC9E,kBAAkB,CAAC,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CACnD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,SAAS,CAqH5E"}
@@ -0,0 +1,3 @@
1
+ export declare const RETIRED_ENGINE_MESSAGE: string;
2
+ export declare function assertNoRetiredEngineSelection(engineOption: string | undefined): void;
3
+ //# sourceMappingURL=engine-retirement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-retirement.d.ts","sourceRoot":"","sources":["../../pipeline/engine-retirement.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,QAEyC,CAAC;AAE7E,wBAAgB,8BAA8B,CAC5C,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,IAAI,CAIN"}
@@ -0,0 +1,8 @@
1
+ export type CssDiagnosticLike = {
2
+ file: string;
3
+ component: string;
4
+ kind: string;
5
+ message: string;
6
+ };
7
+ export declare function assertNoErrorDiagnostics(diagnostics: CssDiagnosticLike[] | undefined): void;
8
+ //# sourceMappingURL=error-diagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/error-diagnostics.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAAE,GAAG,SAAS,GAC3C,IAAI,CAgBN"}
@@ -6,13 +6,20 @@ export type { EngineApi, TransformFileResult, V2EngineAdapterDeps, V2EngineState
6
6
  export { createV2EngineApi } from './engine-adapter';
7
7
  export { assertNoRetiredEngineSelection, RETIRED_ENGINE_MESSAGE, } from './engine-retirement';
8
8
  export { contentHash } from './content-hash';
9
- export { KEYFRAMES_EXPORT_COLLISION, KEYFRAMES_EXTERNAL_ENTRY_FAILED, mergeExternalKeyframes, } from './external-keyframes';
10
- export type { ExternalKeyframesMerge } from './external-keyframes';
11
- export { discoverFiles } from './discover-files';
9
+ export type { AnimusCoreOptions, AnimusMode, DriverNamespace, ExcludeMatcher, OptionProvenance, ResolvedMode, } from './core-options';
10
+ export { AnimusConfigError, assertKnownOptionKeys, CORE_OPTION_KEYS, createExcludeMatcher, DEFAULT_EXCLUDE, DRIVER_NAMESPACES, REPLACEABLE_DEFAULT_EXCLUDE, STRUCTURAL_EXCLUDE, resolveMode, } from './core-options';
11
+ export { compareDiscoveryOrder, discoverFiles } from './discover-files';
12
12
  export type { CollectedExternalPackages, ExternalPackageOutcome, } from './discover-packages';
13
13
  export { collectExternalPackageSources, excludeCollectedPackages, extractSystemFilePackages, findPackageRoot, firstOwners, isExcludedPackageRelativePath, resolveAbsolutePathSpecifier, staleDistIncludesMessage, unresolvableIncludesMessage, walkPackageSources, } from './discover-packages';
14
14
  export type { ResolvedSourceId, SourceIdentity } from './source-identity';
15
15
  export { createSourceIdentity, isPathWithinRoot, sharesVolumeRoot, } from './source-identity';
16
+ export type { AdaptSvelteSourceResult, AdaptSvelteSourceOptions, SourceLocation, SourcePosition, SourceSpan, SvelteAdapterDiagnostic, SvelteOriginMapping, SvelteOriginMappingKind, SvelteResolverAccess, SvelteResolverAttribution, SvelteResolverAttributionRequest, SvelteResolverImportKind, SvelteScriptScope, SvelteSourceOrigin, SvelteVirtualEntry, } from './svelte-source-adapter';
17
+ export { adaptSvelteSource } from './svelte-source-adapter';
18
+ export type { AnalysisSourceEntry, ExtractChainFact, ExtractExportFact, ExtractFactsResult, ExtractFileFacts, ExtractImportFact, NativeSourceDiagnostic, OriginalSourceEntry, RawSourceEntry, SerializedSourceEntry, SourceEntryOwnership, SourceIngestionDiagnostic, SourceIngestionOptions, SourceIngestionResult, SourceParserDiagnostic, } from './source-ingestion';
19
+ export { ingestSourceEntries, isAdvisorySourceDiagnostic, parseFilesJson, projectExternalFileOwners, } from './source-ingestion';
20
+ export type { SourceIngestor, SourceIngestorHost } from './source-ingestion';
21
+ export { createSourceCorpus } from './source-corpus';
22
+ export type { PublishedSourceCorpus, SourceCorpus, SourceCorpusCache, } from './source-corpus';
16
23
  export { findAssetSpecifiers, substituteAssetPlaceholders, } from './asset-placeholders';
17
24
  export { resolveAssetFile, resolveThroughPathAliases } from './resolve-asset';
18
25
  export { enforceExternalTokenContracts } from './correlate-external-tokens';
@@ -25,6 +32,8 @@ export type { StaticCssComponentOverride, StaticCssConfig } from './static-css';
25
32
  export { serializeStaticCss } from './static-css';
26
33
  export type { SystemConfig } from './system-config';
27
34
  export { loadSystemConfig } from './system-config';
35
+ export type { StructuralCheckInput } from './structural-self-check';
36
+ export { runStructuralSelfCheck } from './structural-self-check';
28
37
  export { buildSystemPropsModule } from './system-props-module';
29
38
  export { formatRustTimingWaterfall } from './timing-waterfall';
30
39
  export { readTsconfigAliasPairs } from './tsconfig-paths';
@@ -32,14 +41,15 @@ export type { DynamicPropConfigEntry, DynamicPropMeta, } from './dynamic-prop-co
32
41
  export { buildDynamicPropConfig } from './dynamic-prop-config';
33
42
  export type { CssDiagnosticLike } from './error-diagnostics';
34
43
  export { assertNoErrorDiagnostics } from './error-diagnostics';
44
+ export type { ManifestComponentDescriptor, ManifestComponentSheets, ManifestSheets, ProjectManifest, } from './manifest-schema';
35
45
  export type { ManifestDiagnostic } from './manifest-diagnostics';
36
- export { isUnresolvedParentDrop, surfaceManifestDiagnostics, unresolvedParentName, } from './manifest-diagnostics';
46
+ export { isUnresolvedParentDrop, surfaceManifestDiagnostics, unreadableSourceDiagnostic, unresolvedParentName, VOCABULARY_COLLISION, VOCABULARY_LEGACY_VERB, vocabularyWitnessDiagnostics, } from './manifest-diagnostics';
37
47
  export type { DefaultExtension, PreprocessMdxResult } from './mdx-preprocessor';
38
- export { DEFAULT_EXTENSIONS, preprocessMdx } from './mdx-preprocessor';
48
+ export { DEFAULT_EXTENSIONS, ENGINE_TRANSFORM_EXTENSIONS, isEngineTransformExtension, preprocessMdx, } from './mdx-preprocessor';
39
49
  export { applyPrefix } from './prefix';
40
50
  export type { FilePlanSnapshot } from './replacement-plans';
41
51
  export { diffFilePlans, hashReplacementPlans, snapshotFilePlans, } from './replacement-plans';
42
52
  export { applyUnitFallback } from './unit-fallback';
43
- export { camelToKebab } from './utils';
53
+ export { camelToKebab, stableStringify } from './utils';
44
54
  export { toWatchKeys } from './watch-keys';
45
55
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../pipeline/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,mBAAmB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AAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function parseInternalWire<Decoded>(json: string, wire: string): Decoded;
2
+ //# sourceMappingURL=internal-wire.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-wire.d.ts","sourceRoot":"","sources":["../../pipeline/internal-wire.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,OAAO,EACvC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAeT"}
@@ -0,0 +1,57 @@
1
+ export type ManifestDiagnostic = {
2
+ file: string;
3
+ component: string;
4
+ kind: string;
5
+ message: string;
6
+ /** Structured token path (`scale.key`); present only on
7
+ * `external-token-candidate` diagnostics. */
8
+ token?: string;
9
+ code?: string;
10
+ /** `"error"` fails strict builds; `"warn"`/absent never does. Read from
11
+ * `DIAGNOSTIC_SEVERITY`, never chosen per emission site. */
12
+ severity?: string;
13
+ };
14
+ /** Stable code for selector forms with no substitutable subject; the
15
+ * extraction engine mints the same string. */
16
+ export declare const SELECTOR_UNSUPPORTED_SUBJECT = "animus.selector.unsupported-subject";
17
+ type DiagnosticMessage = Pick<ManifestDiagnostic, 'message'>;
18
+ export declare function isUnresolvedParentDrop(diagnostic: DiagnosticMessage): boolean;
19
+ export declare function unresolvedParentName(diagnostic: DiagnosticMessage): string | null;
20
+ export interface DiagnosticPolicy {
21
+ /** When true, error-severity diagnostics throw instead of warning. */
22
+ strict?: boolean;
23
+ prepend?: ManifestDiagnostic[];
24
+ }
25
+ /** True when the selector carries at least one substitutable `&` subject
26
+ * outside quoted text. */
27
+ export declare function hasSelectorSubject(value: string): boolean;
28
+ /**
29
+ * Coded diagnostics for selector-shaped alias values with no substitutable
30
+ * subject; alias values never reach the evaluator's own key guard.
31
+ */
32
+ export declare function collectSelectorAliasDiagnostics(selectorAliasesJson: string | null | undefined): ManifestDiagnostic[];
33
+ export declare const UNREADABLE_SOURCE_FILE = "animus.ingestion.unreadable-source-file";
34
+ /**
35
+ * A configured source file that could not be read is a LOST INPUT: the
36
+ * emitted artifacts silently lack whatever that file declared.
37
+ */
38
+ export declare function unreadableSourceDiagnostic<Thrown>(relPath: string, error: Thrown): ManifestDiagnostic;
39
+ /** The collision entry code minted by the system package's merge. */
40
+ export declare const VOCABULARY_COLLISION = "animus.vocabulary.collision";
41
+ /** Minted when a sealed kit with registered vocabulary is consumed through
42
+ * the deprecated `from()`/`includes:` verbs. */
43
+ export declare const VOCABULARY_LEGACY_VERB = "animus.vocabulary.legacy-verb";
44
+ /**
45
+ * The one mapper of a sealed system's witness entries for every host: the
46
+ * loader's evaluation host shims `console`, so the record is the channel.
47
+ */
48
+ export declare function vocabularyWitnessDiagnostics(vocabularyWitnessesJson: string | null | undefined): ManifestDiagnostic[];
49
+ /**
50
+ * The single strict-escalation policy point for both extraction plugins:
51
+ * error-severity diagnostics throw together under `strict`, else warn.
52
+ */
53
+ export declare function surfaceManifestDiagnostics(manifest: {
54
+ diagnostics?: ManifestDiagnostic[];
55
+ }, warn: (message: string) => void, policy?: DiagnosticPolicy): void;
56
+ export {};
57
+ //# sourceMappingURL=manifest-diagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/manifest-diagnostics.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB;kDAC8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;iEAC6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;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