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 +9 -15
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/terminal-pilot/dist/cli.js +8 -14
- package/packages/terminal-pilot/dist/cli.js.map +2 -2
- package/packages/terminal-pilot/dist/testing/cli-repl.js +8 -14
- package/packages/terminal-pilot/dist/testing/cli-repl.js.map +2 -2
- package/packages/terminal-pilot/dist/testing/qa-cli.js +8 -14
- package/packages/terminal-pilot/dist/testing/qa-cli.js.map +2 -2
- package/packages/toolcraft/dist/cli.js +7 -1
- package/packages/toolcraft/dist/renderer.js +1 -14
- package/packages/toolcraft-openapi/dist/generate.js +1 -0
|
@@ -5354,23 +5354,11 @@ function displayScalar(value) {
|
|
|
5354
5354
|
}
|
|
5355
5355
|
return stringifyValue(value) || "\u2014";
|
|
5356
5356
|
}
|
|
5357
|
-
function isUrl(value) {
|
|
5358
|
-
return typeof value === "string" && (value.startsWith("https://") || value.startsWith("http://"));
|
|
5359
|
-
}
|
|
5360
|
-
function compactUrl(value) {
|
|
5361
|
-
try {
|
|
5362
|
-
const url = new URL(value);
|
|
5363
|
-
const tail = url.pathname.split("/").filter(Boolean).at(-1);
|
|
5364
|
-
return tail ? `${url.hostname}/\u2026/${tail}` : url.hostname;
|
|
5365
|
-
} catch {
|
|
5366
|
-
return value;
|
|
5367
|
-
}
|
|
5368
|
-
}
|
|
5369
5357
|
function stackedList(value) {
|
|
5370
5358
|
return value.map((entry) => displayScalar(entry)).join("\n") || "\u2014";
|
|
5371
5359
|
}
|
|
5372
5360
|
function displayRowValue(value) {
|
|
5373
|
-
return
|
|
5361
|
+
return displayScalar(value);
|
|
5374
5362
|
}
|
|
5375
5363
|
function directScalarRows(result) {
|
|
5376
5364
|
return Object.entries(result).filter(([, value]) => !isObject2(value) && !Array.isArray(value)).map(([key, value]) => ({ label: humanizeKey(key), value: displayRowValue(value) }));
|
|
@@ -6342,6 +6330,9 @@ function isNegativeNumericArrayToken(token, schema) {
|
|
|
6342
6330
|
return items.length > 0 && items.every((item) => isValidNumberSchemaValue(Number(item), itemSchema));
|
|
6343
6331
|
}
|
|
6344
6332
|
function isNextArrayOptionToken(token, schema) {
|
|
6333
|
+
if (token === "-" && unwrapOptional2(schema.item).kind === "string") {
|
|
6334
|
+
return false;
|
|
6335
|
+
}
|
|
6345
6336
|
return token.startsWith("-") && !isNegativeNumericArrayToken(token, schema);
|
|
6346
6337
|
}
|
|
6347
6338
|
function validateArrayBounds(value, schema, label) {
|
|
@@ -9423,7 +9414,9 @@ function renderHttpError(error3, options) {
|
|
|
9423
9414
|
} else {
|
|
9424
9415
|
lines.push(`Response body: ${formatHttpErrorSnippet(error3.response.body)}`);
|
|
9425
9416
|
}
|
|
9426
|
-
|
|
9417
|
+
if (options.verboseControlEnabled) {
|
|
9418
|
+
lines.push("Re-run with --verbose to see headers and full body.");
|
|
9419
|
+
}
|
|
9427
9420
|
}
|
|
9428
9421
|
process.stderr.write(`${lines.join("\n")}
|
|
9429
9422
|
`);
|
|
@@ -9915,6 +9908,7 @@ async function runCLI(roots, options = {}) {
|
|
|
9915
9908
|
debugStackMode: controls.debug ? resolvedFlags !== void 0 ? resolveDebugStackMode(resolvedFlags.debug) : getDebugStackModeFromArgv(argv) : void 0,
|
|
9916
9909
|
output: resolvedFlags !== void 0 ? resolveOutput(resolvedFlags) : resolveOutputFromArgv(argv, controls.outputFormats),
|
|
9917
9910
|
verbose: resolvedFlags ? Boolean(resolvedFlags.verbose) : argv.includes("--verbose"),
|
|
9911
|
+
verboseControlEnabled: controls.verbose,
|
|
9918
9912
|
program,
|
|
9919
9913
|
argv,
|
|
9920
9914
|
rootUsageName,
|