@astrale-os/sdk 0.5.0-beta.30 → 0.5.0-beta.31
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,9 +1,9 @@
|
|
|
1
|
-
import { MutationAST, type MutationResult } from '@astrale-os/kernel-core/graph/mutate';
|
|
1
|
+
import { type MutationAST as MutationASTValue, type MutationResult } from '@astrale-os/kernel-core/graph/mutate';
|
|
2
|
+
import type { GraphMutationOptions } from '../../../platform/client/index.js';
|
|
2
3
|
import type { Domain } from '../../../platform/schema/index.js';
|
|
3
4
|
import type { Mutation } from '../mutation.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
5
|
+
/** Exact caller-scoped canonical document capability required by Mutation execution. */
|
|
6
|
+
export type MutationClient = Readonly<{
|
|
7
|
+
mutate(ast: MutationASTValue, options?: GraphMutationOptions): Promise<MutationResult>;
|
|
8
|
+
}>;
|
|
9
9
|
export declare function executeMutation<DomainValue extends Domain, Input, Output>(client: MutationClient, domain: DomainValue, definition: Mutation<DomainValue, Input, Output>, input: Input): Promise<Output>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MutationAST } from '@astrale-os/kernel-core/graph/mutate';
|
|
1
|
+
import { MutationAST, } from '@astrale-os/kernel-core/graph/mutate';
|
|
2
2
|
import { richMutationBuilder } from '../authoring/index.js';
|
|
3
3
|
import { realizeMutation } from '../define.js';
|
|
4
4
|
import { mutationFailure } from '../failure.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Canonical transport, invocation, and caller-owned Client lifecycle. */
|
|
2
2
|
export * from '@astrale-os/kernel-client';
|
|
3
|
-
export type { BoundEdge, BoundGraphValue, BoundNode, BoundNodeFor, DomainBinding, GraphApi, } from '@astrale-os/kernel-client/graph';
|
|
3
|
+
export type { BoundEdge, BoundGraphValue, BoundNode, BoundNodeFor, DomainBinding, GraphApi, GraphMutationOptions, } from '@astrale-os/kernel-client/graph';
|
|
4
4
|
export { createGraph, NodeUnavailableError, QueryAST, type QueryPageRequest, } from '@astrale-os/kernel-client/graph';
|
|
5
5
|
export * as session from './session/index.js';
|
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.31",
|
|
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.14",
|
|
214
|
+
"@astrale-os/kernel-core": "0.9.0-beta.12",
|
|
215
|
+
"@astrale-os/kernel-dsl": "0.2.0-beta.9",
|
|
216
|
+
"@astrale-os/kernel-protocol": "0.5.0-beta.12",
|
|
217
|
+
"@astrale-os/kernel-server": "0.5.0-beta.13",
|
|
218
218
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
219
219
|
"hono": "^4.13.2",
|
|
220
220
|
"jose": "^6.2.9",
|
|
@@ -277,7 +277,6 @@
|
|
|
277
277
|
"node": ">=22"
|
|
278
278
|
},
|
|
279
279
|
"scripts": {
|
|
280
|
-
"preinstall": "node -e \"try{require('./.check-workspace.cjs')}catch{}\"",
|
|
281
280
|
"build": "node scripts/clean-dist.mjs && tsgo && node scripts/verify-no-source-maps.mjs dist && pnpm run verify:package",
|
|
282
281
|
"e2e": "node __e2e__/flagship/runner.mjs",
|
|
283
282
|
"typecheck": "tsgo --noEmit && pnpm run typecheck:types",
|