@astrale-os/sdk 0.5.0-beta.120 → 0.5.0-beta.122
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/CHANGELOG.md +15 -0
- package/dist/application/mutation/authoring/builder.js +2 -2
- package/dist/application/mutation/authoring/endpoint.d.ts +3 -3
- package/dist/application/mutation/index.d.ts +1 -0
- package/dist/application/requirements/core.d.ts +1 -0
- package/dist/deployment/build/compile.js +3 -1
- package/dist/platform/graph/alias.d.ts +6 -0
- package/dist/platform/graph/alias.js +6 -0
- package/dist/platform/graph/document/index.d.ts +2 -1
- package/dist/platform/graph/document/index.js +2 -1
- package/dist/platform/graph/index.d.ts +2 -1
- package/dist/platform/graph/index.js +2 -1
- package/dist/testing/dataset/references.d.ts +5 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.0-beta.122](https://github.com/astrale-os/sdk/compare/sdk-v0.5.0-beta.121...sdk-v0.5.0-beta.122) (2026-09-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deployment:** allow local Core Function capabilities ([#445](https://github.com/astrale-os/sdk/issues/445)) ([4de6191](https://github.com/astrale-os/sdk/commit/4de619141aaa80ab424bcc4ed858fede87ecd131))
|
|
9
|
+
* **graph:** preserve portable local alias declarations ([#446](https://github.com/astrale-os/sdk/issues/446)) ([ec485bc](https://github.com/astrale-os/sdk/commit/ec485bce566cd404f3452e1cf3f782f26615ec08))
|
|
10
|
+
|
|
11
|
+
## [0.5.0-beta.121](https://github.com/astrale-os/sdk/compare/sdk-v0.5.0-beta.120...sdk-v0.5.0-beta.121) (2026-09-07)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **graph:** expose local aliases for SDK authoring ([#443](https://github.com/astrale-os/sdk/issues/443)) ([16dffa3](https://github.com/astrale-os/sdk/commit/16dffa3b904899f9aba53aac22676b53ffbbdae3))
|
|
17
|
+
|
|
3
18
|
## [0.5.0-beta.120](https://github.com/astrale-os/sdk/compare/sdk-v0.5.0-beta.119...sdk-v0.5.0-beta.120) (2026-09-07)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LocalBinding } from '@astrale-os/kernel-core/graph/graph';
|
|
2
1
|
import { ClassKey } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
2
|
+
import { LocalAlias } from '../../../platform/graph/alias.js';
|
|
3
3
|
import { endpoint, existingEndpoint } from './endpoint.js';
|
|
4
4
|
import { precondition } from './precondition.js';
|
|
5
5
|
import { conditions, delta, properties } from './properties.js';
|
|
@@ -33,7 +33,7 @@ export function richMutationBuilder(core) {
|
|
|
33
33
|
expect: expectation,
|
|
34
34
|
createNode(input) {
|
|
35
35
|
const created = core.createNode({
|
|
36
|
-
as:
|
|
36
|
+
as: LocalAlias(input.as),
|
|
37
37
|
class: classKey(input.class),
|
|
38
38
|
...(input.props === undefined ? {} : { props: properties(input.class, input.props) }),
|
|
39
39
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { LocalBinding } from '@astrale-os/kernel-core/graph/graph';
|
|
2
1
|
import type { NodeId } from '@astrale-os/kernel-core/graph/node';
|
|
3
2
|
import type { NodeTarget } from '@astrale-os/kernel-core/path';
|
|
4
3
|
import type { ResolvedClass } from '@astrale-os/kernel-dsl/v1';
|
|
4
|
+
import type { LocalAlias } from '../../../platform/graph/alias.js';
|
|
5
5
|
export interface CreatedNode<Class extends ResolvedClass<'node'> = ResolvedClass<'node'>> {
|
|
6
|
-
readonly created:
|
|
6
|
+
readonly created: LocalAlias;
|
|
7
7
|
readonly class: Class;
|
|
8
8
|
}
|
|
9
9
|
export type ExistingEndpoint = NodeTarget | Readonly<{
|
|
@@ -11,6 +11,6 @@ export type ExistingEndpoint = NodeTarget | Readonly<{
|
|
|
11
11
|
}>;
|
|
12
12
|
export type MutationEndpoint = ExistingEndpoint | CreatedNode;
|
|
13
13
|
export declare function endpoint(input: MutationEndpoint): NodeTarget | {
|
|
14
|
-
readonly created:
|
|
14
|
+
readonly created: LocalAlias;
|
|
15
15
|
};
|
|
16
16
|
export declare function existingEndpoint(input: ExistingEndpoint): NodeTarget;
|
|
@@ -5,3 +5,4 @@ export type { Mutation, MutationDefinition, MutationInputOf, MutationOutputOf }
|
|
|
5
5
|
export type { CreatedNode, EdgeSelector, ExistingEndpoint, MutationEndpoint, QueryPrecondition, RichMutationBuilder, RichPropertyConditions, RichPropertyDelta, RichPropertyInput, RichPropertyName, } from './authoring/index.js';
|
|
6
6
|
/** Canonical low-level Mutation documents remain available as the explicit escape hatch. */
|
|
7
7
|
export * from '@astrale-os/kernel-core/graph/mutate';
|
|
8
|
+
export type { LocalAlias, LocalBinding } from '../../platform/graph/alias.js';
|
|
@@ -6,6 +6,7 @@ import type { CoreRequirement } from './requirement.js';
|
|
|
6
6
|
/** Capabilities assigned to one installation-owned local Core Identity. */
|
|
7
7
|
export interface CoreRequirementInput {
|
|
8
8
|
readonly subject: Pick<ResolvedCoreDefinition, 'ref'>;
|
|
9
|
+
/** Exact executable local callables or direct dependency callables; does not bypass Policies. */
|
|
9
10
|
readonly functions?: readonly FunctionRequirementTarget[];
|
|
10
11
|
readonly classes?: readonly ClassRequirementInput[];
|
|
11
12
|
readonly authority?: AuthorityRequirementsInput;
|
|
@@ -60,7 +60,9 @@ function compileRequirements(domain, input, sourceBundle) {
|
|
|
60
60
|
throw new TypeError('Core capability subject must name one local Core Node.');
|
|
61
61
|
}
|
|
62
62
|
for (const key of requirement.functions) {
|
|
63
|
-
|
|
63
|
+
if (Key.origin(key) !== domain.origin) {
|
|
64
|
+
requireDirectDependency(domain, key, 'Core capability Function');
|
|
65
|
+
}
|
|
64
66
|
if (domain.callable(key) === undefined) {
|
|
65
67
|
throw new TypeError(`Core capability Function ${key} is absent from the dependency closure.`);
|
|
66
68
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Graph-local names retain the canonical Kernel type and constructor identity. */
|
|
2
|
+
export { LocalBinding as LocalAlias, isLocalBinding as isLocalAlias, } from '@astrale-os/kernel-core/graph/graph';
|
|
3
|
+
/** @deprecated Use LocalAlias. */
|
|
4
|
+
export { LocalBinding } from '@astrale-os/kernel-core/graph/graph';
|
|
5
|
+
/** @deprecated Use isLocalAlias. */
|
|
6
|
+
export { isLocalBinding } from '@astrale-os/kernel-core/graph/graph';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Graph-local names retain the canonical Kernel type and constructor identity. */
|
|
2
|
+
export { LocalBinding as LocalAlias, isLocalBinding as isLocalAlias, } from '@astrale-os/kernel-core/graph/graph';
|
|
3
|
+
/** @deprecated Use LocalAlias. */
|
|
4
|
+
export { LocalBinding } from '@astrale-os/kernel-core/graph/graph';
|
|
5
|
+
/** @deprecated Use isLocalAlias. */
|
|
6
|
+
export { isLocalBinding } from '@astrale-os/kernel-core/graph/graph';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Curated aggregate over canonical graph values. */
|
|
2
|
-
export { GraphData, GraphDataDecodeError, GraphSpec, GraphSpecDecodeError,
|
|
2
|
+
export { GraphData, GraphDataDecodeError, GraphSpec, GraphSpecDecodeError, } from '@astrale-os/kernel-core/graph/graph';
|
|
3
|
+
export { LocalAlias, isLocalAlias, LocalBinding, isLocalBinding } from './alias.js';
|
|
3
4
|
export type { AnonymousNodeSpec, GraphDataJson, GraphSpecEdge, GraphSpecEndpoint, GraphSpecJson, GraphSpecNode, } from '@astrale-os/kernel-core/graph/graph';
|
|
4
5
|
export * from './edge/index.js';
|
|
5
6
|
export * from './node/index.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Curated aggregate over canonical graph values. */
|
|
2
|
-
export { GraphData, GraphDataDecodeError, GraphSpec, GraphSpecDecodeError,
|
|
2
|
+
export { GraphData, GraphDataDecodeError, GraphSpec, GraphSpecDecodeError, } from '@astrale-os/kernel-core/graph/graph';
|
|
3
|
+
export { LocalAlias, isLocalAlias, LocalBinding, isLocalBinding } from './alias.js';
|
|
3
4
|
export * from './edge/index.js';
|
|
4
5
|
export * from './node/index.js';
|
|
5
6
|
export * from './path/index.js';
|
|
@@ -2,8 +2,11 @@ import type { Graph } from '../../platform/graph/document/index.js';
|
|
|
2
2
|
import type { Node } from '../../platform/graph/node/index.js';
|
|
3
3
|
import type { PolicyObjectRef, schema } from '../../platform/schema/index.js';
|
|
4
4
|
import type { DatasetReferences } from './dataset.js';
|
|
5
|
-
|
|
6
|
-
readonly
|
|
5
|
+
type DatasetProjectionRef = Exclude<PolicyObjectRef, {
|
|
6
|
+
readonly kind: 'method';
|
|
7
|
+
}>;
|
|
8
|
+
export type DatasetReferenceInput = DatasetProjectionRef | {
|
|
9
|
+
readonly ref: DatasetProjectionRef;
|
|
7
10
|
};
|
|
8
11
|
type ReferenceNode = Pick<Node, 'class' | 'props'>;
|
|
9
12
|
/** Symbolic projection supplies facts; only an explicit Dataset reference supplies identity. */
|
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.122",
|
|
4
4
|
"description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -233,11 +233,11 @@
|
|
|
233
233
|
"registry": "https://registry.npmjs.org/"
|
|
234
234
|
},
|
|
235
235
|
"dependencies": {
|
|
236
|
-
"@astrale-os/kernel-client": "0.6.0-beta.
|
|
237
|
-
"@astrale-os/kernel-core": "0.9.0-beta.
|
|
238
|
-
"@astrale-os/kernel-dsl": "0.2.0-beta.
|
|
239
|
-
"@astrale-os/kernel-protocol": "0.5.0-beta.
|
|
240
|
-
"@astrale-os/kernel-server": "0.5.0-beta.
|
|
236
|
+
"@astrale-os/kernel-client": "0.6.0-beta.56",
|
|
237
|
+
"@astrale-os/kernel-core": "0.9.0-beta.43",
|
|
238
|
+
"@astrale-os/kernel-dsl": "0.2.0-beta.31",
|
|
239
|
+
"@astrale-os/kernel-protocol": "0.5.0-beta.47",
|
|
240
|
+
"@astrale-os/kernel-server": "0.5.0-beta.49",
|
|
241
241
|
"@lucide/icons": "1.34.0",
|
|
242
242
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
243
243
|
"hono": "^4.13.2",
|