@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.
- package/README.md +48 -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 +17 -98
- package/dist/index.cjs +78 -2101
- package/dist/index.mjs +2 -2026
- package/dist/{analyze-project-args.d.ts → pipeline/analyze-project-args.d.ts} +0 -12
- package/dist/pipeline/analyze-project-args.d.ts.map +1 -0
- package/dist/pipeline/assemble-stylesheet.d.ts +23 -0
- package/dist/pipeline/assemble-stylesheet.d.ts.map +1 -0
- package/dist/pipeline/asset-placeholders.d.ts +4 -0
- package/dist/pipeline/asset-placeholders.d.ts.map +1 -0
- package/dist/pipeline/content-hash.d.ts +2 -0
- package/dist/pipeline/content-hash.d.ts.map +1 -0
- package/dist/pipeline/core-options.d.ts +96 -0
- package/dist/pipeline/core-options.d.ts.map +1 -0
- package/dist/pipeline/correlate-external-tokens.d.ts +38 -0
- package/dist/pipeline/correlate-external-tokens.d.ts.map +1 -0
- package/dist/pipeline/discover-files.d.ts +4 -0
- package/dist/pipeline/discover-files.d.ts.map +1 -0
- package/dist/pipeline/discover-packages.d.ts +55 -0
- package/dist/pipeline/discover-packages.d.ts.map +1 -0
- package/dist/pipeline/dynamic-prop-config.d.ts +22 -0
- package/dist/pipeline/dynamic-prop-config.d.ts.map +1 -0
- package/dist/pipeline/engine-adapter.d.ts +63 -0
- package/dist/pipeline/engine-adapter.d.ts.map +1 -0
- package/dist/pipeline/engine-retirement.d.ts +3 -0
- package/dist/pipeline/engine-retirement.d.ts.map +1 -0
- package/dist/pipeline/error-diagnostics.d.ts +8 -0
- package/dist/pipeline/error-diagnostics.d.ts.map +1 -0
- package/dist/{index.d.ts → pipeline/index.d.ts} +16 -6
- package/dist/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/internal-wire.d.ts +2 -0
- package/dist/pipeline/internal-wire.d.ts.map +1 -0
- package/dist/pipeline/manifest-diagnostics.d.ts +57 -0
- package/dist/pipeline/manifest-diagnostics.d.ts.map +1 -0
- package/dist/pipeline/manifest-schema.d.ts +117 -0
- package/dist/pipeline/manifest-schema.d.ts.map +1 -0
- package/dist/pipeline/mdx-preprocessor.d.ts +25 -0
- package/dist/pipeline/mdx-preprocessor.d.ts.map +1 -0
- package/dist/pipeline/path-aliases.d.ts +15 -0
- package/dist/pipeline/path-aliases.d.ts.map +1 -0
- package/dist/{post-process-css.d.ts → pipeline/post-process-css.d.ts} +0 -8
- package/dist/pipeline/post-process-css.d.ts.map +1 -0
- package/dist/pipeline/prefix.d.ts +8 -0
- package/dist/pipeline/prefix.d.ts.map +1 -0
- package/dist/pipeline/replacement-plans.d.ts +22 -0
- package/dist/pipeline/replacement-plans.d.ts.map +1 -0
- package/dist/pipeline/resolve-asset.d.ts +11 -0
- package/dist/pipeline/resolve-asset.d.ts.map +1 -0
- package/dist/pipeline/run-analysis.d.ts +62 -0
- package/dist/pipeline/run-analysis.d.ts.map +1 -0
- package/dist/pipeline/source-corpus.d.ts +25 -0
- package/dist/pipeline/source-corpus.d.ts.map +1 -0
- package/dist/pipeline/source-identity.d.ts +63 -0
- package/dist/pipeline/source-identity.d.ts.map +1 -0
- package/dist/pipeline/source-ingestion.d.ts +168 -0
- package/dist/pipeline/source-ingestion.d.ts.map +1 -0
- package/dist/pipeline/static-css.d.ts +16 -0
- package/dist/pipeline/static-css.d.ts.map +1 -0
- package/dist/pipeline/structural-self-check.d.ts +12 -0
- package/dist/pipeline/structural-self-check.d.ts.map +1 -0
- package/dist/pipeline/svelte-source-adapter.d.ts +81 -0
- package/dist/pipeline/svelte-source-adapter.d.ts.map +1 -0
- package/dist/pipeline/system-config.d.ts +40 -0
- package/dist/pipeline/system-config.d.ts.map +1 -0
- package/dist/pipeline/system-props-module.d.ts +8 -0
- package/dist/pipeline/system-props-module.d.ts.map +1 -0
- package/dist/pipeline/timing-waterfall.d.ts +6 -0
- package/dist/pipeline/timing-waterfall.d.ts.map +1 -0
- package/dist/pipeline/tsconfig-paths.d.ts +7 -0
- package/dist/pipeline/tsconfig-paths.d.ts.map +1 -0
- package/dist/pipeline/unit-fallback.d.ts +2 -0
- package/dist/pipeline/unit-fallback.d.ts.map +1 -0
- package/dist/pipeline/utils.d.ts +3 -0
- package/dist/pipeline/utils.d.ts.map +1 -0
- package/dist/pipeline/watch-keys.d.ts +2 -0
- package/dist/pipeline/watch-keys.d.ts.map +1 -0
- package/dist/pipeline-DeEENy5C.mjs +2905 -0
- package/dist/pipeline-x1yBZ2UP.cjs +3386 -0
- package/dist/session/extraction-session.d.ts +240 -0
- package/dist/session/extraction-session.d.ts.map +1 -0
- package/dist/session/index.d.ts +10 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/published-set.d.ts +52 -0
- package/dist/session/published-set.d.ts.map +1 -0
- package/dist/session/resolve-packages.d.ts +7 -0
- package/dist/session/resolve-packages.d.ts.map +1 -0
- package/dist/session/session-paths.d.ts +97 -0
- package/dist/session/session-paths.d.ts.map +1 -0
- package/dist/session/singleton.d.ts +85 -0
- package/dist/session/singleton.d.ts.map +1 -0
- package/dist/session/timing.d.ts +2 -0
- package/dist/session/timing.d.ts.map +1 -0
- package/dist/session/turbopack-orchestrator.d.ts +27 -0
- package/dist/session/turbopack-orchestrator.d.ts.map +1 -0
- package/dist/session.cjs +1999 -0
- package/dist/session.mjs +1955 -0
- package/index-v2.js +0 -9
- package/package.json +22 -9
- package/dist/analyze-project-args.d.ts.map +0 -1
- package/dist/assemble-stylesheet.d.ts +0 -58
- package/dist/assemble-stylesheet.d.ts.map +0 -1
- package/dist/asset-placeholders.d.ts +0 -29
- package/dist/asset-placeholders.d.ts.map +0 -1
- package/dist/content-hash.d.ts +0 -9
- package/dist/content-hash.d.ts.map +0 -1
- package/dist/correlate-external-tokens.d.ts +0 -46
- 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 +0 -192
- package/dist/discover-packages.d.ts.map +0 -1
- package/dist/dynamic-prop-config.d.ts +0 -37
- package/dist/dynamic-prop-config.d.ts.map +0 -1
- package/dist/engine-adapter.d.ts +0 -97
- package/dist/engine-adapter.d.ts.map +0 -1
- package/dist/engine-retirement.d.ts +0 -22
- package/dist/engine-retirement.d.ts.map +0 -1
- package/dist/error-diagnostics.d.ts +0 -32
- package/dist/error-diagnostics.d.ts.map +0 -1
- package/dist/external-keyframes.d.ts +0 -23
- package/dist/external-keyframes.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/manifest-diagnostics.d.ts +0 -62
- package/dist/manifest-diagnostics.d.ts.map +0 -1
- package/dist/mdx-preprocessor.d.ts +0 -39
- package/dist/mdx-preprocessor.d.ts.map +0 -1
- package/dist/path-aliases.d.ts +0 -34
- package/dist/path-aliases.d.ts.map +0 -1
- package/dist/post-process-css.d.ts.map +0 -1
- package/dist/prefix.d.ts +0 -15
- package/dist/prefix.d.ts.map +0 -1
- package/dist/replacement-plans.d.ts +0 -46
- package/dist/replacement-plans.d.ts.map +0 -1
- package/dist/resolve-asset.d.ts +0 -14
- package/dist/resolve-asset.d.ts.map +0 -1
- package/dist/run-analysis.d.ts +0 -74
- package/dist/run-analysis.d.ts.map +0 -1
- package/dist/source-identity.d.ts +0 -93
- package/dist/source-identity.d.ts.map +0 -1
- package/dist/static-css.d.ts +0 -25
- package/dist/static-css.d.ts.map +0 -1
- package/dist/system-config.d.ts +0 -57
- package/dist/system-config.d.ts.map +0 -1
- package/dist/system-props-module.d.ts +0 -22
- package/dist/system-props-module.d.ts.map +0 -1
- package/dist/timing-waterfall.d.ts +0 -17
- package/dist/timing-waterfall.d.ts.map +0 -1
- package/dist/tsconfig-paths.d.ts +0 -8
- package/dist/tsconfig-paths.d.ts.map +0 -1
- package/dist/unit-fallback.d.ts +0 -7
- package/dist/unit-fallback.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -3
- package/dist/utils.d.ts.map +0 -1
- package/dist/watch-keys.d.ts +0 -12
- package/dist/watch-keys.d.ts.map +0 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TS mirror of the engine's serde output: field spelling and optionality are
|
|
3
|
+
* the engine's, never a transcription choice. One spelling per field.
|
|
4
|
+
*/
|
|
5
|
+
import type { DynamicPropMeta } from './dynamic-prop-config';
|
|
6
|
+
import type { ManifestDiagnostic } from './manifest-diagnostics';
|
|
7
|
+
import type { ExtractFileFacts } from './source-ingestion';
|
|
8
|
+
export interface ManifestComponentDescriptor {
|
|
9
|
+
file: string;
|
|
10
|
+
binding: string;
|
|
11
|
+
class_name: string;
|
|
12
|
+
extends_from: string | null;
|
|
13
|
+
/** `asElement` | `asComponent` | `asClass`. */
|
|
14
|
+
terminal: string;
|
|
15
|
+
tag: string;
|
|
16
|
+
replacement: string;
|
|
17
|
+
system_prop_names: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface ManifestSheets {
|
|
20
|
+
/** The `@layer` ordering statement alone. */
|
|
21
|
+
declaration: string;
|
|
22
|
+
global: string;
|
|
23
|
+
base: string;
|
|
24
|
+
variants: string;
|
|
25
|
+
compounds: string;
|
|
26
|
+
states: string;
|
|
27
|
+
system: string;
|
|
28
|
+
custom: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ManifestComponentSheets {
|
|
31
|
+
base?: string;
|
|
32
|
+
variants?: string;
|
|
33
|
+
compounds?: string;
|
|
34
|
+
states?: string;
|
|
35
|
+
}
|
|
36
|
+
/** Byte offsets into the source file. */
|
|
37
|
+
export interface ManifestUsageSpan {
|
|
38
|
+
start: number;
|
|
39
|
+
end: number;
|
|
40
|
+
}
|
|
41
|
+
/** One still-dynamic usage site. */
|
|
42
|
+
export interface ManifestUsageResidueRecord {
|
|
43
|
+
binding: string;
|
|
44
|
+
prop: string;
|
|
45
|
+
file: string;
|
|
46
|
+
span: ManifestUsageSpan;
|
|
47
|
+
/** The dynamic-expression kind, kebab-cased. */
|
|
48
|
+
kind: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ManifestCrossFileFacts {
|
|
51
|
+
componentNames: string[];
|
|
52
|
+
classResolvers: string[];
|
|
53
|
+
/** `Family.Slot` dotted key → slot binding name. */
|
|
54
|
+
memberBindings: Record<string, string>;
|
|
55
|
+
renderedComponents: string[];
|
|
56
|
+
/** binding → variant prop → option names. */
|
|
57
|
+
variantOptions: Record<string, Record<string, string[]>>;
|
|
58
|
+
/** binding → state names. */
|
|
59
|
+
stateNames: Record<string, string[]>;
|
|
60
|
+
}
|
|
61
|
+
export interface ManifestEliminatedDetail {
|
|
62
|
+
component: string;
|
|
63
|
+
/** `"component"` | `"variant"` | `"state"`. */
|
|
64
|
+
kind: string;
|
|
65
|
+
/** Variant option or state name; `null` for a whole component. */
|
|
66
|
+
name: string | null;
|
|
67
|
+
reason: string;
|
|
68
|
+
}
|
|
69
|
+
export interface ManifestReconciliationReport {
|
|
70
|
+
components_total: number;
|
|
71
|
+
components_extracted: number;
|
|
72
|
+
components_eliminated: number;
|
|
73
|
+
variants_total: number;
|
|
74
|
+
variants_used: number;
|
|
75
|
+
variants_eliminated: number;
|
|
76
|
+
states_total: number;
|
|
77
|
+
states_used: number;
|
|
78
|
+
states_eliminated: number;
|
|
79
|
+
components_forced: number;
|
|
80
|
+
variants_forced: number;
|
|
81
|
+
states_forced: number;
|
|
82
|
+
eliminated_details: ManifestEliminatedDetail[];
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A type alias, not an interface: only an alias carries the implicit index
|
|
86
|
+
* signature that keeps it assignable to an open `Record<string, number>`.
|
|
87
|
+
*/
|
|
88
|
+
export type ManifestTiming = {
|
|
89
|
+
parseCount: number;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* The parsed `ExtractEngine.analyze()` manifest. Every top-level field is
|
|
93
|
+
* always present — an empty universe emits `{}` / `[]` / `""`, not absence.
|
|
94
|
+
*/
|
|
95
|
+
export interface ProjectManifest {
|
|
96
|
+
fileFacts: Record<string, ExtractFileFacts>;
|
|
97
|
+
crossFile: ManifestCrossFileFacts;
|
|
98
|
+
parseCount: number;
|
|
99
|
+
usageResidue: ManifestUsageResidueRecord[];
|
|
100
|
+
/** Complete component CSS, before the TS-side unit fallback. */
|
|
101
|
+
css: string;
|
|
102
|
+
sheets: ManifestSheets;
|
|
103
|
+
diagnostics: ManifestDiagnostic[];
|
|
104
|
+
report: ManifestReconciliationReport;
|
|
105
|
+
/** prop name → value → utility class name. */
|
|
106
|
+
system_prop_map: Record<string, Record<string, string>>;
|
|
107
|
+
dynamic_props: Record<string, DynamicPropMeta>;
|
|
108
|
+
component_fragments: Record<string, ManifestComponentSheets>;
|
|
109
|
+
/** parent component id → child component ids. */
|
|
110
|
+
reverse_provenance: Record<string, string[]>;
|
|
111
|
+
/** component id (`file::binding`) → descriptor. */
|
|
112
|
+
components: Record<string, ManifestComponentDescriptor>;
|
|
113
|
+
/** file path → component ids declared in it. */
|
|
114
|
+
files: Record<string, string[]>;
|
|
115
|
+
timing: ManifestTiming;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=manifest-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-schema.d.ts","sourceRoot":"","sources":["../../pipeline/manifest-schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,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,EAAE,4BAA4B,CAAC;IACrC,8CAA8C;IAC9C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC/C,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IAC7D,iDAAiD;IACjD,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;IACxD,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAChC,MAAM,EAAE,cAAc,CAAC;CACxB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MDX compiled to scanner-consumable JSX, plus the extension sets every
|
|
3
|
+
* driver imports. `@mdx-js/mdx` is an optional peer, so its import is lazy.
|
|
4
|
+
*/
|
|
5
|
+
export declare const DEFAULT_EXTENSIONS: readonly ['.ts', '.tsx', '.js', '.jsx', '.mdx'];
|
|
6
|
+
export type DefaultExtension = (typeof DEFAULT_EXTENSIONS)[number];
|
|
7
|
+
/**
|
|
8
|
+
* The one engine-transform file gate every driver imports — the suffixes the
|
|
9
|
+
* engine's parser accepts. `.mdx` is preprocessed to `.tsx` before it.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ENGINE_TRANSFORM_EXTENSIONS: readonly ['ts', 'tsx', 'js', 'jsx', 'mjs'];
|
|
12
|
+
export declare function isEngineTransformExtension(path: string): boolean;
|
|
13
|
+
export interface PreprocessMdxResult {
|
|
14
|
+
kind: 'ok' | 'missing-dep' | 'error';
|
|
15
|
+
/** Present when `kind` is `'ok'`. */
|
|
16
|
+
source?: string;
|
|
17
|
+
/** Present when `kind` is `'error'`. */
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Compile MDX to scanner-consumable JSX. `missing-dep` means the consumer
|
|
22
|
+
* must install `@mdx-js/mdx`; hosts warn and skip the file on `error`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function preprocessMdx(source: string, filename: string): Promise<PreprocessMdxResult>;
|
|
25
|
+
//# sourceMappingURL=mdx-preprocessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mdx-preprocessor.d.ts","sourceRoot":"","sources":["../../pipeline/mdx-preprocessor.ts"],"names":[],"mappings":"AAAA;;;GAGG;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;;;GAGG;AACH,eAAO,MAAM,2BAA2B,YACtC,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,CACG,CAAC;AAMX,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhE;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,IAAI,GAAG,aAAa,GAAG,OAAO,CAAC;IACrC,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC,CAsB9B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface PathAliasEntry {
|
|
2
|
+
pattern: string;
|
|
3
|
+
replacement: string;
|
|
4
|
+
type: 'prefix' | 'exact';
|
|
5
|
+
}
|
|
6
|
+
export interface PathAliasPair {
|
|
7
|
+
pattern: string;
|
|
8
|
+
target: string;
|
|
9
|
+
kind?: 'prefix' | 'exact';
|
|
10
|
+
}
|
|
11
|
+
export declare function buildPathAliasesJson(pairs: PathAliasPair[], rootDir: string): {
|
|
12
|
+
json: string;
|
|
13
|
+
count: number;
|
|
14
|
+
} | null;
|
|
15
|
+
//# sourceMappingURL=path-aliases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-aliases.d.ts","sourceRoot":"","sources":["../../pipeline/path-aliases.ts"],"names":[],"mappings":"AAAA,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,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC3B;AAED,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"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { browserslistToTargets } from 'lightningcss';
|
|
2
2
|
export type LightningTargets = ReturnType<typeof browserslistToTargets>;
|
|
3
|
-
/**
|
|
4
|
-
* Resolve browser targets for Lightning CSS.
|
|
5
|
-
* Priority: explicit config → project browserslist → 'defaults' fallback.
|
|
6
|
-
*/
|
|
7
3
|
export declare function resolveLightningTargets(explicitTargets: string | string[] | undefined, rootDir: string): LightningTargets;
|
|
8
|
-
/**
|
|
9
|
-
* Post-process CSS with Lightning CSS: autoprefixing + optional minification.
|
|
10
|
-
* On failure, returns the original CSS and logs a warning.
|
|
11
|
-
*/
|
|
12
4
|
export declare function postProcessCss(css: string, opts: {
|
|
13
5
|
minify: boolean;
|
|
14
6
|
targets: LightningTargets;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-process-css.d.ts","sourceRoot":"","sources":["../../pipeline/post-process-css.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAExE,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAC9C,OAAO,EAAE,MAAM,GACd,gBAAgB,CAkBlB;AAED,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,CAiBR"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface PrefixedSystemArtifacts {
|
|
2
|
+
variableMapJson: string;
|
|
3
|
+
variableCss: string;
|
|
4
|
+
themeJson?: string;
|
|
5
|
+
contextualVarsJson?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function applyPrefix(prefix: string, variableMapJson: string, variableCss: string, themeJson?: string, contextualVarsJson?: string): PrefixedSystemArtifacts;
|
|
8
|
+
//# sourceMappingURL=prefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefix.d.ts","sourceRoot":"","sources":["../../pipeline/prefix.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,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,uBAAuB,CAqCzB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ProjectManifest } from './manifest-schema';
|
|
2
|
+
/**
|
|
3
|
+
* A file's plan: the ordered (component id, replacement) pairs the manifest
|
|
4
|
+
* holds for it. A file with no entries is ABSENT, never an empty entry.
|
|
5
|
+
*/
|
|
6
|
+
export type FilePlanSnapshot = Map<string, string>;
|
|
7
|
+
/** `null` (a context before its first analysis) snapshots to the empty plan
|
|
8
|
+
* set — the same state as an empty universe. */
|
|
9
|
+
export declare function snapshotFilePlans(manifest: Pick<ProjectManifest, 'components'> | null): FilePlanSnapshot;
|
|
10
|
+
/**
|
|
11
|
+
* Paths whose plan changed: absent↔present, membership, or content.
|
|
12
|
+
* `exclude` drops one path whose own modules are already being updated.
|
|
13
|
+
*/
|
|
14
|
+
export declare function diffFilePlans(prev: FilePlanSnapshot, next: FilePlanSnapshot, opts?: {
|
|
15
|
+
exclude?: string;
|
|
16
|
+
}): string[];
|
|
17
|
+
/**
|
|
18
|
+
* THE replacement epoch: integrations consume this hash, never their own.
|
|
19
|
+
* `servedDependencyWitness` folds in content the plans cannot see.
|
|
20
|
+
*/
|
|
21
|
+
export declare function hashReplacementPlans(snapshot: FilePlanSnapshot, servedDependencyWitness?: string): string;
|
|
22
|
+
//# sourceMappingURL=replacement-plans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replacement-plans.d.ts","sourceRoot":"","sources":["../../pipeline/replacement-plans.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAMnD;iDACiD;AACjD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,GAAG,IAAI,GACnD,gBAAgB,CAmBlB;AAED;;;GAGG;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;AAUD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,gBAAgB,EAC1B,uBAAuB,CAAC,EAAE,MAAM,GAC/B,MAAM,CAYR"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map a specifier through the host alias table, whose entries arrive sorted
|
|
3
|
+
* longest-pattern-first. Returns an absolute path to an EXISTING file.
|
|
4
|
+
*/
|
|
5
|
+
export declare function resolveThroughPathAliases(specifier: string, rootDir: string, pathAliasesJson: string | null | undefined): string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Resolve an asset specifier: host aliases, then Node resolution anchored at
|
|
8
|
+
* `rootDir`, then the package root. Strict gating stays at the caller.
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveAssetFile(specifier: string, rootDir: string, pathAliasesJson?: string | null): string | null;
|
|
11
|
+
//# sourceMappingURL=resolve-asset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-asset.d.ts","sourceRoot":"","sources":["../../pipeline/resolve-asset.ts"],"names":[],"mappings":"AAuDA;;;GAGG;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;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAC9B,MAAM,GAAG,IAAI,CA0Cf"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { AnalyzeProjectInputs } from './analyze-project-args';
|
|
2
|
+
import type { ProjectManifest } from './manifest-schema';
|
|
3
|
+
import type { SystemConfig } from './system-config';
|
|
4
|
+
/**
|
|
5
|
+
* Per-bundler emitter identity: the module ids the engine injects into
|
|
6
|
+
* transformed sources (Vite virtual ids; Next on-disk `.animus/` paths).
|
|
7
|
+
*/
|
|
8
|
+
export interface EmitterConfig {
|
|
9
|
+
runtimeImport: string;
|
|
10
|
+
cssModuleId: string;
|
|
11
|
+
systemPropsModuleId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ProjectAnalysisResult {
|
|
14
|
+
manifest: ProjectManifest;
|
|
15
|
+
manifestJson: string;
|
|
16
|
+
globalCss: string;
|
|
17
|
+
componentCss: string;
|
|
18
|
+
/** The exact analyze-time inputs (serialized `filesJson` included) —
|
|
19
|
+
* persistable without re-serializing the source corpus. */
|
|
20
|
+
inputs: AnalyzeProjectInputs;
|
|
21
|
+
timings: {
|
|
22
|
+
serializeMs: number;
|
|
23
|
+
extractMs: number;
|
|
24
|
+
parseMs: number;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface AnalysisOptions {
|
|
28
|
+
fileEntries: Array<{
|
|
29
|
+
path: string;
|
|
30
|
+
source: string;
|
|
31
|
+
hash?: string;
|
|
32
|
+
}>;
|
|
33
|
+
packageMap: Record<string, string>;
|
|
34
|
+
system: SystemConfig;
|
|
35
|
+
emitter: EmitterConfig;
|
|
36
|
+
pathAliasesJson: string | null;
|
|
37
|
+
/** Serialized `staticCss` forced-emission declarations. */
|
|
38
|
+
staticCssJson?: string | null;
|
|
39
|
+
/** rootDir-relative external package dirs (external-token candidates). */
|
|
40
|
+
externalDirs?: string[];
|
|
41
|
+
devMode: boolean;
|
|
42
|
+
/** Diagnostics gathered outside analysis, surfaced through the same
|
|
43
|
+
* policy point as the manifest's own. */
|
|
44
|
+
extraDiagnostics?: import('./manifest-diagnostics').ManifestDiagnostic[];
|
|
45
|
+
}
|
|
46
|
+
/** The named `analyzeProject` input set, and the persistence shape an
|
|
47
|
+
* isolated process replays the analysis from. */
|
|
48
|
+
export declare function buildAnalysisInputs(opts: AnalysisOptions): AnalyzeProjectInputs;
|
|
49
|
+
/**
|
|
50
|
+
* The one analysis invocation both plugins share. Error handling stays at
|
|
51
|
+
* the call site (strict-mode throw vs warn).
|
|
52
|
+
*/
|
|
53
|
+
export declare function runProjectAnalysis(engineApi: () => any, opts: AnalysisOptions & {
|
|
54
|
+
warn: (message: string) => void;
|
|
55
|
+
strict?: boolean;
|
|
56
|
+
}): ProjectAnalysisResult;
|
|
57
|
+
/**
|
|
58
|
+
* Clear the engine's per-file analysis cache so stale results never bleed
|
|
59
|
+
* into a fresh run. Engines without the capability are tolerated.
|
|
60
|
+
*/
|
|
61
|
+
export declare function clearEngineCache(engineApi: () => any): void;
|
|
62
|
+
//# sourceMappingURL=run-analysis.d.ts.map
|
|
@@ -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,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;GAGG;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;IACpC,QAAQ,EAAE,eAAe,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IAC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ionResult, type SourceIngestor, type SourceIngestorHost } from './source-ingestion';
|
|
2
|
+
type CachedSourceEntry = {
|
|
3
|
+
hash: string;
|
|
4
|
+
source: string;
|
|
5
|
+
};
|
|
6
|
+
export interface SourceCorpusCache {
|
|
7
|
+
/** rootDir-relative original path → entry. */
|
|
8
|
+
fileCache: ReadonlyMap<string, CachedSourceEntry>;
|
|
9
|
+
/** rootDir-relative external file → owning specifier; absence means "not
|
|
10
|
+
* external". */
|
|
11
|
+
externalFileOwners: Readonly<ExternalFileOwners>;
|
|
12
|
+
}
|
|
13
|
+
export interface PublishedSourceCorpus {
|
|
14
|
+
readonly analysisEntries: ReadonlyMap<string, CachedSourceEntry>;
|
|
15
|
+
/** Original path → the analysis entries it owns (zero-entry owners kept). */
|
|
16
|
+
readonly ownership: Readonly<Record<string, SourceEntryOwnership>>;
|
|
17
|
+
}
|
|
18
|
+
export interface SourceCorpus {
|
|
19
|
+
prepare(input: readonly RawSourceEntry[] | SourceCorpusCache): Promise<SourceIngestionResult>;
|
|
20
|
+
publish(accepted: SourceIngestionResult): void;
|
|
21
|
+
readonly published: PublishedSourceCorpus;
|
|
22
|
+
}
|
|
23
|
+
export declare function createSourceCorpus(host: SourceIngestorHost, ingestor?: SourceIngestor): SourceCorpus;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=source-corpus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-corpus.d.ts","sourceRoot":"","sources":["../../pipeline/source-corpus.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,KAAK,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,8CAA8C;IAC9C,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAClD;qBACiB;IACjB,kBAAkB,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACjE,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,CACL,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,iBAAiB,GACnD,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC,OAAO,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;CAC3C;AAgBD,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,kBAAkB,EACxB,QAAQ,GAAE,cAA2C,GACpD,YAAY,CA+Bd"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
/** Structural alias, not `node:path`'s own `PlatformPath`: some @types/node
|
|
3
|
+
* versions do not export that name and fail consumers' type-check. */
|
|
4
|
+
type PlatformPath = typeof path.win32;
|
|
5
|
+
/**
|
|
6
|
+
* One derivation of source identity for discovery, watch ingestion, ownership
|
|
7
|
+
* and deletion: event paths are lookup INPUTS only and never fork identity.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* True when `target` is `root` or a descendant, decided by `relative()`
|
|
11
|
+
* shape: string prefixing would let `/ui` claim `/ui-old`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isPathWithinRoot(root: string, target: string, pathApi?: PlatformPath): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* True when two paths share a platform root (win32 drive letter or UNC
|
|
16
|
+
* share; always true on posix). Drive letters compare case-insensitively.
|
|
17
|
+
*/
|
|
18
|
+
export declare function sharesVolumeRoot(a: string, b: string, pathApi?: PlatformPath): boolean;
|
|
19
|
+
export interface ResolvedSourceId {
|
|
20
|
+
/**
|
|
21
|
+
* rootDir-relative key all persistent analysis state is indexed by; kit
|
|
22
|
+
* files keep `..`-prefixed keys. Canonical, so event spelling never forks it.
|
|
23
|
+
*/
|
|
24
|
+
sourceKey: string;
|
|
25
|
+
/** Canonical owning external root; null when the project root owns it. */
|
|
26
|
+
owningRoot: string | null;
|
|
27
|
+
/** Path relative to the owning root (equals `sourceKey` for project-root
|
|
28
|
+
* members) — the input for package-relative exclusion filters. */
|
|
29
|
+
pathInRoot: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Per-generation identity handle: alias associations observed while a file
|
|
33
|
+
* existed are recorded, so deletion never canonicalizes a gone path.
|
|
34
|
+
*/
|
|
35
|
+
export interface SourceIdentity {
|
|
36
|
+
readonly rootDir: string;
|
|
37
|
+
readonly canonicalRootDir: string;
|
|
38
|
+
/**
|
|
39
|
+
* Register an external source root; duplicate spellings of one canonical
|
|
40
|
+
* root collapse into the first registration. Returns the canonical form.
|
|
41
|
+
*/
|
|
42
|
+
registerExternalRoot(root: string): string;
|
|
43
|
+
/** Canonical forms of every registered external root (registration order). */
|
|
44
|
+
externalRoots(): string[];
|
|
45
|
+
/**
|
|
46
|
+
* Resolve an EXISTING path: canonicalize, then re-authorize containment so
|
|
47
|
+
* a symlink escaping every allowed tree is rejected. Records the aliases.
|
|
48
|
+
*/
|
|
49
|
+
resolveSourceId(inputPath: string): ResolvedSourceId | null;
|
|
50
|
+
/**
|
|
51
|
+
* Resolve a DELETED path through recorded aliases only: a spelling never
|
|
52
|
+
* observed while the file existed resolves nothing.
|
|
53
|
+
*/
|
|
54
|
+
resolveDeletedSourceId(inputPath: string): ResolvedSourceId | null;
|
|
55
|
+
/**
|
|
56
|
+
* The canonical external root containing `inputPath` — the path need not
|
|
57
|
+
* exist and no file identity is resolved. Null when no root contains it.
|
|
58
|
+
*/
|
|
59
|
+
containingExternalRoot(inputPath: string): string | null;
|
|
60
|
+
}
|
|
61
|
+
export declare function createSourceIdentity(rootDir: string): SourceIdentity;
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=source-identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-identity.d.ts","sourceRoot":"","sources":["../../pipeline/source-identity.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B;uEACuE;AACvE,KAAK,YAAY,GAAG,OAAO,IAAI,CAAC,KAAK,CAAC;AAEtC;;;GAGG;AAEH;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,YAAmB,GAC3B,OAAO,CAQT;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,OAAO,GAAE,YAAmB,GAC3B,OAAO,CAIT;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;uEACmE;IACnE,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;;OAGG;IACH,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3C,8EAA8E;IAC9E,aAAa,IAAI,MAAM,EAAE,CAAC;IAC1B;;;OAGG;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;;;OAGG;IACH,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC1D;AAeD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,CAwGpE"}
|
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
hash?: string;
|
|
7
|
+
}
|
|
8
|
+
type FilesJsonValue = null | boolean | number | string | FilesJsonValue[] | {
|
|
9
|
+
[key: string]: FilesJsonValue;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The index signature is load-bearing: a caller that re-serializes this corpus
|
|
13
|
+
* after editing it must not strip fields a newer writer added.
|
|
14
|
+
*/
|
|
15
|
+
export type SerializedSourceEntry = RawSourceEntry & {
|
|
16
|
+
[key: string]: FilesJsonValue;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Throws on a payload that is not a corpus: an empty corpus is
|
|
20
|
+
* indistinguishable from "no files" and would publish an empty stylesheet.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseFilesJson(filesJson: string, context: string): SerializedSourceEntry[];
|
|
23
|
+
export interface OriginalSourceEntry {
|
|
24
|
+
path: string;
|
|
25
|
+
source: string;
|
|
26
|
+
hash: string;
|
|
27
|
+
}
|
|
28
|
+
export interface AnalysisSourceEntry {
|
|
29
|
+
path: string;
|
|
30
|
+
source: string;
|
|
31
|
+
hash: string;
|
|
32
|
+
}
|
|
33
|
+
export interface SourceEntryOwnership {
|
|
34
|
+
originalPath: string;
|
|
35
|
+
originalHash: string;
|
|
36
|
+
analysisPaths: string[];
|
|
37
|
+
}
|
|
38
|
+
export interface ExtractImportFact {
|
|
39
|
+
local: string;
|
|
40
|
+
imported: string;
|
|
41
|
+
source: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ExtractExportFact {
|
|
44
|
+
exported: string;
|
|
45
|
+
local: string | null;
|
|
46
|
+
source: string | null;
|
|
47
|
+
original: string | null;
|
|
48
|
+
}
|
|
49
|
+
export interface ExtractChainFact {
|
|
50
|
+
descriptor: {
|
|
51
|
+
binding: string;
|
|
52
|
+
terminal: string;
|
|
53
|
+
extractable: boolean;
|
|
54
|
+
};
|
|
55
|
+
fatalError: string | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A partial transcription of the engine's per-file facts wire: `statics`,
|
|
59
|
+
* `usage`, `compose`, and `transforms` exist on it and are added when read.
|
|
60
|
+
*/
|
|
61
|
+
export interface ExtractFileFacts {
|
|
62
|
+
path: string;
|
|
63
|
+
chains: ExtractChainFact[];
|
|
64
|
+
imports: ExtractImportFact[];
|
|
65
|
+
exports: ExtractExportFact[];
|
|
66
|
+
parseDiagnostics: string[];
|
|
67
|
+
}
|
|
68
|
+
export interface ExtractFactsResult {
|
|
69
|
+
files: Record<string, ExtractFileFacts>;
|
|
70
|
+
parseCount: number;
|
|
71
|
+
}
|
|
72
|
+
export interface NativeSourceDiagnostic {
|
|
73
|
+
code: 'SOURCE_NATIVE_PARSE_ERROR';
|
|
74
|
+
message: string;
|
|
75
|
+
originalPath: string;
|
|
76
|
+
analysisPath: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Advisory diagnostics warn in every mode and never quarantine their file:
|
|
80
|
+
* OXC recovers parse errors the host bundler itself accepts. All else is fatal.
|
|
81
|
+
*/
|
|
82
|
+
export declare function isAdvisorySourceDiagnostic(diagnostic: SourceIngestionDiagnostic): boolean;
|
|
83
|
+
export interface SourceParserDiagnostic {
|
|
84
|
+
code: 'SOURCE_MDX_DEPENDENCY_MISSING' | 'SOURCE_MDX_PARSE_ERROR' | 'SOURCE_SVELTE_DEPENDENCY_MISSING';
|
|
85
|
+
message: string;
|
|
86
|
+
originalPath: string;
|
|
87
|
+
}
|
|
88
|
+
export interface AnalysisPathCollisionDiagnostic {
|
|
89
|
+
code: 'SOURCE_ANALYSIS_PATH_COLLISION';
|
|
90
|
+
message: string;
|
|
91
|
+
originalPath: string;
|
|
92
|
+
analysisPath: string;
|
|
93
|
+
conflictingOriginalPath: string;
|
|
94
|
+
}
|
|
95
|
+
export interface ResolverIdentityCollisionDiagnostic {
|
|
96
|
+
code: 'SOURCE_RESOLVER_IDENTITY_COLLISION';
|
|
97
|
+
message: string;
|
|
98
|
+
originalPath: string;
|
|
99
|
+
canonicalPath: string;
|
|
100
|
+
conflictingOriginalPath: string;
|
|
101
|
+
}
|
|
102
|
+
export type SourceIngestionDiagnostic = NativeSourceDiagnostic | SourceParserDiagnostic | AnalysisPathCollisionDiagnostic | ResolverIdentityCollisionDiagnostic | SvelteAdapterDiagnostic;
|
|
103
|
+
export interface SourceIngestionResult {
|
|
104
|
+
originalEntries: OriginalSourceEntry[];
|
|
105
|
+
/** Parser-ready entries sent to analysis; a `.svelte` path is never one. */
|
|
106
|
+
analysisEntries: AnalysisSourceEntry[];
|
|
107
|
+
/** Ownership per original, including originals with zero analysis paths. */
|
|
108
|
+
ownership: Record<string, SourceEntryOwnership>;
|
|
109
|
+
diagnostics: SourceIngestionDiagnostic[];
|
|
110
|
+
}
|
|
111
|
+
export interface CachedFileFacts {
|
|
112
|
+
hash: string;
|
|
113
|
+
facts: ExtractFileFacts;
|
|
114
|
+
}
|
|
115
|
+
export interface SourceIngestionOptions {
|
|
116
|
+
extractFacts(filesJson: string): string;
|
|
117
|
+
/** Host-owned memo reused across passes; without it every pass re-parses
|
|
118
|
+
* the whole corpus through the native boundary. */
|
|
119
|
+
factsCache?: Map<string, CachedFileFacts>;
|
|
120
|
+
/** Test seams; production callers use the module defaults. */
|
|
121
|
+
preprocessMdx?: (source: string, filename: string) => Promise<PreprocessMdxResult>;
|
|
122
|
+
adaptSvelte?: typeof adaptSvelteSource;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Native and MDX entries must establish the resolver index before any Svelte
|
|
126
|
+
* projection; bare-package and aliased sources stay unattributed by design.
|
|
127
|
+
*/
|
|
128
|
+
export declare function ingestSourceEntries(rawEntries: readonly RawSourceEntry[], options: SourceIngestionOptions): Promise<SourceIngestionResult>;
|
|
129
|
+
/**
|
|
130
|
+
* Drops each named original and the analysis children it owns. Every corpus
|
|
131
|
+
* path applies it — skipping it on incremental passes freezes re-analysis.
|
|
132
|
+
*/
|
|
133
|
+
export declare function withoutInvalidOriginals(result: SourceIngestionResult, invalidOriginals: ReadonlySet<string>): SourceIngestionResult;
|
|
134
|
+
/** rootDir-relative source path → the external package specifier owning it.
|
|
135
|
+
* Absence of a key means "not external"; every reader branches on that. */
|
|
136
|
+
export interface ExternalFileOwners {
|
|
137
|
+
[sourcePath: string]: string;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Diagnostics name ANALYSIS paths while ownership is recorded for originals,
|
|
141
|
+
* so projection is required; the result REPLACES the caller's owner map.
|
|
142
|
+
*/
|
|
143
|
+
export declare function projectExternalFileOwners(result: SourceIngestionResult, rawOwners: Readonly<ExternalFileOwners>): ExternalFileOwners;
|
|
144
|
+
export interface SourceIngestorHost {
|
|
145
|
+
engineApi(): {
|
|
146
|
+
extractFacts?: (filesJson: string) => string;
|
|
147
|
+
};
|
|
148
|
+
/** Host log prefix, e.g. `[animus-extract]`. */
|
|
149
|
+
prefix: string;
|
|
150
|
+
strict(): boolean;
|
|
151
|
+
warn(message: string): void;
|
|
152
|
+
}
|
|
153
|
+
export interface SourceIngestor {
|
|
154
|
+
ingest(entries: readonly RawSourceEntry[]): Promise<SourceIngestionResult>;
|
|
155
|
+
/** Returns originals to quarantine. Fatal diagnostics throw under strict,
|
|
156
|
+
* else warn once per (original, message); advisory ones never quarantine. */
|
|
157
|
+
surfaceDiagnostics(diagnostics: readonly SourceIngestionDiagnostic[]): Set<string>;
|
|
158
|
+
/** Clears the warn dedupe for the result's originals so a later regression
|
|
159
|
+
* re-warns; hosts call it from their publish step. */
|
|
160
|
+
markPublished(result: SourceIngestionResult): void;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* One ingestion policy point for every host: a host supplies only a prefix, a
|
|
164
|
+
* strict flag, and a warn sink; policy and per-host memos stay here.
|
|
165
|
+
*/
|
|
166
|
+
export declare function createSourceIngestor(host: SourceIngestorHost): SourceIngestor;
|
|
167
|
+
export {};
|
|
168
|
+
//# 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":"AAIA,OAAO,EAAiB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EACL,iBAAiB,EAEjB,KAAK,uBAAuB,EAG7B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,KAAK,cAAc,GACf,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,cAAc,EAAE,GAChB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;CAAE,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG;IACnD,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC;CAC/B,CAAC;AAaF;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,qBAAqB,EAAE,CAWzB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,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B,GAAG,IAAI,CAAC;CACpD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,CAiD7E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** The `staticCss` option declares emission the JSX scanner cannot observe
|
|
2
|
+
* (config-driven variants, spread props); the engine applies it as usage. */
|
|
3
|
+
export interface StaticCssComponentOverride {
|
|
4
|
+
/** `'*'` = every option of every declared variant prop; per-prop `'*'` or
|
|
5
|
+
* an explicit option list otherwise. */
|
|
6
|
+
variants?: '*' | Record<string, '*' | string[]>;
|
|
7
|
+
/** `'*'` = every declared state; or an explicit list. */
|
|
8
|
+
states?: '*' | string[];
|
|
9
|
+
dynamicProps?: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface StaticCssConfig {
|
|
12
|
+
components?: Record<string, StaticCssComponentOverride>;
|
|
13
|
+
systemProps?: Record<string, Array<string | number | Record<string, string | number>>>;
|
|
14
|
+
}
|
|
15
|
+
export declare function serializeStaticCss(config: StaticCssConfig | undefined): string | null;
|
|
16
|
+
//# sourceMappingURL=static-css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-css.d.ts","sourceRoot":"","sources":["../../pipeline/static-css.ts"],"names":[],"mappings":"AAAA;8EAC8E;AAI9E,MAAM,WAAW,0BAA0B;IACzC;6CACyC;IACzC,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,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACxD,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;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,MAAM,GAAG,IAAI,CAIf"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ExternalPackageOutcome } from './discover-packages';
|
|
2
|
+
export interface StructuralCheckInput {
|
|
3
|
+
componentCount: number;
|
|
4
|
+
variableCss: string;
|
|
5
|
+
globalCss: string;
|
|
6
|
+
componentCss: string;
|
|
7
|
+
layers?: string[];
|
|
8
|
+
assembledCss?: string;
|
|
9
|
+
externalOutcomes?: readonly ExternalPackageOutcome[];
|
|
10
|
+
}
|
|
11
|
+
export declare function runStructuralSelfCheck(input: StructuralCheckInput): string[];
|
|
12
|
+
//# 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":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACtD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,EAAE,CAgE5E"}
|