@astrale-os/kernel-core 0.9.0-beta.50 → 0.9.0-beta.52
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/model/codec.js +1 -1
- package/dist/graph/query/result/index.js +1 -1
- package/dist/schema/domain/domain.d.ts +424 -154
- package/dist/schema/identity/identity.d.ts +27 -9
- package/dist/schema/kernel/projection/index.d.ts +2 -2
- package/dist/schema/kernel/projection/index.js +1 -1
- package/dist/schema/kernel/projection/project.d.ts +3 -1
- package/dist/schema/kernel/projection/project.js +53 -32
- package/dist/schema/kernel/projection/types.d.ts +27 -1
- package/dist/schema/kernel/schema.d.ts +431 -143
- package/dist/schema/kernel/syscalls/contracts/can.d.ts +16 -4
- package/dist/schema/kernel/syscalls/contracts/can.js +11 -3
- package/dist/schema/kernel/syscalls/contracts/index.d.ts +1 -1
- package/dist/schema/kernel/syscalls/contracts/index.js +1 -1
- package/dist/schema/kernel/syscalls/declarations/can.d.ts +9 -0
- package/dist/schema/kernel/syscalls/declarations/can.js +1 -1
- package/dist/schema/kernel/syscalls/declarations/index.d.ts +9 -0
- package/dist/schema/kernel/syscalls/descriptors/identity.d.ts +9 -0
- package/package.json +2 -2
|
@@ -28,7 +28,7 @@ export class GraphSpecDecodeError extends TypeError {
|
|
|
28
28
|
/** Strengthen unknown JSON into detached immutable structural graph values. */
|
|
29
29
|
export function decodeGraphSpec(input) {
|
|
30
30
|
try {
|
|
31
|
-
const value = decodeWire(graphSpecSchema, portable.
|
|
31
|
+
const value = decodeWire(graphSpecSchema, portable.acceptForRead(input), specInvalid);
|
|
32
32
|
const nodes = value.nodes.map((node, index) => decodeSpecNode(node, `/nodes/${index}`));
|
|
33
33
|
const edges = value.edges.map((edge, index) => decodeSpecEdge(edge, `/edges/${index}`));
|
|
34
34
|
validateGraphSpec(nodes, edges);
|
|
@@ -35,7 +35,7 @@ export function queryResultSelection(input) {
|
|
|
35
35
|
/** Decode exact QueryResult structure; Query-relative closure remains Runtime-owned. */
|
|
36
36
|
export function decodeQueryResult(input) {
|
|
37
37
|
try {
|
|
38
|
-
const value = decodeWire(queryResultSchema, portable.
|
|
38
|
+
const value = decodeWire(queryResultSchema, portable.acceptForRead(input), invalid);
|
|
39
39
|
if (value.kind === 'graph') {
|
|
40
40
|
const graph = decodeGraph(value.graph, '/graph');
|
|
41
41
|
const selection = decodeSelection(value.selection, graph);
|