@animus-ui/extract 0.1.2 → 0.1.4

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.
@@ -79,6 +79,13 @@ export interface EngineOptions {
79
79
  * the serialized `staticCss` plugin option.
80
80
  */
81
81
  staticCssJson?: string
82
+ /**
83
+ * rootDir-relative directory prefixes of discovered external packages
84
+ * (JSON string array). Files under these dirs get the external-token
85
+ * candidate walk (extraction-diagnostics: cross-source correlation);
86
+ * absent = no candidates recorded.
87
+ */
88
+ externalDirsJson?: string
82
89
  /** v1 `dev_mode`: retain all components (skip reconciliation pruning). */
83
90
  devMode?: boolean
84
91
  }
@@ -123,4 +130,11 @@ export interface NapiSystemConfig {
123
130
  * as the geological-reset membership set.
124
131
  */
125
132
  dependencies: Array<string>
133
+ /**
134
+ * Per-module built-theme token manifests captured during evaluation
135
+ * (`{ modulePath: { exportName: [token paths] } }`) — the source-token
136
+ * witness for the cross-source correlation diagnostic. Absent when no
137
+ * evaluated module exports a built theme.
138
+ */
139
+ sourceThemeManifests?: string
126
140
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The positional argument tuple for the NAPI `analyzeProject` call.
3
3
  *
4
- * This is the single authoritative copy of the 14-slot contract consumed by
4
+ * This is the single authoritative copy of the 17-slot contract consumed by
5
5
  * both extraction plugins (vite-plugin and next-plugin). The slot order is
6
6
  * mirrored by the Rust NAPI surface — changing it requires a coordinated
7
7
  * Rust-side update.
@@ -23,7 +23,8 @@ export type AnalyzeProjectArgs = [
23
23
  pathAliasesJson: string | null,
24
24
  keyframesJson: string | null,
25
25
  staticCssJson: string | null,
26
- conditionAliasesJson: string | null
26
+ conditionAliasesJson: string | null,
27
+ externalDirsJson: string | null
27
28
  ];
28
29
  /** @internal */
29
30
  export interface AnalyzeProjectInputs {
@@ -44,6 +45,9 @@ export interface AnalyzeProjectInputs {
44
45
  staticCssJson: string | null;
45
46
  /** Condition alias map JSON (modern-css-surface inc 03), or null. */
46
47
  conditionAliasesJson: string | null;
48
+ /** rootDir-relative external package dirs (JSON string array) for the
49
+ * external-token candidate walk, or null. */
50
+ externalDirsJson: string | null;
47
51
  }
48
52
  /** @internal */
49
53
  export declare function buildAnalyzeProjectArgs(inputs: AnalyzeProjectInputs): AnalyzeProjectArgs;
@@ -1 +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;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,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AAM,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,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,sEAAsE;IACtE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,qEAAqE;IACrE,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC;kDAC8C;IAC9C,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,gBAAgB;AAChB,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,oBAAoB,GAC3B,kBAAkB,CAoBpB"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Host-side handling of `asset()` placeholders (global-styles-system):
3
+ * `animus-asset:<specifier>` markers ride through the sandbox and the
4
+ * emitter byte-exact; each HOST plugin substitutes them with its bundler's
5
+ * resolved asset URL after extraction. This module owns the shared scanning
6
+ * and replacement mechanics — resolution and strict gating stay at the
7
+ * plugin call sites.
8
+ */
9
+ /** Mirrors the producer-side constant in `@animus-ui/system`'s `asset.ts`
10
+ * (extract must not take a runtime dependency on system); the pairing is
11
+ * pinned by a contract test in `tests/asset-placeholders.test.ts`. */
12
+ export declare const ASSET_PLACEHOLDER_PREFIX = "animus-asset:";
13
+ /** Unique asset specifiers referenced by placeholders, in appearance order. */
14
+ export declare function findAssetSpecifiers(css: string): string[];
15
+ /**
16
+ * Replace each specifier's placeholder with its substitution. Specifiers
17
+ * absent from the map keep their placeholder — the caller decides whether
18
+ * that is a strict failure or a warn-and-emit-literally. A substitution may
19
+ * itself be a bundler marker (e.g. Vite's `__VITE_ASSET__<ref>__`) that the
20
+ * host's own asset pipeline resolves to a hashed file name later.
21
+ *
22
+ * Each replacement is anchored to a following delimiter (quote, `)`,
23
+ * whitespace, or end of input) so a specifier that textually prefixes a
24
+ * longer one can never clobber the longer placeholder; longest-first
25
+ * ordering additionally lets the longer of two mapped specifiers claim its
26
+ * occurrences before the shorter runs.
27
+ */
28
+ export declare function substituteAssetPlaceholders(css: string, urlBySpecifier: ReadonlyMap<string, string>): string;
29
+ //# sourceMappingURL=asset-placeholders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-placeholders.d.ts","sourceRoot":"","sources":["../pipeline/asset-placeholders.ts"],"names":[],"mappings":"AAAA;;;;;;;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"}
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * MD5 content hash used for file-change detection (HMR diffing) by both
3
- * extraction plugins. The algorithm/encoding is a cross-plugin contract:
4
- * cache keys written by one build path must compare equal in the next.
3
+ * extraction plugins, and for content-addressing copied asset bytes. The
4
+ * algorithm/encoding is a cross-plugin contract: cache keys written by one
5
+ * build path must compare equal in the next. Accepts a Buffer directly so
6
+ * binary sources hash without an intermediate string copy.
5
7
  */
6
- export declare function contentHash(source: string): string;
8
+ export declare function contentHash(source: string | Buffer): string;
7
9
  //# sourceMappingURL=content-hash.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-hash.d.ts","sourceRoot":"","sources":["../pipeline/content-hash.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAElD"}
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,46 @@
1
+ import type { ManifestDiagnostic } from './manifest-diagnostics';
2
+ /**
3
+ * Index the loader-captured theme manifests by owning specifier. Module paths
4
+ * are canonical absolute paths (symlinks resolved), so each package dir is
5
+ * realpath'd before prefix-matching; a module outside every known package dir
6
+ * (typically the consumer's own theme) contributes nothing.
7
+ */
8
+ export declare function buildSourceTokenIndex(opts: {
9
+ sourceThemeManifestsJson: string | null | undefined;
10
+ /** Absolute package dir → owning specifier (collection `dirOwners`). */
11
+ dirOwners: Record<string, string>;
12
+ }): Map<string, Set<string>>;
13
+ /**
14
+ * The correlation join. Returns one teaching-error message per distinct
15
+ * (component, token, specifier) whose file belongs to a discovered source AND
16
+ * whose token that source's manifest defines. The messages follow the
17
+ * standard severity routing at the CALLER (throw under `strict`, warn
18
+ * otherwise) — this join never reports on its own.
19
+ */
20
+ export declare function correlateExternalTokenDiagnostics(opts: {
21
+ diagnostics: ManifestDiagnostic[] | undefined;
22
+ /** rootDir-relative file path → owning specifier (collection `fileOwners`). */
23
+ fileOwners: Record<string, string>;
24
+ /** specifier → token paths the source itself defines. */
25
+ sourceTokens: Map<string, Set<string>>;
26
+ }): string[];
27
+ /**
28
+ * The complete cross-source token-contract gate both plugins share
29
+ * (extraction-diagnostics): index the loader-captured source manifests,
30
+ * join them against the engine's candidates, and route the resulting
31
+ * teaching errors — throw under `strict`, warn otherwise. One entry point
32
+ * so the two hosts cannot drift on wiring or severity semantics.
33
+ */
34
+ export declare function enforceExternalTokenContracts(opts: {
35
+ diagnostics: ManifestDiagnostic[] | undefined;
36
+ /** rootDir-relative file path → owning specifier (collection `fileOwners`). */
37
+ fileOwners: Record<string, string>;
38
+ /** Absolute package dir → owning specifier (collection `dirOwners`). */
39
+ dirOwners: Record<string, string>;
40
+ sourceThemeManifestsJson: string | null | undefined;
41
+ strict: boolean | undefined;
42
+ /** Host log prefix, e.g. `[animus-extract]`. */
43
+ prefix: string;
44
+ warn: (message: string) => void;
45
+ }): void;
46
+ //# sourceMappingURL=correlate-external-tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"correlate-external-tokens.d.ts","sourceRoot":"","sources":["../pipeline/correlate-external-tokens.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAejE;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,wBAAwB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,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"}
@@ -24,8 +24,11 @@ export interface ExternalPackageOutcome {
24
24
  * - `resolved` — resolved to a package and accounted for at least one source
25
25
  * - `unresolvable` — specifier could not be resolved (skipped, per spec)
26
26
  * - `empty` — resolved to a package root but accounted for no sources
27
+ * - `stale-dist` — resolved with a walked src/ tree whose newest source file
28
+ * is newer than the resolved dist entry file (first-class-extension D13:
29
+ * a merge would consume registry content the sources no longer match)
27
30
  */
28
- outcome: 'resolved' | 'unresolvable' | 'empty';
31
+ outcome: 'resolved' | 'unresolvable' | 'empty' | 'stale-dist';
29
32
  /**
30
33
  * Source files this specifier accounted for in the analysis set: files it
31
34
  * contributed, plus files a previous specifier or the caller's own file set
@@ -47,6 +50,12 @@ export interface CollectedExternalPackages {
47
50
  sourceEntries: Map<string, string>;
48
51
  /** Absolute directories for bundler loader allowlisting (src/ or dist entry dir). */
49
52
  packageDirs: string[];
53
+ /** Absolute package dir → owning specifier (cross-source correlation). */
54
+ dirOwners: Record<string, string>;
55
+ /** rootDir-relative file path → owning specifier, for files THIS collection
56
+ * pushed (first-contributing specifier wins; files the caller's own set
57
+ * already supplied stay unattributed — they are consumer-owned). */
58
+ fileOwners: Record<string, string>;
50
59
  /** One record per declared specifier, in declaration order. */
51
60
  outcomes: ExternalPackageOutcome[];
52
61
  }
@@ -88,20 +97,42 @@ export declare function collectExternalPackageSources(opts: {
88
97
  onUnreadable: (relPath: string, error: unknown) => void;
89
98
  }): Promise<CollectedExternalPackages>;
90
99
  /**
91
- * Extract external DS package names from `includes` declarations in the system file.
100
+ * Extract external DS package names from inheritance declarations in the
101
+ * system file.
92
102
  *
93
- * Supports two forms:
94
- * - Primary (1.0+): `createSystem({ includes: [identifier, ...] })` constructor arg
95
- * - Legacy: `.includes([identifier, ...])` chain method (RC migration fallback)
103
+ * Supports four forms:
104
+ * - Primary: `createSystem(...).extend(identifier)` chain calls
105
+ * (repeatable, mixable with `.from()` links; each call
106
+ * contributes one source; a library-bundle identifier
107
+ * traces its base import)
108
+ * - Deprecated chain: `createSystem(...).from(identifier)` chain calls
109
+ * - Deprecated alias: `createSystem({ includes: [identifier, ...] })`
110
+ * - Legacy: `.includes([identifier, ...])` chain method (RC
111
+ * migration fallback)
96
112
  *
97
113
  * For each identifier found, traces back to its import declaration and returns
98
114
  * the import specifier: a bare specifier normalized to its package name, a
99
115
  * relative specifier resolved against the system file's directory into an
100
116
  * absolute path (so a sibling package referenced by path contributes discovery
101
- * too). Only packages explicitly declared via `includes` are treated as
102
- * external DS dependencies.
117
+ * too). Only packages explicitly declared through one of these forms are
118
+ * treated as external DS dependencies.
103
119
  *
104
- * Falls back to empty array if no `includes` declaration is found.
120
+ * Falls back to empty array if no declaration is found.
105
121
  */
122
+ /**
123
+ * The message for the strict/warn gate over unresolvable includes, or null
124
+ * when every declared specifier resolved (external-package-file-discovery:
125
+ * silence is never an outcome — non-strict consumers warn with this line,
126
+ * strict consumers throw it).
127
+ */
128
+ export declare function unresolvableIncludesMessage(outcomes: ExternalPackageOutcome[]): string | null;
129
+ /**
130
+ * The message for the strict/warn gate over stale dist entries
131
+ * (first-class-extension D13), or null when no declared specifier is stale.
132
+ * A stale dist silently skews merged registry content while discovery
133
+ * compiles the fresh sources, so it surfaces like an unresolvable specifier:
134
+ * non-strict consumers warn with this line, strict consumers throw it.
135
+ */
136
+ export declare function staleDistIncludesMessage(outcomes: ExternalPackageOutcome[]): string | null;
106
137
  export declare function extractSystemFilePackages(systemFilePath: string): string[];
107
138
  //# sourceMappingURL=discover-packages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"discover-packages.d.ts","sourceRoot":"","sources":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1E"}
@@ -40,7 +40,7 @@ export interface TransformFileResult {
40
40
  */
41
41
  export interface EngineApi {
42
42
  loadSystemModule: (...args: unknown[]) => any;
43
- 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) => string;
43
+ 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) => string;
44
44
  transformFile: (source: string, path: string, manifest: string) => TransformFileResult;
45
45
  clearAnalysisCache: () => void;
46
46
  }
@@ -1 +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,cAAc,EAAE,CACd,SAAS,EAAE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