theus-cli 0.2.36 → 0.2.37

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 (721) hide show
  1. package/cli.js +434 -143
  2. package/package.json +6 -4
  3. package/vendor/theus-arsenal/.theus-plugin/marketplace.json +25 -0
  4. package/vendor/theus-arsenal/.theus-plugin/plugin.json +20 -0
  5. package/vendor/theus-arsenal/LICENSE +26 -0
  6. package/vendor/theus-arsenal/README.md +41 -0
  7. package/vendor/theus-arsenal/THIRD_PARTY.md +80 -0
  8. package/vendor/theus-arsenal/agents/actualizador-docs.md +123 -0
  9. package/vendor/theus-arsenal/agents/analista-comentarios.md +53 -0
  10. package/vendor/theus-arsenal/agents/analista-conversaciones.md +60 -0
  11. package/vendor/theus-arsenal/agents/analista-tests-pr.md +53 -0
  12. package/vendor/theus-arsenal/agents/analista-tipos.md +49 -0
  13. package/vendor/theus-arsenal/agents/arquitecto-accesibilidad.md +148 -0
  14. package/vendor/theus-arsenal/agents/arquitecto-codigo.md +79 -0
  15. package/vendor/theus-arsenal/agents/arquitecto-homelab.md +90 -0
  16. package/vendor/theus-arsenal/agents/arquitecto-redes.md +116 -0
  17. package/vendor/theus-arsenal/agents/arquitecto-sistemas.md +219 -0
  18. package/vendor/theus-arsenal/agents/bifurcador-opensource.md +206 -0
  19. package/vendor/theus-arsenal/agents/cazador-fallos-silenciosos.md +58 -0
  20. package/vendor/theus-arsenal/agents/consultor-documentacion.md +76 -0
  21. package/vendor/theus-arsenal/agents/diagnosticador-redes.md +135 -0
  22. package/vendor/theus-arsenal/agents/ejecutor-e2e.md +96 -0
  23. package/vendor/theus-arsenal/agents/empaquetador-opensource.md +257 -0
  24. package/vendor/theus-arsenal/agents/escaner-secretos.md +196 -0
  25. package/vendor/theus-arsenal/agents/especialista-seo.md +70 -0
  26. package/vendor/theus-arsenal/agents/estratega-marketing.md +158 -0
  27. package/vendor/theus-arsenal/agents/evaluador-agentes.md +214 -0
  28. package/vendor/theus-arsenal/agents/evaluador-harness.md +217 -0
  29. package/vendor/theus-arsenal/agents/explorador-codigo.md +79 -0
  30. package/vendor/theus-arsenal/agents/extractor-specs.md +214 -0
  31. package/vendor/theus-arsenal/agents/generador-harness.md +139 -0
  32. package/vendor/theus-arsenal/agents/guia-tdd.md +99 -0
  33. package/vendor/theus-arsenal/agents/jefe-de-gabinete.md +162 -0
  34. package/vendor/theus-arsenal/agents/limpiador-refactors.md +93 -0
  35. package/vendor/theus-arsenal/agents/optimizador-rendimiento.md +454 -0
  36. package/vendor/theus-arsenal/agents/planificador-harness.md +107 -0
  37. package/vendor/theus-arsenal/agents/planificador.md +221 -0
  38. package/vendor/theus-arsenal/agents/resolutor-apps-harmonyos.md +181 -0
  39. package/vendor/theus-arsenal/agents/resolutor-builds-cpp.md +98 -0
  40. package/vendor/theus-arsenal/agents/resolutor-builds-dart.md +209 -0
  41. package/vendor/theus-arsenal/agents/resolutor-builds-django.md +253 -0
  42. package/vendor/theus-arsenal/agents/resolutor-builds-go.md +102 -0
  43. package/vendor/theus-arsenal/agents/resolutor-builds-java.md +274 -0
  44. package/vendor/theus-arsenal/agents/resolutor-builds-kotlin.md +128 -0
  45. package/vendor/theus-arsenal/agents/resolutor-builds-pytorch.md +128 -0
  46. package/vendor/theus-arsenal/agents/resolutor-builds-react.md +214 -0
  47. package/vendor/theus-arsenal/agents/resolutor-builds-rust.md +156 -0
  48. package/vendor/theus-arsenal/agents/resolutor-builds-swift.md +169 -0
  49. package/vendor/theus-arsenal/agents/resolutor-builds.md +122 -0
  50. package/vendor/theus-arsenal/agents/revisor-bd.md +97 -0
  51. package/vendor/theus-arsenal/agents/revisor-codigo.md +291 -0
  52. package/vendor/theus-arsenal/agents/revisor-config-red.md +116 -0
  53. package/vendor/theus-arsenal/agents/revisor-cpp.md +80 -0
  54. package/vendor/theus-arsenal/agents/revisor-csharp.md +109 -0
  55. package/vendor/theus-arsenal/agents/revisor-django.md +168 -0
  56. package/vendor/theus-arsenal/agents/revisor-fastapi.md +82 -0
  57. package/vendor/theus-arsenal/agents/revisor-flutter.md +251 -0
  58. package/vendor/theus-arsenal/agents/revisor-go.md +84 -0
  59. package/vendor/theus-arsenal/agents/revisor-java.md +192 -0
  60. package/vendor/theus-arsenal/agents/revisor-kotlin.md +171 -0
  61. package/vendor/theus-arsenal/agents/revisor-ml.md +159 -0
  62. package/vendor/theus-arsenal/agents/revisor-php.md +108 -0
  63. package/vendor/theus-arsenal/agents/revisor-python.md +106 -0
  64. package/vendor/theus-arsenal/agents/revisor-react.md +166 -0
  65. package/vendor/theus-arsenal/agents/revisor-rust.md +102 -0
  66. package/vendor/theus-arsenal/agents/revisor-seguridad.md +116 -0
  67. package/vendor/theus-arsenal/agents/revisor-software-clinico.md +95 -0
  68. package/vendor/theus-arsenal/agents/revisor-swift.md +115 -0
  69. package/vendor/theus-arsenal/agents/revisor-typescript.md +123 -0
  70. package/vendor/theus-arsenal/agents/revisor-vue.md +205 -0
  71. package/vendor/theus-arsenal/agents/simplificador-codigo.md +55 -0
  72. package/vendor/theus-arsenal/commands/actualizar-docs.md +88 -0
  73. package/vendor/theus-arsenal/commands/actualizar-mapas-codigo.md +78 -0
  74. package/vendor/theus-arsenal/commands/aprender-evaluar.md +109 -0
  75. package/vendor/theus-arsenal/commands/aprender.md +74 -0
  76. package/vendor/theus-arsenal/commands/arreglar-build.md +66 -0
  77. package/vendor/theus-arsenal/commands/bucle-multiperspectiva.md +153 -0
  78. package/vendor/theus-arsenal/commands/build-cpp.md +173 -0
  79. package/vendor/theus-arsenal/commands/build-flutter.md +164 -0
  80. package/vendor/theus-arsenal/commands/build-go.md +183 -0
  81. package/vendor/theus-arsenal/commands/build-gradle.md +75 -0
  82. package/vendor/theus-arsenal/commands/build-kotlin.md +176 -0
  83. package/vendor/theus-arsenal/commands/build-react.md +187 -0
  84. package/vendor/theus-arsenal/commands/build-rust.md +187 -0
  85. package/vendor/theus-arsenal/commands/campana-marketing.md +125 -0
  86. package/vendor/theus-arsenal/commands/checkpoint.md +78 -0
  87. package/vendor/theus-arsenal/commands/cobertura-tests.md +73 -0
  88. package/vendor/theus-arsenal/commands/configurar-gestor-paquetes.md +86 -0
  89. package/vendor/theus-arsenal/commands/consulta.md +164 -0
  90. package/vendor/theus-arsenal/commands/control-calidad.md +50 -0
  91. package/vendor/theus-arsenal/commands/crear-skill.md +77 -0
  92. package/vendor/theus-arsenal/commands/enrutar-modelo.md +30 -0
  93. package/vendor/theus-arsenal/commands/epica-desbloquear.md +17 -0
  94. package/vendor/theus-arsenal/commands/epica-descomponer.md +22 -0
  95. package/vendor/theus-arsenal/commands/epica-publicar.md +21 -0
  96. package/vendor/theus-arsenal/commands/epica-reclamar.md +25 -0
  97. package/vendor/theus-arsenal/commands/epica-revisar.md +22 -0
  98. package/vendor/theus-arsenal/commands/epica-sincronizar.md +21 -0
  99. package/vendor/theus-arsenal/commands/epica-validar.md +21 -0
  100. package/vendor/theus-arsenal/commands/evolucionar.md +176 -0
  101. package/vendor/theus-arsenal/commands/funcionalidad.md +49 -0
  102. package/vendor/theus-arsenal/commands/guardar-sesion.md +278 -0
  103. package/vendor/theus-arsenal/commands/harness-build.md +111 -0
  104. package/vendor/theus-arsenal/commands/harness-diseno.md +46 -0
  105. package/vendor/theus-arsenal/commands/informe-costos.md +90 -0
  106. package/vendor/theus-arsenal/commands/iniciar-bucle.md +36 -0
  107. package/vendor/theus-arsenal/commands/instintos-estado.md +53 -0
  108. package/vendor/theus-arsenal/commands/instintos-exportar.md +69 -0
  109. package/vendor/theus-arsenal/commands/instintos-importar.md +120 -0
  110. package/vendor/theus-arsenal/commands/lienzo-planes.md +48 -0
  111. package/vendor/theus-arsenal/commands/limpiar-refactor.md +84 -0
  112. package/vendor/theus-arsenal/commands/modo-seguro.md +96 -0
  113. package/vendor/theus-arsenal/commands/orq-agregar-funcionalidad.md +36 -0
  114. package/vendor/theus-arsenal/commands/orq-cambiar-funcionalidad.md +38 -0
  115. package/vendor/theus-arsenal/commands/orq-construir-mvp.md +36 -0
  116. package/vendor/theus-arsenal/commands/orq-corregir-defecto.md +40 -0
  117. package/vendor/theus-arsenal/commands/orq-refinar-codigo.md +44 -0
  118. package/vendor/theus-arsenal/commands/orq-revisar.md +135 -0
  119. package/vendor/theus-arsenal/commands/plan-prd.md +160 -0
  120. package/vendor/theus-arsenal/commands/plan.md +198 -0
  121. package/vendor/theus-arsenal/commands/podar.md +31 -0
  122. package/vendor/theus-arsenal/commands/pr.md +181 -0
  123. package/vendor/theus-arsenal/commands/promover.md +41 -0
  124. package/vendor/theus-arsenal/commands/proyectos.md +33 -0
  125. package/vendor/theus-arsenal/commands/prp-commit.md +112 -0
  126. package/vendor/theus-arsenal/commands/prp-implementar.md +385 -0
  127. package/vendor/theus-arsenal/commands/prp-planificar.md +501 -0
  128. package/vendor/theus-arsenal/commands/reanudar-sesion.md +160 -0
  129. package/vendor/theus-arsenal/commands/revisar-codigo.md +289 -0
  130. package/vendor/theus-arsenal/commands/revisar-cpp.md +132 -0
  131. package/vendor/theus-arsenal/commands/revisar-fastapi.md +39 -0
  132. package/vendor/theus-arsenal/commands/revisar-flutter.md +115 -0
  133. package/vendor/theus-arsenal/commands/revisar-go.md +148 -0
  134. package/vendor/theus-arsenal/commands/revisar-kotlin.md +140 -0
  135. package/vendor/theus-arsenal/commands/revisar-pr.md +37 -0
  136. package/vendor/theus-arsenal/commands/revisar-python.md +297 -0
  137. package/vendor/theus-arsenal/commands/revisar-react.md +170 -0
  138. package/vendor/theus-arsenal/commands/revisar-rust.md +142 -0
  139. package/vendor/theus-arsenal/commands/revisar-vue.md +174 -0
  140. package/vendor/theus-arsenal/commands/salud-skills.md +52 -0
  141. package/vendor/theus-arsenal/commands/sesiones.md +345 -0
  142. package/vendor/theus-arsenal/commands/test-cpp.md +252 -0
  143. package/vendor/theus-arsenal/commands/test-flutter.md +143 -0
  144. package/vendor/theus-arsenal/commands/test-go.md +268 -0
  145. package/vendor/theus-arsenal/commands/test-kotlin.md +312 -0
  146. package/vendor/theus-arsenal/commands/test-react.md +265 -0
  147. package/vendor/theus-arsenal/commands/test-rust.md +309 -0
  148. package/vendor/theus-arsenal/commands/vigilancia-canary.md +43 -0
  149. package/vendor/theus-arsenal/hooks/hooks.json +274 -0
  150. package/vendor/theus-arsenal/rules/angular/coding-style.md +182 -0
  151. package/vendor/theus-arsenal/rules/angular/hooks.md +25 -0
  152. package/vendor/theus-arsenal/rules/angular/patterns.md +249 -0
  153. package/vendor/theus-arsenal/rules/angular/security.md +87 -0
  154. package/vendor/theus-arsenal/rules/angular/testing.md +164 -0
  155. package/vendor/theus-arsenal/rules/arkts/coding-style.md +153 -0
  156. package/vendor/theus-arsenal/rules/arkts/hooks.md +80 -0
  157. package/vendor/theus-arsenal/rules/arkts/patterns.md +236 -0
  158. package/vendor/theus-arsenal/rules/arkts/security.md +141 -0
  159. package/vendor/theus-arsenal/rules/arkts/testing.md +126 -0
  160. package/vendor/theus-arsenal/rules/common/agents.md +49 -0
  161. package/vendor/theus-arsenal/rules/common/code-review.md +123 -0
  162. package/vendor/theus-arsenal/rules/common/coding-style.md +90 -0
  163. package/vendor/theus-arsenal/rules/common/development-workflow.md +44 -0
  164. package/vendor/theus-arsenal/rules/common/git-workflow.md +24 -0
  165. package/vendor/theus-arsenal/rules/common/hooks.md +32 -0
  166. package/vendor/theus-arsenal/rules/common/patterns.md +31 -0
  167. package/vendor/theus-arsenal/rules/common/performance.md +53 -0
  168. package/vendor/theus-arsenal/rules/common/security.md +29 -0
  169. package/vendor/theus-arsenal/rules/common/testing.md +57 -0
  170. package/vendor/theus-arsenal/rules/cpp/coding-style.md +44 -0
  171. package/vendor/theus-arsenal/rules/cpp/hooks.md +39 -0
  172. package/vendor/theus-arsenal/rules/cpp/patterns.md +51 -0
  173. package/vendor/theus-arsenal/rules/cpp/security.md +51 -0
  174. package/vendor/theus-arsenal/rules/cpp/testing.md +44 -0
  175. package/vendor/theus-arsenal/rules/csharp/coding-style.md +72 -0
  176. package/vendor/theus-arsenal/rules/csharp/hooks.md +25 -0
  177. package/vendor/theus-arsenal/rules/csharp/patterns.md +50 -0
  178. package/vendor/theus-arsenal/rules/csharp/security.md +58 -0
  179. package/vendor/theus-arsenal/rules/csharp/testing.md +50 -0
  180. package/vendor/theus-arsenal/rules/dart/coding-style.md +159 -0
  181. package/vendor/theus-arsenal/rules/dart/hooks.md +68 -0
  182. package/vendor/theus-arsenal/rules/dart/patterns.md +261 -0
  183. package/vendor/theus-arsenal/rules/dart/security.md +135 -0
  184. package/vendor/theus-arsenal/rules/dart/testing.md +215 -0
  185. package/vendor/theus-arsenal/rules/fsharp/coding-style.md +112 -0
  186. package/vendor/theus-arsenal/rules/fsharp/hooks.md +26 -0
  187. package/vendor/theus-arsenal/rules/fsharp/patterns.md +111 -0
  188. package/vendor/theus-arsenal/rules/fsharp/security.md +76 -0
  189. package/vendor/theus-arsenal/rules/fsharp/testing.md +62 -0
  190. package/vendor/theus-arsenal/rules/golang/coding-style.md +32 -0
  191. package/vendor/theus-arsenal/rules/golang/hooks.md +17 -0
  192. package/vendor/theus-arsenal/rules/golang/patterns.md +45 -0
  193. package/vendor/theus-arsenal/rules/golang/security.md +34 -0
  194. package/vendor/theus-arsenal/rules/golang/testing.md +31 -0
  195. package/vendor/theus-arsenal/rules/java/coding-style.md +114 -0
  196. package/vendor/theus-arsenal/rules/java/hooks.md +18 -0
  197. package/vendor/theus-arsenal/rules/java/patterns.md +147 -0
  198. package/vendor/theus-arsenal/rules/java/security.md +101 -0
  199. package/vendor/theus-arsenal/rules/java/testing.md +133 -0
  200. package/vendor/theus-arsenal/rules/kotlin/coding-style.md +86 -0
  201. package/vendor/theus-arsenal/rules/kotlin/hooks.md +17 -0
  202. package/vendor/theus-arsenal/rules/kotlin/patterns.md +146 -0
  203. package/vendor/theus-arsenal/rules/kotlin/security.md +82 -0
  204. package/vendor/theus-arsenal/rules/kotlin/testing.md +128 -0
  205. package/vendor/theus-arsenal/rules/nuxt/coding-style.md +47 -0
  206. package/vendor/theus-arsenal/rules/nuxt/hooks.md +39 -0
  207. package/vendor/theus-arsenal/rules/nuxt/patterns.md +54 -0
  208. package/vendor/theus-arsenal/rules/nuxt/security.md +48 -0
  209. package/vendor/theus-arsenal/rules/nuxt/testing.md +49 -0
  210. package/vendor/theus-arsenal/rules/php/coding-style.md +40 -0
  211. package/vendor/theus-arsenal/rules/php/hooks.md +24 -0
  212. package/vendor/theus-arsenal/rules/php/patterns.md +33 -0
  213. package/vendor/theus-arsenal/rules/php/security.md +37 -0
  214. package/vendor/theus-arsenal/rules/php/testing.md +38 -0
  215. package/vendor/theus-arsenal/rules/python/coding-style.md +42 -0
  216. package/vendor/theus-arsenal/rules/python/fastapi.md +58 -0
  217. package/vendor/theus-arsenal/rules/python/hooks.md +19 -0
  218. package/vendor/theus-arsenal/rules/python/patterns.md +39 -0
  219. package/vendor/theus-arsenal/rules/python/security.md +30 -0
  220. package/vendor/theus-arsenal/rules/python/testing.md +38 -0
  221. package/vendor/theus-arsenal/rules/react/coding-style.md +109 -0
  222. package/vendor/theus-arsenal/rules/react/hooks.md +187 -0
  223. package/vendor/theus-arsenal/rules/react/patterns.md +194 -0
  224. package/vendor/theus-arsenal/rules/react/security.md +180 -0
  225. package/vendor/theus-arsenal/rules/react/testing.md +208 -0
  226. package/vendor/theus-arsenal/rules/react-native/accessibility.md +55 -0
  227. package/vendor/theus-arsenal/rules/react-native/coding-style.md +71 -0
  228. package/vendor/theus-arsenal/rules/react-native/hooks.md +28 -0
  229. package/vendor/theus-arsenal/rules/react-native/patterns.md +88 -0
  230. package/vendor/theus-arsenal/rules/react-native/performance.md +45 -0
  231. package/vendor/theus-arsenal/rules/react-native/production-readiness.md +51 -0
  232. package/vendor/theus-arsenal/rules/react-native/security.md +43 -0
  233. package/vendor/theus-arsenal/rules/react-native/testing.md +52 -0
  234. package/vendor/theus-arsenal/rules/ruby/coding-style.md +46 -0
  235. package/vendor/theus-arsenal/rules/ruby/hooks.md +37 -0
  236. package/vendor/theus-arsenal/rules/ruby/patterns.md +44 -0
  237. package/vendor/theus-arsenal/rules/ruby/security.md +51 -0
  238. package/vendor/theus-arsenal/rules/ruby/testing.md +51 -0
  239. package/vendor/theus-arsenal/rules/rust/coding-style.md +151 -0
  240. package/vendor/theus-arsenal/rules/rust/hooks.md +16 -0
  241. package/vendor/theus-arsenal/rules/rust/patterns.md +168 -0
  242. package/vendor/theus-arsenal/rules/rust/security.md +141 -0
  243. package/vendor/theus-arsenal/rules/rust/testing.md +154 -0
  244. package/vendor/theus-arsenal/rules/swift/coding-style.md +47 -0
  245. package/vendor/theus-arsenal/rules/swift/hooks.md +20 -0
  246. package/vendor/theus-arsenal/rules/swift/patterns.md +66 -0
  247. package/vendor/theus-arsenal/rules/swift/security.md +33 -0
  248. package/vendor/theus-arsenal/rules/swift/testing.md +45 -0
  249. package/vendor/theus-arsenal/rules/typescript/coding-style.md +199 -0
  250. package/vendor/theus-arsenal/rules/typescript/hooks.md +22 -0
  251. package/vendor/theus-arsenal/rules/typescript/patterns.md +52 -0
  252. package/vendor/theus-arsenal/rules/typescript/security.md +28 -0
  253. package/vendor/theus-arsenal/rules/typescript/testing.md +18 -0
  254. package/vendor/theus-arsenal/rules/vue/coding-style.md +54 -0
  255. package/vendor/theus-arsenal/rules/vue/hooks.md +45 -0
  256. package/vendor/theus-arsenal/rules/vue/patterns.md +56 -0
  257. package/vendor/theus-arsenal/rules/vue/security.md +46 -0
  258. package/vendor/theus-arsenal/rules/vue/testing.md +53 -0
  259. package/vendor/theus-arsenal/rules/web/coding-style.md +108 -0
  260. package/vendor/theus-arsenal/rules/web/design-quality.md +75 -0
  261. package/vendor/theus-arsenal/rules/web/hooks.md +141 -0
  262. package/vendor/theus-arsenal/rules/web/patterns.md +91 -0
  263. package/vendor/theus-arsenal/rules/web/performance.md +76 -0
  264. package/vendor/theus-arsenal/rules/web/security.md +69 -0
  265. package/vendor/theus-arsenal/rules/web/testing.md +67 -0
  266. package/vendor/theus-arsenal/scripts/hooks/bash-hook-dispatcher.js +192 -0
  267. package/vendor/theus-arsenal/scripts/hooks/block-no-verify.js +556 -0
  268. package/vendor/theus-arsenal/scripts/hooks/check-console-log.js +92 -0
  269. package/vendor/theus-arsenal/scripts/hooks/check-hook-enabled.js +16 -0
  270. package/vendor/theus-arsenal/scripts/hooks/config-protection.js +171 -0
  271. package/vendor/theus-arsenal/scripts/hooks/design-quality-check.js +132 -0
  272. package/vendor/theus-arsenal/scripts/hooks/doc-file-warning.js +110 -0
  273. package/vendor/theus-arsenal/scripts/hooks/modo-seguro.js +158 -0
  274. package/vendor/theus-arsenal/scripts/hooks/notificacion-escritorio.js +208 -0
  275. package/vendor/theus-arsenal/scripts/hooks/plugin-hook-bootstrap.js +280 -0
  276. package/vendor/theus-arsenal/scripts/hooks/post-bash-command-log.js +87 -0
  277. package/vendor/theus-arsenal/scripts/hooks/post-bash-dispatcher.js +24 -0
  278. package/vendor/theus-arsenal/scripts/hooks/post-bash-pr-created.js +60 -0
  279. package/vendor/theus-arsenal/scripts/hooks/post-edit-accumulator.js +94 -0
  280. package/vendor/theus-arsenal/scripts/hooks/post-edit-console-warn.js +54 -0
  281. package/vendor/theus-arsenal/scripts/hooks/post-edit-format.js +110 -0
  282. package/vendor/theus-arsenal/scripts/hooks/post-edit-typecheck.js +98 -0
  283. package/vendor/theus-arsenal/scripts/hooks/pre-bash-commit-quality.js +447 -0
  284. package/vendor/theus-arsenal/scripts/hooks/pre-bash-dev-server-block.js +232 -0
  285. package/vendor/theus-arsenal/scripts/hooks/pre-bash-dispatcher.js +27 -0
  286. package/vendor/theus-arsenal/scripts/hooks/pre-compact.js +101 -0
  287. package/vendor/theus-arsenal/scripts/hooks/pretooluse-visible-output.js +49 -0
  288. package/vendor/theus-arsenal/scripts/hooks/quality-gate.js +168 -0
  289. package/vendor/theus-arsenal/scripts/hooks/run-with-flags.js +271 -0
  290. package/vendor/theus-arsenal/scripts/hooks/salud-mcp.js +749 -0
  291. package/vendor/theus-arsenal/scripts/hooks/seguimiento-costos.js +161 -0
  292. package/vendor/theus-arsenal/scripts/hooks/session-end.js +340 -0
  293. package/vendor/theus-arsenal/scripts/hooks/session-start.js +906 -0
  294. package/vendor/theus-arsenal/scripts/hooks/stop-format-typecheck.js +263 -0
  295. package/vendor/theus-arsenal/scripts/hooks/suggest-compact.js +286 -0
  296. package/vendor/theus-arsenal/scripts/hooks/theus-context-monitor.js +289 -0
  297. package/vendor/theus-arsenal/scripts/hooks/verificacion-factual.js +1278 -0
  298. package/vendor/theus-arsenal/scripts/lib/agent-data-home.js +96 -0
  299. package/vendor/theus-arsenal/scripts/lib/cost-estimate.js +66 -0
  300. package/vendor/theus-arsenal/scripts/lib/hook-flags.js +79 -0
  301. package/vendor/theus-arsenal/scripts/lib/llm-summary.js +185 -0
  302. package/vendor/theus-arsenal/scripts/lib/loopback-guard.js +54 -0
  303. package/vendor/theus-arsenal/scripts/lib/observer-sessions.js +237 -0
  304. package/vendor/theus-arsenal/scripts/lib/package-manager.d.ts +120 -0
  305. package/vendor/theus-arsenal/scripts/lib/package-manager.js +434 -0
  306. package/vendor/theus-arsenal/scripts/lib/path-safety.js +86 -0
  307. package/vendor/theus-arsenal/scripts/lib/plan-canvas/markdown.js +285 -0
  308. package/vendor/theus-arsenal/scripts/lib/plan-canvas/sdk.js +238 -0
  309. package/vendor/theus-arsenal/scripts/lib/plan-canvas/server.js +534 -0
  310. package/vendor/theus-arsenal/scripts/lib/plan-canvas/sessions.js +274 -0
  311. package/vendor/theus-arsenal/scripts/lib/plan-canvas/ui.js +546 -0
  312. package/vendor/theus-arsenal/scripts/lib/project-detect.js +451 -0
  313. package/vendor/theus-arsenal/scripts/lib/resolve-formatter.js +193 -0
  314. package/vendor/theus-arsenal/scripts/lib/resolve-theus-root.js +101 -0
  315. package/vendor/theus-arsenal/scripts/lib/session-aliases.d.ts +138 -0
  316. package/vendor/theus-arsenal/scripts/lib/session-aliases.js +483 -0
  317. package/vendor/theus-arsenal/scripts/lib/session-bridge.js +155 -0
  318. package/vendor/theus-arsenal/scripts/lib/session-manager.d.ts +137 -0
  319. package/vendor/theus-arsenal/scripts/lib/session-manager.js +555 -0
  320. package/vendor/theus-arsenal/scripts/lib/shell-split.js +86 -0
  321. package/vendor/theus-arsenal/scripts/lib/shell-substitution.js +501 -0
  322. package/vendor/theus-arsenal/scripts/lib/skill-evolution/dashboard.js +414 -0
  323. package/vendor/theus-arsenal/scripts/lib/skill-evolution/health.js +285 -0
  324. package/vendor/theus-arsenal/scripts/lib/skill-evolution/index.js +22 -0
  325. package/vendor/theus-arsenal/scripts/lib/skill-evolution/provenance.js +200 -0
  326. package/vendor/theus-arsenal/scripts/lib/skill-evolution/tracker.js +157 -0
  327. package/vendor/theus-arsenal/scripts/lib/skill-evolution/versioning.js +246 -0
  328. package/vendor/theus-arsenal/scripts/lib/transcript-context.js +232 -0
  329. package/vendor/theus-arsenal/scripts/lib/utils.d.ts +205 -0
  330. package/vendor/theus-arsenal/scripts/lib/utils.js +658 -0
  331. package/vendor/theus-arsenal/scripts/plan-canvas.js +341 -0
  332. package/vendor/theus-arsenal/scripts/setup-package-manager.js +46 -0
  333. package/vendor/theus-arsenal/scripts/skills-health.js +143 -0
  334. package/vendor/theus-arsenal/skills/a11y-frontend/SKILL.md +444 -0
  335. package/vendor/theus-arsenal/skills/accesibilidad/SKILL.md +144 -0
  336. package/vendor/theus-arsenal/skills/acelerador-throughput-datos/SKILL.md +72 -0
  337. package/vendor/theus-arsenal/skills/agente-scraper-datos/SKILL.md +771 -0
  338. package/vendor/theus-arsenal/skills/analisis-plataformas-competencia/SKILL.md +137 -0
  339. package/vendor/theus-arsenal/skills/api-x/SKILL.md +233 -0
  340. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/SKILL.md +335 -0
  341. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/observer-loop.sh +374 -0
  342. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/observer.md +188 -0
  343. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/session-guardian.sh +153 -0
  344. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/start-observer.sh +253 -0
  345. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/config.json +8 -0
  346. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/hooks/observe.sh +594 -0
  347. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/detect-project.sh +325 -0
  348. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/instinct-cli.py +1918 -0
  349. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/lib/arsenal-dir.sh +23 -0
  350. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/test_parse_instinct.py +1420 -0
  351. package/vendor/theus-arsenal/skills/arquitectura-hexagonal/SKILL.md +275 -0
  352. package/vendor/theus-arsenal/skills/arquitectura-limpia-android/SKILL.md +340 -0
  353. package/vendor/theus-arsenal/skills/arquitectura-pipelines-recomendacion/SKILL.md +112 -0
  354. package/vendor/theus-arsenal/skills/atlas-datos-prediccion/SKILL.md +53 -0
  355. package/vendor/theus-arsenal/skills/auditoria-arquitectura-agentes/SKILL.md +257 -0
  356. package/vendor/theus-arsenal/skills/auditoria-produccion/SKILL.md +180 -0
  357. package/vendor/theus-arsenal/skills/auditoria-rutas-clic/SKILL.md +243 -0
  358. package/vendor/theus-arsenal/skills/autoevaluacion-agente/SKILL.md +180 -0
  359. package/vendor/theus-arsenal/skills/autoevaluacion-agente/examples/high-score-example.md +89 -0
  360. package/vendor/theus-arsenal/skills/autoevaluacion-agente/examples/low-score-example.md +87 -0
  361. package/vendor/theus-arsenal/skills/autoevaluacion-agente/references/evaluation-criteria.md +71 -0
  362. package/vendor/theus-arsenal/skills/autoevaluacion-agente/references/hook-integration.md +90 -0
  363. package/vendor/theus-arsenal/skills/autoevaluacion-agente/scripts/evaluate.py +409 -0
  364. package/vendor/theus-arsenal/skills/autoevaluacion-agente/templates/evaluation-report.md +86 -0
  365. package/vendor/theus-arsenal/skills/automatizacion-ssh-netmiko/SKILL.md +176 -0
  366. package/vendor/theus-arsenal/skills/base-datos-pubmed/SKILL.md +174 -0
  367. package/vendor/theus-arsenal/skills/base-datos-uspto/SKILL.md +173 -0
  368. package/vendor/theus-arsenal/skills/benchmark/SKILL.md +92 -0
  369. package/vendor/theus-arsenal/skills/bitacora-crecimiento/SKILL.md +120 -0
  370. package/vendor/theus-arsenal/skills/bucle-verificacion/SKILL.md +125 -0
  371. package/vendor/theus-arsenal/skills/buscar-primero/SKILL.md +184 -0
  372. package/vendor/theus-arsenal/skills/busqueda-exa/SKILL.md +111 -0
  373. package/vendor/theus-arsenal/skills/cache-por-hash/SKILL.md +160 -0
  374. package/vendor/theus-arsenal/skills/campana-marketing/SKILL.md +118 -0
  375. package/vendor/theus-arsenal/skills/capacidad-producto/SKILL.md +138 -0
  376. package/vendor/theus-arsenal/skills/cazador-vulnerabilidades/SKILL.md +104 -0
  377. package/vendor/theus-arsenal/skills/compactacion-estrategica/SKILL.md +115 -0
  378. package/vendor/theus-arsenal/skills/comparador-baskets-prediccion/SKILL.md +69 -0
  379. package/vendor/theus-arsenal/skills/compras-energia/SKILL.md +206 -0
  380. package/vendor/theus-arsenal/skills/concurrencia-swift-6-2/SKILL.md +224 -0
  381. package/vendor/theus-arsenal/skills/consejo/SKILL.md +201 -0
  382. package/vendor/theus-arsenal/skills/construccion-harness-agentes/SKILL.md +78 -0
  383. package/vendor/theus-arsenal/skills/constructor-conectores/SKILL.md +119 -0
  384. package/vendor/theus-arsenal/skills/constructor-equipos/SKILL.md +169 -0
  385. package/vendor/theus-arsenal/skills/consulta-documentacion/SKILL.md +92 -0
  386. package/vendor/theus-arsenal/skills/consultas-genomicas-gget/SKILL.md +170 -0
  387. package/vendor/theus-arsenal/skills/contacto-inversores/SKILL.md +95 -0
  388. package/vendor/theus-arsenal/skills/corrutinas-flows-kotlin/SKILL.md +284 -0
  389. package/vendor/theus-arsenal/skills/creacion-video-remotion/SKILL.md +46 -0
  390. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/3d.md +86 -0
  391. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/animations.md +29 -0
  392. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/charts-bar-chart.tsx +173 -0
  393. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/text-animations-typewriter.tsx +100 -0
  394. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/text-animations-word-highlight.tsx +108 -0
  395. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets.md +78 -0
  396. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/audio.md +172 -0
  397. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/calculate-metadata.md +104 -0
  398. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/can-decode.md +75 -0
  399. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/charts.md +58 -0
  400. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/compositions.md +146 -0
  401. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/display-captions.md +126 -0
  402. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/extract-frames.md +229 -0
  403. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/fonts.md +152 -0
  404. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-audio-duration.md +58 -0
  405. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-video-dimensions.md +68 -0
  406. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-video-duration.md +58 -0
  407. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/gifs.md +138 -0
  408. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/images.md +130 -0
  409. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/import-srt-captions.md +67 -0
  410. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/lottie.md +67 -0
  411. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/measuring-dom-nodes.md +34 -0
  412. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/measuring-text.md +143 -0
  413. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/sequencing.md +106 -0
  414. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/tailwind.md +11 -0
  415. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/text-animations.md +20 -0
  416. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/timing.md +179 -0
  417. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/transcribe-captions.md +19 -0
  418. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/transitions.md +122 -0
  419. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/trimming.md +52 -0
  420. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/videos.md +171 -0
  421. package/vendor/theus-arsenal/skills/cumplimiento-aduanero/SKILL.md +270 -0
  422. package/vendor/theus-arsenal/skills/cumplimiento-hipaa/SKILL.md +78 -0
  423. package/vendor/theus-arsenal/skills/datos-sensibles-salud/SKILL.md +149 -0
  424. package/vendor/theus-arsenal/skills/decimales-tokens-evm/SKILL.md +128 -0
  425. package/vendor/theus-arsenal/skills/decisiones-arquitectura/SKILL.md +206 -0
  426. package/vendor/theus-arsenal/skills/demos-ui/SKILL.md +469 -0
  427. package/vendor/theus-arsenal/skills/desarrollo-por-intencion/SKILL.md +369 -0
  428. package/vendor/theus-arsenal/skills/descubrimiento-marca/SKILL.md +149 -0
  429. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/10_proposito-porque.md +42 -0
  430. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/20_posicionamiento.md +47 -0
  431. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/30_audiencia-nicho.md +53 -0
  432. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/40_personalidad-arquetipo.md +61 -0
  433. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/50_voz-tono.md +62 -0
  434. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/60_narrativa-historia.md +54 -0
  435. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/70_tension-fundador.md +50 -0
  436. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/90_SINTESIS.md +133 -0
  437. package/vendor/theus-arsenal/skills/descubrimiento-plugins-laravel/SKILL.md +230 -0
  438. package/vendor/theus-arsenal/skills/destilado-reglas/SKILL.md +263 -0
  439. package/vendor/theus-arsenal/skills/destilado-reglas/scripts/scan-rules.sh +58 -0
  440. package/vendor/theus-arsenal/skills/destilado-reglas/scripts/scan-skills.sh +129 -0
  441. package/vendor/theus-arsenal/skills/diagnostico-bgp/SKILL.md +170 -0
  442. package/vendor/theus-arsenal/skills/direccion-estetica/SKILL.md +220 -0
  443. package/vendor/theus-arsenal/skills/direccion-estetica/references/taxonomia-generos.md +89 -0
  444. package/vendor/theus-arsenal/skills/diseno-api/SKILL.md +522 -0
  445. package/vendor/theus-arsenal/skills/diseno-liquid-glass/SKILL.md +282 -0
  446. package/vendor/theus-arsenal/skills/e2e-escritorio-windows/SKILL.md +879 -0
  447. package/vendor/theus-arsenal/skills/edicion-video/SKILL.md +289 -0
  448. package/vendor/theus-arsenal/skills/enfoque-producto/SKILL.md +91 -0
  449. package/vendor/theus-arsenal/skills/entornos-flox/SKILL.md +493 -0
  450. package/vendor/theus-arsenal/skills/estandares-codigo/SKILL.md +548 -0
  451. package/vendor/theus-arsenal/skills/estandares-cpp/SKILL.md +727 -0
  452. package/vendor/theus-arsenal/skills/estandares-java/SKILL.md +389 -0
  453. package/vendor/theus-arsenal/skills/estilo-legado/SKILL.md +149 -0
  454. package/vendor/theus-arsenal/skills/estructura-informes-competencia/SKILL.md +95 -0
  455. package/vendor/theus-arsenal/skills/evaluacion-academica/SKILL.md +165 -0
  456. package/vendor/theus-arsenal/skills/explorador-skills/SKILL.md +129 -0
  457. package/vendor/theus-arsenal/skills/flujo-git/SKILL.md +714 -0
  458. package/vendor/theus-arsenal/skills/flujo-ingenieria-ml/SKILL.md +343 -0
  459. package/vendor/theus-arsenal/skills/flujo-tdd/SKILL.md +584 -0
  460. package/vendor/theus-arsenal/skills/forja-personas/SKILL.md +298 -0
  461. package/vendor/theus-arsenal/skills/forja-personas/gacha.py +224 -0
  462. package/vendor/theus-arsenal/skills/forja-personas/gacha.sh +5 -0
  463. package/vendor/theus-arsenal/skills/forja-personas/references/avatar-style.md +123 -0
  464. package/vendor/theus-arsenal/skills/forja-personas/references/boundary-rules.md +53 -0
  465. package/vendor/theus-arsenal/skills/forja-personas/references/error-handling.md +53 -0
  466. package/vendor/theus-arsenal/skills/forja-personas/references/identity-tension.md +48 -0
  467. package/vendor/theus-arsenal/skills/forja-personas/references/naming-system.md +39 -0
  468. package/vendor/theus-arsenal/skills/forja-personas/references/output-template.md +166 -0
  469. package/vendor/theus-arsenal/skills/fundamentos-animacion/SKILL.md +296 -0
  470. package/vendor/theus-arsenal/skills/generacion-iconos-ios/SKILL.md +156 -0
  471. package/vendor/theus-arsenal/skills/generacion-iconos-ios/scripts/generate_icons.swift +258 -0
  472. package/vendor/theus-arsenal/skills/generacion-iconos-ios/scripts/iconify_gen.sh +235 -0
  473. package/vendor/theus-arsenal/skills/gestion-excepciones-logisticas/SKILL.md +208 -0
  474. package/vendor/theus-arsenal/skills/gestion-transportistas/SKILL.md +204 -0
  475. package/vendor/theus-arsenal/skills/guia-adopcion-ml/SKILL.md +64 -0
  476. package/vendor/theus-arsenal/skills/harness-agente-autonomo/SKILL.md +252 -0
  477. package/vendor/theus-arsenal/skills/harness-eval-clinico/SKILL.md +212 -0
  478. package/vendor/theus-arsenal/skills/harness-evaluacion/SKILL.md +296 -0
  479. package/vendor/theus-arsenal/skills/harness-generador-evaluador/SKILL.md +254 -0
  480. package/vendor/theus-arsenal/skills/homelab-diseno-red/SKILL.md +120 -0
  481. package/vendor/theus-arsenal/skills/homelab-dns-pihole/SKILL.md +264 -0
  482. package/vendor/theus-arsenal/skills/homelab-preparacion-red/SKILL.md +144 -0
  483. package/vendor/theus-arsenal/skills/homelab-segmentacion-vlan/SKILL.md +307 -0
  484. package/vendor/theus-arsenal/skills/homelab-vpn-wireguard/SKILL.md +299 -0
  485. package/vendor/theus-arsenal/skills/ingenieria-agentica/SKILL.md +96 -0
  486. package/vendor/theus-arsenal/skills/inspeccion-animaciones-blender/SKILL.md +164 -0
  487. package/vendor/theus-arsenal/skills/instaladores-python/SKILL.md +820 -0
  488. package/vendor/theus-arsenal/skills/integracion-jira/SKILL.md +307 -0
  489. package/vendor/theus-arsenal/skills/inteligencia-leads/SKILL.md +312 -0
  490. package/vendor/theus-arsenal/skills/inteligencia-leads/agents/agente-enriquecimiento.md +87 -0
  491. package/vendor/theus-arsenal/skills/inteligencia-leads/agents/mapeador-mutuos.md +76 -0
  492. package/vendor/theus-arsenal/skills/inteligencia-leads/agents/puntuador-senales.md +60 -0
  493. package/vendor/theus-arsenal/skills/inteligencia-leads/agents/redactor-outreach.md +102 -0
  494. package/vendor/theus-arsenal/skills/inteligencia-mercados-prediccion/SKILL.md +53 -0
  495. package/vendor/theus-arsenal/skills/introspeccion-agente/SKILL.md +150 -0
  496. package/vendor/theus-arsenal/skills/inventario-skills/SKILL.md +194 -0
  497. package/vendor/theus-arsenal/skills/inventario-skills/scripts/quick-diff.sh +87 -0
  498. package/vendor/theus-arsenal/skills/inventario-skills/scripts/save-results.sh +57 -0
  499. package/vendor/theus-arsenal/skills/inventario-skills/scripts/scan.sh +170 -0
  500. package/vendor/theus-arsenal/skills/investigacion-mercado/SKILL.md +87 -0
  501. package/vendor/theus-arsenal/skills/investigacion-oraculos-prediccion/SKILL.md +59 -0
  502. package/vendor/theus-arsenal/skills/investigacion-profunda/SKILL.md +161 -0
  503. package/vendor/theus-arsenal/skills/keccak256-nodejs/SKILL.md +100 -0
  504. package/vendor/theus-arsenal/skills/libro-decisiones-recursivo/SKILL.md +82 -0
  505. package/vendor/theus-arsenal/skills/lienzo-planes/SKILL.md +111 -0
  506. package/vendor/theus-arsenal/skills/limpieza-configuracion/SKILL.md +116 -0
  507. package/vendor/theus-arsenal/skills/logistica-inversa-devoluciones/SKILL.md +241 -0
  508. package/vendor/theus-arsenal/skills/manejo-errores/SKILL.md +375 -0
  509. package/vendor/theus-arsenal/skills/materiales-inversores/SKILL.md +101 -0
  510. package/vendor/theus-arsenal/skills/memoria-por-proyecto/SKILL.md +170 -0
  511. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/forget.mjs +44 -0
  512. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/info.mjs +24 -0
  513. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/init.mjs +152 -0
  514. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/list.mjs +40 -0
  515. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/migrate.mjs +214 -0
  516. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/resume.mjs +36 -0
  517. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/save.mjs +210 -0
  518. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/shared.mjs +402 -0
  519. package/vendor/theus-arsenal/skills/memoria-por-proyecto/hooks/session-start.mjs +238 -0
  520. package/vendor/theus-arsenal/skills/metodologia-benchmarks/SKILL.md +131 -0
  521. package/vendor/theus-arsenal/skills/migraciones-bd/SKILL.md +430 -0
  522. package/vendor/theus-arsenal/skills/modelos-fundacionales-en-dispositivo/SKILL.md +244 -0
  523. package/vendor/theus-arsenal/skills/modo-seguro/SKILL.md +86 -0
  524. package/vendor/theus-arsenal/skills/motion-avanzado/SKILL.md +592 -0
  525. package/vendor/theus-arsenal/skills/motor-de-contenido/SKILL.md +136 -0
  526. package/vendor/theus-arsenal/skills/no-conformidades-calidad/SKILL.md +249 -0
  527. package/vendor/theus-arsenal/skills/onboarding-codigo/SKILL.md +244 -0
  528. package/vendor/theus-arsenal/skills/operaciones-agentes-empresariales/SKILL.md +51 -0
  529. package/vendor/theus-arsenal/skills/operaciones-conocimiento/SKILL.md +159 -0
  530. package/vendor/theus-arsenal/skills/operaciones-correo/SKILL.md +123 -0
  531. package/vendor/theus-arsenal/skills/operaciones-facturacion/SKILL.md +142 -0
  532. package/vendor/theus-arsenal/skills/operaciones-flujo-proyectos/SKILL.md +110 -0
  533. package/vendor/theus-arsenal/skills/operaciones-github/SKILL.md +143 -0
  534. package/vendor/theus-arsenal/skills/operaciones-google-workspace/SKILL.md +100 -0
  535. package/vendor/theus-arsenal/skills/operaciones-investigacion/SKILL.md +124 -0
  536. package/vendor/theus-arsenal/skills/operaciones-mensajes/SKILL.md +103 -0
  537. package/vendor/theus-arsenal/skills/operaciones-terminal/SKILL.md +110 -0
  538. package/vendor/theus-arsenal/skills/optimizacion-benchmark/SKILL.md +70 -0
  539. package/vendor/theus-arsenal/skills/optimizacion-costos-llm/SKILL.md +182 -0
  540. package/vendor/theus-arsenal/skills/optimizador-conexiones/SKILL.md +191 -0
  541. package/vendor/theus-arsenal/skills/optimizador-paralelismo/SKILL.md +75 -0
  542. package/vendor/theus-arsenal/skills/optimizador-prompts/SKILL.md +374 -0
  543. package/vendor/theus-arsenal/skills/orq-agregar-funcionalidad/SKILL.md +37 -0
  544. package/vendor/theus-arsenal/skills/orq-cambiar-funcionalidad/SKILL.md +36 -0
  545. package/vendor/theus-arsenal/skills/orq-construir-mvp/SKILL.md +38 -0
  546. package/vendor/theus-arsenal/skills/orq-corregir-defecto/SKILL.md +36 -0
  547. package/vendor/theus-arsenal/skills/orq-pipeline/SKILL.md +134 -0
  548. package/vendor/theus-arsenal/skills/orq-refinar-codigo/SKILL.md +49 -0
  549. package/vendor/theus-arsenal/skills/orquestacion-equipos-agentes/SKILL.md +117 -0
  550. package/vendor/theus-arsenal/skills/pagos-agentes-x402/SKILL.md +237 -0
  551. package/vendor/theus-arsenal/skills/patrones-angular/SKILL.md +153 -0
  552. package/vendor/theus-arsenal/skills/patrones-angular/references/angular-animations.md +160 -0
  553. package/vendor/theus-arsenal/skills/patrones-angular/references/angular-aria.md +410 -0
  554. package/vendor/theus-arsenal/skills/patrones-angular/references/cli.md +86 -0
  555. package/vendor/theus-arsenal/skills/patrones-angular/references/component-harnesses.md +59 -0
  556. package/vendor/theus-arsenal/skills/patrones-angular/references/component-styling.md +91 -0
  557. package/vendor/theus-arsenal/skills/patrones-angular/references/components.md +117 -0
  558. package/vendor/theus-arsenal/skills/patrones-angular/references/creating-services.md +97 -0
  559. package/vendor/theus-arsenal/skills/patrones-angular/references/data-resolvers.md +69 -0
  560. package/vendor/theus-arsenal/skills/patrones-angular/references/define-routes.md +67 -0
  561. package/vendor/theus-arsenal/skills/patrones-angular/references/defining-providers.md +72 -0
  562. package/vendor/theus-arsenal/skills/patrones-angular/references/di-fundamentals.md +120 -0
  563. package/vendor/theus-arsenal/skills/patrones-angular/references/e2e-testing.md +56 -0
  564. package/vendor/theus-arsenal/skills/patrones-angular/references/effects.md +83 -0
  565. package/vendor/theus-arsenal/skills/patrones-angular/references/hierarchical-injectors.md +43 -0
  566. package/vendor/theus-arsenal/skills/patrones-angular/references/host-elements.md +80 -0
  567. package/vendor/theus-arsenal/skills/patrones-angular/references/injection-context.md +63 -0
  568. package/vendor/theus-arsenal/skills/patrones-angular/references/inputs.md +101 -0
  569. package/vendor/theus-arsenal/skills/patrones-angular/references/linked-signal.md +59 -0
  570. package/vendor/theus-arsenal/skills/patrones-angular/references/loading-strategies.md +61 -0
  571. package/vendor/theus-arsenal/skills/patrones-angular/references/mcp.md +67 -0
  572. package/vendor/theus-arsenal/skills/patrones-angular/references/navigate-to-routes.md +69 -0
  573. package/vendor/theus-arsenal/skills/patrones-angular/references/outputs.md +86 -0
  574. package/vendor/theus-arsenal/skills/patrones-angular/references/reactive-forms.md +122 -0
  575. package/vendor/theus-arsenal/skills/patrones-angular/references/rendering-strategies.md +44 -0
  576. package/vendor/theus-arsenal/skills/patrones-angular/references/resource.md +77 -0
  577. package/vendor/theus-arsenal/skills/patrones-angular/references/route-animations.md +56 -0
  578. package/vendor/theus-arsenal/skills/patrones-angular/references/route-guards.md +52 -0
  579. package/vendor/theus-arsenal/skills/patrones-angular/references/router-lifecycle.md +45 -0
  580. package/vendor/theus-arsenal/skills/patrones-angular/references/router-testing.md +87 -0
  581. package/vendor/theus-arsenal/skills/patrones-angular/references/show-routes-with-outlets.md +68 -0
  582. package/vendor/theus-arsenal/skills/patrones-angular/references/signal-forms.md +795 -0
  583. package/vendor/theus-arsenal/skills/patrones-angular/references/signals-overview.md +94 -0
  584. package/vendor/theus-arsenal/skills/patrones-angular/references/tailwind-css.md +69 -0
  585. package/vendor/theus-arsenal/skills/patrones-angular/references/template-driven-forms.md +114 -0
  586. package/vendor/theus-arsenal/skills/patrones-angular/references/testing-fundamentals.md +65 -0
  587. package/vendor/theus-arsenal/skills/patrones-animacion/SKILL.md +432 -0
  588. package/vendor/theus-arsenal/skills/patrones-backend/SKILL.md +560 -0
  589. package/vendor/theus-arsenal/skills/patrones-cdss-clinico/SKILL.md +249 -0
  590. package/vendor/theus-arsenal/skills/patrones-cisco-ios/SKILL.md +148 -0
  591. package/vendor/theus-arsenal/skills/patrones-clickhouse/SKILL.md +443 -0
  592. package/vendor/theus-arsenal/skills/patrones-compose-multiplatform/SKILL.md +298 -0
  593. package/vendor/theus-arsenal/skills/patrones-dart-flutter/SKILL.md +566 -0
  594. package/vendor/theus-arsenal/skills/patrones-despliegue/SKILL.md +426 -0
  595. package/vendor/theus-arsenal/skills/patrones-django/SKILL.md +739 -0
  596. package/vendor/theus-arsenal/skills/patrones-django-celery/SKILL.md +456 -0
  597. package/vendor/theus-arsenal/skills/patrones-docker/SKILL.md +363 -0
  598. package/vendor/theus-arsenal/skills/patrones-dotnet/SKILL.md +321 -0
  599. package/vendor/theus-arsenal/skills/patrones-emr-clinico/SKILL.md +168 -0
  600. package/vendor/theus-arsenal/skills/patrones-fastapi/SKILL.md +513 -0
  601. package/vendor/theus-arsenal/skills/patrones-frontend/SKILL.md +655 -0
  602. package/vendor/theus-arsenal/skills/patrones-go/SKILL.md +674 -0
  603. package/vendor/theus-arsenal/skills/patrones-jpa/SKILL.md +156 -0
  604. package/vendor/theus-arsenal/skills/patrones-kotlin/SKILL.md +717 -0
  605. package/vendor/theus-arsenal/skills/patrones-kotlin-exposed/SKILL.md +724 -0
  606. package/vendor/theus-arsenal/skills/patrones-kotlin-ktor/SKILL.md +694 -0
  607. package/vendor/theus-arsenal/skills/patrones-kubernetes/SKILL.md +754 -0
  608. package/vendor/theus-arsenal/skills/patrones-laravel/SKILL.md +414 -0
  609. package/vendor/theus-arsenal/skills/patrones-mcp/SKILL.md +66 -0
  610. package/vendor/theus-arsenal/skills/patrones-mysql/SKILL.md +420 -0
  611. package/vendor/theus-arsenal/skills/patrones-nestjs/SKILL.md +229 -0
  612. package/vendor/theus-arsenal/skills/patrones-nextjs/SKILL.md +56 -0
  613. package/vendor/theus-arsenal/skills/patrones-nuxt4/SKILL.md +99 -0
  614. package/vendor/theus-arsenal/skills/patrones-perl/SKILL.md +508 -0
  615. package/vendor/theus-arsenal/skills/patrones-postgres/SKILL.md +141 -0
  616. package/vendor/theus-arsenal/skills/patrones-prisma/SKILL.md +399 -0
  617. package/vendor/theus-arsenal/skills/patrones-python/SKILL.md +750 -0
  618. package/vendor/theus-arsenal/skills/patrones-pytorch/SKILL.md +400 -0
  619. package/vendor/theus-arsenal/skills/patrones-quarkus/SKILL.md +729 -0
  620. package/vendor/theus-arsenal/skills/patrones-react/SKILL.md +339 -0
  621. package/vendor/theus-arsenal/skills/patrones-react-native/SKILL.md +325 -0
  622. package/vendor/theus-arsenal/skills/patrones-redis/SKILL.md +401 -0
  623. package/vendor/theus-arsenal/skills/patrones-rust/SKILL.md +504 -0
  624. package/vendor/theus-arsenal/skills/patrones-springboot/SKILL.md +314 -0
  625. package/vendor/theus-arsenal/skills/patrones-swiftui/SKILL.md +261 -0
  626. package/vendor/theus-arsenal/skills/patrones-tinystruct/SKILL.md +281 -0
  627. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/architecture.md +90 -0
  628. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/data-handling.md +60 -0
  629. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/database.md +99 -0
  630. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/routing.md +64 -0
  631. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/system-usage.md +97 -0
  632. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/testing.md +72 -0
  633. package/vendor/theus-arsenal/skills/patrones-vite/SKILL.md +449 -0
  634. package/vendor/theus-arsenal/skills/patrones-vue/SKILL.md +469 -0
  635. package/vendor/theus-arsenal/skills/persistencia-actores-swift/SKILL.md +148 -0
  636. package/vendor/theus-arsenal/skills/pipeline-opensource/SKILL.md +254 -0
  637. package/vendor/theus-arsenal/skills/planificacion-demanda-inventario/SKILL.md +236 -0
  638. package/vendor/theus-arsenal/skills/planificador-trades-prediccion/SKILL.md +60 -0
  639. package/vendor/theus-arsenal/skills/plano-tecnico/SKILL.md +102 -0
  640. package/vendor/theus-arsenal/skills/presentaciones-html/SKILL.md +189 -0
  641. package/vendor/theus-arsenal/skills/presentaciones-html/STYLE_PRESETS.md +330 -0
  642. package/vendor/theus-arsenal/skills/presentaciones-html/animation-patterns.md +122 -0
  643. package/vendor/theus-arsenal/skills/presentaciones-html/html-template.md +419 -0
  644. package/vendor/theus-arsenal/skills/presentaciones-html/scripts/export-pdf.sh +418 -0
  645. package/vendor/theus-arsenal/skills/presentaciones-html/scripts/extract-pptx.py +96 -0
  646. package/vendor/theus-arsenal/skills/presentaciones-html/viewport-base.css +153 -0
  647. package/vendor/theus-arsenal/skills/presupuesto-contexto/SKILL.md +263 -0
  648. package/vendor/theus-arsenal/skills/procesamiento-documentos-nutrient/SKILL.md +168 -0
  649. package/vendor/theus-arsenal/skills/programacion-produccion/SKILL.md +220 -0
  650. package/vendor/theus-arsenal/skills/publicacion-cruzada/SKILL.md +117 -0
  651. package/vendor/theus-arsenal/skills/publicador-social/SKILL.md +121 -0
  652. package/vendor/theus-arsenal/skills/puerta-de-entrega/SKILL.md +164 -0
  653. package/vendor/theus-arsenal/skills/puerta-de-entrega/hooks/puerta-entrega.py +242 -0
  654. package/vendor/theus-arsenal/skills/pulir-interfaces/SKILL.md +126 -0
  655. package/vendor/theus-arsenal/skills/qa-navegador/SKILL.md +103 -0
  656. package/vendor/theus-arsenal/skills/ranking-grafo-social/SKILL.md +153 -0
  657. package/vendor/theus-arsenal/skills/recuperacion-iterativa/SKILL.md +236 -0
  658. package/vendor/theus-arsenal/skills/redaccion-articulos/SKILL.md +81 -0
  659. package/vendor/theus-arsenal/skills/regex-vs-llm/SKILL.md +221 -0
  660. package/vendor/theus-arsenal/skills/regresion-codigo-ia/SKILL.md +388 -0
  661. package/vendor/theus-arsenal/skills/rendimiento-react/SKILL.md +567 -0
  662. package/vendor/theus-arsenal/skills/revision-codigo-flutter-dart/SKILL.md +442 -0
  663. package/vendor/theus-arsenal/skills/revision-literatura-cientifica/SKILL.md +191 -0
  664. package/vendor/theus-arsenal/skills/revision-multiperspectiva/SKILL.md +302 -0
  665. package/vendor/theus-arsenal/skills/revision-riesgo-prediccion/SKILL.md +56 -0
  666. package/vendor/theus-arsenal/skills/revision-seguridad/SKILL.md +505 -0
  667. package/vendor/theus-arsenal/skills/revision-seguridad/cloud-infrastructure-security.md +361 -0
  668. package/vendor/theus-arsenal/skills/runtime-bun/SKILL.md +83 -0
  669. package/vendor/theus-arsenal/skills/salud-codigo-codescene/SKILL.md +163 -0
  670. package/vendor/theus-arsenal/skills/salud-interfaces-red/SKILL.md +143 -0
  671. package/vendor/theus-arsenal/skills/seguimiento-costos/SKILL.md +122 -0
  672. package/vendor/theus-arsenal/skills/seguridad-agentes-trading/SKILL.md +145 -0
  673. package/vendor/theus-arsenal/skills/seguridad-amm-defi/SKILL.md +166 -0
  674. package/vendor/theus-arsenal/skills/seguridad-django/SKILL.md +648 -0
  675. package/vendor/theus-arsenal/skills/seguridad-laravel/SKILL.md +945 -0
  676. package/vendor/theus-arsenal/skills/seguridad-perl/SKILL.md +507 -0
  677. package/vendor/theus-arsenal/skills/seguridad-quarkus/SKILL.md +474 -0
  678. package/vendor/theus-arsenal/skills/seguridad-springboot/SKILL.md +279 -0
  679. package/vendor/theus-arsenal/skills/seo/SKILL.md +166 -0
  680. package/vendor/theus-arsenal/skills/sistema-diseno/SKILL.md +81 -0
  681. package/vendor/theus-arsenal/skills/sistema-operativo-agentico/SKILL.md +375 -0
  682. package/vendor/theus-arsenal/skills/sistemas-latencia-critica/SKILL.md +65 -0
  683. package/vendor/theus-arsenal/skills/tdd-django/SKILL.md +735 -0
  684. package/vendor/theus-arsenal/skills/tdd-laravel/SKILL.md +673 -0
  685. package/vendor/theus-arsenal/skills/tdd-quarkus/SKILL.md +817 -0
  686. package/vendor/theus-arsenal/skills/tdd-springboot/SKILL.md +165 -0
  687. package/vendor/theus-arsenal/skills/testing-cpp/SKILL.md +328 -0
  688. package/vendor/theus-arsenal/skills/testing-csharp/SKILL.md +321 -0
  689. package/vendor/theus-arsenal/skills/testing-e2e/SKILL.md +325 -0
  690. package/vendor/theus-arsenal/skills/testing-go/SKILL.md +719 -0
  691. package/vendor/theus-arsenal/skills/testing-kotlin/SKILL.md +829 -0
  692. package/vendor/theus-arsenal/skills/testing-perl/SKILL.md +479 -0
  693. package/vendor/theus-arsenal/skills/testing-protocolos-di-swift/SKILL.md +196 -0
  694. package/vendor/theus-arsenal/skills/testing-python/SKILL.md +815 -0
  695. package/vendor/theus-arsenal/skills/testing-react/SKILL.md +421 -0
  696. package/vendor/theus-arsenal/skills/testing-rust/SKILL.md +506 -0
  697. package/vendor/theus-arsenal/skills/tours-de-codigo/SKILL.md +252 -0
  698. package/vendor/theus-arsenal/skills/traduccion-documentos-visado/SKILL.md +121 -0
  699. package/vendor/theus-arsenal/skills/ui-a-vue/SKILL.md +141 -0
  700. package/vendor/theus-arsenal/skills/validacion-config-red/SKILL.md +211 -0
  701. package/vendor/theus-arsenal/skills/verificacion-django/SKILL.md +470 -0
  702. package/vendor/theus-arsenal/skills/verificacion-factual/SKILL.md +142 -0
  703. package/vendor/theus-arsenal/skills/verificacion-laravel/SKILL.md +184 -0
  704. package/vendor/theus-arsenal/skills/verificacion-quarkus/SKILL.md +485 -0
  705. package/vendor/theus-arsenal/skills/verificacion-springboot/SKILL.md +237 -0
  706. package/vendor/theus-arsenal/skills/videodb/SKILL.md +374 -0
  707. package/vendor/theus-arsenal/skills/videodb/reference/api-reference.md +550 -0
  708. package/vendor/theus-arsenal/skills/videodb/reference/capture-reference.md +407 -0
  709. package/vendor/theus-arsenal/skills/videodb/reference/capture.md +101 -0
  710. package/vendor/theus-arsenal/skills/videodb/reference/editor.md +443 -0
  711. package/vendor/theus-arsenal/skills/videodb/reference/generative.md +331 -0
  712. package/vendor/theus-arsenal/skills/videodb/reference/rtstream-reference.md +564 -0
  713. package/vendor/theus-arsenal/skills/videodb/reference/rtstream.md +65 -0
  714. package/vendor/theus-arsenal/skills/videodb/reference/search.md +230 -0
  715. package/vendor/theus-arsenal/skills/videodb/reference/streaming.md +406 -0
  716. package/vendor/theus-arsenal/skills/videodb/reference/use-cases.md +118 -0
  717. package/vendor/theus-arsenal/skills/videodb/scripts/ws_listener.py +279 -0
  718. package/vendor/theus-arsenal/skills/videos-manim/SKILL.md +91 -0
  719. package/vendor/theus-arsenal/skills/videos-manim/assets/network_graph_scene.py +52 -0
  720. package/vendor/theus-arsenal/skills/vigilancia-canary/SKILL.md +108 -0
  721. package/vendor/theus-arsenal/skills/voz-de-marca/SKILL.md +106 -0
package/cli.js CHANGED
@@ -58324,7 +58324,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
58324
58324
  if (isApiKeyHelperFromProjectOrLocalSettings()) {
58325
58325
  const hasTrust = checkHasTrustDialogAccepted();
58326
58326
  if (!hasTrust && !isNonInteractiveSession) {
58327
- const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58327
+ const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58328
58328
  logAntError("apiKeyHelper invoked before trust check", error40);
58329
58329
  logEvent("tengu_apiKeyHelper_missing_trust11", {});
58330
58330
  return null;
@@ -58368,7 +58368,7 @@ async function runAwsAuthRefresh() {
58368
58368
  if (isAwsAuthRefreshFromProjectSettings()) {
58369
58369
  const hasTrust = checkHasTrustDialogAccepted();
58370
58370
  if (!hasTrust && !getIsNonInteractiveSession()) {
58371
- const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58371
+ const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58372
58372
  logAntError("awsAuthRefresh invoked before trust check", error40);
58373
58373
  logEvent("tengu_awsAuthRefresh_missing_trust", {});
58374
58374
  return false;
@@ -58428,7 +58428,7 @@ async function getAwsCredsFromCredentialExport() {
58428
58428
  if (isAwsCredentialExportFromProjectSettings()) {
58429
58429
  const hasTrust = checkHasTrustDialogAccepted();
58430
58430
  if (!hasTrust && !getIsNonInteractiveSession()) {
58431
- const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58431
+ const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58432
58432
  logAntError("awsCredentialExport invoked before trust check", error40);
58433
58433
  logEvent("tengu_awsCredentialExport_missing_trust", {});
58434
58434
  return null;
@@ -58513,7 +58513,7 @@ async function runGcpAuthRefresh() {
58513
58513
  if (isGcpAuthRefreshFromProjectSettings()) {
58514
58514
  const hasTrust = checkHasTrustDialogAccepted();
58515
58515
  if (!hasTrust && !getIsNonInteractiveSession()) {
58516
- const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58516
+ const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
58517
58517
  logAntError("gcpAuthRefresh invoked before trust check", error40);
58518
58518
  logEvent("tengu_gcpAuthRefresh_missing_trust", {});
58519
58519
  return false;
@@ -59208,7 +59208,7 @@ var init_auth = __esm(() => {
59208
59208
 
59209
59209
  // utils/userAgent.ts
59210
59210
  function getTheusCodeUserAgent() {
59211
- return `theus-code/${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59211
+ return `theus-code/${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
59212
59212
  }
59213
59213
 
59214
59214
  // utils/workloadContext.ts
@@ -59230,7 +59230,7 @@ function getUserAgent() {
59230
59230
  const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
59231
59231
  const workload = getWorkload();
59232
59232
  const workloadSuffix = workload ? `, workload/${workload}` : "";
59233
- return `theus-cli/${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59233
+ return `theus-cli/${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
59234
59234
  }
59235
59235
  function getMCPUserAgent() {
59236
59236
  const parts = [];
@@ -59244,7 +59244,7 @@ function getMCPUserAgent() {
59244
59244
  parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
59245
59245
  }
59246
59246
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
59247
- return `theus-code/${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59247
+ return `theus-code/${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
59248
59248
  }
59249
59249
  function getWebFetchUserAgent() {
59250
59250
  return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
@@ -59382,7 +59382,7 @@ var init_user = __esm(() => {
59382
59382
  deviceId,
59383
59383
  sessionId: getSessionId(),
59384
59384
  email: getEmail(),
59385
- appVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59385
+ appVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
59386
59386
  platform: getHostPlatformForAnalytics(),
59387
59387
  organizationUuid,
59388
59388
  accountUuid,
@@ -61097,7 +61097,7 @@ var init_metadata = __esm(() => {
61097
61097
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
61098
61098
  WHITESPACE_REGEX = /\s+/;
61099
61099
  getVersionBase = memoize_default(() => {
61100
- const match = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61100
+ const match = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
61101
61101
  return match ? match[0] : undefined;
61102
61102
  });
61103
61103
  buildEnvContext = memoize_default(async () => {
@@ -61137,9 +61137,9 @@ var init_metadata = __esm(() => {
61137
61137
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
61138
61138
  isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
61139
61139
  isTheusAiAuth: isTheusAISubscriber(),
61140
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61140
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
61141
61141
  versionBase: getVersionBase(),
61142
- buildTime: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61142
+ buildTime: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
61143
61143
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
61144
61144
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
61145
61145
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -61805,7 +61805,7 @@ function initialize1PEventLogging() {
61805
61805
  const platform2 = getPlatform();
61806
61806
  const attributes = {
61807
61807
  [ATTR_SERVICE_NAME]: "theus-code",
61808
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61808
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
61809
61809
  };
61810
61810
  if (platform2 === "wsl") {
61811
61811
  const wslVersion = getWslVersion();
@@ -61832,7 +61832,7 @@ function initialize1PEventLogging() {
61832
61832
  })
61833
61833
  ]
61834
61834
  });
61835
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61835
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
61836
61836
  }
61837
61837
  async function reinitialize1PEventLoggingIfConfigChanged() {
61838
61838
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -63703,7 +63703,7 @@ function getAttributionHeader(fingerprint) {
63703
63703
  if (!isAttributionHeaderEnabled()) {
63704
63704
  return "";
63705
63705
  }
63706
- const version2 = `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
63706
+ const version2 = `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
63707
63707
  const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
63708
63708
  const cch = "";
63709
63709
  const workload = getWorkload();
@@ -107814,7 +107814,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
107814
107814
  }
107815
107815
  function getFeedbackGuideline() {
107816
107816
  if (isUsing3PServices()) {
107817
- return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
107817
+ return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
107818
107818
  }
107819
107819
  return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
107820
107820
  }
@@ -166523,7 +166523,7 @@ function getTelemetryAttributes() {
166523
166523
  attributes["session.id"] = sessionId;
166524
166524
  }
166525
166525
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
166526
- attributes["app.version"] = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166526
+ attributes["app.version"] = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
166527
166527
  }
166528
166528
  const oauthAccount = getOauthAccountInfo();
166529
166529
  if (oauthAccount) {
@@ -202536,7 +202536,7 @@ function getInstallationEnv() {
202536
202536
  return;
202537
202537
  }
202538
202538
  function getTheusCodeVersion() {
202539
- return { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202539
+ return { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
202540
202540
  }
202541
202541
  async function getInstalledVSCodeExtensionVersion(command) {
202542
202542
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -204054,7 +204054,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
204054
204054
  if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
204055
204055
  const hasTrust = checkHasTrustDialogAccepted();
204056
204056
  if (!hasTrust) {
204057
- const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
204057
+ const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
204058
204058
  logAntError("MCP headersHelper invoked before trust check", error40);
204059
204059
  logEvent("tengu_mcp_headersHelper_missing_trust", {});
204060
204060
  return null;
@@ -205264,7 +205264,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
205264
205264
  const client2 = new Client({
205265
205265
  name: "theus-code",
205266
205266
  title: "Theus",
205267
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
205267
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
205268
205268
  description: "Theus's agentic coding tool",
205269
205269
  websiteUrl: PRODUCT_URL
205270
205270
  }, {
@@ -205618,7 +205618,7 @@ var init_client5 = __esm(() => {
205618
205618
  const client2 = new Client({
205619
205619
  name: "theus-code",
205620
205620
  title: "Theus",
205621
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
205621
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
205622
205622
  description: "Theus's agentic coding tool",
205623
205623
  websiteUrl: PRODUCT_URL
205624
205624
  }, {
@@ -216196,7 +216196,7 @@ async function initializeBetaTracing(resource) {
216196
216196
  });
216197
216197
  logs.setGlobalLoggerProvider(loggerProvider);
216198
216198
  setLoggerProvider(loggerProvider);
216199
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216199
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216200
216200
  setEventLogger(eventLogger);
216201
216201
  process.on("beforeExit", async () => {
216202
216202
  await loggerProvider?.forceFlush();
@@ -216236,7 +216236,7 @@ async function initializeTelemetry() {
216236
216236
  const platform4 = getPlatform();
216237
216237
  const baseAttributes = {
216238
216238
  [ATTR_SERVICE_NAME]: "theus-code",
216239
- [ATTR_SERVICE_VERSION]: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216239
+ [ATTR_SERVICE_VERSION]: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
216240
216240
  };
216241
216241
  if (platform4 === "wsl") {
216242
216242
  const wslVersion = getWslVersion();
@@ -216281,7 +216281,7 @@ async function initializeTelemetry() {
216281
216281
  } catch {}
216282
216282
  };
216283
216283
  registerCleanup(shutdownTelemetry2);
216284
- return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216284
+ return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216285
216285
  }
216286
216286
  const meterProvider = new MeterProvider({
216287
216287
  resource,
@@ -216301,7 +216301,7 @@ async function initializeTelemetry() {
216301
216301
  });
216302
216302
  logs.setGlobalLoggerProvider(loggerProvider);
216303
216303
  setLoggerProvider(loggerProvider);
216304
- const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216304
+ const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216305
216305
  setEventLogger(eventLogger);
216306
216306
  logForDebugging("[3P telemetry] Event logger set successfully");
216307
216307
  process.on("beforeExit", async () => {
@@ -216363,7 +216363,7 @@ Current timeout: ${timeoutMs}ms
216363
216363
  }
216364
216364
  };
216365
216365
  registerCleanup(shutdownTelemetry);
216366
- return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216366
+ return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
216367
216367
  }
216368
216368
  async function flushTelemetry() {
216369
216369
  const meterProvider = getMeterProvider();
@@ -216903,7 +216903,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
216903
216903
  return "install_failed";
216904
216904
  }
216905
216905
  const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
216906
- const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
216906
+ const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
216907
216907
  if (result.code !== 0) {
216908
216908
  const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
216909
216909
  logError2(error40);
@@ -217049,9 +217049,9 @@ async function assertMinVersion() {
217049
217049
  if (false) {}
217050
217050
  try {
217051
217051
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
217052
- if (versionConfig.minVersion && lt({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, versionConfig.minVersion)) {
217052
+ if (versionConfig.minVersion && lt({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, versionConfig.minVersion)) {
217053
217053
  console.error(`
217054
- It looks like your version of Theus (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) needs an update.
217054
+ It looks like your version of Theus (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) needs an update.
217055
217055
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
217056
217056
 
217057
217057
  To update, please run:
@@ -217192,7 +217192,7 @@ async function getInstallationPrefix() {
217192
217192
  return prefixResult.stdout.trim();
217193
217193
  }
217194
217194
  function getGlobalInstallPackageManager() {
217195
- if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL === "theus-cli") {
217195
+ if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL === "theus-cli") {
217196
217196
  return "npm";
217197
217197
  }
217198
217198
  return env3.isRunningWithBun() ? "bun" : "npm";
@@ -217217,7 +217217,7 @@ async function checkGlobalInstallPermissions() {
217217
217217
  }
217218
217218
  async function getLatestVersion(channel2) {
217219
217219
  const npmTag = channel2 === "stable" ? "stable" : "latest";
217220
- const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217220
+ const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217221
217221
  if (result.code !== 0) {
217222
217222
  logForDebugging(`npm view failed with code ${result.code}`);
217223
217223
  if (result.stderr) {
@@ -217233,7 +217233,7 @@ async function getLatestVersion(channel2) {
217233
217233
  return result.stdout.trim();
217234
217234
  }
217235
217235
  async function getNpmDistTags() {
217236
- const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217236
+ const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
217237
217237
  if (result.code !== 0) {
217238
217238
  logForDebugging(`npm view dist-tags failed with code ${result.code}`);
217239
217239
  return { latest: null, stable: null };
@@ -217273,7 +217273,7 @@ async function installGlobalPackage(specificVersion) {
217273
217273
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
217274
217274
  logEvent("tengu_auto_updater_lock_contention", {
217275
217275
  pid: process.pid,
217276
- currentVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217276
+ currentVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217277
217277
  });
217278
217278
  return "in_progress";
217279
217279
  }
@@ -217282,7 +217282,7 @@ async function installGlobalPackage(specificVersion) {
217282
217282
  if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
217283
217283
  logError2(new Error("Windows NPM detected in WSL environment"));
217284
217284
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
217285
- currentVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217285
+ currentVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
217286
217286
  });
217287
217287
  console.error(`
217288
217288
  Error: Windows NPM detected in WSL
@@ -217301,7 +217301,7 @@ To fix this issue:
217301
217301
  if (!hasPermissions) {
217302
217302
  return "no_permissions";
217303
217303
  }
217304
- const packageSpec = specificVersion ? `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${specificVersion}` : { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL;
217304
+ const packageSpec = specificVersion ? `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${specificVersion}` : { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL;
217305
217305
  const packageManager = getGlobalInstallPackageManager();
217306
217306
  const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
217307
217307
  if (installResult.code !== 0) {
@@ -217629,8 +217629,8 @@ async function detectMultipleInstallations() {
217629
217629
  installations.push({ type: "npm-local", path: localPath });
217630
217630
  }
217631
217631
  const packagesToCheck = ["@theus-ai/theus-code"];
217632
- if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
217633
- packagesToCheck.push({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
217632
+ if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
217633
+ packagesToCheck.push({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
217634
217634
  }
217635
217635
  const npmResult = await execFileNoThrow("npm", [
217636
217636
  "-g",
@@ -217813,7 +217813,7 @@ function detectLinuxGlobPatternWarnings() {
217813
217813
  }
217814
217814
  async function getDoctorDiagnostic() {
217815
217815
  const installationType = await getCurrentInstallationType();
217816
- const version2 = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "unknown";
217816
+ const version2 = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "unknown";
217817
217817
  const installationPath = await getInstallationPath();
217818
217818
  const invokedBinary = getInvokedBinary();
217819
217819
  const multipleInstallations = await detectMultipleInstallations();
@@ -217825,8 +217825,8 @@ async function getDoctorDiagnostic() {
217825
217825
  for (const install of npmInstalls) {
217826
217826
  if (install.type === "npm-global") {
217827
217827
  let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
217828
- if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
217829
- uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`;
217828
+ if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
217829
+ uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`;
217830
217830
  }
217831
217831
  warnings.push({
217832
217832
  issue: `Leftover npm global installation at ${install.path}`,
@@ -217938,7 +217938,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
217938
217938
  const startTime2 = Date.now();
217939
217939
  const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
217940
217940
  "view",
217941
- `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
217941
+ `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
217942
217942
  "version",
217943
217943
  "--prefer-online",
217944
217944
  "--registry",
@@ -217962,7 +217962,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
217962
217962
  latency_ms: latencyMs,
217963
217963
  source_npm: true
217964
217964
  });
217965
- logForDebugging(`npm view ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
217965
+ logForDebugging(`npm view ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
217966
217966
  const latestVersion = stdout.trim();
217967
217967
  return latestVersion;
217968
217968
  }
@@ -218018,7 +218018,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218018
218018
  const fs3 = getFsImplementation();
218019
218019
  await fs3.rm(stagingPath, { recursive: true, force: true });
218020
218020
  const platform4 = getPlatform2();
218021
- const platformPackageName = `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
218021
+ const platformPackageName = `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
218022
218022
  logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
218023
218023
  const {
218024
218024
  stdout: integrityOutput,
@@ -218047,7 +218047,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218047
218047
  name: "theus-native-installer",
218048
218048
  version: "0.0.1",
218049
218049
  dependencies: {
218050
- [{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218050
+ [{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218051
218051
  }
218052
218052
  };
218053
218053
  const packageLock = {
@@ -218060,10 +218060,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218060
218060
  name: "theus-native-installer",
218061
218061
  version: "0.0.1",
218062
218062
  dependencies: {
218063
- [{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218063
+ [{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
218064
218064
  }
218065
218065
  },
218066
- [`node_modules/${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
218066
+ [`node_modules/${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
218067
218067
  version: version2,
218068
218068
  optionalDependencies: {
218069
218069
  [platformPackageName]: version2
@@ -218085,7 +218085,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
218085
218085
  if (result.code !== 0) {
218086
218086
  throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
218087
218087
  }
218088
- logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
218088
+ logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
218089
218089
  }
218090
218090
  function getStallTimeoutMs() {
218091
218091
  return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
@@ -218748,8 +218748,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218748
218748
  const maxVersion = await getMaxVersion();
218749
218749
  if (maxVersion && gt(version2, maxVersion)) {
218750
218750
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
218751
- if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
218752
- logForDebugging(`Native installer: current version ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
218751
+ if (gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
218752
+ logForDebugging(`Native installer: current version ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
218753
218753
  logEvent("tengu_native_update_skipped_max_version", {
218754
218754
  latency_ms: Date.now() - startTime2,
218755
218755
  max_version: maxVersion,
@@ -218760,7 +218760,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
218760
218760
  version2 = maxVersion;
218761
218761
  }
218762
218762
  }
218763
- if (!forceReinstall && version2 === { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION && await versionIsAvailable(version2) && await isPossibleTheusBinary(executablePath)) {
218763
+ if (!forceReinstall && version2 === { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION && await versionIsAvailable(version2) && await isPossibleTheusBinary(executablePath)) {
218764
218764
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
218765
218765
  logEvent("tengu_native_update_complete", {
218766
218766
  latency_ms: Date.now() - startTime2,
@@ -219510,8 +219510,8 @@ async function cleanupNpmInstallations() {
219510
219510
  } else if (codePackageResult.error) {
219511
219511
  errors4.push(codePackageResult.error);
219512
219512
  }
219513
- if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
219514
- const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
219513
+ if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
219514
+ const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
219515
219515
  if (macroPackageResult.success) {
219516
219516
  removed++;
219517
219517
  if (macroPackageResult.warning) {
@@ -304780,9 +304780,9 @@ function getTheusEnvMetadata() {
304780
304780
  };
304781
304781
  }
304782
304782
  function getBuildAgeMinutes() {
304783
- if (!{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME)
304783
+ if (!{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME)
304784
304784
  return;
304785
- const buildTime = new Date({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME).getTime();
304785
+ const buildTime = new Date({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME).getTime();
304786
304786
  if (isNaN(buildTime))
304787
304787
  return;
304788
304788
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -313606,6 +313606,31 @@ var init_officialMarketplaceGcs = __esm(() => {
313606
313606
  });
313607
313607
 
313608
313608
  // utils/plugins/marketplaceManager.ts
313609
+ var exports_marketplaceManager = {};
313610
+ __export(exports_marketplaceManager, {
313611
+ setMarketplaceAutoUpdate: () => setMarketplaceAutoUpdate,
313612
+ saveMarketplaceToSettings: () => saveMarketplaceToSettings,
313613
+ saveKnownMarketplacesConfig: () => saveKnownMarketplacesConfig,
313614
+ removeMarketplaceSource: () => removeMarketplaceSource,
313615
+ registerSeedMarketplaces: () => registerSeedMarketplaces,
313616
+ refreshMarketplace: () => refreshMarketplace,
313617
+ refreshAllMarketplaces: () => refreshAllMarketplaces,
313618
+ reconcileSparseCheckout: () => reconcileSparseCheckout,
313619
+ loadKnownMarketplacesConfigSafe: () => loadKnownMarketplacesConfigSafe,
313620
+ loadKnownMarketplacesConfig: () => loadKnownMarketplacesConfig,
313621
+ gitPull: () => gitPull,
313622
+ gitClone: () => gitClone,
313623
+ getPluginByIdCacheOnly: () => getPluginByIdCacheOnly,
313624
+ getPluginById: () => getPluginById,
313625
+ getMarketplacesCacheDir: () => getMarketplacesCacheDir,
313626
+ getMarketplaceDeclaringSource: () => getMarketplaceDeclaringSource,
313627
+ getMarketplaceCacheOnly: () => getMarketplaceCacheOnly,
313628
+ getMarketplace: () => getMarketplace,
313629
+ getDeclaredMarketplaces: () => getDeclaredMarketplaces,
313630
+ clearMarketplacesCache: () => clearMarketplacesCache,
313631
+ addMarketplaceSource: () => addMarketplaceSource,
313632
+ _test: () => _test
313633
+ });
313609
313634
  import { writeFile as writeFile35 } from "fs/promises";
313610
313635
  import { basename as basename34, dirname as dirname45, isAbsolute as isAbsolute25, join as join109, resolve as resolve38, sep as sep23 } from "path";
313611
313636
  function getKnownMarketplacesFile() {
@@ -314737,7 +314762,7 @@ async function setMarketplaceAutoUpdate(name, autoUpdate) {
314737
314762
  }
314738
314763
  logForDebugging(`Set autoUpdate=${autoUpdate} for marketplace: ${name}`);
314739
314764
  }
314740
- var GIT_NO_PROMPT_ENV, DEFAULT_PLUGIN_GIT_TIMEOUT_MS, getMarketplace;
314765
+ var GIT_NO_PROMPT_ENV, DEFAULT_PLUGIN_GIT_TIMEOUT_MS, getMarketplace, _test;
314741
314766
  var init_marketplaceManager = __esm(() => {
314742
314767
  init_axios2();
314743
314768
  init_isEqual();
@@ -314794,9 +314819,40 @@ var init_marketplaceManager = __esm(() => {
314794
314819
  await saveKnownMarketplacesConfig(config2);
314795
314820
  return marketplace;
314796
314821
  });
314822
+ _test = {
314823
+ redactUrlCredentials
314824
+ };
314797
314825
  });
314798
314826
 
314799
314827
  // utils/plugins/installedPluginsManager.ts
314828
+ var exports_installedPluginsManager = {};
314829
+ __export(exports_installedPluginsManager, {
314830
+ updateInstallationPathOnDisk: () => updateInstallationPathOnDisk,
314831
+ resetMigrationState: () => resetMigrationState,
314832
+ resetInMemoryState: () => resetInMemoryState,
314833
+ removePluginInstallation: () => removePluginInstallation,
314834
+ removeInstalledPlugin: () => removeInstalledPlugin,
314835
+ removeAllPluginsForMarketplace: () => removeAllPluginsForMarketplace,
314836
+ migrateToSinglePluginFile: () => migrateToSinglePluginFile,
314837
+ migrateFromEnabledPlugins: () => migrateFromEnabledPlugins,
314838
+ loadInstalledPluginsV2: () => loadInstalledPluginsV2,
314839
+ loadInstalledPluginsFromDisk: () => loadInstalledPluginsFromDisk,
314840
+ isPluginInstalled: () => isPluginInstalled,
314841
+ isPluginGloballyInstalled: () => isPluginGloballyInstalled,
314842
+ isInstallationRelevantToCurrentProject: () => isInstallationRelevantToCurrentProject,
314843
+ initializeVersionedPlugins: () => initializeVersionedPlugins,
314844
+ hasPendingUpdates: () => hasPendingUpdates,
314845
+ getPendingUpdatesDetails: () => getPendingUpdatesDetails,
314846
+ getPendingUpdateCount: () => getPendingUpdateCount,
314847
+ getInstalledPluginsV2FilePath: () => getInstalledPluginsV2FilePath,
314848
+ getInstalledPluginsFilePath: () => getInstalledPluginsFilePath,
314849
+ getInMemoryInstalledPlugins: () => getInMemoryInstalledPlugins,
314850
+ getGitCommitSha: () => getGitCommitSha,
314851
+ deletePluginCache: () => deletePluginCache,
314852
+ clearInstalledPluginsCache: () => clearInstalledPluginsCache,
314853
+ addPluginInstallation: () => addPluginInstallation,
314854
+ addInstalledPlugin: () => addInstalledPlugin
314855
+ });
314800
314856
  import { dirname as dirname46, join as join110 } from "path";
314801
314857
  function getInstalledPluginsFilePath() {
314802
314858
  return join110(getPluginsDirectory(), "installed_plugins.json");
@@ -314804,6 +314860,11 @@ function getInstalledPluginsFilePath() {
314804
314860
  function getInstalledPluginsV2FilePath() {
314805
314861
  return join110(getPluginsDirectory(), "installed_plugins_v2.json");
314806
314862
  }
314863
+ function clearInstalledPluginsCache() {
314864
+ installedPluginsCacheV2 = null;
314865
+ inMemoryInstalledPlugins = null;
314866
+ logForDebugging("Cleared installed plugins cache");
314867
+ }
314807
314868
  function migrateToSinglePluginFile() {
314808
314869
  if (migrationCompleted) {
314809
314870
  return;
@@ -314894,6 +314955,9 @@ function cleanupLegacyCache(v2Data) {
314894
314955
  });
314895
314956
  }
314896
314957
  }
314958
+ function resetMigrationState() {
314959
+ migrationCompleted = false;
314960
+ }
314897
314961
  function readInstalledPluginsFileRaw() {
314898
314962
  const fs4 = getFsImplementation();
314899
314963
  const filePath = getInstalledPluginsFilePath();
@@ -314976,6 +315040,29 @@ function saveInstalledPluginsV2(data) {
314976
315040
  throw error40;
314977
315041
  }
314978
315042
  }
315043
+ function addPluginInstallation(pluginId, scope, installPath, metadata, projectPath) {
315044
+ const data = loadInstalledPluginsFromDisk();
315045
+ const installations = data.plugins[pluginId] || [];
315046
+ const existingIndex = installations.findIndex((entry) => entry.scope === scope && entry.projectPath === projectPath);
315047
+ const newEntry = {
315048
+ scope,
315049
+ installPath,
315050
+ version: metadata.version,
315051
+ installedAt: metadata.installedAt || new Date().toISOString(),
315052
+ lastUpdated: new Date().toISOString(),
315053
+ gitCommitSha: metadata.gitCommitSha,
315054
+ ...projectPath && { projectPath }
315055
+ };
315056
+ if (existingIndex >= 0) {
315057
+ installations[existingIndex] = newEntry;
315058
+ logForDebugging(`Updated installation for ${pluginId} at scope ${scope}`);
315059
+ } else {
315060
+ installations.push(newEntry);
315061
+ logForDebugging(`Added installation for ${pluginId} at scope ${scope}`);
315062
+ }
315063
+ data.plugins[pluginId] = installations;
315064
+ saveInstalledPluginsV2(data);
315065
+ }
314979
315066
  function removePluginInstallation(pluginId, scope, projectPath) {
314980
315067
  const data = loadInstalledPluginsFromDisk();
314981
315068
  const installations = data.plugins[pluginId];
@@ -315040,6 +315127,64 @@ function updateInstallationPathOnDisk(pluginId, scope, projectPath, newPath, new
315040
315127
  logForDebugging(`Cannot update ${pluginId} on disk: no installation for scope ${scope}`);
315041
315128
  }
315042
315129
  }
315130
+ function hasPendingUpdates() {
315131
+ const memoryState = getInMemoryInstalledPlugins();
315132
+ const diskState = loadInstalledPluginsFromDisk();
315133
+ for (const [pluginId, diskInstallations] of Object.entries(diskState.plugins)) {
315134
+ const memoryInstallations = memoryState.plugins[pluginId];
315135
+ if (!memoryInstallations)
315136
+ continue;
315137
+ for (const diskEntry of diskInstallations) {
315138
+ const memoryEntry = memoryInstallations.find((m) => m.scope === diskEntry.scope && m.projectPath === diskEntry.projectPath);
315139
+ if (memoryEntry && memoryEntry.installPath !== diskEntry.installPath) {
315140
+ return true;
315141
+ }
315142
+ }
315143
+ }
315144
+ return false;
315145
+ }
315146
+ function getPendingUpdateCount() {
315147
+ let count4 = 0;
315148
+ const memoryState = getInMemoryInstalledPlugins();
315149
+ const diskState = loadInstalledPluginsFromDisk();
315150
+ for (const [pluginId, diskInstallations] of Object.entries(diskState.plugins)) {
315151
+ const memoryInstallations = memoryState.plugins[pluginId];
315152
+ if (!memoryInstallations)
315153
+ continue;
315154
+ for (const diskEntry of diskInstallations) {
315155
+ const memoryEntry = memoryInstallations.find((m) => m.scope === diskEntry.scope && m.projectPath === diskEntry.projectPath);
315156
+ if (memoryEntry && memoryEntry.installPath !== diskEntry.installPath) {
315157
+ count4++;
315158
+ }
315159
+ }
315160
+ }
315161
+ return count4;
315162
+ }
315163
+ function getPendingUpdatesDetails() {
315164
+ const updates = [];
315165
+ const memoryState = getInMemoryInstalledPlugins();
315166
+ const diskState = loadInstalledPluginsFromDisk();
315167
+ for (const [pluginId, diskInstallations] of Object.entries(diskState.plugins)) {
315168
+ const memoryInstallations = memoryState.plugins[pluginId];
315169
+ if (!memoryInstallations)
315170
+ continue;
315171
+ for (const diskEntry of diskInstallations) {
315172
+ const memoryEntry = memoryInstallations.find((m) => m.scope === diskEntry.scope && m.projectPath === diskEntry.projectPath);
315173
+ if (memoryEntry && memoryEntry.installPath !== diskEntry.installPath) {
315174
+ updates.push({
315175
+ pluginId,
315176
+ scope: diskEntry.scope,
315177
+ oldVersion: memoryEntry.version || "unknown",
315178
+ newVersion: diskEntry.version || "unknown"
315179
+ });
315180
+ }
315181
+ }
315182
+ }
315183
+ return updates;
315184
+ }
315185
+ function resetInMemoryState() {
315186
+ inMemoryInstalledPlugins = null;
315187
+ }
315043
315188
  async function initializeVersionedPlugins() {
315044
315189
  migrateToSinglePluginFile();
315045
315190
  try {
@@ -315124,6 +315269,49 @@ function addInstalledPlugin(pluginId, metadata, scope = "user", projectPath) {
315124
315269
  saveInstalledPluginsV2(v2Data);
315125
315270
  logForDebugging(`${isUpdate ? "Updated" : "Added"} installed plugin: ${pluginId} (scope: ${scope})`);
315126
315271
  }
315272
+ function removeInstalledPlugin(pluginId) {
315273
+ const v2Data = loadInstalledPluginsFromDisk();
315274
+ const installations = v2Data.plugins[pluginId];
315275
+ if (!installations || installations.length === 0) {
315276
+ return;
315277
+ }
315278
+ const firstInstall = installations[0];
315279
+ const metadata = firstInstall ? {
315280
+ version: firstInstall.version || "unknown",
315281
+ installedAt: firstInstall.installedAt || new Date().toISOString(),
315282
+ lastUpdated: firstInstall.lastUpdated,
315283
+ installPath: firstInstall.installPath,
315284
+ gitCommitSha: firstInstall.gitCommitSha
315285
+ } : undefined;
315286
+ delete v2Data.plugins[pluginId];
315287
+ saveInstalledPluginsV2(v2Data);
315288
+ logForDebugging(`Removed installed plugin: ${pluginId}`);
315289
+ return metadata;
315290
+ }
315291
+ function deletePluginCache(installPath) {
315292
+ const fs4 = getFsImplementation();
315293
+ try {
315294
+ fs4.rmSync(installPath, { recursive: true, force: true });
315295
+ logForDebugging(`Deleted plugin cache at ${installPath}`);
315296
+ const cachePath2 = getPluginCachePath();
315297
+ if (installPath.includes("/cache/") && installPath.startsWith(cachePath2)) {
315298
+ const pluginDir = dirname46(installPath);
315299
+ if (pluginDir !== cachePath2 && pluginDir.startsWith(cachePath2)) {
315300
+ try {
315301
+ const contents = fs4.readdirSync(pluginDir);
315302
+ if (contents.length === 0) {
315303
+ fs4.rmdirSync(pluginDir);
315304
+ logForDebugging(`Deleted empty plugin directory at ${pluginDir}`);
315305
+ }
315306
+ } catch {}
315307
+ }
315308
+ }
315309
+ } catch (error40) {
315310
+ const errorMsg = errorMessage(error40);
315311
+ logError2(toError(error40));
315312
+ throw new Error(`Failed to delete plugin cache at ${installPath}: ${errorMsg}`);
315313
+ }
315314
+ }
315127
315315
  async function getGitCommitSha(dirPath) {
315128
315316
  const sha = await getHeadForDir(dirPath);
315129
315317
  return sha ?? undefined;
@@ -321236,7 +321424,7 @@ function getAssistantMessageFromError(error40, model, options2) {
321236
321424
  if (process.env.USER_TYPE === "ant") {
321237
321425
  const baseMessage = `API Error: 400 ${error40.message}
321238
321426
 
321239
- Run /share and post the JSON file to ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`;
321427
+ Run /share and post the JSON file to ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`;
321240
321428
  const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
321241
321429
  return createAssistantAPIErrorMessage({
321242
321430
  content: baseMessage + rewindInstruction,
@@ -321272,7 +321460,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01
321272
321460
  if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
321273
321461
  const orgId = getOauthAccountInfo()?.organizationUuid;
321274
321462
  const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
321275
- const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
321463
+ const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
321276
321464
  return createAssistantAPIErrorMessage({
321277
321465
  content: msg,
321278
321466
  error: "invalid_request"
@@ -331376,7 +331564,7 @@ function buildPrimarySection() {
331376
331564
  });
331377
331565
  return [{
331378
331566
  label: "Version",
331379
- value: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
331567
+ value: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
331380
331568
  }, {
331381
331569
  label: "Session name",
331382
331570
  value: nameValue
@@ -335192,7 +335380,7 @@ function Config({
335192
335380
  }
335193
335381
  })
335194
335382
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
335195
- currentVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
335383
+ currentVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
335196
335384
  onChoice: (choice) => {
335197
335385
  setShowSubmenu(null);
335198
335386
  setTabsHidden(false);
@@ -335204,7 +335392,7 @@ function Config({
335204
335392
  autoUpdatesChannel: "stable"
335205
335393
  };
335206
335394
  if (choice === "stay") {
335207
- newSettings.minimumVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
335395
+ newSettings.minimumVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
335208
335396
  }
335209
335397
  updateSettingsForSource("userSettings", newSettings);
335210
335398
  setSettingsData((prev_27) => ({
@@ -343238,7 +343426,7 @@ function HelpV2(t0) {
343238
343426
  let t6;
343239
343427
  if ($2[31] !== tabs) {
343240
343428
  t6 = /* @__PURE__ */ jsx_runtime216.jsx(Tabs, {
343241
- title: `Theus v${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343429
+ title: `Theus v${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
343242
343430
  color: "professionalBlue",
343243
343431
  defaultTab: "general",
343244
343432
  children: tabs
@@ -352834,6 +353022,23 @@ var init_DiscoverPlugins = __esm(() => {
352834
353022
  });
352835
353023
 
352836
353024
  // services/plugins/pluginOperations.ts
353025
+ var exports_pluginOperations = {};
353026
+ __export(exports_pluginOperations, {
353027
+ updatePluginOp: () => updatePluginOp,
353028
+ uninstallPluginOp: () => uninstallPluginOp,
353029
+ setPluginEnabledOp: () => setPluginEnabledOp,
353030
+ isPluginEnabledAtProjectScope: () => isPluginEnabledAtProjectScope,
353031
+ isInstallableScope: () => isInstallableScope,
353032
+ installPluginOp: () => installPluginOp,
353033
+ getProjectPathForScope: () => getProjectPathForScope,
353034
+ getPluginInstallationFromV2: () => getPluginInstallationFromV2,
353035
+ enablePluginOp: () => enablePluginOp,
353036
+ disablePluginOp: () => disablePluginOp,
353037
+ disableAllPluginsOp: () => disableAllPluginsOp,
353038
+ assertInstallableScope: () => assertInstallableScope,
353039
+ VALID_UPDATE_SCOPES: () => VALID_UPDATE_SCOPES,
353040
+ VALID_INSTALLABLE_SCOPES: () => VALID_INSTALLABLE_SCOPES
353041
+ });
352837
353042
  import { dirname as dirname55, join as join130 } from "path";
352838
353043
  function assertInstallableScope(scope) {
352839
353044
  if (!VALID_INSTALLABLE_SCOPES.includes(scope)) {
@@ -361312,7 +361517,7 @@ function Onboarding({
361312
361517
  flexDirection: "column",
361313
361518
  children: [
361314
361519
  /* @__PURE__ */ jsx_runtime249.jsx(TheusBanner, {
361315
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
361520
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
361316
361521
  }),
361317
361522
  /* @__PURE__ */ jsx_runtime249.jsxs(ThemedBox_default, {
361318
361523
  flexDirection: "column",
@@ -361657,9 +361862,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
361657
361862
  return [];
361658
361863
  }
361659
361864
  }
361660
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
361865
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
361661
361866
  if (process.env.USER_TYPE === "ant") {
361662
- const changelog = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
361867
+ const changelog = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
361663
361868
  if (changelog) {
361664
361869
  const commits = changelog.trim().split(`
361665
361870
  `).filter(Boolean);
@@ -365861,7 +366066,7 @@ var init_Messages = __esm(() => {
365861
366066
  let t1;
365862
366067
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
365863
366068
  t1 = /* @__PURE__ */ jsx_runtime261.jsx(TheusSessionHeader, {
365864
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
366069
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
365865
366070
  });
365866
366071
  $2[0] = t1;
365867
366072
  } else {
@@ -394327,7 +394532,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
394327
394532
  smapsRollup,
394328
394533
  platform: process.platform,
394329
394534
  nodeVersion: process.version,
394330
- ccVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
394535
+ ccVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
394331
394536
  };
394332
394537
  }
394333
394538
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -394913,7 +395118,7 @@ var init_bridge_kick = __esm(() => {
394913
395118
  var call57 = async () => {
394914
395119
  return {
394915
395120
  type: "text",
394916
- value: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME ? `${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (built ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME})` : { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
395121
+ value: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME ? `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (built ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME})` : { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
394917
395122
  };
394918
395123
  }, version2, version_default;
394919
395124
  var init_version = __esm(() => {
@@ -399355,13 +399560,13 @@ async function updateReleaseBundle() {
399355
399560
  await gracefulShutdown(1);
399356
399561
  return;
399357
399562
  }
399358
- if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399359
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399563
+ if (gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399564
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399360
399565
  `);
399361
399566
  await gracefulShutdown(0);
399362
399567
  return;
399363
399568
  }
399364
- writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399569
+ writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399365
399570
  `);
399366
399571
  writeToStdout(`Installing update from theus.pe/dl...
399367
399572
  `);
@@ -399395,7 +399600,7 @@ async function updateReleaseBundle() {
399395
399600
  return;
399396
399601
  }
399397
399602
  cpSync(staged, bundleDir, { recursive: true, force: true });
399398
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
399603
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
399399
399604
  `);
399400
399605
  await regenerateCompletionCache();
399401
399606
  } finally {
@@ -399408,7 +399613,7 @@ async function updateReleaseBundle() {
399408
399613
  async function update() {
399409
399614
  logEvent("tengu_update_check", {});
399410
399615
  await updateNaupa();
399411
- writeToStdout(`Current version: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
399616
+ writeToStdout(`Current version: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
399412
399617
  `);
399413
399618
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
399414
399619
  writeToStdout(`Checking for updates to ${channel2} version...
@@ -399487,8 +399692,8 @@ async function update() {
399487
399692
  writeToStdout(`Theus is managed by Homebrew.
399488
399693
  `);
399489
399694
  const latest = await getLatestVersion(channel2);
399490
- if (latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399491
- writeToStdout(`Update available: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
399695
+ if (latest && !gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399696
+ writeToStdout(`Update available: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
399492
399697
  `);
399493
399698
  writeToStdout(`
399494
399699
  `);
@@ -399504,8 +399709,8 @@ async function update() {
399504
399709
  writeToStdout(`Theus is managed by winget.
399505
399710
  `);
399506
399711
  const latest = await getLatestVersion(channel2);
399507
- if (latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399508
- writeToStdout(`Update available: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
399712
+ if (latest && !gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399713
+ writeToStdout(`Update available: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
399509
399714
  `);
399510
399715
  writeToStdout(`
399511
399716
  `);
@@ -399521,8 +399726,8 @@ async function update() {
399521
399726
  writeToStdout(`Theus is managed by apk.
399522
399727
  `);
399523
399728
  const latest = await getLatestVersion(channel2);
399524
- if (latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399525
- writeToStdout(`Update available: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
399729
+ if (latest && !gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
399730
+ writeToStdout(`Update available: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
399526
399731
  `);
399527
399732
  writeToStdout(`
399528
399733
  `);
@@ -399587,11 +399792,11 @@ async function update() {
399587
399792
  `);
399588
399793
  await gracefulShutdown(1);
399589
399794
  }
399590
- if (result.latestVersion === { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
399591
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399795
+ if (result.latestVersion === { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
399796
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399592
399797
  `);
399593
399798
  } else {
399594
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
399799
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
399595
399800
  `);
399596
399801
  await regenerateCompletionCache();
399597
399802
  }
@@ -399610,9 +399815,9 @@ async function update() {
399610
399815
  await removeInstalledSymlink();
399611
399816
  }
399612
399817
  logForDebugging("update: Checking npm registry for latest version");
399613
- logForDebugging(`update: Package URL: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`);
399818
+ logForDebugging(`update: Package URL: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`);
399614
399819
  const npmTag = channel2 === "stable" ? "stable" : "latest";
399615
- const npmCommand = `npm view ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag} version`;
399820
+ const npmCommand = `npm view ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag} version`;
399616
399821
  logForDebugging(`update: Running: ${npmCommand}`);
399617
399822
  const latestVersion = await getLatestVersion(channel2);
399618
399823
  logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
@@ -399632,7 +399837,7 @@ async function update() {
399632
399837
  `);
399633
399838
  process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
399634
399839
  `);
399635
- if ({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && !{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL.startsWith("@theus")) {
399840
+ if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && !{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL.startsWith("@theus")) {
399636
399841
  process.stderr.write(` \u2022 Internal/development build not published to npm
399637
399842
  `);
399638
399843
  }
@@ -399644,19 +399849,19 @@ async function update() {
399644
399849
  `);
399645
399850
  process.stderr.write(` \u2022 Run with --debug flag for more details
399646
399851
  `);
399647
- const packageName = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
399852
+ const packageName = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
399648
399853
  process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
399649
399854
  `);
399650
399855
  process.stderr.write(` \u2022 Check if you need to login: npm whoami
399651
399856
  `);
399652
399857
  await gracefulShutdown(1);
399653
399858
  }
399654
- if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latestVersion)) {
399655
- writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399859
+ if (gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latestVersion)) {
399860
+ writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
399656
399861
  `);
399657
399862
  await gracefulShutdown(0);
399658
399863
  }
399659
- writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399864
+ writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
399660
399865
  `);
399661
399866
  writeToStdout(`Installing update...
399662
399867
  `);
@@ -399701,7 +399906,7 @@ async function update() {
399701
399906
  logForDebugging(`update: Installation status: ${status2}`);
399702
399907
  switch (status2) {
399703
399908
  case "success":
399704
- writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
399909
+ writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
399705
399910
  `);
399706
399911
  await regenerateCompletionCache();
399707
399912
  break;
@@ -399711,7 +399916,7 @@ async function update() {
399711
399916
  if (useLocalUpdate) {
399712
399917
  process.stderr.write(`Try manually updating with:
399713
399918
  `);
399714
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
399919
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
399715
399920
  `);
399716
399921
  } else {
399717
399922
  process.stderr.write(`Try running with sudo or fix npm permissions
@@ -399727,7 +399932,7 @@ async function update() {
399727
399932
  if (useLocalUpdate) {
399728
399933
  process.stderr.write(`Try manually updating with:
399729
399934
  `);
399730
- process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
399935
+ process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
399731
399936
  `);
399732
399937
  } else {
399733
399938
  process.stderr.write(`Or consider using native installation with: theus install
@@ -408804,7 +409009,7 @@ var init_sessionStorage = __esm(() => {
408804
409009
  init_settings2();
408805
409010
  init_slowOperations();
408806
409011
  init_uuid();
408807
- VERSION4 = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
409012
+ VERSION4 = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
408808
409013
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
408809
409014
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
408810
409015
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -410009,7 +410214,7 @@ var init_filesystem = __esm(() => {
410009
410214
  });
410010
410215
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
410011
410216
  const nonce = randomBytes21(16).toString("hex");
410012
- return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, nonce);
410217
+ return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, nonce);
410013
410218
  });
410014
410219
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
410015
410220
  });
@@ -415188,7 +415393,7 @@ function getSimpleDoingTasksSection() {
415188
415393
  ];
415189
415394
  const userHelpSubitems = [
415190
415395
  `/help: Get help with using Theus`,
415191
- `To give feedback, users should ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`
415396
+ `To give feedback, users should ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`
415192
415397
  ];
415193
415398
  const items = [
415194
415399
  `The user will primarily request you to perform software engineering tasks. These may include solving bugs, adding new functionality, refactoring code, explaining code, and more. When given an unclear or generic instruction, consider it in the context of these software engineering tasks and the current working directory. For example, if the user asks you to change "methodName" to snake case, do not reply with just "method_name", instead find the method in the code and modify the code.`,
@@ -416088,7 +416293,7 @@ function computeFingerprint(messageText, version3) {
416088
416293
  }
416089
416294
  function computeFingerprintFromMessages(messages) {
416090
416295
  const firstMessageText = extractFirstMessageText(messages);
416091
- return computeFingerprint(firstMessageText, { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
416296
+ return computeFingerprint(firstMessageText, { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
416092
416297
  }
416093
416298
  var FINGERPRINT_SALT = "59cf53e54c78";
416094
416299
  var init_fingerprint = () => {};
@@ -418648,7 +418853,7 @@ async function sideQuery(opts) {
418648
418853
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
418649
418854
  }
418650
418855
  const messageText = extractFirstUserMessageText(messages);
418651
- const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
418856
+ const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
418652
418857
  const attributionHeader = getAttributionHeader(fingerprint);
418653
418858
  const systemBlocks = [
418654
418859
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -419951,7 +420156,7 @@ async function handleMemories(state) {
419951
420156
  async function runProjectContextMcpServer() {
419952
420157
  const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
419953
420158
  const state = new ProjectContextState(projectRoot);
419954
- const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION }, { capabilities: { tools: {} } });
420159
+ const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION }, { capabilities: { tools: {} } });
419955
420160
  server2.setRequestHandler(ListToolsRequestSchema, async () => ({
419956
420161
  tools: TOOL_DEFINITIONS.map((t) => ({
419957
420162
  name: t.name,
@@ -421931,7 +422136,7 @@ function createBridgeLogger(options2) {
421931
422136
  connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
421932
422137
  regenerateQr(connectUrl);
421933
422138
  if (verbose) {
421934
- write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
422139
+ write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
421935
422140
  `);
421936
422141
  }
421937
422142
  if (verbose) {
@@ -422904,7 +423109,7 @@ function appendToLog(path19, message) {
422904
423109
  cwd: getFsImplementation().cwd(),
422905
423110
  userType: process.env.USER_TYPE,
422906
423111
  sessionId: getSessionId(),
422907
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
423112
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
422908
423113
  };
422909
423114
  getLogWriter(path19).write(messageWithTimestamp);
422910
423115
  }
@@ -424174,7 +424379,7 @@ Spawn mode for this project:
424174
424379
  const api2 = createBridgeApiClient({
424175
424380
  baseUrl,
424176
424381
  getAccessToken: getBridgeAccessToken2,
424177
- runnerVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424382
+ runnerVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424178
424383
  onDebug: logForDebugging,
424179
424384
  onAuth401: handleOAuth401Error2,
424180
424385
  getTrustedDeviceToken
@@ -424412,7 +424617,7 @@ async function runBridgeHeadless(opts, signal) {
424412
424617
  const api2 = createBridgeApiClient({
424413
424618
  baseUrl,
424414
424619
  getAccessToken: opts.getAccessToken,
424415
- runnerVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424620
+ runnerVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
424416
424621
  onDebug: log2,
424417
424622
  onAuth401: opts.onAuth401,
424418
424623
  getTrustedDeviceToken
@@ -428476,7 +428681,7 @@ function buildSystemInitMessage(inputs) {
428476
428681
  slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
428477
428682
  apiKeySource: getTheusApiKeyWithSource().source,
428478
428683
  betas: getSdkBetas(),
428479
- theus_code_version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
428684
+ theus_code_version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
428480
428685
  output_style: outputStyle2,
428481
428686
  agents: inputs.agents.map((agent) => agent.agentType),
428482
428687
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -428516,8 +428721,8 @@ async function getEnvLessBridgeConfig() {
428516
428721
  }
428517
428722
  async function checkEnvLessBridgeMinVersion() {
428518
428723
  const cfg = await getEnvLessBridgeConfig();
428519
- if (cfg.min_version && lt({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, cfg.min_version)) {
428520
- return `Your version of Theus (${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) is too old for Remote Control.
428724
+ if (cfg.min_version && lt({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, cfg.min_version)) {
428725
+ return `Your version of Theus (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) is too old for Remote Control.
428521
428726
  Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
428522
428727
  }
428523
428728
  return null;
@@ -430840,7 +431045,7 @@ async function initBridgeCore(params) {
430840
431045
  const rawApi = createBridgeApiClient({
430841
431046
  baseUrl,
430842
431047
  getAccessToken,
430843
- runnerVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
431048
+ runnerVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
430844
431049
  onDebug: logForDebugging,
430845
431050
  onAuth401,
430846
431051
  getTrustedDeviceToken
@@ -447581,7 +447786,7 @@ var init_useVoiceEnabled = __esm(() => {
447581
447786
  function getSemverPart(version3) {
447582
447787
  return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
447583
447788
  }
447584
- function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
447789
+ function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
447585
447790
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
447586
447791
  if (!updatedVersion) {
447587
447792
  return null;
@@ -447621,7 +447826,7 @@ function AutoUpdater({
447621
447826
  return;
447622
447827
  }
447623
447828
  if (false) {}
447624
- const currentVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
447829
+ const currentVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
447625
447830
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
447626
447831
  let latestVersion = await getLatestVersion(channel2);
447627
447832
  const isDisabled2 = isAutoUpdaterDisabled();
@@ -447757,7 +447962,7 @@ function AutoUpdater({
447757
447962
  " ",
447758
447963
  /* @__PURE__ */ jsx_runtime406.jsx(ThemedText, {
447759
447964
  bold: true,
447760
- children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}` : `npm i -g ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`
447965
+ children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}` : `npm i -g ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`
447761
447966
  })
447762
447967
  ]
447763
447968
  })
@@ -447834,12 +448039,12 @@ function NativeAutoUpdater({
447834
448039
  logEvent("tengu_native_auto_updater_start", {});
447835
448040
  try {
447836
448041
  const maxVersion = await getMaxVersion();
447837
- if (maxVersion && gt({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
448042
+ if (maxVersion && gt({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
447838
448043
  const msg = await getMaxVersionMessage();
447839
448044
  setMaxVersionIssue(msg ?? "affects your version");
447840
448045
  }
447841
448046
  const result = await installLatest(channel2);
447842
- const currentVersion = { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
448047
+ const currentVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
447843
448048
  const latencyMs = Date.now() - startTime2;
447844
448049
  if (result.lockFailed) {
447845
448050
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -447976,17 +448181,17 @@ function PackageManagerAutoUpdater(t0) {
447976
448181
  const maxVersion = await getMaxVersion();
447977
448182
  if (maxVersion && latest && gt(latest, maxVersion)) {
447978
448183
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
447979
- if (gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
447980
- logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
448184
+ if (gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
448185
+ logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
447981
448186
  setUpdateAvailable(false);
447982
448187
  return;
447983
448188
  }
447984
448189
  latest = maxVersion;
447985
448190
  }
447986
- const hasUpdate = latest && !gte({ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest) && !shouldSkipVersion(latest);
448191
+ const hasUpdate = latest && !gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest) && !shouldSkipVersion(latest);
447987
448192
  setUpdateAvailable(!!hasUpdate);
447988
448193
  if (hasUpdate) {
447989
- logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} -> ${latest}`);
448194
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} -> ${latest}`);
447990
448195
  }
447991
448196
  };
447992
448197
  $2[0] = t1;
@@ -448020,7 +448225,7 @@ function PackageManagerAutoUpdater(t0) {
448020
448225
  wrap: "truncate",
448021
448226
  children: [
448022
448227
  "currentVersion: ",
448023
- { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
448228
+ { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
448024
448229
  ]
448025
448230
  });
448026
448231
  $2[3] = verbose;
@@ -455893,7 +456098,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
455893
456098
  project_dir: getOriginalCwd(),
455894
456099
  added_dirs: addedDirs
455895
456100
  },
455896
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
456101
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
455897
456102
  output_style: {
455898
456103
  name: outputStyleName
455899
456104
  },
@@ -467313,7 +467518,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
467313
467518
  } catch {}
467314
467519
  const data = {
467315
467520
  trigger,
467316
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
467521
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
467317
467522
  platform: process.platform,
467318
467523
  transcript,
467319
467524
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -480320,7 +480525,7 @@ function completeOnboarding() {
480320
480525
  saveGlobalConfig((current) => ({
480321
480526
  ...current,
480322
480527
  hasCompletedOnboarding: true,
480323
- lastOnboardingVersion: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
480528
+ lastOnboardingVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
480324
480529
  }));
480325
480530
  }
480326
480531
  function showDialog(root2, renderer) {
@@ -485737,6 +485942,79 @@ var init_setup4 = __esm(() => {
485737
485942
  COMPUTER_USE_SYSTEM_HINT = "Tienes control del escritorio (computer-use) v\xEDa las tools " + "`mcp__theus-computer-use__*`. Para operar la pantalla: toma primero un " + "`screenshot`, razona sobre lo que ves, y da las coordenadas de click/movimiento " + "en P\xCDXELES dentro de esa imagen. Tras cada acci\xF3n, vuelve a capturar para " + "verificar. Si una tool reporta falta de permisos macOS, dile al usuario que " + "otorgue Grabaci\xF3n de pantalla y Accesibilidad a su terminal.";
485738
485943
  });
485739
485944
 
485945
+ // services/arsenalBundled.ts
485946
+ var exports_arsenalBundled = {};
485947
+ __export(exports_arsenalBundled, {
485948
+ isArsenalAutoInstallEnabled: () => isArsenalAutoInstallEnabled,
485949
+ ensureBundledArsenalInstalled: () => ensureBundledArsenalInstalled
485950
+ });
485951
+ import { existsSync as existsSync26, readFileSync as readFileSync30 } from "fs";
485952
+ import { dirname as dirname75, join as join174 } from "path";
485953
+ import { fileURLToPath as fileURLToPath9 } from "url";
485954
+ function isArsenalAutoInstallEnabled() {
485955
+ return process.env.THEUS_NO_ARSENAL !== "1";
485956
+ }
485957
+ function findBundledArsenalDir() {
485958
+ const here = dirname75(fileURLToPath9(import.meta.url));
485959
+ for (const candidate of [
485960
+ join174(here, "vendor", "theus-arsenal"),
485961
+ join174(here, "..", "vendor", "theus-arsenal")
485962
+ ]) {
485963
+ if (existsSync26(join174(candidate, ".theus-plugin", "plugin.json"))) {
485964
+ return candidate;
485965
+ }
485966
+ }
485967
+ return null;
485968
+ }
485969
+ function readBundledVersion(bundledDir) {
485970
+ try {
485971
+ const manifest = JSON.parse(readFileSync30(join174(bundledDir, ".theus-plugin", "plugin.json"), "utf8"));
485972
+ return typeof manifest.version === "string" ? manifest.version : null;
485973
+ } catch {
485974
+ return null;
485975
+ }
485976
+ }
485977
+ function isNewerVersion(a2, b) {
485978
+ const pa = a2.split(".").map((n3) => Number.parseInt(n3, 10) || 0);
485979
+ const pb = b.split(".").map((n3) => Number.parseInt(n3, 10) || 0);
485980
+ for (let i3 = 0;i3 < 3; i3++) {
485981
+ if ((pa[i3] ?? 0) > (pb[i3] ?? 0))
485982
+ return true;
485983
+ if ((pa[i3] ?? 0) < (pb[i3] ?? 0))
485984
+ return false;
485985
+ }
485986
+ return false;
485987
+ }
485988
+ async function ensureBundledArsenalInstalled() {
485989
+ const bundledDir = findBundledArsenalDir();
485990
+ if (!bundledDir)
485991
+ return;
485992
+ const bundledVersion = readBundledVersion(bundledDir);
485993
+ if (!bundledVersion)
485994
+ return;
485995
+ const { loadInstalledPluginsV2: loadInstalledPluginsV22 } = await Promise.resolve().then(() => (init_installedPluginsManager(), exports_installedPluginsManager));
485996
+ const installed = loadInstalledPluginsV22().plugins?.[PLUGIN_ID];
485997
+ const current = Array.isArray(installed) ? installed.find((entry) => entry && typeof entry.version === "string") : undefined;
485998
+ if (current?.version && !isNewerVersion(bundledVersion, current.version)) {
485999
+ return;
486000
+ }
486001
+ const { loadKnownMarketplacesConfigSafe: loadKnownMarketplacesConfigSafe2, addMarketplaceSource: addMarketplaceSource2 } = await Promise.resolve().then(() => (init_marketplaceManager(), exports_marketplaceManager));
486002
+ const known = await loadKnownMarketplacesConfigSafe2();
486003
+ if (!known[MARKETPLACE_NAME]) {
486004
+ await addMarketplaceSource2({ source: "directory", path: bundledDir });
486005
+ }
486006
+ const { installPluginOp: installPluginOp2, updatePluginOp: updatePluginOp2 } = await Promise.resolve().then(() => (init_pluginOperations(), exports_pluginOperations));
486007
+ if (current?.version) {
486008
+ await updatePluginOp2(PLUGIN_ID, current.scope ?? "user");
486009
+ } else {
486010
+ await installPluginOp2(PLUGIN_ID, "user");
486011
+ }
486012
+ }
486013
+ var PLUGIN_NAME = "arsenal", MARKETPLACE_NAME = "theus", PLUGIN_ID;
486014
+ var init_arsenalBundled = __esm(() => {
486015
+ PLUGIN_ID = `${PLUGIN_NAME}@${MARKETPLACE_NAME}`;
486016
+ });
486017
+
485740
486018
  // services/SessionMemory/sessionMemory.ts
485741
486019
  import { writeFile as writeFile57 } from "fs/promises";
485742
486020
  function isSessionMemoryGateEnabled() {
@@ -485937,7 +486215,7 @@ var init_sessionMemory = __esm(() => {
485937
486215
  // utils/iTermBackup.ts
485938
486216
  import { copyFile as copyFile10, stat as stat51 } from "fs/promises";
485939
486217
  import { homedir as homedir50 } from "os";
485940
- import { join as join174 } from "path";
486218
+ import { join as join175 } from "path";
485941
486219
  function markITerm2SetupComplete() {
485942
486220
  saveGlobalConfig((current) => ({
485943
486221
  ...current,
@@ -485952,7 +486230,7 @@ function getIterm2RecoveryInfo() {
485952
486230
  };
485953
486231
  }
485954
486232
  function getITerm2PlistPath() {
485955
- return join174(homedir50(), "Library", "Preferences", "com.googlecode.iterm2.plist");
486233
+ return join175(homedir50(), "Library", "Preferences", "com.googlecode.iterm2.plist");
485956
486234
  }
485957
486235
  async function checkAndRestoreITerm2Backup() {
485958
486236
  const { inProgress, backupPath } = getIterm2RecoveryInfo();
@@ -487532,7 +487810,7 @@ var init_sessionUrl = __esm(() => {
487532
487810
 
487533
487811
  // utils/plugins/zipCacheAdapters.ts
487534
487812
  import { readFile as readFile57 } from "fs/promises";
487535
- import { join as join175 } from "path";
487813
+ import { join as join176 } from "path";
487536
487814
  async function readZipCacheKnownMarketplaces() {
487537
487815
  try {
487538
487816
  const content = await readFile57(getZipCacheKnownMarketplacesPath(), "utf-8");
@@ -487557,13 +487835,13 @@ async function saveMarketplaceJsonToZipCache(marketplaceName, installLocation) {
487557
487835
  const content = await readMarketplaceJsonContent(installLocation);
487558
487836
  if (content !== null) {
487559
487837
  const relPath = getMarketplaceJsonRelativePath(marketplaceName);
487560
- await atomicWriteToZipCache(join175(zipCachePath, relPath), content);
487838
+ await atomicWriteToZipCache(join176(zipCachePath, relPath), content);
487561
487839
  }
487562
487840
  }
487563
487841
  async function readMarketplaceJsonContent(dir) {
487564
487842
  const candidates = [
487565
- join175(dir, ".theus-plugin", "marketplace.json"),
487566
- join175(dir, "marketplace.json"),
487843
+ join176(dir, ".theus-plugin", "marketplace.json"),
487844
+ join176(dir, "marketplace.json"),
487567
487845
  dir
487568
487846
  ];
487569
487847
  for (const candidate of candidates) {
@@ -487699,7 +487977,7 @@ __export(exports_print, {
487699
487977
  canBatchWith: () => canBatchWith
487700
487978
  });
487701
487979
  import { readFile as readFile58, stat as stat52 } from "fs/promises";
487702
- import { dirname as dirname75 } from "path";
487980
+ import { dirname as dirname76 } from "path";
487703
487981
  import { cwd as cwd2 } from "process";
487704
487982
  import { randomUUID as randomUUID58 } from "crypto";
487705
487983
  function trackReceivedMessageUuid(uuid3) {
@@ -490187,7 +490465,7 @@ async function loadInitialMessages(setAppState, options2) {
490187
490465
  if (false) {}
490188
490466
  if (!options2.forkSession) {
490189
490467
  if (result.sessionId) {
490190
- switchSession(asSessionId(result.sessionId), result.fullPath ? dirname75(result.fullPath) : null);
490468
+ switchSession(asSessionId(result.sessionId), result.fullPath ? dirname76(result.fullPath) : null);
490191
490469
  if (persistSession) {
490192
490470
  await resetSessionFilePointer();
490193
490471
  }
@@ -490285,7 +490563,7 @@ async function loadInitialMessages(setAppState, options2) {
490285
490563
  }
490286
490564
  if (false) {}
490287
490565
  if (!options2.forkSession && result.sessionId) {
490288
- switchSession(asSessionId(result.sessionId), result.fullPath ? dirname75(result.fullPath) : null);
490566
+ switchSession(asSessionId(result.sessionId), result.fullPath ? dirname76(result.fullPath) : null);
490289
490567
  if (persistSession) {
490290
490568
  await resetSessionFilePointer();
490291
490569
  }
@@ -491135,7 +491413,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
491135
491413
  setCwd(cwd3);
491136
491414
  const server2 = new Server({
491137
491415
  name: "theus/tengu",
491138
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
491416
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
491139
491417
  }, {
491140
491418
  capabilities: {
491141
491419
  tools: {}
@@ -491267,14 +491545,14 @@ __export(exports_theusDesktop, {
491267
491545
  });
491268
491546
  import { readdir as readdir33, readFile as readFile59, stat as stat53 } from "fs/promises";
491269
491547
  import { homedir as homedir51 } from "os";
491270
- import { join as join176 } from "path";
491548
+ import { join as join177 } from "path";
491271
491549
  async function getTheusDesktopConfigPath() {
491272
491550
  const platform7 = getPlatform();
491273
491551
  if (!SUPPORTED_PLATFORMS.includes(platform7)) {
491274
491552
  throw new Error(`Unsupported platform: ${platform7} - Theus Desktop integration only works on macOS and WSL.`);
491275
491553
  }
491276
491554
  if (platform7 === "macos") {
491277
- return join176(homedir51(), "Library", "Application Support", "Theus", "theus_desktop_config.json");
491555
+ return join177(homedir51(), "Library", "Application Support", "Theus", "theus_desktop_config.json");
491278
491556
  }
491279
491557
  const windowsHome = process.env.USERPROFILE ? process.env.USERPROFILE.replace(/\\/g, "/") : null;
491280
491558
  if (windowsHome) {
@@ -491293,7 +491571,7 @@ async function getTheusDesktopConfigPath() {
491293
491571
  if (user.name === "Public" || user.name === "Default" || user.name === "Default User" || user.name === "All Users") {
491294
491572
  continue;
491295
491573
  }
491296
- const potentialConfigPath = join176(usersDir, user.name, "AppData", "Roaming", "Theus", "theus_desktop_config.json");
491574
+ const potentialConfigPath = join177(usersDir, user.name, "AppData", "Roaming", "Theus", "theus_desktop_config.json");
491297
491575
  try {
491298
491576
  await stat53(potentialConfigPath);
491299
491577
  return potentialConfigPath;
@@ -491689,7 +491967,7 @@ __export(exports_plugins, {
491689
491967
  VALID_UPDATE_SCOPES: () => VALID_UPDATE_SCOPES,
491690
491968
  VALID_INSTALLABLE_SCOPES: () => VALID_INSTALLABLE_SCOPES
491691
491969
  });
491692
- import { basename as basename68, dirname as dirname76 } from "path";
491970
+ import { basename as basename68, dirname as dirname77 } from "path";
491693
491971
  function handleMarketplaceError(error40, action2) {
491694
491972
  logError2(error40);
491695
491973
  cliError(`${figures_default.cross} Failed to ${action2}: ${errorMessage(error40)}`);
@@ -491722,9 +492000,9 @@ async function pluginValidateHandler(manifestPath, options2) {
491722
492000
  printValidationResult(result);
491723
492001
  let contentResults = [];
491724
492002
  if (result.fileType === "plugin") {
491725
- const manifestDir = dirname76(result.filePath);
492003
+ const manifestDir = dirname77(result.filePath);
491726
492004
  if (basename68(manifestDir) === ".theus-plugin") {
491727
- contentResults = await validatePluginContents(dirname76(manifestDir));
492005
+ contentResults = await validatePluginContents(dirname77(manifestDir));
491728
492006
  for (const r of contentResults) {
491729
492007
  console.log(`Validating ${r.fileType}: ${r.filePath}
491730
492008
  `);
@@ -492202,12 +492480,12 @@ __export(exports_install, {
492202
492480
  install: () => install
492203
492481
  });
492204
492482
  import { homedir as homedir52 } from "os";
492205
- import { join as join177 } from "path";
492483
+ import { join as join178 } from "path";
492206
492484
  function getInstallationPath2() {
492207
492485
  const isWindows2 = env3.platform === "win32";
492208
492486
  const homeDir = homedir52();
492209
492487
  if (isWindows2) {
492210
- const windowsPath = join177(homeDir, ".local", "bin", "theus.exe");
492488
+ const windowsPath = join178(homeDir, ".local", "bin", "theus.exe");
492211
492489
  return windowsPath.replace(/\//g, "\\");
492212
492490
  }
492213
492491
  return "~/.local/bin/theus";
@@ -492577,7 +492855,7 @@ async function setupTokenHandler(root2) {
492577
492855
  gap: 1,
492578
492856
  children: [
492579
492857
  /* @__PURE__ */ jsx_runtime493.jsx(TheusBanner, {
492580
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
492858
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
492581
492859
  }),
492582
492860
  showAuthWarning && /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
492583
492861
  flexDirection: "column",
@@ -492747,7 +493025,7 @@ __export(exports_main2, {
492747
493025
  startDeferredPrefetches: () => startDeferredPrefetches,
492748
493026
  main: () => main
492749
493027
  });
492750
- import { readFileSync as readFileSync30 } from "fs";
493028
+ import { readFileSync as readFileSync31 } from "fs";
492751
493029
  import { resolve as resolve52 } from "path";
492752
493030
  function logManagedSettings() {
492753
493031
  try {
@@ -492903,7 +493181,7 @@ function loadSettingsFromFlag(settingsFile) {
492903
493181
  resolvedPath: resolvedSettingsPath
492904
493182
  } = safeResolvePath(getFsImplementation(), settingsFile);
492905
493183
  try {
492906
- readFileSync30(resolvedSettingsPath, "utf8");
493184
+ readFileSync31(resolvedSettingsPath, "utf8");
492907
493185
  } catch (e) {
492908
493186
  if (isENOENT(e)) {
492909
493187
  process.stderr.write(source_default.red(`Error: Settings file not found: ${resolvedSettingsPath}
@@ -493336,7 +493614,7 @@ ${getTmuxInstallInstructions2()}
493336
493614
  }
493337
493615
  try {
493338
493616
  const filePath = resolve52(options2.systemPromptFile);
493339
- systemPrompt = readFileSync30(filePath, "utf8");
493617
+ systemPrompt = readFileSync31(filePath, "utf8");
493340
493618
  } catch (error40) {
493341
493619
  const code = getErrnoCode(error40);
493342
493620
  if (code === "ENOENT") {
@@ -493358,7 +493636,7 @@ ${getTmuxInstallInstructions2()}
493358
493636
  }
493359
493637
  try {
493360
493638
  const filePath = resolve52(options2.appendSystemPromptFile);
493361
- appendSystemPrompt = readFileSync30(filePath, "utf8");
493639
+ appendSystemPrompt = readFileSync31(filePath, "utf8");
493362
493640
  } catch (error40) {
493363
493641
  const code = getErrnoCode(error40);
493364
493642
  if (code === "ENOENT") {
@@ -493595,6 +493873,19 @@ ${naupaHint}` : naupaHint;
493595
493873
  logForDebugging(`[Theus \xD1aupa] Setup failed: ${errorMessage(error40)}`);
493596
493874
  }
493597
493875
  }
493876
+ if (!getIsNonInteractiveSession()) {
493877
+ try {
493878
+ const {
493879
+ isArsenalAutoInstallEnabled: isArsenalAutoInstallEnabled2,
493880
+ ensureBundledArsenalInstalled: ensureBundledArsenalInstalled2
493881
+ } = await Promise.resolve().then(() => (init_arsenalBundled(), exports_arsenalBundled));
493882
+ if (isArsenalAutoInstallEnabled2()) {
493883
+ await ensureBundledArsenalInstalled2();
493884
+ }
493885
+ } catch (error40) {
493886
+ logForDebugging(`[Theus Arsenal] Auto-instalaci\xF3n fall\xF3: ${errorMessage(error40)}`);
493887
+ }
493888
+ }
493598
493889
  setAdditionalDirectoriesForTheusMd(addDir2);
493599
493890
  let devChannels;
493600
493891
  if (false) {}
@@ -494046,7 +494337,7 @@ ${assistantAddendum}` : assistantAddendum;
494046
494337
  }
494047
494338
  }
494048
494339
  logForDiagnosticsNoPII("info", "started", {
494049
- version: { VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
494340
+ version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
494050
494341
  is_native_binary: isInBundledMode()
494051
494342
  });
494052
494343
  registerCleanup(async () => {
@@ -494914,7 +495205,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
494914
495205
  pendingHookMessages
494915
495206
  }, renderAndRun);
494916
495207
  }
494917
- }).version(`${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`, "-v, --version", "Muestra el n\xFAmero de versi\xF3n");
495208
+ }).version(`${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`, "-v, --version", "Muestra el n\xFAmero de versi\xF3n");
494918
495209
  program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
494919
495210
  program2.option("--tmux", "Crea una sesi\xF3n de tmux para el worktree (requiere --worktree). Usa paneles nativos de iTerm2 cuando est\xE1n disponibles; usa --tmux=classic para tmux tradicional.");
494920
495211
  if (canUserConfigureAdvisor()) {
@@ -495466,7 +495757,7 @@ if (false) {}
495466
495757
  async function main2() {
495467
495758
  const args = process.argv.slice(2);
495468
495759
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
495469
- console.log(`${{ VERSION: "0.2.36", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`);
495760
+ console.log(`${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`);
495470
495761
  return;
495471
495762
  }
495472
495763
  const {