@astrale-os/kernel-core 1.0.0-beta.6 → 1.0.0-beta.8
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.
|
@@ -2,7 +2,7 @@ import type { NodeId } from '@astrale-os/kernel-core/graph/node';
|
|
|
2
2
|
import type { BinaryOutput } from '../contract/index.js';
|
|
3
3
|
/**
|
|
4
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.
|
|
5
|
+
* durable callable started or replayed, whose outcome later carries that output.
|
|
6
6
|
*/
|
|
7
7
|
export type CallableResult<Output, Stream extends AsyncIterable<Output>> = {
|
|
8
8
|
readonly kind: 'value';
|
|
@@ -16,4 +16,6 @@ export type CallableResult<Output, Stream extends AsyncIterable<Output>> = {
|
|
|
16
16
|
} | {
|
|
17
17
|
readonly kind: 'execution';
|
|
18
18
|
readonly execution: NodeId;
|
|
19
|
+
/** False when this call created the Execution, true when its key already named it. */
|
|
20
|
+
readonly replayed: boolean;
|
|
19
21
|
};
|
|
@@ -9158,127 +9158,24 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
9158
9158
|
};
|
|
9159
9159
|
readonly key: "kernel.astrale.ai:function.download";
|
|
9160
9160
|
readonly execution: undefined;
|
|
9161
|
-
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9161
|
+
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<import("@astrale-os/kernel-dsl/v1").BinaryInputProjection<{
|
|
9162
|
+
mediaType: string;
|
|
9163
|
+
}>, {
|
|
9164
|
+
readonly mode: 'value';
|
|
9165
|
+
readonly value: {
|
|
9166
|
+
receipt: string;
|
|
9167
|
+
ref: {
|
|
9165
9168
|
digest: string;
|
|
9166
9169
|
mediaType: string;
|
|
9167
9170
|
size: number;
|
|
9168
9171
|
};
|
|
9169
|
-
|
|
9170
|
-
} | {
|
|
9171
|
-
release: {
|
|
9172
|
-
url: string;
|
|
9173
|
-
token?: string | undefined;
|
|
9174
|
-
digest?: string | undefined;
|
|
9175
|
-
};
|
|
9176
|
-
consent?: {
|
|
9177
|
-
issuer: {
|
|
9178
|
-
from: string;
|
|
9179
|
-
to: string;
|
|
9180
|
-
};
|
|
9181
|
-
previous?: "drain" | "revoke" | undefined;
|
|
9182
|
-
} | undefined;
|
|
9183
|
-
revision?: string | undefined;
|
|
9184
|
-
currentRevision?: string | null | undefined;
|
|
9185
|
-
})[];
|
|
9186
|
-
mode?: "maintenance" | "online" | undefined;
|
|
9187
|
-
validation?: {
|
|
9188
|
-
scope?: "full" | "incremental" | undefined;
|
|
9189
|
-
counts?: "exact" | "sample" | undefined;
|
|
9190
|
-
} | undefined;
|
|
9191
|
-
}, {
|
|
9192
|
-
readonly mode: 'value';
|
|
9193
|
-
readonly value: {
|
|
9194
|
-
changed: true;
|
|
9195
|
-
receipt: {
|
|
9196
|
-
operation: string;
|
|
9197
|
-
transitions: {
|
|
9198
|
-
intent: {
|
|
9199
|
-
transition: string;
|
|
9200
|
-
operation: string;
|
|
9201
|
-
origin: string;
|
|
9202
|
-
previous: {
|
|
9203
|
-
origin: string;
|
|
9204
|
-
revision: string;
|
|
9205
|
-
generation: string;
|
|
9206
|
-
} | null;
|
|
9207
|
-
generation: {
|
|
9208
|
-
origin: string;
|
|
9209
|
-
revision: string;
|
|
9210
|
-
generation: string;
|
|
9211
|
-
} | null;
|
|
9212
|
-
consent?: {
|
|
9213
|
-
issuer: {
|
|
9214
|
-
from: string;
|
|
9215
|
-
to: string;
|
|
9216
|
-
};
|
|
9217
|
-
previous: "drain" | "revoke";
|
|
9218
|
-
} | undefined;
|
|
9219
|
-
};
|
|
9220
|
-
phase: "converge" | "cutover";
|
|
9221
|
-
state: "committed";
|
|
9222
|
-
readiness?: {
|
|
9223
|
-
generation: string;
|
|
9224
|
-
transition: string;
|
|
9225
|
-
dependencies: {
|
|
9226
|
-
origin: string;
|
|
9227
|
-
generation: string;
|
|
9228
|
-
readiness: string;
|
|
9229
|
-
meaning: string;
|
|
9230
|
-
}[];
|
|
9231
|
-
} | undefined;
|
|
9232
|
-
}[];
|
|
9233
|
-
};
|
|
9234
|
-
} | {
|
|
9235
|
-
changed: false;
|
|
9236
|
-
domains: {
|
|
9237
|
-
origin: string;
|
|
9238
|
-
revision: string;
|
|
9239
|
-
generation: string;
|
|
9240
|
-
}[];
|
|
9241
|
-
};
|
|
9242
|
-
}, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
|
|
9243
|
-
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"install"> & {
|
|
9244
|
-
readonly origin: "kernel.astrale.ai";
|
|
9245
|
-
};
|
|
9246
|
-
readonly key: "kernel.astrale.ai:function.install";
|
|
9247
|
-
readonly execution: {
|
|
9248
|
-
readonly durable: true;
|
|
9249
|
-
};
|
|
9250
|
-
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
9251
|
-
invocation?: {
|
|
9252
|
-
source: string;
|
|
9253
|
-
id: string;
|
|
9254
|
-
} | undefined;
|
|
9255
|
-
topics?: {
|
|
9256
|
-
exact?: string[] | undefined;
|
|
9257
|
-
prefixes?: string[] | undefined;
|
|
9258
|
-
} | undefined;
|
|
9259
|
-
principal?: string | undefined;
|
|
9260
|
-
since?: string | undefined;
|
|
9261
|
-
until?: string | undefined;
|
|
9262
|
-
cursor?: string | undefined;
|
|
9263
|
-
limit?: number | undefined;
|
|
9264
|
-
}, {
|
|
9265
|
-
readonly mode: 'value';
|
|
9266
|
-
readonly value: {
|
|
9267
|
-
records: unknown[];
|
|
9268
|
-
frontier: {
|
|
9269
|
-
id: string;
|
|
9270
|
-
first?: number | undefined;
|
|
9271
|
-
committed: number;
|
|
9272
|
-
durable: number;
|
|
9273
|
-
};
|
|
9274
|
-
cursor?: string | undefined;
|
|
9275
|
-
gap?: unknown;
|
|
9172
|
+
expiresAt: string;
|
|
9276
9173
|
};
|
|
9277
9174
|
}, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
|
|
9278
|
-
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"
|
|
9175
|
+
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"upload"> & {
|
|
9279
9176
|
readonly origin: "kernel.astrale.ai";
|
|
9280
9177
|
};
|
|
9281
|
-
readonly key: "kernel.astrale.ai:function.
|
|
9178
|
+
readonly key: "kernel.astrale.ai:function.upload";
|
|
9282
9179
|
readonly execution: undefined;
|
|
9283
9180
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
9284
9181
|
ast: {
|
|
@@ -9845,25 +9742,128 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
9845
9742
|
readonly execution: {
|
|
9846
9743
|
readonly durable: true;
|
|
9847
9744
|
};
|
|
9848
|
-
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<
|
|
9849
|
-
|
|
9850
|
-
|
|
9745
|
+
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
9746
|
+
invocation?: {
|
|
9747
|
+
source: string;
|
|
9748
|
+
id: string;
|
|
9749
|
+
} | undefined;
|
|
9750
|
+
topics?: {
|
|
9751
|
+
exact?: string[] | undefined;
|
|
9752
|
+
prefixes?: string[] | undefined;
|
|
9753
|
+
} | undefined;
|
|
9754
|
+
principal?: string | undefined;
|
|
9755
|
+
since?: string | undefined;
|
|
9756
|
+
until?: string | undefined;
|
|
9757
|
+
cursor?: string | undefined;
|
|
9758
|
+
limit?: number | undefined;
|
|
9759
|
+
}, {
|
|
9851
9760
|
readonly mode: 'value';
|
|
9852
9761
|
readonly value: {
|
|
9853
|
-
|
|
9854
|
-
|
|
9762
|
+
records: unknown[];
|
|
9763
|
+
frontier: {
|
|
9764
|
+
id: string;
|
|
9765
|
+
first?: number | undefined;
|
|
9766
|
+
committed: number;
|
|
9767
|
+
durable: number;
|
|
9768
|
+
};
|
|
9769
|
+
cursor?: string | undefined;
|
|
9770
|
+
gap?: unknown;
|
|
9771
|
+
};
|
|
9772
|
+
}, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
|
|
9773
|
+
readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"journal"> & {
|
|
9774
|
+
readonly origin: "kernel.astrale.ai";
|
|
9775
|
+
};
|
|
9776
|
+
readonly key: "kernel.astrale.ai:function.journal";
|
|
9777
|
+
readonly execution: undefined;
|
|
9778
|
+
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
|
|
9779
|
+
operation: string;
|
|
9780
|
+
domains: ({
|
|
9781
|
+
artifact: {
|
|
9855
9782
|
digest: string;
|
|
9856
9783
|
mediaType: string;
|
|
9857
9784
|
size: number;
|
|
9858
9785
|
};
|
|
9859
|
-
|
|
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;
|
|
9808
|
+
}, {
|
|
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
|
+
}[];
|
|
9860
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.
|
|
9866
|
-
readonly execution:
|
|
9863
|
+
readonly key: "kernel.astrale.ai:function.install";
|
|
9864
|
+
readonly execution: {
|
|
9865
|
+
readonly durable: true;
|
|
9866
|
+
};
|
|
9867
9867
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
9868
9868
|
iss: string;
|
|
9869
9869
|
sub: string;
|
|
@@ -9891,17 +9891,6 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
9891
9891
|
readonly name: "whois";
|
|
9892
9892
|
readonly executable: true;
|
|
9893
9893
|
readonly execution: undefined;
|
|
9894
|
-
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
9895
|
-
audience?: string | undefined;
|
|
9896
|
-
ttlSeconds: number;
|
|
9897
|
-
identity: string;
|
|
9898
|
-
}, {
|
|
9899
|
-
readonly mode: 'value';
|
|
9900
|
-
readonly value: string;
|
|
9901
|
-
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.impersonate"> & {
|
|
9902
|
-
readonly name: "impersonate";
|
|
9903
|
-
readonly executable: true;
|
|
9904
|
-
readonly execution: undefined;
|
|
9905
9894
|
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
9906
9895
|
target: string;
|
|
9907
9896
|
}, {
|
|
@@ -9934,6 +9923,17 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
|
|
|
9934
9923
|
readonly name: "resolve";
|
|
9935
9924
|
readonly executable: true;
|
|
9936
9925
|
readonly execution: undefined;
|
|
9926
|
+
}) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
9927
|
+
audience?: string | undefined;
|
|
9928
|
+
ttlSeconds: number;
|
|
9929
|
+
identity: string;
|
|
9930
|
+
}, {
|
|
9931
|
+
readonly mode: 'value';
|
|
9932
|
+
readonly value: string;
|
|
9933
|
+
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.impersonate"> & {
|
|
9934
|
+
readonly name: "impersonate";
|
|
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
|
};
|