@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,10 +1,9 @@
1
1
  ---
2
- title: Theme reference
3
- description: Theme file format, every color token, and accepted color values.
2
+ title: "Theme reference"
3
+ sidebarTitle: "Themes"
4
+ description: "Reference for theme JSON structure, all 51 required and 3 optional color tokens, color formats, and terminal color modes."
4
5
  ---
5
6
 
6
- # Theme reference
7
-
8
7
  ## Theme format
9
8
 
10
9
  ```json
@@ -13,13 +12,14 @@ description: Theme file format, every color token, and accepted color values.
13
12
  "name": "my-theme",
14
13
  "vars": {
15
14
  "blue": "#0066cc",
15
+ "accentColor": "blue",
16
16
  "gray": 242
17
17
  },
18
18
  "colors": {
19
- "accent": "blue",
19
+ "accent": "accentColor",
20
20
  "muted": "gray",
21
21
  "text": "",
22
- ...
22
+ "border": "blue"
23
23
  },
24
24
  "workingIndicator": {
25
25
  "dark": "#70759f",
@@ -28,28 +28,33 @@ description: Theme file format, every color token, and accepted color values.
28
28
  "accent": "blue",
29
29
  "bright": "#b8d2ff",
30
30
  "peak": "#eef4ff"
31
+ },
32
+ "export": {
33
+ "pageBg": "#18181e",
34
+ "cardBg": "#1e1e24",
35
+ "infoBg": "#3c3728"
31
36
  }
32
37
  }
33
38
  ```
34
39
 
35
- - `name` is required, must be unique, and must not contain `/`.
36
- - `vars` is optional. Define reusable colors here, then reference them in `colors` or `workingIndicator`.
40
+ - `name` is required, must be a non-empty string, must be unique, and must not contain `/`. The name `system` is reserved and cannot be overridden.
41
+ - `vars` is optional. Define reusable colors here and reference them from `colors`, `workingIndicator`, `export`, or other `vars` entries. Chained variable references are supported; circular references fail validation with `"Circular variable reference detected"`, and undefined variable names fail with `"Variable reference not found"`.
37
42
  - `colors` must define all 51 required tokens. `scrollbarThumb` is optional and falls back to `selectedBg` when omitted. `searchMatchBg` and `searchMatchText` remain accepted for older theme files but are unused.
38
43
  - `workingIndicator` is optional. It can override any of the six tones in the outward half of the ordinary `∀` ramp. Atomic derives omitted tones from selected background, accent, and text roles, then mirrors the palette back after `peak`.
39
- - Explicit numeric values from 0 through 255 remain exact terminal palette indices.
40
- - When an index from 0 through 15 seeds an omitted tone, Atomic mixes from its built-in approximation of the common ANSI RGB value. The terminal still controls the explicit index's actual appearance.
44
+ - Explicit numeric values from `0` through `255` remain exact terminal palette indices.
45
+ - When an index from `0` through `15` seeds an omitted tone, Atomic mixes from its built-in approximation of the common ANSI RGB value. The terminal still controls the explicit index's actual appearance.
41
46
  - Both explicit and derived tones update on theme hot reload.
42
47
 
43
- The `$schema` field enables editor auto-completion and validation against the [theme JSON schema](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/schemas/theme.schema.json). Atomic rejects theme files with unknown top-level fields or unknown properties under `colors`, `workingIndicator`, or `export`. Define reusable custom colors under `vars` instead.
48
+ The `$schema` field enables editor completion and validation against the [theme JSON schema](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/schemas/theme.schema.json). Atomic rejects theme files with unknown top-level fields or unknown properties under `colors`, `workingIndicator`, or `export`. Define reusable custom colors under `vars` instead.
44
49
 
45
50
  ## Color tokens
46
51
 
47
- Every theme must define all 51 required color tokens. The optional tokens preserve compatibility with older theme files: `scrollbarThumb` and unused `searchMatchBg` fall back to `selectedBg`, and unused `searchMatchText` falls back to `text`.
52
+ Every theme must define all 51 required color tokens. The three optional tokens preserve compatibility with older theme files: `scrollbarThumb` and unused `searchMatchBg` fall back to `selectedBg`, and unused `searchMatchText` falls back to `text`.
48
53
 
49
54
  ### Core UI (11 colors)
50
55
 
51
56
  | Token | Purpose |
52
- |-------|---------|
57
+ | --- | --- |
53
58
  | `accent` | Primary accent (logo, selected items, cursor) |
54
59
  | `border` | Normal borders |
55
60
  | `borderAccent` | Highlighted borders |
@@ -62,10 +67,10 @@ Every theme must define all 51 required color tokens. The optional tokens preser
62
67
  | `text` | Default text (usually `""`) |
63
68
  | `thinkingText` | Thinking block text |
64
69
 
65
- ### Backgrounds & content (11 required, 3 optional)
70
+ ### Backgrounds and content (11 required, 3 optional)
66
71
 
67
72
  | Token | Purpose |
68
- |-------|---------|
73
+ | --- | --- |
69
74
  | `selectedBg` | Selected line background |
70
75
  | `scrollbarThumb` | Fullscreen scrollbar thumb background; optional, falls back to `selectedBg` |
71
76
  | `searchMatchBg` | Unused leftover token; optional, falls back to `selectedBg` |
@@ -84,7 +89,7 @@ Every theme must define all 51 required color tokens. The optional tokens preser
84
89
  ### Markdown (10 colors)
85
90
 
86
91
  | Token | Purpose |
87
- |-------|---------|
92
+ | --- | --- |
88
93
  | `mdHeading` | Headings |
89
94
  | `mdLink` | Link text |
90
95
  | `mdLinkUrl` | Link URL |
@@ -99,7 +104,7 @@ Every theme must define all 51 required color tokens. The optional tokens preser
99
104
  ### Tool diffs (3 colors)
100
105
 
101
106
  | Token | Purpose |
102
- |-------|---------|
107
+ | --- | --- |
103
108
  | `toolDiffAdded` | Added lines |
104
109
  | `toolDiffRemoved` | Removed lines |
105
110
  | `toolDiffContext` | Context lines |
@@ -107,7 +112,7 @@ Every theme must define all 51 required color tokens. The optional tokens preser
107
112
  ### Syntax highlighting (9 colors)
108
113
 
109
114
  | Token | Purpose |
110
- |-------|---------|
115
+ | --- | --- |
111
116
  | `syntaxComment` | Comments |
112
117
  | `syntaxKeyword` | Keywords |
113
118
  | `syntaxFunction` | Function names |
@@ -123,7 +128,7 @@ Every theme must define all 51 required color tokens. The optional tokens preser
123
128
  Editor border colors indicating thinking level (from subtle to prominent):
124
129
 
125
130
  | Token | Purpose |
126
- |-------|---------|
131
+ | --- | --- |
127
132
  | `thinkingOff` | Thinking off |
128
133
  | `thinkingMinimal` | Minimal thinking |
129
134
  | `thinkingLow` | Low thinking |
@@ -134,12 +139,12 @@ Editor border colors indicating thinking level (from subtle to prominent):
134
139
  ### Bash mode (1 color)
135
140
 
136
141
  | Token | Purpose |
137
- |-------|---------|
142
+ | --- | --- |
138
143
  | `bashMode` | Editor border in bash mode (`!` prefix) |
139
144
 
140
145
  ### HTML export (optional)
141
146
 
142
- The `export` section controls colors for `/export` HTML output. If omitted, colors are derived from `userMessageBg`.
147
+ The `export` section controls background colors for `/export` HTML output. Each field accepts hex, OKHSL, 256-color integers, or `vars` references. Omitted fields (or `""`) derive from `userMessageBg`.
143
148
 
144
149
  ```json
145
150
  {
@@ -151,38 +156,47 @@ The `export` section controls colors for `/export` HTML output. If omitted, colo
151
156
  }
152
157
  ```
153
158
 
159
+ In HTML exports, an empty string `""` color token renders as `#000000` for built-in light themes (`light`, `catppuccin-latte`, or `system` on a light terminal) and `#e5e5e7` for all other themes.
160
+
154
161
  ## Color values
155
162
 
156
- Five formats are supported:
163
+ Five value formats are supported:
157
164
 
158
- | Format | Example | Description |
159
- |--------|---------|-------------|
160
- | Hex | `"#ff0000"` | 6-digit hex RGB |
161
- | OKHSL | `"okhsl(295 0.6 0.5)"` or `"okhsl(295deg 60% 50%)"` | Hue in degrees (optional `deg`), saturation and lightness as 0 to 1 decimals or 0% to 100% percentages. Converted to hex for rendering and HTML export. |
162
- | 256-color | `39` | xterm 256-color palette index (0 to 255) |
163
- | Variable | `"primary"` | Reference to a `vars` entry |
164
- | Default | `""` | Terminal's default color |
165
+ | Format | Example | Validation rules |
166
+ | --- | --- | --- |
167
+ | Hex | `"#ff0000"` | Strictly 6 hex digits (`#rrggbb`, case-insensitive). 3-digit shorthand (`#f00`) and 8-digit hex with alpha (`#ff000080`) are rejected. |
168
+ | OKHSL | `"okhsl(295 0.6 0.5)"` or `"okhsl(295deg 60% 50%)"` | Case-insensitive, whitespace-separated only (commas are rejected). Hue accepts optional `deg`; saturation and lightness must be in `0` to `1` or `0%` to `100%` or loading fails. Converted to hex for rendering and HTML export. Other CSS color functions such as `oklch(...)` are not accepted. |
169
+ | 256-color | `39` | Must be a JSON integer from `0` to `255`. Floats (such as `39.5`) fail validation, and quoted strings (such as `"39"`) are treated as variable references instead of palette indices. |
170
+ | Variable | `"primary"` | References a key in `vars`. Chained references work; circular or missing references fail theme loading. |
171
+ | Default | `""` | Uses the terminal's default foreground or background color. |
165
172
 
166
173
  ### 256-color palette
167
174
 
168
175
  - `0` to `15`: Basic ANSI colors (terminal-dependent)
169
- - `16` to `231`: 6×6×6 RGB cube (`16 + 36×R + 6×G + B` where `R`, `G`, and `B` are 0 to 5)
176
+ - `16` to `231`: 6x6x6 RGB cube (`16 + 36*R + 6*G + B` where `R`, `G`, and `B` are `0` to `5`)
170
177
  - `232` to `255`: Grayscale ramp
171
178
 
172
179
  ### Terminal compatibility
173
180
 
174
- Atomic uses 24-bit RGB colors. Most modern terminals support this (iTerm2, Kitty, WezTerm, Windows Terminal, VS Code). For older terminals with only 256-color support, Atomic falls back to the nearest palette color, which turns a slightly tinted background into a gray.
181
+ Atomic selects truecolor (24-bit RGB) or 256-color output in this precedence order:
182
+
183
+ 1. `terminal.trueColor` in `settings.json` (`true` forces truecolor; `false` forces 256-color)
184
+ 2. `ATOMIC_TRUE_COLOR` environment variable (`1` forces truecolor; `0` forces 256-color; legacy `PI_TRUE_COLOR` is also supported)
185
+ 3. Automatic detection:
186
+ - `COLORTERM=truecolor`, `COLORTERM=24bit`, or `WT_SESSION` selects truecolor.
187
+ - `TERM=dumb`, empty `TERM`, `TERM=linux`, `TERM=screen*`, or `TERM_PROGRAM=Apple_Terminal` selects 256-color.
188
+ - Other terminals default to truecolor.
175
189
 
176
- The tool status backgrounds `toolPendingBg`, `toolSuccessBg`, and `toolErrorBg` keep their hue instead. Each uses the nearest palette color whose strongest RGB channel is the same, so a green-tinted success background stays green. Give these three tokens different strongest channels (for example blue, green, and red tints) to keep them distinguishable in 256-color terminals, or set a palette index directly.
190
+ When falling back to 256-color mode, Atomic maps 24-bit RGB colors to the nearest palette color, which can turn a slightly tinted background into gray. The tool status backgrounds `toolPendingBg`, `toolSuccessBg`, and `toolErrorBg` preserve their hue instead by picking the nearest palette color whose strongest RGB channel matches. Give these three tokens different dominant channels (for example blue, green, and red tints) to keep them distinguishable in 256-color terminals, or set a 256-color index directly.
177
191
 
178
- Check truecolor support:
192
+ Check your terminal's advertised color capability:
179
193
 
180
194
  ```bash
181
- echo $COLORTERM # Should output "truecolor" or "24bit"
195
+ echo "$COLORTERM" # Outputs "truecolor" or "24bit" when advertised
182
196
  ```
183
197
 
184
- Turning colors off:
198
+ Turning colors off or overriding ANSI output:
185
199
 
186
200
  - `NO_COLOR` (any value) turns off every theme color, foreground and background, and text styles such as bold, italic, underline, inverse, strikethrough, and dim. Layout and text stay the same.
187
- - `FORCE_COLOR=0` (or `FORCE_COLOR=false`) does the same. `FORCE_COLOR=1` (or `true` or empty) and `FORCE_COLOR=2` limit truecolor themes to the 256-color palette, and `FORCE_COLOR=3` keeps the terminal's own color mode. `NO_COLOR` wins when both are set.
188
- - An extension that paints its own `#rrggbb` colors can call `hexColorAnsi(hex, "fg")` or `hexColorAnsi(hex, "bg")` from `@bastani/atomic` to get the escape sequence for the current settings, which is empty when colors are off.
201
+ - `FORCE_COLOR=0` (or `FORCE_COLOR=false`) does the same. `FORCE_COLOR=1` (or `true` or empty) and `FORCE_COLOR=2` limit truecolor themes to the 256-color palette, and `FORCE_COLOR=3` keeps the terminal's resolved color mode. `NO_COLOR` wins when both are set.
202
+ - An extension painting custom `#rrggbb` colors can call `hexColorAnsi(hex, "fg")` or `hexColorAnsi(hex, "bg")` from `@bastani/atomic` to get the ANSI sequence respecting `NO_COLOR` and `FORCE_COLOR` (empty string when colors are off). Note that `hexColorAnsi()` respects `NO_COLOR` and `FORCE_COLOR` (`1`/`2` -> 256-color, `3`/unset -> truecolor), and does not read `terminal.trueColor` or `ATOMIC_TRUE_COLOR`.
package/docs/themes.md CHANGED
@@ -1,28 +1,48 @@
1
1
  ---
2
- title: Themes
3
- description: Select built-in themes or create custom JSON themes with live reload.
2
+ title: "Customize themes"
3
+ sidebarTitle: "Themes"
4
+ description: "Switch built-in terminal themes, follow system light or dark appearance, and author custom JSON themes with hot reload."
4
5
  ---
5
6
 
6
- # Themes
7
+ Themes are JSON files that define colors for the Atomic terminal UI.
7
8
 
8
- Themes are JSON files that define colors for the TUI.
9
+ This page covers selecting a theme and authoring your own. See [Theme reference](/themes/reference) for the file schema, every color token, accepted color formats, and terminal color overrides.
9
10
 
10
- ## On this page and its reference
11
+ ## Built-in themes
12
+
13
+ Atomic ships seven built-in themes:
14
+
15
+ - `system`: derives colors from your terminal's reported foreground, background, and ANSI palette, and follows terminal appearance changes where supported. If the terminal does not report colors, it uses ANSI palette colors and faint secondary text. `system` is reserved and cannot be overridden by a custom theme.
16
+ - `dark`
17
+ - `light`
18
+ - `catppuccin-frappe`
19
+ - `catppuccin-latte`
20
+ - `catppuccin-macchiato`
21
+ - `catppuccin-mocha`
11
22
 
12
- This page covers selecting a theme and authoring your first one. The theme file format, every color token, and the accepted color values live in the [Theme reference](/themes/reference).
23
+ ## Locations and precedence
13
24
 
14
- ## Locations
25
+ Atomic loads custom themes from these sources:
15
26
 
16
- Atomic loads themes from:
27
+ - **Global:** `~/.atomic/agent/themes/*.json` (legacy `~/.pi/agent/themes/*.json`)
28
+ - **Project** (only after you trust the project): `.atomic/themes/*.json` (legacy `.pi/themes/*.json`)
29
+ - **Packages:** `themes/` directories, `atomic.themes`, or legacy `pi.themes` entries in `package.json`
30
+ - **Settings:** `themes` array in global or project `settings.json`, which accepts files, directories, and filter patterns (`!glob`, `+path`, `-path` with `~` expansion; see [Package filtering](/packages/reference#package-filtering))
31
+ - **CLI:** `--theme <path>` (repeatable) loads a theme file; `--use-theme <name>` (see [Initial theme](#initial-theme)) selects an already-loaded theme for one run without saving it
17
32
 
18
- - Built-in: `system`, `dark`, `light`, `catppuccin-frappe`, `catppuccin-latte`, `catppuccin-macchiato`, `catppuccin-mocha`
19
- - Global: `~/.atomic/agent/themes/*.json` (legacy `~/.pi/agent/themes/*.json`)
20
- - Project: `.atomic/themes/*.json` (legacy `.pi/themes/*.json`, only after the project is trusted)
21
- - Packages: `themes/` directories, `atomic.themes`, or legacy `pi.themes` entries in `package.json`
22
- - Settings: `themes` array with files or directories
23
- - CLI: `--theme <path>` (repeatable)
33
+ Discovery rules:
24
34
 
25
- Disable default discovery with `--no-themes`. `--theme <path>` loads a theme file; `--use-theme <name>` (see [Initial Theme](#initial-theme)) selects an already-loaded theme for this run without saving it.
35
+ - Auto-discovery in `~/.atomic/agent/themes/` and `.atomic/themes/` is non-recursive and skips dotfiles, `node_modules`, and files matched by `.gitignore`, `.ignore`, or `.fdignore`.
36
+ - Disable custom and package theme discovery with `--no-themes` (no short flag). Built-in themes and explicit `--theme <path>` files remain available.
37
+ - When multiple custom themes share the same `"name"`, Atomic keeps the first match and reports a collision diagnostic at startup or `/reload`. Precedence order:
38
+ 1. Packages passed with `-e` / `--extension`
39
+ 2. Project `settings.json` `themes` array
40
+ 3. Project auto-discovered directories (`.atomic/themes/`, then legacy `.pi/themes/`)
41
+ 4. Global `settings.json` `themes` array
42
+ 5. Global auto-discovered directories (`~/.atomic/agent/themes/`, then legacy `~/.pi/agent/themes/`)
43
+ 6. Configured packages (project packages, then global packages)
44
+ 7. Bundled packages
45
+ 8. Explicit CLI `--theme <path>` paths
26
46
 
27
47
  ## Selecting a theme
28
48
 
@@ -34,15 +54,18 @@ Atomic does not have a `/theme` slash command. Select a theme through `/settings
34
54
  }
35
55
  ```
36
56
 
37
- Use `"theme": "system"` to derive colors from your terminal's foreground, background, and ANSI palette. It follows terminal appearance changes where supported. If the terminal does not report colors, it uses ANSI palette colors and faint secondary text. Atomic's `dark`, `light`, and Catppuccin palettes remain available.
57
+ Use `"theme": "light-theme/dark-theme"` for automatic mode. Specify exactly one `/`, with non-empty names on both sides (surrounding spaces are trimmed). Atomic selects the matching theme using this fallback order:
38
58
 
39
- Use `"theme": "light-theme/dark-theme"` for automatic mode. The reported background decides which theme is selected, followed by the terminal's appearance notification, `COLORFGBG`, then dark. Atomic follows terminal appearance changes when supported.
59
+ 1. Terminal-reported background color (waits up to 100 ms at startup, and applies late terminal replies asynchronously if they arrive after startup)
60
+ 2. Terminal appearance change notifications
61
+ 3. `COLORFGBG` environment variable (uses the last `;`-separated number; indices `0` to `6` and `8` map to dark, all other integers map to light)
62
+ 4. Dark theme fallback
40
63
 
41
- On first run, Atomic detects your terminal background and defaults to `dark` or `light`.
64
+ A malformed auto value with extra `/` characters or an empty side falls back to the terminal default (`dark` or `light`). On first run, Atomic detects your terminal background and defaults to `dark` or `light`.
42
65
 
43
66
  The main chat uses the terminal's default background, including transparency. Headers, footers, and tool cards keep their theme colors.
44
67
 
45
- ### Initial Theme
68
+ ### Initial theme
46
69
 
47
70
  Start an interactive run with a theme without changing the saved setting:
48
71
 
@@ -50,13 +73,13 @@ Start an interactive run with a theme without changing the saved setting:
50
73
  atomic --use-theme light
51
74
  ```
52
75
 
53
- To follow terminal appearance, use the `lightTheme/darkTheme` form:
76
+ To follow terminal appearance for one run, pass `lightTheme/darkTheme`:
54
77
 
55
78
  ```bash
56
79
  atomic --use-theme light/dark
57
80
  ```
58
81
 
59
- The CLI value sets the initial theme for that run only. Choosing another theme later in `/settings` applies it immediately and saves it normally. An unknown theme name reports the ordinary theme error.
82
+ `--use-theme` applies in interactive mode only (ignored in print, JSON, and RPC modes). Choosing another theme later in `/settings` applies it immediately and saves it normally. If the requested theme name is unknown or fails to load, Atomic prints an error (`Failed to load theme "<name>": ...`) and falls back to `dark`.
60
83
 
61
84
  ## Creating a custom theme
62
85
 
@@ -67,7 +90,7 @@ mkdir -p ~/.atomic/agent/themes
67
90
  vim ~/.atomic/agent/themes/my-theme.json
68
91
  ```
69
92
 
70
- 2. Define the theme with all required colors (see [Color tokens](/themes/reference#color-tokens)):
93
+ 2. Define the theme with all 51 required color tokens (see [Color tokens](/themes/reference#color-tokens)):
71
94
 
72
95
  ```json
73
96
  {
@@ -136,9 +159,11 @@ vim ~/.atomic/agent/themes/my-theme.json
136
159
 
137
160
  3. Select the theme via `/settings`.
138
161
 
139
- Atomic reloads the active custom theme automatically when you edit its file, so you can see changes right away.
162
+ ### Live hot reload
163
+
164
+ Atomic watches the active custom theme's actual file path and reloads it automatically when you save edits (debounced by 100 ms). Hot reload works for global themes, project themes, package themes, `--theme <path>` files, and custom themes whose filename differs from their JSON `"name"`. If you save invalid JSON mid-edit, Atomic ignores the broken save and keeps the last valid theme active until the next valid save.
140
165
 
141
- Theme files are strict. Atomic accepts only the documented top-level fields and color tokens. Custom keys under `colors`, `workingIndicator`, or `export` and extra top-level metadata make the theme invalid. Define reusable custom colors under `vars`. The [theme JSON schema](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/schemas/theme.schema.json) lists every accepted property, the required colors, and the accepted value types. Atomic reports invalid theme files during startup and `/reload`.
166
+ Theme files are strict. Atomic accepts only the documented top-level fields and color tokens. Extra top-level metadata or unknown keys under `colors`, `workingIndicator`, or `export` make the theme invalid. Define reusable custom colors under `vars`. The [theme JSON schema](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/schemas/theme.schema.json) lists every accepted property, required token, and value type. Atomic reports invalid theme files during startup and `/reload`.
142
167
 
143
168
  ## Tips
144
169
 
@@ -151,33 +176,3 @@ Theme files are strict. Atomic accepts only the documented top-level fields and
151
176
  **Testing.** Check your theme with different message types, tool states, Markdown content, and long wrapped text.
152
177
 
153
178
  **VS Code.** Set `terminal.integrated.minimumContrastRatio` to `1` for accurate colors.
154
-
155
- ## Built-in themes
156
-
157
- Atomic ships seven built-in themes:
158
-
159
- - `system` (generated from your terminal's reported colors and ANSI palette)
160
- - `dark`
161
- - `light`
162
- - `catppuccin-frappe`
163
- - `catppuccin-latte`
164
- - `catppuccin-macchiato`
165
- - `catppuccin-mocha`
166
-
167
- ## Moved sections
168
-
169
- <a id="theme-format" />
170
- <a id="color-tokens" />
171
- <a id="core-ui-11-colors" />
172
- <a id="backgrounds-&-content-11-required-3-optional" />
173
- <a id="markdown-10-colors" />
174
- <a id="tool-diffs-3-colors" />
175
- <a id="syntax-highlighting-9-colors" />
176
- <a id="thinking-level-borders-6-colors" />
177
- <a id="bash-mode-1-color" />
178
- <a id="html-export-optional" />
179
- <a id="color-values" />
180
- <a id="256-color-palette" />
181
- <a id="terminal-compatibility" />
182
-
183
- - Theme format, color tokens, HTML export settings, color values, 256-color palette behavior, and terminal compatibility moved to [Theme reference](/themes/reference).
package/docs/tmux.md CHANGED
@@ -1,60 +1,77 @@
1
1
  ---
2
- title: "tmux"
3
- description: "Run Atomic inside tmux, including image paste and key forwarding."
2
+ title: "tmux setup"
3
+ sidebarTitle: "tmux"
4
+ description: "Configure tmux for modified keys, Escape timing, hyperlinks, clipboard copy, mouse scrolling, and image paste with Atomic."
4
5
  ---
5
6
 
6
- # tmux setup
7
+ Atomic works inside tmux, though tmux strips modifier keys, delays `Escape`, and filters hyperlinks by default. Without configuration, `Shift+Enter` and `Ctrl+Enter` arrive as plain `Enter`.
7
8
 
8
- Atomic works inside tmux, though tmux strips modifier keys by default. Without configuration, `SHIFT+Enter` and `CTRL+Enter` arrive as plain `Enter`.
9
+ For terminal automation, prefer Herdr when available, with tmux or native Windows psmux as fallbacks. See [Computer use](/computer-use#terminal-automation-with-herdr) for tool selection and session control. This page covers running Atomic interactively inside tmux.
9
10
 
10
- For terminal automation, prefer Herdr when available, with tmux or native Windows psmux as fallbacks. See [Computer use](/computer-use#terminal-automation-with-herdr) for tool selection and session control. This page covers Atomic's keyboard and clipboard setup inside tmux.
11
+ ## Recommended tmux configuration
11
12
 
12
- ## Recommended configuration
13
-
14
- Add to `~/.tmux.conf`:
13
+ Add these lines to `~/.tmux.conf`:
15
14
 
16
15
  ```tmux
17
16
  set -g extended-keys on
18
17
  set -g extended-keys-format csi-u
18
+ set -sg escape-time 10
19
+ set -g mouse on
20
+ set -g set-clipboard on
21
+ set -as terminal-features ',*:hyperlinks'
19
22
  ```
20
23
 
21
- Then restart tmux completely:
24
+ Restart tmux completely so the server reloads every option cleanly:
22
25
 
23
26
  ```bash
24
27
  tmux kill-server
25
28
  tmux
26
29
  ```
27
30
 
28
- Atomic requests extended key reporting automatically when the Kitty keyboard protocol is unavailable. With `extended-keys-format csi-u`, tmux forwards modified keys in CSI-u format. The `extended-keys-format` option requires tmux 3.5 or later.
31
+ What each setting does:
32
+
33
+ - **`extended-keys on` (or `always`) and `extended-keys-format csi-u`:** Forwards modified keys such as `Shift+Enter` and `Ctrl+Enter` in CSI-u format. Whenever `$TMUX` is set, Atomic checks `tmux show -gv extended-keys` and `tmux show -gv extended-keys-format` at startup and displays a warning if `extended-keys` is not `on` or `always`, or if `extended-keys-format` is `xterm`. (`extended-keys-format` requires tmux 3.5 or later.)
34
+ - **`escape-time 10`:** Lowers tmux's Escape key delay from older defaults (up to 500 ms) to 10 ms so pressing `Escape` cancels runs and closes dialogs without lag.
35
+ - **`mouse on`:** Forwards clicks, wheel scrolling, and drag selection to Atomic's fullscreen viewport.
36
+ - **`set-clipboard on`:** Allows OSC 52 clipboard copies to reach your outer terminal.
37
+ - **`terminal-features ',*:hyperlinks'`:** Advertises OSC 8 hyperlink forwarding so Atomic renders clickable links.
29
38
 
30
39
  ## Why `csi-u` is recommended
31
40
 
32
41
  With only `set -g extended-keys on`, tmux defaults to `extended-keys-format xterm`, which sends modified keys in xterm `modifyOtherKeys` format:
33
42
 
34
- - `CTRL+C` sends `\x1b[27;5;99~`
35
- - `CTRL+D` sends `\x1b[27;5;100~`
36
- - `CTRL+Enter` sends `\x1b[27;5;13~`
43
+ - `Ctrl+C` sends `\x1b[27;5;99~`
44
+ - `Ctrl+D` sends `\x1b[27;5;100~`
45
+ - `Ctrl+Enter` sends `\x1b[27;5;13~`
37
46
 
38
47
  With `extended-keys-format csi-u`, tmux sends the same keys as CSI-u sequences:
39
48
 
40
- - `CTRL+C` sends `\x1b[99;5u`
41
- - `CTRL+D` sends `\x1b[100;5u`
42
- - `CTRL+Enter` sends `\x1b[13;5u`
49
+ - `Ctrl+C` sends `\x1b[99;5u`
50
+ - `Ctrl+D` sends `\x1b[100;5u`
51
+ - `Ctrl+Enter` sends `\x1b[13;5u`
43
52
 
44
53
  Atomic parses both formats, and `csi-u` is the most reliable choice.
45
54
 
46
- ## What this fixes
55
+ ### What extended keys fix
47
56
 
48
57
  Without extended keys, modified Enter keys collapse to legacy sequences:
49
58
 
50
59
  | Key | Without extended keys | With `csi-u` |
51
60
  | --- | --- | --- |
52
61
  | `Enter` | `\r` | `\r` |
53
- | `SHIFT+Enter` | `\r` | `\x1b[13;2u` |
54
- | `CTRL+Enter` | `\r` | `\x1b[13;5u` |
62
+ | `Shift+Enter` | `\r` | `\x1b[13;2u` |
63
+ | `Ctrl+Enter` | `\r` | `\x1b[13;5u` |
55
64
  | `Alt/Option+Enter` | `\x1b\r` | `\x1b[13;3u` |
56
65
 
57
- Enabling extended keys restores the default `SHIFT+Enter` newline shortcut and any custom modified-Enter bindings.
66
+ Enabling extended keys restores the default `Shift+Enter` newline shortcut and custom modified-Enter bindings. (`Ctrl+J` also inserts a newline out of the box even without extended keys.)
67
+
68
+ ## Inline images, hyperlinks, mouse, and clipboard
69
+
70
+ - **Inline images:** Atomic disables inline image protocols whenever `$TMUX` is set or `TERM` starts with `tmux`, even if tmux has `allow-passthrough on`. If your outer terminal and tmux configuration support image passthrough, explicitly override the protocol with `terminal.images` in `~/.atomic/agent/settings.json` or `ATOMIC_IMAGE_PROTOCOL=kitty` (or `iterm2`).
71
+ - **OSC 8 hyperlinks:** Inside tmux, Atomic runs `tmux display-message -p '#{client_termfeatures}'` (250 ms timeout) and emits clickable hyperlinks only when `hyperlinks` is listed. Add `set -as terminal-features ',*:hyperlinks'` to `~/.tmux.conf`, or force hyperlinks with `"terminal": { "hyperlinks": true }` or `ATOMIC_HYPERLINKS=1`.
72
+ - **Clipboard over SSH (OSC 52):** Over SSH inside tmux, OSC 52 copies require `set -g set-clipboard on` (and `set -g allow-passthrough on` depending on your tmux version) so copied text reaches your local terminal clipboard. See [Clipboard and mouse behavior](/terminal-setup#clipboard-and-mouse-behavior).
73
+ - **Mouse scrolling and selection:** With `set -g mouse on`, Atomic handles clicks, drag selection, and wheel scrolling inside panes. Inside tmux, Atomic uses button-motion mouse reporting (`1002h`) instead of all-motion reporting (`1003h`) to keep terminal traffic light.
74
+ - **Program status (OSC 7501):** tmux does not forward OSC 7501 status reports. See [Program status](/terminal-setup#program-status).
58
75
 
59
76
  ## Image paste
60
77
 
@@ -63,7 +80,7 @@ Inside tmux on macOS, paste clipboard images with `Ctrl+V` instead of `Cmd+V`. O
63
80
  ## Requirements
64
81
 
65
82
  - tmux 3.5 or later for `extended-keys-format csi-u` (check with `tmux -V`)
66
- - A terminal emulator that supports extended keys (Ghostty, Kitty, iTerm2, WezTerm, or Windows Terminal)
83
+ - An outer terminal emulator that supports extended keys (Ghostty, Kitty, iTerm2, WezTerm, or Windows Terminal)
67
84
 
68
85
  With tmux 3.2 through 3.4, omit `extended-keys-format csi-u`; Atomic supports tmux's default xterm `modifyOtherKeys` format.
69
86