@code-yeongyu/senpi 2026.9.12-2 → 2026.9.12-3

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 (1459) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +1 -1
  3. package/dist/bun/cli.d.ts +2 -1
  4. package/dist/bun/cli.d.ts.map +1 -1
  5. package/dist/bun/cli.js +5 -8
  6. package/dist/bun/cli.js.map +1 -1
  7. package/dist/bun/runtime-setup.d.ts +2 -0
  8. package/dist/bun/runtime-setup.d.ts.map +1 -0
  9. package/dist/bun/runtime-setup.js +9 -0
  10. package/dist/bun/runtime-setup.js.map +1 -0
  11. package/dist/bun/sandbox-env-setup.d.ts +2 -0
  12. package/dist/bun/sandbox-env-setup.d.ts.map +1 -0
  13. package/dist/bun/sandbox-env-setup.js +4 -0
  14. package/dist/bun/sandbox-env-setup.js.map +1 -0
  15. package/dist/cli/config-selector.d.ts.map +1 -1
  16. package/dist/cli/config-selector.js +2 -1
  17. package/dist/cli/config-selector.js.map +1 -1
  18. package/dist/cli/setup.d.ts +2 -0
  19. package/dist/cli/setup.d.ts.map +1 -0
  20. package/dist/cli/setup.js +12 -0
  21. package/dist/cli/setup.js.map +1 -0
  22. package/dist/cli.js +3 -0
  23. package/dist/cli.js.map +1 -1
  24. package/dist/client/index.d.ts +1 -2
  25. package/dist/client/index.d.ts.map +1 -1
  26. package/dist/client/index.js +1 -2
  27. package/dist/client/index.js.map +1 -1
  28. package/dist/config.d.ts +1 -0
  29. package/dist/config.d.ts.map +1 -1
  30. package/dist/config.js +1 -0
  31. package/dist/config.js.map +1 -1
  32. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  33. package/dist/core/agent-session-runtime.js +13 -5
  34. package/dist/core/agent-session-runtime.js.map +1 -1
  35. package/dist/core/agent-session.d.ts +41 -8
  36. package/dist/core/agent-session.d.ts.map +1 -1
  37. package/dist/core/agent-session.js +99 -36
  38. package/dist/core/agent-session.js.map +1 -1
  39. package/dist/core/compaction/branch-summarization.d.ts +1 -1
  40. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  41. package/dist/core/compaction/branch-summarization.js +6 -4
  42. package/dist/core/compaction/branch-summarization.js.map +1 -1
  43. package/dist/core/compaction-settings-access.d.ts +18 -2
  44. package/dist/core/compaction-settings-access.d.ts.map +1 -1
  45. package/dist/core/compaction-settings-access.js +35 -4
  46. package/dist/core/compaction-settings-access.js.map +1 -1
  47. package/dist/core/compaction-settings-resolver.d.ts +2 -2
  48. package/dist/core/compaction-settings-resolver.d.ts.map +1 -1
  49. package/dist/core/compaction-settings-resolver.js +6 -3
  50. package/dist/core/compaction-settings-resolver.js.map +1 -1
  51. package/dist/core/extensions/builtin/ask-user/extension.d.ts.map +1 -1
  52. package/dist/core/extensions/builtin/ask-user/extension.js +11 -0
  53. package/dist/core/extensions/builtin/ask-user/extension.js.map +1 -1
  54. package/dist/core/extensions/builtin/prompt-preset/presets.d.ts.map +1 -1
  55. package/dist/core/extensions/builtin/prompt-preset/presets.js +7 -1
  56. package/dist/core/extensions/builtin/prompt-preset/presets.js.map +1 -1
  57. package/dist/core/extensions/loader.d.ts.map +1 -1
  58. package/dist/core/extensions/loader.js +4 -2
  59. package/dist/core/extensions/loader.js.map +1 -1
  60. package/dist/core/keybindings.d.ts +10 -0
  61. package/dist/core/keybindings.d.ts.map +1 -1
  62. package/dist/core/keybindings.js +8 -0
  63. package/dist/core/keybindings.js.map +1 -1
  64. package/dist/core/messages.d.ts +1 -1
  65. package/dist/core/messages.d.ts.map +1 -1
  66. package/dist/core/messages.js.map +1 -1
  67. package/dist/core/model-registry.d.ts +5 -1
  68. package/dist/core/model-registry.d.ts.map +1 -1
  69. package/dist/core/model-registry.js +8 -0
  70. package/dist/core/model-registry.js.map +1 -1
  71. package/dist/core/model-resolver.d.ts.map +1 -1
  72. package/dist/core/model-resolver.js +2 -0
  73. package/dist/core/model-resolver.js.map +1 -1
  74. package/dist/core/model-runtime.d.ts +1 -0
  75. package/dist/core/model-runtime.d.ts.map +1 -1
  76. package/dist/core/model-runtime.js +5 -2
  77. package/dist/core/model-runtime.js.map +1 -1
  78. package/dist/core/retry-fallback/settings.d.ts +2 -0
  79. package/dist/core/retry-fallback/settings.d.ts.map +1 -1
  80. package/dist/core/retry-fallback/settings.js.map +1 -1
  81. package/dist/core/session-manager.d.ts +3 -2
  82. package/dist/core/session-manager.d.ts.map +1 -1
  83. package/dist/core/session-manager.js +47 -7
  84. package/dist/core/session-manager.js.map +1 -1
  85. package/dist/core/settings-manager.d.ts +12 -5
  86. package/dist/core/settings-manager.d.ts.map +1 -1
  87. package/dist/core/settings-manager.js +18 -6
  88. package/dist/core/settings-manager.js.map +1 -1
  89. package/dist/core/settings-public-types.d.ts +1 -1
  90. package/dist/core/settings-public-types.d.ts.map +1 -1
  91. package/dist/core/settings-public-types.js.map +1 -1
  92. package/dist/core/skills.d.ts +1 -1
  93. package/dist/core/skills.d.ts.map +1 -1
  94. package/dist/core/skills.js +6 -2
  95. package/dist/core/skills.js.map +1 -1
  96. package/dist/core/system-prompt.d.ts.map +1 -1
  97. package/dist/core/system-prompt.js +8 -9
  98. package/dist/core/system-prompt.js.map +1 -1
  99. package/dist/core/tools/bash.d.ts.map +1 -1
  100. package/dist/core/tools/bash.js +3 -142
  101. package/dist/core/tools/bash.js.map +1 -1
  102. package/dist/core/tools/edit.d.ts +1 -12
  103. package/dist/core/tools/edit.d.ts.map +1 -1
  104. package/dist/core/tools/edit.js +4 -168
  105. package/dist/core/tools/edit.js.map +1 -1
  106. package/dist/core/tools/find.d.ts.map +1 -1
  107. package/dist/core/tools/find.js +2 -53
  108. package/dist/core/tools/find.js.map +1 -1
  109. package/dist/core/tools/grep.d.ts.map +1 -1
  110. package/dist/core/tools/grep.js +2 -58
  111. package/dist/core/tools/grep.js.map +1 -1
  112. package/dist/core/tools/ls.d.ts.map +1 -1
  113. package/dist/core/tools/ls.js +2 -47
  114. package/dist/core/tools/ls.js.map +1 -1
  115. package/dist/core/tools/read.d.ts +1 -4
  116. package/dist/core/tools/read.d.ts.map +1 -1
  117. package/dist/core/tools/read.js +4 -141
  118. package/dist/core/tools/read.js.map +1 -1
  119. package/dist/core/tools/renderers/bash.d.ts +12 -0
  120. package/dist/core/tools/renderers/bash.d.ts.map +1 -0
  121. package/dist/core/tools/renderers/bash.js +156 -0
  122. package/dist/core/tools/renderers/bash.js.map +1 -0
  123. package/dist/core/tools/renderers/edit.d.ts +23 -0
  124. package/dist/core/tools/renderers/edit.d.ts.map +1 -0
  125. package/dist/core/tools/renderers/edit.js +172 -0
  126. package/dist/core/tools/renderers/edit.js.map +1 -0
  127. package/dist/core/tools/renderers/find.d.ts +10 -0
  128. package/dist/core/tools/renderers/find.d.ts.map +1 -0
  129. package/dist/core/tools/renderers/find.js +64 -0
  130. package/dist/core/tools/renderers/find.js.map +1 -0
  131. package/dist/core/tools/renderers/grep.d.ts +10 -0
  132. package/dist/core/tools/renderers/grep.d.ts.map +1 -0
  133. package/dist/core/tools/renderers/grep.js +69 -0
  134. package/dist/core/tools/renderers/grep.js.map +1 -0
  135. package/dist/core/tools/renderers/index.d.ts +28 -0
  136. package/dist/core/tools/renderers/index.d.ts.map +1 -0
  137. package/dist/core/tools/renderers/index.js +47 -0
  138. package/dist/core/tools/renderers/index.js.map +1 -0
  139. package/dist/core/tools/renderers/ls.d.ts +10 -0
  140. package/dist/core/tools/renderers/ls.d.ts.map +1 -0
  141. package/dist/core/tools/renderers/ls.js +58 -0
  142. package/dist/core/tools/renderers/ls.js.map +1 -0
  143. package/dist/core/tools/renderers/read.d.ts +19 -0
  144. package/dist/core/tools/renderers/read.d.ts.map +1 -0
  145. package/dist/core/tools/renderers/read.js +149 -0
  146. package/dist/core/tools/renderers/read.js.map +1 -0
  147. package/dist/core/tools/renderers/write.d.ts +10 -0
  148. package/dist/core/tools/renderers/write.d.ts.map +1 -0
  149. package/dist/core/tools/renderers/write.js +162 -0
  150. package/dist/core/tools/renderers/write.js.map +1 -0
  151. package/dist/core/tools/write.d.ts.map +1 -1
  152. package/dist/core/tools/write.js +4 -153
  153. package/dist/core/tools/write.js.map +1 -1
  154. package/dist/index.d.ts +2 -2
  155. package/dist/index.d.ts.map +1 -1
  156. package/dist/index.js.map +1 -1
  157. package/dist/migrations.d.ts.map +1 -1
  158. package/dist/migrations.js +2 -2
  159. package/dist/migrations.js.map +1 -1
  160. package/dist/modes/app-server/threads/turn-runtime.d.ts +3 -1
  161. package/dist/modes/app-server/threads/turn-runtime.d.ts.map +1 -1
  162. package/dist/modes/app-server/threads/turn-runtime.js.map +1 -1
  163. package/dist/modes/app-server/threads/turns.js +1 -1
  164. package/dist/modes/app-server/threads/turns.js.map +1 -1
  165. package/dist/modes/app-server/turn-adapter.js +4 -2
  166. package/dist/modes/app-server/turn-adapter.js.map +1 -1
  167. package/dist/modes/interactive/chat-viewport.d.ts +22 -0
  168. package/dist/modes/interactive/chat-viewport.d.ts.map +1 -0
  169. package/dist/modes/interactive/chat-viewport.js +29 -0
  170. package/dist/modes/interactive/chat-viewport.js.map +1 -0
  171. package/dist/modes/interactive/components/ask-user-answer-key.d.ts +14 -0
  172. package/dist/modes/interactive/components/ask-user-answer-key.d.ts.map +1 -0
  173. package/dist/modes/interactive/components/ask-user-answer-key.js +65 -0
  174. package/dist/modes/interactive/components/ask-user-answer-key.js.map +1 -0
  175. package/dist/modes/interactive/components/ask-user-async-widget.d.ts +17 -14
  176. package/dist/modes/interactive/components/ask-user-async-widget.d.ts.map +1 -1
  177. package/dist/modes/interactive/components/ask-user-async-widget.js +47 -39
  178. package/dist/modes/interactive/components/ask-user-async-widget.js.map +1 -1
  179. package/dist/modes/interactive/components/assistant-message.d.ts +7 -0
  180. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  181. package/dist/modes/interactive/components/assistant-message.js +26 -2
  182. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  183. package/dist/modes/interactive/components/assistant-render-descriptors.d.ts +4 -0
  184. package/dist/modes/interactive/components/assistant-render-descriptors.d.ts.map +1 -1
  185. package/dist/modes/interactive/components/assistant-render-descriptors.js +8 -5
  186. package/dist/modes/interactive/components/assistant-render-descriptors.js.map +1 -1
  187. package/dist/modes/interactive/components/custom-editor.d.ts +10 -1
  188. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  189. package/dist/modes/interactive/components/custom-editor.js +37 -1
  190. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  191. package/dist/modes/interactive/components/index.d.ts +1 -1
  192. package/dist/modes/interactive/components/index.d.ts.map +1 -1
  193. package/dist/modes/interactive/components/index.js.map +1 -1
  194. package/dist/modes/interactive/components/scoped-models-selector.js +8 -8
  195. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
  196. package/dist/modes/interactive/components/status-indicator.d.ts +4 -1
  197. package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
  198. package/dist/modes/interactive/components/status-indicator.js +14 -2
  199. package/dist/modes/interactive/components/status-indicator.js.map +1 -1
  200. package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
  201. package/dist/modes/interactive/components/thinking-selector.js +4 -4
  202. package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
  203. package/dist/modes/interactive/components/tool-execution-renderer.d.ts +4 -1
  204. package/dist/modes/interactive/components/tool-execution-renderer.d.ts.map +1 -1
  205. package/dist/modes/interactive/components/tool-execution-renderer.js +23 -10
  206. package/dist/modes/interactive/components/tool-execution-renderer.js.map +1 -1
  207. package/dist/modes/interactive/components/tool-execution-types.d.ts +18 -2
  208. package/dist/modes/interactive/components/tool-execution-types.d.ts.map +1 -1
  209. package/dist/modes/interactive/components/tool-execution-types.js.map +1 -1
  210. package/dist/modes/interactive/components/tool-execution.d.ts +3 -3
  211. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  212. package/dist/modes/interactive/components/tool-execution.js +5 -0
  213. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  214. package/dist/modes/interactive/interactive-mode.d.ts +10 -15
  215. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  216. package/dist/modes/interactive/interactive-mode.js +178 -138
  217. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  218. package/dist/modes/interactive/theme/dark.json +2 -1
  219. package/dist/modes/interactive/theme/grok-day.json +2 -1
  220. package/dist/modes/interactive/theme/grok-night.json +2 -1
  221. package/dist/modes/interactive/theme/light.json +2 -1
  222. package/dist/modes/interactive/theme/theme-controller.d.ts +1 -0
  223. package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -1
  224. package/dist/modes/interactive/theme/theme-controller.js +5 -0
  225. package/dist/modes/interactive/theme/theme-controller.js.map +1 -1
  226. package/dist/modes/interactive/theme/theme-json.d.ts +84 -0
  227. package/dist/modes/interactive/theme/theme-json.d.ts.map +1 -0
  228. package/dist/modes/interactive/theme/theme-json.js +130 -0
  229. package/dist/modes/interactive/theme/theme-json.js.map +1 -0
  230. package/dist/modes/interactive/theme/theme-schema.json +6 -2
  231. package/dist/modes/interactive/theme/theme.d.ts +10 -5
  232. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  233. package/dist/modes/interactive/theme/theme.js +14 -117
  234. package/dist/modes/interactive/theme/theme.js.map +1 -1
  235. package/dist/modes/interactive/tips/catalog/input-tips.d.ts +5 -0
  236. package/dist/modes/interactive/tips/catalog/input-tips.d.ts.map +1 -1
  237. package/dist/modes/interactive/tips/catalog/input-tips.js +5 -0
  238. package/dist/modes/interactive/tips/catalog/input-tips.js.map +1 -1
  239. package/dist/modes/interactive/tui-renderer.d.ts +21 -0
  240. package/dist/modes/interactive/tui-renderer.d.ts.map +1 -0
  241. package/dist/modes/interactive/tui-renderer.js +67 -0
  242. package/dist/modes/interactive/tui-renderer.js.map +1 -0
  243. package/dist/modes/rpc/connection-handler.d.ts.map +1 -1
  244. package/dist/modes/rpc/connection-handler.js +8 -2
  245. package/dist/modes/rpc/connection-handler.js.map +1 -1
  246. package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
  247. package/dist/modes/rpc/rpc-client.js +11 -1
  248. package/dist/modes/rpc/rpc-client.js.map +1 -1
  249. package/dist/senpi +3 -0
  250. package/dist/utils/clipboard-command.d.ts +7 -0
  251. package/dist/utils/clipboard-command.d.ts.map +1 -0
  252. package/dist/utils/clipboard-command.js +45 -0
  253. package/dist/utils/clipboard-command.js.map +1 -0
  254. package/dist/utils/clipboard-image.d.ts.map +1 -1
  255. package/dist/utils/clipboard-image.js +52 -69
  256. package/dist/utils/clipboard-image.js.map +1 -1
  257. package/dist/utils/clipboard.d.ts.map +1 -1
  258. package/dist/utils/clipboard.js +49 -126
  259. package/dist/utils/clipboard.js.map +1 -1
  260. package/dist/utils/exif-orientation.d.ts.map +1 -1
  261. package/dist/utils/exif-orientation.js +2 -3
  262. package/dist/utils/exif-orientation.js.map +1 -1
  263. package/dist/utils/tools-manager.d.ts +1 -0
  264. package/dist/utils/tools-manager.d.ts.map +1 -1
  265. package/dist/utils/tools-manager.js +41 -19
  266. package/dist/utils/tools-manager.js.map +1 -1
  267. package/docs/compaction.md +39 -13
  268. package/docs/containerization.md +45 -0
  269. package/docs/development.md +19 -0
  270. package/docs/docs.json +4 -0
  271. package/docs/environment-variables.md +2 -0
  272. package/docs/extensions.md +21 -10
  273. package/docs/keybindings.md +7 -2
  274. package/docs/models.md +1 -1
  275. package/docs/providers.md +1 -1
  276. package/docs/rpc.md +2 -2
  277. package/docs/sdk.md +7 -0
  278. package/docs/session-format.md +52 -38
  279. package/docs/settings.md +40 -4
  280. package/docs/skills.md +1 -1
  281. package/docs/termux.md +0 -1
  282. package/docs/themes.md +8 -6
  283. package/docs/tui.md +22 -3
  284. package/examples/README.md +3 -0
  285. package/examples/extensions/dynamic-resources/dynamic.json +2 -0
  286. package/examples/plugins/pi-example-plugin/README.md +38 -0
  287. package/examples/plugins/pi-example-plugin/package.json +10 -0
  288. package/examples/plugins/pi-example-plugin/src/contract.ts +13 -0
  289. package/examples/plugins/pi-example-plugin/src/session.ts +23 -0
  290. package/examples/plugins/pi-example-plugin/src/tui.ts +31 -0
  291. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +1 -1
  292. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +3 -3
  293. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
  294. package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
  295. package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
  296. package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
  297. package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
  298. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
  299. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
  300. package/node_modules/@aws-sdk/core/package.json +1 -1
  301. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  302. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  303. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  304. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  305. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
  306. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
  307. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  308. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  309. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +201 -0
  310. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +62 -0
  311. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +158 -0
  312. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +2 -0
  313. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +16 -0
  314. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +84 -0
  315. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +8 -0
  316. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +11 -0
  317. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +10 -0
  318. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -0
  319. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +5 -0
  320. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +7 -0
  321. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +7 -0
  322. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +8 -0
  323. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts +8 -0
  324. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts +18 -0
  325. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +12 -0
  326. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +9 -0
  327. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +8 -0
  328. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +7 -0
  329. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +7 -0
  330. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +18 -0
  331. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts +3 -0
  332. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts +8 -0
  333. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +10 -0
  334. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +5 -0
  335. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +9 -0
  336. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +7 -0
  337. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +7 -0
  338. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts +3 -0
  339. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts +2 -0
  340. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts +1 -0
  341. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts +2 -0
  342. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +5 -0
  343. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts +4 -0
  344. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +5 -0
  345. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +69 -0
  346. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  347. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  348. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  349. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  350. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  351. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  352. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  353. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  354. package/node_modules/@aws-sdk/token-providers/package.json +1 -1
  355. package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +12 -0
  356. package/node_modules/@code-yeongyu/senpi-codemode/package.json +5 -5
  357. package/node_modules/@earendil-works/chord/README.md +205 -0
  358. package/node_modules/@earendil-works/chord/dist/api.d.ts +15 -0
  359. package/node_modules/@earendil-works/chord/dist/api.d.ts.map +1 -0
  360. package/node_modules/@earendil-works/chord/dist/api.js +72 -0
  361. package/node_modules/@earendil-works/chord/dist/api.js.map +1 -0
  362. package/node_modules/@earendil-works/chord/dist/bundler.d.ts +6 -0
  363. package/node_modules/@earendil-works/chord/dist/bundler.d.ts.map +1 -0
  364. package/node_modules/@earendil-works/chord/dist/bundler.js +3 -0
  365. package/node_modules/@earendil-works/chord/dist/bundler.js.map +1 -0
  366. package/node_modules/@earendil-works/chord/dist/context/index.d.ts +24 -0
  367. package/node_modules/@earendil-works/chord/dist/context/index.d.ts.map +1 -0
  368. package/node_modules/@earendil-works/chord/dist/context/index.js +97 -0
  369. package/node_modules/@earendil-works/chord/dist/context/index.js.map +1 -0
  370. package/node_modules/@earendil-works/chord/dist/delta/index.d.ts +119 -0
  371. package/node_modules/@earendil-works/chord/dist/delta/index.d.ts.map +1 -0
  372. package/node_modules/@earendil-works/chord/dist/delta/index.js +1209 -0
  373. package/node_modules/@earendil-works/chord/dist/delta/index.js.map +1 -0
  374. package/node_modules/@earendil-works/chord/dist/facets/host.d.ts +12 -0
  375. package/node_modules/@earendil-works/chord/dist/facets/host.d.ts.map +1 -0
  376. package/node_modules/@earendil-works/chord/dist/facets/host.js +762 -0
  377. package/node_modules/@earendil-works/chord/dist/facets/host.js.map +1 -0
  378. package/node_modules/@earendil-works/chord/dist/facets/loader.d.ts +3 -0
  379. package/node_modules/@earendil-works/chord/dist/facets/loader.d.ts.map +1 -0
  380. package/node_modules/@earendil-works/chord/dist/facets/loader.js +5 -0
  381. package/node_modules/@earendil-works/chord/dist/facets/loader.js.map +1 -0
  382. package/node_modules/@earendil-works/chord/dist/index.d.ts +11 -0
  383. package/node_modules/@earendil-works/chord/dist/index.d.ts.map +1 -0
  384. package/node_modules/@earendil-works/chord/dist/index.js +10 -0
  385. package/node_modules/@earendil-works/chord/dist/index.js.map +1 -0
  386. package/node_modules/@earendil-works/chord/dist/json.d.ts +4 -0
  387. package/node_modules/@earendil-works/chord/dist/json.d.ts.map +1 -0
  388. package/node_modules/@earendil-works/chord/dist/json.js +57 -0
  389. package/node_modules/@earendil-works/chord/dist/json.js.map +1 -0
  390. package/node_modules/@earendil-works/chord/dist/node/bundle-loader.d.ts +30 -0
  391. package/node_modules/@earendil-works/chord/dist/node/bundle-loader.d.ts.map +1 -0
  392. package/node_modules/@earendil-works/chord/dist/node/bundle-loader.js +377 -0
  393. package/node_modules/@earendil-works/chord/dist/node/bundle-loader.js.map +1 -0
  394. package/node_modules/@earendil-works/chord/dist/node/bundle.d.ts +26 -0
  395. package/node_modules/@earendil-works/chord/dist/node/bundle.d.ts.map +1 -0
  396. package/node_modules/@earendil-works/chord/dist/node/bundle.js +183 -0
  397. package/node_modules/@earendil-works/chord/dist/node/bundle.js.map +1 -0
  398. package/node_modules/@earendil-works/chord/dist/node/manifest.d.ts +36 -0
  399. package/node_modules/@earendil-works/chord/dist/node/manifest.d.ts.map +1 -0
  400. package/node_modules/@earendil-works/chord/dist/node/manifest.js +6 -0
  401. package/node_modules/@earendil-works/chord/dist/node/manifest.js.map +1 -0
  402. package/node_modules/@earendil-works/chord/dist/node/package.d.ts +15 -0
  403. package/node_modules/@earendil-works/chord/dist/node/package.d.ts.map +1 -0
  404. package/node_modules/@earendil-works/chord/dist/node/package.js +199 -0
  405. package/node_modules/@earendil-works/chord/dist/node/package.js.map +1 -0
  406. package/node_modules/@earendil-works/chord/dist/node.d.ts +5 -0
  407. package/node_modules/@earendil-works/chord/dist/node.d.ts.map +1 -0
  408. package/node_modules/@earendil-works/chord/dist/node.js +3 -0
  409. package/node_modules/@earendil-works/chord/dist/node.js.map +1 -0
  410. package/node_modules/@earendil-works/chord/dist/services/consumer.d.ts +11 -0
  411. package/node_modules/@earendil-works/chord/dist/services/consumer.d.ts.map +1 -0
  412. package/node_modules/@earendil-works/chord/dist/services/consumer.js +535 -0
  413. package/node_modules/@earendil-works/chord/dist/services/consumer.js.map +1 -0
  414. package/node_modules/@earendil-works/chord/dist/services/errors.d.ts +8 -0
  415. package/node_modules/@earendil-works/chord/dist/services/errors.d.ts.map +1 -0
  416. package/node_modules/@earendil-works/chord/dist/services/errors.js +21 -0
  417. package/node_modules/@earendil-works/chord/dist/services/errors.js.map +1 -0
  418. package/node_modules/@earendil-works/chord/dist/services/handle.d.ts +15 -0
  419. package/node_modules/@earendil-works/chord/dist/services/handle.d.ts.map +1 -0
  420. package/node_modules/@earendil-works/chord/dist/services/handle.js +99 -0
  421. package/node_modules/@earendil-works/chord/dist/services/handle.js.map +1 -0
  422. package/node_modules/@earendil-works/chord/dist/services/instances.d.ts +25 -0
  423. package/node_modules/@earendil-works/chord/dist/services/instances.d.ts.map +1 -0
  424. package/node_modules/@earendil-works/chord/dist/services/instances.js +137 -0
  425. package/node_modules/@earendil-works/chord/dist/services/instances.js.map +1 -0
  426. package/node_modules/@earendil-works/chord/dist/services/loopback.d.ts +5 -0
  427. package/node_modules/@earendil-works/chord/dist/services/loopback.d.ts.map +1 -0
  428. package/node_modules/@earendil-works/chord/dist/services/loopback.js +15 -0
  429. package/node_modules/@earendil-works/chord/dist/services/loopback.js.map +1 -0
  430. package/node_modules/@earendil-works/chord/dist/services/provider.d.ts +37 -0
  431. package/node_modules/@earendil-works/chord/dist/services/provider.d.ts.map +1 -0
  432. package/node_modules/@earendil-works/chord/dist/services/provider.js +472 -0
  433. package/node_modules/@earendil-works/chord/dist/services/provider.js.map +1 -0
  434. package/node_modules/@earendil-works/chord/dist/services/state-codec.d.ts +15 -0
  435. package/node_modules/@earendil-works/chord/dist/services/state-codec.d.ts.map +1 -0
  436. package/node_modules/@earendil-works/chord/dist/services/state-codec.js +115 -0
  437. package/node_modules/@earendil-works/chord/dist/services/state-codec.js.map +1 -0
  438. package/node_modules/@earendil-works/chord/dist/services/state-internals.d.ts +11 -0
  439. package/node_modules/@earendil-works/chord/dist/services/state-internals.d.ts.map +1 -0
  440. package/node_modules/@earendil-works/chord/dist/services/state-internals.js +10 -0
  441. package/node_modules/@earendil-works/chord/dist/services/state-internals.js.map +1 -0
  442. package/node_modules/@earendil-works/chord/dist/services/state.d.ts +23 -0
  443. package/node_modules/@earendil-works/chord/dist/services/state.d.ts.map +1 -0
  444. package/node_modules/@earendil-works/chord/dist/services/state.js +124 -0
  445. package/node_modules/@earendil-works/chord/dist/services/state.js.map +1 -0
  446. package/node_modules/@earendil-works/chord/dist/services/wire.d.ts +60 -0
  447. package/node_modules/@earendil-works/chord/dist/services/wire.d.ts.map +1 -0
  448. package/node_modules/@earendil-works/chord/dist/services/wire.js +173 -0
  449. package/node_modules/@earendil-works/chord/dist/services/wire.js.map +1 -0
  450. package/node_modules/@earendil-works/chord/dist/types.d.ts +203 -0
  451. package/node_modules/@earendil-works/chord/dist/types.d.ts.map +1 -0
  452. package/node_modules/@earendil-works/chord/dist/types.js +2 -0
  453. package/node_modules/@earendil-works/chord/dist/types.js.map +1 -0
  454. package/node_modules/@earendil-works/chord/package.json +73 -0
  455. package/node_modules/@earendil-works/pi-agent-core/README.md +4 -0
  456. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts +639 -384
  457. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts.map +1 -1
  458. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +5 -250
  459. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js.map +1 -1
  460. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts +12 -6
  461. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +1 -1
  462. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +33 -27
  463. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js.map +1 -1
  464. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +30 -8
  465. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -1
  466. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +53 -64
  467. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +1 -1
  468. package/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts +9 -0
  469. package/node_modules/@earendil-works/pi-agent-core/dist/harness/config.d.ts.map +1 -0
  470. package/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js +35 -0
  471. package/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js.map +1 -0
  472. package/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts +9 -0
  473. package/node_modules/@earendil-works/pi-agent-core/dist/harness/context.d.ts.map +1 -0
  474. package/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js +13 -0
  475. package/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js.map +1 -0
  476. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts +25 -28
  477. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts.map +1 -1
  478. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +368 -125
  479. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js.map +1 -1
  480. package/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts +20 -38
  481. package/node_modules/@earendil-works/pi-agent-core/dist/harness/events.d.ts.map +1 -1
  482. package/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js +233 -55
  483. package/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js.map +1 -1
  484. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts +42 -0
  485. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.d.ts.map +1 -0
  486. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js +82 -0
  487. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js.map +1 -0
  488. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts +22 -0
  489. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.d.ts.map +1 -0
  490. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js +48 -0
  491. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js.map +1 -0
  492. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts +67 -0
  493. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.d.ts.map +1 -0
  494. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js +121 -0
  495. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js.map +1 -0
  496. package/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts +38 -0
  497. package/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.d.ts.map +1 -0
  498. package/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js +404 -0
  499. package/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js.map +1 -0
  500. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +2 -2
  501. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +1 -1
  502. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +1 -1
  503. package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts +3 -2
  504. package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts.map +1 -1
  505. package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js +17 -17
  506. package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js.map +1 -1
  507. package/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts +93 -0
  508. package/node_modules/@earendil-works/pi-agent-core/dist/harness/result.d.ts.map +1 -1
  509. package/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js +39 -0
  510. package/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js.map +1 -1
  511. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts +28 -0
  512. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.d.ts.map +1 -0
  513. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js +173 -0
  514. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js.map +1 -0
  515. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts +8 -0
  516. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.d.ts.map +1 -0
  517. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js +133 -0
  518. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js.map +1 -0
  519. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts +15 -0
  520. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.d.ts.map +1 -0
  521. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js +179 -0
  522. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js.map +1 -0
  523. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts +8 -0
  524. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.d.ts.map +1 -0
  525. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js +205 -0
  526. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js.map +1 -0
  527. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts +5 -0
  528. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.d.ts.map +1 -0
  529. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js +140 -0
  530. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js.map +1 -0
  531. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts +8 -0
  532. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.d.ts.map +1 -0
  533. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js +85 -0
  534. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js.map +1 -0
  535. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts +23 -0
  536. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.d.ts.map +1 -0
  537. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js +394 -0
  538. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js.map +1 -0
  539. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts +4 -0
  540. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.d.ts.map +1 -0
  541. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js +34 -0
  542. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js.map +1 -0
  543. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts +32 -0
  544. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.d.ts.map +1 -0
  545. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js +929 -0
  546. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js.map +1 -0
  547. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts +7 -0
  548. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.d.ts.map +1 -0
  549. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js +49 -0
  550. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js.map +1 -0
  551. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts +14 -0
  552. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.d.ts.map +1 -0
  553. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js +244 -0
  554. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js.map +1 -0
  555. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts +6 -0
  556. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.d.ts.map +1 -0
  557. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js +449 -0
  558. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js.map +1 -0
  559. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts +6 -0
  560. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.d.ts.map +1 -0
  561. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js +93 -0
  562. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js.map +1 -0
  563. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts +59 -0
  564. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.d.ts.map +1 -0
  565. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js +302 -0
  566. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js.map +1 -0
  567. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts +2 -0
  568. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.d.ts.map +1 -0
  569. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js +2 -0
  570. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js.map +1 -0
  571. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts +118 -0
  572. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.d.ts.map +1 -0
  573. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js +1559 -0
  574. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js.map +1 -0
  575. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts +15 -0
  576. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.d.ts.map +1 -0
  577. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js +66 -0
  578. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js.map +1 -0
  579. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts +5 -0
  580. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.d.ts.map +1 -0
  581. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js +240 -0
  582. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js.map +1 -0
  583. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts +24 -0
  584. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.d.ts.map +1 -0
  585. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js +117 -0
  586. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js.map +1 -0
  587. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts +21 -0
  588. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.d.ts.map +1 -0
  589. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js +72 -0
  590. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js.map +1 -0
  591. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts +105 -0
  592. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.d.ts.map +1 -0
  593. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js +50 -0
  594. package/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js.map +1 -0
  595. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts +53 -0
  596. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.d.ts.map +1 -0
  597. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js +57 -0
  598. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js.map +1 -0
  599. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts +6 -19
  600. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.d.ts.map +1 -1
  601. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js +31 -53
  602. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js.map +1 -1
  603. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts +21 -0
  604. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.d.ts.map +1 -0
  605. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js +55 -0
  606. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js.map +1 -0
  607. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts +16 -0
  608. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.d.ts.map +1 -0
  609. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js +79 -0
  610. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js.map +1 -0
  611. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts +39 -0
  612. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.d.ts.map +1 -0
  613. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js +269 -0
  614. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js.map +1 -0
  615. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts +9 -5
  616. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.d.ts.map +1 -1
  617. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js +7 -4
  618. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js.map +1 -1
  619. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts +19 -8
  620. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.d.ts.map +1 -1
  621. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js +34 -219
  622. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js.map +1 -1
  623. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/fork.d.ts +38 -0
  624. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/fork.d.ts.map +1 -0
  625. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/fork.js +266 -0
  626. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/fork.js.map +1 -0
  627. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts +4 -0
  628. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.d.ts.map +1 -0
  629. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js +4 -0
  630. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js.map +1 -0
  631. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/io.d.ts +14 -0
  632. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/io.d.ts.map +1 -0
  633. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/io.js +86 -0
  634. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/io.js.map +1 -0
  635. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts +44 -0
  636. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.d.ts.map +1 -0
  637. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js +454 -0
  638. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js.map +1 -0
  639. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts +27 -24
  640. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.d.ts.map +1 -1
  641. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js +276 -151
  642. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js.map +1 -1
  643. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts +39 -41
  644. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.d.ts.map +1 -1
  645. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js +175 -196
  646. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js.map +1 -1
  647. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts +23 -22
  648. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.d.ts.map +1 -1
  649. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js +2 -1
  650. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js.map +1 -1
  651. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts +44 -40
  652. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.d.ts.map +1 -1
  653. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js +333 -115
  654. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js.map +1 -1
  655. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts +8 -0
  656. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.d.ts.map +1 -0
  657. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js +22 -0
  658. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js.map +1 -0
  659. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts +78 -51
  660. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts.map +1 -1
  661. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +327 -207
  662. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js.map +1 -1
  663. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts +12 -0
  664. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.d.ts.map +1 -0
  665. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js +24 -0
  666. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js.map +1 -0
  667. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts +42 -0
  668. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.d.ts.map +1 -0
  669. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js +127 -0
  670. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js.map +1 -0
  671. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts +25 -0
  672. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.d.ts.map +1 -0
  673. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js +114 -0
  674. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js.map +1 -0
  675. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts +23 -0
  676. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.d.ts.map +1 -0
  677. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js +809 -0
  678. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js.map +1 -0
  679. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts +4 -0
  680. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.d.ts.map +1 -0
  681. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js +600 -0
  682. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js.map +1 -0
  683. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts +26 -0
  684. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.d.ts.map +1 -0
  685. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js +103 -0
  686. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js.map +1 -0
  687. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts +9 -2
  688. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.d.ts.map +1 -1
  689. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js +8 -1
  690. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js.map +1 -1
  691. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts +11 -0
  692. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.d.ts.map +1 -0
  693. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js +19 -0
  694. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js.map +1 -0
  695. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts +20 -0
  696. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.d.ts.map +1 -0
  697. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js +40 -0
  698. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js.map +1 -0
  699. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts +5 -7
  700. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.d.ts.map +1 -1
  701. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.js.map +1 -1
  702. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts +425 -265
  703. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.d.ts.map +1 -1
  704. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js +7 -7
  705. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js.map +1 -1
  706. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts +95 -0
  707. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.d.ts.map +1 -0
  708. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js +81 -0
  709. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js.map +1 -0
  710. package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts +3 -2
  711. package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts.map +1 -1
  712. package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js +29 -26
  713. package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js.map +1 -1
  714. package/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts +64 -43
  715. package/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.d.ts.map +1 -1
  716. package/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js +45 -26
  717. package/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js.map +1 -1
  718. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts +4 -4
  719. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.d.ts.map +1 -1
  720. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js +66 -93
  721. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js.map +1 -1
  722. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.d.ts.map +1 -1
  723. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js +17 -13
  724. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js.map +1 -1
  725. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts +2 -1
  726. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.d.ts.map +1 -1
  727. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js +5 -5
  728. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js.map +1 -1
  729. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts +3 -2
  730. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.d.ts.map +1 -1
  731. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js +5 -5
  732. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js.map +1 -1
  733. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts +2 -1
  734. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.d.ts.map +1 -1
  735. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js +4 -6
  736. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js.map +1 -1
  737. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.d.ts.map +1 -1
  738. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js +12 -8
  739. package/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js.map +1 -1
  740. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +128 -45
  741. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +1 -1
  742. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +1 -1
  743. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts +24 -0
  744. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.d.ts.map +1 -0
  745. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js +79 -0
  746. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js.map +1 -0
  747. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts +31 -0
  748. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.d.ts.map +1 -0
  749. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js +217 -0
  750. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js.map +1 -0
  751. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts +19 -5
  752. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts.map +1 -1
  753. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +65 -192
  754. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js.map +1 -1
  755. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts +1 -0
  756. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts.map +1 -1
  757. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js +1 -1
  758. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js.map +1 -1
  759. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts +4 -0
  760. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.d.ts.map +1 -0
  761. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js +33 -0
  762. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js.map +1 -0
  763. package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +4 -1
  764. package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +1 -1
  765. package/node_modules/@earendil-works/pi-agent-core/dist/index.js +3 -6
  766. package/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +1 -1
  767. package/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts +24 -16
  768. package/node_modules/@earendil-works/pi-agent-core/dist/search/index.d.ts.map +1 -1
  769. package/node_modules/@earendil-works/pi-agent-core/dist/search/index.js +1 -1
  770. package/node_modules/@earendil-works/pi-agent-core/dist/search/index.js.map +1 -1
  771. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +2 -0
  772. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -1
  773. package/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -1
  774. package/node_modules/@earendil-works/pi-agent-core/package.json +27 -6
  775. package/node_modules/@earendil-works/pi-ai/README.md +39 -4
  776. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts.map +1 -1
  777. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +8 -1
  778. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js.map +1 -1
  779. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts +77 -0
  780. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.d.ts.map +1 -0
  781. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.js +72 -0
  782. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-ai-binding.js.map +1 -0
  783. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +4 -1
  784. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js.map +1 -1
  785. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.ts.map +1 -1
  786. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +6 -3
  787. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js.map +1 -1
  788. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.d.ts.map +1 -1
  789. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +4 -1
  790. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js.map +1 -1
  791. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.ts.map +1 -1
  792. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +13 -3
  793. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js.map +1 -1
  794. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts +1 -0
  795. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +1 -1
  796. package/node_modules/@earendil-works/pi-ai/dist/index.js +1 -0
  797. package/node_modules/@earendil-works/pi-ai/dist/index.js.map +1 -1
  798. package/node_modules/@earendil-works/pi-ai/dist/models.d.ts +1 -0
  799. package/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +1 -1
  800. package/node_modules/@earendil-works/pi-ai/dist/models.js +5 -2
  801. package/node_modules/@earendil-works/pi-ai/dist/models.js.map +1 -1
  802. package/node_modules/@earendil-works/pi-ai/dist/openai-responses-compat.d.ts +1 -1
  803. package/node_modules/@earendil-works/pi-ai/dist/openai-responses-compat.d.ts.map +1 -1
  804. package/node_modules/@earendil-works/pi-ai/dist/openai-responses-compat.js.map +1 -1
  805. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts.map +1 -1
  806. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js +4 -0
  807. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js.map +1 -1
  808. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  809. package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
  810. package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  811. package/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.json +1 -1
  812. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  813. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  814. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  815. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  816. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  817. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
  818. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  819. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
  820. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
  821. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js.map +1 -1
  822. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.d.ts.map +1 -1
  823. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +4 -3
  824. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js.map +1 -1
  825. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.d.ts +4 -0
  826. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.d.ts.map +1 -0
  827. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.js +22 -0
  828. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.js.map +1 -0
  829. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.d.ts.map +1 -1
  830. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +5 -4
  831. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js.map +1 -1
  832. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +16 -6
  833. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
  834. package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
  835. package/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts +77 -0
  836. package/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.d.ts.map +1 -0
  837. package/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js +427 -0
  838. package/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js.map +1 -0
  839. package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts.map +1 -1
  840. package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +25 -5
  841. package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js.map +1 -1
  842. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.d.ts +1 -1
  843. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.d.ts.map +1 -1
  844. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.js +5 -1
  845. package/node_modules/@earendil-works/pi-ai/dist/utils/prompt-cache-ttl.js.map +1 -1
  846. package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.d.ts +10 -1
  847. package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.d.ts.map +1 -1
  848. package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.js.map +1 -1
  849. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts +13 -2
  850. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts.map +1 -1
  851. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +18 -7
  852. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js.map +1 -1
  853. package/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts +2 -2
  854. package/node_modules/@earendil-works/pi-ai/dist/utils/uuid.d.ts.map +1 -1
  855. package/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js +36 -31
  856. package/node_modules/@earendil-works/pi-ai/dist/utils/uuid.js.map +1 -1
  857. package/node_modules/@earendil-works/pi-ai/package.json +6 -6
  858. package/node_modules/@earendil-works/pi-pty/package.json +1 -1
  859. package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  860. package/node_modules/@earendil-works/pi-tui/README.md +53 -4
  861. package/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts +21 -1
  862. package/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.d.ts.map +1 -1
  863. package/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js +199 -42
  864. package/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js.map +1 -1
  865. package/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts +3 -1
  866. package/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts.map +1 -1
  867. package/node_modules/@earendil-works/pi-tui/dist/components/box.js +28 -0
  868. package/node_modules/@earendil-works/pi-tui/dist/components/box.js.map +1 -1
  869. package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts +6 -1
  870. package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +1 -1
  871. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +98 -18
  872. package/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +1 -1
  873. package/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts +12 -1
  874. package/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts.map +1 -1
  875. package/node_modules/@earendil-works/pi-tui/dist/components/input.js +40 -6
  876. package/node_modules/@earendil-works/pi-tui/dist/components/input.js.map +1 -1
  877. package/node_modules/@earendil-works/pi-tui/dist/components/latex.d.ts.map +1 -1
  878. package/node_modules/@earendil-works/pi-tui/dist/components/latex.js +7 -0
  879. package/node_modules/@earendil-works/pi-tui/dist/components/latex.js.map +1 -1
  880. package/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts +3 -0
  881. package/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts.map +1 -1
  882. package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +20 -8
  883. package/node_modules/@earendil-works/pi-tui/dist/components/loader.js.map +1 -1
  884. package/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts +12 -0
  885. package/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.d.ts.map +1 -0
  886. package/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js +19 -0
  887. package/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js.map +1 -0
  888. package/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts +6 -3
  889. package/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.d.ts.map +1 -1
  890. package/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js +6 -1
  891. package/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js.map +1 -1
  892. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts +4 -1
  893. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts.map +1 -1
  894. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +48 -2
  895. package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js.map +1 -1
  896. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +5 -1
  897. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +1 -1
  898. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +54 -5
  899. package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +1 -1
  900. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts +3 -1
  901. package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -1
  902. package/node_modules/@earendil-works/pi-tui/dist/index.js +3 -0
  903. package/node_modules/@earendil-works/pi-tui/dist/index.js.map +1 -1
  904. package/node_modules/@earendil-works/pi-tui/dist/layout.d.ts +3 -1
  905. package/node_modules/@earendil-works/pi-tui/dist/layout.d.ts.map +1 -1
  906. package/node_modules/@earendil-works/pi-tui/dist/layout.js +32 -9
  907. package/node_modules/@earendil-works/pi-tui/dist/layout.js.map +1 -1
  908. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts +2 -1
  909. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +1 -1
  910. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +3 -44
  911. package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +1 -1
  912. package/node_modules/@earendil-works/pi-tui/dist/native-platform.d.ts +18 -0
  913. package/node_modules/@earendil-works/pi-tui/dist/native-platform.d.ts.map +1 -0
  914. package/node_modules/@earendil-works/pi-tui/dist/native-platform.js +42 -0
  915. package/node_modules/@earendil-works/pi-tui/dist/native-platform.js.map +1 -0
  916. package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
  917. package/node_modules/@earendil-works/pi-tui/dist/terminal.js +2 -20
  918. package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
  919. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts +31 -1
  920. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.d.ts.map +1 -1
  921. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +335 -41
  922. package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js.map +1 -1
  923. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts +83 -5
  924. package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -1
  925. package/node_modules/@earendil-works/pi-tui/dist/tui.js +118 -4
  926. package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -1
  927. package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts +2 -0
  928. package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +1 -1
  929. package/node_modules/@earendil-works/pi-tui/dist/utils.js +9 -0
  930. package/node_modules/@earendil-works/pi-tui/dist/utils.js.map +1 -1
  931. package/node_modules/@earendil-works/pi-tui/native/clipboard.h +170 -0
  932. package/node_modules/@earendil-works/pi-tui/native/darwin/README.md +8 -6
  933. package/node_modules/@earendil-works/pi-tui/native/darwin/build.sh +12 -5
  934. package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-arm64/{darwin-modifiers.node → darwin-platform.node} +0 -0
  935. package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-x64/{darwin-modifiers.node → darwin-platform.node} +0 -0
  936. package/node_modules/@earendil-works/pi-tui/native/darwin/src/darwin-platform.m +93 -0
  937. package/node_modules/@earendil-works/pi-tui/native/linux/README.md +23 -0
  938. package/node_modules/@earendil-works/pi-tui/native/linux/build.sh +65 -0
  939. package/node_modules/@earendil-works/pi-tui/native/linux/prebuilds/linux-arm64/linux-platform-x11.node +0 -0
  940. package/node_modules/@earendil-works/pi-tui/native/linux/prebuilds/linux-x64/linux-platform-x11.node +0 -0
  941. package/node_modules/@earendil-works/pi-tui/native/linux/src/clipboard-worker.h +70 -0
  942. package/node_modules/@earendil-works/pi-tui/native/linux/src/linux-platform-x11.c +274 -0
  943. package/node_modules/@earendil-works/pi-tui/native/napi.h +89 -0
  944. package/node_modules/@earendil-works/pi-tui/native/win32/README.md +18 -7
  945. package/node_modules/@earendil-works/pi-tui/native/win32/build.mjs +7 -4
  946. package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-arm64/win32-platform.node +0 -0
  947. package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-x64/win32-platform.node +0 -0
  948. package/node_modules/@earendil-works/pi-tui/native/win32/src/win32-platform.c +241 -0
  949. package/node_modules/@earendil-works/pi-tui/package.json +10 -3
  950. package/node_modules/@google/genai/dist/genai.d.ts +1799 -289
  951. package/node_modules/@google/genai/dist/index.cjs +319 -299
  952. package/node_modules/@google/genai/dist/index.mjs +319 -299
  953. package/node_modules/@google/genai/dist/index.mjs.map +1 -1
  954. package/node_modules/@google/genai/dist/node/index.cjs +320 -300
  955. package/node_modules/@google/genai/dist/node/index.mjs +320 -300
  956. package/node_modules/@google/genai/dist/node/index.mjs.map +1 -1
  957. package/node_modules/@google/genai/dist/node/node.d.ts +1799 -289
  958. package/node_modules/@google/genai/dist/tokenizer/node.cjs +49 -2
  959. package/node_modules/@google/genai/dist/tokenizer/node.d.ts +43 -3
  960. package/node_modules/@google/genai/dist/tokenizer/node.mjs +49 -2
  961. package/node_modules/@google/genai/dist/tokenizer/node.mjs.map +1 -1
  962. package/node_modules/@google/genai/dist/vertex_internal/index.cjs +39 -3
  963. package/node_modules/@google/genai/dist/vertex_internal/index.cjs.map +1 -1
  964. package/node_modules/@google/genai/dist/vertex_internal/index.d.ts +51 -9
  965. package/node_modules/@google/genai/dist/vertex_internal/index.js +39 -3
  966. package/node_modules/@google/genai/dist/vertex_internal/index.js.map +1 -1
  967. package/node_modules/@google/genai/dist/web/index.mjs +319 -299
  968. package/node_modules/@google/genai/dist/web/index.mjs.map +1 -1
  969. package/node_modules/@google/genai/dist/web/web.d.ts +1799 -289
  970. package/node_modules/@google/genai/package.json +1 -1
  971. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -4
  972. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
  973. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
  974. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +8 -1
  975. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/LICENSE +201 -0
  976. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/README.md +115 -0
  977. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-cjs/index.js +96 -0
  978. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/abort-handler.js +1 -0
  979. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/abort.js +1 -0
  980. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +5 -0
  981. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js +1 -0
  982. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js +1 -0
  983. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +1 -0
  984. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +1 -0
  985. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/auth.js +5 -0
  986. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/auth/index.js +2 -0
  987. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js +1 -0
  988. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/checksum.js +1 -0
  989. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/client.js +1 -0
  990. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/command.js +1 -0
  991. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/connection/config.js +1 -0
  992. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/connection/index.js +1 -0
  993. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/connection/manager.js +1 -0
  994. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/connection/pool.js +1 -0
  995. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/crypto.js +1 -0
  996. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js +1 -0
  997. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/encode.js +1 -0
  998. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoint.js +5 -0
  999. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/EndpointParameterInstructions.js +1 -0
  1000. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js +1 -0
  1001. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js +1 -0
  1002. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js +1 -0
  1003. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js +1 -0
  1004. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/index.js +1 -0
  1005. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/endpoints/shared.js +1 -0
  1006. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/eventStream.js +1 -0
  1007. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/extensions/checksum.js +38 -0
  1008. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +7 -0
  1009. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js +1 -0
  1010. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/extensions/index.js +2 -0
  1011. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/extensions/retry.js +1 -0
  1012. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js +1 -0
  1013. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/feature-ids.js +1 -0
  1014. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/http/httpHandlerInitialization.js +1 -0
  1015. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/http.js +5 -0
  1016. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +1 -0
  1017. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js +1 -0
  1018. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/identity/identity.js +1 -0
  1019. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/identity/index.js +1 -0
  1020. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +1 -0
  1021. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/index.js +7 -0
  1022. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/logger.js +1 -0
  1023. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/metrics.js +1 -0
  1024. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/middleware.js +1 -0
  1025. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/pagination.js +1 -0
  1026. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/profile.js +6 -0
  1027. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/response.js +1 -0
  1028. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/retry.js +1 -0
  1029. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/schema/schema-deprecated.js +1 -0
  1030. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/schema/schema.js +1 -0
  1031. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/schema/sentinels.js +1 -0
  1032. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
  1033. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/schema/traits.js +1 -0
  1034. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/serde.js +1 -0
  1035. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/shapes.js +1 -0
  1036. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/signature.js +1 -0
  1037. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/stream.js +1 -0
  1038. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js +1 -0
  1039. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js +1 -0
  1040. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js +1 -0
  1041. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/transfer.js +6 -0
  1042. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js +1 -0
  1043. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js +1 -0
  1044. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/transform/exact.js +1 -0
  1045. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/transform/mutable.js +1 -0
  1046. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/transform/no-undefined.js +1 -0
  1047. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/transform/type-transform.js +1 -0
  1048. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/uri.js +1 -0
  1049. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/util.js +1 -0
  1050. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-es/waiter.js +1 -0
  1051. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/abort-handler.d.ts +7 -0
  1052. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/abort.d.ts +48 -0
  1053. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +7 -0
  1054. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +49 -0
  1055. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +20 -0
  1056. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +41 -0
  1057. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +14 -0
  1058. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/auth/auth.d.ts +59 -0
  1059. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/auth/index.d.ts +7 -0
  1060. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +37 -0
  1061. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/checksum.d.ts +61 -0
  1062. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/client.d.ts +57 -0
  1063. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/command.d.ts +28 -0
  1064. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/connection/config.d.ts +15 -0
  1065. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/connection/index.d.ts +3 -0
  1066. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/connection/manager.d.ts +34 -0
  1067. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/connection/pool.d.ts +32 -0
  1068. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/crypto.d.ts +58 -0
  1069. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +24 -0
  1070. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/encode.d.ts +31 -0
  1071. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/endpoint.d.ts +77 -0
  1072. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/endpoints/EndpointParameterInstructions.d.ts +41 -0
  1073. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +27 -0
  1074. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +10 -0
  1075. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +28 -0
  1076. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +16 -0
  1077. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +5 -0
  1078. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +55 -0
  1079. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/eventStream.d.ts +137 -0
  1080. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +58 -0
  1081. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +32 -0
  1082. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +9 -0
  1083. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/extensions/index.d.ts +6 -0
  1084. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +18 -0
  1085. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts +35 -0
  1086. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/feature-ids.d.ts +16 -0
  1087. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +142 -0
  1088. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/http.d.ts +110 -0
  1089. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +14 -0
  1090. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +31 -0
  1091. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/identity/identity.d.ts +15 -0
  1092. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/identity/index.d.ts +4 -0
  1093. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +14 -0
  1094. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/index.d.ts +52 -0
  1095. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/logger.d.ts +13 -0
  1096. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/metrics.d.ts +93 -0
  1097. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/middleware.d.ts +541 -0
  1098. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/pagination.d.ts +33 -0
  1099. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/profile.d.ts +30 -0
  1100. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/response.d.ts +40 -0
  1101. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/retry.d.ts +162 -0
  1102. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +143 -0
  1103. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/schema/schema.d.ts +236 -0
  1104. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +65 -0
  1105. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +99 -0
  1106. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/schema/traits.d.ts +46 -0
  1107. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/serde.d.ts +114 -0
  1108. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/shapes.d.ts +79 -0
  1109. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/signature.d.ts +172 -0
  1110. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/stream.d.ts +22 -0
  1111. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +28 -0
  1112. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +54 -0
  1113. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +41 -0
  1114. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/transfer.d.ts +42 -0
  1115. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts +26 -0
  1116. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +73 -0
  1117. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/transform/exact.d.ts +6 -0
  1118. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/transform/mutable.d.ts +6 -0
  1119. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +68 -0
  1120. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/transform/type-transform.d.ts +39 -0
  1121. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/abort-handler.d.ts +7 -0
  1122. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts +45 -0
  1123. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +7 -0
  1124. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +49 -0
  1125. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +20 -0
  1126. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +41 -0
  1127. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +14 -0
  1128. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts +59 -0
  1129. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +7 -0
  1130. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +37 -0
  1131. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts +61 -0
  1132. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +57 -0
  1133. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +28 -0
  1134. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +15 -0
  1135. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts +3 -0
  1136. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +34 -0
  1137. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +32 -0
  1138. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts +58 -0
  1139. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +40 -0
  1140. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +31 -0
  1141. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +77 -0
  1142. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointParameterInstructions.d.ts +41 -0
  1143. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +27 -0
  1144. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +10 -0
  1145. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +28 -0
  1146. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +16 -0
  1147. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts +5 -0
  1148. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +55 -0
  1149. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +137 -0
  1150. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +58 -0
  1151. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +32 -0
  1152. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +9 -0
  1153. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts +6 -0
  1154. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts +18 -0
  1155. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +35 -0
  1156. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/feature-ids.d.ts +16 -0
  1157. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +142 -0
  1158. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +110 -0
  1159. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +14 -0
  1160. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +31 -0
  1161. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts +15 -0
  1162. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +4 -0
  1163. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +14 -0
  1164. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +52 -0
  1165. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts +13 -0
  1166. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/metrics.d.ts +93 -0
  1167. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +541 -0
  1168. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts +33 -0
  1169. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +30 -0
  1170. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts +40 -0
  1171. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +162 -0
  1172. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +149 -0
  1173. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +251 -0
  1174. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +65 -0
  1175. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +118 -0
  1176. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +46 -0
  1177. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +114 -0
  1178. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +79 -0
  1179. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +172 -0
  1180. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts +22 -0
  1181. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +28 -0
  1182. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +54 -0
  1183. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +41 -0
  1184. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +42 -0
  1185. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +26 -0
  1186. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +77 -0
  1187. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts +14 -0
  1188. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +6 -0
  1189. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +88 -0
  1190. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts +40 -0
  1191. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts +17 -0
  1192. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +192 -0
  1193. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts +35 -0
  1194. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/uri.d.ts +17 -0
  1195. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/util.d.ts +176 -0
  1196. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/dist-types/waiter.d.ts +35 -0
  1197. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/types/package.json +50 -0
  1198. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  1199. package/node_modules/esbuild/LICENSE.md +21 -0
  1200. package/node_modules/esbuild/README.md +3 -0
  1201. package/node_modules/esbuild/bin/esbuild +223 -0
  1202. package/node_modules/esbuild/install.js +300 -0
  1203. package/node_modules/esbuild/lib/main.d.ts +720 -0
  1204. package/node_modules/esbuild/lib/main.js +2536 -0
  1205. package/node_modules/esbuild/package.json +47 -0
  1206. package/node_modules/ignore/README.md +52 -0
  1207. package/node_modules/ignore/index.js +785 -129
  1208. package/node_modules/ignore/legacy.js +660 -98
  1209. package/node_modules/ignore/package.json +10 -4
  1210. package/node_modules/marked/README.md +1 -0
  1211. package/node_modules/marked/lib/marked.d.ts +7 -0
  1212. package/node_modules/marked/lib/marked.esm.js +30 -30
  1213. package/node_modules/marked/lib/marked.esm.js.map +3 -3
  1214. package/node_modules/marked/lib/marked.umd.js +30 -30
  1215. package/node_modules/marked/lib/marked.umd.js.map +3 -3
  1216. package/node_modules/marked/man/marked.1 +1 -1
  1217. package/node_modules/marked/package.json +2 -2
  1218. package/node_modules/typebox/build/compile/validator.d.mts +1 -1
  1219. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  1220. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +7 -5
  1221. package/node_modules/typebox/build/format/iri.mjs +5 -1
  1222. package/node_modules/typebox/build/guard/emit.mjs +2 -4
  1223. package/node_modules/typebox/build/guard/guard.mjs +6 -18
  1224. package/node_modules/typebox/build/guard/string.mjs +16 -24
  1225. package/node_modules/typebox/build/schema/compile.d.mts +3 -2
  1226. package/node_modules/typebox/build/schema/compile.mjs +8 -8
  1227. package/node_modules/typebox/build/schema/engine/_context.d.mts +1 -6
  1228. package/node_modules/typebox/build/schema/engine/_context.mjs +9 -14
  1229. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
  1230. package/node_modules/typebox/build/schema/engine/_stack.d.mts +6 -2
  1231. package/node_modules/typebox/build/schema/engine/_stack.mjs +135 -32
  1232. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +16 -4
  1233. package/node_modules/typebox/build/schema/engine/allOf.mjs +2 -2
  1234. package/node_modules/typebox/build/schema/engine/anyOf.mjs +2 -2
  1235. package/node_modules/typebox/build/schema/engine/if.mjs +2 -2
  1236. package/node_modules/typebox/build/schema/engine/oneOf.mjs +2 -2
  1237. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +1 -3
  1238. package/node_modules/typebox/build/schema/engine/ref.mjs +2 -2
  1239. package/node_modules/typebox/build/schema/engine/schema.mjs +6 -0
  1240. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
  1241. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
  1242. package/node_modules/typebox/build/schema/errors.d.mts +2 -2
  1243. package/node_modules/typebox/build/schema/errors.mjs +7 -13
  1244. package/node_modules/typebox/build/schema/intern/index.d.mts +1 -0
  1245. package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
  1246. package/node_modules/typebox/build/schema/intern/intern.d.mts +14 -0
  1247. package/node_modules/typebox/build/schema/intern/intern.mjs +259 -0
  1248. package/node_modules/typebox/build/schema/parse.d.mts +1 -0
  1249. package/node_modules/typebox/build/schema/parse.mjs +10 -5
  1250. package/node_modules/typebox/build/schema/resolve/resolve.d.mts +34 -3
  1251. package/node_modules/typebox/build/schema/resolve/resolve.mjs +198 -73
  1252. package/node_modules/typebox/build/schema/schema.d.mts +1 -0
  1253. package/node_modules/typebox/build/schema/schema.mjs +1 -0
  1254. package/node_modules/typebox/build/value/errors/errors.d.mts +2 -12
  1255. package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
  1256. package/node_modules/typebox/package.json +1 -1
  1257. package/node_modules/typebox/readme.md +9 -5
  1258. package/node_modules/undici/docs/docs/api/Client.md +4 -0
  1259. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  1260. package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  1261. package/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  1262. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  1263. package/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  1264. package/node_modules/undici/lib/core/symbols.js +2 -0
  1265. package/node_modules/undici/lib/dispatcher/agent.js +7 -2
  1266. package/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  1267. package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  1268. package/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
  1269. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  1270. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  1271. package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  1272. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  1273. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
  1274. package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  1275. package/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  1276. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  1277. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  1278. package/node_modules/undici/lib/handler/cache-handler.js +29 -5
  1279. package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  1280. package/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  1281. package/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  1282. package/node_modules/undici/lib/handler/retry-handler.js +148 -30
  1283. package/node_modules/undici/lib/interceptor/cache.js +65 -12
  1284. package/node_modules/undici/lib/interceptor/decompress.js +115 -13
  1285. package/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  1286. package/node_modules/undici/lib/interceptor/dns.js +7 -0
  1287. package/node_modules/undici/lib/interceptor/dump.js +10 -23
  1288. package/node_modules/undici/lib/mock/mock-agent.js +13 -1
  1289. package/node_modules/undici/lib/mock/mock-utils.js +11 -10
  1290. package/node_modules/undici/lib/util/cache.js +45 -3
  1291. package/node_modules/undici/lib/web/cookies/parse.js +150 -147
  1292. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  1293. package/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  1294. package/node_modules/undici/lib/web/fetch/index.js +6 -0
  1295. package/node_modules/undici/lib/web/fetch/request.js +2 -3
  1296. package/node_modules/undici/lib/web/fetch/util.js +6 -1
  1297. package/node_modules/undici/lib/web/webidl/index.js +3 -3
  1298. package/node_modules/undici/lib/web/websocket/connection.js +1 -1
  1299. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  1300. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  1301. package/node_modules/undici/package.json +3 -3
  1302. package/node_modules/undici/types/client.d.ts +10 -0
  1303. package/node_modules/undici/types/interceptors.d.ts +2 -0
  1304. package/node_modules/undici/types/mock-agent.d.ts +11 -10
  1305. package/node_modules/undici/types/socks5-proxy-agent.d.ts +2 -0
  1306. package/package.json +70 -49
  1307. package/vendor/pi-client/client.d.ts +20 -15
  1308. package/vendor/pi-client/client.d.ts.map +1 -1
  1309. package/vendor/pi-client/client.js +248 -245
  1310. package/vendor/pi-client/client.js.map +1 -1
  1311. package/vendor/pi-client/connection.d.ts +4 -3
  1312. package/vendor/pi-client/connection.d.ts.map +1 -1
  1313. package/vendor/pi-client/connection.js +13 -9
  1314. package/vendor/pi-client/connection.js.map +1 -1
  1315. package/vendor/pi-client/errors.d.ts +6 -15
  1316. package/vendor/pi-client/errors.d.ts.map +1 -1
  1317. package/vendor/pi-client/errors.js +10 -25
  1318. package/vendor/pi-client/errors.js.map +1 -1
  1319. package/vendor/pi-client/index.d.ts +3 -4
  1320. package/vendor/pi-client/index.d.ts.map +1 -1
  1321. package/vendor/pi-client/index.js +2 -2
  1322. package/vendor/pi-client/index.js.map +1 -1
  1323. package/vendor/pi-client/types.d.ts +14 -8
  1324. package/vendor/pi-client/types.d.ts.map +1 -1
  1325. package/vendor/pi-client/types.js.map +1 -1
  1326. package/vendor/pi-client/unix.d.ts +14 -1
  1327. package/vendor/pi-client/unix.d.ts.map +1 -1
  1328. package/vendor/pi-client/unix.js +138 -8
  1329. package/vendor/pi-client/unix.js.map +1 -1
  1330. package/vendor/pi-protocol/codec.d.ts +2 -4
  1331. package/vendor/pi-protocol/codec.d.ts.map +1 -1
  1332. package/vendor/pi-protocol/codec.js +7 -34
  1333. package/vendor/pi-protocol/codec.js.map +1 -1
  1334. package/vendor/pi-protocol/framing.d.ts +0 -2
  1335. package/vendor/pi-protocol/framing.d.ts.map +1 -1
  1336. package/vendor/pi-protocol/framing.js +0 -15
  1337. package/vendor/pi-protocol/framing.js.map +1 -1
  1338. package/vendor/pi-protocol/index.d.ts +1 -1
  1339. package/vendor/pi-protocol/index.d.ts.map +1 -1
  1340. package/vendor/pi-protocol/index.js +1 -1
  1341. package/vendor/pi-protocol/index.js.map +1 -1
  1342. package/vendor/pi-protocol/protocol.d.ts +167 -0
  1343. package/vendor/pi-protocol/protocol.d.ts.map +1 -0
  1344. package/vendor/pi-protocol/protocol.js +85 -0
  1345. package/vendor/pi-protocol/protocol.js.map +1 -0
  1346. package/dist/bun/register-bedrock.d.ts +0 -2
  1347. package/dist/bun/register-bedrock.d.ts.map +0 -1
  1348. package/dist/bun/register-bedrock.js +0 -4
  1349. package/dist/bun/register-bedrock.js.map +0 -1
  1350. package/dist/cli/experimental/auth.d.ts +0 -16
  1351. package/dist/cli/experimental/auth.d.ts.map +0 -1
  1352. package/dist/cli/experimental/auth.js +0 -13
  1353. package/dist/cli/experimental/auth.js.map +0 -1
  1354. package/dist/cli/experimental/cli.d.ts +0 -6
  1355. package/dist/cli/experimental/cli.d.ts.map +0 -1
  1356. package/dist/cli/experimental/cli.js +0 -5
  1357. package/dist/cli/experimental/cli.js.map +0 -1
  1358. package/dist/cli/experimental/command-options.d.ts +0 -17
  1359. package/dist/cli/experimental/command-options.d.ts.map +0 -1
  1360. package/dist/cli/experimental/command-options.js +0 -35
  1361. package/dist/cli/experimental/command-options.js.map +0 -1
  1362. package/dist/cli/experimental/command.d.ts +0 -63
  1363. package/dist/cli/experimental/command.d.ts.map +0 -1
  1364. package/dist/cli/experimental/command.js +0 -127
  1365. package/dist/cli/experimental/command.js.map +0 -1
  1366. package/dist/cli/experimental/commands/client.d.ts +0 -13
  1367. package/dist/cli/experimental/commands/client.d.ts.map +0 -1
  1368. package/dist/cli/experimental/commands/client.js +0 -25
  1369. package/dist/cli/experimental/commands/client.js.map +0 -1
  1370. package/dist/cli/experimental/commands/pi.d.ts +0 -15
  1371. package/dist/cli/experimental/commands/pi.d.ts.map +0 -1
  1372. package/dist/cli/experimental/commands/pi.js +0 -28
  1373. package/dist/cli/experimental/commands/pi.js.map +0 -1
  1374. package/dist/cli/experimental/commands/server.d.ts +0 -13
  1375. package/dist/cli/experimental/commands/server.d.ts.map +0 -1
  1376. package/dist/cli/experimental/commands/server.js +0 -25
  1377. package/dist/cli/experimental/commands/server.js.map +0 -1
  1378. package/dist/cli/experimental/transport-address.d.ts +0 -10
  1379. package/dist/cli/experimental/transport-address.d.ts.map +0 -1
  1380. package/dist/cli/experimental/transport-address.js +0 -38
  1381. package/dist/cli/experimental/transport-address.js.map +0 -1
  1382. package/dist/client/remote-session.d.ts +0 -53
  1383. package/dist/client/remote-session.d.ts.map +0 -1
  1384. package/dist/client/remote-session.js +0 -340
  1385. package/dist/client/remote-session.js.map +0 -1
  1386. package/dist/client/transcript.d.ts +0 -12
  1387. package/dist/client/transcript.d.ts.map +0 -1
  1388. package/dist/client/transcript.js +0 -98
  1389. package/dist/client/transcript.js.map +0 -1
  1390. package/dist/server/create-harness.d.ts +0 -26
  1391. package/dist/server/create-harness.d.ts.map +0 -1
  1392. package/dist/server/create-harness.js +0 -106
  1393. package/dist/server/create-harness.js.map +0 -1
  1394. package/dist/utils/clipboard-native.d.ts +0 -11
  1395. package/dist/utils/clipboard-native.d.ts.map +0 -1
  1396. package/dist/utils/clipboard-native.js +0 -20
  1397. package/dist/utils/clipboard-native.js.map +0 -1
  1398. package/docs/AGENTS.md +0 -67
  1399. package/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts +0 -100
  1400. package/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.d.ts.map +0 -1
  1401. package/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js +0 -420
  1402. package/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js.map +0 -1
  1403. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts +0 -9
  1404. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.d.ts.map +0 -1
  1405. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js +0 -18
  1406. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js.map +0 -1
  1407. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts +0 -3
  1408. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.d.ts.map +0 -1
  1409. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js +0 -2
  1410. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js.map +0 -1
  1411. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts +0 -65
  1412. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.d.ts.map +0 -1
  1413. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js +0 -320
  1414. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js.map +0 -1
  1415. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts +0 -4
  1416. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.d.ts.map +0 -1
  1417. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js +0 -762
  1418. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js.map +0 -1
  1419. package/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts +0 -29
  1420. package/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.d.ts.map +0 -1
  1421. package/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js +0 -103
  1422. package/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js.map +0 -1
  1423. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts +0 -69
  1424. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.d.ts.map +0 -1
  1425. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js +0 -159
  1426. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js.map +0 -1
  1427. package/node_modules/@earendil-works/pi-tui/native/darwin/src/darwin-modifiers.c +0 -70
  1428. package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
  1429. package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
  1430. package/node_modules/@earendil-works/pi-tui/native/win32/src/win32-console-mode.c +0 -119
  1431. package/node_modules/@mariozechner/clipboard/.yarnrc.yml +0 -1
  1432. package/node_modules/@mariozechner/clipboard/Cargo.toml +0 -45
  1433. package/node_modules/@mariozechner/clipboard/README.md +0 -60
  1434. package/node_modules/@mariozechner/clipboard/build.rs +0 -5
  1435. package/node_modules/@mariozechner/clipboard/exp.ts +0 -12
  1436. package/node_modules/@mariozechner/clipboard/index.d.ts +0 -37
  1437. package/node_modules/@mariozechner/clipboard/index.js +0 -606
  1438. package/node_modules/@mariozechner/clipboard/package.json +0 -45
  1439. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/common.rs +0 -307
  1440. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/mod.rs +0 -93
  1441. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/ios.rs +0 -313
  1442. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/macos.rs +0 -471
  1443. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/mod.rs +0 -252
  1444. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/wayland.rs +0 -431
  1445. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/win.rs +0 -712
  1446. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/x11.rs +0 -916
  1447. package/node_modules/@mariozechner/clipboard/src/lib.rs +0 -194
  1448. package/vendor/pi-client/session-handle.d.ts +0 -54
  1449. package/vendor/pi-client/session-handle.d.ts.map +0 -1
  1450. package/vendor/pi-client/session-handle.js +0 -50
  1451. package/vendor/pi-client/session-handle.js.map +0 -1
  1452. package/vendor/pi-client/state.d.ts +0 -22
  1453. package/vendor/pi-client/state.d.ts.map +0 -1
  1454. package/vendor/pi-client/state.js +0 -145
  1455. package/vendor/pi-client/state.js.map +0 -1
  1456. package/vendor/pi-protocol/schemas.d.ts +0 -13739
  1457. package/vendor/pi-protocol/schemas.d.ts.map +0 -1
  1458. package/vendor/pi-protocol/schemas.js +0 -386
  1459. package/vendor/pi-protocol/schemas.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../src/utils/uuid.ts"],"names":[],"mappings":"AAAA,IAAI,aAAa,GAAG,CAAC,QAAQ,CAAC;AAC9B,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,SAAS,eAAe,CAAC,KAA8B;IACtD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACjC,IAAI,MAAM,EAAE,eAAe,EAAE,CAAC;QAC7B,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QAC9B,OAAO;IACR,CAAC;IACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC;AAED,sCAAsC;AACtC,MAAM,UAAU,MAAM;IACrB,MAAM,MAAM,GAA4B,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IAC3D,eAAe,CAAC,MAAM,CAAC,CAAC;IACxB,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,IAAI,SAAS,GAAG,aAAa,EAAE,CAAC;QAC/B,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACvF,aAAa,GAAG,SAAS,CAAC;IAC3B,CAAC;SAAM,CAAC;QACP,QAAQ,GAAG,CAAC,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;QAChC,IAAI,QAAQ,KAAK,CAAC;YAAE,aAAa,EAAE,CAAC;IACrC,CAAC;IAED,MAAM,KAAK,GAA4B,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IAC1D,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,GAAG,aAAa,CAAC,GAAG,IAAI,CAAC;IAClD,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,GAAG,WAAW,CAAC,GAAG,IAAI,CAAC;IAChD,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC;IAC9C,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC;IAC5C,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC;IAC1C,KAAK,CAAC,CAAC,CAAC,GAAG,aAAa,GAAG,IAAI,CAAC;IAChC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7C,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IACpC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7C,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;IAC3D,KAAK,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IAEvB,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC;AAED,SAAS,UAAU,CAAC,KAA8B;IACjD,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC5E,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AACzJ,CAAC","sourcesContent":["let lastTimestamp = -Infinity;\nlet sequence = 0;\n\nfunction fillRandomBytes(bytes: Uint8Array<ArrayBuffer>): void {\n\tconst crypto = globalThis.crypto;\n\tif (crypto?.getRandomValues) {\n\t\tcrypto.getRandomValues(bytes);\n\t\treturn;\n\t}\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbytes[i] = Math.floor(Math.random() * 256);\n\t}\n}\n\n/** Generate a time-ordered UUIDv7. */\nexport function uuidv7(): string {\n\tconst random: Uint8Array<ArrayBuffer> = new Uint8Array(16);\n\tfillRandomBytes(random);\n\tconst timestamp = Date.now();\n\n\tif (timestamp > lastTimestamp) {\n\t\tsequence = random[6] * 0x1000000 + random[7] * 0x10000 + random[8] * 0x100 + random[9];\n\t\tlastTimestamp = timestamp;\n\t} else {\n\t\tsequence = (sequence + 1) >>> 0;\n\t\tif (sequence === 0) lastTimestamp++;\n\t}\n\n\tconst bytes: Uint8Array<ArrayBuffer> = new Uint8Array(16);\n\tbytes[0] = (lastTimestamp / 0x10000000000) & 0xff;\n\tbytes[1] = (lastTimestamp / 0x100000000) & 0xff;\n\tbytes[2] = (lastTimestamp / 0x1000000) & 0xff;\n\tbytes[3] = (lastTimestamp / 0x10000) & 0xff;\n\tbytes[4] = (lastTimestamp / 0x100) & 0xff;\n\tbytes[5] = lastTimestamp & 0xff;\n\tbytes[6] = 0x70 | ((sequence >>> 28) & 0x0f);\n\tbytes[7] = (sequence >>> 20) & 0xff;\n\tbytes[8] = 0x80 | ((sequence >>> 14) & 0x3f);\n\tbytes[9] = (sequence >>> 6) & 0xff;\n\tbytes[10] = ((sequence & 0x3f) << 2) | (random[10] & 0x03);\n\tbytes[11] = random[11];\n\tbytes[12] = random[12];\n\tbytes[13] = random[13];\n\tbytes[14] = random[14];\n\tbytes[15] = random[15];\n\n\treturn formatUuid(bytes);\n}\n\nfunction formatUuid(bytes: Uint8Array<ArrayBuffer>): string {\n\tconst hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, \"0\"));\n\treturn `${hex.slice(0, 4).join(\"\")}-${hex.slice(4, 6).join(\"\")}-${hex.slice(6, 8).join(\"\")}-${hex.slice(8, 10).join(\"\")}-${hex.slice(10, 16).join(\"\")}`;\n}\n"]}
1
+ {"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../src/utils/uuid.ts"],"names":[],"mappings":"AAAA,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAC7C,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC;AAEtC,IAAI,qBAAqB,GAAG,CAAC,CAAC,CAAC;AAC/B,IAAI,QAA4B,CAAC;AAEjC,SAAS,eAAe,CAAC,KAA8B;IACtD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACjC,IAAI,MAAM,EAAE,eAAe,EAAE,CAAC;QAC7B,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QAC9B,OAAO;IACR,CAAC;IACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC;AAED,0FAA0F;AAC1F,MAAM,UAAU,MAAM,CAAC,WAAoB;IAC1C,MAAM,kBAAkB,GAAG,WAAW,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;IACrD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,IAAI,kBAAkB,GAAG,CAAC,IAAI,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;QACnH,MAAM,IAAI,UAAU,CAAC,qDAAqD,qBAAqB,EAAE,CAAC,CAAC;IACpG,CAAC;IAED,MAAM,kBAAkB,GACvB,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IAC/F,IAAI,WAAW,KAAK,SAAS;QAAE,qBAAqB,GAAG,kBAAkB,CAAC;IAE1E,MAAM,KAAK,GAA4B,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IAC1D,eAAe,CAAC,KAAK,CAAC,CAAC;IACvB,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC5B,QAAQ;YACP,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC;gBACzB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC;gBACzB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC;gBACzB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;gBACxB,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC;SAAM,CAAC;QACP,IAAI,QAAQ,KAAK,YAAY;YAAE,MAAM,IAAI,UAAU,CAAC,qCAAqC,CAAC,CAAC;QAC3F,QAAQ,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC7C,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;QACzC,KAAK,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IACpE,CAAC;IACD,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC,QAAQ,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IACpD,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,QAAQ,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IAC7C,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC,QAAQ,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IACpD,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,QAAQ,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,QAAQ,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;IAElE,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC;AAED,SAAS,UAAU,CAAC,KAA8B;IACjD,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC5E,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AACrJ,CAAC","sourcesContent":["const MAX_UUID_V7_TIMESTAMP = 0xffffffffffff;\nconst MAX_SEQUENCE = (1n << 41n) - 1n;\n\nlet lastOrdinaryTimestamp = -1;\nlet sequence: bigint | undefined;\n\nfunction fillRandomBytes(bytes: Uint8Array<ArrayBuffer>): void {\n\tconst crypto = globalThis.crypto;\n\tif (crypto?.getRandomValues) {\n\t\tcrypto.getRandomValues(bytes);\n\t\treturn;\n\t}\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbytes[i] = Math.floor(Math.random() * 256);\n\t}\n}\n\n/** Generate a time-ordered UUIDv7. A supplied timestamp is preserved for follower ids. */\nexport function uuidv7(timestampMs?: number): string {\n\tconst requestedTimestamp = timestampMs ?? Date.now();\n\tif (!Number.isInteger(requestedTimestamp) || requestedTimestamp < 0 || requestedTimestamp > MAX_UUID_V7_TIMESTAMP) {\n\t\tthrow new RangeError(`UUIDv7 timestamp must be an integer between 0 and ${MAX_UUID_V7_TIMESTAMP}`);\n\t}\n\n\tconst effectiveTimestamp =\n\t\ttimestampMs === undefined ? Math.max(requestedTimestamp, lastOrdinaryTimestamp) : timestampMs;\n\tif (timestampMs === undefined) lastOrdinaryTimestamp = effectiveTimestamp;\n\n\tconst bytes: Uint8Array<ArrayBuffer> = new Uint8Array(16);\n\tfillRandomBytes(bytes);\n\tif (sequence === undefined) {\n\t\tsequence =\n\t\t\t(BigInt(bytes[1]) << 32n) |\n\t\t\t(BigInt(bytes[2]) << 24n) |\n\t\t\t(BigInt(bytes[3]) << 16n) |\n\t\t\t(BigInt(bytes[4]) << 8n) |\n\t\t\tBigInt(bytes[5]);\n\t} else {\n\t\tif (sequence === MAX_SEQUENCE) throw new RangeError(\"UUIDv7 generator sequence exhausted\");\n\t\tsequence++;\n\t}\n\n\tconst timestamp = BigInt(effectiveTimestamp);\n\tfor (let index = 5; index >= 0; index--) {\n\t\tbytes[index] = Number(timestamp >> BigInt((5 - index) * 8)) & 0xff;\n\t}\n\tbytes[6] = 0x70 | Number((sequence >> 37n) & 0x0fn);\n\tbytes[7] = Number((sequence >> 29n) & 0xffn);\n\tbytes[8] = 0x80 | Number((sequence >> 23n) & 0x3fn);\n\tbytes[9] = Number((sequence >> 15n) & 0xffn);\n\tbytes[10] = Number((sequence >> 7n) & 0xffn);\n\tbytes[11] = Number((sequence & 0x7fn) << 1n) | (bytes[11] & 0x01);\n\n\treturn formatUuid(bytes);\n}\n\nfunction formatUuid(bytes: Uint8Array<ArrayBuffer>): string {\n\tconst hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, \"0\"));\n\treturn `${hex.slice(0, 4).join(\"\")}-${hex.slice(4, 6).join(\"\")}-${hex.slice(6, 8).join(\"\")}-${hex.slice(8, 10).join(\"\")}-${hex.slice(10).join(\"\")}`;\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-ai",
3
- "version": "2026.9.12-2",
3
+ "version": "2026.9.12-3",
4
4
  "description": "Unified LLM API with automatic model discovery and provider configuration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -75,15 +75,15 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@anthropic-ai/sdk": "0.123.0",
78
- "@aws-sdk/client-bedrock-runtime": "3.1116.0",
79
- "@earendil-works/pi-telemetry": "npm:@code-yeongyu/senpi-telemetry@2026.9.12-2",
80
- "@google/genai": "2.18.0",
81
- "@smithy/node-http-handler": "4.11.3",
78
+ "@aws-sdk/client-bedrock-runtime": "3.1127.0",
79
+ "@earendil-works/pi-telemetry": "npm:@code-yeongyu/senpi-telemetry@2026.9.12-3",
80
+ "@google/genai": "2.21.0",
81
+ "@smithy/node-http-handler": "4.12.1",
82
82
  "http-proxy-agent": "9.1.0",
83
83
  "https-proxy-agent": "9.1.0",
84
84
  "openai": "6.26.0",
85
85
  "partial-json": "0.1.7",
86
- "typebox": "1.3.18",
86
+ "typebox": "1.3.27",
87
87
  "@bufbuild/protobuf": "2.14.0",
88
88
  "@smithy/types": "4.17.2",
89
89
  "yaml": "2.9.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-pty",
3
3
  "private": true,
4
- "version": "2026.9.12-2",
4
+ "version": "2026.9.12-3",
5
5
  "description": "Typed PTY session loader for Senpi persistent terminals",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-telemetry",
3
- "version": "2026.9.12-2",
3
+ "version": "2026.9.12-3",
4
4
  "description": "Vendor-neutral telemetry contracts and typed schema utilities for pi",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -11,7 +11,7 @@ Minimal terminal UI framework with differential rendering and synchronized outpu
11
11
  - **Bracketed Paste Mode**: Handles large pastes correctly with markers for >10 line pastes
12
12
  - **Component-based**: Simple Component interface with render() method
13
13
  - **Theme Support**: Components accept theme interfaces for customizable styling
14
- - **Built-in Components**: Text, TruncatedText, Input, Editor, Markdown, Loader, SelectList, SettingsList, Spacer, Image, Box, Container, VStack, HStack, ScrollView
14
+ - **Built-in Components**: Text, TruncatedText, Input, Editor, Markdown, Loader, SelectList, SettingsList, MouseRegion, Spacer, Image, Box, Container, VStack, HStack, ScrollView
15
15
  - **Inline Images**: Renders images in terminals that support Kitty or iTerm2 graphics protocols
16
16
  - **Autocomplete Support**: File paths and slash commands
17
17
 
@@ -121,7 +121,7 @@ if (isViewportTUI(tui)) {
121
121
  }
122
122
  ```
123
123
 
124
- Stack entries support `basis`, `grow`, `shrink`, `minSize`, `maxSize`, and responsive `visible` callbacks. Mouse-wheel input targets the scroll view under the pointer and unused delta chains to outer scroll views by default. The primary scroll view receives the alternate-screen keyboard navigation actions and wheel input over non-scrollable regions. It can also jump between OSC 133 semantic prompt markers, matching common terminal prompt-navigation shortcuts. Press `Ctrl+Shift+F` to search its rendered content, `Enter`/`Ctrl+G` and `Shift+Enter`/`Ctrl+Shift+G` to move between matches, and `Escape` to close search. `TuiAltScreenOptions.searchMatchStyle` and `searchCurrentMatchStyle` customize match highlighting.
124
+ Stack entries support `basis`, `grow`, `shrink`, `minSize`, `maxSize`, and responsive `visible` callbacks. Mouse-wheel input targets the scroll view under the pointer and unused delta chains to outer scroll views by default. The primary scroll view receives the alternate-screen keyboard navigation actions and wheel input over non-scrollable regions. It can also jump between OSC 133 semantic prompt markers, matching common terminal prompt-navigation shortcuts. Press `Ctrl+Shift+F` to open or close its bordered search panel. The panel shows the configured previous/next shortcuts and provides clickable arrow controls; by default, `Enter`/`Ctrl+G` and `Shift+Enter`/`Ctrl+Shift+G` move between matches, and `Escape` also closes search. `TuiAltScreenOptions.searchMatchStyle` and `searchCurrentMatchStyle` customize match highlighting, while `searchNavigationButtonStyle` styles each arrow button and receives its hover state. `TuiAltScreenOptions.scrollToEndIndicator` renders a clickable label centered on the last row of a `follow: "end"` primary scroll view while it is scrolled away from the end; clicking it resumes end-following.
125
125
 
126
126
  Layout geometry is rebuilt for each requested frame. Stateful components are retained, and their existing rendered-line caches remain effective. Calling `render(width)` directly on these layout components produces an unbounded document, which is also used when alt mode restores the main screen.
127
127
 
@@ -177,6 +177,7 @@ handle.unfocus(); // Release focus to normal fallback
177
177
  handle.unfocus({ target: baseComponent }); // Release this overlay to a specific component
178
178
  handle.unfocus({ target: null }); // Release this overlay and leave focus empty
179
179
  handle.isFocused(); // Check if overlay has focus
180
+ handle.getBounds(); // Get last rendered terminal-relative bounds
180
181
 
181
182
  handle.unfocus();
182
183
  // Overlay loses focus; TUI falls back to another visible capturing overlay or the previous focus target.
@@ -211,6 +212,7 @@ All components implement:
211
212
  interface Component {
212
213
  render(width: number): string[];
213
214
  handleInput?(data: string): void;
215
+ handleMouse?(event: TuiMouseEvent): TuiMouseEventResult | undefined;
214
216
  invalidate?(): void;
215
217
  }
216
218
  ```
@@ -219,10 +221,50 @@ interface Component {
219
221
  |--------|-------------|
220
222
  | `render(width)` | Returns an array of strings, one per line. Each line **must not exceed `width`** or the TUI will error. Use `truncateToWidth()` or manual wrapping to ensure this. |
221
223
  | `handleInput?(data)` | Called when the component has focus and receives keyboard input. The `data` string contains raw terminal input (may include ANSI escape sequences). |
224
+ | `handleMouse?(event)` | Called by `TuiAltScreen` for normalized pointer input targeted at the component. |
222
225
  | `invalidate?()` | Called to clear any cached render state. Components should re-render from scratch on the next `render()` call. |
223
226
 
224
227
  The TUI appends a full SGR reset and OSC 8 reset at the end of each rendered line. Styles do not carry across lines. If you emit multi-line text with styling, reapply styles per line or use `wrapTextWithAnsi()` so styles are preserved for each wrapped line.
225
228
 
229
+ ### Mouse Input
230
+
231
+ `TuiAltScreen` normalizes SGR mouse input and hit-tests components and overlays. Events contain component-local `x`/`y`, absolute `screenX`/`screenY`, bounds, button, modifiers, click count, and wheel delta. `TuiMainScreen` does not capture mouse input because the terminal owns its scrollback.
232
+
233
+ ```typescript
234
+ import type { TuiMouseEvent, TuiMouseEventResult } from "@earendil-works/pi-tui";
235
+
236
+ handleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined {
237
+ if (event.type === "click" && event.button === "left") {
238
+ this.expanded = !this.expanded;
239
+ return { handled: true };
240
+ }
241
+ if (event.type === "press" && event.button === "left") {
242
+ return { handled: true, capture: true, focus: true };
243
+ }
244
+ if (event.type === "drag") {
245
+ this.updateFromPointer(event.x, event.y);
246
+ return { handled: true, render: true };
247
+ }
248
+ return undefined;
249
+ }
250
+ ```
251
+
252
+ Returning `handled` suppresses renderer-level fallback behavior. `capture` keeps subsequent drag and release events routed to the same component. `focus` requests keyboard focus. The optional `render` flag controls repainting: press, click, drag, and wheel default to rendering; move and release do not. Set `render: true` for a hover state that visibly changed, or `render: false` for a handled no-op. Render requests are coalesced and terminal output remains differential.
253
+
254
+ Unhandled gestures retain alternate-screen defaults: wheel input scrolls the nearest `ScrollView` and chains unused delta, primary-button drags select text, OSC 8 links open before parent click handlers, and unhandled right-click preserves configured paste behavior. A click is emitted only when press/release completes without a drag.
255
+
256
+ Use `MouseRegion` to add mouse behavior without changing a component's rendering:
257
+
258
+ ```typescript
259
+ const collapsible = new MouseRegion(content, (event) => {
260
+ if (event.type !== "click" || event.button !== "left") return undefined;
261
+ expanded = !expanded;
262
+ return { handled: true };
263
+ });
264
+ ```
265
+
266
+ `Container` and `Box` route events to nested children using geometry recorded by the last rendered frame, so pointer motion does not rerender children merely to hit-test them. Explicit `VStack`, `HStack`, and `ScrollView` layouts use the alternate-screen layout frame directly.
267
+
226
268
  ### Focusable Interface (IME Support)
227
269
 
228
270
  Components that display a text cursor and need IME (Input Method Editor) support should implement the `Focusable` interface:
@@ -247,7 +289,7 @@ When a `Focusable` component has focus, TUI:
247
289
  3. Positions the hardware terminal cursor at that location
248
290
  4. Shows the hardware cursor only when `showHardwareCursor` is enabled
249
291
 
250
- The cursor remains hidden by default. This keeps the fake cursor rendering, while still positioning the hardware cursor for terminals that track IME candidate windows with hidden cursors. Some terminals require a visible hardware cursor for IME positioning; enable it with the renderer constructor's `showHardwareCursor` argument, `setShowHardwareCursor(true)`, or `PI_HARDWARE_CURSOR=1`. The `Editor` and `Input` built-in components already implement this interface.
292
+ The cursor remains hidden by default. This keeps the fake cursor rendering, while still positioning the hardware cursor for terminals that track IME candidate windows with hidden cursors. Some terminals require a visible hardware cursor for IME positioning; enable it with the renderer constructor's `showHardwareCursor` argument or `setShowHardwareCursor(true)`. The `Editor` and `Input` built-in components already implement this interface.
251
293
 
252
294
  **Container components with embedded inputs:** When a container component (dialog, selector, etc.) contains an `Input` or `Editor` child, the container must implement `Focusable` and propagate the focus state to the child:
253
295
 
@@ -339,6 +381,8 @@ input.setValue("initial");
339
381
  input.getValue();
340
382
  ```
341
383
 
384
+ Clicking positions the cursor and gives the input keyboard focus in alternate-screen mode.
385
+
342
386
  **Key Bindings:**
343
387
  - `Enter` - Submit
344
388
  - `Ctrl+A` / `Ctrl+E` - Line start/end
@@ -374,6 +418,7 @@ editor.getPaddingX(); // Get current padding
374
418
  ```
375
419
 
376
420
  **Features:**
421
+ - Click-to-position cursor and clickable autocomplete rows in alternate-screen mode
377
422
  - Multi-line editing with word wrap
378
423
  - Slash command autocomplete (type `/`)
379
424
  - File path autocomplete (press `Tab`)
@@ -514,6 +559,8 @@ list.setFilter("opt"); // Filter items
514
559
  ```
515
560
 
516
561
  **Controls:**
562
+ - Mouse move/wheel: Highlight rows in alternate-screen mode
563
+ - Click: Select a row
517
564
  - Arrow keys: Navigate
518
565
  - Enter: Select
519
566
  - Escape: Cancel
@@ -554,6 +601,8 @@ settings.updateValue("theme", "light");
554
601
  ```
555
602
 
556
603
  **Controls:**
604
+ - Mouse move/wheel: Highlight rows in alternate-screen mode
605
+ - Click: Activate a row
557
606
  - Arrow keys: Navigate
558
607
  - Enter/Space: Activate (cycle value or open submenu)
559
608
  - Escape: Cancel
@@ -657,7 +706,7 @@ if (matchesKey(data, Key.enter)) {
657
706
  2. **Width Changed or Change Above Viewport**: Clear screen and fully re-render
658
707
  3. **Normal Update**: Move the cursor to the first changed line, clear to the end, and render changed lines
659
708
 
660
- `TuiAltScreen` owns a terminal-height viewport. Without an explicit layout root it preserves the legacy single-document scrolling behavior. With `setLayoutRoot()`, `VStack`, `HStack`, and nested `ScrollView` components can reserve fixed regions and independently scroll constrained regions. It updates changed viewport rows in place, follows streaming output while at the bottom, and preserves a manually selected scroll position while content grows. Mouse-wheel and configurable keyboard navigation scroll without modifying terminal scrollback, including jumps between OSC 133 semantic prompt markers. Clicking an OSC 8 hyperlink opens it with the configured URL handler. Dragging with the primary mouse button selects text and, unless `TuiAltScreenOptions.copyOnSelect` is `false`, copies it to the clipboard with OSC 52; holding the drag at a scroll view's top or bottom edge auto-scrolls and extends the selection into off-screen content. Kitty images support vertical viewport cropping; iTerm2 inline images fall back to text because the iTerm2 protocol cannot delete or crop placements during viewport repainting.
709
+ `TuiAltScreen` owns a terminal-height viewport. Without an explicit layout root it preserves the legacy single-document scrolling behavior. With `setLayoutRoot()`, `VStack`, `HStack`, and nested `ScrollView` components can reserve fixed regions and independently scroll constrained regions. It updates changed viewport rows in place, follows streaming output while at the bottom, and preserves a manually selected scroll position while content grows. Mouse-wheel and configurable keyboard navigation scroll without modifying terminal scrollback, including jumps between OSC 133 semantic prompt markers. Scrollbars support hover expansion, thumb dragging, and track-click jumping. Clicking an OSC 8 hyperlink opens it with the configured URL handler. Dragging with the primary mouse button selects text and, unless `TuiAltScreenOptions.copyOnSelect` is `false`, copies it to the clipboard with OSC 52; holding the drag at a scroll view's top or bottom edge auto-scrolls and extends the selection into off-screen content. Kitty images support vertical viewport cropping; iTerm2 inline images fall back to text because the iTerm2 protocol cannot delete or crop placements during viewport repainting.
661
710
 
662
711
  Both renderers wrap updates in **synchronized output** (`\x1b[?2026h` ... `\x1b[?2026l`) for atomic, flicker-free rendering.
663
712
 
@@ -7,18 +7,38 @@ export interface AltScreenSearchSegment {
7
7
  export interface AltScreenSearchMatch {
8
8
  segments: AltScreenSearchSegment[];
9
9
  }
10
+ export interface AltScreenSearchResult {
11
+ matches: AltScreenSearchMatch[];
12
+ changed: boolean;
13
+ }
14
+ /** Cache the searchable corpus and matches while rendered transcript lines remain unchanged. */
15
+ export declare class AltScreenSearchIndex {
16
+ private sourceLines;
17
+ private corpus;
18
+ private normalizedQuery;
19
+ private matches;
20
+ search(lines: readonly string[], query: string): AltScreenSearchResult;
21
+ }
10
22
  export declare function findAltScreenSearchMatches(lines: readonly string[], query: string): AltScreenSearchMatch[];
11
23
  export declare function getAltScreenSearchMatchKey(match: AltScreenSearchMatch): string;
12
24
  export declare class AltScreenSearchComponent implements Component, Focusable {
13
25
  private readonly input;
14
26
  private readonly onQueryChange;
27
+ private readonly navigationButtonStyle;
15
28
  private resultCount;
16
29
  private resultIndex;
30
+ private previousButtonStart;
31
+ private previousButtonEnd;
32
+ private nextButtonStart;
33
+ private nextButtonEnd;
34
+ private hoveredNavigationDirection;
17
35
  private _focused;
18
- constructor(onQueryChange: (query: string) => void);
36
+ constructor(onQueryChange: (query: string) => void, navigationButtonStyle?: (text: string, hovered: boolean) => string);
19
37
  get focused(): boolean;
20
38
  set focused(value: boolean);
21
39
  setResult(index: number, count: number): void;
40
+ getNavigationDirectionAt(row: number, column: number): -1 | 1 | undefined;
41
+ setHoveredNavigationDirection(direction: -1 | 1 | undefined): boolean;
22
42
  handleInput(data: string): void;
23
43
  invalidate(): void;
24
44
  render(width: number): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"alt-screen-search.d.ts","sourceRoot":"","sources":["../src/alt-screen-search.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAWrD,MAAM,WAAW,sBAAsB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAkDD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,oBAAoB,EAAE,CA0B1G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAI9E;AAED,qBAAa,wBAAyB,YAAW,SAAS,EAAE,SAAS;IACpE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAe;IACrC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA0B;IACxD,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,WAAW,CAAM;IACzB,OAAO,CAAC,QAAQ,CAAS;IAEzB,YAAY,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAEjD;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAGzB;IAED,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAG5C;IAED,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAK9B;IAED,UAAU,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAe9B;CACD"}
1
+ {"version":3,"file":"alt-screen-search.d.ts","sourceRoot":"","sources":["../src/alt-screen-search.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAmBrD,MAAM,WAAW,sBAAsB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAwHD,MAAM,WAAW,qBAAqB;IACrC,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;CACjB;AAED,gGAAgG;AAChG,qBAAa,oBAAoB;IAChC,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,MAAM,CAA2B;IACzC,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,OAAO,CAA8B;IAE7C,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,qBAAqB,CAqBrE;CACD;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,oBAAoB,EAAE,CAG1G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAI9E;AAED,qBAAa,wBAAyB,YAAW,SAAS,EAAE,SAAS;IACpE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAInB;IACH,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA0B;IACxD,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAA6C;IACnF,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,WAAW,CAAM;IACzB,OAAO,CAAC,mBAAmB,CAAM;IACjC,OAAO,CAAC,iBAAiB,CAAM;IAC/B,OAAO,CAAC,eAAe,CAAM;IAC7B,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,0BAA0B,CAAqB;IACvD,OAAO,CAAC,QAAQ,CAAS;IAEzB,YACC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACtC,qBAAqB,GAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,MAAuB,EAIlF;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAGzB;IAED,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAG5C;IAED,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,CAKxE;IAED,6BAA6B,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,GAAG,OAAO,CAIpE;IAED,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAK9B;IAED,UAAU,IAAI,IAAI,CAEjB;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAkE9B;CACD"}
@@ -1,37 +1,82 @@
1
1
  import { Input } from "./components/input.js";
2
+ import { getKeybindings } from "./keybindings.js";
2
3
  import { getGraphemeSegmenter, stripTerminalSequences, truncateToWidth, visibleWidth } from "./utils.js";
3
4
  const segmenter = getGraphemeSegmenter();
4
- function appendMappedText(text, span, corpus) {
5
- corpus.text += text;
6
- for (let index = 0; index < text.length; index++)
7
- corpus.source.push(span);
8
- }
5
+ const PRINTABLE_ASCII = /^[\x20-\x7e]*$/;
9
6
  function buildSearchCorpus(lines) {
10
- const corpus = { text: "", source: [] };
7
+ const chunks = [];
8
+ const spans = [];
9
+ let textLength = 0;
11
10
  let pendingSeparator = false;
11
+ const appendSeparator = () => {
12
+ if (!pendingSeparator)
13
+ return;
14
+ chunks.push(" ");
15
+ textLength += 1;
16
+ pendingSeparator = false;
17
+ };
12
18
  for (let row = 0; row < lines.length; row++) {
13
19
  const line = stripTerminalSequences(lines[row] ?? "");
14
20
  let column = 0;
15
- for (const grapheme of segmenter.segment(line)) {
16
- const text = grapheme.segment;
17
- const width = visibleWidth(text);
18
- if (/^\s+$/u.test(text)) {
19
- if (corpus.text.length > 0)
20
- pendingSeparator = true;
21
- column += width;
22
- continue;
21
+ // Rendered transcripts are overwhelmingly ASCII. Index complete non-space
22
+ // runs at once instead of segmenting and allocating one mapping per cell.
23
+ if (PRINTABLE_ASCII.test(line)) {
24
+ let index = 0;
25
+ while (index < line.length) {
26
+ if (line.charCodeAt(index) === 0x20) {
27
+ if (textLength > 0)
28
+ pendingSeparator = true;
29
+ column += 1;
30
+ index += 1;
31
+ continue;
32
+ }
33
+ let end = index + 1;
34
+ while (end < line.length && line.charCodeAt(end) !== 0x20)
35
+ end += 1;
36
+ appendSeparator();
37
+ const text = line.slice(index, end);
38
+ chunks.push(text);
39
+ spans.push({
40
+ textStart: textLength,
41
+ textEnd: textLength + text.length,
42
+ row,
43
+ startCol: column,
44
+ endCol: column + text.length,
45
+ linearColumns: true,
46
+ });
47
+ textLength += text.length;
48
+ column += text.length;
49
+ index = end;
23
50
  }
24
- if (pendingSeparator) {
25
- appendMappedText(" ", undefined, corpus);
26
- pendingSeparator = false;
51
+ }
52
+ else {
53
+ for (const grapheme of segmenter.segment(line)) {
54
+ const text = grapheme.segment;
55
+ const width = visibleWidth(text);
56
+ if (/^\s+$/u.test(text)) {
57
+ if (textLength > 0)
58
+ pendingSeparator = true;
59
+ column += width;
60
+ continue;
61
+ }
62
+ appendSeparator();
63
+ chunks.push(text);
64
+ spans.push({
65
+ textStart: textLength,
66
+ textEnd: textLength + text.length,
67
+ row,
68
+ startCol: column,
69
+ endCol: column + width,
70
+ linearColumns: false,
71
+ });
72
+ textLength += text.length;
73
+ column += width;
27
74
  }
28
- appendMappedText(text, { row, startCol: column, endCol: column + width }, corpus);
29
- column += width;
30
75
  }
31
- if (corpus.text.length > 0)
76
+ if (textLength > 0)
32
77
  pendingSeparator = true;
33
78
  }
34
- return corpus;
79
+ return { text: chunks.join(""), spans };
35
80
  }
36
81
  function normalizeQuery(query) {
37
82
  return query.replace(/\s+/gu, " ").trim();
@@ -39,46 +84,96 @@ function normalizeQuery(query) {
39
84
  function escapeRegExp(text) {
40
85
  return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
41
86
  }
42
- export function findAltScreenSearchMatches(lines, query) {
43
- const normalizedQuery = normalizeQuery(query);
87
+ function findSearchCorpusMatches(corpus, normalizedQuery) {
44
88
  if (!normalizedQuery)
45
89
  return [];
46
- const corpus = buildSearchCorpus(lines);
47
90
  const expression = new RegExp(escapeRegExp(normalizedQuery), "giu");
48
91
  const matches = [];
92
+ let spanIndex = 0;
49
93
  for (const match of corpus.text.matchAll(expression)) {
50
94
  const start = match.index;
51
95
  const end = start + match[0].length;
96
+ while (spanIndex < corpus.spans.length && corpus.spans[spanIndex].textEnd <= start)
97
+ spanIndex += 1;
52
98
  const segments = [];
53
- for (let index = start; index < end; index++) {
54
- const span = corpus.source[index];
55
- if (!span)
99
+ for (let index = spanIndex; index < corpus.spans.length; index++) {
100
+ const span = corpus.spans[index];
101
+ if (span.textStart >= end)
102
+ break;
103
+ if (span.textEnd <= start)
56
104
  continue;
105
+ const startCol = span.linearColumns
106
+ ? span.startCol + Math.max(start, span.textStart) - span.textStart
107
+ : span.startCol;
108
+ const endCol = span.linearColumns ? span.startCol + Math.min(end, span.textEnd) - span.textStart : span.endCol;
57
109
  const previous = segments[segments.length - 1];
58
- if (previous && previous.row === span.row && span.startCol <= previous.endCol) {
59
- previous.endCol = Math.max(previous.endCol, span.endCol);
110
+ if (previous && previous.row === span.row && startCol <= previous.endCol) {
111
+ previous.endCol = Math.max(previous.endCol, endCol);
60
112
  }
61
113
  else {
62
- segments.push({ ...span });
114
+ segments.push({ row: span.row, startCol, endCol });
63
115
  }
64
116
  }
117
+ while (spanIndex < corpus.spans.length && corpus.spans[spanIndex].textEnd <= end)
118
+ spanIndex += 1;
65
119
  if (segments.length > 0)
66
120
  matches.push({ segments });
67
121
  }
68
122
  return matches;
69
123
  }
124
+ /** Cache the searchable corpus and matches while rendered transcript lines remain unchanged. */
125
+ export class AltScreenSearchIndex {
126
+ constructor() {
127
+ this.matches = [];
128
+ }
129
+ search(lines, query) {
130
+ let sourceChanged = this.sourceLines?.length !== lines.length;
131
+ if (!sourceChanged && this.sourceLines) {
132
+ for (let index = 0; index < lines.length; index++) {
133
+ if (this.sourceLines[index] === lines[index])
134
+ continue;
135
+ sourceChanged = true;
136
+ break;
137
+ }
138
+ }
139
+ if (sourceChanged || !this.corpus) {
140
+ this.sourceLines = Array.from(lines);
141
+ this.corpus = buildSearchCorpus(lines);
142
+ }
143
+ const normalizedQuery = normalizeQuery(query);
144
+ const changed = sourceChanged || normalizedQuery !== this.normalizedQuery;
145
+ if (changed) {
146
+ this.normalizedQuery = normalizedQuery;
147
+ this.matches = findSearchCorpusMatches(this.corpus, normalizedQuery);
148
+ }
149
+ return { matches: this.matches, changed };
150
+ }
151
+ }
152
+ export function findAltScreenSearchMatches(lines, query) {
153
+ const normalizedQuery = normalizeQuery(query);
154
+ return normalizedQuery ? findSearchCorpusMatches(buildSearchCorpus(lines), normalizedQuery) : [];
155
+ }
70
156
  export function getAltScreenSearchMatchKey(match) {
71
157
  const first = match.segments[0];
72
158
  const last = match.segments[match.segments.length - 1];
73
159
  return first && last ? `${first.row}:${first.startCol}:${last.row}:${last.endCol}` : "";
74
160
  }
75
161
  export class AltScreenSearchComponent {
76
- constructor(onQueryChange) {
77
- this.input = new Input();
162
+ constructor(onQueryChange, navigationButtonStyle = (text) => text) {
163
+ this.input = new Input({
164
+ prompt: " ",
165
+ placeholder: "Find in transcript",
166
+ placeholderStyle: (text) => `\x1b[2m${text}\x1b[22m`,
167
+ });
78
168
  this.resultCount = 0;
79
169
  this.resultIndex = -1;
170
+ this.previousButtonStart = -1;
171
+ this.previousButtonEnd = -1;
172
+ this.nextButtonStart = -1;
173
+ this.nextButtonEnd = -1;
80
174
  this._focused = false;
81
175
  this.onQueryChange = onQueryChange;
176
+ this.navigationButtonStyle = navigationButtonStyle;
82
177
  }
83
178
  get focused() {
84
179
  return this._focused;
@@ -91,6 +186,21 @@ export class AltScreenSearchComponent {
91
186
  this.resultIndex = index;
92
187
  this.resultCount = count;
93
188
  }
189
+ getNavigationDirectionAt(row, column) {
190
+ if (row !== 2)
191
+ return undefined;
192
+ if (column >= this.previousButtonStart && column < this.previousButtonEnd)
193
+ return -1;
194
+ if (column >= this.nextButtonStart && column < this.nextButtonEnd)
195
+ return 1;
196
+ return undefined;
197
+ }
198
+ setHoveredNavigationDirection(direction) {
199
+ if (direction === this.hoveredNavigationDirection)
200
+ return false;
201
+ this.hoveredNavigationDirection = direction;
202
+ return true;
203
+ }
94
204
  handleInput(data) {
95
205
  const previous = this.input.getValue();
96
206
  this.input.handleInput(data);
@@ -103,19 +213,66 @@ export class AltScreenSearchComponent {
103
213
  }
104
214
  render(width) {
105
215
  const safeWidth = Math.max(1, width);
106
- const label = " Find transcript";
216
+ const innerWidth = Math.max(0, safeWidth - 2);
217
+ const formatKey = (key) => key
218
+ ? key
219
+ .split("+")
220
+ .map((part) => {
221
+ if (process.platform === "darwin" && part.toLowerCase() === "alt")
222
+ return "Option";
223
+ return part.charAt(0).toUpperCase() + part.slice(1);
224
+ })
225
+ .join("+")
226
+ : "Unbound";
227
+ const keybindings = getKeybindings();
228
+ const previousKey = formatKey(keybindings.getKeys("tui.altScreen.searchPrevious")[0]);
229
+ const nextKey = formatKey(keybindings.getKeys("tui.altScreen.searchNext")[0]);
107
230
  const query = this.input.getValue();
108
- const status = !query
231
+ const result = !query
109
232
  ? ""
110
233
  : this.resultCount === 0
111
- ? "No matches "
112
- : `${this.resultIndex + 1}/${this.resultCount} `;
113
- const labelWidth = visibleWidth(label);
114
- const statusWidth = visibleWidth(status);
115
- const gap = " ".repeat(Math.max(1, safeWidth - labelWidth - statusWidth));
116
- const title = truncateToWidth(`${label}${gap}${status}`, safeWidth, "");
117
- const padding = " ".repeat(Math.max(0, safeWidth - visibleWidth(title)));
118
- return [`\x1b[7m${title}${padding}\x1b[27m`, ...this.input.render(safeWidth)];
234
+ ? "No matches"
235
+ : `${this.resultIndex + 1}/${this.resultCount}`;
236
+ const resultSpace = Math.max(0, innerWidth - 3);
237
+ const visibleResult = truncateToWidth(result, resultSpace, "");
238
+ const resultText = visibleResult ? `\x1b[2m ${visibleResult} \x1b[22m` : "";
239
+ const inputWidth = Math.max(0, innerWidth - visibleWidth(resultText));
240
+ const inputLine = truncateToWidth(this.input.render(Math.max(1, inputWidth))[0] ?? "", inputWidth, "");
241
+ const inputPadding = " ".repeat(Math.max(0, inputWidth - visibleWidth(inputLine)));
242
+ const content = `${inputLine}${inputPadding}${resultText}`;
243
+ let previousButton = `↑ ${previousKey}`;
244
+ let nextButton = `↓ ${nextKey}`;
245
+ let separator = " · ";
246
+ const outerGapWidth = 1;
247
+ const availableControlsWidth = Math.max(0, innerWidth - outerGapWidth * 2 - 1);
248
+ let controlsWidth = visibleWidth(previousButton) + visibleWidth(separator) + visibleWidth(nextButton);
249
+ if (controlsWidth > availableControlsWidth) {
250
+ previousButton = "↑";
251
+ nextButton = "↓";
252
+ separator = " ";
253
+ controlsWidth = visibleWidth(previousButton) + visibleWidth(separator) + visibleWidth(nextButton);
254
+ }
255
+ const showButtons = controlsWidth <= availableControlsWidth;
256
+ const renderedButtons = showButtons
257
+ ? this.navigationButtonStyle(previousButton, this.hoveredNavigationDirection === -1) +
258
+ separator +
259
+ this.navigationButtonStyle(nextButton, this.hoveredNavigationDirection === 1)
260
+ : "";
261
+ const outerGapsWidth = showButtons ? outerGapWidth * 2 : 0;
262
+ const rightRuleWidth = renderedButtons && innerWidth > controlsWidth + outerGapsWidth ? 1 : 0;
263
+ const leftRuleWidth = Math.max(0, innerWidth - (showButtons ? controlsWidth : 0) - outerGapsWidth - rightRuleWidth);
264
+ const previousStart = 1 + leftRuleWidth + outerGapWidth;
265
+ this.previousButtonStart = showButtons ? previousStart : -1;
266
+ this.previousButtonEnd = showButtons ? previousStart + visibleWidth(previousButton) : -1;
267
+ this.nextButtonStart = showButtons ? this.previousButtonEnd + visibleWidth(separator) : -1;
268
+ this.nextButtonEnd = showButtons ? this.nextButtonStart + visibleWidth(nextButton) : -1;
269
+ if (safeWidth === 1)
270
+ return ["┌", "│", "└"];
271
+ return [
272
+ `┌${"─".repeat(innerWidth)}┐`,
273
+ `│${content}│`,
274
+ `└${"─".repeat(leftRuleWidth)}${renderedButtons ? " " : ""}${renderedButtons}${renderedButtons ? " " : ""}${"─".repeat(rightRuleWidth)}┘`,
275
+ ];
119
276
  }
120
277
  }
121
278
  //# sourceMappingURL=alt-screen-search.js.map