poe-code 3.0.194 → 3.0.196

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",
@@ -39356,7 +39357,7 @@ function isRefreshRequested(name, refresh) {
39356
39357
  }
39357
39358
  return refresh?.has(name) === true;
39358
39359
  }
39359
- async function resolveSingleProxy(group) {
39360
+ async function resolveSingleProxy(group, options) {
39360
39361
  const internal = getInternalGroupConfig2(group);
39361
39362
  const config = internal.mcp;
39362
39363
  if (config === void 0) {
@@ -39364,7 +39365,7 @@ async function resolveSingleProxy(group) {
39364
39365
  }
39365
39366
  const name = group.name;
39366
39367
  try {
39367
- const cachePath = resolveCachePath(name);
39368
+ const cachePath = resolveCachePath(name, options.projectRoot);
39368
39369
  const refresh = parseRefreshEnv(process.env.TOOLCRAFT_MCP_REFRESH);
39369
39370
  let cache2;
39370
39371
  if (isRefreshRequested(name, refresh)) {
@@ -39458,9 +39459,9 @@ async function dialUpstream(name, config) {
39458
39459
  await client.connect(transport);
39459
39460
  return client;
39460
39461
  }
39461
- async function resolveMcpProxies(root) {
39462
+ async function resolveMcpProxies(root, options = {}) {
39462
39463
  const groups = collectProxyGroups(root);
39463
- await Promise.all(groups.map((group) => resolveSingleProxy(group)));
39464
+ await Promise.all(groups.map((group) => resolveSingleProxy(group, options)));
39464
39465
  }
39465
39466
  var GROUP_CONFIG_SYMBOL_DESCRIPTION, MCP_PROXY_SCHEMA_URL, DEFAULT_CLIENT_INFO, proxyNodeSymbol, proxyConnectionSymbol, shutdownDisposers;
39466
39467
  var init_mcp_proxy = __esm({
@@ -39953,7 +39954,7 @@ function resolveMCPVersion(version) {
39953
39954
  }
39954
39955
  async function runMCP(roots, options) {
39955
39956
  const root = mergeApprovalsGroup(normalizeRoots(roots));
39956
- await resolveMcpProxies(root);
39957
+ await resolveMcpProxies(root, { projectRoot: options.projectRoot });
39957
39958
  const server = createResolvedMCPServer(root, options);
39958
39959
  await server.listen();
39959
39960
  }
@@ -45482,7 +45483,7 @@ function getRequiredBranchFingerprint(branch, casing) {
45482
45483
  const requiredKeys = Object.entries(branch.shape).filter(([, schema]) => schema.kind !== "optional").map(([key2]) => formatSegment2(key2, casing)).sort();
45483
45484
  return requiredKeys.join("+");
45484
45485
  }
45485
- function collectFields(schema, casing, path94 = [], inheritedOptional = false, variantContext) {
45486
+ function collectFields(schema, casing, globalLongOptionFlags, path94 = [], inheritedOptional = false, variantContext) {
45486
45487
  const collected = {
45487
45488
  dynamicFields: [],
45488
45489
  fields: [],
@@ -45494,7 +45495,7 @@ function collectFields(schema, casing, path94 = [], inheritedOptional = false, v
45494
45495
  const childSchema = unwrapOptional3(rawChildSchema);
45495
45496
  const requiredWhenActive = rawChildSchema.kind !== "optional" && childSchema.default === void 0;
45496
45497
  if (childSchema.kind === "object") {
45497
- const nested = collectFields(childSchema, casing, nextPath, runtimeOptional, variantContext);
45498
+ const nested = collectFields(childSchema, casing, globalLongOptionFlags, nextPath, runtimeOptional, variantContext);
45498
45499
  collected.dynamicFields.push(...nested.dynamicFields);
45499
45500
  collected.fields.push(...nested.fields);
45500
45501
  collected.variants.push(...nested.variants);
@@ -45508,7 +45509,7 @@ function collectFields(schema, casing, path94 = [], inheritedOptional = false, v
45508
45509
  path: [...nextPath, childSchema.discriminator],
45509
45510
  displayPath: toDisplayPath3([...nextPath, childSchema.discriminator]),
45510
45511
  optionAttribute: toOptionAttribute([...nextPath, childSchema.discriminator], casing),
45511
- commanderOptionAttribute: toCommanderOptionAttribute([...nextPath, childSchema.discriminator], casing),
45512
+ commanderOptionAttribute: toCommanderOptionAttribute([...nextPath, childSchema.discriminator], casing, globalLongOptionFlags),
45512
45513
  optionFlag: toOptionFlag([...nextPath, childSchema.discriminator], casing),
45513
45514
  shortFlag: void 0,
45514
45515
  schema: createSyntheticEnumSchema(branchIds),
@@ -45521,7 +45522,7 @@ function collectFields(schema, casing, path94 = [], inheritedOptional = false, v
45521
45522
  collected.fields.push(controlField);
45522
45523
  const branches = [];
45523
45524
  for (const [branchId, branchSchema] of Object.entries(childSchema.branches)) {
45524
- const branch = collectFields(branchSchema, casing, nextPath, true, {
45525
+ const branch = collectFields(branchSchema, casing, globalLongOptionFlags, nextPath, true, {
45525
45526
  id: variantId,
45526
45527
  branchId
45527
45528
  });
@@ -45555,7 +45556,7 @@ function collectFields(schema, casing, path94 = [], inheritedOptional = false, v
45555
45556
  path: controlPath,
45556
45557
  displayPath: controlDisplayPath,
45557
45558
  optionAttribute: toOptionAttribute(controlPath, casing),
45558
- commanderOptionAttribute: toCommanderOptionAttribute(controlPath, casing),
45559
+ commanderOptionAttribute: toCommanderOptionAttribute(controlPath, casing, globalLongOptionFlags),
45559
45560
  optionFlag: toOptionFlag(controlPath, casing),
45560
45561
  shortFlag: void 0,
45561
45562
  schema: createSyntheticEnumSchema(branchIds),
@@ -45570,7 +45571,7 @@ function collectFields(schema, casing, path94 = [], inheritedOptional = false, v
45570
45571
  const branches = [];
45571
45572
  childSchema.branches.forEach((branchSchema, index) => {
45572
45573
  const branchId = branchIds[index] ?? "";
45573
- const branch = collectFields(branchSchema, casing, nextPath, true, {
45574
+ const branch = collectFields(branchSchema, casing, globalLongOptionFlags, nextPath, true, {
45574
45575
  id: variantId,
45575
45576
  branchId
45576
45577
  });
@@ -45637,7 +45638,7 @@ function collectFields(schema, casing, path94 = [], inheritedOptional = false, v
45637
45638
  path: nextPath,
45638
45639
  displayPath: toDisplayPath3(nextPath),
45639
45640
  optionAttribute: toOptionAttribute(nextPath, casing),
45640
- commanderOptionAttribute: toCommanderOptionAttribute(nextPath, casing),
45641
+ commanderOptionAttribute: toCommanderOptionAttribute(nextPath, casing, globalLongOptionFlags),
45641
45642
  optionFlag: toOptionFlag(nextPath, casing),
45642
45643
  shortFlag: childSchema.short,
45643
45644
  schema: childSchema,
@@ -45652,10 +45653,10 @@ function collectFields(schema, casing, path94 = [], inheritedOptional = false, v
45652
45653
  }
45653
45654
  return collected;
45654
45655
  }
45655
- function toCommanderOptionAttribute(path94, casing) {
45656
+ function toCommanderOptionAttribute(path94, casing, globalLongOptionFlags) {
45656
45657
  const optionAttribute = toOptionAttribute(path94, casing);
45657
45658
  const optionFlag = toOptionFlag(path94, casing);
45658
- if (!GLOBAL_LONG_OPTION_FLAGS.has(optionFlag)) {
45659
+ if (!globalLongOptionFlags.has(optionFlag)) {
45659
45660
  return optionAttribute;
45660
45661
  }
45661
45662
  return `param_${optionAttribute}`;
@@ -45685,8 +45686,8 @@ function assignPositionals(fields, positional) {
45685
45686
  });
45686
45687
  return fields;
45687
45688
  }
45688
- function formatOptionFlags(field) {
45689
- const collidesWithGlobalFlag = GLOBAL_LONG_OPTION_FLAGS.has(field.optionFlag);
45689
+ function formatOptionFlags(field, globalLongOptionFlags) {
45690
+ const collidesWithGlobalFlag = globalLongOptionFlags.has(field.optionFlag);
45690
45691
  if (collidesWithGlobalFlag) {
45691
45692
  if (field.shortFlag === void 0) {
45692
45693
  throw new UserError(
@@ -45804,9 +45805,9 @@ function parseArrayValue(value, schema, label) {
45804
45805
  }
45805
45806
  return splitArrayInput(value).map((item) => parseScalarValue(item, itemSchema, label));
45806
45807
  }
45807
- function createOption(field) {
45808
- const flags = formatOptionFlags(field);
45809
- const collidesWithGlobalFlag = GLOBAL_LONG_OPTION_FLAGS.has(field.optionFlag);
45808
+ function createOption(field, globalLongOptionFlags) {
45809
+ const flags = formatOptionFlags(field, globalLongOptionFlags);
45810
+ const collidesWithGlobalFlag = globalLongOptionFlags.has(field.optionFlag);
45810
45811
  const commanderValue = (value) => value === null ? NULL_OPTION_VALUE : value;
45811
45812
  if (field.schema.kind === "boolean") {
45812
45813
  if (collidesWithGlobalFlag) {
@@ -45851,6 +45852,9 @@ function createOption(field) {
45851
45852
  );
45852
45853
  return [option];
45853
45854
  }
45855
+ function getGlobalLongOptionFlags(presetsEnabled) {
45856
+ return new Set(presetsEnabled ? ["--preset", ...ALWAYS_GLOBAL_LONG_OPTION_FLAGS] : ALWAYS_GLOBAL_LONG_OPTION_FLAGS);
45857
+ }
45854
45858
  function createCommanderOption(flags, description, field) {
45855
45859
  const option = new Option(flags, description);
45856
45860
  if (field.commanderOptionAttribute !== field.optionAttribute) {
@@ -45944,14 +45948,14 @@ function describeSchemaType(schema) {
45944
45948
  throw new UserError("Unsupported CLI schema kind.");
45945
45949
  }
45946
45950
  }
45947
- function formatHelpFieldFlags(field) {
45951
+ function formatHelpFieldFlags(field, globalLongOptionFlags) {
45948
45952
  if (field.positionalIndex !== void 0) {
45949
45953
  return formatPositionalToken(field);
45950
45954
  }
45951
45955
  if (field.schema.kind === "boolean") {
45952
- return `${formatOptionFlags(field)} [value]`;
45956
+ return `${formatOptionFlags(field, globalLongOptionFlags)} [value]`;
45953
45957
  }
45954
- return `${formatOptionFlags(field)} <${describeSchemaType(field.schema)}>`;
45958
+ return `${formatOptionFlags(field, globalLongOptionFlags)} <${describeSchemaType(field.schema)}>`;
45955
45959
  }
45956
45960
  function appendHelpMetadata(description, metadata) {
45957
45961
  if (metadata.length === 0) {
@@ -46093,18 +46097,31 @@ function formatSecretDescription(secret) {
46093
46097
  }
46094
46098
  return secret.optional === true ? "Optional secret" : "Required secret";
46095
46099
  }
46096
- function formatCommandRows(group, scope) {
46097
- return getVisibleChildren(group, scope).map((child) => ({
46098
- name: child.aliases.length === 0 ? child.name : `${child.name} (${child.aliases.join(", ")})`,
46099
- description: child.description ?? ""
46100
- }));
46100
+ function formatCommandRowName(node, depth) {
46101
+ const name = node.aliases.length === 0 ? node.name : `${node.name} (${node.aliases.join(", ")})`;
46102
+ return `${" ".repeat(depth)}${name}`;
46101
46103
  }
46102
- function formatGlobalOptionRows(showVersion) {
46103
- const rows = [
46104
- {
46104
+ function formatCommandRows(group, scope, depth = 0) {
46105
+ return getVisibleChildren(group, scope).flatMap((child) => {
46106
+ const row = {
46107
+ name: formatCommandRowName(child, depth),
46108
+ description: child.description ?? ""
46109
+ };
46110
+ if (child.kind === "command") {
46111
+ return [row];
46112
+ }
46113
+ return [row, ...formatCommandRows(child, scope, depth + 1)];
46114
+ });
46115
+ }
46116
+ function formatGlobalOptionRows(showVersion, presetsEnabled) {
46117
+ const rows = [];
46118
+ if (presetsEnabled) {
46119
+ rows.push({
46105
46120
  flags: "--preset <path>",
46106
46121
  description: "Load parameter defaults from a JSON file"
46107
- },
46122
+ });
46123
+ }
46124
+ rows.push(
46108
46125
  {
46109
46126
  flags: "--yes",
46110
46127
  description: "Accept defaults, skip prompts"
@@ -46117,7 +46134,7 @@ function formatGlobalOptionRows(showVersion) {
46117
46134
  flags: "-h, --help",
46118
46135
  description: "Show help"
46119
46136
  }
46120
- ];
46137
+ );
46121
46138
  if (showVersion) {
46122
46139
  rows.push({
46123
46140
  flags: "--version",
@@ -46136,7 +46153,7 @@ function buildUsageLine(breadcrumb, rootUsageName, suffix) {
46136
46153
  const subPath = breadcrumb.slice(1).join(" ");
46137
46154
  return subPath ? `${rootUsageName} ${subPath} ${suffix}` : `${rootUsageName} ${suffix}`;
46138
46155
  }
46139
- function renderGroupHelp(group, breadcrumb, scope, showVersion, rootUsageName) {
46156
+ function renderGroupHelp(group, breadcrumb, scope, showVersion, presetsEnabled, rootUsageName) {
46140
46157
  const sections = [];
46141
46158
  const commandRows = formatCommandRows(group, scope);
46142
46159
  if (commandRows.length > 0) {
@@ -46144,7 +46161,7 @@ function renderGroupHelp(group, breadcrumb, scope, showVersion, rootUsageName) {
46144
46161
  ${formatCommandList(commandRows)}`);
46145
46162
  }
46146
46163
  sections.push(`${text.section("Global options:")}
46147
- ${formatOptionList(formatGlobalOptionRows(showVersion))}`);
46164
+ ${formatOptionList(formatGlobalOptionRows(showVersion, presetsEnabled))}`);
46148
46165
  return renderHelpDocument({
46149
46166
  breadcrumb,
46150
46167
  usageLine: buildUsageLine(breadcrumb, rootUsageName, "[options] [command]"),
@@ -46153,12 +46170,13 @@ ${formatOptionList(formatGlobalOptionRows(showVersion))}`);
46153
46170
  sections
46154
46171
  });
46155
46172
  }
46156
- function renderLeafHelp(command, breadcrumb, casing, rootUsageName) {
46173
+ function renderLeafHelp(command, breadcrumb, casing, presetsEnabled, rootUsageName) {
46157
46174
  const sections = [];
46158
- const collected = collectFields(command.params, casing);
46175
+ const globalLongOptionFlags = getGlobalLongOptionFlags(presetsEnabled);
46176
+ const collected = collectFields(command.params, casing, globalLongOptionFlags);
46159
46177
  const fields = assignPositionals(collected.fields, command.positional);
46160
46178
  const optionRows = fields.map((field) => ({
46161
- flags: formatHelpFieldFlags(field),
46179
+ flags: formatHelpFieldFlags(field, globalLongOptionFlags),
46162
46180
  description: formatHelpFieldDescription(field)
46163
46181
  })).concat(collected.dynamicFields.flatMap((field) => formatDynamicHelpFields(field, casing)));
46164
46182
  if (optionRows.length > 0) {
@@ -46166,7 +46184,7 @@ function renderLeafHelp(command, breadcrumb, casing, rootUsageName) {
46166
46184
  ${formatOptionList(optionRows)}`);
46167
46185
  }
46168
46186
  sections.push(`${text.section("Global options:")}
46169
- ${formatOptionList(formatGlobalOptionRows(false))}`);
46187
+ ${formatOptionList(formatGlobalOptionRows(false, presetsEnabled))}`);
46170
46188
  const secretRows = formatSecretRows(command.secrets);
46171
46189
  if (secretRows.length > 0) {
46172
46190
  sections.push(`${text.section("Secrets (via environment):")}
@@ -46205,25 +46223,32 @@ async function renderGeneratedHelp(root, argv, options) {
46205
46223
  const output = resolveHelpOutput(argv);
46206
46224
  const casing = options.casing ?? "kebab";
46207
46225
  await withOutputFormat2(output, async () => {
46208
- const rendered = target.node.kind === "group" ? renderGroupHelp(target.node, target.breadcrumb, "cli", options.version !== void 0, options.rootUsageName) : renderLeafHelp(target.node, target.breadcrumb, casing, options.rootUsageName);
46226
+ const rendered = target.node.kind === "group" ? renderGroupHelp(
46227
+ target.node,
46228
+ target.breadcrumb,
46229
+ "cli",
46230
+ options.version !== void 0,
46231
+ options.presets === true,
46232
+ options.rootUsageName
46233
+ ) : renderLeafHelp(target.node, target.breadcrumb, casing, options.presets === true, options.rootUsageName);
46209
46234
  process.stdout.write(rendered);
46210
46235
  });
46211
46236
  }
46212
- function createNodeCommand(node, casing, execute2, pathSegments = []) {
46237
+ function createNodeCommand(node, casing, globalLongOptionFlags, execute2, presetsEnabled, pathSegments = []) {
46213
46238
  const nextPathSegments = [...pathSegments, node.name];
46214
46239
  if (node.kind === "command") {
46215
46240
  if (!node.scope.includes("cli")) {
46216
46241
  return null;
46217
46242
  }
46218
46243
  const command = new CommanderCommand(node.name);
46219
- const collected = collectFields(node.params, casing);
46244
+ const collected = collectFields(node.params, casing, globalLongOptionFlags);
46220
46245
  const fields = assignPositionals(collected.fields, node.positional);
46221
46246
  if (node.description !== void 0) {
46222
46247
  command.description(node.description);
46223
46248
  }
46224
46249
  node.aliases.forEach((alias) => command.alias(alias));
46225
46250
  command.addHelpCommand(false);
46226
- addGlobalOptions(command);
46251
+ addGlobalOptions(command, presetsEnabled);
46227
46252
  command.allowExcessArguments(true);
46228
46253
  if (collected.dynamicFields.length > 0) {
46229
46254
  command.allowUnknownOption(true);
@@ -46233,7 +46258,7 @@ function createNodeCommand(node, casing, execute2, pathSegments = []) {
46233
46258
  command.argument(formatPositionalToken(field));
46234
46259
  continue;
46235
46260
  }
46236
- for (const option of createOption(field)) {
46261
+ for (const option of createOption(field, globalLongOptionFlags)) {
46237
46262
  command.addOption(option);
46238
46263
  }
46239
46264
  }
@@ -46247,6 +46272,7 @@ function createNodeCommand(node, casing, execute2, pathSegments = []) {
46247
46272
  dynamicFields: collected.dynamicFields,
46248
46273
  fields,
46249
46274
  positionalValues,
46275
+ presetsEnabled,
46250
46276
  rawArgv: actionCommand.args,
46251
46277
  actionCommand,
46252
46278
  variants: collected.variants
@@ -46257,22 +46283,25 @@ function createNodeCommand(node, casing, execute2, pathSegments = []) {
46257
46283
  if (!isNodeVisibleInScope(node, "cli")) {
46258
46284
  return null;
46259
46285
  }
46260
- const visibleChildren = node.children.map((child) => createNodeCommand(child, casing, execute2, nextPathSegments)).filter((child) => child !== null);
46286
+ const visibleChildren = node.children.map((child) => createNodeCommand(child, casing, globalLongOptionFlags, execute2, presetsEnabled, nextPathSegments)).filter((child) => child !== null);
46261
46287
  const group = new CommanderCommand(node.name);
46262
46288
  if (node.description !== void 0) {
46263
46289
  group.description(node.description);
46264
46290
  }
46265
46291
  node.aliases.forEach((alias) => group.alias(alias));
46266
46292
  group.addHelpCommand(false);
46267
- addGlobalOptions(group);
46293
+ addGlobalOptions(group, presetsEnabled);
46268
46294
  for (const child of visibleChildren) {
46269
46295
  const isDefaultChild = node.default !== void 0 && node.default.scope.includes("cli") && (child.name() === node.default.name || child.aliases().includes(node.default.name));
46270
46296
  group.addCommand(child, isDefaultChild ? { isDefault: true } : void 0);
46271
46297
  }
46272
46298
  return group;
46273
46299
  }
46274
- function addGlobalOptions(command) {
46275
- command.option("--preset <path>", "Load parameter defaults from a JSON file.").option("--yes", "Accept defaults and skip prompts.").option("--output <format>", "Output format.", (value) => {
46300
+ function addGlobalOptions(command, presetsEnabled) {
46301
+ if (presetsEnabled) {
46302
+ command.option("--preset <path>", "Load parameter defaults from a JSON file.");
46303
+ }
46304
+ command.option("--yes", "Accept defaults and skip prompts.").option("--output <format>", "Output format.", (value) => {
46276
46305
  if (value === "rich" || value === "md" || value === "json") {
46277
46306
  return value;
46278
46307
  }
@@ -47308,7 +47337,7 @@ async function executeCommand(state, services, requirementOptions, runtimeOption
47308
47337
  optionValues,
47309
47338
  state.rawArgv,
47310
47339
  state.casing,
47311
- resolvedFlags.preset,
47340
+ state.presetsEnabled ? resolvedFlags.preset : void 0,
47312
47341
  shouldPrompt
47313
47342
  );
47314
47343
  const context = {
@@ -47372,7 +47401,7 @@ function handleRunError(error2, verbose) {
47372
47401
  }
47373
47402
  async function runCLI(roots, options = {}) {
47374
47403
  const root = mergeApprovalsGroup(normalizeRoots2(roots, process.argv));
47375
- await resolveMcpProxies(root);
47404
+ await resolveMcpProxies(root, { projectRoot: options.projectRoot });
47376
47405
  const casing = options.casing ?? "kebab";
47377
47406
  const services = options.services ?? {};
47378
47407
  const runtimeOptions = options.humanInLoop ?? {};
@@ -47395,7 +47424,9 @@ async function runCLI(roots, options = {}) {
47395
47424
  program.exitOverride();
47396
47425
  program.showHelpAfterError();
47397
47426
  program.addHelpCommand(false);
47398
- addGlobalOptions(program);
47427
+ const presetsEnabled = options.presets === true;
47428
+ const globalLongOptionFlags = getGlobalLongOptionFlags(presetsEnabled);
47429
+ addGlobalOptions(program, presetsEnabled);
47399
47430
  if (version !== void 0) {
47400
47431
  program.version(version, "--version");
47401
47432
  }
@@ -47405,7 +47436,7 @@ async function runCLI(roots, options = {}) {
47405
47436
  await executeCommand(state, servicesWithBuiltIns, requirementOptions, runtimeOptions);
47406
47437
  };
47407
47438
  for (const child of root.children) {
47408
- const command = createNodeCommand(child, casing, execute2);
47439
+ const command = createNodeCommand(child, casing, globalLongOptionFlags, execute2, presetsEnabled);
47409
47440
  if (command === null) {
47410
47441
  continue;
47411
47442
  }
@@ -47425,7 +47456,7 @@ async function runCLI(roots, options = {}) {
47425
47456
  );
47426
47457
  }
47427
47458
  }
47428
- var RESERVED_SERVICE_NAMES2, NULL_OPTION_VALUE, HELP_FLAGS, GLOBAL_LONG_OPTION_FLAGS, DESIGN_SYSTEM_OUTPUT_BY_MODE;
47459
+ var RESERVED_SERVICE_NAMES2, NULL_OPTION_VALUE, HELP_FLAGS, ALWAYS_GLOBAL_LONG_OPTION_FLAGS, DESIGN_SYSTEM_OUTPUT_BY_MODE;
47429
47460
  var init_cli = __esm({
47430
47461
  "packages/toolcraft/src/cli.ts"() {
47431
47462
  "use strict";
@@ -47440,7 +47471,7 @@ var init_cli = __esm({
47440
47471
  RESERVED_SERVICE_NAMES2 = /* @__PURE__ */ new Set(["params", "secrets", "fetch", "fs", "env", "progress"]);
47441
47472
  NULL_OPTION_VALUE = /* @__PURE__ */ Symbol("toolcraft.cli.null");
47442
47473
  HELP_FLAGS = /* @__PURE__ */ new Set(["--help", "-h"]);
47443
- GLOBAL_LONG_OPTION_FLAGS = /* @__PURE__ */ new Set(["--preset", "--yes", "--output", "--verbose"]);
47474
+ ALWAYS_GLOBAL_LONG_OPTION_FLAGS = ["--yes", "--output", "--verbose"];
47444
47475
  DESIGN_SYSTEM_OUTPUT_BY_MODE = {
47445
47476
  rich: "terminal",
47446
47477
  md: "markdown",
@@ -49580,14 +49611,8 @@ async function executeTest(program, container, service, options = {}) {
49580
49611
  resources,
49581
49612
  { model: options.model }
49582
49613
  );
49583
- const activeProvider = options.isolated ? await resolveActiveProviderForService(container, canonicalService) : void 0;
49584
- const isolatedDetails = options.isolated && adapter.isolatedEnv ? await resolveIsolatedEnvDetails(
49585
- container.env,
49586
- adapter.isolatedEnv,
49587
- adapter.name,
49588
- activeProvider
49589
- ) : null;
49590
- if (options.isolated && adapter.isolatedEnv) {
49614
+ const useIsolated = Boolean(options.isolated && adapter.isolatedEnv);
49615
+ if (useIsolated) {
49591
49616
  const { ensureIsolatedConfigForService: ensureIsolatedConfigForService2 } = await Promise.resolve().then(() => (init_ensure_isolated_config(), ensure_isolated_config_exports));
49592
49617
  await ensureIsolatedConfigForService2({
49593
49618
  container,
@@ -49602,7 +49627,7 @@ async function executeTest(program, container, service, options = {}) {
49602
49627
  if (!entry.test) {
49603
49628
  throw new Error(`Agent "${canonicalService}" does not support test.`);
49604
49629
  }
49605
- const activeContext = isolatedDetails ? {
49630
+ const activeContext = useIsolated ? {
49606
49631
  ...providerContext,
49607
49632
  runCheck: async (check) => {
49608
49633
  await check.run({
@@ -49633,7 +49658,6 @@ var init_test = __esm({
49633
49658
  "use strict";
49634
49659
  init_shared();
49635
49660
  init_configure();
49636
- init_isolated_env();
49637
49661
  init_src6();
49638
49662
  }
49639
49663
  });
@@ -56808,7 +56832,7 @@ var init_package2 = __esm({
56808
56832
  "package.json"() {
56809
56833
  package_default2 = {
56810
56834
  name: "poe-code",
56811
- version: "3.0.194",
56835
+ version: "3.0.196",
56812
56836
  description: "CLI tool to configure Poe API for developer workflows.",
56813
56837
  type: "module",
56814
56838
  main: "./dist/index.js",