poe-code 3.0.118 → 3.0.120

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.
@@ -1,3 +1,4 @@
1
+ import { basename } from "node:path";
1
2
  import { Command } from "commander";
2
3
  import { createCliContainer } from "./container.js";
3
4
  import { text } from "@poe-code/design-system";
@@ -42,141 +43,185 @@ function formatCommandHeader(cmd) {
42
43
  }
43
44
  function formatHelpText(input) {
44
45
  const commandRows = [
46
+ {
47
+ name: "install",
48
+ aliases: ["i"],
49
+ args: "[agent]",
50
+ description: "Install tooling for a configured agent"
51
+ },
45
52
  {
46
53
  name: "configure",
54
+ aliases: ["c"],
47
55
  args: "[agent]",
48
56
  description: "Configure a coding agent"
49
57
  },
50
58
  {
51
59
  name: "unconfigure",
60
+ aliases: ["uc"],
52
61
  args: "<agent>",
53
62
  description: "Remove a previously applied configuration"
54
63
  },
55
64
  {
56
65
  name: "login",
66
+ aliases: [],
57
67
  args: "",
58
68
  description: "Store a Poe API key"
59
69
  },
60
70
  {
61
71
  name: "logout",
72
+ aliases: [],
62
73
  args: "",
63
74
  description: "Remove all configuration"
64
75
  },
65
76
  {
66
77
  name: "auth status",
78
+ aliases: [],
67
79
  args: "",
68
80
  description: "Show login, balance, and configuration status"
69
81
  },
70
82
  {
71
83
  name: "agent",
84
+ aliases: [],
72
85
  args: "<prompt>",
73
86
  description: "Run a one-shot Poe agent prompt"
74
87
  },
75
88
  {
76
89
  name: "spawn",
90
+ aliases: ["s"],
77
91
  args: "<agent> [prompt]",
78
92
  description: "Launch a coding agent"
79
93
  },
94
+ {
95
+ name: "wrap",
96
+ aliases: ["w"],
97
+ args: "<agent> [agentArgs...]",
98
+ description: "Run an agent with Poe isolated configuration"
99
+ },
80
100
  {
81
101
  name: "generate",
102
+ aliases: ["g"],
82
103
  args: "[type]",
83
104
  description: "Call Poe models via CLI (text/image/video/audio)"
84
105
  },
106
+ {
107
+ name: "models",
108
+ aliases: ["m"],
109
+ args: "",
110
+ description: "List available Poe API models"
111
+ },
85
112
  {
86
113
  name: "mcp configure",
114
+ aliases: [],
87
115
  args: "[agent]",
88
116
  description: "Configure Poe MCP for your coding agent"
89
117
  },
90
118
  {
91
119
  name: "mcp unconfigure",
120
+ aliases: [],
92
121
  args: "<agent>",
93
122
  description: "Remove Poe MCP configuration from your agent"
94
123
  },
95
124
  {
96
125
  name: "mcp serve",
126
+ aliases: [],
97
127
  args: "",
98
128
  description: "Run the Poe MCP server on stdin/stdout"
99
129
  },
100
130
  {
101
131
  name: "skill configure",
132
+ aliases: [],
102
133
  args: "[agent]",
103
134
  description: "Configure agent skills to call Poe models"
104
135
  },
105
136
  {
106
137
  name: "skill unconfigure",
138
+ aliases: [],
107
139
  args: "[agent]",
108
140
  description: "Remove agent skills configuration"
109
141
  },
110
142
  {
111
143
  name: "pipeline install",
144
+ aliases: [],
112
145
  args: "[agent]",
113
146
  description: "Install pipeline skill into agent configuration"
114
147
  },
115
148
  {
116
149
  name: "pipeline run",
150
+ aliases: [],
117
151
  args: "",
118
152
  description: "Run a fixed-step task pipeline plan"
119
153
  },
120
154
  {
121
155
  name: "ralph init",
156
+ aliases: [],
122
157
  args: "[doc]",
123
158
  description: "Write Ralph config into a markdown doc frontmatter"
124
159
  },
125
160
  {
126
161
  name: "ralph run",
162
+ aliases: [],
127
163
  args: "[doc]",
128
164
  description: "Run a markdown doc through repeated agent iterations"
129
165
  },
130
166
  {
131
167
  name: "experiment run",
168
+ aliases: [],
132
169
  args: "[doc]",
133
170
  description: "Run an experiment doc through the autonomous experiment loop"
134
171
  },
135
172
  {
136
173
  name: "experiment journal",
174
+ aliases: [],
137
175
  args: "[doc]",
138
176
  description: "Display an experiment journal as a formatted table"
139
177
  },
140
178
  {
141
179
  name: "usage",
180
+ aliases: ["u"],
142
181
  args: "",
143
182
  description: "Display current Poe compute points balance"
144
183
  },
145
184
  {
146
185
  name: "usage list",
186
+ aliases: [],
147
187
  args: "",
148
188
  description: "Display usage history"
149
189
  },
150
190
  {
151
191
  name: "utils config",
192
+ aliases: [],
152
193
  args: "",
153
194
  description: "Show config file paths and usage hints"
154
195
  },
155
196
  {
156
197
  name: "utils config show",
198
+ aliases: [],
157
199
  args: "",
158
200
  description: "Show config inputs and resolved result"
159
201
  },
160
202
  {
161
203
  name: "utils config init",
204
+ aliases: [],
162
205
  args: "",
163
206
  description: "Create a project config file"
164
207
  },
165
208
  {
166
209
  name: "utils config edit",
210
+ aliases: [],
167
211
  args: "",
168
212
  description: "Open a config file in your editor"
169
213
  }
170
214
  ];
171
- const nameWidth = Math.max(0, ...commandRows.map((row) => row.name.length));
215
+ const nameWidth = Math.max(0, ...commandRows.map((row) => [row.name, ...row.aliases].join(", ").length));
172
216
  const argsWidth = Math.max(0, ...commandRows.map((row) => row.args.length));
173
217
  const cmd = (row) => {
174
- const name = text.command(row.name.padEnd(nameWidth));
218
+ const displayName = [row.name, ...row.aliases].join(", ");
219
+ const name = text.command(displayName.padEnd(nameWidth));
175
220
  const args = row.args.length > 0 ? text.argument(row.args.padEnd(argsWidth)) : " ".repeat(argsWidth);
176
221
  return ` ${name} ${args} ${row.description}`;
177
222
  };
178
223
  return [
179
- text.heading("Poe - poe-code"),
224
+ text.heading(input.heading),
180
225
  "",
181
226
  "Configure coding agents to use the Poe API.",
182
227
  "",
@@ -245,6 +290,13 @@ function formatSubcommandHelp(cmd, helper) {
245
290
  }
246
291
  return output.join("\n");
247
292
  }
293
+ function resolveRootHelpHeading(argv) {
294
+ const invoked = basename(argv[1] ?? "");
295
+ if (invoked === "poe" || invoked === "poe.cmd" || invoked === "poe.exe") {
296
+ return "Poe";
297
+ }
298
+ return "Poe - poe-code";
299
+ }
248
300
  export function createProgram(dependencies) {
249
301
  const container = createCliContainer(dependencies);
250
302
  const program = bootstrapProgram(container);
@@ -263,6 +315,7 @@ function bootstrapProgram(container) {
263
315
  env: container.env.variables,
264
316
  moduleUrl: import.meta.url
265
317
  });
318
+ const heading = resolveRootHelpHeading(process.argv);
266
319
  const usageCommand = formatCliUsageCommand(executionContext);
267
320
  const helpCommand = formatCliHelpCommand(executionContext, ["<command>", "--help"]);
268
321
  program
@@ -277,7 +330,7 @@ function bootstrapProgram(container) {
277
330
  .configureHelp({
278
331
  formatHelp: (cmd, helper) => {
279
332
  if (cmd.name() === "poe-code") {
280
- return formatHelpText({ usageCommand, helpCommand });
333
+ return formatHelpText({ heading, usageCommand, helpCommand });
281
334
  }
282
335
  return formatSubcommandHelp(cmd, helper);
283
336
  }
@@ -1 +1 @@
1
- {"version":3,"file":"program.js","sourceRoot":"","sources":["../../src/cli/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAQ,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAA2C,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,C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AO,CAAC;AACjB,CAAC;AAID,SAAS,iBAAiB,CAAC,OAAgB;IACzC,OAAO,CAAC,YAAY,EAAE,CAAC;IACvB,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACrC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,OAAgB;IAC/C,OAAO,CAAC,eAAe,CAAC;QACtB,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;QAClB,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;KACnB,CAAC,CAAC;IACH,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACrC,uBAAuB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;AACH,CAAC"}
package/dist/index.js CHANGED
@@ -15542,7 +15542,7 @@ var init_config3 = __esm({
15542
15542
  function registerConfigureCommand(program, container) {
15543
15543
  const serviceNames = container.registry.list().map((service) => service.name);
15544
15544
  const serviceDescription = `Agent to configure${formatServiceList(serviceNames)}`;
15545
- const configureCommand = program.command("configure").description("Configure developer tooling for Poe API.").argument("[agent]", serviceDescription).option("--api-key <key>", "Poe API key").option("--model <model>", "Model identifier").option("--reasoning-effort <level>", "Reasoning effort level").action(async (service, options) => {
15545
+ const configureCommand = program.command("configure").alias("c").description("Configure developer tooling for Poe API.").argument("[agent]", serviceDescription).option("--api-key <key>", "Poe API key").option("--model <model>", "Model identifier").option("--reasoning-effort <level>", "Reasoning effort level").action(async (service, options) => {
15546
15546
  const resolved = await resolveServiceArgument(program, container, service, {
15547
15547
  action: "configure"
15548
15548
  });
@@ -15773,7 +15773,7 @@ function registerSpawnCommand(program, container, options = {}) {
15773
15773
  const extraServices = options.extraServices ?? [];
15774
15774
  const serviceList = [...spawnServices, ...extraServices];
15775
15775
  const serviceDescription = `Agent to spawn${formatServiceList(serviceList)}`;
15776
- program.command("spawn").description("Run a single prompt through a configured agent CLI.").option("--model <model>", "Model identifier override passed to the agent CLI").option("-C, --cwd <path>", "Working directory for the agent CLI").option("--stdin", "Read the prompt from stdin").option("-i, --interactive", "Launch the agent in interactive TUI mode").option("--mode <mode>", "Permission mode: yolo | edit | read (default: yolo)").option("--mcp-config <json>", "MCP server config JSON: {name: {command, args?, env?}}").argument("<agent>", serviceDescription).argument("[prompt]", "Prompt text to send (or '-' / stdin)").argument("[agentArgs...]", "Additional arguments forwarded to the agent CLI").action(async function(service, promptText, agentArgs = []) {
15776
+ program.command("spawn").alias("s").description("Run a single prompt through a configured agent CLI.").option("--model <model>", "Model identifier override passed to the agent CLI").option("-C, --cwd <path>", "Working directory for the agent CLI").option("--stdin", "Read the prompt from stdin").option("-i, --interactive", "Launch the agent in interactive TUI mode").option("--mode <mode>", "Permission mode: yolo | edit | read (default: yolo)").option("--mcp-config <json>", "MCP server config JSON: {name: {command, args?, env?}}").argument("<agent>", serviceDescription).argument("[prompt]", "Prompt text to send (or '-' / stdin)").argument("[agentArgs...]", "Additional arguments forwarded to the agent CLI").action(async function(service, promptText, agentArgs = []) {
15777
15777
  const flags = resolveCommandFlags(program);
15778
15778
  const commandOptions = this.opts();
15779
15779
  const mcpServers = parseMcpSpawnConfig2(commandOptions.mcpConfig);
@@ -16654,7 +16654,7 @@ var init_isolated_env_runner = __esm({
16654
16654
  function registerWrapCommand(program, container) {
16655
16655
  const serviceNames = listIsolatedServiceIds(container);
16656
16656
  const serviceDescription = `Agent to wrap${formatServiceList(serviceNames)}`;
16657
- return program.command("wrap").description("Run an agent CLI with Poe isolated configuration.").allowUnknownOption(true).allowExcessArguments(true).argument("<agent>", serviceDescription).argument("[agentArgs...]", "Arguments forwarded to the agent").action(async (service, agentArgs = []) => {
16657
+ return program.command("wrap").alias("w").description("Run an agent CLI with Poe isolated configuration.").allowUnknownOption(true).allowExcessArguments(true).argument("<agent>", serviceDescription).argument("[agentArgs...]", "Arguments forwarded to the agent").action(async (service, agentArgs = []) => {
16658
16658
  const requestedService = service;
16659
16659
  const flags = resolveCommandFlags(program);
16660
16660
  const adapter = resolveServiceAdapter(container, requestedService);
@@ -16814,7 +16814,7 @@ var init_login = __esm({
16814
16814
  function registerUnconfigureCommand(program, container) {
16815
16815
  const serviceNames = container.registry.list().map((service) => service.name);
16816
16816
  const serviceDescription = `Agent to unconfigure${formatServiceList(serviceNames)}`;
16817
- return program.command("unconfigure").description("Remove existing Poe API tooling configuration.").argument("<agent>", serviceDescription).action(async (service, options) => {
16817
+ return program.command("unconfigure").alias("uc").description("Remove existing Poe API tooling configuration.").argument("<agent>", serviceDescription).action(async (service, options) => {
16818
16818
  await executeUnconfigure(program, container, service, options);
16819
16819
  });
16820
16820
  }
@@ -17041,16 +17041,13 @@ async function executeStatus(program, container) {
17041
17041
  throw error;
17042
17042
  }
17043
17043
  }
17044
- async function executeApiKey(program, container) {
17045
- const flags = resolveCommandFlags(program);
17046
- const resources = createExecutionResources(container, flags, "auth:api_key");
17047
- resources.logger.intro("auth api_key");
17044
+ async function executeApiKey(_program, container) {
17048
17045
  const apiKey = await container.readApiKey();
17049
17046
  if (!apiKey) {
17050
- resources.logger.info("No API key stored.");
17047
+ process.exitCode = 1;
17051
17048
  return;
17052
17049
  }
17053
- resources.logger.info(`API key: ${apiKey}`);
17050
+ process.stdout.write(apiKey);
17054
17051
  }
17055
17052
  var init_auth = __esm({
17056
17053
  "src/cli/commands/auth.ts"() {
@@ -17203,7 +17200,7 @@ var init_utils3 = __esm({
17203
17200
  function registerInstallCommand(program, container) {
17204
17201
  const serviceNames = container.registry.list().filter((service) => typeof service.install === "function").map((service) => service.name);
17205
17202
  const serviceDescription = `Agent to install${formatServiceList(serviceNames)}`;
17206
- return program.command("install").description("Install tooling for a configured agent.").argument(
17203
+ return program.command("install").alias("i").description("Install tooling for a configured agent.").argument(
17207
17204
  "[agent]",
17208
17205
  serviceDescription
17209
17206
  ).action(async (service) => {
@@ -17397,7 +17394,7 @@ var init_media_download = __esm({
17397
17394
  // src/cli/commands/generate.ts
17398
17395
  import path27 from "node:path";
17399
17396
  function registerGenerateCommand(program, container) {
17400
- const generate2 = program.command("generate").description("Generate content via Poe API").option("--model <model>", `Model identifier (default: ${DEFAULT_TEXT_MODEL})`).option(
17397
+ const generate2 = program.command("generate").alias("g").description("Generate content via Poe API").option("--model <model>", `Model identifier (default: ${DEFAULT_TEXT_MODEL})`).option(
17401
17398
  "--param <key=value>",
17402
17399
  "Additional parameters (repeatable)",
17403
17400
  collectParam,
@@ -18806,7 +18803,7 @@ var init_mcp_output_format = __esm({
18806
18803
  });
18807
18804
 
18808
18805
  // src/utils/execution-context.ts
18809
- import { dirname as dirname3 } from "node:path";
18806
+ import { basename as basename2, dirname as dirname3 } from "node:path";
18810
18807
  import { fileURLToPath as fileURLToPath3 } from "node:url";
18811
18808
  function detectExecutionContext(input) {
18812
18809
  const { argv, env, moduleUrl } = input;
@@ -18817,10 +18814,12 @@ function detectExecutionContext(input) {
18817
18814
  const version = detectNpxVersion(env);
18818
18815
  return createNpxContext(version);
18819
18816
  }
18817
+ const invoked = basename2(argv[1] ?? "");
18818
+ const isPoeShort = invoked === "poe" || invoked === "poe.cmd" || invoked === "poe.exe";
18820
18819
  return {
18821
18820
  mode: "global",
18822
18821
  command: {
18823
- command: "poe-code",
18822
+ command: isPoeShort ? "poe" : "poe-code",
18824
18823
  args: []
18825
18824
  }
18826
18825
  };
@@ -18911,7 +18910,7 @@ function formatCliUsageCommand(context) {
18911
18910
  return "npx poe-code@beta";
18912
18911
  case "global":
18913
18912
  default:
18914
- return "poe-code";
18913
+ return context.command.command;
18915
18914
  }
18916
18915
  }
18917
18916
  function getCurrentExecutionContext(moduleUrl) {
@@ -19998,7 +19997,7 @@ async function executeBalance(program, container) {
19998
19997
  }
19999
19998
  }
20000
19999
  function registerUsageCommand(program, container) {
20001
- const usage = program.command("usage").description("Check Poe API usage information.").action(async () => {
20000
+ const usage = program.command("usage").alias("u").description("Check Poe API usage information.").action(async () => {
20002
20001
  await executeBalance(program, container);
20003
20002
  });
20004
20003
  usage.command("balance").description("Display current point balance.").action(async () => {
@@ -20233,7 +20232,7 @@ function hasActiveFilters(options) {
20233
20232
  return options.provider !== void 0 || options.model !== void 0 || options.search !== void 0 || options.feature !== void 0 || options.endpoint !== void 0 || options.input !== void 0 || options.output !== void 0 || options.tools === true || options.since !== void 0;
20234
20233
  }
20235
20234
  function registerModelsCommand(program, container) {
20236
- program.command("models").description("List available Poe API models.").option("--provider <name>", "Filter by provider name").option("--model <name>", "Filter by exact model id").option("--search <term>", "Search model id and provider name").option("--feature <name>", "Filter by feature (tools, web_search, reasoning)").option("--endpoint <path>", "Filter by supported endpoint (e.g. /v1/responses)").option("--input <modalities>", "Filter by input modalities (e.g. text,image)").option("--output <modalities>", "Filter by output modalities (e.g. text)").option("--tools", "Show only models with tool support").option("--since <duration>", "Show models added within duration (e.g. 7d, 2w, 3mo)").option("--view <name>", "Table view: capabilities, pricing, parameters, or raw", "capabilities").addHelpText("after", [
20235
+ program.command("models").alias("m").description("List available Poe API models.").option("--provider <name>", "Filter by provider name").option("--model <name>", "Filter by exact model id").option("--search <term>", "Search model id and provider name").option("--feature <name>", "Filter by feature (tools, web_search, reasoning)").option("--endpoint <path>", "Filter by supported endpoint (e.g. /v1/responses)").option("--input <modalities>", "Filter by input modalities (e.g. text,image)").option("--output <modalities>", "Filter by output modalities (e.g. text)").option("--tools", "Show only models with tool support").option("--since <duration>", "Show models added within duration (e.g. 7d, 2w, 3mo)").option("--view <name>", "Table view: capabilities, pricing, parameters, or raw", "capabilities").addHelpText("after", [
20237
20236
  "",
20238
20237
  "Filters:",
20239
20238
  " --provider Substring match on provider/owner (e.g. anthropic, openai)",
@@ -21879,7 +21878,7 @@ var init_package = __esm({
21879
21878
  "package.json"() {
21880
21879
  package_default = {
21881
21880
  name: "poe-code",
21882
- version: "3.0.118",
21881
+ version: "3.0.120",
21883
21882
  description: "CLI tool to configure Poe API for developer workflows.",
21884
21883
  type: "module",
21885
21884
  main: "./dist/index.js",
@@ -21934,6 +21933,7 @@ var init_package = __esm({
21934
21933
  "metric:test_duration": "node scripts/metric-test-duration.mjs"
21935
21934
  },
21936
21935
  bin: {
21936
+ poe: "dist/bin.cjs",
21937
21937
  "poe-code": "dist/bin.cjs",
21938
21938
  "poe-code-configure": "dist/bin.cjs",
21939
21939
  "poe-claude": "dist/bin/poe-claude.js",
@@ -22008,6 +22008,7 @@ var program_exports = {};
22008
22008
  __export(program_exports, {
22009
22009
  createProgram: () => createProgram
22010
22010
  });
22011
+ import { basename as basename3 } from "node:path";
22011
22012
  import { Command as Command2 } from "commander";
22012
22013
  function formatCommandHeader(cmd) {
22013
22014
  const parts = [];
@@ -22026,141 +22027,188 @@ function formatCommandHeader(cmd) {
22026
22027
  }
22027
22028
  function formatHelpText(input) {
22028
22029
  const commandRows = [
22030
+ {
22031
+ name: "install",
22032
+ aliases: ["i"],
22033
+ args: "[agent]",
22034
+ description: "Install tooling for a configured agent"
22035
+ },
22029
22036
  {
22030
22037
  name: "configure",
22038
+ aliases: ["c"],
22031
22039
  args: "[agent]",
22032
22040
  description: "Configure a coding agent"
22033
22041
  },
22034
22042
  {
22035
22043
  name: "unconfigure",
22044
+ aliases: ["uc"],
22036
22045
  args: "<agent>",
22037
22046
  description: "Remove a previously applied configuration"
22038
22047
  },
22039
22048
  {
22040
22049
  name: "login",
22050
+ aliases: [],
22041
22051
  args: "",
22042
22052
  description: "Store a Poe API key"
22043
22053
  },
22044
22054
  {
22045
22055
  name: "logout",
22056
+ aliases: [],
22046
22057
  args: "",
22047
22058
  description: "Remove all configuration"
22048
22059
  },
22049
22060
  {
22050
22061
  name: "auth status",
22062
+ aliases: [],
22051
22063
  args: "",
22052
22064
  description: "Show login, balance, and configuration status"
22053
22065
  },
22054
22066
  {
22055
22067
  name: "agent",
22068
+ aliases: [],
22056
22069
  args: "<prompt>",
22057
22070
  description: "Run a one-shot Poe agent prompt"
22058
22071
  },
22059
22072
  {
22060
22073
  name: "spawn",
22074
+ aliases: ["s"],
22061
22075
  args: "<agent> [prompt]",
22062
22076
  description: "Launch a coding agent"
22063
22077
  },
22078
+ {
22079
+ name: "wrap",
22080
+ aliases: ["w"],
22081
+ args: "<agent> [agentArgs...]",
22082
+ description: "Run an agent with Poe isolated configuration"
22083
+ },
22064
22084
  {
22065
22085
  name: "generate",
22086
+ aliases: ["g"],
22066
22087
  args: "[type]",
22067
22088
  description: "Call Poe models via CLI (text/image/video/audio)"
22068
22089
  },
22090
+ {
22091
+ name: "models",
22092
+ aliases: ["m"],
22093
+ args: "",
22094
+ description: "List available Poe API models"
22095
+ },
22069
22096
  {
22070
22097
  name: "mcp configure",
22098
+ aliases: [],
22071
22099
  args: "[agent]",
22072
22100
  description: "Configure Poe MCP for your coding agent"
22073
22101
  },
22074
22102
  {
22075
22103
  name: "mcp unconfigure",
22104
+ aliases: [],
22076
22105
  args: "<agent>",
22077
22106
  description: "Remove Poe MCP configuration from your agent"
22078
22107
  },
22079
22108
  {
22080
22109
  name: "mcp serve",
22110
+ aliases: [],
22081
22111
  args: "",
22082
22112
  description: "Run the Poe MCP server on stdin/stdout"
22083
22113
  },
22084
22114
  {
22085
22115
  name: "skill configure",
22116
+ aliases: [],
22086
22117
  args: "[agent]",
22087
22118
  description: "Configure agent skills to call Poe models"
22088
22119
  },
22089
22120
  {
22090
22121
  name: "skill unconfigure",
22122
+ aliases: [],
22091
22123
  args: "[agent]",
22092
22124
  description: "Remove agent skills configuration"
22093
22125
  },
22094
22126
  {
22095
22127
  name: "pipeline install",
22128
+ aliases: [],
22096
22129
  args: "[agent]",
22097
22130
  description: "Install pipeline skill into agent configuration"
22098
22131
  },
22099
22132
  {
22100
22133
  name: "pipeline run",
22134
+ aliases: [],
22101
22135
  args: "",
22102
22136
  description: "Run a fixed-step task pipeline plan"
22103
22137
  },
22104
22138
  {
22105
22139
  name: "ralph init",
22140
+ aliases: [],
22106
22141
  args: "[doc]",
22107
22142
  description: "Write Ralph config into a markdown doc frontmatter"
22108
22143
  },
22109
22144
  {
22110
22145
  name: "ralph run",
22146
+ aliases: [],
22111
22147
  args: "[doc]",
22112
22148
  description: "Run a markdown doc through repeated agent iterations"
22113
22149
  },
22114
22150
  {
22115
22151
  name: "experiment run",
22152
+ aliases: [],
22116
22153
  args: "[doc]",
22117
22154
  description: "Run an experiment doc through the autonomous experiment loop"
22118
22155
  },
22119
22156
  {
22120
22157
  name: "experiment journal",
22158
+ aliases: [],
22121
22159
  args: "[doc]",
22122
22160
  description: "Display an experiment journal as a formatted table"
22123
22161
  },
22124
22162
  {
22125
22163
  name: "usage",
22164
+ aliases: ["u"],
22126
22165
  args: "",
22127
22166
  description: "Display current Poe compute points balance"
22128
22167
  },
22129
22168
  {
22130
22169
  name: "usage list",
22170
+ aliases: [],
22131
22171
  args: "",
22132
22172
  description: "Display usage history"
22133
22173
  },
22134
22174
  {
22135
22175
  name: "utils config",
22176
+ aliases: [],
22136
22177
  args: "",
22137
22178
  description: "Show config file paths and usage hints"
22138
22179
  },
22139
22180
  {
22140
22181
  name: "utils config show",
22182
+ aliases: [],
22141
22183
  args: "",
22142
22184
  description: "Show config inputs and resolved result"
22143
22185
  },
22144
22186
  {
22145
22187
  name: "utils config init",
22188
+ aliases: [],
22146
22189
  args: "",
22147
22190
  description: "Create a project config file"
22148
22191
  },
22149
22192
  {
22150
22193
  name: "utils config edit",
22194
+ aliases: [],
22151
22195
  args: "",
22152
22196
  description: "Open a config file in your editor"
22153
22197
  }
22154
22198
  ];
22155
- const nameWidth = Math.max(0, ...commandRows.map((row) => row.name.length));
22199
+ const nameWidth = Math.max(
22200
+ 0,
22201
+ ...commandRows.map((row) => [row.name, ...row.aliases].join(", ").length)
22202
+ );
22156
22203
  const argsWidth = Math.max(0, ...commandRows.map((row) => row.args.length));
22157
22204
  const cmd = (row) => {
22158
- const name = text.command(row.name.padEnd(nameWidth));
22205
+ const displayName = [row.name, ...row.aliases].join(", ");
22206
+ const name = text.command(displayName.padEnd(nameWidth));
22159
22207
  const args = row.args.length > 0 ? text.argument(row.args.padEnd(argsWidth)) : " ".repeat(argsWidth);
22160
22208
  return ` ${name} ${args} ${row.description}`;
22161
22209
  };
22162
22210
  return [
22163
- text.heading("Poe - poe-code"),
22211
+ text.heading(input.heading),
22164
22212
  "",
22165
22213
  "Configure coding agents to use the Poe API.",
22166
22214
  "",
@@ -22230,6 +22278,13 @@ function formatSubcommandHelp(cmd, helper) {
22230
22278
  }
22231
22279
  return output.join("\n");
22232
22280
  }
22281
+ function resolveRootHelpHeading(argv) {
22282
+ const invoked = basename3(argv[1] ?? "");
22283
+ if (invoked === "poe" || invoked === "poe.cmd" || invoked === "poe.exe") {
22284
+ return "Poe";
22285
+ }
22286
+ return "Poe - poe-code";
22287
+ }
22233
22288
  function createProgram(dependencies) {
22234
22289
  const container = createCliContainer(dependencies);
22235
22290
  const program = bootstrapProgram(container);
@@ -22248,12 +22303,13 @@ function bootstrapProgram(container) {
22248
22303
  env: container.env.variables,
22249
22304
  moduleUrl: import.meta.url
22250
22305
  });
22306
+ const heading = resolveRootHelpHeading(process.argv);
22251
22307
  const usageCommand = formatCliUsageCommand(executionContext);
22252
22308
  const helpCommand = formatCliHelpCommand(executionContext, ["<command>", "--help"]);
22253
22309
  program.name("poe-code").description("Configure Poe API integrations for local developer tooling.").option("-y, --yes", "Accept defaults without prompting.").option("--dry-run", "Simulate commands without writing changes.").option("--verbose", "Show verbose logs.").helpOption("-h, --help", "Display help for command").showHelpAfterError(false).showSuggestionAfterError(true).configureHelp({
22254
22310
  formatHelp: (cmd, helper) => {
22255
22311
  if (cmd.name() === "poe-code") {
22256
- return formatHelpText({ usageCommand, helpCommand });
22312
+ return formatHelpText({ heading, usageCommand, helpCommand });
22257
22313
  }
22258
22314
  return formatSubcommandHelp(cmd, helper);
22259
22315
  }