poe-code 4.0.31-beta.1 → 4.0.32
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/cli/commands/traces.js +3 -1
- package/dist/cli/commands/traces.js.map +1 -1
- package/dist/index.js +1815 -1275
- package/dist/index.js.map +4 -4
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/agent-trace-viewer/dist/index.d.ts +2 -2
- package/packages/agent-trace-viewer/dist/index.js +1 -1
- package/packages/agent-trace-viewer/dist/loader.d.ts +1 -0
- package/packages/agent-trace-viewer/dist/loader.js +90 -6
- package/packages/agent-trace-viewer/dist/run.d.ts +2 -0
- package/packages/agent-trace-viewer/dist/run.js +43 -11
- package/packages/agent-trace-viewer/dist/types.d.ts +9 -0
- package/packages/agent-traces/dist/collect.js +36 -8
- package/packages/agent-traces/dist/index-store/concurrency.d.ts +1 -0
- package/packages/agent-traces/dist/index-store/concurrency.js +16 -0
- package/packages/agent-traces/dist/index-store/head.d.ts +3 -0
- package/packages/agent-traces/dist/index-store/head.js +19 -0
- package/packages/agent-traces/dist/index-store/store.d.ts +45 -0
- package/packages/agent-traces/dist/index-store/store.js +263 -0
- package/packages/agent-traces/dist/index.d.ts +3 -1
- package/packages/agent-traces/dist/index.js +1 -0
- package/packages/agent-traces/dist/readers/claude.js +25 -6
- package/packages/agent-traces/dist/readers/pi.js +61 -10
- package/packages/agent-traces/dist/readers/poe-code.js +27 -9
- package/packages/agent-traces/dist/types.d.ts +18 -0
- 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
|
@@ -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
|
|
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
|
-
|
|
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,
|