@entelligentsia/forgecli 0.7.6 → 0.7.9

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 (2885) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +105 -215
  3. package/dist/CHANGELOG-forge-plugin.md +1233 -0
  4. package/dist/CHANGELOG-pi.md +4205 -0
  5. package/dist/bin/forge.js +2 -2
  6. package/dist/extensions/forgecli/approve.d.ts +1 -1
  7. package/dist/extensions/forgecli/ask-user-tool.d.ts +1 -1
  8. package/dist/extensions/forgecli/audience-gate.d.ts +1 -1
  9. package/dist/extensions/forgecli/collate.d.ts +1 -1
  10. package/dist/extensions/forgecli/commit.d.ts +1 -1
  11. package/dist/extensions/forgecli/enhance.d.ts +1 -1
  12. package/dist/extensions/forgecli/fix-bug.d.ts +1 -1
  13. package/dist/extensions/forgecli/forge-commands.d.ts +1 -1
  14. package/dist/extensions/forgecli/forge-header.d.ts +3 -3
  15. package/dist/extensions/forgecli/forge-header.js +12 -6
  16. package/dist/extensions/forgecli/forge-header.js.map +1 -1
  17. package/dist/extensions/forgecli/forge-init.d.ts +1 -1
  18. package/dist/extensions/forgecli/forge-subagent.d.ts +3 -3
  19. package/dist/extensions/forgecli/forge-subagent.js +2 -2
  20. package/dist/extensions/forgecli/forge-tools.d.ts +1 -1
  21. package/dist/extensions/forgecli/forge-update-command.d.ts +1 -1
  22. package/dist/extensions/forgecli/hook-dispatcher.d.ts +1 -1
  23. package/dist/extensions/forgecli/hook-dispatcher.js +1 -1
  24. package/dist/extensions/forgecli/hooks/post-init-hook.d.ts +1 -1
  25. package/dist/extensions/forgecli/hooks/post-sprint-hook.d.ts +1 -1
  26. package/dist/extensions/forgecli/implement.d.ts +1 -1
  27. package/dist/extensions/forgecli/index.d.ts +1 -1
  28. package/dist/extensions/forgecli/index.js +41 -6
  29. package/dist/extensions/forgecli/index.js.map +1 -1
  30. package/dist/extensions/forgecli/kickoff.d.ts +1 -1
  31. package/dist/extensions/forgecli/plan.d.ts +1 -1
  32. package/dist/extensions/forgecli/read-command.d.ts +1 -1
  33. package/dist/extensions/forgecli/regenerate.d.ts +1 -1
  34. package/dist/extensions/forgecli/review-code.d.ts +1 -1
  35. package/dist/extensions/forgecli/review-plan.d.ts +1 -1
  36. package/dist/extensions/forgecli/run-sprint.d.ts +2 -2
  37. package/dist/extensions/forgecli/run-task.d.ts +2 -2
  38. package/dist/extensions/forgecli/sprint-intake.d.ts +1 -1
  39. package/dist/extensions/forgecli/sprint-plan.d.ts +1 -1
  40. package/dist/extensions/forgecli/store-resolver.d.ts +1 -1
  41. package/dist/extensions/forgecli/subagent/agents.js +1 -1
  42. package/dist/extensions/forgecli/subagent/index.d.ts +1 -1
  43. package/dist/extensions/forgecli/subagent/index.js +3 -3
  44. package/dist/extensions/forgecli/test-orchestrate.d.ts +1 -1
  45. package/dist/extensions/forgecli/thread-switcher.d.ts +1 -1
  46. package/dist/extensions/forgecli/thread-switcher.js +1 -1
  47. package/dist/extensions/forgecli/usage-hook.d.ts +1 -1
  48. package/dist/extensions/forgecli/validate.d.ts +1 -1
  49. package/dist/extensions/forgecli/wf-engine/register.d.ts +1 -1
  50. package/dist/extensions/forgecli/wf-engine/worker.d.ts +1 -1
  51. package/dist/extensions/forgecli/wf-engine/worker.js +1 -1
  52. package/dist/extensions/forgecli/whats-new-widget.d.ts +21 -0
  53. package/dist/extensions/forgecli/whats-new-widget.js +303 -0
  54. package/dist/extensions/forgecli/whats-new-widget.js.map +1 -0
  55. package/dist/extensions/forgecli/whats-new.d.ts +120 -0
  56. package/dist/extensions/forgecli/whats-new.js +469 -0
  57. package/dist/extensions/forgecli/whats-new.js.map +1 -0
  58. package/node_modules/@earendil-works/pi-agent-core/README.md +488 -0
  59. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts +24 -0
  60. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -0
  61. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +479 -0
  62. package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -0
  63. package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +118 -0
  64. package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +1 -0
  65. package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +402 -0
  66. package/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +1 -0
  67. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts +92 -0
  68. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts.map +1 -0
  69. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +900 -0
  70. package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js.map +1 -0
  71. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts +53 -0
  72. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +1 -0
  73. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +174 -0
  74. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js.map +1 -0
  75. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts +95 -0
  76. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -0
  77. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +533 -0
  78. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +1 -0
  79. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts +25 -0
  80. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts.map +1 -0
  81. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js +131 -0
  82. package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js.map +1 -0
  83. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts +51 -0
  84. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts.map +1 -0
  85. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +481 -0
  86. package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js.map +1 -0
  87. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.d.ts +4 -0
  88. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.d.ts.map +1 -0
  89. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.js +3 -0
  90. package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.js.map +1 -0
  91. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts +51 -0
  92. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +1 -0
  93. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js +102 -0
  94. package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +1 -0
  95. package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts +48 -0
  96. package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts.map +1 -0
  97. package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js +230 -0
  98. package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js.map +1 -0
  99. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts +26 -0
  100. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts.map +1 -0
  101. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +101 -0
  102. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js.map +1 -0
  103. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts +33 -0
  104. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts.map +1 -0
  105. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +231 -0
  106. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js.map +1 -0
  107. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts +18 -0
  108. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts.map +1 -0
  109. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js +42 -0
  110. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js.map +1 -0
  111. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts +25 -0
  112. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts.map +1 -0
  113. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +114 -0
  114. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js.map +1 -0
  115. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.d.ts +20 -0
  116. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.d.ts.map +1 -0
  117. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.js +92 -0
  118. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.js.map +1 -0
  119. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.d.ts +18 -0
  120. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.d.ts.map +1 -0
  121. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.js +42 -0
  122. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.js.map +1 -0
  123. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.d.ts +10 -0
  124. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.d.ts.map +1 -0
  125. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.js +31 -0
  126. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.js.map +1 -0
  127. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts +11 -0
  128. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts.map +1 -0
  129. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js +39 -0
  130. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js.map +1 -0
  131. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts +32 -0
  132. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts.map +1 -0
  133. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +197 -0
  134. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js.map +1 -0
  135. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.d.ts +30 -0
  136. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.d.ts.map +1 -0
  137. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.js +170 -0
  138. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.js.map +1 -0
  139. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.d.ts +26 -0
  140. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.d.ts.map +1 -0
  141. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.js +90 -0
  142. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.js.map +1 -0
  143. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/uuid.d.ts +2 -0
  144. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/uuid.d.ts.map +1 -0
  145. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/uuid.js +50 -0
  146. package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/uuid.js.map +1 -0
  147. package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts +44 -0
  148. package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts.map +1 -0
  149. package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js +311 -0
  150. package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js.map +1 -0
  151. package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts +3 -0
  152. package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts.map +1 -0
  153. package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js +30 -0
  154. package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js.map +1 -0
  155. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts +613 -0
  156. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +1 -0
  157. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +100 -0
  158. package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +1 -0
  159. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts +14 -0
  160. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts.map +1 -0
  161. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +126 -0
  162. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js.map +1 -0
  163. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts.map +1 -0
  164. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js +288 -0
  165. package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js.map +1 -0
  166. package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +20 -0
  167. package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +1 -0
  168. package/node_modules/@earendil-works/pi-agent-core/dist/index.js +25 -0
  169. package/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +1 -0
  170. package/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts +3 -0
  171. package/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts.map +1 -0
  172. package/node_modules/@earendil-works/pi-agent-core/dist/node.js +3 -0
  173. package/node_modules/@earendil-works/pi-agent-core/dist/node.js.map +1 -0
  174. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts +69 -0
  175. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts.map +1 -0
  176. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.js +278 -0
  177. package/node_modules/@earendil-works/pi-agent-core/dist/proxy.js.map +1 -0
  178. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts +393 -0
  179. package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -0
  180. package/node_modules/@earendil-works/pi-agent-core/dist/types.js.map +1 -0
  181. package/node_modules/@earendil-works/pi-agent-core/package.json +61 -0
  182. package/node_modules/@earendil-works/pi-ai/README.md +1383 -0
  183. package/node_modules/@earendil-works/pi-ai/dist/cli.d.ts.map +1 -0
  184. package/node_modules/@earendil-works/pi-ai/dist/cli.js +116 -0
  185. package/node_modules/@earendil-works/pi-ai/dist/cli.js.map +1 -0
  186. package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts.map +1 -0
  187. package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +170 -0
  188. package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js.map +1 -0
  189. package/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts +10 -0
  190. package/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts.map +1 -0
  191. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +425 -0
  192. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts.map +1 -0
  193. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +427 -0
  194. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js.map +1 -0
  195. package/node_modules/@earendil-works/pi-ai/dist/image-models.js +23 -0
  196. package/node_modules/@earendil-works/pi-ai/dist/image-models.js.map +1 -0
  197. package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts +14 -0
  198. package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts.map +1 -0
  199. package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js +22 -0
  200. package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js.map +1 -0
  201. package/node_modules/@earendil-works/pi-ai/dist/images.d.ts +4 -0
  202. package/node_modules/@earendil-works/pi-ai/dist/images.d.ts.map +1 -0
  203. package/node_modules/@earendil-works/pi-ai/dist/images.js +14 -0
  204. package/node_modules/@earendil-works/pi-ai/dist/images.js.map +1 -0
  205. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts +32 -0
  206. package/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +1 -0
  207. package/node_modules/@earendil-works/pi-ai/dist/index.js +20 -0
  208. package/node_modules/@earendil-works/pi-ai/dist/index.js.map +1 -0
  209. package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +17435 -0
  210. package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +1 -0
  211. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +16383 -0
  212. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +1 -0
  213. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +1 -0
  214. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js +750 -0
  215. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +1 -0
  216. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +1 -0
  217. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js +960 -0
  218. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +1 -0
  219. package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.d.ts +3 -0
  220. package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.d.ts.map +1 -0
  221. package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js +129 -0
  222. package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js.map +1 -0
  223. package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts +4 -0
  224. package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts.map +1 -0
  225. package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js +34 -0
  226. package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js.map +1 -0
  227. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.d.ts.map +1 -0
  228. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +1080 -0
  229. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js.map +1 -0
  230. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.d.ts.map +1 -0
  231. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +943 -0
  232. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js.map +1 -0
  233. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.d.ts.map +1 -0
  234. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js +39 -0
  235. package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js.map +1 -0
  236. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +488 -0
  237. package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -0
  238. package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -0
  239. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts +10 -0
  240. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts.map +1 -0
  241. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js +97 -0
  242. package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js.map +1 -0
  243. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +56 -0
  244. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -0
  245. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +151 -0
  246. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -0
  247. package/node_modules/@earendil-works/pi-ai/package.json +107 -0
  248. package/node_modules/@earendil-works/pi-coding-agent/CHANGELOG.md +4205 -0
  249. package/node_modules/@earendil-works/pi-coding-agent/README.md +653 -0
  250. package/node_modules/@earendil-works/pi-coding-agent/dist/bun/register-bedrock.d.ts.map +1 -0
  251. package/node_modules/@earendil-works/pi-coding-agent/dist/bun/register-bedrock.js +4 -0
  252. package/node_modules/@earendil-works/pi-coding-agent/dist/bun/register-bedrock.js.map +1 -0
  253. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.d.ts +53 -0
  254. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.d.ts.map +1 -0
  255. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js +341 -0
  256. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/args.js.map +1 -0
  257. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.d.ts.map +1 -0
  258. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.js +31 -0
  259. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/config-selector.js.map +1 -0
  260. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.d.ts +15 -0
  261. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.d.ts.map +1 -0
  262. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.js.map +1 -0
  263. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/initial-message.d.ts +18 -0
  264. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/initial-message.d.ts.map +1 -0
  265. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/initial-message.js.map +1 -0
  266. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/list-models.d.ts.map +1 -0
  267. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/list-models.js +98 -0
  268. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/list-models.js.map +1 -0
  269. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/session-picker.d.ts.map +1 -0
  270. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/session-picker.js +35 -0
  271. package/node_modules/@earendil-works/pi-coding-agent/dist/cli/session-picker.js.map +1 -0
  272. package/node_modules/@earendil-works/pi-coding-agent/dist/cli.d.ts.map +1 -0
  273. package/node_modules/@earendil-works/pi-coding-agent/dist/cli.js +28 -0
  274. package/node_modules/@earendil-works/pi-coding-agent/dist/cli.js.map +1 -0
  275. package/node_modules/@earendil-works/pi-coding-agent/dist/config.d.ts.map +1 -0
  276. package/node_modules/@earendil-works/pi-coding-agent/dist/config.js +399 -0
  277. package/node_modules/@earendil-works/pi-coding-agent/dist/config.js.map +1 -0
  278. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.d.ts +86 -0
  279. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.d.ts.map +1 -0
  280. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session-services.js.map +1 -0
  281. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts +595 -0
  282. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.d.ts.map +1 -0
  283. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +2521 -0
  284. package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js.map +1 -0
  285. package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.d.ts +141 -0
  286. package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.d.ts.map +1 -0
  287. package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +441 -0
  288. package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js.map +1 -0
  289. package/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.d.ts.map +1 -0
  290. package/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.js +111 -0
  291. package/node_modules/@earendil-works/pi-coding-agent/dist/core/bash-executor.js.map +1 -0
  292. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts +88 -0
  293. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts.map +1 -0
  294. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.js +243 -0
  295. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/branch-summarization.js.map +1 -0
  296. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.d.ts +121 -0
  297. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.d.ts.map +1 -0
  298. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js +615 -0
  299. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js.map +1 -0
  300. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.d.ts +38 -0
  301. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.d.ts.map +1 -0
  302. package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js.map +1 -0
  303. package/node_modules/@earendil-works/pi-coding-agent/dist/core/defaults.d.ts +3 -0
  304. package/node_modules/@earendil-works/pi-coding-agent/dist/core/defaults.d.ts.map +1 -0
  305. package/node_modules/@earendil-works/pi-coding-agent/dist/core/defaults.js.map +1 -0
  306. package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/index.d.ts +37 -0
  307. package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/index.d.ts.map +1 -0
  308. package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/index.js.map +1 -0
  309. package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/tool-renderer.d.ts.map +1 -0
  310. package/node_modules/@earendil-works/pi-coding-agent/dist/core/export-html/tool-renderer.js.map +1 -0
  311. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.d.ts.map +1 -0
  312. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +498 -0
  313. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js.map +1 -0
  314. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts +159 -0
  315. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.d.ts.map +1 -0
  316. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +825 -0
  317. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js.map +1 -0
  318. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts +1187 -0
  319. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.d.ts.map +1 -0
  320. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/types.js.map +1 -0
  321. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/wrapper.d.ts +20 -0
  322. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/wrapper.d.ts.map +1 -0
  323. package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/wrapper.js.map +1 -0
  324. package/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.d.ts +353 -0
  325. package/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.d.ts.map +1 -0
  326. package/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.js +295 -0
  327. package/node_modules/@earendil-works/pi-coding-agent/dist/core/keybindings.js.map +1 -0
  328. package/node_modules/@earendil-works/pi-coding-agent/dist/core/messages.d.ts +77 -0
  329. package/node_modules/@earendil-works/pi-coding-agent/dist/core/messages.d.ts.map +1 -0
  330. package/node_modules/@earendil-works/pi-coding-agent/dist/core/messages.js.map +1 -0
  331. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.d.ts +150 -0
  332. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.d.ts.map +1 -0
  333. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js +728 -0
  334. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-registry.js.map +1 -0
  335. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.d.ts +110 -0
  336. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.d.ts.map +1 -0
  337. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +495 -0
  338. package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js.map +1 -0
  339. package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts +199 -0
  340. package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts.map +1 -0
  341. package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +1996 -0
  342. package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js.map +1 -0
  343. package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.d.ts.map +1 -0
  344. package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js +252 -0
  345. package/node_modules/@earendil-works/pi-coding-agent/dist/core/prompt-templates.js.map +1 -0
  346. package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.d.ts.map +1 -0
  347. package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.js +33 -0
  348. package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-display-names.js.map +1 -0
  349. package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.d.ts +107 -0
  350. package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.d.ts.map +1 -0
  351. package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js +282 -0
  352. package/node_modules/@earendil-works/pi-coding-agent/dist/core/sdk.js.map +1 -0
  353. package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.d.ts +333 -0
  354. package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.d.ts.map +1 -0
  355. package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +1139 -0
  356. package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js.map +1 -0
  357. package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.d.ts +261 -0
  358. package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.d.ts.map +1 -0
  359. package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js.map +1 -0
  360. package/node_modules/@earendil-works/pi-coding-agent/dist/core/skills.d.ts.map +1 -0
  361. package/node_modules/@earendil-works/pi-coding-agent/dist/core/skills.js +401 -0
  362. package/node_modules/@earendil-works/pi-coding-agent/dist/core/skills.js.map +1 -0
  363. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.d.ts +68 -0
  364. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.d.ts.map +1 -0
  365. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +335 -0
  366. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js.map +1 -0
  367. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.d.ts +49 -0
  368. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.d.ts.map +1 -0
  369. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +324 -0
  370. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js.map +1 -0
  371. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.d.ts +35 -0
  372. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -0
  373. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +298 -0
  374. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js.map +1 -0
  375. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts +37 -0
  376. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts.map +1 -0
  377. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +304 -0
  378. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js.map +1 -0
  379. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/index.d.ts +40 -0
  380. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/index.d.ts.map +1 -0
  381. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/index.js.map +1 -0
  382. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.d.ts +37 -0
  383. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.d.ts.map +1 -0
  384. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +169 -0
  385. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js.map +1 -0
  386. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts +35 -0
  387. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts.map +1 -0
  388. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +289 -0
  389. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js.map +1 -0
  390. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/render-utils.d.ts +21 -0
  391. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/render-utils.d.ts.map +1 -0
  392. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/render-utils.js +49 -0
  393. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/render-utils.js.map +1 -0
  394. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
  395. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
  396. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/tool-definition-wrapper.js.map +1 -0
  397. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.d.ts +70 -0
  398. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.d.ts +26 -0
  399. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.d.ts.map +1 -0
  400. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js +213 -0
  401. package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js.map +1 -0
  402. package/node_modules/@earendil-works/pi-coding-agent/dist/main.d.ts.map +1 -0
  403. package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +573 -0
  404. package/node_modules/@earendil-works/pi-coding-agent/dist/main.js.map +1 -0
  405. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/armin.d.ts +34 -0
  406. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/armin.d.ts.map +1 -0
  407. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/armin.js.map +1 -0
  408. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts +20 -0
  409. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
  410. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +121 -0
  411. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.js.map +1 -0
  412. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts +34 -0
  413. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
  414. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +175 -0
  415. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bash-execution.js.map +1 -0
  416. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
  417. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
  418. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js +54 -0
  419. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js.map +1 -0
  420. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
  421. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
  422. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +44 -0
  423. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
  424. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
  425. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
  426. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +45 -0
  427. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
  428. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts +71 -0
  429. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
  430. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.js +503 -0
  431. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/config-selector.js.map +1 -0
  432. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
  433. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
  434. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js.map +1 -0
  435. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts +21 -0
  436. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
  437. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-editor.js +70 -0
  438. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-editor.js.map +1 -0
  439. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts +20 -0
  440. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
  441. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.js +79 -0
  442. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-message.js.map +1 -0
  443. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/daxnuts.d.ts +23 -0
  444. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
  445. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/daxnuts.js.map +1 -0
  446. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
  447. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
  448. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js.map +1 -0
  449. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
  450. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -0
  451. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.js +40 -0
  452. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.js.map +1 -0
  453. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts +20 -0
  454. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
  455. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-editor.js +111 -0
  456. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-editor.js.map +1 -0
  457. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts +23 -0
  458. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
  459. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-input.js +61 -0
  460. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-input.js.map +1 -0
  461. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.d.ts +26 -0
  462. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
  463. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +83 -0
  464. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/extension-selector.js.map +1 -0
  465. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.d.ts +27 -0
  466. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.d.ts.map +1 -0
  467. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js +201 -0
  468. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/footer.js.map +1 -0
  469. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
  470. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
  471. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js +36 -0
  472. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
  473. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts +46 -0
  474. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
  475. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +160 -0
  476. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/login-dialog.js.map +1 -0
  477. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.d.ts +47 -0
  478. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
  479. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +278 -0
  480. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js.map +1 -0
  481. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +31 -0
  482. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
  483. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +165 -0
  484. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js.map +1 -0
  485. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts +42 -0
  486. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
  487. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js +290 -0
  488. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
  489. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
  490. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js +155 -0
  491. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js.map +1 -0
  492. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts +96 -0
  493. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
  494. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.js +861 -0
  495. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/session-selector.js.map +1 -0
  496. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts +67 -0
  497. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
  498. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +375 -0
  499. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -0
  500. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
  501. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
  502. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js +39 -0
  503. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js.map +1 -0
  504. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
  505. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
  506. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +47 -0
  507. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
  508. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/theme-selector.d.ts +11 -0
  509. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
  510. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/theme-selector.js +50 -0
  511. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/theme-selector.js.map +1 -0
  512. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
  513. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
  514. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js +51 -0
  515. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js.map +1 -0
  516. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts +63 -0
  517. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
  518. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +295 -0
  519. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -0
  520. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts +89 -0
  521. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
  522. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +1093 -0
  523. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/tree-selector.js.map +1 -0
  524. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
  525. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
  526. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js +114 -0
  527. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js.map +1 -0
  528. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts +10 -0
  529. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts.map +1 -0
  530. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.js +29 -0
  531. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.js.map +1 -0
  532. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
  533. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js +33 -0
  534. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js.map +1 -0
  535. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +382 -0
  536. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
  537. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +4668 -0
  538. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -0
  539. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/dark.json +85 -0
  540. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/light.json +84 -0
  541. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts +81 -0
  542. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -0
  543. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js +973 -0
  544. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +1 -0
  545. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.d.ts +28 -0
  546. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.d.ts.map +1 -0
  547. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/print-mode.js.map +1 -0
  548. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts +224 -0
  549. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts.map +1 -0
  550. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.js.map +1 -0
  551. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
  552. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +605 -0
  553. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -0
  554. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts +419 -0
  555. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts.map +1 -0
  556. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-types.js.map +1 -0
  557. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/ansi.d.ts +2 -0
  558. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/ansi.d.ts.map +1 -0
  559. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/ansi.js +52 -0
  560. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/ansi.js.map +1 -0
  561. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/html.d.ts +7 -0
  562. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/html.d.ts.map +1 -0
  563. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/html.js +40 -0
  564. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/html.js.map +1 -0
  565. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.d.ts +36 -0
  566. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.d.ts.map +1 -0
  567. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.js.map +1 -0
  568. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/mime.d.ts +3 -0
  569. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/mime.d.ts.map +1 -0
  570. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/mime.js +69 -0
  571. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/mime.js.map +1 -0
  572. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/syntax-highlight.d.ts +12 -0
  573. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/syntax-highlight.d.ts.map +1 -0
  574. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/syntax-highlight.js +118 -0
  575. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/syntax-highlight.js.map +1 -0
  576. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/tools-manager.d.ts.map +1 -0
  577. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/tools-manager.js +328 -0
  578. package/node_modules/@earendil-works/pi-coding-agent/dist/utils/tools-manager.js.map +1 -0
  579. package/node_modules/@earendil-works/pi-coding-agent/docs/compaction.md +394 -0
  580. package/node_modules/@earendil-works/pi-coding-agent/docs/custom-provider.md +701 -0
  581. package/node_modules/@earendil-works/pi-coding-agent/docs/extensions.md +2596 -0
  582. package/node_modules/@earendil-works/pi-coding-agent/docs/index.md +70 -0
  583. package/node_modules/@earendil-works/pi-coding-agent/docs/models.md +474 -0
  584. package/node_modules/@earendil-works/pi-coding-agent/docs/packages.md +223 -0
  585. package/node_modules/@earendil-works/pi-coding-agent/docs/providers.md +243 -0
  586. package/node_modules/@earendil-works/pi-coding-agent/docs/quickstart.md +142 -0
  587. package/node_modules/@earendil-works/pi-coding-agent/docs/rpc.md +1407 -0
  588. package/node_modules/@earendil-works/pi-coding-agent/docs/sdk.md +1129 -0
  589. package/node_modules/@earendil-works/pi-coding-agent/docs/session-format.md +412 -0
  590. package/node_modules/@earendil-works/pi-coding-agent/docs/skills.md +231 -0
  591. package/node_modules/@earendil-works/pi-coding-agent/docs/termux.md +127 -0
  592. package/node_modules/@earendil-works/pi-coding-agent/docs/themes.md +295 -0
  593. package/node_modules/@earendil-works/pi-coding-agent/docs/tui.md +918 -0
  594. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/README.md +208 -0
  595. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/auto-commit-on-exit.ts +49 -0
  596. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/bash-spawn-hook.ts +30 -0
  597. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/bookmark.ts +50 -0
  598. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/border-status-editor.ts +150 -0
  599. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/built-in-tool-renderer.ts +249 -0
  600. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/claude-rules.ts +86 -0
  601. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/commands.ts +72 -0
  602. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/confirm-destructive.ts +59 -0
  603. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-compaction.ts +127 -0
  604. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-footer.ts +64 -0
  605. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-header.ts +73 -0
  606. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/index.ts +604 -0
  607. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  608. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +19 -0
  609. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/index.ts +349 -0
  610. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
  611. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
  612. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/dirty-repo-guard.ts +56 -0
  613. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/doom-overlay/doom-component.ts +132 -0
  614. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/doom-overlay/doom-keys.ts +104 -0
  615. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/doom-overlay/index.ts +74 -0
  616. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/dynamic-resources/dynamic.json +79 -0
  617. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/dynamic-resources/index.ts +15 -0
  618. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/dynamic-tools.ts +74 -0
  619. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/event-bus.ts +43 -0
  620. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/file-trigger.ts +41 -0
  621. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/git-checkpoint.ts +53 -0
  622. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/github-issue-autocomplete.ts +185 -0
  623. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/handoff.ts +191 -0
  624. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/hello.ts +26 -0
  625. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/hidden-thinking-label.ts +53 -0
  626. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/inline-bash.ts +94 -0
  627. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/input-transform.ts +43 -0
  628. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/interactive-shell.ts +196 -0
  629. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/mac-system-theme.ts +47 -0
  630. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/message-renderer.ts +59 -0
  631. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/minimal-mode.ts +426 -0
  632. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/modal-editor.ts +85 -0
  633. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/model-status.ts +31 -0
  634. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/notify.ts +55 -0
  635. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/overlay-qa-tests.ts +1348 -0
  636. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/overlay-test.ts +150 -0
  637. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/permission-gate.ts +34 -0
  638. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/pirate.ts +47 -0
  639. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/plan-mode/index.ts +340 -0
  640. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/preset.ts +430 -0
  641. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/prompt-customizer.ts +97 -0
  642. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/protected-paths.ts +30 -0
  643. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/provider-payload.ts +18 -0
  644. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/qna.ts +122 -0
  645. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/question.ts +264 -0
  646. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/questionnaire.ts +427 -0
  647. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/rainbow-editor.ts +88 -0
  648. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/reload-runtime.ts +37 -0
  649. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/rpc-demo.ts +118 -0
  650. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/sandbox/index.ts +321 -0
  651. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/sandbox/package-lock.json +92 -0
  652. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/sandbox/package.json +19 -0
  653. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/send-user-message.ts +97 -0
  654. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/session-name.ts +27 -0
  655. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/shutdown-command.ts +63 -0
  656. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/snake.ts +343 -0
  657. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/space-invaders.ts +560 -0
  658. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/ssh.ts +220 -0
  659. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/status-line.ts +32 -0
  660. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/structured-output.ts +65 -0
  661. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/agents.ts +126 -0
  662. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/subagent/index.ts +987 -0
  663. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/summarize.ts +206 -0
  664. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/system-prompt-header.ts +17 -0
  665. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/tic-tac-toe.ts +1008 -0
  666. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/timed-confirm.ts +70 -0
  667. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/titlebar-spinner.ts +58 -0
  668. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/todo.ts +297 -0
  669. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/tool-override.ts +144 -0
  670. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/tools.ts +141 -0
  671. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/trigger-compact.ts +50 -0
  672. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/truncated-tool.ts +195 -0
  673. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/widget-placement.ts +9 -0
  674. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/index.ts +32 -0
  675. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package-lock.json +31 -0
  676. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package.json +22 -0
  677. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/working-indicator.ts +123 -0
  678. package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/working-message-test.ts +25 -0
  679. package/node_modules/@earendil-works/pi-coding-agent/examples/rpc-extension-ui.ts +632 -0
  680. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/01-minimal.ts +26 -0
  681. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/02-custom-model.ts +53 -0
  682. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/03-custom-prompt.ts +75 -0
  683. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/04-skills.ts +55 -0
  684. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/05-tools.ts +48 -0
  685. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/06-extensions.ts +99 -0
  686. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/07-context-files.ts +47 -0
  687. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/08-prompt-templates.ts +51 -0
  688. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/09-api-keys-and-oauth.ts +52 -0
  689. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/10-settings.ts +53 -0
  690. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/11-sessions.ts +52 -0
  691. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/12-full-control.ts +77 -0
  692. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/13-session-runtime.ts +67 -0
  693. package/node_modules/@earendil-works/pi-coding-agent/examples/sdk/README.md +144 -0
  694. package/node_modules/@earendil-works/pi-coding-agent/package.json +95 -0
  695. package/node_modules/@earendil-works/pi-tui/README.md +779 -0
  696. package/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts.map +1 -0
  697. package/node_modules/@earendil-works/pi-tui/dist/components/image.js +89 -0
  698. package/node_modules/@earendil-works/pi-tui/dist/components/image.js.map +1 -0
  699. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts +90 -0
  700. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -0
  701. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +634 -0
  702. package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -0
  703. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts.map +1 -0
  704. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js +361 -0
  705. package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js.map +1 -0
  706. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts +90 -0
  707. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +1 -0
  708. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +337 -0
  709. package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +1 -0
  710. package/node_modules/@earendil-works/pi-tui/package.json +50 -0
  711. package/node_modules/@mariozechner/clipboard/.yarnrc.yml +1 -0
  712. package/node_modules/@mariozechner/clipboard/Cargo.toml +45 -0
  713. package/node_modules/@mariozechner/clipboard/README.md +60 -0
  714. package/node_modules/@mariozechner/clipboard/build.rs +5 -0
  715. package/node_modules/@mariozechner/clipboard/exp.ts +12 -0
  716. package/node_modules/@mariozechner/clipboard/index.d.ts +23 -0
  717. package/node_modules/@mariozechner/clipboard/index.js +317 -0
  718. package/node_modules/@mariozechner/clipboard/package.json +47 -0
  719. package/node_modules/@mariozechner/clipboard/package.json.prepack-backup +56 -0
  720. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/common.rs +307 -0
  721. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/mod.rs +93 -0
  722. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/ios.rs +313 -0
  723. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/macos.rs +471 -0
  724. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/mod.rs +252 -0
  725. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/wayland.rs +431 -0
  726. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/win.rs +712 -0
  727. package/node_modules/@mariozechner/clipboard/src/clipboard_rs/platform/x11.rs +916 -0
  728. package/node_modules/@mariozechner/clipboard/src/lib.rs +199 -0
  729. package/node_modules/@mariozechner/clipboard-linux-x64-gnu/README.md +3 -0
  730. package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
  731. package/node_modules/@mariozechner/clipboard-linux-x64-gnu/package.json +25 -0
  732. package/node_modules/koffi/CHANGELOG.md +1093 -0
  733. package/node_modules/koffi/LICENSE.txt +22 -0
  734. package/node_modules/koffi/README.md +43 -0
  735. package/node_modules/koffi/build/koffi/darwin_arm64/koffi.node +0 -0
  736. package/node_modules/koffi/build/koffi/darwin_x64/koffi.node +0 -0
  737. package/node_modules/koffi/build/koffi/freebsd_arm64/koffi.node +0 -0
  738. package/node_modules/koffi/build/koffi/freebsd_ia32/koffi.node +0 -0
  739. package/node_modules/koffi/build/koffi/freebsd_x64/koffi.node +0 -0
  740. package/node_modules/koffi/build/koffi/linux_arm64/koffi.node +0 -0
  741. package/node_modules/koffi/build/koffi/linux_armhf/koffi.node +0 -0
  742. package/node_modules/koffi/build/koffi/linux_ia32/koffi.node +0 -0
  743. package/node_modules/koffi/build/koffi/linux_loong64/koffi.node +0 -0
  744. package/node_modules/koffi/build/koffi/linux_riscv64d/koffi.node +0 -0
  745. package/node_modules/koffi/build/koffi/linux_x64/koffi.node +0 -0
  746. package/node_modules/koffi/build/koffi/musl_arm64/koffi.node +0 -0
  747. package/node_modules/koffi/build/koffi/musl_x64/koffi.node +0 -0
  748. package/node_modules/koffi/build/koffi/openbsd_ia32/koffi.node +0 -0
  749. package/node_modules/koffi/build/koffi/openbsd_x64/koffi.node +0 -0
  750. package/node_modules/koffi/build/koffi/win32_arm64/koffi.exp +0 -0
  751. package/node_modules/koffi/build/koffi/win32_arm64/koffi.lib +0 -0
  752. package/node_modules/koffi/build/koffi/win32_arm64/koffi.node +0 -0
  753. package/node_modules/koffi/build/koffi/win32_ia32/koffi.exp +0 -0
  754. package/node_modules/koffi/build/koffi/win32_ia32/koffi.lib +0 -0
  755. package/node_modules/koffi/build/koffi/win32_ia32/koffi.node +0 -0
  756. package/node_modules/koffi/build/koffi/win32_x64/koffi.exp +0 -0
  757. package/node_modules/koffi/build/koffi/win32_x64/koffi.lib +0 -0
  758. package/node_modules/koffi/build/koffi/win32_x64/koffi.node +0 -0
  759. package/node_modules/koffi/doc/benchmarks.md +126 -0
  760. package/node_modules/koffi/doc/callbacks.md +210 -0
  761. package/node_modules/koffi/doc/contribute.md +148 -0
  762. package/node_modules/koffi/doc/functions.md +250 -0
  763. package/node_modules/koffi/doc/index.md +61 -0
  764. package/node_modules/koffi/doc/input.md +471 -0
  765. package/node_modules/koffi/doc/migration.md +159 -0
  766. package/node_modules/koffi/doc/misc.md +180 -0
  767. package/node_modules/koffi/doc/output.md +305 -0
  768. package/node_modules/koffi/doc/packaging.md +88 -0
  769. package/node_modules/koffi/doc/platforms.md +36 -0
  770. package/node_modules/koffi/doc/pointers.md +328 -0
  771. package/node_modules/koffi/doc/start.md +118 -0
  772. package/node_modules/koffi/doc/unions.md +186 -0
  773. package/node_modules/koffi/doc/variables.md +102 -0
  774. package/node_modules/koffi/index.d.ts +288 -0
  775. package/node_modules/koffi/index.js +634 -0
  776. package/node_modules/koffi/indirect.js +533 -0
  777. package/node_modules/koffi/lib/native/base/base.cc +11015 -0
  778. package/node_modules/koffi/lib/native/base/base.hh +6003 -0
  779. package/node_modules/koffi/lib/native/base/crc.inc +2214 -0
  780. package/node_modules/koffi/lib/native/base/crc_gen.py +72 -0
  781. package/node_modules/koffi/lib/native/base/mimetypes.inc +1248 -0
  782. package/node_modules/koffi/lib/native/base/mimetypes_gen.py +58 -0
  783. package/node_modules/koffi/lib/native/base/tower.cc +821 -0
  784. package/node_modules/koffi/lib/native/base/tower.hh +81 -0
  785. package/node_modules/koffi/lib/native/base/unicode.inc +408 -0
  786. package/node_modules/koffi/lib/native/base/unicode_gen.py +152 -0
  787. package/node_modules/koffi/package.json +38 -0
  788. package/node_modules/koffi/src/cnoke/LICENSE.txt +22 -0
  789. package/node_modules/koffi/src/cnoke/README.md +99 -0
  790. package/node_modules/koffi/src/cnoke/assets/FindCNoke.cmake +127 -0
  791. package/node_modules/koffi/src/cnoke/assets/toolchains.json +126 -0
  792. package/node_modules/koffi/src/cnoke/assets/win_delay_hook.c +36 -0
  793. package/node_modules/koffi/src/cnoke/cnoke.js +170 -0
  794. package/node_modules/koffi/src/cnoke/package.json +24 -0
  795. package/node_modules/koffi/src/cnoke/src/builder.js +511 -0
  796. package/node_modules/koffi/src/cnoke/src/index.js +10 -0
  797. package/node_modules/koffi/src/cnoke/src/tools.js +407 -0
  798. package/node_modules/koffi/src/koffi/CMakeLists.txt +182 -0
  799. package/node_modules/koffi/src/koffi/src/abi_arm32.cc +1018 -0
  800. package/node_modules/koffi/src/koffi/src/abi_arm32_asm.S +169 -0
  801. package/node_modules/koffi/src/koffi/src/abi_arm64.cc +1295 -0
  802. package/node_modules/koffi/src/koffi/src/abi_arm64_asm.S +195 -0
  803. package/node_modules/koffi/src/koffi/src/abi_arm64_asm.asm +174 -0
  804. package/node_modules/koffi/src/koffi/src/abi_loong64.cc +5 -0
  805. package/node_modules/koffi/src/koffi/src/abi_loong64_asm.S +204 -0
  806. package/node_modules/koffi/src/koffi/src/abi_riscv64.cc +915 -0
  807. package/node_modules/koffi/src/koffi/src/abi_riscv64_asm.S +203 -0
  808. package/node_modules/koffi/src/koffi/src/abi_x64_sysv.cc +939 -0
  809. package/node_modules/koffi/src/koffi/src/abi_x64_sysv_asm.S +231 -0
  810. package/node_modules/koffi/src/koffi/src/abi_x64_win.cc +715 -0
  811. package/node_modules/koffi/src/koffi/src/abi_x64_win_asm.S +166 -0
  812. package/node_modules/koffi/src/koffi/src/abi_x64_win_asm.asm +192 -0
  813. package/node_modules/koffi/src/koffi/src/abi_x86.cc +860 -0
  814. package/node_modules/koffi/src/koffi/src/abi_x86_asm.S +193 -0
  815. package/node_modules/koffi/src/koffi/src/abi_x86_asm.asm +177 -0
  816. package/node_modules/koffi/src/koffi/src/call.cc +1326 -0
  817. package/node_modules/koffi/src/koffi/src/call.hh +179 -0
  818. package/node_modules/koffi/src/koffi/src/errno.inc +462 -0
  819. package/node_modules/koffi/src/koffi/src/ffi.cc +2702 -0
  820. package/node_modules/koffi/src/koffi/src/ffi.hh +354 -0
  821. package/node_modules/koffi/src/koffi/src/init.js +105 -0
  822. package/node_modules/koffi/src/koffi/src/parser.cc +220 -0
  823. package/node_modules/koffi/src/koffi/src/parser.hh +54 -0
  824. package/node_modules/koffi/src/koffi/src/util.cc +1807 -0
  825. package/node_modules/koffi/src/koffi/src/util.hh +221 -0
  826. package/node_modules/koffi/src/koffi/src/uv.cc +193 -0
  827. package/node_modules/koffi/src/koffi/src/uv.def +10 -0
  828. package/node_modules/koffi/src/koffi/src/uv.hh +40 -0
  829. package/node_modules/koffi/src/koffi/src/win32.cc +198 -0
  830. package/node_modules/koffi/src/koffi/src/win32.hh +119 -0
  831. package/node_modules/koffi/src/koffi/tools/write_trampolines.js +77 -0
  832. package/node_modules/koffi/vendor/node-addon-api/LICENSE.md +9 -0
  833. package/node_modules/koffi/vendor/node-addon-api/README.md +95 -0
  834. package/node_modules/koffi/vendor/node-addon-api/napi-inl.deprecated.h +186 -0
  835. package/node_modules/koffi/vendor/node-addon-api/napi-inl.h +7033 -0
  836. package/node_modules/koffi/vendor/node-addon-api/napi.h +3309 -0
  837. package/node_modules/koffi/vendor/node-api-headers/LICENSE +21 -0
  838. package/node_modules/koffi/vendor/node-api-headers/README.md +95 -0
  839. package/node_modules/koffi/vendor/node-api-headers/def/js_native_api.def +125 -0
  840. package/node_modules/koffi/vendor/node-api-headers/def/node_api.def +157 -0
  841. package/node_modules/koffi/vendor/node-api-headers/include/js_native_api.h +591 -0
  842. package/node_modules/koffi/vendor/node-api-headers/include/js_native_api_types.h +210 -0
  843. package/node_modules/koffi/vendor/node-api-headers/include/node_api.h +265 -0
  844. package/node_modules/koffi/vendor/node-api-headers/include/node_api_types.h +58 -0
  845. package/node_modules/koffi/vendor/node-api-headers/include/uv/aix.h +32 -0
  846. package/node_modules/koffi/vendor/node-api-headers/include/uv/bsd.h +34 -0
  847. package/node_modules/koffi/vendor/node-api-headers/include/uv/darwin.h +61 -0
  848. package/node_modules/koffi/vendor/node-api-headers/include/uv/errno.h +483 -0
  849. package/node_modules/koffi/vendor/node-api-headers/include/uv/linux.h +34 -0
  850. package/node_modules/koffi/vendor/node-api-headers/include/uv/os390.h +33 -0
  851. package/node_modules/koffi/vendor/node-api-headers/include/uv/posix.h +31 -0
  852. package/node_modules/koffi/vendor/node-api-headers/include/uv/sunos.h +44 -0
  853. package/node_modules/koffi/vendor/node-api-headers/include/uv/threadpool.h +37 -0
  854. package/node_modules/koffi/vendor/node-api-headers/include/uv/tree.h +521 -0
  855. package/node_modules/koffi/vendor/node-api-headers/include/uv/unix.h +512 -0
  856. package/node_modules/koffi/vendor/node-api-headers/include/uv/version.h +43 -0
  857. package/node_modules/koffi/vendor/node-api-headers/include/uv/win.h +698 -0
  858. package/node_modules/koffi/vendor/node-api-headers/include/uv.h +1990 -0
  859. package/package.json +12 -12
  860. package/themes/forge-matrix.json +89 -0
  861. package/themes/forge-mono.json +86 -0
  862. package/node_modules/@borewit/text-codec/LICENSE.txt +0 -9
  863. package/node_modules/@borewit/text-codec/README.md +0 -87
  864. package/node_modules/@borewit/text-codec/lib/index.d.ts +0 -6
  865. package/node_modules/@borewit/text-codec/lib/index.js +0 -380
  866. package/node_modules/@borewit/text-codec/package.json +0 -70
  867. package/node_modules/@entelligentsia/pi-agent-core/README.md +0 -488
  868. package/node_modules/@entelligentsia/pi-agent-core/dist/agent-loop.d.ts +0 -24
  869. package/node_modules/@entelligentsia/pi-agent-core/dist/agent-loop.d.ts.map +0 -1
  870. package/node_modules/@entelligentsia/pi-agent-core/dist/agent-loop.js +0 -458
  871. package/node_modules/@entelligentsia/pi-agent-core/dist/agent-loop.js.map +0 -1
  872. package/node_modules/@entelligentsia/pi-agent-core/dist/agent.d.ts +0 -117
  873. package/node_modules/@entelligentsia/pi-agent-core/dist/agent.d.ts.map +0 -1
  874. package/node_modules/@entelligentsia/pi-agent-core/dist/agent.js +0 -398
  875. package/node_modules/@entelligentsia/pi-agent-core/dist/agent.js.map +0 -1
  876. package/node_modules/@entelligentsia/pi-agent-core/dist/index.d.ts +0 -5
  877. package/node_modules/@entelligentsia/pi-agent-core/dist/index.d.ts.map +0 -1
  878. package/node_modules/@entelligentsia/pi-agent-core/dist/index.js +0 -9
  879. package/node_modules/@entelligentsia/pi-agent-core/dist/index.js.map +0 -1
  880. package/node_modules/@entelligentsia/pi-agent-core/dist/proxy.d.ts +0 -69
  881. package/node_modules/@entelligentsia/pi-agent-core/dist/proxy.d.ts.map +0 -1
  882. package/node_modules/@entelligentsia/pi-agent-core/dist/proxy.js +0 -278
  883. package/node_modules/@entelligentsia/pi-agent-core/dist/proxy.js.map +0 -1
  884. package/node_modules/@entelligentsia/pi-agent-core/dist/types.d.ts +0 -369
  885. package/node_modules/@entelligentsia/pi-agent-core/dist/types.d.ts.map +0 -1
  886. package/node_modules/@entelligentsia/pi-agent-core/dist/types.js.map +0 -1
  887. package/node_modules/@entelligentsia/pi-agent-core/package.json +0 -45
  888. package/node_modules/@entelligentsia/pi-ai/README.md +0 -1313
  889. package/node_modules/@entelligentsia/pi-ai/dist/cli.d.ts.map +0 -1
  890. package/node_modules/@entelligentsia/pi-ai/dist/cli.js +0 -116
  891. package/node_modules/@entelligentsia/pi-ai/dist/cli.js.map +0 -1
  892. package/node_modules/@entelligentsia/pi-ai/dist/env-api-keys.d.ts.map +0 -1
  893. package/node_modules/@entelligentsia/pi-ai/dist/env-api-keys.js +0 -169
  894. package/node_modules/@entelligentsia/pi-ai/dist/env-api-keys.js.map +0 -1
  895. package/node_modules/@entelligentsia/pi-ai/dist/index.d.ts +0 -28
  896. package/node_modules/@entelligentsia/pi-ai/dist/index.d.ts.map +0 -1
  897. package/node_modules/@entelligentsia/pi-ai/dist/index.js +0 -16
  898. package/node_modules/@entelligentsia/pi-ai/dist/index.js.map +0 -1
  899. package/node_modules/@entelligentsia/pi-ai/dist/models.generated.d.ts +0 -17265
  900. package/node_modules/@entelligentsia/pi-ai/dist/models.generated.d.ts.map +0 -1
  901. package/node_modules/@entelligentsia/pi-ai/dist/models.generated.js +0 -16500
  902. package/node_modules/@entelligentsia/pi-ai/dist/models.generated.js.map +0 -1
  903. package/node_modules/@entelligentsia/pi-ai/dist/providers/amazon-bedrock.d.ts.map +0 -1
  904. package/node_modules/@entelligentsia/pi-ai/dist/providers/amazon-bedrock.js +0 -759
  905. package/node_modules/@entelligentsia/pi-ai/dist/providers/amazon-bedrock.js.map +0 -1
  906. package/node_modules/@entelligentsia/pi-ai/dist/providers/anthropic.d.ts.map +0 -1
  907. package/node_modules/@entelligentsia/pi-ai/dist/providers/anthropic.js +0 -951
  908. package/node_modules/@entelligentsia/pi-ai/dist/providers/anthropic.js.map +0 -1
  909. package/node_modules/@entelligentsia/pi-ai/dist/providers/openai-codex-responses.d.ts.map +0 -1
  910. package/node_modules/@entelligentsia/pi-ai/dist/providers/openai-codex-responses.js +0 -1034
  911. package/node_modules/@entelligentsia/pi-ai/dist/providers/openai-codex-responses.js.map +0 -1
  912. package/node_modules/@entelligentsia/pi-ai/dist/providers/openai-completions.d.ts.map +0 -1
  913. package/node_modules/@entelligentsia/pi-ai/dist/providers/openai-completions.js +0 -925
  914. package/node_modules/@entelligentsia/pi-ai/dist/providers/openai-completions.js.map +0 -1
  915. package/node_modules/@entelligentsia/pi-ai/dist/providers/simple-options.d.ts.map +0 -1
  916. package/node_modules/@entelligentsia/pi-ai/dist/providers/simple-options.js +0 -39
  917. package/node_modules/@entelligentsia/pi-ai/dist/providers/simple-options.js.map +0 -1
  918. package/node_modules/@entelligentsia/pi-ai/dist/types.d.ts +0 -405
  919. package/node_modules/@entelligentsia/pi-ai/dist/types.d.ts.map +0 -1
  920. package/node_modules/@entelligentsia/pi-ai/dist/types.js.map +0 -1
  921. package/node_modules/@entelligentsia/pi-ai/dist/utils/overflow.d.ts +0 -55
  922. package/node_modules/@entelligentsia/pi-ai/dist/utils/overflow.d.ts.map +0 -1
  923. package/node_modules/@entelligentsia/pi-ai/dist/utils/overflow.js +0 -146
  924. package/node_modules/@entelligentsia/pi-ai/dist/utils/overflow.js.map +0 -1
  925. package/node_modules/@entelligentsia/pi-ai/package.json +0 -108
  926. package/node_modules/@entelligentsia/pi-coding-agent/CHANGELOG.md +0 -4166
  927. package/node_modules/@entelligentsia/pi-coding-agent/README.md +0 -652
  928. package/node_modules/@entelligentsia/pi-coding-agent/dist/bun/register-bedrock.d.ts.map +0 -1
  929. package/node_modules/@entelligentsia/pi-coding-agent/dist/bun/register-bedrock.js +0 -4
  930. package/node_modules/@entelligentsia/pi-coding-agent/dist/bun/register-bedrock.js.map +0 -1
  931. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/args.d.ts +0 -53
  932. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/args.d.ts.map +0 -1
  933. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/args.js +0 -340
  934. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/args.js.map +0 -1
  935. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/config-selector.d.ts.map +0 -1
  936. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/config-selector.js +0 -31
  937. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/config-selector.js.map +0 -1
  938. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/file-processor.d.ts +0 -15
  939. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/file-processor.d.ts.map +0 -1
  940. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/file-processor.js.map +0 -1
  941. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/initial-message.d.ts +0 -18
  942. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/initial-message.d.ts.map +0 -1
  943. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/initial-message.js.map +0 -1
  944. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/list-models.d.ts.map +0 -1
  945. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/list-models.js +0 -98
  946. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/list-models.js.map +0 -1
  947. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/session-picker.d.ts.map +0 -1
  948. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/session-picker.js +0 -35
  949. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli/session-picker.js.map +0 -1
  950. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli.d.ts.map +0 -1
  951. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli.js +0 -20
  952. package/node_modules/@entelligentsia/pi-coding-agent/dist/cli.js.map +0 -1
  953. package/node_modules/@entelligentsia/pi-coding-agent/dist/config.d.ts.map +0 -1
  954. package/node_modules/@entelligentsia/pi-coding-agent/dist/config.js +0 -399
  955. package/node_modules/@entelligentsia/pi-coding-agent/dist/config.js.map +0 -1
  956. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/agent-session-services.d.ts +0 -86
  957. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/agent-session-services.d.ts.map +0 -1
  958. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/agent-session-services.js.map +0 -1
  959. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/agent-session.d.ts +0 -595
  960. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/agent-session.d.ts.map +0 -1
  961. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/agent-session.js +0 -2521
  962. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/agent-session.js.map +0 -1
  963. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/auth-storage.d.ts +0 -141
  964. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/auth-storage.d.ts.map +0 -1
  965. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/auth-storage.js +0 -441
  966. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/auth-storage.js.map +0 -1
  967. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/bash-executor.d.ts.map +0 -1
  968. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/bash-executor.js +0 -111
  969. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/bash-executor.js.map +0 -1
  970. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts +0 -88
  971. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/branch-summarization.d.ts.map +0 -1
  972. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/branch-summarization.js +0 -243
  973. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/branch-summarization.js.map +0 -1
  974. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/compaction.d.ts +0 -121
  975. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/compaction.d.ts.map +0 -1
  976. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/compaction.js +0 -615
  977. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/compaction.js.map +0 -1
  978. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/utils.d.ts +0 -38
  979. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/utils.d.ts.map +0 -1
  980. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/compaction/utils.js.map +0 -1
  981. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/defaults.d.ts +0 -3
  982. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/defaults.d.ts.map +0 -1
  983. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/defaults.js.map +0 -1
  984. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/export-html/index.d.ts +0 -37
  985. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/export-html/index.d.ts.map +0 -1
  986. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/export-html/index.js.map +0 -1
  987. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/export-html/tool-renderer.d.ts.map +0 -1
  988. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/export-html/tool-renderer.js.map +0 -1
  989. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/loader.d.ts.map +0 -1
  990. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/loader.js +0 -498
  991. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/loader.js.map +0 -1
  992. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/runner.d.ts +0 -159
  993. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/runner.d.ts.map +0 -1
  994. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/runner.js +0 -825
  995. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/runner.js.map +0 -1
  996. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/types.d.ts +0 -1187
  997. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/types.d.ts.map +0 -1
  998. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/types.js.map +0 -1
  999. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/wrapper.d.ts +0 -20
  1000. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/wrapper.d.ts.map +0 -1
  1001. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/extensions/wrapper.js.map +0 -1
  1002. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/keybindings.d.ts +0 -353
  1003. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/keybindings.d.ts.map +0 -1
  1004. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/keybindings.js +0 -295
  1005. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/keybindings.js.map +0 -1
  1006. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/messages.d.ts +0 -77
  1007. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/messages.d.ts.map +0 -1
  1008. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/messages.js.map +0 -1
  1009. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/model-registry.d.ts +0 -150
  1010. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/model-registry.d.ts.map +0 -1
  1011. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/model-registry.js +0 -727
  1012. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/model-registry.js.map +0 -1
  1013. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/model-resolver.d.ts +0 -110
  1014. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/model-resolver.d.ts.map +0 -1
  1015. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/model-resolver.js +0 -494
  1016. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/model-resolver.js.map +0 -1
  1017. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/package-manager.d.ts +0 -198
  1018. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/package-manager.d.ts.map +0 -1
  1019. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/package-manager.js +0 -1958
  1020. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/package-manager.js.map +0 -1
  1021. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/prompt-templates.d.ts.map +0 -1
  1022. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/prompt-templates.js +0 -250
  1023. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/prompt-templates.js.map +0 -1
  1024. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/provider-display-names.d.ts.map +0 -1
  1025. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/provider-display-names.js +0 -32
  1026. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/provider-display-names.js.map +0 -1
  1027. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/sdk.d.ts +0 -107
  1028. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/sdk.d.ts.map +0 -1
  1029. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/sdk.js +0 -282
  1030. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/sdk.js.map +0 -1
  1031. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/session-manager.d.ts +0 -333
  1032. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/session-manager.d.ts.map +0 -1
  1033. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/session-manager.js +0 -1109
  1034. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/session-manager.js.map +0 -1
  1035. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/settings-manager.d.ts +0 -261
  1036. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/settings-manager.d.ts.map +0 -1
  1037. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/settings-manager.js.map +0 -1
  1038. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/skills.d.ts.map +0 -1
  1039. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/skills.js +0 -404
  1040. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/skills.js.map +0 -1
  1041. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/bash.d.ts +0 -68
  1042. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/bash.d.ts.map +0 -1
  1043. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/bash.js +0 -335
  1044. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/bash.js.map +0 -1
  1045. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/edit.d.ts +0 -49
  1046. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/edit.d.ts.map +0 -1
  1047. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/edit.js +0 -324
  1048. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/edit.js.map +0 -1
  1049. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/find.d.ts +0 -35
  1050. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/find.d.ts.map +0 -1
  1051. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/find.js +0 -298
  1052. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/find.js.map +0 -1
  1053. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/grep.d.ts +0 -37
  1054. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/grep.d.ts.map +0 -1
  1055. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/grep.js +0 -304
  1056. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/grep.js.map +0 -1
  1057. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/index.d.ts +0 -40
  1058. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/index.d.ts.map +0 -1
  1059. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/index.js.map +0 -1
  1060. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/ls.d.ts +0 -37
  1061. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/ls.d.ts.map +0 -1
  1062. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/ls.js +0 -169
  1063. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/ls.js.map +0 -1
  1064. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/read.d.ts +0 -35
  1065. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/read.d.ts.map +0 -1
  1066. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/read.js +0 -289
  1067. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/read.js.map +0 -1
  1068. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/render-utils.d.ts +0 -21
  1069. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/render-utils.d.ts.map +0 -1
  1070. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/render-utils.js +0 -49
  1071. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/render-utils.js.map +0 -1
  1072. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/tool-definition-wrapper.d.ts +0 -14
  1073. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/tool-definition-wrapper.d.ts.map +0 -1
  1074. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/tool-definition-wrapper.js.map +0 -1
  1075. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/write.d.ts +0 -26
  1076. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/write.d.ts.map +0 -1
  1077. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/write.js +0 -213
  1078. package/node_modules/@entelligentsia/pi-coding-agent/dist/core/tools/write.js.map +0 -1
  1079. package/node_modules/@entelligentsia/pi-coding-agent/dist/main.d.ts.map +0 -1
  1080. package/node_modules/@entelligentsia/pi-coding-agent/dist/main.js +0 -583
  1081. package/node_modules/@entelligentsia/pi-coding-agent/dist/main.js.map +0 -1
  1082. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/armin.d.ts +0 -34
  1083. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/armin.d.ts.map +0 -1
  1084. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/armin.js.map +0 -1
  1085. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts +0 -20
  1086. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +0 -1
  1087. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +0 -121
  1088. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/assistant-message.js.map +0 -1
  1089. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts +0 -34
  1090. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +0 -1
  1091. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +0 -175
  1092. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/bash-execution.js.map +0 -1
  1093. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts +0 -16
  1094. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +0 -1
  1095. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js +0 -54
  1096. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js.map +0 -1
  1097. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +0 -16
  1098. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +0 -1
  1099. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +0 -44
  1100. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +0 -1
  1101. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +0 -16
  1102. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +0 -1
  1103. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +0 -45
  1104. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +0 -1
  1105. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts +0 -71
  1106. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +0 -1
  1107. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/config-selector.js +0 -481
  1108. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/config-selector.js.map +0 -1
  1109. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts +0 -14
  1110. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +0 -1
  1111. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js.map +0 -1
  1112. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts +0 -21
  1113. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +0 -1
  1114. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/custom-editor.js +0 -70
  1115. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/custom-editor.js.map +0 -1
  1116. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts +0 -20
  1117. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +0 -1
  1118. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/custom-message.js +0 -79
  1119. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/custom-message.js.map +0 -1
  1120. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/daxnuts.d.ts +0 -23
  1121. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/daxnuts.d.ts.map +0 -1
  1122. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/daxnuts.js.map +0 -1
  1123. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts +0 -15
  1124. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +0 -1
  1125. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js.map +0 -1
  1126. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.d.ts +0 -5
  1127. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.d.ts.map +0 -1
  1128. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.js +0 -40
  1129. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.js.map +0 -1
  1130. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts +0 -20
  1131. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +0 -1
  1132. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-editor.js +0 -111
  1133. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-editor.js.map +0 -1
  1134. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts +0 -23
  1135. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +0 -1
  1136. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-input.js +0 -61
  1137. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-input.js.map +0 -1
  1138. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-selector.d.ts +0 -24
  1139. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +0 -1
  1140. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +0 -78
  1141. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/extension-selector.js.map +0 -1
  1142. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/footer.d.ts +0 -27
  1143. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/footer.d.ts.map +0 -1
  1144. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/footer.js +0 -201
  1145. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/footer.js.map +0 -1
  1146. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts +0 -8
  1147. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +0 -1
  1148. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js +0 -22
  1149. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +0 -1
  1150. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts +0 -46
  1151. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +0 -1
  1152. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +0 -160
  1153. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/login-dialog.js.map +0 -1
  1154. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/model-selector.d.ts +0 -47
  1155. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +0 -1
  1156. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/model-selector.js +0 -278
  1157. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/model-selector.js.map +0 -1
  1158. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +0 -31
  1159. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +0 -1
  1160. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +0 -165
  1161. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js.map +0 -1
  1162. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts +0 -42
  1163. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +0 -1
  1164. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js +0 -290
  1165. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +0 -1
  1166. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +0 -1
  1167. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js +0 -155
  1168. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js.map +0 -1
  1169. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts +0 -96
  1170. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +0 -1
  1171. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/session-selector.js +0 -861
  1172. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/session-selector.js.map +0 -1
  1173. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts +0 -67
  1174. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +0 -1
  1175. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +0 -373
  1176. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/settings-selector.js.map +0 -1
  1177. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/show-images-selector.d.ts +0 -10
  1178. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/show-images-selector.d.ts.map +0 -1
  1179. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js +0 -39
  1180. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js.map +0 -1
  1181. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +0 -17
  1182. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +0 -1
  1183. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +0 -47
  1184. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +0 -1
  1185. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/theme-selector.d.ts +0 -11
  1186. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +0 -1
  1187. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/theme-selector.js +0 -50
  1188. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/theme-selector.js.map +0 -1
  1189. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/thinking-selector.d.ts +0 -11
  1190. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +0 -1
  1191. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js +0 -51
  1192. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js.map +0 -1
  1193. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts +0 -63
  1194. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +0 -1
  1195. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +0 -295
  1196. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/tool-execution.js.map +0 -1
  1197. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts +0 -89
  1198. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +0 -1
  1199. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +0 -1092
  1200. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/tree-selector.js.map +0 -1
  1201. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/user-message-selector.d.ts +0 -30
  1202. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +0 -1
  1203. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js +0 -114
  1204. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js.map +0 -1
  1205. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts +0 -10
  1206. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/user-message.d.ts.map +0 -1
  1207. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/user-message.js +0 -29
  1208. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/user-message.js.map +0 -1
  1209. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/visual-truncate.d.ts.map +0 -1
  1210. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js +0 -33
  1211. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js.map +0 -1
  1212. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts +0 -374
  1213. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +0 -1
  1214. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/interactive-mode.js +0 -4625
  1215. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/interactive-mode.js.map +0 -1
  1216. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/theme/dark.json +0 -85
  1217. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/theme/light.json +0 -84
  1218. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts +0 -81
  1219. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/theme/theme.d.ts.map +0 -1
  1220. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/theme/theme.js +0 -971
  1221. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/interactive/theme/theme.js.map +0 -1
  1222. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/print-mode.d.ts +0 -28
  1223. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/print-mode.d.ts.map +0 -1
  1224. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/print-mode.js.map +0 -1
  1225. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts +0 -224
  1226. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts.map +0 -1
  1227. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/rpc/rpc-client.js.map +0 -1
  1228. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +0 -1
  1229. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/rpc/rpc-mode.js +0 -604
  1230. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/rpc/rpc-mode.js.map +0 -1
  1231. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts +0 -419
  1232. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/rpc/rpc-types.d.ts.map +0 -1
  1233. package/node_modules/@entelligentsia/pi-coding-agent/dist/modes/rpc/rpc-types.js.map +0 -1
  1234. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/image-resize.d.ts +0 -36
  1235. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/image-resize.d.ts.map +0 -1
  1236. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/image-resize.js.map +0 -1
  1237. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/mime.d.ts +0 -2
  1238. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/mime.d.ts.map +0 -1
  1239. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/mime.js +0 -26
  1240. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/mime.js.map +0 -1
  1241. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/tools-manager.d.ts.map +0 -1
  1242. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/tools-manager.js +0 -256
  1243. package/node_modules/@entelligentsia/pi-coding-agent/dist/utils/tools-manager.js.map +0 -1
  1244. package/node_modules/@entelligentsia/pi-coding-agent/docs/compaction.md +0 -394
  1245. package/node_modules/@entelligentsia/pi-coding-agent/docs/custom-provider.md +0 -646
  1246. package/node_modules/@entelligentsia/pi-coding-agent/docs/extensions.md +0 -2596
  1247. package/node_modules/@entelligentsia/pi-coding-agent/docs/index.md +0 -70
  1248. package/node_modules/@entelligentsia/pi-coding-agent/docs/models.md +0 -474
  1249. package/node_modules/@entelligentsia/pi-coding-agent/docs/packages.md +0 -223
  1250. package/node_modules/@entelligentsia/pi-coding-agent/docs/providers.md +0 -241
  1251. package/node_modules/@entelligentsia/pi-coding-agent/docs/quickstart.md +0 -142
  1252. package/node_modules/@entelligentsia/pi-coding-agent/docs/rpc.md +0 -1407
  1253. package/node_modules/@entelligentsia/pi-coding-agent/docs/sdk.md +0 -1149
  1254. package/node_modules/@entelligentsia/pi-coding-agent/docs/session-format.md +0 -412
  1255. package/node_modules/@entelligentsia/pi-coding-agent/docs/skills.md +0 -232
  1256. package/node_modules/@entelligentsia/pi-coding-agent/docs/termux.md +0 -127
  1257. package/node_modules/@entelligentsia/pi-coding-agent/docs/themes.md +0 -295
  1258. package/node_modules/@entelligentsia/pi-coding-agent/docs/tui.md +0 -918
  1259. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/README.md +0 -208
  1260. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/auto-commit-on-exit.ts +0 -49
  1261. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/bash-spawn-hook.ts +0 -30
  1262. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/bookmark.ts +0 -50
  1263. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/border-status-editor.ts +0 -150
  1264. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/built-in-tool-renderer.ts +0 -249
  1265. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/claude-rules.ts +0 -86
  1266. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/commands.ts +0 -72
  1267. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/confirm-destructive.ts +0 -59
  1268. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/custom-compaction.ts +0 -127
  1269. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/custom-footer.ts +0 -64
  1270. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/custom-header.ts +0 -73
  1271. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/custom-provider-anthropic/index.ts +0 -604
  1272. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/custom-provider-anthropic/package-lock.json +0 -24
  1273. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +0 -19
  1274. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/index.ts +0 -349
  1275. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +0 -16
  1276. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/test.ts +0 -82
  1277. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/dirty-repo-guard.ts +0 -56
  1278. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/doom-overlay/doom-component.ts +0 -132
  1279. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/doom-overlay/doom-keys.ts +0 -104
  1280. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/doom-overlay/index.ts +0 -74
  1281. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/dynamic-resources/dynamic.json +0 -79
  1282. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/dynamic-resources/index.ts +0 -15
  1283. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/dynamic-tools.ts +0 -74
  1284. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/event-bus.ts +0 -43
  1285. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/file-trigger.ts +0 -41
  1286. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/git-checkpoint.ts +0 -53
  1287. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/github-issue-autocomplete.ts +0 -185
  1288. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/handoff.ts +0 -191
  1289. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/hello.ts +0 -26
  1290. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/hidden-thinking-label.ts +0 -53
  1291. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/inline-bash.ts +0 -94
  1292. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/input-transform.ts +0 -43
  1293. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/interactive-shell.ts +0 -196
  1294. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/mac-system-theme.ts +0 -47
  1295. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/message-renderer.ts +0 -59
  1296. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/minimal-mode.ts +0 -426
  1297. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/modal-editor.ts +0 -85
  1298. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/model-status.ts +0 -31
  1299. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/notify.ts +0 -55
  1300. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/overlay-qa-tests.ts +0 -1348
  1301. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/overlay-test.ts +0 -150
  1302. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/permission-gate.ts +0 -34
  1303. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/pirate.ts +0 -47
  1304. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/plan-mode/index.ts +0 -340
  1305. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/preset.ts +0 -430
  1306. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/prompt-customizer.ts +0 -97
  1307. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/protected-paths.ts +0 -30
  1308. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/provider-payload.ts +0 -18
  1309. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/qna.ts +0 -122
  1310. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/question.ts +0 -264
  1311. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/questionnaire.ts +0 -427
  1312. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/rainbow-editor.ts +0 -88
  1313. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/reload-runtime.ts +0 -37
  1314. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/rpc-demo.ts +0 -118
  1315. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/sandbox/index.ts +0 -321
  1316. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/sandbox/package-lock.json +0 -92
  1317. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/sandbox/package.json +0 -19
  1318. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/send-user-message.ts +0 -97
  1319. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/session-name.ts +0 -27
  1320. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/shutdown-command.ts +0 -63
  1321. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/snake.ts +0 -343
  1322. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/space-invaders.ts +0 -560
  1323. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/ssh.ts +0 -220
  1324. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/status-line.ts +0 -32
  1325. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/structured-output.ts +0 -65
  1326. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/subagent/agents.ts +0 -126
  1327. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/subagent/index.ts +0 -987
  1328. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/summarize.ts +0 -206
  1329. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/system-prompt-header.ts +0 -17
  1330. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/tic-tac-toe.ts +0 -1008
  1331. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/timed-confirm.ts +0 -70
  1332. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/titlebar-spinner.ts +0 -58
  1333. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/todo.ts +0 -297
  1334. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/tool-override.ts +0 -144
  1335. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/tools.ts +0 -141
  1336. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/trigger-compact.ts +0 -50
  1337. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/truncated-tool.ts +0 -195
  1338. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/widget-placement.ts +0 -9
  1339. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/with-deps/index.ts +0 -32
  1340. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/with-deps/package-lock.json +0 -31
  1341. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/with-deps/package.json +0 -22
  1342. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/working-indicator.ts +0 -123
  1343. package/node_modules/@entelligentsia/pi-coding-agent/examples/extensions/working-message-test.ts +0 -25
  1344. package/node_modules/@entelligentsia/pi-coding-agent/examples/rpc-extension-ui.ts +0 -632
  1345. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/01-minimal.ts +0 -22
  1346. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/02-custom-model.ts +0 -49
  1347. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/03-custom-prompt.ts +0 -67
  1348. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/04-skills.ts +0 -55
  1349. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/05-tools.ts +0 -44
  1350. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/06-extensions.ts +0 -95
  1351. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/07-context-files.ts +0 -47
  1352. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/08-prompt-templates.ts +0 -51
  1353. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/09-api-keys-and-oauth.ts +0 -48
  1354. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/10-settings.ts +0 -53
  1355. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/11-sessions.ts +0 -48
  1356. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/12-full-control.ts +0 -73
  1357. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/13-session-runtime.ts +0 -67
  1358. package/node_modules/@entelligentsia/pi-coding-agent/examples/sdk/README.md +0 -147
  1359. package/node_modules/@entelligentsia/pi-coding-agent/package.json +0 -97
  1360. package/node_modules/@entelligentsia/pi-tui/README.md +0 -779
  1361. package/node_modules/@entelligentsia/pi-tui/dist/components/image.d.ts.map +0 -1
  1362. package/node_modules/@entelligentsia/pi-tui/dist/components/image.js +0 -76
  1363. package/node_modules/@entelligentsia/pi-tui/dist/components/image.js.map +0 -1
  1364. package/node_modules/@entelligentsia/pi-tui/dist/components/markdown.d.ts +0 -95
  1365. package/node_modules/@entelligentsia/pi-tui/dist/components/markdown.d.ts.map +0 -1
  1366. package/node_modules/@entelligentsia/pi-tui/dist/components/markdown.js +0 -688
  1367. package/node_modules/@entelligentsia/pi-tui/dist/components/markdown.js.map +0 -1
  1368. package/node_modules/@entelligentsia/pi-tui/dist/stdin-buffer.d.ts.map +0 -1
  1369. package/node_modules/@entelligentsia/pi-tui/dist/stdin-buffer.js +0 -339
  1370. package/node_modules/@entelligentsia/pi-tui/dist/stdin-buffer.js.map +0 -1
  1371. package/node_modules/@entelligentsia/pi-tui/dist/terminal-image.d.ts +0 -85
  1372. package/node_modules/@entelligentsia/pi-tui/dist/terminal-image.d.ts.map +0 -1
  1373. package/node_modules/@entelligentsia/pi-tui/dist/terminal-image.js +0 -324
  1374. package/node_modules/@entelligentsia/pi-tui/dist/terminal-image.js.map +0 -1
  1375. package/node_modules/@entelligentsia/pi-tui/package.json +0 -49
  1376. package/node_modules/@tokenizer/inflate/LICENSE +0 -15
  1377. package/node_modules/@tokenizer/inflate/README.md +0 -114
  1378. package/node_modules/@tokenizer/inflate/lib/GzipHandler.d.ts +0 -6
  1379. package/node_modules/@tokenizer/inflate/lib/GzipHandler.js +0 -19
  1380. package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +0 -26
  1381. package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +0 -233
  1382. package/node_modules/@tokenizer/inflate/lib/ZipToken.d.ts +0 -94
  1383. package/node_modules/@tokenizer/inflate/lib/ZipToken.js +0 -117
  1384. package/node_modules/@tokenizer/inflate/lib/index.d.ts +0 -3
  1385. package/node_modules/@tokenizer/inflate/lib/index.js +0 -2
  1386. package/node_modules/@tokenizer/inflate/package.json +0 -76
  1387. package/node_modules/@tokenizer/token/README.md +0 -19
  1388. package/node_modules/@tokenizer/token/index.d.ts +0 -30
  1389. package/node_modules/@tokenizer/token/package.json +0 -33
  1390. package/node_modules/@tootallnate/quickjs-emscripten/LICENSE +0 -21
  1391. package/node_modules/@tootallnate/quickjs-emscripten/README.md +0 -597
  1392. package/node_modules/@tootallnate/quickjs-emscripten/c/interface.c +0 -819
  1393. package/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.d.ts +0 -24
  1394. package/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js +0 -53
  1395. package/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js.map +0 -1
  1396. package/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.d.ts +0 -48
  1397. package/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js +0 -58
  1398. package/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js.map +0 -1
  1399. package/node_modules/@tootallnate/quickjs-emscripten/dist/context.d.ts +0 -371
  1400. package/node_modules/@tootallnate/quickjs-emscripten/dist/context.js +0 -691
  1401. package/node_modules/@tootallnate/quickjs-emscripten/dist/context.js.map +0 -1
  1402. package/node_modules/@tootallnate/quickjs-emscripten/dist/debug.d.ts +0 -5
  1403. package/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js +0 -6
  1404. package/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js.map +0 -1
  1405. package/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.d.ts +0 -75
  1406. package/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js +0 -96
  1407. package/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js.map +0 -1
  1408. package/node_modules/@tootallnate/quickjs-emscripten/dist/emscripten-types.d.ts +0 -97
  1409. package/node_modules/@tootallnate/quickjs-emscripten/dist/emscripten-types.js +0 -15
  1410. package/node_modules/@tootallnate/quickjs-emscripten/dist/emscripten-types.js.map +0 -1
  1411. package/node_modules/@tootallnate/quickjs-emscripten/dist/errors.d.ts +0 -28
  1412. package/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js +0 -58
  1413. package/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js.map +0 -1
  1414. package/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.d.ts +0 -9
  1415. package/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js +0 -19
  1416. package/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js.map +0 -1
  1417. package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.d.ts +0 -5
  1418. package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js +0 -387
  1419. package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js.map +0 -1
  1420. package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.d.ts +0 -67
  1421. package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js +0 -71
  1422. package/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js.map +0 -1
  1423. package/node_modules/@tootallnate/quickjs-emscripten/dist/index.d.ts +0 -75
  1424. package/node_modules/@tootallnate/quickjs-emscripten/dist/index.js +0 -128
  1425. package/node_modules/@tootallnate/quickjs-emscripten/dist/index.js.map +0 -1
  1426. package/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.d.ts +0 -115
  1427. package/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js +0 -227
  1428. package/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js.map +0 -1
  1429. package/node_modules/@tootallnate/quickjs-emscripten/dist/memory.d.ts +0 -18
  1430. package/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js +0 -41
  1431. package/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js.map +0 -1
  1432. package/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.d.ts +0 -53
  1433. package/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js +0 -97
  1434. package/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js.map +0 -1
  1435. package/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.d.ts +0 -27
  1436. package/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js +0 -77
  1437. package/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js.map +0 -1
  1438. package/node_modules/@tootallnate/quickjs-emscripten/dist/module.d.ts +0 -152
  1439. package/node_modules/@tootallnate/quickjs-emscripten/dist/module.js +0 -302
  1440. package/node_modules/@tootallnate/quickjs-emscripten/dist/module.js.map +0 -1
  1441. package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.d.ts +0 -38
  1442. package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js +0 -49
  1443. package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js.map +0 -1
  1444. package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.d.ts +0 -174
  1445. package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js +0 -300
  1446. package/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js.map +0 -1
  1447. package/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.d.ts +0 -114
  1448. package/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js +0 -38
  1449. package/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js.map +0 -1
  1450. package/node_modules/@tootallnate/quickjs-emscripten/dist/types.d.ts +0 -158
  1451. package/node_modules/@tootallnate/quickjs-emscripten/dist/types.js +0 -58
  1452. package/node_modules/@tootallnate/quickjs-emscripten/dist/types.js.map +0 -1
  1453. package/node_modules/@tootallnate/quickjs-emscripten/dist/variants.d.ts +0 -113
  1454. package/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js +0 -169
  1455. package/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js.map +0 -1
  1456. package/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.d.ts +0 -68
  1457. package/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js +0 -12
  1458. package/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js.map +0 -1
  1459. package/node_modules/@tootallnate/quickjs-emscripten/package.json +0 -60
  1460. package/node_modules/@types/mime-types/LICENSE +0 -21
  1461. package/node_modules/@types/mime-types/README.md +0 -28
  1462. package/node_modules/@types/mime-types/index.d.ts +0 -9
  1463. package/node_modules/@types/mime-types/package.json +0 -25
  1464. package/node_modules/@types/yauzl/LICENSE +0 -21
  1465. package/node_modules/@types/yauzl/README.md +0 -15
  1466. package/node_modules/@types/yauzl/index.d.ts +0 -110
  1467. package/node_modules/@types/yauzl/package.json +0 -27
  1468. package/node_modules/ansi-regex/index.d.ts +0 -33
  1469. package/node_modules/ansi-regex/index.js +0 -14
  1470. package/node_modules/ansi-regex/license +0 -9
  1471. package/node_modules/ansi-regex/package.json +0 -61
  1472. package/node_modules/ansi-regex/readme.md +0 -66
  1473. package/node_modules/ansi-styles/index.d.ts +0 -345
  1474. package/node_modules/ansi-styles/index.js +0 -163
  1475. package/node_modules/ansi-styles/license +0 -9
  1476. package/node_modules/ansi-styles/package.json +0 -56
  1477. package/node_modules/ansi-styles/readme.md +0 -152
  1478. package/node_modules/any-promise/.jshintrc +0 -4
  1479. package/node_modules/any-promise/.npmignore +0 -7
  1480. package/node_modules/any-promise/LICENSE +0 -19
  1481. package/node_modules/any-promise/README.md +0 -161
  1482. package/node_modules/any-promise/implementation.d.ts +0 -3
  1483. package/node_modules/any-promise/implementation.js +0 -1
  1484. package/node_modules/any-promise/index.d.ts +0 -73
  1485. package/node_modules/any-promise/index.js +0 -1
  1486. package/node_modules/any-promise/loader.js +0 -78
  1487. package/node_modules/any-promise/optional.js +0 -6
  1488. package/node_modules/any-promise/package.json +0 -45
  1489. package/node_modules/any-promise/register/bluebird.d.ts +0 -1
  1490. package/node_modules/any-promise/register/bluebird.js +0 -2
  1491. package/node_modules/any-promise/register/es6-promise.d.ts +0 -1
  1492. package/node_modules/any-promise/register/es6-promise.js +0 -2
  1493. package/node_modules/any-promise/register/lie.d.ts +0 -1
  1494. package/node_modules/any-promise/register/lie.js +0 -2
  1495. package/node_modules/any-promise/register/native-promise-only.d.ts +0 -1
  1496. package/node_modules/any-promise/register/native-promise-only.js +0 -2
  1497. package/node_modules/any-promise/register/pinkie.d.ts +0 -1
  1498. package/node_modules/any-promise/register/pinkie.js +0 -2
  1499. package/node_modules/any-promise/register/promise.d.ts +0 -1
  1500. package/node_modules/any-promise/register/promise.js +0 -2
  1501. package/node_modules/any-promise/register/q.d.ts +0 -1
  1502. package/node_modules/any-promise/register/q.js +0 -2
  1503. package/node_modules/any-promise/register/rsvp.d.ts +0 -1
  1504. package/node_modules/any-promise/register/rsvp.js +0 -2
  1505. package/node_modules/any-promise/register/vow.d.ts +0 -1
  1506. package/node_modules/any-promise/register/vow.js +0 -2
  1507. package/node_modules/any-promise/register/when.d.ts +0 -1
  1508. package/node_modules/any-promise/register/when.js +0 -2
  1509. package/node_modules/any-promise/register-shim.js +0 -18
  1510. package/node_modules/any-promise/register.d.ts +0 -17
  1511. package/node_modules/any-promise/register.js +0 -94
  1512. package/node_modules/argparse/CHANGELOG.md +0 -216
  1513. package/node_modules/ast-types/.github/dependabot.yml +0 -9
  1514. package/node_modules/ast-types/.github/workflows/main.yml +0 -29
  1515. package/node_modules/ast-types/LICENSE +0 -20
  1516. package/node_modules/ast-types/README.md +0 -512
  1517. package/node_modules/ast-types/def/babel-core.d.ts +0 -2
  1518. package/node_modules/ast-types/def/babel-core.js +0 -256
  1519. package/node_modules/ast-types/def/babel.d.ts +0 -2
  1520. package/node_modules/ast-types/def/babel.js +0 -11
  1521. package/node_modules/ast-types/def/core.d.ts +0 -2
  1522. package/node_modules/ast-types/def/core.js +0 -298
  1523. package/node_modules/ast-types/def/es-proposals.d.ts +0 -2
  1524. package/node_modules/ast-types/def/es-proposals.js +0 -33
  1525. package/node_modules/ast-types/def/es2020.d.ts +0 -2
  1526. package/node_modules/ast-types/def/es2020.js +0 -16
  1527. package/node_modules/ast-types/def/es6.d.ts +0 -2
  1528. package/node_modules/ast-types/def/es6.js +0 -210
  1529. package/node_modules/ast-types/def/es7.d.ts +0 -2
  1530. package/node_modules/ast-types/def/es7.js +0 -34
  1531. package/node_modules/ast-types/def/esprima.d.ts +0 -2
  1532. package/node_modules/ast-types/def/esprima.js +0 -49
  1533. package/node_modules/ast-types/def/flow.d.ts +0 -2
  1534. package/node_modules/ast-types/def/flow.js +0 -292
  1535. package/node_modules/ast-types/def/jsx.d.ts +0 -2
  1536. package/node_modules/ast-types/def/jsx.js +0 -103
  1537. package/node_modules/ast-types/def/type-annotations.d.ts +0 -7
  1538. package/node_modules/ast-types/def/type-annotations.js +0 -40
  1539. package/node_modules/ast-types/def/typescript.d.ts +0 -2
  1540. package/node_modules/ast-types/def/typescript.js +0 -344
  1541. package/node_modules/ast-types/fork.d.ts +0 -42
  1542. package/node_modules/ast-types/fork.js +0 -52
  1543. package/node_modules/ast-types/gen/builders.d.ts +0 -2584
  1544. package/node_modules/ast-types/gen/builders.js +0 -2
  1545. package/node_modules/ast-types/gen/kinds.d.ts +0 -264
  1546. package/node_modules/ast-types/gen/kinds.js +0 -2
  1547. package/node_modules/ast-types/gen/namedTypes.d.ts +0 -1809
  1548. package/node_modules/ast-types/gen/namedTypes.js +0 -6
  1549. package/node_modules/ast-types/gen/visitor.d.ts +0 -268
  1550. package/node_modules/ast-types/gen/visitor.js +0 -2
  1551. package/node_modules/ast-types/lib/equiv.d.ts +0 -5
  1552. package/node_modules/ast-types/lib/equiv.js +0 -154
  1553. package/node_modules/ast-types/lib/node-path.d.ts +0 -22
  1554. package/node_modules/ast-types/lib/node-path.js +0 -411
  1555. package/node_modules/ast-types/lib/path-visitor.d.ts +0 -52
  1556. package/node_modules/ast-types/lib/path-visitor.js +0 -343
  1557. package/node_modules/ast-types/lib/path.d.ts +0 -25
  1558. package/node_modules/ast-types/lib/path.js +0 -331
  1559. package/node_modules/ast-types/lib/scope.d.ts +0 -26
  1560. package/node_modules/ast-types/lib/scope.js +0 -318
  1561. package/node_modules/ast-types/lib/shared.d.ts +0 -13
  1562. package/node_modules/ast-types/lib/shared.js +0 -47
  1563. package/node_modules/ast-types/lib/types.d.ts +0 -136
  1564. package/node_modules/ast-types/lib/types.js +0 -780
  1565. package/node_modules/ast-types/main.d.ts +0 -28
  1566. package/node_modules/ast-types/main.js +0 -53
  1567. package/node_modules/ast-types/package.json +0 -65
  1568. package/node_modules/ast-types/tsconfig.json +0 -21
  1569. package/node_modules/ast-types/types.d.ts +0 -6
  1570. package/node_modules/ast-types/types.js +0 -2
  1571. package/node_modules/basic-ftp/LICENSE.txt +0 -19
  1572. package/node_modules/basic-ftp/README.md +0 -244
  1573. package/node_modules/basic-ftp/dist/Client.d.ts +0 -340
  1574. package/node_modules/basic-ftp/dist/Client.js +0 -785
  1575. package/node_modules/basic-ftp/dist/FileInfo.d.ts +0 -80
  1576. package/node_modules/basic-ftp/dist/FileInfo.js +0 -92
  1577. package/node_modules/basic-ftp/dist/FtpContext.d.ts +0 -175
  1578. package/node_modules/basic-ftp/dist/FtpContext.js +0 -375
  1579. package/node_modules/basic-ftp/dist/ProgressTracker.d.ts +0 -45
  1580. package/node_modules/basic-ftp/dist/ProgressTracker.js +0 -72
  1581. package/node_modules/basic-ftp/dist/StringEncoding.d.ts +0 -1
  1582. package/node_modules/basic-ftp/dist/StringEncoding.js +0 -2
  1583. package/node_modules/basic-ftp/dist/StringWriter.d.ts +0 -10
  1584. package/node_modules/basic-ftp/dist/StringWriter.js +0 -29
  1585. package/node_modules/basic-ftp/dist/index.d.ts +0 -9
  1586. package/node_modules/basic-ftp/dist/index.js +0 -28
  1587. package/node_modules/basic-ftp/dist/netUtils.d.ts +0 -21
  1588. package/node_modules/basic-ftp/dist/netUtils.js +0 -66
  1589. package/node_modules/basic-ftp/dist/parseControlResponse.d.ts +0 -22
  1590. package/node_modules/basic-ftp/dist/parseControlResponse.js +0 -66
  1591. package/node_modules/basic-ftp/dist/parseList.d.ts +0 -5
  1592. package/node_modules/basic-ftp/dist/parseList.js +0 -79
  1593. package/node_modules/basic-ftp/dist/parseListDOS.d.ts +0 -12
  1594. package/node_modules/basic-ftp/dist/parseListDOS.js +0 -52
  1595. package/node_modules/basic-ftp/dist/parseListMLSD.d.ts +0 -20
  1596. package/node_modules/basic-ftp/dist/parseListMLSD.js +0 -187
  1597. package/node_modules/basic-ftp/dist/parseListUnix.d.ts +0 -12
  1598. package/node_modules/basic-ftp/dist/parseListUnix.js +0 -155
  1599. package/node_modules/basic-ftp/dist/transfer.d.ts +0 -39
  1600. package/node_modules/basic-ftp/dist/transfer.js +0 -318
  1601. package/node_modules/basic-ftp/package.json +0 -52
  1602. package/node_modules/buffer-crc32/LICENSE +0 -19
  1603. package/node_modules/buffer-crc32/README.md +0 -47
  1604. package/node_modules/buffer-crc32/index.js +0 -111
  1605. package/node_modules/buffer-crc32/package.json +0 -39
  1606. package/node_modules/cli-highlight/LICENSE.txt +0 -15
  1607. package/node_modules/cli-highlight/README.md +0 -88
  1608. package/node_modules/cli-highlight/bin/highlight +0 -2
  1609. package/node_modules/cli-highlight/dist/cli.d.ts +0 -1
  1610. package/node_modules/cli-highlight/dist/cli.js +0 -102
  1611. package/node_modules/cli-highlight/dist/cli.js.map +0 -1
  1612. package/node_modules/cli-highlight/dist/index.d.ts +0 -53
  1613. package/node_modules/cli-highlight/dist/index.js +0 -112
  1614. package/node_modules/cli-highlight/dist/index.js.map +0 -1
  1615. package/node_modules/cli-highlight/dist/test/test.d.ts +0 -1
  1616. package/node_modules/cli-highlight/dist/test/test.js +0 -62
  1617. package/node_modules/cli-highlight/dist/test/test.js.map +0 -1
  1618. package/node_modules/cli-highlight/dist/theme.d.ts +0 -270
  1619. package/node_modules/cli-highlight/dist/theme.js +0 -265
  1620. package/node_modules/cli-highlight/dist/theme.js.map +0 -1
  1621. package/node_modules/cli-highlight/node_modules/chalk/index.d.ts +0 -415
  1622. package/node_modules/cli-highlight/node_modules/chalk/license +0 -9
  1623. package/node_modules/cli-highlight/node_modules/chalk/package.json +0 -68
  1624. package/node_modules/cli-highlight/node_modules/chalk/readme.md +0 -341
  1625. package/node_modules/cli-highlight/node_modules/chalk/source/index.js +0 -229
  1626. package/node_modules/cli-highlight/node_modules/chalk/source/templates.js +0 -134
  1627. package/node_modules/cli-highlight/node_modules/chalk/source/util.js +0 -39
  1628. package/node_modules/cli-highlight/package.json +0 -129
  1629. package/node_modules/cliui/CHANGELOG.md +0 -121
  1630. package/node_modules/cliui/LICENSE.txt +0 -14
  1631. package/node_modules/cliui/README.md +0 -141
  1632. package/node_modules/cliui/build/index.cjs +0 -302
  1633. package/node_modules/cliui/build/lib/index.js +0 -287
  1634. package/node_modules/cliui/build/lib/string-utils.js +0 -27
  1635. package/node_modules/cliui/index.mjs +0 -13
  1636. package/node_modules/cliui/node_modules/ansi-regex/index.d.ts +0 -37
  1637. package/node_modules/cliui/node_modules/ansi-regex/index.js +0 -10
  1638. package/node_modules/cliui/node_modules/ansi-regex/license +0 -9
  1639. package/node_modules/cliui/node_modules/ansi-regex/package.json +0 -55
  1640. package/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
  1641. package/node_modules/cliui/node_modules/strip-ansi/index.d.ts +0 -17
  1642. package/node_modules/cliui/node_modules/strip-ansi/index.js +0 -4
  1643. package/node_modules/cliui/node_modules/strip-ansi/license +0 -9
  1644. package/node_modules/cliui/node_modules/strip-ansi/package.json +0 -54
  1645. package/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
  1646. package/node_modules/cliui/package.json +0 -83
  1647. package/node_modules/color-convert/CHANGELOG.md +0 -54
  1648. package/node_modules/color-convert/LICENSE +0 -21
  1649. package/node_modules/color-convert/README.md +0 -68
  1650. package/node_modules/color-convert/conversions.js +0 -839
  1651. package/node_modules/color-convert/index.js +0 -81
  1652. package/node_modules/color-convert/package.json +0 -48
  1653. package/node_modules/color-convert/route.js +0 -97
  1654. package/node_modules/color-name/LICENSE +0 -8
  1655. package/node_modules/color-name/README.md +0 -11
  1656. package/node_modules/color-name/index.js +0 -152
  1657. package/node_modules/color-name/package.json +0 -28
  1658. package/node_modules/degenerator/README.md +0 -117
  1659. package/node_modules/degenerator/dist/compile.d.ts +0 -11
  1660. package/node_modules/degenerator/dist/compile.d.ts.map +0 -1
  1661. package/node_modules/degenerator/dist/compile.js +0 -107
  1662. package/node_modules/degenerator/dist/compile.js.map +0 -1
  1663. package/node_modules/degenerator/dist/degenerator.d.ts +0 -12
  1664. package/node_modules/degenerator/dist/degenerator.d.ts.map +0 -1
  1665. package/node_modules/degenerator/dist/degenerator.js +0 -156
  1666. package/node_modules/degenerator/dist/degenerator.js.map +0 -1
  1667. package/node_modules/degenerator/dist/index.d.ts +0 -3
  1668. package/node_modules/degenerator/dist/index.d.ts.map +0 -1
  1669. package/node_modules/degenerator/dist/index.js +0 -19
  1670. package/node_modules/degenerator/dist/index.js.map +0 -1
  1671. package/node_modules/degenerator/package.json +0 -42
  1672. package/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  1673. package/node_modules/emoji-regex/README.md +0 -73
  1674. package/node_modules/emoji-regex/es2015/index.js +0 -6
  1675. package/node_modules/emoji-regex/es2015/text.js +0 -6
  1676. package/node_modules/emoji-regex/index.d.ts +0 -23
  1677. package/node_modules/emoji-regex/index.js +0 -6
  1678. package/node_modules/emoji-regex/package.json +0 -50
  1679. package/node_modules/emoji-regex/text.js +0 -6
  1680. package/node_modules/end-of-stream/LICENSE +0 -21
  1681. package/node_modules/end-of-stream/README.md +0 -54
  1682. package/node_modules/end-of-stream/index.js +0 -96
  1683. package/node_modules/end-of-stream/package.json +0 -37
  1684. package/node_modules/escalade/dist/index.js +0 -22
  1685. package/node_modules/escalade/dist/index.mjs +0 -22
  1686. package/node_modules/escalade/index.d.mts +0 -11
  1687. package/node_modules/escalade/index.d.ts +0 -15
  1688. package/node_modules/escalade/license +0 -9
  1689. package/node_modules/escalade/package.json +0 -74
  1690. package/node_modules/escalade/readme.md +0 -211
  1691. package/node_modules/escalade/sync/index.d.mts +0 -9
  1692. package/node_modules/escalade/sync/index.d.ts +0 -13
  1693. package/node_modules/escalade/sync/index.js +0 -18
  1694. package/node_modules/escalade/sync/index.mjs +0 -18
  1695. package/node_modules/escodegen/LICENSE.BSD +0 -21
  1696. package/node_modules/escodegen/README.md +0 -84
  1697. package/node_modules/escodegen/bin/escodegen.js +0 -77
  1698. package/node_modules/escodegen/bin/esgenerate.js +0 -64
  1699. package/node_modules/escodegen/escodegen.js +0 -2667
  1700. package/node_modules/escodegen/package.json +0 -63
  1701. package/node_modules/esprima/ChangeLog +0 -235
  1702. package/node_modules/esprima/LICENSE.BSD +0 -21
  1703. package/node_modules/esprima/README.md +0 -46
  1704. package/node_modules/esprima/bin/esparse.js +0 -139
  1705. package/node_modules/esprima/bin/esvalidate.js +0 -236
  1706. package/node_modules/esprima/dist/esprima.js +0 -6709
  1707. package/node_modules/esprima/package.json +0 -112
  1708. package/node_modules/estraverse/.jshintrc +0 -16
  1709. package/node_modules/estraverse/LICENSE.BSD +0 -19
  1710. package/node_modules/estraverse/README.md +0 -153
  1711. package/node_modules/estraverse/estraverse.js +0 -805
  1712. package/node_modules/estraverse/gulpfile.js +0 -70
  1713. package/node_modules/estraverse/package.json +0 -40
  1714. package/node_modules/esutils/LICENSE.BSD +0 -19
  1715. package/node_modules/esutils/README.md +0 -174
  1716. package/node_modules/esutils/lib/ast.js +0 -144
  1717. package/node_modules/esutils/lib/code.js +0 -135
  1718. package/node_modules/esutils/lib/keyword.js +0 -165
  1719. package/node_modules/esutils/lib/utils.js +0 -33
  1720. package/node_modules/esutils/package.json +0 -44
  1721. package/node_modules/extract-zip/LICENSE +0 -23
  1722. package/node_modules/extract-zip/cli.js +0 -19
  1723. package/node_modules/extract-zip/index.d.ts +0 -21
  1724. package/node_modules/extract-zip/index.js +0 -173
  1725. package/node_modules/extract-zip/package.json +0 -80
  1726. package/node_modules/extract-zip/readme.md +0 -57
  1727. package/node_modules/fd-slicer/.npmignore +0 -2
  1728. package/node_modules/fd-slicer/.travis.yml +0 -7
  1729. package/node_modules/fd-slicer/CHANGELOG.md +0 -49
  1730. package/node_modules/fd-slicer/LICENSE +0 -21
  1731. package/node_modules/fd-slicer/README.md +0 -199
  1732. package/node_modules/fd-slicer/index.js +0 -296
  1733. package/node_modules/fd-slicer/package.json +0 -36
  1734. package/node_modules/fd-slicer/test/test.js +0 -350
  1735. package/node_modules/file-type/core.d.ts +0 -253
  1736. package/node_modules/file-type/core.js +0 -2899
  1737. package/node_modules/file-type/index.d.ts +0 -98
  1738. package/node_modules/file-type/index.js +0 -163
  1739. package/node_modules/file-type/license +0 -9
  1740. package/node_modules/file-type/package.json +0 -290
  1741. package/node_modules/file-type/readme.md +0 -667
  1742. package/node_modules/file-type/supported.js +0 -360
  1743. package/node_modules/file-type/util.js +0 -60
  1744. package/node_modules/get-caller-file/LICENSE.md +0 -6
  1745. package/node_modules/get-caller-file/README.md +0 -41
  1746. package/node_modules/get-caller-file/index.d.ts +0 -2
  1747. package/node_modules/get-caller-file/index.js +0 -22
  1748. package/node_modules/get-caller-file/index.js.map +0 -1
  1749. package/node_modules/get-caller-file/package.json +0 -42
  1750. package/node_modules/get-stream/buffer-stream.js +0 -52
  1751. package/node_modules/get-stream/index.d.ts +0 -108
  1752. package/node_modules/get-stream/index.js +0 -60
  1753. package/node_modules/get-stream/license +0 -9
  1754. package/node_modules/get-stream/package.json +0 -50
  1755. package/node_modules/get-stream/readme.md +0 -124
  1756. package/node_modules/get-uri/LICENSE +0 -22
  1757. package/node_modules/get-uri/README.md +0 -109
  1758. package/node_modules/get-uri/dist/data.d.ts +0 -16
  1759. package/node_modules/get-uri/dist/data.js +0 -43
  1760. package/node_modules/get-uri/dist/data.js.map +0 -1
  1761. package/node_modules/get-uri/dist/file.d.ts +0 -17
  1762. package/node_modules/get-uri/dist/file.js +0 -57
  1763. package/node_modules/get-uri/dist/file.js.map +0 -1
  1764. package/node_modules/get-uri/dist/ftp.d.ts +0 -14
  1765. package/node_modules/get-uri/dist/ftp.js +0 -93
  1766. package/node_modules/get-uri/dist/ftp.js.map +0 -1
  1767. package/node_modules/get-uri/dist/http-error.d.ts +0 -8
  1768. package/node_modules/get-uri/dist/http-error.js +0 -15
  1769. package/node_modules/get-uri/dist/http-error.js.map +0 -1
  1770. package/node_modules/get-uri/dist/http.d.ts +0 -29
  1771. package/node_modules/get-uri/dist/http.js +0 -191
  1772. package/node_modules/get-uri/dist/http.js.map +0 -1
  1773. package/node_modules/get-uri/dist/https.d.ts +0 -6
  1774. package/node_modules/get-uri/dist/https.js +0 -16
  1775. package/node_modules/get-uri/dist/https.js.map +0 -1
  1776. package/node_modules/get-uri/dist/index.d.ts +0 -37
  1777. package/node_modules/get-uri/dist/index.js +0 -57
  1778. package/node_modules/get-uri/dist/index.js.map +0 -1
  1779. package/node_modules/get-uri/dist/notfound.d.ts +0 -10
  1780. package/node_modules/get-uri/dist/notfound.js +0 -16
  1781. package/node_modules/get-uri/dist/notfound.js.map +0 -1
  1782. package/node_modules/get-uri/dist/notmodified.d.ts +0 -10
  1783. package/node_modules/get-uri/dist/notmodified.js +0 -17
  1784. package/node_modules/get-uri/dist/notmodified.js.map +0 -1
  1785. package/node_modules/get-uri/node_modules/data-uri-to-buffer/LICENSE +0 -22
  1786. package/node_modules/get-uri/node_modules/data-uri-to-buffer/README.md +0 -61
  1787. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.d.ts +0 -17
  1788. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.d.ts.map +0 -1
  1789. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.js +0 -54
  1790. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.js.map +0 -1
  1791. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/index.d.ts +0 -8
  1792. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/index.d.ts.map +0 -1
  1793. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/index.js +0 -48
  1794. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/index.js.map +0 -1
  1795. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.d.ts +0 -8
  1796. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.d.ts.map +0 -1
  1797. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.js +0 -26
  1798. package/node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.js.map +0 -1
  1799. package/node_modules/get-uri/node_modules/data-uri-to-buffer/package.json +0 -48
  1800. package/node_modules/get-uri/package.json +0 -58
  1801. package/node_modules/has-flag/index.d.ts +0 -39
  1802. package/node_modules/has-flag/index.js +0 -8
  1803. package/node_modules/has-flag/license +0 -9
  1804. package/node_modules/has-flag/package.json +0 -46
  1805. package/node_modules/has-flag/readme.md +0 -89
  1806. package/node_modules/ieee754/LICENSE +0 -11
  1807. package/node_modules/ieee754/README.md +0 -51
  1808. package/node_modules/ieee754/index.d.ts +0 -10
  1809. package/node_modules/ieee754/index.js +0 -85
  1810. package/node_modules/ieee754/package.json +0 -52
  1811. package/node_modules/ip-address/LICENSE +0 -19
  1812. package/node_modules/ip-address/README.md +0 -278
  1813. package/node_modules/ip-address/dist/address-error.d.ts +0 -4
  1814. package/node_modules/ip-address/dist/address-error.js +0 -12
  1815. package/node_modules/ip-address/dist/address-error.js.map +0 -1
  1816. package/node_modules/ip-address/dist/common.d.ts +0 -20
  1817. package/node_modules/ip-address/dist/common.js +0 -67
  1818. package/node_modules/ip-address/dist/common.js.map +0 -1
  1819. package/node_modules/ip-address/dist/ip-address.d.ts +0 -7
  1820. package/node_modules/ip-address/dist/ip-address.js +0 -35
  1821. package/node_modules/ip-address/dist/ip-address.js.map +0 -1
  1822. package/node_modules/ip-address/dist/ipv4.d.ts +0 -267
  1823. package/node_modules/ip-address/dist/ipv4.js +0 -485
  1824. package/node_modules/ip-address/dist/ipv4.js.map +0 -1
  1825. package/node_modules/ip-address/dist/ipv6.d.ts +0 -489
  1826. package/node_modules/ip-address/dist/ipv6.js +0 -1217
  1827. package/node_modules/ip-address/dist/ipv6.js.map +0 -1
  1828. package/node_modules/ip-address/dist/v4/constants.d.ts +0 -4
  1829. package/node_modules/ip-address/dist/v4/constants.js +0 -8
  1830. package/node_modules/ip-address/dist/v4/constants.js.map +0 -1
  1831. package/node_modules/ip-address/dist/v6/constants.d.ts +0 -44
  1832. package/node_modules/ip-address/dist/v6/constants.js +0 -81
  1833. package/node_modules/ip-address/dist/v6/constants.js.map +0 -1
  1834. package/node_modules/ip-address/dist/v6/helpers.d.ts +0 -18
  1835. package/node_modules/ip-address/dist/v6/helpers.js +0 -54
  1836. package/node_modules/ip-address/dist/v6/helpers.js.map +0 -1
  1837. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +0 -5
  1838. package/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
  1839. package/node_modules/ip-address/dist/v6/regular-expressions.js.map +0 -1
  1840. package/node_modules/ip-address/package.json +0 -88
  1841. package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  1842. package/node_modules/is-fullwidth-code-point/index.js +0 -50
  1843. package/node_modules/is-fullwidth-code-point/license +0 -9
  1844. package/node_modules/is-fullwidth-code-point/package.json +0 -42
  1845. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  1846. package/node_modules/mime-db/HISTORY.md +0 -541
  1847. package/node_modules/mime-db/LICENSE +0 -23
  1848. package/node_modules/mime-db/README.md +0 -109
  1849. package/node_modules/mime-db/db.json +0 -9342
  1850. package/node_modules/mime-db/index.js +0 -12
  1851. package/node_modules/mime-db/package.json +0 -56
  1852. package/node_modules/mime-types/HISTORY.md +0 -428
  1853. package/node_modules/mime-types/LICENSE +0 -23
  1854. package/node_modules/mime-types/README.md +0 -126
  1855. package/node_modules/mime-types/index.js +0 -211
  1856. package/node_modules/mime-types/mimeScore.js +0 -57
  1857. package/node_modules/mime-types/package.json +0 -49
  1858. package/node_modules/mz/HISTORY.md +0 -66
  1859. package/node_modules/mz/LICENSE +0 -22
  1860. package/node_modules/mz/README.md +0 -106
  1861. package/node_modules/mz/child_process.js +0 -8
  1862. package/node_modules/mz/crypto.js +0 -9
  1863. package/node_modules/mz/dns.js +0 -16
  1864. package/node_modules/mz/fs.js +0 -62
  1865. package/node_modules/mz/index.js +0 -8
  1866. package/node_modules/mz/package.json +0 -44
  1867. package/node_modules/mz/readline.js +0 -64
  1868. package/node_modules/mz/zlib.js +0 -13
  1869. package/node_modules/netmask/CHANGELOG.md +0 -66
  1870. package/node_modules/netmask/LICENSE.md +0 -21
  1871. package/node_modules/netmask/README.md +0 -112
  1872. package/node_modules/netmask/dist/netmask.d.ts +0 -21
  1873. package/node_modules/netmask/dist/netmask.js +0 -68
  1874. package/node_modules/netmask/dist/netmask4.d.ts +0 -20
  1875. package/node_modules/netmask/dist/netmask4.js +0 -189
  1876. package/node_modules/netmask/dist/netmask6.d.ts +0 -20
  1877. package/node_modules/netmask/dist/netmask6.js +0 -187
  1878. package/node_modules/netmask/package.json +0 -45
  1879. package/node_modules/object-assign/index.js +0 -90
  1880. package/node_modules/object-assign/license +0 -21
  1881. package/node_modules/object-assign/package.json +0 -42
  1882. package/node_modules/object-assign/readme.md +0 -61
  1883. package/node_modules/once/LICENSE +0 -15
  1884. package/node_modules/once/README.md +0 -79
  1885. package/node_modules/once/once.js +0 -42
  1886. package/node_modules/once/package.json +0 -33
  1887. package/node_modules/pac-proxy-agent/LICENSE +0 -22
  1888. package/node_modules/pac-proxy-agent/README.md +0 -27
  1889. package/node_modules/pac-proxy-agent/dist/index.d.ts +0 -60
  1890. package/node_modules/pac-proxy-agent/dist/index.d.ts.map +0 -1
  1891. package/node_modules/pac-proxy-agent/dist/index.js +0 -238
  1892. package/node_modules/pac-proxy-agent/dist/index.js.map +0 -1
  1893. package/node_modules/pac-proxy-agent/package.json +0 -58
  1894. package/node_modules/pac-resolver/LICENSE +0 -22
  1895. package/node_modules/pac-resolver/README.md +0 -59
  1896. package/node_modules/pac-resolver/dist/dateRange.d.ts +0 -67
  1897. package/node_modules/pac-resolver/dist/dateRange.d.ts.map +0 -1
  1898. package/node_modules/pac-resolver/dist/dateRange.js +0 -73
  1899. package/node_modules/pac-resolver/dist/dateRange.js.map +0 -1
  1900. package/node_modules/pac-resolver/dist/dnsDomainIs.d.ts +0 -23
  1901. package/node_modules/pac-resolver/dist/dnsDomainIs.d.ts.map +0 -1
  1902. package/node_modules/pac-resolver/dist/dnsDomainIs.js +0 -30
  1903. package/node_modules/pac-resolver/dist/dnsDomainIs.js.map +0 -1
  1904. package/node_modules/pac-resolver/dist/dnsDomainLevels.d.ts +0 -18
  1905. package/node_modules/pac-resolver/dist/dnsDomainLevels.d.ts.map +0 -1
  1906. package/node_modules/pac-resolver/dist/dnsDomainLevels.js +0 -28
  1907. package/node_modules/pac-resolver/dist/dnsDomainLevels.js.map +0 -1
  1908. package/node_modules/pac-resolver/dist/dnsResolve.d.ts +0 -16
  1909. package/node_modules/pac-resolver/dist/dnsResolve.d.ts.map +0 -1
  1910. package/node_modules/pac-resolver/dist/dnsResolve.js +0 -32
  1911. package/node_modules/pac-resolver/dist/dnsResolve.js.map +0 -1
  1912. package/node_modules/pac-resolver/dist/index.d.ts +0 -50
  1913. package/node_modules/pac-resolver/dist/index.d.ts.map +0 -1
  1914. package/node_modules/pac-resolver/dist/index.js +0 -87
  1915. package/node_modules/pac-resolver/dist/index.js.map +0 -1
  1916. package/node_modules/pac-resolver/dist/ip.d.ts +0 -8
  1917. package/node_modules/pac-resolver/dist/ip.d.ts.map +0 -1
  1918. package/node_modules/pac-resolver/dist/ip.js +0 -50
  1919. package/node_modules/pac-resolver/dist/ip.js.map +0 -1
  1920. package/node_modules/pac-resolver/dist/isInNet.d.ts +0 -24
  1921. package/node_modules/pac-resolver/dist/isInNet.d.ts.map +0 -1
  1922. package/node_modules/pac-resolver/dist/isInNet.js +0 -42
  1923. package/node_modules/pac-resolver/dist/isInNet.js.map +0 -1
  1924. package/node_modules/pac-resolver/dist/isPlainHostName.d.ts +0 -18
  1925. package/node_modules/pac-resolver/dist/isPlainHostName.d.ts.map +0 -1
  1926. package/node_modules/pac-resolver/dist/isPlainHostName.js +0 -23
  1927. package/node_modules/pac-resolver/dist/isPlainHostName.js.map +0 -1
  1928. package/node_modules/pac-resolver/dist/isResolvable.d.ts +0 -8
  1929. package/node_modules/pac-resolver/dist/isResolvable.d.ts.map +0 -1
  1930. package/node_modules/pac-resolver/dist/isResolvable.js +0 -23
  1931. package/node_modules/pac-resolver/dist/isResolvable.js.map +0 -1
  1932. package/node_modules/pac-resolver/dist/localHostOrDomainIs.d.ts +0 -26
  1933. package/node_modules/pac-resolver/dist/localHostOrDomainIs.d.ts.map +0 -1
  1934. package/node_modules/pac-resolver/dist/localHostOrDomainIs.js +0 -40
  1935. package/node_modules/pac-resolver/dist/localHostOrDomainIs.js.map +0 -1
  1936. package/node_modules/pac-resolver/dist/myIpAddress.d.ts +0 -16
  1937. package/node_modules/pac-resolver/dist/myIpAddress.d.ts.map +0 -1
  1938. package/node_modules/pac-resolver/dist/myIpAddress.js +0 -50
  1939. package/node_modules/pac-resolver/dist/myIpAddress.js.map +0 -1
  1940. package/node_modules/pac-resolver/dist/shExpMatch.d.ts +0 -23
  1941. package/node_modules/pac-resolver/dist/shExpMatch.d.ts.map +0 -1
  1942. package/node_modules/pac-resolver/dist/shExpMatch.js +0 -41
  1943. package/node_modules/pac-resolver/dist/shExpMatch.js.map +0 -1
  1944. package/node_modules/pac-resolver/dist/timeRange.d.ts +0 -43
  1945. package/node_modules/pac-resolver/dist/timeRange.d.ts.map +0 -1
  1946. package/node_modules/pac-resolver/dist/timeRange.js +0 -92
  1947. package/node_modules/pac-resolver/dist/timeRange.js.map +0 -1
  1948. package/node_modules/pac-resolver/dist/util.d.ts +0 -6
  1949. package/node_modules/pac-resolver/dist/util.d.ts.map +0 -1
  1950. package/node_modules/pac-resolver/dist/util.js +0 -22
  1951. package/node_modules/pac-resolver/dist/util.js.map +0 -1
  1952. package/node_modules/pac-resolver/dist/weekdayRange.d.ts +0 -45
  1953. package/node_modules/pac-resolver/dist/weekdayRange.d.ts.map +0 -1
  1954. package/node_modules/pac-resolver/dist/weekdayRange.js +0 -91
  1955. package/node_modules/pac-resolver/dist/weekdayRange.js.map +0 -1
  1956. package/node_modules/pac-resolver/package.json +0 -47
  1957. package/node_modules/parse5/LICENSE +0 -19
  1958. package/node_modules/parse5/README.md +0 -38
  1959. package/node_modules/parse5/lib/common/doctype.js +0 -162
  1960. package/node_modules/parse5/lib/common/error-codes.js +0 -65
  1961. package/node_modules/parse5/lib/common/foreign-content.js +0 -265
  1962. package/node_modules/parse5/lib/common/html.js +0 -272
  1963. package/node_modules/parse5/lib/common/unicode.js +0 -109
  1964. package/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
  1965. package/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
  1966. package/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
  1967. package/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
  1968. package/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
  1969. package/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +0 -222
  1970. package/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
  1971. package/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
  1972. package/node_modules/parse5/lib/index.js +0 -29
  1973. package/node_modules/parse5/lib/parser/formatting-element-list.js +0 -181
  1974. package/node_modules/parse5/lib/parser/index.js +0 -2956
  1975. package/node_modules/parse5/lib/parser/open-element-stack.js +0 -482
  1976. package/node_modules/parse5/lib/serializer/index.js +0 -176
  1977. package/node_modules/parse5/lib/tokenizer/index.js +0 -2196
  1978. package/node_modules/parse5/lib/tokenizer/named-entity-data.js +0 -5
  1979. package/node_modules/parse5/lib/tokenizer/preprocessor.js +0 -159
  1980. package/node_modules/parse5/lib/tree-adapters/default.js +0 -217
  1981. package/node_modules/parse5/lib/utils/merge-options.js +0 -13
  1982. package/node_modules/parse5/lib/utils/mixin.js +0 -39
  1983. package/node_modules/parse5/package.json +0 -35
  1984. package/node_modules/parse5-htmlparser2-tree-adapter/LICENSE +0 -19
  1985. package/node_modules/parse5-htmlparser2-tree-adapter/README.md +0 -34
  1986. package/node_modules/parse5-htmlparser2-tree-adapter/lib/index.js +0 -348
  1987. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/LICENSE +0 -19
  1988. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/README.md +0 -38
  1989. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/doctype.js +0 -162
  1990. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/error-codes.js +0 -65
  1991. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/foreign-content.js +0 -265
  1992. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/html.js +0 -272
  1993. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/common/unicode.js +0 -109
  1994. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/mixin-base.js +0 -43
  1995. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js +0 -52
  1996. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js +0 -24
  1997. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js +0 -17
  1998. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js +0 -35
  1999. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/parser-mixin.js +0 -223
  2000. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js +0 -146
  2001. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js +0 -64
  2002. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/index.js +0 -29
  2003. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/formatting-element-list.js +0 -181
  2004. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/index.js +0 -2956
  2005. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/parser/open-element-stack.js +0 -482
  2006. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/serializer/index.js +0 -176
  2007. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/index.js +0 -2196
  2008. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/named-entity-data.js +0 -5
  2009. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tokenizer/preprocessor.js +0 -159
  2010. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/tree-adapters/default.js +0 -221
  2011. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/utils/merge-options.js +0 -13
  2012. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/lib/utils/mixin.js +0 -39
  2013. package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/package.json +0 -35
  2014. package/node_modules/parse5-htmlparser2-tree-adapter/package.json +0 -27
  2015. package/node_modules/pend/LICENSE +0 -23
  2016. package/node_modules/pend/README.md +0 -41
  2017. package/node_modules/pend/index.js +0 -55
  2018. package/node_modules/pend/package.json +0 -18
  2019. package/node_modules/pend/test.js +0 -137
  2020. package/node_modules/proper-lockfile/CHANGELOG.md +0 -108
  2021. package/node_modules/proxy-agent/LICENSE +0 -22
  2022. package/node_modules/proxy-agent/README.md +0 -59
  2023. package/node_modules/proxy-agent/dist/index.d.ts +0 -62
  2024. package/node_modules/proxy-agent/dist/index.d.ts.map +0 -1
  2025. package/node_modules/proxy-agent/dist/index.js +0 -138
  2026. package/node_modules/proxy-agent/dist/index.js.map +0 -1
  2027. package/node_modules/proxy-agent/node_modules/lru-cache/LICENSE +0 -15
  2028. package/node_modules/proxy-agent/node_modules/lru-cache/README.md +0 -1117
  2029. package/node_modules/proxy-agent/node_modules/lru-cache/index.d.ts +0 -869
  2030. package/node_modules/proxy-agent/node_modules/lru-cache/index.js +0 -1227
  2031. package/node_modules/proxy-agent/node_modules/lru-cache/index.mjs +0 -1227
  2032. package/node_modules/proxy-agent/node_modules/lru-cache/package.json +0 -96
  2033. package/node_modules/proxy-agent/package.json +0 -60
  2034. package/node_modules/proxy-from-env/.eslintrc +0 -29
  2035. package/node_modules/proxy-from-env/.travis.yml +0 -10
  2036. package/node_modules/proxy-from-env/LICENSE +0 -20
  2037. package/node_modules/proxy-from-env/README.md +0 -131
  2038. package/node_modules/proxy-from-env/index.js +0 -108
  2039. package/node_modules/proxy-from-env/package.json +0 -34
  2040. package/node_modules/proxy-from-env/test.js +0 -483
  2041. package/node_modules/pump/.github/FUNDING.yml +0 -2
  2042. package/node_modules/pump/.travis.yml +0 -5
  2043. package/node_modules/pump/LICENSE +0 -21
  2044. package/node_modules/pump/README.md +0 -74
  2045. package/node_modules/pump/SECURITY.md +0 -5
  2046. package/node_modules/pump/empty.js +0 -1
  2047. package/node_modules/pump/index.js +0 -86
  2048. package/node_modules/pump/package.json +0 -30
  2049. package/node_modules/pump/test-browser.js +0 -66
  2050. package/node_modules/pump/test-node.js +0 -53
  2051. package/node_modules/require-directory/.jshintrc +0 -67
  2052. package/node_modules/require-directory/.npmignore +0 -1
  2053. package/node_modules/require-directory/.travis.yml +0 -3
  2054. package/node_modules/require-directory/LICENSE +0 -22
  2055. package/node_modules/require-directory/README.markdown +0 -184
  2056. package/node_modules/require-directory/index.js +0 -86
  2057. package/node_modules/require-directory/package.json +0 -40
  2058. package/node_modules/smart-buffer/.prettierrc.yaml +0 -5
  2059. package/node_modules/smart-buffer/.travis.yml +0 -13
  2060. package/node_modules/smart-buffer/LICENSE +0 -20
  2061. package/node_modules/smart-buffer/README.md +0 -633
  2062. package/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
  2063. package/node_modules/smart-buffer/build/smartbuffer.js.map +0 -1
  2064. package/node_modules/smart-buffer/build/utils.js +0 -108
  2065. package/node_modules/smart-buffer/build/utils.js.map +0 -1
  2066. package/node_modules/smart-buffer/docs/CHANGELOG.md +0 -70
  2067. package/node_modules/smart-buffer/docs/README_v3.md +0 -367
  2068. package/node_modules/smart-buffer/docs/ROADMAP.md +0 -0
  2069. package/node_modules/smart-buffer/package.json +0 -79
  2070. package/node_modules/smart-buffer/typings/smartbuffer.d.ts +0 -755
  2071. package/node_modules/smart-buffer/typings/utils.d.ts +0 -66
  2072. package/node_modules/socks/.eslintrc.cjs +0 -11
  2073. package/node_modules/socks/.prettierrc.yaml +0 -7
  2074. package/node_modules/socks/LICENSE +0 -20
  2075. package/node_modules/socks/README.md +0 -686
  2076. package/node_modules/socks/build/client/socksclient.js +0 -793
  2077. package/node_modules/socks/build/client/socksclient.js.map +0 -1
  2078. package/node_modules/socks/build/common/constants.js +0 -108
  2079. package/node_modules/socks/build/common/constants.js.map +0 -1
  2080. package/node_modules/socks/build/common/helpers.js +0 -167
  2081. package/node_modules/socks/build/common/helpers.js.map +0 -1
  2082. package/node_modules/socks/build/common/receivebuffer.js +0 -43
  2083. package/node_modules/socks/build/common/receivebuffer.js.map +0 -1
  2084. package/node_modules/socks/build/common/util.js +0 -25
  2085. package/node_modules/socks/build/common/util.js.map +0 -1
  2086. package/node_modules/socks/build/index.js +0 -18
  2087. package/node_modules/socks/build/index.js.map +0 -1
  2088. package/node_modules/socks/docs/examples/index.md +0 -17
  2089. package/node_modules/socks/docs/examples/javascript/associateExample.md +0 -90
  2090. package/node_modules/socks/docs/examples/javascript/bindExample.md +0 -83
  2091. package/node_modules/socks/docs/examples/javascript/connectExample.md +0 -258
  2092. package/node_modules/socks/docs/examples/typescript/associateExample.md +0 -93
  2093. package/node_modules/socks/docs/examples/typescript/bindExample.md +0 -86
  2094. package/node_modules/socks/docs/examples/typescript/connectExample.md +0 -265
  2095. package/node_modules/socks/docs/index.md +0 -5
  2096. package/node_modules/socks/docs/migratingFromV1.md +0 -86
  2097. package/node_modules/socks/package.json +0 -58
  2098. package/node_modules/socks/typings/client/socksclient.d.ts +0 -162
  2099. package/node_modules/socks/typings/common/constants.d.ts +0 -151
  2100. package/node_modules/socks/typings/common/helpers.d.ts +0 -17
  2101. package/node_modules/socks/typings/common/receivebuffer.d.ts +0 -12
  2102. package/node_modules/socks/typings/common/util.d.ts +0 -14
  2103. package/node_modules/socks/typings/index.d.ts +0 -1
  2104. package/node_modules/socks-proxy-agent/LICENSE +0 -22
  2105. package/node_modules/socks-proxy-agent/README.md +0 -50
  2106. package/node_modules/socks-proxy-agent/dist/index.d.ts +0 -27
  2107. package/node_modules/socks-proxy-agent/dist/index.d.ts.map +0 -1
  2108. package/node_modules/socks-proxy-agent/dist/index.js +0 -195
  2109. package/node_modules/socks-proxy-agent/dist/index.js.map +0 -1
  2110. package/node_modules/socks-proxy-agent/package.json +0 -142
  2111. package/node_modules/source-map/CHANGELOG.md +0 -301
  2112. package/node_modules/source-map/LICENSE +0 -28
  2113. package/node_modules/source-map/README.md +0 -742
  2114. package/node_modules/source-map/dist/source-map.debug.js +0 -3234
  2115. package/node_modules/source-map/dist/source-map.js +0 -3233
  2116. package/node_modules/source-map/dist/source-map.min.js +0 -2
  2117. package/node_modules/source-map/dist/source-map.min.js.map +0 -1
  2118. package/node_modules/source-map/lib/array-set.js +0 -121
  2119. package/node_modules/source-map/lib/base64-vlq.js +0 -140
  2120. package/node_modules/source-map/lib/base64.js +0 -67
  2121. package/node_modules/source-map/lib/binary-search.js +0 -111
  2122. package/node_modules/source-map/lib/mapping-list.js +0 -79
  2123. package/node_modules/source-map/lib/quick-sort.js +0 -114
  2124. package/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  2125. package/node_modules/source-map/lib/source-map-generator.js +0 -425
  2126. package/node_modules/source-map/lib/source-node.js +0 -413
  2127. package/node_modules/source-map/lib/util.js +0 -488
  2128. package/node_modules/source-map/package.json +0 -73
  2129. package/node_modules/source-map/source-map.d.ts +0 -98
  2130. package/node_modules/source-map/source-map.js +0 -8
  2131. package/node_modules/string-width/index.d.ts +0 -29
  2132. package/node_modules/string-width/index.js +0 -47
  2133. package/node_modules/string-width/license +0 -9
  2134. package/node_modules/string-width/node_modules/ansi-regex/index.d.ts +0 -37
  2135. package/node_modules/string-width/node_modules/ansi-regex/index.js +0 -10
  2136. package/node_modules/string-width/node_modules/ansi-regex/license +0 -9
  2137. package/node_modules/string-width/node_modules/ansi-regex/package.json +0 -55
  2138. package/node_modules/string-width/node_modules/ansi-regex/readme.md +0 -78
  2139. package/node_modules/string-width/node_modules/strip-ansi/index.d.ts +0 -17
  2140. package/node_modules/string-width/node_modules/strip-ansi/index.js +0 -4
  2141. package/node_modules/string-width/node_modules/strip-ansi/license +0 -9
  2142. package/node_modules/string-width/node_modules/strip-ansi/package.json +0 -54
  2143. package/node_modules/string-width/node_modules/strip-ansi/readme.md +0 -46
  2144. package/node_modules/string-width/package.json +0 -56
  2145. package/node_modules/string-width/readme.md +0 -50
  2146. package/node_modules/strip-ansi/index.d.ts +0 -15
  2147. package/node_modules/strip-ansi/index.js +0 -19
  2148. package/node_modules/strip-ansi/license +0 -9
  2149. package/node_modules/strip-ansi/package.json +0 -59
  2150. package/node_modules/strip-ansi/readme.md +0 -37
  2151. package/node_modules/strtok3/LICENSE.txt +0 -21
  2152. package/node_modules/strtok3/README.md +0 -399
  2153. package/node_modules/strtok3/lib/AbstractTokenizer.d.ts +0 -76
  2154. package/node_modules/strtok3/lib/AbstractTokenizer.js +0 -111
  2155. package/node_modules/strtok3/lib/BlobTokenizer.d.ts +0 -29
  2156. package/node_modules/strtok3/lib/BlobTokenizer.js +0 -53
  2157. package/node_modules/strtok3/lib/BufferTokenizer.d.ts +0 -29
  2158. package/node_modules/strtok3/lib/BufferTokenizer.js +0 -52
  2159. package/node_modules/strtok3/lib/FileTokenizer.d.ts +0 -37
  2160. package/node_modules/strtok3/lib/FileTokenizer.js +0 -61
  2161. package/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +0 -34
  2162. package/node_modules/strtok3/lib/ReadStreamTokenizer.js +0 -107
  2163. package/node_modules/strtok3/lib/core.d.ts +0 -40
  2164. package/node_modules/strtok3/lib/core.js +0 -62
  2165. package/node_modules/strtok3/lib/index.d.ts +0 -16
  2166. package/node_modules/strtok3/lib/index.js +0 -22
  2167. package/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +0 -54
  2168. package/node_modules/strtok3/lib/stream/AbstractStreamReader.js +0 -71
  2169. package/node_modules/strtok3/lib/stream/Deferred.d.ts +0 -6
  2170. package/node_modules/strtok3/lib/stream/Deferred.js +0 -10
  2171. package/node_modules/strtok3/lib/stream/Errors.d.ts +0 -10
  2172. package/node_modules/strtok3/lib/stream/Errors.js +0 -16
  2173. package/node_modules/strtok3/lib/stream/StreamReader.d.ts +0 -29
  2174. package/node_modules/strtok3/lib/stream/StreamReader.js +0 -83
  2175. package/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +0 -14
  2176. package/node_modules/strtok3/lib/stream/WebStreamByobReader.js +0 -27
  2177. package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +0 -19
  2178. package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +0 -62
  2179. package/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +0 -14
  2180. package/node_modules/strtok3/lib/stream/WebStreamReader.js +0 -13
  2181. package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +0 -5
  2182. package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +0 -19
  2183. package/node_modules/strtok3/lib/stream/index.d.ts +0 -6
  2184. package/node_modules/strtok3/lib/stream/index.js +0 -5
  2185. package/node_modules/strtok3/lib/types.d.ts +0 -139
  2186. package/node_modules/strtok3/lib/types.js +0 -1
  2187. package/node_modules/strtok3/package.json +0 -94
  2188. package/node_modules/supports-color/browser.js +0 -5
  2189. package/node_modules/supports-color/index.js +0 -135
  2190. package/node_modules/supports-color/license +0 -9
  2191. package/node_modules/supports-color/package.json +0 -53
  2192. package/node_modules/supports-color/readme.md +0 -76
  2193. package/node_modules/thenify/History.md +0 -11
  2194. package/node_modules/thenify/LICENSE +0 -22
  2195. package/node_modules/thenify/README.md +0 -120
  2196. package/node_modules/thenify/index.js +0 -77
  2197. package/node_modules/thenify/package.json +0 -31
  2198. package/node_modules/thenify-all/History.md +0 -11
  2199. package/node_modules/thenify-all/LICENSE +0 -22
  2200. package/node_modules/thenify-all/README.md +0 -66
  2201. package/node_modules/thenify-all/index.js +0 -73
  2202. package/node_modules/thenify-all/package.json +0 -34
  2203. package/node_modules/token-types/LICENSE.txt +0 -9
  2204. package/node_modules/token-types/README.md +0 -120
  2205. package/node_modules/token-types/lib/index.d.ts +0 -135
  2206. package/node_modules/token-types/lib/index.js +0 -401
  2207. package/node_modules/token-types/package.json +0 -81
  2208. package/node_modules/uint8array-extras/index.d.ts +0 -331
  2209. package/node_modules/uint8array-extras/index.js +0 -318
  2210. package/node_modules/uint8array-extras/license +0 -9
  2211. package/node_modules/uint8array-extras/package.json +0 -54
  2212. package/node_modules/uint8array-extras/readme.md +0 -318
  2213. package/node_modules/uuid/LICENSE.md +0 -9
  2214. package/node_modules/uuid/README.md +0 -491
  2215. package/node_modules/uuid/dist/index.d.ts +0 -15
  2216. package/node_modules/uuid/dist/index.js +0 -14
  2217. package/node_modules/uuid/dist/max.d.ts +0 -2
  2218. package/node_modules/uuid/dist/max.js +0 -1
  2219. package/node_modules/uuid/dist/md5.d.ts +0 -2
  2220. package/node_modules/uuid/dist/md5.js +0 -135
  2221. package/node_modules/uuid/dist/nil.d.ts +0 -2
  2222. package/node_modules/uuid/dist/nil.js +0 -1
  2223. package/node_modules/uuid/dist/parse.d.ts +0 -3
  2224. package/node_modules/uuid/dist/parse.js +0 -9
  2225. package/node_modules/uuid/dist/regex.d.ts +0 -2
  2226. package/node_modules/uuid/dist/regex.js +0 -1
  2227. package/node_modules/uuid/dist/rng.d.ts +0 -1
  2228. package/node_modules/uuid/dist/rng.js +0 -4
  2229. package/node_modules/uuid/dist/sha1.d.ts +0 -2
  2230. package/node_modules/uuid/dist/sha1.js +0 -70
  2231. package/node_modules/uuid/dist/stringify.d.ts +0 -3
  2232. package/node_modules/uuid/dist/stringify.js +0 -35
  2233. package/node_modules/uuid/dist/types.d.ts +0 -22
  2234. package/node_modules/uuid/dist/types.js +0 -1
  2235. package/node_modules/uuid/dist/uuid-bin.d.ts +0 -1
  2236. package/node_modules/uuid/dist/uuid-bin.js +0 -70
  2237. package/node_modules/uuid/dist/v1.d.ts +0 -11
  2238. package/node_modules/uuid/dist/v1.js +0 -83
  2239. package/node_modules/uuid/dist/v1ToV6.d.ts +0 -3
  2240. package/node_modules/uuid/dist/v1ToV6.js +0 -10
  2241. package/node_modules/uuid/dist/v3.d.ts +0 -9
  2242. package/node_modules/uuid/dist/v3.js +0 -9
  2243. package/node_modules/uuid/dist/v35.d.ts +0 -7
  2244. package/node_modules/uuid/dist/v35.js +0 -39
  2245. package/node_modules/uuid/dist/v4.d.ts +0 -4
  2246. package/node_modules/uuid/dist/v4.js +0 -29
  2247. package/node_modules/uuid/dist/v5.d.ts +0 -9
  2248. package/node_modules/uuid/dist/v5.js +0 -9
  2249. package/node_modules/uuid/dist/v6.d.ts +0 -4
  2250. package/node_modules/uuid/dist/v6.js +0 -20
  2251. package/node_modules/uuid/dist/v6ToV1.d.ts +0 -2
  2252. package/node_modules/uuid/dist/v6ToV1.js +0 -10
  2253. package/node_modules/uuid/dist/v7.d.ts +0 -9
  2254. package/node_modules/uuid/dist/v7.js +0 -65
  2255. package/node_modules/uuid/dist/validate.d.ts +0 -2
  2256. package/node_modules/uuid/dist/validate.js +0 -5
  2257. package/node_modules/uuid/dist/version.d.ts +0 -2
  2258. package/node_modules/uuid/dist/version.js +0 -8
  2259. package/node_modules/uuid/dist-node/bin/uuid +0 -2
  2260. package/node_modules/uuid/dist-node/index.js +0 -14
  2261. package/node_modules/uuid/dist-node/max.js +0 -1
  2262. package/node_modules/uuid/dist-node/md5.js +0 -11
  2263. package/node_modules/uuid/dist-node/nil.js +0 -1
  2264. package/node_modules/uuid/dist-node/parse.js +0 -9
  2265. package/node_modules/uuid/dist-node/regex.js +0 -1
  2266. package/node_modules/uuid/dist-node/rng.js +0 -4
  2267. package/node_modules/uuid/dist-node/sha1.js +0 -11
  2268. package/node_modules/uuid/dist-node/stringify.js +0 -35
  2269. package/node_modules/uuid/dist-node/types.js +0 -1
  2270. package/node_modules/uuid/dist-node/uuid-bin.js +0 -70
  2271. package/node_modules/uuid/dist-node/v1.js +0 -83
  2272. package/node_modules/uuid/dist-node/v1ToV6.js +0 -10
  2273. package/node_modules/uuid/dist-node/v3.js +0 -9
  2274. package/node_modules/uuid/dist-node/v35.js +0 -39
  2275. package/node_modules/uuid/dist-node/v4.js +0 -29
  2276. package/node_modules/uuid/dist-node/v5.js +0 -9
  2277. package/node_modules/uuid/dist-node/v6.js +0 -20
  2278. package/node_modules/uuid/dist-node/v6ToV1.js +0 -10
  2279. package/node_modules/uuid/dist-node/v7.js +0 -65
  2280. package/node_modules/uuid/dist-node/validate.js +0 -5
  2281. package/node_modules/uuid/dist-node/version.js +0 -8
  2282. package/node_modules/uuid/package.json +0 -110
  2283. package/node_modules/wrap-ansi/index.js +0 -216
  2284. package/node_modules/wrap-ansi/license +0 -9
  2285. package/node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts +0 -37
  2286. package/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +0 -10
  2287. package/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
  2288. package/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +0 -55
  2289. package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
  2290. package/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts +0 -17
  2291. package/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +0 -4
  2292. package/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
  2293. package/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +0 -54
  2294. package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
  2295. package/node_modules/wrap-ansi/package.json +0 -62
  2296. package/node_modules/wrap-ansi/readme.md +0 -91
  2297. package/node_modules/wrappy/LICENSE +0 -15
  2298. package/node_modules/wrappy/README.md +0 -36
  2299. package/node_modules/wrappy/package.json +0 -29
  2300. package/node_modules/wrappy/wrappy.js +0 -33
  2301. package/node_modules/y18n/CHANGELOG.md +0 -100
  2302. package/node_modules/y18n/LICENSE +0 -13
  2303. package/node_modules/y18n/README.md +0 -127
  2304. package/node_modules/y18n/build/index.cjs +0 -203
  2305. package/node_modules/y18n/build/lib/cjs.js +0 -6
  2306. package/node_modules/y18n/build/lib/index.js +0 -174
  2307. package/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  2308. package/node_modules/y18n/index.mjs +0 -8
  2309. package/node_modules/y18n/package.json +0 -70
  2310. package/node_modules/yargs/CHANGELOG.md +0 -88
  2311. package/node_modules/yargs/LICENSE +0 -21
  2312. package/node_modules/yargs/README.md +0 -202
  2313. package/node_modules/yargs/browser.mjs +0 -7
  2314. package/node_modules/yargs/build/index.cjs +0 -2920
  2315. package/node_modules/yargs/build/lib/argsert.js +0 -62
  2316. package/node_modules/yargs/build/lib/command.js +0 -382
  2317. package/node_modules/yargs/build/lib/completion-templates.js +0 -47
  2318. package/node_modules/yargs/build/lib/completion.js +0 -128
  2319. package/node_modules/yargs/build/lib/middleware.js +0 -53
  2320. package/node_modules/yargs/build/lib/parse-command.js +0 -32
  2321. package/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  2322. package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +0 -1
  2323. package/node_modules/yargs/build/lib/usage.js +0 -548
  2324. package/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  2325. package/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  2326. package/node_modules/yargs/build/lib/utils/levenshtein.js +0 -26
  2327. package/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  2328. package/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  2329. package/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  2330. package/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  2331. package/node_modules/yargs/build/lib/validation.js +0 -308
  2332. package/node_modules/yargs/build/lib/yargs-factory.js +0 -1143
  2333. package/node_modules/yargs/build/lib/yerror.js +0 -7
  2334. package/node_modules/yargs/helpers/helpers.mjs +0 -10
  2335. package/node_modules/yargs/helpers/index.js +0 -14
  2336. package/node_modules/yargs/helpers/package.json +0 -3
  2337. package/node_modules/yargs/index.cjs +0 -39
  2338. package/node_modules/yargs/index.mjs +0 -8
  2339. package/node_modules/yargs/lib/platform-shims/browser.mjs +0 -92
  2340. package/node_modules/yargs/lib/platform-shims/esm.mjs +0 -67
  2341. package/node_modules/yargs/locales/be.json +0 -46
  2342. package/node_modules/yargs/locales/de.json +0 -46
  2343. package/node_modules/yargs/locales/en.json +0 -51
  2344. package/node_modules/yargs/locales/es.json +0 -46
  2345. package/node_modules/yargs/locales/fi.json +0 -49
  2346. package/node_modules/yargs/locales/fr.json +0 -53
  2347. package/node_modules/yargs/locales/hi.json +0 -49
  2348. package/node_modules/yargs/locales/hu.json +0 -46
  2349. package/node_modules/yargs/locales/id.json +0 -50
  2350. package/node_modules/yargs/locales/it.json +0 -46
  2351. package/node_modules/yargs/locales/ja.json +0 -51
  2352. package/node_modules/yargs/locales/ko.json +0 -49
  2353. package/node_modules/yargs/locales/nb.json +0 -44
  2354. package/node_modules/yargs/locales/nl.json +0 -49
  2355. package/node_modules/yargs/locales/nn.json +0 -44
  2356. package/node_modules/yargs/locales/pirate.json +0 -13
  2357. package/node_modules/yargs/locales/pl.json +0 -49
  2358. package/node_modules/yargs/locales/pt.json +0 -45
  2359. package/node_modules/yargs/locales/pt_BR.json +0 -48
  2360. package/node_modules/yargs/locales/ru.json +0 -46
  2361. package/node_modules/yargs/locales/th.json +0 -46
  2362. package/node_modules/yargs/locales/tr.json +0 -48
  2363. package/node_modules/yargs/locales/zh_CN.json +0 -48
  2364. package/node_modules/yargs/locales/zh_TW.json +0 -47
  2365. package/node_modules/yargs/package.json +0 -122
  2366. package/node_modules/yargs/yargs +0 -9
  2367. package/node_modules/yargs-parser/CHANGELOG.md +0 -263
  2368. package/node_modules/yargs-parser/LICENSE.txt +0 -14
  2369. package/node_modules/yargs-parser/README.md +0 -518
  2370. package/node_modules/yargs-parser/browser.js +0 -29
  2371. package/node_modules/yargs-parser/build/index.cjs +0 -1042
  2372. package/node_modules/yargs-parser/build/lib/index.js +0 -59
  2373. package/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  2374. package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  2375. package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  2376. package/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1037
  2377. package/node_modules/yargs-parser/package.json +0 -87
  2378. package/node_modules/yauzl/LICENSE +0 -21
  2379. package/node_modules/yauzl/README.md +0 -658
  2380. package/node_modules/yauzl/index.js +0 -796
  2381. package/node_modules/yauzl/package.json +0 -40
  2382. /package/node_modules/{@entelligentsia/pi-coding-agent/dist/core/tools → @earendil-works/pi-agent-core/dist/harness/utils}/truncate.d.ts +0 -0
  2383. /package/node_modules/{@entelligentsia → @earendil-works}/pi-agent-core/dist/types.js +0 -0
  2384. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/api-registry.d.ts +0 -0
  2385. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/api-registry.d.ts.map +0 -0
  2386. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/api-registry.js +0 -0
  2387. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/api-registry.js.map +0 -0
  2388. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/bedrock-provider.d.ts +0 -0
  2389. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/bedrock-provider.d.ts.map +0 -0
  2390. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/bedrock-provider.js +0 -0
  2391. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/bedrock-provider.js.map +0 -0
  2392. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/cli.d.ts +0 -0
  2393. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/env-api-keys.d.ts +0 -0
  2394. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/models.d.ts +0 -0
  2395. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/models.d.ts.map +0 -0
  2396. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/models.js +0 -0
  2397. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/models.js.map +0 -0
  2398. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/oauth.d.ts +0 -0
  2399. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/oauth.d.ts.map +0 -0
  2400. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/oauth.js +0 -0
  2401. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/oauth.js.map +0 -0
  2402. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/amazon-bedrock.d.ts +0 -0
  2403. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/anthropic.d.ts +0 -0
  2404. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/azure-openai-responses.d.ts +0 -0
  2405. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/azure-openai-responses.d.ts.map +0 -0
  2406. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/azure-openai-responses.js +0 -0
  2407. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/azure-openai-responses.js.map +0 -0
  2408. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/cloudflare.d.ts +0 -0
  2409. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/cloudflare.d.ts.map +0 -0
  2410. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/cloudflare.js +0 -0
  2411. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/cloudflare.js.map +0 -0
  2412. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/faux.d.ts +0 -0
  2413. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/faux.d.ts.map +0 -0
  2414. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/faux.js +0 -0
  2415. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/faux.js.map +0 -0
  2416. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/github-copilot-headers.d.ts +0 -0
  2417. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/github-copilot-headers.d.ts.map +0 -0
  2418. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/github-copilot-headers.js +0 -0
  2419. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/github-copilot-headers.js.map +0 -0
  2420. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google-shared.d.ts +0 -0
  2421. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google-shared.d.ts.map +0 -0
  2422. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google-shared.js +0 -0
  2423. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google-shared.js.map +0 -0
  2424. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google-vertex.d.ts +0 -0
  2425. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google-vertex.d.ts.map +0 -0
  2426. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google-vertex.js +0 -0
  2427. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google-vertex.js.map +0 -0
  2428. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google.d.ts +0 -0
  2429. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google.d.ts.map +0 -0
  2430. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google.js +0 -0
  2431. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/google.js.map +0 -0
  2432. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/mistral.d.ts +0 -0
  2433. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/mistral.d.ts.map +0 -0
  2434. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/mistral.js +0 -0
  2435. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/mistral.js.map +0 -0
  2436. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-codex-responses.d.ts +0 -0
  2437. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-completions.d.ts +0 -0
  2438. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-responses-shared.d.ts +0 -0
  2439. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-responses-shared.d.ts.map +0 -0
  2440. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-responses-shared.js +0 -0
  2441. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-responses-shared.js.map +0 -0
  2442. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-responses.d.ts +0 -0
  2443. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-responses.d.ts.map +0 -0
  2444. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-responses.js +0 -0
  2445. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/openai-responses.js.map +0 -0
  2446. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/register-builtins.d.ts +0 -0
  2447. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/register-builtins.d.ts.map +0 -0
  2448. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/register-builtins.js +0 -0
  2449. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/register-builtins.js.map +0 -0
  2450. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/simple-options.d.ts +0 -0
  2451. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/transform-messages.d.ts +0 -0
  2452. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/transform-messages.d.ts.map +0 -0
  2453. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/transform-messages.js +0 -0
  2454. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/providers/transform-messages.js.map +0 -0
  2455. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/session-resources.d.ts +0 -0
  2456. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/session-resources.d.ts.map +0 -0
  2457. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/session-resources.js +0 -0
  2458. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/session-resources.js.map +0 -0
  2459. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/stream.d.ts +0 -0
  2460. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/stream.d.ts.map +0 -0
  2461. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/stream.js +0 -0
  2462. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/stream.js.map +0 -0
  2463. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/types.js +0 -0
  2464. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/diagnostics.d.ts +0 -0
  2465. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/diagnostics.d.ts.map +0 -0
  2466. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/diagnostics.js +0 -0
  2467. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/diagnostics.js.map +0 -0
  2468. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/event-stream.d.ts +0 -0
  2469. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/event-stream.d.ts.map +0 -0
  2470. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/event-stream.js +0 -0
  2471. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/event-stream.js.map +0 -0
  2472. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/hash.d.ts +0 -0
  2473. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/hash.d.ts.map +0 -0
  2474. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/hash.js +0 -0
  2475. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/hash.js.map +0 -0
  2476. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/headers.d.ts +0 -0
  2477. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/headers.d.ts.map +0 -0
  2478. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/headers.js +0 -0
  2479. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/headers.js.map +0 -0
  2480. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/json-parse.d.ts +0 -0
  2481. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/json-parse.d.ts.map +0 -0
  2482. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/json-parse.js +0 -0
  2483. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/json-parse.js.map +0 -0
  2484. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/anthropic.d.ts +0 -0
  2485. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/anthropic.d.ts.map +0 -0
  2486. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/anthropic.js +0 -0
  2487. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/anthropic.js.map +0 -0
  2488. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/github-copilot.d.ts +0 -0
  2489. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/github-copilot.d.ts.map +0 -0
  2490. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/github-copilot.js +0 -0
  2491. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/github-copilot.js.map +0 -0
  2492. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/index.d.ts +0 -0
  2493. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/index.d.ts.map +0 -0
  2494. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/index.js +0 -0
  2495. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/index.js.map +0 -0
  2496. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/oauth-page.d.ts +0 -0
  2497. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/oauth-page.d.ts.map +0 -0
  2498. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/oauth-page.js +0 -0
  2499. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/oauth-page.js.map +0 -0
  2500. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/openai-codex.d.ts +0 -0
  2501. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/openai-codex.d.ts.map +0 -0
  2502. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/openai-codex.js +0 -0
  2503. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/openai-codex.js.map +0 -0
  2504. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/pkce.d.ts +0 -0
  2505. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/pkce.d.ts.map +0 -0
  2506. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/pkce.js +0 -0
  2507. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/pkce.js.map +0 -0
  2508. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/types.d.ts +0 -0
  2509. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/types.d.ts.map +0 -0
  2510. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/types.js +0 -0
  2511. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/oauth/types.js.map +0 -0
  2512. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/sanitize-unicode.d.ts +0 -0
  2513. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/sanitize-unicode.d.ts.map +0 -0
  2514. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/sanitize-unicode.js +0 -0
  2515. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/sanitize-unicode.js.map +0 -0
  2516. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/typebox-helpers.d.ts +0 -0
  2517. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/typebox-helpers.d.ts.map +0 -0
  2518. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/typebox-helpers.js +0 -0
  2519. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/typebox-helpers.js.map +0 -0
  2520. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/validation.d.ts +0 -0
  2521. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/validation.d.ts.map +0 -0
  2522. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/validation.js +0 -0
  2523. /package/node_modules/{@entelligentsia → @earendil-works}/pi-ai/dist/utils/validation.js.map +0 -0
  2524. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/bun/cli.d.ts +0 -0
  2525. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/bun/cli.d.ts.map +0 -0
  2526. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/bun/cli.js +0 -0
  2527. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/bun/cli.js.map +0 -0
  2528. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/bun/register-bedrock.d.ts +0 -0
  2529. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/bun/restore-sandbox-env.d.ts +0 -0
  2530. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/bun/restore-sandbox-env.d.ts.map +0 -0
  2531. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/bun/restore-sandbox-env.js +0 -0
  2532. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/bun/restore-sandbox-env.js.map +0 -0
  2533. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/cli/config-selector.d.ts +0 -0
  2534. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/cli/file-processor.js +0 -0
  2535. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/cli/initial-message.js +0 -0
  2536. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/cli/list-models.d.ts +0 -0
  2537. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/cli/session-picker.d.ts +0 -0
  2538. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/cli.d.ts +0 -0
  2539. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/config.d.ts +0 -0
  2540. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/agent-session-runtime.d.ts +0 -0
  2541. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/agent-session-runtime.d.ts.map +0 -0
  2542. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/agent-session-runtime.js +0 -0
  2543. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/agent-session-runtime.js.map +0 -0
  2544. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/agent-session-services.js +0 -0
  2545. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/auth-guidance.d.ts +0 -0
  2546. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/auth-guidance.d.ts.map +0 -0
  2547. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/auth-guidance.js +0 -0
  2548. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/auth-guidance.js.map +0 -0
  2549. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/bash-executor.d.ts +0 -0
  2550. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/compaction/index.d.ts +0 -0
  2551. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/compaction/index.d.ts.map +0 -0
  2552. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/compaction/index.js +0 -0
  2553. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/compaction/index.js.map +0 -0
  2554. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/compaction/utils.js +0 -0
  2555. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/defaults.js +0 -0
  2556. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/diagnostics.d.ts +0 -0
  2557. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/diagnostics.d.ts.map +0 -0
  2558. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/diagnostics.js +0 -0
  2559. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/diagnostics.js.map +0 -0
  2560. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/event-bus.d.ts +0 -0
  2561. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/event-bus.d.ts.map +0 -0
  2562. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/event-bus.js +0 -0
  2563. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/event-bus.js.map +0 -0
  2564. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/exec.d.ts +0 -0
  2565. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/exec.d.ts.map +0 -0
  2566. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/exec.js +0 -0
  2567. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/exec.js.map +0 -0
  2568. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts +0 -0
  2569. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +0 -0
  2570. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/ansi-to-html.js +0 -0
  2571. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/ansi-to-html.js.map +0 -0
  2572. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/index.js +0 -0
  2573. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/template.css +0 -0
  2574. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/template.html +0 -0
  2575. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/template.js +0 -0
  2576. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/tool-renderer.d.ts +0 -0
  2577. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/tool-renderer.js +0 -0
  2578. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/vendor/highlight.min.js +0 -0
  2579. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/export-html/vendor/marked.min.js +0 -0
  2580. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/extensions/index.d.ts +0 -0
  2581. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/extensions/index.d.ts.map +0 -0
  2582. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/extensions/index.js +0 -0
  2583. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/extensions/index.js.map +0 -0
  2584. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/extensions/loader.d.ts +0 -0
  2585. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/extensions/types.js +0 -0
  2586. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/extensions/wrapper.js +0 -0
  2587. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/footer-data-provider.d.ts +0 -0
  2588. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/footer-data-provider.d.ts.map +0 -0
  2589. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/footer-data-provider.js +0 -0
  2590. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/footer-data-provider.js.map +0 -0
  2591. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/index.d.ts +0 -0
  2592. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/index.d.ts.map +0 -0
  2593. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/index.js +0 -0
  2594. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/index.js.map +0 -0
  2595. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/messages.js +0 -0
  2596. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/output-guard.d.ts +0 -0
  2597. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/output-guard.d.ts.map +0 -0
  2598. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/output-guard.js +0 -0
  2599. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/output-guard.js.map +0 -0
  2600. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/prompt-templates.d.ts +0 -0
  2601. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/provider-display-names.d.ts +0 -0
  2602. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/resolve-config-value.d.ts +0 -0
  2603. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/resolve-config-value.d.ts.map +0 -0
  2604. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/resolve-config-value.js +0 -0
  2605. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/resolve-config-value.js.map +0 -0
  2606. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/resource-loader.d.ts +0 -0
  2607. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/resource-loader.d.ts.map +0 -0
  2608. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/resource-loader.js +0 -0
  2609. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/resource-loader.js.map +0 -0
  2610. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/session-cwd.d.ts +0 -0
  2611. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/session-cwd.d.ts.map +0 -0
  2612. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/session-cwd.js +0 -0
  2613. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/session-cwd.js.map +0 -0
  2614. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/settings-manager.js +0 -0
  2615. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/skills.d.ts +0 -0
  2616. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/slash-commands.d.ts +0 -0
  2617. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/slash-commands.d.ts.map +0 -0
  2618. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/slash-commands.js +0 -0
  2619. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/slash-commands.js.map +0 -0
  2620. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/source-info.d.ts +0 -0
  2621. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/source-info.d.ts.map +0 -0
  2622. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/source-info.js +0 -0
  2623. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/source-info.js.map +0 -0
  2624. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/system-prompt.d.ts +0 -0
  2625. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/system-prompt.d.ts.map +0 -0
  2626. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/system-prompt.js +0 -0
  2627. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/system-prompt.js.map +0 -0
  2628. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/telemetry.d.ts +0 -0
  2629. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/telemetry.d.ts.map +0 -0
  2630. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/telemetry.js +0 -0
  2631. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/telemetry.js.map +0 -0
  2632. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/timings.d.ts +0 -0
  2633. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/timings.d.ts.map +0 -0
  2634. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/timings.js +0 -0
  2635. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/timings.js.map +0 -0
  2636. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/edit-diff.d.ts +0 -0
  2637. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/edit-diff.d.ts.map +0 -0
  2638. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/edit-diff.js +0 -0
  2639. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/edit-diff.js.map +0 -0
  2640. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/file-mutation-queue.d.ts +0 -0
  2641. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/file-mutation-queue.d.ts.map +0 -0
  2642. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/file-mutation-queue.js +0 -0
  2643. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/file-mutation-queue.js.map +0 -0
  2644. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/index.js +0 -0
  2645. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/output-accumulator.d.ts +0 -0
  2646. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/output-accumulator.d.ts.map +0 -0
  2647. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/output-accumulator.js +0 -0
  2648. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/output-accumulator.js.map +0 -0
  2649. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/path-utils.d.ts +0 -0
  2650. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/path-utils.d.ts.map +0 -0
  2651. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/path-utils.js +0 -0
  2652. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/path-utils.js.map +0 -0
  2653. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/tool-definition-wrapper.js +0 -0
  2654. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/truncate.d.ts.map +0 -0
  2655. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/truncate.js +0 -0
  2656. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/core/tools/truncate.js.map +0 -0
  2657. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/index.d.ts +0 -0
  2658. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/index.d.ts.map +0 -0
  2659. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/index.js +0 -0
  2660. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/index.js.map +0 -0
  2661. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/main.d.ts +0 -0
  2662. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/migrations.d.ts +0 -0
  2663. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/migrations.d.ts.map +0 -0
  2664. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/migrations.js +0 -0
  2665. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/migrations.js.map +0 -0
  2666. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/index.d.ts +0 -0
  2667. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/index.d.ts.map +0 -0
  2668. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/index.js +0 -0
  2669. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/index.js.map +0 -0
  2670. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/assets/clankolas.png +0 -0
  2671. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/armin.js +0 -0
  2672. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js +0 -0
  2673. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/daxnuts.js +0 -0
  2674. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/diff.d.ts +0 -0
  2675. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/diff.d.ts.map +0 -0
  2676. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/diff.js +0 -0
  2677. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/diff.js.map +0 -0
  2678. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js +0 -0
  2679. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/index.d.ts +0 -0
  2680. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/index.d.ts.map +0 -0
  2681. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/index.js +0 -0
  2682. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/index.js.map +0 -0
  2683. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/session-selector-search.d.ts +0 -0
  2684. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/visual-truncate.d.ts +0 -0
  2685. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/interactive/theme/theme-schema.json +0 -0
  2686. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/print-mode.js +0 -0
  2687. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/rpc/jsonl.d.ts +0 -0
  2688. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/rpc/jsonl.d.ts.map +0 -0
  2689. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/rpc/jsonl.js +0 -0
  2690. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/rpc/jsonl.js.map +0 -0
  2691. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/rpc/rpc-client.js +0 -0
  2692. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts +0 -0
  2693. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/modes/rpc/rpc-types.js +0 -0
  2694. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/package-manager-cli.d.ts +0 -0
  2695. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/package-manager-cli.d.ts.map +0 -0
  2696. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/package-manager-cli.js +0 -0
  2697. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/package-manager-cli.js.map +0 -0
  2698. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/changelog.d.ts +0 -0
  2699. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/changelog.d.ts.map +0 -0
  2700. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/changelog.js +0 -0
  2701. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/changelog.js.map +0 -0
  2702. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/child-process.d.ts +0 -0
  2703. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/child-process.d.ts.map +0 -0
  2704. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/child-process.js +0 -0
  2705. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/child-process.js.map +0 -0
  2706. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard-image.d.ts +0 -0
  2707. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard-image.d.ts.map +0 -0
  2708. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard-image.js +0 -0
  2709. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard-image.js.map +0 -0
  2710. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard-native.d.ts +0 -0
  2711. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard-native.d.ts.map +0 -0
  2712. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard-native.js +0 -0
  2713. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard-native.js.map +0 -0
  2714. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard.d.ts +0 -0
  2715. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard.d.ts.map +0 -0
  2716. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard.js +0 -0
  2717. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/clipboard.js.map +0 -0
  2718. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/exif-orientation.d.ts +0 -0
  2719. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/exif-orientation.d.ts.map +0 -0
  2720. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/exif-orientation.js +0 -0
  2721. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/exif-orientation.js.map +0 -0
  2722. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/frontmatter.d.ts +0 -0
  2723. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/frontmatter.d.ts.map +0 -0
  2724. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/frontmatter.js +0 -0
  2725. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/frontmatter.js.map +0 -0
  2726. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/fs-watch.d.ts +0 -0
  2727. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/fs-watch.d.ts.map +0 -0
  2728. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/fs-watch.js +0 -0
  2729. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/fs-watch.js.map +0 -0
  2730. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/git.d.ts +0 -0
  2731. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/git.d.ts.map +0 -0
  2732. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/git.js +0 -0
  2733. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/git.js.map +0 -0
  2734. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/image-convert.d.ts +0 -0
  2735. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/image-convert.d.ts.map +0 -0
  2736. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/image-convert.js +0 -0
  2737. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/image-convert.js.map +0 -0
  2738. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/image-resize.js +0 -0
  2739. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/paths.d.ts +0 -0
  2740. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/paths.d.ts.map +0 -0
  2741. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/paths.js +0 -0
  2742. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/paths.js.map +0 -0
  2743. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/photon.d.ts +0 -0
  2744. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/photon.d.ts.map +0 -0
  2745. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/photon.js +0 -0
  2746. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/photon.js.map +0 -0
  2747. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/pi-user-agent.d.ts +0 -0
  2748. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/pi-user-agent.d.ts.map +0 -0
  2749. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/pi-user-agent.js +0 -0
  2750. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/pi-user-agent.js.map +0 -0
  2751. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/shell.d.ts +0 -0
  2752. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/shell.d.ts.map +0 -0
  2753. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/shell.js +0 -0
  2754. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/shell.js.map +0 -0
  2755. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/sleep.d.ts +0 -0
  2756. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/sleep.d.ts.map +0 -0
  2757. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/sleep.js +0 -0
  2758. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/sleep.js.map +0 -0
  2759. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/tools-manager.d.ts +0 -0
  2760. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/version-check.d.ts +0 -0
  2761. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/version-check.d.ts.map +0 -0
  2762. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/version-check.js +0 -0
  2763. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/dist/utils/version-check.js.map +0 -0
  2764. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/development.md +0 -0
  2765. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/docs.json +0 -0
  2766. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/images/doom-extension.png +0 -0
  2767. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/images/exy.png +0 -0
  2768. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/images/interactive-mode.png +0 -0
  2769. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/images/tree-view.png +0 -0
  2770. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/json.md +0 -0
  2771. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/keybindings.md +0 -0
  2772. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/prompt-templates.md +0 -0
  2773. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/sessions.md +0 -0
  2774. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/settings.md +0 -0
  2775. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/shell-aliases.md +0 -0
  2776. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/terminal-setup.md +0 -0
  2777. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/tmux.md +0 -0
  2778. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/usage.md +0 -0
  2779. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/docs/windows.md +0 -0
  2780. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/README.md +0 -0
  2781. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/doom-overlay/README.md +0 -0
  2782. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/doom-overlay/doom/build/doom.js +0 -0
  2783. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  2784. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/doom-overlay/doom/build.sh +0 -0
  2785. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +0 -0
  2786. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/doom-overlay/doom-engine.ts +0 -0
  2787. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/doom-overlay/wad-finder.ts +0 -0
  2788. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/dynamic-resources/SKILL.md +0 -0
  2789. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/dynamic-resources/dynamic.md +0 -0
  2790. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/plan-mode/README.md +0 -0
  2791. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/plan-mode/utils.ts +0 -0
  2792. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/subagent/README.md +0 -0
  2793. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/subagent/agents/planner.md +0 -0
  2794. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/subagent/agents/reviewer.md +0 -0
  2795. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/subagent/agents/scout.md +0 -0
  2796. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/subagent/agents/worker.md +0 -0
  2797. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/subagent/prompts/implement-and-review.md +0 -0
  2798. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/subagent/prompts/implement.md +0 -0
  2799. /package/node_modules/{@entelligentsia → @earendil-works}/pi-coding-agent/examples/extensions/subagent/prompts/scout-and-plan.md +0 -0
  2800. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/autocomplete.d.ts +0 -0
  2801. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/autocomplete.d.ts.map +0 -0
  2802. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/autocomplete.js +0 -0
  2803. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/autocomplete.js.map +0 -0
  2804. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/box.d.ts +0 -0
  2805. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/box.d.ts.map +0 -0
  2806. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/box.js +0 -0
  2807. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/box.js.map +0 -0
  2808. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/cancellable-loader.d.ts +0 -0
  2809. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/cancellable-loader.d.ts.map +0 -0
  2810. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/cancellable-loader.js +0 -0
  2811. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/cancellable-loader.js.map +0 -0
  2812. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/editor.d.ts +0 -0
  2813. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/editor.d.ts.map +0 -0
  2814. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/editor.js +0 -0
  2815. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/editor.js.map +0 -0
  2816. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/image.d.ts +0 -0
  2817. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/input.d.ts +0 -0
  2818. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/input.d.ts.map +0 -0
  2819. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/input.js +0 -0
  2820. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/input.js.map +0 -0
  2821. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/loader.d.ts +0 -0
  2822. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/loader.d.ts.map +0 -0
  2823. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/loader.js +0 -0
  2824. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/loader.js.map +0 -0
  2825. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/select-list.d.ts +0 -0
  2826. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/select-list.d.ts.map +0 -0
  2827. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/select-list.js +0 -0
  2828. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/select-list.js.map +0 -0
  2829. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/settings-list.d.ts +0 -0
  2830. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/settings-list.d.ts.map +0 -0
  2831. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/settings-list.js +0 -0
  2832. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/settings-list.js.map +0 -0
  2833. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/spacer.d.ts +0 -0
  2834. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/spacer.d.ts.map +0 -0
  2835. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/spacer.js +0 -0
  2836. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/spacer.js.map +0 -0
  2837. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/text.d.ts +0 -0
  2838. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/text.d.ts.map +0 -0
  2839. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/text.js +0 -0
  2840. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/text.js.map +0 -0
  2841. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/truncated-text.d.ts +0 -0
  2842. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/truncated-text.d.ts.map +0 -0
  2843. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/truncated-text.js +0 -0
  2844. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/components/truncated-text.js.map +0 -0
  2845. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/editor-component.d.ts +0 -0
  2846. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/editor-component.d.ts.map +0 -0
  2847. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/editor-component.js +0 -0
  2848. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/editor-component.js.map +0 -0
  2849. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/fuzzy.d.ts +0 -0
  2850. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/fuzzy.d.ts.map +0 -0
  2851. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/fuzzy.js +0 -0
  2852. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/fuzzy.js.map +0 -0
  2853. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/index.d.ts +0 -0
  2854. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/index.d.ts.map +0 -0
  2855. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/index.js +0 -0
  2856. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/index.js.map +0 -0
  2857. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/keybindings.d.ts +0 -0
  2858. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/keybindings.d.ts.map +0 -0
  2859. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/keybindings.js +0 -0
  2860. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/keybindings.js.map +0 -0
  2861. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/keys.d.ts +0 -0
  2862. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/keys.d.ts.map +0 -0
  2863. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/keys.js +0 -0
  2864. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/keys.js.map +0 -0
  2865. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/kill-ring.d.ts +0 -0
  2866. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/kill-ring.d.ts.map +0 -0
  2867. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/kill-ring.js +0 -0
  2868. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/kill-ring.js.map +0 -0
  2869. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/stdin-buffer.d.ts +0 -0
  2870. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/terminal.d.ts +0 -0
  2871. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/terminal.d.ts.map +0 -0
  2872. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/terminal.js +0 -0
  2873. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/terminal.js.map +0 -0
  2874. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/tui.d.ts +0 -0
  2875. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/tui.d.ts.map +0 -0
  2876. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/tui.js +0 -0
  2877. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/tui.js.map +0 -0
  2878. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/undo-stack.d.ts +0 -0
  2879. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/undo-stack.d.ts.map +0 -0
  2880. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/undo-stack.js +0 -0
  2881. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/undo-stack.js.map +0 -0
  2882. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/utils.d.ts +0 -0
  2883. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/utils.d.ts.map +0 -0
  2884. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/utils.js +0 -0
  2885. /package/node_modules/{@entelligentsia → @earendil-works}/pi-tui/dist/utils.js.map +0 -0
@@ -1,4625 +0,0 @@
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 { getProviders, } from "@entelligentsia/pi-ai";
10
- import { CombinedAutocompleteProvider, Container, fuzzyFilter, Loader, Markdown, matchesKey, ProcessTerminal, Spacer, setKeybindings, Text, TruncatedText, TUI, visibleWidth, } from "@entelligentsia/pi-tui";
11
- import { spawn, spawnSync } from "child_process";
12
- import { APP_NAME, APP_TITLE, getAgentDir, getAuthPath, getDebugLogPath, getDocsPath, getShareViewerUrl, VERSION, } from "../../config.js";
13
- import { parseSkillBlock } from "../../core/agent-session.js";
14
- import { SessionImportFileNotFoundError } from "../../core/agent-session-runtime.js";
15
- import { FooterDataProvider } from "../../core/footer-data-provider.js";
16
- import { KeybindingsManager } from "../../core/keybindings.js";
17
- import { createCompactionSummaryMessage } from "../../core/messages.js";
18
- import { defaultModelPerProvider, findExactModelReferenceMatch, resolveModelScope } from "../../core/model-resolver.js";
19
- import { DefaultPackageManager } from "../../core/package-manager.js";
20
- import { BUILT_IN_PROVIDER_DISPLAY_NAMES } from "../../core/provider-display-names.js";
21
- import { formatMissingSessionCwdPrompt, MissingSessionCwdError } from "../../core/session-cwd.js";
22
- import { SessionManager } from "../../core/session-manager.js";
23
- import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
24
- import { isInstallTelemetryEnabled } from "../../core/telemetry.js";
25
- import { getChangelogPath, getNewEntries, parseChangelog } from "../../utils/changelog.js";
26
- import { copyToClipboard } from "../../utils/clipboard.js";
27
- import { extensionForImageMimeType, readClipboardImage } from "../../utils/clipboard-image.js";
28
- import { parseGitUrl } from "../../utils/git.js";
29
- import { getCwdRelativePath } from "../../utils/paths.js";
30
- import { getPiUserAgent } from "../../utils/pi-user-agent.js";
31
- import { killTrackedDetachedChildren } from "../../utils/shell.js";
32
- import { ensureTool } from "../../utils/tools-manager.js";
33
- import { checkForNewPiVersion } from "../../utils/version-check.js";
34
- import { ArminComponent } from "./components/armin.js";
35
- import { AssistantMessageComponent } from "./components/assistant-message.js";
36
- import { BashExecutionComponent } from "./components/bash-execution.js";
37
- import { BorderedLoader } from "./components/bordered-loader.js";
38
- import { BranchSummaryMessageComponent } from "./components/branch-summary-message.js";
39
- import { CompactionSummaryMessageComponent } from "./components/compaction-summary-message.js";
40
- import { CountdownTimer } from "./components/countdown-timer.js";
41
- import { CustomEditor } from "./components/custom-editor.js";
42
- import { CustomMessageComponent } from "./components/custom-message.js";
43
- import { DaxnutsComponent } from "./components/daxnuts.js";
44
- import { DynamicBorder } from "./components/dynamic-border.js";
45
- import { EarendilAnnouncementComponent } from "./components/earendil-announcement.js";
46
- import { ExtensionEditorComponent } from "./components/extension-editor.js";
47
- import { ExtensionInputComponent } from "./components/extension-input.js";
48
- import { ExtensionSelectorComponent } from "./components/extension-selector.js";
49
- import { FooterComponent } from "./components/footer.js";
50
- import { keyHint, keyText, rawKeyHint } from "./components/keybinding-hints.js";
51
- import { LoginDialogComponent } from "./components/login-dialog.js";
52
- import { ModelSelectorComponent } from "./components/model-selector.js";
53
- import { OAuthSelectorComponent } from "./components/oauth-selector.js";
54
- import { ScopedModelsSelectorComponent } from "./components/scoped-models-selector.js";
55
- import { SessionSelectorComponent } from "./components/session-selector.js";
56
- import { SettingsSelectorComponent } from "./components/settings-selector.js";
57
- import { SkillInvocationMessageComponent } from "./components/skill-invocation-message.js";
58
- import { ToolExecutionComponent } from "./components/tool-execution.js";
59
- import { TreeSelectorComponent } from "./components/tree-selector.js";
60
- import { UserMessageComponent } from "./components/user-message.js";
61
- import { UserMessageSelectorComponent } from "./components/user-message-selector.js";
62
- import { getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getThemeByName, initTheme, onThemeChange, setRegisteredThemes, setTheme, setThemeInstance, stopThemeWatcher, Theme, theme, } from "./theme/theme.js";
63
- function isExpandable(obj) {
64
- return typeof obj === "object" && obj !== null && "setExpanded" in obj && typeof obj.setExpanded === "function";
65
- }
66
- class ExpandableText extends Text {
67
- getCollapsedText;
68
- getExpandedText;
69
- constructor(getCollapsedText, getExpandedText, expanded = false, paddingX = 0, paddingY = 0) {
70
- super(expanded ? getExpandedText() : getCollapsedText(), paddingX, paddingY);
71
- this.getCollapsedText = getCollapsedText;
72
- this.getExpandedText = getExpandedText;
73
- }
74
- setExpanded(expanded) {
75
- this.setText(expanded ? this.getExpandedText() : this.getCollapsedText());
76
- }
77
- }
78
- /**
79
- * Container that can have its rendered output overridden by a single Component.
80
- *
81
- * Used for the chat output viewport. By default it renders its children (the
82
- * normal message history). When `sourceOverride` is set, it delegates rendering
83
- * to that component instead, while preserving the original children so the
84
- * override can be cleared without rebuilding history.
85
- *
86
- * Drives the extension-side `ctx.ui.setOutputSource(component)` API — extensions
87
- * that mount a swap-target (e.g. a thread-switcher viewing a subagent tail) can
88
- * take over the main chat viewport on user command and restore it on dismiss.
89
- */
90
- class SourceOverridableContainer extends Container {
91
- sourceOverride = null;
92
- render(width) {
93
- if (this.sourceOverride) {
94
- return this.sourceOverride.render(width);
95
- }
96
- return super.render(width);
97
- }
98
- invalidate() {
99
- this.sourceOverride?.invalidate?.();
100
- super.invalidate();
101
- }
102
- }
103
- const DEAD_TERMINAL_ERROR_CODES = new Set(["EIO", "EPIPE", "ENOTCONN"]);
104
- function isDeadTerminalError(error) {
105
- if (!error || typeof error !== "object" || !("code" in error)) {
106
- return false;
107
- }
108
- const code = error.code;
109
- return code !== undefined && DEAD_TERMINAL_ERROR_CODES.has(code);
110
- }
111
- const ANTHROPIC_SUBSCRIPTION_AUTH_WARNING = "Anthropic subscription auth is active. Third-party harness usage draws from extra usage and is billed per token, not your Claude plan limits. Manage extra usage at https://claude.ai/settings/usage.";
112
- function isAnthropicSubscriptionAuthKey(apiKey) {
113
- return typeof apiKey === "string" && apiKey.startsWith("sk-ant-oat");
114
- }
115
- function isUnknownModel(model) {
116
- return !!model && model.provider === "unknown" && model.id === "unknown" && model.api === "unknown";
117
- }
118
- function hasDefaultModelProvider(providerId) {
119
- return providerId in defaultModelPerProvider;
120
- }
121
- const BEDROCK_PROVIDER_ID = "amazon-bedrock";
122
- const BUILT_IN_MODEL_PROVIDERS = new Set(getProviders());
123
- export function isApiKeyLoginProvider(providerId, oauthProviderIds, builtInProviderIds = BUILT_IN_MODEL_PROVIDERS) {
124
- if (BUILT_IN_PROVIDER_DISPLAY_NAMES[providerId]) {
125
- return true;
126
- }
127
- if (builtInProviderIds.has(providerId)) {
128
- return false;
129
- }
130
- return !oauthProviderIds.has(providerId);
131
- }
132
- export class InteractiveMode {
133
- options;
134
- runtimeHost;
135
- ui;
136
- chatContainer;
137
- pendingMessagesContainer;
138
- statusContainer;
139
- defaultEditor;
140
- editor;
141
- editorComponentFactory;
142
- autocompleteProvider;
143
- autocompleteProviderWrappers = [];
144
- fdPath;
145
- editorContainer;
146
- footer;
147
- footerDataProvider;
148
- // Stored so the same manager can be injected into custom editors, selectors, and extension UI.
149
- keybindings;
150
- version;
151
- isInitialized = false;
152
- onInputCallback;
153
- loadingAnimation = undefined;
154
- workingMessage = undefined;
155
- workingVisible = true;
156
- workingIndicatorOptions = undefined;
157
- defaultWorkingMessage = "Working...";
158
- defaultHiddenThinkingLabel = "Thinking...";
159
- hiddenThinkingLabel = this.defaultHiddenThinkingLabel;
160
- lastSigintTime = 0;
161
- lastEscapeTime = 0;
162
- changelogMarkdown = undefined;
163
- startupNoticesShown = false;
164
- anthropicSubscriptionWarningShown = false;
165
- // Status line tracking (for mutating immediately-sequential status updates)
166
- lastStatusSpacer = undefined;
167
- lastStatusText = undefined;
168
- // Streaming message tracking
169
- streamingComponent = undefined;
170
- streamingMessage = undefined;
171
- // Tool execution tracking: toolCallId -> component
172
- pendingTools = new Map();
173
- // Tool output expansion state
174
- toolOutputExpanded = false;
175
- // Thinking block visibility state
176
- hideThinkingBlock = false;
177
- // Skill commands: command name -> skill file path
178
- skillCommands = new Map();
179
- // Agent subscription unsubscribe function
180
- unsubscribe;
181
- signalCleanupHandlers = [];
182
- // Track if editor is in bash mode (text starts with !)
183
- isBashMode = false;
184
- // Track current bash execution component
185
- bashComponent = undefined;
186
- // Track pending bash components (shown in pending area, moved to chat on submit)
187
- pendingBashComponents = [];
188
- // Auto-compaction state
189
- autoCompactionLoader = undefined;
190
- autoCompactionEscapeHandler;
191
- // Auto-retry state
192
- retryLoader = undefined;
193
- retryCountdown = undefined;
194
- retryEscapeHandler;
195
- // Messages queued while compaction is running
196
- compactionQueuedMessages = [];
197
- // Shutdown state
198
- shutdownRequested = false;
199
- // Extension UI state
200
- extensionSelector = undefined;
201
- extensionInput = undefined;
202
- extensionEditor = undefined;
203
- extensionTerminalInputUnsubscribers = new Set();
204
- // Extension widgets (components rendered above/below the editor)
205
- extensionWidgetsAbove = new Map();
206
- extensionWidgetsBelow = new Map();
207
- widgetContainerAbove;
208
- widgetContainerBelow;
209
- // Custom footer from extension (undefined = use built-in footer)
210
- customFooter = undefined;
211
- // Header container that holds the built-in or custom header
212
- headerContainer;
213
- // Built-in header (logo + keybinding hints + changelog)
214
- builtInHeader = undefined;
215
- // Custom header from extension (undefined = use built-in header)
216
- customHeader = undefined;
217
- // Convenience accessors
218
- get session() {
219
- return this.runtimeHost.session;
220
- }
221
- get agent() {
222
- return this.session.agent;
223
- }
224
- get sessionManager() {
225
- return this.session.sessionManager;
226
- }
227
- get settingsManager() {
228
- return this.session.settingsManager;
229
- }
230
- constructor(runtimeHost, options = {}) {
231
- this.options = options;
232
- this.runtimeHost = runtimeHost;
233
- this.runtimeHost.setBeforeSessionInvalidate(() => {
234
- this.resetExtensionUI();
235
- });
236
- this.runtimeHost.setRebindSession(async () => {
237
- await this.rebindCurrentSession();
238
- });
239
- this.version = VERSION;
240
- this.ui = new TUI(new ProcessTerminal(), this.settingsManager.getShowHardwareCursor());
241
- this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink());
242
- this.headerContainer = new Container();
243
- this.chatContainer = new SourceOverridableContainer();
244
- this.pendingMessagesContainer = new Container();
245
- this.statusContainer = new Container();
246
- this.widgetContainerAbove = new Container();
247
- this.widgetContainerBelow = new Container();
248
- this.keybindings = KeybindingsManager.create();
249
- setKeybindings(this.keybindings);
250
- const editorPaddingX = this.settingsManager.getEditorPaddingX();
251
- const autocompleteMaxVisible = this.settingsManager.getAutocompleteMaxVisible();
252
- this.defaultEditor = new CustomEditor(this.ui, getEditorTheme(), this.keybindings, {
253
- paddingX: editorPaddingX,
254
- autocompleteMaxVisible,
255
- });
256
- this.editor = this.defaultEditor;
257
- this.editorContainer = new Container();
258
- this.editorContainer.addChild(this.editor);
259
- this.footerDataProvider = new FooterDataProvider(this.sessionManager.getCwd());
260
- this.footer = new FooterComponent(this.session, this.footerDataProvider);
261
- this.footer.setAutoCompactEnabled(this.session.autoCompactionEnabled);
262
- // Load hide thinking block setting
263
- this.hideThinkingBlock = this.settingsManager.getHideThinkingBlock();
264
- // Register themes from resource loader and initialize
265
- setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
266
- initTheme(this.settingsManager.getTheme(), true);
267
- }
268
- getAutocompleteSourceTag(sourceInfo) {
269
- if (!sourceInfo) {
270
- return undefined;
271
- }
272
- const scopePrefix = sourceInfo.scope === "user" ? "u" : sourceInfo.scope === "project" ? "p" : "t";
273
- const source = sourceInfo.source.trim();
274
- if (source === "auto" || source === "local" || source === "cli") {
275
- return scopePrefix;
276
- }
277
- if (source.startsWith("npm:")) {
278
- return `${scopePrefix}:${source}`;
279
- }
280
- const gitSource = parseGitUrl(source);
281
- if (gitSource) {
282
- const ref = gitSource.ref ? `@${gitSource.ref}` : "";
283
- return `${scopePrefix}:git:${gitSource.host}/${gitSource.path}${ref}`;
284
- }
285
- return scopePrefix;
286
- }
287
- prefixAutocompleteDescription(description, sourceInfo) {
288
- const sourceTag = this.getAutocompleteSourceTag(sourceInfo);
289
- if (!sourceTag) {
290
- return description;
291
- }
292
- return description ? `[${sourceTag}] ${description}` : `[${sourceTag}]`;
293
- }
294
- getBuiltInCommandConflictDiagnostics(extensionRunner) {
295
- const builtinNames = new Set(BUILTIN_SLASH_COMMANDS.map((command) => command.name));
296
- return extensionRunner
297
- .getRegisteredCommands()
298
- .filter((command) => builtinNames.has(command.name))
299
- .map((command) => ({
300
- type: "warning",
301
- message: command.invocationName === command.name
302
- ? `Extension command '/${command.name}' conflicts with built-in interactive command. Skipping in autocomplete.`
303
- : `Extension command '/${command.name}' conflicts with built-in interactive command. Available as '/${command.invocationName}'.`,
304
- path: command.sourceInfo.path,
305
- }));
306
- }
307
- createBaseAutocompleteProvider() {
308
- // Define commands for autocomplete
309
- const slashCommands = BUILTIN_SLASH_COMMANDS.map((command) => ({
310
- name: command.name,
311
- description: command.description,
312
- }));
313
- const modelCommand = slashCommands.find((command) => command.name === "model");
314
- if (modelCommand) {
315
- modelCommand.getArgumentCompletions = (prefix) => {
316
- // Get available models (scoped or from registry)
317
- const models = this.session.scopedModels.length > 0
318
- ? this.session.scopedModels.map((s) => s.model)
319
- : this.session.modelRegistry.getAvailable();
320
- if (models.length === 0)
321
- return null;
322
- // Create items with provider/id format
323
- const items = models.map((m) => ({
324
- id: m.id,
325
- provider: m.provider,
326
- label: `${m.provider}/${m.id}`,
327
- }));
328
- // Fuzzy filter by model ID + provider (allows "opus anthropic" to match)
329
- const filtered = fuzzyFilter(items, prefix, (item) => `${item.id} ${item.provider}`);
330
- if (filtered.length === 0)
331
- return null;
332
- return filtered.map((item) => ({
333
- value: item.label,
334
- label: item.id,
335
- description: item.provider,
336
- }));
337
- };
338
- }
339
- // Convert prompt templates to SlashCommand format for autocomplete
340
- const templateCommands = this.session.promptTemplates.map((cmd) => ({
341
- name: cmd.name,
342
- description: this.prefixAutocompleteDescription(cmd.description, cmd.sourceInfo),
343
- ...(cmd.argumentHint && { argumentHint: cmd.argumentHint }),
344
- }));
345
- // Convert extension commands to SlashCommand format
346
- const builtinCommandNames = new Set(slashCommands.map((c) => c.name));
347
- const extensionCommands = this.session.extensionRunner
348
- .getRegisteredCommands()
349
- .filter((cmd) => !builtinCommandNames.has(cmd.name))
350
- .map((cmd) => ({
351
- name: cmd.invocationName,
352
- description: this.prefixAutocompleteDescription(cmd.description, cmd.sourceInfo),
353
- getArgumentCompletions: cmd.getArgumentCompletions,
354
- }));
355
- // Build skill commands from session.skills (if enabled)
356
- this.skillCommands.clear();
357
- const skillCommandList = [];
358
- if (this.settingsManager.getEnableSkillCommands()) {
359
- for (const skill of this.session.resourceLoader.getSkills().skills) {
360
- const commandName = `skill:${skill.name}`;
361
- this.skillCommands.set(commandName, skill.filePath);
362
- skillCommandList.push({
363
- name: commandName,
364
- description: this.prefixAutocompleteDescription(skill.description, skill.sourceInfo),
365
- });
366
- }
367
- }
368
- return new CombinedAutocompleteProvider([...slashCommands, ...templateCommands, ...extensionCommands, ...skillCommandList], this.sessionManager.getCwd(), this.fdPath);
369
- }
370
- setupAutocompleteProvider() {
371
- let provider = this.createBaseAutocompleteProvider();
372
- for (const wrapProvider of this.autocompleteProviderWrappers) {
373
- provider = wrapProvider(provider);
374
- }
375
- this.autocompleteProvider = provider;
376
- this.defaultEditor.setAutocompleteProvider(provider);
377
- if (this.editor !== this.defaultEditor) {
378
- this.editor.setAutocompleteProvider?.(provider);
379
- }
380
- }
381
- showStartupNoticesIfNeeded() {
382
- if (this.startupNoticesShown) {
383
- return;
384
- }
385
- this.startupNoticesShown = true;
386
- if (!this.changelogMarkdown) {
387
- return;
388
- }
389
- if (this.chatContainer.children.length > 0) {
390
- this.chatContainer.addChild(new Spacer(1));
391
- }
392
- this.chatContainer.addChild(new DynamicBorder());
393
- if (this.settingsManager.getCollapseChangelog()) {
394
- const versionMatch = this.changelogMarkdown.match(/##\s+\[?(\d+\.\d+\.\d+)\]?/);
395
- const latestVersion = versionMatch ? versionMatch[1] : this.version;
396
- const condensedText = `Updated to v${latestVersion}. Use ${theme.bold("/changelog")} to view full changelog.`;
397
- this.chatContainer.addChild(new Text(condensedText, 1, 0));
398
- }
399
- else {
400
- this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "What's New")), 1, 0));
401
- this.chatContainer.addChild(new Spacer(1));
402
- this.chatContainer.addChild(new Markdown(this.changelogMarkdown.trim(), 1, 0, this.getMarkdownThemeWithSettings()));
403
- this.chatContainer.addChild(new Spacer(1));
404
- }
405
- this.chatContainer.addChild(new DynamicBorder());
406
- }
407
- async init() {
408
- if (this.isInitialized)
409
- return;
410
- this.registerSignalHandlers();
411
- // Load changelog (only show new entries, skip for resumed sessions)
412
- this.changelogMarkdown = this.getChangelogForDisplay();
413
- // Ensure fd and rg are available (downloads if missing, adds to PATH via getBinDir)
414
- // Both are needed: fd for autocomplete, rg for grep tool and bash commands
415
- const [fdPath] = await Promise.all([ensureTool("fd"), ensureTool("rg")]);
416
- this.fdPath = fdPath;
417
- // Add header container as first child
418
- this.ui.addChild(this.headerContainer);
419
- // Add header with keybindings from config (unless silenced)
420
- if (this.options.verbose || !this.settingsManager.getQuietStartup()) {
421
- const logo = theme.bold(theme.fg("accent", APP_NAME)) + theme.fg("dim", ` v${this.version}`);
422
- // Build startup instructions using keybinding hint helpers
423
- const hint = (keybinding, description) => keyHint(keybinding, description);
424
- const expandedInstructions = [
425
- hint("app.interrupt", "to interrupt"),
426
- hint("app.clear", "to clear"),
427
- rawKeyHint(`${keyText("app.clear")} twice`, "to exit"),
428
- hint("app.exit", "to exit (empty)"),
429
- hint("app.suspend", "to suspend"),
430
- keyHint("tui.editor.deleteToLineEnd", "to delete to end"),
431
- hint("app.thinking.cycle", "to cycle thinking level"),
432
- rawKeyHint(`${keyText("app.model.cycleForward")}/${keyText("app.model.cycleBackward")}`, "to cycle models"),
433
- hint("app.model.select", "to select model"),
434
- hint("app.tools.expand", "to expand tools"),
435
- hint("app.thinking.toggle", "to expand thinking"),
436
- hint("app.editor.external", "for external editor"),
437
- rawKeyHint("/", "for commands"),
438
- rawKeyHint("!", "to run bash"),
439
- rawKeyHint("!!", "to run bash (no context)"),
440
- hint("app.message.followUp", "to queue follow-up"),
441
- hint("app.message.dequeue", "to edit all queued messages"),
442
- hint("app.clipboard.pasteImage", "to paste image"),
443
- rawKeyHint("drop files", "to attach"),
444
- ].join("\n");
445
- const compactInstructions = [
446
- hint("app.interrupt", "interrupt"),
447
- rawKeyHint(`${keyText("app.clear")}/${keyText("app.exit")}`, "clear/exit"),
448
- rawKeyHint("/", "commands"),
449
- rawKeyHint("!", "bash"),
450
- hint("app.tools.expand", "more"),
451
- ].join(theme.fg("muted", " · "));
452
- const compactOnboarding = theme.fg("dim", `Press ${keyText("app.tools.expand")} to show full startup help and loaded resources.`);
453
- const onboarding = theme.fg("dim", `Pi can explain its own features and look up its docs. Ask it how to use or extend Pi.`);
454
- this.builtInHeader = new ExpandableText(() => `${logo}\n${compactInstructions}\n${compactOnboarding}\n\n${onboarding}`, () => `${logo}\n${expandedInstructions}\n\n${onboarding}`, this.getStartupExpansionState(), 1, 0);
455
- // Setup UI layout
456
- this.headerContainer.addChild(new Spacer(1));
457
- this.headerContainer.addChild(this.builtInHeader);
458
- this.headerContainer.addChild(new Spacer(1));
459
- }
460
- else {
461
- // Minimal header when silenced
462
- this.builtInHeader = new Text("", 0, 0);
463
- this.headerContainer.addChild(this.builtInHeader);
464
- }
465
- this.ui.addChild(this.chatContainer);
466
- this.ui.addChild(this.pendingMessagesContainer);
467
- this.ui.addChild(this.statusContainer);
468
- this.renderWidgets(); // Initialize with default spacer
469
- this.ui.addChild(this.widgetContainerAbove);
470
- this.ui.addChild(this.editorContainer);
471
- this.ui.addChild(this.widgetContainerBelow);
472
- this.ui.addChild(this.footer);
473
- this.ui.setFocus(this.editor);
474
- this.setupKeyHandlers();
475
- this.setupEditorSubmitHandler();
476
- // Start the UI before initializing extensions so session_start handlers can use interactive dialogs
477
- this.ui.start();
478
- this.isInitialized = true;
479
- // Initialize extensions first so resources are shown before messages
480
- await this.rebindCurrentSession();
481
- // Render initial messages AFTER showing loaded resources
482
- this.renderInitialMessages();
483
- // Set up theme file watcher
484
- onThemeChange(() => {
485
- this.ui.invalidate();
486
- this.updateEditorBorderColor();
487
- this.ui.requestRender();
488
- });
489
- // Set up git branch watcher (uses provider instead of footer)
490
- this.footerDataProvider.onBranchChange(() => {
491
- this.ui.requestRender();
492
- });
493
- // Initialize available provider count for footer display
494
- await this.updateAvailableProviderCount();
495
- }
496
- /**
497
- * Update terminal title with session name and cwd.
498
- */
499
- updateTerminalTitle() {
500
- const cwdBasename = path.basename(this.sessionManager.getCwd());
501
- const sessionName = this.sessionManager.getSessionName();
502
- if (sessionName) {
503
- this.ui.terminal.setTitle(`${APP_TITLE} - ${sessionName} - ${cwdBasename}`);
504
- }
505
- else {
506
- this.ui.terminal.setTitle(`${APP_TITLE} - ${cwdBasename}`);
507
- }
508
- }
509
- /**
510
- * Run the interactive mode. This is the main entry point.
511
- * Initializes the UI, shows warnings, processes initial messages, and starts the interactive loop.
512
- */
513
- async run() {
514
- await this.init();
515
- // Start version check asynchronously
516
- checkForNewPiVersion(this.version).then((newVersion) => {
517
- if (newVersion) {
518
- this.showNewVersionNotification(newVersion);
519
- }
520
- });
521
- // Start package update check asynchronously
522
- this.checkForPackageUpdates().then((updates) => {
523
- if (updates.length > 0) {
524
- this.showPackageUpdateNotification(updates);
525
- }
526
- });
527
- // Check tmux keyboard setup asynchronously
528
- this.checkTmuxKeyboardSetup().then((warning) => {
529
- if (warning) {
530
- this.showWarning(warning);
531
- }
532
- });
533
- // Show startup warnings
534
- const { migratedProviders, modelFallbackMessage, initialMessage, initialImages, initialMessages } = this.options;
535
- if (migratedProviders && migratedProviders.length > 0) {
536
- this.showWarning(`Migrated credentials to auth.json: ${migratedProviders.join(", ")}`);
537
- }
538
- const modelsJsonError = this.session.modelRegistry.getError();
539
- if (modelsJsonError) {
540
- this.showError(`models.json error: ${modelsJsonError}`);
541
- }
542
- if (modelFallbackMessage) {
543
- this.showWarning(modelFallbackMessage);
544
- }
545
- void this.maybeWarnAboutAnthropicSubscriptionAuth();
546
- // Process initial messages
547
- if (initialMessage) {
548
- try {
549
- await this.session.prompt(initialMessage, { images: initialImages });
550
- }
551
- catch (error) {
552
- const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
553
- this.showError(errorMessage);
554
- }
555
- }
556
- if (initialMessages) {
557
- for (const message of initialMessages) {
558
- try {
559
- await this.session.prompt(message);
560
- }
561
- catch (error) {
562
- const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
563
- this.showError(errorMessage);
564
- }
565
- }
566
- }
567
- // Main interactive loop
568
- while (true) {
569
- const userInput = await this.getUserInput();
570
- try {
571
- await this.session.prompt(userInput);
572
- }
573
- catch (error) {
574
- const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
575
- this.showError(errorMessage);
576
- }
577
- }
578
- }
579
- async checkForPackageUpdates() {
580
- if (process.env.PI_OFFLINE) {
581
- return [];
582
- }
583
- try {
584
- const packageManager = new DefaultPackageManager({
585
- cwd: this.sessionManager.getCwd(),
586
- agentDir: getAgentDir(),
587
- settingsManager: this.settingsManager,
588
- });
589
- const updates = await packageManager.checkForAvailableUpdates();
590
- return updates.map((update) => update.displayName);
591
- }
592
- catch {
593
- return [];
594
- }
595
- }
596
- async checkTmuxKeyboardSetup() {
597
- if (!process.env.TMUX)
598
- return undefined;
599
- const runTmuxShow = (option) => {
600
- return new Promise((resolve) => {
601
- const proc = spawn("tmux", ["show", "-gv", option], {
602
- stdio: ["ignore", "pipe", "ignore"],
603
- });
604
- let stdout = "";
605
- const timer = setTimeout(() => {
606
- proc.kill();
607
- resolve(undefined);
608
- }, 2000);
609
- proc.stdout?.on("data", (data) => {
610
- stdout += data.toString();
611
- });
612
- proc.on("error", () => {
613
- clearTimeout(timer);
614
- resolve(undefined);
615
- });
616
- proc.on("close", (code) => {
617
- clearTimeout(timer);
618
- resolve(code === 0 ? stdout.trim() : undefined);
619
- });
620
- });
621
- };
622
- const [extendedKeys, extendedKeysFormat] = await Promise.all([
623
- runTmuxShow("extended-keys"),
624
- runTmuxShow("extended-keys-format"),
625
- ]);
626
- // If we couldn't query tmux (timeout, sandbox, etc.), don't warn
627
- if (extendedKeys === undefined)
628
- return undefined;
629
- if (extendedKeys !== "on" && extendedKeys !== "always") {
630
- return "tmux extended-keys is off. Modified Enter keys may not work. Add `set -g extended-keys on` to ~/.tmux.conf and restart tmux.";
631
- }
632
- if (extendedKeysFormat === "xterm") {
633
- 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.";
634
- }
635
- return undefined;
636
- }
637
- /**
638
- * Get changelog entries to display on startup.
639
- * Only shows new entries since last seen version, skips for resumed sessions.
640
- */
641
- getChangelogForDisplay() {
642
- // Skip changelog for resumed/continued sessions (already have messages)
643
- if (this.session.state.messages.length > 0) {
644
- return undefined;
645
- }
646
- const lastVersion = this.settingsManager.getLastChangelogVersion();
647
- const changelogPath = getChangelogPath();
648
- const entries = parseChangelog(changelogPath);
649
- if (!lastVersion) {
650
- // Fresh install - record the version, send telemetry, don't show changelog
651
- this.settingsManager.setLastChangelogVersion(VERSION);
652
- this.reportInstallTelemetry(VERSION);
653
- return undefined;
654
- }
655
- const newEntries = getNewEntries(entries, lastVersion);
656
- if (newEntries.length > 0) {
657
- this.settingsManager.setLastChangelogVersion(VERSION);
658
- this.reportInstallTelemetry(VERSION);
659
- return newEntries.map((e) => e.content).join("\n\n");
660
- }
661
- return undefined;
662
- }
663
- reportInstallTelemetry(version) {
664
- if (process.env.PI_OFFLINE) {
665
- return;
666
- }
667
- if (!isInstallTelemetryEnabled(this.settingsManager)) {
668
- return;
669
- }
670
- void fetch(`https://pi.dev/api/report-install?version=${encodeURIComponent(version)}`, {
671
- headers: {
672
- "User-Agent": getPiUserAgent(version),
673
- },
674
- signal: AbortSignal.timeout(5000),
675
- })
676
- .then(() => undefined)
677
- .catch(() => undefined);
678
- }
679
- getMarkdownThemeWithSettings() {
680
- return {
681
- ...getMarkdownTheme(),
682
- codeBlockIndent: this.settingsManager.getCodeBlockIndent(),
683
- };
684
- }
685
- // =========================================================================
686
- // Extension System
687
- // =========================================================================
688
- formatDisplayPath(p) {
689
- const home = os.homedir();
690
- let result = p;
691
- // Replace home directory with ~
692
- if (result.startsWith(home)) {
693
- result = `~${result.slice(home.length)}`;
694
- }
695
- return result;
696
- }
697
- formatExtensionDisplayPath(path) {
698
- let result = this.formatDisplayPath(path);
699
- result = result.replace(/\/index\.ts$/, "").replace(/\/index\.js$/, "");
700
- return result;
701
- }
702
- formatContextPath(p) {
703
- const cwd = path.resolve(this.sessionManager.getCwd());
704
- const absolutePath = path.isAbsolute(p) ? path.resolve(p) : path.resolve(cwd, p);
705
- const relativePath = getCwdRelativePath(absolutePath, cwd);
706
- if (relativePath !== undefined) {
707
- return relativePath;
708
- }
709
- return this.formatDisplayPath(absolutePath);
710
- }
711
- getStartupExpansionState() {
712
- return this.options.verbose || this.toolOutputExpanded;
713
- }
714
- /**
715
- * Get a short path relative to the package root for display.
716
- */
717
- getShortPath(fullPath, sourceInfo) {
718
- const baseDir = sourceInfo?.baseDir;
719
- if (baseDir && this.isPackageSource(sourceInfo)) {
720
- const relativePath = path.relative(path.resolve(baseDir), path.resolve(fullPath));
721
- if (relativePath &&
722
- relativePath !== "." &&
723
- !relativePath.startsWith("..") &&
724
- !relativePath.startsWith(`..${path.sep}`) &&
725
- !path.isAbsolute(relativePath)) {
726
- return relativePath.replace(/\\/g, "/");
727
- }
728
- }
729
- const source = sourceInfo?.source ?? "";
730
- const npmMatch = fullPath.match(/node_modules\/(@?[^/]+(?:\/[^/]+)?)\/(.*)/);
731
- if (npmMatch && source.startsWith("npm:")) {
732
- return npmMatch[2];
733
- }
734
- const gitMatch = fullPath.match(/git\/[^/]+\/[^/]+\/(.*)/);
735
- if (gitMatch && source.startsWith("git:")) {
736
- return gitMatch[1];
737
- }
738
- return this.formatDisplayPath(fullPath);
739
- }
740
- getCompactPathLabel(resourcePath, sourceInfo) {
741
- const shortPath = this.getShortPath(resourcePath, sourceInfo);
742
- const normalizedPath = shortPath.replace(/\\/g, "/");
743
- const segments = normalizedPath.split("/").filter((segment) => segment.length > 0 && segment !== "~");
744
- if (segments.length > 0) {
745
- return segments[segments.length - 1];
746
- }
747
- return shortPath;
748
- }
749
- getCompactPackageSourceLabel(sourceInfo) {
750
- const source = sourceInfo?.source ?? "";
751
- if (source.startsWith("npm:")) {
752
- return source.slice("npm:".length) || source;
753
- }
754
- const gitSource = parseGitUrl(source);
755
- if (gitSource) {
756
- return gitSource.path || source;
757
- }
758
- return source;
759
- }
760
- getCompactExtensionLabel(resourcePath, sourceInfo) {
761
- if (!this.isPackageSource(sourceInfo)) {
762
- return this.getCompactPathLabel(resourcePath, sourceInfo);
763
- }
764
- const sourceLabel = this.getCompactPackageSourceLabel(sourceInfo);
765
- if (!sourceLabel) {
766
- return this.getCompactPathLabel(resourcePath, sourceInfo);
767
- }
768
- const shortPath = this.getShortPath(resourcePath, sourceInfo).replace(/\\/g, "/");
769
- const packagePath = shortPath.startsWith("extensions/") ? shortPath.slice("extensions/".length) : shortPath;
770
- const parsedPath = path.posix.parse(packagePath);
771
- if (parsedPath.name === "index") {
772
- return !parsedPath.dir || parsedPath.dir === "." ? sourceLabel : `${sourceLabel}:${parsedPath.dir}`;
773
- }
774
- return `${sourceLabel}:${packagePath}`;
775
- }
776
- getCompactDisplayPathSegments(resourcePath) {
777
- return this.formatDisplayPath(resourcePath)
778
- .replace(/\\/g, "/")
779
- .split("/")
780
- .filter((segment) => segment.length > 0 && segment !== "~");
781
- }
782
- getCompactNonPackageExtensionLabel(resourcePath, index, allPaths) {
783
- const segments = allPaths[index]?.segments;
784
- if (!segments || segments.length === 0) {
785
- return this.getCompactPathLabel(resourcePath);
786
- }
787
- for (let segmentCount = 1; segmentCount <= segments.length; segmentCount += 1) {
788
- const candidate = segments.slice(-segmentCount).join("/");
789
- const isUnique = allPaths.every((item, itemIndex) => {
790
- if (itemIndex === index) {
791
- return true;
792
- }
793
- return item.segments.slice(-segmentCount).join("/") !== candidate;
794
- });
795
- if (isUnique) {
796
- return candidate;
797
- }
798
- }
799
- return segments.join("/");
800
- }
801
- getCompactExtensionLabels(extensions) {
802
- const nonPackageExtensions = extensions
803
- .map((extension) => {
804
- const segments = this.getCompactDisplayPathSegments(extension.path);
805
- const lastSegment = segments[segments.length - 1];
806
- if (segments.length > 1 && (lastSegment === "index.ts" || lastSegment === "index.js")) {
807
- segments.pop();
808
- }
809
- return {
810
- path: extension.path,
811
- sourceInfo: extension.sourceInfo,
812
- segments,
813
- };
814
- })
815
- .filter((extension) => !this.isPackageSource(extension.sourceInfo));
816
- return extensions.map((extension) => {
817
- if (this.isPackageSource(extension.sourceInfo)) {
818
- return this.getCompactExtensionLabel(extension.path, extension.sourceInfo);
819
- }
820
- const nonPackageIndex = nonPackageExtensions.findIndex((item) => item.path === extension.path);
821
- if (nonPackageIndex === -1) {
822
- return this.getCompactPathLabel(extension.path, extension.sourceInfo);
823
- }
824
- return this.getCompactNonPackageExtensionLabel(extension.path, nonPackageIndex, nonPackageExtensions);
825
- });
826
- }
827
- getDisplaySourceInfo(sourceInfo) {
828
- const source = sourceInfo?.source ?? "local";
829
- const scope = sourceInfo?.scope ?? "project";
830
- if (source === "local") {
831
- if (scope === "user") {
832
- return { label: "user", color: "muted" };
833
- }
834
- if (scope === "project") {
835
- return { label: "project", color: "muted" };
836
- }
837
- if (scope === "temporary") {
838
- return { label: "path", scopeLabel: "temp", color: "muted" };
839
- }
840
- return { label: "path", color: "muted" };
841
- }
842
- if (source === "cli") {
843
- return { label: "path", scopeLabel: scope === "temporary" ? "temp" : undefined, color: "muted" };
844
- }
845
- const scopeLabel = scope === "user" ? "user" : scope === "project" ? "project" : scope === "temporary" ? "temp" : undefined;
846
- return { label: source, scopeLabel, color: "accent" };
847
- }
848
- getScopeGroup(sourceInfo) {
849
- const source = sourceInfo?.source ?? "local";
850
- const scope = sourceInfo?.scope ?? "project";
851
- if (source === "cli" || scope === "temporary")
852
- return "path";
853
- if (scope === "user")
854
- return "user";
855
- if (scope === "project")
856
- return "project";
857
- return "path";
858
- }
859
- isPackageSource(sourceInfo) {
860
- const source = sourceInfo?.source ?? "";
861
- return source.startsWith("npm:") || source.startsWith("git:");
862
- }
863
- buildScopeGroups(items) {
864
- const groups = {
865
- user: { scope: "user", paths: [], packages: new Map() },
866
- project: { scope: "project", paths: [], packages: new Map() },
867
- path: { scope: "path", paths: [], packages: new Map() },
868
- };
869
- for (const item of items) {
870
- const groupKey = this.getScopeGroup(item.sourceInfo);
871
- const group = groups[groupKey];
872
- const source = item.sourceInfo?.source ?? "local";
873
- if (this.isPackageSource(item.sourceInfo)) {
874
- const list = group.packages.get(source) ?? [];
875
- list.push(item);
876
- group.packages.set(source, list);
877
- }
878
- else {
879
- group.paths.push(item);
880
- }
881
- }
882
- return [groups.project, groups.user, groups.path].filter((group) => group.paths.length > 0 || group.packages.size > 0);
883
- }
884
- formatScopeGroups(groups, options) {
885
- const lines = [];
886
- for (const group of groups) {
887
- lines.push(` ${theme.fg("accent", group.scope)}`);
888
- const sortedPaths = [...group.paths].sort((a, b) => a.path.localeCompare(b.path));
889
- for (const item of sortedPaths) {
890
- lines.push(theme.fg("dim", ` ${options.formatPath(item)}`));
891
- }
892
- const sortedPackages = Array.from(group.packages.entries()).sort(([a], [b]) => a.localeCompare(b));
893
- for (const [source, items] of sortedPackages) {
894
- lines.push(` ${theme.fg("mdLink", source)}`);
895
- const sortedPackagePaths = [...items].sort((a, b) => a.path.localeCompare(b.path));
896
- for (const item of sortedPackagePaths) {
897
- lines.push(theme.fg("dim", ` ${options.formatPackagePath(item, source)}`));
898
- }
899
- }
900
- }
901
- return lines.join("\n");
902
- }
903
- findSourceInfoForPath(p, sourceInfos) {
904
- const exact = sourceInfos.get(p);
905
- if (exact)
906
- return exact;
907
- let current = p;
908
- while (current.includes("/")) {
909
- current = current.substring(0, current.lastIndexOf("/"));
910
- const parent = sourceInfos.get(current);
911
- if (parent)
912
- return parent;
913
- }
914
- return undefined;
915
- }
916
- formatPathWithSource(p, sourceInfo) {
917
- if (sourceInfo) {
918
- const shortPath = this.getShortPath(p, sourceInfo);
919
- const { label, scopeLabel } = this.getDisplaySourceInfo(sourceInfo);
920
- const labelText = scopeLabel ? `${label} (${scopeLabel})` : label;
921
- return `${labelText} ${shortPath}`;
922
- }
923
- return this.formatDisplayPath(p);
924
- }
925
- formatDiagnostics(diagnostics, sourceInfos) {
926
- const lines = [];
927
- // Group collision diagnostics by name
928
- const collisions = new Map();
929
- const otherDiagnostics = [];
930
- for (const d of diagnostics) {
931
- if (d.type === "collision" && d.collision) {
932
- const list = collisions.get(d.collision.name) ?? [];
933
- list.push(d);
934
- collisions.set(d.collision.name, list);
935
- }
936
- else {
937
- otherDiagnostics.push(d);
938
- }
939
- }
940
- // Format collision diagnostics grouped by name
941
- for (const [name, collisionList] of collisions) {
942
- const first = collisionList[0]?.collision;
943
- if (!first)
944
- continue;
945
- lines.push(theme.fg("warning", ` "${name}" collision:`));
946
- lines.push(theme.fg("dim", ` ${theme.fg("success", "✓")} ${this.formatPathWithSource(first.winnerPath, this.findSourceInfoForPath(first.winnerPath, sourceInfos))}`));
947
- for (const d of collisionList) {
948
- if (d.collision) {
949
- lines.push(theme.fg("dim", ` ${theme.fg("warning", "✗")} ${this.formatPathWithSource(d.collision.loserPath, this.findSourceInfoForPath(d.collision.loserPath, sourceInfos))} (skipped)`));
950
- }
951
- }
952
- }
953
- for (const d of otherDiagnostics) {
954
- if (d.path) {
955
- const formattedPath = this.formatPathWithSource(d.path, this.findSourceInfoForPath(d.path, sourceInfos));
956
- lines.push(theme.fg(d.type === "error" ? "error" : "warning", ` ${formattedPath}`));
957
- lines.push(theme.fg(d.type === "error" ? "error" : "warning", ` ${d.message}`));
958
- }
959
- else {
960
- lines.push(theme.fg(d.type === "error" ? "error" : "warning", ` ${d.message}`));
961
- }
962
- }
963
- return lines.join("\n");
964
- }
965
- showLoadedResources(options) {
966
- const showListing = options?.force || this.options.verbose || !this.settingsManager.getQuietStartup();
967
- const showDiagnostics = showListing || options?.showDiagnosticsWhenQuiet === true;
968
- if (!showListing && !showDiagnostics) {
969
- return;
970
- }
971
- const sectionHeader = (name, color = "mdHeading") => theme.fg(color, `[${name}]`);
972
- const formatCompactList = (items, options) => {
973
- const labels = items.map((item) => item.trim()).filter((item) => item.length > 0);
974
- if (options?.sort !== false) {
975
- labels.sort((a, b) => a.localeCompare(b));
976
- }
977
- return theme.fg("dim", ` ${labels.join(", ")}`);
978
- };
979
- const addLoadedSection = (name, collapsedBody, expandedBody = collapsedBody, color = "mdHeading") => {
980
- const section = new ExpandableText(() => `${sectionHeader(name, color)}\n${collapsedBody}`, () => `${sectionHeader(name, color)}\n${expandedBody}`, this.getStartupExpansionState(), 0, 0);
981
- this.chatContainer.addChild(section);
982
- this.chatContainer.addChild(new Spacer(1));
983
- };
984
- const skillsResult = this.session.resourceLoader.getSkills();
985
- const promptsResult = this.session.resourceLoader.getPrompts();
986
- const themesResult = this.session.resourceLoader.getThemes();
987
- const extensions = options?.extensions ??
988
- this.session.resourceLoader.getExtensions().extensions.map((extension) => ({
989
- path: extension.path,
990
- sourceInfo: extension.sourceInfo,
991
- }));
992
- const sourceInfos = new Map();
993
- for (const extension of extensions) {
994
- if (extension.sourceInfo) {
995
- sourceInfos.set(extension.path, extension.sourceInfo);
996
- }
997
- }
998
- for (const skill of skillsResult.skills) {
999
- if (skill.sourceInfo) {
1000
- sourceInfos.set(skill.filePath, skill.sourceInfo);
1001
- }
1002
- }
1003
- for (const prompt of promptsResult.prompts) {
1004
- if (prompt.sourceInfo) {
1005
- sourceInfos.set(prompt.filePath, prompt.sourceInfo);
1006
- }
1007
- }
1008
- for (const loadedTheme of themesResult.themes) {
1009
- if (loadedTheme.sourcePath && loadedTheme.sourceInfo) {
1010
- sourceInfos.set(loadedTheme.sourcePath, loadedTheme.sourceInfo);
1011
- }
1012
- }
1013
- if (showListing) {
1014
- const contextFiles = this.session.resourceLoader.getAgentsFiles().agentsFiles;
1015
- if (contextFiles.length > 0) {
1016
- this.chatContainer.addChild(new Spacer(1));
1017
- const contextList = contextFiles
1018
- .map((f) => theme.fg("dim", ` ${this.formatDisplayPath(f.path)}`))
1019
- .join("\n");
1020
- const contextCompactList = formatCompactList(contextFiles.map((contextFile) => this.formatContextPath(contextFile.path)), { sort: false });
1021
- addLoadedSection("Context", contextCompactList, contextList);
1022
- }
1023
- const skills = skillsResult.skills;
1024
- if (skills.length > 0) {
1025
- const groups = this.buildScopeGroups(skills.map((skill) => ({ path: skill.filePath, sourceInfo: skill.sourceInfo })));
1026
- const skillList = this.formatScopeGroups(groups, {
1027
- formatPath: (item) => this.formatDisplayPath(item.path),
1028
- formatPackagePath: (item) => this.getShortPath(item.path, item.sourceInfo),
1029
- });
1030
- const skillCompactList = formatCompactList(skills.map((skill) => skill.name));
1031
- addLoadedSection("Skills", skillCompactList, skillList);
1032
- }
1033
- const templates = this.session.promptTemplates;
1034
- if (templates.length > 0) {
1035
- const groups = this.buildScopeGroups(templates.map((template) => ({ path: template.filePath, sourceInfo: template.sourceInfo })));
1036
- const templateByPath = new Map(templates.map((t) => [t.filePath, t]));
1037
- const templateList = this.formatScopeGroups(groups, {
1038
- formatPath: (item) => {
1039
- const template = templateByPath.get(item.path);
1040
- return template ? `/${template.name}` : this.formatDisplayPath(item.path);
1041
- },
1042
- formatPackagePath: (item) => {
1043
- const template = templateByPath.get(item.path);
1044
- return template ? `/${template.name}` : this.formatDisplayPath(item.path);
1045
- },
1046
- });
1047
- const promptCompactList = formatCompactList(templates.map((template) => `/${template.name}`));
1048
- addLoadedSection("Prompts", promptCompactList, templateList);
1049
- }
1050
- if (extensions.length > 0) {
1051
- const groups = this.buildScopeGroups(extensions);
1052
- const extList = this.formatScopeGroups(groups, {
1053
- formatPath: (item) => this.formatExtensionDisplayPath(item.path),
1054
- formatPackagePath: (item) => this.formatExtensionDisplayPath(this.getShortPath(item.path, item.sourceInfo)),
1055
- });
1056
- const extensionCompactList = formatCompactList(this.getCompactExtensionLabels(extensions));
1057
- addLoadedSection("Extensions", extensionCompactList, extList, "mdHeading");
1058
- }
1059
- // Show loaded themes (excluding built-in)
1060
- const loadedThemes = themesResult.themes;
1061
- const customThemes = loadedThemes.filter((t) => t.sourcePath);
1062
- if (customThemes.length > 0) {
1063
- const groups = this.buildScopeGroups(customThemes.map((loadedTheme) => ({
1064
- path: loadedTheme.sourcePath,
1065
- sourceInfo: loadedTheme.sourceInfo,
1066
- })));
1067
- const themeList = this.formatScopeGroups(groups, {
1068
- formatPath: (item) => this.formatDisplayPath(item.path),
1069
- formatPackagePath: (item) => this.getShortPath(item.path, item.sourceInfo),
1070
- });
1071
- const themeCompactList = formatCompactList(customThemes.map((loadedTheme) => loadedTheme.name ?? this.getCompactPathLabel(loadedTheme.sourcePath, loadedTheme.sourceInfo)));
1072
- addLoadedSection("Themes", themeCompactList, themeList);
1073
- }
1074
- }
1075
- if (showDiagnostics) {
1076
- const skillDiagnostics = skillsResult.diagnostics;
1077
- if (skillDiagnostics.length > 0) {
1078
- const warningLines = this.formatDiagnostics(skillDiagnostics, sourceInfos);
1079
- this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Skill conflicts]")}\n${warningLines}`, 0, 0));
1080
- this.chatContainer.addChild(new Spacer(1));
1081
- }
1082
- const promptDiagnostics = promptsResult.diagnostics;
1083
- if (promptDiagnostics.length > 0) {
1084
- const warningLines = this.formatDiagnostics(promptDiagnostics, sourceInfos);
1085
- this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Prompt conflicts]")}\n${warningLines}`, 0, 0));
1086
- this.chatContainer.addChild(new Spacer(1));
1087
- }
1088
- const extensionDiagnostics = [];
1089
- const extensionErrors = this.session.resourceLoader.getExtensions().errors;
1090
- if (extensionErrors.length > 0) {
1091
- for (const error of extensionErrors) {
1092
- extensionDiagnostics.push({ type: "error", message: error.error, path: error.path });
1093
- }
1094
- }
1095
- const commandDiagnostics = this.session.extensionRunner.getCommandDiagnostics();
1096
- extensionDiagnostics.push(...commandDiagnostics);
1097
- extensionDiagnostics.push(...this.getBuiltInCommandConflictDiagnostics(this.session.extensionRunner));
1098
- const shortcutDiagnostics = this.session.extensionRunner.getShortcutDiagnostics();
1099
- extensionDiagnostics.push(...shortcutDiagnostics);
1100
- if (extensionDiagnostics.length > 0) {
1101
- const warningLines = this.formatDiagnostics(extensionDiagnostics, sourceInfos);
1102
- this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Extension issues]")}\n${warningLines}`, 0, 0));
1103
- this.chatContainer.addChild(new Spacer(1));
1104
- }
1105
- const themeDiagnostics = themesResult.diagnostics;
1106
- if (themeDiagnostics.length > 0) {
1107
- const warningLines = this.formatDiagnostics(themeDiagnostics, sourceInfos);
1108
- this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Theme conflicts]")}\n${warningLines}`, 0, 0));
1109
- this.chatContainer.addChild(new Spacer(1));
1110
- }
1111
- }
1112
- }
1113
- /**
1114
- * Initialize the extension system with TUI-based UI context.
1115
- */
1116
- async bindCurrentSessionExtensions() {
1117
- const uiContext = this.createExtensionUIContext();
1118
- await this.session.bindExtensions({
1119
- uiContext,
1120
- commandContextActions: {
1121
- waitForIdle: () => this.session.agent.waitForIdle(),
1122
- newSession: async (options) => {
1123
- if (this.loadingAnimation) {
1124
- this.loadingAnimation.stop();
1125
- this.loadingAnimation = undefined;
1126
- }
1127
- this.statusContainer.clear();
1128
- try {
1129
- const result = await this.runtimeHost.newSession(options);
1130
- if (!result.cancelled) {
1131
- this.renderCurrentSessionState();
1132
- this.ui.requestRender();
1133
- }
1134
- return result;
1135
- }
1136
- catch (error) {
1137
- return this.handleFatalRuntimeError("Failed to create session", error);
1138
- }
1139
- },
1140
- fork: async (entryId, options) => {
1141
- try {
1142
- const result = await this.runtimeHost.fork(entryId, options);
1143
- if (!result.cancelled) {
1144
- this.renderCurrentSessionState();
1145
- this.editor.setText(result.selectedText ?? "");
1146
- this.showStatus("Forked to new session");
1147
- }
1148
- return { cancelled: result.cancelled };
1149
- }
1150
- catch (error) {
1151
- return this.handleFatalRuntimeError("Failed to fork session", error);
1152
- }
1153
- },
1154
- navigateTree: async (targetId, options) => {
1155
- const result = await this.session.navigateTree(targetId, {
1156
- summarize: options?.summarize,
1157
- customInstructions: options?.customInstructions,
1158
- replaceInstructions: options?.replaceInstructions,
1159
- label: options?.label,
1160
- });
1161
- if (result.cancelled) {
1162
- return { cancelled: true };
1163
- }
1164
- this.chatContainer.clear();
1165
- this.renderInitialMessages();
1166
- if (result.editorText && !this.editor.getText().trim()) {
1167
- this.editor.setText(result.editorText);
1168
- }
1169
- this.showStatus("Navigated to selected point");
1170
- void this.flushCompactionQueue({ willRetry: false });
1171
- return { cancelled: false };
1172
- },
1173
- switchSession: async (sessionPath, options) => {
1174
- return this.handleResumeSession(sessionPath, options);
1175
- },
1176
- reload: async () => {
1177
- await this.handleReloadCommand();
1178
- },
1179
- },
1180
- shutdownHandler: () => {
1181
- this.shutdownRequested = true;
1182
- if (!this.session.isStreaming) {
1183
- void this.shutdown();
1184
- }
1185
- },
1186
- onError: (error) => {
1187
- this.showExtensionError(error.extensionPath, error.error, error.stack);
1188
- },
1189
- });
1190
- setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
1191
- this.setupAutocompleteProvider();
1192
- const extensionRunner = this.session.extensionRunner;
1193
- this.setupExtensionShortcuts(extensionRunner);
1194
- this.showLoadedResources({ force: false, showDiagnosticsWhenQuiet: true });
1195
- this.showStartupNoticesIfNeeded();
1196
- }
1197
- applyRuntimeSettings() {
1198
- this.footer.setSession(this.session);
1199
- this.footer.setAutoCompactEnabled(this.session.autoCompactionEnabled);
1200
- this.footerDataProvider.setCwd(this.sessionManager.getCwd());
1201
- this.hideThinkingBlock = this.settingsManager.getHideThinkingBlock();
1202
- this.ui.setShowHardwareCursor(this.settingsManager.getShowHardwareCursor());
1203
- this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink());
1204
- const editorPaddingX = this.settingsManager.getEditorPaddingX();
1205
- const autocompleteMaxVisible = this.settingsManager.getAutocompleteMaxVisible();
1206
- this.defaultEditor.setPaddingX(editorPaddingX);
1207
- this.defaultEditor.setAutocompleteMaxVisible(autocompleteMaxVisible);
1208
- if (this.editor !== this.defaultEditor) {
1209
- this.editor.setPaddingX?.(editorPaddingX);
1210
- this.editor.setAutocompleteMaxVisible?.(autocompleteMaxVisible);
1211
- }
1212
- }
1213
- async rebindCurrentSession() {
1214
- this.unsubscribe?.();
1215
- this.unsubscribe = undefined;
1216
- this.applyRuntimeSettings();
1217
- await this.bindCurrentSessionExtensions();
1218
- this.subscribeToAgent();
1219
- await this.updateAvailableProviderCount();
1220
- this.updateEditorBorderColor();
1221
- this.updateTerminalTitle();
1222
- }
1223
- async handleFatalRuntimeError(prefix, error) {
1224
- const message = error instanceof Error ? error.message : String(error);
1225
- this.showError(`${prefix}: ${message}`);
1226
- stopThemeWatcher();
1227
- this.stop();
1228
- process.exit(1);
1229
- }
1230
- renderCurrentSessionState() {
1231
- this.chatContainer.clear();
1232
- this.pendingMessagesContainer.clear();
1233
- this.compactionQueuedMessages = [];
1234
- this.streamingComponent = undefined;
1235
- this.streamingMessage = undefined;
1236
- this.pendingTools.clear();
1237
- this.renderInitialMessages();
1238
- }
1239
- /**
1240
- * Get a registered tool definition by name (for custom rendering).
1241
- */
1242
- getRegisteredToolDefinition(toolName) {
1243
- return this.session.getToolDefinition(toolName);
1244
- }
1245
- /**
1246
- * Set up keyboard shortcuts registered by extensions.
1247
- */
1248
- setupExtensionShortcuts(extensionRunner) {
1249
- const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
1250
- if (shortcuts.size === 0)
1251
- return;
1252
- // Create a context for shortcut handlers
1253
- const createContext = () => ({
1254
- ui: this.createExtensionUIContext(),
1255
- hasUI: true,
1256
- cwd: this.sessionManager.getCwd(),
1257
- sessionManager: this.sessionManager,
1258
- modelRegistry: this.session.modelRegistry,
1259
- model: this.session.model,
1260
- isIdle: () => !this.session.isStreaming,
1261
- signal: this.session.agent.signal,
1262
- abort: () => this.session.abort(),
1263
- hasPendingMessages: () => this.session.pendingMessageCount > 0,
1264
- shutdown: () => {
1265
- this.shutdownRequested = true;
1266
- },
1267
- getContextUsage: () => this.session.getContextUsage(),
1268
- compact: (options) => {
1269
- void (async () => {
1270
- try {
1271
- const result = await this.session.compact(options?.customInstructions);
1272
- options?.onComplete?.(result);
1273
- }
1274
- catch (error) {
1275
- const err = error instanceof Error ? error : new Error(String(error));
1276
- options?.onError?.(err);
1277
- }
1278
- })();
1279
- },
1280
- getSystemPrompt: () => this.session.systemPrompt,
1281
- });
1282
- // Set up the extension shortcut handler on the default editor
1283
- this.defaultEditor.onExtensionShortcut = (data) => {
1284
- for (const [shortcutStr, shortcut] of shortcuts) {
1285
- // Cast to KeyId - extension shortcuts use the same format
1286
- if (matchesKey(data, shortcutStr)) {
1287
- // Run handler async, don't block input
1288
- Promise.resolve(shortcut.handler(createContext())).catch((err) => {
1289
- this.showError(`Shortcut handler error: ${err instanceof Error ? err.message : String(err)}`);
1290
- });
1291
- return true;
1292
- }
1293
- }
1294
- return false;
1295
- };
1296
- }
1297
- /**
1298
- * Set extension status text in the footer.
1299
- */
1300
- setExtensionStatus(key, text) {
1301
- this.footerDataProvider.setExtensionStatus(key, text);
1302
- this.ui.requestRender();
1303
- }
1304
- getWorkingLoaderMessage() {
1305
- return this.workingMessage ?? this.defaultWorkingMessage;
1306
- }
1307
- createWorkingLoader() {
1308
- return new Loader(this.ui, (spinner) => theme.fg("accent", spinner), (text) => theme.fg("muted", text), this.getWorkingLoaderMessage(), this.workingIndicatorOptions);
1309
- }
1310
- stopWorkingLoader() {
1311
- if (this.loadingAnimation) {
1312
- this.loadingAnimation.stop();
1313
- this.loadingAnimation = undefined;
1314
- }
1315
- this.statusContainer.clear();
1316
- }
1317
- setWorkingVisible(visible) {
1318
- this.workingVisible = visible;
1319
- if (!visible) {
1320
- this.stopWorkingLoader();
1321
- this.ui.requestRender();
1322
- return;
1323
- }
1324
- if (this.session.isStreaming && !this.loadingAnimation) {
1325
- this.statusContainer.clear();
1326
- this.loadingAnimation = this.createWorkingLoader();
1327
- this.statusContainer.addChild(this.loadingAnimation);
1328
- }
1329
- this.ui.requestRender();
1330
- }
1331
- setWorkingIndicator(options) {
1332
- this.workingIndicatorOptions = options;
1333
- this.loadingAnimation?.setIndicator(options);
1334
- this.ui.requestRender();
1335
- }
1336
- setHiddenThinkingLabel(label) {
1337
- this.hiddenThinkingLabel = label ?? this.defaultHiddenThinkingLabel;
1338
- for (const child of this.chatContainer.children) {
1339
- if (child instanceof AssistantMessageComponent) {
1340
- child.setHiddenThinkingLabel(this.hiddenThinkingLabel);
1341
- }
1342
- }
1343
- if (this.streamingComponent) {
1344
- this.streamingComponent.setHiddenThinkingLabel(this.hiddenThinkingLabel);
1345
- }
1346
- this.ui.requestRender();
1347
- }
1348
- /**
1349
- * Set an extension widget (string array or custom component).
1350
- */
1351
- /**
1352
- * Implements ctx.ui.setOutputSource — swap the chat viewport's rendering source.
1353
- *
1354
- * Passing a Component delegates the chat viewport's render() to it; the
1355
- * original message-history children are preserved. Passing null restores
1356
- * the default child-rendering behaviour.
1357
- *
1358
- * Extensions that own a tail buffer (e.g. forge-cli's thread-switcher
1359
- * targeting a subagent log) supply a Component that yields lines from
1360
- * that buffer; the user sees that content in the main viewport until the
1361
- * extension calls setOutputSource(null).
1362
- */
1363
- setChatOutputSource(component) {
1364
- this.chatContainer.sourceOverride = component;
1365
- this.chatContainer.invalidate();
1366
- this.ui.requestRender();
1367
- }
1368
- setExtensionWidget(key, content, options) {
1369
- const placement = options?.placement ?? "aboveEditor";
1370
- const removeExisting = (map) => {
1371
- const existing = map.get(key);
1372
- if (existing?.dispose)
1373
- existing.dispose();
1374
- map.delete(key);
1375
- };
1376
- removeExisting(this.extensionWidgetsAbove);
1377
- removeExisting(this.extensionWidgetsBelow);
1378
- if (content === undefined) {
1379
- this.renderWidgets();
1380
- return;
1381
- }
1382
- let component;
1383
- if (Array.isArray(content)) {
1384
- // Wrap string array in a Container with Text components
1385
- const container = new Container();
1386
- for (const line of content.slice(0, InteractiveMode.MAX_WIDGET_LINES)) {
1387
- container.addChild(new Text(line, 1, 0));
1388
- }
1389
- if (content.length > InteractiveMode.MAX_WIDGET_LINES) {
1390
- container.addChild(new Text(theme.fg("muted", "... (widget truncated)"), 1, 0));
1391
- }
1392
- component = container;
1393
- }
1394
- else {
1395
- // Factory function - create component
1396
- component = content(this.ui, theme);
1397
- }
1398
- const targetMap = placement === "belowEditor" ? this.extensionWidgetsBelow : this.extensionWidgetsAbove;
1399
- targetMap.set(key, component);
1400
- this.renderWidgets();
1401
- }
1402
- clearExtensionWidgets() {
1403
- for (const widget of this.extensionWidgetsAbove.values()) {
1404
- widget.dispose?.();
1405
- }
1406
- for (const widget of this.extensionWidgetsBelow.values()) {
1407
- widget.dispose?.();
1408
- }
1409
- this.extensionWidgetsAbove.clear();
1410
- this.extensionWidgetsBelow.clear();
1411
- this.renderWidgets();
1412
- }
1413
- resetExtensionUI() {
1414
- if (this.extensionSelector) {
1415
- this.hideExtensionSelector();
1416
- }
1417
- if (this.extensionInput) {
1418
- this.hideExtensionInput();
1419
- }
1420
- if (this.extensionEditor) {
1421
- this.hideExtensionEditor();
1422
- }
1423
- this.ui.hideOverlay();
1424
- this.clearExtensionTerminalInputListeners();
1425
- this.setExtensionFooter(undefined);
1426
- this.setExtensionHeader(undefined);
1427
- this.clearExtensionWidgets();
1428
- this.footerDataProvider.clearExtensionStatuses();
1429
- this.footer.invalidate();
1430
- this.autocompleteProviderWrappers = [];
1431
- this.setCustomEditorComponent(undefined);
1432
- this.setupAutocompleteProvider();
1433
- this.defaultEditor.onExtensionShortcut = undefined;
1434
- this.updateTerminalTitle();
1435
- this.workingMessage = undefined;
1436
- this.workingVisible = true;
1437
- this.setWorkingIndicator();
1438
- if (this.loadingAnimation) {
1439
- this.loadingAnimation.setMessage(`${this.defaultWorkingMessage} (${keyText("app.interrupt")} to interrupt)`);
1440
- }
1441
- this.setHiddenThinkingLabel();
1442
- }
1443
- // Maximum total widget lines to prevent viewport overflow
1444
- static MAX_WIDGET_LINES = 10;
1445
- /**
1446
- * Render all extension widgets to the widget container.
1447
- */
1448
- renderWidgets() {
1449
- if (!this.widgetContainerAbove || !this.widgetContainerBelow)
1450
- return;
1451
- this.renderWidgetContainer(this.widgetContainerAbove, this.extensionWidgetsAbove, true, true);
1452
- this.renderWidgetContainer(this.widgetContainerBelow, this.extensionWidgetsBelow, false, false);
1453
- this.ui.requestRender();
1454
- }
1455
- renderWidgetContainer(container, widgets, spacerWhenEmpty, leadingSpacer) {
1456
- container.clear();
1457
- if (widgets.size === 0) {
1458
- if (spacerWhenEmpty) {
1459
- container.addChild(new Spacer(1));
1460
- }
1461
- return;
1462
- }
1463
- if (leadingSpacer) {
1464
- container.addChild(new Spacer(1));
1465
- }
1466
- for (const component of widgets.values()) {
1467
- container.addChild(component);
1468
- }
1469
- }
1470
- /**
1471
- * Set a custom footer component, or restore the built-in footer.
1472
- */
1473
- setExtensionFooter(factory) {
1474
- // Dispose existing custom footer
1475
- if (this.customFooter?.dispose) {
1476
- this.customFooter.dispose();
1477
- }
1478
- // Remove current footer from UI
1479
- if (this.customFooter) {
1480
- this.ui.removeChild(this.customFooter);
1481
- }
1482
- else {
1483
- this.ui.removeChild(this.footer);
1484
- }
1485
- if (factory) {
1486
- // Create and add custom footer, passing the data provider
1487
- this.customFooter = factory(this.ui, theme, this.footerDataProvider);
1488
- this.ui.addChild(this.customFooter);
1489
- }
1490
- else {
1491
- // Restore built-in footer
1492
- this.customFooter = undefined;
1493
- this.ui.addChild(this.footer);
1494
- }
1495
- this.ui.requestRender();
1496
- }
1497
- /**
1498
- * Set a custom header component, or restore the built-in header.
1499
- */
1500
- setExtensionHeader(factory) {
1501
- // Header may not be initialized yet if called during early initialization
1502
- if (!this.builtInHeader) {
1503
- return;
1504
- }
1505
- // Dispose existing custom header
1506
- if (this.customHeader?.dispose) {
1507
- this.customHeader.dispose();
1508
- }
1509
- // Find the index of the current header in the header container
1510
- const currentHeader = this.customHeader || this.builtInHeader;
1511
- const index = this.headerContainer.children.indexOf(currentHeader);
1512
- if (factory) {
1513
- // Create and add custom header
1514
- this.customHeader = factory(this.ui, theme);
1515
- if (isExpandable(this.customHeader)) {
1516
- this.customHeader.setExpanded(this.toolOutputExpanded);
1517
- }
1518
- if (index !== -1) {
1519
- this.headerContainer.children[index] = this.customHeader;
1520
- }
1521
- else {
1522
- // If not found (e.g. builtInHeader was never added), add at the top
1523
- this.headerContainer.children.unshift(this.customHeader);
1524
- }
1525
- }
1526
- else {
1527
- // Restore built-in header
1528
- this.customHeader = undefined;
1529
- if (isExpandable(this.builtInHeader)) {
1530
- this.builtInHeader.setExpanded(this.toolOutputExpanded);
1531
- }
1532
- if (index !== -1) {
1533
- this.headerContainer.children[index] = this.builtInHeader;
1534
- }
1535
- }
1536
- this.ui.requestRender();
1537
- }
1538
- addExtensionTerminalInputListener(handler) {
1539
- const unsubscribe = this.ui.addInputListener(handler);
1540
- this.extensionTerminalInputUnsubscribers.add(unsubscribe);
1541
- return () => {
1542
- unsubscribe();
1543
- this.extensionTerminalInputUnsubscribers.delete(unsubscribe);
1544
- };
1545
- }
1546
- clearExtensionTerminalInputListeners() {
1547
- for (const unsubscribe of this.extensionTerminalInputUnsubscribers) {
1548
- unsubscribe();
1549
- }
1550
- this.extensionTerminalInputUnsubscribers.clear();
1551
- }
1552
- /**
1553
- * Create the ExtensionUIContext for extensions.
1554
- */
1555
- createExtensionUIContext() {
1556
- return {
1557
- select: (title, options, opts) => this.showExtensionSelector(title, options, opts),
1558
- confirm: (title, message, opts) => this.showExtensionConfirm(title, message, opts),
1559
- input: (title, placeholder, opts) => this.showExtensionInput(title, placeholder, opts),
1560
- notify: (message, type) => this.showExtensionNotify(message, type),
1561
- onTerminalInput: (handler) => this.addExtensionTerminalInputListener(handler),
1562
- setStatus: (key, text) => this.setExtensionStatus(key, text),
1563
- setWorkingMessage: (message) => {
1564
- this.workingMessage = message;
1565
- if (this.loadingAnimation) {
1566
- this.loadingAnimation.setMessage(message ?? this.defaultWorkingMessage);
1567
- }
1568
- },
1569
- setWorkingVisible: (visible) => this.setWorkingVisible(visible),
1570
- setWorkingIndicator: (options) => this.setWorkingIndicator(options),
1571
- setHiddenThinkingLabel: (label) => this.setHiddenThinkingLabel(label),
1572
- setWidget: (key, content, options) => this.setExtensionWidget(key, content, options),
1573
- setOutputSource: (component) => this.setChatOutputSource(component),
1574
- setFooter: (factory) => this.setExtensionFooter(factory),
1575
- setHeader: (factory) => this.setExtensionHeader(factory),
1576
- setTitle: (title) => this.ui.terminal.setTitle(title),
1577
- custom: (factory, options) => this.showExtensionCustom(factory, options),
1578
- pasteToEditor: (text) => this.editor.handleInput(`\x1b[200~${text}\x1b[201~`),
1579
- setEditorText: (text) => this.editor.setText(text),
1580
- getEditorText: () => this.editor.getExpandedText?.() ?? this.editor.getText(),
1581
- editor: (title, prefill) => this.showExtensionEditor(title, prefill),
1582
- addAutocompleteProvider: (factory) => {
1583
- this.autocompleteProviderWrappers.push(factory);
1584
- this.setupAutocompleteProvider();
1585
- },
1586
- setEditorComponent: (factory) => this.setCustomEditorComponent(factory),
1587
- getEditorComponent: () => this.editorComponentFactory,
1588
- get theme() {
1589
- return theme;
1590
- },
1591
- getAllThemes: () => getAvailableThemesWithPaths(),
1592
- getTheme: (name) => getThemeByName(name),
1593
- setTheme: (themeOrName) => {
1594
- if (themeOrName instanceof Theme) {
1595
- setThemeInstance(themeOrName);
1596
- this.ui.requestRender();
1597
- return { success: true };
1598
- }
1599
- const result = setTheme(themeOrName, true);
1600
- if (result.success) {
1601
- if (this.settingsManager.getTheme() !== themeOrName) {
1602
- this.settingsManager.setTheme(themeOrName);
1603
- }
1604
- this.ui.requestRender();
1605
- }
1606
- return result;
1607
- },
1608
- getToolsExpanded: () => this.toolOutputExpanded,
1609
- setToolsExpanded: (expanded) => this.setToolsExpanded(expanded),
1610
- };
1611
- }
1612
- /**
1613
- * Show a selector for extensions.
1614
- */
1615
- showExtensionSelector(title, options, opts) {
1616
- return new Promise((resolve) => {
1617
- if (opts?.signal?.aborted) {
1618
- resolve(undefined);
1619
- return;
1620
- }
1621
- const onAbort = () => {
1622
- this.hideExtensionSelector();
1623
- resolve(undefined);
1624
- };
1625
- opts?.signal?.addEventListener("abort", onAbort, { once: true });
1626
- this.extensionSelector = new ExtensionSelectorComponent(title, options, (option) => {
1627
- opts?.signal?.removeEventListener("abort", onAbort);
1628
- this.hideExtensionSelector();
1629
- resolve(option);
1630
- }, () => {
1631
- opts?.signal?.removeEventListener("abort", onAbort);
1632
- this.hideExtensionSelector();
1633
- resolve(undefined);
1634
- }, { tui: this.ui, timeout: opts?.timeout });
1635
- this.editorContainer.clear();
1636
- this.editorContainer.addChild(this.extensionSelector);
1637
- this.ui.setFocus(this.extensionSelector);
1638
- this.ui.requestRender();
1639
- });
1640
- }
1641
- /**
1642
- * Hide the extension selector.
1643
- */
1644
- hideExtensionSelector() {
1645
- this.extensionSelector?.dispose();
1646
- this.editorContainer.clear();
1647
- this.editorContainer.addChild(this.editor);
1648
- this.extensionSelector = undefined;
1649
- this.ui.setFocus(this.editor);
1650
- this.ui.requestRender();
1651
- }
1652
- /**
1653
- * Show a confirmation dialog for extensions.
1654
- */
1655
- async showExtensionConfirm(title, message, opts) {
1656
- const result = await this.showExtensionSelector(`${title}\n${message}`, ["Yes", "No"], opts);
1657
- return result === "Yes";
1658
- }
1659
- async promptForMissingSessionCwd(error) {
1660
- const confirmed = await this.showExtensionConfirm("Session cwd not found", formatMissingSessionCwdPrompt(error.issue));
1661
- return confirmed ? error.issue.fallbackCwd : undefined;
1662
- }
1663
- /**
1664
- * Show a text input for extensions.
1665
- */
1666
- showExtensionInput(title, placeholder, opts) {
1667
- return new Promise((resolve) => {
1668
- if (opts?.signal?.aborted) {
1669
- resolve(undefined);
1670
- return;
1671
- }
1672
- const onAbort = () => {
1673
- this.hideExtensionInput();
1674
- resolve(undefined);
1675
- };
1676
- opts?.signal?.addEventListener("abort", onAbort, { once: true });
1677
- this.extensionInput = new ExtensionInputComponent(title, placeholder, (value) => {
1678
- opts?.signal?.removeEventListener("abort", onAbort);
1679
- this.hideExtensionInput();
1680
- resolve(value);
1681
- }, () => {
1682
- opts?.signal?.removeEventListener("abort", onAbort);
1683
- this.hideExtensionInput();
1684
- resolve(undefined);
1685
- }, { tui: this.ui, timeout: opts?.timeout });
1686
- this.editorContainer.clear();
1687
- this.editorContainer.addChild(this.extensionInput);
1688
- this.ui.setFocus(this.extensionInput);
1689
- this.ui.requestRender();
1690
- });
1691
- }
1692
- /**
1693
- * Hide the extension input.
1694
- */
1695
- hideExtensionInput() {
1696
- this.extensionInput?.dispose();
1697
- this.editorContainer.clear();
1698
- this.editorContainer.addChild(this.editor);
1699
- this.extensionInput = undefined;
1700
- this.ui.setFocus(this.editor);
1701
- this.ui.requestRender();
1702
- }
1703
- /**
1704
- * Show a multi-line editor for extensions (with Ctrl+G support).
1705
- */
1706
- showExtensionEditor(title, prefill) {
1707
- return new Promise((resolve) => {
1708
- this.extensionEditor = new ExtensionEditorComponent(this.ui, this.keybindings, title, prefill, (value) => {
1709
- this.hideExtensionEditor();
1710
- resolve(value);
1711
- }, () => {
1712
- this.hideExtensionEditor();
1713
- resolve(undefined);
1714
- });
1715
- this.editorContainer.clear();
1716
- this.editorContainer.addChild(this.extensionEditor);
1717
- this.ui.setFocus(this.extensionEditor);
1718
- this.ui.requestRender();
1719
- });
1720
- }
1721
- /**
1722
- * Hide the extension editor.
1723
- */
1724
- hideExtensionEditor() {
1725
- this.editorContainer.clear();
1726
- this.editorContainer.addChild(this.editor);
1727
- this.extensionEditor = undefined;
1728
- this.ui.setFocus(this.editor);
1729
- this.ui.requestRender();
1730
- }
1731
- /**
1732
- * Set a custom editor component from an extension.
1733
- * Pass undefined to restore the default editor.
1734
- */
1735
- setCustomEditorComponent(factory) {
1736
- this.editorComponentFactory = factory;
1737
- // Save text from current editor before switching
1738
- const currentText = this.editor.getText();
1739
- this.editorContainer.clear();
1740
- if (factory) {
1741
- // Create the custom editor with tui, theme, and keybindings
1742
- const newEditor = factory(this.ui, getEditorTheme(), this.keybindings);
1743
- // Wire up callbacks from the default editor
1744
- newEditor.onSubmit = this.defaultEditor.onSubmit;
1745
- newEditor.onChange = this.defaultEditor.onChange;
1746
- // Copy text from previous editor
1747
- newEditor.setText(currentText);
1748
- // Copy appearance settings if supported
1749
- if (newEditor.borderColor !== undefined) {
1750
- newEditor.borderColor = this.defaultEditor.borderColor;
1751
- }
1752
- if (newEditor.setPaddingX !== undefined) {
1753
- newEditor.setPaddingX(this.defaultEditor.getPaddingX());
1754
- }
1755
- // Set autocomplete if supported
1756
- if (newEditor.setAutocompleteProvider && this.autocompleteProvider) {
1757
- newEditor.setAutocompleteProvider(this.autocompleteProvider);
1758
- }
1759
- // If extending CustomEditor, copy app-level handlers
1760
- // Use duck typing since instanceof fails across jiti module boundaries
1761
- const customEditor = newEditor;
1762
- if ("actionHandlers" in customEditor && customEditor.actionHandlers instanceof Map) {
1763
- if (!customEditor.onEscape) {
1764
- customEditor.onEscape = () => this.defaultEditor.onEscape?.();
1765
- }
1766
- if (!customEditor.onCtrlD) {
1767
- customEditor.onCtrlD = () => this.defaultEditor.onCtrlD?.();
1768
- }
1769
- if (!customEditor.onPasteImage) {
1770
- customEditor.onPasteImage = () => this.defaultEditor.onPasteImage?.();
1771
- }
1772
- if (!customEditor.onExtensionShortcut) {
1773
- customEditor.onExtensionShortcut = (data) => this.defaultEditor.onExtensionShortcut?.(data);
1774
- }
1775
- // Copy action handlers (clear, suspend, model switching, etc.)
1776
- for (const [action, handler] of this.defaultEditor.actionHandlers) {
1777
- customEditor.actionHandlers.set(action, handler);
1778
- }
1779
- }
1780
- this.editor = newEditor;
1781
- }
1782
- else {
1783
- // Restore default editor with text from custom editor
1784
- this.defaultEditor.setText(currentText);
1785
- this.editor = this.defaultEditor;
1786
- }
1787
- this.editorContainer.addChild(this.editor);
1788
- this.ui.setFocus(this.editor);
1789
- this.ui.requestRender();
1790
- }
1791
- /**
1792
- * Show a notification for extensions.
1793
- */
1794
- showExtensionNotify(message, type) {
1795
- if (type === "error") {
1796
- this.showError(message);
1797
- }
1798
- else if (type === "warning") {
1799
- this.showWarning(message);
1800
- }
1801
- else {
1802
- this.showStatus(message);
1803
- }
1804
- }
1805
- /** Show a custom component with keyboard focus. Overlay mode renders on top of existing content. */
1806
- async showExtensionCustom(factory, options) {
1807
- const savedText = this.editor.getText();
1808
- const isOverlay = options?.overlay ?? false;
1809
- const restoreEditor = () => {
1810
- this.editorContainer.clear();
1811
- this.editorContainer.addChild(this.editor);
1812
- this.editor.setText(savedText);
1813
- this.ui.setFocus(this.editor);
1814
- this.ui.requestRender();
1815
- };
1816
- return new Promise((resolve, reject) => {
1817
- let component;
1818
- let closed = false;
1819
- const close = (result) => {
1820
- if (closed)
1821
- return;
1822
- closed = true;
1823
- if (isOverlay)
1824
- this.ui.hideOverlay();
1825
- else
1826
- restoreEditor();
1827
- // Note: both branches above already call requestRender
1828
- resolve(result);
1829
- try {
1830
- component?.dispose?.();
1831
- }
1832
- catch {
1833
- /* ignore dispose errors */
1834
- }
1835
- };
1836
- Promise.resolve(factory(this.ui, theme, this.keybindings, close))
1837
- .then((c) => {
1838
- if (closed)
1839
- return;
1840
- component = c;
1841
- if (isOverlay) {
1842
- // Resolve overlay options - can be static or dynamic function
1843
- const resolveOptions = () => {
1844
- if (options?.overlayOptions) {
1845
- const opts = typeof options.overlayOptions === "function"
1846
- ? options.overlayOptions()
1847
- : options.overlayOptions;
1848
- return opts;
1849
- }
1850
- // Fallback: use component's width property if available
1851
- const w = component.width;
1852
- return w ? { width: w } : undefined;
1853
- };
1854
- const handle = this.ui.showOverlay(component, resolveOptions());
1855
- // Expose handle to caller for visibility control
1856
- options?.onHandle?.(handle);
1857
- }
1858
- else {
1859
- this.editorContainer.clear();
1860
- this.editorContainer.addChild(component);
1861
- this.ui.setFocus(component);
1862
- this.ui.requestRender();
1863
- }
1864
- })
1865
- .catch((err) => {
1866
- if (closed)
1867
- return;
1868
- if (!isOverlay)
1869
- restoreEditor();
1870
- reject(err);
1871
- });
1872
- });
1873
- }
1874
- /**
1875
- * Show an extension error in the UI.
1876
- */
1877
- showExtensionError(extensionPath, error, stack) {
1878
- const errorMsg = `Extension "${extensionPath}" error: ${error}`;
1879
- const errorText = new Text(theme.fg("error", errorMsg), 1, 0);
1880
- this.chatContainer.addChild(errorText);
1881
- if (stack) {
1882
- // Show stack trace in dim color, indented
1883
- const stackLines = stack
1884
- .split("\n")
1885
- .slice(1) // Skip first line (duplicates error message)
1886
- .map((line) => theme.fg("dim", ` ${line.trim()}`))
1887
- .join("\n");
1888
- if (stackLines) {
1889
- this.chatContainer.addChild(new Text(stackLines, 1, 0));
1890
- }
1891
- }
1892
- this.ui.requestRender();
1893
- }
1894
- // =========================================================================
1895
- // Key Handlers
1896
- // =========================================================================
1897
- setupKeyHandlers() {
1898
- // Set up handlers on defaultEditor - they use this.editor for text access
1899
- // so they work correctly regardless of which editor is active
1900
- this.defaultEditor.onEscape = () => {
1901
- if (this.session.isStreaming) {
1902
- this.restoreQueuedMessagesToEditor({ abort: true });
1903
- }
1904
- else if (this.session.isBashRunning) {
1905
- this.session.abortBash();
1906
- }
1907
- else if (this.isBashMode) {
1908
- this.editor.setText("");
1909
- this.isBashMode = false;
1910
- this.updateEditorBorderColor();
1911
- }
1912
- else if (!this.editor.getText().trim()) {
1913
- // Double-escape with empty editor triggers /tree, /fork, or nothing based on setting
1914
- const action = this.settingsManager.getDoubleEscapeAction();
1915
- if (action !== "none") {
1916
- const now = Date.now();
1917
- if (now - this.lastEscapeTime < 500) {
1918
- if (action === "tree") {
1919
- this.showTreeSelector();
1920
- }
1921
- else {
1922
- this.showUserMessageSelector();
1923
- }
1924
- this.lastEscapeTime = 0;
1925
- }
1926
- else {
1927
- this.lastEscapeTime = now;
1928
- }
1929
- }
1930
- }
1931
- };
1932
- // Register app action handlers
1933
- this.defaultEditor.onAction("app.clear", () => this.handleCtrlC());
1934
- this.defaultEditor.onCtrlD = () => this.handleCtrlD();
1935
- this.defaultEditor.onAction("app.suspend", () => this.handleCtrlZ());
1936
- this.defaultEditor.onAction("app.thinking.cycle", () => this.cycleThinkingLevel());
1937
- this.defaultEditor.onAction("app.model.cycleForward", () => this.cycleModel("forward"));
1938
- this.defaultEditor.onAction("app.model.cycleBackward", () => this.cycleModel("backward"));
1939
- // Global debug handler on TUI (works regardless of focus)
1940
- this.ui.onDebug = () => this.handleDebugCommand();
1941
- this.defaultEditor.onAction("app.model.select", () => this.showModelSelector());
1942
- this.defaultEditor.onAction("app.tools.expand", () => this.toggleToolOutputExpansion());
1943
- this.defaultEditor.onAction("app.thinking.toggle", () => this.toggleThinkingBlockVisibility());
1944
- this.defaultEditor.onAction("app.editor.external", () => this.openExternalEditor());
1945
- this.defaultEditor.onAction("app.message.followUp", () => this.handleFollowUp());
1946
- this.defaultEditor.onAction("app.message.dequeue", () => this.handleDequeue());
1947
- this.defaultEditor.onAction("app.session.new", () => this.handleClearCommand());
1948
- this.defaultEditor.onAction("app.session.tree", () => this.showTreeSelector());
1949
- this.defaultEditor.onAction("app.session.fork", () => this.showUserMessageSelector());
1950
- this.defaultEditor.onAction("app.session.resume", () => this.showSessionSelector());
1951
- this.defaultEditor.onChange = (text) => {
1952
- const wasBashMode = this.isBashMode;
1953
- this.isBashMode = text.trimStart().startsWith("!");
1954
- if (wasBashMode !== this.isBashMode) {
1955
- this.updateEditorBorderColor();
1956
- }
1957
- };
1958
- // Handle clipboard image paste (triggered on Ctrl+V)
1959
- this.defaultEditor.onPasteImage = () => {
1960
- this.handleClipboardImagePaste();
1961
- };
1962
- }
1963
- async handleClipboardImagePaste() {
1964
- try {
1965
- const image = await readClipboardImage();
1966
- if (!image) {
1967
- return;
1968
- }
1969
- // Write to temp file
1970
- const tmpDir = os.tmpdir();
1971
- const ext = extensionForImageMimeType(image.mimeType) ?? "png";
1972
- const fileName = `pi-clipboard-${crypto.randomUUID()}.${ext}`;
1973
- const filePath = path.join(tmpDir, fileName);
1974
- fs.writeFileSync(filePath, Buffer.from(image.bytes));
1975
- // Insert file path directly
1976
- this.editor.insertTextAtCursor?.(filePath);
1977
- this.ui.requestRender();
1978
- }
1979
- catch {
1980
- // Silently ignore clipboard errors (may not have permission, etc.)
1981
- }
1982
- }
1983
- setupEditorSubmitHandler() {
1984
- this.defaultEditor.onSubmit = async (text) => {
1985
- text = text.trim();
1986
- if (!text)
1987
- return;
1988
- // Handle commands
1989
- if (text === "/settings") {
1990
- this.showSettingsSelector();
1991
- this.editor.setText("");
1992
- return;
1993
- }
1994
- if (text === "/scoped-models") {
1995
- this.editor.setText("");
1996
- await this.showModelsSelector();
1997
- return;
1998
- }
1999
- if (text === "/model" || text.startsWith("/model ")) {
2000
- const searchTerm = text.startsWith("/model ") ? text.slice(7).trim() : undefined;
2001
- this.editor.setText("");
2002
- await this.handleModelCommand(searchTerm);
2003
- return;
2004
- }
2005
- if (text === "/export" || text.startsWith("/export ")) {
2006
- await this.handleExportCommand(text);
2007
- this.editor.setText("");
2008
- return;
2009
- }
2010
- if (text === "/import" || text.startsWith("/import ")) {
2011
- await this.handleImportCommand(text);
2012
- this.editor.setText("");
2013
- return;
2014
- }
2015
- if (text === "/share") {
2016
- await this.handleShareCommand();
2017
- this.editor.setText("");
2018
- return;
2019
- }
2020
- if (text === "/copy") {
2021
- await this.handleCopyCommand();
2022
- this.editor.setText("");
2023
- return;
2024
- }
2025
- if (text === "/name" || text.startsWith("/name ")) {
2026
- this.handleNameCommand(text);
2027
- this.editor.setText("");
2028
- return;
2029
- }
2030
- if (text === "/session") {
2031
- this.handleSessionCommand();
2032
- this.editor.setText("");
2033
- return;
2034
- }
2035
- if (text === "/changelog") {
2036
- this.handleChangelogCommand();
2037
- this.editor.setText("");
2038
- return;
2039
- }
2040
- if (text === "/hotkeys") {
2041
- this.handleHotkeysCommand();
2042
- this.editor.setText("");
2043
- return;
2044
- }
2045
- if (text === "/fork") {
2046
- this.showUserMessageSelector();
2047
- this.editor.setText("");
2048
- return;
2049
- }
2050
- if (text === "/clone") {
2051
- this.editor.setText("");
2052
- await this.handleCloneCommand();
2053
- return;
2054
- }
2055
- if (text === "/tree") {
2056
- this.showTreeSelector();
2057
- this.editor.setText("");
2058
- return;
2059
- }
2060
- if (text === "/login") {
2061
- this.showOAuthSelector("login");
2062
- this.editor.setText("");
2063
- return;
2064
- }
2065
- if (text === "/logout") {
2066
- this.showOAuthSelector("logout");
2067
- this.editor.setText("");
2068
- return;
2069
- }
2070
- if (text === "/new") {
2071
- this.editor.setText("");
2072
- await this.handleClearCommand();
2073
- return;
2074
- }
2075
- if (text === "/compact" || text.startsWith("/compact ")) {
2076
- const customInstructions = text.startsWith("/compact ") ? text.slice(9).trim() : undefined;
2077
- this.editor.setText("");
2078
- await this.handleCompactCommand(customInstructions);
2079
- return;
2080
- }
2081
- if (text === "/reload") {
2082
- this.editor.setText("");
2083
- await this.handleReloadCommand();
2084
- return;
2085
- }
2086
- if (text === "/debug") {
2087
- this.handleDebugCommand();
2088
- this.editor.setText("");
2089
- return;
2090
- }
2091
- if (text === "/arminsayshi") {
2092
- this.handleArminSaysHi();
2093
- this.editor.setText("");
2094
- return;
2095
- }
2096
- if (text === "/dementedelves") {
2097
- this.handleDementedDelves();
2098
- this.editor.setText("");
2099
- return;
2100
- }
2101
- if (text === "/resume") {
2102
- this.showSessionSelector();
2103
- this.editor.setText("");
2104
- return;
2105
- }
2106
- if (text === "/quit") {
2107
- this.editor.setText("");
2108
- await this.shutdown();
2109
- return;
2110
- }
2111
- // Handle bash command (! for normal, !! for excluded from context)
2112
- if (text.startsWith("!")) {
2113
- const isExcluded = text.startsWith("!!");
2114
- const command = isExcluded ? text.slice(2).trim() : text.slice(1).trim();
2115
- if (command) {
2116
- if (this.session.isBashRunning) {
2117
- this.showWarning("A bash command is already running. Press Esc to cancel it first.");
2118
- this.editor.setText(text);
2119
- return;
2120
- }
2121
- this.editor.addToHistory?.(text);
2122
- await this.handleBashCommand(command, isExcluded);
2123
- this.isBashMode = false;
2124
- this.updateEditorBorderColor();
2125
- return;
2126
- }
2127
- }
2128
- // Queue input during compaction (extension commands execute immediately)
2129
- if (this.session.isCompacting) {
2130
- if (this.isExtensionCommand(text)) {
2131
- this.editor.addToHistory?.(text);
2132
- this.editor.setText("");
2133
- await this.session.prompt(text);
2134
- }
2135
- else {
2136
- this.queueCompactionMessage(text, "steer");
2137
- }
2138
- return;
2139
- }
2140
- // If streaming, use prompt() with steer behavior
2141
- // This handles extension commands (execute immediately), prompt template expansion, and queueing
2142
- if (this.session.isStreaming) {
2143
- this.editor.addToHistory?.(text);
2144
- this.editor.setText("");
2145
- await this.session.prompt(text, { streamingBehavior: "steer" });
2146
- this.updatePendingMessagesDisplay();
2147
- this.ui.requestRender();
2148
- return;
2149
- }
2150
- // Normal message submission
2151
- // First, move any pending bash components to chat
2152
- this.flushPendingBashComponents();
2153
- if (this.onInputCallback) {
2154
- this.onInputCallback(text);
2155
- }
2156
- this.editor.addToHistory?.(text);
2157
- };
2158
- }
2159
- subscribeToAgent() {
2160
- this.unsubscribe = this.session.subscribe(async (event) => {
2161
- await this.handleEvent(event);
2162
- });
2163
- }
2164
- async handleEvent(event) {
2165
- if (!this.isInitialized) {
2166
- await this.init();
2167
- }
2168
- this.footer.invalidate();
2169
- switch (event.type) {
2170
- case "agent_start":
2171
- this.pendingTools.clear();
2172
- if (this.settingsManager.getShowTerminalProgress()) {
2173
- this.ui.terminal.setProgress(true);
2174
- }
2175
- // Restore main escape handler if retry handler is still active
2176
- // (retry success event fires later, but we need main handler now)
2177
- if (this.retryEscapeHandler) {
2178
- this.defaultEditor.onEscape = this.retryEscapeHandler;
2179
- this.retryEscapeHandler = undefined;
2180
- }
2181
- if (this.retryCountdown) {
2182
- this.retryCountdown.dispose();
2183
- this.retryCountdown = undefined;
2184
- }
2185
- if (this.retryLoader) {
2186
- this.retryLoader.stop();
2187
- this.retryLoader = undefined;
2188
- }
2189
- this.stopWorkingLoader();
2190
- if (this.workingVisible) {
2191
- this.loadingAnimation = this.createWorkingLoader();
2192
- this.statusContainer.addChild(this.loadingAnimation);
2193
- }
2194
- this.ui.requestRender();
2195
- break;
2196
- case "queue_update":
2197
- this.updatePendingMessagesDisplay();
2198
- this.ui.requestRender();
2199
- break;
2200
- case "session_info_changed":
2201
- this.updateTerminalTitle();
2202
- this.footer.invalidate();
2203
- this.ui.requestRender();
2204
- break;
2205
- case "thinking_level_changed":
2206
- this.footer.invalidate();
2207
- this.updateEditorBorderColor();
2208
- break;
2209
- case "message_start":
2210
- if (event.message.role === "custom") {
2211
- this.addMessageToChat(event.message);
2212
- this.ui.requestRender();
2213
- }
2214
- else if (event.message.role === "user") {
2215
- this.addMessageToChat(event.message);
2216
- this.updatePendingMessagesDisplay();
2217
- this.ui.requestRender();
2218
- }
2219
- else if (event.message.role === "assistant") {
2220
- this.streamingComponent = new AssistantMessageComponent(undefined, this.hideThinkingBlock, this.getMarkdownThemeWithSettings(), this.hiddenThinkingLabel);
2221
- this.streamingMessage = event.message;
2222
- this.chatContainer.addChild(this.streamingComponent);
2223
- this.streamingComponent.updateContent(this.streamingMessage);
2224
- this.ui.requestRender();
2225
- }
2226
- break;
2227
- case "message_update":
2228
- if (this.streamingComponent && event.message.role === "assistant") {
2229
- this.streamingMessage = event.message;
2230
- this.streamingComponent.updateContent(this.streamingMessage);
2231
- for (const content of this.streamingMessage.content) {
2232
- if (content.type === "toolCall") {
2233
- if (!this.pendingTools.has(content.id)) {
2234
- const component = new ToolExecutionComponent(content.name, content.id, content.arguments, {
2235
- showImages: this.settingsManager.getShowImages(),
2236
- imageWidthCells: this.settingsManager.getImageWidthCells(),
2237
- }, this.getRegisteredToolDefinition(content.name), this.ui, this.sessionManager.getCwd());
2238
- component.setExpanded(this.toolOutputExpanded);
2239
- this.chatContainer.addChild(component);
2240
- this.pendingTools.set(content.id, component);
2241
- }
2242
- else {
2243
- const component = this.pendingTools.get(content.id);
2244
- if (component) {
2245
- component.updateArgs(content.arguments);
2246
- }
2247
- }
2248
- }
2249
- }
2250
- this.ui.requestRender();
2251
- }
2252
- break;
2253
- case "message_end":
2254
- if (event.message.role === "user")
2255
- break;
2256
- if (this.streamingComponent && event.message.role === "assistant") {
2257
- this.streamingMessage = event.message;
2258
- let errorMessage;
2259
- if (this.streamingMessage.stopReason === "aborted") {
2260
- const retryAttempt = this.session.retryAttempt;
2261
- errorMessage =
2262
- retryAttempt > 0
2263
- ? `Aborted after ${retryAttempt} retry attempt${retryAttempt > 1 ? "s" : ""}`
2264
- : "Operation aborted";
2265
- this.streamingMessage.errorMessage = errorMessage;
2266
- }
2267
- this.streamingComponent.updateContent(this.streamingMessage);
2268
- if (this.streamingMessage.stopReason === "aborted" || this.streamingMessage.stopReason === "error") {
2269
- if (!errorMessage) {
2270
- errorMessage = this.streamingMessage.errorMessage || "Error";
2271
- }
2272
- for (const [, component] of this.pendingTools.entries()) {
2273
- component.updateResult({
2274
- content: [{ type: "text", text: errorMessage }],
2275
- isError: true,
2276
- });
2277
- }
2278
- this.pendingTools.clear();
2279
- }
2280
- else {
2281
- // Args are now complete - trigger diff computation for edit tools
2282
- for (const [, component] of this.pendingTools.entries()) {
2283
- component.setArgsComplete();
2284
- }
2285
- }
2286
- this.streamingComponent = undefined;
2287
- this.streamingMessage = undefined;
2288
- this.footer.invalidate();
2289
- }
2290
- this.ui.requestRender();
2291
- break;
2292
- case "tool_execution_start": {
2293
- let component = this.pendingTools.get(event.toolCallId);
2294
- if (!component) {
2295
- component = new ToolExecutionComponent(event.toolName, event.toolCallId, event.args, {
2296
- showImages: this.settingsManager.getShowImages(),
2297
- imageWidthCells: this.settingsManager.getImageWidthCells(),
2298
- }, this.getRegisteredToolDefinition(event.toolName), this.ui, this.sessionManager.getCwd());
2299
- component.setExpanded(this.toolOutputExpanded);
2300
- this.chatContainer.addChild(component);
2301
- this.pendingTools.set(event.toolCallId, component);
2302
- }
2303
- component.markExecutionStarted();
2304
- this.ui.requestRender();
2305
- break;
2306
- }
2307
- case "tool_execution_update": {
2308
- const component = this.pendingTools.get(event.toolCallId);
2309
- if (component) {
2310
- component.updateResult({ ...event.partialResult, isError: false }, true);
2311
- this.ui.requestRender();
2312
- }
2313
- break;
2314
- }
2315
- case "tool_execution_end": {
2316
- const component = this.pendingTools.get(event.toolCallId);
2317
- if (component) {
2318
- component.updateResult({ ...event.result, isError: event.isError });
2319
- this.pendingTools.delete(event.toolCallId);
2320
- this.ui.requestRender();
2321
- }
2322
- break;
2323
- }
2324
- case "agent_end":
2325
- if (this.settingsManager.getShowTerminalProgress()) {
2326
- this.ui.terminal.setProgress(false);
2327
- }
2328
- if (this.loadingAnimation) {
2329
- this.loadingAnimation.stop();
2330
- this.loadingAnimation = undefined;
2331
- this.statusContainer.clear();
2332
- }
2333
- if (this.streamingComponent) {
2334
- this.chatContainer.removeChild(this.streamingComponent);
2335
- this.streamingComponent = undefined;
2336
- this.streamingMessage = undefined;
2337
- }
2338
- this.pendingTools.clear();
2339
- await this.checkShutdownRequested();
2340
- this.ui.requestRender();
2341
- break;
2342
- case "compaction_start": {
2343
- if (this.settingsManager.getShowTerminalProgress()) {
2344
- this.ui.terminal.setProgress(true);
2345
- }
2346
- // Keep editor active; submissions are queued during compaction.
2347
- this.autoCompactionEscapeHandler = this.defaultEditor.onEscape;
2348
- this.defaultEditor.onEscape = () => {
2349
- this.session.abortCompaction();
2350
- };
2351
- this.statusContainer.clear();
2352
- const cancelHint = `(${keyText("app.interrupt")} to cancel)`;
2353
- const label = event.reason === "manual"
2354
- ? `Compacting context... ${cancelHint}`
2355
- : `${event.reason === "overflow" ? "Context overflow detected, " : ""}Auto-compacting... ${cancelHint}`;
2356
- this.autoCompactionLoader = new Loader(this.ui, (spinner) => theme.fg("accent", spinner), (text) => theme.fg("muted", text), label);
2357
- this.statusContainer.addChild(this.autoCompactionLoader);
2358
- this.ui.requestRender();
2359
- break;
2360
- }
2361
- case "compaction_end": {
2362
- if (this.settingsManager.getShowTerminalProgress()) {
2363
- this.ui.terminal.setProgress(false);
2364
- }
2365
- if (this.autoCompactionEscapeHandler) {
2366
- this.defaultEditor.onEscape = this.autoCompactionEscapeHandler;
2367
- this.autoCompactionEscapeHandler = undefined;
2368
- }
2369
- if (this.autoCompactionLoader) {
2370
- this.autoCompactionLoader.stop();
2371
- this.autoCompactionLoader = undefined;
2372
- this.statusContainer.clear();
2373
- }
2374
- if (event.aborted) {
2375
- if (event.reason === "manual") {
2376
- this.showError("Compaction cancelled");
2377
- }
2378
- else {
2379
- this.showStatus("Auto-compaction cancelled");
2380
- }
2381
- }
2382
- else if (event.result) {
2383
- this.chatContainer.clear();
2384
- this.rebuildChatFromMessages();
2385
- this.addMessageToChat(createCompactionSummaryMessage(event.result.summary, event.result.tokensBefore, new Date().toISOString()));
2386
- this.footer.invalidate();
2387
- }
2388
- else if (event.errorMessage) {
2389
- if (event.reason === "manual") {
2390
- this.showError(event.errorMessage);
2391
- }
2392
- else {
2393
- this.chatContainer.addChild(new Spacer(1));
2394
- this.chatContainer.addChild(new Text(theme.fg("error", event.errorMessage), 1, 0));
2395
- }
2396
- }
2397
- void this.flushCompactionQueue({ willRetry: event.willRetry });
2398
- this.ui.requestRender();
2399
- break;
2400
- }
2401
- case "auto_retry_start": {
2402
- // Set up escape to abort retry
2403
- this.retryEscapeHandler = this.defaultEditor.onEscape;
2404
- this.defaultEditor.onEscape = () => {
2405
- this.session.abortRetry();
2406
- };
2407
- // Show retry indicator
2408
- this.statusContainer.clear();
2409
- this.retryCountdown?.dispose();
2410
- const retryMessage = (seconds) => `Retrying (${event.attempt}/${event.maxAttempts}) in ${seconds}s... (${keyText("app.interrupt")} to cancel)`;
2411
- this.retryLoader = new Loader(this.ui, (spinner) => theme.fg("warning", spinner), (text) => theme.fg("muted", text), retryMessage(Math.ceil(event.delayMs / 1000)));
2412
- this.retryCountdown = new CountdownTimer(event.delayMs, this.ui, (seconds) => {
2413
- this.retryLoader?.setMessage(retryMessage(seconds));
2414
- }, () => {
2415
- this.retryCountdown = undefined;
2416
- });
2417
- this.statusContainer.addChild(this.retryLoader);
2418
- this.ui.requestRender();
2419
- break;
2420
- }
2421
- case "auto_retry_end": {
2422
- // Restore escape handler
2423
- if (this.retryEscapeHandler) {
2424
- this.defaultEditor.onEscape = this.retryEscapeHandler;
2425
- this.retryEscapeHandler = undefined;
2426
- }
2427
- if (this.retryCountdown) {
2428
- this.retryCountdown.dispose();
2429
- this.retryCountdown = undefined;
2430
- }
2431
- // Stop loader
2432
- if (this.retryLoader) {
2433
- this.retryLoader.stop();
2434
- this.retryLoader = undefined;
2435
- this.statusContainer.clear();
2436
- }
2437
- // Show error only on final failure (success shows normal response)
2438
- if (!event.success) {
2439
- this.showError(`Retry failed after ${event.attempt} attempts: ${event.finalError || "Unknown error"}`);
2440
- }
2441
- this.ui.requestRender();
2442
- break;
2443
- }
2444
- }
2445
- }
2446
- /** Extract text content from a user message */
2447
- getUserMessageText(message) {
2448
- if (message.role !== "user")
2449
- return "";
2450
- const textBlocks = typeof message.content === "string"
2451
- ? [{ type: "text", text: message.content }]
2452
- : message.content.filter((c) => c.type === "text");
2453
- return textBlocks.map((c) => c.text).join("");
2454
- }
2455
- /**
2456
- * Show a status message in the chat.
2457
- *
2458
- * If multiple status messages are emitted back-to-back (without anything else being added to the chat),
2459
- * we update the previous status line instead of appending new ones to avoid log spam.
2460
- */
2461
- showStatus(message) {
2462
- const children = this.chatContainer.children;
2463
- const last = children.length > 0 ? children[children.length - 1] : undefined;
2464
- const secondLast = children.length > 1 ? children[children.length - 2] : undefined;
2465
- if (last && secondLast && last === this.lastStatusText && secondLast === this.lastStatusSpacer) {
2466
- this.lastStatusText.setText(theme.fg("dim", message));
2467
- this.ui.requestRender();
2468
- return;
2469
- }
2470
- const spacer = new Spacer(1);
2471
- const text = new Text(theme.fg("dim", message), 1, 0);
2472
- this.chatContainer.addChild(spacer);
2473
- this.chatContainer.addChild(text);
2474
- this.lastStatusSpacer = spacer;
2475
- this.lastStatusText = text;
2476
- this.ui.requestRender();
2477
- }
2478
- addMessageToChat(message, options) {
2479
- switch (message.role) {
2480
- case "bashExecution": {
2481
- const component = new BashExecutionComponent(message.command, this.ui, message.excludeFromContext);
2482
- if (message.output) {
2483
- component.appendOutput(message.output);
2484
- }
2485
- component.setComplete(message.exitCode, message.cancelled, message.truncated ? { truncated: true } : undefined, message.fullOutputPath);
2486
- this.chatContainer.addChild(component);
2487
- break;
2488
- }
2489
- case "custom": {
2490
- if (message.display) {
2491
- const renderer = this.session.extensionRunner.getMessageRenderer(message.customType);
2492
- const component = new CustomMessageComponent(message, renderer, this.getMarkdownThemeWithSettings());
2493
- component.setExpanded(this.toolOutputExpanded);
2494
- this.chatContainer.addChild(component);
2495
- }
2496
- break;
2497
- }
2498
- case "compactionSummary": {
2499
- this.chatContainer.addChild(new Spacer(1));
2500
- const component = new CompactionSummaryMessageComponent(message, this.getMarkdownThemeWithSettings());
2501
- component.setExpanded(this.toolOutputExpanded);
2502
- this.chatContainer.addChild(component);
2503
- break;
2504
- }
2505
- case "branchSummary": {
2506
- this.chatContainer.addChild(new Spacer(1));
2507
- const component = new BranchSummaryMessageComponent(message, this.getMarkdownThemeWithSettings());
2508
- component.setExpanded(this.toolOutputExpanded);
2509
- this.chatContainer.addChild(component);
2510
- break;
2511
- }
2512
- case "user": {
2513
- const textContent = this.getUserMessageText(message);
2514
- if (textContent) {
2515
- if (this.chatContainer.children.length > 0) {
2516
- this.chatContainer.addChild(new Spacer(1));
2517
- }
2518
- const skillBlock = parseSkillBlock(textContent);
2519
- if (skillBlock) {
2520
- // Render skill block (collapsible)
2521
- const component = new SkillInvocationMessageComponent(skillBlock, this.getMarkdownThemeWithSettings());
2522
- component.setExpanded(this.toolOutputExpanded);
2523
- this.chatContainer.addChild(component);
2524
- // Render user message separately if present
2525
- if (skillBlock.userMessage) {
2526
- const userComponent = new UserMessageComponent(skillBlock.userMessage, this.getMarkdownThemeWithSettings());
2527
- this.chatContainer.addChild(userComponent);
2528
- }
2529
- }
2530
- else {
2531
- const userComponent = new UserMessageComponent(textContent, this.getMarkdownThemeWithSettings());
2532
- this.chatContainer.addChild(userComponent);
2533
- }
2534
- if (options?.populateHistory) {
2535
- this.editor.addToHistory?.(textContent);
2536
- }
2537
- }
2538
- break;
2539
- }
2540
- case "assistant": {
2541
- const assistantComponent = new AssistantMessageComponent(message, this.hideThinkingBlock, this.getMarkdownThemeWithSettings(), this.hiddenThinkingLabel);
2542
- this.chatContainer.addChild(assistantComponent);
2543
- break;
2544
- }
2545
- case "toolResult": {
2546
- // Tool results are rendered inline with tool calls, handled separately
2547
- break;
2548
- }
2549
- default: {
2550
- const _exhaustive = message;
2551
- }
2552
- }
2553
- }
2554
- /**
2555
- * Render session context to chat. Used for initial load and rebuild after compaction.
2556
- * @param sessionContext Session context to render
2557
- * @param options.updateFooter Update footer state
2558
- * @param options.populateHistory Add user messages to editor history
2559
- */
2560
- renderSessionContext(sessionContext, options = {}) {
2561
- this.pendingTools.clear();
2562
- const renderedPendingTools = new Map();
2563
- if (options.updateFooter) {
2564
- this.footer.invalidate();
2565
- this.updateEditorBorderColor();
2566
- }
2567
- for (const message of sessionContext.messages) {
2568
- // Assistant messages need special handling for tool calls
2569
- if (message.role === "assistant") {
2570
- this.addMessageToChat(message);
2571
- // Render tool call components
2572
- for (const content of message.content) {
2573
- if (content.type === "toolCall") {
2574
- const component = new ToolExecutionComponent(content.name, content.id, content.arguments, {
2575
- showImages: this.settingsManager.getShowImages(),
2576
- imageWidthCells: this.settingsManager.getImageWidthCells(),
2577
- }, this.getRegisteredToolDefinition(content.name), this.ui, this.sessionManager.getCwd());
2578
- component.setExpanded(this.toolOutputExpanded);
2579
- this.chatContainer.addChild(component);
2580
- if (message.stopReason === "aborted" || message.stopReason === "error") {
2581
- let errorMessage;
2582
- if (message.stopReason === "aborted") {
2583
- const retryAttempt = this.session.retryAttempt;
2584
- errorMessage =
2585
- retryAttempt > 0
2586
- ? `Aborted after ${retryAttempt} retry attempt${retryAttempt > 1 ? "s" : ""}`
2587
- : "Operation aborted";
2588
- }
2589
- else {
2590
- errorMessage = message.errorMessage || "Error";
2591
- }
2592
- component.updateResult({ content: [{ type: "text", text: errorMessage }], isError: true });
2593
- }
2594
- else {
2595
- renderedPendingTools.set(content.id, component);
2596
- }
2597
- }
2598
- }
2599
- }
2600
- else if (message.role === "toolResult") {
2601
- // Match tool results to pending tool components
2602
- const component = renderedPendingTools.get(message.toolCallId);
2603
- if (component) {
2604
- component.updateResult(message);
2605
- renderedPendingTools.delete(message.toolCallId);
2606
- }
2607
- }
2608
- else {
2609
- // All other messages use standard rendering
2610
- this.addMessageToChat(message, options);
2611
- }
2612
- }
2613
- for (const [toolCallId, component] of renderedPendingTools) {
2614
- this.pendingTools.set(toolCallId, component);
2615
- }
2616
- this.ui.requestRender();
2617
- }
2618
- renderInitialMessages() {
2619
- // Get aligned messages and entries from session context
2620
- const context = this.sessionManager.buildSessionContext();
2621
- this.renderSessionContext(context, {
2622
- updateFooter: true,
2623
- populateHistory: true,
2624
- });
2625
- // Show compaction info if session was compacted
2626
- const allEntries = this.sessionManager.getEntries();
2627
- const compactionCount = allEntries.filter((e) => e.type === "compaction").length;
2628
- if (compactionCount > 0) {
2629
- const times = compactionCount === 1 ? "1 time" : `${compactionCount} times`;
2630
- this.showStatus(`Session compacted ${times}`);
2631
- }
2632
- }
2633
- async getUserInput() {
2634
- return new Promise((resolve) => {
2635
- this.onInputCallback = (text) => {
2636
- this.onInputCallback = undefined;
2637
- resolve(text);
2638
- };
2639
- });
2640
- }
2641
- rebuildChatFromMessages() {
2642
- this.chatContainer.clear();
2643
- const context = this.sessionManager.buildSessionContext();
2644
- this.renderSessionContext(context);
2645
- }
2646
- // =========================================================================
2647
- // Key handlers
2648
- // =========================================================================
2649
- handleCtrlC() {
2650
- const now = Date.now();
2651
- if (now - this.lastSigintTime < 500) {
2652
- void this.shutdown();
2653
- }
2654
- else {
2655
- this.clearEditor();
2656
- this.lastSigintTime = now;
2657
- }
2658
- }
2659
- handleCtrlD() {
2660
- // Only called when editor is empty (enforced by CustomEditor)
2661
- void this.shutdown();
2662
- }
2663
- /**
2664
- * Gracefully shutdown the agent.
2665
- * Stops the TUI before emitting shutdown events so extension UI cleanup cannot
2666
- * repaint the final frame while the process is exiting.
2667
- */
2668
- isShuttingDown = false;
2669
- async shutdown() {
2670
- if (this.isShuttingDown)
2671
- return;
2672
- this.isShuttingDown = true;
2673
- this.unregisterSignalHandlers();
2674
- // Drain any in-flight Kitty key release events before stopping.
2675
- // This prevents escape sequences from leaking to the parent shell over slow SSH.
2676
- await this.ui.terminal.drainInput(1000);
2677
- this.stop();
2678
- await this.runtimeHost.dispose();
2679
- process.exit(0);
2680
- }
2681
- emergencyTerminalExit() {
2682
- this.isShuttingDown = true;
2683
- this.unregisterSignalHandlers();
2684
- killTrackedDetachedChildren();
2685
- // The terminal is gone. Do not run normal shutdown because TUI and
2686
- // extension cleanup can write restore sequences and re-trigger EIO.
2687
- process.exit(129);
2688
- }
2689
- /**
2690
- * Check if shutdown was requested and perform shutdown if so.
2691
- */
2692
- async checkShutdownRequested() {
2693
- if (!this.shutdownRequested)
2694
- return;
2695
- await this.shutdown();
2696
- }
2697
- registerSignalHandlers() {
2698
- this.unregisterSignalHandlers();
2699
- const signals = ["SIGTERM"];
2700
- if (process.platform !== "win32") {
2701
- signals.push("SIGHUP");
2702
- }
2703
- for (const signal of signals) {
2704
- const handler = () => {
2705
- if (signal === "SIGHUP") {
2706
- this.emergencyTerminalExit();
2707
- }
2708
- killTrackedDetachedChildren();
2709
- void this.shutdown();
2710
- };
2711
- process.prependListener(signal, handler);
2712
- this.signalCleanupHandlers.push(() => process.off(signal, handler));
2713
- }
2714
- const terminalErrorHandler = (error) => {
2715
- if (isDeadTerminalError(error)) {
2716
- this.emergencyTerminalExit();
2717
- }
2718
- throw error;
2719
- };
2720
- process.stdout.on("error", terminalErrorHandler);
2721
- process.stderr.on("error", terminalErrorHandler);
2722
- this.signalCleanupHandlers.push(() => process.stdout.off("error", terminalErrorHandler));
2723
- this.signalCleanupHandlers.push(() => process.stderr.off("error", terminalErrorHandler));
2724
- }
2725
- unregisterSignalHandlers() {
2726
- for (const cleanup of this.signalCleanupHandlers) {
2727
- cleanup();
2728
- }
2729
- this.signalCleanupHandlers = [];
2730
- }
2731
- handleCtrlZ() {
2732
- if (process.platform === "win32") {
2733
- this.showStatus("Suspend to background is not supported on Windows");
2734
- return;
2735
- }
2736
- // Keep the event loop alive while suspended. Without this, stopping the TUI
2737
- // can leave Node with no ref'ed handles, causing the process to exit on fg
2738
- // before the SIGCONT handler gets a chance to restore the terminal.
2739
- const suspendKeepAlive = setInterval(() => { }, 2 ** 30);
2740
- // Ignore SIGINT while suspended so Ctrl+C in the terminal does not
2741
- // kill the backgrounded process. The handler is removed on resume.
2742
- const ignoreSigint = () => { };
2743
- process.on("SIGINT", ignoreSigint);
2744
- // Set up handler to restore TUI when resumed
2745
- process.once("SIGCONT", () => {
2746
- clearInterval(suspendKeepAlive);
2747
- process.removeListener("SIGINT", ignoreSigint);
2748
- this.ui.start();
2749
- this.ui.requestRender(true);
2750
- });
2751
- try {
2752
- // Stop the TUI (restore terminal to normal mode)
2753
- this.ui.stop();
2754
- // Send SIGTSTP to process group (pid=0 means all processes in group)
2755
- process.kill(0, "SIGTSTP");
2756
- }
2757
- catch (error) {
2758
- clearInterval(suspendKeepAlive);
2759
- process.removeListener("SIGINT", ignoreSigint);
2760
- throw error;
2761
- }
2762
- }
2763
- async handleFollowUp() {
2764
- const text = (this.editor.getExpandedText?.() ?? this.editor.getText()).trim();
2765
- if (!text)
2766
- return;
2767
- // Queue input during compaction (extension commands execute immediately)
2768
- if (this.session.isCompacting) {
2769
- if (this.isExtensionCommand(text)) {
2770
- this.editor.addToHistory?.(text);
2771
- this.editor.setText("");
2772
- await this.session.prompt(text);
2773
- }
2774
- else {
2775
- this.queueCompactionMessage(text, "followUp");
2776
- }
2777
- return;
2778
- }
2779
- // Alt+Enter queues a follow-up message (waits until agent finishes)
2780
- // This handles extension commands (execute immediately), prompt template expansion, and queueing
2781
- if (this.session.isStreaming) {
2782
- this.editor.addToHistory?.(text);
2783
- this.editor.setText("");
2784
- await this.session.prompt(text, { streamingBehavior: "followUp" });
2785
- this.updatePendingMessagesDisplay();
2786
- this.ui.requestRender();
2787
- }
2788
- // If not streaming, Alt+Enter acts like regular Enter (trigger onSubmit)
2789
- else if (this.editor.onSubmit) {
2790
- this.editor.setText("");
2791
- this.editor.onSubmit(text);
2792
- }
2793
- }
2794
- handleDequeue() {
2795
- const restored = this.restoreQueuedMessagesToEditor();
2796
- if (restored === 0) {
2797
- this.showStatus("No queued messages to restore");
2798
- }
2799
- else {
2800
- this.showStatus(`Restored ${restored} queued message${restored > 1 ? "s" : ""} to editor`);
2801
- }
2802
- }
2803
- updateEditorBorderColor() {
2804
- if (this.isBashMode) {
2805
- this.editor.borderColor = theme.getBashModeBorderColor();
2806
- }
2807
- else {
2808
- const level = this.session.thinkingLevel || "off";
2809
- this.editor.borderColor = theme.getThinkingBorderColor(level);
2810
- }
2811
- this.ui.requestRender();
2812
- }
2813
- cycleThinkingLevel() {
2814
- const newLevel = this.session.cycleThinkingLevel();
2815
- if (newLevel === undefined) {
2816
- this.showStatus("Current model does not support thinking");
2817
- }
2818
- else {
2819
- this.footer.invalidate();
2820
- this.updateEditorBorderColor();
2821
- this.showStatus(`Thinking level: ${newLevel}`);
2822
- }
2823
- }
2824
- async cycleModel(direction) {
2825
- try {
2826
- const result = await this.session.cycleModel(direction);
2827
- if (result === undefined) {
2828
- const msg = this.session.scopedModels.length > 0 ? "Only one model in scope" : "Only one model available";
2829
- this.showStatus(msg);
2830
- }
2831
- else {
2832
- this.footer.invalidate();
2833
- this.updateEditorBorderColor();
2834
- const thinkingStr = result.model.reasoning && result.thinkingLevel !== "off" ? ` (thinking: ${result.thinkingLevel})` : "";
2835
- this.showStatus(`Switched to ${result.model.name || result.model.id}${thinkingStr}`);
2836
- void this.maybeWarnAboutAnthropicSubscriptionAuth(result.model);
2837
- }
2838
- }
2839
- catch (error) {
2840
- this.showError(error instanceof Error ? error.message : String(error));
2841
- }
2842
- }
2843
- toggleToolOutputExpansion() {
2844
- this.setToolsExpanded(!this.toolOutputExpanded);
2845
- }
2846
- setToolsExpanded(expanded) {
2847
- this.toolOutputExpanded = expanded;
2848
- const activeHeader = this.customHeader ?? this.builtInHeader;
2849
- if (isExpandable(activeHeader)) {
2850
- activeHeader.setExpanded(expanded);
2851
- }
2852
- for (const child of this.chatContainer.children) {
2853
- if (isExpandable(child)) {
2854
- child.setExpanded(expanded);
2855
- }
2856
- }
2857
- this.ui.requestRender();
2858
- }
2859
- toggleThinkingBlockVisibility() {
2860
- this.hideThinkingBlock = !this.hideThinkingBlock;
2861
- this.settingsManager.setHideThinkingBlock(this.hideThinkingBlock);
2862
- // Rebuild chat from session messages
2863
- this.chatContainer.clear();
2864
- this.rebuildChatFromMessages();
2865
- // If streaming, re-add the streaming component with updated visibility and re-render
2866
- if (this.streamingComponent && this.streamingMessage) {
2867
- this.streamingComponent.setHideThinkingBlock(this.hideThinkingBlock);
2868
- this.streamingComponent.updateContent(this.streamingMessage);
2869
- this.chatContainer.addChild(this.streamingComponent);
2870
- }
2871
- this.showStatus(`Thinking blocks: ${this.hideThinkingBlock ? "hidden" : "visible"}`);
2872
- }
2873
- openExternalEditor() {
2874
- // Determine editor (respect $VISUAL, then $EDITOR)
2875
- const editorCmd = process.env.VISUAL || process.env.EDITOR;
2876
- if (!editorCmd) {
2877
- this.showWarning("No editor configured. Set $VISUAL or $EDITOR environment variable.");
2878
- return;
2879
- }
2880
- const currentText = this.editor.getExpandedText?.() ?? this.editor.getText();
2881
- const tmpFile = path.join(os.tmpdir(), `pi-editor-${Date.now()}.pi.md`);
2882
- try {
2883
- // Write current content to temp file
2884
- fs.writeFileSync(tmpFile, currentText, "utf-8");
2885
- // Stop TUI to release terminal
2886
- this.ui.stop();
2887
- // Split by space to support editor arguments (e.g., "code --wait")
2888
- const [editor, ...editorArgs] = editorCmd.split(" ");
2889
- // Spawn editor synchronously with inherited stdio for interactive editing
2890
- const result = spawnSync(editor, [...editorArgs, tmpFile], {
2891
- stdio: "inherit",
2892
- shell: process.platform === "win32",
2893
- });
2894
- // On successful exit (status 0), replace editor content
2895
- if (result.status === 0) {
2896
- const newContent = fs.readFileSync(tmpFile, "utf-8").replace(/\n$/, "");
2897
- this.editor.setText(newContent);
2898
- }
2899
- // On non-zero exit, keep original text (no action needed)
2900
- }
2901
- finally {
2902
- // Clean up temp file
2903
- try {
2904
- fs.unlinkSync(tmpFile);
2905
- }
2906
- catch {
2907
- // Ignore cleanup errors
2908
- }
2909
- // Restart TUI
2910
- this.ui.start();
2911
- // Force full re-render since external editor uses alternate screen
2912
- this.ui.requestRender(true);
2913
- }
2914
- }
2915
- // =========================================================================
2916
- // UI helpers
2917
- // =========================================================================
2918
- clearEditor() {
2919
- this.editor.setText("");
2920
- this.ui.requestRender();
2921
- }
2922
- showError(errorMessage) {
2923
- this.chatContainer.addChild(new Spacer(1));
2924
- this.chatContainer.addChild(new Text(theme.fg("error", `Error: ${errorMessage}`), 1, 0));
2925
- this.ui.requestRender();
2926
- }
2927
- showWarning(warningMessage) {
2928
- this.chatContainer.addChild(new Spacer(1));
2929
- this.chatContainer.addChild(new Text(theme.fg("warning", `Warning: ${warningMessage}`), 1, 0));
2930
- this.ui.requestRender();
2931
- }
2932
- showNewVersionNotification(newVersion) {
2933
- const action = theme.fg("accent", `${APP_NAME} update`);
2934
- const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. Run `) + action;
2935
- const changelogUrl = theme.fg("accent", "https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md");
2936
- const changelogLine = theme.fg("muted", "Changelog: ") + changelogUrl;
2937
- this.chatContainer.addChild(new Spacer(1));
2938
- this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2939
- this.chatContainer.addChild(new Text(`${theme.bold(theme.fg("warning", "Update Available"))}\n${updateInstruction}\n${changelogLine}`, 1, 0));
2940
- this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2941
- this.ui.requestRender();
2942
- }
2943
- showPackageUpdateNotification(packages) {
2944
- const action = theme.fg("accent", `${APP_NAME} update`);
2945
- const updateInstruction = theme.fg("muted", "Package updates are available. Run ") + action;
2946
- const packageLines = packages.map((pkg) => `- ${pkg}`).join("\n");
2947
- this.chatContainer.addChild(new Spacer(1));
2948
- this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2949
- this.chatContainer.addChild(new Text(`${theme.bold(theme.fg("warning", "Package Updates Available"))}\n${updateInstruction}\n${theme.fg("muted", "Packages:")}\n${packageLines}`, 1, 0));
2950
- this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2951
- this.ui.requestRender();
2952
- }
2953
- /**
2954
- * Get all queued messages (read-only).
2955
- * Combines session queue and compaction queue.
2956
- */
2957
- getAllQueuedMessages() {
2958
- return {
2959
- steering: [
2960
- ...this.session.getSteeringMessages(),
2961
- ...this.compactionQueuedMessages.filter((msg) => msg.mode === "steer").map((msg) => msg.text),
2962
- ],
2963
- followUp: [
2964
- ...this.session.getFollowUpMessages(),
2965
- ...this.compactionQueuedMessages.filter((msg) => msg.mode === "followUp").map((msg) => msg.text),
2966
- ],
2967
- };
2968
- }
2969
- /**
2970
- * Clear all queued messages and return their contents.
2971
- * Clears both session queue and compaction queue.
2972
- */
2973
- clearAllQueues() {
2974
- const { steering, followUp } = this.session.clearQueue();
2975
- const compactionSteering = this.compactionQueuedMessages
2976
- .filter((msg) => msg.mode === "steer")
2977
- .map((msg) => msg.text);
2978
- const compactionFollowUp = this.compactionQueuedMessages
2979
- .filter((msg) => msg.mode === "followUp")
2980
- .map((msg) => msg.text);
2981
- this.compactionQueuedMessages = [];
2982
- return {
2983
- steering: [...steering, ...compactionSteering],
2984
- followUp: [...followUp, ...compactionFollowUp],
2985
- };
2986
- }
2987
- updatePendingMessagesDisplay() {
2988
- this.pendingMessagesContainer.clear();
2989
- const { steering: steeringMessages, followUp: followUpMessages } = this.getAllQueuedMessages();
2990
- if (steeringMessages.length > 0 || followUpMessages.length > 0) {
2991
- this.pendingMessagesContainer.addChild(new Spacer(1));
2992
- for (const message of steeringMessages) {
2993
- const text = theme.fg("dim", `Steering: ${message}`);
2994
- this.pendingMessagesContainer.addChild(new TruncatedText(text, 1, 0));
2995
- }
2996
- for (const message of followUpMessages) {
2997
- const text = theme.fg("dim", `Follow-up: ${message}`);
2998
- this.pendingMessagesContainer.addChild(new TruncatedText(text, 1, 0));
2999
- }
3000
- const dequeueHint = this.getAppKeyDisplay("app.message.dequeue");
3001
- const hintText = theme.fg("dim", `↳ ${dequeueHint} to edit all queued messages`);
3002
- this.pendingMessagesContainer.addChild(new TruncatedText(hintText, 1, 0));
3003
- }
3004
- }
3005
- restoreQueuedMessagesToEditor(options) {
3006
- const { steering, followUp } = this.clearAllQueues();
3007
- const allQueued = [...steering, ...followUp];
3008
- if (allQueued.length === 0) {
3009
- this.updatePendingMessagesDisplay();
3010
- if (options?.abort) {
3011
- this.agent.abort();
3012
- }
3013
- return 0;
3014
- }
3015
- const queuedText = allQueued.join("\n\n");
3016
- const currentText = options?.currentText ?? this.editor.getText();
3017
- const combinedText = [queuedText, currentText].filter((t) => t.trim()).join("\n\n");
3018
- this.editor.setText(combinedText);
3019
- this.updatePendingMessagesDisplay();
3020
- if (options?.abort) {
3021
- this.agent.abort();
3022
- }
3023
- return allQueued.length;
3024
- }
3025
- queueCompactionMessage(text, mode) {
3026
- this.compactionQueuedMessages.push({ text, mode });
3027
- this.editor.addToHistory?.(text);
3028
- this.editor.setText("");
3029
- this.updatePendingMessagesDisplay();
3030
- this.showStatus("Queued message for after compaction");
3031
- }
3032
- isExtensionCommand(text) {
3033
- if (!text.startsWith("/"))
3034
- return false;
3035
- const extensionRunner = this.session.extensionRunner;
3036
- const spaceIndex = text.indexOf(" ");
3037
- const commandName = spaceIndex === -1 ? text.slice(1) : text.slice(1, spaceIndex);
3038
- return !!extensionRunner.getCommand(commandName);
3039
- }
3040
- async flushCompactionQueue(options) {
3041
- if (this.compactionQueuedMessages.length === 0) {
3042
- return;
3043
- }
3044
- const queuedMessages = [...this.compactionQueuedMessages];
3045
- this.compactionQueuedMessages = [];
3046
- this.updatePendingMessagesDisplay();
3047
- const restoreQueue = (error) => {
3048
- this.session.clearQueue();
3049
- this.compactionQueuedMessages = queuedMessages;
3050
- this.updatePendingMessagesDisplay();
3051
- this.showError(`Failed to send queued message${queuedMessages.length > 1 ? "s" : ""}: ${error instanceof Error ? error.message : String(error)}`);
3052
- };
3053
- try {
3054
- if (options?.willRetry) {
3055
- // When retry is pending, queue messages for the retry turn
3056
- for (const message of queuedMessages) {
3057
- if (this.isExtensionCommand(message.text)) {
3058
- await this.session.prompt(message.text);
3059
- }
3060
- else if (message.mode === "followUp") {
3061
- await this.session.followUp(message.text);
3062
- }
3063
- else {
3064
- await this.session.steer(message.text);
3065
- }
3066
- }
3067
- this.updatePendingMessagesDisplay();
3068
- return;
3069
- }
3070
- // Find first non-extension-command message to use as prompt
3071
- const firstPromptIndex = queuedMessages.findIndex((message) => !this.isExtensionCommand(message.text));
3072
- if (firstPromptIndex === -1) {
3073
- // All extension commands - execute them all
3074
- for (const message of queuedMessages) {
3075
- await this.session.prompt(message.text);
3076
- }
3077
- return;
3078
- }
3079
- // Execute any extension commands before the first prompt
3080
- const preCommands = queuedMessages.slice(0, firstPromptIndex);
3081
- const firstPrompt = queuedMessages[firstPromptIndex];
3082
- const rest = queuedMessages.slice(firstPromptIndex + 1);
3083
- for (const message of preCommands) {
3084
- await this.session.prompt(message.text);
3085
- }
3086
- // Send first prompt (starts streaming)
3087
- const promptPromise = this.session.prompt(firstPrompt.text).catch((error) => {
3088
- restoreQueue(error);
3089
- });
3090
- // Queue remaining messages
3091
- for (const message of rest) {
3092
- if (this.isExtensionCommand(message.text)) {
3093
- await this.session.prompt(message.text);
3094
- }
3095
- else if (message.mode === "followUp") {
3096
- await this.session.followUp(message.text);
3097
- }
3098
- else {
3099
- await this.session.steer(message.text);
3100
- }
3101
- }
3102
- this.updatePendingMessagesDisplay();
3103
- void promptPromise;
3104
- }
3105
- catch (error) {
3106
- restoreQueue(error);
3107
- }
3108
- }
3109
- /** Move pending bash components from pending area to chat */
3110
- flushPendingBashComponents() {
3111
- for (const component of this.pendingBashComponents) {
3112
- this.pendingMessagesContainer.removeChild(component);
3113
- this.chatContainer.addChild(component);
3114
- }
3115
- this.pendingBashComponents = [];
3116
- }
3117
- // =========================================================================
3118
- // Selectors
3119
- // =========================================================================
3120
- /**
3121
- * Shows a selector component in place of the editor.
3122
- * @param create Factory that receives a `done` callback and returns the component and focus target
3123
- */
3124
- showSelector(create) {
3125
- const done = () => {
3126
- this.editorContainer.clear();
3127
- this.editorContainer.addChild(this.editor);
3128
- this.ui.setFocus(this.editor);
3129
- };
3130
- const { component, focus } = create(done);
3131
- this.editorContainer.clear();
3132
- this.editorContainer.addChild(component);
3133
- this.ui.setFocus(focus);
3134
- this.ui.requestRender();
3135
- }
3136
- showSettingsSelector() {
3137
- this.showSelector((done) => {
3138
- const selector = new SettingsSelectorComponent({
3139
- autoCompact: this.session.autoCompactionEnabled,
3140
- showImages: this.settingsManager.getShowImages(),
3141
- imageWidthCells: this.settingsManager.getImageWidthCells(),
3142
- autoResizeImages: this.settingsManager.getImageAutoResize(),
3143
- blockImages: this.settingsManager.getBlockImages(),
3144
- enableSkillCommands: this.settingsManager.getEnableSkillCommands(),
3145
- steeringMode: this.session.steeringMode,
3146
- followUpMode: this.session.followUpMode,
3147
- transport: this.settingsManager.getTransport(),
3148
- thinkingLevel: this.session.thinkingLevel,
3149
- availableThinkingLevels: this.session.getAvailableThinkingLevels(),
3150
- currentTheme: this.settingsManager.getTheme() || "dark",
3151
- availableThemes: getAvailableThemes(),
3152
- hideThinkingBlock: this.hideThinkingBlock,
3153
- collapseChangelog: this.settingsManager.getCollapseChangelog(),
3154
- enableInstallTelemetry: this.settingsManager.getEnableInstallTelemetry(),
3155
- doubleEscapeAction: this.settingsManager.getDoubleEscapeAction(),
3156
- treeFilterMode: this.settingsManager.getTreeFilterMode(),
3157
- showHardwareCursor: this.settingsManager.getShowHardwareCursor(),
3158
- editorPaddingX: this.settingsManager.getEditorPaddingX(),
3159
- autocompleteMaxVisible: this.settingsManager.getAutocompleteMaxVisible(),
3160
- quietStartup: this.settingsManager.getQuietStartup(),
3161
- clearOnShrink: this.settingsManager.getClearOnShrink(),
3162
- showTerminalProgress: this.settingsManager.getShowTerminalProgress(),
3163
- warnings: this.settingsManager.getWarnings(),
3164
- }, {
3165
- onAutoCompactChange: (enabled) => {
3166
- this.session.setAutoCompactionEnabled(enabled);
3167
- this.footer.setAutoCompactEnabled(enabled);
3168
- },
3169
- onShowImagesChange: (enabled) => {
3170
- this.settingsManager.setShowImages(enabled);
3171
- for (const child of this.chatContainer.children) {
3172
- if (child instanceof ToolExecutionComponent) {
3173
- child.setShowImages(enabled);
3174
- }
3175
- }
3176
- },
3177
- onImageWidthCellsChange: (width) => {
3178
- this.settingsManager.setImageWidthCells(width);
3179
- for (const child of this.chatContainer.children) {
3180
- if (child instanceof ToolExecutionComponent) {
3181
- child.setImageWidthCells(width);
3182
- }
3183
- }
3184
- },
3185
- onAutoResizeImagesChange: (enabled) => {
3186
- this.settingsManager.setImageAutoResize(enabled);
3187
- },
3188
- onBlockImagesChange: (blocked) => {
3189
- this.settingsManager.setBlockImages(blocked);
3190
- },
3191
- onEnableSkillCommandsChange: (enabled) => {
3192
- this.settingsManager.setEnableSkillCommands(enabled);
3193
- this.setupAutocompleteProvider();
3194
- },
3195
- onSteeringModeChange: (mode) => {
3196
- this.session.setSteeringMode(mode);
3197
- },
3198
- onFollowUpModeChange: (mode) => {
3199
- this.session.setFollowUpMode(mode);
3200
- },
3201
- onTransportChange: (transport) => {
3202
- this.settingsManager.setTransport(transport);
3203
- this.session.agent.transport = transport;
3204
- },
3205
- onThinkingLevelChange: (level) => {
3206
- this.session.setThinkingLevel(level);
3207
- this.footer.invalidate();
3208
- this.updateEditorBorderColor();
3209
- },
3210
- onThemeChange: (themeName) => {
3211
- const result = setTheme(themeName, true);
3212
- this.settingsManager.setTheme(themeName);
3213
- this.ui.invalidate();
3214
- if (!result.success) {
3215
- this.showError(`Failed to load theme "${themeName}": ${result.error}\nFell back to dark theme.`);
3216
- }
3217
- },
3218
- onThemePreview: (themeName) => {
3219
- const result = setTheme(themeName, true);
3220
- if (result.success) {
3221
- this.ui.invalidate();
3222
- this.ui.requestRender();
3223
- }
3224
- },
3225
- onHideThinkingBlockChange: (hidden) => {
3226
- this.hideThinkingBlock = hidden;
3227
- this.settingsManager.setHideThinkingBlock(hidden);
3228
- for (const child of this.chatContainer.children) {
3229
- if (child instanceof AssistantMessageComponent) {
3230
- child.setHideThinkingBlock(hidden);
3231
- }
3232
- }
3233
- this.chatContainer.clear();
3234
- this.rebuildChatFromMessages();
3235
- },
3236
- onCollapseChangelogChange: (collapsed) => {
3237
- this.settingsManager.setCollapseChangelog(collapsed);
3238
- },
3239
- onEnableInstallTelemetryChange: (enabled) => {
3240
- this.settingsManager.setEnableInstallTelemetry(enabled);
3241
- },
3242
- onQuietStartupChange: (enabled) => {
3243
- this.settingsManager.setQuietStartup(enabled);
3244
- },
3245
- onDoubleEscapeActionChange: (action) => {
3246
- this.settingsManager.setDoubleEscapeAction(action);
3247
- },
3248
- onTreeFilterModeChange: (mode) => {
3249
- this.settingsManager.setTreeFilterMode(mode);
3250
- },
3251
- onShowHardwareCursorChange: (enabled) => {
3252
- this.settingsManager.setShowHardwareCursor(enabled);
3253
- this.ui.setShowHardwareCursor(enabled);
3254
- },
3255
- onEditorPaddingXChange: (padding) => {
3256
- this.settingsManager.setEditorPaddingX(padding);
3257
- this.defaultEditor.setPaddingX(padding);
3258
- if (this.editor !== this.defaultEditor && this.editor.setPaddingX !== undefined) {
3259
- this.editor.setPaddingX(padding);
3260
- }
3261
- },
3262
- onAutocompleteMaxVisibleChange: (maxVisible) => {
3263
- this.settingsManager.setAutocompleteMaxVisible(maxVisible);
3264
- this.defaultEditor.setAutocompleteMaxVisible(maxVisible);
3265
- if (this.editor !== this.defaultEditor && this.editor.setAutocompleteMaxVisible !== undefined) {
3266
- this.editor.setAutocompleteMaxVisible(maxVisible);
3267
- }
3268
- },
3269
- onClearOnShrinkChange: (enabled) => {
3270
- this.settingsManager.setClearOnShrink(enabled);
3271
- this.ui.setClearOnShrink(enabled);
3272
- },
3273
- onShowTerminalProgressChange: (enabled) => {
3274
- this.settingsManager.setShowTerminalProgress(enabled);
3275
- },
3276
- onWarningsChange: (warnings) => {
3277
- this.settingsManager.setWarnings(warnings);
3278
- },
3279
- onCancel: () => {
3280
- done();
3281
- this.ui.requestRender();
3282
- },
3283
- });
3284
- return { component: selector, focus: selector.getSettingsList() };
3285
- });
3286
- }
3287
- async handleModelCommand(searchTerm) {
3288
- if (!searchTerm) {
3289
- this.showModelSelector();
3290
- return;
3291
- }
3292
- const model = await this.findExactModelMatch(searchTerm);
3293
- if (model) {
3294
- try {
3295
- await this.session.setModel(model);
3296
- this.footer.invalidate();
3297
- this.updateEditorBorderColor();
3298
- this.showStatus(`Model: ${model.id}`);
3299
- void this.maybeWarnAboutAnthropicSubscriptionAuth(model);
3300
- this.checkDaxnutsEasterEgg(model);
3301
- }
3302
- catch (error) {
3303
- this.showError(error instanceof Error ? error.message : String(error));
3304
- }
3305
- return;
3306
- }
3307
- this.showModelSelector(searchTerm);
3308
- }
3309
- async findExactModelMatch(searchTerm) {
3310
- const models = await this.getModelCandidates();
3311
- return findExactModelReferenceMatch(searchTerm, models);
3312
- }
3313
- async getModelCandidates() {
3314
- if (this.session.scopedModels.length > 0) {
3315
- return this.session.scopedModels.map((scoped) => scoped.model);
3316
- }
3317
- this.session.modelRegistry.refresh();
3318
- try {
3319
- return await this.session.modelRegistry.getAvailable();
3320
- }
3321
- catch {
3322
- return [];
3323
- }
3324
- }
3325
- /** Update the footer's available provider count from current model candidates */
3326
- async updateAvailableProviderCount() {
3327
- const models = await this.getModelCandidates();
3328
- const uniqueProviders = new Set(models.map((m) => m.provider));
3329
- this.footerDataProvider.setAvailableProviderCount(uniqueProviders.size);
3330
- }
3331
- async maybeWarnAboutAnthropicSubscriptionAuth(model = this.session.model) {
3332
- if (this.settingsManager.getWarnings().anthropicExtraUsage === false) {
3333
- return;
3334
- }
3335
- if (this.anthropicSubscriptionWarningShown) {
3336
- return;
3337
- }
3338
- if (!model || model.provider !== "anthropic") {
3339
- return;
3340
- }
3341
- const storedCredential = this.session.modelRegistry.authStorage.get("anthropic");
3342
- if (storedCredential?.type === "oauth") {
3343
- this.anthropicSubscriptionWarningShown = true;
3344
- this.showWarning(ANTHROPIC_SUBSCRIPTION_AUTH_WARNING);
3345
- return;
3346
- }
3347
- try {
3348
- const apiKey = await this.session.modelRegistry.getApiKeyForProvider(model.provider);
3349
- if (!isAnthropicSubscriptionAuthKey(apiKey)) {
3350
- return;
3351
- }
3352
- this.anthropicSubscriptionWarningShown = true;
3353
- this.showWarning(ANTHROPIC_SUBSCRIPTION_AUTH_WARNING);
3354
- }
3355
- catch {
3356
- // Ignore auth lookup failures for warning-only checks.
3357
- }
3358
- }
3359
- showModelSelector(initialSearchInput) {
3360
- this.showSelector((done) => {
3361
- const selector = new ModelSelectorComponent(this.ui, this.session.model, this.settingsManager, this.session.modelRegistry, this.session.scopedModels, async (model) => {
3362
- try {
3363
- await this.session.setModel(model);
3364
- this.footer.invalidate();
3365
- this.updateEditorBorderColor();
3366
- done();
3367
- this.showStatus(`Model: ${model.id}`);
3368
- void this.maybeWarnAboutAnthropicSubscriptionAuth(model);
3369
- this.checkDaxnutsEasterEgg(model);
3370
- }
3371
- catch (error) {
3372
- done();
3373
- this.showError(error instanceof Error ? error.message : String(error));
3374
- }
3375
- }, () => {
3376
- done();
3377
- this.ui.requestRender();
3378
- }, initialSearchInput);
3379
- return { component: selector, focus: selector };
3380
- });
3381
- }
3382
- async showModelsSelector() {
3383
- // Get all available models
3384
- this.session.modelRegistry.refresh();
3385
- const allModels = this.session.modelRegistry.getAvailable();
3386
- if (allModels.length === 0) {
3387
- this.showStatus("No models available");
3388
- return;
3389
- }
3390
- // Check if session has scoped models (from previous session-only changes or CLI --models)
3391
- const sessionScopedModels = this.session.scopedModels;
3392
- const hasSessionScope = sessionScopedModels.length > 0;
3393
- // Build enabled model IDs from session state or settings
3394
- let currentEnabledIds = null;
3395
- if (hasSessionScope) {
3396
- // Use current session's scoped models
3397
- currentEnabledIds = sessionScopedModels.map((scoped) => `${scoped.model.provider}/${scoped.model.id}`);
3398
- }
3399
- else {
3400
- // Fall back to settings
3401
- const patterns = this.settingsManager.getEnabledModels();
3402
- if (patterns !== undefined && patterns.length > 0) {
3403
- const scopedModels = await resolveModelScope(patterns, this.session.modelRegistry);
3404
- currentEnabledIds = scopedModels.map((scoped) => `${scoped.model.provider}/${scoped.model.id}`);
3405
- }
3406
- }
3407
- // Helper to update session's scoped models (session-only, no persist)
3408
- const updateSessionModels = async (enabledIds) => {
3409
- currentEnabledIds = enabledIds === null ? null : [...enabledIds];
3410
- if (enabledIds && enabledIds.length > 0 && enabledIds.length < allModels.length) {
3411
- const newScopedModels = await resolveModelScope(enabledIds, this.session.modelRegistry);
3412
- this.session.setScopedModels(newScopedModels.map((sm) => ({
3413
- model: sm.model,
3414
- thinkingLevel: sm.thinkingLevel,
3415
- })));
3416
- }
3417
- else {
3418
- // All enabled or none enabled = no filter
3419
- this.session.setScopedModels([]);
3420
- }
3421
- await this.updateAvailableProviderCount();
3422
- this.ui.requestRender();
3423
- };
3424
- this.showSelector((done) => {
3425
- const selector = new ScopedModelsSelectorComponent({
3426
- allModels,
3427
- enabledModelIds: currentEnabledIds,
3428
- }, {
3429
- onChange: async (enabledIds) => {
3430
- await updateSessionModels(enabledIds);
3431
- },
3432
- onPersist: (enabledIds) => {
3433
- // Persist to settings
3434
- const newPatterns = enabledIds === null || enabledIds.length === allModels.length
3435
- ? undefined // All enabled = clear filter
3436
- : enabledIds;
3437
- this.settingsManager.setEnabledModels(newPatterns ? [...newPatterns] : undefined);
3438
- this.showStatus("Model selection saved to settings");
3439
- },
3440
- onCancel: () => {
3441
- done();
3442
- this.ui.requestRender();
3443
- },
3444
- });
3445
- return { component: selector, focus: selector };
3446
- });
3447
- }
3448
- showUserMessageSelector() {
3449
- const userMessages = this.session.getUserMessagesForForking();
3450
- if (userMessages.length === 0) {
3451
- this.showStatus("No messages to fork from");
3452
- return;
3453
- }
3454
- const initialSelectedId = userMessages[userMessages.length - 1]?.entryId;
3455
- this.showSelector((done) => {
3456
- const selector = new UserMessageSelectorComponent(userMessages.map((m) => ({ id: m.entryId, text: m.text })), async (entryId) => {
3457
- try {
3458
- const result = await this.runtimeHost.fork(entryId);
3459
- if (result.cancelled) {
3460
- done();
3461
- this.ui.requestRender();
3462
- return;
3463
- }
3464
- this.renderCurrentSessionState();
3465
- this.editor.setText(result.selectedText ?? "");
3466
- done();
3467
- this.showStatus("Forked to new session");
3468
- }
3469
- catch (error) {
3470
- done();
3471
- this.showError(error instanceof Error ? error.message : String(error));
3472
- }
3473
- }, () => {
3474
- done();
3475
- this.ui.requestRender();
3476
- }, initialSelectedId);
3477
- return { component: selector, focus: selector.getMessageList() };
3478
- });
3479
- }
3480
- async handleCloneCommand() {
3481
- const leafId = this.sessionManager.getLeafId();
3482
- if (!leafId) {
3483
- this.showStatus("Nothing to clone yet");
3484
- return;
3485
- }
3486
- try {
3487
- const result = await this.runtimeHost.fork(leafId, { position: "at" });
3488
- if (result.cancelled) {
3489
- this.ui.requestRender();
3490
- return;
3491
- }
3492
- this.renderCurrentSessionState();
3493
- this.editor.setText("");
3494
- this.showStatus("Cloned to new session");
3495
- }
3496
- catch (error) {
3497
- this.showError(error instanceof Error ? error.message : String(error));
3498
- }
3499
- }
3500
- showTreeSelector(initialSelectedId) {
3501
- const tree = this.sessionManager.getTree();
3502
- const realLeafId = this.sessionManager.getLeafId();
3503
- const initialFilterMode = this.settingsManager.getTreeFilterMode();
3504
- if (tree.length === 0) {
3505
- this.showStatus("No entries in session");
3506
- return;
3507
- }
3508
- this.showSelector((done) => {
3509
- const selector = new TreeSelectorComponent(tree, realLeafId, this.ui.terminal.rows, async (entryId) => {
3510
- // Selecting the current leaf is a no-op (already there)
3511
- if (entryId === realLeafId) {
3512
- done();
3513
- this.showStatus("Already at this point");
3514
- return;
3515
- }
3516
- // Ask about summarization
3517
- done(); // Close selector first
3518
- // Loop until user makes a complete choice or cancels to tree
3519
- let wantsSummary = false;
3520
- let customInstructions;
3521
- // Check if we should skip the prompt (user preference to always default to no summary)
3522
- if (!this.settingsManager.getBranchSummarySkipPrompt()) {
3523
- while (true) {
3524
- const summaryChoice = await this.showExtensionSelector("Summarize branch?", [
3525
- "No summary",
3526
- "Summarize",
3527
- "Summarize with custom prompt",
3528
- ]);
3529
- if (summaryChoice === undefined) {
3530
- // User pressed escape - re-show tree selector with same selection
3531
- this.showTreeSelector(entryId);
3532
- return;
3533
- }
3534
- wantsSummary = summaryChoice !== "No summary";
3535
- if (summaryChoice === "Summarize with custom prompt") {
3536
- customInstructions = await this.showExtensionEditor("Custom summarization instructions");
3537
- if (customInstructions === undefined) {
3538
- // User cancelled - loop back to summary selector
3539
- continue;
3540
- }
3541
- }
3542
- // User made a complete choice
3543
- break;
3544
- }
3545
- }
3546
- // Set up escape handler and loader if summarizing
3547
- let summaryLoader;
3548
- const originalOnEscape = this.defaultEditor.onEscape;
3549
- if (wantsSummary) {
3550
- this.defaultEditor.onEscape = () => {
3551
- this.session.abortBranchSummary();
3552
- };
3553
- this.chatContainer.addChild(new Spacer(1));
3554
- summaryLoader = new Loader(this.ui, (spinner) => theme.fg("accent", spinner), (text) => theme.fg("muted", text), `Summarizing branch... (${keyText("app.interrupt")} to cancel)`);
3555
- this.statusContainer.addChild(summaryLoader);
3556
- this.ui.requestRender();
3557
- }
3558
- try {
3559
- const result = await this.session.navigateTree(entryId, {
3560
- summarize: wantsSummary,
3561
- customInstructions,
3562
- });
3563
- if (result.aborted) {
3564
- // Summarization aborted - re-show tree selector with same selection
3565
- this.showStatus("Branch summarization cancelled");
3566
- this.showTreeSelector(entryId);
3567
- return;
3568
- }
3569
- if (result.cancelled) {
3570
- this.showStatus("Navigation cancelled");
3571
- return;
3572
- }
3573
- // Update UI
3574
- this.chatContainer.clear();
3575
- this.renderInitialMessages();
3576
- if (result.editorText && !this.editor.getText().trim()) {
3577
- this.editor.setText(result.editorText);
3578
- }
3579
- this.showStatus("Navigated to selected point");
3580
- void this.flushCompactionQueue({ willRetry: false });
3581
- }
3582
- catch (error) {
3583
- this.showError(error instanceof Error ? error.message : String(error));
3584
- }
3585
- finally {
3586
- if (summaryLoader) {
3587
- summaryLoader.stop();
3588
- this.statusContainer.clear();
3589
- }
3590
- this.defaultEditor.onEscape = originalOnEscape;
3591
- }
3592
- }, () => {
3593
- done();
3594
- this.ui.requestRender();
3595
- }, (entryId, label) => {
3596
- this.sessionManager.appendLabelChange(entryId, label);
3597
- this.ui.requestRender();
3598
- }, initialSelectedId, initialFilterMode);
3599
- return { component: selector, focus: selector };
3600
- });
3601
- }
3602
- showSessionSelector() {
3603
- this.showSelector((done) => {
3604
- const selector = new SessionSelectorComponent((onProgress) => SessionManager.list(this.sessionManager.getCwd(), this.sessionManager.getSessionDir(), onProgress), SessionManager.listAll, async (sessionPath) => {
3605
- done();
3606
- await this.handleResumeSession(sessionPath);
3607
- }, () => {
3608
- done();
3609
- this.ui.requestRender();
3610
- }, () => {
3611
- void this.shutdown();
3612
- }, () => this.ui.requestRender(), {
3613
- renameSession: async (sessionFilePath, nextName) => {
3614
- const next = (nextName ?? "").trim();
3615
- if (!next)
3616
- return;
3617
- const mgr = SessionManager.open(sessionFilePath);
3618
- mgr.appendSessionInfo(next);
3619
- },
3620
- showRenameHint: true,
3621
- keybindings: this.keybindings,
3622
- }, this.sessionManager.getSessionFile());
3623
- return { component: selector, focus: selector };
3624
- });
3625
- }
3626
- async handleResumeSession(sessionPath, options) {
3627
- if (this.loadingAnimation) {
3628
- this.loadingAnimation.stop();
3629
- this.loadingAnimation = undefined;
3630
- }
3631
- this.statusContainer.clear();
3632
- try {
3633
- const result = await this.runtimeHost.switchSession(sessionPath, {
3634
- withSession: options?.withSession,
3635
- });
3636
- if (result.cancelled) {
3637
- return result;
3638
- }
3639
- this.renderCurrentSessionState();
3640
- this.showStatus("Resumed session");
3641
- return result;
3642
- }
3643
- catch (error) {
3644
- if (error instanceof MissingSessionCwdError) {
3645
- const selectedCwd = await this.promptForMissingSessionCwd(error);
3646
- if (!selectedCwd) {
3647
- this.showStatus("Resume cancelled");
3648
- return { cancelled: true };
3649
- }
3650
- const result = await this.runtimeHost.switchSession(sessionPath, {
3651
- cwdOverride: selectedCwd,
3652
- withSession: options?.withSession,
3653
- });
3654
- if (result.cancelled) {
3655
- return result;
3656
- }
3657
- this.renderCurrentSessionState();
3658
- this.showStatus("Resumed session in current cwd");
3659
- return result;
3660
- }
3661
- return this.handleFatalRuntimeError("Failed to resume session", error);
3662
- }
3663
- }
3664
- getLoginProviderOptions(authType) {
3665
- const authStorage = this.session.modelRegistry.authStorage;
3666
- const oauthProviders = authStorage.getOAuthProviders();
3667
- const oauthProviderIds = new Set(oauthProviders.map((provider) => provider.id));
3668
- const options = oauthProviders.map((provider) => ({
3669
- id: provider.id,
3670
- name: provider.name,
3671
- authType: "oauth",
3672
- }));
3673
- const modelProviders = new Set(this.session.modelRegistry.getAll().map((model) => model.provider));
3674
- for (const providerId of modelProviders) {
3675
- if (!isApiKeyLoginProvider(providerId, oauthProviderIds)) {
3676
- continue;
3677
- }
3678
- options.push({
3679
- id: providerId,
3680
- name: this.session.modelRegistry.getProviderDisplayName(providerId),
3681
- authType: "api_key",
3682
- });
3683
- }
3684
- const filteredOptions = authType ? options.filter((option) => option.authType === authType) : options;
3685
- return filteredOptions.sort((a, b) => a.name.localeCompare(b.name));
3686
- }
3687
- getLogoutProviderOptions() {
3688
- const authStorage = this.session.modelRegistry.authStorage;
3689
- const options = [];
3690
- for (const providerId of authStorage.list()) {
3691
- const credential = authStorage.get(providerId);
3692
- if (!credential) {
3693
- continue;
3694
- }
3695
- options.push({
3696
- id: providerId,
3697
- name: this.session.modelRegistry.getProviderDisplayName(providerId),
3698
- authType: credential.type,
3699
- });
3700
- }
3701
- return options.sort((a, b) => a.name.localeCompare(b.name));
3702
- }
3703
- showLoginAuthTypeSelector() {
3704
- const subscriptionLabel = "Use a subscription";
3705
- const apiKeyLabel = "Use an API key";
3706
- this.showSelector((done) => {
3707
- const selector = new ExtensionSelectorComponent("Select authentication method:", [subscriptionLabel, apiKeyLabel], (option) => {
3708
- done();
3709
- const authType = option === subscriptionLabel ? "oauth" : "api_key";
3710
- this.showLoginProviderSelector(authType);
3711
- }, () => {
3712
- done();
3713
- this.ui.requestRender();
3714
- });
3715
- return { component: selector, focus: selector };
3716
- });
3717
- }
3718
- showLoginProviderSelector(authType) {
3719
- const providerOptions = this.getLoginProviderOptions(authType);
3720
- if (providerOptions.length === 0) {
3721
- this.showStatus(authType === "oauth" ? "No subscription providers available." : "No API key providers available.");
3722
- return;
3723
- }
3724
- this.showSelector((done) => {
3725
- const selector = new OAuthSelectorComponent("login", this.session.modelRegistry.authStorage, providerOptions, async (providerId) => {
3726
- done();
3727
- const providerOption = providerOptions.find((provider) => provider.id === providerId);
3728
- if (!providerOption) {
3729
- return;
3730
- }
3731
- if (providerOption.authType === "oauth") {
3732
- await this.showLoginDialog(providerOption.id, providerOption.name);
3733
- }
3734
- else if (providerOption.id === BEDROCK_PROVIDER_ID) {
3735
- this.showBedrockSetupDialog(providerOption.id, providerOption.name);
3736
- }
3737
- else {
3738
- await this.showApiKeyLoginDialog(providerOption.id, providerOption.name);
3739
- }
3740
- }, () => {
3741
- done();
3742
- this.showLoginAuthTypeSelector();
3743
- }, (providerId) => this.session.modelRegistry.getProviderAuthStatus(providerId));
3744
- return { component: selector, focus: selector };
3745
- });
3746
- }
3747
- async showOAuthSelector(mode) {
3748
- if (mode === "login") {
3749
- this.showLoginAuthTypeSelector();
3750
- return;
3751
- }
3752
- const providerOptions = this.getLogoutProviderOptions();
3753
- if (providerOptions.length === 0) {
3754
- this.showStatus("No stored credentials to remove. /logout only removes credentials saved by /login; environment variables and models.json config are unchanged.");
3755
- return;
3756
- }
3757
- this.showSelector((done) => {
3758
- const selector = new OAuthSelectorComponent(mode, this.session.modelRegistry.authStorage, providerOptions, async (providerId) => {
3759
- done();
3760
- const providerOption = providerOptions.find((provider) => provider.id === providerId);
3761
- if (!providerOption) {
3762
- return;
3763
- }
3764
- try {
3765
- this.session.modelRegistry.authStorage.logout(providerOption.id);
3766
- this.session.modelRegistry.refresh();
3767
- await this.updateAvailableProviderCount();
3768
- const message = providerOption.authType === "oauth"
3769
- ? `Logged out of ${providerOption.name}`
3770
- : `Removed stored API key for ${providerOption.name}. Environment variables and models.json config are unchanged.`;
3771
- this.showStatus(message);
3772
- }
3773
- catch (error) {
3774
- this.showError(`Logout failed: ${error instanceof Error ? error.message : String(error)}`);
3775
- }
3776
- }, () => {
3777
- done();
3778
- this.ui.requestRender();
3779
- });
3780
- return { component: selector, focus: selector };
3781
- });
3782
- }
3783
- async completeProviderAuthentication(providerId, providerName, authType, previousModel) {
3784
- this.session.modelRegistry.refresh();
3785
- const actionLabel = authType === "oauth" ? `Logged in to ${providerName}` : `Saved API key for ${providerName}`;
3786
- let selectedModel;
3787
- let selectionError;
3788
- if (isUnknownModel(previousModel)) {
3789
- const availableModels = this.session.modelRegistry.getAvailable();
3790
- const providerModels = availableModels.filter((model) => model.provider === providerId);
3791
- if (!hasDefaultModelProvider(providerId)) {
3792
- selectionError = `${actionLabel}, but no default model is configured for provider "${providerId}". Use /model to select a model.`;
3793
- }
3794
- else if (providerModels.length === 0) {
3795
- selectionError = `${actionLabel}, but no models are available for that provider. Use /model to select a model.`;
3796
- }
3797
- else {
3798
- const defaultModelId = defaultModelPerProvider[providerId];
3799
- selectedModel = providerModels.find((model) => model.id === defaultModelId);
3800
- if (!selectedModel) {
3801
- selectionError = `${actionLabel}, but its default model "${defaultModelId}" is not available. Use /model to select a model.`;
3802
- }
3803
- else {
3804
- try {
3805
- await this.session.setModel(selectedModel);
3806
- }
3807
- catch (error) {
3808
- selectedModel = undefined;
3809
- const errorMessage = error instanceof Error ? error.message : String(error);
3810
- selectionError = `${actionLabel}, but selecting its default model failed: ${errorMessage}. Use /model to select a model.`;
3811
- }
3812
- }
3813
- }
3814
- }
3815
- await this.updateAvailableProviderCount();
3816
- this.footer.invalidate();
3817
- this.updateEditorBorderColor();
3818
- if (selectedModel) {
3819
- this.showStatus(`${actionLabel}. Selected ${selectedModel.id}. Credentials saved to ${getAuthPath()}`);
3820
- void this.maybeWarnAboutAnthropicSubscriptionAuth(selectedModel);
3821
- this.checkDaxnutsEasterEgg(selectedModel);
3822
- }
3823
- else {
3824
- this.showStatus(`${actionLabel}. Credentials saved to ${getAuthPath()}`);
3825
- if (selectionError) {
3826
- this.showError(selectionError);
3827
- }
3828
- else {
3829
- void this.maybeWarnAboutAnthropicSubscriptionAuth();
3830
- }
3831
- }
3832
- }
3833
- showBedrockSetupDialog(providerId, providerName) {
3834
- const restoreEditor = () => {
3835
- this.editorContainer.clear();
3836
- this.editorContainer.addChild(this.editor);
3837
- this.ui.setFocus(this.editor);
3838
- this.ui.requestRender();
3839
- };
3840
- const dialog = new LoginDialogComponent(this.ui, providerId, () => restoreEditor(), providerName, "Amazon Bedrock setup");
3841
- dialog.showInfo([
3842
- theme.fg("text", "Amazon Bedrock uses AWS credentials instead of a single API key."),
3843
- theme.fg("text", "Configure an AWS profile, IAM keys, bearer token, or role-based credentials."),
3844
- theme.fg("muted", "See:"),
3845
- theme.fg("accent", ` ${path.join(getDocsPath(), "providers.md")}`),
3846
- ]);
3847
- this.editorContainer.clear();
3848
- this.editorContainer.addChild(dialog);
3849
- this.ui.setFocus(dialog);
3850
- this.ui.requestRender();
3851
- }
3852
- async showApiKeyLoginDialog(providerId, providerName) {
3853
- const previousModel = this.session.model;
3854
- const dialog = new LoginDialogComponent(this.ui, providerId, (_success, _message) => {
3855
- // Completion handled below
3856
- }, providerName);
3857
- this.editorContainer.clear();
3858
- this.editorContainer.addChild(dialog);
3859
- this.ui.setFocus(dialog);
3860
- this.ui.requestRender();
3861
- const restoreEditor = () => {
3862
- this.editorContainer.clear();
3863
- this.editorContainer.addChild(this.editor);
3864
- this.ui.setFocus(this.editor);
3865
- this.ui.requestRender();
3866
- };
3867
- try {
3868
- const apiKey = (await dialog.showPrompt("Enter API key:")).trim();
3869
- if (!apiKey) {
3870
- throw new Error("API key cannot be empty.");
3871
- }
3872
- this.session.modelRegistry.authStorage.set(providerId, { type: "api_key", key: apiKey });
3873
- restoreEditor();
3874
- await this.completeProviderAuthentication(providerId, providerName, "api_key", previousModel);
3875
- }
3876
- catch (error) {
3877
- restoreEditor();
3878
- const errorMsg = error instanceof Error ? error.message : String(error);
3879
- if (errorMsg !== "Login cancelled") {
3880
- this.showError(`Failed to save API key for ${providerName}: ${errorMsg}`);
3881
- }
3882
- }
3883
- }
3884
- showOAuthLoginSelect(dialog, prompt) {
3885
- return new Promise((resolve) => {
3886
- const restoreDialog = () => {
3887
- this.editorContainer.clear();
3888
- this.editorContainer.addChild(dialog);
3889
- this.ui.setFocus(dialog);
3890
- this.ui.requestRender();
3891
- };
3892
- const labels = prompt.options.map((option) => option.label);
3893
- const selector = new ExtensionSelectorComponent(prompt.message, labels, (optionLabel) => {
3894
- restoreDialog();
3895
- resolve(prompt.options.find((option) => option.label === optionLabel)?.id);
3896
- }, () => {
3897
- restoreDialog();
3898
- resolve(undefined);
3899
- });
3900
- this.editorContainer.clear();
3901
- this.editorContainer.addChild(selector);
3902
- this.ui.setFocus(selector);
3903
- this.ui.requestRender();
3904
- });
3905
- }
3906
- async showLoginDialog(providerId, providerName) {
3907
- const providerInfo = this.session.modelRegistry.authStorage
3908
- .getOAuthProviders()
3909
- .find((provider) => provider.id === providerId);
3910
- const previousModel = this.session.model;
3911
- // Providers that use callback servers (can paste redirect URL)
3912
- const usesCallbackServer = providerInfo?.usesCallbackServer ?? false;
3913
- // Create login dialog component
3914
- const dialog = new LoginDialogComponent(this.ui, providerId, (_success, _message) => {
3915
- // Completion handled below
3916
- }, providerName);
3917
- // Show dialog in editor container
3918
- this.editorContainer.clear();
3919
- this.editorContainer.addChild(dialog);
3920
- this.ui.setFocus(dialog);
3921
- this.ui.requestRender();
3922
- // Promise for manual code input (racing with callback server)
3923
- let manualCodeResolve;
3924
- let manualCodeReject;
3925
- const manualCodePromise = new Promise((resolve, reject) => {
3926
- manualCodeResolve = resolve;
3927
- manualCodeReject = reject;
3928
- });
3929
- // Restore editor helper
3930
- const restoreEditor = () => {
3931
- this.editorContainer.clear();
3932
- this.editorContainer.addChild(this.editor);
3933
- this.ui.setFocus(this.editor);
3934
- this.ui.requestRender();
3935
- };
3936
- try {
3937
- await this.session.modelRegistry.authStorage.login(providerId, {
3938
- onAuth: (info) => {
3939
- dialog.showAuth(info.url, info.instructions);
3940
- if (usesCallbackServer) {
3941
- // Show input for manual paste, racing with callback
3942
- dialog
3943
- .showManualInput("Paste redirect URL below, or complete login in browser:")
3944
- .then((value) => {
3945
- if (value && manualCodeResolve) {
3946
- manualCodeResolve(value);
3947
- manualCodeResolve = undefined;
3948
- }
3949
- })
3950
- .catch(() => {
3951
- if (manualCodeReject) {
3952
- manualCodeReject(new Error("Login cancelled"));
3953
- manualCodeReject = undefined;
3954
- }
3955
- });
3956
- }
3957
- else if (providerId === "github-copilot") {
3958
- // GitHub Copilot polls after onAuth
3959
- dialog.showWaiting("Waiting for browser authentication...");
3960
- }
3961
- // For Anthropic: onPrompt is called immediately after
3962
- },
3963
- onPrompt: async (prompt) => {
3964
- return dialog.showPrompt(prompt.message, prompt.placeholder);
3965
- },
3966
- onProgress: (message) => {
3967
- dialog.showProgress(message);
3968
- },
3969
- onSelect: (prompt) => this.showOAuthLoginSelect(dialog, prompt),
3970
- onManualCodeInput: () => manualCodePromise,
3971
- signal: dialog.signal,
3972
- });
3973
- // Success
3974
- restoreEditor();
3975
- await this.completeProviderAuthentication(providerId, providerName, "oauth", previousModel);
3976
- }
3977
- catch (error) {
3978
- restoreEditor();
3979
- const errorMsg = error instanceof Error ? error.message : String(error);
3980
- if (errorMsg !== "Login cancelled") {
3981
- this.showError(`Failed to login to ${providerName}: ${errorMsg}`);
3982
- }
3983
- }
3984
- }
3985
- // =========================================================================
3986
- // Command handlers
3987
- // =========================================================================
3988
- async handleReloadCommand() {
3989
- if (this.session.isStreaming) {
3990
- this.showWarning("Wait for the current response to finish before reloading.");
3991
- return;
3992
- }
3993
- if (this.session.isCompacting) {
3994
- this.showWarning("Wait for compaction to finish before reloading.");
3995
- return;
3996
- }
3997
- this.resetExtensionUI();
3998
- const reloadBox = new Container();
3999
- const borderColor = (s) => theme.fg("border", s);
4000
- reloadBox.addChild(new DynamicBorder(borderColor));
4001
- reloadBox.addChild(new Spacer(1));
4002
- reloadBox.addChild(new Text(theme.fg("muted", "Reloading keybindings, extensions, skills, prompts, themes..."), 1, 0));
4003
- reloadBox.addChild(new Spacer(1));
4004
- reloadBox.addChild(new DynamicBorder(borderColor));
4005
- const previousEditor = this.editor;
4006
- this.editorContainer.clear();
4007
- this.editorContainer.addChild(reloadBox);
4008
- this.ui.setFocus(reloadBox);
4009
- this.ui.requestRender(true);
4010
- await new Promise((resolve) => process.nextTick(resolve));
4011
- const dismissReloadBox = (editor) => {
4012
- this.editorContainer.clear();
4013
- this.editorContainer.addChild(editor);
4014
- this.ui.setFocus(editor);
4015
- this.ui.requestRender();
4016
- };
4017
- try {
4018
- await this.session.reload();
4019
- this.keybindings.reload();
4020
- const activeHeader = this.customHeader ?? this.builtInHeader;
4021
- if (isExpandable(activeHeader)) {
4022
- activeHeader.setExpanded(this.toolOutputExpanded);
4023
- }
4024
- setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
4025
- this.hideThinkingBlock = this.settingsManager.getHideThinkingBlock();
4026
- const themeName = this.settingsManager.getTheme();
4027
- const themeResult = themeName ? setTheme(themeName, true) : { success: true };
4028
- if (!themeResult.success) {
4029
- this.showError(`Failed to load theme "${themeName}": ${themeResult.error}\nFell back to dark theme.`);
4030
- }
4031
- const editorPaddingX = this.settingsManager.getEditorPaddingX();
4032
- const autocompleteMaxVisible = this.settingsManager.getAutocompleteMaxVisible();
4033
- this.defaultEditor.setPaddingX(editorPaddingX);
4034
- this.defaultEditor.setAutocompleteMaxVisible(autocompleteMaxVisible);
4035
- if (this.editor !== this.defaultEditor) {
4036
- this.editor.setPaddingX?.(editorPaddingX);
4037
- this.editor.setAutocompleteMaxVisible?.(autocompleteMaxVisible);
4038
- }
4039
- this.ui.setShowHardwareCursor(this.settingsManager.getShowHardwareCursor());
4040
- this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink());
4041
- this.setupAutocompleteProvider();
4042
- const runner = this.session.extensionRunner;
4043
- this.setupExtensionShortcuts(runner);
4044
- this.rebuildChatFromMessages();
4045
- dismissReloadBox(this.editor);
4046
- this.showLoadedResources({
4047
- force: false,
4048
- showDiagnosticsWhenQuiet: true,
4049
- });
4050
- const modelsJsonError = this.session.modelRegistry.getError();
4051
- if (modelsJsonError) {
4052
- this.showError(`models.json error: ${modelsJsonError}`);
4053
- }
4054
- this.showStatus("Reloaded keybindings, extensions, skills, prompts, themes");
4055
- }
4056
- catch (error) {
4057
- dismissReloadBox(previousEditor);
4058
- this.showError(`Reload failed: ${error instanceof Error ? error.message : String(error)}`);
4059
- }
4060
- }
4061
- async handleExportCommand(text) {
4062
- const outputPath = this.getPathCommandArgument(text, "/export");
4063
- try {
4064
- if (outputPath?.endsWith(".jsonl")) {
4065
- const filePath = this.session.exportToJsonl(outputPath);
4066
- this.showStatus(`Session exported to: ${filePath}`);
4067
- }
4068
- else {
4069
- const filePath = await this.session.exportToHtml(outputPath);
4070
- this.showStatus(`Session exported to: ${filePath}`);
4071
- }
4072
- }
4073
- catch (error) {
4074
- this.showError(`Failed to export session: ${error instanceof Error ? error.message : "Unknown error"}`);
4075
- }
4076
- }
4077
- getPathCommandArgument(text, command) {
4078
- if (text === command) {
4079
- return undefined;
4080
- }
4081
- if (!text.startsWith(`${command} `)) {
4082
- return undefined;
4083
- }
4084
- const argsString = text.slice(command.length + 1).trimStart();
4085
- if (!argsString) {
4086
- return undefined;
4087
- }
4088
- const firstChar = argsString[0];
4089
- if (firstChar === '"' || firstChar === "'") {
4090
- const closingQuoteIndex = argsString.indexOf(firstChar, 1);
4091
- if (closingQuoteIndex < 0) {
4092
- return undefined;
4093
- }
4094
- return argsString.slice(1, closingQuoteIndex);
4095
- }
4096
- const firstWhitespaceIndex = argsString.search(/\s/);
4097
- if (firstWhitespaceIndex < 0) {
4098
- return argsString;
4099
- }
4100
- return argsString.slice(0, firstWhitespaceIndex);
4101
- }
4102
- async handleImportCommand(text) {
4103
- const inputPath = this.getPathCommandArgument(text, "/import");
4104
- if (!inputPath) {
4105
- this.showError("Usage: /import <path.jsonl>");
4106
- return;
4107
- }
4108
- const confirmed = await this.showExtensionConfirm("Import session", `Replace current session with ${inputPath}?`);
4109
- if (!confirmed) {
4110
- this.showStatus("Import cancelled");
4111
- return;
4112
- }
4113
- try {
4114
- if (this.loadingAnimation) {
4115
- this.loadingAnimation.stop();
4116
- this.loadingAnimation = undefined;
4117
- }
4118
- this.statusContainer.clear();
4119
- const result = await this.runtimeHost.importFromJsonl(inputPath);
4120
- if (result.cancelled) {
4121
- this.showStatus("Import cancelled");
4122
- return;
4123
- }
4124
- this.renderCurrentSessionState();
4125
- this.showStatus(`Session imported from: ${inputPath}`);
4126
- }
4127
- catch (error) {
4128
- if (error instanceof MissingSessionCwdError) {
4129
- const selectedCwd = await this.promptForMissingSessionCwd(error);
4130
- if (!selectedCwd) {
4131
- this.showStatus("Import cancelled");
4132
- return;
4133
- }
4134
- const result = await this.runtimeHost.importFromJsonl(inputPath, selectedCwd);
4135
- if (result.cancelled) {
4136
- this.showStatus("Import cancelled");
4137
- return;
4138
- }
4139
- this.renderCurrentSessionState();
4140
- this.showStatus(`Session imported from: ${inputPath}`);
4141
- return;
4142
- }
4143
- if (error instanceof SessionImportFileNotFoundError) {
4144
- this.showError(`Failed to import session: ${error.message}`);
4145
- return;
4146
- }
4147
- await this.handleFatalRuntimeError("Failed to import session", error);
4148
- }
4149
- }
4150
- async handleShareCommand() {
4151
- // Check if gh is available and logged in
4152
- try {
4153
- const authResult = spawnSync("gh", ["auth", "status"], { encoding: "utf-8" });
4154
- if (authResult.status !== 0) {
4155
- this.showError("GitHub CLI is not logged in. Run 'gh auth login' first.");
4156
- return;
4157
- }
4158
- }
4159
- catch {
4160
- this.showError("GitHub CLI (gh) is not installed. Install it from https://cli.github.com/");
4161
- return;
4162
- }
4163
- // Export to a temp file
4164
- const tmpFile = path.join(os.tmpdir(), "session.html");
4165
- try {
4166
- await this.session.exportToHtml(tmpFile);
4167
- }
4168
- catch (error) {
4169
- this.showError(`Failed to export session: ${error instanceof Error ? error.message : "Unknown error"}`);
4170
- return;
4171
- }
4172
- // Show cancellable loader, replacing the editor
4173
- const loader = new BorderedLoader(this.ui, theme, "Creating gist...");
4174
- this.editorContainer.clear();
4175
- this.editorContainer.addChild(loader);
4176
- this.ui.setFocus(loader);
4177
- this.ui.requestRender();
4178
- const restoreEditor = () => {
4179
- loader.dispose();
4180
- this.editorContainer.clear();
4181
- this.editorContainer.addChild(this.editor);
4182
- this.ui.setFocus(this.editor);
4183
- try {
4184
- fs.unlinkSync(tmpFile);
4185
- }
4186
- catch {
4187
- // Ignore cleanup errors
4188
- }
4189
- };
4190
- // Create a secret gist asynchronously
4191
- let proc = null;
4192
- loader.onAbort = () => {
4193
- proc?.kill();
4194
- restoreEditor();
4195
- this.showStatus("Share cancelled");
4196
- };
4197
- try {
4198
- const result = await new Promise((resolve) => {
4199
- proc = spawn("gh", ["gist", "create", "--public=false", tmpFile]);
4200
- let stdout = "";
4201
- let stderr = "";
4202
- proc.stdout?.on("data", (data) => {
4203
- stdout += data.toString();
4204
- });
4205
- proc.stderr?.on("data", (data) => {
4206
- stderr += data.toString();
4207
- });
4208
- proc.on("close", (code) => resolve({ stdout, stderr, code }));
4209
- });
4210
- if (loader.signal.aborted)
4211
- return;
4212
- restoreEditor();
4213
- if (result.code !== 0) {
4214
- const errorMsg = result.stderr?.trim() || "Unknown error";
4215
- this.showError(`Failed to create gist: ${errorMsg}`);
4216
- return;
4217
- }
4218
- // Extract gist ID from the URL returned by gh
4219
- // gh returns something like: https://gist.github.com/username/GIST_ID
4220
- const gistUrl = result.stdout?.trim();
4221
- const gistId = gistUrl?.split("/").pop();
4222
- if (!gistId) {
4223
- this.showError("Failed to parse gist ID from gh output");
4224
- return;
4225
- }
4226
- // Create the preview URL
4227
- const previewUrl = getShareViewerUrl(gistId);
4228
- this.showStatus(`Share URL: ${previewUrl}\nGist: ${gistUrl}`);
4229
- }
4230
- catch (error) {
4231
- if (!loader.signal.aborted) {
4232
- restoreEditor();
4233
- this.showError(`Failed to create gist: ${error instanceof Error ? error.message : "Unknown error"}`);
4234
- }
4235
- }
4236
- }
4237
- async handleCopyCommand() {
4238
- const text = this.session.getLastAssistantText();
4239
- if (!text) {
4240
- this.showError("No agent messages to copy yet.");
4241
- return;
4242
- }
4243
- try {
4244
- await copyToClipboard(text);
4245
- this.showStatus("Copied last agent message to clipboard");
4246
- }
4247
- catch (error) {
4248
- this.showError(error instanceof Error ? error.message : String(error));
4249
- }
4250
- }
4251
- handleNameCommand(text) {
4252
- const name = text.replace(/^\/name\s*/, "").trim();
4253
- if (!name) {
4254
- const currentName = this.sessionManager.getSessionName();
4255
- if (currentName) {
4256
- this.chatContainer.addChild(new Spacer(1));
4257
- this.chatContainer.addChild(new Text(theme.fg("dim", `Session name: ${currentName}`), 1, 0));
4258
- }
4259
- else {
4260
- this.showWarning("Usage: /name <name>");
4261
- }
4262
- this.ui.requestRender();
4263
- return;
4264
- }
4265
- this.session.setSessionName(name);
4266
- this.chatContainer.addChild(new Spacer(1));
4267
- this.chatContainer.addChild(new Text(theme.fg("dim", `Session name set: ${name}`), 1, 0));
4268
- this.ui.requestRender();
4269
- }
4270
- handleSessionCommand() {
4271
- const stats = this.session.getSessionStats();
4272
- const sessionName = this.sessionManager.getSessionName();
4273
- let info = `${theme.bold("Session Info")}\n\n`;
4274
- if (sessionName) {
4275
- info += `${theme.fg("dim", "Name:")} ${sessionName}\n`;
4276
- }
4277
- info += `${theme.fg("dim", "File:")} ${stats.sessionFile ?? "In-memory"}\n`;
4278
- info += `${theme.fg("dim", "ID:")} ${stats.sessionId}\n\n`;
4279
- info += `${theme.bold("Messages")}\n`;
4280
- info += `${theme.fg("dim", "User:")} ${stats.userMessages}\n`;
4281
- info += `${theme.fg("dim", "Assistant:")} ${stats.assistantMessages}\n`;
4282
- info += `${theme.fg("dim", "Tool Calls:")} ${stats.toolCalls}\n`;
4283
- info += `${theme.fg("dim", "Tool Results:")} ${stats.toolResults}\n`;
4284
- info += `${theme.fg("dim", "Total:")} ${stats.totalMessages}\n\n`;
4285
- info += `${theme.bold("Tokens")}\n`;
4286
- info += `${theme.fg("dim", "Input:")} ${stats.tokens.input.toLocaleString()}\n`;
4287
- info += `${theme.fg("dim", "Output:")} ${stats.tokens.output.toLocaleString()}\n`;
4288
- if (stats.tokens.cacheRead > 0) {
4289
- info += `${theme.fg("dim", "Cache Read:")} ${stats.tokens.cacheRead.toLocaleString()}\n`;
4290
- }
4291
- if (stats.tokens.cacheWrite > 0) {
4292
- info += `${theme.fg("dim", "Cache Write:")} ${stats.tokens.cacheWrite.toLocaleString()}\n`;
4293
- }
4294
- info += `${theme.fg("dim", "Total:")} ${stats.tokens.total.toLocaleString()}\n`;
4295
- if (stats.cost > 0) {
4296
- info += `\n${theme.bold("Cost")}\n`;
4297
- info += `${theme.fg("dim", "Total:")} ${stats.cost.toFixed(4)}`;
4298
- }
4299
- this.chatContainer.addChild(new Spacer(1));
4300
- this.chatContainer.addChild(new Text(info, 1, 0));
4301
- this.ui.requestRender();
4302
- }
4303
- handleChangelogCommand() {
4304
- const changelogPath = getChangelogPath();
4305
- const allEntries = parseChangelog(changelogPath);
4306
- const changelogMarkdown = allEntries.length > 0
4307
- ? allEntries
4308
- .reverse()
4309
- .map((e) => e.content)
4310
- .join("\n\n")
4311
- : "No changelog entries found.";
4312
- this.chatContainer.addChild(new Spacer(1));
4313
- this.chatContainer.addChild(new DynamicBorder());
4314
- this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "What's New")), 1, 0));
4315
- this.chatContainer.addChild(new Spacer(1));
4316
- this.chatContainer.addChild(new Markdown(changelogMarkdown, 1, 1, this.getMarkdownThemeWithSettings()));
4317
- this.chatContainer.addChild(new DynamicBorder());
4318
- this.ui.requestRender();
4319
- }
4320
- /**
4321
- * Capitalize keybinding for display (e.g., "ctrl+c" -> "Ctrl+C").
4322
- */
4323
- capitalizeKey(key) {
4324
- return key
4325
- .split("/")
4326
- .map((k) => k
4327
- .split("+")
4328
- .map((part) => part.charAt(0).toUpperCase() + part.slice(1))
4329
- .join("+"))
4330
- .join("/");
4331
- }
4332
- /**
4333
- * Get capitalized display string for an app keybinding action.
4334
- */
4335
- getAppKeyDisplay(action) {
4336
- return this.capitalizeKey(keyText(action));
4337
- }
4338
- /**
4339
- * Get capitalized display string for an editor keybinding action.
4340
- */
4341
- getEditorKeyDisplay(action) {
4342
- return this.capitalizeKey(keyText(action));
4343
- }
4344
- handleHotkeysCommand() {
4345
- // Navigation keybindings
4346
- const cursorUp = this.getEditorKeyDisplay("tui.editor.cursorUp");
4347
- const cursorDown = this.getEditorKeyDisplay("tui.editor.cursorDown");
4348
- const cursorLeft = this.getEditorKeyDisplay("tui.editor.cursorLeft");
4349
- const cursorRight = this.getEditorKeyDisplay("tui.editor.cursorRight");
4350
- const cursorWordLeft = this.getEditorKeyDisplay("tui.editor.cursorWordLeft");
4351
- const cursorWordRight = this.getEditorKeyDisplay("tui.editor.cursorWordRight");
4352
- const cursorLineStart = this.getEditorKeyDisplay("tui.editor.cursorLineStart");
4353
- const cursorLineEnd = this.getEditorKeyDisplay("tui.editor.cursorLineEnd");
4354
- const jumpForward = this.getEditorKeyDisplay("tui.editor.jumpForward");
4355
- const jumpBackward = this.getEditorKeyDisplay("tui.editor.jumpBackward");
4356
- const pageUp = this.getEditorKeyDisplay("tui.editor.pageUp");
4357
- const pageDown = this.getEditorKeyDisplay("tui.editor.pageDown");
4358
- // Editing keybindings
4359
- const submit = this.getEditorKeyDisplay("tui.input.submit");
4360
- const newLine = this.getEditorKeyDisplay("tui.input.newLine");
4361
- const deleteWordBackward = this.getEditorKeyDisplay("tui.editor.deleteWordBackward");
4362
- const deleteWordForward = this.getEditorKeyDisplay("tui.editor.deleteWordForward");
4363
- const deleteToLineStart = this.getEditorKeyDisplay("tui.editor.deleteToLineStart");
4364
- const deleteToLineEnd = this.getEditorKeyDisplay("tui.editor.deleteToLineEnd");
4365
- const yank = this.getEditorKeyDisplay("tui.editor.yank");
4366
- const yankPop = this.getEditorKeyDisplay("tui.editor.yankPop");
4367
- const undo = this.getEditorKeyDisplay("tui.editor.undo");
4368
- const tab = this.getEditorKeyDisplay("tui.input.tab");
4369
- // App keybindings
4370
- const interrupt = this.getAppKeyDisplay("app.interrupt");
4371
- const clear = this.getAppKeyDisplay("app.clear");
4372
- const exit = this.getAppKeyDisplay("app.exit");
4373
- const suspend = this.getAppKeyDisplay("app.suspend");
4374
- const cycleThinkingLevel = this.getAppKeyDisplay("app.thinking.cycle");
4375
- const cycleModelForward = this.getAppKeyDisplay("app.model.cycleForward");
4376
- const selectModel = this.getAppKeyDisplay("app.model.select");
4377
- const expandTools = this.getAppKeyDisplay("app.tools.expand");
4378
- const toggleThinking = this.getAppKeyDisplay("app.thinking.toggle");
4379
- const externalEditor = this.getAppKeyDisplay("app.editor.external");
4380
- const cycleModelBackward = this.getAppKeyDisplay("app.model.cycleBackward");
4381
- const followUp = this.getAppKeyDisplay("app.message.followUp");
4382
- const dequeue = this.getAppKeyDisplay("app.message.dequeue");
4383
- const pasteImage = this.getAppKeyDisplay("app.clipboard.pasteImage");
4384
- let hotkeys = `
4385
- **Navigation**
4386
- | Key | Action |
4387
- |-----|--------|
4388
- | \`${cursorUp}\` / \`${cursorDown}\` / \`${cursorLeft}\` / \`${cursorRight}\` | Move cursor / browse history (Up when empty) |
4389
- | \`${cursorWordLeft}\` / \`${cursorWordRight}\` | Move by word |
4390
- | \`${cursorLineStart}\` | Start of line |
4391
- | \`${cursorLineEnd}\` | End of line |
4392
- | \`${jumpForward}\` | Jump forward to character |
4393
- | \`${jumpBackward}\` | Jump backward to character |
4394
- | \`${pageUp}\` / \`${pageDown}\` | Scroll by page |
4395
-
4396
- **Editing**
4397
- | Key | Action |
4398
- |-----|--------|
4399
- | \`${submit}\` | Send message |
4400
- | \`${newLine}\` | New line${process.platform === "win32" ? " (Ctrl+Enter on Windows Terminal)" : ""} |
4401
- | \`${deleteWordBackward}\` | Delete word backwards |
4402
- | \`${deleteWordForward}\` | Delete word forwards |
4403
- | \`${deleteToLineStart}\` | Delete to start of line |
4404
- | \`${deleteToLineEnd}\` | Delete to end of line |
4405
- | \`${yank}\` | Paste the most-recently-deleted text |
4406
- | \`${yankPop}\` | Cycle through the deleted text after pasting |
4407
- | \`${undo}\` | Undo |
4408
-
4409
- **Other**
4410
- | Key | Action |
4411
- |-----|--------|
4412
- | \`${tab}\` | Path completion / accept autocomplete |
4413
- | \`${interrupt}\` | Cancel autocomplete / abort streaming |
4414
- | \`${clear}\` | Clear editor (first) / exit (second) |
4415
- | \`${exit}\` | Exit (when editor is empty) |
4416
- | \`${suspend}\` | Suspend to background |
4417
- | \`${cycleThinkingLevel}\` | Cycle thinking level |
4418
- | \`${cycleModelForward}\` / \`${cycleModelBackward}\` | Cycle models |
4419
- | \`${selectModel}\` | Open model selector |
4420
- | \`${expandTools}\` | Toggle tool output expansion |
4421
- | \`${toggleThinking}\` | Toggle thinking block visibility |
4422
- | \`${externalEditor}\` | Edit message in external editor |
4423
- | \`${followUp}\` | Queue follow-up message |
4424
- | \`${dequeue}\` | Restore queued messages |
4425
- | \`${pasteImage}\` | Paste image from clipboard |
4426
- | \`/\` | Slash commands |
4427
- | \`!\` | Run bash command |
4428
- | \`!!\` | Run bash command (excluded from context) |
4429
- `;
4430
- // Add extension-registered shortcuts
4431
- const extensionRunner = this.session.extensionRunner;
4432
- const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
4433
- if (shortcuts.size > 0) {
4434
- hotkeys += `
4435
- **Extensions**
4436
- | Key | Action |
4437
- |-----|--------|
4438
- `;
4439
- for (const [key, shortcut] of shortcuts) {
4440
- const description = shortcut.description ?? shortcut.extensionPath;
4441
- const keyDisplay = key.replace(/\b\w/g, (c) => c.toUpperCase());
4442
- hotkeys += `| \`${keyDisplay}\` | ${description} |\n`;
4443
- }
4444
- }
4445
- this.chatContainer.addChild(new Spacer(1));
4446
- this.chatContainer.addChild(new DynamicBorder());
4447
- this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "Keyboard Shortcuts")), 1, 0));
4448
- this.chatContainer.addChild(new Spacer(1));
4449
- this.chatContainer.addChild(new Markdown(hotkeys.trim(), 1, 1, this.getMarkdownThemeWithSettings()));
4450
- this.chatContainer.addChild(new DynamicBorder());
4451
- this.ui.requestRender();
4452
- }
4453
- async handleClearCommand() {
4454
- if (this.loadingAnimation) {
4455
- this.loadingAnimation.stop();
4456
- this.loadingAnimation = undefined;
4457
- }
4458
- this.statusContainer.clear();
4459
- try {
4460
- const result = await this.runtimeHost.newSession();
4461
- if (result.cancelled) {
4462
- return;
4463
- }
4464
- this.renderCurrentSessionState();
4465
- this.chatContainer.addChild(new Spacer(1));
4466
- this.chatContainer.addChild(new Text(`${theme.fg("accent", "✓ New session started")}`, 1, 1));
4467
- this.ui.requestRender();
4468
- }
4469
- catch (error) {
4470
- await this.handleFatalRuntimeError("Failed to create session", error);
4471
- }
4472
- }
4473
- handleDebugCommand() {
4474
- const width = this.ui.terminal.columns;
4475
- const height = this.ui.terminal.rows;
4476
- const allLines = this.ui.render(width);
4477
- const debugLogPath = getDebugLogPath();
4478
- const debugData = [
4479
- `Debug output at ${new Date().toISOString()}`,
4480
- `Terminal: ${width}x${height}`,
4481
- `Total lines: ${allLines.length}`,
4482
- "",
4483
- "=== All rendered lines with visible widths ===",
4484
- ...allLines.map((line, idx) => {
4485
- const vw = visibleWidth(line);
4486
- const escaped = JSON.stringify(line);
4487
- return `[${idx}] (w=${vw}) ${escaped}`;
4488
- }),
4489
- "",
4490
- "=== Agent messages (JSONL) ===",
4491
- ...this.session.messages.map((msg) => JSON.stringify(msg)),
4492
- "",
4493
- ].join("\n");
4494
- fs.mkdirSync(path.dirname(debugLogPath), { recursive: true });
4495
- fs.writeFileSync(debugLogPath, debugData);
4496
- this.chatContainer.addChild(new Spacer(1));
4497
- this.chatContainer.addChild(new Text(`${theme.fg("accent", "✓ Debug log written")}\n${theme.fg("muted", debugLogPath)}`, 1, 1));
4498
- this.ui.requestRender();
4499
- }
4500
- handleArminSaysHi() {
4501
- this.chatContainer.addChild(new Spacer(1));
4502
- this.chatContainer.addChild(new ArminComponent(this.ui));
4503
- this.ui.requestRender();
4504
- }
4505
- handleDementedDelves() {
4506
- this.chatContainer.addChild(new Spacer(1));
4507
- this.chatContainer.addChild(new EarendilAnnouncementComponent());
4508
- this.ui.requestRender();
4509
- }
4510
- handleDaxnuts() {
4511
- this.chatContainer.addChild(new Spacer(1));
4512
- this.chatContainer.addChild(new DaxnutsComponent(this.ui));
4513
- this.ui.requestRender();
4514
- }
4515
- checkDaxnutsEasterEgg(model) {
4516
- if (model.provider === "opencode" && model.id.toLowerCase().includes("kimi-k2.5")) {
4517
- this.handleDaxnuts();
4518
- }
4519
- }
4520
- async handleBashCommand(command, excludeFromContext = false) {
4521
- const extensionRunner = this.session.extensionRunner;
4522
- // Emit user_bash event to let extensions intercept
4523
- const eventResult = await extensionRunner.emitUserBash({
4524
- type: "user_bash",
4525
- command,
4526
- excludeFromContext,
4527
- cwd: this.sessionManager.getCwd(),
4528
- });
4529
- // If extension returned a full result, use it directly
4530
- if (eventResult?.result) {
4531
- const result = eventResult.result;
4532
- // Create UI component for display
4533
- this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext);
4534
- if (this.session.isStreaming) {
4535
- this.pendingMessagesContainer.addChild(this.bashComponent);
4536
- this.pendingBashComponents.push(this.bashComponent);
4537
- }
4538
- else {
4539
- this.chatContainer.addChild(this.bashComponent);
4540
- }
4541
- // Show output and complete
4542
- if (result.output) {
4543
- this.bashComponent.appendOutput(result.output);
4544
- }
4545
- this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath);
4546
- // Record the result in session
4547
- this.session.recordBashResult(command, result, { excludeFromContext });
4548
- this.bashComponent = undefined;
4549
- this.ui.requestRender();
4550
- return;
4551
- }
4552
- // Normal execution path (possibly with custom operations)
4553
- const isDeferred = this.session.isStreaming;
4554
- this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext);
4555
- if (isDeferred) {
4556
- // Show in pending area when agent is streaming
4557
- this.pendingMessagesContainer.addChild(this.bashComponent);
4558
- this.pendingBashComponents.push(this.bashComponent);
4559
- }
4560
- else {
4561
- // Show in chat immediately when agent is idle
4562
- this.chatContainer.addChild(this.bashComponent);
4563
- }
4564
- this.ui.requestRender();
4565
- try {
4566
- const result = await this.session.executeBash(command, (chunk) => {
4567
- if (this.bashComponent) {
4568
- this.bashComponent.appendOutput(chunk);
4569
- this.ui.requestRender();
4570
- }
4571
- }, { excludeFromContext, operations: eventResult?.operations });
4572
- if (this.bashComponent) {
4573
- this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath);
4574
- }
4575
- }
4576
- catch (error) {
4577
- if (this.bashComponent) {
4578
- this.bashComponent.setComplete(undefined, false);
4579
- }
4580
- this.showError(`Bash command failed: ${error instanceof Error ? error.message : "Unknown error"}`);
4581
- }
4582
- this.bashComponent = undefined;
4583
- this.ui.requestRender();
4584
- }
4585
- async handleCompactCommand(customInstructions) {
4586
- const entries = this.sessionManager.getEntries();
4587
- const messageCount = entries.filter((e) => e.type === "message").length;
4588
- if (messageCount < 2) {
4589
- this.showWarning("Nothing to compact (no messages yet)");
4590
- return;
4591
- }
4592
- if (this.loadingAnimation) {
4593
- this.loadingAnimation.stop();
4594
- this.loadingAnimation = undefined;
4595
- }
4596
- this.statusContainer.clear();
4597
- try {
4598
- await this.session.compact(customInstructions);
4599
- }
4600
- catch {
4601
- // Ignore, will be emitted as an event
4602
- }
4603
- }
4604
- stop() {
4605
- this.unregisterSignalHandlers();
4606
- if (this.settingsManager.getShowTerminalProgress()) {
4607
- this.ui.terminal.setProgress(false);
4608
- }
4609
- if (this.loadingAnimation) {
4610
- this.loadingAnimation.stop();
4611
- this.loadingAnimation = undefined;
4612
- }
4613
- this.clearExtensionTerminalInputListeners();
4614
- this.footer.dispose();
4615
- this.footerDataProvider.dispose();
4616
- if (this.unsubscribe) {
4617
- this.unsubscribe();
4618
- }
4619
- if (this.isInitialized) {
4620
- this.ui.stop();
4621
- this.isInitialized = false;
4622
- }
4623
- }
4624
- }
4625
- //# sourceMappingURL=interactive-mode.js.map