@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
@@ -19,11 +19,11 @@
19
19
  },
20
20
  {
21
21
  "path": "examples/autoresearch/project.ts",
22
- "sha256": "7d34929d3952a6e7f4df5a29ec6167ddafbd92f812132632ffa8e9fb985fd6f6"
22
+ "sha256": "e4bd23e5168e8dcdb70e9b095085cc10f424634309ce317321e81541b3cf02ec"
23
23
  },
24
24
  {
25
25
  "path": "examples/autoresearch/config.ts",
26
- "sha256": "a4ea74dacbaee15fc369b030abf460b208d934989de94c2adec113ff50f9685f"
26
+ "sha256": "5a62900f4ab09ba8969ffd3ff565cb5505dd495f83f1f59e9052192c2cf1efcf"
27
27
  },
28
28
  {
29
29
  "path": "examples/services/agent-control/run.ts",
@@ -43,19 +43,19 @@
43
43
  },
44
44
  {
45
45
  "path": "examples/first-harness/harness.ts",
46
- "sha256": "82d0528f2631c0e0de81739e4368f7209ee81d8fb84926a925e6ae4357db45e6"
46
+ "sha256": "cbbdd8769420d24e48cca63c5392d3b374049988b3e68ad37e185af744f7eb0c"
47
47
  },
48
48
  {
49
49
  "path": "examples/first-harness/handoff.ts",
50
- "sha256": "ad81100cf91b3a3bc58d2e6dd524780ec6ffa1fc4640eba3c1ca2c71dfeeae75"
50
+ "sha256": "47d9cd699707929b8fa8014292bc3c7bd9ffac789917f82fc221acae17a51068"
51
51
  },
52
52
  {
53
53
  "path": "examples/parallel-swarm/harness.ts",
54
- "sha256": "e6e92f11e4ac8cd48617c0b6edabff4a9827b89796b405140126dba9267a7b42"
54
+ "sha256": "f82faf8dca74bb6f78c65561ef7bf5137d716df730275c34f04edd735e65d60d"
55
55
  },
56
56
  {
57
57
  "path": "examples/parallel-swarm/board-service.ts",
58
- "sha256": "ade9f2c31d191739b73fa12e1b7a7b2f15dbec2b6e1d2fa14e0669d6f756a1e0"
58
+ "sha256": "a3905c35211b3f16b88efc9ea869e7d9212f321b2a5a2e8576215bfb7396b4aa"
59
59
  },
60
60
  {
61
61
  "path": "test-support/taskpool-legacy/capability-profile.ts",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  {
77
77
  "path": "src/core/index.ts",
78
- "sha256": "a78f159604cb21264b987079532cf295832420374297d976e1f838e536a103d0"
78
+ "sha256": "29736fc683275f3df70b1766af60185d36a453a0e69a3eefbbd20578963d1495"
79
79
  },
80
80
  {
81
81
  "path": "src/core/bridge.ts",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  {
89
89
  "path": "src/core/sandbox/opensandbox-backend.ts",
90
- "sha256": "a7aa96e86f1d193929123872432d23454882a014839cd95f23d2a19a3c5cf634"
90
+ "sha256": "14eb1d758acbc59ecad2aba7d12c288b5ff33d224710973e59543bd678d9cc10"
91
91
  },
92
92
  {
93
93
  "path": "scripts/opensandbox-agent-worker.ts",
@@ -320,15 +320,21 @@
320
320
  {
321
321
  "path": "examples/autoresearch/project.ts",
322
322
  "anchor": "? `",
323
- "line": 318,
323
+ "line": 351,
324
324
  "sha256": "d6dd74e7a80cd89685befe2a715c6fa092fedde92ee4d4365376576ee8dce32e"
325
325
  },
326
326
  {
327
327
  "path": "examples/autoresearch/project.ts",
328
328
  "anchor": ": '",
329
- "line": 319,
329
+ "line": 349,
330
330
  "sha256": "bf91b7aaaf231d0ba9c6e805bd6bc2adf6bedb8db2e39acd94baba14b25f4ae6"
331
331
  },
332
+ {
333
+ "path": "examples/autoresearch/project.ts",
334
+ "anchor": "? '",
335
+ "line": 348,
336
+ "sha256": "94f4c98c8d1fcbaa6d5e514aed0392310dcfbcb974d43af2e16068194ffbc6c3"
337
+ },
332
338
  {
333
339
  "path": "examples/autoresearch/project.ts",
334
340
  "anchor": "return `",
@@ -338,7 +344,7 @@
338
344
  {
339
345
  "path": "examples/autoresearch/config.ts",
340
346
  "anchor": "export const demoGoal = '",
341
- "line": 39,
347
+ "line": 44,
342
348
  "sha256": "7d89f3c7b930c66cdbf0d103d9d1537fe8562cbddfdfc39241657c3786f5771a"
343
349
  },
344
350
  {
@@ -758,38 +764,38 @@
758
764
  {
759
765
  "path": "examples/first-harness/harness.ts",
760
766
  "anchor": "addedSystemPrompt: '",
761
- "line": 26,
762
- "sha256": "13a34f145feb381c6fd3f6f08be0a4fbacdd0c5f91a50f94e9561d88d5c878f6"
767
+ "line": 54,
768
+ "sha256": "7e4b430eac1bb389a6ab2fb7db25b8b10eeb0733c42398ca1dbd7541467026b6"
763
769
  },
764
770
  {
765
771
  "path": "examples/first-harness/harness.ts",
766
772
  "anchor": "addedSystemPrompt: '",
767
- "line": 30,
768
- "sha256": "3a0542d4cd34195627be5c8452929e2c379ceaba4be7bb1b689bb7c3d9d508ed"
773
+ "line": 58,
774
+ "sha256": "44b23cc7d4249314026240b0658534f9a70bf25754b4aef6790b7ca5d9d65fe0"
769
775
  },
770
776
  {
771
777
  "path": "examples/first-harness/harness.ts",
772
778
  "anchor": "runInput(runtime, publisher.id, [",
773
- "line": 50,
774
- "sha256": "ba61e775a7276c3e3442bfc68cc11f3d4cd785b83c2ebcc0ce7ca36efe778f7a"
779
+ "line": 70,
780
+ "sha256": "df09264cfdc45575ae230d9c582dc3937adcb6a421d42c878bd6cabb5e1425a8"
775
781
  },
776
782
  {
777
783
  "path": "examples/first-harness/harness.ts",
778
784
  "anchor": "runInput(runtime, writer.id, `",
779
- "line": 73,
780
- "sha256": "35164d4ba8c2ae6c773e9008eee6fb1ab3c1ad7df93714b595df8f477756746c"
785
+ "line": 95,
786
+ "sha256": "452e1273e11f255c9fc48e58094cdd7c36983bd878c136d66dca74f5a7352a60"
781
787
  },
782
788
  {
783
789
  "path": "examples/first-harness/handoff.ts",
784
790
  "anchor": "description: '",
785
791
  "line": 11,
786
- "sha256": "8e0e92e8d6a4ff95f96f52a08f96243283f39b7c2401dc3434e82952eadff8d2"
792
+ "sha256": "96743ef4513f58980e705662fb8a06cd53ab90dc0336b9e61291b0097983fc76"
787
793
  },
788
794
  {
789
795
  "path": "examples/first-harness/handoff.ts",
790
796
  "anchor": "publish: { description: '",
791
797
  "line": 13,
792
- "sha256": "ee04a6bec5ef6ff1acefd770b8a678ebdd96b1a60d0fdcaa5bb580abd0bd8111"
798
+ "sha256": "1dae3a18cb3e0fd360c989a142358da99c3968d7cffe18585099ea2d3c0ec5f1"
793
799
  },
794
800
  {
795
801
  "path": "examples/first-harness/handoff.ts",
@@ -799,45 +805,63 @@
799
805
  },
800
806
  {
801
807
  "path": "examples/parallel-swarm/harness.ts",
802
- "anchor": "const researcherPrompt = '",
803
- "line": 11,
804
- "sha256": "28c5c1fe98518e01f78d6c31ddd71da1eaac9a4ac6ef52b376695b1d3238e870"
808
+ "anchor": "const researchFocuses = ",
809
+ "line": 12,
810
+ "sha256": "4c3b6ed29b2b0218881035eac9522209de4d45cecb2dbbc26c86ce8e25bd9d63"
805
811
  },
806
812
  {
807
813
  "path": "examples/parallel-swarm/harness.ts",
808
- "anchor": "const synthesizerPrompt = '",
809
- "line": 12,
810
- "sha256": "f77121f6b888808184bb7d32004d3c524229552db39a1d3f605d686ef93c53aa"
814
+ "anchor": "runInput(runtime, peer.id,\n `",
815
+ "line": 56,
816
+ "sha256": "1ed54ed3cb8b926a71a3bfc50adb911829d5bedeff758f07651763a825bb9aa0"
817
+ },
818
+ {
819
+ "path": "examples/parallel-swarm/harness.ts",
820
+ "anchor": "runInput(runtime, synth.id, `",
821
+ "line": 70,
822
+ "sha256": "640002335d93b25081c58ab7d6f9c0d30cc8d3e70a4fedf927ec7c2578c9fcc9"
823
+ },
824
+ {
825
+ "path": "examples/parallel-swarm/harness.ts",
826
+ "anchor": "const researcherPrompt = ",
827
+ "line": 10,
828
+ "sha256": "7234006e346a8a204914da276d3ce2503519a6befe2d0f51dd15bacbdcc2b807"
811
829
  },
812
830
  {
813
831
  "path": "examples/parallel-swarm/harness.ts",
814
- "anchor": "const reviewInput = '",
832
+ "anchor": "const synthesizerPrompt = ",
833
+ "line": 11,
834
+ "sha256": "8a4d03a76ab401c90c027d5c2d173e777e5a5b87a9326ba4873e1002c569bd19"
835
+ },
836
+ {
837
+ "path": "examples/parallel-swarm/harness.ts",
838
+ "anchor": "const reviewInput = ",
815
839
  "line": 13,
816
- "sha256": "c512ebd0bb62d7f869ebf66fa536b627ecbf5c6249079c1cb62465a4edaf4c05"
840
+ "sha256": "aefdcf2daa6146484207923bb2021c5652a26359c321f2d99d184fe9b009494e"
817
841
  },
818
842
  {
819
843
  "path": "examples/parallel-swarm/harness.ts",
820
- "anchor": "const synthesisInput = '",
844
+ "anchor": "const synthesisInput = ",
821
845
  "line": 14,
822
- "sha256": "e865a2ac842028bc239a69905c248349e0f7eef4000c69ad4e18b666cfd9d1e6"
846
+ "sha256": "cbea4fe1685f590669d8079a49769a1695049f665b6afb638b26a5c9a2b65390"
823
847
  },
824
848
  {
825
849
  "path": "examples/parallel-swarm/board-service.ts",
826
- "anchor": "purpose: '",
827
- "line": 28,
828
- "sha256": "8913a617881e975bfa9fd68e42a4c3e6176e7270899cc0e20dcdf4b8a3ff315e"
850
+ "anchor": "purpose: ",
851
+ "line": 44,
852
+ "sha256": "911e0d4c340a4729c11cd251020041cea219a80ac28a8100638184934b8f259f"
829
853
  },
830
854
  {
831
855
  "path": "examples/parallel-swarm/board-service.ts",
832
- "anchor": "description: '",
833
- "line": 35,
834
- "sha256": "08ebca875208b37bba52997d2f12371b73a8822fe8f42d6379d7e2364c49f7f2"
856
+ "anchor": "description: ",
857
+ "line": 51,
858
+ "sha256": "db7fd29b7072840a051ba1c3b28a8ad02c7c033d1c04786c5430d34198cc8413"
835
859
  },
836
860
  {
837
861
  "path": "examples/parallel-swarm/board-service.ts",
838
- "anchor": "description: '",
839
- "line": 55,
840
- "sha256": "c761c3e2a734d9722c292d404513cea142d77c6e94ac9ddfccb78d6a3488d59a"
862
+ "anchor": "description: ",
863
+ "line": 73,
864
+ "sha256": "e1a9abdbdf2be2cba8f5732f534cc8db4873f88c012092e2ee32bf8657a5b42e"
841
865
  },
842
866
  {
843
867
  "path": "examples/services/persistent-board/run.ts",
@@ -922,28 +946,28 @@
922
946
  },
923
947
  {
924
948
  "path": "examples/first-harness/harness.ts",
925
- "line": 50,
949
+ "line": 70,
926
950
  "expression": "await runInput(runtime, publisher.id, ["
927
951
  },
928
952
  {
929
953
  "path": "examples/first-harness/harness.ts",
930
- "line": 73,
931
- "expression": "await runInput(runtime, writer.id, `The user chose channel ${channel}. Run the following exact command with the bash tool in your workspace:"
954
+ "line": 95,
955
+ "expression": "await runInput(runtime, writer.id, `The user chose channel ${channel}. Run the following exact command with your command execution tool in your workspace:"
932
956
  },
933
957
  {
934
958
  "path": "examples/parallel-swarm/harness.ts",
935
- "line": 55,
936
- "expression": "runInput(runtime, peer.id, context.input.prompt, { ...turn, requestId: `research-${index + 1}` })));"
959
+ "line": 56,
960
+ "expression": "await Promise.all(peers.map((peer, index) => runInput(runtime, peer.id,"
937
961
  },
938
962
  {
939
963
  "path": "examples/parallel-swarm/harness.ts",
940
- "line": 59,
941
- "expression": "runInput(runtime, peer.id, reviewInput, { ...turn, requestId: `review-${index + 1}` })));"
964
+ "line": 61,
965
+ "expression": "await Promise.all(peers.map((peer, index) => runInput(runtime, peer.id, reviewInput,"
942
966
  },
943
967
  {
944
968
  "path": "examples/parallel-swarm/harness.ts",
945
- "line": 64,
946
- "expression": "await runInput(runtime, synth.id, synthesisInput, { ...turn, requestId: 'synthesize' });"
969
+ "line": 70,
970
+ "expression": "await runInput(runtime, synth.id, `${synthesisInput}\\n\\n${context.input.prompt}`, { ...turn, requestId: 'synthesize' });"
947
971
  },
948
972
  {
949
973
  "path": "examples/services/persistent-board/run.ts",
@@ -1059,7 +1083,7 @@
1059
1083
  "generated_bodies": [
1060
1084
  {
1061
1085
  "path": "docs/architecture/prompts/22-autoresearch.md",
1062
- "sha256": "a4f73778553daa56703356d6c1ac9c7e9ae502d23f0f1b5b910cb5006cb3f56f"
1086
+ "sha256": "34d4c3bf9b7570d4a6229b38e8c1f5077217bb4705bb24cb20df20a0db7d1c37"
1063
1087
  },
1064
1088
  {
1065
1089
  "path": "docs/architecture/prompts/02-task-loop-and-tools.md",
@@ -1119,11 +1143,11 @@
1119
1143
  },
1120
1144
  {
1121
1145
  "path": "docs/architecture/prompts/11-first-sdk-harness.md",
1122
- "sha256": "b755eb14b7e0e705a9c8aea80e51f05715e934131f12d8924e9265270af3f828"
1146
+ "sha256": "e03bfaaed1c712f5cf2a858cfbf5791cfad5ab3cc6e3c2582d7a72e7d7139625"
1123
1147
  },
1124
1148
  {
1125
1149
  "path": "docs/architecture/prompts/16-parallel-swarm.md",
1126
- "sha256": "5b4acd4c52161c6a0f15e17c0ac490e1e686cff3a1c688832e113deb9d5b2193"
1150
+ "sha256": "9467b27bc570c1dde946818571b788bdd7e330ca7baa9c77e5fe548409e4f022"
1127
1151
  },
1128
1152
  {
1129
1153
  "path": "docs/architecture/prompts/17-persistent-board.md",