@astrale-os/kernel-core 1.0.0-beta.4 → 1.0.0-beta.6

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 (25) hide show
  1. package/dist/callable/invocation/result.d.ts +8 -1
  2. package/dist/schema/callables/execution.d.ts +300 -0
  3. package/dist/schema/callables/function.js +2 -1
  4. package/dist/schema/kernel/schema.d.ts +435 -17
  5. package/dist/schema/kernel/syscalls/contracts/execution.d.ts +241 -1
  6. package/dist/schema/kernel/syscalls/contracts/execution.js +77 -7
  7. package/dist/schema/kernel/syscalls/contracts/index.d.ts +2 -2
  8. package/dist/schema/kernel/syscalls/contracts/index.js +2 -2
  9. package/dist/schema/kernel/syscalls/contracts/install.d.ts +160 -0
  10. package/dist/schema/kernel/syscalls/contracts/install.js +48 -2
  11. package/dist/schema/kernel/syscalls/contracts/installation.d.ts +5 -0
  12. package/dist/schema/kernel/syscalls/contracts/installation.js +1 -1
  13. package/dist/schema/kernel/syscalls/contracts/query.d.ts +7 -0
  14. package/dist/schema/kernel/syscalls/contracts/query.js +8 -1
  15. package/dist/schema/kernel/syscalls/contracts/uninstall.d.ts +1 -0
  16. package/dist/schema/kernel/syscalls/contracts/uninstall.js +1 -0
  17. package/dist/schema/kernel/syscalls/declarations/execution.d.ts +150 -0
  18. package/dist/schema/kernel/syscalls/declarations/index.d.ts +212 -3
  19. package/dist/schema/kernel/syscalls/declarations/install.d.ts +58 -2
  20. package/dist/schema/kernel/syscalls/declarations/install.js +6 -4
  21. package/dist/schema/kernel/syscalls/declarations/query.d.ts +1 -0
  22. package/dist/schema/kernel/syscalls/declarations/uninstall.d.ts +3 -1
  23. package/dist/schema/kernel/syscalls/declarations/uninstall.js +2 -0
  24. package/dist/schema/kernel/syscalls/descriptors/execution.d.ts +150 -0
  25. package/package.json +1 -1
@@ -10,6 +10,39 @@ export declare const status: import("./model.js").MethodSyscall<Readonly<{
10
10
  version: string;
11
11
  state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
12
12
  createdAt: string;
13
+ detail?: {
14
+ phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
15
+ class?: "immediate" | "noop" | "revalidate" | undefined;
16
+ mode?: "maintenance" | "online" | undefined;
17
+ validation?: {
18
+ scope: "full" | "incremental";
19
+ counts: "exact" | "sample";
20
+ } | undefined;
21
+ progress?: {
22
+ pages: number;
23
+ interruptions: number;
24
+ } | undefined;
25
+ instance?: "attempt" | "draining" | "open" | "repair" | undefined;
26
+ command?: number | undefined;
27
+ expires?: number | undefined;
28
+ attempt?: {
29
+ number: number;
30
+ destination: "previous" | "target";
31
+ } | undefined;
32
+ report?: {
33
+ attempt: number;
34
+ destination: "previous" | "target";
35
+ result: "aborted" | "interrupted" | "migration-required";
36
+ reason?: string | undefined;
37
+ summary?: unknown;
38
+ } | undefined;
39
+ uncertified?: {
40
+ since: number;
41
+ session?: string | undefined;
42
+ operator?: string | undefined;
43
+ reason?: string | undefined;
44
+ } | undefined;
45
+ } | undefined;
13
46
  outcome?: {
14
47
  kind: "completed";
15
48
  value: unknown;
@@ -24,6 +57,23 @@ export declare const status: import("./model.js").MethodSyscall<Readonly<{
24
57
  } | {
25
58
  kind: "cancelled";
26
59
  } | undefined;
60
+ } | {
61
+ id: string;
62
+ state: "deleted";
63
+ outcome: {
64
+ kind: "completed";
65
+ value: unknown;
66
+ } | {
67
+ kind: "failed";
68
+ error: {
69
+ code: string;
70
+ message: string;
71
+ family?: string | undefined;
72
+ details?: unknown;
73
+ };
74
+ } | {
75
+ kind: "cancelled";
76
+ };
27
77
  };
28
78
  }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Execution.method.status"> & {
29
79
  readonly name: "status";
@@ -71,6 +121,39 @@ export declare const cancel: import("./model.js").MethodSyscall<Readonly<{
71
121
  version: string;
72
122
  state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
73
123
  createdAt: string;
124
+ detail?: {
125
+ phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
126
+ class?: "immediate" | "noop" | "revalidate" | undefined;
127
+ mode?: "maintenance" | "online" | undefined;
128
+ validation?: {
129
+ scope: "full" | "incremental";
130
+ counts: "exact" | "sample";
131
+ } | undefined;
132
+ progress?: {
133
+ pages: number;
134
+ interruptions: number;
135
+ } | undefined;
136
+ instance?: "attempt" | "draining" | "open" | "repair" | undefined;
137
+ command?: number | undefined;
138
+ expires?: number | undefined;
139
+ attempt?: {
140
+ number: number;
141
+ destination: "previous" | "target";
142
+ } | undefined;
143
+ report?: {
144
+ attempt: number;
145
+ destination: "previous" | "target";
146
+ result: "aborted" | "interrupted" | "migration-required";
147
+ reason?: string | undefined;
148
+ summary?: unknown;
149
+ } | undefined;
150
+ uncertified?: {
151
+ since: number;
152
+ session?: string | undefined;
153
+ operator?: string | undefined;
154
+ reason?: string | undefined;
155
+ } | undefined;
156
+ } | undefined;
74
157
  outcome?: {
75
158
  kind: "completed";
76
159
  value: unknown;
@@ -85,6 +168,23 @@ export declare const cancel: import("./model.js").MethodSyscall<Readonly<{
85
168
  } | {
86
169
  kind: "cancelled";
87
170
  } | undefined;
171
+ } | {
172
+ id: string;
173
+ state: "deleted";
174
+ outcome: {
175
+ kind: "completed";
176
+ value: unknown;
177
+ } | {
178
+ kind: "failed";
179
+ error: {
180
+ code: string;
181
+ message: string;
182
+ family?: string | undefined;
183
+ details?: unknown;
184
+ };
185
+ } | {
186
+ kind: "cancelled";
187
+ };
88
188
  };
89
189
  }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Execution.method.cancel"> & {
90
190
  readonly name: "cancel";
@@ -118,6 +218,39 @@ export declare const resume: import("./model.js").MethodSyscall<Readonly<{
118
218
  version: string;
119
219
  state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
120
220
  createdAt: string;
221
+ detail?: {
222
+ phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
223
+ class?: "immediate" | "noop" | "revalidate" | undefined;
224
+ mode?: "maintenance" | "online" | undefined;
225
+ validation?: {
226
+ scope: "full" | "incremental";
227
+ counts: "exact" | "sample";
228
+ } | undefined;
229
+ progress?: {
230
+ pages: number;
231
+ interruptions: number;
232
+ } | undefined;
233
+ instance?: "attempt" | "draining" | "open" | "repair" | undefined;
234
+ command?: number | undefined;
235
+ expires?: number | undefined;
236
+ attempt?: {
237
+ number: number;
238
+ destination: "previous" | "target";
239
+ } | undefined;
240
+ report?: {
241
+ attempt: number;
242
+ destination: "previous" | "target";
243
+ result: "aborted" | "interrupted" | "migration-required";
244
+ reason?: string | undefined;
245
+ summary?: unknown;
246
+ } | undefined;
247
+ uncertified?: {
248
+ since: number;
249
+ session?: string | undefined;
250
+ operator?: string | undefined;
251
+ reason?: string | undefined;
252
+ } | undefined;
253
+ } | undefined;
121
254
  outcome?: {
122
255
  kind: "completed";
123
256
  value: unknown;
@@ -132,6 +265,23 @@ export declare const resume: import("./model.js").MethodSyscall<Readonly<{
132
265
  } | {
133
266
  kind: "cancelled";
134
267
  } | undefined;
268
+ } | {
269
+ id: string;
270
+ state: "deleted";
271
+ outcome: {
272
+ kind: "completed";
273
+ value: unknown;
274
+ } | {
275
+ kind: "failed";
276
+ error: {
277
+ code: string;
278
+ message: string;
279
+ family?: string | undefined;
280
+ details?: unknown;
281
+ };
282
+ } | {
283
+ kind: "cancelled";
284
+ };
135
285
  };
136
286
  }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Execution.method.resume"> & {
137
287
  readonly name: "resume";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-core",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "Astrale Kernel Core - Types, Invariants, and Pure Logic",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {