@bastani/atomic 0.10.6 → 0.10.7-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 (207) hide show
  1. package/CHANGELOG.md +21 -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 +26 -4
  7. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  8. package/dist/_shared/mode-shared-2QJSCUM6.js +3 -2
  9. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  10. package/dist/_shared/p1a-prewarm-UQY3X2UK.js +3 -3
  11. package/dist/_shared/sdk-WQIOHVKO.js +2 -2
  12. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  13. package/dist/_shared/sql-session-store-5FD3WBMZ.js +2 -2
  14. package/dist/_shared/startup-0-0-TYUFUOJZ.js +2 -2
  15. package/dist/_shared/startup-0-1-W2G2UY7R.js +2 -2
  16. package/dist/_shared/startup-0-2-SZGQIWHI.js +2 -2
  17. package/dist/_shared/startup-0-3-T4DVFYWX.js +2 -2
  18. package/dist/_shared/startup-0-4-HN5EB4K7.js +72 -11
  19. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +1 -1
  20. package/dist/_shared/startup-0-5-OHJNE6JH.js +2 -2
  21. package/dist/_shared/startup-10-0-TDQNBDDL.js +2 -2
  22. package/dist/_shared/startup-15-1-4S7FLMNG.js +34 -28
  23. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  24. package/dist/_shared/startup-8-0-34CBHPZH.js +2 -2
  25. package/dist/_shared/startup-8-1-SJW2GMAM.js +2 -2
  26. package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
  27. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  28. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  29. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  30. package/dist/builtin/intercom/package.json +1 -1
  31. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  32. package/dist/builtin/mcp/package.json +1 -1
  33. package/dist/builtin/subagents/CHANGELOG.md +11 -0
  34. package/dist/builtin/subagents/package.json +1 -1
  35. package/dist/builtin/subagents/skills/agent-browser/SKILL.md +3 -3
  36. package/dist/builtin/subagents/src/extension/index.bundle.mjs +316 -33
  37. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  38. package/dist/builtin/web-access/package.json +1 -1
  39. package/dist/cli/auth-cli.impl.js +3 -3
  40. package/dist/cli/auth-cli.js +3 -3
  41. package/dist/cli/blueprint-command.impl.js +3 -3
  42. package/dist/cli/blueprint-command.js +3 -3
  43. package/dist/cli/intercom-command.code.js +2 -2
  44. package/dist/cli/intercom-command.impl.js +3 -3
  45. package/dist/cli/intercom-command.js +3 -3
  46. package/dist/cli/list-models.impl.js +3 -3
  47. package/dist/cli/list-models.js +3 -3
  48. package/dist/cli/session-picker.impl.js +3 -3
  49. package/dist/cli/session-picker.js +3 -3
  50. package/dist/cli/startup-ui.impl.js +3 -3
  51. package/dist/cli/startup-ui.js +3 -3
  52. package/dist/cli/storage-command.impl.js +3 -3
  53. package/dist/cli/storage-command.js +3 -3
  54. package/dist/cli/storage-search-session.impl.js +3 -3
  55. package/dist/cli/storage-search-session.js +3 -3
  56. package/dist/cli/team-command.impl.js +3 -3
  57. package/dist/cli/team-command.js +3 -3
  58. package/dist/cli.js +2 -2
  59. package/dist/core/debug.impl.js +3 -3
  60. package/dist/core/debug.js +3 -3
  61. package/dist/core/export-html/card-projection.impl.js +3 -3
  62. package/dist/core/export-html/card-projection.js +3 -3
  63. package/dist/core/export-html/index.code.js +2 -2
  64. package/dist/core/export-html/index.impl.js +3 -3
  65. package/dist/core/export-html/index.js +3 -3
  66. package/dist/core/export-html/json-spans.impl.js +3 -3
  67. package/dist/core/export-html/json-spans.js +3 -3
  68. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  69. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  70. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  71. package/dist/core/export-html/tool-renderer.js +3 -3
  72. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  73. package/dist/core/extensions/jiti-loader.js +3 -3
  74. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  75. package/dist/core/extensions/jiti-static-loader.js +3 -3
  76. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  77. package/dist/core/extensions/loader-host-modules.js +3 -3
  78. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  79. package/dist/core/intercom-broker-control-host.js +3 -3
  80. package/dist/core/intercom-broker-control.code.js +2 -2
  81. package/dist/core/intercom-broker-control.impl.js +3 -3
  82. package/dist/core/intercom-broker-control.js +3 -3
  83. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  84. package/dist/core/package-manager-storage-adapters.js +3 -3
  85. package/dist/core/sdk.impl.js +3 -3
  86. package/dist/core/sdk.js +3 -3
  87. package/dist/core/session-manager-core.js +2 -2
  88. package/dist/core/session-manager-list.impl.js +3 -3
  89. package/dist/core/session-manager-list.js +3 -3
  90. package/dist/core/session-manager.impl.js +3 -3
  91. package/dist/core/session-manager.js +3 -3
  92. package/dist/core/session-storage.impl.js +3 -3
  93. package/dist/core/session-storage.js +3 -3
  94. package/dist/core/storage/index.js +2 -2
  95. package/dist/core/storage/node-sqlite-thread.js +2 -2
  96. package/dist/core/storage/node-sqlite.js +2 -2
  97. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  98. package/dist/core/storage/offline-snapshot-file.js +3 -3
  99. package/dist/core/storage/provider.js +2 -2
  100. package/dist/core/storage/selection.js +2 -2
  101. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  102. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  103. package/dist/core/storage/session/branch-fork-source.js +3 -3
  104. package/dist/core/storage/session/card-view.impl.js +3 -3
  105. package/dist/core/storage/session/card-view.js +3 -3
  106. package/dist/core/storage/session/child-reader.code.js +2 -2
  107. package/dist/core/storage/session/child-reader.impl.js +3 -3
  108. package/dist/core/storage/session/child-reader.js +3 -3
  109. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  110. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  111. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  112. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  113. package/dist/core/storage/session/expanded-child-details.js +3 -3
  114. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  115. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  116. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  117. package/dist/core/storage/session/fork-row-index.js +3 -3
  118. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  119. package/dist/core/storage/session/fork-staging.js +3 -3
  120. package/dist/core/storage/session/fork-window.code.js +2 -2
  121. package/dist/core/storage/session/fork-window.impl.js +3 -3
  122. package/dist/core/storage/session/fork-window.js +3 -3
  123. package/dist/core/storage/session/history-pages.impl.js +3 -3
  124. package/dist/core/storage/session/history-pages.js +3 -3
  125. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  126. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  127. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  128. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  129. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  130. package/dist/core/storage/session/memory-session-store.js +3 -3
  131. package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
  132. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  133. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  134. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  135. package/dist/core/storage/session/released-history-files.js +3 -3
  136. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  137. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  138. package/dist/core/storage/session/session-resume.impl.js +3 -3
  139. package/dist/core/storage/session/session-resume.js +3 -3
  140. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  141. package/dist/core/storage/session/snapshot-cut.js +3 -3
  142. package/dist/core/storage/session/snapshot-history.code.js +2 -2
  143. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  144. package/dist/core/storage/session/snapshot-history.js +3 -3
  145. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  146. package/dist/core/storage/session/sql-session-store.js +3 -3
  147. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  148. package/dist/core/storage/session/tree-outline.js +3 -3
  149. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  150. package/dist/core/storage/session/tree-presentation.js +3 -3
  151. package/dist/core/storage/storage-status.impl.js +3 -3
  152. package/dist/core/storage/storage-status.js +3 -3
  153. package/dist/core/storage/team.impl.js +3 -3
  154. package/dist/core/storage/team.js +3 -3
  155. package/dist/core/structured-output/index.impl.js +3 -3
  156. package/dist/core/structured-output/index.js +3 -3
  157. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  158. package/dist/core/tasks/task-completion-entry.js +3 -3
  159. package/dist/core/tasks/task-file-history.code.js +2 -2
  160. package/dist/core/tasks/task-file-history.impl.js +3 -3
  161. package/dist/core/tasks/task-file-history.js +3 -3
  162. package/dist/core/tasks/task-reference-archive.code.js +2 -2
  163. package/dist/core/tasks/task-reference-archive.js +3 -3
  164. package/dist/core/tasks/task-reference-identity.js +3 -3
  165. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  166. package/dist/core/tasks/task-reference-stream.js +3 -3
  167. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  168. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  169. package/dist/core/tasks/task-view-source.impl.js +3 -3
  170. package/dist/core/tasks/task-view-source.js +3 -3
  171. package/dist/core/tools/read-url.impl.js +3 -3
  172. package/dist/core/tools/read-url.js +3 -3
  173. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  174. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  175. package/dist/core/worktree-snapshot/errors.js +3 -3
  176. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  177. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  178. package/dist/extensions/codemode/execute.impl.js +3 -3
  179. package/dist/extensions/codemode/execute.js +3 -3
  180. package/dist/extensions/codemode/renderer.impl.js +3 -3
  181. package/dist/extensions/codemode/renderer.js +3 -3
  182. package/dist/extensions/mcp/cli.impl.js +3 -3
  183. package/dist/extensions/mcp/cli.js +3 -3
  184. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  185. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  186. package/dist/extensions/mcp/cli.lazy.js +3 -3
  187. package/dist/extensions/mcp/runtime.impl.js +3 -3
  188. package/dist/extensions/mcp/runtime.js +3 -3
  189. package/dist/main-first-time-setup.impl.js +3 -3
  190. package/dist/main-first-time-setup.js +3 -3
  191. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  192. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  193. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  194. package/dist/modes/interactive/components/tool-block.d.ts +2 -0
  195. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  196. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  197. package/dist/package-manager-cli.code.js +2 -2
  198. package/dist/package-manager-cli.impl.js +3 -3
  199. package/dist/package-manager-cli.js +3 -3
  200. package/dist/startup-files.json +1 -1
  201. package/dist/utils/startup-database-spare.impl.js +3 -3
  202. package/dist/utils/startup-database-spare.js +3 -3
  203. package/dist/utils/tools-manager.impl.js +3 -3
  204. package/dist/utils/tools-manager.js +3 -3
  205. package/docs/subagents/reference.md +1 -0
  206. package/docs/subagents.md +1 -0
  207. package/package.json +8 -8
@@ -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 = "8f5750cb776fb5fc190ee27f4f36c0";
207
+ const PREWARM_BUILD_STAMP = "4b1082fa82e3a62eccde8097f5db43";
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.6`;
571
+ const key = `${root.href}#0.10.7-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.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
599
+ const updatedTo = typeof installed === "string" && installed !== "0.10.7-alpha.1" ? installed : running !== undefined && running.version !== "0.10.7-alpha.1" ? "0.10.7-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}.`, {
@@ -7410,7 +7410,7 @@ function __atomicOnDemandFailed(error, feature) {
7410
7410
  return (async () => {
7411
7411
  const root = new URL("../", import.meta.url);
7412
7412
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
7413
- const key = `${root.href}#0.10.6`;
7413
+ const key = `${root.href}#0.10.7-alpha.1`;
7414
7414
  let release = releases.get(key);
7415
7415
  if (release === undefined) {
7416
7416
  const current = (async () => {
@@ -7438,7 +7438,7 @@ function __atomicOnDemandFailed(error, feature) {
7438
7438
  } catch {
7439
7439
  // No installation to read, as in a bundle of the package: the release the process runs decides.
7440
7440
  }
7441
- const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
7441
+ const updatedTo = typeof installed === "string" && installed !== "0.10.7-alpha.1" ? installed : running !== undefined && running.version !== "0.10.7-alpha.1" ? "0.10.7-alpha.1" : undefined;
7442
7442
  if (updatedTo === undefined) throw error;
7443
7443
  const application = typeof running?.name === "string" ? running.name : "atomic";
7444
7444
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -221,7 +221,7 @@ function __atomicOnDemandFailed(error, feature) {
221
221
  return (async () => {
222
222
  const root = new URL("../", import.meta.url);
223
223
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
224
- const key = `${root.href}#0.10.6`;
224
+ const key = `${root.href}#0.10.7-alpha.1`;
225
225
  let release = releases.get(key);
226
226
  if (release === undefined) {
227
227
  const current = (async () => {
@@ -249,7 +249,7 @@ function __atomicOnDemandFailed(error, feature) {
249
249
  } catch {
250
250
  // No installation to read, as in a bundle of the package: the release the process runs decides.
251
251
  }
252
- const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
252
+ const updatedTo = typeof installed === "string" && installed !== "0.10.7-alpha.1" ? installed : running !== undefined && running.version !== "0.10.7-alpha.1" ? "0.10.7-alpha.1" : undefined;
253
253
  if (updatedTo === undefined) throw error;
254
254
  const application = typeof running?.name === "string" ? running.name : "atomic";
255
255
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -2862,7 +2862,7 @@ function __atomicOnDemandFailed(error, feature) {
2862
2862
  return (async () => {
2863
2863
  const root = new URL("../", import.meta.url);
2864
2864
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
2865
- const key = `${root.href}#0.10.6`;
2865
+ const key = `${root.href}#0.10.7-alpha.1`;
2866
2866
  let release = releases.get(key);
2867
2867
  if (release === undefined) {
2868
2868
  const current = (async () => {
@@ -2890,7 +2890,7 @@ function __atomicOnDemandFailed(error, feature) {
2890
2890
  } catch {
2891
2891
  // No installation to read, as in a bundle of the package: the release the process runs decides.
2892
2892
  }
2893
- const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
2893
+ const updatedTo = typeof installed === "string" && installed !== "0.10.7-alpha.1" ? installed : running !== undefined && running.version !== "0.10.7-alpha.1" ? "0.10.7-alpha.1" : undefined;
2894
2894
  if (updatedTo === undefined) throw error;
2895
2895
  const application = typeof running?.name === "string" ? running.name : "atomic";
2896
2896
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -19250,7 +19250,7 @@ function __atomicOnDemandFailed(error, feature) {
19250
19250
  return (async () => {
19251
19251
  const root = new URL("../", import.meta.url);
19252
19252
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
19253
- const key = `${root.href}#0.10.6`;
19253
+ const key = `${root.href}#0.10.7-alpha.1`;
19254
19254
  let release = releases.get(key);
19255
19255
  if (release === undefined) {
19256
19256
  const current = (async () => {
@@ -19278,7 +19278,7 @@ function __atomicOnDemandFailed(error, feature) {
19278
19278
  } catch {
19279
19279
  // No installation to read, as in a bundle of the package: the release the process runs decides.
19280
19280
  }
19281
- const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
19281
+ const updatedTo = typeof installed === "string" && installed !== "0.10.7-alpha.1" ? installed : running !== undefined && running.version !== "0.10.7-alpha.1" ? "0.10.7-alpha.1" : undefined;
19282
19282
  if (updatedTo === undefined) throw error;
19283
19283
  const application = typeof running?.name === "string" ? running.name : "atomic";
19284
19284
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -19434,7 +19434,7 @@ function __atomicOnDemandFailed(error, feature) {
19434
19434
  return (async () => {
19435
19435
  const root = new URL("../", import.meta.url);
19436
19436
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
19437
- const key = `${root.href}#0.10.6`;
19437
+ const key = `${root.href}#0.10.7-alpha.1`;
19438
19438
  let release = releases.get(key);
19439
19439
  if (release === undefined) {
19440
19440
  const current = (async () => {
@@ -19462,7 +19462,7 @@ function __atomicOnDemandFailed(error, feature) {
19462
19462
  } catch {
19463
19463
  // No installation to read, as in a bundle of the package: the release the process runs decides.
19464
19464
  }
19465
- const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
19465
+ const updatedTo = typeof installed === "string" && installed !== "0.10.7-alpha.1" ? installed : running !== undefined && running.version !== "0.10.7-alpha.1" ? "0.10.7-alpha.1" : undefined;
19466
19466
  if (updatedTo === undefined) throw error;
19467
19467
  const application = typeof running?.name === "string" ? running.name : "atomic";
19468
19468
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -12131,7 +12131,7 @@ function __atomicOnDemandFailed(error, feature) {
12131
12131
  return (async () => {
12132
12132
  const root = new URL("../", import.meta.url);
12133
12133
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
12134
- const key = `${root.href}#0.10.6`;
12134
+ const key = `${root.href}#0.10.7-alpha.1`;
12135
12135
  let release = releases.get(key);
12136
12136
  if (release === undefined) {
12137
12137
  const current = (async () => {
@@ -12159,7 +12159,7 @@ function __atomicOnDemandFailed(error, feature) {
12159
12159
  } catch {
12160
12160
  // No installation to read, as in a bundle of the package: the release the process runs decides.
12161
12161
  }
12162
- const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
12162
+ const updatedTo = typeof installed === "string" && installed !== "0.10.7-alpha.1" ? installed : running !== undefined && running.version !== "0.10.7-alpha.1" ? "0.10.7-alpha.1" : undefined;
12163
12163
  if (updatedTo === undefined) throw error;
12164
12164
  const application = typeof running?.name === "string" ? running.name : "atomic";
12165
12165
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -5873,7 +5873,7 @@ function __atomicOnDemandFailed(error, feature) {
5873
5873
  return (async () => {
5874
5874
  const root = new URL("../", import.meta.url);
5875
5875
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
5876
- const key = `${root.href}#0.10.6`;
5876
+ const key = `${root.href}#0.10.7-alpha.1`;
5877
5877
  let release = releases.get(key);
5878
5878
  if (release === undefined) {
5879
5879
  const current = (async () => {
@@ -5901,7 +5901,7 @@ function __atomicOnDemandFailed(error, feature) {
5901
5901
  } catch {
5902
5902
  // No installation to read, as in a bundle of the package: the release the process runs decides.
5903
5903
  }
5904
- const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
5904
+ const updatedTo = typeof installed === "string" && installed !== "0.10.7-alpha.1" ? installed : running !== undefined && running.version !== "0.10.7-alpha.1" ? "0.10.7-alpha.1" : undefined;
5905
5905
  if (updatedTo === undefined) throw error;
5906
5906
  const application = typeof running?.name === "string" ? running.name : "atomic";
5907
5907
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -2,7 +2,7 @@ import { __commonJSMin } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, createChildProcessEnvironment, getAgentConfigPaths, getAgentDir, getBinDir, normalizePath, stripBom } from "./p0-cli-BB45ZQY6.js";
3
3
  import { DEFAULT_MAX_BYTES, DEFAULT_MAX_RESULT_SIZE_CHARS, GitUnavailableError, PERSISTED_OUTPUT_CLOSING_TAG, PERSISTED_OUTPUT_TAG, PREVIEW_SIZE_BYTES, ROW_INTENT_META, TASK_MARKS, TOOL_RESULTS_SUBDIR, VERBATIM_COMPACTION_STRATEGY, createConversationRegion, createGitEnvironment, flushable, getErrnoCode, isGitUnavailableError, many, minimatch, none, omitLegacyThinkingSections, raceWithAbortSignal, readLedger, redactCredentials, require_constants, require_identity, require_resolve_end, require_stringifyNumber, resolvePhysicalPath, resolvePhysicalPathAsync, rootKey, styleFieldTone, truncateTail } from "./startup-0-0-TYUFUOJZ.js";
4
4
  import { LEGACY_AZURE_PROVIDER, MultiSelectView, WorkspaceBindingError, WorkspaceCollectionError, WorkspaceConfigError, WorkspaceRestoreError, WorkspaceSnapshotError, WorkspaceTimeoutError, convertToLlm, createBranchSummaryMessage, createCustomMessage, crossTabLeftWidthWithDonation, diffWords, extensionRefreshRejection, fixUtf8Stream, gitInstallCommand, messageIsLlmVisible, messageStartsLlmUserTurn, normalizeProviderKeys, require_re, selectActivePreviewPaneIndex, unreadablePathError } from "./startup-0-1-W2G2UY7R.js";
5
- import { OVERLAY_ACTIVE_ROW_MARKER, TerminalTextSanitizer, getMarkdownTheme, keyHintIfBound, singleLineDisplayText, terminalDisplayText, theme } from "./p2-shell-main-B2WIALFD.js";
5
+ import { OVERLAY_ACTIVE_ROW_MARKER, TerminalTextSanitizer, getGlobalTheme, getMarkdownTheme, keyHintIfBound, singleLineDisplayText, terminalDisplayText, theme } from "./p2-shell-main-B2WIALFD.js";
6
6
  import { stripJsonComments } from "./p1-shared-RG5I5LJ6.js";
7
7
  import { nativeProcessCreationTime, nativeTerminateProcess, processStartTokenAsync, readProcessCreationTime, takeTakeoverMutexAsync, windowsStartTokenForCreationTime } from "./p1b-elig-ENCUPKKJ.js";
8
8
  import { windowsPowerShellEnvironment } from "./p1-elig-shell-WWRO3L2R.js";
@@ -2538,6 +2538,8 @@ var ToolBlockRecords = class {
2538
2538
  toolBlockKind = "records";
2539
2539
  records;
2540
2540
  options;
2541
+ cachedEnv;
2542
+ cachedRecords = [];
2541
2543
  isWorking() {
2542
2544
  return this.records.some((record) => typeof record !== "string" && componentNeedsWorkingClock(record));
2543
2545
  }
@@ -2546,20 +2548,79 @@ var ToolBlockRecords = class {
2546
2548
  this.options = options;
2547
2549
  }
2548
2550
  invalidate() {
2551
+ this.cachedEnv = void 0;
2552
+ this.cachedRecords = [];
2549
2553
  for (const record of this.records) if (typeof record !== "string") record.invalidate();
2550
2554
  }
2551
2555
  render(width) {
2552
2556
  if (width < 1) return [];
2557
+ const currentNoColor = noColor();
2558
+ const currentTheme = getGlobalTheme();
2559
+ if (!this.cachedEnv || this.cachedEnv.width !== width || this.cachedEnv.noColor !== currentNoColor || this.cachedEnv.theme !== currentTheme) {
2560
+ this.cachedEnv = {
2561
+ width,
2562
+ noColor: currentNoColor,
2563
+ theme: currentTheme
2564
+ };
2565
+ this.cachedRecords = [];
2566
+ }
2553
2567
  const contentWidth = Math.max(1, width - 5);
2554
- return this.records.flatMap((record) => {
2555
- const component = typeof record === "string" ? new Text(theme.fg("toolOutput", record), 0, 0) : record;
2556
- const lines = component.render(contentWidth);
2557
- if (this.options.preserveConnectors && typeof record !== "string" && stripTerminalSequences(lines[0] ?? "").startsWith(" ⎿ ") && lines.slice(1).every((line) => line.trim() === "" || stripTerminalSequences(line).startsWith(" "))) return component.render(width).map((line) => truncateToWidth(line, width, "…"));
2558
- return lines.map((line, index) => {
2559
- const prefix = index === 0 ? DETAIL_FIRST_PREFIX : DETAIL_PREFIX;
2560
- return truncateToWidth(`${theme.fg("dim", prefix)}${line.trimEnd()}`, width, "…");
2568
+ const out = [];
2569
+ for (let recordIndex = 0; recordIndex < this.records.length; recordIndex++) {
2570
+ const record = this.records[recordIndex];
2571
+ const prev = this.cachedRecords[recordIndex];
2572
+ if (typeof record === "string") {
2573
+ if (prev) {
2574
+ for (const line of prev.prefixed) out.push(line);
2575
+ continue;
2576
+ }
2577
+ const lines = new Text(theme.fg("toolOutput", record), 0, 0).render(contentWidth);
2578
+ const prefixed = lines.map((line, index) => {
2579
+ const prefix = index === 0 ? DETAIL_FIRST_PREFIX : DETAIL_PREFIX;
2580
+ return truncateToWidth(`${theme.fg("dim", prefix)}${line.trimEnd()}`, width, "…");
2581
+ });
2582
+ this.cachedRecords[recordIndex] = {
2583
+ lines,
2584
+ prefixed,
2585
+ lineCache: /* @__PURE__ */ new Map()
2586
+ };
2587
+ for (const line of prefixed) out.push(line);
2588
+ continue;
2589
+ }
2590
+ const lines = record.render(contentWidth);
2591
+ if (prev && prev.lines === lines) {
2592
+ for (const line of prev.prefixed) out.push(line);
2593
+ continue;
2594
+ }
2595
+ if (this.options.preserveConnectors && stripTerminalSequences(lines[0] ?? "").startsWith(" ⎿ ") && lines.slice(1).every((line) => line.trim() === "" || stripTerminalSequences(line).startsWith(" "))) {
2596
+ const prefixed = record.render(width).map((line) => truncateToWidth(line, width, "…"));
2597
+ this.cachedRecords[recordIndex] = {
2598
+ lines,
2599
+ prefixed,
2600
+ lineCache: /* @__PURE__ */ new Map()
2601
+ };
2602
+ for (const line of prefixed) out.push(line);
2603
+ continue;
2604
+ }
2605
+ const prevLineCache = prev?.lineCache;
2606
+ const nextLineCache = /* @__PURE__ */ new Map();
2607
+ const dimFirst = theme.fg("dim", DETAIL_FIRST_PREFIX);
2608
+ const dimCont = theme.fg("dim", DETAIL_PREFIX);
2609
+ const prefixed = lines.map((line, index) => {
2610
+ if (index === 0) return truncateToWidth(`${dimFirst}${line.trimEnd()}`, width, "…");
2611
+ let formatted = prevLineCache?.get(line);
2612
+ if (formatted === void 0) formatted = truncateToWidth(`${dimCont}${line.trimEnd()}`, width, "…");
2613
+ nextLineCache.set(line, formatted);
2614
+ return formatted;
2561
2615
  });
2562
- });
2616
+ this.cachedRecords[recordIndex] = {
2617
+ lines,
2618
+ prefixed,
2619
+ lineCache: nextLineCache
2620
+ };
2621
+ for (const line of prefixed) out.push(line);
2622
+ }
2623
+ return out;
2563
2624
  }
2564
2625
  };
2565
2626
  var ToolBlock = class {
@@ -5985,7 +6046,7 @@ function __atomicOnDemandFailed(error, feature) {
5985
6046
  return (async () => {
5986
6047
  const root = new URL("../", import.meta.url);
5987
6048
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
5988
- const key = `${root.href}#0.10.6`;
6049
+ const key = `${root.href}#0.10.7-alpha.1`;
5989
6050
  let release = releases.get(key);
5990
6051
  if (release === undefined) {
5991
6052
  const current = (async () => {
@@ -6013,7 +6074,7 @@ function __atomicOnDemandFailed(error, feature) {
6013
6074
  } catch {
6014
6075
  // No installation to read, as in a bundle of the package: the release the process runs decides.
6015
6076
  }
6016
- const updatedTo = typeof installed === "string" && installed !== "0.10.6" ? installed : running !== undefined && running.version !== "0.10.6" ? "0.10.6" : undefined;
6077
+ const updatedTo = typeof installed === "string" && installed !== "0.10.7-alpha.1" ? installed : running !== undefined && running.version !== "0.10.7-alpha.1" ? "0.10.7-alpha.1" : undefined;
6017
6078
  if (updatedTo === undefined) throw error;
6018
6079
  const application = typeof running?.name === "string" ? running.name : "atomic";
6019
6080
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {