@astrale-os/kernel-core 1.0.0-beta.5 → 1.0.0-beta.7
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.
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import type { NodeId } from '@astrale-os/kernel-core/graph/node';
|
|
1
2
|
import type { BinaryOutput } from '../contract/index.js';
|
|
2
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Successful result of invoking a callable: its output in the declared mode, or the Execution a
|
|
5
|
+
* durable callable started, whose outcome later carries that output.
|
|
6
|
+
*/
|
|
3
7
|
export type CallableResult<Output, Stream extends AsyncIterable<Output>> = {
|
|
4
8
|
readonly kind: 'value';
|
|
5
9
|
readonly value: Output;
|
|
@@ -9,4 +13,7 @@ export type CallableResult<Output, Stream extends AsyncIterable<Output>> = {
|
|
|
9
13
|
} | {
|
|
10
14
|
readonly kind: 'binary';
|
|
11
15
|
readonly value: BinaryOutput;
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: 'execution';
|
|
18
|
+
readonly execution: NodeId;
|
|
12
19
|
};
|
|
@@ -9142,7 +9142,23 @@ export declare const AuthorityRelations: Readonly<{
|
|
|
9142
9142
|
};
|
|
9143
9143
|
}>;
|
|
9144
9144
|
/** Exact authorized Kernel Functions for which pristine Root receives direct can_use authority. */
|
|
9145
|
-
export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-dsl/v1").ResolvedFunction<
|
|
9145
|
+
export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
9146
|
+
node: string;
|
|
9147
|
+
property: string;
|
|
9148
|
+
} | {
|
|
9149
|
+
slots: {
|
|
9150
|
+
node: string;
|
|
9151
|
+
property: string;
|
|
9152
|
+
}[];
|
|
9153
|
+
}, {
|
|
9154
|
+
readonly mode: 'binary';
|
|
9155
|
+
}, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
|
|
9156
|
+
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"download"> & {
|
|
9157
|
+
readonly origin: "kernel.astrale.ai";
|
|
9158
|
+
};
|
|
9159
|
+
readonly key: "kernel.astrale.ai:function.download";
|
|
9160
|
+
readonly execution: undefined;
|
|
9161
|
+
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<import("@astrale-os/kernel-dsl/v1").BinaryInputProjection<{
|
|
9146
9162
|
mediaType: string;
|
|
9147
9163
|
}>, {
|
|
9148
9164
|
readonly mode: 'value';
|
|
@@ -9161,95 +9177,6 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
9161
9177
|
};
|
|
9162
9178
|
readonly key: "kernel.astrale.ai:function.upload";
|
|
9163
9179
|
readonly execution: undefined;
|
|
9164
|
-
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
9165
|
-
operation: string;
|
|
9166
|
-
domains: ({
|
|
9167
|
-
artifact: {
|
|
9168
|
-
digest: string;
|
|
9169
|
-
mediaType: string;
|
|
9170
|
-
size: number;
|
|
9171
|
-
};
|
|
9172
|
-
currentRevision?: string | null | undefined;
|
|
9173
|
-
} | {
|
|
9174
|
-
release: {
|
|
9175
|
-
url: string;
|
|
9176
|
-
token?: string | undefined;
|
|
9177
|
-
digest?: string | undefined;
|
|
9178
|
-
};
|
|
9179
|
-
consent?: {
|
|
9180
|
-
issuer: {
|
|
9181
|
-
from: string;
|
|
9182
|
-
to: string;
|
|
9183
|
-
};
|
|
9184
|
-
previous?: "drain" | "revoke" | undefined;
|
|
9185
|
-
} | undefined;
|
|
9186
|
-
revision?: string | undefined;
|
|
9187
|
-
currentRevision?: string | null | undefined;
|
|
9188
|
-
})[];
|
|
9189
|
-
mode?: "maintenance" | "online" | undefined;
|
|
9190
|
-
validation?: {
|
|
9191
|
-
scope?: "full" | "incremental" | undefined;
|
|
9192
|
-
counts?: "exact" | "sample" | undefined;
|
|
9193
|
-
} | undefined;
|
|
9194
|
-
}, {
|
|
9195
|
-
readonly mode: 'value';
|
|
9196
|
-
readonly value: {
|
|
9197
|
-
changed: true;
|
|
9198
|
-
receipt: {
|
|
9199
|
-
operation: string;
|
|
9200
|
-
transitions: {
|
|
9201
|
-
intent: {
|
|
9202
|
-
transition: string;
|
|
9203
|
-
operation: string;
|
|
9204
|
-
origin: string;
|
|
9205
|
-
previous: {
|
|
9206
|
-
origin: string;
|
|
9207
|
-
revision: string;
|
|
9208
|
-
generation: string;
|
|
9209
|
-
} | null;
|
|
9210
|
-
generation: {
|
|
9211
|
-
origin: string;
|
|
9212
|
-
revision: string;
|
|
9213
|
-
generation: string;
|
|
9214
|
-
} | null;
|
|
9215
|
-
consent?: {
|
|
9216
|
-
issuer: {
|
|
9217
|
-
from: string;
|
|
9218
|
-
to: string;
|
|
9219
|
-
};
|
|
9220
|
-
previous: "drain" | "revoke";
|
|
9221
|
-
} | undefined;
|
|
9222
|
-
};
|
|
9223
|
-
phase: "converge" | "cutover";
|
|
9224
|
-
state: "committed";
|
|
9225
|
-
readiness?: {
|
|
9226
|
-
generation: string;
|
|
9227
|
-
transition: string;
|
|
9228
|
-
dependencies: {
|
|
9229
|
-
origin: string;
|
|
9230
|
-
generation: string;
|
|
9231
|
-
readiness: string;
|
|
9232
|
-
meaning: string;
|
|
9233
|
-
}[];
|
|
9234
|
-
} | undefined;
|
|
9235
|
-
}[];
|
|
9236
|
-
};
|
|
9237
|
-
} | {
|
|
9238
|
-
changed: false;
|
|
9239
|
-
domains: {
|
|
9240
|
-
origin: string;
|
|
9241
|
-
revision: string;
|
|
9242
|
-
generation: string;
|
|
9243
|
-
}[];
|
|
9244
|
-
};
|
|
9245
|
-
}, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
|
|
9246
|
-
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"install"> & {
|
|
9247
|
-
readonly origin: "kernel.astrale.ai";
|
|
9248
|
-
};
|
|
9249
|
-
readonly key: "kernel.astrale.ai:function.install";
|
|
9250
|
-
readonly execution: {
|
|
9251
|
-
readonly durable: true;
|
|
9252
|
-
};
|
|
9253
9180
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
9254
9181
|
ast: {
|
|
9255
9182
|
format: "astrale.graph.mutation";
|
|
@@ -9849,20 +9776,120 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
9849
9776
|
readonly key: "kernel.astrale.ai:function.journal";
|
|
9850
9777
|
readonly execution: undefined;
|
|
9851
9778
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9779
|
+
operation: string;
|
|
9780
|
+
domains: ({
|
|
9781
|
+
artifact: {
|
|
9782
|
+
digest: string;
|
|
9783
|
+
mediaType: string;
|
|
9784
|
+
size: number;
|
|
9785
|
+
};
|
|
9786
|
+
currentRevision?: string | null | undefined;
|
|
9787
|
+
} | {
|
|
9788
|
+
release: {
|
|
9789
|
+
url: string;
|
|
9790
|
+
token?: string | undefined;
|
|
9791
|
+
digest?: string | undefined;
|
|
9792
|
+
};
|
|
9793
|
+
consent?: {
|
|
9794
|
+
issuer: {
|
|
9795
|
+
from: string;
|
|
9796
|
+
to: string;
|
|
9797
|
+
};
|
|
9798
|
+
previous?: "drain" | "revoke" | undefined;
|
|
9799
|
+
} | undefined;
|
|
9800
|
+
revision?: string | undefined;
|
|
9801
|
+
currentRevision?: string | null | undefined;
|
|
9802
|
+
})[];
|
|
9803
|
+
mode?: "maintenance" | "online" | undefined;
|
|
9804
|
+
validation?: {
|
|
9805
|
+
scope?: "full" | "incremental" | undefined;
|
|
9806
|
+
counts?: "exact" | "sample" | undefined;
|
|
9807
|
+
} | undefined;
|
|
9859
9808
|
}, {
|
|
9860
|
-
readonly mode: '
|
|
9809
|
+
readonly mode: 'value';
|
|
9810
|
+
readonly value: {
|
|
9811
|
+
changed: true;
|
|
9812
|
+
receipt: {
|
|
9813
|
+
operation: string;
|
|
9814
|
+
transitions: {
|
|
9815
|
+
intent: {
|
|
9816
|
+
transition: string;
|
|
9817
|
+
operation: string;
|
|
9818
|
+
origin: string;
|
|
9819
|
+
previous: {
|
|
9820
|
+
origin: string;
|
|
9821
|
+
revision: string;
|
|
9822
|
+
generation: string;
|
|
9823
|
+
} | null;
|
|
9824
|
+
generation: {
|
|
9825
|
+
origin: string;
|
|
9826
|
+
revision: string;
|
|
9827
|
+
generation: string;
|
|
9828
|
+
} | null;
|
|
9829
|
+
consent?: {
|
|
9830
|
+
issuer: {
|
|
9831
|
+
from: string;
|
|
9832
|
+
to: string;
|
|
9833
|
+
};
|
|
9834
|
+
previous: "drain" | "revoke";
|
|
9835
|
+
} | undefined;
|
|
9836
|
+
};
|
|
9837
|
+
phase: "converge" | "cutover";
|
|
9838
|
+
state: "committed";
|
|
9839
|
+
readiness?: {
|
|
9840
|
+
generation: string;
|
|
9841
|
+
transition: string;
|
|
9842
|
+
dependencies: {
|
|
9843
|
+
origin: string;
|
|
9844
|
+
generation: string;
|
|
9845
|
+
readiness: string;
|
|
9846
|
+
meaning: string;
|
|
9847
|
+
}[];
|
|
9848
|
+
} | undefined;
|
|
9849
|
+
}[];
|
|
9850
|
+
};
|
|
9851
|
+
} | {
|
|
9852
|
+
changed: false;
|
|
9853
|
+
domains: {
|
|
9854
|
+
origin: string;
|
|
9855
|
+
revision: string;
|
|
9856
|
+
generation: string;
|
|
9857
|
+
}[];
|
|
9858
|
+
};
|
|
9861
9859
|
}, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
|
|
9862
|
-
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"
|
|
9860
|
+
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"install"> & {
|
|
9863
9861
|
readonly origin: "kernel.astrale.ai";
|
|
9864
9862
|
};
|
|
9865
|
-
readonly key: "kernel.astrale.ai:function.
|
|
9863
|
+
readonly key: "kernel.astrale.ai:function.install";
|
|
9864
|
+
readonly execution: {
|
|
9865
|
+
readonly durable: true;
|
|
9866
|
+
};
|
|
9867
|
+
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
9868
|
+
iss: string;
|
|
9869
|
+
sub: string;
|
|
9870
|
+
}, {
|
|
9871
|
+
readonly mode: 'value';
|
|
9872
|
+
readonly value: {
|
|
9873
|
+
id: string;
|
|
9874
|
+
iss: string;
|
|
9875
|
+
sub: string;
|
|
9876
|
+
frozen: boolean;
|
|
9877
|
+
requiredClaims: ({
|
|
9878
|
+
claim: string;
|
|
9879
|
+
op: "contains";
|
|
9880
|
+
value: unknown;
|
|
9881
|
+
} | {
|
|
9882
|
+
claim: string;
|
|
9883
|
+
op: "eq";
|
|
9884
|
+
value: unknown;
|
|
9885
|
+
} | {
|
|
9886
|
+
claim: string;
|
|
9887
|
+
op: "exists";
|
|
9888
|
+
})[];
|
|
9889
|
+
} | null;
|
|
9890
|
+
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.whois"> & {
|
|
9891
|
+
readonly name: "whois";
|
|
9892
|
+
readonly executable: true;
|
|
9866
9893
|
readonly execution: undefined;
|
|
9867
9894
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
9868
9895
|
audience?: string | undefined;
|
|
@@ -9907,33 +9934,6 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
9907
9934
|
readonly name: "resolve";
|
|
9908
9935
|
readonly executable: true;
|
|
9909
9936
|
readonly execution: undefined;
|
|
9910
|
-
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
9911
|
-
iss: string;
|
|
9912
|
-
sub: string;
|
|
9913
|
-
}, {
|
|
9914
|
-
readonly mode: 'value';
|
|
9915
|
-
readonly value: {
|
|
9916
|
-
id: string;
|
|
9917
|
-
iss: string;
|
|
9918
|
-
sub: string;
|
|
9919
|
-
frozen: boolean;
|
|
9920
|
-
requiredClaims: ({
|
|
9921
|
-
claim: string;
|
|
9922
|
-
op: "contains";
|
|
9923
|
-
value: unknown;
|
|
9924
|
-
} | {
|
|
9925
|
-
claim: string;
|
|
9926
|
-
op: "eq";
|
|
9927
|
-
value: unknown;
|
|
9928
|
-
} | {
|
|
9929
|
-
claim: string;
|
|
9930
|
-
op: "exists";
|
|
9931
|
-
})[];
|
|
9932
|
-
} | null;
|
|
9933
|
-
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.whois"> & {
|
|
9934
|
-
readonly name: "whois";
|
|
9935
|
-
readonly executable: true;
|
|
9936
|
-
readonly execution: undefined;
|
|
9937
9937
|
}))[];
|
|
9938
9938
|
export { AuthorityOperationOrder, AuthorityOperations, operationOf } from '../authority/index.js';
|
|
9939
9939
|
export type { AuthorityOperation, AuthorityRelation } from '../authority/index.js';
|
|
@@ -56,6 +56,12 @@ export declare const uninstallOutput: import("zod").ZodObject<{
|
|
|
56
56
|
export interface UninstallInput {
|
|
57
57
|
readonly operation: OperationId;
|
|
58
58
|
readonly domains: readonly [string, ...string[]];
|
|
59
|
+
/**
|
|
60
|
+
* `safe` refuses while facts of their Classes remain, whatever their number. `destructive`
|
|
61
|
+
* deletes those facts in the uninstall's one activation, at most the Host's projection bound of
|
|
62
|
+
* each Class (`maximumProjectionFacts`, 10,000 facts in the production profile), and refuses a
|
|
63
|
+
* larger Class `budget-exceeded`: delete its facts beyond the bound first.
|
|
64
|
+
*/
|
|
59
65
|
readonly data: {
|
|
60
66
|
readonly mode: 'safe' | 'destructive';
|
|
61
67
|
};
|