@bastani/atomic 0.8.28-alpha.1 → 0.8.28-alpha.2

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 (349) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +120 -118
  3. package/dist/builtin/intercom/package.json +1 -1
  4. package/dist/builtin/mcp/package.json +1 -1
  5. package/dist/builtin/subagents/package.json +1 -1
  6. package/dist/builtin/web-access/package.json +1 -1
  7. package/dist/builtin/workflows/CHANGELOG.md +8 -0
  8. package/dist/builtin/workflows/builtin/open-claude-design.ts +150 -13
  9. package/dist/builtin/workflows/package.json +1 -1
  10. package/dist/builtin/workflows/src/tui/chat-surface.ts +32 -33
  11. package/dist/builtin/workflows/src/tui/run-detail.ts +11 -4
  12. package/dist/builtin/workflows/src/tui/status-list.ts +32 -2
  13. package/dist/cli/args.d.ts +4 -0
  14. package/dist/cli/args.d.ts.map +1 -1
  15. package/dist/cli/args.js +35 -0
  16. package/dist/cli/args.js.map +1 -1
  17. package/dist/cli/project-trust.d.ts +10 -0
  18. package/dist/cli/project-trust.d.ts.map +1 -0
  19. package/dist/cli/project-trust.js +36 -0
  20. package/dist/cli/project-trust.js.map +1 -0
  21. package/dist/cli/startup-ui.d.ts +7 -0
  22. package/dist/cli/startup-ui.d.ts.map +1 -0
  23. package/dist/cli/startup-ui.js +57 -0
  24. package/dist/cli/startup-ui.js.map +1 -0
  25. package/dist/config.d.ts.map +1 -1
  26. package/dist/config.js +24 -3
  27. package/dist/config.js.map +1 -1
  28. package/dist/core/agent-session-runtime.d.ts +3 -1
  29. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  30. package/dist/core/agent-session-runtime.js +1 -0
  31. package/dist/core/agent-session-runtime.js.map +1 -1
  32. package/dist/core/agent-session-services.d.ts +2 -1
  33. package/dist/core/agent-session-services.d.ts.map +1 -1
  34. package/dist/core/agent-session-services.js +2 -2
  35. package/dist/core/agent-session-services.js.map +1 -1
  36. package/dist/core/agent-session.d.ts +5 -1
  37. package/dist/core/agent-session.d.ts.map +1 -1
  38. package/dist/core/agent-session.js +58 -20
  39. package/dist/core/agent-session.js.map +1 -1
  40. package/dist/core/auth-storage.d.ts.map +1 -1
  41. package/dist/core/auth-storage.js +4 -3
  42. package/dist/core/auth-storage.js.map +1 -1
  43. package/dist/core/compaction/branch-summarization.d.ts +3 -1
  44. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  45. package/dist/core/compaction/branch-summarization.js +9 -3
  46. package/dist/core/compaction/branch-summarization.js.map +1 -1
  47. package/dist/core/compaction/compaction.d.ts.map +1 -1
  48. package/dist/core/compaction/compaction.js +18 -24
  49. package/dist/core/compaction/compaction.js.map +1 -1
  50. package/dist/core/compaction/utils.d.ts +1 -1
  51. package/dist/core/compaction/utils.d.ts.map +1 -1
  52. package/dist/core/compaction/utils.js +1 -1
  53. package/dist/core/compaction/utils.js.map +1 -1
  54. package/dist/core/experimental.d.ts +2 -0
  55. package/dist/core/experimental.d.ts.map +1 -0
  56. package/dist/core/experimental.js +5 -0
  57. package/dist/core/experimental.js.map +1 -0
  58. package/dist/core/export-html/template.js +19 -6
  59. package/dist/core/extensions/index.d.ts +1 -1
  60. package/dist/core/extensions/index.d.ts.map +1 -1
  61. package/dist/core/extensions/index.js.map +1 -1
  62. package/dist/core/extensions/loader.d.ts +1 -1
  63. package/dist/core/extensions/loader.d.ts.map +1 -1
  64. package/dist/core/extensions/loader.js +6 -4
  65. package/dist/core/extensions/loader.js.map +1 -1
  66. package/dist/core/extensions/runner.d.ts +11 -4
  67. package/dist/core/extensions/runner.d.ts.map +1 -1
  68. package/dist/core/extensions/runner.js +53 -3
  69. package/dist/core/extensions/runner.js.map +1 -1
  70. package/dist/core/extensions/types.d.ts +34 -4
  71. package/dist/core/extensions/types.d.ts.map +1 -1
  72. package/dist/core/extensions/types.js.map +1 -1
  73. package/dist/core/footer-data-provider.d.ts +2 -0
  74. package/dist/core/footer-data-provider.d.ts.map +1 -1
  75. package/dist/core/footer-data-provider.js +27 -1
  76. package/dist/core/footer-data-provider.js.map +1 -1
  77. package/dist/core/index.d.ts +1 -0
  78. package/dist/core/index.d.ts.map +1 -1
  79. package/dist/core/index.js +1 -0
  80. package/dist/core/index.js.map +1 -1
  81. package/dist/core/model-registry.d.ts.map +1 -1
  82. package/dist/core/model-registry.js +64 -7
  83. package/dist/core/model-registry.js.map +1 -1
  84. package/dist/core/model-resolver.d.ts.map +1 -1
  85. package/dist/core/model-resolver.js +1 -0
  86. package/dist/core/model-resolver.js.map +1 -1
  87. package/dist/core/output-guard.d.ts +1 -0
  88. package/dist/core/output-guard.d.ts.map +1 -1
  89. package/dist/core/output-guard.js +52 -22
  90. package/dist/core/output-guard.js.map +1 -1
  91. package/dist/core/package-manager.d.ts +1 -0
  92. package/dist/core/package-manager.d.ts.map +1 -1
  93. package/dist/core/package-manager.js +20 -8
  94. package/dist/core/package-manager.js.map +1 -1
  95. package/dist/core/project-trust.d.ts +15 -0
  96. package/dist/core/project-trust.d.ts.map +1 -0
  97. package/dist/core/project-trust.js +58 -0
  98. package/dist/core/project-trust.js.map +1 -0
  99. package/dist/core/prompt-templates.d.ts +5 -4
  100. package/dist/core/prompt-templates.d.ts.map +1 -1
  101. package/dist/core/prompt-templates.js +30 -29
  102. package/dist/core/prompt-templates.js.map +1 -1
  103. package/dist/core/provider-attribution.d.ts +4 -0
  104. package/dist/core/provider-attribution.d.ts.map +1 -0
  105. package/dist/core/provider-attribution.js +73 -0
  106. package/dist/core/provider-attribution.js.map +1 -0
  107. package/dist/core/provider-display-names.d.ts.map +1 -1
  108. package/dist/core/provider-display-names.js +3 -0
  109. package/dist/core/provider-display-names.js.map +1 -1
  110. package/dist/core/resolve-config-value.d.ts +9 -1
  111. package/dist/core/resolve-config-value.d.ts.map +1 -1
  112. package/dist/core/resolve-config-value.js +134 -11
  113. package/dist/core/resolve-config-value.js.map +1 -1
  114. package/dist/core/resource-loader.d.ts +12 -2
  115. package/dist/core/resource-loader.d.ts.map +1 -1
  116. package/dist/core/resource-loader.js +108 -18
  117. package/dist/core/resource-loader.js.map +1 -1
  118. package/dist/core/sdk.d.ts.map +1 -1
  119. package/dist/core/sdk.js +12 -42
  120. package/dist/core/sdk.js.map +1 -1
  121. package/dist/core/session-manager.d.ts +6 -7
  122. package/dist/core/session-manager.d.ts.map +1 -1
  123. package/dist/core/session-manager.js +99 -35
  124. package/dist/core/session-manager.js.map +1 -1
  125. package/dist/core/settings-manager.d.ts +15 -2
  126. package/dist/core/settings-manager.d.ts.map +1 -1
  127. package/dist/core/settings-manager.js +69 -10
  128. package/dist/core/settings-manager.js.map +1 -1
  129. package/dist/core/slash-commands.d.ts.map +1 -1
  130. package/dist/core/slash-commands.js +1 -0
  131. package/dist/core/slash-commands.js.map +1 -1
  132. package/dist/core/system-prompt.d.ts.map +1 -1
  133. package/dist/core/system-prompt.js +0 -3
  134. package/dist/core/system-prompt.js.map +1 -1
  135. package/dist/core/tools/bash.d.ts.map +1 -1
  136. package/dist/core/tools/bash.js +2 -1
  137. package/dist/core/tools/bash.js.map +1 -1
  138. package/dist/core/tools/edit.d.ts.map +1 -1
  139. package/dist/core/tools/edit.js +7 -10
  140. package/dist/core/tools/edit.js.map +1 -1
  141. package/dist/core/tools/find.d.ts.map +1 -1
  142. package/dist/core/tools/find.js +1 -1
  143. package/dist/core/tools/find.js.map +1 -1
  144. package/dist/core/tools/grep.d.ts.map +1 -1
  145. package/dist/core/tools/grep.js +1 -1
  146. package/dist/core/tools/grep.js.map +1 -1
  147. package/dist/core/tools/ls.d.ts.map +1 -1
  148. package/dist/core/tools/ls.js +1 -1
  149. package/dist/core/tools/ls.js.map +1 -1
  150. package/dist/core/tools/oversized-tool-result.d.ts +53 -0
  151. package/dist/core/tools/oversized-tool-result.d.ts.map +1 -0
  152. package/dist/core/tools/oversized-tool-result.js +206 -0
  153. package/dist/core/tools/oversized-tool-result.js.map +1 -0
  154. package/dist/core/tools/read.d.ts +12 -0
  155. package/dist/core/tools/read.d.ts.map +1 -1
  156. package/dist/core/tools/read.js +99 -34
  157. package/dist/core/tools/read.js.map +1 -1
  158. package/dist/core/tools/render-utils.d.ts +6 -0
  159. package/dist/core/tools/render-utils.d.ts.map +1 -1
  160. package/dist/core/tools/render-utils.js +17 -1
  161. package/dist/core/tools/render-utils.js.map +1 -1
  162. package/dist/core/tools/tool-definition-wrapper.d.ts +6 -0
  163. package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -1
  164. package/dist/core/tools/tool-definition-wrapper.js +2 -0
  165. package/dist/core/tools/tool-definition-wrapper.js.map +1 -1
  166. package/dist/core/tools/tool-limits.d.ts +25 -0
  167. package/dist/core/tools/tool-limits.d.ts.map +1 -0
  168. package/dist/core/tools/tool-limits.js +25 -0
  169. package/dist/core/tools/tool-limits.js.map +1 -0
  170. package/dist/core/tools/write.d.ts.map +1 -1
  171. package/dist/core/tools/write.js +1 -1
  172. package/dist/core/tools/write.js.map +1 -1
  173. package/dist/core/trust-manager.d.ts +31 -0
  174. package/dist/core/trust-manager.d.ts.map +1 -0
  175. package/dist/core/trust-manager.js +196 -0
  176. package/dist/core/trust-manager.js.map +1 -0
  177. package/dist/index.d.ts +9 -4
  178. package/dist/index.d.ts.map +1 -1
  179. package/dist/index.js +5 -1
  180. package/dist/index.js.map +1 -1
  181. package/dist/main.d.ts.map +1 -1
  182. package/dist/main.js +142 -30
  183. package/dist/main.js.map +1 -1
  184. package/dist/migrations.d.ts +3 -1
  185. package/dist/migrations.d.ts.map +1 -1
  186. package/dist/migrations.js +325 -7
  187. package/dist/migrations.js.map +1 -1
  188. package/dist/modes/index.d.ts +1 -1
  189. package/dist/modes/index.d.ts.map +1 -1
  190. package/dist/modes/index.js.map +1 -1
  191. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
  192. package/dist/modes/interactive/components/bash-execution.js +2 -2
  193. package/dist/modes/interactive/components/bash-execution.js.map +1 -1
  194. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  195. package/dist/modes/interactive/components/footer.js +6 -0
  196. package/dist/modes/interactive/components/footer.js.map +1 -1
  197. package/dist/modes/interactive/components/index.d.ts +1 -0
  198. package/dist/modes/interactive/components/index.d.ts.map +1 -1
  199. package/dist/modes/interactive/components/index.js +1 -0
  200. package/dist/modes/interactive/components/index.js.map +1 -1
  201. package/dist/modes/interactive/components/login-dialog.d.ts +1 -1
  202. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
  203. package/dist/modes/interactive/components/login-dialog.js +9 -16
  204. package/dist/modes/interactive/components/login-dialog.js.map +1 -1
  205. package/dist/modes/interactive/components/settings-selector.d.ts +3 -1
  206. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  207. package/dist/modes/interactive/components/settings-selector.js +20 -0
  208. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  209. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  210. package/dist/modes/interactive/components/tool-execution.js +22 -0
  211. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  212. package/dist/modes/interactive/components/trust-selector.d.ts +23 -0
  213. package/dist/modes/interactive/components/trust-selector.d.ts.map +1 -0
  214. package/dist/modes/interactive/components/trust-selector.js +85 -0
  215. package/dist/modes/interactive/components/trust-selector.js.map +1 -0
  216. package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
  217. package/dist/modes/interactive/components/user-message.js +1 -1
  218. package/dist/modes/interactive/components/user-message.js.map +1 -1
  219. package/dist/modes/interactive/interactive-mode.d.ts +9 -0
  220. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  221. package/dist/modes/interactive/interactive-mode.js +130 -9
  222. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  223. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  224. package/dist/modes/interactive/theme/theme.js +10 -0
  225. package/dist/modes/interactive/theme/theme.js.map +1 -1
  226. package/dist/modes/print-mode.d.ts.map +1 -1
  227. package/dist/modes/print-mode.js +1 -0
  228. package/dist/modes/print-mode.js.map +1 -1
  229. package/dist/modes/rpc/rpc-client.d.ts +3 -0
  230. package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
  231. package/dist/modes/rpc/rpc-client.js +50 -6
  232. package/dist/modes/rpc/rpc-client.js.map +1 -1
  233. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  234. package/dist/modes/rpc/rpc-mode.js +23 -4
  235. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  236. package/dist/modes/rpc/rpc-types.d.ts +1 -0
  237. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  238. package/dist/modes/rpc/rpc-types.js.map +1 -1
  239. package/dist/package-manager-cli.d.ts +6 -2
  240. package/dist/package-manager-cli.d.ts.map +1 -1
  241. package/dist/package-manager-cli.js +104 -10
  242. package/dist/package-manager-cli.js.map +1 -1
  243. package/dist/utils/changelog.d.ts +1 -0
  244. package/dist/utils/changelog.d.ts.map +1 -1
  245. package/dist/utils/changelog.js +72 -0
  246. package/dist/utils/changelog.js.map +1 -1
  247. package/dist/utils/deprecation.d.ts +4 -0
  248. package/dist/utils/deprecation.d.ts.map +1 -0
  249. package/dist/utils/deprecation.js +13 -0
  250. package/dist/utils/deprecation.js.map +1 -0
  251. package/dist/utils/git.d.ts.map +1 -1
  252. package/dist/utils/git.js +54 -22
  253. package/dist/utils/git.js.map +1 -1
  254. package/dist/utils/json.d.ts +3 -0
  255. package/dist/utils/json.d.ts.map +1 -0
  256. package/dist/utils/json.js +7 -0
  257. package/dist/utils/json.js.map +1 -0
  258. package/dist/utils/open-browser.d.ts +9 -0
  259. package/dist/utils/open-browser.d.ts.map +1 -0
  260. package/dist/utils/open-browser.js +22 -0
  261. package/dist/utils/open-browser.js.map +1 -0
  262. package/docs/containerization.md +111 -0
  263. package/docs/custom-provider.md +9 -9
  264. package/docs/development.md +1 -1
  265. package/docs/docs.json +2 -0
  266. package/docs/extensions.md +40 -4
  267. package/docs/index.md +2 -0
  268. package/docs/models.md +10 -10
  269. package/docs/packages.md +1 -1
  270. package/docs/prompt-templates.md +9 -2
  271. package/docs/providers.md +18 -5
  272. package/docs/quickstart.md +1 -0
  273. package/docs/rpc.md +3 -2
  274. package/docs/sdk.md +5 -0
  275. package/docs/security.md +56 -0
  276. package/docs/session-format.md +2 -2
  277. package/docs/sessions.md +8 -0
  278. package/docs/settings.md +21 -4
  279. package/docs/skills.md +1 -1
  280. package/docs/terminal-setup.md +44 -2
  281. package/docs/themes.md +1 -1
  282. package/docs/tmux.md +4 -2
  283. package/docs/tui.md +14 -5
  284. package/docs/usage.md +17 -3
  285. package/examples/README.md +1 -1
  286. package/examples/extensions/README.md +8 -5
  287. package/examples/extensions/bash-spawn-hook.ts +1 -1
  288. package/examples/extensions/built-in-tool-renderer.ts +1 -1
  289. package/examples/extensions/claude-rules.ts +1 -1
  290. package/examples/extensions/commands.ts +1 -1
  291. package/examples/extensions/custom-header.ts +1 -1
  292. package/examples/extensions/custom-provider-anthropic/index.ts +3 -3
  293. package/examples/extensions/custom-provider-anthropic/package-lock.json +4 -4
  294. package/examples/extensions/custom-provider-anthropic/package.json +6 -6
  295. package/examples/extensions/custom-provider-gitlab-duo/index.ts +55 -4
  296. package/examples/extensions/custom-provider-gitlab-duo/package.json +3 -3
  297. package/examples/extensions/doom-overlay/README.md +1 -1
  298. package/examples/extensions/doom-overlay/index.ts +2 -2
  299. package/examples/extensions/git-merge-and-resolve.ts +115 -0
  300. package/examples/extensions/gondolin/index.ts +523 -0
  301. package/examples/extensions/gondolin/package-lock.json +185 -0
  302. package/examples/extensions/gondolin/package.json +19 -0
  303. package/examples/extensions/handoff.ts +1 -1
  304. package/examples/extensions/hidden-thinking-label.ts +1 -1
  305. package/examples/extensions/inline-bash.ts +2 -2
  306. package/examples/extensions/input-transform-streaming.ts +39 -0
  307. package/examples/extensions/input-transform.ts +3 -3
  308. package/examples/extensions/interactive-shell.ts +2 -2
  309. package/examples/extensions/mac-system-theme.ts +2 -2
  310. package/examples/extensions/minimal-mode.ts +1 -1
  311. package/examples/extensions/modal-editor.ts +1 -1
  312. package/examples/extensions/model-status.ts +1 -1
  313. package/examples/extensions/overlay-qa-tests.ts +198 -179
  314. package/examples/extensions/overlay-test.ts +1 -1
  315. package/examples/extensions/pirate.ts +1 -1
  316. package/examples/extensions/preset.ts +14 -12
  317. package/examples/extensions/project-trust.ts +64 -0
  318. package/examples/extensions/prompt-customizer.ts +1 -1
  319. package/examples/extensions/qna.ts +1 -1
  320. package/examples/extensions/question.ts +1 -1
  321. package/examples/extensions/questionnaire.ts +1 -1
  322. package/examples/extensions/rainbow-editor.ts +1 -1
  323. package/examples/extensions/sandbox/index.ts +16 -14
  324. package/examples/extensions/sandbox/package-lock.json +90 -90
  325. package/examples/extensions/sandbox/package.json +17 -17
  326. package/examples/extensions/snake.ts +1 -1
  327. package/examples/extensions/space-invaders.ts +1 -1
  328. package/examples/extensions/ssh.ts +2 -2
  329. package/examples/extensions/subagent/README.md +13 -13
  330. package/examples/extensions/subagent/agents.ts +4 -2
  331. package/examples/extensions/subagent/index.ts +6 -6
  332. package/examples/extensions/summarize.ts +1 -1
  333. package/examples/extensions/tic-tac-toe.ts +1 -1
  334. package/examples/extensions/titlebar-spinner.ts +1 -1
  335. package/examples/extensions/todo.ts +1 -1
  336. package/examples/extensions/tool-override.ts +1 -1
  337. package/examples/extensions/tools.ts +6 -1
  338. package/examples/extensions/with-deps/package-lock.json +4 -4
  339. package/examples/extensions/with-deps/package.json +7 -7
  340. package/examples/extensions/working-indicator.ts +4 -4
  341. package/examples/extensions/working-message-test.ts +1 -1
  342. package/examples/sdk/01-minimal.ts +1 -1
  343. package/examples/sdk/03-custom-prompt.ts +1 -1
  344. package/examples/sdk/04-skills.ts +1 -1
  345. package/examples/sdk/06-extensions.ts +2 -2
  346. package/examples/sdk/08-prompt-templates.ts +1 -1
  347. package/examples/sdk/09-api-keys-and-oauth.ts +2 -2
  348. package/examples/sdk/README.md +2 -2
  349. package/package.json +4 -4
@@ -6,6 +6,12 @@ Atomic uses the [Kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboa
6
6
 
7
7
  Work out of the box.
8
8
 
9
+ ## Apple Terminal
10
+
11
+ Atomic enables enhanced key reporting when available. If Terminal.app still sends plain Return for `SHIFT+Enter`, Atomic uses a local macOS modifier fallback to treat that Return as `SHIFT+Enter`.
12
+
13
+ This fallback only works when Atomic runs on the same Mac as Terminal.app. It cannot detect the local keyboard over remote SSH.
14
+
9
15
  ## Ghostty
10
16
 
11
17
  Add to your Ghostty config (`~/Library/Application Support/com.mitchellh.ghostty/config` on macOS, `~/.config/ghostty/config` on Linux):
@@ -34,7 +40,7 @@ If you want `SHIFT+Enter` to keep working in tmux via that remap, add `ctrl+j` t
34
40
 
35
41
  ## WezTerm
36
42
 
37
- Create `~/.wezterm.lua`:
43
+ WezTerm usually works out of the box for `SHIFT+Enter` via xterm modifyOtherKeys. To use the Kitty keyboard protocol explicitly, create `~/.wezterm.lua`:
38
44
 
39
45
  ```lua
40
46
  local wezterm = require 'wezterm'
@@ -43,14 +49,50 @@ config.enable_kitty_keyboard = true
43
49
  return config
44
50
  ```
45
51
 
52
+ On macOS, WezTerm binds `Option+Enter` to fullscreen by default. To use `Option+Enter` for Atomic follow-up queueing, add this key override:
53
+
54
+ ```lua
55
+ local wezterm = require 'wezterm'
56
+ local config = wezterm.config_builder()
57
+ config.keys = {
58
+ {
59
+ key = 'Enter',
60
+ mods = 'ALT',
61
+ action = wezterm.action.SendString('\x1b[13;3u'),
62
+ },
63
+ }
64
+ return config
65
+ ```
66
+
67
+ If you already have a `config.keys` table, add the entry to it.
68
+
69
+ On WSL, WezTerm may require a visible hardware cursor for IME candidate window positioning. If CJK IME candidates do not follow the text cursor, set `ATOMIC_HARDWARE_CURSOR=1` before running Atomic or set `showHardwareCursor` to `true` in settings. The legacy `PI_HARDWARE_CURSOR=1` alias also works.
70
+
71
+ ## Alacritty
72
+
73
+ Alacritty usually works out of the box for `SHIFT+Enter`. On macOS, `Option+Enter` may arrive as plain `Enter`. To use `Option+Enter` for Atomic follow-up queueing, add to `~/.config/alacritty/alacritty.toml`:
74
+
75
+ ```toml
76
+ [[keyboard.bindings]]
77
+ key = "Enter"
78
+ mods = "Alt"
79
+ chars = "\u001b[13;3u"
80
+ ```
81
+
82
+ Restart Alacritty after changing the config.
83
+
46
84
  ## VS Code (Integrated Terminal)
47
85
 
86
+ VS Code 1.109.5 and newer enable Kitty keyboard protocol in the integrated terminal by default, so `SHIFT+Enter` should work out of the box.
87
+
88
+ VS Code versions older than 1.109.5 need an explicit terminal keybinding for `SHIFT+Enter`.
89
+
48
90
  `keybindings.json` locations:
49
91
  - macOS: `~/Library/Application Support/Code/User/keybindings.json`
50
92
  - Linux: `~/.config/Code/User/keybindings.json`
51
93
  - Windows: `%APPDATA%\\Code\\User\\keybindings.json`
52
94
 
53
- Add to `keybindings.json` to enable `SHIFT+Enter` for multi-line input:
95
+ Add to `keybindings.json`:
54
96
 
55
97
  ```json
56
98
  {
package/docs/themes.md CHANGED
@@ -20,7 +20,7 @@ Atomic loads themes from:
20
20
 
21
21
  - Built-in: `dark`, `light`, `catppuccin-frappe`, `catppuccin-latte`, `catppuccin-macchiato`, `catppuccin-mocha`
22
22
  - Global: `~/.atomic/agent/themes/*.json` (legacy `~/.pi/agent/themes/*.json`)
23
- - Project: `.atomic/themes/*.json` (legacy `.pi/themes/*.json`)
23
+ - Project: `.atomic/themes/*.json` (legacy `.pi/themes/*.json`, only after the project is trusted)
24
24
  - Packages: `themes/` directories, `atomic.themes`, or legacy `pi.themes` entries in `package.json`
25
25
  - Settings: `themes` array with files or directories
26
26
  - CLI: `--theme <path>` (repeatable)
package/docs/tmux.md CHANGED
@@ -18,7 +18,7 @@ tmux kill-server
18
18
  tmux
19
19
  ```
20
20
 
21
- Atomic requests extended key reporting automatically when Kitty keyboard protocol is not available. With `extended-keys-format csi-u`, tmux forwards modified keys in CSI-u format, which is the most reliable configuration.
21
+ Atomic requests extended key reporting automatically when Kitty keyboard protocol is not available. With `extended-keys-format csi-u`, tmux forwards modified keys in CSI-u format, which is the most reliable configuration. The `extended-keys-format` option requires tmux 3.5 or later.
22
22
 
23
23
  ## Why `csi-u` Is Recommended
24
24
 
@@ -57,5 +57,7 @@ This affects the default keybindings (`Enter` to submit, `SHIFT+Enter` for newli
57
57
 
58
58
  ## Requirements
59
59
 
60
- - tmux 3.2 or later (run `tmux -V` to check)
60
+ - tmux 3.5 or later for `extended-keys-format csi-u` (run `tmux -V` to check)
61
61
  - A terminal emulator that supports extended keys (Ghostty, Kitty, iTerm2, WezTerm, Windows Terminal)
62
+
63
+ With tmux 3.2 through 3.4, omit `extended-keys-format csi-u`; Atomic still supports tmux's default xterm `modifyOtherKeys` format.
package/docs/tui.md CHANGED
@@ -50,9 +50,9 @@ When a `Focusable` component has focus, TUI:
50
50
  1. Sets `focused = true` on the component
51
51
  2. Scans rendered output for `CURSOR_MARKER` (a zero-width APC escape sequence)
52
52
  3. Positions the hardware terminal cursor at that location
53
- 4. Shows the hardware cursor
53
+ 4. Shows the hardware cursor only when `showHardwareCursor` is enabled
54
54
 
55
- This enables IME candidate windows to appear at the correct position for CJK input methods. The `Editor` and `Input` built-in components already implement this interface.
55
+ The cursor remains hidden by default. This keeps the fake cursor rendering, while still positioning the hardware cursor for terminals that track IME candidate windows with hidden cursors. Some terminals require a visible hardware cursor for IME positioning; enable it with `showHardwareCursor`, `setShowHardwareCursor(true)`, or `ATOMIC_HARDWARE_CURSOR=1`. The `Editor` and `Input` built-in components already implement this interface.
56
56
 
57
57
  ### Container Components with Embedded Inputs
58
58
 
@@ -138,8 +138,11 @@ const result = await ctx.ui.custom<string | null>(
138
138
  // Responsive: hide on narrow terminals
139
139
  visible: (termWidth, termHeight) => termWidth >= 80,
140
140
  },
141
- // Get handle for programmatic visibility control
141
+ // Get handle for programmatic focus and visibility control
142
142
  onHandle: (handle) => {
143
+ // handle.focus() - focus this overlay and bring it to the visual front
144
+ // handle.unfocus() - release input to normal fallback
145
+ // handle.unfocus({ target }) - release input to a specific component or null
143
146
  // handle.setHidden(true/false) - toggle visibility
144
147
  // handle.hide() - permanently remove
145
148
  },
@@ -147,6 +150,12 @@ const result = await ctx.ui.custom<string | null>(
147
150
  );
148
151
  ```
149
152
 
153
+ ### Overlay Focus
154
+
155
+ A focused visible overlay keeps input ownership across temporary non-overlay UI. If an overlay opens another `ctx.ui.custom()` component without `{ overlay: true }`, that replacement UI receives input while it is active; when it closes, the focused overlay can reclaim input.
156
+
157
+ Use `handle.unfocus()` when a visible overlay should stop owning input and let TUI fall back to another visible capturing overlay or the previous focus target. Use `handle.unfocus({ target })` when a specific component should receive input while the overlay stays visible. Passing `{ target: null }` intentionally leaves no focused component until focus is set again.
158
+
150
159
  ### Overlay Lifecycle
151
160
 
152
161
  Overlay components are disposed when closed. Don't reuse references - create fresh instances:
@@ -433,10 +442,10 @@ interface MyTheme {
433
442
 
434
443
  ## Debug logging
435
444
 
436
- Set `PI_TUI_WRITE_LOG` to capture the raw ANSI stream written to stdout.
445
+ Set `ATOMIC_TUI_WRITE_LOG` to capture the raw ANSI stream written to stdout.
437
446
 
438
447
  ```bash
439
- PI_TUI_WRITE_LOG=/tmp/tui-ansi.log atomic
448
+ ATOMIC_TUI_WRITE_LOG=/tmp/tui-ansi.log atomic
440
449
  ```
441
450
 
442
451
  Atomic vendors TUI components through the installed `@earendil-works/pi-tui` dependency; this monorepo does not include the upstream TUI test source tree.
package/docs/usage.md CHANGED
@@ -79,7 +79,9 @@ Sessions are saved automatically to `~/.atomic/agent/sessions/`, organized by wo
79
79
  atomic -c # Continue most recent session
80
80
  atomic -r # Browse and select a session
81
81
  atomic --no-session # Ephemeral mode; do not save
82
- atomic --session <path|id> # Use a specific session file or session ID
82
+ atomic --session <path|id> # Use a specific session file or partial session ID
83
+ atomic --session-id <id> # Use/create an exact project-local session ID
84
+ atomic --name "Refactor" # Set the session display name
83
85
  atomic --fork <path|id> # Fork a session into a new session file
84
86
  ```
85
87
 
@@ -118,7 +120,7 @@ Use `/export [file]` to write a session to HTML.
118
120
 
119
121
  Use `/share` to upload a private GitHub gist with a shareable HTML link.
120
122
 
121
- If you use Atomic for open source work and want to publish sessions for model, prompt, tool, and evaluation research, see [`badlogic/pi-share-hf`](https://github.com/badlogic/pi-share-hf). It publishes sessions to Hugging Face datasets.
123
+ If you use Atomic for open source work and want to publish sessions for model, prompt, tool, and evaluation research, use an Atomic-owned workflow or your team's dataset process. Upstream Pi session-sharing utilities may still be useful for historical context, but they are not the primary Atomic publication path.
122
124
 
123
125
  ## CLI Reference
124
126
 
@@ -176,8 +178,10 @@ cat README.md | atomic -p "Summarize this text"
176
178
  | `-c`, `--continue` | Continue the most recent session |
177
179
  | `-r`, `--resume` | Browse and select a session |
178
180
  | `--session <path\|id>` | Use a specific session file or partial UUID |
181
+ | `--session-id <id>` | Use an exact project session ID, creating it if missing |
179
182
  | `--fork <path\|id>` | Fork a session file or partial UUID into a new session |
180
183
  | `--session-dir <dir>` | Custom session storage directory |
184
+ | `--name <name>`, `-n <name>` | Set the session display name |
181
185
  | `--no-session` | Ephemeral mode; do not save |
182
186
 
183
187
  ### Tool Options
@@ -185,10 +189,20 @@ cat README.md | atomic -p "Summarize this text"
185
189
  | Option | Description |
186
190
  |--------|-------------|
187
191
  | `--tools <list>`, `-t <list>` | Allowlist specific built-in, extension, and custom tools |
192
+ | `--exclude-tools <list>`, `-xt <list>` | Denylist specific built-in, extension, and custom tools |
188
193
  | `--no-builtin-tools`, `-nbt` | Disable built-in tools but keep extension/custom tools enabled |
189
194
  | `--no-tools`, `-nt` | Disable all tools |
190
195
 
191
- Default built-in tools: `read`, `bash`, `edit`, `write`, `ask_user_question`, `todo`. Additional built-in read-only tools are available through tool options: `grep`, `find`, `ls`.
196
+ Default built-in tools: `read`, `bash`, `edit`, `write`, `ask_user_question`, `todo`. Additional built-in read-only tools are available through tool options: `grep`, `find`, `ls`. Use `--exclude-tools` to disable one or more tools while leaving the rest available, for example `atomic --exclude-tools ask_user_question`.
197
+
198
+ ### Project Trust Options
199
+
200
+ | Option | Description |
201
+ |--------|-------------|
202
+ | `--approve`, `-a` | Trust project-local files/resources for this run |
203
+ | `--no-approve`, `-na` | Ignore project-local files/resources for this run |
204
+
205
+ Project trust gates `.atomic`/legacy `.pi` project resources, project package settings, project-local context files, and `.agents/skills` discovered from the project tree. Saved trust decisions can be managed with `/trust`; see [Security](/security).
192
206
 
193
207
  ### Resource Options
194
208
 
@@ -1,6 +1,6 @@
1
1
  # Examples
2
2
 
3
- Example code for pi-coding-agent SDK and extensions.
3
+ Example code for the Atomic SDK and extensions.
4
4
 
5
5
  ## Directories
6
6
 
@@ -1,15 +1,15 @@
1
1
  # Extension Examples
2
2
 
3
- Example extensions for pi-coding-agent.
3
+ Example extensions for Atomic.
4
4
 
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
8
  # Load an extension with --extension flag
9
- pi --extension examples/extensions/permission-gate.ts
9
+ atomic --extension examples/extensions/permission-gate.ts
10
10
 
11
11
  # Or copy to extensions directory for auto-discovery
12
- cp permission-gate.ts ~/.pi/agent/extensions/
12
+ cp permission-gate.ts ~/.atomic/agent/extensions/
13
13
  ```
14
14
 
15
15
  ## Examples
@@ -23,6 +23,8 @@ cp permission-gate.ts ~/.pi/agent/extensions/
23
23
  | `confirm-destructive.ts` | Confirms before destructive session actions (clear, switch, fork) |
24
24
  | `dirty-repo-guard.ts` | Prevents session changes with uncommitted git changes |
25
25
  | `sandbox/` | OS-level sandboxing using `@anthropic-ai/sandbox-runtime` with per-project config |
26
+ | `project-trust.ts` | Demonstrates the `project_trust` event for user/global and CLI extensions |
27
+ | `gondolin/` | Route built-in tools and `!` commands into a Gondolin micro-VM |
26
28
 
27
29
  ### Custom Tools
28
30
 
@@ -75,6 +77,7 @@ cp permission-gate.ts ~/.pi/agent/extensions/
75
77
  | `reload-runtime.ts` | Adds `/reload-runtime` and `reload_runtime` tool showing safe reload flow |
76
78
  | `interactive-shell.ts` | Run interactive commands (vim, htop) with full terminal via `user_bash` hook |
77
79
  | `inline-bash.ts` | Expands `!{command}` patterns in prompts via `input` event transformation |
80
+ | `input-transform-streaming.ts` | Skips expensive input preprocessing for mid-stream steering via `streamingBehavior` |
78
81
 
79
82
  ### Git Integration
80
83
 
@@ -96,7 +99,7 @@ cp permission-gate.ts ~/.pi/agent/extensions/
96
99
 
97
100
  | Extension | Description |
98
101
  |-----------|-------------|
99
- | `mac-system-theme.ts` | Syncs pi theme with macOS dark/light mode |
102
+ | `mac-system-theme.ts` | Syncs Atomic theme with macOS dark/light mode |
100
103
 
101
104
  ### Resources
102
105
 
@@ -123,7 +126,7 @@ cp permission-gate.ts ~/.pi/agent/extensions/
123
126
  | Extension | Description |
124
127
  |-----------|-------------|
125
128
  | `custom-provider-anthropic/` | Custom Anthropic provider with OAuth support and custom streaming implementation |
126
- | `custom-provider-gitlab-duo/` | GitLab Duo provider using pi-ai's built-in Anthropic/OpenAI streaming via proxy |
129
+ | `custom-provider-gitlab-duo/` | GitLab Duo provider using `@earendil-works/pi-ai`'s built-in Anthropic/OpenAI streaming via proxy |
127
130
 
128
131
  ### External Dependencies
129
132
 
@@ -4,7 +4,7 @@
4
4
  * Adjusts command, cwd, and env before execution.
5
5
  *
6
6
  * Usage:
7
- * pi -e ./bash-spawn-hook.ts
7
+ * atomic -e ./bash-spawn-hook.ts
8
8
  */
9
9
 
10
10
  import type { ExtensionAPI } from "@bastani/atomic";
@@ -22,7 +22,7 @@
22
22
  * toggled the tool output open (via ctrl+e or clicking)
23
23
  *
24
24
  * Usage:
25
- * pi -e ./built-in-tool-renderer.ts
25
+ * atomic -e ./built-in-tool-renderer.ts
26
26
  */
27
27
 
28
28
  import type { BashToolDetails, EditToolDetails, ExtensionAPI, ReadToolDetails } from "@bastani/atomic";
@@ -12,7 +12,7 @@
12
12
  * - Organize with subdirectories: Group related rules (e.g., frontend/, backend/)
13
13
  *
14
14
  * Usage:
15
- * 1. Copy this file to ~/.pi/agent/extensions/ or your project's .pi/extensions/
15
+ * 1. Copy this file to ~/.atomic/agent/extensions/ or your project's .atomic/extensions/ (legacy .pi/extensions/ also works)
16
16
  * 2. Create .claude/rules/ folder in your project root
17
17
  * 3. Add .md files with your rules
18
18
  */
@@ -5,7 +5,7 @@
5
5
  * that lists all available slash commands in the current session.
6
6
  *
7
7
  * Usage:
8
- * 1. Copy this file to ~/.pi/agent/extensions/ or your project's .pi/extensions/
8
+ * 1. Copy this file to ~/.atomic/agent/extensions/ or your project's .atomic/extensions/ (legacy .pi/extensions/ also works)
9
9
  * 2. Use /commands to see available commands
10
10
  * 3. Use /commands extensions to filter by source
11
11
  */
@@ -47,7 +47,7 @@ function getPiMascot(theme: Theme): string[] {
47
47
  export default function (pi: ExtensionAPI) {
48
48
  // Set custom header immediately on load (if UI is available)
49
49
  pi.on("session_start", async (_event, ctx) => {
50
- if (ctx.hasUI) {
50
+ if (ctx.mode === "tui") {
51
51
  ctx.ui.setHeader((_tui, theme) => {
52
52
  return {
53
53
  render(_width: number): string[] {
@@ -13,10 +13,10 @@
13
13
  * cd packages/coding-agent/examples/extensions/custom-provider && npm install
14
14
  *
15
15
  * # With OAuth (run /login custom-anthropic first)
16
- * pi -e ./packages/coding-agent/examples/extensions/custom-provider
16
+ * atomic -e ./packages/coding-agent/examples/extensions/custom-provider
17
17
  *
18
18
  * # With API key
19
- * CUSTOM_ANTHROPIC_API_KEY=sk-ant-... pi -e ./packages/coding-agent/examples/extensions/custom-provider
19
+ * CUSTOM_ANTHROPIC_API_KEY=sk-ant-... atomic -e ./packages/coding-agent/examples/extensions/custom-provider
20
20
  *
21
21
  * Then use /model to select custom-anthropic/claude-sonnet-4-5
22
22
  */
@@ -568,7 +568,7 @@ function streamCustomAnthropic(
568
568
  export default function (pi: ExtensionAPI) {
569
569
  pi.registerProvider("custom-anthropic", {
570
570
  baseUrl: "https://api.anthropic.com",
571
- apiKey: "CUSTOM_ANTHROPIC_API_KEY",
571
+ apiKey: "$CUSTOM_ANTHROPIC_API_KEY",
572
572
  api: "custom-anthropic-api",
573
573
 
574
574
  models: [
@@ -1,12 +1,12 @@
1
1
  {
2
- "name": "pi-extension-custom-provider",
3
- "version": "0.74.0",
2
+ "name": "atomic-extension-custom-provider-anthropic",
3
+ "version": "0.79.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
- "name": "pi-extension-custom-provider",
9
- "version": "0.74.0",
8
+ "name": "atomic-extension-custom-provider-anthropic",
9
+ "version": "0.79.1",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.52.0"
12
12
  }
@@ -1,19 +1,19 @@
1
1
  {
2
- "name": "pi-extension-custom-provider-anthropic",
2
+ "name": "atomic-extension-custom-provider-anthropic",
3
3
  "private": true,
4
- "version": "0.74.0",
4
+ "version": "0.79.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
8
8
  "build": "echo 'nothing to build'",
9
9
  "check": "echo 'nothing to check'"
10
10
  },
11
- "pi": {
11
+ "dependencies": {
12
+ "@anthropic-ai/sdk": "^0.52.0"
13
+ },
14
+ "atomic": {
12
15
  "extensions": [
13
16
  "./index.ts"
14
17
  ]
15
- },
16
- "dependencies": {
17
- "@anthropic-ai/sdk": "^0.52.0"
18
18
  }
19
19
  }
@@ -5,7 +5,7 @@
5
5
  * Delegates to pi-ai's built-in Anthropic and OpenAI streaming implementations.
6
6
  *
7
7
  * Usage:
8
- * pi -e ./packages/coding-agent/examples/extensions/custom-provider-gitlab-duo
8
+ * atomic -e ./packages/coding-agent/examples/extensions/custom-provider-gitlab-duo
9
9
  * # Then /login gitlab-duo, or set GITLAB_TOKEN=glpat-...
10
10
  */
11
11
 
@@ -20,6 +20,7 @@ import {
20
20
  type SimpleStreamOptions,
21
21
  streamSimpleAnthropic,
22
22
  streamSimpleOpenAIResponses,
23
+ type ThinkingLevelMap,
23
24
  } from "@earendil-works/pi-ai";
24
25
  import type { ExtensionAPI } from "@bastani/atomic";
25
26
 
@@ -49,6 +50,7 @@ interface GitLabModel {
49
50
  backend: Backend;
50
51
  baseUrl: string;
51
52
  reasoning: boolean;
53
+ thinkingLevelMap?: ThinkingLevelMap;
52
54
  input: ("text" | "image")[];
53
55
  cost: { input: number; output: number; cacheRead: number; cacheWrite: number };
54
56
  contextWindow: number;
@@ -57,12 +59,37 @@ interface GitLabModel {
57
59
 
58
60
  export const MODELS: GitLabModel[] = [
59
61
  // Anthropic
62
+ {
63
+ id: "claude-opus-4-8",
64
+ name: "Claude Opus 4.8",
65
+ backend: "anthropic",
66
+ baseUrl: ANTHROPIC_PROXY_URL,
67
+ reasoning: true,
68
+ thinkingLevelMap: { xhigh: "max" },
69
+ input: ["text", "image"],
70
+ cost: { input: 5, output: 25, cacheRead: 0.5, cacheWrite: 6.25 },
71
+ contextWindow: 1000000,
72
+ maxTokens: 128000,
73
+ },
74
+ {
75
+ id: "claude-sonnet-4-6",
76
+ name: "Claude Sonnet 4.6",
77
+ backend: "anthropic",
78
+ baseUrl: ANTHROPIC_PROXY_URL,
79
+ reasoning: true,
80
+ thinkingLevelMap: { xhigh: "max" },
81
+ input: ["text", "image"],
82
+ cost: { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 3.75 },
83
+ contextWindow: 1000000,
84
+ maxTokens: 64000,
85
+ },
60
86
  {
61
87
  id: "claude-opus-4-5-20251101",
62
88
  name: "Claude Opus 4.5",
63
89
  backend: "anthropic",
64
90
  baseUrl: ANTHROPIC_PROXY_URL,
65
91
  reasoning: true,
92
+ thinkingLevelMap: { xhigh: "max" },
66
93
  input: ["text", "image"],
67
94
  cost: { input: 15, output: 75, cacheRead: 1.5, cacheWrite: 18.75 },
68
95
  contextWindow: 200000,
@@ -74,6 +101,7 @@ export const MODELS: GitLabModel[] = [
74
101
  backend: "anthropic",
75
102
  baseUrl: ANTHROPIC_PROXY_URL,
76
103
  reasoning: true,
104
+ thinkingLevelMap: { xhigh: "max" },
77
105
  input: ["text", "image"],
78
106
  cost: { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 3.75 },
79
107
  contextWindow: 200000,
@@ -85,12 +113,24 @@ export const MODELS: GitLabModel[] = [
85
113
  backend: "anthropic",
86
114
  baseUrl: ANTHROPIC_PROXY_URL,
87
115
  reasoning: true,
116
+ thinkingLevelMap: { xhigh: "max" },
88
117
  input: ["text", "image"],
89
118
  cost: { input: 1, output: 5, cacheRead: 0.1, cacheWrite: 1.25 },
90
119
  contextWindow: 200000,
91
120
  maxTokens: 8192,
92
121
  },
93
122
  // OpenAI (all use Responses API)
123
+ {
124
+ id: "gpt-5.5-2026-04-23",
125
+ name: "GPT-5.5",
126
+ backend: "openai",
127
+ baseUrl: OPENAI_PROXY_URL,
128
+ reasoning: true,
129
+ input: ["text", "image"],
130
+ cost: { input: 5, output: 30, cacheRead: 0.5, cacheWrite: 0 },
131
+ contextWindow: 272000,
132
+ maxTokens: 128000,
133
+ },
94
134
  {
95
135
  id: "gpt-5.1-2025-11-13",
96
136
  name: "GPT-5.1",
@@ -285,7 +325,17 @@ export function streamGitLabDuo(
285
325
 
286
326
  const innerStream =
287
327
  cfg.backend === "anthropic"
288
- ? streamSimpleAnthropic(modelWithBaseUrl as Model<"anthropic-messages">, context, streamOptions)
328
+ ? streamSimpleAnthropic(
329
+ {
330
+ ...(modelWithBaseUrl as Model<"anthropic-messages">),
331
+ compat: {
332
+ ...(modelWithBaseUrl as Model<"anthropic-messages">).compat,
333
+ forceAdaptiveThinking: true,
334
+ },
335
+ },
336
+ context,
337
+ streamOptions,
338
+ )
289
339
  : streamSimpleOpenAIResponses(modelWithBaseUrl as Model<"openai-responses">, context, streamOptions);
290
340
 
291
341
  for await (const event of innerStream) stream.push(event);
@@ -327,12 +377,13 @@ export function streamGitLabDuo(
327
377
  export default function (pi: ExtensionAPI) {
328
378
  pi.registerProvider("gitlab-duo", {
329
379
  baseUrl: AI_GATEWAY_URL,
330
- apiKey: "GITLAB_TOKEN",
380
+ apiKey: "$GITLAB_TOKEN",
331
381
  api: "gitlab-duo-api",
332
- models: MODELS.map(({ id, name, reasoning, input, cost, contextWindow, maxTokens }) => ({
382
+ models: MODELS.map(({ id, name, reasoning, thinkingLevelMap, input, cost, contextWindow, maxTokens }) => ({
333
383
  id,
334
384
  name,
335
385
  reasoning,
386
+ thinkingLevelMap,
336
387
  input,
337
388
  cost,
338
389
  contextWindow,
@@ -1,14 +1,14 @@
1
1
  {
2
- "name": "pi-extension-custom-provider-gitlab-duo",
2
+ "name": "atomic-extension-custom-provider-gitlab-duo",
3
3
  "private": true,
4
- "version": "0.74.0",
4
+ "version": "0.79.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
8
8
  "build": "echo 'nothing to build'",
9
9
  "check": "echo 'nothing to check'"
10
10
  },
11
- "pi": {
11
+ "atomic": {
12
12
  "extensions": [
13
13
  "./index.ts"
14
14
  ]
@@ -5,7 +5,7 @@ Play DOOM as an overlay in pi. Demonstrates that the overlay system can handle r
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
- pi --extension ./examples/extensions/doom-overlay
8
+ atomic --extension ./examples/extensions/doom-overlay
9
9
  ```
10
10
 
11
11
  Then run:
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * DOOM Overlay Demo - Play DOOM as an overlay
3
3
  *
4
- * Usage: pi --extension ./examples/extensions/doom-overlay
4
+ * Usage: atomic --extension ./examples/extensions/doom-overlay
5
5
  *
6
6
  * Commands:
7
7
  * /doom-overlay - Play DOOM in an overlay (Q to pause/exit)
@@ -23,7 +23,7 @@ export default function (pi: ExtensionAPI) {
23
23
  description: "Play DOOM as an overlay. Q to pause and exit.",
24
24
 
25
25
  handler: async (args, ctx) => {
26
- if (!ctx.hasUI) {
26
+ if (ctx.mode !== "tui") {
27
27
  ctx.ui.notify("DOOM requires interactive mode", "error");
28
28
  return;
29
29
  }