@animus-ui/extract 0.1.3 → 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.
@@ -3,6 +3,9 @@ export type ManifestDiagnostic = {
3
3
  component: string;
4
4
  kind: string;
5
5
  message: string;
6
+ /** Structured token path (`scale.key`) — present only on
7
+ * `external-token-candidate` diagnostics (cross-source correlation). */
8
+ token?: string;
6
9
  };
7
10
  /**
8
11
  * Surface extraction-manifest diagnostics through a plugin's warn channel.
@@ -1 +1 @@
1
- {"version":3,"file":"manifest-diagnostics.d.ts","sourceRoot":"","sources":["../pipeline/manifest-diagnostics.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE;IAAE,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAAE,EAChD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC9B,IAAI,CAYN"}
1
+ {"version":3,"file":"manifest-diagnostics.d.ts","sourceRoot":"","sources":["../pipeline/manifest-diagnostics.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB;6EACyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE;IAAE,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAAE,EAChD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC9B,IAAI,CAYN"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Map a specifier through the harvested host alias table (the same
3
+ * `pathAliasesJson` wire the engine consumes — entries pre-sorted longest
4
+ * pattern first by `buildPathAliasesJson`). Returns an absolute path to an
5
+ * EXISTING file, or null when no alias claims the specifier.
6
+ */
7
+ export declare function resolveThroughPathAliases(specifier: string, rootDir: string, pathAliasesJson: string | null | undefined): string | null;
8
+ /**
9
+ * Resolve an asset specifier to an absolute file: host aliases, then direct
10
+ * Node resolution anchored at `rootDir`, then the package-root fallback.
11
+ * Returns null when nothing matches — strict gating stays at the caller.
12
+ */
13
+ export declare function resolveAssetFile(specifier: string, rootDir: string, pathAliasesJson?: string | null): string | null;
14
+ //# 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":"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"}
@@ -39,6 +39,8 @@ export interface AnalysisOptions {
39
39
  pathAliasesJson: string | null;
40
40
  /** Serialized staticCss forced-emission declarations, or null. */
41
41
  staticCssJson?: string | null;
42
+ /** rootDir-relative external package dirs (external-token candidates). */
43
+ externalDirs?: string[];
42
44
  devMode: boolean;
43
45
  }
44
46
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"run-analysis.d.ts","sourceRoot":"","sources":["../pipeline/run-analysis.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAA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AAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,eAAe,GACpB,oBAAoB,CAiCtB;AAQD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAEhC,SAAS,EAAE,MAAM,GAAG,EACpB,IAAI,EAAE,eAAe,GAAG;IAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,GAC1D,qBAAqB,CA0BvB;AAED;;;;GAIG;AAEH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,IAAI,CAQ3D"}
@@ -25,6 +25,11 @@ export interface SystemConfig {
25
25
  * as the geological-reset membership set. Optional so pre-load
26
26
  * `emptySystemConfig()` defaults need not restate it. */
27
27
  dependencies?: string[];
28
+ /** Per-module built-theme token manifests captured during evaluation
29
+ * (`{ modulePath: { exportName: [token paths] } }`) — the source-token
30
+ * witness for the cross-source correlation diagnostic. Null when no
31
+ * evaluated module exports a built theme. */
32
+ sourceThemeManifestsJson?: string | null;
28
33
  }
29
34
  /**
30
35
  * Load a SystemInstance via the engine's `loadSystemModule` and normalize
@@ -1 +1 @@
1
- {"version":3,"file":"system-config.d.ts","sourceRoot":"","sources":["../pipeline/system-config.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC;;;gFAG4E;IAC5E,oBAAoB,CA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M,CAAA;CAAE,GAC7D,YAAY,CAuCd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animus-ui/extract",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Animus static CSS extraction pipeline (Rust/NAPI)",
5
5
  "keywords": [
6
6
  "animus",
@@ -51,12 +51,12 @@
51
51
  "build:v2:debug": "cd crates/extract-v2 && bunx napi build --platform"
52
52
  },
53
53
  "dependencies": {
54
- "@animus-ui/properties": "0.1.3",
54
+ "@animus-ui/properties": "0.1.4",
55
55
  "browserslist": "^4.24.0",
56
56
  "lightningcss": "^1.29.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@animus-ui/system": "0.1.3",
59
+ "@animus-ui/system": "0.1.4",
60
60
  "@mdx-js/mdx": "3.1.1",
61
61
  "@napi-rs/cli": "^3.7.3"
62
62
  },