@shipload/sdk 1.0.0-next.71 → 1.0.0-next.73

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.
Files changed (44) hide show
  1. package/lib/shipload.d.ts +115 -27
  2. package/lib/shipload.js +806 -697
  3. package/lib/shipload.js.map +1 -1
  4. package/lib/shipload.m.js +795 -694
  5. package/lib/shipload.m.js.map +1 -1
  6. package/lib/testing.d.ts +21 -11
  7. package/lib/testing.js +272 -339
  8. package/lib/testing.js.map +1 -1
  9. package/lib/testing.m.js +272 -339
  10. package/lib/testing.m.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/contracts/server.ts +69 -26
  13. package/src/data/capability-formulas.ts +4 -4
  14. package/src/data/catalog.test.ts +81 -1
  15. package/src/data/catalog.ts +6 -4
  16. package/src/data/entities.json +84 -68
  17. package/src/data/item-ids.ts +5 -4
  18. package/src/data/items.json +30 -24
  19. package/src/data/kind-registry.json +75 -39
  20. package/src/data/kind-registry.ts +13 -0
  21. package/src/data/metadata.ts +203 -334
  22. package/src/data/recipes.json +194 -155
  23. package/src/data/task-types.json +184 -0
  24. package/src/derivation/build-methods.test.ts +4 -4
  25. package/src/derivation/capabilities.test.ts +14 -10
  26. package/src/derivation/capabilities.ts +8 -10
  27. package/src/derivation/capability-mappings.ts +4 -4
  28. package/src/derivation/capacity-fn-registry.test.ts +9 -0
  29. package/src/derivation/capacity-fn-registry.ts +18 -0
  30. package/src/derivation/recipe-usage.test.ts +7 -11
  31. package/src/entities/makers.ts +2 -2
  32. package/src/index-module.ts +15 -1
  33. package/src/influence/influence.test.ts +1 -1
  34. package/src/managers/actions.ts +17 -0
  35. package/src/managers/context.ts +9 -0
  36. package/src/managers/fund.ts +49 -0
  37. package/src/managers/index.ts +3 -0
  38. package/src/nft/description.ts +5 -10
  39. package/src/resolution/resolve-item.test.ts +15 -10
  40. package/src/resolution/resolve-item.ts +2 -2
  41. package/src/scheduling/unwrap.test.ts +60 -0
  42. package/src/scheduling/unwrap.ts +24 -8
  43. package/src/shipload.ts +5 -0
  44. package/src/types.ts +1 -0
package/lib/testing.d.ts CHANGED
@@ -87,6 +87,11 @@ declare namespace Types {
87
87
  id: UInt64;
88
88
  inputs: cargo_item[];
89
89
  }
90
+ class blenddepot extends Struct {
91
+ depot_id: UInt64;
92
+ owner: Name;
93
+ inputs: cargo_item[];
94
+ }
90
95
  class builder_lane extends Struct {
91
96
  slot_index: UInt8;
92
97
  speed: UInt16;
@@ -400,10 +405,6 @@ declare namespace Types {
400
405
  y: Int64;
401
406
  node_id: UInt32;
402
407
  }
403
- class dbgoldjobs extends Struct {
404
- crafts: craftjob_row[];
405
- builds: buildjob_row[];
406
- }
407
408
  class dbgpagerows extends Struct {
408
409
  rows: UInt32;
409
410
  }
@@ -674,6 +675,8 @@ declare namespace Types {
674
675
  class fixcargomass extends Struct {
675
676
  entity_id: UInt64;
676
677
  }
678
+ class fixhubid extends Struct {
679
+ }
677
680
  class fixitemids extends Struct {
678
681
  }
679
682
  class grid_cell extends Struct {
@@ -910,6 +913,15 @@ declare namespace Types {
910
913
  class importgroup extends Struct {
911
914
  row: entitygroup_row;
912
915
  }
916
+ class locker_row extends Struct {
917
+ depot_id: UInt64;
918
+ stored_mass: UInt64;
919
+ reserved_mass: UInt64;
920
+ }
921
+ class importlocker extends Struct {
922
+ owner: Name;
923
+ row: locker_row;
924
+ }
913
925
  class nftconfig_row extends Struct {
914
926
  item_id: UInt16;
915
927
  template_id: Int32;
@@ -940,6 +952,10 @@ declare namespace Types {
940
952
  class importstate extends Struct {
941
953
  row: state_row;
942
954
  }
955
+ class importstorage extends Struct {
956
+ depot_id: UInt64;
957
+ row: storage_row;
958
+ }
943
959
  class infburn_row extends Struct {
944
960
  bps: UInt16;
945
961
  }
@@ -1042,6 +1058,7 @@ declare namespace Types {
1042
1058
  item_id: UInt16;
1043
1059
  kind: Name;
1044
1060
  display_label: string;
1061
+ base_capacity_fn: string;
1045
1062
  }
1046
1063
  class kind_meta_result extends Struct {
1047
1064
  kinds: kind_meta_row[];
@@ -1073,17 +1090,10 @@ declare namespace Types {
1073
1090
  is_system: boolean;
1074
1091
  is_wormhole: boolean;
1075
1092
  }
1076
- class locker_row extends Struct {
1077
- depot_id: UInt64;
1078
- stored_mass: UInt64;
1079
- reserved_mass: UInt64;
1080
- }
1081
1093
  class mandates_row extends Struct {
1082
1094
  node_id: UInt32;
1083
1095
  repeats: UInt16;
1084
1096
  }
1085
- class migratejobs extends Struct {
1086
- }
1087
1097
  class mint_threshold_view extends Struct {
1088
1098
  category: UInt8;
1089
1099
  tier: UInt8;