@astrale-os/kernel-core 0.9.0-beta.32 → 0.9.0-beta.33

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.
@@ -5271,12 +5271,15 @@ declare const KernelDefinitions: {
5271
5271
  }, "authenticated", false, "default">>;
5272
5272
  uninstall: builder.Function<builder.CallableProjection<{
5273
5273
  operation: string;
5274
- origin: string;
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
- transition: {
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<{
@@ -5622,41 +5625,6 @@ export declare const AuthorityRelations: Readonly<{
5622
5625
  }>;
5623
5626
  /** Exact authorized Kernel Functions for which pristine Root receives direct can_use authority. */
5624
5627
  export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5625
- kind: "bundle" | "inspect";
5626
- origin: string;
5627
- }, {
5628
- readonly mode: 'binary';
5629
- }, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
5630
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"introspect"> & {
5631
- readonly origin: "kernel.astrale.ai";
5632
- };
5633
- readonly key: "kernel.astrale.ai:function.introspect";
5634
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5635
- operation: string;
5636
- domains: ({
5637
- artifact: {
5638
- digest: string;
5639
- mediaType: string;
5640
- size: number;
5641
- };
5642
- currentRevision?: string | null | undefined;
5643
- } | {
5644
- publication: {
5645
- url: string;
5646
- token?: string | undefined;
5647
- etag?: string | undefined;
5648
- };
5649
- revision?: string | undefined;
5650
- currentRevision?: string | null | undefined;
5651
- })[];
5652
- }, {
5653
- readonly mode: 'binary';
5654
- }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
5655
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"install"> & {
5656
- readonly origin: "kernel.astrale.ai";
5657
- };
5658
- readonly key: "kernel.astrale.ai:function.install";
5659
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5660
5628
  invocation?: {
5661
5629
  source: string;
5662
5630
  id: string;
@@ -5690,236 +5658,233 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
5690
5658
  readonly key: "kernel.astrale.ai:function.journal";
5691
5659
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5692
5660
  ast: {
5693
- format: "astrale.graph.mutation";
5694
- version: "v3";
5695
- preconditions: ({
5661
+ format: "astrale.graph.query";
5662
+ version: "v6";
5663
+ source: {
5696
5664
  kind: "node";
5697
- node: string;
5698
- class: string;
5699
- props?: {
5700
- equals: Record<string, unknown>;
5701
- absent?: string[] | undefined;
5665
+ terms: ({
5666
+ kind: "path";
5667
+ path: string;
5702
5668
  } | {
5703
- absent: string[];
5704
- } | undefined;
5669
+ kind: "class";
5670
+ class: {
5671
+ origin: string;
5672
+ kind: "class";
5673
+ name: string;
5674
+ };
5675
+ })[];
5676
+ binding: string;
5705
5677
  } | {
5706
5678
  kind: "edge";
5707
- edge: {
5679
+ terms: {
5680
+ kind: "class";
5681
+ class: {
5682
+ origin: string;
5683
+ kind: "class";
5684
+ name: string;
5685
+ };
5686
+ }[];
5687
+ bindings: {
5708
5688
  source: string;
5689
+ edge: string;
5709
5690
  target: string;
5710
- class: string;
5711
5691
  };
5712
- slug?: unknown;
5713
- props?: {
5714
- equals: Record<string, unknown>;
5715
- absent?: string[] | undefined;
5716
- } | {
5717
- absent: string[];
5718
- } | undefined;
5719
- } | {
5720
- kind: "query";
5721
- query: {
5722
- format: "astrale.graph.query";
5723
- version: "v6";
5724
- source: {
5725
- kind: "node";
5726
- terms: ({
5727
- kind: "path";
5728
- path: string;
5729
- } | {
5730
- kind: "class";
5731
- class: {
5732
- origin: string;
5733
- kind: "class";
5734
- name: string;
5735
- };
5736
- })[];
5737
- binding: string;
5738
- } | {
5739
- kind: "edge";
5740
- terms: {
5741
- kind: "class";
5742
- class: {
5743
- origin: string;
5744
- kind: "class";
5745
- name: string;
5746
- };
5747
- }[];
5748
- bindings: {
5749
- source: string;
5750
- edge: string;
5751
- target: string;
5752
- };
5692
+ };
5693
+ steps: ({
5694
+ op: "filter";
5695
+ binding: string;
5696
+ predicate: {
5697
+ kind: "class.satisfies";
5698
+ class: {
5699
+ origin: string;
5700
+ kind: "class";
5701
+ name: string;
5753
5702
  };
5754
- steps: ({
5755
- op: "filter";
5756
- binding: string;
5757
- predicate: {
5758
- kind: "class.satisfies";
5759
- class: {
5760
- origin: string;
5761
- kind: "class";
5762
- name: string;
5763
- };
5764
- } | {
5765
- kind: "class.equal";
5766
- class: {
5767
- origin: string;
5768
- kind: "class";
5769
- name: string;
5770
- };
5771
- } | {
5772
- kind: "property.equal";
5773
- property: string;
5774
- value: unknown;
5775
- } | {
5776
- kind: "property.present";
5777
- property: string;
5778
- } | {
5779
- kind: "identity.equal";
5780
- identity: string | {
5781
- source: string;
5782
- target: string;
5783
- class: string;
5784
- };
5785
- };
5786
- } | {
5787
- op: "expand";
5788
- from: string;
5789
- via: {
5790
- origin: string;
5791
- kind: "class";
5792
- name: string;
5793
- }[];
5794
- direction: "incident" | "incoming" | "outgoing";
5795
- bindings: {
5796
- edge: string;
5797
- node: string;
5798
- };
5799
- })[];
5800
- select: {
5801
- kind: "graph";
5802
- binding: string;
5803
- order?: {
5804
- property: string;
5805
- direction: "asc" | "desc";
5806
- unranked: "first" | "last";
5807
- } | undefined;
5808
- } | {
5809
- kind: "nodes";
5810
- binding: string;
5811
- projection: {
5812
- kind: "reference" | "value";
5813
- };
5814
- order?: {
5815
- property: string;
5816
- direction: "asc" | "desc";
5817
- unranked: "first" | "last";
5818
- } | undefined;
5819
- } | {
5820
- kind: "edges";
5821
- binding: string;
5822
- projection: {
5823
- edge: "reference" | "value";
5824
- source: "reference" | "value";
5825
- target: "reference" | "value";
5826
- };
5827
- order?: {
5828
- property: string;
5829
- direction: "asc" | "desc";
5830
- unranked: "first" | "last";
5831
- } | undefined;
5703
+ } | {
5704
+ kind: "class.equal";
5705
+ class: {
5706
+ origin: string;
5707
+ kind: "class";
5708
+ name: string;
5832
5709
  };
5833
- };
5834
- equals: {
5835
- kind: "node";
5836
- ids: string[];
5837
5710
  } | {
5838
- kind: "edge";
5839
- keys: {
5711
+ kind: "property.equal";
5712
+ property: string;
5713
+ value: unknown;
5714
+ } | {
5715
+ kind: "property.present";
5716
+ property: string;
5717
+ } | {
5718
+ kind: "identity.equal";
5719
+ identity: string | {
5840
5720
  source: string;
5841
5721
  target: string;
5842
5722
  class: string;
5843
- }[];
5723
+ };
5844
5724
  };
5845
- })[];
5846
- operations: ({
5847
- op: "node.create";
5848
- as: string;
5849
- class: string;
5850
- props: Record<string, unknown>;
5851
5725
  } | {
5852
- op: "node.update";
5853
- node: string;
5854
- class: string;
5855
- props: {
5856
- set: Record<string, unknown>;
5857
- unset: string[];
5726
+ op: "expand";
5727
+ from: string;
5728
+ via: {
5729
+ origin: string;
5730
+ kind: "class";
5731
+ name: string;
5732
+ }[];
5733
+ direction: "incident" | "incoming" | "outgoing";
5734
+ bindings: {
5735
+ edge: string;
5736
+ node: string;
5858
5737
  };
5859
- } | {
5860
- op: "node.delete";
5861
- node: string;
5862
- class: string;
5863
- } | {
5864
- op: "edge.create";
5865
- class: string;
5866
- source: string | {
5867
- created: string;
5868
- };
5869
- target: string | {
5870
- created: string;
5871
- };
5872
- slug?: unknown;
5873
- props: Record<string, unknown>;
5874
- } | {
5875
- op: "edge.update";
5876
- edge: {
5877
- source: string;
5878
- target: string;
5879
- class: string;
5880
- };
5881
- slug: unknown;
5882
- props?: {
5883
- set: Record<string, unknown>;
5884
- unset: string[];
5738
+ })[];
5739
+ select: {
5740
+ kind: "graph";
5741
+ binding: string;
5742
+ order?: {
5743
+ property: string;
5744
+ direction: "asc" | "desc";
5745
+ unranked: "first" | "last";
5885
5746
  } | undefined;
5886
5747
  } | {
5887
- op: "edge.update";
5888
- edge: {
5889
- source: string;
5890
- target: string;
5891
- class: string;
5892
- };
5893
- props: {
5894
- set: Record<string, unknown>;
5895
- unset: string[];
5748
+ kind: "nodes";
5749
+ binding: string;
5750
+ projection: {
5751
+ kind: "reference" | "value";
5896
5752
  };
5753
+ order?: {
5754
+ property: string;
5755
+ direction: "asc" | "desc";
5756
+ unranked: "first" | "last";
5757
+ } | undefined;
5897
5758
  } | {
5898
- op: "edge.delete";
5899
- edge: {
5900
- source: string;
5901
- target: string;
5902
- class: string;
5759
+ kind: "edges";
5760
+ binding: string;
5761
+ projection: {
5762
+ edge: "reference" | "value";
5763
+ source: "reference" | "value";
5764
+ target: "reference" | "value";
5903
5765
  };
5904
- })[];
5766
+ order?: {
5767
+ property: string;
5768
+ direction: "asc" | "desc";
5769
+ unranked: "first" | "last";
5770
+ } | undefined;
5771
+ };
5905
5772
  };
5906
5773
  expected?: {
5907
5774
  origin: string;
5908
5775
  revision: string;
5909
5776
  }[] | undefined;
5777
+ page: {
5778
+ size: number;
5779
+ after?: string | undefined;
5780
+ };
5910
5781
  }, {
5911
5782
  readonly mode: 'value';
5912
5783
  readonly value: {
5913
- createdNodes: Record<string, string>;
5784
+ result: {
5785
+ kind: "graph";
5786
+ graph: {
5787
+ nodes: {
5788
+ id: string;
5789
+ class: string;
5790
+ props: Record<string, unknown>;
5791
+ }[];
5792
+ edges: {
5793
+ source: string;
5794
+ target: string;
5795
+ class: string;
5796
+ slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
5797
+ props: Record<string, unknown>;
5798
+ }[];
5799
+ };
5800
+ selection: {
5801
+ kind: "node";
5802
+ ids: string[];
5803
+ } | {
5804
+ kind: "edge";
5805
+ keys: {
5806
+ source: string;
5807
+ target: string;
5808
+ class: string;
5809
+ }[];
5810
+ };
5811
+ } | {
5812
+ kind: "nodes";
5813
+ nodes: ({
5814
+ kind: "reference";
5815
+ value: {
5816
+ id: string;
5817
+ class: string;
5818
+ };
5819
+ } | {
5820
+ kind: "value";
5821
+ value: {
5822
+ id: string;
5823
+ class: string;
5824
+ props: Record<string, unknown>;
5825
+ };
5826
+ })[];
5827
+ } | {
5828
+ kind: "edges";
5829
+ edges: {
5830
+ edge: {
5831
+ kind: "reference";
5832
+ value: {
5833
+ source: string;
5834
+ target: string;
5835
+ class: string;
5836
+ };
5837
+ } | {
5838
+ kind: "value";
5839
+ value: {
5840
+ source: string;
5841
+ target: string;
5842
+ class: string;
5843
+ slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
5844
+ props: Record<string, unknown>;
5845
+ };
5846
+ };
5847
+ source: {
5848
+ kind: "reference";
5849
+ value: {
5850
+ id: string;
5851
+ class: string;
5852
+ };
5853
+ } | {
5854
+ kind: "value";
5855
+ value: {
5856
+ id: string;
5857
+ class: string;
5858
+ props: Record<string, unknown>;
5859
+ };
5860
+ };
5861
+ target: {
5862
+ kind: "reference";
5863
+ value: {
5864
+ id: string;
5865
+ class: string;
5866
+ };
5867
+ } | {
5868
+ kind: "value";
5869
+ value: {
5870
+ id: string;
5871
+ class: string;
5872
+ props: Record<string, unknown>;
5873
+ };
5874
+ };
5875
+ }[];
5876
+ };
5877
+ page: {
5878
+ next?: string | undefined;
5879
+ };
5914
5880
  };
5915
5881
  }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
5916
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"mutate"> & {
5882
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"query"> & {
5917
5883
  readonly origin: "kernel.astrale.ai";
5918
5884
  };
5919
- readonly key: "kernel.astrale.ai:function.mutate";
5885
+ readonly key: "kernel.astrale.ai:function.query";
5920
5886
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5921
- idempotencyKey: string;
5922
- mutation?: {
5887
+ ast: {
5923
5888
  format: "astrale.graph.mutation";
5924
5889
  version: "v3";
5925
5890
  preconditions: ({
@@ -6132,299 +6097,340 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
6132
6097
  class: string;
6133
6098
  };
6134
6099
  })[];
6135
- } | undefined;
6136
- identities: ({
6137
- identity: {
6138
- created: string;
6139
- };
6140
- authentication?: {
6141
- iss: string;
6142
- sub: string;
6143
- } | {
6144
- credentials: {
6145
- publicKey: unknown;
6146
- proof: string;
6147
- };
6148
- } | undefined;
6149
- requiredClaims?: ({
6150
- claim: string;
6151
- op: "contains";
6152
- value: unknown;
6153
- } | {
6154
- claim: string;
6155
- op: "eq";
6156
- value: unknown;
6157
- } | {
6158
- claim: string;
6159
- op: "exists";
6160
- })[] | undefined;
6161
- } | {
6162
- identity: {
6163
- id: string;
6164
- class: string;
6165
- };
6166
- authentication: {
6167
- iss: string;
6168
- sub: string;
6169
- } | {
6170
- credentials: {
6171
- publicKey: unknown;
6172
- proof: string;
6173
- };
6174
- };
6175
- })[];
6100
+ };
6101
+ expected?: {
6102
+ origin: string;
6103
+ revision: string;
6104
+ }[] | undefined;
6176
6105
  }, {
6177
6106
  readonly mode: 'value';
6178
6107
  readonly value: {
6179
6108
  createdNodes: Record<string, string>;
6180
- identities: ({
6181
- id: string;
6182
- } | {
6183
- id: string;
6184
- iss: string;
6185
- sub: string;
6186
- })[];
6187
6109
  };
6188
6110
  }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
6189
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"provision"> & {
6111
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"mutate"> & {
6190
6112
  readonly origin: "kernel.astrale.ai";
6191
6113
  };
6192
- readonly key: "kernel.astrale.ai:function.provision";
6114
+ readonly key: "kernel.astrale.ai:function.mutate";
6193
6115
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6194
- ast: {
6195
- format: "astrale.graph.query";
6196
- version: "v6";
6197
- source: {
6116
+ idempotencyKey: string;
6117
+ mutation?: {
6118
+ format: "astrale.graph.mutation";
6119
+ version: "v3";
6120
+ preconditions: ({
6198
6121
  kind: "node";
6199
- terms: ({
6200
- kind: "path";
6201
- path: string;
6122
+ node: string;
6123
+ class: string;
6124
+ props?: {
6125
+ equals: Record<string, unknown>;
6126
+ absent?: string[] | undefined;
6202
6127
  } | {
6203
- kind: "class";
6204
- class: {
6205
- origin: string;
6206
- kind: "class";
6207
- name: string;
6208
- };
6209
- })[];
6210
- binding: string;
6128
+ absent: string[];
6129
+ } | undefined;
6211
6130
  } | {
6212
6131
  kind: "edge";
6213
- terms: {
6214
- kind: "class";
6215
- class: {
6216
- origin: string;
6217
- kind: "class";
6218
- name: string;
6219
- };
6220
- }[];
6221
- bindings: {
6132
+ edge: {
6222
6133
  source: string;
6223
- edge: string;
6224
6134
  target: string;
6135
+ class: string;
6225
6136
  };
6226
- };
6227
- steps: ({
6228
- op: "filter";
6229
- binding: string;
6230
- predicate: {
6231
- kind: "class.satisfies";
6232
- class: {
6233
- origin: string;
6234
- kind: "class";
6235
- name: string;
6236
- };
6137
+ slug?: unknown;
6138
+ props?: {
6139
+ equals: Record<string, unknown>;
6140
+ absent?: string[] | undefined;
6237
6141
  } | {
6238
- kind: "class.equal";
6239
- class: {
6240
- origin: string;
6241
- kind: "class";
6242
- name: string;
6142
+ absent: string[];
6143
+ } | undefined;
6144
+ } | {
6145
+ kind: "query";
6146
+ query: {
6147
+ format: "astrale.graph.query";
6148
+ version: "v6";
6149
+ source: {
6150
+ kind: "node";
6151
+ terms: ({
6152
+ kind: "path";
6153
+ path: string;
6154
+ } | {
6155
+ kind: "class";
6156
+ class: {
6157
+ origin: string;
6158
+ kind: "class";
6159
+ name: string;
6160
+ };
6161
+ })[];
6162
+ binding: string;
6163
+ } | {
6164
+ kind: "edge";
6165
+ terms: {
6166
+ kind: "class";
6167
+ class: {
6168
+ origin: string;
6169
+ kind: "class";
6170
+ name: string;
6171
+ };
6172
+ }[];
6173
+ bindings: {
6174
+ source: string;
6175
+ edge: string;
6176
+ target: string;
6177
+ };
6243
6178
  };
6179
+ steps: ({
6180
+ op: "filter";
6181
+ binding: string;
6182
+ predicate: {
6183
+ kind: "class.satisfies";
6184
+ class: {
6185
+ origin: string;
6186
+ kind: "class";
6187
+ name: string;
6188
+ };
6189
+ } | {
6190
+ kind: "class.equal";
6191
+ class: {
6192
+ origin: string;
6193
+ kind: "class";
6194
+ name: string;
6195
+ };
6196
+ } | {
6197
+ kind: "property.equal";
6198
+ property: string;
6199
+ value: unknown;
6200
+ } | {
6201
+ kind: "property.present";
6202
+ property: string;
6203
+ } | {
6204
+ kind: "identity.equal";
6205
+ identity: string | {
6206
+ source: string;
6207
+ target: string;
6208
+ class: string;
6209
+ };
6210
+ };
6211
+ } | {
6212
+ op: "expand";
6213
+ from: string;
6214
+ via: {
6215
+ origin: string;
6216
+ kind: "class";
6217
+ name: string;
6218
+ }[];
6219
+ direction: "incident" | "incoming" | "outgoing";
6220
+ bindings: {
6221
+ edge: string;
6222
+ node: string;
6223
+ };
6224
+ })[];
6225
+ select: {
6226
+ kind: "graph";
6227
+ binding: string;
6228
+ order?: {
6229
+ property: string;
6230
+ direction: "asc" | "desc";
6231
+ unranked: "first" | "last";
6232
+ } | undefined;
6233
+ } | {
6234
+ kind: "nodes";
6235
+ binding: string;
6236
+ projection: {
6237
+ kind: "reference" | "value";
6238
+ };
6239
+ order?: {
6240
+ property: string;
6241
+ direction: "asc" | "desc";
6242
+ unranked: "first" | "last";
6243
+ } | undefined;
6244
+ } | {
6245
+ kind: "edges";
6246
+ binding: string;
6247
+ projection: {
6248
+ edge: "reference" | "value";
6249
+ source: "reference" | "value";
6250
+ target: "reference" | "value";
6251
+ };
6252
+ order?: {
6253
+ property: string;
6254
+ direction: "asc" | "desc";
6255
+ unranked: "first" | "last";
6256
+ } | undefined;
6257
+ };
6258
+ };
6259
+ equals: {
6260
+ kind: "node";
6261
+ ids: string[];
6244
6262
  } | {
6245
- kind: "property.equal";
6246
- property: string;
6247
- value: unknown;
6248
- } | {
6249
- kind: "property.present";
6250
- property: string;
6251
- } | {
6252
- kind: "identity.equal";
6253
- identity: string | {
6263
+ kind: "edge";
6264
+ keys: {
6254
6265
  source: string;
6255
6266
  target: string;
6256
6267
  class: string;
6257
- };
6268
+ }[];
6258
6269
  };
6270
+ })[];
6271
+ operations: ({
6272
+ op: "node.create";
6273
+ as: string;
6274
+ class: string;
6275
+ props: Record<string, unknown>;
6259
6276
  } | {
6260
- op: "expand";
6261
- from: string;
6262
- via: {
6263
- origin: string;
6264
- kind: "class";
6265
- name: string;
6266
- }[];
6267
- direction: "incident" | "incoming" | "outgoing";
6268
- bindings: {
6269
- edge: string;
6270
- node: string;
6277
+ op: "node.update";
6278
+ node: string;
6279
+ class: string;
6280
+ props: {
6281
+ set: Record<string, unknown>;
6282
+ unset: string[];
6271
6283
  };
6272
- })[];
6273
- select: {
6274
- kind: "graph";
6275
- binding: string;
6276
- order?: {
6277
- property: string;
6278
- direction: "asc" | "desc";
6279
- unranked: "first" | "last";
6280
- } | undefined;
6281
6284
  } | {
6282
- kind: "nodes";
6283
- binding: string;
6284
- projection: {
6285
- kind: "reference" | "value";
6285
+ op: "node.delete";
6286
+ node: string;
6287
+ class: string;
6288
+ } | {
6289
+ op: "edge.create";
6290
+ class: string;
6291
+ source: string | {
6292
+ created: string;
6286
6293
  };
6287
- order?: {
6288
- property: string;
6289
- direction: "asc" | "desc";
6290
- unranked: "first" | "last";
6291
- } | undefined;
6294
+ target: string | {
6295
+ created: string;
6296
+ };
6297
+ slug?: unknown;
6298
+ props: Record<string, unknown>;
6292
6299
  } | {
6293
- kind: "edges";
6294
- binding: string;
6295
- projection: {
6296
- edge: "reference" | "value";
6297
- source: "reference" | "value";
6298
- target: "reference" | "value";
6300
+ op: "edge.update";
6301
+ edge: {
6302
+ source: string;
6303
+ target: string;
6304
+ class: string;
6299
6305
  };
6300
- order?: {
6301
- property: string;
6302
- direction: "asc" | "desc";
6303
- unranked: "first" | "last";
6306
+ slug: unknown;
6307
+ props?: {
6308
+ set: Record<string, unknown>;
6309
+ unset: string[];
6304
6310
  } | undefined;
6305
- };
6306
- };
6307
- expected?: {
6308
- origin: string;
6309
- revision: string;
6310
- }[] | undefined;
6311
- page: {
6312
- size: number;
6313
- after?: string | undefined;
6314
- };
6315
- }, {
6316
- readonly mode: 'value';
6317
- readonly value: {
6318
- result: {
6319
- kind: "graph";
6320
- graph: {
6321
- nodes: {
6322
- id: string;
6323
- class: string;
6324
- props: Record<string, unknown>;
6325
- }[];
6326
- edges: {
6327
- source: string;
6328
- target: string;
6329
- class: string;
6330
- slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
6331
- props: Record<string, unknown>;
6332
- }[];
6311
+ } | {
6312
+ op: "edge.update";
6313
+ edge: {
6314
+ source: string;
6315
+ target: string;
6316
+ class: string;
6333
6317
  };
6334
- selection: {
6335
- kind: "node";
6336
- ids: string[];
6337
- } | {
6338
- kind: "edge";
6339
- keys: {
6340
- source: string;
6341
- target: string;
6342
- class: string;
6343
- }[];
6318
+ props: {
6319
+ set: Record<string, unknown>;
6320
+ unset: string[];
6344
6321
  };
6345
6322
  } | {
6346
- kind: "nodes";
6347
- nodes: ({
6348
- kind: "reference";
6349
- value: {
6350
- id: string;
6351
- class: string;
6352
- };
6353
- } | {
6354
- kind: "value";
6355
- value: {
6356
- id: string;
6357
- class: string;
6358
- props: Record<string, unknown>;
6359
- };
6360
- })[];
6323
+ op: "edge.delete";
6324
+ edge: {
6325
+ source: string;
6326
+ target: string;
6327
+ class: string;
6328
+ };
6329
+ })[];
6330
+ } | undefined;
6331
+ identities: ({
6332
+ identity: {
6333
+ created: string;
6334
+ };
6335
+ authentication?: {
6336
+ iss: string;
6337
+ sub: string;
6361
6338
  } | {
6362
- kind: "edges";
6363
- edges: {
6364
- edge: {
6365
- kind: "reference";
6366
- value: {
6367
- source: string;
6368
- target: string;
6369
- class: string;
6370
- };
6371
- } | {
6372
- kind: "value";
6373
- value: {
6374
- source: string;
6375
- target: string;
6376
- class: string;
6377
- slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
6378
- props: Record<string, unknown>;
6379
- };
6380
- };
6381
- source: {
6382
- kind: "reference";
6383
- value: {
6384
- id: string;
6385
- class: string;
6386
- };
6387
- } | {
6388
- kind: "value";
6389
- value: {
6390
- id: string;
6391
- class: string;
6392
- props: Record<string, unknown>;
6393
- };
6394
- };
6395
- target: {
6396
- kind: "reference";
6397
- value: {
6398
- id: string;
6399
- class: string;
6400
- };
6401
- } | {
6402
- kind: "value";
6403
- value: {
6404
- id: string;
6405
- class: string;
6406
- props: Record<string, unknown>;
6407
- };
6408
- };
6409
- }[];
6339
+ credentials: {
6340
+ publicKey: unknown;
6341
+ proof: string;
6342
+ };
6343
+ } | undefined;
6344
+ requiredClaims?: ({
6345
+ claim: string;
6346
+ op: "contains";
6347
+ value: unknown;
6348
+ } | {
6349
+ claim: string;
6350
+ op: "eq";
6351
+ value: unknown;
6352
+ } | {
6353
+ claim: string;
6354
+ op: "exists";
6355
+ })[] | undefined;
6356
+ } | {
6357
+ identity: {
6358
+ id: string;
6359
+ class: string;
6410
6360
  };
6411
- page: {
6412
- next?: string | undefined;
6361
+ authentication: {
6362
+ iss: string;
6363
+ sub: string;
6364
+ } | {
6365
+ credentials: {
6366
+ publicKey: unknown;
6367
+ proof: string;
6368
+ };
6413
6369
  };
6370
+ })[];
6371
+ }, {
6372
+ readonly mode: 'value';
6373
+ readonly value: {
6374
+ createdNodes: Record<string, string>;
6375
+ identities: ({
6376
+ id: string;
6377
+ } | {
6378
+ id: string;
6379
+ iss: string;
6380
+ sub: string;
6381
+ })[];
6414
6382
  };
6415
6383
  }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
6416
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"query"> & {
6384
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"provision"> & {
6417
6385
  readonly origin: "kernel.astrale.ai";
6418
6386
  };
6419
- readonly key: "kernel.astrale.ai:function.query";
6387
+ readonly key: "kernel.astrale.ai:function.provision";
6420
6388
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6421
6389
  operation: string;
6390
+ domains: ({
6391
+ artifact: {
6392
+ digest: string;
6393
+ mediaType: string;
6394
+ size: number;
6395
+ };
6396
+ currentRevision?: string | null | undefined;
6397
+ } | {
6398
+ publication: {
6399
+ url: string;
6400
+ token?: string | undefined;
6401
+ etag?: string | undefined;
6402
+ };
6403
+ revision?: string | undefined;
6404
+ currentRevision?: string | null | undefined;
6405
+ })[];
6406
+ }, {
6407
+ readonly mode: 'binary';
6408
+ }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
6409
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"install"> & {
6410
+ readonly origin: "kernel.astrale.ai";
6411
+ };
6412
+ readonly key: "kernel.astrale.ai:function.install";
6413
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6414
+ kind: "bundle" | "inspect";
6422
6415
  origin: string;
6416
+ }, {
6417
+ readonly mode: 'binary';
6418
+ }, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
6419
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"introspect"> & {
6420
+ readonly origin: "kernel.astrale.ai";
6421
+ };
6422
+ readonly key: "kernel.astrale.ai:function.introspect";
6423
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6424
+ operation: string;
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
- transition: {
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"> & {
@@ -6468,31 +6474,6 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
6468
6474
  readonly value: string;
6469
6475
  }, true, "default", "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
6470
6476
  readonly name: "mint";
6471
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
6472
- iss: string;
6473
- sub: string;
6474
- }, {
6475
- readonly mode: 'value';
6476
- readonly value: {
6477
- id: string;
6478
- iss: string;
6479
- sub: string;
6480
- frozen: boolean;
6481
- requiredClaims: ({
6482
- claim: string;
6483
- op: "contains";
6484
- value: unknown;
6485
- } | {
6486
- claim: string;
6487
- op: "eq";
6488
- value: unknown;
6489
- } | {
6490
- claim: string;
6491
- op: "exists";
6492
- })[];
6493
- } | null;
6494
- }, true, "default", "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
6495
- readonly name: "whois";
6496
6477
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
6497
6478
  target: string;
6498
6479
  }, {
@@ -6527,6 +6508,31 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
6527
6508
  };
6528
6509
  }, true, "sealed", "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.View.method.resolve"> & {
6529
6510
  readonly name: "resolve";
6511
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
6512
+ iss: string;
6513
+ sub: string;
6514
+ }, {
6515
+ readonly mode: 'value';
6516
+ readonly value: {
6517
+ id: string;
6518
+ iss: string;
6519
+ sub: string;
6520
+ frozen: boolean;
6521
+ requiredClaims: ({
6522
+ claim: string;
6523
+ op: "contains";
6524
+ value: unknown;
6525
+ } | {
6526
+ claim: string;
6527
+ op: "eq";
6528
+ value: unknown;
6529
+ } | {
6530
+ claim: string;
6531
+ op: "exists";
6532
+ })[];
6533
+ } | null;
6534
+ }, true, "default", "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
6535
+ readonly name: "whois";
6530
6536
  }))[];
6531
6537
  export { AuthorityOperationOrder, AuthorityOperations, operationOf } from '../authority/index.js';
6532
6538
  export type { AuthorityOperation, AuthorityRelation } from '../authority/index.js';
@@ -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
- origin: import("zod").ZodString;
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
- transition: import("zod").ZodObject<{
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 origin: string;
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 transition: TransitionReceipt;
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
- origin: installationText,
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
- transition: transitionReceipt,
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
- origin: string;
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
- transition: {
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
- origin: string;
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
- transition: {
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.32",
3
+ "version": "0.9.0-beta.33",
4
4
  "description": "Astrale Kernel Core - Types, Invariants, and Pure Logic",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {