@@ -3,53 +3,153 @@ export const PLAYER_API_REFERENCE = {
33 login: { args: ["username", "token"], description: "Auth: Login with saved credentials" },
44 logout: { args: [], description: "Auth: Disconnect cleanly" },
55
6- travel: { args: ["target_poi"], description: "Navigate: Move to location in current system" },
7- jump: { args: ["target_system"], description: "Navigate: Jump to connected system" },
6+ travel: { args: ["target_poi"], description: "Navigate: Move to POI in current system" },
7+ jump: { args: ["target_system"], description: "Navigate: Jump to connected system via gate" },
88 dock: { args: [], description: "Navigate: Dock at station" },
99 undock: { args: [], description: "Navigate: Leave station" },
1010
11- mine: { args: [], description: "Economy: Extract resources at current location" },
12- buy: { args: ["listing_id", "quantity"], description: "Economy: Buy from NPC market" },
13- sell: { args: ["item_id", "quantity"], description: "Economy: Sell to NPC market" },
14- get_listings: { args: [], description: "Economy: View available market items" },
15- refuel: { args: [], description: "Economy: Refuel at station (must be docked)" },
16- repair: {
17- args: [],
18- description: "Economy: Repair hull/shields at station (must be docked)",
19- },
11+ mine: { args: [], description: "Mining: Extract resources at current POI" },
2012
21- attack: {
22- args: ["target_id", "weapon_idx"],
23- description: "Combat: Attack player at location",
24- },
13+ attack: { args: ["target_id", "weapon_idx?"], description: "Combat: Attack player at location" },
2514 scan: { args: ["target_id"], description: "Combat: Scan player for info" },
2615 cloak: { args: ["enable"], description: "Combat: Toggle cloaking device" },
2716
28- get_status: { args: [], description: "Info: Current player/ship status" },
29- get_system: { args: [], description: "Info: Current system info with connections" },
30- get_poi: { args: [], description: "Info: Current location details" },
31- get_ship: { args: [], description: "Info: Detailed ship stats and cargo" },
32- help: { args: ["topic"], description: "Info: Get action help" },
33-
34- chat: {
35- args: ["channel", "content", "target_id?"],
36- description: "Social: Send message - channels: local, system, faction, private",
17+ buy: { args: ["listing_id", "quantity"], description: "Trade: Buy from NPC market" },
18+ sell: { args: ["item_id", "quantity"], description: "Trade: Sell to NPC market" },
19+ list_item: {
20+ args: ["item_id", "quantity", "price_each"],
21+ description: "Trade: List on player market",
3722 },
23+ cancel_list: { args: ["listing_id"], description: "Trade: Cancel player listing" },
24+ buy_listing: { args: ["listing_id", "quantity"], description: "Trade: Buy player listing" },
25+ get_listings: { args: [], description: "Trade: View market listings" },
3826
3927 trade_offer: {
4028 args: ["target_id", "offer_items", "offer_credits", "request_items", "request_credits"],
41- description: "Trade: Propose trade",
29+ description: "Trade: Propose direct trade",
4230 },
4331 trade_accept: { args: ["trade_id"], description: "Trade: Accept trade offer" },
32+ trade_decline: { args: ["trade_id"], description: "Trade: Decline trade offer" },
33+ trade_cancel: { args: ["trade_id"], description: "Trade: Cancel your offer" },
4434 get_trades: { args: [], description: "Trade: View pending trades" },
4535
46- buy_ship: {
47- args: ["ship_class"],
48- description: "Ship: Purchase new ship (must be docked)",
36+ get_wrecks: { args: [], description: "Wrecks: List wrecks at POI" },
37+ loot_wreck: {
38+ args: ["wreck_id", "item_id", "quantity"],
39+ description: "Wrecks: Take items from wreck",
40+ },
41+ salvage_wreck: { args: ["wreck_id"], description: "Wrecks: Destroy wreck for materials" },
42+
43+ buy_ship: { args: ["ship_class"], description: "Ship: Purchase new ship (docked)" },
44+ install_mod: { args: ["module_id", "slot_idx"], description: "Ship: Install module (docked)" },
45+ uninstall_mod: { args: ["slot_idx"], description: "Ship: Remove module (docked)" },
46+ refuel: { args: [], description: "Ship: Refuel at station (docked)" },
47+ repair: { args: [], description: "Ship: Repair hull/shields (docked)" },
48+
49+ craft: { args: ["recipe_id"], description: "Crafting: Craft item from materials" },
50+
51+ chat: {
52+ args: ["channel", "content", "target_id?"],
53+ description: "Social: Send message (local/system/faction/private)",
4954 },
50- install_mod: {
51- args: ["module_id", "slot_idx"],
52- description: "Ship: Install module (must be docked)",
55+
56+ create_faction: { args: ["name", "tag"], description: "Faction: Create new faction" },
57+ join_faction: { args: ["faction_id"], description: "Faction: Accept invitation" },
58+ leave_faction: { args: [], description: "Faction: Leave current faction" },
59+ faction_invite: { args: ["player_id"], description: "Faction: Invite player" },
60+ faction_kick: { args: ["player_id"], description: "Faction: Remove member" },
61+ faction_promote: { args: ["player_id", "role_id"], description: "Faction: Change member role" },
62+ faction_info: { args: ["faction_id?"], description: "Faction: View faction details" },
63+ faction_list: { args: ["limit?", "offset?"], description: "Faction: Browse all factions" },
64+ faction_get_invites: { args: [], description: "Faction: View pending invitations" },
65+ faction_decline_invite: { args: ["faction_id"], description: "Faction: Decline invitation" },
66+ faction_set_ally: { args: ["target_faction_id"], description: "Faction: Mark as ally" },
67+ faction_set_enemy: { args: ["target_faction_id"], description: "Faction: Mark as enemy" },
68+ faction_declare_war: {
69+ args: ["target_faction_id", "reason?"],
70+ description: "Faction: Declare war",
5371 },
54- craft: { args: ["recipe_id"], description: "Ship: Craft item from materials" },
72+ faction_propose_peace: {
73+ args: ["target_faction_id", "terms?"],
74+ description: "Faction: Propose peace",
75+ },
76+ faction_accept_peace: {
77+ args: ["target_faction_id"],
78+ description: "Faction: Accept peace proposal",
79+ },
80+
81+ buy_insurance: { args: ["coverage_percent"], description: "Insurance: Buy ship insurance" },
82+ claim_insurance: { args: [], description: "Insurance: Claim payout" },
83+ set_home_base: { args: [], description: "Insurance: Set respawn point (docked)" },
84+
85+ set_status: { args: ["status_message?", "clan_tag?"], description: "Settings: Update status" },
86+ set_colors: {
87+ args: ["primary_color", "secondary_color"],
88+ description: "Settings: Set ship colors",
89+ },
90+ set_anonymous: { args: ["anonymous"], description: "Settings: Toggle anonymity" },
91+
92+ get_status: { args: [], description: "Info: Current player/ship status" },
93+ get_system: { args: [], description: "Info: Current system with connections" },
94+ get_poi: { args: [], description: "Info: Current location details" },
95+ get_base: { args: [], description: "Info: Base info (docked)" },
96+ get_ship: { args: [], description: "Info: Detailed ship stats" },
97+ get_cargo: { args: [], description: "Info: Ship cargo contents" },
98+ get_nearby: { args: [], description: "Info: Other players at POI" },
99+ get_skills: { args: [], description: "Info: All skills and progress" },
100+ get_recipes: { args: [], description: "Info: Available crafting recipes" },
101+ get_version: { args: [], description: "Info: Server version" },
102+ get_map: { args: ["system_id?"], description: "Info: Your discovered systems" },
103+ help: { args: ["topic?"], description: "Info: Get command help" },
104+
105+ create_map: {
106+ args: ["name", "description", "systems?"],
107+ description: "Maps: Create tradeable map",
108+ },
109+ use_map: { args: ["map_item_id"], description: "Maps: Learn systems from map" },
110+
111+ create_note: { args: ["title", "content"], description: "Notes: Create text document" },
112+ write_note: { args: ["note_id", "content"], description: "Notes: Edit existing note" },
113+ read_note: { args: ["note_id"], description: "Notes: Read note contents" },
114+ get_notes: { args: [], description: "Notes: List your notes" },
115+
116+ build_base: {
117+ args: ["name", "type?", "description?", "services?", "faction_base?"],
118+ description: "Base: Build at current POI",
119+ },
120+ get_base_cost: { args: [], description: "Base: Get building costs" },
121+
122+ attack_base: { args: ["base_id"], description: "Raid: Attack player base" },
123+ raid_status: { args: [], description: "Raid: View active raids" },
124+ get_base_wrecks: { args: [], description: "Raid: List base wrecks at POI" },
125+ loot_base_wreck: {
126+ args: ["wreck_id", "item_id?", "quantity?", "credits?"],
127+ description: "Raid: Loot base wreck",
128+ },
129+ salvage_base_wreck: { args: ["wreck_id"], description: "Raid: Salvage base wreck" },
130+
131+ deploy_drone: { args: ["drone_item_id", "target_id?"], description: "Drones: Deploy from cargo" },
132+ recall_drone: { args: ["all?", "drone_id?"], description: "Drones: Recall to cargo" },
133+ order_drone: {
134+ args: ["command", "target_id?"],
135+ description: "Drones: Give orders (attack/stop/assist/mine)",
136+ },
137+ get_drones: { args: [], description: "Drones: View deployed drones" },
138+
139+ forum_list: { args: ["page?", "category?"], description: "Forum: List threads" },
140+ forum_get_thread: { args: ["thread_id"], description: "Forum: Get thread with replies" },
141+ forum_create_thread: {
142+ args: ["title", "content", "category?"],
143+ description: "Forum: Create thread",
144+ },
145+ forum_reply: { args: ["thread_id", "content"], description: "Forum: Reply to thread" },
146+ forum_upvote: { args: ["thread_id?", "reply_id?"], description: "Forum: Upvote thread/reply" },
147+ forum_delete_thread: { args: ["thread_id"], description: "Forum: Delete your thread" },
148+ forum_delete_reply: { args: ["reply_id"], description: "Forum: Delete your reply" },
149+
150+ captains_log_add: { args: ["entry"], description: "Log: Add journal entry" },
151+ captains_log_list: { args: [], description: "Log: List all entries" },
152+ captains_log_get: { args: ["index"], description: "Log: Get specific entry" },
55153 };
154+
155+export const VALID_COMMAND_TYPES = Object.keys(PLAYER_API_REFERENCE);