@astrale-os/kernel-client 0.6.0-beta.53 → 0.6.0-beta.54
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/graph/graph.d.ts +0 -1
- package/dist/graph/mutation.js +1 -3
- package/package.json +4 -4
package/dist/graph/graph.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export interface GraphQueryOptions extends RequestOptions {
|
|
|
13
13
|
readonly expected?: readonly DomainDependency[];
|
|
14
14
|
readonly page: QueryPageRequest;
|
|
15
15
|
}
|
|
16
|
-
/** idempotencyKey selects a durable principal-scoped Kernel receipt, not an invocation cache entry. */
|
|
17
16
|
export interface GraphMutationOptions extends RequestOptions {
|
|
18
17
|
readonly expected?: readonly DomainDependency[];
|
|
19
18
|
}
|
package/dist/graph/mutation.js
CHANGED
|
@@ -7,15 +7,13 @@ const KERNEL_MUTATE_PATH = Path.project(mutate).raw;
|
|
|
7
7
|
export async function mutateGraph(call, input, options) {
|
|
8
8
|
const ast = typeof input === 'function' ? MutationAST.build(input) : admitMutation(input);
|
|
9
9
|
const expected = options?.expected;
|
|
10
|
-
const idempotencyKey = options?.idempotencyKey;
|
|
11
10
|
const request = options === undefined
|
|
12
11
|
? undefined
|
|
13
|
-
: (({ expected: _expected,
|
|
12
|
+
: (({ expected: _expected, ...rest }) => rest)(options);
|
|
14
13
|
const capturedExpected = captureExpected(expected);
|
|
15
14
|
const output = await call(invocation(KERNEL_MUTATE_PATH, Object.freeze({
|
|
16
15
|
ast,
|
|
17
16
|
...(capturedExpected === undefined ? {} : { expected: capturedExpected }),
|
|
18
|
-
...(idempotencyKey === undefined ? {} : { idempotencyKey }),
|
|
19
17
|
})), request);
|
|
20
18
|
return MutationResult.decode(output);
|
|
21
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/kernel-client",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.54",
|
|
4
4
|
"description": "Universal Client — protocol-first, transport-agnostic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@astrale-os/kernel-core": "0.9.0-beta.
|
|
68
|
+
"@astrale-os/kernel-core": "0.9.0-beta.42",
|
|
69
69
|
"@astrale-os/kernel-dsl": "0.2.0-beta.30",
|
|
70
|
-
"@astrale-os/kernel-protocol": "0.5.0-beta.
|
|
70
|
+
"@astrale-os/kernel-protocol": "0.5.0-beta.45",
|
|
71
71
|
"@tanstack/pacer": "0.20.1",
|
|
72
72
|
"msgpackr": "^2.0.5"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@astrale-os/kernel-server": "0.5.0-beta.
|
|
75
|
+
"@astrale-os/kernel-server": "0.5.0-beta.47",
|
|
76
76
|
"@astrale/typescript-config": "npm:@jsr/astrale__typescript-config@~1.1.0",
|
|
77
77
|
"@types/node": "^22.0.0",
|
|
78
78
|
"typescript": "7.0.2",
|