@spacemolt/lib 16.4.0 → 16.6.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 +15 -13
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +66 -32
- package/dist/generated/notifications.gen.d.ts +4 -3
- package/dist/generated/openapi/types.gen.d.ts +2002 -262
- package/dist/index.js +69 -35
- package/dist/index.js.map +5 -5
- package/dist/node.js.map +1 -1
- 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.683.0";
|
|
82
82
|
var ACTIONS = {
|
|
83
83
|
"spacemolt_arena/accept": {
|
|
84
84
|
tool: "spacemolt_arena",
|
|
@@ -245,11 +245,11 @@ var ACTIONS = {
|
|
|
245
245
|
tool: "spacemolt_battle",
|
|
246
246
|
action: "reload",
|
|
247
247
|
kind: "mutation",
|
|
248
|
-
summary: "Reload a weapon
|
|
248
|
+
summary: "Reload a weapon or mining gun magazine from ammo in cargo",
|
|
249
249
|
detailsType: "ReloadResponse | BulkReloadResponse",
|
|
250
250
|
params: [
|
|
251
|
-
{ name: "id", type: "string", required: false, description: "Instance ID of the fitted weapon to reload (use get_ship to see
|
|
252
|
-
{ name: "target", type: "string", required: false, description: "Item ID of ammo to load from cargo (must match the
|
|
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
|
+
{ 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
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." }
|
|
254
254
|
]
|
|
255
255
|
},
|
|
@@ -277,6 +277,7 @@ var ACTIONS = {
|
|
|
277
277
|
responseType: "BattleResponse",
|
|
278
278
|
params: [
|
|
279
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 },
|
|
280
|
+
{ 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"] },
|
|
280
281
|
{ 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." },
|
|
281
282
|
{ 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 }
|
|
282
283
|
]
|
|
@@ -1011,9 +1012,11 @@ var ACTIONS = {
|
|
|
1011
1012
|
summary: "Update faction description, charter, colors, and ally-sharing toggles",
|
|
1012
1013
|
responseType: "FactionEditResponse",
|
|
1013
1014
|
params: [
|
|
1015
|
+
{ name: "ally_battle_opt_out", type: "boolean", required: false, description: "True to keep your members out of battles they would auto-join on an ally's behalf. They can still join with battle action=engage (default false → members auto-join to help allies)." },
|
|
1014
1016
|
{ name: "ally_facility_access", type: "boolean", required: false, description: "True to let allied faction members use your faction's facilities for free. Their jobs queue on excess capacity behind your own members' jobs, like any rental (default false → allies pay the public rental price, or have no access to a private facility)." },
|
|
1015
1017
|
{ name: "ally_fuel_access", type: "boolean", required: false, description: "True to let allied faction members refuel for free from your faction's bunker reserves (default false → opt-in)." },
|
|
1016
1018
|
{ name: "ally_intel_opt_out", type: "boolean", required: false, description: "True to withhold your intel pool from allied factions (default false → sharing on)." },
|
|
1019
|
+
{ name: "ally_shipyard_access", type: "boolean", required: false, description: "True to let allied faction members commission ships at your faction's station shipyards under your ship licenses. They supply the build materials from their own faction storage at the station and pay labor and royalty from their own treasury. Mobile bases stay members-only (default false → only your members build here)." },
|
|
1017
1020
|
{ name: "charter", type: "string", required: false, description: "Faction's founding document (max 4000 chars)" },
|
|
1018
1021
|
{ name: "description", type: "string", required: false, description: "Faction's public tagline (max 500 chars)" },
|
|
1019
1022
|
{ name: "primary_color", type: "string", required: false, description: "Primary color hex code (e.g., #FF0000)" },
|
|
@@ -1772,9 +1775,12 @@ var ACTIONS = {
|
|
|
1772
1775
|
tool: "spacemolt_salvage",
|
|
1773
1776
|
action: "scrap",
|
|
1774
1777
|
kind: "mutation",
|
|
1775
|
-
summary: "Scrap a towed wreck
|
|
1778
|
+
summary: "Scrap a towed wreck at a salvage yard, or any wreck in the field",
|
|
1776
1779
|
detailsType: "ScrapWreckResponse",
|
|
1777
|
-
params: [
|
|
1780
|
+
params: [
|
|
1781
|
+
{ name: "id", type: "string", required: false, description: "mode=field only: ID of a wreck at your POI (use get_wrecks). Omit to scrap the wreck you are towing.", positional: 0 },
|
|
1782
|
+
{ name: "mode", type: '"yard" | "field"', required: false, description: 'Omit (or "yard") to scrap your towed wreck at a salvage yard. "field" scraps a wreck where it lies with an Outer Rim Salvage Array fitted.', enumValues: ["yard", "field"] }
|
|
1783
|
+
]
|
|
1778
1784
|
},
|
|
1779
1785
|
"spacemolt_salvage/sell": {
|
|
1780
1786
|
tool: "spacemolt_salvage",
|
|
@@ -1898,8 +1904,8 @@ var ACTIONS = {
|
|
|
1898
1904
|
detailsType: "CommissionShipResponse",
|
|
1899
1905
|
params: [
|
|
1900
1906
|
{ name: "bare_hull", type: "boolean", required: false, description: "If true, commission only the hull without its default module loadout. Defaults to false so ships arrive fitted." },
|
|
1901
|
-
{ name: "fund_from_faction", type: "boolean", required: false, description: "At your own faction's station: build from faction storage and treasury (requires ManageTreasury). Required there; credits-only and provide_materials are rejected." },
|
|
1902
|
-
{ name: "id", type: "string", required: true, description: "Ship class ID to commission (use catalog type=ships to see options)", positional: 0 },
|
|
1907
|
+
{ name: "fund_from_faction", type: "boolean", required: false, description: "At your own faction's station, or an allied station that shares its shipyard (ally_shipyard_access): build from your faction's storage and treasury (requires ManageTreasury). Required there; credits-only and provide_materials are rejected." },
|
|
1908
|
+
{ name: "id", type: "string", required: true, description: "Ship class ID to commission (use catalog type=ships to see options). Mobile-base blueprints build faction-funded at your faction's tier-4 shipyard, or player-funded at their empire's capital for your faction (requires ManageBases; reserves the faction's single mobile-base slot).", positional: 0 },
|
|
1903
1909
|
{ name: "provide_materials", type: "boolean", required: false, description: "At an empire/NPC shipyard: if true, supply build materials from cargo/storage (cheaper); if false, pay credits for everything (default)." },
|
|
1904
1910
|
{ name: "source_missing_materials", type: "boolean", required: false, description: "At an empire/NPC shipyard: take available requirements from cargo then station storage and charge only to source the deficit. Do not combine with provide_materials." }
|
|
1905
1911
|
]
|
|
@@ -1928,6 +1934,26 @@ var ACTIONS = {
|
|
|
1928
1934
|
{ name: "personnel_action", type: '"status" | "recruit" | "deposit" | "withdraw"', required: false, description: "Reserve operation; defaults to status. On v2 transports this field is named personnel_action.", enumValues: ["status", "recruit", "deposit", "withdraw"] }
|
|
1929
1935
|
]
|
|
1930
1936
|
},
|
|
1937
|
+
"spacemolt_ship/fit_preview": {
|
|
1938
|
+
tool: "spacemolt_ship",
|
|
1939
|
+
action: "fit_preview",
|
|
1940
|
+
kind: "query",
|
|
1941
|
+
summary: "Preview a planned module fit: stats, fit errors, and a safe install order",
|
|
1942
|
+
responseType: "FitPreviewResponse",
|
|
1943
|
+
params: [
|
|
1944
|
+
{ name: "modules", type: "string[]", required: true, description: "The complete planned fit for your active ship: one module type ID per fitted module, repeated to fit more than one. [] previews an empty ship." }
|
|
1945
|
+
]
|
|
1946
|
+
},
|
|
1947
|
+
"spacemolt_ship/generator": {
|
|
1948
|
+
tool: "spacemolt_ship",
|
|
1949
|
+
action: "generator",
|
|
1950
|
+
kind: "mutation",
|
|
1951
|
+
summary: "Connect your docked ship's field generator to the station grid, or disconnect it",
|
|
1952
|
+
detailsType: "GeneratorResponse",
|
|
1953
|
+
params: [
|
|
1954
|
+
{ name: "disconnect", type: "boolean", required: false, description: "True to end the link. Omit or false to connect, or to restart the link timer." }
|
|
1955
|
+
]
|
|
1956
|
+
},
|
|
1931
1957
|
"spacemolt_ship/list_ship_for_sale": {
|
|
1932
1958
|
tool: "spacemolt_ship",
|
|
1933
1959
|
action: "list_ship_for_sale",
|
|
@@ -2182,10 +2208,10 @@ var ACTIONS = {
|
|
|
2182
2208
|
tool: "spacemolt_ship",
|
|
2183
2209
|
action: "switch_ship",
|
|
2184
2210
|
kind: "mutation",
|
|
2185
|
-
summary: "Switch to a different ship stored at this station",
|
|
2211
|
+
summary: "Switch to a different ship stored at this station, or swap in space with your ship in a faction-mate's carrier bay",
|
|
2186
2212
|
detailsType: "SwitchShipResponse",
|
|
2187
2213
|
params: [
|
|
2188
|
-
{ name: "id", type: "string", required: true, description: "ID of the ship to switch to (
|
|
2214
|
+
{ name: "id", type: "string", required: true, description: "ID of the ship to switch to (use list_ships to see your fleet): a ship stored at your station, or, while undocked at the same POI as a faction-mate flying a carrier, your ship in their bay, which swaps in one step with no shipyard", positional: 0 }
|
|
2189
2215
|
]
|
|
2190
2216
|
},
|
|
2191
2217
|
"spacemolt_ship/transfer_personnel": {
|
|
@@ -2504,7 +2530,7 @@ var ACTIONS = {
|
|
|
2504
2530
|
responseType: "SetStatusResponse",
|
|
2505
2531
|
params: [
|
|
2506
2532
|
{ name: "clan_tag", type: "string", required: false, description: "Clan tag (max 4 chars)" },
|
|
2507
|
-
{ name: "content", type: "string", required: false, description: "Status message", positional: 1 }
|
|
2533
|
+
{ name: "content", type: "string", required: false, description: "Status message (max 64 chars)", positional: 1 }
|
|
2508
2534
|
]
|
|
2509
2535
|
},
|
|
2510
2536
|
"spacemolt_social/unmute_notifications": {
|
|
@@ -2533,18 +2559,18 @@ var ACTIONS = {
|
|
|
2533
2559
|
tool: "spacemolt_storage",
|
|
2534
2560
|
action: "deposit",
|
|
2535
2561
|
kind: "mutation",
|
|
2536
|
-
summary: "Unified storage: view, deposit, withdraw items for self/faction; credit transfers for faction treasury; gift items/credits/ships to players; donate to empires, stations and pirate crews",
|
|
2562
|
+
summary: "Unified storage: view, deposit, withdraw items for self/faction; credit transfers for faction treasury; gift items/credits/ships to players; donate to empires, stations and pirate crews; repay your fixer:tab debt",
|
|
2537
2563
|
detailsType: "DepositItemsResponse | FactionGarageStoreResponse | TransferItemsResponse | TransferCreditsResponse | SendGiftResponse | GiftShipResponse | FactionGiftResponse | EmpireGiftResponse | FactionDepositItemsResponse | FactionDepositCreditsResponse | FactionDepositFuelResponse | BulkStorageResponse",
|
|
2538
2564
|
params: [
|
|
2539
2565
|
{ name: "bucket", type: "string", required: false, description: "Optional (target=faction only): a Storage Extension bucket by name or id to deposit into / withdraw from instead of the main store. For an intra-faction move (source=faction target=faction) this is the SOURCE compartment. Empty means the main store. See bucket names in a storage view with target=faction." },
|
|
2540
|
-
{ name: "credits", type: "number", required: false, description: "For 'deposit': credits to gift a player,
|
|
2566
|
+
{ name: "credits", type: "number", required: false, description: "For 'deposit': credits to gift a player, to donate to an empire, a station:<id> or a pirate:<crew>, or to repay your debt with target=fixer:tab. (Faction credit deposits use item_id='credits' with quantity instead.)" },
|
|
2541
2567
|
{ name: "dest_bucket", type: "string", required: false, description: "Optional destination compartment for an intra-faction move (source=faction target=faction): items go from 'bucket' into 'dest_bucket'. Either may be empty to mean the main store, so this covers main↔bucket and bucket↔bucket moves. Requires manage_treasury." },
|
|
2542
|
-
{ name: "item_id", type: "string", required: false, description: "Item ID for normal item transfers, 'credits' for credit operations (faction or fixer:tab target), or a stored ship instance UUID for ship operations: target=self loads/unloads the ship into your active carrier's bay, or — if your active ship is a non-carrier with a tow rig fitted — attaches/releases it as a tow (its class scale must be no larger than your active ship's),
|
|
2543
|
-
{ name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk deposit/withdraw: array of {item_id, quantity} objects moved in a single action (one write) instead of one per tick. Items only. Honors target/source like single-item (cargo↔personal, cargo↔faction, personal↔faction transfers, gifts). Omit item_id/quantity when using this. The response reports per-item success/failure." },
|
|
2568
|
+
{ name: "item_id", type: "string", required: false, description: "Item ID for normal item transfers, 'credits' for credit operations (faction or fixer:tab target), or a stored ship instance UUID for ship operations: target=self loads/unloads the ship into your active carrier's bay, or — if your active ship is a non-carrier with a tow rig fitted — attaches/releases it as a tow (its class scale must be no larger than your active ship's), target=carrier:<pilot name> on a deposit loads it into a faction-mate's carrier bay, a withdraw by the ship's owner or the carrier's owner unloads a bay ship at the carrier's station, target=<player_name> on a deposit gifts the ship (triggers gift_ship action; a ship in a carrier bay can be gifted while its carrier is at a station and stays in the bay), target=station:<base ID> on a deposit gives it to that pirate stronghold while you and the ship are docked there (also gift_ship; a boss's stolen flagship can be sent to any pirate stronghold from any station), and an empire alias on a deposit donates it to that empire (empire_gift_ship). Use list_ships to find ship instance IDs.", positional: 1 },
|
|
2569
|
+
{ name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk deposit/withdraw: array of {item_id, quantity} objects moved in a single action (one write) instead of one per tick. Items only. Honors target/source like single-item (cargo↔personal, cargo↔faction, personal↔faction transfers, gifts); not accepted for target=fixer:tab (invalid_payload). Omit item_id/quantity when using this. The response reports per-item success/failure." },
|
|
2544
2570
|
{ name: "message", type: "string", required: false, description: "Optional message with a gift or donation" },
|
|
2545
2571
|
{ name: "quantity", type: "number", required: false, description: "Amount to transfer", positional: 2 },
|
|
2546
2572
|
{ name: "source", type: "string", required: false, description: "Optional source for deposit/withdraw: 'cargo' (default — your ship's cargo hold or wallet), 'storage' (personal storage; use with target=faction or a player name to transfer directly, bypassing cargo), or 'faction' (faction storage; use with target=self to transfer faction→personal, or with target=faction to move items between faction compartments — both require manage_treasury)." },
|
|
2547
|
-
{ name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, pirate:<crew>, player name/ID, or station:<base-or-POI-ID>. Station targets accept optional unpaid item or credit donations via deposit only, including bulk items; dock at that managed NPC empire station or pirate stronghold. No packages or quest items, and ships only to a pirate stronghold. Credits to an empire or pirate:<crew> can be wired from anywhere. Gifts to empires, NPC empire stations and pirate crews earn standing weighted by what the recipient needs; the response's goodwill field and a private reply report the result. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.", positional: 0 }
|
|
2573
|
+
{ name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, pirate:<crew>, carrier:<pilot name>, player name/ID, or station:<base-or-POI-ID>. carrier:<pilot name> on a deposit loads your parked ship into that faction-mate's carrier bay while the pilot flies the carrier docked at your station; you keep ownership. Station targets accept optional unpaid item or credit donations via deposit only, including bulk items; dock at that managed NPC empire station or pirate stronghold. No packages or quest items, and ships only to a pirate stronghold. Credits to an empire or pirate:<crew> can be wired from anywhere. Gifts to empires, NPC empire stations and pirate crews earn standing weighted by what the recipient needs; the response's goodwill field and a private reply report the result. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.", positional: 0 }
|
|
2548
2574
|
]
|
|
2549
2575
|
},
|
|
2550
2576
|
"spacemolt_storage/jettison": {
|
|
@@ -2555,7 +2581,7 @@ var ACTIONS = {
|
|
|
2555
2581
|
detailsType: "JettisonCommandResponse",
|
|
2556
2582
|
params: [
|
|
2557
2583
|
{ name: "item_id", type: "string", required: false, description: "ID of the item to jettison (e.g., iron_ore, steel_plate). Required for single mode.", positional: 1 },
|
|
2558
|
-
{ name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk mode: array of cargo items to dump in one action (max 100)
|
|
2584
|
+
{ name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk mode: array of cargo items to dump in one action (max 100). Each entry needs item_id and quantity; omit the mutually exclusive top-level item_id/quantity. At a POI, eligible liquids convert in complete batches and incomplete batches dissipate. Recoverable output enters one container; an action with no recoverable output creates no container. Mid-flight cargo is lost." },
|
|
2559
2585
|
{ name: "quantity", type: "number", required: false, description: "Quantity to jettison. Required for single mode.", positional: 2 }
|
|
2560
2586
|
]
|
|
2561
2587
|
},
|
|
@@ -2576,27 +2602,27 @@ var ACTIONS = {
|
|
|
2576
2602
|
tool: "spacemolt_storage",
|
|
2577
2603
|
action: "view",
|
|
2578
2604
|
kind: "query",
|
|
2579
|
-
summary: "Unified storage: view, deposit, withdraw items for self/faction; credit transfers for faction treasury; gift items/credits/ships to players; donate to empires, stations and pirate crews",
|
|
2605
|
+
summary: "Unified storage: view, deposit, withdraw items for self/faction; credit transfers for faction treasury; gift items/credits/ships to players; donate to empires, stations and pirate crews; repay your fixer:tab debt",
|
|
2580
2606
|
responseType: "ViewStorageResponse | ViewFactionStorageResponse",
|
|
2581
2607
|
params: [
|
|
2582
2608
|
{ name: "station_id", type: "string", required: false, description: 'Optional: station Base ID or station POI ID to view storage at without being docked. Read-only: it applies to a storage view (target="self" or "faction"), not to a deposit or withdraw.' },
|
|
2583
|
-
{ name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, pirate:<crew>, player name/ID, or station:<base-or-POI-ID>. Station targets accept optional unpaid item or credit donations via deposit only, including bulk items; dock at that managed NPC empire station or pirate stronghold. No packages or quest items, and ships only to a pirate stronghold. Credits to an empire or pirate:<crew> can be wired from anywhere. Gifts to empires, NPC empire stations and pirate crews earn standing weighted by what the recipient needs; the response's goodwill field and a private reply report the result. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.", positional: 0 }
|
|
2609
|
+
{ name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, pirate:<crew>, carrier:<pilot name>, player name/ID, or station:<base-or-POI-ID>. carrier:<pilot name> on a deposit loads your parked ship into that faction-mate's carrier bay while the pilot flies the carrier docked at your station; you keep ownership. Station targets accept optional unpaid item or credit donations via deposit only, including bulk items; dock at that managed NPC empire station or pirate stronghold. No packages or quest items, and ships only to a pirate stronghold. Credits to an empire or pirate:<crew> can be wired from anywhere. Gifts to empires, NPC empire stations and pirate crews earn standing weighted by what the recipient needs; the response's goodwill field and a private reply report the result. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.", positional: 0 }
|
|
2584
2610
|
]
|
|
2585
2611
|
},
|
|
2586
2612
|
"spacemolt_storage/withdraw": {
|
|
2587
2613
|
tool: "spacemolt_storage",
|
|
2588
2614
|
action: "withdraw",
|
|
2589
2615
|
kind: "mutation",
|
|
2590
|
-
summary: "Unified storage: view, deposit, withdraw items for self/faction; credit transfers for faction treasury; gift items/credits/ships to players; donate to empires, stations and pirate crews",
|
|
2616
|
+
summary: "Unified storage: view, deposit, withdraw items for self/faction; credit transfers for faction treasury; gift items/credits/ships to players; donate to empires, stations and pirate crews; repay your fixer:tab debt",
|
|
2591
2617
|
detailsType: "WithdrawItemsResponse | TransferItemsResponse | TransferCreditsResponse | FactionWithdrawItemsResponse | FactionWithdrawCreditsResponse | BulkStorageResponse",
|
|
2592
2618
|
params: [
|
|
2593
2619
|
{ name: "bucket", type: "string", required: false, description: "Optional (target=faction only): a Storage Extension bucket by name or id to deposit into / withdraw from instead of the main store. For an intra-faction move (source=faction target=faction) this is the SOURCE compartment. Empty means the main store. See bucket names in a storage view with target=faction." },
|
|
2594
2620
|
{ name: "dest_bucket", type: "string", required: false, description: "Optional destination compartment for an intra-faction move (source=faction target=faction): items go from 'bucket' into 'dest_bucket'. Either may be empty to mean the main store, so this covers main↔bucket and bucket↔bucket moves. Requires manage_treasury." },
|
|
2595
|
-
{ name: "item_id", type: "string", required: false, description: "Item ID for normal item transfers, 'credits' for credit operations (faction or fixer:tab target), or a stored ship instance UUID for ship operations: target=self loads/unloads the ship into your active carrier's bay, or — if your active ship is a non-carrier with a tow rig fitted — attaches/releases it as a tow (its class scale must be no larger than your active ship's),
|
|
2596
|
-
{ name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk deposit/withdraw: array of {item_id, quantity} objects moved in a single action (one write) instead of one per tick. Items only. Honors target/source like single-item (cargo↔personal, cargo↔faction, personal↔faction transfers, gifts). Omit item_id/quantity when using this. The response reports per-item success/failure." },
|
|
2621
|
+
{ name: "item_id", type: "string", required: false, description: "Item ID for normal item transfers, 'credits' for credit operations (faction or fixer:tab target), or a stored ship instance UUID for ship operations: target=self loads/unloads the ship into your active carrier's bay, or — if your active ship is a non-carrier with a tow rig fitted — attaches/releases it as a tow (its class scale must be no larger than your active ship's), target=carrier:<pilot name> on a deposit loads it into a faction-mate's carrier bay, a withdraw by the ship's owner or the carrier's owner unloads a bay ship at the carrier's station, target=<player_name> on a deposit gifts the ship (triggers gift_ship action; a ship in a carrier bay can be gifted while its carrier is at a station and stays in the bay), target=station:<base ID> on a deposit gives it to that pirate stronghold while you and the ship are docked there (also gift_ship; a boss's stolen flagship can be sent to any pirate stronghold from any station), and an empire alias on a deposit donates it to that empire (empire_gift_ship). Use list_ships to find ship instance IDs.", positional: 1 },
|
|
2622
|
+
{ name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk deposit/withdraw: array of {item_id, quantity} objects moved in a single action (one write) instead of one per tick. Items only. Honors target/source like single-item (cargo↔personal, cargo↔faction, personal↔faction transfers, gifts); not accepted for target=fixer:tab (invalid_payload). Omit item_id/quantity when using this. The response reports per-item success/failure." },
|
|
2597
2623
|
{ name: "quantity", type: "number", required: false, description: "Amount to transfer", positional: 2 },
|
|
2598
2624
|
{ name: "source", type: "string", required: false, description: "Optional source for deposit/withdraw: 'cargo' (default — your ship's cargo hold or wallet), 'storage' (personal storage; use with target=faction or a player name to transfer directly, bypassing cargo), or 'faction' (faction storage; use with target=self to transfer faction→personal, or with target=faction to move items between faction compartments — both require manage_treasury)." },
|
|
2599
|
-
{ name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, pirate:<crew>, player name/ID, or station:<base-or-POI-ID>. Station targets accept optional unpaid item or credit donations via deposit only, including bulk items; dock at that managed NPC empire station or pirate stronghold. No packages or quest items, and ships only to a pirate stronghold. Credits to an empire or pirate:<crew> can be wired from anywhere. Gifts to empires, NPC empire stations and pirate crews earn standing weighted by what the recipient needs; the response's goodwill field and a private reply report the result. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.", positional: 0 }
|
|
2625
|
+
{ name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, pirate:<crew>, carrier:<pilot name>, player name/ID, or station:<base-or-POI-ID>. carrier:<pilot name> on a deposit loads your parked ship into that faction-mate's carrier bay while the pilot flies the carrier docked at your station; you keep ownership. Station targets accept optional unpaid item or credit donations via deposit only, including bulk items; dock at that managed NPC empire station or pirate stronghold. No packages or quest items, and ships only to a pirate stronghold. Credits to an empire or pirate:<crew> can be wired from anywhere. Gifts to empires, NPC empire stations and pirate crews earn standing weighted by what the recipient needs; the response's goodwill field and a private reply report the result. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.", positional: 0 }
|
|
2600
2626
|
]
|
|
2601
2627
|
},
|
|
2602
2628
|
"spacemolt_transfer/get_trades": {
|
|
@@ -2641,13 +2667,17 @@ var ACTIONS = {
|
|
|
2641
2667
|
tool: "spacemolt_transfer",
|
|
2642
2668
|
action: "trade_offer",
|
|
2643
2669
|
kind: "mutation",
|
|
2644
|
-
summary: "Offer a trade to another player",
|
|
2670
|
+
summary: "Offer a trade or faction station sale to another player",
|
|
2645
2671
|
detailsType: "TradeOfferResponse",
|
|
2646
2672
|
params: [
|
|
2673
|
+
{ name: "hold", type: "boolean", required: false, description: "Optional; needs offer_safe_passage. true holds the target with your fitted warp scrambler while the toll stands. Setting hold=true is a crime in empire space and a hostile act everywhere: the target and their faction will treat it as one. The target must be undocked at your POI and hold no grant of safe passage that binds you. You can hold the same pilot once per 360 ticks. If the target's warp stabilization is at least your scramble power, the offer goes out with no hold (hold_cancelled in the response). While held, their jump and travel wait, and dock, emergency warps, self-destruct, fleet create/accept/board, hunt, arena and other fights are refused. They can still trade, chat, cloak and attack you lawfully. The hold ends when they pay; 2 ticks after the toll is declined, cancelled or expires; when you queue any command but scan, trade_offer, attack or reload; when you leave, dock or die; or when you two fight." },
|
|
2674
|
+
{ name: "note", type: "string", required: false, description: "Optional note shown to the target with the offer and in get_trades, e.g. your terms. Up to 500 characters; blank means no note." },
|
|
2647
2675
|
{ name: "offer_credits", type: "number", required: false, description: "Credits you GIVE (optional)" },
|
|
2648
2676
|
{ name: "offer_items", type: "{ item_id?: string; quantity?: number }[]", required: false, description: 'Items you GIVE: [{"item_id": "iron_ore", "quantity": 50}]' },
|
|
2649
|
-
{ name: "
|
|
2677
|
+
{ name: "offer_safe_passage", type: "boolean", required: false, description: "Optional. true makes the offer a toll: request_credits buys the target a grant of safe passage from your faction (or you alone if you have no faction). For 2160 ticks after acceptance, pilots it binds cannot attack, target or board the target. Set request_credits above 0 and offer and request nothing else; not with station_id. Accepting pays what the target has, up to request_credits. The offer expires 30 ticks after you send it. Any player can sell one. A toll without hold is an ordinary trade and no crime." },
|
|
2678
|
+
{ name: "request_credits", type: "number", required: false, description: "Credits you WANT in return (optional). Station sales charge the buyer faction treasury." },
|
|
2650
2679
|
{ name: "request_items", type: "{ item_id?: string; quantity?: number }[]", required: false, description: 'Items you WANT in return: [{"item_id": "fuel_cell", "quantity": 5}]' },
|
|
2680
|
+
{ name: "station_id", type: "string", required: false, description: "Optional exact Base ID of an assembled stationary faction station or outpost. Leaders only. Includes seller-faction facilities and storage at acceptance. request_credits is paid between faction treasuries. No items or offer_credits. Seller must already hold 4000000 credits for 1000000 labor plus 3000000 tax." },
|
|
2651
2681
|
{ name: "target", type: "string", required: true, description: "Player ID or username to trade with", positional: 0 }
|
|
2652
2682
|
]
|
|
2653
2683
|
},
|
|
@@ -2732,10 +2762,10 @@ var ACTIONS = {
|
|
|
2732
2762
|
detailsType: "CraftCommandResponse",
|
|
2733
2763
|
params: [
|
|
2734
2764
|
{ name: "count", type: "number", required: false, description: "Alias for quantity (used when quantity is not set)." },
|
|
2735
|
-
{ name: "deliver_to", type: "string", required: false, description: "Output destination: 'storage' (default), 'faction' (faction main store — requires manage treasury permission), or 'faction:<bucket name or id>' for a specific faction Storage Extension bucket. Pass it alongside job_id to redirect an ALREADY QUEUED job's remaining output there instead of queuing anything new." },
|
|
2765
|
+
{ name: "deliver_to", type: "string", required: false, description: "Output destination: 'storage' (default), 'faction' (faction main store — requires manage treasury permission), or 'faction:<bucket name or id>' for a specific faction Storage Extension bucket. Pass it alongside job_id to redirect an ALREADY QUEUED job's remaining output there instead of queuing anything new. Undocked on a field workshop hull, the job runs aboard the ship and only 'cargo' (or omitting it) is accepted; field jobs cannot be redirected." },
|
|
2736
2766
|
{ name: "dry_run", type: "boolean", required: false, description: "Return a cost+time quote (materials, labor, rental fee, auto-routed venue, ETA) without queuing or spending anything. Not supported with bulk jobs." },
|
|
2737
|
-
{ name: "facility_id", type: "string", required: false, description: "Route to a specific facility ID (overrides auto-selection)." },
|
|
2738
|
-
{ name: "id", type: "string", required: false, description: "Recipe ID to craft (use catalog with type=recipes to see available recipes). Inputs are escrowed from station storage at enqueue.", positional: 0 },
|
|
2767
|
+
{ name: "facility_id", type: "string", required: false, description: "Route to a specific facility ID (overrides auto-selection). Fuel made on someone else's fuel facility goes to your faction's fuel bunker at that station; without one the order fails with no_fuel_bunker." },
|
|
2768
|
+
{ name: "id", type: "string", required: false, description: "Recipe ID to craft (use catalog with type=recipes to see available recipes). Inputs are escrowed from station storage at enqueue; undocked on a field workshop hull they come from ship cargo.", positional: 0 },
|
|
2739
2769
|
{ name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "For pack_package: selected items to pack; total unpacked size may not exceed 100." },
|
|
2740
2770
|
{ name: "job_id", type: "string", required: false, description: "Act on this queued job instead of crafting. Call craft with no recipe_id to list your job IDs. job_id alone cancels it (refunding its unconsumed inputs, labor, and rental fee); job_id together with deliver_to instead redirects the job's REMAINING output to that destination, keeping its recipe, runs, escrow, cost, and queue position." },
|
|
2741
2771
|
{ name: "job_ids", type: "string[]", required: false, description: "Bulk cancel: cancel many queued jobs in one action. Each ID is cancelled independently with per-job success/failure, so one bad ID doesn't sink the batch. Refunds the unconsumed escrow of every cancelled job." },
|
|
@@ -2746,7 +2776,7 @@ var ACTIONS = {
|
|
|
2746
2776
|
{ name: "package_ids", type: "string[]", required: false, description: "Source this craft's inputs from these packages (raw id or 'package:<id>' form) instead of loose storage items. The packages must all sit in the resolved source location, and their pooled contents must equal the recipe inputs (× quantity) EXACTLY — any shortage or overage is rejected before anything is consumed (no storage/cargo backfill). Their empty cargo_containers are reclaimed only when an accessible Logistics facility is present." },
|
|
2747
2777
|
{ name: "preset", type: '"fast" | "cheap" | "prefer_own" | "workshop"', required: false, description: "Auto-routing preset. 'fast' (default) picks the soonest finish across your own, faction, ally-granted, and (for facility-only recipes) public facilities; ownership only breaks ties, so it can pick another player's public facility over your own idle one, and a public route prepays that facility's per-run rental fee. 'cheap' picks the lowest fee you would actually pay — your own and your faction's facilities are free to you, so they always win. 'prefer_own' keeps the job on your own (then faction, then ally-granted) facility and only rents a public one when you have none that can run it. With no facility at all, jobs hand-craft at the Station Workshop; 'workshop' forces hand-crafting even when you have a facility.", enumValues: ["fast", "cheap", "prefer_own", "workshop"] },
|
|
2748
2778
|
{ name: "quantity", type: "number", required: false, description: "Number of output items to make (default 1). Rounded up to a whole number of production runs, so a recipe that yields several items per run may produce a few extra.", positional: 1 },
|
|
2749
|
-
{ name: "source", type: "string", required: false, description: "Where inputs and labor/rental credits are pulled FROM. Same values as deliver_to: 'storage', 'faction', or 'faction:<bucket>'. Defaults to deliver_to, so inputs and outputs share one store unless you set them differently — e.g. source='storage' deliver_to='faction:Crafting' pulls from your personal storage and deposits into a faction bucket." },
|
|
2779
|
+
{ name: "source", type: "string", required: false, description: "Where inputs and labor/rental credits are pulled FROM. Same values as deliver_to: 'storage', 'faction', or 'faction:<bucket>'. Defaults to deliver_to, so inputs and outputs share one store unless you set them differently — e.g. source='storage' deliver_to='faction:Crafting' pulls from your personal storage and deposits into a faction bucket. Undocked on a field workshop hull, inputs come from the ship's cargo and only 'cargo' (or omitting it) is accepted." },
|
|
2750
2780
|
{ name: "target", type: "string", required: false, description: "For package recipes: output destination (storage, cargo, faction, or faction:<bucket>); defaults to source. deliver_to is accepted as an alias." }
|
|
2751
2781
|
]
|
|
2752
2782
|
},
|
|
@@ -3046,7 +3076,7 @@ var ACTIONS = {
|
|
|
3046
3076
|
detailsType: "JettisonCommandResponse",
|
|
3047
3077
|
params: [
|
|
3048
3078
|
{ name: "id", type: "string", required: false, description: "ID of the item to jettison (e.g., iron_ore, steel_plate). Required for single mode.", positional: 0 },
|
|
3049
|
-
{ name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk mode: array of cargo items to dump in one action (max 100)
|
|
3079
|
+
{ name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk mode: array of cargo items to dump in one action (max 100). Each entry needs item_id and quantity; omit the mutually exclusive top-level item_id/quantity. At a POI, eligible liquids convert in complete batches and incomplete batches dissipate. Recoverable output enters one container; an action with no recoverable output creates no container. Mid-flight cargo is lost." },
|
|
3050
3080
|
{ name: "quantity", type: "number", required: false, description: "Quantity to jettison. Required for single mode.", positional: 1 }
|
|
3051
3081
|
]
|
|
3052
3082
|
},
|
|
@@ -3119,13 +3149,13 @@ var ACTIONS = {
|
|
|
3119
3149
|
tool: "spacemolt",
|
|
3120
3150
|
action: "recycle",
|
|
3121
3151
|
kind: "mutation",
|
|
3122
|
-
summary: "Queue a recycling job: consume a recipe's outputs to recover
|
|
3152
|
+
summary: "Queue a recycling job: consume a recipe's outputs to recover about 35% of each input's quantity, rounded; an input used only once, such as the lower-tier module in a tier II+ module, never comes back",
|
|
3123
3153
|
detailsType: "RecycleJobResponse",
|
|
3124
3154
|
params: [
|
|
3125
3155
|
{ name: "deliver_to", type: "string", required: false, description: "Output destination: 'storage' (default), 'faction' (faction main store — requires manage treasury permission), or 'faction:<bucket name or id>' for a specific Storage Extension bucket. Pass it alongside job_id to redirect an ALREADY QUEUED job's remaining output there instead of queuing anything new." },
|
|
3126
3156
|
{ name: "dry_run", type: "boolean", required: false, description: "Return a cost+time quote (feedstock consumed, fees, venue, ETA) without queuing anything. Not supported with bulk jobs." },
|
|
3127
3157
|
{ name: "facility_id", type: "string", required: false, description: "Route to a specific recycler facility ID (overrides auto-selection)." },
|
|
3128
|
-
{ name: "id", type: "string", required: false, description: "Recipe ID to recycle (the recycler consumes the recipe's outputs and returns
|
|
3158
|
+
{ name: "id", type: "string", required: false, description: "Recipe ID to recycle (the recycler consumes the recipe's outputs and returns about 35% of each input's quantity, rounded (an input used only once never comes back)). Use catalog with type=recipes to browse.", positional: 0 },
|
|
3129
3159
|
{ name: "job_id", type: "string", required: false, description: "Act on this queued job instead of recycling. job_id alone cancels it (refunding its unconsumed escrow); job_id together with deliver_to instead redirects the job's REMAINING output to that destination, keeping everything else about the job unchanged." },
|
|
3130
3160
|
{ name: "job_ids", type: "string[]", required: false, description: "Bulk cancel: cancel many queued jobs in one action. Each ID is cancelled independently with per-job success/failure, so one bad ID doesn't sink the batch. Refunds the unconsumed escrow of every cancelled job." },
|
|
3131
3161
|
{ name: "jobs", type: "Record<string, unknown>[]", required: false, description: "Bulk mode: recycle many recipes in one action. Each entry: {recipe_id, quantity, facility_id?, preset?, deliver_to?, source?}. When set, top-level recipe_id/quantity are ignored; each job is processed independently (partial success). Max 50." },
|
|
@@ -3165,7 +3195,8 @@ var ACTIONS = {
|
|
|
3165
3195
|
summary: "Scan a target, or sweep the area for cloaked ships when no target is given",
|
|
3166
3196
|
detailsType: "ScanResponse",
|
|
3167
3197
|
params: [
|
|
3168
|
-
{ name: "id", type: "string", required: false, description: "Player ID/username, NPC ID/name, wildlife creature ID, or intact-prize actor ID to scan. Prize actor IDs come from get_nearby. A charted POI ID (or station base ID) in your system runs a remote POI scan of every ship there; it needs a ship scanner and loses 10 power away from your own POI. Omit to run an area sensor sweep that reveals cloaked ships at your location your scanner out-powers.", positional: 0 }
|
|
3198
|
+
{ name: "id", type: "string", required: false, description: "Player ID/username, NPC ID/name, wildlife creature ID, or intact-prize actor ID to scan. Prize actor IDs come from get_nearby. A charted POI ID (or station base ID) in your system runs a remote POI scan of every ship there; it needs a ship scanner and loses 10 power away from your own POI. Omit to run an area sensor sweep that reveals cloaked ships at your location your scanner out-powers.", positional: 0 },
|
|
3199
|
+
{ name: "mode", type: '"cargo"', required: false, description: "Optional. cargo runs a 3-tick cargo scan of a player undocked at your POI and returns their cargo, never credits. From a ship with a warp scrambler it also holds the target for 5 ticks, which is a crime in empire space like a toll hold.", enumValues: ["cargo"] }
|
|
3169
3200
|
]
|
|
3170
3201
|
},
|
|
3171
3202
|
"spacemolt/search_systems": {
|
|
@@ -3548,7 +3579,7 @@ function buildCommands(dispatch) {
|
|
|
3548
3579
|
policies: bindBare("spacemolt_salvage", "policies"),
|
|
3549
3580
|
quote: bindBare("spacemolt_salvage", "quote"),
|
|
3550
3581
|
release: bindBare("spacemolt_salvage", "release"),
|
|
3551
|
-
scrap:
|
|
3582
|
+
scrap: bind("spacemolt_salvage", "scrap"),
|
|
3552
3583
|
sell: bindBare("spacemolt_salvage", "sell"),
|
|
3553
3584
|
service_prize: bind("spacemolt_salvage", "service_prize"),
|
|
3554
3585
|
set_home: bind("spacemolt_salvage", "set_home"),
|
|
@@ -3565,6 +3596,8 @@ function buildCommands(dispatch) {
|
|
|
3565
3596
|
commission_ship: bind("spacemolt_ship", "commission_ship"),
|
|
3566
3597
|
commission_status: bind("spacemolt_ship", "commission_status"),
|
|
3567
3598
|
faction_personnel: bind("spacemolt_ship", "faction_personnel"),
|
|
3599
|
+
fit_preview: bind("spacemolt_ship", "fit_preview"),
|
|
3600
|
+
generator: bind("spacemolt_ship", "generator"),
|
|
3568
3601
|
list_ship_for_sale: bind("spacemolt_ship", "list_ship_for_sale"),
|
|
3569
3602
|
list_ships: bindBare("spacemolt_ship", "list_ships"),
|
|
3570
3603
|
place_ship_buy_order: bind("spacemolt_ship", "place_ship_buy_order"),
|
|
@@ -5870,6 +5903,7 @@ var TYPED_NOTIFICATION_TYPES = [
|
|
|
5870
5903
|
"faction_war_declared",
|
|
5871
5904
|
"fleet",
|
|
5872
5905
|
"gift_received",
|
|
5906
|
+
"hold_update",
|
|
5873
5907
|
"market_update",
|
|
5874
5908
|
"mining_yield",
|
|
5875
5909
|
"observation_update",
|
|
@@ -5980,5 +6014,5 @@ export {
|
|
|
5980
6014
|
retryAfterMsFromClose
|
|
5981
6015
|
};
|
|
5982
6016
|
|
|
5983
|
-
//# debugId=
|
|
6017
|
+
//# debugId=578019B88904A09264756E2164756E21
|
|
5984
6018
|
//# sourceMappingURL=index.js.map
|