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.
Files changed (35) hide show
  1. package/dist/cli/commands/traces.js +3 -1
  2. package/dist/cli/commands/traces.js.map +1 -1
  3. package/dist/index.js +1815 -1275
  4. package/dist/index.js.map +4 -4
  5. package/dist/metafile.json +1 -1
  6. package/package.json +1 -1
  7. package/packages/agent-trace-viewer/dist/index.d.ts +2 -2
  8. package/packages/agent-trace-viewer/dist/index.js +1 -1
  9. package/packages/agent-trace-viewer/dist/loader.d.ts +1 -0
  10. package/packages/agent-trace-viewer/dist/loader.js +90 -6
  11. package/packages/agent-trace-viewer/dist/run.d.ts +2 -0
  12. package/packages/agent-trace-viewer/dist/run.js +43 -11
  13. package/packages/agent-trace-viewer/dist/types.d.ts +9 -0
  14. package/packages/agent-traces/dist/collect.js +36 -8
  15. package/packages/agent-traces/dist/index-store/concurrency.d.ts +1 -0
  16. package/packages/agent-traces/dist/index-store/concurrency.js +16 -0
  17. package/packages/agent-traces/dist/index-store/head.d.ts +3 -0
  18. package/packages/agent-traces/dist/index-store/head.js +19 -0
  19. package/packages/agent-traces/dist/index-store/store.d.ts +45 -0
  20. package/packages/agent-traces/dist/index-store/store.js +263 -0
  21. package/packages/agent-traces/dist/index.d.ts +3 -1
  22. package/packages/agent-traces/dist/index.js +1 -0
  23. package/packages/agent-traces/dist/readers/claude.js +25 -6
  24. package/packages/agent-traces/dist/readers/pi.js +61 -10
  25. package/packages/agent-traces/dist/readers/poe-code.js +27 -9
  26. package/packages/agent-traces/dist/types.d.ts +18 -0
  27. package/packages/terminal-pilot/dist/cli.js +8 -14
  28. package/packages/terminal-pilot/dist/cli.js.map +2 -2
  29. package/packages/terminal-pilot/dist/testing/cli-repl.js +8 -14
  30. package/packages/terminal-pilot/dist/testing/cli-repl.js.map +2 -2
  31. package/packages/terminal-pilot/dist/testing/qa-cli.js +8 -14
  32. package/packages/terminal-pilot/dist/testing/qa-cli.js.map +2 -2
  33. package/packages/toolcraft/dist/cli.js +7 -1
  34. package/packages/toolcraft/dist/renderer.js +1 -14
  35. 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 isUrl(value) ? compactUrl(value) : displayScalar(value);
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
- lines.push("Re-run with --verbose to see headers and full body.");
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,