poe-code 3.0.195 → 3.0.197

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,6 +1,5 @@
1
- import { buildProviderContext, createExecutionResources, resolveActiveProviderForService, resolveCommandFlags, resolveServiceAdapter, formatServiceList, listServiceNames } from "./shared.js";
1
+ import { buildProviderContext, createExecutionResources, resolveCommandFlags, resolveServiceAdapter, formatServiceList, listServiceNames } from "./shared.js";
2
2
  import { resolveServiceArgument } from "./configure.js";
3
- import { resolveIsolatedEnvDetails } from "../isolated-env.js";
4
3
  import { withSpinner } from "@poe-code/design-system";
5
4
  export function registerTestCommand(program, container) {
6
5
  const serviceNames = container.registry
@@ -29,13 +28,8 @@ export async function executeTest(program, container, service, options = {}) {
29
28
  const resources = createExecutionResources(container, flags, `test:${canonicalService}`);
30
29
  resources.logger.intro(`test ${canonicalService}`);
31
30
  const providerContext = buildProviderContext(container, adapter, resources, { model: options.model });
32
- const activeProvider = options.isolated
33
- ? await resolveActiveProviderForService(container, canonicalService)
34
- : undefined;
35
- const isolatedDetails = options.isolated && adapter.isolatedEnv
36
- ? await resolveIsolatedEnvDetails(container.env, adapter.isolatedEnv, adapter.name, activeProvider)
37
- : null;
38
- if (options.isolated && adapter.isolatedEnv) {
31
+ const useIsolated = Boolean(options.isolated && adapter.isolatedEnv);
32
+ if (useIsolated) {
39
33
  const { ensureIsolatedConfigForService } = await import("./ensure-isolated-config.js");
40
34
  await ensureIsolatedConfigForService({
41
35
  container,
@@ -50,7 +44,7 @@ export async function executeTest(program, container, service, options = {}) {
50
44
  if (!entry.test) {
51
45
  throw new Error(`Agent "${canonicalService}" does not support test.`);
52
46
  }
53
- const activeContext = isolatedDetails
47
+ const activeContext = useIsolated
54
48
  ? {
55
49
  ...providerContext,
56
50
  runCheck: async (check) => {
@@ -1 +1 @@
1
- {"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/cli/commands/test.ts"],"names":[],"mappings":"AAEA,O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-4.7", "anthropic/claude-sonnet-4.6", "openai/gpt-5.3-codex", "openai/gpt-5.4", "google/gemini-3.1-pro"];
1
+ export declare const FRONTIER_MODELS: readonly ["anthropic/claude-opus-4.7", "anthropic/claude-sonnet-4.6", "openai/gpt-5.3-codex", "openai/gpt-5.5", "google/gemini-3.1-pro"];
2
2
  export declare const DEFAULT_FRONTIER_MODEL = "anthropic/claude-opus-4.7";
3
3
  export declare const DEFAULT_TEXT_MODEL = "anthropic/claude-sonnet-4.6";
4
4
  export declare const DEFAULT_IMAGE_BOT = "google/nano-banana-pro";
@@ -15,11 +15,11 @@ export declare const DEFAULT_CLAUDE_CODE_MODEL: "anthropic/claude-sonnet-4.6";
15
15
  * e.g., "anthropic/claude-sonnet-4.6" -> "claude-sonnet-4.6"
16
16
  */
17
17
  export declare function stripModelNamespace(model: string): string;
18
- export declare const CODEX_MODELS: readonly ["openai/gpt-5.4", "openai/gpt-5.3-codex", "openai/gpt-5.3-codex-spark", "openai/gpt-5.2-codex", "openai/gpt-5.2", "openai/gpt-5.2-chat", "openai/gpt-5.2-pro", "openai/gpt-5.1", "openai/gpt-5.1-codex-mini", "anthropic/claude-opus-4.7"];
19
- export declare const DEFAULT_CODEX_MODEL: "openai/gpt-5.4";
18
+ export declare const CODEX_MODELS: readonly ["openai/gpt-5.5", "openai/gpt-5.4", "openai/gpt-5.3-codex", "openai/gpt-5.3-codex-spark", "openai/gpt-5.2-codex", "openai/gpt-5.2", "openai/gpt-5.2-chat", "openai/gpt-5.2-pro", "openai/gpt-5.1", "openai/gpt-5.1-codex-mini", "anthropic/claude-opus-4.7"];
19
+ export declare const DEFAULT_CODEX_MODEL: "openai/gpt-5.5";
20
20
  export declare const KIMI_MODELS: readonly ["novitaai/kimi-k2.5", "novitaai/kimi-k2-thinking", "novitaai/kimi-k2.5-fw"];
21
21
  export declare const DEFAULT_KIMI_MODEL: "novitaai/kimi-k2.5";
22
- export declare const GOOSE_MODELS: readonly ["anthropic/claude-opus-4.7", "anthropic/claude-sonnet-4.6", "openai/gpt-5.3-codex", "openai/gpt-5.4", "google/gemini-3.1-pro"];
22
+ export declare const GOOSE_MODELS: readonly ["anthropic/claude-opus-4.7", "anthropic/claude-sonnet-4.6", "openai/gpt-5.3-codex", "openai/gpt-5.5", "google/gemini-3.1-pro"];
23
23
  export declare const DEFAULT_GOOSE_MODEL = "anthropic/claude-opus-4.7";
24
24
  export declare const DEFAULT_REASONING = "medium";
25
25
  export declare const PROVIDER_NAME = "poe";
@@ -2,7 +2,7 @@ export const FRONTIER_MODELS = [
2
2
  "anthropic/claude-opus-4.7",
3
3
  "anthropic/claude-sonnet-4.6",
4
4
  "openai/gpt-5.3-codex",
5
- "openai/gpt-5.4",
5
+ "openai/gpt-5.5",
6
6
  "google/gemini-3.1-pro"
7
7
  ];
8
8
  export const DEFAULT_FRONTIER_MODEL = "anthropic/claude-opus-4.7";
@@ -26,6 +26,7 @@ export function stripModelNamespace(model) {
26
26
  return id.toLowerCase();
27
27
  }
28
28
  export const CODEX_MODELS = [
29
+ "openai/gpt-5.5",
29
30
  "openai/gpt-5.4",
30
31
  "openai/gpt-5.3-codex",
31
32
  "openai/gpt-5.3-codex-spark",
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/cli/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,2BAA2B;IAC3B,6BAA6B;IAC7B,sBAAsB;IACtB,gBAAgB;IAChB,uBAAuB;CACf,CAAC;AAEX,MAAM,CAAC,MAAM,sBAAsB,GAAG,2BAA2B,CAAC;AAElE,MAAM,CAAC,MAAM,kBAAkB,GAAG,6BAA6B,CAAC;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG,wBAAwB,CAAC;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAElD,MAAM,CAAC,MAAM,oBAAo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;IACpB,2BAA2B;IAC3B,uBAAuB;CACf,CAAC;AACX,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;AAC5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,sBAAsB,CAAC;AAE1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAC1C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,iDAAiD,CAAC"}
package/dist/index.js CHANGED
@@ -3136,6 +3136,7 @@ var init_constants = __esm({
3136
3136
  };
3137
3137
  DEFAULT_CLAUDE_CODE_MODEL = CLAUDE_CODE_VARIANTS.sonnet;
3138
3138
  CODEX_MODELS = [
3139
+ "openai/gpt-5.5",
3139
3140
  "openai/gpt-5.4",
3140
3141
  "openai/gpt-5.3-codex",
3141
3142
  "openai/gpt-5.3-codex-spark",
@@ -33493,6 +33494,8 @@ var init_journal = __esm({
33493
33494
  this.journalPath = journalPath;
33494
33495
  this.fs = fs19;
33495
33496
  }
33497
+ journalPath;
33498
+ fs;
33496
33499
  async init() {
33497
33500
  await this.fs.mkdir(dirname2(this.journalPath), { recursive: true });
33498
33501
  try {
@@ -34849,6 +34852,7 @@ var init_ralph = __esm({
34849
34852
  this.kind = kind;
34850
34853
  this.name = "RalphWorkflowStopError";
34851
34854
  }
34855
+ kind;
34852
34856
  };
34853
34857
  }
34854
34858
  });
@@ -35803,6 +35807,7 @@ var init_types6 = __esm({
35803
35807
  this.code = code;
35804
35808
  this.name = "ToolError";
35805
35809
  }
35810
+ code;
35806
35811
  };
35807
35812
  }
35808
35813
  });
@@ -35978,6 +35983,8 @@ var init_image = __esm({
35978
35983
  this.base64Data = base64Data;
35979
35984
  this.mimeType = mimeType;
35980
35985
  }
35986
+ base64Data;
35987
+ mimeType;
35981
35988
  static async fromUrl(url) {
35982
35989
  const response = await fetch(url);
35983
35990
  if (!response.ok) {
@@ -36052,6 +36059,8 @@ var init_audio = __esm({
36052
36059
  this.base64Data = base64Data;
36053
36060
  this.mimeType = mimeType;
36054
36061
  }
36062
+ base64Data;
36063
+ mimeType;
36055
36064
  static async fromUrl(url) {
36056
36065
  const response = await fetch(url);
36057
36066
  if (!response.ok) {
@@ -36122,6 +36131,10 @@ var init_file = __esm({
36122
36131
  this.isText = isText;
36123
36132
  this.name = name;
36124
36133
  }
36134
+ data;
36135
+ mimeType;
36136
+ isText;
36137
+ name;
36125
36138
  static async fromUrl(url) {
36126
36139
  const response = await fetch(url);
36127
36140
  if (!response.ok) {
@@ -39356,7 +39369,7 @@ function isRefreshRequested(name, refresh) {
39356
39369
  }
39357
39370
  return refresh?.has(name) === true;
39358
39371
  }
39359
- async function resolveSingleProxy(group) {
39372
+ async function resolveSingleProxy(group, options) {
39360
39373
  const internal = getInternalGroupConfig2(group);
39361
39374
  const config = internal.mcp;
39362
39375
  if (config === void 0) {
@@ -39364,7 +39377,7 @@ async function resolveSingleProxy(group) {
39364
39377
  }
39365
39378
  const name = group.name;
39366
39379
  try {
39367
- const cachePath = resolveCachePath(name);
39380
+ const cachePath = resolveCachePath(name, options.projectRoot);
39368
39381
  const refresh = parseRefreshEnv(process.env.TOOLCRAFT_MCP_REFRESH);
39369
39382
  let cache2;
39370
39383
  if (isRefreshRequested(name, refresh)) {
@@ -39458,9 +39471,9 @@ async function dialUpstream(name, config) {
39458
39471
  await client.connect(transport);
39459
39472
  return client;
39460
39473
  }
39461
- async function resolveMcpProxies(root) {
39474
+ async function resolveMcpProxies(root, options = {}) {
39462
39475
  const groups = collectProxyGroups(root);
39463
- await Promise.all(groups.map((group) => resolveSingleProxy(group)));
39476
+ await Promise.all(groups.map((group) => resolveSingleProxy(group, options)));
39464
39477
  }
39465
39478
  var GROUP_CONFIG_SYMBOL_DESCRIPTION, MCP_PROXY_SCHEMA_URL, DEFAULT_CLIENT_INFO, proxyNodeSymbol, proxyConnectionSymbol, shutdownDisposers;
39466
39479
  var init_mcp_proxy = __esm({
@@ -39953,7 +39966,7 @@ function resolveMCPVersion(version) {
39953
39966
  }
39954
39967
  async function runMCP(roots, options) {
39955
39968
  const root = mergeApprovalsGroup(normalizeRoots(roots));
39956
- await resolveMcpProxies(root);
39969
+ await resolveMcpProxies(root, { projectRoot: options.projectRoot });
39957
39970
  const server = createResolvedMCPServer(root, options);
39958
39971
  await server.listen();
39959
39972
  }
@@ -46096,20 +46109,41 @@ function formatSecretDescription(secret) {
46096
46109
  }
46097
46110
  return secret.optional === true ? "Optional secret" : "Required secret";
46098
46111
  }
46099
- function formatCommandRowName(node, depth) {
46100
- const name = node.aliases.length === 0 ? node.name : `${node.name} (${node.aliases.join(", ")})`;
46112
+ function wrapOptionalCommandParameterToken(token, optional) {
46113
+ return optional ? `[${token}]` : token;
46114
+ }
46115
+ function formatCommandDynamicParameterTokens(field, casing) {
46116
+ const optional = field.optional || field.hasDefault;
46117
+ return formatDynamicHelpFields(field, casing).map(
46118
+ (row) => wrapOptionalCommandParameterToken(row.flags, optional)
46119
+ );
46120
+ }
46121
+ function formatCommandParameterTokens(command, casing, globalLongOptionFlags) {
46122
+ const collected = collectFields(command.params, casing, globalLongOptionFlags);
46123
+ const fields = assignPositionals(collected.fields, command.positional);
46124
+ return fields.map(
46125
+ (field) => wrapOptionalCommandParameterToken(
46126
+ formatHelpFieldFlags(field, globalLongOptionFlags),
46127
+ field.positionalIndex === void 0 && (field.optional || field.hasDefault)
46128
+ )
46129
+ ).concat(collected.dynamicFields.flatMap((field) => formatCommandDynamicParameterTokens(field, casing)));
46130
+ }
46131
+ function formatCommandRowName(node, depth, casing, globalLongOptionFlags) {
46132
+ const baseName = node.aliases.length === 0 ? node.name : `${node.name} (${node.aliases.join(", ")})`;
46133
+ const parameterTokens = node.kind === "command" ? formatCommandParameterTokens(node, casing, globalLongOptionFlags) : [];
46134
+ const name = parameterTokens.length === 0 ? baseName : `${baseName} ${parameterTokens.join(" ")}`;
46101
46135
  return `${" ".repeat(depth)}${name}`;
46102
46136
  }
46103
- function formatCommandRows(group, scope, depth = 0) {
46137
+ function formatCommandRows(group, scope, casing, globalLongOptionFlags, depth = 0) {
46104
46138
  return getVisibleChildren(group, scope).flatMap((child) => {
46105
46139
  const row = {
46106
- name: formatCommandRowName(child, depth),
46140
+ name: formatCommandRowName(child, depth, casing, globalLongOptionFlags),
46107
46141
  description: child.description ?? ""
46108
46142
  };
46109
46143
  if (child.kind === "command") {
46110
46144
  return [row];
46111
46145
  }
46112
- return [row, ...formatCommandRows(child, scope, depth + 1)];
46146
+ return [row, ...formatCommandRows(child, scope, casing, globalLongOptionFlags, depth + 1)];
46113
46147
  });
46114
46148
  }
46115
46149
  function formatGlobalOptionRows(showVersion, presetsEnabled) {
@@ -46152,9 +46186,10 @@ function buildUsageLine(breadcrumb, rootUsageName, suffix) {
46152
46186
  const subPath = breadcrumb.slice(1).join(" ");
46153
46187
  return subPath ? `${rootUsageName} ${subPath} ${suffix}` : `${rootUsageName} ${suffix}`;
46154
46188
  }
46155
- function renderGroupHelp(group, breadcrumb, scope, showVersion, presetsEnabled, rootUsageName) {
46189
+ function renderGroupHelp(group, breadcrumb, scope, casing, showVersion, presetsEnabled, rootUsageName) {
46156
46190
  const sections = [];
46157
- const commandRows = formatCommandRows(group, scope);
46191
+ const globalLongOptionFlags = getGlobalLongOptionFlags(presetsEnabled);
46192
+ const commandRows = formatCommandRows(group, scope, casing, globalLongOptionFlags);
46158
46193
  if (commandRows.length > 0) {
46159
46194
  sections.push(`${text.section("Commands:")}
46160
46195
  ${formatCommandList(commandRows)}`);
@@ -46226,6 +46261,7 @@ async function renderGeneratedHelp(root, argv, options) {
46226
46261
  target.node,
46227
46262
  target.breadcrumb,
46228
46263
  "cli",
46264
+ casing,
46229
46265
  options.version !== void 0,
46230
46266
  options.presets === true,
46231
46267
  options.rootUsageName
@@ -47400,7 +47436,7 @@ function handleRunError(error2, verbose) {
47400
47436
  }
47401
47437
  async function runCLI(roots, options = {}) {
47402
47438
  const root = mergeApprovalsGroup(normalizeRoots2(roots, process.argv));
47403
- await resolveMcpProxies(root);
47439
+ await resolveMcpProxies(root, { projectRoot: options.projectRoot });
47404
47440
  const casing = options.casing ?? "kebab";
47405
47441
  const services = options.services ?? {};
47406
47442
  const runtimeOptions = options.humanInLoop ?? {};
@@ -49610,14 +49646,8 @@ async function executeTest(program, container, service, options = {}) {
49610
49646
  resources,
49611
49647
  { model: options.model }
49612
49648
  );
49613
- const activeProvider = options.isolated ? await resolveActiveProviderForService(container, canonicalService) : void 0;
49614
- const isolatedDetails = options.isolated && adapter.isolatedEnv ? await resolveIsolatedEnvDetails(
49615
- container.env,
49616
- adapter.isolatedEnv,
49617
- adapter.name,
49618
- activeProvider
49619
- ) : null;
49620
- if (options.isolated && adapter.isolatedEnv) {
49649
+ const useIsolated = Boolean(options.isolated && adapter.isolatedEnv);
49650
+ if (useIsolated) {
49621
49651
  const { ensureIsolatedConfigForService: ensureIsolatedConfigForService2 } = await Promise.resolve().then(() => (init_ensure_isolated_config(), ensure_isolated_config_exports));
49622
49652
  await ensureIsolatedConfigForService2({
49623
49653
  container,
@@ -49632,7 +49662,7 @@ async function executeTest(program, container, service, options = {}) {
49632
49662
  if (!entry.test) {
49633
49663
  throw new Error(`Agent "${canonicalService}" does not support test.`);
49634
49664
  }
49635
- const activeContext = isolatedDetails ? {
49665
+ const activeContext = useIsolated ? {
49636
49666
  ...providerContext,
49637
49667
  runCheck: async (check) => {
49638
49668
  await check.run({
@@ -49663,7 +49693,6 @@ var init_test = __esm({
49663
49693
  "use strict";
49664
49694
  init_shared();
49665
49695
  init_configure();
49666
- init_isolated_env();
49667
49696
  init_src6();
49668
49697
  }
49669
49698
  });
@@ -56838,7 +56867,7 @@ var init_package2 = __esm({
56838
56867
  "package.json"() {
56839
56868
  package_default2 = {
56840
56869
  name: "poe-code",
56841
- version: "3.0.195",
56870
+ version: "3.0.197",
56842
56871
  description: "CLI tool to configure Poe API for developer workflows.",
56843
56872
  type: "module",
56844
56873
  main: "./dist/index.js",