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
|
@@ -628,6 +628,9 @@ function isNegativeNumericArrayToken(token, schema) {
|
|
|
628
628
|
return (items.length > 0 && items.every((item) => isValidNumberSchemaValue(Number(item), itemSchema)));
|
|
629
629
|
}
|
|
630
630
|
function isNextArrayOptionToken(token, schema) {
|
|
631
|
+
if (token === "-" && unwrapOptional(schema.item).kind === "string") {
|
|
632
|
+
return false;
|
|
633
|
+
}
|
|
631
634
|
return token.startsWith("-") && !isNegativeNumericArrayToken(token, schema);
|
|
632
635
|
}
|
|
633
636
|
function validateArrayBounds(value, schema, label) {
|
|
@@ -3595,7 +3598,9 @@ function renderHttpError(error, options) {
|
|
|
3595
3598
|
else {
|
|
3596
3599
|
lines.push(`Response body: ${formatHttpErrorSnippet(error.response.body)}`);
|
|
3597
3600
|
}
|
|
3598
|
-
|
|
3601
|
+
if (options.verboseControlEnabled) {
|
|
3602
|
+
lines.push("Re-run with --verbose to see headers and full body.");
|
|
3603
|
+
}
|
|
3599
3604
|
}
|
|
3600
3605
|
process.stderr.write(`${lines.join("\n")}\n`);
|
|
3601
3606
|
const stack = error instanceof Error ? error.stack : undefined;
|
|
@@ -4045,6 +4050,7 @@ export async function runCLI(roots, options = {}) {
|
|
|
4045
4050
|
? resolveOutput(resolvedFlags)
|
|
4046
4051
|
: resolveOutputFromArgv(argv, controls.outputFormats),
|
|
4047
4052
|
verbose: resolvedFlags ? Boolean(resolvedFlags.verbose) : argv.includes("--verbose"),
|
|
4053
|
+
verboseControlEnabled: controls.verbose,
|
|
4048
4054
|
program,
|
|
4049
4055
|
argv,
|
|
4050
4056
|
rootUsageName,
|
|
@@ -129,24 +129,11 @@ function displayScalar(value) {
|
|
|
129
129
|
}
|
|
130
130
|
return stringifyValue(value) || "—";
|
|
131
131
|
}
|
|
132
|
-
function isUrl(value) {
|
|
133
|
-
return typeof value === "string" && (value.startsWith("https://") || value.startsWith("http://"));
|
|
134
|
-
}
|
|
135
|
-
function compactUrl(value) {
|
|
136
|
-
try {
|
|
137
|
-
const url = new URL(value);
|
|
138
|
-
const tail = url.pathname.split("/").filter(Boolean).at(-1);
|
|
139
|
-
return tail ? `${url.hostname}/…/${tail}` : url.hostname;
|
|
140
|
-
}
|
|
141
|
-
catch {
|
|
142
|
-
return value;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
132
|
function stackedList(value) {
|
|
146
133
|
return value.map((entry) => displayScalar(entry)).join("\n") || "—";
|
|
147
134
|
}
|
|
148
135
|
function displayRowValue(value) {
|
|
149
|
-
return
|
|
136
|
+
return displayScalar(value);
|
|
150
137
|
}
|
|
151
138
|
function directScalarRows(result) {
|
|
152
139
|
return Object.entries(result)
|