@animus-ui/extract 0.1.24 → 0.1.26
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/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 +107 -6
- package/dist/index.cjs +48 -5
- package/dist/index.mjs +2 -2
- package/dist/pipeline/alias-agreement.d.ts +107 -0
- package/dist/pipeline/alias-agreement.d.ts.map +1 -0
- package/dist/pipeline/analyze-project-args.d.ts +11 -2
- package/dist/pipeline/analyze-project-args.d.ts.map +1 -1
- package/dist/pipeline/asset-copies.d.ts +20 -0
- package/dist/pipeline/asset-copies.d.ts.map +1 -0
- package/dist/pipeline/built-in-asset-types.d.ts +9 -0
- package/dist/pipeline/built-in-asset-types.d.ts.map +1 -0
- package/dist/pipeline/core-options.d.ts +31 -7
- package/dist/pipeline/core-options.d.ts.map +1 -1
- package/dist/pipeline/discover-packages.d.ts +98 -12
- package/dist/pipeline/discover-packages.d.ts.map +1 -1
- package/dist/pipeline/engine-adapter.d.ts +41 -3
- package/dist/pipeline/engine-adapter.d.ts.map +1 -1
- package/dist/pipeline/engine-retirement.d.ts +7 -1
- package/dist/pipeline/engine-retirement.d.ts.map +1 -1
- package/dist/pipeline/extension-policy.d.ts +95 -0
- package/dist/pipeline/extension-policy.d.ts.map +1 -0
- package/dist/pipeline/host-assets.d.ts +32 -0
- package/dist/pipeline/host-assets.d.ts.map +1 -0
- package/dist/pipeline/host-expansions.d.ts +92 -0
- package/dist/pipeline/host-expansions.d.ts.map +1 -0
- package/dist/pipeline/host-extensions.d.ts +64 -0
- package/dist/pipeline/host-extensions.d.ts.map +1 -0
- package/dist/pipeline/host-package-resolver.d.ts +40 -0
- package/dist/pipeline/host-package-resolver.d.ts.map +1 -0
- package/dist/pipeline/index.d.ts +32 -8
- package/dist/pipeline/index.d.ts.map +1 -1
- package/dist/pipeline/kit-publication.d.ts.map +1 -1
- package/dist/pipeline/manifest-diagnostics.d.ts +27 -6
- package/dist/pipeline/manifest-diagnostics.d.ts.map +1 -1
- package/dist/pipeline/manifest-schema.d.ts +16 -0
- package/dist/pipeline/manifest-schema.d.ts.map +1 -1
- package/dist/pipeline/output-targets.d.ts +52 -0
- package/dist/pipeline/output-targets.d.ts.map +1 -0
- package/dist/pipeline/probe-evidence.d.ts +58 -0
- package/dist/pipeline/probe-evidence.d.ts.map +1 -0
- package/dist/pipeline/run-analysis.d.ts +26 -0
- package/dist/pipeline/run-analysis.d.ts.map +1 -1
- package/dist/pipeline/runtime-import.d.ts +10 -0
- package/dist/pipeline/runtime-import.d.ts.map +1 -0
- package/dist/pipeline/served-files.d.ts +16 -0
- package/dist/pipeline/served-files.d.ts.map +1 -0
- package/dist/pipeline/source-corpus.d.ts +4 -0
- package/dist/pipeline/source-corpus.d.ts.map +1 -1
- package/dist/pipeline/source-ingestion.d.ts +37 -5
- package/dist/pipeline/source-ingestion.d.ts.map +1 -1
- package/dist/pipeline/system-config.d.ts +18 -0
- package/dist/pipeline/system-config.d.ts.map +1 -1
- package/dist/pipeline/system-instances.d.ts +27 -0
- package/dist/pipeline/system-instances.d.ts.map +1 -0
- package/dist/pipeline/tsconfig-paths.d.ts +4 -0
- package/dist/pipeline/tsconfig-paths.d.ts.map +1 -1
- package/dist/pipeline/vite-expansions.d.ts +40 -0
- package/dist/pipeline/vite-expansions.d.ts.map +1 -0
- package/dist/pipeline/webpack-expansions.d.ts +55 -0
- package/dist/pipeline/webpack-expansions.d.ts.map +1 -0
- package/dist/pipeline/workspace-packages.d.ts +13 -0
- package/dist/pipeline/workspace-packages.d.ts.map +1 -0
- package/dist/{pipeline-Bl20tbu_.mjs → pipeline-BzMQ_Z0M.mjs} +2293 -751
- package/dist/{pipeline-CAH9mxnK.cjs → pipeline-DyUf-eKZ.cjs} +2564 -746
- package/dist/session/coalescing-window.d.ts +34 -0
- package/dist/session/coalescing-window.d.ts.map +1 -0
- package/dist/session/extraction-session.d.ts +297 -35
- package/dist/session/extraction-session.d.ts.map +1 -1
- package/dist/session/index.d.ts +7 -3
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/published-set.d.ts +6 -1
- package/dist/session/published-set.d.ts.map +1 -1
- package/dist/session/resolve-packages.d.ts +9 -5
- package/dist/session/resolve-packages.d.ts.map +1 -1
- package/dist/session/singleton.d.ts +218 -53
- package/dist/session/singleton.d.ts.map +1 -1
- package/dist/session/turbopack-orchestrator.d.ts.map +1 -1
- package/dist/session.cjs +1462 -510
- package/dist/session.mjs +1430 -489
- package/package.json +4 -4
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Package resolution for discovery: one resolver, whose answers are the
|
|
3
|
+
* host's where it resolves imports itself (spec §2.2 A4), and the system
|
|
4
|
+
* loader's otherwise, and for a declared workspace the host cannot resolve.
|
|
5
|
+
*/
|
|
6
|
+
import type { EngineApi } from './engine-adapter';
|
|
7
|
+
import type { HostExtensionPolicy } from './host-extensions';
|
|
8
|
+
import type { WorkspacePackages } from './workspace-packages';
|
|
9
|
+
/** The host's own resolution of a specifier, from `importer` (absolute)
|
|
10
|
+
* where given, else from the root; null where it finds nothing. */
|
|
11
|
+
export type HostResolve = (specifier: string, importer?: string) => Promise<string | null>;
|
|
12
|
+
export interface DiscoveryResolver {
|
|
13
|
+
/** Whether a host answers first; without one the loader answers all. */
|
|
14
|
+
readonly hostFirst: boolean;
|
|
15
|
+
/** The entry file a package specifier names, absolute; null for none. */
|
|
16
|
+
resolveSpecifier(specifier: string): Promise<string | null>;
|
|
17
|
+
/** Why no file answers `specifier`, where the loader alone resolved it
|
|
18
|
+
* and said. */
|
|
19
|
+
unresolvedReason(specifier: string): string | undefined;
|
|
20
|
+
/** Whether only the loader resolved `specifier` while a host answers
|
|
21
|
+
* first. The host resolves such a package's imports only through a
|
|
22
|
+
* source-entry redirect, so the collector admits it only where one
|
|
23
|
+
* exists. */
|
|
24
|
+
requireSourceEntry(specifier: string): boolean;
|
|
25
|
+
/** The system loader's own answer from `fromDir`, as system evaluation
|
|
26
|
+
* resolves (spec §2.2 A3); null for none. */
|
|
27
|
+
loaderResolve(specifier: string, fromDir: string): string | null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A declared workspace that nothing links into `node_modules` is no package
|
|
31
|
+
* to the host, though the system loader resolves it: where the host finds
|
|
32
|
+
* nothing, discovery asks the loader.
|
|
33
|
+
*/
|
|
34
|
+
export declare function discoveryResolver(hostResolve: HostResolve | null, engine: Pick<EngineApi, 'resolveSpecifier'>, context: {
|
|
35
|
+
rootDir: string;
|
|
36
|
+
conditions: readonly string[];
|
|
37
|
+
workspaces: WorkspacePackages;
|
|
38
|
+
extensions: HostExtensionPolicy;
|
|
39
|
+
}): DiscoveryResolver;
|
|
40
|
+
//# sourceMappingURL=host-package-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-package-resolver.d.ts","sourceRoot":"","sources":["../../pipeline/host-package-resolver.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;oEACoE;AACpE,MAAM,MAAM,WAAW,GAAG,CACxB,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,MAAM,KACd,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AAE5B,MAAM,WAAW,iBAAiB;IAChC,wEAAwE;IACxE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,yEAAyE;IACzE,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5D;oBACgB;IAChB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACxD;;;kBAGc;IACd,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/C;kDAC8C;IAC9C,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAClE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,WAAW,GAAG,IAAI,EAC/B,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,kBAAkB,CAAC,EAC3C,OAAO,EAAE;IACP,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,UAAU,EAAE,mBAAmB,CAAC;CACjC,GACA,iBAAiB,CAoEnB"}
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -4,13 +4,23 @@ export type { AnalyzeProjectArgs, AnalyzeProjectInputs, } from './analyze-projec
|
|
|
4
4
|
export { buildAnalyzeProjectArgs } from './analyze-project-args';
|
|
5
5
|
export type { EngineApi, TransformFileResult, V2EngineAdapterDeps, V2EngineStateStore, V2ExtractEngine, } from './engine-adapter';
|
|
6
6
|
export { createV2EngineApi } from './engine-adapter';
|
|
7
|
-
export {
|
|
7
|
+
export { assertSupportedEngine, RETIRED_ENGINE_MESSAGE, } from './engine-retirement';
|
|
8
|
+
export type { AssetCopy } from './asset-copies';
|
|
9
|
+
export { pruneStaleAssets, writeAssetCopy } from './asset-copies';
|
|
8
10
|
export { contentHash } from './content-hash';
|
|
11
|
+
export { assertRuntimeImportSuppliesTerminals, DEFAULT_RUNTIME_IMPORT, } from './runtime-import';
|
|
12
|
+
export type { DiscoveryResolver, HostResolve } from './host-package-resolver';
|
|
13
|
+
export { AliasAgreementCache, compareAliases } from './alias-agreement';
|
|
14
|
+
export type { AliasAgreement } from './alias-agreement';
|
|
15
|
+
export { discoveryResolver } from './host-package-resolver';
|
|
16
|
+
export type { OutputTargets } from './output-targets';
|
|
17
|
+
export { analysedOutputs, esbuildOutputTargets, mergeOutputTargets, noOutputTargets, outputExclusions, rollupOutputTargets, viteOutputTargets, webpackOutputTargets, } from './output-targets';
|
|
9
18
|
export type { AnimusCoreOptions, AnimusMode, DriverNamespace, ExcludeMatcher, OptionProvenance, ResolvedMode, Verbosity, } from './core-options';
|
|
10
|
-
export { AnimusConfigError, assertKnownOptionKeys, CORE_OPTION_KEYS, createExcludeMatcher, DEFAULT_EXCLUDE, DRIVER_NAMESPACES, REPLACEABLE_DEFAULT_EXCLUDE, STRUCTURAL_EXCLUDE, resolveMode, resolveVerbosity, } from './core-options';
|
|
19
|
+
export { AnimusConfigError, assertKnownOptionKeys, CORE_OPTION_KEYS, createExcludeMatcher, DEFAULT_EXCLUDE, DRIVER_NAMESPACES, outputExclusion, outputSourceGuard, outputSourceMessage, REPLACEABLE_DEFAULT_EXCLUDE, STRUCTURAL_EXCLUDE, resolveMode, resolveVerbosity, unmatchedExcludeLines, } from './core-options';
|
|
11
20
|
export { compareDiscoveryOrder, discoverFiles } from './discover-files';
|
|
12
21
|
export type { CollectedExternalPackages, ExternalPackageOutcome, ModuleParser, ModuleRecord, SourceKitDependency, } from './discover-packages';
|
|
13
|
-
export { collectExternalPackageSources, engineModuleParser, excludeCollectedPackages, extractSystemFilePackages, fileSideEffects, findPackageRoot, keepsKitSourceEffects, kitSourceModuleSideEffects, firstOwners, importedKitDiagnostics, isExcludedPackageRelativePath,
|
|
22
|
+
export { bareSpecifierPackageName, collectExternalPackageSources, engineModuleParser, excludeCollectedPackages, extractSystemFilePackages, fileSideEffects, findPackageRoot, nativeKitSourceRoot, nativePackageLocator, keepsKitSourceEffects, kitSourceModuleSideEffects, firstOwners, importedKitDiagnostics, isExcludedPackageRelativePath, probeAbsolutePathSpecifier, sourceKitDependencies, systemKitDependencies, staleDistIncludesMessage, unresolvableIncludesMessage, walkPackageSources, } from './discover-packages';
|
|
23
|
+
export { caseMismatchReason } from './extension-policy';
|
|
14
24
|
export type { KitDescriptor, KitDescriptorRecord } from './kit-descriptor';
|
|
15
25
|
export { buildKitDescriptor, KIT_DESCRIPTOR_FILE, kitDescriptorDiagnostics, readKitDescriptor, } from './kit-descriptor';
|
|
16
26
|
export type { ResolvedSourceId, SourceIdentity } from './source-identity';
|
|
@@ -33,19 +43,23 @@ export type { AnalysisOptions, EmitterConfig, ProjectAnalysisResult, } from './r
|
|
|
33
43
|
export { buildAnalysisInputs, clearEngineCache, runProjectAnalysis, } from './run-analysis';
|
|
34
44
|
export type { StaticCssComponentOverride, StaticCssConfig } from './static-css';
|
|
35
45
|
export { serializeStaticCss } from './static-css';
|
|
36
|
-
export type { SystemConfig } from './system-config';
|
|
37
|
-
export { loadSystemConfig } from './system-config';
|
|
46
|
+
export type { SystemConfig, SystemLoadReads } from './system-config';
|
|
47
|
+
export { loadSystemConfig, systemLoadReads } from './system-config';
|
|
48
|
+
export type { HostExtensionPolicy } from './host-extensions';
|
|
49
|
+
export { BUILT_IN_EXTENSION_POLICY, esbuildExtensionPolicy, extensionPolicyJson, rollupExtensionPolicy, turbopackExtensionPolicy, viteExtensionPolicy, webpackExtensionPolicy, } from './host-extensions';
|
|
50
|
+
export type { WorkspacePackages } from './workspace-packages';
|
|
51
|
+
export { declaredWorkspacePackages } from './workspace-packages';
|
|
38
52
|
export type { StructuralCheckInput } from './structural-self-check';
|
|
39
53
|
export { runStructuralSelfCheck } from './structural-self-check';
|
|
40
54
|
export { buildSystemPropsModule } from './system-props-module';
|
|
41
|
-
export { readTsconfigAliasPairs } from './tsconfig-paths';
|
|
55
|
+
export { readTsconfigAliasPairs, tsconfigChainPaths } from './tsconfig-paths';
|
|
42
56
|
export type { DynamicPropConfigEntry, DynamicPropMeta, } from './dynamic-prop-config';
|
|
43
57
|
export { buildDynamicPropConfig } from './dynamic-prop-config';
|
|
44
58
|
export type { CssDiagnosticLike } from './error-diagnostics';
|
|
45
59
|
export { assertNoErrorDiagnostics } from './error-diagnostics';
|
|
46
|
-
export type { ManifestComponentDescriptor, ManifestComponentSheets, ManifestSheets, ProjectManifest, } from './manifest-schema';
|
|
60
|
+
export type { ManifestComponentDescriptor, ManifestMissingInput, ManifestComponentSheets, ManifestSheets, ProjectManifest, } from './manifest-schema';
|
|
47
61
|
export type { DiagnosticLevel, DiagnosticLevels, ManifestDiagnostic, } from './manifest-diagnostics';
|
|
48
|
-
export { DIAGNOSTIC_LEVELS, DiagnosticFailure, INVALID_PROPERTY_REGISTRATION,
|
|
62
|
+
export { DIAGNOSTIC_LEVELS, DiagnosticFailure, INVALID_PROPERTY_REGISTRATION, surfaceManifestDiagnostics, isDeletedSource, noKitFilesDiagnostics, unreadableSourceDiagnostic, VOCABULARY_COLLISION, VOCABULARY_LEGACY_VERB, systemLoadDiagnostics, vocabularyWitnessDiagnostics, } from './manifest-diagnostics';
|
|
49
63
|
export type { DefaultExtension, PreprocessMdxResult } from './mdx-preprocessor';
|
|
50
64
|
export { DEFAULT_EXTENSIONS, ENGINE_TRANSFORM_EXTENSIONS, isEngineTransformExtension, preprocessMdx, } from './mdx-preprocessor';
|
|
51
65
|
export { kitPublicationFailures } from './kit-publication';
|
|
@@ -55,4 +69,14 @@ export { diffFilePlans, hashReplacementPlans, snapshotFilePlans, } from './repla
|
|
|
55
69
|
export { applyUnitFallback } from './unit-fallback';
|
|
56
70
|
export { camelToKebab, stableStringify } from './utils';
|
|
57
71
|
export { toWatchKeys } from './watch-keys';
|
|
72
|
+
export type { IngestionOpening } from './source-ingestion';
|
|
73
|
+
export { builtInAssetClassification, esbuildAssetClassification, nextImageAssetClassification, viteAssetClassification, } from './host-assets';
|
|
74
|
+
export type { HostAssetClassification } from './host-assets';
|
|
75
|
+
export { viteHostExpander, viteLoadExpander } from './vite-expansions';
|
|
76
|
+
export { webpackHostExpander, webpackLoadExpander } from './webpack-expansions';
|
|
77
|
+
export type { WebpackOptionsReading, WebpackResolveReading, WebpackRuleEntry, WebpackRuleReading, } from './webpack-expansions';
|
|
78
|
+
export type { ExpandedPath, HostLoadExpander, ListedArgs, ListedLoad, } from './host-expansions';
|
|
79
|
+
export { adaptedOriginals } from './probe-evidence';
|
|
80
|
+
export type { ServedFiles } from './served-files';
|
|
81
|
+
export { droppedExtensionMessage, servedFiles } from './served-files';
|
|
58
82
|
//# 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,
|
|
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,mBA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C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kit-publication.d.ts","sourceRoot":"","sources":["../../pipeline/kit-publication.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kit-publication.d.ts","sourceRoot":"","sources":["../../pipeline/kit-publication.ts"],"names":[],"mappings":"AAyBA,wDAAwD;AACxD,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,MAAM,CAAC;CACxD;AAoID;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,qBAAqB,EAC7B,WAAW,CAAC,EAAE,MAAM,GACnB,MAAM,EAAE,CAgKV"}
|
|
@@ -27,9 +27,6 @@ export declare function warnLine(diagnostic: ManifestDiagnostic): string;
|
|
|
27
27
|
/** Stable code for selector forms with no substitutable subject; the
|
|
28
28
|
* extraction engine mints the same string. */
|
|
29
29
|
export declare const SELECTOR_UNSUPPORTED_SUBJECT = "animus.selector.unsupported-subject";
|
|
30
|
-
type DiagnosticMessage = Pick<ManifestDiagnostic, 'message'>;
|
|
31
|
-
export declare function isUnresolvedParentDrop(diagnostic: DiagnosticMessage): boolean;
|
|
32
|
-
export declare function unresolvedParentName(diagnostic: DiagnosticMessage): string | null;
|
|
33
30
|
export interface DiagnosticPolicy {
|
|
34
31
|
/** When true, error-severity diagnostics throw instead of warning. */
|
|
35
32
|
strict?: boolean;
|
|
@@ -80,11 +77,11 @@ export declare function collectSelectorAliasDiagnostics(selectorAliasesJson: str
|
|
|
80
77
|
export declare const UNREADABLE_SOURCE_FILE = "animus.ingestion.unreadable-source-file";
|
|
81
78
|
/** A kit the system extends resolved, yet discovery found none of its files. */
|
|
82
79
|
export declare const NO_KIT_FILES = "animus.discovery.no-kit-files";
|
|
83
|
-
/** A kit with no `animus` export condition
|
|
84
|
-
* from `src/`. */
|
|
80
|
+
/** A kit with no `animus` export condition whose exports do not all target
|
|
81
|
+
* TypeScript source: discovery guesses its source from `src/`. */
|
|
85
82
|
export declare const KIT_WITHOUT_SOURCE_CONDITION = "animus.discovery.kit-without-source-condition";
|
|
86
83
|
/** A kit's `animus` export condition names a file that is missing or outside
|
|
87
|
-
* its package, so that entry is
|
|
84
|
+
* its package, so that entry is read from its runtime target instead. */
|
|
88
85
|
export declare const INVALID_KIT_SOURCE_CONDITION = "animus.discovery.invalid-source-condition";
|
|
89
86
|
/** A kit the application imports whose system the application's system
|
|
90
87
|
* does not include: its components are not extracted. */
|
|
@@ -92,10 +89,34 @@ export declare const KIT_SYSTEM_NOT_INCLUDED = "animus.kit.system-not-included";
|
|
|
92
89
|
/** A system file's `createSystem` binding that discovery could not follow to
|
|
93
90
|
* Animus's factory, so it is no root. */
|
|
94
91
|
export declare const UNPROVEN_ROOT_BINDING = "animus.discovery.unproven-root-binding";
|
|
92
|
+
/** A system builder, a `createSystem` chain not yet built, leaves the
|
|
93
|
+
* bindings and chains discovery follows, so kits extended on it from there
|
|
94
|
+
* are not read as members. */
|
|
95
|
+
export declare const UNFOLLOWED_SYSTEM_BUILDER = "animus.discovery.unfollowed-system-builder";
|
|
95
96
|
/** A system file calls `createSystem` with no import or local binding. The
|
|
96
97
|
* system loader evaluates the file without auto-imports, where the name is
|
|
97
98
|
* undefined, so the call is no root. */
|
|
98
99
|
export declare const UNIMPORTED_CREATE_SYSTEM = "animus.discovery.unimported-create-system";
|
|
100
|
+
/** A tsconfig path alias the host bundler resolves to another file than
|
|
101
|
+
* analysis does (spec §2.2 A7): report only. */
|
|
102
|
+
export declare const ALIAS_MISMATCH = "animus.discovery.alias-mismatch";
|
|
103
|
+
/** A package the host bundler resolves to a file in no package of its own,
|
|
104
|
+
* where discovery reads the installed package instead (spec §2.2 A4):
|
|
105
|
+
* report only. */
|
|
106
|
+
export declare const PACKAGE_MISMATCH = "animus.discovery.package-mismatch";
|
|
107
|
+
/** A system-file kit whose analysed instance is not the one the system
|
|
108
|
+
* load evaluated (spec §2.2 A4): its components would be extracted
|
|
109
|
+
* against another instance's vocabulary. */
|
|
110
|
+
export declare const SYSTEM_INSTANCE_MISMATCH = "animus.discovery.system-instance-mismatch";
|
|
111
|
+
/** An import the host resolves, from its importer, into another instance
|
|
112
|
+
* of a discovered package whose file is not analysed and that no source
|
|
113
|
+
* redirect covers: the importer would render unextracted builder code
|
|
114
|
+
* (spec §2.2 A4, SA1). */
|
|
115
|
+
export declare const UNREAD_PACKAGE_INSTANCE = "animus.discovery.unread-package-instance";
|
|
116
|
+
/** An import the host resolves, from its importer, into another instance
|
|
117
|
+
* of a discovered package, which a request-keyed source redirect replaces
|
|
118
|
+
* with the instance discovery read (spec §2.2 A4). */
|
|
119
|
+
export declare const REPLACED_PACKAGE_INSTANCE = "animus.discovery.replaced-package-instance";
|
|
99
120
|
/** What a skipped source file costs: the analysis never sees what it
|
|
100
121
|
* renders. */
|
|
101
122
|
export declare const SKIPPED_SOURCE_COST = "skipped: its renders are not seen, so nothing is pruned and every component, variant option and state is kept until it is analyzed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-diagnostics.d.ts","sourceRoot":"","sources":["../../pipeline/manifest-diagnostics.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,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;kDAC8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;eAIW;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EA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M,+BAA+B,2CACF,CAAC;AAE3C;yCACyC;AACzC,eAAO,MAAM,uBAAuB,mCAAmC,CAAC;AAExE;uDACuD;AACvD,eAAO,MAAM,gCAAgC,4CACF,CAAC;AAE5C;;2BAE2B;AAC3B,eAAO,MAAM,0BAA0B,sCAAsC,CAAC;AAE9E;mEACmE;AACnE,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAElE;8CAC8C;AAC9C,eAAO,MAAM,+BAA+B,2CACF,CAAC;AAE3C;YACY;AACZ,eAAO,MAAM,wBAAwB,oCAAoC,CAAC;AAE1E;;;;GAIG;AACH,KAAK,kBAAkB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAiCpD;yEACyE;AACzE,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,kBAAkB,CAIxE;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,uBAAuB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACjD,kBAAkB,EAAE,CAgDtB;AAED;uDACuD;AACvD,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,IAAI,CACV,YAAY,EACV,yBAAyB,GACzB,8BAA8B,GAC9B,qBAAqB,GACrB,YAAY,GACZ,qBAAqB,CACxB,GACA,kBAAkB,EAAE,CAgCtB;AAgDD;;;;GAIG;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,CAuDN"}
|
|
@@ -132,6 +132,22 @@ export interface ProjectManifest {
|
|
|
132
132
|
components: Record<string, ManifestComponentDescriptor>;
|
|
133
133
|
/** file path → component ids declared in it. */
|
|
134
134
|
files: Record<string, string[]>;
|
|
135
|
+
/** Each extension dropped over a parent that is no analysed chain, with
|
|
136
|
+
* why (spec §12.2 row 11); absent where none was. */
|
|
137
|
+
missing_inputs?: ManifestMissingInput[];
|
|
135
138
|
timing: ManifestTiming;
|
|
136
139
|
}
|
|
140
|
+
/** An extension dropped over its parent: the typed evidence a host's
|
|
141
|
+
* rediscovery reads in place of the drop's message. */
|
|
142
|
+
export interface ManifestMissingInput {
|
|
143
|
+
file: string;
|
|
144
|
+
component: string;
|
|
145
|
+
/** The parent as written in the extending file. */
|
|
146
|
+
parent: string;
|
|
147
|
+
/** The specifier the parent is imported by, where it is imported. */
|
|
148
|
+
specifier: string | null;
|
|
149
|
+
/** The rootDir-relative path the specifier probes, where it is a path. */
|
|
150
|
+
base: string | null;
|
|
151
|
+
outcome: 'absent' | 'incomplete' | 'opaque' | 'adapted' | 'package' | 'unreached' | 'not-a-chain' | 'failed-parent';
|
|
152
|
+
}
|
|
137
153
|
//# sourceMappingURL=manifest-schema.d.ts.map
|
|
@@ -1 +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;IAC5B,yEAAyE;IACzE,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IA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AAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC/C;;4CAEwC;IACxC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C;iEAC6D;IAC7D,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IAC7D,2DAA2D;IAC3D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,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;0DACsD;IACtD,cAAc,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACxC,MAAM,EAAE,cAAc,CAAC;CACxB;AAED;wDACwD;AACxD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,0EAA0E;IAC1E,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EACH,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,CAAC;CACrB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** Absolute paths. A file target names only itself: an output written
|
|
2
|
+
* beside sources excludes none of them. */
|
|
3
|
+
export interface OutputTargets {
|
|
4
|
+
dirs: string[];
|
|
5
|
+
files: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare function noOutputTargets(): OutputTargets;
|
|
8
|
+
/** One bundler output's `dir` or `file`, against `base`. */
|
|
9
|
+
interface NamedOutput {
|
|
10
|
+
dir?: string;
|
|
11
|
+
file?: string;
|
|
12
|
+
}
|
|
13
|
+
/** The targets of Rollup's or Rolldown's output options at render. */
|
|
14
|
+
export declare function rollupOutputTargets(output: NamedOutput): OutputTargets;
|
|
15
|
+
interface ViteBuildLike {
|
|
16
|
+
outDir: string;
|
|
17
|
+
rollupOptions?: {
|
|
18
|
+
output?: NamedOutput | NamedOutput[];
|
|
19
|
+
};
|
|
20
|
+
rolldownOptions?: {
|
|
21
|
+
output?: NamedOutput | NamedOutput[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/** Every Vite environment's outputs, as Vite's own `getResolvedOutDirs`
|
|
25
|
+
* reads them: each output's `dir`, else the environment's `outDir`. */
|
|
26
|
+
export declare function viteOutputTargets(config: {
|
|
27
|
+
root: string;
|
|
28
|
+
build: ViteBuildLike;
|
|
29
|
+
environments?: Record<string, {
|
|
30
|
+
build?: ViteBuildLike;
|
|
31
|
+
}>;
|
|
32
|
+
}): OutputTargets;
|
|
33
|
+
/** esbuild's `outdir`, or its exact `outfile`. */
|
|
34
|
+
export declare function esbuildOutputTargets(options: {
|
|
35
|
+
outdir?: string;
|
|
36
|
+
outfile?: string;
|
|
37
|
+
absWorkingDir?: string;
|
|
38
|
+
}): OutputTargets;
|
|
39
|
+
/** webpack's `output.path`, up to its first segment holding a template
|
|
40
|
+
* placeholder (`out/[fullhash]` writes under `out`). */
|
|
41
|
+
export declare function webpackOutputTargets(outputPath?: string): OutputTargets;
|
|
42
|
+
export declare function mergeOutputTargets(all: OutputTargets[]): OutputTargets;
|
|
43
|
+
/** The Session's structural exclusions: every target inside the root. A
|
|
44
|
+
* directory that is the root excludes nothing; its files still can. */
|
|
45
|
+
export declare function outputExclusions(root: string, targets: OutputTargets): string[];
|
|
46
|
+
/** The analysed files a build's targets hold, as the render check reports
|
|
47
|
+
* them: a file target the analysis read is the build's own earlier
|
|
48
|
+
* output; a file inside a directory target is earlier output or a source
|
|
49
|
+
* the bundler writes beside, which the check cannot tell apart. */
|
|
50
|
+
export declare function analysedOutputs(root: string, targets: OutputTargets, analyzed: readonly string[]): string | null;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=output-targets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-targets.d.ts","sourceRoot":"","sources":["../../pipeline/output-targets.ts"],"names":[],"mappings":"AAWA;4CAC4C;AAC5C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,wBAAgB,eAAe,IAAI,aAAa,CAE/C;AAED,4DAA4D;AAC5D,UAAU,WAAW;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAoBD,sEAAsE;AACtE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,GAAG,aAAa,CAEtE;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAAA;KAAE,CAAC;IACzD,eAAe,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAAA;KAAE,CAAC;CAC5D;AAED;wEACwE;AACxE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,aAAa,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;CAC1D,GAAG,aAAa,CAgBhB;AAED,kDAAkD;AAClD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,aAAa,CAIhB;AAED;yDACyD;AACzD,wBAAgB,oBAAoB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,CAOvE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,aAAa,CAKtE;AAED;wEACwE;AACxE,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,aAAa,GACrB,MAAM,EAAE,CAKV;AAED;;;oEAGoE;AACpE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B,MAAM,GAAG,IAAI,CA6Bf"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ExtensionOrder } from './extension-policy';
|
|
2
|
+
import type { HostLoadExpander, ListedLoad } from './host-expansions';
|
|
3
|
+
/** What the host's filesystem opens for one probe base (spec §2.2 A2, A8),
|
|
4
|
+
* as the engine's `HostCandidate` reads it. */
|
|
5
|
+
export interface HostCandidate {
|
|
6
|
+
/** The first candidate, in the host's order, the host opens as a file,
|
|
7
|
+
* spelled as the probe spells it. */
|
|
8
|
+
candidate: string;
|
|
9
|
+
/** The spelling the filesystem lists, where it differs: a case- or
|
|
10
|
+
* normalization-insensitive host opens the candidate as this file. */
|
|
11
|
+
actual: string | null;
|
|
12
|
+
/** The analysed module the candidate is, where the analysis holds one. */
|
|
13
|
+
analysedAs: string | null;
|
|
14
|
+
/** How the analysis reads a candidate it holds no module for, or one a
|
|
15
|
+
* query loads as an opaque value (spec §2.2 A8); absent where it reads
|
|
16
|
+
* the module, or the spelling differs. */
|
|
17
|
+
reading?: 'asset' | 'adapted' | 'unanalysed';
|
|
18
|
+
}
|
|
19
|
+
/** What a session knows beside the analysed paths. */
|
|
20
|
+
export interface HostReadings {
|
|
21
|
+
/** The host's asset and stylesheet classification. */
|
|
22
|
+
isAsset?(file: string, query: string): boolean;
|
|
23
|
+
/** Each adapted original (`.mdx`, `.svelte`) and its analysis children. */
|
|
24
|
+
adapted?: ReadonlyMap<string, readonly string[]>;
|
|
25
|
+
/** How the host's bundler expands computed loads (spec §6.3). */
|
|
26
|
+
expander?: HostLoadExpander;
|
|
27
|
+
}
|
|
28
|
+
/** The session's evidence for the probe bases and computed loads the
|
|
29
|
+
* engine's `prepare` names, carrying its input identity, as JSON. */
|
|
30
|
+
export type ProbeEvidenceGatherer = (bases: readonly string[], identity: string, loads?: readonly ListedLoad[]) => string;
|
|
31
|
+
/**
|
|
32
|
+
* What the host's filesystem opens for `base` (spec §2.2 A2, A8): the first
|
|
33
|
+
* of its candidates, in the host's order, that the host opens. The
|
|
34
|
+
* filesystem decides what opens, and each name below the session root is
|
|
35
|
+
* checked against its own directory's listing (`seeOnDisk`); nothing is
|
|
36
|
+
* folded. Null where no candidate opens.
|
|
37
|
+
*
|
|
38
|
+
* A candidate the analysis holds answers before the filesystem is asked: an
|
|
39
|
+
* adapted original's analysis child need not exist on disk. A file the host
|
|
40
|
+
* opens that the analysis holds no module for is read as an adapted
|
|
41
|
+
* original (analysed as its first later child), an asset, or a file
|
|
42
|
+
* analysis never reads.
|
|
43
|
+
*/
|
|
44
|
+
export declare function hostCandidate(rootDir: string, base: string, analysed: ReadonlySet<string>, order: ExtensionOrder | undefined, readings?: HostReadings, root?: string): HostCandidate | null;
|
|
45
|
+
/**
|
|
46
|
+
* The session's host-candidate evidence for one analysis (spec §2.3): each
|
|
47
|
+
* probe base the engine's `prepare` names, as `hostCandidate` reads it, and
|
|
48
|
+
* the host's expansion of each computed load it lists (spec §6.3). The
|
|
49
|
+
* evidence carries the input identity `prepare` reported, and each call is a
|
|
50
|
+
* new ingest generation, so no evidence is read for other files.
|
|
51
|
+
*/
|
|
52
|
+
export declare function gatherProbeEvidence(rootDir: string, analysed: ReadonlySet<string>, order: ExtensionOrder | undefined, readings?: HostReadings): ProbeEvidenceGatherer;
|
|
53
|
+
/** Each adapted original and its analysis children, from ingestion's
|
|
54
|
+
* ownership: an original whose children are other paths than its own. */
|
|
55
|
+
export declare function adaptedOriginals(ownership: Readonly<Record<string, {
|
|
56
|
+
readonly analysisPaths: readonly string[];
|
|
57
|
+
}>>): ReadonlyMap<string, readonly string[]>;
|
|
58
|
+
//# sourceMappingURL=probe-evidence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe-evidence.d.ts","sourceRoot":"","sources":["../../pipeline/probe-evidence.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEtE;gDACgD;AAChD,MAAM,WAAW,aAAa;IAC5B;0CACsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB;2EACuE;IACvE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;+CAE2C;IAC3C,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,YAAY,CAAC;CAC9C;AAED,sDAAsD;AACtD,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,OAAO,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/C,2EAA2E;IAC3E,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;IACjD,iEAAiE;IACjE,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED;sEACsE;AACtE,MAAM,MAAM,qBAAqB,GAAG,CAClC,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,SAAS,UAAU,EAAE,KAC1B,MAAM,CAAC;AAcZ;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,EAC7B,KAAK,EAAE,cAAc,GAAG,SAAS,EACjC,QAAQ,GAAE,YAAiB,EAC3B,IAAI,GAAE,MAA0B,GAC/B,aAAa,GAAG,IAAI,CA8CtB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,EAC7B,KAAK,EAAE,cAAc,GAAG,SAAS,EACjC,QAAQ,GAAE,YAAiB,GAC1B,qBAAqB,CAiCvB;AAED;0EAC0E;AAC1E,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,QAAQ,CACjB,MAAM,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAC9D,GACA,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CASxC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { AnalyzeProjectInputs } from './analyze-project-args';
|
|
2
|
+
import type { ExtensionOrder } from './extension-policy';
|
|
3
|
+
import type { HostAssetClassification } from './host-assets';
|
|
4
|
+
import type { HostLoadExpander } from './host-expansions';
|
|
2
5
|
import type { KitDescriptorRecord } from './kit-descriptor';
|
|
3
6
|
import type { DiagnosticLevels } from './manifest-diagnostics';
|
|
4
7
|
import type { ProjectManifest } from './manifest-schema';
|
|
8
|
+
import type { IngestionOpening } from './source-ingestion';
|
|
5
9
|
import type { SystemConfig } from './system-config';
|
|
6
10
|
/**
|
|
7
11
|
* Per-bundler emitter identity: the module ids the engine injects into
|
|
@@ -43,6 +47,19 @@ export interface AnalysisOptions {
|
|
|
43
47
|
devMode: boolean;
|
|
44
48
|
/** What the host knows that the analysis cannot see. */
|
|
45
49
|
analysisContext?: AnalysisContext;
|
|
50
|
+
/** The session root the analysed paths are relative to. Given, the
|
|
51
|
+
* host-candidate evidence for each probe is gathered from its filesystem
|
|
52
|
+
* (spec §2.2 A2, A8); without it, analysis probes its file set alone. */
|
|
53
|
+
rootDir?: string;
|
|
54
|
+
/** The host's asset classification (spec §2.2 A8): an asset a probe's
|
|
55
|
+
* host opens is an opaque value, not a source analysis skipped. */
|
|
56
|
+
assets?: HostAssetClassification;
|
|
57
|
+
/** Each adapted original (`.mdx`, `.svelte`) and its analysis children,
|
|
58
|
+
* through which a probe the host opens one at reads it. */
|
|
59
|
+
adapted?: ReadonlyMap<string, readonly string[]>;
|
|
60
|
+
/** How the host's bundler expands computed loads (spec §6.3); without
|
|
61
|
+
* one, every computed load keeps its widest reading. */
|
|
62
|
+
loadExpander?: HostLoadExpander;
|
|
46
63
|
/** Diagnostics gathered outside analysis, surfaced through the same
|
|
47
64
|
* policy point as the manifest's own. */
|
|
48
65
|
extraDiagnostics?: import('./manifest-diagnostics').ManifestDiagnostic[];
|
|
@@ -68,10 +85,19 @@ export interface AnalysisContext {
|
|
|
68
85
|
/** Those of them read from their package's compiled output, where an
|
|
69
86
|
* unregistered keyframe reference names the kit's source condition. */
|
|
70
87
|
outputDirs?: string[];
|
|
88
|
+
/** The host's extension order (spec §2.2 A2), through which analysis
|
|
89
|
+
* resolves a relative import; the built-in policy without one. */
|
|
90
|
+
extensions?: ExtensionOrder;
|
|
91
|
+
/** Resolver calls ingestion ended under another spelling (spec §2.2
|
|
92
|
+
* A8): openings analysis reports and never prunes past. */
|
|
93
|
+
openings?: IngestionOpening[];
|
|
71
94
|
}
|
|
72
95
|
/** The named `analyzeProject` input set, and the persistence shape an
|
|
73
96
|
* isolated process replays the analysis from. */
|
|
74
97
|
export declare function buildAnalysisInputs(opts: AnalysisOptions): AnalyzeProjectInputs;
|
|
98
|
+
/** The engine's wire for what the host knows; present only when the host
|
|
99
|
+
* knows something, so a host that knows nothing persists unchanged inputs. */
|
|
100
|
+
export declare function analysisContextJson(context: AnalysisContext | undefined): string | undefined;
|
|
75
101
|
/**
|
|
76
102
|
* The one analysis invocation both plugins share. Error handling stays at
|
|
77
103
|
* the call site (strict-mode throw vs warn).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-analysis.d.ts","sourceRoot":"","sources":["../../pipeline/run-analysis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-analysis.d.ts","sourceRoot":"","sources":["../../pipeline/run-analysis.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,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;IACrB;gEAC4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,CAAC,EAAE,OAAO,CAAC;IACnC;wCACoC;IACpC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;gEAC4D;IAC5D,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;4EACwE;IACxE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;uEACmE;IACnE,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B;gEAC4D;IAC5D,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAYD;kDACkD;AAClD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,eAAe,GACpB,oBAAoB,CAiDtB;AAED;+EAC+E;AAC/E,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,eAAe,GAAG,SAAS,GACnC,MAAM,GAAG,SAAS,CA2BpB;AAkCD;;;GAGG;AACH,wBAAgB,kBAAkB,CAEhC,SAAS,EAAE,MAAM,GAAG,EACpB,IAAI,EAAE,eAAe,GAAG;IACtB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,sEAAsE;IACtE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uCAAuC;IACvC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,4EAA4E;IAC5E,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,GACA,qBAAqB,CA+EvB;AAED;;;GAGG;AAEH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,IAAI,CAO3D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The runtime module extracted terminals import their factories from.
|
|
3
|
+
*/
|
|
4
|
+
import type { ProjectManifest } from './manifest-schema';
|
|
5
|
+
/** The runtime every adapter emits by default (spine row 1). */
|
|
6
|
+
export declare const DEFAULT_RUNTIME_IMPORT = "@animus-ui/system/runtime";
|
|
7
|
+
/** Throws when `runtimeImport` names a module that cannot supply a
|
|
8
|
+
* terminal the manifest extracted. */
|
|
9
|
+
export declare function assertRuntimeImportSuppliesTerminals(runtimeImport: string | undefined, manifest: ProjectManifest): void;
|
|
10
|
+
//# sourceMappingURL=runtime-import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-import.d.ts","sourceRoot":"","sources":["../../pipeline/runtime-import.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,gEAAgE;AAChE,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AASlE;uCACuC;AACvC,wBAAgB,oCAAoC,CAClD,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,QAAQ,EAAE,eAAe,GACxB,IAAI,CAsBN"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a host's transform reads from a published manifest (SA1): the files
|
|
3
|
+
* it lists components for, which must transform, and the extensions it
|
|
4
|
+
* dropped over a parent the analysis could not resolve, which must not be
|
|
5
|
+
* served untransformed (spec §12.2 row 11).
|
|
6
|
+
*/
|
|
7
|
+
import type { ManifestMissingInput, ProjectManifest } from './manifest-schema';
|
|
8
|
+
export interface ServedFiles {
|
|
9
|
+
listed: ReadonlySet<string>;
|
|
10
|
+
dropped: ReadonlyMap<string, ManifestMissingInput>;
|
|
11
|
+
}
|
|
12
|
+
export declare function servedFiles(manifest: Pick<ProjectManifest, 'files' | 'missing_inputs'>): ServedFiles;
|
|
13
|
+
/** Why a file dropped over its extension parent is not served: its builder
|
|
14
|
+
* code would render with empty classes. */
|
|
15
|
+
export declare function droppedExtensionMessage(drop: ManifestMissingInput): string;
|
|
16
|
+
//# sourceMappingURL=served-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"served-files.d.ts","sourceRoot":"","sources":["../../pipeline/served-files.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/E,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CACpD;AAED,wBAAgB,WAAW,CACzB,QAAQ,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,gBAAgB,CAAC,GAC1D,WAAW,CAkBb;AAED;4CAC4C;AAC5C,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,CAS1E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ExternalFileOwners, type RawSourceEntry, type SourceEntryOwnership, type SourceIngestionResult, type SourceIngestor, type SourceIngestorHost } from './source-ingestion';
|
|
2
|
+
import type { AnalysisSourceEntry, ExtractFactsResult } from './source-ingestion';
|
|
2
3
|
type CachedSourceEntry = {
|
|
3
4
|
hash: string;
|
|
4
5
|
source: string;
|
|
@@ -22,6 +23,9 @@ export interface AbortedParseRejection {
|
|
|
22
23
|
}
|
|
23
24
|
export interface SourceCorpus {
|
|
24
25
|
prepare(input: readonly RawSourceEntry[] | SourceCorpusCache): Promise<SourceIngestionResult>;
|
|
26
|
+
/** The engine's facts for parser-ready entries, through the ingestion's
|
|
27
|
+
* cache (`SourceIngestor.facts`). */
|
|
28
|
+
facts(entries: readonly AnalysisSourceEntry[]): ExtractFactsResult;
|
|
25
29
|
/** Non-null when an admitted original's parse aborted: the parser yielded
|
|
26
30
|
* no chains, imports or exports for it, so analyzing it would publish a
|
|
27
31
|
* generation without the styles its served module still uses. The attempt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-corpus.d.ts","sourceRoot":"","sources":["../../pipeline/source-corpus.ts"],"names":[],"mappings":"AACA,OAA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,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,CAmDd"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PreprocessMdxResult } from './mdx-preprocessor';
|
|
2
2
|
import { adaptSvelteSource, type SvelteAdapterDiagnostic } from './svelte-source-adapter';
|
|
3
|
+
import type { ExtensionOrder } from './extension-policy';
|
|
3
4
|
export interface RawSourceEntry {
|
|
4
5
|
path: string;
|
|
5
6
|
source: string;
|
|
@@ -119,6 +120,21 @@ export interface SourceIngestionResult {
|
|
|
119
120
|
/** Originals a fatal diagnostic left out. Their renders are unseen, so an
|
|
120
121
|
* analysis without them must not prune. Absent when none was left out. */
|
|
121
122
|
skippedOriginals?: string[];
|
|
123
|
+
/** Resolver calls whose import the host opens under another spelling
|
|
124
|
+
* (spec §2.2 A8): openings the analysis reports and never prunes past.
|
|
125
|
+
* Absent when none. */
|
|
126
|
+
openings?: IngestionOpening[];
|
|
127
|
+
}
|
|
128
|
+
/** A probe ingestion ended Incomplete (spec §2.2 A8): the host opens its
|
|
129
|
+
* candidate under another spelling, or opens a file analysis never reads
|
|
130
|
+
* (`later` the analysed candidate a fall-through would have read). */
|
|
131
|
+
export interface IngestionOpening {
|
|
132
|
+
importer: string;
|
|
133
|
+
specifier: string;
|
|
134
|
+
candidate: string;
|
|
135
|
+
opened: string;
|
|
136
|
+
why: 'case-mismatch' | 'skipped';
|
|
137
|
+
later?: string;
|
|
122
138
|
}
|
|
123
139
|
export interface AbortedParse {
|
|
124
140
|
originalPath: string;
|
|
@@ -138,11 +154,19 @@ export interface SourceIngestionOptions {
|
|
|
138
154
|
/** Test seams; production callers use the module defaults. */
|
|
139
155
|
preprocessMdx?: (source: string, filename: string) => Promise<PreprocessMdxResult>;
|
|
140
156
|
adaptSvelte?: typeof adaptSvelteSource;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
157
|
+
/** The host's extension order (spec §2.2 A2), through which a Svelte
|
|
158
|
+
* resolver's relative import is attributed; the built-in policy
|
|
159
|
+
* without one. */
|
|
160
|
+
extensions?: ExtensionOrder;
|
|
161
|
+
/** The session root the source paths are relative to. Given, a Svelte
|
|
162
|
+
* resolver's relative import is attributed to the module its host's
|
|
163
|
+
* filesystem opens first (spec §2.2 A8): one it opens under another
|
|
164
|
+
* spelling is attributed to none. */
|
|
165
|
+
rootDir?: string;
|
|
166
|
+
}
|
|
167
|
+
/** The paths a relative specifier can name from `importerPath`, in the
|
|
168
|
+
* extension policy's probe order. Empty for a non-relative specifier. */
|
|
169
|
+
export declare function relativeSourceCandidates(importerPath: string, specifier: string, policy?: ExtensionOrder): string[];
|
|
146
170
|
/**
|
|
147
171
|
* Native and MDX entries must establish the resolver index before any Svelte
|
|
148
172
|
* projection; bare-package and aliased sources stay unattributed by design.
|
|
@@ -174,9 +198,17 @@ export interface SourceIngestorHost {
|
|
|
174
198
|
/** Development's error sink: under `strict`, a fatal diagnostic is
|
|
175
199
|
* reported here instead of thrown, and its original is quarantined. */
|
|
176
200
|
reportErrors?(): ((message: string) => void) | undefined;
|
|
201
|
+
/** The host's extension order (spec §2.2 A2); the built-in policy
|
|
202
|
+
* without one. */
|
|
203
|
+
extensions?(): ExtensionOrder;
|
|
204
|
+
/** The session root the source paths are relative to. */
|
|
205
|
+
rootDir?(): string;
|
|
177
206
|
}
|
|
178
207
|
export interface SourceIngestor {
|
|
179
208
|
ingest(entries: readonly RawSourceEntry[]): Promise<SourceIngestionResult>;
|
|
209
|
+
/** The engine's facts for parser-ready entries, through the ingestion's
|
|
210
|
+
* own cache, so a later ingest of the same bytes parses nothing. */
|
|
211
|
+
facts(entries: readonly AnalysisSourceEntry[]): ExtractFactsResult;
|
|
180
212
|
/** Returns originals to quarantine. Fatal diagnostics throw under strict
|
|
181
213
|
* (strict development reports them), else warn once per (original,
|
|
182
214
|
* message); advisory ones never quarantine. */
|