poe-code 4.0.31-beta.1 → 4.0.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "4.0.31-beta.1",
3
+ "version": "4.0.31",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -5271,23 +5271,11 @@ function displayScalar(value) {
5271
5271
  }
5272
5272
  return stringifyValue(value) || "\u2014";
5273
5273
  }
5274
- function isUrl(value) {
5275
- return typeof value === "string" && (value.startsWith("https://") || value.startsWith("http://"));
5276
- }
5277
- function compactUrl(value) {
5278
- try {
5279
- const url = new URL(value);
5280
- const tail = url.pathname.split("/").filter(Boolean).at(-1);
5281
- return tail ? `${url.hostname}/\u2026/${tail}` : url.hostname;
5282
- } catch {
5283
- return value;
5284
- }
5285
- }
5286
5274
  function stackedList(value) {
5287
5275
  return value.map((entry) => displayScalar(entry)).join("\n") || "\u2014";
5288
5276
  }
5289
5277
  function displayRowValue(value) {
5290
- return isUrl(value) ? compactUrl(value) : displayScalar(value);
5278
+ return displayScalar(value);
5291
5279
  }
5292
5280
  function directScalarRows(result) {
5293
5281
  return Object.entries(result).filter(([, value]) => !isObject2(value) && !Array.isArray(value)).map(([key, value]) => ({ label: humanizeKey(key), value: displayRowValue(value) }));
@@ -6259,6 +6247,9 @@ function isNegativeNumericArrayToken(token, schema) {
6259
6247
  return items.length > 0 && items.every((item) => isValidNumberSchemaValue(Number(item), itemSchema));
6260
6248
  }
6261
6249
  function isNextArrayOptionToken(token, schema) {
6250
+ if (token === "-" && unwrapOptional2(schema.item).kind === "string") {
6251
+ return false;
6252
+ }
6262
6253
  return token.startsWith("-") && !isNegativeNumericArrayToken(token, schema);
6263
6254
  }
6264
6255
  function validateArrayBounds(value, schema, label) {
@@ -9340,7 +9331,9 @@ function renderHttpError(error3, options) {
9340
9331
  } else {
9341
9332
  lines.push(`Response body: ${formatHttpErrorSnippet(error3.response.body)}`);
9342
9333
  }
9343
- lines.push("Re-run with --verbose to see headers and full body.");
9334
+ if (options.verboseControlEnabled) {
9335
+ lines.push("Re-run with --verbose to see headers and full body.");
9336
+ }
9344
9337
  }
9345
9338
  process.stderr.write(`${lines.join("\n")}
9346
9339
  `);
@@ -9832,6 +9825,7 @@ async function runCLI(roots, options = {}) {
9832
9825
  debugStackMode: controls.debug ? resolvedFlags !== void 0 ? resolveDebugStackMode(resolvedFlags.debug) : getDebugStackModeFromArgv(argv) : void 0,
9833
9826
  output: resolvedFlags !== void 0 ? resolveOutput(resolvedFlags) : resolveOutputFromArgv(argv, controls.outputFormats),
9834
9827
  verbose: resolvedFlags ? Boolean(resolvedFlags.verbose) : argv.includes("--verbose"),
9828
+ verboseControlEnabled: controls.verbose,
9835
9829
  program,
9836
9830
  argv,
9837
9831
  rootUsageName,