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
@@ -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
- lines.push("Re-run with --verbose to see headers and full body.");
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 isUrl(value) ? compactUrl(value) : displayScalar(value);
136
+ return displayScalar(value);
150
137
  }
151
138
  function directScalarRows(result) {
152
139
  return Object.entries(result)
@@ -1951,6 +1951,7 @@ function createCliFile(theme) {
1951
1951
  " await runCLI(client.root, {",
1952
1952
  " ...options,",
1953
1953
  " services: client.services,",
1954
+ " controls: { output: true, verbose: true, ...options.controls },",
1954
1955
  " });",
1955
1956
  "}",
1956
1957
  ""