@astrale-os/sdk 0.5.0-beta.31 → 0.5.0-beta.32
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.
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { schema } from '../../platform/schema/index.js';
|
|
2
2
|
import type { FrontendRoute, FrontendRouteInput } from './route.js';
|
|
3
3
|
import type { FrontendSource } from './source.js';
|
|
4
|
-
type
|
|
5
|
-
export type ViewName<Schema extends schema.DomainSchema> = SchemaInput<Schema> extends {
|
|
6
|
-
readonly views?: infer Views;
|
|
7
|
-
} ? Extract<keyof NonNullable<Views>, string> : never;
|
|
4
|
+
export type ViewName<Schema extends schema.DomainSchema> = Extract<keyof schema.DomainOf<Schema>['views'], string>;
|
|
8
5
|
export type FrontendRoutes<Schema extends schema.DomainSchema> = Readonly<Record<ViewName<Schema>, FrontendRoute>>;
|
|
9
6
|
export type FrontendRouteInputs<Schema extends schema.DomainSchema> = Readonly<Partial<Record<ViewName<Schema>, FrontendRouteInput>>>;
|
|
10
7
|
export interface FrontendInput<Schema extends schema.DomainSchema> {
|
|
@@ -20,4 +17,3 @@ export interface Frontend<Schema extends schema.DomainSchema = schema.DomainSche
|
|
|
20
17
|
readonly routes: FrontendRoutes<Schema>;
|
|
21
18
|
readonly entrypoint: ViewName<Schema>;
|
|
22
19
|
}
|
|
23
|
-
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** Canonical Schema authoring, compilation, loading, and resolved Domain surface. */
|
|
2
2
|
export * from '@astrale-os/kernel-dsl/v1';
|
|
3
3
|
export { patterns } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
4
|
-
export type { CallablePolicyContext, CoreNode, DefinedSchema, DirectedEdgeClass,
|
|
4
|
+
export type { CallablePolicyBuilder, CallablePolicyContext, CallableProjection, AuthoredMethodProjection, AuthoredPropertyProjection, ClassIdentityProjection, ClassOwnerProjection, CoreEdge, CoreEndpoint, CoreNode, DefinedSchema, DirectedEdgeClass, ClassReferenceProjection, ClassProjection, FunctionProjection, EdgeClass, Function, Method, MethodProjection, Lazy, NodeClass, Policy, Property, PropertyProjection, ResolvedDomainOfInput, View, } from '@astrale-os/kernel-dsl/v1/builder';
|
|
5
5
|
export type { Array, Object, Value } from '@astrale-os/kernel-dsl/value';
|
|
6
|
-
export type { NodeClassDefinition, PolicyCheckObject } from '@astrale-os/kernel-dsl/v1/language';
|
|
6
|
+
export type { ClassKind, DirectedEdgeContract, EdgeClassPolicies, NodeClassDefinition, PolicyCheckObject, PropertyFacet, UndirectedEdgeContract, } from '@astrale-os/kernel-dsl/v1/language';
|
|
7
7
|
export type { DomainSchema } from '@astrale-os/kernel-dsl/v1/schema';
|
|
8
8
|
/** Kernel-owned Schema values used by authored product Schemas and graph operations. */
|
|
9
9
|
export { AuthorityOperationOrder, AuthorityOperations, AuthorityRelations, K, KernelRootFunctions, KernelSchema, OperationCore, operationOf, } from '@astrale-os/kernel-core/schema';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CallablePolicyContext,
|
|
2
|
-
import type { NodeClassDefinition, PolicyCheckObject } from '@astrale-os/kernel-dsl/v1/language';
|
|
3
|
-
import type { CallablePolicyContext as FacadeCallablePolicyContext, DirectedEdgeClass as FacadeDirectedEdgeClass,
|
|
1
|
+
import type { AuthoredMethodProjection, CallablePolicyBuilder, CallablePolicyContext, ClassIdentityProjection, ClassOwnerProjection, ClassReferenceProjection, DirectedEdgeClass, Function, Method, NodeClass, Policy, Property, ResolvedDomainOfInput, View } from '@astrale-os/kernel-dsl/v1/builder';
|
|
2
|
+
import type { ClassKind, DirectedEdgeContract, EdgeClassPolicies, NodeClassDefinition, PolicyCheckObject, PropertyFacet, UndirectedEdgeContract } from '@astrale-os/kernel-dsl/v1/language';
|
|
3
|
+
import type { AuthoredMethodProjection as FacadeAuthoredMethodProjection, CallablePolicyBuilder as FacadeCallablePolicyBuilder, CallablePolicyContext as FacadeCallablePolicyContext, ClassIdentityProjection as FacadeClassIdentityProjection, ClassOwnerProjection as FacadeClassOwnerProjection, ClassKind as FacadeClassKind, ClassReferenceProjection as FacadeClassReferenceProjection, DirectedEdgeContract as FacadeDirectedEdgeContract, DirectedEdgeClass as FacadeDirectedEdgeClass, EdgeClassPolicies as FacadeEdgeClassPolicies, Function as FacadeFunction, Method as FacadeMethod, NodeClass as FacadeNodeClass, NodeClassDefinition as FacadeNodeClassDefinition, Policy as FacadePolicy, PolicyCheckObject as FacadePolicyCheckObject, Property as FacadeProperty, PropertyFacet as FacadePropertyFacet, ResolvedDomainOfInput as FacadeResolvedDomainOfInput, View as FacadeView, UndirectedEdgeContract as FacadeUndirectedEdgeContract } from '../../../platform/schema/index.js';
|
|
4
4
|
type Same<Left, Right> = [Left] extends [Right] ? ([Right] extends [Left] ? true : false) : false;
|
|
5
5
|
type Assert<Value extends true> = Value;
|
|
6
|
-
export type DeclarationFacadeChecks = Assert<Same<FacadeCallablePolicyContext, CallablePolicyContext>> | Assert<Same<FacadeDirectedEdgeClass, DirectedEdgeClass>> | Assert<Same<
|
|
6
|
+
export type DeclarationFacadeChecks = Assert<Same<FacadeAuthoredMethodProjection, AuthoredMethodProjection>> | Assert<Same<FacadeCallablePolicyBuilder, CallablePolicyBuilder>> | Assert<Same<FacadeCallablePolicyContext, CallablePolicyContext>> | Assert<Same<FacadeClassIdentityProjection, ClassIdentityProjection>> | Assert<Same<FacadeClassOwnerProjection, ClassOwnerProjection>> | Assert<Same<FacadeClassKind, ClassKind>> | Assert<Same<FacadeClassReferenceProjection, ClassReferenceProjection>> | Assert<Same<FacadeDirectedEdgeContract, DirectedEdgeContract>> | Assert<Same<FacadeDirectedEdgeClass, DirectedEdgeClass>> | Assert<Same<FacadeEdgeClassPolicies, EdgeClassPolicies>> | Assert<Same<FacadeResolvedDomainOfInput<string, never>, ResolvedDomainOfInput<string, never>>> | Assert<Same<FacadeFunction, Function>> | Assert<Same<FacadeMethod, Method>> | Assert<Same<FacadeNodeClass, NodeClass>> | Assert<Same<FacadeNodeClassDefinition, NodeClassDefinition>> | Assert<Same<FacadePolicy, Policy>> | Assert<Same<FacadePolicyCheckObject, PolicyCheckObject>> | Assert<Same<FacadeProperty, Property>> | Assert<Same<FacadePropertyFacet, PropertyFacet>> | Assert<Same<FacadeUndirectedEdgeContract, UndirectedEdgeContract>> | Assert<Same<FacadeView, View>>;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/sdk",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.32",
|
|
4
4
|
"description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -210,11 +210,11 @@
|
|
|
210
210
|
"./package.json": "./package.json"
|
|
211
211
|
},
|
|
212
212
|
"dependencies": {
|
|
213
|
-
"@astrale-os/kernel-client": "0.6.0-beta.
|
|
214
|
-
"@astrale-os/kernel-core": "0.9.0-beta.
|
|
215
|
-
"@astrale-os/kernel-dsl": "0.2.0-beta.
|
|
216
|
-
"@astrale-os/kernel-protocol": "0.5.0-beta.
|
|
217
|
-
"@astrale-os/kernel-server": "0.5.0-beta.
|
|
213
|
+
"@astrale-os/kernel-client": "0.6.0-beta.15",
|
|
214
|
+
"@astrale-os/kernel-core": "0.9.0-beta.13",
|
|
215
|
+
"@astrale-os/kernel-dsl": "0.2.0-beta.10",
|
|
216
|
+
"@astrale-os/kernel-protocol": "0.5.0-beta.13",
|
|
217
|
+
"@astrale-os/kernel-server": "0.5.0-beta.14",
|
|
218
218
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
219
219
|
"hono": "^4.13.2",
|
|
220
220
|
"jose": "^6.2.9",
|
|
@@ -294,13 +294,7 @@
|
|
|
294
294
|
"check:linter-policy": "node scripts/sync-domain-policy.mjs --check",
|
|
295
295
|
"check:issues": "issues/.cli/issues check && node --test issues/.cli/history.test.mjs && node --test issues/.cli/view-server.test.mjs && node --test issues/.view/contract.test.mjs",
|
|
296
296
|
"qualify:publications": "node scripts/qualify-publications.mjs",
|
|
297
|
-
"
|
|
298
|
-
"
|
|
299
|
-
"redesign:sync-paths": "node scripts/sdk-v1-redesign/sync-ledger-paths.mjs",
|
|
300
|
-
"redesign:check": "node scripts/sdk-v1-redesign/check.mjs --phase preparation",
|
|
301
|
-
"redesign:check:target": "node scripts/sdk-v1-redesign/check.mjs --phase target",
|
|
302
|
-
"redesign:qualify:target": "node scripts/sdk-v1-redesign/qualify.mjs",
|
|
303
|
-
"redesign:review-tests": "node scripts/sdk-v1-redesign/review-tests.mjs",
|
|
304
|
-
"redesign:test": "node --test scripts/sdk-v1-redesign/*.test.mjs"
|
|
297
|
+
"qualify": "node scripts/qualify.mjs",
|
|
298
|
+
"sync:linter-policy": "node scripts/sync-domain-policy.mjs"
|
|
305
299
|
}
|
|
306
300
|
}
|