@animus-ui/extract 0.1.9 → 0.1.11

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 (126) hide show
  1. package/README.md +1 -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/dist/index.cjs +73 -2101
  6. package/dist/index.mjs +2 -2026
  7. package/dist/pipeline/analyze-project-args.d.ts.map +1 -0
  8. package/dist/pipeline/assemble-stylesheet.d.ts.map +1 -0
  9. package/dist/pipeline/asset-placeholders.d.ts.map +1 -0
  10. package/dist/pipeline/content-hash.d.ts.map +1 -0
  11. package/dist/pipeline/core-options.d.ts +162 -0
  12. package/dist/pipeline/core-options.d.ts.map +1 -0
  13. package/dist/pipeline/correlate-external-tokens.d.ts.map +1 -0
  14. package/dist/pipeline/discover-files.d.ts +12 -0
  15. package/dist/pipeline/discover-files.d.ts.map +1 -0
  16. package/dist/{discover-packages.d.ts → pipeline/discover-packages.d.ts} +7 -8
  17. package/dist/pipeline/discover-packages.d.ts.map +1 -0
  18. package/dist/pipeline/dynamic-prop-config.d.ts.map +1 -0
  19. package/dist/{engine-adapter.d.ts → pipeline/engine-adapter.d.ts} +2 -0
  20. package/dist/pipeline/engine-adapter.d.ts.map +1 -0
  21. package/dist/pipeline/engine-retirement.d.ts.map +1 -0
  22. package/dist/pipeline/error-diagnostics.d.ts.map +1 -0
  23. package/dist/pipeline/external-keyframes.d.ts.map +1 -0
  24. package/dist/{index.d.ts → pipeline/index.d.ts} +10 -1
  25. package/dist/pipeline/index.d.ts.map +1 -0
  26. package/dist/pipeline/manifest-diagnostics.d.ts.map +1 -0
  27. package/dist/{mdx-preprocessor.d.ts → pipeline/mdx-preprocessor.d.ts} +10 -0
  28. package/dist/pipeline/mdx-preprocessor.d.ts.map +1 -0
  29. package/dist/pipeline/path-aliases.d.ts.map +1 -0
  30. package/dist/pipeline/post-process-css.d.ts.map +1 -0
  31. package/dist/pipeline/prefix.d.ts.map +1 -0
  32. package/dist/pipeline/replacement-plans.d.ts.map +1 -0
  33. package/dist/pipeline/resolve-asset.d.ts.map +1 -0
  34. package/dist/pipeline/run-analysis.d.ts.map +1 -0
  35. package/dist/pipeline/source-identity.d.ts.map +1 -0
  36. package/dist/pipeline/source-ingestion.d.ts +173 -0
  37. package/dist/pipeline/source-ingestion.d.ts.map +1 -0
  38. package/dist/pipeline/static-css.d.ts.map +1 -0
  39. package/dist/pipeline/structural-self-check.d.ts +32 -0
  40. package/dist/pipeline/structural-self-check.d.ts.map +1 -0
  41. package/dist/pipeline/svelte-source-adapter.d.ts +88 -0
  42. package/dist/pipeline/svelte-source-adapter.d.ts.map +1 -0
  43. package/dist/pipeline/system-config.d.ts.map +1 -0
  44. package/dist/{system-props-module.d.ts → pipeline/system-props-module.d.ts} +4 -3
  45. package/dist/pipeline/system-props-module.d.ts.map +1 -0
  46. package/dist/pipeline/timing-waterfall.d.ts.map +1 -0
  47. package/dist/pipeline/tsconfig-paths.d.ts.map +1 -0
  48. package/dist/pipeline/unit-fallback.d.ts.map +1 -0
  49. package/dist/pipeline/utils.d.ts.map +1 -0
  50. package/dist/pipeline/watch-keys.d.ts.map +1 -0
  51. package/dist/pipeline-lkbOoyAr.mjs +3228 -0
  52. package/dist/pipeline-ojNeABi0.cjs +3685 -0
  53. package/dist/session/extraction-session.d.ts +446 -0
  54. package/dist/session/extraction-session.d.ts.map +1 -0
  55. package/dist/session/index.d.ts +24 -0
  56. package/dist/session/index.d.ts.map +1 -0
  57. package/dist/session/published-set.d.ts +32 -0
  58. package/dist/session/published-set.d.ts.map +1 -0
  59. package/dist/session/resolve-packages.d.ts +8 -0
  60. package/dist/session/resolve-packages.d.ts.map +1 -0
  61. package/dist/session/session-paths.d.ts +131 -0
  62. package/dist/session/session-paths.d.ts.map +1 -0
  63. package/dist/session/singleton.d.ts +124 -0
  64. package/dist/session/singleton.d.ts.map +1 -0
  65. package/dist/session/timing.d.ts +7 -0
  66. package/dist/session/timing.d.ts.map +1 -0
  67. package/dist/session/turbopack-orchestrator.d.ts +43 -0
  68. package/dist/session/turbopack-orchestrator.d.ts.map +1 -0
  69. package/dist/session.cjs +2146 -0
  70. package/dist/session.mjs +2110 -0
  71. package/package.json +18 -6
  72. package/dist/analyze-project-args.d.ts.map +0 -1
  73. package/dist/assemble-stylesheet.d.ts.map +0 -1
  74. package/dist/asset-placeholders.d.ts.map +0 -1
  75. package/dist/content-hash.d.ts.map +0 -1
  76. package/dist/correlate-external-tokens.d.ts.map +0 -1
  77. package/dist/discover-files.d.ts +0 -10
  78. package/dist/discover-files.d.ts.map +0 -1
  79. package/dist/discover-packages.d.ts.map +0 -1
  80. package/dist/dynamic-prop-config.d.ts.map +0 -1
  81. package/dist/engine-adapter.d.ts.map +0 -1
  82. package/dist/engine-retirement.d.ts.map +0 -1
  83. package/dist/error-diagnostics.d.ts.map +0 -1
  84. package/dist/external-keyframes.d.ts.map +0 -1
  85. package/dist/index.d.ts.map +0 -1
  86. package/dist/manifest-diagnostics.d.ts.map +0 -1
  87. package/dist/mdx-preprocessor.d.ts.map +0 -1
  88. package/dist/path-aliases.d.ts.map +0 -1
  89. package/dist/post-process-css.d.ts.map +0 -1
  90. package/dist/prefix.d.ts.map +0 -1
  91. package/dist/replacement-plans.d.ts.map +0 -1
  92. package/dist/resolve-asset.d.ts.map +0 -1
  93. package/dist/run-analysis.d.ts.map +0 -1
  94. package/dist/source-identity.d.ts.map +0 -1
  95. package/dist/static-css.d.ts.map +0 -1
  96. package/dist/system-config.d.ts.map +0 -1
  97. package/dist/system-props-module.d.ts.map +0 -1
  98. package/dist/timing-waterfall.d.ts.map +0 -1
  99. package/dist/tsconfig-paths.d.ts.map +0 -1
  100. package/dist/unit-fallback.d.ts.map +0 -1
  101. package/dist/utils.d.ts.map +0 -1
  102. package/dist/watch-keys.d.ts.map +0 -1
  103. /package/dist/{analyze-project-args.d.ts → pipeline/analyze-project-args.d.ts} +0 -0
  104. /package/dist/{assemble-stylesheet.d.ts → pipeline/assemble-stylesheet.d.ts} +0 -0
  105. /package/dist/{asset-placeholders.d.ts → pipeline/asset-placeholders.d.ts} +0 -0
  106. /package/dist/{content-hash.d.ts → pipeline/content-hash.d.ts} +0 -0
  107. /package/dist/{correlate-external-tokens.d.ts → pipeline/correlate-external-tokens.d.ts} +0 -0
  108. /package/dist/{dynamic-prop-config.d.ts → pipeline/dynamic-prop-config.d.ts} +0 -0
  109. /package/dist/{engine-retirement.d.ts → pipeline/engine-retirement.d.ts} +0 -0
  110. /package/dist/{error-diagnostics.d.ts → pipeline/error-diagnostics.d.ts} +0 -0
  111. /package/dist/{external-keyframes.d.ts → pipeline/external-keyframes.d.ts} +0 -0
  112. /package/dist/{manifest-diagnostics.d.ts → pipeline/manifest-diagnostics.d.ts} +0 -0
  113. /package/dist/{path-aliases.d.ts → pipeline/path-aliases.d.ts} +0 -0
  114. /package/dist/{post-process-css.d.ts → pipeline/post-process-css.d.ts} +0 -0
  115. /package/dist/{prefix.d.ts → pipeline/prefix.d.ts} +0 -0
  116. /package/dist/{replacement-plans.d.ts → pipeline/replacement-plans.d.ts} +0 -0
  117. /package/dist/{resolve-asset.d.ts → pipeline/resolve-asset.d.ts} +0 -0
  118. /package/dist/{run-analysis.d.ts → pipeline/run-analysis.d.ts} +0 -0
  119. /package/dist/{source-identity.d.ts → pipeline/source-identity.d.ts} +0 -0
  120. /package/dist/{static-css.d.ts → pipeline/static-css.d.ts} +0 -0
  121. /package/dist/{system-config.d.ts → pipeline/system-config.d.ts} +0 -0
  122. /package/dist/{timing-waterfall.d.ts → pipeline/timing-waterfall.d.ts} +0 -0
  123. /package/dist/{tsconfig-paths.d.ts → pipeline/tsconfig-paths.d.ts} +0 -0
  124. /package/dist/{unit-fallback.d.ts → pipeline/unit-fallback.d.ts} +0 -0
  125. /package/dist/{utils.d.ts → pipeline/utils.d.ts} +0 -0
  126. /package/dist/{watch-keys.d.ts → pipeline/watch-keys.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyze-project-args.d.ts","sourceRoot":"","sources":["../../pipeline/analyze-project-args.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,MAAM;IAClB,eAAe,EAAE,MAAM;IACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI;IACjC,cAAc,EAAE,MAAM;IACtB,iBAAiB,EAAE,MAAM;IACzB,qBAAqB,EAAE,MAAM;IAC7B,OAAO,EAAE,OAAO;IAChB,iBAAiB,EAAE,MAAM,GAAG,IAAI;IAChC,mBAAmB,EAAE,MAAM,GAAG,IAAI;IAClC,iBAAiB,EAAE,IAAI;IACvB,qBAAqB,EAAE,MAAM,GAAG,IAAI;IACpC,eAAe,EAAE,MAAM,GAAG,IAAI;IAC9B,aAAa,EAAE,MAAM,GAAG,IAAI;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI;IAG5B,oBAAoB,EAAE,MAAM,GAAG,IAAI;IAInC,gBAAgB,EAAE,MAAM,GAAG,IAAI;IAG/B,oBAAoB,EAAE,MAAM,GAAG,IAAI;CACpC,CAAC;AAEF,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,qBA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AE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;GAUG;AACH,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 @@
1
+ {"version":3,"file":"asset-placeholders.d.ts","sourceRoot":"","sources":["../../pipeline/asset-placeholders.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;uEAEuE;AACvE,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAkBxD,+EAA+E;AAC/E,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAkBzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAC1C,MAAM,CAgBR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-hash.d.ts","sourceRoot":"","sources":["../../pipeline/content-hash.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAE3D"}
@@ -0,0 +1,162 @@
1
+ /**
2
+ * Shared driver-config core (openspec: standalone-extraction-cli).
3
+ *
4
+ * One option schema, N drivers: the Vite plugin, the Next plugin, and the
5
+ * standalone CLI all resolve their shared option core through this module so
6
+ * key semantics, default exclusions, and the dev/prod mode authority cannot
7
+ * drift per driver. Driver-specific options live in per-driver namespaces
8
+ * (`vite:` / `next:` / `cli:`) or in the driver's own legacy top-level keys,
9
+ * which the owning driver declares via `ownKeys`; any other unknown
10
+ * top-level key is a hard error naming the key.
11
+ */
12
+ import type { StaticCssConfig } from './static-css';
13
+ /** Closed set of driver namespaces a shared config file may carry. */
14
+ export declare const DRIVER_NAMESPACES: readonly ['vite', 'next', 'cli'];
15
+ export type DriverNamespace = (typeof DRIVER_NAMESPACES)[number];
16
+ /**
17
+ * Structural exclusions applied unconditionally, whether or not the user
18
+ * supplies an `exclude` list. `node_modules` is owned by the external-package
19
+ * collection path (never the source walk), and `.next`/`.animus` are artifact
20
+ * output directories inside the scanned root that must never be re-ingested
21
+ * as source.
22
+ */
23
+ export declare const STRUCTURAL_EXCLUDE: string[];
24
+ /**
25
+ * Convenience defaults applied only when the user supplies no `exclude`
26
+ * list — a user list replaces these (but never the structural set).
27
+ */
28
+ export declare const REPLACEABLE_DEFAULT_EXCLUDE: string[];
29
+ /**
30
+ * Default path patterns excluded from source discovery — the single
31
+ * authoritative set for every driver when no user `exclude` is given.
32
+ * Composed, never hand-listed: a structural addition must not silently
33
+ * miss this union.
34
+ */
35
+ export declare const DEFAULT_EXCLUDE: string[];
36
+ /** Explicit dev/prod emission mode. When absent, each driver's documented
37
+ * default applies (Vite: `config.command`; Next: `NODE_ENV`; CLI:
38
+ * production). */
39
+ export type AnimusMode = 'development' | 'production';
40
+ /** The shared option core every driver accepts with identical semantics. */
41
+ export interface AnimusCoreOptions {
42
+ /** Path to a module exporting a SystemInstance from `@animus-ui/system`. */
43
+ system: string;
44
+ /**
45
+ * Exclusion patterns. When present, this list REPLACES the replaceable
46
+ * defaults (`dist`, `.test.`, `.spec.`); the structural exclusions
47
+ * (`node_modules`, `.next`, `.animus`) always apply and cannot be
48
+ * re-admitted. Patterns containing `*` or `?` match as globs against the
49
+ * root-relative path (`**` spans directories, `*` and `?` stay within one
50
+ * segment; character classes and brace expansion are not supported); a
51
+ * leading `./` is equivalent to the bare root-relative path; patterns
52
+ * without glob metacharacters match as substrings of the full or
53
+ * root-relative path.
54
+ */
55
+ exclude?: string[];
56
+ /** File extensions to scan; replaces the default list entirely. */
57
+ extensions?: string[];
58
+ /** When true, extraction failures throw instead of warning. */
59
+ strict?: boolean;
60
+ /** Enable verbose logging. */
61
+ verbose?: boolean;
62
+ /** Namespace prefix for CSS variables and class names. */
63
+ prefix?: string;
64
+ /** Browser targets for CSS autoprefixing and syntax lowering. */
65
+ targets?: string | string[];
66
+ /** Minification control; `undefined` = minify in production mode only. */
67
+ minify?: boolean;
68
+ /** Forced-emission declarations for usage the scanner cannot observe. */
69
+ staticCss?: StaticCssConfig;
70
+ /** Full `@layer` declaration order. */
71
+ layers?: string[];
72
+ /** Extraction engine selection; `'v2'` is the only engine. */
73
+ engine?: 'v2';
74
+ /**
75
+ * Explicit dev/prod EMISSION mode — it decides emitted bytes (minify
76
+ * default, dev-diagnostics define, engine devMode) and wins over every
77
+ * environment-derived signal for those decisions. It never drives process
78
+ * lifecycle (watchers, HMR ownership), which stays with each host's own
79
+ * signal. When absent, the driver's documented default applies.
80
+ */
81
+ mode?: AnimusMode;
82
+ /** Root every relative input resolves against. CLI-facing: the plugin
83
+ * drivers derive their root from the host bundler and REJECT this key
84
+ * (`assertKnownOptionKeys` rejectKeys). */
85
+ root?: string;
86
+ }
87
+ /** Core keys accepted at the top level of any driver's options. */
88
+ export declare const CORE_OPTION_KEYS: ReadonlySet<string>;
89
+ /** Configuration errors carry a stable name so drivers can map them to
90
+ * their config-error surface (the CLI's exit code 2). */
91
+ export declare class AnimusConfigError extends Error {
92
+ constructor(message: string);
93
+ }
94
+ /** How `assertKnownOptionKeys` surfaces unknown/rejected KEYS. Published
95
+ * plugin entry points use `'warn'` so a consumer upgrade cannot die at
96
+ * config load over a previously-inert extra key; new drivers (the CLI,
97
+ * the unplugin host) keep the `'throw'` default. Invalid VALUES (a bad
98
+ * `mode`) always throw — a silently flipped emission polarity is the
99
+ * exact failure this seam exists to kill, and `mode` is new surface with
100
+ * no inert-key history to stay compatible with. Warn mode REQUIRES the
101
+ * sink: a defaulted-away warning would be the silent failure again. */
102
+ export type AssertKnownOptionKeysOpts = {
103
+ onUnknownKey?: 'throw';
104
+ } | {
105
+ onUnknownKey: 'warn';
106
+ warn: (message: string) => void;
107
+ };
108
+ /**
109
+ * Reject unknown top-level option keys and invalid core values. `ownKeys`
110
+ * is the calling driver's legacy/driver-specific top-level surface (e.g.
111
+ * Vite's `verify`, Next's `cssImportTarget`); driver namespaces are always
112
+ * legal and inert for non-owning drivers. `rejectKeys` names core keys the
113
+ * calling driver does NOT honor — accepting-and-ignoring a key the
114
+ * validator vouches for is the exact silent failure this seam exists to
115
+ * kill, so the driver must reject it with its reason (or, in `'warn'`
116
+ * mode, name it loudly while the key stays inert as it always was).
117
+ */
118
+ export declare function assertKnownOptionKeys(raw: Record<string, unknown>, ownKeys?: readonly string[], rejectKeys?: ReadonlyArray<{
119
+ key: string;
120
+ reason: string;
121
+ }>, opts?: AssertKnownOptionKeysOpts): void;
122
+ /** Predicate over discovery paths; also consumable by watch filtering. */
123
+ export interface ExcludeMatcher {
124
+ /** Effective pattern list (structural ∪ (user ?? replaceable defaults)),
125
+ * for reporting surfaces. */
126
+ readonly patterns: readonly string[];
127
+ /** Per-pattern exclusion hit counts accumulated over this matcher's
128
+ * lifetime — the dead-pattern reporting surface (a user pattern with
129
+ * zero hits after discovery matched nothing). */
130
+ stats(): ReadonlyMap<string, number>;
131
+ /** True when the path should be excluded. Both forms are tested so
132
+ * absolute-substring compatibility is preserved. */
133
+ matches(fullPath: string, relativePath: string): boolean;
134
+ /** The first pattern excluding the path, or null — for diagnostics that
135
+ * name the responsible pattern. */
136
+ explain(fullPath: string, relativePath: string): string | null;
137
+ }
138
+ /**
139
+ * Build the effective exclusion matcher. A user list REPLACES the
140
+ * replaceable defaults (`dist`, `.test.`, `.spec.`) — the HEAD driver
141
+ * contract (`options.exclude ?? DEFAULT_EXCLUDE`) — while the structural
142
+ * exclusions (`node_modules`, `.next`, `.animus`) always apply: those
143
+ * protect pipeline invariants, not preferences, so no user list can
144
+ * re-admit them. `extraStructural` joins that never-replaceable set — the
145
+ * channel for driver-owned invariants (a CLI outDir inside the root),
146
+ * which must NOT ride the user list: appending there would flip the
147
+ * replace semantics and silently drop the replaceable defaults.
148
+ */
149
+ export declare function createExcludeMatcher(userPatterns?: readonly string[], extraStructural?: readonly string[]): ExcludeMatcher;
150
+ /** How each resolved value was decided — the `--print-config` vocabulary. */
151
+ export type OptionProvenance = 'explicit' | 'driver-default' | 'default';
152
+ export interface ResolvedMode {
153
+ mode: AnimusMode;
154
+ provenance: OptionProvenance;
155
+ }
156
+ /**
157
+ * Resolve the effective mode: the explicit `mode` key wins over every
158
+ * environment-derived signal; otherwise the driver's documented default
159
+ * applies.
160
+ */
161
+ export declare function resolveMode(explicit: AnimusMode | undefined, driverDefault: () => AnimusMode): ResolvedMode;
162
+ //# 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;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,YAAI,MAAM,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,UAAuC,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,2BAA2B,UAA+B,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,eAAe,UAG3B,CAAC;AAEF;;mBAEmB;AACnB,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,YAAY,CAAC;AAEtD,4EAA4E;AAC5E,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAA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,CAAC,CAAC;CACnC,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CA+D3B;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE;IACtD,WAAW,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC;IAC9C,+EAA+E;IAC/E,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;AAWD;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE;IAClD,WAAW,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC;IAC9C,+EAA+E;IAC/E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,wEAAwE;IACxE,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,12 @@
1
+ import type { ExcludeMatcher } from './core-options';
2
+ /**
3
+ * Recursively discover source files under `dir`, skipping excluded paths
4
+ * (an `ExcludeMatcher` — see core-options, the one pattern authority — or
5
+ * undefined for NO exclusion at all: the dist-package walks deliberately
6
+ * run under node_modules, which `createExcludeMatcher`'s structural set
7
+ * would prune) and keeping files whose extension is in `extensionsSet`.
8
+ *
9
+ * Single authoritative copy for both extraction plugins.
10
+ */
11
+ export declare function discoverFiles(dir: string, rootDir: string, exclude: ExcludeMatcher | undefined, extensionsSet: ReadonlySet<string>): string[];
12
+ //# 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;AAErD;;;;;;;;GAQG;AACH,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,CAuCV"}
@@ -43,8 +43,8 @@ export interface ExternalPackageOutcome {
43
43
  * Source files this specifier accounted for in the analysis set: files it
44
44
  * contributed, plus files a previous specifier or the caller's own file set
45
45
  * already supplied (those are in the set, just not attributable to this
46
- * collection pass). Files skipped by `preprocessFile` or unreadable ones are
47
- * NOT counted — they never reach the analysis set.
46
+ * collection pass). Unreadable files are NOT counted — they never reach
47
+ * the analysis set.
48
48
  */
49
49
  fileCount: number;
50
50
  }
@@ -120,13 +120,12 @@ export declare function collectExternalPackageSources(opts: {
120
120
  /** Does the caller's file set already contain this rootDir-relative path? */
121
121
  hasEntry: (relPath: string) => boolean;
122
122
  /**
123
- * Preprocess a discovered source (e.g. MDX→tsx with a path rewrite).
124
- * Return null to skip the file; return the input unchanged to pass through.
123
+ * Observer called once per readable discovered source, before it joins the
124
+ * analysis set. Hosts use it to record raw-file identity (the session's
125
+ * external watch hashes); adaptation itself happens later in
126
+ * `ingestSourceEntries`, never here.
125
127
  */
126
- preprocessFile: (source: string, relPath: string, absPath: string) => Promise<{
127
- source: string;
128
- relPath: string;
129
- } | null>;
128
+ onSourceRead?: (source: string, relPath: string, absPath: string) => void;
130
129
  /** Called when a discovered file cannot be read; the file is skipped. */
131
130
  onUnreadable: (relPath: string, error: unknown) => void;
132
131
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discover-packages.d.ts","source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ED,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAC5C,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CA4BxC"}
@@ -42,6 +42,8 @@ export interface EngineApi {
42
42
  loadSystemModule: (...args: unknown[]) => any;
43
43
  /** Keyframes-only scan of an external package entry. */
44
44
  scanKeyframesExports: (entryPath: string, rootDir: string) => string | null;
45
+ /** Parse-only native fact extraction used to prepare adapted sources. */
46
+ extractFacts?: (filesJson: string) => string;
45
47
  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;
46
48
  transformFile: (source: string, path: string, manifest: string) => TransformFileResult;
47
49
  clearAnalysisCache: () => void;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-adapter.d.ts","sourceRoot":"","sources":["../../pipeline/engine-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,iFAAiF;AACjF,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,6DAA6D;AAC7D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IAIxB,gBAAgB,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,GAAG,CAAC;IAC9C,wDAAwD;IACxD,oBA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AAM,CAAC,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;AA4B9B,MAAM,WAAW,mBAAmB;IAClC;kDAC8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd;;2DAEuD;IACvD,IAAI,IAAI,OAAO,CAAC;IAChB;qDACiD;IACjD,gBAAgB,IAAI,kBAAkB,CAAC;IACvC,qEAAqE;IACrE,KAAK,EAAE,kBAAkB,CAAC;IAC1B;;;;gBAIY;IACZ,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;+CAG2C;IAC3C,kBAAkB,CAAC,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CACnD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,SAAS,CAyH5E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-retirement.d.ts","sourceRoot":"","sources":["../../pipeline/engine-retirement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;iEACiE;AACjE,eAAO,MAAM,sBAAsB,QAEyC,CAAC;AAE7E;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,IAAI,CAIN"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/error-diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;0CAG0C;AAC1C,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;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAAE,GAAG,SAAS,GAC3C,IAAI,CAsBN"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-keyframes.d.ts","sourceRoot":"","sources":["../../pipeline/external-keyframes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,qDAAqD;AACrD,eAAO,MAAM,+BAA+B,2CACF,CAAC;AAC3C,eAAO,MAAM,0BAA0B,sCAAsC,CAAC;AAE9E,MAAM,WAAW,sBAAsB;IACrC;0EACsE;IACtE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;yEACqE;IACrE,WAAW,EAAE,kBAAkB,EAAE,CAAC;CACnC;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,EAC3D,qBAAqB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChD,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,EACjC,OAAO,EAAE,MAAM,GACd,sBAAsB,CAoExB"}
@@ -8,11 +8,18 @@ export { assertNoRetiredEngineSelection, RETIRED_ENGINE_MESSAGE, } from './engin
8
8
  export { contentHash } from './content-hash';
9
9
  export { KEYFRAMES_EXPORT_COLLISION, KEYFRAMES_EXTERNAL_ENTRY_FAILED, mergeExternalKeyframes, } from './external-keyframes';
10
10
  export type { ExternalKeyframesMerge } from './external-keyframes';
11
+ export type { AnimusCoreOptions, AnimusMode, DriverNamespace, ExcludeMatcher, OptionProvenance, ResolvedMode, } from './core-options';
12
+ export { AnimusConfigError, assertKnownOptionKeys, CORE_OPTION_KEYS, createExcludeMatcher, DEFAULT_EXCLUDE, DRIVER_NAMESPACES, REPLACEABLE_DEFAULT_EXCLUDE, STRUCTURAL_EXCLUDE, resolveMode, } from './core-options';
11
13
  export { discoverFiles } from './discover-files';
12
14
  export type { CollectedExternalPackages, ExternalPackageOutcome, } from './discover-packages';
13
15
  export { collectExternalPackageSources, excludeCollectedPackages, extractSystemFilePackages, findPackageRoot, firstOwners, isExcludedPackageRelativePath, resolveAbsolutePathSpecifier, staleDistIncludesMessage, unresolvableIncludesMessage, walkPackageSources, } from './discover-packages';
14
16
  export type { ResolvedSourceId, SourceIdentity } from './source-identity';
15
17
  export { createSourceIdentity, isPathWithinRoot, sharesVolumeRoot, } from './source-identity';
18
+ export type { AdaptSvelteSourceResult, AdaptSvelteSourceOptions, SourceLocation, SourcePosition, SourceSpan, SvelteAdapterDiagnostic, SvelteOriginMapping, SvelteOriginMappingKind, SvelteResolverAccess, SvelteResolverAttribution, SvelteResolverAttributionRequest, SvelteResolverImportKind, SvelteScriptScope, SvelteSourceOrigin, SvelteVirtualEntry, } from './svelte-source-adapter';
19
+ export { adaptSvelteSource } from './svelte-source-adapter';
20
+ export type { AnalysisSourceEntry, ExtractChainFact, ExtractExportFact, ExtractFactsResult, ExtractFileFacts, ExtractImportFact, NativeSourceDiagnostic, OriginalSourceEntry, RawSourceEntry, SourceEntryOwnership, SourceIngestionDiagnostic, SourceIngestionOptions, SourceIngestionResult, SourceParserDiagnostic, } from './source-ingestion';
21
+ export { createSourceIngestor, ingestSourceEntries, isAdvisorySourceDiagnostic, withoutInvalidOriginals, } from './source-ingestion';
22
+ export type { SourceIngestor, SourceIngestorHost } from './source-ingestion';
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';
@@ -35,7 +44,7 @@ export { assertNoErrorDiagnostics } from './error-diagnostics';
35
44
  export type { ManifestDiagnostic } from './manifest-diagnostics';
36
45
  export { isUnresolvedParentDrop, surfaceManifestDiagnostics, unresolvedParentName, } from './manifest-diagnostics';
37
46
  export type { DefaultExtension, PreprocessMdxResult } from './mdx-preprocessor';
38
- export { DEFAULT_EXTENSIONS, preprocessMdx } from './mdx-preprocessor';
47
+ export { DEFAULT_EXTENSIONS, ENGINE_TRANSFORM_EXTENSIONS, preprocessMdx, } from './mdx-preprocessor';
39
48
  export { applyPrefix } from './prefix';
40
49
  export type { FilePlanSnapshot } from './replacement-plans';
41
50
  export { diffFilePlans, hashReplacementPlans, snapshotFilePlans, } from './replacement-plans';
@@ -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,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC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CAAC;IACf,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;sBACkB;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;6DAC6D;AAC7D,eAAO,MAAM,4BAA4B,wCACF,CAAC;AAQxC;wBACwB;AACxB,wBAAgB,sBAAsB,CAAC,UAAU,EAAE;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,OAAO,CAKV;AAED;6BAC6B;AAC7B,wBAAgB,oBAAoB,CAAC,UAAU,EAAE;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,MAAM,GAAG,IAAI,CAGhB;AAED,MAAM,WAAW,gBAAgB;IAC/B,sEAAsE;IACtE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;gEAC4D;IAC5D,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC;AAED;;;wCAGwC;AACxC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAqBzD;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAC7C,mBAAmB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC7C,kBAAkB,EAAE,CAuBtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE;IAAE,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAAE,EAChD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EAC/B,MAAM,GAAE,gBAAqB,GAC5B,IAAI,CA+BN"}
@@ -18,6 +18,16 @@
18
18
  */
19
19
  export declare const DEFAULT_EXTENSIONS: readonly ['.ts', '.tsx', '.js', '.jsx', '.mdx'];
20
20
  export type DefaultExtension = (typeof DEFAULT_EXTENSIONS)[number];
21
+ /**
22
+ * Extensions the ENGINE TRANSFORM may rewrite (distinct from
23
+ * `DEFAULT_EXTENSIONS`, the discovery set: `.mjs` is here so dist-entry
24
+ * kits reach the engine, `.mdx` is not — MDX is preprocessed to `.tsx`
25
+ * before the engine sees it). The single source for the Turbopack rule
26
+ * glob and the unplugin transform gate; independent redeclaration of this
27
+ * set is considered a regression — a missed copy silently skips a whole
28
+ * file class on one bundler family.
29
+ */
30
+ export declare const ENGINE_TRANSFORM_EXTENSIONS: readonly ['ts', 'tsx', 'js', 'jsx', 'mjs'];
21
31
  export interface PreprocessMdxResult {
22
32
  kind: 'ok' | 'missing-dep' | 'error';
23
33
  /** Preprocessed JSX source. Present when kind === 'ok'. */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdx-preprocessor.d.ts","sourceRoot":"","sources":["../../pipeline/mdx-preprocessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,kBAAkB,YAC7B,KAAK,EACL,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,CACE,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,YACtC,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,CACG,CAAC;AAEX,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,IAAI,GAAG,aAAa,GAAG,OAAO,CAAC;IACrC,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC,CA4B9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-aliases.d.ts","sourceRoot":"","sources":["../../pipeline/path-aliases.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,aAAa,EAAE,EACtB,OAAO,EAAE,MAAM,GACd;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAyBxC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post-process-css.d.ts","sourceRoot":"","sources":["../../pipeline/post-process-css.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAExE;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAC9C,OAAO,EAAE,MAAM,GACd,gBAAgB,CAmBlB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IACJ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,GACA,MAAM,CAmBR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefix.d.ts","sourceRoot":"","sources":["../../pipeline/prefix.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,EAClB,kBAAkB,CAAC,EAAE,MAAM,GAC1B;IACD,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CA0CA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replacement-plans.d.ts","sourceRoot":"","sources":["../../pipeline/replacement-plans.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAQnD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,GAAG,GAAG,gBAAgB,CA4BjE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,gBAAgB,EACtB,IAAI,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAC1B,MAAM,EAAE,CAUV;AAYD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,gBAAgB,EAC1B,uBAAuB,CAAC,EAAE,MAAM,GAC/B,MAAM,CAYR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-asset.d.ts","sourceRoot":"","sources":["../../pipeline/resolve-asset.ts"],"names":[],"mappings":"AA2DA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACzC,MAAM,GAAG,IAAI,CAef;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAC9B,MAAM,GAAG,IAAI,CA4Cf"}
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AC;IACzB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;;;;OAKG;IACH,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3C,8EAA8E;IAC9E,aAAa,IAAI,MAAM,EAAE,CAAC;IAC1B;;;;;;;OAOG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAC5D;;;OAGG;IACH,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAAC;IACnE;;;;;OAKG;IACH,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC1D;AAeD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,CA0GpE"}
@@ -0,0 +1,173 @@
1
+ import { type PreprocessMdxResult } from './mdx-preprocessor';
2
+ import { adaptSvelteSource, type SvelteAdapterDiagnostic } from './svelte-source-adapter';
3
+ export interface RawSourceEntry {
4
+ path: string;
5
+ source: string;
6
+ /** Optional precomputed hash of the raw original source. */
7
+ hash?: string;
8
+ }
9
+ export interface OriginalSourceEntry {
10
+ path: string;
11
+ source: string;
12
+ /** Hash of the raw original source, never a generated projection. */
13
+ hash: string;
14
+ }
15
+ export interface AnalysisSourceEntry {
16
+ path: string;
17
+ source: string;
18
+ /** Hash of this parser-ready entry. */
19
+ hash: string;
20
+ }
21
+ export interface SourceEntryOwnership {
22
+ originalPath: string;
23
+ originalHash: string;
24
+ analysisPaths: string[];
25
+ }
26
+ export interface ExtractImportFact {
27
+ local: string;
28
+ imported: string;
29
+ source: string;
30
+ }
31
+ export interface ExtractExportFact {
32
+ exported: string;
33
+ local: string | null;
34
+ source: string | null;
35
+ original: string | null;
36
+ }
37
+ export interface ExtractChainFact {
38
+ descriptor: {
39
+ binding: string;
40
+ terminal: string;
41
+ extractable: boolean;
42
+ };
43
+ fatalError: string | null;
44
+ }
45
+ export interface ExtractFileFacts {
46
+ path: string;
47
+ chains: ExtractChainFact[];
48
+ imports: ExtractImportFact[];
49
+ exports: ExtractExportFact[];
50
+ parseDiagnostics: string[];
51
+ [key: string]: unknown;
52
+ }
53
+ export interface ExtractFactsResult {
54
+ files: Record<string, ExtractFileFacts>;
55
+ parseCount: number;
56
+ }
57
+ export interface NativeSourceDiagnostic {
58
+ code: 'SOURCE_NATIVE_PARSE_ERROR';
59
+ message: string;
60
+ originalPath: string;
61
+ analysisPath: string;
62
+ }
63
+ /**
64
+ * Advisory diagnostics surface as warnings in EVERY mode and never
65
+ * quarantine their file. OXC reports recovered parse diagnostics for
66
+ * sources the consumer's own toolchain may accept (`.js` now parses
67
+ * JSX-enabled, so genuinely malformed code is the remaining producer),
68
+ * and the engine still analyzes whatever the recovered AST carries —
69
+ * failing the build for that would make extraction stricter than the
70
+ * host bundler, which surfaces its own error for the same file. Everything
71
+ * else stays fatal: strict throws, non-strict warns and quarantines.
72
+ */
73
+ export declare function isAdvisorySourceDiagnostic(diagnostic: SourceIngestionDiagnostic): boolean;
74
+ export interface SourceParserDiagnostic {
75
+ code: 'SOURCE_MDX_DEPENDENCY_MISSING' | 'SOURCE_MDX_PARSE_ERROR' | 'SOURCE_SVELTE_DEPENDENCY_MISSING';
76
+ message: string;
77
+ originalPath: string;
78
+ }
79
+ export interface AnalysisPathCollisionDiagnostic {
80
+ code: 'SOURCE_ANALYSIS_PATH_COLLISION';
81
+ message: string;
82
+ originalPath: string;
83
+ analysisPath: string;
84
+ conflictingOriginalPath: string;
85
+ }
86
+ export interface ResolverIdentityCollisionDiagnostic {
87
+ code: 'SOURCE_RESOLVER_IDENTITY_COLLISION';
88
+ message: string;
89
+ originalPath: string;
90
+ canonicalPath: string;
91
+ conflictingOriginalPath: string;
92
+ }
93
+ export type SourceIngestionDiagnostic = NativeSourceDiagnostic | SourceParserDiagnostic | AnalysisPathCollisionDiagnostic | ResolverIdentityCollisionDiagnostic | SvelteAdapterDiagnostic;
94
+ export interface SourceIngestionResult {
95
+ /** Raw inputs keyed and hashed by their original source identity. */
96
+ originalEntries: OriginalSourceEntry[];
97
+ /** Parser-ready entries sent to analysis; Svelte itself is never a target. */
98
+ analysisEntries: AnalysisSourceEntry[];
99
+ /** Atomic original-to-generated ownership, including zero-entry owners. */
100
+ ownership: Record<string, SourceEntryOwnership>;
101
+ diagnostics: SourceIngestionDiagnostic[];
102
+ }
103
+ export interface CachedFileFacts {
104
+ /** Hash of the analysis entry the facts were extracted from. */
105
+ hash: string;
106
+ facts: ExtractFileFacts;
107
+ }
108
+ export interface SourceIngestionOptions {
109
+ /** Typed pass-through to the native `extractFacts(filesJson)` surface. */
110
+ extractFacts(filesJson: string): string;
111
+ /**
112
+ * Host-owned per-file facts memo: an incremental corpus pass re-extracts
113
+ * only entries whose (path, hash) pair changed and evicts paths absent
114
+ * from the current corpus. Without it every pass re-parses the whole
115
+ * corpus through the native boundary — a per-keystroke tax on the HMR
116
+ * and watch paths that both hosts route through here.
117
+ */
118
+ factsCache?: Map<string, CachedFileFacts>;
119
+ /** Test seams; production callers use the dynamically loaded defaults. */
120
+ preprocessMdx?: (source: string, filename: string) => Promise<PreprocessMdxResult>;
121
+ adaptSvelte?: typeof adaptSvelteSource;
122
+ }
123
+ /**
124
+ * Convert raw source identities into parser-ready analysis entries once.
125
+ *
126
+ * Native and MDX entries establish the resolver-export index through the
127
+ * native fact collector before any Svelte projection. Svelte calls are then
128
+ * attributed by exact relative import/export identity and parsed once. Bare
129
+ * package and configured-alias sources deliberately remain `other`; callers
130
+ * must not guess those identities.
131
+ */
132
+ export declare function ingestSourceEntries(rawEntries: readonly RawSourceEntry[], options: SourceIngestionOptions): Promise<SourceIngestionResult>;
133
+ /**
134
+ * The per-file quarantine: drop every original a diagnostic named — and the
135
+ * analysis children it owns — so one invalid source never aborts the rest
136
+ * of the corpus. Shared by buildStart AND every incremental path in both
137
+ * hosts; asymmetry here is how a permanently-diagnosable file (an `.mdx`
138
+ * with the optional peer absent, an unsupported `.svelte` shape) froze all
139
+ * re-analysis for the life of the dev server.
140
+ */
141
+ export declare function withoutInvalidOriginals(result: SourceIngestionResult, invalidOriginals: ReadonlySet<string>): SourceIngestionResult;
142
+ export interface SourceIngestorHost {
143
+ /** Engine access at call time; `extractFacts` stays optional on the shared
144
+ * EngineApi for test doubles — the capability guard lives HERE, once. */
145
+ engineApi(): {
146
+ extractFacts?: (filesJson: string) => string;
147
+ };
148
+ /** Host log prefix, e.g. `[animus-extract]` / `[animus-next]`. */
149
+ prefix: string;
150
+ strict(): boolean;
151
+ warn(message: string): void;
152
+ }
153
+ export interface SourceIngestor {
154
+ /** Prepare one raw-source corpus through the shared adaptation boundary. */
155
+ ingest(entries: readonly RawSourceEntry[]): Promise<SourceIngestionResult>;
156
+ /** Surface adapter diagnostics under ONE strict/warn/quarantine policy:
157
+ * advisory diagnostics warn in every mode and never quarantine; fatal
158
+ * diagnostics throw under strict, else warn once per (original, message)
159
+ * and join the returned quarantine set. */
160
+ surfaceDiagnostics(diagnostics: readonly SourceIngestionDiagnostic[]): Set<string>;
161
+ /** Reset the warn dedupe for originals that published clean, so a future
162
+ * regression re-warns. Call from the host's publish step. */
163
+ markPublished(result: SourceIngestionResult): void;
164
+ }
165
+ /**
166
+ * The one source-ingestion policy point shared by every host (vite-plugin,
167
+ * next-plugin, cli, unplugin). Hosts hold exactly their prefix, strict flag,
168
+ * and warn sink; the capability guard, facts memo, and warn-dedupe lifecycle
169
+ * live here so the plugins cannot fork (precedent: pkg-collection
170
+ * divergences; see also `enforceExternalTokenContracts`).
171
+ */
172
+ export declare function createSourceIngestor(host: SourceIngestorHost): SourceIngestor;
173
+ //# sourceMappingURL=source-ingestion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-ingestion.d.ts","sourceRoot":"","sources":["../../pipeline/source-ingestion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EACL,iBAAiB,EA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AAS,cAAc,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3E;;;gDAG4C;IAC5C,kBAAkB,CAChB,WAAW,EAAE,SAAS,yBAAyB,EAAE,GAChD,GAAG,CAAC,MAAM,CAAC,CAAC;IACf;kEAC8D;IAC9D,aAAa,CAAC,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACpD;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAkD7E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-css.d.ts","sourceRoot":"","sources":["../../pipeline/static-css.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,0BAA0B;IACzC;yCACqC;IACrC,QAAQ,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,EAAE,CAAC,CAAC;IAChD,yDAAyD;IACzD,MAAM,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,CAAC;IACxB;yBACqB;IACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACxD,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAClB,MAAM,EACN,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CACzD,CAAC;CACH;AAkBD,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,MAAM,GAAG,IAAI,CAIf"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Structural self-check over an emitted extraction result — the affirmative
3
+ * post-condition against silent-empty output (openspec:
4
+ * standalone-extraction-cli, "Silent-empty success is impossible").
5
+ *
6
+ * One shared implementation for every driver: the Vite plugin's `verify`
7
+ * option and the standalone CLI (default-on) both call this; the caller
8
+ * owns the failure POLICY (warn vs throw vs exit code), never the checks.
9
+ */
10
+ import type { ExternalPackageOutcome } from './discover-packages';
11
+ export interface StructuralCheckInput {
12
+ /** Number of components in the manifest. */
13
+ componentCount: number;
14
+ /** The theme's variable CSS (`:root` block expected). */
15
+ variableCss: string;
16
+ /** Global CSS (may be empty). */
17
+ globalCss: string;
18
+ /** Resolved component CSS (post transform substitution). */
19
+ componentCss: string;
20
+ /** Consumer `layers` option, when configured. */
21
+ layers?: string[];
22
+ /** An already-assembled full sheet — when provided, the ordering and
23
+ * placeholder checks run on it directly instead of re-assembling from
24
+ * the pieces (the CLI holds only the final sheet). */
25
+ assembledCss?: string;
26
+ /** Per-specifier discovery outcomes from the last collection. */
27
+ externalOutcomes?: readonly ExternalPackageOutcome[];
28
+ }
29
+ /** Run every structural check; returns human-readable failure lines
30
+ * (empty = pass). */
31
+ export declare function runStructuralSelfCheck(input: StructuralCheckInput): string[];
32
+ //# sourceMappingURL=structural-self-check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structural-self-check.d.ts","sourceRoot":"","sources":["../../pipeline/structural-self-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,MAAM,WAAW,oBAAoB;IACnC,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,YAAY,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;2DAEuD;IACvD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACtD;AAED;sBACsB;AACtB,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,EAAE,CAmE5E"}