niceeval 0.13.1 → 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 (134) 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/i18n/en.cjs +7 -2
  46. package/dist/i18n/en.cjs.map +1 -1
  47. package/dist/i18n/en.d.cts +7 -2
  48. package/dist/i18n/en.d.mts +7 -2
  49. package/dist/i18n/en.d.ts +7 -2
  50. package/dist/o11y/parsers/hermes.cjs +1 -1
  51. package/dist/o11y/parsers/hermes.cjs.map +1 -1
  52. package/dist/report/built-in/analysis-values.cjs +21 -5
  53. package/dist/report/built-in/analysis-values.cjs.map +1 -1
  54. package/dist/report/built-in/analysis-values.d.cts +11 -9
  55. package/dist/report/built-in/analysis-values.d.mts +11 -9
  56. package/dist/report/built-in/analysis-values.d.ts +11 -9
  57. package/dist/report/built-in/overview.cjs +1 -0
  58. package/dist/report/built-in/overview.cjs.map +1 -1
  59. package/dist/report/built-in/result-components.cjs +58 -12
  60. package/dist/report/built-in/result-components.cjs.map +1 -1
  61. package/dist/report/built-in/result-components.d.cts +15 -0
  62. package/dist/report/built-in/result-components.d.mts +15 -0
  63. package/dist/report/built-in/result-components.d.ts +15 -0
  64. package/dist/report/built-in/run-membership-overview.cjs +100 -4
  65. package/dist/report/built-in/run-membership-overview.cjs.map +1 -1
  66. package/dist/report/built-in/standard.cjs +1 -0
  67. package/dist/report/built-in/standard.cjs.map +1 -1
  68. package/dist/report/built-in/standard.d.cts +1 -0
  69. package/dist/report/built-in/standard.d.mts +1 -0
  70. package/dist/report/built-in/standard.d.ts +1 -0
  71. package/dist/report/components/entity-lists/compute.cjs +40 -3
  72. package/dist/report/components/entity-lists/compute.cjs.map +1 -1
  73. package/dist/report/components/entity-lists/compute.d.cts +8 -6
  74. package/dist/report/components/entity-lists/compute.d.mts +8 -6
  75. package/dist/report/components/entity-lists/compute.d.ts +8 -6
  76. package/dist/report/components/entity-lists/content.cjs +31 -6
  77. package/dist/report/components/entity-lists/content.cjs.map +1 -1
  78. package/dist/report/components/entity-lists/index.cjs +3 -2
  79. package/dist/report/components/entity-lists/index.cjs.map +1 -1
  80. package/dist/report/components/entity-lists/index.d.cts +1 -1
  81. package/dist/report/components/entity-lists/index.d.mts +1 -1
  82. package/dist/report/components/entity-lists/index.d.ts +1 -1
  83. package/dist/report/definition/cell.cjs +3 -0
  84. package/dist/report/definition/cell.cjs.map +1 -1
  85. package/dist/report/definition/cell.d.cts +2 -0
  86. package/dist/report/definition/cell.d.mts +2 -0
  87. package/dist/report/definition/cell.d.ts +2 -0
  88. package/dist/report/definition/primitives.cjs +9 -2
  89. package/dist/report/definition/primitives.cjs.map +1 -1
  90. package/dist/runner/feedback/human.cjs +180 -16
  91. package/dist/runner/feedback/human.cjs.map +1 -1
  92. package/dist/runner/run.cjs +43 -0
  93. package/dist/runner/run.cjs.map +1 -1
  94. package/dist/sample/capability.cjs +93 -0
  95. package/dist/sample/capability.cjs.map +1 -1
  96. package/dist/sample/capability.d.cts +3 -1
  97. package/dist/sample/capability.d.mts +3 -1
  98. package/dist/sample/capability.d.ts +3 -1
  99. package/dist/sample/capability.js +8 -6
  100. package/dist/sandbox/docker-agent-image.cjs +5 -1
  101. package/dist/sandbox/docker-agent-image.cjs.map +1 -1
  102. package/dist/sandbox/docker-agent-image.d.cts +2 -0
  103. package/dist/sandbox/docker-agent-image.d.mts +2 -0
  104. package/dist/sandbox/docker-agent-image.d.ts +2 -0
  105. package/dist/sandbox/docker-agent-image.js +14 -10
  106. package/dist/sandbox/index.cjs +4 -2
  107. package/dist/sandbox/index.cjs.map +1 -1
  108. package/dist/sandbox/index.d.cts +1 -1
  109. package/dist/sandbox/index.d.mts +1 -1
  110. package/dist/sandbox/index.d.ts +1 -1
  111. package/dist/sandbox/index.js +120 -116
  112. package/dist/sandbox/index.mjs +120 -116
  113. package/docs-site/images/hitl-handshake-zh.svg +3 -3
  114. package/docs-site/zh/examples/integrations/ai-sdk-v7.mdx +3 -3
  115. package/docs-site/zh/examples/integrations/claude-sdk.mdx +3 -3
  116. package/docs-site/zh/examples/integrations/codex-sdk.mdx +5 -5
  117. package/docs-site/zh/examples/integrations/langgraph.mdx +3 -3
  118. package/docs-site/zh/examples/integrations/pi-sdk.mdx +5 -5
  119. package/docs-site/zh/explanation/adapter.mdx +5 -5
  120. package/docs-site/zh/explanation/assert.mdx +1 -1
  121. package/docs-site/zh/explanation/drive.mdx +3 -1
  122. package/docs-site/zh/explanation/evals.mdx +3 -1
  123. package/docs-site/zh/explanation/hitl.mdx +7 -7
  124. package/docs-site/zh/reference/builtin-agents.mdx +4 -4
  125. package/docs-site/zh/reference/capabilities.mdx +1 -1
  126. package/docs-site/zh/reference/events.mdx +10 -10
  127. package/docs-site/zh/reference/official-adapters.mdx +1 -1
  128. package/docs-site/zh/reference/results-data.mdx +6 -0
  129. package/docs-site/zh/tutorials/docker-in-docker.mdx +3 -0
  130. package/docs-site/zh/tutorials/nixos-managed-dind.mdx +160 -0
  131. package/docs-site/zh/tutorials/rerun-and-cache.mdx +16 -0
  132. package/docs-site/zh/tutorials/viewing-results.mdx +19 -1
  133. package/docs-site/zh/tutorials/write-send.mdx +7 -6
  134. 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.