@astrale-os/kernel-core 0.9.0-beta.32 → 0.9.0-beta.34
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/schema/kernel/schema.d.ts +12 -6
- package/dist/schema/kernel/syscalls/contracts/uninstall.d.ts +11 -5
- package/dist/schema/kernel/syscalls/contracts/uninstall.js +4 -3
- package/dist/schema/kernel/syscalls/declarations/index.d.ts +6 -3
- package/dist/schema/kernel/syscalls/declarations/uninstall.d.ts +6 -3
- package/package.json +2 -2
|
@@ -5271,12 +5271,15 @@ declare const KernelDefinitions: {
|
|
|
5271
5271
|
}, "authenticated", false, "default">>;
|
|
5272
5272
|
uninstall: builder.Function<builder.CallableProjection<{
|
|
5273
5273
|
operation: string;
|
|
5274
|
-
|
|
5274
|
+
domains: string[];
|
|
5275
|
+
data: {
|
|
5276
|
+
mode: "destructive" | "safe";
|
|
5277
|
+
};
|
|
5275
5278
|
}, {
|
|
5276
5279
|
readonly mode: 'value';
|
|
5277
5280
|
readonly value: {
|
|
5278
5281
|
operation: string;
|
|
5279
|
-
|
|
5282
|
+
transitions: {
|
|
5280
5283
|
intent: {
|
|
5281
5284
|
transition: string;
|
|
5282
5285
|
operation: string;
|
|
@@ -5304,7 +5307,7 @@ declare const KernelDefinitions: {
|
|
|
5304
5307
|
meaning: string;
|
|
5305
5308
|
}[];
|
|
5306
5309
|
} | undefined;
|
|
5307
|
-
};
|
|
5310
|
+
}[];
|
|
5308
5311
|
};
|
|
5309
5312
|
}, "authorized", false, "default">>;
|
|
5310
5313
|
journal: builder.Function<builder.CallableProjection<{
|
|
@@ -6419,12 +6422,15 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
6419
6422
|
readonly key: "kernel.astrale.ai:function.query";
|
|
6420
6423
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
6421
6424
|
operation: string;
|
|
6422
|
-
|
|
6425
|
+
domains: string[];
|
|
6426
|
+
data: {
|
|
6427
|
+
mode: "destructive" | "safe";
|
|
6428
|
+
};
|
|
6423
6429
|
}, {
|
|
6424
6430
|
readonly mode: 'value';
|
|
6425
6431
|
readonly value: {
|
|
6426
6432
|
operation: string;
|
|
6427
|
-
|
|
6433
|
+
transitions: {
|
|
6428
6434
|
intent: {
|
|
6429
6435
|
transition: string;
|
|
6430
6436
|
operation: string;
|
|
@@ -6452,7 +6458,7 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
6452
6458
|
meaning: string;
|
|
6453
6459
|
}[];
|
|
6454
6460
|
} | undefined;
|
|
6455
|
-
};
|
|
6461
|
+
}[];
|
|
6456
6462
|
};
|
|
6457
6463
|
}, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
|
|
6458
6464
|
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"uninstall"> & {
|
|
@@ -2,11 +2,14 @@ import type { OperationId } from '../../../installation/operation-id.js';
|
|
|
2
2
|
import type { TransitionReceipt } from './install.js';
|
|
3
3
|
export declare const uninstallInput: import("zod").ZodObject<{
|
|
4
4
|
operation: import("zod").ZodString;
|
|
5
|
-
|
|
5
|
+
domains: import("zod").ZodArray<import("zod").ZodString>;
|
|
6
|
+
data: import("zod").ZodObject<{
|
|
7
|
+
mode: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"safe">, import("zod").ZodLiteral<"destructive">]>;
|
|
8
|
+
}, import("zod/v4/core").$strict>;
|
|
6
9
|
}, import("zod/v4/core").$strict>;
|
|
7
10
|
export declare const uninstallOutput: import("zod").ZodObject<{
|
|
8
11
|
operation: import("zod").ZodString;
|
|
9
|
-
|
|
12
|
+
transitions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
10
13
|
intent: import("zod").ZodObject<{
|
|
11
14
|
transition: import("zod").ZodString;
|
|
12
15
|
operation: import("zod").ZodString;
|
|
@@ -37,13 +40,16 @@ export declare const uninstallOutput: import("zod").ZodObject<{
|
|
|
37
40
|
meaning: import("zod").ZodString;
|
|
38
41
|
}, import("zod/v4/core").$strict>>;
|
|
39
42
|
}, import("zod/v4/core").$strict>>;
|
|
40
|
-
}, import("zod/v4/core").$strict
|
|
43
|
+
}, import("zod/v4/core").$strict>>;
|
|
41
44
|
}, import("zod/v4/core").$strict>;
|
|
42
45
|
export interface UninstallInput {
|
|
43
46
|
readonly operation: OperationId;
|
|
44
|
-
readonly
|
|
47
|
+
readonly domains: readonly [string, ...string[]];
|
|
48
|
+
readonly data: {
|
|
49
|
+
readonly mode: 'safe' | 'destructive';
|
|
50
|
+
};
|
|
45
51
|
}
|
|
46
52
|
export interface UninstallOutput {
|
|
47
53
|
readonly operation: OperationId;
|
|
48
|
-
readonly
|
|
54
|
+
readonly transitions: readonly [TransitionReceipt, ...TransitionReceipt[]];
|
|
49
55
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { strictObject } from 'zod';
|
|
1
|
+
import { array, literal, strictObject, union } from 'zod';
|
|
2
2
|
import { installationText, operationIdSchema, transitionReceipt } from './installation.js';
|
|
3
3
|
export const uninstallInput = strictObject({
|
|
4
4
|
operation: operationIdSchema,
|
|
5
|
-
|
|
5
|
+
domains: array(installationText).min(1),
|
|
6
|
+
data: strictObject({ mode: union([literal('safe'), literal('destructive')]) }),
|
|
6
7
|
});
|
|
7
8
|
export const uninstallOutput = strictObject({
|
|
8
9
|
operation: operationIdSchema,
|
|
9
|
-
|
|
10
|
+
transitions: array(transitionReceipt).min(1),
|
|
10
11
|
});
|
|
@@ -746,12 +746,15 @@ export declare const Functions: Readonly<{
|
|
|
746
746
|
}, "authenticated", false, "default">>;
|
|
747
747
|
uninstall: builder.Function<builder.CallableProjection<{
|
|
748
748
|
operation: string;
|
|
749
|
-
|
|
749
|
+
domains: string[];
|
|
750
|
+
data: {
|
|
751
|
+
mode: "destructive" | "safe";
|
|
752
|
+
};
|
|
750
753
|
}, {
|
|
751
754
|
readonly mode: 'value';
|
|
752
755
|
readonly value: {
|
|
753
756
|
operation: string;
|
|
754
|
-
|
|
757
|
+
transitions: {
|
|
755
758
|
intent: {
|
|
756
759
|
transition: string;
|
|
757
760
|
operation: string;
|
|
@@ -779,7 +782,7 @@ export declare const Functions: Readonly<{
|
|
|
779
782
|
meaning: string;
|
|
780
783
|
}[];
|
|
781
784
|
} | undefined;
|
|
782
|
-
};
|
|
785
|
+
}[];
|
|
783
786
|
};
|
|
784
787
|
}, "authorized", false, "default">>;
|
|
785
788
|
journal: builder.Function<builder.CallableProjection<{
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
2
2
|
export declare const Uninstall: builder.Function<builder.CallableProjection<{
|
|
3
3
|
operation: string;
|
|
4
|
-
|
|
4
|
+
domains: string[];
|
|
5
|
+
data: {
|
|
6
|
+
mode: "destructive" | "safe";
|
|
7
|
+
};
|
|
5
8
|
}, {
|
|
6
9
|
readonly mode: 'value';
|
|
7
10
|
readonly value: {
|
|
8
11
|
operation: string;
|
|
9
|
-
|
|
12
|
+
transitions: {
|
|
10
13
|
intent: {
|
|
11
14
|
transition: string;
|
|
12
15
|
operation: string;
|
|
@@ -34,6 +37,6 @@ export declare const Uninstall: builder.Function<builder.CallableProjection<{
|
|
|
34
37
|
meaning: string;
|
|
35
38
|
}[];
|
|
36
39
|
} | undefined;
|
|
37
|
-
};
|
|
40
|
+
}[];
|
|
38
41
|
};
|
|
39
42
|
}, "authorized", false, "default">>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/kernel-core",
|
|
3
|
-
"version": "0.9.0-beta.
|
|
3
|
+
"version": "0.9.0-beta.34",
|
|
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.
|
|
163
|
+
"@astrale-os/kernel-dsl": "0.2.0-beta.25",
|
|
164
164
|
"@noble/hashes": "2.3.0",
|
|
165
165
|
"@types/json-schema": "^7.0.15",
|
|
166
166
|
"dequal": "2.0.3"
|