@animus-ui/extract 0.1.11 → 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.
Files changed (103) hide show
  1. package/README.md +47 -0
  2. package/crates/extract-v2/animus-extract-v2.darwin-arm64.node +0 -0
  3. package/crates/extract-v2/animus-extract-v2.linux-arm64-gnu.node +0 -0
  4. package/crates/extract-v2/animus-extract-v2.linux-x64-gnu.node +0 -0
  5. package/crates/extract-v2/index.d.ts +17 -98
  6. package/dist/index.cjs +11 -6
  7. package/dist/index.mjs +2 -2
  8. package/dist/pipeline/analyze-project-args.d.ts +0 -12
  9. package/dist/pipeline/analyze-project-args.d.ts.map +1 -1
  10. package/dist/pipeline/assemble-stylesheet.d.ts +0 -35
  11. package/dist/pipeline/assemble-stylesheet.d.ts.map +1 -1
  12. package/dist/pipeline/asset-placeholders.d.ts +0 -25
  13. package/dist/pipeline/asset-placeholders.d.ts.map +1 -1
  14. package/dist/pipeline/content-hash.d.ts +0 -7
  15. package/dist/pipeline/content-hash.d.ts.map +1 -1
  16. package/dist/pipeline/core-options.d.ts +27 -93
  17. package/dist/pipeline/core-options.d.ts.map +1 -1
  18. package/dist/pipeline/correlate-external-tokens.d.ts +10 -18
  19. package/dist/pipeline/correlate-external-tokens.d.ts.map +1 -1
  20. package/dist/pipeline/discover-files.d.ts +1 -9
  21. package/dist/pipeline/discover-files.d.ts.map +1 -1
  22. package/dist/pipeline/discover-packages.d.ts +18 -154
  23. package/dist/pipeline/discover-packages.d.ts.map +1 -1
  24. package/dist/pipeline/dynamic-prop-config.d.ts +4 -19
  25. package/dist/pipeline/dynamic-prop-config.d.ts.map +1 -1
  26. package/dist/pipeline/engine-adapter.d.ts +16 -52
  27. package/dist/pipeline/engine-adapter.d.ts.map +1 -1
  28. package/dist/pipeline/engine-retirement.d.ts +0 -19
  29. package/dist/pipeline/engine-retirement.d.ts.map +1 -1
  30. package/dist/pipeline/error-diagnostics.d.ts +0 -24
  31. package/dist/pipeline/error-diagnostics.d.ts.map +1 -1
  32. package/dist/pipeline/index.d.ts +9 -8
  33. package/dist/pipeline/index.d.ts.map +1 -1
  34. package/dist/pipeline/internal-wire.d.ts +2 -0
  35. package/dist/pipeline/internal-wire.d.ts.map +1 -0
  36. package/dist/pipeline/manifest-diagnostics.d.ts +32 -37
  37. package/dist/pipeline/manifest-diagnostics.d.ts.map +1 -1
  38. package/dist/pipeline/manifest-schema.d.ts +117 -0
  39. package/dist/pipeline/manifest-schema.d.ts.map +1 -0
  40. package/dist/pipeline/mdx-preprocessor.d.ts +9 -33
  41. package/dist/pipeline/mdx-preprocessor.d.ts.map +1 -1
  42. package/dist/pipeline/path-aliases.d.ts +0 -19
  43. package/dist/pipeline/path-aliases.d.ts.map +1 -1
  44. package/dist/pipeline/post-process-css.d.ts +0 -8
  45. package/dist/pipeline/post-process-css.d.ts.map +1 -1
  46. package/dist/pipeline/prefix.d.ts +3 -10
  47. package/dist/pipeline/prefix.d.ts.map +1 -1
  48. package/dist/pipeline/replacement-plans.d.ts +10 -34
  49. package/dist/pipeline/replacement-plans.d.ts.map +1 -1
  50. package/dist/pipeline/resolve-asset.d.ts +4 -7
  51. package/dist/pipeline/resolve-asset.d.ts.map +1 -1
  52. package/dist/pipeline/run-analysis.d.ts +15 -27
  53. package/dist/pipeline/run-analysis.d.ts.map +1 -1
  54. package/dist/pipeline/source-corpus.d.ts +25 -0
  55. package/dist/pipeline/source-corpus.d.ts.map +1 -0
  56. package/dist/pipeline/source-identity.d.ts +23 -53
  57. package/dist/pipeline/source-identity.d.ts.map +1 -1
  58. package/dist/pipeline/source-ingestion.d.ts +48 -53
  59. package/dist/pipeline/source-ingestion.d.ts.map +1 -1
  60. package/dist/pipeline/static-css.d.ts +4 -13
  61. package/dist/pipeline/static-css.d.ts.map +1 -1
  62. package/dist/pipeline/structural-self-check.d.ts +0 -20
  63. package/dist/pipeline/structural-self-check.d.ts.map +1 -1
  64. package/dist/pipeline/svelte-source-adapter.d.ts +5 -12
  65. package/dist/pipeline/svelte-source-adapter.d.ts.map +1 -1
  66. package/dist/pipeline/system-config.d.ts +15 -32
  67. package/dist/pipeline/system-config.d.ts.map +1 -1
  68. package/dist/pipeline/system-props-module.d.ts +0 -15
  69. package/dist/pipeline/system-props-module.d.ts.map +1 -1
  70. package/dist/pipeline/timing-waterfall.d.ts +0 -11
  71. package/dist/pipeline/timing-waterfall.d.ts.map +1 -1
  72. package/dist/pipeline/tsconfig-paths.d.ts +2 -3
  73. package/dist/pipeline/tsconfig-paths.d.ts.map +1 -1
  74. package/dist/pipeline/unit-fallback.d.ts +0 -5
  75. package/dist/pipeline/unit-fallback.d.ts.map +1 -1
  76. package/dist/pipeline/utils.d.ts +1 -1
  77. package/dist/pipeline/utils.d.ts.map +1 -1
  78. package/dist/pipeline/watch-keys.d.ts +0 -10
  79. package/dist/pipeline/watch-keys.d.ts.map +1 -1
  80. package/dist/{pipeline-lkbOoyAr.mjs → pipeline-DeEENy5C.mjs} +1940 -2263
  81. package/dist/{pipeline-ojNeABi0.cjs → pipeline-x1yBZ2UP.cjs} +1970 -2269
  82. package/dist/session/extraction-session.d.ts +110 -316
  83. package/dist/session/extraction-session.d.ts.map +1 -1
  84. package/dist/session/index.d.ts +6 -20
  85. package/dist/session/index.d.ts.map +1 -1
  86. package/dist/session/published-set.d.ts +45 -25
  87. package/dist/session/published-set.d.ts.map +1 -1
  88. package/dist/session/resolve-packages.d.ts +6 -7
  89. package/dist/session/resolve-packages.d.ts.map +1 -1
  90. package/dist/session/session-paths.d.ts +38 -72
  91. package/dist/session/session-paths.d.ts.map +1 -1
  92. package/dist/session/singleton.d.ts +32 -71
  93. package/dist/session/singleton.d.ts.map +1 -1
  94. package/dist/session/timing.d.ts +0 -5
  95. package/dist/session/timing.d.ts.map +1 -1
  96. package/dist/session/turbopack-orchestrator.d.ts +17 -33
  97. package/dist/session/turbopack-orchestrator.d.ts.map +1 -1
  98. package/dist/session.cjs +530 -677
  99. package/dist/session.mjs +517 -672
  100. package/index-v2.js +0 -9
  101. package/package.json +9 -8
  102. package/dist/pipeline/external-keyframes.d.ts +0 -23
  103. package/dist/pipeline/external-keyframes.d.ts.map +0 -1
@@ -1,47 +1,23 @@
1
1
  /**
2
- * The v2 `ExtractEngine` adapter, hoisted to one authoritative copy.
3
- *
4
- * Both extraction plugins (next-plugin, vite-plugin) drive the stateful v2
5
- * `ExtractEngine` through the engine-agnostic surface the v1 native module
6
- * already exposes (loadSystemModule / analyzeProject / transformFile /
7
- * clearAnalysisCache). This factory builds that surface once; the plugins
8
- * differ only in (a) how the engine option is resolved, (b) how the native
9
- * module is loaded, and (c) where the per-run state lives — so those are the
10
- * injected dependencies.
11
- *
12
- * State storage is the pivotal difference: next-plugin must survive the
13
- * ESM/CJS double-load (the plugin loads as ESM via next.config, the webpack
14
- * loader via CJS require), so it backs the store with globalThis; vite-plugin
15
- * keeps per-plugin-instance state in closure variables. The one-shot drift
16
- * flag lives in the store too, so next's warning stays one-shot across the
17
- * double-load.
18
- *
19
- * Loading semantics (lazy CJS require, fail-loud, no silent fallback to the
20
- * other engine) live at the call site via `loadNativeEngine`; this module
21
- * never imports the native binding, and never imports from either plugin,
22
- * webpack, or vite (dependency direction: plugins -> extract).
2
+ * One engine API for both plugins. Imports neither the native binding nor any
3
+ * plugin or bundler — every such dependency arrives injected.
23
4
  */
24
- /** The stateful v2 engine handle produced by `new native.ExtractEngine(...)`. */
5
+ /** The stateful engine handle produced by `new native.ExtractEngine(...)`. */
25
6
  export interface V2ExtractEngine {
26
7
  analyze(filesJson: string): string;
27
8
  transformFile(path: string): string;
28
9
  clearCache(): void;
29
10
  }
30
- /** Per-file transform result, as both plugins consume it. */
31
11
  export interface TransformFileResult {
32
12
  code: string;
33
13
  hasComponents: boolean;
34
14
  }
35
15
  /**
36
- * The engine-agnostic API surface. The v1 leg is the raw native module (which
37
- * already exposes these methods); the v2 leg is the adapter this factory
38
- * builds. The positional `analyzeProject` tuple mirrors the NAPI contract in
39
- * `analyze-project-args.ts`.
16
+ * `analyzeProject` takes its arguments positionally to mirror the NAPI
17
+ * contract, so argument order is part of the contract.
40
18
  */
41
19
  export interface EngineApi {
42
20
  loadSystemModule: (...args: unknown[]) => any;
43
- /** Keyframes-only scan of an external package entry. */
44
- scanKeyframesExports: (entryPath: string, rootDir: string) => string | null;
45
21
  /** Parse-only native fact extraction used to prepare adapted sources. */
46
22
  extractFacts?: (filesJson: string) => string;
47
23
  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;
@@ -49,9 +25,8 @@ export interface EngineApi {
49
25
  clearAnalysisCache: () => void;
50
26
  }
51
27
  /**
52
- * Storage for the per-run engine instance, the analyze-time sources (drift
53
- * detection), and the one-shot drift flag. next backs this with globalThis;
54
- * vite with closure variables.
28
+ * Per-run storage for the engine instance, the analyze-time sources drift
29
+ * detection compares against, and the one-shot drift flag.
55
30
  */
56
31
  export interface V2EngineStateStore {
57
32
  getEngine(): V2ExtractEngine | null;
@@ -64,35 +39,24 @@ export interface V2EngineStateStore {
64
39
  /** The native engine module. Its own generated `.d.ts` is authoritative. */
65
40
  type NativeEngineModule = any;
66
41
  export interface V2EngineAdapterDeps {
67
- /** Log label for the drift warning and the fail-loud transform error
68
- * (e.g. 'animus-next', 'animus-extract'). */
42
+ /** Log label for the drift warning and the fail-loud transform error. */
69
43
  label: string;
70
- /** Whether v2 is selected. When false, `engineApi()` returns the raw native
71
- * module unchanged (the v1 leg). next reads the shared engine choice from
72
- * globalThis; vite the per-plugin resolved option. */
44
+ /** When false, `engineApi()` returns the raw native module unchanged. */
73
45
  isV2(): boolean;
74
- /** Require the native engine module. Loading semantics — lazy CJS require,
75
- * fail-loud, no silent fallback — live here. */
46
+ /** Requires the native module; loading semantics live at the call site. */
76
47
  loadNativeEngine(): NativeEngineModule;
77
48
  /** Per-run state storage (globalThis for next, closure for vite). */
78
49
  store: V2EngineStateStore;
79
- /** When true, `transformFile` passes paths absent from the last `analyze()`
80
- * set through unchanged (v1 parity: the webpack loader hands the adapter
81
- * files outside the analysis universe — generated `.animus/*` modules,
82
- * workspace-resolved library dist; vite pre-filters them, so it leaves this
83
- * off). */
50
+ /** Passes paths absent from the last `analyze()` set through unchanged —
51
+ * the webpack loader hands over files outside the analysis universe. */
84
52
  passThroughUnknownPaths?: boolean;
85
- /** Optional pre-analyze re-hydration of empty sources. vite's HMR sends
86
- * empty sources for unchanged files and v2 has no Rust-side cache, so vite
87
- * refills them from its own file cache before analyze; next always sends
88
- * full sources. Identity when omitted. */
53
+ /** Refills empty sources before analyze: vite's HMR sends empty sources
54
+ * for unchanged files and the engine keeps no cache. Identity if omitted. */
89
55
  rehydrateFilesJson?(filesJsonRaw: string): string;
90
56
  }
91
57
  /**
92
- * Build the engine-agnostic `engineApi()` both plugins call. Returns a function
93
- * (invoked per call site) so `isV2()` and `loadNativeEngine()` re-evaluate each
94
- * time — next reads its engine choice and native module dynamically from
95
- * globalThis.
58
+ * Returns a function, invoked per call site, so `isV2()` and
59
+ * `loadNativeEngine()` re-evaluate each time instead of being captured.
96
60
  */
97
61
  export declare function createV2EngineApi(deps: V2EngineAdapterDeps): () => EngineApi;
98
62
  export {};
@@ -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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IAC7C,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1D,cAAc,IAAI,OAAO,CAAC;IAC1B,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACtC;AAED,4EAA4E;AAE5E,KAAK,kBAAkB,GAAG,GAAG,CAAC;AA2B9B,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,IAAI,IAAI,OAAO,CAAC;IAChB,2EAA2E;IAC3E,gBAAgB,IAAI,kBAAkB,CAAC;IACvC,qEAAqE;IACrE,KAAK,EAAE,kBAAkB,CAAC;IAC1B;6EACyE;IACzE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;kFAC8E;IAC9E,kBAAkB,CAAC,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CACnD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,SAAS,CAqH5E"}
@@ -1,22 +1,3 @@
1
- /**
2
- * Loud rejection of the retired v1 extraction engine (openspec:
3
- * retire-extract-v1).
4
- *
5
- * v2 is the only engine. Selecting v1 — via a plugin `engine: 'v1'` option or
6
- * the `ANIMUS_ENGINE=v1` fixture env override — is a build-stopping error, never
7
- * a silent upgrade to v2 (design D1: a silent flip would let a pinned consumer's
8
- * build change engines without notice). Both extraction plugins call this before
9
- * any engine selection so the rejection is uniform and the message is defined
10
- * once.
11
- */
12
- /** The one canonical retirement message, shared verbatim by both plugins and
13
- * the env path (tasks.md cross-cutting: define once, reuse). */
14
1
  export declare const RETIRED_ENGINE_MESSAGE: string;
15
- /**
16
- * Throw the canonical retirement error when v1 is selected through either
17
- * surface. Accepts the raw engine option as a string because the option type no
18
- * longer admits `'v1'` — callers cast it so a stale `'v1'` config still fails
19
- * loud at runtime instead of being silently coerced.
20
- */
21
2
  export declare function assertNoRetiredEngineSelection(engineOption: string | undefined): void;
22
3
  //# sourceMappingURL=engine-retirement.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"engine-retirement.d.ts","sourceRoot":"","sources":["../../pipeline/engine-retirement.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,QAEyC,CAAC;AAE7E,wBAAgB,8BAA8B,CAC5C,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,IAAI,CAIN"}
@@ -1,32 +1,8 @@
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
1
  export type CssDiagnosticLike = {
18
2
  file: string;
19
3
  component: string;
20
4
  kind: string;
21
5
  message: string;
22
6
  };
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
7
  export declare function assertNoErrorDiagnostics(diagnostics: CssDiagnosticLike[] | undefined): void;
32
8
  //# sourceMappingURL=error-diagnostics.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"error-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/error-diagnostics.ts"],"names":[],"mappings":"AAAA,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,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAAE,GAAG,SAAS,GAC3C,IAAI,CAgBN"}
@@ -6,20 +6,20 @@ export type { EngineApi, TransformFileResult, V2EngineAdapterDeps, V2EngineState
6
6
  export { createV2EngineApi } from './engine-adapter';
7
7
  export { assertNoRetiredEngineSelection, RETIRED_ENGINE_MESSAGE, } from './engine-retirement';
8
8
  export { contentHash } from './content-hash';
9
- export { KEYFRAMES_EXPORT_COLLISION, KEYFRAMES_EXTERNAL_ENTRY_FAILED, mergeExternalKeyframes, } from './external-keyframes';
10
- export type { ExternalKeyframesMerge } from './external-keyframes';
11
9
  export type { AnimusCoreOptions, AnimusMode, DriverNamespace, ExcludeMatcher, OptionProvenance, ResolvedMode, } from './core-options';
12
10
  export { AnimusConfigError, assertKnownOptionKeys, CORE_OPTION_KEYS, createExcludeMatcher, DEFAULT_EXCLUDE, DRIVER_NAMESPACES, REPLACEABLE_DEFAULT_EXCLUDE, STRUCTURAL_EXCLUDE, resolveMode, } from './core-options';
13
- export { discoverFiles } from './discover-files';
11
+ export { compareDiscoveryOrder, discoverFiles } from './discover-files';
14
12
  export type { CollectedExternalPackages, ExternalPackageOutcome, } from './discover-packages';
15
13
  export { collectExternalPackageSources, excludeCollectedPackages, extractSystemFilePackages, findPackageRoot, firstOwners, isExcludedPackageRelativePath, resolveAbsolutePathSpecifier, staleDistIncludesMessage, unresolvableIncludesMessage, walkPackageSources, } from './discover-packages';
16
14
  export type { ResolvedSourceId, SourceIdentity } from './source-identity';
17
15
  export { createSourceIdentity, isPathWithinRoot, sharesVolumeRoot, } from './source-identity';
18
16
  export type { AdaptSvelteSourceResult, AdaptSvelteSourceOptions, SourceLocation, SourcePosition, SourceSpan, SvelteAdapterDiagnostic, SvelteOriginMapping, SvelteOriginMappingKind, SvelteResolverAccess, SvelteResolverAttribution, SvelteResolverAttributionRequest, SvelteResolverImportKind, SvelteScriptScope, SvelteSourceOrigin, SvelteVirtualEntry, } from './svelte-source-adapter';
19
17
  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';
18
+ export type { AnalysisSourceEntry, ExtractChainFact, ExtractExportFact, ExtractFactsResult, ExtractFileFacts, ExtractImportFact, NativeSourceDiagnostic, OriginalSourceEntry, RawSourceEntry, SerializedSourceEntry, SourceEntryOwnership, SourceIngestionDiagnostic, SourceIngestionOptions, SourceIngestionResult, SourceParserDiagnostic, } from './source-ingestion';
19
+ export { ingestSourceEntries, isAdvisorySourceDiagnostic, parseFilesJson, projectExternalFileOwners, } from './source-ingestion';
22
20
  export type { SourceIngestor, SourceIngestorHost } from './source-ingestion';
21
+ export { createSourceCorpus } from './source-corpus';
22
+ export type { PublishedSourceCorpus, SourceCorpus, SourceCorpusCache, } from './source-corpus';
23
23
  export { findAssetSpecifiers, substituteAssetPlaceholders, } from './asset-placeholders';
24
24
  export { resolveAssetFile, resolveThroughPathAliases } from './resolve-asset';
25
25
  export { enforceExternalTokenContracts } from './correlate-external-tokens';
@@ -41,14 +41,15 @@ export type { DynamicPropConfigEntry, DynamicPropMeta, } from './dynamic-prop-co
41
41
  export { buildDynamicPropConfig } from './dynamic-prop-config';
42
42
  export type { CssDiagnosticLike } from './error-diagnostics';
43
43
  export { assertNoErrorDiagnostics } from './error-diagnostics';
44
+ export type { ManifestComponentDescriptor, ManifestComponentSheets, ManifestSheets, ProjectManifest, } from './manifest-schema';
44
45
  export type { ManifestDiagnostic } from './manifest-diagnostics';
45
- export { isUnresolvedParentDrop, surfaceManifestDiagnostics, unresolvedParentName, } from './manifest-diagnostics';
46
+ export { isUnresolvedParentDrop, surfaceManifestDiagnostics, unreadableSourceDiagnostic, unresolvedParentName, VOCABULARY_COLLISION, VOCABULARY_LEGACY_VERB, vocabularyWitnessDiagnostics, } from './manifest-diagnostics';
46
47
  export type { DefaultExtension, PreprocessMdxResult } from './mdx-preprocessor';
47
- export { DEFAULT_EXTENSIONS, ENGINE_TRANSFORM_EXTENSIONS, preprocessMdx, } from './mdx-preprocessor';
48
+ export { DEFAULT_EXTENSIONS, ENGINE_TRANSFORM_EXTENSIONS, isEngineTransformExtension, preprocessMdx, } from './mdx-preprocessor';
48
49
  export { applyPrefix } from './prefix';
49
50
  export type { FilePlanSnapshot } from './replacement-plans';
50
51
  export { diffFilePlans, hashReplacementPlans, snapshotFilePlans, } from './replacement-plans';
51
52
  export { applyUnitFallback } from './unit-fallback';
52
- export { camelToKebab } from './utils';
53
+ export { camelToKebab, stableStringify } from './utils';
53
54
  export { toWatchKeys } from './watch-keys';
54
55
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../pipeline/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,EAC/B,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,YAAY,EACV,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf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 -0,0 +1 @@
1
+ {"version":3,"file":"internal-wire.d.ts","sourceRoot":"","sources":["../../pipeline/internal-wire.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,OAAO,EACvC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAeT"}
@@ -3,60 +3,55 @@ 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). */
6
+ /** Structured token path (`scale.key`); present only on
7
+ * `external-token-candidate` diagnostics. */
8
8
  token?: string;
9
- /** Stable diagnostic code (`animus.<namespace>.<slug>`). */
10
9
  code?: string;
11
- /** `"error"` fails strict builds at this policy point; `"warn"`/absent
12
- * never does. */
10
+ /** `"error"` fails strict builds; `"warn"`/absent never does. Read from
11
+ * `DIAGNOSTIC_SEVERITY`, never chosen per emission site. */
13
12
  severity?: string;
14
13
  };
15
- /** Stable code for selector forms with no substitutable subject.
16
- * Mirrors the Rust constant in `extract-v2/src/eval.rs`. */
14
+ /** Stable code for selector forms with no substitutable subject; the
15
+ * extraction engine mints the same string. */
17
16
  export declare const SELECTOR_UNSUPPORTED_SUBJECT = "animus.selector.unsupported-subject";
18
- /** True when the diagnostic reports a chain dropped for an unresolved
19
- * parent component. */
20
- export declare function isUnresolvedParentDrop(diagnostic: {
21
- message?: unknown;
22
- }): boolean;
23
- /** The parent binding named by an unresolved-parent drop, or null when the
24
- * diagnostic is not one. */
25
- export declare function unresolvedParentName(diagnostic: {
26
- message?: unknown;
27
- }): string | null;
17
+ type DiagnosticMessage = Pick<ManifestDiagnostic, 'message'>;
18
+ export declare function isUnresolvedParentDrop(diagnostic: DiagnosticMessage): boolean;
19
+ export declare function unresolvedParentName(diagnostic: DiagnosticMessage): string | null;
28
20
  export interface DiagnosticPolicy {
29
21
  /** When true, error-severity diagnostics throw instead of warning. */
30
22
  strict?: boolean;
31
- /** System-level diagnostics (e.g. selector-alias validation) surfaced
32
- * ahead of the manifest's own, through the same policy. */
33
23
  prepend?: ManifestDiagnostic[];
34
24
  }
35
- /** True when the selector string carries at least one substitutable `&`
36
- * subject outside quoted text (mirrors the Rust `selector_subject` walk —
37
- * ancestor, leading, and repeated subjects all count; a `&` inside a
38
- * quoted attribute value does not). */
25
+ /** True when the selector carries at least one substitutable `&` subject
26
+ * outside quoted text. */
39
27
  export declare function hasSelectorSubject(value: string): boolean;
40
28
  /**
41
- * Synthesize coded diagnostics for registered selector-alias values that
42
- * look selector-shaped (`&` present) but carry no substitutable subject —
43
- * every `&` sits inside quoted text, so there is nothing to anchor the
44
- * class to. Ancestor-prefixed and repeated subjects are supported and pass
45
- * validation. The system-config boundary is where these must fail loud
46
- * (alias values never reach the evaluator's key guard).
29
+ * Coded diagnostics for selector-shaped alias values with no substitutable
30
+ * subject; alias values never reach the evaluator's own key guard.
47
31
  */
48
32
  export declare function collectSelectorAliasDiagnostics(selectorAliasesJson: string | null | undefined): ManifestDiagnostic[];
33
+ export declare const UNREADABLE_SOURCE_FILE = "animus.ingestion.unreadable-source-file";
49
34
  /**
50
- * Surface extraction-manifest diagnostics through a plugin's warn channel.
51
- *
52
- * Single authoritative copy for both extraction plugins — and the single
53
- * strict-escalation policy point: error-severity diagnostics throw one
54
- * Error naming every offender when `policy.strict`, and print as warnings
55
- * otherwise. Surfaces `bail` (component not extracted), `skip` (component
56
- * skipped), and `warn` kinds; unknown kinds stay silent. Printed lines
57
- * include the diagnostic code when the message doesn't already carry it.
35
+ * A configured source file that could not be read is a LOST INPUT: the
36
+ * emitted artifacts silently lack whatever that file declared.
37
+ */
38
+ export declare function unreadableSourceDiagnostic<Thrown>(relPath: string, error: Thrown): ManifestDiagnostic;
39
+ /** The collision entry code minted by the system package's merge. */
40
+ export declare const VOCABULARY_COLLISION = "animus.vocabulary.collision";
41
+ /** Minted when a sealed kit with registered vocabulary is consumed through
42
+ * the deprecated `from()`/`includes:` verbs. */
43
+ export declare const VOCABULARY_LEGACY_VERB = "animus.vocabulary.legacy-verb";
44
+ /**
45
+ * The one mapper of a sealed system's witness entries for every host: the
46
+ * loader's evaluation host shims `console`, so the record is the channel.
47
+ */
48
+ export declare function vocabularyWitnessDiagnostics(vocabularyWitnessesJson: string | null | undefined): ManifestDiagnostic[];
49
+ /**
50
+ * The single strict-escalation policy point for both extraction plugins:
51
+ * error-severity diagnostics throw together under `strict`, else warn.
58
52
  */
59
53
  export declare function surfaceManifestDiagnostics(manifest: {
60
54
  diagnostics?: ManifestDiagnostic[];
61
55
  }, warn: (message: string) => void, policy?: DiagnosticPolicy): void;
56
+ export {};
62
57
  //# sourceMappingURL=manifest-diagnostics.d.ts.map
@@ -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;IAChB;6EACyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;sBACkB;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;6DAC6D;AAC7D,eAAO,MAAM,4BAA4B,wCACF,CAAC;AAQxC;wBACwB;AACxB,wBAAgB,sBAAsB,CAAC,UAAU,EAAE;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,OAAO,CAKV;AAED;6BAC6B;AAC7B,wBAAgB,oBAAoB,CAAC,UAAU,EAAE;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,MAAM,GAAG,IAAI,CAGhB;AAED,MAAM,WAAW,gBAAgB;IAC/B,sEAAsE;IACtE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB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AAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC;AAED;2BAC2B;AAC3B,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAqBzD;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAC7C,mBAAmB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC7C,kBAAkB,EAAE,CAsBtB;AAED,eAAO,MAAM,sBAAsB,4CAA4C,CAAC;AAEhF;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAC/C,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,kBAAkB,CASpB;AAED,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAElE;iDACiD;AACjD,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAuBtE;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,uBAAuB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACjD,kBAAkB,EAAE,CAgDtB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE;IAAE,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAAE,EAChD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EAC/B,MAAM,GAAE,gBAAqB,GAC5B,IAAI,CA+BN"}
@@ -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,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC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AAC,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"}
@@ -1,49 +1,25 @@
1
1
  /**
2
- * MDX source preprocessor for the extraction pipeline.
3
- *
4
- * MDX files are first-class consumers of ds-built components but are not
5
- * directly parseable by OXC (which the scanner uses for .tsx/.jsx). This
6
- * module compiles MDX sources to scanner-consumable JSX using @mdx-js/mdx.
7
- *
8
- * @mdx-js/mdx is declared as `peerDependenciesMeta.optional` on the
9
- * plugin packages that import this module. The dynamic import with
10
- * .catch() ensures non-MDX consumers (who configure `extensions` to
11
- * exclude .mdx) never trigger the resolution — zero install-footprint
12
- * cost for them.
13
- *
14
- * The `DEFAULT_EXTENSIONS` constant is the shared source of truth for
15
- * both `@animus-ui/vite-plugin` and `@animus-ui/next-plugin`. Each plugin
16
- * imports it directly; independent redeclaration of default extensions
17
- * is considered a regression.
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.
18
4
  */
19
5
  export declare const DEFAULT_EXTENSIONS: readonly ['.ts', '.tsx', '.js', '.jsx', '.mdx'];
20
6
  export type DefaultExtension = (typeof DEFAULT_EXTENSIONS)[number];
21
7
  /**
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.
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.
29
10
  */
30
11
  export declare const ENGINE_TRANSFORM_EXTENSIONS: readonly ['ts', 'tsx', 'js', 'jsx', 'mjs'];
12
+ export declare function isEngineTransformExtension(path: string): boolean;
31
13
  export interface PreprocessMdxResult {
32
14
  kind: 'ok' | 'missing-dep' | 'error';
33
- /** Preprocessed JSX source. Present when kind === 'ok'. */
15
+ /** Present when `kind` is `'ok'`. */
34
16
  source?: string;
35
- /** Error message. Present when kind === 'error'. */
17
+ /** Present when `kind` is `'error'`. */
36
18
  error?: string;
37
19
  }
38
20
  /**
39
- * Preprocess an MDX source string into scanner-consumable JSX.
40
- *
41
- * - Returns `{ kind: 'ok', source }` with JSX-compiled output on success.
42
- * - Returns `{ kind: 'missing-dep' }` if @mdx-js/mdx is not resolvable
43
- * (consumer needs to install it).
44
- * - Returns `{ kind: 'error', error }` on compile failure (e.g. malformed
45
- * MDX syntax). Plugins SHALL warn + skip affected files; the build
46
- * continues with remaining files.
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`.
47
23
  */
48
24
  export declare function preprocessMdx(source: string, filename: string): Promise<PreprocessMdxResult>;
49
25
  //# sourceMappingURL=mdx-preprocessor.d.ts.map
@@ -1 +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"}
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"}
@@ -1,12 +1,3 @@
1
- /**
2
- * Path-alias normalization for the Rust-facing `pathAliasesJson` contract.
3
- *
4
- * This is the single authoritative encoder of the wire format
5
- * `{ aliases: [{ pattern, replacement, type }] }` consumed by
6
- * `analyzeProject` — both the Vite and Next.js plugins must build their
7
- * alias JSON through here (same convention as buildAnalyzeProjectArgs).
8
- * Each plugin only flattens its bundler's alias config into pairs.
9
- */
10
1
  export interface PathAliasEntry {
11
2
  pattern: string;
12
3
  replacement: string;
@@ -15,18 +6,8 @@ export interface PathAliasEntry {
15
6
  export interface PathAliasPair {
16
7
  pattern: string;
17
8
  target: string;
18
- /**
19
- * Force a classification instead of sniffing the target for a file
20
- * extension. Vite's array-form aliases are always prefix matches.
21
- */
22
9
  kind?: 'prefix' | 'exact';
23
10
  }
24
- /**
25
- * Normalize alias pairs: strip a `rootDir` prefix from targets, classify
26
- * exact (file) vs prefix (directory) matches, force trailing slashes on
27
- * prefix entries, and sort longest pattern first for correct matching
28
- * priority. Returns null when no entries survive.
29
- */
30
11
  export declare function buildPathAliasesJson(pairs: PathAliasPair[], rootDir: string): {
31
12
  json: string;
32
13
  count: number;
@@ -1 +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"}
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;