@astrale-os/kernel-core 1.0.0-beta.5 → 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.
@@ -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
- /** Successful callable output modes parameterized by the owner's stream capability. */
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,24 +9142,21 @@ 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<import("@astrale-os/kernel-dsl/v1").BinaryInputProjection<{
9146
- mediaType: string;
9147
- }>, {
9148
- readonly mode: 'value';
9149
- readonly value: {
9150
- receipt: string;
9151
- ref: {
9152
- digest: string;
9153
- mediaType: string;
9154
- size: number;
9155
- };
9156
- expiresAt: string;
9157
- };
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';
9158
9155
  }, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
9159
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"upload"> & {
9156
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"download"> & {
9160
9157
  readonly origin: "kernel.astrale.ai";
9161
9158
  };
9162
- readonly key: "kernel.astrale.ai:function.upload";
9159
+ readonly key: "kernel.astrale.ai:function.download";
9163
9160
  readonly execution: undefined;
9164
9161
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
9165
9162
  operation: string;
@@ -9250,6 +9247,39 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
9250
9247
  readonly execution: {
9251
9248
  readonly durable: true;
9252
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;
9276
+ };
9277
+ }, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
9278
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"journal"> & {
9279
+ readonly origin: "kernel.astrale.ai";
9280
+ };
9281
+ readonly key: "kernel.astrale.ai:function.journal";
9282
+ readonly execution: undefined;
9253
9283
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
9254
9284
  ast: {
9255
9285
  format: "astrale.graph.mutation";
@@ -9815,54 +9845,51 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
9815
9845
  readonly execution: {
9816
9846
  readonly durable: true;
9817
9847
  };
9818
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
9819
- invocation?: {
9820
- source: string;
9821
- id: string;
9822
- } | undefined;
9823
- topics?: {
9824
- exact?: string[] | undefined;
9825
- prefixes?: string[] | undefined;
9826
- } | undefined;
9827
- principal?: string | undefined;
9828
- since?: string | undefined;
9829
- until?: string | undefined;
9830
- cursor?: string | undefined;
9831
- limit?: number | undefined;
9832
- }, {
9848
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<import("@astrale-os/kernel-dsl/v1").BinaryInputProjection<{
9849
+ mediaType: string;
9850
+ }>, {
9833
9851
  readonly mode: 'value';
9834
9852
  readonly value: {
9835
- records: unknown[];
9836
- frontier: {
9837
- id: string;
9838
- first?: number | undefined;
9839
- committed: number;
9840
- durable: number;
9853
+ receipt: string;
9854
+ ref: {
9855
+ digest: string;
9856
+ mediaType: string;
9857
+ size: number;
9841
9858
  };
9842
- cursor?: string | undefined;
9843
- gap?: unknown;
9859
+ expiresAt: string;
9844
9860
  };
9845
9861
  }, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
9846
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"journal"> & {
9862
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"upload"> & {
9847
9863
  readonly origin: "kernel.astrale.ai";
9848
9864
  };
9849
- readonly key: "kernel.astrale.ai:function.journal";
9865
+ readonly key: "kernel.astrale.ai:function.upload";
9850
9866
  readonly execution: undefined;
9851
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
9852
- node: string;
9853
- property: string;
9854
- } | {
9855
- slots: {
9856
- node: string;
9857
- property: string;
9858
- }[];
9867
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
9868
+ iss: string;
9869
+ sub: string;
9859
9870
  }, {
9860
- readonly mode: 'binary';
9861
- }, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
9862
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"download"> & {
9863
- readonly origin: "kernel.astrale.ai";
9864
- };
9865
- readonly key: "kernel.astrale.ai:function.download";
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-core",
3
- "version": "1.0.0-beta.5",
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": {