omegon-pi 0.12.0

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 (2866) hide show
  1. package/.gitattributes +3 -0
  2. package/.omegon/profile.json +7 -0
  3. package/AGENTS.md +16 -0
  4. package/ARCHIVE_NOTE.md +28 -0
  5. package/LICENSE +15 -0
  6. package/README.md +296 -0
  7. package/bin/omegon-pi.mjs +244 -0
  8. package/bin/pi.mjs +9 -0
  9. package/extensions/00-secrets/index.ts +1239 -0
  10. package/extensions/00-splash/index.ts +604 -0
  11. package/extensions/00-splash/logo.ts +246 -0
  12. package/extensions/01-auth/auth.ts +476 -0
  13. package/extensions/01-auth/index.ts +289 -0
  14. package/extensions/auto-compact.ts +42 -0
  15. package/extensions/bootstrap/deps.ts +451 -0
  16. package/extensions/bootstrap/index.ts +1123 -0
  17. package/extensions/chronos/chronos.ts +324 -0
  18. package/extensions/chronos/index.ts +127 -0
  19. package/extensions/cleave/assessment.ts +768 -0
  20. package/extensions/cleave/bridge.ts +31 -0
  21. package/extensions/cleave/conflicts.ts +250 -0
  22. package/extensions/cleave/dispatcher.ts +1367 -0
  23. package/extensions/cleave/guardrails.ts +426 -0
  24. package/extensions/cleave/index.ts +3114 -0
  25. package/extensions/cleave/lifecycle-emitter.ts +20 -0
  26. package/extensions/cleave/native-dispatch.ts +218 -0
  27. package/extensions/cleave/openspec.ts +811 -0
  28. package/extensions/cleave/planner.ts +260 -0
  29. package/extensions/cleave/review.ts +580 -0
  30. package/extensions/cleave/rpc-child.ts +269 -0
  31. package/extensions/cleave/skills.ts +355 -0
  32. package/extensions/cleave/subprocess-tracker.ts +205 -0
  33. package/extensions/cleave/types.ts +315 -0
  34. package/extensions/cleave/workspace.ts +865 -0
  35. package/extensions/cleave/worktree.ts +243 -0
  36. package/extensions/core-renderers.ts +193 -0
  37. package/extensions/dashboard/context-gauge.ts +58 -0
  38. package/extensions/dashboard/file-watch.ts +14 -0
  39. package/extensions/dashboard/footer.ts +1375 -0
  40. package/extensions/dashboard/git.ts +193 -0
  41. package/extensions/dashboard/index.ts +481 -0
  42. package/extensions/dashboard/memory-audit.ts +34 -0
  43. package/extensions/dashboard/overlay-data.ts +705 -0
  44. package/extensions/dashboard/overlay.ts +365 -0
  45. package/extensions/dashboard/render-utils.ts +54 -0
  46. package/extensions/dashboard/types.ts +206 -0
  47. package/extensions/dashboard/uri-helper.ts +45 -0
  48. package/extensions/defaults.ts +274 -0
  49. package/extensions/design-tree/dashboard-state.ts +161 -0
  50. package/extensions/design-tree/design-card.ts +362 -0
  51. package/extensions/design-tree/index.ts +2181 -0
  52. package/extensions/design-tree/lifecycle-emitter.ts +41 -0
  53. package/extensions/design-tree/tree.ts +1720 -0
  54. package/extensions/design-tree/types.ts +165 -0
  55. package/extensions/effort/index.ts +532 -0
  56. package/extensions/effort/tiers.ts +146 -0
  57. package/extensions/effort/types.ts +105 -0
  58. package/extensions/igor/client.ts +167 -0
  59. package/extensions/igor/context.ts +61 -0
  60. package/extensions/igor/index.ts +259 -0
  61. package/extensions/igor/intents.ts +78 -0
  62. package/extensions/lib/debug.ts +69 -0
  63. package/extensions/lib/git-state.ts +227 -0
  64. package/extensions/lib/local-models.ts +157 -0
  65. package/extensions/lib/model-preferences.ts +51 -0
  66. package/extensions/lib/model-routing.ts +992 -0
  67. package/extensions/lib/omegon-subprocess.ts +152 -0
  68. package/extensions/lib/operator-fallback.ts +205 -0
  69. package/extensions/lib/operator-profile.ts +360 -0
  70. package/extensions/lib/provider-env.ts +163 -0
  71. package/extensions/lib/sci-ui.ts +421 -0
  72. package/extensions/lib/shared-state.ts +174 -0
  73. package/extensions/lib/slash-command-bridge.ts +262 -0
  74. package/extensions/lib/splash-state.ts +25 -0
  75. package/extensions/lib/typebox-helpers.ts +16 -0
  76. package/extensions/lib/types.d.ts +9 -0
  77. package/extensions/local-inference/index.ts +727 -0
  78. package/extensions/mcp-bridge/README.md +220 -0
  79. package/extensions/mcp-bridge/index.ts +956 -0
  80. package/extensions/mcp-bridge/lib.ts +365 -0
  81. package/extensions/mcp-bridge/mcp.json +3 -0
  82. package/extensions/mcp-bridge/package.json +11 -0
  83. package/extensions/model-budget.ts +752 -0
  84. package/extensions/offline-driver.ts +410 -0
  85. package/extensions/openspec/archive-gate.ts +164 -0
  86. package/extensions/openspec/branch-cleanup.ts +64 -0
  87. package/extensions/openspec/dashboard-state.ts +50 -0
  88. package/extensions/openspec/index.ts +1942 -0
  89. package/extensions/openspec/lifecycle-emitter.ts +65 -0
  90. package/extensions/openspec/lifecycle-files.ts +120 -0
  91. package/extensions/openspec/lifecycle.ts +50 -0
  92. package/extensions/openspec/reconcile.ts +187 -0
  93. package/extensions/openspec/spec.ts +1392 -0
  94. package/extensions/openspec/types.ts +98 -0
  95. package/extensions/project-memory/DESIGN-global-mind.md +198 -0
  96. package/extensions/project-memory/README.md +204 -0
  97. package/extensions/project-memory/api-types.ts +382 -0
  98. package/extensions/project-memory/compaction-policy.ts +29 -0
  99. package/extensions/project-memory/core.ts +164 -0
  100. package/extensions/project-memory/embeddings.ts +230 -0
  101. package/extensions/project-memory/extraction-v2.ts +636 -0
  102. package/extensions/project-memory/factstore.ts +2317 -0
  103. package/extensions/project-memory/index.ts +3517 -0
  104. package/extensions/project-memory/injection-metrics.ts +123 -0
  105. package/extensions/project-memory/jsonl-io.ts +36 -0
  106. package/extensions/project-memory/lifecycle.ts +340 -0
  107. package/extensions/project-memory/llm-direct.ts +260 -0
  108. package/extensions/project-memory/migration.ts +293 -0
  109. package/extensions/project-memory/package.json +9 -0
  110. package/extensions/project-memory/sci-renderers.ts +7 -0
  111. package/extensions/project-memory/template.ts +103 -0
  112. package/extensions/project-memory/triggers.ts +52 -0
  113. package/extensions/project-memory/types.ts +102 -0
  114. package/extensions/render/composition/fonts/Inter-Bold.ttf +0 -0
  115. package/extensions/render/composition/fonts/Inter-Regular.ttf +0 -0
  116. package/extensions/render/composition/fonts/Tomorrow-Bold.ttf +0 -0
  117. package/extensions/render/composition/fonts/Tomorrow-Regular.ttf +0 -0
  118. package/extensions/render/composition/package.json +22 -0
  119. package/extensions/render/composition/render.mjs +246 -0
  120. package/extensions/render/composition/test-comp.tsx +87 -0
  121. package/extensions/render/composition/types.ts +24 -0
  122. package/extensions/render/excalidraw/UPSTREAM.md +81 -0
  123. package/extensions/render/excalidraw/elements.ts +764 -0
  124. package/extensions/render/excalidraw/index.ts +66 -0
  125. package/extensions/render/excalidraw/types.ts +223 -0
  126. package/extensions/render/excalidraw-renderer/pyproject.toml +8 -0
  127. package/extensions/render/excalidraw-renderer/render_excalidraw.py +182 -0
  128. package/extensions/render/excalidraw-renderer/render_template.html +59 -0
  129. package/extensions/render/index.ts +830 -0
  130. package/extensions/render/native-diagrams/index.ts +57 -0
  131. package/extensions/render/native-diagrams/motifs.ts +542 -0
  132. package/extensions/render/native-diagrams/raster.ts +8 -0
  133. package/extensions/render/native-diagrams/scene.ts +75 -0
  134. package/extensions/render/native-diagrams/spec.ts +204 -0
  135. package/extensions/render/native-diagrams/svg.ts +116 -0
  136. package/extensions/sermon-widget.ts +144 -0
  137. package/extensions/sermon.ts +154 -0
  138. package/extensions/session-log.ts +174 -0
  139. package/extensions/spinner-verbs.ts +312 -0
  140. package/extensions/style.ts +281 -0
  141. package/extensions/terminal-title.ts +191 -0
  142. package/extensions/tool-profile/index.ts +296 -0
  143. package/extensions/tool-profile/profiles.ts +290 -0
  144. package/extensions/vault/index.ts +185 -0
  145. package/extensions/version-check.ts +94 -0
  146. package/extensions/view/index.ts +859 -0
  147. package/extensions/view/uri-resolver.ts +148 -0
  148. package/extensions/web-search/index.ts +185 -0
  149. package/extensions/web-search/providers.ts +121 -0
  150. package/extensions/web-ui/index.ts +110 -0
  151. package/extensions/web-ui/server.ts +265 -0
  152. package/extensions/web-ui/state.ts +462 -0
  153. package/extensions/web-ui/static/index.html +145 -0
  154. package/extensions/web-ui/types.ts +284 -0
  155. package/graphics/g140.png +0 -0
  156. package/graphics/icon.jpg +0 -0
  157. package/graphics/icon.svg +562 -0
  158. package/graphics/path1-4.jpg +0 -0
  159. package/node_modules/@mariozechner/clipboard/.yarnrc.yml +1 -0
  160. package/node_modules/@mariozechner/clipboard/Cargo.toml +26 -0
  161. package/node_modules/@mariozechner/clipboard/README.md +58 -0
  162. package/node_modules/@mariozechner/clipboard/build.rs +5 -0
  163. package/node_modules/@mariozechner/clipboard/exp.ts +12 -0
  164. package/node_modules/@mariozechner/clipboard/index.d.ts +23 -0
  165. package/node_modules/@mariozechner/clipboard/index.js +317 -0
  166. package/node_modules/@mariozechner/clipboard/package.json +56 -0
  167. package/node_modules/@mariozechner/clipboard/src/lib.rs +191 -0
  168. package/node_modules/@mariozechner/clipboard-darwin-arm64/README.md +3 -0
  169. package/node_modules/@mariozechner/clipboard-darwin-arm64/clipboard.darwin-arm64.node +0 -0
  170. package/node_modules/@mariozechner/clipboard-darwin-arm64/package.json +22 -0
  171. package/node_modules/@mariozechner/clipboard-darwin-universal/README.md +3 -0
  172. package/node_modules/@mariozechner/clipboard-darwin-universal/clipboard.darwin-universal.node +0 -0
  173. package/node_modules/@mariozechner/clipboard-darwin-universal/package.json +19 -0
  174. package/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.d.ts +55 -0
  175. package/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.js +670 -0
  176. package/node_modules/@sinclair/typebox/build/cjs/compiler/index.d.ts +2 -0
  177. package/node_modules/@sinclair/typebox/build/cjs/compiler/index.js +22 -0
  178. package/node_modules/@sinclair/typebox/build/cjs/errors/errors.d.ts +91 -0
  179. package/node_modules/@sinclair/typebox/build/cjs/errors/errors.js +599 -0
  180. package/node_modules/@sinclair/typebox/build/cjs/errors/function.d.ts +21 -0
  181. package/node_modules/@sinclair/typebox/build/cjs/errors/function.js +153 -0
  182. package/node_modules/@sinclair/typebox/build/cjs/errors/index.d.ts +2 -0
  183. package/node_modules/@sinclair/typebox/build/cjs/errors/index.js +19 -0
  184. package/node_modules/@sinclair/typebox/build/cjs/index.d.ts +71 -0
  185. package/node_modules/@sinclair/typebox/build/cjs/index.js +97 -0
  186. package/node_modules/@sinclair/typebox/build/cjs/parser/index.d.ts +2 -0
  187. package/node_modules/@sinclair/typebox/build/cjs/parser/index.js +39 -0
  188. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.d.ts +23 -0
  189. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.js +86 -0
  190. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.d.ts +5 -0
  191. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.js +45 -0
  192. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.d.ts +9 -0
  193. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.js +22 -0
  194. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.d.ts +9 -0
  195. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.js +160 -0
  196. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.d.ts +8 -0
  197. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.js +230 -0
  198. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.d.ts +98 -0
  199. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.js +71 -0
  200. package/node_modules/@sinclair/typebox/build/cjs/parser/static/index.d.ts +3 -0
  201. package/node_modules/@sinclair/typebox/build/cjs/parser/static/index.js +43 -0
  202. package/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.d.ts +20 -0
  203. package/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.js +3 -0
  204. package/node_modules/@sinclair/typebox/build/cjs/parser/static/token.d.ts +108 -0
  205. package/node_modules/@sinclair/typebox/build/cjs/parser/static/token.js +3 -0
  206. package/node_modules/@sinclair/typebox/build/cjs/parser/static/types.d.ts +69 -0
  207. package/node_modules/@sinclair/typebox/build/cjs/parser/static/types.js +3 -0
  208. package/node_modules/@sinclair/typebox/build/cjs/syntax/index.d.ts +1 -0
  209. package/node_modules/@sinclair/typebox/build/cjs/syntax/index.js +18 -0
  210. package/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.d.ts +167 -0
  211. package/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.js +491 -0
  212. package/node_modules/@sinclair/typebox/build/cjs/syntax/parser.d.ts +162 -0
  213. package/node_modules/@sinclair/typebox/build/cjs/syntax/parser.js +191 -0
  214. package/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.d.ts +12 -0
  215. package/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.js +54 -0
  216. package/node_modules/@sinclair/typebox/build/cjs/system/index.d.ts +2 -0
  217. package/node_modules/@sinclair/typebox/build/cjs/system/index.js +19 -0
  218. package/node_modules/@sinclair/typebox/build/cjs/system/policy.d.ts +29 -0
  219. package/node_modules/@sinclair/typebox/build/cjs/system/policy.js +58 -0
  220. package/node_modules/@sinclair/typebox/build/cjs/system/system.d.ts +16 -0
  221. package/node_modules/@sinclair/typebox/build/cjs/system/system.js +43 -0
  222. package/node_modules/@sinclair/typebox/build/cjs/type/any/any.d.ts +8 -0
  223. package/node_modules/@sinclair/typebox/build/cjs/type/any/any.js +10 -0
  224. package/node_modules/@sinclair/typebox/build/cjs/type/any/index.d.ts +1 -0
  225. package/node_modules/@sinclair/typebox/build/cjs/type/any/index.js +18 -0
  226. package/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.d.ts +9 -0
  227. package/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.js +10 -0
  228. package/node_modules/@sinclair/typebox/build/cjs/type/argument/index.d.ts +1 -0
  229. package/node_modules/@sinclair/typebox/build/cjs/type/argument/index.js +18 -0
  230. package/node_modules/@sinclair/typebox/build/cjs/type/array/array.d.ts +28 -0
  231. package/node_modules/@sinclair/typebox/build/cjs/type/array/array.js +10 -0
  232. package/node_modules/@sinclair/typebox/build/cjs/type/array/index.d.ts +1 -0
  233. package/node_modules/@sinclair/typebox/build/cjs/type/array/index.js +18 -0
  234. package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.d.ts +11 -0
  235. package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.js +10 -0
  236. package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.d.ts +1 -0
  237. package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.js +18 -0
  238. package/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.d.ts +14 -0
  239. package/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.js +41 -0
  240. package/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.d.ts +1 -0
  241. package/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.js +18 -0
  242. package/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.d.ts +16 -0
  243. package/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.js +10 -0
  244. package/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.d.ts +1 -0
  245. package/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.js +18 -0
  246. package/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.d.ts +9 -0
  247. package/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.js +10 -0
  248. package/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.d.ts +1 -0
  249. package/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.js +18 -0
  250. package/node_modules/@sinclair/typebox/build/cjs/type/clone/index.d.ts +2 -0
  251. package/node_modules/@sinclair/typebox/build/cjs/type/clone/index.js +19 -0
  252. package/node_modules/@sinclair/typebox/build/cjs/type/clone/type.d.ts +5 -0
  253. package/node_modules/@sinclair/typebox/build/cjs/type/clone/type.js +14 -0
  254. package/node_modules/@sinclair/typebox/build/cjs/type/clone/value.d.ts +2 -0
  255. package/node_modules/@sinclair/typebox/build/cjs/type/clone/value.js +73 -0
  256. package/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.d.ts +18 -0
  257. package/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.js +46 -0
  258. package/node_modules/@sinclair/typebox/build/cjs/type/composite/index.d.ts +1 -0
  259. package/node_modules/@sinclair/typebox/build/cjs/type/composite/index.js +18 -0
  260. package/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.d.ts +9 -0
  261. package/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.js +10 -0
  262. package/node_modules/@sinclair/typebox/build/cjs/type/computed/index.d.ts +1 -0
  263. package/node_modules/@sinclair/typebox/build/cjs/type/computed/index.js +18 -0
  264. package/node_modules/@sinclair/typebox/build/cjs/type/const/const.d.ts +27 -0
  265. package/node_modules/@sinclair/typebox/build/cjs/type/const/const.js +58 -0
  266. package/node_modules/@sinclair/typebox/build/cjs/type/const/index.d.ts +1 -0
  267. package/node_modules/@sinclair/typebox/build/cjs/type/const/index.js +18 -0
  268. package/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.d.ts +23 -0
  269. package/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.js +10 -0
  270. package/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.d.ts +1 -0
  271. package/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.js +18 -0
  272. package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.d.ts +7 -0
  273. package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.js +44 -0
  274. package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.d.ts +1 -0
  275. package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.js +18 -0
  276. package/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.d.ts +2 -0
  277. package/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.js +70 -0
  278. package/node_modules/@sinclair/typebox/build/cjs/type/create/index.d.ts +1 -0
  279. package/node_modules/@sinclair/typebox/build/cjs/type/create/index.js +18 -0
  280. package/node_modules/@sinclair/typebox/build/cjs/type/create/type.d.ts +3 -0
  281. package/node_modules/@sinclair/typebox/build/cjs/type/create/type.js +19 -0
  282. package/node_modules/@sinclair/typebox/build/cjs/type/date/date.d.ts +21 -0
  283. package/node_modules/@sinclair/typebox/build/cjs/type/date/date.js +10 -0
  284. package/node_modules/@sinclair/typebox/build/cjs/type/date/index.d.ts +1 -0
  285. package/node_modules/@sinclair/typebox/build/cjs/type/date/index.js +18 -0
  286. package/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.d.ts +2 -0
  287. package/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.js +12 -0
  288. package/node_modules/@sinclair/typebox/build/cjs/type/discard/index.d.ts +1 -0
  289. package/node_modules/@sinclair/typebox/build/cjs/type/discard/index.js +18 -0
  290. package/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.d.ts +14 -0
  291. package/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.js +22 -0
  292. package/node_modules/@sinclair/typebox/build/cjs/type/enum/index.d.ts +1 -0
  293. package/node_modules/@sinclair/typebox/build/cjs/type/enum/index.js +18 -0
  294. package/node_modules/@sinclair/typebox/build/cjs/type/error/error.d.ts +4 -0
  295. package/node_modules/@sinclair/typebox/build/cjs/type/error/error.js +11 -0
  296. package/node_modules/@sinclair/typebox/build/cjs/type/error/index.d.ts +1 -0
  297. package/node_modules/@sinclair/typebox/build/cjs/type/error/index.js +18 -0
  298. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.d.ts +11 -0
  299. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.js +22 -0
  300. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.d.ts +5 -0
  301. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.js +9 -0
  302. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.d.ts +21 -0
  303. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.js +29 -0
  304. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.d.ts +3 -0
  305. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.js +20 -0
  306. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.d.ts +10 -0
  307. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.js +641 -0
  308. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.d.ts +14 -0
  309. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.js +29 -0
  310. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.d.ts +11 -0
  311. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.js +23 -0
  312. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.d.ts +3 -0
  313. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.js +24 -0
  314. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.d.ts +16 -0
  315. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.js +27 -0
  316. package/node_modules/@sinclair/typebox/build/cjs/type/extends/index.d.ts +5 -0
  317. package/node_modules/@sinclair/typebox/build/cjs/type/extends/index.js +22 -0
  318. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.d.ts +11 -0
  319. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.js +22 -0
  320. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.d.ts +5 -0
  321. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.js +9 -0
  322. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.d.ts +21 -0
  323. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.js +29 -0
  324. package/node_modules/@sinclair/typebox/build/cjs/type/extract/index.d.ts +3 -0
  325. package/node_modules/@sinclair/typebox/build/cjs/type/extract/index.js +20 -0
  326. package/node_modules/@sinclair/typebox/build/cjs/type/function/function.d.ts +23 -0
  327. package/node_modules/@sinclair/typebox/build/cjs/type/function/function.js +10 -0
  328. package/node_modules/@sinclair/typebox/build/cjs/type/function/index.d.ts +1 -0
  329. package/node_modules/@sinclair/typebox/build/cjs/type/function/index.js +18 -0
  330. package/node_modules/@sinclair/typebox/build/cjs/type/guard/index.d.ts +3 -0
  331. package/node_modules/@sinclair/typebox/build/cjs/type/guard/index.js +40 -0
  332. package/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.d.ts +147 -0
  333. package/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.js +320 -0
  334. package/node_modules/@sinclair/typebox/build/cjs/type/guard/type.d.ts +152 -0
  335. package/node_modules/@sinclair/typebox/build/cjs/type/guard/type.js +597 -0
  336. package/node_modules/@sinclair/typebox/build/cjs/type/guard/value.d.ts +34 -0
  337. package/node_modules/@sinclair/typebox/build/cjs/type/guard/value.js +89 -0
  338. package/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.d.ts +42 -0
  339. package/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.js +8 -0
  340. package/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.d.ts +1 -0
  341. package/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.js +18 -0
  342. package/node_modules/@sinclair/typebox/build/cjs/type/index.d.ts +71 -0
  343. package/node_modules/@sinclair/typebox/build/cjs/type/index.js +88 -0
  344. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.d.ts +4 -0
  345. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.js +21 -0
  346. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.d.ts +13 -0
  347. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.js +26 -0
  348. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.d.ts +12 -0
  349. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.js +24 -0
  350. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.d.ts +14 -0
  351. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.js +36 -0
  352. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.d.ts +52 -0
  353. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.js +98 -0
  354. package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.d.ts +1 -0
  355. package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.js +18 -0
  356. package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.d.ts +6 -0
  357. package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.js +44 -0
  358. package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.d.ts +1 -0
  359. package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.js +18 -0
  360. package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.d.ts +50 -0
  361. package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.js +153 -0
  362. package/node_modules/@sinclair/typebox/build/cjs/type/integer/index.d.ts +1 -0
  363. package/node_modules/@sinclair/typebox/build/cjs/type/integer/index.js +18 -0
  364. package/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.d.ts +16 -0
  365. package/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.js +10 -0
  366. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.d.ts +3 -0
  367. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.js +20 -0
  368. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.d.ts +3 -0
  369. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.js +23 -0
  370. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.d.ts +13 -0
  371. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.js +42 -0
  372. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.d.ts +15 -0
  373. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.js +4 -0
  374. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.d.ts +6 -0
  375. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.js +21 -0
  376. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.d.ts +5 -0
  377. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.js +9 -0
  378. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.d.ts +6 -0
  379. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.js +23 -0
  380. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.d.ts +14 -0
  381. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.js +30 -0
  382. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.d.ts +16 -0
  383. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.js +68 -0
  384. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.d.ts +5 -0
  385. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.js +9 -0
  386. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.d.ts +5 -0
  387. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.js +9 -0
  388. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.d.ts +5 -0
  389. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.js +9 -0
  390. package/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.d.ts +1 -0
  391. package/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.js +18 -0
  392. package/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.d.ts +11 -0
  393. package/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.js +10 -0
  394. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.d.ts +4 -0
  395. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.js +21 -0
  396. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.d.ts +12 -0
  397. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.js +23 -0
  398. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.d.ts +7 -0
  399. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.js +16 -0
  400. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.d.ts +24 -0
  401. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.js +78 -0
  402. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.d.ts +21 -0
  403. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.js +40 -0
  404. package/node_modules/@sinclair/typebox/build/cjs/type/literal/index.d.ts +1 -0
  405. package/node_modules/@sinclair/typebox/build/cjs/type/literal/index.js +18 -0
  406. package/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.d.ts +10 -0
  407. package/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.js +14 -0
  408. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.d.ts +3 -0
  409. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.js +20 -0
  410. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.d.ts +8 -0
  411. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.js +13 -0
  412. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.d.ts +9 -0
  413. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.js +13 -0
  414. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.d.ts +47 -0
  415. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.js +107 -0
  416. package/node_modules/@sinclair/typebox/build/cjs/type/module/compute.d.ts +59 -0
  417. package/node_modules/@sinclair/typebox/build/cjs/type/module/compute.js +205 -0
  418. package/node_modules/@sinclair/typebox/build/cjs/type/module/index.d.ts +1 -0
  419. package/node_modules/@sinclair/typebox/build/cjs/type/module/index.js +18 -0
  420. package/node_modules/@sinclair/typebox/build/cjs/type/module/infer.d.ts +49 -0
  421. package/node_modules/@sinclair/typebox/build/cjs/type/module/infer.js +3 -0
  422. package/node_modules/@sinclair/typebox/build/cjs/type/module/module.d.ts +27 -0
  423. package/node_modules/@sinclair/typebox/build/cjs/type/module/module.js +38 -0
  424. package/node_modules/@sinclair/typebox/build/cjs/type/never/index.d.ts +1 -0
  425. package/node_modules/@sinclair/typebox/build/cjs/type/never/index.js +18 -0
  426. package/node_modules/@sinclair/typebox/build/cjs/type/never/never.d.ts +9 -0
  427. package/node_modules/@sinclair/typebox/build/cjs/type/never/never.js +10 -0
  428. package/node_modules/@sinclair/typebox/build/cjs/type/not/index.d.ts +1 -0
  429. package/node_modules/@sinclair/typebox/build/cjs/type/not/index.js +18 -0
  430. package/node_modules/@sinclair/typebox/build/cjs/type/not/not.d.ts +10 -0
  431. package/node_modules/@sinclair/typebox/build/cjs/type/not/not.js +10 -0
  432. package/node_modules/@sinclair/typebox/build/cjs/type/null/index.d.ts +1 -0
  433. package/node_modules/@sinclair/typebox/build/cjs/type/null/index.js +18 -0
  434. package/node_modules/@sinclair/typebox/build/cjs/type/null/null.d.ts +9 -0
  435. package/node_modules/@sinclair/typebox/build/cjs/type/null/null.js +10 -0
  436. package/node_modules/@sinclair/typebox/build/cjs/type/number/index.d.ts +1 -0
  437. package/node_modules/@sinclair/typebox/build/cjs/type/number/index.js +18 -0
  438. package/node_modules/@sinclair/typebox/build/cjs/type/number/number.d.ts +16 -0
  439. package/node_modules/@sinclair/typebox/build/cjs/type/number/number.js +10 -0
  440. package/node_modules/@sinclair/typebox/build/cjs/type/object/index.d.ts +1 -0
  441. package/node_modules/@sinclair/typebox/build/cjs/type/object/index.js +18 -0
  442. package/node_modules/@sinclair/typebox/build/cjs/type/object/object.d.ts +51 -0
  443. package/node_modules/@sinclair/typebox/build/cjs/type/object/object.js +22 -0
  444. package/node_modules/@sinclair/typebox/build/cjs/type/omit/index.d.ts +3 -0
  445. package/node_modules/@sinclair/typebox/build/cjs/type/omit/index.js +20 -0
  446. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.d.ts +12 -0
  447. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.js +26 -0
  448. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.d.ts +12 -0
  449. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.js +23 -0
  450. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.d.ts +36 -0
  451. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.js +75 -0
  452. package/node_modules/@sinclair/typebox/build/cjs/type/optional/index.d.ts +2 -0
  453. package/node_modules/@sinclair/typebox/build/cjs/type/optional/index.js +19 -0
  454. package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.d.ts +10 -0
  455. package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.js +22 -0
  456. package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.d.ts +20 -0
  457. package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.js +26 -0
  458. package/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.d.ts +1 -0
  459. package/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.js +18 -0
  460. package/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.d.ts +7 -0
  461. package/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.js +44 -0
  462. package/node_modules/@sinclair/typebox/build/cjs/type/partial/index.d.ts +2 -0
  463. package/node_modules/@sinclair/typebox/build/cjs/type/partial/index.js +19 -0
  464. package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.d.ts +12 -0
  465. package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.js +23 -0
  466. package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.d.ts +35 -0
  467. package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.js +111 -0
  468. package/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.d.ts +1 -0
  469. package/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.js +18 -0
  470. package/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.d.ts +8 -0
  471. package/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.js +12 -0
  472. package/node_modules/@sinclair/typebox/build/cjs/type/pick/index.d.ts +3 -0
  473. package/node_modules/@sinclair/typebox/build/cjs/type/pick/index.js +20 -0
  474. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.d.ts +12 -0
  475. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.js +28 -0
  476. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.d.ts +12 -0
  477. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.js +23 -0
  478. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.d.ts +36 -0
  479. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.js +70 -0
  480. package/node_modules/@sinclair/typebox/build/cjs/type/promise/index.d.ts +1 -0
  481. package/node_modules/@sinclair/typebox/build/cjs/type/promise/index.js +18 -0
  482. package/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.d.ts +11 -0
  483. package/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.js +10 -0
  484. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.d.ts +2 -0
  485. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.js +19 -0
  486. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.d.ts +10 -0
  487. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.js +22 -0
  488. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.d.ts +20 -0
  489. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.js +26 -0
  490. package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.d.ts +1 -0
  491. package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.js +18 -0
  492. package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.d.ts +6 -0
  493. package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.js +10 -0
  494. package/node_modules/@sinclair/typebox/build/cjs/type/record/index.d.ts +1 -0
  495. package/node_modules/@sinclair/typebox/build/cjs/type/record/index.js +18 -0
  496. package/node_modules/@sinclair/typebox/build/cjs/type/record/record.d.ts +71 -0
  497. package/node_modules/@sinclair/typebox/build/cjs/type/record/record.js +123 -0
  498. package/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.d.ts +1 -0
  499. package/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.js +18 -0
  500. package/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.d.ts +16 -0
  501. package/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.js +19 -0
  502. package/node_modules/@sinclair/typebox/build/cjs/type/ref/index.d.ts +1 -0
  503. package/node_modules/@sinclair/typebox/build/cjs/type/ref/index.js +18 -0
  504. package/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.d.ts +41 -0
  505. package/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.js +14 -0
  506. package/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.d.ts +1 -0
  507. package/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.js +18 -0
  508. package/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.d.ts +20 -0
  509. package/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.js +12 -0
  510. package/node_modules/@sinclair/typebox/build/cjs/type/registry/format.d.ts +13 -0
  511. package/node_modules/@sinclair/typebox/build/cjs/type/registry/format.js +35 -0
  512. package/node_modules/@sinclair/typebox/build/cjs/type/registry/index.d.ts +2 -0
  513. package/node_modules/@sinclair/typebox/build/cjs/type/registry/index.js +39 -0
  514. package/node_modules/@sinclair/typebox/build/cjs/type/registry/type.d.ts +13 -0
  515. package/node_modules/@sinclair/typebox/build/cjs/type/registry/type.js +35 -0
  516. package/node_modules/@sinclair/typebox/build/cjs/type/required/index.d.ts +2 -0
  517. package/node_modules/@sinclair/typebox/build/cjs/type/required/index.js +19 -0
  518. package/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.d.ts +12 -0
  519. package/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.js +22 -0
  520. package/node_modules/@sinclair/typebox/build/cjs/type/required/required.d.ts +35 -0
  521. package/node_modules/@sinclair/typebox/build/cjs/type/required/required.js +110 -0
  522. package/node_modules/@sinclair/typebox/build/cjs/type/rest/index.d.ts +1 -0
  523. package/node_modules/@sinclair/typebox/build/cjs/type/rest/index.js +18 -0
  524. package/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.d.ts +10 -0
  525. package/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.js +19 -0
  526. package/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.d.ts +1 -0
  527. package/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.js +18 -0
  528. package/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.d.ts +6 -0
  529. package/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.js +44 -0
  530. package/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.d.ts +33 -0
  531. package/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.js +3 -0
  532. package/node_modules/@sinclair/typebox/build/cjs/type/schema/index.d.ts +2 -0
  533. package/node_modules/@sinclair/typebox/build/cjs/type/schema/index.js +19 -0
  534. package/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.d.ts +29 -0
  535. package/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.js +4 -0
  536. package/node_modules/@sinclair/typebox/build/cjs/type/sets/index.d.ts +1 -0
  537. package/node_modules/@sinclair/typebox/build/cjs/type/sets/index.js +18 -0
  538. package/node_modules/@sinclair/typebox/build/cjs/type/sets/set.d.ts +28 -0
  539. package/node_modules/@sinclair/typebox/build/cjs/type/sets/set.js +59 -0
  540. package/node_modules/@sinclair/typebox/build/cjs/type/static/index.d.ts +1 -0
  541. package/node_modules/@sinclair/typebox/build/cjs/type/static/index.js +18 -0
  542. package/node_modules/@sinclair/typebox/build/cjs/type/static/static.d.ts +39 -0
  543. package/node_modules/@sinclair/typebox/build/cjs/type/static/static.js +3 -0
  544. package/node_modules/@sinclair/typebox/build/cjs/type/string/index.d.ts +1 -0
  545. package/node_modules/@sinclair/typebox/build/cjs/type/string/index.js +18 -0
  546. package/node_modules/@sinclair/typebox/build/cjs/type/string/string.d.ts +25 -0
  547. package/node_modules/@sinclair/typebox/build/cjs/type/string/string.js +10 -0
  548. package/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.d.ts +1 -0
  549. package/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.js +18 -0
  550. package/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.d.ts +10 -0
  551. package/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.js +10 -0
  552. package/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.d.ts +1 -0
  553. package/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.js +18 -0
  554. package/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.d.ts +10 -0
  555. package/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.js +14 -0
  556. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.d.ts +19 -0
  557. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.js +56 -0
  558. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.d.ts +21 -0
  559. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.js +60 -0
  560. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.d.ts +7 -0
  561. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.js +24 -0
  562. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.d.ts +20 -0
  563. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.js +174 -0
  564. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.d.ts +5 -0
  565. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.js +39 -0
  566. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.d.ts +20 -0
  567. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.js +59 -0
  568. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.d.ts +30 -0
  569. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.js +17 -0
  570. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.d.ts +9 -0
  571. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.js +13 -0
  572. package/node_modules/@sinclair/typebox/build/cjs/type/transform/index.d.ts +1 -0
  573. package/node_modules/@sinclair/typebox/build/cjs/type/transform/index.js +18 -0
  574. package/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.d.ts +30 -0
  575. package/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.js +47 -0
  576. package/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.d.ts +1 -0
  577. package/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.js +18 -0
  578. package/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.d.ts +16 -0
  579. package/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.js +13 -0
  580. package/node_modules/@sinclair/typebox/build/cjs/type/type/index.d.ts +6 -0
  581. package/node_modules/@sinclair/typebox/build/cjs/type/type/index.js +51 -0
  582. package/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.d.ts +64 -0
  583. package/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.js +104 -0
  584. package/node_modules/@sinclair/typebox/build/cjs/type/type/json.d.ts +208 -0
  585. package/node_modules/@sinclair/typebox/build/cjs/type/type/json.js +226 -0
  586. package/node_modules/@sinclair/typebox/build/cjs/type/type/type.d.ts +59 -0
  587. package/node_modules/@sinclair/typebox/build/cjs/type/type/type.js +129 -0
  588. package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.d.ts +1 -0
  589. package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.js +18 -0
  590. package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.d.ts +13 -0
  591. package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.js +10 -0
  592. package/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.d.ts +1 -0
  593. package/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.js +18 -0
  594. package/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.d.ts +9 -0
  595. package/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.js +10 -0
  596. package/node_modules/@sinclair/typebox/build/cjs/type/union/index.d.ts +3 -0
  597. package/node_modules/@sinclair/typebox/build/cjs/type/union/index.js +20 -0
  598. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.d.ts +3 -0
  599. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.js +9 -0
  600. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.d.ts +13 -0
  601. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.js +40 -0
  602. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.d.ts +12 -0
  603. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.js +4 -0
  604. package/node_modules/@sinclair/typebox/build/cjs/type/union/union.d.ts +6 -0
  605. package/node_modules/@sinclair/typebox/build/cjs/type/union/union.js +14 -0
  606. package/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.d.ts +1 -0
  607. package/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.js +18 -0
  608. package/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.d.ts +8 -0
  609. package/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.js +10 -0
  610. package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.d.ts +1 -0
  611. package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.js +18 -0
  612. package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.d.ts +11 -0
  613. package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.js +10 -0
  614. package/node_modules/@sinclair/typebox/build/cjs/type/void/index.d.ts +1 -0
  615. package/node_modules/@sinclair/typebox/build/cjs/type/void/index.js +18 -0
  616. package/node_modules/@sinclair/typebox/build/cjs/type/void/void.d.ts +9 -0
  617. package/node_modules/@sinclair/typebox/build/cjs/type/void/void.js +10 -0
  618. package/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.d.ts +15 -0
  619. package/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.js +55 -0
  620. package/node_modules/@sinclair/typebox/build/cjs/value/assert/index.d.ts +1 -0
  621. package/node_modules/@sinclair/typebox/build/cjs/value/assert/index.js +18 -0
  622. package/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.d.ts +11 -0
  623. package/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.js +241 -0
  624. package/node_modules/@sinclair/typebox/build/cjs/value/cast/index.d.ts +1 -0
  625. package/node_modules/@sinclair/typebox/build/cjs/value/cast/index.js +18 -0
  626. package/node_modules/@sinclair/typebox/build/cjs/value/check/check.d.ts +11 -0
  627. package/node_modules/@sinclair/typebox/build/cjs/value/check/check.js +476 -0
  628. package/node_modules/@sinclair/typebox/build/cjs/value/check/index.d.ts +1 -0
  629. package/node_modules/@sinclair/typebox/build/cjs/value/check/index.js +18 -0
  630. package/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.d.ts +5 -0
  631. package/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.js +149 -0
  632. package/node_modules/@sinclair/typebox/build/cjs/value/clean/index.d.ts +1 -0
  633. package/node_modules/@sinclair/typebox/build/cjs/value/clean/index.js +18 -0
  634. package/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.d.ts +2 -0
  635. package/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.js +60 -0
  636. package/node_modules/@sinclair/typebox/build/cjs/value/clone/index.d.ts +1 -0
  637. package/node_modules/@sinclair/typebox/build/cjs/value/clone/index.js +18 -0
  638. package/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.d.ts +5 -0
  639. package/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.js +264 -0
  640. package/node_modules/@sinclair/typebox/build/cjs/value/convert/index.d.ts +1 -0
  641. package/node_modules/@sinclair/typebox/build/cjs/value/convert/index.js +18 -0
  642. package/node_modules/@sinclair/typebox/build/cjs/value/create/create.d.ts +11 -0
  643. package/node_modules/@sinclair/typebox/build/cjs/value/create/create.js +474 -0
  644. package/node_modules/@sinclair/typebox/build/cjs/value/create/index.d.ts +1 -0
  645. package/node_modules/@sinclair/typebox/build/cjs/value/create/index.js +18 -0
  646. package/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.d.ts +6 -0
  647. package/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.js +14 -0
  648. package/node_modules/@sinclair/typebox/build/cjs/value/decode/index.d.ts +1 -0
  649. package/node_modules/@sinclair/typebox/build/cjs/value/decode/index.js +18 -0
  650. package/node_modules/@sinclair/typebox/build/cjs/value/default/default.d.ts +5 -0
  651. package/node_modules/@sinclair/typebox/build/cjs/value/default/default.js +176 -0
  652. package/node_modules/@sinclair/typebox/build/cjs/value/default/index.d.ts +1 -0
  653. package/node_modules/@sinclair/typebox/build/cjs/value/default/index.js +18 -0
  654. package/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.d.ts +32 -0
  655. package/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.js +178 -0
  656. package/node_modules/@sinclair/typebox/build/cjs/value/delta/index.d.ts +1 -0
  657. package/node_modules/@sinclair/typebox/build/cjs/value/delta/index.js +18 -0
  658. package/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.d.ts +12 -0
  659. package/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.js +36 -0
  660. package/node_modules/@sinclair/typebox/build/cjs/value/deref/index.d.ts +1 -0
  661. package/node_modules/@sinclair/typebox/build/cjs/value/deref/index.js +18 -0
  662. package/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.d.ts +6 -0
  663. package/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.js +15 -0
  664. package/node_modules/@sinclair/typebox/build/cjs/value/encode/index.d.ts +1 -0
  665. package/node_modules/@sinclair/typebox/build/cjs/value/encode/index.js +18 -0
  666. package/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.d.ts +2 -0
  667. package/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.js +50 -0
  668. package/node_modules/@sinclair/typebox/build/cjs/value/equal/index.d.ts +1 -0
  669. package/node_modules/@sinclair/typebox/build/cjs/value/equal/index.js +18 -0
  670. package/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.d.ts +74 -0
  671. package/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.js +195 -0
  672. package/node_modules/@sinclair/typebox/build/cjs/value/guard/index.d.ts +1 -0
  673. package/node_modules/@sinclair/typebox/build/cjs/value/guard/index.js +18 -0
  674. package/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.d.ts +7 -0
  675. package/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.js +152 -0
  676. package/node_modules/@sinclair/typebox/build/cjs/value/hash/index.d.ts +1 -0
  677. package/node_modules/@sinclair/typebox/build/cjs/value/hash/index.js +18 -0
  678. package/node_modules/@sinclair/typebox/build/cjs/value/index.d.ts +20 -0
  679. package/node_modules/@sinclair/typebox/build/cjs/value/index.js +53 -0
  680. package/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.d.ts +1 -0
  681. package/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.js +18 -0
  682. package/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.d.ts +9 -0
  683. package/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.js +104 -0
  684. package/node_modules/@sinclair/typebox/build/cjs/value/parse/index.d.ts +1 -0
  685. package/node_modules/@sinclair/typebox/build/cjs/value/parse/index.js +18 -0
  686. package/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.d.ts +22 -0
  687. package/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.js +87 -0
  688. package/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.d.ts +1 -0
  689. package/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.js +38 -0
  690. package/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.d.ts +22 -0
  691. package/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.js +126 -0
  692. package/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.d.ts +22 -0
  693. package/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.js +214 -0
  694. package/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.d.ts +23 -0
  695. package/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.js +225 -0
  696. package/node_modules/@sinclair/typebox/build/cjs/value/transform/has.d.ts +3 -0
  697. package/node_modules/@sinclair/typebox/build/cjs/value/transform/has.js +133 -0
  698. package/node_modules/@sinclair/typebox/build/cjs/value/transform/index.d.ts +3 -0
  699. package/node_modules/@sinclair/typebox/build/cjs/value/transform/index.js +20 -0
  700. package/node_modules/@sinclair/typebox/build/cjs/value/value/index.d.ts +1 -0
  701. package/node_modules/@sinclair/typebox/build/cjs/value/value/index.js +38 -0
  702. package/node_modules/@sinclair/typebox/build/cjs/value/value/value.d.ts +16 -0
  703. package/node_modules/@sinclair/typebox/build/cjs/value/value/value.js +39 -0
  704. package/node_modules/@sinclair/typebox/build/esm/compiler/compiler.d.mts +55 -0
  705. package/node_modules/@sinclair/typebox/build/esm/compiler/compiler.mjs +663 -0
  706. package/node_modules/@sinclair/typebox/build/esm/compiler/index.d.mts +2 -0
  707. package/node_modules/@sinclair/typebox/build/esm/compiler/index.mjs +2 -0
  708. package/node_modules/@sinclair/typebox/build/esm/errors/errors.d.mts +91 -0
  709. package/node_modules/@sinclair/typebox/build/esm/errors/errors.mjs +592 -0
  710. package/node_modules/@sinclair/typebox/build/esm/errors/function.d.mts +21 -0
  711. package/node_modules/@sinclair/typebox/build/esm/errors/function.mjs +147 -0
  712. package/node_modules/@sinclair/typebox/build/esm/errors/index.d.mts +2 -0
  713. package/node_modules/@sinclair/typebox/build/esm/errors/index.mjs +2 -0
  714. package/node_modules/@sinclair/typebox/build/esm/index.d.mts +71 -0
  715. package/node_modules/@sinclair/typebox/build/esm/index.mjs +80 -0
  716. package/node_modules/@sinclair/typebox/build/esm/parser/index.d.mts +2 -0
  717. package/node_modules/@sinclair/typebox/build/esm/parser/index.mjs +2 -0
  718. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.d.mts +23 -0
  719. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.mjs +72 -0
  720. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.d.mts +5 -0
  721. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.mjs +5 -0
  722. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.d.mts +9 -0
  723. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.mjs +17 -0
  724. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.d.mts +9 -0
  725. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.mjs +123 -0
  726. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.d.mts +8 -0
  727. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.mjs +223 -0
  728. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.d.mts +98 -0
  729. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.mjs +55 -0
  730. package/node_modules/@sinclair/typebox/build/esm/parser/static/index.d.mts +3 -0
  731. package/node_modules/@sinclair/typebox/build/esm/parser/static/index.mjs +3 -0
  732. package/node_modules/@sinclair/typebox/build/esm/parser/static/parse.d.mts +20 -0
  733. package/node_modules/@sinclair/typebox/build/esm/parser/static/parse.mjs +1 -0
  734. package/node_modules/@sinclair/typebox/build/esm/parser/static/token.d.mts +108 -0
  735. package/node_modules/@sinclair/typebox/build/esm/parser/static/token.mjs +1 -0
  736. package/node_modules/@sinclair/typebox/build/esm/parser/static/types.d.mts +69 -0
  737. package/node_modules/@sinclair/typebox/build/esm/parser/static/types.mjs +1 -0
  738. package/node_modules/@sinclair/typebox/build/esm/syntax/index.d.mts +1 -0
  739. package/node_modules/@sinclair/typebox/build/esm/syntax/index.mjs +1 -0
  740. package/node_modules/@sinclair/typebox/build/esm/syntax/mapping.d.mts +167 -0
  741. package/node_modules/@sinclair/typebox/build/esm/syntax/mapping.mjs +386 -0
  742. package/node_modules/@sinclair/typebox/build/esm/syntax/parser.d.mts +162 -0
  743. package/node_modules/@sinclair/typebox/build/esm/syntax/parser.mjs +78 -0
  744. package/node_modules/@sinclair/typebox/build/esm/syntax/syntax.d.mts +12 -0
  745. package/node_modules/@sinclair/typebox/build/esm/syntax/syntax.mjs +16 -0
  746. package/node_modules/@sinclair/typebox/build/esm/system/index.d.mts +2 -0
  747. package/node_modules/@sinclair/typebox/build/esm/system/index.mjs +2 -0
  748. package/node_modules/@sinclair/typebox/build/esm/system/policy.d.mts +29 -0
  749. package/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +54 -0
  750. package/node_modules/@sinclair/typebox/build/esm/system/system.d.mts +16 -0
  751. package/node_modules/@sinclair/typebox/build/esm/system/system.mjs +37 -0
  752. package/node_modules/@sinclair/typebox/build/esm/type/any/any.d.mts +8 -0
  753. package/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +6 -0
  754. package/node_modules/@sinclair/typebox/build/esm/type/any/index.d.mts +1 -0
  755. package/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +1 -0
  756. package/node_modules/@sinclair/typebox/build/esm/type/argument/argument.d.mts +9 -0
  757. package/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs +6 -0
  758. package/node_modules/@sinclair/typebox/build/esm/type/argument/index.d.mts +1 -0
  759. package/node_modules/@sinclair/typebox/build/esm/type/argument/index.mjs +1 -0
  760. package/node_modules/@sinclair/typebox/build/esm/type/array/array.d.mts +28 -0
  761. package/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +6 -0
  762. package/node_modules/@sinclair/typebox/build/esm/type/array/index.d.mts +1 -0
  763. package/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +1 -0
  764. package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.d.mts +11 -0
  765. package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +6 -0
  766. package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.d.mts +1 -0
  767. package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +1 -0
  768. package/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.d.mts +14 -0
  769. package/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +37 -0
  770. package/node_modules/@sinclair/typebox/build/esm/type/awaited/index.d.mts +1 -0
  771. package/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +1 -0
  772. package/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.d.mts +16 -0
  773. package/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +6 -0
  774. package/node_modules/@sinclair/typebox/build/esm/type/bigint/index.d.mts +1 -0
  775. package/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +1 -0
  776. package/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.d.mts +9 -0
  777. package/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +6 -0
  778. package/node_modules/@sinclair/typebox/build/esm/type/boolean/index.d.mts +1 -0
  779. package/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +1 -0
  780. package/node_modules/@sinclair/typebox/build/esm/type/clone/index.d.mts +2 -0
  781. package/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +2 -0
  782. package/node_modules/@sinclair/typebox/build/esm/type/clone/type.d.mts +5 -0
  783. package/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +9 -0
  784. package/node_modules/@sinclair/typebox/build/esm/type/clone/value.d.mts +2 -0
  785. package/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +36 -0
  786. package/node_modules/@sinclair/typebox/build/esm/type/composite/composite.d.mts +18 -0
  787. package/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +42 -0
  788. package/node_modules/@sinclair/typebox/build/esm/type/composite/index.d.mts +1 -0
  789. package/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +1 -0
  790. package/node_modules/@sinclair/typebox/build/esm/type/computed/computed.d.mts +9 -0
  791. package/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +6 -0
  792. package/node_modules/@sinclair/typebox/build/esm/type/computed/index.d.mts +1 -0
  793. package/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +1 -0
  794. package/node_modules/@sinclair/typebox/build/esm/type/const/const.d.mts +27 -0
  795. package/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +54 -0
  796. package/node_modules/@sinclair/typebox/build/esm/type/const/index.d.mts +1 -0
  797. package/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +1 -0
  798. package/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.d.mts +23 -0
  799. package/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +6 -0
  800. package/node_modules/@sinclair/typebox/build/esm/type/constructor/index.d.mts +1 -0
  801. package/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +1 -0
  802. package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.d.mts +7 -0
  803. package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +7 -0
  804. package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.d.mts +1 -0
  805. package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +1 -0
  806. package/node_modules/@sinclair/typebox/build/esm/type/create/immutable.d.mts +2 -0
  807. package/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +33 -0
  808. package/node_modules/@sinclair/typebox/build/esm/type/create/index.d.mts +1 -0
  809. package/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +1 -0
  810. package/node_modules/@sinclair/typebox/build/esm/type/create/type.d.mts +3 -0
  811. package/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +15 -0
  812. package/node_modules/@sinclair/typebox/build/esm/type/date/date.d.mts +21 -0
  813. package/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +6 -0
  814. package/node_modules/@sinclair/typebox/build/esm/type/date/index.d.mts +1 -0
  815. package/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +1 -0
  816. package/node_modules/@sinclair/typebox/build/esm/type/discard/discard.d.mts +2 -0
  817. package/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +8 -0
  818. package/node_modules/@sinclair/typebox/build/esm/type/discard/index.d.mts +1 -0
  819. package/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +1 -0
  820. package/node_modules/@sinclair/typebox/build/esm/type/enum/enum.d.mts +14 -0
  821. package/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +18 -0
  822. package/node_modules/@sinclair/typebox/build/esm/type/enum/index.d.mts +1 -0
  823. package/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +1 -0
  824. package/node_modules/@sinclair/typebox/build/esm/type/error/error.d.mts +4 -0
  825. package/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +6 -0
  826. package/node_modules/@sinclair/typebox/build/esm/type/error/index.d.mts +1 -0
  827. package/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +1 -0
  828. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.d.mts +11 -0
  829. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +18 -0
  830. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.d.mts +5 -0
  831. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +5 -0
  832. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.d.mts +21 -0
  833. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +25 -0
  834. package/node_modules/@sinclair/typebox/build/esm/type/exclude/index.d.mts +3 -0
  835. package/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +3 -0
  836. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.d.mts +10 -0
  837. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +635 -0
  838. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.d.mts +14 -0
  839. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +25 -0
  840. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.d.mts +11 -0
  841. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +19 -0
  842. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.d.mts +3 -0
  843. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +20 -0
  844. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends.d.mts +16 -0
  845. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +23 -0
  846. package/node_modules/@sinclair/typebox/build/esm/type/extends/index.d.mts +5 -0
  847. package/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +5 -0
  848. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.d.mts +11 -0
  849. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +18 -0
  850. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.d.mts +5 -0
  851. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +5 -0
  852. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract.d.mts +21 -0
  853. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +25 -0
  854. package/node_modules/@sinclair/typebox/build/esm/type/extract/index.d.mts +3 -0
  855. package/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +3 -0
  856. package/node_modules/@sinclair/typebox/build/esm/type/function/function.d.mts +23 -0
  857. package/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +6 -0
  858. package/node_modules/@sinclair/typebox/build/esm/type/function/index.d.mts +1 -0
  859. package/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +1 -0
  860. package/node_modules/@sinclair/typebox/build/esm/type/guard/index.d.mts +3 -0
  861. package/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +3 -0
  862. package/node_modules/@sinclair/typebox/build/esm/type/guard/kind.d.mts +147 -0
  863. package/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +235 -0
  864. package/node_modules/@sinclair/typebox/build/esm/type/guard/type.d.mts +152 -0
  865. package/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +509 -0
  866. package/node_modules/@sinclair/typebox/build/esm/type/guard/value.d.mts +34 -0
  867. package/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +70 -0
  868. package/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.d.mts +42 -0
  869. package/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +4 -0
  870. package/node_modules/@sinclair/typebox/build/esm/type/helpers/index.d.mts +1 -0
  871. package/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +1 -0
  872. package/node_modules/@sinclair/typebox/build/esm/type/index.d.mts +71 -0
  873. package/node_modules/@sinclair/typebox/build/esm/type/index.mjs +71 -0
  874. package/node_modules/@sinclair/typebox/build/esm/type/indexed/index.d.mts +4 -0
  875. package/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +4 -0
  876. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.d.mts +13 -0
  877. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +22 -0
  878. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.d.mts +12 -0
  879. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +20 -0
  880. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.d.mts +14 -0
  881. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +32 -0
  882. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.d.mts +52 -0
  883. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +91 -0
  884. package/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.d.mts +1 -0
  885. package/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +1 -0
  886. package/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.d.mts +6 -0
  887. package/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +7 -0
  888. package/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.d.mts +1 -0
  889. package/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.mjs +1 -0
  890. package/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.d.mts +50 -0
  891. package/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs +115 -0
  892. package/node_modules/@sinclair/typebox/build/esm/type/integer/index.d.mts +1 -0
  893. package/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +1 -0
  894. package/node_modules/@sinclair/typebox/build/esm/type/integer/integer.d.mts +16 -0
  895. package/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +6 -0
  896. package/node_modules/@sinclair/typebox/build/esm/type/intersect/index.d.mts +3 -0
  897. package/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +3 -0
  898. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.d.mts +3 -0
  899. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +19 -0
  900. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.d.mts +13 -0
  901. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +38 -0
  902. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.d.mts +15 -0
  903. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +1 -0
  904. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.d.mts +6 -0
  905. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +17 -0
  906. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.d.mts +5 -0
  907. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +5 -0
  908. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.d.mts +6 -0
  909. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +6 -0
  910. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.d.mts +14 -0
  911. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +26 -0
  912. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.d.mts +16 -0
  913. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +64 -0
  914. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.d.mts +5 -0
  915. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +5 -0
  916. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.d.mts +5 -0
  917. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +5 -0
  918. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.d.mts +5 -0
  919. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +5 -0
  920. package/node_modules/@sinclair/typebox/build/esm/type/iterator/index.d.mts +1 -0
  921. package/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +1 -0
  922. package/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.d.mts +11 -0
  923. package/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +6 -0
  924. package/node_modules/@sinclair/typebox/build/esm/type/keyof/index.d.mts +4 -0
  925. package/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +4 -0
  926. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.d.mts +12 -0
  927. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +19 -0
  928. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.d.mts +7 -0
  929. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +12 -0
  930. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.d.mts +24 -0
  931. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +73 -0
  932. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.d.mts +21 -0
  933. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +35 -0
  934. package/node_modules/@sinclair/typebox/build/esm/type/literal/index.d.mts +1 -0
  935. package/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +1 -0
  936. package/node_modules/@sinclair/typebox/build/esm/type/literal/literal.d.mts +10 -0
  937. package/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +10 -0
  938. package/node_modules/@sinclair/typebox/build/esm/type/mapped/index.d.mts +3 -0
  939. package/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +3 -0
  940. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.d.mts +8 -0
  941. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +9 -0
  942. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.d.mts +9 -0
  943. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +9 -0
  944. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.d.mts +47 -0
  945. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +102 -0
  946. package/node_modules/@sinclair/typebox/build/esm/type/module/compute.d.mts +59 -0
  947. package/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +166 -0
  948. package/node_modules/@sinclair/typebox/build/esm/type/module/index.d.mts +1 -0
  949. package/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +1 -0
  950. package/node_modules/@sinclair/typebox/build/esm/type/module/infer.d.mts +49 -0
  951. package/node_modules/@sinclair/typebox/build/esm/type/module/infer.mjs +1 -0
  952. package/node_modules/@sinclair/typebox/build/esm/type/module/module.d.mts +27 -0
  953. package/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +32 -0
  954. package/node_modules/@sinclair/typebox/build/esm/type/never/index.d.mts +1 -0
  955. package/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +1 -0
  956. package/node_modules/@sinclair/typebox/build/esm/type/never/never.d.mts +9 -0
  957. package/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +6 -0
  958. package/node_modules/@sinclair/typebox/build/esm/type/not/index.d.mts +1 -0
  959. package/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +1 -0
  960. package/node_modules/@sinclair/typebox/build/esm/type/not/not.d.mts +10 -0
  961. package/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +6 -0
  962. package/node_modules/@sinclair/typebox/build/esm/type/null/index.d.mts +1 -0
  963. package/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +1 -0
  964. package/node_modules/@sinclair/typebox/build/esm/type/null/null.d.mts +9 -0
  965. package/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +6 -0
  966. package/node_modules/@sinclair/typebox/build/esm/type/number/index.d.mts +1 -0
  967. package/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +1 -0
  968. package/node_modules/@sinclair/typebox/build/esm/type/number/number.d.mts +16 -0
  969. package/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +6 -0
  970. package/node_modules/@sinclair/typebox/build/esm/type/object/index.d.mts +1 -0
  971. package/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +1 -0
  972. package/node_modules/@sinclair/typebox/build/esm/type/object/object.d.mts +51 -0
  973. package/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +18 -0
  974. package/node_modules/@sinclair/typebox/build/esm/type/omit/index.d.mts +3 -0
  975. package/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +3 -0
  976. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.d.mts +12 -0
  977. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +22 -0
  978. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.d.mts +12 -0
  979. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +19 -0
  980. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit.d.mts +36 -0
  981. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +71 -0
  982. package/node_modules/@sinclair/typebox/build/esm/type/optional/index.d.mts +2 -0
  983. package/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +2 -0
  984. package/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.d.mts +10 -0
  985. package/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +18 -0
  986. package/node_modules/@sinclair/typebox/build/esm/type/optional/optional.d.mts +20 -0
  987. package/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +22 -0
  988. package/node_modules/@sinclair/typebox/build/esm/type/parameters/index.d.mts +1 -0
  989. package/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +1 -0
  990. package/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.d.mts +7 -0
  991. package/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +7 -0
  992. package/node_modules/@sinclair/typebox/build/esm/type/partial/index.d.mts +2 -0
  993. package/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +2 -0
  994. package/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.d.mts +12 -0
  995. package/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +19 -0
  996. package/node_modules/@sinclair/typebox/build/esm/type/partial/partial.d.mts +35 -0
  997. package/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +74 -0
  998. package/node_modules/@sinclair/typebox/build/esm/type/patterns/index.d.mts +1 -0
  999. package/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +1 -0
  1000. package/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.d.mts +8 -0
  1001. package/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +8 -0
  1002. package/node_modules/@sinclair/typebox/build/esm/type/pick/index.d.mts +3 -0
  1003. package/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +3 -0
  1004. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.d.mts +12 -0
  1005. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +24 -0
  1006. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.d.mts +12 -0
  1007. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +19 -0
  1008. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick.d.mts +36 -0
  1009. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +66 -0
  1010. package/node_modules/@sinclair/typebox/build/esm/type/promise/index.d.mts +1 -0
  1011. package/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +1 -0
  1012. package/node_modules/@sinclair/typebox/build/esm/type/promise/promise.d.mts +11 -0
  1013. package/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +6 -0
  1014. package/node_modules/@sinclair/typebox/build/esm/type/readonly/index.d.mts +2 -0
  1015. package/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +2 -0
  1016. package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.d.mts +10 -0
  1017. package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +18 -0
  1018. package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.d.mts +20 -0
  1019. package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +22 -0
  1020. package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.d.mts +1 -0
  1021. package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +1 -0
  1022. package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.d.mts +6 -0
  1023. package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +6 -0
  1024. package/node_modules/@sinclair/typebox/build/esm/type/record/index.d.mts +1 -0
  1025. package/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +1 -0
  1026. package/node_modules/@sinclair/typebox/build/esm/type/record/record.d.mts +71 -0
  1027. package/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +116 -0
  1028. package/node_modules/@sinclair/typebox/build/esm/type/recursive/index.d.mts +1 -0
  1029. package/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +1 -0
  1030. package/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.d.mts +16 -0
  1031. package/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +15 -0
  1032. package/node_modules/@sinclair/typebox/build/esm/type/ref/index.d.mts +1 -0
  1033. package/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +1 -0
  1034. package/node_modules/@sinclair/typebox/build/esm/type/ref/ref.d.mts +41 -0
  1035. package/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +10 -0
  1036. package/node_modules/@sinclair/typebox/build/esm/type/regexp/index.d.mts +1 -0
  1037. package/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +1 -0
  1038. package/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.d.mts +20 -0
  1039. package/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +8 -0
  1040. package/node_modules/@sinclair/typebox/build/esm/type/registry/format.d.mts +13 -0
  1041. package/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +26 -0
  1042. package/node_modules/@sinclair/typebox/build/esm/type/registry/index.d.mts +2 -0
  1043. package/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +2 -0
  1044. package/node_modules/@sinclair/typebox/build/esm/type/registry/type.d.mts +13 -0
  1045. package/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +26 -0
  1046. package/node_modules/@sinclair/typebox/build/esm/type/required/index.d.mts +2 -0
  1047. package/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +2 -0
  1048. package/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.d.mts +12 -0
  1049. package/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +18 -0
  1050. package/node_modules/@sinclair/typebox/build/esm/type/required/required.d.mts +35 -0
  1051. package/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +73 -0
  1052. package/node_modules/@sinclair/typebox/build/esm/type/rest/index.d.mts +1 -0
  1053. package/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +1 -0
  1054. package/node_modules/@sinclair/typebox/build/esm/type/rest/rest.d.mts +10 -0
  1055. package/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +15 -0
  1056. package/node_modules/@sinclair/typebox/build/esm/type/return-type/index.d.mts +1 -0
  1057. package/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +1 -0
  1058. package/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.d.mts +6 -0
  1059. package/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +7 -0
  1060. package/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.d.mts +33 -0
  1061. package/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +1 -0
  1062. package/node_modules/@sinclair/typebox/build/esm/type/schema/index.d.mts +2 -0
  1063. package/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +2 -0
  1064. package/node_modules/@sinclair/typebox/build/esm/type/schema/schema.d.mts +29 -0
  1065. package/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +1 -0
  1066. package/node_modules/@sinclair/typebox/build/esm/type/sets/index.d.mts +1 -0
  1067. package/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +1 -0
  1068. package/node_modules/@sinclair/typebox/build/esm/type/sets/set.d.mts +28 -0
  1069. package/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +48 -0
  1070. package/node_modules/@sinclair/typebox/build/esm/type/static/index.d.mts +1 -0
  1071. package/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +1 -0
  1072. package/node_modules/@sinclair/typebox/build/esm/type/static/static.d.mts +39 -0
  1073. package/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +1 -0
  1074. package/node_modules/@sinclair/typebox/build/esm/type/string/index.d.mts +1 -0
  1075. package/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +1 -0
  1076. package/node_modules/@sinclair/typebox/build/esm/type/string/string.d.mts +25 -0
  1077. package/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +6 -0
  1078. package/node_modules/@sinclair/typebox/build/esm/type/symbol/index.d.mts +1 -0
  1079. package/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +1 -0
  1080. package/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.d.mts +10 -0
  1081. package/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +6 -0
  1082. package/node_modules/@sinclair/typebox/build/esm/type/symbols/index.d.mts +1 -0
  1083. package/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +1 -0
  1084. package/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.d.mts +10 -0
  1085. package/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +10 -0
  1086. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.d.mts +19 -0
  1087. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +49 -0
  1088. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.d.mts +21 -0
  1089. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +53 -0
  1090. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.d.mts +7 -0
  1091. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +7 -0
  1092. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.d.mts +20 -0
  1093. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +167 -0
  1094. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.d.mts +5 -0
  1095. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +33 -0
  1096. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.d.mts +20 -0
  1097. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +55 -0
  1098. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.d.mts +30 -0
  1099. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +13 -0
  1100. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.d.mts +9 -0
  1101. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +9 -0
  1102. package/node_modules/@sinclair/typebox/build/esm/type/transform/index.d.mts +1 -0
  1103. package/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +1 -0
  1104. package/node_modules/@sinclair/typebox/build/esm/type/transform/transform.d.mts +30 -0
  1105. package/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +40 -0
  1106. package/node_modules/@sinclair/typebox/build/esm/type/tuple/index.d.mts +1 -0
  1107. package/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +1 -0
  1108. package/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.d.mts +16 -0
  1109. package/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +9 -0
  1110. package/node_modules/@sinclair/typebox/build/esm/type/type/index.d.mts +6 -0
  1111. package/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +13 -0
  1112. package/node_modules/@sinclair/typebox/build/esm/type/type/javascript.d.mts +64 -0
  1113. package/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +99 -0
  1114. package/node_modules/@sinclair/typebox/build/esm/type/type/json.d.mts +208 -0
  1115. package/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +221 -0
  1116. package/node_modules/@sinclair/typebox/build/esm/type/type/type.d.mts +59 -0
  1117. package/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +62 -0
  1118. package/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.d.mts +1 -0
  1119. package/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +1 -0
  1120. package/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.d.mts +13 -0
  1121. package/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +6 -0
  1122. package/node_modules/@sinclair/typebox/build/esm/type/undefined/index.d.mts +1 -0
  1123. package/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +1 -0
  1124. package/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.d.mts +9 -0
  1125. package/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +6 -0
  1126. package/node_modules/@sinclair/typebox/build/esm/type/union/index.d.mts +3 -0
  1127. package/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +3 -0
  1128. package/node_modules/@sinclair/typebox/build/esm/type/union/union-create.d.mts +3 -0
  1129. package/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +5 -0
  1130. package/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.d.mts +13 -0
  1131. package/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +36 -0
  1132. package/node_modules/@sinclair/typebox/build/esm/type/union/union-type.d.mts +12 -0
  1133. package/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +1 -0
  1134. package/node_modules/@sinclair/typebox/build/esm/type/union/union.d.mts +6 -0
  1135. package/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +10 -0
  1136. package/node_modules/@sinclair/typebox/build/esm/type/unknown/index.d.mts +1 -0
  1137. package/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +1 -0
  1138. package/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.d.mts +8 -0
  1139. package/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +6 -0
  1140. package/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.d.mts +1 -0
  1141. package/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +1 -0
  1142. package/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.d.mts +11 -0
  1143. package/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +6 -0
  1144. package/node_modules/@sinclair/typebox/build/esm/type/void/index.d.mts +1 -0
  1145. package/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +1 -0
  1146. package/node_modules/@sinclair/typebox/build/esm/type/void/void.d.mts +9 -0
  1147. package/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +6 -0
  1148. package/node_modules/@sinclair/typebox/build/esm/value/assert/assert.d.mts +15 -0
  1149. package/node_modules/@sinclair/typebox/build/esm/value/assert/assert.mjs +49 -0
  1150. package/node_modules/@sinclair/typebox/build/esm/value/assert/index.d.mts +1 -0
  1151. package/node_modules/@sinclair/typebox/build/esm/value/assert/index.mjs +1 -0
  1152. package/node_modules/@sinclair/typebox/build/esm/value/cast/cast.d.mts +11 -0
  1153. package/node_modules/@sinclair/typebox/build/esm/value/cast/cast.mjs +235 -0
  1154. package/node_modules/@sinclair/typebox/build/esm/value/cast/index.d.mts +1 -0
  1155. package/node_modules/@sinclair/typebox/build/esm/value/cast/index.mjs +1 -0
  1156. package/node_modules/@sinclair/typebox/build/esm/value/check/check.d.mts +11 -0
  1157. package/node_modules/@sinclair/typebox/build/esm/value/check/check.mjs +470 -0
  1158. package/node_modules/@sinclair/typebox/build/esm/value/check/index.d.mts +1 -0
  1159. package/node_modules/@sinclair/typebox/build/esm/value/check/index.mjs +1 -0
  1160. package/node_modules/@sinclair/typebox/build/esm/value/clean/clean.d.mts +5 -0
  1161. package/node_modules/@sinclair/typebox/build/esm/value/clean/clean.mjs +145 -0
  1162. package/node_modules/@sinclair/typebox/build/esm/value/clean/index.d.mts +1 -0
  1163. package/node_modules/@sinclair/typebox/build/esm/value/clean/index.mjs +1 -0
  1164. package/node_modules/@sinclair/typebox/build/esm/value/clone/clone.d.mts +2 -0
  1165. package/node_modules/@sinclair/typebox/build/esm/value/clone/clone.mjs +56 -0
  1166. package/node_modules/@sinclair/typebox/build/esm/value/clone/index.d.mts +1 -0
  1167. package/node_modules/@sinclair/typebox/build/esm/value/clone/index.mjs +1 -0
  1168. package/node_modules/@sinclair/typebox/build/esm/value/convert/convert.d.mts +5 -0
  1169. package/node_modules/@sinclair/typebox/build/esm/value/convert/convert.mjs +260 -0
  1170. package/node_modules/@sinclair/typebox/build/esm/value/convert/index.d.mts +1 -0
  1171. package/node_modules/@sinclair/typebox/build/esm/value/convert/index.mjs +1 -0
  1172. package/node_modules/@sinclair/typebox/build/esm/value/create/create.d.mts +11 -0
  1173. package/node_modules/@sinclair/typebox/build/esm/value/create/create.mjs +468 -0
  1174. package/node_modules/@sinclair/typebox/build/esm/value/create/index.d.mts +1 -0
  1175. package/node_modules/@sinclair/typebox/build/esm/value/create/index.mjs +1 -0
  1176. package/node_modules/@sinclair/typebox/build/esm/value/decode/decode.d.mts +6 -0
  1177. package/node_modules/@sinclair/typebox/build/esm/value/decode/decode.mjs +10 -0
  1178. package/node_modules/@sinclair/typebox/build/esm/value/decode/index.d.mts +1 -0
  1179. package/node_modules/@sinclair/typebox/build/esm/value/decode/index.mjs +1 -0
  1180. package/node_modules/@sinclair/typebox/build/esm/value/default/default.d.mts +5 -0
  1181. package/node_modules/@sinclair/typebox/build/esm/value/default/default.mjs +172 -0
  1182. package/node_modules/@sinclair/typebox/build/esm/value/default/index.d.mts +1 -0
  1183. package/node_modules/@sinclair/typebox/build/esm/value/default/index.mjs +1 -0
  1184. package/node_modules/@sinclair/typebox/build/esm/value/delta/delta.d.mts +32 -0
  1185. package/node_modules/@sinclair/typebox/build/esm/value/delta/delta.mjs +171 -0
  1186. package/node_modules/@sinclair/typebox/build/esm/value/delta/index.d.mts +1 -0
  1187. package/node_modules/@sinclair/typebox/build/esm/value/delta/index.mjs +1 -0
  1188. package/node_modules/@sinclair/typebox/build/esm/value/deref/deref.d.mts +12 -0
  1189. package/node_modules/@sinclair/typebox/build/esm/value/deref/deref.mjs +29 -0
  1190. package/node_modules/@sinclair/typebox/build/esm/value/deref/index.d.mts +1 -0
  1191. package/node_modules/@sinclair/typebox/build/esm/value/deref/index.mjs +1 -0
  1192. package/node_modules/@sinclair/typebox/build/esm/value/encode/encode.d.mts +6 -0
  1193. package/node_modules/@sinclair/typebox/build/esm/value/encode/encode.mjs +11 -0
  1194. package/node_modules/@sinclair/typebox/build/esm/value/encode/index.d.mts +1 -0
  1195. package/node_modules/@sinclair/typebox/build/esm/value/encode/index.mjs +1 -0
  1196. package/node_modules/@sinclair/typebox/build/esm/value/equal/equal.d.mts +2 -0
  1197. package/node_modules/@sinclair/typebox/build/esm/value/equal/equal.mjs +46 -0
  1198. package/node_modules/@sinclair/typebox/build/esm/value/equal/index.d.mts +1 -0
  1199. package/node_modules/@sinclair/typebox/build/esm/value/equal/index.mjs +1 -0
  1200. package/node_modules/@sinclair/typebox/build/esm/value/guard/guard.d.mts +74 -0
  1201. package/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +158 -0
  1202. package/node_modules/@sinclair/typebox/build/esm/value/guard/index.d.mts +1 -0
  1203. package/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +1 -0
  1204. package/node_modules/@sinclair/typebox/build/esm/value/hash/hash.d.mts +7 -0
  1205. package/node_modules/@sinclair/typebox/build/esm/value/hash/hash.mjs +146 -0
  1206. package/node_modules/@sinclair/typebox/build/esm/value/hash/index.d.mts +1 -0
  1207. package/node_modules/@sinclair/typebox/build/esm/value/hash/index.mjs +1 -0
  1208. package/node_modules/@sinclair/typebox/build/esm/value/index.d.mts +20 -0
  1209. package/node_modules/@sinclair/typebox/build/esm/value/index.mjs +32 -0
  1210. package/node_modules/@sinclair/typebox/build/esm/value/mutate/index.d.mts +1 -0
  1211. package/node_modules/@sinclair/typebox/build/esm/value/mutate/index.mjs +1 -0
  1212. package/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.d.mts +9 -0
  1213. package/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.mjs +98 -0
  1214. package/node_modules/@sinclair/typebox/build/esm/value/parse/index.d.mts +1 -0
  1215. package/node_modules/@sinclair/typebox/build/esm/value/parse/index.mjs +1 -0
  1216. package/node_modules/@sinclair/typebox/build/esm/value/parse/parse.d.mts +22 -0
  1217. package/node_modules/@sinclair/typebox/build/esm/value/parse/parse.mjs +81 -0
  1218. package/node_modules/@sinclair/typebox/build/esm/value/pointer/index.d.mts +1 -0
  1219. package/node_modules/@sinclair/typebox/build/esm/value/pointer/index.mjs +1 -0
  1220. package/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.d.mts +22 -0
  1221. package/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.mjs +115 -0
  1222. package/node_modules/@sinclair/typebox/build/esm/value/transform/decode.d.mts +22 -0
  1223. package/node_modules/@sinclair/typebox/build/esm/value/transform/decode.mjs +207 -0
  1224. package/node_modules/@sinclair/typebox/build/esm/value/transform/encode.d.mts +23 -0
  1225. package/node_modules/@sinclair/typebox/build/esm/value/transform/encode.mjs +218 -0
  1226. package/node_modules/@sinclair/typebox/build/esm/value/transform/has.d.mts +3 -0
  1227. package/node_modules/@sinclair/typebox/build/esm/value/transform/has.mjs +129 -0
  1228. package/node_modules/@sinclair/typebox/build/esm/value/transform/index.d.mts +3 -0
  1229. package/node_modules/@sinclair/typebox/build/esm/value/transform/index.mjs +3 -0
  1230. package/node_modules/@sinclair/typebox/build/esm/value/value/index.d.mts +1 -0
  1231. package/node_modules/@sinclair/typebox/build/esm/value/value/index.mjs +1 -0
  1232. package/node_modules/@sinclair/typebox/build/esm/value/value/value.d.mts +16 -0
  1233. package/node_modules/@sinclair/typebox/build/esm/value/value/value.mjs +16 -0
  1234. package/node_modules/@sinclair/typebox/compiler/package.json +4 -0
  1235. package/node_modules/@sinclair/typebox/errors/package.json +4 -0
  1236. package/node_modules/@sinclair/typebox/license +25 -0
  1237. package/node_modules/@sinclair/typebox/package.json +116 -0
  1238. package/node_modules/@sinclair/typebox/parser/package.json +4 -0
  1239. package/node_modules/@sinclair/typebox/readme.md +1865 -0
  1240. package/node_modules/@sinclair/typebox/syntax/package.json +4 -0
  1241. package/node_modules/@sinclair/typebox/system/package.json +4 -0
  1242. package/node_modules/@sinclair/typebox/type/package.json +4 -0
  1243. package/node_modules/@sinclair/typebox/value/package.json +4 -0
  1244. package/node_modules/@styrene-lab/pi-agent-core/README.md +446 -0
  1245. package/node_modules/@styrene-lab/pi-agent-core/dist/agent-loop.d.ts +24 -0
  1246. package/node_modules/@styrene-lab/pi-agent-core/dist/agent-loop.d.ts.map +1 -0
  1247. package/node_modules/@styrene-lab/pi-agent-core/dist/agent-loop.js +447 -0
  1248. package/node_modules/@styrene-lab/pi-agent-core/dist/agent-loop.js.map +1 -0
  1249. package/node_modules/@styrene-lab/pi-agent-core/dist/agent.d.ts +171 -0
  1250. package/node_modules/@styrene-lab/pi-agent-core/dist/agent.d.ts.map +1 -0
  1251. package/node_modules/@styrene-lab/pi-agent-core/dist/agent.js +417 -0
  1252. package/node_modules/@styrene-lab/pi-agent-core/dist/agent.js.map +1 -0
  1253. package/node_modules/@styrene-lab/pi-agent-core/dist/index.d.ts +5 -0
  1254. package/node_modules/@styrene-lab/pi-agent-core/dist/index.d.ts.map +1 -0
  1255. package/node_modules/@styrene-lab/pi-agent-core/dist/index.js +9 -0
  1256. package/node_modules/@styrene-lab/pi-agent-core/dist/index.js.map +1 -0
  1257. package/node_modules/@styrene-lab/pi-agent-core/dist/proxy.d.ts +85 -0
  1258. package/node_modules/@styrene-lab/pi-agent-core/dist/proxy.d.ts.map +1 -0
  1259. package/node_modules/@styrene-lab/pi-agent-core/dist/proxy.js +268 -0
  1260. package/node_modules/@styrene-lab/pi-agent-core/dist/proxy.js.map +1 -0
  1261. package/node_modules/@styrene-lab/pi-agent-core/dist/types.d.ts +286 -0
  1262. package/node_modules/@styrene-lab/pi-agent-core/dist/types.d.ts.map +1 -0
  1263. package/node_modules/@styrene-lab/pi-agent-core/dist/types.js +2 -0
  1264. package/node_modules/@styrene-lab/pi-agent-core/dist/types.js.map +1 -0
  1265. package/node_modules/@styrene-lab/pi-agent-core/package.json +44 -0
  1266. package/node_modules/@styrene-lab/pi-ai/README.md +1201 -0
  1267. package/node_modules/@styrene-lab/pi-ai/bedrock-provider.d.ts +1 -0
  1268. package/node_modules/@styrene-lab/pi-ai/bedrock-provider.js +1 -0
  1269. package/node_modules/@styrene-lab/pi-ai/dist/api-registry.d.ts +20 -0
  1270. package/node_modules/@styrene-lab/pi-ai/dist/api-registry.d.ts.map +1 -0
  1271. package/node_modules/@styrene-lab/pi-ai/dist/api-registry.js +44 -0
  1272. package/node_modules/@styrene-lab/pi-ai/dist/api-registry.js.map +1 -0
  1273. package/node_modules/@styrene-lab/pi-ai/dist/bedrock-provider.d.ts +5 -0
  1274. package/node_modules/@styrene-lab/pi-ai/dist/bedrock-provider.d.ts.map +1 -0
  1275. package/node_modules/@styrene-lab/pi-ai/dist/bedrock-provider.js +6 -0
  1276. package/node_modules/@styrene-lab/pi-ai/dist/bedrock-provider.js.map +1 -0
  1277. package/node_modules/@styrene-lab/pi-ai/dist/cli.d.ts +3 -0
  1278. package/node_modules/@styrene-lab/pi-ai/dist/cli.d.ts.map +1 -0
  1279. package/node_modules/@styrene-lab/pi-ai/dist/cli.js +116 -0
  1280. package/node_modules/@styrene-lab/pi-ai/dist/cli.js.map +1 -0
  1281. package/node_modules/@styrene-lab/pi-ai/dist/env-api-keys.d.ts +9 -0
  1282. package/node_modules/@styrene-lab/pi-ai/dist/env-api-keys.d.ts.map +1 -0
  1283. package/node_modules/@styrene-lab/pi-ai/dist/env-api-keys.js +110 -0
  1284. package/node_modules/@styrene-lab/pi-ai/dist/env-api-keys.js.map +1 -0
  1285. package/node_modules/@styrene-lab/pi-ai/dist/index.d.ts +23 -0
  1286. package/node_modules/@styrene-lab/pi-ai/dist/index.d.ts.map +1 -0
  1287. package/node_modules/@styrene-lab/pi-ai/dist/index.js +21 -0
  1288. package/node_modules/@styrene-lab/pi-ai/dist/index.js.map +1 -0
  1289. package/node_modules/@styrene-lab/pi-ai/dist/models.d.ts +24 -0
  1290. package/node_modules/@styrene-lab/pi-ai/dist/models.d.ts.map +1 -0
  1291. package/node_modules/@styrene-lab/pi-ai/dist/models.generated.d.ts +14058 -0
  1292. package/node_modules/@styrene-lab/pi-ai/dist/models.generated.d.ts.map +1 -0
  1293. package/node_modules/@styrene-lab/pi-ai/dist/models.generated.js +13846 -0
  1294. package/node_modules/@styrene-lab/pi-ai/dist/models.generated.js.map +1 -0
  1295. package/node_modules/@styrene-lab/pi-ai/dist/models.js +55 -0
  1296. package/node_modules/@styrene-lab/pi-ai/dist/models.js.map +1 -0
  1297. package/node_modules/@styrene-lab/pi-ai/dist/oauth.d.ts +2 -0
  1298. package/node_modules/@styrene-lab/pi-ai/dist/oauth.d.ts.map +1 -0
  1299. package/node_modules/@styrene-lab/pi-ai/dist/oauth.js +2 -0
  1300. package/node_modules/@styrene-lab/pi-ai/dist/oauth.js.map +1 -0
  1301. package/node_modules/@styrene-lab/pi-ai/dist/providers/amazon-bedrock.d.ts +15 -0
  1302. package/node_modules/@styrene-lab/pi-ai/dist/providers/amazon-bedrock.d.ts.map +1 -0
  1303. package/node_modules/@styrene-lab/pi-ai/dist/providers/amazon-bedrock.js +610 -0
  1304. package/node_modules/@styrene-lab/pi-ai/dist/providers/amazon-bedrock.js.map +1 -0
  1305. package/node_modules/@styrene-lab/pi-ai/dist/providers/anthropic.d.ts +33 -0
  1306. package/node_modules/@styrene-lab/pi-ai/dist/providers/anthropic.d.ts.map +1 -0
  1307. package/node_modules/@styrene-lab/pi-ai/dist/providers/anthropic.js +753 -0
  1308. package/node_modules/@styrene-lab/pi-ai/dist/providers/anthropic.js.map +1 -0
  1309. package/node_modules/@styrene-lab/pi-ai/dist/providers/azure-openai-responses.d.ts +15 -0
  1310. package/node_modules/@styrene-lab/pi-ai/dist/providers/azure-openai-responses.d.ts.map +1 -0
  1311. package/node_modules/@styrene-lab/pi-ai/dist/providers/azure-openai-responses.js +187 -0
  1312. package/node_modules/@styrene-lab/pi-ai/dist/providers/azure-openai-responses.js.map +1 -0
  1313. package/node_modules/@styrene-lab/pi-ai/dist/providers/github-copilot-headers.d.ts +8 -0
  1314. package/node_modules/@styrene-lab/pi-ai/dist/providers/github-copilot-headers.d.ts.map +1 -0
  1315. package/node_modules/@styrene-lab/pi-ai/dist/providers/github-copilot-headers.js +29 -0
  1316. package/node_modules/@styrene-lab/pi-ai/dist/providers/github-copilot-headers.js.map +1 -0
  1317. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-gemini-cli.d.ts +74 -0
  1318. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-gemini-cli.d.ts.map +1 -0
  1319. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-gemini-cli.js +757 -0
  1320. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-gemini-cli.js.map +1 -0
  1321. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-shared.d.ts +65 -0
  1322. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-shared.d.ts.map +1 -0
  1323. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-shared.js +300 -0
  1324. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-shared.js.map +1 -0
  1325. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-vertex.d.ts +15 -0
  1326. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-vertex.d.ts.map +1 -0
  1327. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-vertex.js +392 -0
  1328. package/node_modules/@styrene-lab/pi-ai/dist/providers/google-vertex.js.map +1 -0
  1329. package/node_modules/@styrene-lab/pi-ai/dist/providers/google.d.ts +13 -0
  1330. package/node_modules/@styrene-lab/pi-ai/dist/providers/google.d.ts.map +1 -0
  1331. package/node_modules/@styrene-lab/pi-ai/dist/providers/google.js +355 -0
  1332. package/node_modules/@styrene-lab/pi-ai/dist/providers/google.js.map +1 -0
  1333. package/node_modules/@styrene-lab/pi-ai/dist/providers/mistral.d.ts +22 -0
  1334. package/node_modules/@styrene-lab/pi-ai/dist/providers/mistral.d.ts.map +1 -0
  1335. package/node_modules/@styrene-lab/pi-ai/dist/providers/mistral.js +498 -0
  1336. package/node_modules/@styrene-lab/pi-ai/dist/providers/mistral.js.map +1 -0
  1337. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-codex-responses.d.ts +9 -0
  1338. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-codex-responses.d.ts.map +1 -0
  1339. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-codex-responses.js +741 -0
  1340. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-codex-responses.js.map +1 -0
  1341. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-completions.d.ts +15 -0
  1342. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-completions.d.ts.map +1 -0
  1343. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-completions.js +710 -0
  1344. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-completions.js.map +1 -0
  1345. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses-shared.d.ts +17 -0
  1346. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses-shared.d.ts.map +1 -0
  1347. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses-shared.js +447 -0
  1348. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses-shared.js.map +1 -0
  1349. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses.d.ts +13 -0
  1350. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses.d.ts.map +1 -0
  1351. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses.js +201 -0
  1352. package/node_modules/@styrene-lab/pi-ai/dist/providers/openai-responses.js.map +1 -0
  1353. package/node_modules/@styrene-lab/pi-ai/dist/providers/register-builtins.d.ts +11 -0
  1354. package/node_modules/@styrene-lab/pi-ai/dist/providers/register-builtins.d.ts.map +1 -0
  1355. package/node_modules/@styrene-lab/pi-ai/dist/providers/register-builtins.js +138 -0
  1356. package/node_modules/@styrene-lab/pi-ai/dist/providers/register-builtins.js.map +1 -0
  1357. package/node_modules/@styrene-lab/pi-ai/dist/providers/simple-options.d.ts +8 -0
  1358. package/node_modules/@styrene-lab/pi-ai/dist/providers/simple-options.d.ts.map +1 -0
  1359. package/node_modules/@styrene-lab/pi-ai/dist/providers/simple-options.js +35 -0
  1360. package/node_modules/@styrene-lab/pi-ai/dist/providers/simple-options.js.map +1 -0
  1361. package/node_modules/@styrene-lab/pi-ai/dist/providers/transform-messages.d.ts +8 -0
  1362. package/node_modules/@styrene-lab/pi-ai/dist/providers/transform-messages.d.ts.map +1 -0
  1363. package/node_modules/@styrene-lab/pi-ai/dist/providers/transform-messages.js +155 -0
  1364. package/node_modules/@styrene-lab/pi-ai/dist/providers/transform-messages.js.map +1 -0
  1365. package/node_modules/@styrene-lab/pi-ai/dist/stream.d.ts +8 -0
  1366. package/node_modules/@styrene-lab/pi-ai/dist/stream.d.ts.map +1 -0
  1367. package/node_modules/@styrene-lab/pi-ai/dist/stream.js +27 -0
  1368. package/node_modules/@styrene-lab/pi-ai/dist/stream.js.map +1 -0
  1369. package/node_modules/@styrene-lab/pi-ai/dist/types.d.ts +293 -0
  1370. package/node_modules/@styrene-lab/pi-ai/dist/types.d.ts.map +1 -0
  1371. package/node_modules/@styrene-lab/pi-ai/dist/types.js +2 -0
  1372. package/node_modules/@styrene-lab/pi-ai/dist/types.js.map +1 -0
  1373. package/node_modules/@styrene-lab/pi-ai/dist/utils/event-stream.d.ts +21 -0
  1374. package/node_modules/@styrene-lab/pi-ai/dist/utils/event-stream.d.ts.map +1 -0
  1375. package/node_modules/@styrene-lab/pi-ai/dist/utils/event-stream.js +81 -0
  1376. package/node_modules/@styrene-lab/pi-ai/dist/utils/event-stream.js.map +1 -0
  1377. package/node_modules/@styrene-lab/pi-ai/dist/utils/hash.d.ts +3 -0
  1378. package/node_modules/@styrene-lab/pi-ai/dist/utils/hash.d.ts.map +1 -0
  1379. package/node_modules/@styrene-lab/pi-ai/dist/utils/hash.js +14 -0
  1380. package/node_modules/@styrene-lab/pi-ai/dist/utils/hash.js.map +1 -0
  1381. package/node_modules/@styrene-lab/pi-ai/dist/utils/json-parse.d.ts +9 -0
  1382. package/node_modules/@styrene-lab/pi-ai/dist/utils/json-parse.d.ts.map +1 -0
  1383. package/node_modules/@styrene-lab/pi-ai/dist/utils/json-parse.js +29 -0
  1384. package/node_modules/@styrene-lab/pi-ai/dist/utils/json-parse.js.map +1 -0
  1385. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/anthropic.d.ts +25 -0
  1386. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/anthropic.d.ts.map +1 -0
  1387. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/anthropic.js +343 -0
  1388. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/anthropic.js.map +1 -0
  1389. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/fetch-utils.d.ts +22 -0
  1390. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/fetch-utils.d.ts.map +1 -0
  1391. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/fetch-utils.js +42 -0
  1392. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/fetch-utils.js.map +1 -0
  1393. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/github-copilot.d.ts +30 -0
  1394. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/github-copilot.d.ts.map +1 -0
  1395. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/github-copilot.js +292 -0
  1396. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/github-copilot.js.map +1 -0
  1397. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-antigravity.d.ts +26 -0
  1398. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-antigravity.d.ts.map +1 -0
  1399. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-antigravity.js +374 -0
  1400. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-antigravity.js.map +1 -0
  1401. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-gemini-cli.d.ts +26 -0
  1402. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-gemini-cli.d.ts.map +1 -0
  1403. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-gemini-cli.js +479 -0
  1404. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/google-gemini-cli.js.map +1 -0
  1405. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/index.d.ts +61 -0
  1406. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/index.d.ts.map +1 -0
  1407. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/index.js +131 -0
  1408. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/index.js.map +1 -0
  1409. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/openai-codex.d.ts +35 -0
  1410. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/openai-codex.d.ts.map +1 -0
  1411. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/openai-codex.js +382 -0
  1412. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/openai-codex.js.map +1 -0
  1413. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/pkce.d.ts +13 -0
  1414. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/pkce.d.ts.map +1 -0
  1415. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/pkce.js +31 -0
  1416. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/pkce.js.map +1 -0
  1417. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/types.d.ts +47 -0
  1418. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/types.d.ts.map +1 -0
  1419. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/types.js +2 -0
  1420. package/node_modules/@styrene-lab/pi-ai/dist/utils/oauth/types.js.map +1 -0
  1421. package/node_modules/@styrene-lab/pi-ai/dist/utils/overflow.d.ts +52 -0
  1422. package/node_modules/@styrene-lab/pi-ai/dist/utils/overflow.d.ts.map +1 -0
  1423. package/node_modules/@styrene-lab/pi-ai/dist/utils/overflow.js +117 -0
  1424. package/node_modules/@styrene-lab/pi-ai/dist/utils/overflow.js.map +1 -0
  1425. package/node_modules/@styrene-lab/pi-ai/dist/utils/sanitize-unicode.d.ts +22 -0
  1426. package/node_modules/@styrene-lab/pi-ai/dist/utils/sanitize-unicode.d.ts.map +1 -0
  1427. package/node_modules/@styrene-lab/pi-ai/dist/utils/sanitize-unicode.js +26 -0
  1428. package/node_modules/@styrene-lab/pi-ai/dist/utils/sanitize-unicode.js.map +1 -0
  1429. package/node_modules/@styrene-lab/pi-ai/dist/utils/typebox-helpers.d.ts +17 -0
  1430. package/node_modules/@styrene-lab/pi-ai/dist/utils/typebox-helpers.d.ts.map +1 -0
  1431. package/node_modules/@styrene-lab/pi-ai/dist/utils/typebox-helpers.js +21 -0
  1432. package/node_modules/@styrene-lab/pi-ai/dist/utils/typebox-helpers.js.map +1 -0
  1433. package/node_modules/@styrene-lab/pi-ai/dist/utils/validation.d.ts +18 -0
  1434. package/node_modules/@styrene-lab/pi-ai/dist/utils/validation.d.ts.map +1 -0
  1435. package/node_modules/@styrene-lab/pi-ai/dist/utils/validation.js +72 -0
  1436. package/node_modules/@styrene-lab/pi-ai/dist/utils/validation.js.map +1 -0
  1437. package/node_modules/@styrene-lab/pi-ai/package.json +80 -0
  1438. package/node_modules/@styrene-lab/pi-coding-agent/CHANGELOG.md +3105 -0
  1439. package/node_modules/@styrene-lab/pi-coding-agent/README.md +583 -0
  1440. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/args.d.ts +48 -0
  1441. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/args.d.ts.map +1 -0
  1442. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/args.js +300 -0
  1443. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/args.js.map +1 -0
  1444. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/config-selector.d.ts +14 -0
  1445. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/config-selector.d.ts.map +1 -0
  1446. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/config-selector.js +31 -0
  1447. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/config-selector.js.map +1 -0
  1448. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/file-processor.d.ts +15 -0
  1449. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/file-processor.d.ts.map +1 -0
  1450. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/file-processor.js +79 -0
  1451. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/file-processor.js.map +1 -0
  1452. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/list-models.d.ts +9 -0
  1453. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/list-models.d.ts.map +1 -0
  1454. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/list-models.js +92 -0
  1455. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/list-models.js.map +1 -0
  1456. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/session-picker.d.ts +9 -0
  1457. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/session-picker.d.ts.map +1 -0
  1458. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/session-picker.js +34 -0
  1459. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli/session-picker.js.map +1 -0
  1460. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli.d.ts +3 -0
  1461. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli.d.ts.map +1 -0
  1462. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli.js +16 -0
  1463. package/node_modules/@styrene-lab/pi-coding-agent/dist/cli.js.map +1 -0
  1464. package/node_modules/@styrene-lab/pi-coding-agent/dist/config.d.ts +68 -0
  1465. package/node_modules/@styrene-lab/pi-coding-agent/dist/config.d.ts.map +1 -0
  1466. package/node_modules/@styrene-lab/pi-coding-agent/dist/config.js +203 -0
  1467. package/node_modules/@styrene-lab/pi-coding-agent/dist/config.js.map +1 -0
  1468. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/agent-session.d.ts +591 -0
  1469. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/agent-session.d.ts.map +1 -0
  1470. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/agent-session.js +2542 -0
  1471. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/agent-session.js.map +1 -0
  1472. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/auth-storage.d.ts +130 -0
  1473. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/auth-storage.d.ts.map +1 -0
  1474. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/auth-storage.js +419 -0
  1475. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/auth-storage.js.map +1 -0
  1476. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/bash-executor.d.ts +47 -0
  1477. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/bash-executor.d.ts.map +1 -0
  1478. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/bash-executor.js +212 -0
  1479. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/bash-executor.js.map +1 -0
  1480. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts +86 -0
  1481. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts.map +1 -0
  1482. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/branch-summarization.js +242 -0
  1483. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/branch-summarization.js.map +1 -0
  1484. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/compaction.d.ts +121 -0
  1485. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/compaction.d.ts.map +1 -0
  1486. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/compaction.js +610 -0
  1487. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/compaction.js.map +1 -0
  1488. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/index.d.ts +7 -0
  1489. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/index.d.ts.map +1 -0
  1490. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/index.js +7 -0
  1491. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/index.js.map +1 -0
  1492. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/utils.d.ts +38 -0
  1493. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/utils.d.ts.map +1 -0
  1494. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/utils.js +153 -0
  1495. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/compaction/utils.js.map +1 -0
  1496. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/defaults.d.ts +3 -0
  1497. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/defaults.d.ts.map +1 -0
  1498. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/defaults.js +2 -0
  1499. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/defaults.js.map +1 -0
  1500. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/diagnostics.d.ts +15 -0
  1501. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/diagnostics.d.ts.map +1 -0
  1502. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/diagnostics.js +2 -0
  1503. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/diagnostics.js.map +1 -0
  1504. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/event-bus.d.ts +9 -0
  1505. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/event-bus.d.ts.map +1 -0
  1506. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/event-bus.js +25 -0
  1507. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/event-bus.js.map +1 -0
  1508. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/exec.d.ts +29 -0
  1509. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/exec.d.ts.map +1 -0
  1510. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/exec.js +71 -0
  1511. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/exec.js.map +1 -0
  1512. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts +22 -0
  1513. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
  1514. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/ansi-to-html.js +249 -0
  1515. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/ansi-to-html.js.map +1 -0
  1516. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/index.d.ts +37 -0
  1517. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/index.d.ts.map +1 -0
  1518. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/index.js +223 -0
  1519. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/index.js.map +1 -0
  1520. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/template.css +971 -0
  1521. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/template.html +54 -0
  1522. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/template.js +1583 -0
  1523. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/tool-renderer.d.ts +38 -0
  1524. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/tool-renderer.d.ts.map +1 -0
  1525. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/tool-renderer.js +70 -0
  1526. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/tool-renderer.js.map +1 -0
  1527. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/vendor/highlight.min.js +1213 -0
  1528. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/export-html/vendor/marked.min.js +6 -0
  1529. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/index.d.ts +11 -0
  1530. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/index.d.ts.map +1 -0
  1531. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/index.js +9 -0
  1532. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/index.js.map +1 -0
  1533. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/loader.d.ts +25 -0
  1534. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/loader.d.ts.map +1 -0
  1535. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/loader.js +430 -0
  1536. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/loader.js.map +1 -0
  1537. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/runner.d.ts +152 -0
  1538. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/runner.d.ts.map +1 -0
  1539. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/runner.js +688 -0
  1540. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/runner.js.map +1 -0
  1541. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/types.d.ts +1048 -0
  1542. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/types.d.ts.map +1 -0
  1543. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/types.js +35 -0
  1544. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/types.js.map +1 -0
  1545. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/wrapper.d.ts +20 -0
  1546. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/wrapper.d.ts.map +1 -0
  1547. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/wrapper.js +28 -0
  1548. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/extensions/wrapper.js.map +1 -0
  1549. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/footer-data-provider.d.ts +32 -0
  1550. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/footer-data-provider.d.ts.map +1 -0
  1551. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/footer-data-provider.js +134 -0
  1552. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/footer-data-provider.js.map +1 -0
  1553. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/index.d.ts +9 -0
  1554. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/index.d.ts.map +1 -0
  1555. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/index.js +9 -0
  1556. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/index.js.map +1 -0
  1557. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/keybindings.d.ts +55 -0
  1558. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/keybindings.d.ts.map +1 -0
  1559. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/keybindings.js +153 -0
  1560. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/keybindings.js.map +1 -0
  1561. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/messages.d.ts +77 -0
  1562. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/messages.d.ts.map +1 -0
  1563. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/messages.js +123 -0
  1564. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/messages.js.map +1 -0
  1565. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-registry.d.ts +113 -0
  1566. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-registry.d.ts.map +1 -0
  1567. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-registry.js +554 -0
  1568. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-registry.js.map +1 -0
  1569. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-resolver.d.ts +104 -0
  1570. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-resolver.d.ts.map +1 -0
  1571. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-resolver.js +462 -0
  1572. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/model-resolver.js.map +1 -0
  1573. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/package-manager.d.ts +155 -0
  1574. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/package-manager.d.ts.map +1 -0
  1575. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/package-manager.js +1480 -0
  1576. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/package-manager.js.map +1 -0
  1577. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/prompt-templates.d.ts +50 -0
  1578. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/prompt-templates.d.ts.map +1 -0
  1579. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/prompt-templates.js +251 -0
  1580. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/prompt-templates.js.map +1 -0
  1581. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resolve-config-value.d.ts +17 -0
  1582. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resolve-config-value.d.ts.map +1 -0
  1583. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resolve-config-value.js +94 -0
  1584. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resolve-config-value.js.map +1 -0
  1585. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resource-loader.d.ts +184 -0
  1586. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resource-loader.d.ts.map +1 -0
  1587. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resource-loader.js +670 -0
  1588. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/resource-loader.js.map +1 -0
  1589. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/sdk.d.ts +90 -0
  1590. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/sdk.d.ts.map +1 -0
  1591. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/sdk.js +242 -0
  1592. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/sdk.js.map +1 -0
  1593. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/session-manager.d.ts +324 -0
  1594. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/session-manager.d.ts.map +1 -0
  1595. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/session-manager.js +1098 -0
  1596. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/session-manager.js.map +1 -0
  1597. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/settings-manager.d.ts +235 -0
  1598. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/settings-manager.d.ts.map +1 -0
  1599. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/settings-manager.js +699 -0
  1600. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/settings-manager.js.map +1 -0
  1601. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/skills.d.ts +59 -0
  1602. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/skills.d.ts.map +1 -0
  1603. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/skills.js +385 -0
  1604. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/skills.js.map +1 -0
  1605. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/slash-commands.d.ts +15 -0
  1606. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/slash-commands.d.ts.map +1 -0
  1607. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/slash-commands.js +22 -0
  1608. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/slash-commands.js.map +1 -0
  1609. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/system-prompt.d.ts +28 -0
  1610. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/system-prompt.d.ts.map +1 -0
  1611. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/system-prompt.js +150 -0
  1612. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/system-prompt.js.map +1 -0
  1613. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/timings.d.ts +7 -0
  1614. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/timings.d.ts.map +1 -0
  1615. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/timings.js +25 -0
  1616. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/timings.js.map +1 -0
  1617. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/bash.d.ts +59 -0
  1618. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/bash.d.ts.map +1 -0
  1619. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/bash.js +249 -0
  1620. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/bash.js.map +1 -0
  1621. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit-diff.d.ts +63 -0
  1622. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit-diff.d.ts.map +1 -0
  1623. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit-diff.js +243 -0
  1624. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit-diff.js.map +1 -0
  1625. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit.d.ts +39 -0
  1626. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit.d.ts.map +1 -0
  1627. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit.js +146 -0
  1628. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/edit.js.map +1 -0
  1629. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/find.d.ts +39 -0
  1630. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -0
  1631. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/find.js +209 -0
  1632. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/find.js.map +1 -0
  1633. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/grep.d.ts +45 -0
  1634. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/grep.d.ts.map +1 -0
  1635. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/grep.js +239 -0
  1636. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/grep.js.map +1 -0
  1637. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/index.d.ts +73 -0
  1638. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/index.d.ts.map +1 -0
  1639. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/index.js +61 -0
  1640. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/index.js.map +1 -0
  1641. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/ls.d.ts +40 -0
  1642. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/ls.d.ts.map +1 -0
  1643. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/ls.js +118 -0
  1644. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/ls.js.map +1 -0
  1645. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/path-utils.d.ts +8 -0
  1646. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/path-utils.d.ts.map +1 -0
  1647. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/path-utils.js +81 -0
  1648. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/path-utils.js.map +1 -0
  1649. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/read.d.ts +39 -0
  1650. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/read.d.ts.map +1 -0
  1651. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/read.js +166 -0
  1652. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/read.js.map +1 -0
  1653. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/truncate.d.ts +70 -0
  1654. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/truncate.d.ts.map +1 -0
  1655. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/truncate.js +205 -0
  1656. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/truncate.js.map +1 -0
  1657. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/write.d.ts +29 -0
  1658. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/write.d.ts.map +1 -0
  1659. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/write.js +78 -0
  1660. package/node_modules/@styrene-lab/pi-coding-agent/dist/core/tools/write.js.map +1 -0
  1661. package/node_modules/@styrene-lab/pi-coding-agent/dist/index.d.ts +27 -0
  1662. package/node_modules/@styrene-lab/pi-coding-agent/dist/index.d.ts.map +1 -0
  1663. package/node_modules/@styrene-lab/pi-coding-agent/dist/index.js +42 -0
  1664. package/node_modules/@styrene-lab/pi-coding-agent/dist/index.js.map +1 -0
  1665. package/node_modules/@styrene-lab/pi-coding-agent/dist/main.d.ts +8 -0
  1666. package/node_modules/@styrene-lab/pi-coding-agent/dist/main.d.ts.map +1 -0
  1667. package/node_modules/@styrene-lab/pi-coding-agent/dist/main.js +700 -0
  1668. package/node_modules/@styrene-lab/pi-coding-agent/dist/main.js.map +1 -0
  1669. package/node_modules/@styrene-lab/pi-coding-agent/dist/migrations.d.ts +33 -0
  1670. package/node_modules/@styrene-lab/pi-coding-agent/dist/migrations.d.ts.map +1 -0
  1671. package/node_modules/@styrene-lab/pi-coding-agent/dist/migrations.js +261 -0
  1672. package/node_modules/@styrene-lab/pi-coding-agent/dist/migrations.js.map +1 -0
  1673. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/index.d.ts +9 -0
  1674. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/index.d.ts.map +1 -0
  1675. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/index.js +8 -0
  1676. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/index.js.map +1 -0
  1677. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/armin.d.ts +34 -0
  1678. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/armin.d.ts.map +1 -0
  1679. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/armin.js +333 -0
  1680. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/armin.js.map +1 -0
  1681. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts +16 -0
  1682. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
  1683. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +96 -0
  1684. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/assistant-message.js.map +1 -0
  1685. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts +35 -0
  1686. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
  1687. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +162 -0
  1688. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bash-execution.js.map +1 -0
  1689. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
  1690. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
  1691. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js +51 -0
  1692. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js.map +1 -0
  1693. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
  1694. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
  1695. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +44 -0
  1696. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
  1697. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
  1698. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
  1699. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +45 -0
  1700. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
  1701. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts +71 -0
  1702. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
  1703. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/config-selector.js +479 -0
  1704. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/config-selector.js.map +1 -0
  1705. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
  1706. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
  1707. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js +33 -0
  1708. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js.map +1 -0
  1709. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts +21 -0
  1710. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
  1711. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-editor.js +70 -0
  1712. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-editor.js.map +1 -0
  1713. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts +20 -0
  1714. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
  1715. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-message.js +79 -0
  1716. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/custom-message.js.map +1 -0
  1717. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/daxnuts.d.ts +23 -0
  1718. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
  1719. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/daxnuts.js +140 -0
  1720. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/daxnuts.js.map +1 -0
  1721. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/diff.d.ts +12 -0
  1722. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/diff.d.ts.map +1 -0
  1723. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/diff.js +133 -0
  1724. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/diff.js.map +1 -0
  1725. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
  1726. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
  1727. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js +21 -0
  1728. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js.map +1 -0
  1729. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts +20 -0
  1730. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
  1731. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-editor.js +111 -0
  1732. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-editor.js.map +1 -0
  1733. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts +23 -0
  1734. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
  1735. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-input.js +61 -0
  1736. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-input.js.map +1 -0
  1737. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-selector.d.ts +24 -0
  1738. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
  1739. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +78 -0
  1740. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/extension-selector.js.map +1 -0
  1741. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/footer.d.ts +26 -0
  1742. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/footer.d.ts.map +1 -0
  1743. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/footer.js +198 -0
  1744. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/footer.js.map +1 -0
  1745. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/index.d.ts +32 -0
  1746. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/index.d.ts.map +1 -0
  1747. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/index.js +33 -0
  1748. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/index.js.map +1 -0
  1749. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts +41 -0
  1750. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
  1751. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js +61 -0
  1752. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
  1753. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts +42 -0
  1754. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
  1755. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +145 -0
  1756. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/login-dialog.js.map +1 -0
  1757. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/model-selector.d.ts +47 -0
  1758. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
  1759. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/model-selector.js +271 -0
  1760. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/model-selector.js.map +1 -0
  1761. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +19 -0
  1762. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
  1763. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +97 -0
  1764. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js.map +1 -0
  1765. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts +49 -0
  1766. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
  1767. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js +275 -0
  1768. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
  1769. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
  1770. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
  1771. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js +155 -0
  1772. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js.map +1 -0
  1773. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts +95 -0
  1774. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
  1775. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector.js +851 -0
  1776. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/session-selector.js.map +1 -0
  1777. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts +58 -0
  1778. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
  1779. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +301 -0
  1780. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -0
  1781. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
  1782. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
  1783. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js +39 -0
  1784. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js.map +1 -0
  1785. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
  1786. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
  1787. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +47 -0
  1788. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
  1789. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/theme-selector.d.ts +11 -0
  1790. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
  1791. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/theme-selector.js +50 -0
  1792. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/theme-selector.js.map +1 -0
  1793. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
  1794. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
  1795. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js +51 -0
  1796. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js.map +1 -0
  1797. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts +89 -0
  1798. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
  1799. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +976 -0
  1800. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -0
  1801. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts +87 -0
  1802. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
  1803. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +1040 -0
  1804. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/tree-selector.js.map +1 -0
  1805. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
  1806. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
  1807. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js +113 -0
  1808. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js.map +1 -0
  1809. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts +9 -0
  1810. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts.map +1 -0
  1811. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message.js +27 -0
  1812. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/user-message.js.map +1 -0
  1813. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
  1814. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
  1815. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js +33 -0
  1816. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js.map +1 -0
  1817. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +317 -0
  1818. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
  1819. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/interactive-mode.js +3832 -0
  1820. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -0
  1821. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/dark.json +85 -0
  1822. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/light.json +84 -0
  1823. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme-schema.json +335 -0
  1824. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts +78 -0
  1825. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -0
  1826. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme.js +957 -0
  1827. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -0
  1828. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/print-mode.d.ts +28 -0
  1829. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/print-mode.d.ts.map +1 -0
  1830. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/print-mode.js +101 -0
  1831. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/print-mode.js.map +1 -0
  1832. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/jsonl.d.ts +17 -0
  1833. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/jsonl.d.ts.map +1 -0
  1834. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/jsonl.js +49 -0
  1835. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/jsonl.js.map +1 -0
  1836. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts +217 -0
  1837. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts.map +1 -0
  1838. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-client.js +401 -0
  1839. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-client.js.map +1 -0
  1840. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts +20 -0
  1841. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
  1842. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-mode.js +509 -0
  1843. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -0
  1844. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts +409 -0
  1845. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts.map +1 -0
  1846. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-types.js +8 -0
  1847. package/node_modules/@styrene-lab/pi-coding-agent/dist/modes/rpc/rpc-types.js.map +1 -0
  1848. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/changelog.d.ts +21 -0
  1849. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/changelog.d.ts.map +1 -0
  1850. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/changelog.js +87 -0
  1851. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/changelog.js.map +1 -0
  1852. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-image.d.ts +11 -0
  1853. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +1 -0
  1854. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-image.js +286 -0
  1855. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-image.js.map +1 -0
  1856. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-native.d.ts +8 -0
  1857. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-native.d.ts.map +1 -0
  1858. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-native.js +20 -0
  1859. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard-native.js.map +1 -0
  1860. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard.d.ts +2 -0
  1861. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard.d.ts.map +1 -0
  1862. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard.js +68 -0
  1863. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/clipboard.js.map +1 -0
  1864. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/exif-orientation.d.ts +5 -0
  1865. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/exif-orientation.d.ts.map +1 -0
  1866. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/exif-orientation.js +158 -0
  1867. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/exif-orientation.js.map +1 -0
  1868. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/frontmatter.d.ts +8 -0
  1869. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/frontmatter.d.ts.map +1 -0
  1870. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/frontmatter.js +26 -0
  1871. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/frontmatter.js.map +1 -0
  1872. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/git.d.ts +26 -0
  1873. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/git.d.ts.map +1 -0
  1874. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/git.js +163 -0
  1875. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/git.js.map +1 -0
  1876. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-convert.d.ts +9 -0
  1877. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-convert.d.ts.map +1 -0
  1878. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-convert.js +39 -0
  1879. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-convert.js.map +1 -0
  1880. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-resize.d.ts +36 -0
  1881. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-resize.d.ts.map +1 -0
  1882. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-resize.js +186 -0
  1883. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/image-resize.js.map +1 -0
  1884. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/mime.d.ts +2 -0
  1885. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/mime.d.ts.map +1 -0
  1886. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/mime.js +26 -0
  1887. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/mime.js.map +1 -0
  1888. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/photon.d.ts +21 -0
  1889. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/photon.d.ts.map +1 -0
  1890. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/photon.js +121 -0
  1891. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/photon.js.map +1 -0
  1892. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/shell.d.ts +26 -0
  1893. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/shell.d.ts.map +1 -0
  1894. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/shell.js +186 -0
  1895. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/shell.js.map +1 -0
  1896. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/sleep.d.ts +5 -0
  1897. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/sleep.d.ts.map +1 -0
  1898. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/sleep.js +17 -0
  1899. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/sleep.js.map +1 -0
  1900. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/tools-manager.d.ts +3 -0
  1901. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/tools-manager.d.ts.map +1 -0
  1902. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/tools-manager.js +252 -0
  1903. package/node_modules/@styrene-lab/pi-coding-agent/dist/utils/tools-manager.js.map +1 -0
  1904. package/node_modules/@styrene-lab/pi-coding-agent/docs/compaction.md +392 -0
  1905. package/node_modules/@styrene-lab/pi-coding-agent/docs/custom-provider.md +596 -0
  1906. package/node_modules/@styrene-lab/pi-coding-agent/docs/development.md +69 -0
  1907. package/node_modules/@styrene-lab/pi-coding-agent/docs/extensions.md +2034 -0
  1908. package/node_modules/@styrene-lab/pi-coding-agent/docs/images/doom-extension.png +0 -0
  1909. package/node_modules/@styrene-lab/pi-coding-agent/docs/images/exy.png +0 -0
  1910. package/node_modules/@styrene-lab/pi-coding-agent/docs/images/interactive-mode.png +0 -0
  1911. package/node_modules/@styrene-lab/pi-coding-agent/docs/images/tree-view.png +0 -0
  1912. package/node_modules/@styrene-lab/pi-coding-agent/docs/json.md +79 -0
  1913. package/node_modules/@styrene-lab/pi-coding-agent/docs/keybindings.md +182 -0
  1914. package/node_modules/@styrene-lab/pi-coding-agent/docs/models.md +309 -0
  1915. package/node_modules/@styrene-lab/pi-coding-agent/docs/packages.md +218 -0
  1916. package/node_modules/@styrene-lab/pi-coding-agent/docs/prompt-templates.md +67 -0
  1917. package/node_modules/@styrene-lab/pi-coding-agent/docs/providers.md +188 -0
  1918. package/node_modules/@styrene-lab/pi-coding-agent/docs/rpc.md +1354 -0
  1919. package/node_modules/@styrene-lab/pi-coding-agent/docs/sdk.md +968 -0
  1920. package/node_modules/@styrene-lab/pi-coding-agent/docs/session.md +412 -0
  1921. package/node_modules/@styrene-lab/pi-coding-agent/docs/settings.md +234 -0
  1922. package/node_modules/@styrene-lab/pi-coding-agent/docs/shell-aliases.md +13 -0
  1923. package/node_modules/@styrene-lab/pi-coding-agent/docs/skills.md +231 -0
  1924. package/node_modules/@styrene-lab/pi-coding-agent/docs/terminal-setup.md +95 -0
  1925. package/node_modules/@styrene-lab/pi-coding-agent/docs/termux.md +127 -0
  1926. package/node_modules/@styrene-lab/pi-coding-agent/docs/themes.md +295 -0
  1927. package/node_modules/@styrene-lab/pi-coding-agent/docs/tmux.md +61 -0
  1928. package/node_modules/@styrene-lab/pi-coding-agent/docs/tree.md +228 -0
  1929. package/node_modules/@styrene-lab/pi-coding-agent/docs/tui.md +887 -0
  1930. package/node_modules/@styrene-lab/pi-coding-agent/docs/windows.md +17 -0
  1931. package/node_modules/@styrene-lab/pi-coding-agent/examples/README.md +25 -0
  1932. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/README.md +205 -0
  1933. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/antigravity-image-gen.ts +416 -0
  1934. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/auto-commit-on-exit.ts +49 -0
  1935. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/bash-spawn-hook.ts +30 -0
  1936. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/bookmark.ts +50 -0
  1937. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/built-in-tool-renderer.ts +246 -0
  1938. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/claude-rules.ts +86 -0
  1939. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/commands.ts +72 -0
  1940. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/confirm-destructive.ts +59 -0
  1941. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-compaction.ts +114 -0
  1942. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-footer.ts +64 -0
  1943. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-header.ts +73 -0
  1944. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-anthropic/index.ts +604 -0
  1945. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  1946. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +19 -0
  1947. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/index.ts +349 -0
  1948. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
  1949. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
  1950. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-qwen-cli/index.ts +345 -0
  1951. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/custom-provider-qwen-cli/package.json +16 -0
  1952. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dirty-repo-guard.ts +56 -0
  1953. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/README.md +46 -0
  1954. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
  1955. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  1956. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom/build.sh +152 -0
  1957. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
  1958. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom-component.ts +132 -0
  1959. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom-engine.ts +173 -0
  1960. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/doom-keys.ts +104 -0
  1961. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/index.ts +74 -0
  1962. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/doom-overlay/wad-finder.ts +51 -0
  1963. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-resources/SKILL.md +8 -0
  1964. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-resources/dynamic.json +79 -0
  1965. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-resources/dynamic.md +5 -0
  1966. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-resources/index.ts +15 -0
  1967. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/dynamic-tools.ts +74 -0
  1968. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/event-bus.ts +43 -0
  1969. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/file-trigger.ts +41 -0
  1970. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/git-checkpoint.ts +53 -0
  1971. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/handoff.ts +150 -0
  1972. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/hello.ts +25 -0
  1973. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/inline-bash.ts +94 -0
  1974. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/input-transform.ts +43 -0
  1975. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/interactive-shell.ts +196 -0
  1976. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/mac-system-theme.ts +47 -0
  1977. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/message-renderer.ts +59 -0
  1978. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/minimal-mode.ts +426 -0
  1979. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/modal-editor.ts +85 -0
  1980. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/model-status.ts +31 -0
  1981. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/notify.ts +55 -0
  1982. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/overlay-qa-tests.ts +1348 -0
  1983. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/overlay-test.ts +150 -0
  1984. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/permission-gate.ts +34 -0
  1985. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/pirate.ts +47 -0
  1986. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/plan-mode/README.md +65 -0
  1987. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/plan-mode/index.ts +340 -0
  1988. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/plan-mode/utils.ts +168 -0
  1989. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/preset.ts +397 -0
  1990. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/protected-paths.ts +30 -0
  1991. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/provider-payload.ts +14 -0
  1992. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/qna.ts +119 -0
  1993. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/question.ts +264 -0
  1994. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/questionnaire.ts +427 -0
  1995. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/rainbow-editor.ts +88 -0
  1996. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/reload-runtime.ts +37 -0
  1997. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/rpc-demo.ts +124 -0
  1998. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/sandbox/index.ts +317 -0
  1999. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/sandbox/package-lock.json +92 -0
  2000. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/sandbox/package.json +19 -0
  2001. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/send-user-message.ts +97 -0
  2002. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/session-name.ts +27 -0
  2003. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/shutdown-command.ts +63 -0
  2004. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/snake.ts +343 -0
  2005. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/space-invaders.ts +560 -0
  2006. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/ssh.ts +220 -0
  2007. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/status-line.ts +40 -0
  2008. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/README.md +172 -0
  2009. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents/planner.md +37 -0
  2010. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents/reviewer.md +35 -0
  2011. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents/scout.md +50 -0
  2012. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents/worker.md +24 -0
  2013. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/agents.ts +126 -0
  2014. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/index.ts +964 -0
  2015. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
  2016. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/prompts/implement.md +10 -0
  2017. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
  2018. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/summarize.ts +195 -0
  2019. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/system-prompt-header.ts +17 -0
  2020. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/timed-confirm.ts +70 -0
  2021. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/titlebar-spinner.ts +58 -0
  2022. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/todo.ts +299 -0
  2023. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/tool-override.ts +142 -0
  2024. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/tools.ts +146 -0
  2025. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/trigger-compact.ts +40 -0
  2026. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/truncated-tool.ts +192 -0
  2027. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/widget-placement.ts +17 -0
  2028. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/with-deps/index.ts +32 -0
  2029. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/with-deps/package-lock.json +31 -0
  2030. package/node_modules/@styrene-lab/pi-coding-agent/examples/extensions/with-deps/package.json +22 -0
  2031. package/node_modules/@styrene-lab/pi-coding-agent/examples/rpc-extension-ui.ts +632 -0
  2032. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/01-minimal.ts +22 -0
  2033. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/02-custom-model.ts +49 -0
  2034. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/03-custom-prompt.ts +55 -0
  2035. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/04-skills.ts +46 -0
  2036. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/05-tools.ts +56 -0
  2037. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/06-extensions.ts +88 -0
  2038. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/07-context-files.ts +40 -0
  2039. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/08-prompt-templates.ts +47 -0
  2040. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/09-api-keys-and-oauth.ts +48 -0
  2041. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/10-settings.ts +51 -0
  2042. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/11-sessions.ts +48 -0
  2043. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/12-full-control.ts +82 -0
  2044. package/node_modules/@styrene-lab/pi-coding-agent/examples/sdk/README.md +144 -0
  2045. package/node_modules/@styrene-lab/pi-coding-agent/package.json +99 -0
  2046. package/node_modules/@styrene-lab/pi-tui/README.md +767 -0
  2047. package/node_modules/@styrene-lab/pi-tui/dist/autocomplete.d.ts +50 -0
  2048. package/node_modules/@styrene-lab/pi-tui/dist/autocomplete.d.ts.map +1 -0
  2049. package/node_modules/@styrene-lab/pi-tui/dist/autocomplete.js +635 -0
  2050. package/node_modules/@styrene-lab/pi-tui/dist/autocomplete.js.map +1 -0
  2051. package/node_modules/@styrene-lab/pi-tui/dist/components/box.d.ts +30 -0
  2052. package/node_modules/@styrene-lab/pi-tui/dist/components/box.d.ts.map +1 -0
  2053. package/node_modules/@styrene-lab/pi-tui/dist/components/box.js +122 -0
  2054. package/node_modules/@styrene-lab/pi-tui/dist/components/box.js.map +1 -0
  2055. package/node_modules/@styrene-lab/pi-tui/dist/components/cancellable-loader.d.ts +22 -0
  2056. package/node_modules/@styrene-lab/pi-tui/dist/components/cancellable-loader.d.ts.map +1 -0
  2057. package/node_modules/@styrene-lab/pi-tui/dist/components/cancellable-loader.js +35 -0
  2058. package/node_modules/@styrene-lab/pi-tui/dist/components/cancellable-loader.js.map +1 -0
  2059. package/node_modules/@styrene-lab/pi-tui/dist/components/editor.d.ts +233 -0
  2060. package/node_modules/@styrene-lab/pi-tui/dist/components/editor.d.ts.map +1 -0
  2061. package/node_modules/@styrene-lab/pi-tui/dist/components/editor.js +1844 -0
  2062. package/node_modules/@styrene-lab/pi-tui/dist/components/editor.js.map +1 -0
  2063. package/node_modules/@styrene-lab/pi-tui/dist/components/image.d.ts +28 -0
  2064. package/node_modules/@styrene-lab/pi-tui/dist/components/image.d.ts.map +1 -0
  2065. package/node_modules/@styrene-lab/pi-tui/dist/components/image.js +69 -0
  2066. package/node_modules/@styrene-lab/pi-tui/dist/components/image.js.map +1 -0
  2067. package/node_modules/@styrene-lab/pi-tui/dist/components/input.d.ts +39 -0
  2068. package/node_modules/@styrene-lab/pi-tui/dist/components/input.d.ts.map +1 -0
  2069. package/node_modules/@styrene-lab/pi-tui/dist/components/input.js +464 -0
  2070. package/node_modules/@styrene-lab/pi-tui/dist/components/input.js.map +1 -0
  2071. package/node_modules/@styrene-lab/pi-tui/dist/components/loader.d.ts +21 -0
  2072. package/node_modules/@styrene-lab/pi-tui/dist/components/loader.d.ts.map +1 -0
  2073. package/node_modules/@styrene-lab/pi-tui/dist/components/loader.js +49 -0
  2074. package/node_modules/@styrene-lab/pi-tui/dist/components/loader.js.map +1 -0
  2075. package/node_modules/@styrene-lab/pi-tui/dist/components/markdown.d.ts +95 -0
  2076. package/node_modules/@styrene-lab/pi-tui/dist/components/markdown.d.ts.map +1 -0
  2077. package/node_modules/@styrene-lab/pi-tui/dist/components/markdown.js +655 -0
  2078. package/node_modules/@styrene-lab/pi-tui/dist/components/markdown.js.map +1 -0
  2079. package/node_modules/@styrene-lab/pi-tui/dist/components/select-list.d.ts +50 -0
  2080. package/node_modules/@styrene-lab/pi-tui/dist/components/select-list.d.ts.map +1 -0
  2081. package/node_modules/@styrene-lab/pi-tui/dist/components/select-list.js +159 -0
  2082. package/node_modules/@styrene-lab/pi-tui/dist/components/select-list.js.map +1 -0
  2083. package/node_modules/@styrene-lab/pi-tui/dist/components/settings-list.d.ts +50 -0
  2084. package/node_modules/@styrene-lab/pi-tui/dist/components/settings-list.d.ts.map +1 -0
  2085. package/node_modules/@styrene-lab/pi-tui/dist/components/settings-list.js +185 -0
  2086. package/node_modules/@styrene-lab/pi-tui/dist/components/settings-list.js.map +1 -0
  2087. package/node_modules/@styrene-lab/pi-tui/dist/components/spacer.d.ts +12 -0
  2088. package/node_modules/@styrene-lab/pi-tui/dist/components/spacer.d.ts.map +1 -0
  2089. package/node_modules/@styrene-lab/pi-tui/dist/components/spacer.js +23 -0
  2090. package/node_modules/@styrene-lab/pi-tui/dist/components/spacer.js.map +1 -0
  2091. package/node_modules/@styrene-lab/pi-tui/dist/components/text.d.ts +26 -0
  2092. package/node_modules/@styrene-lab/pi-tui/dist/components/text.d.ts.map +1 -0
  2093. package/node_modules/@styrene-lab/pi-tui/dist/components/text.js +107 -0
  2094. package/node_modules/@styrene-lab/pi-tui/dist/components/text.js.map +1 -0
  2095. package/node_modules/@styrene-lab/pi-tui/dist/components/truncated-text.d.ts +13 -0
  2096. package/node_modules/@styrene-lab/pi-tui/dist/components/truncated-text.d.ts.map +1 -0
  2097. package/node_modules/@styrene-lab/pi-tui/dist/components/truncated-text.js +51 -0
  2098. package/node_modules/@styrene-lab/pi-tui/dist/components/truncated-text.js.map +1 -0
  2099. package/node_modules/@styrene-lab/pi-tui/dist/editor-component.d.ts +39 -0
  2100. package/node_modules/@styrene-lab/pi-tui/dist/editor-component.d.ts.map +1 -0
  2101. package/node_modules/@styrene-lab/pi-tui/dist/editor-component.js +2 -0
  2102. package/node_modules/@styrene-lab/pi-tui/dist/editor-component.js.map +1 -0
  2103. package/node_modules/@styrene-lab/pi-tui/dist/fuzzy.d.ts +16 -0
  2104. package/node_modules/@styrene-lab/pi-tui/dist/fuzzy.d.ts.map +1 -0
  2105. package/node_modules/@styrene-lab/pi-tui/dist/fuzzy.js +107 -0
  2106. package/node_modules/@styrene-lab/pi-tui/dist/fuzzy.js.map +1 -0
  2107. package/node_modules/@styrene-lab/pi-tui/dist/index.d.ts +23 -0
  2108. package/node_modules/@styrene-lab/pi-tui/dist/index.d.ts.map +1 -0
  2109. package/node_modules/@styrene-lab/pi-tui/dist/index.js +32 -0
  2110. package/node_modules/@styrene-lab/pi-tui/dist/index.js.map +1 -0
  2111. package/node_modules/@styrene-lab/pi-tui/dist/keybindings.d.ts +39 -0
  2112. package/node_modules/@styrene-lab/pi-tui/dist/keybindings.d.ts.map +1 -0
  2113. package/node_modules/@styrene-lab/pi-tui/dist/keybindings.js +117 -0
  2114. package/node_modules/@styrene-lab/pi-tui/dist/keybindings.js.map +1 -0
  2115. package/node_modules/@styrene-lab/pi-tui/dist/keys.d.ts +172 -0
  2116. package/node_modules/@styrene-lab/pi-tui/dist/keys.d.ts.map +1 -0
  2117. package/node_modules/@styrene-lab/pi-tui/dist/keys.js +1097 -0
  2118. package/node_modules/@styrene-lab/pi-tui/dist/keys.js.map +1 -0
  2119. package/node_modules/@styrene-lab/pi-tui/dist/kill-ring.d.ts +28 -0
  2120. package/node_modules/@styrene-lab/pi-tui/dist/kill-ring.d.ts.map +1 -0
  2121. package/node_modules/@styrene-lab/pi-tui/dist/kill-ring.js +44 -0
  2122. package/node_modules/@styrene-lab/pi-tui/dist/kill-ring.js.map +1 -0
  2123. package/node_modules/@styrene-lab/pi-tui/dist/stdin-buffer.d.ts +62 -0
  2124. package/node_modules/@styrene-lab/pi-tui/dist/stdin-buffer.d.ts.map +1 -0
  2125. package/node_modules/@styrene-lab/pi-tui/dist/stdin-buffer.js +337 -0
  2126. package/node_modules/@styrene-lab/pi-tui/dist/stdin-buffer.js.map +1 -0
  2127. package/node_modules/@styrene-lab/pi-tui/dist/terminal-image.d.ts +68 -0
  2128. package/node_modules/@styrene-lab/pi-tui/dist/terminal-image.d.ts.map +1 -0
  2129. package/node_modules/@styrene-lab/pi-tui/dist/terminal-image.js +288 -0
  2130. package/node_modules/@styrene-lab/pi-tui/dist/terminal-image.js.map +1 -0
  2131. package/node_modules/@styrene-lab/pi-tui/dist/terminal.d.ts +85 -0
  2132. package/node_modules/@styrene-lab/pi-tui/dist/terminal.d.ts.map +1 -0
  2133. package/node_modules/@styrene-lab/pi-tui/dist/terminal.js +309 -0
  2134. package/node_modules/@styrene-lab/pi-tui/dist/terminal.js.map +1 -0
  2135. package/node_modules/@styrene-lab/pi-tui/dist/tui.d.ts +220 -0
  2136. package/node_modules/@styrene-lab/pi-tui/dist/tui.d.ts.map +1 -0
  2137. package/node_modules/@styrene-lab/pi-tui/dist/tui.js +977 -0
  2138. package/node_modules/@styrene-lab/pi-tui/dist/tui.js.map +1 -0
  2139. package/node_modules/@styrene-lab/pi-tui/dist/undo-stack.d.ts +17 -0
  2140. package/node_modules/@styrene-lab/pi-tui/dist/undo-stack.d.ts.map +1 -0
  2141. package/node_modules/@styrene-lab/pi-tui/dist/undo-stack.js +25 -0
  2142. package/node_modules/@styrene-lab/pi-tui/dist/undo-stack.js.map +1 -0
  2143. package/node_modules/@styrene-lab/pi-tui/dist/utils.d.ts +78 -0
  2144. package/node_modules/@styrene-lab/pi-tui/dist/utils.d.ts.map +1 -0
  2145. package/node_modules/@styrene-lab/pi-tui/dist/utils.js +815 -0
  2146. package/node_modules/@styrene-lab/pi-tui/dist/utils.js.map +1 -0
  2147. package/node_modules/@styrene-lab/pi-tui/package.json +52 -0
  2148. package/node_modules/ajv/.runkit_example.js +23 -0
  2149. package/node_modules/ajv/LICENSE +22 -0
  2150. package/node_modules/ajv/README.md +207 -0
  2151. package/node_modules/ajv/dist/2019.d.ts +19 -0
  2152. package/node_modules/ajv/dist/2019.js +61 -0
  2153. package/node_modules/ajv/dist/2019.js.map +1 -0
  2154. package/node_modules/ajv/dist/2020.d.ts +19 -0
  2155. package/node_modules/ajv/dist/2020.js +55 -0
  2156. package/node_modules/ajv/dist/2020.js.map +1 -0
  2157. package/node_modules/ajv/dist/ajv.d.ts +18 -0
  2158. package/node_modules/ajv/dist/ajv.js +50 -0
  2159. package/node_modules/ajv/dist/ajv.js.map +1 -0
  2160. package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  2161. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  2162. package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  2163. package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  2164. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  2165. package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  2166. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  2167. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  2168. package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  2169. package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  2170. package/node_modules/ajv/dist/compile/errors.js +123 -0
  2171. package/node_modules/ajv/dist/compile/errors.js.map +1 -0
  2172. package/node_modules/ajv/dist/compile/index.d.ts +80 -0
  2173. package/node_modules/ajv/dist/compile/index.js +242 -0
  2174. package/node_modules/ajv/dist/compile/index.js.map +1 -0
  2175. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  2176. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  2177. package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  2178. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  2179. package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  2180. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  2181. package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  2182. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  2183. package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  2184. package/node_modules/ajv/dist/compile/names.d.ts +20 -0
  2185. package/node_modules/ajv/dist/compile/names.js +28 -0
  2186. package/node_modules/ajv/dist/compile/names.js.map +1 -0
  2187. package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  2188. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  2189. package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  2190. package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  2191. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  2192. package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  2193. package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  2194. package/node_modules/ajv/dist/compile/rules.js +26 -0
  2195. package/node_modules/ajv/dist/compile/rules.js.map +1 -0
  2196. package/node_modules/ajv/dist/compile/util.d.ts +40 -0
  2197. package/node_modules/ajv/dist/compile/util.js +178 -0
  2198. package/node_modules/ajv/dist/compile/util.js.map +1 -0
  2199. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  2200. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  2201. package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  2202. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  2203. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  2204. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  2205. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  2206. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  2207. package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  2208. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  2209. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  2210. package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  2211. package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  2212. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  2213. package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  2214. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  2215. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  2216. package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  2217. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  2218. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  2219. package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  2220. package/node_modules/ajv/dist/core.d.ts +174 -0
  2221. package/node_modules/ajv/dist/core.js +618 -0
  2222. package/node_modules/ajv/dist/core.js.map +1 -0
  2223. package/node_modules/ajv/dist/jtd.d.ts +47 -0
  2224. package/node_modules/ajv/dist/jtd.js +72 -0
  2225. package/node_modules/ajv/dist/jtd.js.map +1 -0
  2226. package/node_modules/ajv/dist/refs/data.json +13 -0
  2227. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  2228. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  2229. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  2230. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  2231. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  2232. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  2233. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  2234. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  2235. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  2236. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  2237. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  2238. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  2239. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  2240. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  2241. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  2242. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  2243. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  2244. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  2245. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  2246. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  2247. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  2248. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  2249. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  2250. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  2251. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  2252. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  2253. package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  2254. package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  2255. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  2256. package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  2257. package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  2258. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  2259. package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  2260. package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  2261. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  2262. package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  2263. package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  2264. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  2265. package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  2266. package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  2267. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  2268. package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  2269. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  2270. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  2271. package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  2272. package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  2273. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  2274. package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  2275. package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  2276. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  2277. package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  2278. package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  2279. package/node_modules/ajv/dist/standalone/index.js +90 -0
  2280. package/node_modules/ajv/dist/standalone/index.js.map +1 -0
  2281. package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  2282. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  2283. package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  2284. package/node_modules/ajv/dist/types/index.d.ts +183 -0
  2285. package/node_modules/ajv/dist/types/index.js +3 -0
  2286. package/node_modules/ajv/dist/types/index.js.map +1 -0
  2287. package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  2288. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  2289. package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  2290. package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  2291. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  2292. package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  2293. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  2294. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  2295. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  2296. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  2297. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  2298. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  2299. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  2300. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  2301. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  2302. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  2303. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  2304. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  2305. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  2306. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  2307. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  2308. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  2309. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  2310. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  2311. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  2312. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  2313. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  2314. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  2315. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  2316. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  2317. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  2318. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  2319. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  2320. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  2321. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  2322. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  2323. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  2324. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  2325. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  2326. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  2327. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  2328. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  2329. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  2330. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  2331. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  2332. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  2333. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  2334. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  2335. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  2336. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  2337. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  2338. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  2339. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  2340. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  2341. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  2342. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  2343. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  2344. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  2345. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  2346. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  2347. package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  2348. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  2349. package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  2350. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  2351. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  2352. package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  2353. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  2354. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  2355. package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  2356. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  2357. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  2358. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  2359. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  2360. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  2361. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  2362. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  2363. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  2364. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  2365. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  2366. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  2367. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  2368. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  2369. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  2370. package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  2371. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  2372. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  2373. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  2374. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  2375. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  2376. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  2377. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  2378. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  2379. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  2380. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  2381. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  2382. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  2383. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  2384. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  2385. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  2386. package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  2387. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  2388. package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  2389. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  2390. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  2391. package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  2392. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  2393. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  2394. package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  2395. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  2396. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  2397. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  2398. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  2399. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  2400. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  2401. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  2402. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  2403. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  2404. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  2405. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  2406. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  2407. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  2408. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  2409. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  2410. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  2411. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  2412. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  2413. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  2414. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  2415. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  2416. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  2417. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  2418. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  2419. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  2420. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  2421. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  2422. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  2423. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  2424. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  2425. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  2426. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  2427. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  2428. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  2429. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  2430. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  2431. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  2432. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  2433. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  2434. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  2435. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  2436. package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  2437. package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  2438. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  2439. package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  2440. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  2441. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  2442. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  2443. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  2444. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  2445. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  2446. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  2447. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  2448. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  2449. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  2450. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  2451. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  2452. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  2453. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  2454. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  2455. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  2456. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  2457. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  2458. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  2459. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  2460. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  2461. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  2462. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  2463. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  2464. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  2465. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  2466. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  2467. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  2468. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  2469. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  2470. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  2471. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  2472. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  2473. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  2474. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  2475. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  2476. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  2477. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  2478. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  2479. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  2480. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  2481. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  2482. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  2483. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  2484. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  2485. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  2486. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  2487. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  2488. package/node_modules/ajv/lib/2019.ts +81 -0
  2489. package/node_modules/ajv/lib/2020.ts +75 -0
  2490. package/node_modules/ajv/lib/ajv.ts +70 -0
  2491. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  2492. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  2493. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  2494. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  2495. package/node_modules/ajv/lib/compile/index.ts +324 -0
  2496. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  2497. package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  2498. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  2499. package/node_modules/ajv/lib/compile/names.ts +27 -0
  2500. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  2501. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  2502. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  2503. package/node_modules/ajv/lib/compile/util.ts +213 -0
  2504. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  2505. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  2506. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  2507. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  2508. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  2509. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  2510. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  2511. package/node_modules/ajv/lib/core.ts +892 -0
  2512. package/node_modules/ajv/lib/jtd.ts +132 -0
  2513. package/node_modules/ajv/lib/refs/data.json +13 -0
  2514. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  2515. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  2516. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  2517. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  2518. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  2519. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  2520. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  2521. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  2522. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  2523. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  2524. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  2525. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  2526. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  2527. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  2528. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  2529. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  2530. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  2531. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  2532. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  2533. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  2534. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  2535. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  2536. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  2537. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  2538. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  2539. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  2540. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  2541. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  2542. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  2543. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  2544. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  2545. package/node_modules/ajv/lib/types/index.ts +244 -0
  2546. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  2547. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  2548. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  2549. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  2550. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  2551. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  2552. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  2553. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  2554. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  2555. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  2556. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  2557. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  2558. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  2559. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  2560. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  2561. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  2562. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  2563. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  2564. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  2565. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  2566. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  2567. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  2568. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  2569. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  2570. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  2571. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  2572. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  2573. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  2574. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  2575. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  2576. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  2577. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  2578. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  2579. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  2580. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  2581. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  2582. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  2583. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  2584. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  2585. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  2586. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  2587. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  2588. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  2589. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  2590. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  2591. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  2592. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  2593. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  2594. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  2595. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  2596. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  2597. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  2598. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  2599. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  2600. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  2601. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  2602. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  2603. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  2604. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  2605. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  2606. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  2607. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  2608. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  2609. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  2610. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  2611. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  2612. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  2613. package/node_modules/ajv/package.json +127 -0
  2614. package/node_modules/ajv-formats/LICENSE +21 -0
  2615. package/node_modules/ajv-formats/README.md +125 -0
  2616. package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
  2617. package/node_modules/ajv-formats/dist/formats.js +208 -0
  2618. package/node_modules/ajv-formats/dist/formats.js.map +1 -0
  2619. package/node_modules/ajv-formats/dist/index.d.ts +15 -0
  2620. package/node_modules/ajv-formats/dist/index.js +37 -0
  2621. package/node_modules/ajv-formats/dist/index.js.map +1 -0
  2622. package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
  2623. package/node_modules/ajv-formats/dist/limit.js +69 -0
  2624. package/node_modules/ajv-formats/dist/limit.js.map +1 -0
  2625. package/node_modules/ajv-formats/package.json +74 -0
  2626. package/node_modules/ajv-formats/src/formats.ts +269 -0
  2627. package/node_modules/ajv-formats/src/index.ts +62 -0
  2628. package/node_modules/ajv-formats/src/limit.ts +99 -0
  2629. package/node_modules/fast-deep-equal/LICENSE +21 -0
  2630. package/node_modules/fast-deep-equal/README.md +96 -0
  2631. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  2632. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  2633. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  2634. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  2635. package/node_modules/fast-deep-equal/index.d.ts +4 -0
  2636. package/node_modules/fast-deep-equal/index.js +46 -0
  2637. package/node_modules/fast-deep-equal/package.json +61 -0
  2638. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  2639. package/node_modules/fast-deep-equal/react.js +53 -0
  2640. package/node_modules/fast-uri/.gitattributes +2 -0
  2641. package/node_modules/fast-uri/.github/.stale.yml +21 -0
  2642. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  2643. package/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  2644. package/node_modules/fast-uri/.github/workflows/ci.yml +101 -0
  2645. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  2646. package/node_modules/fast-uri/LICENSE +32 -0
  2647. package/node_modules/fast-uri/README.md +143 -0
  2648. package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  2649. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  2650. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  2651. package/node_modules/fast-uri/benchmark/package.json +17 -0
  2652. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  2653. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  2654. package/node_modules/fast-uri/eslint.config.js +6 -0
  2655. package/node_modules/fast-uri/index.js +340 -0
  2656. package/node_modules/fast-uri/lib/schemes.js +267 -0
  2657. package/node_modules/fast-uri/lib/utils.js +336 -0
  2658. package/node_modules/fast-uri/package.json +69 -0
  2659. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  2660. package/node_modules/fast-uri/test/equal.test.js +108 -0
  2661. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
  2662. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  2663. package/node_modules/fast-uri/test/parse.test.js +318 -0
  2664. package/node_modules/fast-uri/test/resolve.test.js +78 -0
  2665. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  2666. package/node_modules/fast-uri/test/serialize.test.js +151 -0
  2667. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  2668. package/node_modules/fast-uri/test/uri-js.test.js +912 -0
  2669. package/node_modules/fast-uri/test/util.test.js +38 -0
  2670. package/node_modules/fast-uri/tsconfig.json +9 -0
  2671. package/node_modules/fast-uri/types/index.d.ts +60 -0
  2672. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  2673. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  2674. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  2675. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  2676. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  2677. package/node_modules/json-schema-traverse/LICENSE +21 -0
  2678. package/node_modules/json-schema-traverse/README.md +95 -0
  2679. package/node_modules/json-schema-traverse/index.d.ts +40 -0
  2680. package/node_modules/json-schema-traverse/index.js +93 -0
  2681. package/node_modules/json-schema-traverse/package.json +43 -0
  2682. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  2683. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  2684. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  2685. package/node_modules/mime-db/HISTORY.md +541 -0
  2686. package/node_modules/mime-db/LICENSE +23 -0
  2687. package/node_modules/mime-db/README.md +109 -0
  2688. package/node_modules/mime-db/db.json +9342 -0
  2689. package/node_modules/mime-db/index.js +12 -0
  2690. package/node_modules/mime-db/package.json +56 -0
  2691. package/node_modules/mime-types/HISTORY.md +428 -0
  2692. package/node_modules/mime-types/LICENSE +23 -0
  2693. package/node_modules/mime-types/README.md +126 -0
  2694. package/node_modules/mime-types/index.js +211 -0
  2695. package/node_modules/mime-types/mimeScore.js +57 -0
  2696. package/node_modules/mime-types/package.json +49 -0
  2697. package/node_modules/require-from-string/index.js +34 -0
  2698. package/node_modules/require-from-string/license +21 -0
  2699. package/node_modules/require-from-string/package.json +28 -0
  2700. package/node_modules/require-from-string/readme.md +56 -0
  2701. package/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
  2702. package/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
  2703. package/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
  2704. package/node_modules/zod-to-json-schema/LICENSE +15 -0
  2705. package/node_modules/zod-to-json-schema/README.md +390 -0
  2706. package/node_modules/zod-to-json-schema/changelog.md +82 -0
  2707. package/node_modules/zod-to-json-schema/contributing.md +9 -0
  2708. package/node_modules/zod-to-json-schema/createIndex.ts +32 -0
  2709. package/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
  2710. package/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
  2711. package/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
  2712. package/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
  2713. package/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
  2714. package/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
  2715. package/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
  2716. package/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
  2717. package/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
  2718. package/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
  2719. package/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
  2720. package/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
  2721. package/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
  2722. package/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
  2723. package/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
  2724. package/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
  2725. package/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
  2726. package/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
  2727. package/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
  2728. package/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
  2729. package/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
  2730. package/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
  2731. package/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
  2732. package/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
  2733. package/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
  2734. package/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
  2735. package/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
  2736. package/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
  2737. package/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
  2738. package/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
  2739. package/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
  2740. package/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
  2741. package/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
  2742. package/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
  2743. package/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
  2744. package/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
  2745. package/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
  2746. package/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
  2747. package/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
  2748. package/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
  2749. package/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
  2750. package/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
  2751. package/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
  2752. package/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
  2753. package/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
  2754. package/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
  2755. package/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
  2756. package/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  2757. package/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
  2758. package/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
  2759. package/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
  2760. package/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
  2761. package/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
  2762. package/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
  2763. package/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
  2764. package/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
  2765. package/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
  2766. package/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
  2767. package/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
  2768. package/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
  2769. package/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
  2770. package/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
  2771. package/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
  2772. package/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
  2773. package/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
  2774. package/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
  2775. package/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
  2776. package/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
  2777. package/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
  2778. package/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
  2779. package/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
  2780. package/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
  2781. package/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
  2782. package/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
  2783. package/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
  2784. package/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
  2785. package/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
  2786. package/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
  2787. package/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
  2788. package/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
  2789. package/node_modules/zod-to-json-schema/dist/types/Options.d.ts +37 -0
  2790. package/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +17 -0
  2791. package/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +15 -0
  2792. package/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
  2793. package/node_modules/zod-to-json-schema/dist/types/index.d.ts +40 -0
  2794. package/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +4 -0
  2795. package/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +34 -0
  2796. package/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -0
  2797. package/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +12 -0
  2798. package/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +14 -0
  2799. package/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +4 -0
  2800. package/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +3 -0
  2801. package/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +3 -0
  2802. package/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +15 -0
  2803. package/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +6 -0
  2804. package/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +4 -0
  2805. package/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +6 -0
  2806. package/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +8 -0
  2807. package/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +9 -0
  2808. package/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +15 -0
  2809. package/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +6 -0
  2810. package/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +6 -0
  2811. package/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +5 -0
  2812. package/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +10 -0
  2813. package/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +13 -0
  2814. package/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +10 -0
  2815. package/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +4 -0
  2816. package/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +5 -0
  2817. package/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +4 -0
  2818. package/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +3 -0
  2819. package/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +13 -0
  2820. package/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +13 -0
  2821. package/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +73 -0
  2822. package/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +13 -0
  2823. package/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +6 -0
  2824. package/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +23 -0
  2825. package/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -0
  2826. package/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +5 -0
  2827. package/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +10 -0
  2828. package/node_modules/zod-to-json-schema/package.json +78 -0
  2829. package/node_modules/zod-to-json-schema/postcjs.ts +3 -0
  2830. package/node_modules/zod-to-json-schema/postesm.ts +3 -0
  2831. package/npm/platform-packages/darwin-arm64/README.md +8 -0
  2832. package/npm/platform-packages/darwin-arm64/package.json +26 -0
  2833. package/npm/platform-packages/darwin-x64/README.md +8 -0
  2834. package/npm/platform-packages/darwin-x64/package.json +20 -0
  2835. package/npm/platform-packages/linux-arm64/README.md +8 -0
  2836. package/npm/platform-packages/linux-arm64/package.json +20 -0
  2837. package/npm/platform-packages/linux-x64/README.md +8 -0
  2838. package/npm/platform-packages/linux-x64/package.json +20 -0
  2839. package/package.json +105 -0
  2840. package/prompts/init.md +75 -0
  2841. package/prompts/new-repo.md +54 -0
  2842. package/prompts/oci-login.md +56 -0
  2843. package/prompts/status.md +50 -0
  2844. package/scripts/build-platform-packages.sh +80 -0
  2845. package/scripts/check-provider-drift.sh +82 -0
  2846. package/scripts/check-vendor-dist.mjs +54 -0
  2847. package/scripts/check-vendor-dist.test.mjs +129 -0
  2848. package/scripts/extract-provider-contracts.sh +133 -0
  2849. package/scripts/preinstall.sh +60 -0
  2850. package/scripts/publish-pi-mono.sh +76 -0
  2851. package/skills/cleave/SKILL.md +284 -0
  2852. package/skills/git/SKILL.md +217 -0
  2853. package/skills/git/_reference/ci-validation.md +204 -0
  2854. package/skills/oci/SKILL.md +338 -0
  2855. package/skills/openspec/SKILL.md +346 -0
  2856. package/skills/pi-extensions/SKILL.md +191 -0
  2857. package/skills/pi-tui/SKILL.md +517 -0
  2858. package/skills/python/SKILL.md +189 -0
  2859. package/skills/rust/SKILL.md +268 -0
  2860. package/skills/security/SKILL.md +206 -0
  2861. package/skills/style/SKILL.md +264 -0
  2862. package/skills/typescript/SKILL.md +225 -0
  2863. package/skills/vault/SKILL.md +102 -0
  2864. package/themes/alpharius-legacy.json +85 -0
  2865. package/themes/alpharius.conf +59 -0
  2866. package/themes/alpharius.json +89 -0
@@ -0,0 +1,3832 @@
1
+ /**
2
+ * Interactive mode for the coding agent.
3
+ * Handles TUI rendering and user interaction, delegating business logic to AgentSession.
4
+ */
5
+ import * as crypto from "node:crypto";
6
+ import * as fs from "node:fs";
7
+ import * as os from "node:os";
8
+ import * as path from "node:path";
9
+ import { CombinedAutocompleteProvider, Container, fuzzyFilter, Loader, Markdown, matchesKey, ProcessTerminal, Spacer, Text, TruncatedText, TUI, visibleWidth, } from "@styrene-lab/pi-tui";
10
+ import { spawn, spawnSync } from "child_process";
11
+ import { APP_NAME, getAuthPath, getDebugLogPath, getShareViewerUrl, getUpdateInstruction, VERSION, } from "../../config.js";
12
+ import { parseSkillBlock } from "../../core/agent-session.js";
13
+ import { FooterDataProvider } from "../../core/footer-data-provider.js";
14
+ import { KeybindingsManager } from "../../core/keybindings.js";
15
+ import { createCompactionSummaryMessage } from "../../core/messages.js";
16
+ import { resolveModelScope } from "../../core/model-resolver.js";
17
+ import { SessionManager } from "../../core/session-manager.js";
18
+ import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
19
+ import { getChangelogPath, getNewEntries, parseChangelog } from "../../utils/changelog.js";
20
+ import { copyToClipboard } from "../../utils/clipboard.js";
21
+ import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
22
+ import { clipboardModuleName } from "../../utils/clipboard-native.js";
23
+ import { ensureTool } from "../../utils/tools-manager.js";
24
+ import { ArminComponent } from "./components/armin.js";
25
+ import { AssistantMessageComponent } from "./components/assistant-message.js";
26
+ import { BashExecutionComponent } from "./components/bash-execution.js";
27
+ import { BorderedLoader } from "./components/bordered-loader.js";
28
+ import { BranchSummaryMessageComponent } from "./components/branch-summary-message.js";
29
+ import { CompactionSummaryMessageComponent } from "./components/compaction-summary-message.js";
30
+ import { CustomEditor } from "./components/custom-editor.js";
31
+ import { CustomMessageComponent } from "./components/custom-message.js";
32
+ import { DaxnutsComponent } from "./components/daxnuts.js";
33
+ import { DynamicBorder } from "./components/dynamic-border.js";
34
+ import { ExtensionEditorComponent } from "./components/extension-editor.js";
35
+ import { ExtensionInputComponent } from "./components/extension-input.js";
36
+ import { ExtensionSelectorComponent } from "./components/extension-selector.js";
37
+ function parseVersionParts(version) {
38
+ const matches = version.match(/\d+/g);
39
+ if (!matches)
40
+ return [];
41
+ return matches.map((part) => Number.parseInt(part, 10));
42
+ }
43
+ export function isVersionNewer(candidateVersion, currentVersion) {
44
+ const candidate = parseVersionParts(candidateVersion);
45
+ const current = parseVersionParts(currentVersion);
46
+ const length = Math.max(candidate.length, current.length);
47
+ for (let i = 0; i < length; i += 1) {
48
+ const candidatePart = candidate[i] ?? 0;
49
+ const currentPart = current[i] ?? 0;
50
+ if (candidatePart > currentPart)
51
+ return true;
52
+ if (candidatePart < currentPart)
53
+ return false;
54
+ }
55
+ return false;
56
+ }
57
+ import { FooterComponent } from "./components/footer.js";
58
+ import { appKey, appKeyHint, editorKey, keyHint, rawKeyHint } from "./components/keybinding-hints.js";
59
+ import { LoginDialogComponent } from "./components/login-dialog.js";
60
+ import { ModelSelectorComponent } from "./components/model-selector.js";
61
+ import { OAuthSelectorComponent } from "./components/oauth-selector.js";
62
+ import { ScopedModelsSelectorComponent } from "./components/scoped-models-selector.js";
63
+ import { SessionSelectorComponent } from "./components/session-selector.js";
64
+ import { SettingsSelectorComponent } from "./components/settings-selector.js";
65
+ import { SkillInvocationMessageComponent } from "./components/skill-invocation-message.js";
66
+ import { ToolExecutionComponent } from "./components/tool-execution.js";
67
+ import { TreeSelectorComponent } from "./components/tree-selector.js";
68
+ import { UserMessageComponent } from "./components/user-message.js";
69
+ import { UserMessageSelectorComponent } from "./components/user-message-selector.js";
70
+ import { getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getThemeByName, initTheme, onThemeChange, setRegisteredThemes, setTheme, setThemeInstance, Theme, theme, } from "./theme/theme.js";
71
+ function isExpandable(obj) {
72
+ return typeof obj === "object" && obj !== null && "setExpanded" in obj && typeof obj.setExpanded === "function";
73
+ }
74
+ export class InteractiveMode {
75
+ options;
76
+ session;
77
+ ui;
78
+ chatContainer;
79
+ pendingMessagesContainer;
80
+ statusContainer;
81
+ defaultEditor;
82
+ editor;
83
+ autocompleteProvider;
84
+ fdPath;
85
+ editorContainer;
86
+ footer;
87
+ footerDataProvider;
88
+ keybindings;
89
+ version;
90
+ isInitialized = false;
91
+ onInputCallback;
92
+ loadingAnimation = undefined;
93
+ pendingWorkingMessage = undefined;
94
+ defaultWorkingMessage = "Working...";
95
+ lastSigintTime = 0;
96
+ lastEscapeTime = 0;
97
+ changelogMarkdown = undefined;
98
+ // Status line tracking (for mutating immediately-sequential status updates)
99
+ lastStatusSpacer = undefined;
100
+ lastStatusText = undefined;
101
+ // Streaming message tracking
102
+ streamingComponent = undefined;
103
+ streamingMessage = undefined;
104
+ // Tool execution tracking: toolCallId -> component
105
+ pendingTools = new Map();
106
+ // Tool output expansion state
107
+ toolOutputExpanded = false;
108
+ // Thinking block visibility state
109
+ hideThinkingBlock = false;
110
+ // Skill commands: command name -> skill file path
111
+ skillCommands = new Map();
112
+ // Agent subscription unsubscribe function
113
+ unsubscribe;
114
+ // Track if editor is in bash mode (text starts with !)
115
+ isBashMode = false;
116
+ // Track current bash execution component
117
+ bashComponent = undefined;
118
+ // Track pending bash components (shown in pending area, moved to chat on submit)
119
+ pendingBashComponents = [];
120
+ // Auto-compaction state
121
+ autoCompactionLoader = undefined;
122
+ autoCompactionEscapeHandler;
123
+ // Auto-retry state
124
+ retryLoader = undefined;
125
+ retryEscapeHandler;
126
+ // Messages queued while compaction is running
127
+ compactionQueuedMessages = [];
128
+ // Shutdown state
129
+ shutdownRequested = false;
130
+ // Extension UI state
131
+ extensionSelector = undefined;
132
+ extensionInput = undefined;
133
+ extensionEditor = undefined;
134
+ extensionTerminalInputUnsubscribers = new Set();
135
+ // Extension widgets (components rendered above/below the editor)
136
+ extensionWidgetsAbove = new Map();
137
+ extensionWidgetsBelow = new Map();
138
+ widgetContainerAbove;
139
+ widgetContainerBelow;
140
+ // Custom footer from extension (undefined = use built-in footer)
141
+ customFooter = undefined;
142
+ // Header container that holds the built-in or custom header
143
+ headerContainer;
144
+ // Built-in header (logo + keybinding hints + changelog)
145
+ builtInHeader = undefined;
146
+ // Custom header from extension (undefined = use built-in header)
147
+ customHeader = undefined;
148
+ // Convenience accessors
149
+ get agent() {
150
+ return this.session.agent;
151
+ }
152
+ get sessionManager() {
153
+ return this.session.sessionManager;
154
+ }
155
+ get settingsManager() {
156
+ return this.session.settingsManager;
157
+ }
158
+ constructor(session, options = {}) {
159
+ this.options = options;
160
+ this.session = session;
161
+ this.version = VERSION;
162
+ this.ui = new TUI(new ProcessTerminal(), this.settingsManager.getShowHardwareCursor());
163
+ this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink());
164
+ this.headerContainer = new Container();
165
+ this.chatContainer = new Container();
166
+ this.pendingMessagesContainer = new Container();
167
+ this.statusContainer = new Container();
168
+ this.widgetContainerAbove = new Container();
169
+ this.widgetContainerBelow = new Container();
170
+ this.keybindings = KeybindingsManager.create();
171
+ const editorPaddingX = this.settingsManager.getEditorPaddingX();
172
+ const autocompleteMaxVisible = this.settingsManager.getAutocompleteMaxVisible();
173
+ this.defaultEditor = new CustomEditor(this.ui, getEditorTheme(), this.keybindings, {
174
+ paddingX: editorPaddingX,
175
+ autocompleteMaxVisible,
176
+ });
177
+ this.editor = this.defaultEditor;
178
+ this.editorContainer = new Container();
179
+ this.editorContainer.addChild(this.editor);
180
+ this.footerDataProvider = new FooterDataProvider();
181
+ this.footer = new FooterComponent(session, this.footerDataProvider);
182
+ this.footer.setAutoCompactEnabled(session.autoCompactionEnabled);
183
+ // Load hide thinking block setting
184
+ this.hideThinkingBlock = this.settingsManager.getHideThinkingBlock();
185
+ // Register themes from resource loader and initialize
186
+ setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
187
+ initTheme(this.settingsManager.getTheme(), true);
188
+ }
189
+ setupAutocomplete(fdPath) {
190
+ // Define commands for autocomplete
191
+ const slashCommands = BUILTIN_SLASH_COMMANDS.map((command) => ({
192
+ name: command.name,
193
+ description: command.description,
194
+ }));
195
+ const modelCommand = slashCommands.find((command) => command.name === "model");
196
+ if (modelCommand) {
197
+ modelCommand.getArgumentCompletions = (prefix) => {
198
+ // Get available models (scoped or from registry)
199
+ const models = this.session.scopedModels.length > 0
200
+ ? this.session.scopedModels.map((s) => s.model)
201
+ : this.session.modelRegistry.getAvailable();
202
+ if (models.length === 0)
203
+ return null;
204
+ // Create items with provider/id format
205
+ const items = models.map((m) => ({
206
+ id: m.id,
207
+ provider: m.provider,
208
+ label: `${m.provider}/${m.id}`,
209
+ }));
210
+ // Fuzzy filter by model ID + provider (allows "opus anthropic" to match)
211
+ const filtered = fuzzyFilter(items, prefix, (item) => `${item.id} ${item.provider}`);
212
+ if (filtered.length === 0)
213
+ return null;
214
+ return filtered.map((item) => ({
215
+ value: item.label,
216
+ label: item.id,
217
+ description: item.provider,
218
+ }));
219
+ };
220
+ }
221
+ // Convert prompt templates to SlashCommand format for autocomplete
222
+ const templateCommands = this.session.promptTemplates.map((cmd) => ({
223
+ name: cmd.name,
224
+ description: cmd.description,
225
+ }));
226
+ // Convert extension commands to SlashCommand format
227
+ const builtinCommandNames = new Set(slashCommands.map((c) => c.name));
228
+ const extensionCommands = (this.session.extensionRunner?.getRegisteredCommands(builtinCommandNames) ?? []).map((cmd) => ({
229
+ name: cmd.name,
230
+ description: cmd.description ?? "(extension command)",
231
+ getArgumentCompletions: cmd.getArgumentCompletions,
232
+ }));
233
+ // Build skill commands from session.skills (if enabled)
234
+ this.skillCommands.clear();
235
+ const skillCommandList = [];
236
+ if (this.settingsManager.getEnableSkillCommands()) {
237
+ for (const skill of this.session.resourceLoader.getSkills().skills) {
238
+ const commandName = `skill:${skill.name}`;
239
+ this.skillCommands.set(commandName, skill.filePath);
240
+ skillCommandList.push({ name: commandName, description: skill.description });
241
+ }
242
+ }
243
+ // Setup autocomplete
244
+ this.autocompleteProvider = new CombinedAutocompleteProvider([...slashCommands, ...templateCommands, ...extensionCommands, ...skillCommandList], process.cwd(), fdPath);
245
+ this.defaultEditor.setAutocompleteProvider(this.autocompleteProvider);
246
+ if (this.editor !== this.defaultEditor) {
247
+ this.editor.setAutocompleteProvider?.(this.autocompleteProvider);
248
+ }
249
+ }
250
+ async init() {
251
+ if (this.isInitialized)
252
+ return;
253
+ // Load changelog (only show new entries, skip for resumed sessions)
254
+ this.changelogMarkdown = this.getChangelogForDisplay();
255
+ // Ensure fd and rg are available (downloads if missing, adds to PATH via getBinDir)
256
+ // Both are needed: fd for autocomplete, rg for grep tool and bash commands
257
+ const [fdPath] = await Promise.all([ensureTool("fd"), ensureTool("rg")]);
258
+ this.fdPath = fdPath;
259
+ // Add header container as first child
260
+ this.ui.addChild(this.headerContainer);
261
+ // Add header with keybindings from config (unless silenced)
262
+ if (this.options.verbose || !this.settingsManager.getQuietStartup()) {
263
+ const logo = theme.bold(theme.fg("accent", APP_NAME)) + theme.fg("dim", ` v${this.version}`);
264
+ // Build startup instructions using keybinding hint helpers
265
+ const kb = this.keybindings;
266
+ const hint = (action, desc) => appKeyHint(kb, action, desc);
267
+ const instructions = [
268
+ hint("interrupt", "to interrupt"),
269
+ hint("clear", "to clear"),
270
+ rawKeyHint(`${appKey(kb, "clear")} twice`, "to exit"),
271
+ hint("exit", "to exit (empty)"),
272
+ hint("suspend", "to suspend"),
273
+ keyHint("deleteToLineEnd", "to delete to end"),
274
+ hint("cycleThinkingLevel", "to cycle thinking level"),
275
+ rawKeyHint(`${appKey(kb, "cycleModelForward")}/${appKey(kb, "cycleModelBackward")}`, "to cycle models"),
276
+ hint("selectModel", "to select model"),
277
+ hint("expandTools", "to expand tools"),
278
+ hint("toggleThinking", "to expand thinking"),
279
+ hint("externalEditor", "for external editor"),
280
+ rawKeyHint("/", "for commands"),
281
+ rawKeyHint("!", "to run bash"),
282
+ rawKeyHint("!!", "to run bash (no context)"),
283
+ hint("followUp", "to queue follow-up"),
284
+ hint("dequeue", "to edit all queued messages"),
285
+ hint("pasteImage", "to paste image"),
286
+ rawKeyHint("drop files", "to attach"),
287
+ ].join("\n");
288
+ this.builtInHeader = new Text(`${logo}\n${instructions}`, 1, 0);
289
+ // Setup UI layout
290
+ this.headerContainer.addChild(new Spacer(1));
291
+ this.headerContainer.addChild(this.builtInHeader);
292
+ this.headerContainer.addChild(new Spacer(1));
293
+ // Add changelog if provided
294
+ if (this.changelogMarkdown) {
295
+ this.headerContainer.addChild(new DynamicBorder());
296
+ if (this.settingsManager.getCollapseChangelog()) {
297
+ const versionMatch = this.changelogMarkdown.match(/##\s+\[?(\d+\.\d+\.\d+)\]?/);
298
+ const latestVersion = versionMatch ? versionMatch[1] : this.version;
299
+ const condensedText = `Updated to v${latestVersion}. Use ${theme.bold("/changelog")} to view full changelog.`;
300
+ this.headerContainer.addChild(new Text(condensedText, 1, 0));
301
+ }
302
+ else {
303
+ this.headerContainer.addChild(new Text(theme.bold(theme.fg("accent", "What's New")), 1, 0));
304
+ this.headerContainer.addChild(new Spacer(1));
305
+ this.headerContainer.addChild(new Markdown(this.changelogMarkdown.trim(), 1, 0, this.getMarkdownThemeWithSettings()));
306
+ this.headerContainer.addChild(new Spacer(1));
307
+ }
308
+ this.headerContainer.addChild(new DynamicBorder());
309
+ }
310
+ }
311
+ else {
312
+ // Minimal header when silenced
313
+ this.builtInHeader = new Text("", 0, 0);
314
+ this.headerContainer.addChild(this.builtInHeader);
315
+ if (this.changelogMarkdown) {
316
+ // Still show changelog notification even in silent mode
317
+ this.headerContainer.addChild(new Spacer(1));
318
+ const versionMatch = this.changelogMarkdown.match(/##\s+\[?(\d+\.\d+\.\d+)\]?/);
319
+ const latestVersion = versionMatch ? versionMatch[1] : this.version;
320
+ const condensedText = `Updated to v${latestVersion}. Use ${theme.bold("/changelog")} to view full changelog.`;
321
+ this.headerContainer.addChild(new Text(condensedText, 1, 0));
322
+ }
323
+ }
324
+ this.ui.addChild(this.chatContainer);
325
+ this.ui.addChild(this.pendingMessagesContainer);
326
+ this.ui.addChild(this.statusContainer);
327
+ this.renderWidgets(); // Initialize with default spacer
328
+ this.ui.addChild(this.widgetContainerAbove);
329
+ this.ui.addChild(this.editorContainer);
330
+ this.ui.addChild(this.widgetContainerBelow);
331
+ this.ui.addChild(this.footer);
332
+ this.ui.setFocus(this.editor);
333
+ this.setupKeyHandlers();
334
+ this.setupEditorSubmitHandler();
335
+ // Start the UI before initializing extensions so session_start handlers can use interactive dialogs
336
+ this.ui.start();
337
+ this.isInitialized = true;
338
+ // Initialize extensions first so resources are shown before messages
339
+ await this.initExtensions();
340
+ // Render initial messages AFTER showing loaded resources
341
+ this.renderInitialMessages();
342
+ // Set terminal title
343
+ this.updateTerminalTitle();
344
+ // Subscribe to agent events
345
+ this.subscribeToAgent();
346
+ // Set up theme file watcher
347
+ onThemeChange(() => {
348
+ this.ui.invalidate();
349
+ this.updateEditorBorderColor();
350
+ this.ui.requestRender();
351
+ });
352
+ // Set up git branch watcher (uses provider instead of footer)
353
+ this.footerDataProvider.onBranchChange(() => {
354
+ this.ui.requestRender();
355
+ });
356
+ // Initialize available provider count for footer display
357
+ await this.updateAvailableProviderCount();
358
+ }
359
+ /**
360
+ * Update terminal title with session name and cwd.
361
+ */
362
+ updateTerminalTitle() {
363
+ const cwdBasename = path.basename(process.cwd());
364
+ const sessionName = this.sessionManager.getSessionName();
365
+ if (sessionName) {
366
+ this.ui.terminal.setTitle(`π - ${sessionName} - ${cwdBasename}`);
367
+ }
368
+ else {
369
+ this.ui.terminal.setTitle(`π - ${cwdBasename}`);
370
+ }
371
+ }
372
+ /**
373
+ * Run the interactive mode. This is the main entry point.
374
+ * Initializes the UI, shows warnings, processes initial messages, and starts the interactive loop.
375
+ */
376
+ async run() {
377
+ await this.init();
378
+ // Start version check asynchronously
379
+ this.checkForNewVersion().then((newVersion) => {
380
+ if (newVersion) {
381
+ this.showNewVersionNotification(newVersion);
382
+ }
383
+ });
384
+ // Check tmux keyboard setup asynchronously
385
+ this.checkTmuxKeyboardSetup().then((warning) => {
386
+ if (warning) {
387
+ this.showWarning(warning);
388
+ }
389
+ });
390
+ // Show startup warnings
391
+ const { migratedProviders, modelFallbackMessage, initialMessage, initialImages, initialMessages } = this.options;
392
+ if (migratedProviders && migratedProviders.length > 0) {
393
+ this.showWarning(`Migrated credentials to auth.json: ${migratedProviders.join(", ")}`);
394
+ }
395
+ const modelsJsonError = this.session.modelRegistry.getError();
396
+ if (modelsJsonError) {
397
+ this.showError(`models.json error: ${modelsJsonError}`);
398
+ }
399
+ if (modelFallbackMessage) {
400
+ this.showWarning(modelFallbackMessage);
401
+ }
402
+ // Process initial messages
403
+ if (initialMessage) {
404
+ try {
405
+ await this.session.prompt(initialMessage, { images: initialImages });
406
+ }
407
+ catch (error) {
408
+ const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
409
+ this.showError(errorMessage);
410
+ }
411
+ }
412
+ if (initialMessages) {
413
+ for (const message of initialMessages) {
414
+ try {
415
+ await this.session.prompt(message);
416
+ }
417
+ catch (error) {
418
+ const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
419
+ this.showError(errorMessage);
420
+ }
421
+ }
422
+ }
423
+ // Main interactive loop
424
+ while (true) {
425
+ const userInput = await this.getUserInput();
426
+ try {
427
+ await this.session.prompt(userInput);
428
+ }
429
+ catch (error) {
430
+ const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
431
+ this.showError(errorMessage);
432
+ }
433
+ }
434
+ }
435
+ /**
436
+ * Check npm registry for a newer version.
437
+ */
438
+ async checkForNewVersion() {
439
+ if (process.env.PI_SKIP_VERSION_CHECK || process.env.PI_OFFLINE)
440
+ return undefined;
441
+ try {
442
+ const response = await fetch("https://registry.npmjs.org/@styrene-lab/pi-coding-agent/latest", {
443
+ signal: AbortSignal.timeout(10000),
444
+ });
445
+ if (!response.ok)
446
+ return undefined;
447
+ const data = (await response.json());
448
+ const latestVersion = data.version;
449
+ if (latestVersion && isVersionNewer(latestVersion, this.version)) {
450
+ return latestVersion;
451
+ }
452
+ return undefined;
453
+ }
454
+ catch {
455
+ return undefined;
456
+ }
457
+ }
458
+ async checkTmuxKeyboardSetup() {
459
+ if (!process.env.TMUX)
460
+ return undefined;
461
+ const runTmuxShow = (option) => {
462
+ return new Promise((resolve) => {
463
+ const proc = spawn("tmux", ["show", "-gv", option], {
464
+ stdio: ["ignore", "pipe", "ignore"],
465
+ });
466
+ let stdout = "";
467
+ const timer = setTimeout(() => {
468
+ proc.kill();
469
+ resolve(undefined);
470
+ }, 2000);
471
+ proc.stdout?.on("data", (data) => {
472
+ stdout += data.toString();
473
+ });
474
+ proc.on("error", () => {
475
+ clearTimeout(timer);
476
+ resolve(undefined);
477
+ });
478
+ proc.on("close", (code) => {
479
+ clearTimeout(timer);
480
+ resolve(code === 0 ? stdout.trim() : undefined);
481
+ });
482
+ });
483
+ };
484
+ const [extendedKeys, extendedKeysFormat] = await Promise.all([
485
+ runTmuxShow("extended-keys"),
486
+ runTmuxShow("extended-keys-format"),
487
+ ]);
488
+ if (extendedKeys !== "on" && extendedKeys !== "always") {
489
+ return "tmux extended-keys is off. Modified Enter keys may not work. Add `set -g extended-keys on` to ~/.tmux.conf and restart tmux.";
490
+ }
491
+ if (extendedKeysFormat === "xterm") {
492
+ return "tmux extended-keys-format is xterm. Pi works best with csi-u. Add `set -g extended-keys-format csi-u` to ~/.tmux.conf and restart tmux.";
493
+ }
494
+ return undefined;
495
+ }
496
+ /**
497
+ * Get changelog entries to display on startup.
498
+ * Only shows new entries since last seen version, skips for resumed sessions.
499
+ */
500
+ getChangelogForDisplay() {
501
+ // When running under Omegon, suppress the upstream changelog entirely.
502
+ // Omegon provides its own version and changelog experience.
503
+ if (process.env.PI_SKIP_VERSION_CHECK) {
504
+ return undefined;
505
+ }
506
+ // Skip changelog for resumed/continued sessions (already have messages)
507
+ if (this.session.state.messages.length > 0) {
508
+ return undefined;
509
+ }
510
+ const lastVersion = this.settingsManager.getLastChangelogVersion();
511
+ const changelogPath = getChangelogPath();
512
+ const entries = parseChangelog(changelogPath);
513
+ if (!lastVersion) {
514
+ // Fresh install - just record the version, don't show changelog
515
+ this.settingsManager.setLastChangelogVersion(VERSION);
516
+ return undefined;
517
+ }
518
+ else {
519
+ const newEntries = getNewEntries(entries, lastVersion);
520
+ if (newEntries.length > 0) {
521
+ this.settingsManager.setLastChangelogVersion(VERSION);
522
+ return newEntries.map((e) => e.content).join("\n\n");
523
+ }
524
+ }
525
+ return undefined;
526
+ }
527
+ getMarkdownThemeWithSettings() {
528
+ return {
529
+ ...getMarkdownTheme(),
530
+ codeBlockIndent: this.settingsManager.getCodeBlockIndent(),
531
+ };
532
+ }
533
+ // =========================================================================
534
+ // Extension System
535
+ // =========================================================================
536
+ formatDisplayPath(p) {
537
+ const home = os.homedir();
538
+ let result = p;
539
+ // Replace home directory with ~
540
+ if (result.startsWith(home)) {
541
+ result = `~${result.slice(home.length)}`;
542
+ }
543
+ return result;
544
+ }
545
+ /**
546
+ * Get a short path relative to the package root for display.
547
+ */
548
+ getShortPath(fullPath, source) {
549
+ // For npm packages, show path relative to node_modules/pkg/
550
+ const npmMatch = fullPath.match(/node_modules\/(@?[^/]+(?:\/[^/]+)?)\/(.*)/);
551
+ if (npmMatch && source.startsWith("npm:")) {
552
+ return npmMatch[2];
553
+ }
554
+ // For git packages, show path relative to repo root
555
+ const gitMatch = fullPath.match(/git\/[^/]+\/[^/]+\/(.*)/);
556
+ if (gitMatch && source.startsWith("git:")) {
557
+ return gitMatch[1];
558
+ }
559
+ // For local/auto, just use formatDisplayPath
560
+ return this.formatDisplayPath(fullPath);
561
+ }
562
+ getDisplaySourceInfo(source, scope) {
563
+ if (source === "local") {
564
+ if (scope === "user") {
565
+ return { label: "user", color: "muted" };
566
+ }
567
+ if (scope === "project") {
568
+ return { label: "project", color: "muted" };
569
+ }
570
+ if (scope === "temporary") {
571
+ return { label: "path", scopeLabel: "temp", color: "muted" };
572
+ }
573
+ return { label: "path", color: "muted" };
574
+ }
575
+ if (source === "cli") {
576
+ return { label: "path", scopeLabel: scope === "temporary" ? "temp" : undefined, color: "muted" };
577
+ }
578
+ const scopeLabel = scope === "user" ? "user" : scope === "project" ? "project" : scope === "temporary" ? "temp" : undefined;
579
+ return { label: source, scopeLabel, color: "accent" };
580
+ }
581
+ getScopeGroup(source, scope) {
582
+ if (source === "cli" || scope === "temporary")
583
+ return "path";
584
+ if (scope === "user")
585
+ return "user";
586
+ if (scope === "project")
587
+ return "project";
588
+ return "path";
589
+ }
590
+ isPackageSource(source) {
591
+ return source.startsWith("npm:") || source.startsWith("git:");
592
+ }
593
+ buildScopeGroups(paths, metadata) {
594
+ const groups = {
595
+ user: { scope: "user", paths: [], packages: new Map() },
596
+ project: { scope: "project", paths: [], packages: new Map() },
597
+ path: { scope: "path", paths: [], packages: new Map() },
598
+ };
599
+ for (const p of paths) {
600
+ const meta = this.findMetadata(p, metadata);
601
+ const source = meta?.source ?? "local";
602
+ const scope = meta?.scope ?? "project";
603
+ const groupKey = this.getScopeGroup(source, scope);
604
+ const group = groups[groupKey];
605
+ if (this.isPackageSource(source)) {
606
+ const list = group.packages.get(source) ?? [];
607
+ list.push(p);
608
+ group.packages.set(source, list);
609
+ }
610
+ else {
611
+ group.paths.push(p);
612
+ }
613
+ }
614
+ return [groups.project, groups.user, groups.path].filter((group) => group.paths.length > 0 || group.packages.size > 0);
615
+ }
616
+ formatScopeGroups(groups, options) {
617
+ const lines = [];
618
+ for (const group of groups) {
619
+ lines.push(` ${theme.fg("accent", group.scope)}`);
620
+ const sortedPaths = [...group.paths].sort((a, b) => a.localeCompare(b));
621
+ for (const p of sortedPaths) {
622
+ lines.push(theme.fg("dim", ` ${options.formatPath(p)}`));
623
+ }
624
+ const sortedPackages = Array.from(group.packages.entries()).sort(([a], [b]) => a.localeCompare(b));
625
+ for (const [source, paths] of sortedPackages) {
626
+ lines.push(` ${theme.fg("mdLink", source)}`);
627
+ const sortedPackagePaths = [...paths].sort((a, b) => a.localeCompare(b));
628
+ for (const p of sortedPackagePaths) {
629
+ lines.push(theme.fg("dim", ` ${options.formatPackagePath(p, source)}`));
630
+ }
631
+ }
632
+ }
633
+ return lines.join("\n");
634
+ }
635
+ /**
636
+ * Find metadata for a path, checking parent directories if exact match fails.
637
+ * Package manager stores metadata for directories, but we display file paths.
638
+ */
639
+ findMetadata(p, metadata) {
640
+ // Try exact match first
641
+ const exact = metadata.get(p);
642
+ if (exact)
643
+ return exact;
644
+ // Try parent directories (package manager stores directory paths)
645
+ let current = p;
646
+ while (current.includes("/")) {
647
+ current = current.substring(0, current.lastIndexOf("/"));
648
+ const parent = metadata.get(current);
649
+ if (parent)
650
+ return parent;
651
+ }
652
+ return undefined;
653
+ }
654
+ /**
655
+ * Format a path with its source/scope info from metadata.
656
+ */
657
+ formatPathWithSource(p, metadata) {
658
+ const meta = this.findMetadata(p, metadata);
659
+ if (meta) {
660
+ const shortPath = this.getShortPath(p, meta.source);
661
+ const { label, scopeLabel } = this.getDisplaySourceInfo(meta.source, meta.scope);
662
+ const labelText = scopeLabel ? `${label} (${scopeLabel})` : label;
663
+ return `${labelText} ${shortPath}`;
664
+ }
665
+ return this.formatDisplayPath(p);
666
+ }
667
+ /**
668
+ * Format resource diagnostics with nice collision display using metadata.
669
+ */
670
+ formatDiagnostics(diagnostics, metadata) {
671
+ const lines = [];
672
+ // Group collision diagnostics by name
673
+ const collisions = new Map();
674
+ const otherDiagnostics = [];
675
+ for (const d of diagnostics) {
676
+ if (d.type === "collision" && d.collision) {
677
+ const list = collisions.get(d.collision.name) ?? [];
678
+ list.push(d);
679
+ collisions.set(d.collision.name, list);
680
+ }
681
+ else {
682
+ otherDiagnostics.push(d);
683
+ }
684
+ }
685
+ // Format collision diagnostics grouped by name
686
+ for (const [name, collisionList] of collisions) {
687
+ const first = collisionList[0]?.collision;
688
+ if (!first)
689
+ continue;
690
+ lines.push(theme.fg("warning", ` "${name}" collision:`));
691
+ // Show winner
692
+ lines.push(theme.fg("dim", ` ${theme.fg("success", "✓")} ${this.formatPathWithSource(first.winnerPath, metadata)}`));
693
+ // Show all losers
694
+ for (const d of collisionList) {
695
+ if (d.collision) {
696
+ lines.push(theme.fg("dim", ` ${theme.fg("warning", "✗")} ${this.formatPathWithSource(d.collision.loserPath, metadata)} (skipped)`));
697
+ }
698
+ }
699
+ }
700
+ // Format other diagnostics (skill name collisions, parse errors, etc.)
701
+ for (const d of otherDiagnostics) {
702
+ if (d.path) {
703
+ // Use metadata-aware formatting for paths
704
+ const sourceInfo = this.formatPathWithSource(d.path, metadata);
705
+ lines.push(theme.fg(d.type === "error" ? "error" : "warning", ` ${sourceInfo}`));
706
+ lines.push(theme.fg(d.type === "error" ? "error" : "warning", ` ${d.message}`));
707
+ }
708
+ else {
709
+ lines.push(theme.fg(d.type === "error" ? "error" : "warning", ` ${d.message}`));
710
+ }
711
+ }
712
+ return lines.join("\n");
713
+ }
714
+ showLoadedResources(options) {
715
+ const showListing = options?.force || this.options.verbose || !this.settingsManager.getQuietStartup();
716
+ const showDiagnostics = showListing || options?.showDiagnosticsWhenQuiet === true;
717
+ if (!showListing && !showDiagnostics) {
718
+ return;
719
+ }
720
+ const metadata = this.session.resourceLoader.getPathMetadata();
721
+ const sectionHeader = (name, color = "mdHeading") => theme.fg(color, `[${name}]`);
722
+ const skillsResult = this.session.resourceLoader.getSkills();
723
+ const promptsResult = this.session.resourceLoader.getPrompts();
724
+ const themesResult = this.session.resourceLoader.getThemes();
725
+ if (showListing) {
726
+ const contextFiles = this.session.resourceLoader.getAgentsFiles().agentsFiles;
727
+ if (contextFiles.length > 0) {
728
+ this.chatContainer.addChild(new Spacer(1));
729
+ const contextList = contextFiles
730
+ .map((f) => theme.fg("dim", ` ${this.formatDisplayPath(f.path)}`))
731
+ .join("\n");
732
+ this.chatContainer.addChild(new Text(`${sectionHeader("Context")}\n${contextList}`, 0, 0));
733
+ this.chatContainer.addChild(new Spacer(1));
734
+ }
735
+ const skills = skillsResult.skills;
736
+ if (skills.length > 0) {
737
+ const skillPaths = skills.map((s) => s.filePath);
738
+ const groups = this.buildScopeGroups(skillPaths, metadata);
739
+ const skillList = this.formatScopeGroups(groups, {
740
+ formatPath: (p) => this.formatDisplayPath(p),
741
+ formatPackagePath: (p, source) => this.getShortPath(p, source),
742
+ });
743
+ this.chatContainer.addChild(new Text(`${sectionHeader("Skills")}\n${skillList}`, 0, 0));
744
+ this.chatContainer.addChild(new Spacer(1));
745
+ }
746
+ const templates = this.session.promptTemplates;
747
+ if (templates.length > 0) {
748
+ const templatePaths = templates.map((t) => t.filePath);
749
+ const groups = this.buildScopeGroups(templatePaths, metadata);
750
+ const templateByPath = new Map(templates.map((t) => [t.filePath, t]));
751
+ const templateList = this.formatScopeGroups(groups, {
752
+ formatPath: (p) => {
753
+ const template = templateByPath.get(p);
754
+ return template ? `/${template.name}` : this.formatDisplayPath(p);
755
+ },
756
+ formatPackagePath: (p) => {
757
+ const template = templateByPath.get(p);
758
+ return template ? `/${template.name}` : this.formatDisplayPath(p);
759
+ },
760
+ });
761
+ this.chatContainer.addChild(new Text(`${sectionHeader("Prompts")}\n${templateList}`, 0, 0));
762
+ this.chatContainer.addChild(new Spacer(1));
763
+ }
764
+ const extensionPaths = options?.extensionPaths ?? [];
765
+ if (extensionPaths.length > 0) {
766
+ const groups = this.buildScopeGroups(extensionPaths, metadata);
767
+ const extList = this.formatScopeGroups(groups, {
768
+ formatPath: (p) => this.formatDisplayPath(p),
769
+ formatPackagePath: (p, source) => this.getShortPath(p, source),
770
+ });
771
+ this.chatContainer.addChild(new Text(`${sectionHeader("Extensions", "mdHeading")}\n${extList}`, 0, 0));
772
+ this.chatContainer.addChild(new Spacer(1));
773
+ }
774
+ // Show loaded themes (excluding built-in)
775
+ const loadedThemes = themesResult.themes;
776
+ const customThemes = loadedThemes.filter((t) => t.sourcePath);
777
+ if (customThemes.length > 0) {
778
+ const themePaths = customThemes.map((t) => t.sourcePath);
779
+ const groups = this.buildScopeGroups(themePaths, metadata);
780
+ const themeList = this.formatScopeGroups(groups, {
781
+ formatPath: (p) => this.formatDisplayPath(p),
782
+ formatPackagePath: (p, source) => this.getShortPath(p, source),
783
+ });
784
+ this.chatContainer.addChild(new Text(`${sectionHeader("Themes")}\n${themeList}`, 0, 0));
785
+ this.chatContainer.addChild(new Spacer(1));
786
+ }
787
+ }
788
+ if (showDiagnostics) {
789
+ const skillDiagnostics = skillsResult.diagnostics;
790
+ if (skillDiagnostics.length > 0) {
791
+ const warningLines = this.formatDiagnostics(skillDiagnostics, metadata);
792
+ this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Skill conflicts]")}\n${warningLines}`, 0, 0));
793
+ this.chatContainer.addChild(new Spacer(1));
794
+ }
795
+ const promptDiagnostics = promptsResult.diagnostics;
796
+ if (promptDiagnostics.length > 0) {
797
+ const warningLines = this.formatDiagnostics(promptDiagnostics, metadata);
798
+ this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Prompt conflicts]")}\n${warningLines}`, 0, 0));
799
+ this.chatContainer.addChild(new Spacer(1));
800
+ }
801
+ const extensionDiagnostics = [];
802
+ const extensionErrors = this.session.resourceLoader.getExtensions().errors;
803
+ if (extensionErrors.length > 0) {
804
+ for (const error of extensionErrors) {
805
+ extensionDiagnostics.push({ type: "error", message: error.error, path: error.path });
806
+ }
807
+ }
808
+ const commandDiagnostics = this.session.extensionRunner?.getCommandDiagnostics() ?? [];
809
+ extensionDiagnostics.push(...commandDiagnostics);
810
+ const shortcutDiagnostics = this.session.extensionRunner?.getShortcutDiagnostics() ?? [];
811
+ extensionDiagnostics.push(...shortcutDiagnostics);
812
+ if (extensionDiagnostics.length > 0) {
813
+ const warningLines = this.formatDiagnostics(extensionDiagnostics, metadata);
814
+ this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Extension issues]")}\n${warningLines}`, 0, 0));
815
+ this.chatContainer.addChild(new Spacer(1));
816
+ }
817
+ const themeDiagnostics = themesResult.diagnostics;
818
+ if (themeDiagnostics.length > 0) {
819
+ const warningLines = this.formatDiagnostics(themeDiagnostics, metadata);
820
+ this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Theme conflicts]")}\n${warningLines}`, 0, 0));
821
+ this.chatContainer.addChild(new Spacer(1));
822
+ }
823
+ }
824
+ }
825
+ /**
826
+ * Initialize the extension system with TUI-based UI context.
827
+ */
828
+ async initExtensions() {
829
+ const uiContext = this.createExtensionUIContext();
830
+ await this.session.bindExtensions({
831
+ uiContext,
832
+ commandContextActions: {
833
+ waitForIdle: () => this.session.agent.waitForIdle(),
834
+ newSession: async (options) => {
835
+ if (this.loadingAnimation) {
836
+ this.loadingAnimation.stop();
837
+ this.loadingAnimation = undefined;
838
+ }
839
+ this.statusContainer.clear();
840
+ // Delegate to AgentSession (handles setup + agent state sync)
841
+ const success = await this.session.newSession(options);
842
+ if (!success) {
843
+ return { cancelled: true };
844
+ }
845
+ // Clear UI state
846
+ this.chatContainer.clear();
847
+ this.pendingMessagesContainer.clear();
848
+ this.compactionQueuedMessages = [];
849
+ this.streamingComponent = undefined;
850
+ this.streamingMessage = undefined;
851
+ this.pendingTools.clear();
852
+ // Render any messages added via setup, or show empty session
853
+ this.renderInitialMessages();
854
+ this.ui.requestRender();
855
+ return { cancelled: false };
856
+ },
857
+ fork: async (entryId) => {
858
+ const result = await this.session.fork(entryId);
859
+ if (result.cancelled) {
860
+ return { cancelled: true };
861
+ }
862
+ this.chatContainer.clear();
863
+ this.renderInitialMessages();
864
+ this.editor.setText(result.selectedText);
865
+ this.showStatus("Forked to new session");
866
+ return { cancelled: false };
867
+ },
868
+ navigateTree: async (targetId, options) => {
869
+ const result = await this.session.navigateTree(targetId, {
870
+ summarize: options?.summarize,
871
+ customInstructions: options?.customInstructions,
872
+ replaceInstructions: options?.replaceInstructions,
873
+ label: options?.label,
874
+ });
875
+ if (result.cancelled) {
876
+ return { cancelled: true };
877
+ }
878
+ this.chatContainer.clear();
879
+ this.renderInitialMessages();
880
+ if (result.editorText && !this.editor.getText().trim()) {
881
+ this.editor.setText(result.editorText);
882
+ }
883
+ this.showStatus("Navigated to selected point");
884
+ return { cancelled: false };
885
+ },
886
+ switchSession: async (sessionPath) => {
887
+ await this.handleResumeSession(sessionPath);
888
+ return { cancelled: false };
889
+ },
890
+ reload: async () => {
891
+ await this.handleReloadCommand();
892
+ },
893
+ },
894
+ shutdownHandler: () => {
895
+ this.shutdownRequested = true;
896
+ if (!this.session.isStreaming) {
897
+ void this.shutdown();
898
+ }
899
+ },
900
+ onError: (error) => {
901
+ this.showExtensionError(error.extensionPath, error.error, error.stack);
902
+ },
903
+ });
904
+ setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
905
+ this.setupAutocomplete(this.fdPath);
906
+ const extensionRunner = this.session.extensionRunner;
907
+ if (!extensionRunner) {
908
+ this.showLoadedResources({ extensionPaths: [], force: false });
909
+ return;
910
+ }
911
+ this.setupExtensionShortcuts(extensionRunner);
912
+ this.showLoadedResources({ extensionPaths: extensionRunner.getExtensionPaths(), force: false });
913
+ }
914
+ /**
915
+ * Get a registered tool definition by name (for custom rendering).
916
+ */
917
+ getRegisteredToolDefinition(toolName) {
918
+ const tools = this.session.extensionRunner?.getAllRegisteredTools() ?? [];
919
+ const registeredTool = tools.find((t) => t.definition.name === toolName);
920
+ const definition = registeredTool?.definition;
921
+ // Check for standalone tool renderers (e.g. for built-in tools)
922
+ const standaloneRenderers = this.session.extensionRunner?.getToolRenderers(toolName);
923
+ if (standaloneRenderers) {
924
+ if (definition) {
925
+ // Merge standalone renderers into the existing definition (standalone wins)
926
+ return {
927
+ ...definition,
928
+ renderCall: standaloneRenderers.renderCall ?? definition.renderCall,
929
+ renderResult: standaloneRenderers.renderResult ?? definition.renderResult,
930
+ };
931
+ }
932
+ // No tool definition at all — create a minimal one with just renderers
933
+ return {
934
+ name: toolName,
935
+ label: toolName,
936
+ description: "",
937
+ parameters: {},
938
+ execute: (() => { }),
939
+ renderCall: standaloneRenderers.renderCall,
940
+ renderResult: standaloneRenderers.renderResult,
941
+ };
942
+ }
943
+ return definition;
944
+ }
945
+ /**
946
+ * Set up keyboard shortcuts registered by extensions.
947
+ */
948
+ setupExtensionShortcuts(extensionRunner) {
949
+ const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
950
+ if (shortcuts.size === 0)
951
+ return;
952
+ // Create a context for shortcut handlers
953
+ const createContext = () => ({
954
+ ui: this.createExtensionUIContext(),
955
+ hasUI: true,
956
+ cwd: process.cwd(),
957
+ sessionManager: this.sessionManager,
958
+ modelRegistry: this.session.modelRegistry,
959
+ model: this.session.model,
960
+ isIdle: () => !this.session.isStreaming,
961
+ abort: () => this.session.abort(),
962
+ hasPendingMessages: () => this.session.pendingMessageCount > 0,
963
+ shutdown: () => {
964
+ this.shutdownRequested = true;
965
+ },
966
+ getContextUsage: () => this.session.getContextUsage(),
967
+ compact: (options) => {
968
+ void (async () => {
969
+ try {
970
+ const result = await this.executeCompaction(options?.customInstructions, false);
971
+ if (result) {
972
+ options?.onComplete?.(result);
973
+ }
974
+ }
975
+ catch (error) {
976
+ const err = error instanceof Error ? error : new Error(String(error));
977
+ options?.onError?.(err);
978
+ }
979
+ })();
980
+ },
981
+ getSystemPrompt: () => this.session.systemPrompt,
982
+ });
983
+ // Set up the extension shortcut handler on the default editor
984
+ this.defaultEditor.onExtensionShortcut = (data) => {
985
+ for (const [shortcutStr, shortcut] of shortcuts) {
986
+ // Cast to KeyId - extension shortcuts use the same format
987
+ if (matchesKey(data, shortcutStr)) {
988
+ // Run handler async, don't block input
989
+ Promise.resolve(shortcut.handler(createContext())).catch((err) => {
990
+ this.showError(`Shortcut handler error: ${err instanceof Error ? err.message : String(err)}`);
991
+ });
992
+ return true;
993
+ }
994
+ }
995
+ return false;
996
+ };
997
+ }
998
+ /**
999
+ * Set extension status text in the footer.
1000
+ */
1001
+ setExtensionStatus(key, text) {
1002
+ this.footerDataProvider.setExtensionStatus(key, text);
1003
+ this.ui.requestRender();
1004
+ }
1005
+ /**
1006
+ * Set an extension widget (string array or custom component).
1007
+ */
1008
+ setExtensionWidget(key, content, options) {
1009
+ const placement = options?.placement ?? "aboveEditor";
1010
+ const removeExisting = (map) => {
1011
+ const existing = map.get(key);
1012
+ if (existing?.dispose)
1013
+ existing.dispose();
1014
+ map.delete(key);
1015
+ };
1016
+ removeExisting(this.extensionWidgetsAbove);
1017
+ removeExisting(this.extensionWidgetsBelow);
1018
+ if (content === undefined) {
1019
+ this.renderWidgets();
1020
+ return;
1021
+ }
1022
+ let component;
1023
+ if (Array.isArray(content)) {
1024
+ // Wrap string array in a Container with Text components
1025
+ const container = new Container();
1026
+ for (const line of content.slice(0, InteractiveMode.MAX_WIDGET_LINES)) {
1027
+ container.addChild(new Text(line, 1, 0));
1028
+ }
1029
+ if (content.length > InteractiveMode.MAX_WIDGET_LINES) {
1030
+ container.addChild(new Text(theme.fg("muted", "... (widget truncated)"), 1, 0));
1031
+ }
1032
+ component = container;
1033
+ }
1034
+ else {
1035
+ // Factory function - create component
1036
+ component = content(this.ui, theme);
1037
+ }
1038
+ const targetMap = placement === "belowEditor" ? this.extensionWidgetsBelow : this.extensionWidgetsAbove;
1039
+ targetMap.set(key, component);
1040
+ this.renderWidgets();
1041
+ }
1042
+ clearExtensionWidgets() {
1043
+ for (const widget of this.extensionWidgetsAbove.values()) {
1044
+ widget.dispose?.();
1045
+ }
1046
+ for (const widget of this.extensionWidgetsBelow.values()) {
1047
+ widget.dispose?.();
1048
+ }
1049
+ this.extensionWidgetsAbove.clear();
1050
+ this.extensionWidgetsBelow.clear();
1051
+ this.renderWidgets();
1052
+ }
1053
+ resetExtensionUI() {
1054
+ if (this.extensionSelector) {
1055
+ this.hideExtensionSelector();
1056
+ }
1057
+ if (this.extensionInput) {
1058
+ this.hideExtensionInput();
1059
+ }
1060
+ if (this.extensionEditor) {
1061
+ this.hideExtensionEditor();
1062
+ }
1063
+ this.ui.hideOverlay();
1064
+ this.clearExtensionTerminalInputListeners();
1065
+ this.setExtensionFooter(undefined);
1066
+ this.setExtensionHeader(undefined);
1067
+ this.clearExtensionWidgets();
1068
+ this.footerDataProvider.clearExtensionStatuses();
1069
+ this.footer.invalidate();
1070
+ this.setCustomEditorComponent(undefined);
1071
+ this.defaultEditor.onExtensionShortcut = undefined;
1072
+ this.updateTerminalTitle();
1073
+ if (this.loadingAnimation) {
1074
+ this.loadingAnimation.setMessage(`${this.defaultWorkingMessage} (${appKey(this.keybindings, "interrupt")} to interrupt)`);
1075
+ }
1076
+ }
1077
+ // Maximum total widget lines to prevent viewport overflow
1078
+ static MAX_WIDGET_LINES = 10;
1079
+ /**
1080
+ * Render all extension widgets to the widget container.
1081
+ */
1082
+ renderWidgets() {
1083
+ if (!this.widgetContainerAbove || !this.widgetContainerBelow)
1084
+ return;
1085
+ this.renderWidgetContainer(this.widgetContainerAbove, this.extensionWidgetsAbove, true, true);
1086
+ this.renderWidgetContainer(this.widgetContainerBelow, this.extensionWidgetsBelow, false, false);
1087
+ this.ui.requestRender();
1088
+ }
1089
+ renderWidgetContainer(container, widgets, spacerWhenEmpty, leadingSpacer) {
1090
+ container.clear();
1091
+ if (widgets.size === 0) {
1092
+ if (spacerWhenEmpty) {
1093
+ container.addChild(new Spacer(1));
1094
+ }
1095
+ return;
1096
+ }
1097
+ if (leadingSpacer) {
1098
+ container.addChild(new Spacer(1));
1099
+ }
1100
+ for (const component of widgets.values()) {
1101
+ container.addChild(component);
1102
+ }
1103
+ }
1104
+ /**
1105
+ * Set a custom footer component, or restore the built-in footer.
1106
+ */
1107
+ setExtensionFooter(factory) {
1108
+ // Dispose existing custom footer
1109
+ if (this.customFooter?.dispose) {
1110
+ this.customFooter.dispose();
1111
+ }
1112
+ // Remove current footer from UI
1113
+ if (this.customFooter) {
1114
+ this.ui.removeChild(this.customFooter);
1115
+ }
1116
+ else {
1117
+ this.ui.removeChild(this.footer);
1118
+ }
1119
+ if (factory) {
1120
+ // Create and add custom footer, passing the data provider
1121
+ this.customFooter = factory(this.ui, theme, this.footerDataProvider);
1122
+ this.ui.addChild(this.customFooter);
1123
+ }
1124
+ else {
1125
+ // Restore built-in footer
1126
+ this.customFooter = undefined;
1127
+ this.ui.addChild(this.footer);
1128
+ }
1129
+ this.ui.requestRender();
1130
+ }
1131
+ /**
1132
+ * Set a custom header component, or restore the built-in header.
1133
+ */
1134
+ setExtensionHeader(factory) {
1135
+ // Header may not be initialized yet if called during early initialization
1136
+ if (!this.builtInHeader) {
1137
+ return;
1138
+ }
1139
+ // Dispose existing custom header
1140
+ if (this.customHeader?.dispose) {
1141
+ this.customHeader.dispose();
1142
+ }
1143
+ // Find the index of the current header in the header container
1144
+ const currentHeader = this.customHeader || this.builtInHeader;
1145
+ const index = this.headerContainer.children.indexOf(currentHeader);
1146
+ if (factory) {
1147
+ // Create and add custom header
1148
+ this.customHeader = factory(this.ui, theme);
1149
+ if (index !== -1) {
1150
+ this.headerContainer.children[index] = this.customHeader;
1151
+ }
1152
+ else {
1153
+ // If not found (e.g. builtInHeader was never added), add at the top
1154
+ this.headerContainer.children.unshift(this.customHeader);
1155
+ }
1156
+ }
1157
+ else {
1158
+ // Restore built-in header
1159
+ this.customHeader = undefined;
1160
+ if (index !== -1) {
1161
+ this.headerContainer.children[index] = this.builtInHeader;
1162
+ }
1163
+ }
1164
+ this.ui.requestRender();
1165
+ }
1166
+ addExtensionTerminalInputListener(handler) {
1167
+ const unsubscribe = this.ui.addInputListener(handler);
1168
+ this.extensionTerminalInputUnsubscribers.add(unsubscribe);
1169
+ return () => {
1170
+ unsubscribe();
1171
+ this.extensionTerminalInputUnsubscribers.delete(unsubscribe);
1172
+ };
1173
+ }
1174
+ clearExtensionTerminalInputListeners() {
1175
+ for (const unsubscribe of this.extensionTerminalInputUnsubscribers) {
1176
+ unsubscribe();
1177
+ }
1178
+ this.extensionTerminalInputUnsubscribers.clear();
1179
+ }
1180
+ /**
1181
+ * Create the ExtensionUIContext for extensions.
1182
+ */
1183
+ createExtensionUIContext() {
1184
+ return {
1185
+ select: (title, options, opts) => this.showExtensionSelector(title, options, opts),
1186
+ confirm: (title, message, opts) => this.showExtensionConfirm(title, message, opts),
1187
+ input: (title, placeholder, opts) => this.showExtensionInput(title, placeholder, opts),
1188
+ notify: (message, type) => this.showExtensionNotify(message, type),
1189
+ onTerminalInput: (handler) => this.addExtensionTerminalInputListener(handler),
1190
+ setStatus: (key, text) => this.setExtensionStatus(key, text),
1191
+ setWorkingMessage: (message) => {
1192
+ if (this.loadingAnimation) {
1193
+ if (message) {
1194
+ this.loadingAnimation.setMessage(message);
1195
+ }
1196
+ else {
1197
+ this.loadingAnimation.setMessage(`${this.defaultWorkingMessage} (${appKey(this.keybindings, "interrupt")} to interrupt)`);
1198
+ }
1199
+ }
1200
+ else {
1201
+ // Queue message for when loadingAnimation is created (handles agent_start race)
1202
+ this.pendingWorkingMessage = message;
1203
+ }
1204
+ },
1205
+ setWidget: (key, content, options) => this.setExtensionWidget(key, content, options),
1206
+ setFooter: (factory) => this.setExtensionFooter(factory),
1207
+ setHeader: (factory) => this.setExtensionHeader(factory),
1208
+ setTitle: (title) => this.ui.terminal.setTitle(title),
1209
+ custom: (factory, options) => this.showExtensionCustom(factory, options),
1210
+ pasteToEditor: (text) => this.editor.handleInput(`\x1b[200~${text}\x1b[201~`),
1211
+ setEditorText: (text) => this.editor.setText(text),
1212
+ getEditorText: () => this.editor.getExpandedText?.() ?? this.editor.getText(),
1213
+ editor: (title, prefill) => this.showExtensionEditor(title, prefill),
1214
+ setEditorComponent: (factory) => this.setCustomEditorComponent(factory),
1215
+ get theme() {
1216
+ return theme;
1217
+ },
1218
+ getAllThemes: () => getAvailableThemesWithPaths(),
1219
+ getTheme: (name) => getThemeByName(name),
1220
+ setTheme: (themeOrName) => {
1221
+ if (themeOrName instanceof Theme) {
1222
+ setThemeInstance(themeOrName);
1223
+ this.ui.requestRender();
1224
+ return { success: true };
1225
+ }
1226
+ const result = setTheme(themeOrName, true);
1227
+ if (result.success) {
1228
+ if (this.settingsManager.getTheme() !== themeOrName) {
1229
+ this.settingsManager.setTheme(themeOrName);
1230
+ }
1231
+ this.ui.requestRender();
1232
+ }
1233
+ return result;
1234
+ },
1235
+ getToolsExpanded: () => this.toolOutputExpanded,
1236
+ setToolsExpanded: (expanded) => this.setToolsExpanded(expanded),
1237
+ };
1238
+ }
1239
+ /**
1240
+ * Show a selector for extensions.
1241
+ */
1242
+ showExtensionSelector(title, options, opts) {
1243
+ return new Promise((resolve) => {
1244
+ if (opts?.signal?.aborted) {
1245
+ resolve(undefined);
1246
+ return;
1247
+ }
1248
+ const onAbort = () => {
1249
+ this.hideExtensionSelector();
1250
+ resolve(undefined);
1251
+ };
1252
+ opts?.signal?.addEventListener("abort", onAbort, { once: true });
1253
+ this.extensionSelector = new ExtensionSelectorComponent(title, options, (option) => {
1254
+ opts?.signal?.removeEventListener("abort", onAbort);
1255
+ this.hideExtensionSelector();
1256
+ resolve(option);
1257
+ }, () => {
1258
+ opts?.signal?.removeEventListener("abort", onAbort);
1259
+ this.hideExtensionSelector();
1260
+ resolve(undefined);
1261
+ }, { tui: this.ui, timeout: opts?.timeout });
1262
+ this.editorContainer.clear();
1263
+ this.editorContainer.addChild(this.extensionSelector);
1264
+ this.ui.setFocus(this.extensionSelector);
1265
+ this.ui.requestRender();
1266
+ });
1267
+ }
1268
+ /**
1269
+ * Hide the extension selector.
1270
+ */
1271
+ hideExtensionSelector() {
1272
+ this.extensionSelector?.dispose();
1273
+ this.editorContainer.clear();
1274
+ this.editorContainer.addChild(this.editor);
1275
+ this.extensionSelector = undefined;
1276
+ this.ui.setFocus(this.editor);
1277
+ this.ui.requestRender();
1278
+ }
1279
+ /**
1280
+ * Show a confirmation dialog for extensions.
1281
+ */
1282
+ async showExtensionConfirm(title, message, opts) {
1283
+ const result = await this.showExtensionSelector(`${title}\n${message}`, ["Yes", "No"], opts);
1284
+ return result === "Yes";
1285
+ }
1286
+ /**
1287
+ * Show a text input for extensions.
1288
+ */
1289
+ showExtensionInput(title, placeholder, opts) {
1290
+ return new Promise((resolve) => {
1291
+ if (opts?.signal?.aborted) {
1292
+ resolve(undefined);
1293
+ return;
1294
+ }
1295
+ const onAbort = () => {
1296
+ this.hideExtensionInput();
1297
+ resolve(undefined);
1298
+ };
1299
+ opts?.signal?.addEventListener("abort", onAbort, { once: true });
1300
+ this.extensionInput = new ExtensionInputComponent(title, placeholder, (value) => {
1301
+ opts?.signal?.removeEventListener("abort", onAbort);
1302
+ this.hideExtensionInput();
1303
+ resolve(value);
1304
+ }, () => {
1305
+ opts?.signal?.removeEventListener("abort", onAbort);
1306
+ this.hideExtensionInput();
1307
+ resolve(undefined);
1308
+ }, { tui: this.ui, timeout: opts?.timeout });
1309
+ this.editorContainer.clear();
1310
+ this.editorContainer.addChild(this.extensionInput);
1311
+ this.ui.setFocus(this.extensionInput);
1312
+ this.ui.requestRender();
1313
+ });
1314
+ }
1315
+ /**
1316
+ * Hide the extension input.
1317
+ */
1318
+ hideExtensionInput() {
1319
+ this.extensionInput?.dispose();
1320
+ this.editorContainer.clear();
1321
+ this.editorContainer.addChild(this.editor);
1322
+ this.extensionInput = undefined;
1323
+ this.ui.setFocus(this.editor);
1324
+ this.ui.requestRender();
1325
+ }
1326
+ /**
1327
+ * Show a multi-line editor for extensions (with Ctrl+G support).
1328
+ */
1329
+ showExtensionEditor(title, prefill) {
1330
+ return new Promise((resolve) => {
1331
+ this.extensionEditor = new ExtensionEditorComponent(this.ui, this.keybindings, title, prefill, (value) => {
1332
+ this.hideExtensionEditor();
1333
+ resolve(value);
1334
+ }, () => {
1335
+ this.hideExtensionEditor();
1336
+ resolve(undefined);
1337
+ });
1338
+ this.editorContainer.clear();
1339
+ this.editorContainer.addChild(this.extensionEditor);
1340
+ this.ui.setFocus(this.extensionEditor);
1341
+ this.ui.requestRender();
1342
+ });
1343
+ }
1344
+ /**
1345
+ * Hide the extension editor.
1346
+ */
1347
+ hideExtensionEditor() {
1348
+ this.editorContainer.clear();
1349
+ this.editorContainer.addChild(this.editor);
1350
+ this.extensionEditor = undefined;
1351
+ this.ui.setFocus(this.editor);
1352
+ this.ui.requestRender();
1353
+ }
1354
+ /**
1355
+ * Set a custom editor component from an extension.
1356
+ * Pass undefined to restore the default editor.
1357
+ */
1358
+ setCustomEditorComponent(factory) {
1359
+ // Save text from current editor before switching
1360
+ const currentText = this.editor.getText();
1361
+ this.editorContainer.clear();
1362
+ if (factory) {
1363
+ // Create the custom editor with tui, theme, and keybindings
1364
+ const newEditor = factory(this.ui, getEditorTheme(), this.keybindings);
1365
+ // Wire up callbacks from the default editor
1366
+ newEditor.onSubmit = this.defaultEditor.onSubmit;
1367
+ newEditor.onChange = this.defaultEditor.onChange;
1368
+ // Copy text from previous editor
1369
+ newEditor.setText(currentText);
1370
+ // Copy appearance settings if supported
1371
+ if (newEditor.borderColor !== undefined) {
1372
+ newEditor.borderColor = this.defaultEditor.borderColor;
1373
+ }
1374
+ if (newEditor.setPaddingX !== undefined) {
1375
+ newEditor.setPaddingX(this.defaultEditor.getPaddingX());
1376
+ }
1377
+ // Set autocomplete if supported
1378
+ if (newEditor.setAutocompleteProvider && this.autocompleteProvider) {
1379
+ newEditor.setAutocompleteProvider(this.autocompleteProvider);
1380
+ }
1381
+ // If extending CustomEditor, copy app-level handlers
1382
+ // Use duck typing since instanceof fails across jiti module boundaries
1383
+ const customEditor = newEditor;
1384
+ if ("actionHandlers" in customEditor && customEditor.actionHandlers instanceof Map) {
1385
+ if (!customEditor.onEscape) {
1386
+ customEditor.onEscape = () => this.defaultEditor.onEscape?.();
1387
+ }
1388
+ if (!customEditor.onCtrlD) {
1389
+ customEditor.onCtrlD = () => this.defaultEditor.onCtrlD?.();
1390
+ }
1391
+ if (!customEditor.onPasteImage) {
1392
+ customEditor.onPasteImage = () => this.defaultEditor.onPasteImage?.();
1393
+ }
1394
+ if (!customEditor.onExtensionShortcut) {
1395
+ customEditor.onExtensionShortcut = (data) => this.defaultEditor.onExtensionShortcut?.(data);
1396
+ }
1397
+ // Copy action handlers (clear, suspend, model switching, etc.)
1398
+ for (const [action, handler] of this.defaultEditor.actionHandlers) {
1399
+ customEditor.actionHandlers.set(action, handler);
1400
+ }
1401
+ }
1402
+ this.editor = newEditor;
1403
+ }
1404
+ else {
1405
+ // Restore default editor with text from custom editor
1406
+ this.defaultEditor.setText(currentText);
1407
+ this.editor = this.defaultEditor;
1408
+ }
1409
+ this.editorContainer.addChild(this.editor);
1410
+ this.ui.setFocus(this.editor);
1411
+ this.ui.requestRender();
1412
+ }
1413
+ /**
1414
+ * Show a notification for extensions.
1415
+ */
1416
+ showExtensionNotify(message, type) {
1417
+ if (type === "error") {
1418
+ this.showError(message);
1419
+ }
1420
+ else if (type === "warning") {
1421
+ this.showWarning(message);
1422
+ }
1423
+ else {
1424
+ this.showStatus(message);
1425
+ }
1426
+ }
1427
+ /** Show a custom component with keyboard focus. Overlay mode renders on top of existing content. */
1428
+ async showExtensionCustom(factory, options) {
1429
+ const savedText = this.editor.getText();
1430
+ const isOverlay = options?.overlay ?? false;
1431
+ const restoreEditor = () => {
1432
+ this.editorContainer.clear();
1433
+ this.editorContainer.addChild(this.editor);
1434
+ this.editor.setText(savedText);
1435
+ this.ui.setFocus(this.editor);
1436
+ this.ui.requestRender();
1437
+ };
1438
+ return new Promise((resolve, reject) => {
1439
+ let component;
1440
+ let closed = false;
1441
+ const close = (result) => {
1442
+ if (closed)
1443
+ return;
1444
+ closed = true;
1445
+ if (isOverlay)
1446
+ this.ui.hideOverlay();
1447
+ else
1448
+ restoreEditor();
1449
+ // Note: both branches above already call requestRender
1450
+ resolve(result);
1451
+ try {
1452
+ component?.dispose?.();
1453
+ }
1454
+ catch {
1455
+ /* ignore dispose errors */
1456
+ }
1457
+ };
1458
+ Promise.resolve(factory(this.ui, theme, this.keybindings, close))
1459
+ .then((c) => {
1460
+ if (closed)
1461
+ return;
1462
+ component = c;
1463
+ if (isOverlay) {
1464
+ // Resolve overlay options - can be static or dynamic function
1465
+ const resolveOptions = () => {
1466
+ if (options?.overlayOptions) {
1467
+ const opts = typeof options.overlayOptions === "function"
1468
+ ? options.overlayOptions()
1469
+ : options.overlayOptions;
1470
+ return opts;
1471
+ }
1472
+ // Fallback: use component's width property if available
1473
+ const w = component.width;
1474
+ return w ? { width: w } : undefined;
1475
+ };
1476
+ const handle = this.ui.showOverlay(component, resolveOptions());
1477
+ // Expose handle to caller for visibility control
1478
+ options?.onHandle?.(handle);
1479
+ }
1480
+ else {
1481
+ this.editorContainer.clear();
1482
+ this.editorContainer.addChild(component);
1483
+ this.ui.setFocus(component);
1484
+ this.ui.requestRender();
1485
+ }
1486
+ })
1487
+ .catch((err) => {
1488
+ if (closed)
1489
+ return;
1490
+ if (!isOverlay)
1491
+ restoreEditor();
1492
+ reject(err);
1493
+ });
1494
+ });
1495
+ }
1496
+ /**
1497
+ * Show an extension error in the UI.
1498
+ */
1499
+ showExtensionError(extensionPath, error, stack) {
1500
+ const errorMsg = `Extension "${extensionPath}" error: ${error}`;
1501
+ const errorText = new Text(theme.fg("error", errorMsg), 1, 0);
1502
+ this.chatContainer.addChild(errorText);
1503
+ if (stack) {
1504
+ // Show stack trace in dim color, indented
1505
+ const stackLines = stack
1506
+ .split("\n")
1507
+ .slice(1) // Skip first line (duplicates error message)
1508
+ .map((line) => theme.fg("dim", ` ${line.trim()}`))
1509
+ .join("\n");
1510
+ if (stackLines) {
1511
+ this.chatContainer.addChild(new Text(stackLines, 1, 0));
1512
+ }
1513
+ }
1514
+ this.ui.requestRender();
1515
+ }
1516
+ // =========================================================================
1517
+ // Key Handlers
1518
+ // =========================================================================
1519
+ setupKeyHandlers() {
1520
+ // Set up handlers on defaultEditor - they use this.editor for text access
1521
+ // so they work correctly regardless of which editor is active
1522
+ this.defaultEditor.onEscape = () => {
1523
+ if (this.loadingAnimation) {
1524
+ this.restoreQueuedMessagesToEditor({ abort: true });
1525
+ }
1526
+ else if (this.session.isBashRunning) {
1527
+ this.session.abortBash();
1528
+ }
1529
+ else if (this.isBashMode) {
1530
+ this.editor.setText("");
1531
+ this.isBashMode = false;
1532
+ this.updateEditorBorderColor();
1533
+ }
1534
+ else if (!this.editor.getText().trim()) {
1535
+ // Double-escape with empty editor triggers /tree, /fork, or nothing based on setting
1536
+ const action = this.settingsManager.getDoubleEscapeAction();
1537
+ if (action !== "none") {
1538
+ const now = Date.now();
1539
+ if (now - this.lastEscapeTime < 500) {
1540
+ if (action === "tree") {
1541
+ this.showTreeSelector();
1542
+ }
1543
+ else {
1544
+ this.showUserMessageSelector();
1545
+ }
1546
+ this.lastEscapeTime = 0;
1547
+ }
1548
+ else {
1549
+ this.lastEscapeTime = now;
1550
+ }
1551
+ }
1552
+ }
1553
+ };
1554
+ // Register app action handlers
1555
+ this.defaultEditor.onAction("clear", () => this.handleCtrlC());
1556
+ this.defaultEditor.onCtrlD = () => this.handleCtrlD();
1557
+ this.defaultEditor.onAction("suspend", () => this.handleCtrlZ());
1558
+ this.defaultEditor.onAction("cycleThinkingLevel", () => this.cycleThinkingLevel());
1559
+ this.defaultEditor.onAction("cycleModelForward", () => this.cycleModel("forward"));
1560
+ this.defaultEditor.onAction("cycleModelBackward", () => this.cycleModel("backward"));
1561
+ // Global debug handler on TUI (works regardless of focus)
1562
+ this.ui.onDebug = () => this.handleDebugCommand();
1563
+ this.defaultEditor.onAction("selectModel", () => this.showModelSelector());
1564
+ this.defaultEditor.onAction("expandTools", () => this.toggleToolOutputExpansion());
1565
+ this.defaultEditor.onAction("toggleThinking", () => this.toggleThinkingBlockVisibility());
1566
+ this.defaultEditor.onAction("externalEditor", () => this.openExternalEditor());
1567
+ this.defaultEditor.onAction("followUp", () => this.handleFollowUp());
1568
+ this.defaultEditor.onAction("dequeue", () => this.handleDequeue());
1569
+ this.defaultEditor.onAction("newSession", () => this.handleClearCommand());
1570
+ this.defaultEditor.onAction("tree", () => this.showTreeSelector());
1571
+ this.defaultEditor.onAction("fork", () => this.showUserMessageSelector());
1572
+ this.defaultEditor.onAction("resume", () => this.showSessionSelector());
1573
+ this.defaultEditor.onChange = (text) => {
1574
+ const wasBashMode = this.isBashMode;
1575
+ this.isBashMode = text.trimStart().startsWith("!");
1576
+ if (wasBashMode !== this.isBashMode) {
1577
+ this.updateEditorBorderColor();
1578
+ }
1579
+ };
1580
+ // Handle clipboard image paste (triggered on Ctrl+V)
1581
+ this.defaultEditor.onPasteImage = () => {
1582
+ this.handleClipboardImagePaste();
1583
+ };
1584
+ }
1585
+ async handleClipboardImagePaste() {
1586
+ try {
1587
+ const image = await readClipboardImage();
1588
+ if (!image) {
1589
+ const moduleNote = clipboardModuleName ? ` (${clipboardModuleName})` : "";
1590
+ this.showStatus(`No clipboard image available${moduleNote}`);
1591
+ return;
1592
+ }
1593
+ // Write to temp file
1594
+ const tmpDir = os.tmpdir();
1595
+ const ext = extensionForImageMimeType(image.mimeType) ?? "png";
1596
+ const fileName = `pi-clipboard-${crypto.randomUUID()}.${ext}`;
1597
+ const filePath = path.join(tmpDir, fileName);
1598
+ fs.writeFileSync(filePath, Buffer.from(image.bytes));
1599
+ // Insert file path directly
1600
+ this.editor.insertTextAtCursor?.(filePath);
1601
+ this.showStatus(`Pasted clipboard image → ${path.basename(filePath)}`);
1602
+ this.ui.requestRender();
1603
+ }
1604
+ catch (error) {
1605
+ const detail = error instanceof Error ? error.message : String(error);
1606
+ this.showWarning(`Clipboard image paste failed${detail ? `: ${detail}` : ""}`);
1607
+ }
1608
+ }
1609
+ setupEditorSubmitHandler() {
1610
+ this.defaultEditor.onSubmit = async (text) => {
1611
+ text = text.trim();
1612
+ if (!text)
1613
+ return;
1614
+ // Handle commands
1615
+ if (text === "/settings") {
1616
+ this.showSettingsSelector();
1617
+ this.editor.setText("");
1618
+ return;
1619
+ }
1620
+ if (text === "/scoped-models") {
1621
+ this.editor.setText("");
1622
+ await this.showModelsSelector();
1623
+ return;
1624
+ }
1625
+ if (text === "/model" || text.startsWith("/model ")) {
1626
+ const searchTerm = text.startsWith("/model ") ? text.slice(7).trim() : undefined;
1627
+ this.editor.setText("");
1628
+ await this.handleModelCommand(searchTerm);
1629
+ return;
1630
+ }
1631
+ if (text.startsWith("/export")) {
1632
+ await this.handleExportCommand(text);
1633
+ this.editor.setText("");
1634
+ return;
1635
+ }
1636
+ if (text === "/share") {
1637
+ await this.handleShareCommand();
1638
+ this.editor.setText("");
1639
+ return;
1640
+ }
1641
+ if (text === "/copy") {
1642
+ this.handleCopyCommand();
1643
+ this.editor.setText("");
1644
+ return;
1645
+ }
1646
+ if (text === "/name" || text.startsWith("/name ")) {
1647
+ this.handleNameCommand(text);
1648
+ this.editor.setText("");
1649
+ return;
1650
+ }
1651
+ if (text === "/session") {
1652
+ this.handleSessionCommand();
1653
+ this.editor.setText("");
1654
+ return;
1655
+ }
1656
+ if (text === "/changelog") {
1657
+ this.handleChangelogCommand();
1658
+ this.editor.setText("");
1659
+ return;
1660
+ }
1661
+ if (text === "/hotkeys") {
1662
+ this.handleHotkeysCommand();
1663
+ this.editor.setText("");
1664
+ return;
1665
+ }
1666
+ if (text === "/fork") {
1667
+ this.showUserMessageSelector();
1668
+ this.editor.setText("");
1669
+ return;
1670
+ }
1671
+ if (text === "/tree") {
1672
+ this.showTreeSelector();
1673
+ this.editor.setText("");
1674
+ return;
1675
+ }
1676
+ if (text === "/login") {
1677
+ this.showOAuthSelector("login");
1678
+ this.editor.setText("");
1679
+ return;
1680
+ }
1681
+ if (text === "/logout") {
1682
+ this.showOAuthSelector("logout");
1683
+ this.editor.setText("");
1684
+ return;
1685
+ }
1686
+ if (text === "/new") {
1687
+ this.editor.setText("");
1688
+ await this.handleClearCommand();
1689
+ return;
1690
+ }
1691
+ if (text === "/compact" || text.startsWith("/compact ")) {
1692
+ const customInstructions = text.startsWith("/compact ") ? text.slice(9).trim() : undefined;
1693
+ this.editor.setText("");
1694
+ await this.handleCompactCommand(customInstructions);
1695
+ return;
1696
+ }
1697
+ if (text === "/reload") {
1698
+ this.editor.setText("");
1699
+ await this.handleReloadCommand();
1700
+ return;
1701
+ }
1702
+ if (text === "/debug") {
1703
+ this.handleDebugCommand();
1704
+ this.editor.setText("");
1705
+ return;
1706
+ }
1707
+ if (text === "/arminsayshi") {
1708
+ this.handleArminSaysHi();
1709
+ this.editor.setText("");
1710
+ return;
1711
+ }
1712
+ if (text === "/resume") {
1713
+ this.showSessionSelector();
1714
+ this.editor.setText("");
1715
+ return;
1716
+ }
1717
+ if (text === "/quit") {
1718
+ this.editor.setText("");
1719
+ await this.shutdown();
1720
+ return;
1721
+ }
1722
+ // Handle bash command (! for normal, !! for excluded from context)
1723
+ if (text.startsWith("!")) {
1724
+ const isExcluded = text.startsWith("!!");
1725
+ const command = isExcluded ? text.slice(2).trim() : text.slice(1).trim();
1726
+ if (command) {
1727
+ if (this.session.isBashRunning) {
1728
+ this.showWarning("A bash command is already running. Press Esc to cancel it first.");
1729
+ this.editor.setText(text);
1730
+ return;
1731
+ }
1732
+ this.editor.addToHistory?.(text);
1733
+ await this.handleBashCommand(command, isExcluded);
1734
+ this.isBashMode = false;
1735
+ this.updateEditorBorderColor();
1736
+ return;
1737
+ }
1738
+ }
1739
+ // Queue input during compaction (extension commands execute immediately)
1740
+ if (this.session.isCompacting) {
1741
+ if (this.isExtensionCommand(text)) {
1742
+ this.editor.addToHistory?.(text);
1743
+ this.editor.setText("");
1744
+ await this.session.prompt(text);
1745
+ }
1746
+ else {
1747
+ this.queueCompactionMessage(text, "steer");
1748
+ }
1749
+ return;
1750
+ }
1751
+ // If streaming, use prompt() with steer behavior
1752
+ // This handles extension commands (execute immediately), prompt template expansion, and queueing
1753
+ if (this.session.isStreaming) {
1754
+ this.editor.addToHistory?.(text);
1755
+ this.editor.setText("");
1756
+ await this.session.prompt(text, { streamingBehavior: "steer" });
1757
+ this.updatePendingMessagesDisplay();
1758
+ this.ui.requestRender();
1759
+ return;
1760
+ }
1761
+ // Normal message submission
1762
+ // First, move any pending bash components to chat
1763
+ this.flushPendingBashComponents();
1764
+ if (this.onInputCallback) {
1765
+ this.onInputCallback(text);
1766
+ }
1767
+ this.editor.addToHistory?.(text);
1768
+ };
1769
+ }
1770
+ subscribeToAgent() {
1771
+ this.unsubscribe = this.session.subscribe(async (event) => {
1772
+ await this.handleEvent(event);
1773
+ });
1774
+ }
1775
+ async handleEvent(event) {
1776
+ if (!this.isInitialized) {
1777
+ await this.init();
1778
+ }
1779
+ this.footer.invalidate();
1780
+ switch (event.type) {
1781
+ case "agent_start":
1782
+ // Restore main escape handler if retry handler is still active
1783
+ // (retry success event fires later, but we need main handler now)
1784
+ if (this.retryEscapeHandler) {
1785
+ this.defaultEditor.onEscape = this.retryEscapeHandler;
1786
+ this.retryEscapeHandler = undefined;
1787
+ }
1788
+ if (this.retryLoader) {
1789
+ this.retryLoader.stop();
1790
+ this.retryLoader = undefined;
1791
+ }
1792
+ if (this.loadingAnimation) {
1793
+ this.loadingAnimation.stop();
1794
+ }
1795
+ this.statusContainer.clear();
1796
+ this.loadingAnimation = new Loader(this.ui, (spinner) => theme.fg("accent", spinner), (text) => theme.fg("muted", text), this.defaultWorkingMessage);
1797
+ this.statusContainer.addChild(this.loadingAnimation);
1798
+ // Apply any pending working message queued before loader existed
1799
+ if (this.pendingWorkingMessage !== undefined) {
1800
+ if (this.pendingWorkingMessage) {
1801
+ this.loadingAnimation.setMessage(this.pendingWorkingMessage);
1802
+ }
1803
+ this.pendingWorkingMessage = undefined;
1804
+ }
1805
+ this.ui.requestRender();
1806
+ break;
1807
+ case "message_start":
1808
+ if (event.message.role === "custom") {
1809
+ this.addMessageToChat(event.message);
1810
+ this.ui.requestRender();
1811
+ }
1812
+ else if (event.message.role === "user") {
1813
+ this.addMessageToChat(event.message);
1814
+ this.updatePendingMessagesDisplay();
1815
+ this.ui.requestRender();
1816
+ }
1817
+ else if (event.message.role === "assistant") {
1818
+ this.streamingComponent = new AssistantMessageComponent(undefined, this.hideThinkingBlock, this.getMarkdownThemeWithSettings());
1819
+ this.streamingMessage = event.message;
1820
+ this.chatContainer.addChild(this.streamingComponent);
1821
+ this.streamingComponent.updateContent(this.streamingMessage);
1822
+ this.ui.requestRender();
1823
+ }
1824
+ break;
1825
+ case "message_update":
1826
+ if (this.streamingComponent && event.message.role === "assistant") {
1827
+ this.streamingMessage = event.message;
1828
+ this.streamingComponent.updateContent(this.streamingMessage);
1829
+ for (const content of this.streamingMessage.content) {
1830
+ if (content.type === "toolCall") {
1831
+ if (!this.pendingTools.has(content.id)) {
1832
+ const component = new ToolExecutionComponent(content.name, content.arguments, {
1833
+ showImages: this.settingsManager.getShowImages(),
1834
+ }, this.getRegisteredToolDefinition(content.name), this.ui);
1835
+ component.setExpanded(this.toolOutputExpanded);
1836
+ this.chatContainer.addChild(component);
1837
+ this.pendingTools.set(content.id, component);
1838
+ }
1839
+ else {
1840
+ const component = this.pendingTools.get(content.id);
1841
+ if (component) {
1842
+ component.updateArgs(content.arguments);
1843
+ }
1844
+ }
1845
+ }
1846
+ }
1847
+ this.ui.requestRender();
1848
+ }
1849
+ break;
1850
+ case "message_end":
1851
+ if (event.message.role === "user")
1852
+ break;
1853
+ if (this.streamingComponent && event.message.role === "assistant") {
1854
+ this.streamingMessage = event.message;
1855
+ let errorMessage;
1856
+ if (this.streamingMessage.stopReason === "aborted") {
1857
+ const retryAttempt = this.session.retryAttempt;
1858
+ errorMessage =
1859
+ retryAttempt > 0
1860
+ ? `Aborted after ${retryAttempt} retry attempt${retryAttempt > 1 ? "s" : ""}`
1861
+ : "Operation aborted";
1862
+ this.streamingMessage.errorMessage = errorMessage;
1863
+ }
1864
+ this.streamingComponent.updateContent(this.streamingMessage);
1865
+ if (this.streamingMessage.stopReason === "aborted" || this.streamingMessage.stopReason === "error") {
1866
+ if (!errorMessage) {
1867
+ errorMessage = this.streamingMessage.errorMessage || "Error";
1868
+ }
1869
+ for (const [, component] of this.pendingTools.entries()) {
1870
+ component.updateResult({
1871
+ content: [{ type: "text", text: errorMessage }],
1872
+ isError: true,
1873
+ });
1874
+ }
1875
+ this.pendingTools.clear();
1876
+ }
1877
+ else {
1878
+ // Args are now complete - trigger diff computation for edit tools
1879
+ for (const [, component] of this.pendingTools.entries()) {
1880
+ component.setArgsComplete();
1881
+ }
1882
+ }
1883
+ this.streamingComponent = undefined;
1884
+ this.streamingMessage = undefined;
1885
+ this.footer.invalidate();
1886
+ }
1887
+ this.ui.requestRender();
1888
+ break;
1889
+ case "tool_execution_start": {
1890
+ if (!this.pendingTools.has(event.toolCallId)) {
1891
+ const component = new ToolExecutionComponent(event.toolName, event.args, {
1892
+ showImages: this.settingsManager.getShowImages(),
1893
+ }, this.getRegisteredToolDefinition(event.toolName), this.ui);
1894
+ component.setExpanded(this.toolOutputExpanded);
1895
+ this.chatContainer.addChild(component);
1896
+ this.pendingTools.set(event.toolCallId, component);
1897
+ this.ui.requestRender();
1898
+ }
1899
+ break;
1900
+ }
1901
+ case "tool_execution_update": {
1902
+ const component = this.pendingTools.get(event.toolCallId);
1903
+ if (component) {
1904
+ component.updateResult({ ...event.partialResult, isError: false }, true);
1905
+ this.ui.requestRender();
1906
+ }
1907
+ break;
1908
+ }
1909
+ case "tool_execution_end": {
1910
+ const component = this.pendingTools.get(event.toolCallId);
1911
+ if (component) {
1912
+ component.updateResult({ ...event.result, isError: event.isError });
1913
+ this.pendingTools.delete(event.toolCallId);
1914
+ this.ui.requestRender();
1915
+ }
1916
+ break;
1917
+ }
1918
+ case "agent_end":
1919
+ if (this.loadingAnimation) {
1920
+ this.loadingAnimation.stop();
1921
+ this.loadingAnimation = undefined;
1922
+ this.statusContainer.clear();
1923
+ }
1924
+ if (this.streamingComponent) {
1925
+ this.chatContainer.removeChild(this.streamingComponent);
1926
+ this.streamingComponent = undefined;
1927
+ this.streamingMessage = undefined;
1928
+ }
1929
+ this.pendingTools.clear();
1930
+ await this.checkShutdownRequested();
1931
+ this.ui.requestRender();
1932
+ break;
1933
+ case "auto_compaction_start": {
1934
+ // Keep editor active; submissions are queued during compaction.
1935
+ // Set up escape to abort auto-compaction
1936
+ this.autoCompactionEscapeHandler = this.defaultEditor.onEscape;
1937
+ this.defaultEditor.onEscape = () => {
1938
+ this.session.abortCompaction();
1939
+ };
1940
+ // Show compacting indicator with reason
1941
+ this.statusContainer.clear();
1942
+ const reasonText = event.reason === "overflow" ? "Context overflow detected, " : "";
1943
+ this.autoCompactionLoader = new Loader(this.ui, (spinner) => theme.fg("accent", spinner), (text) => theme.fg("muted", text), `${reasonText}Auto-compacting... (${appKey(this.keybindings, "interrupt")} to cancel)`);
1944
+ this.statusContainer.addChild(this.autoCompactionLoader);
1945
+ this.ui.requestRender();
1946
+ break;
1947
+ }
1948
+ case "auto_compaction_end": {
1949
+ // Restore escape handler
1950
+ if (this.autoCompactionEscapeHandler) {
1951
+ this.defaultEditor.onEscape = this.autoCompactionEscapeHandler;
1952
+ this.autoCompactionEscapeHandler = undefined;
1953
+ }
1954
+ // Stop loader
1955
+ if (this.autoCompactionLoader) {
1956
+ this.autoCompactionLoader.stop();
1957
+ this.autoCompactionLoader = undefined;
1958
+ this.statusContainer.clear();
1959
+ }
1960
+ // Handle result
1961
+ if (event.aborted) {
1962
+ this.showStatus("Auto-compaction cancelled");
1963
+ }
1964
+ else if (event.result) {
1965
+ // Rebuild chat to show compacted state
1966
+ this.chatContainer.clear();
1967
+ this.rebuildChatFromMessages();
1968
+ // Add compaction component at bottom so user sees it without scrolling
1969
+ this.addMessageToChat({
1970
+ role: "compactionSummary",
1971
+ tokensBefore: event.result.tokensBefore,
1972
+ summary: event.result.summary,
1973
+ timestamp: Date.now(),
1974
+ });
1975
+ this.footer.invalidate();
1976
+ }
1977
+ else if (event.errorMessage) {
1978
+ // Compaction failed (e.g., quota exceeded, API error)
1979
+ this.chatContainer.addChild(new Spacer(1));
1980
+ this.chatContainer.addChild(new Text(theme.fg("error", event.errorMessage), 1, 0));
1981
+ }
1982
+ void this.flushCompactionQueue({ willRetry: event.willRetry });
1983
+ this.ui.requestRender();
1984
+ break;
1985
+ }
1986
+ case "auto_retry_start": {
1987
+ // Set up escape to abort retry
1988
+ this.retryEscapeHandler = this.defaultEditor.onEscape;
1989
+ this.defaultEditor.onEscape = () => {
1990
+ this.session.abortRetry();
1991
+ };
1992
+ // Show retry indicator
1993
+ this.statusContainer.clear();
1994
+ const delaySeconds = Math.round(event.delayMs / 1000);
1995
+ this.retryLoader = new Loader(this.ui, (spinner) => theme.fg("warning", spinner), (text) => theme.fg("muted", text), `Retrying (${event.attempt}/${event.maxAttempts}) in ${delaySeconds}s... (${appKey(this.keybindings, "interrupt")} to cancel)`);
1996
+ this.statusContainer.addChild(this.retryLoader);
1997
+ this.ui.requestRender();
1998
+ break;
1999
+ }
2000
+ case "auto_retry_end": {
2001
+ // Restore escape handler
2002
+ if (this.retryEscapeHandler) {
2003
+ this.defaultEditor.onEscape = this.retryEscapeHandler;
2004
+ this.retryEscapeHandler = undefined;
2005
+ }
2006
+ // Stop loader
2007
+ if (this.retryLoader) {
2008
+ this.retryLoader.stop();
2009
+ this.retryLoader = undefined;
2010
+ this.statusContainer.clear();
2011
+ }
2012
+ // Show error only on final failure (success shows normal response)
2013
+ if (!event.success) {
2014
+ this.showError(`Retry failed after ${event.attempt} attempts: ${event.finalError || "Unknown error"}`);
2015
+ }
2016
+ this.ui.requestRender();
2017
+ break;
2018
+ }
2019
+ }
2020
+ }
2021
+ /** Extract text content from a user message */
2022
+ getUserMessageText(message) {
2023
+ if (message.role !== "user")
2024
+ return "";
2025
+ const textBlocks = typeof message.content === "string"
2026
+ ? [{ type: "text", text: message.content }]
2027
+ : message.content.filter((c) => c.type === "text");
2028
+ return textBlocks.map((c) => c.text).join("");
2029
+ }
2030
+ /**
2031
+ * Show a status message in the chat.
2032
+ *
2033
+ * If multiple status messages are emitted back-to-back (without anything else being added to the chat),
2034
+ * we update the previous status line instead of appending new ones to avoid log spam.
2035
+ */
2036
+ showStatus(message) {
2037
+ const children = this.chatContainer.children;
2038
+ const last = children.length > 0 ? children[children.length - 1] : undefined;
2039
+ const secondLast = children.length > 1 ? children[children.length - 2] : undefined;
2040
+ if (last && secondLast && last === this.lastStatusText && secondLast === this.lastStatusSpacer) {
2041
+ this.lastStatusText.setText(theme.fg("dim", message));
2042
+ this.ui.requestRender();
2043
+ return;
2044
+ }
2045
+ const spacer = new Spacer(1);
2046
+ const text = new Text(theme.fg("dim", message), 1, 0);
2047
+ this.chatContainer.addChild(spacer);
2048
+ this.chatContainer.addChild(text);
2049
+ this.lastStatusSpacer = spacer;
2050
+ this.lastStatusText = text;
2051
+ this.ui.requestRender();
2052
+ }
2053
+ addMessageToChat(message, options) {
2054
+ switch (message.role) {
2055
+ case "bashExecution": {
2056
+ const component = new BashExecutionComponent(message.command, this.ui, message.excludeFromContext);
2057
+ if (message.output) {
2058
+ component.appendOutput(message.output);
2059
+ }
2060
+ component.setComplete(message.exitCode, message.cancelled, message.truncated ? { truncated: true } : undefined, message.fullOutputPath);
2061
+ this.chatContainer.addChild(component);
2062
+ break;
2063
+ }
2064
+ case "custom": {
2065
+ if (message.display) {
2066
+ const renderer = this.session.extensionRunner?.getMessageRenderer(message.customType);
2067
+ const component = new CustomMessageComponent(message, renderer, this.getMarkdownThemeWithSettings());
2068
+ component.setExpanded(this.toolOutputExpanded);
2069
+ this.chatContainer.addChild(component);
2070
+ }
2071
+ break;
2072
+ }
2073
+ case "compactionSummary": {
2074
+ this.chatContainer.addChild(new Spacer(1));
2075
+ const component = new CompactionSummaryMessageComponent(message, this.getMarkdownThemeWithSettings());
2076
+ component.setExpanded(this.toolOutputExpanded);
2077
+ this.chatContainer.addChild(component);
2078
+ break;
2079
+ }
2080
+ case "branchSummary": {
2081
+ this.chatContainer.addChild(new Spacer(1));
2082
+ const component = new BranchSummaryMessageComponent(message, this.getMarkdownThemeWithSettings());
2083
+ component.setExpanded(this.toolOutputExpanded);
2084
+ this.chatContainer.addChild(component);
2085
+ break;
2086
+ }
2087
+ case "user": {
2088
+ const textContent = this.getUserMessageText(message);
2089
+ if (textContent) {
2090
+ const skillBlock = parseSkillBlock(textContent);
2091
+ if (skillBlock) {
2092
+ // Render skill block (collapsible)
2093
+ this.chatContainer.addChild(new Spacer(1));
2094
+ const component = new SkillInvocationMessageComponent(skillBlock, this.getMarkdownThemeWithSettings());
2095
+ component.setExpanded(this.toolOutputExpanded);
2096
+ this.chatContainer.addChild(component);
2097
+ // Render user message separately if present
2098
+ if (skillBlock.userMessage) {
2099
+ const userComponent = new UserMessageComponent(skillBlock.userMessage, this.getMarkdownThemeWithSettings());
2100
+ this.chatContainer.addChild(userComponent);
2101
+ }
2102
+ }
2103
+ else {
2104
+ const userComponent = new UserMessageComponent(textContent, this.getMarkdownThemeWithSettings());
2105
+ this.chatContainer.addChild(userComponent);
2106
+ }
2107
+ if (options?.populateHistory) {
2108
+ this.editor.addToHistory?.(textContent);
2109
+ }
2110
+ }
2111
+ break;
2112
+ }
2113
+ case "assistant": {
2114
+ const assistantComponent = new AssistantMessageComponent(message, this.hideThinkingBlock, this.getMarkdownThemeWithSettings());
2115
+ this.chatContainer.addChild(assistantComponent);
2116
+ break;
2117
+ }
2118
+ case "toolResult": {
2119
+ // Tool results are rendered inline with tool calls, handled separately
2120
+ break;
2121
+ }
2122
+ default: {
2123
+ const _exhaustive = message;
2124
+ }
2125
+ }
2126
+ }
2127
+ /**
2128
+ * Render session context to chat. Used for initial load and rebuild after compaction.
2129
+ * @param sessionContext Session context to render
2130
+ * @param options.updateFooter Update footer state
2131
+ * @param options.populateHistory Add user messages to editor history
2132
+ */
2133
+ renderSessionContext(sessionContext, options = {}) {
2134
+ this.pendingTools.clear();
2135
+ if (options.updateFooter) {
2136
+ this.footer.invalidate();
2137
+ this.updateEditorBorderColor();
2138
+ }
2139
+ for (const message of sessionContext.messages) {
2140
+ // Assistant messages need special handling for tool calls
2141
+ if (message.role === "assistant") {
2142
+ this.addMessageToChat(message);
2143
+ // Render tool call components
2144
+ for (const content of message.content) {
2145
+ if (content.type === "toolCall") {
2146
+ const component = new ToolExecutionComponent(content.name, content.arguments, { showImages: this.settingsManager.getShowImages() }, this.getRegisteredToolDefinition(content.name), this.ui);
2147
+ component.setExpanded(this.toolOutputExpanded);
2148
+ this.chatContainer.addChild(component);
2149
+ if (message.stopReason === "aborted" || message.stopReason === "error") {
2150
+ let errorMessage;
2151
+ if (message.stopReason === "aborted") {
2152
+ const retryAttempt = this.session.retryAttempt;
2153
+ errorMessage =
2154
+ retryAttempt > 0
2155
+ ? `Aborted after ${retryAttempt} retry attempt${retryAttempt > 1 ? "s" : ""}`
2156
+ : "Operation aborted";
2157
+ }
2158
+ else {
2159
+ errorMessage = message.errorMessage || "Error";
2160
+ }
2161
+ component.updateResult({ content: [{ type: "text", text: errorMessage }], isError: true });
2162
+ }
2163
+ else {
2164
+ this.pendingTools.set(content.id, component);
2165
+ }
2166
+ }
2167
+ }
2168
+ }
2169
+ else if (message.role === "toolResult") {
2170
+ // Match tool results to pending tool components
2171
+ const component = this.pendingTools.get(message.toolCallId);
2172
+ if (component) {
2173
+ component.updateResult(message);
2174
+ this.pendingTools.delete(message.toolCallId);
2175
+ }
2176
+ }
2177
+ else {
2178
+ // All other messages use standard rendering
2179
+ this.addMessageToChat(message, options);
2180
+ }
2181
+ }
2182
+ this.pendingTools.clear();
2183
+ this.ui.requestRender();
2184
+ }
2185
+ renderInitialMessages() {
2186
+ // Get aligned messages and entries from session context
2187
+ const context = this.sessionManager.buildSessionContext();
2188
+ this.renderSessionContext(context, {
2189
+ updateFooter: true,
2190
+ populateHistory: true,
2191
+ });
2192
+ // Show compaction info if session was compacted
2193
+ const allEntries = this.sessionManager.getEntries();
2194
+ const compactionCount = allEntries.filter((e) => e.type === "compaction").length;
2195
+ if (compactionCount > 0) {
2196
+ const times = compactionCount === 1 ? "1 time" : `${compactionCount} times`;
2197
+ this.showStatus(`Session compacted ${times}`);
2198
+ }
2199
+ }
2200
+ async getUserInput() {
2201
+ return new Promise((resolve) => {
2202
+ this.onInputCallback = (text) => {
2203
+ this.onInputCallback = undefined;
2204
+ resolve(text);
2205
+ };
2206
+ });
2207
+ }
2208
+ rebuildChatFromMessages() {
2209
+ this.chatContainer.clear();
2210
+ const context = this.sessionManager.buildSessionContext();
2211
+ this.renderSessionContext(context);
2212
+ }
2213
+ // =========================================================================
2214
+ // Key handlers
2215
+ // =========================================================================
2216
+ handleCtrlC() {
2217
+ const now = Date.now();
2218
+ if (now - this.lastSigintTime < 500) {
2219
+ void this.shutdown();
2220
+ }
2221
+ else {
2222
+ this.clearEditor();
2223
+ this.lastSigintTime = now;
2224
+ }
2225
+ }
2226
+ handleCtrlD() {
2227
+ // Only called when editor is empty (enforced by CustomEditor)
2228
+ void this.shutdown();
2229
+ }
2230
+ /**
2231
+ * Gracefully shutdown the agent.
2232
+ * Emits shutdown event to extensions, then exits.
2233
+ */
2234
+ isShuttingDown = false;
2235
+ async shutdown() {
2236
+ if (this.isShuttingDown)
2237
+ return;
2238
+ this.isShuttingDown = true;
2239
+ // Emit shutdown event to extensions
2240
+ const extensionRunner = this.session.extensionRunner;
2241
+ if (extensionRunner?.hasHandlers("session_shutdown")) {
2242
+ await extensionRunner.emit({
2243
+ type: "session_shutdown",
2244
+ });
2245
+ }
2246
+ // Wait for any pending renders to complete
2247
+ // requestRender() uses process.nextTick(), so we wait one tick
2248
+ await new Promise((resolve) => process.nextTick(resolve));
2249
+ // Drain any in-flight Kitty key release events before stopping.
2250
+ // This prevents escape sequences from leaking to the parent shell over slow SSH.
2251
+ await this.ui.terminal.drainInput(1000);
2252
+ this.stop();
2253
+ process.exit(0);
2254
+ }
2255
+ /**
2256
+ * Check if shutdown was requested and perform shutdown if so.
2257
+ */
2258
+ async checkShutdownRequested() {
2259
+ if (!this.shutdownRequested)
2260
+ return;
2261
+ await this.shutdown();
2262
+ }
2263
+ handleCtrlZ() {
2264
+ // Ignore SIGINT while suspended so Ctrl+C in the terminal does not
2265
+ // kill the backgrounded process. The handler is removed on resume.
2266
+ const ignoreSigint = () => { };
2267
+ process.on("SIGINT", ignoreSigint);
2268
+ // Set up handler to restore TUI when resumed
2269
+ process.once("SIGCONT", () => {
2270
+ process.removeListener("SIGINT", ignoreSigint);
2271
+ this.ui.start();
2272
+ this.ui.requestRender(true);
2273
+ });
2274
+ // Stop the TUI (restore terminal to normal mode)
2275
+ this.ui.stop();
2276
+ // Send SIGTSTP to process group (pid=0 means all processes in group)
2277
+ process.kill(0, "SIGTSTP");
2278
+ }
2279
+ async handleFollowUp() {
2280
+ const text = (this.editor.getExpandedText?.() ?? this.editor.getText()).trim();
2281
+ if (!text)
2282
+ return;
2283
+ // Queue input during compaction (extension commands execute immediately)
2284
+ if (this.session.isCompacting) {
2285
+ if (this.isExtensionCommand(text)) {
2286
+ this.editor.addToHistory?.(text);
2287
+ this.editor.setText("");
2288
+ await this.session.prompt(text);
2289
+ }
2290
+ else {
2291
+ this.queueCompactionMessage(text, "followUp");
2292
+ }
2293
+ return;
2294
+ }
2295
+ // Alt+Enter queues a follow-up message (waits until agent finishes)
2296
+ // This handles extension commands (execute immediately), prompt template expansion, and queueing
2297
+ if (this.session.isStreaming) {
2298
+ this.editor.addToHistory?.(text);
2299
+ this.editor.setText("");
2300
+ await this.session.prompt(text, { streamingBehavior: "followUp" });
2301
+ this.updatePendingMessagesDisplay();
2302
+ this.ui.requestRender();
2303
+ }
2304
+ // If not streaming, Alt+Enter acts like regular Enter (trigger onSubmit)
2305
+ else if (this.editor.onSubmit) {
2306
+ this.editor.onSubmit(text);
2307
+ }
2308
+ }
2309
+ handleDequeue() {
2310
+ const restored = this.restoreQueuedMessagesToEditor();
2311
+ if (restored === 0) {
2312
+ this.showStatus("No queued messages to restore");
2313
+ }
2314
+ else {
2315
+ this.showStatus(`Restored ${restored} queued message${restored > 1 ? "s" : ""} to editor`);
2316
+ }
2317
+ }
2318
+ updateEditorBorderColor() {
2319
+ if (this.isBashMode) {
2320
+ this.editor.borderColor = theme.getBashModeBorderColor();
2321
+ }
2322
+ else {
2323
+ const level = this.session.thinkingLevel || "off";
2324
+ this.editor.borderColor = theme.getThinkingBorderColor(level);
2325
+ }
2326
+ this.ui.requestRender();
2327
+ }
2328
+ cycleThinkingLevel() {
2329
+ const newLevel = this.session.cycleThinkingLevel();
2330
+ if (newLevel === undefined) {
2331
+ this.showStatus("Current model does not support thinking");
2332
+ }
2333
+ else {
2334
+ this.footer.invalidate();
2335
+ this.updateEditorBorderColor();
2336
+ this.showStatus(`Thinking level: ${newLevel}`);
2337
+ }
2338
+ }
2339
+ async cycleModel(direction) {
2340
+ try {
2341
+ const result = await this.session.cycleModel(direction);
2342
+ if (result === undefined) {
2343
+ const msg = this.session.scopedModels.length > 0 ? "Only one model in scope" : "Only one model available";
2344
+ this.showStatus(msg);
2345
+ }
2346
+ else {
2347
+ this.footer.invalidate();
2348
+ this.updateEditorBorderColor();
2349
+ const thinkingStr = result.model.reasoning && result.thinkingLevel !== "off" ? ` (thinking: ${result.thinkingLevel})` : "";
2350
+ this.showStatus(`Switched to ${result.model.name || result.model.id}${thinkingStr}`);
2351
+ }
2352
+ }
2353
+ catch (error) {
2354
+ this.showError(error instanceof Error ? error.message : String(error));
2355
+ }
2356
+ }
2357
+ toggleToolOutputExpansion() {
2358
+ this.setToolsExpanded(!this.toolOutputExpanded);
2359
+ }
2360
+ setToolsExpanded(expanded) {
2361
+ this.toolOutputExpanded = expanded;
2362
+ for (const child of this.chatContainer.children) {
2363
+ if (isExpandable(child)) {
2364
+ child.setExpanded(expanded);
2365
+ }
2366
+ }
2367
+ this.ui.requestRender();
2368
+ }
2369
+ toggleThinkingBlockVisibility() {
2370
+ this.hideThinkingBlock = !this.hideThinkingBlock;
2371
+ this.settingsManager.setHideThinkingBlock(this.hideThinkingBlock);
2372
+ // Rebuild chat from session messages
2373
+ this.chatContainer.clear();
2374
+ this.rebuildChatFromMessages();
2375
+ // If streaming, re-add the streaming component with updated visibility and re-render
2376
+ if (this.streamingComponent && this.streamingMessage) {
2377
+ this.streamingComponent.setHideThinkingBlock(this.hideThinkingBlock);
2378
+ this.streamingComponent.updateContent(this.streamingMessage);
2379
+ this.chatContainer.addChild(this.streamingComponent);
2380
+ }
2381
+ this.showStatus(`Thinking blocks: ${this.hideThinkingBlock ? "hidden" : "visible"}`);
2382
+ }
2383
+ openExternalEditor() {
2384
+ // Determine editor (respect $VISUAL, then $EDITOR)
2385
+ const editorCmd = process.env.VISUAL || process.env.EDITOR;
2386
+ if (!editorCmd) {
2387
+ this.showWarning("No editor configured. Set $VISUAL or $EDITOR environment variable.");
2388
+ return;
2389
+ }
2390
+ const currentText = this.editor.getExpandedText?.() ?? this.editor.getText();
2391
+ const tmpFile = path.join(os.tmpdir(), `pi-editor-${Date.now()}.pi.md`);
2392
+ try {
2393
+ // Write current content to temp file
2394
+ fs.writeFileSync(tmpFile, currentText, "utf-8");
2395
+ // Stop TUI to release terminal
2396
+ this.ui.stop();
2397
+ // Split by space to support editor arguments (e.g., "code --wait")
2398
+ const [editor, ...editorArgs] = editorCmd.split(" ");
2399
+ // Spawn editor synchronously with inherited stdio for interactive editing
2400
+ const result = spawnSync(editor, [...editorArgs, tmpFile], {
2401
+ stdio: "inherit",
2402
+ shell: process.platform === "win32",
2403
+ });
2404
+ // On successful exit (status 0), replace editor content
2405
+ if (result.status === 0) {
2406
+ const newContent = fs.readFileSync(tmpFile, "utf-8").replace(/\n$/, "");
2407
+ this.editor.setText(newContent);
2408
+ }
2409
+ // On non-zero exit, keep original text (no action needed)
2410
+ }
2411
+ finally {
2412
+ // Clean up temp file
2413
+ try {
2414
+ fs.unlinkSync(tmpFile);
2415
+ }
2416
+ catch {
2417
+ // Ignore cleanup errors
2418
+ }
2419
+ // Restart TUI
2420
+ this.ui.start();
2421
+ // Force full re-render since external editor uses alternate screen
2422
+ this.ui.requestRender(true);
2423
+ }
2424
+ }
2425
+ // =========================================================================
2426
+ // UI helpers
2427
+ // =========================================================================
2428
+ clearEditor() {
2429
+ this.editor.setText("");
2430
+ this.ui.requestRender();
2431
+ }
2432
+ showError(errorMessage) {
2433
+ this.chatContainer.addChild(new Spacer(1));
2434
+ this.chatContainer.addChild(new Text(theme.fg("error", `Error: ${errorMessage}`), 1, 0));
2435
+ this.ui.requestRender();
2436
+ }
2437
+ showWarning(warningMessage) {
2438
+ this.chatContainer.addChild(new Spacer(1));
2439
+ this.chatContainer.addChild(new Text(theme.fg("warning", `Warning: ${warningMessage}`), 1, 0));
2440
+ this.ui.requestRender();
2441
+ }
2442
+ showNewVersionNotification(newVersion) {
2443
+ const action = theme.fg("accent", getUpdateInstruction("@styrene-lab/pi-coding-agent"));
2444
+ const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. `) + action;
2445
+ const changelogUrl = theme.fg("accent", "https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md");
2446
+ const changelogLine = theme.fg("muted", "Changelog: ") + changelogUrl;
2447
+ this.chatContainer.addChild(new Spacer(1));
2448
+ this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2449
+ this.chatContainer.addChild(new Text(`${theme.bold(theme.fg("warning", "Update Available"))}\n${updateInstruction}\n${changelogLine}`, 1, 0));
2450
+ this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2451
+ this.ui.requestRender();
2452
+ }
2453
+ /**
2454
+ * Get all queued messages (read-only).
2455
+ * Combines session queue and compaction queue.
2456
+ */
2457
+ getAllQueuedMessages() {
2458
+ return {
2459
+ steering: [
2460
+ ...this.session.getSteeringMessages(),
2461
+ ...this.compactionQueuedMessages.filter((msg) => msg.mode === "steer").map((msg) => msg.text),
2462
+ ],
2463
+ followUp: [
2464
+ ...this.session.getFollowUpMessages(),
2465
+ ...this.compactionQueuedMessages.filter((msg) => msg.mode === "followUp").map((msg) => msg.text),
2466
+ ],
2467
+ };
2468
+ }
2469
+ /**
2470
+ * Clear all queued messages and return their contents.
2471
+ * Clears both session queue and compaction queue.
2472
+ */
2473
+ clearAllQueues() {
2474
+ const { steering, followUp } = this.session.clearQueue();
2475
+ const compactionSteering = this.compactionQueuedMessages
2476
+ .filter((msg) => msg.mode === "steer")
2477
+ .map((msg) => msg.text);
2478
+ const compactionFollowUp = this.compactionQueuedMessages
2479
+ .filter((msg) => msg.mode === "followUp")
2480
+ .map((msg) => msg.text);
2481
+ this.compactionQueuedMessages = [];
2482
+ return {
2483
+ steering: [...steering, ...compactionSteering],
2484
+ followUp: [...followUp, ...compactionFollowUp],
2485
+ };
2486
+ }
2487
+ updatePendingMessagesDisplay() {
2488
+ this.pendingMessagesContainer.clear();
2489
+ const { steering: steeringMessages, followUp: followUpMessages } = this.getAllQueuedMessages();
2490
+ if (steeringMessages.length > 0 || followUpMessages.length > 0) {
2491
+ this.pendingMessagesContainer.addChild(new Spacer(1));
2492
+ for (const message of steeringMessages) {
2493
+ const text = theme.fg("dim", `Steering: ${message}`);
2494
+ this.pendingMessagesContainer.addChild(new TruncatedText(text, 1, 0));
2495
+ }
2496
+ for (const message of followUpMessages) {
2497
+ const text = theme.fg("dim", `Follow-up: ${message}`);
2498
+ this.pendingMessagesContainer.addChild(new TruncatedText(text, 1, 0));
2499
+ }
2500
+ const dequeueHint = this.getAppKeyDisplay("dequeue");
2501
+ const hintText = theme.fg("dim", `↳ ${dequeueHint} to edit all queued messages`);
2502
+ this.pendingMessagesContainer.addChild(new TruncatedText(hintText, 1, 0));
2503
+ }
2504
+ }
2505
+ restoreQueuedMessagesToEditor(options) {
2506
+ const { steering, followUp } = this.clearAllQueues();
2507
+ const allQueued = [...steering, ...followUp];
2508
+ if (allQueued.length === 0) {
2509
+ this.updatePendingMessagesDisplay();
2510
+ if (options?.abort) {
2511
+ this.agent.abort();
2512
+ }
2513
+ return 0;
2514
+ }
2515
+ const queuedText = allQueued.join("\n\n");
2516
+ const currentText = options?.currentText ?? this.editor.getText();
2517
+ const combinedText = [queuedText, currentText].filter((t) => t.trim()).join("\n\n");
2518
+ this.editor.setText(combinedText);
2519
+ this.updatePendingMessagesDisplay();
2520
+ if (options?.abort) {
2521
+ this.agent.abort();
2522
+ }
2523
+ return allQueued.length;
2524
+ }
2525
+ queueCompactionMessage(text, mode) {
2526
+ this.compactionQueuedMessages.push({ text, mode });
2527
+ this.editor.addToHistory?.(text);
2528
+ this.editor.setText("");
2529
+ this.updatePendingMessagesDisplay();
2530
+ this.showStatus("Queued message for after compaction");
2531
+ }
2532
+ isExtensionCommand(text) {
2533
+ if (!text.startsWith("/"))
2534
+ return false;
2535
+ const extensionRunner = this.session.extensionRunner;
2536
+ if (!extensionRunner)
2537
+ return false;
2538
+ const spaceIndex = text.indexOf(" ");
2539
+ const commandName = spaceIndex === -1 ? text.slice(1) : text.slice(1, spaceIndex);
2540
+ return !!extensionRunner.getCommand(commandName);
2541
+ }
2542
+ async flushCompactionQueue(options) {
2543
+ if (this.compactionQueuedMessages.length === 0) {
2544
+ return;
2545
+ }
2546
+ const queuedMessages = [...this.compactionQueuedMessages];
2547
+ this.compactionQueuedMessages = [];
2548
+ this.updatePendingMessagesDisplay();
2549
+ const restoreQueue = (error) => {
2550
+ this.session.clearQueue();
2551
+ this.compactionQueuedMessages = queuedMessages;
2552
+ this.updatePendingMessagesDisplay();
2553
+ this.showError(`Failed to send queued message${queuedMessages.length > 1 ? "s" : ""}: ${error instanceof Error ? error.message : String(error)}`);
2554
+ };
2555
+ try {
2556
+ if (options?.willRetry) {
2557
+ // When retry is pending, queue messages for the retry turn
2558
+ for (const message of queuedMessages) {
2559
+ if (this.isExtensionCommand(message.text)) {
2560
+ await this.session.prompt(message.text);
2561
+ }
2562
+ else if (message.mode === "followUp") {
2563
+ await this.session.followUp(message.text);
2564
+ }
2565
+ else {
2566
+ await this.session.steer(message.text);
2567
+ }
2568
+ }
2569
+ this.updatePendingMessagesDisplay();
2570
+ return;
2571
+ }
2572
+ // Find first non-extension-command message to use as prompt
2573
+ const firstPromptIndex = queuedMessages.findIndex((message) => !this.isExtensionCommand(message.text));
2574
+ if (firstPromptIndex === -1) {
2575
+ // All extension commands - execute them all
2576
+ for (const message of queuedMessages) {
2577
+ await this.session.prompt(message.text);
2578
+ }
2579
+ return;
2580
+ }
2581
+ // Execute any extension commands before the first prompt
2582
+ const preCommands = queuedMessages.slice(0, firstPromptIndex);
2583
+ const firstPrompt = queuedMessages[firstPromptIndex];
2584
+ const rest = queuedMessages.slice(firstPromptIndex + 1);
2585
+ for (const message of preCommands) {
2586
+ await this.session.prompt(message.text);
2587
+ }
2588
+ // Send first prompt (starts streaming)
2589
+ const promptPromise = this.session.prompt(firstPrompt.text).catch((error) => {
2590
+ restoreQueue(error);
2591
+ });
2592
+ // Queue remaining messages
2593
+ for (const message of rest) {
2594
+ if (this.isExtensionCommand(message.text)) {
2595
+ await this.session.prompt(message.text);
2596
+ }
2597
+ else if (message.mode === "followUp") {
2598
+ await this.session.followUp(message.text);
2599
+ }
2600
+ else {
2601
+ await this.session.steer(message.text);
2602
+ }
2603
+ }
2604
+ this.updatePendingMessagesDisplay();
2605
+ void promptPromise;
2606
+ }
2607
+ catch (error) {
2608
+ restoreQueue(error);
2609
+ }
2610
+ }
2611
+ /** Move pending bash components from pending area to chat */
2612
+ flushPendingBashComponents() {
2613
+ for (const component of this.pendingBashComponents) {
2614
+ this.pendingMessagesContainer.removeChild(component);
2615
+ this.chatContainer.addChild(component);
2616
+ }
2617
+ this.pendingBashComponents = [];
2618
+ }
2619
+ // =========================================================================
2620
+ // Selectors
2621
+ // =========================================================================
2622
+ /**
2623
+ * Shows a selector component in place of the editor.
2624
+ * @param create Factory that receives a `done` callback and returns the component and focus target
2625
+ */
2626
+ showSelector(create) {
2627
+ const done = () => {
2628
+ this.editorContainer.clear();
2629
+ this.editorContainer.addChild(this.editor);
2630
+ this.ui.setFocus(this.editor);
2631
+ };
2632
+ const { component, focus } = create(done);
2633
+ this.editorContainer.clear();
2634
+ this.editorContainer.addChild(component);
2635
+ this.ui.setFocus(focus);
2636
+ this.ui.requestRender();
2637
+ }
2638
+ showSettingsSelector() {
2639
+ this.showSelector((done) => {
2640
+ const selector = new SettingsSelectorComponent({
2641
+ autoCompact: this.session.autoCompactionEnabled,
2642
+ showImages: this.settingsManager.getShowImages(),
2643
+ autoResizeImages: this.settingsManager.getImageAutoResize(),
2644
+ blockImages: this.settingsManager.getBlockImages(),
2645
+ enableSkillCommands: this.settingsManager.getEnableSkillCommands(),
2646
+ steeringMode: this.session.steeringMode,
2647
+ followUpMode: this.session.followUpMode,
2648
+ transport: this.settingsManager.getTransport(),
2649
+ thinkingLevel: this.session.thinkingLevel,
2650
+ availableThinkingLevels: this.session.getAvailableThinkingLevels(),
2651
+ currentTheme: this.settingsManager.getTheme() || "dark",
2652
+ availableThemes: getAvailableThemes(),
2653
+ hideThinkingBlock: this.hideThinkingBlock,
2654
+ collapseChangelog: this.settingsManager.getCollapseChangelog(),
2655
+ doubleEscapeAction: this.settingsManager.getDoubleEscapeAction(),
2656
+ treeFilterMode: this.settingsManager.getTreeFilterMode(),
2657
+ showHardwareCursor: this.settingsManager.getShowHardwareCursor(),
2658
+ editorPaddingX: this.settingsManager.getEditorPaddingX(),
2659
+ autocompleteMaxVisible: this.settingsManager.getAutocompleteMaxVisible(),
2660
+ quietStartup: this.settingsManager.getQuietStartup(),
2661
+ clearOnShrink: this.settingsManager.getClearOnShrink(),
2662
+ }, {
2663
+ onAutoCompactChange: (enabled) => {
2664
+ this.session.setAutoCompactionEnabled(enabled);
2665
+ this.footer.setAutoCompactEnabled(enabled);
2666
+ },
2667
+ onShowImagesChange: (enabled) => {
2668
+ this.settingsManager.setShowImages(enabled);
2669
+ for (const child of this.chatContainer.children) {
2670
+ if (child instanceof ToolExecutionComponent) {
2671
+ child.setShowImages(enabled);
2672
+ }
2673
+ }
2674
+ },
2675
+ onAutoResizeImagesChange: (enabled) => {
2676
+ this.settingsManager.setImageAutoResize(enabled);
2677
+ },
2678
+ onBlockImagesChange: (blocked) => {
2679
+ this.settingsManager.setBlockImages(blocked);
2680
+ },
2681
+ onEnableSkillCommandsChange: (enabled) => {
2682
+ this.settingsManager.setEnableSkillCommands(enabled);
2683
+ this.setupAutocomplete(this.fdPath);
2684
+ },
2685
+ onSteeringModeChange: (mode) => {
2686
+ this.session.setSteeringMode(mode);
2687
+ },
2688
+ onFollowUpModeChange: (mode) => {
2689
+ this.session.setFollowUpMode(mode);
2690
+ },
2691
+ onTransportChange: (transport) => {
2692
+ this.settingsManager.setTransport(transport);
2693
+ this.session.agent.setTransport(transport);
2694
+ },
2695
+ onThinkingLevelChange: (level) => {
2696
+ this.session.setThinkingLevel(level);
2697
+ this.footer.invalidate();
2698
+ this.updateEditorBorderColor();
2699
+ },
2700
+ onThemeChange: (themeName) => {
2701
+ const result = setTheme(themeName, true);
2702
+ this.settingsManager.setTheme(themeName);
2703
+ this.ui.invalidate();
2704
+ if (!result.success) {
2705
+ this.showError(`Failed to load theme "${themeName}": ${result.error}\nFell back to dark theme.`);
2706
+ }
2707
+ },
2708
+ onThemePreview: (themeName) => {
2709
+ const result = setTheme(themeName, true);
2710
+ if (result.success) {
2711
+ this.ui.invalidate();
2712
+ this.ui.requestRender();
2713
+ }
2714
+ },
2715
+ onHideThinkingBlockChange: (hidden) => {
2716
+ this.hideThinkingBlock = hidden;
2717
+ this.settingsManager.setHideThinkingBlock(hidden);
2718
+ for (const child of this.chatContainer.children) {
2719
+ if (child instanceof AssistantMessageComponent) {
2720
+ child.setHideThinkingBlock(hidden);
2721
+ }
2722
+ }
2723
+ this.chatContainer.clear();
2724
+ this.rebuildChatFromMessages();
2725
+ },
2726
+ onCollapseChangelogChange: (collapsed) => {
2727
+ this.settingsManager.setCollapseChangelog(collapsed);
2728
+ },
2729
+ onQuietStartupChange: (enabled) => {
2730
+ this.settingsManager.setQuietStartup(enabled);
2731
+ },
2732
+ onDoubleEscapeActionChange: (action) => {
2733
+ this.settingsManager.setDoubleEscapeAction(action);
2734
+ },
2735
+ onTreeFilterModeChange: (mode) => {
2736
+ this.settingsManager.setTreeFilterMode(mode);
2737
+ },
2738
+ onShowHardwareCursorChange: (enabled) => {
2739
+ this.settingsManager.setShowHardwareCursor(enabled);
2740
+ this.ui.setShowHardwareCursor(enabled);
2741
+ },
2742
+ onEditorPaddingXChange: (padding) => {
2743
+ this.settingsManager.setEditorPaddingX(padding);
2744
+ this.defaultEditor.setPaddingX(padding);
2745
+ if (this.editor !== this.defaultEditor && this.editor.setPaddingX !== undefined) {
2746
+ this.editor.setPaddingX(padding);
2747
+ }
2748
+ },
2749
+ onAutocompleteMaxVisibleChange: (maxVisible) => {
2750
+ this.settingsManager.setAutocompleteMaxVisible(maxVisible);
2751
+ this.defaultEditor.setAutocompleteMaxVisible(maxVisible);
2752
+ if (this.editor !== this.defaultEditor && this.editor.setAutocompleteMaxVisible !== undefined) {
2753
+ this.editor.setAutocompleteMaxVisible(maxVisible);
2754
+ }
2755
+ },
2756
+ onClearOnShrinkChange: (enabled) => {
2757
+ this.settingsManager.setClearOnShrink(enabled);
2758
+ this.ui.setClearOnShrink(enabled);
2759
+ },
2760
+ onCancel: () => {
2761
+ done();
2762
+ this.ui.requestRender();
2763
+ },
2764
+ });
2765
+ return { component: selector, focus: selector.getSettingsList() };
2766
+ });
2767
+ }
2768
+ async handleModelCommand(searchTerm) {
2769
+ if (!searchTerm) {
2770
+ this.showModelSelector();
2771
+ return;
2772
+ }
2773
+ const model = await this.findExactModelMatch(searchTerm);
2774
+ if (model) {
2775
+ try {
2776
+ await this.session.setModel(model);
2777
+ this.footer.invalidate();
2778
+ this.updateEditorBorderColor();
2779
+ this.showStatus(`Model: ${model.id}`);
2780
+ this.checkDaxnutsEasterEgg(model);
2781
+ }
2782
+ catch (error) {
2783
+ this.showError(error instanceof Error ? error.message : String(error));
2784
+ }
2785
+ return;
2786
+ }
2787
+ this.showModelSelector(searchTerm);
2788
+ }
2789
+ async findExactModelMatch(searchTerm) {
2790
+ const term = searchTerm.trim();
2791
+ if (!term)
2792
+ return undefined;
2793
+ let targetProvider;
2794
+ let targetModelId = "";
2795
+ if (term.includes("/")) {
2796
+ const parts = term.split("/", 2);
2797
+ targetProvider = parts[0]?.trim().toLowerCase();
2798
+ targetModelId = parts[1]?.trim().toLowerCase() ?? "";
2799
+ }
2800
+ else {
2801
+ targetModelId = term.toLowerCase();
2802
+ }
2803
+ if (!targetModelId)
2804
+ return undefined;
2805
+ const models = await this.getModelCandidates();
2806
+ const exactMatches = models.filter((item) => {
2807
+ const idMatch = item.id.toLowerCase() === targetModelId;
2808
+ const providerMatch = !targetProvider || item.provider.toLowerCase() === targetProvider;
2809
+ return idMatch && providerMatch;
2810
+ });
2811
+ return exactMatches.length === 1 ? exactMatches[0] : undefined;
2812
+ }
2813
+ async getModelCandidates() {
2814
+ if (this.session.scopedModels.length > 0) {
2815
+ return this.session.scopedModels.map((scoped) => scoped.model);
2816
+ }
2817
+ this.session.modelRegistry.refresh();
2818
+ try {
2819
+ return await this.session.modelRegistry.getAvailable();
2820
+ }
2821
+ catch {
2822
+ return [];
2823
+ }
2824
+ }
2825
+ /** Update the footer's available provider count from current model candidates */
2826
+ async updateAvailableProviderCount() {
2827
+ const models = await this.getModelCandidates();
2828
+ const uniqueProviders = new Set(models.map((m) => m.provider));
2829
+ this.footerDataProvider.setAvailableProviderCount(uniqueProviders.size);
2830
+ }
2831
+ showModelSelector(initialSearchInput) {
2832
+ this.showSelector((done) => {
2833
+ const selector = new ModelSelectorComponent(this.ui, this.session.model, this.settingsManager, this.session.modelRegistry, this.session.scopedModels, async (model) => {
2834
+ try {
2835
+ await this.session.setModel(model);
2836
+ this.footer.invalidate();
2837
+ this.updateEditorBorderColor();
2838
+ done();
2839
+ this.showStatus(`Model: ${model.id}`);
2840
+ this.checkDaxnutsEasterEgg(model);
2841
+ }
2842
+ catch (error) {
2843
+ done();
2844
+ this.showError(error instanceof Error ? error.message : String(error));
2845
+ }
2846
+ }, () => {
2847
+ done();
2848
+ this.ui.requestRender();
2849
+ }, initialSearchInput);
2850
+ return { component: selector, focus: selector };
2851
+ });
2852
+ }
2853
+ async showModelsSelector() {
2854
+ // Get all available models
2855
+ this.session.modelRegistry.refresh();
2856
+ const allModels = this.session.modelRegistry.getAvailable();
2857
+ if (allModels.length === 0) {
2858
+ this.showStatus("No models available");
2859
+ return;
2860
+ }
2861
+ // Check if session has scoped models (from previous session-only changes or CLI --models)
2862
+ const sessionScopedModels = this.session.scopedModels;
2863
+ const hasSessionScope = sessionScopedModels.length > 0;
2864
+ // Build enabled model IDs from session state or settings
2865
+ const enabledModelIds = new Set();
2866
+ let hasFilter = false;
2867
+ if (hasSessionScope) {
2868
+ // Use current session's scoped models
2869
+ for (const sm of sessionScopedModels) {
2870
+ enabledModelIds.add(`${sm.model.provider}/${sm.model.id}`);
2871
+ }
2872
+ hasFilter = true;
2873
+ }
2874
+ else {
2875
+ // Fall back to settings
2876
+ const patterns = this.settingsManager.getEnabledModels();
2877
+ if (patterns !== undefined && patterns.length > 0) {
2878
+ hasFilter = true;
2879
+ const scopedModels = await resolveModelScope(patterns, this.session.modelRegistry);
2880
+ for (const sm of scopedModels) {
2881
+ enabledModelIds.add(`${sm.model.provider}/${sm.model.id}`);
2882
+ }
2883
+ }
2884
+ }
2885
+ // Track current enabled state (session-only until persisted)
2886
+ const currentEnabledIds = new Set(enabledModelIds);
2887
+ let currentHasFilter = hasFilter;
2888
+ // Helper to update session's scoped models (session-only, no persist)
2889
+ const updateSessionModels = async (enabledIds) => {
2890
+ if (enabledIds.size > 0 && enabledIds.size < allModels.length) {
2891
+ const newScopedModels = await resolveModelScope(Array.from(enabledIds), this.session.modelRegistry);
2892
+ this.session.setScopedModels(newScopedModels.map((sm) => ({
2893
+ model: sm.model,
2894
+ thinkingLevel: sm.thinkingLevel,
2895
+ })));
2896
+ }
2897
+ else {
2898
+ // All enabled or none enabled = no filter
2899
+ this.session.setScopedModels([]);
2900
+ }
2901
+ await this.updateAvailableProviderCount();
2902
+ this.ui.requestRender();
2903
+ };
2904
+ this.showSelector((done) => {
2905
+ const selector = new ScopedModelsSelectorComponent({
2906
+ allModels,
2907
+ enabledModelIds: currentEnabledIds,
2908
+ hasEnabledModelsFilter: currentHasFilter,
2909
+ }, {
2910
+ onModelToggle: async (modelId, enabled) => {
2911
+ if (enabled) {
2912
+ currentEnabledIds.add(modelId);
2913
+ }
2914
+ else {
2915
+ currentEnabledIds.delete(modelId);
2916
+ }
2917
+ currentHasFilter = true;
2918
+ await updateSessionModels(currentEnabledIds);
2919
+ },
2920
+ onEnableAll: async (allModelIds) => {
2921
+ currentEnabledIds.clear();
2922
+ for (const id of allModelIds) {
2923
+ currentEnabledIds.add(id);
2924
+ }
2925
+ currentHasFilter = false;
2926
+ await updateSessionModels(currentEnabledIds);
2927
+ },
2928
+ onClearAll: async () => {
2929
+ currentEnabledIds.clear();
2930
+ currentHasFilter = true;
2931
+ await updateSessionModels(currentEnabledIds);
2932
+ },
2933
+ onToggleProvider: async (_provider, modelIds, enabled) => {
2934
+ for (const id of modelIds) {
2935
+ if (enabled) {
2936
+ currentEnabledIds.add(id);
2937
+ }
2938
+ else {
2939
+ currentEnabledIds.delete(id);
2940
+ }
2941
+ }
2942
+ currentHasFilter = true;
2943
+ await updateSessionModels(currentEnabledIds);
2944
+ },
2945
+ onPersist: (enabledIds) => {
2946
+ // Persist to settings
2947
+ const newPatterns = enabledIds.length === allModels.length
2948
+ ? undefined // All enabled = clear filter
2949
+ : enabledIds;
2950
+ this.settingsManager.setEnabledModels(newPatterns);
2951
+ this.showStatus("Model selection saved to settings");
2952
+ },
2953
+ onCancel: () => {
2954
+ done();
2955
+ this.ui.requestRender();
2956
+ },
2957
+ });
2958
+ return { component: selector, focus: selector };
2959
+ });
2960
+ }
2961
+ showUserMessageSelector() {
2962
+ const userMessages = this.session.getUserMessagesForForking();
2963
+ if (userMessages.length === 0) {
2964
+ this.showStatus("No messages to fork from");
2965
+ return;
2966
+ }
2967
+ this.showSelector((done) => {
2968
+ const selector = new UserMessageSelectorComponent(userMessages.map((m) => ({ id: m.entryId, text: m.text })), async (entryId) => {
2969
+ const result = await this.session.fork(entryId);
2970
+ if (result.cancelled) {
2971
+ // Extension cancelled the fork
2972
+ done();
2973
+ this.ui.requestRender();
2974
+ return;
2975
+ }
2976
+ this.chatContainer.clear();
2977
+ this.renderInitialMessages();
2978
+ this.editor.setText(result.selectedText);
2979
+ done();
2980
+ this.showStatus("Branched to new session");
2981
+ }, () => {
2982
+ done();
2983
+ this.ui.requestRender();
2984
+ });
2985
+ return { component: selector, focus: selector.getMessageList() };
2986
+ });
2987
+ }
2988
+ showTreeSelector(initialSelectedId) {
2989
+ const tree = this.sessionManager.getTree();
2990
+ const realLeafId = this.sessionManager.getLeafId();
2991
+ const initialFilterMode = this.settingsManager.getTreeFilterMode();
2992
+ if (tree.length === 0) {
2993
+ this.showStatus("No entries in session");
2994
+ return;
2995
+ }
2996
+ this.showSelector((done) => {
2997
+ const selector = new TreeSelectorComponent(tree, realLeafId, this.ui.terminal.rows, async (entryId) => {
2998
+ // Selecting the current leaf is a no-op (already there)
2999
+ if (entryId === realLeafId) {
3000
+ done();
3001
+ this.showStatus("Already at this point");
3002
+ return;
3003
+ }
3004
+ // Ask about summarization
3005
+ done(); // Close selector first
3006
+ // Loop until user makes a complete choice or cancels to tree
3007
+ let wantsSummary = false;
3008
+ let customInstructions;
3009
+ // Check if we should skip the prompt (user preference to always default to no summary)
3010
+ if (!this.settingsManager.getBranchSummarySkipPrompt()) {
3011
+ while (true) {
3012
+ const summaryChoice = await this.showExtensionSelector("Summarize branch?", [
3013
+ "No summary",
3014
+ "Summarize",
3015
+ "Summarize with custom prompt",
3016
+ ]);
3017
+ if (summaryChoice === undefined) {
3018
+ // User pressed escape - re-show tree selector with same selection
3019
+ this.showTreeSelector(entryId);
3020
+ return;
3021
+ }
3022
+ wantsSummary = summaryChoice !== "No summary";
3023
+ if (summaryChoice === "Summarize with custom prompt") {
3024
+ customInstructions = await this.showExtensionEditor("Custom summarization instructions");
3025
+ if (customInstructions === undefined) {
3026
+ // User cancelled - loop back to summary selector
3027
+ continue;
3028
+ }
3029
+ }
3030
+ // User made a complete choice
3031
+ break;
3032
+ }
3033
+ }
3034
+ // Set up escape handler and loader if summarizing
3035
+ let summaryLoader;
3036
+ const originalOnEscape = this.defaultEditor.onEscape;
3037
+ if (wantsSummary) {
3038
+ this.defaultEditor.onEscape = () => {
3039
+ this.session.abortBranchSummary();
3040
+ };
3041
+ this.chatContainer.addChild(new Spacer(1));
3042
+ summaryLoader = new Loader(this.ui, (spinner) => theme.fg("accent", spinner), (text) => theme.fg("muted", text), `Summarizing branch... (${appKey(this.keybindings, "interrupt")} to cancel)`);
3043
+ this.statusContainer.addChild(summaryLoader);
3044
+ this.ui.requestRender();
3045
+ }
3046
+ try {
3047
+ const result = await this.session.navigateTree(entryId, {
3048
+ summarize: wantsSummary,
3049
+ customInstructions,
3050
+ });
3051
+ if (result.aborted) {
3052
+ // Summarization aborted - re-show tree selector with same selection
3053
+ this.showStatus("Branch summarization cancelled");
3054
+ this.showTreeSelector(entryId);
3055
+ return;
3056
+ }
3057
+ if (result.cancelled) {
3058
+ this.showStatus("Navigation cancelled");
3059
+ return;
3060
+ }
3061
+ // Update UI
3062
+ this.chatContainer.clear();
3063
+ this.renderInitialMessages();
3064
+ if (result.editorText && !this.editor.getText().trim()) {
3065
+ this.editor.setText(result.editorText);
3066
+ }
3067
+ this.showStatus("Navigated to selected point");
3068
+ }
3069
+ catch (error) {
3070
+ this.showError(error instanceof Error ? error.message : String(error));
3071
+ }
3072
+ finally {
3073
+ if (summaryLoader) {
3074
+ summaryLoader.stop();
3075
+ this.statusContainer.clear();
3076
+ }
3077
+ this.defaultEditor.onEscape = originalOnEscape;
3078
+ }
3079
+ }, () => {
3080
+ done();
3081
+ this.ui.requestRender();
3082
+ }, (entryId, label) => {
3083
+ this.sessionManager.appendLabelChange(entryId, label);
3084
+ this.ui.requestRender();
3085
+ }, initialSelectedId, initialFilterMode);
3086
+ return { component: selector, focus: selector };
3087
+ });
3088
+ }
3089
+ showSessionSelector() {
3090
+ this.showSelector((done) => {
3091
+ const selector = new SessionSelectorComponent((onProgress) => SessionManager.list(this.sessionManager.getCwd(), this.sessionManager.getSessionDir(), onProgress), SessionManager.listAll, async (sessionPath) => {
3092
+ done();
3093
+ await this.handleResumeSession(sessionPath);
3094
+ }, () => {
3095
+ done();
3096
+ this.ui.requestRender();
3097
+ }, () => {
3098
+ void this.shutdown();
3099
+ }, () => this.ui.requestRender(), {
3100
+ renameSession: async (sessionFilePath, nextName) => {
3101
+ const next = (nextName ?? "").trim();
3102
+ if (!next)
3103
+ return;
3104
+ const mgr = SessionManager.open(sessionFilePath);
3105
+ mgr.appendSessionInfo(next);
3106
+ },
3107
+ showRenameHint: true,
3108
+ keybindings: this.keybindings,
3109
+ }, this.sessionManager.getSessionFile());
3110
+ return { component: selector, focus: selector };
3111
+ });
3112
+ }
3113
+ async handleResumeSession(sessionPath) {
3114
+ // Stop loading animation
3115
+ if (this.loadingAnimation) {
3116
+ this.loadingAnimation.stop();
3117
+ this.loadingAnimation = undefined;
3118
+ }
3119
+ this.statusContainer.clear();
3120
+ // Clear UI state
3121
+ this.pendingMessagesContainer.clear();
3122
+ this.compactionQueuedMessages = [];
3123
+ this.streamingComponent = undefined;
3124
+ this.streamingMessage = undefined;
3125
+ this.pendingTools.clear();
3126
+ // Switch session via AgentSession (emits extension session events)
3127
+ await this.session.switchSession(sessionPath);
3128
+ // Clear and re-render the chat
3129
+ this.chatContainer.clear();
3130
+ this.renderInitialMessages();
3131
+ this.showStatus("Resumed session");
3132
+ }
3133
+ async showOAuthSelector(mode) {
3134
+ if (mode === "logout") {
3135
+ const providers = this.session.modelRegistry.authStorage.list();
3136
+ const loggedInProviders = providers.filter((p) => this.session.modelRegistry.authStorage.get(p)?.type === "oauth");
3137
+ if (loggedInProviders.length === 0) {
3138
+ this.showStatus("No OAuth providers logged in. Use /login first.");
3139
+ return;
3140
+ }
3141
+ }
3142
+ this.showSelector((done) => {
3143
+ const selector = new OAuthSelectorComponent(mode, this.session.modelRegistry.authStorage, async (providerId) => {
3144
+ done();
3145
+ if (mode === "login") {
3146
+ await this.showLoginDialog(providerId);
3147
+ }
3148
+ else {
3149
+ // Logout flow
3150
+ const providerInfo = this.session.modelRegistry.authStorage
3151
+ .getOAuthProviders()
3152
+ .find((p) => p.id === providerId);
3153
+ const providerName = providerInfo?.name || providerId;
3154
+ try {
3155
+ this.session.modelRegistry.authStorage.logout(providerId);
3156
+ this.session.modelRegistry.refresh();
3157
+ await this.updateAvailableProviderCount();
3158
+ this.showStatus(`Logged out of ${providerName}`);
3159
+ }
3160
+ catch (error) {
3161
+ this.showError(`Logout failed: ${error instanceof Error ? error.message : String(error)}`);
3162
+ }
3163
+ }
3164
+ }, () => {
3165
+ done();
3166
+ this.ui.requestRender();
3167
+ });
3168
+ return { component: selector, focus: selector };
3169
+ });
3170
+ }
3171
+ async showLoginDialog(providerId) {
3172
+ const providerInfo = this.session.modelRegistry.authStorage.getOAuthProviders().find((p) => p.id === providerId);
3173
+ const providerName = providerInfo?.name || providerId;
3174
+ // Providers that use callback servers (can paste redirect URL)
3175
+ const usesCallbackServer = providerInfo?.usesCallbackServer ?? false;
3176
+ // Create login dialog component
3177
+ const dialog = new LoginDialogComponent(this.ui, providerId, (_success, _message) => {
3178
+ // Completion handled below
3179
+ });
3180
+ // Show dialog in editor container
3181
+ this.editorContainer.clear();
3182
+ this.editorContainer.addChild(dialog);
3183
+ this.ui.setFocus(dialog);
3184
+ this.ui.requestRender();
3185
+ // Promise for manual code input (racing with callback server)
3186
+ let manualCodeResolve;
3187
+ let manualCodeReject;
3188
+ const manualCodePromise = new Promise((resolve, reject) => {
3189
+ manualCodeResolve = resolve;
3190
+ manualCodeReject = reject;
3191
+ });
3192
+ // Restore editor helper
3193
+ const restoreEditor = () => {
3194
+ this.editorContainer.clear();
3195
+ this.editorContainer.addChild(this.editor);
3196
+ this.ui.setFocus(this.editor);
3197
+ this.ui.requestRender();
3198
+ };
3199
+ try {
3200
+ await this.session.modelRegistry.authStorage.login(providerId, {
3201
+ onAuth: (info) => {
3202
+ dialog.showAuth(info.url, info.instructions);
3203
+ if (usesCallbackServer) {
3204
+ // Show input for manual paste, racing with callback
3205
+ dialog
3206
+ .showManualInput("Paste redirect URL below, or complete login in browser:")
3207
+ .then((value) => {
3208
+ if (value && manualCodeResolve) {
3209
+ manualCodeResolve(value);
3210
+ manualCodeResolve = undefined;
3211
+ }
3212
+ })
3213
+ .catch(() => {
3214
+ if (manualCodeReject) {
3215
+ manualCodeReject(new Error("Login cancelled"));
3216
+ manualCodeReject = undefined;
3217
+ }
3218
+ });
3219
+ }
3220
+ else if (providerId === "github-copilot") {
3221
+ // GitHub Copilot polls after onAuth
3222
+ dialog.showWaiting("Waiting for browser authentication...");
3223
+ }
3224
+ // For Anthropic: onPrompt is called immediately after
3225
+ },
3226
+ onPrompt: async (prompt) => {
3227
+ return dialog.showPrompt(prompt.message, prompt.placeholder);
3228
+ },
3229
+ onProgress: (message) => {
3230
+ dialog.showProgress(message);
3231
+ },
3232
+ onManualCodeInput: () => manualCodePromise,
3233
+ signal: dialog.signal,
3234
+ });
3235
+ // Success
3236
+ restoreEditor();
3237
+ this.session.modelRegistry.refresh();
3238
+ await this.updateAvailableProviderCount();
3239
+ this.showStatus(`Logged in to ${providerName}. Credentials saved to ${getAuthPath()}`);
3240
+ }
3241
+ catch (error) {
3242
+ restoreEditor();
3243
+ const errorMsg = error instanceof Error ? error.message : String(error);
3244
+ if (errorMsg !== "Login cancelled") {
3245
+ this.showError(`Failed to login to ${providerName}: ${errorMsg}`);
3246
+ }
3247
+ }
3248
+ }
3249
+ // =========================================================================
3250
+ // Command handlers
3251
+ // =========================================================================
3252
+ async handleReloadCommand() {
3253
+ if (this.session.isStreaming) {
3254
+ this.showWarning("Wait for the current response to finish before reloading.");
3255
+ return;
3256
+ }
3257
+ if (this.session.isCompacting) {
3258
+ this.showWarning("Wait for compaction to finish before reloading.");
3259
+ return;
3260
+ }
3261
+ this.resetExtensionUI();
3262
+ const loader = new BorderedLoader(this.ui, theme, "Reloading extensions, skills, prompts, themes...", {
3263
+ cancellable: false,
3264
+ });
3265
+ const previousEditor = this.editor;
3266
+ this.editorContainer.clear();
3267
+ this.editorContainer.addChild(loader);
3268
+ this.ui.setFocus(loader);
3269
+ this.ui.requestRender();
3270
+ const dismissLoader = (editor) => {
3271
+ loader.dispose();
3272
+ this.editorContainer.clear();
3273
+ this.editorContainer.addChild(editor);
3274
+ this.ui.setFocus(editor);
3275
+ this.ui.requestRender();
3276
+ };
3277
+ try {
3278
+ await this.session.reload();
3279
+ setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
3280
+ this.hideThinkingBlock = this.settingsManager.getHideThinkingBlock();
3281
+ const themeName = this.settingsManager.getTheme();
3282
+ const themeResult = themeName ? setTheme(themeName, true) : { success: true };
3283
+ if (!themeResult.success) {
3284
+ this.showError(`Failed to load theme "${themeName}": ${themeResult.error}\nFell back to dark theme.`);
3285
+ }
3286
+ const editorPaddingX = this.settingsManager.getEditorPaddingX();
3287
+ const autocompleteMaxVisible = this.settingsManager.getAutocompleteMaxVisible();
3288
+ this.defaultEditor.setPaddingX(editorPaddingX);
3289
+ this.defaultEditor.setAutocompleteMaxVisible(autocompleteMaxVisible);
3290
+ if (this.editor !== this.defaultEditor) {
3291
+ this.editor.setPaddingX?.(editorPaddingX);
3292
+ this.editor.setAutocompleteMaxVisible?.(autocompleteMaxVisible);
3293
+ }
3294
+ this.ui.setShowHardwareCursor(this.settingsManager.getShowHardwareCursor());
3295
+ this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink());
3296
+ this.setupAutocomplete(this.fdPath);
3297
+ const runner = this.session.extensionRunner;
3298
+ if (runner) {
3299
+ this.setupExtensionShortcuts(runner);
3300
+ }
3301
+ this.rebuildChatFromMessages();
3302
+ dismissLoader(this.editor);
3303
+ this.showLoadedResources({
3304
+ extensionPaths: runner?.getExtensionPaths() ?? [],
3305
+ force: false,
3306
+ showDiagnosticsWhenQuiet: true,
3307
+ });
3308
+ const modelsJsonError = this.session.modelRegistry.getError();
3309
+ if (modelsJsonError) {
3310
+ this.showError(`models.json error: ${modelsJsonError}`);
3311
+ }
3312
+ this.showStatus("Reloaded extensions, skills, prompts, themes");
3313
+ }
3314
+ catch (error) {
3315
+ dismissLoader(previousEditor);
3316
+ this.showError(`Reload failed: ${error instanceof Error ? error.message : String(error)}`);
3317
+ }
3318
+ }
3319
+ async handleExportCommand(text) {
3320
+ const parts = text.split(/\s+/);
3321
+ const outputPath = parts.length > 1 ? parts[1] : undefined;
3322
+ try {
3323
+ const filePath = await this.session.exportToHtml(outputPath);
3324
+ this.showStatus(`Session exported to: ${filePath}`);
3325
+ }
3326
+ catch (error) {
3327
+ this.showError(`Failed to export session: ${error instanceof Error ? error.message : "Unknown error"}`);
3328
+ }
3329
+ }
3330
+ async handleShareCommand() {
3331
+ // Check if gh is available and logged in
3332
+ try {
3333
+ const authResult = spawnSync("gh", ["auth", "status"], { encoding: "utf-8" });
3334
+ if (authResult.status !== 0) {
3335
+ this.showError("GitHub CLI is not logged in. Run 'gh auth login' first.");
3336
+ return;
3337
+ }
3338
+ }
3339
+ catch {
3340
+ this.showError("GitHub CLI (gh) is not installed. Install it from https://cli.github.com/");
3341
+ return;
3342
+ }
3343
+ // Export to a temp file
3344
+ const tmpFile = path.join(os.tmpdir(), "session.html");
3345
+ try {
3346
+ await this.session.exportToHtml(tmpFile);
3347
+ }
3348
+ catch (error) {
3349
+ this.showError(`Failed to export session: ${error instanceof Error ? error.message : "Unknown error"}`);
3350
+ return;
3351
+ }
3352
+ // Show cancellable loader, replacing the editor
3353
+ const loader = new BorderedLoader(this.ui, theme, "Creating gist...");
3354
+ this.editorContainer.clear();
3355
+ this.editorContainer.addChild(loader);
3356
+ this.ui.setFocus(loader);
3357
+ this.ui.requestRender();
3358
+ const restoreEditor = () => {
3359
+ loader.dispose();
3360
+ this.editorContainer.clear();
3361
+ this.editorContainer.addChild(this.editor);
3362
+ this.ui.setFocus(this.editor);
3363
+ try {
3364
+ fs.unlinkSync(tmpFile);
3365
+ }
3366
+ catch {
3367
+ // Ignore cleanup errors
3368
+ }
3369
+ };
3370
+ // Create a secret gist asynchronously
3371
+ let proc = null;
3372
+ loader.onAbort = () => {
3373
+ proc?.kill();
3374
+ restoreEditor();
3375
+ this.showStatus("Share cancelled");
3376
+ };
3377
+ try {
3378
+ const result = await new Promise((resolve) => {
3379
+ proc = spawn("gh", ["gist", "create", "--public=false", tmpFile]);
3380
+ let stdout = "";
3381
+ let stderr = "";
3382
+ proc.stdout?.on("data", (data) => {
3383
+ stdout += data.toString();
3384
+ });
3385
+ proc.stderr?.on("data", (data) => {
3386
+ stderr += data.toString();
3387
+ });
3388
+ proc.on("close", (code) => resolve({ stdout, stderr, code }));
3389
+ });
3390
+ if (loader.signal.aborted)
3391
+ return;
3392
+ restoreEditor();
3393
+ if (result.code !== 0) {
3394
+ const errorMsg = result.stderr?.trim() || "Unknown error";
3395
+ this.showError(`Failed to create gist: ${errorMsg}`);
3396
+ return;
3397
+ }
3398
+ // Extract gist ID from the URL returned by gh
3399
+ // gh returns something like: https://gist.github.com/username/GIST_ID
3400
+ const gistUrl = result.stdout?.trim();
3401
+ const gistId = gistUrl?.split("/").pop();
3402
+ if (!gistId) {
3403
+ this.showError("Failed to parse gist ID from gh output");
3404
+ return;
3405
+ }
3406
+ // Create the preview URL
3407
+ const previewUrl = getShareViewerUrl(gistId);
3408
+ this.showStatus(`Share URL: ${previewUrl}\nGist: ${gistUrl}`);
3409
+ }
3410
+ catch (error) {
3411
+ if (!loader.signal.aborted) {
3412
+ restoreEditor();
3413
+ this.showError(`Failed to create gist: ${error instanceof Error ? error.message : "Unknown error"}`);
3414
+ }
3415
+ }
3416
+ }
3417
+ handleCopyCommand() {
3418
+ const text = this.session.getLastAssistantText();
3419
+ if (!text) {
3420
+ this.showError("No agent messages to copy yet.");
3421
+ return;
3422
+ }
3423
+ try {
3424
+ copyToClipboard(text);
3425
+ this.showStatus("Copied last agent message to clipboard");
3426
+ }
3427
+ catch (error) {
3428
+ this.showError(error instanceof Error ? error.message : String(error));
3429
+ }
3430
+ }
3431
+ handleNameCommand(text) {
3432
+ const name = text.replace(/^\/name\s*/, "").trim();
3433
+ if (!name) {
3434
+ const currentName = this.sessionManager.getSessionName();
3435
+ if (currentName) {
3436
+ this.chatContainer.addChild(new Spacer(1));
3437
+ this.chatContainer.addChild(new Text(theme.fg("dim", `Session name: ${currentName}`), 1, 0));
3438
+ }
3439
+ else {
3440
+ this.showWarning("Usage: /name <name>");
3441
+ }
3442
+ this.ui.requestRender();
3443
+ return;
3444
+ }
3445
+ this.sessionManager.appendSessionInfo(name);
3446
+ this.updateTerminalTitle();
3447
+ this.chatContainer.addChild(new Spacer(1));
3448
+ this.chatContainer.addChild(new Text(theme.fg("dim", `Session name set: ${name}`), 1, 0));
3449
+ this.ui.requestRender();
3450
+ }
3451
+ handleSessionCommand() {
3452
+ const stats = this.session.getSessionStats();
3453
+ const sessionName = this.sessionManager.getSessionName();
3454
+ let info = `${theme.bold("Session Info")}\n\n`;
3455
+ if (sessionName) {
3456
+ info += `${theme.fg("dim", "Name:")} ${sessionName}\n`;
3457
+ }
3458
+ info += `${theme.fg("dim", "File:")} ${stats.sessionFile ?? "In-memory"}\n`;
3459
+ info += `${theme.fg("dim", "ID:")} ${stats.sessionId}\n\n`;
3460
+ info += `${theme.bold("Messages")}\n`;
3461
+ info += `${theme.fg("dim", "User:")} ${stats.userMessages}\n`;
3462
+ info += `${theme.fg("dim", "Assistant:")} ${stats.assistantMessages}\n`;
3463
+ info += `${theme.fg("dim", "Tool Calls:")} ${stats.toolCalls}\n`;
3464
+ info += `${theme.fg("dim", "Tool Results:")} ${stats.toolResults}\n`;
3465
+ info += `${theme.fg("dim", "Total:")} ${stats.totalMessages}\n\n`;
3466
+ info += `${theme.bold("Tokens")}\n`;
3467
+ info += `${theme.fg("dim", "Input:")} ${stats.tokens.input.toLocaleString()}\n`;
3468
+ info += `${theme.fg("dim", "Output:")} ${stats.tokens.output.toLocaleString()}\n`;
3469
+ if (stats.tokens.cacheRead > 0) {
3470
+ info += `${theme.fg("dim", "Cache Read:")} ${stats.tokens.cacheRead.toLocaleString()}\n`;
3471
+ }
3472
+ if (stats.tokens.cacheWrite > 0) {
3473
+ info += `${theme.fg("dim", "Cache Write:")} ${stats.tokens.cacheWrite.toLocaleString()}\n`;
3474
+ }
3475
+ info += `${theme.fg("dim", "Total:")} ${stats.tokens.total.toLocaleString()}\n`;
3476
+ if (stats.cost > 0) {
3477
+ info += `\n${theme.bold("Cost")}\n`;
3478
+ info += `${theme.fg("dim", "Total:")} ${stats.cost.toFixed(4)}`;
3479
+ }
3480
+ this.chatContainer.addChild(new Spacer(1));
3481
+ this.chatContainer.addChild(new Text(info, 1, 0));
3482
+ this.ui.requestRender();
3483
+ }
3484
+ handleChangelogCommand() {
3485
+ const changelogPath = getChangelogPath();
3486
+ const allEntries = parseChangelog(changelogPath);
3487
+ const changelogMarkdown = allEntries.length > 0
3488
+ ? allEntries
3489
+ .reverse()
3490
+ .map((e) => e.content)
3491
+ .join("\n\n")
3492
+ : "No changelog entries found.";
3493
+ this.chatContainer.addChild(new Spacer(1));
3494
+ this.chatContainer.addChild(new DynamicBorder());
3495
+ this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "What's New")), 1, 0));
3496
+ this.chatContainer.addChild(new Spacer(1));
3497
+ this.chatContainer.addChild(new Markdown(changelogMarkdown, 1, 1, this.getMarkdownThemeWithSettings()));
3498
+ this.chatContainer.addChild(new DynamicBorder());
3499
+ this.ui.requestRender();
3500
+ }
3501
+ /**
3502
+ * Capitalize keybinding for display (e.g., "ctrl+c" -> "Ctrl+C").
3503
+ */
3504
+ capitalizeKey(key) {
3505
+ return key
3506
+ .split("/")
3507
+ .map((k) => k
3508
+ .split("+")
3509
+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1))
3510
+ .join("+"))
3511
+ .join("/");
3512
+ }
3513
+ /**
3514
+ * Get capitalized display string for an app keybinding action.
3515
+ */
3516
+ getAppKeyDisplay(action) {
3517
+ return this.capitalizeKey(appKey(this.keybindings, action));
3518
+ }
3519
+ /**
3520
+ * Get capitalized display string for an editor keybinding action.
3521
+ */
3522
+ getEditorKeyDisplay(action) {
3523
+ return this.capitalizeKey(editorKey(action));
3524
+ }
3525
+ handleHotkeysCommand() {
3526
+ // Navigation keybindings
3527
+ const cursorWordLeft = this.getEditorKeyDisplay("cursorWordLeft");
3528
+ const cursorWordRight = this.getEditorKeyDisplay("cursorWordRight");
3529
+ const cursorLineStart = this.getEditorKeyDisplay("cursorLineStart");
3530
+ const cursorLineEnd = this.getEditorKeyDisplay("cursorLineEnd");
3531
+ const jumpForward = this.getEditorKeyDisplay("jumpForward");
3532
+ const jumpBackward = this.getEditorKeyDisplay("jumpBackward");
3533
+ const pageUp = this.getEditorKeyDisplay("pageUp");
3534
+ const pageDown = this.getEditorKeyDisplay("pageDown");
3535
+ // Editing keybindings
3536
+ const submit = this.getEditorKeyDisplay("submit");
3537
+ const newLine = this.getEditorKeyDisplay("newLine");
3538
+ const deleteWordBackward = this.getEditorKeyDisplay("deleteWordBackward");
3539
+ const deleteWordForward = this.getEditorKeyDisplay("deleteWordForward");
3540
+ const deleteToLineStart = this.getEditorKeyDisplay("deleteToLineStart");
3541
+ const deleteToLineEnd = this.getEditorKeyDisplay("deleteToLineEnd");
3542
+ const yank = this.getEditorKeyDisplay("yank");
3543
+ const yankPop = this.getEditorKeyDisplay("yankPop");
3544
+ const undo = this.getEditorKeyDisplay("undo");
3545
+ const tab = this.getEditorKeyDisplay("tab");
3546
+ // App keybindings
3547
+ const interrupt = this.getAppKeyDisplay("interrupt");
3548
+ const clear = this.getAppKeyDisplay("clear");
3549
+ const exit = this.getAppKeyDisplay("exit");
3550
+ const suspend = this.getAppKeyDisplay("suspend");
3551
+ const cycleThinkingLevel = this.getAppKeyDisplay("cycleThinkingLevel");
3552
+ const cycleModelForward = this.getAppKeyDisplay("cycleModelForward");
3553
+ const selectModel = this.getAppKeyDisplay("selectModel");
3554
+ const expandTools = this.getAppKeyDisplay("expandTools");
3555
+ const toggleThinking = this.getAppKeyDisplay("toggleThinking");
3556
+ const externalEditor = this.getAppKeyDisplay("externalEditor");
3557
+ const followUp = this.getAppKeyDisplay("followUp");
3558
+ const dequeue = this.getAppKeyDisplay("dequeue");
3559
+ let hotkeys = `
3560
+ **Navigation**
3561
+ | Key | Action |
3562
+ |-----|--------|
3563
+ | \`Arrow keys\` | Move cursor / browse history (Up when empty) |
3564
+ | \`${cursorWordLeft}\` / \`${cursorWordRight}\` | Move by word |
3565
+ | \`${cursorLineStart}\` | Start of line |
3566
+ | \`${cursorLineEnd}\` | End of line |
3567
+ | \`${jumpForward}\` | Jump forward to character |
3568
+ | \`${jumpBackward}\` | Jump backward to character |
3569
+ | \`${pageUp}\` / \`${pageDown}\` | Scroll by page |
3570
+
3571
+ **Editing**
3572
+ | Key | Action |
3573
+ |-----|--------|
3574
+ | \`${submit}\` | Send message |
3575
+ | \`${newLine}\` | New line${process.platform === "win32" ? " (Ctrl+Enter on Windows Terminal)" : ""} |
3576
+ | \`${deleteWordBackward}\` | Delete word backwards |
3577
+ | \`${deleteWordForward}\` | Delete word forwards |
3578
+ | \`${deleteToLineStart}\` | Delete to start of line |
3579
+ | \`${deleteToLineEnd}\` | Delete to end of line |
3580
+ | \`${yank}\` | Paste the most-recently-deleted text |
3581
+ | \`${yankPop}\` | Cycle through the deleted text after pasting |
3582
+ | \`${undo}\` | Undo |
3583
+
3584
+ **Other**
3585
+ | Key | Action |
3586
+ |-----|--------|
3587
+ | \`${tab}\` | Path completion / accept autocomplete |
3588
+ | \`${interrupt}\` | Cancel autocomplete / abort streaming |
3589
+ | \`${clear}\` | Clear editor (first) / exit (second) |
3590
+ | \`${exit}\` | Exit (when editor is empty) |
3591
+ | \`${suspend}\` | Suspend to background |
3592
+ | \`${cycleThinkingLevel}\` | Cycle thinking level |
3593
+ | \`${cycleModelForward}\` | Cycle models |
3594
+ | \`${selectModel}\` | Open model selector |
3595
+ | \`${expandTools}\` | Toggle tool output expansion |
3596
+ | \`${toggleThinking}\` | Toggle thinking block visibility |
3597
+ | \`${externalEditor}\` | Edit message in external editor |
3598
+ | \`${followUp}\` | Queue follow-up message |
3599
+ | \`${dequeue}\` | Restore queued messages |
3600
+ | \`Ctrl+V\` | Paste image from clipboard |
3601
+ | \`/\` | Slash commands |
3602
+ | \`!\` | Run bash command |
3603
+ | \`!!\` | Run bash command (excluded from context) |
3604
+ `;
3605
+ // Add extension-registered shortcuts
3606
+ const extensionRunner = this.session.extensionRunner;
3607
+ if (extensionRunner) {
3608
+ const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
3609
+ if (shortcuts.size > 0) {
3610
+ hotkeys += `
3611
+ **Extensions**
3612
+ | Key | Action |
3613
+ |-----|--------|
3614
+ `;
3615
+ for (const [key, shortcut] of shortcuts) {
3616
+ const description = shortcut.description ?? shortcut.extensionPath;
3617
+ const keyDisplay = key.replace(/\b\w/g, (c) => c.toUpperCase());
3618
+ hotkeys += `| \`${keyDisplay}\` | ${description} |\n`;
3619
+ }
3620
+ }
3621
+ }
3622
+ this.chatContainer.addChild(new Spacer(1));
3623
+ this.chatContainer.addChild(new DynamicBorder());
3624
+ this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "Keyboard Shortcuts")), 1, 0));
3625
+ this.chatContainer.addChild(new Spacer(1));
3626
+ this.chatContainer.addChild(new Markdown(hotkeys.trim(), 1, 1, this.getMarkdownThemeWithSettings()));
3627
+ this.chatContainer.addChild(new DynamicBorder());
3628
+ this.ui.requestRender();
3629
+ }
3630
+ async handleClearCommand() {
3631
+ // Stop loading animation
3632
+ if (this.loadingAnimation) {
3633
+ this.loadingAnimation.stop();
3634
+ this.loadingAnimation = undefined;
3635
+ }
3636
+ this.statusContainer.clear();
3637
+ // New session via session (emits extension session events)
3638
+ await this.session.newSession();
3639
+ // Clear UI state
3640
+ this.headerContainer.clear();
3641
+ this.chatContainer.clear();
3642
+ this.pendingMessagesContainer.clear();
3643
+ this.compactionQueuedMessages = [];
3644
+ this.streamingComponent = undefined;
3645
+ this.streamingMessage = undefined;
3646
+ this.pendingTools.clear();
3647
+ this.chatContainer.addChild(new Spacer(1));
3648
+ this.chatContainer.addChild(new Text(`${theme.fg("accent", "✓ New session started")}`, 1, 1));
3649
+ this.ui.requestRender();
3650
+ }
3651
+ handleDebugCommand() {
3652
+ const width = this.ui.terminal.columns;
3653
+ const height = this.ui.terminal.rows;
3654
+ const allLines = this.ui.render(width);
3655
+ const debugLogPath = getDebugLogPath();
3656
+ const debugData = [
3657
+ `Debug output at ${new Date().toISOString()}`,
3658
+ `Terminal: ${width}x${height}`,
3659
+ `Total lines: ${allLines.length}`,
3660
+ "",
3661
+ "=== All rendered lines with visible widths ===",
3662
+ ...allLines.map((line, idx) => {
3663
+ const vw = visibleWidth(line);
3664
+ const escaped = JSON.stringify(line);
3665
+ return `[${idx}] (w=${vw}) ${escaped}`;
3666
+ }),
3667
+ "",
3668
+ "=== Agent messages (JSONL) ===",
3669
+ ...this.session.messages.map((msg) => JSON.stringify(msg)),
3670
+ "",
3671
+ ].join("\n");
3672
+ fs.mkdirSync(path.dirname(debugLogPath), { recursive: true });
3673
+ fs.writeFileSync(debugLogPath, debugData);
3674
+ this.chatContainer.addChild(new Spacer(1));
3675
+ this.chatContainer.addChild(new Text(`${theme.fg("accent", "✓ Debug log written")}\n${theme.fg("muted", debugLogPath)}`, 1, 1));
3676
+ this.ui.requestRender();
3677
+ }
3678
+ handleArminSaysHi() {
3679
+ this.chatContainer.addChild(new Spacer(1));
3680
+ this.chatContainer.addChild(new ArminComponent(this.ui));
3681
+ this.ui.requestRender();
3682
+ }
3683
+ handleDaxnuts() {
3684
+ this.chatContainer.addChild(new Spacer(1));
3685
+ this.chatContainer.addChild(new DaxnutsComponent(this.ui));
3686
+ this.ui.requestRender();
3687
+ }
3688
+ checkDaxnutsEasterEgg(model) {
3689
+ if (model.provider === "opencode" && model.id.toLowerCase().includes("kimi-k2.5")) {
3690
+ this.handleDaxnuts();
3691
+ }
3692
+ }
3693
+ async handleBashCommand(command, excludeFromContext = false) {
3694
+ const extensionRunner = this.session.extensionRunner;
3695
+ // Emit user_bash event to let extensions intercept
3696
+ const eventResult = extensionRunner
3697
+ ? await extensionRunner.emitUserBash({
3698
+ type: "user_bash",
3699
+ command,
3700
+ excludeFromContext,
3701
+ cwd: process.cwd(),
3702
+ })
3703
+ : undefined;
3704
+ // If extension returned a full result, use it directly
3705
+ if (eventResult?.result) {
3706
+ const result = eventResult.result;
3707
+ // Create UI component for display
3708
+ this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext);
3709
+ if (this.session.isStreaming) {
3710
+ this.pendingMessagesContainer.addChild(this.bashComponent);
3711
+ this.pendingBashComponents.push(this.bashComponent);
3712
+ }
3713
+ else {
3714
+ this.chatContainer.addChild(this.bashComponent);
3715
+ }
3716
+ // Show output and complete
3717
+ if (result.output) {
3718
+ this.bashComponent.appendOutput(result.output);
3719
+ }
3720
+ this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath);
3721
+ // Record the result in session
3722
+ this.session.recordBashResult(command, result, { excludeFromContext });
3723
+ this.bashComponent = undefined;
3724
+ this.ui.requestRender();
3725
+ return;
3726
+ }
3727
+ // Normal execution path (possibly with custom operations)
3728
+ const isDeferred = this.session.isStreaming;
3729
+ this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext);
3730
+ if (isDeferred) {
3731
+ // Show in pending area when agent is streaming
3732
+ this.pendingMessagesContainer.addChild(this.bashComponent);
3733
+ this.pendingBashComponents.push(this.bashComponent);
3734
+ }
3735
+ else {
3736
+ // Show in chat immediately when agent is idle
3737
+ this.chatContainer.addChild(this.bashComponent);
3738
+ }
3739
+ this.ui.requestRender();
3740
+ try {
3741
+ const result = await this.session.executeBash(command, (chunk) => {
3742
+ if (this.bashComponent) {
3743
+ this.bashComponent.appendOutput(chunk);
3744
+ this.ui.requestRender();
3745
+ }
3746
+ }, { excludeFromContext, operations: eventResult?.operations });
3747
+ if (this.bashComponent) {
3748
+ this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath);
3749
+ }
3750
+ }
3751
+ catch (error) {
3752
+ if (this.bashComponent) {
3753
+ this.bashComponent.setComplete(undefined, false);
3754
+ }
3755
+ this.showError(`Bash command failed: ${error instanceof Error ? error.message : "Unknown error"}`);
3756
+ }
3757
+ this.bashComponent = undefined;
3758
+ this.ui.requestRender();
3759
+ }
3760
+ async handleCompactCommand(customInstructions) {
3761
+ const entries = this.sessionManager.getEntries();
3762
+ const messageCount = entries.filter((e) => e.type === "message").length;
3763
+ if (messageCount < 2) {
3764
+ this.showWarning("Nothing to compact (no messages yet)");
3765
+ return;
3766
+ }
3767
+ await this.executeCompaction(customInstructions, false);
3768
+ }
3769
+ async executeCompaction(customInstructions, isAuto = false) {
3770
+ // Stop loading animation
3771
+ if (this.loadingAnimation) {
3772
+ this.loadingAnimation.stop();
3773
+ this.loadingAnimation = undefined;
3774
+ }
3775
+ this.statusContainer.clear();
3776
+ // Set up escape handler during compaction
3777
+ const originalOnEscape = this.defaultEditor.onEscape;
3778
+ this.defaultEditor.onEscape = () => {
3779
+ this.session.abortCompaction();
3780
+ };
3781
+ // Show compacting status
3782
+ this.chatContainer.addChild(new Spacer(1));
3783
+ const cancelHint = `(${appKey(this.keybindings, "interrupt")} to cancel)`;
3784
+ const label = isAuto ? `Auto-compacting context... ${cancelHint}` : `Compacting context... ${cancelHint}`;
3785
+ const compactingLoader = new Loader(this.ui, (spinner) => theme.fg("accent", spinner), (text) => theme.fg("muted", text), label);
3786
+ this.statusContainer.addChild(compactingLoader);
3787
+ this.ui.requestRender();
3788
+ let result;
3789
+ try {
3790
+ result = await this.session.compact(customInstructions);
3791
+ // Rebuild UI
3792
+ this.rebuildChatFromMessages();
3793
+ // Add compaction component at bottom so user sees it without scrolling
3794
+ const msg = createCompactionSummaryMessage(result.summary, result.tokensBefore, new Date().toISOString());
3795
+ this.addMessageToChat(msg);
3796
+ this.footer.invalidate();
3797
+ }
3798
+ catch (error) {
3799
+ const message = error instanceof Error ? error.message : String(error);
3800
+ if (message === "Compaction cancelled" || (error instanceof Error && error.name === "AbortError")) {
3801
+ this.showError("Compaction cancelled");
3802
+ }
3803
+ else {
3804
+ this.showError(`Compaction failed: ${message}`);
3805
+ }
3806
+ }
3807
+ finally {
3808
+ compactingLoader.stop();
3809
+ this.statusContainer.clear();
3810
+ this.defaultEditor.onEscape = originalOnEscape;
3811
+ }
3812
+ void this.flushCompactionQueue({ willRetry: false });
3813
+ return result;
3814
+ }
3815
+ stop() {
3816
+ if (this.loadingAnimation) {
3817
+ this.loadingAnimation.stop();
3818
+ this.loadingAnimation = undefined;
3819
+ }
3820
+ this.clearExtensionTerminalInputListeners();
3821
+ this.footer.dispose();
3822
+ this.footerDataProvider.dispose();
3823
+ if (this.unsubscribe) {
3824
+ this.unsubscribe();
3825
+ }
3826
+ if (this.isInitialized) {
3827
+ this.ui.stop();
3828
+ this.isInitialized = false;
3829
+ }
3830
+ }
3831
+ }
3832
+ //# sourceMappingURL=interactive-mode.js.map