@astrale-os/kernel-dsl 0.2.0-beta.34 → 0.2.0-beta.36
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/dist/v1/schema/compatibility/compare.d.ts +57 -0
- package/dist/v1/schema/compatibility/compare.js +166 -0
- package/dist/v1/schema/compatibility/context.d.ts +15 -0
- package/dist/v1/schema/compatibility/context.js +43 -0
- package/dist/v1/schema/compatibility/coordinate.d.ts +44 -0
- package/dist/v1/schema/compatibility/coordinate.js +42 -0
- package/dist/v1/schema/compatibility/diff.d.ts +12 -0
- package/dist/v1/schema/compatibility/diff.js +39 -0
- package/dist/v1/schema/compatibility/fields.d.ts +180 -0
- package/dist/v1/schema/compatibility/fields.js +83 -0
- package/dist/v1/schema/compatibility/footprint.d.ts +25 -0
- package/dist/v1/schema/compatibility/footprint.js +263 -0
- package/dist/v1/schema/compatibility/index.d.ts +7 -0
- package/dist/v1/schema/compatibility/index.js +3 -0
- package/dist/v1/schema/compatibility/meaning.d.ts +39 -39
- package/dist/v1/schema/compatibility/meaning.js +102 -516
- package/dist/v1/schema/fingerprint.d.ts +2 -0
- package/dist/v1/schema/fingerprint.js +1 -0
- package/dist/v1/schema/index.d.ts +2 -2
- package/dist/v1/schema/index.js +1 -1
- package/dist/v1/schema/resolution/origins.d.ts +2 -0
- package/dist/v1/schema/resolution/origins.js +6 -2
- package/package.json +5 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { callableFingerprint } from './compatibility/meaning.js';
|
|
@@ -11,8 +11,8 @@ export type { SchemaDiagnosticCode as DiagnosticCode } from './diagnostic.js';
|
|
|
11
11
|
export { acceptDomainSchema as accept } from './admission/accept.js';
|
|
12
12
|
export { decodeDomainSchema as decode, encodeDomainSchema as encode, serializeDomainSchema as serialize, } from './codec/schema.js';
|
|
13
13
|
export { revisionOfDomainSchema as revision } from './canonical/revision.js';
|
|
14
|
-
export { compareDependencyMeaning, compareMemberMeaning } from './compatibility/
|
|
15
|
-
export type { DependencyMeaningChange, DependencyMeaningChangeKind, DependencyMeaningComparison, DependencyMeaningLevel, MeaningFingerprint, } from './compatibility/
|
|
14
|
+
export { ANNOTATION_KEYWORDS, FIELD_ROLES, callableFingerprint, compareDependencyMeaning, compareMemberMeaning, describeMeaningChange, footprintOf, meaningOf, } from './compatibility/index.js';
|
|
15
|
+
export type { DependencyMeaningChange, DependencyMeaningChangeKind, DependencyMeaningComparison, DependencyMeaningLevel, FieldRole, FootprintEntry, MeaningDifference, MeaningFingerprint, } from './compatibility/index.js';
|
|
16
16
|
export { header } from './codec/header.js';
|
|
17
17
|
export { DOMAIN_FORMAT as FORMAT, DOMAIN_VERSION as VERSION } from './model/format.js';
|
|
18
18
|
export { compile, load } from '../compiled/index.js';
|
package/dist/v1/schema/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export const resolve = resolveDomainSchema;
|
|
|
4
4
|
export { acceptDomainSchema as accept } from './admission/accept.js';
|
|
5
5
|
export { decodeDomainSchema as decode, encodeDomainSchema as encode, serializeDomainSchema as serialize, } from './codec/schema.js';
|
|
6
6
|
export { revisionOfDomainSchema as revision } from './canonical/revision.js';
|
|
7
|
-
export { compareDependencyMeaning, compareMemberMeaning } from './compatibility/
|
|
7
|
+
export { ANNOTATION_KEYWORDS, FIELD_ROLES, callableFingerprint, compareDependencyMeaning, compareMemberMeaning, describeMeaningChange, footprintOf, meaningOf, } from './compatibility/index.js';
|
|
8
8
|
export { header } from './codec/header.js';
|
|
9
9
|
export { DOMAIN_FORMAT as FORMAT, DOMAIN_VERSION as VERSION } from './model/format.js';
|
|
10
10
|
export { compile, load } from '../compiled/index.js';
|
|
@@ -21,5 +21,7 @@ export declare function collectEndpointRefs(declaration: Extract<ClassDefinition
|
|
|
21
21
|
readonly kind: 'edge';
|
|
22
22
|
}>, add: ReferenceCollector): void;
|
|
23
23
|
export declare function collectCallableRefs(declaration: FunctionDefinition | MethodDefinition, add: ReferenceCollector): void;
|
|
24
|
+
/** References inside the contract a caller compiles against: the input and output value schemas. */
|
|
25
|
+
export declare function collectCallableContractRefs(declaration: Pick<FunctionDefinition | MethodDefinition, 'input' | 'output'>, add: ReferenceCollector): void;
|
|
24
26
|
export declare function collectPolicyDefinitionRefs(declaration: PolicyDefinition, add: ReferenceCollector): void;
|
|
25
27
|
export declare function collectValueDefinitionRefs(schema: JsonSchema, add: ReferenceCollector): void;
|
|
@@ -66,13 +66,17 @@ export function collectEndpointRefs(declaration, add) {
|
|
|
66
66
|
endpoints[1].accepts.forEach((ref) => add(ref, 'endpoint'));
|
|
67
67
|
}
|
|
68
68
|
export function collectCallableRefs(declaration, add) {
|
|
69
|
+
collectCallableContractRefs(declaration, add);
|
|
70
|
+
if (declaration.policy !== undefined)
|
|
71
|
+
collectPolicyCheckRefs(declaration.policy, add);
|
|
72
|
+
}
|
|
73
|
+
/** References inside the contract a caller compiles against: the input and output value schemas. */
|
|
74
|
+
export function collectCallableContractRefs(declaration, add) {
|
|
69
75
|
collectValueDefinitionRefs(declaration.input, add);
|
|
70
76
|
if (declaration.output.mode === 'value')
|
|
71
77
|
collectValueDefinitionRefs(declaration.output.schema, add);
|
|
72
78
|
if (declaration.output.mode === 'stream')
|
|
73
79
|
collectValueDefinitionRefs(declaration.output.item, add);
|
|
74
|
-
if (declaration.policy !== undefined)
|
|
75
|
-
collectPolicyCheckRefs(declaration.policy, add);
|
|
76
80
|
}
|
|
77
81
|
export function collectPolicyDefinitionRefs(declaration, add) {
|
|
78
82
|
collectPolicyExpressionRefs(declaration.expression, add);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/kernel-dsl",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.36",
|
|
4
4
|
"description": "Astrale Kernel DSL - Schema authoring, inference, and IR serialization",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -67,6 +67,10 @@
|
|
|
67
67
|
"types": "./dist/v1/schema/index.d.ts",
|
|
68
68
|
"import": "./dist/v1/schema/index.js"
|
|
69
69
|
},
|
|
70
|
+
"./v1/schema/fingerprint": {
|
|
71
|
+
"types": "./dist/v1/schema/fingerprint.d.ts",
|
|
72
|
+
"import": "./dist/v1/schema/fingerprint.js"
|
|
73
|
+
},
|
|
70
74
|
"./v1/schema/revision": {
|
|
71
75
|
"types": "./dist/v1/schema/revision.d.ts",
|
|
72
76
|
"import": "./dist/v1/schema/revision.js"
|