niceeval 0.13.4-canary.48 → 0.14.0

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 (108) hide show
  1. package/INDEX.md +3 -3
  2. package/dist/experiment/host/operations.cjs +58 -0
  3. package/dist/experiment/host/operations.cjs.map +1 -1
  4. package/dist/inspection/overview.cjs +20 -9
  5. package/dist/inspection/overview.cjs.map +1 -1
  6. package/dist/inspection/overview.d.cts +5 -0
  7. package/dist/inspection/overview.d.mts +5 -0
  8. package/dist/inspection/overview.d.ts +5 -0
  9. package/dist/inspection/protocol.d.cts +238 -0
  10. package/dist/inspection/protocol.d.mts +238 -0
  11. package/dist/inspection/protocol.d.ts +238 -0
  12. package/dist/inspection/public.mjs +43 -19
  13. package/dist/inspection/results.cjs +11 -10
  14. package/dist/inspection/results.cjs.map +1 -1
  15. package/dist/inspection/results.d.cts +34 -0
  16. package/dist/inspection/results.d.mts +34 -0
  17. package/dist/inspection/results.d.ts +34 -0
  18. package/dist/record/attachment/protocol.cjs +10 -5
  19. package/dist/record/attachment/protocol.cjs.map +1 -1
  20. package/dist/record/attachment/protocol.d.cts +4 -0
  21. package/dist/record/attachment/protocol.d.mts +4 -0
  22. package/dist/record/attachment/protocol.d.ts +4 -0
  23. package/dist/record/family/source-receipt/index.cjs +16 -3
  24. package/dist/record/family/source-receipt/index.cjs.map +1 -1
  25. package/dist/record/family/source-receipt/index.d.cts +1 -0
  26. package/dist/record/family/source-receipt/index.d.mts +1 -0
  27. package/dist/record/family/source-receipt/index.d.ts +1 -0
  28. package/dist/record/family/source-receipt/index.js +2 -0
  29. package/dist/record/host/sqlite-host.cjs +3 -0
  30. package/dist/record/host/sqlite-host.cjs.map +1 -1
  31. package/dist/record/host/types.cjs.map +1 -1
  32. package/dist/record/host/types.d.cts +3 -1
  33. package/dist/record/host/types.d.mts +3 -1
  34. package/dist/record/host/types.d.ts +3 -1
  35. package/dist/record/sqlite/storage.cjs +11 -8
  36. package/dist/record/sqlite/storage.cjs.map +1 -1
  37. package/dist/record/writer/current-attachment.cjs +18 -13
  38. package/dist/record/writer/current-attachment.cjs.map +1 -1
  39. package/dist/record/writer/errors.cjs +6 -1
  40. package/dist/record/writer/errors.cjs.map +1 -1
  41. package/dist/record/writer/errors.d.cts +7 -1
  42. package/dist/record/writer/errors.d.mts +7 -1
  43. package/dist/record/writer/errors.d.ts +7 -1
  44. package/dist/runner/adoption.cjs +1 -1
  45. package/dist/runner/adoption.cjs.map +1 -1
  46. package/dist/runner/reuse-plan.cjs +1 -1
  47. package/dist/runner/reuse-plan.cjs.map +1 -1
  48. package/dist/runner/source-receipts/support.cjs +2 -1
  49. package/dist/runner/source-receipts/support.cjs.map +1 -1
  50. package/dist/runner/source-receipts/support.d.cts +1 -1
  51. package/dist/runner/source-receipts/support.d.mts +1 -1
  52. package/dist/runner/source-receipts/support.d.ts +1 -1
  53. package/dist/show/contribution.cjs +11 -2
  54. package/dist/show/contribution.cjs.map +1 -1
  55. package/dist/show/contribution.d.cts +7 -0
  56. package/dist/show/contribution.d.mts +7 -0
  57. package/dist/show/contribution.d.ts +7 -0
  58. package/dist/show/model.cjs +1 -0
  59. package/dist/show/model.cjs.map +1 -1
  60. package/dist/show/model.d.cts +2 -0
  61. package/dist/show/model.d.mts +2 -0
  62. package/dist/show/model.d.ts +2 -0
  63. package/dist/show/render.cjs +149 -81
  64. package/dist/show/render.cjs.map +1 -1
  65. package/dist/show/render.d.cts +3 -1
  66. package/dist/show/render.d.mts +3 -1
  67. package/dist/show/render.d.ts +3 -1
  68. package/dist/view/app-dist/.vite/manifest.json +18 -18
  69. package/dist/view/app-dist/assets/{AttemptDialog-DKEWcS7m.js → AttemptDialog-76dX1VQq.js} +1 -1
  70. package/dist/view/app-dist/assets/{AttemptRoute-DUs5kic4.js → AttemptRoute-DRHVh2JA.js} +1 -1
  71. package/dist/view/app-dist/assets/{ResultsPage-VlExJ6F0.js → ResultsPage-9CSI8dvZ.js} +2 -2
  72. package/dist/view/app-dist/assets/{RunPage-B9Bagswz.js → RunPage-BUF0REv7.js} +1 -1
  73. package/dist/view/app-dist/assets/{TableContentView-ZL9elUsA.js → TableContentView-_Sbg5wDr.js} +1 -1
  74. package/dist/view/app-dist/assets/index-BGr_6pGY.js +19 -0
  75. package/dist/view/app-dist/assets/{quality-cost-scatter-BqIAORD4.js → quality-cost-scatter-B5wDa_F1.js} +1 -1
  76. package/dist/view/app-dist/assets/useSuspenseQuery-D3W8Uy33.js +1 -0
  77. package/dist/view/app-dist/index.html +1 -1
  78. package/dist/view/function-runtime.mjs +68 -29
  79. package/docs-site/zh/examples/ai-agent-application.mdx +1 -1
  80. package/docs-site/zh/examples/index.mdx +1 -3
  81. package/docs-site/zh/explanation/evals.mdx +1 -1
  82. package/docs-site/zh/explanation/experiment.mdx +3 -1
  83. package/docs-site/zh/explanation/overview.mdx +6 -4
  84. package/docs-site/zh/explanation/record.mdx +9 -5
  85. package/docs-site/zh/explanation/runner.mdx +3 -3
  86. package/docs-site/zh/index.mdx +4 -8
  87. package/docs-site/zh/introduction.mdx +2 -2
  88. package/docs-site/zh/reference/cli.mdx +8 -7
  89. package/docs-site/zh/troubleshooting/debug-sandbox.mdx +5 -5
  90. package/docs-site/zh/troubleshooting/debugging.mdx +8 -8
  91. package/docs-site/zh/troubleshooting/recover-after-kill.mdx +35 -55
  92. package/docs-site/zh/tutorials/accept-results.mdx +4 -4
  93. package/docs-site/zh/tutorials/agent-onboarding.mdx +2 -2
  94. package/docs-site/zh/tutorials/authoring.mdx +1 -1
  95. package/docs-site/zh/tutorials/compare-runs.mdx +3 -3
  96. package/docs-site/zh/tutorials/concurrency.mdx +6 -6
  97. package/docs-site/zh/tutorials/connect-your-agent.mdx +2 -2
  98. package/docs-site/zh/tutorials/docker-in-docker.mdx +1 -1
  99. package/docs-site/zh/tutorials/experiments.mdx +1 -1
  100. package/docs-site/zh/tutorials/install-custom-sandbox-agent.mdx +1 -1
  101. package/docs-site/zh/tutorials/quickstart.mdx +2 -2
  102. package/docs-site/zh/tutorials/reporters.mdx +3 -3
  103. package/docs-site/zh/tutorials/sandbox-agent.mdx +2 -2
  104. package/docs-site/zh/tutorials/sandbox-reuse.mdx +3 -3
  105. package/docs-site/zh/tutorials/viewing-results.mdx +10 -11
  106. package/package.json +1 -1
  107. package/dist/view/app-dist/assets/index-C1E4NkG0.js +0 -19
  108. package/dist/view/app-dist/assets/useSuspenseQuery-BlFuYKyI.js +0 -1
@@ -1,10 +1,10 @@
1
1
  ---
2
- title: "查看已封口的运行结果"
2
+ title: "查看运行结果"
3
3
  sidebarTitle: "查看结果"
4
4
  description: "在终端用 show 逐层查看结果;在浏览器用 View 审阅,在自动化中用 query 读取 JSON。"
5
5
  ---
6
6
 
7
- 评估完成后,receipt 中的 `runIds` 是稳定的读取边界。人在终端用 `niceeval show`,在浏览器用 `niceeval view`。AI、脚本和 CI 用 `niceeval query` 读取 JSON。
7
+ 每个 Attempt 发布后立即可读,不必等待来源 Run 结束。运行结束后,receipt 中的 `runIds` 也是稳定的读取边界。人在终端用 `niceeval show`,在浏览器用 `niceeval view`。AI、脚本和 CI 用 `niceeval query` 读取 JSON。
8
8
 
9
9
  ## 先在终端查看 Overview
10
10
 
@@ -12,9 +12,9 @@ description: "在终端用 show 逐层查看结果;在浏览器用 View 审阅
12
12
  niceeval show
13
13
  ```
14
14
 
15
- 不带 selector 时,`show` 输出当前 sealed cutoff 的 Overview。它按 Experiment、评估用例和 Attempt 展开汇总,并保留通过率、分数、coverage、缺失项和 issues。先从这里找出需要继续查看的 Experiment、Run 或 Attempt locator。
15
+ 不带 selector 时,`show` 输出当前 PublicationCutoff 的 Overview。它按 Experiment、评估用例和 Attempt 展开汇总,并保留通过率、分数、coverage、缺失项和 issues。先从这里找出需要继续查看的 Experiment、Run 或 Attempt locator。
16
16
 
17
- Overview 来自项目 canonical Record 中已封口的结果。即使当前源码或当前安装候选的 identity 已经改变,
17
+ Overview 来自项目唯一的 `.niceeval/record.sqlite` 中已发布的结果。即使当前源码或当前安装候选的 identity 已经改变,
18
18
  `show` 也会保留每个逻辑 slot 的最新结果,不会把存在的历史显示为 `Observed 0/0`。这表示结果可查看,
19
19
  不表示它已通过当前 target 的复用资格检查。
20
20
 
@@ -25,7 +25,7 @@ niceeval show --experiment <experiment-id>
25
25
  niceeval show --run <run-id>
26
26
  ```
27
27
 
28
- `--experiment` 显示一个 Experiment 的聚合结果和各评估用例。`--run` 显示一个已封口 Run 的成员、判定、分数、coverage 和 usage 摘要。两者都可重复传入多个精确 ID;不能与彼此或 Attempt locator 混用。
28
+ `--experiment` 显示一个 Experiment 的聚合结果和各评估用例。`--run` 显示一个精确 Run 的成员、判定、分数、coverage 和 usage 摘要;`active` Run 已发布的 Attempt 会出现,尚未发布的位置显示 `pending`。两者都可重复传入多个精确 ID;不能与彼此或 Attempt locator 混用。
29
29
 
30
30
  ## 查看一个 Attempt
31
31
 
@@ -49,7 +49,7 @@ niceeval show @<locator> --diff
49
49
  niceeval show @<locator> --execution --expand <stable-id>
50
50
  ```
51
51
 
52
- `--timing` 显示活动的顺序和耗时,`--usage` 显示 token、请求和成本总计,`--diff` 显示已捕获的文件变更窗口。详情只读取 Record 已封存的事实;`partial`、`not-recorded` 或 `unavailable` 表示实际可用范围,不能当作零值或失败。
52
+ `--timing` 显示活动的顺序和耗时,`--usage` 显示 token、请求和成本总计,`--diff` 显示已捕获的文件变更窗口。详情只读取 Record 已发布的事实;`partial`、`not-recorded` 或 `unavailable` 表示实际可用范围,不能当作零值或失败。
53
53
 
54
54
  ## 正确解释完成、判定与分数
55
55
 
@@ -69,11 +69,11 @@ niceeval view
69
69
  niceeval view --run <run-id>
70
70
  ```
71
71
 
72
- View 是给人使用的固定第一方浏览器界面。它不读取项目自定义页面、主题或组件。不带 selector 时,View 打开项目当前 sealed cutoff 的 Overview;`--run` 选择一个或多个明确 Run。
72
+ View 是给人使用的固定第一方浏览器界面。它不读取项目自定义页面、主题或组件。不带 selector 时,View 打开项目当前 PublicationCutoff 的 Overview;`--run` 选择一个或多个明确 Run。它同样显示 `active` Run 已发布的 Attempt,以及尚未发布 slot 的 `pending`。
73
73
 
74
74
  可以使用 `--no-open` 保持浏览器不自动打开,或使用 `--port` 选择 loopback port。`--json` 只输出 lifecycle NDJSON;它不输出运行结果。
75
75
 
76
- 新 Run 发布后,项目 View 会提示用户确认 refresh。使用 `--record <file>` 时,View 固定通过完整校验的 SQLite generation,不会 watch 或 refresh。
76
+ 新事实发布后,项目 View 会提示用户确认 refresh;确认后才切换到新的 PublicationCutoff。
77
77
 
78
78
  ## 让机器读取 JSON
79
79
 
@@ -87,13 +87,12 @@ niceeval query run --request request.json
87
87
 
88
88
  常见读取任务由固定 operation 覆盖:列出 Run、取得 Run summary、读取 Attempt detail、trace、diff、sources、artifacts 或比较两个 Run。查看 [CLI](/zh/reference/cli) 获取完整说明。
89
89
 
90
- ## 读取另一份封口事实
90
+ ## 读取另一份已发布事实
91
91
 
92
92
  ```sh
93
93
  cp .niceeval/record.sqlite ./baseline.record.sqlite
94
- niceeval view --record ./baseline.record.sqlite
95
94
  niceeval show --record ./baseline.record.sqlite
96
95
  niceeval query explain --record ./baseline.record.sqlite --request request.json
97
96
  ```
98
97
 
99
- `--record` 接受 canonical SQLite Record 的副本,并把它当 hostile input。精确 current schema、SQLite integrity 或领域 invariant 任一校验失败,命令都会拒绝整个文件。
98
+ `show` 和 `query` 的 `--record` 接受 canonical SQLite Record 的副本,并把它当 hostile input。精确 current schema、SQLite integrity 或领域 invariant 任一校验失败,命令都会拒绝整个文件。`view` 只读取当前项目的 `.niceeval/record.sqlite`。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "niceeval",
3
- "version": "0.13.4-canary.48",
3
+ "version": "0.14.0",
4
4
  "description": "Agent-native eval tool — eval agents, services, functions, and coding-agent fixtures",
5
5
  "type": "module",
6
6
  "license": "MIT",