@bastani/atomic 0.10.9-alpha.1 → 0.10.10-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 (401) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/README.md +211 -155
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +27 -12
  7. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
  9. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  10. package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
  11. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  12. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
  13. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
  14. package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
  15. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  16. package/dist/_shared/runtime-O4KCSG4C.js +5 -5
  17. package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
  18. package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
  19. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  20. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  21. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
  22. package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
  23. package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
  24. package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
  25. package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
  26. package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
  27. package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
  28. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
  29. package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
  30. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
  31. package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
  32. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
  33. package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
  34. package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
  35. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  36. package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
  37. package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
  38. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
  39. package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
  40. package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
  41. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  42. package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
  43. package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
  44. package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
  45. package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
  46. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  47. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  48. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  49. package/dist/builtin/intercom/README.md +85 -114
  50. package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
  51. package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
  52. package/dist/builtin/intercom/group.ts +7 -3
  53. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  54. package/dist/builtin/intercom/package.json +1 -1
  55. package/dist/builtin/mcp/README.md +37 -27
  56. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  57. package/dist/builtin/mcp/package.json +1 -1
  58. package/dist/builtin/subagents/CHANGELOG.md +8 -0
  59. package/dist/builtin/subagents/README.md +71 -138
  60. package/dist/builtin/subagents/package.json +1 -1
  61. package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
  62. package/dist/builtin/web-access/CHANGELOG.md +9 -0
  63. package/dist/builtin/web-access/README.md +60 -87
  64. package/dist/builtin/web-access/index.bundle.mjs +387 -351
  65. package/dist/builtin/web-access/package.json +1 -1
  66. package/dist/cli/args.js +2 -2
  67. package/dist/cli/auth-cli.code.js +4 -4
  68. package/dist/cli/auth-cli.impl.js +3 -3
  69. package/dist/cli/auth-cli.js +3 -3
  70. package/dist/cli/blueprint-command.code.js +2 -2
  71. package/dist/cli/blueprint-command.impl.js +3 -3
  72. package/dist/cli/blueprint-command.js +3 -3
  73. package/dist/cli/intercom-command.code.js +3 -3
  74. package/dist/cli/intercom-command.impl.js +3 -3
  75. package/dist/cli/intercom-command.js +3 -3
  76. package/dist/cli/list-models.code.js +3 -3
  77. package/dist/cli/list-models.impl.js +3 -3
  78. package/dist/cli/list-models.js +3 -3
  79. package/dist/cli/session-picker.code.js +2 -2
  80. package/dist/cli/session-picker.impl.js +3 -3
  81. package/dist/cli/session-picker.js +3 -3
  82. package/dist/cli/startup-ui.code.js +2 -2
  83. package/dist/cli/startup-ui.impl.js +3 -3
  84. package/dist/cli/startup-ui.js +3 -3
  85. package/dist/cli/storage-command.impl.js +3 -3
  86. package/dist/cli/storage-command.js +3 -3
  87. package/dist/cli/storage-search-session.code.js +2 -2
  88. package/dist/cli/storage-search-session.impl.js +3 -3
  89. package/dist/cli/storage-search-session.js +3 -3
  90. package/dist/cli/team-command.code.js +2 -2
  91. package/dist/cli/team-command.impl.js +3 -3
  92. package/dist/cli/team-command.js +3 -3
  93. package/dist/cli.js +2 -2
  94. package/dist/core/agent-session-methods.d.ts +4 -1
  95. package/dist/core/agent-session-methods.js.map +1 -1
  96. package/dist/core/agent-session.d.ts +3 -0
  97. package/dist/core/compaction/compactor.d.ts +20 -14
  98. package/dist/core/compaction/errors.d.ts +120 -0
  99. package/dist/core/compaction/index.d.ts +1 -0
  100. package/dist/core/compaction/model-resolver.d.ts +2 -2
  101. package/dist/core/debug.impl.js +3 -3
  102. package/dist/core/debug.js +3 -3
  103. package/dist/core/export-html/card-projection.impl.js +3 -3
  104. package/dist/core/export-html/card-projection.js +3 -3
  105. package/dist/core/export-html/index.code.js +2 -2
  106. package/dist/core/export-html/index.impl.js +3 -3
  107. package/dist/core/export-html/index.js +3 -3
  108. package/dist/core/export-html/json-spans.impl.js +3 -3
  109. package/dist/core/export-html/json-spans.js +3 -3
  110. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  111. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  112. package/dist/core/export-html/tool-renderer.code.js +1 -1
  113. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  114. package/dist/core/export-html/tool-renderer.js +3 -3
  115. package/dist/core/extensions/api-types.d.ts +1 -1
  116. package/dist/core/extensions/api-types.js.map +1 -1
  117. package/dist/core/extensions/index.d.ts +1 -1
  118. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  119. package/dist/core/extensions/jiti-loader.js +3 -3
  120. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  121. package/dist/core/extensions/jiti-static-loader.js +3 -3
  122. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  123. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  124. package/dist/core/extensions/loader-host-modules.js +3 -3
  125. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  126. package/dist/core/extensions/provider-types.d.ts +18 -6
  127. package/dist/core/extensions/provider-types.js.map +1 -1
  128. package/dist/core/extensions/runner-context.js +1 -1
  129. package/dist/core/intercom-broker-control-host.code.js +1 -1
  130. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  131. package/dist/core/intercom-broker-control-host.js +3 -3
  132. package/dist/core/intercom-broker-control.code.js +3 -3
  133. package/dist/core/intercom-broker-control.impl.js +3 -3
  134. package/dist/core/intercom-broker-control.js +3 -3
  135. package/dist/core/model-config.d.ts +40 -0
  136. package/dist/core/model-registry.js +1 -1
  137. package/dist/core/model-resolver-scope.d.ts +4 -4
  138. package/dist/core/model-runtime.d.ts +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/provider-composer-internal.d.ts +11 -2
  142. package/dist/core/sdk.code.js +3 -3
  143. package/dist/core/sdk.impl.js +3 -3
  144. package/dist/core/sdk.js +3 -3
  145. package/dist/core/session-manager-core.js +5 -5
  146. package/dist/core/session-manager-list.impl.js +3 -3
  147. package/dist/core/session-manager-list.js +3 -3
  148. package/dist/core/session-manager.code.js +1 -1
  149. package/dist/core/session-manager.impl.js +3 -3
  150. package/dist/core/session-manager.js +3 -3
  151. package/dist/core/session-storage.impl.js +3 -3
  152. package/dist/core/session-storage.js +3 -3
  153. package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
  154. package/dist/core/storage/index.js +2 -2
  155. package/dist/core/storage/node-sqlite-thread.js +2 -2
  156. package/dist/core/storage/node-sqlite.js +2 -2
  157. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  158. package/dist/core/storage/offline-snapshot-file.js +3 -3
  159. package/dist/core/storage/provider.js +2 -2
  160. package/dist/core/storage/selection.js +2 -2
  161. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  162. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  163. package/dist/core/storage/session/branch-fork-source.js +3 -3
  164. package/dist/core/storage/session/card-view.impl.js +3 -3
  165. package/dist/core/storage/session/card-view.js +3 -3
  166. package/dist/core/storage/session/child-reader.code.js +3 -3
  167. package/dist/core/storage/session/child-reader.impl.js +3 -3
  168. package/dist/core/storage/session/child-reader.js +3 -3
  169. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  170. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  171. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  172. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  173. package/dist/core/storage/session/expanded-child-details.js +3 -3
  174. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  175. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  176. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  177. package/dist/core/storage/session/fork-row-index.js +3 -3
  178. package/dist/core/storage/session/fork-staging.code.js +2 -2
  179. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  180. package/dist/core/storage/session/fork-staging.js +3 -3
  181. package/dist/core/storage/session/fork-window.code.js +3 -3
  182. package/dist/core/storage/session/fork-window.impl.js +3 -3
  183. package/dist/core/storage/session/fork-window.js +3 -3
  184. package/dist/core/storage/session/history-pages.impl.js +3 -3
  185. package/dist/core/storage/session/history-pages.js +3 -3
  186. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  187. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  188. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  189. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  190. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  191. package/dist/core/storage/session/memory-session-store.js +3 -3
  192. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  193. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  194. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  195. package/dist/core/storage/session/released-history-files.code.js +3 -3
  196. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  197. package/dist/core/storage/session/released-history-files.js +3 -3
  198. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  199. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  200. package/dist/core/storage/session/session-resume.impl.js +3 -3
  201. package/dist/core/storage/session/session-resume.js +3 -3
  202. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  203. package/dist/core/storage/session/snapshot-cut.js +3 -3
  204. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  205. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  206. package/dist/core/storage/session/snapshot-history.js +3 -3
  207. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  208. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  209. package/dist/core/storage/session/sql-session-store.js +3 -3
  210. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  211. package/dist/core/storage/session/tree-outline.js +3 -3
  212. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  213. package/dist/core/storage/session/tree-presentation.js +3 -3
  214. package/dist/core/storage/storage-status.impl.js +3 -3
  215. package/dist/core/storage/storage-status.js +3 -3
  216. package/dist/core/storage/team.impl.js +3 -3
  217. package/dist/core/storage/team.js +3 -3
  218. package/dist/core/structured-output/index.code.js +1 -1
  219. package/dist/core/structured-output/index.impl.js +3 -3
  220. package/dist/core/structured-output/index.js +3 -3
  221. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  222. package/dist/core/tasks/task-completion-entry.js +3 -3
  223. package/dist/core/tasks/task-file-history.code.js +3 -3
  224. package/dist/core/tasks/task-file-history.impl.js +3 -3
  225. package/dist/core/tasks/task-file-history.js +3 -3
  226. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  227. package/dist/core/tasks/task-reference-archive.js +3 -3
  228. package/dist/core/tasks/task-reference-identity.code.js +1 -1
  229. package/dist/core/tasks/task-reference-identity.js +3 -3
  230. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  231. package/dist/core/tasks/task-reference-stream.js +3 -3
  232. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  233. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  234. package/dist/core/tasks/task-view-source.impl.js +3 -3
  235. package/dist/core/tasks/task-view-source.js +3 -3
  236. package/dist/core/tools/read-url.code.js +2 -2
  237. package/dist/core/tools/read-url.impl.js +3 -3
  238. package/dist/core/tools/read-url.js +3 -3
  239. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  240. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  241. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  242. package/dist/core/worktree-snapshot/errors.js +3 -3
  243. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  244. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  245. package/dist/extensions/codemode/execute.code.js +1 -1
  246. package/dist/extensions/codemode/execute.impl.js +3 -3
  247. package/dist/extensions/codemode/execute.js +3 -3
  248. package/dist/extensions/codemode/renderer.code.js +2 -2
  249. package/dist/extensions/codemode/renderer.impl.js +3 -3
  250. package/dist/extensions/codemode/renderer.js +3 -3
  251. package/dist/extensions/mcp/cli.code.js +2 -2
  252. package/dist/extensions/mcp/cli.impl.js +3 -3
  253. package/dist/extensions/mcp/cli.js +3 -3
  254. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  255. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  256. package/dist/extensions/mcp/cli.lazy.js +3 -3
  257. package/dist/extensions/mcp/runtime.code.js +1 -1
  258. package/dist/extensions/mcp/runtime.impl.js +3 -3
  259. package/dist/extensions/mcp/runtime.js +3 -3
  260. package/dist/index-extensions.d.ts +1 -1
  261. package/dist/index.d.ts +8 -1
  262. package/dist/index.js +7 -7
  263. package/dist/main-first-time-setup.code.js +2 -2
  264. package/dist/main-first-time-setup.impl.js +3 -3
  265. package/dist/main-first-time-setup.js +3 -3
  266. package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
  267. package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
  268. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  269. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  270. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  271. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  272. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  273. package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
  274. package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
  275. package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
  276. package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
  277. package/dist/modes/print-mode.js +1 -1
  278. package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
  279. package/dist/modes/rpc/rpc-types.d.ts +29 -2
  280. package/dist/package-manager-cli.code.js +5 -5
  281. package/dist/package-manager-cli.impl.js +3 -3
  282. package/dist/package-manager-cli.js +3 -3
  283. package/dist/rpc-entry.js +1 -1
  284. package/dist/startup-files.json +1 -1
  285. package/dist/startup-stages/5.js +1 -1
  286. package/dist/startup-stages/7.js +1 -1
  287. package/dist/startup-stages/8.js +1 -2
  288. package/dist/startup-stages/9.js +2 -1
  289. package/dist/utils/native-module.d.ts +44 -0
  290. package/dist/utils/startup-database-spare.code.js +3 -3
  291. package/dist/utils/startup-database-spare.impl.js +3 -3
  292. package/dist/utils/startup-database-spare.js +3 -3
  293. package/dist/utils/tools-manager.code.js +1 -1
  294. package/dist/utils/tools-manager.impl.js +3 -3
  295. package/dist/utils/tools-manager.js +3 -3
  296. package/docs/background-tasks.md +235 -243
  297. package/docs/build.md +12 -11
  298. package/docs/codemode.md +60 -51
  299. package/docs/compaction/reference.md +61 -24
  300. package/docs/compaction.md +117 -65
  301. package/docs/computer-use.md +179 -146
  302. package/docs/containerization.md +79 -33
  303. package/docs/custom-provider/api-reference.md +148 -11
  304. package/docs/custom-provider/oauth.md +44 -27
  305. package/docs/custom-provider/override.md +14 -7
  306. package/docs/custom-provider/registration.md +75 -65
  307. package/docs/custom-provider/streaming.md +42 -19
  308. package/docs/custom-provider.md +25 -61
  309. package/docs/development.md +47 -43
  310. package/docs/docs.json +33 -33
  311. package/docs/environment-variables.md +83 -57
  312. package/docs/extensions/api-reference.md +323 -734
  313. package/docs/extensions/authoring.md +186 -269
  314. package/docs/extensions/events.md +308 -375
  315. package/docs/extensions/examples.md +122 -74
  316. package/docs/extensions/ui.md +217 -197
  317. package/docs/extensions.md +152 -259
  318. package/docs/getting-started/authentication.md +27 -14
  319. package/docs/getting-started/first-session.md +25 -26
  320. package/docs/getting-started/installation.md +62 -84
  321. package/docs/getting-started/project-instructions.md +39 -14
  322. package/docs/guides/configuration.md +42 -20
  323. package/docs/guides/intercom.md +17 -13
  324. package/docs/guides/non-interactive.md +29 -16
  325. package/docs/guides/orchestration.md +16 -10
  326. package/docs/guides/resume-on-any-machine.md +54 -49
  327. package/docs/guides/subagents.md +22 -14
  328. package/docs/guides/team-setup.md +37 -26
  329. package/docs/guides.md +22 -21
  330. package/docs/herdr.md +21 -16
  331. package/docs/index.md +16 -17
  332. package/docs/intercom/operations.md +68 -66
  333. package/docs/intercom/reference.md +196 -191
  334. package/docs/intercom.md +103 -92
  335. package/docs/json.md +71 -71
  336. package/docs/keybindings.md +63 -50
  337. package/docs/libraries/agent-core.md +49 -8
  338. package/docs/libraries/ai.md +21 -12
  339. package/docs/libraries/codemode.md +28 -6
  340. package/docs/libraries/schema.md +7 -7
  341. package/docs/libraries/telemetry.md +7 -7
  342. package/docs/libraries/tui.md +74 -94
  343. package/docs/libraries.md +5 -5
  344. package/docs/llama-cpp.md +38 -33
  345. package/docs/mcp-servers.md +96 -90
  346. package/docs/models/reference.md +46 -33
  347. package/docs/models-configuration.md +12 -6
  348. package/docs/models.md +93 -88
  349. package/docs/orchestration/migrating-workflows.md +21 -19
  350. package/docs/orchestration/patterns.md +35 -20
  351. package/docs/orchestration.md +22 -21
  352. package/docs/packages/authoring.md +28 -19
  353. package/docs/packages/reference.md +75 -16
  354. package/docs/packages.md +31 -33
  355. package/docs/programmatic.md +22 -21
  356. package/docs/prompt-templates.md +63 -41
  357. package/docs/providers/reference.md +35 -19
  358. package/docs/providers.md +61 -71
  359. package/docs/quickstart.md +32 -46
  360. package/docs/reference/cli.md +249 -252
  361. package/docs/reference.md +23 -20
  362. package/docs/rpc/examples.md +74 -17
  363. package/docs/rpc/extension-ui.md +79 -62
  364. package/docs/rpc/protocol.md +816 -358
  365. package/docs/rpc.md +75 -151
  366. package/docs/sdk/reference.md +175 -45
  367. package/docs/sdk/structured-decisions.md +92 -62
  368. package/docs/sdk/web-server.md +79 -46
  369. package/docs/sdk.md +237 -195
  370. package/docs/security.md +106 -43
  371. package/docs/session-format.md +96 -59
  372. package/docs/sessions.md +149 -113
  373. package/docs/settings.md +289 -204
  374. package/docs/shell-aliases.md +15 -6
  375. package/docs/skills/authoring.md +17 -9
  376. package/docs/skills/reference.md +23 -21
  377. package/docs/skills.md +104 -97
  378. package/docs/storage.md +140 -242
  379. package/docs/subagents/authoring.md +147 -16
  380. package/docs/subagents/reference.md +100 -30
  381. package/docs/subagents.md +220 -252
  382. package/docs/terminal-setup.md +97 -69
  383. package/docs/termux.md +51 -85
  384. package/docs/themes/reference.md +51 -37
  385. package/docs/themes.md +49 -54
  386. package/docs/tmux.md +38 -21
  387. package/docs/tools.md +198 -147
  388. package/docs/tui/reference.md +64 -32
  389. package/docs/tui.md +38 -66
  390. package/docs/usage.md +76 -78
  391. package/docs/verification.md +25 -25
  392. package/docs/web-access.md +72 -55
  393. package/docs/windows.md +53 -58
  394. package/docs/worktree-snapshots.md +62 -65
  395. package/package.json +8 -8
  396. package/schemas/models.schema.json +51 -0
  397. package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
  398. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
  399. package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
  400. package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
  401. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
@@ -1,24 +1,26 @@
1
1
  ---
2
2
  title: "Web access"
3
- description: "Built-in web_search, fetch_content, get_search_content, and code_search tools, slash commands, shortcuts, and ~/.atomic/web-search.json settings."
3
+ sidebarTitle: "Web access"
4
+ description: "Search the web, fetch webpages, PDFs, GitHub repos, and videos, query public repos with DeepWiki, and configure ~/.atomic/web-search.json."
4
5
  ---
5
6
 
6
- # Web access
7
-
8
- Atomic bundles four web-access tools: `web_search` for searching the web, `fetch_content` for reading pages and media, `get_search_content` for retrieving full stored results, and `code_search` for querying public GitHub repositories. `web_search` and `code_search` both work with no API key setup.
7
+ Atomic bundles four web-access tools: `web_search` for searching the web, `fetch_content` for reading pages and media, `get_search_content` for retrieving full stored results, and `code_search` for querying public GitHub repositories. Both `web_search` and `code_search` work out of the box with no API key setup.
9
8
 
10
9
  ## Searching with `web_search`
11
10
 
12
- Pass `query` for a single lookup, or `queries` (an array of 2 to 4 varied angles) for broader research. Optional parameters are `numResults` (default `5`, max `20`), `includeContent` (boolean, fetches full page text in the background), `recencyFilter` (`"day"`, `"week"`, `"month"`, or `"year"`), `domainFilter` (array of domains; prefix with `-` to exclude), and `provider` (`"auto"`, `"exa"`, `"perplexity"`, or `"gemini"`).
11
+ Pass `query` for a single search, or `queries` (an array of 2 to 4 varied angles) for broader research. If both `query` and `queries` are supplied, `queries` wins and `query` is ignored. Multiple queries run sequentially (with a 60-second timeout per query on Exa and Gemini API).
12
+
13
+ Optional parameters are `numResults` (default `5`, max `20`), `includeContent` (boolean; fetches full page text in the background), `recencyFilter` (`"day"`, `"week"`, `"month"`, or `"year"`), `domainFilter` (array of domains; prefix with `-` to exclude; on Perplexity, entries that are not valid domains are ignored), and `provider` (`"auto"`, `"exa"`, `"perplexity"`, or `"gemini"`).
13
14
 
14
- With `provider: "auto"` (the default), Atomic uses the first provider that works:
15
+ With `provider: "auto"` (the default), Atomic tries providers in this order:
15
16
 
16
- 1. **Exa.** Calls the Exa API when a key is set, or uses Exa's free keyless MCP endpoint (`mcp.exa.ai`) when unconfigured.
17
- 2. **Perplexity.** Used when a key is set.
18
- 3. **Gemini API.** Used when a key is set.
19
- 4. **Gemini Web.** Uses your signed-in Chromium-based browser. Browser cookie access is off by default; enable it with `"allowBrowserCookies": true` in `~/.atomic/web-search.json` or `ATOMIC_ALLOW_BROWSER_COOKIES=1`.
17
+ 1. **Exa.** Uses your Exa API key when configured, or falls back to Exa's free keyless MCP endpoint (`mcp.exa.ai`). Atomic tracks monthly Exa usage locally in `~/.atomic/exa-usage.json`, warning at 800 requests and stopping at 1,000 requests per month. When `provider: "exa"` is explicitly selected with an API key, errors fail directly; keyless Exa falls back to Perplexity or Gemini on failure.
18
+ 2. **Perplexity.** Used when a key is set. Client-side rate limiting caps requests at 10 per 60 seconds.
19
+ 3. **Gemini API.** Used when a key is set (`GEMINI_API_KEY` or `geminiApiKey` in `web-search.json`).
20
+ 4. **Gemini Web.** Reads cookies from a signed-in browser. Disabled by default; enable it with `"allowBrowserCookies": true` in `~/.atomic/web-search.json` or `ATOMIC_ALLOW_BROWSER_COOKIES=1` (the environment variable must be the exact string `1`; `true` does not enable it).
21
+ - **Supported platforms and browsers:** On **macOS**, Atomic checks Helium, Chrome, and Arc (in that order). On **Linux**, Atomic checks Chromium and Chrome (in that order). **Windows is not supported.** Edge, Brave, Vivaldi, and Opera are not checked on any OS. The default profile directory is `"Default"` (override with `chromeProfile`).
20
22
 
21
- Environment variables take precedence over keys in `~/.atomic/web-search.json`:
23
+ Environment variables override fields in `~/.atomic/web-search.json`. Note that JSON config keys use camelCase (`geminiApiKey`, not `GEMINI_API_KEY`):
22
24
 
23
25
  | Provider | Environment variable | `web-search.json` field |
24
26
  | --- | --- | --- |
@@ -29,17 +31,18 @@ Environment variables take precedence over keys in `~/.atomic/web-search.json`:
29
31
  ```json
30
32
  {
31
33
  "exaApiKey": "your-key",
34
+ "geminiApiKey": "your-gemini-key",
32
35
  "provider": "auto"
33
36
  }
34
37
  ```
35
38
 
36
- When no provider can be reached, the error names these environment variables and config fields.
39
+ When no provider can be reached, the error names the relevant environment variables, JSON config fields, and cookie opt-in setting.
37
40
 
38
41
  ### The search curator
39
42
 
40
- By default, `web_search` returns raw results. Run `/curator on` (or set `"workflow": "summary-review"` in `~/.atomic/web-search.json`) to open an interactive browser review window where you filter results and approve a summary draft before the agent sees them. Run `/curator off` to return to raw results.
43
+ By default, `web_search` returns raw results. Run `/curator on` or `/curator summary-review` (or set `"workflow": "summary-review"` in `~/.atomic/web-search.json`) to open an interactive browser window where you filter results and approve a summary draft before the agent sees them. Run `/curator off` or `/curator none` to return to raw results, or run `/curator` with no argument to toggle between modes. Switching providers inside the curator saves `provider` and updates active search configuration immediately.
41
44
 
42
- The curator requires an interactive session with a browser. Subagents and non-interactive runs skip it and return raw results. If the browser cannot open (for example on a headless machine), `web_search` falls back to raw results with a note pointing to `/curator off`.
45
+ The curator requires an interactive session with a browser. Subagents and non-interactive runs skip it and return raw results. If the browser cannot open (for example on a headless server), `web_search` falls back to raw results with a note pointing to `/curator off`.
43
46
 
44
47
  ## Fetching with `fetch_content`
45
48
 
@@ -47,13 +50,13 @@ The curator requires an interactive session with a browser. Subagents and non-in
47
50
 
48
51
  ### Arguments
49
52
 
50
- Always pass the lowercase `urls` field as a nonempty array of strings, even for one URL:
53
+ Always pass the lowercase `urls` field as a nonempty array of strings, even for one URL (do not pass a singular `url` field, which belongs to `get_search_content`):
51
54
 
52
55
  ```json
53
56
  {"urls": ["https://example.com/article"]}
54
57
  ```
55
58
 
56
- For multiple pages (fetched in parallel):
59
+ For multiple pages (fetched up to 3 at a time):
57
60
 
58
61
  ```json
59
62
  {"urls": ["https://example.com/one", "https://example.com/two"]}
@@ -65,25 +68,35 @@ For video analysis, include your question in `prompt`:
65
68
  {"urls": ["/path/to/recording.mp4"], "prompt": "What error appears on screen?"}
66
69
  ```
67
70
 
68
- Local videos accept absolute paths (including Windows drive and UNC paths), `./` or `../` relative paths, and `file://` URLs. Escape Windows backslashes in JSON, for example `{"urls": ["C:\\Videos\\recording.mp4"], "frames": 1}`.
69
-
70
- - `prompt` and `model` apply only to YouTube and local video analysis, not webpage extraction.
71
- - `forceClone` applies only to GitHub repositories and allows cloning repositories above `githubClone.maxRepoSizeMB`.
72
- - `frames` (`1` to `12`) and `timestamp` (seconds such as `"85"`, a time such as `"1:25"`, or a range such as `"1:25-2:00"`, which defaults to 6 frames) extract images from YouTube or local videos only. Omit both for text or transcripts. Non-video inputs ignore them even inside mixed batches.
71
+ - **Local videos.** Accepts absolute paths (including Windows drive and UNC paths), `./` or `../` relative paths, and `file://` URLs for `.mp4`, `.mov`, `.webm`, `.avi`, `.mpeg`, `.mpg`, `.wmv`, `.flv`, `.3gp`, and `.3gpp` files (escape Windows backslashes in JSON, such as `{"urls": ["C:\\Videos\\recording.mp4"], "frames": 1}`). Analysis requires Gemini API or Gemini Web (with browser cookies enabled); `video.maxSizeMB` (`50` by default) is measured in binary MiB.
72
+ - **YouTube videos.** Tries Gemini Web first, then Gemini API, then Perplexity. `/playlist` URLs are not treated as videos. Setting `"youtube": { "enabled": false }` in `~/.atomic/web-search.json` disables both YouTube analysis and YouTube frame extraction.
73
+ - **`prompt` and `model`.** Apply only to YouTube and local video analysis, not webpage extraction.
74
+ - **Frame extraction (`frames` and `timestamp`).** Extract images from YouTube or local videos only (ignored for webpages and other inputs, including in mixed batches). Omit both for text or transcripts. `frames` accepts `1` to `12`; `timestamp` accepts bare seconds (`"85"`), `MM:SS` (`"1:25"`), `H:MM:SS`, or a `start-end` range (`"1:25-2:00"`):
75
+ - `frames` alone samples evenly across the whole video (requires `ffprobe` for local videos).
76
+ - Single `timestamp` alone extracts 1 frame at that time.
77
+ - Single `timestamp` plus `frames` extracts `N` frames at 5-second intervals starting at `timestamp`.
78
+ - Range `timestamp` alone extracts 6 frames across the range.
79
+ - Range `timestamp` plus `frames` extracts up to `N` frames with a 5-second minimum spacing (short ranges may return fewer frames).
80
+ - Requires `ffmpeg` (and `ffprobe` for whole-video sampling of local files), plus `yt-dlp` for YouTube.
73
81
 
74
82
  ```json
75
83
  {"urls": ["/path/to/recording.mp4"], "timestamp": "1:25-2:00", "frames": 3}
76
84
  ```
77
85
 
78
- Frame extraction requires `ffmpeg`, plus `yt-dlp` for YouTube.
86
+ - **GitHub repositories (`forceClone`).** Clones public repositories shallowly unless the repository exceeds `githubClone.maxRepoSizeMB` or targets a full commit SHA URL, in which case Atomic uses the GitHub API unless `forceClone: true` is passed. Skips binary files and common build or dependency directories (`node_modules`, `vendor`, `dist`, `build`, and similar), caps inline files at 100,000 characters, and caps directory listings at 200 entries. The default clone cache clears automatically when you switch sessions.
79
87
 
80
- Pass `{"urls": ["..."]}`, not the retired singular `{"url": "..."}` field (the singular `url` selector still belongs to `get_search_content`). Although Atomic can normalize a scalar `urls` string into a one-item array, always pass an array in prompts and integrations.
88
+ ### Extraction fallbacks, PDFs, and limits
89
+
90
+ - **Inline output and batches.** Single-URL fetches return up to 30,000 characters inline and store the full text for `get_search_content`. Multi-URL batches return titles and character counts inline only; read the full text for each URL with `get_search_content`.
91
+ - **HTTP limits.** Direct fetches run up to 3 concurrently with a 30-second timeout, up to 20 redirects, a 5 MiB limit for HTML and text, and a 20 MiB limit for PDFs. Binary MIME types (`application/octet-stream`, `image/*`, `audio/*`, `video/*`, and `application/zip`) are rejected.
92
+ - **Public webpage fallbacks.** When a direct fetch of a public URL fails or extracts fewer than 500 characters (excluding private-network URLs and URLs with embedded credentials), `fetch_content` forwards the URL to **Jina Reader (`https://r.jina.ai/`)** first, then **Gemini URL Context API**, then **Gemini Web**.
93
+ - **PDF downloads.** Fetching a PDF URL downloads up to 20 MiB, extracts up to 100 pages, **writes the extracted Markdown file into `~/Downloads`**, and returns the saved file path, page count, and character count.
81
94
 
82
95
  ### Troubleshooting
83
96
 
84
97
  If argument validation fails, check that:
85
98
 
86
- - The field is `urls`, not `URLs` or `url`.
99
+ - The field is `urls` (lowercase), not `URLs` or `url`.
87
100
  - Its value is a nonempty array of strings.
88
101
  - No unrecognized fields are present.
89
102
 
@@ -91,15 +104,17 @@ If every URL in a batch fails, the error lists each URL and its cause; partial e
91
104
 
92
105
  ## Retrieving full results with `get_search_content`
93
106
 
94
- When `web_search` or `fetch_content` truncates output or stores background fetches, it returns a `responseId`. Pass that ID to `get_search_content` to read the complete stored result:
107
+ When `web_search` or `fetch_content` truncates output or stores background fetches, it returns a `responseId`. Pass that ID plus **at least one selector** (`query` or `queryIndex` for a `web_search` response; `url` or `urlIndex` for a `fetch_content` response). Omitting selectors returns an error listing the available queries or URLs.
108
+
109
+ `query` and `url` take precedence over `queryIndex` and `urlIndex` and require exact, case-sensitive matches.
95
110
 
96
111
  | Parameter | Type | Required | Description |
97
112
  | --- | --- | --- | --- |
98
- | `responseId` | string | Yes | ID returned by a previous `web_search` or `fetch_content` call |
99
- | `query` | string | No | Exact search query to retrieve from a stored `web_search` response |
100
- | `queryIndex` | number | No | Zero-based query index in a stored `web_search` response |
101
- | `url` | string | No | Exact URL to retrieve from a stored `fetch_content` response |
102
- | `urlIndex` | number | No | Zero-based URL index in a stored `fetch_content` response |
113
+ | `responseId` | string | Yes | ID returned by a previous `web_search` or `fetch_content` call. |
114
+ | `query` | string | One of `query` / `queryIndex` (for search) | Exact case-sensitive search query to retrieve from a stored `web_search` response. |
115
+ | `queryIndex` | number | One of `query` / `queryIndex` (for search) | Zero-based query index in a stored `web_search` response. |
116
+ | `url` | string | One of `url` / `urlIndex` (for fetch) | Exact case-sensitive URL to retrieve from a stored `fetch_content` response. |
117
+ | `urlIndex` | number | One of `url` / `urlIndex` (for fetch) | Zero-based URL index in a stored `fetch_content` response. |
103
118
 
104
119
  ## `code_search`
105
120
 
@@ -107,9 +122,9 @@ When `web_search` or `fetch_content` truncates output or stores background fetch
107
122
 
108
123
  | Parameter | Type | Required | Description |
109
124
  | --- | --- | --- | --- |
110
- | `repoName` | string | Yes | Public GitHub repository in `owner/repo` format (not a URL) |
111
- | `query` | string | Yes | Question sent verbatim to DeepWiki |
112
- | `maxTokens` | integer | No | Best-effort output limit (`1000` to `50000`, default `5000`, about 4 chars per token) |
125
+ | `repoName` | string | Yes | Public GitHub repository in `owner/repo` format (not a URL). |
126
+ | `query` | string | Yes | Question sent verbatim to DeepWiki. |
127
+ | `maxTokens` | integer | No | Best-effort output limit (`1000` to `50000`, default `5000`, about 4 characters per token). |
113
128
 
114
129
  Requests have a 60-second deadline. See [`code_search` in Built-in tools](/tools#code_search) for examples and fallback guidance.
115
130
 
@@ -117,38 +132,40 @@ Requests have a 60-second deadline. See [`code_search` in Built-in tools](/tools
117
132
 
118
133
  | Command | Action |
119
134
  | --- | --- |
120
- | `/curator [on\|off\|none\|summary-review]` | Toggle or set the search curator workflow and save it to `~/.atomic/web-search.json` |
121
- | `/websearch [query1, query2, ...]` | Open the interactive search curator directly without an agent round-trip, optionally running comma-separated queries |
122
- | `/search` | Browse, inspect, or delete stored `web_search` and `fetch_content` results from the current session |
123
- | `/google-account` | Show the active Google account used for Gemini Web when browser cookie access is enabled |
135
+ | `/curator [on\|off\|none\|summary-review]` | Set the search curator workflow and save it to `~/.atomic/web-search.json`. Omitting the argument toggles between `none` and `summary-review`. |
136
+ | `/websearch [query1, query2, ...]` | Open the interactive search curator directly without an agent round-trip. Arguments split on commas into separate queries. Closing or cancelling sends nothing; timing out submits collected results as a summary-review follow-up. |
137
+ | `/search` | Browse, inspect, or delete stored `web_search` and `fetch_content` results from the current session. |
138
+ | `/google-account` | Print the active Google account used for Gemini Web when browser cookie access is enabled, without starting a model turn. |
124
139
 
125
140
  | Shortcut | Config key | Action |
126
141
  | --- | --- | --- |
127
- | `Ctrl+Shift+S` | `shortcuts.curate` | Open the search curator while a search is running |
128
- | `Ctrl+Shift+W` | `shortcuts.activity` | Toggle the web search activity widget |
142
+ | `Ctrl+Shift+S` | `shortcuts.curate` | Open the search curator while a search is running. |
143
+ | `Ctrl+Shift+W` | `shortcuts.activity` | Toggle the web search activity widget. |
129
144
 
130
145
  Customize shortcuts in `~/.atomic/web-search.json` under `"shortcuts"`. Shortcut changes take effect after restarting Atomic.
131
146
 
132
- ## Configuration (`~/.atomic/web-search.json`)
147
+ ## Configure `web-search.json`
148
+
149
+ All fields in `~/.atomic/web-search.json` are optional. If `~/.atomic/web-search.json` does not exist, Atomic falls back to `~/.pi/web-search.json` from older installations without merging the two files; interactive saves always write `~/.atomic/web-search.json`.
133
150
 
134
- All fields in `~/.atomic/web-search.json` are optional. If `~/.atomic/web-search.json` does not exist, Atomic falls back to legacy `~/.pi/web-search.json` without merging the two files; interactive saves always write `~/.atomic/web-search.json`.
151
+ **Reloading changes.** `workflow` and `curatorTimeoutSeconds` are re-read on every call, and switching providers inside the curator updates active search settings immediately. Manual file edits to API keys, `provider`, `searchModel`, `allowBrowserCookies`, `chromeProfile`, `githubClone`, `youtube`, and `video` take effect after `/reload` or restarting Atomic. Shortcut changes require restarting Atomic.
135
152
 
136
153
  | Field | Type | Default | Description |
137
154
  | --- | --- | --- | --- |
138
- | `provider` | `"auto" \| "exa" \| "perplexity" \| "gemini"` | `"auto"` | Default `web_search` provider (also accepts legacy `searchProvider`; switching providers in the curator updates this field) |
139
- | `workflow` | `"none" \| "summary-review"` | `"none"` | `"none"` returns raw results; `"summary-review"` opens the browser curator with a summary draft |
140
- | `curatorTimeoutSeconds` | number (`1` to `600`) | `20` | Curator wait timeout in seconds |
141
- | `summaryModel` | string | auto | Default `"provider/model"` used for curator summary drafts (prefers `anthropic/claude-haiku-4-5` or `openai-codex/gpt-6.1-sol` when available) |
142
- | `searchModel` | string | `"gemini-3-flash-preview"` | Gemini API model used for Gemini search queries |
143
- | `shortcuts` | `{ curate?: string, activity?: string }` | `{ "curate": "ctrl+shift+s", "activity": "ctrl+shift+w" }` | Keyboard shortcuts for opening the curator and toggling the activity widget |
144
- | `exaApiKey` | string | unset | Exa API key (overridden by `EXA_API_KEY`) |
145
- | `perplexityApiKey` | string | unset | Perplexity API key (overridden by `PERPLEXITY_API_KEY`) |
146
- | `geminiApiKey` | string | unset | Gemini API key (overridden by `GEMINI_API_KEY`) |
147
- | `allowBrowserCookies` | boolean | `false` | Allow Gemini Web to read cookies from a Chromium-based browser (overridden by `ATOMIC_ALLOW_BROWSER_COOKIES=1`) |
148
- | `chromeProfile` | string | unset | Chromium profile directory name used for Gemini Web cookie lookup |
149
- | `githubClone` | object | see below | GitHub clone settings: `enabled` (`true`), `maxRepoSizeMB` (`350`), `cloneTimeoutSeconds` (`30`), and `clonePath` (default private account temp directory) |
150
- | `youtube` | object | see below | YouTube analysis settings: `enabled` (`true`) and `preferredModel` (`"gemini-3-flash-preview"`) |
151
- | `video` | object | see below | Local video analysis settings: `enabled` (`true`), `preferredModel` (`"gemini-3-flash-preview"`), and `maxSizeMB` (`50`) |
155
+ | `provider` | `"auto" \| "exa" \| "perplexity" \| "gemini"` | `"auto"` | Default `web_search` provider. Switching providers in the curator updates this field immediately. |
156
+ | `workflow` | `"none" \| "summary-review"` | `"none"` | `"none"` returns raw results; `"summary-review"` opens the browser curator with a summary draft. |
157
+ | `curatorTimeoutSeconds` | number (`1` to `600`) | `20` | Curator wait timeout in seconds (floored to an integer; values below `1` fall back to `20`, and values above `600` clamp to `600`). |
158
+ | `summaryModel` | string | auto | Default `"provider/model"` for curator summary drafts (prefers `anthropic/claude-haiku-4-5` or `openai-codex/gpt-6.1-sol` when available). |
159
+ | `searchModel` | string | `"gemini-3-flash-preview"` | Gemini API model used for Gemini search queries. |
160
+ | `shortcuts` | `{ curate?: string, activity?: string }` | `{ "curate": "ctrl+shift+s", "activity": "ctrl+shift+w" }` | Keyboard shortcuts for opening the curator and toggling the activity widget. |
161
+ | `exaApiKey` | string | unset | Exa API key (overridden by `EXA_API_KEY`). |
162
+ | `perplexityApiKey` | string | unset | Perplexity API key (overridden by `PERPLEXITY_API_KEY`). |
163
+ | `geminiApiKey` | string | unset | Gemini API key (overridden by `GEMINI_API_KEY`). |
164
+ | `allowBrowserCookies` | boolean | `false` | Allow Gemini Web to read cookies from supported browsers on macOS and Linux (overridden by `ATOMIC_ALLOW_BROWSER_COOKIES=1`). Not supported on Windows. |
165
+ | `chromeProfile` | string | `"Default"` | Browser profile directory name used for Gemini Web cookie lookup. |
166
+ | `githubClone` | object | see below | GitHub clone settings: `enabled` (`true`), `maxRepoSizeMB` (`350`), `cloneTimeoutSeconds` (`30`), and `clonePath` (defaults to an account-private `github-repos` temp folder cleared on session switches). |
167
+ | `youtube` | object | see below | YouTube settings: `enabled` (`true`; setting `false` disables both analysis and frame extraction) and `preferredModel` (`"gemini-3-flash-preview"`). |
168
+ | `video` | object | see below | Local video settings: `enabled` (`true`), `preferredModel` (`"gemini-3-flash-preview"`), and `maxSizeMB` (`50`, measured in binary MiB). |
152
169
 
153
170
  Example configuration:
154
171
 
package/docs/windows.md CHANGED
@@ -1,54 +1,48 @@
1
1
  ---
2
- title: "Windows"
3
- description: "Install, configure, and troubleshoot Atomic on Windows and WSL."
2
+ title: "Windows setup"
3
+ sidebarTitle: "Windows"
4
+ description: "Install Atomic, configure Bash and PowerShell, pick a terminal, and troubleshoot Windows or WSL."
4
5
  ---
5
6
 
6
- # Windows setup
7
+ ## Install with PowerShell
7
8
 
8
- ## Install
9
-
10
- Install the self-contained Windows release archive with Windows PowerShell 5.1 or newer:
9
+ Install the self-contained Windows release archive with Windows PowerShell 5.1 or newer (no Node.js or package manager required):
11
10
 
12
11
  ```powershell
13
12
  irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex
14
13
  ```
15
14
 
16
- This path does not require Node.js or a package manager. To pin an exact release (`MAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH-alpha.REVISION`):
15
+ To pin an exact release (`MAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH-alpha.REVISION`):
17
16
 
18
17
  ```powershell
19
18
  & ([scriptblock]::Create((irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1))) -Ref 0.9.11
20
19
  ```
21
20
 
22
- By default, the installer verifies `SHA256SUMS`, stores versioned payloads under `%LOCALAPPDATA%\atomic`, and places an ASCII-only `atomic.cmd` plus an `atomic-current` junction in `%LOCALAPPDATA%\atomic\bin`. The relative shim supports Unicode install paths and custom bin directories.
21
+ By default, the installer verifies `SHA256SUMS`, stores versioned payloads under `%LOCALAPPDATA%\atomic`, and creates an ASCII-only `atomic.cmd` launcher plus an `atomic-current` junction in `%LOCALAPPDATA%\atomic\bin`. The relative shim supports Unicode install paths and custom bin directories.
23
22
 
24
- Override defaults with `ATOMIC_INSTALL_DIR`, `ATOMIC_BIN_DIR`, `ATOMIC_VERSION`, or optional `GITHUB_TOKEN`/`GH_TOKEN` (used only if release resolution falls back to the GitHub API). See [Installation](/getting-started/installation#release-archive) for cross-platform archive options and [Package managers](/getting-started/installation#package-managers) if you install with Node.js.
23
+ Override defaults with `ATOMIC_INSTALL_DIR`, `ATOMIC_BIN_DIR` (defaults to `<ATOMIC_INSTALL_DIR>\bin`, so changing `ATOMIC_INSTALL_DIR` moves the default bin directory too), `ATOMIC_VERSION` (`-Ref` takes precedence over `ATOMIC_VERSION`), or optional `GITHUB_TOKEN`/`GH_TOKEN` (used only if release resolution falls back to the GitHub API). See [Release archive](/getting-started/installation#release-archive) for cross-platform archive options and [Package managers](/getting-started/installation#package-managers) if you install with Node.js.
25
24
 
26
- ### Windows installer behavior and constraints
25
+ ### Installer rules and edge cases
27
26
 
28
- - **Reruns and repair:** When the requested release is already installed and healthy, rerunning skips the download and restores a missing User PATH entry; pass `-Force` or set `ATOMIC_FORCE_INSTALL=1` to reinstall anyway. A missing or mismatched `atomic.cmd` shim or `atomic-current` junction, a `current` junction that points outside the install root, or an installed payload that lost `app.js` or another startup file triggers a repair install.
29
- - **PATH and `PATHEXT`:** The installer adds the bin directory to User PATH and the current PowerShell process, then asks you to open a new terminal when User PATH changed. A custom `ATOMIC_BIN_DIR` containing `;` cannot be one Windows PATH entry, so the installer leaves PATH untouched and prints a direct-run command for `atomic.cmd`. `PATHEXT` must include `.CMD` for bare `atomic` to resolve, or installation stops with an error.
27
+ - **Reruns, repair, and locking:** Concurrent installer runs serialize on an exclusive lock file under `ATOMIC_INSTALL_DIR`. When the requested release is already installed and healthy, rerunning skips the download and restores a missing User PATH entry; pass `-Force` or set `ATOMIC_FORCE_INSTALL=1` to reinstall anyway. A missing or mismatched `atomic.cmd` shim or `atomic-current` junction, a `current` junction pointing outside the install root, or a payload missing `app.js` or another startup file triggers a repair install.
28
+ - **PATH and `PATHEXT`:** The installer adds the bin directory to User PATH and the current PowerShell process, then asks you to open a new terminal when User PATH changed. A custom `ATOMIC_BIN_DIR` containing `;` cannot be one Windows PATH entry, so the installer leaves PATH untouched and prints a direct command for `atomic.cmd`. `PATHEXT` must include `.CMD` for bare `atomic` to resolve, or installation stops with an error.
30
29
  - **Existing launchers and directories:** A same-stem launcher that `PATHEXT` resolves before `atomic.cmd`, such as a stale `atomic.exe`, stops installation before download until you remove it. An unexpected regular `current` entry under `ATOMIC_INSTALL_DIR`, or regular `atomic-current` entry under `ATOMIC_BIN_DIR`, is reported and left untouched instead of being moved or deleted.
31
- - **Pinned versions:** A pinned `-Ref` is honored literally. If GitHub returns a different release tag, installation stops before download.
32
- - **TLS 1.2 on legacy PowerShell 5.1:** Once fetched, the script enables TLS 1.2 for its own GitHub requests and restores your previous protocol setting. Because a downloaded script cannot repair the connection used to fetch itself, enable TLS 1.2 in your shell first if `irm` cannot reach GitHub.
33
- - **Output and cleanup:** Set `NO_COLOR=1` for plain text output without colors, progress bar, or logo (output is also plain under `CI` or redirected stdout; legacy console windows draw `#`/`-` bars without the logo). The installer removes its `atomic-install-*` staging directory when done and prints a warning if cleanup fails.
30
+ - **Pinned versions:** `-Ref` is validated against `MAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH-alpha.REVISION` and honored literally. If GitHub returns a different release tag, installation stops before download.
31
+ - **TLS 1.2 on legacy PowerShell 5.1:** Once downloaded, the script enables TLS 1.2 for its own GitHub requests and restores your previous protocol setting. Because a downloaded script cannot fix the connection used to fetch itself, enable TLS 1.2 in your shell first if `irm` cannot reach GitHub.
32
+ - **Output, Intercom upgrade, and cleanup:** Setting `NO_COLOR` to any value (even empty) switches installer output to plain text without colors, progress bar, or logo (output is also plain under `CI` or redirected stdout; legacy consoles draw `#`/`-` bars without the logo). After installing, `install.ps1` runs `atomic intercom upgrade` to replace any older running Intercom broker and warns if that step fails. The installer removes its `atomic-install-*` staging directory when done and warns if cleanup fails.
34
33
 
35
- ## Shell discovery
34
+ ## Bash and PowerShell discovery
36
35
 
37
36
  Atomic uses Bash for the `bash` tool and checks these locations in order:
38
37
 
39
- 1. Custom `shellPath` in `~/.atomic/agent/settings.json` (legacy `~/.pi/agent/settings.json` is also read)
38
+ 1. Custom `shellPath` in `~/.atomic/agent/settings.json`, trusted project `.atomic/settings.json`, or legacy `~/.pi/agent/settings.json`
40
39
  2. Git Bash at `%ProgramFiles%\Git\bin\bash.exe`
41
40
  3. Git Bash at `%ProgramFiles(x86)%\Git\bin\bash.exe`
42
41
  4. `bash.exe` on `PATH` (Cygwin, MSYS2, or WSL)
43
42
 
44
- Windows Store app aliases (such as those in `%LOCALAPPDATA%\Microsoft\WindowsApps`) are accepted wherever Atomic checks for a shell.
45
-
46
- For legacy WSL `bash.exe` from `%SystemRoot%\System32`:
47
-
48
- - Ownerless `bash` tool calls send commands over stdin to avoid command-line quoting issues.
49
- - Supervised and background shell tasks reject legacy WSL `bash.exe` with `ContainmentUnavailable`. Run Atomic inside WSL for supervised POSIX shells.
43
+ Windows Store app aliases (such as those in `%LOCALAPPDATA%\Microsoft\WindowsApps`) are accepted wherever Atomic searches for a shell. Atomic checks only absolute directories on `PATH` in order, skips empty and relative `PATH` entries and directories, never searches the current working directory first, and caches missing `PATH` lookups for 30 seconds.
50
44
 
51
- For the `bash` tool, [Git for Windows](https://git-scm.com/download/win) is sufficient. Native Windows `!` and `!!` commands use PowerShell instead of `shellPath`, so any `shellCommandPrefix` for interactive commands must use PowerShell syntax. Inside WSL, `!` and `!!` remain Bash-based.
45
+ For the `bash` tool on native Windows, [Git for Windows](https://git-scm.com/download/win) is recommended. Every `bash` tool call in an Atomic CLI or interactive session rejects legacy WSL `%SystemRoot%\System32\bash.exe` with `ContainmentUnavailable` because Windows cannot isolate legacy WSL child processes reliably. Run Atomic directly inside WSL when you want a WSL POSIX shell. (Only standalone SDK `createBashTool()` calls without background task management fall back to sending commands over stdin on legacy WSL `bash.exe`.)
52
46
 
53
47
  PowerShell discovery checks these locations in order:
54
48
 
@@ -57,9 +51,15 @@ PowerShell discovery checks these locations in order:
57
51
  3. `powershell.exe` on `PATH`
58
52
  4. `%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe`
59
53
 
60
- Atomic searches only absolute directories on `PATH`, in order, and never searches the current working directory first. Empty and relative `PATH` entries are skipped, and directory entries never count as executables.
54
+ ### Native Windows `shellCommandPrefix` caveat
55
+
56
+ On native Windows, Atomic prepends `shellCommandPrefix` to **both** model `bash` tool calls (which run in Bash) and interactive `!` and `!!` commands (which run in PowerShell), while the model `powershell` tool ignores `shellCommandPrefix`.
57
+
58
+ Because Bash and PowerShell use incompatible syntax, putting PowerShell syntax in `shellCommandPrefix` breaks every model `bash` tool call, and putting Bash syntax breaks every `!` and `!!` command. Leave `shellCommandPrefix` unset on native Windows unless you intentionally disable one side (for example, by excluding `bash`). Inside WSL, both `bash` tool calls and `!`/`!!` run in Bash, so Bash syntax works for both. See [Shell aliases](/shell-aliases).
59
+
60
+ ### Set a custom Bash path
61
61
 
62
- ## Custom shell path
62
+ Set `shellPath` in `~/.atomic/agent/settings.json` or a trusted project's `.atomic/settings.json`:
63
63
 
64
64
  ```json
65
65
  {
@@ -67,11 +67,22 @@ Atomic searches only absolute directories on `PATH`, in order, and never searche
67
67
  }
68
68
  ```
69
69
 
70
- Paths copied from Git Bash, MSYS2, Cygwin, or WSL work anywhere Atomic resolves a file path. For example, `/c/Users/name/project/file.ts`, `/cygdrive/c/Users/name/project/file.ts`, and `/mnt/c/Users/name/project/file.ts` resolve to the matching Windows drive path.
70
+ If `shellPath` is a bare executable name (with no `/`, `\`, or `:`), Atomic searches absolute `PATH` directories. Otherwise Atomic checks the path literally. If the configured `shellPath` does not exist, Atomic stops with `Custom shell path not found: ...` instead of falling back to Git Bash.
71
+
72
+ POSIX-style paths copied from Git Bash, MSYS2, Cygwin, or WSL work anywhere Atomic resolves a file path. Atomic translates `/c/...`, `/cygdrive/c/...`, and `/mnt/c/...` (case-insensitive single drive letter) into `C:\...`, while leaving UNC/double-slash paths (`//...`) and paths already containing `\` untouched.
73
+
74
+ ## PowerShell tool
75
+
76
+ On native Windows, Atomic enables the `powershell` tool by default whenever `pwsh.exe` or `powershell.exe` is found in the discovery order above, and omits it if neither is installed. This tool is Windows-only and is not enabled on Linux or macOS even if `pwsh` is installed.
77
+
78
+ - **Execution flags and encoding:** Atomic launches PowerShell with `-NoProfile -NonInteractive -ExecutionPolicy Bypass` (using `-EncodedCommand` with UTF-16LE base64 in interactive and CLI sessions, or `-Command` in standalone SDK calls), sets UTF-8 console output, and wraps Windows PowerShell 5.1 (`powershell.exe`) calls so script errors exit with code `1`.
79
+ - **Environment and PTY control:** Both `ATOMIC_*` and legacy `PI_*` session environment variables are available inside PowerShell calls. Setting `ATOMIC_NO_PTY=1` (legacy `PI_NO_PTY=1`, where `ATOMIC_NO_PTY=0` overrides `PI_NO_PTY=1`) disables PTY allocation for both `powershell` and `bash` tool calls.
80
+ - **Tool lists and output:** Add `powershell` to `defaultTools` if you define a custom built-in tool allowlist. To disable all shell execution on native Windows, exclude both `bash` and `powershell` (`--exclude-tools bash,powershell`). PowerShell calls render with a `PS>` prompt, and truncated output spills to an `atomic-powershell-*` temporary file separate from Bash spill files.
81
+ - **SDK exports:** `@bastani/atomic` exports `createPowerShellTool()`, `createPowerShellToolDefinition()`, `createLocalPowerShellOperations()`, their public types, and `getPowerShellConfig()`. Factory-created tools expose the `ATOMIC_*` and legacy `PI_*` session snapshot by default; pass `exposeSessionEnvironment: false` to opt out.
71
82
 
72
83
  ## Choose a terminal
73
84
 
74
- Windows terminals run Atomic through a console host (conhost). Terminals that rely on the older built-in Windows conhost have bugs that affect Atomic. Use [Windows Terminal](https://aka.ms/terminal), which ships a current conhost.
85
+ Windows terminals run Atomic through a console host (`conhost`). Terminals using the older built-in Windows `conhost` have rendering and input bugs that affect Atomic. Use [Windows Terminal](https://aka.ms/terminal), which ships a current `conhost`.
75
86
 
76
87
  | Terminal | Conhost | Status |
77
88
  | --- | --- | --- |
@@ -83,7 +94,7 @@ Windows terminals run Atomic through a console host (conhost). Terminals that re
83
94
 
84
95
  ## Windows and WSL keybindings
85
96
 
86
- Atomic adjusts several default shortcuts on native Windows and WSL to avoid terminal conflicts:
97
+ Atomic adjusts several default shortcuts on native Windows and WSL to avoid terminal conflicts. WSL keybindings activate automatically on Linux whenever `WSL_DISTRO_NAME` or `WSL_INTEROP` is set.
87
98
 
88
99
  | Action | Native Windows | WSL |
89
100
  | --- | --- | --- |
@@ -95,47 +106,31 @@ Atomic adjusts several default shortcuts on native Windows and WSL to avoid term
95
106
  | Paste image or clipboard text | `Alt+V` or `Ctrl+V` | `Alt+V` or `Ctrl+V` |
96
107
  | Jump to previous / next prompt | `Ctrl+Up` / `Ctrl+Down` | `Ctrl+Up` / `Ctrl+Down` |
97
108
 
98
- On native Windows (outside VS Code's integrated terminal), pressing the unmodified secondary mouse button pastes clipboard text into the focused input. See [Keybindings](/keybindings) for the complete shortcut reference.
109
+ On native Windows outside VS Code's integrated terminal, pressing the unmodified secondary mouse button pastes clipboard text into the focused input. See [Keybindings](/keybindings) for the complete shortcut reference.
99
110
 
100
- ## Interactive startup
111
+ ## Startup, shutdown, and process cleanup
101
112
 
102
- On eligible interactive starts, Atomic opens the prompt editor immediately so you can start typing right away, and your text is kept while the session finishes loading. See [Startup typing](/usage#startup-typing) for which keys apply immediately and which wait in order.
103
-
104
- Submitting before loading finishes shows the working indicator, and pressing Escape cancels a queued submission. If resource loading fails before a prompt sends, Atomic restores your draft without sending a model request; run `/reload` to retry.
105
-
106
- ## Shutdown and shell process cleanup
107
-
108
- - **Graceful shutdown:** Quitting Atomic gives the interactive engine up to 5 seconds to run `session_shutdown` handlers.
113
+ - **Early startup typing:** On eligible interactive starts, Atomic opens the prompt editor right away so you can start typing while the session finishes loading. Submitting early shows the working indicator, and pressing `Escape` cancels a queued submission. If resource loading fails before a prompt sends, Atomic restores your draft without sending a model request; run `/reload` to retry. See [Startup typing](/usage#startup-typing).
114
+ - **Graceful shutdown:** Quitting Atomic gives the session up to 5 seconds to run `session_shutdown` handlers.
109
115
  - **Console close and Windows sign-out:** Closing the console window (exit code `0xC000013A`) and signing out, restarting, or shutting down Windows also run `session_shutdown` handlers with `fromSignal: true` for up to about 4 seconds before Windows terminates the process.
110
- - **Shell process-tree cleanup:** On native Windows, `!` commands and ownerless `bash` or `powershell` tool calls start in their own Windows Job object, so pressing Escape, hitting a timeout, or aborting stops the shell and the processes it started. Because Git Bash starts child processes with `CREATE_BREAKAWAY_FROM_JOB`, processes left running after `bash` exits cannot be stopped by that job. Set `ATOMIC_HOST_SPAWN=child-process` to revert to `child_process`.
111
-
112
- ## Headless skill commands
113
-
114
- Skills such as `/skill:skill-creator` run evaluation queries in a hidden Windows console that cannot answer interactive credential prompts. Configure an API key, an environment variable, or a credential command that reads a cached token without prompting.
116
+ - **Shell process-tree cleanup:** Interactive and CLI `bash` and `powershell` tool calls are contained automatically by the session. Interactive `!` commands and standalone SDK `bash` or `powershell` calls start in their own Windows Job object, so pressing `Escape`, hitting a timeout, or aborting stops the shell and its child processes. Because Git Bash starts child processes with `CREATE_BREAKAWAY_FROM_JOB`, processes left running after `bash` exits cannot be stopped by that job. Set `ATOMIC_HOST_SPAWN=child-process` to disable native Job-object containment for `!` commands, helper processes, and standalone SDK tool calls and fall back to Node's `child_process`.
115
117
 
116
- ## Filesystem watchers
118
+ ## Self-update on Windows
117
119
 
118
- When a Windows path cannot be watched reliably with native filesystem events, Atomic falls back to polling where supported. Theme reloads and Git status updates may therefore arrive after a short polling delay.
120
+ Run `atomic update` or `atomic update --self` to update Atomic (add `--force` to reinstall the same version), `atomic update --all` to update Atomic and installed packages, `atomic update --extensions` to update installed packages only, or `atomic update --models` to refresh the model catalog.
119
121
 
120
- ## Self-update behavior
121
-
122
- `atomic update` and `atomic update --self` update Atomic only. Pass `atomic update --all` to update both Atomic and installed packages, or `atomic update --extensions` to update installed packages only.
123
-
124
- For writable global package-manager installs on Windows, Atomic handles loaded native add-ons during self-update so Windows file locks do not block replacement.
125
-
126
- If Atomic cannot safely self-update an installation, it exits with an explanation naming the detected executable path when available and tells you to update through the package manager, wrapper, source checkout, or release artifact that installed it. Release archive installs are not updated by `atomic update`; rerun `install.ps1` instead. Standalone Bun binaries point you to the latest [Atomic releases](https://github.com/bastani-inc/atomic/releases/latest).
127
-
128
- ## PowerShell tool
122
+ For writable global package-manager installs on Windows, Atomic handles loaded native add-ons during self-update so Windows file locks do not block replacement. For custom or wrapped installations, configure `selfUpdateCommand` in global settings or `ATOMIC_SELF_UPDATE_COMMAND` (see [Custom update command](/reference/cli#custom-update-command)).
129
123
 
130
- On native Windows, Atomic enables the `powershell` tool by default whenever `pwsh.exe` or `powershell.exe` is found in the discovery order above. If neither is found, Atomic omits the tool. Add `powershell` to `defaultTools` if you want it alongside a narrower built-in tool list. Both `ATOMIC_*` and legacy `PI_*` session environment variables are available inside PowerShell calls.
124
+ If Atomic cannot safely self-update an installation, it exits with an explanation naming the detected executable path when available and tells you how to update. Release archive installs are not updated by `atomic update`; rerun `install.ps1` instead. Standalone Bun binaries point you to the latest [Atomic releases](https://github.com/bastani-inc/atomic/releases/latest).
131
125
 
132
- PowerShell calls render with a `PS>` prompt in the transcript, and truncated output spills to an `atomic-powershell-*` temporary file separate from Bash spill files.
126
+ ## Headless skills and file watchers
133
127
 
134
- For SDK integrations, `@bastani/atomic` exports `createPowerShellTool()`, `createPowerShellToolDefinition()`, `createLocalPowerShellOperations()`, their public types, and `getPowerShellConfig()`. Factory-created tools expose the `ATOMIC_*` and legacy `PI_*` session snapshot by default; pass `exposeSessionEnvironment: false` to opt out. Default local execution is Windows-only and requires a resolvable PowerShell executable.
128
+ - **Headless skill commands:** Skills such as `/skill:skill-creator` run evaluation queries in a hidden Windows console that cannot answer interactive credential prompts. Configure an API key, an environment variable, or a credential command that reads a cached token without prompting.
129
+ - **File watcher polling:** When a Windows path cannot be watched reliably with native filesystem events, Atomic falls back to polling: every 1,000 ms for custom theme files and Git HEAD, and every 250 ms for Git reftable lists. Theme reloads and Git status updates may arrive after that short interval.
135
130
 
136
131
  ## Known issues
137
132
 
138
- These issues come from older versions of Windows conhost:
133
+ These issues come from older versions of Windows `conhost`:
139
134
 
140
135
  | Issue | Affects | Remedy |
141
136
  | --- | --- | --- |