niceeval 0.13.0 → 0.13.1

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 (41) hide show
  1. package/dist/cli.cjs +10 -1
  2. package/dist/cli.cjs.map +1 -1
  3. package/dist/report/execution/machine.cjs +1 -1
  4. package/dist/report/execution/machine.cjs.map +1 -1
  5. package/dist/report/host/execute.cjs +14 -4
  6. package/dist/report/host/execute.cjs.map +1 -1
  7. package/dist/report/host/execute.d.cts +5 -0
  8. package/dist/report/host/execute.d.mts +5 -0
  9. package/dist/report/host/execute.d.ts +5 -0
  10. package/dist/report/host/from-record.cjs +6 -1
  11. package/dist/report/host/from-record.cjs.map +1 -1
  12. package/dist/report/host/from-record.d.cts +5 -0
  13. package/dist/report/host/from-record.d.mts +5 -0
  14. package/dist/report/host/from-record.d.ts +5 -0
  15. package/dist/report/runtime/resolved-page.cjs +16 -6
  16. package/dist/report/runtime/resolved-page.cjs.map +1 -1
  17. package/dist/report/runtime/resolved-page.d.cts +3 -0
  18. package/dist/report/runtime/resolved-page.d.mts +3 -0
  19. package/dist/report/runtime/resolved-page.d.ts +3 -0
  20. package/dist/report/runtime/text.cjs +1 -0
  21. package/dist/report/runtime/text.cjs.map +1 -1
  22. package/dist/report/runtime/text.d.cts +4 -0
  23. package/dist/report/runtime/text.d.mts +4 -0
  24. package/dist/report/runtime/text.d.ts +4 -0
  25. package/docs-site/zh/explanation/runner.mdx +2 -2
  26. package/docs-site/zh/index.mdx +2 -2
  27. package/docs-site/zh/reference/cli.mdx +14 -14
  28. package/docs-site/zh/reference/events.mdx +1 -1
  29. package/docs-site/zh/troubleshooting/debugging.mdx +2 -2
  30. package/docs-site/zh/tutorials/agent-feedback-loop.mdx +2 -2
  31. package/docs-site/zh/tutorials/ci-integration.mdx +1 -1
  32. package/docs-site/zh/tutorials/connect-your-agent.mdx +2 -2
  33. package/docs-site/zh/tutorials/custom-reports.mdx +4 -4
  34. package/docs-site/zh/tutorials/deploy-report-site.mdx +3 -3
  35. package/docs-site/zh/tutorials/experiments.mdx +2 -2
  36. package/docs-site/zh/tutorials/handle-execution-failures.mdx +1 -1
  37. package/docs-site/zh/tutorials/install-custom-sandbox-agent.mdx +1 -1
  38. package/docs-site/zh/tutorials/publish-report.mdx +4 -4
  39. package/docs-site/zh/tutorials/reporters.mdx +1 -1
  40. package/docs-site/zh/tutorials/viewing-results.mdx +9 -9
  41. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -47,6 +47,7 @@ const from_record_ts_1 = require("./report/host/from-record.cjs");
47
47
  const execute_ts_1 = require("./report/host/execute.cjs");
48
48
  const paths_ts_1 = require("./report/execution/paths.cjs");
49
49
  const index_ts_3 = require("./report/host/index.cjs");
50
+ const panel_ts_1 = require("./report/model/panel.cjs");
50
51
  const progress_ts_1 = require("./report/host/progress.cjs");
51
52
  const static_ts_1 = require("./report/host/static.cjs");
52
53
  const node_ts_1 = require("./report/host/node.cjs");
@@ -2176,7 +2177,7 @@ function reportExecutionFailure(error) {
2176
2177
  case "record-bootstrap-invalid":
2177
2178
  return usageError("record-bootstrap-invalid\nPass --record <actual-record-root> or create a current NiceEval Record.\n");
2178
2179
  case "record-format-unsupported":
2179
- return usageError("record-format-unsupported\nUse a NiceEval version that supports this Record format.\n");
2180
+ return usageError("record-format-unsupported\nThis Record was created by a NiceEval version that is no longer supported. Remove .niceeval (for example, rm -rf .niceeval) and rerun the evaluation.\n");
2180
2181
  case "record-migration-interrupted":
2181
2182
  return usageError("record-migration-interrupted\nRestore the Record from Git or a backup before retrying.\n");
2182
2183
  case "report-route-invalid":
@@ -2381,12 +2382,19 @@ function runShowCommand(cwd, positionals, flags) {
2381
2382
  catch: (cause) => cliFailure("parse show arguments", cause),
2382
2383
  });
2383
2384
  const inputs = yield* withCliReportPhase(progress, "Load project, config, Report, and Theme", loadCliReportInputs(request));
2385
+ const textProjection = flags.json
2386
+ ? undefined
2387
+ : (0, panel_ts_1.panelCapabilityOf)({
2388
+ isTTY: process.stdout.isTTY,
2389
+ width: process.stdout.columns,
2390
+ });
2384
2391
  const show = request.target.kind === "attempt"
2385
2392
  ? index_ts_3.reportHost.show({
2386
2393
  root: request.root,
2387
2394
  locator: request.target.locator,
2388
2395
  report: inputs.report,
2389
2396
  ...(request.page === undefined ? {} : { route: request.page }),
2397
+ ...(textProjection === undefined ? {} : { textProjection: { width: textProjection.width, panelMode: textProjection.mode } }),
2390
2398
  format: flags.json ? "json" : "text",
2391
2399
  })
2392
2400
  : index_ts_3.reportHost.show({
@@ -2396,6 +2404,7 @@ function runShowCommand(cwd, positionals, flags) {
2396
2404
  : inputs.projectCurrentSelection,
2397
2405
  report: inputs.report,
2398
2406
  ...(request.page === undefined ? {} : { route: request.page }),
2407
+ ...(textProjection === undefined ? {} : { textProjection: { width: textProjection.width, panelMode: textProjection.mode } }),
2399
2408
  format: flags.json ? "json" : "text",
2400
2409
  });
2401
2410
  const output = yield* show.pipe(effect_1.Effect.provideService(progress_ts_1.ReportHostProgressObserver, makeCliReportProgress(request.rootPath, progress)), effect_1.Effect.mapError(reportExecutionFailure));