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/dist/index.js CHANGED
@@ -95065,23 +95065,11 @@ function displayScalar(value) {
95065
95065
  }
95066
95066
  return stringifyValue(value) || "\u2014";
95067
95067
  }
95068
- function isUrl(value) {
95069
- return typeof value === "string" && (value.startsWith("https://") || value.startsWith("http://"));
95070
- }
95071
- function compactUrl(value) {
95072
- try {
95073
- const url = new URL(value);
95074
- const tail = url.pathname.split("/").filter(Boolean).at(-1);
95075
- return tail ? `${url.hostname}/\u2026/${tail}` : url.hostname;
95076
- } catch {
95077
- return value;
95078
- }
95079
- }
95080
95068
  function stackedList(value) {
95081
95069
  return value.map((entry) => displayScalar(entry)).join("\n") || "\u2014";
95082
95070
  }
95083
95071
  function displayRowValue(value) {
95084
- return isUrl(value) ? compactUrl(value) : displayScalar(value);
95072
+ return displayScalar(value);
95085
95073
  }
95086
95074
  function directScalarRows(result) {
95087
95075
  return Object.entries(result).filter(([, value]) => !isObject4(value) && !Array.isArray(value)).map(([key3, value]) => ({ label: humanizeKey(key3), value: displayRowValue(value) }));
@@ -95929,6 +95917,9 @@ function isNegativeNumericArrayToken(token, schema) {
95929
95917
  return items.length > 0 && items.every((item) => isValidNumberSchemaValue(Number(item), itemSchema));
95930
95918
  }
95931
95919
  function isNextArrayOptionToken(token, schema) {
95920
+ if (token === "-" && unwrapOptional4(schema.item).kind === "string") {
95921
+ return false;
95922
+ }
95932
95923
  return token.startsWith("-") && !isNegativeNumericArrayToken(token, schema);
95933
95924
  }
95934
95925
  function validateArrayBounds(value, schema, label) {
@@ -99007,7 +98998,9 @@ function renderHttpError(error3, options) {
99007
98998
  } else {
99008
98999
  lines.push(`Response body: ${formatHttpErrorSnippet(error3.response.body)}`);
99009
99000
  }
99010
- lines.push("Re-run with --verbose to see headers and full body.");
99001
+ if (options.verboseControlEnabled) {
99002
+ lines.push("Re-run with --verbose to see headers and full body.");
99003
+ }
99011
99004
  }
99012
99005
  process.stderr.write(`${lines.join("\n")}
99013
99006
  `);
@@ -99499,6 +99492,7 @@ async function runCLI(roots, options = {}) {
99499
99492
  debugStackMode: controls.debug ? resolvedFlags !== void 0 ? resolveDebugStackMode(resolvedFlags.debug) : getDebugStackModeFromArgv(argv) : void 0,
99500
99493
  output: resolvedFlags !== void 0 ? resolveOutput(resolvedFlags) : resolveOutputFromArgv(argv, controls.outputFormats),
99501
99494
  verbose: resolvedFlags ? Boolean(resolvedFlags.verbose) : argv.includes("--verbose"),
99495
+ verboseControlEnabled: controls.verbose,
99502
99496
  program,
99503
99497
  argv,
99504
99498
  rootUsageName,
@@ -151634,7 +151628,7 @@ var init_package2 = __esm({
151634
151628
  "package.json"() {
151635
151629
  package_default2 = {
151636
151630
  name: "poe-code",
151637
- version: "4.0.31-beta.1",
151631
+ version: "4.0.31",
151638
151632
  description: "CLI tool to configure Poe API for developer workflows.",
151639
151633
  license: "MIT",
151640
151634
  type: "module",