@jacfrost/autopm 0.0.1

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 (3030) hide show
  1. package/README.md +149 -0
  2. package/bin/autopm +4 -0
  3. package/docs/autopm-bootstrap.md +327 -0
  4. package/docs/autopm-command-surface.md +73 -0
  5. package/docs/autopm-gsd-pi-architecture.md +125 -0
  6. package/docs/autopm-heartbeat.md +94 -0
  7. package/docs/autopm-local-workspace-contract.md +34 -0
  8. package/docs/autopm-memory-operator-guide.md +301 -0
  9. package/docs/autopm-memory-runtime-contract.md +81 -0
  10. package/docs/autopm-memory-tree.md +142 -0
  11. package/docs/autopm-memory-workspace-contract.md +172 -0
  12. package/docs/autopm-package.md +46 -0
  13. package/docs/autopm-pi-upgrade-runbook.md +58 -0
  14. package/docs/autopm-runtime-context.md +125 -0
  15. package/docs/autopm-runtime-dashboard.md +101 -0
  16. package/docs/opportunities-agentic-workflow-requirements.md +255 -0
  17. package/docs/product-setup.md +112 -0
  18. package/docs/venture-signal.md +437 -0
  19. package/extensions/autopm/extension-manifest.json +98 -0
  20. package/extensions/autopm/index.js +2 -0
  21. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/cli.d.ts +3 -0
  22. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/cli.d.ts.map +1 -0
  23. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/cli.js +9 -0
  24. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/cli.js.map +1 -0
  25. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/register-bedrock.d.ts +2 -0
  26. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/register-bedrock.d.ts.map +1 -0
  27. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/register-bedrock.js +4 -0
  28. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/register-bedrock.js.map +1 -0
  29. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/restore-sandbox-env.d.ts +13 -0
  30. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/restore-sandbox-env.d.ts.map +1 -0
  31. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/restore-sandbox-env.js +32 -0
  32. package/forks/autopm-pi-mono/packages/coding-agent/dist/bun/restore-sandbox-env.js.map +1 -0
  33. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/args.d.ts +53 -0
  34. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/args.d.ts.map +1 -0
  35. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/args.js +341 -0
  36. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/args.js.map +1 -0
  37. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/config-selector.d.ts +14 -0
  38. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/config-selector.d.ts.map +1 -0
  39. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/config-selector.js +31 -0
  40. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/config-selector.js.map +1 -0
  41. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/file-processor.d.ts +15 -0
  42. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/file-processor.d.ts.map +1 -0
  43. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/file-processor.js +83 -0
  44. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/file-processor.js.map +1 -0
  45. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/initial-message.d.ts +18 -0
  46. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/initial-message.d.ts.map +1 -0
  47. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/initial-message.js +22 -0
  48. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/initial-message.js.map +1 -0
  49. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/list-models.d.ts +9 -0
  50. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/list-models.d.ts.map +1 -0
  51. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/list-models.js +98 -0
  52. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/list-models.js.map +1 -0
  53. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/session-picker.d.ts +9 -0
  54. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/session-picker.d.ts.map +1 -0
  55. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/session-picker.js +35 -0
  56. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli/session-picker.js.map +1 -0
  57. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli.d.ts +3 -0
  58. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli.d.ts.map +1 -0
  59. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli.js +24 -0
  60. package/forks/autopm-pi-mono/packages/coding-agent/dist/cli.js.map +1 -0
  61. package/forks/autopm-pi-mono/packages/coding-agent/dist/config.d.ts +95 -0
  62. package/forks/autopm-pi-mono/packages/coding-agent/dist/config.d.ts.map +1 -0
  63. package/forks/autopm-pi-mono/packages/coding-agent/dist/config.js +427 -0
  64. package/forks/autopm-pi-mono/packages/coding-agent/dist/config.js.map +1 -0
  65. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session-runtime.d.ts +117 -0
  66. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session-runtime.d.ts.map +1 -0
  67. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session-runtime.js +300 -0
  68. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session-runtime.js.map +1 -0
  69. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session-services.d.ts +86 -0
  70. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session-services.d.ts.map +1 -0
  71. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session-services.js +117 -0
  72. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session-services.js.map +1 -0
  73. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session.d.ts +596 -0
  74. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session.d.ts.map +1 -0
  75. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session.js +2554 -0
  76. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/agent-session.js.map +1 -0
  77. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/auth-guidance.d.ts +5 -0
  78. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/auth-guidance.d.ts.map +1 -0
  79. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/auth-guidance.js +21 -0
  80. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/auth-guidance.js.map +1 -0
  81. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/auth-storage.d.ts +141 -0
  82. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/auth-storage.d.ts.map +1 -0
  83. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/auth-storage.js +441 -0
  84. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/auth-storage.js.map +1 -0
  85. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/bash-executor.d.ts +32 -0
  86. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/bash-executor.d.ts.map +1 -0
  87. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/bash-executor.js +111 -0
  88. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/bash-executor.js.map +1 -0
  89. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/branch-summarization.d.ts +88 -0
  90. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/branch-summarization.d.ts.map +1 -0
  91. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/branch-summarization.js +243 -0
  92. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/branch-summarization.js.map +1 -0
  93. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/compaction.d.ts +121 -0
  94. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/compaction.d.ts.map +1 -0
  95. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/compaction.js +625 -0
  96. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/compaction.js.map +1 -0
  97. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/index.d.ts +7 -0
  98. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/index.d.ts.map +1 -0
  99. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/index.js +7 -0
  100. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/index.js.map +1 -0
  101. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/utils.d.ts +38 -0
  102. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/utils.d.ts.map +1 -0
  103. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/utils.js +153 -0
  104. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/compaction/utils.js.map +1 -0
  105. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/defaults.d.ts +3 -0
  106. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/defaults.d.ts.map +1 -0
  107. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/defaults.js +2 -0
  108. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/defaults.js.map +1 -0
  109. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/diagnostics.d.ts +15 -0
  110. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/diagnostics.d.ts.map +1 -0
  111. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/diagnostics.js +2 -0
  112. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/diagnostics.js.map +1 -0
  113. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/event-bus.d.ts +9 -0
  114. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/event-bus.d.ts.map +1 -0
  115. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/event-bus.js +25 -0
  116. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/event-bus.js.map +1 -0
  117. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/exec.d.ts +29 -0
  118. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/exec.d.ts.map +1 -0
  119. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/exec.js +75 -0
  120. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/exec.js.map +1 -0
  121. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/ansi-to-html.d.ts +22 -0
  122. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
  123. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/ansi-to-html.js +249 -0
  124. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/ansi-to-html.js.map +1 -0
  125. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/index.d.ts +37 -0
  126. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/index.d.ts.map +1 -0
  127. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/index.js +224 -0
  128. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/index.js.map +1 -0
  129. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/template.css +1066 -0
  130. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/template.html +55 -0
  131. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/template.js +1834 -0
  132. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/tool-renderer.d.ts +34 -0
  133. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/tool-renderer.d.ts.map +1 -0
  134. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/tool-renderer.js +108 -0
  135. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/tool-renderer.js.map +1 -0
  136. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/vendor/highlight.min.js +1213 -0
  137. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/export-html/vendor/marked.min.js +6 -0
  138. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/index.d.ts +12 -0
  139. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/index.d.ts.map +1 -0
  140. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/index.js +9 -0
  141. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/index.js.map +1 -0
  142. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/loader.d.ts +24 -0
  143. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/loader.d.ts.map +1 -0
  144. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/loader.js +498 -0
  145. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/loader.js.map +1 -0
  146. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/runner.d.ts +159 -0
  147. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/runner.d.ts.map +1 -0
  148. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/runner.js +830 -0
  149. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/runner.js.map +1 -0
  150. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/types.d.ts +1176 -0
  151. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/types.d.ts.map +1 -0
  152. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/types.js +45 -0
  153. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/types.js.map +1 -0
  154. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/wrapper.d.ts +20 -0
  155. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/wrapper.d.ts.map +1 -0
  156. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/wrapper.js +22 -0
  157. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/extensions/wrapper.js.map +1 -0
  158. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/footer-data-provider.d.ts +52 -0
  159. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/footer-data-provider.d.ts.map +1 -0
  160. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/footer-data-provider.js +310 -0
  161. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/footer-data-provider.js.map +1 -0
  162. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/index.d.ts +12 -0
  163. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/index.d.ts.map +1 -0
  164. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/index.js +12 -0
  165. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/index.js.map +1 -0
  166. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/keybindings.d.ts +353 -0
  167. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/keybindings.d.ts.map +1 -0
  168. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/keybindings.js +295 -0
  169. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/keybindings.js.map +1 -0
  170. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/messages.d.ts +77 -0
  171. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/messages.d.ts.map +1 -0
  172. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/messages.js +123 -0
  173. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/messages.js.map +1 -0
  174. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/model-registry.d.ts +150 -0
  175. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/model-registry.d.ts.map +1 -0
  176. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/model-registry.js +728 -0
  177. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/model-registry.js.map +1 -0
  178. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/model-resolver.d.ts +110 -0
  179. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/model-resolver.d.ts.map +1 -0
  180. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/model-resolver.js +495 -0
  181. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/model-resolver.js.map +1 -0
  182. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/output-guard.d.ts +6 -0
  183. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/output-guard.d.ts.map +1 -0
  184. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/output-guard.js +59 -0
  185. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/output-guard.js.map +1 -0
  186. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/package-manager.d.ts +203 -0
  187. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/package-manager.d.ts.map +1 -0
  188. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/package-manager.js +2018 -0
  189. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/package-manager.js.map +1 -0
  190. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/prompt-templates.d.ts +52 -0
  191. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/prompt-templates.d.ts.map +1 -0
  192. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/prompt-templates.js +252 -0
  193. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/prompt-templates.js.map +1 -0
  194. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/provider-display-names.d.ts +2 -0
  195. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/provider-display-names.d.ts.map +1 -0
  196. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/provider-display-names.js +33 -0
  197. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/provider-display-names.js.map +1 -0
  198. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/resolve-config-value.d.ts +23 -0
  199. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/resolve-config-value.d.ts.map +1 -0
  200. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/resolve-config-value.js +126 -0
  201. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/resolve-config-value.js.map +1 -0
  202. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/resource-loader.d.ts +194 -0
  203. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/resource-loader.d.ts.map +1 -0
  204. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/resource-loader.js +727 -0
  205. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/resource-loader.js.map +1 -0
  206. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/sdk.d.ts +107 -0
  207. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/sdk.d.ts.map +1 -0
  208. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/sdk.js +282 -0
  209. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/sdk.js.map +1 -0
  210. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/session-cwd.d.ts +19 -0
  211. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/session-cwd.d.ts.map +1 -0
  212. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/session-cwd.js +38 -0
  213. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/session-cwd.js.map +1 -0
  214. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/session-manager.d.ts +333 -0
  215. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/session-manager.d.ts.map +1 -0
  216. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/session-manager.js +1139 -0
  217. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/session-manager.js.map +1 -0
  218. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/settings-manager.d.ts +261 -0
  219. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/settings-manager.d.ts.map +1 -0
  220. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/settings-manager.js +782 -0
  221. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/settings-manager.js.map +1 -0
  222. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/skills.d.ts +60 -0
  223. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/skills.d.ts.map +1 -0
  224. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/skills.js +401 -0
  225. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/skills.js.map +1 -0
  226. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/slash-commands.d.ts +14 -0
  227. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/slash-commands.d.ts.map +1 -0
  228. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/slash-commands.js +25 -0
  229. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/slash-commands.js.map +1 -0
  230. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/source-info.d.ts +18 -0
  231. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/source-info.d.ts.map +1 -0
  232. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/source-info.js +19 -0
  233. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/source-info.js.map +1 -0
  234. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/system-prompt.d.ts +28 -0
  235. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/system-prompt.d.ts.map +1 -0
  236. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/system-prompt.js +121 -0
  237. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/system-prompt.js.map +1 -0
  238. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/telemetry.d.ts +3 -0
  239. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/telemetry.d.ts.map +1 -0
  240. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/telemetry.js +9 -0
  241. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/telemetry.js.map +1 -0
  242. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/timings.d.ts +8 -0
  243. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/timings.d.ts.map +1 -0
  244. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/timings.js +31 -0
  245. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/timings.js.map +1 -0
  246. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/bash.d.ts +68 -0
  247. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/bash.d.ts.map +1 -0
  248. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/bash.js +364 -0
  249. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/bash.js.map +1 -0
  250. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/edit-diff.d.ts +85 -0
  251. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/edit-diff.d.ts.map +1 -0
  252. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/edit-diff.js +338 -0
  253. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/edit-diff.js.map +1 -0
  254. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/edit.d.ts +49 -0
  255. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/edit.d.ts.map +1 -0
  256. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/edit.js +310 -0
  257. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/edit.js.map +1 -0
  258. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/file-mutation-queue.d.ts +6 -0
  259. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
  260. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/file-mutation-queue.js +37 -0
  261. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/file-mutation-queue.js.map +1 -0
  262. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/find.d.ts +35 -0
  263. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/find.d.ts.map +1 -0
  264. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/find.js +298 -0
  265. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/find.js.map +1 -0
  266. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/grep.d.ts +37 -0
  267. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/grep.d.ts.map +1 -0
  268. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/grep.js +304 -0
  269. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/grep.js.map +1 -0
  270. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/index.d.ts +40 -0
  271. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/index.d.ts.map +1 -0
  272. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/index.js +112 -0
  273. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/index.js.map +1 -0
  274. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/ls.d.ts +37 -0
  275. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/ls.d.ts.map +1 -0
  276. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/ls.js +169 -0
  277. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/ls.js.map +1 -0
  278. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/output-accumulator.d.ts +50 -0
  279. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/output-accumulator.d.ts.map +1 -0
  280. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/output-accumulator.js +178 -0
  281. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/output-accumulator.js.map +1 -0
  282. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/path-utils.d.ts +8 -0
  283. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/path-utils.d.ts.map +1 -0
  284. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/path-utils.js +81 -0
  285. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/path-utils.js.map +1 -0
  286. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/read.d.ts +35 -0
  287. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/read.d.ts.map +1 -0
  288. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/read.js +286 -0
  289. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/read.js.map +1 -0
  290. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/render-utils.d.ts +21 -0
  291. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/render-utils.d.ts.map +1 -0
  292. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/render-utils.js +49 -0
  293. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/render-utils.js.map +1 -0
  294. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
  295. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
  296. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/tool-definition-wrapper.js +34 -0
  297. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/tool-definition-wrapper.js.map +1 -0
  298. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/truncate.d.ts +70 -0
  299. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/truncate.d.ts.map +1 -0
  300. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/truncate.js +205 -0
  301. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/truncate.js.map +1 -0
  302. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/write.d.ts +26 -0
  303. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/write.d.ts.map +1 -0
  304. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/write.js +213 -0
  305. package/forks/autopm-pi-mono/packages/coding-agent/dist/core/tools/write.js.map +1 -0
  306. package/forks/autopm-pi-mono/packages/coding-agent/dist/index.d.ts +28 -0
  307. package/forks/autopm-pi-mono/packages/coding-agent/dist/index.d.ts.map +1 -0
  308. package/forks/autopm-pi-mono/packages/coding-agent/dist/index.js +41 -0
  309. package/forks/autopm-pi-mono/packages/coding-agent/dist/index.js.map +1 -0
  310. package/forks/autopm-pi-mono/packages/coding-agent/dist/main.d.ts +12 -0
  311. package/forks/autopm-pi-mono/packages/coding-agent/dist/main.d.ts.map +1 -0
  312. package/forks/autopm-pi-mono/packages/coding-agent/dist/main.js +577 -0
  313. package/forks/autopm-pi-mono/packages/coding-agent/dist/main.js.map +1 -0
  314. package/forks/autopm-pi-mono/packages/coding-agent/dist/migrations.d.ts +33 -0
  315. package/forks/autopm-pi-mono/packages/coding-agent/dist/migrations.d.ts.map +1 -0
  316. package/forks/autopm-pi-mono/packages/coding-agent/dist/migrations.js +281 -0
  317. package/forks/autopm-pi-mono/packages/coding-agent/dist/migrations.js.map +1 -0
  318. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/index.d.ts +9 -0
  319. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/index.d.ts.map +1 -0
  320. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/index.js +8 -0
  321. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/index.js.map +1 -0
  322. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/assets/clankolas.png +0 -0
  323. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/armin.d.ts +34 -0
  324. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/armin.d.ts.map +1 -0
  325. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/armin.js +333 -0
  326. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/armin.js.map +1 -0
  327. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/assistant-message.d.ts +20 -0
  328. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
  329. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/assistant-message.js +121 -0
  330. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/assistant-message.js.map +1 -0
  331. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/bash-execution.d.ts +34 -0
  332. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
  333. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/bash-execution.js +175 -0
  334. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/bash-execution.js.map +1 -0
  335. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
  336. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
  337. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/bordered-loader.js +54 -0
  338. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/bordered-loader.js.map +1 -0
  339. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/bottom-anchor-spacer.js +24 -0
  340. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
  341. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
  342. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/branch-summary-message.js +44 -0
  343. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
  344. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
  345. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
  346. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/compaction-summary-message.js +45 -0
  347. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
  348. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/config-selector.d.ts +71 -0
  349. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
  350. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/config-selector.js +506 -0
  351. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/config-selector.js.map +1 -0
  352. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
  353. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
  354. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/countdown-timer.js +33 -0
  355. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/countdown-timer.js.map +1 -0
  356. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/custom-editor.d.ts +21 -0
  357. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
  358. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/custom-editor.js +70 -0
  359. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/custom-editor.js.map +1 -0
  360. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/custom-message.d.ts +20 -0
  361. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
  362. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/custom-message.js +79 -0
  363. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/custom-message.js.map +1 -0
  364. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/daxnuts.d.ts +23 -0
  365. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
  366. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/daxnuts.js +140 -0
  367. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/daxnuts.js.map +1 -0
  368. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/diff.d.ts +12 -0
  369. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/diff.d.ts.map +1 -0
  370. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/diff.js +133 -0
  371. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/diff.js.map +1 -0
  372. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
  373. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
  374. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/dynamic-border.js +21 -0
  375. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/dynamic-border.js.map +1 -0
  376. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
  377. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -0
  378. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/earendil-announcement.js +40 -0
  379. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/earendil-announcement.js.map +1 -0
  380. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-editor.d.ts +20 -0
  381. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
  382. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-editor.js +119 -0
  383. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-editor.js.map +1 -0
  384. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-input.d.ts +23 -0
  385. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
  386. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-input.js +61 -0
  387. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-input.js.map +1 -0
  388. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-selector.d.ts +26 -0
  389. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
  390. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-selector.js +83 -0
  391. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/extension-selector.js.map +1 -0
  392. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/footer.d.ts +26 -0
  393. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/footer.d.ts.map +1 -0
  394. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/footer.js +133 -0
  395. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/footer.js.map +1 -0
  396. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/index.d.ts +32 -0
  397. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/index.d.ts.map +1 -0
  398. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/index.js +33 -0
  399. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/index.js.map +1 -0
  400. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
  401. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
  402. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/keybinding-hints.js +36 -0
  403. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
  404. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/login-dialog.d.ts +46 -0
  405. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
  406. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/login-dialog.js +160 -0
  407. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/login-dialog.js.map +1 -0
  408. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/model-selector.d.ts +47 -0
  409. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
  410. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/model-selector.js +278 -0
  411. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/model-selector.js.map +1 -0
  412. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +31 -0
  413. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
  414. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/oauth-selector.js +165 -0
  415. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/oauth-selector.js.map +1 -0
  416. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts +42 -0
  417. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
  418. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/scoped-models-selector.js +290 -0
  419. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
  420. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
  421. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
  422. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/session-selector-search.js +155 -0
  423. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/session-selector-search.js.map +1 -0
  424. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/session-selector.d.ts +96 -0
  425. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
  426. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/session-selector.js +861 -0
  427. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/session-selector.js.map +1 -0
  428. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/settings-selector.d.ts +67 -0
  429. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
  430. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/settings-selector.js +375 -0
  431. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -0
  432. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
  433. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
  434. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/show-images-selector.js +39 -0
  435. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/show-images-selector.js.map +1 -0
  436. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
  437. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
  438. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/skill-invocation-message.js +47 -0
  439. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
  440. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/theme-selector.d.ts +11 -0
  441. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
  442. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/theme-selector.js +50 -0
  443. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/theme-selector.js.map +1 -0
  444. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
  445. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
  446. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/thinking-selector.js +51 -0
  447. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/thinking-selector.js.map +1 -0
  448. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/tool-execution.d.ts +63 -0
  449. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
  450. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/tool-execution.js +407 -0
  451. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -0
  452. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/tree-selector.d.ts +89 -0
  453. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
  454. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/tree-selector.js +1093 -0
  455. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/tree-selector.js.map +1 -0
  456. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
  457. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
  458. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/user-message-selector.js +114 -0
  459. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/user-message-selector.js.map +1 -0
  460. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/user-message.d.ts +10 -0
  461. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/user-message.d.ts.map +1 -0
  462. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/user-message.js +29 -0
  463. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/user-message.js.map +1 -0
  464. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
  465. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
  466. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/visual-truncate.js +33 -0
  467. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/components/visual-truncate.js.map +1 -0
  468. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/interactive-mode.d.ts +369 -0
  469. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
  470. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/interactive-mode.js +4662 -0
  471. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -0
  472. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/theme/dark.json +85 -0
  473. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/theme/light.json +84 -0
  474. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/theme/theme-schema.json +335 -0
  475. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/theme/theme.d.ts +81 -0
  476. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -0
  477. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/theme/theme.js +1062 -0
  478. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/interactive/theme/theme.js.map +1 -0
  479. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/print-mode.d.ts +28 -0
  480. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/print-mode.d.ts.map +1 -0
  481. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/print-mode.js +131 -0
  482. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/print-mode.js.map +1 -0
  483. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/jsonl.d.ts +17 -0
  484. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/jsonl.d.ts.map +1 -0
  485. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/jsonl.js +49 -0
  486. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/jsonl.js.map +1 -0
  487. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-client.d.ts +224 -0
  488. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-client.d.ts.map +1 -0
  489. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-client.js +410 -0
  490. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-client.js.map +1 -0
  491. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-mode.d.ts +20 -0
  492. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
  493. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-mode.js +601 -0
  494. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -0
  495. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-types.d.ts +419 -0
  496. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-types.d.ts.map +1 -0
  497. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-types.js +8 -0
  498. package/forks/autopm-pi-mono/packages/coding-agent/dist/modes/rpc/rpc-types.js.map +1 -0
  499. package/forks/autopm-pi-mono/packages/coding-agent/dist/package-manager-cli.d.ts +4 -0
  500. package/forks/autopm-pi-mono/packages/coding-agent/dist/package-manager-cli.d.ts.map +1 -0
  501. package/forks/autopm-pi-mono/packages/coding-agent/dist/package-manager-cli.js +476 -0
  502. package/forks/autopm-pi-mono/packages/coding-agent/dist/package-manager-cli.js.map +1 -0
  503. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/ansi.d.ts +2 -0
  504. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/ansi.d.ts.map +1 -0
  505. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/ansi.js +52 -0
  506. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/ansi.js.map +1 -0
  507. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/changelog.d.ts +21 -0
  508. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/changelog.d.ts.map +1 -0
  509. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/changelog.js +87 -0
  510. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/changelog.js.map +1 -0
  511. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/child-process.d.ts +15 -0
  512. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/child-process.d.ts.map +1 -0
  513. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/child-process.js +88 -0
  514. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/child-process.js.map +1 -0
  515. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard-image.d.ts +11 -0
  516. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard-image.d.ts.map +1 -0
  517. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard-image.js +245 -0
  518. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard-image.js.map +1 -0
  519. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard-native.d.ts +8 -0
  520. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard-native.d.ts.map +1 -0
  521. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard-native.js +14 -0
  522. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard-native.js.map +1 -0
  523. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard.d.ts +2 -0
  524. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard.d.ts.map +1 -0
  525. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard.js +117 -0
  526. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/clipboard.js.map +1 -0
  527. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/exif-orientation.d.ts +5 -0
  528. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/exif-orientation.d.ts.map +1 -0
  529. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/exif-orientation.js +158 -0
  530. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/exif-orientation.js.map +1 -0
  531. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/frontmatter.d.ts +8 -0
  532. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/frontmatter.d.ts.map +1 -0
  533. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/frontmatter.js +26 -0
  534. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/frontmatter.js.map +1 -0
  535. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/fs-watch.d.ts +5 -0
  536. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/fs-watch.d.ts.map +1 -0
  537. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/fs-watch.js +25 -0
  538. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/fs-watch.js.map +1 -0
  539. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/git.d.ts +26 -0
  540. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/git.d.ts.map +1 -0
  541. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/git.js +163 -0
  542. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/git.js.map +1 -0
  543. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/html.d.ts +7 -0
  544. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/html.d.ts.map +1 -0
  545. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/html.js +40 -0
  546. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/html.js.map +1 -0
  547. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/image-convert.d.ts +9 -0
  548. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/image-convert.d.ts.map +1 -0
  549. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/image-convert.js +39 -0
  550. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/image-convert.js.map +1 -0
  551. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/image-resize.d.ts +36 -0
  552. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/image-resize.d.ts.map +1 -0
  553. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/image-resize.js +137 -0
  554. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/image-resize.js.map +1 -0
  555. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/mime.d.ts +3 -0
  556. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/mime.d.ts.map +1 -0
  557. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/mime.js +69 -0
  558. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/mime.js.map +1 -0
  559. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/paths.d.ts +16 -0
  560. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/paths.d.ts.map +1 -0
  561. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/paths.js +50 -0
  562. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/paths.js.map +1 -0
  563. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/photon.d.ts +21 -0
  564. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/photon.d.ts.map +1 -0
  565. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/photon.js +121 -0
  566. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/photon.js.map +1 -0
  567. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/pi-user-agent.d.ts +2 -0
  568. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/pi-user-agent.d.ts.map +1 -0
  569. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/pi-user-agent.js +5 -0
  570. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/pi-user-agent.js.map +1 -0
  571. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/shell.d.ts +30 -0
  572. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/shell.d.ts.map +1 -0
  573. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/shell.js +190 -0
  574. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/shell.js.map +1 -0
  575. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/sleep.d.ts +5 -0
  576. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/sleep.d.ts.map +1 -0
  577. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/sleep.js +17 -0
  578. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/sleep.js.map +1 -0
  579. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/syntax-highlight.d.ts +12 -0
  580. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/syntax-highlight.d.ts.map +1 -0
  581. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/syntax-highlight.js +118 -0
  582. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/syntax-highlight.js.map +1 -0
  583. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/tools-manager.d.ts +3 -0
  584. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/tools-manager.d.ts.map +1 -0
  585. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/tools-manager.js +328 -0
  586. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/tools-manager.js.map +1 -0
  587. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/version-check.d.ts +14 -0
  588. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/version-check.d.ts.map +1 -0
  589. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/version-check.js +77 -0
  590. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/version-check.js.map +1 -0
  591. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/windows-self-update.d.ts +3 -0
  592. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/windows-self-update.d.ts.map +1 -0
  593. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/windows-self-update.js +77 -0
  594. package/forks/autopm-pi-mono/packages/coding-agent/dist/utils/windows-self-update.js.map +1 -0
  595. package/node_modules/@mixmark-io/domino/.gitmodules +6 -0
  596. package/node_modules/@mixmark-io/domino/.mocharc.json +8 -0
  597. package/node_modules/@mixmark-io/domino/.nvmrc +1 -0
  598. package/node_modules/@mixmark-io/domino/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
  599. package/node_modules/@mixmark-io/domino/.yarn/versions/78b6ef77.yml +0 -0
  600. package/node_modules/@mixmark-io/domino/CHANGELOG.md +294 -0
  601. package/node_modules/@mixmark-io/domino/CONTRIBUTING.md +4 -0
  602. package/node_modules/@mixmark-io/domino/LICENSE +25 -0
  603. package/node_modules/@mixmark-io/domino/README.md +141 -0
  604. package/node_modules/@mixmark-io/domino/lib/CSSStyleDeclaration.js +234 -0
  605. package/node_modules/@mixmark-io/domino/lib/CharacterData.js +120 -0
  606. package/node_modules/@mixmark-io/domino/lib/ChildNode.js +119 -0
  607. package/node_modules/@mixmark-io/domino/lib/Comment.js +40 -0
  608. package/node_modules/@mixmark-io/domino/lib/ContainerNode.js +80 -0
  609. package/node_modules/@mixmark-io/domino/lib/CustomEvent.js +12 -0
  610. package/node_modules/@mixmark-io/domino/lib/DOMException.js +134 -0
  611. package/node_modules/@mixmark-io/domino/lib/DOMImplementation.js +94 -0
  612. package/node_modules/@mixmark-io/domino/lib/DOMTokenList.js +186 -0
  613. package/node_modules/@mixmark-io/domino/lib/Document.js +884 -0
  614. package/node_modules/@mixmark-io/domino/lib/DocumentFragment.js +71 -0
  615. package/node_modules/@mixmark-io/domino/lib/DocumentType.js +36 -0
  616. package/node_modules/@mixmark-io/domino/lib/Element.js +1228 -0
  617. package/node_modules/@mixmark-io/domino/lib/Event.js +66 -0
  618. package/node_modules/@mixmark-io/domino/lib/EventTarget.js +298 -0
  619. package/node_modules/@mixmark-io/domino/lib/FilteredElementList.js +92 -0
  620. package/node_modules/@mixmark-io/domino/lib/HTMLParser.js +7254 -0
  621. package/node_modules/@mixmark-io/domino/lib/Leaf.js +37 -0
  622. package/node_modules/@mixmark-io/domino/lib/LinkedList.js +44 -0
  623. package/node_modules/@mixmark-io/domino/lib/Location.js +56 -0
  624. package/node_modules/@mixmark-io/domino/lib/MouseEvent.js +52 -0
  625. package/node_modules/@mixmark-io/domino/lib/MutationConstants.js +9 -0
  626. package/node_modules/@mixmark-io/domino/lib/NamedNodeMap.js +41 -0
  627. package/node_modules/@mixmark-io/domino/lib/NavigatorID.js +17 -0
  628. package/node_modules/@mixmark-io/domino/lib/Node.js +764 -0
  629. package/node_modules/@mixmark-io/domino/lib/NodeFilter.js +24 -0
  630. package/node_modules/@mixmark-io/domino/lib/NodeIterator.js +217 -0
  631. package/node_modules/@mixmark-io/domino/lib/NodeList.es5.js +15 -0
  632. package/node_modules/@mixmark-io/domino/lib/NodeList.es6.js +12 -0
  633. package/node_modules/@mixmark-io/domino/lib/NodeList.js +13 -0
  634. package/node_modules/@mixmark-io/domino/lib/NodeTraversal.js +87 -0
  635. package/node_modules/@mixmark-io/domino/lib/NodeUtils.js +246 -0
  636. package/node_modules/@mixmark-io/domino/lib/NonDocumentTypeChildNode.js +26 -0
  637. package/node_modules/@mixmark-io/domino/lib/ProcessingInstruction.js +44 -0
  638. package/node_modules/@mixmark-io/domino/lib/Text.js +75 -0
  639. package/node_modules/@mixmark-io/domino/lib/TreeWalker.js +336 -0
  640. package/node_modules/@mixmark-io/domino/lib/UIEvent.js +19 -0
  641. package/node_modules/@mixmark-io/domino/lib/URL.js +194 -0
  642. package/node_modules/@mixmark-io/domino/lib/URLUtils.js +270 -0
  643. package/node_modules/@mixmark-io/domino/lib/Window.js +60 -0
  644. package/node_modules/@mixmark-io/domino/lib/WindowTimers.js +11 -0
  645. package/node_modules/@mixmark-io/domino/lib/attributes.js +152 -0
  646. package/node_modules/@mixmark-io/domino/lib/config.js +7 -0
  647. package/node_modules/@mixmark-io/domino/lib/defineElement.js +71 -0
  648. package/node_modules/@mixmark-io/domino/lib/events.js +7 -0
  649. package/node_modules/@mixmark-io/domino/lib/htmlelts.js +1499 -0
  650. package/node_modules/@mixmark-io/domino/lib/impl.js +27 -0
  651. package/node_modules/@mixmark-io/domino/lib/index.d.ts +5 -0
  652. package/node_modules/@mixmark-io/domino/lib/index.js +80 -0
  653. package/node_modules/@mixmark-io/domino/lib/select.js +933 -0
  654. package/node_modules/@mixmark-io/domino/lib/style_parser.js +106 -0
  655. package/node_modules/@mixmark-io/domino/lib/svg.js +59 -0
  656. package/node_modules/@mixmark-io/domino/lib/utils.js +85 -0
  657. package/node_modules/@mixmark-io/domino/lib/xmlnames.js +91 -0
  658. package/node_modules/@mixmark-io/domino/package.json +22 -0
  659. package/node_modules/@mixmark-io/domino/test/domino.js +1500 -0
  660. package/node_modules/@mixmark-io/domino/test/fixture/doc.html +13 -0
  661. package/node_modules/@mixmark-io/domino/test/fixture/jquery-1.9.1.js +9597 -0
  662. package/node_modules/@mixmark-io/domino/test/fixture/jquery-2.2.0.js +9831 -0
  663. package/node_modules/@mixmark-io/domino/test/html5lib-tests.json +80692 -0
  664. package/node_modules/@mixmark-io/domino/test/index.js +2 -0
  665. package/node_modules/@mixmark-io/domino/test/parsing.js +66 -0
  666. package/node_modules/@mixmark-io/domino/test/tools/update-entities.js +90 -0
  667. package/node_modules/@mixmark-io/domino/test/tools/update-html5lib-tests.js +355 -0
  668. package/node_modules/@mixmark-io/domino/test/w3c/README.md +13 -0
  669. package/node_modules/@mixmark-io/domino/test/w3c/harness/DomTestCase.js +438 -0
  670. package/node_modules/@mixmark-io/domino/test/w3c/harness/index.js +95 -0
  671. package/node_modules/@mixmark-io/domino/test/w3c/index.js +12 -0
  672. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/documentgetdoctypenodtd.js +110 -0
  673. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/documentinvalidcharacterexceptioncreatepi.js +143 -0
  674. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/documentinvalidcharacterexceptioncreatepi1.js +140 -0
  675. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/files/.cvsignore +0 -0
  676. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/files/hc_nodtdstaff.html +10 -0
  677. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/files/hc_staff.html +48 -0
  678. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/files/staff.dtd +17 -0
  679. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataappenddata.js +124 -0
  680. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataappenddatagetdata.js +123 -0
  681. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatadeletedatabegining.js +122 -0
  682. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatadeletedataend.js +123 -0
  683. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatadeletedataexceedslength.js +125 -0
  684. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatadeletedatagetlengthanddata.js +132 -0
  685. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatadeletedatamiddle.js +123 -0
  686. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatagetdata.js +124 -0
  687. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatagetlength.js +119 -0
  688. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrdeletedatacountnegative.js +131 -0
  689. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrdeletedataoffsetgreater.js +131 -0
  690. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrdeletedataoffsetnegative.js +130 -0
  691. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrinsertdataoffsetgreater.js +130 -0
  692. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrinsertdataoffsetnegative.js +129 -0
  693. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrreplacedatacountnegative.js +132 -0
  694. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrreplacedataoffsetgreater.js +131 -0
  695. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrreplacedataoffsetnegative.js +131 -0
  696. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrsubstringcountnegative.js +131 -0
  697. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrsubstringnegativeoffset.js +130 -0
  698. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdataindexsizeerrsubstringoffsetgreater.js +131 -0
  699. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatainsertdatabeginning.js +122 -0
  700. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatainsertdataend.js +123 -0
  701. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatainsertdatamiddle.js +123 -0
  702. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatareplacedatabegining.js +122 -0
  703. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatareplacedataend.js +123 -0
  704. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatareplacedataexceedslengthofarg.js +124 -0
  705. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatareplacedataexceedslengthofdata.js +122 -0
  706. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatareplacedatamiddle.js +123 -0
  707. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatasetnodevalue.js +122 -0
  708. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatasubstringexceedsvalue.js +120 -0
  709. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_characterdatasubstringvalue.js +119 -0
  710. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_commentgetcomment.js +144 -0
  711. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentcreatecomment.js +120 -0
  712. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentcreatedocumentfragment.js +126 -0
  713. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentcreateelement.js +121 -0
  714. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentcreateelementcasesensitive.js +132 -0
  715. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentcreatetextnode.js +120 -0
  716. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentgetdoctype.js +149 -0
  717. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentgetelementsbytagnamelength.js +110 -0
  718. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentgetelementsbytagnametotallength.js +221 -0
  719. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentgetelementsbytagnamevalue.js +120 -0
  720. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentgetimplementation.js +126 -0
  721. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentgetrootnode.js +123 -0
  722. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentinvalidcharacterexceptioncreateelement.js +124 -0
  723. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_documentinvalidcharacterexceptioncreateelement1.js +117 -0
  724. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_domimplementationfeaturenoversion.js +126 -0
  725. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_domimplementationfeaturenull.js +129 -0
  726. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_domimplementationfeaturexml.js +125 -0
  727. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementaddnewattribute.js +117 -0
  728. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementchangeattributevalue.js +119 -0
  729. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementgetelementsbytagname.js +112 -0
  730. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementgetelementsbytagnameaccessnodelist.js +144 -0
  731. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementgetelementsbytagnamenomatch.js +110 -0
  732. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementgetelementsbytagnamespecialvalue.js +134 -0
  733. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementgettagname.js +123 -0
  734. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementinvalidcharacterexception.js +125 -0
  735. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementinvalidcharacterexception1.js +119 -0
  736. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementnormalize.js +126 -0
  737. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementremoveattribute.js +113 -0
  738. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementretrieveallattributes.js +144 -0
  739. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementretrieveattrvalue.js +113 -0
  740. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_elementretrievetagname.js +118 -0
  741. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_entitiesremovenameditem1.js +133 -0
  742. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_entitiessetnameditem1.js +144 -0
  743. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_namednodemapchildnoderange.js +141 -0
  744. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_namednodemapnumberofnodes.js +127 -0
  745. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeappendchild.js +123 -0
  746. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeappendchildchildexists.js +160 -0
  747. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeappendchilddocfragment.js +158 -0
  748. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeappendchildgetnodename.js +123 -0
  749. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeappendchildnewchilddiffdocument.js +145 -0
  750. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeappendchildnodeancestor.js +132 -0
  751. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeattributenodeattribute.js +120 -0
  752. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodechildnodes.js +149 -0
  753. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodechildnodesappendchild.js +159 -0
  754. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodechildnodesempty.js +123 -0
  755. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodecloneattributescopied.js +149 -0
  756. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeclonefalsenocopytext.js +122 -0
  757. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeclonegetparentnull.js +117 -0
  758. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeclonenodefalse.js +126 -0
  759. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeclonenodetrue.js +145 -0
  760. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeclonetruecopytext.js +121 -0
  761. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodecommentnodeattributes.js +135 -0
  762. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodecommentnodename.js +134 -0
  763. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodecommentnodetype.js +133 -0
  764. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodecommentnodevalue.js +133 -0
  765. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodedocumentfragmentnodename.js +114 -0
  766. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodedocumentfragmentnodetype.js +114 -0
  767. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodedocumentfragmentnodevalue.js +120 -0
  768. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodedocumentnodeattribute.js +111 -0
  769. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodedocumentnodename.js +111 -0
  770. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodedocumentnodetype.js +110 -0
  771. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodedocumentnodevalue.js +112 -0
  772. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeelementnodeattributes.js +145 -0
  773. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeelementnodename.js +125 -0
  774. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeelementnodetype.js +112 -0
  775. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeelementnodevalue.js +109 -0
  776. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetfirstchild.js +130 -0
  777. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetfirstchildnull.js +117 -0
  778. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetlastchild.js +117 -0
  779. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetlastchildnull.js +118 -0
  780. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetnextsibling.js +117 -0
  781. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetnextsiblingnull.js +124 -0
  782. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetownerdocument.js +129 -0
  783. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetownerdocumentnull.js +115 -0
  784. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetprevioussibling.js +117 -0
  785. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodegetprevioussiblingnull.js +124 -0
  786. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodehaschildnodes.js +113 -0
  787. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodehaschildnodesfalse.js +117 -0
  788. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeinsertbefore.js +153 -0
  789. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeinsertbeforedocfragment.js +141 -0
  790. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeinsertbeforenewchilddiffdocument.js +148 -0
  791. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeinsertbeforenewchildexists.js +151 -0
  792. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeinsertbeforenodeancestor.js +135 -0
  793. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeinsertbeforenodename.js +126 -0
  794. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeinsertbeforerefchildnonexistent.js +133 -0
  795. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeinsertbeforerefchildnull.js +131 -0
  796. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodelistindexequalzero.js +135 -0
  797. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodelistindexgetlength.js +129 -0
  798. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodelistindexgetlengthofemptylist.js +122 -0
  799. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodelistindexnotzero.js +133 -0
  800. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodelistreturnfirstitem.js +129 -0
  801. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodelistreturnlastitem.js +133 -0
  802. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodelisttraverselist.js +149 -0
  803. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeparentnode.js +117 -0
  804. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodeparentnodenull.js +114 -0
  805. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_noderemovechild.js +123 -0
  806. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_noderemovechildgetnodename.js +128 -0
  807. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_noderemovechildnode.js +160 -0
  808. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_noderemovechildoldchildnonexistent.js +129 -0
  809. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodereplacechild.js +127 -0
  810. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodereplacechildnewchilddiffdocument.js +148 -0
  811. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodereplacechildnewchildexists.js +155 -0
  812. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodereplacechildnodeancestor.js +135 -0
  813. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodereplacechildnodename.js +126 -0
  814. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodereplacechildoldchildnonexistent.js +131 -0
  815. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodetextnodeattribute.js +118 -0
  816. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodetextnodename.js +113 -0
  817. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodetextnodetype.js +124 -0
  818. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodetextnodevalue.js +118 -0
  819. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodevalue01.js +114 -0
  820. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodevalue02.js +114 -0
  821. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodevalue04.js +132 -0
  822. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodevalue05.js +114 -0
  823. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodevalue06.js +112 -0
  824. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodevalue07.js +134 -0
  825. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_nodevalue08.js +134 -0
  826. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_notationsremovenameditem1.js +133 -0
  827. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_notationssetnameditem1.js +144 -0
  828. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_textindexsizeerrnegativeoffset.js +130 -0
  829. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_textindexsizeerroffsetoutofbounds.js +131 -0
  830. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_textparseintolistofelements.js +169 -0
  831. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_textsplittextfour.js +122 -0
  832. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_textsplittextone.js +126 -0
  833. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_textsplittextthree.js +124 -0
  834. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_textsplittexttwo.js +123 -0
  835. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/hc_textwithnomarkup.js +122 -0
  836. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/documentinvalidcharacterexceptioncreateentref.js +143 -0
  837. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/documentinvalidcharacterexceptioncreateentref1.js +140 -0
  838. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrappendchild1.js +132 -0
  839. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrappendchild2.js +127 -0
  840. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrappendchild3.js +138 -0
  841. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrappendchild4.js +152 -0
  842. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrappendchild5.js +141 -0
  843. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrappendchild6.js +127 -0
  844. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrchildnodes1.js +124 -0
  845. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrchildnodes2.js +130 -0
  846. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrclonenode1.js +132 -0
  847. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrcreatedocumentfragment.js +138 -0
  848. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrcreatetextnode.js +127 -0
  849. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrcreatetextnode2.js +127 -0
  850. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attreffectivevalue.js +118 -0
  851. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrfirstchild.js +127 -0
  852. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrgetvalue1.js +117 -0
  853. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrgetvalue2.js +146 -0
  854. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrhaschildnodes.js +114 -0
  855. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrinsertbefore1.js +140 -0
  856. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrinsertbefore2.js +141 -0
  857. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrinsertbefore3.js +146 -0
  858. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrinsertbefore4.js +147 -0
  859. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrinsertbefore5.js +153 -0
  860. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrinsertbefore6.js +142 -0
  861. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrinsertbefore7.js +160 -0
  862. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrlastchild.js +127 -0
  863. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrname.js +123 -0
  864. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrnextsiblingnull.js +118 -0
  865. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrnormalize.js +133 -0
  866. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrparentnodenull.js +118 -0
  867. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrprevioussiblingnull.js +118 -0
  868. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrremovechild1.js +131 -0
  869. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrremovechild2.js +126 -0
  870. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrreplacechild1.js +135 -0
  871. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrreplacechild2.js +141 -0
  872. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrsetvalue1.js +135 -0
  873. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrsetvalue2.js +138 -0
  874. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrspecifiedvalue.js +121 -0
  875. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_attrspecifiedvaluechanged.js +123 -0
  876. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_documentcreateattribute.js +122 -0
  877. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_documentinvalidcharacterexceptioncreateattribute.js +124 -0
  878. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_documentinvalidcharacterexceptioncreateattribute1.js +117 -0
  879. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementassociatedattribute.js +119 -0
  880. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementcreatenewattribute.js +124 -0
  881. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementgetattributenode.js +114 -0
  882. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementgetattributenodenull.js +115 -0
  883. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementgetelementempty.js +123 -0
  884. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementinuseattributeerr.js +131 -0
  885. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementnormalize2.js +129 -0
  886. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementnotfounderr.js +130 -0
  887. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementremoveattributeaftercreate.js +124 -0
  888. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementremoveattributenode.js +119 -0
  889. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementreplaceattributewithself.js +117 -0
  890. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementreplaceexistingattribute.js +122 -0
  891. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementreplaceexistingattributegevalue.js +123 -0
  892. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementsetattributenodenull.js +120 -0
  893. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_elementwrongdocumenterr.js +147 -0
  894. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapgetnameditem.js +121 -0
  895. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapinuseattributeerr.js +139 -0
  896. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapnotfounderr.js +131 -0
  897. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapremovenameditem.js +124 -0
  898. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapreturnattrnode.js +126 -0
  899. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapreturnfirstitem.js +150 -0
  900. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapreturnlastitem.js +152 -0
  901. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapreturnnull.js +121 -0
  902. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapsetnameditem.js +131 -0
  903. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapsetnameditemreturnvalue.js +132 -0
  904. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapsetnameditemthatexists.js +134 -0
  905. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapsetnameditemwithnewvalue.js +126 -0
  906. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_namednodemapwrongdocumenterr.js +149 -0
  907. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_nodeappendchildinvalidnodetype.js +130 -0
  908. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_nodeattributenodename.js +115 -0
  909. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_nodeattributenodetype.js +123 -0
  910. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_nodeattributenodevalue.js +118 -0
  911. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_nodeinsertbeforeinvalidnodetype.js +136 -0
  912. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_nodereplacechildinvalidnodetype.js +136 -0
  913. package/node_modules/@mixmark-io/domino/test/w3c/level1/core/obsolete/hc_nodevalue03.js +138 -0
  914. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAnchorElement01.js +114 -0
  915. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAnchorElement04.js +113 -0
  916. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAnchorElement05.js +113 -0
  917. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAnchorElement07.js +113 -0
  918. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAnchorElement10.js +114 -0
  919. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAnchorElement11.js +113 -0
  920. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAnchorElement12.js +113 -0
  921. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAnchorElement13.js +107 -0
  922. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAnchorElement14.js +107 -0
  923. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAreaElement01.js +114 -0
  924. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAreaElement02.js +114 -0
  925. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAreaElement03.js +114 -0
  926. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAreaElement04.js +113 -0
  927. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAreaElement05.js +113 -0
  928. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAreaElement06.js +113 -0
  929. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAreaElement07.js +114 -0
  930. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLAreaElement08.js +113 -0
  931. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLButtonElement01.js +116 -0
  932. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLButtonElement02.js +114 -0
  933. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLButtonElement03.js +114 -0
  934. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLButtonElement04.js +114 -0
  935. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLButtonElement05.js +114 -0
  936. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLButtonElement06.js +114 -0
  937. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLButtonElement07.js +113 -0
  938. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLButtonElement08.js +113 -0
  939. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLDocument01.js +109 -0
  940. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLDocument05.js +114 -0
  941. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLDocument15.js +115 -0
  942. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLDocument16.js +114 -0
  943. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLDocument17.js +119 -0
  944. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLDocument18.js +102 -0
  945. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLDocument19.js +129 -0
  946. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLDocument20.js +129 -0
  947. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLDocument21.js +138 -0
  948. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement01.js +113 -0
  949. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement02.js +113 -0
  950. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement03.js +113 -0
  951. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement04.js +113 -0
  952. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement05.js +113 -0
  953. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement06.js +113 -0
  954. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement07.js +113 -0
  955. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement08.js +113 -0
  956. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement09.js +113 -0
  957. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement10.js +113 -0
  958. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement100.js +113 -0
  959. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement101.js +113 -0
  960. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement102.js +113 -0
  961. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement103.js +113 -0
  962. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement104.js +113 -0
  963. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement105.js +113 -0
  964. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement106.js +113 -0
  965. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement107.js +113 -0
  966. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement108.js +113 -0
  967. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement109.js +113 -0
  968. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement11.js +113 -0
  969. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement110.js +113 -0
  970. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement111.js +113 -0
  971. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement112.js +113 -0
  972. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement113.js +113 -0
  973. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement114.js +113 -0
  974. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement115.js +113 -0
  975. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement116.js +113 -0
  976. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement117.js +113 -0
  977. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement118.js +113 -0
  978. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement119.js +113 -0
  979. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement12.js +113 -0
  980. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement120.js +113 -0
  981. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement121.js +113 -0
  982. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement122.js +113 -0
  983. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement123.js +113 -0
  984. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement124.js +113 -0
  985. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement125.js +113 -0
  986. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement126.js +113 -0
  987. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement127.js +113 -0
  988. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement128.js +113 -0
  989. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement129.js +113 -0
  990. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement13.js +113 -0
  991. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement130.js +113 -0
  992. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement131.js +113 -0
  993. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement132.js +113 -0
  994. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement133.js +113 -0
  995. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement134.js +113 -0
  996. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement135.js +113 -0
  997. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement136.js +113 -0
  998. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement137.js +113 -0
  999. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement138.js +113 -0
  1000. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement139.js +113 -0
  1001. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement14.js +113 -0
  1002. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement140.js +113 -0
  1003. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement141.js +113 -0
  1004. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement142.js +113 -0
  1005. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement143.js +113 -0
  1006. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement144.js +113 -0
  1007. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement145.js +113 -0
  1008. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement15.js +113 -0
  1009. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement16.js +113 -0
  1010. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement17.js +113 -0
  1011. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement18.js +113 -0
  1012. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement19.js +113 -0
  1013. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement20.js +113 -0
  1014. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement21.js +113 -0
  1015. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement22.js +113 -0
  1016. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement23.js +113 -0
  1017. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement24.js +113 -0
  1018. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement25.js +113 -0
  1019. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement26.js +113 -0
  1020. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement27.js +113 -0
  1021. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement28.js +113 -0
  1022. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement29.js +113 -0
  1023. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement30.js +113 -0
  1024. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement31.js +113 -0
  1025. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement32.js +113 -0
  1026. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement33.js +113 -0
  1027. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement34.js +113 -0
  1028. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement35.js +113 -0
  1029. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement36.js +113 -0
  1030. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement37.js +113 -0
  1031. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement38.js +113 -0
  1032. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement39.js +113 -0
  1033. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement40.js +113 -0
  1034. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement41.js +113 -0
  1035. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement42.js +113 -0
  1036. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement43.js +113 -0
  1037. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement44.js +113 -0
  1038. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement45.js +113 -0
  1039. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement46.js +113 -0
  1040. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement47.js +113 -0
  1041. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement48.js +113 -0
  1042. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement49.js +113 -0
  1043. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement50.js +113 -0
  1044. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement51.js +113 -0
  1045. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement52.js +113 -0
  1046. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement53.js +113 -0
  1047. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement54.js +113 -0
  1048. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement55.js +113 -0
  1049. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement56.js +113 -0
  1050. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement57.js +113 -0
  1051. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement58.js +113 -0
  1052. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement59.js +113 -0
  1053. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement60.js +113 -0
  1054. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement61.js +113 -0
  1055. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement62.js +113 -0
  1056. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement63.js +113 -0
  1057. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement64.js +113 -0
  1058. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement65.js +113 -0
  1059. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement66.js +113 -0
  1060. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement67.js +113 -0
  1061. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement68.js +113 -0
  1062. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement69.js +113 -0
  1063. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement70.js +113 -0
  1064. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement71.js +113 -0
  1065. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement72.js +113 -0
  1066. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement73.js +113 -0
  1067. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement74.js +113 -0
  1068. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement75.js +113 -0
  1069. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement76.js +113 -0
  1070. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement77.js +113 -0
  1071. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement78.js +113 -0
  1072. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement79.js +113 -0
  1073. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement80.js +113 -0
  1074. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement81.js +113 -0
  1075. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement82.js +113 -0
  1076. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement83.js +113 -0
  1077. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement84.js +113 -0
  1078. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement85.js +113 -0
  1079. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement86.js +113 -0
  1080. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement87.js +113 -0
  1081. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement88.js +113 -0
  1082. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement89.js +113 -0
  1083. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement90.js +113 -0
  1084. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement91.js +113 -0
  1085. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement92.js +113 -0
  1086. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement93.js +113 -0
  1087. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement94.js +113 -0
  1088. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement95.js +113 -0
  1089. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement96.js +113 -0
  1090. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement97.js +113 -0
  1091. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement98.js +113 -0
  1092. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLElement99.js +113 -0
  1093. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLFieldSetElement01.js +116 -0
  1094. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLFieldSetElement02.js +114 -0
  1095. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLFormElement03.js +113 -0
  1096. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLFormElement04.js +114 -0
  1097. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLFormElement05.js +113 -0
  1098. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLFormElement06.js +113 -0
  1099. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLFormElement07.js +113 -0
  1100. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLFormElement08.js +113 -0
  1101. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLIFrameElement03.js +114 -0
  1102. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLIFrameElement07.js +115 -0
  1103. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLIFrameElement09.js +114 -0
  1104. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLIFrameElement10.js +114 -0
  1105. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLImageElement05.js +125 -0
  1106. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLImageElement06.js +128 -0
  1107. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLImageElement07.js +113 -0
  1108. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLImageElement09.js +113 -0
  1109. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLImageElement11.js +128 -0
  1110. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLImageElement12.js +127 -0
  1111. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement01.js +115 -0
  1112. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement02.js +115 -0
  1113. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement03.js +116 -0
  1114. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement04.js +115 -0
  1115. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement05.js +115 -0
  1116. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement07.js +115 -0
  1117. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement08.js +115 -0
  1118. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement09.js +114 -0
  1119. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement10.js +115 -0
  1120. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement11.js +115 -0
  1121. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement12.js +115 -0
  1122. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement13.js +130 -0
  1123. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement14.js +115 -0
  1124. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement15.js +115 -0
  1125. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement16.js +114 -0
  1126. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement18.js +115 -0
  1127. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLInputElement21.js +114 -0
  1128. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLIElement02.js +113 -0
  1129. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLabelElement01.js +109 -0
  1130. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLabelElement02.js +114 -0
  1131. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLabelElement03.js +114 -0
  1132. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLabelElement04.js +115 -0
  1133. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLinkElement01.js +113 -0
  1134. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLinkElement03.js +113 -0
  1135. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLinkElement04.js +113 -0
  1136. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLinkElement05.js +113 -0
  1137. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLinkElement06.js +113 -0
  1138. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLLinkElement08.js +113 -0
  1139. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLMapElement02.js +113 -0
  1140. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLMetaElement01.js +113 -0
  1141. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLMetaElement02.js +113 -0
  1142. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLMetaElement03.js +113 -0
  1143. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLMetaElement04.js +113 -0
  1144. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLModElement01.js +114 -0
  1145. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLModElement02.js +113 -0
  1146. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLModElement03.js +114 -0
  1147. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLModElement04.js +113 -0
  1148. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOListElement02.js +113 -0
  1149. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOListElement03.js +113 -0
  1150. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement01.js +116 -0
  1151. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement08.js +114 -0
  1152. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement10.js +115 -0
  1153. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement11.js +129 -0
  1154. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement13.js +115 -0
  1155. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement14.js +115 -0
  1156. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement15.js +114 -0
  1157. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement16.js +129 -0
  1158. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement17.js +114 -0
  1159. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement18.js +115 -0
  1160. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLObjectElement19.js +114 -0
  1161. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOptGroupElement01.js +114 -0
  1162. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOptGroupElement02.js +113 -0
  1163. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOptionElement01.js +117 -0
  1164. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOptionElement02.js +115 -0
  1165. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOptionElement03.js +115 -0
  1166. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOptionElement06.js +115 -0
  1167. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOptionElement07.js +115 -0
  1168. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLOptionElement08.js +115 -0
  1169. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLParamElement02.js +113 -0
  1170. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLQuoteElement01.js +114 -0
  1171. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLQuoteElement02.js +115 -0
  1172. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLScriptElement01.js +113 -0
  1173. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLScriptElement02.js +114 -0
  1174. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLScriptElement03.js +114 -0
  1175. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLScriptElement04.js +113 -0
  1176. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLScriptElement05.js +113 -0
  1177. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLScriptElement06.js +109 -0
  1178. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLScriptElement07.js +109 -0
  1179. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLSelectElement03.js +118 -0
  1180. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLSelectElement06.js +117 -0
  1181. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLSelectElement07.js +115 -0
  1182. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLSelectElement08.js +134 -0
  1183. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLSelectElement09.js +115 -0
  1184. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLSelectElement10.js +115 -0
  1185. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLSelectElement11.js +115 -0
  1186. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLSelectElement12.js +114 -0
  1187. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLSelectElement13.js +115 -0
  1188. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLStyleElement01.js +113 -0
  1189. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLStyleElement02.js +113 -0
  1190. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLStyleElement03.js +113 -0
  1191. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableCellElement15.js +115 -0
  1192. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableCellElement16.js +115 -0
  1193. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableCellElement23.js +115 -0
  1194. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableCellElement24.js +115 -0
  1195. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableCellElement25.js +114 -0
  1196. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableColElement07.js +115 -0
  1197. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableColElement08.js +115 -0
  1198. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableElement02.js +115 -0
  1199. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableElement04.js +115 -0
  1200. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableElement06.js +115 -0
  1201. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableElement07.js +132 -0
  1202. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableElement12.js +114 -0
  1203. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableRowElement05.js +117 -0
  1204. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableSectionElement13.js +117 -0
  1205. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableSectionElement14.js +117 -0
  1206. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTableSectionElement15.js +117 -0
  1207. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTextAreaElement02.js +117 -0
  1208. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTextAreaElement03.js +115 -0
  1209. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTextAreaElement04.js +115 -0
  1210. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTextAreaElement05.js +114 -0
  1211. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTextAreaElement06.js +115 -0
  1212. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTextAreaElement07.js +115 -0
  1213. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTextAreaElement08.js +114 -0
  1214. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTextAreaElement09.js +114 -0
  1215. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTextAreaElement10.js +115 -0
  1216. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/HTMLTitleElement01.js +113 -0
  1217. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/anchor01.js +112 -0
  1218. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/anchor04.js +112 -0
  1219. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/anchor05.js +112 -0
  1220. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/area01.js +111 -0
  1221. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/area02.js +111 -0
  1222. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/area03.js +111 -0
  1223. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/area04.js +111 -0
  1224. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/button01.js +111 -0
  1225. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/button02.js +115 -0
  1226. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/button03.js +115 -0
  1227. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/button04.js +115 -0
  1228. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/button05.js +112 -0
  1229. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/button06.js +112 -0
  1230. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/button07.js +112 -0
  1231. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/button08.js +112 -0
  1232. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/button09.js +112 -0
  1233. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/doc01.js +106 -0
  1234. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/.cvsignore +6 -0
  1235. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/HTMLDocument04.html +36 -0
  1236. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/anchor.html +12 -0
  1237. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/anchor2.html +13 -0
  1238. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/applet.html +12 -0
  1239. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/applet2.html +12 -0
  1240. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/area.html +14 -0
  1241. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/area2.html +15 -0
  1242. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/base.html +11 -0
  1243. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/base2.html +15 -0
  1244. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/basefont.html +12 -0
  1245. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/body.html +10 -0
  1246. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/br.html +12 -0
  1247. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/button.html +21 -0
  1248. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/collection.html +79 -0
  1249. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/directory.html +14 -0
  1250. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/div.html +10 -0
  1251. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/dl.html +15 -0
  1252. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/document.html +36 -0
  1253. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/element.html +81 -0
  1254. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/fieldset.html +23 -0
  1255. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/font.html +10 -0
  1256. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/form.html +17 -0
  1257. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/form2.html +17 -0
  1258. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/form3.html +17 -0
  1259. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/frame.html +14 -0
  1260. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/frameset.html +14 -0
  1261. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/head.html +11 -0
  1262. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/heading.html +16 -0
  1263. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/hr.html +11 -0
  1264. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/html.html +12 -0
  1265. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/iframe.html +10 -0
  1266. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/img.html +13 -0
  1267. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/input.html +60 -0
  1268. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/isindex.html +14 -0
  1269. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/label.html +21 -0
  1270. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/legend.html +22 -0
  1271. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/li.html +23 -0
  1272. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/link.html +15 -0
  1273. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/link2.html +15 -0
  1274. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/map.html +16 -0
  1275. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/menu.html +15 -0
  1276. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/meta.html +13 -0
  1277. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/mod.html +15 -0
  1278. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/object.html +18 -0
  1279. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/object2.html +17 -0
  1280. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/olist.html +32 -0
  1281. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/optgroup.html +25 -0
  1282. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/option.html +36 -0
  1283. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/paragraph.html +13 -0
  1284. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/param.html +14 -0
  1285. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/pre.html +17 -0
  1286. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/quote.html +16 -0
  1287. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/script.html +11 -0
  1288. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/select.html +44 -0
  1289. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/style.html +12 -0
  1290. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/table.html +78 -0
  1291. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/table1.html +12 -0
  1292. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/tablecaption.html +25 -0
  1293. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/tablecell.html +23 -0
  1294. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/tablecol.html +35 -0
  1295. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/tablerow.html +59 -0
  1296. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/tablesection.html +62 -0
  1297. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/textarea.html +26 -0
  1298. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/title.html +13 -0
  1299. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/files/ulist.html +36 -0
  1300. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/hasFeature01.js +96 -0
  1301. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLDocument02.js +111 -0
  1302. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLDocument03.js +111 -0
  1303. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLDocument04.js +110 -0
  1304. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLDocument07.js +113 -0
  1305. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLDocument09.js +114 -0
  1306. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLDocument10.js +113 -0
  1307. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLDocument12.js +109 -0
  1308. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLFormElement01.js +117 -0
  1309. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLFormElement09.js +107 -0
  1310. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLFormElement10.js +107 -0
  1311. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLInputElement19.js +107 -0
  1312. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLInputElement20.js +107 -0
  1313. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLInputElement22.js +108 -0
  1314. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement01.js +115 -0
  1315. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement02.js +115 -0
  1316. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement04.js +114 -0
  1317. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement05.js +114 -0
  1318. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement14.js +107 -0
  1319. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement15.js +107 -0
  1320. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement16.js +115 -0
  1321. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement17.js +115 -0
  1322. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement18.js +133 -0
  1323. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLSelectElement19.js +137 -0
  1324. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement08.js +129 -0
  1325. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement09.js +132 -0
  1326. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement19.js +123 -0
  1327. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement20.js +122 -0
  1328. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement21.js +139 -0
  1329. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement22.js +123 -0
  1330. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement23.js +122 -0
  1331. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement24.js +139 -0
  1332. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement25.js +121 -0
  1333. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement26.js +125 -0
  1334. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement27.js +119 -0
  1335. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement28.js +133 -0
  1336. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement29.js +137 -0
  1337. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement30.js +144 -0
  1338. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement31.js +138 -0
  1339. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement32.js +125 -0
  1340. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableElement33.js +124 -0
  1341. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTableRowElement01.js +117 -0
  1342. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTextAreaElement13.js +107 -0
  1343. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTextAreaElement14.js +107 -0
  1344. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/nyi/HTMLTextAreaElement15.js +107 -0
  1345. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/object01.js +112 -0
  1346. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/object06.js +113 -0
  1347. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/object07.js +111 -0
  1348. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/object08.js +126 -0
  1349. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/object10.js +112 -0
  1350. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/object11.js +112 -0
  1351. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/object12.js +111 -0
  1352. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/object13.js +126 -0
  1353. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/object14.js +111 -0
  1354. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAnchorElement02.js +114 -0
  1355. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAnchorElement03.js +114 -0
  1356. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAnchorElement06.js +113 -0
  1357. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAnchorElement08.js +113 -0
  1358. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAnchorElement09.js +113 -0
  1359. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement01.js +114 -0
  1360. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement02.js +114 -0
  1361. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement03.js +113 -0
  1362. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement04.js +113 -0
  1363. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement05.js +113 -0
  1364. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement06.js +113 -0
  1365. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement07.js +126 -0
  1366. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement08.js +113 -0
  1367. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement09.js +127 -0
  1368. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement10.js +113 -0
  1369. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLAppletElement11.js +114 -0
  1370. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBRElement01.js +113 -0
  1371. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBaseFontElement01.js +113 -0
  1372. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBaseFontElement02.js +113 -0
  1373. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBaseFontElement03.js +125 -0
  1374. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBodyElement01.js +113 -0
  1375. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBodyElement02.js +114 -0
  1376. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBodyElement03.js +113 -0
  1377. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBodyElement04.js +114 -0
  1378. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBodyElement05.js +113 -0
  1379. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLBodyElement06.js +114 -0
  1380. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection01.js +121 -0
  1381. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection02.js +121 -0
  1382. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection03.js +121 -0
  1383. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection04.js +133 -0
  1384. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection05.js +118 -0
  1385. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection06.js +122 -0
  1386. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection07.js +121 -0
  1387. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection08.js +121 -0
  1388. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection09.js +118 -0
  1389. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection10.js +123 -0
  1390. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection11.js +123 -0
  1391. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLCollection12.js +121 -0
  1392. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLDirectoryElement01.js +114 -0
  1393. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLDivElement01.js +113 -0
  1394. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLDlistElement01.js +114 -0
  1395. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLDocument08.js +114 -0
  1396. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLDocument11.js +114 -0
  1397. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLDocument13.js +109 -0
  1398. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLDocument14.js +110 -0
  1399. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFontElement01.js +113 -0
  1400. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFontElement02.js +114 -0
  1401. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFontElement03.js +113 -0
  1402. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFormElement02.js +115 -0
  1403. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameElement01.js +116 -0
  1404. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameElement02.js +115 -0
  1405. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameElement03.js +114 -0
  1406. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameElement04.js +114 -0
  1407. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameElement05.js +115 -0
  1408. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameElement06.js +115 -0
  1409. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameElement07.js +115 -0
  1410. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameElement08.js +114 -0
  1411. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameSetElement01.js +115 -0
  1412. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLFrameSetElement02.js +115 -0
  1413. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHRElement01.js +113 -0
  1414. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHRElement02.js +114 -0
  1415. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHRElement03.js +113 -0
  1416. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHRElement04.js +113 -0
  1417. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHeadElement01.js +113 -0
  1418. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHeadingElement01.js +113 -0
  1419. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHeadingElement02.js +113 -0
  1420. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHeadingElement03.js +113 -0
  1421. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHeadingElement04.js +113 -0
  1422. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHeadingElement05.js +113 -0
  1423. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHeadingElement06.js +113 -0
  1424. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLHtmlElement01.js +124 -0
  1425. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLIFrameElement01.js +115 -0
  1426. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLIFrameElement02.js +116 -0
  1427. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLIFrameElement04.js +115 -0
  1428. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLIFrameElement05.js +114 -0
  1429. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLIFrameElement06.js +114 -0
  1430. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLIFrameElement08.js +115 -0
  1431. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLImageElement01.js +113 -0
  1432. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLImageElement02.js +114 -0
  1433. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLImageElement03.js +114 -0
  1434. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLImageElement04.js +113 -0
  1435. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLImageElement08.js +114 -0
  1436. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLImageElement10.js +113 -0
  1437. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLImageElement14.js +115 -0
  1438. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLInputElement06.js +115 -0
  1439. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLInputElement17.js +114 -0
  1440. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLIsIndexElement01.js +122 -0
  1441. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLIsIndexElement02.js +119 -0
  1442. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLIsIndexElement03.js +114 -0
  1443. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLLIElement01.js +113 -0
  1444. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLLegendElement01.js +117 -0
  1445. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLLegendElement02.js +114 -0
  1446. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLLegendElement03.js +114 -0
  1447. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLLegendElement04.js +113 -0
  1448. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLLinkElement02.js +114 -0
  1449. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLLinkElement07.js +113 -0
  1450. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLLinkElement09.js +113 -0
  1451. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLMapElement01.js +116 -0
  1452. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLMenuElement01.js +114 -0
  1453. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLOListElement01.js +114 -0
  1454. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLObjectElement02.js +114 -0
  1455. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLObjectElement03.js +115 -0
  1456. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLObjectElement04.js +114 -0
  1457. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLObjectElement05.js +114 -0
  1458. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLObjectElement06.js +115 -0
  1459. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLObjectElement07.js +115 -0
  1460. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLObjectElement09.js +115 -0
  1461. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLObjectElement12.js +115 -0
  1462. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLOptionElement04.js +114 -0
  1463. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLOptionElement05.js +115 -0
  1464. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLOptionElement09.js +114 -0
  1465. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLParagraphElement01.js +113 -0
  1466. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLParamElement01.js +113 -0
  1467. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLParamElement03.js +114 -0
  1468. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLParamElement04.js +114 -0
  1469. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLPreElement01.js +113 -0
  1470. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCaptionElement01.js +114 -0
  1471. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement01.js +114 -0
  1472. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement02.js +114 -0
  1473. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement03.js +114 -0
  1474. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement04.js +114 -0
  1475. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement05.js +115 -0
  1476. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement06.js +115 -0
  1477. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement07.js +115 -0
  1478. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement08.js +115 -0
  1479. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement09.js +115 -0
  1480. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement10.js +115 -0
  1481. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement11.js +115 -0
  1482. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement12.js +115 -0
  1483. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement13.js +115 -0
  1484. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement14.js +115 -0
  1485. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement17.js +115 -0
  1486. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement18.js +115 -0
  1487. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement19.js +114 -0
  1488. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement20.js +114 -0
  1489. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement21.js +114 -0
  1490. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement22.js +114 -0
  1491. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement26.js +114 -0
  1492. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement27.js +114 -0
  1493. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement28.js +114 -0
  1494. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement29.js +114 -0
  1495. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableCellElement30.js +114 -0
  1496. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement01.js +115 -0
  1497. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement02.js +115 -0
  1498. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement03.js +115 -0
  1499. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement04.js +115 -0
  1500. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement05.js +114 -0
  1501. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement06.js +114 -0
  1502. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement09.js +115 -0
  1503. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement10.js +115 -0
  1504. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement11.js +114 -0
  1505. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableColElement12.js +114 -0
  1506. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement01.js +117 -0
  1507. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement03.js +117 -0
  1508. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement05.js +117 -0
  1509. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement10.js +115 -0
  1510. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement11.js +114 -0
  1511. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement13.js +115 -0
  1512. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement14.js +115 -0
  1513. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement15.js +114 -0
  1514. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement16.js +114 -0
  1515. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement17.js +115 -0
  1516. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableElement18.js +114 -0
  1517. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement02.js +115 -0
  1518. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement03.js +115 -0
  1519. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement04.js +115 -0
  1520. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement06.js +115 -0
  1521. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement07.js +114 -0
  1522. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement08.js +114 -0
  1523. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement09.js +114 -0
  1524. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement10.js +115 -0
  1525. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement11.js +144 -0
  1526. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement12.js +143 -0
  1527. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement13.js +144 -0
  1528. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableRowElement14.js +144 -0
  1529. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement01.js +115 -0
  1530. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement02.js +115 -0
  1531. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement03.js +115 -0
  1532. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement04.js +115 -0
  1533. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement05.js +115 -0
  1534. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement06.js +115 -0
  1535. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement07.js +114 -0
  1536. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement08.js +114 -0
  1537. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement09.js +114 -0
  1538. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement10.js +115 -0
  1539. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement11.js +115 -0
  1540. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement12.js +115 -0
  1541. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement16.js +126 -0
  1542. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement17.js +126 -0
  1543. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement18.js +126 -0
  1544. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement19.js +127 -0
  1545. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement20.js +127 -0
  1546. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement21.js +128 -0
  1547. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement22.js +125 -0
  1548. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement23.js +125 -0
  1549. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTableSectionElement24.js +125 -0
  1550. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTextAreaElement01.js +115 -0
  1551. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTextAreaElement11.js +115 -0
  1552. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLTextAreaElement12.js +115 -0
  1553. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLUListElement01.js +114 -0
  1554. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/HTMLUListElement02.js +113 -0
  1555. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/anchor02.js +112 -0
  1556. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/anchor03.js +112 -0
  1557. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/anchor06.js +112 -0
  1558. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/basefont01.js +111 -0
  1559. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/body01.js +112 -0
  1560. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/dlist01.js +111 -0
  1561. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/object02.js +112 -0
  1562. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/object03.js +112 -0
  1563. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/object04.js +112 -0
  1564. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/object05.js +112 -0
  1565. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/object09.js +112 -0
  1566. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/object15.js +112 -0
  1567. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table02.js +115 -0
  1568. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table03.js +115 -0
  1569. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table04.js +115 -0
  1570. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table06.js +115 -0
  1571. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table07.js +118 -0
  1572. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table08.js +115 -0
  1573. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table09.js +115 -0
  1574. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table10.js +115 -0
  1575. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table12.js +115 -0
  1576. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table15.js +118 -0
  1577. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table17.js +115 -0
  1578. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table18.js +112 -0
  1579. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table19.js +113 -0
  1580. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table20.js +112 -0
  1581. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table21.js +112 -0
  1582. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table22.js +112 -0
  1583. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table23.js +112 -0
  1584. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table24.js +112 -0
  1585. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table26.js +111 -0
  1586. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table27.js +112 -0
  1587. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table29.js +112 -0
  1588. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table30.js +112 -0
  1589. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table31.js +112 -0
  1590. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table32.js +112 -0
  1591. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table33.js +112 -0
  1592. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table35.js +112 -0
  1593. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table36.js +112 -0
  1594. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table37.js +111 -0
  1595. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table38.js +112 -0
  1596. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table39.js +112 -0
  1597. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table40.js +112 -0
  1598. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table41.js +112 -0
  1599. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table42.js +112 -0
  1600. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table43.js +112 -0
  1601. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table44.js +112 -0
  1602. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table45.js +112 -0
  1603. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table46.js +112 -0
  1604. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table47.js +112 -0
  1605. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table48.js +112 -0
  1606. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table49.js +112 -0
  1607. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table50.js +112 -0
  1608. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table52.js +112 -0
  1609. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/obsolete/table53.js +112 -0
  1610. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/table01.js +112 -0
  1611. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/table25.js +112 -0
  1612. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/table28.js +112 -0
  1613. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/table34.js +112 -0
  1614. package/node_modules/@mixmark-io/domino/test/w3c/level1/html/table51.js +112 -0
  1615. package/node_modules/@mixmark-io/domino/test/web-platform-blocklist.json +4688 -0
  1616. package/node_modules/@mixmark-io/domino/test/web-platform-tests.js +353 -0
  1617. package/node_modules/@mixmark-io/domino/test/xss.js +361 -0
  1618. package/node_modules/@mozilla/readability/.eslintrc.js +213 -0
  1619. package/node_modules/@mozilla/readability/CHANGELOG.md +79 -0
  1620. package/node_modules/@mozilla/readability/CODE_OF_CONDUCT.md +15 -0
  1621. package/node_modules/@mozilla/readability/CONTRIBUTING.md +74 -0
  1622. package/node_modules/@mozilla/readability/JSDOMParser.js +1197 -0
  1623. package/node_modules/@mozilla/readability/LICENSE.md +13 -0
  1624. package/node_modules/@mozilla/readability/README.md +127 -0
  1625. package/node_modules/@mozilla/readability/Readability-readerable.js +108 -0
  1626. package/node_modules/@mozilla/readability/Readability.js +2314 -0
  1627. package/node_modules/@mozilla/readability/SECURITY.md +8 -0
  1628. package/node_modules/@mozilla/readability/index.d.ts +64 -0
  1629. package/node_modules/@mozilla/readability/index.js +8 -0
  1630. package/node_modules/@mozilla/readability/package.json +37 -0
  1631. package/node_modules/boolbase/README.md +10 -0
  1632. package/node_modules/boolbase/index.js +8 -0
  1633. package/node_modules/boolbase/package.json +23 -0
  1634. package/node_modules/css-select/LICENSE +11 -0
  1635. package/node_modules/css-select/README.md +264 -0
  1636. package/node_modules/css-select/lib/attributes.d.ts +7 -0
  1637. package/node_modules/css-select/lib/attributes.d.ts.map +1 -0
  1638. package/node_modules/css-select/lib/attributes.js +236 -0
  1639. package/node_modules/css-select/lib/attributes.js.map +1 -0
  1640. package/node_modules/css-select/lib/compile.d.ts +13 -0
  1641. package/node_modules/css-select/lib/compile.d.ts.map +1 -0
  1642. package/node_modules/css-select/lib/compile.js +151 -0
  1643. package/node_modules/css-select/lib/compile.js.map +1 -0
  1644. package/node_modules/css-select/lib/esm/attributes.d.ts +7 -0
  1645. package/node_modules/css-select/lib/esm/attributes.d.ts.map +1 -0
  1646. package/node_modules/css-select/lib/esm/attributes.js +222 -0
  1647. package/node_modules/css-select/lib/esm/attributes.js.map +1 -0
  1648. package/node_modules/css-select/lib/esm/compile.d.ts +13 -0
  1649. package/node_modules/css-select/lib/esm/compile.d.ts.map +1 -0
  1650. package/node_modules/css-select/lib/esm/compile.js +115 -0
  1651. package/node_modules/css-select/lib/esm/compile.js.map +1 -0
  1652. package/node_modules/css-select/lib/esm/general.d.ts +3 -0
  1653. package/node_modules/css-select/lib/esm/general.d.ts.map +1 -0
  1654. package/node_modules/css-select/lib/esm/general.js +144 -0
  1655. package/node_modules/css-select/lib/esm/general.js.map +1 -0
  1656. package/node_modules/css-select/lib/esm/helpers/cache.d.ts +12 -0
  1657. package/node_modules/css-select/lib/esm/helpers/cache.d.ts.map +1 -0
  1658. package/node_modules/css-select/lib/esm/helpers/cache.js +41 -0
  1659. package/node_modules/css-select/lib/esm/helpers/cache.js.map +1 -0
  1660. package/node_modules/css-select/lib/esm/helpers/querying.d.ts +24 -0
  1661. package/node_modules/css-select/lib/esm/helpers/querying.d.ts.map +1 -0
  1662. package/node_modules/css-select/lib/esm/helpers/querying.js +105 -0
  1663. package/node_modules/css-select/lib/esm/helpers/querying.js.map +1 -0
  1664. package/node_modules/css-select/lib/esm/helpers/selectors.d.ts +20 -0
  1665. package/node_modules/css-select/lib/esm/helpers/selectors.d.ts.map +1 -0
  1666. package/node_modules/css-select/lib/esm/helpers/selectors.js +103 -0
  1667. package/node_modules/css-select/lib/esm/helpers/selectors.js.map +1 -0
  1668. package/node_modules/css-select/lib/esm/index.d.ts +50 -0
  1669. package/node_modules/css-select/lib/esm/index.d.ts.map +1 -0
  1670. package/node_modules/css-select/lib/esm/index.js +115 -0
  1671. package/node_modules/css-select/lib/esm/index.js.map +1 -0
  1672. package/node_modules/css-select/lib/esm/package.json +1 -0
  1673. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts +5 -0
  1674. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts.map +1 -0
  1675. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js +35 -0
  1676. package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js.map +1 -0
  1677. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts +4 -0
  1678. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts.map +1 -0
  1679. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js +143 -0
  1680. package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js.map +1 -0
  1681. package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts +8 -0
  1682. package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts.map +1 -0
  1683. package/node_modules/css-select/lib/esm/pseudo-selectors/index.js +40 -0
  1684. package/node_modules/css-select/lib/esm/pseudo-selectors/index.js.map +1 -0
  1685. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts +6 -0
  1686. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts.map +1 -0
  1687. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js +79 -0
  1688. package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js.map +1 -0
  1689. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts +9 -0
  1690. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts.map +1 -0
  1691. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js +94 -0
  1692. package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js.map +1 -0
  1693. package/node_modules/css-select/lib/esm/sort.d.ts +12 -0
  1694. package/node_modules/css-select/lib/esm/sort.d.ts.map +1 -0
  1695. package/node_modules/css-select/lib/esm/sort.js +79 -0
  1696. package/node_modules/css-select/lib/esm/sort.js.map +1 -0
  1697. package/node_modules/css-select/lib/esm/types.d.ts +167 -0
  1698. package/node_modules/css-select/lib/esm/types.d.ts.map +1 -0
  1699. package/node_modules/css-select/lib/esm/types.js +2 -0
  1700. package/node_modules/css-select/lib/esm/types.js.map +1 -0
  1701. package/node_modules/css-select/lib/general.d.ts +3 -0
  1702. package/node_modules/css-select/lib/general.d.ts.map +1 -0
  1703. package/node_modules/css-select/lib/general.js +148 -0
  1704. package/node_modules/css-select/lib/general.js.map +1 -0
  1705. package/node_modules/css-select/lib/helpers/cache.d.ts +12 -0
  1706. package/node_modules/css-select/lib/helpers/cache.d.ts.map +1 -0
  1707. package/node_modules/css-select/lib/helpers/cache.js +45 -0
  1708. package/node_modules/css-select/lib/helpers/cache.js.map +1 -0
  1709. package/node_modules/css-select/lib/helpers/querying.d.ts +24 -0
  1710. package/node_modules/css-select/lib/helpers/querying.d.ts.map +1 -0
  1711. package/node_modules/css-select/lib/helpers/querying.js +111 -0
  1712. package/node_modules/css-select/lib/helpers/querying.js.map +1 -0
  1713. package/node_modules/css-select/lib/helpers/selectors.d.ts +20 -0
  1714. package/node_modules/css-select/lib/helpers/selectors.d.ts.map +1 -0
  1715. package/node_modules/css-select/lib/helpers/selectors.js +111 -0
  1716. package/node_modules/css-select/lib/helpers/selectors.js.map +1 -0
  1717. package/node_modules/css-select/lib/index.d.ts +50 -0
  1718. package/node_modules/css-select/lib/index.d.ts.map +1 -0
  1719. package/node_modules/css-select/lib/index.js +154 -0
  1720. package/node_modules/css-select/lib/index.js.map +1 -0
  1721. package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts +5 -0
  1722. package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts.map +1 -0
  1723. package/node_modules/css-select/lib/pseudo-selectors/aliases.js +34 -0
  1724. package/node_modules/css-select/lib/pseudo-selectors/aliases.js.map +1 -0
  1725. package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts +4 -0
  1726. package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts.map +1 -0
  1727. package/node_modules/css-select/lib/pseudo-selectors/filters.js +157 -0
  1728. package/node_modules/css-select/lib/pseudo-selectors/filters.js.map +1 -0
  1729. package/node_modules/css-select/lib/pseudo-selectors/index.d.ts +8 -0
  1730. package/node_modules/css-select/lib/pseudo-selectors/index.d.ts.map +1 -0
  1731. package/node_modules/css-select/lib/pseudo-selectors/index.js +46 -0
  1732. package/node_modules/css-select/lib/pseudo-selectors/index.js.map +1 -0
  1733. package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts +6 -0
  1734. package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts.map +1 -0
  1735. package/node_modules/css-select/lib/pseudo-selectors/pseudos.js +93 -0
  1736. package/node_modules/css-select/lib/pseudo-selectors/pseudos.js.map +1 -0
  1737. package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts +9 -0
  1738. package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts.map +1 -0
  1739. package/node_modules/css-select/lib/pseudo-selectors/subselects.js +112 -0
  1740. package/node_modules/css-select/lib/pseudo-selectors/subselects.js.map +1 -0
  1741. package/node_modules/css-select/lib/sort.d.ts +12 -0
  1742. package/node_modules/css-select/lib/sort.d.ts.map +1 -0
  1743. package/node_modules/css-select/lib/sort.js +84 -0
  1744. package/node_modules/css-select/lib/sort.js.map +1 -0
  1745. package/node_modules/css-select/lib/types.d.ts +167 -0
  1746. package/node_modules/css-select/lib/types.d.ts.map +1 -0
  1747. package/node_modules/css-select/lib/types.js +3 -0
  1748. package/node_modules/css-select/lib/types.js.map +1 -0
  1749. package/node_modules/css-select/package.json +81 -0
  1750. package/node_modules/css-what/LICENSE +11 -0
  1751. package/node_modules/css-what/lib/commonjs/index.d.ts +4 -0
  1752. package/node_modules/css-what/lib/commonjs/index.d.ts.map +1 -0
  1753. package/node_modules/css-what/lib/commonjs/index.js +23 -0
  1754. package/node_modules/css-what/lib/commonjs/parse.d.ts +20 -0
  1755. package/node_modules/css-what/lib/commonjs/parse.d.ts.map +1 -0
  1756. package/node_modules/css-what/lib/commonjs/parse.js +425 -0
  1757. package/node_modules/css-what/lib/commonjs/stringify.d.ts +8 -0
  1758. package/node_modules/css-what/lib/commonjs/stringify.d.ts.map +1 -0
  1759. package/node_modules/css-what/lib/commonjs/stringify.js +138 -0
  1760. package/node_modules/css-what/lib/commonjs/types.d.ts +70 -0
  1761. package/node_modules/css-what/lib/commonjs/types.d.ts.map +1 -0
  1762. package/node_modules/css-what/lib/commonjs/types.js +42 -0
  1763. package/node_modules/css-what/lib/es/index.d.ts +4 -0
  1764. package/node_modules/css-what/lib/es/index.d.ts.map +1 -0
  1765. package/node_modules/css-what/lib/es/index.js +3 -0
  1766. package/node_modules/css-what/lib/es/parse.d.ts +20 -0
  1767. package/node_modules/css-what/lib/es/parse.d.ts.map +1 -0
  1768. package/node_modules/css-what/lib/es/parse.js +420 -0
  1769. package/node_modules/css-what/lib/es/stringify.d.ts +8 -0
  1770. package/node_modules/css-what/lib/es/stringify.d.ts.map +1 -0
  1771. package/node_modules/css-what/lib/es/stringify.js +126 -0
  1772. package/node_modules/css-what/lib/es/types.d.ts +70 -0
  1773. package/node_modules/css-what/lib/es/types.d.ts.map +1 -0
  1774. package/node_modules/css-what/lib/es/types.js +39 -0
  1775. package/node_modules/css-what/package.json +59 -0
  1776. package/node_modules/css-what/readme.md +69 -0
  1777. package/node_modules/cssom/LICENSE.txt +20 -0
  1778. package/node_modules/cssom/README.mdown +67 -0
  1779. package/node_modules/cssom/lib/CSSConditionRule.js +25 -0
  1780. package/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
  1781. package/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
  1782. package/node_modules/cssom/lib/CSSGroupingRule.js +68 -0
  1783. package/node_modules/cssom/lib/CSSHostRule.js +37 -0
  1784. package/node_modules/cssom/lib/CSSImportRule.js +132 -0
  1785. package/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
  1786. package/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
  1787. package/node_modules/cssom/lib/CSSMediaRule.js +53 -0
  1788. package/node_modules/cssom/lib/CSSOM.js +3 -0
  1789. package/node_modules/cssom/lib/CSSRule.js +43 -0
  1790. package/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
  1791. package/node_modules/cssom/lib/CSSStyleRule.js +190 -0
  1792. package/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
  1793. package/node_modules/cssom/lib/CSSSupportsRule.js +36 -0
  1794. package/node_modules/cssom/lib/CSSValue.js +43 -0
  1795. package/node_modules/cssom/lib/CSSValueExpression.js +344 -0
  1796. package/node_modules/cssom/lib/MatcherList.js +62 -0
  1797. package/node_modules/cssom/lib/MediaList.js +61 -0
  1798. package/node_modules/cssom/lib/StyleSheet.js +17 -0
  1799. package/node_modules/cssom/lib/clone.js +74 -0
  1800. package/node_modules/cssom/lib/index.js +23 -0
  1801. package/node_modules/cssom/lib/parse.js +465 -0
  1802. package/node_modules/cssom/package.json +18 -0
  1803. package/node_modules/dom-serializer/LICENSE +11 -0
  1804. package/node_modules/dom-serializer/README.md +109 -0
  1805. package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts +3 -0
  1806. package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map +1 -0
  1807. package/node_modules/dom-serializer/lib/esm/foreignNames.js +100 -0
  1808. package/node_modules/dom-serializer/lib/esm/index.d.ts +52 -0
  1809. package/node_modules/dom-serializer/lib/esm/index.d.ts.map +1 -0
  1810. package/node_modules/dom-serializer/lib/esm/index.js +190 -0
  1811. package/node_modules/dom-serializer/lib/esm/package.json +1 -0
  1812. package/node_modules/dom-serializer/lib/foreignNames.d.ts +3 -0
  1813. package/node_modules/dom-serializer/lib/foreignNames.d.ts.map +1 -0
  1814. package/node_modules/dom-serializer/lib/foreignNames.js +103 -0
  1815. package/node_modules/dom-serializer/lib/index.d.ts +52 -0
  1816. package/node_modules/dom-serializer/lib/index.d.ts.map +1 -0
  1817. package/node_modules/dom-serializer/lib/index.js +229 -0
  1818. package/node_modules/dom-serializer/package.json +69 -0
  1819. package/node_modules/domelementtype/LICENSE +11 -0
  1820. package/node_modules/domelementtype/lib/esm/index.d.ts +48 -0
  1821. package/node_modules/domelementtype/lib/esm/index.d.ts.map +1 -0
  1822. package/node_modules/domelementtype/lib/esm/index.js +51 -0
  1823. package/node_modules/domelementtype/lib/esm/package.json +1 -0
  1824. package/node_modules/domelementtype/lib/index.d.ts +48 -0
  1825. package/node_modules/domelementtype/lib/index.d.ts.map +1 -0
  1826. package/node_modules/domelementtype/lib/index.js +55 -0
  1827. package/node_modules/domelementtype/package.json +54 -0
  1828. package/node_modules/domelementtype/readme.md +1 -0
  1829. package/node_modules/domhandler/LICENSE +11 -0
  1830. package/node_modules/domhandler/lib/esm/index.d.ts +76 -0
  1831. package/node_modules/domhandler/lib/esm/index.d.ts.map +1 -0
  1832. package/node_modules/domhandler/lib/esm/index.js +146 -0
  1833. package/node_modules/domhandler/lib/esm/node.d.ts +245 -0
  1834. package/node_modules/domhandler/lib/esm/node.d.ts.map +1 -0
  1835. package/node_modules/domhandler/lib/esm/node.js +338 -0
  1836. package/node_modules/domhandler/lib/esm/package.json +1 -0
  1837. package/node_modules/domhandler/lib/index.d.ts +76 -0
  1838. package/node_modules/domhandler/lib/index.d.ts.map +1 -0
  1839. package/node_modules/domhandler/lib/index.js +165 -0
  1840. package/node_modules/domhandler/lib/node.d.ts +245 -0
  1841. package/node_modules/domhandler/lib/node.d.ts.map +1 -0
  1842. package/node_modules/domhandler/lib/node.js +474 -0
  1843. package/node_modules/domhandler/package.json +73 -0
  1844. package/node_modules/domhandler/readme.md +92 -0
  1845. package/node_modules/domutils/LICENSE +11 -0
  1846. package/node_modules/domutils/lib/esm/feeds.d.ts +71 -0
  1847. package/node_modules/domutils/lib/esm/feeds.d.ts.map +1 -0
  1848. package/node_modules/domutils/lib/esm/feeds.js +183 -0
  1849. package/node_modules/domutils/lib/esm/feeds.js.map +1 -0
  1850. package/node_modules/domutils/lib/esm/helpers.d.ts +59 -0
  1851. package/node_modules/domutils/lib/esm/helpers.d.ts.map +1 -0
  1852. package/node_modules/domutils/lib/esm/helpers.js +136 -0
  1853. package/node_modules/domutils/lib/esm/helpers.js.map +1 -0
  1854. package/node_modules/domutils/lib/esm/index.d.ts +10 -0
  1855. package/node_modules/domutils/lib/esm/index.d.ts.map +1 -0
  1856. package/node_modules/domutils/lib/esm/index.js +10 -0
  1857. package/node_modules/domutils/lib/esm/index.js.map +1 -0
  1858. package/node_modules/domutils/lib/esm/legacy.d.ts +79 -0
  1859. package/node_modules/domutils/lib/esm/legacy.d.ts.map +1 -0
  1860. package/node_modules/domutils/lib/esm/legacy.js +152 -0
  1861. package/node_modules/domutils/lib/esm/legacy.js.map +1 -0
  1862. package/node_modules/domutils/lib/esm/manipulation.d.ts +49 -0
  1863. package/node_modules/domutils/lib/esm/manipulation.d.ts.map +1 -0
  1864. package/node_modules/domutils/lib/esm/manipulation.js +134 -0
  1865. package/node_modules/domutils/lib/esm/manipulation.js.map +1 -0
  1866. package/node_modules/domutils/lib/esm/package.json +1 -0
  1867. package/node_modules/domutils/lib/esm/querying.d.ts +64 -0
  1868. package/node_modules/domutils/lib/esm/querying.d.ts.map +1 -0
  1869. package/node_modules/domutils/lib/esm/querying.js +142 -0
  1870. package/node_modules/domutils/lib/esm/querying.js.map +1 -0
  1871. package/node_modules/domutils/lib/esm/stringify.d.ts +46 -0
  1872. package/node_modules/domutils/lib/esm/stringify.d.ts.map +1 -0
  1873. package/node_modules/domutils/lib/esm/stringify.js +81 -0
  1874. package/node_modules/domutils/lib/esm/stringify.js.map +1 -0
  1875. package/node_modules/domutils/lib/esm/traversal.d.ts +67 -0
  1876. package/node_modules/domutils/lib/esm/traversal.d.ts.map +1 -0
  1877. package/node_modules/domutils/lib/esm/traversal.js +112 -0
  1878. package/node_modules/domutils/lib/esm/traversal.js.map +1 -0
  1879. package/node_modules/domutils/lib/feeds.d.ts +71 -0
  1880. package/node_modules/domutils/lib/feeds.d.ts.map +1 -0
  1881. package/node_modules/domutils/lib/feeds.js +190 -0
  1882. package/node_modules/domutils/lib/feeds.js.map +1 -0
  1883. package/node_modules/domutils/lib/helpers.d.ts +59 -0
  1884. package/node_modules/domutils/lib/helpers.d.ts.map +1 -0
  1885. package/node_modules/domutils/lib/helpers.js +142 -0
  1886. package/node_modules/domutils/lib/helpers.js.map +1 -0
  1887. package/node_modules/domutils/lib/index.d.ts +10 -0
  1888. package/node_modules/domutils/lib/index.d.ts.map +1 -0
  1889. package/node_modules/domutils/lib/index.js +33 -0
  1890. package/node_modules/domutils/lib/index.js.map +1 -0
  1891. package/node_modules/domutils/lib/legacy.d.ts +79 -0
  1892. package/node_modules/domutils/lib/legacy.d.ts.map +1 -0
  1893. package/node_modules/domutils/lib/legacy.js +168 -0
  1894. package/node_modules/domutils/lib/legacy.js.map +1 -0
  1895. package/node_modules/domutils/lib/manipulation.d.ts +49 -0
  1896. package/node_modules/domutils/lib/manipulation.d.ts.map +1 -0
  1897. package/node_modules/domutils/lib/manipulation.js +142 -0
  1898. package/node_modules/domutils/lib/manipulation.js.map +1 -0
  1899. package/node_modules/domutils/lib/querying.d.ts +64 -0
  1900. package/node_modules/domutils/lib/querying.d.ts.map +1 -0
  1901. package/node_modules/domutils/lib/querying.js +155 -0
  1902. package/node_modules/domutils/lib/querying.js.map +1 -0
  1903. package/node_modules/domutils/lib/stringify.d.ts +46 -0
  1904. package/node_modules/domutils/lib/stringify.d.ts.map +1 -0
  1905. package/node_modules/domutils/lib/stringify.js +91 -0
  1906. package/node_modules/domutils/lib/stringify.js.map +1 -0
  1907. package/node_modules/domutils/lib/traversal.d.ts +67 -0
  1908. package/node_modules/domutils/lib/traversal.d.ts.map +1 -0
  1909. package/node_modules/domutils/lib/traversal.js +125 -0
  1910. package/node_modules/domutils/lib/traversal.js.map +1 -0
  1911. package/node_modules/domutils/package.json +79 -0
  1912. package/node_modules/domutils/readme.md +31 -0
  1913. package/node_modules/entities/LICENSE +11 -0
  1914. package/node_modules/entities/lib/decode.d.ts +211 -0
  1915. package/node_modules/entities/lib/decode.d.ts.map +1 -0
  1916. package/node_modules/entities/lib/decode.js +536 -0
  1917. package/node_modules/entities/lib/decode.js.map +1 -0
  1918. package/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
  1919. package/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
  1920. package/node_modules/entities/lib/decode_codepoint.js +76 -0
  1921. package/node_modules/entities/lib/decode_codepoint.js.map +1 -0
  1922. package/node_modules/entities/lib/encode.d.ts +22 -0
  1923. package/node_modules/entities/lib/encode.d.ts.map +1 -0
  1924. package/node_modules/entities/lib/encode.js +77 -0
  1925. package/node_modules/entities/lib/encode.js.map +1 -0
  1926. package/node_modules/entities/lib/escape.d.ts +43 -0
  1927. package/node_modules/entities/lib/escape.d.ts.map +1 -0
  1928. package/node_modules/entities/lib/escape.js +122 -0
  1929. package/node_modules/entities/lib/escape.js.map +1 -0
  1930. package/node_modules/entities/lib/esm/decode.d.ts +211 -0
  1931. package/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
  1932. package/node_modules/entities/lib/esm/decode.js +496 -0
  1933. package/node_modules/entities/lib/esm/decode.js.map +1 -0
  1934. package/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
  1935. package/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
  1936. package/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
  1937. package/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
  1938. package/node_modules/entities/lib/esm/encode.d.ts +22 -0
  1939. package/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
  1940. package/node_modules/entities/lib/esm/encode.js +69 -0
  1941. package/node_modules/entities/lib/esm/encode.js.map +1 -0
  1942. package/node_modules/entities/lib/esm/escape.d.ts +43 -0
  1943. package/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
  1944. package/node_modules/entities/lib/esm/escape.js +116 -0
  1945. package/node_modules/entities/lib/esm/escape.js.map +1 -0
  1946. package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
  1947. package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
  1948. package/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  1949. package/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
  1950. package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
  1951. package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
  1952. package/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  1953. package/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
  1954. package/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
  1955. package/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
  1956. package/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
  1957. package/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
  1958. package/node_modules/entities/lib/esm/index.d.ts +96 -0
  1959. package/node_modules/entities/lib/esm/index.d.ts.map +1 -0
  1960. package/node_modules/entities/lib/esm/index.js +99 -0
  1961. package/node_modules/entities/lib/esm/index.js.map +1 -0
  1962. package/node_modules/entities/lib/esm/package.json +1 -0
  1963. package/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
  1964. package/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
  1965. package/node_modules/entities/lib/generated/decode-data-html.js +9 -0
  1966. package/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
  1967. package/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
  1968. package/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
  1969. package/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
  1970. package/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
  1971. package/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
  1972. package/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
  1973. package/node_modules/entities/lib/generated/encode-html.js +12 -0
  1974. package/node_modules/entities/lib/generated/encode-html.js.map +1 -0
  1975. package/node_modules/entities/lib/index.d.ts +96 -0
  1976. package/node_modules/entities/lib/index.d.ts.map +1 -0
  1977. package/node_modules/entities/lib/index.js +126 -0
  1978. package/node_modules/entities/lib/index.js.map +1 -0
  1979. package/node_modules/entities/package.json +90 -0
  1980. package/node_modules/entities/readme.md +122 -0
  1981. package/node_modules/html-escaper/LICENSE.txt +19 -0
  1982. package/node_modules/html-escaper/README.md +110 -0
  1983. package/node_modules/html-escaper/cjs/index.js +74 -0
  1984. package/node_modules/html-escaper/cjs/package.json +1 -0
  1985. package/node_modules/html-escaper/esm/index.js +71 -0
  1986. package/node_modules/html-escaper/index.js +81 -0
  1987. package/node_modules/html-escaper/min.js +1 -0
  1988. package/node_modules/html-escaper/package.json +47 -0
  1989. package/node_modules/html-escaper/test/index.js +23 -0
  1990. package/node_modules/html-escaper/test/package.json +1 -0
  1991. package/node_modules/htmlparser2/LICENSE +18 -0
  1992. package/node_modules/htmlparser2/README.md +171 -0
  1993. package/node_modules/htmlparser2/lib/Parser.d.ts +198 -0
  1994. package/node_modules/htmlparser2/lib/Parser.d.ts.map +1 -0
  1995. package/node_modules/htmlparser2/lib/Parser.js +519 -0
  1996. package/node_modules/htmlparser2/lib/Parser.js.map +1 -0
  1997. package/node_modules/htmlparser2/lib/Tokenizer.d.ts +126 -0
  1998. package/node_modules/htmlparser2/lib/Tokenizer.d.ts.map +1 -0
  1999. package/node_modules/htmlparser2/lib/Tokenizer.js +791 -0
  2000. package/node_modules/htmlparser2/lib/Tokenizer.js.map +1 -0
  2001. package/node_modules/htmlparser2/lib/WritableStream.d.ts +17 -0
  2002. package/node_modules/htmlparser2/lib/WritableStream.d.ts.map +1 -0
  2003. package/node_modules/htmlparser2/lib/WritableStream.js +54 -0
  2004. package/node_modules/htmlparser2/lib/WritableStream.js.map +1 -0
  2005. package/node_modules/htmlparser2/lib/esm/Parser.d.ts +198 -0
  2006. package/node_modules/htmlparser2/lib/esm/Parser.d.ts.map +1 -0
  2007. package/node_modules/htmlparser2/lib/esm/Parser.js +490 -0
  2008. package/node_modules/htmlparser2/lib/esm/Parser.js.map +1 -0
  2009. package/node_modules/htmlparser2/lib/esm/Tokenizer.d.ts +126 -0
  2010. package/node_modules/htmlparser2/lib/esm/Tokenizer.d.ts.map +1 -0
  2011. package/node_modules/htmlparser2/lib/esm/Tokenizer.js +784 -0
  2012. package/node_modules/htmlparser2/lib/esm/Tokenizer.js.map +1 -0
  2013. package/node_modules/htmlparser2/lib/esm/WritableStream.d.ts +17 -0
  2014. package/node_modules/htmlparser2/lib/esm/WritableStream.d.ts.map +1 -0
  2015. package/node_modules/htmlparser2/lib/esm/WritableStream.js +32 -0
  2016. package/node_modules/htmlparser2/lib/esm/WritableStream.js.map +1 -0
  2017. package/node_modules/htmlparser2/lib/esm/index.d.ts +54 -0
  2018. package/node_modules/htmlparser2/lib/esm/index.d.ts.map +1 -0
  2019. package/node_modules/htmlparser2/lib/esm/index.js +74 -0
  2020. package/node_modules/htmlparser2/lib/esm/index.js.map +1 -0
  2021. package/node_modules/htmlparser2/lib/esm/package.json +1 -0
  2022. package/node_modules/htmlparser2/lib/index.d.ts +54 -0
  2023. package/node_modules/htmlparser2/lib/index.d.ts.map +1 -0
  2024. package/node_modules/htmlparser2/lib/index.js +114 -0
  2025. package/node_modules/htmlparser2/lib/index.js.map +1 -0
  2026. package/node_modules/htmlparser2/package.json +97 -0
  2027. package/node_modules/linkedom/.github/workflows/node.js.yml +31 -0
  2028. package/node_modules/linkedom/LICENSE +15 -0
  2029. package/node_modules/linkedom/README.md +307 -0
  2030. package/node_modules/linkedom/cjs/cached.js +153 -0
  2031. package/node_modules/linkedom/cjs/dom/parser.js +41 -0
  2032. package/node_modules/linkedom/cjs/dom/string-map.js +47 -0
  2033. package/node_modules/linkedom/cjs/dom/token-list.js +103 -0
  2034. package/node_modules/linkedom/cjs/html/anchor-element.js +35 -0
  2035. package/node_modules/linkedom/cjs/html/area-element.js +12 -0
  2036. package/node_modules/linkedom/cjs/html/audio-element.js +12 -0
  2037. package/node_modules/linkedom/cjs/html/base-element.js +12 -0
  2038. package/node_modules/linkedom/cjs/html/body-element.js +12 -0
  2039. package/node_modules/linkedom/cjs/html/br-element.js +12 -0
  2040. package/node_modules/linkedom/cjs/html/button-element.js +31 -0
  2041. package/node_modules/linkedom/cjs/html/canvas-element.js +53 -0
  2042. package/node_modules/linkedom/cjs/html/d-list-element.js +12 -0
  2043. package/node_modules/linkedom/cjs/html/data-element.js +12 -0
  2044. package/node_modules/linkedom/cjs/html/data-list-element.js +12 -0
  2045. package/node_modules/linkedom/cjs/html/details-element.js +12 -0
  2046. package/node_modules/linkedom/cjs/html/directory-element.js +12 -0
  2047. package/node_modules/linkedom/cjs/html/div-element.js +12 -0
  2048. package/node_modules/linkedom/cjs/html/document.js +105 -0
  2049. package/node_modules/linkedom/cjs/html/element.js +321 -0
  2050. package/node_modules/linkedom/cjs/html/embed-element.js +12 -0
  2051. package/node_modules/linkedom/cjs/html/field-set-element.js +12 -0
  2052. package/node_modules/linkedom/cjs/html/font-element.js +12 -0
  2053. package/node_modules/linkedom/cjs/html/form-element.js +12 -0
  2054. package/node_modules/linkedom/cjs/html/frame-element.js +12 -0
  2055. package/node_modules/linkedom/cjs/html/frame-set-element.js +12 -0
  2056. package/node_modules/linkedom/cjs/html/head-element.js +12 -0
  2057. package/node_modules/linkedom/cjs/html/heading-element.js +19 -0
  2058. package/node_modules/linkedom/cjs/html/hr-element.js +12 -0
  2059. package/node_modules/linkedom/cjs/html/html-element.js +12 -0
  2060. package/node_modules/linkedom/cjs/html/i-frame-element.js +43 -0
  2061. package/node_modules/linkedom/cjs/html/image-element.js +43 -0
  2062. package/node_modules/linkedom/cjs/html/input-element.js +40 -0
  2063. package/node_modules/linkedom/cjs/html/label-element.js +12 -0
  2064. package/node_modules/linkedom/cjs/html/legend-element.js +12 -0
  2065. package/node_modules/linkedom/cjs/html/li-element.js +12 -0
  2066. package/node_modules/linkedom/cjs/html/link-element.js +41 -0
  2067. package/node_modules/linkedom/cjs/html/map-element.js +12 -0
  2068. package/node_modules/linkedom/cjs/html/marquee-element.js +12 -0
  2069. package/node_modules/linkedom/cjs/html/media-element.js +12 -0
  2070. package/node_modules/linkedom/cjs/html/menu-element.js +12 -0
  2071. package/node_modules/linkedom/cjs/html/meta-element.js +36 -0
  2072. package/node_modules/linkedom/cjs/html/meter-element.js +12 -0
  2073. package/node_modules/linkedom/cjs/html/mod-element.js +12 -0
  2074. package/node_modules/linkedom/cjs/html/o-list-element.js +12 -0
  2075. package/node_modules/linkedom/cjs/html/object-element.js +12 -0
  2076. package/node_modules/linkedom/cjs/html/opt-group-element.js +12 -0
  2077. package/node_modules/linkedom/cjs/html/option-element.js +32 -0
  2078. package/node_modules/linkedom/cjs/html/output-element.js +12 -0
  2079. package/node_modules/linkedom/cjs/html/paragraph-element.js +12 -0
  2080. package/node_modules/linkedom/cjs/html/param-element.js +12 -0
  2081. package/node_modules/linkedom/cjs/html/picture-element.js +12 -0
  2082. package/node_modules/linkedom/cjs/html/pre-element.js +12 -0
  2083. package/node_modules/linkedom/cjs/html/progress-element.js +12 -0
  2084. package/node_modules/linkedom/cjs/html/quote-element.js +12 -0
  2085. package/node_modules/linkedom/cjs/html/script-element.js +80 -0
  2086. package/node_modules/linkedom/cjs/html/select-element.js +45 -0
  2087. package/node_modules/linkedom/cjs/html/slot-element.js +62 -0
  2088. package/node_modules/linkedom/cjs/html/source-element.js +34 -0
  2089. package/node_modules/linkedom/cjs/html/span-element.js +12 -0
  2090. package/node_modules/linkedom/cjs/html/style-element.js +53 -0
  2091. package/node_modules/linkedom/cjs/html/table-caption-element.js +12 -0
  2092. package/node_modules/linkedom/cjs/html/table-cell-element.js +12 -0
  2093. package/node_modules/linkedom/cjs/html/table-element.js +12 -0
  2094. package/node_modules/linkedom/cjs/html/table-row-element.js +12 -0
  2095. package/node_modules/linkedom/cjs/html/template-element.js +31 -0
  2096. package/node_modules/linkedom/cjs/html/text-area-element.js +37 -0
  2097. package/node_modules/linkedom/cjs/html/text-element.js +16 -0
  2098. package/node_modules/linkedom/cjs/html/time-element.js +12 -0
  2099. package/node_modules/linkedom/cjs/html/title-element.js +19 -0
  2100. package/node_modules/linkedom/cjs/html/track-element.js +12 -0
  2101. package/node_modules/linkedom/cjs/html/u-list-element.js +12 -0
  2102. package/node_modules/linkedom/cjs/html/unknown-element.js +12 -0
  2103. package/node_modules/linkedom/cjs/html/video-element.js +12 -0
  2104. package/node_modules/linkedom/cjs/index.js +48 -0
  2105. package/node_modules/linkedom/cjs/interface/attr.js +59 -0
  2106. package/node_modules/linkedom/cjs/interface/cdata-section.js +22 -0
  2107. package/node_modules/linkedom/cjs/interface/character-data.js +86 -0
  2108. package/node_modules/linkedom/cjs/interface/comment.js +22 -0
  2109. package/node_modules/linkedom/cjs/interface/css-style-declaration.js +130 -0
  2110. package/node_modules/linkedom/cjs/interface/custom-element-registry.js +212 -0
  2111. package/node_modules/linkedom/cjs/interface/custom-event.js +21 -0
  2112. package/node_modules/linkedom/cjs/interface/document-fragment.js +13 -0
  2113. package/node_modules/linkedom/cjs/interface/document-type.js +43 -0
  2114. package/node_modules/linkedom/cjs/interface/document.js +290 -0
  2115. package/node_modules/linkedom/cjs/interface/element.js +513 -0
  2116. package/node_modules/linkedom/cjs/interface/event-target.js +89 -0
  2117. package/node_modules/linkedom/cjs/interface/event.js +65 -0
  2118. package/node_modules/linkedom/cjs/interface/html-collection.js +4 -0
  2119. package/node_modules/linkedom/cjs/interface/image.js +23 -0
  2120. package/node_modules/linkedom/cjs/interface/input-event.js +24 -0
  2121. package/node_modules/linkedom/cjs/interface/mutation-observer.js +176 -0
  2122. package/node_modules/linkedom/cjs/interface/named-node-map.js +44 -0
  2123. package/node_modules/linkedom/cjs/interface/node-filter.js +17 -0
  2124. package/node_modules/linkedom/cjs/interface/node-list.js +10 -0
  2125. package/node_modules/linkedom/cjs/interface/node.js +206 -0
  2126. package/node_modules/linkedom/cjs/interface/range.js +131 -0
  2127. package/node_modules/linkedom/cjs/interface/shadow-root.js +22 -0
  2128. package/node_modules/linkedom/cjs/interface/text.js +44 -0
  2129. package/node_modules/linkedom/cjs/interface/tree-walker.js +60 -0
  2130. package/node_modules/linkedom/cjs/mixin/child-node.js +67 -0
  2131. package/node_modules/linkedom/cjs/mixin/inner-html.js +39 -0
  2132. package/node_modules/linkedom/cjs/mixin/non-document-type-child-node.js +23 -0
  2133. package/node_modules/linkedom/cjs/mixin/non-element-parent-node.js +44 -0
  2134. package/node_modules/linkedom/cjs/mixin/parent-node.js +295 -0
  2135. package/node_modules/linkedom/cjs/package.json +1 -0
  2136. package/node_modules/linkedom/cjs/shared/attributes.js +111 -0
  2137. package/node_modules/linkedom/cjs/shared/cache.js +33 -0
  2138. package/node_modules/linkedom/cjs/shared/constants.js +56 -0
  2139. package/node_modules/linkedom/cjs/shared/facades.js +91 -0
  2140. package/node_modules/linkedom/cjs/shared/html-classes.js +210 -0
  2141. package/node_modules/linkedom/cjs/shared/jsdon.js +79 -0
  2142. package/node_modules/linkedom/cjs/shared/matches.js +121 -0
  2143. package/node_modules/linkedom/cjs/shared/mime.js +33 -0
  2144. package/node_modules/linkedom/cjs/shared/node.js +53 -0
  2145. package/node_modules/linkedom/cjs/shared/object.js +18 -0
  2146. package/node_modules/linkedom/cjs/shared/parse-from-string.js +125 -0
  2147. package/node_modules/linkedom/cjs/shared/parse-json.js +134 -0
  2148. package/node_modules/linkedom/cjs/shared/register-html-class.js +11 -0
  2149. package/node_modules/linkedom/cjs/shared/shadow-roots.js +3 -0
  2150. package/node_modules/linkedom/cjs/shared/symbols.js +88 -0
  2151. package/node_modules/linkedom/cjs/shared/text-escaper.js +24 -0
  2152. package/node_modules/linkedom/cjs/shared/utils.js +49 -0
  2153. package/node_modules/linkedom/cjs/svg/document.js +14 -0
  2154. package/node_modules/linkedom/cjs/svg/element.js +60 -0
  2155. package/node_modules/linkedom/cjs/xml/document.js +14 -0
  2156. package/node_modules/linkedom/commonjs/canvas-shim.cjs +16 -0
  2157. package/node_modules/linkedom/commonjs/canvas.cjs +7 -0
  2158. package/node_modules/linkedom/commonjs/perf_hooks.cjs +9 -0
  2159. package/node_modules/linkedom/esm/cached.js +151 -0
  2160. package/node_modules/linkedom/esm/dom/parser.js +39 -0
  2161. package/node_modules/linkedom/esm/dom/string-map.js +45 -0
  2162. package/node_modules/linkedom/esm/dom/token-list.js +101 -0
  2163. package/node_modules/linkedom/esm/html/anchor-element.js +34 -0
  2164. package/node_modules/linkedom/esm/html/area-element.js +10 -0
  2165. package/node_modules/linkedom/esm/html/audio-element.js +10 -0
  2166. package/node_modules/linkedom/esm/html/base-element.js +10 -0
  2167. package/node_modules/linkedom/esm/html/body-element.js +10 -0
  2168. package/node_modules/linkedom/esm/html/br-element.js +10 -0
  2169. package/node_modules/linkedom/esm/html/button-element.js +30 -0
  2170. package/node_modules/linkedom/esm/html/canvas-element.js +52 -0
  2171. package/node_modules/linkedom/esm/html/d-list-element.js +10 -0
  2172. package/node_modules/linkedom/esm/html/data-element.js +10 -0
  2173. package/node_modules/linkedom/esm/html/data-list-element.js +10 -0
  2174. package/node_modules/linkedom/esm/html/details-element.js +10 -0
  2175. package/node_modules/linkedom/esm/html/directory-element.js +10 -0
  2176. package/node_modules/linkedom/esm/html/div-element.js +10 -0
  2177. package/node_modules/linkedom/esm/html/document.js +103 -0
  2178. package/node_modules/linkedom/esm/html/element.js +319 -0
  2179. package/node_modules/linkedom/esm/html/embed-element.js +10 -0
  2180. package/node_modules/linkedom/esm/html/field-set-element.js +10 -0
  2181. package/node_modules/linkedom/esm/html/font-element.js +10 -0
  2182. package/node_modules/linkedom/esm/html/form-element.js +10 -0
  2183. package/node_modules/linkedom/esm/html/frame-element.js +10 -0
  2184. package/node_modules/linkedom/esm/html/frame-set-element.js +10 -0
  2185. package/node_modules/linkedom/esm/html/head-element.js +10 -0
  2186. package/node_modules/linkedom/esm/html/heading-element.js +18 -0
  2187. package/node_modules/linkedom/esm/html/hr-element.js +10 -0
  2188. package/node_modules/linkedom/esm/html/html-element.js +10 -0
  2189. package/node_modules/linkedom/esm/html/i-frame-element.js +42 -0
  2190. package/node_modules/linkedom/esm/html/image-element.js +42 -0
  2191. package/node_modules/linkedom/esm/html/input-element.js +39 -0
  2192. package/node_modules/linkedom/esm/html/label-element.js +10 -0
  2193. package/node_modules/linkedom/esm/html/legend-element.js +10 -0
  2194. package/node_modules/linkedom/esm/html/li-element.js +10 -0
  2195. package/node_modules/linkedom/esm/html/link-element.js +40 -0
  2196. package/node_modules/linkedom/esm/html/map-element.js +10 -0
  2197. package/node_modules/linkedom/esm/html/marquee-element.js +10 -0
  2198. package/node_modules/linkedom/esm/html/media-element.js +10 -0
  2199. package/node_modules/linkedom/esm/html/menu-element.js +10 -0
  2200. package/node_modules/linkedom/esm/html/meta-element.js +34 -0
  2201. package/node_modules/linkedom/esm/html/meter-element.js +10 -0
  2202. package/node_modules/linkedom/esm/html/mod-element.js +10 -0
  2203. package/node_modules/linkedom/esm/html/o-list-element.js +10 -0
  2204. package/node_modules/linkedom/esm/html/object-element.js +10 -0
  2205. package/node_modules/linkedom/esm/html/opt-group-element.js +10 -0
  2206. package/node_modules/linkedom/esm/html/option-element.js +31 -0
  2207. package/node_modules/linkedom/esm/html/output-element.js +10 -0
  2208. package/node_modules/linkedom/esm/html/paragraph-element.js +10 -0
  2209. package/node_modules/linkedom/esm/html/param-element.js +10 -0
  2210. package/node_modules/linkedom/esm/html/picture-element.js +10 -0
  2211. package/node_modules/linkedom/esm/html/pre-element.js +10 -0
  2212. package/node_modules/linkedom/esm/html/progress-element.js +10 -0
  2213. package/node_modules/linkedom/esm/html/quote-element.js +10 -0
  2214. package/node_modules/linkedom/esm/html/script-element.js +79 -0
  2215. package/node_modules/linkedom/esm/html/select-element.js +44 -0
  2216. package/node_modules/linkedom/esm/html/slot-element.js +61 -0
  2217. package/node_modules/linkedom/esm/html/source-element.js +33 -0
  2218. package/node_modules/linkedom/esm/html/span-element.js +10 -0
  2219. package/node_modules/linkedom/esm/html/style-element.js +52 -0
  2220. package/node_modules/linkedom/esm/html/table-caption-element.js +10 -0
  2221. package/node_modules/linkedom/esm/html/table-cell-element.js +10 -0
  2222. package/node_modules/linkedom/esm/html/table-element.js +10 -0
  2223. package/node_modules/linkedom/esm/html/table-row-element.js +10 -0
  2224. package/node_modules/linkedom/esm/html/template-element.js +30 -0
  2225. package/node_modules/linkedom/esm/html/text-area-element.js +36 -0
  2226. package/node_modules/linkedom/esm/html/text-element.js +14 -0
  2227. package/node_modules/linkedom/esm/html/time-element.js +10 -0
  2228. package/node_modules/linkedom/esm/html/title-element.js +18 -0
  2229. package/node_modules/linkedom/esm/html/track-element.js +10 -0
  2230. package/node_modules/linkedom/esm/html/u-list-element.js +10 -0
  2231. package/node_modules/linkedom/esm/html/unknown-element.js +10 -0
  2232. package/node_modules/linkedom/esm/html/video-element.js +10 -0
  2233. package/node_modules/linkedom/esm/index.js +28 -0
  2234. package/node_modules/linkedom/esm/interface/attr.js +57 -0
  2235. package/node_modules/linkedom/esm/interface/cdata-section.js +20 -0
  2236. package/node_modules/linkedom/esm/interface/character-data.js +84 -0
  2237. package/node_modules/linkedom/esm/interface/comment.js +20 -0
  2238. package/node_modules/linkedom/esm/interface/css-style-declaration.js +128 -0
  2239. package/node_modules/linkedom/esm/interface/custom-element-registry.js +205 -0
  2240. package/node_modules/linkedom/esm/interface/custom-event.js +19 -0
  2241. package/node_modules/linkedom/esm/interface/document-fragment.js +11 -0
  2242. package/node_modules/linkedom/esm/interface/document-type.js +41 -0
  2243. package/node_modules/linkedom/esm/interface/document.js +289 -0
  2244. package/node_modules/linkedom/esm/interface/element.js +514 -0
  2245. package/node_modules/linkedom/esm/interface/event-target.js +88 -0
  2246. package/node_modules/linkedom/esm/interface/event.js +64 -0
  2247. package/node_modules/linkedom/esm/interface/html-collection.js +3 -0
  2248. package/node_modules/linkedom/esm/interface/image.js +21 -0
  2249. package/node_modules/linkedom/esm/interface/input-event.js +22 -0
  2250. package/node_modules/linkedom/esm/interface/mutation-observer.js +172 -0
  2251. package/node_modules/linkedom/esm/interface/named-node-map.js +42 -0
  2252. package/node_modules/linkedom/esm/interface/node-filter.js +15 -0
  2253. package/node_modules/linkedom/esm/interface/node-list.js +8 -0
  2254. package/node_modules/linkedom/esm/interface/node.js +204 -0
  2255. package/node_modules/linkedom/esm/interface/range.js +129 -0
  2256. package/node_modules/linkedom/esm/interface/shadow-root.js +20 -0
  2257. package/node_modules/linkedom/esm/interface/text.js +42 -0
  2258. package/node_modules/linkedom/esm/interface/tree-walker.js +58 -0
  2259. package/node_modules/linkedom/esm/mixin/child-node.js +62 -0
  2260. package/node_modules/linkedom/esm/mixin/inner-html.js +36 -0
  2261. package/node_modules/linkedom/esm/mixin/non-document-type-child-node.js +20 -0
  2262. package/node_modules/linkedom/esm/mixin/non-element-parent-node.js +42 -0
  2263. package/node_modules/linkedom/esm/mixin/parent-node.js +293 -0
  2264. package/node_modules/linkedom/esm/shared/attributes.js +104 -0
  2265. package/node_modules/linkedom/esm/shared/cache.js +26 -0
  2266. package/node_modules/linkedom/esm/shared/constants.js +33 -0
  2267. package/node_modules/linkedom/esm/shared/facades.js +77 -0
  2268. package/node_modules/linkedom/esm/shared/html-classes.js +210 -0
  2269. package/node_modules/linkedom/esm/shared/jsdon.js +73 -0
  2270. package/node_modules/linkedom/esm/shared/matches.js +118 -0
  2271. package/node_modules/linkedom/esm/shared/mime.js +31 -0
  2272. package/node_modules/linkedom/esm/shared/node.js +48 -0
  2273. package/node_modules/linkedom/esm/shared/object.js +19 -0
  2274. package/node_modules/linkedom/esm/shared/parse-from-string.js +122 -0
  2275. package/node_modules/linkedom/esm/shared/parse-json.js +131 -0
  2276. package/node_modules/linkedom/esm/shared/register-html-class.js +8 -0
  2277. package/node_modules/linkedom/esm/shared/shadow-roots.js +1 -0
  2278. package/node_modules/linkedom/esm/shared/symbols.js +65 -0
  2279. package/node_modules/linkedom/esm/shared/text-escaper.js +22 -0
  2280. package/node_modules/linkedom/esm/shared/utils.js +40 -0
  2281. package/node_modules/linkedom/esm/svg/document.js +12 -0
  2282. package/node_modules/linkedom/esm/svg/element.js +58 -0
  2283. package/node_modules/linkedom/esm/xml/document.js +12 -0
  2284. package/node_modules/linkedom/package.json +84 -0
  2285. package/node_modules/linkedom/tsconfig.json +13 -0
  2286. package/node_modules/linkedom/types/commonjs/canvas-shim.d.cts +9 -0
  2287. package/node_modules/linkedom/types/commonjs/canvas.d.cts +2 -0
  2288. package/node_modules/linkedom/types/commonjs/perf_hooks.d.cts +1 -0
  2289. package/node_modules/linkedom/types/dom/parser.d.ts +24 -0
  2290. package/node_modules/linkedom/types/dom/string-map.d.ts +9 -0
  2291. package/node_modules/linkedom/types/dom/token-list.d.ts +32 -0
  2292. package/node_modules/linkedom/types/esm/dom/parser.d.ts +24 -0
  2293. package/node_modules/linkedom/types/esm/dom/string-map.d.ts +9 -0
  2294. package/node_modules/linkedom/types/esm/dom/token-list.d.ts +36 -0
  2295. package/node_modules/linkedom/types/esm/html/anchor-element.d.ts +14 -0
  2296. package/node_modules/linkedom/types/esm/html/area-element.d.ts +6 -0
  2297. package/node_modules/linkedom/types/esm/html/audio-element.d.ts +6 -0
  2298. package/node_modules/linkedom/types/esm/html/base-element.d.ts +6 -0
  2299. package/node_modules/linkedom/types/esm/html/body-element.d.ts +6 -0
  2300. package/node_modules/linkedom/types/esm/html/br-element.d.ts +6 -0
  2301. package/node_modules/linkedom/types/esm/html/button-element.d.ts +12 -0
  2302. package/node_modules/linkedom/types/esm/html/canvas-element.d.ts +14 -0
  2303. package/node_modules/linkedom/types/esm/html/d-list-element.d.ts +6 -0
  2304. package/node_modules/linkedom/types/esm/html/data-element.d.ts +6 -0
  2305. package/node_modules/linkedom/types/esm/html/data-list-element.d.ts +6 -0
  2306. package/node_modules/linkedom/types/esm/html/details-element.d.ts +6 -0
  2307. package/node_modules/linkedom/types/esm/html/directory-element.d.ts +6 -0
  2308. package/node_modules/linkedom/types/esm/html/div-element.d.ts +6 -0
  2309. package/node_modules/linkedom/types/esm/html/document.d.ts +23 -0
  2310. package/node_modules/linkedom/types/esm/html/element.d.ts +168 -0
  2311. package/node_modules/linkedom/types/esm/html/embed-element.d.ts +6 -0
  2312. package/node_modules/linkedom/types/esm/html/field-set-element.d.ts +6 -0
  2313. package/node_modules/linkedom/types/esm/html/font-element.d.ts +6 -0
  2314. package/node_modules/linkedom/types/esm/html/form-element.d.ts +6 -0
  2315. package/node_modules/linkedom/types/esm/html/frame-element.d.ts +6 -0
  2316. package/node_modules/linkedom/types/esm/html/frame-set-element.d.ts +6 -0
  2317. package/node_modules/linkedom/types/esm/html/head-element.d.ts +6 -0
  2318. package/node_modules/linkedom/types/esm/html/heading-element.d.ts +6 -0
  2319. package/node_modules/linkedom/types/esm/html/hr-element.d.ts +6 -0
  2320. package/node_modules/linkedom/types/esm/html/html-element.d.ts +6 -0
  2321. package/node_modules/linkedom/types/esm/html/i-frame-element.d.ts +20 -0
  2322. package/node_modules/linkedom/types/esm/html/image-element.d.ts +18 -0
  2323. package/node_modules/linkedom/types/esm/html/input-element.d.ts +18 -0
  2324. package/node_modules/linkedom/types/esm/html/label-element.d.ts +6 -0
  2325. package/node_modules/linkedom/types/esm/html/legend-element.d.ts +6 -0
  2326. package/node_modules/linkedom/types/esm/html/li-element.d.ts +6 -0
  2327. package/node_modules/linkedom/types/esm/html/link-element.d.ts +18 -0
  2328. package/node_modules/linkedom/types/esm/html/map-element.d.ts +6 -0
  2329. package/node_modules/linkedom/types/esm/html/marquee-element.d.ts +6 -0
  2330. package/node_modules/linkedom/types/esm/html/media-element.d.ts +6 -0
  2331. package/node_modules/linkedom/types/esm/html/menu-element.d.ts +6 -0
  2332. package/node_modules/linkedom/types/esm/html/meta-element.d.ts +16 -0
  2333. package/node_modules/linkedom/types/esm/html/meter-element.d.ts +6 -0
  2334. package/node_modules/linkedom/types/esm/html/mod-element.d.ts +6 -0
  2335. package/node_modules/linkedom/types/esm/html/o-list-element.d.ts +6 -0
  2336. package/node_modules/linkedom/types/esm/html/object-element.d.ts +6 -0
  2337. package/node_modules/linkedom/types/esm/html/opt-group-element.d.ts +6 -0
  2338. package/node_modules/linkedom/types/esm/html/option-element.d.ts +10 -0
  2339. package/node_modules/linkedom/types/esm/html/output-element.d.ts +6 -0
  2340. package/node_modules/linkedom/types/esm/html/paragraph-element.d.ts +6 -0
  2341. package/node_modules/linkedom/types/esm/html/param-element.d.ts +6 -0
  2342. package/node_modules/linkedom/types/esm/html/picture-element.d.ts +6 -0
  2343. package/node_modules/linkedom/types/esm/html/pre-element.d.ts +6 -0
  2344. package/node_modules/linkedom/types/esm/html/progress-element.d.ts +6 -0
  2345. package/node_modules/linkedom/types/esm/html/quote-element.d.ts +6 -0
  2346. package/node_modules/linkedom/types/esm/html/script-element.d.ts +22 -0
  2347. package/node_modules/linkedom/types/esm/html/select-element.d.ts +13 -0
  2348. package/node_modules/linkedom/types/esm/html/slot-element.d.ts +11 -0
  2349. package/node_modules/linkedom/types/esm/html/source-element.d.ts +14 -0
  2350. package/node_modules/linkedom/types/esm/html/span-element.d.ts +6 -0
  2351. package/node_modules/linkedom/types/esm/html/style-element.d.ts +11 -0
  2352. package/node_modules/linkedom/types/esm/html/table-caption-element.d.ts +6 -0
  2353. package/node_modules/linkedom/types/esm/html/table-cell-element.d.ts +6 -0
  2354. package/node_modules/linkedom/types/esm/html/table-element.d.ts +6 -0
  2355. package/node_modules/linkedom/types/esm/html/table-row-element.d.ts +6 -0
  2356. package/node_modules/linkedom/types/esm/html/template-element.d.ts +10 -0
  2357. package/node_modules/linkedom/types/esm/html/text-area-element.d.ts +16 -0
  2358. package/node_modules/linkedom/types/esm/html/text-element.d.ts +4 -0
  2359. package/node_modules/linkedom/types/esm/html/time-element.d.ts +6 -0
  2360. package/node_modules/linkedom/types/esm/html/title-element.d.ts +6 -0
  2361. package/node_modules/linkedom/types/esm/html/track-element.d.ts +6 -0
  2362. package/node_modules/linkedom/types/esm/html/u-list-element.d.ts +6 -0
  2363. package/node_modules/linkedom/types/esm/html/unknown-element.d.ts +6 -0
  2364. package/node_modules/linkedom/types/esm/html/video-element.d.ts +6 -0
  2365. package/node_modules/linkedom/types/esm/index.d.ts +13 -0
  2366. package/node_modules/linkedom/types/esm/interface/attr.d.ts +17 -0
  2367. package/node_modules/linkedom/types/esm/interface/cdata-section.d.ts +8 -0
  2368. package/node_modules/linkedom/types/esm/interface/character-data.d.ts +26 -0
  2369. package/node_modules/linkedom/types/esm/interface/comment.d.ts +8 -0
  2370. package/node_modules/linkedom/types/esm/interface/css-style-declaration.d.ts +19 -0
  2371. package/node_modules/linkedom/types/esm/interface/custom-element-registry.d.ts +54 -0
  2372. package/node_modules/linkedom/types/esm/interface/custom-event.d.ts +7 -0
  2373. package/node_modules/linkedom/types/esm/interface/document-fragment.d.ts +7 -0
  2374. package/node_modules/linkedom/types/esm/interface/document-type.d.ts +12 -0
  2375. package/node_modules/linkedom/types/esm/interface/document.d.ts +71 -0
  2376. package/node_modules/linkedom/types/esm/interface/element.d.ts +81 -0
  2377. package/node_modules/linkedom/types/esm/interface/event-target.d.ts +13 -0
  2378. package/node_modules/linkedom/types/esm/interface/event.d.ts +32 -0
  2379. package/node_modules/linkedom/types/esm/interface/image.d.ts +214 -0
  2380. package/node_modules/linkedom/types/esm/interface/input-event.d.ts +11 -0
  2381. package/node_modules/linkedom/types/esm/interface/mutation-observer.d.ts +40 -0
  2382. package/node_modules/linkedom/types/esm/interface/named-node-map.d.ts +14 -0
  2383. package/node_modules/linkedom/types/esm/interface/node-filter.d.ts +7 -0
  2384. package/node_modules/linkedom/types/esm/interface/node-list.d.ts +9 -0
  2385. package/node_modules/linkedom/types/esm/interface/node.d.ts +86 -0
  2386. package/node_modules/linkedom/types/esm/interface/range.d.ts +23 -0
  2387. package/node_modules/linkedom/types/esm/interface/shadow-root.d.ts +10 -0
  2388. package/node_modules/linkedom/types/esm/interface/text.d.ts +9 -0
  2389. package/node_modules/linkedom/types/esm/interface/tree-walker.d.ts +15 -0
  2390. package/node_modules/linkedom/types/esm/mixin/child-node.d.ts +4 -0
  2391. package/node_modules/linkedom/types/esm/mixin/inner-html.d.ts +2 -0
  2392. package/node_modules/linkedom/types/esm/mixin/non-document-type-child-node.d.ts +2 -0
  2393. package/node_modules/linkedom/types/esm/mixin/non-element-parent-node.d.ts +6 -0
  2394. package/node_modules/linkedom/types/esm/mixin/parent-node.d.ts +57 -0
  2395. package/node_modules/linkedom/types/esm/shared/attributes.d.ts +15 -0
  2396. package/node_modules/linkedom/types/esm/shared/constants.d.ts +22 -0
  2397. package/node_modules/linkedom/types/esm/shared/facades.d.ts +25 -0
  2398. package/node_modules/linkedom/types/esm/shared/html-classes.d.ts +139 -0
  2399. package/node_modules/linkedom/types/esm/shared/jsdon.d.ts +9 -0
  2400. package/node_modules/linkedom/types/esm/shared/matches.d.ts +2 -0
  2401. package/node_modules/linkedom/types/esm/shared/mime.d.ts +35 -0
  2402. package/node_modules/linkedom/types/esm/shared/node.d.ts +12 -0
  2403. package/node_modules/linkedom/types/esm/shared/object.d.ts +25 -0
  2404. package/node_modules/linkedom/types/esm/shared/parse-from-string.d.ts +2 -0
  2405. package/node_modules/linkedom/types/esm/shared/parse-json.d.ts +7 -0
  2406. package/node_modules/linkedom/types/esm/shared/register-html-class.d.ts +2 -0
  2407. package/node_modules/linkedom/types/esm/shared/shadow-roots.d.ts +1 -0
  2408. package/node_modules/linkedom/types/esm/shared/symbols.d.ts +22 -0
  2409. package/node_modules/linkedom/types/esm/shared/text-escaper.d.ts +1 -0
  2410. package/node_modules/linkedom/types/esm/shared/utils.d.ts +15 -0
  2411. package/node_modules/linkedom/types/esm/svg/document.d.ts +7 -0
  2412. package/node_modules/linkedom/types/esm/svg/element.d.ts +8 -0
  2413. package/node_modules/linkedom/types/esm/xml/document.d.ts +7 -0
  2414. package/node_modules/linkedom/types/html/anchor-element.d.ts +14 -0
  2415. package/node_modules/linkedom/types/html/area-element.d.ts +6 -0
  2416. package/node_modules/linkedom/types/html/audio-element.d.ts +6 -0
  2417. package/node_modules/linkedom/types/html/base-element.d.ts +6 -0
  2418. package/node_modules/linkedom/types/html/body-element.d.ts +6 -0
  2419. package/node_modules/linkedom/types/html/br-element.d.ts +6 -0
  2420. package/node_modules/linkedom/types/html/button-element.d.ts +12 -0
  2421. package/node_modules/linkedom/types/html/canvas-element.d.ts +14 -0
  2422. package/node_modules/linkedom/types/html/d-list-element.d.ts +6 -0
  2423. package/node_modules/linkedom/types/html/data-element.d.ts +6 -0
  2424. package/node_modules/linkedom/types/html/data-list-element.d.ts +6 -0
  2425. package/node_modules/linkedom/types/html/details-element.d.ts +6 -0
  2426. package/node_modules/linkedom/types/html/directory-element.d.ts +6 -0
  2427. package/node_modules/linkedom/types/html/div-element.d.ts +6 -0
  2428. package/node_modules/linkedom/types/html/document.d.ts +22 -0
  2429. package/node_modules/linkedom/types/html/element.d.ts +168 -0
  2430. package/node_modules/linkedom/types/html/embed-element.d.ts +6 -0
  2431. package/node_modules/linkedom/types/html/field-set-element.d.ts +6 -0
  2432. package/node_modules/linkedom/types/html/font-element.d.ts +6 -0
  2433. package/node_modules/linkedom/types/html/form-element.d.ts +6 -0
  2434. package/node_modules/linkedom/types/html/frame-element.d.ts +6 -0
  2435. package/node_modules/linkedom/types/html/frame-set-element.d.ts +6 -0
  2436. package/node_modules/linkedom/types/html/head-element.d.ts +6 -0
  2437. package/node_modules/linkedom/types/html/heading-element.d.ts +6 -0
  2438. package/node_modules/linkedom/types/html/hr-element.d.ts +6 -0
  2439. package/node_modules/linkedom/types/html/html-element.d.ts +6 -0
  2440. package/node_modules/linkedom/types/html/i-frame-element.d.ts +6 -0
  2441. package/node_modules/linkedom/types/html/image-element.d.ts +18 -0
  2442. package/node_modules/linkedom/types/html/input-element.d.ts +16 -0
  2443. package/node_modules/linkedom/types/html/label-element.d.ts +6 -0
  2444. package/node_modules/linkedom/types/html/legend-element.d.ts +6 -0
  2445. package/node_modules/linkedom/types/html/li-element.d.ts +6 -0
  2446. package/node_modules/linkedom/types/html/link-element.d.ts +18 -0
  2447. package/node_modules/linkedom/types/html/map-element.d.ts +6 -0
  2448. package/node_modules/linkedom/types/html/marquee-element.d.ts +6 -0
  2449. package/node_modules/linkedom/types/html/media-element.d.ts +6 -0
  2450. package/node_modules/linkedom/types/html/menu-element.d.ts +6 -0
  2451. package/node_modules/linkedom/types/html/meta-element.d.ts +6 -0
  2452. package/node_modules/linkedom/types/html/meter-element.d.ts +6 -0
  2453. package/node_modules/linkedom/types/html/mod-element.d.ts +6 -0
  2454. package/node_modules/linkedom/types/html/o-list-element.d.ts +6 -0
  2455. package/node_modules/linkedom/types/html/object-element.d.ts +6 -0
  2456. package/node_modules/linkedom/types/html/opt-group-element.d.ts +6 -0
  2457. package/node_modules/linkedom/types/html/option-element.d.ts +6 -0
  2458. package/node_modules/linkedom/types/html/output-element.d.ts +6 -0
  2459. package/node_modules/linkedom/types/html/paragraph-element.d.ts +6 -0
  2460. package/node_modules/linkedom/types/html/param-element.d.ts +6 -0
  2461. package/node_modules/linkedom/types/html/picture-element.d.ts +6 -0
  2462. package/node_modules/linkedom/types/html/pre-element.d.ts +6 -0
  2463. package/node_modules/linkedom/types/html/progress-element.d.ts +6 -0
  2464. package/node_modules/linkedom/types/html/quote-element.d.ts +6 -0
  2465. package/node_modules/linkedom/types/html/script-element.d.ts +6 -0
  2466. package/node_modules/linkedom/types/html/select-element.d.ts +12 -0
  2467. package/node_modules/linkedom/types/html/slot-element.d.ts +6 -0
  2468. package/node_modules/linkedom/types/html/source-element.d.ts +14 -0
  2469. package/node_modules/linkedom/types/html/span-element.d.ts +6 -0
  2470. package/node_modules/linkedom/types/html/style-element.d.ts +9 -0
  2471. package/node_modules/linkedom/types/html/table-caption-element.d.ts +6 -0
  2472. package/node_modules/linkedom/types/html/table-cell-element.d.ts +6 -0
  2473. package/node_modules/linkedom/types/html/table-element.d.ts +6 -0
  2474. package/node_modules/linkedom/types/html/table-row-element.d.ts +6 -0
  2475. package/node_modules/linkedom/types/html/template-element.d.ts +10 -0
  2476. package/node_modules/linkedom/types/html/text-area-element.d.ts +16 -0
  2477. package/node_modules/linkedom/types/html/text-element.d.ts +3 -0
  2478. package/node_modules/linkedom/types/html/time-element.d.ts +6 -0
  2479. package/node_modules/linkedom/types/html/title-element.d.ts +6 -0
  2480. package/node_modules/linkedom/types/html/track-element.d.ts +6 -0
  2481. package/node_modules/linkedom/types/html/u-list-element.d.ts +6 -0
  2482. package/node_modules/linkedom/types/html/unknown-element.d.ts +6 -0
  2483. package/node_modules/linkedom/types/html/video-element.d.ts +6 -0
  2484. package/node_modules/linkedom/types/index.d.ts +12 -0
  2485. package/node_modules/linkedom/types/interface/attr.d.ts +16 -0
  2486. package/node_modules/linkedom/types/interface/character-data.d.ts +22 -0
  2487. package/node_modules/linkedom/types/interface/comment.d.ts +7 -0
  2488. package/node_modules/linkedom/types/interface/css-style-declaration.d.ts +10 -0
  2489. package/node_modules/linkedom/types/interface/custom-element-registry.d.ts +54 -0
  2490. package/node_modules/linkedom/types/interface/custom-event.d.ts +37 -0
  2491. package/node_modules/linkedom/types/interface/document-fragment.d.ts +7 -0
  2492. package/node_modules/linkedom/types/interface/document-type.d.ts +11 -0
  2493. package/node_modules/linkedom/types/interface/document.d.ts +60 -0
  2494. package/node_modules/linkedom/types/interface/element.d.ts +72 -0
  2495. package/node_modules/linkedom/types/interface/event-target.d.ts +13 -0
  2496. package/node_modules/linkedom/types/interface/event.d.ts +32 -0
  2497. package/node_modules/linkedom/types/interface/image.d.ts +199 -0
  2498. package/node_modules/linkedom/types/interface/input-event.d.ts +11 -0
  2499. package/node_modules/linkedom/types/interface/mutation-observer.d.ts +40 -0
  2500. package/node_modules/linkedom/types/interface/named-node-map.d.ts +14 -0
  2501. package/node_modules/linkedom/types/interface/node-list.d.ts +9 -0
  2502. package/node_modules/linkedom/types/interface/node.d.ts +78 -0
  2503. package/node_modules/linkedom/types/interface/range.d.ts +22 -0
  2504. package/node_modules/linkedom/types/interface/shadow-root.d.ts +9 -0
  2505. package/node_modules/linkedom/types/interface/text.d.ts +8 -0
  2506. package/node_modules/linkedom/types/interface/tree-walker.d.ts +15 -0
  2507. package/node_modules/linkedom/types/mixin/child-node.d.ts +4 -0
  2508. package/node_modules/linkedom/types/mixin/inner-html.d.ts +2 -0
  2509. package/node_modules/linkedom/types/mixin/non-document-type-child-node.d.ts +2 -0
  2510. package/node_modules/linkedom/types/mixin/non-element-parent-node.d.ts +5 -0
  2511. package/node_modules/linkedom/types/mixin/parent-node.d.ts +47 -0
  2512. package/node_modules/linkedom/types/shared/attributes.d.ts +21 -0
  2513. package/node_modules/linkedom/types/shared/cache.d.ts +7 -0
  2514. package/node_modules/linkedom/types/shared/constants.d.ts +19 -0
  2515. package/node_modules/linkedom/types/shared/facades.d.ts +23 -0
  2516. package/node_modules/linkedom/types/shared/html-classes.d.ts +139 -0
  2517. package/node_modules/linkedom/types/shared/jsdon.d.ts +9 -0
  2518. package/node_modules/linkedom/types/shared/matches.d.ts +2 -0
  2519. package/node_modules/linkedom/types/shared/mime.d.ts +35 -0
  2520. package/node_modules/linkedom/types/shared/node.d.ts +12 -0
  2521. package/node_modules/linkedom/types/shared/object.d.ts +25 -0
  2522. package/node_modules/linkedom/types/shared/parse-from-string.d.ts +2 -0
  2523. package/node_modules/linkedom/types/shared/parse-json.d.ts +7 -0
  2524. package/node_modules/linkedom/types/shared/register-html-class.d.ts +2 -0
  2525. package/node_modules/linkedom/types/shared/symbols.d.ts +20 -0
  2526. package/node_modules/linkedom/types/shared/text-escaper.d.ts +1 -0
  2527. package/node_modules/linkedom/types/shared/utils.d.ts +15 -0
  2528. package/node_modules/linkedom/types/svg/document.d.ts +7 -0
  2529. package/node_modules/linkedom/types/svg/element.d.ts +8 -0
  2530. package/node_modules/linkedom/types/xml/document.d.ts +7 -0
  2531. package/node_modules/linkedom/worker.js +12526 -0
  2532. package/node_modules/nth-check/LICENSE +11 -0
  2533. package/node_modules/nth-check/README.md +136 -0
  2534. package/node_modules/nth-check/lib/compile.d.ts +55 -0
  2535. package/node_modules/nth-check/lib/compile.d.ts.map +1 -0
  2536. package/node_modules/nth-check/lib/compile.js +121 -0
  2537. package/node_modules/nth-check/lib/compile.js.map +1 -0
  2538. package/node_modules/nth-check/lib/esm/compile.d.ts +55 -0
  2539. package/node_modules/nth-check/lib/esm/compile.d.ts.map +1 -0
  2540. package/node_modules/nth-check/lib/esm/compile.js +113 -0
  2541. package/node_modules/nth-check/lib/esm/compile.js.map +1 -0
  2542. package/node_modules/nth-check/lib/esm/index.d.ts +59 -0
  2543. package/node_modules/nth-check/lib/esm/index.d.ts.map +1 -0
  2544. package/node_modules/nth-check/lib/esm/index.js +63 -0
  2545. package/node_modules/nth-check/lib/esm/index.js.map +1 -0
  2546. package/node_modules/nth-check/lib/esm/package.json +1 -0
  2547. package/node_modules/nth-check/lib/esm/parse.d.ts +9 -0
  2548. package/node_modules/nth-check/lib/esm/parse.d.ts.map +1 -0
  2549. package/node_modules/nth-check/lib/esm/parse.js +73 -0
  2550. package/node_modules/nth-check/lib/esm/parse.js.map +1 -0
  2551. package/node_modules/nth-check/lib/index.d.ts +59 -0
  2552. package/node_modules/nth-check/lib/index.d.ts.map +1 -0
  2553. package/node_modules/nth-check/lib/index.js +70 -0
  2554. package/node_modules/nth-check/lib/index.js.map +1 -0
  2555. package/node_modules/nth-check/lib/parse.d.ts +9 -0
  2556. package/node_modules/nth-check/lib/parse.d.ts.map +1 -0
  2557. package/node_modules/nth-check/lib/parse.js +77 -0
  2558. package/node_modules/nth-check/lib/parse.js.map +1 -0
  2559. package/node_modules/nth-check/package.json +78 -0
  2560. package/node_modules/p-limit/index.d.ts +81 -0
  2561. package/node_modules/p-limit/index.js +104 -0
  2562. package/node_modules/p-limit/license +9 -0
  2563. package/node_modules/p-limit/package.json +58 -0
  2564. package/node_modules/p-limit/readme.md +129 -0
  2565. package/node_modules/pi-web-access/CHANGELOG.md +387 -0
  2566. package/node_modules/pi-web-access/LICENSE +21 -0
  2567. package/node_modules/pi-web-access/README.md +352 -0
  2568. package/node_modules/pi-web-access/activity.ts +101 -0
  2569. package/node_modules/pi-web-access/banner.png +0 -0
  2570. package/node_modules/pi-web-access/chrome-cookies.ts +322 -0
  2571. package/node_modules/pi-web-access/code-search.ts +107 -0
  2572. package/node_modules/pi-web-access/curator-page.ts +3359 -0
  2573. package/node_modules/pi-web-access/curator-server.ts +605 -0
  2574. package/node_modules/pi-web-access/exa.ts +520 -0
  2575. package/node_modules/pi-web-access/extract.ts +641 -0
  2576. package/node_modules/pi-web-access/gemini-api.ts +112 -0
  2577. package/node_modules/pi-web-access/gemini-search.ts +361 -0
  2578. package/node_modules/pi-web-access/gemini-url-context.ts +126 -0
  2579. package/node_modules/pi-web-access/gemini-web-config.ts +52 -0
  2580. package/node_modules/pi-web-access/gemini-web.ts +396 -0
  2581. package/node_modules/pi-web-access/github-api.ts +196 -0
  2582. package/node_modules/pi-web-access/github-extract.ts +634 -0
  2583. package/node_modules/pi-web-access/index.ts +2346 -0
  2584. package/node_modules/pi-web-access/package.json +45 -0
  2585. package/node_modules/pi-web-access/pdf-extract.ts +192 -0
  2586. package/node_modules/pi-web-access/perplexity.ts +195 -0
  2587. package/node_modules/pi-web-access/pi-web-fetch-demo.mp4 +0 -0
  2588. package/node_modules/pi-web-access/rsc-extract.ts +338 -0
  2589. package/node_modules/pi-web-access/skills/librarian/SKILL.md +195 -0
  2590. package/node_modules/pi-web-access/storage.ts +72 -0
  2591. package/node_modules/pi-web-access/summary-review.ts +276 -0
  2592. package/node_modules/pi-web-access/test/gemini-web-cookie-opt-in.test.mjs +41 -0
  2593. package/node_modules/pi-web-access/test/pdf-extract.test.mjs +95 -0
  2594. package/node_modules/pi-web-access/utils.ts +44 -0
  2595. package/node_modules/pi-web-access/video-extract.ts +378 -0
  2596. package/node_modules/pi-web-access/youtube-extract.ts +310 -0
  2597. package/node_modules/turndown/LICENSE +21 -0
  2598. package/node_modules/turndown/README.md +234 -0
  2599. package/node_modules/turndown/dist/turndown.js +800 -0
  2600. package/node_modules/turndown/lib/turndown.browser.cjs.js +797 -0
  2601. package/node_modules/turndown/lib/turndown.browser.es.js +795 -0
  2602. package/node_modules/turndown/lib/turndown.browser.umd.js +803 -0
  2603. package/node_modules/turndown/lib/turndown.cjs.js +774 -0
  2604. package/node_modules/turndown/lib/turndown.es.js +772 -0
  2605. package/node_modules/turndown/lib/turndown.umd.js +780 -0
  2606. package/node_modules/turndown/package.json +59 -0
  2607. package/node_modules/uhyphen/LICENSE +15 -0
  2608. package/node_modules/uhyphen/README.md +13 -0
  2609. package/node_modules/uhyphen/cjs/index.js +3 -0
  2610. package/node_modules/uhyphen/cjs/package.json +1 -0
  2611. package/node_modules/uhyphen/es.js +1 -0
  2612. package/node_modules/uhyphen/esm/index.js +2 -0
  2613. package/node_modules/uhyphen/index.js +14 -0
  2614. package/node_modules/uhyphen/min.js +1 -0
  2615. package/node_modules/uhyphen/package.json +52 -0
  2616. package/node_modules/unpdf/LICENSE +21 -0
  2617. package/node_modules/unpdf/README.md +365 -0
  2618. package/node_modules/unpdf/dist/index.cjs +429 -0
  2619. package/node_modules/unpdf/dist/index.d.cts +182 -0
  2620. package/node_modules/unpdf/dist/index.d.mts +182 -0
  2621. package/node_modules/unpdf/dist/index.d.ts +182 -0
  2622. package/node_modules/unpdf/dist/index.mjs +416 -0
  2623. package/node_modules/unpdf/dist/pdfjs.d.mts +1 -0
  2624. package/node_modules/unpdf/dist/pdfjs.d.ts +1 -0
  2625. package/node_modules/unpdf/dist/pdfjs.mjs +107 -0
  2626. package/node_modules/unpdf/dist/types/src/display/annotation_layer.d.ts +274 -0
  2627. package/node_modules/unpdf/dist/types/src/display/annotation_storage.d.ts +94 -0
  2628. package/node_modules/unpdf/dist/types/src/display/api.d.ts +1619 -0
  2629. package/node_modules/unpdf/dist/types/src/display/api_utils.d.ts +13 -0
  2630. package/node_modules/unpdf/dist/types/src/display/binary_data_factory.d.ts +26 -0
  2631. package/node_modules/unpdf/dist/types/src/display/canvas.d.ts +210 -0
  2632. package/node_modules/unpdf/dist/types/src/display/canvas_dependency_tracker.d.ts +216 -0
  2633. package/node_modules/unpdf/dist/types/src/display/canvas_factory.d.ts +29 -0
  2634. package/node_modules/unpdf/dist/types/src/display/content_disposition.d.ts +7 -0
  2635. package/node_modules/unpdf/dist/types/src/display/display_utils.d.ts +281 -0
  2636. package/node_modules/unpdf/dist/types/src/display/draw_layer.d.ts +22 -0
  2637. package/node_modules/unpdf/dist/types/src/display/editor/alt_text.d.ts +34 -0
  2638. package/node_modules/unpdf/dist/types/src/display/editor/annotation_editor_layer.d.ts +227 -0
  2639. package/node_modules/unpdf/dist/types/src/display/editor/color_picker.d.ts +39 -0
  2640. package/node_modules/unpdf/dist/types/src/display/editor/comment.d.ts +59 -0
  2641. package/node_modules/unpdf/dist/types/src/display/editor/draw.d.ts +117 -0
  2642. package/node_modules/unpdf/dist/types/src/display/editor/drawers/contour.d.ts +3 -0
  2643. package/node_modules/unpdf/dist/types/src/display/editor/drawers/freedraw.d.ts +32 -0
  2644. package/node_modules/unpdf/dist/types/src/display/editor/drawers/highlight.d.ts +37 -0
  2645. package/node_modules/unpdf/dist/types/src/display/editor/drawers/inkdraw.d.ts +129 -0
  2646. package/node_modules/unpdf/dist/types/src/display/editor/drawers/outline.d.ts +19 -0
  2647. package/node_modules/unpdf/dist/types/src/display/editor/drawers/signaturedraw.d.ts +79 -0
  2648. package/node_modules/unpdf/dist/types/src/display/editor/editor.d.ts +578 -0
  2649. package/node_modules/unpdf/dist/types/src/display/editor/freetext.d.ts +63 -0
  2650. package/node_modules/unpdf/dist/types/src/display/editor/highlight.d.ts +76 -0
  2651. package/node_modules/unpdf/dist/types/src/display/editor/ink.d.ts +42 -0
  2652. package/node_modules/unpdf/dist/types/src/display/editor/signature.d.ts +77 -0
  2653. package/node_modules/unpdf/dist/types/src/display/editor/stamp.d.ts +49 -0
  2654. package/node_modules/unpdf/dist/types/src/display/editor/toolbar.d.ts +26 -0
  2655. package/node_modules/unpdf/dist/types/src/display/editor/tools.d.ts +484 -0
  2656. package/node_modules/unpdf/dist/types/src/display/fetch_stream.d.ts +7 -0
  2657. package/node_modules/unpdf/dist/types/src/display/filter_factory.d.ts +29 -0
  2658. package/node_modules/unpdf/dist/types/src/display/font_loader.d.ts +66 -0
  2659. package/node_modules/unpdf/dist/types/src/display/metadata.d.ts +10 -0
  2660. package/node_modules/unpdf/dist/types/src/display/network.d.ts +20 -0
  2661. package/node_modules/unpdf/dist/types/src/display/network_stream.d.ts +2 -0
  2662. package/node_modules/unpdf/dist/types/src/display/network_utils.d.ts +15 -0
  2663. package/node_modules/unpdf/dist/types/src/display/node_stream.d.ts +4 -0
  2664. package/node_modules/unpdf/dist/types/src/display/node_utils.d.ts +18 -0
  2665. package/node_modules/unpdf/dist/types/src/display/obj_bin_transform_display.d.ts +67 -0
  2666. package/node_modules/unpdf/dist/types/src/display/optional_content_config.d.ts +18 -0
  2667. package/node_modules/unpdf/dist/types/src/display/pages_mapper.d.ts +72 -0
  2668. package/node_modules/unpdf/dist/types/src/display/pattern_helper.d.ts +80 -0
  2669. package/node_modules/unpdf/dist/types/src/display/pdf_objects.d.ts +40 -0
  2670. package/node_modules/unpdf/dist/types/src/display/svg_factory.d.ts +14 -0
  2671. package/node_modules/unpdf/dist/types/src/display/text_layer.d.ts +91 -0
  2672. package/node_modules/unpdf/dist/types/src/display/text_layer_images.d.ts +10 -0
  2673. package/node_modules/unpdf/dist/types/src/display/touch_manager.d.ts +18 -0
  2674. package/node_modules/unpdf/dist/types/src/display/transport_stream.d.ts +11 -0
  2675. package/node_modules/unpdf/dist/types/src/display/webgpu_mesh.d.ts +3 -0
  2676. package/node_modules/unpdf/dist/types/src/display/worker_options.d.ts +25 -0
  2677. package/node_modules/unpdf/dist/types/src/display/xfa_layer.d.ts +47 -0
  2678. package/node_modules/unpdf/dist/types/src/display/xfa_text.d.ts +21 -0
  2679. package/node_modules/unpdf/dist/types/src/pdf.d.ts +67 -0
  2680. package/node_modules/unpdf/dist/types/src/shared/base_pdf_stream.d.ts +121 -0
  2681. package/node_modules/unpdf/dist/types/src/shared/image_utils.d.ts +17 -0
  2682. package/node_modules/unpdf/dist/types/src/shared/message_handler.d.ts +48 -0
  2683. package/node_modules/unpdf/dist/types/src/shared/murmurhash3.d.ts +7 -0
  2684. package/node_modules/unpdf/dist/types/src/shared/obj_bin_transform_utils.d.ts +26 -0
  2685. package/node_modules/unpdf/dist/types/src/shared/scripting_utils.d.ts +18 -0
  2686. package/node_modules/unpdf/dist/types/src/shared/util.d.ts +424 -0
  2687. package/node_modules/unpdf/dist/types/web/annotation_editor_layer_builder.d.ts +64 -0
  2688. package/node_modules/unpdf/dist/types/web/annotation_layer_builder.d.ts +108 -0
  2689. package/node_modules/unpdf/dist/types/web/app_options.d.ts +16 -0
  2690. package/node_modules/unpdf/dist/types/web/autolinker.d.ts +29 -0
  2691. package/node_modules/unpdf/dist/types/web/base_download_manager.d.ts +24 -0
  2692. package/node_modules/unpdf/dist/types/web/base_pdf_page_view.d.ts +28 -0
  2693. package/node_modules/unpdf/dist/types/web/comment_manager.d.ts +20 -0
  2694. package/node_modules/unpdf/dist/types/web/download_manager.d.ts +4 -0
  2695. package/node_modules/unpdf/dist/types/web/draw_layer_builder.d.ts +22 -0
  2696. package/node_modules/unpdf/dist/types/web/event_utils.d.ts +77 -0
  2697. package/node_modules/unpdf/dist/types/web/generic_scripting.d.ts +8 -0
  2698. package/node_modules/unpdf/dist/types/web/genericl10n.d.ts +18 -0
  2699. package/node_modules/unpdf/dist/types/web/l10n.d.ts +31 -0
  2700. package/node_modules/unpdf/dist/types/web/menu.d.ts +11 -0
  2701. package/node_modules/unpdf/dist/types/web/pdf_find_controller.d.ts +132 -0
  2702. package/node_modules/unpdf/dist/types/web/pdf_find_utils.d.ts +16 -0
  2703. package/node_modules/unpdf/dist/types/web/pdf_history.d.ts +116 -0
  2704. package/node_modules/unpdf/dist/types/web/pdf_link_service.d.ts +142 -0
  2705. package/node_modules/unpdf/dist/types/web/pdf_page_detail_view.d.ts +27 -0
  2706. package/node_modules/unpdf/dist/types/web/pdf_page_view.d.ts +249 -0
  2707. package/node_modules/unpdf/dist/types/web/pdf_rendering_queue.d.ts +50 -0
  2708. package/node_modules/unpdf/dist/types/web/pdf_scripting_manager.component.d.ts +5 -0
  2709. package/node_modules/unpdf/dist/types/web/pdf_scripting_manager.d.ts +57 -0
  2710. package/node_modules/unpdf/dist/types/web/pdf_single_page_viewer.d.ts +7 -0
  2711. package/node_modules/unpdf/dist/types/web/pdf_thumbnail_view.d.ts +108 -0
  2712. package/node_modules/unpdf/dist/types/web/pdf_thumbnail_viewer.d.ts +161 -0
  2713. package/node_modules/unpdf/dist/types/web/pdf_viewer.component.d.ts +23 -0
  2714. package/node_modules/unpdf/dist/types/web/pdf_viewer.d.ts +619 -0
  2715. package/node_modules/unpdf/dist/types/web/renderable_view.d.ts +33 -0
  2716. package/node_modules/unpdf/dist/types/web/sidebar.d.ts +65 -0
  2717. package/node_modules/unpdf/dist/types/web/struct_tree_layer_builder.d.ts +25 -0
  2718. package/node_modules/unpdf/dist/types/web/text_accessibility.d.ts +44 -0
  2719. package/node_modules/unpdf/dist/types/web/text_highlighter.d.ts +63 -0
  2720. package/node_modules/unpdf/dist/types/web/text_layer_builder.d.ts +70 -0
  2721. package/node_modules/unpdf/dist/types/web/ui_utils.d.ts +265 -0
  2722. package/node_modules/unpdf/dist/types/web/xfa_layer_builder.d.ts +50 -0
  2723. package/node_modules/unpdf/package.json +97 -0
  2724. package/node_modules/yocto-queue/index.d.ts +75 -0
  2725. package/node_modules/yocto-queue/index.js +90 -0
  2726. package/node_modules/yocto-queue/license +9 -0
  2727. package/node_modules/yocto-queue/package.json +48 -0
  2728. package/node_modules/yocto-queue/readme.md +80 -0
  2729. package/package.json +103 -0
  2730. package/resources/skills/ab-test-analysis/SKILL.md +82 -0
  2731. package/resources/skills/agent-feed-publish/SKILL.md +63 -0
  2732. package/resources/skills/analyze-feature-requests/SKILL.md +49 -0
  2733. package/resources/skills/ansoff-matrix/SKILL.md +166 -0
  2734. package/resources/skills/awaken/SKILL.md +203 -0
  2735. package/resources/skills/beachhead-segment/SKILL.md +145 -0
  2736. package/resources/skills/brainstorm-experiments-existing/SKILL.md +51 -0
  2737. package/resources/skills/brainstorm-experiments-new/SKILL.md +45 -0
  2738. package/resources/skills/brainstorm-ideas-existing/SKILL.md +54 -0
  2739. package/resources/skills/brainstorm-ideas-new/SKILL.md +46 -0
  2740. package/resources/skills/brainstorm-okrs/SKILL.md +80 -0
  2741. package/resources/skills/brave-search/SKILL.md +85 -0
  2742. package/resources/skills/brave-search/content.js +86 -0
  2743. package/resources/skills/brave-search/package-lock.json +621 -0
  2744. package/resources/skills/brave-search/package.json +14 -0
  2745. package/resources/skills/brave-search/search.js +199 -0
  2746. package/resources/skills/browser-tools/SKILL.md +202 -0
  2747. package/resources/skills/browser-tools/browser-content.js +103 -0
  2748. package/resources/skills/browser-tools/browser-cookies.js +35 -0
  2749. package/resources/skills/browser-tools/browser-eval.js +53 -0
  2750. package/resources/skills/browser-tools/browser-hn-scraper.js +108 -0
  2751. package/resources/skills/browser-tools/browser-nav.js +44 -0
  2752. package/resources/skills/browser-tools/browser-pick.js +162 -0
  2753. package/resources/skills/browser-tools/browser-screenshot.js +34 -0
  2754. package/resources/skills/browser-tools/browser-start.js +86 -0
  2755. package/resources/skills/browser-tools/package-lock.json +2556 -0
  2756. package/resources/skills/browser-tools/package.json +19 -0
  2757. package/resources/skills/business-model/SKILL.md +133 -0
  2758. package/resources/skills/cohort-analysis/SKILL.md +114 -0
  2759. package/resources/skills/competitive-battlecard/SKILL.md +77 -0
  2760. package/resources/skills/competitor-analysis/SKILL.md +110 -0
  2761. package/resources/skills/create-prd/SKILL.md +86 -0
  2762. package/resources/skills/customer-journey-map/SKILL.md +65 -0
  2763. package/resources/skills/daily-brief/SKILL.md +321 -0
  2764. package/resources/skills/daily-brief/assets/rss-feeds.json +652 -0
  2765. package/resources/skills/daily-brief/scripts/rss_digest.py +339 -0
  2766. package/resources/skills/daily-brief/scripts/run_last30days.sh +115 -0
  2767. package/resources/skills/daily-brief/scripts/submit_brief.sh +48 -0
  2768. package/resources/skills/daily-brief/vendor/last30days/SKILL.md +1709 -0
  2769. package/resources/skills/daily-brief/vendor/last30days/agents/openai.yaml +8 -0
  2770. package/resources/skills/daily-brief/vendor/last30days/references/save-html-brief.md +90 -0
  2771. package/resources/skills/daily-brief/vendor/last30days/scripts/briefing.py +264 -0
  2772. package/resources/skills/daily-brief/vendor/last30days/scripts/build-skill.sh +39 -0
  2773. package/resources/skills/daily-brief/vendor/last30days/scripts/compare.sh +61 -0
  2774. package/resources/skills/daily-brief/vendor/last30days/scripts/evaluate_search_quality.py +554 -0
  2775. package/resources/skills/daily-brief/vendor/last30days/scripts/last30days.py +1036 -0
  2776. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/__init__.py +1 -0
  2777. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/bird_x.py +505 -0
  2778. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/bluesky.py +329 -0
  2779. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/categories.py +283 -0
  2780. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/chrome_cookies.py +322 -0
  2781. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/cluster.py +271 -0
  2782. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/competitors.py +199 -0
  2783. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/cookie_extract.py +403 -0
  2784. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/dates.py +120 -0
  2785. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/dedupe.py +130 -0
  2786. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/digg.py +414 -0
  2787. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/entity_extract.py +127 -0
  2788. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/env.py +744 -0
  2789. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/fanout.py +85 -0
  2790. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/fusion.py +207 -0
  2791. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/github.py +921 -0
  2792. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/grounding.py +324 -0
  2793. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/hackernews.py +338 -0
  2794. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/html_render.py +674 -0
  2795. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/http.py +261 -0
  2796. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/instagram.py +543 -0
  2797. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/log.py +28 -0
  2798. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/normalize.py +552 -0
  2799. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/perplexity.py +164 -0
  2800. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/pinterest.py +163 -0
  2801. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/pipeline.py +1132 -0
  2802. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/planner.py +714 -0
  2803. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/polymarket.py +786 -0
  2804. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/preflight.py +119 -0
  2805. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/providers.py +483 -0
  2806. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/quality_nudge.py +333 -0
  2807. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/query.py +117 -0
  2808. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/reddit.py +713 -0
  2809. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/reddit_enrich.py +322 -0
  2810. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/reddit_public.py +388 -0
  2811. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/relevance.py +168 -0
  2812. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/render.py +1779 -0
  2813. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/rerank.py +425 -0
  2814. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/resolve.py +345 -0
  2815. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/safari_cookies.py +193 -0
  2816. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/schema.py +319 -0
  2817. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/setup_wizard.py +536 -0
  2818. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/signals.py +253 -0
  2819. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/skill_meta.py +33 -0
  2820. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/snippet.py +51 -0
  2821. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/subproc.py +94 -0
  2822. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/threads.py +205 -0
  2823. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/tiktok.py +618 -0
  2824. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/truthsocial.py +168 -0
  2825. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/ui.py +616 -0
  2826. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/LICENSE +21 -0
  2827. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/bird-search.mjs +147 -0
  2828. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/cookies.js +220 -0
  2829. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/features.json +17 -0
  2830. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/paginate-cursor.js +37 -0
  2831. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/query-ids.json +20 -0
  2832. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/runtime-features.js +151 -0
  2833. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/runtime-query-ids.js +264 -0
  2834. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-base.js +129 -0
  2835. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-constants.js +50 -0
  2836. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-features.js +347 -0
  2837. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-search.js +157 -0
  2838. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-types.js +2 -0
  2839. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-utils.js +511 -0
  2840. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/vendor/bird-search/package.json +13 -0
  2841. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/xai_x.py +236 -0
  2842. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/xiaohongshu_api.py +162 -0
  2843. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/xquik.py +227 -0
  2844. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/xurl_x.py +172 -0
  2845. package/resources/skills/daily-brief/vendor/last30days/scripts/lib/youtube_yt.py +1035 -0
  2846. package/resources/skills/daily-brief/vendor/last30days/scripts/setup-keychain.sh +122 -0
  2847. package/resources/skills/daily-brief/vendor/last30days/scripts/store.py +991 -0
  2848. package/resources/skills/daily-brief/vendor/last30days/scripts/test-v1-vs-v2.sh +220 -0
  2849. package/resources/skills/daily-brief/vendor/last30days/scripts/test_device_auth.py +128 -0
  2850. package/resources/skills/daily-brief/vendor/last30days/scripts/verify_v3.py +195 -0
  2851. package/resources/skills/daily-brief/vendor/last30days/scripts/watchlist.py +293 -0
  2852. package/resources/skills/draft-nda/SKILL.md +160 -0
  2853. package/resources/skills/dummy-dataset/SKILL.md +114 -0
  2854. package/resources/skills/find-skills/SKILL.md +142 -0
  2855. package/resources/skills/grammar-check/SKILL.md +209 -0
  2856. package/resources/skills/growth-loops/SKILL.md +125 -0
  2857. package/resources/skills/gtm-motions/SKILL.md +155 -0
  2858. package/resources/skills/gtm-strategy/SKILL.md +94 -0
  2859. package/resources/skills/ideal-customer-profile/SKILL.md +164 -0
  2860. package/resources/skills/identify-assumptions-existing/SKILL.md +44 -0
  2861. package/resources/skills/identify-assumptions-new/SKILL.md +52 -0
  2862. package/resources/skills/interview-script/SKILL.md +105 -0
  2863. package/resources/skills/job-stories/SKILL.md +74 -0
  2864. package/resources/skills/lean-canvas/SKILL.md +121 -0
  2865. package/resources/skills/market-segments/SKILL.md +80 -0
  2866. package/resources/skills/market-sizing/SKILL.md +90 -0
  2867. package/resources/skills/marketing-ideas/SKILL.md +44 -0
  2868. package/resources/skills/metrics-dashboard/SKILL.md +94 -0
  2869. package/resources/skills/monetization-strategy/SKILL.md +150 -0
  2870. package/resources/skills/north-star-metric/SKILL.md +74 -0
  2871. package/resources/skills/opportunity-solution-tree/SKILL.md +64 -0
  2872. package/resources/skills/outcome-roadmap/SKILL.md +68 -0
  2873. package/resources/skills/pestle-analysis/SKILL.md +124 -0
  2874. package/resources/skills/pi-skills-source/LICENSE +21 -0
  2875. package/resources/skills/pi-skills-source/README.md +119 -0
  2876. package/resources/skills/pm-skills-source/LICENSE +21 -0
  2877. package/resources/skills/porters-five-forces/SKILL.md +212 -0
  2878. package/resources/skills/positioning-ideas/SKILL.md +61 -0
  2879. package/resources/skills/pre-mortem/SKILL.md +93 -0
  2880. package/resources/skills/pricing-strategy/SKILL.md +85 -0
  2881. package/resources/skills/prioritization-frameworks/SKILL.md +75 -0
  2882. package/resources/skills/prioritize-assumptions/SKILL.md +48 -0
  2883. package/resources/skills/prioritize-features/SKILL.md +52 -0
  2884. package/resources/skills/privacy-policy/SKILL.md +238 -0
  2885. package/resources/skills/product-name/SKILL.md +47 -0
  2886. package/resources/skills/product-setup/SKILL.md +143 -0
  2887. package/resources/skills/product-strategy/SKILL.md +111 -0
  2888. package/resources/skills/product-vision/SKILL.md +52 -0
  2889. package/resources/skills/release-notes/SKILL.md +63 -0
  2890. package/resources/skills/retro/SKILL.md +76 -0
  2891. package/resources/skills/review-resume/SKILL.md +221 -0
  2892. package/resources/skills/sentiment-analysis/SKILL.md +83 -0
  2893. package/resources/skills/skill-creator/LICENSE.txt +202 -0
  2894. package/resources/skills/skill-creator/SKILL.md +485 -0
  2895. package/resources/skills/skill-creator/agents/analyzer.md +274 -0
  2896. package/resources/skills/skill-creator/agents/comparator.md +202 -0
  2897. package/resources/skills/skill-creator/agents/grader.md +223 -0
  2898. package/resources/skills/skill-creator/assets/eval_review.html +146 -0
  2899. package/resources/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  2900. package/resources/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  2901. package/resources/skills/skill-creator/references/schemas.md +430 -0
  2902. package/resources/skills/skill-creator/scripts/__init__.py +0 -0
  2903. package/resources/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  2904. package/resources/skills/skill-creator/scripts/generate_report.py +326 -0
  2905. package/resources/skills/skill-creator/scripts/improve_description.py +247 -0
  2906. package/resources/skills/skill-creator/scripts/package_skill.py +136 -0
  2907. package/resources/skills/skill-creator/scripts/quick_validate.py +103 -0
  2908. package/resources/skills/skill-creator/scripts/run_eval.py +310 -0
  2909. package/resources/skills/skill-creator/scripts/run_loop.py +328 -0
  2910. package/resources/skills/skill-creator/scripts/utils.py +47 -0
  2911. package/resources/skills/sprint-plan/SKILL.md +67 -0
  2912. package/resources/skills/sql-queries/SKILL.md +87 -0
  2913. package/resources/skills/stakeholder-map/SKILL.md +51 -0
  2914. package/resources/skills/startup-canvas/SKILL.md +138 -0
  2915. package/resources/skills/summarize-interview/SKILL.md +53 -0
  2916. package/resources/skills/summarize-meeting/SKILL.md +81 -0
  2917. package/resources/skills/swot-analysis/SKILL.md +96 -0
  2918. package/resources/skills/test-scenarios/SKILL.md +86 -0
  2919. package/resources/skills/user-personas/SKILL.md +69 -0
  2920. package/resources/skills/user-segmentation/SKILL.md +88 -0
  2921. package/resources/skills/user-stories/SKILL.md +74 -0
  2922. package/resources/skills/value-prop-statements/SKILL.md +51 -0
  2923. package/resources/skills/value-proposition/SKILL.md +108 -0
  2924. package/resources/skills/wwas/SKILL.md +69 -0
  2925. package/src/autopm/action-proposals.js +534 -0
  2926. package/src/autopm/bootstrap.js +280 -0
  2927. package/src/autopm/cli.js +93 -0
  2928. package/src/autopm/command-tui.js +293 -0
  2929. package/src/autopm/context-commands.js +813 -0
  2930. package/src/autopm/context-connectors.js +629 -0
  2931. package/src/autopm/dashboard.js +757 -0
  2932. package/src/autopm/extension-runtime/bootstrap-guide.js +107 -0
  2933. package/src/autopm/extension-runtime/command-menus.js +42 -0
  2934. package/src/autopm/extension-runtime/contracts.js +191 -0
  2935. package/src/autopm/extension-runtime/dashboard-ui.js +306 -0
  2936. package/src/autopm/extension-runtime/loop-runtime.js +276 -0
  2937. package/src/autopm/extension-runtime/registry.js +23 -0
  2938. package/src/autopm/extension-runtime/runtime.js +2625 -0
  2939. package/src/autopm/extension.js +76 -0
  2940. package/src/autopm/heartbeat/cadence.js +237 -0
  2941. package/src/autopm/heartbeat/contracts.js +387 -0
  2942. package/src/autopm/heartbeat/file.js +538 -0
  2943. package/src/autopm/heartbeat/runner.js +640 -0
  2944. package/src/autopm/heartbeat/session-transcript.js +282 -0
  2945. package/src/autopm/heartbeat/state.js +514 -0
  2946. package/src/autopm/heartbeat/tasks.js +550 -0
  2947. package/src/autopm/heartbeat-commands.js +712 -0
  2948. package/src/autopm/heartbeat-tui.js +395 -0
  2949. package/src/autopm/loader-env.js +430 -0
  2950. package/src/autopm/loader.js +184 -0
  2951. package/src/autopm/loop-commands.js +924 -0
  2952. package/src/autopm/loop-tui.js +840 -0
  2953. package/src/autopm/memory/accepted-memory.js +715 -0
  2954. package/src/autopm/memory/candidates.js +305 -0
  2955. package/src/autopm/memory/canonicalize.js +697 -0
  2956. package/src/autopm/memory/chunk-store.js +259 -0
  2957. package/src/autopm/memory/chunker.js +464 -0
  2958. package/src/autopm/memory/contracts.js +493 -0
  2959. package/src/autopm/memory/doctor.js +427 -0
  2960. package/src/autopm/memory/entities.js +216 -0
  2961. package/src/autopm/memory/get.js +854 -0
  2962. package/src/autopm/memory/ingest.js +737 -0
  2963. package/src/autopm/memory/jobs.js +791 -0
  2964. package/src/autopm/memory/operations.js +931 -0
  2965. package/src/autopm/memory/paths.js +187 -0
  2966. package/src/autopm/memory/product-context-memory.js +285 -0
  2967. package/src/autopm/memory/projection.js +152 -0
  2968. package/src/autopm/memory/recall.js +678 -0
  2969. package/src/autopm/memory/redaction.js +322 -0
  2970. package/src/autopm/memory/registry.js +419 -0
  2971. package/src/autopm/memory/runtime.js +496 -0
  2972. package/src/autopm/memory/scheduler.js +507 -0
  2973. package/src/autopm/memory/scorer.js +408 -0
  2974. package/src/autopm/memory/search.js +652 -0
  2975. package/src/autopm/memory/source-store.js +270 -0
  2976. package/src/autopm/memory/status.js +334 -0
  2977. package/src/autopm/memory/store.js +675 -0
  2978. package/src/autopm/memory/summary-global.js +1050 -0
  2979. package/src/autopm/memory/summary-source.js +898 -0
  2980. package/src/autopm/memory/summary-topic.js +1087 -0
  2981. package/src/autopm/memory/tools.js +448 -0
  2982. package/src/autopm/memory/tree.js +816 -0
  2983. package/src/autopm/memory/wiki.js +226 -0
  2984. package/src/autopm/memory/worker.js +484 -0
  2985. package/src/autopm/memory-commands.js +1079 -0
  2986. package/src/autopm/modules/bootstrap/register.js +6 -0
  2987. package/src/autopm/modules/context/register.js +6 -0
  2988. package/src/autopm/modules/heartbeat/register.js +6 -0
  2989. package/src/autopm/modules/loop/register.js +6 -0
  2990. package/src/autopm/modules/memory/register.js +6 -0
  2991. package/src/autopm/modules/product-setup/register.js +7 -0
  2992. package/src/autopm/modules/venture/register.js +6 -0
  2993. package/src/autopm/native-commands.js +505 -0
  2994. package/src/autopm/objective-commands.js +372 -0
  2995. package/src/autopm/objective.js +444 -0
  2996. package/src/autopm/opportunities/briefs.js +58 -0
  2997. package/src/autopm/opportunities/contracts.js +20 -0
  2998. package/src/autopm/opportunities/schemas.js +35 -0
  2999. package/src/autopm/opportunities-commands.js +859 -0
  3000. package/src/autopm/plan-commands.js +344 -0
  3001. package/src/autopm/plan-proposals.js +907 -0
  3002. package/src/autopm/pm-skills.js +139 -0
  3003. package/src/autopm/product-context.js +745 -0
  3004. package/src/autopm/product-setup-documents.js +340 -0
  3005. package/src/autopm/resource-ownership.js +507 -0
  3006. package/src/autopm/runtime-context.js +432 -0
  3007. package/src/autopm/scheduler/contracts.js +298 -0
  3008. package/src/autopm/scheduler/runner.js +288 -0
  3009. package/src/autopm/scheduler/schedule.js +746 -0
  3010. package/src/autopm/scheduler/store.js +352 -0
  3011. package/src/autopm/ship-commands.js +413 -0
  3012. package/src/autopm/ship-readiness.js +851 -0
  3013. package/src/autopm/standalone-contract.js +146 -0
  3014. package/src/autopm/system-context.js +379 -0
  3015. package/src/autopm/system-prompt-files.js +382 -0
  3016. package/src/autopm/triage-commands.js +533 -0
  3017. package/src/autopm/venture-commands.js +1707 -0
  3018. package/src/venture-signal/collector.js +718 -0
  3019. package/src/venture-signal/contracts.js +482 -0
  3020. package/src/venture-signal/default-sources.js +316 -0
  3021. package/src/venture-signal/freshness.js +342 -0
  3022. package/src/venture-signal/normalizer.js +1439 -0
  3023. package/src/venture-signal/pm-writer.js +984 -0
  3024. package/src/venture-signal/policy.js +730 -0
  3025. package/src/venture-signal/runner.js +1685 -0
  3026. package/src/venture-signal/schemas.js +2188 -0
  3027. package/src/venture-signal/signal-analyst.js +722 -0
  3028. package/src/venture-signal/skeptic.js +724 -0
  3029. package/src/venture-signal/source-adapters.js +483 -0
  3030. package/src/venture-signal/taxonomy.js +880 -0
@@ -0,0 +1,4662 @@
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 "@earendil-works/pi-ai";
10
+ import { CombinedAutocompleteProvider, Container, fuzzyFilter, getCapabilities, hyperlink, Loader, Markdown, matchesKey, ProcessTerminal, Spacer, setKeybindings, Text, TruncatedText, TUI, visibleWidth, } from "@earendil-works/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 { BottomAnchorSpacer } from "./components/bottom-anchor-spacer.js";
38
+ import { BorderedLoader } from "./components/bordered-loader.js";
39
+ import { BranchSummaryMessageComponent } from "./components/branch-summary-message.js";
40
+ import { CompactionSummaryMessageComponent } from "./components/compaction-summary-message.js";
41
+ import { CountdownTimer } from "./components/countdown-timer.js";
42
+ import { CustomEditor } from "./components/custom-editor.js";
43
+ import { CustomMessageComponent } from "./components/custom-message.js";
44
+ import { DaxnutsComponent } from "./components/daxnuts.js";
45
+ import { DynamicBorder } from "./components/dynamic-border.js";
46
+ import { EarendilAnnouncementComponent } from "./components/earendil-announcement.js";
47
+ import { ExtensionEditorComponent } from "./components/extension-editor.js";
48
+ import { ExtensionInputComponent } from "./components/extension-input.js";
49
+ import { ExtensionSelectorComponent } from "./components/extension-selector.js";
50
+ import { FooterComponent } from "./components/footer.js";
51
+ import { formatKeyText, keyDisplayText, keyHint, keyText, rawKeyHint } from "./components/keybinding-hints.js";
52
+ import { LoginDialogComponent } from "./components/login-dialog.js";
53
+ import { ModelSelectorComponent } from "./components/model-selector.js";
54
+ import { OAuthSelectorComponent } from "./components/oauth-selector.js";
55
+ import { ScopedModelsSelectorComponent } from "./components/scoped-models-selector.js";
56
+ import { SessionSelectorComponent } from "./components/session-selector.js";
57
+ import { SettingsSelectorComponent } from "./components/settings-selector.js";
58
+ import { SkillInvocationMessageComponent } from "./components/skill-invocation-message.js";
59
+ import { ToolExecutionComponent } from "./components/tool-execution.js";
60
+ import { TreeSelectorComponent } from "./components/tree-selector.js";
61
+ import { UserMessageComponent } from "./components/user-message.js";
62
+ import { UserMessageSelectorComponent } from "./components/user-message-selector.js";
63
+ import { getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getThemeByName, initTheme, onThemeChange, setRegisteredThemes, setTheme, setThemeInstance, stopThemeWatcher, Theme, theme, } from "./theme/theme.js";
64
+ function isExpandable(obj) {
65
+ return typeof obj === "object" && obj !== null && "setExpanded" in obj && typeof obj.setExpanded === "function";
66
+ }
67
+ class ExpandableText extends Text {
68
+ getCollapsedText;
69
+ getExpandedText;
70
+ constructor(getCollapsedText, getExpandedText, expanded = false, paddingX = 0, paddingY = 0) {
71
+ super(expanded ? getExpandedText() : getCollapsedText(), paddingX, paddingY);
72
+ this.getCollapsedText = getCollapsedText;
73
+ this.getExpandedText = getExpandedText;
74
+ }
75
+ setExpanded(expanded) {
76
+ this.setText(expanded ? this.getExpandedText() : this.getCollapsedText());
77
+ }
78
+ }
79
+ const DEAD_TERMINAL_ERROR_CODES = new Set(["EIO", "EPIPE", "ENOTCONN"]);
80
+ function isAutoPmRuntime() {
81
+ return process.env.AUTOPM_RUNTIME_MODE === "autopm-launcher" ||
82
+ process.env.AUTOPM_PACKAGE_NAME === "autopm" ||
83
+ process.env.AUTOPM_BIN_NAME === "autopm";
84
+ }
85
+ function isDeadTerminalError(error) {
86
+ if (!error || typeof error !== "object" || !("code" in error)) {
87
+ return false;
88
+ }
89
+ const code = error.code;
90
+ return code !== undefined && DEAD_TERMINAL_ERROR_CODES.has(code);
91
+ }
92
+ 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.";
93
+ function isAnthropicSubscriptionAuthKey(apiKey) {
94
+ return typeof apiKey === "string" && apiKey.startsWith("sk-ant-oat");
95
+ }
96
+ function isUnknownModel(model) {
97
+ return !!model && model.provider === "unknown" && model.id === "unknown" && model.api === "unknown";
98
+ }
99
+ function hasDefaultModelProvider(providerId) {
100
+ return providerId in defaultModelPerProvider;
101
+ }
102
+ const BEDROCK_PROVIDER_ID = "amazon-bedrock";
103
+ const BUILT_IN_MODEL_PROVIDERS = new Set(getProviders());
104
+ export function isApiKeyLoginProvider(providerId, oauthProviderIds, builtInProviderIds = BUILT_IN_MODEL_PROVIDERS) {
105
+ if (BUILT_IN_PROVIDER_DISPLAY_NAMES[providerId]) {
106
+ return true;
107
+ }
108
+ if (builtInProviderIds.has(providerId)) {
109
+ return false;
110
+ }
111
+ return !oauthProviderIds.has(providerId);
112
+ }
113
+ export class InteractiveMode {
114
+ options;
115
+ runtimeHost;
116
+ ui;
117
+ chatContainer;
118
+ pendingMessagesContainer;
119
+ statusContainer;
120
+ defaultEditor;
121
+ editor;
122
+ editorComponentFactory;
123
+ autocompleteProvider;
124
+ autocompleteProviderWrappers = [];
125
+ fdPath;
126
+ bottomAnchorSpacer;
127
+ editorContainer;
128
+ footer;
129
+ footerDataProvider;
130
+ // Stored so the same manager can be injected into custom editors, selectors, and extension UI.
131
+ keybindings;
132
+ version;
133
+ isInitialized = false;
134
+ onInputCallback;
135
+ loadingAnimation = undefined;
136
+ workingMessage = undefined;
137
+ workingVisible = true;
138
+ workingIndicatorOptions = undefined;
139
+ defaultWorkingMessage = "Working...";
140
+ defaultHiddenThinkingLabel = "Thinking...";
141
+ hiddenThinkingLabel = this.defaultHiddenThinkingLabel;
142
+ lastSigintTime = 0;
143
+ lastEscapeTime = 0;
144
+ changelogMarkdown = undefined;
145
+ startupNoticesShown = false;
146
+ anthropicSubscriptionWarningShown = false;
147
+ // Status line tracking (for mutating immediately-sequential status updates)
148
+ lastStatusSpacer = undefined;
149
+ lastStatusText = undefined;
150
+ // Streaming message tracking
151
+ streamingComponent = undefined;
152
+ streamingMessage = undefined;
153
+ // Tool execution tracking: toolCallId -> component
154
+ pendingTools = new Map();
155
+ // Tool output expansion state
156
+ toolOutputExpanded = false;
157
+ // Thinking block visibility state
158
+ hideThinkingBlock = false;
159
+ // Skill commands: command name -> skill file path
160
+ skillCommands = new Map();
161
+ // Agent subscription unsubscribe function
162
+ unsubscribe;
163
+ signalCleanupHandlers = [];
164
+ // Track if editor is in bash mode (text starts with !)
165
+ isBashMode = false;
166
+ // Track current bash execution component
167
+ bashComponent = undefined;
168
+ // Track pending bash components (shown in pending area, moved to chat on submit)
169
+ pendingBashComponents = [];
170
+ // Auto-compaction state
171
+ autoCompactionLoader = undefined;
172
+ autoCompactionEscapeHandler;
173
+ // Auto-retry state
174
+ retryLoader = undefined;
175
+ retryCountdown = undefined;
176
+ retryEscapeHandler;
177
+ // Messages queued while compaction is running
178
+ compactionQueuedMessages = [];
179
+ // Shutdown state
180
+ shutdownRequested = false;
181
+ // Extension UI state
182
+ extensionSelector = undefined;
183
+ extensionInput = undefined;
184
+ extensionEditor = undefined;
185
+ extensionTerminalInputUnsubscribers = new Set();
186
+ // Extension widgets (components rendered above/below the editor)
187
+ extensionWidgetsAbove = new Map();
188
+ extensionWidgetsBelow = new Map();
189
+ widgetContainerAbove;
190
+ widgetContainerBelow;
191
+ // Custom footer from extension (undefined = use built-in footer)
192
+ customFooter = undefined;
193
+ // Header container that holds the built-in or custom header
194
+ headerContainer;
195
+ // Built-in header (logo + keybinding hints + changelog)
196
+ builtInHeader = undefined;
197
+ // Custom header from extension (undefined = use built-in header)
198
+ customHeader = undefined;
199
+ // Convenience accessors
200
+ get session() {
201
+ return this.runtimeHost.session;
202
+ }
203
+ get agent() {
204
+ return this.session.agent;
205
+ }
206
+ get sessionManager() {
207
+ return this.session.sessionManager;
208
+ }
209
+ get settingsManager() {
210
+ return this.session.settingsManager;
211
+ }
212
+ constructor(runtimeHost, options = {}) {
213
+ this.options = options;
214
+ this.runtimeHost = runtimeHost;
215
+ this.runtimeHost.setBeforeSessionInvalidate(() => {
216
+ this.resetExtensionUI();
217
+ });
218
+ this.runtimeHost.setRebindSession(async () => {
219
+ await this.rebindCurrentSession();
220
+ });
221
+ this.version = VERSION;
222
+ this.ui = new TUI(new ProcessTerminal(), this.settingsManager.getShowHardwareCursor());
223
+ this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink());
224
+ this.headerContainer = new Container();
225
+ this.chatContainer = new Container();
226
+ this.pendingMessagesContainer = new Container();
227
+ this.statusContainer = new Container();
228
+ this.widgetContainerAbove = new Container();
229
+ this.widgetContainerBelow = new Container();
230
+ this.keybindings = KeybindingsManager.create();
231
+ setKeybindings(this.keybindings);
232
+ const editorPaddingX = this.settingsManager.getEditorPaddingX();
233
+ const autocompleteMaxVisible = this.settingsManager.getAutocompleteMaxVisible();
234
+ this.defaultEditor = new CustomEditor(this.ui, getEditorTheme(), this.keybindings, {
235
+ paddingX: editorPaddingX,
236
+ autocompleteMaxVisible,
237
+ });
238
+ this.editor = this.defaultEditor;
239
+ this.editorContainer = new Container();
240
+ this.editorContainer.addChild(this.editor);
241
+ this.bottomAnchorSpacer = new BottomAnchorSpacer(() => this.ui.terminal.rows, () => [
242
+ this.headerContainer,
243
+ this.chatContainer,
244
+ this.pendingMessagesContainer,
245
+ this.statusContainer,
246
+ this.widgetContainerAbove,
247
+ ], () => [this.editorContainer, this.widgetContainerBelow, this.customFooter ?? this.footer]);
248
+ this.footerDataProvider = new FooterDataProvider(this.sessionManager.getCwd());
249
+ this.footer = new FooterComponent(this.session, this.footerDataProvider);
250
+ this.footer.setAutoCompactEnabled(this.session.autoCompactionEnabled);
251
+ // Load hide thinking block setting
252
+ this.hideThinkingBlock = this.settingsManager.getHideThinkingBlock();
253
+ // Register themes from resource loader and initialize
254
+ setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
255
+ initTheme(isAutoPmRuntime() ? "autopm" : this.settingsManager.getTheme(), true);
256
+ }
257
+ getAutocompleteSourceTag(sourceInfo) {
258
+ if (!sourceInfo) {
259
+ return undefined;
260
+ }
261
+ const scopePrefix = sourceInfo.scope === "user" ? "u" : sourceInfo.scope === "project" ? "p" : "t";
262
+ const source = sourceInfo.source.trim();
263
+ if (source === "auto" || source === "local" || source === "cli") {
264
+ return scopePrefix;
265
+ }
266
+ if (source.startsWith("npm:")) {
267
+ return `${scopePrefix}:${source}`;
268
+ }
269
+ const gitSource = parseGitUrl(source);
270
+ if (gitSource) {
271
+ const ref = gitSource.ref ? `@${gitSource.ref}` : "";
272
+ return `${scopePrefix}:git:${gitSource.host}/${gitSource.path}${ref}`;
273
+ }
274
+ return scopePrefix;
275
+ }
276
+ prefixAutocompleteDescription(description, sourceInfo) {
277
+ const sourceTag = this.getAutocompleteSourceTag(sourceInfo);
278
+ if (!sourceTag) {
279
+ return description;
280
+ }
281
+ return description ? `[${sourceTag}] ${description}` : `[${sourceTag}]`;
282
+ }
283
+ getBuiltInCommandConflictDiagnostics(extensionRunner) {
284
+ const builtinNames = new Set(BUILTIN_SLASH_COMMANDS.map((command) => command.name));
285
+ return extensionRunner
286
+ .getRegisteredCommands()
287
+ .filter((command) => builtinNames.has(command.name))
288
+ .map((command) => ({
289
+ type: "warning",
290
+ message: command.invocationName === command.name
291
+ ? `Extension command '/${command.name}' conflicts with built-in interactive command. Skipping in autocomplete.`
292
+ : `Extension command '/${command.name}' conflicts with built-in interactive command. Available as '/${command.invocationName}'.`,
293
+ path: command.sourceInfo.path,
294
+ }));
295
+ }
296
+ createBaseAutocompleteProvider() {
297
+ // Define commands for autocomplete
298
+ const slashCommands = BUILTIN_SLASH_COMMANDS.map((command) => ({
299
+ name: command.name,
300
+ description: command.description,
301
+ }));
302
+ const modelCommand = slashCommands.find((command) => command.name === "model");
303
+ if (modelCommand) {
304
+ modelCommand.getArgumentCompletions = (prefix) => {
305
+ // Get available models (scoped or from registry)
306
+ const models = this.session.scopedModels.length > 0
307
+ ? this.session.scopedModels.map((s) => s.model)
308
+ : this.session.modelRegistry.getAvailable();
309
+ if (models.length === 0)
310
+ return null;
311
+ // Create items with provider/id format
312
+ const items = models.map((m) => ({
313
+ id: m.id,
314
+ provider: m.provider,
315
+ label: `${m.provider}/${m.id}`,
316
+ }));
317
+ // Fuzzy filter by model ID + provider (allows "opus anthropic" to match)
318
+ const filtered = fuzzyFilter(items, prefix, (item) => `${item.id} ${item.provider}`);
319
+ if (filtered.length === 0)
320
+ return null;
321
+ return filtered.map((item) => ({
322
+ value: item.label,
323
+ label: item.id,
324
+ description: item.provider,
325
+ }));
326
+ };
327
+ }
328
+ // Convert prompt templates to SlashCommand format for autocomplete
329
+ const templateCommands = this.session.promptTemplates.map((cmd) => ({
330
+ name: cmd.name,
331
+ description: this.prefixAutocompleteDescription(cmd.description, cmd.sourceInfo),
332
+ ...(cmd.argumentHint && { argumentHint: cmd.argumentHint }),
333
+ }));
334
+ // Convert extension commands to SlashCommand format
335
+ const builtinCommandNames = new Set(slashCommands.map((c) => c.name));
336
+ const extensionCommands = this.session.extensionRunner
337
+ .getRegisteredCommands()
338
+ .filter((cmd) => !builtinCommandNames.has(cmd.name))
339
+ .map((cmd) => ({
340
+ name: cmd.invocationName,
341
+ description: this.prefixAutocompleteDescription(cmd.description, cmd.sourceInfo),
342
+ getArgumentCompletions: cmd.getArgumentCompletions,
343
+ }));
344
+ // Build skill commands from session.skills (if enabled)
345
+ this.skillCommands.clear();
346
+ const skillCommandList = [];
347
+ if (this.settingsManager.getEnableSkillCommands()) {
348
+ for (const skill of this.session.resourceLoader.getSkills().skills) {
349
+ const commandName = `skill:${skill.name}`;
350
+ this.skillCommands.set(commandName, skill.filePath);
351
+ skillCommandList.push({
352
+ name: commandName,
353
+ description: this.prefixAutocompleteDescription(skill.description, skill.sourceInfo),
354
+ });
355
+ }
356
+ }
357
+ return new CombinedAutocompleteProvider([...slashCommands, ...templateCommands, ...extensionCommands, ...skillCommandList], this.sessionManager.getCwd(), this.fdPath);
358
+ }
359
+ setupAutocompleteProvider() {
360
+ let provider = this.createBaseAutocompleteProvider();
361
+ for (const wrapProvider of this.autocompleteProviderWrappers) {
362
+ provider = wrapProvider(provider);
363
+ }
364
+ this.autocompleteProvider = provider;
365
+ this.defaultEditor.setAutocompleteProvider(provider);
366
+ if (this.editor !== this.defaultEditor) {
367
+ this.editor.setAutocompleteProvider?.(provider);
368
+ }
369
+ }
370
+ showStartupNoticesIfNeeded() {
371
+ if (this.startupNoticesShown) {
372
+ return;
373
+ }
374
+ this.startupNoticesShown = true;
375
+ if (!this.changelogMarkdown) {
376
+ return;
377
+ }
378
+ if (this.chatContainer.children.length > 0) {
379
+ this.chatContainer.addChild(new Spacer(1));
380
+ }
381
+ this.chatContainer.addChild(new DynamicBorder());
382
+ if (this.settingsManager.getCollapseChangelog()) {
383
+ const versionMatch = this.changelogMarkdown.match(/##\s+\[?(\d+\.\d+\.\d+)\]?/);
384
+ const latestVersion = versionMatch ? versionMatch[1] : this.version;
385
+ const condensedText = `Updated to v${latestVersion}. Use ${theme.bold("/changelog")} to view full changelog.`;
386
+ this.chatContainer.addChild(new Text(condensedText, 1, 0));
387
+ }
388
+ else {
389
+ this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "What's New")), 1, 0));
390
+ this.chatContainer.addChild(new Spacer(1));
391
+ this.chatContainer.addChild(new Markdown(this.changelogMarkdown.trim(), 1, 0, this.getMarkdownThemeWithSettings()));
392
+ this.chatContainer.addChild(new Spacer(1));
393
+ }
394
+ this.chatContainer.addChild(new DynamicBorder());
395
+ }
396
+ async init() {
397
+ if (this.isInitialized)
398
+ return;
399
+ this.registerSignalHandlers();
400
+ // Load changelog (only show new entries, skip for resumed sessions)
401
+ this.changelogMarkdown = this.getChangelogForDisplay();
402
+ // Ensure fd and rg are available (downloads if missing, adds to PATH via getBinDir)
403
+ // Both are needed: fd for autocomplete, rg for grep tool and bash commands
404
+ const [fdPath] = await Promise.all([ensureTool("fd"), ensureTool("rg")]);
405
+ this.fdPath = fdPath;
406
+ if (this.session.scopedModels.length > 0 && (this.options.verbose || !this.settingsManager.getQuietStartup())) {
407
+ const modelList = this.session.scopedModels
408
+ .map((sm) => {
409
+ const thinkingStr = sm.thinkingLevel ? `:${sm.thinkingLevel}` : "";
410
+ return `${sm.model.id}${thinkingStr}`;
411
+ })
412
+ .join(", ");
413
+ const cycleKeys = this.keybindings.getKeys("app.model.cycleForward");
414
+ const cycleHint = cycleKeys.length > 0
415
+ ? theme.fg("muted", ` (${formatKeyText(cycleKeys.join("/"), { capitalize: true })} to cycle)`)
416
+ : "";
417
+ console.log(theme.fg("dim", `Model scope: ${modelList}${cycleHint}`));
418
+ }
419
+ // Add header container as first child
420
+ this.ui.addChild(this.headerContainer);
421
+ // Add header with keybindings from config (unless silenced)
422
+ if (isAutoPmRuntime()) {
423
+ // AutoPM owns its startup banner via the extension dashboard header.
424
+ // Keep a placeholder so extension setHeader() can replace it.
425
+ this.builtInHeader = new Text("", 0, 0);
426
+ this.headerContainer.addChild(this.builtInHeader);
427
+ }
428
+ else if (this.options.verbose || !this.settingsManager.getQuietStartup()) {
429
+ const logo = theme.bold(theme.fg("accent", APP_NAME)) + theme.fg("dim", ` v${this.version}`);
430
+ // Build startup instructions using keybinding hint helpers
431
+ const hint = (keybinding, description) => keyHint(keybinding, description);
432
+ const expandedInstructions = [
433
+ hint("app.interrupt", "to interrupt"),
434
+ hint("app.clear", "to clear"),
435
+ rawKeyHint(`${keyText("app.clear")} twice`, "to exit"),
436
+ hint("app.exit", "to exit (empty)"),
437
+ hint("app.suspend", "to suspend"),
438
+ keyHint("tui.editor.deleteToLineEnd", "to delete to end"),
439
+ hint("app.thinking.cycle", "to cycle thinking level"),
440
+ rawKeyHint(`${keyText("app.model.cycleForward")}/${keyText("app.model.cycleBackward")}`, "to cycle models"),
441
+ hint("app.model.select", "to select model"),
442
+ hint("app.tools.expand", "to expand tools"),
443
+ hint("app.thinking.toggle", "to expand thinking"),
444
+ hint("app.editor.external", "for external editor"),
445
+ rawKeyHint("/", "for commands"),
446
+ rawKeyHint("!", "to run bash"),
447
+ rawKeyHint("!!", "to run bash (no context)"),
448
+ hint("app.message.followUp", "to queue follow-up"),
449
+ hint("app.message.dequeue", "to edit all queued messages"),
450
+ hint("app.clipboard.pasteImage", "to paste image"),
451
+ rawKeyHint("drop files", "to attach"),
452
+ ].join("\n");
453
+ const compactInstructions = [
454
+ hint("app.interrupt", "interrupt"),
455
+ rawKeyHint(`${keyText("app.clear")}/${keyText("app.exit")}`, "clear/exit"),
456
+ rawKeyHint("/", "commands"),
457
+ rawKeyHint("!", "bash"),
458
+ hint("app.tools.expand", "more"),
459
+ ].join(theme.fg("muted", " · "));
460
+ const compactOnboardingText = `Press ${keyText("app.tools.expand")} to show full startup help and loaded resources.`;
461
+ const onboardingText = "Pi can explain its own features and look up its docs. Ask it how to use or extend Pi.";
462
+ const compactOnboarding = theme.fg("dim", compactOnboardingText);
463
+ const onboarding = theme.fg("dim", onboardingText);
464
+ const collapsedHeader = () => `${logo}\n${compactInstructions}\n${compactOnboarding}\n\n${onboarding}`;
465
+ this.builtInHeader = new ExpandableText(collapsedHeader, () => `${logo}\n${expandedInstructions}\n\n${onboarding}`, this.getStartupExpansionState(), 1, 0);
466
+ // Setup UI layout
467
+ this.headerContainer.addChild(new Spacer(1));
468
+ this.headerContainer.addChild(this.builtInHeader);
469
+ this.headerContainer.addChild(new Spacer(1));
470
+ }
471
+ else {
472
+ // Minimal header when silenced
473
+ this.builtInHeader = new Text("", 0, 0);
474
+ this.headerContainer.addChild(this.builtInHeader);
475
+ }
476
+ this.ui.addChild(this.chatContainer);
477
+ this.ui.addChild(this.pendingMessagesContainer);
478
+ this.ui.addChild(this.statusContainer);
479
+ this.renderWidgets(); // Initialize with default spacer
480
+ this.ui.addChild(this.widgetContainerAbove);
481
+ this.ui.addChild(this.bottomAnchorSpacer);
482
+ this.ui.addChild(this.editorContainer);
483
+ this.ui.addChild(this.widgetContainerBelow);
484
+ this.ui.addChild(this.footer);
485
+ this.ui.setFocus(this.editor);
486
+ this.setupKeyHandlers();
487
+ this.setupEditorSubmitHandler();
488
+ // Start the UI before initializing extensions so session_start handlers can use interactive dialogs
489
+ this.ui.start();
490
+ this.isInitialized = true;
491
+ // Initialize extensions first so resources are shown before messages
492
+ await this.rebindCurrentSession();
493
+ // Render initial messages AFTER showing loaded resources
494
+ this.renderInitialMessages();
495
+ // Set up theme file watcher
496
+ onThemeChange(() => {
497
+ this.ui.invalidate();
498
+ this.updateEditorBorderColor();
499
+ this.ui.requestRender();
500
+ });
501
+ // Set up git branch watcher (uses provider instead of footer)
502
+ this.footerDataProvider.onBranchChange(() => {
503
+ this.ui.requestRender();
504
+ });
505
+ // Initialize available provider count for footer display
506
+ await this.updateAvailableProviderCount();
507
+ }
508
+ /**
509
+ * Update terminal title with session name and cwd.
510
+ */
511
+ updateTerminalTitle() {
512
+ const cwdBasename = path.basename(this.sessionManager.getCwd());
513
+ const sessionName = this.sessionManager.getSessionName();
514
+ if (sessionName) {
515
+ this.ui.terminal.setTitle(`${APP_TITLE} - ${sessionName} - ${cwdBasename}`);
516
+ }
517
+ else {
518
+ this.ui.terminal.setTitle(`${APP_TITLE} - ${cwdBasename}`);
519
+ }
520
+ }
521
+ /**
522
+ * Run the interactive mode. This is the main entry point.
523
+ * Initializes the UI, shows warnings, processes initial messages, and starts the interactive loop.
524
+ */
525
+ async run() {
526
+ await this.init();
527
+ // Start version/package update checks asynchronously. AutoPM's standalone
528
+ // runtime already reports local-manual release state in its own dashboard;
529
+ // surfacing Pi package update banners here makes first-run setup look broken.
530
+ if (!isAutoPmRuntime()) {
531
+ checkForNewPiVersion(this.version).then((newVersion) => {
532
+ if (newVersion) {
533
+ this.showNewVersionNotification(newVersion);
534
+ }
535
+ });
536
+ this.checkForPackageUpdates().then((updates) => {
537
+ if (updates.length > 0) {
538
+ this.showPackageUpdateNotification(updates);
539
+ }
540
+ });
541
+ }
542
+ // Check tmux keyboard setup asynchronously
543
+ this.checkTmuxKeyboardSetup().then((warning) => {
544
+ if (warning) {
545
+ this.showWarning(warning);
546
+ }
547
+ });
548
+ // Show startup warnings
549
+ const { migratedProviders, modelFallbackMessage, initialMessage, initialImages, initialMessages } = this.options;
550
+ if (migratedProviders && migratedProviders.length > 0) {
551
+ this.showWarning(`Migrated credentials to auth.json: ${migratedProviders.join(", ")}`);
552
+ }
553
+ const modelsJsonError = this.session.modelRegistry.getError();
554
+ if (modelsJsonError) {
555
+ this.showError(`models.json error: ${modelsJsonError}`);
556
+ }
557
+ if (modelFallbackMessage) {
558
+ this.showWarning(modelFallbackMessage);
559
+ }
560
+ void this.maybeWarnAboutAnthropicSubscriptionAuth();
561
+ // Process initial messages
562
+ if (initialMessage) {
563
+ try {
564
+ await this.session.prompt(initialMessage, { images: initialImages });
565
+ }
566
+ catch (error) {
567
+ const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
568
+ this.showError(errorMessage);
569
+ }
570
+ }
571
+ if (initialMessages) {
572
+ for (const message of initialMessages) {
573
+ try {
574
+ await this.session.prompt(message);
575
+ }
576
+ catch (error) {
577
+ const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
578
+ this.showError(errorMessage);
579
+ }
580
+ }
581
+ }
582
+ // Main interactive loop
583
+ while (true) {
584
+ const userInput = await this.getUserInput();
585
+ try {
586
+ await this.session.prompt(userInput);
587
+ }
588
+ catch (error) {
589
+ const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
590
+ this.showError(errorMessage);
591
+ }
592
+ }
593
+ }
594
+ async checkForPackageUpdates() {
595
+ if (process.env.PI_OFFLINE) {
596
+ return [];
597
+ }
598
+ try {
599
+ const packageManager = new DefaultPackageManager({
600
+ cwd: this.sessionManager.getCwd(),
601
+ agentDir: getAgentDir(),
602
+ settingsManager: this.settingsManager,
603
+ });
604
+ const updates = await packageManager.checkForAvailableUpdates();
605
+ return updates.map((update) => update.displayName);
606
+ }
607
+ catch {
608
+ return [];
609
+ }
610
+ }
611
+ async checkTmuxKeyboardSetup() {
612
+ if (!process.env.TMUX)
613
+ return undefined;
614
+ const runTmuxShow = (option) => {
615
+ return new Promise((resolve) => {
616
+ const proc = spawn("tmux", ["show", "-gv", option], {
617
+ stdio: ["ignore", "pipe", "ignore"],
618
+ });
619
+ let stdout = "";
620
+ const timer = setTimeout(() => {
621
+ proc.kill();
622
+ resolve(undefined);
623
+ }, 2000);
624
+ proc.stdout?.on("data", (data) => {
625
+ stdout += data.toString();
626
+ });
627
+ proc.on("error", () => {
628
+ clearTimeout(timer);
629
+ resolve(undefined);
630
+ });
631
+ proc.on("close", (code) => {
632
+ clearTimeout(timer);
633
+ resolve(code === 0 ? stdout.trim() : undefined);
634
+ });
635
+ });
636
+ };
637
+ const [extendedKeys, extendedKeysFormat] = await Promise.all([
638
+ runTmuxShow("extended-keys"),
639
+ runTmuxShow("extended-keys-format"),
640
+ ]);
641
+ // If we couldn't query tmux (timeout, sandbox, etc.), don't warn
642
+ if (extendedKeys === undefined)
643
+ return undefined;
644
+ if (extendedKeys !== "on" && extendedKeys !== "always") {
645
+ return "tmux extended-keys is off. Modified Enter keys may not work. Add `set -g extended-keys on` to ~/.tmux.conf and restart tmux.";
646
+ }
647
+ if (extendedKeysFormat === "xterm") {
648
+ 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.";
649
+ }
650
+ return undefined;
651
+ }
652
+ /**
653
+ * Get changelog entries to display on startup.
654
+ * Only shows new entries since last seen version, skips for resumed sessions.
655
+ */
656
+ getChangelogForDisplay() {
657
+ if (isAutoPmRuntime()) {
658
+ return undefined;
659
+ }
660
+ // Skip changelog for resumed/continued sessions (already have messages)
661
+ if (this.session.state.messages.length > 0) {
662
+ return undefined;
663
+ }
664
+ const lastVersion = this.settingsManager.getLastChangelogVersion();
665
+ const changelogPath = getChangelogPath();
666
+ const entries = parseChangelog(changelogPath);
667
+ if (!lastVersion) {
668
+ // Fresh install - record the version, send telemetry, don't show changelog
669
+ this.settingsManager.setLastChangelogVersion(VERSION);
670
+ this.reportInstallTelemetry(VERSION);
671
+ return undefined;
672
+ }
673
+ const newEntries = getNewEntries(entries, lastVersion);
674
+ if (newEntries.length > 0) {
675
+ this.settingsManager.setLastChangelogVersion(VERSION);
676
+ this.reportInstallTelemetry(VERSION);
677
+ return newEntries.map((e) => e.content).join("\n\n");
678
+ }
679
+ return undefined;
680
+ }
681
+ reportInstallTelemetry(version) {
682
+ if (process.env.PI_OFFLINE) {
683
+ return;
684
+ }
685
+ if (!isInstallTelemetryEnabled(this.settingsManager)) {
686
+ return;
687
+ }
688
+ void fetch(`https://pi.dev/api/report-install?version=${encodeURIComponent(version)}`, {
689
+ headers: {
690
+ "User-Agent": getPiUserAgent(version),
691
+ },
692
+ signal: AbortSignal.timeout(5000),
693
+ })
694
+ .then(() => undefined)
695
+ .catch(() => undefined);
696
+ }
697
+ getMarkdownThemeWithSettings() {
698
+ return {
699
+ ...getMarkdownTheme(),
700
+ codeBlockIndent: this.settingsManager.getCodeBlockIndent(),
701
+ };
702
+ }
703
+ // =========================================================================
704
+ // Extension System
705
+ // =========================================================================
706
+ formatDisplayPath(p) {
707
+ const home = os.homedir();
708
+ let result = p;
709
+ // Replace home directory with ~
710
+ if (result.startsWith(home)) {
711
+ result = `~${result.slice(home.length)}`;
712
+ }
713
+ return result;
714
+ }
715
+ formatExtensionDisplayPath(path) {
716
+ let result = this.formatDisplayPath(path);
717
+ result = result.replace(/\/index\.ts$/, "").replace(/\/index\.js$/, "");
718
+ return result;
719
+ }
720
+ formatContextPath(p) {
721
+ const cwd = path.resolve(this.sessionManager.getCwd());
722
+ const absolutePath = path.isAbsolute(p) ? path.resolve(p) : path.resolve(cwd, p);
723
+ const relativePath = getCwdRelativePath(absolutePath, cwd);
724
+ if (relativePath !== undefined) {
725
+ return relativePath;
726
+ }
727
+ return this.formatDisplayPath(absolutePath);
728
+ }
729
+ getStartupExpansionState() {
730
+ return this.options.verbose || this.toolOutputExpanded;
731
+ }
732
+ /**
733
+ * Get a short path relative to the package root for display.
734
+ */
735
+ getShortPath(fullPath, sourceInfo) {
736
+ const baseDir = sourceInfo?.baseDir;
737
+ if (baseDir && this.isPackageSource(sourceInfo)) {
738
+ const relativePath = path.relative(path.resolve(baseDir), path.resolve(fullPath));
739
+ if (relativePath &&
740
+ relativePath !== "." &&
741
+ !relativePath.startsWith("..") &&
742
+ !relativePath.startsWith(`..${path.sep}`) &&
743
+ !path.isAbsolute(relativePath)) {
744
+ return relativePath.replace(/\\/g, "/");
745
+ }
746
+ }
747
+ const source = sourceInfo?.source ?? "";
748
+ const npmMatch = fullPath.match(/node_modules\/(@?[^/]+(?:\/[^/]+)?)\/(.*)/);
749
+ if (npmMatch && source.startsWith("npm:")) {
750
+ return npmMatch[2];
751
+ }
752
+ const gitMatch = fullPath.match(/git\/[^/]+\/[^/]+\/(.*)/);
753
+ if (gitMatch && source.startsWith("git:")) {
754
+ return gitMatch[1];
755
+ }
756
+ return this.formatDisplayPath(fullPath);
757
+ }
758
+ getCompactPathLabel(resourcePath, sourceInfo) {
759
+ const shortPath = this.getShortPath(resourcePath, sourceInfo);
760
+ const normalizedPath = shortPath.replace(/\\/g, "/");
761
+ const segments = normalizedPath.split("/").filter((segment) => segment.length > 0 && segment !== "~");
762
+ if (segments.length > 0) {
763
+ return segments[segments.length - 1];
764
+ }
765
+ return shortPath;
766
+ }
767
+ getCompactPackageSourceLabel(sourceInfo) {
768
+ const source = sourceInfo?.source ?? "";
769
+ if (source.startsWith("npm:")) {
770
+ return source.slice("npm:".length) || source;
771
+ }
772
+ const gitSource = parseGitUrl(source);
773
+ if (gitSource) {
774
+ return gitSource.path || source;
775
+ }
776
+ return source;
777
+ }
778
+ getCompactExtensionLabel(resourcePath, sourceInfo) {
779
+ if (!this.isPackageSource(sourceInfo)) {
780
+ return this.getCompactPathLabel(resourcePath, sourceInfo);
781
+ }
782
+ const sourceLabel = this.getCompactPackageSourceLabel(sourceInfo);
783
+ if (!sourceLabel) {
784
+ return this.getCompactPathLabel(resourcePath, sourceInfo);
785
+ }
786
+ const shortPath = this.getShortPath(resourcePath, sourceInfo).replace(/\\/g, "/");
787
+ const packagePath = shortPath.startsWith("extensions/") ? shortPath.slice("extensions/".length) : shortPath;
788
+ const parsedPath = path.posix.parse(packagePath);
789
+ if (parsedPath.name === "index") {
790
+ return !parsedPath.dir || parsedPath.dir === "." ? sourceLabel : `${sourceLabel}:${parsedPath.dir}`;
791
+ }
792
+ return `${sourceLabel}:${packagePath}`;
793
+ }
794
+ getCompactDisplayPathSegments(resourcePath) {
795
+ return this.formatDisplayPath(resourcePath)
796
+ .replace(/\\/g, "/")
797
+ .split("/")
798
+ .filter((segment) => segment.length > 0 && segment !== "~");
799
+ }
800
+ getCompactNonPackageExtensionLabel(resourcePath, index, allPaths) {
801
+ const segments = allPaths[index]?.segments;
802
+ if (!segments || segments.length === 0) {
803
+ return this.getCompactPathLabel(resourcePath);
804
+ }
805
+ for (let segmentCount = 1; segmentCount <= segments.length; segmentCount += 1) {
806
+ const candidate = segments.slice(-segmentCount).join("/");
807
+ const isUnique = allPaths.every((item, itemIndex) => {
808
+ if (itemIndex === index) {
809
+ return true;
810
+ }
811
+ return item.segments.slice(-segmentCount).join("/") !== candidate;
812
+ });
813
+ if (isUnique) {
814
+ return candidate;
815
+ }
816
+ }
817
+ return segments.join("/");
818
+ }
819
+ getCompactExtensionLabels(extensions) {
820
+ const nonPackageExtensions = extensions
821
+ .map((extension) => {
822
+ const segments = this.getCompactDisplayPathSegments(extension.path);
823
+ const lastSegment = segments[segments.length - 1];
824
+ if (segments.length > 1 && (lastSegment === "index.ts" || lastSegment === "index.js")) {
825
+ segments.pop();
826
+ }
827
+ return {
828
+ path: extension.path,
829
+ sourceInfo: extension.sourceInfo,
830
+ segments,
831
+ };
832
+ })
833
+ .filter((extension) => !this.isPackageSource(extension.sourceInfo));
834
+ return extensions.map((extension) => {
835
+ if (this.isPackageSource(extension.sourceInfo)) {
836
+ return this.getCompactExtensionLabel(extension.path, extension.sourceInfo);
837
+ }
838
+ const nonPackageIndex = nonPackageExtensions.findIndex((item) => item.path === extension.path);
839
+ if (nonPackageIndex === -1) {
840
+ return this.getCompactPathLabel(extension.path, extension.sourceInfo);
841
+ }
842
+ return this.getCompactNonPackageExtensionLabel(extension.path, nonPackageIndex, nonPackageExtensions);
843
+ });
844
+ }
845
+ getDisplaySourceInfo(sourceInfo) {
846
+ const source = sourceInfo?.source ?? "local";
847
+ const scope = sourceInfo?.scope ?? "project";
848
+ if (source === "local") {
849
+ if (scope === "user") {
850
+ return { label: "user", color: "muted" };
851
+ }
852
+ if (scope === "project") {
853
+ return { label: "project", color: "muted" };
854
+ }
855
+ if (scope === "temporary") {
856
+ return { label: "path", scopeLabel: "temp", color: "muted" };
857
+ }
858
+ return { label: "path", color: "muted" };
859
+ }
860
+ if (source === "cli") {
861
+ return { label: "path", scopeLabel: scope === "temporary" ? "temp" : undefined, color: "muted" };
862
+ }
863
+ const scopeLabel = scope === "user" ? "user" : scope === "project" ? "project" : scope === "temporary" ? "temp" : undefined;
864
+ return { label: source, scopeLabel, color: "accent" };
865
+ }
866
+ getScopeGroup(sourceInfo) {
867
+ const source = sourceInfo?.source ?? "local";
868
+ const scope = sourceInfo?.scope ?? "project";
869
+ if (source === "cli" || scope === "temporary")
870
+ return "path";
871
+ if (scope === "user")
872
+ return "user";
873
+ if (scope === "project")
874
+ return "project";
875
+ return "path";
876
+ }
877
+ isPackageSource(sourceInfo) {
878
+ const source = sourceInfo?.source ?? "";
879
+ return source.startsWith("npm:") || source.startsWith("git:");
880
+ }
881
+ buildScopeGroups(items) {
882
+ const groups = {
883
+ user: { scope: "user", paths: [], packages: new Map() },
884
+ project: { scope: "project", paths: [], packages: new Map() },
885
+ path: { scope: "path", paths: [], packages: new Map() },
886
+ };
887
+ for (const item of items) {
888
+ const groupKey = this.getScopeGroup(item.sourceInfo);
889
+ const group = groups[groupKey];
890
+ const source = item.sourceInfo?.source ?? "local";
891
+ if (this.isPackageSource(item.sourceInfo)) {
892
+ const list = group.packages.get(source) ?? [];
893
+ list.push(item);
894
+ group.packages.set(source, list);
895
+ }
896
+ else {
897
+ group.paths.push(item);
898
+ }
899
+ }
900
+ return [groups.project, groups.user, groups.path].filter((group) => group.paths.length > 0 || group.packages.size > 0);
901
+ }
902
+ formatScopeGroups(groups, options) {
903
+ const lines = [];
904
+ for (const group of groups) {
905
+ lines.push(` ${theme.fg("accent", group.scope)}`);
906
+ const sortedPaths = [...group.paths].sort((a, b) => a.path.localeCompare(b.path));
907
+ for (const item of sortedPaths) {
908
+ lines.push(theme.fg("dim", ` ${options.formatPath(item)}`));
909
+ }
910
+ const sortedPackages = Array.from(group.packages.entries()).sort(([a], [b]) => a.localeCompare(b));
911
+ for (const [source, items] of sortedPackages) {
912
+ lines.push(` ${theme.fg("mdLink", source)}`);
913
+ const sortedPackagePaths = [...items].sort((a, b) => a.path.localeCompare(b.path));
914
+ for (const item of sortedPackagePaths) {
915
+ lines.push(theme.fg("dim", ` ${options.formatPackagePath(item, source)}`));
916
+ }
917
+ }
918
+ }
919
+ return lines.join("\n");
920
+ }
921
+ findSourceInfoForPath(p, sourceInfos) {
922
+ const exact = sourceInfos.get(p);
923
+ if (exact)
924
+ return exact;
925
+ let current = p;
926
+ while (current.includes("/")) {
927
+ current = current.substring(0, current.lastIndexOf("/"));
928
+ const parent = sourceInfos.get(current);
929
+ if (parent)
930
+ return parent;
931
+ }
932
+ return undefined;
933
+ }
934
+ formatPathWithSource(p, sourceInfo) {
935
+ if (sourceInfo) {
936
+ const shortPath = this.getShortPath(p, sourceInfo);
937
+ const { label, scopeLabel } = this.getDisplaySourceInfo(sourceInfo);
938
+ const labelText = scopeLabel ? `${label} (${scopeLabel})` : label;
939
+ return `${labelText} ${shortPath}`;
940
+ }
941
+ return this.formatDisplayPath(p);
942
+ }
943
+ formatDiagnostics(diagnostics, sourceInfos) {
944
+ const lines = [];
945
+ // Group collision diagnostics by name
946
+ const collisions = new Map();
947
+ const otherDiagnostics = [];
948
+ for (const d of diagnostics) {
949
+ if (d.type === "collision" && d.collision) {
950
+ const list = collisions.get(d.collision.name) ?? [];
951
+ list.push(d);
952
+ collisions.set(d.collision.name, list);
953
+ }
954
+ else {
955
+ otherDiagnostics.push(d);
956
+ }
957
+ }
958
+ // Format collision diagnostics grouped by name
959
+ for (const [name, collisionList] of collisions) {
960
+ const first = collisionList[0]?.collision;
961
+ if (!first)
962
+ continue;
963
+ lines.push(theme.fg("warning", ` "${name}" collision:`));
964
+ lines.push(theme.fg("dim", ` ${theme.fg("success", "✓")} ${this.formatPathWithSource(first.winnerPath, this.findSourceInfoForPath(first.winnerPath, sourceInfos))}`));
965
+ for (const d of collisionList) {
966
+ if (d.collision) {
967
+ lines.push(theme.fg("dim", ` ${theme.fg("warning", "✗")} ${this.formatPathWithSource(d.collision.loserPath, this.findSourceInfoForPath(d.collision.loserPath, sourceInfos))} (skipped)`));
968
+ }
969
+ }
970
+ }
971
+ for (const d of otherDiagnostics) {
972
+ if (d.path) {
973
+ const formattedPath = this.formatPathWithSource(d.path, this.findSourceInfoForPath(d.path, sourceInfos));
974
+ lines.push(theme.fg(d.type === "error" ? "error" : "warning", ` ${formattedPath}`));
975
+ lines.push(theme.fg(d.type === "error" ? "error" : "warning", ` ${d.message}`));
976
+ }
977
+ else {
978
+ lines.push(theme.fg(d.type === "error" ? "error" : "warning", ` ${d.message}`));
979
+ }
980
+ }
981
+ return lines.join("\n");
982
+ }
983
+ showLoadedResources(options) {
984
+ const showListing = options?.force || this.options.verbose || (!this.settingsManager.getQuietStartup() && !isAutoPmRuntime());
985
+ const showDiagnostics = showListing || options?.showDiagnosticsWhenQuiet === true;
986
+ if (!showListing && !showDiagnostics) {
987
+ return;
988
+ }
989
+ const sectionHeader = (name, color = "mdHeading") => theme.fg(color, `[${name}]`);
990
+ const formatCompactList = (items, options) => {
991
+ const labels = items.map((item) => item.trim()).filter((item) => item.length > 0);
992
+ if (options?.sort !== false) {
993
+ labels.sort((a, b) => a.localeCompare(b));
994
+ }
995
+ return theme.fg("dim", ` ${labels.join(", ")}`);
996
+ };
997
+ const addLoadedSection = (name, collapsedBody, expandedBody = collapsedBody, color = "mdHeading") => {
998
+ const section = new ExpandableText(() => `${sectionHeader(name, color)}\n${collapsedBody}`, () => `${sectionHeader(name, color)}\n${expandedBody}`, this.getStartupExpansionState(), 0, 0);
999
+ this.chatContainer.addChild(section);
1000
+ this.chatContainer.addChild(new Spacer(1));
1001
+ };
1002
+ const skillsResult = this.session.resourceLoader.getSkills();
1003
+ const promptsResult = this.session.resourceLoader.getPrompts();
1004
+ const themesResult = this.session.resourceLoader.getThemes();
1005
+ const extensions = options?.extensions ??
1006
+ this.session.resourceLoader.getExtensions().extensions.map((extension) => ({
1007
+ path: extension.path,
1008
+ sourceInfo: extension.sourceInfo,
1009
+ }));
1010
+ const sourceInfos = new Map();
1011
+ for (const extension of extensions) {
1012
+ if (extension.sourceInfo) {
1013
+ sourceInfos.set(extension.path, extension.sourceInfo);
1014
+ }
1015
+ }
1016
+ for (const skill of skillsResult.skills) {
1017
+ if (skill.sourceInfo) {
1018
+ sourceInfos.set(skill.filePath, skill.sourceInfo);
1019
+ }
1020
+ }
1021
+ for (const prompt of promptsResult.prompts) {
1022
+ if (prompt.sourceInfo) {
1023
+ sourceInfos.set(prompt.filePath, prompt.sourceInfo);
1024
+ }
1025
+ }
1026
+ for (const loadedTheme of themesResult.themes) {
1027
+ if (loadedTheme.sourcePath && loadedTheme.sourceInfo) {
1028
+ sourceInfos.set(loadedTheme.sourcePath, loadedTheme.sourceInfo);
1029
+ }
1030
+ }
1031
+ if (showListing) {
1032
+ const contextFiles = this.session.resourceLoader.getAgentsFiles().agentsFiles;
1033
+ if (contextFiles.length > 0) {
1034
+ this.chatContainer.addChild(new Spacer(1));
1035
+ const contextList = contextFiles
1036
+ .map((f) => theme.fg("dim", ` ${this.formatDisplayPath(f.path)}`))
1037
+ .join("\n");
1038
+ const contextCompactList = formatCompactList(contextFiles.map((contextFile) => this.formatContextPath(contextFile.path)), { sort: false });
1039
+ addLoadedSection("Context", contextCompactList, contextList);
1040
+ }
1041
+ const skills = skillsResult.skills;
1042
+ if (skills.length > 0) {
1043
+ const groups = this.buildScopeGroups(skills.map((skill) => ({ path: skill.filePath, sourceInfo: skill.sourceInfo })));
1044
+ const skillList = this.formatScopeGroups(groups, {
1045
+ formatPath: (item) => this.formatDisplayPath(item.path),
1046
+ formatPackagePath: (item) => this.getShortPath(item.path, item.sourceInfo),
1047
+ });
1048
+ const skillCompactList = formatCompactList(skills.map((skill) => skill.name));
1049
+ addLoadedSection("Skills", skillCompactList, skillList);
1050
+ }
1051
+ const templates = this.session.promptTemplates;
1052
+ if (templates.length > 0) {
1053
+ const groups = this.buildScopeGroups(templates.map((template) => ({ path: template.filePath, sourceInfo: template.sourceInfo })));
1054
+ const templateByPath = new Map(templates.map((t) => [t.filePath, t]));
1055
+ const templateList = this.formatScopeGroups(groups, {
1056
+ formatPath: (item) => {
1057
+ const template = templateByPath.get(item.path);
1058
+ return template ? `/${template.name}` : this.formatDisplayPath(item.path);
1059
+ },
1060
+ formatPackagePath: (item) => {
1061
+ const template = templateByPath.get(item.path);
1062
+ return template ? `/${template.name}` : this.formatDisplayPath(item.path);
1063
+ },
1064
+ });
1065
+ const promptCompactList = formatCompactList(templates.map((template) => `/${template.name}`));
1066
+ addLoadedSection("Prompts", promptCompactList, templateList);
1067
+ }
1068
+ if (extensions.length > 0) {
1069
+ const groups = this.buildScopeGroups(extensions);
1070
+ const extList = this.formatScopeGroups(groups, {
1071
+ formatPath: (item) => this.formatExtensionDisplayPath(item.path),
1072
+ formatPackagePath: (item) => this.formatExtensionDisplayPath(this.getShortPath(item.path, item.sourceInfo)),
1073
+ });
1074
+ const extensionCompactList = formatCompactList(this.getCompactExtensionLabels(extensions));
1075
+ addLoadedSection("Extensions", extensionCompactList, extList, "mdHeading");
1076
+ }
1077
+ // Show loaded themes (excluding built-in)
1078
+ const loadedThemes = themesResult.themes;
1079
+ const customThemes = loadedThemes.filter((t) => t.sourcePath);
1080
+ if (customThemes.length > 0) {
1081
+ const groups = this.buildScopeGroups(customThemes.map((loadedTheme) => ({
1082
+ path: loadedTheme.sourcePath,
1083
+ sourceInfo: loadedTheme.sourceInfo,
1084
+ })));
1085
+ const themeList = this.formatScopeGroups(groups, {
1086
+ formatPath: (item) => this.formatDisplayPath(item.path),
1087
+ formatPackagePath: (item) => this.getShortPath(item.path, item.sourceInfo),
1088
+ });
1089
+ const themeCompactList = formatCompactList(customThemes.map((loadedTheme) => loadedTheme.name ?? this.getCompactPathLabel(loadedTheme.sourcePath, loadedTheme.sourceInfo)));
1090
+ addLoadedSection("Themes", themeCompactList, themeList);
1091
+ }
1092
+ }
1093
+ if (showDiagnostics) {
1094
+ const skillDiagnostics = skillsResult.diagnostics;
1095
+ if (skillDiagnostics.length > 0) {
1096
+ const warningLines = this.formatDiagnostics(skillDiagnostics, sourceInfos);
1097
+ this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Skill conflicts]")}\n${warningLines}`, 0, 0));
1098
+ this.chatContainer.addChild(new Spacer(1));
1099
+ }
1100
+ const promptDiagnostics = promptsResult.diagnostics;
1101
+ if (promptDiagnostics.length > 0) {
1102
+ const warningLines = this.formatDiagnostics(promptDiagnostics, sourceInfos);
1103
+ this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Prompt conflicts]")}\n${warningLines}`, 0, 0));
1104
+ this.chatContainer.addChild(new Spacer(1));
1105
+ }
1106
+ const extensionDiagnostics = [];
1107
+ const extensionErrors = this.session.resourceLoader.getExtensions().errors;
1108
+ if (extensionErrors.length > 0) {
1109
+ for (const error of extensionErrors) {
1110
+ extensionDiagnostics.push({ type: "error", message: error.error, path: error.path });
1111
+ }
1112
+ }
1113
+ const commandDiagnostics = this.session.extensionRunner.getCommandDiagnostics();
1114
+ extensionDiagnostics.push(...commandDiagnostics);
1115
+ extensionDiagnostics.push(...this.getBuiltInCommandConflictDiagnostics(this.session.extensionRunner));
1116
+ const shortcutDiagnostics = this.session.extensionRunner.getShortcutDiagnostics();
1117
+ extensionDiagnostics.push(...shortcutDiagnostics);
1118
+ if (extensionDiagnostics.length > 0) {
1119
+ const warningLines = this.formatDiagnostics(extensionDiagnostics, sourceInfos);
1120
+ this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Extension issues]")}\n${warningLines}`, 0, 0));
1121
+ this.chatContainer.addChild(new Spacer(1));
1122
+ }
1123
+ const themeDiagnostics = themesResult.diagnostics;
1124
+ if (themeDiagnostics.length > 0) {
1125
+ const warningLines = this.formatDiagnostics(themeDiagnostics, sourceInfos);
1126
+ this.chatContainer.addChild(new Text(`${theme.fg("warning", "[Theme conflicts]")}\n${warningLines}`, 0, 0));
1127
+ this.chatContainer.addChild(new Spacer(1));
1128
+ }
1129
+ }
1130
+ }
1131
+ /**
1132
+ * Initialize the extension system with TUI-based UI context.
1133
+ */
1134
+ async bindCurrentSessionExtensions() {
1135
+ const uiContext = this.createExtensionUIContext();
1136
+ await this.session.bindExtensions({
1137
+ uiContext,
1138
+ commandContextActions: {
1139
+ waitForIdle: () => this.session.agent.waitForIdle(),
1140
+ newSession: async (options) => {
1141
+ if (this.loadingAnimation) {
1142
+ this.loadingAnimation.stop();
1143
+ this.loadingAnimation = undefined;
1144
+ }
1145
+ this.statusContainer.clear();
1146
+ try {
1147
+ const result = await this.runtimeHost.newSession(options);
1148
+ if (!result.cancelled) {
1149
+ this.renderCurrentSessionState();
1150
+ this.ui.requestRender();
1151
+ }
1152
+ return result;
1153
+ }
1154
+ catch (error) {
1155
+ return this.handleFatalRuntimeError("Failed to create session", error);
1156
+ }
1157
+ },
1158
+ fork: async (entryId, options) => {
1159
+ try {
1160
+ const result = await this.runtimeHost.fork(entryId, options);
1161
+ if (!result.cancelled) {
1162
+ this.renderCurrentSessionState();
1163
+ this.editor.setText(result.selectedText ?? "");
1164
+ this.showStatus("Forked to new session");
1165
+ }
1166
+ return { cancelled: result.cancelled };
1167
+ }
1168
+ catch (error) {
1169
+ return this.handleFatalRuntimeError("Failed to fork session", error);
1170
+ }
1171
+ },
1172
+ navigateTree: async (targetId, options) => {
1173
+ const result = await this.session.navigateTree(targetId, {
1174
+ summarize: options?.summarize,
1175
+ customInstructions: options?.customInstructions,
1176
+ replaceInstructions: options?.replaceInstructions,
1177
+ label: options?.label,
1178
+ });
1179
+ if (result.cancelled) {
1180
+ return { cancelled: true };
1181
+ }
1182
+ this.chatContainer.clear();
1183
+ this.renderInitialMessages();
1184
+ if (result.editorText && !this.editor.getText().trim()) {
1185
+ this.editor.setText(result.editorText);
1186
+ }
1187
+ this.showStatus("Navigated to selected point");
1188
+ void this.flushCompactionQueue({ willRetry: false });
1189
+ return { cancelled: false };
1190
+ },
1191
+ switchSession: async (sessionPath, options) => {
1192
+ return this.handleResumeSession(sessionPath, options);
1193
+ },
1194
+ reload: async () => {
1195
+ await this.handleReloadCommand();
1196
+ },
1197
+ },
1198
+ shutdownHandler: () => {
1199
+ this.shutdownRequested = true;
1200
+ if (!this.session.isStreaming) {
1201
+ void this.shutdown();
1202
+ }
1203
+ },
1204
+ onError: (error) => {
1205
+ this.showExtensionError(error.extensionPath, error.error, error.stack);
1206
+ },
1207
+ });
1208
+ setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
1209
+ this.setupAutocompleteProvider();
1210
+ const extensionRunner = this.session.extensionRunner;
1211
+ this.setupExtensionShortcuts(extensionRunner);
1212
+ this.showLoadedResources({ force: false, showDiagnosticsWhenQuiet: true });
1213
+ this.showStartupNoticesIfNeeded();
1214
+ }
1215
+ applyRuntimeSettings() {
1216
+ this.footer.setSession(this.session);
1217
+ this.footer.setAutoCompactEnabled(this.session.autoCompactionEnabled);
1218
+ this.footerDataProvider.setCwd(this.sessionManager.getCwd());
1219
+ this.hideThinkingBlock = this.settingsManager.getHideThinkingBlock();
1220
+ this.ui.setShowHardwareCursor(this.settingsManager.getShowHardwareCursor());
1221
+ this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink());
1222
+ const editorPaddingX = this.settingsManager.getEditorPaddingX();
1223
+ const autocompleteMaxVisible = this.settingsManager.getAutocompleteMaxVisible();
1224
+ this.defaultEditor.setPaddingX(editorPaddingX);
1225
+ this.defaultEditor.setAutocompleteMaxVisible(autocompleteMaxVisible);
1226
+ if (this.editor !== this.defaultEditor) {
1227
+ this.editor.setPaddingX?.(editorPaddingX);
1228
+ this.editor.setAutocompleteMaxVisible?.(autocompleteMaxVisible);
1229
+ }
1230
+ }
1231
+ async rebindCurrentSession() {
1232
+ this.unsubscribe?.();
1233
+ this.unsubscribe = undefined;
1234
+ this.applyRuntimeSettings();
1235
+ await this.bindCurrentSessionExtensions();
1236
+ this.subscribeToAgent();
1237
+ await this.updateAvailableProviderCount();
1238
+ this.updateEditorBorderColor();
1239
+ this.updateTerminalTitle();
1240
+ }
1241
+ async handleFatalRuntimeError(prefix, error) {
1242
+ const message = error instanceof Error ? error.message : String(error);
1243
+ this.showError(`${prefix}: ${message}`);
1244
+ stopThemeWatcher();
1245
+ this.stop();
1246
+ process.exit(1);
1247
+ }
1248
+ renderCurrentSessionState() {
1249
+ this.chatContainer.clear();
1250
+ this.pendingMessagesContainer.clear();
1251
+ this.compactionQueuedMessages = [];
1252
+ this.streamingComponent = undefined;
1253
+ this.streamingMessage = undefined;
1254
+ this.pendingTools.clear();
1255
+ this.renderInitialMessages();
1256
+ }
1257
+ /**
1258
+ * Get a registered tool definition by name (for custom rendering).
1259
+ */
1260
+ getRegisteredToolDefinition(toolName) {
1261
+ return this.session.getToolDefinition(toolName);
1262
+ }
1263
+ /**
1264
+ * Set up keyboard shortcuts registered by extensions.
1265
+ */
1266
+ setupExtensionShortcuts(extensionRunner) {
1267
+ const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
1268
+ if (shortcuts.size === 0)
1269
+ return;
1270
+ // Create a context for shortcut handlers
1271
+ const createContext = () => ({
1272
+ ui: this.createExtensionUIContext(),
1273
+ hasUI: true,
1274
+ cwd: this.sessionManager.getCwd(),
1275
+ sessionManager: this.sessionManager,
1276
+ modelRegistry: this.session.modelRegistry,
1277
+ model: this.session.model,
1278
+ isIdle: () => !this.session.isStreaming,
1279
+ signal: this.session.agent.signal,
1280
+ abort: () => this.session.abort(),
1281
+ hasPendingMessages: () => this.session.pendingMessageCount > 0,
1282
+ shutdown: () => {
1283
+ this.shutdownRequested = true;
1284
+ },
1285
+ getContextUsage: () => this.session.getContextUsage(),
1286
+ compact: (options) => {
1287
+ void (async () => {
1288
+ try {
1289
+ const result = await this.session.compact(options?.customInstructions);
1290
+ options?.onComplete?.(result);
1291
+ }
1292
+ catch (error) {
1293
+ const err = error instanceof Error ? error : new Error(String(error));
1294
+ options?.onError?.(err);
1295
+ }
1296
+ })();
1297
+ },
1298
+ getSystemPrompt: () => this.session.systemPrompt,
1299
+ });
1300
+ // Set up the extension shortcut handler on the default editor
1301
+ this.defaultEditor.onExtensionShortcut = (data) => {
1302
+ for (const [shortcutStr, shortcut] of shortcuts) {
1303
+ // Cast to KeyId - extension shortcuts use the same format
1304
+ if (matchesKey(data, shortcutStr)) {
1305
+ // Run handler async, don't block input
1306
+ Promise.resolve(shortcut.handler(createContext())).catch((err) => {
1307
+ this.showError(`Shortcut handler error: ${err instanceof Error ? err.message : String(err)}`);
1308
+ });
1309
+ return true;
1310
+ }
1311
+ }
1312
+ return false;
1313
+ };
1314
+ }
1315
+ /**
1316
+ * Set extension status text in the footer.
1317
+ */
1318
+ setExtensionStatus(key, text) {
1319
+ this.footerDataProvider.setExtensionStatus(key, text);
1320
+ this.ui.requestRender();
1321
+ }
1322
+ getWorkingLoaderMessage() {
1323
+ return this.workingMessage ?? this.defaultWorkingMessage;
1324
+ }
1325
+ createWorkingLoader() {
1326
+ return new Loader(this.ui, (spinner) => theme.fg("accent", spinner), (text) => theme.fg("muted", text), this.getWorkingLoaderMessage(), this.workingIndicatorOptions);
1327
+ }
1328
+ stopWorkingLoader() {
1329
+ if (this.loadingAnimation) {
1330
+ this.loadingAnimation.stop();
1331
+ this.loadingAnimation = undefined;
1332
+ }
1333
+ this.statusContainer.clear();
1334
+ }
1335
+ setWorkingVisible(visible) {
1336
+ this.workingVisible = visible;
1337
+ if (!visible) {
1338
+ this.stopWorkingLoader();
1339
+ this.ui.requestRender();
1340
+ return;
1341
+ }
1342
+ if (this.session.isStreaming && !this.loadingAnimation) {
1343
+ this.statusContainer.clear();
1344
+ this.loadingAnimation = this.createWorkingLoader();
1345
+ this.statusContainer.addChild(this.loadingAnimation);
1346
+ }
1347
+ this.ui.requestRender();
1348
+ }
1349
+ setWorkingIndicator(options) {
1350
+ this.workingIndicatorOptions = options;
1351
+ this.loadingAnimation?.setIndicator(options);
1352
+ this.ui.requestRender();
1353
+ }
1354
+ setHiddenThinkingLabel(label) {
1355
+ this.hiddenThinkingLabel = label ?? this.defaultHiddenThinkingLabel;
1356
+ for (const child of this.chatContainer.children) {
1357
+ if (child instanceof AssistantMessageComponent) {
1358
+ child.setHiddenThinkingLabel(this.hiddenThinkingLabel);
1359
+ }
1360
+ }
1361
+ if (this.streamingComponent) {
1362
+ this.streamingComponent.setHiddenThinkingLabel(this.hiddenThinkingLabel);
1363
+ }
1364
+ this.ui.requestRender();
1365
+ }
1366
+ /**
1367
+ * Set an extension widget (string array or custom component).
1368
+ */
1369
+ setExtensionWidget(key, content, options) {
1370
+ const placement = options?.placement ?? "aboveEditor";
1371
+ const removeExisting = (map) => {
1372
+ const existing = map.get(key);
1373
+ if (existing?.dispose)
1374
+ existing.dispose();
1375
+ map.delete(key);
1376
+ };
1377
+ removeExisting(this.extensionWidgetsAbove);
1378
+ removeExisting(this.extensionWidgetsBelow);
1379
+ if (content === undefined) {
1380
+ this.renderWidgets();
1381
+ return;
1382
+ }
1383
+ let component;
1384
+ if (Array.isArray(content)) {
1385
+ // Wrap string array in a Container with Text components
1386
+ const container = new Container();
1387
+ for (const line of content.slice(0, InteractiveMode.MAX_WIDGET_LINES)) {
1388
+ container.addChild(new Text(line, 1, 0));
1389
+ }
1390
+ if (content.length > InteractiveMode.MAX_WIDGET_LINES) {
1391
+ container.addChild(new Text(theme.fg("muted", "... (widget truncated)"), 1, 0));
1392
+ }
1393
+ component = container;
1394
+ }
1395
+ else {
1396
+ // Factory function - create component
1397
+ component = content(this.ui, theme);
1398
+ }
1399
+ const targetMap = placement === "belowEditor" ? this.extensionWidgetsBelow : this.extensionWidgetsAbove;
1400
+ targetMap.set(key, component);
1401
+ this.renderWidgets();
1402
+ }
1403
+ clearExtensionWidgets() {
1404
+ for (const widget of this.extensionWidgetsAbove.values()) {
1405
+ widget.dispose?.();
1406
+ }
1407
+ for (const widget of this.extensionWidgetsBelow.values()) {
1408
+ widget.dispose?.();
1409
+ }
1410
+ this.extensionWidgetsAbove.clear();
1411
+ this.extensionWidgetsBelow.clear();
1412
+ this.renderWidgets();
1413
+ }
1414
+ resetExtensionUI() {
1415
+ if (this.extensionSelector) {
1416
+ this.hideExtensionSelector();
1417
+ }
1418
+ if (this.extensionInput) {
1419
+ this.hideExtensionInput();
1420
+ }
1421
+ if (this.extensionEditor) {
1422
+ this.hideExtensionEditor();
1423
+ }
1424
+ this.ui.hideOverlay();
1425
+ this.clearExtensionTerminalInputListeners();
1426
+ this.setExtensionFooter(undefined);
1427
+ this.setExtensionHeader(undefined);
1428
+ this.clearExtensionWidgets();
1429
+ this.footerDataProvider.clearExtensionStatuses();
1430
+ this.footer.invalidate();
1431
+ this.autocompleteProviderWrappers = [];
1432
+ this.setCustomEditorComponent(undefined);
1433
+ this.setupAutocompleteProvider();
1434
+ this.defaultEditor.onExtensionShortcut = undefined;
1435
+ this.updateTerminalTitle();
1436
+ this.workingMessage = undefined;
1437
+ this.workingVisible = true;
1438
+ this.setWorkingIndicator();
1439
+ if (this.loadingAnimation) {
1440
+ this.loadingAnimation.setMessage(`${this.defaultWorkingMessage} (${keyText("app.interrupt")} to interrupt)`);
1441
+ }
1442
+ this.setHiddenThinkingLabel();
1443
+ }
1444
+ // Maximum total widget lines to prevent viewport overflow
1445
+ static MAX_WIDGET_LINES = 10;
1446
+ /**
1447
+ * Render all extension widgets to the widget container.
1448
+ */
1449
+ renderWidgets() {
1450
+ if (!this.widgetContainerAbove || !this.widgetContainerBelow)
1451
+ return;
1452
+ this.renderWidgetContainer(this.widgetContainerAbove, this.extensionWidgetsAbove, true, true);
1453
+ this.renderWidgetContainer(this.widgetContainerBelow, this.extensionWidgetsBelow, false, false);
1454
+ this.ui.requestRender();
1455
+ }
1456
+ renderWidgetContainer(container, widgets, spacerWhenEmpty, leadingSpacer) {
1457
+ container.clear();
1458
+ if (widgets.size === 0) {
1459
+ if (spacerWhenEmpty) {
1460
+ container.addChild(new Spacer(1));
1461
+ }
1462
+ return;
1463
+ }
1464
+ if (leadingSpacer) {
1465
+ container.addChild(new Spacer(1));
1466
+ }
1467
+ for (const component of widgets.values()) {
1468
+ container.addChild(component);
1469
+ }
1470
+ }
1471
+ /**
1472
+ * Set a custom footer component, or restore the built-in footer.
1473
+ */
1474
+ setExtensionFooter(factory) {
1475
+ // Dispose existing custom footer
1476
+ if (this.customFooter?.dispose) {
1477
+ this.customFooter.dispose();
1478
+ }
1479
+ // Remove current footer from UI
1480
+ if (this.customFooter) {
1481
+ this.ui.removeChild(this.customFooter);
1482
+ }
1483
+ else {
1484
+ this.ui.removeChild(this.footer);
1485
+ }
1486
+ if (factory) {
1487
+ // Create and add custom footer, passing the data provider
1488
+ this.customFooter = factory(this.ui, theme, this.footerDataProvider);
1489
+ this.ui.addChild(this.customFooter);
1490
+ }
1491
+ else {
1492
+ // Restore built-in footer
1493
+ this.customFooter = undefined;
1494
+ this.ui.addChild(this.footer);
1495
+ }
1496
+ this.ui.requestRender();
1497
+ }
1498
+ /**
1499
+ * Set a custom header component, or restore the built-in header.
1500
+ */
1501
+ setExtensionHeader(factory) {
1502
+ // Header may not be initialized yet if called during early initialization
1503
+ if (!this.builtInHeader) {
1504
+ return;
1505
+ }
1506
+ // Dispose existing custom header
1507
+ if (this.customHeader?.dispose) {
1508
+ this.customHeader.dispose();
1509
+ }
1510
+ // Find the index of the current header in the header container
1511
+ const currentHeader = this.customHeader || this.builtInHeader;
1512
+ const index = this.headerContainer.children.indexOf(currentHeader);
1513
+ if (factory) {
1514
+ // Create and add custom header
1515
+ this.customHeader = factory(this.ui, theme);
1516
+ if (isExpandable(this.customHeader)) {
1517
+ this.customHeader.setExpanded(this.toolOutputExpanded);
1518
+ }
1519
+ if (index !== -1) {
1520
+ this.headerContainer.children[index] = this.customHeader;
1521
+ }
1522
+ else {
1523
+ // If not found (e.g. builtInHeader was never added), add at the top
1524
+ this.headerContainer.children.unshift(this.customHeader);
1525
+ }
1526
+ }
1527
+ else {
1528
+ // Restore built-in header
1529
+ this.customHeader = undefined;
1530
+ if (isExpandable(this.builtInHeader)) {
1531
+ this.builtInHeader.setExpanded(this.toolOutputExpanded);
1532
+ }
1533
+ if (index !== -1) {
1534
+ this.headerContainer.children[index] = this.builtInHeader;
1535
+ }
1536
+ }
1537
+ this.ui.requestRender();
1538
+ }
1539
+ addExtensionTerminalInputListener(handler) {
1540
+ const unsubscribe = this.ui.addInputListener(handler);
1541
+ this.extensionTerminalInputUnsubscribers.add(unsubscribe);
1542
+ return () => {
1543
+ unsubscribe();
1544
+ this.extensionTerminalInputUnsubscribers.delete(unsubscribe);
1545
+ };
1546
+ }
1547
+ clearExtensionTerminalInputListeners() {
1548
+ for (const unsubscribe of this.extensionTerminalInputUnsubscribers) {
1549
+ unsubscribe();
1550
+ }
1551
+ this.extensionTerminalInputUnsubscribers.clear();
1552
+ }
1553
+ /**
1554
+ * Create the ExtensionUIContext for extensions.
1555
+ */
1556
+ createExtensionUIContext() {
1557
+ return {
1558
+ select: (title, options, opts) => this.showExtensionSelector(title, options, opts),
1559
+ confirm: (title, message, opts) => this.showExtensionConfirm(title, message, opts),
1560
+ input: (title, placeholder, opts) => this.showExtensionInput(title, placeholder, opts),
1561
+ notify: (message, type) => this.showExtensionNotify(message, type),
1562
+ onTerminalInput: (handler) => this.addExtensionTerminalInputListener(handler),
1563
+ setStatus: (key, text) => this.setExtensionStatus(key, text),
1564
+ setWorkingMessage: (message) => {
1565
+ this.workingMessage = message;
1566
+ if (this.loadingAnimation) {
1567
+ this.loadingAnimation.setMessage(message ?? this.defaultWorkingMessage);
1568
+ }
1569
+ },
1570
+ setWorkingVisible: (visible) => this.setWorkingVisible(visible),
1571
+ setWorkingIndicator: (options) => this.setWorkingIndicator(options),
1572
+ setHiddenThinkingLabel: (label) => this.setHiddenThinkingLabel(label),
1573
+ setWidget: (key, content, options) => this.setExtensionWidget(key, content, options),
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, onToggleToolsExpanded: () => this.toggleToolOutputExpansion() });
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
+ * Last-resort handler for uncaught exceptions. The TUI puts stdin into raw
2691
+ * mode and hides the cursor; without this handler, an uncaught throw from
2692
+ * anywhere (e.g. an extension's async `ChildProcess.on("exit")` callback)
2693
+ * tears down the process while leaving the terminal in raw mode with no
2694
+ * cursor, requiring `stty sane && reset` to recover.
2695
+ *
2696
+ * Unlike emergencyTerminalExit, the terminal is still alive here, so we
2697
+ * call ui.stop() to restore cooked mode, the cursor, and disable bracketed
2698
+ * paste / Kitty / modifyOtherKeys sequences.
2699
+ */
2700
+ uncaughtCrash(error) {
2701
+ if (this.isShuttingDown) {
2702
+ process.exit(1);
2703
+ }
2704
+ this.isShuttingDown = true;
2705
+ try {
2706
+ this.unregisterSignalHandlers();
2707
+ }
2708
+ catch { }
2709
+ try {
2710
+ killTrackedDetachedChildren();
2711
+ }
2712
+ catch { }
2713
+ try {
2714
+ this.ui.stop();
2715
+ }
2716
+ catch { }
2717
+ console.error("pi exiting due to uncaughtException:");
2718
+ console.error(error);
2719
+ process.exit(1);
2720
+ }
2721
+ /**
2722
+ * Check if shutdown was requested and perform shutdown if so.
2723
+ */
2724
+ async checkShutdownRequested() {
2725
+ if (!this.shutdownRequested)
2726
+ return;
2727
+ await this.shutdown();
2728
+ }
2729
+ registerSignalHandlers() {
2730
+ this.unregisterSignalHandlers();
2731
+ const signals = ["SIGTERM"];
2732
+ if (process.platform !== "win32") {
2733
+ signals.push("SIGHUP");
2734
+ }
2735
+ for (const signal of signals) {
2736
+ const handler = () => {
2737
+ if (signal === "SIGHUP") {
2738
+ this.emergencyTerminalExit();
2739
+ }
2740
+ killTrackedDetachedChildren();
2741
+ void this.shutdown();
2742
+ };
2743
+ process.prependListener(signal, handler);
2744
+ this.signalCleanupHandlers.push(() => process.off(signal, handler));
2745
+ }
2746
+ const terminalErrorHandler = (error) => {
2747
+ if (isDeadTerminalError(error)) {
2748
+ this.emergencyTerminalExit();
2749
+ }
2750
+ throw error;
2751
+ };
2752
+ process.stdout.on("error", terminalErrorHandler);
2753
+ process.stderr.on("error", terminalErrorHandler);
2754
+ this.signalCleanupHandlers.push(() => process.stdout.off("error", terminalErrorHandler));
2755
+ this.signalCleanupHandlers.push(() => process.stderr.off("error", terminalErrorHandler));
2756
+ // Restore the terminal before the process dies on any uncaught throw.
2757
+ // Without this, an unhandled exception from extension code (or anywhere
2758
+ // in pi) leaves the terminal in raw mode with no cursor.
2759
+ const uncaughtExceptionHandler = (error) => this.uncaughtCrash(error);
2760
+ process.prependListener("uncaughtException", uncaughtExceptionHandler);
2761
+ this.signalCleanupHandlers.push(() => process.off("uncaughtException", uncaughtExceptionHandler));
2762
+ }
2763
+ unregisterSignalHandlers() {
2764
+ for (const cleanup of this.signalCleanupHandlers) {
2765
+ cleanup();
2766
+ }
2767
+ this.signalCleanupHandlers = [];
2768
+ }
2769
+ handleCtrlZ() {
2770
+ if (process.platform === "win32") {
2771
+ this.showStatus("Suspend to background is not supported on Windows");
2772
+ return;
2773
+ }
2774
+ // Keep the event loop alive while suspended. Without this, stopping the TUI
2775
+ // can leave Node with no ref'ed handles, causing the process to exit on fg
2776
+ // before the SIGCONT handler gets a chance to restore the terminal.
2777
+ const suspendKeepAlive = setInterval(() => { }, 2 ** 30);
2778
+ // Ignore SIGINT while suspended so Ctrl+C in the terminal does not
2779
+ // kill the backgrounded process. The handler is removed on resume.
2780
+ const ignoreSigint = () => { };
2781
+ process.on("SIGINT", ignoreSigint);
2782
+ // Set up handler to restore TUI when resumed
2783
+ process.once("SIGCONT", () => {
2784
+ clearInterval(suspendKeepAlive);
2785
+ process.removeListener("SIGINT", ignoreSigint);
2786
+ this.ui.start();
2787
+ this.ui.requestRender(true);
2788
+ });
2789
+ try {
2790
+ // Stop the TUI (restore terminal to normal mode)
2791
+ this.ui.stop();
2792
+ // Send SIGTSTP to process group (pid=0 means all processes in group)
2793
+ process.kill(0, "SIGTSTP");
2794
+ }
2795
+ catch (error) {
2796
+ clearInterval(suspendKeepAlive);
2797
+ process.removeListener("SIGINT", ignoreSigint);
2798
+ throw error;
2799
+ }
2800
+ }
2801
+ async handleFollowUp() {
2802
+ const text = (this.editor.getExpandedText?.() ?? this.editor.getText()).trim();
2803
+ if (!text)
2804
+ return;
2805
+ // Queue input during compaction (extension commands execute immediately)
2806
+ if (this.session.isCompacting) {
2807
+ if (this.isExtensionCommand(text)) {
2808
+ this.editor.addToHistory?.(text);
2809
+ this.editor.setText("");
2810
+ await this.session.prompt(text);
2811
+ }
2812
+ else {
2813
+ this.queueCompactionMessage(text, "followUp");
2814
+ }
2815
+ return;
2816
+ }
2817
+ // Alt+Enter queues a follow-up message (waits until agent finishes)
2818
+ // This handles extension commands (execute immediately), prompt template expansion, and queueing
2819
+ if (this.session.isStreaming) {
2820
+ this.editor.addToHistory?.(text);
2821
+ this.editor.setText("");
2822
+ await this.session.prompt(text, { streamingBehavior: "followUp" });
2823
+ this.updatePendingMessagesDisplay();
2824
+ this.ui.requestRender();
2825
+ }
2826
+ // If not streaming, Alt+Enter acts like regular Enter (trigger onSubmit)
2827
+ else if (this.editor.onSubmit) {
2828
+ this.editor.setText("");
2829
+ this.editor.onSubmit(text);
2830
+ }
2831
+ }
2832
+ handleDequeue() {
2833
+ const restored = this.restoreQueuedMessagesToEditor();
2834
+ if (restored === 0) {
2835
+ this.showStatus("No queued messages to restore");
2836
+ }
2837
+ else {
2838
+ this.showStatus(`Restored ${restored} queued message${restored > 1 ? "s" : ""} to editor`);
2839
+ }
2840
+ }
2841
+ updateEditorBorderColor() {
2842
+ if (this.isBashMode) {
2843
+ this.editor.borderColor = theme.getBashModeBorderColor();
2844
+ }
2845
+ else {
2846
+ const level = this.session.thinkingLevel || "off";
2847
+ this.editor.borderColor = theme.getThinkingBorderColor(level);
2848
+ }
2849
+ this.ui.requestRender();
2850
+ }
2851
+ cycleThinkingLevel() {
2852
+ const newLevel = this.session.cycleThinkingLevel();
2853
+ if (newLevel === undefined) {
2854
+ this.showStatus("Current model does not support thinking");
2855
+ }
2856
+ else {
2857
+ this.footer.invalidate();
2858
+ this.updateEditorBorderColor();
2859
+ this.showStatus(`Thinking level: ${newLevel}`);
2860
+ }
2861
+ }
2862
+ async cycleModel(direction) {
2863
+ try {
2864
+ const result = await this.session.cycleModel(direction);
2865
+ if (result === undefined) {
2866
+ const msg = this.session.scopedModels.length > 0 ? "Only one model in scope" : "Only one model available";
2867
+ this.showStatus(msg);
2868
+ }
2869
+ else {
2870
+ this.footer.invalidate();
2871
+ this.updateEditorBorderColor();
2872
+ const thinkingStr = result.model.reasoning && result.thinkingLevel !== "off" ? ` (thinking: ${result.thinkingLevel})` : "";
2873
+ this.showStatus(`Switched to ${result.model.name || result.model.id}${thinkingStr}`);
2874
+ void this.maybeWarnAboutAnthropicSubscriptionAuth(result.model);
2875
+ }
2876
+ }
2877
+ catch (error) {
2878
+ this.showError(error instanceof Error ? error.message : String(error));
2879
+ }
2880
+ }
2881
+ toggleToolOutputExpansion() {
2882
+ this.setToolsExpanded(!this.toolOutputExpanded);
2883
+ }
2884
+ setToolsExpanded(expanded) {
2885
+ this.toolOutputExpanded = expanded;
2886
+ const activeHeader = this.customHeader ?? this.builtInHeader;
2887
+ if (isExpandable(activeHeader)) {
2888
+ activeHeader.setExpanded(expanded);
2889
+ }
2890
+ for (const child of this.chatContainer.children) {
2891
+ if (isExpandable(child)) {
2892
+ child.setExpanded(expanded);
2893
+ }
2894
+ }
2895
+ this.ui.requestRender();
2896
+ }
2897
+ toggleThinkingBlockVisibility() {
2898
+ this.hideThinkingBlock = !this.hideThinkingBlock;
2899
+ this.settingsManager.setHideThinkingBlock(this.hideThinkingBlock);
2900
+ // Rebuild chat from session messages
2901
+ this.chatContainer.clear();
2902
+ this.rebuildChatFromMessages();
2903
+ // If streaming, re-add the streaming component with updated visibility and re-render
2904
+ if (this.streamingComponent && this.streamingMessage) {
2905
+ this.streamingComponent.setHideThinkingBlock(this.hideThinkingBlock);
2906
+ this.streamingComponent.updateContent(this.streamingMessage);
2907
+ this.chatContainer.addChild(this.streamingComponent);
2908
+ }
2909
+ this.showStatus(`Thinking blocks: ${this.hideThinkingBlock ? "hidden" : "visible"}`);
2910
+ }
2911
+ async openExternalEditor() {
2912
+ // Determine editor (respect $VISUAL, then $EDITOR)
2913
+ const editorCmd = process.env.VISUAL || process.env.EDITOR;
2914
+ if (!editorCmd) {
2915
+ this.showWarning("No editor configured. Set $VISUAL or $EDITOR environment variable.");
2916
+ return;
2917
+ }
2918
+ const currentText = this.editor.getExpandedText?.() ?? this.editor.getText();
2919
+ const tmpFile = path.join(os.tmpdir(), `pi-editor-${Date.now()}.pi.md`);
2920
+ try {
2921
+ // Write current content to temp file
2922
+ fs.writeFileSync(tmpFile, currentText, "utf-8");
2923
+ // Stop TUI to release terminal
2924
+ this.ui.stop();
2925
+ // Split by space to support editor arguments (e.g., "code --wait")
2926
+ const [editor, ...editorArgs] = editorCmd.split(" ");
2927
+ process.stdout.write(`Launching external editor: ${editorCmd}\nPi will resume when the editor exits.\n`);
2928
+ // Do not use spawnSync here. On Windows, synchronous child_process calls can keep
2929
+ // Node/libuv's console input read active after ui.stop() pauses stdin, racing
2930
+ // vim/nvim for the console input buffer until Ctrl+C cancels the pending read.
2931
+ const status = await new Promise((resolve) => {
2932
+ const child = spawn(editor, [...editorArgs, tmpFile], {
2933
+ stdio: "inherit",
2934
+ shell: process.platform === "win32",
2935
+ });
2936
+ child.on("error", () => resolve(null));
2937
+ child.on("close", (code) => resolve(code));
2938
+ });
2939
+ // On successful exit (status 0), replace editor content
2940
+ if (status === 0) {
2941
+ const newContent = fs.readFileSync(tmpFile, "utf-8").replace(/\n$/, "");
2942
+ this.editor.setText(newContent);
2943
+ }
2944
+ // On non-zero exit, keep original text (no action needed)
2945
+ }
2946
+ finally {
2947
+ // Clean up temp file
2948
+ try {
2949
+ fs.unlinkSync(tmpFile);
2950
+ }
2951
+ catch {
2952
+ // Ignore cleanup errors
2953
+ }
2954
+ // Restart TUI
2955
+ this.ui.start();
2956
+ // Force full re-render since external editor uses alternate screen
2957
+ this.ui.requestRender(true);
2958
+ }
2959
+ }
2960
+ // =========================================================================
2961
+ // UI helpers
2962
+ // =========================================================================
2963
+ clearEditor() {
2964
+ this.editor.setText("");
2965
+ this.ui.requestRender();
2966
+ }
2967
+ showError(errorMessage) {
2968
+ this.chatContainer.addChild(new Spacer(1));
2969
+ this.chatContainer.addChild(new Text(theme.fg("error", `Error: ${errorMessage}`), 1, 0));
2970
+ this.chatContainer.addChild(new Spacer(1));
2971
+ this.ui.requestRender();
2972
+ }
2973
+ showWarning(warningMessage) {
2974
+ this.chatContainer.addChild(new Spacer(1));
2975
+ this.chatContainer.addChild(new Text(theme.fg("warning", `Warning: ${warningMessage}`), 1, 0));
2976
+ this.ui.requestRender();
2977
+ }
2978
+ showNewVersionNotification(newVersion) {
2979
+ const action = theme.fg("accent", `${APP_NAME} update`);
2980
+ const updateInstruction = theme.fg("muted", `New version ${newVersion} is available. Run `) + action;
2981
+ const changelogUrl = "https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md";
2982
+ const changelogLink = getCapabilities().hyperlinks
2983
+ ? hyperlink(theme.fg("accent", "open changelog"), changelogUrl)
2984
+ : theme.fg("accent", changelogUrl);
2985
+ const changelogLine = theme.fg("muted", "Changelog: ") + changelogLink;
2986
+ this.chatContainer.addChild(new Spacer(1));
2987
+ this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2988
+ this.chatContainer.addChild(new Text(`${theme.bold(theme.fg("warning", "Update Available"))}\n${updateInstruction}\n${changelogLine}`, 1, 0));
2989
+ this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2990
+ this.ui.requestRender();
2991
+ }
2992
+ showPackageUpdateNotification(packages) {
2993
+ const action = theme.fg("accent", `${APP_NAME} update`);
2994
+ const updateInstruction = theme.fg("muted", "Package updates are available. Run ") + action;
2995
+ const packageLines = packages.map((pkg) => `- ${pkg}`).join("\n");
2996
+ this.chatContainer.addChild(new Spacer(1));
2997
+ this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
2998
+ this.chatContainer.addChild(new Text(`${theme.bold(theme.fg("warning", "Package Updates Available"))}\n${updateInstruction}\n${theme.fg("muted", "Packages:")}\n${packageLines}`, 1, 0));
2999
+ this.chatContainer.addChild(new DynamicBorder((text) => theme.fg("warning", text)));
3000
+ this.ui.requestRender();
3001
+ }
3002
+ /**
3003
+ * Get all queued messages (read-only).
3004
+ * Combines session queue and compaction queue.
3005
+ */
3006
+ getAllQueuedMessages() {
3007
+ return {
3008
+ steering: [
3009
+ ...this.session.getSteeringMessages(),
3010
+ ...this.compactionQueuedMessages.filter((msg) => msg.mode === "steer").map((msg) => msg.text),
3011
+ ],
3012
+ followUp: [
3013
+ ...this.session.getFollowUpMessages(),
3014
+ ...this.compactionQueuedMessages.filter((msg) => msg.mode === "followUp").map((msg) => msg.text),
3015
+ ],
3016
+ };
3017
+ }
3018
+ /**
3019
+ * Clear all queued messages and return their contents.
3020
+ * Clears both session queue and compaction queue.
3021
+ */
3022
+ clearAllQueues() {
3023
+ const { steering, followUp } = this.session.clearQueue();
3024
+ const compactionSteering = this.compactionQueuedMessages
3025
+ .filter((msg) => msg.mode === "steer")
3026
+ .map((msg) => msg.text);
3027
+ const compactionFollowUp = this.compactionQueuedMessages
3028
+ .filter((msg) => msg.mode === "followUp")
3029
+ .map((msg) => msg.text);
3030
+ this.compactionQueuedMessages = [];
3031
+ return {
3032
+ steering: [...steering, ...compactionSteering],
3033
+ followUp: [...followUp, ...compactionFollowUp],
3034
+ };
3035
+ }
3036
+ updatePendingMessagesDisplay() {
3037
+ this.pendingMessagesContainer.clear();
3038
+ const { steering: steeringMessages, followUp: followUpMessages } = this.getAllQueuedMessages();
3039
+ if (steeringMessages.length > 0 || followUpMessages.length > 0) {
3040
+ this.pendingMessagesContainer.addChild(new Spacer(1));
3041
+ for (const message of steeringMessages) {
3042
+ const text = theme.fg("dim", `Steering: ${message}`);
3043
+ this.pendingMessagesContainer.addChild(new TruncatedText(text, 1, 0));
3044
+ }
3045
+ for (const message of followUpMessages) {
3046
+ const text = theme.fg("dim", `Follow-up: ${message}`);
3047
+ this.pendingMessagesContainer.addChild(new TruncatedText(text, 1, 0));
3048
+ }
3049
+ const dequeueHint = this.getAppKeyDisplay("app.message.dequeue");
3050
+ const hintText = theme.fg("dim", `↳ ${dequeueHint} to edit all queued messages`);
3051
+ this.pendingMessagesContainer.addChild(new TruncatedText(hintText, 1, 0));
3052
+ }
3053
+ }
3054
+ restoreQueuedMessagesToEditor(options) {
3055
+ const { steering, followUp } = this.clearAllQueues();
3056
+ const allQueued = [...steering, ...followUp];
3057
+ if (allQueued.length === 0) {
3058
+ this.updatePendingMessagesDisplay();
3059
+ if (options?.abort) {
3060
+ this.agent.abort();
3061
+ }
3062
+ return 0;
3063
+ }
3064
+ const queuedText = allQueued.join("\n\n");
3065
+ const currentText = options?.currentText ?? this.editor.getText();
3066
+ const combinedText = [queuedText, currentText].filter((t) => t.trim()).join("\n\n");
3067
+ this.editor.setText(combinedText);
3068
+ this.updatePendingMessagesDisplay();
3069
+ if (options?.abort) {
3070
+ this.agent.abort();
3071
+ }
3072
+ return allQueued.length;
3073
+ }
3074
+ queueCompactionMessage(text, mode) {
3075
+ this.compactionQueuedMessages.push({ text, mode });
3076
+ this.editor.addToHistory?.(text);
3077
+ this.editor.setText("");
3078
+ this.updatePendingMessagesDisplay();
3079
+ this.showStatus("Queued message for after compaction");
3080
+ }
3081
+ isExtensionCommand(text) {
3082
+ if (!text.startsWith("/"))
3083
+ return false;
3084
+ const extensionRunner = this.session.extensionRunner;
3085
+ const spaceIndex = text.indexOf(" ");
3086
+ const commandName = spaceIndex === -1 ? text.slice(1) : text.slice(1, spaceIndex);
3087
+ return !!extensionRunner.getCommand(commandName);
3088
+ }
3089
+ async flushCompactionQueue(options) {
3090
+ if (this.compactionQueuedMessages.length === 0) {
3091
+ return;
3092
+ }
3093
+ const queuedMessages = [...this.compactionQueuedMessages];
3094
+ this.compactionQueuedMessages = [];
3095
+ this.updatePendingMessagesDisplay();
3096
+ const restoreQueue = (error) => {
3097
+ this.session.clearQueue();
3098
+ this.compactionQueuedMessages = queuedMessages;
3099
+ this.updatePendingMessagesDisplay();
3100
+ this.showError(`Failed to send queued message${queuedMessages.length > 1 ? "s" : ""}: ${error instanceof Error ? error.message : String(error)}`);
3101
+ };
3102
+ try {
3103
+ if (options?.willRetry) {
3104
+ // When retry is pending, queue messages for the retry turn
3105
+ for (const message of queuedMessages) {
3106
+ if (this.isExtensionCommand(message.text)) {
3107
+ await this.session.prompt(message.text);
3108
+ }
3109
+ else if (message.mode === "followUp") {
3110
+ await this.session.followUp(message.text);
3111
+ }
3112
+ else {
3113
+ await this.session.steer(message.text);
3114
+ }
3115
+ }
3116
+ this.updatePendingMessagesDisplay();
3117
+ return;
3118
+ }
3119
+ // Find first non-extension-command message to use as prompt
3120
+ const firstPromptIndex = queuedMessages.findIndex((message) => !this.isExtensionCommand(message.text));
3121
+ if (firstPromptIndex === -1) {
3122
+ // All extension commands - execute them all
3123
+ for (const message of queuedMessages) {
3124
+ await this.session.prompt(message.text);
3125
+ }
3126
+ return;
3127
+ }
3128
+ // Execute any extension commands before the first prompt
3129
+ const preCommands = queuedMessages.slice(0, firstPromptIndex);
3130
+ const firstPrompt = queuedMessages[firstPromptIndex];
3131
+ const rest = queuedMessages.slice(firstPromptIndex + 1);
3132
+ for (const message of preCommands) {
3133
+ await this.session.prompt(message.text);
3134
+ }
3135
+ // Send first prompt (starts streaming)
3136
+ const promptPromise = this.session.prompt(firstPrompt.text).catch((error) => {
3137
+ restoreQueue(error);
3138
+ });
3139
+ // Queue remaining messages
3140
+ for (const message of rest) {
3141
+ if (this.isExtensionCommand(message.text)) {
3142
+ await this.session.prompt(message.text);
3143
+ }
3144
+ else if (message.mode === "followUp") {
3145
+ await this.session.followUp(message.text);
3146
+ }
3147
+ else {
3148
+ await this.session.steer(message.text);
3149
+ }
3150
+ }
3151
+ this.updatePendingMessagesDisplay();
3152
+ void promptPromise;
3153
+ }
3154
+ catch (error) {
3155
+ restoreQueue(error);
3156
+ }
3157
+ }
3158
+ /** Move pending bash components from pending area to chat */
3159
+ flushPendingBashComponents() {
3160
+ for (const component of this.pendingBashComponents) {
3161
+ this.pendingMessagesContainer.removeChild(component);
3162
+ this.chatContainer.addChild(component);
3163
+ }
3164
+ this.pendingBashComponents = [];
3165
+ }
3166
+ // =========================================================================
3167
+ // Selectors
3168
+ // =========================================================================
3169
+ /**
3170
+ * Shows a selector component in place of the editor.
3171
+ * @param create Factory that receives a `done` callback and returns the component and focus target
3172
+ */
3173
+ showSelector(create) {
3174
+ const done = () => {
3175
+ this.editorContainer.clear();
3176
+ this.editorContainer.addChild(this.editor);
3177
+ this.ui.setFocus(this.editor);
3178
+ };
3179
+ const { component, focus } = create(done);
3180
+ this.editorContainer.clear();
3181
+ this.editorContainer.addChild(component);
3182
+ this.ui.setFocus(focus);
3183
+ this.ui.requestRender();
3184
+ }
3185
+ showSettingsSelector() {
3186
+ this.showSelector((done) => {
3187
+ const selector = new SettingsSelectorComponent({
3188
+ autoCompact: this.session.autoCompactionEnabled,
3189
+ showImages: this.settingsManager.getShowImages(),
3190
+ imageWidthCells: this.settingsManager.getImageWidthCells(),
3191
+ autoResizeImages: this.settingsManager.getImageAutoResize(),
3192
+ blockImages: this.settingsManager.getBlockImages(),
3193
+ enableSkillCommands: this.settingsManager.getEnableSkillCommands(),
3194
+ steeringMode: this.session.steeringMode,
3195
+ followUpMode: this.session.followUpMode,
3196
+ transport: this.settingsManager.getTransport(),
3197
+ thinkingLevel: this.session.thinkingLevel,
3198
+ availableThinkingLevels: this.session.getAvailableThinkingLevels(),
3199
+ currentTheme: this.settingsManager.getTheme() || "dark",
3200
+ availableThemes: getAvailableThemes(),
3201
+ hideThinkingBlock: this.hideThinkingBlock,
3202
+ collapseChangelog: this.settingsManager.getCollapseChangelog(),
3203
+ enableInstallTelemetry: this.settingsManager.getEnableInstallTelemetry(),
3204
+ doubleEscapeAction: this.settingsManager.getDoubleEscapeAction(),
3205
+ treeFilterMode: this.settingsManager.getTreeFilterMode(),
3206
+ showHardwareCursor: this.settingsManager.getShowHardwareCursor(),
3207
+ editorPaddingX: this.settingsManager.getEditorPaddingX(),
3208
+ autocompleteMaxVisible: this.settingsManager.getAutocompleteMaxVisible(),
3209
+ quietStartup: this.settingsManager.getQuietStartup(),
3210
+ clearOnShrink: this.settingsManager.getClearOnShrink(),
3211
+ showTerminalProgress: this.settingsManager.getShowTerminalProgress(),
3212
+ warnings: this.settingsManager.getWarnings(),
3213
+ }, {
3214
+ onAutoCompactChange: (enabled) => {
3215
+ this.session.setAutoCompactionEnabled(enabled);
3216
+ this.footer.setAutoCompactEnabled(enabled);
3217
+ },
3218
+ onShowImagesChange: (enabled) => {
3219
+ this.settingsManager.setShowImages(enabled);
3220
+ for (const child of this.chatContainer.children) {
3221
+ if (child instanceof ToolExecutionComponent) {
3222
+ child.setShowImages(enabled);
3223
+ }
3224
+ }
3225
+ },
3226
+ onImageWidthCellsChange: (width) => {
3227
+ this.settingsManager.setImageWidthCells(width);
3228
+ for (const child of this.chatContainer.children) {
3229
+ if (child instanceof ToolExecutionComponent) {
3230
+ child.setImageWidthCells(width);
3231
+ }
3232
+ }
3233
+ },
3234
+ onAutoResizeImagesChange: (enabled) => {
3235
+ this.settingsManager.setImageAutoResize(enabled);
3236
+ },
3237
+ onBlockImagesChange: (blocked) => {
3238
+ this.settingsManager.setBlockImages(blocked);
3239
+ },
3240
+ onEnableSkillCommandsChange: (enabled) => {
3241
+ this.settingsManager.setEnableSkillCommands(enabled);
3242
+ this.setupAutocompleteProvider();
3243
+ },
3244
+ onSteeringModeChange: (mode) => {
3245
+ this.session.setSteeringMode(mode);
3246
+ },
3247
+ onFollowUpModeChange: (mode) => {
3248
+ this.session.setFollowUpMode(mode);
3249
+ },
3250
+ onTransportChange: (transport) => {
3251
+ this.settingsManager.setTransport(transport);
3252
+ this.session.agent.transport = transport;
3253
+ },
3254
+ onThinkingLevelChange: (level) => {
3255
+ this.session.setThinkingLevel(level);
3256
+ this.footer.invalidate();
3257
+ this.updateEditorBorderColor();
3258
+ },
3259
+ onThemeChange: (themeName) => {
3260
+ const result = setTheme(themeName, true);
3261
+ this.settingsManager.setTheme(themeName);
3262
+ this.ui.invalidate();
3263
+ if (!result.success) {
3264
+ this.showError(`Failed to load theme "${themeName}": ${result.error}\nFell back to dark theme.`);
3265
+ }
3266
+ },
3267
+ onThemePreview: (themeName) => {
3268
+ const result = setTheme(themeName, true);
3269
+ if (result.success) {
3270
+ this.ui.invalidate();
3271
+ this.ui.requestRender();
3272
+ }
3273
+ },
3274
+ onHideThinkingBlockChange: (hidden) => {
3275
+ this.hideThinkingBlock = hidden;
3276
+ this.settingsManager.setHideThinkingBlock(hidden);
3277
+ for (const child of this.chatContainer.children) {
3278
+ if (child instanceof AssistantMessageComponent) {
3279
+ child.setHideThinkingBlock(hidden);
3280
+ }
3281
+ }
3282
+ this.chatContainer.clear();
3283
+ this.rebuildChatFromMessages();
3284
+ },
3285
+ onCollapseChangelogChange: (collapsed) => {
3286
+ this.settingsManager.setCollapseChangelog(collapsed);
3287
+ },
3288
+ onEnableInstallTelemetryChange: (enabled) => {
3289
+ this.settingsManager.setEnableInstallTelemetry(enabled);
3290
+ },
3291
+ onQuietStartupChange: (enabled) => {
3292
+ this.settingsManager.setQuietStartup(enabled);
3293
+ },
3294
+ onDoubleEscapeActionChange: (action) => {
3295
+ this.settingsManager.setDoubleEscapeAction(action);
3296
+ },
3297
+ onTreeFilterModeChange: (mode) => {
3298
+ this.settingsManager.setTreeFilterMode(mode);
3299
+ },
3300
+ onShowHardwareCursorChange: (enabled) => {
3301
+ this.settingsManager.setShowHardwareCursor(enabled);
3302
+ this.ui.setShowHardwareCursor(enabled);
3303
+ },
3304
+ onEditorPaddingXChange: (padding) => {
3305
+ this.settingsManager.setEditorPaddingX(padding);
3306
+ this.defaultEditor.setPaddingX(padding);
3307
+ if (this.editor !== this.defaultEditor && this.editor.setPaddingX !== undefined) {
3308
+ this.editor.setPaddingX(padding);
3309
+ }
3310
+ },
3311
+ onAutocompleteMaxVisibleChange: (maxVisible) => {
3312
+ this.settingsManager.setAutocompleteMaxVisible(maxVisible);
3313
+ this.defaultEditor.setAutocompleteMaxVisible(maxVisible);
3314
+ if (this.editor !== this.defaultEditor && this.editor.setAutocompleteMaxVisible !== undefined) {
3315
+ this.editor.setAutocompleteMaxVisible(maxVisible);
3316
+ }
3317
+ },
3318
+ onClearOnShrinkChange: (enabled) => {
3319
+ this.settingsManager.setClearOnShrink(enabled);
3320
+ this.ui.setClearOnShrink(enabled);
3321
+ },
3322
+ onShowTerminalProgressChange: (enabled) => {
3323
+ this.settingsManager.setShowTerminalProgress(enabled);
3324
+ },
3325
+ onWarningsChange: (warnings) => {
3326
+ this.settingsManager.setWarnings(warnings);
3327
+ },
3328
+ onCancel: () => {
3329
+ done();
3330
+ this.ui.requestRender();
3331
+ },
3332
+ });
3333
+ return { component: selector, focus: selector.getSettingsList() };
3334
+ });
3335
+ }
3336
+ async handleModelCommand(searchTerm) {
3337
+ if (!searchTerm) {
3338
+ this.showModelSelector();
3339
+ return;
3340
+ }
3341
+ const model = await this.findExactModelMatch(searchTerm);
3342
+ if (model) {
3343
+ try {
3344
+ await this.session.setModel(model);
3345
+ this.footer.invalidate();
3346
+ this.updateEditorBorderColor();
3347
+ this.showStatus(`Model: ${model.id}`);
3348
+ void this.maybeWarnAboutAnthropicSubscriptionAuth(model);
3349
+ this.checkDaxnutsEasterEgg(model);
3350
+ }
3351
+ catch (error) {
3352
+ this.showError(error instanceof Error ? error.message : String(error));
3353
+ }
3354
+ return;
3355
+ }
3356
+ this.showModelSelector(searchTerm);
3357
+ }
3358
+ async findExactModelMatch(searchTerm) {
3359
+ const models = await this.getModelCandidates();
3360
+ return findExactModelReferenceMatch(searchTerm, models);
3361
+ }
3362
+ async getModelCandidates() {
3363
+ if (this.session.scopedModels.length > 0) {
3364
+ return this.session.scopedModels.map((scoped) => scoped.model);
3365
+ }
3366
+ this.session.modelRegistry.refresh();
3367
+ try {
3368
+ return await this.session.modelRegistry.getAvailable();
3369
+ }
3370
+ catch {
3371
+ return [];
3372
+ }
3373
+ }
3374
+ /** Update the footer's available provider count from current model candidates */
3375
+ async updateAvailableProviderCount() {
3376
+ const models = await this.getModelCandidates();
3377
+ const uniqueProviders = new Set(models.map((m) => m.provider));
3378
+ this.footerDataProvider.setAvailableProviderCount(uniqueProviders.size);
3379
+ }
3380
+ async maybeWarnAboutAnthropicSubscriptionAuth(model = this.session.model) {
3381
+ if (this.settingsManager.getWarnings().anthropicExtraUsage === false) {
3382
+ return;
3383
+ }
3384
+ if (this.anthropicSubscriptionWarningShown) {
3385
+ return;
3386
+ }
3387
+ if (!model || model.provider !== "anthropic") {
3388
+ return;
3389
+ }
3390
+ const storedCredential = this.session.modelRegistry.authStorage.get("anthropic");
3391
+ if (storedCredential?.type === "oauth") {
3392
+ this.anthropicSubscriptionWarningShown = true;
3393
+ this.showWarning(ANTHROPIC_SUBSCRIPTION_AUTH_WARNING);
3394
+ return;
3395
+ }
3396
+ try {
3397
+ const apiKey = await this.session.modelRegistry.getApiKeyForProvider(model.provider);
3398
+ if (!isAnthropicSubscriptionAuthKey(apiKey)) {
3399
+ return;
3400
+ }
3401
+ this.anthropicSubscriptionWarningShown = true;
3402
+ this.showWarning(ANTHROPIC_SUBSCRIPTION_AUTH_WARNING);
3403
+ }
3404
+ catch {
3405
+ // Ignore auth lookup failures for warning-only checks.
3406
+ }
3407
+ }
3408
+ showModelSelector(initialSearchInput) {
3409
+ this.showSelector((done) => {
3410
+ const selector = new ModelSelectorComponent(this.ui, this.session.model, this.settingsManager, this.session.modelRegistry, this.session.scopedModels, async (model) => {
3411
+ try {
3412
+ await this.session.setModel(model);
3413
+ this.footer.invalidate();
3414
+ this.updateEditorBorderColor();
3415
+ done();
3416
+ this.showStatus(`Model: ${model.id}`);
3417
+ void this.maybeWarnAboutAnthropicSubscriptionAuth(model);
3418
+ this.checkDaxnutsEasterEgg(model);
3419
+ }
3420
+ catch (error) {
3421
+ done();
3422
+ this.showError(error instanceof Error ? error.message : String(error));
3423
+ }
3424
+ }, () => {
3425
+ done();
3426
+ this.ui.requestRender();
3427
+ }, initialSearchInput);
3428
+ return { component: selector, focus: selector };
3429
+ });
3430
+ }
3431
+ async showModelsSelector() {
3432
+ // Get all available models
3433
+ this.session.modelRegistry.refresh();
3434
+ const allModels = this.session.modelRegistry.getAvailable();
3435
+ if (allModels.length === 0) {
3436
+ this.showStatus("No models available");
3437
+ return;
3438
+ }
3439
+ // Check if session has scoped models (from previous session-only changes or CLI --models)
3440
+ const sessionScopedModels = this.session.scopedModels;
3441
+ const hasSessionScope = sessionScopedModels.length > 0;
3442
+ // Build enabled model IDs from session state or settings
3443
+ let currentEnabledIds = null;
3444
+ if (hasSessionScope) {
3445
+ // Use current session's scoped models
3446
+ currentEnabledIds = sessionScopedModels.map((scoped) => `${scoped.model.provider}/${scoped.model.id}`);
3447
+ }
3448
+ else {
3449
+ // Fall back to settings
3450
+ const patterns = this.settingsManager.getEnabledModels();
3451
+ if (patterns !== undefined && patterns.length > 0) {
3452
+ const scopedModels = await resolveModelScope(patterns, this.session.modelRegistry);
3453
+ currentEnabledIds = scopedModels.map((scoped) => `${scoped.model.provider}/${scoped.model.id}`);
3454
+ }
3455
+ }
3456
+ // Helper to update session's scoped models (session-only, no persist)
3457
+ const updateSessionModels = async (enabledIds) => {
3458
+ currentEnabledIds = enabledIds === null ? null : [...enabledIds];
3459
+ if (enabledIds && enabledIds.length > 0 && enabledIds.length < allModels.length) {
3460
+ const newScopedModels = await resolveModelScope(enabledIds, this.session.modelRegistry);
3461
+ this.session.setScopedModels(newScopedModels.map((sm) => ({
3462
+ model: sm.model,
3463
+ thinkingLevel: sm.thinkingLevel,
3464
+ })));
3465
+ }
3466
+ else {
3467
+ // All enabled or none enabled = no filter
3468
+ this.session.setScopedModels([]);
3469
+ }
3470
+ await this.updateAvailableProviderCount();
3471
+ this.ui.requestRender();
3472
+ };
3473
+ this.showSelector((done) => {
3474
+ const selector = new ScopedModelsSelectorComponent({
3475
+ allModels,
3476
+ enabledModelIds: currentEnabledIds,
3477
+ }, {
3478
+ onChange: async (enabledIds) => {
3479
+ await updateSessionModels(enabledIds);
3480
+ },
3481
+ onPersist: (enabledIds) => {
3482
+ // Persist to settings
3483
+ const newPatterns = enabledIds === null || enabledIds.length === allModels.length
3484
+ ? undefined // All enabled = clear filter
3485
+ : enabledIds;
3486
+ this.settingsManager.setEnabledModels(newPatterns ? [...newPatterns] : undefined);
3487
+ this.showStatus("Model selection saved to settings");
3488
+ },
3489
+ onCancel: () => {
3490
+ done();
3491
+ this.ui.requestRender();
3492
+ },
3493
+ });
3494
+ return { component: selector, focus: selector };
3495
+ });
3496
+ }
3497
+ showUserMessageSelector() {
3498
+ const userMessages = this.session.getUserMessagesForForking();
3499
+ if (userMessages.length === 0) {
3500
+ this.showStatus("No messages to fork from");
3501
+ return;
3502
+ }
3503
+ const initialSelectedId = userMessages[userMessages.length - 1]?.entryId;
3504
+ this.showSelector((done) => {
3505
+ const selector = new UserMessageSelectorComponent(userMessages.map((m) => ({ id: m.entryId, text: m.text })), async (entryId) => {
3506
+ try {
3507
+ const result = await this.runtimeHost.fork(entryId);
3508
+ if (result.cancelled) {
3509
+ done();
3510
+ this.ui.requestRender();
3511
+ return;
3512
+ }
3513
+ this.renderCurrentSessionState();
3514
+ this.editor.setText(result.selectedText ?? "");
3515
+ done();
3516
+ this.showStatus("Forked to new session");
3517
+ }
3518
+ catch (error) {
3519
+ done();
3520
+ this.showError(error instanceof Error ? error.message : String(error));
3521
+ }
3522
+ }, () => {
3523
+ done();
3524
+ this.ui.requestRender();
3525
+ }, initialSelectedId);
3526
+ return { component: selector, focus: selector.getMessageList() };
3527
+ });
3528
+ }
3529
+ async handleCloneCommand() {
3530
+ const leafId = this.sessionManager.getLeafId();
3531
+ if (!leafId) {
3532
+ this.showStatus("Nothing to clone yet");
3533
+ return;
3534
+ }
3535
+ try {
3536
+ const result = await this.runtimeHost.fork(leafId, { position: "at" });
3537
+ if (result.cancelled) {
3538
+ this.ui.requestRender();
3539
+ return;
3540
+ }
3541
+ this.renderCurrentSessionState();
3542
+ this.editor.setText("");
3543
+ this.showStatus("Cloned to new session");
3544
+ }
3545
+ catch (error) {
3546
+ this.showError(error instanceof Error ? error.message : String(error));
3547
+ }
3548
+ }
3549
+ showTreeSelector(initialSelectedId) {
3550
+ const tree = this.sessionManager.getTree();
3551
+ const realLeafId = this.sessionManager.getLeafId();
3552
+ const initialFilterMode = this.settingsManager.getTreeFilterMode();
3553
+ if (tree.length === 0) {
3554
+ this.showStatus("No entries in session");
3555
+ return;
3556
+ }
3557
+ this.showSelector((done) => {
3558
+ const selector = new TreeSelectorComponent(tree, realLeafId, this.ui.terminal.rows, async (entryId) => {
3559
+ // Selecting the current leaf is a no-op (already there)
3560
+ if (entryId === realLeafId) {
3561
+ done();
3562
+ this.showStatus("Already at this point");
3563
+ return;
3564
+ }
3565
+ // Ask about summarization
3566
+ done(); // Close selector first
3567
+ // Loop until user makes a complete choice or cancels to tree
3568
+ let wantsSummary = false;
3569
+ let customInstructions;
3570
+ // Check if we should skip the prompt (user preference to always default to no summary)
3571
+ if (!this.settingsManager.getBranchSummarySkipPrompt()) {
3572
+ while (true) {
3573
+ const summaryChoice = await this.showExtensionSelector("Summarize branch?", [
3574
+ "No summary",
3575
+ "Summarize",
3576
+ "Summarize with custom prompt",
3577
+ ]);
3578
+ if (summaryChoice === undefined) {
3579
+ // User pressed escape - re-show tree selector with same selection
3580
+ this.showTreeSelector(entryId);
3581
+ return;
3582
+ }
3583
+ wantsSummary = summaryChoice !== "No summary";
3584
+ if (summaryChoice === "Summarize with custom prompt") {
3585
+ customInstructions = await this.showExtensionEditor("Custom summarization instructions");
3586
+ if (customInstructions === undefined) {
3587
+ // User cancelled - loop back to summary selector
3588
+ continue;
3589
+ }
3590
+ }
3591
+ // User made a complete choice
3592
+ break;
3593
+ }
3594
+ }
3595
+ // Set up escape handler and loader if summarizing
3596
+ let summaryLoader;
3597
+ const originalOnEscape = this.defaultEditor.onEscape;
3598
+ if (wantsSummary) {
3599
+ this.defaultEditor.onEscape = () => {
3600
+ this.session.abortBranchSummary();
3601
+ };
3602
+ this.chatContainer.addChild(new Spacer(1));
3603
+ summaryLoader = new Loader(this.ui, (spinner) => theme.fg("accent", spinner), (text) => theme.fg("muted", text), `Summarizing branch... (${keyText("app.interrupt")} to cancel)`);
3604
+ this.statusContainer.addChild(summaryLoader);
3605
+ this.ui.requestRender();
3606
+ }
3607
+ try {
3608
+ const result = await this.session.navigateTree(entryId, {
3609
+ summarize: wantsSummary,
3610
+ customInstructions,
3611
+ });
3612
+ if (result.aborted) {
3613
+ // Summarization aborted - re-show tree selector with same selection
3614
+ this.showStatus("Branch summarization cancelled");
3615
+ this.showTreeSelector(entryId);
3616
+ return;
3617
+ }
3618
+ if (result.cancelled) {
3619
+ this.showStatus("Navigation cancelled");
3620
+ return;
3621
+ }
3622
+ // Update UI
3623
+ this.chatContainer.clear();
3624
+ this.renderInitialMessages();
3625
+ if (result.editorText && !this.editor.getText().trim()) {
3626
+ this.editor.setText(result.editorText);
3627
+ }
3628
+ this.showStatus("Navigated to selected point");
3629
+ void this.flushCompactionQueue({ willRetry: false });
3630
+ }
3631
+ catch (error) {
3632
+ this.showError(error instanceof Error ? error.message : String(error));
3633
+ }
3634
+ finally {
3635
+ if (summaryLoader) {
3636
+ summaryLoader.stop();
3637
+ this.statusContainer.clear();
3638
+ }
3639
+ this.defaultEditor.onEscape = originalOnEscape;
3640
+ }
3641
+ }, () => {
3642
+ done();
3643
+ this.ui.requestRender();
3644
+ }, (entryId, label) => {
3645
+ this.sessionManager.appendLabelChange(entryId, label);
3646
+ this.ui.requestRender();
3647
+ }, initialSelectedId, initialFilterMode);
3648
+ return { component: selector, focus: selector };
3649
+ });
3650
+ }
3651
+ showSessionSelector() {
3652
+ this.showSelector((done) => {
3653
+ const selector = new SessionSelectorComponent((onProgress) => SessionManager.list(this.sessionManager.getCwd(), this.sessionManager.getSessionDir(), onProgress), SessionManager.listAll, async (sessionPath) => {
3654
+ done();
3655
+ await this.handleResumeSession(sessionPath);
3656
+ }, () => {
3657
+ done();
3658
+ this.ui.requestRender();
3659
+ }, () => {
3660
+ void this.shutdown();
3661
+ }, () => this.ui.requestRender(), {
3662
+ renameSession: async (sessionFilePath, nextName) => {
3663
+ const next = (nextName ?? "").trim();
3664
+ if (!next)
3665
+ return;
3666
+ const mgr = SessionManager.open(sessionFilePath);
3667
+ mgr.appendSessionInfo(next);
3668
+ },
3669
+ showRenameHint: true,
3670
+ keybindings: this.keybindings,
3671
+ }, this.sessionManager.getSessionFile());
3672
+ return { component: selector, focus: selector };
3673
+ });
3674
+ }
3675
+ async handleResumeSession(sessionPath, options) {
3676
+ if (this.loadingAnimation) {
3677
+ this.loadingAnimation.stop();
3678
+ this.loadingAnimation = undefined;
3679
+ }
3680
+ this.statusContainer.clear();
3681
+ try {
3682
+ const result = await this.runtimeHost.switchSession(sessionPath, {
3683
+ withSession: options?.withSession,
3684
+ });
3685
+ if (result.cancelled) {
3686
+ return result;
3687
+ }
3688
+ this.renderCurrentSessionState();
3689
+ this.showStatus("Resumed session");
3690
+ return result;
3691
+ }
3692
+ catch (error) {
3693
+ if (error instanceof MissingSessionCwdError) {
3694
+ const selectedCwd = await this.promptForMissingSessionCwd(error);
3695
+ if (!selectedCwd) {
3696
+ this.showStatus("Resume cancelled");
3697
+ return { cancelled: true };
3698
+ }
3699
+ const result = await this.runtimeHost.switchSession(sessionPath, {
3700
+ cwdOverride: selectedCwd,
3701
+ withSession: options?.withSession,
3702
+ });
3703
+ if (result.cancelled) {
3704
+ return result;
3705
+ }
3706
+ this.renderCurrentSessionState();
3707
+ this.showStatus("Resumed session in current cwd");
3708
+ return result;
3709
+ }
3710
+ return this.handleFatalRuntimeError("Failed to resume session", error);
3711
+ }
3712
+ }
3713
+ getLoginProviderOptions(authType) {
3714
+ const authStorage = this.session.modelRegistry.authStorage;
3715
+ const oauthProviders = authStorage.getOAuthProviders();
3716
+ const oauthProviderIds = new Set(oauthProviders.map((provider) => provider.id));
3717
+ const options = oauthProviders.map((provider) => ({
3718
+ id: provider.id,
3719
+ name: provider.name,
3720
+ authType: "oauth",
3721
+ }));
3722
+ const modelProviders = new Set(this.session.modelRegistry.getAll().map((model) => model.provider));
3723
+ for (const providerId of modelProviders) {
3724
+ if (!isApiKeyLoginProvider(providerId, oauthProviderIds)) {
3725
+ continue;
3726
+ }
3727
+ options.push({
3728
+ id: providerId,
3729
+ name: this.session.modelRegistry.getProviderDisplayName(providerId),
3730
+ authType: "api_key",
3731
+ });
3732
+ }
3733
+ const filteredOptions = authType ? options.filter((option) => option.authType === authType) : options;
3734
+ return filteredOptions.sort((a, b) => a.name.localeCompare(b.name));
3735
+ }
3736
+ getLogoutProviderOptions() {
3737
+ const authStorage = this.session.modelRegistry.authStorage;
3738
+ const options = [];
3739
+ for (const providerId of authStorage.list()) {
3740
+ const credential = authStorage.get(providerId);
3741
+ if (!credential) {
3742
+ continue;
3743
+ }
3744
+ options.push({
3745
+ id: providerId,
3746
+ name: this.session.modelRegistry.getProviderDisplayName(providerId),
3747
+ authType: credential.type,
3748
+ });
3749
+ }
3750
+ return options.sort((a, b) => a.name.localeCompare(b.name));
3751
+ }
3752
+ showLoginAuthTypeSelector() {
3753
+ const subscriptionLabel = "Use a subscription";
3754
+ const apiKeyLabel = "Use an API key";
3755
+ this.showSelector((done) => {
3756
+ const selector = new ExtensionSelectorComponent("Select authentication method:", [subscriptionLabel, apiKeyLabel], (option) => {
3757
+ done();
3758
+ const authType = option === subscriptionLabel ? "oauth" : "api_key";
3759
+ this.showLoginProviderSelector(authType);
3760
+ }, () => {
3761
+ done();
3762
+ this.ui.requestRender();
3763
+ });
3764
+ return { component: selector, focus: selector };
3765
+ });
3766
+ }
3767
+ showLoginProviderSelector(authType) {
3768
+ const providerOptions = this.getLoginProviderOptions(authType);
3769
+ if (providerOptions.length === 0) {
3770
+ this.showStatus(authType === "oauth" ? "No subscription providers available." : "No API key providers available.");
3771
+ return;
3772
+ }
3773
+ this.showSelector((done) => {
3774
+ const selector = new OAuthSelectorComponent("login", this.session.modelRegistry.authStorage, providerOptions, async (providerId) => {
3775
+ done();
3776
+ const providerOption = providerOptions.find((provider) => provider.id === providerId);
3777
+ if (!providerOption) {
3778
+ return;
3779
+ }
3780
+ if (providerOption.authType === "oauth") {
3781
+ await this.showLoginDialog(providerOption.id, providerOption.name);
3782
+ }
3783
+ else if (providerOption.id === BEDROCK_PROVIDER_ID) {
3784
+ this.showBedrockSetupDialog(providerOption.id, providerOption.name);
3785
+ }
3786
+ else {
3787
+ await this.showApiKeyLoginDialog(providerOption.id, providerOption.name);
3788
+ }
3789
+ }, () => {
3790
+ done();
3791
+ this.showLoginAuthTypeSelector();
3792
+ }, (providerId) => this.session.modelRegistry.getProviderAuthStatus(providerId));
3793
+ return { component: selector, focus: selector };
3794
+ });
3795
+ }
3796
+ async showOAuthSelector(mode) {
3797
+ if (mode === "login") {
3798
+ this.showLoginAuthTypeSelector();
3799
+ return;
3800
+ }
3801
+ const providerOptions = this.getLogoutProviderOptions();
3802
+ if (providerOptions.length === 0) {
3803
+ this.showStatus("No stored credentials to remove. /logout only removes credentials saved by /login; environment variables and models.json config are unchanged.");
3804
+ return;
3805
+ }
3806
+ this.showSelector((done) => {
3807
+ const selector = new OAuthSelectorComponent(mode, this.session.modelRegistry.authStorage, providerOptions, async (providerId) => {
3808
+ done();
3809
+ const providerOption = providerOptions.find((provider) => provider.id === providerId);
3810
+ if (!providerOption) {
3811
+ return;
3812
+ }
3813
+ try {
3814
+ this.session.modelRegistry.authStorage.logout(providerOption.id);
3815
+ this.session.modelRegistry.refresh();
3816
+ await this.updateAvailableProviderCount();
3817
+ const message = providerOption.authType === "oauth"
3818
+ ? `Logged out of ${providerOption.name}`
3819
+ : `Removed stored API key for ${providerOption.name}. Environment variables and models.json config are unchanged.`;
3820
+ this.showStatus(message);
3821
+ }
3822
+ catch (error) {
3823
+ this.showError(`Logout failed: ${error instanceof Error ? error.message : String(error)}`);
3824
+ }
3825
+ }, () => {
3826
+ done();
3827
+ this.ui.requestRender();
3828
+ });
3829
+ return { component: selector, focus: selector };
3830
+ });
3831
+ }
3832
+ async completeProviderAuthentication(providerId, providerName, authType, previousModel) {
3833
+ this.session.modelRegistry.refresh();
3834
+ const actionLabel = authType === "oauth" ? `Logged in to ${providerName}` : `Saved API key for ${providerName}`;
3835
+ let selectedModel;
3836
+ let selectionError;
3837
+ if (isUnknownModel(previousModel)) {
3838
+ const availableModels = this.session.modelRegistry.getAvailable();
3839
+ const providerModels = availableModels.filter((model) => model.provider === providerId);
3840
+ if (!hasDefaultModelProvider(providerId)) {
3841
+ selectionError = `${actionLabel}, but no default model is configured for provider "${providerId}". Use /model to select a model.`;
3842
+ }
3843
+ else if (providerModels.length === 0) {
3844
+ selectionError = `${actionLabel}, but no models are available for that provider. Use /model to select a model.`;
3845
+ }
3846
+ else {
3847
+ const defaultModelId = defaultModelPerProvider[providerId];
3848
+ selectedModel = providerModels.find((model) => model.id === defaultModelId);
3849
+ if (!selectedModel) {
3850
+ selectionError = `${actionLabel}, but its default model "${defaultModelId}" is not available. Use /model to select a model.`;
3851
+ }
3852
+ else {
3853
+ try {
3854
+ await this.session.setModel(selectedModel);
3855
+ }
3856
+ catch (error) {
3857
+ selectedModel = undefined;
3858
+ const errorMessage = error instanceof Error ? error.message : String(error);
3859
+ selectionError = `${actionLabel}, but selecting its default model failed: ${errorMessage}. Use /model to select a model.`;
3860
+ }
3861
+ }
3862
+ }
3863
+ }
3864
+ await this.updateAvailableProviderCount();
3865
+ this.footer.invalidate();
3866
+ this.updateEditorBorderColor();
3867
+ if (selectedModel) {
3868
+ this.showStatus(`${actionLabel}. Selected ${selectedModel.id}. Credentials saved to ${getAuthPath()}`);
3869
+ void this.maybeWarnAboutAnthropicSubscriptionAuth(selectedModel);
3870
+ this.checkDaxnutsEasterEgg(selectedModel);
3871
+ }
3872
+ else {
3873
+ this.showStatus(`${actionLabel}. Credentials saved to ${getAuthPath()}`);
3874
+ if (selectionError) {
3875
+ this.showError(selectionError);
3876
+ }
3877
+ else {
3878
+ void this.maybeWarnAboutAnthropicSubscriptionAuth();
3879
+ }
3880
+ }
3881
+ }
3882
+ showBedrockSetupDialog(providerId, providerName) {
3883
+ const restoreEditor = () => {
3884
+ this.editorContainer.clear();
3885
+ this.editorContainer.addChild(this.editor);
3886
+ this.ui.setFocus(this.editor);
3887
+ this.ui.requestRender();
3888
+ };
3889
+ const dialog = new LoginDialogComponent(this.ui, providerId, () => restoreEditor(), providerName, "Amazon Bedrock setup");
3890
+ dialog.showInfo([
3891
+ theme.fg("text", "Amazon Bedrock uses AWS credentials instead of a single API key."),
3892
+ theme.fg("text", "Configure an AWS profile, IAM keys, bearer token, or role-based credentials."),
3893
+ theme.fg("muted", "See:"),
3894
+ theme.fg("accent", ` ${path.join(getDocsPath(), "providers.md")}`),
3895
+ ]);
3896
+ this.editorContainer.clear();
3897
+ this.editorContainer.addChild(dialog);
3898
+ this.ui.setFocus(dialog);
3899
+ this.ui.requestRender();
3900
+ }
3901
+ async showApiKeyLoginDialog(providerId, providerName) {
3902
+ const previousModel = this.session.model;
3903
+ const dialog = new LoginDialogComponent(this.ui, providerId, (_success, _message) => {
3904
+ // Completion handled below
3905
+ }, providerName);
3906
+ this.editorContainer.clear();
3907
+ this.editorContainer.addChild(dialog);
3908
+ this.ui.setFocus(dialog);
3909
+ this.ui.requestRender();
3910
+ const restoreEditor = () => {
3911
+ this.editorContainer.clear();
3912
+ this.editorContainer.addChild(this.editor);
3913
+ this.ui.setFocus(this.editor);
3914
+ this.ui.requestRender();
3915
+ };
3916
+ try {
3917
+ const apiKey = (await dialog.showPrompt("Enter API key:")).trim();
3918
+ if (!apiKey) {
3919
+ throw new Error("API key cannot be empty.");
3920
+ }
3921
+ this.session.modelRegistry.authStorage.set(providerId, { type: "api_key", key: apiKey });
3922
+ restoreEditor();
3923
+ await this.completeProviderAuthentication(providerId, providerName, "api_key", previousModel);
3924
+ }
3925
+ catch (error) {
3926
+ restoreEditor();
3927
+ const errorMsg = error instanceof Error ? error.message : String(error);
3928
+ if (errorMsg !== "Login cancelled") {
3929
+ this.showError(`Failed to save API key for ${providerName}: ${errorMsg}`);
3930
+ }
3931
+ }
3932
+ }
3933
+ showOAuthLoginSelect(dialog, prompt) {
3934
+ return new Promise((resolve) => {
3935
+ const restoreDialog = () => {
3936
+ this.editorContainer.clear();
3937
+ this.editorContainer.addChild(dialog);
3938
+ this.ui.setFocus(dialog);
3939
+ this.ui.requestRender();
3940
+ };
3941
+ const labels = prompt.options.map((option) => option.label);
3942
+ const selector = new ExtensionSelectorComponent(prompt.message, labels, (optionLabel) => {
3943
+ restoreDialog();
3944
+ resolve(prompt.options.find((option) => option.label === optionLabel)?.id);
3945
+ }, () => {
3946
+ restoreDialog();
3947
+ resolve(undefined);
3948
+ });
3949
+ this.editorContainer.clear();
3950
+ this.editorContainer.addChild(selector);
3951
+ this.ui.setFocus(selector);
3952
+ this.ui.requestRender();
3953
+ });
3954
+ }
3955
+ async showLoginDialog(providerId, providerName) {
3956
+ const providerInfo = this.session.modelRegistry.authStorage
3957
+ .getOAuthProviders()
3958
+ .find((provider) => provider.id === providerId);
3959
+ const previousModel = this.session.model;
3960
+ // Providers that use callback servers (can paste redirect URL)
3961
+ const usesCallbackServer = providerInfo?.usesCallbackServer ?? false;
3962
+ // Create login dialog component
3963
+ const dialog = new LoginDialogComponent(this.ui, providerId, (_success, _message) => {
3964
+ // Completion handled below
3965
+ }, providerName);
3966
+ // Show dialog in editor container
3967
+ this.editorContainer.clear();
3968
+ this.editorContainer.addChild(dialog);
3969
+ this.ui.setFocus(dialog);
3970
+ this.ui.requestRender();
3971
+ // Promise for manual code input (racing with callback server)
3972
+ let manualCodeResolve;
3973
+ let manualCodeReject;
3974
+ const manualCodePromise = new Promise((resolve, reject) => {
3975
+ manualCodeResolve = resolve;
3976
+ manualCodeReject = reject;
3977
+ });
3978
+ // Restore editor helper
3979
+ const restoreEditor = () => {
3980
+ this.editorContainer.clear();
3981
+ this.editorContainer.addChild(this.editor);
3982
+ this.ui.setFocus(this.editor);
3983
+ this.ui.requestRender();
3984
+ };
3985
+ try {
3986
+ await this.session.modelRegistry.authStorage.login(providerId, {
3987
+ onAuth: (info) => {
3988
+ dialog.showAuth(info.url, info.instructions);
3989
+ if (usesCallbackServer) {
3990
+ // Show input for manual paste, racing with callback
3991
+ dialog
3992
+ .showManualInput("Paste redirect URL below, or complete login in browser:")
3993
+ .then((value) => {
3994
+ if (value && manualCodeResolve) {
3995
+ manualCodeResolve(value);
3996
+ manualCodeResolve = undefined;
3997
+ }
3998
+ })
3999
+ .catch(() => {
4000
+ if (manualCodeReject) {
4001
+ manualCodeReject(new Error("Login cancelled"));
4002
+ manualCodeReject = undefined;
4003
+ }
4004
+ });
4005
+ }
4006
+ else if (providerId === "github-copilot") {
4007
+ // GitHub Copilot polls after onAuth
4008
+ dialog.showWaiting("Waiting for browser authentication...");
4009
+ }
4010
+ // For Anthropic: onPrompt is called immediately after
4011
+ },
4012
+ onPrompt: async (prompt) => {
4013
+ return dialog.showPrompt(prompt.message, prompt.placeholder);
4014
+ },
4015
+ onProgress: (message) => {
4016
+ dialog.showProgress(message);
4017
+ },
4018
+ onSelect: (prompt) => this.showOAuthLoginSelect(dialog, prompt),
4019
+ onManualCodeInput: () => manualCodePromise,
4020
+ signal: dialog.signal,
4021
+ });
4022
+ // Success
4023
+ restoreEditor();
4024
+ await this.completeProviderAuthentication(providerId, providerName, "oauth", previousModel);
4025
+ }
4026
+ catch (error) {
4027
+ restoreEditor();
4028
+ const errorMsg = error instanceof Error ? error.message : String(error);
4029
+ if (errorMsg !== "Login cancelled") {
4030
+ this.showError(`Failed to login to ${providerName}: ${errorMsg}`);
4031
+ }
4032
+ }
4033
+ }
4034
+ // =========================================================================
4035
+ // Command handlers
4036
+ // =========================================================================
4037
+ async handleReloadCommand() {
4038
+ if (this.session.isStreaming) {
4039
+ this.showWarning("Wait for the current response to finish before reloading.");
4040
+ return;
4041
+ }
4042
+ if (this.session.isCompacting) {
4043
+ this.showWarning("Wait for compaction to finish before reloading.");
4044
+ return;
4045
+ }
4046
+ this.resetExtensionUI();
4047
+ const reloadBox = new Container();
4048
+ const borderColor = (s) => theme.fg("border", s);
4049
+ reloadBox.addChild(new DynamicBorder(borderColor));
4050
+ reloadBox.addChild(new Spacer(1));
4051
+ reloadBox.addChild(new Text(theme.fg("muted", "Reloading keybindings, extensions, skills, prompts, themes..."), 1, 0));
4052
+ reloadBox.addChild(new Spacer(1));
4053
+ reloadBox.addChild(new DynamicBorder(borderColor));
4054
+ const previousEditor = this.editor;
4055
+ this.editorContainer.clear();
4056
+ this.editorContainer.addChild(reloadBox);
4057
+ this.ui.setFocus(reloadBox);
4058
+ this.ui.requestRender(true);
4059
+ await new Promise((resolve) => process.nextTick(resolve));
4060
+ const dismissReloadBox = (editor) => {
4061
+ this.editorContainer.clear();
4062
+ this.editorContainer.addChild(editor);
4063
+ this.ui.setFocus(editor);
4064
+ this.ui.requestRender();
4065
+ };
4066
+ try {
4067
+ await this.session.reload();
4068
+ this.keybindings.reload();
4069
+ const activeHeader = this.customHeader ?? this.builtInHeader;
4070
+ if (isExpandable(activeHeader)) {
4071
+ activeHeader.setExpanded(this.toolOutputExpanded);
4072
+ }
4073
+ setRegisteredThemes(this.session.resourceLoader.getThemes().themes);
4074
+ this.hideThinkingBlock = this.settingsManager.getHideThinkingBlock();
4075
+ const themeName = this.settingsManager.getTheme();
4076
+ const themeResult = themeName ? setTheme(themeName, true) : { success: true };
4077
+ if (!themeResult.success) {
4078
+ this.showError(`Failed to load theme "${themeName}": ${themeResult.error}\nFell back to dark theme.`);
4079
+ }
4080
+ const editorPaddingX = this.settingsManager.getEditorPaddingX();
4081
+ const autocompleteMaxVisible = this.settingsManager.getAutocompleteMaxVisible();
4082
+ this.defaultEditor.setPaddingX(editorPaddingX);
4083
+ this.defaultEditor.setAutocompleteMaxVisible(autocompleteMaxVisible);
4084
+ if (this.editor !== this.defaultEditor) {
4085
+ this.editor.setPaddingX?.(editorPaddingX);
4086
+ this.editor.setAutocompleteMaxVisible?.(autocompleteMaxVisible);
4087
+ }
4088
+ this.ui.setShowHardwareCursor(this.settingsManager.getShowHardwareCursor());
4089
+ this.ui.setClearOnShrink(this.settingsManager.getClearOnShrink());
4090
+ this.setupAutocompleteProvider();
4091
+ const runner = this.session.extensionRunner;
4092
+ this.setupExtensionShortcuts(runner);
4093
+ this.rebuildChatFromMessages();
4094
+ dismissReloadBox(this.editor);
4095
+ this.showLoadedResources({
4096
+ force: false,
4097
+ showDiagnosticsWhenQuiet: true,
4098
+ });
4099
+ const modelsJsonError = this.session.modelRegistry.getError();
4100
+ if (modelsJsonError) {
4101
+ this.showError(`models.json error: ${modelsJsonError}`);
4102
+ }
4103
+ this.showStatus("Reloaded keybindings, extensions, skills, prompts, themes");
4104
+ }
4105
+ catch (error) {
4106
+ dismissReloadBox(previousEditor);
4107
+ this.showError(`Reload failed: ${error instanceof Error ? error.message : String(error)}`);
4108
+ }
4109
+ }
4110
+ async handleExportCommand(text) {
4111
+ const outputPath = this.getPathCommandArgument(text, "/export");
4112
+ try {
4113
+ if (outputPath?.endsWith(".jsonl")) {
4114
+ const filePath = this.session.exportToJsonl(outputPath);
4115
+ this.showStatus(`Session exported to: ${filePath}`);
4116
+ }
4117
+ else {
4118
+ const filePath = await this.session.exportToHtml(outputPath);
4119
+ this.showStatus(`Session exported to: ${filePath}`);
4120
+ }
4121
+ }
4122
+ catch (error) {
4123
+ this.showError(`Failed to export session: ${error instanceof Error ? error.message : "Unknown error"}`);
4124
+ }
4125
+ }
4126
+ getPathCommandArgument(text, command) {
4127
+ if (text === command) {
4128
+ return undefined;
4129
+ }
4130
+ if (!text.startsWith(`${command} `)) {
4131
+ return undefined;
4132
+ }
4133
+ const argsString = text.slice(command.length + 1).trimStart();
4134
+ if (!argsString) {
4135
+ return undefined;
4136
+ }
4137
+ const firstChar = argsString[0];
4138
+ if (firstChar === '"' || firstChar === "'") {
4139
+ const closingQuoteIndex = argsString.indexOf(firstChar, 1);
4140
+ if (closingQuoteIndex < 0) {
4141
+ return undefined;
4142
+ }
4143
+ return argsString.slice(1, closingQuoteIndex);
4144
+ }
4145
+ const firstWhitespaceIndex = argsString.search(/\s/);
4146
+ if (firstWhitespaceIndex < 0) {
4147
+ return argsString;
4148
+ }
4149
+ return argsString.slice(0, firstWhitespaceIndex);
4150
+ }
4151
+ async handleImportCommand(text) {
4152
+ const inputPath = this.getPathCommandArgument(text, "/import");
4153
+ if (!inputPath) {
4154
+ this.showError("Usage: /import <path.jsonl>");
4155
+ return;
4156
+ }
4157
+ const confirmed = await this.showExtensionConfirm("Import session", `Replace current session with ${inputPath}?`);
4158
+ if (!confirmed) {
4159
+ this.showStatus("Import cancelled");
4160
+ return;
4161
+ }
4162
+ try {
4163
+ if (this.loadingAnimation) {
4164
+ this.loadingAnimation.stop();
4165
+ this.loadingAnimation = undefined;
4166
+ }
4167
+ this.statusContainer.clear();
4168
+ const result = await this.runtimeHost.importFromJsonl(inputPath);
4169
+ if (result.cancelled) {
4170
+ this.showStatus("Import cancelled");
4171
+ return;
4172
+ }
4173
+ this.renderCurrentSessionState();
4174
+ this.showStatus(`Session imported from: ${inputPath}`);
4175
+ }
4176
+ catch (error) {
4177
+ if (error instanceof MissingSessionCwdError) {
4178
+ const selectedCwd = await this.promptForMissingSessionCwd(error);
4179
+ if (!selectedCwd) {
4180
+ this.showStatus("Import cancelled");
4181
+ return;
4182
+ }
4183
+ const result = await this.runtimeHost.importFromJsonl(inputPath, selectedCwd);
4184
+ if (result.cancelled) {
4185
+ this.showStatus("Import cancelled");
4186
+ return;
4187
+ }
4188
+ this.renderCurrentSessionState();
4189
+ this.showStatus(`Session imported from: ${inputPath}`);
4190
+ return;
4191
+ }
4192
+ if (error instanceof SessionImportFileNotFoundError) {
4193
+ this.showError(`Failed to import session: ${error.message}`);
4194
+ return;
4195
+ }
4196
+ await this.handleFatalRuntimeError("Failed to import session", error);
4197
+ }
4198
+ }
4199
+ async handleShareCommand() {
4200
+ // Check if gh is available and logged in
4201
+ try {
4202
+ const authResult = spawnSync("gh", ["auth", "status"], { encoding: "utf-8" });
4203
+ if (authResult.status !== 0) {
4204
+ this.showError("GitHub CLI is not logged in. Run 'gh auth login' first.");
4205
+ return;
4206
+ }
4207
+ }
4208
+ catch {
4209
+ this.showError("GitHub CLI (gh) is not installed. Install it from https://cli.github.com/");
4210
+ return;
4211
+ }
4212
+ // Export to a temp file
4213
+ const tmpFile = path.join(os.tmpdir(), "session.html");
4214
+ try {
4215
+ await this.session.exportToHtml(tmpFile);
4216
+ }
4217
+ catch (error) {
4218
+ this.showError(`Failed to export session: ${error instanceof Error ? error.message : "Unknown error"}`);
4219
+ return;
4220
+ }
4221
+ // Show cancellable loader, replacing the editor
4222
+ const loader = new BorderedLoader(this.ui, theme, "Creating gist...");
4223
+ this.editorContainer.clear();
4224
+ this.editorContainer.addChild(loader);
4225
+ this.ui.setFocus(loader);
4226
+ this.ui.requestRender();
4227
+ const restoreEditor = () => {
4228
+ loader.dispose();
4229
+ this.editorContainer.clear();
4230
+ this.editorContainer.addChild(this.editor);
4231
+ this.ui.setFocus(this.editor);
4232
+ try {
4233
+ fs.unlinkSync(tmpFile);
4234
+ }
4235
+ catch {
4236
+ // Ignore cleanup errors
4237
+ }
4238
+ };
4239
+ // Create a secret gist asynchronously
4240
+ let proc = null;
4241
+ loader.onAbort = () => {
4242
+ proc?.kill();
4243
+ restoreEditor();
4244
+ this.showStatus("Share cancelled");
4245
+ };
4246
+ try {
4247
+ const result = await new Promise((resolve) => {
4248
+ proc = spawn("gh", ["gist", "create", "--public=false", tmpFile]);
4249
+ let stdout = "";
4250
+ let stderr = "";
4251
+ proc.stdout?.on("data", (data) => {
4252
+ stdout += data.toString();
4253
+ });
4254
+ proc.stderr?.on("data", (data) => {
4255
+ stderr += data.toString();
4256
+ });
4257
+ proc.on("close", (code) => resolve({ stdout, stderr, code }));
4258
+ });
4259
+ if (loader.signal.aborted)
4260
+ return;
4261
+ restoreEditor();
4262
+ if (result.code !== 0) {
4263
+ const errorMsg = result.stderr?.trim() || "Unknown error";
4264
+ this.showError(`Failed to create gist: ${errorMsg}`);
4265
+ return;
4266
+ }
4267
+ // Extract gist ID from the URL returned by gh
4268
+ // gh returns something like: https://gist.github.com/username/GIST_ID
4269
+ const gistUrl = result.stdout?.trim();
4270
+ const gistId = gistUrl?.split("/").pop();
4271
+ if (!gistId) {
4272
+ this.showError("Failed to parse gist ID from gh output");
4273
+ return;
4274
+ }
4275
+ // Create the preview URL
4276
+ const previewUrl = getShareViewerUrl(gistId);
4277
+ this.showStatus(`Share URL: ${previewUrl}\nGist: ${gistUrl}`);
4278
+ }
4279
+ catch (error) {
4280
+ if (!loader.signal.aborted) {
4281
+ restoreEditor();
4282
+ this.showError(`Failed to create gist: ${error instanceof Error ? error.message : "Unknown error"}`);
4283
+ }
4284
+ }
4285
+ }
4286
+ async handleCopyCommand() {
4287
+ const text = this.session.getLastAssistantText();
4288
+ if (!text) {
4289
+ this.showError("No agent messages to copy yet.");
4290
+ return;
4291
+ }
4292
+ try {
4293
+ await copyToClipboard(text);
4294
+ this.showStatus("Copied last agent message to clipboard");
4295
+ }
4296
+ catch (error) {
4297
+ this.showError(error instanceof Error ? error.message : String(error));
4298
+ }
4299
+ }
4300
+ handleNameCommand(text) {
4301
+ const name = text.replace(/^\/name\s*/, "").trim();
4302
+ if (!name) {
4303
+ const currentName = this.sessionManager.getSessionName();
4304
+ if (currentName) {
4305
+ this.chatContainer.addChild(new Spacer(1));
4306
+ this.chatContainer.addChild(new Text(theme.fg("dim", `Session name: ${currentName}`), 1, 0));
4307
+ }
4308
+ else {
4309
+ this.showWarning("Usage: /name <name>");
4310
+ }
4311
+ this.ui.requestRender();
4312
+ return;
4313
+ }
4314
+ this.session.setSessionName(name);
4315
+ this.chatContainer.addChild(new Spacer(1));
4316
+ this.chatContainer.addChild(new Text(theme.fg("dim", `Session name set: ${name}`), 1, 0));
4317
+ this.ui.requestRender();
4318
+ }
4319
+ handleSessionCommand() {
4320
+ const stats = this.session.getSessionStats();
4321
+ const sessionName = this.sessionManager.getSessionName();
4322
+ let info = `${theme.bold("Session Info")}\n\n`;
4323
+ if (sessionName) {
4324
+ info += `${theme.fg("dim", "Name:")} ${sessionName}\n`;
4325
+ }
4326
+ info += `${theme.fg("dim", "File:")} ${stats.sessionFile ?? "In-memory"}\n`;
4327
+ info += `${theme.fg("dim", "ID:")} ${stats.sessionId}\n\n`;
4328
+ info += `${theme.bold("Messages")}\n`;
4329
+ info += `${theme.fg("dim", "User:")} ${stats.userMessages}\n`;
4330
+ info += `${theme.fg("dim", "Assistant:")} ${stats.assistantMessages}\n`;
4331
+ info += `${theme.fg("dim", "Tool Calls:")} ${stats.toolCalls}\n`;
4332
+ info += `${theme.fg("dim", "Tool Results:")} ${stats.toolResults}\n`;
4333
+ info += `${theme.fg("dim", "Total:")} ${stats.totalMessages}\n\n`;
4334
+ info += `${theme.bold("Tokens")}\n`;
4335
+ info += `${theme.fg("dim", "Input:")} ${stats.tokens.input.toLocaleString()}\n`;
4336
+ info += `${theme.fg("dim", "Output:")} ${stats.tokens.output.toLocaleString()}\n`;
4337
+ if (stats.tokens.cacheRead > 0) {
4338
+ info += `${theme.fg("dim", "Cache Read:")} ${stats.tokens.cacheRead.toLocaleString()}\n`;
4339
+ }
4340
+ if (stats.tokens.cacheWrite > 0) {
4341
+ info += `${theme.fg("dim", "Cache Write:")} ${stats.tokens.cacheWrite.toLocaleString()}\n`;
4342
+ }
4343
+ info += `${theme.fg("dim", "Total:")} ${stats.tokens.total.toLocaleString()}\n`;
4344
+ if (stats.cost > 0) {
4345
+ info += `\n${theme.bold("Cost")}\n`;
4346
+ info += `${theme.fg("dim", "Total:")} ${stats.cost.toFixed(4)}`;
4347
+ }
4348
+ this.chatContainer.addChild(new Spacer(1));
4349
+ this.chatContainer.addChild(new Text(info, 1, 0));
4350
+ this.ui.requestRender();
4351
+ }
4352
+ handleChangelogCommand() {
4353
+ const changelogPath = getChangelogPath();
4354
+ const allEntries = parseChangelog(changelogPath);
4355
+ const changelogMarkdown = allEntries.length > 0
4356
+ ? allEntries
4357
+ .reverse()
4358
+ .map((e) => e.content)
4359
+ .join("\n\n")
4360
+ : "No changelog entries found.";
4361
+ this.chatContainer.addChild(new Spacer(1));
4362
+ this.chatContainer.addChild(new DynamicBorder());
4363
+ this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "What's New")), 1, 0));
4364
+ this.chatContainer.addChild(new Spacer(1));
4365
+ this.chatContainer.addChild(new Markdown(changelogMarkdown, 1, 1, this.getMarkdownThemeWithSettings()));
4366
+ this.chatContainer.addChild(new DynamicBorder());
4367
+ this.ui.requestRender();
4368
+ }
4369
+ /**
4370
+ * Get capitalized display string for an app keybinding action.
4371
+ */
4372
+ getAppKeyDisplay(action) {
4373
+ return keyDisplayText(action);
4374
+ }
4375
+ /**
4376
+ * Get capitalized display string for an editor keybinding action.
4377
+ */
4378
+ getEditorKeyDisplay(action) {
4379
+ return keyDisplayText(action);
4380
+ }
4381
+ handleHotkeysCommand() {
4382
+ // Navigation keybindings
4383
+ const cursorUp = this.getEditorKeyDisplay("tui.editor.cursorUp");
4384
+ const cursorDown = this.getEditorKeyDisplay("tui.editor.cursorDown");
4385
+ const cursorLeft = this.getEditorKeyDisplay("tui.editor.cursorLeft");
4386
+ const cursorRight = this.getEditorKeyDisplay("tui.editor.cursorRight");
4387
+ const cursorWordLeft = this.getEditorKeyDisplay("tui.editor.cursorWordLeft");
4388
+ const cursorWordRight = this.getEditorKeyDisplay("tui.editor.cursorWordRight");
4389
+ const cursorLineStart = this.getEditorKeyDisplay("tui.editor.cursorLineStart");
4390
+ const cursorLineEnd = this.getEditorKeyDisplay("tui.editor.cursorLineEnd");
4391
+ const jumpForward = this.getEditorKeyDisplay("tui.editor.jumpForward");
4392
+ const jumpBackward = this.getEditorKeyDisplay("tui.editor.jumpBackward");
4393
+ const pageUp = this.getEditorKeyDisplay("tui.editor.pageUp");
4394
+ const pageDown = this.getEditorKeyDisplay("tui.editor.pageDown");
4395
+ // Editing keybindings
4396
+ const submit = this.getEditorKeyDisplay("tui.input.submit");
4397
+ const newLine = this.getEditorKeyDisplay("tui.input.newLine");
4398
+ const deleteWordBackward = this.getEditorKeyDisplay("tui.editor.deleteWordBackward");
4399
+ const deleteWordForward = this.getEditorKeyDisplay("tui.editor.deleteWordForward");
4400
+ const deleteToLineStart = this.getEditorKeyDisplay("tui.editor.deleteToLineStart");
4401
+ const deleteToLineEnd = this.getEditorKeyDisplay("tui.editor.deleteToLineEnd");
4402
+ const yank = this.getEditorKeyDisplay("tui.editor.yank");
4403
+ const yankPop = this.getEditorKeyDisplay("tui.editor.yankPop");
4404
+ const undo = this.getEditorKeyDisplay("tui.editor.undo");
4405
+ const tab = this.getEditorKeyDisplay("tui.input.tab");
4406
+ // App keybindings
4407
+ const interrupt = this.getAppKeyDisplay("app.interrupt");
4408
+ const clear = this.getAppKeyDisplay("app.clear");
4409
+ const exit = this.getAppKeyDisplay("app.exit");
4410
+ const suspend = this.getAppKeyDisplay("app.suspend");
4411
+ const cycleThinkingLevel = this.getAppKeyDisplay("app.thinking.cycle");
4412
+ const cycleModelForward = this.getAppKeyDisplay("app.model.cycleForward");
4413
+ const selectModel = this.getAppKeyDisplay("app.model.select");
4414
+ const expandTools = this.getAppKeyDisplay("app.tools.expand");
4415
+ const toggleThinking = this.getAppKeyDisplay("app.thinking.toggle");
4416
+ const externalEditor = this.getAppKeyDisplay("app.editor.external");
4417
+ const cycleModelBackward = this.getAppKeyDisplay("app.model.cycleBackward");
4418
+ const followUp = this.getAppKeyDisplay("app.message.followUp");
4419
+ const dequeue = this.getAppKeyDisplay("app.message.dequeue");
4420
+ const pasteImage = this.getAppKeyDisplay("app.clipboard.pasteImage");
4421
+ let hotkeys = `
4422
+ **Navigation**
4423
+ | Key | Action |
4424
+ |-----|--------|
4425
+ | \`${cursorUp}\` / \`${cursorDown}\` / \`${cursorLeft}\` / \`${cursorRight}\` | Move cursor / browse history (Up when empty) |
4426
+ | \`${cursorWordLeft}\` / \`${cursorWordRight}\` | Move by word |
4427
+ | \`${cursorLineStart}\` | Start of line |
4428
+ | \`${cursorLineEnd}\` | End of line |
4429
+ | \`${jumpForward}\` | Jump forward to character |
4430
+ | \`${jumpBackward}\` | Jump backward to character |
4431
+ | \`${pageUp}\` / \`${pageDown}\` | Scroll by page |
4432
+
4433
+ **Editing**
4434
+ | Key | Action |
4435
+ |-----|--------|
4436
+ | \`${submit}\` | Send message |
4437
+ | \`${newLine}\` | New line${process.platform === "win32" ? " (Ctrl+Enter on Windows Terminal)" : ""} |
4438
+ | \`${deleteWordBackward}\` | Delete word backwards |
4439
+ | \`${deleteWordForward}\` | Delete word forwards |
4440
+ | \`${deleteToLineStart}\` | Delete to start of line |
4441
+ | \`${deleteToLineEnd}\` | Delete to end of line |
4442
+ | \`${yank}\` | Paste the most-recently-deleted text |
4443
+ | \`${yankPop}\` | Cycle through the deleted text after pasting |
4444
+ | \`${undo}\` | Undo |
4445
+
4446
+ **Other**
4447
+ | Key | Action |
4448
+ |-----|--------|
4449
+ | \`${tab}\` | Path completion / accept autocomplete |
4450
+ | \`${interrupt}\` | Cancel autocomplete / abort streaming |
4451
+ | \`${clear}\` | Clear editor (first) / exit (second) |
4452
+ | \`${exit}\` | Exit (when editor is empty) |
4453
+ | \`${suspend}\` | Suspend to background |
4454
+ | \`${cycleThinkingLevel}\` | Cycle thinking level |
4455
+ | \`${cycleModelForward}\` / \`${cycleModelBackward}\` | Cycle models |
4456
+ | \`${selectModel}\` | Open model selector |
4457
+ | \`${expandTools}\` | Toggle tool output expansion |
4458
+ | \`${toggleThinking}\` | Toggle thinking block visibility |
4459
+ | \`${externalEditor}\` | Edit message in external editor |
4460
+ | \`${followUp}\` | Queue follow-up message |
4461
+ | \`${dequeue}\` | Restore queued messages |
4462
+ | \`${pasteImage}\` | Paste image from clipboard |
4463
+ | \`/\` | Slash commands |
4464
+ | \`!\` | Run bash command |
4465
+ | \`!!\` | Run bash command (excluded from context) |
4466
+ `;
4467
+ // Add extension-registered shortcuts
4468
+ const extensionRunner = this.session.extensionRunner;
4469
+ const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
4470
+ if (shortcuts.size > 0) {
4471
+ hotkeys += `
4472
+ **Extensions**
4473
+ | Key | Action |
4474
+ |-----|--------|
4475
+ `;
4476
+ for (const [key, shortcut] of shortcuts) {
4477
+ const description = shortcut.description ?? shortcut.extensionPath;
4478
+ const keyDisplay = formatKeyText(key, { capitalize: true });
4479
+ hotkeys += `| \`${keyDisplay}\` | ${description} |\n`;
4480
+ }
4481
+ }
4482
+ this.chatContainer.addChild(new Spacer(1));
4483
+ this.chatContainer.addChild(new DynamicBorder());
4484
+ this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "Keyboard Shortcuts")), 1, 0));
4485
+ this.chatContainer.addChild(new Spacer(1));
4486
+ this.chatContainer.addChild(new Markdown(hotkeys.trim(), 1, 1, this.getMarkdownThemeWithSettings()));
4487
+ this.chatContainer.addChild(new DynamicBorder());
4488
+ this.ui.requestRender();
4489
+ }
4490
+ async handleClearCommand() {
4491
+ if (this.loadingAnimation) {
4492
+ this.loadingAnimation.stop();
4493
+ this.loadingAnimation = undefined;
4494
+ }
4495
+ this.statusContainer.clear();
4496
+ try {
4497
+ const result = await this.runtimeHost.newSession();
4498
+ if (result.cancelled) {
4499
+ return;
4500
+ }
4501
+ this.renderCurrentSessionState();
4502
+ this.chatContainer.addChild(new Spacer(1));
4503
+ this.chatContainer.addChild(new Text(`${theme.fg("accent", "✓ New session started")}`, 1, 1));
4504
+ this.ui.requestRender();
4505
+ }
4506
+ catch (error) {
4507
+ await this.handleFatalRuntimeError("Failed to create session", error);
4508
+ }
4509
+ }
4510
+ handleDebugCommand() {
4511
+ const width = this.ui.terminal.columns;
4512
+ const height = this.ui.terminal.rows;
4513
+ const allLines = this.ui.render(width);
4514
+ const debugLogPath = getDebugLogPath();
4515
+ const debugData = [
4516
+ `Debug output at ${new Date().toISOString()}`,
4517
+ `Terminal: ${width}x${height}`,
4518
+ `Total lines: ${allLines.length}`,
4519
+ "",
4520
+ "=== All rendered lines with visible widths ===",
4521
+ ...allLines.map((line, idx) => {
4522
+ const vw = visibleWidth(line);
4523
+ const escaped = JSON.stringify(line);
4524
+ return `[${idx}] (w=${vw}) ${escaped}`;
4525
+ }),
4526
+ "",
4527
+ "=== Agent messages (JSONL) ===",
4528
+ ...this.session.messages.map((msg) => JSON.stringify(msg)),
4529
+ "",
4530
+ ].join("\n");
4531
+ fs.mkdirSync(path.dirname(debugLogPath), { recursive: true });
4532
+ fs.writeFileSync(debugLogPath, debugData);
4533
+ this.chatContainer.addChild(new Spacer(1));
4534
+ this.chatContainer.addChild(new Text(`${theme.fg("accent", "✓ Debug log written")}\n${theme.fg("muted", debugLogPath)}`, 1, 1));
4535
+ this.ui.requestRender();
4536
+ }
4537
+ handleArminSaysHi() {
4538
+ this.chatContainer.addChild(new Spacer(1));
4539
+ this.chatContainer.addChild(new ArminComponent(this.ui));
4540
+ this.ui.requestRender();
4541
+ }
4542
+ handleDementedDelves() {
4543
+ this.chatContainer.addChild(new Spacer(1));
4544
+ this.chatContainer.addChild(new EarendilAnnouncementComponent());
4545
+ this.ui.requestRender();
4546
+ }
4547
+ handleDaxnuts() {
4548
+ this.chatContainer.addChild(new Spacer(1));
4549
+ this.chatContainer.addChild(new DaxnutsComponent(this.ui));
4550
+ this.ui.requestRender();
4551
+ }
4552
+ checkDaxnutsEasterEgg(model) {
4553
+ if (model.provider === "opencode" && model.id.toLowerCase().includes("kimi-k2.5")) {
4554
+ this.handleDaxnuts();
4555
+ }
4556
+ }
4557
+ async handleBashCommand(command, excludeFromContext = false) {
4558
+ const extensionRunner = this.session.extensionRunner;
4559
+ // Emit user_bash event to let extensions intercept
4560
+ const eventResult = await extensionRunner.emitUserBash({
4561
+ type: "user_bash",
4562
+ command,
4563
+ excludeFromContext,
4564
+ cwd: this.sessionManager.getCwd(),
4565
+ });
4566
+ // If extension returned a full result, use it directly
4567
+ if (eventResult?.result) {
4568
+ const result = eventResult.result;
4569
+ // Create UI component for display
4570
+ this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext);
4571
+ if (this.session.isStreaming) {
4572
+ this.pendingMessagesContainer.addChild(this.bashComponent);
4573
+ this.pendingBashComponents.push(this.bashComponent);
4574
+ }
4575
+ else {
4576
+ this.chatContainer.addChild(this.bashComponent);
4577
+ }
4578
+ // Show output and complete
4579
+ if (result.output) {
4580
+ this.bashComponent.appendOutput(result.output);
4581
+ }
4582
+ this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath);
4583
+ // Record the result in session
4584
+ this.session.recordBashResult(command, result, { excludeFromContext });
4585
+ this.bashComponent = undefined;
4586
+ this.ui.requestRender();
4587
+ return;
4588
+ }
4589
+ // Normal execution path (possibly with custom operations)
4590
+ const isDeferred = this.session.isStreaming;
4591
+ this.bashComponent = new BashExecutionComponent(command, this.ui, excludeFromContext);
4592
+ if (isDeferred) {
4593
+ // Show in pending area when agent is streaming
4594
+ this.pendingMessagesContainer.addChild(this.bashComponent);
4595
+ this.pendingBashComponents.push(this.bashComponent);
4596
+ }
4597
+ else {
4598
+ // Show in chat immediately when agent is idle
4599
+ this.chatContainer.addChild(this.bashComponent);
4600
+ }
4601
+ this.ui.requestRender();
4602
+ try {
4603
+ const result = await this.session.executeBash(command, (chunk) => {
4604
+ if (this.bashComponent) {
4605
+ this.bashComponent.appendOutput(chunk);
4606
+ this.ui.requestRender();
4607
+ }
4608
+ }, { excludeFromContext, operations: eventResult?.operations });
4609
+ if (this.bashComponent) {
4610
+ this.bashComponent.setComplete(result.exitCode, result.cancelled, result.truncated ? { truncated: true, content: result.output } : undefined, result.fullOutputPath);
4611
+ }
4612
+ }
4613
+ catch (error) {
4614
+ if (this.bashComponent) {
4615
+ this.bashComponent.setComplete(undefined, false);
4616
+ }
4617
+ this.showError(`Bash command failed: ${error instanceof Error ? error.message : "Unknown error"}`);
4618
+ }
4619
+ this.bashComponent = undefined;
4620
+ this.ui.requestRender();
4621
+ }
4622
+ async handleCompactCommand(customInstructions) {
4623
+ const entries = this.sessionManager.getEntries();
4624
+ const messageCount = entries.filter((e) => e.type === "message").length;
4625
+ if (messageCount < 2) {
4626
+ this.showWarning("Nothing to compact (no messages yet)");
4627
+ return;
4628
+ }
4629
+ if (this.loadingAnimation) {
4630
+ this.loadingAnimation.stop();
4631
+ this.loadingAnimation = undefined;
4632
+ }
4633
+ this.statusContainer.clear();
4634
+ try {
4635
+ await this.session.compact(customInstructions);
4636
+ }
4637
+ catch {
4638
+ // Ignore, will be emitted as an event
4639
+ }
4640
+ }
4641
+ stop() {
4642
+ this.unregisterSignalHandlers();
4643
+ if (this.settingsManager.getShowTerminalProgress()) {
4644
+ this.ui.terminal.setProgress(false);
4645
+ }
4646
+ if (this.loadingAnimation) {
4647
+ this.loadingAnimation.stop();
4648
+ this.loadingAnimation = undefined;
4649
+ }
4650
+ this.clearExtensionTerminalInputListeners();
4651
+ this.footer.dispose();
4652
+ this.footerDataProvider.dispose();
4653
+ if (this.unsubscribe) {
4654
+ this.unsubscribe();
4655
+ }
4656
+ if (this.isInitialized) {
4657
+ this.ui.stop();
4658
+ this.isInitialized = false;
4659
+ }
4660
+ }
4661
+ }
4662
+ //# sourceMappingURL=interactive-mode.js.map