Skip to content

Commit e298854

Browse files
rsnedclaude
andauthored
feat: add 7 missing commands (passenger transport + faction invites) (#23)
Sync client COMMANDS with the 2026-06-07 OpenAPI spec, which added a passenger-transport system and faction-invite management: - faction_accept_invite — accept a pending invite (alias for join_faction) - faction_withdraw_invite — withdraw an invite you sent - set_drone_name — set/clear a drone's display name - list_passengers — passengers aboard your ship - list_station_passengers — citizens waiting at a station - load_passenger — load waiting passengers bound for a destination - unload_passenger — drop a single passenger at the current station Caught by the api-sync test against the live spec. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6e58d88 commit e298854

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

src/client.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,11 @@ const COMMANDS: Record<string, CommandConfig> = {
284284
faction_info: { args: ['faction_id'] },
285285
faction_list: { args: ['limit', 'offset'] },
286286
faction_get_invites: {},
287+
faction_accept_invite: {
288+
args: ['faction_id'],
289+
required: ['faction_id'],
290+
usage: '<faction_id> (accept a pending invite; alias for join_faction)',
291+
},
287292
faction_decline_invite: { args: ['faction_id'] },
288293
faction_set_enemy: { args: ['target_faction_id'] },
289294
faction_remove_enemy: {
@@ -310,6 +315,11 @@ const COMMANDS: Record<string, CommandConfig> = {
310315
faction_propose_peace: { args: ['target_faction_id', 'terms'] },
311316
faction_accept_peace: { args: ['target_faction_id'] },
312317
faction_invite: { args: ['player_id'] },
318+
faction_withdraw_invite: {
319+
args: ['player_id'],
320+
required: ['player_id'],
321+
usage: '<player_id> (withdraw a pending invite you sent)',
322+
},
313323
faction_kick: { args: ['player_id'] },
314324
faction_promote: { args: ['player_id', 'role_id'] },
315325
faction_edit: { args: ['description', 'charter', 'primary_color', 'secondary_color'] },
@@ -554,6 +564,28 @@ const COMMANDS: Record<string, CommandConfig> = {
554564
required: ['drone_id', 'script'],
555565
usage: '<drone_id> <script> (DroneLang source, max 2000 chars; empty string clears)',
556566
},
567+
set_drone_name: {
568+
args: ['drone_id', { rest: 'name' }],
569+
required: ['drone_id'],
570+
usage: '<drone_id> <name> (max 32 chars; omit name to clear)',
571+
},
572+
573+
// Passengers
574+
list_passengers: {},
575+
list_station_passengers: {
576+
args: ['station'],
577+
usage: '[station] (citizens waiting for transport; defaults to current station)',
578+
},
579+
load_passenger: {
580+
args: ['destination'],
581+
required: ['destination'],
582+
usage: '<destination> (load all waiting passengers bound for destination, up to free berths)',
583+
},
584+
unload_passenger: {
585+
args: [{ rest: 'name' }],
586+
required: ['name'],
587+
usage: '<name> (put a single passenger off the ship at the current station)',
588+
},
557589

558590
// Query commands
559591
get_status: {},

0 commit comments

Comments
 (0)