niceeval 0.13.0 → 0.13.2-canary.35

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 (172) hide show
  1. package/INDEX.md +1 -0
  2. package/README.md +9 -10
  3. package/README.zh.md +9 -10
  4. package/dist/agents/ai-sdk.cjs.map +1 -1
  5. package/dist/agents/ai-sdk.d.cts +1 -1
  6. package/dist/agents/ai-sdk.d.mts +1 -1
  7. package/dist/agents/ai-sdk.d.ts +1 -1
  8. package/dist/agents/coding-cli-versions.cjs +10 -1
  9. package/dist/agents/coding-cli-versions.cjs.map +1 -1
  10. package/dist/agents/coding-cli-versions.d.cts +8 -3
  11. package/dist/agents/coding-cli-versions.d.mts +8 -3
  12. package/dist/agents/coding-cli-versions.d.ts +8 -3
  13. package/dist/agents/coding-cli-versions.js +18 -12
  14. package/dist/agents/deepseek-harness.cjs +103 -0
  15. package/dist/agents/deepseek-harness.cjs.map +1 -0
  16. package/dist/agents/deepseek-harness.d.cts +12 -0
  17. package/dist/agents/deepseek-harness.d.mts +12 -0
  18. package/dist/agents/deepseek-harness.d.ts +12 -0
  19. package/dist/agents/deepseek-harness.js +7 -0
  20. package/dist/agents/deepseek-harness.js.map +1 -0
  21. package/dist/agents/index.cjs +5 -1
  22. package/dist/agents/index.cjs.map +1 -1
  23. package/dist/agents/index.d.cts +4 -0
  24. package/dist/agents/index.d.mts +4 -0
  25. package/dist/agents/index.d.ts +4 -0
  26. package/dist/agents/index.js +54 -50
  27. package/dist/agents/index.mjs +54 -50
  28. package/dist/agents/omp.cjs +170 -0
  29. package/dist/agents/omp.cjs.map +1 -0
  30. package/dist/agents/omp.d.cts +14 -0
  31. package/dist/agents/omp.d.mts +14 -0
  32. package/dist/agents/omp.d.ts +14 -0
  33. package/dist/agents/omp.js +7 -0
  34. package/dist/agents/omp.js.map +1 -0
  35. package/dist/agents/types.cjs.map +1 -1
  36. package/dist/agents/types.d.cts +2 -2
  37. package/dist/agents/types.d.mts +2 -2
  38. package/dist/agents/types.d.ts +2 -2
  39. package/dist/analysis/api.cjs +9 -1
  40. package/dist/analysis/api.cjs.map +1 -1
  41. package/dist/analysis/api.d.cts +21 -0
  42. package/dist/analysis/api.d.mts +21 -0
  43. package/dist/analysis/api.d.ts +21 -0
  44. package/dist/analysis/api.js +8 -6
  45. package/dist/cli.cjs +10 -1
  46. package/dist/cli.cjs.map +1 -1
  47. package/dist/i18n/en.cjs +7 -2
  48. package/dist/i18n/en.cjs.map +1 -1
  49. package/dist/i18n/en.d.cts +7 -2
  50. package/dist/i18n/en.d.mts +7 -2
  51. package/dist/i18n/en.d.ts +7 -2
  52. package/dist/o11y/parsers/hermes.cjs +1 -1
  53. package/dist/o11y/parsers/hermes.cjs.map +1 -1
  54. package/dist/report/built-in/analysis-values.cjs +21 -5
  55. package/dist/report/built-in/analysis-values.cjs.map +1 -1
  56. package/dist/report/built-in/analysis-values.d.cts +11 -9
  57. package/dist/report/built-in/analysis-values.d.mts +11 -9
  58. package/dist/report/built-in/analysis-values.d.ts +11 -9
  59. package/dist/report/built-in/overview.cjs +1 -0
  60. package/dist/report/built-in/overview.cjs.map +1 -1
  61. package/dist/report/built-in/result-components.cjs +58 -12
  62. package/dist/report/built-in/result-components.cjs.map +1 -1
  63. package/dist/report/built-in/result-components.d.cts +15 -0
  64. package/dist/report/built-in/result-components.d.mts +15 -0
  65. package/dist/report/built-in/result-components.d.ts +15 -0
  66. package/dist/report/built-in/run-membership-overview.cjs +100 -4
  67. package/dist/report/built-in/run-membership-overview.cjs.map +1 -1
  68. package/dist/report/built-in/standard.cjs +1 -0
  69. package/dist/report/built-in/standard.cjs.map +1 -1
  70. package/dist/report/built-in/standard.d.cts +1 -0
  71. package/dist/report/built-in/standard.d.mts +1 -0
  72. package/dist/report/built-in/standard.d.ts +1 -0
  73. package/dist/report/components/entity-lists/compute.cjs +40 -3
  74. package/dist/report/components/entity-lists/compute.cjs.map +1 -1
  75. package/dist/report/components/entity-lists/compute.d.cts +8 -6
  76. package/dist/report/components/entity-lists/compute.d.mts +8 -6
  77. package/dist/report/components/entity-lists/compute.d.ts +8 -6
  78. package/dist/report/components/entity-lists/content.cjs +31 -6
  79. package/dist/report/components/entity-lists/content.cjs.map +1 -1
  80. package/dist/report/components/entity-lists/index.cjs +3 -2
  81. package/dist/report/components/entity-lists/index.cjs.map +1 -1
  82. package/dist/report/components/entity-lists/index.d.cts +1 -1
  83. package/dist/report/components/entity-lists/index.d.mts +1 -1
  84. package/dist/report/components/entity-lists/index.d.ts +1 -1
  85. package/dist/report/definition/cell.cjs +3 -0
  86. package/dist/report/definition/cell.cjs.map +1 -1
  87. package/dist/report/definition/cell.d.cts +2 -0
  88. package/dist/report/definition/cell.d.mts +2 -0
  89. package/dist/report/definition/cell.d.ts +2 -0
  90. package/dist/report/definition/primitives.cjs +9 -2
  91. package/dist/report/definition/primitives.cjs.map +1 -1
  92. package/dist/report/execution/machine.cjs +1 -1
  93. package/dist/report/execution/machine.cjs.map +1 -1
  94. package/dist/report/host/execute.cjs +14 -4
  95. package/dist/report/host/execute.cjs.map +1 -1
  96. package/dist/report/host/execute.d.cts +5 -0
  97. package/dist/report/host/execute.d.mts +5 -0
  98. package/dist/report/host/execute.d.ts +5 -0
  99. package/dist/report/host/from-record.cjs +6 -1
  100. package/dist/report/host/from-record.cjs.map +1 -1
  101. package/dist/report/host/from-record.d.cts +5 -0
  102. package/dist/report/host/from-record.d.mts +5 -0
  103. package/dist/report/host/from-record.d.ts +5 -0
  104. package/dist/report/runtime/resolved-page.cjs +16 -6
  105. package/dist/report/runtime/resolved-page.cjs.map +1 -1
  106. package/dist/report/runtime/resolved-page.d.cts +3 -0
  107. package/dist/report/runtime/resolved-page.d.mts +3 -0
  108. package/dist/report/runtime/resolved-page.d.ts +3 -0
  109. package/dist/report/runtime/text.cjs +1 -0
  110. package/dist/report/runtime/text.cjs.map +1 -1
  111. package/dist/report/runtime/text.d.cts +4 -0
  112. package/dist/report/runtime/text.d.mts +4 -0
  113. package/dist/report/runtime/text.d.ts +4 -0
  114. package/dist/runner/feedback/human.cjs +180 -16
  115. package/dist/runner/feedback/human.cjs.map +1 -1
  116. package/dist/runner/run.cjs +43 -0
  117. package/dist/runner/run.cjs.map +1 -1
  118. package/dist/sample/capability.cjs +93 -0
  119. package/dist/sample/capability.cjs.map +1 -1
  120. package/dist/sample/capability.d.cts +3 -1
  121. package/dist/sample/capability.d.mts +3 -1
  122. package/dist/sample/capability.d.ts +3 -1
  123. package/dist/sample/capability.js +8 -6
  124. package/dist/sandbox/docker-agent-image.cjs +5 -1
  125. package/dist/sandbox/docker-agent-image.cjs.map +1 -1
  126. package/dist/sandbox/docker-agent-image.d.cts +2 -0
  127. package/dist/sandbox/docker-agent-image.d.mts +2 -0
  128. package/dist/sandbox/docker-agent-image.d.ts +2 -0
  129. package/dist/sandbox/docker-agent-image.js +14 -10
  130. package/dist/sandbox/index.cjs +4 -2
  131. package/dist/sandbox/index.cjs.map +1 -1
  132. package/dist/sandbox/index.d.cts +1 -1
  133. package/dist/sandbox/index.d.mts +1 -1
  134. package/dist/sandbox/index.d.ts +1 -1
  135. package/dist/sandbox/index.js +120 -116
  136. package/dist/sandbox/index.mjs +120 -116
  137. package/docs-site/images/hitl-handshake-zh.svg +3 -3
  138. package/docs-site/zh/examples/integrations/ai-sdk-v7.mdx +3 -3
  139. package/docs-site/zh/examples/integrations/claude-sdk.mdx +3 -3
  140. package/docs-site/zh/examples/integrations/codex-sdk.mdx +5 -5
  141. package/docs-site/zh/examples/integrations/langgraph.mdx +3 -3
  142. package/docs-site/zh/examples/integrations/pi-sdk.mdx +5 -5
  143. package/docs-site/zh/explanation/adapter.mdx +5 -5
  144. package/docs-site/zh/explanation/assert.mdx +1 -1
  145. package/docs-site/zh/explanation/drive.mdx +3 -1
  146. package/docs-site/zh/explanation/evals.mdx +3 -1
  147. package/docs-site/zh/explanation/hitl.mdx +7 -7
  148. package/docs-site/zh/explanation/runner.mdx +2 -2
  149. package/docs-site/zh/index.mdx +2 -2
  150. package/docs-site/zh/reference/builtin-agents.mdx +4 -4
  151. package/docs-site/zh/reference/capabilities.mdx +1 -1
  152. package/docs-site/zh/reference/cli.mdx +14 -14
  153. package/docs-site/zh/reference/events.mdx +11 -11
  154. package/docs-site/zh/reference/official-adapters.mdx +1 -1
  155. package/docs-site/zh/reference/results-data.mdx +6 -0
  156. package/docs-site/zh/troubleshooting/debugging.mdx +2 -2
  157. package/docs-site/zh/tutorials/agent-feedback-loop.mdx +2 -2
  158. package/docs-site/zh/tutorials/ci-integration.mdx +1 -1
  159. package/docs-site/zh/tutorials/connect-your-agent.mdx +2 -2
  160. package/docs-site/zh/tutorials/custom-reports.mdx +4 -4
  161. package/docs-site/zh/tutorials/deploy-report-site.mdx +3 -3
  162. package/docs-site/zh/tutorials/docker-in-docker.mdx +3 -0
  163. package/docs-site/zh/tutorials/experiments.mdx +2 -2
  164. package/docs-site/zh/tutorials/handle-execution-failures.mdx +1 -1
  165. package/docs-site/zh/tutorials/install-custom-sandbox-agent.mdx +1 -1
  166. package/docs-site/zh/tutorials/nixos-managed-dind.mdx +160 -0
  167. package/docs-site/zh/tutorials/publish-report.mdx +4 -4
  168. package/docs-site/zh/tutorials/reporters.mdx +1 -1
  169. package/docs-site/zh/tutorials/rerun-and-cache.mdx +16 -0
  170. package/docs-site/zh/tutorials/viewing-results.mdx +28 -10
  171. package/docs-site/zh/tutorials/write-send.mdx +7 -6
  172. package/package.json +1 -1
@@ -48,6 +48,40 @@ function feedbackIdentity(a) {
48
48
  function feedbackWho(a) {
49
49
  return (0, types_ts_1.runWho)({ agentName: a.run.agent.name, model: a.run.model, experimentId: a.run.experimentId });
50
50
  }
51
+ const SHARED_BUILD_FAILURE_DIAGNOSTIC = "sandbox-build-failed";
52
+ function sharedBuildFailureRoot(error) {
53
+ const codeMatch = /\bERR_[A-Z0-9_]+\b/u.exec(error.message);
54
+ const code = codeMatch?.[0] ?? error.code;
55
+ const focused = codeMatch === null
56
+ ? error.message.slice(-600)
57
+ : error.message.slice(codeMatch.index, codeMatch.index + 600);
58
+ return { code, message: focused.trim() || error.message.slice(-600).trim() || error.code };
59
+ }
60
+ function sharedBuildFailureDetail(a, error) {
61
+ const failureId = error.origin.scope === "run"
62
+ ? error.origin.timingNodeId
63
+ : `${error.code}:${a.evalDef.id}`;
64
+ const root = sharedBuildFailureRoot(error);
65
+ let message = root.message;
66
+ const encode = () => JSON.stringify({
67
+ schema: "niceeval.shared-build-failure/v1",
68
+ failureId,
69
+ evalId: a.evalDef.id,
70
+ attemptOrdinal: a.attempt,
71
+ phase: "sandbox.image.build",
72
+ errorCode: root.code,
73
+ message,
74
+ ...(root.code === "ERR_PNPM_IGNORED_BUILDS"
75
+ ? { remediation: "pnpm-allow-builds" }
76
+ : {}),
77
+ });
78
+ let encoded = encode();
79
+ while (new TextEncoder().encode(encoded).byteLength > 1000 && message.length > 0) {
80
+ message = message.slice(0, Math.floor(message.length * 0.75));
81
+ encoded = encode();
82
+ }
83
+ return encoded;
84
+ }
51
85
  function attemptIdentityKey(experimentId, agentName, model, evalId) {
52
86
  return JSON.stringify([experimentId, agentName, model ?? null, evalId]);
53
87
  }
@@ -1809,6 +1843,15 @@ function runEvals(opts) {
1809
1843
  : undefined;
1810
1844
  if (blockedError !== undefined)
1811
1845
  cancelReuseAttempt(a, true);
1846
+ if (buildFailure !== undefined) {
1847
+ recordExperimentDiagnostic({
1848
+ experimentId: a.run.experimentId,
1849
+ code: SHARED_BUILD_FAILURE_DIAGNOSTIC,
1850
+ level: "error",
1851
+ message: sharedBuildFailureDetail(a, buildFailure),
1852
+ phase: "sandbox.queue",
1853
+ });
1854
+ }
1812
1855
  // A scheduler-admitted Attempt owns a durable identity before any
1813
1856
  // attempt-owned sandbox, Agent, or Eval work begins. Reservation
1814
1857
  // failure is invocation-fatal at the Record publish gate.