@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 +1 @@
1
- {"version":3,"file":"settings-selector-types.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/settings-selector-types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ThinkingLevel } from \"@bastani/atomic-agent-core\";\nimport type { CompactorModel } from \"@bastani/atomic-ai\";\nimport type { Api, ClassifierApi, ClassifierModel, Model, Transport } from \"@bastani/atomic-ai/compat\";\nimport type { ScrollViewScrollbar, WheelScrollLines } from \"@bastani/atomic-tui\";\nimport type {\n\tCacheWarmingMode,\n\tDefaultProjectTrust,\n\tFullscreenExitOutput,\n\tMermaidRenderingMode,\n\tQuietStartup,\n\tWarningSettings,\n} from \"../../../core/settings-manager.ts\";\nimport type { TerminalTheme } from \"../theme/theme.js\";\n\nexport type QueueDeliveryMode = \"all\" | \"one-at-a-time\";\nexport type DoubleEscapeAction = \"fork\" | \"tree\" | \"none\";\nexport type TreeFilterMode = \"default\" | \"no-tools\" | \"user-only\" | \"labeled-only\" | \"all\";\n\nexport interface SettingsConfig {\n\tautoCompact: boolean;\n\tshowImages: boolean;\n\timageWidthCells: number;\n\tautoResizeImages: boolean;\n\tblockImages: boolean;\n\tenableSkillCommands: boolean;\n\tsteeringMode: QueueDeliveryMode;\n\tfollowUpMode: QueueDeliveryMode;\n\ttransport: Transport;\n\thttpIdleTimeoutMs: number;\n\tcacheWarming: CacheWarmingMode;\n\tthinkingLevel: ThinkingLevel;\n\tavailableThinkingLevels: ThinkingLevel[];\n\tavailableDefaultModels?: Model<Api>[];\n\tavailableClassifierModels?: ClassifierModel<ClassifierApi>[];\n\tdecisionModel?: string;\n\tdecisionModelScope?: \"global\" | \"project\";\n\tavailableCompactorModels?: CompactorModel[];\n\tcompactionModel?: string;\n\tcompactionModelScope?: \"global\" | \"project\";\n\tmorphAuthenticated?: boolean;\n\tmodelThinkingLevels?: Record<string, ThinkingLevel>;\n\tcurrentTheme: string;\n\tterminalTheme: TerminalTheme;\n\tavailableThemes: string[];\n\thideThinkingBlock: boolean;\n\tmermaidRenderingMode: MermaidRenderingMode;\n\tlatexRenderingEnabled: boolean;\n\tcollapseChangelog: boolean;\n\tdebug: boolean;\n\tenableInstallTelemetry: boolean;\n\tdoubleEscapeAction: DoubleEscapeAction;\n\ttreeFilterMode: TreeFilterMode;\n\tshowHardwareCursor: boolean;\n\tfullscreenScrollbar: ScrollViewScrollbar;\n\tfullscreenExitOutput: FullscreenExitOutput;\n\tfullscreenCopyOnSelect: boolean;\n\tfullscreenWheelScrollLines?: WheelScrollLines;\n\teditorPaddingX: number;\n\toutputPad: 0 | 1;\n\tshowCacheMissNotices: boolean;\n\tautocompleteMaxVisible: number;\n\tquietStartup: QuietStartup;\n\tdefaultProjectTrust: DefaultProjectTrust;\n\tclearOnShrink: boolean;\n\tshowTerminalProgress: boolean;\n\twarnings: WarningSettings;\n}\n\nexport interface SettingsCallbacks {\n\tonAutoCompactChange: (enabled: boolean) => void;\n\tonShowImagesChange: (enabled: boolean) => void;\n\tonImageWidthCellsChange: (width: number) => void;\n\tonAutoResizeImagesChange: (enabled: boolean) => void;\n\tonBlockImagesChange: (blocked: boolean) => void;\n\tonEnableSkillCommandsChange: (enabled: boolean) => void;\n\tonSteeringModeChange: (mode: QueueDeliveryMode) => void;\n\tonFollowUpModeChange: (mode: QueueDeliveryMode) => void;\n\tonTransportChange: (transport: Transport) => void;\n\tonHttpIdleTimeoutChange: (timeoutMs: number) => void;\n\tonCacheWarmingChange: (mode: CacheWarmingMode) => void;\n\tonThinkingLevelChange: (level: ThinkingLevel) => void;\n\tonDecisionModelChange?: (model: string) => void;\n\tonCompactionModelChange?: (model: string) => void;\n\tonModelThinkingLevelChange?: (provider: string, modelId: string, level: ThinkingLevel) => void;\n\tonModelThinkingLevelRemove?: (provider: string, modelId: string) => void;\n\tonThemeChange: (theme: string) => void;\n\tonThemePreview?: (theme: string) => void;\n\tonThemePreviewCancel?: (originalTheme: string) => void;\n\t/** The eligible themes and configured pair when a further picker opens inside the theme form. */\n\treadThemeChoices?: () => { currentTheme: string; availableThemes: string[] } | undefined;\n\tonHideThinkingBlockChange: (hidden: boolean) => void;\n\tonMermaidRenderingModeChange: (mode: MermaidRenderingMode) => void;\n\tonLatexRenderingEnabledChange: (enabled: boolean) => void;\n\tonCollapseChangelogChange: (collapsed: boolean) => void;\n\tonDebugChange: (enabled: boolean) => void;\n\tonEnableInstallTelemetryChange: (enabled: boolean) => void;\n\tonDoubleEscapeActionChange: (action: DoubleEscapeAction) => void;\n\tonTreeFilterModeChange: (mode: TreeFilterMode) => void;\n\tonShowHardwareCursorChange: (enabled: boolean) => void;\n\tonFullscreenScrollbarChange: (mode: ScrollViewScrollbar) => void;\n\tonFullscreenExitOutputChange: (output: FullscreenExitOutput) => void;\n\tonFullscreenCopyOnSelectChange: (enabled: boolean) => void;\n\tonFullscreenWheelScrollLinesChange?: (lines: WheelScrollLines) => void;\n\tonEditorPaddingXChange: (padding: number) => void;\n\tonOutputPadChange: (padding: 0 | 1) => void;\n\tonShowCacheMissNoticesChange: (enabled: boolean) => void;\n\tonAutocompleteMaxVisibleChange: (maxVisible: number) => void;\n\tonQuietStartupChange: (quiet: QuietStartup) => void;\n\tonDefaultProjectTrustChange: (defaultProjectTrust: DefaultProjectTrust) => void;\n\tonClearOnShrinkChange: (enabled: boolean) => void;\n\tonShowTerminalProgressChange: (enabled: boolean) => void;\n\tonWarningsChange: (warnings: WarningSettings) => void;\n\tonCancel: () => void;\n}\n"]}
1
+ {"version":3,"file":"settings-selector-types.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/settings-selector-types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ThinkingLevel } from \"@bastani/atomic-agent-core\";\nimport type { CompactorModel } from \"@bastani/atomic-ai\";\nimport type { Api, ClassifierApi, ClassifierModel, Model, Transport } from \"@bastani/atomic-ai/compat\";\nimport type { ScrollViewScrollbar, WheelScrollLines } from \"@bastani/atomic-tui\";\nimport type {\n\tCacheWarmingMode,\n\tDefaultProjectTrust,\n\tFullscreenExitOutput,\n\tMermaidRenderingMode,\n\tQuietStartup,\n\tWarningSettings,\n} from \"../../../core/settings-manager.ts\";\nimport type { TerminalTheme } from \"../theme/theme.js\";\n\nexport type QueueDeliveryMode = \"all\" | \"one-at-a-time\";\nexport type DoubleEscapeAction = \"fork\" | \"tree\" | \"none\";\nexport type TreeFilterMode = \"default\" | \"no-tools\" | \"user-only\" | \"labeled-only\" | \"all\";\n\nexport interface SettingsConfig {\n\tautoCompact: boolean;\n\tshowImages: boolean;\n\timageWidthCells: number;\n\tautoResizeImages: boolean;\n\tblockImages: boolean;\n\tenableSkillCommands: boolean;\n\tsteeringMode: QueueDeliveryMode;\n\tfollowUpMode: QueueDeliveryMode;\n\ttransport: Transport;\n\thttpIdleTimeoutMs: number;\n\tcacheWarming: CacheWarmingMode;\n\tthinkingLevel: ThinkingLevel;\n\tavailableThinkingLevels: ThinkingLevel[];\n\tavailableDefaultModels?: Model<Api>[];\n\tavailableClassifierModels?: ClassifierModel<ClassifierApi>[];\n\tdecisionModel?: string;\n\tdecisionModelScope?: \"global\" | \"project\";\n\tavailableCompactorModels?: CompactorModel[];\n\tcompactionModel?: string;\n\tcompactionModelScope?: \"global\" | \"project\";\n\tmorphAuthenticated?: boolean;\n\tcompactorProviderAuth?: Readonly<Record<string, boolean>>;\n\tmodelThinkingLevels?: Record<string, ThinkingLevel>;\n\tcurrentTheme: string;\n\tterminalTheme: TerminalTheme;\n\tavailableThemes: string[];\n\thideThinkingBlock: boolean;\n\tmermaidRenderingMode: MermaidRenderingMode;\n\tlatexRenderingEnabled: boolean;\n\tcollapseChangelog: boolean;\n\tdebug: boolean;\n\tenableInstallTelemetry: boolean;\n\tdoubleEscapeAction: DoubleEscapeAction;\n\ttreeFilterMode: TreeFilterMode;\n\tshowHardwareCursor: boolean;\n\tfullscreenScrollbar: ScrollViewScrollbar;\n\tfullscreenExitOutput: FullscreenExitOutput;\n\tfullscreenCopyOnSelect: boolean;\n\tfullscreenWheelScrollLines?: WheelScrollLines;\n\teditorPaddingX: number;\n\toutputPad: 0 | 1;\n\tshowCacheMissNotices: boolean;\n\tautocompleteMaxVisible: number;\n\tquietStartup: QuietStartup;\n\tdefaultProjectTrust: DefaultProjectTrust;\n\tclearOnShrink: boolean;\n\tshowTerminalProgress: boolean;\n\twarnings: WarningSettings;\n}\n\nexport interface SettingsCallbacks {\n\tonAutoCompactChange: (enabled: boolean) => void;\n\tonShowImagesChange: (enabled: boolean) => void;\n\tonImageWidthCellsChange: (width: number) => void;\n\tonAutoResizeImagesChange: (enabled: boolean) => void;\n\tonBlockImagesChange: (blocked: boolean) => void;\n\tonEnableSkillCommandsChange: (enabled: boolean) => void;\n\tonSteeringModeChange: (mode: QueueDeliveryMode) => void;\n\tonFollowUpModeChange: (mode: QueueDeliveryMode) => void;\n\tonTransportChange: (transport: Transport) => void;\n\tonHttpIdleTimeoutChange: (timeoutMs: number) => void;\n\tonCacheWarmingChange: (mode: CacheWarmingMode) => void;\n\tonThinkingLevelChange: (level: ThinkingLevel) => void;\n\tonDecisionModelChange?: (model: string) => void;\n\tonCompactionModelChange?: (model: string) => void;\n\tonModelThinkingLevelChange?: (provider: string, modelId: string, level: ThinkingLevel) => void;\n\tonModelThinkingLevelRemove?: (provider: string, modelId: string) => void;\n\tonThemeChange: (theme: string) => void;\n\tonThemePreview?: (theme: string) => void;\n\tonThemePreviewCancel?: (originalTheme: string) => void;\n\t/** The eligible themes and configured pair when a further picker opens inside the theme form. */\n\treadThemeChoices?: () => { currentTheme: string; availableThemes: string[] } | undefined;\n\tonHideThinkingBlockChange: (hidden: boolean) => void;\n\tonMermaidRenderingModeChange: (mode: MermaidRenderingMode) => void;\n\tonLatexRenderingEnabledChange: (enabled: boolean) => void;\n\tonCollapseChangelogChange: (collapsed: boolean) => void;\n\tonDebugChange: (enabled: boolean) => void;\n\tonEnableInstallTelemetryChange: (enabled: boolean) => void;\n\tonDoubleEscapeActionChange: (action: DoubleEscapeAction) => void;\n\tonTreeFilterModeChange: (mode: TreeFilterMode) => void;\n\tonShowHardwareCursorChange: (enabled: boolean) => void;\n\tonFullscreenScrollbarChange: (mode: ScrollViewScrollbar) => void;\n\tonFullscreenExitOutputChange: (output: FullscreenExitOutput) => void;\n\tonFullscreenCopyOnSelectChange: (enabled: boolean) => void;\n\tonFullscreenWheelScrollLinesChange?: (lines: WheelScrollLines) => void;\n\tonEditorPaddingXChange: (padding: number) => void;\n\tonOutputPadChange: (padding: 0 | 1) => void;\n\tonShowCacheMissNoticesChange: (enabled: boolean) => void;\n\tonAutocompleteMaxVisibleChange: (maxVisible: number) => void;\n\tonQuietStartupChange: (quiet: QuietStartup) => void;\n\tonDefaultProjectTrustChange: (defaultProjectTrust: DefaultProjectTrust) => void;\n\tonClearOnShrinkChange: (enabled: boolean) => void;\n\tonShowTerminalProgressChange: (enabled: boolean) => void;\n\tonWarningsChange: (warnings: WarningSettings) => void;\n\tonCancel: () => void;\n}\n"]}
@@ -297,7 +297,7 @@ function __atomicOnDemandFailed(error, feature) {
297
297
  return (async () => {
298
298
  const root = new URL("../../../", import.meta.url);
299
299
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
300
- const key = `${root.href}#0.10.9-alpha.1`;
300
+ const key = `${root.href}#0.10.10-alpha.1`;
301
301
  let release = releases.get(key);
302
302
  if (release === undefined) {
303
303
  const current = (async () => {
@@ -325,7 +325,7 @@ function __atomicOnDemandFailed(error, feature) {
325
325
  } catch {
326
326
  // No installation to read, as in a bundle of the package: the release the process runs decides.
327
327
  }
328
- const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
328
+ const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
329
329
  if (updatedTo === undefined) throw error;
330
330
  const application = typeof running?.name === "string" ? running.name : "atomic";
331
331
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using /tree.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using /tree.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using /tree.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using /tree.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using /fork.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using /fork.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using /fork.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using /fork.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -21,14 +21,14 @@ export declare function colorEnvironment(): ColorEnvironment;
21
21
  /** Keep `listener` (held weakly) on the color environment in use from now on. */
22
22
  export declare function onColorEnvironmentChange(listener: ColorEnvironmentListener): void;
23
23
  /** Read NO_COLOR and FORCE_COLOR again and apply them to every theme; tests that change them call it too. */
24
- export declare function refreshColorEnvironment(env?: NodeJS.ProcessEnv): ColorEnvironment;
24
+ export declare function refreshColorEnvironment(env?: NodeJS.ProcessEnv, mode?: ColorMode): ColorEnvironment;
25
25
  export declare function themeStyleLevel(mode: ColorMode, environment: ColorEnvironment): ThemeStyleLevel;
26
- export declare function detectColorMode(): ColorMode;
26
+ export declare function detectColorMode(env?: NodeJS.ProcessEnv): ColorMode;
27
27
  /**
28
28
  * Resolve the color mode for a theme from an explicit `terminal.trueColor` setting, then
29
29
  * `ATOMIC_TRUE_COLOR=1|0` (legacy `PI_TRUE_COLOR`), then terminal detection.
30
30
  */
31
- export declare function resolveColorMode(trueColorSetting: boolean | undefined): ColorMode;
31
+ export declare function resolveColorMode(trueColorSetting: boolean | undefined, env?: NodeJS.ProcessEnv): ColorMode;
32
32
  export declare function hexToRgb(hex: string): {
33
33
  r: number;
34
34
  g: number;
@@ -43,8 +43,8 @@ export declare function fgAnsi(color: string | number, mode: ColorMode): string;
43
43
  /**
44
44
  * The escape sequence that sets the `#rrggbb` color `hex` as the foreground or background, in the color environment
45
45
  * themes paint with: none when NO_COLOR or FORCE_COLOR=0 turns color off, the nearest 256-color entry under
46
- * FORCE_COLOR=1 or 2, and true color otherwise. Code that builds its own colors uses it to follow NO_COLOR and
47
- * FORCE_COLOR like the theme does; it never reads the environment itself.
46
+ * FORCE_COLOR=1 or 2 or a 256-color mode, and true color otherwise. Code that builds its own colors uses it to follow
47
+ * NO_COLOR, FORCE_COLOR, and the active color mode like the theme does; it never reads the environment itself.
48
48
  */
49
49
  export declare function hexColorAnsi(hex: string, layer: "fg" | "bg"): string;
50
50
  export declare function bgAnsi(color: string | number, mode: ColorMode, quantization?: Quantization): string;
@@ -9,6 +9,7 @@ export declare function getBuiltinThemes(): Record<string, ThemeJson>;
9
9
  export declare function readThemeFiles(): void;
10
10
  export declare function refreshCustomThemes(): Promise<void>;
11
11
  export declare function hasCustomThemeFile(name: string): boolean;
12
+ export declare function getThemeWatchPath(name: string): string | undefined;
12
13
  export declare function getAvailableThemes(): string[];
13
14
  export declare function getAvailableThemesWithPaths(): ThemeInfo[];
14
15
  export declare function loadThemeJson(name: string): ThemeJson;
@@ -1,3 +1,3 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG, INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG, INTERACTIVE_ENGINE_PREWARM_WRITE_CACHE_FLAG, PREWARM_HOST_ARGUMENTS_MAX_LENGTH, adoptPrewarmedEngine, discardPrewarmedEngine, engineLaunch, interactiveEngineClientOptions, interactiveEngineEnvOverrides, prewarmHandoffNonce, prewarmHostArguments, prewarmInteractiveEngine, prewarmInteractiveEngineForArgs, readPrewarmedEngineArgs, sameEngineLaunch, shouldPrewarmInteractiveEngine, startupBenchmarkEngineEnv, waitForPrewarmedEngineReady } from "../../_shared/p1a-prewarm-UQY3X2UK.js";
2
+ export { INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG, INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG, INTERACTIVE_ENGINE_PREWARM_WRITE_CACHE_FLAG, PREWARM_HOST_ARGUMENTS_MAX_LENGTH, adoptPrewarmedEngine, discardPrewarmedEngine, engineLaunch, interactiveEngineClientOptions, interactiveEngineEnvOverrides, prewarmHandoffNonce, prewarmHostArguments, prewarmInteractiveEngine, prewarmInteractiveEngineForArgs, readPrewarmedEngineArgs, sameEngineLaunch, shouldPrewarmInteractiveEngine, startupBenchmarkEngineEnv, waitForPrewarmedEngineReady } from "../../_shared/p1a-prewarm-XIU57JHF.js";
3
3
  //# sourceMappingURL=engine-prewarm.js.map
@@ -11,6 +11,7 @@ export declare class RemoteModelCatalog {
11
11
  private readonly client;
12
12
  private models;
13
13
  private scopedModels;
14
+ private compactorModels;
14
15
  private oauthProviders;
15
16
  /** Extension providers live only in the engine; the host learns their API-key login and auth status from it. */
16
17
  private apiKeyLoginProviders;
@@ -1,3 +1,3 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { announceBlueprintBuildWaits, runPrintMode, writeBlueprintBuildEvent } from "../_shared/sdk-OSBEPR3Q.js";
2
+ export { announceBlueprintBuildWaits, runPrintMode, writeBlueprintBuildEvent } from "../_shared/sdk-RRLVN7ER.js";
3
3
  //# sourceMappingURL=print-mode.js.map
@@ -88,6 +88,12 @@ export declare abstract class RpcClientApi {
88
88
  /** Compact the session; `instructions` say what to recover first and focus a compactor model. */
89
89
  compact(instructions?: string): Promise<VerbatimCompactionResult>;
90
90
  setAutoCompaction(enabled: boolean): Promise<void>;
91
+ setCompactionModel(model: string, scope?: "global" | "project", options?: {
92
+ persist?: boolean;
93
+ }): Promise<void>;
94
+ setDecisionModel(model: string, scope?: "global" | "project", options?: {
95
+ persist?: boolean;
96
+ }): Promise<void>;
91
97
  /**
92
98
  * Say what extension UI this client can show. With `questionnaire`, `ask_user_question` arrives as one
93
99
  * `extension_ui_request` with method `questionnaire` instead of failing for lack of a terminal.
@@ -5,11 +5,11 @@
5
5
  * Responses and events are emitted as JSON lines on stdout.
6
6
  */
7
7
  import type { AgentMessage, ThinkingLevel } from "@bastani/atomic-agent-core";
8
- import type { AuthInfoLink, Credential, OAuthAuthInfo, OAuthDeviceCodeInfo, OAuthPrompt, OAuthSelectPrompt } from "@bastani/atomic-ai";
8
+ import type { AuthInfoLink, CompactorModel, Credential, OAuthAuthInfo, OAuthDeviceCodeInfo, OAuthPrompt, OAuthSelectPrompt } from "@bastani/atomic-ai";
9
9
  import type { Api, ImageContent, Model } from "@bastani/atomic-ai/compat";
10
10
  import type { ClearedQueue, CompactionReason, PromptDisposition, QueuedInputDisposition, SessionRecoveryReport, SessionStats } from "../../core/agent-session.js";
11
11
  import type { BashResult } from "../../core/bash-executor.ts";
12
- import type { VerbatimCompactionResult } from "../../core/compaction/index.ts";
12
+ import type { SerializedCompactionError, VerbatimCompactionResult } from "../../core/compaction/index.ts";
13
13
  import type { SerializedDebugError } from "../../core/debug-errors.ts";
14
14
  import type { ResourceOverlap } from "../../core/diagnostics.ts";
15
15
  import type { SessionRecoveryReason } from "../../core/extensions/index.js";
@@ -38,6 +38,8 @@ export interface RpcModelCatalog {
38
38
  model: Model<Api>;
39
39
  thinkingLevel?: ThinkingLevel;
40
40
  }>;
41
+ /** Dedicated compactor models registered in the engine (built-in, `models.json`, and extensions). */
42
+ compactorModels?: CompactorModel[];
41
43
  /** Extension-registered providers that offer API-key login (`login_provider`). */
42
44
  customAuthProviders: Array<{
43
45
  id: string;
@@ -248,6 +250,18 @@ export type RpcCommand = {
248
250
  id?: string;
249
251
  type: "set_auto_compaction";
250
252
  enabled: boolean;
253
+ } | {
254
+ id?: string;
255
+ type: "set_compaction_model";
256
+ model: string;
257
+ scope?: "global" | "project";
258
+ persist?: boolean;
259
+ } | {
260
+ id?: string;
261
+ type: "set_decision_model";
262
+ model: string;
263
+ scope?: "global" | "project";
264
+ persist?: boolean;
251
265
  } | {
252
266
  id?: string;
253
267
  type: "abort_compaction";
@@ -704,6 +718,16 @@ export type RpcResponse = {
704
718
  type: "response";
705
719
  command: "set_auto_compaction";
706
720
  success: true;
721
+ } | {
722
+ id?: string;
723
+ type: "response";
724
+ command: "set_compaction_model";
725
+ success: true;
726
+ } | {
727
+ id?: string;
728
+ type: "response";
729
+ command: "set_decision_model";
730
+ success: true;
707
731
  } | {
708
732
  id?: string;
709
733
  type: "response";
@@ -987,6 +1011,9 @@ export type RpcErrorDetails = {
987
1011
  providerId: string;
988
1012
  operation: CredentialSynchronizationOperation;
989
1013
  };
1014
+ } | {
1015
+ errorCode: "compaction_error";
1016
+ errorDetails: SerializedCompactionError;
990
1017
  } | {
991
1018
  errorCode: "debug_error";
992
1019
  errorDetails: SerializedDebugError;
@@ -6,12 +6,12 @@ import chalk from "chalk";
6
6
  import { Container, Input, Markdown, ProcessTerminal, Spacer, TuiMainScreen, getKeybindings, matchesKey, setCapabilityOverrides, setKeybindings, truncateToWidth, visibleWidth } from "@bastani/atomic-tui";
7
7
  import { KeybindingsManager as KeybindingsManager$1, getMarkdownTheme, initTheme, navActionText, renderNavHintLine, stopThemeWatcher, theme } from "./_shared/p2-shell-main-B2WIALFD.js";
8
8
  import { APP_NAME, CONFIG_DIR_NAME, ENV_PACKAGE_DIR, ENV_SELF_UPDATE_COMMAND, PACKAGE_NAME, VERSION, detectInstallChange, detectInstallMethod, getAgentConfigPaths, getAgentDir, getConfiguredSelfUpdateArgv, getEnvNames, getPackageDir, getSelfUpdateCommand, getSelfUpdateUnavailableInstruction, isLocalPath, makeConfiguredSelfUpdateCommand, processLaunch, processLaunchAsync, resolvePath, shortenHomePath, spawnLaunchedProcess, spawnLaunchedProcessSync } from "./_shared/p0-cli-BB45ZQY6.js";
9
- import { DynamicBorder, cleanupWindowsSelfUpdateQuarantine, handlePackageCommandParseOutcome, isWindowsInstallDirectoryLockError, parsePackageCommand, quarantineWindowsNativeDependencies } from "./_shared/startup-0-0-TYUFUOJZ.js";
9
+ import { DynamicBorder, cleanupWindowsSelfUpdateQuarantine, handlePackageCommandParseOutcome, isWindowsInstallDirectoryLockError, parsePackageCommand, quarantineWindowsNativeDependencies } from "./_shared/startup-0-0-4VG2G44V.js";
10
10
  import { createProjectTrustContext } from "./_shared/startup-0-3-T4DVFYWX.js";
11
11
  import { parseConfigCommand } from "./_shared/config-command-parser-XRBNVMBV.js";
12
- import { AuthStorage } from "./_shared/startup-0-4-HN5EB4K7.js";
12
+ import { AuthStorage } from "./_shared/startup-0-4-ZMJV547D.js";
13
13
  import { DefaultPackageManager, ModelRuntime } from "./_shared/startup-0-5-FD2P735I.js";
14
- import { formatPackageInstallWarning, isOfflineModeEnabled } from "./_shared/startup-0-1-W2G2UY7R.js";
14
+ import { formatPackageInstallWarning, isOfflineModeEnabled } from "./_shared/startup-0-1-XTIL65D4.js";
15
15
  import { DefaultResourceLoader, resolveProjectTrusted } from "./_shared/startup-14-0-MLX36RBG.js";
16
16
  import { SettingsManager } from "./_shared/startup-8-1-4KANEHRA.js";
17
17
  import { ProjectTrustStore, hasProjectTrustInputs } from "./_shared/p1b-elig-ENCUPKKJ.js";
@@ -1099,7 +1099,7 @@ function __atomicOnDemandFailed(error, feature) {
1099
1099
  return (async () => {
1100
1100
  const root = new URL("./", import.meta.url);
1101
1101
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
1102
- const key = `${root.href}#0.10.9-alpha.1`;
1102
+ const key = `${root.href}#0.10.10-alpha.1`;
1103
1103
  let release = releases.get(key);
1104
1104
  if (release === undefined) {
1105
1105
  const current = (async () => {
@@ -1127,7 +1127,7 @@ function __atomicOnDemandFailed(error, feature) {
1127
1127
  } catch {
1128
1128
  // No installation to read, as in a bundle of the package: the release the process runs decides.
1129
1129
  }
1130
- const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
1130
+ const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
1131
1131
  if (updatedTo === undefined) throw error;
1132
1132
  const application = typeof running?.name === "string" ? running.name : "atomic";
1133
1133
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("./", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("./", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
package/dist/rpc-entry.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import "./_shared/rolldown-runtime-BGM3D5V3.js";
3
- import { insertForcedOptionsBeforeTerminator } from "./_shared/startup-0-1-W2G2UY7R.js";
3
+ import { insertForcedOptionsBeforeTerminator } from "./_shared/startup-0-1-XTIL65D4.js";
4
4
  import { exitOnDecisionConfigError } from "./_shared/settings-startup-8-DNZ2RIHM.js";
5
5
  import { APP_NAME, ATOMIC_AI_AGENT } from "./_shared/p0-cli-BB45ZQY6.js";
6
6
  import { configureHttpDispatcher } from "./_shared/http-YFAPTIZD.js";
@@ -1 +1 @@
1
- {"version":2,"self":"@bastani/atomic","packages":[["@bastani/atomic",-1],["@bastani/atomic-tui",0],["@bastani/atomic-codemode",0],["proper-lockfile",0],["graceful-fs",3],["retry",3],["signal-exit",3],["chalk",0],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["@bastani/atomic-ai",0],["@bastani/atomic-agent-core",0],["glob",0],["@bastani/atomic-schema",11]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-UQY3X2UK.js"],[0,"dist/_shared/p0-cli-BB45ZQY6.js"],[0,"dist/_shared/p1-shared-RG5I5LJ6.js"],[1,"dist/helper-programs/index.js"],[0,"dist/utils/canonical-path.js"],[0,"dist/utils/path-exists.js"],[0,"dist/utils/worker-threads.js"],[2,"dist/node-options.js"],[1,"dist/_main-ea49a2e6.js"],[1,"dist/_lazy-eb232bf4.js"],[1,"dist/_rolldown-runtime-e937a250.js"],[0,"dist/core/storage/node-sqlite-thread.js"],[0,"dist/core/storage/dialect.js"],[0,"dist/modes/interactive/startup-shell-eligibility.js"],[0,"dist/_shared/p1b-elig-ENCUPKKJ.js"],[3,"index.js"],[0,"dist/_shared/p1-elig-shell-WWRO3L2R.js"],[3,"lib/lockfile.js"],[4,"graceful-fs.js"],[4,"polyfills.js"],[4,"legacy-streams.js"],[4,"clone.js"],[5,"index.js"],[5,"lib/retry.js"],[5,"lib/retry_operation.js"],[6,"index.js"],[6,"signals.js"],[3,"lib/mtime-precision.js"],[3,"lib/adapter.js"],[0,"dist/modes/interactive/startup-shell.js"],[0,"dist/_shared/p2-shell-TJBYQMCJ.js"],[1,"dist/index.js"],[0,"dist/_shared/p2-shell-main-B2WIALFD.js"],[0,"dist/_shared/p2-common-YLSYXMDQ.js"],[1,"dist/_main-eb08764b.js"],[1,"dist/_main-e8b70ad5.js"],[1,"dist/_main-ee570765.js"],[1,"dist/_main-e3d2c0ee.js"],[1,"dist/_main-e6811217.js"],[1,"dist/_main-eb967ea2.js"],[1,"dist/_main-eadbd863.js"],[1,"dist/_main-ec392c93.js"],[1,"dist/_main-e29b4567.js"],[1,"dist/_main-efe521dc.js"],[7,"source/index.js"],[0,"dist/utils/memoize-async.js"],[8,"index.js"],[9,"lib/marked.esm.js"],[10,"dist/index.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[7,"source/utilities.js"],[7,"source/vendor/ansi-styles/index.js"],[7,"source/vendor/supports-color/index.js"],[8,"lookup.js"],[1,"dist/native-module-path.js"],[8,"lookup-data.js"],[8,"utilities.js"],[0,"dist/utils/startup-stages.js"],[0,"dist/_shared/p3a-stages-66VAGJL3.js"],[0,"dist/core/http-dispatcher.js"],[0,"dist/_shared/http-undici-FVPTZA4G.js"],[0,"dist/_shared/http-YFAPTIZD.js"],[11,"dist/utils/node-http-proxy.js"],[11,"dist/utils/tls-certificate.js"],[11,"dist/utils/request-admission.js"],[11,"dist/_main-e478c460.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[0,"dist/main.js"],[0,"dist/_shared/startup-8-1-4KANEHRA.js"],[0,"dist/_shared/startup-15-1-4S7FLMNG.js"],[0,"dist/_shared/startup-0-0-TYUFUOJZ.js"],[0,"dist/_shared/startup-0-1-W2G2UY7R.js"],[0,"dist/_shared/startup-0-2-UXBUEOXW.js"],[0,"dist/_shared/startup-0-3-T4DVFYWX.js"],[0,"dist/_shared/settings-startup-4QCVCI53.js"],[0,"dist/_shared/startup-8-0-34CBHPZH.js"],[0,"dist/_shared/startup-0-5-FD2P735I.js"],[0,"dist/_shared/startup-0-4-HN5EB4K7.js"],[11,"dist/index.js"],[0,"dist/core/storage/errors.js"],[11,"dist/compat.js"],[0,"dist/core/worktree-snapshot/blob-store.js"],[0,"dist/core/storage/provider.js"],[0,"dist/core/storage/file-identity.js"],[11,"dist/utils/typebox/index.js"],[11,"dist/providers/all.js"],[11,"dist/utils/typebox/value.js"],[0,"dist/core/storage/selection.js"],[0,"dist/_shared/startup-15-0-YUKGAC63.js"],[0,"dist/_shared/startup-10-0-TDQNBDDL.js"],[0,"dist/_shared/startup-12-0-55AAXBJZ.js"],[0,"dist/_shared/startup-14-0-MLX36RBG.js"],[12,"dist/index.js"],[0,"dist/core/session-manager-core.js"],[0,"dist/core/extensions/runner-context.js"],[0,"dist/core/model-registry.js"],[11,"dist/api/anthropic-serialized-body.js"],[11,"dist/utils/provider-env.js"],[1,"dist/builtin-command-names.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/providers/github-copilot.js"],[0,"dist/core/storage/migrations.js"],[0,"dist/core/storage/statement-sequence.js"],[11,"dist/providers/model-schema.js"],[11,"dist/api/transform-messages.js"],[11,"dist/api/llama-cpp-classify.lazy.js"],[11,"dist/api/typesafe-system-one.lazy.js"],[11,"dist/providers/compat-schema.js"],[11,"dist/utils/typebox/compile.js"],[11,"dist/utils/models-dev-catalog.js"],[11,"dist/utils/retry-hints.js"],[11,"dist/api/anthropic-assistant-content.js"],[2,"dist/declarations.js"],[2,"dist/source.js"],[11,"dist/utils/provider-retry.js"],[11,"dist/utils/retry-sleep.js"],[0,"dist/core/storage/session/errors.js"],[0,"dist/core/storage/node-sqlite.js"],[0,"dist/core/storage/write-ahead-log.js"],[13,"dist/esm/index.min.js"],[11,"dist/providers/openrouter.js"],[11,"dist/api/openai-codex-responses.js"],[11,"dist/providers/github-copilot-env.js"],[11,"dist/_main-e7de9249.js"],[11,"dist/_main-e1febd93.js"],[11,"dist/_main-e19a4fd4.js"],[11,"dist/_main-e86630a4.js"],[11,"dist/_main-ec623f5a.js"],[11,"dist/_main-ee5299db.js"],[11,"dist/_main-e4ee9ca6.js"],[11,"dist/_main-e65fd2d5.js"],[11,"dist/_main-ee75f731.js"],[11,"dist/_main-e7422bb7.js"],[11,"dist/_main-eb733303.js"],[11,"dist/_main-e88b1f58.js"],[11,"dist/_main-eaf94143.js"],[0,"dist/core/storage/statement-batches.js"],[11,"dist/_lazy-e9952194.js"],[11,"dist/_main-e65b5bbc.js"],[12,"dist/_main-e87dd55a.js"],[12,"dist/_main-ebff8f0f.js"],[11,"dist/api/strict-tool-limits.js"],[0,"dist/_shared/session-manager-list-2BLEEZVG.js"],[11,"dist/_lazy-e22c2ba8.js"],[11,"dist/_main-eedea904.js"],[2,"dist/identifier.js"],[0,"dist/core/storage/node-sqlite-file-gate.js"],[11,"dist/_main-e753f76c.js"],[11,"dist/_lazy-e4c55048.js"],[11,"dist/_main-efb2d8b1.js"],[14,"dist/index.js"],[14,"dist/formats/index.js"],[11,"dist/_main-eafa52af.js"],[12,"dist/_rolldown-runtime-e937a250.js"],[11,"dist/_lazy-e6d29502.js"],[14,"dist/_main-ed41ae74.js"],[0,"dist/cli/settings-startup.js"],[0,"dist/_shared/settings-startup-8-DNZ2RIHM.js"],[0,"dist/modes/interactive/interactive-mode.js"],[0,"dist/_shared/mode-shared-2QJSCUM6.js"],[0,"dist/_shared/mode-interactive-sdk-7KXUFI2F.js"],[1,"dist/layout-node.js"],[0,"dist/modes/rpc/rpc-mode.js"],[0,"dist/_shared/mode-rpc-sdk-IOPGDYR4.js"],[0,"dist/index.js"],[0,"dist/_shared/sdk-OSBEPR3Q.js"],[0,"dist/core/storage/index.js"],[0,"dist/core/storage/schema.js"],[11,"dist/api/cloudflare-gateway-binding.js"],[0,"dist/core/storage/sqlite-facade.js"],[11,"dist/utils/oauth-page.js"],[0,"dist/core/storage/fenced-paths.js"],[0,"dist/core/extensions/loader-virtual-modules.js"],[0,"dist/builtin/intercom/index.bundle.mjs"],[0,"dist/builtin/subagents/src/extension/index.bundle.mjs"],[0,"dist/builtin/mcp/index.bundle.mjs"],[0,"dist/builtin/web-access/index.bundle.mjs"]]}
1
+ {"version":2,"self":"@bastani/atomic","packages":[["@bastani/atomic",-1],["@bastani/atomic-tui",0],["@bastani/atomic-codemode",0],["proper-lockfile",0],["graceful-fs",3],["retry",3],["signal-exit",3],["chalk",0],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["@bastani/atomic-ai",0],["@bastani/atomic-agent-core",0],["glob",0],["@bastani/atomic-schema",11]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-XIU57JHF.js"],[0,"dist/_shared/p0-cli-BB45ZQY6.js"],[0,"dist/_shared/p1-shared-RG5I5LJ6.js"],[1,"dist/helper-programs/index.js"],[0,"dist/utils/canonical-path.js"],[0,"dist/utils/path-exists.js"],[0,"dist/utils/worker-threads.js"],[2,"dist/node-options.js"],[1,"dist/_main-ea49a2e6.js"],[1,"dist/_lazy-eb232bf4.js"],[1,"dist/_rolldown-runtime-e937a250.js"],[0,"dist/core/storage/node-sqlite-thread.js"],[0,"dist/core/storage/dialect.js"],[0,"dist/modes/interactive/startup-shell-eligibility.js"],[0,"dist/_shared/p1b-elig-ENCUPKKJ.js"],[3,"index.js"],[0,"dist/_shared/p1-elig-shell-WWRO3L2R.js"],[3,"lib/lockfile.js"],[4,"graceful-fs.js"],[4,"polyfills.js"],[4,"legacy-streams.js"],[4,"clone.js"],[5,"index.js"],[5,"lib/retry.js"],[5,"lib/retry_operation.js"],[6,"index.js"],[6,"signals.js"],[3,"lib/mtime-precision.js"],[3,"lib/adapter.js"],[0,"dist/modes/interactive/startup-shell.js"],[0,"dist/_shared/p2-shell-TJBYQMCJ.js"],[1,"dist/index.js"],[0,"dist/_shared/p2-shell-main-B2WIALFD.js"],[0,"dist/_shared/p2-common-YLSYXMDQ.js"],[1,"dist/_main-eb08764b.js"],[1,"dist/_main-e8b70ad5.js"],[1,"dist/_main-ee570765.js"],[1,"dist/_main-e3d2c0ee.js"],[1,"dist/_main-e6811217.js"],[1,"dist/_main-eb967ea2.js"],[1,"dist/_main-eadbd863.js"],[1,"dist/_main-ec392c93.js"],[1,"dist/_main-e6ce3ee9.js"],[1,"dist/_main-ee2a1713.js"],[7,"source/index.js"],[0,"dist/utils/memoize-async.js"],[8,"index.js"],[9,"lib/marked.esm.js"],[10,"dist/index.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[7,"source/utilities.js"],[7,"source/vendor/ansi-styles/index.js"],[7,"source/vendor/supports-color/index.js"],[8,"lookup.js"],[1,"dist/native-module-path.js"],[8,"lookup-data.js"],[8,"utilities.js"],[0,"dist/utils/startup-stages.js"],[0,"dist/_shared/p3a-stages-66VAGJL3.js"],[0,"dist/core/http-dispatcher.js"],[0,"dist/_shared/http-undici-FVPTZA4G.js"],[0,"dist/_shared/http-YFAPTIZD.js"],[11,"dist/utils/node-http-proxy.js"],[11,"dist/utils/tls-certificate.js"],[11,"dist/utils/request-admission.js"],[11,"dist/_main-edf30c20.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[0,"dist/main.js"],[0,"dist/_shared/startup-8-1-4KANEHRA.js"],[0,"dist/_shared/startup-15-1-4S7FLMNG.js"],[0,"dist/_shared/startup-0-0-4VG2G44V.js"],[0,"dist/_shared/startup-0-1-XTIL65D4.js"],[0,"dist/_shared/startup-0-2-27OWFHV6.js"],[0,"dist/_shared/startup-0-3-T4DVFYWX.js"],[0,"dist/_shared/settings-startup-4QCVCI53.js"],[0,"dist/_shared/startup-8-0-34CBHPZH.js"],[0,"dist/_shared/startup-0-5-FD2P735I.js"],[0,"dist/_shared/startup-0-4-ZMJV547D.js"],[11,"dist/index.js"],[0,"dist/core/storage/errors.js"],[11,"dist/compat.js"],[0,"dist/core/worktree-snapshot/blob-store.js"],[0,"dist/core/storage/provider.js"],[0,"dist/core/storage/file-identity.js"],[11,"dist/utils/typebox/index.js"],[11,"dist/providers/all.js"],[11,"dist/utils/typebox/value.js"],[0,"dist/core/storage/selection.js"],[0,"dist/_shared/startup-15-0-YUKGAC63.js"],[0,"dist/_shared/startup-10-0-TDQNBDDL.js"],[0,"dist/_shared/startup-12-0-55AAXBJZ.js"],[0,"dist/_shared/startup-14-0-MLX36RBG.js"],[12,"dist/index.js"],[0,"dist/core/session-manager-core.js"],[0,"dist/core/extensions/runner-context.js"],[0,"dist/core/model-registry.js"],[11,"dist/api/anthropic-serialized-body.js"],[11,"dist/utils/provider-env.js"],[1,"dist/builtin-command-names.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/providers/github-copilot.js"],[0,"dist/core/storage/migrations.js"],[0,"dist/core/storage/statement-sequence.js"],[11,"dist/providers/model-schema.js"],[11,"dist/api/transform-messages.js"],[11,"dist/api/llama-cpp-classify.lazy.js"],[11,"dist/api/typesafe-system-one.lazy.js"],[11,"dist/providers/compat-schema.js"],[11,"dist/utils/typebox/compile.js"],[11,"dist/utils/models-dev-catalog.js"],[11,"dist/utils/retry-hints.js"],[11,"dist/api/anthropic-assistant-content.js"],[2,"dist/declarations.js"],[2,"dist/source.js"],[11,"dist/utils/provider-retry.js"],[11,"dist/utils/retry-sleep.js"],[0,"dist/core/storage/session/errors.js"],[0,"dist/core/storage/node-sqlite.js"],[0,"dist/core/storage/write-ahead-log.js"],[13,"dist/esm/index.min.js"],[11,"dist/providers/openrouter.js"],[11,"dist/api/openai-codex-responses.js"],[11,"dist/providers/github-copilot-env.js"],[11,"dist/_main-ec3152be.js"],[11,"dist/_main-e1febd93.js"],[11,"dist/_main-e19a4fd4.js"],[11,"dist/_main-e86630a4.js"],[11,"dist/_main-e3f73c7d.js"],[11,"dist/_main-e854f8b1.js"],[11,"dist/_main-edd4537d.js"],[11,"dist/_main-eabcf79d.js"],[11,"dist/_main-e924d407.js"],[11,"dist/_main-eaf29bfb.js"],[11,"dist/_main-e773ad31.js"],[11,"dist/_main-e75e2fa8.js"],[11,"dist/_main-e39ef302.js"],[0,"dist/core/storage/statement-batches.js"],[11,"dist/_lazy-e9952194.js"],[11,"dist/_main-ea36b8ed.js"],[12,"dist/_main-e87dd55a.js"],[12,"dist/_main-ebff8f0f.js"],[11,"dist/api/strict-tool-limits.js"],[0,"dist/_shared/session-manager-list-2BLEEZVG.js"],[11,"dist/_lazy-e57c9a07.js"],[11,"dist/_main-ea367c0c.js"],[2,"dist/identifier.js"],[0,"dist/core/storage/node-sqlite-file-gate.js"],[11,"dist/_main-e228383b.js"],[11,"dist/_lazy-e22d87df.js"],[11,"dist/_main-efb2d8b1.js"],[14,"dist/index.js"],[14,"dist/formats/index.js"],[11,"dist/_main-ed53c252.js"],[12,"dist/_rolldown-runtime-e937a250.js"],[11,"dist/_lazy-ec6809c5.js"],[14,"dist/_main-ed41ae74.js"],[0,"dist/cli/settings-startup.js"],[0,"dist/_shared/settings-startup-8-DNZ2RIHM.js"],[0,"dist/modes/interactive/interactive-mode.js"],[0,"dist/_shared/mode-shared-2QJSCUM6.js"],[0,"dist/_shared/mode-interactive-sdk-7KXUFI2F.js"],[1,"dist/layout-node.js"],[0,"dist/modes/rpc/rpc-mode.js"],[0,"dist/_shared/mode-rpc-sdk-IOPGDYR4.js"],[0,"dist/index.js"],[0,"dist/_shared/sdk-RRLVN7ER.js"],[0,"dist/core/storage/index.js"],[0,"dist/core/storage/schema.js"],[11,"dist/api/cloudflare-gateway-binding.js"],[0,"dist/core/storage/sqlite-facade.js"],[11,"dist/utils/oauth-page.js"],[0,"dist/core/storage/fenced-paths.js"],[0,"dist/core/extensions/loader-virtual-modules.js"],[0,"dist/builtin/intercom/index.bundle.mjs"],[0,"dist/builtin/subagents/src/extension/index.bundle.mjs"],[0,"dist/builtin/mcp/index.bundle.mjs"],[0,"dist/builtin/web-access/index.bundle.mjs"]]}
@@ -1 +1 @@
1
- import "../_shared/startup-0-0-TYUFUOJZ.js";
1
+ import "../_shared/startup-0-0-4VG2G44V.js";
@@ -1,4 +1,4 @@
1
- import "../_shared/startup-0-1-W2G2UY7R.js";
1
+ import "../_shared/startup-0-1-XTIL65D4.js";
2
2
  import "@bastani/atomic-agent-core";
3
3
  import "@bastani/atomic-ai/api/llama-cpp-classify.lazy";
4
4
  import "@bastani/atomic-ai/api/typesafe-system-one.lazy";
@@ -1,3 +1,2 @@
1
- import "../_shared/startup-0-2-UXBUEOXW.js";
1
+ import "../_shared/startup-0-2-27OWFHV6.js";
2
2
  import "../_shared/startup-0-3-T4DVFYWX.js";
3
- import "../_shared/startup-8-0-34CBHPZH.js";
@@ -1,4 +1,5 @@
1
- import "../_shared/startup-0-4-HN5EB4K7.js";
1
+ import "../_shared/startup-8-0-34CBHPZH.js";
2
+ import "../_shared/startup-0-4-ZMJV547D.js";
2
3
  import "glob";
3
4
  import "@bastani/atomic-ai/providers/all";
4
5
  import "@bastani/atomic-ai/providers/openrouter";
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Atomic cannot run a session without its native module (`@bastani/atomic-natives`): its subagents, for one, are built
3
+ * on it. The message says why the module did not load, as its loader words it: for a platform package an install left
4
+ * out, which package and how to reinstall Atomic with it. A native module of another release is refused too: when an
5
+ * update replaced the installation under this process, with how to restart, and otherwise, the installation being
6
+ * broken, with how to reinstall it.
7
+ */
8
+ export declare class NativeModuleUnavailableError extends Error {
9
+ readonly code = "NativeModuleUnavailable";
10
+ constructor(message: string, options?: {
11
+ cause?: unknown;
12
+ });
13
+ }
14
+ /** Why this process cannot run its native module, before the message says whether the installation changed. */
15
+ export interface NativeModuleProblem {
16
+ /** The loader's own message, or why the native module it loaded cannot run this release. */
17
+ readonly message: string;
18
+ /** Whether it could not load at all; the restart advice then comes before the loader's message. */
19
+ readonly loadFailed: boolean;
20
+ readonly cause?: unknown;
21
+ /**
22
+ * For a native module of another release: the file this process loaded it from and the release it needs. When that
23
+ * file changed on disk after an earlier refusal in this process and its package is of that release by now, it was
24
+ * reinstalled while this process ran: a restart loads it. The process keeps the one it loaded until then, as other
25
+ * parts of it already use that one.
26
+ */
27
+ readonly refused?: {
28
+ readonly file: string;
29
+ readonly release: string;
30
+ };
31
+ }
32
+ /**
33
+ * Load Atomic's native module, and say why this process cannot run it: it did not load, or it is of another release.
34
+ * Undefined when it can. Only a load that passed is kept: a later call tries again, so a module that could not load at
35
+ * all can be used once it is installed. One of another release stays loaded, and refused, until the process restarts.
36
+ */
37
+ export declare function nativeModuleProblem(): NativeModuleProblem | undefined;
38
+ /**
39
+ * The {@link NativeModuleUnavailableError} of `problem`: when an update replaced or removed the installation since this
40
+ * process started, or the native module this process refused before was reinstalled in the right release since, it says
41
+ * to restart (before the loader's message, for a module that could not load); otherwise it is the problem's own message.
42
+ */
43
+ export declare function nativeModuleUnavailable(problem: NativeModuleProblem): Promise<never>;
44
+ //# sourceMappingURL=native-module.d.ts.map
@@ -1,11 +1,11 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { readFileSync } from "node:fs";
3
3
  import { join } from "node:path";
4
- import { parseArgs } from "../_shared/startup-0-1-W2G2UY7R.js";
4
+ import { parseArgs } from "../_shared/startup-0-1-XTIL65D4.js";
5
5
  import { CONFIG_DIR_NAME, ENV_AGENT_DIR, INTERACTIVE_ENGINE_PREWARM_NO_DATABASE, getEnvNames, isPlainInteractiveSessionInvocation, normalizePath, stripBom } from "../_shared/p0-cli-BB45ZQY6.js";
6
6
  import { parseConfigCommand } from "../_shared/config-command-parser-XRBNVMBV.js";
7
- import { previewProcessStorageSelection, previewSessionSettingSelection } from "../_shared/startup-0-2-UXBUEOXW.js";
8
- import { parsePackageCommand } from "../_shared/startup-0-0-TYUFUOJZ.js";
7
+ import { previewProcessStorageSelection, previewSessionSettingSelection } from "../_shared/startup-0-2-27OWFHV6.js";
8
+ import { parsePackageCommand } from "../_shared/startup-0-0-4VG2G44V.js";
9
9
  // dist/utils/startup-database-spare.js
10
10
  const DIRECT_SUBCOMMANDS = /* @__PURE__ */ new Set([
11
11
  "auth",
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,3 +1,3 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { GIT_RELEASE, detectLinuxLibc, ensureTool, getGitDistributionTarget, getGitInstallDir, getGitReleaseMarker, getGitShellEnvironment, getGitShellEnvironmentAsync, getGitStatus, getGitStatusAsync, getLatestVersion, getToolEnv, getToolPath, parseGitVersion, plainStatMtimeMs, resetGitProvisionStateForTest, resolveGit, resolveGitSync, resolveInstalledGit, withGitProvisionSettingsForTest } from "../_shared/startup-0-1-W2G2UY7R.js";
2
+ export { GIT_RELEASE, detectLinuxLibc, ensureTool, getGitDistributionTarget, getGitInstallDir, getGitReleaseMarker, getGitShellEnvironment, getGitShellEnvironmentAsync, getGitStatus, getGitStatusAsync, getLatestVersion, getToolEnv, getToolPath, parseGitVersion, plainStatMtimeMs, resetGitProvisionStateForTest, resolveGit, resolveGitSync, resolveInstalledGit, withGitProvisionSettingsForTest } from "../_shared/startup-0-1-XTIL65D4.js";
3
3
  //# sourceMappingURL=tools-manager.code.js.map
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.9-alpha.1`;
9
+ const key = `${root.href}#0.10.10-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.9-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.9-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.10-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }