@shapeshift-labs/frontier-lang-compiler 0.2.33 → 0.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/bench/smoke.mjs +20 -0
- package/dist/index.d.ts +200 -1
- package/dist/index.js +847 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -465,8 +465,8 @@ The published Frontier package family is generated from one shared package catal
|
|
|
465
465
|
- [`@shapeshift-labs/frontier-workflow`](https://www.npmjs.com/package/@shapeshift-labs/frontier-workflow): Serializable durable workflow/process manifests for Frontier apps, including steps, waits, approvals, timers, retries, expected patches, compensation, records, timelines, and registry graph output.
|
|
466
466
|
- [`@shapeshift-labs/frontier-worker`](https://www.npmjs.com/package/@shapeshift-labs/frontier-worker): Serializable worker and edge task descriptors for Frontier apps, including queues, idempotency keys, retry and timeout policy, declared reads/writes/effects, snapshots, patch outputs, produced assets, execution records, logs, trace links, proof hashes, dedupe indexes, and registry graph output.
|
|
467
467
|
- [`@shapeshift-labs/frontier-queue`](https://www.npmjs.com/package/@shapeshift-labs/frontier-queue): Serializable durable queue state, leases, retries, dedupe keys, patch-carrying jobs, dead-letter records, replay evidence, and queue inspection for Frontier apps.
|
|
468
|
-
- [`@shapeshift-labs/frontier-swarm`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm): Hierarchical swarm plans, lanes, compute profiles, ownership policy, semantic ownership regions, task queues, event streams, run records, merge bundles, merge indexes, queue overlays, merge admission, changed-path checks, and proof artifacts for Frontier agent work.
|
|
469
|
-
- [`@shapeshift-labs/frontier-swarm-codex`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm-codex): Node Codex CLI adapter for Frontier swarm plans, including prompt rendering, worktree and snapshot workspaces, Codex argument compatibility, browser resource allocation, JSONL capture, verification commands, pid-backed stop, collect/apply workflows, merge indexes, queue overlays, merge bundles, and result artifacts.
|
|
468
|
+
- [`@shapeshift-labs/frontier-swarm`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm): Hierarchical swarm plans, lanes, compute profiles, ownership policy, semantic ownership regions, task queues, event streams, run records, merge bundles, merge indexes, queue overlays, merge admission, coordinator dashboards, changed-path checks, and proof artifacts for Frontier agent work.
|
|
469
|
+
- [`@shapeshift-labs/frontier-swarm-codex`](https://www.npmjs.com/package/@shapeshift-labs/frontier-swarm-codex): Node Codex CLI adapter for Frontier swarm plans, including prompt rendering, worktree and snapshot workspaces, Codex argument compatibility, browser resource allocation, JSONL capture, verification commands, pid-backed stop, collect/apply workflows, merge indexes, queue overlays, merge bundles, normalized job evidence, coordinator query artifacts, and result artifacts.
|
|
470
470
|
- [`@shapeshift-labs/frontier-lang-kernel`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-kernel): Runtime-neutral semantic source graph, type/lattice/extern declarations, patch bundles, replay, hashing, evidence records, and merge-admission kernel for Frontier Lang.
|
|
471
471
|
- [`@shapeshift-labs/frontier-lang-parser`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-parser): Dependency-light Frontier Lang parser for modules, entities, state, actions, effects, types, externs, targets, and lattice declarations.
|
|
472
472
|
- [`@shapeshift-labs/frontier-lang-checker`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-checker): Checker and diagnostics for Frontier Lang semantic documents, including type symbols, effects, regions, lattice laws, CRDT metadata, and patch evidence.
|
|
@@ -476,6 +476,7 @@ The published Frontier package family is generated from one shared package catal
|
|
|
476
476
|
- [`@shapeshift-labs/frontier-lang-python`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-python): Python projection adapter for Frontier Lang semantic documents, including dataclasses, typed patch records, and action stubs.
|
|
477
477
|
- [`@shapeshift-labs/frontier-lang-c`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-c): C header projection adapter for Frontier Lang semantic documents, including structs and action prototypes.
|
|
478
478
|
- [`@shapeshift-labs/frontier-lang-swift`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-swift): Swift source-language importer package for Frontier Lang semantic documents, including package-level metadata, SwiftSyntax adapter helpers, native import results, and semantic sidecar generation for SwiftSyntax/SwiftParser-shaped syntax trees.
|
|
479
|
+
- [`@shapeshift-labs/frontier-lang-kotlin`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-kotlin): Kotlin PSI source-language importer package for Frontier Lang semantic documents, including package-level metadata, Kotlin PSI adapter helpers, native import results, and semantic sidecar generation for Kotlin PSI/KtFile-shaped syntax trees.
|
|
479
480
|
- [`@shapeshift-labs/frontier-lang-java`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-java): Java source-language importer package for Frontier Lang semantic documents, including package-level metadata, Java AST adapter helpers, native import results, and semantic sidecar generation for javac/JDT/JavaParser-shaped ASTs.
|
|
480
481
|
- [`@shapeshift-labs/frontier-lang-go`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-go): Go source-language importer package for Frontier Lang semantic documents, including package-level metadata, Go AST adapter helpers, native import results, and semantic sidecar generation for go/ast File or Package trees.
|
|
481
482
|
- [`@shapeshift-labs/frontier-lang-csharp`](https://www.npmjs.com/package/@shapeshift-labs/frontier-lang-csharp): C# Roslyn source-language importer package for Frontier Lang semantic documents, including package-level metadata, Roslyn adapter helpers, native import results, and semantic sidecar generation for SyntaxTree/SyntaxNode-shaped ASTs.
|
|
@@ -568,6 +569,7 @@ Package source repositories:
|
|
|
568
569
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-c`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-c)
|
|
569
570
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-compiler`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-compiler)
|
|
570
571
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-swift`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-swift)
|
|
572
|
+
- [`siliconjungle/-shapeshift-labs-frontier-lang-kotlin`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-kotlin)
|
|
571
573
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-java`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-java)
|
|
572
574
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-go`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-go)
|
|
573
575
|
- [`siliconjungle/-shapeshift-labs-frontier-lang-csharp`](https://github.com/siliconjungle/-shapeshift-labs-frontier-lang-csharp)
|
package/bench/smoke.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
createKotlinPsiNativeImporterAdapter,
|
|
11
11
|
createNativeImportCoverageMatrix,
|
|
12
12
|
createNativeParserAstFormatMatrix,
|
|
13
|
+
createNativeParserFeatureMatrix,
|
|
13
14
|
createProjectionTargetLossMatrix,
|
|
14
15
|
createNativeSourcePreservation,
|
|
15
16
|
createPythonAstNativeImporterAdapter,
|
|
@@ -20,6 +21,7 @@ import {
|
|
|
20
21
|
importExternalSemanticIndex,
|
|
21
22
|
importNativeSource,
|
|
22
23
|
projectNativeImportToSource,
|
|
24
|
+
queryNativeParserFeatureMatrix,
|
|
23
25
|
runNativeImporterAdapter,
|
|
24
26
|
summarizeNativeImportFeatureEvidence
|
|
25
27
|
} from '../dist/index.js';
|
|
@@ -121,6 +123,19 @@ const parserFormatMatrix = createNativeParserAstFormatMatrix({
|
|
|
121
123
|
});
|
|
122
124
|
const parserFormatMatrixDurationMs = performance.now() - parserFormatMatrixStart;
|
|
123
125
|
|
|
126
|
+
const parserFeatureMatrixStart = performance.now();
|
|
127
|
+
const parserFeatureMatrix = createNativeParserFeatureMatrix({
|
|
128
|
+
imports: nativeImportResults,
|
|
129
|
+
adapters: [estreeAdapter, createPythonAstNativeImporterAdapter(), createRustSynNativeImporterAdapter(), createClangAstNativeImporterAdapter(), createGoAstNativeImporterAdapter(), createJavaAstNativeImporterAdapter(), kotlinPsiAdapter, createCSharpRoslynNativeImporterAdapter(), createSwiftSyntaxNativeImporterAdapter()],
|
|
130
|
+
requiredFeatures: ['syntax', 'semantic', 'sourcePreservation']
|
|
131
|
+
});
|
|
132
|
+
const parserFeatureQuery = queryNativeParserFeatureMatrix(parserFeatureMatrix, {
|
|
133
|
+
language: 'javascript',
|
|
134
|
+
parser: 'estree',
|
|
135
|
+
requiredFeatures: ['syntax', 'semantic', 'sourcePreservation']
|
|
136
|
+
});
|
|
137
|
+
const parserFeatureMatrixDurationMs = performance.now() - parserFeatureMatrixStart;
|
|
138
|
+
|
|
124
139
|
const projectionMatrixStart = performance.now();
|
|
125
140
|
const projectionLossMatrix = createProjectionTargetLossMatrix({ imports: nativeImportResults });
|
|
126
141
|
const projectionMatrixDurationMs = performance.now() - projectionMatrixStart;
|
|
@@ -280,6 +295,11 @@ console.log(JSON.stringify({
|
|
|
280
295
|
parserFormatMatrixImports: parserFormatMatrix.summary.imports,
|
|
281
296
|
parserFormatMatrixNativeAstNodes: parserFormatMatrix.summary.nativeAstNodes,
|
|
282
297
|
parserFormatMatrixDurationMs: Number(parserFormatMatrixDurationMs.toFixed(2)),
|
|
298
|
+
parserFeatureMatrixParsers: parserFeatureMatrix.summary.parsers,
|
|
299
|
+
parserFeatureMatrixMergeReady: parserFeatureMatrix.summary.mergeReady,
|
|
300
|
+
parserFeatureMatrixSyntaxFull: parserFeatureMatrix.summary.byFeatureStatus.syntax?.full ?? 0,
|
|
301
|
+
parserFeatureQueryMergeReady: parserFeatureQuery.merge.mergeReady,
|
|
302
|
+
parserFeatureMatrixDurationMs: Number(parserFeatureMatrixDurationMs.toFixed(2)),
|
|
283
303
|
projectionMatrixLanguages: projectionLossMatrix.summary.languages,
|
|
284
304
|
projectionMatrixMissingAdapters: projectionLossMatrix.summary.missingAdapters,
|
|
285
305
|
projectionMatrixUnsupportedTargetFeatures: projectionLossMatrix.summary.unsupportedTargetFeatures,
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ import type {
|
|
|
18
18
|
SemanticPatchBundle,
|
|
19
19
|
SourceMapMappingRecord,
|
|
20
20
|
SourceMapRecord,
|
|
21
|
+
SourcePreservationLevel,
|
|
22
|
+
SourcePreservationRecord,
|
|
21
23
|
SourceSpan
|
|
22
24
|
} from '@shapeshift-labs/frontier-lang-kernel';
|
|
23
25
|
import type { Diagnostic } from '@shapeshift-labs/frontier-lang-checker';
|
|
@@ -318,6 +320,161 @@ export interface NativeParserAstFormatMatrixOptions {
|
|
|
318
320
|
readonly generatedAt?: number;
|
|
319
321
|
}
|
|
320
322
|
|
|
323
|
+
export type NativeParserFeatureCategory =
|
|
324
|
+
| 'syntax'
|
|
325
|
+
| 'semantic'
|
|
326
|
+
| 'type'
|
|
327
|
+
| 'controlFlow'
|
|
328
|
+
| 'macroMetaprogramming'
|
|
329
|
+
| 'sourcePreservation'
|
|
330
|
+
| string;
|
|
331
|
+
|
|
332
|
+
export type NativeParserFeatureCoverageStatus =
|
|
333
|
+
| 'full'
|
|
334
|
+
| 'partial'
|
|
335
|
+
| 'evidence-required'
|
|
336
|
+
| 'missing'
|
|
337
|
+
| 'blocked'
|
|
338
|
+
| 'not-applicable'
|
|
339
|
+
| string;
|
|
340
|
+
|
|
341
|
+
export interface NativeParserFeatureCoverage {
|
|
342
|
+
readonly category: NativeParserFeatureCategory;
|
|
343
|
+
readonly status: NativeParserFeatureCoverageStatus;
|
|
344
|
+
readonly readiness: SemanticMergeReadiness;
|
|
345
|
+
readonly mergeReady: boolean;
|
|
346
|
+
readonly supported: boolean;
|
|
347
|
+
readonly capabilities: Readonly<Record<string, unknown>>;
|
|
348
|
+
readonly gaps: readonly string[];
|
|
349
|
+
readonly lossKinds: Readonly<Record<string, number>>;
|
|
350
|
+
readonly reasons: readonly string[];
|
|
351
|
+
readonly notes: readonly string[];
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export interface NativeParserFeatureCoverageMap {
|
|
355
|
+
readonly syntax: NativeParserFeatureCoverage;
|
|
356
|
+
readonly semantic: NativeParserFeatureCoverage;
|
|
357
|
+
readonly type: NativeParserFeatureCoverage;
|
|
358
|
+
readonly controlFlow: NativeParserFeatureCoverage;
|
|
359
|
+
readonly macroMetaprogramming: NativeParserFeatureCoverage;
|
|
360
|
+
readonly sourcePreservation: NativeParserFeatureCoverage;
|
|
361
|
+
readonly [category: string]: NativeParserFeatureCoverage;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export interface NativeParserFeatureMergeAssessment {
|
|
365
|
+
readonly mergeReady: boolean;
|
|
366
|
+
readonly readiness: SemanticMergeReadiness;
|
|
367
|
+
readonly requiredFeatures: readonly NativeParserFeatureCategory[];
|
|
368
|
+
readonly minimumReadiness: SemanticMergeReadiness;
|
|
369
|
+
readonly blockingFeatures: readonly NativeParserFeatureCategory[];
|
|
370
|
+
readonly reviewFeatures: readonly NativeParserFeatureCategory[];
|
|
371
|
+
readonly reasons: readonly string[];
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export interface NativeParserFeatureParserRow {
|
|
375
|
+
readonly language: FrontierSourceLanguage | string;
|
|
376
|
+
readonly aliases: readonly string[];
|
|
377
|
+
readonly parser: string;
|
|
378
|
+
readonly parserFormat: string;
|
|
379
|
+
readonly parserAliases: readonly string[];
|
|
380
|
+
readonly parserAdapters: readonly string[];
|
|
381
|
+
readonly extensions: readonly string[];
|
|
382
|
+
readonly supportsLightweightScan: boolean;
|
|
383
|
+
readonly projectionTargets: readonly (FrontierCompileTarget | string)[];
|
|
384
|
+
readonly knownLossKinds: readonly NativeImportKnownLossKind[];
|
|
385
|
+
readonly defaultReadiness: SemanticMergeReadiness;
|
|
386
|
+
readonly notes: readonly string[];
|
|
387
|
+
readonly adapters: {
|
|
388
|
+
readonly total: number;
|
|
389
|
+
readonly ids: readonly string[];
|
|
390
|
+
readonly versions: readonly string[];
|
|
391
|
+
readonly exactness: readonly NativeImporterAdapterExactness[];
|
|
392
|
+
readonly coverage: NativeImporterAdapterCoverageAggregate;
|
|
393
|
+
};
|
|
394
|
+
readonly imports: {
|
|
395
|
+
readonly total: number;
|
|
396
|
+
readonly sourcePaths: readonly string[];
|
|
397
|
+
readonly readiness: SemanticMergeReadiness;
|
|
398
|
+
readonly readinessReasons: readonly string[];
|
|
399
|
+
readonly nativeAstNodes: number;
|
|
400
|
+
readonly symbols: number;
|
|
401
|
+
readonly references: number;
|
|
402
|
+
readonly types: number;
|
|
403
|
+
readonly controlFlow: number;
|
|
404
|
+
readonly sourceMaps: number;
|
|
405
|
+
readonly sourceMapMappings: number;
|
|
406
|
+
readonly losses: number;
|
|
407
|
+
readonly lossKinds: Readonly<Record<string, number>>;
|
|
408
|
+
readonly lossCategories: readonly NativeImportTaxonomyKind[];
|
|
409
|
+
readonly sourcePreservation: NativeImportSourcePreservationContract;
|
|
410
|
+
};
|
|
411
|
+
readonly features: NativeParserFeatureCoverageMap;
|
|
412
|
+
readonly merge: NativeParserFeatureMergeAssessment;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export interface NativeParserFeatureLanguageSummary {
|
|
416
|
+
readonly language: FrontierSourceLanguage | string;
|
|
417
|
+
readonly aliases: readonly string[];
|
|
418
|
+
readonly parserRows: number;
|
|
419
|
+
readonly parsers: readonly string[];
|
|
420
|
+
readonly imports: number;
|
|
421
|
+
readonly adapters: number;
|
|
422
|
+
readonly mergeReadyParsers: readonly string[];
|
|
423
|
+
readonly readiness: SemanticMergeReadiness;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export interface NativeParserFeatureMatrix {
|
|
427
|
+
readonly kind: 'frontier.lang.nativeParserFeatureMatrix';
|
|
428
|
+
readonly version: 1;
|
|
429
|
+
readonly generatedAt: number;
|
|
430
|
+
readonly parsers: readonly NativeParserFeatureParserRow[];
|
|
431
|
+
readonly languages: readonly NativeParserFeatureLanguageSummary[];
|
|
432
|
+
readonly summary: {
|
|
433
|
+
readonly languages: number;
|
|
434
|
+
readonly parsers: number;
|
|
435
|
+
readonly imports: number;
|
|
436
|
+
readonly adapters: number;
|
|
437
|
+
readonly mergeReady: number;
|
|
438
|
+
readonly byReadiness: Readonly<Record<SemanticMergeReadiness, number>>;
|
|
439
|
+
readonly byFeatureStatus: Readonly<Record<NativeParserFeatureCategory, Readonly<Record<NativeParserFeatureCoverageStatus, number>>>>;
|
|
440
|
+
readonly byFeatureReadiness: Readonly<Record<NativeParserFeatureCategory, Readonly<Record<SemanticMergeReadiness, number>>>>;
|
|
441
|
+
};
|
|
442
|
+
readonly metadata: {
|
|
443
|
+
readonly categories: readonly NativeParserFeatureCategory[];
|
|
444
|
+
readonly statuses: readonly NativeParserFeatureCoverageStatus[];
|
|
445
|
+
readonly requiredFeatures: readonly NativeParserFeatureCategory[];
|
|
446
|
+
readonly minimumReadiness: SemanticMergeReadiness;
|
|
447
|
+
readonly note: string;
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export interface NativeParserFeatureMatrixOptions {
|
|
452
|
+
readonly languages?: readonly NativeImportLanguageProfile[];
|
|
453
|
+
readonly imports?: readonly NativeSourceImportResult[];
|
|
454
|
+
readonly adapters?: readonly NativeImporterAdapter[];
|
|
455
|
+
readonly requiredFeatures?: readonly NativeParserFeatureCategory[];
|
|
456
|
+
readonly minimumReadiness?: SemanticMergeReadiness;
|
|
457
|
+
readonly includeEmptyParsers?: boolean;
|
|
458
|
+
readonly generatedAt?: number;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export interface NativeParserFeatureMatrixQuery {
|
|
462
|
+
readonly language?: FrontierSourceLanguage | string;
|
|
463
|
+
readonly parser?: string;
|
|
464
|
+
readonly requiredFeatures?: readonly NativeParserFeatureCategory[];
|
|
465
|
+
readonly minimumReadiness?: SemanticMergeReadiness;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export interface NativeParserFeatureMatrixQueryResult {
|
|
469
|
+
readonly kind: 'frontier.lang.nativeParserFeatureQuery';
|
|
470
|
+
readonly version: 1;
|
|
471
|
+
readonly found: boolean;
|
|
472
|
+
readonly language?: FrontierSourceLanguage | string;
|
|
473
|
+
readonly parser?: string;
|
|
474
|
+
readonly row?: NativeParserFeatureParserRow;
|
|
475
|
+
readonly merge: NativeParserFeatureMergeAssessment;
|
|
476
|
+
}
|
|
477
|
+
|
|
321
478
|
export interface NativeImporterAdapterCoverageAggregate {
|
|
322
479
|
readonly total: number;
|
|
323
480
|
readonly declared: Readonly<Record<string, number>>;
|
|
@@ -804,11 +961,31 @@ export interface SemanticImportSidecarImportEntry {
|
|
|
804
961
|
readonly symbolCount: number;
|
|
805
962
|
readonly sourceMapCount: number;
|
|
806
963
|
readonly sourceMapMappingCount: number;
|
|
964
|
+
readonly sourcePreservationRecordCount: number;
|
|
965
|
+
readonly sourcePreservationLevels: readonly SourcePreservationLevel[];
|
|
807
966
|
readonly readiness: SemanticMergeReadiness;
|
|
808
967
|
readonly emptySemanticIndex: boolean;
|
|
809
968
|
readonly regionTaxonomy?: SemanticImportRegionTaxonomySummary;
|
|
810
969
|
}
|
|
811
970
|
|
|
971
|
+
export interface SemanticImportSidecarSourcePreservationRecord {
|
|
972
|
+
readonly id: string;
|
|
973
|
+
readonly level: SourcePreservationLevel;
|
|
974
|
+
readonly precision?: string;
|
|
975
|
+
readonly sourceMapId?: string;
|
|
976
|
+
readonly sourceMapMappingId?: string;
|
|
977
|
+
readonly semanticNodeId?: string;
|
|
978
|
+
readonly nativeSourceId?: string;
|
|
979
|
+
readonly nativeAstNodeId?: string;
|
|
980
|
+
readonly semanticSymbolId?: string;
|
|
981
|
+
readonly semanticOccurrenceId?: string;
|
|
982
|
+
readonly sourcePath?: string;
|
|
983
|
+
readonly generatedPath?: string;
|
|
984
|
+
readonly lossIds: readonly string[];
|
|
985
|
+
readonly evidenceIds: readonly string[];
|
|
986
|
+
readonly reasons: readonly string[];
|
|
987
|
+
}
|
|
988
|
+
|
|
812
989
|
export interface SemanticImportSidecar {
|
|
813
990
|
readonly kind: 'frontier.lang.semanticImportSidecar';
|
|
814
991
|
readonly version: 1;
|
|
@@ -824,6 +1001,19 @@ export interface SemanticImportSidecar {
|
|
|
824
1001
|
readonly mappings: number;
|
|
825
1002
|
readonly ids: readonly string[];
|
|
826
1003
|
};
|
|
1004
|
+
readonly sourcePreservation: {
|
|
1005
|
+
readonly total: number;
|
|
1006
|
+
readonly ids: readonly string[];
|
|
1007
|
+
readonly byLevel: Readonly<Record<string, number>>;
|
|
1008
|
+
readonly exact: number;
|
|
1009
|
+
readonly declaration: number;
|
|
1010
|
+
readonly estimated: number;
|
|
1011
|
+
readonly blocked: number;
|
|
1012
|
+
readonly sourcePaths: readonly string[];
|
|
1013
|
+
readonly sourceMapIds: readonly string[];
|
|
1014
|
+
readonly sourceMapMappingIds: readonly string[];
|
|
1015
|
+
readonly records: readonly SemanticImportSidecarSourcePreservationRecord[];
|
|
1016
|
+
};
|
|
827
1017
|
readonly patchHints: readonly SemanticImportPatchHint[];
|
|
828
1018
|
readonly mergeCandidates: readonly {
|
|
829
1019
|
readonly id?: string;
|
|
@@ -852,6 +1042,7 @@ export interface SemanticImportSidecar {
|
|
|
852
1042
|
readonly ownershipRegions: number;
|
|
853
1043
|
readonly regionKinds: number;
|
|
854
1044
|
readonly sourceMapMappings: number;
|
|
1045
|
+
readonly sourcePreservationRecords: number;
|
|
855
1046
|
readonly readiness: SemanticMergeReadiness;
|
|
856
1047
|
readonly emptySemanticIndex: boolean;
|
|
857
1048
|
};
|
|
@@ -1237,10 +1428,14 @@ export interface ImportNativeSourceOptions {
|
|
|
1237
1428
|
readonly metadata?: Record<string, unknown>;
|
|
1238
1429
|
}
|
|
1239
1430
|
|
|
1240
|
-
export type NativeSourceImportResult = LanguageImportResult & {
|
|
1431
|
+
export type NativeSourceImportResult = Omit<LanguageImportResult, 'metadata'> & {
|
|
1241
1432
|
readonly nativeSource: NativeSourceNode;
|
|
1242
1433
|
readonly semanticIndex?: SemanticIndexRecord;
|
|
1243
1434
|
readonly universalAst: FrontierUniversalAstEnvelope;
|
|
1435
|
+
readonly metadata?: Record<string, unknown> & {
|
|
1436
|
+
readonly sourcePreservationRecords?: readonly SourcePreservationRecord[];
|
|
1437
|
+
readonly kernelSourcePreservationRecords?: readonly SourcePreservationRecord[];
|
|
1438
|
+
};
|
|
1244
1439
|
};
|
|
1245
1440
|
|
|
1246
1441
|
export type ExternalSemanticIndexFormat =
|
|
@@ -1942,6 +2137,8 @@ export declare const NativeImportTaxonomyKinds: readonly NativeImportTaxonomyKin
|
|
|
1942
2137
|
export declare const NativeImportLossKinds: readonly NativeImportKnownLossKind[];
|
|
1943
2138
|
export declare const NativeImportRegionTaxonomyKinds: readonly NativeImportRegionTaxonomyKind[];
|
|
1944
2139
|
export declare const ProjectionTargetLossClasses: readonly ProjectionTargetLossClass[];
|
|
2140
|
+
export declare const NativeParserFeatureCategories: readonly NativeParserFeatureCategory[];
|
|
2141
|
+
export declare const NativeParserFeatureCoverageStatuses: readonly NativeParserFeatureCoverageStatus[];
|
|
1945
2142
|
export declare const NativeImportReadinessBySeverity: Readonly<Record<NativeImportLossSummary['highestSeverity'], SemanticMergeReadiness>>;
|
|
1946
2143
|
export declare const NativeImportFeatureEvidencePolicies: Readonly<Record<string, NativeImportFeatureEvidencePolicy>>;
|
|
1947
2144
|
export declare const NativeImportLanguageProfiles: readonly NativeImportLanguageProfile[];
|
|
@@ -1965,6 +2162,8 @@ export declare function classifyNativeImportRoundtripReadiness(importResult: Nat
|
|
|
1965
2162
|
export declare function createNativeImportCoverageMatrix(options?: NativeImportCoverageMatrixOptions): NativeImportCoverageMatrix;
|
|
1966
2163
|
export declare function getNativeParserAstFormatProfile(format?: string): NativeParserAstFormatProfile | undefined;
|
|
1967
2164
|
export declare function createNativeParserAstFormatMatrix(options?: NativeParserAstFormatMatrixOptions): NativeParserAstFormatMatrix;
|
|
2165
|
+
export declare function createNativeParserFeatureMatrix(options?: NativeParserFeatureMatrixOptions): NativeParserFeatureMatrix;
|
|
2166
|
+
export declare function queryNativeParserFeatureMatrix(matrixOrOptions?: NativeParserFeatureMatrix | NativeParserFeatureMatrixOptions, query?: NativeParserFeatureMatrixQuery): NativeParserFeatureMatrixQueryResult;
|
|
1968
2167
|
export declare function createProjectionTargetLossMatrix(options?: ProjectionTargetLossMatrixOptions): ProjectionTargetLossMatrix;
|
|
1969
2168
|
export declare function createNativeSourcePreservation(options: CreateNativeSourcePreservationOptions): NativeSourcePreservation;
|
|
1970
2169
|
export declare function createSemanticImportSidecar(importResult: NativeSourceImportResult | NativeProjectImportResult, options?: SemanticImportSidecarOptions): SemanticImportSidecar;
|