@astrale-os/kernel-core 0.9.0-beta.26 → 0.9.0-beta.28
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 +23 -0
- package/dist/dns-label.d.ts +1 -2
- package/dist/dns-label.js +2 -3
- package/dist/graph/graph/model/wire.d.ts +78 -78
- package/dist/graph/graph/model/wire.js +18 -19
- package/dist/graph/mutate/language/wire.d.ts +215 -215
- package/dist/graph/mutate/language/wire.js +42 -47
- package/dist/graph/mutate/result/wire.d.ts +3 -4
- package/dist/graph/mutate/result/wire.js +4 -4
- package/dist/graph/node/identity/id.d.ts +1 -2
- package/dist/graph/node/identity/id.js +2 -3
- package/dist/graph/query/language/wire.d.ts +113 -114
- package/dist/graph/query/language/wire.js +47 -47
- package/dist/graph/query/result/wire.d.ts +93 -94
- package/dist/graph/query/result/wire.js +20 -20
- package/dist/schema/authority/claims.d.ts +24 -25
- package/dist/schema/authority/claims.js +8 -8
- package/dist/schema/installation/operation-id.d.ts +1 -2
- package/dist/schema/installation/operation-id.js +2 -4
- package/dist/schema/kernel/syscalls/contracts/admit.d.ts +11 -12
- package/dist/schema/kernel/syscalls/contracts/admit.js +9 -9
- package/dist/schema/kernel/syscalls/contracts/can.d.ts +7 -8
- package/dist/schema/kernel/syscalls/contracts/can.js +4 -4
- package/dist/schema/kernel/syscalls/contracts/delegate.d.ts +6 -7
- package/dist/schema/kernel/syscalls/contracts/delegate.js +5 -5
- package/dist/schema/kernel/syscalls/contracts/expected.d.ts +4 -5
- package/dist/schema/kernel/syscalls/contracts/expected.js +5 -5
- package/dist/schema/kernel/syscalls/contracts/identity.d.ts +18 -19
- package/dist/schema/kernel/syscalls/contracts/identity.js +6 -6
- package/dist/schema/kernel/syscalls/contracts/install.d.ts +67 -68
- package/dist/schema/kernel/syscalls/contracts/install.js +9 -9
- package/dist/schema/kernel/syscalls/contracts/installation.d.ts +72 -73
- package/dist/schema/kernel/syscalls/contracts/installation.js +12 -12
- package/dist/schema/kernel/syscalls/contracts/introspect.d.ts +4 -5
- package/dist/schema/kernel/syscalls/contracts/introspect.js +4 -4
- package/dist/schema/kernel/syscalls/contracts/journal.d.ts +26 -27
- package/dist/schema/kernel/syscalls/contracts/journal.js +15 -15
- package/dist/schema/kernel/syscalls/contracts/mint.d.ts +6 -7
- package/dist/schema/kernel/syscalls/contracts/mint.js +5 -5
- package/dist/schema/kernel/syscalls/contracts/mutate.d.ts +223 -224
- package/dist/schema/kernel/syscalls/contracts/mutate.js +2 -2
- package/dist/schema/kernel/syscalls/contracts/provision.d.ts +267 -268
- package/dist/schema/kernel/syscalls/contracts/provision.js +15 -17
- package/dist/schema/kernel/syscalls/contracts/query.d.ts +221 -222
- package/dist/schema/kernel/syscalls/contracts/query.js +7 -7
- package/dist/schema/kernel/syscalls/contracts/uninstall.d.ts +36 -37
- package/dist/schema/kernel/syscalls/contracts/uninstall.js +3 -3
- package/dist/schema/kernel/syscalls/contracts/view-resolve.d.ts +31 -32
- package/dist/schema/kernel/syscalls/contracts/view-resolve.js +23 -23
- package/dist/schema/kernel/syscalls/contracts/whoami.d.ts +19 -20
- package/dist/schema/kernel/syscalls/contracts/whoami.js +2 -2
- package/dist/schema/kernel/syscalls/contracts/whois.d.ts +22 -23
- package/dist/schema/kernel/syscalls/contracts/whois.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,29 @@
|
|
|
6
6
|
|
|
7
7
|
* remove endpoint, route, serving issuer, Publication ETag, and View placement properties from the
|
|
8
8
|
Function and UI schema; graph projection now contains declaration meaning only
|
|
9
|
+
## [0.9.0-beta.28](https://github.com/astrale-os/kernel/compare/kernel-core-v0.9.0-beta.27...kernel-core-v0.9.0-beta.28) (2026-08-30)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* The following workspace dependencies were updated
|
|
15
|
+
* dependencies
|
|
16
|
+
* @astrale-os/kernel-dsl bumped to 0.2.0-beta.21
|
|
17
|
+
|
|
18
|
+
## [0.9.0-beta.27](https://github.com/astrale-os/kernel/compare/kernel-core-v0.9.0-beta.26...kernel-core-v0.9.0-beta.27) (2026-08-30)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Performance Improvements
|
|
22
|
+
|
|
23
|
+
* **core:** make Zod imports tree-shakeable ([#553](https://github.com/astrale-os/kernel/issues/553)) ([9f16257](https://github.com/astrale-os/kernel/commit/9f1625735e06331d67731a70be8f56378cd4c67c))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @astrale-os/kernel-dsl bumped to 0.2.0-beta.20
|
|
31
|
+
|
|
9
32
|
## [0.9.0-beta.26](https://github.com/astrale-os/kernel/compare/kernel-core-v0.9.0-beta.25...kernel-core-v0.9.0-beta.26) (2026-08-29)
|
|
10
33
|
|
|
11
34
|
|
package/dist/dns-label.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
/**
|
|
3
2
|
* Canonical RFC 1035 §2.3.4 DNS label: lowercase alphanumeric + hyphen, no
|
|
4
3
|
* leading/trailing hyphen, 1–63 characters.
|
|
@@ -22,4 +21,4 @@ export declare function assertDnsLabel(value: string, name: string): void;
|
|
|
22
21
|
* instance id / public slug so non-DNS-safe values are rejected at parse time
|
|
23
22
|
* (the `.max(63)`/`.min(1)` give clear length errors before the regex check).
|
|
24
23
|
*/
|
|
25
|
-
export declare const dnsLabelSchema:
|
|
24
|
+
export declare const dnsLabelSchema: import("zod").ZodString;
|
package/dist/dns-label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { string } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Canonical RFC 1035 §2.3.4 DNS label: lowercase alphanumeric + hyphen, no
|
|
4
4
|
* leading/trailing hyphen, 1–63 characters.
|
|
@@ -28,8 +28,7 @@ export function assertDnsLabel(value, name) {
|
|
|
28
28
|
* instance id / public slug so non-DNS-safe values are rejected at parse time
|
|
29
29
|
* (the `.max(63)`/`.min(1)` give clear length errors before the regex check).
|
|
30
30
|
*/
|
|
31
|
-
export const dnsLabelSchema =
|
|
32
|
-
.string()
|
|
31
|
+
export const dnsLabelSchema = string()
|
|
33
32
|
.min(1)
|
|
34
33
|
.max(63)
|
|
35
34
|
.regex(DNS_LABEL_RE, 'must be a lowercase DNS label [a-z0-9-], ≤63 chars, no leading/trailing hyphen');
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ZodType } from 'zod';
|
|
2
2
|
import { type EdgeSlug } from '../../edge/index.js';
|
|
3
|
-
export declare const graphNodeSchema:
|
|
4
|
-
id:
|
|
5
|
-
class:
|
|
6
|
-
props:
|
|
7
|
-
},
|
|
8
|
-
export declare const anonymousGraphNodeSchema:
|
|
9
|
-
as:
|
|
10
|
-
class:
|
|
11
|
-
props:
|
|
12
|
-
},
|
|
13
|
-
export declare const edgeKeySchema:
|
|
14
|
-
source:
|
|
15
|
-
target:
|
|
16
|
-
class:
|
|
17
|
-
},
|
|
18
|
-
export declare const graphEdgeSchema:
|
|
19
|
-
source:
|
|
20
|
-
target:
|
|
21
|
-
class:
|
|
22
|
-
slug:
|
|
23
|
-
props:
|
|
24
|
-
},
|
|
25
|
-
export declare const graphSpecEdgeSchema:
|
|
26
|
-
source:
|
|
27
|
-
path:
|
|
28
|
-
},
|
|
29
|
-
created:
|
|
30
|
-
},
|
|
31
|
-
target:
|
|
32
|
-
path:
|
|
33
|
-
},
|
|
34
|
-
created:
|
|
35
|
-
},
|
|
36
|
-
class:
|
|
37
|
-
slug:
|
|
38
|
-
props:
|
|
39
|
-
},
|
|
40
|
-
export declare const graphSpecSchema:
|
|
41
|
-
nodes:
|
|
42
|
-
id:
|
|
43
|
-
class:
|
|
44
|
-
props:
|
|
45
|
-
},
|
|
46
|
-
as:
|
|
47
|
-
class:
|
|
48
|
-
props:
|
|
49
|
-
},
|
|
50
|
-
edges:
|
|
51
|
-
source:
|
|
52
|
-
path:
|
|
53
|
-
},
|
|
54
|
-
created:
|
|
55
|
-
},
|
|
56
|
-
target:
|
|
57
|
-
path:
|
|
58
|
-
},
|
|
59
|
-
created:
|
|
60
|
-
},
|
|
61
|
-
class:
|
|
62
|
-
slug:
|
|
63
|
-
props:
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
export declare const graphDataSchema:
|
|
67
|
-
nodes:
|
|
68
|
-
id:
|
|
69
|
-
class:
|
|
70
|
-
props:
|
|
71
|
-
},
|
|
72
|
-
edges:
|
|
73
|
-
source:
|
|
74
|
-
target:
|
|
75
|
-
class:
|
|
76
|
-
slug:
|
|
77
|
-
props:
|
|
78
|
-
},
|
|
79
|
-
},
|
|
3
|
+
export declare const graphNodeSchema: import("zod").ZodObject<{
|
|
4
|
+
id: import("zod").ZodString;
|
|
5
|
+
class: import("zod").ZodString;
|
|
6
|
+
props: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
7
|
+
}, import("zod/v4/core").$strict>;
|
|
8
|
+
export declare const anonymousGraphNodeSchema: import("zod").ZodObject<{
|
|
9
|
+
as: import("zod").ZodString;
|
|
10
|
+
class: import("zod").ZodString;
|
|
11
|
+
props: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
12
|
+
}, import("zod/v4/core").$strict>;
|
|
13
|
+
export declare const edgeKeySchema: import("zod").ZodObject<{
|
|
14
|
+
source: import("zod").ZodString;
|
|
15
|
+
target: import("zod").ZodString;
|
|
16
|
+
class: import("zod").ZodString;
|
|
17
|
+
}, import("zod/v4/core").$strict>;
|
|
18
|
+
export declare const graphEdgeSchema: import("zod").ZodObject<{
|
|
19
|
+
source: import("zod").ZodString;
|
|
20
|
+
target: import("zod").ZodString;
|
|
21
|
+
class: import("zod").ZodString;
|
|
22
|
+
slug: import("zod").ZodOptional<ZodType<EdgeSlug, unknown, import("zod/v4/core").$ZodTypeInternals<EdgeSlug, unknown>>>;
|
|
23
|
+
props: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
24
|
+
}, import("zod/v4/core").$strict>;
|
|
25
|
+
export declare const graphSpecEdgeSchema: import("zod").ZodObject<{
|
|
26
|
+
source: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
27
|
+
path: import("zod").ZodString;
|
|
28
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
29
|
+
created: import("zod").ZodString;
|
|
30
|
+
}, import("zod/v4/core").$strict>]>;
|
|
31
|
+
target: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
32
|
+
path: import("zod").ZodString;
|
|
33
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
34
|
+
created: import("zod").ZodString;
|
|
35
|
+
}, import("zod/v4/core").$strict>]>;
|
|
36
|
+
class: import("zod").ZodString;
|
|
37
|
+
slug: import("zod").ZodOptional<ZodType<EdgeSlug, unknown, import("zod/v4/core").$ZodTypeInternals<EdgeSlug, unknown>>>;
|
|
38
|
+
props: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
39
|
+
}, import("zod/v4/core").$strict>;
|
|
40
|
+
export declare const graphSpecSchema: import("zod").ZodObject<{
|
|
41
|
+
nodes: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
42
|
+
id: import("zod").ZodString;
|
|
43
|
+
class: import("zod").ZodString;
|
|
44
|
+
props: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
45
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
46
|
+
as: import("zod").ZodString;
|
|
47
|
+
class: import("zod").ZodString;
|
|
48
|
+
props: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
49
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
50
|
+
edges: import("zod").ZodArray<import("zod").ZodObject<{
|
|
51
|
+
source: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
52
|
+
path: import("zod").ZodString;
|
|
53
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
54
|
+
created: import("zod").ZodString;
|
|
55
|
+
}, import("zod/v4/core").$strict>]>;
|
|
56
|
+
target: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
57
|
+
path: import("zod").ZodString;
|
|
58
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
59
|
+
created: import("zod").ZodString;
|
|
60
|
+
}, import("zod/v4/core").$strict>]>;
|
|
61
|
+
class: import("zod").ZodString;
|
|
62
|
+
slug: import("zod").ZodOptional<ZodType<EdgeSlug, unknown, import("zod/v4/core").$ZodTypeInternals<EdgeSlug, unknown>>>;
|
|
63
|
+
props: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
64
|
+
}, import("zod/v4/core").$strict>>;
|
|
65
|
+
}, import("zod/v4/core").$strict>;
|
|
66
|
+
export declare const graphDataSchema: import("zod").ZodObject<{
|
|
67
|
+
nodes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
68
|
+
id: import("zod").ZodString;
|
|
69
|
+
class: import("zod").ZodString;
|
|
70
|
+
props: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
71
|
+
}, import("zod/v4/core").$strict>>;
|
|
72
|
+
edges: import("zod").ZodArray<import("zod").ZodObject<{
|
|
73
|
+
source: import("zod").ZodString;
|
|
74
|
+
target: import("zod").ZodString;
|
|
75
|
+
class: import("zod").ZodString;
|
|
76
|
+
slug: import("zod").ZodOptional<ZodType<EdgeSlug, unknown, import("zod/v4/core").$ZodTypeInternals<EdgeSlug, unknown>>>;
|
|
77
|
+
props: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
78
|
+
}, import("zod/v4/core").$strict>>;
|
|
79
|
+
}, import("zod/v4/core").$strict>;
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import { fullMatch } from '@astrale-os/kernel-dsl/v1/value/full-match';
|
|
2
|
-
import {
|
|
2
|
+
import { array, record, strictObject, string, union, unknown as unknownSchema, } from 'zod';
|
|
3
3
|
import { edgeSlugSchema } from '../../edge/index.js';
|
|
4
|
-
const text =
|
|
5
|
-
const props =
|
|
6
|
-
const binding =
|
|
7
|
-
const edgeSlug =
|
|
8
|
-
.string()
|
|
4
|
+
const text = string().min(1);
|
|
5
|
+
const props = record(string(), unknownSchema());
|
|
6
|
+
const binding = string().regex(/^[A-Za-z][A-Za-z0-9_]{0,63}$/u);
|
|
7
|
+
const edgeSlug = string()
|
|
9
8
|
.min(edgeSlugSchema.minLength)
|
|
10
9
|
.max(edgeSlugSchema.maxLength)
|
|
11
10
|
.check(fullMatch(edgeSlugSchema.fullMatch));
|
|
12
|
-
export const graphNodeSchema =
|
|
13
|
-
export const anonymousGraphNodeSchema =
|
|
14
|
-
export const edgeKeySchema =
|
|
11
|
+
export const graphNodeSchema = strictObject({ id: text, class: text, props });
|
|
12
|
+
export const anonymousGraphNodeSchema = strictObject({ as: binding, class: text, props });
|
|
13
|
+
export const edgeKeySchema = strictObject({ source: text, target: text, class: text });
|
|
15
14
|
export const graphEdgeSchema = edgeKeySchema.extend({ slug: edgeSlug.optional(), props });
|
|
16
|
-
const graphSpecEndpointSchema =
|
|
15
|
+
const graphSpecEndpointSchema = union([
|
|
17
16
|
text,
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
strictObject({ path: text }),
|
|
18
|
+
strictObject({ created: binding }),
|
|
20
19
|
]);
|
|
21
|
-
export const graphSpecEdgeSchema =
|
|
20
|
+
export const graphSpecEdgeSchema = strictObject({
|
|
22
21
|
source: graphSpecEndpointSchema,
|
|
23
22
|
target: graphSpecEndpointSchema,
|
|
24
23
|
class: text,
|
|
25
24
|
slug: edgeSlug.optional(),
|
|
26
25
|
props,
|
|
27
26
|
});
|
|
28
|
-
export const graphSpecSchema =
|
|
29
|
-
nodes:
|
|
30
|
-
edges:
|
|
27
|
+
export const graphSpecSchema = strictObject({
|
|
28
|
+
nodes: array(union([graphNodeSchema, anonymousGraphNodeSchema])),
|
|
29
|
+
edges: array(graphSpecEdgeSchema),
|
|
31
30
|
});
|
|
32
|
-
export const graphDataSchema =
|
|
33
|
-
nodes:
|
|
34
|
-
edges:
|
|
31
|
+
export const graphDataSchema = strictObject({
|
|
32
|
+
nodes: array(graphNodeSchema),
|
|
33
|
+
edges: array(graphEdgeSchema),
|
|
35
34
|
});
|