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.
@@ -5347,23 +5347,11 @@ function displayScalar(value) {
5347
5347
  }
5348
5348
  return stringifyValue(value) || "\u2014";
5349
5349
  }
5350
- function isUrl(value) {
5351
- return typeof value === "string" && (value.startsWith("https://") || value.startsWith("http://"));
5352
- }
5353
- function compactUrl(value) {
5354
- try {
5355
- const url = new URL(value);
5356
- const tail = url.pathname.split("/").filter(Boolean).at(-1);
5357
- return tail ? `${url.hostname}/\u2026/${tail}` : url.hostname;
5358
- } catch {
5359
- return value;
5360
- }
5361
- }
5362
5350
  function stackedList(value) {
5363
5351
  return value.map((entry) => displayScalar(entry)).join("\n") || "\u2014";
5364
5352
  }
5365
5353
  function displayRowValue(value) {
5366
- return isUrl(value) ? compactUrl(value) : displayScalar(value);
5354
+ return displayScalar(value);
5367
5355
  }
5368
5356
  function directScalarRows(result) {
5369
5357
  return Object.entries(result).filter(([, value]) => !isObject2(value) && !Array.isArray(value)).map(([key, value]) => ({ label: humanizeKey(key), value: displayRowValue(value) }));
@@ -6335,6 +6323,9 @@ function isNegativeNumericArrayToken(token, schema) {
6335
6323
  return items.length > 0 && items.every((item) => isValidNumberSchemaValue(Number(item), itemSchema));
6336
6324
  }
6337
6325
  function isNextArrayOptionToken(token, schema) {
6326
+ if (token === "-" && unwrapOptional2(schema.item).kind === "string") {
6327
+ return false;
6328
+ }
6338
6329
  return token.startsWith("-") && !isNegativeNumericArrayToken(token, schema);
6339
6330
  }
6340
6331
  function validateArrayBounds(value, schema, label) {
@@ -9416,7 +9407,9 @@ function renderHttpError(error3, options) {
9416
9407
  } else {
9417
9408
  lines.push(`Response body: ${formatHttpErrorSnippet(error3.response.body)}`);
9418
9409
  }
9419
- lines.push("Re-run with --verbose to see headers and full body.");
9410
+ if (options.verboseControlEnabled) {
9411
+ lines.push("Re-run with --verbose to see headers and full body.");
9412
+ }
9420
9413
  }
9421
9414
  process.stderr.write(`${lines.join("\n")}
9422
9415
  `);
@@ -9908,6 +9901,7 @@ async function runCLI(roots, options = {}) {
9908
9901
  debugStackMode: controls.debug ? resolvedFlags !== void 0 ? resolveDebugStackMode(resolvedFlags.debug) : getDebugStackModeFromArgv(argv) : void 0,
9909
9902
  output: resolvedFlags !== void 0 ? resolveOutput(resolvedFlags) : resolveOutputFromArgv(argv, controls.outputFormats),
9910
9903
  verbose: resolvedFlags ? Boolean(resolvedFlags.verbose) : argv.includes("--verbose"),
9904
+ verboseControlEnabled: controls.verbose,
9911
9905
  program,
9912
9906
  argv,
9913
9907
  rootUsageName,