@spacemolt/lib 16.5.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 +3 -2
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +11 -5
- package/dist/generated/openapi/types.gen.d.ts +865 -10
- package/dist/index.js +17 -6
- package/dist/index.js.map +4 -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.683.0";
|
|
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",
|
|
@@ -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"),
|
|
@@ -6003,5 +6014,5 @@ export {
|
|
|
6003
6014
|
retryAfterMsFromClose
|
|
6004
6015
|
};
|
|
6005
6016
|
|
|
6006
|
-
//# debugId=
|
|
6017
|
+
//# debugId=578019B88904A09264756E2164756E21
|
|
6007
6018
|
//# sourceMappingURL=index.js.map
|