dal-code 1.0.14 → 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 (2943) hide show
  1. package/CHANGELOG.md +39 -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 -134
  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 -614
  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 -811
  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 -8
  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 -86
  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 -101
  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 -480
  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 -277
  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/index.ts +0 -420
  1507. package/dist/node_modules/@dalcode/deepailab/src/model-defaults.ts +0 -276
  1508. package/dist/node_modules/@dalcode/deepailab/src/oidc.ts +0 -507
  1509. package/dist/node_modules/@earendil-works/chord/dist/api.d.ts +0 -15
  1510. package/dist/node_modules/@earendil-works/chord/dist/api.d.ts.map +0 -1
  1511. package/dist/node_modules/@earendil-works/chord/dist/api.js.map +0 -1
  1512. package/dist/node_modules/@earendil-works/chord/dist/bundler.d.ts +0 -6
  1513. package/dist/node_modules/@earendil-works/chord/dist/bundler.d.ts.map +0 -1
  1514. package/dist/node_modules/@earendil-works/chord/dist/bundler.js.map +0 -1
  1515. package/dist/node_modules/@earendil-works/chord/dist/context/index.d.ts +0 -24
  1516. package/dist/node_modules/@earendil-works/chord/dist/context/index.d.ts.map +0 -1
  1517. package/dist/node_modules/@earendil-works/chord/dist/context/index.js.map +0 -1
  1518. package/dist/node_modules/@earendil-works/chord/dist/delta/index.d.ts +0 -119
  1519. package/dist/node_modules/@earendil-works/chord/dist/delta/index.d.ts.map +0 -1
  1520. package/dist/node_modules/@earendil-works/chord/dist/delta/index.js.map +0 -1
  1521. package/dist/node_modules/@earendil-works/chord/dist/facets/host.d.ts +0 -12
  1522. package/dist/node_modules/@earendil-works/chord/dist/facets/host.d.ts.map +0 -1
  1523. package/dist/node_modules/@earendil-works/chord/dist/facets/host.js.map +0 -1
  1524. package/dist/node_modules/@earendil-works/chord/dist/facets/loader.d.ts +0 -3
  1525. package/dist/node_modules/@earendil-works/chord/dist/facets/loader.d.ts.map +0 -1
  1526. package/dist/node_modules/@earendil-works/chord/dist/facets/loader.js.map +0 -1
  1527. package/dist/node_modules/@earendil-works/chord/dist/index.d.ts +0 -11
  1528. package/dist/node_modules/@earendil-works/chord/dist/index.d.ts.map +0 -1
  1529. package/dist/node_modules/@earendil-works/chord/dist/index.js.map +0 -1
  1530. package/dist/node_modules/@earendil-works/chord/dist/json.d.ts +0 -4
  1531. package/dist/node_modules/@earendil-works/chord/dist/json.d.ts.map +0 -1
  1532. package/dist/node_modules/@earendil-works/chord/dist/json.js.map +0 -1
  1533. package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.d.ts +0 -30
  1534. package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.d.ts.map +0 -1
  1535. package/dist/node_modules/@earendil-works/chord/dist/node/bundle-loader.js.map +0 -1
  1536. package/dist/node_modules/@earendil-works/chord/dist/node/bundle.d.ts +0 -26
  1537. package/dist/node_modules/@earendil-works/chord/dist/node/bundle.d.ts.map +0 -1
  1538. package/dist/node_modules/@earendil-works/chord/dist/node/bundle.js.map +0 -1
  1539. package/dist/node_modules/@earendil-works/chord/dist/node/manifest.d.ts +0 -36
  1540. package/dist/node_modules/@earendil-works/chord/dist/node/manifest.d.ts.map +0 -1
  1541. package/dist/node_modules/@earendil-works/chord/dist/node/manifest.js.map +0 -1
  1542. package/dist/node_modules/@earendil-works/chord/dist/node/package.d.ts +0 -15
  1543. package/dist/node_modules/@earendil-works/chord/dist/node/package.d.ts.map +0 -1
  1544. package/dist/node_modules/@earendil-works/chord/dist/node/package.js.map +0 -1
  1545. package/dist/node_modules/@earendil-works/chord/dist/node.d.ts +0 -5
  1546. package/dist/node_modules/@earendil-works/chord/dist/node.d.ts.map +0 -1
  1547. package/dist/node_modules/@earendil-works/chord/dist/node.js.map +0 -1
  1548. package/dist/node_modules/@earendil-works/chord/dist/services/consumer.d.ts +0 -11
  1549. package/dist/node_modules/@earendil-works/chord/dist/services/consumer.d.ts.map +0 -1
  1550. package/dist/node_modules/@earendil-works/chord/dist/services/consumer.js.map +0 -1
  1551. package/dist/node_modules/@earendil-works/chord/dist/services/errors.d.ts +0 -8
  1552. package/dist/node_modules/@earendil-works/chord/dist/services/errors.d.ts.map +0 -1
  1553. package/dist/node_modules/@earendil-works/chord/dist/services/errors.js.map +0 -1
  1554. package/dist/node_modules/@earendil-works/chord/dist/services/handle.d.ts +0 -15
  1555. package/dist/node_modules/@earendil-works/chord/dist/services/handle.d.ts.map +0 -1
  1556. package/dist/node_modules/@earendil-works/chord/dist/services/handle.js.map +0 -1
  1557. package/dist/node_modules/@earendil-works/chord/dist/services/instances.d.ts +0 -25
  1558. package/dist/node_modules/@earendil-works/chord/dist/services/instances.d.ts.map +0 -1
  1559. package/dist/node_modules/@earendil-works/chord/dist/services/instances.js.map +0 -1
  1560. package/dist/node_modules/@earendil-works/chord/dist/services/loopback.d.ts +0 -5
  1561. package/dist/node_modules/@earendil-works/chord/dist/services/loopback.d.ts.map +0 -1
  1562. package/dist/node_modules/@earendil-works/chord/dist/services/loopback.js.map +0 -1
  1563. package/dist/node_modules/@earendil-works/chord/dist/services/provider.d.ts +0 -37
  1564. package/dist/node_modules/@earendil-works/chord/dist/services/provider.d.ts.map +0 -1
  1565. package/dist/node_modules/@earendil-works/chord/dist/services/provider.js.map +0 -1
  1566. package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.d.ts +0 -15
  1567. package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.d.ts.map +0 -1
  1568. package/dist/node_modules/@earendil-works/chord/dist/services/state-codec.js.map +0 -1
  1569. package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.d.ts +0 -11
  1570. package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.d.ts.map +0 -1
  1571. package/dist/node_modules/@earendil-works/chord/dist/services/state-internals.js.map +0 -1
  1572. package/dist/node_modules/@earendil-works/chord/dist/services/state.d.ts +0 -23
  1573. package/dist/node_modules/@earendil-works/chord/dist/services/state.d.ts.map +0 -1
  1574. package/dist/node_modules/@earendil-works/chord/dist/services/state.js.map +0 -1
  1575. package/dist/node_modules/@earendil-works/chord/dist/services/wire.d.ts +0 -60
  1576. package/dist/node_modules/@earendil-works/chord/dist/services/wire.d.ts.map +0 -1
  1577. package/dist/node_modules/@earendil-works/chord/dist/services/wire.js.map +0 -1
  1578. package/dist/node_modules/@earendil-works/chord/dist/types.d.ts +0 -203
  1579. package/dist/node_modules/@earendil-works/chord/dist/types.d.ts.map +0 -1
  1580. package/dist/node_modules/@earendil-works/chord/dist/types.js.map +0 -1
  1581. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts +0 -24
  1582. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +0 -1
  1583. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +0 -1
  1584. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +0 -122
  1585. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +0 -1
  1586. package/dist/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +0 -1
  1587. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts +0 -716
  1588. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts.map +0 -1
  1589. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js.map +0 -1
  1590. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts +0 -68
  1591. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +0 -1
  1592. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js.map +0 -1
  1593. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +0 -126
  1594. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +0 -1
  1595. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +0 -1
  1596. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts +0 -25
  1597. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts.map +0 -1
  1598. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js.map +0 -1
  1599. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts +0 -9
  1600. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts.map +0 -1
  1601. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js.map +0 -1
  1602. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts +0 -9
  1603. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts.map +0 -1
  1604. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js.map +0 -1
  1605. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts +0 -42
  1606. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts.map +0 -1
  1607. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js.map +0 -1
  1608. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts +0 -25
  1609. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts.map +0 -1
  1610. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js.map +0 -1
  1611. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts +0 -42
  1612. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts.map +0 -1
  1613. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js.map +0 -1
  1614. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts +0 -22
  1615. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts.map +0 -1
  1616. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js.map +0 -1
  1617. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts +0 -67
  1618. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts.map +0 -1
  1619. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js.map +0 -1
  1620. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts +0 -38
  1621. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts.map +0 -1
  1622. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js.map +0 -1
  1623. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +0 -51
  1624. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +0 -1
  1625. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +0 -1
  1626. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts +0 -49
  1627. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts.map +0 -1
  1628. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js.map +0 -1
  1629. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts +0 -100
  1630. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts.map +0 -1
  1631. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js +0 -415
  1632. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js.map +0 -1
  1633. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts +0 -133
  1634. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts.map +0 -1
  1635. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js.map +0 -1
  1636. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts +0 -28
  1637. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts.map +0 -1
  1638. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js.map +0 -1
  1639. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts +0 -8
  1640. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts.map +0 -1
  1641. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js.map +0 -1
  1642. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts +0 -15
  1643. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts.map +0 -1
  1644. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js.map +0 -1
  1645. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts +0 -8
  1646. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts.map +0 -1
  1647. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js.map +0 -1
  1648. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts +0 -5
  1649. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts.map +0 -1
  1650. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js.map +0 -1
  1651. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts +0 -8
  1652. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts.map +0 -1
  1653. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js.map +0 -1
  1654. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts +0 -23
  1655. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts.map +0 -1
  1656. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js.map +0 -1
  1657. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts +0 -4
  1658. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts.map +0 -1
  1659. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js.map +0 -1
  1660. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts +0 -32
  1661. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts.map +0 -1
  1662. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js.map +0 -1
  1663. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts +0 -7
  1664. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts.map +0 -1
  1665. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js.map +0 -1
  1666. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts +0 -14
  1667. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts.map +0 -1
  1668. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js.map +0 -1
  1669. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts +0 -6
  1670. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts.map +0 -1
  1671. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js.map +0 -1
  1672. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts +0 -6
  1673. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts.map +0 -1
  1674. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js.map +0 -1
  1675. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts +0 -59
  1676. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts.map +0 -1
  1677. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js.map +0 -1
  1678. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts +0 -2
  1679. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts.map +0 -1
  1680. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js.map +0 -1
  1681. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts +0 -101
  1682. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts.map +0 -1
  1683. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js.map +0 -1
  1684. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts +0 -15
  1685. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts.map +0 -1
  1686. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js.map +0 -1
  1687. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts +0 -5
  1688. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts.map +0 -1
  1689. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js.map +0 -1
  1690. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts +0 -24
  1691. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts.map +0 -1
  1692. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js.map +0 -1
  1693. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts +0 -21
  1694. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts.map +0 -1
  1695. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js.map +0 -1
  1696. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts +0 -105
  1697. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts.map +0 -1
  1698. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js.map +0 -1
  1699. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts +0 -53
  1700. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts.map +0 -1
  1701. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js.map +0 -1
  1702. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts +0 -10
  1703. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts.map +0 -1
  1704. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js.map +0 -1
  1705. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts +0 -13
  1706. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts.map +0 -1
  1707. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js.map +0 -1
  1708. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts +0 -18
  1709. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts.map +0 -1
  1710. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js.map +0 -1
  1711. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts +0 -39
  1712. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts.map +0 -1
  1713. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js.map +0 -1
  1714. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts +0 -11
  1715. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts.map +0 -1
  1716. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js.map +0 -1
  1717. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts +0 -21
  1718. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts.map +0 -1
  1719. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js.map +0 -1
  1720. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts +0 -9
  1721. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts.map +0 -1
  1722. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js +0 -19
  1723. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js.map +0 -1
  1724. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts +0 -4
  1725. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts.map +0 -1
  1726. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js.map +0 -1
  1727. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts +0 -18
  1728. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts.map +0 -1
  1729. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js.map +0 -1
  1730. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts +0 -34
  1731. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts.map +0 -1
  1732. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js.map +0 -1
  1733. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts +0 -41
  1734. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts.map +0 -1
  1735. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js.map +0 -1
  1736. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts +0 -39
  1737. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts.map +0 -1
  1738. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js.map +0 -1
  1739. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts +0 -26
  1740. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts.map +0 -1
  1741. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +0 -103
  1742. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js.map +0 -1
  1743. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts +0 -42
  1744. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts.map +0 -1
  1745. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +0 -293
  1746. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js.map +0 -1
  1747. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts +0 -3
  1748. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts.map +0 -1
  1749. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js +0 -2
  1750. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js.map +0 -1
  1751. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts +0 -18
  1752. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts.map +0 -1
  1753. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js +0 -42
  1754. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js.map +0 -1
  1755. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts +0 -33
  1756. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts.map +0 -1
  1757. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +0 -168
  1758. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js.map +0 -1
  1759. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts +0 -50
  1760. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts.map +0 -1
  1761. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js.map +0 -1
  1762. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts +0 -8
  1763. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts.map +0 -1
  1764. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js.map +0 -1
  1765. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts +0 -11
  1766. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts.map +0 -1
  1767. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js +0 -39
  1768. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js.map +0 -1
  1769. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts +0 -82
  1770. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts.map +0 -1
  1771. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js.map +0 -1
  1772. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts +0 -65
  1773. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts.map +0 -1
  1774. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js +0 -319
  1775. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js.map +0 -1
  1776. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts +0 -12
  1777. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts.map +0 -1
  1778. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js.map +0 -1
  1779. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts +0 -42
  1780. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts.map +0 -1
  1781. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js.map +0 -1
  1782. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts +0 -25
  1783. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts.map +0 -1
  1784. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js.map +0 -1
  1785. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts +0 -21
  1786. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts.map +0 -1
  1787. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js.map +0 -1
  1788. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts +0 -4
  1789. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts.map +0 -1
  1790. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js.map +0 -1
  1791. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts +0 -4
  1792. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts.map +0 -1
  1793. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js +0 -762
  1794. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js.map +0 -1
  1795. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts +0 -26
  1796. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts.map +0 -1
  1797. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js.map +0 -1
  1798. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts +0 -10
  1799. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts.map +0 -1
  1800. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js.map +0 -1
  1801. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts +0 -11
  1802. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts.map +0 -1
  1803. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js.map +0 -1
  1804. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts +0 -20
  1805. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts.map +0 -1
  1806. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js.map +0 -1
  1807. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts +0 -12
  1808. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts.map +0 -1
  1809. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.js.map +0 -1
  1810. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts +0 -511
  1811. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts.map +0 -1
  1812. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js.map +0 -1
  1813. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts +0 -95
  1814. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts.map +0 -1
  1815. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js.map +0 -1
  1816. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts +0 -46
  1817. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts.map +0 -1
  1818. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js.map +0 -1
  1819. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts +0 -3
  1820. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts.map +0 -1
  1821. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js.map +0 -1
  1822. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts +0 -1242
  1823. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts.map +0 -1
  1824. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js.map +0 -1
  1825. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts +0 -27
  1826. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts.map +0 -1
  1827. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js.map +0 -1
  1828. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.d.ts +0 -89
  1829. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.d.ts.map +0 -1
  1830. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.js.map +0 -1
  1831. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts +0 -19
  1832. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts.map +0 -1
  1833. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js.map +0 -1
  1834. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts +0 -5
  1835. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts.map +0 -1
  1836. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js.map +0 -1
  1837. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.d.ts +0 -3
  1838. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.d.ts.map +0 -1
  1839. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.js.map +0 -1
  1840. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.d.ts +0 -6
  1841. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.d.ts.map +0 -1
  1842. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.js.map +0 -1
  1843. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts +0 -5
  1844. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts.map +0 -1
  1845. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js.map +0 -1
  1846. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts +0 -35
  1847. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts.map +0 -1
  1848. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js.map +0 -1
  1849. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.d.ts +0 -6
  1850. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.d.ts.map +0 -1
  1851. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.js.map +0 -1
  1852. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts +0 -11
  1853. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts.map +0 -1
  1854. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js.map +0 -1
  1855. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +0 -291
  1856. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +0 -1
  1857. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +0 -1
  1858. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts +0 -24
  1859. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts.map +0 -1
  1860. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js.map +0 -1
  1861. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts +0 -31
  1862. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts.map +0 -1
  1863. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js.map +0 -1
  1864. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts +0 -29
  1865. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts.map +0 -1
  1866. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js.map +0 -1
  1867. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts +0 -71
  1868. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts.map +0 -1
  1869. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js.map +0 -1
  1870. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts +0 -4
  1871. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts.map +0 -1
  1872. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js.map +0 -1
  1873. package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +0 -28
  1874. package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +0 -1
  1875. package/dist/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +0 -1
  1876. package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts +0 -3
  1877. package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts.map +0 -1
  1878. package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.js.map +0 -1
  1879. package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +0 -72
  1880. package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts.map +0 -1
  1881. package/dist/node_modules/@earendil-works/pi-agent-core/dist/proxy.js.map +0 -1
  1882. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts +0 -29
  1883. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts.map +0 -1
  1884. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.js.map +0 -1
  1885. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts +0 -29
  1886. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts.map +0 -1
  1887. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js +0 -103
  1888. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js.map +0 -1
  1889. package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.d.ts +0 -10
  1890. package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.d.ts.map +0 -1
  1891. package/dist/node_modules/@earendil-works/pi-agent-core/dist/stream-fn.js.map +0 -1
  1892. package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +0 -416
  1893. package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +0 -1
  1894. package/dist/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +0 -1
  1895. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts +0 -71
  1896. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts.map +0 -1
  1897. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js.map +0 -1
  1898. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.d.ts +0 -3
  1899. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.d.ts.map +0 -1
  1900. package/dist/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.lazy.js.map +0 -1
  1901. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts +0 -17
  1902. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts.map +0 -1
  1903. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js.map +0 -1
  1904. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.d.ts +0 -3
  1905. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.d.ts.map +0 -1
  1906. package/dist/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.js.map +0 -1
  1907. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts +0 -38
  1908. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts.map +0 -1
  1909. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js.map +0 -1
  1910. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts +0 -9
  1911. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.d.ts.map +0 -1
  1912. package/dist/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.lazy.js.map +0 -1
  1913. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts +0 -77
  1914. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts.map +0 -1
  1915. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.js.map +0 -1
  1916. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts +0 -69
  1917. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts.map +0 -1
  1918. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js +0 -159
  1919. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js.map +0 -1
  1920. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.d.ts +0 -9
  1921. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.d.ts.map +0 -1
  1922. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js.map +0 -1
  1923. package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.d.ts +0 -20
  1924. package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.d.ts.map +0 -1
  1925. package/dist/node_modules/@earendil-works/pi-ai/dist/api/constrained-sampling.js.map +0 -1
  1926. package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.d.ts +0 -8
  1927. package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.d.ts.map +0 -1
  1928. package/dist/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js.map +0 -1
  1929. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts +0 -13
  1930. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts.map +0 -1
  1931. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js.map +0 -1
  1932. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.d.ts +0 -3
  1933. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.d.ts.map +0 -1
  1934. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js.map +0 -1
  1935. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.ts +0 -93
  1936. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.ts.map +0 -1
  1937. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js.map +0 -1
  1938. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts +0 -15
  1939. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts.map +0 -1
  1940. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js.map +0 -1
  1941. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.d.ts +0 -3
  1942. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.d.ts.map +0 -1
  1943. package/dist/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js.map +0 -1
  1944. package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts +0 -19
  1945. package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.ts.map +0 -1
  1946. package/dist/node_modules/@earendil-works/pi-ai/dist/api/lazy.js.map +0 -1
  1947. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts +0 -25
  1948. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts.map +0 -1
  1949. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js.map +0 -1
  1950. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.d.ts +0 -3
  1951. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.d.ts.map +0 -1
  1952. package/dist/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js.map +0 -1
  1953. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts +0 -31
  1954. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts.map +0 -1
  1955. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js.map +0 -1
  1956. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.d.ts +0 -3
  1957. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.d.ts.map +0 -1
  1958. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js.map +0 -1
  1959. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts +0 -24
  1960. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts.map +0 -1
  1961. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js.map +0 -1
  1962. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.d.ts +0 -3
  1963. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.d.ts.map +0 -1
  1964. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.lazy.js.map +0 -1
  1965. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.d.ts +0 -3
  1966. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.d.ts.map +0 -1
  1967. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-prompt-cache.js.map +0 -1
  1968. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.d.ts +0 -26
  1969. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.d.ts.map +0 -1
  1970. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js.map +0 -1
  1971. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts +0 -14
  1972. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts.map +0 -1
  1973. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js.map +0 -1
  1974. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.d.ts +0 -3
  1975. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.d.ts.map +0 -1
  1976. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.lazy.js.map +0 -1
  1977. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.d.ts +0 -3
  1978. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.d.ts.map +0 -1
  1979. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js.map +0 -1
  1980. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.d.ts +0 -3
  1981. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.d.ts.map +0 -1
  1982. package/dist/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.lazy.js.map +0 -1
  1983. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts +0 -99
  1984. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.ts.map +0 -1
  1985. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js.map +0 -1
  1986. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.d.ts +0 -3
  1987. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.d.ts.map +0 -1
  1988. package/dist/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.lazy.js.map +0 -1
  1989. package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts +0 -15
  1990. package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.d.ts.map +0 -1
  1991. package/dist/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js.map +0 -1
  1992. package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.d.ts +0 -8
  1993. package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.d.ts.map +0 -1
  1994. package/dist/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js.map +0 -1
  1995. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.d.ts +0 -7
  1996. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.d.ts.map +0 -1
  1997. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/context.js.map +0 -1
  1998. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.ts +0 -17
  1999. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.ts.map +0 -1
  2000. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.js.map +0 -1
  2001. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.ts +0 -22
  2002. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.ts.map +0 -1
  2003. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js.map +0 -1
  2004. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.d.ts +0 -9
  2005. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.d.ts.map +0 -1
  2006. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js.map +0 -1
  2007. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.d.ts +0 -24
  2008. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.d.ts.map +0 -1
  2009. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/device-code.js.map +0 -1
  2010. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts +0 -6
  2011. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts.map +0 -1
  2012. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js.map +0 -1
  2013. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts +0 -10
  2014. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts.map +0 -1
  2015. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js.map +0 -1
  2016. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.d.ts +0 -27
  2017. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.d.ts.map +0 -1
  2018. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js.map +0 -1
  2019. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.d.ts +0 -3
  2020. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.d.ts.map +0 -1
  2021. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.js.map +0 -1
  2022. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.d.ts +0 -9
  2023. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.d.ts.map +0 -1
  2024. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js.map +0 -1
  2025. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.d.ts +0 -15
  2026. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.d.ts.map +0 -1
  2027. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js.map +0 -1
  2028. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.d.ts +0 -13
  2029. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.d.ts.map +0 -1
  2030. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/pkce.js.map +0 -1
  2031. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.d.ts +0 -17
  2032. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.d.ts.map +0 -1
  2033. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js.map +0 -1
  2034. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.d.ts +0 -6
  2035. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.d.ts.map +0 -1
  2036. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.js.map +0 -1
  2037. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts +0 -28
  2038. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts.map +0 -1
  2039. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js.map +0 -1
  2040. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts +0 -231
  2041. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.d.ts.map +0 -1
  2042. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/types.js.map +0 -1
  2043. package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts +0 -5
  2044. package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts.map +0 -1
  2045. package/dist/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js.map +0 -1
  2046. package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.d.ts +0 -3
  2047. package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.d.ts.map +0 -1
  2048. package/dist/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js.map +0 -1
  2049. package/dist/node_modules/@earendil-works/pi-ai/dist/cli.d.ts +0 -3
  2050. package/dist/node_modules/@earendil-works/pi-ai/dist/cli.d.ts.map +0 -1
  2051. package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js.map +0 -1
  2052. package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts +0 -39
  2053. package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.ts.map +0 -1
  2054. package/dist/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.js.map +0 -1
  2055. package/dist/node_modules/@earendil-works/pi-ai/dist/compat.d.ts +0 -67
  2056. package/dist/node_modules/@earendil-works/pi-ai/dist/compat.d.ts.map +0 -1
  2057. package/dist/node_modules/@earendil-works/pi-ai/dist/compat.js.map +0 -1
  2058. package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts +0 -22
  2059. package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts.map +0 -1
  2060. package/dist/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js.map +0 -1
  2061. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts +0 -10
  2062. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts.map +0 -1
  2063. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +0 -815
  2064. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts.map +0 -1
  2065. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js.map +0 -1
  2066. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.js.map +0 -1
  2067. package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts +0 -14
  2068. package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts.map +0 -1
  2069. package/dist/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js.map +0 -1
  2070. package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.d.ts +0 -95
  2071. package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.d.ts.map +0 -1
  2072. package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.js.map +0 -1
  2073. package/dist/node_modules/@earendil-works/pi-ai/dist/images.d.ts +0 -4
  2074. package/dist/node_modules/@earendil-works/pi-ai/dist/images.d.ts.map +0 -1
  2075. package/dist/node_modules/@earendil-works/pi-ai/dist/images.js.map +0 -1
  2076. package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts +0 -38
  2077. package/dist/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +0 -1
  2078. package/dist/node_modules/@earendil-works/pi-ai/dist/index.js.map +0 -1
  2079. package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.d.ts +0 -42
  2080. package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.d.ts.map +0 -1
  2081. package/dist/node_modules/@earendil-works/pi-ai/dist/legacy-api-aliases.js.map +0 -1
  2082. package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.d.ts +0 -17
  2083. package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.d.ts.map +0 -1
  2084. package/dist/node_modules/@earendil-works/pi-ai/dist/model-catalog.js.map +0 -1
  2085. package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.d.ts +0 -29
  2086. package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.d.ts.map +0 -1
  2087. package/dist/node_modules/@earendil-works/pi-ai/dist/models-store.js.map +0 -1
  2088. package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts +0 -211
  2089. package/dist/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +0 -1
  2090. package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +0 -81
  2091. package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +0 -1
  2092. package/dist/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +0 -1
  2093. package/dist/node_modules/@earendil-works/pi-ai/dist/models.js.map +0 -1
  2094. package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts +0 -3
  2095. package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts.map +0 -1
  2096. package/dist/node_modules/@earendil-works/pi-ai/dist/oauth.js.map +0 -1
  2097. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.d.ts +0 -28
  2098. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.d.ts.map +0 -1
  2099. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/all.js.map +0 -1
  2100. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts +0 -3
  2101. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +0 -1
  2102. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +0 -1
  2103. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.d.ts +0 -4
  2104. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.d.ts.map +0 -1
  2105. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js.map +0 -1
  2106. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.d.ts +0 -3
  2107. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.d.ts.map +0 -1
  2108. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.js.map +0 -1
  2109. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.d.ts +0 -4
  2110. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.d.ts.map +0 -1
  2111. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js.map +0 -1
  2112. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts +0 -3
  2113. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +0 -1
  2114. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +0 -1
  2115. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.d.ts +0 -4
  2116. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.d.ts.map +0 -1
  2117. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js.map +0 -1
  2118. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts +0 -3
  2119. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts.map +0 -1
  2120. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js.map +0 -1
  2121. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.d.ts +0 -4
  2122. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.d.ts.map +0 -1
  2123. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js.map +0 -1
  2124. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.d.ts +0 -3
  2125. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.d.ts.map +0 -1
  2126. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.js.map +0 -1
  2127. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.d.ts +0 -4
  2128. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.d.ts.map +0 -1
  2129. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js.map +0 -1
  2130. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.d.ts +0 -3
  2131. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.d.ts.map +0 -1
  2132. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.js.map +0 -1
  2133. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.d.ts +0 -4
  2134. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.d.ts.map +0 -1
  2135. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js.map +0 -1
  2136. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts +0 -3
  2137. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts.map +0 -1
  2138. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js.map +0 -1
  2139. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.d.ts +0 -4
  2140. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.d.ts.map +0 -1
  2141. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js.map +0 -1
  2142. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.d.ts +0 -4
  2143. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.d.ts.map +0 -1
  2144. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-auth.js.map +0 -1
  2145. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.d.ts +0 -8
  2146. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.d.ts.map +0 -1
  2147. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js.map +0 -1
  2148. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.d.ts +0 -3
  2149. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.d.ts.map +0 -1
  2150. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js.map +0 -1
  2151. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.d.ts +0 -4
  2152. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.d.ts.map +0 -1
  2153. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js.map +0 -1
  2154. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.d.ts +0 -3
  2155. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.d.ts.map +0 -1
  2156. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.js.map +0 -1
  2157. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.d.ts +0 -4
  2158. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.d.ts.map +0 -1
  2159. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js.map +0 -1
  2160. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts +0 -102
  2161. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts.map +0 -1
  2162. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/faux.js.map +0 -1
  2163. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.d.ts +0 -3
  2164. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.d.ts.map +0 -1
  2165. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.js.map +0 -1
  2166. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.d.ts +0 -4
  2167. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.d.ts.map +0 -1
  2168. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js.map +0 -1
  2169. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.d.ts +0 -3
  2170. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.d.ts.map +0 -1
  2171. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.js.map +0 -1
  2172. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.d.ts +0 -4
  2173. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.d.ts.map +0 -1
  2174. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js.map +0 -1
  2175. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts +0 -3
  2176. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts.map +0 -1
  2177. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js.map +0 -1
  2178. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.d.ts +0 -4
  2179. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.d.ts.map +0 -1
  2180. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js.map +0 -1
  2181. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts +0 -3
  2182. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts.map +0 -1
  2183. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.js.map +0 -1
  2184. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.d.ts +0 -4
  2185. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.d.ts.map +0 -1
  2186. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js.map +0 -1
  2187. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.d.ts +0 -3
  2188. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.d.ts.map +0 -1
  2189. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.js.map +0 -1
  2190. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.d.ts +0 -4
  2191. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.d.ts.map +0 -1
  2192. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js.map +0 -1
  2193. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.d.ts +0 -3
  2194. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.d.ts.map +0 -1
  2195. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.js.map +0 -1
  2196. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.d.ts +0 -4
  2197. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.d.ts.map +0 -1
  2198. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js.map +0 -1
  2199. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts +0 -4
  2200. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts.map +0 -1
  2201. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js.map +0 -1
  2202. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts +0 -3
  2203. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts.map +0 -1
  2204. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js.map +0 -1
  2205. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.d.ts +0 -4
  2206. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.d.ts.map +0 -1
  2207. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js.map +0 -1
  2208. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.d.ts +0 -3
  2209. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.d.ts.map +0 -1
  2210. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.js.map +0 -1
  2211. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.d.ts +0 -4
  2212. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.d.ts.map +0 -1
  2213. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js.map +0 -1
  2214. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.d.ts +0 -3
  2215. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.d.ts.map +0 -1
  2216. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.js.map +0 -1
  2217. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.d.ts +0 -4
  2218. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.d.ts.map +0 -1
  2219. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js.map +0 -1
  2220. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts +0 -3
  2221. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts.map +0 -1
  2222. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js.map +0 -1
  2223. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.d.ts +0 -4
  2224. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.d.ts.map +0 -1
  2225. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js.map +0 -1
  2226. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.d.ts +0 -3
  2227. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.d.ts.map +0 -1
  2228. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.js.map +0 -1
  2229. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.d.ts +0 -4
  2230. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.d.ts.map +0 -1
  2231. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js.map +0 -1
  2232. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.d.ts +0 -3
  2233. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.d.ts.map +0 -1
  2234. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.js.map +0 -1
  2235. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.d.ts +0 -4
  2236. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.d.ts.map +0 -1
  2237. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js.map +0 -1
  2238. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.d.ts +0 -3
  2239. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.d.ts.map +0 -1
  2240. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.js.map +0 -1
  2241. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.d.ts +0 -4
  2242. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.d.ts.map +0 -1
  2243. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js.map +0 -1
  2244. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.d.ts +0 -3
  2245. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.d.ts.map +0 -1
  2246. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js.map +0 -1
  2247. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.d.ts +0 -4
  2248. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.d.ts.map +0 -1
  2249. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js.map +0 -1
  2250. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.d.ts +0 -3
  2251. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.d.ts.map +0 -1
  2252. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.js.map +0 -1
  2253. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.d.ts +0 -4
  2254. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.d.ts.map +0 -1
  2255. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js.map +0 -1
  2256. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.d.ts +0 -3
  2257. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.d.ts.map +0 -1
  2258. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js.map +0 -1
  2259. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.d.ts +0 -4
  2260. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.d.ts.map +0 -1
  2261. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js.map +0 -1
  2262. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.d.ts +0 -3
  2263. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.d.ts.map +0 -1
  2264. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js.map +0 -1
  2265. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.d.ts +0 -4
  2266. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.d.ts.map +0 -1
  2267. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js.map +0 -1
  2268. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.d.ts +0 -3
  2269. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.d.ts.map +0 -1
  2270. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js.map +0 -1
  2271. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts +0 -3
  2272. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.d.ts.map +0 -1
  2273. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js.map +0 -1
  2274. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.d.ts +0 -4
  2275. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.d.ts.map +0 -1
  2276. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js.map +0 -1
  2277. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.d.ts +0 -3
  2278. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.d.ts.map +0 -1
  2279. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.js.map +0 -1
  2280. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.d.ts +0 -4
  2281. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.d.ts.map +0 -1
  2282. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js.map +0 -1
  2283. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.d.ts +0 -3
  2284. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.d.ts.map +0 -1
  2285. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.js.map +0 -1
  2286. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.d.ts +0 -4
  2287. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.d.ts.map +0 -1
  2288. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js.map +0 -1
  2289. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.d.ts +0 -3
  2290. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.d.ts.map +0 -1
  2291. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.js.map +0 -1
  2292. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.d.ts +0 -4
  2293. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.d.ts.map +0 -1
  2294. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js.map +0 -1
  2295. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.d.ts +0 -26
  2296. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.d.ts.map +0 -1
  2297. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius-config.js.map +0 -1
  2298. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.d.ts +0 -9
  2299. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.d.ts.map +0 -1
  2300. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/radius.js.map +0 -1
  2301. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.d.ts +0 -3
  2302. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.d.ts.map +0 -1
  2303. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.js.map +0 -1
  2304. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.d.ts +0 -4
  2305. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.d.ts.map +0 -1
  2306. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js.map +0 -1
  2307. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.d.ts +0 -3
  2308. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.d.ts.map +0 -1
  2309. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.js.map +0 -1
  2310. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.d.ts +0 -4
  2311. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.d.ts.map +0 -1
  2312. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js.map +0 -1
  2313. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.d.ts +0 -3
  2314. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.d.ts.map +0 -1
  2315. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.js.map +0 -1
  2316. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.d.ts +0 -4
  2317. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.d.ts.map +0 -1
  2318. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js.map +0 -1
  2319. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.d.ts +0 -3
  2320. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.d.ts.map +0 -1
  2321. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.js.map +0 -1
  2322. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.d.ts +0 -4
  2323. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.d.ts.map +0 -1
  2324. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js.map +0 -1
  2325. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.d.ts +0 -3
  2326. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.d.ts.map +0 -1
  2327. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.js.map +0 -1
  2328. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.d.ts +0 -4
  2329. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.d.ts.map +0 -1
  2330. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js.map +0 -1
  2331. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.d.ts +0 -3
  2332. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.d.ts.map +0 -1
  2333. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.js.map +0 -1
  2334. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.d.ts +0 -4
  2335. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.d.ts.map +0 -1
  2336. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js.map +0 -1
  2337. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.d.ts +0 -3
  2338. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.d.ts.map +0 -1
  2339. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.js.map +0 -1
  2340. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.d.ts +0 -4
  2341. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.d.ts.map +0 -1
  2342. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js.map +0 -1
  2343. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.d.ts +0 -3
  2344. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.d.ts.map +0 -1
  2345. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.js.map +0 -1
  2346. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.d.ts +0 -4
  2347. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.d.ts.map +0 -1
  2348. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js.map +0 -1
  2349. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.d.ts +0 -3
  2350. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.d.ts.map +0 -1
  2351. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.js.map +0 -1
  2352. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.d.ts +0 -4
  2353. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.d.ts.map +0 -1
  2354. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js.map +0 -1
  2355. package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts +0 -4
  2356. package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts.map +0 -1
  2357. package/dist/node_modules/@earendil-works/pi-ai/dist/session-resources.js.map +0 -1
  2358. package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts +0 -745
  2359. package/dist/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +0 -1
  2360. package/dist/node_modules/@earendil-works/pi-ai/dist/types.js.map +0 -1
  2361. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.d.ts +0 -6
  2362. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.d.ts.map +0 -1
  2363. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js.map +0 -1
  2364. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.d.ts +0 -8
  2365. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.d.ts.map +0 -1
  2366. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/abort.js.map +0 -1
  2367. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts +0 -77
  2368. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts.map +0 -1
  2369. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js.map +0 -1
  2370. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.d.ts +0 -9
  2371. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.d.ts.map +0 -1
  2372. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js.map +0 -1
  2373. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts +0 -19
  2374. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts.map +0 -1
  2375. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js.map +0 -1
  2376. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.d.ts +0 -25
  2377. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.d.ts.map +0 -1
  2378. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js.map +0 -1
  2379. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.d.ts +0 -17
  2380. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.d.ts.map +0 -1
  2381. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js.map +0 -1
  2382. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts +0 -21
  2383. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts.map +0 -1
  2384. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js.map +0 -1
  2385. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.d.ts +0 -3
  2386. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.d.ts.map +0 -1
  2387. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/hash.js.map +0 -1
  2388. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.d.ts +0 -4
  2389. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.d.ts.map +0 -1
  2390. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/headers.js.map +0 -1
  2391. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts +0 -16
  2392. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts.map +0 -1
  2393. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js.map +0 -1
  2394. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts +0 -4
  2395. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts.map +0 -1
  2396. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js.map +0 -1
  2397. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +0 -68
  2398. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +0 -1
  2399. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +0 -1
  2400. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.d.ts +0 -2
  2401. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.d.ts.map +0 -1
  2402. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.js.map +0 -1
  2403. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.d.ts +0 -7
  2404. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.d.ts.map +0 -1
  2405. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-env.js.map +0 -1
  2406. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.d.ts +0 -16
  2407. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.d.ts.map +0 -1
  2408. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.js.map +0 -1
  2409. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts +0 -53
  2410. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts.map +0 -1
  2411. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/retry.js.map +0 -1
  2412. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.d.ts +0 -22
  2413. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.d.ts.map +0 -1
  2414. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.js.map +0 -1
  2415. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts +0 -2
  2416. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts.map +0 -1
  2417. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js.map +0 -1
  2418. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts +0 -6
  2419. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.d.ts.map +0 -1
  2420. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/text.js.map +0 -1
  2421. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts +0 -17
  2422. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts.map +0 -1
  2423. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js.map +0 -1
  2424. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts +0 -3
  2425. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts.map +0 -1
  2426. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js.map +0 -1
  2427. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts +0 -18
  2428. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts.map +0 -1
  2429. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/validation.js.map +0 -1
  2430. package/dist/node_modules/@earendil-works/pi-client/dist/client.d.ts +0 -30
  2431. package/dist/node_modules/@earendil-works/pi-client/dist/client.d.ts.map +0 -1
  2432. package/dist/node_modules/@earendil-works/pi-client/dist/client.js.map +0 -1
  2433. package/dist/node_modules/@earendil-works/pi-client/dist/connection.d.ts +0 -25
  2434. package/dist/node_modules/@earendil-works/pi-client/dist/connection.d.ts.map +0 -1
  2435. package/dist/node_modules/@earendil-works/pi-client/dist/connection.js.map +0 -1
  2436. package/dist/node_modules/@earendil-works/pi-client/dist/errors.d.ts +0 -14
  2437. package/dist/node_modules/@earendil-works/pi-client/dist/errors.d.ts.map +0 -1
  2438. package/dist/node_modules/@earendil-works/pi-client/dist/errors.js.map +0 -1
  2439. package/dist/node_modules/@earendil-works/pi-client/dist/index.d.ts +0 -5
  2440. package/dist/node_modules/@earendil-works/pi-client/dist/index.d.ts.map +0 -1
  2441. package/dist/node_modules/@earendil-works/pi-client/dist/index.js.map +0 -1
  2442. package/dist/node_modules/@earendil-works/pi-client/dist/promise.d.ts +0 -8
  2443. package/dist/node_modules/@earendil-works/pi-client/dist/promise.d.ts.map +0 -1
  2444. package/dist/node_modules/@earendil-works/pi-client/dist/promise.js.map +0 -1
  2445. package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.d.ts +0 -58
  2446. package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.d.ts.map +0 -1
  2447. package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.js +0 -57
  2448. package/dist/node_modules/@earendil-works/pi-client/dist/session-handle.js.map +0 -1
  2449. package/dist/node_modules/@earendil-works/pi-client/dist/state.d.ts +0 -22
  2450. package/dist/node_modules/@earendil-works/pi-client/dist/state.d.ts.map +0 -1
  2451. package/dist/node_modules/@earendil-works/pi-client/dist/state.js +0 -148
  2452. package/dist/node_modules/@earendil-works/pi-client/dist/state.js.map +0 -1
  2453. package/dist/node_modules/@earendil-works/pi-client/dist/transport.d.ts +0 -17
  2454. package/dist/node_modules/@earendil-works/pi-client/dist/transport.d.ts.map +0 -1
  2455. package/dist/node_modules/@earendil-works/pi-client/dist/transport.js.map +0 -1
  2456. package/dist/node_modules/@earendil-works/pi-client/dist/types.d.ts +0 -28
  2457. package/dist/node_modules/@earendil-works/pi-client/dist/types.d.ts.map +0 -1
  2458. package/dist/node_modules/@earendil-works/pi-client/dist/types.js.map +0 -1
  2459. package/dist/node_modules/@earendil-works/pi-client/dist/unix.d.ts +0 -21
  2460. package/dist/node_modules/@earendil-works/pi-client/dist/unix.d.ts.map +0 -1
  2461. package/dist/node_modules/@earendil-works/pi-client/dist/unix.js.map +0 -1
  2462. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.d.ts +0 -4
  2463. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.d.ts.map +0 -1
  2464. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/decoder.js.map +0 -1
  2465. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.d.ts +0 -4
  2466. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.d.ts.map +0 -1
  2467. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/encoder.js.map +0 -1
  2468. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.d.ts +0 -4
  2469. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.d.ts.map +0 -1
  2470. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/index.js.map +0 -1
  2471. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.d.ts +0 -26
  2472. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.d.ts.map +0 -1
  2473. package/dist/node_modules/@earendil-works/pi-protocol/dist/cbor/options.js.map +0 -1
  2474. package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.d.ts +0 -27
  2475. package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.d.ts.map +0 -1
  2476. package/dist/node_modules/@earendil-works/pi-protocol/dist/codec.js.map +0 -1
  2477. package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.d.ts +0 -27
  2478. package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.d.ts.map +0 -1
  2479. package/dist/node_modules/@earendil-works/pi-protocol/dist/framing.js.map +0 -1
  2480. package/dist/node_modules/@earendil-works/pi-protocol/dist/index.d.ts +0 -5
  2481. package/dist/node_modules/@earendil-works/pi-protocol/dist/index.d.ts.map +0 -1
  2482. package/dist/node_modules/@earendil-works/pi-protocol/dist/index.js.map +0 -1
  2483. package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.d.ts +0 -167
  2484. package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.d.ts.map +0 -1
  2485. package/dist/node_modules/@earendil-works/pi-protocol/dist/protocol.js.map +0 -1
  2486. package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.d.ts +0 -14002
  2487. package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.d.ts.map +0 -1
  2488. package/dist/node_modules/@earendil-works/pi-protocol/dist/schemas.js.map +0 -1
  2489. package/dist/node_modules/@earendil-works/pi-server/dist/cli.d.ts +0 -3
  2490. package/dist/node_modules/@earendil-works/pi-server/dist/cli.d.ts.map +0 -1
  2491. package/dist/node_modules/@earendil-works/pi-server/dist/cli.js +0 -136
  2492. package/dist/node_modules/@earendil-works/pi-server/dist/cli.js.map +0 -1
  2493. package/dist/node_modules/@earendil-works/pi-server/dist/config.d.ts +0 -12
  2494. package/dist/node_modules/@earendil-works/pi-server/dist/config.d.ts.map +0 -1
  2495. package/dist/node_modules/@earendil-works/pi-server/dist/config.js +0 -55
  2496. package/dist/node_modules/@earendil-works/pi-server/dist/config.js.map +0 -1
  2497. package/dist/node_modules/@earendil-works/pi-server/dist/connection.d.ts +0 -35
  2498. package/dist/node_modules/@earendil-works/pi-server/dist/connection.d.ts.map +0 -1
  2499. package/dist/node_modules/@earendil-works/pi-server/dist/connection.js.map +0 -1
  2500. package/dist/node_modules/@earendil-works/pi-server/dist/errors.d.ts +0 -25
  2501. package/dist/node_modules/@earendil-works/pi-server/dist/errors.d.ts.map +0 -1
  2502. package/dist/node_modules/@earendil-works/pi-server/dist/errors.js.map +0 -1
  2503. package/dist/node_modules/@earendil-works/pi-server/dist/handler.d.ts +0 -14
  2504. package/dist/node_modules/@earendil-works/pi-server/dist/handler.d.ts.map +0 -1
  2505. package/dist/node_modules/@earendil-works/pi-server/dist/handler.js +0 -105
  2506. package/dist/node_modules/@earendil-works/pi-server/dist/handler.js.map +0 -1
  2507. package/dist/node_modules/@earendil-works/pi-server/dist/index.d.ts +0 -5
  2508. package/dist/node_modules/@earendil-works/pi-server/dist/index.d.ts.map +0 -1
  2509. package/dist/node_modules/@earendil-works/pi-server/dist/index.js.map +0 -1
  2510. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.d.ts +0 -3
  2511. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.d.ts.map +0 -1
  2512. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.js +0 -56
  2513. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/client.js.map +0 -1
  2514. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.d.ts +0 -99
  2515. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.d.ts.map +0 -1
  2516. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.js +0 -12
  2517. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/protocol.js.map +0 -1
  2518. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.d.ts +0 -20
  2519. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.d.ts.map +0 -1
  2520. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.js +0 -145
  2521. package/dist/node_modules/@earendil-works/pi-server/dist/ipc/server.js.map +0 -1
  2522. package/dist/node_modules/@earendil-works/pi-server/dist/listener.d.ts +0 -8
  2523. package/dist/node_modules/@earendil-works/pi-server/dist/listener.d.ts.map +0 -1
  2524. package/dist/node_modules/@earendil-works/pi-server/dist/listener.js.map +0 -1
  2525. package/dist/node_modules/@earendil-works/pi-server/dist/protocol.d.ts +0 -22
  2526. package/dist/node_modules/@earendil-works/pi-server/dist/protocol.d.ts.map +0 -1
  2527. package/dist/node_modules/@earendil-works/pi-server/dist/protocol.js +0 -266
  2528. package/dist/node_modules/@earendil-works/pi-server/dist/protocol.js.map +0 -1
  2529. package/dist/node_modules/@earendil-works/pi-server/dist/radius.d.ts +0 -36
  2530. package/dist/node_modules/@earendil-works/pi-server/dist/radius.d.ts.map +0 -1
  2531. package/dist/node_modules/@earendil-works/pi-server/dist/radius.js +0 -360
  2532. package/dist/node_modules/@earendil-works/pi-server/dist/radius.js.map +0 -1
  2533. package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.d.ts +0 -31
  2534. package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.d.ts.map +0 -1
  2535. package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.js +0 -168
  2536. package/dist/node_modules/@earendil-works/pi-server/dist/rpc-process.js.map +0 -1
  2537. package/dist/node_modules/@earendil-works/pi-server/dist/serve.d.ts +0 -2
  2538. package/dist/node_modules/@earendil-works/pi-server/dist/serve.d.ts.map +0 -1
  2539. package/dist/node_modules/@earendil-works/pi-server/dist/serve.js +0 -70
  2540. package/dist/node_modules/@earendil-works/pi-server/dist/serve.js.map +0 -1
  2541. package/dist/node_modules/@earendil-works/pi-server/dist/server.d.ts +0 -46
  2542. package/dist/node_modules/@earendil-works/pi-server/dist/server.d.ts.map +0 -1
  2543. package/dist/node_modules/@earendil-works/pi-server/dist/server.js.map +0 -1
  2544. package/dist/node_modules/@earendil-works/pi-server/dist/session-router.d.ts +0 -40
  2545. package/dist/node_modules/@earendil-works/pi-server/dist/session-router.d.ts.map +0 -1
  2546. package/dist/node_modules/@earendil-works/pi-server/dist/session-router.js.map +0 -1
  2547. package/dist/node_modules/@earendil-works/pi-server/dist/sessions.d.ts +0 -2195
  2548. package/dist/node_modules/@earendil-works/pi-server/dist/sessions.d.ts.map +0 -1
  2549. package/dist/node_modules/@earendil-works/pi-server/dist/sessions.js +0 -332
  2550. package/dist/node_modules/@earendil-works/pi-server/dist/sessions.js.map +0 -1
  2551. package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.d.ts +0 -24
  2552. package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.d.ts.map +0 -1
  2553. package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.js +0 -39
  2554. package/dist/node_modules/@earendil-works/pi-server/dist/snapshots.js.map +0 -1
  2555. package/dist/node_modules/@earendil-works/pi-server/dist/storage.d.ts +0 -10
  2556. package/dist/node_modules/@earendil-works/pi-server/dist/storage.d.ts.map +0 -1
  2557. package/dist/node_modules/@earendil-works/pi-server/dist/storage.js +0 -58
  2558. package/dist/node_modules/@earendil-works/pi-server/dist/storage.js.map +0 -1
  2559. package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.d.ts +0 -34
  2560. package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.d.ts.map +0 -1
  2561. package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.js +0 -290
  2562. package/dist/node_modules/@earendil-works/pi-server/dist/supervisor.js.map +0 -1
  2563. package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.d.ts +0 -35
  2564. package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.d.ts.map +0 -1
  2565. package/dist/node_modules/@earendil-works/pi-server/dist/testing/client.js.map +0 -1
  2566. package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.d.ts +0 -57
  2567. package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.d.ts.map +0 -1
  2568. package/dist/node_modules/@earendil-works/pi-server/dist/testing/host.js.map +0 -1
  2569. package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.d.ts +0 -6
  2570. package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.d.ts.map +0 -1
  2571. package/dist/node_modules/@earendil-works/pi-server/dist/testing/index.js.map +0 -1
  2572. package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.d.ts +0 -13
  2573. package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.d.ts.map +0 -1
  2574. package/dist/node_modules/@earendil-works/pi-server/dist/testing/server.js.map +0 -1
  2575. package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.d.ts +0 -66
  2576. package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.d.ts.map +0 -1
  2577. package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.js +0 -254
  2578. package/dist/node_modules/@earendil-works/pi-server/dist/testing/service.js.map +0 -1
  2579. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.d.ts +0 -3
  2580. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.d.ts.map +0 -1
  2581. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/address.js.map +0 -1
  2582. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.d.ts +0 -5
  2583. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.d.ts.map +0 -1
  2584. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/index.js.map +0 -1
  2585. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.d.ts +0 -24
  2586. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.d.ts.map +0 -1
  2587. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/listener.js.map +0 -1
  2588. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.d.ts +0 -7
  2589. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.d.ts.map +0 -1
  2590. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/preset.js.map +0 -1
  2591. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.d.ts +0 -15
  2592. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.d.ts.map +0 -1
  2593. package/dist/node_modules/@earendil-works/pi-server/dist/transports/unix/types.js.map +0 -1
  2594. package/dist/node_modules/@earendil-works/pi-server/dist/types.d.ts +0 -49
  2595. package/dist/node_modules/@earendil-works/pi-server/dist/types.d.ts.map +0 -1
  2596. package/dist/node_modules/@earendil-works/pi-server/dist/types.js.map +0 -1
  2597. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.d.ts +0 -6
  2598. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.d.ts.map +0 -1
  2599. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/index.js.map +0 -1
  2600. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.d.ts +0 -6
  2601. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.d.ts.map +0 -1
  2602. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.js +0 -70
  2603. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/branch-cache.js.map +0 -1
  2604. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.d.ts +0 -5
  2605. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.d.ts.map +0 -1
  2606. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/index.js.map +0 -1
  2607. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.d.ts +0 -3
  2608. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.d.ts.map +0 -1
  2609. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/migrations.js.map +0 -1
  2610. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.d.ts +0 -41
  2611. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.d.ts.map +0 -1
  2612. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/repo.js.map +0 -1
  2613. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.d.ts +0 -14
  2614. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.d.ts.map +0 -1
  2615. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.js +0 -153
  2616. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/search-backend.js.map +0 -1
  2617. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.d.ts +0 -6
  2618. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.d.ts.map +0 -1
  2619. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/branch-entries.js.map +0 -1
  2620. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.d.ts +0 -24
  2621. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.d.ts.map +0 -1
  2622. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/entries.js.map +0 -1
  2623. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.d.ts +0 -23
  2624. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.d.ts.map +0 -1
  2625. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-row.js.map +0 -1
  2626. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.d.ts +0 -4
  2627. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.d.ts.map +0 -1
  2628. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-sequences.js.map +0 -1
  2629. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.d.ts +0 -6
  2630. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.d.ts.map +0 -1
  2631. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/session-stats.js.map +0 -1
  2632. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.d.ts +0 -20
  2633. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.d.ts.map +0 -1
  2634. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/usage-ledger.js.map +0 -1
  2635. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.d.ts +0 -23
  2636. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.d.ts.map +0 -1
  2637. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session/values.js.map +0 -1
  2638. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.d.ts +0 -42
  2639. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.d.ts.map +0 -1
  2640. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/session.js.map +0 -1
  2641. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.d.ts +0 -19
  2642. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.d.ts.map +0 -1
  2643. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/sql.js.map +0 -1
  2644. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.d.ts +0 -41
  2645. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.d.ts.map +0 -1
  2646. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.js +0 -112
  2647. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-entries.js.map +0 -1
  2648. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.d.ts +0 -7
  2649. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.d.ts.map +0 -1
  2650. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.js +0 -22
  2651. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/branch-tips.js.map +0 -1
  2652. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.d.ts +0 -34
  2653. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.d.ts.map +0 -1
  2654. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.js +0 -37
  2655. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/entries.js.map +0 -1
  2656. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.d.ts +0 -20
  2657. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.d.ts.map +0 -1
  2658. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.js +0 -38
  2659. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/facts.js.map +0 -1
  2660. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.d.ts +0 -35
  2661. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.d.ts.map +0 -1
  2662. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.js +0 -95
  2663. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/lanes.js.map +0 -1
  2664. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.d.ts +0 -38
  2665. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.d.ts.map +0 -1
  2666. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.js +0 -49
  2667. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/records.js.map +0 -1
  2668. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.d.ts +0 -7
  2669. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.d.ts.map +0 -1
  2670. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.js +0 -22
  2671. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-sequences.js.map +0 -1
  2672. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.d.ts +0 -17
  2673. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.d.ts.map +0 -1
  2674. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.js +0 -40
  2675. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/session-stats.js.map +0 -1
  2676. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.d.ts +0 -26
  2677. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.d.ts.map +0 -1
  2678. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.js +0 -99
  2679. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/sessions.js.map +0 -1
  2680. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.d.ts +0 -15
  2681. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.d.ts.map +0 -1
  2682. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.js +0 -31
  2683. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage/writer-leases.js.map +0 -1
  2684. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.d.ts +0 -38
  2685. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.d.ts.map +0 -1
  2686. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/storage.js.map +0 -1
  2687. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.d.ts +0 -29
  2688. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.d.ts.map +0 -1
  2689. package/dist/node_modules/@earendil-works/pi-session-backend-sqlite-node/dist/sqlite/types.js.map +0 -1
  2690. package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts +0 -194
  2691. package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.d.ts.map +0 -1
  2692. package/dist/node_modules/@earendil-works/pi-telemetry/dist/index.js.map +0 -1
  2693. package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts +0 -26
  2694. package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.d.ts.map +0 -1
  2695. package/dist/node_modules/@earendil-works/pi-telemetry/dist/memory.js.map +0 -1
  2696. package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.d.ts +0 -4
  2697. package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.d.ts.map +0 -1
  2698. package/dist/node_modules/@earendil-works/pi-telemetry/dist/noop.js.map +0 -1
  2699. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.d.ts +0 -4
  2700. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.d.ts.map +0 -1
  2701. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.js.map +0 -1
  2702. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.d.ts +0 -3
  2703. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.d.ts.map +0 -1
  2704. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/index.js.map +0 -1
  2705. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.d.ts +0 -16
  2706. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.d.ts.map +0 -1
  2707. package/dist/node_modules/@earendil-works/pi-telemetry/dist/testing/types.js.map +0 -1
  2708. package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts +0 -46
  2709. package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts.map +0 -1
  2710. package/dist/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js.map +0 -1
  2711. package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +0 -57
  2712. package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +0 -1
  2713. package/dist/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +0 -1
  2714. package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.d.ts +0 -13
  2715. package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.d.ts.map +0 -1
  2716. package/dist/node_modules/@earendil-works/pi-tui/dist/components/alt-screen-flash.js.map +0 -1
  2717. package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts +0 -24
  2718. package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts.map +0 -1
  2719. package/dist/node_modules/@earendil-works/pi-tui/dist/components/box.js.map +0 -1
  2720. package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts +0 -22
  2721. package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts.map +0 -1
  2722. package/dist/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js.map +0 -1
  2723. package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +0 -269
  2724. package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +0 -1
  2725. package/dist/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +0 -1
  2726. package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.d.ts +0 -7
  2727. package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.d.ts.map +0 -1
  2728. package/dist/node_modules/@earendil-works/pi-tui/dist/components/h-stack.js.map +0 -1
  2729. package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts +0 -28
  2730. package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts.map +0 -1
  2731. package/dist/node_modules/@earendil-works/pi-tui/dist/components/image.js.map +0 -1
  2732. package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts +0 -48
  2733. package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts.map +0 -1
  2734. package/dist/node_modules/@earendil-works/pi-tui/dist/components/input.js.map +0 -1
  2735. package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts +0 -46
  2736. package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts.map +0 -1
  2737. package/dist/node_modules/@earendil-works/pi-tui/dist/components/loader.js.map +0 -1
  2738. package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +0 -103
  2739. package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +0 -1
  2740. package/dist/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +0 -1
  2741. package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts +0 -12
  2742. package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts.map +0 -1
  2743. package/dist/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js.map +0 -1
  2744. package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts +0 -63
  2745. package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts.map +0 -1
  2746. package/dist/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js.map +0 -1
  2747. package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +0 -53
  2748. package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts.map +0 -1
  2749. package/dist/node_modules/@earendil-works/pi-tui/dist/components/select-list.js.map +0 -1
  2750. package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +0 -60
  2751. package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +0 -1
  2752. package/dist/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +0 -1
  2753. package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts +0 -12
  2754. package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts.map +0 -1
  2755. package/dist/node_modules/@earendil-works/pi-tui/dist/components/spacer.js.map +0 -1
  2756. package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.d.ts +0 -38
  2757. package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.d.ts.map +0 -1
  2758. package/dist/node_modules/@earendil-works/pi-tui/dist/components/stack.js.map +0 -1
  2759. package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts +0 -19
  2760. package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts.map +0 -1
  2761. package/dist/node_modules/@earendil-works/pi-tui/dist/components/text.js.map +0 -1
  2762. package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts +0 -13
  2763. package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts.map +0 -1
  2764. package/dist/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js.map +0 -1
  2765. package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.d.ts +0 -8
  2766. package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.d.ts.map +0 -1
  2767. package/dist/node_modules/@earendil-works/pi-tui/dist/components/v-stack.js.map +0 -1
  2768. package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts +0 -41
  2769. package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts.map +0 -1
  2770. package/dist/node_modules/@earendil-works/pi-tui/dist/editor-component.js.map +0 -1
  2771. package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts +0 -16
  2772. package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts.map +0 -1
  2773. package/dist/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +0 -1
  2774. package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts +0 -32
  2775. package/dist/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +0 -1
  2776. package/dist/node_modules/@earendil-works/pi-tui/dist/index.js.map +0 -1
  2777. package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +0 -273
  2778. package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts.map +0 -1
  2779. package/dist/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +0 -1
  2780. package/dist/node_modules/@earendil-works/pi-tui/dist/keys.d.ts +0 -184
  2781. package/dist/node_modules/@earendil-works/pi-tui/dist/keys.d.ts.map +0 -1
  2782. package/dist/node_modules/@earendil-works/pi-tui/dist/keys.js.map +0 -1
  2783. package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts +0 -28
  2784. package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts.map +0 -1
  2785. package/dist/node_modules/@earendil-works/pi-tui/dist/kill-ring.js.map +0 -1
  2786. package/dist/node_modules/@earendil-works/pi-tui/dist/latex.d.ts +0 -10
  2787. package/dist/node_modules/@earendil-works/pi-tui/dist/latex.d.ts.map +0 -1
  2788. package/dist/node_modules/@earendil-works/pi-tui/dist/latex.js.map +0 -1
  2789. package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.d.ts +0 -42
  2790. package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.d.ts.map +0 -1
  2791. package/dist/node_modules/@earendil-works/pi-tui/dist/layout-node.js.map +0 -1
  2792. package/dist/node_modules/@earendil-works/pi-tui/dist/layout.d.ts +0 -42
  2793. package/dist/node_modules/@earendil-works/pi-tui/dist/layout.d.ts.map +0 -1
  2794. package/dist/node_modules/@earendil-works/pi-tui/dist/layout.js.map +0 -1
  2795. package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts +0 -3
  2796. package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +0 -1
  2797. package/dist/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +0 -1
  2798. package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts +0 -7
  2799. package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts.map +0 -1
  2800. package/dist/node_modules/@earendil-works/pi-tui/dist/native-module-path.js.map +0 -1
  2801. package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts +0 -57
  2802. package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts.map +0 -1
  2803. package/dist/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js.map +0 -1
  2804. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts +0 -10
  2805. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.d.ts.map +0 -1
  2806. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-colors.js.map +0 -1
  2807. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +0 -118
  2808. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +0 -1
  2809. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +0 -1
  2810. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +0 -131
  2811. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +0 -1
  2812. package/dist/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +0 -1
  2813. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts +0 -160
  2814. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts.map +0 -1
  2815. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js.map +0 -1
  2816. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.d.ts +0 -39
  2817. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.d.ts.map +0 -1
  2818. package/dist/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js.map +0 -1
  2819. package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +0 -399
  2820. package/dist/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +0 -1
  2821. package/dist/node_modules/@earendil-works/pi-tui/dist/tui.js.map +0 -1
  2822. package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts +0 -17
  2823. package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts.map +0 -1
  2824. package/dist/node_modules/@earendil-works/pi-tui/dist/undo-stack.js.map +0 -1
  2825. package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +0 -98
  2826. package/dist/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +0 -1
  2827. package/dist/node_modules/@earendil-works/pi-tui/dist/utils.js.map +0 -1
  2828. package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts +0 -25
  2829. package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts.map +0 -1
  2830. package/dist/node_modules/@earendil-works/pi-tui/dist/word-navigation.js.map +0 -1
  2831. package/dist/package-manager-cli.d.ts +0 -10
  2832. package/dist/package-manager-cli.d.ts.map +0 -1
  2833. package/dist/package-manager-cli.js.map +0 -1
  2834. package/dist/rpc-entry.d.ts +0 -3
  2835. package/dist/rpc-entry.d.ts.map +0 -1
  2836. package/dist/rpc-entry.js.map +0 -1
  2837. package/dist/server/create-harness.d.ts +0 -26
  2838. package/dist/server/create-harness.d.ts.map +0 -1
  2839. package/dist/server/create-harness.js +0 -106
  2840. package/dist/server/create-harness.js.map +0 -1
  2841. package/dist/utils/abort.d.ts +0 -5
  2842. package/dist/utils/abort.d.ts.map +0 -1
  2843. package/dist/utils/abort.js.map +0 -1
  2844. package/dist/utils/ansi.d.ts +0 -2
  2845. package/dist/utils/ansi.d.ts.map +0 -1
  2846. package/dist/utils/ansi.js.map +0 -1
  2847. package/dist/utils/changelog.d.ts +0 -57
  2848. package/dist/utils/changelog.d.ts.map +0 -1
  2849. package/dist/utils/changelog.js.map +0 -1
  2850. package/dist/utils/child-process.d.ts +0 -18
  2851. package/dist/utils/child-process.d.ts.map +0 -1
  2852. package/dist/utils/child-process.js.map +0 -1
  2853. package/dist/utils/clipboard-image.d.ts +0 -11
  2854. package/dist/utils/clipboard-image.d.ts.map +0 -1
  2855. package/dist/utils/clipboard-image.js.map +0 -1
  2856. package/dist/utils/clipboard-native.d.ts +0 -11
  2857. package/dist/utils/clipboard-native.d.ts.map +0 -1
  2858. package/dist/utils/clipboard-native.js.map +0 -1
  2859. package/dist/utils/clipboard.d.ts +0 -4
  2860. package/dist/utils/clipboard.d.ts.map +0 -1
  2861. package/dist/utils/clipboard.js.map +0 -1
  2862. package/dist/utils/deprecation.d.ts +0 -4
  2863. package/dist/utils/deprecation.d.ts.map +0 -1
  2864. package/dist/utils/deprecation.js.map +0 -1
  2865. package/dist/utils/exif-orientation.d.ts +0 -5
  2866. package/dist/utils/exif-orientation.d.ts.map +0 -1
  2867. package/dist/utils/exif-orientation.js.map +0 -1
  2868. package/dist/utils/frontmatter.d.ts +0 -8
  2869. package/dist/utils/frontmatter.d.ts.map +0 -1
  2870. package/dist/utils/frontmatter.js.map +0 -1
  2871. package/dist/utils/fs-watch.d.ts +0 -5
  2872. package/dist/utils/fs-watch.d.ts.map +0 -1
  2873. package/dist/utils/fs-watch.js.map +0 -1
  2874. package/dist/utils/git.d.ts +0 -26
  2875. package/dist/utils/git.d.ts.map +0 -1
  2876. package/dist/utils/git.js.map +0 -1
  2877. package/dist/utils/html.d.ts +0 -7
  2878. package/dist/utils/html.d.ts.map +0 -1
  2879. package/dist/utils/html.js.map +0 -1
  2880. package/dist/utils/image-convert.d.ts +0 -10
  2881. package/dist/utils/image-convert.d.ts.map +0 -1
  2882. package/dist/utils/image-convert.js.map +0 -1
  2883. package/dist/utils/image-process.d.ts +0 -18
  2884. package/dist/utils/image-process.d.ts.map +0 -1
  2885. package/dist/utils/image-process.js.map +0 -1
  2886. package/dist/utils/image-resize-core.d.ts +0 -30
  2887. package/dist/utils/image-resize-core.d.ts.map +0 -1
  2888. package/dist/utils/image-resize-core.js.map +0 -1
  2889. package/dist/utils/image-resize-worker.d.ts +0 -2
  2890. package/dist/utils/image-resize-worker.d.ts.map +0 -1
  2891. package/dist/utils/image-resize-worker.js.map +0 -1
  2892. package/dist/utils/image-resize.d.ts +0 -16
  2893. package/dist/utils/image-resize.d.ts.map +0 -1
  2894. package/dist/utils/image-resize.js.map +0 -1
  2895. package/dist/utils/json.d.ts +0 -3
  2896. package/dist/utils/json.d.ts.map +0 -1
  2897. package/dist/utils/json.js.map +0 -1
  2898. package/dist/utils/management-http.d.ts +0 -25
  2899. package/dist/utils/management-http.d.ts.map +0 -1
  2900. package/dist/utils/management-http.js.map +0 -1
  2901. package/dist/utils/mime.d.ts +0 -3
  2902. package/dist/utils/mime.d.ts.map +0 -1
  2903. package/dist/utils/mime.js.map +0 -1
  2904. package/dist/utils/offline.d.ts +0 -12
  2905. package/dist/utils/offline.d.ts.map +0 -1
  2906. package/dist/utils/offline.js.map +0 -1
  2907. package/dist/utils/open-browser.d.ts +0 -9
  2908. package/dist/utils/open-browser.d.ts.map +0 -1
  2909. package/dist/utils/open-browser.js.map +0 -1
  2910. package/dist/utils/paths.d.ts +0 -34
  2911. package/dist/utils/paths.d.ts.map +0 -1
  2912. package/dist/utils/paths.js.map +0 -1
  2913. package/dist/utils/photon.d.ts +0 -21
  2914. package/dist/utils/photon.d.ts.map +0 -1
  2915. package/dist/utils/photon.js.map +0 -1
  2916. package/dist/utils/pi-user-agent.d.ts +0 -2
  2917. package/dist/utils/pi-user-agent.d.ts.map +0 -1
  2918. package/dist/utils/pi-user-agent.js.map +0 -1
  2919. package/dist/utils/shell.d.ts +0 -34
  2920. package/dist/utils/shell.d.ts.map +0 -1
  2921. package/dist/utils/shell.js.map +0 -1
  2922. package/dist/utils/sleep.d.ts +0 -5
  2923. package/dist/utils/sleep.d.ts.map +0 -1
  2924. package/dist/utils/sleep.js.map +0 -1
  2925. package/dist/utils/syntax-highlight.d.ts +0 -13
  2926. package/dist/utils/syntax-highlight.d.ts.map +0 -1
  2927. package/dist/utils/syntax-highlight.js.map +0 -1
  2928. package/dist/utils/text.d.ts +0 -8
  2929. package/dist/utils/text.d.ts.map +0 -1
  2930. package/dist/utils/text.js.map +0 -1
  2931. package/dist/utils/tool-result-images.d.ts +0 -19
  2932. package/dist/utils/tool-result-images.d.ts.map +0 -1
  2933. package/dist/utils/tool-result-images.js.map +0 -1
  2934. package/dist/utils/tools-manager.d.ts +0 -13
  2935. package/dist/utils/tools-manager.d.ts.map +0 -1
  2936. package/dist/utils/tools-manager.js.map +0 -1
  2937. package/dist/utils/version-check.d.ts +0 -23
  2938. package/dist/utils/version-check.d.ts.map +0 -1
  2939. package/dist/utils/version-check.js.map +0 -1
  2940. package/dist/utils/windows-self-update.d.ts +0 -3
  2941. package/dist/utils/windows-self-update.d.ts.map +0 -1
  2942. package/dist/utils/windows-self-update.js.map +0 -1
  2943. package/examples/extensions/kimi-deferred-tools.ts +0 -61
@@ -1 +0,0 @@
1
- {"version":3,"file":"mouse-region.js","sourceRoot":"","sources":["../../src/components/mouse-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,kBAAkB,GAIlB,MAAM,WAAW,CAAC;AAInB,mFAAmF;AACnF,MAAM,OAAO,WAAW;IACN,KAAK,CAAY;IACjB,OAAO,CAAqB;IAE7C,YAAY,KAAgB,EAAE,OAA2B,EAAE;QAC1D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAAA,CACvB;IAED,MAAM,CAAC,KAAa,EAAY;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAAA,CAChC;IAED,WAAW,CAAC,KAAoB,EAA4D;QAC3F,MAAM,WAAW,GAAG,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1D,OAAO,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAAA,CAC1C;IAED,UAAU,GAAS;QAClB,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IAAA,CACxB;CACD","sourcesContent":["import {\n\ttype Component,\n\tdispatchMouseEvent,\n\ttype TuiMouseDispatchResult,\n\ttype TuiMouseEvent,\n\ttype TuiMouseEventResult,\n} from \"../tui.ts\";\n\nexport type MouseRegionHandler = (event: TuiMouseEvent) => TuiMouseEventResult | undefined;\n\n/** Adds mouse handling to an existing component without changing its rendering. */\nexport class MouseRegion implements Component {\n\tprivate readonly child: Component;\n\tprivate readonly onMouse: MouseRegionHandler;\n\n\tconstructor(child: Component, onMouse: MouseRegionHandler) {\n\t\tthis.child = child;\n\t\tthis.onMouse = onMouse;\n\t}\n\n\trender(width: number): string[] {\n\t\treturn this.child.render(width);\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseDispatchResult | TuiMouseEventResult | undefined {\n\t\tconst childResult = dispatchMouseEvent(this.child, event);\n\t\treturn childResult ?? this.onMouse(event);\n\t}\n\n\tinvalidate(): void {\n\t\tthis.child.invalidate();\n\t}\n}\n"]}
@@ -1,63 +0,0 @@
1
- import { LAYOUT_NODE, type ScrollLayoutNode } from "../layout-node.ts";
2
- import { type Component, Container } from "../tui.ts";
3
- export type ScrollViewScrollbar = "hidden" | "auto" | "always";
4
- export interface ScrollViewOptions {
5
- axis?: "vertical";
6
- follow?: "none" | "end";
7
- primary?: boolean;
8
- overscroll?: "chain" | "contain";
9
- scrollbar?: ScrollViewScrollbar;
10
- scrollbarTrackStyle?: (text: string) => string;
11
- scrollbarThumbStyle?: (text: string) => string;
12
- scrollbarHideDelayMs?: number;
13
- }
14
- export interface ScrollViewScrollToOptions {
15
- /** Keep follow-end disabled even when the target is the current content end. */
16
- disableFollow?: boolean;
17
- }
18
- export declare class ScrollView extends Container {
19
- private readonly child;
20
- readonly followEnd: boolean;
21
- readonly primary: boolean;
22
- readonly overscroll: "chain" | "contain";
23
- readonly scrollbarTrackStyle: (text: string) => string;
24
- readonly scrollbarThumbStyle: (text: string) => string;
25
- private currentScrollbar;
26
- private readonly scrollbarHideDelayMs;
27
- private currentScrollTop;
28
- private contentHeight;
29
- private currentViewportHeight;
30
- private followingEnd;
31
- private followSuppressedAtEnd;
32
- private unreadLines;
33
- private trackedContentHeight;
34
- private hasLaidOut;
35
- private requestRenderCallback;
36
- private transientScrollbarVisible;
37
- private scrollbarActive;
38
- private scrollbarHideTimer;
39
- constructor(component: Component, options?: ScrollViewOptions);
40
- get scrollTop(): number;
41
- get isFollowingEnd(): boolean;
42
- get unreadCount(): number;
43
- get viewportHeight(): number;
44
- get scrollbar(): ScrollViewScrollbar;
45
- get isScrollbarVisible(): boolean;
46
- get isScrollbarActive(): boolean;
47
- setScrollbar(scrollbar: ScrollViewScrollbar): void;
48
- getContentWidth(width: number): number;
49
- private markScrollbarActivity;
50
- private hideTransientScrollbar;
51
- setScrollbarActive(active: boolean): void;
52
- scrollTo(scrollTop: number, options?: ScrollViewScrollToOptions): void;
53
- scrollBy(lines: number): number;
54
- scrollToStart(): void;
55
- scrollToEnd(): void;
56
- updateLayout(contentHeight: number, viewportHeight: number, requestRender: () => void): void;
57
- addChild(_component: Component): void;
58
- removeChild(_component: Component): void;
59
- clear(): void;
60
- render(width: number): string[];
61
- [LAYOUT_NODE](): ScrollLayoutNode;
62
- }
63
- //# sourceMappingURL=scroll-view.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scroll-view.d.ts","sourceRoot":"","sources":["../../src/components/scroll-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,KAAK,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/D,MAAM,WAAW,iBAAiB;IACjC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,yBAAyB;IACzC,gFAAgF;IAChF,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,qBAAa,UAAW,SAAQ,SAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAY;IAClC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,mBAAmB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,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAe9B;IAED,aAAa,IAAI,IAAI,CAYpB;IAED,WAAW,IAAI,IAAI,CAWlB;IAED,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,IAAI,GAAG,IAAI,CAmB3F;IAEQ,QAAQ,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAE7C;IAEQ,WAAW,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAEhD;IAEQ,KAAK,IAAI,IAAI,CAErB;IAEQ,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAIvC;IAED,CAAC,WAAW,CAAC,IAAI,gBAAgB,CAEhC;CACD","sourcesContent":["import { LAYOUT_NODE, type ScrollLayoutNode } from \"../layout-node.ts\";\nimport { type Component, Container } from \"../tui.ts\";\n\nexport type ScrollViewScrollbar = \"hidden\" | \"auto\" | \"always\";\n\nexport interface ScrollViewOptions {\n\taxis?: \"vertical\";\n\tfollow?: \"none\" | \"end\";\n\tprimary?: boolean;\n\toverscroll?: \"chain\" | \"contain\";\n\tscrollbar?: ScrollViewScrollbar;\n\tscrollbarTrackStyle?: (text: string) => string;\n\tscrollbarThumbStyle?: (text: string) => string;\n\tscrollbarHideDelayMs?: number;\n}\n\nexport interface ScrollViewScrollToOptions {\n\t/** Keep follow-end disabled even when the target is the current content end. */\n\tdisableFollow?: boolean;\n}\n\nexport class ScrollView extends Container {\n\tprivate readonly child: Component;\n\treadonly followEnd: boolean;\n\treadonly primary: boolean;\n\treadonly overscroll: \"chain\" | \"contain\";\n\treadonly scrollbarTrackStyle: (text: string) => string;\n\treadonly scrollbarThumbStyle: (text: string) => string;\n\tprivate currentScrollbar: ScrollViewScrollbar;\n\tprivate readonly scrollbarHideDelayMs: number;\n\tprivate currentScrollTop = 0;\n\tprivate contentHeight = 0;\n\tprivate currentViewportHeight = 0;\n\tprivate followingEnd: boolean;\n\tprivate followSuppressedAtEnd = false;\n\tprivate unreadLines = 0;\n\tprivate trackedContentHeight = 0;\n\tprivate hasLaidOut = false;\n\tprivate requestRenderCallback: (() => void) | undefined;\n\tprivate transientScrollbarVisible = false;\n\tprivate scrollbarActive = false;\n\tprivate scrollbarHideTimer: NodeJS.Timeout | undefined;\n\n\tconstructor(component: Component, options: ScrollViewOptions = {}) {\n\t\tsuper();\n\t\tif (options.axis !== undefined && options.axis !== \"vertical\") {\n\t\t\tthrow new Error(`Unsupported ScrollView axis: ${options.axis}`);\n\t\t}\n\t\tthis.child = component;\n\t\tthis.children.push(component);\n\t\tthis.followEnd = (options.follow ?? \"none\") === \"end\";\n\t\tthis.followingEnd = this.followEnd;\n\t\tthis.primary = options.primary ?? false;\n\t\tthis.overscroll = options.overscroll ?? \"chain\";\n\t\tthis.currentScrollbar = options.scrollbar ?? \"hidden\";\n\t\tthis.scrollbarTrackStyle = options.scrollbarTrackStyle ?? ((text) => `\\x1b[90m${text}\\x1b[39m`);\n\t\tthis.scrollbarThumbStyle = options.scrollbarThumbStyle ?? ((text) => `\\x1b[37m${text}\\x1b[39m`);\n\t\tthis.scrollbarHideDelayMs = Math.max(0, Math.floor(options.scrollbarHideDelayMs ?? 1000));\n\t}\n\n\tget scrollTop(): number {\n\t\treturn this.currentScrollTop;\n\t}\n\n\tget isFollowingEnd(): boolean {\n\t\treturn this.followingEnd;\n\t}\n\n\tget unreadCount(): number {\n\t\treturn this.unreadLines;\n\t}\n\n\tget viewportHeight(): number {\n\t\treturn this.currentViewportHeight;\n\t}\n\n\tget scrollbar(): ScrollViewScrollbar {\n\t\treturn this.currentScrollbar;\n\t}\n\n\tget isScrollbarVisible(): boolean {\n\t\tif (this.scrollbar === \"always\") return this.currentViewportHeight > 0;\n\t\treturn (\n\t\t\tthis.scrollbar === \"auto\" && this.contentHeight > this.currentViewportHeight && this.transientScrollbarVisible\n\t\t);\n\t}\n\n\tget isScrollbarActive(): boolean {\n\t\treturn this.scrollbarActive;\n\t}\n\n\tsetScrollbar(scrollbar: ScrollViewScrollbar): void {\n\t\tif (scrollbar === this.currentScrollbar) return;\n\t\tthis.currentScrollbar = scrollbar;\n\t\tif (scrollbar !== \"auto\") this.hideTransientScrollbar();\n\t\telse if (this.scrollbarActive) this.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tgetContentWidth(width: number): number {\n\t\treturn this.scrollbar === \"always\" && width > 1 ? width - 1 : width;\n\t}\n\n\tprivate markScrollbarActivity(): void {\n\t\tif (this.scrollbar !== \"auto\" || this.contentHeight <= this.currentViewportHeight) return;\n\t\tthis.transientScrollbarVisible = true;\n\t\tif (this.scrollbarHideTimer) {\n\t\t\tclearTimeout(this.scrollbarHideTimer);\n\t\t\tthis.scrollbarHideTimer = undefined;\n\t\t}\n\t\tif (this.scrollbarActive) return;\n\t\tthis.scrollbarHideTimer = setTimeout(() => {\n\t\t\tthis.scrollbarHideTimer = undefined;\n\t\t\tthis.transientScrollbarVisible = false;\n\t\t\tthis.requestRenderCallback?.();\n\t\t}, this.scrollbarHideDelayMs);\n\t\tthis.scrollbarHideTimer.unref();\n\t}\n\n\tprivate hideTransientScrollbar(): void {\n\t\tthis.transientScrollbarVisible = false;\n\t\tif (!this.scrollbarHideTimer) return;\n\t\tclearTimeout(this.scrollbarHideTimer);\n\t\tthis.scrollbarHideTimer = undefined;\n\t}\n\n\tsetScrollbarActive(active: boolean): void {\n\t\tif (active === this.scrollbarActive) return;\n\t\tthis.scrollbarActive = active;\n\t\tthis.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tscrollTo(scrollTop: number, options: ScrollViewScrollToOptions = {}): void {\n\t\tconst requested = Number.isFinite(scrollTop) ? Math.trunc(scrollTop) : this.currentScrollTop;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst next = Math.max(0, Math.min(maxScrollTop, requested));\n\t\tconst nextFollowSuppressedAtEnd = options.disableFollow === true && next === maxScrollTop;\n\t\tconst nextFollowingEnd = !nextFollowSuppressedAtEnd && this.followEnd && next === maxScrollTop;\n\t\tif (\n\t\t\tnext === this.currentScrollTop &&\n\t\t\tnextFollowingEnd === this.followingEnd &&\n\t\t\tnextFollowSuppressedAtEnd === this.followSuppressedAtEnd\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst moved = next !== this.currentScrollTop;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = nextFollowingEnd;\n\t\tthis.followSuppressedAtEnd = nextFollowSuppressedAtEnd;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (moved) this.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tscrollBy(lines: number): number {\n\t\tconst requested = Number.isFinite(lines) ? Math.trunc(lines) : 0;\n\t\tif (requested === 0) return 0;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst start = this.followingEnd ? maxScrollTop : this.currentScrollTop;\n\t\tconst next = Math.max(0, Math.min(maxScrollTop, start + requested));\n\t\tconst moved = next - start;\n\t\tconst wasFollowingEnd = this.followingEnd;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = this.followEnd && next === maxScrollTop;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (moved !== 0) this.markScrollbarActivity();\n\t\tif (moved !== 0 || this.followingEnd !== wasFollowingEnd) this.requestRenderCallback?.();\n\t\treturn requested - moved;\n\t}\n\n\tscrollToStart(): void {\n\t\tconst changed =\n\t\t\tthis.currentScrollTop !== 0 ||\n\t\t\tthis.followingEnd !== (this.followEnd && this.contentHeight <= this.currentViewportHeight);\n\t\tthis.currentScrollTop = 0;\n\t\tthis.followingEnd = this.followEnd && this.contentHeight <= this.currentViewportHeight;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (changed) {\n\t\t\tthis.markScrollbarActivity();\n\t\t\tthis.requestRenderCallback?.();\n\t\t}\n\t}\n\n\tscrollToEnd(): void {\n\t\tconst next = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst changed = this.currentScrollTop !== next || this.followingEnd !== this.followEnd;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = this.followEnd;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tthis.unreadLines = 0;\n\t\tif (changed) {\n\t\t\tthis.markScrollbarActivity();\n\t\t\tthis.requestRenderCallback?.();\n\t\t}\n\t}\n\n\tupdateLayout(contentHeight: number, viewportHeight: number, requestRender: () => void): void {\n\t\tconst nextHeight = Math.max(0, Math.floor(contentHeight));\n\t\tif (this.hasLaidOut && !this.followingEnd && nextHeight > this.trackedContentHeight) {\n\t\t\tthis.unreadLines += nextHeight - this.trackedContentHeight;\n\t\t}\n\t\tthis.hasLaidOut = true;\n\t\tthis.trackedContentHeight = nextHeight;\n\t\tthis.contentHeight = nextHeight;\n\t\tthis.currentViewportHeight = Math.max(0, Math.floor(viewportHeight));\n\t\tthis.requestRenderCallback = requestRender;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tif (this.followingEnd) this.currentScrollTop = maxScrollTop;\n\t\telse this.currentScrollTop = Math.max(0, Math.min(this.currentScrollTop, maxScrollTop));\n\t\tif (this.currentScrollTop < maxScrollTop) this.followSuppressedAtEnd = false;\n\t\tif (this.followEnd && this.currentScrollTop === maxScrollTop && !this.followSuppressedAtEnd) {\n\t\t\tthis.followingEnd = true;\n\t\t}\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (this.contentHeight <= this.currentViewportHeight) this.hideTransientScrollbar();\n\t}\n\n\toverride addChild(_component: Component): void {\n\t\tthrow new Error(\"ScrollView has exactly one child\");\n\t}\n\n\toverride removeChild(_component: Component): void {\n\t\tthrow new Error(\"ScrollView child cannot be removed\");\n\t}\n\n\toverride clear(): void {\n\t\tthrow new Error(\"ScrollView child cannot be cleared\");\n\t}\n\n\toverride render(width: number): string[] {\n\t\tconst contentWidth = this.getContentWidth(width);\n\t\tconst lines = this.child.render(contentWidth);\n\t\treturn contentWidth === width ? lines : lines.map((line) => `${line} `);\n\t}\n\n\t[LAYOUT_NODE](): ScrollLayoutNode {\n\t\treturn { type: \"scroll\", component: this.child, state: this };\n\t}\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scroll-view.js","sourceRoot":"","sources":["../../src/components/scroll-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAkB,SAAS,EAAE,MAAM,WAAW,CAAC;AAoBtD,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvB,KAAK,CAAY;IACzB,SAAS,CAAU;IACnB,OAAO,CAAU;IACjB,UAAU,CAAsB;IAChC,mBAAmB,CAA2B;IAC9C,mBAAmB,CAA2B;IAC/C,gBAAgB,CAAsB;IAC7B,oBAAoB,CAAS;IACtC,gBAAgB,GAAG,CAAC,CAAC;IACrB,aAAa,GAAG,CAAC,CAAC;IAClB,qBAAqB,GAAG,CAAC,CAAC;IAC1B,YAAY,CAAU;IACtB,qBAAqB,GAAG,KAAK,CAAC;IAC9B,WAAW,GAAG,CAAC,CAAC;IAChB,oBAAoB,GAAG,CAAC,CAAC;IACzB,UAAU,GAAG,KAAK,CAAC;IACnB,qBAAqB,CAA2B;IAChD,yBAAyB,GAAG,KAAK,CAAC;IAClC,eAAe,GAAG,KAAK,CAAC;IACxB,kBAAkB,CAA6B;IAEvD,YAAY,SAAoB,EAAE,OAAO,GAAsB,EAAE,EAAE;QAClE,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAC/D,MAAM,IAAI,KAAK,CAAC,gCAAgC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QACjE,CAAC;QACD,IAAI,CAAC,KAAK,GA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C,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IAAA,CACxE;IAED,CAAC,WAAW,CAAC,GAAqB;QACjC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAAA,CAC9D;CACD","sourcesContent":["import { LAYOUT_NODE, type ScrollLayoutNode } from \"../layout-node.ts\";\nimport { type Component, Container } from \"../tui.ts\";\n\nexport type ScrollViewScrollbar = \"hidden\" | \"auto\" | \"always\";\n\nexport interface ScrollViewOptions {\n\taxis?: \"vertical\";\n\tfollow?: \"none\" | \"end\";\n\tprimary?: boolean;\n\toverscroll?: \"chain\" | \"contain\";\n\tscrollbar?: ScrollViewScrollbar;\n\tscrollbarTrackStyle?: (text: string) => string;\n\tscrollbarThumbStyle?: (text: string) => string;\n\tscrollbarHideDelayMs?: number;\n}\n\nexport interface ScrollViewScrollToOptions {\n\t/** Keep follow-end disabled even when the target is the current content end. */\n\tdisableFollow?: boolean;\n}\n\nexport class ScrollView extends Container {\n\tprivate readonly child: Component;\n\treadonly followEnd: boolean;\n\treadonly primary: boolean;\n\treadonly overscroll: \"chain\" | \"contain\";\n\treadonly scrollbarTrackStyle: (text: string) => string;\n\treadonly scrollbarThumbStyle: (text: string) => string;\n\tprivate currentScrollbar: ScrollViewScrollbar;\n\tprivate readonly scrollbarHideDelayMs: number;\n\tprivate currentScrollTop = 0;\n\tprivate contentHeight = 0;\n\tprivate currentViewportHeight = 0;\n\tprivate followingEnd: boolean;\n\tprivate followSuppressedAtEnd = false;\n\tprivate unreadLines = 0;\n\tprivate trackedContentHeight = 0;\n\tprivate hasLaidOut = false;\n\tprivate requestRenderCallback: (() => void) | undefined;\n\tprivate transientScrollbarVisible = false;\n\tprivate scrollbarActive = false;\n\tprivate scrollbarHideTimer: NodeJS.Timeout | undefined;\n\n\tconstructor(component: Component, options: ScrollViewOptions = {}) {\n\t\tsuper();\n\t\tif (options.axis !== undefined && options.axis !== \"vertical\") {\n\t\t\tthrow new Error(`Unsupported ScrollView axis: ${options.axis}`);\n\t\t}\n\t\tthis.child = component;\n\t\tthis.children.push(component);\n\t\tthis.followEnd = (options.follow ?? \"none\") === \"end\";\n\t\tthis.followingEnd = this.followEnd;\n\t\tthis.primary = options.primary ?? false;\n\t\tthis.overscroll = options.overscroll ?? \"chain\";\n\t\tthis.currentScrollbar = options.scrollbar ?? \"hidden\";\n\t\tthis.scrollbarTrackStyle = options.scrollbarTrackStyle ?? ((text) => `\\x1b[90m${text}\\x1b[39m`);\n\t\tthis.scrollbarThumbStyle = options.scrollbarThumbStyle ?? ((text) => `\\x1b[37m${text}\\x1b[39m`);\n\t\tthis.scrollbarHideDelayMs = Math.max(0, Math.floor(options.scrollbarHideDelayMs ?? 1000));\n\t}\n\n\tget scrollTop(): number {\n\t\treturn this.currentScrollTop;\n\t}\n\n\tget isFollowingEnd(): boolean {\n\t\treturn this.followingEnd;\n\t}\n\n\tget unreadCount(): number {\n\t\treturn this.unreadLines;\n\t}\n\n\tget viewportHeight(): number {\n\t\treturn this.currentViewportHeight;\n\t}\n\n\tget scrollbar(): ScrollViewScrollbar {\n\t\treturn this.currentScrollbar;\n\t}\n\n\tget isScrollbarVisible(): boolean {\n\t\tif (this.scrollbar === \"always\") return this.currentViewportHeight > 0;\n\t\treturn (\n\t\t\tthis.scrollbar === \"auto\" && this.contentHeight > this.currentViewportHeight && this.transientScrollbarVisible\n\t\t);\n\t}\n\n\tget isScrollbarActive(): boolean {\n\t\treturn this.scrollbarActive;\n\t}\n\n\tsetScrollbar(scrollbar: ScrollViewScrollbar): void {\n\t\tif (scrollbar === this.currentScrollbar) return;\n\t\tthis.currentScrollbar = scrollbar;\n\t\tif (scrollbar !== \"auto\") this.hideTransientScrollbar();\n\t\telse if (this.scrollbarActive) this.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tgetContentWidth(width: number): number {\n\t\treturn this.scrollbar === \"always\" && width > 1 ? width - 1 : width;\n\t}\n\n\tprivate markScrollbarActivity(): void {\n\t\tif (this.scrollbar !== \"auto\" || this.contentHeight <= this.currentViewportHeight) return;\n\t\tthis.transientScrollbarVisible = true;\n\t\tif (this.scrollbarHideTimer) {\n\t\t\tclearTimeout(this.scrollbarHideTimer);\n\t\t\tthis.scrollbarHideTimer = undefined;\n\t\t}\n\t\tif (this.scrollbarActive) return;\n\t\tthis.scrollbarHideTimer = setTimeout(() => {\n\t\t\tthis.scrollbarHideTimer = undefined;\n\t\t\tthis.transientScrollbarVisible = false;\n\t\t\tthis.requestRenderCallback?.();\n\t\t}, this.scrollbarHideDelayMs);\n\t\tthis.scrollbarHideTimer.unref();\n\t}\n\n\tprivate hideTransientScrollbar(): void {\n\t\tthis.transientScrollbarVisible = false;\n\t\tif (!this.scrollbarHideTimer) return;\n\t\tclearTimeout(this.scrollbarHideTimer);\n\t\tthis.scrollbarHideTimer = undefined;\n\t}\n\n\tsetScrollbarActive(active: boolean): void {\n\t\tif (active === this.scrollbarActive) return;\n\t\tthis.scrollbarActive = active;\n\t\tthis.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tscrollTo(scrollTop: number, options: ScrollViewScrollToOptions = {}): void {\n\t\tconst requested = Number.isFinite(scrollTop) ? Math.trunc(scrollTop) : this.currentScrollTop;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst next = Math.max(0, Math.min(maxScrollTop, requested));\n\t\tconst nextFollowSuppressedAtEnd = options.disableFollow === true && next === maxScrollTop;\n\t\tconst nextFollowingEnd = !nextFollowSuppressedAtEnd && this.followEnd && next === maxScrollTop;\n\t\tif (\n\t\t\tnext === this.currentScrollTop &&\n\t\t\tnextFollowingEnd === this.followingEnd &&\n\t\t\tnextFollowSuppressedAtEnd === this.followSuppressedAtEnd\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst moved = next !== this.currentScrollTop;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = nextFollowingEnd;\n\t\tthis.followSuppressedAtEnd = nextFollowSuppressedAtEnd;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (moved) this.markScrollbarActivity();\n\t\tthis.requestRenderCallback?.();\n\t}\n\n\tscrollBy(lines: number): number {\n\t\tconst requested = Number.isFinite(lines) ? Math.trunc(lines) : 0;\n\t\tif (requested === 0) return 0;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst start = this.followingEnd ? maxScrollTop : this.currentScrollTop;\n\t\tconst next = Math.max(0, Math.min(maxScrollTop, start + requested));\n\t\tconst moved = next - start;\n\t\tconst wasFollowingEnd = this.followingEnd;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = this.followEnd && next === maxScrollTop;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (moved !== 0) this.markScrollbarActivity();\n\t\tif (moved !== 0 || this.followingEnd !== wasFollowingEnd) this.requestRenderCallback?.();\n\t\treturn requested - moved;\n\t}\n\n\tscrollToStart(): void {\n\t\tconst changed =\n\t\t\tthis.currentScrollTop !== 0 ||\n\t\t\tthis.followingEnd !== (this.followEnd && this.contentHeight <= this.currentViewportHeight);\n\t\tthis.currentScrollTop = 0;\n\t\tthis.followingEnd = this.followEnd && this.contentHeight <= this.currentViewportHeight;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (changed) {\n\t\t\tthis.markScrollbarActivity();\n\t\t\tthis.requestRenderCallback?.();\n\t\t}\n\t}\n\n\tscrollToEnd(): void {\n\t\tconst next = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tconst changed = this.currentScrollTop !== next || this.followingEnd !== this.followEnd;\n\t\tthis.currentScrollTop = next;\n\t\tthis.followingEnd = this.followEnd;\n\t\tthis.followSuppressedAtEnd = false;\n\t\tthis.unreadLines = 0;\n\t\tif (changed) {\n\t\t\tthis.markScrollbarActivity();\n\t\t\tthis.requestRenderCallback?.();\n\t\t}\n\t}\n\n\tupdateLayout(contentHeight: number, viewportHeight: number, requestRender: () => void): void {\n\t\tconst nextHeight = Math.max(0, Math.floor(contentHeight));\n\t\tif (this.hasLaidOut && !this.followingEnd && nextHeight > this.trackedContentHeight) {\n\t\t\tthis.unreadLines += nextHeight - this.trackedContentHeight;\n\t\t}\n\t\tthis.hasLaidOut = true;\n\t\tthis.trackedContentHeight = nextHeight;\n\t\tthis.contentHeight = nextHeight;\n\t\tthis.currentViewportHeight = Math.max(0, Math.floor(viewportHeight));\n\t\tthis.requestRenderCallback = requestRender;\n\t\tconst maxScrollTop = Math.max(0, this.contentHeight - this.currentViewportHeight);\n\t\tif (this.followingEnd) this.currentScrollTop = maxScrollTop;\n\t\telse this.currentScrollTop = Math.max(0, Math.min(this.currentScrollTop, maxScrollTop));\n\t\tif (this.currentScrollTop < maxScrollTop) this.followSuppressedAtEnd = false;\n\t\tif (this.followEnd && this.currentScrollTop === maxScrollTop && !this.followSuppressedAtEnd) {\n\t\t\tthis.followingEnd = true;\n\t\t}\n\t\tif (this.followingEnd) this.unreadLines = 0;\n\t\tif (this.contentHeight <= this.currentViewportHeight) this.hideTransientScrollbar();\n\t}\n\n\toverride addChild(_component: Component): void {\n\t\tthrow new Error(\"ScrollView has exactly one child\");\n\t}\n\n\toverride removeChild(_component: Component): void {\n\t\tthrow new Error(\"ScrollView child cannot be removed\");\n\t}\n\n\toverride clear(): void {\n\t\tthrow new Error(\"ScrollView child cannot be cleared\");\n\t}\n\n\toverride render(width: number): string[] {\n\t\tconst contentWidth = this.getContentWidth(width);\n\t\tconst lines = this.child.render(contentWidth);\n\t\treturn contentWidth === width ? lines : lines.map((line) => `${line} `);\n\t}\n\n\t[LAYOUT_NODE](): ScrollLayoutNode {\n\t\treturn { type: \"scroll\", component: this.child, state: this };\n\t}\n}\n"]}
@@ -1,53 +0,0 @@
1
- import type { Component, TuiMouseEvent, TuiMouseEventResult } from "../tui.ts";
2
- export interface SelectItem {
3
- value: string;
4
- label: string;
5
- description?: string;
6
- }
7
- export interface SelectListTheme {
8
- selectedPrefix: (text: string) => string;
9
- selectedText: (text: string) => string;
10
- description: (text: string) => string;
11
- scrollInfo: (text: string) => string;
12
- noMatch: (text: string) => string;
13
- }
14
- export interface SelectListTruncatePrimaryContext {
15
- text: string;
16
- maxWidth: number;
17
- columnWidth: number;
18
- item: SelectItem;
19
- isSelected: boolean;
20
- }
21
- export interface SelectListLayoutOptions {
22
- minPrimaryColumnWidth?: number;
23
- maxPrimaryColumnWidth?: number;
24
- truncatePrimary?: (context: SelectListTruncatePrimaryContext) => string;
25
- }
26
- export declare class SelectList implements Component {
27
- private items;
28
- private filteredItems;
29
- private selectedIndex;
30
- private mousePressedIndex;
31
- private maxVisible;
32
- private theme;
33
- private layout;
34
- onSelect?: (item: SelectItem) => void;
35
- onCancel?: () => void;
36
- onSelectionChange?: (item: SelectItem) => void;
37
- constructor(items: SelectItem[], maxVisible: number, theme: SelectListTheme, layout?: SelectListLayoutOptions);
38
- setFilter(filter: string): void;
39
- setSelectedIndex(index: number): void;
40
- invalidate(): void;
41
- render(width: number): string[];
42
- handleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined;
43
- handleInput(keyData: string): void;
44
- private getVisibleRange;
45
- private renderItem;
46
- private getPrimaryColumnWidth;
47
- private getPrimaryColumnBounds;
48
- private truncatePrimary;
49
- private getDisplayValue;
50
- private notifySelectionChange;
51
- getSelectedItem(): SelectItem | null;
52
- }
53
- //# sourceMappingURL=select-list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"select-list.d.ts","sourceRoot":"","sources":["../../src/components/select-list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAU/E,MAAM,WAAW,UAA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EtD,YAAY,KAAK,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,GAAE,uBAA4B,EAMhH;IAED,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAI9B;IAED,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAEpC;IAED,UAAU,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAgC9B;IAED,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,mBAAmB,GAAG,SAAS,CAkCjE;IAED,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAyBjC;IAED,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,UAAU;IAuClB,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,sBAAsB;IAY9B,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,qBAAqB;IAO7B,eAAe,IAAI,UAAU,GAAG,IAAI,CAGnC;CACD","sourcesContent":["import { getKeybindings } from \"../keybindings.ts\";\nimport type { Component, TuiMouseEvent, TuiMouseEventResult } from \"../tui.ts\";\nimport { truncateToWidth, visibleWidth } from \"../utils.ts\";\n\nconst DEFAULT_PRIMARY_COLUMN_WIDTH = 32;\nconst PRIMARY_COLUMN_GAP = 2;\nconst MIN_DESCRIPTION_WIDTH = 10;\n\nconst normalizeToSingleLine = (text: string): string => text.replace(/[\\r\\n]+/g, \" \").trim();\nconst clamp = (value: number, min: number, max: number): number => Math.max(min, Math.min(value, max));\n\nexport interface SelectItem {\n\tvalue: string;\n\tlabel: string;\n\tdescription?: string;\n}\n\nexport interface SelectListTheme {\n\tselectedPrefix: (text: string) => string;\n\tselectedText: (text: string) => string;\n\tdescription: (text: string) => string;\n\tscrollInfo: (text: string) => string;\n\tnoMatch: (text: string) => string;\n}\n\nexport interface SelectListTruncatePrimaryContext {\n\ttext: string;\n\tmaxWidth: number;\n\tcolumnWidth: number;\n\titem: SelectItem;\n\tisSelected: boolean;\n}\n\nexport interface SelectListLayoutOptions {\n\tminPrimaryColumnWidth?: number;\n\tmaxPrimaryColumnWidth?: number;\n\ttruncatePrimary?: (context: SelectListTruncatePrimaryContext) => string;\n}\n\nexport class SelectList implements Component {\n\tprivate items: SelectItem[] = [];\n\tprivate filteredItems: SelectItem[] = [];\n\tprivate selectedIndex: number = 0;\n\tprivate mousePressedIndex: number | undefined;\n\tprivate maxVisible: number = 5;\n\tprivate theme: SelectListTheme;\n\tprivate layout: SelectListLayoutOptions;\n\n\tpublic onSelect?: (item: SelectItem) => void;\n\tpublic onCancel?: () => void;\n\tpublic onSelectionChange?: (item: SelectItem) => void;\n\n\tconstructor(items: SelectItem[], maxVisible: number, theme: SelectListTheme, layout: SelectListLayoutOptions = {}) {\n\t\tthis.items = items;\n\t\tthis.filteredItems = items;\n\t\tthis.maxVisible = maxVisible;\n\t\tthis.theme = theme;\n\t\tthis.layout = layout;\n\t}\n\n\tsetFilter(filter: string): void {\n\t\tthis.filteredItems = this.items.filter((item) => item.value.toLowerCase().startsWith(filter.toLowerCase()));\n\t\t// Reset selection when filter changes\n\t\tthis.selectedIndex = 0;\n\t}\n\n\tsetSelectedIndex(index: number): void {\n\t\tthis.selectedIndex = Math.max(0, Math.min(index, this.filteredItems.length - 1));\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(width: number): string[] {\n\t\tconst lines: string[] = [];\n\n\t\t// If no items match filter, show message\n\t\tif (this.filteredItems.length === 0) {\n\t\t\tlines.push(this.theme.noMatch(\" No matching commands\"));\n\t\t\treturn lines;\n\t\t}\n\n\t\tconst primaryColumnWidth = this.getPrimaryColumnWidth();\n\n\t\t// Calculate visible range with scrolling\n\t\tconst { startIndex, endIndex } = this.getVisibleRange();\n\n\t\t// Render visible items\n\t\tfor (let i = startIndex; i < endIndex; i++) {\n\t\t\tconst item = this.filteredItems[i];\n\t\t\tif (!item) continue;\n\n\t\t\tconst isSelected = i === this.selectedIndex;\n\t\t\tconst descriptionSingleLine = item.description ? normalizeToSingleLine(item.description) : undefined;\n\t\t\tlines.push(this.renderItem(item, isSelected, width, descriptionSingleLine, primaryColumnWidth));\n\t\t}\n\n\t\t// Add scroll indicators if needed\n\t\tif (startIndex > 0 || endIndex < this.filteredItems.length) {\n\t\t\tconst scrollText = ` (${this.selectedIndex + 1}/${this.filteredItems.length})`;\n\t\t\t// Truncate if too long for terminal\n\t\t\tlines.push(this.theme.scrollInfo(truncateToWidth(scrollText, width - 2, \"\")));\n\t\t}\n\n\t\treturn lines;\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {\n\t\tif (this.filteredItems.length === 0) return undefined;\n\t\tif (event.type === \"wheel\" && event.wheelDelta) {\n\t\t\tconst delta = event.wheelDelta < 0 ? -1 : 1;\n\t\t\tconst previousIndex = this.selectedIndex;\n\t\t\tthis.selectedIndex = Math.max(0, Math.min(this.filteredItems.length - 1, this.selectedIndex + delta));\n\t\t\tif (this.selectedIndex !== previousIndex) this.notifySelectionChange();\n\t\t\treturn { handled: true, render: this.selectedIndex !== previousIndex };\n\t\t}\n\t\t// Hover must not change selection: the visible range is centered on it.\n\t\tif (event.button !== \"left\" || (event.type !== \"press\" && event.type !== \"click\")) return undefined;\n\t\tconst { startIndex, endIndex } = this.getVisibleRange();\n\t\tconst itemIndex = startIndex + event.y;\n\t\tif (itemIndex < startIndex || itemIndex >= endIndex) return undefined;\n\n\t\tif (event.type === \"press\") {\n\t\t\tthis.mousePressedIndex = itemIndex;\n\t\t\tif (this.selectedIndex !== itemIndex) {\n\t\t\t\tthis.selectedIndex = itemIndex;\n\t\t\t\tthis.notifySelectionChange();\n\t\t\t}\n\t\t\treturn { handled: true, focus: true };\n\t\t}\n\t\tif (event.type === \"click\") {\n\t\t\tconst clickedIndex = this.mousePressedIndex ?? itemIndex;\n\t\t\tthis.mousePressedIndex = undefined;\n\t\t\tconst changed = this.selectedIndex !== clickedIndex;\n\t\t\tthis.selectedIndex = clickedIndex;\n\t\t\tif (changed) this.notifySelectionChange();\n\t\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\t\tif (selectedItem) this.onSelect?.(selectedItem);\n\t\t\treturn { handled: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\thandleInput(keyData: string): void {\n\t\tconst kb = getKeybindings();\n\t\t// Up arrow - wrap to bottom when at top\n\t\tif (kb.matches(keyData, \"tui.select.up\")) {\n\t\t\tthis.selectedIndex = this.selectedIndex === 0 ? this.filteredItems.length - 1 : this.selectedIndex - 1;\n\t\t\tthis.notifySelectionChange();\n\t\t}\n\t\t// Down arrow - wrap to top when at bottom\n\t\telse if (kb.matches(keyData, \"tui.select.down\")) {\n\t\t\tthis.selectedIndex = this.selectedIndex === this.filteredItems.length - 1 ? 0 : this.selectedIndex + 1;\n\t\t\tthis.notifySelectionChange();\n\t\t}\n\t\t// Enter\n\t\telse if (kb.matches(keyData, \"tui.select.confirm\")) {\n\t\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\t\tif (selectedItem && this.onSelect) {\n\t\t\t\tthis.onSelect(selectedItem);\n\t\t\t}\n\t\t}\n\t\t// Escape or Ctrl+C\n\t\telse if (kb.matches(keyData, \"tui.select.cancel\")) {\n\t\t\tif (this.onCancel) {\n\t\t\t\tthis.onCancel();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate getVisibleRange(): { startIndex: number; endIndex: number } {\n\t\tconst startIndex = Math.max(\n\t\t\t0,\n\t\t\tMath.min(this.selectedIndex - Math.floor(this.maxVisible / 2), this.filteredItems.length - this.maxVisible),\n\t\t);\n\t\treturn {\n\t\t\tstartIndex,\n\t\t\tendIndex: Math.min(startIndex + this.maxVisible, this.filteredItems.length),\n\t\t};\n\t}\n\n\tprivate renderItem(\n\t\titem: SelectItem,\n\t\tisSelected: boolean,\n\t\twidth: number,\n\t\tdescriptionSingleLine: string | undefined,\n\t\tprimaryColumnWidth: number,\n\t): string {\n\t\tconst prefix = isSelected ? \"→ \" : \" \";\n\t\tconst prefixWidth = visibleWidth(prefix);\n\n\t\tif (descriptionSingleLine && width > 40) {\n\t\t\tconst effectivePrimaryColumnWidth = Math.max(1, Math.min(primaryColumnWidth, width - prefixWidth - 4));\n\t\t\tconst maxPrimaryWidth = Math.max(1, effectivePrimaryColumnWidth - PRIMARY_COLUMN_GAP);\n\t\t\tconst truncatedValue = this.truncatePrimary(item, isSelected, maxPrimaryWidth, effectivePrimaryColumnWidth);\n\t\t\tconst truncatedValueWidth = visibleWidth(truncatedValue);\n\t\t\tconst spacing = \" \".repeat(Math.max(1, effectivePrimaryColumnWidth - truncatedValueWidth));\n\t\t\tconst descriptionStart = prefixWidth + truncatedValueWidth + spacing.length;\n\t\t\tconst remainingWidth = width - descriptionStart - 2; // -2 for safety\n\n\t\t\tif (remainingWidth > MIN_DESCRIPTION_WIDTH) {\n\t\t\t\tconst truncatedDesc = truncateToWidth(descriptionSingleLine, remainingWidth, \"\");\n\t\t\t\tif (isSelected) {\n\t\t\t\t\treturn this.theme.selectedText(`${prefix}${truncatedValue}${spacing}${truncatedDesc}`);\n\t\t\t\t}\n\n\t\t\t\tconst descText = this.theme.description(spacing + truncatedDesc);\n\t\t\t\treturn prefix + truncatedValue + descText;\n\t\t\t}\n\t\t}\n\n\t\tconst maxWidth = width - prefixWidth - 2;\n\t\tconst truncatedValue = this.truncatePrimary(item, isSelected, maxWidth, maxWidth);\n\t\tif (isSelected) {\n\t\t\treturn this.theme.selectedText(`${prefix}${truncatedValue}`);\n\t\t}\n\n\t\treturn prefix + truncatedValue;\n\t}\n\n\tprivate getPrimaryColumnWidth(): number {\n\t\tconst { min, max } = this.getPrimaryColumnBounds();\n\t\tconst widestPrimary = this.filteredItems.reduce((widest, item) => {\n\t\t\treturn Math.max(widest, visibleWidth(this.getDisplayValue(item)) + PRIMARY_COLUMN_GAP);\n\t\t}, 0);\n\n\t\treturn clamp(widestPrimary, min, max);\n\t}\n\n\tprivate getPrimaryColumnBounds(): { min: number; max: number } {\n\t\tconst rawMin =\n\t\t\tthis.layout.minPrimaryColumnWidth ?? this.layout.maxPrimaryColumnWidth ?? DEFAULT_PRIMARY_COLUMN_WIDTH;\n\t\tconst rawMax =\n\t\t\tthis.layout.maxPrimaryColumnWidth ?? this.layout.minPrimaryColumnWidth ?? DEFAULT_PRIMARY_COLUMN_WIDTH;\n\n\t\treturn {\n\t\t\tmin: Math.max(1, Math.min(rawMin, rawMax)),\n\t\t\tmax: Math.max(1, Math.max(rawMin, rawMax)),\n\t\t};\n\t}\n\n\tprivate truncatePrimary(item: SelectItem, isSelected: boolean, maxWidth: number, columnWidth: number): string {\n\t\tconst displayValue = this.getDisplayValue(item);\n\t\tconst truncatedValue = this.layout.truncatePrimary\n\t\t\t? this.layout.truncatePrimary({\n\t\t\t\t\ttext: displayValue,\n\t\t\t\t\tmaxWidth,\n\t\t\t\t\tcolumnWidth,\n\t\t\t\t\titem,\n\t\t\t\t\tisSelected,\n\t\t\t\t})\n\t\t\t: truncateToWidth(displayValue, maxWidth, \"\");\n\n\t\treturn truncateToWidth(truncatedValue, maxWidth, \"\");\n\t}\n\n\tprivate getDisplayValue(item: SelectItem): string {\n\t\treturn item.label || item.value;\n\t}\n\n\tprivate notifySelectionChange(): void {\n\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\tif (selectedItem && this.onSelectionChange) {\n\t\t\tthis.onSelectionChange(selectedItem);\n\t\t}\n\t}\n\n\tgetSelectedItem(): SelectItem | null {\n\t\tconst item = this.filteredItems[this.selectedIndex];\n\t\treturn item || null;\n\t}\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"select-list.js","sourceRoot":"","sources":["../../src/components/select-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,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AAC,KAAK,CAAC;IAAA,CAChC;IAEO,qBAAqB,GAAS;QACrC,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC5D,IAAI,YAAY,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC5C,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC;IAAA,CACD;IAED,eAAe,GAAsB;QACpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACpD,OAAO,IAAI,IAAI,IAAI,CAAC;IAAA,CACpB;CACD","sourcesContent":["import { getKeybindings } from \"../keybindings.ts\";\nimport type { Component, TuiMouseEvent, TuiMouseEventResult } from \"../tui.ts\";\nimport { truncateToWidth, visibleWidth } from \"../utils.ts\";\n\nconst DEFAULT_PRIMARY_COLUMN_WIDTH = 32;\nconst PRIMARY_COLUMN_GAP = 2;\nconst MIN_DESCRIPTION_WIDTH = 10;\n\nconst normalizeToSingleLine = (text: string): string => text.replace(/[\\r\\n]+/g, \" \").trim();\nconst clamp = (value: number, min: number, max: number): number => Math.max(min, Math.min(value, max));\n\nexport interface SelectItem {\n\tvalue: string;\n\tlabel: string;\n\tdescription?: string;\n}\n\nexport interface SelectListTheme {\n\tselectedPrefix: (text: string) => string;\n\tselectedText: (text: string) => string;\n\tdescription: (text: string) => string;\n\tscrollInfo: (text: string) => string;\n\tnoMatch: (text: string) => string;\n}\n\nexport interface SelectListTruncatePrimaryContext {\n\ttext: string;\n\tmaxWidth: number;\n\tcolumnWidth: number;\n\titem: SelectItem;\n\tisSelected: boolean;\n}\n\nexport interface SelectListLayoutOptions {\n\tminPrimaryColumnWidth?: number;\n\tmaxPrimaryColumnWidth?: number;\n\ttruncatePrimary?: (context: SelectListTruncatePrimaryContext) => string;\n}\n\nexport class SelectList implements Component {\n\tprivate items: SelectItem[] = [];\n\tprivate filteredItems: SelectItem[] = [];\n\tprivate selectedIndex: number = 0;\n\tprivate mousePressedIndex: number | undefined;\n\tprivate maxVisible: number = 5;\n\tprivate theme: SelectListTheme;\n\tprivate layout: SelectListLayoutOptions;\n\n\tpublic onSelect?: (item: SelectItem) => void;\n\tpublic onCancel?: () => void;\n\tpublic onSelectionChange?: (item: SelectItem) => void;\n\n\tconstructor(items: SelectItem[], maxVisible: number, theme: SelectListTheme, layout: SelectListLayoutOptions = {}) {\n\t\tthis.items = items;\n\t\tthis.filteredItems = items;\n\t\tthis.maxVisible = maxVisible;\n\t\tthis.theme = theme;\n\t\tthis.layout = layout;\n\t}\n\n\tsetFilter(filter: string): void {\n\t\tthis.filteredItems = this.items.filter((item) => item.value.toLowerCase().startsWith(filter.toLowerCase()));\n\t\t// Reset selection when filter changes\n\t\tthis.selectedIndex = 0;\n\t}\n\n\tsetSelectedIndex(index: number): void {\n\t\tthis.selectedIndex = Math.max(0, Math.min(index, this.filteredItems.length - 1));\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(width: number): string[] {\n\t\tconst lines: string[] = [];\n\n\t\t// If no items match filter, show message\n\t\tif (this.filteredItems.length === 0) {\n\t\t\tlines.push(this.theme.noMatch(\" No matching commands\"));\n\t\t\treturn lines;\n\t\t}\n\n\t\tconst primaryColumnWidth = this.getPrimaryColumnWidth();\n\n\t\t// Calculate visible range with scrolling\n\t\tconst { startIndex, endIndex } = this.getVisibleRange();\n\n\t\t// Render visible items\n\t\tfor (let i = startIndex; i < endIndex; i++) {\n\t\t\tconst item = this.filteredItems[i];\n\t\t\tif (!item) continue;\n\n\t\t\tconst isSelected = i === this.selectedIndex;\n\t\t\tconst descriptionSingleLine = item.description ? normalizeToSingleLine(item.description) : undefined;\n\t\t\tlines.push(this.renderItem(item, isSelected, width, descriptionSingleLine, primaryColumnWidth));\n\t\t}\n\n\t\t// Add scroll indicators if needed\n\t\tif (startIndex > 0 || endIndex < this.filteredItems.length) {\n\t\t\tconst scrollText = ` (${this.selectedIndex + 1}/${this.filteredItems.length})`;\n\t\t\t// Truncate if too long for terminal\n\t\t\tlines.push(this.theme.scrollInfo(truncateToWidth(scrollText, width - 2, \"\")));\n\t\t}\n\n\t\treturn lines;\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {\n\t\tif (this.filteredItems.length === 0) return undefined;\n\t\tif (event.type === \"wheel\" && event.wheelDelta) {\n\t\t\tconst delta = event.wheelDelta < 0 ? -1 : 1;\n\t\t\tconst previousIndex = this.selectedIndex;\n\t\t\tthis.selectedIndex = Math.max(0, Math.min(this.filteredItems.length - 1, this.selectedIndex + delta));\n\t\t\tif (this.selectedIndex !== previousIndex) this.notifySelectionChange();\n\t\t\treturn { handled: true, render: this.selectedIndex !== previousIndex };\n\t\t}\n\t\t// Hover must not change selection: the visible range is centered on it.\n\t\tif (event.button !== \"left\" || (event.type !== \"press\" && event.type !== \"click\")) return undefined;\n\t\tconst { startIndex, endIndex } = this.getVisibleRange();\n\t\tconst itemIndex = startIndex + event.y;\n\t\tif (itemIndex < startIndex || itemIndex >= endIndex) return undefined;\n\n\t\tif (event.type === \"press\") {\n\t\t\tthis.mousePressedIndex = itemIndex;\n\t\t\tif (this.selectedIndex !== itemIndex) {\n\t\t\t\tthis.selectedIndex = itemIndex;\n\t\t\t\tthis.notifySelectionChange();\n\t\t\t}\n\t\t\treturn { handled: true, focus: true };\n\t\t}\n\t\tif (event.type === \"click\") {\n\t\t\tconst clickedIndex = this.mousePressedIndex ?? itemIndex;\n\t\t\tthis.mousePressedIndex = undefined;\n\t\t\tconst changed = this.selectedIndex !== clickedIndex;\n\t\t\tthis.selectedIndex = clickedIndex;\n\t\t\tif (changed) this.notifySelectionChange();\n\t\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\t\tif (selectedItem) this.onSelect?.(selectedItem);\n\t\t\treturn { handled: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\thandleInput(keyData: string): void {\n\t\tconst kb = getKeybindings();\n\t\t// Up arrow - wrap to bottom when at top\n\t\tif (kb.matches(keyData, \"tui.select.up\")) {\n\t\t\tthis.selectedIndex = this.selectedIndex === 0 ? this.filteredItems.length - 1 : this.selectedIndex - 1;\n\t\t\tthis.notifySelectionChange();\n\t\t}\n\t\t// Down arrow - wrap to top when at bottom\n\t\telse if (kb.matches(keyData, \"tui.select.down\")) {\n\t\t\tthis.selectedIndex = this.selectedIndex === this.filteredItems.length - 1 ? 0 : this.selectedIndex + 1;\n\t\t\tthis.notifySelectionChange();\n\t\t}\n\t\t// Enter\n\t\telse if (kb.matches(keyData, \"tui.select.confirm\")) {\n\t\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\t\tif (selectedItem && this.onSelect) {\n\t\t\t\tthis.onSelect(selectedItem);\n\t\t\t}\n\t\t}\n\t\t// Escape or Ctrl+C\n\t\telse if (kb.matches(keyData, \"tui.select.cancel\")) {\n\t\t\tif (this.onCancel) {\n\t\t\t\tthis.onCancel();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate getVisibleRange(): { startIndex: number; endIndex: number } {\n\t\tconst startIndex = Math.max(\n\t\t\t0,\n\t\t\tMath.min(this.selectedIndex - Math.floor(this.maxVisible / 2), this.filteredItems.length - this.maxVisible),\n\t\t);\n\t\treturn {\n\t\t\tstartIndex,\n\t\t\tendIndex: Math.min(startIndex + this.maxVisible, this.filteredItems.length),\n\t\t};\n\t}\n\n\tprivate renderItem(\n\t\titem: SelectItem,\n\t\tisSelected: boolean,\n\t\twidth: number,\n\t\tdescriptionSingleLine: string | undefined,\n\t\tprimaryColumnWidth: number,\n\t): string {\n\t\tconst prefix = isSelected ? \"→ \" : \" \";\n\t\tconst prefixWidth = visibleWidth(prefix);\n\n\t\tif (descriptionSingleLine && width > 40) {\n\t\t\tconst effectivePrimaryColumnWidth = Math.max(1, Math.min(primaryColumnWidth, width - prefixWidth - 4));\n\t\t\tconst maxPrimaryWidth = Math.max(1, effectivePrimaryColumnWidth - PRIMARY_COLUMN_GAP);\n\t\t\tconst truncatedValue = this.truncatePrimary(item, isSelected, maxPrimaryWidth, effectivePrimaryColumnWidth);\n\t\t\tconst truncatedValueWidth = visibleWidth(truncatedValue);\n\t\t\tconst spacing = \" \".repeat(Math.max(1, effectivePrimaryColumnWidth - truncatedValueWidth));\n\t\t\tconst descriptionStart = prefixWidth + truncatedValueWidth + spacing.length;\n\t\t\tconst remainingWidth = width - descriptionStart - 2; // -2 for safety\n\n\t\t\tif (remainingWidth > MIN_DESCRIPTION_WIDTH) {\n\t\t\t\tconst truncatedDesc = truncateToWidth(descriptionSingleLine, remainingWidth, \"\");\n\t\t\t\tif (isSelected) {\n\t\t\t\t\treturn this.theme.selectedText(`${prefix}${truncatedValue}${spacing}${truncatedDesc}`);\n\t\t\t\t}\n\n\t\t\t\tconst descText = this.theme.description(spacing + truncatedDesc);\n\t\t\t\treturn prefix + truncatedValue + descText;\n\t\t\t}\n\t\t}\n\n\t\tconst maxWidth = width - prefixWidth - 2;\n\t\tconst truncatedValue = this.truncatePrimary(item, isSelected, maxWidth, maxWidth);\n\t\tif (isSelected) {\n\t\t\treturn this.theme.selectedText(`${prefix}${truncatedValue}`);\n\t\t}\n\n\t\treturn prefix + truncatedValue;\n\t}\n\n\tprivate getPrimaryColumnWidth(): number {\n\t\tconst { min, max } = this.getPrimaryColumnBounds();\n\t\tconst widestPrimary = this.filteredItems.reduce((widest, item) => {\n\t\t\treturn Math.max(widest, visibleWidth(this.getDisplayValue(item)) + PRIMARY_COLUMN_GAP);\n\t\t}, 0);\n\n\t\treturn clamp(widestPrimary, min, max);\n\t}\n\n\tprivate getPrimaryColumnBounds(): { min: number; max: number } {\n\t\tconst rawMin =\n\t\t\tthis.layout.minPrimaryColumnWidth ?? this.layout.maxPrimaryColumnWidth ?? DEFAULT_PRIMARY_COLUMN_WIDTH;\n\t\tconst rawMax =\n\t\t\tthis.layout.maxPrimaryColumnWidth ?? this.layout.minPrimaryColumnWidth ?? DEFAULT_PRIMARY_COLUMN_WIDTH;\n\n\t\treturn {\n\t\t\tmin: Math.max(1, Math.min(rawMin, rawMax)),\n\t\t\tmax: Math.max(1, Math.max(rawMin, rawMax)),\n\t\t};\n\t}\n\n\tprivate truncatePrimary(item: SelectItem, isSelected: boolean, maxWidth: number, columnWidth: number): string {\n\t\tconst displayValue = this.getDisplayValue(item);\n\t\tconst truncatedValue = this.layout.truncatePrimary\n\t\t\t? this.layout.truncatePrimary({\n\t\t\t\t\ttext: displayValue,\n\t\t\t\t\tmaxWidth,\n\t\t\t\t\tcolumnWidth,\n\t\t\t\t\titem,\n\t\t\t\t\tisSelected,\n\t\t\t\t})\n\t\t\t: truncateToWidth(displayValue, maxWidth, \"\");\n\n\t\treturn truncateToWidth(truncatedValue, maxWidth, \"\");\n\t}\n\n\tprivate getDisplayValue(item: SelectItem): string {\n\t\treturn item.label || item.value;\n\t}\n\n\tprivate notifySelectionChange(): void {\n\t\tconst selectedItem = this.filteredItems[this.selectedIndex];\n\t\tif (selectedItem && this.onSelectionChange) {\n\t\t\tthis.onSelectionChange(selectedItem);\n\t\t}\n\t}\n\n\tgetSelectedItem(): SelectItem | null {\n\t\tconst item = this.filteredItems[this.selectedIndex];\n\t\treturn item || null;\n\t}\n}\n"]}
@@ -1,60 +0,0 @@
1
- import type { Component, TuiMouseEvent, TuiMouseEventResult } from "../tui.ts";
2
- export interface SettingItem {
3
- /** Unique identifier for this setting */
4
- id: string;
5
- /** Display label (left side) */
6
- label: string;
7
- /** Optional description shown when selected */
8
- description?: string;
9
- /** Current value to display (right side) */
10
- currentValue: string;
11
- /** If provided, Enter/Space cycles through these values */
12
- values?: string[];
13
- /** If provided, Enter opens this submenu. Receives current value and done callback.
14
- * done() accepts an optional selectedValue and an optional navigateTo id to move the cursor after close. */
15
- submenu?: (currentValue: string, done: (selectedValue?: string, options?: {
16
- navigateTo?: string;
17
- }) => void) => Component;
18
- }
19
- export interface SettingsListTheme {
20
- label: (text: string, selected: boolean) => string;
21
- value: (text: string, selected: boolean) => string;
22
- description: (text: string) => string;
23
- cursor: string;
24
- hint: (text: string) => string;
25
- }
26
- export interface SettingsListOptions {
27
- enableSearch?: boolean;
28
- }
29
- export declare class SettingsList implements Component {
30
- private items;
31
- private filteredItems;
32
- private theme;
33
- private selectedIndex;
34
- private mousePressedIndex;
35
- private maxVisible;
36
- private onChange;
37
- private onCancel;
38
- private searchInput?;
39
- private searchEnabled;
40
- private submenuComponent;
41
- private submenuItemIndex;
42
- private navigateAfterClose;
43
- constructor(items: SettingItem[], maxVisible: number, theme: SettingsListTheme, onChange: (id: string, newValue: string) => void, onCancel: () => void, options?: SettingsListOptions);
44
- /** Update an item's currentValue */
45
- updateValue(id: string, newValue: string): void;
46
- /** Move selection to the item with the given id (no-op if not found). */
47
- selectItem(id: string): void;
48
- invalidate(): void;
49
- render(width: number): string[];
50
- private renderMainList;
51
- handleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined;
52
- handleInput(data: string): void;
53
- private getDisplayItems;
54
- private getVisibleRange;
55
- private activateItem;
56
- private closeSubmenu;
57
- private applyFilter;
58
- private addHintLine;
59
- }
60
- //# sourceMappingURL=settings-list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings-list.d.ts","sourceRoot":"","sources":["../../src/components/settings-list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAI/E,MAAM,WAAW,WAAW;IAC3B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;iHAC6G;IAC7G,OAAO,CAAC,EAAE,CACT,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,CAA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,EAYjC;IAED,oCAAoC;IACpC,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAK9C;IAED,yEAAyE;IACzE,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAM3B;IAED,UAAU,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAO9B;IAED,OAAO,CAAC,cAAc;IA0EtB,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,mBAAmB,GAAG,SAAS,CAyCjE;IAED,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CA4B9B;IAED,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,YAAY;IA8BpB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,WAAW;CAanB","sourcesContent":["import { fuzzyFilter } from \"../fuzzy.ts\";\nimport { getKeybindings } from \"../keybindings.ts\";\nimport type { Component, TuiMouseEvent, TuiMouseEventResult } from \"../tui.ts\";\nimport { truncateToWidth, visibleWidth, wrapTextWithAnsi } from \"../utils.ts\";\nimport { Input } from \"./input.ts\";\n\nexport interface SettingItem {\n\t/** Unique identifier for this setting */\n\tid: string;\n\t/** Display label (left side) */\n\tlabel: string;\n\t/** Optional description shown when selected */\n\tdescription?: string;\n\t/** Current value to display (right side) */\n\tcurrentValue: string;\n\t/** If provided, Enter/Space cycles through these values */\n\tvalues?: string[];\n\t/** If provided, Enter opens this submenu. Receives current value and done callback.\n\t * done() accepts an optional selectedValue and an optional navigateTo id to move the cursor after close. */\n\tsubmenu?: (\n\t\tcurrentValue: string,\n\t\tdone: (selectedValue?: string, options?: { navigateTo?: string }) => void,\n\t) => Component;\n}\n\nexport interface SettingsListTheme {\n\tlabel: (text: string, selected: boolean) => string;\n\tvalue: (text: string, selected: boolean) => string;\n\tdescription: (text: string) => string;\n\tcursor: string;\n\thint: (text: string) => string;\n}\n\nexport interface SettingsListOptions {\n\tenableSearch?: boolean;\n}\n\nexport class SettingsList implements Component {\n\tprivate items: SettingItem[];\n\tprivate filteredItems: SettingItem[];\n\tprivate theme: SettingsListTheme;\n\tprivate selectedIndex = 0;\n\tprivate mousePressedIndex: number | undefined;\n\tprivate maxVisible: number;\n\tprivate onChange: (id: string, newValue: string) => void;\n\tprivate onCancel: () => void;\n\tprivate searchInput?: Input;\n\tprivate searchEnabled: boolean;\n\n\t// Submenu state\n\tprivate submenuComponent: Component | null = null;\n\tprivate submenuItemIndex: number | null = null;\n\tprivate navigateAfterClose: string | null = null;\n\n\tconstructor(\n\t\titems: SettingItem[],\n\t\tmaxVisible: number,\n\t\ttheme: SettingsListTheme,\n\t\tonChange: (id: string, newValue: string) => void,\n\t\tonCancel: () => void,\n\t\toptions: SettingsListOptions = {},\n\t) {\n\t\tthis.items = items;\n\t\tthis.filteredItems = items;\n\t\tthis.maxVisible = maxVisible;\n\t\tthis.theme = theme;\n\t\tthis.onChange = onChange;\n\t\tthis.onCancel = onCancel;\n\t\tthis.searchEnabled = options.enableSearch ?? false;\n\t\tif (this.searchEnabled) {\n\t\t\tthis.searchInput = new Input();\n\t\t}\n\t}\n\n\t/** Update an item's currentValue */\n\tupdateValue(id: string, newValue: string): void {\n\t\tconst item = this.items.find((i) => i.id === id);\n\t\tif (item) {\n\t\t\titem.currentValue = newValue;\n\t\t}\n\t}\n\n\t/** Move selection to the item with the given id (no-op if not found). */\n\tselectItem(id: string): void {\n\t\tconst items = this.searchEnabled ? this.filteredItems : this.items;\n\t\tconst index = items.findIndex((i) => i.id === id);\n\t\tif (index !== -1) {\n\t\t\tthis.selectedIndex = index;\n\t\t}\n\t}\n\n\tinvalidate(): void {\n\t\tthis.submenuComponent?.invalidate?.();\n\t}\n\n\trender(width: number): string[] {\n\t\t// If submenu is active, render it instead\n\t\tif (this.submenuComponent) {\n\t\t\treturn this.submenuComponent.render(width);\n\t\t}\n\n\t\treturn this.renderMainList(width);\n\t}\n\n\tprivate renderMainList(width: number): string[] {\n\t\tconst lines: string[] = [];\n\n\t\tif (this.searchEnabled && this.searchInput) {\n\t\t\tlines.push(...this.searchInput.render(width));\n\t\t\tlines.push(\"\");\n\t\t}\n\n\t\tif (this.items.length === 0) {\n\t\t\tlines.push(this.theme.hint(\" No settings available\"));\n\t\t\tif (this.searchEnabled) {\n\t\t\t\tthis.addHintLine(lines, width);\n\t\t\t}\n\t\t\treturn lines;\n\t\t}\n\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (displayItems.length === 0) {\n\t\t\tlines.push(truncateToWidth(this.theme.hint(\" No matching settings\"), width));\n\t\t\tthis.addHintLine(lines, width);\n\t\t\treturn lines;\n\t\t}\n\n\t\t// Calculate visible range with scrolling\n\t\tconst { startIndex, endIndex } = this.getVisibleRange(displayItems);\n\n\t\t// Calculate max label width for alignment\n\t\tconst maxLabelWidth = Math.min(36, Math.max(...this.items.map((item) => visibleWidth(item.label))));\n\n\t\t// Render visible items\n\t\tfor (let i = startIndex; i < endIndex; i++) {\n\t\t\tconst item = displayItems[i];\n\t\t\tif (!item) continue;\n\n\t\t\tconst isSelected = i === this.selectedIndex;\n\t\t\tconst prefix = isSelected ? this.theme.cursor : \" \";\n\t\t\tconst prefixWidth = visibleWidth(prefix);\n\n\t\t\t// Pad label to align values\n\t\t\tconst labelPadded = item.label + \" \".repeat(Math.max(0, maxLabelWidth - visibleWidth(item.label)));\n\t\t\tconst labelText = this.theme.label(labelPadded, isSelected);\n\n\t\t\t// Calculate space for value\n\t\t\tconst separator = \" \";\n\t\t\tconst usedWidth = prefixWidth + maxLabelWidth + visibleWidth(separator);\n\t\t\tconst valueMaxWidth = width - usedWidth - 2;\n\n\t\t\tconst valueText = this.theme.value(truncateToWidth(item.currentValue, valueMaxWidth, \"\"), isSelected);\n\n\t\t\tlines.push(truncateToWidth(prefix + labelText + separator + valueText, width));\n\t\t}\n\n\t\t// Add scroll indicator if needed\n\t\tif (startIndex > 0 || endIndex < displayItems.length) {\n\t\t\tconst scrollText = ` (${this.selectedIndex + 1}/${displayItems.length})`;\n\t\t\tlines.push(this.theme.hint(truncateToWidth(scrollText, width - 2, \"\")));\n\t\t}\n\n\t\t// Add description for selected item\n\t\tconst selectedItem = displayItems[this.selectedIndex];\n\t\tif (selectedItem?.description) {\n\t\t\tlines.push(\"\");\n\t\t\tconst wrappedDesc = wrapTextWithAnsi(selectedItem.description, width - 4);\n\t\t\tfor (const line of wrappedDesc) {\n\t\t\t\tlines.push(this.theme.description(` ${line}`));\n\t\t\t}\n\t\t}\n\n\t\t// Add hint\n\t\tthis.addHintLine(lines, width);\n\n\t\treturn lines;\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {\n\t\tif (this.submenuComponent) {\n\t\t\tconst result = this.submenuComponent.handleMouse?.(event);\n\t\t\treturn result ? { ...result, focus: true } : undefined;\n\t\t}\n\n\t\tif (this.searchEnabled && this.searchInput) {\n\t\t\tif (event.y === 0) {\n\t\t\t\tconst result = this.searchInput.handleMouse?.(event);\n\t\t\t\treturn result ? { ...result, focus: true } : undefined;\n\t\t\t}\n\t\t\tif (event.y === 1) return undefined;\n\t\t}\n\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (displayItems.length === 0) return undefined;\n\t\tif (event.type === \"wheel\" && event.wheelDelta) {\n\t\t\tconst delta = event.wheelDelta < 0 ? -1 : 1;\n\t\t\tconst previousIndex = this.selectedIndex;\n\t\t\tthis.selectedIndex = Math.max(0, Math.min(displayItems.length - 1, this.selectedIndex + delta));\n\t\t\treturn { handled: true, render: this.selectedIndex !== previousIndex };\n\t\t}\n\t\t// Hover must not change selection: the visible range is centered on it.\n\t\tif (event.button !== \"left\" || (event.type !== \"press\" && event.type !== \"click\")) return undefined;\n\n\t\tconst rowOffset = this.searchEnabled ? 2 : 0;\n\t\tconst { startIndex, endIndex } = this.getVisibleRange(displayItems);\n\t\tconst itemIndex = startIndex + event.y - rowOffset;\n\t\tif (itemIndex < startIndex || itemIndex >= endIndex) return undefined;\n\t\tif (event.type === \"press\") {\n\t\t\tthis.mousePressedIndex = itemIndex;\n\t\t\tthis.selectedIndex = itemIndex;\n\t\t\treturn { handled: true, focus: true };\n\t\t}\n\t\tif (event.type === \"click\") {\n\t\t\tthis.selectedIndex = this.mousePressedIndex ?? itemIndex;\n\t\t\tthis.mousePressedIndex = undefined;\n\t\t\tthis.activateItem();\n\t\t\treturn { handled: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\thandleInput(data: string): void {\n\t\t// If submenu is active, delegate all input to it\n\t\t// The submenu's onCancel (triggered by escape) will call done() which closes it\n\t\tif (this.submenuComponent) {\n\t\t\tthis.submenuComponent.handleInput?.(data);\n\t\t\treturn;\n\t\t}\n\n\t\t// Main list input handling\n\t\tconst kb = getKeybindings();\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (kb.matches(data, \"tui.select.up\")) {\n\t\t\tif (displayItems.length === 0) return;\n\t\t\tthis.selectedIndex = this.selectedIndex === 0 ? displayItems.length - 1 : this.selectedIndex - 1;\n\t\t} else if (kb.matches(data, \"tui.select.down\")) {\n\t\t\tif (displayItems.length === 0) return;\n\t\t\tthis.selectedIndex = this.selectedIndex === displayItems.length - 1 ? 0 : this.selectedIndex + 1;\n\t\t} else if (\n\t\t\tkb.matches(data, \"tui.select.confirm\") ||\n\t\t\t(data === \" \" && (!this.searchEnabled || this.searchInput?.getValue().length === 0))\n\t\t) {\n\t\t\tthis.activateItem();\n\t\t} else if (kb.matches(data, \"tui.select.cancel\")) {\n\t\t\tthis.onCancel();\n\t\t} else if (this.searchEnabled && this.searchInput) {\n\t\t\tthis.searchInput.handleInput(data);\n\t\t\tthis.applyFilter(this.searchInput.getValue());\n\t\t}\n\t}\n\n\tprivate getDisplayItems(): SettingItem[] {\n\t\treturn this.searchEnabled ? this.filteredItems : this.items;\n\t}\n\n\tprivate getVisibleRange(displayItems: readonly SettingItem[]): { startIndex: number; endIndex: number } {\n\t\tconst startIndex = Math.max(\n\t\t\t0,\n\t\t\tMath.min(this.selectedIndex - Math.floor(this.maxVisible / 2), displayItems.length - this.maxVisible),\n\t\t);\n\t\treturn { startIndex, endIndex: Math.min(startIndex + this.maxVisible, displayItems.length) };\n\t}\n\n\tprivate activateItem(): void {\n\t\tconst item = this.getDisplayItems()[this.selectedIndex];\n\t\tif (!item) return;\n\n\t\tif (item.submenu) {\n\t\t\t// Open submenu, passing current value so it can pre-select correctly\n\t\t\tthis.submenuItemIndex = this.selectedIndex;\n\t\t\tthis.submenuComponent = item.submenu(\n\t\t\t\titem.currentValue,\n\t\t\t\t(selectedValue?: string, options?: { navigateTo?: string }) => {\n\t\t\t\t\tif (selectedValue !== undefined) {\n\t\t\t\t\t\titem.currentValue = selectedValue;\n\t\t\t\t\t\tthis.onChange(item.id, selectedValue);\n\t\t\t\t\t}\n\t\t\t\t\tif (options?.navigateTo) {\n\t\t\t\t\t\tthis.navigateAfterClose = options.navigateTo;\n\t\t\t\t\t}\n\t\t\t\t\tthis.closeSubmenu();\n\t\t\t\t},\n\t\t\t);\n\t\t} else if (item.values && item.values.length > 0) {\n\t\t\t// Cycle through values\n\t\t\tconst currentIndex = item.values.indexOf(item.currentValue);\n\t\t\tconst nextIndex = (currentIndex + 1) % item.values.length;\n\t\t\tconst newValue = item.values[nextIndex];\n\t\t\titem.currentValue = newValue;\n\t\t\tthis.onChange(item.id, newValue);\n\t\t}\n\t}\n\n\tprivate closeSubmenu(): void {\n\t\tthis.submenuComponent = null;\n\t\tif (this.navigateAfterClose !== null) {\n\t\t\tconst id = this.navigateAfterClose;\n\t\t\tthis.navigateAfterClose = null;\n\t\t\tthis.submenuItemIndex = null;\n\t\t\tthis.selectItem(id);\n\t\t\t// Open the target item's submenu automatically\n\t\t\tthis.activateItem();\n\t\t} else if (this.submenuItemIndex !== null) {\n\t\t\t// Restore selection to the item that opened the submenu\n\t\t\tthis.selectedIndex = this.submenuItemIndex;\n\t\t\tthis.submenuItemIndex = null;\n\t\t}\n\t}\n\n\tprivate applyFilter(query: string): void {\n\t\tthis.filteredItems = fuzzyFilter(this.items, query, (item) => item.label);\n\t\tthis.selectedIndex = 0;\n\t}\n\n\tprivate addHintLine(lines: string[], width: number): void {\n\t\tlines.push(\"\");\n\t\tlines.push(\n\t\t\ttruncateToWidth(\n\t\t\t\tthis.theme.hint(\n\t\t\t\t\tthis.searchEnabled\n\t\t\t\t\t\t? \" Type to search · Enter/Space to change · Esc to cancel\"\n\t\t\t\t\t\t: \" Enter/Space to change · Esc to cancel\",\n\t\t\t\t),\n\t\t\t\twidth,\n\t\t\t),\n\t\t);\n\t}\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings-list.js","sourceRoot":"","sources":["../../src/components/settings-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAiCnC,MAAM,OAAO,YAAY;IAChB,KAAK,CAAgB;IACrB,aAAa,CAAgB;IAC7B,KAAK,CAAoB;IACzB,aAAa,GAAG,CAAC,CAAC;IAClB,iBAAiB,CAAqB;IACtC,UAAU,CAAS;IACnB,QAAQ,CAAyC;IACjD,QAAQ,CAAa;IACrB,WAAW,CAAS;IACpB,aAAa,CAAU;IAE/B,gBAAgB;IACR,gBAAgB,GAAqB,IAAI,CAAC;IAC1C,gBAAgB,GAAkB,IAAI,CAAC;IACvC,kBAAkB,GAAkB,IAAI,CAAC;IAEjD,YACC,KAAoB,EACpB,UAAkB,EAClB,KAAwB,EACxB,QAAgD,EAChD,QAAoB,EACpB,OAAO,GAAwB,EAAE,EAChC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,K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AAC,KAAK,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1E,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC;IAAA,CACvB;IAEO,WAAW,CAAC,KAAe,EAAE,KAAa,EAAQ;QACzD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CACT,eAAe,CACd,IAAI,CAAC,KAAK,CAAC,IAAI,CACd,IAAI,CAAC,aAAa;YACjB,CAAC,CAAC,4DAA0D;YAC5D,CAAC,CAAC,0CAAyC,CAC5C,EACD,KAAK,CACL,CACD,CAAC;IAAA,CACF;CACD","sourcesContent":["import { fuzzyFilter } from \"../fuzzy.ts\";\nimport { getKeybindings } from \"../keybindings.ts\";\nimport type { Component, TuiMouseEvent, TuiMouseEventResult } from \"../tui.ts\";\nimport { truncateToWidth, visibleWidth, wrapTextWithAnsi } from \"../utils.ts\";\nimport { Input } from \"./input.ts\";\n\nexport interface SettingItem {\n\t/** Unique identifier for this setting */\n\tid: string;\n\t/** Display label (left side) */\n\tlabel: string;\n\t/** Optional description shown when selected */\n\tdescription?: string;\n\t/** Current value to display (right side) */\n\tcurrentValue: string;\n\t/** If provided, Enter/Space cycles through these values */\n\tvalues?: string[];\n\t/** If provided, Enter opens this submenu. Receives current value and done callback.\n\t * done() accepts an optional selectedValue and an optional navigateTo id to move the cursor after close. */\n\tsubmenu?: (\n\t\tcurrentValue: string,\n\t\tdone: (selectedValue?: string, options?: { navigateTo?: string }) => void,\n\t) => Component;\n}\n\nexport interface SettingsListTheme {\n\tlabel: (text: string, selected: boolean) => string;\n\tvalue: (text: string, selected: boolean) => string;\n\tdescription: (text: string) => string;\n\tcursor: string;\n\thint: (text: string) => string;\n}\n\nexport interface SettingsListOptions {\n\tenableSearch?: boolean;\n}\n\nexport class SettingsList implements Component {\n\tprivate items: SettingItem[];\n\tprivate filteredItems: SettingItem[];\n\tprivate theme: SettingsListTheme;\n\tprivate selectedIndex = 0;\n\tprivate mousePressedIndex: number | undefined;\n\tprivate maxVisible: number;\n\tprivate onChange: (id: string, newValue: string) => void;\n\tprivate onCancel: () => void;\n\tprivate searchInput?: Input;\n\tprivate searchEnabled: boolean;\n\n\t// Submenu state\n\tprivate submenuComponent: Component | null = null;\n\tprivate submenuItemIndex: number | null = null;\n\tprivate navigateAfterClose: string | null = null;\n\n\tconstructor(\n\t\titems: SettingItem[],\n\t\tmaxVisible: number,\n\t\ttheme: SettingsListTheme,\n\t\tonChange: (id: string, newValue: string) => void,\n\t\tonCancel: () => void,\n\t\toptions: SettingsListOptions = {},\n\t) {\n\t\tthis.items = items;\n\t\tthis.filteredItems = items;\n\t\tthis.maxVisible = maxVisible;\n\t\tthis.theme = theme;\n\t\tthis.onChange = onChange;\n\t\tthis.onCancel = onCancel;\n\t\tthis.searchEnabled = options.enableSearch ?? false;\n\t\tif (this.searchEnabled) {\n\t\t\tthis.searchInput = new Input();\n\t\t}\n\t}\n\n\t/** Update an item's currentValue */\n\tupdateValue(id: string, newValue: string): void {\n\t\tconst item = this.items.find((i) => i.id === id);\n\t\tif (item) {\n\t\t\titem.currentValue = newValue;\n\t\t}\n\t}\n\n\t/** Move selection to the item with the given id (no-op if not found). */\n\tselectItem(id: string): void {\n\t\tconst items = this.searchEnabled ? this.filteredItems : this.items;\n\t\tconst index = items.findIndex((i) => i.id === id);\n\t\tif (index !== -1) {\n\t\t\tthis.selectedIndex = index;\n\t\t}\n\t}\n\n\tinvalidate(): void {\n\t\tthis.submenuComponent?.invalidate?.();\n\t}\n\n\trender(width: number): string[] {\n\t\t// If submenu is active, render it instead\n\t\tif (this.submenuComponent) {\n\t\t\treturn this.submenuComponent.render(width);\n\t\t}\n\n\t\treturn this.renderMainList(width);\n\t}\n\n\tprivate renderMainList(width: number): string[] {\n\t\tconst lines: string[] = [];\n\n\t\tif (this.searchEnabled && this.searchInput) {\n\t\t\tlines.push(...this.searchInput.render(width));\n\t\t\tlines.push(\"\");\n\t\t}\n\n\t\tif (this.items.length === 0) {\n\t\t\tlines.push(this.theme.hint(\" No settings available\"));\n\t\t\tif (this.searchEnabled) {\n\t\t\t\tthis.addHintLine(lines, width);\n\t\t\t}\n\t\t\treturn lines;\n\t\t}\n\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (displayItems.length === 0) {\n\t\t\tlines.push(truncateToWidth(this.theme.hint(\" No matching settings\"), width));\n\t\t\tthis.addHintLine(lines, width);\n\t\t\treturn lines;\n\t\t}\n\n\t\t// Calculate visible range with scrolling\n\t\tconst { startIndex, endIndex } = this.getVisibleRange(displayItems);\n\n\t\t// Calculate max label width for alignment\n\t\tconst maxLabelWidth = Math.min(36, Math.max(...this.items.map((item) => visibleWidth(item.label))));\n\n\t\t// Render visible items\n\t\tfor (let i = startIndex; i < endIndex; i++) {\n\t\t\tconst item = displayItems[i];\n\t\t\tif (!item) continue;\n\n\t\t\tconst isSelected = i === this.selectedIndex;\n\t\t\tconst prefix = isSelected ? this.theme.cursor : \" \";\n\t\t\tconst prefixWidth = visibleWidth(prefix);\n\n\t\t\t// Pad label to align values\n\t\t\tconst labelPadded = item.label + \" \".repeat(Math.max(0, maxLabelWidth - visibleWidth(item.label)));\n\t\t\tconst labelText = this.theme.label(labelPadded, isSelected);\n\n\t\t\t// Calculate space for value\n\t\t\tconst separator = \" \";\n\t\t\tconst usedWidth = prefixWidth + maxLabelWidth + visibleWidth(separator);\n\t\t\tconst valueMaxWidth = width - usedWidth - 2;\n\n\t\t\tconst valueText = this.theme.value(truncateToWidth(item.currentValue, valueMaxWidth, \"\"), isSelected);\n\n\t\t\tlines.push(truncateToWidth(prefix + labelText + separator + valueText, width));\n\t\t}\n\n\t\t// Add scroll indicator if needed\n\t\tif (startIndex > 0 || endIndex < displayItems.length) {\n\t\t\tconst scrollText = ` (${this.selectedIndex + 1}/${displayItems.length})`;\n\t\t\tlines.push(this.theme.hint(truncateToWidth(scrollText, width - 2, \"\")));\n\t\t}\n\n\t\t// Add description for selected item\n\t\tconst selectedItem = displayItems[this.selectedIndex];\n\t\tif (selectedItem?.description) {\n\t\t\tlines.push(\"\");\n\t\t\tconst wrappedDesc = wrapTextWithAnsi(selectedItem.description, width - 4);\n\t\t\tfor (const line of wrappedDesc) {\n\t\t\t\tlines.push(this.theme.description(` ${line}`));\n\t\t\t}\n\t\t}\n\n\t\t// Add hint\n\t\tthis.addHintLine(lines, width);\n\n\t\treturn lines;\n\t}\n\n\thandleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {\n\t\tif (this.submenuComponent) {\n\t\t\tconst result = this.submenuComponent.handleMouse?.(event);\n\t\t\treturn result ? { ...result, focus: true } : undefined;\n\t\t}\n\n\t\tif (this.searchEnabled && this.searchInput) {\n\t\t\tif (event.y === 0) {\n\t\t\t\tconst result = this.searchInput.handleMouse?.(event);\n\t\t\t\treturn result ? { ...result, focus: true } : undefined;\n\t\t\t}\n\t\t\tif (event.y === 1) return undefined;\n\t\t}\n\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (displayItems.length === 0) return undefined;\n\t\tif (event.type === \"wheel\" && event.wheelDelta) {\n\t\t\tconst delta = event.wheelDelta < 0 ? -1 : 1;\n\t\t\tconst previousIndex = this.selectedIndex;\n\t\t\tthis.selectedIndex = Math.max(0, Math.min(displayItems.length - 1, this.selectedIndex + delta));\n\t\t\treturn { handled: true, render: this.selectedIndex !== previousIndex };\n\t\t}\n\t\t// Hover must not change selection: the visible range is centered on it.\n\t\tif (event.button !== \"left\" || (event.type !== \"press\" && event.type !== \"click\")) return undefined;\n\n\t\tconst rowOffset = this.searchEnabled ? 2 : 0;\n\t\tconst { startIndex, endIndex } = this.getVisibleRange(displayItems);\n\t\tconst itemIndex = startIndex + event.y - rowOffset;\n\t\tif (itemIndex < startIndex || itemIndex >= endIndex) return undefined;\n\t\tif (event.type === \"press\") {\n\t\t\tthis.mousePressedIndex = itemIndex;\n\t\t\tthis.selectedIndex = itemIndex;\n\t\t\treturn { handled: true, focus: true };\n\t\t}\n\t\tif (event.type === \"click\") {\n\t\t\tthis.selectedIndex = this.mousePressedIndex ?? itemIndex;\n\t\t\tthis.mousePressedIndex = undefined;\n\t\t\tthis.activateItem();\n\t\t\treturn { handled: true };\n\t\t}\n\t\treturn undefined;\n\t}\n\n\thandleInput(data: string): void {\n\t\t// If submenu is active, delegate all input to it\n\t\t// The submenu's onCancel (triggered by escape) will call done() which closes it\n\t\tif (this.submenuComponent) {\n\t\t\tthis.submenuComponent.handleInput?.(data);\n\t\t\treturn;\n\t\t}\n\n\t\t// Main list input handling\n\t\tconst kb = getKeybindings();\n\t\tconst displayItems = this.getDisplayItems();\n\t\tif (kb.matches(data, \"tui.select.up\")) {\n\t\t\tif (displayItems.length === 0) return;\n\t\t\tthis.selectedIndex = this.selectedIndex === 0 ? displayItems.length - 1 : this.selectedIndex - 1;\n\t\t} else if (kb.matches(data, \"tui.select.down\")) {\n\t\t\tif (displayItems.length === 0) return;\n\t\t\tthis.selectedIndex = this.selectedIndex === displayItems.length - 1 ? 0 : this.selectedIndex + 1;\n\t\t} else if (\n\t\t\tkb.matches(data, \"tui.select.confirm\") ||\n\t\t\t(data === \" \" && (!this.searchEnabled || this.searchInput?.getValue().length === 0))\n\t\t) {\n\t\t\tthis.activateItem();\n\t\t} else if (kb.matches(data, \"tui.select.cancel\")) {\n\t\t\tthis.onCancel();\n\t\t} else if (this.searchEnabled && this.searchInput) {\n\t\t\tthis.searchInput.handleInput(data);\n\t\t\tthis.applyFilter(this.searchInput.getValue());\n\t\t}\n\t}\n\n\tprivate getDisplayItems(): SettingItem[] {\n\t\treturn this.searchEnabled ? this.filteredItems : this.items;\n\t}\n\n\tprivate getVisibleRange(displayItems: readonly SettingItem[]): { startIndex: number; endIndex: number } {\n\t\tconst startIndex = Math.max(\n\t\t\t0,\n\t\t\tMath.min(this.selectedIndex - Math.floor(this.maxVisible / 2), displayItems.length - this.maxVisible),\n\t\t);\n\t\treturn { startIndex, endIndex: Math.min(startIndex + this.maxVisible, displayItems.length) };\n\t}\n\n\tprivate activateItem(): void {\n\t\tconst item = this.getDisplayItems()[this.selectedIndex];\n\t\tif (!item) return;\n\n\t\tif (item.submenu) {\n\t\t\t// Open submenu, passing current value so it can pre-select correctly\n\t\t\tthis.submenuItemIndex = this.selectedIndex;\n\t\t\tthis.submenuComponent = item.submenu(\n\t\t\t\titem.currentValue,\n\t\t\t\t(selectedValue?: string, options?: { navigateTo?: string }) => {\n\t\t\t\t\tif (selectedValue !== undefined) {\n\t\t\t\t\t\titem.currentValue = selectedValue;\n\t\t\t\t\t\tthis.onChange(item.id, selectedValue);\n\t\t\t\t\t}\n\t\t\t\t\tif (options?.navigateTo) {\n\t\t\t\t\t\tthis.navigateAfterClose = options.navigateTo;\n\t\t\t\t\t}\n\t\t\t\t\tthis.closeSubmenu();\n\t\t\t\t},\n\t\t\t);\n\t\t} else if (item.values && item.values.length > 0) {\n\t\t\t// Cycle through values\n\t\t\tconst currentIndex = item.values.indexOf(item.currentValue);\n\t\t\tconst nextIndex = (currentIndex + 1) % item.values.length;\n\t\t\tconst newValue = item.values[nextIndex];\n\t\t\titem.currentValue = newValue;\n\t\t\tthis.onChange(item.id, newValue);\n\t\t}\n\t}\n\n\tprivate closeSubmenu(): void {\n\t\tthis.submenuComponent = null;\n\t\tif (this.navigateAfterClose !== null) {\n\t\t\tconst id = this.navigateAfterClose;\n\t\t\tthis.navigateAfterClose = null;\n\t\t\tthis.submenuItemIndex = null;\n\t\t\tthis.selectItem(id);\n\t\t\t// Open the target item's submenu automatically\n\t\t\tthis.activateItem();\n\t\t} else if (this.submenuItemIndex !== null) {\n\t\t\t// Restore selection to the item that opened the submenu\n\t\t\tthis.selectedIndex = this.submenuItemIndex;\n\t\t\tthis.submenuItemIndex = null;\n\t\t}\n\t}\n\n\tprivate applyFilter(query: string): void {\n\t\tthis.filteredItems = fuzzyFilter(this.items, query, (item) => item.label);\n\t\tthis.selectedIndex = 0;\n\t}\n\n\tprivate addHintLine(lines: string[], width: number): void {\n\t\tlines.push(\"\");\n\t\tlines.push(\n\t\t\ttruncateToWidth(\n\t\t\t\tthis.theme.hint(\n\t\t\t\t\tthis.searchEnabled\n\t\t\t\t\t\t? \" Type to search · Enter/Space to change · Esc to cancel\"\n\t\t\t\t\t\t: \" Enter/Space to change · Esc to cancel\",\n\t\t\t\t),\n\t\t\t\twidth,\n\t\t\t),\n\t\t);\n\t}\n}\n"]}
@@ -1,12 +0,0 @@
1
- import type { Component } from "../tui.ts";
2
- /**
3
- * Spacer component that renders empty lines
4
- */
5
- export declare class Spacer implements Component {
6
- private lines;
7
- constructor(lines?: number);
8
- setLines(lines: number): void;
9
- invalidate(): void;
10
- render(_width: number): string[];
11
- }
12
- //# sourceMappingURL=spacer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spacer.d.ts","sourceRoot":"","sources":["../../src/components/spacer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,qBAAa,MAAO,YAAW,SAAS;IACvC,OAAO,CAAC,KAAK,CAAS;IAEtB,YAAY,KAAK,GAAE,MAAU,EAE5B;IAED,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAE5B;IAED,UAAU,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAM/B;CACD","sourcesContent":["import type { Component } from \"../tui.ts\";\n\n/**\n * Spacer component that renders empty lines\n */\nexport class Spacer implements Component {\n\tprivate lines: number;\n\n\tconstructor(lines: number = 1) {\n\t\tthis.lines = lines;\n\t}\n\n\tsetLines(lines: number): void {\n\t\tthis.lines = lines;\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(_width: number): string[] {\n\t\tconst result: string[] = [];\n\t\tfor (let i = 0; i < this.lines; i++) {\n\t\t\tresult.push(\"\");\n\t\t}\n\t\treturn result;\n\t}\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"spacer.js","sourceRoot":"","sources":["../../src/components/spacer.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,MAAM;IACV,KAAK,CAAS;IAEtB,YAAY,KAAK,GAAW,CAAC,EAAE;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAAA,CACnB;IAED,QAAQ,CAAC,KAAa,EAAQ;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAAA,CACnB;IAED,UAAU,GAAS;QAClB,0CAA0C;IADvB,CAEnB;IAED,MAAM,CAAC,MAAc,EAAY;QAChC,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,CAAC;QACD,OAAO,MAAM,CAAC;IAAA,CACd;CACD","sourcesContent":["import type { Component } from \"../tui.ts\";\n\n/**\n * Spacer component that renders empty lines\n */\nexport class Spacer implements Component {\n\tprivate lines: number;\n\n\tconstructor(lines: number = 1) {\n\t\tthis.lines = lines;\n\t}\n\n\tsetLines(lines: number): void {\n\t\tthis.lines = lines;\n\t}\n\n\tinvalidate(): void {\n\t\t// No cached state to invalidate currently\n\t}\n\n\trender(_width: number): string[] {\n\t\tconst result: string[] = [];\n\t\tfor (let i = 0; i < this.lines; i++) {\n\t\t\tresult.push(\"\");\n\t\t}\n\t\treturn result;\n\t}\n}\n"]}
@@ -1,38 +0,0 @@
1
- import { LAYOUT_NODE, type LayoutViewport, type StackLayoutEntry, type StackLayoutNode } from "../layout-node.ts";
2
- import { type Component, Container } from "../tui.ts";
3
- export interface StackEntryOptions {
4
- basis?: number | "auto";
5
- grow?: number;
6
- shrink?: number;
7
- minSize?: number;
8
- maxSize?: number;
9
- visible?: (viewport: LayoutViewport) => boolean;
10
- }
11
- export interface StackEntry extends StackEntryOptions {
12
- component: Component;
13
- }
14
- export type StackChild = Component | StackEntry;
15
- export interface StackOptions {
16
- gap?: number;
17
- align?: "stretch" | "start" | "center" | "end";
18
- /** Horizontal inset applied to children (fullscreen gutter). */
19
- padX?: number;
20
- /** Vertical inset applied to children (fullscreen gutter). */
21
- padY?: number;
22
- }
23
- export declare abstract class Stack extends Container {
24
- protected readonly entries: StackLayoutEntry[];
25
- protected readonly gap: number;
26
- protected readonly align: "stretch" | "start" | "center" | "end";
27
- protected readonly padX: number;
28
- protected readonly padY: number;
29
- protected abstract readonly layoutType: "vstack" | "hstack";
30
- constructor(children?: StackChild[], options?: StackOptions);
31
- addChild(component: Component, options?: StackEntryOptions): void;
32
- removeChild(component: Component): void;
33
- clear(): void;
34
- [LAYOUT_NODE](): StackLayoutNode;
35
- }
36
- export declare function visibleStackEntries(entries: readonly StackLayoutEntry[], viewport: LayoutViewport): StackLayoutEntry[];
37
- export declare function allocateStackSizes(entries: readonly StackLayoutEntry[], intrinsicSizes: readonly number[], availableSize: number | undefined, gap: number): number[];
38
- //# sourceMappingURL=stack.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../src/components/stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClH,OAAO,EAAE,KAAK,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,O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AAgDD,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,SAAS,gBAAgB,EAAE,EACpC,cAAc,EAAE,SAAS,MAAM,EAAE,EACjC,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,GAAG,EAAE,MAAM,GACT,MAAM,EAAE,CAcV","sourcesContent":["import { LAYOUT_NODE, type LayoutViewport, type StackLayoutEntry, type StackLayoutNode } from \"../layout-node.ts\";\nimport { type Component, Container } from \"../tui.ts\";\n\nexport interface StackEntryOptions {\n\tbasis?: number | \"auto\";\n\tgrow?: number;\n\tshrink?: number;\n\tminSize?: number;\n\tmaxSize?: number;\n\tvisible?: (viewport: LayoutViewport) => boolean;\n}\n\nexport interface StackEntry extends StackEntryOptions {\n\tcomponent: Component;\n}\n\nexport type StackChild = Component | StackEntry;\n\nexport interface StackOptions {\n\tgap?: number;\n\talign?: \"stretch\" | \"start\" | \"center\" | \"end\";\n\t/** Horizontal inset applied to children (fullscreen gutter). */\n\tpadX?: number;\n\t/** Vertical inset applied to children (fullscreen gutter). */\n\tpadY?: number;\n}\n\nfunction isStackEntry(child: StackChild): child is StackEntry {\n\treturn !(\"render\" in child);\n}\n\nfunction normalizeSize(value: number | undefined, fallback: number): number {\n\treturn value === undefined || !Number.isFinite(value) ? fallback : Math.max(0, Math.floor(value));\n}\n\nexport abstract class Stack extends Container {\n\tprotected readonly entries: StackLayoutEntry[] = [];\n\tprotected readonly gap: number;\n\tprotected readonly align: \"stretch\" | \"start\" | \"center\" | \"end\";\n\tprotected readonly padX: number;\n\tprotected readonly padY: number;\n\tprotected abstract readonly layoutType: \"vstack\" | \"hstack\";\n\n\tconstructor(children: StackChild[] = [], options: StackOptions = {}) {\n\t\tsuper();\n\t\tthis.gap = normalizeSize(options.gap, 0);\n\t\tthis.align = options.align ?? \"stretch\";\n\t\tthis.padX = normalizeSize(options.padX, 0);\n\t\tthis.padY = normalizeSize(options.padY, 0);\n\t\tfor (const child of children) {\n\t\t\tif (isStackEntry(child)) this.addChild(child.component, child);\n\t\t\telse this.addChild(child);\n\t\t}\n\t}\n\n\toverride addChild(component: Component, options: StackEntryOptions = {}): void {\n\t\tsuper.addChild(component);\n\t\tthis.entries.push({\n\t\t\tcomponent,\n\t\t\t...(options.basis === undefined ? {} : { basis: options.basis }),\n\t\t\t...(options.grow === undefined ? {} : { grow: normalizeSize(options.grow, 0) }),\n\t\t\t...(options.shrink === undefined ? {} : { shrink: normalizeSize(options.shrink, 1) }),\n\t\t\t...(options.minSize === undefined ? {} : { minSize: normalizeSize(options.minSize, 0) }),\n\t\t\t...(options.maxSize === undefined ? {} : { maxSize: normalizeSize(options.maxSize, Number.MAX_SAFE_INTEGER) }),\n\t\t\t...(options.visible === undefined ? {} : { visible: options.visible }),\n\t\t});\n\t}\n\n\toverride removeChild(component: Component): void {\n\t\tsuper.removeChild(component);\n\t\tconst index = this.entries.findIndex((entry) => entry.component === component);\n\t\tif (index !== -1) this.entries.splice(index, 1);\n\t}\n\n\toverride clear(): void {\n\t\tsuper.clear();\n\t\tthis.entries.length = 0;\n\t}\n\n\t[LAYOUT_NODE](): StackLayoutNode {\n\t\treturn {\n\t\t\ttype: this.layoutType,\n\t\t\tentries: this.entries,\n\t\t\tgap: this.gap,\n\t\t\talign: this.align,\n\t\t\t...(this.padX > 0 ? { padX: this.padX } : {}),\n\t\t\t...(this.padY > 0 ? { padY: this.padY } : {}),\n\t\t};\n\t}\n}\n\nexport function visibleStackEntries(\n\tentries: readonly StackLayoutEntry[],\n\tviewport: LayoutViewport,\n): StackLayoutEntry[] {\n\treturn entries.filter((entry) => entry.visible?.(viewport) ?? true);\n}\n\nfunction clampSize(size: number, entry: StackLayoutEntry): number {\n\tconst min = Math.max(0, Math.floor(entry.minSize ?? 0));\n\tconst max = Math.max(min, Math.floor(entry.maxSize ?? Number.MAX_SAFE_INTEGER));\n\treturn Math.max(min, Math.min(max, Math.max(0, Math.floor(size))));\n}\n\nfunction distribute(\n\tsizes: number[],\n\tentries: readonly StackLayoutEntry[],\n\tamount: number,\n\tmode: \"grow\" | \"shrink\",\n): void {\n\tlet remaining = amount;\n\twhile (remaining > 0) {\n\t\tconst candidates = entries\n\t\t\t.map((entry, index) => ({ entry, index }))\n\t\t\t.filter(({ entry, index }) => {\n\t\t\t\tif (mode === \"grow\") {\n\t\t\t\t\treturn (entry.grow ?? 0) > 0 && sizes[index]! < (entry.maxSize ?? Number.MAX_SAFE_INTEGER);\n\t\t\t\t}\n\t\t\t\treturn (entry.shrink ?? 1) > 0 && sizes[index]! > (entry.minSize ?? 0);\n\t\t\t});\n\t\tif (candidates.length === 0) return;\n\n\t\tconst totalWeight = candidates.reduce((sum, { entry, index }) => {\n\t\t\treturn sum + (mode === \"grow\" ? (entry.grow ?? 0) : (entry.shrink ?? 1) * Math.max(1, sizes[index]!));\n\t\t}, 0);\n\t\tlet distributed = 0;\n\t\tfor (const { entry, index } of candidates) {\n\t\t\tif (remaining <= 0) break;\n\t\t\tconst weight = mode === \"grow\" ? (entry.grow ?? 0) : (entry.shrink ?? 1) * Math.max(1, sizes[index]!);\n\t\t\tconst proposed = Math.max(1, Math.floor((remaining * weight) / totalWeight));\n\t\t\tconst capacity =\n\t\t\t\tmode === \"grow\"\n\t\t\t\t\t? (entry.maxSize ?? Number.MAX_SAFE_INTEGER) - sizes[index]!\n\t\t\t\t\t: sizes[index]! - (entry.minSize ?? 0);\n\t\t\tconst delta = Math.min(remaining, proposed, capacity);\n\t\t\tif (delta <= 0) continue;\n\t\t\tsizes[index] = sizes[index]! + (mode === \"grow\" ? delta : -delta);\n\t\t\tremaining -= delta;\n\t\t\tdistributed += delta;\n\t\t}\n\t\tif (distributed === 0) return;\n\t}\n}\n\nexport function allocateStackSizes(\n\tentries: readonly StackLayoutEntry[],\n\tintrinsicSizes: readonly number[],\n\tavailableSize: number | undefined,\n\tgap: number,\n): number[] {\n\tconst sizes = entries.map((entry, index) =>\n\t\tclampSize(\n\t\t\tentry.basis === undefined || entry.basis === \"auto\" ? (intrinsicSizes[index] ?? 0) : entry.basis,\n\t\t\tentry,\n\t\t),\n\t);\n\tif (availableSize === undefined) return sizes;\n\n\tconst contentSize = Math.max(0, Math.floor(availableSize) - Math.max(0, entries.length - 1) * gap);\n\tconst total = sizes.reduce((sum, size) => sum + size, 0);\n\tif (total < contentSize) distribute(sizes, entries, contentSize - total, \"grow\");\n\telse if (total > contentSize) distribute(sizes, entries, total - contentSize, \"shrink\");\n\treturn sizes;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stack.js","sourceRoot":"","sources":["../../src/components/stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoE,MAAM,mBAAmB,CAAC;AAClH,OAAO,EAAkB,SAAS,EAAE,MAAM,WAAW,CAAC;AA0BtD,SAAS,YAAY,CAAC,KAAiB,EAAuB;IAC7D,OAAO,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,CAAC;AAAA,CAC5B;AAED,SAAS,aAAa,CAAC,KAAyB,EAAE,QAAgB,EAAU;IAC3E,OAAO,KAAK,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAAA,CAClG;AAED,MAAM,OAAgB,KAAM,SAAQ,SAAS;IACzB,OAAO,GAAuB,EAAE,CAAC;IACjC,GAAG,CAAS;IACZ,KAAK,CAAyC;IAC9C,IAAI,CAAS;IACb,IAAI,CAAS;IAGhC,YAAY,QAAQ,GAAiB,EAAE,EAAE,OAAO,GAAiB,EAAE,EAAE;QACpE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,SAAS,CAAC;QACxC,IAAI,CAAC,IA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AAC,aAAa,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;IACnG,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;IACzD,IAAI,KAAK,GAAG,WAAW;QAAE,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,GAAG,KAAK,EAAE,MAAM,CAAC,CAAC;SAC5E,IAAI,KAAK,GAAG,WAAW;QAAE,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,GAAG,WAAW,EAAE,QAAQ,CAAC,CAAC;IACxF,OAAO,KAAK,CAAC;AAAA,CACb","sourcesContent":["import { LAYOUT_NODE, type LayoutViewport, type StackLayoutEntry, type StackLayoutNode } from \"../layout-node.ts\";\nimport { type Component, Container } from \"../tui.ts\";\n\nexport interface StackEntryOptions {\n\tbasis?: number | \"auto\";\n\tgrow?: number;\n\tshrink?: number;\n\tminSize?: number;\n\tmaxSize?: number;\n\tvisible?: (viewport: LayoutViewport) => boolean;\n}\n\nexport interface StackEntry extends StackEntryOptions {\n\tcomponent: Component;\n}\n\nexport type StackChild = Component | StackEntry;\n\nexport interface StackOptions {\n\tgap?: number;\n\talign?: \"stretch\" | \"start\" | \"center\" | \"end\";\n\t/** Horizontal inset applied to children (fullscreen gutter). */\n\tpadX?: number;\n\t/** Vertical inset applied to children (fullscreen gutter). */\n\tpadY?: number;\n}\n\nfunction isStackEntry(child: StackChild): child is StackEntry {\n\treturn !(\"render\" in child);\n}\n\nfunction normalizeSize(value: number | undefined, fallback: number): number {\n\treturn value === undefined || !Number.isFinite(value) ? fallback : Math.max(0, Math.floor(value));\n}\n\nexport abstract class Stack extends Container {\n\tprotected readonly entries: StackLayoutEntry[] = [];\n\tprotected readonly gap: number;\n\tprotected readonly align: \"stretch\" | \"start\" | \"center\" | \"end\";\n\tprotected readonly padX: number;\n\tprotected readonly padY: number;\n\tprotected abstract readonly layoutType: \"vstack\" | \"hstack\";\n\n\tconstructor(children: StackChild[] = [], options: StackOptions = {}) {\n\t\tsuper();\n\t\tthis.gap = normalizeSize(options.gap, 0);\n\t\tthis.align = options.align ?? \"stretch\";\n\t\tthis.padX = normalizeSize(options.padX, 0);\n\t\tthis.padY = normalizeSize(options.padY, 0);\n\t\tfor (const child of children) {\n\t\t\tif (isStackEntry(child)) this.addChild(child.component, child);\n\t\t\telse this.addChild(child);\n\t\t}\n\t}\n\n\toverride addChild(component: Component, options: StackEntryOptions = {}): void {\n\t\tsuper.addChild(component);\n\t\tthis.entries.push({\n\t\t\tcomponent,\n\t\t\t...(options.basis === undefined ? {} : { basis: options.basis }),\n\t\t\t...(options.grow === undefined ? {} : { grow: normalizeSize(options.grow, 0) }),\n\t\t\t...(options.shrink === undefined ? {} : { shrink: normalizeSize(options.shrink, 1) }),\n\t\t\t...(options.minSize === undefined ? {} : { minSize: normalizeSize(options.minSize, 0) }),\n\t\t\t...(options.maxSize === undefined ? {} : { maxSize: normalizeSize(options.maxSize, Number.MAX_SAFE_INTEGER) }),\n\t\t\t...(options.visible === undefined ? {} : { visible: options.visible }),\n\t\t});\n\t}\n\n\toverride removeChild(component: Component): void {\n\t\tsuper.removeChild(component);\n\t\tconst index = this.entries.findIndex((entry) => entry.component === component);\n\t\tif (index !== -1) this.entries.splice(index, 1);\n\t}\n\n\toverride clear(): void {\n\t\tsuper.clear();\n\t\tthis.entries.length = 0;\n\t}\n\n\t[LAYOUT_NODE](): StackLayoutNode {\n\t\treturn {\n\t\t\ttype: this.layoutType,\n\t\t\tentries: this.entries,\n\t\t\tgap: this.gap,\n\t\t\talign: this.align,\n\t\t\t...(this.padX > 0 ? { padX: this.padX } : {}),\n\t\t\t...(this.padY > 0 ? { padY: this.padY } : {}),\n\t\t};\n\t}\n}\n\nexport function visibleStackEntries(\n\tentries: readonly StackLayoutEntry[],\n\tviewport: LayoutViewport,\n): StackLayoutEntry[] {\n\treturn entries.filter((entry) => entry.visible?.(viewport) ?? true);\n}\n\nfunction clampSize(size: number, entry: StackLayoutEntry): number {\n\tconst min = Math.max(0, Math.floor(entry.minSize ?? 0));\n\tconst max = Math.max(min, Math.floor(entry.maxSize ?? Number.MAX_SAFE_INTEGER));\n\treturn Math.max(min, Math.min(max, Math.max(0, Math.floor(size))));\n}\n\nfunction distribute(\n\tsizes: number[],\n\tentries: readonly StackLayoutEntry[],\n\tamount: number,\n\tmode: \"grow\" | \"shrink\",\n): void {\n\tlet remaining = amount;\n\twhile (remaining > 0) {\n\t\tconst candidates = entries\n\t\t\t.map((entry, index) => ({ entry, index }))\n\t\t\t.filter(({ entry, index }) => {\n\t\t\t\tif (mode === \"grow\") {\n\t\t\t\t\treturn (entry.grow ?? 0) > 0 && sizes[index]! < (entry.maxSize ?? Number.MAX_SAFE_INTEGER);\n\t\t\t\t}\n\t\t\t\treturn (entry.shrink ?? 1) > 0 && sizes[index]! > (entry.minSize ?? 0);\n\t\t\t});\n\t\tif (candidates.length === 0) return;\n\n\t\tconst totalWeight = candidates.reduce((sum, { entry, index }) => {\n\t\t\treturn sum + (mode === \"grow\" ? (entry.grow ?? 0) : (entry.shrink ?? 1) * Math.max(1, sizes[index]!));\n\t\t}, 0);\n\t\tlet distributed = 0;\n\t\tfor (const { entry, index } of candidates) {\n\t\t\tif (remaining <= 0) break;\n\t\t\tconst weight = mode === \"grow\" ? (entry.grow ?? 0) : (entry.shrink ?? 1) * Math.max(1, sizes[index]!);\n\t\t\tconst proposed = Math.max(1, Math.floor((remaining * weight) / totalWeight));\n\t\t\tconst capacity =\n\t\t\t\tmode === \"grow\"\n\t\t\t\t\t? (entry.maxSize ?? Number.MAX_SAFE_INTEGER) - sizes[index]!\n\t\t\t\t\t: sizes[index]! - (entry.minSize ?? 0);\n\t\t\tconst delta = Math.min(remaining, proposed, capacity);\n\t\t\tif (delta <= 0) continue;\n\t\t\tsizes[index] = sizes[index]! + (mode === \"grow\" ? delta : -delta);\n\t\t\tremaining -= delta;\n\t\t\tdistributed += delta;\n\t\t}\n\t\tif (distributed === 0) return;\n\t}\n}\n\nexport function allocateStackSizes(\n\tentries: readonly StackLayoutEntry[],\n\tintrinsicSizes: readonly number[],\n\tavailableSize: number | undefined,\n\tgap: number,\n): number[] {\n\tconst sizes = entries.map((entry, index) =>\n\t\tclampSize(\n\t\t\tentry.basis === undefined || entry.basis === \"auto\" ? (intrinsicSizes[index] ?? 0) : entry.basis,\n\t\t\tentry,\n\t\t),\n\t);\n\tif (availableSize === undefined) return sizes;\n\n\tconst contentSize = Math.max(0, Math.floor(availableSize) - Math.max(0, entries.length - 1) * gap);\n\tconst total = sizes.reduce((sum, size) => sum + size, 0);\n\tif (total < contentSize) distribute(sizes, entries, contentSize - total, \"grow\");\n\telse if (total > contentSize) distribute(sizes, entries, total - contentSize, \"shrink\");\n\treturn sizes;\n}\n"]}
@@ -1,19 +0,0 @@
1
- import { type Component } from "../tui.ts";
2
- /**
3
- * Text component - displays multi-line text with word wrapping
4
- */
5
- export declare class Text implements Component {
6
- private text;
7
- private paddingX;
8
- private paddingY;
9
- private customBgFn?;
10
- private cachedText?;
11
- private cachedWidth?;
12
- private cachedLines?;
13
- constructor(text?: string, paddingX?: number, paddingY?: number, customBgFn?: (text: string) => string);
14
- setText(text: string): void;
15
- setCustomBgFn(customBgFn?: (text: string) => string): void;
16
- invalidate(): void;
17
- render(width: number): string[];
18
- }
19
- //# sourceMappingURL=text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/components/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAGhE;;GAEG;AACH,qBAAa,IAAK,YAAW,SAAS;IACrC,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,UAAU,CAAC,CAA2B;IAG9C,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,WAAW,CAAC,CAAW;IAE/B,YAAY,IAAI,GAAE,MAAW,EAAE,QAAQ,GAAE,MAAU,EAAE,QAAQ,GAAE,MAAU,EAAE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAK/G;IAED,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAG1B;IAED,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAKzD;IAED,UAAU,IAAI,IAAI,CAKjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CA6D9B;CACD","sourcesContent":["import { bumpLayoutAncestors, type Component } from \"../tui.ts\";\nimport { applyBackgroundToLine, visibleWidth, wrapTextWithAnsi } from \"../utils.ts\";\n\n/**\n * Text component - displays multi-line text with word wrapping\n */\nexport class Text implements Component {\n\tprivate text: string;\n\tprivate paddingX: number; // Left/right padding\n\tprivate paddingY: number; // Top/bottom padding\n\tprivate customBgFn?: (text: string) => string;\n\n\t// Cache for rendered output\n\tprivate cachedText?: string;\n\tprivate cachedWidth?: number;\n\tprivate cachedLines?: string[];\n\n\tconstructor(text: string = \"\", paddingX: number = 1, paddingY: number = 1, customBgFn?: (text: string) => string) {\n\t\tthis.text = text;\n\t\tthis.paddingX = paddingX;\n\t\tthis.paddingY = paddingY;\n\t\tthis.customBgFn = customBgFn;\n\t}\n\n\tsetText(text: string): void {\n\t\tthis.text = text;\n\t\tthis.invalidate();\n\t}\n\n\tsetCustomBgFn(customBgFn?: (text: string) => string): void {\n\t\tthis.customBgFn = customBgFn;\n\t\tthis.cachedText = undefined;\n\t\tthis.cachedWidth = undefined;\n\t\tthis.cachedLines = undefined;\n\t}\n\n\tinvalidate(): void {\n\t\tthis.cachedText = undefined;\n\t\tthis.cachedWidth = undefined;\n\t\tthis.cachedLines = undefined;\n\t\tbumpLayoutAncestors(this);\n\t}\n\n\trender(width: number): string[] {\n\t\t// Check cache\n\t\tif (this.cachedLines && this.cachedText === this.text && this.cachedWidth === width) {\n\t\t\treturn this.cachedLines;\n\t\t}\n\n\t\t// Don't render anything if there's no actual text\n\t\tif (!this.text || this.text.trim() === \"\") {\n\t\t\tconst result: string[] = [];\n\t\t\tthis.cachedText = this.text;\n\t\t\tthis.cachedWidth = width;\n\t\t\tthis.cachedLines = result;\n\t\t\treturn result;\n\t\t}\n\n\t\t// Replace tabs with 3 spaces\n\t\tconst normalizedText = this.text.replace(/\\t/g, \" \");\n\n\t\t// Reduce margins when necessary so content and padding fit within the available width.\n\t\tconst paddingX = Math.min(this.paddingX, Math.max(0, Math.floor((width - 1) / 2)));\n\t\tconst contentWidth = Math.max(1, width - paddingX * 2);\n\n\t\t// Wrap text (this preserves ANSI codes but does NOT pad)\n\t\tconst wrappedLines = wrapTextWithAnsi(normalizedText, contentWidth);\n\n\t\t// Add margins and background to each line\n\t\tconst leftMargin = \" \".repeat(paddingX);\n\t\tconst rightMargin = \" \".repeat(paddingX);\n\t\tconst contentLines: string[] = [];\n\n\t\tfor (const line of wrappedLines) {\n\t\t\t// Add margins\n\t\t\tconst lineWithMargins = leftMargin + line + rightMargin;\n\n\t\t\t// Apply background if specified (this also pads to full width)\n\t\t\tif (this.customBgFn) {\n\t\t\t\tcontentLines.push(applyBackgroundToLine(lineWithMargins, width, this.customBgFn));\n\t\t\t} else {\n\t\t\t\t// No background - just pad to width with spaces\n\t\t\t\tconst visibleLen = visibleWidth(lineWithMargins);\n\t\t\t\tconst paddingNeeded = Math.max(0, width - visibleLen);\n\t\t\t\tcontentLines.push(lineWithMargins + \" \".repeat(paddingNeeded));\n\t\t\t}\n\t\t}\n\n\t\t// Add top/bottom padding (empty lines)\n\t\tconst emptyLine = \" \".repeat(width);\n\t\tconst emptyLines: string[] = [];\n\t\tfor (let i = 0; i < this.paddingY; i++) {\n\t\t\tconst line = this.customBgFn ? applyBackgroundToLine(emptyLine, width, this.customBgFn) : emptyLine;\n\t\t\temptyLines.push(line);\n\t\t}\n\n\t\tconst result = [...emptyLines, ...contentLines, ...emptyLines];\n\n\t\t// Update cache\n\t\tthis.cachedText = this.text;\n\t\tthis.cachedWidth = width;\n\t\tthis.cachedLines = result;\n\n\t\treturn result.length > 0 ? result : [\"\"];\n\t}\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/components/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAkB,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpF;;GAEG;AACH,MAAM,OAAO,IAAI;IACR,IAAI,CAAS;IACb,QAAQ,CAAS,CAAC,qBAAqB;IACvC,QAAQ,CAAS,CAAC,qBAAqB;IACvC,UAAU,CAA4B;IAE9C,4BAA4B;IACpB,UAAU,CAAU;IACpB,WAAW,CAAU;IACrB,WAAW,CAAY;IAE/B,YAAY,IAAI,GAAW,EAAE,EAAE,QAAQ,GAAW,CAAC,EAAE,QAAQ,GAAW,CAAC,EAAE,UAAqC,EAAE;QACjH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAAA,CAC7B;IAED,OAAO,CAAC,IAAY,EAAQ;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,EAAE,CAAC;IAAA,CAClB;IAED,aAAa,CAAC,UAAqC,EAAQ;QAC1D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,C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EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACpG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;QAED,MAAM,MAAM,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,YAAY,EAAE,GAAG,UAAU,CAAC,CAAC;QAE/D,eAAe;QACf,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;QAE1B,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAAA,CACzC;CACD","sourcesContent":["import { bumpLayoutAncestors, type Component } from \"../tui.ts\";\nimport { applyBackgroundToLine, visibleWidth, wrapTextWithAnsi } from \"../utils.ts\";\n\n/**\n * Text component - displays multi-line text with word wrapping\n */\nexport class Text implements Component {\n\tprivate text: string;\n\tprivate paddingX: number; // Left/right padding\n\tprivate paddingY: number; // Top/bottom padding\n\tprivate customBgFn?: (text: string) => string;\n\n\t// Cache for rendered output\n\tprivate cachedText?: string;\n\tprivate cachedWidth?: number;\n\tprivate cachedLines?: string[];\n\n\tconstructor(text: string = \"\", paddingX: number = 1, paddingY: number = 1, customBgFn?: (text: string) => string) {\n\t\tthis.text = text;\n\t\tthis.paddingX = paddingX;\n\t\tthis.paddingY = paddingY;\n\t\tthis.customBgFn = customBgFn;\n\t}\n\n\tsetText(text: string): void {\n\t\tthis.text = text;\n\t\tthis.invalidate();\n\t}\n\n\tsetCustomBgFn(customBgFn?: (text: string) => string): void {\n\t\tthis.customBgFn = customBgFn;\n\t\tthis.cachedText = undefined;\n\t\tthis.cachedWidth = undefined;\n\t\tthis.cachedLines = undefined;\n\t}\n\n\tinvalidate(): void {\n\t\tthis.cachedText = undefined;\n\t\tthis.cachedWidth = undefined;\n\t\tthis.cachedLines = undefined;\n\t\tbumpLayoutAncestors(this);\n\t}\n\n\trender(width: number): string[] {\n\t\t// Check cache\n\t\tif (this.cachedLines && this.cachedText === this.text && this.cachedWidth === width) {\n\t\t\treturn this.cachedLines;\n\t\t}\n\n\t\t// Don't render anything if there's no actual text\n\t\tif (!this.text || this.text.trim() === \"\") {\n\t\t\tconst result: string[] = [];\n\t\t\tthis.cachedText = this.text;\n\t\t\tthis.cachedWidth = width;\n\t\t\tthis.cachedLines = result;\n\t\t\treturn result;\n\t\t}\n\n\t\t// Replace tabs with 3 spaces\n\t\tconst normalizedText = this.text.replace(/\\t/g, \" \");\n\n\t\t// Reduce margins when necessary so content and padding fit within the available width.\n\t\tconst paddingX = Math.min(this.paddingX, Math.max(0, Math.floor((width - 1) / 2)));\n\t\tconst contentWidth = Math.max(1, width - paddingX * 2);\n\n\t\t// Wrap text (this preserves ANSI codes but does NOT pad)\n\t\tconst wrappedLines = wrapTextWithAnsi(normalizedText, contentWidth);\n\n\t\t// Add margins and background to each line\n\t\tconst leftMargin = \" \".repeat(paddingX);\n\t\tconst rightMargin = \" \".repeat(paddingX);\n\t\tconst contentLines: string[] = [];\n\n\t\tfor (const line of wrappedLines) {\n\t\t\t// Add margins\n\t\t\tconst lineWithMargins = leftMargin + line + rightMargin;\n\n\t\t\t// Apply background if specified (this also pads to full width)\n\t\t\tif (this.customBgFn) {\n\t\t\t\tcontentLines.push(applyBackgroundToLine(lineWithMargins, width, this.customBgFn));\n\t\t\t} else {\n\t\t\t\t// No background - just pad to width with spaces\n\t\t\t\tconst visibleLen = visibleWidth(lineWithMargins);\n\t\t\t\tconst paddingNeeded = Math.max(0, width - visibleLen);\n\t\t\t\tcontentLines.push(lineWithMargins + \" \".repeat(paddingNeeded));\n\t\t\t}\n\t\t}\n\n\t\t// Add top/bottom padding (empty lines)\n\t\tconst emptyLine = \" \".repeat(width);\n\t\tconst emptyLines: string[] = [];\n\t\tfor (let i = 0; i < this.paddingY; i++) {\n\t\t\tconst line = this.customBgFn ? applyBackgroundToLine(emptyLine, width, this.customBgFn) : emptyLine;\n\t\t\temptyLines.push(line);\n\t\t}\n\n\t\tconst result = [...emptyLines, ...contentLines, ...emptyLines];\n\n\t\t// Update cache\n\t\tthis.cachedText = this.text;\n\t\tthis.cachedWidth = width;\n\t\tthis.cachedLines = result;\n\n\t\treturn result.length > 0 ? result : [\"\"];\n\t}\n}\n"]}
@@ -1,13 +0,0 @@
1
- import type { Component } from "../tui.ts";
2
- /**
3
- * Text component that truncates to fit viewport width
4
- */
5
- export declare class TruncatedText implements Component {
6
- private text;
7
- private paddingX;
8
- private paddingY;
9
- constructor(text: string, paddingX?: number, paddingY?: number);
10
- invalidate(): void;
11
- render(width: number): string[];
12
- }
13
- //# sourceMappingURL=truncated-text.d.ts.map