@spacemolt/lib 16.7.0 → 17.1.0

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.
package/dist/index.js CHANGED
@@ -78,7 +78,7 @@ var STATE_SECTIONS = [
78
78
  "prize_recoveries"
79
79
  ];
80
80
  // src/generated/actions.gen.ts
81
- var GENERATED_SPEC_VERSION = "v0.684.4";
81
+ var GENERATED_SPEC_VERSION = "v0.687.0";
82
82
  var ACTIONS = {
83
83
  "spacemolt_arena/accept": {
84
84
  tool: "spacemolt_arena",
@@ -250,7 +250,7 @@ var ACTIONS = {
250
250
  params: [
251
251
  { name: "id", type: "string", required: false, description: "Instance ID of the fitted weapon or mining gun to reload (use get_ship to see module instance IDs)", positional: 0 },
252
252
  { name: "target", type: "string", required: false, description: "Item ID of ammo to load from cargo (must match the module's ammo type). For weapons with the ammo_from_cargo special: omit to auto-select random low-value junk, or specify any cargo item to load that exact item.", positional: 1 },
253
- { name: "weapons", type: "string[]", required: false, description: "Bulk reload: array of {weapon_instance_id, ammo_item_id?} entries loaded in a single action for one tick, however many weapons. Omit weapon_instance_id/ammo_item_id when using this. Entries are independent — the response reports per-weapon success/failure. Maximum 50 entries." }
253
+ { name: "weapons", type: "{ ammo_item_id?: string; weapon_instance_id?: string }[]", required: false, description: "Bulk reload: array of {weapon_instance_id, ammo_item_id?} entries loaded in a single action for one tick, however many weapons. Omit weapon_instance_id/ammo_item_id when using this. Entries are independent — the response reports per-weapon success/failure. Maximum 50 entries." }
254
254
  ]
255
255
  },
256
256
  "spacemolt_battle/retreat": {
@@ -464,7 +464,7 @@ var ACTIONS = {
464
464
  tool: "spacemolt_facility",
465
465
  action: "base_cost",
466
466
  kind: "query",
467
- summary: "Preview the cost and requirements to found a faction station",
467
+ summary: "Preview the cost and requirements to found a faction station, plus the outpost founding fee",
468
468
  responseType: "BaseCostResponse",
469
469
  params: []
470
470
  },
@@ -612,6 +612,17 @@ var ACTIONS = {
612
612
  { name: "package_ids", type: "string[]", required: false, description: "For 'build'/'upgrade'/'faction_build'/'faction_upgrade': source materials directly from these packages instead of unpacking them into storage first. Each package must contain exactly what this build/upgrade still needs of an item — no more — or the action is rejected before anything is touched. Storage and cargo still backfill any shortfall." }
613
613
  ]
614
614
  },
615
+ "spacemolt_facility/found_gate_site": {
616
+ tool: "spacemolt_facility",
617
+ action: "found_gate_site",
618
+ kind: "mutation",
619
+ summary: "Found one end of a jump gate at your current point of interest in lawless space",
620
+ detailsType: "BuildBaseResponse",
621
+ params: [
622
+ { name: "far_system", type: "string", required: true, description: "System the other end of the gate will stand in (id or name)" },
623
+ { name: "name", type: "string", required: true, description: "Name for this end of the gate" }
624
+ ]
625
+ },
615
626
  "spacemolt_facility/found_station": {
616
627
  tool: "spacemolt_facility",
617
628
  action: "found_station",
@@ -844,6 +855,16 @@ var ACTIONS = {
844
855
  { name: "description", type: "string", required: false, description: "New station description (set_description)" }
845
856
  ]
846
857
  },
858
+ "spacemolt_facility/set_gate_access": {
859
+ tool: "spacemolt_facility",
860
+ action: "set_gate_access",
861
+ kind: "mutation",
862
+ summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
863
+ detailsType: "StationConfigResponse",
864
+ params: [
865
+ { name: "access", type: '"public" | "allies" | "faction"', required: true, description: "Access level for set_service_access; public or faction for set_gate_access", enumValues: ["public", "allies", "faction"] }
866
+ ]
867
+ },
847
868
  "spacemolt_facility/set_market_fee": {
848
869
  tool: "spacemolt_facility",
849
870
  action: "set_market_fee",
@@ -893,7 +914,7 @@ var ACTIONS = {
893
914
  summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
894
915
  detailsType: "StationConfigResponse",
895
916
  params: [
896
- { name: "price", type: "number", required: false, description: "Price for set_refuel_price (per unit) or set_repair_price (per hull point)" }
917
+ { name: "price", type: "number", required: false, description: "Price for set_refuel_price (per unit), set_repair_price (per hull point) or set_toll (credits per ship for pilots outside your faction)" }
897
918
  ]
898
919
  },
899
920
  "spacemolt_facility/set_repair_price": {
@@ -903,7 +924,7 @@ var ACTIONS = {
903
924
  summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
904
925
  detailsType: "StationConfigResponse",
905
926
  params: [
906
- { name: "price", type: "number", required: false, description: "Price for set_refuel_price (per unit) or set_repair_price (per hull point)" }
927
+ { name: "price", type: "number", required: false, description: "Price for set_refuel_price (per unit), set_repair_price (per hull point) or set_toll (credits per ship for pilots outside your faction)" }
907
928
  ]
908
929
  },
909
930
  "spacemolt_facility/set_service_access": {
@@ -913,10 +934,20 @@ var ACTIONS = {
913
934
  summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
914
935
  detailsType: "StationConfigResponse",
915
936
  params: [
916
- { name: "access", type: '"public" | "allies" | "faction"', required: true, description: "Access level for set_service_access", enumValues: ["public", "allies", "faction"] },
937
+ { name: "access", type: '"public" | "allies" | "faction"', required: true, description: "Access level for set_service_access; public or faction for set_gate_access", enumValues: ["public", "allies", "faction"] },
917
938
  { name: "service", type: "string", required: true, description: "Service type for set_service_access (market, refuel, repair, shipyard, crafting, salvage_yard, missions)" }
918
939
  ]
919
940
  },
941
+ "spacemolt_facility/set_toll": {
942
+ tool: "spacemolt_facility",
943
+ action: "set_toll",
944
+ kind: "mutation",
945
+ summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
946
+ detailsType: "StationConfigResponse",
947
+ params: [
948
+ { name: "price", type: "number", required: true, description: "Price for set_refuel_price (per unit), set_repair_price (per hull point) or set_toll (credits per ship for pilots outside your faction)" }
949
+ ]
950
+ },
920
951
  "spacemolt_facility/station_info": {
921
952
  tool: "spacemolt_facility",
922
953
  action: "station_info",
@@ -2899,7 +2930,7 @@ var ACTIONS = {
2899
2930
  tool: "spacemolt",
2900
2931
  action: "get_map",
2901
2932
  kind: "query",
2902
- summary: "View all star systems in the galaxy",
2933
+ summary: "View known space and your charted frontier systems",
2903
2934
  responseType: "GetMapCommandResponse",
2904
2935
  params: [
2905
2936
  { name: "system_id", type: "string", required: false, description: "Optional system ID to get details for a single system. Omit to get all systems." }
@@ -3068,6 +3099,14 @@ var ACTIONS = {
3068
3099
  { name: "id", type: "string", required: true, description: "Module ID to install/uninstall. CPU and power usage shown reflect your Engineering skill bonus (1% reduction per level).", positional: 0 }
3069
3100
  ]
3070
3101
  },
3102
+ "spacemolt/interact_poi": {
3103
+ tool: "spacemolt",
3104
+ action: "interact_poi",
3105
+ kind: "mutation",
3106
+ summary: "Interact with an archive at your current POI",
3107
+ detailsType: "InteractPoiResponse",
3108
+ params: []
3109
+ },
3071
3110
  "spacemolt/jettison": {
3072
3111
  tool: "spacemolt",
3073
3112
  action: "jettison",
@@ -3364,6 +3403,7 @@ function buildCommands(dispatch) {
3364
3403
  hunt: bind("spacemolt", "hunt"),
3365
3404
  inspect: bind("spacemolt", "inspect"),
3366
3405
  install_mod: bind("spacemolt", "install_mod"),
3406
+ interact_poi: bindBare("spacemolt", "interact_poi"),
3367
3407
  jettison: bind("spacemolt", "jettison"),
3368
3408
  jump: bind("spacemolt", "jump"),
3369
3409
  list_passengers: bindBare("spacemolt", "list_passengers"),
@@ -3454,6 +3494,7 @@ function buildCommands(dispatch) {
3454
3494
  faction_list: bindBare("spacemolt_facility", "faction_list"),
3455
3495
  faction_owned: bindBare("spacemolt_facility", "faction_owned"),
3456
3496
  faction_upgrade: bind("spacemolt_facility", "faction_upgrade"),
3497
+ found_gate_site: bind("spacemolt_facility", "found_gate_site"),
3457
3498
  found_station: bind("spacemolt_facility", "found_station"),
3458
3499
  job_add: bind("spacemolt_facility", "job_add"),
3459
3500
  job_cancel: bind("spacemolt_facility", "job_cancel"),
@@ -3476,6 +3517,7 @@ function buildCommands(dispatch) {
3476
3517
  set_build_policy: bind("spacemolt_facility", "set_build_policy"),
3477
3518
  set_contraband: bind("spacemolt_facility", "set_contraband"),
3478
3519
  set_description: bind("spacemolt_facility", "set_description"),
3520
+ set_gate_access: bind("spacemolt_facility", "set_gate_access"),
3479
3521
  set_market_fee: bind("spacemolt_facility", "set_market_fee"),
3480
3522
  set_name: bind("spacemolt_facility", "set_name"),
3481
3523
  set_output_price: bind("spacemolt_facility", "set_output_price"),
@@ -3483,6 +3525,7 @@ function buildCommands(dispatch) {
3483
3525
  set_refuel_price: bind("spacemolt_facility", "set_refuel_price"),
3484
3526
  set_repair_price: bind("spacemolt_facility", "set_repair_price"),
3485
3527
  set_service_access: bind("spacemolt_facility", "set_service_access"),
3528
+ set_toll: bind("spacemolt_facility", "set_toll"),
3486
3529
  station_info: bindBare("spacemolt_facility", "station_info"),
3487
3530
  station_set_name: bind("spacemolt_facility", "station_set_name"),
3488
3531
  transfer: bind("spacemolt_facility", "transfer"),
@@ -4012,6 +4055,7 @@ class ObservationCache {
4012
4055
  creatures: indexBy(snapshot.creatures, (c) => c.creature_id),
4013
4056
  prizes: indexBy(snapshot.prizes, (p) => p.prize_id),
4014
4057
  arenaNpcs: indexBy(snapshot.arena_npcs, (n) => n.npc_id),
4058
+ repeaters: indexBy(snapshot.repeaters, (r) => r.repeater_id),
4015
4059
  offlineCollapsed: snapshot.offline_collapsed ?? 0,
4016
4060
  shipCounts: new Map(Object.entries(snapshot.ship_counts ?? {})),
4017
4061
  cloaked: indexBy(snapshot.cloaked_contacts, (c) => c.target_id),
@@ -4032,6 +4076,7 @@ class ObservationCache {
4032
4076
  creatures: new Map,
4033
4077
  prizes: new Map,
4034
4078
  arenaNpcs: new Map,
4079
+ repeaters: new Map,
4035
4080
  offlineCollapsed: 0,
4036
4081
  shipCounts: new Map,
4037
4082
  cloaked: new Map,
@@ -4047,6 +4092,7 @@ class ObservationCache {
4047
4092
  merge(v.creatures, update.creatures_changed, update.creatures_departed, (c) => c.creature_id);
4048
4093
  merge(v.prizes, update.prizes_changed, update.prizes_departed, (p) => p.prize_id);
4049
4094
  merge(v.arenaNpcs, update.arena_npcs_changed, update.arena_npcs_departed, (n) => n.npc_id);
4095
+ merge(v.repeaters, update.repeaters_changed, update.repeaters_departed, (r) => r.repeater_id);
4050
4096
  merge(v.cloaked, update.cloaked_resolved, update.cloaked_lost, (c) => c.target_id);
4051
4097
  if (update.offline_collapsed !== undefined)
4052
4098
  v.offlineCollapsed = update.offline_collapsed;
@@ -4360,12 +4406,15 @@ var ARRIVED = {
4360
4406
  nearby_empire_npcs: undefined,
4361
4407
  nearby_empire_npc_count: undefined,
4362
4408
  nearby_leviathans: undefined,
4409
+ nearby_repeaters: undefined,
4410
+ poi_hazard: undefined,
4363
4411
  offline_collapsed: undefined,
4364
4412
  unknown_signature: undefined
4365
4413
  };
4366
4414
  var ARRIVED_IN_NEW_SYSTEM = {
4367
4415
  ...ARRIVED,
4368
4416
  connections: undefined,
4417
+ frontier_tier: undefined,
4369
4418
  empire: undefined,
4370
4419
  security_status: undefined
4371
4420
  };
@@ -4821,6 +4870,7 @@ class Account {
4821
4870
  nearby_empire_npc_count: view.empireNpcs.size,
4822
4871
  nearby_prizes: [...view.prizes.values()],
4823
4872
  nearby_prize_count: view.prizes.size,
4873
+ nearby_repeaters: [...view.repeaters.values()],
4824
4874
  offline_collapsed: view.offlineCollapsed,
4825
4875
  unknown_signature: view.unknownSignature
4826
4876
  });
@@ -5877,7 +5927,6 @@ var TYPED_NOTIFICATION_TYPES = [
5877
5927
  "arena_challenge",
5878
5928
  "arena_objective",
5879
5929
  "base_destroyed",
5880
- "base_raid_update",
5881
5930
  "battle_alert",
5882
5931
  "battle_damage",
5883
5932
  "battle_ended",
@@ -5901,17 +5950,23 @@ var TYPED_NOTIFICATION_TYPES = [
5901
5950
  "faction_alliance_broken",
5902
5951
  "faction_alliance_formed",
5903
5952
  "faction_alliance_proposal",
5953
+ "faction_invite",
5954
+ "faction_kick",
5904
5955
  "faction_mobile_base_update",
5905
5956
  "faction_peace_accepted",
5906
5957
  "faction_peace_proposal",
5958
+ "faction_promote",
5907
5959
  "faction_war_declared",
5960
+ "faction_withdraw_invite",
5908
5961
  "fleet",
5909
5962
  "gift_received",
5963
+ "hazard_warning",
5910
5964
  "hold_update",
5911
5965
  "market_update",
5912
5966
  "mining_yield",
5913
5967
  "observation_update",
5914
5968
  "ok",
5969
+ "pathfinder_storm",
5915
5970
  "personnel_update",
5916
5971
  "pilotless_ship",
5917
5972
  "pirate_destroyed",
@@ -6018,5 +6073,5 @@ export {
6018
6073
  retryAfterMsFromClose
6019
6074
  };
6020
6075
 
6021
- //# debugId=C459F737CA02279964756E2164756E21
6076
+ //# debugId=FC2F6739AEFDCC5964756E2164756E21
6022
6077
  //# sourceMappingURL=index.js.map