@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.
Files changed (54) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/dns-label.d.ts +1 -2
  3. package/dist/dns-label.js +2 -3
  4. package/dist/graph/graph/model/wire.d.ts +78 -78
  5. package/dist/graph/graph/model/wire.js +18 -19
  6. package/dist/graph/mutate/language/wire.d.ts +215 -215
  7. package/dist/graph/mutate/language/wire.js +42 -47
  8. package/dist/graph/mutate/result/wire.d.ts +3 -4
  9. package/dist/graph/mutate/result/wire.js +4 -4
  10. package/dist/graph/node/identity/id.d.ts +1 -2
  11. package/dist/graph/node/identity/id.js +2 -3
  12. package/dist/graph/query/language/wire.d.ts +113 -114
  13. package/dist/graph/query/language/wire.js +47 -47
  14. package/dist/graph/query/result/wire.d.ts +93 -94
  15. package/dist/graph/query/result/wire.js +20 -20
  16. package/dist/schema/authority/claims.d.ts +24 -25
  17. package/dist/schema/authority/claims.js +8 -8
  18. package/dist/schema/installation/operation-id.d.ts +1 -2
  19. package/dist/schema/installation/operation-id.js +2 -4
  20. package/dist/schema/kernel/syscalls/contracts/admit.d.ts +11 -12
  21. package/dist/schema/kernel/syscalls/contracts/admit.js +9 -9
  22. package/dist/schema/kernel/syscalls/contracts/can.d.ts +7 -8
  23. package/dist/schema/kernel/syscalls/contracts/can.js +4 -4
  24. package/dist/schema/kernel/syscalls/contracts/delegate.d.ts +6 -7
  25. package/dist/schema/kernel/syscalls/contracts/delegate.js +5 -5
  26. package/dist/schema/kernel/syscalls/contracts/expected.d.ts +4 -5
  27. package/dist/schema/kernel/syscalls/contracts/expected.js +5 -5
  28. package/dist/schema/kernel/syscalls/contracts/identity.d.ts +18 -19
  29. package/dist/schema/kernel/syscalls/contracts/identity.js +6 -6
  30. package/dist/schema/kernel/syscalls/contracts/install.d.ts +67 -68
  31. package/dist/schema/kernel/syscalls/contracts/install.js +9 -9
  32. package/dist/schema/kernel/syscalls/contracts/installation.d.ts +72 -73
  33. package/dist/schema/kernel/syscalls/contracts/installation.js +12 -12
  34. package/dist/schema/kernel/syscalls/contracts/introspect.d.ts +4 -5
  35. package/dist/schema/kernel/syscalls/contracts/introspect.js +4 -4
  36. package/dist/schema/kernel/syscalls/contracts/journal.d.ts +26 -27
  37. package/dist/schema/kernel/syscalls/contracts/journal.js +15 -15
  38. package/dist/schema/kernel/syscalls/contracts/mint.d.ts +6 -7
  39. package/dist/schema/kernel/syscalls/contracts/mint.js +5 -5
  40. package/dist/schema/kernel/syscalls/contracts/mutate.d.ts +223 -224
  41. package/dist/schema/kernel/syscalls/contracts/mutate.js +2 -2
  42. package/dist/schema/kernel/syscalls/contracts/provision.d.ts +267 -268
  43. package/dist/schema/kernel/syscalls/contracts/provision.js +15 -17
  44. package/dist/schema/kernel/syscalls/contracts/query.d.ts +221 -222
  45. package/dist/schema/kernel/syscalls/contracts/query.js +7 -7
  46. package/dist/schema/kernel/syscalls/contracts/uninstall.d.ts +36 -37
  47. package/dist/schema/kernel/syscalls/contracts/uninstall.js +3 -3
  48. package/dist/schema/kernel/syscalls/contracts/view-resolve.d.ts +31 -32
  49. package/dist/schema/kernel/syscalls/contracts/view-resolve.js +23 -23
  50. package/dist/schema/kernel/syscalls/contracts/whoami.d.ts +19 -20
  51. package/dist/schema/kernel/syscalls/contracts/whoami.js +2 -2
  52. package/dist/schema/kernel/syscalls/contracts/whois.d.ts +22 -23
  53. package/dist/schema/kernel/syscalls/contracts/whois.js +3 -3
  54. 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
 
@@ -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: z.ZodString;
24
+ export declare const dnsLabelSchema: import("zod").ZodString;
package/dist/dns-label.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
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 = z
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 { z } from 'zod';
1
+ import { type ZodType } from 'zod';
2
2
  import { type EdgeSlug } from '../../edge/index.js';
3
- export declare const graphNodeSchema: z.ZodObject<{
4
- id: z.ZodString;
5
- class: z.ZodString;
6
- props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
- }, z.core.$strict>;
8
- export declare const anonymousGraphNodeSchema: z.ZodObject<{
9
- as: z.ZodString;
10
- class: z.ZodString;
11
- props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12
- }, z.core.$strict>;
13
- export declare const edgeKeySchema: z.ZodObject<{
14
- source: z.ZodString;
15
- target: z.ZodString;
16
- class: z.ZodString;
17
- }, z.core.$strict>;
18
- export declare const graphEdgeSchema: z.ZodObject<{
19
- source: z.ZodString;
20
- target: z.ZodString;
21
- class: z.ZodString;
22
- slug: z.ZodOptional<z.ZodType<EdgeSlug, unknown, z.core.$ZodTypeInternals<EdgeSlug, unknown>>>;
23
- props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
24
- }, z.core.$strict>;
25
- export declare const graphSpecEdgeSchema: z.ZodObject<{
26
- source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
27
- path: z.ZodString;
28
- }, z.core.$strict>, z.ZodObject<{
29
- created: z.ZodString;
30
- }, z.core.$strict>]>;
31
- target: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
32
- path: z.ZodString;
33
- }, z.core.$strict>, z.ZodObject<{
34
- created: z.ZodString;
35
- }, z.core.$strict>]>;
36
- class: z.ZodString;
37
- slug: z.ZodOptional<z.ZodType<EdgeSlug, unknown, z.core.$ZodTypeInternals<EdgeSlug, unknown>>>;
38
- props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
39
- }, z.core.$strict>;
40
- export declare const graphSpecSchema: z.ZodObject<{
41
- nodes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
42
- id: z.ZodString;
43
- class: z.ZodString;
44
- props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
45
- }, z.core.$strict>, z.ZodObject<{
46
- as: z.ZodString;
47
- class: z.ZodString;
48
- props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
49
- }, z.core.$strict>]>>;
50
- edges: z.ZodArray<z.ZodObject<{
51
- source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
52
- path: z.ZodString;
53
- }, z.core.$strict>, z.ZodObject<{
54
- created: z.ZodString;
55
- }, z.core.$strict>]>;
56
- target: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
57
- path: z.ZodString;
58
- }, z.core.$strict>, z.ZodObject<{
59
- created: z.ZodString;
60
- }, z.core.$strict>]>;
61
- class: z.ZodString;
62
- slug: z.ZodOptional<z.ZodType<EdgeSlug, unknown, z.core.$ZodTypeInternals<EdgeSlug, unknown>>>;
63
- props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64
- }, z.core.$strict>>;
65
- }, z.core.$strict>;
66
- export declare const graphDataSchema: z.ZodObject<{
67
- nodes: z.ZodArray<z.ZodObject<{
68
- id: z.ZodString;
69
- class: z.ZodString;
70
- props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
71
- }, z.core.$strict>>;
72
- edges: z.ZodArray<z.ZodObject<{
73
- source: z.ZodString;
74
- target: z.ZodString;
75
- class: z.ZodString;
76
- slug: z.ZodOptional<z.ZodType<EdgeSlug, unknown, z.core.$ZodTypeInternals<EdgeSlug, unknown>>>;
77
- props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
78
- }, z.core.$strict>>;
79
- }, z.core.$strict>;
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 { z } from 'zod';
2
+ import { array, record, strictObject, string, union, unknown as unknownSchema, } from 'zod';
3
3
  import { edgeSlugSchema } from '../../edge/index.js';
4
- const text = z.string().min(1);
5
- const props = z.record(z.string(), z.unknown());
6
- const binding = z.string().regex(/^[A-Za-z][A-Za-z0-9_]{0,63}$/u);
7
- const edgeSlug = z
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 = z.strictObject({ id: text, class: text, props });
13
- export const anonymousGraphNodeSchema = z.strictObject({ as: binding, class: text, props });
14
- export const edgeKeySchema = z.strictObject({ source: text, target: text, class: text });
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 = z.union([
15
+ const graphSpecEndpointSchema = union([
17
16
  text,
18
- z.strictObject({ path: text }),
19
- z.strictObject({ created: binding }),
17
+ strictObject({ path: text }),
18
+ strictObject({ created: binding }),
20
19
  ]);
21
- export const graphSpecEdgeSchema = z.strictObject({
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 = z.strictObject({
29
- nodes: z.array(z.union([graphNodeSchema, anonymousGraphNodeSchema])),
30
- edges: z.array(graphSpecEdgeSchema),
27
+ export const graphSpecSchema = strictObject({
28
+ nodes: array(union([graphNodeSchema, anonymousGraphNodeSchema])),
29
+ edges: array(graphSpecEdgeSchema),
31
30
  });
32
- export const graphDataSchema = z.strictObject({
33
- nodes: z.array(graphNodeSchema),
34
- edges: z.array(graphEdgeSchema),
31
+ export const graphDataSchema = strictObject({
32
+ nodes: array(graphNodeSchema),
33
+ edges: array(graphEdgeSchema),
35
34
  });