orient-cli 0.3.0 → 0.3.2

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 (1134) hide show
  1. package/dist/integrations/notebooklm/notebooklm-extension.js +3 -8
  2. package/dist/integrations/notebooklm/notebooklm-extension.js.map +1 -1
  3. package/dist/integrations/playwright/playwright-extension.js +4 -14
  4. package/dist/integrations/playwright/playwright-extension.js.map +1 -1
  5. package/dist/integrations/web-search/bridge.js +12 -23
  6. package/dist/integrations/web-search/bridge.js.map +1 -1
  7. package/dist/integrations/web-search/web-search-extension.js +0 -3
  8. package/dist/integrations/web-search/web-search-extension.js.map +1 -1
  9. package/dist/orient/orient-extension.js +6 -14
  10. package/dist/orient/orient-extension.js.map +1 -1
  11. package/package.json +3 -10
  12. package/scripts/postinstall.mjs +40 -1
  13. package/vendor/@orient-cli/coding-agent/dist/bun/cli.d.ts.map +1 -0
  14. package/vendor/@orient-cli/coding-agent/dist/bun/cli.js.map +1 -0
  15. package/vendor/@orient-cli/coding-agent/dist/bun/register-bedrock.d.ts.map +1 -0
  16. package/vendor/@orient-cli/coding-agent/dist/cli/args.d.ts.map +1 -0
  17. package/vendor/@orient-cli/coding-agent/dist/cli/args.js.map +1 -0
  18. package/vendor/@orient-cli/coding-agent/dist/cli/config-selector.d.ts.map +1 -0
  19. package/vendor/@orient-cli/coding-agent/dist/cli/config-selector.js.map +1 -0
  20. package/vendor/@orient-cli/coding-agent/dist/cli/file-processor.d.ts.map +1 -0
  21. package/vendor/@orient-cli/coding-agent/dist/cli/file-processor.js.map +1 -0
  22. package/vendor/@orient-cli/coding-agent/dist/cli/initial-message.d.ts +18 -0
  23. package/vendor/@orient-cli/coding-agent/dist/cli/initial-message.d.ts.map +1 -0
  24. package/vendor/@orient-cli/coding-agent/dist/cli/initial-message.js.map +1 -0
  25. package/vendor/@orient-cli/coding-agent/dist/cli/list-models.d.ts.map +1 -0
  26. package/vendor/@orient-cli/coding-agent/dist/cli/list-models.js.map +1 -0
  27. package/vendor/@orient-cli/coding-agent/dist/cli/session-picker.d.ts.map +1 -0
  28. package/vendor/@orient-cli/coding-agent/dist/cli/session-picker.js.map +1 -0
  29. package/vendor/@orient-cli/coding-agent/dist/cli.d.ts.map +1 -0
  30. package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli.js +0 -0
  31. package/vendor/@orient-cli/coding-agent/dist/cli.js.map +1 -0
  32. package/vendor/@orient-cli/coding-agent/dist/config.d.ts.map +1 -0
  33. package/vendor/@orient-cli/coding-agent/dist/config.js +251 -0
  34. package/vendor/@orient-cli/coding-agent/dist/config.js.map +1 -0
  35. package/vendor/@orient-cli/coding-agent/dist/core/agent-session-runtime.d.ts.map +1 -0
  36. package/vendor/@orient-cli/coding-agent/dist/core/agent-session-runtime.js +231 -0
  37. package/vendor/@orient-cli/coding-agent/dist/core/agent-session-runtime.js.map +1 -0
  38. package/vendor/@orient-cli/coding-agent/dist/core/agent-session-services.d.ts.map +1 -0
  39. package/vendor/@orient-cli/coding-agent/dist/core/agent-session-services.js.map +1 -0
  40. package/vendor/@orient-cli/coding-agent/dist/core/agent-session.d.ts +617 -0
  41. package/vendor/@orient-cli/coding-agent/dist/core/agent-session.d.ts.map +1 -0
  42. package/vendor/@orient-cli/coding-agent/dist/core/agent-session.js +2477 -0
  43. package/vendor/@orient-cli/coding-agent/dist/core/agent-session.js.map +1 -0
  44. package/vendor/@orient-cli/coding-agent/dist/core/auth-storage.d.ts +136 -0
  45. package/vendor/@orient-cli/coding-agent/dist/core/auth-storage.d.ts.map +1 -0
  46. package/vendor/@orient-cli/coding-agent/dist/core/auth-storage.js +418 -0
  47. package/vendor/@orient-cli/coding-agent/dist/core/auth-storage.js.map +1 -0
  48. package/vendor/@orient-cli/coding-agent/dist/core/bash-executor.d.ts.map +1 -0
  49. package/vendor/@orient-cli/coding-agent/dist/core/bash-executor.js.map +1 -0
  50. package/vendor/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.d.ts.map +1 -0
  51. package/vendor/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.js.map +1 -0
  52. package/vendor/@orient-cli/coding-agent/dist/core/compaction/compaction.d.ts.map +1 -0
  53. package/vendor/@orient-cli/coding-agent/dist/core/compaction/compaction.js.map +1 -0
  54. package/vendor/@orient-cli/coding-agent/dist/core/compaction/index.d.ts.map +1 -0
  55. package/vendor/@orient-cli/coding-agent/dist/core/compaction/utils.d.ts.map +1 -0
  56. package/vendor/@orient-cli/coding-agent/dist/core/compaction/utils.js.map +1 -0
  57. package/vendor/@orient-cli/coding-agent/dist/core/defaults.d.ts.map +1 -0
  58. package/vendor/@orient-cli/coding-agent/dist/core/diagnostics.d.ts.map +1 -0
  59. package/vendor/@orient-cli/coding-agent/dist/core/event-bus.d.ts.map +1 -0
  60. package/vendor/@orient-cli/coding-agent/dist/core/event-bus.js.map +1 -0
  61. package/vendor/@orient-cli/coding-agent/dist/core/exec.d.ts.map +1 -0
  62. package/vendor/@orient-cli/coding-agent/dist/core/exec.js.map +1 -0
  63. package/vendor/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
  64. package/vendor/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.js.map +1 -0
  65. package/vendor/@orient-cli/coding-agent/dist/core/export-html/index.d.ts.map +1 -0
  66. package/vendor/@orient-cli/coding-agent/dist/core/export-html/index.js.map +1 -0
  67. package/vendor/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.d.ts.map +1 -0
  68. package/vendor/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.js.map +1 -0
  69. package/vendor/@orient-cli/coding-agent/dist/core/extensions/index.d.ts.map +1 -0
  70. package/vendor/@orient-cli/coding-agent/dist/core/extensions/loader.d.ts.map +1 -0
  71. package/vendor/@orient-cli/coding-agent/dist/core/extensions/loader.js.map +1 -0
  72. package/vendor/@orient-cli/coding-agent/dist/core/extensions/runner.d.ts.map +1 -0
  73. package/vendor/@orient-cli/coding-agent/dist/core/extensions/runner.js +695 -0
  74. package/vendor/@orient-cli/coding-agent/dist/core/extensions/runner.js.map +1 -0
  75. package/vendor/@orient-cli/coding-agent/dist/core/extensions/types.d.ts.map +1 -0
  76. package/vendor/@orient-cli/coding-agent/dist/core/extensions/types.js.map +1 -0
  77. package/vendor/@orient-cli/coding-agent/dist/core/extensions/wrapper.d.ts.map +1 -0
  78. package/vendor/@orient-cli/coding-agent/dist/core/extensions/wrapper.js.map +1 -0
  79. package/vendor/@orient-cli/coding-agent/dist/core/footer-data-provider.d.ts.map +1 -0
  80. package/vendor/@orient-cli/coding-agent/dist/core/footer-data-provider.js +313 -0
  81. package/vendor/@orient-cli/coding-agent/dist/core/footer-data-provider.js.map +1 -0
  82. package/vendor/@orient-cli/coding-agent/dist/core/index.d.ts.map +1 -0
  83. package/vendor/@orient-cli/coding-agent/dist/core/keybindings.d.ts +293 -0
  84. package/vendor/@orient-cli/coding-agent/dist/core/keybindings.d.ts.map +1 -0
  85. package/vendor/@orient-cli/coding-agent/dist/core/keybindings.js +247 -0
  86. package/vendor/@orient-cli/coding-agent/dist/core/keybindings.js.map +1 -0
  87. package/vendor/@orient-cli/coding-agent/dist/core/messages.d.ts.map +1 -0
  88. package/vendor/@orient-cli/coding-agent/dist/core/messages.js.map +1 -0
  89. package/vendor/@orient-cli/coding-agent/dist/core/model-registry.d.ts.map +1 -0
  90. package/vendor/@orient-cli/coding-agent/dist/core/model-registry.js +612 -0
  91. package/vendor/@orient-cli/coding-agent/dist/core/model-registry.js.map +1 -0
  92. package/vendor/@orient-cli/coding-agent/dist/core/model-resolver.d.ts.map +1 -0
  93. package/vendor/@orient-cli/coding-agent/dist/core/model-resolver.js.map +1 -0
  94. package/vendor/@orient-cli/coding-agent/dist/core/output-guard.d.ts.map +1 -0
  95. package/vendor/@orient-cli/coding-agent/dist/core/output-guard.js.map +1 -0
  96. package/vendor/@orient-cli/coding-agent/dist/core/package-manager.d.ts.map +1 -0
  97. package/vendor/@orient-cli/coding-agent/dist/core/package-manager.js +1823 -0
  98. package/vendor/@orient-cli/coding-agent/dist/core/package-manager.js.map +1 -0
  99. package/vendor/@orient-cli/coding-agent/dist/core/prompt-templates.d.ts.map +1 -0
  100. package/vendor/@orient-cli/coding-agent/dist/core/prompt-templates.js.map +1 -0
  101. package/vendor/@orient-cli/coding-agent/dist/core/resolve-config-value.d.ts.map +1 -0
  102. package/vendor/@orient-cli/coding-agent/dist/core/resolve-config-value.js.map +1 -0
  103. package/vendor/@orient-cli/coding-agent/dist/core/resource-loader.d.ts.map +1 -0
  104. package/vendor/@orient-cli/coding-agent/dist/core/resource-loader.js +681 -0
  105. package/vendor/@orient-cli/coding-agent/dist/core/resource-loader.js.map +1 -0
  106. package/vendor/@orient-cli/coding-agent/dist/core/sdk.d.ts.map +1 -0
  107. package/vendor/@orient-cli/coding-agent/dist/core/sdk.js.map +1 -0
  108. package/vendor/@orient-cli/coding-agent/dist/core/session-cwd.d.ts.map +1 -0
  109. package/vendor/@orient-cli/coding-agent/dist/core/session-cwd.js +37 -0
  110. package/vendor/@orient-cli/coding-agent/dist/core/session-cwd.js.map +1 -0
  111. package/vendor/@orient-cli/coding-agent/dist/core/session-manager.d.ts.map +1 -0
  112. package/vendor/@orient-cli/coding-agent/dist/core/session-manager.js +1101 -0
  113. package/vendor/@orient-cli/coding-agent/dist/core/session-manager.js.map +1 -0
  114. package/vendor/@orient-cli/coding-agent/dist/core/settings-manager.d.ts.map +1 -0
  115. package/vendor/@orient-cli/coding-agent/dist/core/settings-manager.js +699 -0
  116. package/vendor/@orient-cli/coding-agent/dist/core/settings-manager.js.map +1 -0
  117. package/vendor/@orient-cli/coding-agent/dist/core/skills.d.ts.map +1 -0
  118. package/vendor/@orient-cli/coding-agent/dist/core/skills.js.map +1 -0
  119. package/vendor/@orient-cli/coding-agent/dist/core/slash-commands.d.ts.map +1 -0
  120. package/vendor/@orient-cli/coding-agent/dist/core/source-info.d.ts.map +1 -0
  121. package/vendor/@orient-cli/coding-agent/dist/core/source-info.js.map +1 -0
  122. package/vendor/@orient-cli/coding-agent/dist/core/system-prompt.d.ts.map +1 -0
  123. package/vendor/@orient-cli/coding-agent/dist/core/system-prompt.js.map +1 -0
  124. package/vendor/@orient-cli/coding-agent/dist/core/timings.d.ts.map +1 -0
  125. package/vendor/@orient-cli/coding-agent/dist/core/timings.js.map +1 -0
  126. package/vendor/@orient-cli/coding-agent/dist/core/tools/bash.d.ts.map +1 -0
  127. package/vendor/@orient-cli/coding-agent/dist/core/tools/bash.js +355 -0
  128. package/vendor/@orient-cli/coding-agent/dist/core/tools/bash.js.map +1 -0
  129. package/vendor/@orient-cli/coding-agent/dist/core/tools/edit-diff.d.ts.map +1 -0
  130. package/vendor/@orient-cli/coding-agent/dist/core/tools/edit-diff.js.map +1 -0
  131. package/vendor/@orient-cli/coding-agent/dist/core/tools/edit.d.ts.map +1 -0
  132. package/vendor/@orient-cli/coding-agent/dist/core/tools/edit.js.map +1 -0
  133. package/vendor/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
  134. package/vendor/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.js.map +1 -0
  135. package/vendor/@orient-cli/coding-agent/dist/core/tools/find.d.ts.map +1 -0
  136. package/vendor/@orient-cli/coding-agent/dist/core/tools/find.js.map +1 -0
  137. package/vendor/@orient-cli/coding-agent/dist/core/tools/grep.d.ts.map +1 -0
  138. package/vendor/@orient-cli/coding-agent/dist/core/tools/grep.js.map +1 -0
  139. package/vendor/@orient-cli/coding-agent/dist/core/tools/index.d.ts.map +1 -0
  140. package/vendor/@orient-cli/coding-agent/dist/core/tools/index.js.map +1 -0
  141. package/vendor/@orient-cli/coding-agent/dist/core/tools/ls.d.ts.map +1 -0
  142. package/vendor/@orient-cli/coding-agent/dist/core/tools/ls.js.map +1 -0
  143. package/vendor/@orient-cli/coding-agent/dist/core/tools/path-utils.d.ts.map +1 -0
  144. package/vendor/@orient-cli/coding-agent/dist/core/tools/path-utils.js.map +1 -0
  145. package/vendor/@orient-cli/coding-agent/dist/core/tools/read.d.ts.map +1 -0
  146. package/vendor/@orient-cli/coding-agent/dist/core/tools/read.js.map +1 -0
  147. package/vendor/@orient-cli/coding-agent/dist/core/tools/render-utils.d.ts.map +1 -0
  148. package/vendor/@orient-cli/coding-agent/dist/core/tools/render-utils.js.map +1 -0
  149. package/vendor/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
  150. package/vendor/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.js.map +1 -0
  151. package/vendor/@orient-cli/coding-agent/dist/core/tools/truncate.d.ts.map +1 -0
  152. package/vendor/@orient-cli/coding-agent/dist/core/tools/truncate.js.map +1 -0
  153. package/vendor/@orient-cli/coding-agent/dist/core/tools/write.d.ts.map +1 -0
  154. package/vendor/@orient-cli/coding-agent/dist/core/tools/write.js +215 -0
  155. package/vendor/@orient-cli/coding-agent/dist/core/tools/write.js.map +1 -0
  156. package/vendor/@orient-cli/coding-agent/dist/index.d.ts.map +1 -0
  157. package/vendor/@orient-cli/coding-agent/dist/main.d.ts.map +1 -0
  158. package/vendor/@orient-cli/coding-agent/dist/main.js.map +1 -0
  159. package/vendor/@orient-cli/coding-agent/dist/migrations.d.ts.map +1 -0
  160. package/vendor/@orient-cli/coding-agent/dist/migrations.js.map +1 -0
  161. package/vendor/@orient-cli/coding-agent/dist/modes/index.d.ts.map +1 -0
  162. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
  163. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.js +102 -0
  164. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.js.map +1 -0
  165. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
  166. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.js +170 -0
  167. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.js.map +1 -0
  168. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
  169. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.js +48 -0
  170. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.js.map +1 -0
  171. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
  172. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.js +42 -0
  173. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
  174. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
  175. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.js +43 -0
  176. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
  177. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
  178. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.js +470 -0
  179. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.js.map +1 -0
  180. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
  181. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.js +28 -0
  182. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.js.map +1 -0
  183. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
  184. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.js +63 -0
  185. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.js.map +1 -0
  186. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
  187. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.js +74 -0
  188. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.js.map +1 -0
  189. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/diff.d.ts.map +1 -0
  190. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/diff.js.map +1 -0
  191. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
  192. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.js +20 -0
  193. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.js.map +1 -0
  194. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
  195. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.js +106 -0
  196. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.js.map +1 -0
  197. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
  198. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.js +55 -0
  199. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.js.map +1 -0
  200. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
  201. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js +71 -0
  202. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js.map +1 -0
  203. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/footer.d.ts.map +1 -0
  204. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/footer.js +199 -0
  205. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/footer.js.map +1 -0
  206. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/index.d.ts.map +1 -0
  207. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/index.js.map +1 -0
  208. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
  209. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
  210. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
  211. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.js +139 -0
  212. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.js.map +1 -0
  213. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
  214. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.js +263 -0
  215. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.js.map +1 -0
  216. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
  217. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.js +92 -0
  218. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.js.map +1 -0
  219. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.d.ts.map +1 -0
  220. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.js.map +1 -0
  221. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
  222. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.js +271 -0
  223. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
  224. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
  225. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.js.map +1 -0
  226. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
  227. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.js +823 -0
  228. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.js.map +1 -0
  229. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
  230. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.js +299 -0
  231. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.js.map +1 -0
  232. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
  233. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.js +38 -0
  234. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.js.map +1 -0
  235. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
  236. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.js +45 -0
  237. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
  238. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
  239. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.js +48 -0
  240. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.js.map +1 -0
  241. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
  242. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.js +50 -0
  243. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.js.map +1 -0
  244. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
  245. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.js +261 -0
  246. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.js.map +1 -0
  247. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
  248. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.js +1070 -0
  249. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.js.map +1 -0
  250. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
  251. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.js +110 -0
  252. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.js.map +1 -0
  253. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.d.ts.map +1 -0
  254. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.js.map +1 -0
  255. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
  256. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.js.map +1 -0
  257. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.d.ts +359 -0
  258. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
  259. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js +4081 -0
  260. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js.map +1 -0
  261. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.d.ts.map +1 -0
  262. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.js +973 -0
  263. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.js.map +1 -0
  264. package/vendor/@orient-cli/coding-agent/dist/modes/print-mode.d.ts.map +1 -0
  265. package/vendor/@orient-cli/coding-agent/dist/modes/print-mode.js.map +1 -0
  266. package/vendor/@orient-cli/coding-agent/dist/modes/rpc/jsonl.d.ts.map +1 -0
  267. package/vendor/@orient-cli/coding-agent/dist/modes/rpc/jsonl.js.map +1 -0
  268. package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.d.ts.map +1 -0
  269. package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.js +401 -0
  270. package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.js.map +1 -0
  271. package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
  272. package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -0
  273. package/vendor/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.d.ts.map +1 -0
  274. package/vendor/@orient-cli/coding-agent/dist/package-manager-cli.d.ts.map +1 -0
  275. package/vendor/@orient-cli/coding-agent/dist/package-manager-cli.js.map +1 -0
  276. package/vendor/@orient-cli/coding-agent/dist/utils/changelog.d.ts.map +1 -0
  277. package/vendor/@orient-cli/coding-agent/dist/utils/changelog.js.map +1 -0
  278. package/vendor/@orient-cli/coding-agent/dist/utils/child-process.d.ts.map +1 -0
  279. package/vendor/@orient-cli/coding-agent/dist/utils/child-process.js.map +1 -0
  280. package/vendor/@orient-cli/coding-agent/dist/utils/clipboard-image.d.ts.map +1 -0
  281. package/vendor/@orient-cli/coding-agent/dist/utils/clipboard-image.js.map +1 -0
  282. package/vendor/@orient-cli/coding-agent/dist/utils/clipboard-native.d.ts.map +1 -0
  283. package/vendor/@orient-cli/coding-agent/dist/utils/clipboard-native.js.map +1 -0
  284. package/vendor/@orient-cli/coding-agent/dist/utils/clipboard.d.ts.map +1 -0
  285. package/vendor/@orient-cli/coding-agent/dist/utils/clipboard.js.map +1 -0
  286. package/vendor/@orient-cli/coding-agent/dist/utils/exif-orientation.d.ts.map +1 -0
  287. package/vendor/@orient-cli/coding-agent/dist/utils/exif-orientation.js.map +1 -0
  288. package/vendor/@orient-cli/coding-agent/dist/utils/frontmatter.d.ts.map +1 -0
  289. package/vendor/@orient-cli/coding-agent/dist/utils/frontmatter.js.map +1 -0
  290. package/vendor/@orient-cli/coding-agent/dist/utils/git.d.ts.map +1 -0
  291. package/vendor/@orient-cli/coding-agent/dist/utils/git.js.map +1 -0
  292. package/vendor/@orient-cli/coding-agent/dist/utils/image-convert.d.ts.map +1 -0
  293. package/vendor/@orient-cli/coding-agent/dist/utils/image-convert.js.map +1 -0
  294. package/vendor/@orient-cli/coding-agent/dist/utils/image-resize.d.ts.map +1 -0
  295. package/vendor/@orient-cli/coding-agent/dist/utils/image-resize.js.map +1 -0
  296. package/vendor/@orient-cli/coding-agent/dist/utils/mime.d.ts.map +1 -0
  297. package/vendor/@orient-cli/coding-agent/dist/utils/mime.js.map +1 -0
  298. package/vendor/@orient-cli/coding-agent/dist/utils/paths.d.ts.map +1 -0
  299. package/vendor/@orient-cli/coding-agent/dist/utils/paths.js.map +1 -0
  300. package/vendor/@orient-cli/coding-agent/dist/utils/photon.d.ts.map +1 -0
  301. package/vendor/@orient-cli/coding-agent/dist/utils/photon.js.map +1 -0
  302. package/vendor/@orient-cli/coding-agent/dist/utils/shell.d.ts.map +1 -0
  303. package/vendor/@orient-cli/coding-agent/dist/utils/shell.js.map +1 -0
  304. package/vendor/@orient-cli/coding-agent/dist/utils/sleep.d.ts.map +1 -0
  305. package/vendor/@orient-cli/coding-agent/dist/utils/sleep.js.map +1 -0
  306. package/vendor/@orient-cli/coding-agent/dist/utils/tools-manager.d.ts.map +1 -0
  307. package/vendor/@orient-cli/coding-agent/dist/utils/tools-manager.js.map +1 -0
  308. package/node_modules/@orient-cli/agent-core/README.md +0 -456
  309. package/node_modules/@orient-cli/ai/README.md +0 -1315
  310. package/node_modules/@orient-cli/coding-agent/README.md +0 -618
  311. package/node_modules/@orient-cli/coding-agent/dist/bun/cli.d.ts.map +0 -1
  312. package/node_modules/@orient-cli/coding-agent/dist/bun/cli.js.map +0 -1
  313. package/node_modules/@orient-cli/coding-agent/dist/bun/register-bedrock.d.ts.map +0 -1
  314. package/node_modules/@orient-cli/coding-agent/dist/cli/args.d.ts.map +0 -1
  315. package/node_modules/@orient-cli/coding-agent/dist/cli/args.js.map +0 -1
  316. package/node_modules/@orient-cli/coding-agent/dist/cli/config-selector.d.ts.map +0 -1
  317. package/node_modules/@orient-cli/coding-agent/dist/cli/config-selector.js.map +0 -1
  318. package/node_modules/@orient-cli/coding-agent/dist/cli/file-processor.d.ts.map +0 -1
  319. package/node_modules/@orient-cli/coding-agent/dist/cli/file-processor.js.map +0 -1
  320. package/node_modules/@orient-cli/coding-agent/dist/cli/initial-message.d.ts +0 -18
  321. package/node_modules/@orient-cli/coding-agent/dist/cli/initial-message.d.ts.map +0 -1
  322. package/node_modules/@orient-cli/coding-agent/dist/cli/initial-message.js.map +0 -1
  323. package/node_modules/@orient-cli/coding-agent/dist/cli/list-models.d.ts.map +0 -1
  324. package/node_modules/@orient-cli/coding-agent/dist/cli/list-models.js.map +0 -1
  325. package/node_modules/@orient-cli/coding-agent/dist/cli/session-picker.d.ts.map +0 -1
  326. package/node_modules/@orient-cli/coding-agent/dist/cli/session-picker.js.map +0 -1
  327. package/node_modules/@orient-cli/coding-agent/dist/cli.d.ts.map +0 -1
  328. package/node_modules/@orient-cli/coding-agent/dist/cli.js.map +0 -1
  329. package/node_modules/@orient-cli/coding-agent/dist/config.d.ts.map +0 -1
  330. package/node_modules/@orient-cli/coding-agent/dist/config.js +0 -229
  331. package/node_modules/@orient-cli/coding-agent/dist/config.js.map +0 -1
  332. package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-runtime.d.ts.map +0 -1
  333. package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-runtime.js +0 -236
  334. package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-runtime.js.map +0 -1
  335. package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-services.d.ts.map +0 -1
  336. package/node_modules/@orient-cli/coding-agent/dist/core/agent-session-services.js.map +0 -1
  337. package/node_modules/@orient-cli/coding-agent/dist/core/agent-session.d.ts +0 -585
  338. package/node_modules/@orient-cli/coding-agent/dist/core/agent-session.d.ts.map +0 -1
  339. package/node_modules/@orient-cli/coding-agent/dist/core/agent-session.js +0 -2497
  340. package/node_modules/@orient-cli/coding-agent/dist/core/agent-session.js.map +0 -1
  341. package/node_modules/@orient-cli/coding-agent/dist/core/auth-storage.d.ts +0 -132
  342. package/node_modules/@orient-cli/coding-agent/dist/core/auth-storage.d.ts.map +0 -1
  343. package/node_modules/@orient-cli/coding-agent/dist/core/auth-storage.js +0 -422
  344. package/node_modules/@orient-cli/coding-agent/dist/core/auth-storage.js.map +0 -1
  345. package/node_modules/@orient-cli/coding-agent/dist/core/bash-executor.d.ts.map +0 -1
  346. package/node_modules/@orient-cli/coding-agent/dist/core/bash-executor.js.map +0 -1
  347. package/node_modules/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.d.ts.map +0 -1
  348. package/node_modules/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.js.map +0 -1
  349. package/node_modules/@orient-cli/coding-agent/dist/core/compaction/compaction.d.ts.map +0 -1
  350. package/node_modules/@orient-cli/coding-agent/dist/core/compaction/compaction.js.map +0 -1
  351. package/node_modules/@orient-cli/coding-agent/dist/core/compaction/index.d.ts.map +0 -1
  352. package/node_modules/@orient-cli/coding-agent/dist/core/compaction/utils.d.ts.map +0 -1
  353. package/node_modules/@orient-cli/coding-agent/dist/core/compaction/utils.js.map +0 -1
  354. package/node_modules/@orient-cli/coding-agent/dist/core/defaults.d.ts.map +0 -1
  355. package/node_modules/@orient-cli/coding-agent/dist/core/diagnostics.d.ts.map +0 -1
  356. package/node_modules/@orient-cli/coding-agent/dist/core/event-bus.d.ts.map +0 -1
  357. package/node_modules/@orient-cli/coding-agent/dist/core/event-bus.js.map +0 -1
  358. package/node_modules/@orient-cli/coding-agent/dist/core/exec.d.ts.map +0 -1
  359. package/node_modules/@orient-cli/coding-agent/dist/core/exec.js.map +0 -1
  360. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.d.ts.map +0 -1
  361. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.js.map +0 -1
  362. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/index.d.ts.map +0 -1
  363. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/index.js.map +0 -1
  364. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/template.css +0 -1001
  365. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/template.html +0 -55
  366. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/template.js +0 -1690
  367. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.d.ts.map +0 -1
  368. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.js.map +0 -1
  369. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/vendor/highlight.min.js +0 -1213
  370. package/node_modules/@orient-cli/coding-agent/dist/core/export-html/vendor/marked.min.js +0 -6
  371. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/index.d.ts.map +0 -1
  372. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/loader.d.ts.map +0 -1
  373. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/loader.js.map +0 -1
  374. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/runner.d.ts.map +0 -1
  375. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/runner.js +0 -701
  376. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/runner.js.map +0 -1
  377. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/types.d.ts.map +0 -1
  378. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/types.js.map +0 -1
  379. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/wrapper.d.ts.map +0 -1
  380. package/node_modules/@orient-cli/coding-agent/dist/core/extensions/wrapper.js.map +0 -1
  381. package/node_modules/@orient-cli/coding-agent/dist/core/footer-data-provider.d.ts.map +0 -1
  382. package/node_modules/@orient-cli/coding-agent/dist/core/footer-data-provider.js +0 -314
  383. package/node_modules/@orient-cli/coding-agent/dist/core/footer-data-provider.js.map +0 -1
  384. package/node_modules/@orient-cli/coding-agent/dist/core/index.d.ts.map +0 -1
  385. package/node_modules/@orient-cli/coding-agent/dist/core/keybindings.d.ts +0 -293
  386. package/node_modules/@orient-cli/coding-agent/dist/core/keybindings.d.ts.map +0 -1
  387. package/node_modules/@orient-cli/coding-agent/dist/core/keybindings.js +0 -248
  388. package/node_modules/@orient-cli/coding-agent/dist/core/keybindings.js.map +0 -1
  389. package/node_modules/@orient-cli/coding-agent/dist/core/messages.d.ts.map +0 -1
  390. package/node_modules/@orient-cli/coding-agent/dist/core/messages.js.map +0 -1
  391. package/node_modules/@orient-cli/coding-agent/dist/core/model-registry.d.ts.map +0 -1
  392. package/node_modules/@orient-cli/coding-agent/dist/core/model-registry.js +0 -612
  393. package/node_modules/@orient-cli/coding-agent/dist/core/model-registry.js.map +0 -1
  394. package/node_modules/@orient-cli/coding-agent/dist/core/model-resolver.d.ts.map +0 -1
  395. package/node_modules/@orient-cli/coding-agent/dist/core/model-resolver.js.map +0 -1
  396. package/node_modules/@orient-cli/coding-agent/dist/core/output-guard.d.ts.map +0 -1
  397. package/node_modules/@orient-cli/coding-agent/dist/core/output-guard.js.map +0 -1
  398. package/node_modules/@orient-cli/coding-agent/dist/core/package-manager.d.ts.map +0 -1
  399. package/node_modules/@orient-cli/coding-agent/dist/core/package-manager.js +0 -1829
  400. package/node_modules/@orient-cli/coding-agent/dist/core/package-manager.js.map +0 -1
  401. package/node_modules/@orient-cli/coding-agent/dist/core/prompt-templates.d.ts.map +0 -1
  402. package/node_modules/@orient-cli/coding-agent/dist/core/prompt-templates.js.map +0 -1
  403. package/node_modules/@orient-cli/coding-agent/dist/core/resolve-config-value.d.ts.map +0 -1
  404. package/node_modules/@orient-cli/coding-agent/dist/core/resolve-config-value.js.map +0 -1
  405. package/node_modules/@orient-cli/coding-agent/dist/core/resource-loader.d.ts.map +0 -1
  406. package/node_modules/@orient-cli/coding-agent/dist/core/resource-loader.js +0 -720
  407. package/node_modules/@orient-cli/coding-agent/dist/core/resource-loader.js.map +0 -1
  408. package/node_modules/@orient-cli/coding-agent/dist/core/sdk.d.ts.map +0 -1
  409. package/node_modules/@orient-cli/coding-agent/dist/core/sdk.js.map +0 -1
  410. package/node_modules/@orient-cli/coding-agent/dist/core/session-cwd.d.ts.map +0 -1
  411. package/node_modules/@orient-cli/coding-agent/dist/core/session-cwd.js +0 -38
  412. package/node_modules/@orient-cli/coding-agent/dist/core/session-cwd.js.map +0 -1
  413. package/node_modules/@orient-cli/coding-agent/dist/core/session-manager.d.ts.map +0 -1
  414. package/node_modules/@orient-cli/coding-agent/dist/core/session-manager.js +0 -1105
  415. package/node_modules/@orient-cli/coding-agent/dist/core/session-manager.js.map +0 -1
  416. package/node_modules/@orient-cli/coding-agent/dist/core/settings-manager.d.ts.map +0 -1
  417. package/node_modules/@orient-cli/coding-agent/dist/core/settings-manager.js +0 -708
  418. package/node_modules/@orient-cli/coding-agent/dist/core/settings-manager.js.map +0 -1
  419. package/node_modules/@orient-cli/coding-agent/dist/core/skills.d.ts.map +0 -1
  420. package/node_modules/@orient-cli/coding-agent/dist/core/skills.js.map +0 -1
  421. package/node_modules/@orient-cli/coding-agent/dist/core/slash-commands.d.ts.map +0 -1
  422. package/node_modules/@orient-cli/coding-agent/dist/core/source-info.d.ts.map +0 -1
  423. package/node_modules/@orient-cli/coding-agent/dist/core/source-info.js.map +0 -1
  424. package/node_modules/@orient-cli/coding-agent/dist/core/system-prompt.d.ts.map +0 -1
  425. package/node_modules/@orient-cli/coding-agent/dist/core/system-prompt.js.map +0 -1
  426. package/node_modules/@orient-cli/coding-agent/dist/core/timings.d.ts.map +0 -1
  427. package/node_modules/@orient-cli/coding-agent/dist/core/timings.js.map +0 -1
  428. package/node_modules/@orient-cli/coding-agent/dist/core/tools/bash.d.ts.map +0 -1
  429. package/node_modules/@orient-cli/coding-agent/dist/core/tools/bash.js +0 -352
  430. package/node_modules/@orient-cli/coding-agent/dist/core/tools/bash.js.map +0 -1
  431. package/node_modules/@orient-cli/coding-agent/dist/core/tools/edit-diff.d.ts.map +0 -1
  432. package/node_modules/@orient-cli/coding-agent/dist/core/tools/edit-diff.js.map +0 -1
  433. package/node_modules/@orient-cli/coding-agent/dist/core/tools/edit.d.ts.map +0 -1
  434. package/node_modules/@orient-cli/coding-agent/dist/core/tools/edit.js.map +0 -1
  435. package/node_modules/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.d.ts.map +0 -1
  436. package/node_modules/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.js.map +0 -1
  437. package/node_modules/@orient-cli/coding-agent/dist/core/tools/find.d.ts.map +0 -1
  438. package/node_modules/@orient-cli/coding-agent/dist/core/tools/find.js.map +0 -1
  439. package/node_modules/@orient-cli/coding-agent/dist/core/tools/grep.d.ts.map +0 -1
  440. package/node_modules/@orient-cli/coding-agent/dist/core/tools/grep.js.map +0 -1
  441. package/node_modules/@orient-cli/coding-agent/dist/core/tools/index.d.ts.map +0 -1
  442. package/node_modules/@orient-cli/coding-agent/dist/core/tools/index.js.map +0 -1
  443. package/node_modules/@orient-cli/coding-agent/dist/core/tools/ls.d.ts.map +0 -1
  444. package/node_modules/@orient-cli/coding-agent/dist/core/tools/ls.js.map +0 -1
  445. package/node_modules/@orient-cli/coding-agent/dist/core/tools/path-utils.d.ts.map +0 -1
  446. package/node_modules/@orient-cli/coding-agent/dist/core/tools/path-utils.js.map +0 -1
  447. package/node_modules/@orient-cli/coding-agent/dist/core/tools/read.d.ts.map +0 -1
  448. package/node_modules/@orient-cli/coding-agent/dist/core/tools/read.js.map +0 -1
  449. package/node_modules/@orient-cli/coding-agent/dist/core/tools/render-utils.d.ts.map +0 -1
  450. package/node_modules/@orient-cli/coding-agent/dist/core/tools/render-utils.js.map +0 -1
  451. package/node_modules/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.d.ts.map +0 -1
  452. package/node_modules/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.js.map +0 -1
  453. package/node_modules/@orient-cli/coding-agent/dist/core/tools/truncate.d.ts.map +0 -1
  454. package/node_modules/@orient-cli/coding-agent/dist/core/tools/truncate.js.map +0 -1
  455. package/node_modules/@orient-cli/coding-agent/dist/core/tools/write.d.ts.map +0 -1
  456. package/node_modules/@orient-cli/coding-agent/dist/core/tools/write.js +0 -216
  457. package/node_modules/@orient-cli/coding-agent/dist/core/tools/write.js.map +0 -1
  458. package/node_modules/@orient-cli/coding-agent/dist/index.d.ts.map +0 -1
  459. package/node_modules/@orient-cli/coding-agent/dist/main.d.ts.map +0 -1
  460. package/node_modules/@orient-cli/coding-agent/dist/main.js.map +0 -1
  461. package/node_modules/@orient-cli/coding-agent/dist/migrations.d.ts.map +0 -1
  462. package/node_modules/@orient-cli/coding-agent/dist/migrations.js.map +0 -1
  463. package/node_modules/@orient-cli/coding-agent/dist/modes/index.d.ts.map +0 -1
  464. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.d.ts.map +0 -1
  465. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.js +0 -107
  466. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.js.map +0 -1
  467. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.d.ts.map +0 -1
  468. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.js +0 -175
  469. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.js.map +0 -1
  470. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.d.ts.map +0 -1
  471. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.js +0 -51
  472. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.js.map +0 -1
  473. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts.map +0 -1
  474. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.js +0 -44
  475. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.js.map +0 -1
  476. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts.map +0 -1
  477. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.js +0 -45
  478. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.js.map +0 -1
  479. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.d.ts.map +0 -1
  480. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.js +0 -479
  481. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.js.map +0 -1
  482. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.d.ts.map +0 -1
  483. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.js +0 -33
  484. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.js.map +0 -1
  485. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.d.ts.map +0 -1
  486. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.js +0 -70
  487. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.js.map +0 -1
  488. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.d.ts.map +0 -1
  489. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.js +0 -79
  490. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.js.map +0 -1
  491. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/diff.d.ts.map +0 -1
  492. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/diff.js.map +0 -1
  493. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.d.ts.map +0 -1
  494. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.js +0 -21
  495. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.js.map +0 -1
  496. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.d.ts.map +0 -1
  497. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.js +0 -111
  498. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.js.map +0 -1
  499. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.d.ts.map +0 -1
  500. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.js +0 -61
  501. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.js.map +0 -1
  502. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.d.ts.map +0 -1
  503. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js +0 -78
  504. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.js.map +0 -1
  505. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/footer.d.ts.map +0 -1
  506. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/footer.js +0 -201
  507. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/footer.js.map +0 -1
  508. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/index.d.ts.map +0 -1
  509. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/index.js.map +0 -1
  510. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts.map +0 -1
  511. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.js.map +0 -1
  512. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.d.ts.map +0 -1
  513. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.js +0 -145
  514. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.js.map +0 -1
  515. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.d.ts.map +0 -1
  516. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.js +0 -275
  517. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.js.map +0 -1
  518. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.d.ts.map +0 -1
  519. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.js +0 -97
  520. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.js.map +0 -1
  521. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.d.ts.map +0 -1
  522. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.js.map +0 -1
  523. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts.map +0 -1
  524. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.js +0 -275
  525. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.js.map +0 -1
  526. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.d.ts.map +0 -1
  527. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.js.map +0 -1
  528. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.d.ts.map +0 -1
  529. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.js +0 -848
  530. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.js.map +0 -1
  531. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.d.ts.map +0 -1
  532. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.js +0 -301
  533. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.js.map +0 -1
  534. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.d.ts.map +0 -1
  535. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.js +0 -39
  536. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.js.map +0 -1
  537. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts.map +0 -1
  538. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.js +0 -47
  539. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.js.map +0 -1
  540. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.d.ts.map +0 -1
  541. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.js +0 -50
  542. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.js.map +0 -1
  543. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.d.ts.map +0 -1
  544. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.js +0 -51
  545. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.js.map +0 -1
  546. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.d.ts.map +0 -1
  547. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.js +0 -274
  548. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.js.map +0 -1
  549. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.d.ts.map +0 -1
  550. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.js +0 -1084
  551. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.js.map +0 -1
  552. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.d.ts.map +0 -1
  553. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.js +0 -113
  554. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.js.map +0 -1
  555. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.d.ts.map +0 -1
  556. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.js.map +0 -1
  557. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.d.ts.map +0 -1
  558. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.js.map +0 -1
  559. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.d.ts +0 -345
  560. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.d.ts.map +0 -1
  561. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js +0 -4106
  562. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/interactive-mode.js.map +0 -1
  563. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/dark.json +0 -85
  564. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/light.json +0 -84
  565. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/theme-schema.json +0 -335
  566. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.d.ts.map +0 -1
  567. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.js +0 -979
  568. package/node_modules/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.js.map +0 -1
  569. package/node_modules/@orient-cli/coding-agent/dist/modes/print-mode.d.ts.map +0 -1
  570. package/node_modules/@orient-cli/coding-agent/dist/modes/print-mode.js.map +0 -1
  571. package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/jsonl.d.ts.map +0 -1
  572. package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/jsonl.js.map +0 -1
  573. package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.d.ts.map +0 -1
  574. package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.js +0 -402
  575. package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.js.map +0 -1
  576. package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +0 -1
  577. package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.js.map +0 -1
  578. package/node_modules/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.d.ts.map +0 -1
  579. package/node_modules/@orient-cli/coding-agent/dist/package-manager-cli.d.ts.map +0 -1
  580. package/node_modules/@orient-cli/coding-agent/dist/package-manager-cli.js.map +0 -1
  581. package/node_modules/@orient-cli/coding-agent/dist/utils/changelog.d.ts.map +0 -1
  582. package/node_modules/@orient-cli/coding-agent/dist/utils/changelog.js.map +0 -1
  583. package/node_modules/@orient-cli/coding-agent/dist/utils/child-process.d.ts.map +0 -1
  584. package/node_modules/@orient-cli/coding-agent/dist/utils/child-process.js.map +0 -1
  585. package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard-image.d.ts.map +0 -1
  586. package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard-image.js.map +0 -1
  587. package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard-native.d.ts.map +0 -1
  588. package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard-native.js.map +0 -1
  589. package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard.d.ts.map +0 -1
  590. package/node_modules/@orient-cli/coding-agent/dist/utils/clipboard.js.map +0 -1
  591. package/node_modules/@orient-cli/coding-agent/dist/utils/exif-orientation.d.ts.map +0 -1
  592. package/node_modules/@orient-cli/coding-agent/dist/utils/exif-orientation.js.map +0 -1
  593. package/node_modules/@orient-cli/coding-agent/dist/utils/frontmatter.d.ts.map +0 -1
  594. package/node_modules/@orient-cli/coding-agent/dist/utils/frontmatter.js.map +0 -1
  595. package/node_modules/@orient-cli/coding-agent/dist/utils/git.d.ts.map +0 -1
  596. package/node_modules/@orient-cli/coding-agent/dist/utils/git.js.map +0 -1
  597. package/node_modules/@orient-cli/coding-agent/dist/utils/image-convert.d.ts.map +0 -1
  598. package/node_modules/@orient-cli/coding-agent/dist/utils/image-convert.js.map +0 -1
  599. package/node_modules/@orient-cli/coding-agent/dist/utils/image-resize.d.ts.map +0 -1
  600. package/node_modules/@orient-cli/coding-agent/dist/utils/image-resize.js.map +0 -1
  601. package/node_modules/@orient-cli/coding-agent/dist/utils/mime.d.ts.map +0 -1
  602. package/node_modules/@orient-cli/coding-agent/dist/utils/mime.js.map +0 -1
  603. package/node_modules/@orient-cli/coding-agent/dist/utils/paths.d.ts.map +0 -1
  604. package/node_modules/@orient-cli/coding-agent/dist/utils/paths.js.map +0 -1
  605. package/node_modules/@orient-cli/coding-agent/dist/utils/photon.d.ts.map +0 -1
  606. package/node_modules/@orient-cli/coding-agent/dist/utils/photon.js.map +0 -1
  607. package/node_modules/@orient-cli/coding-agent/dist/utils/shell.d.ts.map +0 -1
  608. package/node_modules/@orient-cli/coding-agent/dist/utils/shell.js.map +0 -1
  609. package/node_modules/@orient-cli/coding-agent/dist/utils/sleep.d.ts.map +0 -1
  610. package/node_modules/@orient-cli/coding-agent/dist/utils/sleep.js.map +0 -1
  611. package/node_modules/@orient-cli/coding-agent/dist/utils/tools-manager.d.ts.map +0 -1
  612. package/node_modules/@orient-cli/coding-agent/dist/utils/tools-manager.js.map +0 -1
  613. package/node_modules/@orient-cli/tui/README.md +0 -767
  614. package/node_modules/mime-db/HISTORY.md +0 -541
  615. package/node_modules/mime-db/LICENSE +0 -23
  616. package/node_modules/mime-db/README.md +0 -109
  617. package/node_modules/mime-db/db.json +0 -9342
  618. package/node_modules/mime-db/index.js +0 -12
  619. package/node_modules/mime-db/package.json +0 -56
  620. package/node_modules/mime-types/HISTORY.md +0 -428
  621. package/node_modules/mime-types/LICENSE +0 -23
  622. package/node_modules/mime-types/README.md +0 -126
  623. package/node_modules/mime-types/index.js +0 -211
  624. package/node_modules/mime-types/mimeScore.js +0 -57
  625. package/node_modules/mime-types/package.json +0 -49
  626. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent-loop.d.ts +0 -0
  627. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent-loop.d.ts.map +0 -0
  628. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent-loop.js +0 -0
  629. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent-loop.js.map +0 -0
  630. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent.d.ts +0 -0
  631. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent.d.ts.map +0 -0
  632. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent.js +0 -0
  633. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/agent.js.map +0 -0
  634. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/index.d.ts +0 -0
  635. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/index.d.ts.map +0 -0
  636. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/index.js +0 -0
  637. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/index.js.map +0 -0
  638. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/proxy.d.ts +0 -0
  639. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/proxy.d.ts.map +0 -0
  640. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/proxy.js +0 -0
  641. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/proxy.js.map +0 -0
  642. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/types.d.ts +0 -0
  643. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/types.d.ts.map +0 -0
  644. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/types.js +0 -0
  645. /package/{node_modules → vendor}/@orient-cli/agent-core/dist/types.js.map +0 -0
  646. /package/{node_modules → vendor}/@orient-cli/agent-core/package.json +0 -0
  647. /package/{node_modules → vendor}/@orient-cli/ai/dist/api-registry.d.ts +0 -0
  648. /package/{node_modules → vendor}/@orient-cli/ai/dist/api-registry.d.ts.map +0 -0
  649. /package/{node_modules → vendor}/@orient-cli/ai/dist/api-registry.js +0 -0
  650. /package/{node_modules → vendor}/@orient-cli/ai/dist/api-registry.js.map +0 -0
  651. /package/{node_modules → vendor}/@orient-cli/ai/dist/bedrock-provider.d.ts +0 -0
  652. /package/{node_modules → vendor}/@orient-cli/ai/dist/bedrock-provider.d.ts.map +0 -0
  653. /package/{node_modules → vendor}/@orient-cli/ai/dist/bedrock-provider.js +0 -0
  654. /package/{node_modules → vendor}/@orient-cli/ai/dist/bedrock-provider.js.map +0 -0
  655. /package/{node_modules → vendor}/@orient-cli/ai/dist/cli.d.ts +0 -0
  656. /package/{node_modules → vendor}/@orient-cli/ai/dist/cli.d.ts.map +0 -0
  657. /package/{node_modules → vendor}/@orient-cli/ai/dist/cli.js +0 -0
  658. /package/{node_modules → vendor}/@orient-cli/ai/dist/cli.js.map +0 -0
  659. /package/{node_modules → vendor}/@orient-cli/ai/dist/env-api-keys.d.ts +0 -0
  660. /package/{node_modules → vendor}/@orient-cli/ai/dist/env-api-keys.d.ts.map +0 -0
  661. /package/{node_modules → vendor}/@orient-cli/ai/dist/env-api-keys.js +0 -0
  662. /package/{node_modules → vendor}/@orient-cli/ai/dist/env-api-keys.js.map +0 -0
  663. /package/{node_modules → vendor}/@orient-cli/ai/dist/index.d.ts +0 -0
  664. /package/{node_modules → vendor}/@orient-cli/ai/dist/index.d.ts.map +0 -0
  665. /package/{node_modules → vendor}/@orient-cli/ai/dist/index.js +0 -0
  666. /package/{node_modules → vendor}/@orient-cli/ai/dist/index.js.map +0 -0
  667. /package/{node_modules → vendor}/@orient-cli/ai/dist/models.d.ts +0 -0
  668. /package/{node_modules → vendor}/@orient-cli/ai/dist/models.d.ts.map +0 -0
  669. /package/{node_modules → vendor}/@orient-cli/ai/dist/models.generated.d.ts +0 -0
  670. /package/{node_modules → vendor}/@orient-cli/ai/dist/models.generated.d.ts.map +0 -0
  671. /package/{node_modules → vendor}/@orient-cli/ai/dist/models.generated.js +0 -0
  672. /package/{node_modules → vendor}/@orient-cli/ai/dist/models.generated.js.map +0 -0
  673. /package/{node_modules → vendor}/@orient-cli/ai/dist/models.js +0 -0
  674. /package/{node_modules → vendor}/@orient-cli/ai/dist/models.js.map +0 -0
  675. /package/{node_modules → vendor}/@orient-cli/ai/dist/oauth.d.ts +0 -0
  676. /package/{node_modules → vendor}/@orient-cli/ai/dist/oauth.d.ts.map +0 -0
  677. /package/{node_modules → vendor}/@orient-cli/ai/dist/oauth.js +0 -0
  678. /package/{node_modules → vendor}/@orient-cli/ai/dist/oauth.js.map +0 -0
  679. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/amazon-bedrock.d.ts +0 -0
  680. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/amazon-bedrock.d.ts.map +0 -0
  681. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/amazon-bedrock.js +0 -0
  682. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/amazon-bedrock.js.map +0 -0
  683. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/anthropic.d.ts +0 -0
  684. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/anthropic.d.ts.map +0 -0
  685. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/anthropic.js +0 -0
  686. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/anthropic.js.map +0 -0
  687. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/azure-openai-responses.d.ts +0 -0
  688. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/azure-openai-responses.d.ts.map +0 -0
  689. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/azure-openai-responses.js +0 -0
  690. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/azure-openai-responses.js.map +0 -0
  691. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/faux.d.ts +0 -0
  692. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/faux.d.ts.map +0 -0
  693. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/faux.js +0 -0
  694. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/faux.js.map +0 -0
  695. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/github-copilot-headers.d.ts +0 -0
  696. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/github-copilot-headers.d.ts.map +0 -0
  697. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/github-copilot-headers.js +0 -0
  698. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/github-copilot-headers.js.map +0 -0
  699. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-gemini-cli.d.ts +0 -0
  700. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-gemini-cli.d.ts.map +0 -0
  701. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-gemini-cli.js +0 -0
  702. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-gemini-cli.js.map +0 -0
  703. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-shared.d.ts +0 -0
  704. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-shared.d.ts.map +0 -0
  705. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-shared.js +0 -0
  706. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-shared.js.map +0 -0
  707. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-vertex.d.ts +0 -0
  708. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-vertex.d.ts.map +0 -0
  709. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-vertex.js +0 -0
  710. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google-vertex.js.map +0 -0
  711. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google.d.ts +0 -0
  712. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google.d.ts.map +0 -0
  713. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google.js +0 -0
  714. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/google.js.map +0 -0
  715. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/mistral.d.ts +0 -0
  716. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/mistral.d.ts.map +0 -0
  717. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/mistral.js +0 -0
  718. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/mistral.js.map +0 -0
  719. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-codex-responses.d.ts +0 -0
  720. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-codex-responses.d.ts.map +0 -0
  721. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-codex-responses.js +0 -0
  722. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-codex-responses.js.map +0 -0
  723. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-completions.d.ts +0 -0
  724. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-completions.d.ts.map +0 -0
  725. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-completions.js +0 -0
  726. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-completions.js.map +0 -0
  727. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses-shared.d.ts +0 -0
  728. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses-shared.d.ts.map +0 -0
  729. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses-shared.js +0 -0
  730. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses-shared.js.map +0 -0
  731. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses.d.ts +0 -0
  732. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses.d.ts.map +0 -0
  733. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses.js +0 -0
  734. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/openai-responses.js.map +0 -0
  735. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/register-builtins.d.ts +0 -0
  736. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/register-builtins.d.ts.map +0 -0
  737. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/register-builtins.js +0 -0
  738. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/register-builtins.js.map +0 -0
  739. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/simple-options.d.ts +0 -0
  740. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/simple-options.d.ts.map +0 -0
  741. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/simple-options.js +0 -0
  742. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/simple-options.js.map +0 -0
  743. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/transform-messages.d.ts +0 -0
  744. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/transform-messages.d.ts.map +0 -0
  745. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/transform-messages.js +0 -0
  746. /package/{node_modules → vendor}/@orient-cli/ai/dist/providers/transform-messages.js.map +0 -0
  747. /package/{node_modules → vendor}/@orient-cli/ai/dist/stream.d.ts +0 -0
  748. /package/{node_modules → vendor}/@orient-cli/ai/dist/stream.d.ts.map +0 -0
  749. /package/{node_modules → vendor}/@orient-cli/ai/dist/stream.js +0 -0
  750. /package/{node_modules → vendor}/@orient-cli/ai/dist/stream.js.map +0 -0
  751. /package/{node_modules → vendor}/@orient-cli/ai/dist/types.d.ts +0 -0
  752. /package/{node_modules → vendor}/@orient-cli/ai/dist/types.d.ts.map +0 -0
  753. /package/{node_modules → vendor}/@orient-cli/ai/dist/types.js +0 -0
  754. /package/{node_modules → vendor}/@orient-cli/ai/dist/types.js.map +0 -0
  755. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/event-stream.d.ts +0 -0
  756. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/event-stream.d.ts.map +0 -0
  757. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/event-stream.js +0 -0
  758. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/event-stream.js.map +0 -0
  759. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/hash.d.ts +0 -0
  760. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/hash.d.ts.map +0 -0
  761. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/hash.js +0 -0
  762. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/hash.js.map +0 -0
  763. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/json-parse.d.ts +0 -0
  764. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/json-parse.d.ts.map +0 -0
  765. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/json-parse.js +0 -0
  766. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/json-parse.js.map +0 -0
  767. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/anthropic.d.ts +0 -0
  768. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/anthropic.d.ts.map +0 -0
  769. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/anthropic.js +0 -0
  770. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/anthropic.js.map +0 -0
  771. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/github-copilot.d.ts +0 -0
  772. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/github-copilot.d.ts.map +0 -0
  773. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/github-copilot.js +0 -0
  774. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/github-copilot.js.map +0 -0
  775. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-antigravity.d.ts +0 -0
  776. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-antigravity.d.ts.map +0 -0
  777. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-antigravity.js +0 -0
  778. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-antigravity.js.map +0 -0
  779. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-gemini-cli.d.ts +0 -0
  780. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-gemini-cli.d.ts.map +0 -0
  781. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-gemini-cli.js +0 -0
  782. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/google-gemini-cli.js.map +0 -0
  783. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/index.d.ts +0 -0
  784. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/index.d.ts.map +0 -0
  785. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/index.js +0 -0
  786. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/index.js.map +0 -0
  787. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/oauth-page.d.ts +0 -0
  788. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/oauth-page.d.ts.map +0 -0
  789. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/oauth-page.js +0 -0
  790. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/oauth-page.js.map +0 -0
  791. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/openai-codex.d.ts +0 -0
  792. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/openai-codex.d.ts.map +0 -0
  793. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/openai-codex.js +0 -0
  794. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/openai-codex.js.map +0 -0
  795. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/pkce.d.ts +0 -0
  796. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/pkce.d.ts.map +0 -0
  797. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/pkce.js +0 -0
  798. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/pkce.js.map +0 -0
  799. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/types.d.ts +0 -0
  800. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/types.d.ts.map +0 -0
  801. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/types.js +0 -0
  802. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/oauth/types.js.map +0 -0
  803. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/overflow.d.ts +0 -0
  804. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/overflow.d.ts.map +0 -0
  805. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/overflow.js +0 -0
  806. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/overflow.js.map +0 -0
  807. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/sanitize-unicode.d.ts +0 -0
  808. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/sanitize-unicode.d.ts.map +0 -0
  809. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/sanitize-unicode.js +0 -0
  810. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/sanitize-unicode.js.map +0 -0
  811. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/typebox-helpers.d.ts +0 -0
  812. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/typebox-helpers.d.ts.map +0 -0
  813. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/typebox-helpers.js +0 -0
  814. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/typebox-helpers.js.map +0 -0
  815. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/validation.d.ts +0 -0
  816. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/validation.d.ts.map +0 -0
  817. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/validation.js +0 -0
  818. /package/{node_modules → vendor}/@orient-cli/ai/dist/utils/validation.js.map +0 -0
  819. /package/{node_modules → vendor}/@orient-cli/ai/package.json +0 -0
  820. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/cli.d.ts +0 -0
  821. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/cli.js +0 -0
  822. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/register-bedrock.d.ts +0 -0
  823. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/register-bedrock.js +0 -0
  824. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/bun/register-bedrock.js.map +0 -0
  825. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/args.d.ts +0 -0
  826. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/args.js +0 -0
  827. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/config-selector.d.ts +0 -0
  828. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/config-selector.js +0 -0
  829. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/file-processor.d.ts +0 -0
  830. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/file-processor.js +0 -0
  831. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/initial-message.js +0 -0
  832. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/list-models.d.ts +0 -0
  833. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/list-models.js +0 -0
  834. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/session-picker.d.ts +0 -0
  835. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli/session-picker.js +0 -0
  836. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/cli.d.ts +0 -0
  837. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/config.d.ts +0 -0
  838. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/agent-session-runtime.d.ts +0 -0
  839. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/agent-session-services.d.ts +0 -0
  840. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/agent-session-services.js +0 -0
  841. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/bash-executor.d.ts +0 -0
  842. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/bash-executor.js +0 -0
  843. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.d.ts +0 -0
  844. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/branch-summarization.js +0 -0
  845. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/compaction.d.ts +0 -0
  846. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/compaction.js +0 -0
  847. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/index.d.ts +0 -0
  848. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/index.js +0 -0
  849. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/index.js.map +0 -0
  850. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/utils.d.ts +0 -0
  851. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/compaction/utils.js +0 -0
  852. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/defaults.d.ts +0 -0
  853. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/defaults.js +0 -0
  854. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/defaults.js.map +0 -0
  855. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/diagnostics.d.ts +0 -0
  856. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/diagnostics.js +0 -0
  857. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/diagnostics.js.map +0 -0
  858. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/event-bus.d.ts +0 -0
  859. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/event-bus.js +0 -0
  860. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/exec.d.ts +0 -0
  861. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/exec.js +0 -0
  862. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.d.ts +0 -0
  863. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/ansi-to-html.js +0 -0
  864. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/index.d.ts +0 -0
  865. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/index.js +0 -0
  866. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.d.ts +0 -0
  867. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/export-html/tool-renderer.js +0 -0
  868. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/index.d.ts +0 -0
  869. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/index.js +0 -0
  870. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/index.js.map +0 -0
  871. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/loader.d.ts +0 -0
  872. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/loader.js +0 -0
  873. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/runner.d.ts +0 -0
  874. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/types.d.ts +0 -0
  875. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/types.js +0 -0
  876. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/wrapper.d.ts +0 -0
  877. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/extensions/wrapper.js +0 -0
  878. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/footer-data-provider.d.ts +0 -0
  879. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/index.d.ts +0 -0
  880. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/index.js +0 -0
  881. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/index.js.map +0 -0
  882. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/messages.d.ts +0 -0
  883. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/messages.js +0 -0
  884. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/model-registry.d.ts +0 -0
  885. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/model-resolver.d.ts +0 -0
  886. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/model-resolver.js +0 -0
  887. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/output-guard.d.ts +0 -0
  888. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/output-guard.js +0 -0
  889. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/package-manager.d.ts +0 -0
  890. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/prompt-templates.d.ts +0 -0
  891. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/prompt-templates.js +0 -0
  892. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/resolve-config-value.d.ts +0 -0
  893. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/resolve-config-value.js +0 -0
  894. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/resource-loader.d.ts +0 -0
  895. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/sdk.d.ts +0 -0
  896. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/sdk.js +0 -0
  897. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/session-cwd.d.ts +0 -0
  898. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/session-manager.d.ts +0 -0
  899. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/settings-manager.d.ts +0 -0
  900. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/skills.d.ts +0 -0
  901. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/skills.js +0 -0
  902. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/slash-commands.d.ts +0 -0
  903. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/slash-commands.js +0 -0
  904. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/slash-commands.js.map +0 -0
  905. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/source-info.d.ts +0 -0
  906. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/source-info.js +0 -0
  907. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/system-prompt.d.ts +0 -0
  908. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/system-prompt.js +0 -0
  909. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/timings.d.ts +0 -0
  910. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/timings.js +0 -0
  911. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/bash.d.ts +0 -0
  912. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/edit-diff.d.ts +0 -0
  913. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/edit-diff.js +0 -0
  914. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/edit.d.ts +0 -0
  915. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/edit.js +0 -0
  916. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.d.ts +0 -0
  917. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/file-mutation-queue.js +0 -0
  918. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/find.d.ts +0 -0
  919. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/find.js +0 -0
  920. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/grep.d.ts +0 -0
  921. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/grep.js +0 -0
  922. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/index.d.ts +0 -0
  923. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/index.js +0 -0
  924. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/ls.d.ts +0 -0
  925. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/ls.js +0 -0
  926. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/path-utils.d.ts +0 -0
  927. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/path-utils.js +0 -0
  928. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/read.d.ts +0 -0
  929. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/read.js +0 -0
  930. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/render-utils.d.ts +0 -0
  931. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/render-utils.js +0 -0
  932. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.d.ts +0 -0
  933. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/tool-definition-wrapper.js +0 -0
  934. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/truncate.d.ts +0 -0
  935. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/truncate.js +0 -0
  936. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/core/tools/write.d.ts +0 -0
  937. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/index.d.ts +0 -0
  938. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/index.js +0 -0
  939. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/index.js.map +0 -0
  940. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/main.d.ts +0 -0
  941. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/main.js +0 -0
  942. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/migrations.d.ts +0 -0
  943. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/migrations.js +0 -0
  944. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/index.d.ts +0 -0
  945. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/index.js +0 -0
  946. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/index.js.map +0 -0
  947. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/assistant-message.d.ts +0 -0
  948. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/bash-execution.d.ts +0 -0
  949. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/bordered-loader.d.ts +0 -0
  950. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/branch-summary-message.d.ts +0 -0
  951. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/compaction-summary-message.d.ts +0 -0
  952. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/config-selector.d.ts +0 -0
  953. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/countdown-timer.d.ts +0 -0
  954. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/custom-editor.d.ts +0 -0
  955. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/custom-message.d.ts +0 -0
  956. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/diff.d.ts +0 -0
  957. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/diff.js +0 -0
  958. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/dynamic-border.d.ts +0 -0
  959. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/extension-editor.d.ts +0 -0
  960. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/extension-input.d.ts +0 -0
  961. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/extension-selector.d.ts +0 -0
  962. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/footer.d.ts +0 -0
  963. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/index.d.ts +0 -0
  964. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/index.js +0 -0
  965. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.d.ts +0 -0
  966. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/keybinding-hints.js +0 -0
  967. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/login-dialog.d.ts +0 -0
  968. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/model-selector.d.ts +0 -0
  969. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/oauth-selector.d.ts +0 -0
  970. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.d.ts +0 -0
  971. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/orient-banner.js +0 -0
  972. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/scoped-models-selector.d.ts +0 -0
  973. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.d.ts +0 -0
  974. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector-search.js +0 -0
  975. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/session-selector.d.ts +0 -0
  976. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/settings-selector.d.ts +0 -0
  977. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/show-images-selector.d.ts +0 -0
  978. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/skill-invocation-message.d.ts +0 -0
  979. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/theme-selector.d.ts +0 -0
  980. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/thinking-selector.d.ts +0 -0
  981. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/tool-execution.d.ts +0 -0
  982. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/tree-selector.d.ts +0 -0
  983. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/user-message-selector.d.ts +0 -0
  984. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.d.ts +0 -0
  985. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/user-message.js +0 -0
  986. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.d.ts +0 -0
  987. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/components/visual-truncate.js +0 -0
  988. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/interactive/theme/theme.d.ts +0 -0
  989. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/print-mode.d.ts +0 -0
  990. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/print-mode.js +0 -0
  991. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/jsonl.d.ts +0 -0
  992. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/jsonl.js +0 -0
  993. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-client.d.ts +0 -0
  994. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.d.ts +0 -0
  995. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-mode.js +0 -0
  996. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.d.ts +0 -0
  997. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.js +0 -0
  998. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/modes/rpc/rpc-types.js.map +0 -0
  999. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/package-manager-cli.d.ts +0 -0
  1000. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/package-manager-cli.js +0 -0
  1001. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/changelog.d.ts +0 -0
  1002. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/changelog.js +0 -0
  1003. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/child-process.d.ts +0 -0
  1004. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/child-process.js +0 -0
  1005. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard-image.d.ts +0 -0
  1006. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard-image.js +0 -0
  1007. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard-native.d.ts +0 -0
  1008. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard-native.js +0 -0
  1009. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard.d.ts +0 -0
  1010. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/clipboard.js +0 -0
  1011. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/exif-orientation.d.ts +0 -0
  1012. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/exif-orientation.js +0 -0
  1013. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/frontmatter.d.ts +0 -0
  1014. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/frontmatter.js +0 -0
  1015. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/git.d.ts +0 -0
  1016. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/git.js +0 -0
  1017. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/image-convert.d.ts +0 -0
  1018. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/image-convert.js +0 -0
  1019. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/image-resize.d.ts +0 -0
  1020. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/image-resize.js +0 -0
  1021. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/mime.d.ts +0 -0
  1022. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/mime.js +0 -0
  1023. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/paths.d.ts +0 -0
  1024. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/paths.js +0 -0
  1025. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/photon.d.ts +0 -0
  1026. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/photon.js +0 -0
  1027. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/shell.d.ts +0 -0
  1028. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/shell.js +0 -0
  1029. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/sleep.d.ts +0 -0
  1030. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/sleep.js +0 -0
  1031. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/tools-manager.d.ts +0 -0
  1032. /package/{node_modules → vendor}/@orient-cli/coding-agent/dist/utils/tools-manager.js +0 -0
  1033. /package/{node_modules → vendor}/@orient-cli/coding-agent/package.json +0 -0
  1034. /package/{node_modules → vendor}/@orient-cli/tui/dist/autocomplete.d.ts +0 -0
  1035. /package/{node_modules → vendor}/@orient-cli/tui/dist/autocomplete.d.ts.map +0 -0
  1036. /package/{node_modules → vendor}/@orient-cli/tui/dist/autocomplete.js +0 -0
  1037. /package/{node_modules → vendor}/@orient-cli/tui/dist/autocomplete.js.map +0 -0
  1038. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/box.d.ts +0 -0
  1039. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/box.d.ts.map +0 -0
  1040. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/box.js +0 -0
  1041. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/box.js.map +0 -0
  1042. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/cancellable-loader.d.ts +0 -0
  1043. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/cancellable-loader.d.ts.map +0 -0
  1044. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/cancellable-loader.js +0 -0
  1045. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/cancellable-loader.js.map +0 -0
  1046. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/editor.d.ts +0 -0
  1047. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/editor.d.ts.map +0 -0
  1048. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/editor.js +0 -0
  1049. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/editor.js.map +0 -0
  1050. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/image.d.ts +0 -0
  1051. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/image.d.ts.map +0 -0
  1052. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/image.js +0 -0
  1053. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/image.js.map +0 -0
  1054. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/input.d.ts +0 -0
  1055. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/input.d.ts.map +0 -0
  1056. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/input.js +0 -0
  1057. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/input.js.map +0 -0
  1058. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/loader.d.ts +0 -0
  1059. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/loader.d.ts.map +0 -0
  1060. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/loader.js +0 -0
  1061. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/loader.js.map +0 -0
  1062. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/markdown.d.ts +0 -0
  1063. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/markdown.d.ts.map +0 -0
  1064. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/markdown.js +0 -0
  1065. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/markdown.js.map +0 -0
  1066. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/select-list.d.ts +0 -0
  1067. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/select-list.d.ts.map +0 -0
  1068. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/select-list.js +0 -0
  1069. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/select-list.js.map +0 -0
  1070. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/settings-list.d.ts +0 -0
  1071. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/settings-list.d.ts.map +0 -0
  1072. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/settings-list.js +0 -0
  1073. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/settings-list.js.map +0 -0
  1074. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/spacer.d.ts +0 -0
  1075. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/spacer.d.ts.map +0 -0
  1076. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/spacer.js +0 -0
  1077. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/spacer.js.map +0 -0
  1078. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/text.d.ts +0 -0
  1079. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/text.d.ts.map +0 -0
  1080. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/text.js +0 -0
  1081. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/text.js.map +0 -0
  1082. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/truncated-text.d.ts +0 -0
  1083. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/truncated-text.d.ts.map +0 -0
  1084. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/truncated-text.js +0 -0
  1085. /package/{node_modules → vendor}/@orient-cli/tui/dist/components/truncated-text.js.map +0 -0
  1086. /package/{node_modules → vendor}/@orient-cli/tui/dist/editor-component.d.ts +0 -0
  1087. /package/{node_modules → vendor}/@orient-cli/tui/dist/editor-component.d.ts.map +0 -0
  1088. /package/{node_modules → vendor}/@orient-cli/tui/dist/editor-component.js +0 -0
  1089. /package/{node_modules → vendor}/@orient-cli/tui/dist/editor-component.js.map +0 -0
  1090. /package/{node_modules → vendor}/@orient-cli/tui/dist/fuzzy.d.ts +0 -0
  1091. /package/{node_modules → vendor}/@orient-cli/tui/dist/fuzzy.d.ts.map +0 -0
  1092. /package/{node_modules → vendor}/@orient-cli/tui/dist/fuzzy.js +0 -0
  1093. /package/{node_modules → vendor}/@orient-cli/tui/dist/fuzzy.js.map +0 -0
  1094. /package/{node_modules → vendor}/@orient-cli/tui/dist/index.d.ts +0 -0
  1095. /package/{node_modules → vendor}/@orient-cli/tui/dist/index.d.ts.map +0 -0
  1096. /package/{node_modules → vendor}/@orient-cli/tui/dist/index.js +0 -0
  1097. /package/{node_modules → vendor}/@orient-cli/tui/dist/index.js.map +0 -0
  1098. /package/{node_modules → vendor}/@orient-cli/tui/dist/keybindings.d.ts +0 -0
  1099. /package/{node_modules → vendor}/@orient-cli/tui/dist/keybindings.d.ts.map +0 -0
  1100. /package/{node_modules → vendor}/@orient-cli/tui/dist/keybindings.js +0 -0
  1101. /package/{node_modules → vendor}/@orient-cli/tui/dist/keybindings.js.map +0 -0
  1102. /package/{node_modules → vendor}/@orient-cli/tui/dist/keys.d.ts +0 -0
  1103. /package/{node_modules → vendor}/@orient-cli/tui/dist/keys.d.ts.map +0 -0
  1104. /package/{node_modules → vendor}/@orient-cli/tui/dist/keys.js +0 -0
  1105. /package/{node_modules → vendor}/@orient-cli/tui/dist/keys.js.map +0 -0
  1106. /package/{node_modules → vendor}/@orient-cli/tui/dist/kill-ring.d.ts +0 -0
  1107. /package/{node_modules → vendor}/@orient-cli/tui/dist/kill-ring.d.ts.map +0 -0
  1108. /package/{node_modules → vendor}/@orient-cli/tui/dist/kill-ring.js +0 -0
  1109. /package/{node_modules → vendor}/@orient-cli/tui/dist/kill-ring.js.map +0 -0
  1110. /package/{node_modules → vendor}/@orient-cli/tui/dist/stdin-buffer.d.ts +0 -0
  1111. /package/{node_modules → vendor}/@orient-cli/tui/dist/stdin-buffer.d.ts.map +0 -0
  1112. /package/{node_modules → vendor}/@orient-cli/tui/dist/stdin-buffer.js +0 -0
  1113. /package/{node_modules → vendor}/@orient-cli/tui/dist/stdin-buffer.js.map +0 -0
  1114. /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal-image.d.ts +0 -0
  1115. /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal-image.d.ts.map +0 -0
  1116. /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal-image.js +0 -0
  1117. /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal-image.js.map +0 -0
  1118. /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal.d.ts +0 -0
  1119. /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal.d.ts.map +0 -0
  1120. /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal.js +0 -0
  1121. /package/{node_modules → vendor}/@orient-cli/tui/dist/terminal.js.map +0 -0
  1122. /package/{node_modules → vendor}/@orient-cli/tui/dist/tui.d.ts +0 -0
  1123. /package/{node_modules → vendor}/@orient-cli/tui/dist/tui.d.ts.map +0 -0
  1124. /package/{node_modules → vendor}/@orient-cli/tui/dist/tui.js +0 -0
  1125. /package/{node_modules → vendor}/@orient-cli/tui/dist/tui.js.map +0 -0
  1126. /package/{node_modules → vendor}/@orient-cli/tui/dist/undo-stack.d.ts +0 -0
  1127. /package/{node_modules → vendor}/@orient-cli/tui/dist/undo-stack.d.ts.map +0 -0
  1128. /package/{node_modules → vendor}/@orient-cli/tui/dist/undo-stack.js +0 -0
  1129. /package/{node_modules → vendor}/@orient-cli/tui/dist/undo-stack.js.map +0 -0
  1130. /package/{node_modules → vendor}/@orient-cli/tui/dist/utils.d.ts +0 -0
  1131. /package/{node_modules → vendor}/@orient-cli/tui/dist/utils.d.ts.map +0 -0
  1132. /package/{node_modules → vendor}/@orient-cli/tui/dist/utils.js +0 -0
  1133. /package/{node_modules → vendor}/@orient-cli/tui/dist/utils.js.map +0 -0
  1134. /package/{node_modules → vendor}/@orient-cli/tui/package.json +0 -0
@@ -0,0 +1,1823 @@
1
+ import { spawn, spawnSync } from "node:child_process";
2
+ import { createHash } from "node:crypto";
3
+ import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
4
+ import { homedir, tmpdir } from "node:os";
5
+ import { basename, dirname, join, relative, resolve, sep } from "node:path";
6
+ import ignore from "ignore";
7
+ import { minimatch } from "minimatch";
8
+ import { CONFIG_DIR_NAME } from "../config.js";
9
+ import { parseGitUrl } from "../utils/git.js";
10
+ import { isLocalPath } from "../utils/paths.js";
11
+ import { isStdoutTakenOver } from "./output-guard.js";
12
+ const NETWORK_TIMEOUT_MS = 10000;
13
+ const UPDATE_CHECK_CONCURRENCY = 4;
14
+ function isOfflineModeEnabled() {
15
+ const value = process.env.PI_OFFLINE;
16
+ if (!value)
17
+ return false;
18
+ return value === "1" || value.toLowerCase() === "true" || value.toLowerCase() === "yes";
19
+ }
20
+ /**
21
+ * Compute a numeric precedence rank for a resource based on its metadata.
22
+ * Lower rank = higher precedence. Used to sort resolved resources so that
23
+ * name-collision resolution ("first wins") produces the correct outcome.
24
+ *
25
+ * Precedence (highest to lowest):
26
+ * 0 project + settings entry (source: "local", scope: "project")
27
+ * 1 project + auto-discovered (source: "auto", scope: "project")
28
+ * 2 user + settings entry (source: "local", scope: "user")
29
+ * 3 user + auto-discovered (source: "auto", scope: "user")
30
+ * 4 package resource (origin: "package")
31
+ */
32
+ function resourcePrecedenceRank(m) {
33
+ if (m.origin === "package")
34
+ return 4;
35
+ const scopeBase = m.scope === "project" ? 0 : 2;
36
+ return scopeBase + (m.source === "local" ? 0 : 1);
37
+ }
38
+ const RESOURCE_TYPES = ["extensions", "skills", "prompts", "themes"];
39
+ const FILE_PATTERNS = {
40
+ extensions: /\.(ts|js)$/,
41
+ skills: /\.md$/,
42
+ prompts: /\.md$/,
43
+ themes: /\.json$/,
44
+ };
45
+ const IGNORE_FILE_NAMES = [".gitignore", ".ignore", ".fdignore"];
46
+ function toPosixPath(p) {
47
+ return p.split(sep).join("/");
48
+ }
49
+ function getHomeDir() {
50
+ return process.env.HOME || homedir();
51
+ }
52
+ function prefixIgnorePattern(line, prefix) {
53
+ const trimmed = line.trim();
54
+ if (!trimmed)
55
+ return null;
56
+ if (trimmed.startsWith("#") && !trimmed.startsWith("\\#"))
57
+ return null;
58
+ let pattern = line;
59
+ let negated = false;
60
+ if (pattern.startsWith("!")) {
61
+ negated = true;
62
+ pattern = pattern.slice(1);
63
+ }
64
+ else if (pattern.startsWith("\\!")) {
65
+ pattern = pattern.slice(1);
66
+ }
67
+ if (pattern.startsWith("/")) {
68
+ pattern = pattern.slice(1);
69
+ }
70
+ const prefixed = prefix ? `${prefix}${pattern}` : pattern;
71
+ return negated ? `!${prefixed}` : prefixed;
72
+ }
73
+ function addIgnoreRules(ig, dir, rootDir) {
74
+ const relativeDir = relative(rootDir, dir);
75
+ const prefix = relativeDir ? `${toPosixPath(relativeDir)}/` : "";
76
+ for (const filename of IGNORE_FILE_NAMES) {
77
+ const ignorePath = join(dir, filename);
78
+ if (!existsSync(ignorePath))
79
+ continue;
80
+ try {
81
+ const content = readFileSync(ignorePath, "utf-8");
82
+ const patterns = content
83
+ .split(/\r?\n/)
84
+ .map((line) => prefixIgnorePattern(line, prefix))
85
+ .filter((line) => Boolean(line));
86
+ if (patterns.length > 0) {
87
+ ig.add(patterns);
88
+ }
89
+ }
90
+ catch { }
91
+ }
92
+ }
93
+ function isPattern(s) {
94
+ return s.startsWith("!") || s.startsWith("+") || s.startsWith("-") || s.includes("*") || s.includes("?");
95
+ }
96
+ function splitPatterns(entries) {
97
+ const plain = [];
98
+ const patterns = [];
99
+ for (const entry of entries) {
100
+ if (isPattern(entry)) {
101
+ patterns.push(entry);
102
+ }
103
+ else {
104
+ plain.push(entry);
105
+ }
106
+ }
107
+ return { plain, patterns };
108
+ }
109
+ function collectFiles(dir, filePattern, skipNodeModules = true, ignoreMatcher, rootDir) {
110
+ const files = [];
111
+ if (!existsSync(dir))
112
+ return files;
113
+ const root = rootDir ?? dir;
114
+ const ig = ignoreMatcher ?? ignore();
115
+ addIgnoreRules(ig, dir, root);
116
+ try {
117
+ const entries = readdirSync(dir, { withFileTypes: true });
118
+ for (const entry of entries) {
119
+ if (entry.name.startsWith("."))
120
+ continue;
121
+ if (skipNodeModules && entry.name === "node_modules")
122
+ continue;
123
+ const fullPath = join(dir, entry.name);
124
+ let isDir = entry.isDirectory();
125
+ let isFile = entry.isFile();
126
+ if (entry.isSymbolicLink()) {
127
+ try {
128
+ const stats = statSync(fullPath);
129
+ isDir = stats.isDirectory();
130
+ isFile = stats.isFile();
131
+ }
132
+ catch {
133
+ continue;
134
+ }
135
+ }
136
+ const relPath = toPosixPath(relative(root, fullPath));
137
+ const ignorePath = isDir ? `${relPath}/` : relPath;
138
+ if (ig.ignores(ignorePath))
139
+ continue;
140
+ if (isDir) {
141
+ files.push(...collectFiles(fullPath, filePattern, skipNodeModules, ig, root));
142
+ }
143
+ else if (isFile && filePattern.test(entry.name)) {
144
+ files.push(fullPath);
145
+ }
146
+ }
147
+ }
148
+ catch {
149
+ // Ignore errors
150
+ }
151
+ return files;
152
+ }
153
+ function collectSkillEntries(dir, mode, ignoreMatcher, rootDir) {
154
+ const entries = [];
155
+ if (!existsSync(dir))
156
+ return entries;
157
+ const root = rootDir ?? dir;
158
+ const ig = ignoreMatcher ?? ignore();
159
+ addIgnoreRules(ig, dir, root);
160
+ try {
161
+ const dirEntries = readdirSync(dir, { withFileTypes: true });
162
+ for (const entry of dirEntries) {
163
+ if (entry.name !== "SKILL.md") {
164
+ continue;
165
+ }
166
+ const fullPath = join(dir, entry.name);
167
+ let isFile = entry.isFile();
168
+ if (entry.isSymbolicLink()) {
169
+ try {
170
+ isFile = statSync(fullPath).isFile();
171
+ }
172
+ catch {
173
+ continue;
174
+ }
175
+ }
176
+ const relPath = toPosixPath(relative(root, fullPath));
177
+ if (isFile && !ig.ignores(relPath)) {
178
+ entries.push(fullPath);
179
+ return entries;
180
+ }
181
+ }
182
+ for (const entry of dirEntries) {
183
+ if (entry.name.startsWith("."))
184
+ continue;
185
+ if (entry.name === "node_modules")
186
+ continue;
187
+ const fullPath = join(dir, entry.name);
188
+ let isDir = entry.isDirectory();
189
+ let isFile = entry.isFile();
190
+ if (entry.isSymbolicLink()) {
191
+ try {
192
+ const stats = statSync(fullPath);
193
+ isDir = stats.isDirectory();
194
+ isFile = stats.isFile();
195
+ }
196
+ catch {
197
+ continue;
198
+ }
199
+ }
200
+ const relPath = toPosixPath(relative(root, fullPath));
201
+ if (mode === "pi" && dir === root && isFile && entry.name.endsWith(".md") && !ig.ignores(relPath)) {
202
+ entries.push(fullPath);
203
+ continue;
204
+ }
205
+ if (!isDir)
206
+ continue;
207
+ if (ig.ignores(`${relPath}/`))
208
+ continue;
209
+ entries.push(...collectSkillEntries(fullPath, mode, ig, root));
210
+ }
211
+ }
212
+ catch {
213
+ // Ignore errors
214
+ }
215
+ return entries;
216
+ }
217
+ function collectAutoSkillEntries(dir, mode) {
218
+ return collectSkillEntries(dir, mode);
219
+ }
220
+ function findGitRepoRoot(startDir) {
221
+ let dir = resolve(startDir);
222
+ while (true) {
223
+ if (existsSync(join(dir, ".git"))) {
224
+ return dir;
225
+ }
226
+ const parent = dirname(dir);
227
+ if (parent === dir) {
228
+ return null;
229
+ }
230
+ dir = parent;
231
+ }
232
+ }
233
+ function collectAncestorAgentsSkillDirs(startDir) {
234
+ const skillDirs = [];
235
+ const resolvedStartDir = resolve(startDir);
236
+ const gitRepoRoot = findGitRepoRoot(resolvedStartDir);
237
+ let dir = resolvedStartDir;
238
+ while (true) {
239
+ skillDirs.push(join(dir, ".agents", "skills"));
240
+ if (gitRepoRoot && dir === gitRepoRoot) {
241
+ break;
242
+ }
243
+ const parent = dirname(dir);
244
+ if (parent === dir) {
245
+ break;
246
+ }
247
+ dir = parent;
248
+ }
249
+ return skillDirs;
250
+ }
251
+ function collectAutoPromptEntries(dir) {
252
+ const entries = [];
253
+ if (!existsSync(dir))
254
+ return entries;
255
+ const ig = ignore();
256
+ addIgnoreRules(ig, dir, dir);
257
+ try {
258
+ const dirEntries = readdirSync(dir, { withFileTypes: true });
259
+ for (const entry of dirEntries) {
260
+ if (entry.name.startsWith("."))
261
+ continue;
262
+ if (entry.name === "node_modules")
263
+ continue;
264
+ const fullPath = join(dir, entry.name);
265
+ let isFile = entry.isFile();
266
+ if (entry.isSymbolicLink()) {
267
+ try {
268
+ isFile = statSync(fullPath).isFile();
269
+ }
270
+ catch {
271
+ continue;
272
+ }
273
+ }
274
+ const relPath = toPosixPath(relative(dir, fullPath));
275
+ if (ig.ignores(relPath))
276
+ continue;
277
+ if (isFile && entry.name.endsWith(".md")) {
278
+ entries.push(fullPath);
279
+ }
280
+ }
281
+ }
282
+ catch {
283
+ // Ignore errors
284
+ }
285
+ return entries;
286
+ }
287
+ function collectAutoThemeEntries(dir) {
288
+ const entries = [];
289
+ if (!existsSync(dir))
290
+ return entries;
291
+ const ig = ignore();
292
+ addIgnoreRules(ig, dir, dir);
293
+ try {
294
+ const dirEntries = readdirSync(dir, { withFileTypes: true });
295
+ for (const entry of dirEntries) {
296
+ if (entry.name.startsWith("."))
297
+ continue;
298
+ if (entry.name === "node_modules")
299
+ continue;
300
+ const fullPath = join(dir, entry.name);
301
+ let isFile = entry.isFile();
302
+ if (entry.isSymbolicLink()) {
303
+ try {
304
+ isFile = statSync(fullPath).isFile();
305
+ }
306
+ catch {
307
+ continue;
308
+ }
309
+ }
310
+ const relPath = toPosixPath(relative(dir, fullPath));
311
+ if (ig.ignores(relPath))
312
+ continue;
313
+ if (isFile && entry.name.endsWith(".json")) {
314
+ entries.push(fullPath);
315
+ }
316
+ }
317
+ }
318
+ catch {
319
+ // Ignore errors
320
+ }
321
+ return entries;
322
+ }
323
+ function readPiManifestFile(packageJsonPath) {
324
+ try {
325
+ const content = readFileSync(packageJsonPath, "utf-8");
326
+ const pkg = JSON.parse(content);
327
+ return pkg.pi ?? null;
328
+ }
329
+ catch {
330
+ return null;
331
+ }
332
+ }
333
+ function resolveExtensionEntries(dir) {
334
+ const packageJsonPath = join(dir, "package.json");
335
+ if (existsSync(packageJsonPath)) {
336
+ const manifest = readPiManifestFile(packageJsonPath);
337
+ if (manifest?.extensions?.length) {
338
+ const entries = [];
339
+ for (const extPath of manifest.extensions) {
340
+ const resolvedExtPath = resolve(dir, extPath);
341
+ if (existsSync(resolvedExtPath)) {
342
+ entries.push(resolvedExtPath);
343
+ }
344
+ }
345
+ if (entries.length > 0) {
346
+ return entries;
347
+ }
348
+ }
349
+ }
350
+ const indexTs = join(dir, "index.ts");
351
+ const indexJs = join(dir, "index.js");
352
+ if (existsSync(indexTs)) {
353
+ return [indexTs];
354
+ }
355
+ if (existsSync(indexJs)) {
356
+ return [indexJs];
357
+ }
358
+ return null;
359
+ }
360
+ function collectAutoExtensionEntries(dir) {
361
+ const entries = [];
362
+ if (!existsSync(dir))
363
+ return entries;
364
+ // First check if this directory itself has explicit extension entries (package.json or index)
365
+ const rootEntries = resolveExtensionEntries(dir);
366
+ if (rootEntries) {
367
+ return rootEntries;
368
+ }
369
+ // Otherwise, discover extensions from directory contents
370
+ const ig = ignore();
371
+ addIgnoreRules(ig, dir, dir);
372
+ try {
373
+ const dirEntries = readdirSync(dir, { withFileTypes: true });
374
+ for (const entry of dirEntries) {
375
+ if (entry.name.startsWith("."))
376
+ continue;
377
+ if (entry.name === "node_modules")
378
+ continue;
379
+ const fullPath = join(dir, entry.name);
380
+ let isDir = entry.isDirectory();
381
+ let isFile = entry.isFile();
382
+ if (entry.isSymbolicLink()) {
383
+ try {
384
+ const stats = statSync(fullPath);
385
+ isDir = stats.isDirectory();
386
+ isFile = stats.isFile();
387
+ }
388
+ catch {
389
+ continue;
390
+ }
391
+ }
392
+ const relPath = toPosixPath(relative(dir, fullPath));
393
+ const ignorePath = isDir ? `${relPath}/` : relPath;
394
+ if (ig.ignores(ignorePath))
395
+ continue;
396
+ if (isFile && (entry.name.endsWith(".ts") || entry.name.endsWith(".js"))) {
397
+ entries.push(fullPath);
398
+ }
399
+ else if (isDir) {
400
+ const resolvedEntries = resolveExtensionEntries(fullPath);
401
+ if (resolvedEntries) {
402
+ entries.push(...resolvedEntries);
403
+ }
404
+ }
405
+ }
406
+ }
407
+ catch {
408
+ // Ignore errors
409
+ }
410
+ return entries;
411
+ }
412
+ /**
413
+ * Collect resource files from a directory based on resource type.
414
+ * Extensions use smart discovery (index.ts in subdirs), others use recursive collection.
415
+ */
416
+ function collectResourceFiles(dir, resourceType) {
417
+ if (resourceType === "skills") {
418
+ return collectSkillEntries(dir, "pi");
419
+ }
420
+ if (resourceType === "extensions") {
421
+ return collectAutoExtensionEntries(dir);
422
+ }
423
+ return collectFiles(dir, FILE_PATTERNS[resourceType]);
424
+ }
425
+ function matchesAnyPattern(filePath, patterns, baseDir) {
426
+ const rel = toPosixPath(relative(baseDir, filePath));
427
+ const name = basename(filePath);
428
+ const filePathPosix = toPosixPath(filePath);
429
+ const isSkillFile = name === "SKILL.md";
430
+ const parentDir = isSkillFile ? dirname(filePath) : undefined;
431
+ const parentRel = isSkillFile ? toPosixPath(relative(baseDir, parentDir)) : undefined;
432
+ const parentName = isSkillFile ? basename(parentDir) : undefined;
433
+ const parentDirPosix = isSkillFile ? toPosixPath(parentDir) : undefined;
434
+ return patterns.some((pattern) => {
435
+ const normalizedPattern = toPosixPath(pattern);
436
+ if (minimatch(rel, normalizedPattern) ||
437
+ minimatch(name, normalizedPattern) ||
438
+ minimatch(filePathPosix, normalizedPattern)) {
439
+ return true;
440
+ }
441
+ if (!isSkillFile)
442
+ return false;
443
+ return (minimatch(parentRel, normalizedPattern) ||
444
+ minimatch(parentName, normalizedPattern) ||
445
+ minimatch(parentDirPosix, normalizedPattern));
446
+ });
447
+ }
448
+ function normalizeExactPattern(pattern) {
449
+ const normalized = pattern.startsWith("./") || pattern.startsWith(".\\") ? pattern.slice(2) : pattern;
450
+ return toPosixPath(normalized);
451
+ }
452
+ function matchesAnyExactPattern(filePath, patterns, baseDir) {
453
+ if (patterns.length === 0)
454
+ return false;
455
+ const rel = toPosixPath(relative(baseDir, filePath));
456
+ const name = basename(filePath);
457
+ const filePathPosix = toPosixPath(filePath);
458
+ const isSkillFile = name === "SKILL.md";
459
+ const parentDir = isSkillFile ? dirname(filePath) : undefined;
460
+ const parentRel = isSkillFile ? toPosixPath(relative(baseDir, parentDir)) : undefined;
461
+ const parentDirPosix = isSkillFile ? toPosixPath(parentDir) : undefined;
462
+ return patterns.some((pattern) => {
463
+ const normalized = normalizeExactPattern(pattern);
464
+ if (normalized === rel || normalized === filePathPosix) {
465
+ return true;
466
+ }
467
+ if (!isSkillFile)
468
+ return false;
469
+ return normalized === parentRel || normalized === parentDirPosix;
470
+ });
471
+ }
472
+ function getOverridePatterns(entries) {
473
+ return entries.filter((pattern) => pattern.startsWith("!") || pattern.startsWith("+") || pattern.startsWith("-"));
474
+ }
475
+ function isEnabledByOverrides(filePath, patterns, baseDir) {
476
+ const overrides = getOverridePatterns(patterns);
477
+ const excludes = overrides.filter((pattern) => pattern.startsWith("!")).map((pattern) => pattern.slice(1));
478
+ const forceIncludes = overrides.filter((pattern) => pattern.startsWith("+")).map((pattern) => pattern.slice(1));
479
+ const forceExcludes = overrides.filter((pattern) => pattern.startsWith("-")).map((pattern) => pattern.slice(1));
480
+ let enabled = true;
481
+ if (excludes.length > 0 && matchesAnyPattern(filePath, excludes, baseDir)) {
482
+ enabled = false;
483
+ }
484
+ if (forceIncludes.length > 0 && matchesAnyExactPattern(filePath, forceIncludes, baseDir)) {
485
+ enabled = true;
486
+ }
487
+ if (forceExcludes.length > 0 && matchesAnyExactPattern(filePath, forceExcludes, baseDir)) {
488
+ enabled = false;
489
+ }
490
+ return enabled;
491
+ }
492
+ /**
493
+ * Apply patterns to paths and return a Set of enabled paths.
494
+ * Pattern types:
495
+ * - Plain patterns: include matching paths
496
+ * - `!pattern`: exclude matching paths
497
+ * - `+path`: force-include exact path (overrides exclusions)
498
+ * - `-path`: force-exclude exact path (overrides force-includes)
499
+ */
500
+ function applyPatterns(allPaths, patterns, baseDir) {
501
+ const includes = [];
502
+ const excludes = [];
503
+ const forceIncludes = [];
504
+ const forceExcludes = [];
505
+ for (const p of patterns) {
506
+ if (p.startsWith("+")) {
507
+ forceIncludes.push(p.slice(1));
508
+ }
509
+ else if (p.startsWith("-")) {
510
+ forceExcludes.push(p.slice(1));
511
+ }
512
+ else if (p.startsWith("!")) {
513
+ excludes.push(p.slice(1));
514
+ }
515
+ else {
516
+ includes.push(p);
517
+ }
518
+ }
519
+ // Step 1: Apply includes (or all if no includes)
520
+ let result;
521
+ if (includes.length === 0) {
522
+ result = [...allPaths];
523
+ }
524
+ else {
525
+ result = allPaths.filter((filePath) => matchesAnyPattern(filePath, includes, baseDir));
526
+ }
527
+ // Step 2: Apply excludes
528
+ if (excludes.length > 0) {
529
+ result = result.filter((filePath) => !matchesAnyPattern(filePath, excludes, baseDir));
530
+ }
531
+ // Step 3: Force-include (add back from allPaths, overriding exclusions)
532
+ if (forceIncludes.length > 0) {
533
+ for (const filePath of allPaths) {
534
+ if (!result.includes(filePath) && matchesAnyExactPattern(filePath, forceIncludes, baseDir)) {
535
+ result.push(filePath);
536
+ }
537
+ }
538
+ }
539
+ // Step 4: Force-exclude (remove even if included or force-included)
540
+ if (forceExcludes.length > 0) {
541
+ result = result.filter((filePath) => !matchesAnyExactPattern(filePath, forceExcludes, baseDir));
542
+ }
543
+ return new Set(result);
544
+ }
545
+ export class DefaultPackageManager {
546
+ constructor(options) {
547
+ this.cwd = options.cwd;
548
+ this.agentDir = options.agentDir;
549
+ this.settingsManager = options.settingsManager;
550
+ }
551
+ setProgressCallback(callback) {
552
+ this.progressCallback = callback;
553
+ }
554
+ addSourceToSettings(source, options) {
555
+ const scope = options?.local ? "project" : "user";
556
+ const currentSettings = scope === "project" ? this.settingsManager.getProjectSettings() : this.settingsManager.getGlobalSettings();
557
+ const currentPackages = currentSettings.packages ?? [];
558
+ const normalizedSource = this.normalizePackageSourceForSettings(source, scope);
559
+ const exists = currentPackages.some((existing) => this.packageSourcesMatch(existing, source, scope));
560
+ if (exists) {
561
+ return false;
562
+ }
563
+ const nextPackages = [...currentPackages, normalizedSource];
564
+ if (scope === "project") {
565
+ this.settingsManager.setProjectPackages(nextPackages);
566
+ }
567
+ else {
568
+ this.settingsManager.setPackages(nextPackages);
569
+ }
570
+ return true;
571
+ }
572
+ removeSourceFromSettings(source, options) {
573
+ const scope = options?.local ? "project" : "user";
574
+ const currentSettings = scope === "project" ? this.settingsManager.getProjectSettings() : this.settingsManager.getGlobalSettings();
575
+ const currentPackages = currentSettings.packages ?? [];
576
+ const nextPackages = currentPackages.filter((existing) => !this.packageSourcesMatch(existing, source, scope));
577
+ const changed = nextPackages.length !== currentPackages.length;
578
+ if (!changed) {
579
+ return false;
580
+ }
581
+ if (scope === "project") {
582
+ this.settingsManager.setProjectPackages(nextPackages);
583
+ }
584
+ else {
585
+ this.settingsManager.setPackages(nextPackages);
586
+ }
587
+ return true;
588
+ }
589
+ getInstalledPath(source, scope) {
590
+ const parsed = this.parseSource(source);
591
+ if (parsed.type === "npm") {
592
+ const path = this.getNpmInstallPath(parsed, scope);
593
+ return existsSync(path) ? path : undefined;
594
+ }
595
+ if (parsed.type === "git") {
596
+ const path = this.getGitInstallPath(parsed, scope);
597
+ return existsSync(path) ? path : undefined;
598
+ }
599
+ if (parsed.type === "local") {
600
+ const baseDir = this.getBaseDirForScope(scope);
601
+ const path = this.resolvePathFromBase(parsed.path, baseDir);
602
+ return existsSync(path) ? path : undefined;
603
+ }
604
+ return undefined;
605
+ }
606
+ emitProgress(event) {
607
+ this.progressCallback?.(event);
608
+ }
609
+ async withProgress(action, source, message, operation) {
610
+ this.emitProgress({ type: "start", action, source, message });
611
+ try {
612
+ await operation();
613
+ this.emitProgress({ type: "complete", action, source });
614
+ }
615
+ catch (error) {
616
+ const errorMessage = error instanceof Error ? error.message : String(error);
617
+ this.emitProgress({ type: "error", action, source, message: errorMessage });
618
+ throw error;
619
+ }
620
+ }
621
+ async resolve(onMissing) {
622
+ const accumulator = this.createAccumulator();
623
+ const globalSettings = this.settingsManager.getGlobalSettings();
624
+ const projectSettings = this.settingsManager.getProjectSettings();
625
+ // Collect all packages with scope (project first so cwd resources win collisions)
626
+ const allPackages = [];
627
+ for (const pkg of projectSettings.packages ?? []) {
628
+ allPackages.push({ pkg, scope: "project" });
629
+ }
630
+ for (const pkg of globalSettings.packages ?? []) {
631
+ allPackages.push({ pkg, scope: "user" });
632
+ }
633
+ // Dedupe: project scope wins over global for same package identity
634
+ const packageSources = this.dedupePackages(allPackages);
635
+ await this.resolvePackageSources(packageSources, accumulator, onMissing);
636
+ const globalBaseDir = this.agentDir;
637
+ const projectBaseDir = join(this.cwd, CONFIG_DIR_NAME);
638
+ for (const resourceType of RESOURCE_TYPES) {
639
+ const target = this.getTargetMap(accumulator, resourceType);
640
+ const globalEntries = (globalSettings[resourceType] ?? []);
641
+ const projectEntries = (projectSettings[resourceType] ?? []);
642
+ this.resolveLocalEntries(projectEntries, resourceType, target, {
643
+ source: "local",
644
+ scope: "project",
645
+ origin: "top-level",
646
+ }, projectBaseDir);
647
+ this.resolveLocalEntries(globalEntries, resourceType, target, {
648
+ source: "local",
649
+ scope: "user",
650
+ origin: "top-level",
651
+ }, globalBaseDir);
652
+ }
653
+ this.addAutoDiscoveredResources(accumulator, globalSettings, projectSettings, globalBaseDir, projectBaseDir);
654
+ return this.toResolvedPaths(accumulator);
655
+ }
656
+ async resolveExtensionSources(sources, options) {
657
+ const accumulator = this.createAccumulator();
658
+ const scope = options?.temporary ? "temporary" : options?.local ? "project" : "user";
659
+ const packageSources = sources.map((source) => ({ pkg: source, scope }));
660
+ await this.resolvePackageSources(packageSources, accumulator);
661
+ return this.toResolvedPaths(accumulator);
662
+ }
663
+ listConfiguredPackages() {
664
+ const globalSettings = this.settingsManager.getGlobalSettings();
665
+ const projectSettings = this.settingsManager.getProjectSettings();
666
+ const configuredPackages = [];
667
+ for (const pkg of globalSettings.packages ?? []) {
668
+ const source = typeof pkg === "string" ? pkg : pkg.source;
669
+ configuredPackages.push({
670
+ source,
671
+ scope: "user",
672
+ filtered: typeof pkg === "object",
673
+ installedPath: this.getInstalledPath(source, "user"),
674
+ });
675
+ }
676
+ for (const pkg of projectSettings.packages ?? []) {
677
+ const source = typeof pkg === "string" ? pkg : pkg.source;
678
+ configuredPackages.push({
679
+ source,
680
+ scope: "project",
681
+ filtered: typeof pkg === "object",
682
+ installedPath: this.getInstalledPath(source, "project"),
683
+ });
684
+ }
685
+ return configuredPackages;
686
+ }
687
+ async install(source, options) {
688
+ const parsed = this.parseSource(source);
689
+ const scope = options?.local ? "project" : "user";
690
+ await this.withProgress("install", source, `Installing ${source}...`, async () => {
691
+ if (parsed.type === "npm") {
692
+ await this.installNpm(parsed, scope, false);
693
+ return;
694
+ }
695
+ if (parsed.type === "git") {
696
+ await this.installGit(parsed, scope);
697
+ return;
698
+ }
699
+ if (parsed.type === "local") {
700
+ const resolved = this.resolvePath(parsed.path);
701
+ if (!existsSync(resolved)) {
702
+ throw new Error(`Path does not exist: ${resolved}`);
703
+ }
704
+ return;
705
+ }
706
+ throw new Error(`Unsupported install source: ${source}`);
707
+ });
708
+ }
709
+ async installAndPersist(source, options) {
710
+ await this.install(source, options);
711
+ this.addSourceToSettings(source, options);
712
+ }
713
+ async remove(source, options) {
714
+ const parsed = this.parseSource(source);
715
+ const scope = options?.local ? "project" : "user";
716
+ await this.withProgress("remove", source, `Removing ${source}...`, async () => {
717
+ if (parsed.type === "npm") {
718
+ await this.uninstallNpm(parsed, scope);
719
+ return;
720
+ }
721
+ if (parsed.type === "git") {
722
+ await this.removeGit(parsed, scope);
723
+ return;
724
+ }
725
+ if (parsed.type === "local") {
726
+ return;
727
+ }
728
+ throw new Error(`Unsupported remove source: ${source}`);
729
+ });
730
+ }
731
+ async removeAndPersist(source, options) {
732
+ await this.remove(source, options);
733
+ return this.removeSourceFromSettings(source, options);
734
+ }
735
+ async update(source) {
736
+ const globalSettings = this.settingsManager.getGlobalSettings();
737
+ const projectSettings = this.settingsManager.getProjectSettings();
738
+ const identity = source ? this.getPackageIdentity(source) : undefined;
739
+ let matched = false;
740
+ for (const pkg of globalSettings.packages ?? []) {
741
+ const sourceStr = typeof pkg === "string" ? pkg : pkg.source;
742
+ if (identity && this.getPackageIdentity(sourceStr, "user") !== identity)
743
+ continue;
744
+ matched = true;
745
+ await this.updateSourceForScope(sourceStr, "user");
746
+ }
747
+ for (const pkg of projectSettings.packages ?? []) {
748
+ const sourceStr = typeof pkg === "string" ? pkg : pkg.source;
749
+ if (identity && this.getPackageIdentity(sourceStr, "project") !== identity)
750
+ continue;
751
+ matched = true;
752
+ await this.updateSourceForScope(sourceStr, "project");
753
+ }
754
+ if (source && !matched) {
755
+ throw new Error(this.buildNoMatchingPackageMessage(source, [
756
+ ...(globalSettings.packages ?? []),
757
+ ...(projectSettings.packages ?? []),
758
+ ]));
759
+ }
760
+ }
761
+ async updateSourceForScope(source, scope) {
762
+ if (isOfflineModeEnabled()) {
763
+ return;
764
+ }
765
+ const parsed = this.parseSource(source);
766
+ if (parsed.type === "npm") {
767
+ if (parsed.pinned)
768
+ return;
769
+ await this.withProgress("update", source, `Updating ${source}...`, async () => {
770
+ await this.installNpm({
771
+ ...parsed,
772
+ spec: `${parsed.name}@latest`,
773
+ }, scope, false);
774
+ });
775
+ return;
776
+ }
777
+ if (parsed.type === "git") {
778
+ if (parsed.pinned)
779
+ return;
780
+ await this.withProgress("update", source, `Updating ${source}...`, async () => {
781
+ await this.updateGit(parsed, scope);
782
+ });
783
+ return;
784
+ }
785
+ }
786
+ async checkForAvailableUpdates() {
787
+ if (isOfflineModeEnabled()) {
788
+ return [];
789
+ }
790
+ const globalSettings = this.settingsManager.getGlobalSettings();
791
+ const projectSettings = this.settingsManager.getProjectSettings();
792
+ const allPackages = [];
793
+ for (const pkg of projectSettings.packages ?? []) {
794
+ allPackages.push({ pkg, scope: "project" });
795
+ }
796
+ for (const pkg of globalSettings.packages ?? []) {
797
+ allPackages.push({ pkg, scope: "user" });
798
+ }
799
+ const packageSources = this.dedupePackages(allPackages);
800
+ const checks = packageSources
801
+ .filter((entry) => entry.scope !== "temporary")
802
+ .map((entry) => async () => {
803
+ const source = typeof entry.pkg === "string" ? entry.pkg : entry.pkg.source;
804
+ const parsed = this.parseSource(source);
805
+ if (parsed.type === "local" || parsed.pinned) {
806
+ return undefined;
807
+ }
808
+ if (parsed.type === "npm") {
809
+ const installedPath = this.getNpmInstallPath(parsed, entry.scope);
810
+ if (!existsSync(installedPath)) {
811
+ return undefined;
812
+ }
813
+ const hasUpdate = await this.npmHasAvailableUpdate(parsed, installedPath);
814
+ if (!hasUpdate) {
815
+ return undefined;
816
+ }
817
+ return {
818
+ source,
819
+ displayName: parsed.name,
820
+ type: "npm",
821
+ scope: entry.scope,
822
+ };
823
+ }
824
+ const installedPath = this.getGitInstallPath(parsed, entry.scope);
825
+ if (!existsSync(installedPath)) {
826
+ return undefined;
827
+ }
828
+ const hasUpdate = await this.gitHasAvailableUpdate(installedPath);
829
+ if (!hasUpdate) {
830
+ return undefined;
831
+ }
832
+ return {
833
+ source,
834
+ displayName: `${parsed.host}/${parsed.path}`,
835
+ type: "git",
836
+ scope: entry.scope,
837
+ };
838
+ });
839
+ const results = await this.runWithConcurrency(checks, UPDATE_CHECK_CONCURRENCY);
840
+ return results.filter((result) => result !== undefined);
841
+ }
842
+ async resolvePackageSources(sources, accumulator, onMissing) {
843
+ for (const { pkg, scope } of sources) {
844
+ const sourceStr = typeof pkg === "string" ? pkg : pkg.source;
845
+ const filter = typeof pkg === "object" ? pkg : undefined;
846
+ const parsed = this.parseSource(sourceStr);
847
+ const metadata = { source: sourceStr, scope, origin: "package" };
848
+ if (parsed.type === "local") {
849
+ const baseDir = this.getBaseDirForScope(scope);
850
+ this.resolveLocalExtensionSource(parsed, accumulator, filter, metadata, baseDir);
851
+ continue;
852
+ }
853
+ const installMissing = async () => {
854
+ if (isOfflineModeEnabled()) {
855
+ return false;
856
+ }
857
+ if (!onMissing) {
858
+ await this.installParsedSource(parsed, scope);
859
+ return true;
860
+ }
861
+ const action = await onMissing(sourceStr);
862
+ if (action === "skip")
863
+ return false;
864
+ if (action === "error")
865
+ throw new Error(`Missing source: ${sourceStr}`);
866
+ await this.installParsedSource(parsed, scope);
867
+ return true;
868
+ };
869
+ if (parsed.type === "npm") {
870
+ const installedPath = this.getNpmInstallPath(parsed, scope);
871
+ const needsInstall = !existsSync(installedPath) ||
872
+ (parsed.pinned && !(await this.installedNpmMatchesPinnedVersion(parsed, installedPath)));
873
+ if (needsInstall) {
874
+ const installed = await installMissing();
875
+ if (!installed)
876
+ continue;
877
+ }
878
+ metadata.baseDir = installedPath;
879
+ this.collectPackageResources(installedPath, accumulator, filter, metadata);
880
+ continue;
881
+ }
882
+ if (parsed.type === "git") {
883
+ const installedPath = this.getGitInstallPath(parsed, scope);
884
+ if (!existsSync(installedPath)) {
885
+ const installed = await installMissing();
886
+ if (!installed)
887
+ continue;
888
+ }
889
+ else if (scope === "temporary" && !parsed.pinned && !isOfflineModeEnabled()) {
890
+ await this.refreshTemporaryGitSource(parsed, sourceStr);
891
+ }
892
+ metadata.baseDir = installedPath;
893
+ this.collectPackageResources(installedPath, accumulator, filter, metadata);
894
+ }
895
+ }
896
+ }
897
+ resolveLocalExtensionSource(source, accumulator, filter, metadata, baseDir) {
898
+ const resolved = this.resolvePathFromBase(source.path, baseDir);
899
+ if (!existsSync(resolved)) {
900
+ return;
901
+ }
902
+ try {
903
+ const stats = statSync(resolved);
904
+ if (stats.isFile()) {
905
+ metadata.baseDir = dirname(resolved);
906
+ this.addResource(accumulator.extensions, resolved, metadata, true);
907
+ return;
908
+ }
909
+ if (stats.isDirectory()) {
910
+ metadata.baseDir = resolved;
911
+ const resources = this.collectPackageResources(resolved, accumulator, filter, metadata);
912
+ if (!resources) {
913
+ this.addResource(accumulator.extensions, resolved, metadata, true);
914
+ }
915
+ }
916
+ }
917
+ catch {
918
+ return;
919
+ }
920
+ }
921
+ async installParsedSource(parsed, scope) {
922
+ if (parsed.type === "npm") {
923
+ await this.installNpm(parsed, scope, scope === "temporary");
924
+ return;
925
+ }
926
+ if (parsed.type === "git") {
927
+ await this.installGit(parsed, scope);
928
+ return;
929
+ }
930
+ }
931
+ getPackageSourceString(pkg) {
932
+ return typeof pkg === "string" ? pkg : pkg.source;
933
+ }
934
+ getSourceMatchKeyForInput(source) {
935
+ const parsed = this.parseSource(source);
936
+ if (parsed.type === "npm") {
937
+ return `npm:${parsed.name}`;
938
+ }
939
+ if (parsed.type === "git") {
940
+ return `git:${parsed.host}/${parsed.path}`;
941
+ }
942
+ return `local:${this.resolvePath(parsed.path)}`;
943
+ }
944
+ getSourceMatchKeyForSettings(source, scope) {
945
+ const parsed = this.parseSource(source);
946
+ if (parsed.type === "npm") {
947
+ return `npm:${parsed.name}`;
948
+ }
949
+ if (parsed.type === "git") {
950
+ return `git:${parsed.host}/${parsed.path}`;
951
+ }
952
+ const baseDir = this.getBaseDirForScope(scope);
953
+ return `local:${this.resolvePathFromBase(parsed.path, baseDir)}`;
954
+ }
955
+ buildNoMatchingPackageMessage(source, configuredPackages) {
956
+ const suggestion = this.findSuggestedConfiguredSource(source, configuredPackages);
957
+ if (!suggestion) {
958
+ return `No matching package found for ${source}`;
959
+ }
960
+ return `No matching package found for ${source}. Did you mean ${suggestion}?`;
961
+ }
962
+ findSuggestedConfiguredSource(source, configuredPackages) {
963
+ const trimmedSource = source.trim();
964
+ const suggestions = new Set();
965
+ for (const pkg of configuredPackages) {
966
+ const sourceStr = this.getPackageSourceString(pkg);
967
+ const parsed = this.parseSource(sourceStr);
968
+ if (parsed.type === "npm") {
969
+ if (trimmedSource === parsed.name || trimmedSource === parsed.spec) {
970
+ suggestions.add(sourceStr);
971
+ }
972
+ continue;
973
+ }
974
+ if (parsed.type === "git") {
975
+ const shorthand = `${parsed.host}/${parsed.path}`;
976
+ const shorthandWithRef = parsed.ref ? `${shorthand}@${parsed.ref}` : undefined;
977
+ if (trimmedSource === shorthand || (shorthandWithRef && trimmedSource === shorthandWithRef)) {
978
+ suggestions.add(sourceStr);
979
+ }
980
+ }
981
+ }
982
+ return suggestions.values().next().value;
983
+ }
984
+ packageSourcesMatch(existing, inputSource, scope) {
985
+ const left = this.getSourceMatchKeyForSettings(this.getPackageSourceString(existing), scope);
986
+ const right = this.getSourceMatchKeyForInput(inputSource);
987
+ return left === right;
988
+ }
989
+ normalizePackageSourceForSettings(source, scope) {
990
+ const parsed = this.parseSource(source);
991
+ if (parsed.type !== "local") {
992
+ return source;
993
+ }
994
+ const baseDir = this.getBaseDirForScope(scope);
995
+ const resolved = this.resolvePath(parsed.path);
996
+ const rel = relative(baseDir, resolved);
997
+ return rel || ".";
998
+ }
999
+ parseSource(source) {
1000
+ if (source.startsWith("npm:")) {
1001
+ const spec = source.slice("npm:".length).trim();
1002
+ const { name, version } = this.parseNpmSpec(spec);
1003
+ return {
1004
+ type: "npm",
1005
+ spec,
1006
+ name,
1007
+ pinned: Boolean(version),
1008
+ };
1009
+ }
1010
+ if (isLocalPath(source)) {
1011
+ return { type: "local", path: source };
1012
+ }
1013
+ // Try parsing as git URL
1014
+ const gitParsed = parseGitUrl(source);
1015
+ if (gitParsed) {
1016
+ return gitParsed;
1017
+ }
1018
+ return { type: "local", path: source };
1019
+ }
1020
+ async installedNpmMatchesPinnedVersion(source, installedPath) {
1021
+ const installedVersion = this.getInstalledNpmVersion(installedPath);
1022
+ if (!installedVersion) {
1023
+ return false;
1024
+ }
1025
+ const { version: pinnedVersion } = this.parseNpmSpec(source.spec);
1026
+ if (!pinnedVersion) {
1027
+ return true;
1028
+ }
1029
+ return installedVersion === pinnedVersion;
1030
+ }
1031
+ async npmHasAvailableUpdate(source, installedPath) {
1032
+ if (isOfflineModeEnabled()) {
1033
+ return false;
1034
+ }
1035
+ const installedVersion = this.getInstalledNpmVersion(installedPath);
1036
+ if (!installedVersion) {
1037
+ return false;
1038
+ }
1039
+ try {
1040
+ const latestVersion = await this.getLatestNpmVersion(source.name);
1041
+ return latestVersion !== installedVersion;
1042
+ }
1043
+ catch {
1044
+ return false;
1045
+ }
1046
+ }
1047
+ getInstalledNpmVersion(installedPath) {
1048
+ const packageJsonPath = join(installedPath, "package.json");
1049
+ if (!existsSync(packageJsonPath))
1050
+ return undefined;
1051
+ try {
1052
+ const content = readFileSync(packageJsonPath, "utf-8");
1053
+ const pkg = JSON.parse(content);
1054
+ return pkg.version;
1055
+ }
1056
+ catch {
1057
+ return undefined;
1058
+ }
1059
+ }
1060
+ async getLatestNpmVersion(packageName) {
1061
+ const response = await fetch(`https://registry.npmjs.org/${packageName}/latest`, {
1062
+ signal: AbortSignal.timeout(NETWORK_TIMEOUT_MS),
1063
+ });
1064
+ if (!response.ok)
1065
+ throw new Error(`Failed to fetch npm registry: ${response.status}`);
1066
+ const data = (await response.json());
1067
+ return data.version;
1068
+ }
1069
+ async gitHasAvailableUpdate(installedPath) {
1070
+ if (isOfflineModeEnabled()) {
1071
+ return false;
1072
+ }
1073
+ try {
1074
+ const localHead = await this.runCommandCapture("git", ["rev-parse", "HEAD"], {
1075
+ cwd: installedPath,
1076
+ timeoutMs: NETWORK_TIMEOUT_MS,
1077
+ });
1078
+ const remoteHead = await this.getRemoteGitHead(installedPath);
1079
+ return localHead.trim() !== remoteHead.trim();
1080
+ }
1081
+ catch {
1082
+ return false;
1083
+ }
1084
+ }
1085
+ async getRemoteGitHead(installedPath) {
1086
+ const upstreamRef = await this.getGitUpstreamRef(installedPath);
1087
+ if (upstreamRef) {
1088
+ const remoteHead = await this.runGitRemoteCommand(installedPath, ["ls-remote", "origin", upstreamRef]);
1089
+ const match = remoteHead.match(/^([0-9a-f]{40})\s+/m);
1090
+ if (match?.[1]) {
1091
+ return match[1];
1092
+ }
1093
+ }
1094
+ const remoteHead = await this.runGitRemoteCommand(installedPath, ["ls-remote", "origin", "HEAD"]);
1095
+ const match = remoteHead.match(/^([0-9a-f]{40})\s+HEAD$/m);
1096
+ if (!match?.[1]) {
1097
+ throw new Error("Failed to determine remote HEAD");
1098
+ }
1099
+ return match[1];
1100
+ }
1101
+ async getLocalGitUpdateTarget(installedPath) {
1102
+ try {
1103
+ const upstream = await this.runCommandCapture("git", ["rev-parse", "--abbrev-ref", "@{upstream}"], {
1104
+ cwd: installedPath,
1105
+ timeoutMs: NETWORK_TIMEOUT_MS,
1106
+ });
1107
+ const trimmedUpstream = upstream.trim();
1108
+ if (!trimmedUpstream.startsWith("origin/")) {
1109
+ throw new Error(`Unsupported upstream remote: ${trimmedUpstream}`);
1110
+ }
1111
+ const branch = trimmedUpstream.slice("origin/".length);
1112
+ if (!branch) {
1113
+ throw new Error("Missing upstream branch name");
1114
+ }
1115
+ const head = await this.runCommandCapture("git", ["rev-parse", "@{upstream}"], {
1116
+ cwd: installedPath,
1117
+ timeoutMs: NETWORK_TIMEOUT_MS,
1118
+ });
1119
+ return {
1120
+ ref: "@{upstream}",
1121
+ head,
1122
+ fetchArgs: [
1123
+ "fetch",
1124
+ "--prune",
1125
+ "--no-tags",
1126
+ "origin",
1127
+ `+refs/heads/${branch}:refs/remotes/origin/${branch}`,
1128
+ ],
1129
+ };
1130
+ }
1131
+ catch {
1132
+ await this.runCommand("git", ["remote", "set-head", "origin", "-a"], { cwd: installedPath }).catch(() => { });
1133
+ const head = await this.runCommandCapture("git", ["rev-parse", "origin/HEAD"], {
1134
+ cwd: installedPath,
1135
+ timeoutMs: NETWORK_TIMEOUT_MS,
1136
+ });
1137
+ const originHeadRef = await this.runCommandCapture("git", ["symbolic-ref", "refs/remotes/origin/HEAD"], {
1138
+ cwd: installedPath,
1139
+ timeoutMs: NETWORK_TIMEOUT_MS,
1140
+ }).catch(() => "");
1141
+ const branch = originHeadRef.trim().replace(/^refs\/remotes\/origin\//, "");
1142
+ if (branch) {
1143
+ return {
1144
+ ref: "origin/HEAD",
1145
+ head,
1146
+ fetchArgs: [
1147
+ "fetch",
1148
+ "--prune",
1149
+ "--no-tags",
1150
+ "origin",
1151
+ `+refs/heads/${branch}:refs/remotes/origin/${branch}`,
1152
+ ],
1153
+ };
1154
+ }
1155
+ return {
1156
+ ref: "origin/HEAD",
1157
+ head,
1158
+ fetchArgs: ["fetch", "--prune", "--no-tags", "origin", "+HEAD:refs/remotes/origin/HEAD"],
1159
+ };
1160
+ }
1161
+ }
1162
+ async getGitUpstreamRef(installedPath) {
1163
+ try {
1164
+ const upstream = await this.runCommandCapture("git", ["rev-parse", "--abbrev-ref", "@{upstream}"], {
1165
+ cwd: installedPath,
1166
+ timeoutMs: NETWORK_TIMEOUT_MS,
1167
+ });
1168
+ const trimmed = upstream.trim();
1169
+ if (!trimmed.startsWith("origin/")) {
1170
+ return undefined;
1171
+ }
1172
+ const branch = trimmed.slice("origin/".length);
1173
+ return branch ? `refs/heads/${branch}` : undefined;
1174
+ }
1175
+ catch {
1176
+ return undefined;
1177
+ }
1178
+ }
1179
+ runGitRemoteCommand(installedPath, args) {
1180
+ return this.runCommandCapture("git", args, {
1181
+ cwd: installedPath,
1182
+ timeoutMs: NETWORK_TIMEOUT_MS,
1183
+ env: {
1184
+ GIT_TERMINAL_PROMPT: "0",
1185
+ },
1186
+ });
1187
+ }
1188
+ async runWithConcurrency(tasks, limit) {
1189
+ if (tasks.length === 0) {
1190
+ return [];
1191
+ }
1192
+ const results = new Array(tasks.length);
1193
+ let nextIndex = 0;
1194
+ const workerCount = Math.max(1, Math.min(limit, tasks.length));
1195
+ const worker = async () => {
1196
+ while (true) {
1197
+ const index = nextIndex;
1198
+ nextIndex += 1;
1199
+ if (index >= tasks.length) {
1200
+ return;
1201
+ }
1202
+ results[index] = await tasks[index]();
1203
+ }
1204
+ };
1205
+ await Promise.all(Array.from({ length: workerCount }, () => worker()));
1206
+ return results;
1207
+ }
1208
+ /**
1209
+ * Get a unique identity for a package, ignoring version/ref.
1210
+ * Used to detect when the same package is in both global and project settings.
1211
+ * For git packages, uses normalized host/path to ensure SSH and HTTPS URLs
1212
+ * for the same repository are treated as identical.
1213
+ */
1214
+ getPackageIdentity(source, scope) {
1215
+ const parsed = this.parseSource(source);
1216
+ if (parsed.type === "npm") {
1217
+ return `npm:${parsed.name}`;
1218
+ }
1219
+ if (parsed.type === "git") {
1220
+ // Use host/path for identity to normalize SSH and HTTPS
1221
+ return `git:${parsed.host}/${parsed.path}`;
1222
+ }
1223
+ if (scope) {
1224
+ const baseDir = this.getBaseDirForScope(scope);
1225
+ return `local:${this.resolvePathFromBase(parsed.path, baseDir)}`;
1226
+ }
1227
+ return `local:${this.resolvePath(parsed.path)}`;
1228
+ }
1229
+ /**
1230
+ * Dedupe packages: if same package identity appears in both global and project,
1231
+ * keep only the project one (project wins).
1232
+ */
1233
+ dedupePackages(packages) {
1234
+ const seen = new Map();
1235
+ for (const entry of packages) {
1236
+ const sourceStr = typeof entry.pkg === "string" ? entry.pkg : entry.pkg.source;
1237
+ const identity = this.getPackageIdentity(sourceStr, entry.scope);
1238
+ const existing = seen.get(identity);
1239
+ if (!existing) {
1240
+ seen.set(identity, entry);
1241
+ }
1242
+ else if (entry.scope === "project" && existing.scope === "user") {
1243
+ // Project wins over user
1244
+ seen.set(identity, entry);
1245
+ }
1246
+ // If existing is project and new is global, keep existing (project)
1247
+ // If both are same scope, keep first one
1248
+ }
1249
+ return Array.from(seen.values());
1250
+ }
1251
+ parseNpmSpec(spec) {
1252
+ const match = spec.match(/^(@?[^@]+(?:\/[^@]+)?)(?:@(.+))?$/);
1253
+ if (!match) {
1254
+ return { name: spec };
1255
+ }
1256
+ const name = match[1] ?? spec;
1257
+ const version = match[2];
1258
+ return { name, version };
1259
+ }
1260
+ getNpmCommand() {
1261
+ const configuredCommand = this.settingsManager.getNpmCommand();
1262
+ if (!configuredCommand || configuredCommand.length === 0) {
1263
+ return { command: "npm", args: [] };
1264
+ }
1265
+ const [command, ...args] = configuredCommand;
1266
+ if (!command) {
1267
+ throw new Error("Invalid npmCommand: first array entry must be a non-empty command");
1268
+ }
1269
+ return { command, args };
1270
+ }
1271
+ async runNpmCommand(args, options) {
1272
+ const npmCommand = this.getNpmCommand();
1273
+ await this.runCommand(npmCommand.command, [...npmCommand.args, ...args], options);
1274
+ }
1275
+ runNpmCommandSync(args) {
1276
+ const npmCommand = this.getNpmCommand();
1277
+ return this.runCommandSync(npmCommand.command, [...npmCommand.args, ...args]);
1278
+ }
1279
+ async installNpm(source, scope, temporary) {
1280
+ if (scope === "user" && !temporary) {
1281
+ await this.runNpmCommand(["install", "-g", source.spec]);
1282
+ return;
1283
+ }
1284
+ const installRoot = this.getNpmInstallRoot(scope, temporary);
1285
+ this.ensureNpmProject(installRoot);
1286
+ await this.runNpmCommand(["install", source.spec, "--prefix", installRoot]);
1287
+ }
1288
+ async uninstallNpm(source, scope) {
1289
+ if (scope === "user") {
1290
+ await this.runNpmCommand(["uninstall", "-g", source.name]);
1291
+ return;
1292
+ }
1293
+ const installRoot = this.getNpmInstallRoot(scope, false);
1294
+ if (!existsSync(installRoot)) {
1295
+ return;
1296
+ }
1297
+ await this.runNpmCommand(["uninstall", source.name, "--prefix", installRoot]);
1298
+ }
1299
+ async installGit(source, scope) {
1300
+ const targetDir = this.getGitInstallPath(source, scope);
1301
+ if (existsSync(targetDir)) {
1302
+ return;
1303
+ }
1304
+ const gitRoot = this.getGitInstallRoot(scope);
1305
+ if (gitRoot) {
1306
+ this.ensureGitIgnore(gitRoot);
1307
+ }
1308
+ mkdirSync(dirname(targetDir), { recursive: true });
1309
+ await this.runCommand("git", ["clone", source.repo, targetDir]);
1310
+ if (source.ref) {
1311
+ await this.runCommand("git", ["checkout", source.ref], { cwd: targetDir });
1312
+ }
1313
+ const packageJsonPath = join(targetDir, "package.json");
1314
+ if (existsSync(packageJsonPath)) {
1315
+ await this.runNpmCommand(["install"], { cwd: targetDir });
1316
+ }
1317
+ }
1318
+ async updateGit(source, scope) {
1319
+ const targetDir = this.getGitInstallPath(source, scope);
1320
+ if (!existsSync(targetDir)) {
1321
+ await this.installGit(source, scope);
1322
+ return;
1323
+ }
1324
+ const target = await this.getLocalGitUpdateTarget(targetDir);
1325
+ // Fetch only the ref we will reset to, avoiding unrelated branch/tag noise.
1326
+ await this.runCommand("git", target.fetchArgs, { cwd: targetDir });
1327
+ const localHead = await this.runCommandCapture("git", ["rev-parse", "HEAD"], {
1328
+ cwd: targetDir,
1329
+ timeoutMs: NETWORK_TIMEOUT_MS,
1330
+ });
1331
+ const refreshedTargetHead = await this.runCommandCapture("git", ["rev-parse", target.ref], {
1332
+ cwd: targetDir,
1333
+ timeoutMs: NETWORK_TIMEOUT_MS,
1334
+ });
1335
+ if (localHead.trim() === refreshedTargetHead.trim()) {
1336
+ return;
1337
+ }
1338
+ await this.runCommand("git", ["reset", "--hard", target.ref], { cwd: targetDir });
1339
+ // Clean untracked files (extensions should be pristine)
1340
+ await this.runCommand("git", ["clean", "-fdx"], { cwd: targetDir });
1341
+ const packageJsonPath = join(targetDir, "package.json");
1342
+ if (existsSync(packageJsonPath)) {
1343
+ await this.runNpmCommand(["install"], { cwd: targetDir });
1344
+ }
1345
+ }
1346
+ async refreshTemporaryGitSource(source, sourceStr) {
1347
+ if (isOfflineModeEnabled()) {
1348
+ return;
1349
+ }
1350
+ try {
1351
+ await this.withProgress("pull", sourceStr, `Refreshing ${sourceStr}...`, async () => {
1352
+ await this.updateGit(source, "temporary");
1353
+ });
1354
+ }
1355
+ catch {
1356
+ // Keep cached temporary checkout if refresh fails.
1357
+ }
1358
+ }
1359
+ async removeGit(source, scope) {
1360
+ const targetDir = this.getGitInstallPath(source, scope);
1361
+ if (!existsSync(targetDir))
1362
+ return;
1363
+ rmSync(targetDir, { recursive: true, force: true });
1364
+ this.pruneEmptyGitParents(targetDir, this.getGitInstallRoot(scope));
1365
+ }
1366
+ pruneEmptyGitParents(targetDir, installRoot) {
1367
+ if (!installRoot)
1368
+ return;
1369
+ const resolvedRoot = resolve(installRoot);
1370
+ let current = dirname(targetDir);
1371
+ while (current.startsWith(resolvedRoot) && current !== resolvedRoot) {
1372
+ if (!existsSync(current)) {
1373
+ current = dirname(current);
1374
+ continue;
1375
+ }
1376
+ const entries = readdirSync(current);
1377
+ if (entries.length > 0) {
1378
+ break;
1379
+ }
1380
+ try {
1381
+ rmSync(current, { recursive: true, force: true });
1382
+ }
1383
+ catch {
1384
+ break;
1385
+ }
1386
+ current = dirname(current);
1387
+ }
1388
+ }
1389
+ ensureNpmProject(installRoot) {
1390
+ if (!existsSync(installRoot)) {
1391
+ mkdirSync(installRoot, { recursive: true });
1392
+ }
1393
+ this.ensureGitIgnore(installRoot);
1394
+ const packageJsonPath = join(installRoot, "package.json");
1395
+ if (!existsSync(packageJsonPath)) {
1396
+ const pkgJson = { name: "pi-extensions", private: true };
1397
+ writeFileSync(packageJsonPath, JSON.stringify(pkgJson, null, 2), "utf-8");
1398
+ }
1399
+ }
1400
+ ensureGitIgnore(dir) {
1401
+ if (!existsSync(dir)) {
1402
+ mkdirSync(dir, { recursive: true });
1403
+ }
1404
+ const ignorePath = join(dir, ".gitignore");
1405
+ if (!existsSync(ignorePath)) {
1406
+ writeFileSync(ignorePath, "*\n!.gitignore\n", "utf-8");
1407
+ }
1408
+ }
1409
+ getNpmInstallRoot(scope, temporary) {
1410
+ if (temporary) {
1411
+ return this.getTemporaryDir("npm");
1412
+ }
1413
+ if (scope === "project") {
1414
+ return join(this.cwd, CONFIG_DIR_NAME, "npm");
1415
+ }
1416
+ return join(this.getGlobalNpmRoot(), "..");
1417
+ }
1418
+ getGlobalNpmRoot() {
1419
+ const npmCommand = this.getNpmCommand();
1420
+ const commandKey = [npmCommand.command, ...npmCommand.args].join("\0");
1421
+ if (this.globalNpmRoot && this.globalNpmRootCommandKey === commandKey) {
1422
+ return this.globalNpmRoot;
1423
+ }
1424
+ const result = this.runNpmCommandSync(["root", "-g"]);
1425
+ this.globalNpmRoot = result.trim();
1426
+ this.globalNpmRootCommandKey = commandKey;
1427
+ return this.globalNpmRoot;
1428
+ }
1429
+ getNpmInstallPath(source, scope) {
1430
+ if (scope === "temporary") {
1431
+ return join(this.getTemporaryDir("npm"), "node_modules", source.name);
1432
+ }
1433
+ if (scope === "project") {
1434
+ return join(this.cwd, CONFIG_DIR_NAME, "npm", "node_modules", source.name);
1435
+ }
1436
+ return join(this.getGlobalNpmRoot(), source.name);
1437
+ }
1438
+ getGitInstallPath(source, scope) {
1439
+ if (scope === "temporary") {
1440
+ return this.getTemporaryDir(`git-${source.host}`, source.path);
1441
+ }
1442
+ if (scope === "project") {
1443
+ return join(this.cwd, CONFIG_DIR_NAME, "git", source.host, source.path);
1444
+ }
1445
+ return join(this.agentDir, "git", source.host, source.path);
1446
+ }
1447
+ getGitInstallRoot(scope) {
1448
+ if (scope === "temporary") {
1449
+ return undefined;
1450
+ }
1451
+ if (scope === "project") {
1452
+ return join(this.cwd, CONFIG_DIR_NAME, "git");
1453
+ }
1454
+ return join(this.agentDir, "git");
1455
+ }
1456
+ getTemporaryDir(prefix, suffix) {
1457
+ const hash = createHash("sha256")
1458
+ .update(`${prefix}-${suffix ?? ""}`)
1459
+ .digest("hex")
1460
+ .slice(0, 8);
1461
+ return join(tmpdir(), "pi-extensions", prefix, hash, suffix ?? "");
1462
+ }
1463
+ getBaseDirForScope(scope) {
1464
+ if (scope === "project") {
1465
+ return join(this.cwd, CONFIG_DIR_NAME);
1466
+ }
1467
+ if (scope === "user") {
1468
+ return this.agentDir;
1469
+ }
1470
+ return this.cwd;
1471
+ }
1472
+ resolvePath(input) {
1473
+ const trimmed = input.trim();
1474
+ if (trimmed === "~")
1475
+ return getHomeDir();
1476
+ if (trimmed.startsWith("~/"))
1477
+ return join(getHomeDir(), trimmed.slice(2));
1478
+ if (trimmed.startsWith("~"))
1479
+ return join(getHomeDir(), trimmed.slice(1));
1480
+ return resolve(this.cwd, trimmed);
1481
+ }
1482
+ resolvePathFromBase(input, baseDir) {
1483
+ const trimmed = input.trim();
1484
+ if (trimmed === "~")
1485
+ return getHomeDir();
1486
+ if (trimmed.startsWith("~/"))
1487
+ return join(getHomeDir(), trimmed.slice(2));
1488
+ if (trimmed.startsWith("~"))
1489
+ return join(getHomeDir(), trimmed.slice(1));
1490
+ return resolve(baseDir, trimmed);
1491
+ }
1492
+ collectPackageResources(packageRoot, accumulator, filter, metadata) {
1493
+ if (filter) {
1494
+ for (const resourceType of RESOURCE_TYPES) {
1495
+ const patterns = filter[resourceType];
1496
+ const target = this.getTargetMap(accumulator, resourceType);
1497
+ if (patterns !== undefined) {
1498
+ this.applyPackageFilter(packageRoot, patterns, resourceType, target, metadata);
1499
+ }
1500
+ else {
1501
+ this.collectDefaultResources(packageRoot, resourceType, target, metadata);
1502
+ }
1503
+ }
1504
+ return true;
1505
+ }
1506
+ const manifest = this.readPiManifest(packageRoot);
1507
+ if (manifest) {
1508
+ for (const resourceType of RESOURCE_TYPES) {
1509
+ const entries = manifest[resourceType];
1510
+ this.addManifestEntries(entries, packageRoot, resourceType, this.getTargetMap(accumulator, resourceType), metadata);
1511
+ }
1512
+ return true;
1513
+ }
1514
+ let hasAnyDir = false;
1515
+ for (const resourceType of RESOURCE_TYPES) {
1516
+ const dir = join(packageRoot, resourceType);
1517
+ if (existsSync(dir)) {
1518
+ // Collect all files from the directory (all enabled by default)
1519
+ const files = collectResourceFiles(dir, resourceType);
1520
+ for (const f of files) {
1521
+ this.addResource(this.getTargetMap(accumulator, resourceType), f, metadata, true);
1522
+ }
1523
+ hasAnyDir = true;
1524
+ }
1525
+ }
1526
+ return hasAnyDir;
1527
+ }
1528
+ collectDefaultResources(packageRoot, resourceType, target, metadata) {
1529
+ const manifest = this.readPiManifest(packageRoot);
1530
+ const entries = manifest?.[resourceType];
1531
+ if (entries) {
1532
+ this.addManifestEntries(entries, packageRoot, resourceType, target, metadata);
1533
+ return;
1534
+ }
1535
+ const dir = join(packageRoot, resourceType);
1536
+ if (existsSync(dir)) {
1537
+ // Collect all files from the directory (all enabled by default)
1538
+ const files = collectResourceFiles(dir, resourceType);
1539
+ for (const f of files) {
1540
+ this.addResource(target, f, metadata, true);
1541
+ }
1542
+ }
1543
+ }
1544
+ applyPackageFilter(packageRoot, userPatterns, resourceType, target, metadata) {
1545
+ const { allFiles } = this.collectManifestFiles(packageRoot, resourceType);
1546
+ if (userPatterns.length === 0) {
1547
+ // Empty array explicitly disables all resources of this type
1548
+ for (const f of allFiles) {
1549
+ this.addResource(target, f, metadata, false);
1550
+ }
1551
+ return;
1552
+ }
1553
+ // Apply user patterns
1554
+ const enabledByUser = applyPatterns(allFiles, userPatterns, packageRoot);
1555
+ for (const f of allFiles) {
1556
+ const enabled = enabledByUser.has(f);
1557
+ this.addResource(target, f, metadata, enabled);
1558
+ }
1559
+ }
1560
+ /**
1561
+ * Collect all files from a package for a resource type, applying manifest patterns.
1562
+ * Returns { allFiles, enabledByManifest } where enabledByManifest is the set of files
1563
+ * that pass the manifest's own patterns.
1564
+ */
1565
+ collectManifestFiles(packageRoot, resourceType) {
1566
+ const manifest = this.readPiManifest(packageRoot);
1567
+ const entries = manifest?.[resourceType];
1568
+ if (entries && entries.length > 0) {
1569
+ const allFiles = this.collectFilesFromManifestEntries(entries, packageRoot, resourceType);
1570
+ const manifestPatterns = entries.filter(isPattern);
1571
+ const enabledByManifest = manifestPatterns.length > 0 ? applyPatterns(allFiles, manifestPatterns, packageRoot) : new Set(allFiles);
1572
+ return { allFiles: Array.from(enabledByManifest), enabledByManifest };
1573
+ }
1574
+ const conventionDir = join(packageRoot, resourceType);
1575
+ if (!existsSync(conventionDir)) {
1576
+ return { allFiles: [], enabledByManifest: new Set() };
1577
+ }
1578
+ const allFiles = collectResourceFiles(conventionDir, resourceType);
1579
+ return { allFiles, enabledByManifest: new Set(allFiles) };
1580
+ }
1581
+ readPiManifest(packageRoot) {
1582
+ const packageJsonPath = join(packageRoot, "package.json");
1583
+ if (!existsSync(packageJsonPath)) {
1584
+ return null;
1585
+ }
1586
+ try {
1587
+ const content = readFileSync(packageJsonPath, "utf-8");
1588
+ const pkg = JSON.parse(content);
1589
+ return pkg.pi ?? null;
1590
+ }
1591
+ catch {
1592
+ return null;
1593
+ }
1594
+ }
1595
+ addManifestEntries(entries, root, resourceType, target, metadata) {
1596
+ if (!entries)
1597
+ return;
1598
+ const allFiles = this.collectFilesFromManifestEntries(entries, root, resourceType);
1599
+ const patterns = entries.filter(isPattern);
1600
+ const enabledPaths = applyPatterns(allFiles, patterns, root);
1601
+ for (const f of allFiles) {
1602
+ if (enabledPaths.has(f)) {
1603
+ this.addResource(target, f, metadata, true);
1604
+ }
1605
+ }
1606
+ }
1607
+ collectFilesFromManifestEntries(entries, root, resourceType) {
1608
+ const plain = entries.filter((entry) => !isPattern(entry));
1609
+ const resolved = plain.map((entry) => resolve(root, entry));
1610
+ return this.collectFilesFromPaths(resolved, resourceType);
1611
+ }
1612
+ resolveLocalEntries(entries, resourceType, target, metadata, baseDir) {
1613
+ if (entries.length === 0)
1614
+ return;
1615
+ // Collect all files from plain entries (non-pattern entries)
1616
+ const { plain, patterns } = splitPatterns(entries);
1617
+ const resolvedPlain = plain.map((p) => this.resolvePathFromBase(p, baseDir));
1618
+ const allFiles = this.collectFilesFromPaths(resolvedPlain, resourceType);
1619
+ // Determine which files are enabled based on patterns
1620
+ const enabledPaths = applyPatterns(allFiles, patterns, baseDir);
1621
+ // Add all files with their enabled state
1622
+ for (const f of allFiles) {
1623
+ this.addResource(target, f, metadata, enabledPaths.has(f));
1624
+ }
1625
+ }
1626
+ addAutoDiscoveredResources(accumulator, globalSettings, projectSettings, globalBaseDir, projectBaseDir) {
1627
+ const userMetadata = {
1628
+ source: "auto",
1629
+ scope: "user",
1630
+ origin: "top-level",
1631
+ baseDir: globalBaseDir,
1632
+ };
1633
+ const projectMetadata = {
1634
+ source: "auto",
1635
+ scope: "project",
1636
+ origin: "top-level",
1637
+ baseDir: projectBaseDir,
1638
+ };
1639
+ const userOverrides = {
1640
+ extensions: (globalSettings.extensions ?? []),
1641
+ skills: (globalSettings.skills ?? []),
1642
+ prompts: (globalSettings.prompts ?? []),
1643
+ themes: (globalSettings.themes ?? []),
1644
+ };
1645
+ const projectOverrides = {
1646
+ extensions: (projectSettings.extensions ?? []),
1647
+ skills: (projectSettings.skills ?? []),
1648
+ prompts: (projectSettings.prompts ?? []),
1649
+ themes: (projectSettings.themes ?? []),
1650
+ };
1651
+ const userDirs = {
1652
+ extensions: join(globalBaseDir, "extensions"),
1653
+ skills: join(globalBaseDir, "skills"),
1654
+ prompts: join(globalBaseDir, "prompts"),
1655
+ themes: join(globalBaseDir, "themes"),
1656
+ };
1657
+ const projectDirs = {
1658
+ extensions: join(projectBaseDir, "extensions"),
1659
+ skills: join(projectBaseDir, "skills"),
1660
+ prompts: join(projectBaseDir, "prompts"),
1661
+ themes: join(projectBaseDir, "themes"),
1662
+ };
1663
+ const userAgentsSkillsDir = join(getHomeDir(), ".agents", "skills");
1664
+ const projectAgentsSkillDirs = collectAncestorAgentsSkillDirs(this.cwd).filter((dir) => resolve(dir) !== resolve(userAgentsSkillsDir));
1665
+ const addResources = (resourceType, paths, metadata, overrides, baseDir) => {
1666
+ const target = this.getTargetMap(accumulator, resourceType);
1667
+ for (const path of paths) {
1668
+ const enabled = isEnabledByOverrides(path, overrides, baseDir);
1669
+ this.addResource(target, path, metadata, enabled);
1670
+ }
1671
+ };
1672
+ addResources("extensions", collectAutoExtensionEntries(projectDirs.extensions), projectMetadata, projectOverrides.extensions, projectBaseDir);
1673
+ addResources("skills", [
1674
+ ...collectAutoSkillEntries(projectDirs.skills, "pi"),
1675
+ ...projectAgentsSkillDirs.flatMap((dir) => collectAutoSkillEntries(dir, "agents")),
1676
+ ], projectMetadata, projectOverrides.skills, projectBaseDir);
1677
+ addResources("prompts", collectAutoPromptEntries(projectDirs.prompts), projectMetadata, projectOverrides.prompts, projectBaseDir);
1678
+ addResources("themes", collectAutoThemeEntries(projectDirs.themes), projectMetadata, projectOverrides.themes, projectBaseDir);
1679
+ addResources("extensions", collectAutoExtensionEntries(userDirs.extensions), userMetadata, userOverrides.extensions, globalBaseDir);
1680
+ addResources("skills", [...collectAutoSkillEntries(userDirs.skills, "pi"), ...collectAutoSkillEntries(userAgentsSkillsDir, "agents")], userMetadata, userOverrides.skills, globalBaseDir);
1681
+ addResources("prompts", collectAutoPromptEntries(userDirs.prompts), userMetadata, userOverrides.prompts, globalBaseDir);
1682
+ addResources("themes", collectAutoThemeEntries(userDirs.themes), userMetadata, userOverrides.themes, globalBaseDir);
1683
+ }
1684
+ collectFilesFromPaths(paths, resourceType) {
1685
+ const files = [];
1686
+ for (const p of paths) {
1687
+ if (!existsSync(p))
1688
+ continue;
1689
+ try {
1690
+ const stats = statSync(p);
1691
+ if (stats.isFile()) {
1692
+ files.push(p);
1693
+ }
1694
+ else if (stats.isDirectory()) {
1695
+ files.push(...collectResourceFiles(p, resourceType));
1696
+ }
1697
+ }
1698
+ catch {
1699
+ // Ignore errors
1700
+ }
1701
+ }
1702
+ return files;
1703
+ }
1704
+ getTargetMap(accumulator, resourceType) {
1705
+ switch (resourceType) {
1706
+ case "extensions":
1707
+ return accumulator.extensions;
1708
+ case "skills":
1709
+ return accumulator.skills;
1710
+ case "prompts":
1711
+ return accumulator.prompts;
1712
+ case "themes":
1713
+ return accumulator.themes;
1714
+ default:
1715
+ throw new Error(`Unknown resource type: ${resourceType}`);
1716
+ }
1717
+ }
1718
+ addResource(map, path, metadata, enabled) {
1719
+ if (!path)
1720
+ return;
1721
+ if (!map.has(path)) {
1722
+ map.set(path, { metadata, enabled });
1723
+ }
1724
+ }
1725
+ createAccumulator() {
1726
+ return {
1727
+ extensions: new Map(),
1728
+ skills: new Map(),
1729
+ prompts: new Map(),
1730
+ themes: new Map(),
1731
+ };
1732
+ }
1733
+ toResolvedPaths(accumulator) {
1734
+ const toResolved = (entries) => {
1735
+ const resolved = Array.from(entries.entries()).map(([path, { metadata, enabled }]) => ({
1736
+ path,
1737
+ enabled,
1738
+ metadata,
1739
+ }));
1740
+ resolved.sort((a, b) => resourcePrecedenceRank(a.metadata) - resourcePrecedenceRank(b.metadata));
1741
+ return resolved;
1742
+ };
1743
+ return {
1744
+ extensions: toResolved(accumulator.extensions),
1745
+ skills: toResolved(accumulator.skills),
1746
+ prompts: toResolved(accumulator.prompts),
1747
+ themes: toResolved(accumulator.themes),
1748
+ };
1749
+ }
1750
+ runCommandCapture(command, args, options) {
1751
+ return new Promise((resolvePromise, reject) => {
1752
+ const child = spawn(command, args, {
1753
+ cwd: options?.cwd,
1754
+ stdio: ["ignore", "pipe", "pipe"],
1755
+ shell: process.platform === "win32",
1756
+ env: options?.env ? { ...process.env, ...options.env } : process.env,
1757
+ });
1758
+ let stdout = "";
1759
+ let stderr = "";
1760
+ let timedOut = false;
1761
+ const timeout = typeof options?.timeoutMs === "number"
1762
+ ? setTimeout(() => {
1763
+ timedOut = true;
1764
+ child.kill();
1765
+ }, options.timeoutMs)
1766
+ : undefined;
1767
+ child.stdout?.on("data", (data) => {
1768
+ stdout += data.toString();
1769
+ });
1770
+ child.stderr?.on("data", (data) => {
1771
+ stderr += data.toString();
1772
+ });
1773
+ child.on("error", (error) => {
1774
+ if (timeout)
1775
+ clearTimeout(timeout);
1776
+ reject(error);
1777
+ });
1778
+ child.on("exit", (code) => {
1779
+ if (timeout)
1780
+ clearTimeout(timeout);
1781
+ if (timedOut) {
1782
+ reject(new Error(`${command} ${args.join(" ")} timed out after ${options?.timeoutMs}ms`));
1783
+ return;
1784
+ }
1785
+ if (code === 0) {
1786
+ resolvePromise(stdout.trim());
1787
+ return;
1788
+ }
1789
+ reject(new Error(`${command} ${args.join(" ")} failed with code ${code}: ${stderr || stdout}`));
1790
+ });
1791
+ });
1792
+ }
1793
+ runCommand(command, args, options) {
1794
+ return new Promise((resolvePromise, reject) => {
1795
+ const child = spawn(command, args, {
1796
+ cwd: options?.cwd,
1797
+ stdio: isStdoutTakenOver() ? ["ignore", 2, 2] : "inherit",
1798
+ shell: process.platform === "win32",
1799
+ });
1800
+ child.on("error", reject);
1801
+ child.on("exit", (code) => {
1802
+ if (code === 0) {
1803
+ resolvePromise();
1804
+ }
1805
+ else {
1806
+ reject(new Error(`${command} ${args.join(" ")} failed with code ${code}`));
1807
+ }
1808
+ });
1809
+ });
1810
+ }
1811
+ runCommandSync(command, args) {
1812
+ const result = spawnSync(command, args, {
1813
+ stdio: ["ignore", "pipe", "pipe"],
1814
+ encoding: "utf-8",
1815
+ shell: process.platform === "win32",
1816
+ });
1817
+ if (result.status !== 0) {
1818
+ throw new Error(`Failed to run ${command} ${args.join(" ")}: ${result.stderr || result.stdout}`);
1819
+ }
1820
+ return (result.stdout || result.stderr || "").trim();
1821
+ }
1822
+ }
1823
+ //# sourceMappingURL=package-manager.js.map