@astrale-os/kernel-core 0.9.0-beta.36 → 0.9.0-beta.38

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.
@@ -5625,16 +5625,6 @@ export declare const AuthorityRelations: Readonly<{
5625
5625
  }>;
5626
5626
  /** Exact authorized Kernel Functions for which pristine Root receives direct can_use authority. */
5627
5627
  export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5628
- kind: "bundle" | "inspect";
5629
- origin: string;
5630
- }, {
5631
- readonly mode: 'binary';
5632
- }, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
5633
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"introspect"> & {
5634
- readonly origin: "kernel.astrale.ai";
5635
- };
5636
- readonly key: "kernel.astrale.ai:function.introspect";
5637
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5638
5628
  operation: string;
5639
5629
  domains: ({
5640
5630
  artifact: {
@@ -5660,232 +5650,15 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
5660
5650
  };
5661
5651
  readonly key: "kernel.astrale.ai:function.install";
5662
5652
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5663
- ast: {
5664
- format: "astrale.graph.query";
5665
- version: "v6";
5666
- source: {
5667
- kind: "node";
5668
- terms: ({
5669
- kind: "path";
5670
- path: string;
5671
- } | {
5672
- kind: "class";
5673
- class: {
5674
- origin: string;
5675
- kind: "class";
5676
- name: string;
5677
- };
5678
- })[];
5679
- binding: string;
5680
- } | {
5681
- kind: "edge";
5682
- terms: {
5683
- kind: "class";
5684
- class: {
5685
- origin: string;
5686
- kind: "class";
5687
- name: string;
5688
- };
5689
- }[];
5690
- bindings: {
5691
- source: string;
5692
- edge: string;
5693
- target: string;
5694
- };
5695
- };
5696
- steps: ({
5697
- op: "filter";
5698
- binding: string;
5699
- predicate: {
5700
- kind: "class.satisfies";
5701
- class: {
5702
- origin: string;
5703
- kind: "class";
5704
- name: string;
5705
- };
5706
- } | {
5707
- kind: "class.equal";
5708
- class: {
5709
- origin: string;
5710
- kind: "class";
5711
- name: string;
5712
- };
5713
- } | {
5714
- kind: "property.equal";
5715
- property: string;
5716
- value: unknown;
5717
- } | {
5718
- kind: "property.present";
5719
- property: string;
5720
- } | {
5721
- kind: "identity.equal";
5722
- identity: string | {
5723
- source: string;
5724
- target: string;
5725
- class: string;
5726
- };
5727
- };
5728
- } | {
5729
- op: "expand";
5730
- from: string;
5731
- via: {
5732
- origin: string;
5733
- kind: "class";
5734
- name: string;
5735
- }[];
5736
- direction: "incident" | "incoming" | "outgoing";
5737
- bindings: {
5738
- edge: string;
5739
- node: string;
5740
- };
5741
- })[];
5742
- select: {
5743
- kind: "graph";
5744
- binding: string;
5745
- order?: {
5746
- property: string;
5747
- direction: "asc" | "desc";
5748
- unranked: "first" | "last";
5749
- } | undefined;
5750
- } | {
5751
- kind: "nodes";
5752
- binding: string;
5753
- projection: {
5754
- kind: "reference" | "value";
5755
- };
5756
- order?: {
5757
- property: string;
5758
- direction: "asc" | "desc";
5759
- unranked: "first" | "last";
5760
- } | undefined;
5761
- } | {
5762
- kind: "edges";
5763
- binding: string;
5764
- projection: {
5765
- edge: "reference" | "value";
5766
- source: "reference" | "value";
5767
- target: "reference" | "value";
5768
- };
5769
- order?: {
5770
- property: string;
5771
- direction: "asc" | "desc";
5772
- unranked: "first" | "last";
5773
- } | undefined;
5774
- };
5775
- };
5776
- expected?: {
5777
- origin: string;
5778
- revision: string;
5779
- }[] | undefined;
5780
- page: {
5781
- size: number;
5782
- after?: string | undefined;
5783
- };
5653
+ kind: "bundle" | "inspect";
5654
+ origin: string;
5784
5655
  }, {
5785
- readonly mode: 'value';
5786
- readonly value: {
5787
- result: {
5788
- kind: "graph";
5789
- graph: {
5790
- nodes: {
5791
- id: string;
5792
- class: string;
5793
- props: Record<string, unknown>;
5794
- }[];
5795
- edges: {
5796
- source: string;
5797
- target: string;
5798
- class: string;
5799
- slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
5800
- props: Record<string, unknown>;
5801
- }[];
5802
- };
5803
- selection: {
5804
- kind: "node";
5805
- ids: string[];
5806
- } | {
5807
- kind: "edge";
5808
- keys: {
5809
- source: string;
5810
- target: string;
5811
- class: string;
5812
- }[];
5813
- };
5814
- } | {
5815
- kind: "nodes";
5816
- nodes: ({
5817
- kind: "reference";
5818
- value: {
5819
- id: string;
5820
- class: string;
5821
- };
5822
- } | {
5823
- kind: "value";
5824
- value: {
5825
- id: string;
5826
- class: string;
5827
- props: Record<string, unknown>;
5828
- };
5829
- })[];
5830
- } | {
5831
- kind: "edges";
5832
- edges: {
5833
- edge: {
5834
- kind: "reference";
5835
- value: {
5836
- source: string;
5837
- target: string;
5838
- class: string;
5839
- };
5840
- } | {
5841
- kind: "value";
5842
- value: {
5843
- source: string;
5844
- target: string;
5845
- class: string;
5846
- slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
5847
- props: Record<string, unknown>;
5848
- };
5849
- };
5850
- source: {
5851
- kind: "reference";
5852
- value: {
5853
- id: string;
5854
- class: string;
5855
- };
5856
- } | {
5857
- kind: "value";
5858
- value: {
5859
- id: string;
5860
- class: string;
5861
- props: Record<string, unknown>;
5862
- };
5863
- };
5864
- target: {
5865
- kind: "reference";
5866
- value: {
5867
- id: string;
5868
- class: string;
5869
- };
5870
- } | {
5871
- kind: "value";
5872
- value: {
5873
- id: string;
5874
- class: string;
5875
- props: Record<string, unknown>;
5876
- };
5877
- };
5878
- }[];
5879
- };
5880
- page: {
5881
- next?: string | undefined;
5882
- };
5883
- };
5884
- }, "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
5885
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"query"> & {
5656
+ readonly mode: 'binary';
5657
+ }, "authenticated", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>> & {
5658
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"introspect"> & {
5886
5659
  readonly origin: "kernel.astrale.ai";
5887
5660
  };
5888
- readonly key: "kernel.astrale.ai:function.query";
5661
+ readonly key: "kernel.astrale.ai:function.introspect";
5889
5662
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
5890
5663
  invocation?: {
5891
5664
  source: string;
@@ -6420,6 +6193,233 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
6420
6193
  readonly origin: "kernel.astrale.ai";
6421
6194
  };
6422
6195
  readonly key: "kernel.astrale.ai:function.provision";
6196
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6197
+ ast: {
6198
+ format: "astrale.graph.query";
6199
+ version: "v6";
6200
+ source: {
6201
+ kind: "node";
6202
+ terms: ({
6203
+ kind: "path";
6204
+ path: string;
6205
+ } | {
6206
+ kind: "class";
6207
+ class: {
6208
+ origin: string;
6209
+ kind: "class";
6210
+ name: string;
6211
+ };
6212
+ })[];
6213
+ binding: string;
6214
+ } | {
6215
+ kind: "edge";
6216
+ terms: {
6217
+ kind: "class";
6218
+ class: {
6219
+ origin: string;
6220
+ kind: "class";
6221
+ name: string;
6222
+ };
6223
+ }[];
6224
+ bindings: {
6225
+ source: string;
6226
+ edge: string;
6227
+ target: string;
6228
+ };
6229
+ };
6230
+ steps: ({
6231
+ op: "filter";
6232
+ binding: string;
6233
+ predicate: {
6234
+ kind: "class.satisfies";
6235
+ class: {
6236
+ origin: string;
6237
+ kind: "class";
6238
+ name: string;
6239
+ };
6240
+ } | {
6241
+ kind: "class.equal";
6242
+ class: {
6243
+ origin: string;
6244
+ kind: "class";
6245
+ name: string;
6246
+ };
6247
+ } | {
6248
+ kind: "property.equal";
6249
+ property: string;
6250
+ value: unknown;
6251
+ } | {
6252
+ kind: "property.present";
6253
+ property: string;
6254
+ } | {
6255
+ kind: "identity.equal";
6256
+ identity: string | {
6257
+ source: string;
6258
+ target: string;
6259
+ class: string;
6260
+ };
6261
+ };
6262
+ } | {
6263
+ op: "expand";
6264
+ from: string;
6265
+ via: {
6266
+ origin: string;
6267
+ kind: "class";
6268
+ name: string;
6269
+ }[];
6270
+ direction: "incident" | "incoming" | "outgoing";
6271
+ bindings: {
6272
+ edge: string;
6273
+ node: string;
6274
+ };
6275
+ })[];
6276
+ select: {
6277
+ kind: "graph";
6278
+ binding: string;
6279
+ order?: {
6280
+ property: string;
6281
+ direction: "asc" | "desc";
6282
+ unranked: "first" | "last";
6283
+ } | undefined;
6284
+ } | {
6285
+ kind: "nodes";
6286
+ binding: string;
6287
+ projection: {
6288
+ kind: "reference" | "value";
6289
+ };
6290
+ order?: {
6291
+ property: string;
6292
+ direction: "asc" | "desc";
6293
+ unranked: "first" | "last";
6294
+ } | undefined;
6295
+ } | {
6296
+ kind: "edges";
6297
+ binding: string;
6298
+ projection: {
6299
+ edge: "reference" | "value";
6300
+ source: "reference" | "value";
6301
+ target: "reference" | "value";
6302
+ };
6303
+ order?: {
6304
+ property: string;
6305
+ direction: "asc" | "desc";
6306
+ unranked: "first" | "last";
6307
+ } | undefined;
6308
+ };
6309
+ };
6310
+ expected?: {
6311
+ origin: string;
6312
+ revision: string;
6313
+ }[] | undefined;
6314
+ page: {
6315
+ size: number;
6316
+ after?: string | undefined;
6317
+ };
6318
+ }, {
6319
+ readonly mode: 'value';
6320
+ readonly value: {
6321
+ result: {
6322
+ kind: "graph";
6323
+ graph: {
6324
+ nodes: {
6325
+ id: string;
6326
+ class: string;
6327
+ props: Record<string, unknown>;
6328
+ }[];
6329
+ edges: {
6330
+ source: string;
6331
+ target: string;
6332
+ class: string;
6333
+ slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
6334
+ props: Record<string, unknown>;
6335
+ }[];
6336
+ };
6337
+ selection: {
6338
+ kind: "node";
6339
+ ids: string[];
6340
+ } | {
6341
+ kind: "edge";
6342
+ keys: {
6343
+ source: string;
6344
+ target: string;
6345
+ class: string;
6346
+ }[];
6347
+ };
6348
+ } | {
6349
+ kind: "nodes";
6350
+ nodes: ({
6351
+ kind: "reference";
6352
+ value: {
6353
+ id: string;
6354
+ class: string;
6355
+ };
6356
+ } | {
6357
+ kind: "value";
6358
+ value: {
6359
+ id: string;
6360
+ class: string;
6361
+ props: Record<string, unknown>;
6362
+ };
6363
+ })[];
6364
+ } | {
6365
+ kind: "edges";
6366
+ edges: {
6367
+ edge: {
6368
+ kind: "reference";
6369
+ value: {
6370
+ source: string;
6371
+ target: string;
6372
+ class: string;
6373
+ };
6374
+ } | {
6375
+ kind: "value";
6376
+ value: {
6377
+ source: string;
6378
+ target: string;
6379
+ class: string;
6380
+ slug?: import("../../graph/edge/index.js").EdgeSlug | undefined;
6381
+ props: Record<string, unknown>;
6382
+ };
6383
+ };
6384
+ source: {
6385
+ kind: "reference";
6386
+ value: {
6387
+ id: string;
6388
+ class: string;
6389
+ };
6390
+ } | {
6391
+ kind: "value";
6392
+ value: {
6393
+ id: string;
6394
+ class: string;
6395
+ props: Record<string, unknown>;
6396
+ };
6397
+ };
6398
+ target: {
6399
+ kind: "reference";
6400
+ value: {
6401
+ id: string;
6402
+ class: string;
6403
+ };
6404
+ } | {
6405
+ kind: "value";
6406
+ value: {
6407
+ id: string;
6408
+ class: string;
6409
+ props: Record<string, unknown>;
6410
+ };
6411
+ };
6412
+ }[];
6413
+ };
6414
+ page: {
6415
+ next?: string | undefined;
6416
+ };
6417
+ };
6418
+ }, "authorized", 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<"query"> & {
6420
+ readonly origin: "kernel.astrale.ai";
6421
+ };
6422
+ readonly key: "kernel.astrale.ai:function.query";
6423
6423
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
6424
6424
  operation: string;
6425
6425
  domains: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-core",
3
- "version": "0.9.0-beta.36",
3
+ "version": "0.9.0-beta.38",
4
4
  "description": "Astrale Kernel Core - Types, Invariants, and Pure Logic",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -160,7 +160,7 @@
160
160
  "access": "public"
161
161
  },
162
162
  "dependencies": {
163
- "@astrale-os/kernel-dsl": "0.2.0-beta.27",
163
+ "@astrale-os/kernel-dsl": "0.2.0-beta.29",
164
164
  "@noble/hashes": "2.3.0",
165
165
  "@types/json-schema": "^7.0.15",
166
166
  "dequal": "2.0.3"