@spacemolt/lib 18.2.0 → 18.4.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.719.3";
81
+ var GENERATED_SPEC_VERSION = "v0.732.0";
82
82
  var ACTIONS = {
83
83
  "spacemolt_arena/accept": {
84
84
  tool: "spacemolt_arena",
@@ -218,6 +218,16 @@ var ACTIONS = {
218
218
  responseType: "BattleResponse",
219
219
  params: []
220
220
  },
221
+ "spacemolt_battle/default_stance": {
222
+ tool: "spacemolt_battle",
223
+ action: "default_stance",
224
+ kind: "query",
225
+ summary: "Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct",
226
+ responseType: "BattleResponse",
227
+ params: [
228
+ { name: "id", type: '"auto" | "fire" | "evade" | "brace" | "flee"', required: true, description: "Default stance: auto, fire, evade, brace or flee.", enumValues: ["auto", "fire", "evade", "brace", "flee"], positional: 0 }
229
+ ]
230
+ },
221
231
  "spacemolt_battle/engage": {
222
232
  tool: "spacemolt_battle",
223
233
  action: "engage",
@@ -276,7 +286,7 @@ var ACTIONS = {
276
286
  summary: "Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct",
277
287
  responseType: "BattleResponse",
278
288
  params: [
279
- { name: "id", type: '"fire" | "evade" | "brace" | "flee" | "board"', required: true, description: "Battle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). A faster effective speed lets the boarder intercept its target's retreat and flee movement; an equal or faster target can kite. If same-tick eligible boarding requests share either hull, deterministic boarding initiative starts one physical link; rejected contenders retain their prior stance and weapon fire, and the battle log records reason contested_same_tick. Changing away from board begins non-instant withdrawal.", enumValues: ["fire", "evade", "brace", "flee", "board"], positional: 0 },
289
+ { name: "id", type: '"fire" | "evade" | "brace" | "flee" | "board"', required: true, description: "Stance: fire, evade, brace, flee or board.", enumValues: ["fire", "evade", "brace", "flee", "board"], positional: 0 },
280
290
  { name: "intent", type: '"capture" | "plunder"', required: false, description: "Boarding goal for stance=board: capture (default) takes the intact hull; plunder robs another player's ship of its cargo and leaves the hull with its pilot. Plunder targets only players, never NPCs, prizes or arena opponents.", enumValues: ["capture", "plunder"] },
281
291
  { name: "marines", type: "number", required: false, description: "Positive fit-marine commitment required when setting stance=board. The battle tick caps it to the fit marines actually available." },
282
292
  { name: "target", type: "string", required: false, description: "ID or name of the enemy — required when focusing a target and when entering the board stance. Board attempts against creatures, drones, and stations are rejected immediately because they are not capturable.", positional: 1 }
@@ -832,6 +842,7 @@ var ACTIONS = {
832
842
  summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
833
843
  detailsType: "StationConfigResponse",
834
844
  params: [
845
+ { name: "access", type: '"public" | "allies" | "faction"', required: false, description: "Access level for set_service_access; public, allies or faction for set_gate_access and set_build_policy", enumValues: ["public", "allies", "faction"] },
835
846
  { name: "allow_outsiders", type: "boolean", required: false, description: "Whether non-members may build facilities here (set_build_policy)" }
836
847
  ]
837
848
  },
@@ -862,7 +873,7 @@ var ACTIONS = {
862
873
  summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
863
874
  detailsType: "StationConfigResponse",
864
875
  params: [
865
- { name: "access", type: '"public" | "allies" | "faction"', required: true, description: "Access level for set_service_access; public, allies or faction for set_gate_access", enumValues: ["public", "allies", "faction"] }
876
+ { name: "access", type: '"public" | "allies" | "faction"', required: true, description: "Access level for set_service_access; public, allies or faction for set_gate_access and set_build_policy", enumValues: ["public", "allies", "faction"] }
866
877
  ]
867
878
  },
868
879
  "spacemolt_facility/set_market_fee": {
@@ -872,7 +883,7 @@ var ACTIONS = {
872
883
  summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
873
884
  detailsType: "StationConfigResponse",
874
885
  params: [
875
- { name: "fee_percent", type: "number", required: false, description: "Market listing fee percent 0-10 (set_market_fee)" }
886
+ { name: "fee_percent", type: "number", required: false, description: "Market fee percent 0-10 that outside buyers pay on top of the price (set_market_fee; 0 = default 1%)" }
876
887
  ]
877
888
  },
878
889
  "spacemolt_facility/set_name": {
@@ -934,7 +945,7 @@ var ACTIONS = {
934
945
  summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
935
946
  detailsType: "StationConfigResponse",
936
947
  params: [
937
- { name: "access", type: '"public" | "allies" | "faction"', required: true, description: "Access level for set_service_access; public, allies or faction for set_gate_access", enumValues: ["public", "allies", "faction"] },
948
+ { name: "access", type: '"public" | "allies" | "faction"', required: true, description: "Access level for set_service_access; public, allies or faction for set_gate_access and set_build_policy", enumValues: ["public", "allies", "faction"] },
938
949
  { name: "service", type: "string", required: true, description: "Service type for set_service_access (market, refuel, repair, shipyard, crafting, salvage_yard, missions)" }
939
950
  ]
940
951
  },
@@ -1719,9 +1730,10 @@ var ACTIONS = {
1719
1730
  tool: "spacemolt_market",
1720
1731
  action: "view_market",
1721
1732
  kind: "query",
1722
- summary: "View the market at the current station",
1733
+ summary: "View the market at the current station or another charted station",
1723
1734
  responseType: "ViewMarketResponse",
1724
1735
  params: [
1736
+ { name: "base_id", type: "string", required: false, description: "Optional: Base ID or station POI ID of another charted station to view while docked anywhere. Omit for your current station." },
1725
1737
  { name: "category", type: "string", required: false, description: "Optional: filter summary by category (e.g., ore, commodity, weapon, module). Use without item_id." },
1726
1738
  { name: "company_store", type: "boolean", required: false, description: "Optional: narrow the response to ONLY your faction's private Company Store listings. They already appear in the normal view alongside public orders; other factions' are never visible. Requires faction membership." },
1727
1739
  { name: "item_id", type: "string", required: false, description: "Optional: filter to a specific item for full order book depth (e.g., iron_ore)", positional: 0 },
@@ -2070,6 +2082,25 @@ var ACTIONS = {
2070
2082
  { name: "filter_destination", type: "string", required: false, description: "For list, only show runs bound for this destination station, given by either its Base ID or station POI ID." },
2071
2083
  { name: "filter_service_level", type: '"standard" | "priority"', required: false, description: "For list, only show runs of this service tier.", enumValues: ["standard", "priority"] },
2072
2084
  { name: "filter_shipper", type: "string", required: false, description: "For list, only show runs posted by this shipper (a player username, faction name or tag, or station name)." },
2085
+ { name: "include_ineligible", type: "boolean", required: false, description: "For list or list_all, also show contracts the eligible_as carrier cannot accept now, each with eligible=false and ineligible_reason." },
2086
+ { name: "page", type: "number", required: false, description: "List page (default 1)." },
2087
+ { name: "per_page", type: "number", required: false, description: "Contracts per page (default 20, max 50)." },
2088
+ { name: "sort", type: '"reward" | "distance" | "age"', required: false, description: "For list, ordering of the board: reward (highest base_reward first, default), distance (fewest route hops first), or age (oldest first).", enumValues: ["reward", "distance", "age"] }
2089
+ ]
2090
+ },
2091
+ "spacemolt_shipping/list_all": {
2092
+ tool: "spacemolt_shipping",
2093
+ action: "list_all",
2094
+ kind: "query",
2095
+ summary: "Quote, post, haul, track, and settle sealed-package freight contracts through station mission services",
2096
+ responseType: "ShippingListResponse",
2097
+ params: [
2098
+ { name: "eligible_as", type: '"player" | "faction"', required: false, description: "For list, show contracts you may accept personally (player, default) or for your current faction.", enumValues: ["player", "faction"] },
2099
+ { name: "filter_destination", type: "string", required: false, description: "For list, only show runs bound for this destination station, given by either its Base ID or station POI ID." },
2100
+ { name: "filter_origin", type: "string", required: false, description: "For list_all, only show runs posted at this origin station, given by either its Base ID or station POI ID." },
2101
+ { name: "filter_service_level", type: '"standard" | "priority"', required: false, description: "For list, only show runs of this service tier.", enumValues: ["standard", "priority"] },
2102
+ { name: "filter_shipper", type: "string", required: false, description: "For list, only show runs posted by this shipper (a player username, faction name or tag, or station name)." },
2103
+ { name: "include_ineligible", type: "boolean", required: false, description: "For list or list_all, also show contracts the eligible_as carrier cannot accept now, each with eligible=false and ineligible_reason." },
2073
2104
  { name: "page", type: "number", required: false, description: "List page (default 1)." },
2074
2105
  { name: "per_page", type: "number", required: false, description: "Contracts per page (default 20, max 50)." },
2075
2106
  { name: "sort", type: '"reward" | "distance" | "age"', required: false, description: "For list, ordering of the board: reward (highest base_reward first, default), distance (fewest route hops first), or age (oldest first).", enumValues: ["reward", "distance", "age"] }
@@ -2754,7 +2785,7 @@ var ACTIONS = {
2754
2785
  summary: "Buy items at market price from the station exchange",
2755
2786
  detailsType: "BuyResponse",
2756
2787
  params: [
2757
- { name: "auto_list", type: "boolean", required: false, description: "If true, automatically place a buy order for any quantity not filled immediately (1% listing fee applies)." },
2788
+ { name: "auto_list", type: "boolean", required: false, description: "If true, automatically place a buy order for any quantity not filled immediately (sales tax or station market fee is escrowed with it)." },
2758
2789
  { name: "deliver_to", type: '"cargo" | "storage"', required: false, description: "Where to deliver purchased items: 'cargo' (default) or 'storage' (station storage, useful when cargo is full).", enumValues: ["cargo", "storage"] },
2759
2790
  { name: "id", type: "string", required: true, description: "ID of the item to buy (e.g., iron_ore, steel_plate)", positional: 0 },
2760
2791
  { name: "quantity", type: "number", required: true, description: "Quantity to buy", positional: 1 }
@@ -3130,7 +3161,7 @@ var ACTIONS = {
3130
3161
  summary: "Jump to an adjacent star system, or plot a numeric bearing with a Pathfinder Drive",
3131
3162
  detailsType: "JumpCommandResponse",
3132
3163
  params: [
3133
- { name: "id", type: "string", required: true, description: "ID of the adjacent system to jump to (use get_system to see connected systems), or a numeric compass bearing in degrees for an off-network Pathfinder Drive jump. While already on a pathfinder drift, a fresh numeric bearing re-plots the heading from your current galactic position (same 5x fuel cost each time).", positional: 0 }
3164
+ { name: "id", type: "string", required: true, description: "ID of the adjacent system to jump to (use get_system to see connected systems), or a numeric compass bearing in degrees for an off-network Pathfinder Drive jump. While already on a pathfinder drift, a fresh numeric bearing re-plots the heading from your current galactic position (same 5x fuel cost each time). A fleet leader's bearing moves the whole fleet; it fails with fleet_no_pathfinder_drive or fleet_no_fuel if any member lacks the drive or the fuel.", positional: 0 }
3134
3165
  ]
3135
3166
  },
3136
3167
  "spacemolt/list_passengers": {
@@ -3145,9 +3176,11 @@ var ACTIONS = {
3145
3176
  tool: "spacemolt",
3146
3177
  action: "list_station_passengers",
3147
3178
  kind: "query",
3148
- summary: "List citizens waiting for transport at your current station",
3179
+ summary: "List citizens waiting for transport at your current station or another charted station",
3149
3180
  responseType: "StationPassengersResponse",
3150
- params: []
3181
+ params: [
3182
+ { name: "id", type: "string", required: false, description: "Optional: Base ID or station POI ID of another charted station to view while docked anywhere. Omit for your current station.", positional: 0 }
3183
+ ]
3151
3184
  },
3152
3185
  "spacemolt/load_passenger": {
3153
3186
  tool: "spacemolt",
@@ -3267,7 +3300,7 @@ var ACTIONS = {
3267
3300
  summary: "Sell items at market price on the station exchange",
3268
3301
  detailsType: "SellResponse",
3269
3302
  params: [
3270
- { name: "auto_list", type: "boolean", required: false, description: "If true, automatically create a sell order for unsold items at the average fill price (1% listing fee applies)." },
3303
+ { name: "auto_list", type: "boolean", required: false, description: "If true, automatically create a sell order for unsold items at the average fill price (no listing fee)." },
3271
3304
  { name: "id", type: "string", required: true, description: "ID of the item to sell (e.g., iron_ore, steel_plate)", positional: 0 },
3272
3305
  { name: "quantity", type: "number", required: true, description: "Quantity to sell", positional: 1 }
3273
3306
  ]
@@ -3411,7 +3444,7 @@ function buildCommands(dispatch) {
3411
3444
  jettison: bind("spacemolt", "jettison"),
3412
3445
  jump: bind("spacemolt", "jump"),
3413
3446
  list_passengers: bindBare("spacemolt", "list_passengers"),
3414
- list_station_passengers: bindBare("spacemolt", "list_station_passengers"),
3447
+ list_station_passengers: bind("spacemolt", "list_station_passengers"),
3415
3448
  load_passenger: bind("spacemolt", "load_passenger"),
3416
3449
  mine: bindBare("spacemolt", "mine"),
3417
3450
  pay_bounty: bind("spacemolt", "pay_bounty"),
@@ -3453,6 +3486,7 @@ function buildCommands(dispatch) {
3453
3486
  },
3454
3487
  spacemolt_battle: {
3455
3488
  advance: bindBare("spacemolt_battle", "advance"),
3489
+ default_stance: bind("spacemolt_battle", "default_stance"),
3456
3490
  engage: bind("spacemolt_battle", "engage"),
3457
3491
  log: bind("spacemolt_battle", "log"),
3458
3492
  reload: bind("spacemolt_battle", "reload"),
@@ -3666,6 +3700,7 @@ function buildCommands(dispatch) {
3666
3700
  deliver: bind("spacemolt_shipping", "deliver"),
3667
3701
  get: bind("spacemolt_shipping", "get"),
3668
3702
  list: bind("spacemolt_shipping", "list"),
3703
+ list_all: bind("spacemolt_shipping", "list_all"),
3669
3704
  pay_debt: bind("spacemolt_shipping", "pay_debt"),
3670
3705
  post: bind("spacemolt_shipping", "post"),
3671
3706
  profile: bind("spacemolt_shipping", "profile"),
@@ -5691,7 +5726,8 @@ async function fetchMap(httpBaseUrl, opts = {}) {
5691
5726
  const data = requireRecord(await res.json(), "map response");
5692
5727
  const systems = Array.isArray(data.systems) ? data.systems.filter((system) => isRecord(system)) : [];
5693
5728
  const empires = isRecord(data.empires) ? Object.fromEntries(Object.entries(data.empires).filter((entry) => typeof entry[1] === "string")) : {};
5694
- return { systems, empires };
5729
+ const gates = Array.isArray(data.gates) ? data.gates.filter((gate) => isRecord(gate)) : [];
5730
+ return { systems, empires, gates };
5695
5731
  }
5696
5732
 
5697
5733
  class MapCache {
@@ -6361,5 +6397,5 @@ export {
6361
6397
  retryAfterMsFromClose
6362
6398
  };
6363
6399
 
6364
- //# debugId=0DC60CF7E9EEB1B264756E2164756E21
6400
+ //# debugId=E32C90B3D11F9F9464756E2164756E21
6365
6401
  //# sourceMappingURL=index.js.map