@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
@@ -2,13 +2,13 @@
2
2
 
3
3
  `@bastani/web-access` is Atomic's bundled extension for web search, webpage and PDF extraction, GitHub repository cloning, DeepWiki code search, and YouTube and local video analysis.
4
4
 
5
- See the [web access guide](https://docs.bastani.ai/web-access) for usage examples and fetch argument troubleshooting.
5
+ See the [web access guide](https://docs.bastani.ai/web-access) for usage examples and fetch troubleshooting.
6
6
 
7
7
  ## Setup
8
8
 
9
9
  Atomic bundles `@bastani/web-access` with `@bastani/atomic`. No separate installation is required.
10
10
 
11
- `web_search` works with no API keys through Exa's keyless MCP endpoint. For direct API access or additional providers, set environment variables (`EXA_API_KEY`, `PERPLEXITY_API_KEY`, `GEMINI_API_KEY`) or add keys to `~/.atomic/web-search.json`:
11
+ `web_search` works with no API keys through Exa's keyless MCP endpoint. For direct API access or additional providers, export environment variables (`EXA_API_KEY`, `PERPLEXITY_API_KEY`, `GEMINI_API_KEY`) or add keys to `~/.atomic/web-search.json`:
12
12
 
13
13
  ```json
14
14
  {
@@ -20,7 +20,7 @@ Atomic bundles `@bastani/web-access` with `@bastani/atomic`. No separate install
20
20
 
21
21
  When `~/.atomic/web-search.json` is absent, Atomic checks legacy `~/.pi/web-search.json` without merging the two files.
22
22
 
23
- In `auto` mode (the default), `web_search` tries Exa first (direct API if keyed, MCP if not), then Perplexity, then Gemini API, and then Gemini Web when browser cookie access is enabled.
23
+ In `auto` mode (the default), `web_search` tries Exa first (direct API if keyed, keyless MCP if not), then Perplexity, then Gemini API, and then Gemini Web when browser cookie access is enabled.
24
24
 
25
25
  Optional binaries for video frame extraction:
26
26
 
@@ -55,11 +55,7 @@ fetch_content({ urls: ["/path/to/recording.mp4"], prompt: "What error appears on
55
55
 
56
56
  ## Tools
57
57
 
58
- The extension registers all four tools at startup and shares one lazy initialization attempt on first use. Tool calls wait for initialization and active-session replay before provider work starts. A failed initializer or replay can be retried by a later call.
59
-
60
- Initialization and replay are leased to the active session. Session shutdown retires the lease and cleans up its candidate, so calls spanning shutdown reject and a restarted session creates a fresh provider instance. An abort during the shared wait cancels only that invocation. Host cancellation after provider or curator work rejects with the host abort reason. An explicit user cancellation in the curator returns `{ cancelled: true, cancelReason: "user" }`. Resetting the initialization attempt does not re-evaluate an ESM module whose module evaluation threw.
61
-
62
- In batch search and fetch calls, partial success stays usable and retains item-level errors. A nonempty batch where every provider request or URL fetch fails reports through Atomic's tool-error channel with aggregate stage metadata while keeping per-item diagnostics in the result.
58
+ All four tools register at startup and initialize on first use. In batch search and fetch calls, partial successes remain usable alongside per-item errors; if every item in a batch fails, the tool returns an error with diagnostics for each item. Cancelling inside the browser curator returns `{ cancelled: true, cancelReason: "user" }`.
63
59
 
64
60
  ### `web_search`
65
61
 
@@ -77,7 +73,7 @@ web_search({ query: "release notes", includeContent: true })
77
73
  | Parameter | Description |
78
74
  | --- | --- |
79
75
  | `query` / `queries` | Single query or array of queries searched in sequence. |
80
- | `numResults` | Results per query (default 5, max 20). |
76
+ | `numResults` | Results per query (default `5`, max `20`). |
81
77
  | `recencyFilter` | `day`, `week`, `month`, or `year`. |
82
78
  | `domainFilter` | Limit to domains, or prefix a domain with `-` to exclude it. |
83
79
  | `provider` | `auto` (default), `exa`, `perplexity`, or `gemini`. |
@@ -96,15 +92,15 @@ code_search({ repoName: "expressjs/express", query: "How is middleware error han
96
92
  | --- | --- |
97
93
  | `repoName` | Required single public GitHub repository in `owner/repo` format, not a URL or list. |
98
94
  | `query` | Required nonempty question about that repository, sent verbatim to DeepWiki's `ask_question`. |
99
- | `maxTokens` | Optional best-effort local output bound, roughly four characters per token, with a truncation notice (default 5000, range 1000 to 50000). |
95
+ | `maxTokens` | Optional best-effort local output bound, roughly four characters per token, with a truncation notice (default `5000`, range `1000` to `50000`). |
100
96
 
101
97
  Requests have a 60-second deadline and honor caller cancellation. Errors and empty responses are reported directly without falling back to `web_search`. Use `web_search` for broader discovery or unindexed repositories.
102
98
 
103
99
  ### `fetch_content`
104
100
 
105
- Fetch URLs or local video paths and return readable markdown. The tool detects GitHub repositories, YouTube videos, PDFs, local video files, and regular webpages automatically.
101
+ Fetch URLs or local video paths and return readable Markdown. The tool detects GitHub repositories, YouTube videos, PDFs, local video files, and regular webpages automatically.
106
102
 
107
- Always pass the lowercase `urls` field as a nonempty array of strings, even for one target. Legacy `{ url: "..." }` calls, empty arrays, empty strings, object entries, and unrecognized fields are rejected before fetching. Atomic's argument normalization can convert a scalar `urls` string into a one-item array, so prompts and integrations should send the documented array form.
103
+ Always pass the lowercase `urls` field as a nonempty array of strings, even for one target. Legacy `{ url: "..." }` calls, empty arrays, empty strings, object entries, and unrecognized fields are rejected before fetching.
108
104
 
109
105
  ```typescript
110
106
  fetch_content({ urls: ["https://example.com/article"] })
@@ -120,9 +116,9 @@ fetch_content({ urls: ["https://youtube.com/watch?v=abc"], timestamp: "23:41-25:
120
116
  | `urls` | Required nonempty array of URL or local video path strings. |
121
117
  | `prompt` | Question for YouTube or local video analysis. Ignored for webpages. |
122
118
  | `timestamp` | Video frame extraction time: seconds (`"85"`), a single time (`"23:41"`), or a range (`"23:41-25:00"`). Ignored for non-video inputs. |
123
- | `frames` | Number of video frames to extract (1 to 12). Alone, samples the whole video; with a range, defaults to 6 unless set; with a single timestamp, uses 5-second intervals. Ignored for non-video inputs. |
119
+ | `frames` | Number of video frames to extract (`1` to `12`). Alone, samples the whole video; with a range, defaults to `6` unless set; with a single timestamp, uses 5-second intervals. Ignored for non-video inputs. |
124
120
  | `model` | Gemini model override for YouTube or local video analysis only. Does not change webpage extraction. |
125
- | `forceClone` | Allow cloning a GitHub repository that exceeds `githubClone.maxRepoSizeMB` (default 350 MB). |
121
+ | `forceClone` | Allow cloning a GitHub repository that exceeds `githubClone.maxRepoSizeMB` (default `350` MB). |
126
122
 
127
123
  ### `get_search_content`
128
124
 
@@ -132,8 +128,17 @@ Retrieve stored content from earlier `web_search` or `fetch_content` calls. Inli
132
128
  get_search_content({ responseId: "abc123", urlIndex: 0 })
133
129
  get_search_content({ responseId: "abc123", url: "https://example.com/article" })
134
130
  get_search_content({ responseId: "abc123", query: "original query" })
131
+ get_search_content({ responseId: "abc123", queryIndex: 0 })
135
132
  ```
136
133
 
134
+ | Parameter | Description |
135
+ | --- | --- |
136
+ | `responseId` | Required response ID from a previous `web_search` or `fetch_content` result. |
137
+ | `query` | Retrieve the stored result for a specific `web_search` query string. |
138
+ | `queryIndex` | Retrieve the stored `web_search` query result by zero-based index. |
139
+ | `url` | Retrieve the stored page content for a specific URL. |
140
+ | `urlIndex` | Retrieve the stored page content by zero-based index. |
141
+
137
142
  ## Capabilities
138
143
 
139
144
  ### GitHub repositories
@@ -146,7 +151,7 @@ By default, clones go to an owner-only `github-repos` directory under `$XDG_RUNT
146
151
 
147
152
  ### YouTube videos
148
153
 
149
- YouTube URLs use Gemini for visual descriptions, timestamped transcripts, and chapter markers. Pass `prompt` to ask a specific question about the video. Results include the video thumbnail when available.
154
+ YouTube URLs use Gemini for visual descriptions, timestamped transcripts, and chapter markers. Pass `prompt` to ask a specific question about the video. Results include the video thumbnail when available. Setting `youtube.enabled: false` disables both YouTube analysis and YouTube frame extraction.
150
155
 
151
156
  Fallback order is Gemini Web (when browser cookies are enabled), then Gemini API, and then Perplexity (text summary only). Supported URL formats include `/watch?v=`, `youtu.be/`, `/shorts/`, `/live/`, `/embed/`, and `/v/`.
152
157
 
@@ -172,7 +177,7 @@ Frame extraction requires `ffmpeg`, plus `yt-dlp` for YouTube. Timestamps accept
172
177
 
173
178
  ### PDFs
174
179
 
175
- PDF URLs up to 20 MB are extracted as text (up to 100 pages) and saved to `~/Downloads/` as markdown files with unique names so concurrent fetches do not overwrite existing files. The agent can then inspect sections with `read` without loading the whole file into context. Extraction is text-only and does not perform OCR.
180
+ PDF URLs up to 20 MB are extracted as text (up to 100 pages) and saved to `~/Downloads/` as Markdown files with unique names so concurrent fetches do not overwrite existing files. The agent can then inspect sections with `read` without loading the whole file into context. Extraction is text-only and does not perform OCR.
176
181
 
177
182
  ### Blocked pages
178
183
 
@@ -194,7 +199,7 @@ Only `http` and `https` URLs are fetched. URLs with embedded credentials, local
194
199
  - Local video paths use Gemini API (Files API), then Gemini Web when browser cookies are enabled.
195
200
  - GitHub repository URLs clone locally, or use the GitHub API for large repositories and full commit SHAs.
196
201
  - YouTube URLs use Gemini Web when browser cookies are enabled, then Gemini API, and then Perplexity.
197
- - HTTP and HTTPS URLs branch by content type. PDFs extract text to markdown in `~/Downloads/`. HTML runs Readability, the RSC parser, Jina Reader, and then Gemini fallback. Plain text, JSON, and Markdown return directly.
202
+ - HTTP and HTTPS URLs branch by content type. PDFs extract text to Markdown in `~/Downloads/`. HTML runs Readability, the RSC parser, Jina Reader, and then Gemini fallback. Plain text, JSON, and Markdown return directly.
198
203
 
199
204
  ## Commands
200
205
 
@@ -217,10 +222,11 @@ Toggle or configure the curator workflow at runtime:
217
222
  /curator
218
223
  /curator on
219
224
  /curator off
225
+ /curator none
220
226
  /curator summary-review
221
227
  ```
222
228
 
223
- This command saves `workflow` to `~/.atomic/web-search.json` and takes effect on the next `web_search` call. When disabled (the default), `web_search` returns raw results without opening a browser window. Subagents and non-interactive sessions always skip the curator and return raw results.
229
+ This command saves `workflow` to `~/.atomic/web-search.json` and takes effect on the next `web_search` call. When disabled (`none`, the default), `web_search` returns raw results without opening a browser window. Subagents and non-interactive sessions always skip the curator and return raw results.
224
230
 
225
231
  ### `/search`
226
232
 
@@ -228,11 +234,14 @@ Browse stored search and fetch results from the current session interactively, i
228
234
 
229
235
  ### `/google-account`
230
236
 
231
- Show the Google account currently authenticated for Gemini Web. This helps verify the active account when multiple Chromium profiles exist or `chromeProfile` is set.
237
+ Show the Google account currently authenticated for Gemini Web locally without triggering a model turn. This helps verify the active account when multiple Chromium profiles exist or `chromeProfile` is set.
232
238
 
233
- ## Activity monitor
239
+ ## Keyboard shortcuts and activity monitor
234
240
 
235
- Press `Ctrl+Shift+W` to toggle live request and response tracking:
241
+ | Shortcut | Default | Action |
242
+ | --- | --- | --- |
243
+ | `shortcuts.curate` | `Ctrl+Shift+S` | Open the browser search curator while a search is running. |
244
+ | `shortcuts.activity` | `Ctrl+Shift+W` | Toggle the live request and response activity monitor. |
236
245
 
237
246
  ```text
238
247
  ─── Web Search Activity ────────────────────────────────────
@@ -242,21 +251,23 @@ Press `Ctrl+Shift+W` to toggle live request and response tracking:
242
251
  ────────────────────────────────────────────────────────────
243
252
  ```
244
253
 
254
+ Override shortcuts in `~/.atomic/web-search.json` using Atomic keybinding syntax (`ctrl+s`, `ctrl+shift+s`, `alt+r`). Shortcut changes take effect on the next Atomic restart.
255
+
245
256
  ## Configuration
246
257
 
247
- Store settings in `~/.atomic/web-search.json`. Every field is optional.
258
+ Store settings in `~/.atomic/web-search.json`. Every field is optional. Environment variables (`EXA_API_KEY`, `PERPLEXITY_API_KEY`, `GEMINI_API_KEY`) take precedence over keys in the JSON file.
248
259
 
249
260
  ```json
250
261
  {
251
262
  "exaApiKey": "exa-...",
252
263
  "perplexityApiKey": "pplx-...",
253
264
  "geminiApiKey": "AIza...",
254
- "provider": "exa",
265
+ "provider": "auto",
255
266
  "chromeProfile": "Profile 2",
256
267
  "allowBrowserCookies": false,
257
- "searchModel": "gemini-2.5-flash",
268
+ "searchModel": "gemini-3-flash-preview",
258
269
  "summaryModel": "anthropic/claude-haiku-4-5",
259
- "workflow": "summary-review",
270
+ "workflow": "none",
260
271
  "curatorTimeoutSeconds": 20,
261
272
  "githubClone": {
262
273
  "enabled": true,
@@ -280,32 +291,28 @@ Store settings in `~/.atomic/web-search.json`. Every field is optional.
280
291
  }
281
292
  ```
282
293
 
283
- - `EXA_API_KEY`, `PERPLEXITY_API_KEY`, and `GEMINI_API_KEY` environment variables take precedence over keys in `~/.atomic/web-search.json`.
284
- - `provider` sets the default search provider (`"auto"`, `"exa"`, `"perplexity"`, or `"gemini"`). Changing the provider in the curator UI updates this field automatically.
285
- - `workflow` sets the curator mode to `"none"` (default, raw results) or `"summary-review"` (opens the curator with a generated summary draft).
286
- - `chromeProfile` overrides the Chromium profile directory used for Gemini Web cookie lookup.
287
- - `allowBrowserCookies` enables Chromium cookie extraction for Gemini Web. It defaults to `false` to avoid unexpected macOS Keychain prompts. You can also enable it per process with `ATOMIC_ALLOW_BROWSER_COOKIES=1`.
288
- - `searchModel` overrides the Gemini API model used by `web_search` without changing URL, YouTube, or video extraction defaults.
289
- - `summaryModel` sets the preferred model for summary drafts in the curator UI, such as `"anthropic/claude-haiku-4-5"`. Only models available in your model registry are eligible; if the configured model is unavailable, the curator falls back to its built-in preference list.
290
- - `curatorTimeoutSeconds` sets the initial curator idle timeout in seconds (default `20`, max `600`). You can adjust the timer inside the curator UI.
291
- - Set `"enabled": false` under `githubClone`, `youtube`, or `video` to disable that feature.
292
-
293
- Most config file edits require restarting Atomic to take effect.
294
-
295
- ### Shortcuts
296
-
297
- Override keyboard shortcuts in `~/.atomic/web-search.json`:
298
-
299
- ```json
300
- {
301
- "shortcuts": {
302
- "curate": "ctrl+shift+s",
303
- "activity": "ctrl+shift+w"
304
- }
305
- }
306
- ```
307
-
308
- Values use Atomic keybinding syntax, such as `ctrl+s`, `ctrl+shift+s`, or `alt+r`. Changes take effect on the next Atomic restart.
294
+ | Setting | Default | Description |
295
+ | --- | --- | --- |
296
+ | `exaApiKey`, `perplexityApiKey`, `geminiApiKey` | unset | Provider API keys. Matching environment variables take precedence. |
297
+ | `provider` | `"auto"` | Default search provider (`"auto"`, `"exa"`, `"perplexity"`, or `"gemini"`). Switching the provider in the curator UI updates the active config immediately. |
298
+ | `workflow` | `"none"` | Curator mode: `"none"` (raw results) or `"summary-review"` (opens the curator with a generated summary draft). |
299
+ | `searchModel` | `"gemini-3-flash-preview"` | Gemini API model used by `web_search` without changing URL, YouTube, or video extraction defaults. |
300
+ | `summaryModel` | built-in preference list | Preferred model for curator summary drafts (must be available in your model registry). |
301
+ | `curatorTimeoutSeconds` | `20` | Initial curator idle timeout in seconds (max `600`). |
302
+ | `allowBrowserCookies` | `false` | Enable Chromium cookie extraction for Gemini Web (also controllable per process with `ATOMIC_ALLOW_BROWSER_COOKIES=1`). |
303
+ | `chromeProfile` | auto-detected | Override Chromium profile directory for Gemini Web cookie lookup. |
304
+ | `githubClone.enabled` | `true` | Enable local GitHub repository cloning in `fetch_content`. |
305
+ | `githubClone.maxRepoSizeMB` | `350` | Size threshold above which `fetch_content` falls back to the GitHub API unless `forceClone: true`. |
306
+ | `githubClone.cloneTimeoutSeconds` | `30` | Timeout in seconds for `git clone`. |
307
+ | `githubClone.clonePath` | system cache dir | Override directory for cloned repositories. |
308
+ | `youtube.enabled` | `true` | Enable YouTube analysis and frame extraction. |
309
+ | `youtube.preferredModel` | `"gemini-3-flash-preview"` | Preferred Gemini model for YouTube analysis. |
310
+ | `video.enabled` | `true` | Enable local video analysis. |
311
+ | `video.preferredModel` | `"gemini-3-flash-preview"` | Preferred Gemini model for local video analysis. |
312
+ | `video.maxSizeMB` | `50` | Maximum local video file size in MB. |
313
+ | `shortcuts.curate` / `shortcuts.activity` | `ctrl+shift+s` / `ctrl+shift+w` | Keyboard shortcuts for curator and activity monitor. |
314
+
315
+ Most config file edits require restarting Atomic to take effect (switching provider or `/curator` in a running session updates active config immediately).
309
316
 
310
317
  ### Rate limits and concurrency
311
318
 
@@ -320,40 +327,6 @@ Perplexity requests are rate-limited on the client to 10 requests per minute. `f
320
327
  - GitHub branch names containing slashes may misresolve file paths inside `/tree/` or `/blob/` URLs. The local clone still works and the agent can inspect files directly.
321
328
  - Non-code GitHub URLs (issues, pull requests, discussions, releases, and wikis) fall through to regular webpage extraction.
322
329
 
323
- <details>
324
- <summary>Package files</summary>
330
+ ## License
325
331
 
326
- | File | Purpose |
327
- | --- | --- |
328
- | `index.ts` | Lazy extension entry point, tool schemas, commands, and shortcut registration. |
329
- | `index-heavy.ts` | Heavy feature wiring and `/curator`, `/google-account`, and `/search` commands. |
330
- | `config-paths.ts` | User config file resolution (`~/.atomic/web-search.json` with legacy fallback). |
331
- | `web-search-tool.ts` | `web_search` tool execution and curator integration. |
332
- | `web-search-command.ts` | `/websearch` command handler. |
333
- | `web-search-config.ts` | Search config loading, saving, and provider selection. |
334
- | `content-tools.ts` | `fetch_content`, `code_search`, and `get_search_content` execution. |
335
- | `curator-page.ts` | HTML, CSS, and client script assembly for the curator UI. |
336
- | `curator-server.ts` | Local HTTP server with SSE streaming for the curator UI. |
337
- | `summary-review.ts` | Summary prompt construction, model draft generation, and deterministic fallback. |
338
- | `exa.ts` | Exa direct API and keyless MCP client with usage tracking. |
339
- | `code-search.ts` | Repository question answering through DeepWiki MCP. |
340
- | `extract.ts` | URL and local path routing, HTTP fetching, and fallback orchestration. |
341
- | `extract-frames.ts` | Video frame extraction through `ffmpeg` and `yt-dlp`. |
342
- | `gemini-search.ts` | Search routing across Exa, Perplexity, Gemini API, and Gemini Web. |
343
- | `gemini-url-context.ts` | Gemini URL Context and Gemini Web extraction fallbacks. |
344
- | `gemini-web.ts` | Gemini Web client using Chromium cookies. |
345
- | `gemini-web-config.ts` | Gemini Web profile and browser-cookie opt-in config. |
346
- | `gemini-api.ts` | Gemini REST API client. |
347
- | `chrome-cookies.ts` | macOS and Linux Chromium cookie extraction. |
348
- | `youtube-extract.ts` | YouTube URL detection and extraction fallback chain. |
349
- | `video-extract.ts` | Local video detection, Files API upload, and Gemini analysis. |
350
- | `github-config.ts` | GitHub URL validation and clone cache configuration. |
351
- | `github-extract.ts` | GitHub repository cloning, caching, and tree or file rendering. |
352
- | `github-api.ts` | GitHub API fallback for large repositories and commit SHAs. |
353
- | `perplexity.ts` | Perplexity API client with client-side rate limiting. |
354
- | `pdf-extract.ts` | PDF text extraction and markdown saving to `~/Downloads/`. |
355
- | `rsc-extract.ts` | Next.js RSC flight data parser. |
356
- | `storage.ts` | Session-aware stored result cache. |
357
- | `activity.ts` | Request and response tracking for the activity widget. |
358
-
359
- </details>
332
+ MIT. See [LICENSE](LICENSE).