dal-code 1.0.15 → 1.0.17

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 (2944) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/bun/cli.js +1 -4
  3. package/dist/bun/restore-sandbox-env.js +1 -36
  4. package/dist/bun/runtime-setup.js +1 -9
  5. package/dist/bun/sandbox-env-setup.js +1 -4
  6. package/dist/cli/args.js +50 -299
  7. package/dist/cli/auth-check.js +1 -50
  8. package/dist/cli/auth-command.js +2 -99
  9. package/dist/cli/config-selector.js +1 -32
  10. package/dist/cli/credential-print.js +1 -76
  11. package/dist/cli/file-processor.js +8 -71
  12. package/dist/cli/initial-message.js +1 -22
  13. package/dist/cli/list-models.js +2 -98
  14. package/dist/cli/project-trust.js +2 -49
  15. package/dist/cli/session-picker.js +1 -36
  16. package/dist/cli/setup.js +1 -12
  17. package/dist/cli/startup-ui.js +1 -185
  18. package/dist/cli.js +1 -5
  19. package/dist/config.js +1 -504
  20. package/dist/core/agent-session-runtime.js +1 -317
  21. package/dist/core/agent-session-services.js +1 -207
  22. package/dist/core/agent-session.js +14 -2894
  23. package/dist/core/auth-guidance.js +5 -27
  24. package/dist/core/auth-storage.js +1 -426
  25. package/dist/core/bash-executor.js +1 -111
  26. package/dist/core/bug-report-upload.js +1 -0
  27. package/dist/core/bug-report.js +27 -0
  28. package/dist/core/cache-stats.js +1 -101
  29. package/dist/core/cache-warmer.js +1 -0
  30. package/dist/core/compaction/branch-summarization.js +9 -223
  31. package/dist/core/compaction/compaction.js +36 -599
  32. package/dist/core/compaction/index.js +1 -7
  33. package/dist/core/compaction/utils.js +17 -141
  34. package/dist/core/crash-log.js +4 -0
  35. package/dist/core/defaults.js +1 -11
  36. package/dist/core/diagnostics.js +0 -2
  37. package/dist/core/empty-assistant.js +1 -27
  38. package/dist/core/event-bus.js +1 -25
  39. package/dist/core/exec.js +1 -75
  40. package/dist/core/experimental.js +1 -8
  41. package/dist/core/export-html/ansi-to-html.js +1 -249
  42. package/dist/core/export-html/index.js +2 -226
  43. package/dist/core/export-html/template.js +50 -1842
  44. package/dist/core/export-html/tool-renderer.js +1 -108
  45. package/dist/core/extensions/api-version.js +1 -17
  46. package/dist/core/extensions/index.js +1 -9
  47. package/dist/core/extensions/jiti-loader.js +1 -0
  48. package/dist/core/extensions/jiti-static-loader.js +1 -0
  49. package/dist/core/extensions/loader.js +1 -665
  50. package/dist/core/extensions/permission-surface.js +1 -33
  51. package/dist/core/extensions/runner.js +1 -1013
  52. package/dist/core/extensions/types.js +1 -60
  53. package/dist/core/extensions/virtual-modules.js +1 -0
  54. package/dist/core/extensions/wrapper.js +1 -41
  55. package/dist/core/footer-data-provider.js +1 -338
  56. package/dist/core/house-providers.js +1 -96
  57. package/dist/core/http-dispatcher.js +1 -98
  58. package/dist/core/index.js +1 -13
  59. package/dist/core/keybindings.js +1 -339
  60. package/dist/core/messages.js +13 -119
  61. package/dist/core/model-config.js +9 -264
  62. package/dist/core/model-registry.js +1 -107
  63. package/dist/core/model-resolver.js +1 -613
  64. package/dist/core/model-runtime.js +3 -663
  65. package/dist/core/models-store.js +1 -115
  66. package/dist/core/output-guard.js +1 -89
  67. package/dist/core/package-manager.js +3 -2241
  68. package/dist/core/pi-manifest.js +1 -83
  69. package/dist/core/project-map.js +5 -268
  70. package/dist/core/project-trust.js +4 -59
  71. package/dist/core/prompt-templates.js +2 -236
  72. package/dist/core/provider-attribution.js +1 -72
  73. package/dist/core/provider-composer.js +1 -409
  74. package/dist/core/radius.js +1 -2
  75. package/dist/core/remote-catalog-provider.js +1 -122
  76. package/dist/core/resolve-config-value.js +1 -247
  77. package/dist/core/resource-loader.js +1 -885
  78. package/dist/core/runtime-credentials.js +1 -39
  79. package/dist/core/sdk.js +1 -290
  80. package/dist/core/session-cwd.js +7 -38
  81. package/dist/core/session-export.js +3 -32
  82. package/dist/core/session-manager.js +13 -1398
  83. package/dist/core/settings-diagnostics.js +1 -21
  84. package/dist/core/settings-manager.js +1 -1023
  85. package/dist/core/skills.js +4 -407
  86. package/dist/core/slash-commands.js +1 -29
  87. package/dist/core/source-info.js +1 -19
  88. package/dist/core/system-prompt.js +16 -116
  89. package/dist/core/telemetry.js +1 -9
  90. package/dist/core/timings.js +3 -41
  91. package/dist/core/tools/bash.js +19 -509
  92. package/dist/core/tools/edit-diff.js +16 -421
  93. package/dist/core/tools/edit.js +3 -327
  94. package/dist/core/tools/file-mutation-queue.js +1 -52
  95. package/dist/core/tools/find.js +13 -306
  96. package/dist/core/tools/grep.js +13 -312
  97. package/dist/core/tools/index.js +1 -129
  98. package/dist/core/tools/ls.js +9 -175
  99. package/dist/core/tools/output-accumulator.js +4 -184
  100. package/dist/core/tools/path-utils.js +1 -99
  101. package/dist/core/tools/powershell.js +2 -39
  102. package/dist/core/tools/read.js +22 -279
  103. package/dist/core/tools/render-utils.js +6 -113
  104. package/dist/core/tools/renderers/bash.js +9 -167
  105. package/dist/core/tools/renderers/edit.js +2 -167
  106. package/dist/core/tools/renderers/find.js +6 -64
  107. package/dist/core/tools/renderers/grep.js +6 -69
  108. package/dist/core/tools/renderers/index.js +1 -47
  109. package/dist/core/tools/renderers/ls.js +6 -58
  110. package/dist/core/tools/renderers/read.js +8 -129
  111. package/dist/core/tools/renderers/write.js +13 -153
  112. package/dist/core/tools/tool-definition-wrapper.js +1 -36
  113. package/dist/core/tools/truncate.js +5 -215
  114. package/dist/core/tools/write.js +14 -208
  115. package/dist/core/trust-manager.js +2 -210
  116. package/dist/core/usage-totals.js +1 -52
  117. package/dist/dal/builtins.js +3 -128
  118. package/dist/dal/cli-npm-hook.js +1 -0
  119. package/dist/dal/i18n.js +1 -2
  120. package/dist/extensions/index.js +1 -3
  121. package/dist/extensions/llama/client.js +9 -313
  122. package/dist/extensions/llama/huggingface.js +1 -141
  123. package/dist/extensions/llama/index.js +8 -219
  124. package/dist/extensions/llama/provider.js +1 -161
  125. package/dist/extensions/llama/ui.js +5 -416
  126. package/dist/index.js +1 -48
  127. package/dist/main.js +4 -812
  128. package/dist/migrations.js +5 -282
  129. package/dist/modes/acp/acp-mapping.js +2 -131
  130. package/dist/modes/acp/acp-mode.js +1 -131
  131. package/dist/modes/acp/acp-stream.js +1 -21
  132. package/dist/modes/index.js +1 -9
  133. package/dist/modes/interactive/bug-report.js +8 -0
  134. package/dist/modes/interactive/chat-viewport.js +1 -28
  135. package/dist/modes/interactive/components/armin.js +1 -333
  136. package/dist/modes/interactive/components/assistant-message.js +3 -204
  137. package/dist/modes/interactive/components/bash-execution.js +11 -159
  138. package/dist/modes/interactive/components/bordered-loader.js +1 -55
  139. package/dist/modes/interactive/components/branch-summary-message.js +3 -39
  140. package/dist/modes/interactive/components/compaction-summary-message.js +3 -41
  141. package/dist/modes/interactive/components/config-selector.js +1 -781
  142. package/dist/modes/interactive/components/countdown-timer.js +1 -33
  143. package/dist/modes/interactive/components/custom-editor.js +1 -115
  144. package/dist/modes/interactive/components/custom-entry.js +1 -52
  145. package/dist/modes/interactive/components/custom-message.js +3 -88
  146. package/dist/modes/interactive/components/dal-brand.js +3 -202
  147. package/dist/modes/interactive/components/daxnuts.js +1 -140
  148. package/dist/modes/interactive/components/diff.js +3 -133
  149. package/dist/modes/interactive/components/dynamic-border.js +1 -45
  150. package/dist/modes/interactive/components/earendil-announcement.js +1 -40
  151. package/dist/modes/interactive/components/extension-editor.js +1 -96
  152. package/dist/modes/interactive/components/extension-input.js +2 -61
  153. package/dist/modes/interactive/components/extension-selector.js +2 -83
  154. package/dist/modes/interactive/components/first-time-setup.js +6 -103
  155. package/dist/modes/interactive/components/footer.js +1 -208
  156. package/dist/modes/interactive/components/index.js +1 -35
  157. package/dist/modes/interactive/components/keybinding-hints.js +1 -36
  158. package/dist/modes/interactive/components/login-dialog.js +1 -184
  159. package/dist/modes/interactive/components/markdown-transform.js +1 -19
  160. package/dist/modes/interactive/components/mermaid.js +5 -75
  161. package/dist/modes/interactive/components/model-selector.js +2 -359
  162. package/dist/modes/interactive/components/oauth-selector.js +1 -161
  163. package/dist/modes/interactive/components/scoped-models-selector.js +1 -325
  164. package/dist/modes/interactive/components/session-selector-search.js +1 -155
  165. package/dist/modes/interactive/components/session-selector.js +2 -867
  166. package/dist/modes/interactive/components/settings-selector.js +1 -717
  167. package/dist/modes/interactive/components/settings-submenu.js +1 -165
  168. package/dist/modes/interactive/components/show-images-selector.js +1 -37
  169. package/dist/modes/interactive/components/skill-invocation-message.js +3 -45
  170. package/dist/modes/interactive/components/status-indicator.js +1 -121
  171. package/dist/modes/interactive/components/theme-selector.js +1 -48
  172. package/dist/modes/interactive/components/thinking-selector.js +1 -102
  173. package/dist/modes/interactive/components/tool-execution.js +6 -613
  174. package/dist/modes/interactive/components/tree-selector.js +1 -1245
  175. package/dist/modes/interactive/components/trust-selector.js +2 -91
  176. package/dist/modes/interactive/components/user-message-selector.js +1 -114
  177. package/dist/modes/interactive/components/user-message.js +1 -79
  178. package/dist/modes/interactive/components/visual-truncate.js +1 -33
  179. package/dist/modes/interactive/external-editor.js +3 -45
  180. package/dist/modes/interactive/interactive-mode.js +98 -5876
  181. package/dist/modes/interactive/model-catalog-refresh.js +1 -34
  182. package/dist/modes/interactive/model-search.js +1 -15
  183. package/dist/modes/interactive/session-share.js +2 -185
  184. package/dist/modes/interactive/theme/theme-controller.js +2 -130
  185. package/dist/modes/interactive/theme/theme-json.js +12 -130
  186. package/dist/modes/interactive/theme/theme.js +7 -992
  187. package/dist/modes/interactive/tui-renderer.js +1 -66
  188. package/dist/modes/json-event.js +1 -29
  189. package/dist/modes/print-mode.js +4 -142
  190. package/dist/modes/rpc/jsonl.js +3 -49
  191. package/dist/modes/rpc/rpc-client.js +1 -555
  192. package/dist/modes/rpc/rpc-mode.js +1 -674
  193. package/dist/modes/rpc/rpc-types.js +0 -8
  194. package/dist/node_modules/@dalcode/dal-bridge/package.json +6 -6
  195. package/dist/node_modules/@dalcode/dal-bridge/src/client.js +1 -0
  196. package/dist/node_modules/@dalcode/dal-bridge/src/index.js +1 -0
  197. package/dist/node_modules/@dalcode/dal-gateway/package.json +5 -5
  198. package/dist/node_modules/@dalcode/dal-gateway/src/index.js +1 -0
  199. package/dist/node_modules/@dalcode/dal-guard/package.json +7 -7
  200. package/dist/node_modules/@dalcode/dal-guard/src/credentials.js +1 -0
  201. package/dist/node_modules/@dalcode/dal-guard/src/index.js +1 -0
  202. package/dist/node_modules/@dalcode/dal-halo/package.json +4 -4
  203. package/dist/node_modules/@dalcode/dal-halo/src/halo-client.js +1 -0
  204. package/dist/node_modules/@dalcode/dal-halo/src/index.js +2 -0
  205. package/dist/node_modules/@dalcode/dal-lang/package.json +6 -6
  206. package/dist/node_modules/@dalcode/dal-lang/src/index.js +1 -0
  207. package/dist/node_modules/@dalcode/dal-lsp/package.json +8 -8
  208. package/dist/node_modules/@dalcode/dal-lsp/src/client.js +5 -0
  209. package/dist/node_modules/@dalcode/dal-lsp/src/config.js +1 -0
  210. package/dist/node_modules/@dalcode/dal-lsp/src/format.js +7 -0
  211. package/dist/node_modules/@dalcode/dal-lsp/src/index.js +7 -0
  212. package/dist/node_modules/@dalcode/dal-lsp/src/types.js +0 -0
  213. package/dist/node_modules/@dalcode/dal-mcp/package.json +17 -14
  214. package/dist/node_modules/@dalcode/dal-mcp/src/account-layer.js +1 -0
  215. package/dist/node_modules/@dalcode/dal-mcp/src/add-wizard.js +2 -0
  216. package/dist/node_modules/@dalcode/dal-mcp/src/command-parser.js +7 -0
  217. package/dist/node_modules/@dalcode/dal-mcp/src/config-edit.js +2 -0
  218. package/dist/node_modules/@dalcode/dal-mcp/src/config.js +1 -0
  219. package/dist/node_modules/@dalcode/dal-mcp/src/http-client.js +1 -0
  220. package/dist/node_modules/@dalcode/dal-mcp/src/import.js +3 -0
  221. package/dist/node_modules/@dalcode/dal-mcp/src/index.js +23 -0
  222. package/dist/node_modules/@dalcode/dal-mcp/src/proxy.js +6 -0
  223. package/dist/node_modules/@dalcode/dal-mcp/src/report.js +1 -0
  224. package/dist/node_modules/@dalcode/dal-mcp/src/stdio-client.js +5 -0
  225. package/dist/node_modules/@dalcode/dal-mcp/src/toml.js +11 -0
  226. package/dist/node_modules/@dalcode/dal-mcp/src/types.js +1 -0
  227. package/dist/node_modules/@dalcode/dal-office/package.json +5 -5
  228. package/dist/node_modules/@dalcode/dal-office/src/extract/csv.js +3 -0
  229. package/dist/node_modules/@dalcode/dal-office/src/extract/index.js +2 -0
  230. package/dist/node_modules/@dalcode/dal-office/src/extract/ooxml.js +4 -0
  231. package/dist/node_modules/@dalcode/dal-office/src/extract/pdf.js +5 -0
  232. package/dist/node_modules/@dalcode/dal-office/src/index.js +1 -0
  233. package/dist/node_modules/@dalcode/dal-office/src/paths.js +1 -0
  234. package/dist/node_modules/@dalcode/dal-office/src/render/chart.js +2 -0
  235. package/dist/node_modules/@dalcode/dal-office/src/render/docx.js +1 -0
  236. package/dist/node_modules/@dalcode/dal-office/src/render/pptx.js +2 -0
  237. package/dist/node_modules/@dalcode/dal-office/src/render/xlsx.js +1 -0
  238. package/dist/node_modules/@dalcode/dal-office/src/scenes.js +1 -0
  239. package/dist/node_modules/@dalcode/dal-office/src/scratchpad.js +1 -0
  240. package/dist/node_modules/@dalcode/dal-office/src/themes.js +1 -0
  241. package/dist/node_modules/@dalcode/dal-office/src/tools/chart-generate.js +4 -0
  242. package/dist/node_modules/@dalcode/dal-office/src/tools/doc-generate.js +3 -0
  243. package/dist/node_modules/@dalcode/dal-office/src/tools/drawio-generate.js +4 -0
  244. package/dist/node_modules/@dalcode/dal-office/src/tools/md-generate.js +3 -0
  245. package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-generate.js +3 -0
  246. package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-plan.js +2 -0
  247. package/dist/node_modules/@dalcode/dal-office/src/tools/read-file.js +3 -0
  248. package/dist/node_modules/@dalcode/dal-office/src/tools/shared.js +1 -0
  249. package/dist/node_modules/@dalcode/dal-office/src/tools/sheet-generate.js +3 -0
  250. package/dist/node_modules/@dalcode/dal-office/src/truncate.js +6 -0
  251. package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +1 -596
  252. package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.js +1 -2
  253. package/dist/node_modules/@dalcode/dal-pi-kit/package.json +3 -3
  254. package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +1 -0
  255. package/dist/node_modules/@dalcode/dal-pi-kit/src/index.js +1 -0
  256. package/dist/node_modules/@dalcode/dal-plugins/LICENSE +21 -0
  257. package/dist/node_modules/@dalcode/dal-plugins/package.json +35 -0
  258. package/dist/node_modules/@dalcode/dal-plugins/src/brand.js +1 -0
  259. package/dist/node_modules/@dalcode/dal-plugins/src/cli-hook.js +1 -0
  260. package/dist/node_modules/@dalcode/dal-plugins/src/compat.js +2 -0
  261. package/dist/node_modules/@dalcode/dal-plugins/src/index.js +11 -0
  262. package/dist/node_modules/@dalcode/dal-plugins/src/manage.js +10 -0
  263. package/dist/node_modules/@dalcode/dal-plugins/src/npm-hook.js +1 -0
  264. package/dist/node_modules/@dalcode/dal-plugins/src/registry.js +2 -0
  265. package/dist/node_modules/@dalcode/dal-plugins/src/settings.js +1 -0
  266. package/dist/node_modules/@dalcode/dal-plugins/src/state.js +2 -0
  267. package/dist/node_modules/@dalcode/dal-plugins/src/tools.js +1 -0
  268. package/dist/node_modules/@dalcode/dal-router/package.json +14 -12
  269. package/dist/node_modules/@dalcode/dal-router/src/assist.js +2 -0
  270. package/dist/node_modules/@dalcode/dal-router/src/commands.js +8 -0
  271. package/dist/node_modules/@dalcode/dal-router/src/config.js +2 -0
  272. package/dist/node_modules/@dalcode/dal-router/src/index.js +3 -0
  273. package/dist/node_modules/@dalcode/dal-router/src/jev.js +5 -0
  274. package/dist/node_modules/@dalcode/dal-router/src/pool.js +1 -0
  275. package/dist/node_modules/@dalcode/dal-router/src/router.js +1 -0
  276. package/dist/node_modules/@dalcode/dal-router/src/runtime.js +1 -0
  277. package/dist/node_modules/@dalcode/dal-router/src/subagent.js +1 -0
  278. package/dist/node_modules/@dalcode/dal-skills/package.json +8 -8
  279. package/dist/node_modules/@dalcode/dal-skills/src/client.js +1 -0
  280. package/dist/node_modules/@dalcode/dal-skills/src/discover.js +4 -0
  281. package/dist/node_modules/@dalcode/dal-skills/src/index.js +13 -0
  282. package/dist/node_modules/@dalcode/dal-skills/src/install.js +3 -0
  283. package/dist/node_modules/@dalcode/dal-skills/src/manage.js +26 -0
  284. package/dist/node_modules/@dalcode/dal-skills/src/packages.js +3 -0
  285. package/dist/node_modules/@dalcode/dal-skills/src/search.js +1 -0
  286. package/dist/node_modules/@dalcode/dal-subagent/package.json +8 -8
  287. package/dist/node_modules/@dalcode/dal-subagent/src/agents.js +2 -0
  288. package/dist/node_modules/@dalcode/dal-subagent/src/index.js +10 -0
  289. package/dist/node_modules/@dalcode/dal-telemetry/package.json +8 -8
  290. package/dist/node_modules/@dalcode/dal-telemetry/src/config.js +2 -0
  291. package/dist/node_modules/@dalcode/dal-telemetry/src/index.js +3 -0
  292. package/dist/node_modules/@dalcode/dal-telemetry/src/redact.js +2 -0
  293. package/dist/node_modules/@dalcode/dal-telemetry/src/reporter.js +1 -0
  294. package/dist/node_modules/@dalcode/dal-tool-catalog/LICENSE +21 -0
  295. package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +32 -0
  296. package/dist/node_modules/@dalcode/dal-tool-catalog/src/groups.js +1 -0
  297. package/dist/node_modules/@dalcode/dal-tool-catalog/src/index.js +5 -0
  298. package/dist/node_modules/@dalcode/dal-web/LICENSE +21 -0
  299. package/dist/node_modules/@dalcode/dal-web/package.json +37 -0
  300. package/dist/node_modules/@dalcode/dal-web/src/bing.js +1 -0
  301. package/dist/node_modules/@dalcode/dal-web/src/config.js +2 -0
  302. package/dist/node_modules/@dalcode/dal-web/src/fetch.js +8 -0
  303. package/dist/node_modules/@dalcode/dal-web/src/html.js +17 -0
  304. package/dist/node_modules/@dalcode/dal-web/src/index.js +6 -0
  305. package/dist/node_modules/@dalcode/dal-web/src/providers.js +1 -0
  306. package/dist/node_modules/@dalcode/dal-web/src/search.js +7 -0
  307. package/dist/node_modules/@dalcode/dal-web/src/ssrf.js +1 -0
  308. package/dist/node_modules/@dalcode/dal-web/src/types.js +0 -0
  309. package/dist/node_modules/@dalcode/dal-workflow/LICENSE +21 -0
  310. package/dist/node_modules/@dalcode/dal-workflow/package.json +31 -0
  311. package/dist/node_modules/@dalcode/dal-workflow/src/index.js +5 -0
  312. package/dist/node_modules/@dalcode/dal-workflow/src/notify.js +1 -0
  313. package/dist/node_modules/@dalcode/dal-workflow/src/plan-mode.js +20 -0
  314. package/dist/node_modules/@dalcode/dal-workflow/src/plan-utils.js +3 -0
  315. package/dist/node_modules/@dalcode/dal-workflow/src/shared.js +2 -0
  316. package/dist/node_modules/@dalcode/dal-workflow/src/todo.js +2 -0
  317. package/dist/node_modules/@dalcode/deepailab/package.json +9 -9
  318. package/dist/node_modules/@dalcode/deepailab/src/cache.js +1 -0
  319. package/dist/node_modules/@dalcode/deepailab/src/index.js +3 -0
  320. package/dist/node_modules/@dalcode/deepailab/src/model-defaults.js +1 -0
  321. package/dist/node_modules/@dalcode/deepailab/src/oidc.js +1 -0
  322. package/dist/node_modules/@earendil-works/chord/README.md +31 -25
  323. package/dist/node_modules/@earendil-works/chord/dist/api.js +1 -72
  324. package/dist/node_modules/@earendil-works/chord/dist/bundler.js +1 -3
  325. package/dist/node_modules/@earendil-works/chord/dist/context/index.js +1 -97
  326. package/dist/node_modules/@earendil-works/chord/dist/delta/index.js +1 -1906
  327. package/dist/node_modules/@earendil-works/chord/dist/facets/host.js +1 -763
  328. package/dist/node_modules/@earendil-works/chord/dist/facets/loader.js +1 -5
  329. package/dist/node_modules/@earendil-works/chord/dist/index.js +1 -10
  330. package/dist/node_modules/@earendil-works/chord/dist/json.js +1 -57
  331. package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.js +2 -377
  332. package/dist/node_modules/@earendil-works/chord/dist/node/bundle.js +4 -183
  333. package/dist/node_modules/@earendil-works/chord/dist/node/manifest.js +1 -6
  334. package/dist/node_modules/@earendil-works/chord/dist/node/package.js +1 -199
  335. package/dist/node_modules/@earendil-works/chord/dist/node.js +1 -3
  336. package/dist/node_modules/@earendil-works/chord/dist/services/consumer.js +1 -537
  337. package/dist/node_modules/@earendil-works/chord/dist/services/errors.js +1 -22
  338. package/dist/node_modules/@earendil-works/chord/dist/services/handle.js +1 -99
  339. package/dist/node_modules/@earendil-works/chord/dist/services/instances.js +1 -137
  340. package/dist/node_modules/@earendil-works/chord/dist/services/loopback.js +1 -15
  341. package/dist/node_modules/@earendil-works/chord/dist/services/provider.js +1 -472
  342. package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.js +1 -115
  343. package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.js +1 -10
  344. package/dist/node_modules/@earendil-works/chord/dist/services/state.js +1 -124
  345. package/dist/node_modules/@earendil-works/chord/dist/services/wire.js +1 -173
  346. package/dist/node_modules/@earendil-works/chord/dist/state/diff.js +1 -0
  347. package/dist/node_modules/@earendil-works/chord/dist/state/draft.js +1 -0
  348. package/dist/node_modules/@earendil-works/chord/dist/state/value.js +1 -0
  349. package/dist/node_modules/@earendil-works/chord/dist/types.js +0 -2
  350. package/dist/node_modules/@earendil-works/chord/package.json +2 -2
  351. package/dist/node_modules/@earendil-works/chord/src/delta/README.md +9 -5
  352. package/dist/node_modules/@earendil-works/pi-agent-core/README.md +83 -32
  353. package/dist/node_modules/@earendil-works/pi-agent-core/dist/__probe.js +1 -0
  354. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +1 -586
  355. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.js +1 -422
  356. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +1 -6
  357. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +9 -148
  358. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +26 -482
  359. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js +16 -120
  360. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js +1 -27
  361. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js +1 -13
  362. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +10 -794
  363. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js +1 -250
  364. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js +1 -82
  365. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js +1 -49
  366. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js +1 -121
  367. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js +1 -406
  368. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js +13 -98
  369. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/bash.js +1 -0
  370. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/bounded.js +1 -0
  371. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/chord.js +1 -0
  372. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/context.js +1 -0
  373. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/harness.js +1 -0
  374. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/hooks.js +1 -0
  375. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/index.js +1 -0
  376. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/jsonl.js +4 -0
  377. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/collapse.js +3 -0
  378. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/entries.js +1 -0
  379. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/frames.js +1 -0
  380. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/generation.js +1 -0
  381. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/job.js +1 -0
  382. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/plugin.js +1 -0
  383. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/post-tools.js +1 -0
  384. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/task-api.js +1 -0
  385. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/tool.js +3 -0
  386. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/membrane.js +1 -0
  387. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/memory.js +1 -0
  388. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/scheduler.js +1 -0
  389. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/session.js +1 -0
  390. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/system.js +8 -0
  391. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/types.js +1 -0
  392. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/view.js +1 -0
  393. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js +5 -225
  394. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js +1 -81
  395. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js +1 -170
  396. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js +1 -133
  397. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js +1 -179
  398. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js +1 -205
  399. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js +1 -140
  400. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js +1 -85
  401. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js +1 -394
  402. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js +1 -37
  403. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js +1 -929
  404. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js +1 -49
  405. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js +1 -244
  406. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js +1 -449
  407. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js +1 -93
  408. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js +1 -311
  409. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js +1 -2
  410. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js +1 -1575
  411. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js +1 -66
  412. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js +1 -240
  413. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js +1 -117
  414. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js +1 -72
  415. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js +1 -61
  416. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js +1 -57
  417. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js +1 -49
  418. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js +1 -22
  419. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js +1 -127
  420. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js +1 -216
  421. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js +1 -9
  422. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js +1 -45
  423. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/fork.js +1 -0
  424. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js +1 -4
  425. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/io.js +3 -0
  426. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js +1 -383
  427. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js +1 -285
  428. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js +8 -274
  429. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js +1 -3
  430. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js +1 -374
  431. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js +1 -21
  432. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +1 -361
  433. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js +1 -24
  434. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js +1 -127
  435. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js +1 -114
  436. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js +1 -590
  437. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js +1 -600
  438. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js +1 -100
  439. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js +1 -9
  440. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js +1 -16
  441. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js +1 -41
  442. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.js +0 -2
  443. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js +1 -9
  444. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js +1 -81
  445. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js +10 -326
  446. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js +2 -30
  447. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js +1 -527
  448. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js +12 -105
  449. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.js +16 -386
  450. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js +1 -108
  451. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js +1 -46
  452. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.js +1 -106
  453. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.js +1 -5
  454. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js +1 -26
  455. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js +14 -108
  456. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.js +0 -2
  457. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js +1 -31
  458. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +1 -75
  459. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js +1 -79
  460. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js +5 -217
  461. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +1 -71
  462. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js +5 -296
  463. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js +1 -33
  464. package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.js +1 -26
  465. package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.js +1 -3
  466. package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.js +2 -310
  467. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.js +0 -2
  468. package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.js +1 -17
  469. package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.js +0 -2
  470. package/dist/node_modules/@earendil-works/pi-agent-core/package.json +11 -6
  471. package/dist/node_modules/@earendil-works/pi-ai/README.md +49 -7
  472. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -1170
  473. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.js +1 -3
  474. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -249
  475. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.js +1 -3
  476. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1092
  477. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.js +1 -30
  478. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.js +1 -72
  479. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js +1 -9
  480. package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js +1 -222
  481. package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js +1 -29
  482. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -364
  483. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js +1 -3
  484. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +2 -447
  485. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -425
  486. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js +1 -3
  487. package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.js +1 -70
  488. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +4 -745
  489. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js +1 -3
  490. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +9 -1305
  491. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js +1 -3
  492. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +6 -1374
  493. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.js +1 -3
  494. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.js +1 -10
  495. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +10 -689
  496. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -298
  497. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.js +1 -3
  498. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -132
  499. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.js +1 -4
  500. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +7 -313
  501. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.js +1 -3
  502. package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -66
  503. package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +1 -187
  504. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.js +1 -42
  505. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.js +1 -51
  506. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js +1 -53
  507. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js +1 -308
  508. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.js +1 -69
  509. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js +1 -392
  510. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js +1 -248
  511. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +1 -59
  512. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js +1 -0
  513. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.js +7 -38
  514. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js +1 -450
  515. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -277
  516. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.js +1 -31
  517. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js +1 -321
  518. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.js +1 -190
  519. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -153
  520. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.js +0 -2
  521. package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js +1 -6
  522. package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +1 -21
  523. package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js +15 -112
  524. package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.js +0 -2
  525. package/dist/node_modules/@earendil-works/pi-ai/dist/compat.js +1 -205
  526. package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -174
  527. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +1 -817
  528. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.js +1 -23
  529. package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js +1 -22
  530. package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.js +1 -143
  531. package/dist/node_modules/@earendil-works/pi-ai/dist/images.js +1 -14
  532. package/dist/node_modules/@earendil-works/pi-ai/dist/index.js +1 -27
  533. package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.js +1 -49
  534. package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.js +1 -4
  535. package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.js +1 -17
  536. package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.js +1 -83
  537. package/dist/node_modules/@earendil-works/pi-ai/dist/models.js +1 -595
  538. package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.js +0 -2
  539. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.js +1 -131
  540. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +1 -93
  541. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +1 -6
  542. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.js +1 -15
  543. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +1 -6
  544. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +1 -83
  545. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +1 -6
  546. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +1 -14
  547. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js +1 -6
  548. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.js +1 -15
  549. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js +1 -6
  550. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.js +1 -15
  551. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +1 -6
  552. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js +1 -27
  553. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +1 -6
  554. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.js +1 -86
  555. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js +1 -21
  556. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js +1 -15
  557. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +1 -6
  558. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  559. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
  560. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/ant-ling.json +1 -1
  561. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  562. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
  563. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  564. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -1
  565. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  566. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
  567. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.json +1 -1
  568. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  569. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  570. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
  571. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  572. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.json +1 -1
  573. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  574. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
  575. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -0
  576. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -1
  577. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -1
  578. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
  579. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
  580. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -1
  581. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  582. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  583. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  584. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  585. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  586. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  587. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  588. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
  589. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  590. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -0
  591. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  592. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  593. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
  594. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
  595. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
  596. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
  597. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
  598. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  599. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  600. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.js +1 -15
  601. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +1 -6
  602. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +7 -488
  603. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.js +1 -19
  604. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +1 -6
  605. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.js +1 -34
  606. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +1 -6
  607. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js +1 -94
  608. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js +1 -6
  609. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.js +1 -15
  610. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js +1 -6
  611. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.js +1 -15
  612. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +1 -6
  613. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.js +1 -15
  614. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +1 -6
  615. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js +1 -34
  616. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js +1 -24
  617. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js +1 -6
  618. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/meta.js +1 -0
  619. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +1 -0
  620. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.js +1 -15
  621. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +1 -6
  622. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.js +1 -15
  623. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +1 -6
  624. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js +1 -15
  625. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +1 -6
  626. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.js +1 -15
  627. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js +1 -6
  628. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.js +1 -15
  629. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js +1 -6
  630. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.js +1 -15
  631. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +1 -6
  632. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js +1 -16
  633. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js +1 -6
  634. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.js +1 -15
  635. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js +1 -6
  636. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +1 -20
  637. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +1 -6
  638. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.js +1 -0
  639. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +1 -22
  640. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +1 -6
  641. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js +1 -22
  642. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js +1 -27
  643. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +1 -6
  644. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.js +1 -15
  645. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js +1 -6
  646. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.js +1 -15
  647. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js +1 -6
  648. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.js +1 -15
  649. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js +1 -6
  650. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js +1 -63
  651. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.js +1 -64
  652. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +1 -0
  653. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.js +1 -15
  654. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +1 -6
  655. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.js +1 -15
  656. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +1 -6
  657. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.js +1 -19
  658. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +1 -6
  659. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.js +1 -15
  660. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +1 -6
  661. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.js +1 -15
  662. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +1 -6
  663. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.js +1 -15
  664. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +1 -6
  665. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.js +1 -15
  666. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +1 -6
  667. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.js +1 -15
  668. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +1 -6
  669. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.js +1 -15
  670. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +1 -6
  671. package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.js +1 -22
  672. package/dist/node_modules/@earendil-works/pi-ai/dist/types.js +0 -2
  673. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js +1 -34
  674. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.js +1 -49
  675. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js +1 -425
  676. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +1 -36
  677. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js +1 -25
  678. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/dsml-tool-calls.js +1 -0
  679. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js +1 -133
  680. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +1 -116
  681. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +1 -81
  682. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.js +1 -14
  683. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.js +1 -18
  684. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js +2 -113
  685. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js +1 -133
  686. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +1 -177
  687. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.js +1 -12
  688. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.js +1 -44
  689. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.js +1 -94
  690. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +1 -178
  691. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.js +1 -26
  692. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js +1 -15
  693. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.js +8 -10
  694. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +3 -0
  695. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js +1 -21
  696. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js +1 -42
  697. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +6 -309
  698. package/dist/node_modules/@earendil-works/pi-ai/package.json +9 -9
  699. package/dist/node_modules/@earendil-works/pi-client/dist/client.js +1 -388
  700. package/dist/node_modules/@earendil-works/pi-client/dist/connection.js +1 -208
  701. package/dist/node_modules/@earendil-works/pi-client/dist/errors.js +1 -28
  702. package/dist/node_modules/@earendil-works/pi-client/dist/index.js +1 -3
  703. package/dist/node_modules/@earendil-works/pi-client/dist/promise.js +1 -11
  704. package/dist/node_modules/@earendil-works/pi-client/dist/transport.js +0 -2
  705. package/dist/node_modules/@earendil-works/pi-client/dist/types.js +0 -2
  706. package/dist/node_modules/@earendil-works/pi-client/dist/unix.js +1 -281
  707. package/dist/node_modules/@earendil-works/pi-client/package.json +3 -2
  708. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.js +1 -165
  709. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.js +1 -201
  710. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.js +1 -4
  711. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.js +1 -29
  712. package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.js +1 -119
  713. package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.js +1 -140
  714. package/dist/node_modules/@earendil-works/pi-protocol/dist/index.js +1 -5
  715. package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.js +1 -85
  716. package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.js +1 -468
  717. package/dist/node_modules/@earendil-works/pi-protocol/package.json +3 -3
  718. package/dist/node_modules/@earendil-works/pi-server/dist/connection.js +1 -4
  719. package/dist/node_modules/@earendil-works/pi-server/dist/errors.js +1 -41
  720. package/dist/node_modules/@earendil-works/pi-server/dist/index.js +1 -5
  721. package/dist/node_modules/@earendil-works/pi-server/dist/listener.js +0 -2
  722. package/dist/node_modules/@earendil-works/pi-server/dist/server.js +1 -549
  723. package/dist/node_modules/@earendil-works/pi-server/dist/session-router.js +1 -264
  724. package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.js +1 -138
  725. package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.js +1 -189
  726. package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.js +1 -4
  727. package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.js +1 -17
  728. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.js +1 -9
  729. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.js +1 -4
  730. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.js +1 -421
  731. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.js +1 -22
  732. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.js +0 -2
  733. package/dist/node_modules/@earendil-works/pi-server/dist/types.js +0 -2
  734. package/dist/node_modules/@earendil-works/pi-server/package.json +5 -3
  735. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.js +1 -103
  736. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.js +1 -4
  737. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.js +1 -7
  738. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.js +2 -408
  739. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.js +30 -199
  740. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.js +5 -125
  741. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.js +10 -62
  742. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.js +1 -13
  743. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.js +1 -39
  744. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.js +3 -50
  745. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.js +20 -91
  746. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.js +1 -163
  747. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.js +1 -58
  748. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.js +1 -161
  749. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.js +0 -2
  750. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/package.json +3 -3
  751. package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.js +1 -18
  752. package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.js +1 -154
  753. package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.js +1 -18
  754. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.js +1 -294
  755. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.js +1 -2
  756. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.js +0 -2
  757. package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  758. package/dist/node_modules/@earendil-works/pi-tui/README.md +8 -2
  759. package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js +1 -282
  760. package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +2 -667
  761. package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.js +1 -37
  762. package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.js +1 -133
  763. package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js +1 -35
  764. package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.js +17 -2088
  765. package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.js +1 -43
  766. package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.js +1 -90
  767. package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.js +2 -419
  768. package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.js +1 -97
  769. package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -813
  770. package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js +1 -21
  771. package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js +1 -216
  772. package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +1 -206
  773. package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +1 -252
  774. package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.js +1 -23
  775. package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.js +1 -117
  776. package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.js +1 -90
  777. package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js +2 -51
  778. package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.js +1 -35
  779. package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.js +0 -2
  780. package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +1 -111
  781. package/dist/node_modules/@earendil-works/pi-tui/dist/index.js +1 -43
  782. package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.js +1 -233
  783. package/dist/node_modules/@earendil-works/pi-tui/dist/keys.js +5 -1174
  784. package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.js +1 -44
  785. package/dist/node_modules/@earendil-works/pi-tui/dist/latex.js +10 -1285
  786. package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.js +1 -6
  787. package/dist/node_modules/@earendil-works/pi-tui/dist/layout.js +1 -501
  788. package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +1 -54
  789. package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +1 -19
  790. package/dist/node_modules/@earendil-works/pi-tui/dist/native-platform.js +1 -0
  791. package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js +1 -377
  792. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js +1 -59
  793. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +1 -550
  794. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.js +1 -491
  795. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +4 -1501
  796. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +13 -596
  797. package/dist/node_modules/@earendil-works/pi-tui/dist/tui.js +2 -1125
  798. package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.js +1 -25
  799. package/dist/node_modules/@earendil-works/pi-tui/dist/utils.js +1 -1237
  800. package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.js +1 -96
  801. package/dist/node_modules/@earendil-works/pi-tui/native/clipboard.h +170 -0
  802. package/dist/node_modules/@earendil-works/pi-tui/native/darwin/README.md +8 -6
  803. package/dist/node_modules/@earendil-works/pi-tui/native/darwin/build.sh +12 -5
  804. package/dist/node_modules/@earendil-works/pi-tui/native/linux/README.md +23 -0
  805. package/dist/node_modules/@earendil-works/pi-tui/native/linux/build.sh +65 -0
  806. package/dist/node_modules/@earendil-works/pi-tui/native/napi.h +89 -0
  807. package/dist/node_modules/@earendil-works/pi-tui/native/win32/README.md +16 -7
  808. package/dist/node_modules/@earendil-works/pi-tui/native/win32/build.mjs +4 -222
  809. package/dist/node_modules/@earendil-works/pi-tui/package.json +9 -3
  810. package/dist/package-manager-cli.js +45 -1010
  811. package/dist/rpc-entry.js +1 -10
  812. package/dist/utils/abort.js +1 -48
  813. package/dist/utils/ansi.js +1 -52
  814. package/dist/utils/changelog.js +3 -239
  815. package/dist/utils/child-process.js +1 -106
  816. package/dist/utils/clipboard-command.js +1 -0
  817. package/dist/utils/clipboard-image.js +1 -245
  818. package/dist/utils/clipboard-native.js +1 -20
  819. package/dist/utils/clipboard.js +1 -196
  820. package/dist/utils/deprecation.js +1 -13
  821. package/dist/utils/exif-orientation.js +1 -157
  822. package/dist/utils/frontmatter.js +4 -27
  823. package/dist/utils/fs-watch.js +1 -25
  824. package/dist/utils/git.js +1 -195
  825. package/dist/utils/html.js +1 -40
  826. package/dist/utils/image-convert.js +1 -45
  827. package/dist/utils/image-process.js +1 -83
  828. package/dist/utils/image-resize-core.js +1 -124
  829. package/dist/utils/image-resize-worker.js +1 -31
  830. package/dist/utils/image-resize.js +1 -97
  831. package/dist/utils/json.js +1 -7
  832. package/dist/utils/management-http.js +1 -54
  833. package/dist/utils/mime.js +1 -110
  834. package/dist/utils/offline.js +1 -19
  835. package/dist/utils/open-browser.js +1 -22
  836. package/dist/utils/paths.js +1 -114
  837. package/dist/utils/photon.js +1 -121
  838. package/dist/utils/pi-user-agent.js +1 -6
  839. package/dist/utils/shell.js +8 -224
  840. package/dist/utils/sleep.js +1 -17
  841. package/dist/utils/syntax-highlight.js +2 -177
  842. package/dist/utils/text.js +1 -9
  843. package/dist/utils/tool-result-images.js +2 -45
  844. package/dist/utils/tools-manager.js +1 -338
  845. package/dist/utils/version-check.js +2 -215
  846. package/dist/utils/windows-self-update.js +1 -77
  847. package/dist/utils/wsl.js +1 -0
  848. package/dist/utils/zip.js +1 -0
  849. package/examples/README.md +13 -2
  850. package/examples/extensions/README.md +1 -2
  851. package/examples/extensions/claude-rules.ts +1 -1
  852. package/examples/extensions/commands.ts +1 -1
  853. package/examples/extensions/custom-provider-anthropic/index.ts +18 -12
  854. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  855. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  856. package/examples/extensions/custom-provider-gitlab-duo/index.ts +2 -2
  857. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  858. package/examples/extensions/gondolin/package-lock.json +2 -2
  859. package/examples/extensions/gondolin/package.json +1 -1
  860. package/examples/extensions/pirate.ts +1 -1
  861. package/examples/extensions/preset.ts +2 -2
  862. package/examples/extensions/project-trust.ts +4 -4
  863. package/examples/extensions/prompt-customizer.ts +20 -68
  864. package/examples/extensions/sandbox/index.ts +5 -5
  865. package/examples/extensions/sandbox/package-lock.json +2 -2
  866. package/examples/extensions/sandbox/package.json +1 -1
  867. package/examples/extensions/subagent/README.md +11 -11
  868. package/examples/extensions/tools.ts +1 -1
  869. package/examples/extensions/with-deps/package-lock.json +2 -2
  870. package/examples/extensions/with-deps/package.json +1 -1
  871. package/examples/plugins/pi-example-plugin/src/session.ts +3 -2
  872. package/examples/rpc-client.ts +35 -0
  873. package/examples/rpc-extension-ui.ts +25 -5
  874. package/examples/sdk/01-minimal.ts +1 -1
  875. package/examples/sdk/03-custom-prompt.ts +1 -1
  876. package/examples/sdk/04-skills.ts +1 -1
  877. package/examples/sdk/06-extensions.ts +2 -2
  878. package/examples/sdk/08-prompt-templates.ts +1 -1
  879. package/examples/sdk/README.md +2 -2
  880. package/npm-shrinkwrap.json +534 -825
  881. package/package.json +18 -25
  882. package/dist/bun/cli.d.ts +0 -5
  883. package/dist/bun/cli.d.ts.map +0 -1
  884. package/dist/bun/cli.js.map +0 -1
  885. package/dist/bun/register-bedrock.d.ts +0 -2
  886. package/dist/bun/register-bedrock.d.ts.map +0 -1
  887. package/dist/bun/register-bedrock.js +0 -4
  888. package/dist/bun/register-bedrock.js.map +0 -1
  889. package/dist/bun/restore-sandbox-env.d.ts +0 -17
  890. package/dist/bun/restore-sandbox-env.d.ts.map +0 -1
  891. package/dist/bun/restore-sandbox-env.js.map +0 -1
  892. package/dist/bun/runtime-setup.d.ts +0 -2
  893. package/dist/bun/runtime-setup.d.ts.map +0 -1
  894. package/dist/bun/runtime-setup.js.map +0 -1
  895. package/dist/bun/sandbox-env-setup.d.ts +0 -2
  896. package/dist/bun/sandbox-env-setup.d.ts.map +0 -1
  897. package/dist/bun/sandbox-env-setup.js.map +0 -1
  898. package/dist/cli/args.d.ts +0 -61
  899. package/dist/cli/args.d.ts.map +0 -1
  900. package/dist/cli/args.js.map +0 -1
  901. package/dist/cli/auth-check.d.ts +0 -19
  902. package/dist/cli/auth-check.d.ts.map +0 -1
  903. package/dist/cli/auth-check.js.map +0 -1
  904. package/dist/cli/auth-command.d.ts +0 -24
  905. package/dist/cli/auth-command.d.ts.map +0 -1
  906. package/dist/cli/auth-command.js.map +0 -1
  907. package/dist/cli/config-selector.d.ts +0 -16
  908. package/dist/cli/config-selector.d.ts.map +0 -1
  909. package/dist/cli/config-selector.js.map +0 -1
  910. package/dist/cli/credential-print.d.ts +0 -13
  911. package/dist/cli/credential-print.d.ts.map +0 -1
  912. package/dist/cli/credential-print.js.map +0 -1
  913. package/dist/cli/file-processor.d.ts +0 -15
  914. package/dist/cli/file-processor.d.ts.map +0 -1
  915. package/dist/cli/file-processor.js.map +0 -1
  916. package/dist/cli/initial-message.d.ts +0 -18
  917. package/dist/cli/initial-message.d.ts.map +0 -1
  918. package/dist/cli/initial-message.js.map +0 -1
  919. package/dist/cli/list-models.d.ts +0 -9
  920. package/dist/cli/list-models.d.ts.map +0 -1
  921. package/dist/cli/list-models.js.map +0 -1
  922. package/dist/cli/project-trust.d.ts +0 -10
  923. package/dist/cli/project-trust.d.ts.map +0 -1
  924. package/dist/cli/project-trust.js.map +0 -1
  925. package/dist/cli/session-picker.d.ts +0 -10
  926. package/dist/cli/session-picker.d.ts.map +0 -1
  927. package/dist/cli/session-picker.js.map +0 -1
  928. package/dist/cli/setup.d.ts +0 -2
  929. package/dist/cli/setup.d.ts.map +0 -1
  930. package/dist/cli/setup.js.map +0 -1
  931. package/dist/cli/startup-ui.d.ts +0 -20
  932. package/dist/cli/startup-ui.d.ts.map +0 -1
  933. package/dist/cli/startup-ui.js.map +0 -1
  934. package/dist/cli.d.ts +0 -3
  935. package/dist/cli.d.ts.map +0 -1
  936. package/dist/cli.js.map +0 -1
  937. package/dist/config.d.ts +0 -107
  938. package/dist/config.d.ts.map +0 -1
  939. package/dist/config.js.map +0 -1
  940. package/dist/core/agent-session-runtime.d.ts +0 -119
  941. package/dist/core/agent-session-runtime.d.ts.map +0 -1
  942. package/dist/core/agent-session-runtime.js.map +0 -1
  943. package/dist/core/agent-session-services.d.ts +0 -93
  944. package/dist/core/agent-session-services.d.ts.map +0 -1
  945. package/dist/core/agent-session-services.js.map +0 -1
  946. package/dist/core/agent-session.d.ts +0 -692
  947. package/dist/core/agent-session.d.ts.map +0 -1
  948. package/dist/core/agent-session.js.map +0 -1
  949. package/dist/core/auth-guidance.d.ts +0 -6
  950. package/dist/core/auth-guidance.d.ts.map +0 -1
  951. package/dist/core/auth-guidance.js.map +0 -1
  952. package/dist/core/auth-storage.d.ts +0 -72
  953. package/dist/core/auth-storage.d.ts.map +0 -1
  954. package/dist/core/auth-storage.js.map +0 -1
  955. package/dist/core/bash-executor.d.ts +0 -32
  956. package/dist/core/bash-executor.d.ts.map +0 -1
  957. package/dist/core/bash-executor.js.map +0 -1
  958. package/dist/core/cache-stats.d.ts +0 -49
  959. package/dist/core/cache-stats.d.ts.map +0 -1
  960. package/dist/core/cache-stats.js.map +0 -1
  961. package/dist/core/compaction/branch-summarization.d.ts +0 -98
  962. package/dist/core/compaction/branch-summarization.d.ts.map +0 -1
  963. package/dist/core/compaction/branch-summarization.js.map +0 -1
  964. package/dist/core/compaction/compaction.d.ts +0 -143
  965. package/dist/core/compaction/compaction.d.ts.map +0 -1
  966. package/dist/core/compaction/compaction.js.map +0 -1
  967. package/dist/core/compaction/index.d.ts +0 -7
  968. package/dist/core/compaction/index.d.ts.map +0 -1
  969. package/dist/core/compaction/index.js.map +0 -1
  970. package/dist/core/compaction/utils.d.ts +0 -38
  971. package/dist/core/compaction/utils.d.ts.map +0 -1
  972. package/dist/core/compaction/utils.js.map +0 -1
  973. package/dist/core/defaults.d.ts +0 -4
  974. package/dist/core/defaults.d.ts.map +0 -1
  975. package/dist/core/defaults.js.map +0 -1
  976. package/dist/core/diagnostics.d.ts +0 -15
  977. package/dist/core/diagnostics.d.ts.map +0 -1
  978. package/dist/core/diagnostics.js.map +0 -1
  979. package/dist/core/empty-assistant.d.ts +0 -13
  980. package/dist/core/empty-assistant.d.ts.map +0 -1
  981. package/dist/core/empty-assistant.js.map +0 -1
  982. package/dist/core/event-bus.d.ts +0 -9
  983. package/dist/core/event-bus.d.ts.map +0 -1
  984. package/dist/core/event-bus.js.map +0 -1
  985. package/dist/core/exec.d.ts +0 -29
  986. package/dist/core/exec.d.ts.map +0 -1
  987. package/dist/core/exec.js.map +0 -1
  988. package/dist/core/experimental.d.ts +0 -6
  989. package/dist/core/experimental.d.ts.map +0 -1
  990. package/dist/core/experimental.js.map +0 -1
  991. package/dist/core/export-html/ansi-to-html.d.ts +0 -22
  992. package/dist/core/export-html/ansi-to-html.d.ts.map +0 -1
  993. package/dist/core/export-html/ansi-to-html.js.map +0 -1
  994. package/dist/core/export-html/index.d.ts +0 -37
  995. package/dist/core/export-html/index.d.ts.map +0 -1
  996. package/dist/core/export-html/index.js.map +0 -1
  997. package/dist/core/export-html/tool-renderer.d.ts +0 -34
  998. package/dist/core/export-html/tool-renderer.d.ts.map +0 -1
  999. package/dist/core/export-html/tool-renderer.js.map +0 -1
  1000. package/dist/core/extensions/api-version.d.ts +0 -9
  1001. package/dist/core/extensions/api-version.d.ts.map +0 -1
  1002. package/dist/core/extensions/api-version.js.map +0 -1
  1003. package/dist/core/extensions/index.d.ts +0 -12
  1004. package/dist/core/extensions/index.d.ts.map +0 -1
  1005. package/dist/core/extensions/index.js.map +0 -1
  1006. package/dist/core/extensions/loader.d.ts +0 -23
  1007. package/dist/core/extensions/loader.d.ts.map +0 -1
  1008. package/dist/core/extensions/loader.js.map +0 -1
  1009. package/dist/core/extensions/permission-surface.d.ts +0 -10
  1010. package/dist/core/extensions/permission-surface.d.ts.map +0 -1
  1011. package/dist/core/extensions/permission-surface.js.map +0 -1
  1012. package/dist/core/extensions/runner.d.ts +0 -178
  1013. package/dist/core/extensions/runner.d.ts.map +0 -1
  1014. package/dist/core/extensions/runner.js.map +0 -1
  1015. package/dist/core/extensions/types.d.ts +0 -1410
  1016. package/dist/core/extensions/types.d.ts.map +0 -1
  1017. package/dist/core/extensions/types.js.map +0 -1
  1018. package/dist/core/extensions/wrapper.d.ts +0 -20
  1019. package/dist/core/extensions/wrapper.d.ts.map +0 -1
  1020. package/dist/core/extensions/wrapper.js.map +0 -1
  1021. package/dist/core/footer-data-provider.d.ts +0 -64
  1022. package/dist/core/footer-data-provider.d.ts.map +0 -1
  1023. package/dist/core/footer-data-provider.js.map +0 -1
  1024. package/dist/core/house-providers.d.ts +0 -66
  1025. package/dist/core/house-providers.d.ts.map +0 -1
  1026. package/dist/core/house-providers.js.map +0 -1
  1027. package/dist/core/http-dispatcher.d.ts +0 -22
  1028. package/dist/core/http-dispatcher.d.ts.map +0 -1
  1029. package/dist/core/http-dispatcher.js.map +0 -1
  1030. package/dist/core/index.d.ts +0 -13
  1031. package/dist/core/index.d.ts.map +0 -1
  1032. package/dist/core/index.js.map +0 -1
  1033. package/dist/core/keybindings.d.ts +0 -443
  1034. package/dist/core/keybindings.d.ts.map +0 -1
  1035. package/dist/core/keybindings.js.map +0 -1
  1036. package/dist/core/messages.d.ts +0 -77
  1037. package/dist/core/messages.d.ts.map +0 -1
  1038. package/dist/core/messages.js.map +0 -1
  1039. package/dist/core/model-config.d.ts +0 -676
  1040. package/dist/core/model-config.d.ts.map +0 -1
  1041. package/dist/core/model-config.js.map +0 -1
  1042. package/dist/core/model-registry.d.ts +0 -45
  1043. package/dist/core/model-registry.d.ts.map +0 -1
  1044. package/dist/core/model-registry.js.map +0 -1
  1045. package/dist/core/model-resolver.d.ts +0 -130
  1046. package/dist/core/model-resolver.d.ts.map +0 -1
  1047. package/dist/core/model-resolver.js.map +0 -1
  1048. package/dist/core/model-runtime.d.ts +0 -129
  1049. package/dist/core/model-runtime.d.ts.map +0 -1
  1050. package/dist/core/model-runtime.js.map +0 -1
  1051. package/dist/core/models-store.d.ts +0 -22
  1052. package/dist/core/models-store.d.ts.map +0 -1
  1053. package/dist/core/models-store.js.map +0 -1
  1054. package/dist/core/output-guard.d.ts +0 -7
  1055. package/dist/core/output-guard.d.ts.map +0 -1
  1056. package/dist/core/output-guard.js.map +0 -1
  1057. package/dist/core/package-manager.d.ts +0 -224
  1058. package/dist/core/package-manager.d.ts.map +0 -1
  1059. package/dist/core/package-manager.js.map +0 -1
  1060. package/dist/core/pi-manifest.d.ts +0 -25
  1061. package/dist/core/pi-manifest.d.ts.map +0 -1
  1062. package/dist/core/pi-manifest.js.map +0 -1
  1063. package/dist/core/project-map.d.ts +0 -23
  1064. package/dist/core/project-map.d.ts.map +0 -1
  1065. package/dist/core/project-map.js.map +0 -1
  1066. package/dist/core/project-trust.d.ts +0 -15
  1067. package/dist/core/project-trust.d.ts.map +0 -1
  1068. package/dist/core/project-trust.js.map +0 -1
  1069. package/dist/core/prompt-templates.d.ts +0 -54
  1070. package/dist/core/prompt-templates.d.ts.map +0 -1
  1071. package/dist/core/prompt-templates.js.map +0 -1
  1072. package/dist/core/provider-attribution.d.ts +0 -4
  1073. package/dist/core/provider-attribution.d.ts.map +0 -1
  1074. package/dist/core/provider-attribution.js.map +0 -1
  1075. package/dist/core/provider-composer.d.ts +0 -58
  1076. package/dist/core/provider-composer.d.ts.map +0 -1
  1077. package/dist/core/provider-composer.js.map +0 -1
  1078. package/dist/core/radius.d.ts +0 -2
  1079. package/dist/core/radius.d.ts.map +0 -1
  1080. package/dist/core/radius.js.map +0 -1
  1081. package/dist/core/remote-catalog-provider.d.ts +0 -5
  1082. package/dist/core/remote-catalog-provider.d.ts.map +0 -1
  1083. package/dist/core/remote-catalog-provider.js.map +0 -1
  1084. package/dist/core/resolve-config-value.d.ts +0 -30
  1085. package/dist/core/resolve-config-value.d.ts.map +0 -1
  1086. package/dist/core/resolve-config-value.js.map +0 -1
  1087. package/dist/core/resource-loader.d.ts +0 -221
  1088. package/dist/core/resource-loader.d.ts.map +0 -1
  1089. package/dist/core/resource-loader.js.map +0 -1
  1090. package/dist/core/runtime-credentials.d.ts +0 -15
  1091. package/dist/core/runtime-credentials.d.ts.map +0 -1
  1092. package/dist/core/runtime-credentials.js.map +0 -1
  1093. package/dist/core/sdk.d.ts +0 -108
  1094. package/dist/core/sdk.d.ts.map +0 -1
  1095. package/dist/core/sdk.js.map +0 -1
  1096. package/dist/core/session-cwd.d.ts +0 -19
  1097. package/dist/core/session-cwd.d.ts.map +0 -1
  1098. package/dist/core/session-cwd.js.map +0 -1
  1099. package/dist/core/session-export.d.ts +0 -4
  1100. package/dist/core/session-export.d.ts.map +0 -1
  1101. package/dist/core/session-export.js.map +0 -1
  1102. package/dist/core/session-manager.d.ts +0 -364
  1103. package/dist/core/session-manager.d.ts.map +0 -1
  1104. package/dist/core/session-manager.js.map +0 -1
  1105. package/dist/core/settings-diagnostics.d.ts +0 -9
  1106. package/dist/core/settings-diagnostics.d.ts.map +0 -1
  1107. package/dist/core/settings-diagnostics.js.map +0 -1
  1108. package/dist/core/settings-manager.d.ts +0 -336
  1109. package/dist/core/settings-manager.d.ts.map +0 -1
  1110. package/dist/core/settings-manager.js.map +0 -1
  1111. package/dist/core/skills.d.ts +0 -60
  1112. package/dist/core/skills.d.ts.map +0 -1
  1113. package/dist/core/skills.js.map +0 -1
  1114. package/dist/core/slash-commands.d.ts +0 -15
  1115. package/dist/core/slash-commands.d.ts.map +0 -1
  1116. package/dist/core/slash-commands.js.map +0 -1
  1117. package/dist/core/source-info.d.ts +0 -18
  1118. package/dist/core/source-info.d.ts.map +0 -1
  1119. package/dist/core/source-info.js.map +0 -1
  1120. package/dist/core/system-prompt.d.ts +0 -28
  1121. package/dist/core/system-prompt.d.ts.map +0 -1
  1122. package/dist/core/system-prompt.js.map +0 -1
  1123. package/dist/core/telemetry.d.ts +0 -3
  1124. package/dist/core/telemetry.d.ts.map +0 -1
  1125. package/dist/core/telemetry.js.map +0 -1
  1126. package/dist/core/timings.d.ts +0 -10
  1127. package/dist/core/timings.d.ts.map +0 -1
  1128. package/dist/core/timings.js.map +0 -1
  1129. package/dist/core/tools/bash.d.ts +0 -89
  1130. package/dist/core/tools/bash.d.ts.map +0 -1
  1131. package/dist/core/tools/bash.js.map +0 -1
  1132. package/dist/core/tools/edit-diff.d.ts +0 -101
  1133. package/dist/core/tools/edit-diff.d.ts.map +0 -1
  1134. package/dist/core/tools/edit-diff.js.map +0 -1
  1135. package/dist/core/tools/edit.d.ts +0 -55
  1136. package/dist/core/tools/edit.d.ts.map +0 -1
  1137. package/dist/core/tools/edit.js.map +0 -1
  1138. package/dist/core/tools/file-mutation-queue.d.ts +0 -6
  1139. package/dist/core/tools/file-mutation-queue.d.ts.map +0 -1
  1140. package/dist/core/tools/file-mutation-queue.js.map +0 -1
  1141. package/dist/core/tools/find.d.ts +0 -42
  1142. package/dist/core/tools/find.d.ts.map +0 -1
  1143. package/dist/core/tools/find.js.map +0 -1
  1144. package/dist/core/tools/grep.d.ts +0 -41
  1145. package/dist/core/tools/grep.d.ts.map +0 -1
  1146. package/dist/core/tools/grep.js.map +0 -1
  1147. package/dist/core/tools/index.d.ts +0 -43
  1148. package/dist/core/tools/index.d.ts.map +0 -1
  1149. package/dist/core/tools/index.js.map +0 -1
  1150. package/dist/core/tools/ls.d.ts +0 -41
  1151. package/dist/core/tools/ls.d.ts.map +0 -1
  1152. package/dist/core/tools/ls.js.map +0 -1
  1153. package/dist/core/tools/output-accumulator.d.ts +0 -52
  1154. package/dist/core/tools/output-accumulator.d.ts.map +0 -1
  1155. package/dist/core/tools/output-accumulator.js.map +0 -1
  1156. package/dist/core/tools/path-utils.d.ts +0 -10
  1157. package/dist/core/tools/path-utils.d.ts.map +0 -1
  1158. package/dist/core/tools/path-utils.js.map +0 -1
  1159. package/dist/core/tools/powershell.d.ts +0 -16
  1160. package/dist/core/tools/powershell.d.ts.map +0 -1
  1161. package/dist/core/tools/powershell.js.map +0 -1
  1162. package/dist/core/tools/read.d.ts +0 -39
  1163. package/dist/core/tools/read.d.ts.map +0 -1
  1164. package/dist/core/tools/read.js.map +0 -1
  1165. package/dist/core/tools/render-utils.d.ts +0 -29
  1166. package/dist/core/tools/render-utils.d.ts.map +0 -1
  1167. package/dist/core/tools/render-utils.js.map +0 -1
  1168. package/dist/core/tools/renderers/bash.d.ts +0 -12
  1169. package/dist/core/tools/renderers/bash.d.ts.map +0 -1
  1170. package/dist/core/tools/renderers/bash.js.map +0 -1
  1171. package/dist/core/tools/renderers/edit.d.ts +0 -23
  1172. package/dist/core/tools/renderers/edit.d.ts.map +0 -1
  1173. package/dist/core/tools/renderers/edit.js.map +0 -1
  1174. package/dist/core/tools/renderers/find.d.ts +0 -10
  1175. package/dist/core/tools/renderers/find.d.ts.map +0 -1
  1176. package/dist/core/tools/renderers/find.js.map +0 -1
  1177. package/dist/core/tools/renderers/grep.d.ts +0 -10
  1178. package/dist/core/tools/renderers/grep.d.ts.map +0 -1
  1179. package/dist/core/tools/renderers/grep.js.map +0 -1
  1180. package/dist/core/tools/renderers/index.d.ts +0 -28
  1181. package/dist/core/tools/renderers/index.d.ts.map +0 -1
  1182. package/dist/core/tools/renderers/index.js.map +0 -1
  1183. package/dist/core/tools/renderers/ls.d.ts +0 -10
  1184. package/dist/core/tools/renderers/ls.d.ts.map +0 -1
  1185. package/dist/core/tools/renderers/ls.js.map +0 -1
  1186. package/dist/core/tools/renderers/read.d.ts +0 -11
  1187. package/dist/core/tools/renderers/read.d.ts.map +0 -1
  1188. package/dist/core/tools/renderers/read.js.map +0 -1
  1189. package/dist/core/tools/renderers/write.d.ts +0 -10
  1190. package/dist/core/tools/renderers/write.d.ts.map +0 -1
  1191. package/dist/core/tools/renderers/write.js.map +0 -1
  1192. package/dist/core/tools/tool-definition-wrapper.d.ts +0 -14
  1193. package/dist/core/tools/tool-definition-wrapper.d.ts.map +0 -1
  1194. package/dist/core/tools/tool-definition-wrapper.js.map +0 -1
  1195. package/dist/core/tools/truncate.d.ts +0 -70
  1196. package/dist/core/tools/truncate.d.ts.map +0 -1
  1197. package/dist/core/tools/truncate.js.map +0 -1
  1198. package/dist/core/tools/write.d.ts +0 -30
  1199. package/dist/core/tools/write.d.ts.map +0 -1
  1200. package/dist/core/tools/write.js.map +0 -1
  1201. package/dist/core/trust-manager.d.ts +0 -36
  1202. package/dist/core/trust-manager.d.ts.map +0 -1
  1203. package/dist/core/trust-manager.js.map +0 -1
  1204. package/dist/core/usage-totals.d.ts +0 -19
  1205. package/dist/core/usage-totals.d.ts.map +0 -1
  1206. package/dist/core/usage-totals.js.map +0 -1
  1207. package/dist/dal/builtins.d.ts +0 -32
  1208. package/dist/dal/builtins.d.ts.map +0 -1
  1209. package/dist/dal/builtins.js.map +0 -1
  1210. package/dist/dal/i18n.d.ts +0 -12
  1211. package/dist/dal/i18n.d.ts.map +0 -1
  1212. package/dist/dal/i18n.js.map +0 -1
  1213. package/dist/extensions/index.d.ts +0 -3
  1214. package/dist/extensions/index.d.ts.map +0 -1
  1215. package/dist/extensions/index.js.map +0 -1
  1216. package/dist/extensions/llama/client.d.ts +0 -69
  1217. package/dist/extensions/llama/client.d.ts.map +0 -1
  1218. package/dist/extensions/llama/client.js.map +0 -1
  1219. package/dist/extensions/llama/huggingface.d.ts +0 -23
  1220. package/dist/extensions/llama/huggingface.d.ts.map +0 -1
  1221. package/dist/extensions/llama/huggingface.js.map +0 -1
  1222. package/dist/extensions/llama/index.d.ts +0 -3
  1223. package/dist/extensions/llama/index.d.ts.map +0 -1
  1224. package/dist/extensions/llama/index.js.map +0 -1
  1225. package/dist/extensions/llama/provider.d.ts +0 -12
  1226. package/dist/extensions/llama/provider.d.ts.map +0 -1
  1227. package/dist/extensions/llama/provider.js.map +0 -1
  1228. package/dist/extensions/llama/ui.d.ts +0 -42
  1229. package/dist/extensions/llama/ui.d.ts.map +0 -1
  1230. package/dist/extensions/llama/ui.js.map +0 -1
  1231. package/dist/index.d.ts +0 -36
  1232. package/dist/index.d.ts.map +0 -1
  1233. package/dist/index.js.map +0 -1
  1234. package/dist/main.d.ts +0 -16
  1235. package/dist/main.d.ts.map +0 -1
  1236. package/dist/main.js.map +0 -1
  1237. package/dist/migrations.d.ts +0 -33
  1238. package/dist/migrations.d.ts.map +0 -1
  1239. package/dist/migrations.js.map +0 -1
  1240. package/dist/modes/acp/acp-mapping.d.ts +0 -17
  1241. package/dist/modes/acp/acp-mapping.d.ts.map +0 -1
  1242. package/dist/modes/acp/acp-mapping.js.map +0 -1
  1243. package/dist/modes/acp/acp-mode.d.ts +0 -11
  1244. package/dist/modes/acp/acp-mode.d.ts.map +0 -1
  1245. package/dist/modes/acp/acp-mode.js.map +0 -1
  1246. package/dist/modes/acp/acp-stream.d.ts +0 -9
  1247. package/dist/modes/acp/acp-stream.d.ts.map +0 -1
  1248. package/dist/modes/acp/acp-stream.js.map +0 -1
  1249. package/dist/modes/index.d.ts +0 -11
  1250. package/dist/modes/index.d.ts.map +0 -1
  1251. package/dist/modes/index.js.map +0 -1
  1252. package/dist/modes/interactive/chat-viewport.d.ts +0 -20
  1253. package/dist/modes/interactive/chat-viewport.d.ts.map +0 -1
  1254. package/dist/modes/interactive/chat-viewport.js.map +0 -1
  1255. package/dist/modes/interactive/components/armin.d.ts +0 -34
  1256. package/dist/modes/interactive/components/armin.d.ts.map +0 -1
  1257. package/dist/modes/interactive/components/armin.js.map +0 -1
  1258. package/dist/modes/interactive/components/assistant-message.d.ts +0 -41
  1259. package/dist/modes/interactive/components/assistant-message.d.ts.map +0 -1
  1260. package/dist/modes/interactive/components/assistant-message.js.map +0 -1
  1261. package/dist/modes/interactive/components/bash-execution.d.ts +0 -35
  1262. package/dist/modes/interactive/components/bash-execution.d.ts.map +0 -1
  1263. package/dist/modes/interactive/components/bash-execution.js.map +0 -1
  1264. package/dist/modes/interactive/components/bordered-loader.d.ts +0 -16
  1265. package/dist/modes/interactive/components/bordered-loader.d.ts.map +0 -1
  1266. package/dist/modes/interactive/components/bordered-loader.js.map +0 -1
  1267. package/dist/modes/interactive/components/branch-summary-message.d.ts +0 -16
  1268. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +0 -1
  1269. package/dist/modes/interactive/components/branch-summary-message.js.map +0 -1
  1270. package/dist/modes/interactive/components/compaction-summary-message.d.ts +0 -16
  1271. package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +0 -1
  1272. package/dist/modes/interactive/components/compaction-summary-message.js.map +0 -1
  1273. package/dist/modes/interactive/components/config-selector.d.ts +0 -103
  1274. package/dist/modes/interactive/components/config-selector.d.ts.map +0 -1
  1275. package/dist/modes/interactive/components/config-selector.js.map +0 -1
  1276. package/dist/modes/interactive/components/countdown-timer.d.ts +0 -14
  1277. package/dist/modes/interactive/components/countdown-timer.d.ts.map +0 -1
  1278. package/dist/modes/interactive/components/countdown-timer.js.map +0 -1
  1279. package/dist/modes/interactive/components/custom-editor.d.ts +0 -30
  1280. package/dist/modes/interactive/components/custom-editor.d.ts.map +0 -1
  1281. package/dist/modes/interactive/components/custom-editor.js.map +0 -1
  1282. package/dist/modes/interactive/components/custom-entry.d.ts +0 -19
  1283. package/dist/modes/interactive/components/custom-entry.d.ts.map +0 -1
  1284. package/dist/modes/interactive/components/custom-entry.js.map +0 -1
  1285. package/dist/modes/interactive/components/custom-message.d.ts +0 -22
  1286. package/dist/modes/interactive/components/custom-message.d.ts.map +0 -1
  1287. package/dist/modes/interactive/components/custom-message.js.map +0 -1
  1288. package/dist/modes/interactive/components/dal-brand.d.ts +0 -46
  1289. package/dist/modes/interactive/components/dal-brand.d.ts.map +0 -1
  1290. package/dist/modes/interactive/components/dal-brand.js.map +0 -1
  1291. package/dist/modes/interactive/components/daxnuts.d.ts +0 -23
  1292. package/dist/modes/interactive/components/daxnuts.d.ts.map +0 -1
  1293. package/dist/modes/interactive/components/daxnuts.js.map +0 -1
  1294. package/dist/modes/interactive/components/diff.d.ts +0 -12
  1295. package/dist/modes/interactive/components/diff.d.ts.map +0 -1
  1296. package/dist/modes/interactive/components/diff.js.map +0 -1
  1297. package/dist/modes/interactive/components/dynamic-border.d.ts +0 -20
  1298. package/dist/modes/interactive/components/dynamic-border.d.ts.map +0 -1
  1299. package/dist/modes/interactive/components/dynamic-border.js.map +0 -1
  1300. package/dist/modes/interactive/components/earendil-announcement.d.ts +0 -5
  1301. package/dist/modes/interactive/components/earendil-announcement.d.ts.map +0 -1
  1302. package/dist/modes/interactive/components/earendil-announcement.js.map +0 -1
  1303. package/dist/modes/interactive/components/extension-editor.d.ts +0 -21
  1304. package/dist/modes/interactive/components/extension-editor.d.ts.map +0 -1
  1305. package/dist/modes/interactive/components/extension-editor.js.map +0 -1
  1306. package/dist/modes/interactive/components/extension-input.d.ts +0 -23
  1307. package/dist/modes/interactive/components/extension-input.d.ts.map +0 -1
  1308. package/dist/modes/interactive/components/extension-input.js.map +0 -1
  1309. package/dist/modes/interactive/components/extension-selector.d.ts +0 -26
  1310. package/dist/modes/interactive/components/extension-selector.d.ts.map +0 -1
  1311. package/dist/modes/interactive/components/extension-selector.js.map +0 -1
  1312. package/dist/modes/interactive/components/first-time-setup.d.ts +0 -25
  1313. package/dist/modes/interactive/components/first-time-setup.d.ts.map +0 -1
  1314. package/dist/modes/interactive/components/first-time-setup.js.map +0 -1
  1315. package/dist/modes/interactive/components/footer.d.ts +0 -34
  1316. package/dist/modes/interactive/components/footer.d.ts.map +0 -1
  1317. package/dist/modes/interactive/components/footer.js.map +0 -1
  1318. package/dist/modes/interactive/components/index.d.ts +0 -34
  1319. package/dist/modes/interactive/components/index.d.ts.map +0 -1
  1320. package/dist/modes/interactive/components/index.js.map +0 -1
  1321. package/dist/modes/interactive/components/keybinding-hints.d.ts +0 -13
  1322. package/dist/modes/interactive/components/keybinding-hints.d.ts.map +0 -1
  1323. package/dist/modes/interactive/components/keybinding-hints.js.map +0 -1
  1324. package/dist/modes/interactive/components/login-dialog.d.ts +0 -52
  1325. package/dist/modes/interactive/components/login-dialog.d.ts.map +0 -1
  1326. package/dist/modes/interactive/components/login-dialog.js.map +0 -1
  1327. package/dist/modes/interactive/components/markdown-transform.d.ts +0 -3
  1328. package/dist/modes/interactive/components/markdown-transform.d.ts.map +0 -1
  1329. package/dist/modes/interactive/components/markdown-transform.js.map +0 -1
  1330. package/dist/modes/interactive/components/mermaid.d.ts +0 -11
  1331. package/dist/modes/interactive/components/mermaid.d.ts.map +0 -1
  1332. package/dist/modes/interactive/components/mermaid.js.map +0 -1
  1333. package/dist/modes/interactive/components/model-selector.d.ts +0 -60
  1334. package/dist/modes/interactive/components/model-selector.d.ts.map +0 -1
  1335. package/dist/modes/interactive/components/model-selector.js.map +0 -1
  1336. package/dist/modes/interactive/components/oauth-selector.d.ts +0 -33
  1337. package/dist/modes/interactive/components/oauth-selector.d.ts.map +0 -1
  1338. package/dist/modes/interactive/components/oauth-selector.js.map +0 -1
  1339. package/dist/modes/interactive/components/scoped-models-selector.d.ts +0 -46
  1340. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +0 -1
  1341. package/dist/modes/interactive/components/scoped-models-selector.js.map +0 -1
  1342. package/dist/modes/interactive/components/session-selector-search.d.ts +0 -23
  1343. package/dist/modes/interactive/components/session-selector-search.d.ts.map +0 -1
  1344. package/dist/modes/interactive/components/session-selector-search.js.map +0 -1
  1345. package/dist/modes/interactive/components/session-selector.d.ts +0 -95
  1346. package/dist/modes/interactive/components/session-selector.d.ts.map +0 -1
  1347. package/dist/modes/interactive/components/session-selector.js.map +0 -1
  1348. package/dist/modes/interactive/components/settings-selector.d.ts +0 -94
  1349. package/dist/modes/interactive/components/settings-selector.d.ts.map +0 -1
  1350. package/dist/modes/interactive/components/settings-selector.js.map +0 -1
  1351. package/dist/modes/interactive/components/settings-submenu.d.ts +0 -72
  1352. package/dist/modes/interactive/components/settings-submenu.d.ts.map +0 -1
  1353. package/dist/modes/interactive/components/settings-submenu.js.map +0 -1
  1354. package/dist/modes/interactive/components/show-images-selector.d.ts +0 -10
  1355. package/dist/modes/interactive/components/show-images-selector.d.ts.map +0 -1
  1356. package/dist/modes/interactive/components/show-images-selector.js.map +0 -1
  1357. package/dist/modes/interactive/components/skill-invocation-message.d.ts +0 -17
  1358. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +0 -1
  1359. package/dist/modes/interactive/components/skill-invocation-message.js.map +0 -1
  1360. package/dist/modes/interactive/components/status-indicator.d.ts +0 -46
  1361. package/dist/modes/interactive/components/status-indicator.d.ts.map +0 -1
  1362. package/dist/modes/interactive/components/status-indicator.js.map +0 -1
  1363. package/dist/modes/interactive/components/theme-selector.d.ts +0 -11
  1364. package/dist/modes/interactive/components/theme-selector.d.ts.map +0 -1
  1365. package/dist/modes/interactive/components/theme-selector.js.map +0 -1
  1366. package/dist/modes/interactive/components/thinking-selector.d.ts +0 -23
  1367. package/dist/modes/interactive/components/thinking-selector.d.ts.map +0 -1
  1368. package/dist/modes/interactive/components/thinking-selector.js.map +0 -1
  1369. package/dist/modes/interactive/components/tool-execution.d.ts +0 -113
  1370. package/dist/modes/interactive/components/tool-execution.d.ts.map +0 -1
  1371. package/dist/modes/interactive/components/tool-execution.js.map +0 -1
  1372. package/dist/modes/interactive/components/tree-selector.d.ts +0 -94
  1373. package/dist/modes/interactive/components/tree-selector.d.ts.map +0 -1
  1374. package/dist/modes/interactive/components/tree-selector.js.map +0 -1
  1375. package/dist/modes/interactive/components/trust-selector.d.ts +0 -23
  1376. package/dist/modes/interactive/components/trust-selector.d.ts.map +0 -1
  1377. package/dist/modes/interactive/components/trust-selector.js.map +0 -1
  1378. package/dist/modes/interactive/components/user-message-selector.d.ts +0 -30
  1379. package/dist/modes/interactive/components/user-message-selector.d.ts.map +0 -1
  1380. package/dist/modes/interactive/components/user-message-selector.js.map +0 -1
  1381. package/dist/modes/interactive/components/user-message.d.ts +0 -19
  1382. package/dist/modes/interactive/components/user-message.d.ts.map +0 -1
  1383. package/dist/modes/interactive/components/user-message.js.map +0 -1
  1384. package/dist/modes/interactive/components/visual-truncate.d.ts +0 -24
  1385. package/dist/modes/interactive/components/visual-truncate.d.ts.map +0 -1
  1386. package/dist/modes/interactive/components/visual-truncate.js.map +0 -1
  1387. package/dist/modes/interactive/external-editor.d.ts +0 -12
  1388. package/dist/modes/interactive/external-editor.d.ts.map +0 -1
  1389. package/dist/modes/interactive/external-editor.js.map +0 -1
  1390. package/dist/modes/interactive/interactive-mode.d.ts +0 -490
  1391. package/dist/modes/interactive/interactive-mode.d.ts.map +0 -1
  1392. package/dist/modes/interactive/interactive-mode.js.map +0 -1
  1393. package/dist/modes/interactive/model-catalog-refresh.d.ts +0 -7
  1394. package/dist/modes/interactive/model-catalog-refresh.d.ts.map +0 -1
  1395. package/dist/modes/interactive/model-catalog-refresh.js.map +0 -1
  1396. package/dist/modes/interactive/model-search.d.ts +0 -12
  1397. package/dist/modes/interactive/model-search.d.ts.map +0 -1
  1398. package/dist/modes/interactive/model-search.js.map +0 -1
  1399. package/dist/modes/interactive/session-share.d.ts +0 -16
  1400. package/dist/modes/interactive/session-share.d.ts.map +0 -1
  1401. package/dist/modes/interactive/session-share.js.map +0 -1
  1402. package/dist/modes/interactive/theme/theme-controller.d.ts +0 -41
  1403. package/dist/modes/interactive/theme/theme-controller.d.ts.map +0 -1
  1404. package/dist/modes/interactive/theme/theme-controller.js.map +0 -1
  1405. package/dist/modes/interactive/theme/theme-json.d.ts +0 -84
  1406. package/dist/modes/interactive/theme/theme-json.d.ts.map +0 -1
  1407. package/dist/modes/interactive/theme/theme-json.js.map +0 -1
  1408. package/dist/modes/interactive/theme/theme.d.ts +0 -131
  1409. package/dist/modes/interactive/theme/theme.d.ts.map +0 -1
  1410. package/dist/modes/interactive/theme/theme.js.map +0 -1
  1411. package/dist/modes/interactive/tui-renderer.d.ts +0 -21
  1412. package/dist/modes/interactive/tui-renderer.d.ts.map +0 -1
  1413. package/dist/modes/interactive/tui-renderer.js.map +0 -1
  1414. package/dist/modes/json-event.d.ts +0 -34
  1415. package/dist/modes/json-event.d.ts.map +0 -1
  1416. package/dist/modes/json-event.js.map +0 -1
  1417. package/dist/modes/print-mode.d.ts +0 -28
  1418. package/dist/modes/print-mode.d.ts.map +0 -1
  1419. package/dist/modes/print-mode.js.map +0 -1
  1420. package/dist/modes/rpc/jsonl.d.ts +0 -17
  1421. package/dist/modes/rpc/jsonl.d.ts.map +0 -1
  1422. package/dist/modes/rpc/jsonl.js.map +0 -1
  1423. package/dist/modes/rpc/rpc-client.d.ts +0 -269
  1424. package/dist/modes/rpc/rpc-client.d.ts.map +0 -1
  1425. package/dist/modes/rpc/rpc-client.js.map +0 -1
  1426. package/dist/modes/rpc/rpc-mode.d.ts +0 -20
  1427. package/dist/modes/rpc/rpc-mode.d.ts.map +0 -1
  1428. package/dist/modes/rpc/rpc-mode.js.map +0 -1
  1429. package/dist/modes/rpc/rpc-types.d.ts +0 -497
  1430. package/dist/modes/rpc/rpc-types.d.ts.map +0 -1
  1431. package/dist/modes/rpc/rpc-types.js.map +0 -1
  1432. package/dist/node_modules/@dalcode/dal-bridge/src/client.ts +0 -77
  1433. package/dist/node_modules/@dalcode/dal-bridge/src/index.ts +0 -204
  1434. package/dist/node_modules/@dalcode/dal-gateway/src/index.ts +0 -161
  1435. package/dist/node_modules/@dalcode/dal-guard/src/index.ts +0 -262
  1436. package/dist/node_modules/@dalcode/dal-halo/src/halo-client.ts +0 -118
  1437. package/dist/node_modules/@dalcode/dal-halo/src/index.ts +0 -131
  1438. package/dist/node_modules/@dalcode/dal-lang/src/index.ts +0 -74
  1439. package/dist/node_modules/@dalcode/dal-lsp/src/client.ts +0 -260
  1440. package/dist/node_modules/@dalcode/dal-lsp/src/config.ts +0 -188
  1441. package/dist/node_modules/@dalcode/dal-lsp/src/format.ts +0 -88
  1442. package/dist/node_modules/@dalcode/dal-lsp/src/index.ts +0 -199
  1443. package/dist/node_modules/@dalcode/dal-lsp/src/types.ts +0 -21
  1444. package/dist/node_modules/@dalcode/dal-mcp/src/account-layer.ts +0 -85
  1445. package/dist/node_modules/@dalcode/dal-mcp/src/add-wizard.ts +0 -142
  1446. package/dist/node_modules/@dalcode/dal-mcp/src/command-parser.ts +0 -218
  1447. package/dist/node_modules/@dalcode/dal-mcp/src/config-edit.ts +0 -99
  1448. package/dist/node_modules/@dalcode/dal-mcp/src/config.ts +0 -157
  1449. package/dist/node_modules/@dalcode/dal-mcp/src/http-client.ts +0 -134
  1450. package/dist/node_modules/@dalcode/dal-mcp/src/index.ts +0 -607
  1451. package/dist/node_modules/@dalcode/dal-mcp/src/report.ts +0 -33
  1452. package/dist/node_modules/@dalcode/dal-mcp/src/stdio-client.ts +0 -164
  1453. package/dist/node_modules/@dalcode/dal-mcp/src/types.ts +0 -39
  1454. package/dist/node_modules/@dalcode/dal-office/src/extract/csv.ts +0 -84
  1455. package/dist/node_modules/@dalcode/dal-office/src/extract/index.ts +0 -111
  1456. package/dist/node_modules/@dalcode/dal-office/src/extract/ooxml.ts +0 -109
  1457. package/dist/node_modules/@dalcode/dal-office/src/extract/pdf.ts +0 -43
  1458. package/dist/node_modules/@dalcode/dal-office/src/index.ts +0 -43
  1459. package/dist/node_modules/@dalcode/dal-office/src/paths.ts +0 -107
  1460. package/dist/node_modules/@dalcode/dal-office/src/render/chart.ts +0 -111
  1461. package/dist/node_modules/@dalcode/dal-office/src/render/docx.ts +0 -166
  1462. package/dist/node_modules/@dalcode/dal-office/src/render/pptx.ts +0 -386
  1463. package/dist/node_modules/@dalcode/dal-office/src/render/xlsx.ts +0 -128
  1464. package/dist/node_modules/@dalcode/dal-office/src/scenes.ts +0 -197
  1465. package/dist/node_modules/@dalcode/dal-office/src/scratchpad.ts +0 -49
  1466. package/dist/node_modules/@dalcode/dal-office/src/themes.ts +0 -240
  1467. package/dist/node_modules/@dalcode/dal-office/src/tools/chart-generate.ts +0 -131
  1468. package/dist/node_modules/@dalcode/dal-office/src/tools/doc-generate.ts +0 -123
  1469. package/dist/node_modules/@dalcode/dal-office/src/tools/drawio-generate.ts +0 -99
  1470. package/dist/node_modules/@dalcode/dal-office/src/tools/md-generate.ts +0 -76
  1471. package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-generate.ts +0 -110
  1472. package/dist/node_modules/@dalcode/dal-office/src/tools/ppt-plan.ts +0 -91
  1473. package/dist/node_modules/@dalcode/dal-office/src/tools/read-file.ts +0 -71
  1474. package/dist/node_modules/@dalcode/dal-office/src/tools/shared.ts +0 -54
  1475. package/dist/node_modules/@dalcode/dal-office/src/tools/sheet-generate.ts +0 -101
  1476. package/dist/node_modules/@dalcode/dal-office/src/truncate.ts +0 -27
  1477. package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.d.ts +0 -25
  1478. package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.d.ts.map +0 -1
  1479. package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js.map +0 -1
  1480. package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.d.ts +0 -2
  1481. package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.d.ts.map +0 -1
  1482. package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.js.map +0 -1
  1483. package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.ts +0 -735
  1484. package/dist/node_modules/@dalcode/dal-pi-kit/src/index.ts +0 -1
  1485. package/dist/node_modules/@dalcode/dal-router/src/classifier.ts +0 -80
  1486. package/dist/node_modules/@dalcode/dal-router/src/commands.ts +0 -104
  1487. package/dist/node_modules/@dalcode/dal-router/src/config.ts +0 -137
  1488. package/dist/node_modules/@dalcode/dal-router/src/features.ts +0 -85
  1489. package/dist/node_modules/@dalcode/dal-router/src/index.ts +0 -236
  1490. package/dist/node_modules/@dalcode/dal-router/src/router.ts +0 -150
  1491. package/dist/node_modules/@dalcode/dal-router/src/runtime.ts +0 -88
  1492. package/dist/node_modules/@dalcode/dal-router/src/small-model.ts +0 -36
  1493. package/dist/node_modules/@dalcode/dal-router/src/subagent.ts +0 -58
  1494. package/dist/node_modules/@dalcode/dal-router/src/tiers.ts +0 -187
  1495. package/dist/node_modules/@dalcode/dal-skills/src/client.ts +0 -96
  1496. package/dist/node_modules/@dalcode/dal-skills/src/discover.ts +0 -101
  1497. package/dist/node_modules/@dalcode/dal-skills/src/index.ts +0 -309
  1498. package/dist/node_modules/@dalcode/dal-skills/src/install.ts +0 -140
  1499. package/dist/node_modules/@dalcode/dal-skills/src/manage.ts +0 -446
  1500. package/dist/node_modules/@dalcode/dal-skills/src/packages.ts +0 -130
  1501. package/dist/node_modules/@dalcode/dal-subagent/src/index.ts +0 -273
  1502. package/dist/node_modules/@dalcode/dal-telemetry/src/config.ts +0 -137
  1503. package/dist/node_modules/@dalcode/dal-telemetry/src/index.ts +0 -176
  1504. package/dist/node_modules/@dalcode/dal-telemetry/src/redact.ts +0 -98
  1505. package/dist/node_modules/@dalcode/dal-telemetry/src/reporter.ts +0 -145
  1506. package/dist/node_modules/@dalcode/deepailab/src/cache.ts +0 -62
  1507. package/dist/node_modules/@dalcode/deepailab/src/index.ts +0 -579
  1508. package/dist/node_modules/@dalcode/deepailab/src/model-defaults.ts +0 -276
  1509. package/dist/node_modules/@dalcode/deepailab/src/oidc.ts +0 -507
  1510. package/dist/node_modules/@earendil-works/chord/dist/api.d.ts +0 -15
  1511. package/dist/node_modules/@earendil-works/chord/dist/api.d.ts.map +0 -1
  1512. package/dist/node_modules/@earendil-works/chord/dist/api.js.map +0 -1
  1513. package/dist/node_modules/@earendil-works/chord/dist/bundler.d.ts +0 -6
  1514. package/dist/node_modules/@earendil-works/chord/dist/bundler.d.ts.map +0 -1
  1515. package/dist/node_modules/@earendil-works/chord/dist/bundler.js.map +0 -1
  1516. package/dist/node_modules/@earendil-works/chord/dist/context/index.d.ts +0 -24
  1517. package/dist/node_modules/@earendil-works/chord/dist/context/index.d.ts.map +0 -1
  1518. package/dist/node_modules/@earendil-works/chord/dist/context/index.js.map +0 -1
  1519. package/dist/node_modules/@earendil-works/chord/dist/delta/index.d.ts +0 -119
  1520. package/dist/node_modules/@earendil-works/chord/dist/delta/index.d.ts.map +0 -1
  1521. package/dist/node_modules/@earendil-works/chord/dist/delta/index.js.map +0 -1
  1522. package/dist/node_modules/@earendil-works/chord/dist/facets/host.d.ts +0 -12
  1523. package/dist/node_modules/@earendil-works/chord/dist/facets/host.d.ts.map +0 -1
  1524. package/dist/node_modules/@earendil-works/chord/dist/facets/host.js.map +0 -1
  1525. package/dist/node_modules/@earendil-works/chord/dist/facets/loader.d.ts +0 -3
  1526. package/dist/node_modules/@earendil-works/chord/dist/facets/loader.d.ts.map +0 -1
  1527. package/dist/node_modules/@earendil-works/chord/dist/facets/loader.js.map +0 -1
  1528. package/dist/node_modules/@earendil-works/chord/dist/index.d.ts +0 -11
  1529. package/dist/node_modules/@earendil-works/chord/dist/index.d.ts.map +0 -1
  1530. package/dist/node_modules/@earendil-works/chord/dist/index.js.map +0 -1
  1531. package/dist/node_modules/@earendil-works/chord/dist/json.d.ts +0 -4
  1532. package/dist/node_modules/@earendil-works/chord/dist/json.d.ts.map +0 -1
  1533. package/dist/node_modules/@earendil-works/chord/dist/json.js.map +0 -1
  1534. package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.d.ts +0 -30
  1535. package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.d.ts.map +0 -1
  1536. package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.js.map +0 -1
  1537. package/dist/node_modules/@earendil-works/chord/dist/node/bundle.d.ts +0 -26
  1538. package/dist/node_modules/@earendil-works/chord/dist/node/bundle.d.ts.map +0 -1
  1539. package/dist/node_modules/@earendil-works/chord/dist/node/bundle.js.map +0 -1
  1540. package/dist/node_modules/@earendil-works/chord/dist/node/manifest.d.ts +0 -36
  1541. package/dist/node_modules/@earendil-works/chord/dist/node/manifest.d.ts.map +0 -1
  1542. package/dist/node_modules/@earendil-works/chord/dist/node/manifest.js.map +0 -1
  1543. package/dist/node_modules/@earendil-works/chord/dist/node/package.d.ts +0 -15
  1544. package/dist/node_modules/@earendil-works/chord/dist/node/package.d.ts.map +0 -1
  1545. package/dist/node_modules/@earendil-works/chord/dist/node/package.js.map +0 -1
  1546. package/dist/node_modules/@earendil-works/chord/dist/node.d.ts +0 -5
  1547. package/dist/node_modules/@earendil-works/chord/dist/node.d.ts.map +0 -1
  1548. package/dist/node_modules/@earendil-works/chord/dist/node.js.map +0 -1
  1549. package/dist/node_modules/@earendil-works/chord/dist/services/consumer.d.ts +0 -11
  1550. package/dist/node_modules/@earendil-works/chord/dist/services/consumer.d.ts.map +0 -1
  1551. package/dist/node_modules/@earendil-works/chord/dist/services/consumer.js.map +0 -1
  1552. package/dist/node_modules/@earendil-works/chord/dist/services/errors.d.ts +0 -8
  1553. package/dist/node_modules/@earendil-works/chord/dist/services/errors.d.ts.map +0 -1
  1554. package/dist/node_modules/@earendil-works/chord/dist/services/errors.js.map +0 -1
  1555. package/dist/node_modules/@earendil-works/chord/dist/services/handle.d.ts +0 -15
  1556. package/dist/node_modules/@earendil-works/chord/dist/services/handle.d.ts.map +0 -1
  1557. package/dist/node_modules/@earendil-works/chord/dist/services/handle.js.map +0 -1
  1558. package/dist/node_modules/@earendil-works/chord/dist/services/instances.d.ts +0 -25
  1559. package/dist/node_modules/@earendil-works/chord/dist/services/instances.d.ts.map +0 -1
  1560. package/dist/node_modules/@earendil-works/chord/dist/services/instances.js.map +0 -1
  1561. package/dist/node_modules/@earendil-works/chord/dist/services/loopback.d.ts +0 -5
  1562. package/dist/node_modules/@earendil-works/chord/dist/services/loopback.d.ts.map +0 -1
  1563. package/dist/node_modules/@earendil-works/chord/dist/services/loopback.js.map +0 -1
  1564. package/dist/node_modules/@earendil-works/chord/dist/services/provider.d.ts +0 -37
  1565. package/dist/node_modules/@earendil-works/chord/dist/services/provider.d.ts.map +0 -1
  1566. package/dist/node_modules/@earendil-works/chord/dist/services/provider.js.map +0 -1
  1567. package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.d.ts +0 -15
  1568. package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.d.ts.map +0 -1
  1569. package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.js.map +0 -1
  1570. package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.d.ts +0 -11
  1571. package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.d.ts.map +0 -1
  1572. package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.js.map +0 -1
  1573. package/dist/node_modules/@earendil-works/chord/dist/services/state.d.ts +0 -23
  1574. package/dist/node_modules/@earendil-works/chord/dist/services/state.d.ts.map +0 -1
  1575. package/dist/node_modules/@earendil-works/chord/dist/services/state.js.map +0 -1
  1576. package/dist/node_modules/@earendil-works/chord/dist/services/wire.d.ts +0 -60
  1577. package/dist/node_modules/@earendil-works/chord/dist/services/wire.d.ts.map +0 -1
  1578. package/dist/node_modules/@earendil-works/chord/dist/services/wire.js.map +0 -1
  1579. package/dist/node_modules/@earendil-works/chord/dist/types.d.ts +0 -203
  1580. package/dist/node_modules/@earendil-works/chord/dist/types.d.ts.map +0 -1
  1581. package/dist/node_modules/@earendil-works/chord/dist/types.js.map +0 -1
  1582. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts +0 -24
  1583. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +0 -1
  1584. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +0 -1
  1585. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +0 -122
  1586. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +0 -1
  1587. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +0 -1
  1588. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts +0 -716
  1589. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts.map +0 -1
  1590. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js.map +0 -1
  1591. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts +0 -68
  1592. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +0 -1
  1593. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js.map +0 -1
  1594. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +0 -126
  1595. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +0 -1
  1596. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +0 -1
  1597. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts +0 -25
  1598. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts.map +0 -1
  1599. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js.map +0 -1
  1600. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts +0 -9
  1601. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts.map +0 -1
  1602. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js.map +0 -1
  1603. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts +0 -9
  1604. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts.map +0 -1
  1605. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js.map +0 -1
  1606. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts +0 -42
  1607. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts.map +0 -1
  1608. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js.map +0 -1
  1609. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts +0 -25
  1610. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts.map +0 -1
  1611. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js.map +0 -1
  1612. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts +0 -42
  1613. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts.map +0 -1
  1614. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js.map +0 -1
  1615. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts +0 -22
  1616. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts.map +0 -1
  1617. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js.map +0 -1
  1618. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts +0 -67
  1619. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts.map +0 -1
  1620. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js.map +0 -1
  1621. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts +0 -38
  1622. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts.map +0 -1
  1623. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js.map +0 -1
  1624. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +0 -51
  1625. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +0 -1
  1626. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +0 -1
  1627. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts +0 -49
  1628. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts.map +0 -1
  1629. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js.map +0 -1
  1630. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts +0 -100
  1631. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts.map +0 -1
  1632. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js +0 -415
  1633. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js.map +0 -1
  1634. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts +0 -133
  1635. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts.map +0 -1
  1636. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js.map +0 -1
  1637. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts +0 -28
  1638. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts.map +0 -1
  1639. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js.map +0 -1
  1640. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts +0 -8
  1641. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts.map +0 -1
  1642. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js.map +0 -1
  1643. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts +0 -15
  1644. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts.map +0 -1
  1645. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js.map +0 -1
  1646. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts +0 -8
  1647. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts.map +0 -1
  1648. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js.map +0 -1
  1649. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts +0 -5
  1650. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts.map +0 -1
  1651. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js.map +0 -1
  1652. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts +0 -8
  1653. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts.map +0 -1
  1654. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js.map +0 -1
  1655. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts +0 -23
  1656. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts.map +0 -1
  1657. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js.map +0 -1
  1658. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts +0 -4
  1659. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts.map +0 -1
  1660. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js.map +0 -1
  1661. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts +0 -32
  1662. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts.map +0 -1
  1663. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js.map +0 -1
  1664. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts +0 -7
  1665. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts.map +0 -1
  1666. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js.map +0 -1
  1667. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts +0 -14
  1668. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts.map +0 -1
  1669. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js.map +0 -1
  1670. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts +0 -6
  1671. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts.map +0 -1
  1672. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js.map +0 -1
  1673. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts +0 -6
  1674. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts.map +0 -1
  1675. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js.map +0 -1
  1676. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts +0 -59
  1677. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts.map +0 -1
  1678. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js.map +0 -1
  1679. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts +0 -2
  1680. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts.map +0 -1
  1681. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js.map +0 -1
  1682. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts +0 -101
  1683. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts.map +0 -1
  1684. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js.map +0 -1
  1685. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts +0 -15
  1686. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts.map +0 -1
  1687. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js.map +0 -1
  1688. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts +0 -5
  1689. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts.map +0 -1
  1690. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js.map +0 -1
  1691. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts +0 -24
  1692. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts.map +0 -1
  1693. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js.map +0 -1
  1694. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts +0 -21
  1695. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts.map +0 -1
  1696. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js.map +0 -1
  1697. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts +0 -105
  1698. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts.map +0 -1
  1699. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js.map +0 -1
  1700. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts +0 -53
  1701. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts.map +0 -1
  1702. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js.map +0 -1
  1703. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts +0 -10
  1704. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts.map +0 -1
  1705. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js.map +0 -1
  1706. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts +0 -13
  1707. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts.map +0 -1
  1708. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js.map +0 -1
  1709. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts +0 -18
  1710. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts.map +0 -1
  1711. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js.map +0 -1
  1712. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts +0 -39
  1713. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts.map +0 -1
  1714. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js.map +0 -1
  1715. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts +0 -11
  1716. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts.map +0 -1
  1717. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js.map +0 -1
  1718. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts +0 -21
  1719. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts.map +0 -1
  1720. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js.map +0 -1
  1721. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts +0 -9
  1722. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts.map +0 -1
  1723. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js +0 -19
  1724. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js.map +0 -1
  1725. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts +0 -4
  1726. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts.map +0 -1
  1727. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js.map +0 -1
  1728. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts +0 -18
  1729. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts.map +0 -1
  1730. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js.map +0 -1
  1731. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts +0 -34
  1732. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts.map +0 -1
  1733. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js.map +0 -1
  1734. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts +0 -41
  1735. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts.map +0 -1
  1736. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js.map +0 -1
  1737. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts +0 -39
  1738. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts.map +0 -1
  1739. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js.map +0 -1
  1740. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts +0 -26
  1741. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts.map +0 -1
  1742. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +0 -103
  1743. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js.map +0 -1
  1744. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts +0 -42
  1745. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts.map +0 -1
  1746. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +0 -293
  1747. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js.map +0 -1
  1748. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts +0 -3
  1749. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts.map +0 -1
  1750. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js +0 -2
  1751. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js.map +0 -1
  1752. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts +0 -18
  1753. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts.map +0 -1
  1754. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js +0 -42
  1755. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js.map +0 -1
  1756. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts +0 -33
  1757. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts.map +0 -1
  1758. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +0 -168
  1759. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js.map +0 -1
  1760. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts +0 -50
  1761. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts.map +0 -1
  1762. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js.map +0 -1
  1763. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts +0 -8
  1764. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts.map +0 -1
  1765. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js.map +0 -1
  1766. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts +0 -11
  1767. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts.map +0 -1
  1768. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js +0 -39
  1769. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js.map +0 -1
  1770. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts +0 -82
  1771. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts.map +0 -1
  1772. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js.map +0 -1
  1773. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts +0 -65
  1774. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts.map +0 -1
  1775. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js +0 -319
  1776. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js.map +0 -1
  1777. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts +0 -12
  1778. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts.map +0 -1
  1779. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js.map +0 -1
  1780. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts +0 -42
  1781. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts.map +0 -1
  1782. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js.map +0 -1
  1783. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts +0 -25
  1784. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts.map +0 -1
  1785. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js.map +0 -1
  1786. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts +0 -21
  1787. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts.map +0 -1
  1788. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js.map +0 -1
  1789. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts +0 -4
  1790. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts.map +0 -1
  1791. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js.map +0 -1
  1792. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts +0 -4
  1793. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts.map +0 -1
  1794. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js +0 -762
  1795. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js.map +0 -1
  1796. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts +0 -26
  1797. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts.map +0 -1
  1798. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js.map +0 -1
  1799. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts +0 -10
  1800. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts.map +0 -1
  1801. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js.map +0 -1
  1802. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts +0 -11
  1803. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts.map +0 -1
  1804. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js.map +0 -1
  1805. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts +0 -20
  1806. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts.map +0 -1
  1807. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js.map +0 -1
  1808. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts +0 -12
  1809. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts.map +0 -1
  1810. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.js.map +0 -1
  1811. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts +0 -511
  1812. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts.map +0 -1
  1813. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js.map +0 -1
  1814. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts +0 -95
  1815. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts.map +0 -1
  1816. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js.map +0 -1
  1817. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts +0 -46
  1818. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts.map +0 -1
  1819. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js.map +0 -1
  1820. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts +0 -3
  1821. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts.map +0 -1
  1822. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js.map +0 -1
  1823. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts +0 -1242
  1824. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts.map +0 -1
  1825. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js.map +0 -1
  1826. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts +0 -27
  1827. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts.map +0 -1
  1828. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js.map +0 -1
  1829. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.d.ts +0 -89
  1830. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.d.ts.map +0 -1
  1831. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.js.map +0 -1
  1832. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts +0 -19
  1833. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts.map +0 -1
  1834. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js.map +0 -1
  1835. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts +0 -5
  1836. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts.map +0 -1
  1837. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js.map +0 -1
  1838. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.d.ts +0 -3
  1839. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.d.ts.map +0 -1
  1840. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.js.map +0 -1
  1841. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.d.ts +0 -6
  1842. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.d.ts.map +0 -1
  1843. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.js.map +0 -1
  1844. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts +0 -5
  1845. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts.map +0 -1
  1846. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js.map +0 -1
  1847. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts +0 -35
  1848. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts.map +0 -1
  1849. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js.map +0 -1
  1850. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.d.ts +0 -6
  1851. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.d.ts.map +0 -1
  1852. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.js.map +0 -1
  1853. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts +0 -11
  1854. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts.map +0 -1
  1855. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js.map +0 -1
  1856. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +0 -291
  1857. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +0 -1
  1858. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +0 -1
  1859. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts +0 -24
  1860. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts.map +0 -1
  1861. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js.map +0 -1
  1862. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts +0 -31
  1863. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts.map +0 -1
  1864. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js.map +0 -1
  1865. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts +0 -29
  1866. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts.map +0 -1
  1867. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js.map +0 -1
  1868. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts +0 -71
  1869. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts.map +0 -1
  1870. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js.map +0 -1
  1871. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts +0 -4
  1872. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts.map +0 -1
  1873. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js.map +0 -1
  1874. package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +0 -28
  1875. package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +0 -1
  1876. package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +0 -1
  1877. package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts +0 -3
  1878. package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts.map +0 -1
  1879. package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.js.map +0 -1
  1880. package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +0 -72
  1881. package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts.map +0 -1
  1882. package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.js.map +0 -1
  1883. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts +0 -29
  1884. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts.map +0 -1
  1885. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.js.map +0 -1
  1886. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts +0 -29
  1887. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts.map +0 -1
  1888. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js +0 -103
  1889. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js.map +0 -1
  1890. package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.d.ts +0 -10
  1891. package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.d.ts.map +0 -1
  1892. package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.js.map +0 -1
  1893. package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +0 -416
  1894. package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +0 -1
  1895. package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +0 -1
  1896. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts +0 -71
  1897. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts.map +0 -1
  1898. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js.map +0 -1
  1899. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.d.ts +0 -3
  1900. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.d.ts.map +0 -1
  1901. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.js.map +0 -1
  1902. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts +0 -17
  1903. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts.map +0 -1
  1904. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js.map +0 -1
  1905. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.d.ts +0 -3
  1906. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.d.ts.map +0 -1
  1907. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.js.map +0 -1
  1908. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts +0 -38
  1909. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts.map +0 -1
  1910. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js.map +0 -1
  1911. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts +0 -9
  1912. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts.map +0 -1
  1913. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.js.map +0 -1
  1914. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts +0 -77
  1915. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts.map +0 -1
  1916. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.js.map +0 -1
  1917. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts +0 -69
  1918. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts.map +0 -1
  1919. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js +0 -159
  1920. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js.map +0 -1
  1921. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.d.ts +0 -9
  1922. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.d.ts.map +0 -1
  1923. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js.map +0 -1
  1924. package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.d.ts +0 -20
  1925. package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.d.ts.map +0 -1
  1926. package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js.map +0 -1
  1927. package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.d.ts +0 -8
  1928. package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.d.ts.map +0 -1
  1929. package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js.map +0 -1
  1930. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts +0 -13
  1931. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts.map +0 -1
  1932. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js.map +0 -1
  1933. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.d.ts +0 -3
  1934. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.d.ts.map +0 -1
  1935. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js.map +0 -1
  1936. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.ts +0 -93
  1937. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.ts.map +0 -1
  1938. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js.map +0 -1
  1939. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts +0 -15
  1940. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts.map +0 -1
  1941. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js.map +0 -1
  1942. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.d.ts +0 -3
  1943. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.d.ts.map +0 -1
  1944. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js.map +0 -1
  1945. package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts +0 -19
  1946. package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts.map +0 -1
  1947. package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.js.map +0 -1
  1948. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts +0 -25
  1949. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts.map +0 -1
  1950. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js.map +0 -1
  1951. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.d.ts +0 -3
  1952. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.d.ts.map +0 -1
  1953. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js.map +0 -1
  1954. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts +0 -31
  1955. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts.map +0 -1
  1956. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js.map +0 -1
  1957. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.d.ts +0 -3
  1958. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.d.ts.map +0 -1
  1959. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js.map +0 -1
  1960. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts +0 -24
  1961. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts.map +0 -1
  1962. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js.map +0 -1
  1963. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.d.ts +0 -3
  1964. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.d.ts.map +0 -1
  1965. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.js.map +0 -1
  1966. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.d.ts +0 -3
  1967. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.d.ts.map +0 -1
  1968. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.js.map +0 -1
  1969. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.d.ts +0 -26
  1970. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.d.ts.map +0 -1
  1971. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js.map +0 -1
  1972. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts +0 -14
  1973. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts.map +0 -1
  1974. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js.map +0 -1
  1975. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.d.ts +0 -3
  1976. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.d.ts.map +0 -1
  1977. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.js.map +0 -1
  1978. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.d.ts +0 -3
  1979. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.d.ts.map +0 -1
  1980. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js.map +0 -1
  1981. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.d.ts +0 -3
  1982. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.d.ts.map +0 -1
  1983. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.js.map +0 -1
  1984. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts +0 -99
  1985. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts.map +0 -1
  1986. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js.map +0 -1
  1987. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.d.ts +0 -3
  1988. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.d.ts.map +0 -1
  1989. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.js.map +0 -1
  1990. package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts +0 -15
  1991. package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts.map +0 -1
  1992. package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js.map +0 -1
  1993. package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.d.ts +0 -8
  1994. package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.d.ts.map +0 -1
  1995. package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js.map +0 -1
  1996. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.d.ts +0 -7
  1997. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.d.ts.map +0 -1
  1998. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.js.map +0 -1
  1999. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.ts +0 -17
  2000. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.ts.map +0 -1
  2001. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.js.map +0 -1
  2002. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.ts +0 -22
  2003. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.ts.map +0 -1
  2004. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js.map +0 -1
  2005. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.d.ts +0 -9
  2006. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.d.ts.map +0 -1
  2007. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js.map +0 -1
  2008. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.d.ts +0 -24
  2009. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.d.ts.map +0 -1
  2010. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.js.map +0 -1
  2011. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts +0 -6
  2012. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts.map +0 -1
  2013. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js.map +0 -1
  2014. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts +0 -10
  2015. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts.map +0 -1
  2016. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js.map +0 -1
  2017. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.d.ts +0 -27
  2018. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.d.ts.map +0 -1
  2019. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js.map +0 -1
  2020. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.d.ts +0 -3
  2021. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.d.ts.map +0 -1
  2022. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.js.map +0 -1
  2023. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.d.ts +0 -9
  2024. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.d.ts.map +0 -1
  2025. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js.map +0 -1
  2026. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.d.ts +0 -15
  2027. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.d.ts.map +0 -1
  2028. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js.map +0 -1
  2029. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.d.ts +0 -13
  2030. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.d.ts.map +0 -1
  2031. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.js.map +0 -1
  2032. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.d.ts +0 -17
  2033. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.d.ts.map +0 -1
  2034. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js.map +0 -1
  2035. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.d.ts +0 -6
  2036. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.d.ts.map +0 -1
  2037. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.js.map +0 -1
  2038. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts +0 -28
  2039. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts.map +0 -1
  2040. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js.map +0 -1
  2041. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts +0 -231
  2042. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts.map +0 -1
  2043. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.js.map +0 -1
  2044. package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts +0 -5
  2045. package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts.map +0 -1
  2046. package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js.map +0 -1
  2047. package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.d.ts +0 -3
  2048. package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.d.ts.map +0 -1
  2049. package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js.map +0 -1
  2050. package/dist/node_modules/@earendil-works/pi-ai/dist/cli.d.ts +0 -3
  2051. package/dist/node_modules/@earendil-works/pi-ai/dist/cli.d.ts.map +0 -1
  2052. package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js.map +0 -1
  2053. package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts +0 -39
  2054. package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts.map +0 -1
  2055. package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.js.map +0 -1
  2056. package/dist/node_modules/@earendil-works/pi-ai/dist/compat.d.ts +0 -67
  2057. package/dist/node_modules/@earendil-works/pi-ai/dist/compat.d.ts.map +0 -1
  2058. package/dist/node_modules/@earendil-works/pi-ai/dist/compat.js.map +0 -1
  2059. package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts +0 -22
  2060. package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts.map +0 -1
  2061. package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js.map +0 -1
  2062. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts +0 -10
  2063. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts.map +0 -1
  2064. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +0 -815
  2065. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts.map +0 -1
  2066. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js.map +0 -1
  2067. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.js.map +0 -1
  2068. package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts +0 -14
  2069. package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts.map +0 -1
  2070. package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js.map +0 -1
  2071. package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.d.ts +0 -95
  2072. package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.d.ts.map +0 -1
  2073. package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.js.map +0 -1
  2074. package/dist/node_modules/@earendil-works/pi-ai/dist/images.d.ts +0 -4
  2075. package/dist/node_modules/@earendil-works/pi-ai/dist/images.d.ts.map +0 -1
  2076. package/dist/node_modules/@earendil-works/pi-ai/dist/images.js.map +0 -1
  2077. package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts +0 -38
  2078. package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +0 -1
  2079. package/dist/node_modules/@earendil-works/pi-ai/dist/index.js.map +0 -1
  2080. package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.d.ts +0 -42
  2081. package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.d.ts.map +0 -1
  2082. package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.js.map +0 -1
  2083. package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.d.ts +0 -17
  2084. package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.d.ts.map +0 -1
  2085. package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.js.map +0 -1
  2086. package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.d.ts +0 -29
  2087. package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.d.ts.map +0 -1
  2088. package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.js.map +0 -1
  2089. package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts +0 -211
  2090. package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +0 -1
  2091. package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +0 -81
  2092. package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +0 -1
  2093. package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +0 -1
  2094. package/dist/node_modules/@earendil-works/pi-ai/dist/models.js.map +0 -1
  2095. package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts +0 -3
  2096. package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts.map +0 -1
  2097. package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.js.map +0 -1
  2098. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.d.ts +0 -28
  2099. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.d.ts.map +0 -1
  2100. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.js.map +0 -1
  2101. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts +0 -3
  2102. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +0 -1
  2103. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +0 -1
  2104. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.d.ts +0 -4
  2105. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.d.ts.map +0 -1
  2106. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js.map +0 -1
  2107. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.d.ts +0 -3
  2108. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.d.ts.map +0 -1
  2109. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.js.map +0 -1
  2110. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.d.ts +0 -4
  2111. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.d.ts.map +0 -1
  2112. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js.map +0 -1
  2113. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts +0 -3
  2114. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +0 -1
  2115. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +0 -1
  2116. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.d.ts +0 -4
  2117. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.d.ts.map +0 -1
  2118. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js.map +0 -1
  2119. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts +0 -3
  2120. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts.map +0 -1
  2121. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js.map +0 -1
  2122. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.d.ts +0 -4
  2123. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.d.ts.map +0 -1
  2124. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js.map +0 -1
  2125. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.d.ts +0 -3
  2126. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.d.ts.map +0 -1
  2127. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.js.map +0 -1
  2128. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.d.ts +0 -4
  2129. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.d.ts.map +0 -1
  2130. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js.map +0 -1
  2131. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.d.ts +0 -3
  2132. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.d.ts.map +0 -1
  2133. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.js.map +0 -1
  2134. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.d.ts +0 -4
  2135. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.d.ts.map +0 -1
  2136. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js.map +0 -1
  2137. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts +0 -3
  2138. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts.map +0 -1
  2139. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js.map +0 -1
  2140. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.d.ts +0 -4
  2141. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.d.ts.map +0 -1
  2142. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js.map +0 -1
  2143. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.d.ts +0 -4
  2144. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.d.ts.map +0 -1
  2145. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.js.map +0 -1
  2146. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.d.ts +0 -8
  2147. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.d.ts.map +0 -1
  2148. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js.map +0 -1
  2149. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.d.ts +0 -3
  2150. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.d.ts.map +0 -1
  2151. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js.map +0 -1
  2152. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.d.ts +0 -4
  2153. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.d.ts.map +0 -1
  2154. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js.map +0 -1
  2155. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.d.ts +0 -3
  2156. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.d.ts.map +0 -1
  2157. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.js.map +0 -1
  2158. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.d.ts +0 -4
  2159. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.d.ts.map +0 -1
  2160. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js.map +0 -1
  2161. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts +0 -102
  2162. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts.map +0 -1
  2163. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.js.map +0 -1
  2164. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.d.ts +0 -3
  2165. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.d.ts.map +0 -1
  2166. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.js.map +0 -1
  2167. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.d.ts +0 -4
  2168. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.d.ts.map +0 -1
  2169. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js.map +0 -1
  2170. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.d.ts +0 -3
  2171. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.d.ts.map +0 -1
  2172. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.js.map +0 -1
  2173. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.d.ts +0 -4
  2174. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.d.ts.map +0 -1
  2175. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js.map +0 -1
  2176. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts +0 -3
  2177. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts.map +0 -1
  2178. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js.map +0 -1
  2179. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.d.ts +0 -4
  2180. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.d.ts.map +0 -1
  2181. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js.map +0 -1
  2182. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts +0 -3
  2183. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts.map +0 -1
  2184. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.js.map +0 -1
  2185. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.d.ts +0 -4
  2186. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.d.ts.map +0 -1
  2187. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js.map +0 -1
  2188. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.d.ts +0 -3
  2189. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.d.ts.map +0 -1
  2190. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.js.map +0 -1
  2191. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.d.ts +0 -4
  2192. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.d.ts.map +0 -1
  2193. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js.map +0 -1
  2194. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.d.ts +0 -3
  2195. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.d.ts.map +0 -1
  2196. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.js.map +0 -1
  2197. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.d.ts +0 -4
  2198. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.d.ts.map +0 -1
  2199. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js.map +0 -1
  2200. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts +0 -4
  2201. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts.map +0 -1
  2202. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js.map +0 -1
  2203. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts +0 -3
  2204. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts.map +0 -1
  2205. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js.map +0 -1
  2206. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.d.ts +0 -4
  2207. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.d.ts.map +0 -1
  2208. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js.map +0 -1
  2209. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.d.ts +0 -3
  2210. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.d.ts.map +0 -1
  2211. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.js.map +0 -1
  2212. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.d.ts +0 -4
  2213. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.d.ts.map +0 -1
  2214. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js.map +0 -1
  2215. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.d.ts +0 -3
  2216. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.d.ts.map +0 -1
  2217. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.js.map +0 -1
  2218. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.d.ts +0 -4
  2219. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.d.ts.map +0 -1
  2220. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js.map +0 -1
  2221. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts +0 -3
  2222. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts.map +0 -1
  2223. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js.map +0 -1
  2224. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.d.ts +0 -4
  2225. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.d.ts.map +0 -1
  2226. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js.map +0 -1
  2227. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.d.ts +0 -3
  2228. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.d.ts.map +0 -1
  2229. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.js.map +0 -1
  2230. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.d.ts +0 -4
  2231. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.d.ts.map +0 -1
  2232. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js.map +0 -1
  2233. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.d.ts +0 -3
  2234. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.d.ts.map +0 -1
  2235. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.js.map +0 -1
  2236. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.d.ts +0 -4
  2237. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.d.ts.map +0 -1
  2238. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js.map +0 -1
  2239. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.d.ts +0 -3
  2240. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.d.ts.map +0 -1
  2241. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.js.map +0 -1
  2242. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.d.ts +0 -4
  2243. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.d.ts.map +0 -1
  2244. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js.map +0 -1
  2245. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.d.ts +0 -3
  2246. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.d.ts.map +0 -1
  2247. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js.map +0 -1
  2248. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.d.ts +0 -4
  2249. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.d.ts.map +0 -1
  2250. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js.map +0 -1
  2251. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.d.ts +0 -3
  2252. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.d.ts.map +0 -1
  2253. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.js.map +0 -1
  2254. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.d.ts +0 -4
  2255. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.d.ts.map +0 -1
  2256. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js.map +0 -1
  2257. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.d.ts +0 -3
  2258. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.d.ts.map +0 -1
  2259. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js.map +0 -1
  2260. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.d.ts +0 -4
  2261. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.d.ts.map +0 -1
  2262. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js.map +0 -1
  2263. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.d.ts +0 -3
  2264. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.d.ts.map +0 -1
  2265. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js.map +0 -1
  2266. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.d.ts +0 -4
  2267. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.d.ts.map +0 -1
  2268. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js.map +0 -1
  2269. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.d.ts +0 -3
  2270. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.d.ts.map +0 -1
  2271. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js.map +0 -1
  2272. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts +0 -3
  2273. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts.map +0 -1
  2274. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js.map +0 -1
  2275. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.d.ts +0 -4
  2276. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.d.ts.map +0 -1
  2277. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js.map +0 -1
  2278. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.d.ts +0 -3
  2279. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.d.ts.map +0 -1
  2280. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.js.map +0 -1
  2281. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.d.ts +0 -4
  2282. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.d.ts.map +0 -1
  2283. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js.map +0 -1
  2284. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.d.ts +0 -3
  2285. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.d.ts.map +0 -1
  2286. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.js.map +0 -1
  2287. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.d.ts +0 -4
  2288. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.d.ts.map +0 -1
  2289. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js.map +0 -1
  2290. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.d.ts +0 -3
  2291. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.d.ts.map +0 -1
  2292. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.js.map +0 -1
  2293. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.d.ts +0 -4
  2294. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.d.ts.map +0 -1
  2295. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js.map +0 -1
  2296. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.d.ts +0 -26
  2297. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.d.ts.map +0 -1
  2298. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js.map +0 -1
  2299. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.d.ts +0 -9
  2300. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.d.ts.map +0 -1
  2301. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.js.map +0 -1
  2302. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.d.ts +0 -3
  2303. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.d.ts.map +0 -1
  2304. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.js.map +0 -1
  2305. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.d.ts +0 -4
  2306. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.d.ts.map +0 -1
  2307. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js.map +0 -1
  2308. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.d.ts +0 -3
  2309. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.d.ts.map +0 -1
  2310. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.js.map +0 -1
  2311. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.d.ts +0 -4
  2312. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.d.ts.map +0 -1
  2313. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js.map +0 -1
  2314. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.d.ts +0 -3
  2315. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.d.ts.map +0 -1
  2316. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.js.map +0 -1
  2317. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.d.ts +0 -4
  2318. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.d.ts.map +0 -1
  2319. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js.map +0 -1
  2320. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.d.ts +0 -3
  2321. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.d.ts.map +0 -1
  2322. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.js.map +0 -1
  2323. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.d.ts +0 -4
  2324. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.d.ts.map +0 -1
  2325. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js.map +0 -1
  2326. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.d.ts +0 -3
  2327. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.d.ts.map +0 -1
  2328. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.js.map +0 -1
  2329. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.d.ts +0 -4
  2330. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.d.ts.map +0 -1
  2331. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js.map +0 -1
  2332. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.d.ts +0 -3
  2333. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.d.ts.map +0 -1
  2334. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.js.map +0 -1
  2335. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.d.ts +0 -4
  2336. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.d.ts.map +0 -1
  2337. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js.map +0 -1
  2338. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.d.ts +0 -3
  2339. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.d.ts.map +0 -1
  2340. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.js.map +0 -1
  2341. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.d.ts +0 -4
  2342. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.d.ts.map +0 -1
  2343. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js.map +0 -1
  2344. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.d.ts +0 -3
  2345. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.d.ts.map +0 -1
  2346. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.js.map +0 -1
  2347. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.d.ts +0 -4
  2348. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.d.ts.map +0 -1
  2349. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js.map +0 -1
  2350. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.d.ts +0 -3
  2351. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.d.ts.map +0 -1
  2352. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.js.map +0 -1
  2353. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.d.ts +0 -4
  2354. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.d.ts.map +0 -1
  2355. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js.map +0 -1
  2356. package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts +0 -4
  2357. package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts.map +0 -1
  2358. package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.js.map +0 -1
  2359. package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts +0 -745
  2360. package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +0 -1
  2361. package/dist/node_modules/@earendil-works/pi-ai/dist/types.js.map +0 -1
  2362. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.d.ts +0 -6
  2363. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.d.ts.map +0 -1
  2364. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js.map +0 -1
  2365. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.d.ts +0 -8
  2366. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.d.ts.map +0 -1
  2367. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.js.map +0 -1
  2368. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts +0 -77
  2369. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts.map +0 -1
  2370. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js.map +0 -1
  2371. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.d.ts +0 -9
  2372. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.d.ts.map +0 -1
  2373. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js.map +0 -1
  2374. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts +0 -19
  2375. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts.map +0 -1
  2376. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js.map +0 -1
  2377. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.d.ts +0 -25
  2378. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.d.ts.map +0 -1
  2379. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js.map +0 -1
  2380. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.d.ts +0 -17
  2381. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.d.ts.map +0 -1
  2382. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js.map +0 -1
  2383. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts +0 -21
  2384. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts.map +0 -1
  2385. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js.map +0 -1
  2386. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.d.ts +0 -3
  2387. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.d.ts.map +0 -1
  2388. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.js.map +0 -1
  2389. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.d.ts +0 -4
  2390. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.d.ts.map +0 -1
  2391. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.js.map +0 -1
  2392. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts +0 -16
  2393. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts.map +0 -1
  2394. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js.map +0 -1
  2395. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts +0 -4
  2396. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts.map +0 -1
  2397. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js.map +0 -1
  2398. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +0 -68
  2399. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +0 -1
  2400. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +0 -1
  2401. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.d.ts +0 -2
  2402. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.d.ts.map +0 -1
  2403. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.js.map +0 -1
  2404. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.d.ts +0 -7
  2405. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.d.ts.map +0 -1
  2406. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.js.map +0 -1
  2407. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.d.ts +0 -16
  2408. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.d.ts.map +0 -1
  2409. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.js.map +0 -1
  2410. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts +0 -53
  2411. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts.map +0 -1
  2412. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.js.map +0 -1
  2413. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.d.ts +0 -22
  2414. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.d.ts.map +0 -1
  2415. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.js.map +0 -1
  2416. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts +0 -2
  2417. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts.map +0 -1
  2418. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js.map +0 -1
  2419. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts +0 -6
  2420. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts.map +0 -1
  2421. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.js.map +0 -1
  2422. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts +0 -17
  2423. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts.map +0 -1
  2424. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js.map +0 -1
  2425. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts +0 -3
  2426. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts.map +0 -1
  2427. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js.map +0 -1
  2428. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts +0 -18
  2429. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts.map +0 -1
  2430. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.js.map +0 -1
  2431. package/dist/node_modules/@earendil-works/pi-client/dist/client.d.ts +0 -30
  2432. package/dist/node_modules/@earendil-works/pi-client/dist/client.d.ts.map +0 -1
  2433. package/dist/node_modules/@earendil-works/pi-client/dist/client.js.map +0 -1
  2434. package/dist/node_modules/@earendil-works/pi-client/dist/connection.d.ts +0 -25
  2435. package/dist/node_modules/@earendil-works/pi-client/dist/connection.d.ts.map +0 -1
  2436. package/dist/node_modules/@earendil-works/pi-client/dist/connection.js.map +0 -1
  2437. package/dist/node_modules/@earendil-works/pi-client/dist/errors.d.ts +0 -14
  2438. package/dist/node_modules/@earendil-works/pi-client/dist/errors.d.ts.map +0 -1
  2439. package/dist/node_modules/@earendil-works/pi-client/dist/errors.js.map +0 -1
  2440. package/dist/node_modules/@earendil-works/pi-client/dist/index.d.ts +0 -5
  2441. package/dist/node_modules/@earendil-works/pi-client/dist/index.d.ts.map +0 -1
  2442. package/dist/node_modules/@earendil-works/pi-client/dist/index.js.map +0 -1
  2443. package/dist/node_modules/@earendil-works/pi-client/dist/promise.d.ts +0 -8
  2444. package/dist/node_modules/@earendil-works/pi-client/dist/promise.d.ts.map +0 -1
  2445. package/dist/node_modules/@earendil-works/pi-client/dist/promise.js.map +0 -1
  2446. package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.d.ts +0 -58
  2447. package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.d.ts.map +0 -1
  2448. package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.js +0 -57
  2449. package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.js.map +0 -1
  2450. package/dist/node_modules/@earendil-works/pi-client/dist/state.d.ts +0 -22
  2451. package/dist/node_modules/@earendil-works/pi-client/dist/state.d.ts.map +0 -1
  2452. package/dist/node_modules/@earendil-works/pi-client/dist/state.js +0 -148
  2453. package/dist/node_modules/@earendil-works/pi-client/dist/state.js.map +0 -1
  2454. package/dist/node_modules/@earendil-works/pi-client/dist/transport.d.ts +0 -17
  2455. package/dist/node_modules/@earendil-works/pi-client/dist/transport.d.ts.map +0 -1
  2456. package/dist/node_modules/@earendil-works/pi-client/dist/transport.js.map +0 -1
  2457. package/dist/node_modules/@earendil-works/pi-client/dist/types.d.ts +0 -28
  2458. package/dist/node_modules/@earendil-works/pi-client/dist/types.d.ts.map +0 -1
  2459. package/dist/node_modules/@earendil-works/pi-client/dist/types.js.map +0 -1
  2460. package/dist/node_modules/@earendil-works/pi-client/dist/unix.d.ts +0 -21
  2461. package/dist/node_modules/@earendil-works/pi-client/dist/unix.d.ts.map +0 -1
  2462. package/dist/node_modules/@earendil-works/pi-client/dist/unix.js.map +0 -1
  2463. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.d.ts +0 -4
  2464. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.d.ts.map +0 -1
  2465. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.js.map +0 -1
  2466. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.d.ts +0 -4
  2467. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.d.ts.map +0 -1
  2468. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.js.map +0 -1
  2469. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.d.ts +0 -4
  2470. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.d.ts.map +0 -1
  2471. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.js.map +0 -1
  2472. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.d.ts +0 -26
  2473. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.d.ts.map +0 -1
  2474. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.js.map +0 -1
  2475. package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.d.ts +0 -27
  2476. package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.d.ts.map +0 -1
  2477. package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.js.map +0 -1
  2478. package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.d.ts +0 -27
  2479. package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.d.ts.map +0 -1
  2480. package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.js.map +0 -1
  2481. package/dist/node_modules/@earendil-works/pi-protocol/dist/index.d.ts +0 -5
  2482. package/dist/node_modules/@earendil-works/pi-protocol/dist/index.d.ts.map +0 -1
  2483. package/dist/node_modules/@earendil-works/pi-protocol/dist/index.js.map +0 -1
  2484. package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.d.ts +0 -167
  2485. package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.d.ts.map +0 -1
  2486. package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.js.map +0 -1
  2487. package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.d.ts +0 -14002
  2488. package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.d.ts.map +0 -1
  2489. package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.js.map +0 -1
  2490. package/dist/node_modules/@earendil-works/pi-server/dist/cli.d.ts +0 -3
  2491. package/dist/node_modules/@earendil-works/pi-server/dist/cli.d.ts.map +0 -1
  2492. package/dist/node_modules/@earendil-works/pi-server/dist/cli.js +0 -136
  2493. package/dist/node_modules/@earendil-works/pi-server/dist/cli.js.map +0 -1
  2494. package/dist/node_modules/@earendil-works/pi-server/dist/config.d.ts +0 -12
  2495. package/dist/node_modules/@earendil-works/pi-server/dist/config.d.ts.map +0 -1
  2496. package/dist/node_modules/@earendil-works/pi-server/dist/config.js +0 -55
  2497. package/dist/node_modules/@earendil-works/pi-server/dist/config.js.map +0 -1
  2498. package/dist/node_modules/@earendil-works/pi-server/dist/connection.d.ts +0 -35
  2499. package/dist/node_modules/@earendil-works/pi-server/dist/connection.d.ts.map +0 -1
  2500. package/dist/node_modules/@earendil-works/pi-server/dist/connection.js.map +0 -1
  2501. package/dist/node_modules/@earendil-works/pi-server/dist/errors.d.ts +0 -25
  2502. package/dist/node_modules/@earendil-works/pi-server/dist/errors.d.ts.map +0 -1
  2503. package/dist/node_modules/@earendil-works/pi-server/dist/errors.js.map +0 -1
  2504. package/dist/node_modules/@earendil-works/pi-server/dist/handler.d.ts +0 -14
  2505. package/dist/node_modules/@earendil-works/pi-server/dist/handler.d.ts.map +0 -1
  2506. package/dist/node_modules/@earendil-works/pi-server/dist/handler.js +0 -105
  2507. package/dist/node_modules/@earendil-works/pi-server/dist/handler.js.map +0 -1
  2508. package/dist/node_modules/@earendil-works/pi-server/dist/index.d.ts +0 -5
  2509. package/dist/node_modules/@earendil-works/pi-server/dist/index.d.ts.map +0 -1
  2510. package/dist/node_modules/@earendil-works/pi-server/dist/index.js.map +0 -1
  2511. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.d.ts +0 -3
  2512. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.d.ts.map +0 -1
  2513. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.js +0 -56
  2514. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.js.map +0 -1
  2515. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.d.ts +0 -99
  2516. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.d.ts.map +0 -1
  2517. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.js +0 -12
  2518. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.js.map +0 -1
  2519. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.d.ts +0 -20
  2520. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.d.ts.map +0 -1
  2521. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.js +0 -145
  2522. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.js.map +0 -1
  2523. package/dist/node_modules/@earendil-works/pi-server/dist/listener.d.ts +0 -8
  2524. package/dist/node_modules/@earendil-works/pi-server/dist/listener.d.ts.map +0 -1
  2525. package/dist/node_modules/@earendil-works/pi-server/dist/listener.js.map +0 -1
  2526. package/dist/node_modules/@earendil-works/pi-server/dist/protocol.d.ts +0 -22
  2527. package/dist/node_modules/@earendil-works/pi-server/dist/protocol.d.ts.map +0 -1
  2528. package/dist/node_modules/@earendil-works/pi-server/dist/protocol.js +0 -266
  2529. package/dist/node_modules/@earendil-works/pi-server/dist/protocol.js.map +0 -1
  2530. package/dist/node_modules/@earendil-works/pi-server/dist/radius.d.ts +0 -36
  2531. package/dist/node_modules/@earendil-works/pi-server/dist/radius.d.ts.map +0 -1
  2532. package/dist/node_modules/@earendil-works/pi-server/dist/radius.js +0 -360
  2533. package/dist/node_modules/@earendil-works/pi-server/dist/radius.js.map +0 -1
  2534. package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.d.ts +0 -31
  2535. package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.d.ts.map +0 -1
  2536. package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.js +0 -168
  2537. package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.js.map +0 -1
  2538. package/dist/node_modules/@earendil-works/pi-server/dist/serve.d.ts +0 -2
  2539. package/dist/node_modules/@earendil-works/pi-server/dist/serve.d.ts.map +0 -1
  2540. package/dist/node_modules/@earendil-works/pi-server/dist/serve.js +0 -70
  2541. package/dist/node_modules/@earendil-works/pi-server/dist/serve.js.map +0 -1
  2542. package/dist/node_modules/@earendil-works/pi-server/dist/server.d.ts +0 -46
  2543. package/dist/node_modules/@earendil-works/pi-server/dist/server.d.ts.map +0 -1
  2544. package/dist/node_modules/@earendil-works/pi-server/dist/server.js.map +0 -1
  2545. package/dist/node_modules/@earendil-works/pi-server/dist/session-router.d.ts +0 -40
  2546. package/dist/node_modules/@earendil-works/pi-server/dist/session-router.d.ts.map +0 -1
  2547. package/dist/node_modules/@earendil-works/pi-server/dist/session-router.js.map +0 -1
  2548. package/dist/node_modules/@earendil-works/pi-server/dist/sessions.d.ts +0 -2195
  2549. package/dist/node_modules/@earendil-works/pi-server/dist/sessions.d.ts.map +0 -1
  2550. package/dist/node_modules/@earendil-works/pi-server/dist/sessions.js +0 -332
  2551. package/dist/node_modules/@earendil-works/pi-server/dist/sessions.js.map +0 -1
  2552. package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.d.ts +0 -24
  2553. package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.d.ts.map +0 -1
  2554. package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.js +0 -39
  2555. package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.js.map +0 -1
  2556. package/dist/node_modules/@earendil-works/pi-server/dist/storage.d.ts +0 -10
  2557. package/dist/node_modules/@earendil-works/pi-server/dist/storage.d.ts.map +0 -1
  2558. package/dist/node_modules/@earendil-works/pi-server/dist/storage.js +0 -58
  2559. package/dist/node_modules/@earendil-works/pi-server/dist/storage.js.map +0 -1
  2560. package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.d.ts +0 -34
  2561. package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.d.ts.map +0 -1
  2562. package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.js +0 -290
  2563. package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.js.map +0 -1
  2564. package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.d.ts +0 -35
  2565. package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.d.ts.map +0 -1
  2566. package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.js.map +0 -1
  2567. package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.d.ts +0 -57
  2568. package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.d.ts.map +0 -1
  2569. package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.js.map +0 -1
  2570. package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.d.ts +0 -6
  2571. package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.d.ts.map +0 -1
  2572. package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.js.map +0 -1
  2573. package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.d.ts +0 -13
  2574. package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.d.ts.map +0 -1
  2575. package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.js.map +0 -1
  2576. package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.d.ts +0 -66
  2577. package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.d.ts.map +0 -1
  2578. package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.js +0 -254
  2579. package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.js.map +0 -1
  2580. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.d.ts +0 -3
  2581. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.d.ts.map +0 -1
  2582. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.js.map +0 -1
  2583. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.d.ts +0 -5
  2584. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.d.ts.map +0 -1
  2585. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.js.map +0 -1
  2586. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.d.ts +0 -24
  2587. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.d.ts.map +0 -1
  2588. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.js.map +0 -1
  2589. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.d.ts +0 -7
  2590. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.d.ts.map +0 -1
  2591. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.js.map +0 -1
  2592. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.d.ts +0 -15
  2593. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.d.ts.map +0 -1
  2594. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.js.map +0 -1
  2595. package/dist/node_modules/@earendil-works/pi-server/dist/types.d.ts +0 -49
  2596. package/dist/node_modules/@earendil-works/pi-server/dist/types.d.ts.map +0 -1
  2597. package/dist/node_modules/@earendil-works/pi-server/dist/types.js.map +0 -1
  2598. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.d.ts +0 -6
  2599. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.d.ts.map +0 -1
  2600. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.js.map +0 -1
  2601. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.d.ts +0 -6
  2602. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.d.ts.map +0 -1
  2603. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.js +0 -70
  2604. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.js.map +0 -1
  2605. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.d.ts +0 -5
  2606. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.d.ts.map +0 -1
  2607. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.js.map +0 -1
  2608. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.d.ts +0 -3
  2609. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.d.ts.map +0 -1
  2610. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.js.map +0 -1
  2611. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.d.ts +0 -41
  2612. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.d.ts.map +0 -1
  2613. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.js.map +0 -1
  2614. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.d.ts +0 -14
  2615. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.d.ts.map +0 -1
  2616. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.js +0 -153
  2617. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.js.map +0 -1
  2618. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.d.ts +0 -6
  2619. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.d.ts.map +0 -1
  2620. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.js.map +0 -1
  2621. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.d.ts +0 -24
  2622. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.d.ts.map +0 -1
  2623. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.js.map +0 -1
  2624. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.d.ts +0 -23
  2625. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.d.ts.map +0 -1
  2626. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.js.map +0 -1
  2627. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.d.ts +0 -4
  2628. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.d.ts.map +0 -1
  2629. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.js.map +0 -1
  2630. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.d.ts +0 -6
  2631. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.d.ts.map +0 -1
  2632. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.js.map +0 -1
  2633. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.d.ts +0 -20
  2634. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.d.ts.map +0 -1
  2635. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.js.map +0 -1
  2636. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.d.ts +0 -23
  2637. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.d.ts.map +0 -1
  2638. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.js.map +0 -1
  2639. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.d.ts +0 -42
  2640. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.d.ts.map +0 -1
  2641. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.js.map +0 -1
  2642. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.d.ts +0 -19
  2643. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.d.ts.map +0 -1
  2644. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.js.map +0 -1
  2645. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.d.ts +0 -41
  2646. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.d.ts.map +0 -1
  2647. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.js +0 -112
  2648. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.js.map +0 -1
  2649. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.d.ts +0 -7
  2650. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.d.ts.map +0 -1
  2651. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.js +0 -22
  2652. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.js.map +0 -1
  2653. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.d.ts +0 -34
  2654. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.d.ts.map +0 -1
  2655. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.js +0 -37
  2656. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.js.map +0 -1
  2657. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.d.ts +0 -20
  2658. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.d.ts.map +0 -1
  2659. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.js +0 -38
  2660. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.js.map +0 -1
  2661. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.d.ts +0 -35
  2662. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.d.ts.map +0 -1
  2663. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.js +0 -95
  2664. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.js.map +0 -1
  2665. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.d.ts +0 -38
  2666. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.d.ts.map +0 -1
  2667. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.js +0 -49
  2668. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.js.map +0 -1
  2669. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.d.ts +0 -7
  2670. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.d.ts.map +0 -1
  2671. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.js +0 -22
  2672. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.js.map +0 -1
  2673. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.d.ts +0 -17
  2674. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.d.ts.map +0 -1
  2675. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.js +0 -40
  2676. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.js.map +0 -1
  2677. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.d.ts +0 -26
  2678. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.d.ts.map +0 -1
  2679. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.js +0 -99
  2680. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.js.map +0 -1
  2681. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.d.ts +0 -15
  2682. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.d.ts.map +0 -1
  2683. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.js +0 -31
  2684. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.js.map +0 -1
  2685. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.d.ts +0 -38
  2686. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.d.ts.map +0 -1
  2687. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.js.map +0 -1
  2688. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.d.ts +0 -29
  2689. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.d.ts.map +0 -1
  2690. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.js.map +0 -1
  2691. package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts +0 -194
  2692. package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts.map +0 -1
  2693. package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.js.map +0 -1
  2694. package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts +0 -26
  2695. package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts.map +0 -1
  2696. package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.js.map +0 -1
  2697. package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.d.ts +0 -4
  2698. package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.d.ts.map +0 -1
  2699. package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.js.map +0 -1
  2700. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.d.ts +0 -4
  2701. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.d.ts.map +0 -1
  2702. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.js.map +0 -1
  2703. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.d.ts +0 -3
  2704. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.d.ts.map +0 -1
  2705. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.js.map +0 -1
  2706. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.d.ts +0 -16
  2707. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.d.ts.map +0 -1
  2708. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.js.map +0 -1
  2709. package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts +0 -46
  2710. package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts.map +0 -1
  2711. package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js.map +0 -1
  2712. package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +0 -57
  2713. package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +0 -1
  2714. package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +0 -1
  2715. package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.d.ts +0 -13
  2716. package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.d.ts.map +0 -1
  2717. package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.js.map +0 -1
  2718. package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts +0 -24
  2719. package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts.map +0 -1
  2720. package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.js.map +0 -1
  2721. package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts +0 -22
  2722. package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts.map +0 -1
  2723. package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js.map +0 -1
  2724. package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +0 -269
  2725. package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +0 -1
  2726. package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +0 -1
  2727. package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.d.ts +0 -7
  2728. package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.d.ts.map +0 -1
  2729. package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.js.map +0 -1
  2730. package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts +0 -28
  2731. package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts.map +0 -1
  2732. package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.js.map +0 -1
  2733. package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts +0 -48
  2734. package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts.map +0 -1
  2735. package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.js.map +0 -1
  2736. package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts +0 -46
  2737. package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts.map +0 -1
  2738. package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.js.map +0 -1
  2739. package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +0 -103
  2740. package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +0 -1
  2741. package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +0 -1
  2742. package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts +0 -12
  2743. package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts.map +0 -1
  2744. package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js.map +0 -1
  2745. package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts +0 -63
  2746. package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts.map +0 -1
  2747. package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js.map +0 -1
  2748. package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +0 -53
  2749. package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts.map +0 -1
  2750. package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.js.map +0 -1
  2751. package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +0 -60
  2752. package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +0 -1
  2753. package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +0 -1
  2754. package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts +0 -12
  2755. package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts.map +0 -1
  2756. package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.js.map +0 -1
  2757. package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.d.ts +0 -38
  2758. package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.d.ts.map +0 -1
  2759. package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.js.map +0 -1
  2760. package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts +0 -19
  2761. package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts.map +0 -1
  2762. package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.js.map +0 -1
  2763. package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts +0 -13
  2764. package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts.map +0 -1
  2765. package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js.map +0 -1
  2766. package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.d.ts +0 -8
  2767. package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.d.ts.map +0 -1
  2768. package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.js.map +0 -1
  2769. package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts +0 -41
  2770. package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts.map +0 -1
  2771. package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.js.map +0 -1
  2772. package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +0 -16
  2773. package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts.map +0 -1
  2774. package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +0 -1
  2775. package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts +0 -32
  2776. package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +0 -1
  2777. package/dist/node_modules/@earendil-works/pi-tui/dist/index.js.map +0 -1
  2778. package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +0 -273
  2779. package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts.map +0 -1
  2780. package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +0 -1
  2781. package/dist/node_modules/@earendil-works/pi-tui/dist/keys.d.ts +0 -184
  2782. package/dist/node_modules/@earendil-works/pi-tui/dist/keys.d.ts.map +0 -1
  2783. package/dist/node_modules/@earendil-works/pi-tui/dist/keys.js.map +0 -1
  2784. package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts +0 -28
  2785. package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts.map +0 -1
  2786. package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.js.map +0 -1
  2787. package/dist/node_modules/@earendil-works/pi-tui/dist/latex.d.ts +0 -10
  2788. package/dist/node_modules/@earendil-works/pi-tui/dist/latex.d.ts.map +0 -1
  2789. package/dist/node_modules/@earendil-works/pi-tui/dist/latex.js.map +0 -1
  2790. package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.d.ts +0 -42
  2791. package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.d.ts.map +0 -1
  2792. package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.js.map +0 -1
  2793. package/dist/node_modules/@earendil-works/pi-tui/dist/layout.d.ts +0 -42
  2794. package/dist/node_modules/@earendil-works/pi-tui/dist/layout.d.ts.map +0 -1
  2795. package/dist/node_modules/@earendil-works/pi-tui/dist/layout.js.map +0 -1
  2796. package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts +0 -3
  2797. package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +0 -1
  2798. package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +0 -1
  2799. package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts +0 -7
  2800. package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts.map +0 -1
  2801. package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.js.map +0 -1
  2802. package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts +0 -57
  2803. package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts.map +0 -1
  2804. package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js.map +0 -1
  2805. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts +0 -10
  2806. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts.map +0 -1
  2807. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js.map +0 -1
  2808. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +0 -118
  2809. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +0 -1
  2810. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +0 -1
  2811. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +0 -131
  2812. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +0 -1
  2813. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +0 -1
  2814. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts +0 -160
  2815. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts.map +0 -1
  2816. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js.map +0 -1
  2817. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.d.ts +0 -39
  2818. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.d.ts.map +0 -1
  2819. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js.map +0 -1
  2820. package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +0 -399
  2821. package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +0 -1
  2822. package/dist/node_modules/@earendil-works/pi-tui/dist/tui.js.map +0 -1
  2823. package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts +0 -17
  2824. package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts.map +0 -1
  2825. package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.js.map +0 -1
  2826. package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +0 -98
  2827. package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +0 -1
  2828. package/dist/node_modules/@earendil-works/pi-tui/dist/utils.js.map +0 -1
  2829. package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts +0 -25
  2830. package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts.map +0 -1
  2831. package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.js.map +0 -1
  2832. package/dist/package-manager-cli.d.ts +0 -10
  2833. package/dist/package-manager-cli.d.ts.map +0 -1
  2834. package/dist/package-manager-cli.js.map +0 -1
  2835. package/dist/rpc-entry.d.ts +0 -3
  2836. package/dist/rpc-entry.d.ts.map +0 -1
  2837. package/dist/rpc-entry.js.map +0 -1
  2838. package/dist/server/create-harness.d.ts +0 -26
  2839. package/dist/server/create-harness.d.ts.map +0 -1
  2840. package/dist/server/create-harness.js +0 -106
  2841. package/dist/server/create-harness.js.map +0 -1
  2842. package/dist/utils/abort.d.ts +0 -5
  2843. package/dist/utils/abort.d.ts.map +0 -1
  2844. package/dist/utils/abort.js.map +0 -1
  2845. package/dist/utils/ansi.d.ts +0 -2
  2846. package/dist/utils/ansi.d.ts.map +0 -1
  2847. package/dist/utils/ansi.js.map +0 -1
  2848. package/dist/utils/changelog.d.ts +0 -57
  2849. package/dist/utils/changelog.d.ts.map +0 -1
  2850. package/dist/utils/changelog.js.map +0 -1
  2851. package/dist/utils/child-process.d.ts +0 -18
  2852. package/dist/utils/child-process.d.ts.map +0 -1
  2853. package/dist/utils/child-process.js.map +0 -1
  2854. package/dist/utils/clipboard-image.d.ts +0 -11
  2855. package/dist/utils/clipboard-image.d.ts.map +0 -1
  2856. package/dist/utils/clipboard-image.js.map +0 -1
  2857. package/dist/utils/clipboard-native.d.ts +0 -11
  2858. package/dist/utils/clipboard-native.d.ts.map +0 -1
  2859. package/dist/utils/clipboard-native.js.map +0 -1
  2860. package/dist/utils/clipboard.d.ts +0 -4
  2861. package/dist/utils/clipboard.d.ts.map +0 -1
  2862. package/dist/utils/clipboard.js.map +0 -1
  2863. package/dist/utils/deprecation.d.ts +0 -4
  2864. package/dist/utils/deprecation.d.ts.map +0 -1
  2865. package/dist/utils/deprecation.js.map +0 -1
  2866. package/dist/utils/exif-orientation.d.ts +0 -5
  2867. package/dist/utils/exif-orientation.d.ts.map +0 -1
  2868. package/dist/utils/exif-orientation.js.map +0 -1
  2869. package/dist/utils/frontmatter.d.ts +0 -8
  2870. package/dist/utils/frontmatter.d.ts.map +0 -1
  2871. package/dist/utils/frontmatter.js.map +0 -1
  2872. package/dist/utils/fs-watch.d.ts +0 -5
  2873. package/dist/utils/fs-watch.d.ts.map +0 -1
  2874. package/dist/utils/fs-watch.js.map +0 -1
  2875. package/dist/utils/git.d.ts +0 -26
  2876. package/dist/utils/git.d.ts.map +0 -1
  2877. package/dist/utils/git.js.map +0 -1
  2878. package/dist/utils/html.d.ts +0 -7
  2879. package/dist/utils/html.d.ts.map +0 -1
  2880. package/dist/utils/html.js.map +0 -1
  2881. package/dist/utils/image-convert.d.ts +0 -10
  2882. package/dist/utils/image-convert.d.ts.map +0 -1
  2883. package/dist/utils/image-convert.js.map +0 -1
  2884. package/dist/utils/image-process.d.ts +0 -18
  2885. package/dist/utils/image-process.d.ts.map +0 -1
  2886. package/dist/utils/image-process.js.map +0 -1
  2887. package/dist/utils/image-resize-core.d.ts +0 -30
  2888. package/dist/utils/image-resize-core.d.ts.map +0 -1
  2889. package/dist/utils/image-resize-core.js.map +0 -1
  2890. package/dist/utils/image-resize-worker.d.ts +0 -2
  2891. package/dist/utils/image-resize-worker.d.ts.map +0 -1
  2892. package/dist/utils/image-resize-worker.js.map +0 -1
  2893. package/dist/utils/image-resize.d.ts +0 -16
  2894. package/dist/utils/image-resize.d.ts.map +0 -1
  2895. package/dist/utils/image-resize.js.map +0 -1
  2896. package/dist/utils/json.d.ts +0 -3
  2897. package/dist/utils/json.d.ts.map +0 -1
  2898. package/dist/utils/json.js.map +0 -1
  2899. package/dist/utils/management-http.d.ts +0 -25
  2900. package/dist/utils/management-http.d.ts.map +0 -1
  2901. package/dist/utils/management-http.js.map +0 -1
  2902. package/dist/utils/mime.d.ts +0 -3
  2903. package/dist/utils/mime.d.ts.map +0 -1
  2904. package/dist/utils/mime.js.map +0 -1
  2905. package/dist/utils/offline.d.ts +0 -12
  2906. package/dist/utils/offline.d.ts.map +0 -1
  2907. package/dist/utils/offline.js.map +0 -1
  2908. package/dist/utils/open-browser.d.ts +0 -9
  2909. package/dist/utils/open-browser.d.ts.map +0 -1
  2910. package/dist/utils/open-browser.js.map +0 -1
  2911. package/dist/utils/paths.d.ts +0 -34
  2912. package/dist/utils/paths.d.ts.map +0 -1
  2913. package/dist/utils/paths.js.map +0 -1
  2914. package/dist/utils/photon.d.ts +0 -21
  2915. package/dist/utils/photon.d.ts.map +0 -1
  2916. package/dist/utils/photon.js.map +0 -1
  2917. package/dist/utils/pi-user-agent.d.ts +0 -2
  2918. package/dist/utils/pi-user-agent.d.ts.map +0 -1
  2919. package/dist/utils/pi-user-agent.js.map +0 -1
  2920. package/dist/utils/shell.d.ts +0 -34
  2921. package/dist/utils/shell.d.ts.map +0 -1
  2922. package/dist/utils/shell.js.map +0 -1
  2923. package/dist/utils/sleep.d.ts +0 -5
  2924. package/dist/utils/sleep.d.ts.map +0 -1
  2925. package/dist/utils/sleep.js.map +0 -1
  2926. package/dist/utils/syntax-highlight.d.ts +0 -13
  2927. package/dist/utils/syntax-highlight.d.ts.map +0 -1
  2928. package/dist/utils/syntax-highlight.js.map +0 -1
  2929. package/dist/utils/text.d.ts +0 -8
  2930. package/dist/utils/text.d.ts.map +0 -1
  2931. package/dist/utils/text.js.map +0 -1
  2932. package/dist/utils/tool-result-images.d.ts +0 -19
  2933. package/dist/utils/tool-result-images.d.ts.map +0 -1
  2934. package/dist/utils/tool-result-images.js.map +0 -1
  2935. package/dist/utils/tools-manager.d.ts +0 -13
  2936. package/dist/utils/tools-manager.d.ts.map +0 -1
  2937. package/dist/utils/tools-manager.js.map +0 -1
  2938. package/dist/utils/version-check.d.ts +0 -23
  2939. package/dist/utils/version-check.d.ts.map +0 -1
  2940. package/dist/utils/version-check.js.map +0 -1
  2941. package/dist/utils/windows-self-update.d.ts +0 -3
  2942. package/dist/utils/windows-self-update.d.ts.map +0 -1
  2943. package/dist/utils/windows-self-update.js.map +0 -1
  2944. package/examples/extensions/kimi-deferred-tools.ts +0 -61
@@ -1 +0,0 @@
1
- {"version":3,"file":"tui-alt-screen.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IAOxB,OAAO,CAAC,oBAAoB;IAoB5B,OAAO,CAAC,aAAa;IA0BrB,OAAO,CAAC,yBAAyB;IA4BjC,OAAO,CAAC,mBAAmB;IAkB3B,OAAO,CAAC,uBAAuB;IAS/B,OAAO,CAAC,yBAAyB;IAgFjC,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,sBAAsB;YAwBhB,wBAAwB;YAMxB,mBAAmB;IAmBjC,OAAO,CAAC,wBAAwB;IAoBhC,OAAO,CAAC,qBAAqB;IA+D7B,OAAO,CAAC,uBAAuB;IAiB/B,OAAO,CAAC,cAAc;IAiDtB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,6BAA6B;IAqBrC,OAAO,CAAC,gBAAgB;IAcxB,UAAmB,QAAQ,IAAI,IAAI,CAoElC;CACD","sourcesContent":["import {\n\tAltScreenSearchComponent,\n\tAltScreenSearchIndex,\n\ttype AltScreenSearchMatch,\n\tgetAltScreenSearchMatchKey,\n} from \"./alt-screen-search.ts\";\nimport { AltScreenFlashContainer } from \"./components/alt-screen-flash.ts\";\nimport { ScrollView } from \"./components/scroll-view.ts\";\nimport { getKeybindings } from \"./keybindings.ts\";\nimport { isKeyRelease } from \"./keys.ts\";\nimport {\n\tgetLayoutBoxesAt,\n\tgetScrollbarGeometry,\n\tgetScrollViewBox,\n\tgetScrollViewsAt,\n\ttype LayoutFrame,\n\trenderLayoutFrame,\n\ttype ScrollbarGeometry,\n} from \"./layout.ts\";\nimport { getLayoutNode } from \"./layout-node.ts\";\nimport type { Terminal } from \"./terminal.ts\";\nimport {\n\tdeleteAllKittyImages,\n\tdeleteAllKittyPlacements,\n\tdeleteKittyImage,\n\tgetCapabilities,\n\tgetKittyImagePlacement,\n\ttype ImageProtocol,\n\tisImageLine,\n\tsetCapabilities,\n\ttype TerminalCapabilities,\n} from \"./terminal-image.ts\";\nimport {\n\ttype Component,\n\tContainer,\n\tCURSOR_MARKER,\n\tcompositeTuiLine,\n\tdispatchMouseEvent,\n\ttype OverlayHandle,\n\tretargetMouseEvent,\n\tTuiBase,\n\ttype TuiMouseButton,\n\ttype TuiMouseDispatchResult,\n\ttype TuiMouseDispatchTarget,\n\ttype TuiMouseEvent,\n\ttype TuiStopOptions,\n\tVIEWPORT_TUI,\n\ttype ViewportTUI,\n} from \"./tui.ts\";\nimport {\n\textractAnsiCode,\n\tgetGraphemeCellRange,\n\tgetOsc8LinkAtColumn,\n\tgetWordSegmenter,\n\tsliceByColumn,\n\tstripTerminalSequences,\n\ttruncateToWidth,\n\tvisibleWidth,\n} from \"./utils.ts\";\n\nconst ENTER_ALT_SCREEN = \"\\x1b[?1049h\";\nconst EXIT_ALT_SCREEN = \"\\x1b[?1049l\";\nconst DISABLE_AUTOWRAP = \"\\x1b[?7l\";\nconst ENABLE_AUTOWRAP = \"\\x1b[?7h\";\nconst ENABLE_BUTTON_MOTION_MOUSE = \"\\x1b[?1000h\\x1b[?1002h\\x1b[?1004h\\x1b[?1006h\";\nconst ENABLE_ALL_MOTION_MOUSE = \"\\x1b[?1000h\\x1b[?1002h\\x1b[?1003h\\x1b[?1004h\\x1b[?1006h\";\nconst DISABLE_MOUSE = \"\\x1b[?1006l\\x1b[?1004l\\x1b[?1003l\\x1b[?1002l\\x1b[?1000l\";\nconst FOCUS_IN = \"\\x1b[I\";\nconst FOCUS_OUT = \"\\x1b[O\";\nconst BEGIN_SYNCHRONIZED_OUTPUT = \"\\x1b[?2026h\";\nconst END_SYNCHRONIZED_OUTPUT = \"\\x1b[?2026l\";\nconst OSC133_ZONE_PREFIX = /^(?:\\x1b\\]133;[ABC](?:\\x07|\\x1b\\\\))+/;\nconst OSC133_PROMPT_START = /^\\x1b\\]133;A(?:\\x07|\\x1b\\\\)/;\nconst PAGE_SCROLL_OVERLAP = 4;\nconst ALT_WHEEL_SCROLL_MULTIPLIER = 5;\nconst MAX_CACHED_OFFSCREEN_KITTY_IMAGES = 16;\nconst MAX_CACHED_OFFSCREEN_KITTY_TRANSMISSION_BYTES = 32 * 1024 * 1024;\nconst MAX_CACHED_OFFSCREEN_KITTY_DECODED_BYTES = 64 * 1024 * 1024;\nconst DOUBLE_CLICK_INTERVAL_MS = 500;\nconst COPY_ERROR_FLASH_DURATION_MS = 5000;\n// Regular mode delegates double-click selection to the terminal emulator. Fullscreen owns mouse selection,\n// so mirror common terminal word-selection behavior by keeping paths and kebab-case tokens whole.\nconst TERMINAL_WORD_SELECTION_JOINERS = new Set([\"/\", \"-\"]);\nconst wordSegmenter = getWordSegmenter();\n\ninterface CachedKittyImage {\n\ttransmissionGeneration: number;\n\ttransmissionBytes: number;\n\testimatedDecodedBytes: number;\n}\n\ninterface SelectionPoint {\n\trow: number;\n\tcol: number;\n\tscrollView?: ScrollView;\n\t/** Whether this point lies between terminal cells rather than on a cell. */\n\tboundary?: boolean;\n}\n\ninterface SelectionRange {\n\tstart: SelectionPoint;\n\tend: SelectionPoint;\n}\n\ntype SelectionGranularity = \"character\" | \"word\" | \"line\";\n\ninterface ClickTarget {\n\ttimestamp: number;\n\tcount: number;\n\trow: number;\n\tscrollView?: ScrollView;\n\twordStart: number;\n\twordEnd: number;\n}\n\ninterface SgrMouseEvent {\n\tbutton: number;\n\tx: number;\n\ty: number;\n\trelease: boolean;\n}\n\ninterface WheelEvent {\n\tdirection: -1 | 1;\n\tx: number;\n\ty: number;\n\tbutton: number;\n}\n\ninterface ScrollbarDrag {\n\tscrollView: ScrollView;\n\tgrabOffset: number;\n}\n\ninterface ScrollbarTarget {\n\tscrollView: ScrollView;\n\tgeometry: ScrollbarGeometry;\n}\n\ninterface ScrollToEndIndicatorRect {\n\trow: number;\n\tcolumn: number;\n\twidth: number;\n}\n\ntype SearchSelectionMode = \"query\" | \"retain\" | \"next\" | \"previous\";\n\ninterface ActiveSearch {\n\tcomponent: AltScreenSearchComponent;\n\tindex: AltScreenSearchIndex;\n\toverlay?: OverlayHandle;\n\tquery: string;\n\tmatches: AltScreenSearchMatch[];\n\tselectedIndex: number;\n\tselectedKey?: string;\n\tanchorRow: number;\n\tselectionMode: SearchSelectionMode;\n}\n\ninterface SearchHighlightRange {\n\tstartCol: number;\n\tendCol: number;\n\tcurrent: boolean;\n}\n\nexport interface TuiAltScreenOptions {\n\t/** Number of logical lines moved for each mouse-wheel event. */\n\twheelScrollLines?: number;\n\t/** Capture mouse events for viewport scrolling and application-owned text selection. */\n\tmouse?: boolean;\n\t/** Style a non-current transcript search match. */\n\tsearchMatchStyle?: (text: string) => string;\n\t/** Style the current transcript search match. */\n\tsearchCurrentMatchStyle?: (text: string) => string;\n\t/** Style a transcript search navigation button. */\n\tsearchNavigationButtonStyle?: (text: string, hovered: boolean) => string;\n\t/**\n\t * Render a clickable jump-to-end label. It is centered on the last row of a follow-end\n\t * primary scroll view while that view is scrolled away from its end.\n\t */\n\tscrollToEndIndicator?: () => string;\n\t/** Open an OSC 8 hyperlink activated with a primary-button click. */\n\topenUrl?: (url: string) => void;\n\t/** Handle an unmodified secondary-button press for clipboard paste. Currently enabled on Windows only. */\n\tonRightClickPaste?: () => void;\n\t/** Automatically copy selected text to the clipboard on mouse release (default: true). */\n\tcopyOnSelect?: boolean;\n\t/**\n\t * Copy selected text to the system clipboard. Return `true` on success, an error message to\n\t * display on failure, or `false` for a generic error. When omitted, the selection is copied\n\t * via an OSC 52 write.\n\t */\n\tcopySelection?: (text: string) => Promise<boolean | string>;\n}\n\n/** Alternate-screen TUI with a scrollable, application-owned viewport. */\nexport class TuiAltScreen extends TuiBase implements ViewportTUI {\n\treadonly mode = \"fullscreen\" as const;\n\treadonly [VIEWPORT_TUI] = true as const;\n\tprivate previousScreen: string[] = [];\n\tprivate lastDocument: string[] = [];\n\tprivate previousScreenWidth = 0;\n\tprivate previousScreenHeight = 0;\n\tprivate layoutRoot: Component | undefined;\n\tprivate currentLayout: LayoutFrame | undefined;\n\tprivate readonly implicitDocument: Component;\n\tprivate readonly implicitScrollView: ScrollView;\n\tprivate readonly flashes: AltScreenFlashContainer;\n\tprivate altScreenActive = false;\n\tprivate imageProtocol: ImageProtocol = null;\n\tprivate savedCapabilities?: TerminalCapabilities;\n\tprivate readonly uploadedKittyImages = new Map<number, CachedKittyImage>();\n\tprivate selectionAnchor?: SelectionPoint;\n\tprivate selectionFocus?: SelectionPoint;\n\tprivate selectionGranularity: SelectionGranularity = \"character\";\n\tprivate selectionInitialRange?: SelectionRange;\n\tprivate lastClick?: ClickTarget;\n\tprivate selectionDragPointer?: { x: number; y: number };\n\tprivate selectionAutoScrollDirection: -1 | 0 | 1 = 0;\n\tprivate selectionAutoScrollTimer?: NodeJS.Timeout;\n\tprivate selectionPressActive = false;\n\tprivate scrollbarDrag?: ScrollbarDrag;\n\tprivate scrollbarHover?: ScrollView;\n\tprivate scrollToEndIndicatorRect?: ScrollToEndIndicatorRect;\n\tprivate activeSearch?: ActiveSearch;\n\tprivate pressedUrl?: string;\n\tprivate selectionDragged = false;\n\tprivate mouseCapture?: TuiMouseDispatchTarget;\n\tprivate mousePressTarget?: TuiMouseDispatchTarget;\n\tprivate mousePressPoint?: { x: number; y: number };\n\tprivate mousePressMoved = false;\n\tprivate lastComponentClick?: {\n\t\ttimestamp: number;\n\t\tcount: number;\n\t\tcomponent: Component;\n\t\tx: number;\n\t\ty: number;\n\t};\n\tprivate readonly wheelScrollLines: number;\n\tprivate readonly mouseEnabled: boolean;\n\tprivate readonly searchMatchStyle: (text: string) => string;\n\tprivate readonly searchCurrentMatchStyle: (text: string) => string;\n\tprivate readonly searchNavigationButtonStyle: (text: string, hovered: boolean) => string;\n\tprivate readonly scrollToEndIndicator?: () => string;\n\tprivate readonly openUrl?: (url: string) => void;\n\tprivate readonly onRightClickPaste?: () => void;\n\tprivate copyOnSelect: boolean;\n\tprivate readonly copySelection?: (text: string) => Promise<boolean | string>;\n\n\tconstructor(\n\t\tterminal: Terminal,\n\t\tshowHardwareCursor?: boolean,\n\t\tlogDirectory?: string,\n\t\toptions: TuiAltScreenOptions = {},\n\t) {\n\t\tsuper(terminal, showHardwareCursor, logDirectory);\n\t\tthis.implicitDocument = {\n\t\t\trender: (width) => super.render(width),\n\t\t\thandleMouse: (event) => super.handleMouse(event),\n\t\t\tinvalidate: () => {\n\t\t\t\tfor (const child of this.children) child.invalidate();\n\t\t\t},\n\t\t};\n\t\tthis.implicitScrollView = new ScrollView(this.implicitDocument, { follow: \"end\", primary: true });\n\t\tthis.flashes = new AltScreenFlashContainer(() => this.requestRender());\n\t\tthis.wheelScrollLines = Math.max(1, Math.floor(options.wheelScrollLines ?? 1));\n\t\tthis.mouseEnabled = options.mouse ?? true;\n\t\tthis.searchMatchStyle = options.searchMatchStyle ?? ((text) => `\\x1b[4m${text}\\x1b[24m`);\n\t\tthis.searchCurrentMatchStyle = options.searchCurrentMatchStyle ?? ((text) => `\\x1b[1;7m${text}\\x1b[22;27m`);\n\t\tthis.searchNavigationButtonStyle = options.searchNavigationButtonStyle ?? ((text) => text);\n\t\tthis.scrollToEndIndicator = options.scrollToEndIndicator;\n\t\tthis.openUrl = options.openUrl;\n\t\tthis.onRightClickPaste = options.onRightClickPaste;\n\t\tthis.copyOnSelect = options.copyOnSelect ?? true;\n\t\tthis.copySelection = options.copySelection;\n\t\tthis.addInputListener((data) => this.handleViewportInput(data));\n\t}\n\n\tget viewportTop(): number {\n\t\treturn this.getPrimaryScrollView().scrollTop;\n\t}\n\n\tget isFollowingOutput(): boolean {\n\t\treturn this.getPrimaryScrollView().isFollowingEnd;\n\t}\n\n\tgetCopyOnSelect(): boolean {\n\t\treturn this.copyOnSelect;\n\t}\n\n\tsetCopyOnSelect(enabled: boolean): void {\n\t\tthis.copyOnSelect = enabled;\n\t}\n\n\t/** Whether the fullscreen viewport has a non-empty active text selection. */\n\thasActiveSelection(): boolean {\n\t\treturn this.getActiveSelectionText() !== undefined;\n\t}\n\n\t/** Copy the active fullscreen text selection, if any, using the configured selection clipboard path. */\n\tasync copyActiveSelectionToClipboard(): Promise<boolean> {\n\t\tconst text = this.getActiveSelectionText();\n\t\tif (!text) return false;\n\t\treturn this.copyTextToClipboard(text);\n\t}\n\n\tsetLayoutRoot(component: Component | undefined): void {\n\t\tif (this.layoutRoot === component) return;\n\t\tthis.layoutRoot = component;\n\t\tthis.currentLayout = undefined;\n\t\tthis.requestRender();\n\t}\n\n\toverride render(width: number): string[] {\n\t\treturn this.layoutRoot?.render(width) ?? super.render(width);\n\t}\n\n\tprotected override getMountedRoots(): readonly Component[] {\n\t\treturn this.layoutRoot ? [this.layoutRoot] : this.children;\n\t}\n\n\tprivate getPrimaryScrollView(): ScrollView {\n\t\treturn this.currentLayout?.primaryScrollView ?? this.implicitScrollView;\n\t}\n\n\tprotected override beforeTerminalStart(): void {\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = false;\n\t\tthis.stopScrollbarHover();\n\t\tthis.stopScrollbarDrag();\n\t\tthis.flashes.dispose();\n\t\tthis.altScreenActive = true;\n\t\tconst capabilities = getCapabilities();\n\t\tthis.imageProtocol = capabilities.images;\n\t\tthis.uploadedKittyImages.clear();\n\t\tif (capabilities.images === \"iterm2\") {\n\t\t\tthis.savedCapabilities = capabilities;\n\t\t\tsetCapabilities({ ...capabilities, images: null });\n\t\t\tthis.invalidate();\n\t\t}\n\t\tthis.lastDocument = [];\n\t\tthis.selectionAnchor = undefined;\n\t\tthis.selectionFocus = undefined;\n\t\tthis.selectionGranularity = \"character\";\n\t\tthis.selectionInitialRange = undefined;\n\t\tthis.lastClick = undefined;\n\t\tthis.pressedUrl = undefined;\n\t\tthis.selectionDragged = false;\n\t\tthis.clearComponentMouseGesture();\n\t\tthis.lastComponentClick = undefined;\n\t\tthis.resetRenderState();\n\t\tconst term = process.env.TERM?.toLowerCase() ?? \"\";\n\t\t// Multiplexers can lag when every pointer movement is forwarded. Button-motion\n\t\t// tracking preserves clicks, wheel events, selections, and scrollbar dragging.\n\t\tconst mouseSequence =\n\t\t\tprocess.env.TMUX !== undefined ||\n\t\t\tprocess.env.ZELLIJ !== undefined ||\n\t\t\tprocess.env.STY !== undefined ||\n\t\t\tterm.startsWith(\"tmux\") ||\n\t\t\tterm.startsWith(\"screen\")\n\t\t\t\t? ENABLE_BUTTON_MOTION_MOUSE\n\t\t\t\t: ENABLE_ALL_MOTION_MOUSE;\n\t\t// Tell the terminal layer we own mouse events, so it stops dropping them as\n\t\t// stray reports from a child process (see terminal.ts).\n\t\tthis.terminal.setMouseHandlerActive?.(this.mouseEnabled);\n\t\tthis.terminal.write(\n\t\t\t`${ENTER_ALT_SCREEN}${DISABLE_AUTOWRAP}${this.mouseEnabled ? mouseSequence : \"\"}\\x1b[2J\\x1b[H\\x1b[?25l`,\n\t\t);\n\t}\n\n\tprotected override beforeTerminalStop(_options: TuiStopOptions): void {\n\t\tthis.closeSearch();\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = false;\n\t\tthis.stopScrollbarHover();\n\t\tthis.stopScrollbarDrag();\n\t\tthis.clearComponentMouseGesture();\n\t\tthis.flashes.dispose();\n\t\tif (!this.altScreenActive) return;\n\t\tthis.terminal.setMouseHandlerActive?.(false);\n\t\t// DISABLE_MOUSE unconditionally, not only when we enabled it: a child\n\t\t// process can leave tracking on, and the symptom of not clearing it is\n\t\t// mouse codes typed into whatever prompt comes next.\n\t\tthis.terminal.write(\n\t\t\t`${BEGIN_SYNCHRONIZED_OUTPUT}${this.deleteKittyImages()}${DISABLE_MOUSE}${ENABLE_AUTOWRAP}${END_SYNCHRONIZED_OUTPUT}`,\n\t\t);\n\t\tthis.uploadedKittyImages.clear();\n\t}\n\n\tprotected override afterTerminalStop(options: TuiStopOptions): void {\n\t\tif (!this.altScreenActive) return;\n\t\tthis.altScreenActive = false;\n\t\tif (options.preserveScreen) {\n\t\t\tthis.terminal.write(`${BEGIN_SYNCHRONIZED_OUTPUT}${EXIT_ALT_SCREEN}\\x1b[?25h${END_SYNCHRONIZED_OUTPUT}`);\n\t\t} else {\n\t\t\tconst width = Math.max(1, this.terminal.columns);\n\t\t\tconst documentLines = this.render(width).map((line) => line.replace(OSC133_ZONE_PREFIX, \"\"));\n\t\t\tthis.lastDocument = this.applyLineResets(documentLines.map((line) => line.replaceAll(CURSOR_MARKER, \"\"))).map(\n\t\t\t\t(line) => (isImageLine(line) || visibleWidth(line) <= width ? line : sliceByColumn(line, 0, width, true)),\n\t\t\t);\n\t\t\tlet buffer = `${BEGIN_SYNCHRONIZED_OUTPUT}${EXIT_ALT_SCREEN}${DISABLE_AUTOWRAP}`;\n\t\t\tfor (let row = 0; row < this.lastDocument.length; row++) {\n\t\t\t\tif (row > 0) buffer += \"\\r\\n\";\n\t\t\t\tbuffer += `\\r\\x1b[2K${this.lastDocument[row] ?? \"\"}`;\n\t\t\t}\n\t\t\tbuffer += `\\x1b[0m${ENABLE_AUTOWRAP}\\r\\n\\x1b[?25h${END_SYNCHRONIZED_OUTPUT}`;\n\t\t\tthis.terminal.write(buffer);\n\t\t}\n\t\tif (this.savedCapabilities) {\n\t\t\tsetCapabilities(this.savedCapabilities);\n\t\t\tthis.savedCapabilities = undefined;\n\t\t}\n\t}\n\n\tprivate deleteKittyImages(): string {\n\t\treturn this.imageProtocol === \"kitty\" ? deleteAllKittyImages() : \"\";\n\t}\n\n\tprivate prepareKittyScreen(screen: string[]): { lines: string[]; evictedImageDeletion: string } {\n\t\tconst visibleImageIds = new Set<number>();\n\t\tconst lines = screen.map((line) => {\n\t\t\tconst placement = getKittyImagePlacement(line);\n\t\t\tif (!placement) return line;\n\t\t\tvisibleImageIds.add(placement.imageId);\n\n\t\t\tconst cachedImage = this.uploadedKittyImages.get(placement.imageId);\n\t\t\tconst nextCachedImage = {\n\t\t\t\ttransmissionGeneration: placement.transmissionGeneration,\n\t\t\t\ttransmissionBytes: placement.transmissionBytes,\n\t\t\t\testimatedDecodedBytes: placement.estimatedDecodedBytes,\n\t\t\t};\n\t\t\tif (cachedImage) this.uploadedKittyImages.delete(placement.imageId);\n\t\t\tthis.uploadedKittyImages.set(placement.imageId, nextCachedImage);\n\n\t\t\treturn cachedImage?.transmissionGeneration === placement.transmissionGeneration\n\t\t\t\t? placement.replacementLine\n\t\t\t\t: line;\n\t\t});\n\n\t\tlet cachedOffscreenImageCount = 0;\n\t\tlet cachedOffscreenTransmissionBytes = 0;\n\t\tlet cachedOffscreenDecodedBytes = 0;\n\t\tfor (const [imageId, cachedImage] of this.uploadedKittyImages) {\n\t\t\tif (visibleImageIds.has(imageId)) continue;\n\t\t\tcachedOffscreenImageCount += 1;\n\t\t\tcachedOffscreenTransmissionBytes += cachedImage.transmissionBytes;\n\t\t\tcachedOffscreenDecodedBytes += cachedImage.estimatedDecodedBytes;\n\t\t}\n\n\t\tlet evictedImageDeletion = \"\";\n\t\tfor (const [imageId, cachedImage] of this.uploadedKittyImages) {\n\t\t\tif (\n\t\t\t\tcachedOffscreenImageCount <= MAX_CACHED_OFFSCREEN_KITTY_IMAGES &&\n\t\t\t\tcachedOffscreenTransmissionBytes <= MAX_CACHED_OFFSCREEN_KITTY_TRANSMISSION_BYTES &&\n\t\t\t\tcachedOffscreenDecodedBytes <= MAX_CACHED_OFFSCREEN_KITTY_DECODED_BYTES\n\t\t\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (visibleImageIds.has(imageId)) continue;\n\t\t\tevictedImageDeletion += deleteKittyImage(imageId);\n\t\t\tthis.uploadedKittyImages.delete(imageId);\n\t\t\tcachedOffscreenImageCount -= 1;\n\t\t\tcachedOffscreenTransmissionBytes -= cachedImage.transmissionBytes;\n\t\t\tcachedOffscreenDecodedBytes -= cachedImage.estimatedDecodedBytes;\n\t\t}\n\t\treturn { lines, evictedImageDeletion };\n\t}\n\n\tprotected override resetRenderState(): void {\n\t\tthis.previousScreen = [];\n\t\tthis.previousScreenWidth = 0;\n\t\tthis.previousScreenHeight = 0;\n\t\tthis.currentLayout = undefined;\n\t}\n\n\tscrollBy(lines: number): void {\n\t\tthis.getPrimaryScrollView().scrollBy(lines);\n\t\tthis.requestRender();\n\t}\n\n\tscrollToTop(): void {\n\t\tthis.getPrimaryScrollView().scrollToStart();\n\t\tthis.requestRender();\n\t}\n\n\tscrollToBottom(): void {\n\t\tthis.getPrimaryScrollView().scrollToEnd();\n\t\tthis.requestRender();\n\t}\n\n\tprivate scrollToPrompt(direction: -1 | 1): void {\n\t\tif (!this.currentLayout) return;\n\t\tconst scrollView = this.getPrimaryScrollView();\n\t\tconst lines = getScrollViewBox(this.currentLayout, scrollView)?.scrollContentLines;\n\t\tif (!lines) return;\n\n\t\tfor (let row = scrollView.scrollTop + direction; row >= 0 && row < lines.length; row += direction) {\n\t\t\tif (!OSC133_PROMPT_START.test(lines[row] ?? \"\")) continue;\n\t\t\tscrollView.scrollTo(row);\n\t\t\tthis.requestRender();\n\t\t\treturn;\n\t\t}\n\t}\n\n\tprivate toggleSearch(): void {\n\t\tif (this.activeSearch) {\n\t\t\tthis.closeSearch();\n\t\t\treturn;\n\t\t}\n\t\tconst component = new AltScreenSearchComponent(\n\t\t\t(query) => this.updateSearchQuery(query),\n\t\t\tthis.searchNavigationButtonStyle,\n\t\t);\n\t\tconst search: ActiveSearch = {\n\t\t\tcomponent,\n\t\t\tindex: new AltScreenSearchIndex(),\n\t\t\tquery: \"\",\n\t\t\tmatches: [],\n\t\t\tselectedIndex: -1,\n\t\t\tanchorRow: this.getPrimaryScrollView().scrollTop,\n\t\t\tselectionMode: \"query\",\n\t\t};\n\t\tthis.activeSearch = search;\n\t\tsearch.overlay = this.showOverlay(component, {\n\t\t\tanchor: \"top-right\",\n\t\t\twidth: \"40%\",\n\t\t\tminWidth: 32,\n\t\t\tmargin: 1,\n\t\t});\n\t}\n\n\tprivate closeSearch(): void {\n\t\tconst search = this.activeSearch;\n\t\tif (!search) return;\n\t\tthis.activeSearch = undefined;\n\t\tsearch.overlay?.hide();\n\t\tthis.requestRender();\n\t}\n\n\tprivate updateSearchQuery(query: string): void {\n\t\tconst search = this.activeSearch;\n\t\tif (!search || query === search.query) return;\n\t\tconst selected = search.matches[search.selectedIndex];\n\t\tsearch.anchorRow = selected?.segments[0]?.row ?? this.getPrimaryScrollView().scrollTop;\n\t\tsearch.query = query;\n\t\tsearch.selectionMode = \"query\";\n\t\tsearch.component.setResult(-1, 0);\n\t\tthis.requestRender();\n\t}\n\n\tprivate navigateSearch(direction: -1 | 1): void {\n\t\tconst search = this.activeSearch;\n\t\tif (!search?.query) return;\n\t\tsearch.selectionMode = direction < 0 ? \"previous\" : \"next\";\n\t\tthis.requestRender();\n\t}\n\n\tprivate getSearchNavigationDirectionAt(x: number, y: number): -1 | 1 | undefined {\n\t\tconst search = this.activeSearch;\n\t\tconst bounds = search?.overlay?.getBounds();\n\t\tif (!search || !bounds) return undefined;\n\t\tif (x < bounds.col || x >= bounds.col + bounds.width || y < bounds.row || y >= bounds.row + bounds.height) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn search.component.getNavigationDirectionAt(y - bounds.row, x - bounds.col);\n\t}\n\n\tprivate handleSearchMouseEvent(event: SgrMouseEvent): boolean {\n\t\tconst search = this.activeSearch;\n\t\tif (!search) return false;\n\t\tconst direction = this.getSearchNavigationDirectionAt(event.x, event.y);\n\t\tif (search.component.setHoveredNavigationDirection(direction)) this.requestRender();\n\t\tif (direction === undefined || event.release || (event.button & 32) !== 0 || (event.button & 3) !== 0) {\n\t\t\treturn false;\n\t\t}\n\t\tthis.navigateSearch(direction);\n\t\treturn true;\n\t}\n\n\tprivate refreshSearch(layout: LayoutFrame): boolean {\n\t\tconst search = this.activeSearch;\n\t\tif (!search) return false;\n\t\tconst scrollView = layout.primaryScrollView ?? this.implicitScrollView;\n\t\tconst box = getScrollViewBox(layout, scrollView);\n\t\tconst lines = box?.scrollContentLines;\n\t\tif (!lines || !search.query.trim()) {\n\t\t\tsearch.matches = [];\n\t\t\tsearch.selectedIndex = -1;\n\t\t\tsearch.selectedKey = undefined;\n\t\t\tsearch.selectionMode = \"retain\";\n\t\t\tsearch.component.setResult(-1, 0);\n\t\t\treturn false;\n\t\t}\n\n\t\tconst shouldRevealSelection = search.selectionMode !== \"retain\";\n\t\tconst result = search.index.search(lines, search.query);\n\t\tconst matches = result.matches;\n\t\tsearch.matches = matches;\n\t\tif (!result.changed && search.selectionMode === \"retain\") return false;\n\n\t\tconst exactIndex = result.changed\n\t\t\t? search.selectedKey\n\t\t\t\t? matches.findIndex((match) => getAltScreenSearchMatchKey(match) === search.selectedKey)\n\t\t\t\t: -1\n\t\t\t: search.selectedIndex;\n\t\tlet selectedIndex = -1;\n\t\tif (matches.length > 0) {\n\t\t\tif (search.selectionMode === \"query\") {\n\t\t\t\tlet low = 0;\n\t\t\t\tlet high = matches.length;\n\t\t\t\twhile (low < high) {\n\t\t\t\t\tconst middle = low + Math.floor((high - low) / 2);\n\t\t\t\t\tif ((matches[middle]!.segments[0]?.row ?? 0) < search.anchorRow) low = middle + 1;\n\t\t\t\t\telse high = middle;\n\t\t\t\t}\n\t\t\t\tselectedIndex = low < matches.length ? low : 0;\n\t\t\t} else if (search.selectionMode === \"next\") {\n\t\t\t\tconst baseIndex = exactIndex >= 0 ? exactIndex : Math.min(search.selectedIndex, matches.length - 1);\n\t\t\t\tselectedIndex = baseIndex < 0 ? 0 : (baseIndex + 1) % matches.length;\n\t\t\t} else if (search.selectionMode === \"previous\") {\n\t\t\t\tconst baseIndex = exactIndex >= 0 ? exactIndex : Math.min(search.selectedIndex, matches.length - 1);\n\t\t\t\tselectedIndex = baseIndex < 0 ? matches.length - 1 : (baseIndex - 1 + matches.length) % matches.length;\n\t\t\t} else {\n\t\t\t\tselectedIndex =\n\t\t\t\t\texactIndex >= 0 ? exactIndex : Math.min(Math.max(0, search.selectedIndex), matches.length - 1);\n\t\t\t}\n\t\t}\n\n\t\tsearch.selectedIndex = selectedIndex;\n\t\tsearch.selectedKey = selectedIndex >= 0 ? getAltScreenSearchMatchKey(matches[selectedIndex]!) : undefined;\n\t\tsearch.selectionMode = \"retain\";\n\t\tsearch.component.setResult(selectedIndex, matches.length);\n\t\tif (!shouldRevealSelection) return false;\n\n\t\tconst selected = matches[selectedIndex];\n\t\tconst firstSegment = selected?.segments[0];\n\t\tconst lastSegment = selected?.segments[selected.segments.length - 1];\n\t\tif (!box || !firstSegment || !lastSegment || scrollView.viewportHeight <= 0) return false;\n\t\tconst before = scrollView.scrollTop;\n\t\tconst visibleBottom = before + scrollView.viewportHeight - 1;\n\t\tlet target = before;\n\t\tif (firstSegment.row < before || lastSegment.row > visibleBottom) {\n\t\t\ttarget = firstSegment.row - Math.floor(scrollView.viewportHeight / 3);\n\t\t}\n\t\tscrollView.scrollTo(target, { disableFollow: true });\n\t\treturn scrollView.scrollTop !== before;\n\t}\n\n\t/** Show a transient message in the alternate-screen flash stack. */\n\tflash(message: string, durationMs?: number): void {\n\t\tthis.flashes.flash(message, durationMs);\n\t}\n\n\tprivate shouldDeferViewportInputToOverlay(): boolean {\n\t\treturn this.isOverlayFocused() && this.activeSearch?.overlay?.isFocused() !== true;\n\t}\n\n\tprivate clearComponentMouseGesture(): void {\n\t\tthis.mouseCapture = undefined;\n\t\tthis.mousePressTarget = undefined;\n\t\tthis.mousePressPoint = undefined;\n\t\tthis.mousePressMoved = false;\n\t}\n\n\tprivate handleViewportInput(data: string): { consume?: boolean } | undefined {\n\t\tif (data === FOCUS_OUT) {\n\t\t\tconst hadActiveSelection = this.selectionPressActive;\n\t\t\tconst hadNonEmptyActiveSelection = hadActiveSelection && this.getSelectionBounds() !== undefined;\n\t\t\tthis.selectionPressActive = false;\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\tthis.stopScrollbarHover();\n\t\t\tif (this.activeSearch?.component.setHoveredNavigationDirection(undefined)) this.requestRender();\n\t\t\tthis.stopScrollbarDrag();\n\t\t\tthis.pressedUrl = undefined;\n\t\t\tthis.selectionDragged = false;\n\t\t\tthis.clearComponentMouseGesture();\n\t\t\tthis.lastComponentClick = undefined;\n\t\t\tif (hadActiveSelection) {\n\t\t\t\tthis.selectionAnchor = undefined;\n\t\t\t\tthis.selectionFocus = undefined;\n\t\t\t\tthis.selectionGranularity = \"character\";\n\t\t\t\tthis.selectionInitialRange = undefined;\n\t\t\t\tif (hadNonEmptyActiveSelection) this.requestRender();\n\t\t\t}\n\t\t\tthis.lastClick = undefined;\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (data === FOCUS_IN) return { consume: true };\n\n\t\tconst wheelEvent = this.parseWheelEvent(data);\n\t\tif (wheelEvent) {\n\t\t\tconst event = this.createMouseEvent(\"wheel\", wheelEvent.button, wheelEvent.x, wheelEvent.y, {\n\t\t\t\twheelDelta: wheelEvent.direction * this.getWheelScrollLines(wheelEvent.button),\n\t\t\t});\n\t\t\tconst overlay = this.dispatchMouseToOverlay(event);\n\t\t\tconst result = overlay.result ?? (overlay.hit ? undefined : this.dispatchMouseToLayout(event));\n\t\t\tif (result) {\n\t\t\t\tif (this.applyMouseDispatchResult(event, result)) this.requestRender();\n\t\t\t\treturn { consume: true };\n\t\t\t}\n\t\t\tif (this.shouldDeferViewportInputToOverlay()) return undefined;\n\t\t\tthis.routeWheel(wheelEvent);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tconst mouseEvent = this.parseSgrMouseEvent(data);\n\t\tif (mouseEvent) {\n\t\t\tthis.handleMouseEvent(mouseEvent);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (this.isMouseSequence(data)) return { consume: true };\n\n\t\tconst keybindings = getKeybindings();\n\t\tconst isRelease = isKeyRelease(data);\n\t\tif (keybindings.matches(data, \"tui.altScreen.search\")) {\n\t\t\tif (!isRelease) this.toggleSearch();\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (this.activeSearch?.overlay?.isFocused()) {\n\t\t\tif (keybindings.matches(data, \"tui.altScreen.searchNext\")) {\n\t\t\t\tif (!isRelease) this.navigateSearch(1);\n\t\t\t\treturn { consume: true };\n\t\t\t}\n\t\t\tif (keybindings.matches(data, \"tui.altScreen.searchPrevious\")) {\n\t\t\t\tif (!isRelease) this.navigateSearch(-1);\n\t\t\t\treturn { consume: true };\n\t\t\t}\n\t\t\tif (keybindings.matches(data, \"tui.altScreen.searchClose\")) {\n\t\t\t\tif (!isRelease) this.closeSearch();\n\t\t\t\treturn { consume: true };\n\t\t\t}\n\t\t}\n\t\tif (this.shouldDeferViewportInputToOverlay()) return undefined;\n\t\tif (keybindings.matches(data, \"tui.altScreen.pageUp\")) {\n\t\t\tif (!isRelease) {\n\t\t\t\tthis.scrollBy(-Math.max(1, this.getPrimaryScrollView().viewportHeight - PAGE_SCROLL_OVERLAP));\n\t\t\t}\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.pageDown\")) {\n\t\t\tif (!isRelease) {\n\t\t\t\tthis.scrollBy(Math.max(1, this.getPrimaryScrollView().viewportHeight - PAGE_SCROLL_OVERLAP));\n\t\t\t}\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.halfPageUp\")) {\n\t\t\tif (!isRelease) this.scrollBy(-Math.max(1, Math.floor(this.getPrimaryScrollView().viewportHeight / 2)));\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.halfPageDown\")) {\n\t\t\tif (!isRelease) this.scrollBy(Math.max(1, Math.floor(this.getPrimaryScrollView().viewportHeight / 2)));\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.lineUp\")) {\n\t\t\tif (!isRelease) this.scrollBy(-1);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.lineDown\")) {\n\t\t\tif (!isRelease) this.scrollBy(1);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.previousPrompt\")) {\n\t\t\tif (!isRelease) this.scrollToPrompt(-1);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.nextPrompt\")) {\n\t\t\tif (!isRelease) this.scrollToPrompt(1);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.top\")) {\n\t\t\tif (!isRelease) this.scrollToTop();\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.bottom\")) {\n\t\t\tif (!isRelease) this.scrollToBottom();\n\t\t\treturn { consume: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate decodeMouseButton(button: number): TuiMouseButton {\n\t\tswitch (button & 3) {\n\t\t\tcase 0:\n\t\t\t\treturn \"left\";\n\t\t\tcase 1:\n\t\t\t\treturn \"middle\";\n\t\t\tcase 2:\n\t\t\t\treturn \"right\";\n\t\t\tdefault:\n\t\t\t\treturn \"none\";\n\t\t}\n\t}\n\n\tprivate createMouseEvent(\n\t\ttype: TuiMouseEvent[\"type\"],\n\t\tbutton: number,\n\t\tx: number,\n\t\ty: number,\n\t\textra: Partial<Pick<TuiMouseEvent, \"wheelDelta\" | \"clickCount\">> = {},\n\t): TuiMouseEvent {\n\t\treturn {\n\t\t\ttype,\n\t\t\tbutton: type === \"wheel\" ? \"none\" : this.decodeMouseButton(button),\n\t\t\tx,\n\t\t\ty,\n\t\t\tscreenX: x,\n\t\t\tscreenY: y,\n\t\t\twidth: Math.max(1, this.terminal.columns),\n\t\t\theight: Math.max(1, this.terminal.rows),\n\t\t\tshift: (button & 4) !== 0,\n\t\t\talt: (button & 8) !== 0,\n\t\t\tctrl: (button & 16) !== 0,\n\t\t\t...(extra.wheelDelta === undefined ? {} : { wheelDelta: extra.wheelDelta }),\n\t\t\t...(extra.clickCount === undefined ? {} : { clickCount: extra.clickCount }),\n\t\t};\n\t}\n\n\tprivate dispatchMouseToLayout(event: TuiMouseEvent): TuiMouseDispatchResult | undefined {\n\t\tif (!this.currentLayout) return undefined;\n\t\tconst visited = new Set<Component>();\n\t\tconst boxes = getLayoutBoxesAt(this.currentLayout, event.screenX, event.screenY);\n\t\tfor (const box of boxes) {\n\t\t\tif (visited.has(box.component)) continue;\n\t\t\tif (getLayoutNode(box.component) && box.component.handleMouse === Container.prototype.handleMouse) continue;\n\t\t\tvisited.add(box.component);\n\t\t\tconst result = dispatchMouseEvent(box.component, {\n\t\t\t\t...event,\n\t\t\t\tx: event.screenX - box.rect.x,\n\t\t\t\ty: event.screenY - box.rect.y,\n\t\t\t\twidth: box.rect.width,\n\t\t\t\theight: box.rect.height,\n\t\t\t});\n\t\t\tif (result) return result;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate applyMouseDispatchResult(event: TuiMouseEvent, result: TuiMouseDispatchResult): boolean {\n\t\tconst focusTarget = this.resolveMouseFocusTarget(result.focusTarget ?? result.target.component);\n\t\tconst focusChanged = result.focus === true && this.getFocusedComponent() !== focusTarget;\n\t\tif (result.focus) this.setFocus(focusTarget);\n\t\tif (result.capture) this.mouseCapture = result.target;\n\t\treturn (\n\t\t\tresult.render ??\n\t\t\t(focusChanged ||\n\t\t\t\tevent.type === \"press\" ||\n\t\t\t\tevent.type === \"click\" ||\n\t\t\t\tevent.type === \"drag\" ||\n\t\t\t\tevent.type === \"wheel\")\n\t\t);\n\t}\n\n\tprivate dispatchMouseToTarget(\n\t\tevent: TuiMouseEvent,\n\t\ttarget: TuiMouseDispatchTarget,\n\t): TuiMouseDispatchResult | undefined {\n\t\treturn dispatchMouseEvent(target.component, retargetMouseEvent(event, target));\n\t}\n\n\tprivate getComponentClickCount(target: TuiMouseDispatchTarget, x: number, y: number): number {\n\t\tconst now = Date.now();\n\t\tconst previous = this.lastComponentClick;\n\t\tconst count =\n\t\t\tprevious &&\n\t\t\tnow - previous.timestamp <= DOUBLE_CLICK_INTERVAL_MS &&\n\t\t\tprevious.component === target.component &&\n\t\t\tprevious.x === x &&\n\t\t\tprevious.y === y\n\t\t\t\t? (previous.count % 3) + 1\n\t\t\t\t: 1;\n\t\tthis.lastComponentClick = { timestamp: now, count, component: target.component, x, y };\n\t\treturn count;\n\t}\n\n\tprivate clearTextSelection(): void {\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = false;\n\t\tthis.selectionAnchor = undefined;\n\t\tthis.selectionFocus = undefined;\n\t\tthis.selectionGranularity = \"character\";\n\t\tthis.selectionInitialRange = undefined;\n\t\tthis.pressedUrl = undefined;\n\t\tthis.selectionDragged = false;\n\t}\n\n\tprivate handleMouseEvent(raw: SgrMouseEvent): void {\n\t\tconst isMotion = (raw.button & 32) !== 0;\n\t\tconst type: TuiMouseEvent[\"type\"] = raw.release\n\t\t\t? \"release\"\n\t\t\t: isMotion\n\t\t\t\t? this.decodeMouseButton(raw.button) === \"none\"\n\t\t\t\t\t? \"move\"\n\t\t\t\t\t: \"drag\"\n\t\t\t\t: \"press\";\n\t\tconst event = this.createMouseEvent(type, raw.button, raw.x, raw.y);\n\n\t\tif (this.mouseCapture || this.mousePressTarget) {\n\t\t\tconst target = this.mouseCapture ?? this.mousePressTarget!;\n\t\t\tif (this.mousePressPoint && (raw.x !== this.mousePressPoint.x || raw.y !== this.mousePressPoint.y)) {\n\t\t\t\tthis.mousePressMoved = true;\n\t\t\t\tthis.lastComponentClick = undefined;\n\t\t\t}\n\t\t\tlet render = false;\n\t\t\tconst targetResult = this.dispatchMouseToTarget(event, target);\n\t\t\tif (targetResult) render = this.applyMouseDispatchResult(event, targetResult);\n\t\t\tif (raw.release) {\n\t\t\t\tif (!this.mousePressMoved && this.mousePressPoint?.x === raw.x && this.mousePressPoint.y === raw.y) {\n\t\t\t\t\tconst clickEvent = this.createMouseEvent(\"click\", raw.button, raw.x, raw.y, {\n\t\t\t\t\t\tclickCount: this.getComponentClickCount(target, raw.x, raw.y),\n\t\t\t\t\t});\n\t\t\t\t\tconst clickResult = this.dispatchMouseToTarget(clickEvent, target);\n\t\t\t\t\tif (clickResult) render = this.applyMouseDispatchResult(clickEvent, clickResult) || render;\n\t\t\t\t}\n\t\t\t\tthis.clearComponentMouseGesture();\n\t\t\t}\n\t\t\tif (render) this.requestRender();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.handleSearchMouseEvent(raw)) return;\n\n\t\tconst overlay = this.dispatchMouseToOverlay(event);\n\t\tif (!overlay.hit) {\n\t\t\tif (this.handleScrollToEndIndicatorMouseEvent(raw)) return;\n\t\t\tconst scrollbarHandled = this.handleScrollbarMouseEvent(raw);\n\t\t\tif (!this.scrollbarDrag) this.updateScrollbarHover(raw.x, raw.y);\n\t\t\tif (scrollbarHandled) return;\n\t\t} else {\n\t\t\tthis.stopScrollbarHover();\n\t\t}\n\n\t\tconst result = overlay.result ?? (overlay.hit ? undefined : this.dispatchMouseToLayout(event));\n\t\tif (result) {\n\t\t\tconst render = this.applyMouseDispatchResult(event, result);\n\t\t\tif (type === \"press\") {\n\t\t\t\tthis.clearTextSelection();\n\t\t\t\tthis.mousePressTarget = result.target;\n\t\t\t\tthis.mousePressPoint = { x: raw.x, y: raw.y };\n\t\t\t\tthis.mousePressMoved = false;\n\t\t\t}\n\t\t\tif (render) this.requestRender();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.handleRightClickPaste(raw)) return;\n\t\tthis.handleSelectionMouseEvent(raw);\n\t}\n\n\tprivate parseWheelEvent(data: string): WheelEvent | undefined {\n\t\tconst sgr = /^\\x1b\\[<(\\d+);(\\d+);(\\d+)[Mm]$/.exec(data);\n\t\tif (sgr) {\n\t\t\tconst button = Number.parseInt(sgr[1], 10);\n\t\t\tif ((button & 64) === 0) return undefined;\n\t\t\tconst direction = button & 3;\n\t\t\tif (direction !== 0 && direction !== 1) return undefined;\n\t\t\treturn {\n\t\t\t\tdirection: direction === 0 ? -1 : 1,\n\t\t\t\tx: Number.parseInt(sgr[2], 10) - 1,\n\t\t\t\ty: Number.parseInt(sgr[3], 10) - 1,\n\t\t\t\tbutton,\n\t\t\t};\n\t\t}\n\t\tif (data.length === 6 && data.startsWith(\"\\x1b[M\")) {\n\t\t\tconst button = data.charCodeAt(3) - 32;\n\t\t\tif ((button & 64) === 0) return undefined;\n\t\t\tconst direction = button & 3;\n\t\t\tif (direction !== 0 && direction !== 1) return undefined;\n\t\t\treturn {\n\t\t\t\tdirection: direction === 0 ? -1 : 1,\n\t\t\t\tx: data.charCodeAt(4) - 33,\n\t\t\t\ty: data.charCodeAt(5) - 33,\n\t\t\t\tbutton,\n\t\t\t};\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate getWheelScrollLines(button: number): number {\n\t\t// SGR mouse button codes use bit 3 (value 8) for the Alt modifier.\n\t\treturn (button & 8) !== 0 ? this.wheelScrollLines * ALT_WHEEL_SCROLL_MULTIPLIER : this.wheelScrollLines;\n\t}\n\n\tprivate routeWheel(event: WheelEvent): void {\n\t\tlet remaining = event.direction * this.getWheelScrollLines(event.button);\n\t\tconst seen = new Set<ScrollView>();\n\t\tfor (const scrollView of this.currentLayout ? getScrollViewsAt(this.currentLayout, event.x, event.y) : []) {\n\t\t\tseen.add(scrollView);\n\t\t\tremaining = scrollView.scrollBy(remaining);\n\t\t\tif (remaining === 0 || scrollView.overscroll === \"contain\") break;\n\t\t}\n\t\tconst primary = this.getPrimaryScrollView();\n\t\tif (remaining !== 0 && !seen.has(primary)) primary.scrollBy(remaining);\n\t\tthis.updateScrollbarHover(event.x, event.y);\n\t\tthis.requestRender();\n\t}\n\n\tprivate parseSgrMouseEvent(data: string): SgrMouseEvent | undefined {\n\t\tconst match = /^\\x1b\\[<(\\d+);(\\d+);(\\d+)([Mm])$/.exec(data);\n\t\tif (!match) return undefined;\n\t\treturn {\n\t\t\tbutton: Number.parseInt(match[1], 10),\n\t\t\tx: Number.parseInt(match[2], 10) - 1,\n\t\t\ty: Number.parseInt(match[3], 10) - 1,\n\t\t\trelease: match[4] === \"m\",\n\t\t};\n\t}\n\n\tprivate handleRightClickPaste(event: SgrMouseEvent): boolean {\n\t\tif (\n\t\t\t!this.onRightClickPaste ||\n\t\t\tprocess.platform !== \"win32\" ||\n\t\t\tprocess.env.TERM_PROGRAM?.toLowerCase() === \"vscode\" ||\n\t\t\tevent.release ||\n\t\t\tevent.button !== 2\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\tthis.onRightClickPaste();\n\t\t} catch {\n\t\t\t// Clipboard paste is best-effort.\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate handleScrollToEndIndicatorMouseEvent(event: SgrMouseEvent): boolean {\n\t\tconst rect = this.scrollToEndIndicatorRect;\n\t\tif (!rect || event.release || (event.button & 32) !== 0 || (event.button & 3) !== 0) return false;\n\t\tif (event.y !== rect.row || event.x < rect.column || event.x >= rect.column + rect.width) return false;\n\t\tthis.scrollToBottom();\n\t\treturn true;\n\t}\n\n\tprivate getScrollbarTargetAt(x: number, y: number, includeHiddenAuto = false): ScrollbarTarget | undefined {\n\t\tif (this.hasOverlay() || !this.currentLayout) return undefined;\n\t\tfor (const scrollView of getScrollViewsAt(this.currentLayout, x, y)) {\n\t\t\tconst box = getScrollViewBox(this.currentLayout, scrollView);\n\t\t\tconst geometry = box ? getScrollbarGeometry(box, includeHiddenAuto) : undefined;\n\t\t\tif (\n\t\t\t\tgeometry &&\n\t\t\t\tx === geometry.column &&\n\t\t\t\ty >= geometry.trackTop &&\n\t\t\t\ty < geometry.trackTop + geometry.trackHeight\n\t\t\t) {\n\t\t\t\treturn { scrollView, geometry };\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate setScrollbarHover(scrollView: ScrollView | undefined): void {\n\t\tif (scrollView === this.scrollbarHover) return;\n\t\tthis.scrollbarHover?.setScrollbarActive(false);\n\t\tthis.scrollbarHover = scrollView;\n\t\tthis.scrollbarHover?.setScrollbarActive(true);\n\t}\n\n\tprivate updateScrollbarHover(x: number, y: number): void {\n\t\tthis.setScrollbarHover(this.getScrollbarTargetAt(x, y, true)?.scrollView);\n\t}\n\n\tprivate stopScrollbarHover(): void {\n\t\tthis.setScrollbarHover(undefined);\n\t}\n\n\tprivate scrollScrollbarToPointer(\n\t\tscrollView: ScrollView,\n\t\tgeometry: ScrollbarGeometry,\n\t\tpointerY: number,\n\t\tgrabOffset: number,\n\t): void {\n\t\tconst maxThumbOffset = geometry.trackHeight - geometry.thumbHeight;\n\t\tconst thumbOffset = Math.max(0, Math.min(maxThumbOffset, pointerY - geometry.trackTop - grabOffset));\n\t\tconst scrollTop = maxThumbOffset === 0 ? 0 : Math.round((thumbOffset / maxThumbOffset) * geometry.maxScrollTop);\n\t\tscrollView.scrollTo(scrollTop);\n\t}\n\n\tprivate handleScrollbarMouseEvent(event: SgrMouseEvent): boolean {\n\t\tif (this.scrollbarDrag) {\n\t\t\tif (event.release) {\n\t\t\t\tthis.stopScrollbarDrag();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tconst box = this.currentLayout\n\t\t\t\t? getScrollViewBox(this.currentLayout, this.scrollbarDrag.scrollView)\n\t\t\t\t: undefined;\n\t\t\tconst geometry = box ? getScrollbarGeometry(box) : undefined;\n\t\t\tif (geometry) {\n\t\t\t\tthis.scrollScrollbarToPointer(\n\t\t\t\t\tthis.scrollbarDrag.scrollView,\n\t\t\t\t\tgeometry,\n\t\t\t\t\tevent.y,\n\t\t\t\t\tthis.scrollbarDrag.grabOffset,\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (event.release || (event.button & 32) !== 0 || (event.button & 3) !== 0) return false;\n\t\tconst target = this.getScrollbarTargetAt(event.x, event.y);\n\t\tif (!target) return false;\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = false;\n\t\tthis.selectionAnchor = undefined;\n\t\tthis.selectionFocus = undefined;\n\t\tthis.selectionGranularity = \"character\";\n\t\tthis.selectionInitialRange = undefined;\n\t\tthis.lastClick = undefined;\n\t\tthis.pressedUrl = undefined;\n\t\tthis.selectionDragged = false;\n\t\tthis.setScrollbarHover(target.scrollView);\n\t\tconst onThumb =\n\t\t\tevent.y >= target.geometry.thumbTop && event.y < target.geometry.thumbTop + target.geometry.thumbHeight;\n\t\tconst grabOffset = onThumb ? event.y - target.geometry.thumbTop : Math.floor(target.geometry.thumbHeight / 2);\n\t\tif (!onThumb) this.scrollScrollbarToPointer(target.scrollView, target.geometry, event.y, grabOffset);\n\t\tthis.scrollbarDrag = {\n\t\t\tscrollView: target.scrollView,\n\t\t\tgrabOffset,\n\t\t};\n\t\treturn true;\n\t}\n\n\tprivate stopScrollbarDrag(): void {\n\t\tthis.scrollbarDrag = undefined;\n\t}\n\n\tprivate getScrollSelectionPoint(scrollView: ScrollView, x: number, y: number): SelectionPoint | undefined {\n\t\tif (!this.currentLayout) return undefined;\n\t\tconst box = getScrollViewBox(this.currentLayout, scrollView);\n\t\tif (!box || box.rect.height <= 0 || box.clip.height <= 0) return undefined;\n\t\tconst visibleTop = Math.max(0, box.rect.y, box.clip.y);\n\t\tconst visibleBottom = Math.min(\n\t\t\tthis.terminal.rows - 1,\n\t\t\tbox.rect.y + box.rect.height - 1,\n\t\t\tbox.clip.y + box.clip.height - 1,\n\t\t);\n\t\tif (visibleBottom < visibleTop) return undefined;\n\t\tconst pointerRow = Math.max(visibleTop, Math.min(visibleBottom, y));\n\t\tconst maxContentRow = Math.max(0, (box.scrollContentLines?.length ?? 1) - 1);\n\t\treturn {\n\t\t\trow: Math.max(0, Math.min(maxContentRow, scrollView.scrollTop + pointerRow - box.rect.y)),\n\t\t\tcol: Math.max(0, Math.min(box.rect.width - 1, x - box.rect.x)),\n\t\t\tscrollView,\n\t\t};\n\t}\n\n\tprivate getSelectionPoint(event: SgrMouseEvent, scrollView?: ScrollView): SelectionPoint {\n\t\tif (scrollView) {\n\t\t\tconst point = this.getScrollSelectionPoint(scrollView, event.x, event.y);\n\t\t\tif (point) return point;\n\t\t}\n\t\treturn {\n\t\t\trow: Math.max(0, Math.min(this.terminal.rows - 1, event.y)),\n\t\t\tcol: Math.max(0, Math.min(this.terminal.columns - 1, event.x)),\n\t\t};\n\t}\n\n\tprivate getSelectionSourceLine(point: SelectionPoint): string {\n\t\tif (point.scrollView && this.currentLayout) {\n\t\t\tconst lines = getScrollViewBox(this.currentLayout, point.scrollView)?.scrollContentLines;\n\t\t\tif (lines) return lines[point.row] ?? \"\";\n\t\t}\n\t\treturn this.previousScreen[point.row] ?? \"\";\n\t}\n\n\tprivate getWordSelection(point: SelectionPoint): SelectionRange | undefined {\n\t\tconst line = stripTerminalSequences(this.getSelectionSourceLine(point));\n\t\tconst segments: Array<{ start: number; end: number; selectable: boolean; joiner: boolean }> = [];\n\t\tlet start = 0;\n\t\tfor (const segment of wordSegmenter.segment(line)) {\n\t\t\tconst end = start + visibleWidth(segment.segment);\n\t\t\tconst joiner = TERMINAL_WORD_SELECTION_JOINERS.has(segment.segment);\n\t\t\tsegments.push({ start, end, selectable: segment.isWordLike === true || joiner, joiner });\n\t\t\tstart = end;\n\t\t}\n\t\tconst clickedSegmentIndex = segments.findIndex(\n\t\t\t(segment) => point.col >= segment.start && point.col < segment.end,\n\t\t);\n\t\tif (clickedSegmentIndex < 0) return undefined;\n\n\t\tconst canJoin = (\n\t\t\tleft: { selectable: boolean; joiner: boolean },\n\t\t\tright: { selectable: boolean; joiner: boolean },\n\t\t): boolean => left.selectable && right.selectable && (left.joiner || right.joiner);\n\t\tlet selectionStart = segments[clickedSegmentIndex].start;\n\t\tlet selectionEnd = segments[clickedSegmentIndex].end;\n\t\tfor (let index = clickedSegmentIndex; index > 0 && canJoin(segments[index - 1], segments[index]); index--) {\n\t\t\tselectionStart = segments[index - 1].start;\n\t\t}\n\t\tfor (\n\t\t\tlet index = clickedSegmentIndex;\n\t\t\tindex < segments.length - 1 && canJoin(segments[index], segments[index + 1]);\n\t\t\tindex++\n\t\t) {\n\t\t\tselectionEnd = segments[index + 1].end;\n\t\t}\n\t\treturn {\n\t\t\tstart: { ...point, col: selectionStart },\n\t\t\tend: { ...point, col: selectionEnd, boundary: true },\n\t\t};\n\t}\n\n\tprivate getLineSelection(point: SelectionPoint): SelectionRange {\n\t\treturn {\n\t\t\tstart: { ...point, col: 0 },\n\t\t\tend: { ...point, col: visibleWidth(this.getSelectionSourceLine(point)), boundary: true },\n\t\t};\n\t}\n\n\tprivate updateSelectionFocus(point: SelectionPoint): void {\n\t\tif (this.selectionGranularity === \"character\" || !this.selectionInitialRange) {\n\t\t\tthis.selectionFocus = point;\n\t\t\treturn;\n\t\t}\n\t\tconst range = this.selectionGranularity === \"word\" ? this.getWordSelection(point) : this.getLineSelection(point);\n\t\tif (!range) return;\n\t\tconst initial = this.selectionInitialRange;\n\t\tconst targetBeforeInitial =\n\t\t\trange.start.row < initial.start.row ||\n\t\t\t(range.start.row === initial.start.row && range.start.col < initial.start.col);\n\t\tif (targetBeforeInitial) {\n\t\t\tthis.selectionAnchor = initial.end;\n\t\t\tthis.selectionFocus = range.start;\n\t\t} else {\n\t\t\tthis.selectionAnchor = initial.start;\n\t\t\tthis.selectionFocus = range.end;\n\t\t}\n\t}\n\n\tprivate getClickCount(point: SelectionPoint, word: SelectionRange | undefined): number {\n\t\tconst now = Date.now();\n\t\tconst previous = this.lastClick;\n\t\tconst count =\n\t\t\tword &&\n\t\t\tprevious &&\n\t\t\tnow - previous.timestamp <= DOUBLE_CLICK_INTERVAL_MS &&\n\t\t\tprevious.row === point.row &&\n\t\t\tprevious.scrollView === point.scrollView &&\n\t\t\tprevious.wordStart === word.start.col &&\n\t\t\tprevious.wordEnd === word.end.col\n\t\t\t\t? (previous.count % 3) + 1\n\t\t\t\t: 1;\n\t\tthis.lastClick = word\n\t\t\t? {\n\t\t\t\t\ttimestamp: now,\n\t\t\t\t\tcount,\n\t\t\t\t\trow: point.row,\n\t\t\t\t\tscrollView: point.scrollView,\n\t\t\t\t\twordStart: word.start.col,\n\t\t\t\t\twordEnd: word.end.col,\n\t\t\t\t}\n\t\t\t: undefined;\n\t\treturn count;\n\t}\n\n\tprivate updateSelectionAutoScroll(event: SgrMouseEvent): void {\n\t\tconst scrollView = this.selectionAnchor?.scrollView;\n\t\tif (!scrollView || !this.currentLayout) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tconst box = getScrollViewBox(this.currentLayout, scrollView);\n\t\tif (!box || box.rect.height <= 0 || box.clip.height <= 0) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tconst visibleTop = Math.max(0, box.rect.y, box.clip.y);\n\t\tconst visibleBottom = Math.min(\n\t\t\tthis.terminal.rows - 1,\n\t\t\tbox.rect.y + box.rect.height - 1,\n\t\t\tbox.clip.y + box.clip.height - 1,\n\t\t);\n\t\tthis.selectionDragPointer = { x: event.x, y: event.y };\n\t\tthis.selectionAutoScrollDirection = event.y <= visibleTop ? -1 : event.y >= visibleBottom ? 1 : 0;\n\t\tif (this.selectionAutoScrollDirection === 0) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tif (this.selectionAutoScrollTimer) return;\n\t\tthis.selectionAutoScrollTimer = setInterval(() => this.autoScrollSelection(), 50);\n\t\tthis.selectionAutoScrollTimer.unref();\n\t}\n\n\tprivate autoScrollSelection(): void {\n\t\tconst scrollView = this.selectionAnchor?.scrollView;\n\t\tconst pointer = this.selectionDragPointer;\n\t\tconst direction = this.selectionAutoScrollDirection;\n\t\tif (!scrollView || !pointer || direction === 0) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tconst remaining = scrollView.scrollBy(direction);\n\t\tif (remaining === direction) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tconst point = this.getScrollSelectionPoint(scrollView, pointer.x, pointer.y);\n\t\tif (point) this.updateSelectionFocus(point);\n\t\tthis.requestRender();\n\t}\n\n\tprivate stopSelectionAutoScroll(): void {\n\t\tif (this.selectionAutoScrollTimer) {\n\t\t\tclearInterval(this.selectionAutoScrollTimer);\n\t\t\tthis.selectionAutoScrollTimer = undefined;\n\t\t}\n\t\tthis.selectionAutoScrollDirection = 0;\n\t\tthis.selectionDragPointer = undefined;\n\t}\n\n\tprivate handleSelectionMouseEvent(event: SgrMouseEvent): void {\n\t\tconst button = event.button & 3;\n\t\tif (button !== 0 && !(event.release && button === 3)) return;\n\t\tconst anchorScrollView = this.selectionAnchor?.scrollView;\n\t\tconst point = this.getSelectionPoint(event, anchorScrollView);\n\t\tif (event.release) {\n\t\t\tif (!this.selectionPressActive) return;\n\t\t\tthis.selectionPressActive = false;\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\tif (!this.selectionAnchor) return;\n\t\t\tthis.updateSelectionFocus(point);\n\t\t\tconst isClick =\n\t\t\t\t!this.selectionDragged &&\n\t\t\t\tthis.selectionAnchor.scrollView === point.scrollView &&\n\t\t\t\tthis.selectionAnchor.row === point.row &&\n\t\t\t\tthis.selectionAnchor.col === point.col;\n\t\t\tconst clickedUrl = isClick ? this.pressedUrl : undefined;\n\t\t\tthis.pressedUrl = undefined;\n\t\t\tif (clickedUrl && this.openUrl) {\n\t\t\t\tthis.selectionAnchor = undefined;\n\t\t\t\tthis.selectionFocus = undefined;\n\t\t\t\ttry {\n\t\t\t\t\tthis.openUrl(clickedUrl);\n\t\t\t\t} catch {\n\t\t\t\t\t// URL activation is best-effort.\n\t\t\t\t}\n\t\t\t\tthis.requestRender();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isClick) {\n\t\t\t\tconst clickEvent = this.createMouseEvent(\"click\", event.button, event.x, event.y, {\n\t\t\t\t\tclickCount: this.lastClick?.count ?? 1,\n\t\t\t\t});\n\t\t\t\tconst overlay = this.dispatchMouseToOverlay(clickEvent);\n\t\t\t\tconst result = overlay.result ?? (overlay.hit ? undefined : this.dispatchMouseToLayout(clickEvent));\n\t\t\t\tif (result) {\n\t\t\t\t\tconst render = this.applyMouseDispatchResult(clickEvent, result);\n\t\t\t\t\tthis.clearTextSelection();\n\t\t\t\t\tif (render) this.requestRender();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this.copyOnSelect) void this.copySelectionToClipboard();\n\t\t\tthis.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tif ((event.button & 32) !== 0) {\n\t\t\tif (!this.selectionPressActive || !this.selectionAnchor) return;\n\t\t\tthis.selectionDragged = true;\n\t\t\tthis.lastClick = undefined;\n\t\t\tthis.pressedUrl = undefined;\n\t\t\tthis.updateSelectionFocus(point);\n\t\t\tthis.updateSelectionAutoScroll(event);\n\t\t\tthis.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = true;\n\t\tconst scrollView =\n\t\t\t!this.hasOverlay() && this.currentLayout\n\t\t\t\t? getScrollViewsAt(this.currentLayout, event.x, event.y)[0]\n\t\t\t\t: undefined;\n\t\tconst anchor = this.getSelectionPoint(event, scrollView);\n\t\tconst word = this.getWordSelection(anchor);\n\t\tconst clickCount = this.getClickCount(anchor, word);\n\t\tconst range = clickCount === 2 ? word : clickCount === 3 ? this.getLineSelection(anchor) : undefined;\n\t\tthis.selectionGranularity = range ? (clickCount === 2 ? \"word\" : \"line\") : \"character\";\n\t\tthis.selectionInitialRange = range;\n\t\tthis.selectionAnchor = range?.start ?? anchor;\n\t\tthis.selectionFocus = range?.end ?? anchor;\n\t\tthis.selectionDragged = false;\n\t\tthis.pressedUrl = range\n\t\t\t? undefined\n\t\t\t: getOsc8LinkAtColumn(\n\t\t\t\t\tthis.previousScreen[Math.max(0, Math.min(this.terminal.rows - 1, event.y))] ?? \"\",\n\t\t\t\t\tMath.max(0, Math.min(this.terminal.columns - 1, event.x)),\n\t\t\t\t);\n\t\tthis.requestRender();\n\t}\n\n\tprivate getSelectionBounds(): { start: SelectionPoint; end: SelectionPoint } | undefined {\n\t\tif (!this.selectionAnchor || !this.selectionFocus) return undefined;\n\t\tif (this.selectionAnchor.scrollView !== this.selectionFocus.scrollView) return undefined;\n\t\tconst anchorBeforeFocus =\n\t\t\tthis.selectionAnchor.row < this.selectionFocus.row ||\n\t\t\t(this.selectionAnchor.row === this.selectionFocus.row && this.selectionAnchor.col < this.selectionFocus.col);\n\t\tif (\n\t\t\tthis.selectionAnchor.row === this.selectionFocus.row &&\n\t\t\tthis.selectionAnchor.col === this.selectionFocus.col\n\t\t) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn anchorBeforeFocus\n\t\t\t? { start: this.selectionAnchor, end: this.selectionFocus }\n\t\t\t: { start: this.selectionFocus, end: this.selectionAnchor };\n\t}\n\n\tprivate getSelectionColumns(\n\t\tline: string,\n\t\trow: number,\n\t\tselection: { start: SelectionPoint; end: SelectionPoint },\n\t\tminColumn = 0,\n\t\tmaxColumn = visibleWidth(line),\n\t): { start: number; end: number } {\n\t\tconst lineWidth = visibleWidth(line);\n\t\tlet start = Math.max(0, minColumn);\n\t\tlet end = Math.min(lineWidth, maxColumn);\n\t\tif (row === selection.start.row) {\n\t\t\tstart = getGraphemeCellRange(line, selection.start.col)?.start ?? Math.min(selection.start.col, lineWidth);\n\t\t}\n\t\tif (row === selection.end.row) {\n\t\t\tend = selection.end.boundary\n\t\t\t\t? Math.min(selection.end.col, lineWidth)\n\t\t\t\t: (getGraphemeCellRange(line, selection.end.col)?.end ?? Math.min(selection.end.col + 1, lineWidth));\n\t\t}\n\t\treturn { start: Math.max(minColumn, start), end: Math.min(maxColumn, end) };\n\t}\n\n\tprivate getActiveSelectionText(): string | undefined {\n\t\tconst selection = this.getSelectionBounds();\n\t\tif (!selection) return undefined;\n\t\tlet sourceLines: readonly string[] = this.previousScreen;\n\t\tif (selection.start.scrollView) {\n\t\t\tif (!this.currentLayout) return undefined;\n\t\t\tconst box = getScrollViewBox(this.currentLayout, selection.start.scrollView);\n\t\t\tif (!box?.scrollContentLines) return undefined;\n\t\t\tsourceLines = box.scrollContentLines;\n\t\t}\n\t\tconst lines: string[] = [];\n\t\tfor (let row = selection.start.row; row <= selection.end.row; row++) {\n\t\t\tconst line = sourceLines[row] ?? \"\";\n\t\t\tconst columns = this.getSelectionColumns(line, row, selection);\n\t\t\tlines.push(\n\t\t\t\tstripTerminalSequences(\n\t\t\t\t\tsliceByColumn(line, columns.start, Math.max(0, columns.end - columns.start), true),\n\t\t\t\t).trimEnd(),\n\t\t\t);\n\t\t}\n\t\tconst text = lines.join(\"\\n\");\n\t\treturn text.length === 0 ? undefined : text;\n\t}\n\n\tprivate async copySelectionToClipboard(): Promise<boolean> {\n\t\tconst text = this.getActiveSelectionText();\n\t\tif (!text) return false;\n\t\treturn this.copyTextToClipboard(text);\n\t}\n\n\tprivate async copyTextToClipboard(text: string): Promise<boolean> {\n\t\t// Prefer an injected clipboard implementation (native clipboard + platform tools with a\n\t\t// verified success path) when the host app provides one. A bare OSC 52 write can show\n\t\t// \"Copied!\" while leaving the system clipboard untouched (e.g. macOS Terminal.app, tmux\n\t\t// without OSC 52 clipboard passthrough), so only report success when it actually copies.\n\t\tif (this.copySelection) {\n\t\t\tconst result = await this.copySelection(text);\n\t\t\tconst ok = result === true;\n\t\t\tthis.flash(\n\t\t\t\tok ? \"Copied!\" : typeof result === \"string\" ? result : \"Copy failed\",\n\t\t\t\tok ? undefined : COPY_ERROR_FLASH_DURATION_MS,\n\t\t\t);\n\t\t\treturn ok;\n\t\t}\n\t\tthis.terminal.write(`\\x1b]52;c;${Buffer.from(text).toString(\"base64\")}\\x07`);\n\t\tthis.flash(\"Copied!\");\n\t\treturn true;\n\t}\n\n\tprivate applySearchTextHighlight(text: string, current: boolean): string {\n\t\tconst style = current ? this.searchCurrentMatchStyle : this.searchMatchStyle;\n\t\tlet result = \"\";\n\t\tlet plainStart = 0;\n\t\tlet index = 0;\n\t\twhile (index < text.length) {\n\t\t\tconst ansi = extractAnsiCode(text, index);\n\t\t\tif (!ansi) {\n\t\t\t\tindex += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (index > plainStart) result += style(text.slice(plainStart, index));\n\t\t\tresult += ansi.code;\n\t\t\tindex += ansi.length;\n\t\t\tplainStart = index;\n\t\t}\n\t\tif (plainStart < text.length) result += style(text.slice(plainStart));\n\t\treturn result;\n\t}\n\n\tprivate applySearchHighlights(screen: string[], layout: LayoutFrame): string[] {\n\t\tconst search = this.activeSearch;\n\t\tif (!search || search.selectedIndex < 0 || search.matches.length === 0) return screen;\n\t\tconst scrollView = layout.primaryScrollView ?? this.implicitScrollView;\n\t\tconst box = getScrollViewBox(layout, scrollView);\n\t\tif (!box) return screen;\n\n\t\tconst rangesByRow = new Map<number, SearchHighlightRange[]>();\n\t\tconst scrollbarColumn = getScrollbarGeometry(box)?.column;\n\t\tconst minRow = Math.max(0, box.rect.y, box.clip.y);\n\t\tconst maxRow = Math.min(screen.length, box.rect.y + box.rect.height, box.clip.y + box.clip.height);\n\t\tconst minColumn = Math.max(0, box.rect.x, box.clip.x);\n\t\tconst maxColumn = Math.min(\n\t\t\tthis.terminal.columns,\n\t\t\tbox.rect.x + box.rect.width,\n\t\t\tbox.clip.x + box.clip.width,\n\t\t\tscrollbarColumn ?? Number.POSITIVE_INFINITY,\n\t\t);\n\t\tconst minContentRow = scrollView.scrollTop + minRow - box.rect.y;\n\t\tconst maxContentRow = scrollView.scrollTop + maxRow - box.rect.y - 1;\n\t\tlet low = 0;\n\t\tlet high = search.matches.length;\n\t\twhile (low < high) {\n\t\t\tconst middle = low + Math.floor((high - low) / 2);\n\t\t\tconst match = search.matches[middle]!;\n\t\t\tconst lastRow = match.segments[match.segments.length - 1]?.row ?? -1;\n\t\t\tif (lastRow < minContentRow) low = middle + 1;\n\t\t\telse high = middle;\n\t\t}\n\t\tfor (let matchIndex = low; matchIndex < search.matches.length; matchIndex++) {\n\t\t\tconst match = search.matches[matchIndex]!;\n\t\t\tif ((match.segments[0]?.row ?? 0) > maxContentRow) break;\n\t\t\tfor (const segment of match.segments) {\n\t\t\t\tconst row = box.rect.y + segment.row - scrollView.scrollTop;\n\t\t\t\tif (row < minRow || row >= maxRow) continue;\n\t\t\t\tconst startCol = Math.max(minColumn, box.rect.x + segment.startCol);\n\t\t\t\tconst endCol = Math.min(maxColumn, box.rect.x + segment.endCol);\n\t\t\t\tif (endCol <= startCol) continue;\n\t\t\t\tconst ranges = rangesByRow.get(row) ?? [];\n\t\t\t\tranges.push({ startCol, endCol, current: matchIndex === search.selectedIndex });\n\t\t\t\trangesByRow.set(row, ranges);\n\t\t\t}\n\t\t}\n\n\t\tconst result = [...screen];\n\t\tfor (const [row, ranges] of rangesByRow) {\n\t\t\tlet line = result[row] ?? \"\";\n\t\t\tif (isImageLine(line)) continue;\n\t\t\tconst lineWidth = visibleWidth(line);\n\t\t\tfor (const range of ranges.sort((a, b) => b.startCol - a.startCol)) {\n\t\t\t\tconst startCol = Math.min(range.startCol, lineWidth);\n\t\t\t\tconst endCol = Math.min(range.endCol, lineWidth);\n\t\t\t\tif (endCol <= startCol) continue;\n\t\t\t\tconst before = sliceByColumn(line, 0, startCol, true);\n\t\t\t\tconst highlighted = sliceByColumn(line, startCol, endCol - startCol, true);\n\t\t\t\tconst after = sliceByColumn(line, endCol, Math.max(0, lineWidth - endCol), true);\n\t\t\t\tline = `${before}${this.applySearchTextHighlight(highlighted, range.current)}${after}`;\n\t\t\t}\n\t\t\tresult[row] = line;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprivate applySelectionHighlight(text: string): string {\n\t\tlet result = \"\\x1b[7m\";\n\t\tlet index = 0;\n\t\twhile (index < text.length) {\n\t\t\tconst ansi = extractAnsiCode(text, index);\n\t\t\tif (!ansi) {\n\t\t\t\tresult += text[index];\n\t\t\t\tindex += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += ansi.code;\n\t\t\tif (ansi.code.endsWith(\"m\")) result += \"\\x1b[7m\";\n\t\t\tindex += ansi.length;\n\t\t}\n\t\treturn `${result}\\x1b[27m`;\n\t}\n\n\tprivate applySelection(screen: string[], layout = this.currentLayout): string[] {\n\t\tconst selection = this.getSelectionBounds();\n\t\tif (!selection) return screen;\n\t\tlet screenSelection = selection;\n\t\tlet minRow = 0;\n\t\tlet maxRow = screen.length - 1;\n\t\tlet minColumn = 0;\n\t\tlet maxColumn = this.terminal.columns;\n\t\tif (selection.start.scrollView) {\n\t\t\tif (!layout) return screen;\n\t\t\tconst box = getScrollViewBox(layout, selection.start.scrollView);\n\t\t\tif (!box) return screen;\n\t\t\tminRow = Math.max(0, box.rect.y, box.clip.y);\n\t\t\tmaxRow = Math.min(screen.length - 1, box.rect.y + box.rect.height - 1, box.clip.y + box.clip.height - 1);\n\t\t\tminColumn = Math.max(0, box.rect.x, box.clip.x);\n\t\t\tmaxColumn = Math.min(this.terminal.columns, box.rect.x + box.rect.width, box.clip.x + box.clip.width);\n\t\t\tscreenSelection = {\n\t\t\t\tstart: {\n\t\t\t\t\t...selection.start,\n\t\t\t\t\trow: box.rect.y + selection.start.row - selection.start.scrollView.scrollTop,\n\t\t\t\t\tcol: box.rect.x + selection.start.col,\n\t\t\t\t},\n\t\t\t\tend: {\n\t\t\t\t\t...selection.end,\n\t\t\t\t\trow: box.rect.y + selection.end.row - selection.start.scrollView.scrollTop,\n\t\t\t\t\tcol: box.rect.x + selection.end.col,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t\treturn screen.map((line, row) => {\n\t\t\tif (\n\t\t\t\trow < minRow ||\n\t\t\t\trow > maxRow ||\n\t\t\t\trow < screenSelection.start.row ||\n\t\t\t\trow > screenSelection.end.row ||\n\t\t\t\tisImageLine(line)\n\t\t\t) {\n\t\t\t\treturn line;\n\t\t\t}\n\t\t\tconst lineWidth = visibleWidth(line);\n\t\t\tconst columns = this.getSelectionColumns(line, row, screenSelection, minColumn, maxColumn);\n\t\t\tif (columns.end <= columns.start) return line;\n\t\t\tconst before = sliceByColumn(line, 0, columns.start, true);\n\t\t\tconst selected = sliceByColumn(line, columns.start, columns.end - columns.start, true);\n\t\t\tconst after = sliceByColumn(line, columns.end, Math.max(0, lineWidth - columns.end), true);\n\t\t\treturn `${before}${this.applySelectionHighlight(selected)}${after}`;\n\t\t});\n\t}\n\n\tprivate isMouseSequence(data: string): boolean {\n\t\treturn /^\\x1b\\[<\\d+;\\d+;\\d+[Mm]$/.test(data) || (data.length === 6 && data.startsWith(\"\\x1b[M\"));\n\t}\n\n\tprivate compositeScrollToEndIndicator(screen: string[], layout: LayoutFrame, width: number): string[] {\n\t\tthis.scrollToEndIndicatorRect = undefined;\n\t\tconst scrollView = layout.primaryScrollView ?? this.implicitScrollView;\n\t\tif (!this.scrollToEndIndicator || !scrollView.followEnd || scrollView.isFollowingEnd) return screen;\n\t\tconst box = getScrollViewBox(layout, scrollView);\n\t\tconst clip = box?.clip;\n\t\tif (!clip || clip.width <= 0 || clip.height <= 0) return screen;\n\t\tconst row = clip.y + clip.height - 1;\n\t\tif (row >= screen.length || isImageLine(screen[row] ?? \"\")) return screen;\n\t\tconst scrollbarColumn = box ? getScrollbarGeometry(box)?.column : undefined;\n\t\tconst availableWidth = Math.max(0, (scrollbarColumn ?? clip.x + clip.width) - clip.x);\n\t\tconst text = truncateToWidth(this.scrollToEndIndicator(), availableWidth, \"\");\n\t\tconst textWidth = visibleWidth(text);\n\t\tif (textWidth === 0) return screen;\n\t\tconst column = clip.x + Math.floor((availableWidth - textWidth) / 2);\n\t\tconst result = [...screen];\n\t\tresult[row] = compositeTuiLine(result[row] ?? \"\", text, column, textWidth, width);\n\t\tthis.scrollToEndIndicatorRect = { row, column, width: textWidth };\n\t\treturn result;\n\t}\n\n\tprivate compositeFlashes(screen: string[], width: number, height: number): string[] {\n\t\tconst flashLines = this.flashes.render(width).slice(-height);\n\t\tif (flashLines.length === 0) return screen;\n\t\tconst result = [...screen];\n\t\twhile (result.length < height) result.push(\"\");\n\t\tfor (let row = 0; row < flashLines.length; row++) {\n\t\t\tconst line = flashLines[row]!;\n\t\t\tconst flashWidth = visibleWidth(line);\n\t\t\tif (flashWidth === 0) continue;\n\t\t\tresult[row] = compositeTuiLine(result[row] ?? \"\", line, width - flashWidth, flashWidth, width);\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected override doRender(): void {\n\t\tif (this.stopped || !this.altScreenActive) return;\n\t\tconst width = Math.max(1, this.terminal.columns);\n\t\tconst height = Math.max(1, this.terminal.rows);\n\t\tconst root = this.layoutRoot ?? this.implicitScrollView;\n\t\tlet nextLayout = renderLayoutFrame(root, width, height, () => this.requestRender());\n\t\tif (this.refreshSearch(nextLayout)) {\n\t\t\tnextLayout = renderLayoutFrame(root, width, height, () => this.requestRender());\n\t\t}\n\t\tlet screen = nextLayout.lines.map((line) => line.replace(OSC133_ZONE_PREFIX, \"\"));\n\t\tscreen = this.applySearchHighlights(screen, nextLayout);\n\t\tscreen = this.compositeScrollToEndIndicator(screen, nextLayout, width);\n\t\tscreen = this.compositeOverlays(screen, width, height);\n\t\tif (screen.length > height) screen = screen.slice(screen.length - height);\n\t\tscreen = this.applySelection(screen, nextLayout);\n\t\tscreen = this.compositeFlashes(screen, width, height);\n\n\t\tconst cursorPos = this.extractCursorPosition(screen, height);\n\t\tscreen = this.applyLineResets(screen).map((line) => {\n\t\t\tif (isImageLine(line) || visibleWidth(line) <= width) return line;\n\t\t\treturn sliceByColumn(line, 0, width, true);\n\t\t});\n\n\t\tconst fullRedraw =\n\t\t\tthis.previousScreen.length === 0 || this.previousScreenWidth !== width || this.previousScreenHeight !== height;\n\t\tconst imagesNeedRedraw = screen.some(\n\t\t\t(line, row) =>\n\t\t\t\tline !== this.previousScreen[row] && (isImageLine(line) || isImageLine(this.previousScreen[row] ?? \"\")),\n\t\t);\n\t\tconst redrawImages = fullRedraw || imagesNeedRedraw;\n\t\tconst hadUploadedKittyImages = this.uploadedKittyImages.size > 0;\n\t\tconst preparedKittyScreen =\n\t\t\tredrawImages && this.imageProtocol === \"kitty\"\n\t\t\t\t? this.prepareKittyScreen(screen)\n\t\t\t\t: { lines: screen, evictedImageDeletion: \"\" };\n\n\t\tlet buffer = BEGIN_SYNCHRONIZED_OUTPUT;\n\t\tif (fullRedraw) {\n\t\t\tthis.fullRedrawCount += 1;\n\t\t\tconst clearImages =\n\t\t\t\tthis.imageProtocol === \"kitty\" && hadUploadedKittyImages\n\t\t\t\t\t? deleteAllKittyPlacements()\n\t\t\t\t\t: this.deleteKittyImages();\n\t\t\tbuffer += `${clearImages}\\x1b[2J`;\n\t\t} else if (imagesNeedRedraw) {\n\t\t\tif (this.imageProtocol === \"iterm2\") buffer += \"\\x1b[2J\";\n\t\t\telse if (this.imageProtocol === \"kitty\") buffer += deleteAllKittyPlacements();\n\t\t}\n\t\tbuffer += preparedKittyScreen.evictedImageDeletion;\n\n\t\tfor (let row = 0; row < height; row++) {\n\t\t\tif (!fullRedraw && !imagesNeedRedraw && screen[row] === this.previousScreen[row]) continue;\n\t\t\tbuffer += `\\x1b[${row + 1};1H\\x1b[2K${preparedKittyScreen.lines[row] ?? \"\"}`;\n\t\t}\n\n\t\tif (cursorPos) {\n\t\t\tbuffer += `\\x1b[${cursorPos.row + 1};${Math.min(width, cursorPos.col) + 1}H`;\n\t\t\tbuffer += this.getShowHardwareCursor() ? \"\\x1b[?25h\" : \"\\x1b[?25l\";\n\t\t} else {\n\t\t\tbuffer += \"\\x1b[?25l\";\n\t\t}\n\t\tbuffer += END_SYNCHRONIZED_OUTPUT;\n\t\tthis.terminal.write(buffer);\n\n\t\tthis.previousScreen = screen;\n\t\tthis.previousScreenWidth = width;\n\t\tthis.previousScreenHeight = height;\n\t\tthis.currentLayout = nextLayout;\n\t}\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tui-alt-screen.js","sourceRoot":"","sources":["../src/tui-alt-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,wBAAwB,EACxB,oBAAoB,EAEpB,0BAA0B,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAEhB,iBAAiB,GAEjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,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CAAC;QAC/E,CAAC;QACD,MAAM,IAAI,mBAAmB,CAAC,oBAAoB,CAAC;QAEnD,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC;YACvC,IAAI,CAAC,UAAU,IAAI,CAAC,gBAAgB,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC;gBAAE,SAAS;YAC3F,MAAM,IAAI,QAAQ,GAAG,GAAG,CAAC,aAAa,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;QAC9E,CAAC;QAED,IAAI,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,QAAQ,SAAS,CAAC,GAAG,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;YAC7E,MAAM,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;QACpE,CAAC;aAAM,CAAC;YACP,MAAM,IAAI,WAAW,CAAC;QACvB,CAAC;QACD,MAAM,IAAI,uBAAuB,CAAC;QAClC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAE5B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC;QAC7B,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;QACjC,IAAI,CAAC,oBAAoB,GAAG,MAAM,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC;IAAA,CAChC;CACD","sourcesContent":["import {\n\tAltScreenSearchComponent,\n\tAltScreenSearchIndex,\n\ttype AltScreenSearchMatch,\n\tgetAltScreenSearchMatchKey,\n} from \"./alt-screen-search.ts\";\nimport { AltScreenFlashContainer } from \"./components/alt-screen-flash.ts\";\nimport { ScrollView } from \"./components/scroll-view.ts\";\nimport { getKeybindings } from \"./keybindings.ts\";\nimport { isKeyRelease } from \"./keys.ts\";\nimport {\n\tgetLayoutBoxesAt,\n\tgetScrollbarGeometry,\n\tgetScrollViewBox,\n\tgetScrollViewsAt,\n\ttype LayoutFrame,\n\trenderLayoutFrame,\n\ttype ScrollbarGeometry,\n} from \"./layout.ts\";\nimport { getLayoutNode } from \"./layout-node.ts\";\nimport type { Terminal } from \"./terminal.ts\";\nimport {\n\tdeleteAllKittyImages,\n\tdeleteAllKittyPlacements,\n\tdeleteKittyImage,\n\tgetCapabilities,\n\tgetKittyImagePlacement,\n\ttype ImageProtocol,\n\tisImageLine,\n\tsetCapabilities,\n\ttype TerminalCapabilities,\n} from \"./terminal-image.ts\";\nimport {\n\ttype Component,\n\tContainer,\n\tCURSOR_MARKER,\n\tcompositeTuiLine,\n\tdispatchMouseEvent,\n\ttype OverlayHandle,\n\tretargetMouseEvent,\n\tTuiBase,\n\ttype TuiMouseButton,\n\ttype TuiMouseDispatchResult,\n\ttype TuiMouseDispatchTarget,\n\ttype TuiMouseEvent,\n\ttype TuiStopOptions,\n\tVIEWPORT_TUI,\n\ttype ViewportTUI,\n} from \"./tui.ts\";\nimport {\n\textractAnsiCode,\n\tgetGraphemeCellRange,\n\tgetOsc8LinkAtColumn,\n\tgetWordSegmenter,\n\tsliceByColumn,\n\tstripTerminalSequences,\n\ttruncateToWidth,\n\tvisibleWidth,\n} from \"./utils.ts\";\n\nconst ENTER_ALT_SCREEN = \"\\x1b[?1049h\";\nconst EXIT_ALT_SCREEN = \"\\x1b[?1049l\";\nconst DISABLE_AUTOWRAP = \"\\x1b[?7l\";\nconst ENABLE_AUTOWRAP = \"\\x1b[?7h\";\nconst ENABLE_BUTTON_MOTION_MOUSE = \"\\x1b[?1000h\\x1b[?1002h\\x1b[?1004h\\x1b[?1006h\";\nconst ENABLE_ALL_MOTION_MOUSE = \"\\x1b[?1000h\\x1b[?1002h\\x1b[?1003h\\x1b[?1004h\\x1b[?1006h\";\nconst DISABLE_MOUSE = \"\\x1b[?1006l\\x1b[?1004l\\x1b[?1003l\\x1b[?1002l\\x1b[?1000l\";\nconst FOCUS_IN = \"\\x1b[I\";\nconst FOCUS_OUT = \"\\x1b[O\";\nconst BEGIN_SYNCHRONIZED_OUTPUT = \"\\x1b[?2026h\";\nconst END_SYNCHRONIZED_OUTPUT = \"\\x1b[?2026l\";\nconst OSC133_ZONE_PREFIX = /^(?:\\x1b\\]133;[ABC](?:\\x07|\\x1b\\\\))+/;\nconst OSC133_PROMPT_START = /^\\x1b\\]133;A(?:\\x07|\\x1b\\\\)/;\nconst PAGE_SCROLL_OVERLAP = 4;\nconst ALT_WHEEL_SCROLL_MULTIPLIER = 5;\nconst MAX_CACHED_OFFSCREEN_KITTY_IMAGES = 16;\nconst MAX_CACHED_OFFSCREEN_KITTY_TRANSMISSION_BYTES = 32 * 1024 * 1024;\nconst MAX_CACHED_OFFSCREEN_KITTY_DECODED_BYTES = 64 * 1024 * 1024;\nconst DOUBLE_CLICK_INTERVAL_MS = 500;\nconst COPY_ERROR_FLASH_DURATION_MS = 5000;\n// Regular mode delegates double-click selection to the terminal emulator. Fullscreen owns mouse selection,\n// so mirror common terminal word-selection behavior by keeping paths and kebab-case tokens whole.\nconst TERMINAL_WORD_SELECTION_JOINERS = new Set([\"/\", \"-\"]);\nconst wordSegmenter = getWordSegmenter();\n\ninterface CachedKittyImage {\n\ttransmissionGeneration: number;\n\ttransmissionBytes: number;\n\testimatedDecodedBytes: number;\n}\n\ninterface SelectionPoint {\n\trow: number;\n\tcol: number;\n\tscrollView?: ScrollView;\n\t/** Whether this point lies between terminal cells rather than on a cell. */\n\tboundary?: boolean;\n}\n\ninterface SelectionRange {\n\tstart: SelectionPoint;\n\tend: SelectionPoint;\n}\n\ntype SelectionGranularity = \"character\" | \"word\" | \"line\";\n\ninterface ClickTarget {\n\ttimestamp: number;\n\tcount: number;\n\trow: number;\n\tscrollView?: ScrollView;\n\twordStart: number;\n\twordEnd: number;\n}\n\ninterface SgrMouseEvent {\n\tbutton: number;\n\tx: number;\n\ty: number;\n\trelease: boolean;\n}\n\ninterface WheelEvent {\n\tdirection: -1 | 1;\n\tx: number;\n\ty: number;\n\tbutton: number;\n}\n\ninterface ScrollbarDrag {\n\tscrollView: ScrollView;\n\tgrabOffset: number;\n}\n\ninterface ScrollbarTarget {\n\tscrollView: ScrollView;\n\tgeometry: ScrollbarGeometry;\n}\n\ninterface ScrollToEndIndicatorRect {\n\trow: number;\n\tcolumn: number;\n\twidth: number;\n}\n\ntype SearchSelectionMode = \"query\" | \"retain\" | \"next\" | \"previous\";\n\ninterface ActiveSearch {\n\tcomponent: AltScreenSearchComponent;\n\tindex: AltScreenSearchIndex;\n\toverlay?: OverlayHandle;\n\tquery: string;\n\tmatches: AltScreenSearchMatch[];\n\tselectedIndex: number;\n\tselectedKey?: string;\n\tanchorRow: number;\n\tselectionMode: SearchSelectionMode;\n}\n\ninterface SearchHighlightRange {\n\tstartCol: number;\n\tendCol: number;\n\tcurrent: boolean;\n}\n\nexport interface TuiAltScreenOptions {\n\t/** Number of logical lines moved for each mouse-wheel event. */\n\twheelScrollLines?: number;\n\t/** Capture mouse events for viewport scrolling and application-owned text selection. */\n\tmouse?: boolean;\n\t/** Style a non-current transcript search match. */\n\tsearchMatchStyle?: (text: string) => string;\n\t/** Style the current transcript search match. */\n\tsearchCurrentMatchStyle?: (text: string) => string;\n\t/** Style a transcript search navigation button. */\n\tsearchNavigationButtonStyle?: (text: string, hovered: boolean) => string;\n\t/**\n\t * Render a clickable jump-to-end label. It is centered on the last row of a follow-end\n\t * primary scroll view while that view is scrolled away from its end.\n\t */\n\tscrollToEndIndicator?: () => string;\n\t/** Open an OSC 8 hyperlink activated with a primary-button click. */\n\topenUrl?: (url: string) => void;\n\t/** Handle an unmodified secondary-button press for clipboard paste. Currently enabled on Windows only. */\n\tonRightClickPaste?: () => void;\n\t/** Automatically copy selected text to the clipboard on mouse release (default: true). */\n\tcopyOnSelect?: boolean;\n\t/**\n\t * Copy selected text to the system clipboard. Return `true` on success, an error message to\n\t * display on failure, or `false` for a generic error. When omitted, the selection is copied\n\t * via an OSC 52 write.\n\t */\n\tcopySelection?: (text: string) => Promise<boolean | string>;\n}\n\n/** Alternate-screen TUI with a scrollable, application-owned viewport. */\nexport class TuiAltScreen extends TuiBase implements ViewportTUI {\n\treadonly mode = \"fullscreen\" as const;\n\treadonly [VIEWPORT_TUI] = true as const;\n\tprivate previousScreen: string[] = [];\n\tprivate lastDocument: string[] = [];\n\tprivate previousScreenWidth = 0;\n\tprivate previousScreenHeight = 0;\n\tprivate layoutRoot: Component | undefined;\n\tprivate currentLayout: LayoutFrame | undefined;\n\tprivate readonly implicitDocument: Component;\n\tprivate readonly implicitScrollView: ScrollView;\n\tprivate readonly flashes: AltScreenFlashContainer;\n\tprivate altScreenActive = false;\n\tprivate imageProtocol: ImageProtocol = null;\n\tprivate savedCapabilities?: TerminalCapabilities;\n\tprivate readonly uploadedKittyImages = new Map<number, CachedKittyImage>();\n\tprivate selectionAnchor?: SelectionPoint;\n\tprivate selectionFocus?: SelectionPoint;\n\tprivate selectionGranularity: SelectionGranularity = \"character\";\n\tprivate selectionInitialRange?: SelectionRange;\n\tprivate lastClick?: ClickTarget;\n\tprivate selectionDragPointer?: { x: number; y: number };\n\tprivate selectionAutoScrollDirection: -1 | 0 | 1 = 0;\n\tprivate selectionAutoScrollTimer?: NodeJS.Timeout;\n\tprivate selectionPressActive = false;\n\tprivate scrollbarDrag?: ScrollbarDrag;\n\tprivate scrollbarHover?: ScrollView;\n\tprivate scrollToEndIndicatorRect?: ScrollToEndIndicatorRect;\n\tprivate activeSearch?: ActiveSearch;\n\tprivate pressedUrl?: string;\n\tprivate selectionDragged = false;\n\tprivate mouseCapture?: TuiMouseDispatchTarget;\n\tprivate mousePressTarget?: TuiMouseDispatchTarget;\n\tprivate mousePressPoint?: { x: number; y: number };\n\tprivate mousePressMoved = false;\n\tprivate lastComponentClick?: {\n\t\ttimestamp: number;\n\t\tcount: number;\n\t\tcomponent: Component;\n\t\tx: number;\n\t\ty: number;\n\t};\n\tprivate readonly wheelScrollLines: number;\n\tprivate readonly mouseEnabled: boolean;\n\tprivate readonly searchMatchStyle: (text: string) => string;\n\tprivate readonly searchCurrentMatchStyle: (text: string) => string;\n\tprivate readonly searchNavigationButtonStyle: (text: string, hovered: boolean) => string;\n\tprivate readonly scrollToEndIndicator?: () => string;\n\tprivate readonly openUrl?: (url: string) => void;\n\tprivate readonly onRightClickPaste?: () => void;\n\tprivate copyOnSelect: boolean;\n\tprivate readonly copySelection?: (text: string) => Promise<boolean | string>;\n\n\tconstructor(\n\t\tterminal: Terminal,\n\t\tshowHardwareCursor?: boolean,\n\t\tlogDirectory?: string,\n\t\toptions: TuiAltScreenOptions = {},\n\t) {\n\t\tsuper(terminal, showHardwareCursor, logDirectory);\n\t\tthis.implicitDocument = {\n\t\t\trender: (width) => super.render(width),\n\t\t\thandleMouse: (event) => super.handleMouse(event),\n\t\t\tinvalidate: () => {\n\t\t\t\tfor (const child of this.children) child.invalidate();\n\t\t\t},\n\t\t};\n\t\tthis.implicitScrollView = new ScrollView(this.implicitDocument, { follow: \"end\", primary: true });\n\t\tthis.flashes = new AltScreenFlashContainer(() => this.requestRender());\n\t\tthis.wheelScrollLines = Math.max(1, Math.floor(options.wheelScrollLines ?? 1));\n\t\tthis.mouseEnabled = options.mouse ?? true;\n\t\tthis.searchMatchStyle = options.searchMatchStyle ?? ((text) => `\\x1b[4m${text}\\x1b[24m`);\n\t\tthis.searchCurrentMatchStyle = options.searchCurrentMatchStyle ?? ((text) => `\\x1b[1;7m${text}\\x1b[22;27m`);\n\t\tthis.searchNavigationButtonStyle = options.searchNavigationButtonStyle ?? ((text) => text);\n\t\tthis.scrollToEndIndicator = options.scrollToEndIndicator;\n\t\tthis.openUrl = options.openUrl;\n\t\tthis.onRightClickPaste = options.onRightClickPaste;\n\t\tthis.copyOnSelect = options.copyOnSelect ?? true;\n\t\tthis.copySelection = options.copySelection;\n\t\tthis.addInputListener((data) => this.handleViewportInput(data));\n\t}\n\n\tget viewportTop(): number {\n\t\treturn this.getPrimaryScrollView().scrollTop;\n\t}\n\n\tget isFollowingOutput(): boolean {\n\t\treturn this.getPrimaryScrollView().isFollowingEnd;\n\t}\n\n\tgetCopyOnSelect(): boolean {\n\t\treturn this.copyOnSelect;\n\t}\n\n\tsetCopyOnSelect(enabled: boolean): void {\n\t\tthis.copyOnSelect = enabled;\n\t}\n\n\t/** Whether the fullscreen viewport has a non-empty active text selection. */\n\thasActiveSelection(): boolean {\n\t\treturn this.getActiveSelectionText() !== undefined;\n\t}\n\n\t/** Copy the active fullscreen text selection, if any, using the configured selection clipboard path. */\n\tasync copyActiveSelectionToClipboard(): Promise<boolean> {\n\t\tconst text = this.getActiveSelectionText();\n\t\tif (!text) return false;\n\t\treturn this.copyTextToClipboard(text);\n\t}\n\n\tsetLayoutRoot(component: Component | undefined): void {\n\t\tif (this.layoutRoot === component) return;\n\t\tthis.layoutRoot = component;\n\t\tthis.currentLayout = undefined;\n\t\tthis.requestRender();\n\t}\n\n\toverride render(width: number): string[] {\n\t\treturn this.layoutRoot?.render(width) ?? super.render(width);\n\t}\n\n\tprotected override getMountedRoots(): readonly Component[] {\n\t\treturn this.layoutRoot ? [this.layoutRoot] : this.children;\n\t}\n\n\tprivate getPrimaryScrollView(): ScrollView {\n\t\treturn this.currentLayout?.primaryScrollView ?? this.implicitScrollView;\n\t}\n\n\tprotected override beforeTerminalStart(): void {\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = false;\n\t\tthis.stopScrollbarHover();\n\t\tthis.stopScrollbarDrag();\n\t\tthis.flashes.dispose();\n\t\tthis.altScreenActive = true;\n\t\tconst capabilities = getCapabilities();\n\t\tthis.imageProtocol = capabilities.images;\n\t\tthis.uploadedKittyImages.clear();\n\t\tif (capabilities.images === \"iterm2\") {\n\t\t\tthis.savedCapabilities = capabilities;\n\t\t\tsetCapabilities({ ...capabilities, images: null });\n\t\t\tthis.invalidate();\n\t\t}\n\t\tthis.lastDocument = [];\n\t\tthis.selectionAnchor = undefined;\n\t\tthis.selectionFocus = undefined;\n\t\tthis.selectionGranularity = \"character\";\n\t\tthis.selectionInitialRange = undefined;\n\t\tthis.lastClick = undefined;\n\t\tthis.pressedUrl = undefined;\n\t\tthis.selectionDragged = false;\n\t\tthis.clearComponentMouseGesture();\n\t\tthis.lastComponentClick = undefined;\n\t\tthis.resetRenderState();\n\t\tconst term = process.env.TERM?.toLowerCase() ?? \"\";\n\t\t// Multiplexers can lag when every pointer movement is forwarded. Button-motion\n\t\t// tracking preserves clicks, wheel events, selections, and scrollbar dragging.\n\t\tconst mouseSequence =\n\t\t\tprocess.env.TMUX !== undefined ||\n\t\t\tprocess.env.ZELLIJ !== undefined ||\n\t\t\tprocess.env.STY !== undefined ||\n\t\t\tterm.startsWith(\"tmux\") ||\n\t\t\tterm.startsWith(\"screen\")\n\t\t\t\t? ENABLE_BUTTON_MOTION_MOUSE\n\t\t\t\t: ENABLE_ALL_MOTION_MOUSE;\n\t\t// Tell the terminal layer we own mouse events, so it stops dropping them as\n\t\t// stray reports from a child process (see terminal.ts).\n\t\tthis.terminal.setMouseHandlerActive?.(this.mouseEnabled);\n\t\tthis.terminal.write(\n\t\t\t`${ENTER_ALT_SCREEN}${DISABLE_AUTOWRAP}${this.mouseEnabled ? mouseSequence : \"\"}\\x1b[2J\\x1b[H\\x1b[?25l`,\n\t\t);\n\t}\n\n\tprotected override beforeTerminalStop(_options: TuiStopOptions): void {\n\t\tthis.closeSearch();\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = false;\n\t\tthis.stopScrollbarHover();\n\t\tthis.stopScrollbarDrag();\n\t\tthis.clearComponentMouseGesture();\n\t\tthis.flashes.dispose();\n\t\tif (!this.altScreenActive) return;\n\t\tthis.terminal.setMouseHandlerActive?.(false);\n\t\t// DISABLE_MOUSE unconditionally, not only when we enabled it: a child\n\t\t// process can leave tracking on, and the symptom of not clearing it is\n\t\t// mouse codes typed into whatever prompt comes next.\n\t\tthis.terminal.write(\n\t\t\t`${BEGIN_SYNCHRONIZED_OUTPUT}${this.deleteKittyImages()}${DISABLE_MOUSE}${ENABLE_AUTOWRAP}${END_SYNCHRONIZED_OUTPUT}`,\n\t\t);\n\t\tthis.uploadedKittyImages.clear();\n\t}\n\n\tprotected override afterTerminalStop(options: TuiStopOptions): void {\n\t\tif (!this.altScreenActive) return;\n\t\tthis.altScreenActive = false;\n\t\tif (options.preserveScreen) {\n\t\t\tthis.terminal.write(`${BEGIN_SYNCHRONIZED_OUTPUT}${EXIT_ALT_SCREEN}\\x1b[?25h${END_SYNCHRONIZED_OUTPUT}`);\n\t\t} else {\n\t\t\tconst width = Math.max(1, this.terminal.columns);\n\t\t\tconst documentLines = this.render(width).map((line) => line.replace(OSC133_ZONE_PREFIX, \"\"));\n\t\t\tthis.lastDocument = this.applyLineResets(documentLines.map((line) => line.replaceAll(CURSOR_MARKER, \"\"))).map(\n\t\t\t\t(line) => (isImageLine(line) || visibleWidth(line) <= width ? line : sliceByColumn(line, 0, width, true)),\n\t\t\t);\n\t\t\tlet buffer = `${BEGIN_SYNCHRONIZED_OUTPUT}${EXIT_ALT_SCREEN}${DISABLE_AUTOWRAP}`;\n\t\t\tfor (let row = 0; row < this.lastDocument.length; row++) {\n\t\t\t\tif (row > 0) buffer += \"\\r\\n\";\n\t\t\t\tbuffer += `\\r\\x1b[2K${this.lastDocument[row] ?? \"\"}`;\n\t\t\t}\n\t\t\tbuffer += `\\x1b[0m${ENABLE_AUTOWRAP}\\r\\n\\x1b[?25h${END_SYNCHRONIZED_OUTPUT}`;\n\t\t\tthis.terminal.write(buffer);\n\t\t}\n\t\tif (this.savedCapabilities) {\n\t\t\tsetCapabilities(this.savedCapabilities);\n\t\t\tthis.savedCapabilities = undefined;\n\t\t}\n\t}\n\n\tprivate deleteKittyImages(): string {\n\t\treturn this.imageProtocol === \"kitty\" ? deleteAllKittyImages() : \"\";\n\t}\n\n\tprivate prepareKittyScreen(screen: string[]): { lines: string[]; evictedImageDeletion: string } {\n\t\tconst visibleImageIds = new Set<number>();\n\t\tconst lines = screen.map((line) => {\n\t\t\tconst placement = getKittyImagePlacement(line);\n\t\t\tif (!placement) return line;\n\t\t\tvisibleImageIds.add(placement.imageId);\n\n\t\t\tconst cachedImage = this.uploadedKittyImages.get(placement.imageId);\n\t\t\tconst nextCachedImage = {\n\t\t\t\ttransmissionGeneration: placement.transmissionGeneration,\n\t\t\t\ttransmissionBytes: placement.transmissionBytes,\n\t\t\t\testimatedDecodedBytes: placement.estimatedDecodedBytes,\n\t\t\t};\n\t\t\tif (cachedImage) this.uploadedKittyImages.delete(placement.imageId);\n\t\t\tthis.uploadedKittyImages.set(placement.imageId, nextCachedImage);\n\n\t\t\treturn cachedImage?.transmissionGeneration === placement.transmissionGeneration\n\t\t\t\t? placement.replacementLine\n\t\t\t\t: line;\n\t\t});\n\n\t\tlet cachedOffscreenImageCount = 0;\n\t\tlet cachedOffscreenTransmissionBytes = 0;\n\t\tlet cachedOffscreenDecodedBytes = 0;\n\t\tfor (const [imageId, cachedImage] of this.uploadedKittyImages) {\n\t\t\tif (visibleImageIds.has(imageId)) continue;\n\t\t\tcachedOffscreenImageCount += 1;\n\t\t\tcachedOffscreenTransmissionBytes += cachedImage.transmissionBytes;\n\t\t\tcachedOffscreenDecodedBytes += cachedImage.estimatedDecodedBytes;\n\t\t}\n\n\t\tlet evictedImageDeletion = \"\";\n\t\tfor (const [imageId, cachedImage] of this.uploadedKittyImages) {\n\t\t\tif (\n\t\t\t\tcachedOffscreenImageCount <= MAX_CACHED_OFFSCREEN_KITTY_IMAGES &&\n\t\t\t\tcachedOffscreenTransmissionBytes <= MAX_CACHED_OFFSCREEN_KITTY_TRANSMISSION_BYTES &&\n\t\t\t\tcachedOffscreenDecodedBytes <= MAX_CACHED_OFFSCREEN_KITTY_DECODED_BYTES\n\t\t\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (visibleImageIds.has(imageId)) continue;\n\t\t\tevictedImageDeletion += deleteKittyImage(imageId);\n\t\t\tthis.uploadedKittyImages.delete(imageId);\n\t\t\tcachedOffscreenImageCount -= 1;\n\t\t\tcachedOffscreenTransmissionBytes -= cachedImage.transmissionBytes;\n\t\t\tcachedOffscreenDecodedBytes -= cachedImage.estimatedDecodedBytes;\n\t\t}\n\t\treturn { lines, evictedImageDeletion };\n\t}\n\n\tprotected override resetRenderState(): void {\n\t\tthis.previousScreen = [];\n\t\tthis.previousScreenWidth = 0;\n\t\tthis.previousScreenHeight = 0;\n\t\tthis.currentLayout = undefined;\n\t}\n\n\tscrollBy(lines: number): void {\n\t\tthis.getPrimaryScrollView().scrollBy(lines);\n\t\tthis.requestRender();\n\t}\n\n\tscrollToTop(): void {\n\t\tthis.getPrimaryScrollView().scrollToStart();\n\t\tthis.requestRender();\n\t}\n\n\tscrollToBottom(): void {\n\t\tthis.getPrimaryScrollView().scrollToEnd();\n\t\tthis.requestRender();\n\t}\n\n\tprivate scrollToPrompt(direction: -1 | 1): void {\n\t\tif (!this.currentLayout) return;\n\t\tconst scrollView = this.getPrimaryScrollView();\n\t\tconst lines = getScrollViewBox(this.currentLayout, scrollView)?.scrollContentLines;\n\t\tif (!lines) return;\n\n\t\tfor (let row = scrollView.scrollTop + direction; row >= 0 && row < lines.length; row += direction) {\n\t\t\tif (!OSC133_PROMPT_START.test(lines[row] ?? \"\")) continue;\n\t\t\tscrollView.scrollTo(row);\n\t\t\tthis.requestRender();\n\t\t\treturn;\n\t\t}\n\t}\n\n\tprivate toggleSearch(): void {\n\t\tif (this.activeSearch) {\n\t\t\tthis.closeSearch();\n\t\t\treturn;\n\t\t}\n\t\tconst component = new AltScreenSearchComponent(\n\t\t\t(query) => this.updateSearchQuery(query),\n\t\t\tthis.searchNavigationButtonStyle,\n\t\t);\n\t\tconst search: ActiveSearch = {\n\t\t\tcomponent,\n\t\t\tindex: new AltScreenSearchIndex(),\n\t\t\tquery: \"\",\n\t\t\tmatches: [],\n\t\t\tselectedIndex: -1,\n\t\t\tanchorRow: this.getPrimaryScrollView().scrollTop,\n\t\t\tselectionMode: \"query\",\n\t\t};\n\t\tthis.activeSearch = search;\n\t\tsearch.overlay = this.showOverlay(component, {\n\t\t\tanchor: \"top-right\",\n\t\t\twidth: \"40%\",\n\t\t\tminWidth: 32,\n\t\t\tmargin: 1,\n\t\t});\n\t}\n\n\tprivate closeSearch(): void {\n\t\tconst search = this.activeSearch;\n\t\tif (!search) return;\n\t\tthis.activeSearch = undefined;\n\t\tsearch.overlay?.hide();\n\t\tthis.requestRender();\n\t}\n\n\tprivate updateSearchQuery(query: string): void {\n\t\tconst search = this.activeSearch;\n\t\tif (!search || query === search.query) return;\n\t\tconst selected = search.matches[search.selectedIndex];\n\t\tsearch.anchorRow = selected?.segments[0]?.row ?? this.getPrimaryScrollView().scrollTop;\n\t\tsearch.query = query;\n\t\tsearch.selectionMode = \"query\";\n\t\tsearch.component.setResult(-1, 0);\n\t\tthis.requestRender();\n\t}\n\n\tprivate navigateSearch(direction: -1 | 1): void {\n\t\tconst search = this.activeSearch;\n\t\tif (!search?.query) return;\n\t\tsearch.selectionMode = direction < 0 ? \"previous\" : \"next\";\n\t\tthis.requestRender();\n\t}\n\n\tprivate getSearchNavigationDirectionAt(x: number, y: number): -1 | 1 | undefined {\n\t\tconst search = this.activeSearch;\n\t\tconst bounds = search?.overlay?.getBounds();\n\t\tif (!search || !bounds) return undefined;\n\t\tif (x < bounds.col || x >= bounds.col + bounds.width || y < bounds.row || y >= bounds.row + bounds.height) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn search.component.getNavigationDirectionAt(y - bounds.row, x - bounds.col);\n\t}\n\n\tprivate handleSearchMouseEvent(event: SgrMouseEvent): boolean {\n\t\tconst search = this.activeSearch;\n\t\tif (!search) return false;\n\t\tconst direction = this.getSearchNavigationDirectionAt(event.x, event.y);\n\t\tif (search.component.setHoveredNavigationDirection(direction)) this.requestRender();\n\t\tif (direction === undefined || event.release || (event.button & 32) !== 0 || (event.button & 3) !== 0) {\n\t\t\treturn false;\n\t\t}\n\t\tthis.navigateSearch(direction);\n\t\treturn true;\n\t}\n\n\tprivate refreshSearch(layout: LayoutFrame): boolean {\n\t\tconst search = this.activeSearch;\n\t\tif (!search) return false;\n\t\tconst scrollView = layout.primaryScrollView ?? this.implicitScrollView;\n\t\tconst box = getScrollViewBox(layout, scrollView);\n\t\tconst lines = box?.scrollContentLines;\n\t\tif (!lines || !search.query.trim()) {\n\t\t\tsearch.matches = [];\n\t\t\tsearch.selectedIndex = -1;\n\t\t\tsearch.selectedKey = undefined;\n\t\t\tsearch.selectionMode = \"retain\";\n\t\t\tsearch.component.setResult(-1, 0);\n\t\t\treturn false;\n\t\t}\n\n\t\tconst shouldRevealSelection = search.selectionMode !== \"retain\";\n\t\tconst result = search.index.search(lines, search.query);\n\t\tconst matches = result.matches;\n\t\tsearch.matches = matches;\n\t\tif (!result.changed && search.selectionMode === \"retain\") return false;\n\n\t\tconst exactIndex = result.changed\n\t\t\t? search.selectedKey\n\t\t\t\t? matches.findIndex((match) => getAltScreenSearchMatchKey(match) === search.selectedKey)\n\t\t\t\t: -1\n\t\t\t: search.selectedIndex;\n\t\tlet selectedIndex = -1;\n\t\tif (matches.length > 0) {\n\t\t\tif (search.selectionMode === \"query\") {\n\t\t\t\tlet low = 0;\n\t\t\t\tlet high = matches.length;\n\t\t\t\twhile (low < high) {\n\t\t\t\t\tconst middle = low + Math.floor((high - low) / 2);\n\t\t\t\t\tif ((matches[middle]!.segments[0]?.row ?? 0) < search.anchorRow) low = middle + 1;\n\t\t\t\t\telse high = middle;\n\t\t\t\t}\n\t\t\t\tselectedIndex = low < matches.length ? low : 0;\n\t\t\t} else if (search.selectionMode === \"next\") {\n\t\t\t\tconst baseIndex = exactIndex >= 0 ? exactIndex : Math.min(search.selectedIndex, matches.length - 1);\n\t\t\t\tselectedIndex = baseIndex < 0 ? 0 : (baseIndex + 1) % matches.length;\n\t\t\t} else if (search.selectionMode === \"previous\") {\n\t\t\t\tconst baseIndex = exactIndex >= 0 ? exactIndex : Math.min(search.selectedIndex, matches.length - 1);\n\t\t\t\tselectedIndex = baseIndex < 0 ? matches.length - 1 : (baseIndex - 1 + matches.length) % matches.length;\n\t\t\t} else {\n\t\t\t\tselectedIndex =\n\t\t\t\t\texactIndex >= 0 ? exactIndex : Math.min(Math.max(0, search.selectedIndex), matches.length - 1);\n\t\t\t}\n\t\t}\n\n\t\tsearch.selectedIndex = selectedIndex;\n\t\tsearch.selectedKey = selectedIndex >= 0 ? getAltScreenSearchMatchKey(matches[selectedIndex]!) : undefined;\n\t\tsearch.selectionMode = \"retain\";\n\t\tsearch.component.setResult(selectedIndex, matches.length);\n\t\tif (!shouldRevealSelection) return false;\n\n\t\tconst selected = matches[selectedIndex];\n\t\tconst firstSegment = selected?.segments[0];\n\t\tconst lastSegment = selected?.segments[selected.segments.length - 1];\n\t\tif (!box || !firstSegment || !lastSegment || scrollView.viewportHeight <= 0) return false;\n\t\tconst before = scrollView.scrollTop;\n\t\tconst visibleBottom = before + scrollView.viewportHeight - 1;\n\t\tlet target = before;\n\t\tif (firstSegment.row < before || lastSegment.row > visibleBottom) {\n\t\t\ttarget = firstSegment.row - Math.floor(scrollView.viewportHeight / 3);\n\t\t}\n\t\tscrollView.scrollTo(target, { disableFollow: true });\n\t\treturn scrollView.scrollTop !== before;\n\t}\n\n\t/** Show a transient message in the alternate-screen flash stack. */\n\tflash(message: string, durationMs?: number): void {\n\t\tthis.flashes.flash(message, durationMs);\n\t}\n\n\tprivate shouldDeferViewportInputToOverlay(): boolean {\n\t\treturn this.isOverlayFocused() && this.activeSearch?.overlay?.isFocused() !== true;\n\t}\n\n\tprivate clearComponentMouseGesture(): void {\n\t\tthis.mouseCapture = undefined;\n\t\tthis.mousePressTarget = undefined;\n\t\tthis.mousePressPoint = undefined;\n\t\tthis.mousePressMoved = false;\n\t}\n\n\tprivate handleViewportInput(data: string): { consume?: boolean } | undefined {\n\t\tif (data === FOCUS_OUT) {\n\t\t\tconst hadActiveSelection = this.selectionPressActive;\n\t\t\tconst hadNonEmptyActiveSelection = hadActiveSelection && this.getSelectionBounds() !== undefined;\n\t\t\tthis.selectionPressActive = false;\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\tthis.stopScrollbarHover();\n\t\t\tif (this.activeSearch?.component.setHoveredNavigationDirection(undefined)) this.requestRender();\n\t\t\tthis.stopScrollbarDrag();\n\t\t\tthis.pressedUrl = undefined;\n\t\t\tthis.selectionDragged = false;\n\t\t\tthis.clearComponentMouseGesture();\n\t\t\tthis.lastComponentClick = undefined;\n\t\t\tif (hadActiveSelection) {\n\t\t\t\tthis.selectionAnchor = undefined;\n\t\t\t\tthis.selectionFocus = undefined;\n\t\t\t\tthis.selectionGranularity = \"character\";\n\t\t\t\tthis.selectionInitialRange = undefined;\n\t\t\t\tif (hadNonEmptyActiveSelection) this.requestRender();\n\t\t\t}\n\t\t\tthis.lastClick = undefined;\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (data === FOCUS_IN) return { consume: true };\n\n\t\tconst wheelEvent = this.parseWheelEvent(data);\n\t\tif (wheelEvent) {\n\t\t\tconst event = this.createMouseEvent(\"wheel\", wheelEvent.button, wheelEvent.x, wheelEvent.y, {\n\t\t\t\twheelDelta: wheelEvent.direction * this.getWheelScrollLines(wheelEvent.button),\n\t\t\t});\n\t\t\tconst overlay = this.dispatchMouseToOverlay(event);\n\t\t\tconst result = overlay.result ?? (overlay.hit ? undefined : this.dispatchMouseToLayout(event));\n\t\t\tif (result) {\n\t\t\t\tif (this.applyMouseDispatchResult(event, result)) this.requestRender();\n\t\t\t\treturn { consume: true };\n\t\t\t}\n\t\t\tif (this.shouldDeferViewportInputToOverlay()) return undefined;\n\t\t\tthis.routeWheel(wheelEvent);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tconst mouseEvent = this.parseSgrMouseEvent(data);\n\t\tif (mouseEvent) {\n\t\t\tthis.handleMouseEvent(mouseEvent);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (this.isMouseSequence(data)) return { consume: true };\n\n\t\tconst keybindings = getKeybindings();\n\t\tconst isRelease = isKeyRelease(data);\n\t\tif (keybindings.matches(data, \"tui.altScreen.search\")) {\n\t\t\tif (!isRelease) this.toggleSearch();\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (this.activeSearch?.overlay?.isFocused()) {\n\t\t\tif (keybindings.matches(data, \"tui.altScreen.searchNext\")) {\n\t\t\t\tif (!isRelease) this.navigateSearch(1);\n\t\t\t\treturn { consume: true };\n\t\t\t}\n\t\t\tif (keybindings.matches(data, \"tui.altScreen.searchPrevious\")) {\n\t\t\t\tif (!isRelease) this.navigateSearch(-1);\n\t\t\t\treturn { consume: true };\n\t\t\t}\n\t\t\tif (keybindings.matches(data, \"tui.altScreen.searchClose\")) {\n\t\t\t\tif (!isRelease) this.closeSearch();\n\t\t\t\treturn { consume: true };\n\t\t\t}\n\t\t}\n\t\tif (this.shouldDeferViewportInputToOverlay()) return undefined;\n\t\tif (keybindings.matches(data, \"tui.altScreen.pageUp\")) {\n\t\t\tif (!isRelease) {\n\t\t\t\tthis.scrollBy(-Math.max(1, this.getPrimaryScrollView().viewportHeight - PAGE_SCROLL_OVERLAP));\n\t\t\t}\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.pageDown\")) {\n\t\t\tif (!isRelease) {\n\t\t\t\tthis.scrollBy(Math.max(1, this.getPrimaryScrollView().viewportHeight - PAGE_SCROLL_OVERLAP));\n\t\t\t}\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.halfPageUp\")) {\n\t\t\tif (!isRelease) this.scrollBy(-Math.max(1, Math.floor(this.getPrimaryScrollView().viewportHeight / 2)));\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.halfPageDown\")) {\n\t\t\tif (!isRelease) this.scrollBy(Math.max(1, Math.floor(this.getPrimaryScrollView().viewportHeight / 2)));\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.lineUp\")) {\n\t\t\tif (!isRelease) this.scrollBy(-1);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.lineDown\")) {\n\t\t\tif (!isRelease) this.scrollBy(1);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.previousPrompt\")) {\n\t\t\tif (!isRelease) this.scrollToPrompt(-1);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.nextPrompt\")) {\n\t\t\tif (!isRelease) this.scrollToPrompt(1);\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.top\")) {\n\t\t\tif (!isRelease) this.scrollToTop();\n\t\t\treturn { consume: true };\n\t\t}\n\t\tif (keybindings.matches(data, \"tui.altScreen.bottom\")) {\n\t\t\tif (!isRelease) this.scrollToBottom();\n\t\t\treturn { consume: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate decodeMouseButton(button: number): TuiMouseButton {\n\t\tswitch (button & 3) {\n\t\t\tcase 0:\n\t\t\t\treturn \"left\";\n\t\t\tcase 1:\n\t\t\t\treturn \"middle\";\n\t\t\tcase 2:\n\t\t\t\treturn \"right\";\n\t\t\tdefault:\n\t\t\t\treturn \"none\";\n\t\t}\n\t}\n\n\tprivate createMouseEvent(\n\t\ttype: TuiMouseEvent[\"type\"],\n\t\tbutton: number,\n\t\tx: number,\n\t\ty: number,\n\t\textra: Partial<Pick<TuiMouseEvent, \"wheelDelta\" | \"clickCount\">> = {},\n\t): TuiMouseEvent {\n\t\treturn {\n\t\t\ttype,\n\t\t\tbutton: type === \"wheel\" ? \"none\" : this.decodeMouseButton(button),\n\t\t\tx,\n\t\t\ty,\n\t\t\tscreenX: x,\n\t\t\tscreenY: y,\n\t\t\twidth: Math.max(1, this.terminal.columns),\n\t\t\theight: Math.max(1, this.terminal.rows),\n\t\t\tshift: (button & 4) !== 0,\n\t\t\talt: (button & 8) !== 0,\n\t\t\tctrl: (button & 16) !== 0,\n\t\t\t...(extra.wheelDelta === undefined ? {} : { wheelDelta: extra.wheelDelta }),\n\t\t\t...(extra.clickCount === undefined ? {} : { clickCount: extra.clickCount }),\n\t\t};\n\t}\n\n\tprivate dispatchMouseToLayout(event: TuiMouseEvent): TuiMouseDispatchResult | undefined {\n\t\tif (!this.currentLayout) return undefined;\n\t\tconst visited = new Set<Component>();\n\t\tconst boxes = getLayoutBoxesAt(this.currentLayout, event.screenX, event.screenY);\n\t\tfor (const box of boxes) {\n\t\t\tif (visited.has(box.component)) continue;\n\t\t\tif (getLayoutNode(box.component) && box.component.handleMouse === Container.prototype.handleMouse) continue;\n\t\t\tvisited.add(box.component);\n\t\t\tconst result = dispatchMouseEvent(box.component, {\n\t\t\t\t...event,\n\t\t\t\tx: event.screenX - box.rect.x,\n\t\t\t\ty: event.screenY - box.rect.y,\n\t\t\t\twidth: box.rect.width,\n\t\t\t\theight: box.rect.height,\n\t\t\t});\n\t\t\tif (result) return result;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate applyMouseDispatchResult(event: TuiMouseEvent, result: TuiMouseDispatchResult): boolean {\n\t\tconst focusTarget = this.resolveMouseFocusTarget(result.focusTarget ?? result.target.component);\n\t\tconst focusChanged = result.focus === true && this.getFocusedComponent() !== focusTarget;\n\t\tif (result.focus) this.setFocus(focusTarget);\n\t\tif (result.capture) this.mouseCapture = result.target;\n\t\treturn (\n\t\t\tresult.render ??\n\t\t\t(focusChanged ||\n\t\t\t\tevent.type === \"press\" ||\n\t\t\t\tevent.type === \"click\" ||\n\t\t\t\tevent.type === \"drag\" ||\n\t\t\t\tevent.type === \"wheel\")\n\t\t);\n\t}\n\n\tprivate dispatchMouseToTarget(\n\t\tevent: TuiMouseEvent,\n\t\ttarget: TuiMouseDispatchTarget,\n\t): TuiMouseDispatchResult | undefined {\n\t\treturn dispatchMouseEvent(target.component, retargetMouseEvent(event, target));\n\t}\n\n\tprivate getComponentClickCount(target: TuiMouseDispatchTarget, x: number, y: number): number {\n\t\tconst now = Date.now();\n\t\tconst previous = this.lastComponentClick;\n\t\tconst count =\n\t\t\tprevious &&\n\t\t\tnow - previous.timestamp <= DOUBLE_CLICK_INTERVAL_MS &&\n\t\t\tprevious.component === target.component &&\n\t\t\tprevious.x === x &&\n\t\t\tprevious.y === y\n\t\t\t\t? (previous.count % 3) + 1\n\t\t\t\t: 1;\n\t\tthis.lastComponentClick = { timestamp: now, count, component: target.component, x, y };\n\t\treturn count;\n\t}\n\n\tprivate clearTextSelection(): void {\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = false;\n\t\tthis.selectionAnchor = undefined;\n\t\tthis.selectionFocus = undefined;\n\t\tthis.selectionGranularity = \"character\";\n\t\tthis.selectionInitialRange = undefined;\n\t\tthis.pressedUrl = undefined;\n\t\tthis.selectionDragged = false;\n\t}\n\n\tprivate handleMouseEvent(raw: SgrMouseEvent): void {\n\t\tconst isMotion = (raw.button & 32) !== 0;\n\t\tconst type: TuiMouseEvent[\"type\"] = raw.release\n\t\t\t? \"release\"\n\t\t\t: isMotion\n\t\t\t\t? this.decodeMouseButton(raw.button) === \"none\"\n\t\t\t\t\t? \"move\"\n\t\t\t\t\t: \"drag\"\n\t\t\t\t: \"press\";\n\t\tconst event = this.createMouseEvent(type, raw.button, raw.x, raw.y);\n\n\t\tif (this.mouseCapture || this.mousePressTarget) {\n\t\t\tconst target = this.mouseCapture ?? this.mousePressTarget!;\n\t\t\tif (this.mousePressPoint && (raw.x !== this.mousePressPoint.x || raw.y !== this.mousePressPoint.y)) {\n\t\t\t\tthis.mousePressMoved = true;\n\t\t\t\tthis.lastComponentClick = undefined;\n\t\t\t}\n\t\t\tlet render = false;\n\t\t\tconst targetResult = this.dispatchMouseToTarget(event, target);\n\t\t\tif (targetResult) render = this.applyMouseDispatchResult(event, targetResult);\n\t\t\tif (raw.release) {\n\t\t\t\tif (!this.mousePressMoved && this.mousePressPoint?.x === raw.x && this.mousePressPoint.y === raw.y) {\n\t\t\t\t\tconst clickEvent = this.createMouseEvent(\"click\", raw.button, raw.x, raw.y, {\n\t\t\t\t\t\tclickCount: this.getComponentClickCount(target, raw.x, raw.y),\n\t\t\t\t\t});\n\t\t\t\t\tconst clickResult = this.dispatchMouseToTarget(clickEvent, target);\n\t\t\t\t\tif (clickResult) render = this.applyMouseDispatchResult(clickEvent, clickResult) || render;\n\t\t\t\t}\n\t\t\t\tthis.clearComponentMouseGesture();\n\t\t\t}\n\t\t\tif (render) this.requestRender();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.handleSearchMouseEvent(raw)) return;\n\n\t\tconst overlay = this.dispatchMouseToOverlay(event);\n\t\tif (!overlay.hit) {\n\t\t\tif (this.handleScrollToEndIndicatorMouseEvent(raw)) return;\n\t\t\tconst scrollbarHandled = this.handleScrollbarMouseEvent(raw);\n\t\t\tif (!this.scrollbarDrag) this.updateScrollbarHover(raw.x, raw.y);\n\t\t\tif (scrollbarHandled) return;\n\t\t} else {\n\t\t\tthis.stopScrollbarHover();\n\t\t}\n\n\t\tconst result = overlay.result ?? (overlay.hit ? undefined : this.dispatchMouseToLayout(event));\n\t\tif (result) {\n\t\t\tconst render = this.applyMouseDispatchResult(event, result);\n\t\t\tif (type === \"press\") {\n\t\t\t\tthis.clearTextSelection();\n\t\t\t\tthis.mousePressTarget = result.target;\n\t\t\t\tthis.mousePressPoint = { x: raw.x, y: raw.y };\n\t\t\t\tthis.mousePressMoved = false;\n\t\t\t}\n\t\t\tif (render) this.requestRender();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.handleRightClickPaste(raw)) return;\n\t\tthis.handleSelectionMouseEvent(raw);\n\t}\n\n\tprivate parseWheelEvent(data: string): WheelEvent | undefined {\n\t\tconst sgr = /^\\x1b\\[<(\\d+);(\\d+);(\\d+)[Mm]$/.exec(data);\n\t\tif (sgr) {\n\t\t\tconst button = Number.parseInt(sgr[1], 10);\n\t\t\tif ((button & 64) === 0) return undefined;\n\t\t\tconst direction = button & 3;\n\t\t\tif (direction !== 0 && direction !== 1) return undefined;\n\t\t\treturn {\n\t\t\t\tdirection: direction === 0 ? -1 : 1,\n\t\t\t\tx: Number.parseInt(sgr[2], 10) - 1,\n\t\t\t\ty: Number.parseInt(sgr[3], 10) - 1,\n\t\t\t\tbutton,\n\t\t\t};\n\t\t}\n\t\tif (data.length === 6 && data.startsWith(\"\\x1b[M\")) {\n\t\t\tconst button = data.charCodeAt(3) - 32;\n\t\t\tif ((button & 64) === 0) return undefined;\n\t\t\tconst direction = button & 3;\n\t\t\tif (direction !== 0 && direction !== 1) return undefined;\n\t\t\treturn {\n\t\t\t\tdirection: direction === 0 ? -1 : 1,\n\t\t\t\tx: data.charCodeAt(4) - 33,\n\t\t\t\ty: data.charCodeAt(5) - 33,\n\t\t\t\tbutton,\n\t\t\t};\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate getWheelScrollLines(button: number): number {\n\t\t// SGR mouse button codes use bit 3 (value 8) for the Alt modifier.\n\t\treturn (button & 8) !== 0 ? this.wheelScrollLines * ALT_WHEEL_SCROLL_MULTIPLIER : this.wheelScrollLines;\n\t}\n\n\tprivate routeWheel(event: WheelEvent): void {\n\t\tlet remaining = event.direction * this.getWheelScrollLines(event.button);\n\t\tconst seen = new Set<ScrollView>();\n\t\tfor (const scrollView of this.currentLayout ? getScrollViewsAt(this.currentLayout, event.x, event.y) : []) {\n\t\t\tseen.add(scrollView);\n\t\t\tremaining = scrollView.scrollBy(remaining);\n\t\t\tif (remaining === 0 || scrollView.overscroll === \"contain\") break;\n\t\t}\n\t\tconst primary = this.getPrimaryScrollView();\n\t\tif (remaining !== 0 && !seen.has(primary)) primary.scrollBy(remaining);\n\t\tthis.updateScrollbarHover(event.x, event.y);\n\t\tthis.requestRender();\n\t}\n\n\tprivate parseSgrMouseEvent(data: string): SgrMouseEvent | undefined {\n\t\tconst match = /^\\x1b\\[<(\\d+);(\\d+);(\\d+)([Mm])$/.exec(data);\n\t\tif (!match) return undefined;\n\t\treturn {\n\t\t\tbutton: Number.parseInt(match[1], 10),\n\t\t\tx: Number.parseInt(match[2], 10) - 1,\n\t\t\ty: Number.parseInt(match[3], 10) - 1,\n\t\t\trelease: match[4] === \"m\",\n\t\t};\n\t}\n\n\tprivate handleRightClickPaste(event: SgrMouseEvent): boolean {\n\t\tif (\n\t\t\t!this.onRightClickPaste ||\n\t\t\tprocess.platform !== \"win32\" ||\n\t\t\tprocess.env.TERM_PROGRAM?.toLowerCase() === \"vscode\" ||\n\t\t\tevent.release ||\n\t\t\tevent.button !== 2\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\tthis.onRightClickPaste();\n\t\t} catch {\n\t\t\t// Clipboard paste is best-effort.\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate handleScrollToEndIndicatorMouseEvent(event: SgrMouseEvent): boolean {\n\t\tconst rect = this.scrollToEndIndicatorRect;\n\t\tif (!rect || event.release || (event.button & 32) !== 0 || (event.button & 3) !== 0) return false;\n\t\tif (event.y !== rect.row || event.x < rect.column || event.x >= rect.column + rect.width) return false;\n\t\tthis.scrollToBottom();\n\t\treturn true;\n\t}\n\n\tprivate getScrollbarTargetAt(x: number, y: number, includeHiddenAuto = false): ScrollbarTarget | undefined {\n\t\tif (this.hasOverlay() || !this.currentLayout) return undefined;\n\t\tfor (const scrollView of getScrollViewsAt(this.currentLayout, x, y)) {\n\t\t\tconst box = getScrollViewBox(this.currentLayout, scrollView);\n\t\t\tconst geometry = box ? getScrollbarGeometry(box, includeHiddenAuto) : undefined;\n\t\t\tif (\n\t\t\t\tgeometry &&\n\t\t\t\tx === geometry.column &&\n\t\t\t\ty >= geometry.trackTop &&\n\t\t\t\ty < geometry.trackTop + geometry.trackHeight\n\t\t\t) {\n\t\t\t\treturn { scrollView, geometry };\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate setScrollbarHover(scrollView: ScrollView | undefined): void {\n\t\tif (scrollView === this.scrollbarHover) return;\n\t\tthis.scrollbarHover?.setScrollbarActive(false);\n\t\tthis.scrollbarHover = scrollView;\n\t\tthis.scrollbarHover?.setScrollbarActive(true);\n\t}\n\n\tprivate updateScrollbarHover(x: number, y: number): void {\n\t\tthis.setScrollbarHover(this.getScrollbarTargetAt(x, y, true)?.scrollView);\n\t}\n\n\tprivate stopScrollbarHover(): void {\n\t\tthis.setScrollbarHover(undefined);\n\t}\n\n\tprivate scrollScrollbarToPointer(\n\t\tscrollView: ScrollView,\n\t\tgeometry: ScrollbarGeometry,\n\t\tpointerY: number,\n\t\tgrabOffset: number,\n\t): void {\n\t\tconst maxThumbOffset = geometry.trackHeight - geometry.thumbHeight;\n\t\tconst thumbOffset = Math.max(0, Math.min(maxThumbOffset, pointerY - geometry.trackTop - grabOffset));\n\t\tconst scrollTop = maxThumbOffset === 0 ? 0 : Math.round((thumbOffset / maxThumbOffset) * geometry.maxScrollTop);\n\t\tscrollView.scrollTo(scrollTop);\n\t}\n\n\tprivate handleScrollbarMouseEvent(event: SgrMouseEvent): boolean {\n\t\tif (this.scrollbarDrag) {\n\t\t\tif (event.release) {\n\t\t\t\tthis.stopScrollbarDrag();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tconst box = this.currentLayout\n\t\t\t\t? getScrollViewBox(this.currentLayout, this.scrollbarDrag.scrollView)\n\t\t\t\t: undefined;\n\t\t\tconst geometry = box ? getScrollbarGeometry(box) : undefined;\n\t\t\tif (geometry) {\n\t\t\t\tthis.scrollScrollbarToPointer(\n\t\t\t\t\tthis.scrollbarDrag.scrollView,\n\t\t\t\t\tgeometry,\n\t\t\t\t\tevent.y,\n\t\t\t\t\tthis.scrollbarDrag.grabOffset,\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tif (event.release || (event.button & 32) !== 0 || (event.button & 3) !== 0) return false;\n\t\tconst target = this.getScrollbarTargetAt(event.x, event.y);\n\t\tif (!target) return false;\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = false;\n\t\tthis.selectionAnchor = undefined;\n\t\tthis.selectionFocus = undefined;\n\t\tthis.selectionGranularity = \"character\";\n\t\tthis.selectionInitialRange = undefined;\n\t\tthis.lastClick = undefined;\n\t\tthis.pressedUrl = undefined;\n\t\tthis.selectionDragged = false;\n\t\tthis.setScrollbarHover(target.scrollView);\n\t\tconst onThumb =\n\t\t\tevent.y >= target.geometry.thumbTop && event.y < target.geometry.thumbTop + target.geometry.thumbHeight;\n\t\tconst grabOffset = onThumb ? event.y - target.geometry.thumbTop : Math.floor(target.geometry.thumbHeight / 2);\n\t\tif (!onThumb) this.scrollScrollbarToPointer(target.scrollView, target.geometry, event.y, grabOffset);\n\t\tthis.scrollbarDrag = {\n\t\t\tscrollView: target.scrollView,\n\t\t\tgrabOffset,\n\t\t};\n\t\treturn true;\n\t}\n\n\tprivate stopScrollbarDrag(): void {\n\t\tthis.scrollbarDrag = undefined;\n\t}\n\n\tprivate getScrollSelectionPoint(scrollView: ScrollView, x: number, y: number): SelectionPoint | undefined {\n\t\tif (!this.currentLayout) return undefined;\n\t\tconst box = getScrollViewBox(this.currentLayout, scrollView);\n\t\tif (!box || box.rect.height <= 0 || box.clip.height <= 0) return undefined;\n\t\tconst visibleTop = Math.max(0, box.rect.y, box.clip.y);\n\t\tconst visibleBottom = Math.min(\n\t\t\tthis.terminal.rows - 1,\n\t\t\tbox.rect.y + box.rect.height - 1,\n\t\t\tbox.clip.y + box.clip.height - 1,\n\t\t);\n\t\tif (visibleBottom < visibleTop) return undefined;\n\t\tconst pointerRow = Math.max(visibleTop, Math.min(visibleBottom, y));\n\t\tconst maxContentRow = Math.max(0, (box.scrollContentLines?.length ?? 1) - 1);\n\t\treturn {\n\t\t\trow: Math.max(0, Math.min(maxContentRow, scrollView.scrollTop + pointerRow - box.rect.y)),\n\t\t\tcol: Math.max(0, Math.min(box.rect.width - 1, x - box.rect.x)),\n\t\t\tscrollView,\n\t\t};\n\t}\n\n\tprivate getSelectionPoint(event: SgrMouseEvent, scrollView?: ScrollView): SelectionPoint {\n\t\tif (scrollView) {\n\t\t\tconst point = this.getScrollSelectionPoint(scrollView, event.x, event.y);\n\t\t\tif (point) return point;\n\t\t}\n\t\treturn {\n\t\t\trow: Math.max(0, Math.min(this.terminal.rows - 1, event.y)),\n\t\t\tcol: Math.max(0, Math.min(this.terminal.columns - 1, event.x)),\n\t\t};\n\t}\n\n\tprivate getSelectionSourceLine(point: SelectionPoint): string {\n\t\tif (point.scrollView && this.currentLayout) {\n\t\t\tconst lines = getScrollViewBox(this.currentLayout, point.scrollView)?.scrollContentLines;\n\t\t\tif (lines) return lines[point.row] ?? \"\";\n\t\t}\n\t\treturn this.previousScreen[point.row] ?? \"\";\n\t}\n\n\tprivate getWordSelection(point: SelectionPoint): SelectionRange | undefined {\n\t\tconst line = stripTerminalSequences(this.getSelectionSourceLine(point));\n\t\tconst segments: Array<{ start: number; end: number; selectable: boolean; joiner: boolean }> = [];\n\t\tlet start = 0;\n\t\tfor (const segment of wordSegmenter.segment(line)) {\n\t\t\tconst end = start + visibleWidth(segment.segment);\n\t\t\tconst joiner = TERMINAL_WORD_SELECTION_JOINERS.has(segment.segment);\n\t\t\tsegments.push({ start, end, selectable: segment.isWordLike === true || joiner, joiner });\n\t\t\tstart = end;\n\t\t}\n\t\tconst clickedSegmentIndex = segments.findIndex(\n\t\t\t(segment) => point.col >= segment.start && point.col < segment.end,\n\t\t);\n\t\tif (clickedSegmentIndex < 0) return undefined;\n\n\t\tconst canJoin = (\n\t\t\tleft: { selectable: boolean; joiner: boolean },\n\t\t\tright: { selectable: boolean; joiner: boolean },\n\t\t): boolean => left.selectable && right.selectable && (left.joiner || right.joiner);\n\t\tlet selectionStart = segments[clickedSegmentIndex].start;\n\t\tlet selectionEnd = segments[clickedSegmentIndex].end;\n\t\tfor (let index = clickedSegmentIndex; index > 0 && canJoin(segments[index - 1], segments[index]); index--) {\n\t\t\tselectionStart = segments[index - 1].start;\n\t\t}\n\t\tfor (\n\t\t\tlet index = clickedSegmentIndex;\n\t\t\tindex < segments.length - 1 && canJoin(segments[index], segments[index + 1]);\n\t\t\tindex++\n\t\t) {\n\t\t\tselectionEnd = segments[index + 1].end;\n\t\t}\n\t\treturn {\n\t\t\tstart: { ...point, col: selectionStart },\n\t\t\tend: { ...point, col: selectionEnd, boundary: true },\n\t\t};\n\t}\n\n\tprivate getLineSelection(point: SelectionPoint): SelectionRange {\n\t\treturn {\n\t\t\tstart: { ...point, col: 0 },\n\t\t\tend: { ...point, col: visibleWidth(this.getSelectionSourceLine(point)), boundary: true },\n\t\t};\n\t}\n\n\tprivate updateSelectionFocus(point: SelectionPoint): void {\n\t\tif (this.selectionGranularity === \"character\" || !this.selectionInitialRange) {\n\t\t\tthis.selectionFocus = point;\n\t\t\treturn;\n\t\t}\n\t\tconst range = this.selectionGranularity === \"word\" ? this.getWordSelection(point) : this.getLineSelection(point);\n\t\tif (!range) return;\n\t\tconst initial = this.selectionInitialRange;\n\t\tconst targetBeforeInitial =\n\t\t\trange.start.row < initial.start.row ||\n\t\t\t(range.start.row === initial.start.row && range.start.col < initial.start.col);\n\t\tif (targetBeforeInitial) {\n\t\t\tthis.selectionAnchor = initial.end;\n\t\t\tthis.selectionFocus = range.start;\n\t\t} else {\n\t\t\tthis.selectionAnchor = initial.start;\n\t\t\tthis.selectionFocus = range.end;\n\t\t}\n\t}\n\n\tprivate getClickCount(point: SelectionPoint, word: SelectionRange | undefined): number {\n\t\tconst now = Date.now();\n\t\tconst previous = this.lastClick;\n\t\tconst count =\n\t\t\tword &&\n\t\t\tprevious &&\n\t\t\tnow - previous.timestamp <= DOUBLE_CLICK_INTERVAL_MS &&\n\t\t\tprevious.row === point.row &&\n\t\t\tprevious.scrollView === point.scrollView &&\n\t\t\tprevious.wordStart === word.start.col &&\n\t\t\tprevious.wordEnd === word.end.col\n\t\t\t\t? (previous.count % 3) + 1\n\t\t\t\t: 1;\n\t\tthis.lastClick = word\n\t\t\t? {\n\t\t\t\t\ttimestamp: now,\n\t\t\t\t\tcount,\n\t\t\t\t\trow: point.row,\n\t\t\t\t\tscrollView: point.scrollView,\n\t\t\t\t\twordStart: word.start.col,\n\t\t\t\t\twordEnd: word.end.col,\n\t\t\t\t}\n\t\t\t: undefined;\n\t\treturn count;\n\t}\n\n\tprivate updateSelectionAutoScroll(event: SgrMouseEvent): void {\n\t\tconst scrollView = this.selectionAnchor?.scrollView;\n\t\tif (!scrollView || !this.currentLayout) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tconst box = getScrollViewBox(this.currentLayout, scrollView);\n\t\tif (!box || box.rect.height <= 0 || box.clip.height <= 0) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tconst visibleTop = Math.max(0, box.rect.y, box.clip.y);\n\t\tconst visibleBottom = Math.min(\n\t\t\tthis.terminal.rows - 1,\n\t\t\tbox.rect.y + box.rect.height - 1,\n\t\t\tbox.clip.y + box.clip.height - 1,\n\t\t);\n\t\tthis.selectionDragPointer = { x: event.x, y: event.y };\n\t\tthis.selectionAutoScrollDirection = event.y <= visibleTop ? -1 : event.y >= visibleBottom ? 1 : 0;\n\t\tif (this.selectionAutoScrollDirection === 0) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tif (this.selectionAutoScrollTimer) return;\n\t\tthis.selectionAutoScrollTimer = setInterval(() => this.autoScrollSelection(), 50);\n\t\tthis.selectionAutoScrollTimer.unref();\n\t}\n\n\tprivate autoScrollSelection(): void {\n\t\tconst scrollView = this.selectionAnchor?.scrollView;\n\t\tconst pointer = this.selectionDragPointer;\n\t\tconst direction = this.selectionAutoScrollDirection;\n\t\tif (!scrollView || !pointer || direction === 0) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tconst remaining = scrollView.scrollBy(direction);\n\t\tif (remaining === direction) {\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\treturn;\n\t\t}\n\t\tconst point = this.getScrollSelectionPoint(scrollView, pointer.x, pointer.y);\n\t\tif (point) this.updateSelectionFocus(point);\n\t\tthis.requestRender();\n\t}\n\n\tprivate stopSelectionAutoScroll(): void {\n\t\tif (this.selectionAutoScrollTimer) {\n\t\t\tclearInterval(this.selectionAutoScrollTimer);\n\t\t\tthis.selectionAutoScrollTimer = undefined;\n\t\t}\n\t\tthis.selectionAutoScrollDirection = 0;\n\t\tthis.selectionDragPointer = undefined;\n\t}\n\n\tprivate handleSelectionMouseEvent(event: SgrMouseEvent): void {\n\t\tconst button = event.button & 3;\n\t\tif (button !== 0 && !(event.release && button === 3)) return;\n\t\tconst anchorScrollView = this.selectionAnchor?.scrollView;\n\t\tconst point = this.getSelectionPoint(event, anchorScrollView);\n\t\tif (event.release) {\n\t\t\tif (!this.selectionPressActive) return;\n\t\t\tthis.selectionPressActive = false;\n\t\t\tthis.stopSelectionAutoScroll();\n\t\t\tif (!this.selectionAnchor) return;\n\t\t\tthis.updateSelectionFocus(point);\n\t\t\tconst isClick =\n\t\t\t\t!this.selectionDragged &&\n\t\t\t\tthis.selectionAnchor.scrollView === point.scrollView &&\n\t\t\t\tthis.selectionAnchor.row === point.row &&\n\t\t\t\tthis.selectionAnchor.col === point.col;\n\t\t\tconst clickedUrl = isClick ? this.pressedUrl : undefined;\n\t\t\tthis.pressedUrl = undefined;\n\t\t\tif (clickedUrl && this.openUrl) {\n\t\t\t\tthis.selectionAnchor = undefined;\n\t\t\t\tthis.selectionFocus = undefined;\n\t\t\t\ttry {\n\t\t\t\t\tthis.openUrl(clickedUrl);\n\t\t\t\t} catch {\n\t\t\t\t\t// URL activation is best-effort.\n\t\t\t\t}\n\t\t\t\tthis.requestRender();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isClick) {\n\t\t\t\tconst clickEvent = this.createMouseEvent(\"click\", event.button, event.x, event.y, {\n\t\t\t\t\tclickCount: this.lastClick?.count ?? 1,\n\t\t\t\t});\n\t\t\t\tconst overlay = this.dispatchMouseToOverlay(clickEvent);\n\t\t\t\tconst result = overlay.result ?? (overlay.hit ? undefined : this.dispatchMouseToLayout(clickEvent));\n\t\t\t\tif (result) {\n\t\t\t\t\tconst render = this.applyMouseDispatchResult(clickEvent, result);\n\t\t\t\t\tthis.clearTextSelection();\n\t\t\t\t\tif (render) this.requestRender();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this.copyOnSelect) void this.copySelectionToClipboard();\n\t\t\tthis.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tif ((event.button & 32) !== 0) {\n\t\t\tif (!this.selectionPressActive || !this.selectionAnchor) return;\n\t\t\tthis.selectionDragged = true;\n\t\t\tthis.lastClick = undefined;\n\t\t\tthis.pressedUrl = undefined;\n\t\t\tthis.updateSelectionFocus(point);\n\t\t\tthis.updateSelectionAutoScroll(event);\n\t\t\tthis.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tthis.stopSelectionAutoScroll();\n\t\tthis.selectionPressActive = true;\n\t\tconst scrollView =\n\t\t\t!this.hasOverlay() && this.currentLayout\n\t\t\t\t? getScrollViewsAt(this.currentLayout, event.x, event.y)[0]\n\t\t\t\t: undefined;\n\t\tconst anchor = this.getSelectionPoint(event, scrollView);\n\t\tconst word = this.getWordSelection(anchor);\n\t\tconst clickCount = this.getClickCount(anchor, word);\n\t\tconst range = clickCount === 2 ? word : clickCount === 3 ? this.getLineSelection(anchor) : undefined;\n\t\tthis.selectionGranularity = range ? (clickCount === 2 ? \"word\" : \"line\") : \"character\";\n\t\tthis.selectionInitialRange = range;\n\t\tthis.selectionAnchor = range?.start ?? anchor;\n\t\tthis.selectionFocus = range?.end ?? anchor;\n\t\tthis.selectionDragged = false;\n\t\tthis.pressedUrl = range\n\t\t\t? undefined\n\t\t\t: getOsc8LinkAtColumn(\n\t\t\t\t\tthis.previousScreen[Math.max(0, Math.min(this.terminal.rows - 1, event.y))] ?? \"\",\n\t\t\t\t\tMath.max(0, Math.min(this.terminal.columns - 1, event.x)),\n\t\t\t\t);\n\t\tthis.requestRender();\n\t}\n\n\tprivate getSelectionBounds(): { start: SelectionPoint; end: SelectionPoint } | undefined {\n\t\tif (!this.selectionAnchor || !this.selectionFocus) return undefined;\n\t\tif (this.selectionAnchor.scrollView !== this.selectionFocus.scrollView) return undefined;\n\t\tconst anchorBeforeFocus =\n\t\t\tthis.selectionAnchor.row < this.selectionFocus.row ||\n\t\t\t(this.selectionAnchor.row === this.selectionFocus.row && this.selectionAnchor.col < this.selectionFocus.col);\n\t\tif (\n\t\t\tthis.selectionAnchor.row === this.selectionFocus.row &&\n\t\t\tthis.selectionAnchor.col === this.selectionFocus.col\n\t\t) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn anchorBeforeFocus\n\t\t\t? { start: this.selectionAnchor, end: this.selectionFocus }\n\t\t\t: { start: this.selectionFocus, end: this.selectionAnchor };\n\t}\n\n\tprivate getSelectionColumns(\n\t\tline: string,\n\t\trow: number,\n\t\tselection: { start: SelectionPoint; end: SelectionPoint },\n\t\tminColumn = 0,\n\t\tmaxColumn = visibleWidth(line),\n\t): { start: number; end: number } {\n\t\tconst lineWidth = visibleWidth(line);\n\t\tlet start = Math.max(0, minColumn);\n\t\tlet end = Math.min(lineWidth, maxColumn);\n\t\tif (row === selection.start.row) {\n\t\t\tstart = getGraphemeCellRange(line, selection.start.col)?.start ?? Math.min(selection.start.col, lineWidth);\n\t\t}\n\t\tif (row === selection.end.row) {\n\t\t\tend = selection.end.boundary\n\t\t\t\t? Math.min(selection.end.col, lineWidth)\n\t\t\t\t: (getGraphemeCellRange(line, selection.end.col)?.end ?? Math.min(selection.end.col + 1, lineWidth));\n\t\t}\n\t\treturn { start: Math.max(minColumn, start), end: Math.min(maxColumn, end) };\n\t}\n\n\tprivate getActiveSelectionText(): string | undefined {\n\t\tconst selection = this.getSelectionBounds();\n\t\tif (!selection) return undefined;\n\t\tlet sourceLines: readonly string[] = this.previousScreen;\n\t\tif (selection.start.scrollView) {\n\t\t\tif (!this.currentLayout) return undefined;\n\t\t\tconst box = getScrollViewBox(this.currentLayout, selection.start.scrollView);\n\t\t\tif (!box?.scrollContentLines) return undefined;\n\t\t\tsourceLines = box.scrollContentLines;\n\t\t}\n\t\tconst lines: string[] = [];\n\t\tfor (let row = selection.start.row; row <= selection.end.row; row++) {\n\t\t\tconst line = sourceLines[row] ?? \"\";\n\t\t\tconst columns = this.getSelectionColumns(line, row, selection);\n\t\t\tlines.push(\n\t\t\t\tstripTerminalSequences(\n\t\t\t\t\tsliceByColumn(line, columns.start, Math.max(0, columns.end - columns.start), true),\n\t\t\t\t).trimEnd(),\n\t\t\t);\n\t\t}\n\t\tconst text = lines.join(\"\\n\");\n\t\treturn text.length === 0 ? undefined : text;\n\t}\n\n\tprivate async copySelectionToClipboard(): Promise<boolean> {\n\t\tconst text = this.getActiveSelectionText();\n\t\tif (!text) return false;\n\t\treturn this.copyTextToClipboard(text);\n\t}\n\n\tprivate async copyTextToClipboard(text: string): Promise<boolean> {\n\t\t// Prefer an injected clipboard implementation (native clipboard + platform tools with a\n\t\t// verified success path) when the host app provides one. A bare OSC 52 write can show\n\t\t// \"Copied!\" while leaving the system clipboard untouched (e.g. macOS Terminal.app, tmux\n\t\t// without OSC 52 clipboard passthrough), so only report success when it actually copies.\n\t\tif (this.copySelection) {\n\t\t\tconst result = await this.copySelection(text);\n\t\t\tconst ok = result === true;\n\t\t\tthis.flash(\n\t\t\t\tok ? \"Copied!\" : typeof result === \"string\" ? result : \"Copy failed\",\n\t\t\t\tok ? undefined : COPY_ERROR_FLASH_DURATION_MS,\n\t\t\t);\n\t\t\treturn ok;\n\t\t}\n\t\tthis.terminal.write(`\\x1b]52;c;${Buffer.from(text).toString(\"base64\")}\\x07`);\n\t\tthis.flash(\"Copied!\");\n\t\treturn true;\n\t}\n\n\tprivate applySearchTextHighlight(text: string, current: boolean): string {\n\t\tconst style = current ? this.searchCurrentMatchStyle : this.searchMatchStyle;\n\t\tlet result = \"\";\n\t\tlet plainStart = 0;\n\t\tlet index = 0;\n\t\twhile (index < text.length) {\n\t\t\tconst ansi = extractAnsiCode(text, index);\n\t\t\tif (!ansi) {\n\t\t\t\tindex += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (index > plainStart) result += style(text.slice(plainStart, index));\n\t\t\tresult += ansi.code;\n\t\t\tindex += ansi.length;\n\t\t\tplainStart = index;\n\t\t}\n\t\tif (plainStart < text.length) result += style(text.slice(plainStart));\n\t\treturn result;\n\t}\n\n\tprivate applySearchHighlights(screen: string[], layout: LayoutFrame): string[] {\n\t\tconst search = this.activeSearch;\n\t\tif (!search || search.selectedIndex < 0 || search.matches.length === 0) return screen;\n\t\tconst scrollView = layout.primaryScrollView ?? this.implicitScrollView;\n\t\tconst box = getScrollViewBox(layout, scrollView);\n\t\tif (!box) return screen;\n\n\t\tconst rangesByRow = new Map<number, SearchHighlightRange[]>();\n\t\tconst scrollbarColumn = getScrollbarGeometry(box)?.column;\n\t\tconst minRow = Math.max(0, box.rect.y, box.clip.y);\n\t\tconst maxRow = Math.min(screen.length, box.rect.y + box.rect.height, box.clip.y + box.clip.height);\n\t\tconst minColumn = Math.max(0, box.rect.x, box.clip.x);\n\t\tconst maxColumn = Math.min(\n\t\t\tthis.terminal.columns,\n\t\t\tbox.rect.x + box.rect.width,\n\t\t\tbox.clip.x + box.clip.width,\n\t\t\tscrollbarColumn ?? Number.POSITIVE_INFINITY,\n\t\t);\n\t\tconst minContentRow = scrollView.scrollTop + minRow - box.rect.y;\n\t\tconst maxContentRow = scrollView.scrollTop + maxRow - box.rect.y - 1;\n\t\tlet low = 0;\n\t\tlet high = search.matches.length;\n\t\twhile (low < high) {\n\t\t\tconst middle = low + Math.floor((high - low) / 2);\n\t\t\tconst match = search.matches[middle]!;\n\t\t\tconst lastRow = match.segments[match.segments.length - 1]?.row ?? -1;\n\t\t\tif (lastRow < minContentRow) low = middle + 1;\n\t\t\telse high = middle;\n\t\t}\n\t\tfor (let matchIndex = low; matchIndex < search.matches.length; matchIndex++) {\n\t\t\tconst match = search.matches[matchIndex]!;\n\t\t\tif ((match.segments[0]?.row ?? 0) > maxContentRow) break;\n\t\t\tfor (const segment of match.segments) {\n\t\t\t\tconst row = box.rect.y + segment.row - scrollView.scrollTop;\n\t\t\t\tif (row < minRow || row >= maxRow) continue;\n\t\t\t\tconst startCol = Math.max(minColumn, box.rect.x + segment.startCol);\n\t\t\t\tconst endCol = Math.min(maxColumn, box.rect.x + segment.endCol);\n\t\t\t\tif (endCol <= startCol) continue;\n\t\t\t\tconst ranges = rangesByRow.get(row) ?? [];\n\t\t\t\tranges.push({ startCol, endCol, current: matchIndex === search.selectedIndex });\n\t\t\t\trangesByRow.set(row, ranges);\n\t\t\t}\n\t\t}\n\n\t\tconst result = [...screen];\n\t\tfor (const [row, ranges] of rangesByRow) {\n\t\t\tlet line = result[row] ?? \"\";\n\t\t\tif (isImageLine(line)) continue;\n\t\t\tconst lineWidth = visibleWidth(line);\n\t\t\tfor (const range of ranges.sort((a, b) => b.startCol - a.startCol)) {\n\t\t\t\tconst startCol = Math.min(range.startCol, lineWidth);\n\t\t\t\tconst endCol = Math.min(range.endCol, lineWidth);\n\t\t\t\tif (endCol <= startCol) continue;\n\t\t\t\tconst before = sliceByColumn(line, 0, startCol, true);\n\t\t\t\tconst highlighted = sliceByColumn(line, startCol, endCol - startCol, true);\n\t\t\t\tconst after = sliceByColumn(line, endCol, Math.max(0, lineWidth - endCol), true);\n\t\t\t\tline = `${before}${this.applySearchTextHighlight(highlighted, range.current)}${after}`;\n\t\t\t}\n\t\t\tresult[row] = line;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprivate applySelectionHighlight(text: string): string {\n\t\tlet result = \"\\x1b[7m\";\n\t\tlet index = 0;\n\t\twhile (index < text.length) {\n\t\t\tconst ansi = extractAnsiCode(text, index);\n\t\t\tif (!ansi) {\n\t\t\t\tresult += text[index];\n\t\t\t\tindex += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresult += ansi.code;\n\t\t\tif (ansi.code.endsWith(\"m\")) result += \"\\x1b[7m\";\n\t\t\tindex += ansi.length;\n\t\t}\n\t\treturn `${result}\\x1b[27m`;\n\t}\n\n\tprivate applySelection(screen: string[], layout = this.currentLayout): string[] {\n\t\tconst selection = this.getSelectionBounds();\n\t\tif (!selection) return screen;\n\t\tlet screenSelection = selection;\n\t\tlet minRow = 0;\n\t\tlet maxRow = screen.length - 1;\n\t\tlet minColumn = 0;\n\t\tlet maxColumn = this.terminal.columns;\n\t\tif (selection.start.scrollView) {\n\t\t\tif (!layout) return screen;\n\t\t\tconst box = getScrollViewBox(layout, selection.start.scrollView);\n\t\t\tif (!box) return screen;\n\t\t\tminRow = Math.max(0, box.rect.y, box.clip.y);\n\t\t\tmaxRow = Math.min(screen.length - 1, box.rect.y + box.rect.height - 1, box.clip.y + box.clip.height - 1);\n\t\t\tminColumn = Math.max(0, box.rect.x, box.clip.x);\n\t\t\tmaxColumn = Math.min(this.terminal.columns, box.rect.x + box.rect.width, box.clip.x + box.clip.width);\n\t\t\tscreenSelection = {\n\t\t\t\tstart: {\n\t\t\t\t\t...selection.start,\n\t\t\t\t\trow: box.rect.y + selection.start.row - selection.start.scrollView.scrollTop,\n\t\t\t\t\tcol: box.rect.x + selection.start.col,\n\t\t\t\t},\n\t\t\t\tend: {\n\t\t\t\t\t...selection.end,\n\t\t\t\t\trow: box.rect.y + selection.end.row - selection.start.scrollView.scrollTop,\n\t\t\t\t\tcol: box.rect.x + selection.end.col,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t\treturn screen.map((line, row) => {\n\t\t\tif (\n\t\t\t\trow < minRow ||\n\t\t\t\trow > maxRow ||\n\t\t\t\trow < screenSelection.start.row ||\n\t\t\t\trow > screenSelection.end.row ||\n\t\t\t\tisImageLine(line)\n\t\t\t) {\n\t\t\t\treturn line;\n\t\t\t}\n\t\t\tconst lineWidth = visibleWidth(line);\n\t\t\tconst columns = this.getSelectionColumns(line, row, screenSelection, minColumn, maxColumn);\n\t\t\tif (columns.end <= columns.start) return line;\n\t\t\tconst before = sliceByColumn(line, 0, columns.start, true);\n\t\t\tconst selected = sliceByColumn(line, columns.start, columns.end - columns.start, true);\n\t\t\tconst after = sliceByColumn(line, columns.end, Math.max(0, lineWidth - columns.end), true);\n\t\t\treturn `${before}${this.applySelectionHighlight(selected)}${after}`;\n\t\t});\n\t}\n\n\tprivate isMouseSequence(data: string): boolean {\n\t\treturn /^\\x1b\\[<\\d+;\\d+;\\d+[Mm]$/.test(data) || (data.length === 6 && data.startsWith(\"\\x1b[M\"));\n\t}\n\n\tprivate compositeScrollToEndIndicator(screen: string[], layout: LayoutFrame, width: number): string[] {\n\t\tthis.scrollToEndIndicatorRect = undefined;\n\t\tconst scrollView = layout.primaryScrollView ?? this.implicitScrollView;\n\t\tif (!this.scrollToEndIndicator || !scrollView.followEnd || scrollView.isFollowingEnd) return screen;\n\t\tconst box = getScrollViewBox(layout, scrollView);\n\t\tconst clip = box?.clip;\n\t\tif (!clip || clip.width <= 0 || clip.height <= 0) return screen;\n\t\tconst row = clip.y + clip.height - 1;\n\t\tif (row >= screen.length || isImageLine(screen[row] ?? \"\")) return screen;\n\t\tconst scrollbarColumn = box ? getScrollbarGeometry(box)?.column : undefined;\n\t\tconst availableWidth = Math.max(0, (scrollbarColumn ?? clip.x + clip.width) - clip.x);\n\t\tconst text = truncateToWidth(this.scrollToEndIndicator(), availableWidth, \"\");\n\t\tconst textWidth = visibleWidth(text);\n\t\tif (textWidth === 0) return screen;\n\t\tconst column = clip.x + Math.floor((availableWidth - textWidth) / 2);\n\t\tconst result = [...screen];\n\t\tresult[row] = compositeTuiLine(result[row] ?? \"\", text, column, textWidth, width);\n\t\tthis.scrollToEndIndicatorRect = { row, column, width: textWidth };\n\t\treturn result;\n\t}\n\n\tprivate compositeFlashes(screen: string[], width: number, height: number): string[] {\n\t\tconst flashLines = this.flashes.render(width).slice(-height);\n\t\tif (flashLines.length === 0) return screen;\n\t\tconst result = [...screen];\n\t\twhile (result.length < height) result.push(\"\");\n\t\tfor (let row = 0; row < flashLines.length; row++) {\n\t\t\tconst line = flashLines[row]!;\n\t\t\tconst flashWidth = visibleWidth(line);\n\t\t\tif (flashWidth === 0) continue;\n\t\t\tresult[row] = compositeTuiLine(result[row] ?? \"\", line, width - flashWidth, flashWidth, width);\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected override doRender(): void {\n\t\tif (this.stopped || !this.altScreenActive) return;\n\t\tconst width = Math.max(1, this.terminal.columns);\n\t\tconst height = Math.max(1, this.terminal.rows);\n\t\tconst root = this.layoutRoot ?? this.implicitScrollView;\n\t\tlet nextLayout = renderLayoutFrame(root, width, height, () => this.requestRender());\n\t\tif (this.refreshSearch(nextLayout)) {\n\t\t\tnextLayout = renderLayoutFrame(root, width, height, () => this.requestRender());\n\t\t}\n\t\tlet screen = nextLayout.lines.map((line) => line.replace(OSC133_ZONE_PREFIX, \"\"));\n\t\tscreen = this.applySearchHighlights(screen, nextLayout);\n\t\tscreen = this.compositeScrollToEndIndicator(screen, nextLayout, width);\n\t\tscreen = this.compositeOverlays(screen, width, height);\n\t\tif (screen.length > height) screen = screen.slice(screen.length - height);\n\t\tscreen = this.applySelection(screen, nextLayout);\n\t\tscreen = this.compositeFlashes(screen, width, height);\n\n\t\tconst cursorPos = this.extractCursorPosition(screen, height);\n\t\tscreen = this.applyLineResets(screen).map((line) => {\n\t\t\tif (isImageLine(line) || visibleWidth(line) <= width) return line;\n\t\t\treturn sliceByColumn(line, 0, width, true);\n\t\t});\n\n\t\tconst fullRedraw =\n\t\t\tthis.previousScreen.length === 0 || this.previousScreenWidth !== width || this.previousScreenHeight !== height;\n\t\tconst imagesNeedRedraw = screen.some(\n\t\t\t(line, row) =>\n\t\t\t\tline !== this.previousScreen[row] && (isImageLine(line) || isImageLine(this.previousScreen[row] ?? \"\")),\n\t\t);\n\t\tconst redrawImages = fullRedraw || imagesNeedRedraw;\n\t\tconst hadUploadedKittyImages = this.uploadedKittyImages.size > 0;\n\t\tconst preparedKittyScreen =\n\t\t\tredrawImages && this.imageProtocol === \"kitty\"\n\t\t\t\t? this.prepareKittyScreen(screen)\n\t\t\t\t: { lines: screen, evictedImageDeletion: \"\" };\n\n\t\tlet buffer = BEGIN_SYNCHRONIZED_OUTPUT;\n\t\tif (fullRedraw) {\n\t\t\tthis.fullRedrawCount += 1;\n\t\t\tconst clearImages =\n\t\t\t\tthis.imageProtocol === \"kitty\" && hadUploadedKittyImages\n\t\t\t\t\t? deleteAllKittyPlacements()\n\t\t\t\t\t: this.deleteKittyImages();\n\t\t\tbuffer += `${clearImages}\\x1b[2J`;\n\t\t} else if (imagesNeedRedraw) {\n\t\t\tif (this.imageProtocol === \"iterm2\") buffer += \"\\x1b[2J\";\n\t\t\telse if (this.imageProtocol === \"kitty\") buffer += deleteAllKittyPlacements();\n\t\t}\n\t\tbuffer += preparedKittyScreen.evictedImageDeletion;\n\n\t\tfor (let row = 0; row < height; row++) {\n\t\t\tif (!fullRedraw && !imagesNeedRedraw && screen[row] === this.previousScreen[row]) continue;\n\t\t\tbuffer += `\\x1b[${row + 1};1H\\x1b[2K${preparedKittyScreen.lines[row] ?? \"\"}`;\n\t\t}\n\n\t\tif (cursorPos) {\n\t\t\tbuffer += `\\x1b[${cursorPos.row + 1};${Math.min(width, cursorPos.col) + 1}H`;\n\t\t\tbuffer += this.getShowHardwareCursor() ? \"\\x1b[?25h\" : \"\\x1b[?25l\";\n\t\t} else {\n\t\t\tbuffer += \"\\x1b[?25l\";\n\t\t}\n\t\tbuffer += END_SYNCHRONIZED_OUTPUT;\n\t\tthis.terminal.write(buffer);\n\n\t\tthis.previousScreen = screen;\n\t\tthis.previousScreenWidth = width;\n\t\tthis.previousScreenHeight = height;\n\t\tthis.currentLayout = nextLayout;\n\t}\n}\n"]}
@@ -1,39 +0,0 @@
1
- import { type TUI, TuiBase, type TuiStopOptions } from "./tui.ts";
2
- export interface TuiMainScreenRenderState {
3
- previousLines: string[];
4
- previousWidth: number;
5
- previousHeight: number;
6
- cursorRow: number;
7
- hardwareCursorRow: number;
8
- maxLinesRendered: number;
9
- previousViewportTop: number;
10
- }
11
- /** TUI implementation that renders into the terminal's main screen and scrollback. */
12
- export declare class TuiMainScreen extends TuiBase implements TUI {
13
- readonly mode: "regular";
14
- private previousLines;
15
- private previousKittyImageIds;
16
- private previousWidth;
17
- private previousHeight;
18
- private cursorRow;
19
- private hardwareCursorRow;
20
- private maxLinesRendered;
21
- private previousViewportTop;
22
- captureRenderState(): TuiMainScreenRenderState;
23
- restoreRenderState(state: TuiMainScreenRenderState): void;
24
- protected resetRenderState(): void;
25
- protected beforeTerminalStop(options: TuiStopOptions): void;
26
- private collectKittyImageIds;
27
- private deleteKittyImages;
28
- private getKittyImageReservedRows;
29
- private expandChangedRangeForKittyImages;
30
- private deleteChangedKittyImages;
31
- protected doRender(): void;
32
- /**
33
- * Position the hardware cursor for IME candidate window.
34
- * @param cursorPos The cursor position extracted from rendered output, or null
35
- * @param totalLines Total number of rendered lines
36
- */
37
- private positionHardwareCursor;
38
- }
39
- //# sourceMappingURL=tui-main-screen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tui-main-screen.d.ts","sourceRoot":"","sources":["../src/tui-main-screen.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AA4GlE,MAAM,WAAW,wBAAwB;IACxC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;CAC5B;AAED,sFAAsF;AACtF,qBAAa,aAAc,SAAQ,OAAQ,YAAW,GAAG;IACxD,QAAQ,CAAC,IAAI,YAAsB;IACnC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,qBAAqB,CAAqB;IAClD,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,SAAS,CAAK;IACtB,OAAO,CAAC,iBAAiB,CAAK;IAC9B,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,mBAAmB,CAAK;IAEhC,kBAAkB,IAAI,wBAAwB,CAU7C;IAED,kBAAkB,CAAC,KAAK,EAAE,wBAAwB,GAAG,IAAI,CASxD;IAED,UAAmB,gBAAgB,IAAI,IAAI,CAQ1C;IAED,UAAmB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAQnE;IAED,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,yBAAyB;IAcjC,OAAO,CAAC,gCAAgC;IAuBxC,OAAO,CAAC,wBAAwB;IAchC,SAAS,CAAC,QAAQ,IAAI,IAAI,CAmXzB;IAED;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CAgC9B","sourcesContent":["import * as fs from \"node:fs\";\nimport * as os from \"node:os\";\nimport * as path from \"node:path\";\nimport { deleteKittyImage, isImageLine } from \"./terminal-image.ts\";\nimport { type TUI, TuiBase, type TuiStopOptions } from \"./tui.ts\";\nimport { visibleWidth } from \"./utils.ts\";\n\nconst KITTY_SEQUENCE_PREFIX = \"\\x1b_G\";\nconst MAX_RENDER_WRITE_CHARS = 1024 * 1024;\n\n/**\n * Streams terminal output in 1 MiB chunks so a full render never forms one string large enough to exceed V8's limit.\n *\n * `append()` fills the current chunk and flushes it when full. Oversized input is split at chunk boundaries, preserving\n * surrogate pairs so each write remains valid UTF-16. Callers append synchronized-output begin/end sequences themselves;\n * the final `flush()` writes any remainder, including the end sequence.\n */\nclass BoundedTerminalWriter {\n\tprivate buffer = \"\";\n\tprivate writtenChars = 0;\n\tprivate readonly write: (data: string) => void;\n\n\tconstructor(write: (data: string) => void) {\n\t\tthis.write = write;\n\t}\n\n\t/**\n\t * Append terminal data, flushing full chunks as needed. Callers must call `flush()` after the final append.\n\t * @param value Terminal data to write in order; oversized values are split without splitting surrogate pairs.\n\t */\n\tappend(value: string): void {\n\t\tlet offset = 0;\n\t\twhile (offset < value.length) {\n\t\t\tconst capacity = MAX_RENDER_WRITE_CHARS - this.buffer.length;\n\t\t\tif (capacity === 0) {\n\t\t\t\tthis.flush();\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlet end = Math.min(value.length, offset + capacity);\n\t\t\tif (\n\t\t\t\tend < value.length &&\n\t\t\t\tvalue.charCodeAt(end - 1) >= 0xd800 &&\n\t\t\t\tvalue.charCodeAt(end - 1) <= 0xdbff &&\n\t\t\t\tvalue.charCodeAt(end) >= 0xdc00 &&\n\t\t\t\tvalue.charCodeAt(end) <= 0xdfff\n\t\t\t) {\n\t\t\t\tend--;\n\t\t\t}\n\t\t\tif (end === offset) {\n\t\t\t\tthis.flush();\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tthis.buffer += value.slice(offset, end);\n\t\t\toffset = end;\n\t\t\tif (this.buffer.length === MAX_RENDER_WRITE_CHARS) {\n\t\t\t\tthis.flush();\n\t\t\t}\n\t\t}\n\t}\n\n\t/** Write the current chunk, if any, and retain only its character count for debug output. */\n\tflush(): void {\n\t\tif (!this.buffer) return;\n\t\tthis.write(this.buffer);\n\t\tthis.writtenChars += this.buffer.length;\n\t\tthis.buffer = \"\";\n\t}\n\n\tget length(): number {\n\t\treturn this.writtenChars + this.buffer.length;\n\t}\n}\n\ninterface KittyImageHeader {\n\tids: number[];\n\trows: number;\n}\n\nfunction parseKittyImageHeader(line: string): KittyImageHeader | undefined {\n\tconst sequenceStart = line.indexOf(KITTY_SEQUENCE_PREFIX);\n\tif (sequenceStart === -1) return undefined;\n\tconst paramsStart = sequenceStart + KITTY_SEQUENCE_PREFIX.length;\n\tconst paramsEnd = line.indexOf(\";\", paramsStart);\n\tif (paramsEnd === -1) return undefined;\n\n\tconst ids: number[] = [];\n\tlet rows = 1;\n\tfor (const param of line.slice(paramsStart, paramsEnd).split(\",\")) {\n\t\tconst [key, value] = param.split(\"=\", 2);\n\t\tif (value === undefined) continue;\n\t\tconst numberValue = Number(value);\n\t\tif (!Number.isInteger(numberValue) || numberValue <= 0 || numberValue > 0xffffffff) continue;\n\t\tif (key === \"i\") ids.push(numberValue);\n\t\telse if (key === \"r\") rows = numberValue;\n\t}\n\treturn { ids, rows };\n}\n\nfunction extractKittyImageIds(line: string): number[] {\n\treturn parseKittyImageHeader(line)?.ids ?? [];\n}\n\nfunction extractKittyImageRows(line: string): number {\n\treturn parseKittyImageHeader(line)?.rows ?? 1;\n}\n\nfunction isTermuxSession(): boolean {\n\treturn Boolean(process.env.TERMUX_VERSION);\n}\n\nexport interface TuiMainScreenRenderState {\n\tpreviousLines: string[];\n\tpreviousWidth: number;\n\tpreviousHeight: number;\n\tcursorRow: number;\n\thardwareCursorRow: number;\n\tmaxLinesRendered: number;\n\tpreviousViewportTop: number;\n}\n\n/** TUI implementation that renders into the terminal's main screen and scrollback. */\nexport class TuiMainScreen extends TuiBase implements TUI {\n\treadonly mode = \"regular\" as const;\n\tprivate previousLines: string[] = [];\n\tprivate previousKittyImageIds = new Set<number>();\n\tprivate previousWidth = 0;\n\tprivate previousHeight = 0;\n\tprivate cursorRow = 0;\n\tprivate hardwareCursorRow = 0;\n\tprivate maxLinesRendered = 0;\n\tprivate previousViewportTop = 0;\n\n\tcaptureRenderState(): TuiMainScreenRenderState {\n\t\treturn {\n\t\t\tpreviousLines: [...this.previousLines],\n\t\t\tpreviousWidth: this.previousWidth,\n\t\t\tpreviousHeight: this.previousHeight,\n\t\t\tcursorRow: this.cursorRow,\n\t\t\thardwareCursorRow: this.hardwareCursorRow,\n\t\t\tmaxLinesRendered: this.maxLinesRendered,\n\t\t\tpreviousViewportTop: this.previousViewportTop,\n\t\t};\n\t}\n\n\trestoreRenderState(state: TuiMainScreenRenderState): void {\n\t\tthis.previousLines = state.previousLines.map((line) => (isImageLine(line) ? \"\" : line));\n\t\tthis.previousKittyImageIds = new Set();\n\t\tthis.previousWidth = state.previousWidth;\n\t\tthis.previousHeight = state.previousHeight;\n\t\tthis.cursorRow = state.cursorRow;\n\t\tthis.hardwareCursorRow = state.hardwareCursorRow;\n\t\tthis.maxLinesRendered = state.maxLinesRendered;\n\t\tthis.previousViewportTop = state.previousViewportTop;\n\t}\n\n\tprotected override resetRenderState(): void {\n\t\tthis.previousLines = [];\n\t\tthis.previousWidth = -1;\n\t\tthis.previousHeight = -1;\n\t\tthis.cursorRow = 0;\n\t\tthis.hardwareCursorRow = 0;\n\t\tthis.maxLinesRendered = 0;\n\t\tthis.previousViewportTop = 0;\n\t}\n\n\tprotected override beforeTerminalStop(options: TuiStopOptions): void {\n\t\tif (options.preserveScreen || this.previousLines.length === 0) return;\n\t\tthis.terminal.write(\" \");\n\t\tconst targetRow = this.previousLines.length;\n\t\tconst lineDiff = targetRow - this.hardwareCursorRow;\n\t\tif (lineDiff > 0) this.terminal.write(`\\x1b[${lineDiff}B`);\n\t\telse if (lineDiff < 0) this.terminal.write(`\\x1b[${-lineDiff}A`);\n\t\tthis.terminal.write(\"\\r\\n\");\n\t}\n\n\tprivate collectKittyImageIds(lines: string[]): Set<number> {\n\t\tconst ids = new Set<number>();\n\t\tfor (const line of lines) {\n\t\t\tfor (const id of extractKittyImageIds(line)) {\n\t\t\t\tids.add(id);\n\t\t\t}\n\t\t}\n\t\treturn ids;\n\t}\n\n\tprivate deleteKittyImages(ids: Iterable<number>): string {\n\t\tlet buffer = \"\";\n\t\tfor (const id of ids) {\n\t\t\tbuffer += deleteKittyImage(id);\n\t\t}\n\t\treturn buffer;\n\t}\n\n\tprivate getKittyImageReservedRows(lines: string[], index: number, maxIndex = lines.length - 1): number {\n\t\tconst rows = extractKittyImageRows(lines[index] ?? \"\");\n\t\tif (rows <= 1) return 1;\n\n\t\tconst maxRows = Math.min(rows, maxIndex - index + 1, lines.length - index);\n\t\tlet reservedRows = 1;\n\t\twhile (reservedRows < maxRows) {\n\t\t\tconst line = lines[index + reservedRows] ?? \"\";\n\t\t\tif (isImageLine(line) || visibleWidth(line) > 0) break;\n\t\t\treservedRows++;\n\t\t}\n\t\treturn reservedRows;\n\t}\n\n\tprivate expandChangedRangeForKittyImages(\n\t\tfirstChanged: number,\n\t\tlastChanged: number,\n\t\tnewLines: string[],\n\t): { firstChanged: number; lastChanged: number } {\n\t\tlet expandedFirstChanged = firstChanged;\n\t\tlet expandedLastChanged = lastChanged;\n\t\tconst expandForLines = (lines: string[]): void => {\n\t\t\tfor (let i = 0; i < lines.length; i++) {\n\t\t\t\tif (extractKittyImageIds(lines[i]).length === 0) continue;\n\t\t\t\tconst blockEnd = i + this.getKittyImageReservedRows(lines, i) - 1;\n\t\t\t\tif (i >= firstChanged || (i <= lastChanged && blockEnd >= firstChanged)) {\n\t\t\t\t\texpandedFirstChanged = Math.min(expandedFirstChanged, i);\n\t\t\t\t\texpandedLastChanged = Math.max(expandedLastChanged, blockEnd);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\texpandForLines(this.previousLines);\n\t\texpandForLines(newLines);\n\t\treturn { firstChanged: expandedFirstChanged, lastChanged: expandedLastChanged };\n\t}\n\n\tprivate deleteChangedKittyImages(firstChanged: number, lastChanged: number): string {\n\t\tif (firstChanged < 0 || lastChanged < firstChanged) return \"\";\n\n\t\tconst ids = new Set<number>();\n\t\tconst maxLine = Math.min(lastChanged, this.previousLines.length - 1);\n\t\tfor (let i = firstChanged; i <= maxLine; i++) {\n\t\t\tfor (const id of extractKittyImageIds(this.previousLines[i] ?? \"\")) {\n\t\t\t\tids.add(id);\n\t\t\t}\n\t\t}\n\n\t\treturn this.deleteKittyImages(ids);\n\t}\n\n\tprotected doRender(): void {\n\t\tif (this.stopped) return;\n\t\tconst width = this.terminal.columns;\n\t\tconst height = this.terminal.rows;\n\t\tconst widthChanged = this.previousWidth !== 0 && this.previousWidth !== width;\n\t\tconst heightChanged = this.previousHeight !== 0 && this.previousHeight !== height;\n\t\tconst previousBufferLength = this.previousHeight > 0 ? this.previousViewportTop + this.previousHeight : height;\n\t\tlet prevViewportTop = heightChanged ? Math.max(0, previousBufferLength - height) : this.previousViewportTop;\n\t\tlet viewportTop = prevViewportTop;\n\t\tlet hardwareCursorRow = this.hardwareCursorRow;\n\t\tconst computeLineDiff = (targetRow: number): number => {\n\t\t\tconst currentScreenRow = hardwareCursorRow - prevViewportTop;\n\t\t\tconst targetScreenRow = targetRow - viewportTop;\n\t\t\treturn targetScreenRow - currentScreenRow;\n\t\t};\n\n\t\t// Render all components to get new lines\n\t\tlet newLines = this.render(width);\n\n\t\t// Composite overlays into the rendered lines (before differential compare)\n\t\tif (this.hasOverlayEntries) {\n\t\t\tnewLines = this.compositeOverlays(newLines, width, height);\n\t\t}\n\n\t\t// Extract cursor position before applying line resets (marker must be found first)\n\t\tconst cursorPos = this.extractCursorPosition(newLines, height);\n\n\t\tnewLines = this.applyLineResets(newLines);\n\n\t\t// Helper to clear scrollback and viewport and render all new lines\n\t\tconst fullRender = (clear: boolean): void => {\n\t\t\tthis.fullRedrawCount += 1;\n\t\t\tconst output = new BoundedTerminalWriter((data) => this.terminal.write(data));\n\t\t\toutput.append(\"\\x1b[?2026h\"); // Begin synchronized output\n\t\t\tif (clear) {\n\t\t\t\toutput.append(this.deleteKittyImages(this.previousKittyImageIds));\n\t\t\t\toutput.append(\"\\x1b[2J\\x1b[H\\x1b[3J\"); // Clear screen, home, then clear scrollback\n\t\t\t}\n\t\t\tfor (let i = 0; i < newLines.length; i++) {\n\t\t\t\tif (i > 0) output.append(\"\\r\\n\");\n\t\t\t\tconst line = newLines[i];\n\t\t\t\tconst isImage = isImageLine(line);\n\t\t\t\tconst imageReservedRows = isImage ? this.getKittyImageReservedRows(newLines, i) : 1;\n\t\t\t\tif (imageReservedRows > 1 && imageReservedRows <= height) {\n\t\t\t\t\tfor (let row = 1; row < imageReservedRows; row++) {\n\t\t\t\t\t\toutput.append(\"\\r\\n\");\n\t\t\t\t\t}\n\t\t\t\t\toutput.append(`\\x1b[${imageReservedRows - 1}A`);\n\t\t\t\t\toutput.append(line);\n\t\t\t\t\toutput.append(`\\x1b[${imageReservedRows - 1}B`);\n\t\t\t\t\ti += imageReservedRows - 1;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\toutput.append(line);\n\t\t\t}\n\t\t\toutput.append(\"\\x1b[?2026l\"); // End synchronized output\n\t\t\toutput.flush();\n\t\t\tthis.cursorRow = Math.max(0, newLines.length - 1);\n\t\t\tthis.hardwareCursorRow = this.cursorRow;\n\t\t\t// Reset max lines when clearing, otherwise track growth\n\t\t\tif (clear) {\n\t\t\t\tthis.maxLinesRendered = newLines.length;\n\t\t\t} else {\n\t\t\t\tthis.maxLinesRendered = Math.max(this.maxLinesRendered, newLines.length);\n\t\t\t}\n\t\t\tconst bufferLength = Math.max(height, newLines.length);\n\t\t\tthis.previousViewportTop = Math.max(0, bufferLength - height);\n\t\t\tthis.positionHardwareCursor(cursorPos, newLines.length);\n\t\t\tthis.previousLines = newLines;\n\t\t\tthis.previousKittyImageIds = this.collectKittyImageIds(newLines);\n\t\t\tthis.previousWidth = width;\n\t\t\tthis.previousHeight = height;\n\t\t};\n\n\t\tconst redrawLogDirectory = process.env.PI_TUI_DEBUG_REDRAW === \"1\" ? this.logDirectory : undefined;\n\t\tconst logRedraw = (reason: string): void => {\n\t\t\tif (redrawLogDirectory === undefined) return;\n\t\t\tconst logPath = path.join(redrawLogDirectory, \"pi-tui-debug.log\");\n\t\t\tconst msg = `[${new Date().toISOString()}] fullRender: ${reason} (prev=${this.previousLines.length}, new=${newLines.length}, height=${height})\\n`;\n\t\t\tfs.mkdirSync(path.dirname(logPath), { recursive: true });\n\t\t\tfs.appendFileSync(logPath, msg);\n\t\t};\n\n\t\t// First render - just output everything without clearing (assumes clean screen)\n\t\tif (this.previousLines.length === 0 && !widthChanged && !heightChanged) {\n\t\t\tlogRedraw(\"first render\");\n\t\t\tfullRender(false);\n\t\t\treturn;\n\t\t}\n\n\t\t// Width changes always need a full re-render because wrapping changes.\n\t\tif (widthChanged) {\n\t\t\tlogRedraw(`terminal width changed (${this.previousWidth} -> ${width})`);\n\t\t\tfullRender(true);\n\t\t\treturn;\n\t\t}\n\n\t\t// Height changes normally need a full re-render to keep the visible viewport aligned,\n\t\t// but Termux changes height when the software keyboard shows or hides.\n\t\t// In that environment, a full redraw causes the entire history to replay on every toggle.\n\t\tif (heightChanged && !isTermuxSession()) {\n\t\t\tlogRedraw(`terminal height changed (${this.previousHeight} -> ${height})`);\n\t\t\tfullRender(true);\n\t\t\treturn;\n\t\t}\n\n\t\t// Content shrunk below the working area and no overlays - re-render to clear empty rows\n\t\t// (overlays need the padding, so only do this when no overlays are active)\n\t\t// Configurable via setClearOnShrink()\n\t\tif (this.getClearOnShrink() && newLines.length < this.maxLinesRendered && !this.hasOverlayEntries) {\n\t\t\tlogRedraw(`clearOnShrink (maxLinesRendered=${this.maxLinesRendered})`);\n\t\t\tfullRender(true);\n\t\t\treturn;\n\t\t}\n\n\t\t// Find first and last changed lines\n\t\tlet firstChanged = -1;\n\t\tlet lastChanged = -1;\n\t\tconst maxLines = Math.max(newLines.length, this.previousLines.length);\n\t\tfor (let i = 0; i < maxLines; i++) {\n\t\t\tconst oldLine = i < this.previousLines.length ? this.previousLines[i] : \"\";\n\t\t\tconst newLine = i < newLines.length ? newLines[i] : \"\";\n\n\t\t\tif (oldLine !== newLine) {\n\t\t\t\tif (firstChanged === -1) {\n\t\t\t\t\tfirstChanged = i;\n\t\t\t\t}\n\t\t\t\tlastChanged = i;\n\t\t\t}\n\t\t}\n\t\tconst appendedLines = newLines.length > this.previousLines.length;\n\t\tif (appendedLines) {\n\t\t\tif (firstChanged === -1) {\n\t\t\t\tfirstChanged = this.previousLines.length;\n\t\t\t}\n\t\t\tlastChanged = newLines.length - 1;\n\t\t}\n\t\tif (firstChanged !== -1) {\n\t\t\tconst expandedRange = this.expandChangedRangeForKittyImages(firstChanged, lastChanged, newLines);\n\t\t\tfirstChanged = expandedRange.firstChanged;\n\t\t\tlastChanged = expandedRange.lastChanged;\n\t\t}\n\t\tconst appendStart = appendedLines && firstChanged === this.previousLines.length && firstChanged > 0;\n\n\t\t// No changes - but still need to update hardware cursor position if it moved\n\t\tif (firstChanged === -1) {\n\t\t\tthis.positionHardwareCursor(cursorPos, newLines.length);\n\t\t\tthis.previousViewportTop = prevViewportTop;\n\t\t\tthis.previousHeight = height;\n\t\t\treturn;\n\t\t}\n\n\t\t// All changes are in deleted lines (nothing to render, just clear)\n\t\tif (firstChanged >= newLines.length) {\n\t\t\tif (this.previousLines.length > newLines.length) {\n\t\t\t\tconst output = new BoundedTerminalWriter((data) => this.terminal.write(data));\n\t\t\t\toutput.append(\"\\x1b[?2026h\");\n\t\t\t\toutput.append(this.deleteChangedKittyImages(firstChanged, lastChanged));\n\t\t\t\t// Move to end of new content (clamp to 0 for empty content)\n\t\t\t\tconst targetRow = Math.max(0, newLines.length - 1);\n\t\t\t\tif (targetRow < prevViewportTop) {\n\t\t\t\t\tlogRedraw(`deleted lines moved viewport up (${targetRow} < ${prevViewportTop})`);\n\t\t\t\t\tfullRender(true);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst lineDiff = computeLineDiff(targetRow);\n\t\t\t\tif (lineDiff > 0) output.append(`\\x1b[${lineDiff}B`);\n\t\t\t\telse if (lineDiff < 0) output.append(`\\x1b[${-lineDiff}A`);\n\t\t\t\toutput.append(\"\\r\");\n\t\t\t\t// Clear extra lines without scrolling\n\t\t\t\tconst extraLines = this.previousLines.length - newLines.length;\n\t\t\t\tif (extraLines > height) {\n\t\t\t\t\tlogRedraw(`extraLines > height (${extraLines} > ${height})`);\n\t\t\t\t\tfullRender(true);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst clearStartOffset = newLines.length === 0 ? 0 : 1;\n\t\t\t\tif (extraLines > 0 && clearStartOffset > 0) {\n\t\t\t\t\toutput.append(`\\x1b[${clearStartOffset}B`);\n\t\t\t\t}\n\t\t\t\tfor (let i = 0; i < extraLines; i++) {\n\t\t\t\t\toutput.append(\"\\r\\x1b[2K\");\n\t\t\t\t\tif (i < extraLines - 1) output.append(\"\\x1b[1B\");\n\t\t\t\t}\n\t\t\t\tconst moveBack = Math.max(0, extraLines - 1 + clearStartOffset);\n\t\t\t\tif (moveBack > 0) {\n\t\t\t\t\toutput.append(`\\x1b[${moveBack}A`);\n\t\t\t\t}\n\t\t\t\toutput.append(\"\\x1b[?2026l\");\n\t\t\t\toutput.flush();\n\t\t\t\tthis.cursorRow = targetRow;\n\t\t\t\tthis.hardwareCursorRow = targetRow;\n\t\t\t}\n\t\t\tthis.positionHardwareCursor(cursorPos, newLines.length);\n\t\t\tthis.previousLines = newLines;\n\t\t\tthis.previousKittyImageIds = this.collectKittyImageIds(newLines);\n\t\t\tthis.previousWidth = width;\n\t\t\tthis.previousHeight = height;\n\t\t\tthis.previousViewportTop = prevViewportTop;\n\t\t\treturn;\n\t\t}\n\n\t\t// Differential rendering can only touch what was actually visible.\n\t\t// If the first changed line is above the previous viewport, we need a full redraw.\n\t\tif (firstChanged < prevViewportTop) {\n\t\t\tlogRedraw(`firstChanged < viewportTop (${firstChanged} < ${prevViewportTop})`);\n\t\t\tfullRender(true);\n\t\t\treturn;\n\t\t}\n\n\t\t// Render from first changed line to end\n\t\t// Keep updates wrapped in synchronized output while writing bounded chunks.\n\t\tconst output = new BoundedTerminalWriter((data) => this.terminal.write(data));\n\t\toutput.append(\"\\x1b[?2026h\"); // Begin synchronized output\n\t\toutput.append(this.deleteChangedKittyImages(firstChanged, lastChanged));\n\t\tconst prevViewportBottom = prevViewportTop + height - 1;\n\t\tconst moveTargetRow = appendStart ? firstChanged - 1 : firstChanged;\n\t\tif (moveTargetRow > prevViewportBottom) {\n\t\t\tconst currentScreenRow = Math.max(0, Math.min(height - 1, hardwareCursorRow - prevViewportTop));\n\t\t\tconst moveToBottom = height - 1 - currentScreenRow;\n\t\t\tif (moveToBottom > 0) {\n\t\t\t\toutput.append(`\\x1b[${moveToBottom}B`);\n\t\t\t}\n\t\t\tconst scroll = moveTargetRow - prevViewportBottom;\n\t\t\toutput.append(\"\\r\\n\".repeat(scroll));\n\t\t\tprevViewportTop += scroll;\n\t\t\tviewportTop += scroll;\n\t\t\thardwareCursorRow = moveTargetRow;\n\t\t}\n\n\t\t// Move cursor to first changed line (use hardwareCursorRow for actual position)\n\t\tconst lineDiff = computeLineDiff(moveTargetRow);\n\t\tif (lineDiff > 0) {\n\t\t\toutput.append(`\\x1b[${lineDiff}B`); // Move down\n\t\t} else if (lineDiff < 0) {\n\t\t\toutput.append(`\\x1b[${-lineDiff}A`); // Move up\n\t\t}\n\n\t\toutput.append(appendStart ? \"\\r\\n\" : \"\\r\"); // Move to column 0\n\n\t\t// Only render changed lines (firstChanged to lastChanged), not all lines to end\n\t\t// This reduces flicker when only a single line changes (e.g., spinner animation)\n\t\tconst renderEnd = Math.min(lastChanged, newLines.length - 1);\n\t\tfor (let i = firstChanged; i <= renderEnd; i++) {\n\t\t\tif (i > firstChanged) output.append(\"\\r\\n\");\n\t\t\tconst line = newLines[i];\n\t\t\tconst isImage = isImageLine(line);\n\t\t\tconst imageReservedRows = isImage ? this.getKittyImageReservedRows(newLines, i, renderEnd) : 1;\n\t\t\tif (imageReservedRows > 1) {\n\t\t\t\tconst imageStartScreenRow = i - viewportTop;\n\t\t\t\tif (imageStartScreenRow < 0 || imageStartScreenRow + imageReservedRows > height) {\n\t\t\t\t\tlogRedraw(\n\t\t\t\t\t\t`kitty image pre-clear would scroll (${imageStartScreenRow} + ${imageReservedRows} > ${height})`,\n\t\t\t\t\t);\n\t\t\t\t\tfullRender(true);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\toutput.append(\"\\x1b[2K\");\n\t\t\t\tfor (let row = 1; row < imageReservedRows; row++) {\n\t\t\t\t\toutput.append(\"\\r\\n\\x1b[2K\");\n\t\t\t\t}\n\t\t\t\toutput.append(`\\x1b[${imageReservedRows - 1}A`);\n\t\t\t\toutput.append(line);\n\t\t\t\toutput.append(`\\x1b[${imageReservedRows - 1}B`);\n\t\t\t\ti += imageReservedRows - 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\toutput.append(\"\\x1b[2K\"); // Clear current line\n\t\t\tif (!isImage && visibleWidth(line) > width) {\n\t\t\t\t// Log all lines to crash file for debugging\n\t\t\t\tconst crashLogPath = path.join(this.logDirectory ?? os.tmpdir(), \"pi-tui-crash.log\");\n\t\t\t\tconst crashData = [\n\t\t\t\t\t`Crash at ${new Date().toISOString()}`,\n\t\t\t\t\t`Terminal width: ${width}`,\n\t\t\t\t\t`Line ${i} visible width: ${visibleWidth(line)}`,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"=== All rendered lines ===\",\n\t\t\t\t\t...newLines.map((l, idx) => `[${idx}] (w=${visibleWidth(l)}) ${l}`),\n\t\t\t\t\t\"\",\n\t\t\t\t].join(\"\\n\");\n\t\t\t\tfs.mkdirSync(path.dirname(crashLogPath), { recursive: true });\n\t\t\t\tfs.writeFileSync(crashLogPath, crashData);\n\n\t\t\t\t// Clean up terminal state before throwing\n\t\t\t\tthis.stop();\n\n\t\t\t\tconst errorMsg = [\n\t\t\t\t\t`Rendered line ${i} exceeds terminal width (${visibleWidth(line)} > ${width}).`,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"This is likely caused by a custom TUI component not truncating its output.\",\n\t\t\t\t\t\"Use visibleWidth() to measure and truncateToWidth() to truncate lines.\",\n\t\t\t\t\t\"\",\n\t\t\t\t\t`Debug log written to: ${crashLogPath}`,\n\t\t\t\t].join(\"\\n\");\n\t\t\t\tthrow new Error(errorMsg);\n\t\t\t}\n\t\t\toutput.append(line);\n\t\t}\n\n\t\t// Track where cursor ended up after rendering\n\t\tlet finalCursorRow = renderEnd;\n\n\t\t// If we had more lines before, clear them and move cursor back\n\t\tif (this.previousLines.length > newLines.length) {\n\t\t\t// Move to end of new content first if we stopped before it\n\t\t\tif (renderEnd < newLines.length - 1) {\n\t\t\t\tconst moveDown = newLines.length - 1 - renderEnd;\n\t\t\t\toutput.append(`\\x1b[${moveDown}B`);\n\t\t\t\tfinalCursorRow = newLines.length - 1;\n\t\t\t}\n\t\t\tconst extraLines = this.previousLines.length - newLines.length;\n\t\t\tfor (let i = newLines.length; i < this.previousLines.length; i++) {\n\t\t\t\toutput.append(\"\\r\\n\\x1b[2K\");\n\t\t\t}\n\t\t\t// Move cursor back to end of new content\n\t\t\toutput.append(`\\x1b[${extraLines}A`);\n\t\t}\n\n\t\toutput.append(\"\\x1b[?2026l\"); // End synchronized output\n\n\t\tif (process.env.PI_TUI_DEBUG === \"1\") {\n\t\t\t// os.tmpdir(), not \"/tmp\": on Windows a literal /tmp lands on the root\n\t\t\t// of the current drive, far away from where anyone looks for logs.\n\t\t\tconst debugDir = path.join(os.tmpdir(), \"tui\");\n\t\t\tfs.mkdirSync(debugDir, { recursive: true });\n\t\t\tconst debugPath = path.join(debugDir, `render-${Date.now()}-${Math.random().toString(36).slice(2)}.log`);\n\t\t\tconst debugData = [\n\t\t\t\t`firstChanged: ${firstChanged}`,\n\t\t\t\t`viewportTop: ${viewportTop}`,\n\t\t\t\t`cursorRow: ${this.cursorRow}`,\n\t\t\t\t`height: ${height}`,\n\t\t\t\t`lineDiff: ${lineDiff}`,\n\t\t\t\t`hardwareCursorRow: ${hardwareCursorRow}`,\n\t\t\t\t`renderEnd: ${renderEnd}`,\n\t\t\t\t`finalCursorRow: ${finalCursorRow}`,\n\t\t\t\t`cursorPos: ${JSON.stringify(cursorPos)}`,\n\t\t\t\t`newLines.length: ${newLines.length}`,\n\t\t\t\t`previousLines.length: ${this.previousLines.length}`,\n\t\t\t\t\"\",\n\t\t\t\t\"=== newLines ===\",\n\t\t\t\tJSON.stringify(newLines, null, 2),\n\t\t\t\t\"\",\n\t\t\t\t\"=== previousLines ===\",\n\t\t\t\tJSON.stringify(this.previousLines, null, 2),\n\t\t\t\t\"\",\n\t\t\t\t\"=== buffer ===\",\n\t\t\t\t`[${output.length} chars written in bounded chunks]`,\n\t\t\t].join(\"\\n\");\n\t\t\tfs.writeFileSync(debugPath, debugData);\n\t\t}\n\n\t\toutput.flush();\n\n\t\t// Track cursor position for next render\n\t\t// cursorRow tracks end of content (for viewport calculation)\n\t\t// hardwareCursorRow tracks actual terminal cursor position (for movement)\n\t\tthis.cursorRow = Math.max(0, newLines.length - 1);\n\t\tthis.hardwareCursorRow = finalCursorRow;\n\t\t// Track terminal's working area (grows but doesn't shrink unless cleared)\n\t\tthis.maxLinesRendered = Math.max(this.maxLinesRendered, newLines.length);\n\t\tthis.previousViewportTop = Math.max(prevViewportTop, finalCursorRow - height + 1);\n\n\t\t// Position hardware cursor for IME\n\t\tthis.positionHardwareCursor(cursorPos, newLines.length);\n\n\t\tthis.previousLines = newLines;\n\t\tthis.previousKittyImageIds = this.collectKittyImageIds(newLines);\n\t\tthis.previousWidth = width;\n\t\tthis.previousHeight = height;\n\t}\n\n\t/**\n\t * Position the hardware cursor for IME candidate window.\n\t * @param cursorPos The cursor position extracted from rendered output, or null\n\t * @param totalLines Total number of rendered lines\n\t */\n\tprivate positionHardwareCursor(cursorPos: { row: number; col: number } | null, totalLines: number): void {\n\t\tif (!cursorPos || totalLines <= 0) {\n\t\t\tthis.terminal.hideCursor();\n\t\t\treturn;\n\t\t}\n\n\t\t// Clamp cursor position to valid range\n\t\tconst targetRow = Math.max(0, Math.min(cursorPos.row, totalLines - 1));\n\t\tconst targetCol = Math.max(0, cursorPos.col);\n\n\t\t// Move cursor from current position to target\n\t\tconst rowDelta = targetRow - this.hardwareCursorRow;\n\t\tlet buffer = \"\";\n\t\tif (rowDelta > 0) {\n\t\t\tbuffer += `\\x1b[${rowDelta}B`; // Move down\n\t\t} else if (rowDelta < 0) {\n\t\t\tbuffer += `\\x1b[${-rowDelta}A`; // Move up\n\t\t}\n\t\t// Move to absolute column (1-indexed)\n\t\tbuffer += `\\x1b[${targetCol + 1}G`;\n\n\t\tif (buffer) {\n\t\t\tthis.terminal.write(buffer);\n\t\t}\n\n\t\tthis.hardwareCursorRow = targetRow;\n\t\tif (this.getShowHardwareCursor()) {\n\t\t\tthis.terminal.showCursor();\n\t\t} else {\n\t\t\tthis.terminal.hideCursor();\n\t\t}\n\t}\n}\n"]}