@bastani/atomic 0.10.8 → 0.10.9-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 (198) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/_shared/dist-KOELCESV.js +2 -2
  3. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  4. package/dist/_shared/lib-4PES5P4V.js +2 -2
  5. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +2 -2
  6. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +2 -2
  7. package/dist/_shared/mode-shared-2QJSCUM6.js +2 -2
  8. package/dist/_shared/p1a-prewarm-UQY3X2UK.js +3 -3
  9. package/dist/_shared/sdk-OSBEPR3Q.js +13 -6
  10. package/dist/_shared/sdk-OSBEPR3Q.js.map +1 -1
  11. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  12. package/dist/_shared/startup-0-0-TYUFUOJZ.js +2 -2
  13. package/dist/_shared/startup-0-1-W2G2UY7R.js +2 -2
  14. package/dist/_shared/startup-0-2-UXBUEOXW.js +2 -2
  15. package/dist/_shared/startup-0-3-T4DVFYWX.js +2 -2
  16. package/dist/_shared/startup-0-4-HN5EB4K7.js +2 -2
  17. package/dist/_shared/startup-0-5-FD2P735I.js +2 -2
  18. package/dist/_shared/startup-10-0-TDQNBDDL.js +2 -2
  19. package/dist/_shared/startup-15-1-4S7FLMNG.js +2 -2
  20. package/dist/_shared/startup-8-0-34CBHPZH.js +2 -2
  21. package/dist/_shared/startup-8-1-4KANEHRA.js +2 -2
  22. package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
  23. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  24. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  25. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  26. package/dist/builtin/intercom/package.json +1 -1
  27. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  28. package/dist/builtin/mcp/package.json +1 -1
  29. package/dist/builtin/subagents/package.json +1 -1
  30. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  31. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  32. package/dist/builtin/web-access/package.json +1 -1
  33. package/dist/cli/auth-cli.impl.js +3 -3
  34. package/dist/cli/auth-cli.js +3 -3
  35. package/dist/cli/blueprint-command.impl.js +3 -3
  36. package/dist/cli/blueprint-command.js +3 -3
  37. package/dist/cli/intercom-command.code.js +2 -2
  38. package/dist/cli/intercom-command.impl.js +3 -3
  39. package/dist/cli/intercom-command.js +3 -3
  40. package/dist/cli/list-models.impl.js +3 -3
  41. package/dist/cli/list-models.js +3 -3
  42. package/dist/cli/session-picker.impl.js +3 -3
  43. package/dist/cli/session-picker.js +3 -3
  44. package/dist/cli/startup-ui.impl.js +3 -3
  45. package/dist/cli/startup-ui.js +3 -3
  46. package/dist/cli/storage-command.impl.js +3 -3
  47. package/dist/cli/storage-command.js +3 -3
  48. package/dist/cli/storage-search-session.impl.js +3 -3
  49. package/dist/cli/storage-search-session.js +3 -3
  50. package/dist/cli/team-command.impl.js +3 -3
  51. package/dist/cli/team-command.js +3 -3
  52. package/dist/cli.js +2 -2
  53. package/dist/core/debug.impl.js +3 -3
  54. package/dist/core/debug.js +3 -3
  55. package/dist/core/export-html/card-projection.impl.js +3 -3
  56. package/dist/core/export-html/card-projection.js +3 -3
  57. package/dist/core/export-html/index.code.js +2 -2
  58. package/dist/core/export-html/index.impl.js +3 -3
  59. package/dist/core/export-html/index.js +3 -3
  60. package/dist/core/export-html/json-spans.impl.js +3 -3
  61. package/dist/core/export-html/json-spans.js +3 -3
  62. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  63. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  64. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  65. package/dist/core/export-html/tool-renderer.js +3 -3
  66. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  67. package/dist/core/extensions/jiti-loader.js +3 -3
  68. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  69. package/dist/core/extensions/jiti-static-loader.js +3 -3
  70. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  71. package/dist/core/extensions/loader-host-modules.js +3 -3
  72. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  73. package/dist/core/intercom-broker-control-host.js +3 -3
  74. package/dist/core/intercom-broker-control.code.js +2 -2
  75. package/dist/core/intercom-broker-control.impl.js +3 -3
  76. package/dist/core/intercom-broker-control.js +3 -3
  77. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  78. package/dist/core/package-manager-storage-adapters.js +3 -3
  79. package/dist/core/sdk.impl.js +3 -3
  80. package/dist/core/sdk.js +3 -3
  81. package/dist/core/session-manager-core.js +2 -2
  82. package/dist/core/session-manager-list.impl.js +3 -3
  83. package/dist/core/session-manager-list.js +3 -3
  84. package/dist/core/session-manager.impl.js +3 -3
  85. package/dist/core/session-manager.js +3 -3
  86. package/dist/core/session-storage.impl.js +3 -3
  87. package/dist/core/session-storage.js +3 -3
  88. package/dist/core/storage/index.js +2 -2
  89. package/dist/core/storage/node-sqlite-thread.js +2 -2
  90. package/dist/core/storage/node-sqlite.js +2 -2
  91. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  92. package/dist/core/storage/offline-snapshot-file.js +3 -3
  93. package/dist/core/storage/provider.js +2 -2
  94. package/dist/core/storage/selection.js +2 -2
  95. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  96. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  97. package/dist/core/storage/session/branch-fork-source.js +3 -3
  98. package/dist/core/storage/session/card-view.impl.js +3 -3
  99. package/dist/core/storage/session/card-view.js +3 -3
  100. package/dist/core/storage/session/child-reader.code.js +2 -2
  101. package/dist/core/storage/session/child-reader.impl.js +3 -3
  102. package/dist/core/storage/session/child-reader.js +3 -3
  103. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  104. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  105. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  106. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  107. package/dist/core/storage/session/expanded-child-details.js +3 -3
  108. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  109. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  110. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  111. package/dist/core/storage/session/fork-row-index.js +3 -3
  112. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  113. package/dist/core/storage/session/fork-staging.js +3 -3
  114. package/dist/core/storage/session/fork-window.code.js +2 -2
  115. package/dist/core/storage/session/fork-window.impl.js +3 -3
  116. package/dist/core/storage/session/fork-window.js +3 -3
  117. package/dist/core/storage/session/history-pages.impl.js +3 -3
  118. package/dist/core/storage/session/history-pages.js +3 -3
  119. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  120. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  121. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  122. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  123. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  124. package/dist/core/storage/session/memory-session-store.js +3 -3
  125. package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
  126. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  127. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  128. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  129. package/dist/core/storage/session/released-history-files.js +3 -3
  130. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  131. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  132. package/dist/core/storage/session/session-resume.impl.js +3 -3
  133. package/dist/core/storage/session/session-resume.js +3 -3
  134. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  135. package/dist/core/storage/session/snapshot-cut.js +3 -3
  136. package/dist/core/storage/session/snapshot-history.code.js +2 -2
  137. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  138. package/dist/core/storage/session/snapshot-history.js +3 -3
  139. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  140. package/dist/core/storage/session/sql-session-store.js +3 -3
  141. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  142. package/dist/core/storage/session/tree-outline.js +3 -3
  143. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  144. package/dist/core/storage/session/tree-presentation.js +3 -3
  145. package/dist/core/storage/storage-status.impl.js +3 -3
  146. package/dist/core/storage/storage-status.js +3 -3
  147. package/dist/core/storage/team.impl.js +3 -3
  148. package/dist/core/storage/team.js +3 -3
  149. package/dist/core/structured-output/index.impl.js +3 -3
  150. package/dist/core/structured-output/index.js +3 -3
  151. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  152. package/dist/core/tasks/task-completion-entry.js +3 -3
  153. package/dist/core/tasks/task-file-history.code.js +2 -2
  154. package/dist/core/tasks/task-file-history.impl.js +3 -3
  155. package/dist/core/tasks/task-file-history.js +3 -3
  156. package/dist/core/tasks/task-reference-archive.code.js +2 -2
  157. package/dist/core/tasks/task-reference-archive.js +3 -3
  158. package/dist/core/tasks/task-reference-identity.js +3 -3
  159. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  160. package/dist/core/tasks/task-reference-stream.js +3 -3
  161. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  162. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  163. package/dist/core/tasks/task-view-source.impl.js +3 -3
  164. package/dist/core/tasks/task-view-source.js +3 -3
  165. package/dist/core/tools/read-url.impl.js +3 -3
  166. package/dist/core/tools/read-url.js +3 -3
  167. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  168. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  169. package/dist/core/worktree-snapshot/errors.js +3 -3
  170. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  171. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  172. package/dist/extensions/codemode/execute.impl.js +3 -3
  173. package/dist/extensions/codemode/execute.js +3 -3
  174. package/dist/extensions/codemode/renderer.impl.js +3 -3
  175. package/dist/extensions/codemode/renderer.js +3 -3
  176. package/dist/extensions/mcp/cli.impl.js +3 -3
  177. package/dist/extensions/mcp/cli.js +3 -3
  178. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  179. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  180. package/dist/extensions/mcp/cli.lazy.js +3 -3
  181. package/dist/extensions/mcp/runtime.impl.js +3 -3
  182. package/dist/extensions/mcp/runtime.js +3 -3
  183. package/dist/main-first-time-setup.impl.js +3 -3
  184. package/dist/main-first-time-setup.js +3 -3
  185. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  186. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  187. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  188. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  189. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  190. package/dist/package-manager-cli.code.js +2 -2
  191. package/dist/package-manager-cli.impl.js +3 -3
  192. package/dist/package-manager-cli.js +3 -3
  193. package/dist/startup-files.json +1 -1
  194. package/dist/utils/startup-database-spare.impl.js +3 -3
  195. package/dist/utils/startup-database-spare.js +3 -3
  196. package/dist/utils/tools-manager.impl.js +3 -3
  197. package/dist/utils/tools-manager.js +3 -3
  198. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.9-alpha.1] - 2026-11-24
6
+
7
+ Atomic no longer warns that MCP tools are unreachable when a project with its own resources starts up.
8
+
9
+ **MCP startup**
10
+
11
+ - **No false "neither is active" warning.** Projects with their own resources, such as `.atomic/mcp.json`, no longer report that MCP tools are unreachable at startup while codemode is still loading. Codemode is also activated for the first prompt when `autoEnableCodemode` relies on it ([#6542](https://github.com/bastani-inc/atomic/issues/6542), [#6543](https://github.com/bastani-inc/atomic/pull/6543))
12
+
13
+ ### Fixed
14
+
15
+ - Fixed a false "MCP tools are only reachable from the codemode or tool_search tool, but neither is active" warning when starting in a project with its own resources (such as `.atomic/mcp.json`). MCP started with the pre-trust extension set and checked for the built-in discovery tools before they loaded. MCP now leaves a missing discovery tool to the next prompt or `/mcp` command, and activates codemode there when `autoEnableCodemode` asks for it ([#6542](https://github.com/bastani-inc/atomic/issues/6542), [#6543](https://github.com/bastani-inc/atomic/pull/6543)).
16
+
5
17
  ## [0.10.8] - 2026-11-24
6
18
 
7
19
  Atomic fixes deferred startup dropping the built-in Herdr reporter on plain `atomic` launches and expands SDK exports with session, storage, settings, and OAuth error classes, session stores, claim helpers, and model-scope utilities.
@@ -31842,7 +31842,7 @@ function __atomicOnDemandFailed(error, feature) {
31842
31842
  return (async () => {
31843
31843
  const root = new URL("../", import.meta.url);
31844
31844
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
31845
- const key = `${root.href}#0.10.8`;
31845
+ const key = `${root.href}#0.10.9-alpha.1`;
31846
31846
  let release = releases.get(key);
31847
31847
  if (release === undefined) {
31848
31848
  const current = (async () => {
@@ -31870,7 +31870,7 @@ function __atomicOnDemandFailed(error, feature) {
31870
31870
  } catch {
31871
31871
  // No installation to read, as in a bundle of the package: the release the process runs decides.
31872
31872
  }
31873
- const updatedTo = typeof installed === "string" && installed !== "0.10.8" ? installed : running !== undefined && running.version !== "0.10.8" ? "0.10.8" : undefined;
31873
+ 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;
31874
31874
  if (updatedTo === undefined) throw error;
31875
31875
  const application = typeof running?.name === "string" ? running.name : "atomic";
31876
31876
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -40,7 +40,7 @@ function __atomicOnDemandFailed(error, feature) {
40
40
  return (async () => {
41
41
  const root = new URL("../", import.meta.url);
42
42
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
43
- const key = `${root.href}#0.10.8`;
43
+ const key = `${root.href}#0.10.9-alpha.1`;
44
44
  let release = releases.get(key);
45
45
  if (release === undefined) {
46
46
  const current = (async () => {
@@ -68,7 +68,7 @@ function __atomicOnDemandFailed(error, feature) {
68
68
  } catch {
69
69
  // No installation to read, as in a bundle of the package: the release the process runs decides.
70
70
  }
71
- const updatedTo = typeof installed === "string" && installed !== "0.10.8" ? installed : running !== undefined && running.version !== "0.10.8" ? "0.10.8" : undefined;
71
+ 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;
72
72
  if (updatedTo === undefined) throw error;
73
73
  const application = typeof running?.name === "string" ? running.name : "atomic";
74
74
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -5131,7 +5131,7 @@ function __atomicOnDemandFailed(error, feature) {
5131
5131
  return (async () => {
5132
5132
  const root = new URL("../", import.meta.url);
5133
5133
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
5134
- const key = `${root.href}#0.10.8`;
5134
+ const key = `${root.href}#0.10.9-alpha.1`;
5135
5135
  let release = releases.get(key);
5136
5136
  if (release === undefined) {
5137
5137
  const current = (async () => {
@@ -5159,7 +5159,7 @@ function __atomicOnDemandFailed(error, feature) {
5159
5159
  } catch {
5160
5160
  // No installation to read, as in a bundle of the package: the release the process runs decides.
5161
5161
  }
5162
- const updatedTo = typeof installed === "string" && installed !== "0.10.8" ? installed : running !== undefined && running.version !== "0.10.8" ? "0.10.8" : undefined;
5162
+ 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;
5163
5163
  if (updatedTo === undefined) throw error;
5164
5164
  const application = typeof running?.name === "string" ? running.name : "atomic";
5165
5165
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -28157,7 +28157,7 @@ function __atomicOnDemandFailed(error, feature) {
28157
28157
  return (async () => {
28158
28158
  const root = new URL("../", import.meta.url);
28159
28159
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
28160
- const key = `${root.href}#0.10.8`;
28160
+ const key = `${root.href}#0.10.9-alpha.1`;
28161
28161
  let release = releases.get(key);
28162
28162
  if (release === undefined) {
28163
28163
  const current = (async () => {
@@ -28185,7 +28185,7 @@ function __atomicOnDemandFailed(error, feature) {
28185
28185
  } catch {
28186
28186
  // No installation to read, as in a bundle of the package: the release the process runs decides.
28187
28187
  }
28188
- const updatedTo = typeof installed === "string" && installed !== "0.10.8" ? installed : running !== undefined && running.version !== "0.10.8" ? "0.10.8" : undefined;
28188
+ 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;
28189
28189
  if (updatedTo === undefined) throw error;
28190
28190
  const application = typeof running?.name === "string" ? running.name : "atomic";
28191
28191
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -4135,7 +4135,7 @@ function __atomicOnDemandFailed(error, feature) {
4135
4135
  return (async () => {
4136
4136
  const root = new URL("../", import.meta.url);
4137
4137
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
4138
- const key = `${root.href}#0.10.8`;
4138
+ const key = `${root.href}#0.10.9-alpha.1`;
4139
4139
  let release = releases.get(key);
4140
4140
  if (release === undefined) {
4141
4141
  const current = (async () => {
@@ -4163,7 +4163,7 @@ function __atomicOnDemandFailed(error, feature) {
4163
4163
  } catch {
4164
4164
  // No installation to read, as in a bundle of the package: the release the process runs decides.
4165
4165
  }
4166
- const updatedTo = typeof installed === "string" && installed !== "0.10.8" ? installed : running !== undefined && running.version !== "0.10.8" ? "0.10.8" : undefined;
4166
+ 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;
4167
4167
  if (updatedTo === undefined) throw error;
4168
4168
  const application = typeof running?.name === "string" ? running.name : "atomic";
4169
4169
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -27253,7 +27253,7 @@ function __atomicOnDemandFailed(error, feature) {
27253
27253
  return (async () => {
27254
27254
  const root = new URL("../", import.meta.url);
27255
27255
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
27256
- const key = `${root.href}#0.10.8`;
27256
+ const key = `${root.href}#0.10.9-alpha.1`;
27257
27257
  let release = releases.get(key);
27258
27258
  if (release === undefined) {
27259
27259
  const current = (async () => {
@@ -27281,7 +27281,7 @@ function __atomicOnDemandFailed(error, feature) {
27281
27281
  } catch {
27282
27282
  // No installation to read, as in a bundle of the package: the release the process runs decides.
27283
27283
  }
27284
- const updatedTo = typeof installed === "string" && installed !== "0.10.8" ? installed : running !== undefined && running.version !== "0.10.8" ? "0.10.8" : undefined;
27284
+ 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;
27285
27285
  if (updatedTo === undefined) throw error;
27286
27286
  const application = typeof running?.name === "string" ? running.name : "atomic";
27287
27287
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -204,7 +204,7 @@ const INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG = `${INTERACTIVE_ENGINE_
204
204
  const INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG = `${INTERACTIVE_ENGINE_PREWARM_FLAG}-handoff`;
205
205
  const PREWARM_HOST_ARGUMENTS_MAX_LENGTH = 8192;
206
206
  const PREWARM_READY_MAX_BYTES = 4096;
207
- const PREWARM_BUILD_STAMP = "c68df3ab67922cdc10f40c1ae8b146";
207
+ const PREWARM_BUILD_STAMP = "5e1d86ee0723cc70f9dd84245b95fa";
208
208
  const PREWARM_BUILD_STAMP_UNSTAMPED = ["__ATOMIC_PREWARM", "BUILD_STAMP__"].join("_");
209
209
  function prewarmBuildIdentity() {
210
210
  if (PREWARM_BUILD_STAMP === PREWARM_BUILD_STAMP_UNSTAMPED) return void 0;
@@ -568,7 +568,7 @@ function __atomicOnDemandFailed(error, feature) {
568
568
  return (async () => {
569
569
  const root = new URL("../", import.meta.url);
570
570
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
571
- const key = `${root.href}#0.10.8`;
571
+ const key = `${root.href}#0.10.9-alpha.1`;
572
572
  let release = releases.get(key);
573
573
  if (release === undefined) {
574
574
  const current = (async () => {
@@ -596,7 +596,7 @@ function __atomicOnDemandFailed(error, feature) {
596
596
  } catch {
597
597
  // No installation to read, as in a bundle of the package: the release the process runs decides.
598
598
  }
599
- const updatedTo = typeof installed === "string" && installed !== "0.10.8" ? installed : running !== undefined && running.version !== "0.10.8" ? "0.10.8" : undefined;
599
+ 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;
600
600
  if (updatedTo === undefined) throw error;
601
601
  const application = typeof running?.name === "string" ? running.name : "atomic";
602
602
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -7725,8 +7725,12 @@ function createMcpExtension(options = {}) {
7725
7725
  * them) or the tool_search tool (it declares them). Either reaches every such tool. Activate the
7726
7726
  * one the tools' exposure asks for: codemode for `codemode` unless `autoEnableCodemode` is false,
7727
7727
  * tool_search for `deferred`.
7728
+ *
7729
+ * A `provisional` check may run before the final extension set is loaded: with deferred project
7730
+ * trust, MCP starts with the pre-trust set and the built-in discovery tools load afterwards. It
7731
+ * leaves a missing discovery tool to the next `settled` check, such as the next prompt's.
7728
7732
  */
7729
- const ensureDiscoveryActive = (ctx) => {
7733
+ const ensureDiscoveryActive = (ctx, check = "settled") => {
7730
7734
  const exposures = /* @__PURE__ */ new Set();
7731
7735
  for (const server of servers) if (isEnabled(server)) for (const exposure of configuredExposures(server.entry)) exposures.add(exposure);
7732
7736
  const needsCodemode = exposures.has("codemode");
@@ -7744,6 +7748,7 @@ function createMcpExtension(options = {}) {
7744
7748
  const reachable = [...active, ...activate];
7745
7749
  if (hasCodemode && reachable.includes("codemode")) return;
7746
7750
  if (hasToolSearch && reachable.includes("tool_search")) return;
7751
+ if (check === "provisional" && !hasCodemode && !hasToolSearch) return;
7747
7752
  if (warnedUnreachable) return;
7748
7753
  warnedUnreachable = true;
7749
7754
  const reason = needsCodemode && codemode?.explicitDefaultOptOut ? " (-codemode removed it from the tool selection)" : needsCodemode && hasCodemode && !autoEnableCodemode ? " (autoEnableCodemode is false)" : "";
@@ -8114,7 +8119,7 @@ function createMcpExtension(options = {}) {
8114
8119
  const finish = (message) => {
8115
8120
  if (signal.aborted || server.attempt !== attempt || !servers.includes(server)) return;
8116
8121
  server.message = message;
8117
- ensureDiscoveryActive(ctx);
8122
+ ensureDiscoveryActive(ctx, "provisional");
8118
8123
  emitChange();
8119
8124
  };
8120
8125
  track(ready.then(finish, (error) => finish(errorMessage(error))));
@@ -8255,7 +8260,7 @@ function createMcpExtension(options = {}) {
8255
8260
  servers = [...loaded.servers.map((entry) => ({ entry })), ...registered.servers];
8256
8261
  restoreRecordedTools(ctx);
8257
8262
  emitChange();
8258
- ensureDiscoveryActive(ctx);
8263
+ ensureDiscoveryActive(ctx, "provisional");
8259
8264
  const enabled = servers.filter(isEnabled);
8260
8265
  if (enabled.length === 0) {
8261
8266
  reportProblems(ctx);
@@ -8283,6 +8288,7 @@ function createMcpExtension(options = {}) {
8283
8288
  if (!finished) ctx.ui.notify("MCP servers are still connecting; their tools become available once connected.", "info");
8284
8289
  };
8285
8290
  atomic.on("before_agent_start", async (event, ctx) => {
8291
+ ensureDiscoveryActive(ctx);
8286
8292
  await waitForDirectServers(ctx);
8287
8293
  const { sections } = event.systemPromptOptions;
8288
8294
  const section = layOutServersSection(servers.map((server) => {
@@ -8379,7 +8385,7 @@ function createMcpExtension(options = {}) {
8379
8385
  const added = registered.servers.filter((server) => !findServer(server.entry.name));
8380
8386
  servers.push(...added);
8381
8387
  emitChange();
8382
- if (latestContext) ensureDiscoveryActive(latestContext);
8388
+ if (latestContext) ensureDiscoveryActive(latestContext, "provisional");
8383
8389
  Promise.all(removed.map((server) => server.connection?.close())).then(async () => {
8384
8390
  const connecting = added.filter(isEnabled);
8385
8391
  if (signal.aborted || connecting.length === 0) return;
@@ -8445,6 +8451,7 @@ function createMcpExtension(options = {}) {
8445
8451
  return items.length > 0 ? items : null;
8446
8452
  },
8447
8453
  handler: async (args, ctx) => {
8454
+ ensureDiscoveryActive(ctx);
8448
8455
  const [action, name, ...extra] = args.trim().split(/\s+/).filter(Boolean);
8449
8456
  if (action === void 0) {
8450
8457
  if (ctx.mode === "tui") await showMcpManager(ctx, (ui) => manage(ui, ctx));
@@ -10273,7 +10280,7 @@ function __atomicOnDemandFailed(error, feature) {
10273
10280
  return (async () => {
10274
10281
  const root = new URL("../", import.meta.url);
10275
10282
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
10276
- const key = `${root.href}#0.10.8`;
10283
+ const key = `${root.href}#0.10.9-alpha.1`;
10277
10284
  let release = releases.get(key);
10278
10285
  if (release === undefined) {
10279
10286
  const current = (async () => {
@@ -10301,7 +10308,7 @@ function __atomicOnDemandFailed(error, feature) {
10301
10308
  } catch {
10302
10309
  // No installation to read, as in a bundle of the package: the release the process runs decides.
10303
10310
  }
10304
- const updatedTo = typeof installed === "string" && installed !== "0.10.8" ? installed : running !== undefined && running.version !== "0.10.8" ? "0.10.8" : undefined;
10311
+ 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;
10305
10312
  if (updatedTo === undefined) throw error;
10306
10313
  const application = typeof running?.name === "string" ? running.name : "atomic";
10307
10314
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {