@astrale-os/kernel-core 1.0.0-beta.7 → 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
|
};
|
|
@@ -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';
|