@spacemolt/lib 17.0.0 → 17.2.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/COMMANDS.md +10 -6
- package/README.md +2 -1
- package/dist/account.d.ts +1 -1
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +38 -8
- package/dist/generated/notifications.gen.d.ts +5 -3
- package/dist/generated/openapi/types.gen.d.ts +699 -31
- package/dist/index.js +65 -9
- package/dist/index.js.map +7 -7
- package/dist/state/observation.d.ts +6 -4
- package/package.json +1 -1
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.
|
|
81
|
+
var GENERATED_SPEC_VERSION = "v0.700.0";
|
|
82
82
|
var ACTIONS = {
|
|
83
83
|
"spacemolt_arena/accept": {
|
|
84
84
|
tool: "spacemolt_arena",
|
|
@@ -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)
|
|
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)
|
|
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",
|
|
@@ -1839,9 +1870,13 @@ var ACTIONS = {
|
|
|
1839
1870
|
summary: "Browse ships listed for sale at a base",
|
|
1840
1871
|
responseType: "BrowseShipsResponse",
|
|
1841
1872
|
params: [
|
|
1873
|
+
{ name: "all_stations", type: "boolean", required: false, description: "Search every station you have charted instead of one; cheapest first and paged. Cannot be combined with base_id" },
|
|
1842
1874
|
{ name: "base_id", type: "string", required: false, description: "Station to browse listings at, given by either its Base ID or station POI ID (defaults to current station)" },
|
|
1875
|
+
{ name: "can_fly", type: "boolean", required: false, description: "Only ships you could buy and fly now (Piloting, reputation, prestige, and the listed fit at your Engineering level)" },
|
|
1843
1876
|
{ name: "class_id", type: "string", required: false, description: "Filter by ship class ID" },
|
|
1844
|
-
{ name: "max_price", type: "number", required: false, description: "Maximum price filter" }
|
|
1877
|
+
{ name: "max_price", type: "number", required: false, description: "Maximum price filter" },
|
|
1878
|
+
{ name: "page", type: "number", required: false, description: "Page number with all_stations (default 1)" },
|
|
1879
|
+
{ name: "page_size", type: "number", required: false, description: "Listings per page with all_stations (default 50, max 100)" }
|
|
1845
1880
|
]
|
|
1846
1881
|
},
|
|
1847
1882
|
"spacemolt_ship/buy_listed_ship": {
|
|
@@ -2795,10 +2830,10 @@ var ACTIONS = {
|
|
|
2795
2830
|
tool: "spacemolt",
|
|
2796
2831
|
action: "distress_signal",
|
|
2797
2832
|
kind: "mutation",
|
|
2798
|
-
summary: "Broadcast a distress signal to nearby players for emergency rescue",
|
|
2833
|
+
summary: "Broadcast a distress signal to nearby players for emergency rescue, or call a Salvage Authority tow",
|
|
2799
2834
|
detailsType: "DistressSignalResponse",
|
|
2800
2835
|
params: [
|
|
2801
|
-
{ name: "distress_type", type: '"fuel" | "repair" | "combat"', required: false, description: "Type of distress: fuel (out of fuel), repair (hull critically damaged), combat (under attack)", enumValues: ["fuel", "repair", "combat"] }
|
|
2836
|
+
{ name: "distress_type", type: '"fuel" | "repair" | "combat" | "tow"', required: false, description: "Type of distress: fuel (out of fuel), repair (hull critically damaged), combat (under attack), tow (Salvage Authority tug docks you at the nearest public station after 5 minutes, for a fee)", enumValues: ["fuel", "repair", "combat", "tow"] }
|
|
2802
2837
|
]
|
|
2803
2838
|
},
|
|
2804
2839
|
"spacemolt/dock": {
|
|
@@ -2899,7 +2934,7 @@ var ACTIONS = {
|
|
|
2899
2934
|
tool: "spacemolt",
|
|
2900
2935
|
action: "get_map",
|
|
2901
2936
|
kind: "query",
|
|
2902
|
-
summary: "View
|
|
2937
|
+
summary: "View known space and your charted frontier systems",
|
|
2903
2938
|
responseType: "GetMapCommandResponse",
|
|
2904
2939
|
params: [
|
|
2905
2940
|
{ 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 +3103,14 @@ var ACTIONS = {
|
|
|
3068
3103
|
{ 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
3104
|
]
|
|
3070
3105
|
},
|
|
3106
|
+
"spacemolt/interact_poi": {
|
|
3107
|
+
tool: "spacemolt",
|
|
3108
|
+
action: "interact_poi",
|
|
3109
|
+
kind: "mutation",
|
|
3110
|
+
summary: "Interact with an archive at your current POI",
|
|
3111
|
+
detailsType: "InteractPoiResponse",
|
|
3112
|
+
params: []
|
|
3113
|
+
},
|
|
3071
3114
|
"spacemolt/jettison": {
|
|
3072
3115
|
tool: "spacemolt",
|
|
3073
3116
|
action: "jettison",
|
|
@@ -3364,6 +3407,7 @@ function buildCommands(dispatch) {
|
|
|
3364
3407
|
hunt: bind("spacemolt", "hunt"),
|
|
3365
3408
|
inspect: bind("spacemolt", "inspect"),
|
|
3366
3409
|
install_mod: bind("spacemolt", "install_mod"),
|
|
3410
|
+
interact_poi: bindBare("spacemolt", "interact_poi"),
|
|
3367
3411
|
jettison: bind("spacemolt", "jettison"),
|
|
3368
3412
|
jump: bind("spacemolt", "jump"),
|
|
3369
3413
|
list_passengers: bindBare("spacemolt", "list_passengers"),
|
|
@@ -3454,6 +3498,7 @@ function buildCommands(dispatch) {
|
|
|
3454
3498
|
faction_list: bindBare("spacemolt_facility", "faction_list"),
|
|
3455
3499
|
faction_owned: bindBare("spacemolt_facility", "faction_owned"),
|
|
3456
3500
|
faction_upgrade: bind("spacemolt_facility", "faction_upgrade"),
|
|
3501
|
+
found_gate_site: bind("spacemolt_facility", "found_gate_site"),
|
|
3457
3502
|
found_station: bind("spacemolt_facility", "found_station"),
|
|
3458
3503
|
job_add: bind("spacemolt_facility", "job_add"),
|
|
3459
3504
|
job_cancel: bind("spacemolt_facility", "job_cancel"),
|
|
@@ -3476,6 +3521,7 @@ function buildCommands(dispatch) {
|
|
|
3476
3521
|
set_build_policy: bind("spacemolt_facility", "set_build_policy"),
|
|
3477
3522
|
set_contraband: bind("spacemolt_facility", "set_contraband"),
|
|
3478
3523
|
set_description: bind("spacemolt_facility", "set_description"),
|
|
3524
|
+
set_gate_access: bind("spacemolt_facility", "set_gate_access"),
|
|
3479
3525
|
set_market_fee: bind("spacemolt_facility", "set_market_fee"),
|
|
3480
3526
|
set_name: bind("spacemolt_facility", "set_name"),
|
|
3481
3527
|
set_output_price: bind("spacemolt_facility", "set_output_price"),
|
|
@@ -3483,6 +3529,7 @@ function buildCommands(dispatch) {
|
|
|
3483
3529
|
set_refuel_price: bind("spacemolt_facility", "set_refuel_price"),
|
|
3484
3530
|
set_repair_price: bind("spacemolt_facility", "set_repair_price"),
|
|
3485
3531
|
set_service_access: bind("spacemolt_facility", "set_service_access"),
|
|
3532
|
+
set_toll: bind("spacemolt_facility", "set_toll"),
|
|
3486
3533
|
station_info: bindBare("spacemolt_facility", "station_info"),
|
|
3487
3534
|
station_set_name: bind("spacemolt_facility", "station_set_name"),
|
|
3488
3535
|
transfer: bind("spacemolt_facility", "transfer"),
|
|
@@ -4012,6 +4059,7 @@ class ObservationCache {
|
|
|
4012
4059
|
creatures: indexBy(snapshot.creatures, (c) => c.creature_id),
|
|
4013
4060
|
prizes: indexBy(snapshot.prizes, (p) => p.prize_id),
|
|
4014
4061
|
arenaNpcs: indexBy(snapshot.arena_npcs, (n) => n.npc_id),
|
|
4062
|
+
repeaters: indexBy(snapshot.repeaters, (r) => r.repeater_id),
|
|
4015
4063
|
offlineCollapsed: snapshot.offline_collapsed ?? 0,
|
|
4016
4064
|
shipCounts: new Map(Object.entries(snapshot.ship_counts ?? {})),
|
|
4017
4065
|
cloaked: indexBy(snapshot.cloaked_contacts, (c) => c.target_id),
|
|
@@ -4032,6 +4080,7 @@ class ObservationCache {
|
|
|
4032
4080
|
creatures: new Map,
|
|
4033
4081
|
prizes: new Map,
|
|
4034
4082
|
arenaNpcs: new Map,
|
|
4083
|
+
repeaters: new Map,
|
|
4035
4084
|
offlineCollapsed: 0,
|
|
4036
4085
|
shipCounts: new Map,
|
|
4037
4086
|
cloaked: new Map,
|
|
@@ -4047,6 +4096,7 @@ class ObservationCache {
|
|
|
4047
4096
|
merge(v.creatures, update.creatures_changed, update.creatures_departed, (c) => c.creature_id);
|
|
4048
4097
|
merge(v.prizes, update.prizes_changed, update.prizes_departed, (p) => p.prize_id);
|
|
4049
4098
|
merge(v.arenaNpcs, update.arena_npcs_changed, update.arena_npcs_departed, (n) => n.npc_id);
|
|
4099
|
+
merge(v.repeaters, update.repeaters_changed, update.repeaters_departed, (r) => r.repeater_id);
|
|
4050
4100
|
merge(v.cloaked, update.cloaked_resolved, update.cloaked_lost, (c) => c.target_id);
|
|
4051
4101
|
if (update.offline_collapsed !== undefined)
|
|
4052
4102
|
v.offlineCollapsed = update.offline_collapsed;
|
|
@@ -4360,12 +4410,15 @@ var ARRIVED = {
|
|
|
4360
4410
|
nearby_empire_npcs: undefined,
|
|
4361
4411
|
nearby_empire_npc_count: undefined,
|
|
4362
4412
|
nearby_leviathans: undefined,
|
|
4413
|
+
nearby_repeaters: undefined,
|
|
4414
|
+
poi_hazard: undefined,
|
|
4363
4415
|
offline_collapsed: undefined,
|
|
4364
4416
|
unknown_signature: undefined
|
|
4365
4417
|
};
|
|
4366
4418
|
var ARRIVED_IN_NEW_SYSTEM = {
|
|
4367
4419
|
...ARRIVED,
|
|
4368
4420
|
connections: undefined,
|
|
4421
|
+
frontier_tier: undefined,
|
|
4369
4422
|
empire: undefined,
|
|
4370
4423
|
security_status: undefined
|
|
4371
4424
|
};
|
|
@@ -4821,6 +4874,7 @@ class Account {
|
|
|
4821
4874
|
nearby_empire_npc_count: view.empireNpcs.size,
|
|
4822
4875
|
nearby_prizes: [...view.prizes.values()],
|
|
4823
4876
|
nearby_prize_count: view.prizes.size,
|
|
4877
|
+
nearby_repeaters: [...view.repeaters.values()],
|
|
4824
4878
|
offline_collapsed: view.offlineCollapsed,
|
|
4825
4879
|
unknown_signature: view.unknownSignature
|
|
4826
4880
|
});
|
|
@@ -5910,11 +5964,13 @@ var TYPED_NOTIFICATION_TYPES = [
|
|
|
5910
5964
|
"faction_withdraw_invite",
|
|
5911
5965
|
"fleet",
|
|
5912
5966
|
"gift_received",
|
|
5967
|
+
"hazard_warning",
|
|
5913
5968
|
"hold_update",
|
|
5914
5969
|
"market_update",
|
|
5915
5970
|
"mining_yield",
|
|
5916
5971
|
"observation_update",
|
|
5917
5972
|
"ok",
|
|
5973
|
+
"pathfinder_storm",
|
|
5918
5974
|
"personnel_update",
|
|
5919
5975
|
"pilotless_ship",
|
|
5920
5976
|
"pirate_destroyed",
|
|
@@ -6021,5 +6077,5 @@ export {
|
|
|
6021
6077
|
retryAfterMsFromClose
|
|
6022
6078
|
};
|
|
6023
6079
|
|
|
6024
|
-
//# debugId=
|
|
6080
|
+
//# debugId=6C9A8FADF74B7E5C64756E2164756E21
|
|
6025
6081
|
//# sourceMappingURL=index.js.map
|