@anyswarm/core 0.5.1 → 0.6.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 (301) hide show
  1. package/AGENTS.md +20 -5
  2. package/README.md +69 -55
  3. package/dist/examples/README.md +138 -77
  4. package/dist/examples/authoring/README.md +4 -4
  5. package/dist/examples/autoresearch/README.md +108 -16
  6. package/dist/examples/autoresearch/REQUIREMENTS.zh.md +13 -12
  7. package/dist/examples/autoresearch/config.d.ts +48 -5
  8. package/dist/examples/autoresearch/config.js +57 -23
  9. package/dist/examples/autoresearch/demo.d.ts +12 -4
  10. package/dist/examples/autoresearch/demo.js +65 -22
  11. package/dist/examples/autoresearch/eject.json +2 -0
  12. package/dist/examples/autoresearch/frontiercs2-config.d.ts +2 -0
  13. package/dist/examples/autoresearch/frontiercs2-config.js +14 -0
  14. package/dist/examples/autoresearch/frontiercs2.d.ts +18 -1
  15. package/dist/examples/autoresearch/frontiercs2.js +71 -14
  16. package/dist/examples/autoresearch/prepare-demo.d.ts +1 -0
  17. package/dist/examples/autoresearch/prepare-demo.js +46 -0
  18. package/dist/examples/autoresearch/prepare.d.ts +105 -53
  19. package/dist/examples/autoresearch/prepare.js +126 -57
  20. package/dist/examples/autoresearch/project.d.ts +6 -95
  21. package/dist/examples/autoresearch/project.js +131 -45
  22. package/dist/examples/autoresearch/research-service.d.ts +16 -1
  23. package/dist/examples/autoresearch/research-service.js +84 -44
  24. package/dist/examples/code/README.md +25 -17
  25. package/dist/examples/code/REQUIREMENTS.zh.md +3 -3
  26. package/dist/examples/code/config.d.ts +1 -0
  27. package/dist/examples/first-harness/AGENTS.md +25 -0
  28. package/dist/examples/first-harness/README.md +136 -0
  29. package/dist/examples/first-harness/config.d.ts +9 -8
  30. package/dist/examples/first-harness/config.js +33 -26
  31. package/dist/examples/first-harness/eject.json +14 -0
  32. package/dist/examples/first-harness/handoff.js +3 -3
  33. package/dist/examples/first-harness/harness.d.ts +14 -18
  34. package/dist/examples/first-harness/harness.js +102 -77
  35. package/dist/examples/first-harness/input/README.md +7 -0
  36. package/dist/examples/first-harness/session.js +2 -1
  37. package/dist/examples/first-harness/tsconfig.json +2 -1
  38. package/dist/examples/harness-session/README.md +4 -4
  39. package/dist/examples/lead-worker/README.md +1 -1
  40. package/dist/examples/lead-worker/project-config.d.ts +1 -0
  41. package/dist/examples/messages/README.md +2 -2
  42. package/dist/examples/notes/README.md +5 -5
  43. package/dist/examples/notes/config.d.ts +1 -0
  44. package/dist/examples/parallel-swarm/AGENTS.md +32 -0
  45. package/dist/examples/parallel-swarm/README.md +136 -0
  46. package/dist/examples/parallel-swarm/board-service.js +25 -8
  47. package/dist/examples/parallel-swarm/board.d.ts +31 -1
  48. package/dist/examples/parallel-swarm/board.js +98 -13
  49. package/dist/examples/parallel-swarm/config.d.ts +11 -0
  50. package/dist/examples/parallel-swarm/config.js +39 -0
  51. package/dist/examples/parallel-swarm/eject.json +5 -0
  52. package/dist/examples/parallel-swarm/harness.d.ts +26 -20
  53. package/dist/examples/parallel-swarm/harness.js +77 -76
  54. package/dist/examples/parallel-swarm/report.d.ts +12 -0
  55. package/dist/examples/parallel-swarm/report.js +30 -0
  56. package/dist/examples/peermesh/README.md +1 -1
  57. package/dist/examples/peermesh/project-config.d.ts +1 -0
  58. package/dist/examples/services/agent-control/README.md +1 -1
  59. package/dist/examples/services/mathlib-search/README.md +1 -1
  60. package/dist/examples/services/mcp-managed/README.md +1 -1
  61. package/dist/examples/services/persistent-board/README.md +6 -3
  62. package/dist/examples/subagents/AGENTS.md +35 -0
  63. package/dist/examples/subagents/README.md +129 -93
  64. package/dist/examples/subagents/config.d.ts +2 -10
  65. package/dist/examples/subagents/config.js +9 -16
  66. package/dist/examples/subagents/eject.json +17 -0
  67. package/dist/examples/subagents/handoff-config.d.ts +41 -0
  68. package/dist/examples/subagents/handoff-config.js +13 -0
  69. package/dist/examples/subagents/model.d.ts +3 -0
  70. package/dist/examples/subagents/model.js +19 -0
  71. package/dist/examples/substrate/README.md +12 -6
  72. package/dist/examples/substrate/config.d.ts +1 -0
  73. package/dist/examples/substrate/project-config.d.ts +1 -0
  74. package/dist/examples/super/README.md +34 -22
  75. package/dist/examples/super/actions.d.ts +1 -1
  76. package/dist/examples/super/actions.js +11 -11
  77. package/dist/examples/super/config.js +3 -3
  78. package/dist/examples/super/eject.json +1 -1
  79. package/dist/examples/super/location.js +1 -1
  80. package/dist/examples/super/operator.d.ts +1 -0
  81. package/dist/examples/super/operator.js +31 -0
  82. package/dist/examples/super/project.d.ts +0 -107
  83. package/dist/examples/super/project.js +1 -3
  84. package/dist/examples/taskpool/README.md +1 -1
  85. package/dist/examples/taskpool/config.d.ts +1 -0
  86. package/dist/examples/taskpool/deploy/service-hosts/service-authority-snapshot.d.ts +4 -4
  87. package/dist/scripts/anyswarm-arguments.d.ts +7 -25
  88. package/dist/scripts/anyswarm-arguments.js +69 -97
  89. package/dist/scripts/anyswarm-eject.js +1 -1
  90. package/dist/scripts/anyswarm-harnesses.d.ts +0 -1
  91. package/dist/scripts/anyswarm-harnesses.js +1 -22
  92. package/dist/scripts/anyswarm-installation.d.ts +7 -40
  93. package/dist/scripts/anyswarm-installation.js +17 -291
  94. package/dist/scripts/anyswarm-launch.d.ts +6 -36
  95. package/dist/scripts/anyswarm-launch.js +32 -81
  96. package/dist/scripts/anyswarm-progress.d.ts +6 -0
  97. package/dist/scripts/anyswarm-progress.js +133 -0
  98. package/dist/scripts/anyswarm-project.d.ts +1 -9
  99. package/dist/scripts/anyswarm-project.js +40 -127
  100. package/dist/scripts/anyswarm-source-runner.js +9 -41
  101. package/dist/scripts/anyswarm.js +6 -26
  102. package/dist/scripts/build-provenance.json +1 -1
  103. package/dist/scripts/generate-architecture-coverage.js +1 -1
  104. package/dist/scripts/generate-architecture-prompts.js +18 -10
  105. package/dist/scripts/local-environment.d.ts +13 -7
  106. package/dist/scripts/local-environment.js +73 -21
  107. package/dist/scripts/local-setup.d.ts +3 -0
  108. package/dist/scripts/local-setup.js +153 -118
  109. package/dist/scripts/pack-release.js +31 -4
  110. package/dist/src/core/index.js +1 -1
  111. package/dist/src/core/sandbox/opensandbox-backend.js +10 -4
  112. package/dist/src/core/sandbox/sandbox-connection.d.ts +9 -2
  113. package/dist/src/core/sandbox/sandbox-connection.js +22 -7
  114. package/dist/src/core/worker-image.js +1 -1
  115. package/dist/src/harness/project-harness.d.ts +1 -0
  116. package/dist/src/harness/project-harness.js +5 -4
  117. package/dist/src/harness/project-rpc-client.js +19 -0
  118. package/dist/src/harness/project-runtime.js +3 -1
  119. package/dist/src/harness/typescript-loader.d.ts +2 -0
  120. package/dist/src/harness/typescript-loader.js +26 -8
  121. package/dist/src/trace-viewer/command.mjs +6 -3
  122. package/dist/src/trace-viewer/public/app.js +239 -59
  123. package/dist/src/trace-viewer/public/index.html +5 -0
  124. package/dist/src/trace-viewer/public/style.css +22 -0
  125. package/dist/src/trace-viewer/reader.mjs +242 -26
  126. package/dist/src/trace-viewer/run-root.d.mts +1 -0
  127. package/dist/src/trace-viewer/run-root.mjs +7 -0
  128. package/dist/src/trace-viewer/server.mjs +3 -1
  129. package/docs/INDEX.md +11 -9
  130. package/docs/architecture/04-services.md +1 -1
  131. package/docs/architecture/06-observability-experiments.md +21 -7
  132. package/docs/architecture/07-run-configuration.md +118 -19
  133. package/docs/architecture/08-prompts.md +21 -2
  134. package/docs/architecture/10-service-api-reference.md +12 -5
  135. package/docs/architecture/12-code-coverage.md +157 -115
  136. package/docs/architecture/15-core-runtime.md +1 -1
  137. package/docs/architecture/16-pi-opensandbox-backend.md +2 -0
  138. package/docs/architecture/17-harness-reporting.md +79 -1
  139. package/docs/architecture/22-website.md +52 -20
  140. package/docs/architecture/23-project-harness.md +109 -37
  141. package/docs/architecture/26-code.md +20 -5
  142. package/docs/architecture/27-personal.md +23 -8
  143. package/docs/architecture/28-autoresearch.md +18 -12
  144. package/docs/architecture/INDEX.md +1 -2
  145. package/docs/architecture/prompts/11-first-sdk-harness.md +9 -9
  146. package/docs/architecture/prompts/16-parallel-swarm.md +46 -13
  147. package/docs/architecture/prompts/22-autoresearch.md +9 -2
  148. package/docs/architecture/prompts/source-manifest.json +76 -52
  149. package/docs/architecture/source-map.json +445 -105
  150. package/docs/designs/core-harness/01-core.md +2 -2
  151. package/docs/designs/core-harness/06-project-harness.md +3 -3
  152. package/docs/designs/core-harness/README.md +2 -2
  153. package/docs/en/agents.md +1 -1
  154. package/docs/en/autoresearch.md +41 -0
  155. package/docs/en/blog/100b-tokens.md +157 -0
  156. package/docs/en/build-your-harness.md +47 -22
  157. package/docs/en/changelog.md +29 -1
  158. package/docs/en/first-harness.md +40 -32
  159. package/docs/en/harnesses/index.md +23 -23
  160. package/docs/en/harnesses/lead-worker.md +1 -1
  161. package/docs/en/harnesses/peermesh.md +2 -2
  162. package/docs/en/harnesses/subagents.md +10 -31
  163. package/docs/en/harnesses/substrate.md +4 -4
  164. package/docs/en/harnesses/taskpool.md +2 -2
  165. package/docs/en/latest.md +30 -5
  166. package/docs/en/overview.md +22 -22
  167. package/docs/en/quickstart.md +69 -56
  168. package/docs/en/reference/api.md +1 -1
  169. package/docs/en/reference/cli.md +47 -85
  170. package/docs/en/sandbox.md +3 -3
  171. package/docs/en/trace-viewer.md +32 -12
  172. package/docs/operations/trace-viewer.md +26 -11
  173. package/docs/third-party-notices.md +0 -1
  174. package/docs/workflows/development.md +160 -118
  175. package/docs/workflows/release-and-docs-versioning.md +207 -54
  176. package/docs/workflows/release-cli-acceptance.md +162 -0
  177. package/docs/zh/agents.md +1 -1
  178. package/docs/zh/autoresearch.md +41 -0
  179. package/docs/zh/blog/100b-tokens.md +102 -0
  180. package/docs/zh/build-your-harness.md +48 -23
  181. package/docs/zh/changelog.md +29 -1
  182. package/docs/zh/first-harness.md +43 -35
  183. package/docs/zh/harnesses/index.md +23 -23
  184. package/docs/zh/harnesses/lead-worker.md +1 -1
  185. package/docs/zh/harnesses/peermesh.md +2 -2
  186. package/docs/zh/harnesses/subagents.md +10 -31
  187. package/docs/zh/harnesses/substrate.md +4 -4
  188. package/docs/zh/harnesses/taskpool.md +2 -2
  189. package/docs/zh/latest.md +30 -5
  190. package/docs/zh/overview.md +23 -23
  191. package/docs/zh/quickstart.md +66 -57
  192. package/docs/zh/reference/api.md +1 -1
  193. package/docs/zh/reference/cli.md +19 -79
  194. package/docs/zh/sandbox.md +3 -3
  195. package/docs/zh/trace-viewer.md +32 -12
  196. package/examples/README.md +138 -77
  197. package/examples/authoring/README.md +4 -4
  198. package/examples/autoresearch/README.md +108 -16
  199. package/examples/autoresearch/REQUIREMENTS.zh.md +13 -12
  200. package/examples/autoresearch/config.ts +64 -25
  201. package/examples/autoresearch/demo.ts +75 -22
  202. package/examples/autoresearch/eject.json +2 -0
  203. package/examples/autoresearch/frontiercs2-config.ts +15 -0
  204. package/examples/autoresearch/frontiercs2.ts +64 -11
  205. package/examples/autoresearch/prepare-demo.ts +44 -0
  206. package/examples/autoresearch/prepare.ts +134 -60
  207. package/examples/autoresearch/project.ts +120 -44
  208. package/examples/autoresearch/research-service.ts +91 -41
  209. package/examples/code/README.md +25 -17
  210. package/examples/code/REQUIREMENTS.zh.md +3 -3
  211. package/examples/first-harness/AGENTS.md +25 -0
  212. package/examples/first-harness/README.md +136 -0
  213. package/examples/first-harness/config.ts +41 -27
  214. package/examples/first-harness/eject.json +14 -0
  215. package/examples/first-harness/handoff.ts +3 -3
  216. package/examples/first-harness/harness.ts +104 -72
  217. package/examples/first-harness/input/README.md +7 -0
  218. package/examples/first-harness/session.ts +2 -1
  219. package/examples/first-harness/tsconfig.json +2 -1
  220. package/examples/harness-session/README.md +4 -4
  221. package/examples/lead-worker/README.md +1 -1
  222. package/examples/messages/README.md +2 -2
  223. package/examples/notes/README.md +5 -5
  224. package/examples/parallel-swarm/AGENTS.md +32 -0
  225. package/examples/parallel-swarm/README.md +136 -0
  226. package/examples/parallel-swarm/board-service.ts +28 -9
  227. package/examples/parallel-swarm/board.ts +107 -13
  228. package/examples/parallel-swarm/config.ts +47 -0
  229. package/examples/parallel-swarm/eject.json +5 -0
  230. package/examples/parallel-swarm/harness.ts +83 -71
  231. package/examples/parallel-swarm/report.ts +33 -0
  232. package/examples/peermesh/README.md +1 -1
  233. package/examples/services/agent-control/README.md +1 -1
  234. package/examples/services/mathlib-search/README.md +1 -1
  235. package/examples/services/mcp-managed/README.md +1 -1
  236. package/examples/services/persistent-board/README.md +6 -3
  237. package/examples/subagents/AGENTS.md +35 -0
  238. package/examples/subagents/README.md +129 -93
  239. package/examples/subagents/config.ts +9 -15
  240. package/examples/subagents/eject.json +17 -0
  241. package/examples/subagents/handoff-config.ts +14 -0
  242. package/examples/subagents/model.ts +20 -0
  243. package/examples/substrate/README.md +12 -6
  244. package/examples/super/README.md +34 -22
  245. package/examples/super/actions.ts +11 -11
  246. package/examples/super/config.ts +3 -3
  247. package/examples/super/eject.json +1 -1
  248. package/examples/super/location.ts +1 -1
  249. package/examples/super/operator.ts +28 -0
  250. package/examples/super/project.ts +1 -3
  251. package/examples/taskpool/README.md +1 -1
  252. package/npm-shrinkwrap.development.json +46 -1538
  253. package/npm-shrinkwrap.json +10 -43
  254. package/package.development.json +3 -6
  255. package/package.json +3 -5
  256. package/scripts/anyswarm-arguments.ts +67 -96
  257. package/scripts/anyswarm-eject.ts +1 -1
  258. package/scripts/anyswarm-harnesses.ts +1 -18
  259. package/scripts/anyswarm-installation.ts +18 -294
  260. package/scripts/anyswarm-launch.ts +30 -102
  261. package/scripts/anyswarm-progress.ts +125 -0
  262. package/scripts/anyswarm-project.ts +31 -123
  263. package/scripts/anyswarm-source-runner.ts +9 -36
  264. package/scripts/anyswarm.ts +4 -24
  265. package/scripts/generate-architecture-coverage.ts +1 -1
  266. package/scripts/generate-architecture-prompts.ts +21 -10
  267. package/scripts/local-environment.ts +79 -21
  268. package/scripts/local-setup.ts +150 -105
  269. package/scripts/pack-release.ts +28 -4
  270. package/src/core/index.ts +1 -1
  271. package/src/core/sandbox/opensandbox-backend.ts +10 -4
  272. package/src/core/sandbox/sandbox-connection.ts +22 -7
  273. package/src/core/worker-image.ts +1 -1
  274. package/src/harness/project-harness.ts +5 -4
  275. package/src/harness/project-rpc-client.ts +23 -0
  276. package/src/harness/project-runtime.ts +2 -1
  277. package/src/harness/typescript-loader.ts +28 -8
  278. package/src/trace-viewer/command.mjs +6 -3
  279. package/src/trace-viewer/public/app.js +239 -59
  280. package/src/trace-viewer/public/index.html +5 -0
  281. package/src/trace-viewer/public/style.css +22 -0
  282. package/src/trace-viewer/reader.mjs +242 -26
  283. package/src/trace-viewer/run-root.d.mts +1 -0
  284. package/src/trace-viewer/run-root.mjs +7 -0
  285. package/src/trace-viewer/server.mjs +3 -1
  286. package/dist/scripts/anyswarm-applications.d.ts +0 -19
  287. package/dist/scripts/anyswarm-applications.js +0 -19
  288. package/dist/scripts/anyswarm-tui-config.d.ts +0 -36
  289. package/dist/scripts/anyswarm-tui-config.js +0 -189
  290. package/dist/scripts/anyswarm-tui-session.d.ts +0 -66
  291. package/dist/scripts/anyswarm-tui-session.js +0 -304
  292. package/dist/scripts/anyswarm-tui-terminal.d.ts +0 -41
  293. package/dist/scripts/anyswarm-tui-terminal.js +0 -154
  294. package/dist/scripts/anyswarm-tui.d.ts +0 -2
  295. package/dist/scripts/anyswarm-tui.js +0 -1012
  296. package/docs/architecture/25-foreground-tui.md +0 -51
  297. package/scripts/anyswarm-applications.ts +0 -39
  298. package/scripts/anyswarm-tui-config.ts +0 -174
  299. package/scripts/anyswarm-tui-session.ts +0 -295
  300. package/scripts/anyswarm-tui-terminal.ts +0 -147
  301. package/scripts/anyswarm-tui.ts +0 -912
@@ -1,8 +1,8 @@
1
1
  import { availableParallelism, freemem } from 'node:os';
2
2
  import { cp, lstat, mkdir, mkdtemp, readFile, readdir, rename, rm, statfs, writeFile } from 'node:fs/promises';
3
3
  import { join } from 'node:path';
4
- import { defaultResearchConnection, frontierBudget, frontierHome, kimiModel } from './config.js';
5
- import { bridgeDockerfile, bridgeWorkflow, digest, FrontierRun, frontierRevision, frontierTask, installBridge, judgeImages, pumpkinPin } from './frontiercs2.js';
4
+ import { frontierBudget, frontierHome, modelConfigurationError } from './config.js';
5
+ import { bridgeDockerfile, bridgeWorkflow, digest, FrontierRun, frontierRevision, frontierTask, installBridge, judgeImages, preparePumpkin, pumpkinPin } from './frontiercs2.js';
6
6
  import { command, requireSuccess } from './process.js';
7
7
  const upstream = 'https://github.com/FrontierCS/FrontierCS-2.git';
8
8
  const taskPackage = 'tasks/binary_fuse_filter';
@@ -10,53 +10,60 @@ const shared = ['fetch', 'lib', 'shared', taskPackage];
10
10
  const GiB = 1024 ** 3;
11
11
  const prepareTimeout = 2_700_000;
12
12
  const pinFiles = ['.pumpkinversion', 'PUMPKIN.star', 'pumpkin', ...shared];
13
- export function resourcePlan(budget) {
14
- const roles = [
15
- { role: 'AnySwarm Workers', count: budget.workers, cpu: 2, memoryGiB: 4 },
16
- { role: 'Pumpkin submission role', count: 1, cpu: 2, memoryGiB: 4 },
17
- { role: 'Active judge', count: 1, cpu: 2, memoryGiB: 4 },
18
- { role: 'Host and services headroom', count: 1, cpu: 2, memoryGiB: 2 },
19
- { role: 'Image build headroom', count: 1, cpu: 2, memoryGiB: 4 },
20
- ];
13
+ export function resourcePlan(budget, sandbox) {
14
+ const lifecycle = URL.parse(sandbox.endpoint ?? sandbox.lifecycleBaseUrl ?? 'http://127.0.0.1');
15
+ const localWorkers = lifecycle !== null && ['localhost', '127.0.0.1', '[::1]'].includes(lifecycle.hostname);
16
+ const bridge = { role: 'Pumpkin submission role', count: 1, cpu: 2, memoryGiB: 4, placement: 'controller' };
17
+ const judge = { role: 'Active official judge', count: 1, cpu: 2, memoryGiB: 4, placement: 'controller' };
18
+ const controller = { role: 'Controller, services and headroom', count: 1, cpu: 2, memoryGiB: 2, placement: 'controller' };
19
+ const worker = { role: 'AnySwarm Workers', count: budget.workers, cpu: 2, memoryGiB: 4,
20
+ placement: localWorkers ? 'controller' : 'opensandbox' };
21
+ const totals = (roles) => ({
22
+ roles, cpu: roles.reduce((sum, role) => sum + role.count * role.cpu, 0),
23
+ memoryGiB: roles.reduce((sum, role) => sum + role.count * role.memoryGiB, 0),
24
+ diskGiB: 12, gpu: 0,
25
+ });
21
26
  return {
22
- roles, cpu: roles.reduce((n, role) => n + role.count * role.cpu, 0),
23
- memoryGiB: roles.reduce((n, role) => n + role.count * role.memoryGiB, 0), diskGiB: 12, gpu: 0,
27
+ prepare: totals([bridge, judge, controller, { role: 'Image build headroom', count: 1, cpu: 2, memoryGiB: 4, placement: 'controller' }]),
28
+ run: totals([worker, bridge, judge, controller]),
29
+ localWorkers,
24
30
  };
25
31
  }
26
- export async function checkKimiRoute(signal) {
27
- let model;
28
- try {
29
- model = kimiModel();
30
- }
31
- catch (error) {
32
- return [{ name: 'kimi-k3-config', ok: false, detail: error.message }];
33
- }
34
- const config = { name: 'kimi-k3-config', ok: true, detail: 'Configured provider, model ID and fixed Responses URL.' };
35
- const name = 'kimi-k3-route';
32
+ export async function checkModelRoute(model, executor, signal) {
33
+ const problem = modelConfigurationError(model, executor);
34
+ const config = { name: 'model-config', ok: !problem, detail: problem ?? 'A model, protocol and endpoint are configured.' };
35
+ if (problem)
36
+ return [config];
37
+ const name = 'model-http';
36
38
  try {
37
39
  const response = await fetch(model.upstream.url, {
38
40
  method: 'HEAD', headers: model.upstream.headers, redirect: 'manual',
39
41
  signal: AbortSignal.any([signal, AbortSignal.timeout(5000)]),
40
42
  });
41
- const ok = response.ok || response.status === 405;
42
- const detail = ok ? `Endpoint responded to HEAD (HTTP ${response.status}).`
43
- : [401, 403].includes(response.status) ? `HEAD denied (HTTP ${response.status}). Check the proxy's access policy and token.`
44
- : `Unexpected response to HEAD (HTTP ${response.status}). Check the configured Responses route.`;
45
- return [config, { name, ok, detail }];
43
+ const reachable = response.ok || [405, 501].includes(response.status);
44
+ const headOnly = !(model.provider === 'kimi_proxy' && model.model === 'k3') && [400, 404].includes(response.status);
45
+ const detail = reachable ? `Endpoint responded to HEAD (HTTP ${response.status}).`
46
+ : headOnly ? `Endpoint is reachable; its HEAD probe returned HTTP ${response.status}. Confirm the configured POST route on the first run.`
47
+ : [401, 403].includes(response.status) ? `HEAD denied (HTTP ${response.status}). Check your endpoint token and access policy.`
48
+ : `Unexpected HEAD response (HTTP ${response.status}). Check the configured endpoint and protocol.`;
49
+ return [config, { name, ok: reachable || headOnly, detail }];
46
50
  }
47
51
  catch {
48
52
  signal.throwIfAborted();
49
- return [config, { name, ok: false, detail: 'Could not reach the Responses route within 5 seconds. Check the endpoint and connectivity.' }];
53
+ return [config, { name, ok: false, detail: 'Could not reach the configured model endpoint within 5 seconds. Check its URL, DNS and network access from the controller.' }];
50
54
  }
51
55
  }
52
56
  function paths(home, dockerContext) {
53
57
  return { source: join(home, 'bridge'), config: join(home, 'pumpkin.toml'), dockerContext, cache: join(home, 'cache') };
54
58
  }
59
+ export const starterPath = (home) => join(home, 'reference', taskPackage, 'repo');
55
60
  export async function loadPrepared(home = frontierHome()) {
56
- const saved = JSON.parse(await readFile(join(home, 'prepared.json'), 'utf8'));
61
+ const saved = await readFile(join(home, 'prepared.json'), 'utf8')
62
+ .then(raw => JSON.parse(raw))
63
+ .catch(() => { throw new Error('Prepare this state directory first with anyswarm run ./prepare-demo.ts --config ./frontiercs2-config.ts.'); });
57
64
  if (saved.version !== 2 || saved.revision !== frontierRevision || saved.pumpkin !== pumpkinPin ||
58
65
  !/^[a-zA-Z0-9._-]+$/.test(saved.dockerContext))
59
- throw new Error('Run anys autoresearch demo frontiercs2 --prepare to refresh this demo.');
66
+ throw new Error('Run anyswarm run ./prepare-demo.ts with the same --config to refresh this demo.');
60
67
  const locations = paths(home, saved.dockerContext);
61
68
  const reference = join(home, 'reference');
62
69
  const [bridgeDigest, sourceDigest] = await Promise.all([treeDigest(locations.source), treeDigest(reference)]);
@@ -66,14 +73,13 @@ export async function loadPrepared(home = frontierHome()) {
66
73
  const activeConfig = await readFile(locations.config, 'utf8');
67
74
  if (saved.bridgeDigest !== bridgeDigest || saved.sourceDigest !== sourceDigest || activeWorkflow !== bridgeWorkflow(officialWorkflow) ||
68
75
  roleDockerfile !== bridgeDockerfile || activeConfig !== pumpkinConfig(saved.dockerContext))
69
- throw new Error('Prepared FrontierCS-2 materials changed. Refresh with --prepare.');
70
- const budget = frontierBudget(saved.budget);
71
- const starter = join(reference, taskPackage, 'repo');
76
+ throw new Error('Prepared FrontierCS-2 materials changed. Run prepare-demo.ts with your configuration to refresh it.');
77
+ const starter = starterPath(home);
72
78
  const tracked = requireSuccess(await command('git', ['ls-files', '--', 'README.md', 'include/binaryfusefilter.h'], { cwd: starter, timeoutMs: 5000 }), 'Validate tracked FrontierCS-2 starter');
73
79
  if (!tracked.split('\n').includes('README.md') || !tracked.split('\n').includes('include/binaryfusefilter.h')) {
74
- throw new Error('The pinned Git starter is missing required tracked files. Refresh with --prepare.');
80
+ throw new Error('The pinned Git starter is missing required tracked files. Run prepare-demo.ts with your configuration to refresh it.');
75
81
  }
76
- return { saved: { ...saved, budget }, paths: locations, budget, starter };
82
+ return { saved, paths: locations, starter };
77
83
  }
78
84
  async function treeDigest(root) {
79
85
  const hashes = [];
@@ -101,7 +107,7 @@ async function sourceAt(home, signal) {
101
107
  const status = await command('git', ['status', '--porcelain', '--untracked-files=no'], { cwd: cached, timeoutMs: 10_000, signal });
102
108
  if (head.stdout.trim() === frontierRevision && status.code === 0 && !status.stdout.trim())
103
109
  return cached;
104
- throw new Error('Prepared reference source has local changes. Move it aside and re-run --prepare.');
110
+ throw new Error('Prepared reference source has local changes. Move it aside and run prepare-demo.ts again with your configuration.');
105
111
  }
106
112
  const temp = await mkdtemp(join(home, 'source-'));
107
113
  const git = async (args, timeoutMs) => requireSuccess(await command('git', args, { cwd: temp, timeoutMs, env: { ...process.env, GIT_LFS_SKIP_SMUDGE: '1' }, signal }), 'Prepare pinned FrontierCS-2 source');
@@ -129,9 +135,15 @@ async function verifyReference(record) {
129
135
  const train = actions.find(action => action.kind === 'start_call' && action.grant === 'train');
130
136
  const final = actions.find(action => action.kind === 'start_final_call');
131
137
  const submission = outcome.agents?.find((agent) => agent.role === 'agent')?.submission;
132
- const returned = (job) => events.some(({ event }) => event?.job === job && event.kind === 'call_returned');
138
+ const returned = (job) => events.find(({ event }) => event?.job === job && event.kind === 'call_returned')?.event.returned;
139
+ const measured = (values, name) => values?.find(row => row.name === name)?.value;
140
+ const trainScore = measured(train && returned(train.job), 'raw_score');
141
+ const finalScore = measured(outcome.verdict?.result?.values, 'score');
142
+ const verdict = measured(outcome.verdict?.result?.values, 'summary');
133
143
  if (outcome.state !== 'finished' || outcome.verdict?.kind !== 'returned' || outcome.usage?.model_requests !== 0 ||
134
- !submission?.finalized || !train || !final || !returned(train.job) || !returned(final.job) ||
144
+ !submission?.finalized || typeof trainScore !== 'number' || !Number.isFinite(trainScore) || trainScore <= 0 ||
145
+ !final || !returned(final.job) || typeof finalScore !== 'number' || !Number.isFinite(finalScore) ||
146
+ typeof verdict !== 'string' || (verdict !== 'strict PASS' && !verdict.startsWith('valid;')) ||
135
147
  !final.selections?.some((item) => item.role === 'agent' && item.selection?.digest === submission.payload?.digest)) {
136
148
  throw new Error(`The reference record does not establish completed no-model train and final: ${record}`);
137
149
  }
@@ -161,9 +173,10 @@ async function referenceRecord(source, state, home, signal) {
161
173
  throw new Error(`Pumpkin reference cleanup is pending: ${runs}`);
162
174
  }
163
175
  }
164
- export async function prepareFrontier({ signal, progress, home = frontierHome() }) {
165
- const budget = frontierBudget();
166
- const resources = resourcePlan(budget);
176
+ export async function prepareFrontier({ signal, progress, configuration, checkOnly = false }) {
177
+ const { frontierStateDir: home, executor, image, model, sandbox, connection, preparedWorker } = configuration;
178
+ const budget = frontierBudget(configuration.budget);
179
+ const resources = resourcePlan(budget, sandbox);
167
180
  const checks = [];
168
181
  const check = (name, ok, detail) => checks.push({ name, ok, detail });
169
182
  await mkdir(home, { recursive: true, mode: 0o700 });
@@ -175,22 +188,54 @@ export async function prepareFrontier({ signal, progress, home = frontierHome()
175
188
  const result = await command(tool, args, { timeoutMs: 5000, signal }).catch(() => undefined);
176
189
  check(tool, result?.code === 0, result?.stdout.trim() || remedy);
177
190
  }));
191
+ const installer = await command('/bin/sh', ['-c', 'for tool in sha256sum tar xz flock; do command -v "$tool" >/dev/null || printf "%s " "$tool"; done; command -v curl >/dev/null || command -v wget >/dev/null || printf "curl/wget"'], { timeoutMs: 5000, signal }).catch(() => undefined);
192
+ const missing = installer?.stdout.trim();
193
+ check('pumpkin-tools', installer?.code === 0 && !missing, installer?.code === 0 && !missing
194
+ ? 'Found downloader, SHA-256, tar, xz and flock.'
195
+ : `Install curl, ca-certificates, coreutils, tar, xz-utils and util-linux.${missing ? ` Missing: ${missing}.` : ''}`);
178
196
  const local = await command('docker', ['context', 'show'], { timeoutMs: 5000, signal }).catch(() => undefined);
179
197
  const dockerContext = local?.code === 0 ? local.stdout.trim() : '';
180
198
  const validContext = /^[a-zA-Z0-9._-]+$/.test(dockerContext);
181
199
  check('docker-cli', validContext, validContext ? dockerContext : 'Install Docker CLI and select a local context.');
200
+ const buildx = validContext ? await command('docker', ['--context', dockerContext, 'buildx', 'version'], { timeoutMs: 5000, signal }).catch(() => undefined) : undefined;
201
+ check('docker-buildx', buildx?.code === 0, buildx?.code === 0 ? buildx.stdout.trim()
202
+ : 'Install the Docker Buildx plugin for your Docker CLI and verify it with docker buildx version.');
182
203
  const info = validContext ? await command('docker', ['--context', dockerContext, 'info', '--format',
183
- '{{.OSType}} {{.Architecture}} {{.NCPU}} {{.MemTotal}}'], { timeoutMs: 8000, signal }).catch(() => undefined) : undefined;
184
- const [os, arch, cpu, memory] = info?.stdout.trim().split(/\s+/) ?? [];
204
+ '{{.OSType}} {{.Architecture}} {{.NCPU}} {{.MemTotal}}\n{{json .DriverStatus}}'], { timeoutMs: 8000, signal }).catch(() => undefined) : undefined;
205
+ const [platform, driver] = info?.stdout.trim().split('\n', 2) ?? [];
206
+ const [os, arch, cpu, memory] = platform?.split(/\s+/) ?? [];
185
207
  check('docker-daemon', info?.code === 0 && os === 'linux' && ['x86_64', 'amd64'].includes(arch), info?.code === 0 ? `${os}/${arch}, ${cpu} CPUs, ${Math.floor(Number(memory) / GiB)} GiB` : 'Start Docker and verify daemon access with docker info.');
208
+ const imageStore = info?.code === 0 && driver?.includes('"io.containerd.snapshotter.v1"');
209
+ check('docker-image-store', !!imageStore, imageStore ? 'Docker uses the containerd image store.'
210
+ : 'Pumpkin requires the containerd image store. Check docker info --format "{{ .DriverStatus }}" and see the Docker setup section of README.md.');
211
+ const availableCpu = Math.min(availableParallelism(), Number(cpu));
212
+ const availableMemory = Math.min(freemem(), Number(memory)) / GiB;
186
213
  const disk = await statfs(home);
214
+ const tmp = await statfs(process.env.TMPDIR ?? '/tmp');
187
215
  const diskGiB = disk.bavail * disk.bsize / GiB;
188
- check('resources', Math.min(availableParallelism(), Number(cpu)) >= resources.cpu &&
189
- Math.min(freemem(), Number(memory)) >= resources.memoryGiB * GiB && diskGiB >= resources.diskGiB && disk.ffree >= 25_000, `Plan: ${resources.cpu} CPUs, ${resources.memoryGiB} GiB RAM, ${resources.diskGiB} GiB disk and 25000 free inodes for the four-worker demo. Available disk: ${Math.floor(diskGiB)} GiB, ${disk.ffree} inodes.`);
190
- checks.push(...await checkKimiRoute(signal));
216
+ const tmpGiB = tmp.bavail * tmp.bsize / GiB;
217
+ for (const [phase, plan] of [['prepare', resources.prepare], ['run', resources.run]]) {
218
+ const local = plan.roles.filter(role => role.placement === 'controller');
219
+ const localCpu = local.reduce((sum, role) => sum + role.cpu * role.count, 0);
220
+ const localMemory = local.reduce((sum, role) => sum + role.memoryGiB * role.count, 0);
221
+ check(phase + '-capacity', availableCpu >= localCpu && availableMemory >= localMemory, `Controller needs ${localCpu} vCPU and ${localMemory} GiB available for ${phase}. Observed: ${Number.isFinite(availableCpu) ? availableCpu : 'unknown'} vCPU and ${Number.isFinite(availableMemory) ? Math.floor(availableMemory) : 'unknown'} GiB. For run capacity, reduce budget.workers or use a larger host.`);
222
+ }
223
+ check('storage', diskGiB >= resources.prepare.diskGiB && disk.ffree >= 25_000 && tmp.ffree >= 25_000 && tmpGiB >= 1, `State: ${Math.floor(diskGiB)} GiB, ${disk.ffree} inodes. Temporary storage: ${Math.floor(tmpGiB)} GiB, ${tmp.ffree} inodes. Allow 12 GiB for state, 1 GiB for temporary files and 25000 free inodes on both mounts.`);
224
+ checks.push(...await checkModelRoute(model, executor, signal));
225
+ const placement = typeof executor === 'string' ? executor : executor?.kind;
226
+ check('executor', !!placement && !!image, placement && image
227
+ ? `Selected backend: ${placement}; Worker image: ${image}. The first Worker startup checks executor compatibility.`
228
+ : 'Run anyswarm setup --backend pi or --backend codex, or configure executor and its matching image.');
229
+ check('callback', !!(connection.advertiseHost || connection.publicUrl), connection.advertiseHost || connection.publicUrl
230
+ ? 'Runtime callback is configured. Use anyswarm doctor --smoke to check guest connectivity.'
231
+ : 'Configure ANYSWARM_ADVERTISE_HOST or ANYSWARM_RUNTIME_PUBLIC_URL for the Worker callback, or run anyswarm setup.');
232
+ const limits = sandbox.resourceLimits;
233
+ check('worker-spec', limits?.cpu === '2' && limits.memory === '4Gi', 'FrontierCS-2 reserves 2 vCPU and 4 GiB per Worker. Keep sandbox.resourceLimits.cpu=2 and memory=4Gi.');
191
234
  try {
192
- const { sandbox, image } = defaultResearchConnection();
193
- const url = sandbox.lifecycleBaseUrl.replace(/\/$/, '') + '/sandboxes?page=1&pageSize=1';
235
+ const base = sandbox.endpoint ?? sandbox.lifecycleBaseUrl;
236
+ if (!base)
237
+ throw new Error('Lifecycle endpoint is required');
238
+ const url = base.replace(/\/$/, '') + '/sandboxes?page=1&pageSize=1';
194
239
  const deadline = AbortSignal.any([signal, AbortSignal.timeout(8000)]);
195
240
  const [authenticated, anonymous] = await Promise.all([
196
241
  fetch(url, { redirect: 'error', signal: deadline, headers: { 'OPEN-SANDBOX-API-KEY': sandbox.apiKey ?? '' } }),
@@ -198,21 +243,35 @@ export async function prepareFrontier({ signal, progress, home = frontierHome()
198
243
  ]);
199
244
  const ok = Boolean(sandbox.apiKey && authenticated.ok && [401, 403].includes(anonymous.status) && sandbox.egressMode === 'dns+nft');
200
245
  await Promise.all([authenticated.body?.cancel(), anonymous.body?.cancel()]);
201
- check('opensandbox', ok, ok ? 'Authenticated Lifecycle endpoint.' : 'Configure an authenticated OpenSandbox with dns+nft egress and run anys doctor.');
202
- const worker = validContext && await command('docker', ['--context', dockerContext, 'image', 'inspect', '--format', '{{.Id}}', image], { timeoutMs: 8000, signal }).catch(() => undefined);
203
- check('worker-image', !!worker && worker.code === 0, worker && worker.code === 0 ? worker.stdout.trim() : 'Select the prepared AnySwarm Worker image for this Docker daemon.');
246
+ check('opensandbox', ok, ok ? 'Authenticated Lifecycle endpoint and configured dns+nft egress.'
247
+ : 'Run anyswarm setup and anyswarm doctor. For an existing deployment configure the Lifecycle endpoint, API key and dns+nft egress.');
204
248
  }
205
- catch (error) {
206
- check('opensandbox', false, `Check the existing endpoint with anys doctor. ${error.name}`);
249
+ catch {
250
+ signal.throwIfAborted();
251
+ check('opensandbox', false, 'Could not reach the configured Lifecycle endpoint. Run anyswarm setup or check the existing service with anyswarm doctor.');
252
+ }
253
+ if (resources.localWorkers) {
254
+ const worker = validContext && image && await command('docker', ['--context', dockerContext, 'image', 'inspect', '--format', '{{.Id}}', preparedWorker ?? image], { timeoutMs: 8000, signal }).catch(() => undefined);
255
+ check('worker-image', !!worker && worker.code === 0, worker && worker.code === 0 ? `Docker resolved ${worker.stdout.trim()} for ${image}.`
256
+ : 'Run anyswarm setup to prepare the selected Worker on this Docker daemon, or select its image in the configuration.');
257
+ }
258
+ else {
259
+ check('worker-image', !!image, 'Worker is assigned to the existing OpenSandbox service. Confirm the image is available there with anyswarm doctor --mode existing --smoke.');
207
260
  }
208
- const report = { ok: false, benchmark: frontierRevision, pumpkin: pumpkinPin, budget, resources, checks, home, modelInference: 'not-attempted' };
209
- if (checks.some(row => !row.ok))
261
+ const savedManifest = await readFile(join(home, 'prepared.json'), 'utf8').then(raw => JSON.parse(raw)).catch(() => undefined);
262
+ check('task-materials', !savedManifest || savedManifest.dockerContext === dockerContext, !savedManifest ? 'The pinned task will be downloaded and checked during prepare.'
263
+ : savedManifest.dockerContext === dockerContext ? 'Prepared manifest found. Prepare verifies its material and image identities before reuse.'
264
+ : 'The state directory belongs to another Docker context. Set ANYSWARM_AUTORESEARCH_STATE_DIR to a fresh directory for this context.');
265
+ const report = { ok: checks.every(row => row.ok), benchmark: frontierRevision, pumpkin: pumpkinPin, budget, resources, checks, home,
266
+ model: { provider: model?.provider || null, id: model?.model || null }, modelInference: 'not-attempted' };
267
+ if (!report.ok || checkOnly)
210
268
  return report;
211
269
  signal.throwIfAborted();
212
270
  const state = paths(home, dockerContext);
213
271
  const lock = join(home, 'preparing');
214
272
  await mkdir(lock, { mode: 0o700 }).catch(() => { throw new Error('FrontierCS-2 preparation is already active. Inspect the preparing directory before retrying.'); });
215
273
  try {
274
+ progress('Checking pinned FrontierCS-2 source and Git LFS material.');
216
275
  const source = await sourceAt(home, signal);
217
276
  const sourceDigest = await treeDigest(source);
218
277
  const current = await loadPrepared(home).catch(() => undefined);
@@ -226,6 +285,7 @@ export async function prepareFrontier({ signal, progress, home = frontierHome()
226
285
  return { ...report, ok: true, reused: true, prepared: current.saved };
227
286
  }
228
287
  await writeFile(state.config, pumpkinConfig(dockerContext), { mode: 0o600 });
288
+ await preparePumpkin(source, state.cache, signal);
229
289
  progress('Validating official FrontierCS-2 reference and building pinned judge images.');
230
290
  const reference = await referenceRecord(source, state, home, signal);
231
291
  await mkdir(state.source, { recursive: true, mode: 0o700 });
@@ -236,7 +296,7 @@ export async function prepareFrontier({ signal, progress, home = frontierHome()
236
296
  const bridgeRuns = await mkdtemp(join(home, 'bridge-check-'));
237
297
  const bridge = new FrontierRun(state, bridgeRuns);
238
298
  try {
239
- await bridge.start(120, signal, prepareTimeout);
299
+ await bridge.start(120, signal, prepareTimeout, budget.maxEvaluations);
240
300
  if (JSON.stringify(bridge.judges) !== JSON.stringify(reference.judges))
241
301
  throw new Error('Submission bridge changed the official judge images');
242
302
  }
@@ -245,12 +305,21 @@ export async function prepareFrontier({ signal, progress, home = frontierHome()
245
305
  throw new Error(`Pumpkin submission role cleanup is pending: ${bridge.record}`);
246
306
  }
247
307
  const manifest = { version: 2, revision: frontierRevision, pumpkin: pumpkinPin, sourceDigest,
248
- bridgeDigest: await treeDigest(state.source), bridgeImage: bridge.imageId, dockerContext, budget, referenceRecord: reference.record, judges: reference.judges };
308
+ bridgeDigest: await treeDigest(state.source), bridgeImage: bridge.imageId, dockerContext, referenceRecord: reference.record, judges: reference.judges };
249
309
  const pending = join(lock, 'prepared.json');
250
310
  await writeFile(pending, JSON.stringify(manifest, null, 2) + '\n', { mode: 0o600 });
251
311
  await rename(pending, join(home, 'prepared.json'));
252
312
  return { ...report, ok: true, reused: false, prepared: manifest };
253
313
  }
314
+ catch (error) {
315
+ signal.throwIfAborted();
316
+ const detail = error instanceof Error ? error.message : 'Preparation failed. Check the pinned task and Docker logs.';
317
+ const remedy = detail.includes("can't be tagged") && detail.includes('No such image')
318
+ ? 'Check the selected Docker daemon and Buildx. Try Docker Engine 29 with the official Buildx plugin and the containerd image store, then rerun prepare.\n'
319
+ : '';
320
+ check('prepare-materials', false, remedy + detail);
321
+ return { ...report, ok: false };
322
+ }
254
323
  finally {
255
324
  await rm(lock, { recursive: true, force: true });
256
325
  }
@@ -1,102 +1,8 @@
1
1
  import { type HarnessContext, type HarnessJson } from '@anyswarm/core';
2
- import { type ResearchConfiguration } from './config.js';
3
2
  export declare function resolveWorkspace({ cwd, configuration }: {
4
3
  cwd: string;
5
4
  configuration?: unknown;
6
5
  }): string;
7
- export declare const slashActions: {
8
- prepare({ args, signal, progress }: {
9
- args: string;
10
- signal: AbortSignal;
11
- progress?: (message: string) => void;
12
- }): Promise<{
13
- ok: boolean;
14
- benchmark: string;
15
- pumpkin: string;
16
- budget: import("./config.js").ResearchBudget;
17
- resources: {
18
- roles: {
19
- role: string;
20
- count: number;
21
- cpu: number;
22
- memoryGiB: number;
23
- }[];
24
- cpu: number;
25
- memoryGiB: number;
26
- diskGiB: number;
27
- gpu: number;
28
- };
29
- checks: import("./prepare.js").Check[];
30
- home: string;
31
- modelInference: 'not-attempted';
32
- } | {
33
- kind: 'action-report';
34
- exitCode: number;
35
- result: {
36
- ok: boolean;
37
- benchmark: string;
38
- pumpkin: string;
39
- budget: import("./config.js").ResearchBudget;
40
- resources: {
41
- roles: {
42
- role: string;
43
- count: number;
44
- cpu: number;
45
- memoryGiB: number;
46
- }[];
47
- cpu: number;
48
- memoryGiB: number;
49
- diskGiB: number;
50
- gpu: number;
51
- };
52
- checks: import("./prepare.js").Check[];
53
- home: string;
54
- modelInference: 'not-attempted';
55
- } | {
56
- benchmark: string;
57
- pumpkin: string;
58
- budget: import("./config.js").ResearchBudget;
59
- resources: {
60
- roles: {
61
- role: string;
62
- count: number;
63
- cpu: number;
64
- memoryGiB: number;
65
- }[];
66
- cpu: number;
67
- memoryGiB: number;
68
- diskGiB: number;
69
- gpu: number;
70
- };
71
- checks: import("./prepare.js").Check[];
72
- home: string;
73
- modelInference: 'not-attempted';
74
- ok: boolean;
75
- reused: boolean;
76
- prepared: {
77
- version: 2;
78
- revision: string;
79
- pumpkin: string;
80
- sourceDigest: string;
81
- bridgeDigest: string;
82
- bridgeImage: string;
83
- judges: import("./frontiercs2.js").JudgeImages;
84
- dockerContext: string;
85
- referenceRecord: string;
86
- budget: import("./config.js").ResearchBudget;
87
- };
88
- };
89
- }>;
90
- demo({ args, signal }: {
91
- args: string;
92
- signal: AbortSignal;
93
- }): Promise<{
94
- kind: 'start-run';
95
- cwd: string;
96
- prompt: string;
97
- configuration: ResearchConfiguration;
98
- }>;
99
- };
100
6
  declare const _default: {
101
7
  apiVersion: 1;
102
8
  id: string;
@@ -105,7 +11,12 @@ declare const _default: {
105
11
  reason: string;
106
12
  result: HarnessJson;
107
13
  acceptance: HarnessJson;
108
- artifacts: HarnessJson[];
14
+ artifacts: ({
15
+ path: string;
16
+ sha256: string;
17
+ } | {
18
+ path: string;
19
+ })[];
109
20
  cleanup: {
110
21
  status: "complete" | "pending";
111
22
  pending?: HarnessJson | undefined;