@spacemolt/lib 16.5.0 → 16.7.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 +4 -3
- package/dist/account.d.ts +5 -1
- package/dist/data/stations.d.ts +8 -0
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +12 -6
- package/dist/generated/openapi/types.gen.d.ts +876 -13
- package/dist/index.js +22 -7
- package/dist/index.js.map +7 -7
- package/dist/push-frames.d.ts +8 -0
- 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.684.4";
|
|
82
82
|
var ACTIONS = {
|
|
83
83
|
"spacemolt_arena/accept": {
|
|
84
84
|
tool: "spacemolt_arena",
|
|
@@ -1905,7 +1905,7 @@ var ACTIONS = {
|
|
|
1905
1905
|
params: [
|
|
1906
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." },
|
|
1907
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)", positional: 0 },
|
|
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 },
|
|
1909
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)." },
|
|
1910
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." }
|
|
1911
1911
|
]
|
|
@@ -1934,6 +1934,16 @@ var ACTIONS = {
|
|
|
1934
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"] }
|
|
1935
1935
|
]
|
|
1936
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
|
+
},
|
|
1937
1947
|
"spacemolt_ship/generator": {
|
|
1938
1948
|
tool: "spacemolt_ship",
|
|
1939
1949
|
action: "generator",
|
|
@@ -2429,7 +2439,7 @@ var ACTIONS = {
|
|
|
2429
2439
|
responseType: "GetActionLogResponse",
|
|
2430
2440
|
params: [
|
|
2431
2441
|
{ name: "category", type: '"combat" | "trading" | "ship" | "crafting" | "faction" | "mission" | "skill" | "salvage" | "storage" | "achievement" | "mining" | "navigation" | "exploration" | "reputation" | "drone" | "session" | "other"', required: false, description: "Filter by category (combat, trading, ship, crafting, faction, mission, skill, salvage, storage, achievement, mining, navigation, exploration, reputation, drone, session, other)", enumValues: ["combat", "trading", "ship", "crafting", "faction", "mission", "skill", "salvage", "storage", "achievement", "mining", "navigation", "exploration", "reputation", "drone", "session", "other"] },
|
|
2432
|
-
{ name: "event_type", type: "string", required: false, description: "Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history), or an array of event_types to match any of them" },
|
|
2442
|
+
{ name: "event_type", type: "string | string[]", required: false, description: "Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history), or an array of event_types to match any of them" },
|
|
2433
2443
|
{ name: "faction_id", type: "string", required: false, description: "View a faction's action log instead of your own (must be a member)" },
|
|
2434
2444
|
{ name: "page", type: "number", required: false, description: "Page number (default 1). Ignored when since_id is set." },
|
|
2435
2445
|
{ name: "page_size", type: "number", required: false, description: "Entries per page, or max entries to return when since_id is set (default 50, max 100)" },
|
|
@@ -2752,10 +2762,10 @@ var ACTIONS = {
|
|
|
2752
2762
|
detailsType: "CraftCommandResponse",
|
|
2753
2763
|
params: [
|
|
2754
2764
|
{ name: "count", type: "number", required: false, description: "Alias for quantity (used when quantity is not set)." },
|
|
2755
|
-
{ 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." },
|
|
2756
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." },
|
|
2757
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." },
|
|
2758
|
-
{ 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 },
|
|
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 },
|
|
2759
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." },
|
|
2760
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." },
|
|
2761
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." },
|
|
@@ -2766,7 +2776,7 @@ var ACTIONS = {
|
|
|
2766
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." },
|
|
2767
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"] },
|
|
2768
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 },
|
|
2769
|
-
{ 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." },
|
|
2770
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." }
|
|
2771
2781
|
]
|
|
2772
2782
|
},
|
|
@@ -3586,6 +3596,7 @@ function buildCommands(dispatch) {
|
|
|
3586
3596
|
commission_ship: bind("spacemolt_ship", "commission_ship"),
|
|
3587
3597
|
commission_status: bind("spacemolt_ship", "commission_status"),
|
|
3588
3598
|
faction_personnel: bind("spacemolt_ship", "faction_personnel"),
|
|
3599
|
+
fit_preview: bind("spacemolt_ship", "fit_preview"),
|
|
3589
3600
|
generator: bind("spacemolt_ship", "generator"),
|
|
3590
3601
|
list_ship_for_sale: bind("spacemolt_ship", "list_ship_for_sale"),
|
|
3591
3602
|
list_ships: bindBare("spacemolt_ship", "list_ships"),
|
|
@@ -4498,6 +4509,8 @@ class Account {
|
|
|
4498
4509
|
this.emitter.on("market_update", (payload) => this.marketCache.applyUpdate(payload));
|
|
4499
4510
|
this.emitter.on("observation_update", (payload) => {
|
|
4500
4511
|
this.observationCache.applyUpdate(payload);
|
|
4512
|
+
if (payload.active_scan === false)
|
|
4513
|
+
this.observationActiveScanState = false;
|
|
4501
4514
|
this.bridgeObservationToLocation();
|
|
4502
4515
|
});
|
|
4503
4516
|
}
|
|
@@ -4849,6 +4862,7 @@ class Account {
|
|
|
4849
4862
|
in_transit: true,
|
|
4850
4863
|
transit_arrival_tick: payload.arrival_tick,
|
|
4851
4864
|
transit_dest_system_id: payload.destination,
|
|
4865
|
+
transit_dest_system_name: typeof payload.destination_name === "string" ? payload.destination_name : undefined,
|
|
4852
4866
|
transit_type: "jump"
|
|
4853
4867
|
});
|
|
4854
4868
|
break;
|
|
@@ -4879,6 +4893,7 @@ class Account {
|
|
|
4879
4893
|
in_transit: true,
|
|
4880
4894
|
transit_arrival_tick: payload.arrival_tick,
|
|
4881
4895
|
transit_dest_poi_id: payload.destination,
|
|
4896
|
+
transit_dest_poi_name: typeof payload.destination_name === "string" ? payload.destination_name : undefined,
|
|
4882
4897
|
transit_type: "travel"
|
|
4883
4898
|
});
|
|
4884
4899
|
break;
|
|
@@ -6003,5 +6018,5 @@ export {
|
|
|
6003
6018
|
retryAfterMsFromClose
|
|
6004
6019
|
};
|
|
6005
6020
|
|
|
6006
|
-
//# debugId=
|
|
6021
|
+
//# debugId=C459F737CA02279964756E2164756E21
|
|
6007
6022
|
//# sourceMappingURL=index.js.map
|