poe-code 3.0.46 → 3.0.47

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/dist/index.js CHANGED
@@ -16232,6 +16232,8 @@ var openCodeSpawnConfig = {
16232
16232
  adapter: "opencode",
16233
16233
  promptFlag: "run",
16234
16234
  modelFlag: "--model",
16235
+ // TODO: remove once opencode accepts dotted model IDs (e.g. claude-opus-4.6)
16236
+ modelTransform: (model) => model === "claude-opus-4.6" ? "claude-opus-4-6" : model,
16235
16237
  defaultArgs: ["--format", "json"],
16236
16238
  modes: {
16237
16239
  yolo: [],
@@ -16339,7 +16341,9 @@ function buildCliArgs(config2, options, stdinMode) {
16339
16341
  ...stdinMode.extraArgs
16340
16342
  ] : [config2.promptFlag, options.prompt];
16341
16343
  if (options.model && config2.modelFlag) {
16342
- args.push(config2.modelFlag, stripModelNamespace2(options.model));
16344
+ let model = stripModelNamespace2(options.model);
16345
+ if (config2.modelTransform) model = config2.modelTransform(model);
16346
+ args.push(config2.modelFlag, model);
16343
16347
  }
16344
16348
  args.push(...config2.defaultArgs);
16345
16349
  args.push(...config2.modes[options.mode ?? "yolo"]);
@@ -16432,7 +16436,9 @@ async function spawnInteractive(agentId, options) {
16432
16436
  }
16433
16437
  }
16434
16438
  if (options.model && spawnConfig.modelFlag) {
16435
- args.push(spawnConfig.modelFlag, stripModelNamespace2(options.model));
16439
+ let model = stripModelNamespace2(options.model);
16440
+ if (spawnConfig.modelTransform) model = spawnConfig.modelTransform(model);
16441
+ args.push(spawnConfig.modelFlag, model);
16436
16442
  }
16437
16443
  args.push(...interactive.defaultArgs);
16438
16444
  const mode = options.mode ?? "yolo";
@@ -36275,7 +36281,7 @@ function registerModelsCommand(program, container) {
36275
36281
  // package.json
36276
36282
  var package_default = {
36277
36283
  name: "poe-code",
36278
- version: "3.0.46",
36284
+ version: "3.0.47",
36279
36285
  description: "CLI tool to configure Poe API for developer workflows.",
36280
36286
  type: "module",
36281
36287
  workspaces: [