@bastani/atomic 0.10.18 → 0.10.19-alpha.1

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 (334) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +27 -5
  3. package/dist/_shared/config-binary-install-SNFYFXWB.js +70 -0
  4. package/dist/_shared/config-binary-install-SNFYFXWB.js.map +1 -0
  5. package/dist/_shared/dist-KOELCESV.js +2 -2
  6. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  7. package/dist/_shared/lib-4PES5P4V.js +2 -2
  8. package/dist/_shared/{mode-interactive-sdk-7KXUFI2F.js → mode-interactive-sdk-JXBZ3H27.js} +434 -11
  9. package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -0
  10. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +21 -6
  11. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  12. package/dist/_shared/mode-shared-2QJSCUM6.js +7 -6
  13. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  14. package/dist/_shared/p0-cli-BB45ZQY6.js +56 -3
  15. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
  16. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  17. package/dist/_shared/runtime-O4KCSG4C.js +3 -3
  18. package/dist/_shared/{sdk-OHKMDJ74.js → sdk-BHX35EPK.js} +40 -9
  19. package/dist/_shared/sdk-BHX35EPK.js.map +1 -0
  20. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  21. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  22. package/dist/_shared/{startup-0-0-OV6RAEAP.js → startup-0-0-4EDVBK5P.js} +464 -7
  23. package/dist/_shared/startup-0-0-4EDVBK5P.js.map +1 -0
  24. package/dist/_shared/{startup-0-1-EZAJI6RE.js → startup-0-1-H5IXVRXQ.js} +85 -7
  25. package/dist/_shared/startup-0-1-H5IXVRXQ.js.map +1 -0
  26. package/dist/_shared/startup-0-2-YZZOC22D.js +4 -4
  27. package/dist/_shared/startup-0-3-DE2NCS6A.js +4 -4
  28. package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
  29. package/dist/_shared/startup-0-5-HZX3ZPTP.js +44 -11
  30. package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
  31. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  32. package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
  33. package/dist/_shared/startup-14-0-MLX36RBG.js +3 -3
  34. package/dist/_shared/startup-15-0-YUKGAC63.js +3 -3
  35. package/dist/_shared/{startup-15-1-4S7FLMNG.js → startup-15-1-WQZBOTMZ.js} +70 -28
  36. package/dist/_shared/{startup-15-1-4S7FLMNG.js.map → startup-15-1-WQZBOTMZ.js.map} +1 -1
  37. package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
  38. package/dist/_shared/{startup-8-1-LZFXSD3Z.js → startup-8-1-QZMXUGHI.js} +242 -20
  39. package/dist/_shared/startup-8-1-QZMXUGHI.js.map +1 -0
  40. package/dist/_shared/storage-command-7MGXLJGZ.js +5 -5
  41. package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
  42. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  43. package/dist/_shared/team-DOQKICG2.js +2 -2
  44. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  45. package/dist/binary-self-update.js +281 -0
  46. package/dist/binary-self-update.js.map +1 -0
  47. package/dist/builtin/intercom/index.bundle.mjs +2 -1
  48. package/dist/builtin/intercom/package.json +1 -1
  49. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  50. package/dist/builtin/mcp/package.json +1 -1
  51. package/dist/builtin/subagents/CHANGELOG.md +15 -0
  52. package/dist/builtin/subagents/package.json +1 -1
  53. package/dist/builtin/subagents/skills/agent-browser/SKILL.md +1 -1
  54. package/dist/builtin/subagents/skills/impeccable/SKILL.md +3 -3
  55. package/dist/builtin/subagents/skills/impeccable/reference/audit.md +2 -2
  56. package/dist/builtin/subagents/skills/impeccable/reference/critique.md +3 -3
  57. package/dist/builtin/subagents/skills/impeccable/reference/generate.md +1 -1
  58. package/dist/builtin/subagents/skills/impeccable/reference/init.md +0 -2
  59. package/dist/builtin/subagents/skills/impeccable/reference/live.md +4 -2
  60. package/dist/builtin/subagents/skills/impeccable/reference/new-work-comp.md +1 -1
  61. package/dist/builtin/subagents/skills/impeccable/reference/new-work-world.md +1 -1
  62. package/dist/builtin/subagents/skills/impeccable/scripts/VERSION +1 -1
  63. package/dist/builtin/subagents/skills/impeccable/scripts/engine-checksums.txt +5 -5
  64. package/dist/builtin/subagents/skills/impeccable/scripts/impeccable +28 -5
  65. package/dist/builtin/subagents/skills/impeccable/scripts/impeccable.cmd +11 -2
  66. package/dist/builtin/subagents/skills/impeccable/scripts/live-browser.js +10 -6
  67. package/dist/builtin/subagents/skills/research-codebase/SKILL.md +13 -19
  68. package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
  69. package/dist/builtin/subagents/skills/subagent/SKILL.md +7 -7
  70. package/dist/builtin/subagents/skills/workflow/SKILL.md +98 -0
  71. package/dist/builtin/subagents/src/extension/index.bundle.mjs +2 -1
  72. package/dist/builtin/web-access/index.bundle.mjs +2 -1
  73. package/dist/builtin/web-access/package.json +1 -1
  74. package/dist/cli/args.js +2 -2
  75. package/dist/cli/auth-cli.code.js +3 -3
  76. package/dist/cli/auth-cli.impl.js +3 -3
  77. package/dist/cli/auth-cli.js +3 -3
  78. package/dist/cli/blueprint-command.code.js +2 -2
  79. package/dist/cli/blueprint-command.impl.js +3 -3
  80. package/dist/cli/blueprint-command.js +3 -3
  81. package/dist/cli/intercom-command.code.js +2 -2
  82. package/dist/cli/intercom-command.impl.js +3 -3
  83. package/dist/cli/intercom-command.js +3 -3
  84. package/dist/cli/list-models.code.js +2 -2
  85. package/dist/cli/list-models.impl.js +3 -3
  86. package/dist/cli/list-models.js +3 -3
  87. package/dist/cli/session-picker.code.js +1 -1
  88. package/dist/cli/session-picker.impl.js +3 -3
  89. package/dist/cli/session-picker.js +3 -3
  90. package/dist/cli/startup-ui.code.js +1 -1
  91. package/dist/cli/startup-ui.impl.js +3 -3
  92. package/dist/cli/startup-ui.js +3 -3
  93. package/dist/cli/storage-command.impl.js +3 -3
  94. package/dist/cli/storage-command.js +3 -3
  95. package/dist/cli/storage-search-session.code.js +3 -3
  96. package/dist/cli/storage-search-session.impl.js +3 -3
  97. package/dist/cli/storage-search-session.js +3 -3
  98. package/dist/cli/team-command.code.js +1 -1
  99. package/dist/cli/team-command.impl.js +3 -3
  100. package/dist/cli/team-command.js +3 -3
  101. package/dist/cli/usage-command.js +22 -0
  102. package/dist/cli/usage-command.js.map +1 -0
  103. package/dist/cli.js +2 -2
  104. package/dist/config-binary-install.js +3 -0
  105. package/dist/config-binary-install.js.map +1 -0
  106. package/dist/core/agent-session-services.js +3 -0
  107. package/dist/core/agent-session-services.js.map +1 -0
  108. package/dist/core/debug.impl.js +3 -3
  109. package/dist/core/debug.js +3 -3
  110. package/dist/core/export-html/card-projection.impl.js +3 -3
  111. package/dist/core/export-html/card-projection.js +3 -3
  112. package/dist/core/export-html/index.code.js +2 -2
  113. package/dist/core/export-html/index.impl.js +3 -3
  114. package/dist/core/export-html/index.js +3 -3
  115. package/dist/core/export-html/json-spans.impl.js +3 -3
  116. package/dist/core/export-html/json-spans.js +3 -3
  117. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  118. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  119. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  120. package/dist/core/export-html/tool-renderer.js +3 -3
  121. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  122. package/dist/core/extensions/jiti-loader.js +3 -3
  123. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  124. package/dist/core/extensions/jiti-static-loader.js +3 -3
  125. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  126. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  127. package/dist/core/extensions/loader-host-modules.js +3 -3
  128. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  129. package/dist/core/extensions/runner-context.js +2 -2
  130. package/dist/core/intercom-broker-control-host.code.js +1 -1
  131. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  132. package/dist/core/intercom-broker-control-host.js +3 -3
  133. package/dist/core/intercom-broker-control.code.js +3 -3
  134. package/dist/core/intercom-broker-control.impl.js +3 -3
  135. package/dist/core/intercom-broker-control.js +3 -3
  136. package/dist/core/{legacy-workflow-files.d.ts → legacy-workflows.d.ts} +1 -1
  137. package/dist/core/model-runtime.d.ts +8 -2
  138. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  139. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  140. package/dist/core/package-manager-storage-adapters.js +3 -3
  141. package/dist/core/resource-loader-core.d.ts +1 -1
  142. package/dist/core/resource-loader-internals.d.ts +1 -1
  143. package/dist/core/resource-loader-types.d.ts +1 -1
  144. package/dist/core/resource-loader-types.js.map +1 -1
  145. package/dist/core/sdk.code.js +4 -4
  146. package/dist/core/sdk.impl.js +3 -3
  147. package/dist/core/sdk.js +3 -3
  148. package/dist/core/session-manager-core.js +5 -5
  149. package/dist/core/session-manager-list.impl.js +3 -3
  150. package/dist/core/session-manager-list.js +3 -3
  151. package/dist/core/session-manager.code.js +1 -1
  152. package/dist/core/session-manager.impl.js +3 -3
  153. package/dist/core/session-manager.js +3 -3
  154. package/dist/core/session-storage.code.js +1 -1
  155. package/dist/core/session-storage.impl.js +3 -3
  156. package/dist/core/session-storage.js +3 -3
  157. package/dist/core/settings-manager.js +5 -0
  158. package/dist/core/settings-manager.js.map +1 -0
  159. package/dist/core/storage/index.js +2 -2
  160. package/dist/core/storage/node-sqlite-thread.js +2 -2
  161. package/dist/core/storage/node-sqlite.js +2 -2
  162. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  163. package/dist/core/storage/offline-snapshot-file.js +3 -3
  164. package/dist/core/storage/provider.js +2 -2
  165. package/dist/core/storage/selection.js +2 -2
  166. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  167. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  168. package/dist/core/storage/session/branch-fork-source.js +3 -3
  169. package/dist/core/storage/session/card-view.impl.js +3 -3
  170. package/dist/core/storage/session/card-view.js +3 -3
  171. package/dist/core/storage/session/child-reader.code.js +3 -3
  172. package/dist/core/storage/session/child-reader.impl.js +3 -3
  173. package/dist/core/storage/session/child-reader.js +3 -3
  174. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  175. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  176. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  177. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  178. package/dist/core/storage/session/expanded-child-details.js +3 -3
  179. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  180. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  181. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  182. package/dist/core/storage/session/fork-row-index.js +3 -3
  183. package/dist/core/storage/session/fork-staging.code.js +2 -2
  184. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  185. package/dist/core/storage/session/fork-staging.js +3 -3
  186. package/dist/core/storage/session/fork-window.code.js +3 -3
  187. package/dist/core/storage/session/fork-window.impl.js +3 -3
  188. package/dist/core/storage/session/fork-window.js +3 -3
  189. package/dist/core/storage/session/history-pages.impl.js +3 -3
  190. package/dist/core/storage/session/history-pages.js +3 -3
  191. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  192. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  193. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  194. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  195. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  196. package/dist/core/storage/session/memory-session-store.js +3 -3
  197. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  198. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  199. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  200. package/dist/core/storage/session/released-history-files.code.js +2 -2
  201. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  202. package/dist/core/storage/session/released-history-files.js +3 -3
  203. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  204. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  205. package/dist/core/storage/session/session-resume.impl.js +3 -3
  206. package/dist/core/storage/session/session-resume.js +3 -3
  207. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  208. package/dist/core/storage/session/snapshot-cut.js +3 -3
  209. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  210. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  211. package/dist/core/storage/session/snapshot-history.js +3 -3
  212. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  213. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  214. package/dist/core/storage/session/sql-session-store.js +3 -3
  215. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  216. package/dist/core/storage/session/tree-outline.js +3 -3
  217. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  218. package/dist/core/storage/session/tree-presentation.js +3 -3
  219. package/dist/core/storage/storage-status.impl.js +3 -3
  220. package/dist/core/storage/storage-status.js +3 -3
  221. package/dist/core/storage/team.impl.js +3 -3
  222. package/dist/core/storage/team.js +3 -3
  223. package/dist/core/structured-output/index.code.js +1 -1
  224. package/dist/core/structured-output/index.impl.js +3 -3
  225. package/dist/core/structured-output/index.js +3 -3
  226. package/dist/core/subscription-usage-credential.d.ts +2 -0
  227. package/dist/core/subscription-usage-endpoints.d.ts +54 -0
  228. package/dist/core/subscription-usage.d.ts +55 -0
  229. package/dist/core/subscription-usage.js +3 -0
  230. package/dist/core/subscription-usage.js.map +1 -0
  231. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  232. package/dist/core/tasks/task-completion-entry.js +3 -3
  233. package/dist/core/tasks/task-file-history.code.js +3 -3
  234. package/dist/core/tasks/task-file-history.impl.js +3 -3
  235. package/dist/core/tasks/task-file-history.js +3 -3
  236. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  237. package/dist/core/tasks/task-reference-archive.js +3 -3
  238. package/dist/core/tasks/task-reference-identity.js +3 -3
  239. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  240. package/dist/core/tasks/task-reference-stream.js +3 -3
  241. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  242. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  243. package/dist/core/tasks/task-view-source.code.js +1 -1
  244. package/dist/core/tasks/task-view-source.impl.js +3 -3
  245. package/dist/core/tasks/task-view-source.js +3 -3
  246. package/dist/core/tools/edit-diff.d.ts +4 -6
  247. package/dist/core/tools/read-url.code.js +3 -3
  248. package/dist/core/tools/read-url.impl.js +3 -3
  249. package/dist/core/tools/read-url.js +3 -3
  250. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  251. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  252. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  253. package/dist/core/worktree-snapshot/errors.js +3 -3
  254. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  255. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  256. package/dist/extensions/codemode/execute.code.js +1 -1
  257. package/dist/extensions/codemode/execute.impl.js +3 -3
  258. package/dist/extensions/codemode/execute.js +3 -3
  259. package/dist/extensions/codemode/renderer.code.js +2 -2
  260. package/dist/extensions/codemode/renderer.impl.js +3 -3
  261. package/dist/extensions/codemode/renderer.js +3 -3
  262. package/dist/extensions/mcp/cli.code.js +2 -2
  263. package/dist/extensions/mcp/cli.impl.js +3 -3
  264. package/dist/extensions/mcp/cli.js +3 -3
  265. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  266. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  267. package/dist/extensions/mcp/cli.lazy.js +3 -3
  268. package/dist/extensions/mcp/runtime.code.js +1 -1
  269. package/dist/extensions/mcp/runtime.impl.js +3 -3
  270. package/dist/extensions/mcp/runtime.js +3 -3
  271. package/dist/index.d.ts +3 -0
  272. package/dist/index.js +7 -7
  273. package/dist/main-first-time-setup.code.js +1 -1
  274. package/dist/main-first-time-setup.impl.js +3 -3
  275. package/dist/main-first-time-setup.js +3 -3
  276. package/dist/main.js +2 -2
  277. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  278. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  279. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  280. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  281. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  282. package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -0
  283. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  284. package/dist/modes/interactive/interactive-mode.js +1 -1
  285. package/dist/modes/interactive-engine/isolated-runtime.d.ts +3 -0
  286. package/dist/modes/print-mode.js +1 -1
  287. package/dist/modes/rpc/rpc-client-api.d.ts +3 -0
  288. package/dist/modes/rpc/rpc-types.d.ts +25 -0
  289. package/dist/package-manager-cli.code.js +31 -8
  290. package/dist/package-manager-cli.code.js.map +1 -1
  291. package/dist/package-manager-cli.impl.js +3 -3
  292. package/dist/package-manager-cli.js +3 -3
  293. package/dist/rpc-entry.js +2 -2
  294. package/dist/startup-files.json +1 -1
  295. package/dist/startup-stages/12.js +1 -1
  296. package/dist/startup-stages/4.js +1 -1
  297. package/dist/startup-stages/6.js +1 -1
  298. package/dist/subscription-usage-sdk.d.ts +9 -0
  299. package/dist/utils/changelog.d.ts +1 -0
  300. package/dist/utils/startup-database-spare.code.js +2 -2
  301. package/dist/utils/startup-database-spare.impl.js +3 -3
  302. package/dist/utils/startup-database-spare.js +3 -3
  303. package/dist/utils/tools-manager.code.js +1 -1
  304. package/dist/utils/tools-manager.impl.js +3 -3
  305. package/dist/utils/tools-manager.js +3 -3
  306. package/docs/changelog.mdx +41 -6
  307. package/docs/containerization.md +17 -15
  308. package/docs/docs.json +1 -0
  309. package/docs/getting-started/installation.md +132 -80
  310. package/docs/guides/subscription-usage.md +133 -0
  311. package/docs/guides/team-setup.md +14 -3
  312. package/docs/guides.md +3 -0
  313. package/docs/index.md +18 -6
  314. package/docs/intercom/operations.md +1 -1
  315. package/docs/orchestration/migrating-workflows.md +16 -10
  316. package/docs/orchestration/patterns.md +8 -2
  317. package/docs/orchestration.md +17 -8
  318. package/docs/quickstart.md +7 -15
  319. package/docs/reference/cli.md +29 -22
  320. package/docs/rpc/protocol.md +9 -1
  321. package/docs/rpc.md +1 -1
  322. package/docs/sdk/reference.md +5 -1
  323. package/docs/skills.md +20 -4
  324. package/docs/slash-commands.md +3 -2
  325. package/docs/tools.md +57 -12
  326. package/docs/usage.md +1 -0
  327. package/docs/windows.md +4 -4
  328. package/package.json +9 -9
  329. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +0 -1
  330. package/dist/_shared/sdk-OHKMDJ74.js.map +0 -1
  331. package/dist/_shared/startup-0-0-OV6RAEAP.js.map +0 -1
  332. package/dist/_shared/startup-0-1-EZAJI6RE.js.map +0 -1
  333. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +0 -1
  334. package/dist/builtin/subagents/skills/workflow-files/SKILL.md +0 -28
@@ -3,10 +3,10 @@ import { existsSync, readFileSync } from "node:fs";
3
3
  import { join, resolve } from "node:path";
4
4
  import { pathToFileURL } from "node:url";
5
5
  import { APP_NAME, VERSION } from "./p0-cli-BB45ZQY6.js";
6
- import { getBuiltinPackageLocations } from "./startup-0-0-OV6RAEAP.js";
7
- import { SettingsManager, adoptInlineSnapshotBlobs, inlineSnapshotBlobs, resolveSessionStore, selectSessionStorageWithSettings, sessionSnapshotBlobs } from "./startup-8-1-LZFXSD3Z.js";
6
+ import { getBuiltinPackageLocations } from "./startup-0-0-4EDVBK5P.js";
7
+ import { SettingsManager, adoptInlineSnapshotBlobs, inlineSnapshotBlobs, resolveSessionStore, selectSessionStorageWithSettings, sessionSnapshotBlobs } from "./startup-8-1-QZMXUGHI.js";
8
8
  import { mkdir as mkdir$1 } from "node:fs/promises";
9
- import { SESSIONS_TRANSFER_DIRECTORY, StorageImportIncompleteError, StorageTransferError, assertSessionBlobStore, inlineToolOutput, isStorageImportIncompleteError, isStorageTransferError, readTransferDirectory, storeSessionBlobs, takeInlineToolOutput, transferFile, writeLinesAtomically } from "./startup-0-1-EZAJI6RE.js";
9
+ import { SESSIONS_TRANSFER_DIRECTORY, StorageImportIncompleteError, StorageTransferError, assertSessionBlobStore, inlineToolOutput, isStorageImportIncompleteError, isStorageTransferError, readTransferDirectory, storeSessionBlobs, takeInlineToolOutput, transferFile, writeLinesAtomically } from "./startup-0-1-H5IXVRXQ.js";
10
10
  import { SessionConflictError, SessionExistsError } from "../core/storage/session/errors.js";
11
11
  import { JsonlSessionStore, isCurrentSessionHeader } from "./startup-8-0-34CBHPZH.js";
12
12
  import "./settings-startup-HXQLSUWM.js";
@@ -1237,7 +1237,7 @@ function __atomicOnDemandFailed(error, feature) {
1237
1237
  return (async () => {
1238
1238
  const root = new URL("../", import.meta.url);
1239
1239
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
1240
- const key = `${root.href}#0.10.18`;
1240
+ const key = `${root.href}#0.10.19-alpha.1`;
1241
1241
  let release = releases.get(key);
1242
1242
  if (release === undefined) {
1243
1243
  const current = (async () => {
@@ -1265,7 +1265,7 @@ function __atomicOnDemandFailed(error, feature) {
1265
1265
  } catch {
1266
1266
  // No installation to read, as in a bundle of the package: the release the process runs decides.
1267
1267
  }
1268
- const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
1268
+ const updatedTo = typeof installed === "string" && installed !== "0.10.19-alpha.1" ? installed : running !== undefined && running.version !== "0.10.19-alpha.1" ? "0.10.19-alpha.1" : undefined;
1269
1269
  if (updatedTo === undefined) throw error;
1270
1270
  const application = typeof running?.name === "string" ? running.name : "atomic";
1271
1271
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -4,7 +4,7 @@ import { isAbsolute, join } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { setLongTimeout } from "../__atomic_timers/index.js";
6
6
  import { ENV_SESSION_DIR, isBunBinary, resolvePath } from "./p0-cli-BB45ZQY6.js";
7
- import { SettingsManager, selectSessionStorageWithSettings } from "./startup-8-1-LZFXSD3Z.js";
7
+ import { SettingsManager, selectSessionStorageWithSettings } from "./startup-8-1-QZMXUGHI.js";
8
8
  import { ProjectTrustStore, hasProjectTrustInputs } from "./p1b-elig-BY2G5BUE.js";
9
9
  import { adapterOpenContext, loadStorageAdapter, resolveAdapterOptions, storageSelectionKey } from "../core/storage/provider.js";
10
10
  import { StorageAdapterLoadError, describeStorageError } from "../core/storage/errors.js";
@@ -517,7 +517,7 @@ function __atomicOnDemandFailed(error, feature) {
517
517
  return (async () => {
518
518
  const root = new URL("../", import.meta.url);
519
519
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
520
- const key = `${root.href}#0.10.18`;
520
+ const key = `${root.href}#0.10.19-alpha.1`;
521
521
  let release = releases.get(key);
522
522
  if (release === undefined) {
523
523
  const current = (async () => {
@@ -545,7 +545,7 @@ function __atomicOnDemandFailed(error, feature) {
545
545
  } catch {
546
546
  // No installation to read, as in a bundle of the package: the release the process runs decides.
547
547
  }
548
- const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
548
+ const updatedTo = typeof installed === "string" && installed !== "0.10.19-alpha.1" ? installed : running !== undefined && running.version !== "0.10.19-alpha.1" ? "0.10.19-alpha.1" : undefined;
549
549
  if (updatedTo === undefined) throw error;
550
550
  const application = typeof running?.name === "string" ? running.name : "atomic";
551
551
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -31,7 +31,7 @@ function __atomicOnDemandFailed(error, feature) {
31
31
  return (async () => {
32
32
  const root = new URL("../", import.meta.url);
33
33
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
34
- const key = `${root.href}#0.10.18`;
34
+ const key = `${root.href}#0.10.19-alpha.1`;
35
35
  let release = releases.get(key);
36
36
  if (release === undefined) {
37
37
  const current = (async () => {
@@ -59,7 +59,7 @@ function __atomicOnDemandFailed(error, feature) {
59
59
  } catch {
60
60
  // No installation to read, as in a bundle of the package: the release the process runs decides.
61
61
  }
62
- const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
62
+ const updatedTo = typeof installed === "string" && installed !== "0.10.19-alpha.1" ? installed : running !== undefined && running.version !== "0.10.19-alpha.1" ? "0.10.19-alpha.1" : undefined;
63
63
  if (updatedTo === undefined) throw error;
64
64
  const application = typeof running?.name === "string" ? running.name : "atomic";
65
65
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -5,8 +5,8 @@ import { basename, dirname, join, relative, resolve, sep } from "node:path";
5
5
  import { setLongTimeout } from "../__atomic_timers/index.js";
6
6
  import { getAgentDir } from "./p0-cli-BB45ZQY6.js";
7
7
  import { parseJsonFileContent } from "./p1-shared-RG5I5LJ6.js";
8
- import { prepareLockTakeover } from "./startup-0-0-OV6RAEAP.js";
9
- import { FileSettingsStorage, SettingsManager, resolvePackageStorageAdapter, selectSessionStorageWithSettings, writeSettingsFile } from "./startup-8-1-LZFXSD3Z.js";
8
+ import { prepareLockTakeover } from "./startup-0-0-4EDVBK5P.js";
9
+ import { FileSettingsStorage, SettingsManager, resolvePackageStorageAdapter, selectSessionStorageWithSettings, writeSettingsFile } from "./startup-8-1-QZMXUGHI.js";
10
10
  import { describeStorageSelection, openAdapterSelectionDatabase, projectTrust, selectIntercomStorage, selectSharedStorage } from "./storage-status-K7PX2RXA.js";
11
11
  import { StorageConfigError, StorageError, TeamProfileError, TeamProfileTimeoutError, describeStorageError } from "../core/storage/errors.js";
12
12
  import { defaultSessionDatabasePath, storageHomeDir } from "../core/storage/file-identity.js";
@@ -88,7 +88,7 @@ function __atomicOnDemandFailed(error, feature) {
88
88
  return (async () => {
89
89
  const root = new URL("../", import.meta.url);
90
90
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
91
- const key = `${root.href}#0.10.18`;
91
+ const key = `${root.href}#0.10.19-alpha.1`;
92
92
  let release = releases.get(key);
93
93
  if (release === undefined) {
94
94
  const current = (async () => {
@@ -116,7 +116,7 @@ function __atomicOnDemandFailed(error, feature) {
116
116
  } catch {
117
117
  // No installation to read, as in a bundle of the package: the release the process runs decides.
118
118
  }
119
- const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
119
+ const updatedTo = typeof installed === "string" && installed !== "0.10.19-alpha.1" ? installed : running !== undefined && running.version !== "0.10.19-alpha.1" ? "0.10.19-alpha.1" : undefined;
120
120
  if (updatedTo === undefined) throw error;
121
121
  const application = typeof running?.name === "string" ? running.name : "atomic";
122
122
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -0,0 +1,281 @@
1
+ import "./_shared/rolldown-runtime-BGM3D5V3.js";
2
+ import { createHash } from "node:crypto";
3
+ import { constants, createReadStream, createWriteStream } from "node:fs";
4
+ import { access, mkdtemp, readFile, rm } from "node:fs/promises";
5
+ import { tmpdir } from "node:os";
6
+ import { join } from "node:path";
7
+ import { Readable } from "node:stream";
8
+ import { pipeline } from "node:stream/promises";
9
+ import { require_semver } from "./_shared/startup-0-5-HZX3ZPTP.js";
10
+ import { APP_NAME, ENV_PACKAGE_DIR, ENV_SELF_UPDATE_COMMAND, getEnvNames, processLaunch, processLaunchAsync, spawnLaunchedProcess, spawnLaunchedProcessSync } from "./_shared/p0-cli-BB45ZQY6.js";
11
+ import { findBinaryInstall } from "./_shared/config-binary-install-SNFYFXWB.js";
12
+ import { detectLinuxLibc, isOfflineModeEnabled } from "./_shared/startup-0-1-H5IXVRXQ.js";
13
+ import { fetchWithRetry } from "./_shared/startup-0-0-4EDVBK5P.js";
14
+ // dist/binary-self-update.js
15
+ var import_semver = require_semver();
16
+ const RELEASES = "https://github.com/bastani-inc/atomic/releases";
17
+ const RELEASES_API = "https://api.github.com/repos/bastani-inc/atomic/releases";
18
+ const RELEASE_TIMEOUT = { timeoutMs: 1e4 };
19
+ const DOWNLOAD_TIMEOUT = { timeoutMs: 9e5 };
20
+ const RELEASE_TAG = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-alpha\.[1-9]\d*)?$/;
21
+ function isReleaseTag(tag) {
22
+ return RELEASE_TAG.test(tag) && (0, import_semver.valid)(tag) === tag;
23
+ }
24
+ async function checkWritable(install) {
25
+ for (const path of [
26
+ install.root,
27
+ join(install.root, "versions"),
28
+ ...install.binDir ? [install.binDir] : []
29
+ ]) try {
30
+ await access(path, constants.W_OK);
31
+ } catch (error) {
32
+ throw new Error(`The install directory is not writable: ${path}`, { cause: error });
33
+ }
34
+ }
35
+ async function githubMetadata(url) {
36
+ const token = new URL(url).origin === "https://api.github.com" && (process.env.GITHUB_TOKEN || process.env.GH_TOKEN);
37
+ const headers = {
38
+ accept: "application/vnd.github+json",
39
+ ...token ? { authorization: `Bearer ${token}` } : {}
40
+ };
41
+ return fetchWithRetry(url, {
42
+ headers,
43
+ redirect: "error"
44
+ }, RELEASE_TIMEOUT, async (response) => {
45
+ if (!response.ok) {
46
+ await response.body?.cancel();
47
+ throw new Error(`Could not resolve the GitHub release (HTTP ${response.status}).`);
48
+ }
49
+ return await response.json();
50
+ });
51
+ }
52
+ function requestedVersion(options) {
53
+ return options.version ?? (options.prerelease ? void 0 : process.env.ATOMIC_VERSION || void 0);
54
+ }
55
+ async function resolveBinaryRelease(options) {
56
+ if (isOfflineModeEnabled()) throw new Error("Cannot update the release install in offline mode.");
57
+ const releases = options.releases ?? RELEASES;
58
+ const api = options.api ?? RELEASES_API;
59
+ const requested = requestedVersion(options);
60
+ if (requested !== void 0) {
61
+ if (!isReleaseTag(requested)) throw new Error("Expected a release version like 1.2.3 or 1.2.3-alpha.1.");
62
+ return requested;
63
+ }
64
+ if (options.prerelease) {
65
+ const tag = (await githubMetadata(`${api}?per_page=100`)).flatMap((release) => !release.draft && release.tag_name && isReleaseTag(release.tag_name) ? [release.tag_name] : []).sort((a, b) => (0, import_semver.compare)(b, a))[0];
66
+ if (tag) return tag;
67
+ } else {
68
+ const tag = await fetchWithRetry(`${releases}/latest`, { redirect: "manual" }, RELEASE_TIMEOUT, async (response) => {
69
+ await response.body?.cancel();
70
+ const location = response.headers.get("location");
71
+ if (response.status < 300 || response.status >= 400 || !location) return void 0;
72
+ const target = new URL(location, releases);
73
+ const prefix = `${new URL(releases).pathname}/tag/`;
74
+ if (target.origin !== new URL(releases).origin || !target.pathname.startsWith(prefix)) return void 0;
75
+ return target.pathname.slice(prefix.length);
76
+ }).catch(() => void 0);
77
+ if (tag && isReleaseTag(tag) && !tag.includes("-")) return tag;
78
+ const release = await githubMetadata(`${api}/latest`);
79
+ if (release.tag_name && isReleaseTag(release.tag_name) && !release.tag_name.includes("-")) return release.tag_name;
80
+ }
81
+ throw new Error("No published Atomic release was found for that channel.");
82
+ }
83
+ function releaseAsset() {
84
+ const platform = process.platform;
85
+ let arch = process.arch;
86
+ const env = {
87
+ ...process.env,
88
+ LC_ALL: "C"
89
+ };
90
+ if (platform === "win32") {
91
+ const architecture = (env.PROCESSOR_ARCHITEW6432 || env.PROCESSOR_ARCHITECTURE || "").toUpperCase();
92
+ if (architecture === "ARM64") arch = "arm64";
93
+ if (architecture === "AMD64" || architecture === "X86_64") arch = "x64";
94
+ } else if (platform === "darwin" && arch === "x64") {
95
+ const result = spawnLaunchedProcessSync(processLaunch("/usr/sbin/sysctl", { env }), ["-in", "hw.optional.arm64"], {
96
+ encoding: "utf8",
97
+ stdio: [
98
+ "ignore",
99
+ "pipe",
100
+ "ignore"
101
+ ],
102
+ env
103
+ });
104
+ if (result.status === 0 && result.stdout.trim() === "1") arch = "arm64";
105
+ }
106
+ if (arch === "x64" || arch === "arm64") {
107
+ if (platform === "win32") return `atomic-windows-${arch}.zip`;
108
+ if (platform === "darwin") return `atomic-darwin-${arch}.tar.gz`;
109
+ if (platform === "linux") {
110
+ const suffix = detectLinuxLibc().family === "musl" ? "-musl" : "";
111
+ return `atomic-linux-${arch}${suffix}.tar.gz`;
112
+ }
113
+ }
114
+ throw new Error(`No Atomic release archive is available for ${platform} ${arch}.`);
115
+ }
116
+ async function download(url, name, path) {
117
+ await fetchWithRetry(url, void 0, DOWNLOAD_TIMEOUT, async (response) => {
118
+ if (!response.ok || !response.body) {
119
+ await response.body?.cancel();
120
+ throw new Error(`Could not download ${name} (HTTP ${response.status}).`);
121
+ }
122
+ await pipeline(Readable.from(response.body), createWriteStream(path, { flags: "wx" }));
123
+ });
124
+ }
125
+ async function verifyArchive(archive, manifest, asset) {
126
+ const rows = (await readFile(manifest, "utf8")).split(/\r?\n/).map((line) => line.trim().split(/\s+/)).filter((fields) => fields[1]?.replace(/^\*/, "") === asset);
127
+ if (rows.length !== 1) throw new Error(`SHA256SUMS must contain exactly one row for ${asset}.`);
128
+ const [expected, , extra] = rows[0];
129
+ if (!/^[\da-f]{64}$/i.test(expected) || extra !== void 0) throw new Error(`SHA256SUMS row for ${asset} is malformed.`);
130
+ const hash = createHash("sha256");
131
+ for await (const chunk of createReadStream(archive)) hash.update(chunk);
132
+ if (hash.digest("hex") !== expected.toLowerCase()) throw new Error(`Checksum verification failed for ${asset}.`);
133
+ }
134
+ async function run(command, args, env, failure) {
135
+ const launch = await processLaunchAsync(command, { env });
136
+ await new Promise((resolve, reject) => {
137
+ const child = spawnLaunchedProcess(launch, args, {
138
+ env,
139
+ stdio: [
140
+ "ignore",
141
+ "inherit",
142
+ "inherit"
143
+ ]
144
+ });
145
+ child.once("error", (error) => reject(new Error(`${failure}: ${error.message}`, { cause: error })));
146
+ child.once("close", (code, signal) => {
147
+ if (code === 0) resolve();
148
+ else reject(/* @__PURE__ */ new Error(`${failure} (${signal ?? `exit code ${code}`}).`));
149
+ });
150
+ });
151
+ }
152
+ const EXTRACT_WINDOWS_INSTALLER = `
153
+ $ErrorActionPreference = 'Stop'
154
+ Add-Type -AssemblyName System.IO.Compression.FileSystem
155
+ $zip = [IO.Compression.ZipFile]::OpenRead($env:ATOMIC_UPDATE_ARCHIVE)
156
+ try {
157
+ $entry = $zip.GetEntry('install.ps1')
158
+ if ($null -eq $entry) { throw 'This release has no self-update installer; install this version manually.' }
159
+ [IO.Compression.ZipFileExtensions]::ExtractToFile($entry, $env:ATOMIC_UPDATE_INSTALLER)
160
+ }
161
+ finally { $zip.Dispose() }
162
+ `;
163
+ async function installArchive(install, archive, dir, tag, executable) {
164
+ const env = {
165
+ ...process.env,
166
+ ATOMIC_INSTALL_DIR: install.root,
167
+ ATOMIC_BIN_DIR: install.binDir ?? join(install.root, "bin")
168
+ };
169
+ for (const name of [
170
+ ...getEnvNames(ENV_PACKAGE_DIR),
171
+ "GITHUB_TOKEN",
172
+ "GH_TOKEN"
173
+ ]) delete env[name];
174
+ const retry = `Retry \`${APP_NAME} update\` or reinstall with the official release installer.`;
175
+ const installFailure = "Could not update the release install; retry the update or reinstall with the official release installer";
176
+ if (install.binDir) {
177
+ const installer = join(dir, "install.ps1");
178
+ const command = "powershell.exe";
179
+ const args = [
180
+ "-NoLogo",
181
+ "-NoProfile",
182
+ "-NonInteractive"
183
+ ];
184
+ await run(command, [
185
+ ...args,
186
+ "-EncodedCommand",
187
+ Buffer.from(EXTRACT_WINDOWS_INSTALLER, "utf16le").toString("base64")
188
+ ], {
189
+ ...env,
190
+ ATOMIC_UPDATE_ARCHIVE: archive,
191
+ ATOMIC_UPDATE_INSTALLER: installer
192
+ }, "Could not read the installer from the verified release archive");
193
+ await run(command, [
194
+ ...args,
195
+ "-ExecutionPolicy",
196
+ "Bypass",
197
+ "-File",
198
+ installer,
199
+ "-Ref",
200
+ tag,
201
+ "-UpdateFrom",
202
+ install.executable,
203
+ "-UpdateArchive",
204
+ archive
205
+ ], env, installFailure);
206
+ } else {
207
+ await run("tar", [
208
+ "-xzf",
209
+ archive,
210
+ "-C",
211
+ dir,
212
+ "atomic/install.sh"
213
+ ], env, "Could not read the installer from the verified release archive; install this version manually");
214
+ await run("sh", [
215
+ join(dir, "atomic", "install.sh"),
216
+ "--ref",
217
+ tag,
218
+ "--update-from",
219
+ install.executable,
220
+ "--update-archive",
221
+ archive
222
+ ], env, installFailure);
223
+ }
224
+ const installed = await findBinaryInstall(executable);
225
+ const failed = `Could not update ${APP_NAME} to ${tag}:`;
226
+ if (!installed || installed.root !== install.root) throw new Error(`${failed} could not find the active launcher in this installation. ${retry}`);
227
+ if (installed.activeExecutable === install.activeExecutable || installed.activeVersion !== tag) throw new Error(`${failed} the current launcher still points to ${installed.activeVersion}. ${retry}`);
228
+ const version = spawnLaunchedProcessSync(processLaunch(installed.activeExecutable, { env }), ["--version"], {
229
+ encoding: "utf8",
230
+ stdio: [
231
+ "ignore",
232
+ "pipe",
233
+ "ignore"
234
+ ],
235
+ timeout: 1e4,
236
+ env
237
+ });
238
+ const reported = version.status === 0 ? version.stdout.trim() : void 0;
239
+ if (reported !== tag) throw new Error(`${failed} the active binary ${reported ? `reports ${reported}` : "did not report a version"}. ${retry}`);
240
+ }
241
+ /** Verify a release before giving its installer access to the live installation. */
242
+ async function updateBinaryInstall(options = {}) {
243
+ if (isOfflineModeEnabled()) throw new Error("Cannot update the release install in offline mode.");
244
+ const install = await findBinaryInstall(options.executable);
245
+ if (!install || !isReleaseTag(install.version)) throw new Error(`This ${APP_NAME} binary is not running from an installer-managed release. Reinstall with the official release installer, or set ${ENV_SELF_UPDATE_COMMAND} or selfUpdateCommand to use your own update command.`);
246
+ if (install.executable !== install.activeExecutable) throw new Error(`This is not the active ${APP_NAME} binary. Restart ${APP_NAME} and rerun the update.`);
247
+ const releases = options.releases ?? RELEASES;
248
+ const version = await resolveBinaryRelease(options);
249
+ const comparison = (0, import_semver.compare)(version, install.version);
250
+ if (!options.force && process.env.ATOMIC_FORCE_INSTALL !== "1" && (requestedVersion(options) ? comparison === 0 : comparison <= 0)) return {
251
+ status: "current",
252
+ version: install.version
253
+ };
254
+ await checkWritable(install);
255
+ const asset = releaseAsset();
256
+ const base = process.env.ATOMIC_RELEASE_BASE_URL || `${releases}/download/${version}`;
257
+ const dir = await mkdtemp(join(tmpdir(), "atomic-release-update-"));
258
+ try {
259
+ const archive = join(dir, asset);
260
+ const manifest = join(dir, "SHA256SUMS");
261
+ await download(`${base}/SHA256SUMS`, "SHA256SUMS", manifest);
262
+ await download(`${base}/${asset}`, asset, archive);
263
+ await verifyArchive(archive, manifest, asset);
264
+ await installArchive(install, archive, dir, version, options.executable);
265
+ return {
266
+ status: "updated",
267
+ previous: install.version,
268
+ version
269
+ };
270
+ } finally {
271
+ await rm(dir, {
272
+ recursive: true,
273
+ force: true,
274
+ maxRetries: 4,
275
+ retryDelay: 100
276
+ });
277
+ }
278
+ }
279
+ export { resolveBinaryRelease, updateBinaryInstall };
280
+
281
+ //# sourceMappingURL=binary-self-update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binary-self-update.js","names":["valid","compare"],"sources":["../src/binary-self-update.ts"],"mappings":";;;;;;;;;;;;;;;AAoBA,MAAM,WAAW;AACjB,MAAM,eAAe;AACrB,MAAM,kBAAkB,EAAE,WAAW,IAAM;AAC3C,MAAM,mBAAmB,EAAE,WAAW,IAAW;AACjD,MAAM,cAAc;AAcpB,SAAS,aAAa,KAAW;CAChC,OAAO,YAAY,KAAK,GAAG,MAAA,GAAKA,cAAAA,MAAAA,CAAM,GAAG,MAAM;AAChD;AAEA,eA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AE,QAAQ;GAAW,UAAU,QAAQ;GAAS;EAAO;CAC/D,UAAU;EACT,MAAM,GAAG,KAAK;GAAE,WAAW;GAAM,OAAO;GAAM,YAAY;GAAG,YAAY;EAAG,CAAE;CAC/E;AACD"}
@@ -7,7 +7,7 @@ import * as __atomicHostImport1 from "@bastani/atomic-ai";
7
7
  if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
8
8
  if (missing.length > 0) {
9
9
  const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
10
- if (__atomicHostImport0.VERSION !== "0.10.18") missing.unshift(application + " was updated to 0.10.18 while this session was running; restart it to keep using the intercom extension.");
10
+ if (__atomicHostImport0.VERSION !== "0.10.19-alpha.1") missing.unshift(application + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using the intercom extension.");
11
11
  throw new Error(missing.join("\n"));
12
12
  }
13
13
  }
@@ -2465,6 +2465,7 @@ var CORE_COMMAND_NAMES;
2465
2465
  var init_builtin_command_names = __esm(() => {
2466
2466
  CORE_COMMAND_NAMES = [
2467
2467
  "settings",
2468
+ "usage",
2468
2469
  "model",
2469
2470
  "tree",
2470
2471
  "thinking",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/intercom",
3
- "version": "0.10.18",
3
+ "version": "0.10.19-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic extension for direct messaging and coordination between parent, child, and peer agent sessions.",
6
6
  "contributors": [
@@ -6,7 +6,7 @@ import * as __atomicHostImport0 from "@bastani/atomic";
6
6
  if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
7
7
  if (missing.length > 0) {
8
8
  const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
9
- if (__atomicHostImport0.VERSION !== "0.10.18") missing.unshift(application + " was updated to 0.10.18 while this session was running; restart it to keep using the mcp extension.");
9
+ if (__atomicHostImport0.VERSION !== "0.10.19-alpha.1") missing.unshift(application + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using the mcp extension.");
10
10
  throw new Error(missing.join("\n"));
11
11
  }
12
12
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/mcp",
3
- "version": "0.10.18",
3
+ "version": "0.10.19-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic's MCP integration for server connections, OAuth, tools, resources, and terminal management.",
6
6
  "contributors": [
@@ -2,6 +2,21 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.19-alpha.1] - 2026-11-28
6
+
7
+ ### Breaking Changes
8
+
9
+ - Atomic renamed the bundled `workflow-files` skill to `workflow`. The old name no longer works. Replace `/skill:workflow-files` with `/skill:workflow` in saved prompts. Use `skill://workflow` in skill links and `workflow` in subagent skill lists ([#6854](https://github.com/bastani-inc/atomic/pull/6854)).
10
+
11
+ ### Changed
12
+
13
+ - The `impeccable` skill stops waiting when a live preview stays idle and keeps the choices you already made. Setup no longer starts by asking you to sign in ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
14
+
15
+ ### Fixed
16
+
17
+ - The `research-codebase` skill tells the agent how to wait for existing research tasks without starting them again ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
18
+ - The `subagent` skill now explains when a subagent should reuse the parent conversation and when to give one agent responsibility for editing files ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
19
+
5
20
  ## [0.10.16] - 2026-11-27
6
21
 
7
22
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/subagents",
3
- "version": "0.10.18",
3
+ "version": "0.10.19-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic extension for delegating tasks to subagents with parallel execution.",
6
6
  "contributors": [
@@ -4,7 +4,7 @@ description: Browser automation CLI for AI agents. Use when the user needs to in
4
4
  hidden: true
5
5
  metadata:
6
6
  github-path: skills/agent-browser
7
- github-ref: refs/tags/v0.44.0
7
+ github-ref: refs/tags/v0.45.0
8
8
  github-repo: https://github.com/vercel-labs/agent-browser
9
9
  github-tree-sha: d75a393c9a371295c6d6be46c34938e76ef21184
10
10
  name: agent-browser
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: impeccable
3
3
  description: "Use when the user wants to design, redesign, shape, critique, audit, polish, simplify, harden, animate, or otherwise improve a frontend interface: websites, landing pages, dashboards, product UI, components, forms, settings, onboarding, empty states, and native iOS or Android screens. Handles UX review, hierarchy, layout, typography, color, motion, UX copy, accessibility, responsive behavior, edge cases, and capturing or documenting design systems (DESIGN.md, tokens). Also for making bland UI bolder, loud UI quieter, or ambitious visual effects. Not for backend-only or non-UI tasks."
4
- version: 4.10.0
4
+ version: 4.11.1
5
5
  license: Apache 2.0
6
6
  metadata:
7
7
  github-repo: https://github.com/pbakaus/impeccable
8
8
  github-path: .pi/skills/impeccable
9
- github-ref: refs/tags/skill-v4.10.0
10
- github-tree-sha: 7599aea6ba9028d2f04369f6955c697fede04e0d
9
+ github-ref: refs/tags/skill-v4.11.1
10
+ github-tree-sha: 3936d8c7fab681cdc1a731047a7c3762d313f33b
11
11
  allowed-tools:
12
12
  - Bash(npx impeccable *)
13
13
  - Bash(.pi/skills/impeccable/scripts/impeccable *)
@@ -150,8 +150,8 @@ Keep P3s few: a long tail of minor issues buries the ones that matter.
150
150
  After the report is delivered, save a copy so the findings outlive this conversation: write it, from the score table through Recommended Actions, to a temp file, then run the write command with the scores as metadata and delete the temp file:
151
151
 
152
152
  ```bash
153
- IMPECCABLE_REPORT_META='{"target":"<user phrasing, or .>","total_score":<n>,"max_score":20,"p0_count":<n>,"p1_count":<n>,"p2_count":<n>,"p3_count":<n>}' \
153
+ IMPECCABLE_REPORT_META='{"target":"<user phrasing, or .>","title":"<page title, or empty>","total_score":<n>,"max_score":20,"p0_count":<n>,"p1_count":<n>,"p2_count":<n>,"p3_count":<n>}' \
154
154
  .pi/skills/impeccable/scripts/impeccable audit-storage write "<resolved target, or . for the whole project>" <temp-file>
155
155
  ```
156
156
 
157
- The helper prints the path it wrote, which you mention in one line; `REPORTS OFF:` means the project opted out, and you mention nothing. Saving never replaces delivering: the user reads the report in chat first.
157
+ Use the observed `<title>` or first h1 for `title`; leave it empty when unknown. The helper prints the path it wrote, which you mention in one line. Pass any `Saved to Impeccable: <url>` or `Not saved to Impeccable: <reason>` line on to the person word for word; `REPORTS OFF:` means the project opted out, and you mention nothing. Saving never replaces delivering: the user reads the report in chat first.
@@ -209,14 +209,14 @@ Skip this step if the Setup slug was null (vague or root-level target), and say
209
209
 
210
210
  1. **Write the body to a temp file** so you can pipe it to the helper. Use the full critique report (heuristic table, design-specificity verdict, priority issues, persona red flags, minor observations, and questions), but stop before the "Ask the User" / "Recommended Actions" sections that come later.
211
211
 
212
- This is a copy of the report you already delivered above, for later commands to read. It is not delivery. If you find yourself composing the report for the first time inside this heredoc, you have skipped Deliver the Report; go back and send it.
212
+ Copy the delivered report for later commands to read. If you are composing it for the first time in this heredoc, you skipped Deliver the Report; go back and send it.
213
213
 
214
214
  2. **Pass the structured metadata** through `IMPECCABLE_CRITIQUE_META` (JSON), then run the write command:
215
215
  ```bash
216
- IMPECCABLE_CRITIQUE_META='{"target":"<user phrasing>","total_score":<n>,"max_score":<n>,"na_heuristics":"<comma-separated numbers, or empty>","p0_count":<n>,"p1_count":<n>}' \
216
+ IMPECCABLE_CRITIQUE_META='{"target":"<user phrasing>","title":"<page title, or empty>","url":"<http(s) URL you viewed, or empty>","pr":"<PR number checked out, or empty>","heuristics":[{"n":<1-10>,"score":<0-4>}],"total_score":<n>,"max_score":<n>,"na_heuristics":"<comma-separated numbers, or empty>","p0_count":<n>,"p1_count":<n>,"p2_count":<n>,"p3_count":<n>}' \
217
217
  .pi/skills/impeccable/scripts/impeccable critique-storage write "<resolved target>" <body-file>
218
218
  ```
219
- `max_score` is the applicable maximum from the heuristic table (40 when every heuristic applied), so a later run can tell a renormalized total from a full one. For a local file target, the helper also records an exact content fingerprint so polish can distinguish the assessed bytes from later edits without relying on Git state or timestamps. The helper prints the absolute path it wrote, and sometimes one more line (`Saved to Impeccable: <link>`, `Not saved to Impeccable: <reason>` or `Keep this critique's history: impeccable login`); put that line in the close word for word. Leave that file on disk. Polish closes it; this run does not. `REPORTS OFF:` instead means the project opted out of saved reports: skip the trend read and carry on.
219
+ Use the observed `<title>` or first h1 for `title`; omit N/A heuristics. `max_score` is the table’s applicable maximum (40 if all apply), distinguishing renormalized totals. For local files the helper records an exact content fingerprint, so polish detects later edits without Git or timestamps. The helper prints the absolute saved path, sometimes followed by a line (`Saved to Impeccable: <link>` or `Not saved to Impeccable: <reason>`); put that line in the close word for word, also from detect (JSON `savedTo`: `Saved to Impeccable: <url>`). Leave that file on disk. Polish closes it; this run does not. `REPORTS OFF:` instead means the project opted out of saved reports: skip the trend read and carry on.
220
220
 
221
221
  3. **Delete the temp body file** after the write attempt completes, whether the write succeeded or failed. If deletion fails, mention `temp-file cleanup failed: <reason>` briefly in the final output, but do not block the critique.
222
222
 
@@ -77,7 +77,7 @@ The event is a standard `generate` event: the picked element's context, a prefli
77
77
  .pi/skills/impeccable/scripts/impeccable live-poll --reply EVENT_ID done --file src/App.jsx --then-poll
78
78
  ```
79
79
 
80
- This replies done (the browser mounts the variants) and then blocks until the user's choice arrives, so run it the way your harness runs a long wait: **Claude Code** in the foreground with your tool's longest timeout (600000 ms), so you are paused until the choice arrives; **Codex** in a yielded foreground exec. Never pass a short `--timeout=`. While it runs there is nothing else to do: never sleep and never poll its output on a timer; a harness that backgrounds it wakes you when it returns. `{"type":"timeout"}` means the user has not chosen yet: run `live-poll` again and keep waiting. If the edit fails after the browser flipped to GENERATING, `--reply EVENT_ID error "Short reason"` (without `--then-poll`) so the bar resets.
80
+ This replies done (the browser mounts the variants) and then blocks until the user's choice arrives, so run it the way your harness runs a long wait: **Claude Code** in the foreground with your tool's longest timeout (600000 ms), so you are paused until the choice arrives; **Codex** in a yielded foreground exec. Never pass a short `--timeout=`. While it runs there is nothing else to do: never sleep and never poll its output on a timer; a harness that backgrounds it wakes you when it returns. `{"type":"timeout"}` means the user has not chosen yet: run `live-poll` again, at most twice (about 30 minutes of waiting in all). After the third timeout, stop polling: tell the user the variants are still live on the page, to Accept or Discard there and then tell you, and end your turn; one `live-poll` collects the queued choice, and Step 4 runs from there. If the edit fails after the browser flipped to GENERATING, `--reply EVENT_ID error "Short reason"` (without `--then-poll`) so the bar resets.
81
81
 
82
82
  Then tell the user, in one line, where their variants are: *"Three [bolder] variants are live on [the pricing cards]: cycle with the floating bar's arrows, adjust the Tune knobs, and Accept the keeper."*
83
83
 
@@ -24,8 +24,6 @@ Form a platform hypothesis: `web`, `ios`, `android`, or `adaptive` (one product
24
24
 
25
25
  ## Step 3: Interview for product truth
26
26
 
27
- **Your first message opens with the sign-in when it's missing.** If `impeccable context` printed `ACCOUNT: not signed in` (or printed no `ACCOUNT:` line and `.pi/skills/impeccable/scripts/impeccable whoami` prints `Not signed in`), the first line of your first message to the person, before any question, structured or plain-chat, is: "Run `npx impeccable login` to keep your critiques and audits in your Impeccable account. It's free, and creates the account if you're new." Say it once per init. Signed in, say nothing about it.
28
-
29
27
  Ask the user directly to clarify what you cannot infer. Ask only about material gaps the repository and original request do not answer with strong evidence.
30
28
 
31
29
  Use the structured question tool when available; otherwise ask and wait. Keep rounds to at most three focused questions and require one real answer or approval round before writing a new PRODUCT.md. Confirm inferences.
@@ -21,7 +21,7 @@ Execute in order. No step skipped, no step reordered. Every tool output in live
21
21
 
22
22
  Harness policy:
23
23
  - **Claude Code**: run the poll as a **background task** (no short timeout); the harness notifies you on completion. Do not block the shell.
24
- - **Codex**: default one-shot poll in a **yielded foreground exec session**. No `&`, no `--stream`, never leave Live without an active foreground poll. Starting the poll is not enough: SERVICE it (keep reading the exec session until it returns an event). Never announce "waiting for the user" and idle; a yielded poll nobody reads is a dead session, and the user's Go sits unanswered.
24
+ - **Codex**: default one-shot poll in a **yielded foreground exec session**. No `&`, no `--stream`, never leave Live without an active foreground poll, except at a Pause. Starting the poll is not enough: SERVICE it (keep reading the exec session until it returns an event). Outside a Pause, never announce "waiting for the user" and idle; a yielded poll nobody reads is a dead session, and the user's Go sits unanswered.
25
25
  - **Other harnesses**: one-shot foreground unless you know stdout reliably returns when a shell exits.
26
26
 
27
27
  Delivery policy: atomic single-edit delivery everywhere; do not switch a harness to progressive publishing unless its poll loop is known not to block on the extra calls.
@@ -42,10 +42,12 @@ LOOP:
42
42
  "prefetch" → Handle Prefetch; LOOP
43
43
  "manual_edit_apply" → Handle Manual Edit Apply; reply done|partial|error; LOOP
44
44
  "variant_mount_failed" → Fix the variant files; reply done --file <path>; LOOP
45
- "timeout" → LOOP
45
+ "timeout" → LOOP; the third in a row → Pause
46
46
  "exit" → break → Cleanup
47
47
  ```
48
48
 
49
+ **Pause**: three timeouts in a row mean about 30 minutes with nothing from the page, and every rerun after that costs a full turn. Stop polling: tell the user the page is still live and to tell you here once they act on it, then end your turn. Their next message resumes the loop with `live-poll`, which collects anything they did meanwhile.
50
+
49
51
  `variant_mount_failed` means the browser could not render what you published (`variant`, module `url`, `error`). The user sees a persistent error card, not variants. Fix the variant files, then `--reply EVENT_ID done --file <manifest or source path>`; the browser retries on its own.
50
52
 
51
53
  **Stream mode** (`--stream`, experimental): one long-lived process, one JSON line per event, `--reply` from a separate command. Only for harnesses that read incremental stdout reliably.