@astrale-os/kernel-core 0.9.0-beta.55 → 0.9.0-beta.56

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 (53) hide show
  1. package/dist/schema/callables/execution.d.ts +269 -0
  2. package/dist/schema/callables/execution.js +30 -0
  3. package/dist/schema/callables/function.d.ts +380 -380
  4. package/dist/schema/callables/index.d.ts +1 -0
  5. package/dist/schema/callables/index.js +1 -0
  6. package/dist/schema/callables/view.d.ts +2 -2
  7. package/dist/schema/domain/domain.d.ts +387 -387
  8. package/dist/schema/identity/identity.d.ts +12 -12
  9. package/dist/schema/kernel/schema.d.ts +1165 -855
  10. package/dist/schema/kernel/schema.js +4 -2
  11. package/dist/schema/kernel/syscalls/contracts/execution.d.ts +60 -0
  12. package/dist/schema/kernel/syscalls/contracts/execution.js +46 -0
  13. package/dist/schema/kernel/syscalls/contracts/index.d.ts +1 -0
  14. package/dist/schema/kernel/syscalls/contracts/index.js +1 -0
  15. package/dist/schema/kernel/syscalls/declarations/admit.d.ts +1 -1
  16. package/dist/schema/kernel/syscalls/declarations/can.d.ts +1 -1
  17. package/dist/schema/kernel/syscalls/declarations/delegate.d.ts +1 -1
  18. package/dist/schema/kernel/syscalls/declarations/download.d.ts +1 -1
  19. package/dist/schema/kernel/syscalls/declarations/execution.d.ts +105 -0
  20. package/dist/schema/kernel/syscalls/declarations/execution.js +52 -0
  21. package/dist/schema/kernel/syscalls/declarations/impersonate.d.ts +1 -1
  22. package/dist/schema/kernel/syscalls/declarations/index.d.ts +146 -40
  23. package/dist/schema/kernel/syscalls/declarations/index.js +9 -0
  24. package/dist/schema/kernel/syscalls/declarations/install.d.ts +1 -1
  25. package/dist/schema/kernel/syscalls/declarations/introspect.d.ts +1 -1
  26. package/dist/schema/kernel/syscalls/declarations/journal.d.ts +1 -1
  27. package/dist/schema/kernel/syscalls/declarations/mint.d.ts +1 -1
  28. package/dist/schema/kernel/syscalls/declarations/mutate.d.ts +24 -24
  29. package/dist/schema/kernel/syscalls/declarations/query.d.ts +1 -1
  30. package/dist/schema/kernel/syscalls/declarations/register.d.ts +1 -1
  31. package/dist/schema/kernel/syscalls/declarations/uninstall.d.ts +1 -1
  32. package/dist/schema/kernel/syscalls/declarations/upload.d.ts +1 -1
  33. package/dist/schema/kernel/syscalls/declarations/view-resolve.d.ts +1 -1
  34. package/dist/schema/kernel/syscalls/declarations/whoami.d.ts +1 -1
  35. package/dist/schema/kernel/syscalls/declarations/whois.d.ts +1 -1
  36. package/dist/schema/kernel/syscalls/descriptors/execution.d.ts +153 -0
  37. package/dist/schema/kernel/syscalls/descriptors/execution.js +11 -0
  38. package/dist/schema/kernel/syscalls/descriptors/function.d.ts +1 -0
  39. package/dist/schema/kernel/syscalls/descriptors/identity.d.ts +6 -0
  40. package/dist/schema/kernel/syscalls/descriptors/index.d.ts +1 -0
  41. package/dist/schema/kernel/syscalls/descriptors/index.js +1 -0
  42. package/dist/schema/kernel/syscalls/descriptors/view.d.ts +1 -0
  43. package/dist/schema/kernel/syscalls/index.d.ts +1 -1
  44. package/dist/schema/kernel/syscalls/index.js +1 -1
  45. package/dist/schema/kernel/syscalls/references/execution.d.ts +55 -0
  46. package/dist/schema/kernel/syscalls/references/execution.js +13 -0
  47. package/dist/schema/kernel/syscalls/references/index.d.ts +1 -0
  48. package/dist/schema/kernel/syscalls/references/index.js +1 -0
  49. package/dist/schema/meta/created-by.d.ts +32 -0
  50. package/dist/schema/meta/created-by.js +17 -0
  51. package/dist/schema/meta/index.d.ts +1 -0
  52. package/dist/schema/meta/index.js +1 -0
  53. package/package.json +2 -2
@@ -2,6 +2,7 @@ import { Admit } from './admit.js';
2
2
  import { Can } from './can.js';
3
3
  import { Delegate } from './delegate.js';
4
4
  import { Download } from './download.js';
5
+ import { ExecutionCancel, ExecutionDelete, ExecutionResult, ExecutionResume, ExecutionSignal, ExecutionStatus, } from './execution.js';
5
6
  import { Impersonate } from './impersonate.js';
6
7
  import { Install } from './install.js';
7
8
  import { Introspect } from './introspect.js';
@@ -40,4 +41,12 @@ export const FunctionMethods = Object.freeze({
40
41
  export const ViewMethods = Object.freeze({
41
42
  resolve: ViewResolve,
42
43
  });
44
+ export const ExecutionMethods = Object.freeze({
45
+ status: ExecutionStatus,
46
+ result: ExecutionResult,
47
+ cancel: ExecutionCancel,
48
+ signal: ExecutionSignal,
49
+ resume: ExecutionResume,
50
+ delete: ExecutionDelete,
51
+ });
43
52
  export { CanUseSyscall } from './use-policy.js';
@@ -19,4 +19,4 @@ export declare const Install: builder.Function<builder.CallableProjection<{
19
19
  })[];
20
20
  }, {
21
21
  readonly mode: 'binary';
22
- }, "authorized", false, false>>;
22
+ }, "authorized", false, false, undefined>>;
@@ -4,4 +4,4 @@ export declare const Introspect: builder.Function<builder.CallableProjection<{
4
4
  origin: string;
5
5
  }, {
6
6
  readonly mode: 'binary';
7
- }, "authenticated", false, false>>;
7
+ }, "authenticated", false, false, undefined>>;
@@ -26,4 +26,4 @@ export declare const Journal: builder.Function<builder.CallableProjection<{
26
26
  cursor?: string | undefined;
27
27
  gap?: unknown;
28
28
  };
29
- }, "authorized", false, false>>;
29
+ }, "authorized", false, false, undefined>>;
@@ -6,4 +6,4 @@ export declare const Mint: builder.Method<builder.CallableProjection<{
6
6
  }, {
7
7
  readonly mode: 'value';
8
8
  readonly value: string;
9
- }, "authenticated", true, false>>;
9
+ }, "authenticated", true, false, undefined>>;
@@ -155,6 +155,29 @@ export declare const Mutate: builder.Function<builder.CallableProjection<{
155
155
  };
156
156
  })[];
157
157
  operations: ({
158
+ op: "edge.update";
159
+ edge: {
160
+ source: string;
161
+ target: string;
162
+ class: string;
163
+ };
164
+ slug: unknown;
165
+ props?: {
166
+ set: Record<string, unknown>;
167
+ unset: string[];
168
+ } | undefined;
169
+ } | {
170
+ op: "edge.update";
171
+ edge: {
172
+ source: string;
173
+ target: string;
174
+ class: string;
175
+ };
176
+ props: {
177
+ set: Record<string, unknown>;
178
+ unset: string[];
179
+ };
180
+ } | {
158
181
  op: "node.create";
159
182
  as: string;
160
183
  class: string;
@@ -182,29 +205,6 @@ export declare const Mutate: builder.Function<builder.CallableProjection<{
182
205
  };
183
206
  slug?: unknown;
184
207
  props: Record<string, unknown>;
185
- } | {
186
- op: "edge.update";
187
- edge: {
188
- source: string;
189
- target: string;
190
- class: string;
191
- };
192
- slug: unknown;
193
- props?: {
194
- set: Record<string, unknown>;
195
- unset: string[];
196
- } | undefined;
197
- } | {
198
- op: "edge.update";
199
- edge: {
200
- source: string;
201
- target: string;
202
- class: string;
203
- };
204
- props: {
205
- set: Record<string, unknown>;
206
- unset: string[];
207
- };
208
208
  } | {
209
209
  op: "edge.delete";
210
210
  edge: {
@@ -223,4 +223,4 @@ export declare const Mutate: builder.Function<builder.CallableProjection<{
223
223
  readonly value: {
224
224
  createdNodes: Record<string, string>;
225
225
  };
226
- }, "authorized", false, false>>;
226
+ }, "authorized", false, false, undefined>>;
@@ -221,4 +221,4 @@ export declare const Query: builder.Function<builder.CallableProjection<{
221
221
  next?: string | undefined;
222
222
  };
223
223
  };
224
- }, "authorized", false, false>>;
224
+ }, "authorized", false, false, undefined>>;
@@ -20,4 +20,4 @@ export declare const Register: builder.Function<builder.CallableProjection<{
20
20
  sub: string;
21
21
  }[];
22
22
  };
23
- }, "authorized", false, false>>;
23
+ }, "authorized", false, false, undefined>>;
@@ -39,4 +39,4 @@ export declare const Uninstall: builder.Function<builder.CallableProjection<{
39
39
  } | undefined;
40
40
  }[];
41
41
  };
42
- }, "authorized", false, false>>;
42
+ }, "authorized", false, false, undefined>>;
@@ -12,4 +12,4 @@ export declare const Upload: builder.Function<builder.CallableProjection<import(
12
12
  };
13
13
  expiresAt: string;
14
14
  };
15
- }, "authorized", false, false>>;
15
+ }, "authorized", false, false, undefined>>;
@@ -38,4 +38,4 @@ export declare const ViewResolve: builder.Method<builder.CallableProjection<{
38
38
  revision: string;
39
39
  }[];
40
40
  };
41
- }, "authorized", true, false>>;
41
+ }, "authorized", true, false, undefined>>;
@@ -19,4 +19,4 @@ export declare const Whoami: builder.Method<builder.CallableProjection<Record<st
19
19
  op: "exists";
20
20
  })[];
21
21
  };
22
- }, "authenticated", true, false>>;
22
+ }, "authenticated", true, false, undefined>>;
@@ -22,4 +22,4 @@ export declare const Whois: builder.Method<builder.CallableProjection<{
22
22
  op: "exists";
23
23
  })[];
24
24
  } | null;
25
- }, "authorized", true, false>>;
25
+ }, "authorized", true, false, undefined>>;
@@ -0,0 +1,153 @@
1
+ export declare const status: import("./model.js").MethodSyscall<Readonly<{
2
+ origin: 'kernel.astrale.ai';
3
+ kind: 'class';
4
+ name: 'Execution';
5
+ }>, "status", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<Record<string, never>, {
6
+ readonly mode: 'value';
7
+ readonly value: {
8
+ id: string;
9
+ function: string;
10
+ version: string;
11
+ state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
12
+ createdAt: string;
13
+ outcome?: {
14
+ kind: "completed";
15
+ value: unknown;
16
+ } | {
17
+ kind: "failed";
18
+ error: {
19
+ code: string;
20
+ message: string;
21
+ family?: string | undefined;
22
+ details?: unknown;
23
+ };
24
+ } | {
25
+ kind: "cancelled";
26
+ } | undefined;
27
+ };
28
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Execution.method.status"> & {
29
+ readonly name: "status";
30
+ readonly executable: true;
31
+ readonly execution: undefined;
32
+ }>;
33
+ export declare const result: import("./model.js").MethodSyscall<Readonly<{
34
+ origin: 'kernel.astrale.ai';
35
+ kind: 'class';
36
+ name: 'Execution';
37
+ }>, "result", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
38
+ waitMs?: number | undefined;
39
+ }, {
40
+ readonly mode: 'value';
41
+ readonly value: {
42
+ kind: "completed";
43
+ value: unknown;
44
+ } | {
45
+ kind: "failed";
46
+ error: {
47
+ code: string;
48
+ message: string;
49
+ family?: string | undefined;
50
+ details?: unknown;
51
+ };
52
+ } | {
53
+ kind: "cancelled";
54
+ };
55
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Execution.method.result"> & {
56
+ readonly name: "result";
57
+ readonly executable: true;
58
+ readonly execution: undefined;
59
+ }>;
60
+ export declare const cancel: import("./model.js").MethodSyscall<Readonly<{
61
+ origin: 'kernel.astrale.ai';
62
+ kind: 'class';
63
+ name: 'Execution';
64
+ }>, "cancel", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
65
+ force?: boolean | undefined;
66
+ }, {
67
+ readonly mode: 'value';
68
+ readonly value: {
69
+ id: string;
70
+ function: string;
71
+ version: string;
72
+ state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
73
+ createdAt: string;
74
+ outcome?: {
75
+ kind: "completed";
76
+ value: unknown;
77
+ } | {
78
+ kind: "failed";
79
+ error: {
80
+ code: string;
81
+ message: string;
82
+ family?: string | undefined;
83
+ details?: unknown;
84
+ };
85
+ } | {
86
+ kind: "cancelled";
87
+ } | undefined;
88
+ };
89
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Execution.method.cancel"> & {
90
+ readonly name: "cancel";
91
+ readonly executable: true;
92
+ readonly execution: undefined;
93
+ }>;
94
+ export declare const signal: import("./model.js").MethodSyscall<Readonly<{
95
+ origin: 'kernel.astrale.ai';
96
+ kind: 'class';
97
+ name: 'Execution';
98
+ }>, "signal", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
99
+ name: string;
100
+ value: unknown;
101
+ }, {
102
+ readonly mode: 'value';
103
+ readonly value: Record<string, never>;
104
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Execution.method.signal"> & {
105
+ readonly name: "signal";
106
+ readonly executable: true;
107
+ readonly execution: undefined;
108
+ }>;
109
+ export declare const resume: import("./model.js").MethodSyscall<Readonly<{
110
+ origin: 'kernel.astrale.ai';
111
+ kind: 'class';
112
+ name: 'Execution';
113
+ }>, "resume", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<Record<string, never>, {
114
+ readonly mode: 'value';
115
+ readonly value: {
116
+ id: string;
117
+ function: string;
118
+ version: string;
119
+ state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
120
+ createdAt: string;
121
+ outcome?: {
122
+ kind: "completed";
123
+ value: unknown;
124
+ } | {
125
+ kind: "failed";
126
+ error: {
127
+ code: string;
128
+ message: string;
129
+ family?: string | undefined;
130
+ details?: unknown;
131
+ };
132
+ } | {
133
+ kind: "cancelled";
134
+ } | undefined;
135
+ };
136
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Execution.method.resume"> & {
137
+ readonly name: "resume";
138
+ readonly executable: true;
139
+ readonly execution: undefined;
140
+ }>;
141
+ declare const remove: import("./model.js").MethodSyscall<Readonly<{
142
+ origin: 'kernel.astrale.ai';
143
+ kind: 'class';
144
+ name: 'Execution';
145
+ }>, "delete", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<Record<string, never>, {
146
+ readonly mode: 'value';
147
+ readonly value: Record<string, never>;
148
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Execution.method.delete"> & {
149
+ readonly name: "delete";
150
+ readonly executable: true;
151
+ readonly execution: undefined;
152
+ }>;
153
+ export { remove as delete };
@@ -0,0 +1,11 @@
1
+ import { K } from '../../index.js';
2
+ import * as references from '../references/execution.js';
3
+ import { methodSyscall } from './model.js';
4
+ // Instance Methods: the handler receives the Execution receiver as `self`.
5
+ export const status = methodSyscall(references.status, K.classes.Execution.methods.status);
6
+ export const result = methodSyscall(references.result, K.classes.Execution.methods.result);
7
+ export const cancel = methodSyscall(references.cancel, K.classes.Execution.methods.cancel);
8
+ export const signal = methodSyscall(references.signal, K.classes.Execution.methods.signal);
9
+ export const resume = methodSyscall(references.resume, K.classes.Execution.methods.resume);
10
+ const remove = methodSyscall(references.delete, K.classes.Execution.methods.delete);
11
+ export { remove as delete };
@@ -20,6 +20,7 @@ declare const Admit: import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
20
20
  }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Function.method.admit"> & {
21
21
  readonly name: "admit";
22
22
  readonly executable: true;
23
+ readonly execution: undefined;
23
24
  };
24
25
  export declare const admit: MethodSyscall<ClassRef<'Function'> & {
25
26
  readonly origin: 'kernel.astrale.ai';
@@ -13,6 +13,7 @@ export declare const delegate: import("./model.js").MethodSyscall<Readonly<{
13
13
  }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.delegate"> & {
14
14
  readonly name: "delegate";
15
15
  readonly executable: true;
16
+ readonly execution: undefined;
16
17
  }>;
17
18
  export declare const can: import("./model.js").MethodSyscall<Readonly<{
18
19
  origin: 'kernel.astrale.ai';
@@ -38,6 +39,7 @@ export declare const can: import("./model.js").MethodSyscall<Readonly<{
38
39
  }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.can"> & {
39
40
  readonly name: "can";
40
41
  readonly executable: true;
42
+ readonly execution: undefined;
41
43
  }>;
42
44
  export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
43
45
  origin: 'kernel.astrale.ai';
@@ -66,6 +68,7 @@ export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
66
68
  }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whoami"> & {
67
69
  readonly name: "whoami";
68
70
  readonly executable: true;
71
+ readonly execution: undefined;
69
72
  }>;
70
73
  export declare const whois: import("./model.js").MethodSyscall<Readonly<{
71
74
  origin: 'kernel.astrale.ai';
@@ -97,6 +100,7 @@ export declare const whois: import("./model.js").MethodSyscall<Readonly<{
97
100
  }, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
98
101
  readonly name: "whois";
99
102
  readonly executable: true;
103
+ readonly execution: undefined;
100
104
  }>;
101
105
  export declare const impersonate: import("./model.js").MethodSyscall<Readonly<{
102
106
  origin: 'kernel.astrale.ai';
@@ -113,6 +117,7 @@ export declare const impersonate: import("./model.js").MethodSyscall<Readonly<{
113
117
  }, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.impersonate"> & {
114
118
  readonly name: "impersonate";
115
119
  readonly executable: true;
120
+ readonly execution: undefined;
116
121
  }>;
117
122
  export declare const mint: import("./model.js").MethodSyscall<Readonly<{
118
123
  origin: 'kernel.astrale.ai';
@@ -128,4 +133,5 @@ export declare const mint: import("./model.js").MethodSyscall<Readonly<{
128
133
  }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
129
134
  readonly name: "mint";
130
135
  readonly executable: true;
136
+ readonly execution: undefined;
131
137
  }>;
@@ -1,5 +1,6 @@
1
1
  export type { FunctionSyscall, MethodSyscall, Syscall, SyscallRef } from './model.js';
2
2
  export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
3
+ export * as execution from './execution.js';
3
4
  export * as identity from './identity.js';
4
5
  export * as function from './function.js';
5
6
  export * as view from './view.js';
@@ -1,4 +1,5 @@
1
1
  export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
2
+ export * as execution from './execution.js';
2
3
  export * as identity from './identity.js';
3
4
  export * as function from './function.js';
4
5
  export * as view from './view.js';
@@ -45,6 +45,7 @@ export declare const resolve: import("./model.js").MethodSyscall<Readonly<{
45
45
  }, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.View.method.resolve"> & {
46
46
  readonly name: "resolve";
47
47
  readonly executable: true;
48
+ readonly execution: undefined;
48
49
  }>;
49
50
  export type { ResolvedView, ViewResolution as Resolution };
50
51
  export declare const acceptResolution: typeof acceptViewResolution;
@@ -1,4 +1,4 @@
1
1
  export type { FunctionSyscall, MethodSyscall, Syscall, SyscallRef } from './descriptors/index.js';
2
2
  export * as references from './references/index.js';
3
3
  export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './descriptors/index.js';
4
- export { function, identity, view } from './descriptors/index.js';
4
+ export { execution, function, identity, view } from './descriptors/index.js';
@@ -1,3 +1,3 @@
1
1
  export * as references from './references/index.js';
2
2
  export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './descriptors/index.js';
3
- export { function, identity, view } from './descriptors/index.js';
3
+ export { execution, function, identity, view } from './descriptors/index.js';
@@ -0,0 +1,55 @@
1
+ export declare const status: Readonly<{
2
+ kind: 'method';
3
+ owner: Readonly<{
4
+ origin: 'kernel.astrale.ai';
5
+ kind: 'class';
6
+ name: 'Execution';
7
+ }>;
8
+ name: "status";
9
+ }>;
10
+ export declare const result: Readonly<{
11
+ kind: 'method';
12
+ owner: Readonly<{
13
+ origin: 'kernel.astrale.ai';
14
+ kind: 'class';
15
+ name: 'Execution';
16
+ }>;
17
+ name: "result";
18
+ }>;
19
+ export declare const cancel: Readonly<{
20
+ kind: 'method';
21
+ owner: Readonly<{
22
+ origin: 'kernel.astrale.ai';
23
+ kind: 'class';
24
+ name: 'Execution';
25
+ }>;
26
+ name: "cancel";
27
+ }>;
28
+ export declare const signal: Readonly<{
29
+ kind: 'method';
30
+ owner: Readonly<{
31
+ origin: 'kernel.astrale.ai';
32
+ kind: 'class';
33
+ name: 'Execution';
34
+ }>;
35
+ name: "signal";
36
+ }>;
37
+ export declare const resume: Readonly<{
38
+ kind: 'method';
39
+ owner: Readonly<{
40
+ origin: 'kernel.astrale.ai';
41
+ kind: 'class';
42
+ name: 'Execution';
43
+ }>;
44
+ name: "resume";
45
+ }>;
46
+ declare const remove: Readonly<{
47
+ kind: 'method';
48
+ owner: Readonly<{
49
+ origin: 'kernel.astrale.ai';
50
+ kind: 'class';
51
+ name: 'Execution';
52
+ }>;
53
+ name: "delete";
54
+ }>;
55
+ export { remove as delete };
@@ -0,0 +1,13 @@
1
+ const owner = Object.freeze({
2
+ origin: 'kernel.astrale.ai',
3
+ kind: 'class',
4
+ name: 'Execution',
5
+ });
6
+ const methodRef = (name) => Object.freeze({ kind: 'method', owner, name });
7
+ export const status = methodRef('status');
8
+ export const result = methodRef('result');
9
+ export const cancel = methodRef('cancel');
10
+ export const signal = methodRef('signal');
11
+ export const resume = methodRef('resume');
12
+ const remove = methodRef('delete');
13
+ export { remove as delete };
@@ -1,5 +1,6 @@
1
1
  export type { FunctionRef, SyscallRef } from './reference.js';
2
2
  export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
3
+ export * as execution from './execution.js';
3
4
  export * as identity from './identity.js';
4
5
  export * as function from './function.js';
5
6
  export * as view from './view.js';
@@ -1,4 +1,5 @@
1
1
  export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
2
+ export * as execution from './execution.js';
2
3
  export * as identity from './identity.js';
3
4
  export * as function from './function.js';
4
5
  export * as view from './view.js';
@@ -0,0 +1,32 @@
1
+ import { type builder } from '@astrale-os/kernel-dsl/v1';
2
+ export declare const CreatedBy: builder.DirectedEdgeClass<{
3
+ readonly depth: 1;
4
+ readonly abstract: false;
5
+ readonly extends: readonly [builder.ClassReferenceProjection<"edge", {
6
+ readonly abstract: true;
7
+ readonly depth: 0;
8
+ readonly properties: never;
9
+ readonly source: {
10
+ readonly as: "source";
11
+ readonly outgoing: "0..*";
12
+ };
13
+ readonly target: {
14
+ readonly as: "target";
15
+ readonly incoming: "0..*";
16
+ };
17
+ readonly constraints: Record<never, never>;
18
+ }, never, never, never>];
19
+ readonly properties: never;
20
+ readonly source: {
21
+ readonly as: "resource";
22
+ readonly outgoing: "0..1";
23
+ };
24
+ readonly target: {
25
+ readonly as: "creator";
26
+ readonly incoming: "0..*";
27
+ };
28
+ readonly constraints: {
29
+ readonly noSelf: true;
30
+ };
31
+ readonly effectiveProperties: never;
32
+ }>;
@@ -0,0 +1,17 @@
1
+ import { edgeClass } from '@astrale-os/kernel-dsl/v1';
2
+ import { Edge } from './edge.js';
3
+ import { Node } from './node.js';
4
+ // Identity composes meta, so meta names it by reference instead of importing it.
5
+ const IdentityRef = {
6
+ origin: 'kernel.astrale.ai',
7
+ kind: 'class',
8
+ name: 'Identity',
9
+ };
10
+ export const CreatedBy = edgeClass.directed({
11
+ abstract: false,
12
+ source: { as: 'resource', accepts: [Node], outgoing: '0..1' },
13
+ target: { as: 'creator', accepts: [IdentityRef], incoming: '0..*' },
14
+ description: 'Kernel-authored attribution of a Node to the Identity whose call created it; it grants no authority by itself.',
15
+ extends: [Edge],
16
+ constraints: { noSelf: true },
17
+ });
@@ -1,3 +1,4 @@
1
+ export { CreatedBy } from './created-by.js';
1
2
  export { Descriptable } from './descriptable.js';
2
3
  export { Edge } from './edge.js';
3
4
  export { Iconable } from './iconable.js';
@@ -1,3 +1,4 @@
1
+ export { CreatedBy } from './created-by.js';
1
2
  export { Descriptable } from './descriptable.js';
2
3
  export { Edge } from './edge.js';
3
4
  export { Iconable } from './iconable.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-core",
3
- "version": "0.9.0-beta.55",
3
+ "version": "0.9.0-beta.56",
4
4
  "description": "Astrale Kernel Core - Types, Invariants, and Pure Logic",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -160,7 +160,7 @@
160
160
  "access": "public"
161
161
  },
162
162
  "dependencies": {
163
- "@astrale-os/kernel-dsl": "0.2.0-beta.40",
163
+ "@astrale-os/kernel-dsl": "0.2.0-beta.41",
164
164
  "@noble/hashes": "2.3.0",
165
165
  "@types/json-schema": "^7.0.15",
166
166
  "dequal": "2.0.3"