@animus-ui/extract 0.1.8 → 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.
- package/README.md +1 -1
- package/crates/extract-v2/animus-extract-v2.darwin-arm64.node +0 -0
- package/crates/extract-v2/animus-extract-v2.linux-arm64-gnu.node +0 -0
- package/crates/extract-v2/animus-extract-v2.linux-x64-gnu.node +0 -0
- package/crates/extract-v2/index.d.ts +16 -0
- package/dist/index.cjs +73 -2070
- package/dist/index.mjs +2 -1996
- package/dist/{analyze-project-args.d.ts → pipeline/analyze-project-args.d.ts} +3 -1
- package/dist/pipeline/analyze-project-args.d.ts.map +1 -0
- package/dist/pipeline/assemble-stylesheet.d.ts.map +1 -0
- package/dist/pipeline/asset-placeholders.d.ts.map +1 -0
- package/dist/pipeline/content-hash.d.ts.map +1 -0
- package/dist/pipeline/core-options.d.ts +162 -0
- package/dist/pipeline/core-options.d.ts.map +1 -0
- package/dist/pipeline/correlate-external-tokens.d.ts.map +1 -0
- package/dist/pipeline/discover-files.d.ts +12 -0
- package/dist/pipeline/discover-files.d.ts.map +1 -0
- package/dist/{discover-packages.d.ts → pipeline/discover-packages.d.ts} +13 -8
- package/dist/pipeline/discover-packages.d.ts.map +1 -0
- package/dist/pipeline/dynamic-prop-config.d.ts.map +1 -0
- package/dist/{engine-adapter.d.ts → pipeline/engine-adapter.d.ts} +3 -1
- package/dist/pipeline/engine-adapter.d.ts.map +1 -0
- package/dist/pipeline/engine-retirement.d.ts.map +1 -0
- package/dist/pipeline/error-diagnostics.d.ts +32 -0
- package/dist/pipeline/error-diagnostics.d.ts.map +1 -0
- package/dist/pipeline/external-keyframes.d.ts.map +1 -0
- package/dist/{index.d.ts → pipeline/index.d.ts} +12 -1
- package/dist/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/manifest-diagnostics.d.ts.map +1 -0
- package/dist/{mdx-preprocessor.d.ts → pipeline/mdx-preprocessor.d.ts} +10 -0
- package/dist/pipeline/mdx-preprocessor.d.ts.map +1 -0
- package/dist/pipeline/path-aliases.d.ts.map +1 -0
- package/dist/pipeline/post-process-css.d.ts.map +1 -0
- package/dist/pipeline/prefix.d.ts.map +1 -0
- package/dist/pipeline/replacement-plans.d.ts.map +1 -0
- package/dist/pipeline/resolve-asset.d.ts.map +1 -0
- package/dist/pipeline/run-analysis.d.ts.map +1 -0
- package/dist/pipeline/source-identity.d.ts.map +1 -0
- package/dist/pipeline/source-ingestion.d.ts +173 -0
- package/dist/pipeline/source-ingestion.d.ts.map +1 -0
- package/dist/pipeline/static-css.d.ts.map +1 -0
- package/dist/pipeline/structural-self-check.d.ts +32 -0
- package/dist/pipeline/structural-self-check.d.ts.map +1 -0
- package/dist/pipeline/svelte-source-adapter.d.ts +88 -0
- package/dist/pipeline/svelte-source-adapter.d.ts.map +1 -0
- package/dist/{system-config.d.ts → pipeline/system-config.d.ts} +8 -0
- package/dist/pipeline/system-config.d.ts.map +1 -0
- package/dist/{system-props-module.d.ts → pipeline/system-props-module.d.ts} +4 -3
- package/dist/pipeline/system-props-module.d.ts.map +1 -0
- package/dist/pipeline/timing-waterfall.d.ts.map +1 -0
- package/dist/pipeline/tsconfig-paths.d.ts.map +1 -0
- package/dist/pipeline/unit-fallback.d.ts.map +1 -0
- package/dist/pipeline/utils.d.ts.map +1 -0
- package/dist/pipeline/watch-keys.d.ts.map +1 -0
- package/dist/pipeline-lkbOoyAr.mjs +3228 -0
- package/dist/pipeline-ojNeABi0.cjs +3685 -0
- package/dist/session/extraction-session.d.ts +446 -0
- package/dist/session/extraction-session.d.ts.map +1 -0
- package/dist/session/index.d.ts +24 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/published-set.d.ts +32 -0
- package/dist/session/published-set.d.ts.map +1 -0
- package/dist/session/resolve-packages.d.ts +8 -0
- package/dist/session/resolve-packages.d.ts.map +1 -0
- package/dist/session/session-paths.d.ts +131 -0
- package/dist/session/session-paths.d.ts.map +1 -0
- package/dist/session/singleton.d.ts +124 -0
- package/dist/session/singleton.d.ts.map +1 -0
- package/dist/session/timing.d.ts +7 -0
- package/dist/session/timing.d.ts.map +1 -0
- package/dist/session/turbopack-orchestrator.d.ts +43 -0
- package/dist/session/turbopack-orchestrator.d.ts.map +1 -0
- package/dist/session.cjs +2146 -0
- package/dist/session.mjs +2110 -0
- package/package.json +18 -6
- package/dist/analyze-project-args.d.ts.map +0 -1
- package/dist/assemble-stylesheet.d.ts.map +0 -1
- package/dist/asset-placeholders.d.ts.map +0 -1
- package/dist/content-hash.d.ts.map +0 -1
- package/dist/correlate-external-tokens.d.ts.map +0 -1
- package/dist/discover-files.d.ts +0 -10
- package/dist/discover-files.d.ts.map +0 -1
- package/dist/discover-packages.d.ts.map +0 -1
- package/dist/dynamic-prop-config.d.ts.map +0 -1
- package/dist/engine-adapter.d.ts.map +0 -1
- package/dist/engine-retirement.d.ts.map +0 -1
- package/dist/external-keyframes.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/manifest-diagnostics.d.ts.map +0 -1
- package/dist/mdx-preprocessor.d.ts.map +0 -1
- package/dist/path-aliases.d.ts.map +0 -1
- package/dist/post-process-css.d.ts.map +0 -1
- package/dist/prefix.d.ts.map +0 -1
- package/dist/replacement-plans.d.ts.map +0 -1
- package/dist/resolve-asset.d.ts.map +0 -1
- package/dist/run-analysis.d.ts.map +0 -1
- package/dist/source-identity.d.ts.map +0 -1
- package/dist/static-css.d.ts.map +0 -1
- package/dist/system-config.d.ts.map +0 -1
- package/dist/system-props-module.d.ts.map +0 -1
- package/dist/timing-waterfall.d.ts.map +0 -1
- package/dist/tsconfig-paths.d.ts.map +0 -1
- package/dist/unit-fallback.d.ts.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/watch-keys.d.ts.map +0 -1
- /package/dist/{assemble-stylesheet.d.ts → pipeline/assemble-stylesheet.d.ts} +0 -0
- /package/dist/{asset-placeholders.d.ts → pipeline/asset-placeholders.d.ts} +0 -0
- /package/dist/{content-hash.d.ts → pipeline/content-hash.d.ts} +0 -0
- /package/dist/{correlate-external-tokens.d.ts → pipeline/correlate-external-tokens.d.ts} +0 -0
- /package/dist/{dynamic-prop-config.d.ts → pipeline/dynamic-prop-config.d.ts} +0 -0
- /package/dist/{engine-retirement.d.ts → pipeline/engine-retirement.d.ts} +0 -0
- /package/dist/{external-keyframes.d.ts → pipeline/external-keyframes.d.ts} +0 -0
- /package/dist/{manifest-diagnostics.d.ts → pipeline/manifest-diagnostics.d.ts} +0 -0
- /package/dist/{path-aliases.d.ts → pipeline/path-aliases.d.ts} +0 -0
- /package/dist/{post-process-css.d.ts → pipeline/post-process-css.d.ts} +0 -0
- /package/dist/{prefix.d.ts → pipeline/prefix.d.ts} +0 -0
- /package/dist/{replacement-plans.d.ts → pipeline/replacement-plans.d.ts} +0 -0
- /package/dist/{resolve-asset.d.ts → pipeline/resolve-asset.d.ts} +0 -0
- /package/dist/{run-analysis.d.ts → pipeline/run-analysis.d.ts} +0 -0
- /package/dist/{source-identity.d.ts → pipeline/source-identity.d.ts} +0 -0
- /package/dist/{static-css.d.ts → pipeline/static-css.d.ts} +0 -0
- /package/dist/{timing-waterfall.d.ts → pipeline/timing-waterfall.d.ts} +0 -0
- /package/dist/{tsconfig-paths.d.ts → pipeline/tsconfig-paths.d.ts} +0 -0
- /package/dist/{unit-fallback.d.ts → pipeline/unit-fallback.d.ts} +0 -0
- /package/dist/{utils.d.ts → pipeline/utils.d.ts} +0 -0
- /package/dist/{watch-keys.d.ts → pipeline/watch-keys.d.ts} +0 -0
|
@@ -24,7 +24,8 @@ export type AnalyzeProjectArgs = [
|
|
|
24
24
|
keyframesJson: string | null,
|
|
25
25
|
staticCssJson: string | null,
|
|
26
26
|
conditionAliasesJson: string | null,
|
|
27
|
-
externalDirsJson: string | null
|
|
27
|
+
externalDirsJson: string | null,
|
|
28
|
+
transformSourcesJson: string | null
|
|
28
29
|
];
|
|
29
30
|
/** @internal */
|
|
30
31
|
export interface AnalyzeProjectInputs {
|
|
@@ -48,6 +49,7 @@ export interface AnalyzeProjectInputs {
|
|
|
48
49
|
/** rootDir-relative external package dirs (JSON string array) for the
|
|
49
50
|
* external-token candidate walk, or null. */
|
|
50
51
|
externalDirsJson: string | null;
|
|
52
|
+
transformSourcesJson: string | null;
|
|
51
53
|
}
|
|
52
54
|
/** @internal */
|
|
53
55
|
export declare function buildAnalyzeProjectArgs(inputs: AnalyzeProjectInputs): AnalyzeProjectArgs;
|
|
@@ -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,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yB;IACxC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kGAAkG;IAClG,KAAK,CAAC,EAAE,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;;;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|
+
* 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).
|
|
47
|
-
*
|
|
46
|
+
* collection pass). Unreadable files are NOT counted — they never reach
|
|
47
|
+
* the analysis set.
|
|
48
48
|
*/
|
|
49
49
|
fileCount: number;
|
|
50
50
|
}
|
|
@@ -80,6 +80,12 @@ export interface CollectedExternalPackages {
|
|
|
80
80
|
* single-value view correlation consumers key on derives via
|
|
81
81
|
* `firstOwners`. */
|
|
82
82
|
dirOwnerSets: Record<string, string[]>;
|
|
83
|
+
/** Absolute package dir → the EXACT extension list its collection walk
|
|
84
|
+
* used (dist-only dirs widen with the entry's own extension, e.g.
|
|
85
|
+
* `.mjs`). Hosts that rewalk or re-classify paths under a dir must use
|
|
86
|
+
* this same list — recomputing from the project default silently drops
|
|
87
|
+
* every file the widened walk admitted. */
|
|
88
|
+
dirExtensions: Record<string, string[]>;
|
|
83
89
|
/** rootDir-relative file path → owning specifier, for files THIS collection
|
|
84
90
|
* pushed (first-contributing specifier wins; files the caller's own set
|
|
85
91
|
* already supplied stay unattributed — they are consumer-owned). */
|
|
@@ -114,13 +120,12 @@ export declare function collectExternalPackageSources(opts: {
|
|
|
114
120
|
/** Does the caller's file set already contain this rootDir-relative path? */
|
|
115
121
|
hasEntry: (relPath: string) => boolean;
|
|
116
122
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
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.
|
|
119
127
|
*/
|
|
120
|
-
|
|
121
|
-
source: string;
|
|
122
|
-
relPath: string;
|
|
123
|
-
} | null>;
|
|
128
|
+
onSourceRead?: (source: string, relPath: string, absPath: string) => void;
|
|
124
129
|
/** Called when a discovered file cannot be read; the file is skipped. */
|
|
125
130
|
onUnreadable: (relPath: string, error: unknown) => void;
|
|
126
131
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover-packages.d.ts","sourceRoot":"","sources":["../../pipeline/discover-packages.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAS5D;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,UAKhC,CAAC;AAEF;6EAC6E;AAC7E,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAElE;AAED;;;;;GAKG;AACH,wBAAgB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AAQ,EAAE,sBAAsB,EAAE,GACjC,MAAM,GAAG,IAAI,CAMf;AAED,wBAAgB,yBAAyB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,CAoN1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-prop-config.d.ts","sourceRoot":"","sources":["../../pipeline/dynamic-prop-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,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;mFAC+E;IAC/E,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,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAC5C,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CA4BxC"}
|
|
@@ -42,7 +42,9 @@ 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
|
-
|
|
45
|
+
/** Parse-only native fact extraction used to prepare adapted sources. */
|
|
46
|
+
extractFacts?: (filesJson: string) => string;
|
|
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;
|
|
48
50
|
}
|
|
@@ -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,oBAAoB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IAC5E,yEAAyE;IACzE,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAC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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,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build-failing escalation for `kind: "error"` manifest diagnostics
|
|
3
|
+
* (extraction-diagnostics §Error diagnostics fail the build; design D8 of
|
|
4
|
+
* transform-result-hardening).
|
|
5
|
+
*
|
|
6
|
+
* ONE policy point shared by BOTH bundler plugins: each calls
|
|
7
|
+
* `assertNoErrorDiagnostics` at its analysis-accept seam, immediately after
|
|
8
|
+
* a completed analysis and BEFORE any stylesheet content is served or
|
|
9
|
+
* written. Failure content is composed here, from the diagnostics alone, so
|
|
10
|
+
* identical input produces identical failure messages in every host —
|
|
11
|
+
* plugin policy must not fork (precedent: pkg-collection divergences).
|
|
12
|
+
*/
|
|
13
|
+
/** The fields of a manifest diagnostic the error gate reads — structural
|
|
14
|
+
* (fields used only), so both the parsed-manifest entries and TS-side
|
|
15
|
+
* `ManifestDiagnostic` values qualify. Mirrors the Rust `CssDiagnostic`
|
|
16
|
+
* in `extract-v2/src/analyze_css.rs`. */
|
|
17
|
+
export type CssDiagnosticLike = {
|
|
18
|
+
file: string;
|
|
19
|
+
component: string;
|
|
20
|
+
kind: string;
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Throw when the diagnostics carry any `kind: "error"` entry — one
|
|
25
|
+
* aggregated `Error` naming EVERY offender (component, file, message — one
|
|
26
|
+
* line per entry, each prefixed `[animus]`). Warning-only diagnostics
|
|
27
|
+
* (`bail`/`skip`/`warn`, any severity) never trip this gate; their routing
|
|
28
|
+
* stays with `surfaceManifestDiagnostics`. Callers accept the manifest only
|
|
29
|
+
* past this point, so no stylesheet from a failing analysis is published.
|
|
30
|
+
*/
|
|
31
|
+
export declare function assertNoErrorDiagnostics(diagnostics: CssDiagnosticLike[] | undefined): void;
|
|
32
|
+
//# 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;;;;;;;;;;;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,15 +32,19 @@ 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';
|
|
31
40
|
export type { DynamicPropConfigEntry, DynamicPropMeta, } from './dynamic-prop-config';
|
|
32
41
|
export { buildDynamicPropConfig } from './dynamic-prop-config';
|
|
42
|
+
export type { CssDiagnosticLike } from './error-diagnostics';
|
|
43
|
+
export { assertNoErrorDiagnostics } from './error-diagnostics';
|
|
33
44
|
export type { ManifestDiagnostic } from './manifest-diagnostics';
|
|
34
45
|
export { isUnresolvedParentDrop, surfaceManifestDiagnostics, unresolvedParentName, } from './manifest-diagnostics';
|
|
35
46
|
export type { DefaultExtension, PreprocessMdxResult } from './mdx-preprocessor';
|
|
36
|
-
export { DEFAULT_EXTENSIONS, preprocessMdx } from './mdx-preprocessor';
|
|
47
|
+
export { DEFAULT_EXTENSIONS, ENGINE_TRANSFORM_EXTENSIONS, preprocessMdx, } from './mdx-preprocessor';
|
|
37
48
|
export { applyPrefix } from './prefix';
|
|
38
49
|
export type { FilePlanSnapshot } from './replacement-plans';
|
|
39
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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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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-analysis.d.ts","sourceRoot":"","sources":["../../pipeline/run-analysis.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IAEpC,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,YAAY,EAAE,MAAM,CAAC;IACrB;6EACyE;IACzE,MAAM,EAAE,oBAAoB,CAAC;IAC7B,4DAA4D;IAC5D,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACtE;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM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