theus-cli 0.2.36 → 0.2.38
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.
- package/cli.js +510 -149
- package/package.json +6 -4
- package/vendor/theus-arsenal/.theus-plugin/marketplace.json +25 -0
- package/vendor/theus-arsenal/.theus-plugin/plugin.json +20 -0
- package/vendor/theus-arsenal/LICENSE +26 -0
- package/vendor/theus-arsenal/README.md +41 -0
- package/vendor/theus-arsenal/THIRD_PARTY.md +80 -0
- package/vendor/theus-arsenal/agents/actualizador-docs.md +123 -0
- package/vendor/theus-arsenal/agents/analista-comentarios.md +53 -0
- package/vendor/theus-arsenal/agents/analista-conversaciones.md +60 -0
- package/vendor/theus-arsenal/agents/analista-tests-pr.md +53 -0
- package/vendor/theus-arsenal/agents/analista-tipos.md +49 -0
- package/vendor/theus-arsenal/agents/arquitecto-accesibilidad.md +148 -0
- package/vendor/theus-arsenal/agents/arquitecto-codigo.md +79 -0
- package/vendor/theus-arsenal/agents/arquitecto-homelab.md +90 -0
- package/vendor/theus-arsenal/agents/arquitecto-redes.md +116 -0
- package/vendor/theus-arsenal/agents/arquitecto-sistemas.md +219 -0
- package/vendor/theus-arsenal/agents/bifurcador-opensource.md +206 -0
- package/vendor/theus-arsenal/agents/cazador-fallos-silenciosos.md +58 -0
- package/vendor/theus-arsenal/agents/consultor-documentacion.md +76 -0
- package/vendor/theus-arsenal/agents/diagnosticador-redes.md +135 -0
- package/vendor/theus-arsenal/agents/ejecutor-e2e.md +96 -0
- package/vendor/theus-arsenal/agents/empaquetador-opensource.md +257 -0
- package/vendor/theus-arsenal/agents/escaner-secretos.md +196 -0
- package/vendor/theus-arsenal/agents/especialista-seo.md +70 -0
- package/vendor/theus-arsenal/agents/estratega-marketing.md +158 -0
- package/vendor/theus-arsenal/agents/evaluador-agentes.md +214 -0
- package/vendor/theus-arsenal/agents/evaluador-harness.md +217 -0
- package/vendor/theus-arsenal/agents/explorador-codigo.md +79 -0
- package/vendor/theus-arsenal/agents/extractor-specs.md +214 -0
- package/vendor/theus-arsenal/agents/generador-harness.md +139 -0
- package/vendor/theus-arsenal/agents/guia-tdd.md +99 -0
- package/vendor/theus-arsenal/agents/jefe-de-gabinete.md +162 -0
- package/vendor/theus-arsenal/agents/limpiador-refactors.md +93 -0
- package/vendor/theus-arsenal/agents/optimizador-rendimiento.md +454 -0
- package/vendor/theus-arsenal/agents/planificador-harness.md +107 -0
- package/vendor/theus-arsenal/agents/planificador.md +221 -0
- package/vendor/theus-arsenal/agents/resolutor-apps-harmonyos.md +181 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-cpp.md +98 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-dart.md +209 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-django.md +253 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-go.md +102 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-java.md +274 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-kotlin.md +128 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-pytorch.md +128 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-react.md +214 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-rust.md +156 -0
- package/vendor/theus-arsenal/agents/resolutor-builds-swift.md +169 -0
- package/vendor/theus-arsenal/agents/resolutor-builds.md +122 -0
- package/vendor/theus-arsenal/agents/revisor-bd.md +97 -0
- package/vendor/theus-arsenal/agents/revisor-codigo.md +291 -0
- package/vendor/theus-arsenal/agents/revisor-config-red.md +116 -0
- package/vendor/theus-arsenal/agents/revisor-cpp.md +80 -0
- package/vendor/theus-arsenal/agents/revisor-csharp.md +109 -0
- package/vendor/theus-arsenal/agents/revisor-django.md +168 -0
- package/vendor/theus-arsenal/agents/revisor-fastapi.md +82 -0
- package/vendor/theus-arsenal/agents/revisor-flutter.md +251 -0
- package/vendor/theus-arsenal/agents/revisor-go.md +84 -0
- package/vendor/theus-arsenal/agents/revisor-java.md +192 -0
- package/vendor/theus-arsenal/agents/revisor-kotlin.md +171 -0
- package/vendor/theus-arsenal/agents/revisor-ml.md +159 -0
- package/vendor/theus-arsenal/agents/revisor-php.md +108 -0
- package/vendor/theus-arsenal/agents/revisor-python.md +106 -0
- package/vendor/theus-arsenal/agents/revisor-react.md +166 -0
- package/vendor/theus-arsenal/agents/revisor-rust.md +102 -0
- package/vendor/theus-arsenal/agents/revisor-seguridad.md +116 -0
- package/vendor/theus-arsenal/agents/revisor-software-clinico.md +95 -0
- package/vendor/theus-arsenal/agents/revisor-swift.md +115 -0
- package/vendor/theus-arsenal/agents/revisor-typescript.md +123 -0
- package/vendor/theus-arsenal/agents/revisor-vue.md +205 -0
- package/vendor/theus-arsenal/agents/simplificador-codigo.md +55 -0
- package/vendor/theus-arsenal/commands/actualizar-docs.md +88 -0
- package/vendor/theus-arsenal/commands/actualizar-mapas-codigo.md +78 -0
- package/vendor/theus-arsenal/commands/aprender-evaluar.md +109 -0
- package/vendor/theus-arsenal/commands/aprender.md +74 -0
- package/vendor/theus-arsenal/commands/arreglar-build.md +66 -0
- package/vendor/theus-arsenal/commands/bucle-multiperspectiva.md +153 -0
- package/vendor/theus-arsenal/commands/build-cpp.md +173 -0
- package/vendor/theus-arsenal/commands/build-flutter.md +164 -0
- package/vendor/theus-arsenal/commands/build-go.md +183 -0
- package/vendor/theus-arsenal/commands/build-gradle.md +75 -0
- package/vendor/theus-arsenal/commands/build-kotlin.md +176 -0
- package/vendor/theus-arsenal/commands/build-react.md +187 -0
- package/vendor/theus-arsenal/commands/build-rust.md +187 -0
- package/vendor/theus-arsenal/commands/campana-marketing.md +125 -0
- package/vendor/theus-arsenal/commands/checkpoint.md +78 -0
- package/vendor/theus-arsenal/commands/cobertura-tests.md +73 -0
- package/vendor/theus-arsenal/commands/configurar-gestor-paquetes.md +86 -0
- package/vendor/theus-arsenal/commands/consulta.md +164 -0
- package/vendor/theus-arsenal/commands/control-calidad.md +50 -0
- package/vendor/theus-arsenal/commands/crear-skill.md +77 -0
- package/vendor/theus-arsenal/commands/enrutar-modelo.md +30 -0
- package/vendor/theus-arsenal/commands/epica-desbloquear.md +17 -0
- package/vendor/theus-arsenal/commands/epica-descomponer.md +22 -0
- package/vendor/theus-arsenal/commands/epica-publicar.md +21 -0
- package/vendor/theus-arsenal/commands/epica-reclamar.md +25 -0
- package/vendor/theus-arsenal/commands/epica-revisar.md +22 -0
- package/vendor/theus-arsenal/commands/epica-sincronizar.md +21 -0
- package/vendor/theus-arsenal/commands/epica-validar.md +21 -0
- package/vendor/theus-arsenal/commands/evolucionar.md +176 -0
- package/vendor/theus-arsenal/commands/funcionalidad.md +49 -0
- package/vendor/theus-arsenal/commands/guardar-sesion.md +278 -0
- package/vendor/theus-arsenal/commands/harness-build.md +111 -0
- package/vendor/theus-arsenal/commands/harness-diseno.md +46 -0
- package/vendor/theus-arsenal/commands/informe-costos.md +90 -0
- package/vendor/theus-arsenal/commands/iniciar-bucle.md +36 -0
- package/vendor/theus-arsenal/commands/instintos-estado.md +53 -0
- package/vendor/theus-arsenal/commands/instintos-exportar.md +69 -0
- package/vendor/theus-arsenal/commands/instintos-importar.md +120 -0
- package/vendor/theus-arsenal/commands/lienzo-planes.md +48 -0
- package/vendor/theus-arsenal/commands/limpiar-refactor.md +84 -0
- package/vendor/theus-arsenal/commands/modo-seguro.md +96 -0
- package/vendor/theus-arsenal/commands/orq-agregar-funcionalidad.md +36 -0
- package/vendor/theus-arsenal/commands/orq-cambiar-funcionalidad.md +38 -0
- package/vendor/theus-arsenal/commands/orq-construir-mvp.md +36 -0
- package/vendor/theus-arsenal/commands/orq-corregir-defecto.md +40 -0
- package/vendor/theus-arsenal/commands/orq-refinar-codigo.md +44 -0
- package/vendor/theus-arsenal/commands/orq-revisar.md +135 -0
- package/vendor/theus-arsenal/commands/plan-prd.md +160 -0
- package/vendor/theus-arsenal/commands/plan.md +198 -0
- package/vendor/theus-arsenal/commands/podar.md +31 -0
- package/vendor/theus-arsenal/commands/pr.md +181 -0
- package/vendor/theus-arsenal/commands/promover.md +41 -0
- package/vendor/theus-arsenal/commands/proyectos.md +33 -0
- package/vendor/theus-arsenal/commands/prp-commit.md +112 -0
- package/vendor/theus-arsenal/commands/prp-implementar.md +385 -0
- package/vendor/theus-arsenal/commands/prp-planificar.md +501 -0
- package/vendor/theus-arsenal/commands/reanudar-sesion.md +160 -0
- package/vendor/theus-arsenal/commands/revisar-codigo.md +289 -0
- package/vendor/theus-arsenal/commands/revisar-cpp.md +132 -0
- package/vendor/theus-arsenal/commands/revisar-fastapi.md +39 -0
- package/vendor/theus-arsenal/commands/revisar-flutter.md +115 -0
- package/vendor/theus-arsenal/commands/revisar-go.md +148 -0
- package/vendor/theus-arsenal/commands/revisar-kotlin.md +140 -0
- package/vendor/theus-arsenal/commands/revisar-pr.md +37 -0
- package/vendor/theus-arsenal/commands/revisar-python.md +297 -0
- package/vendor/theus-arsenal/commands/revisar-react.md +170 -0
- package/vendor/theus-arsenal/commands/revisar-rust.md +142 -0
- package/vendor/theus-arsenal/commands/revisar-vue.md +174 -0
- package/vendor/theus-arsenal/commands/salud-skills.md +52 -0
- package/vendor/theus-arsenal/commands/sesiones.md +345 -0
- package/vendor/theus-arsenal/commands/test-cpp.md +252 -0
- package/vendor/theus-arsenal/commands/test-flutter.md +143 -0
- package/vendor/theus-arsenal/commands/test-go.md +268 -0
- package/vendor/theus-arsenal/commands/test-kotlin.md +312 -0
- package/vendor/theus-arsenal/commands/test-react.md +265 -0
- package/vendor/theus-arsenal/commands/test-rust.md +309 -0
- package/vendor/theus-arsenal/commands/vigilancia-canary.md +43 -0
- package/vendor/theus-arsenal/hooks/hooks.json +274 -0
- package/vendor/theus-arsenal/rules/angular/coding-style.md +182 -0
- package/vendor/theus-arsenal/rules/angular/hooks.md +25 -0
- package/vendor/theus-arsenal/rules/angular/patterns.md +249 -0
- package/vendor/theus-arsenal/rules/angular/security.md +87 -0
- package/vendor/theus-arsenal/rules/angular/testing.md +164 -0
- package/vendor/theus-arsenal/rules/arkts/coding-style.md +153 -0
- package/vendor/theus-arsenal/rules/arkts/hooks.md +80 -0
- package/vendor/theus-arsenal/rules/arkts/patterns.md +236 -0
- package/vendor/theus-arsenal/rules/arkts/security.md +141 -0
- package/vendor/theus-arsenal/rules/arkts/testing.md +126 -0
- package/vendor/theus-arsenal/rules/common/agents.md +49 -0
- package/vendor/theus-arsenal/rules/common/code-review.md +123 -0
- package/vendor/theus-arsenal/rules/common/coding-style.md +90 -0
- package/vendor/theus-arsenal/rules/common/development-workflow.md +44 -0
- package/vendor/theus-arsenal/rules/common/git-workflow.md +24 -0
- package/vendor/theus-arsenal/rules/common/hooks.md +32 -0
- package/vendor/theus-arsenal/rules/common/patterns.md +31 -0
- package/vendor/theus-arsenal/rules/common/performance.md +53 -0
- package/vendor/theus-arsenal/rules/common/security.md +29 -0
- package/vendor/theus-arsenal/rules/common/testing.md +57 -0
- package/vendor/theus-arsenal/rules/cpp/coding-style.md +44 -0
- package/vendor/theus-arsenal/rules/cpp/hooks.md +39 -0
- package/vendor/theus-arsenal/rules/cpp/patterns.md +51 -0
- package/vendor/theus-arsenal/rules/cpp/security.md +51 -0
- package/vendor/theus-arsenal/rules/cpp/testing.md +44 -0
- package/vendor/theus-arsenal/rules/csharp/coding-style.md +72 -0
- package/vendor/theus-arsenal/rules/csharp/hooks.md +25 -0
- package/vendor/theus-arsenal/rules/csharp/patterns.md +50 -0
- package/vendor/theus-arsenal/rules/csharp/security.md +58 -0
- package/vendor/theus-arsenal/rules/csharp/testing.md +50 -0
- package/vendor/theus-arsenal/rules/dart/coding-style.md +159 -0
- package/vendor/theus-arsenal/rules/dart/hooks.md +68 -0
- package/vendor/theus-arsenal/rules/dart/patterns.md +261 -0
- package/vendor/theus-arsenal/rules/dart/security.md +135 -0
- package/vendor/theus-arsenal/rules/dart/testing.md +215 -0
- package/vendor/theus-arsenal/rules/fsharp/coding-style.md +112 -0
- package/vendor/theus-arsenal/rules/fsharp/hooks.md +26 -0
- package/vendor/theus-arsenal/rules/fsharp/patterns.md +111 -0
- package/vendor/theus-arsenal/rules/fsharp/security.md +76 -0
- package/vendor/theus-arsenal/rules/fsharp/testing.md +62 -0
- package/vendor/theus-arsenal/rules/golang/coding-style.md +32 -0
- package/vendor/theus-arsenal/rules/golang/hooks.md +17 -0
- package/vendor/theus-arsenal/rules/golang/patterns.md +45 -0
- package/vendor/theus-arsenal/rules/golang/security.md +34 -0
- package/vendor/theus-arsenal/rules/golang/testing.md +31 -0
- package/vendor/theus-arsenal/rules/java/coding-style.md +114 -0
- package/vendor/theus-arsenal/rules/java/hooks.md +18 -0
- package/vendor/theus-arsenal/rules/java/patterns.md +147 -0
- package/vendor/theus-arsenal/rules/java/security.md +101 -0
- package/vendor/theus-arsenal/rules/java/testing.md +133 -0
- package/vendor/theus-arsenal/rules/kotlin/coding-style.md +86 -0
- package/vendor/theus-arsenal/rules/kotlin/hooks.md +17 -0
- package/vendor/theus-arsenal/rules/kotlin/patterns.md +146 -0
- package/vendor/theus-arsenal/rules/kotlin/security.md +82 -0
- package/vendor/theus-arsenal/rules/kotlin/testing.md +128 -0
- package/vendor/theus-arsenal/rules/nuxt/coding-style.md +47 -0
- package/vendor/theus-arsenal/rules/nuxt/hooks.md +39 -0
- package/vendor/theus-arsenal/rules/nuxt/patterns.md +54 -0
- package/vendor/theus-arsenal/rules/nuxt/security.md +48 -0
- package/vendor/theus-arsenal/rules/nuxt/testing.md +49 -0
- package/vendor/theus-arsenal/rules/php/coding-style.md +40 -0
- package/vendor/theus-arsenal/rules/php/hooks.md +24 -0
- package/vendor/theus-arsenal/rules/php/patterns.md +33 -0
- package/vendor/theus-arsenal/rules/php/security.md +37 -0
- package/vendor/theus-arsenal/rules/php/testing.md +38 -0
- package/vendor/theus-arsenal/rules/python/coding-style.md +42 -0
- package/vendor/theus-arsenal/rules/python/fastapi.md +58 -0
- package/vendor/theus-arsenal/rules/python/hooks.md +19 -0
- package/vendor/theus-arsenal/rules/python/patterns.md +39 -0
- package/vendor/theus-arsenal/rules/python/security.md +30 -0
- package/vendor/theus-arsenal/rules/python/testing.md +38 -0
- package/vendor/theus-arsenal/rules/react/coding-style.md +109 -0
- package/vendor/theus-arsenal/rules/react/hooks.md +187 -0
- package/vendor/theus-arsenal/rules/react/patterns.md +194 -0
- package/vendor/theus-arsenal/rules/react/security.md +180 -0
- package/vendor/theus-arsenal/rules/react/testing.md +208 -0
- package/vendor/theus-arsenal/rules/react-native/accessibility.md +55 -0
- package/vendor/theus-arsenal/rules/react-native/coding-style.md +71 -0
- package/vendor/theus-arsenal/rules/react-native/hooks.md +28 -0
- package/vendor/theus-arsenal/rules/react-native/patterns.md +88 -0
- package/vendor/theus-arsenal/rules/react-native/performance.md +45 -0
- package/vendor/theus-arsenal/rules/react-native/production-readiness.md +51 -0
- package/vendor/theus-arsenal/rules/react-native/security.md +43 -0
- package/vendor/theus-arsenal/rules/react-native/testing.md +52 -0
- package/vendor/theus-arsenal/rules/ruby/coding-style.md +46 -0
- package/vendor/theus-arsenal/rules/ruby/hooks.md +37 -0
- package/vendor/theus-arsenal/rules/ruby/patterns.md +44 -0
- package/vendor/theus-arsenal/rules/ruby/security.md +51 -0
- package/vendor/theus-arsenal/rules/ruby/testing.md +51 -0
- package/vendor/theus-arsenal/rules/rust/coding-style.md +151 -0
- package/vendor/theus-arsenal/rules/rust/hooks.md +16 -0
- package/vendor/theus-arsenal/rules/rust/patterns.md +168 -0
- package/vendor/theus-arsenal/rules/rust/security.md +141 -0
- package/vendor/theus-arsenal/rules/rust/testing.md +154 -0
- package/vendor/theus-arsenal/rules/swift/coding-style.md +47 -0
- package/vendor/theus-arsenal/rules/swift/hooks.md +20 -0
- package/vendor/theus-arsenal/rules/swift/patterns.md +66 -0
- package/vendor/theus-arsenal/rules/swift/security.md +33 -0
- package/vendor/theus-arsenal/rules/swift/testing.md +45 -0
- package/vendor/theus-arsenal/rules/typescript/coding-style.md +199 -0
- package/vendor/theus-arsenal/rules/typescript/hooks.md +22 -0
- package/vendor/theus-arsenal/rules/typescript/patterns.md +52 -0
- package/vendor/theus-arsenal/rules/typescript/security.md +28 -0
- package/vendor/theus-arsenal/rules/typescript/testing.md +18 -0
- package/vendor/theus-arsenal/rules/vue/coding-style.md +54 -0
- package/vendor/theus-arsenal/rules/vue/hooks.md +45 -0
- package/vendor/theus-arsenal/rules/vue/patterns.md +56 -0
- package/vendor/theus-arsenal/rules/vue/security.md +46 -0
- package/vendor/theus-arsenal/rules/vue/testing.md +53 -0
- package/vendor/theus-arsenal/rules/web/coding-style.md +108 -0
- package/vendor/theus-arsenal/rules/web/design-quality.md +75 -0
- package/vendor/theus-arsenal/rules/web/hooks.md +141 -0
- package/vendor/theus-arsenal/rules/web/patterns.md +91 -0
- package/vendor/theus-arsenal/rules/web/performance.md +76 -0
- package/vendor/theus-arsenal/rules/web/security.md +69 -0
- package/vendor/theus-arsenal/rules/web/testing.md +67 -0
- package/vendor/theus-arsenal/scripts/hooks/bash-hook-dispatcher.js +192 -0
- package/vendor/theus-arsenal/scripts/hooks/block-no-verify.js +556 -0
- package/vendor/theus-arsenal/scripts/hooks/check-console-log.js +92 -0
- package/vendor/theus-arsenal/scripts/hooks/check-hook-enabled.js +16 -0
- package/vendor/theus-arsenal/scripts/hooks/config-protection.js +171 -0
- package/vendor/theus-arsenal/scripts/hooks/design-quality-check.js +132 -0
- package/vendor/theus-arsenal/scripts/hooks/doc-file-warning.js +110 -0
- package/vendor/theus-arsenal/scripts/hooks/modo-seguro.js +158 -0
- package/vendor/theus-arsenal/scripts/hooks/notificacion-escritorio.js +208 -0
- package/vendor/theus-arsenal/scripts/hooks/plugin-hook-bootstrap.js +280 -0
- package/vendor/theus-arsenal/scripts/hooks/post-bash-command-log.js +87 -0
- package/vendor/theus-arsenal/scripts/hooks/post-bash-dispatcher.js +24 -0
- package/vendor/theus-arsenal/scripts/hooks/post-bash-pr-created.js +60 -0
- package/vendor/theus-arsenal/scripts/hooks/post-edit-accumulator.js +94 -0
- package/vendor/theus-arsenal/scripts/hooks/post-edit-console-warn.js +54 -0
- package/vendor/theus-arsenal/scripts/hooks/post-edit-format.js +110 -0
- package/vendor/theus-arsenal/scripts/hooks/post-edit-typecheck.js +98 -0
- package/vendor/theus-arsenal/scripts/hooks/pre-bash-commit-quality.js +447 -0
- package/vendor/theus-arsenal/scripts/hooks/pre-bash-dev-server-block.js +232 -0
- package/vendor/theus-arsenal/scripts/hooks/pre-bash-dispatcher.js +27 -0
- package/vendor/theus-arsenal/scripts/hooks/pre-compact.js +101 -0
- package/vendor/theus-arsenal/scripts/hooks/pretooluse-visible-output.js +49 -0
- package/vendor/theus-arsenal/scripts/hooks/quality-gate.js +168 -0
- package/vendor/theus-arsenal/scripts/hooks/run-with-flags.js +271 -0
- package/vendor/theus-arsenal/scripts/hooks/salud-mcp.js +749 -0
- package/vendor/theus-arsenal/scripts/hooks/seguimiento-costos.js +161 -0
- package/vendor/theus-arsenal/scripts/hooks/session-end.js +340 -0
- package/vendor/theus-arsenal/scripts/hooks/session-start.js +906 -0
- package/vendor/theus-arsenal/scripts/hooks/stop-format-typecheck.js +263 -0
- package/vendor/theus-arsenal/scripts/hooks/suggest-compact.js +286 -0
- package/vendor/theus-arsenal/scripts/hooks/theus-context-monitor.js +289 -0
- package/vendor/theus-arsenal/scripts/hooks/verificacion-factual.js +1278 -0
- package/vendor/theus-arsenal/scripts/lib/agent-data-home.js +96 -0
- package/vendor/theus-arsenal/scripts/lib/cost-estimate.js +66 -0
- package/vendor/theus-arsenal/scripts/lib/hook-flags.js +79 -0
- package/vendor/theus-arsenal/scripts/lib/llm-summary.js +185 -0
- package/vendor/theus-arsenal/scripts/lib/loopback-guard.js +54 -0
- package/vendor/theus-arsenal/scripts/lib/observer-sessions.js +237 -0
- package/vendor/theus-arsenal/scripts/lib/package-manager.d.ts +120 -0
- package/vendor/theus-arsenal/scripts/lib/package-manager.js +434 -0
- package/vendor/theus-arsenal/scripts/lib/path-safety.js +86 -0
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/markdown.js +285 -0
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/sdk.js +238 -0
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/server.js +534 -0
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/sessions.js +274 -0
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/ui.js +546 -0
- package/vendor/theus-arsenal/scripts/lib/project-detect.js +451 -0
- package/vendor/theus-arsenal/scripts/lib/resolve-formatter.js +193 -0
- package/vendor/theus-arsenal/scripts/lib/resolve-theus-root.js +101 -0
- package/vendor/theus-arsenal/scripts/lib/session-aliases.d.ts +138 -0
- package/vendor/theus-arsenal/scripts/lib/session-aliases.js +483 -0
- package/vendor/theus-arsenal/scripts/lib/session-bridge.js +155 -0
- package/vendor/theus-arsenal/scripts/lib/session-manager.d.ts +137 -0
- package/vendor/theus-arsenal/scripts/lib/session-manager.js +555 -0
- package/vendor/theus-arsenal/scripts/lib/shell-split.js +86 -0
- package/vendor/theus-arsenal/scripts/lib/shell-substitution.js +501 -0
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/dashboard.js +414 -0
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/health.js +285 -0
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/index.js +22 -0
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/provenance.js +200 -0
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/tracker.js +157 -0
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/versioning.js +246 -0
- package/vendor/theus-arsenal/scripts/lib/transcript-context.js +232 -0
- package/vendor/theus-arsenal/scripts/lib/utils.d.ts +205 -0
- package/vendor/theus-arsenal/scripts/lib/utils.js +658 -0
- package/vendor/theus-arsenal/scripts/plan-canvas.js +341 -0
- package/vendor/theus-arsenal/scripts/setup-package-manager.js +46 -0
- package/vendor/theus-arsenal/scripts/skills-health.js +143 -0
- package/vendor/theus-arsenal/skills/a11y-frontend/SKILL.md +444 -0
- package/vendor/theus-arsenal/skills/accesibilidad/SKILL.md +144 -0
- package/vendor/theus-arsenal/skills/acelerador-throughput-datos/SKILL.md +72 -0
- package/vendor/theus-arsenal/skills/agente-scraper-datos/SKILL.md +771 -0
- package/vendor/theus-arsenal/skills/analisis-plataformas-competencia/SKILL.md +137 -0
- package/vendor/theus-arsenal/skills/api-x/SKILL.md +233 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/SKILL.md +335 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/observer-loop.sh +374 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/observer.md +188 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/session-guardian.sh +153 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/start-observer.sh +253 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/config.json +8 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/hooks/observe.sh +594 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/detect-project.sh +325 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/instinct-cli.py +1918 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/lib/arsenal-dir.sh +23 -0
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/test_parse_instinct.py +1420 -0
- package/vendor/theus-arsenal/skills/arquitectura-hexagonal/SKILL.md +275 -0
- package/vendor/theus-arsenal/skills/arquitectura-limpia-android/SKILL.md +340 -0
- package/vendor/theus-arsenal/skills/arquitectura-pipelines-recomendacion/SKILL.md +112 -0
- package/vendor/theus-arsenal/skills/atlas-datos-prediccion/SKILL.md +53 -0
- package/vendor/theus-arsenal/skills/auditoria-arquitectura-agentes/SKILL.md +257 -0
- package/vendor/theus-arsenal/skills/auditoria-produccion/SKILL.md +180 -0
- package/vendor/theus-arsenal/skills/auditoria-rutas-clic/SKILL.md +243 -0
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/SKILL.md +180 -0
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/examples/high-score-example.md +89 -0
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/examples/low-score-example.md +87 -0
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/references/evaluation-criteria.md +71 -0
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/references/hook-integration.md +90 -0
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/scripts/evaluate.py +409 -0
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/templates/evaluation-report.md +86 -0
- package/vendor/theus-arsenal/skills/automatizacion-ssh-netmiko/SKILL.md +176 -0
- package/vendor/theus-arsenal/skills/base-datos-pubmed/SKILL.md +174 -0
- package/vendor/theus-arsenal/skills/base-datos-uspto/SKILL.md +173 -0
- package/vendor/theus-arsenal/skills/benchmark/SKILL.md +92 -0
- package/vendor/theus-arsenal/skills/bitacora-crecimiento/SKILL.md +120 -0
- package/vendor/theus-arsenal/skills/bucle-verificacion/SKILL.md +125 -0
- package/vendor/theus-arsenal/skills/buscar-primero/SKILL.md +184 -0
- package/vendor/theus-arsenal/skills/busqueda-exa/SKILL.md +111 -0
- package/vendor/theus-arsenal/skills/cache-por-hash/SKILL.md +160 -0
- package/vendor/theus-arsenal/skills/campana-marketing/SKILL.md +118 -0
- package/vendor/theus-arsenal/skills/capacidad-producto/SKILL.md +138 -0
- package/vendor/theus-arsenal/skills/cazador-vulnerabilidades/SKILL.md +104 -0
- package/vendor/theus-arsenal/skills/compactacion-estrategica/SKILL.md +115 -0
- package/vendor/theus-arsenal/skills/comparador-baskets-prediccion/SKILL.md +69 -0
- package/vendor/theus-arsenal/skills/compras-energia/SKILL.md +206 -0
- package/vendor/theus-arsenal/skills/concurrencia-swift-6-2/SKILL.md +224 -0
- package/vendor/theus-arsenal/skills/consejo/SKILL.md +201 -0
- package/vendor/theus-arsenal/skills/construccion-harness-agentes/SKILL.md +78 -0
- package/vendor/theus-arsenal/skills/constructor-conectores/SKILL.md +119 -0
- package/vendor/theus-arsenal/skills/constructor-equipos/SKILL.md +169 -0
- package/vendor/theus-arsenal/skills/consulta-documentacion/SKILL.md +92 -0
- package/vendor/theus-arsenal/skills/consultas-genomicas-gget/SKILL.md +170 -0
- package/vendor/theus-arsenal/skills/contacto-inversores/SKILL.md +95 -0
- package/vendor/theus-arsenal/skills/corrutinas-flows-kotlin/SKILL.md +284 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/SKILL.md +46 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/3d.md +86 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/animations.md +29 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/charts-bar-chart.tsx +173 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/text-animations-typewriter.tsx +100 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets.md +78 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/audio.md +172 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/calculate-metadata.md +104 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/can-decode.md +75 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/charts.md +58 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/compositions.md +146 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/display-captions.md +126 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/extract-frames.md +229 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/fonts.md +152 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-audio-duration.md +58 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-video-dimensions.md +68 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-video-duration.md +58 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/gifs.md +138 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/images.md +130 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/import-srt-captions.md +67 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/lottie.md +67 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/measuring-dom-nodes.md +34 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/measuring-text.md +143 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/sequencing.md +106 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/tailwind.md +11 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/text-animations.md +20 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/timing.md +179 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/transcribe-captions.md +19 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/transitions.md +122 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/trimming.md +52 -0
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/videos.md +171 -0
- package/vendor/theus-arsenal/skills/cumplimiento-aduanero/SKILL.md +270 -0
- package/vendor/theus-arsenal/skills/cumplimiento-hipaa/SKILL.md +78 -0
- package/vendor/theus-arsenal/skills/datos-sensibles-salud/SKILL.md +149 -0
- package/vendor/theus-arsenal/skills/decimales-tokens-evm/SKILL.md +128 -0
- package/vendor/theus-arsenal/skills/decisiones-arquitectura/SKILL.md +206 -0
- package/vendor/theus-arsenal/skills/demos-ui/SKILL.md +469 -0
- package/vendor/theus-arsenal/skills/desarrollo-por-intencion/SKILL.md +369 -0
- package/vendor/theus-arsenal/skills/descubrimiento-marca/SKILL.md +149 -0
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/10_proposito-porque.md +42 -0
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/20_posicionamiento.md +47 -0
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/30_audiencia-nicho.md +53 -0
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/40_personalidad-arquetipo.md +61 -0
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/50_voz-tono.md +62 -0
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/60_narrativa-historia.md +54 -0
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/70_tension-fundador.md +50 -0
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/90_SINTESIS.md +133 -0
- package/vendor/theus-arsenal/skills/descubrimiento-plugins-laravel/SKILL.md +230 -0
- package/vendor/theus-arsenal/skills/destilado-reglas/SKILL.md +263 -0
- package/vendor/theus-arsenal/skills/destilado-reglas/scripts/scan-rules.sh +58 -0
- package/vendor/theus-arsenal/skills/destilado-reglas/scripts/scan-skills.sh +129 -0
- package/vendor/theus-arsenal/skills/diagnostico-bgp/SKILL.md +170 -0
- package/vendor/theus-arsenal/skills/direccion-estetica/SKILL.md +220 -0
- package/vendor/theus-arsenal/skills/direccion-estetica/references/taxonomia-generos.md +89 -0
- package/vendor/theus-arsenal/skills/diseno-api/SKILL.md +522 -0
- package/vendor/theus-arsenal/skills/diseno-liquid-glass/SKILL.md +282 -0
- package/vendor/theus-arsenal/skills/e2e-escritorio-windows/SKILL.md +879 -0
- package/vendor/theus-arsenal/skills/edicion-video/SKILL.md +289 -0
- package/vendor/theus-arsenal/skills/enfoque-producto/SKILL.md +91 -0
- package/vendor/theus-arsenal/skills/entornos-flox/SKILL.md +493 -0
- package/vendor/theus-arsenal/skills/estandares-codigo/SKILL.md +548 -0
- package/vendor/theus-arsenal/skills/estandares-cpp/SKILL.md +727 -0
- package/vendor/theus-arsenal/skills/estandares-java/SKILL.md +389 -0
- package/vendor/theus-arsenal/skills/estilo-legado/SKILL.md +149 -0
- package/vendor/theus-arsenal/skills/estructura-informes-competencia/SKILL.md +95 -0
- package/vendor/theus-arsenal/skills/evaluacion-academica/SKILL.md +165 -0
- package/vendor/theus-arsenal/skills/explorador-skills/SKILL.md +129 -0
- package/vendor/theus-arsenal/skills/flujo-git/SKILL.md +714 -0
- package/vendor/theus-arsenal/skills/flujo-ingenieria-ml/SKILL.md +343 -0
- package/vendor/theus-arsenal/skills/flujo-tdd/SKILL.md +584 -0
- package/vendor/theus-arsenal/skills/forja-personas/SKILL.md +298 -0
- package/vendor/theus-arsenal/skills/forja-personas/gacha.py +224 -0
- package/vendor/theus-arsenal/skills/forja-personas/gacha.sh +5 -0
- package/vendor/theus-arsenal/skills/forja-personas/references/avatar-style.md +123 -0
- package/vendor/theus-arsenal/skills/forja-personas/references/boundary-rules.md +53 -0
- package/vendor/theus-arsenal/skills/forja-personas/references/error-handling.md +53 -0
- package/vendor/theus-arsenal/skills/forja-personas/references/identity-tension.md +48 -0
- package/vendor/theus-arsenal/skills/forja-personas/references/naming-system.md +39 -0
- package/vendor/theus-arsenal/skills/forja-personas/references/output-template.md +166 -0
- package/vendor/theus-arsenal/skills/fundamentos-animacion/SKILL.md +296 -0
- package/vendor/theus-arsenal/skills/generacion-iconos-ios/SKILL.md +156 -0
- package/vendor/theus-arsenal/skills/generacion-iconos-ios/scripts/generate_icons.swift +258 -0
- package/vendor/theus-arsenal/skills/generacion-iconos-ios/scripts/iconify_gen.sh +235 -0
- package/vendor/theus-arsenal/skills/gestion-excepciones-logisticas/SKILL.md +208 -0
- package/vendor/theus-arsenal/skills/gestion-transportistas/SKILL.md +204 -0
- package/vendor/theus-arsenal/skills/guia-adopcion-ml/SKILL.md +64 -0
- package/vendor/theus-arsenal/skills/harness-agente-autonomo/SKILL.md +252 -0
- package/vendor/theus-arsenal/skills/harness-eval-clinico/SKILL.md +212 -0
- package/vendor/theus-arsenal/skills/harness-evaluacion/SKILL.md +296 -0
- package/vendor/theus-arsenal/skills/harness-generador-evaluador/SKILL.md +254 -0
- package/vendor/theus-arsenal/skills/homelab-diseno-red/SKILL.md +120 -0
- package/vendor/theus-arsenal/skills/homelab-dns-pihole/SKILL.md +264 -0
- package/vendor/theus-arsenal/skills/homelab-preparacion-red/SKILL.md +144 -0
- package/vendor/theus-arsenal/skills/homelab-segmentacion-vlan/SKILL.md +307 -0
- package/vendor/theus-arsenal/skills/homelab-vpn-wireguard/SKILL.md +299 -0
- package/vendor/theus-arsenal/skills/ingenieria-agentica/SKILL.md +96 -0
- package/vendor/theus-arsenal/skills/inspeccion-animaciones-blender/SKILL.md +164 -0
- package/vendor/theus-arsenal/skills/instaladores-python/SKILL.md +820 -0
- package/vendor/theus-arsenal/skills/integracion-jira/SKILL.md +307 -0
- package/vendor/theus-arsenal/skills/inteligencia-leads/SKILL.md +312 -0
- package/vendor/theus-arsenal/skills/inteligencia-leads/agents/agente-enriquecimiento.md +87 -0
- package/vendor/theus-arsenal/skills/inteligencia-leads/agents/mapeador-mutuos.md +76 -0
- package/vendor/theus-arsenal/skills/inteligencia-leads/agents/puntuador-senales.md +60 -0
- package/vendor/theus-arsenal/skills/inteligencia-leads/agents/redactor-outreach.md +102 -0
- package/vendor/theus-arsenal/skills/inteligencia-mercados-prediccion/SKILL.md +53 -0
- package/vendor/theus-arsenal/skills/introspeccion-agente/SKILL.md +150 -0
- package/vendor/theus-arsenal/skills/inventario-skills/SKILL.md +194 -0
- package/vendor/theus-arsenal/skills/inventario-skills/scripts/quick-diff.sh +87 -0
- package/vendor/theus-arsenal/skills/inventario-skills/scripts/save-results.sh +57 -0
- package/vendor/theus-arsenal/skills/inventario-skills/scripts/scan.sh +170 -0
- package/vendor/theus-arsenal/skills/investigacion-mercado/SKILL.md +87 -0
- package/vendor/theus-arsenal/skills/investigacion-oraculos-prediccion/SKILL.md +59 -0
- package/vendor/theus-arsenal/skills/investigacion-profunda/SKILL.md +161 -0
- package/vendor/theus-arsenal/skills/keccak256-nodejs/SKILL.md +100 -0
- package/vendor/theus-arsenal/skills/libro-decisiones-recursivo/SKILL.md +82 -0
- package/vendor/theus-arsenal/skills/lienzo-planes/SKILL.md +111 -0
- package/vendor/theus-arsenal/skills/limpieza-configuracion/SKILL.md +116 -0
- package/vendor/theus-arsenal/skills/logistica-inversa-devoluciones/SKILL.md +241 -0
- package/vendor/theus-arsenal/skills/manejo-errores/SKILL.md +375 -0
- package/vendor/theus-arsenal/skills/materiales-inversores/SKILL.md +101 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/SKILL.md +170 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/forget.mjs +44 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/info.mjs +24 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/init.mjs +152 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/list.mjs +40 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/migrate.mjs +214 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/resume.mjs +36 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/save.mjs +210 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/shared.mjs +402 -0
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/hooks/session-start.mjs +238 -0
- package/vendor/theus-arsenal/skills/metodologia-benchmarks/SKILL.md +131 -0
- package/vendor/theus-arsenal/skills/migraciones-bd/SKILL.md +430 -0
- package/vendor/theus-arsenal/skills/modelos-fundacionales-en-dispositivo/SKILL.md +244 -0
- package/vendor/theus-arsenal/skills/modo-seguro/SKILL.md +86 -0
- package/vendor/theus-arsenal/skills/motion-avanzado/SKILL.md +592 -0
- package/vendor/theus-arsenal/skills/motor-de-contenido/SKILL.md +136 -0
- package/vendor/theus-arsenal/skills/no-conformidades-calidad/SKILL.md +249 -0
- package/vendor/theus-arsenal/skills/onboarding-codigo/SKILL.md +244 -0
- package/vendor/theus-arsenal/skills/operaciones-agentes-empresariales/SKILL.md +51 -0
- package/vendor/theus-arsenal/skills/operaciones-conocimiento/SKILL.md +159 -0
- package/vendor/theus-arsenal/skills/operaciones-correo/SKILL.md +123 -0
- package/vendor/theus-arsenal/skills/operaciones-facturacion/SKILL.md +142 -0
- package/vendor/theus-arsenal/skills/operaciones-flujo-proyectos/SKILL.md +110 -0
- package/vendor/theus-arsenal/skills/operaciones-github/SKILL.md +143 -0
- package/vendor/theus-arsenal/skills/operaciones-google-workspace/SKILL.md +100 -0
- package/vendor/theus-arsenal/skills/operaciones-investigacion/SKILL.md +124 -0
- package/vendor/theus-arsenal/skills/operaciones-mensajes/SKILL.md +103 -0
- package/vendor/theus-arsenal/skills/operaciones-terminal/SKILL.md +110 -0
- package/vendor/theus-arsenal/skills/optimizacion-benchmark/SKILL.md +70 -0
- package/vendor/theus-arsenal/skills/optimizacion-costos-llm/SKILL.md +182 -0
- package/vendor/theus-arsenal/skills/optimizador-conexiones/SKILL.md +191 -0
- package/vendor/theus-arsenal/skills/optimizador-paralelismo/SKILL.md +75 -0
- package/vendor/theus-arsenal/skills/optimizador-prompts/SKILL.md +374 -0
- package/vendor/theus-arsenal/skills/orq-agregar-funcionalidad/SKILL.md +37 -0
- package/vendor/theus-arsenal/skills/orq-cambiar-funcionalidad/SKILL.md +36 -0
- package/vendor/theus-arsenal/skills/orq-construir-mvp/SKILL.md +38 -0
- package/vendor/theus-arsenal/skills/orq-corregir-defecto/SKILL.md +36 -0
- package/vendor/theus-arsenal/skills/orq-pipeline/SKILL.md +134 -0
- package/vendor/theus-arsenal/skills/orq-refinar-codigo/SKILL.md +49 -0
- package/vendor/theus-arsenal/skills/orquestacion-equipos-agentes/SKILL.md +117 -0
- package/vendor/theus-arsenal/skills/pagos-agentes-x402/SKILL.md +237 -0
- package/vendor/theus-arsenal/skills/patrones-angular/SKILL.md +153 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/angular-animations.md +160 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/angular-aria.md +410 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/cli.md +86 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/component-harnesses.md +59 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/component-styling.md +91 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/components.md +117 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/creating-services.md +97 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/data-resolvers.md +69 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/define-routes.md +67 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/defining-providers.md +72 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/di-fundamentals.md +120 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/e2e-testing.md +56 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/effects.md +83 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/hierarchical-injectors.md +43 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/host-elements.md +80 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/injection-context.md +63 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/inputs.md +101 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/linked-signal.md +59 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/loading-strategies.md +61 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/mcp.md +67 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/navigate-to-routes.md +69 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/outputs.md +86 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/reactive-forms.md +122 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/rendering-strategies.md +44 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/resource.md +77 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/route-animations.md +56 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/route-guards.md +52 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/router-lifecycle.md +45 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/router-testing.md +87 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/show-routes-with-outlets.md +68 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/signal-forms.md +795 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/signals-overview.md +94 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/tailwind-css.md +69 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/template-driven-forms.md +114 -0
- package/vendor/theus-arsenal/skills/patrones-angular/references/testing-fundamentals.md +65 -0
- package/vendor/theus-arsenal/skills/patrones-animacion/SKILL.md +432 -0
- package/vendor/theus-arsenal/skills/patrones-backend/SKILL.md +560 -0
- package/vendor/theus-arsenal/skills/patrones-cdss-clinico/SKILL.md +249 -0
- package/vendor/theus-arsenal/skills/patrones-cisco-ios/SKILL.md +148 -0
- package/vendor/theus-arsenal/skills/patrones-clickhouse/SKILL.md +443 -0
- package/vendor/theus-arsenal/skills/patrones-compose-multiplatform/SKILL.md +298 -0
- package/vendor/theus-arsenal/skills/patrones-dart-flutter/SKILL.md +566 -0
- package/vendor/theus-arsenal/skills/patrones-despliegue/SKILL.md +426 -0
- package/vendor/theus-arsenal/skills/patrones-django/SKILL.md +739 -0
- package/vendor/theus-arsenal/skills/patrones-django-celery/SKILL.md +456 -0
- package/vendor/theus-arsenal/skills/patrones-docker/SKILL.md +363 -0
- package/vendor/theus-arsenal/skills/patrones-dotnet/SKILL.md +321 -0
- package/vendor/theus-arsenal/skills/patrones-emr-clinico/SKILL.md +168 -0
- package/vendor/theus-arsenal/skills/patrones-fastapi/SKILL.md +513 -0
- package/vendor/theus-arsenal/skills/patrones-frontend/SKILL.md +655 -0
- package/vendor/theus-arsenal/skills/patrones-go/SKILL.md +674 -0
- package/vendor/theus-arsenal/skills/patrones-jpa/SKILL.md +156 -0
- package/vendor/theus-arsenal/skills/patrones-kotlin/SKILL.md +717 -0
- package/vendor/theus-arsenal/skills/patrones-kotlin-exposed/SKILL.md +724 -0
- package/vendor/theus-arsenal/skills/patrones-kotlin-ktor/SKILL.md +694 -0
- package/vendor/theus-arsenal/skills/patrones-kubernetes/SKILL.md +754 -0
- package/vendor/theus-arsenal/skills/patrones-laravel/SKILL.md +414 -0
- package/vendor/theus-arsenal/skills/patrones-mcp/SKILL.md +66 -0
- package/vendor/theus-arsenal/skills/patrones-mysql/SKILL.md +420 -0
- package/vendor/theus-arsenal/skills/patrones-nestjs/SKILL.md +229 -0
- package/vendor/theus-arsenal/skills/patrones-nextjs/SKILL.md +56 -0
- package/vendor/theus-arsenal/skills/patrones-nuxt4/SKILL.md +99 -0
- package/vendor/theus-arsenal/skills/patrones-perl/SKILL.md +508 -0
- package/vendor/theus-arsenal/skills/patrones-postgres/SKILL.md +141 -0
- package/vendor/theus-arsenal/skills/patrones-prisma/SKILL.md +399 -0
- package/vendor/theus-arsenal/skills/patrones-python/SKILL.md +750 -0
- package/vendor/theus-arsenal/skills/patrones-pytorch/SKILL.md +400 -0
- package/vendor/theus-arsenal/skills/patrones-quarkus/SKILL.md +729 -0
- package/vendor/theus-arsenal/skills/patrones-react/SKILL.md +339 -0
- package/vendor/theus-arsenal/skills/patrones-react-native/SKILL.md +325 -0
- package/vendor/theus-arsenal/skills/patrones-redis/SKILL.md +401 -0
- package/vendor/theus-arsenal/skills/patrones-rust/SKILL.md +504 -0
- package/vendor/theus-arsenal/skills/patrones-springboot/SKILL.md +314 -0
- package/vendor/theus-arsenal/skills/patrones-swiftui/SKILL.md +261 -0
- package/vendor/theus-arsenal/skills/patrones-tinystruct/SKILL.md +281 -0
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/architecture.md +90 -0
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/data-handling.md +60 -0
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/database.md +99 -0
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/routing.md +64 -0
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/system-usage.md +97 -0
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/testing.md +72 -0
- package/vendor/theus-arsenal/skills/patrones-vite/SKILL.md +449 -0
- package/vendor/theus-arsenal/skills/patrones-vue/SKILL.md +469 -0
- package/vendor/theus-arsenal/skills/persistencia-actores-swift/SKILL.md +148 -0
- package/vendor/theus-arsenal/skills/pipeline-opensource/SKILL.md +254 -0
- package/vendor/theus-arsenal/skills/planificacion-demanda-inventario/SKILL.md +236 -0
- package/vendor/theus-arsenal/skills/planificador-trades-prediccion/SKILL.md +60 -0
- package/vendor/theus-arsenal/skills/plano-tecnico/SKILL.md +102 -0
- package/vendor/theus-arsenal/skills/presentaciones-html/SKILL.md +189 -0
- package/vendor/theus-arsenal/skills/presentaciones-html/STYLE_PRESETS.md +330 -0
- package/vendor/theus-arsenal/skills/presentaciones-html/animation-patterns.md +122 -0
- package/vendor/theus-arsenal/skills/presentaciones-html/html-template.md +419 -0
- package/vendor/theus-arsenal/skills/presentaciones-html/scripts/export-pdf.sh +418 -0
- package/vendor/theus-arsenal/skills/presentaciones-html/scripts/extract-pptx.py +96 -0
- package/vendor/theus-arsenal/skills/presentaciones-html/viewport-base.css +153 -0
- package/vendor/theus-arsenal/skills/presupuesto-contexto/SKILL.md +263 -0
- package/vendor/theus-arsenal/skills/procesamiento-documentos-nutrient/SKILL.md +168 -0
- package/vendor/theus-arsenal/skills/programacion-produccion/SKILL.md +220 -0
- package/vendor/theus-arsenal/skills/publicacion-cruzada/SKILL.md +117 -0
- package/vendor/theus-arsenal/skills/publicador-social/SKILL.md +121 -0
- package/vendor/theus-arsenal/skills/puerta-de-entrega/SKILL.md +164 -0
- package/vendor/theus-arsenal/skills/puerta-de-entrega/hooks/puerta-entrega.py +242 -0
- package/vendor/theus-arsenal/skills/pulir-interfaces/SKILL.md +126 -0
- package/vendor/theus-arsenal/skills/qa-navegador/SKILL.md +103 -0
- package/vendor/theus-arsenal/skills/ranking-grafo-social/SKILL.md +153 -0
- package/vendor/theus-arsenal/skills/recuperacion-iterativa/SKILL.md +236 -0
- package/vendor/theus-arsenal/skills/redaccion-articulos/SKILL.md +81 -0
- package/vendor/theus-arsenal/skills/regex-vs-llm/SKILL.md +221 -0
- package/vendor/theus-arsenal/skills/regresion-codigo-ia/SKILL.md +388 -0
- package/vendor/theus-arsenal/skills/rendimiento-react/SKILL.md +567 -0
- package/vendor/theus-arsenal/skills/revision-codigo-flutter-dart/SKILL.md +442 -0
- package/vendor/theus-arsenal/skills/revision-literatura-cientifica/SKILL.md +191 -0
- package/vendor/theus-arsenal/skills/revision-multiperspectiva/SKILL.md +302 -0
- package/vendor/theus-arsenal/skills/revision-riesgo-prediccion/SKILL.md +56 -0
- package/vendor/theus-arsenal/skills/revision-seguridad/SKILL.md +505 -0
- package/vendor/theus-arsenal/skills/revision-seguridad/cloud-infrastructure-security.md +361 -0
- package/vendor/theus-arsenal/skills/runtime-bun/SKILL.md +83 -0
- package/vendor/theus-arsenal/skills/salud-codigo-codescene/SKILL.md +163 -0
- package/vendor/theus-arsenal/skills/salud-interfaces-red/SKILL.md +143 -0
- package/vendor/theus-arsenal/skills/seguimiento-costos/SKILL.md +122 -0
- package/vendor/theus-arsenal/skills/seguridad-agentes-trading/SKILL.md +145 -0
- package/vendor/theus-arsenal/skills/seguridad-amm-defi/SKILL.md +166 -0
- package/vendor/theus-arsenal/skills/seguridad-django/SKILL.md +648 -0
- package/vendor/theus-arsenal/skills/seguridad-laravel/SKILL.md +945 -0
- package/vendor/theus-arsenal/skills/seguridad-perl/SKILL.md +507 -0
- package/vendor/theus-arsenal/skills/seguridad-quarkus/SKILL.md +474 -0
- package/vendor/theus-arsenal/skills/seguridad-springboot/SKILL.md +279 -0
- package/vendor/theus-arsenal/skills/seo/SKILL.md +166 -0
- package/vendor/theus-arsenal/skills/sistema-diseno/SKILL.md +81 -0
- package/vendor/theus-arsenal/skills/sistema-operativo-agentico/SKILL.md +375 -0
- package/vendor/theus-arsenal/skills/sistemas-latencia-critica/SKILL.md +65 -0
- package/vendor/theus-arsenal/skills/tdd-django/SKILL.md +735 -0
- package/vendor/theus-arsenal/skills/tdd-laravel/SKILL.md +673 -0
- package/vendor/theus-arsenal/skills/tdd-quarkus/SKILL.md +817 -0
- package/vendor/theus-arsenal/skills/tdd-springboot/SKILL.md +165 -0
- package/vendor/theus-arsenal/skills/testing-cpp/SKILL.md +328 -0
- package/vendor/theus-arsenal/skills/testing-csharp/SKILL.md +321 -0
- package/vendor/theus-arsenal/skills/testing-e2e/SKILL.md +325 -0
- package/vendor/theus-arsenal/skills/testing-go/SKILL.md +719 -0
- package/vendor/theus-arsenal/skills/testing-kotlin/SKILL.md +829 -0
- package/vendor/theus-arsenal/skills/testing-perl/SKILL.md +479 -0
- package/vendor/theus-arsenal/skills/testing-protocolos-di-swift/SKILL.md +196 -0
- package/vendor/theus-arsenal/skills/testing-python/SKILL.md +815 -0
- package/vendor/theus-arsenal/skills/testing-react/SKILL.md +421 -0
- package/vendor/theus-arsenal/skills/testing-rust/SKILL.md +506 -0
- package/vendor/theus-arsenal/skills/tours-de-codigo/SKILL.md +252 -0
- package/vendor/theus-arsenal/skills/traduccion-documentos-visado/SKILL.md +121 -0
- package/vendor/theus-arsenal/skills/ui-a-vue/SKILL.md +141 -0
- package/vendor/theus-arsenal/skills/validacion-config-red/SKILL.md +211 -0
- package/vendor/theus-arsenal/skills/verificacion-django/SKILL.md +470 -0
- package/vendor/theus-arsenal/skills/verificacion-factual/SKILL.md +142 -0
- package/vendor/theus-arsenal/skills/verificacion-laravel/SKILL.md +184 -0
- package/vendor/theus-arsenal/skills/verificacion-quarkus/SKILL.md +485 -0
- package/vendor/theus-arsenal/skills/verificacion-springboot/SKILL.md +237 -0
- package/vendor/theus-arsenal/skills/videodb/SKILL.md +374 -0
- package/vendor/theus-arsenal/skills/videodb/reference/api-reference.md +550 -0
- package/vendor/theus-arsenal/skills/videodb/reference/capture-reference.md +407 -0
- package/vendor/theus-arsenal/skills/videodb/reference/capture.md +101 -0
- package/vendor/theus-arsenal/skills/videodb/reference/editor.md +443 -0
- package/vendor/theus-arsenal/skills/videodb/reference/generative.md +331 -0
- package/vendor/theus-arsenal/skills/videodb/reference/rtstream-reference.md +564 -0
- package/vendor/theus-arsenal/skills/videodb/reference/rtstream.md +65 -0
- package/vendor/theus-arsenal/skills/videodb/reference/search.md +230 -0
- package/vendor/theus-arsenal/skills/videodb/reference/streaming.md +406 -0
- package/vendor/theus-arsenal/skills/videodb/reference/use-cases.md +118 -0
- package/vendor/theus-arsenal/skills/videodb/scripts/ws_listener.py +279 -0
- package/vendor/theus-arsenal/skills/videos-manim/SKILL.md +91 -0
- package/vendor/theus-arsenal/skills/videos-manim/assets/network_graph_scene.py +52 -0
- package/vendor/theus-arsenal/skills/vigilancia-canary/SKILL.md +108 -0
- 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.
|
|
58327
|
+
const error40 = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
58371
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
58431
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
58516
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
59211
|
+
return `theus-code/${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
59233
|
+
return `theus-cli/${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
59247
|
+
return `theus-code/${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
59385
|
+
appVersion: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
61100
|
+
const match = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
61140
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
61142
|
+
buildTime: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
61808
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
61835
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
63706
|
+
const version2 = `${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
107817
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.
|
|
166526
|
+
attributes["app.version"] = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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) {
|
|
@@ -169446,7 +169446,42 @@ function formatLimitReachedText(limit, resetMessage, _model) {
|
|
|
169446
169446
|
}
|
|
169447
169447
|
return `You've hit your ${limit}${resetMessage}`;
|
|
169448
169448
|
}
|
|
169449
|
-
|
|
169449
|
+
function isGatewayQuotaExceededBody(body) {
|
|
169450
|
+
return typeof body === "object" && body !== null && body.error === "quota_exceeded";
|
|
169451
|
+
}
|
|
169452
|
+
function asNonEmptyString(value) {
|
|
169453
|
+
if (typeof value === "string" && value.trim().length > 0)
|
|
169454
|
+
return value;
|
|
169455
|
+
if (typeof value === "number" && Number.isFinite(value))
|
|
169456
|
+
return String(value);
|
|
169457
|
+
return;
|
|
169458
|
+
}
|
|
169459
|
+
function isGatewayQuotaExceededMessage(text) {
|
|
169460
|
+
return text.startsWith(GATEWAY_QUOTA_EXCEEDED_MESSAGE_PREFIX);
|
|
169461
|
+
}
|
|
169462
|
+
function getGatewayQuotaExceededMessage(body) {
|
|
169463
|
+
const pausePromise = "Sin sorpresas: al tope, Theus se pausa \u2014 jam\xE1s factura de m\xE1s.";
|
|
169464
|
+
const genericFallback = `Llegaste al l\xEDmite de tu plan. ${pausePromise} Revisa tus opciones en ${THEUS_PRICING_URL} (anual = 2 meses gratis).`;
|
|
169465
|
+
if (!isGatewayQuotaExceededBody(body)) {
|
|
169466
|
+
return genericFallback;
|
|
169467
|
+
}
|
|
169468
|
+
const plan = asNonEmptyString(body.plan);
|
|
169469
|
+
const cuotaTt = asNonEmptyString(body.cuota_tt);
|
|
169470
|
+
const reset3 = asNonEmptyString(body.reset);
|
|
169471
|
+
const url3 = asNonEmptyString(body.url) ?? THEUS_PRICING_URL;
|
|
169472
|
+
if (!plan || !cuotaTt || !reset3) {
|
|
169473
|
+
return `Llegaste al l\xEDmite de tu plan. ${pausePromise} Revisa tus opciones en ${url3} (anual = 2 meses gratis).`;
|
|
169474
|
+
}
|
|
169475
|
+
const base2 = `Llegaste al l\xEDmite de tu plan ${plan} (${cuotaTt} TT) \xB7 se renueva ${reset3}. ${pausePromise}`;
|
|
169476
|
+
const upgradePlan = asNonEmptyString(body.upgrade?.plan);
|
|
169477
|
+
const upgradeTt = asNonEmptyString(body.upgrade?.tt);
|
|
169478
|
+
const upgradePrecio = asNonEmptyString(body.upgrade?.precio);
|
|
169479
|
+
if (upgradePlan && upgradeTt && upgradePrecio) {
|
|
169480
|
+
return `${base2} \xBFNecesitas seguir hoy? ${upgradePlan} incluye ${upgradeTt} TT por ${upgradePrecio} \u2192 ${url3} (anual = 2 meses gratis)`;
|
|
169481
|
+
}
|
|
169482
|
+
return `${base2} Revisa tus opciones en ${url3} (anual = 2 meses gratis).`;
|
|
169483
|
+
}
|
|
169484
|
+
var FEEDBACK_CHANNEL_ANT = "#briarpatch-cc", RATE_LIMIT_ERROR_PREFIXES, THEUS_PRICING_URL = "https://theus.pe/precios", GATEWAY_QUOTA_EXCEEDED_MESSAGE_PREFIX = "Llegaste al l\xEDmite de tu plan";
|
|
169450
169485
|
var init_rateLimitMessages = __esm(() => {
|
|
169451
169486
|
init_auth();
|
|
169452
169487
|
init_billing();
|
|
@@ -202536,7 +202571,7 @@ function getInstallationEnv() {
|
|
|
202536
202571
|
return;
|
|
202537
202572
|
}
|
|
202538
202573
|
function getTheusCodeVersion() {
|
|
202539
|
-
return { VERSION: "0.2.
|
|
202574
|
+
return { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
202575
|
}
|
|
202541
202576
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202542
202577
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204054,7 +204089,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204054
204089
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204055
204090
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204056
204091
|
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.
|
|
204092
|
+
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.38", BUILD_TIME: "1970-01-01T00:00:00.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
204093
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204059
204094
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204060
204095
|
return null;
|
|
@@ -205264,7 +205299,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205264
205299
|
const client2 = new Client({
|
|
205265
205300
|
name: "theus-code",
|
|
205266
205301
|
title: "Theus",
|
|
205267
|
-
version: { VERSION: "0.2.
|
|
205302
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
205303
|
description: "Theus's agentic coding tool",
|
|
205269
205304
|
websiteUrl: PRODUCT_URL
|
|
205270
205305
|
}, {
|
|
@@ -205618,7 +205653,7 @@ var init_client5 = __esm(() => {
|
|
|
205618
205653
|
const client2 = new Client({
|
|
205619
205654
|
name: "theus-code",
|
|
205620
205655
|
title: "Theus",
|
|
205621
|
-
version: { VERSION: "0.2.
|
|
205656
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
205657
|
description: "Theus's agentic coding tool",
|
|
205623
205658
|
websiteUrl: PRODUCT_URL
|
|
205624
205659
|
}, {
|
|
@@ -216196,7 +216231,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216196
216231
|
});
|
|
216197
216232
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216198
216233
|
setLoggerProvider(loggerProvider);
|
|
216199
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216234
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
216235
|
setEventLogger(eventLogger);
|
|
216201
216236
|
process.on("beforeExit", async () => {
|
|
216202
216237
|
await loggerProvider?.forceFlush();
|
|
@@ -216236,7 +216271,7 @@ async function initializeTelemetry() {
|
|
|
216236
216271
|
const platform4 = getPlatform();
|
|
216237
216272
|
const baseAttributes = {
|
|
216238
216273
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216239
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216274
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
216275
|
};
|
|
216241
216276
|
if (platform4 === "wsl") {
|
|
216242
216277
|
const wslVersion = getWslVersion();
|
|
@@ -216281,7 +216316,7 @@ async function initializeTelemetry() {
|
|
|
216281
216316
|
} catch {}
|
|
216282
216317
|
};
|
|
216283
216318
|
registerCleanup(shutdownTelemetry2);
|
|
216284
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216319
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
216320
|
}
|
|
216286
216321
|
const meterProvider = new MeterProvider({
|
|
216287
216322
|
resource,
|
|
@@ -216301,7 +216336,7 @@ async function initializeTelemetry() {
|
|
|
216301
216336
|
});
|
|
216302
216337
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216303
216338
|
setLoggerProvider(loggerProvider);
|
|
216304
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216339
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
216340
|
setEventLogger(eventLogger);
|
|
216306
216341
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216307
216342
|
process.on("beforeExit", async () => {
|
|
@@ -216363,7 +216398,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216363
216398
|
}
|
|
216364
216399
|
};
|
|
216365
216400
|
registerCleanup(shutdownTelemetry);
|
|
216366
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216401
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
216402
|
}
|
|
216368
216403
|
async function flushTelemetry() {
|
|
216369
216404
|
const meterProvider = getMeterProvider();
|
|
@@ -216903,7 +216938,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216903
216938
|
return "install_failed";
|
|
216904
216939
|
}
|
|
216905
216940
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216906
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216941
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
216942
|
if (result.code !== 0) {
|
|
216908
216943
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216909
216944
|
logError2(error40);
|
|
@@ -217049,9 +217084,9 @@ async function assertMinVersion() {
|
|
|
217049
217084
|
if (false) {}
|
|
217050
217085
|
try {
|
|
217051
217086
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217052
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217087
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217088
|
console.error(`
|
|
217054
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217089
|
+
It looks like your version of Theus (${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217090
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217056
217091
|
|
|
217057
217092
|
To update, please run:
|
|
@@ -217192,7 +217227,7 @@ async function getInstallationPrefix() {
|
|
|
217192
217227
|
return prefixResult.stdout.trim();
|
|
217193
217228
|
}
|
|
217194
217229
|
function getGlobalInstallPackageManager() {
|
|
217195
|
-
if ({ VERSION: "0.2.
|
|
217230
|
+
if ({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217231
|
return "npm";
|
|
217197
217232
|
}
|
|
217198
217233
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217217,7 +217252,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217217
217252
|
}
|
|
217218
217253
|
async function getLatestVersion(channel2) {
|
|
217219
217254
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217220
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217255
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217256
|
if (result.code !== 0) {
|
|
217222
217257
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217223
217258
|
if (result.stderr) {
|
|
@@ -217233,7 +217268,7 @@ async function getLatestVersion(channel2) {
|
|
|
217233
217268
|
return result.stdout.trim();
|
|
217234
217269
|
}
|
|
217235
217270
|
async function getNpmDistTags() {
|
|
217236
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217271
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217272
|
if (result.code !== 0) {
|
|
217238
217273
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217239
217274
|
return { latest: null, stable: null };
|
|
@@ -217273,7 +217308,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217273
217308
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217274
217309
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217275
217310
|
pid: process.pid,
|
|
217276
|
-
currentVersion: { VERSION: "0.2.
|
|
217311
|
+
currentVersion: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217312
|
});
|
|
217278
217313
|
return "in_progress";
|
|
217279
217314
|
}
|
|
@@ -217282,7 +217317,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217282
217317
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217283
217318
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217284
217319
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217285
|
-
currentVersion: { VERSION: "0.2.
|
|
217320
|
+
currentVersion: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217321
|
});
|
|
217287
217322
|
console.error(`
|
|
217288
217323
|
Error: Windows NPM detected in WSL
|
|
@@ -217301,7 +217336,7 @@ To fix this issue:
|
|
|
217301
217336
|
if (!hasPermissions) {
|
|
217302
217337
|
return "no_permissions";
|
|
217303
217338
|
}
|
|
217304
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217339
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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
217340
|
const packageManager = getGlobalInstallPackageManager();
|
|
217306
217341
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217307
217342
|
if (installResult.code !== 0) {
|
|
@@ -217629,8 +217664,8 @@ async function detectMultipleInstallations() {
|
|
|
217629
217664
|
installations.push({ type: "npm-local", path: localPath });
|
|
217630
217665
|
}
|
|
217631
217666
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217632
|
-
if ({ VERSION: "0.2.
|
|
217633
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217667
|
+
if ({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217668
|
+
packagesToCheck.push({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217669
|
}
|
|
217635
217670
|
const npmResult = await execFileNoThrow("npm", [
|
|
217636
217671
|
"-g",
|
|
@@ -217813,7 +217848,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217813
217848
|
}
|
|
217814
217849
|
async function getDoctorDiagnostic() {
|
|
217815
217850
|
const installationType = await getCurrentInstallationType();
|
|
217816
|
-
const version2 = { VERSION: "0.2.
|
|
217851
|
+
const version2 = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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
217852
|
const installationPath = await getInstallationPath();
|
|
217818
217853
|
const invokedBinary = getInvokedBinary();
|
|
217819
217854
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217825,8 +217860,8 @@ async function getDoctorDiagnostic() {
|
|
|
217825
217860
|
for (const install of npmInstalls) {
|
|
217826
217861
|
if (install.type === "npm-global") {
|
|
217827
217862
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217828
|
-
if ({ VERSION: "0.2.
|
|
217829
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217863
|
+
if ({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
217864
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217865
|
}
|
|
217831
217866
|
warnings.push({
|
|
217832
217867
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217938,7 +217973,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217938
217973
|
const startTime2 = Date.now();
|
|
217939
217974
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217940
217975
|
"view",
|
|
217941
|
-
`${{ VERSION: "0.2.
|
|
217976
|
+
`${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
217977
|
"version",
|
|
217943
217978
|
"--prefer-online",
|
|
217944
217979
|
"--registry",
|
|
@@ -217962,7 +217997,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217962
217997
|
latency_ms: latencyMs,
|
|
217963
217998
|
source_npm: true
|
|
217964
217999
|
});
|
|
217965
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
218000
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
218001
|
const latestVersion = stdout.trim();
|
|
217967
218002
|
return latestVersion;
|
|
217968
218003
|
}
|
|
@@ -218018,7 +218053,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218018
218053
|
const fs3 = getFsImplementation();
|
|
218019
218054
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218020
218055
|
const platform4 = getPlatform2();
|
|
218021
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218056
|
+
const platformPackageName = `${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
218057
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218023
218058
|
const {
|
|
218024
218059
|
stdout: integrityOutput,
|
|
@@ -218047,7 +218082,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218047
218082
|
name: "theus-native-installer",
|
|
218048
218083
|
version: "0.0.1",
|
|
218049
218084
|
dependencies: {
|
|
218050
|
-
[{ VERSION: "0.2.
|
|
218085
|
+
[{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
218086
|
}
|
|
218052
218087
|
};
|
|
218053
218088
|
const packageLock = {
|
|
@@ -218060,10 +218095,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218060
218095
|
name: "theus-native-installer",
|
|
218061
218096
|
version: "0.0.1",
|
|
218062
218097
|
dependencies: {
|
|
218063
|
-
[{ VERSION: "0.2.
|
|
218098
|
+
[{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
218099
|
}
|
|
218065
218100
|
},
|
|
218066
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218101
|
+
[`node_modules/${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
218102
|
version: version2,
|
|
218068
218103
|
optionalDependencies: {
|
|
218069
218104
|
[platformPackageName]: version2
|
|
@@ -218085,7 +218120,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218085
218120
|
if (result.code !== 0) {
|
|
218086
218121
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218087
218122
|
}
|
|
218088
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218123
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
218124
|
}
|
|
218090
218125
|
function getStallTimeoutMs() {
|
|
218091
218126
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218748,8 +218783,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218748
218783
|
const maxVersion = await getMaxVersion();
|
|
218749
218784
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218750
218785
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218751
|
-
if (gte({ VERSION: "0.2.
|
|
218752
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218786
|
+
if (gte({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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)) {
|
|
218787
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
218788
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218754
218789
|
latency_ms: Date.now() - startTime2,
|
|
218755
218790
|
max_version: maxVersion,
|
|
@@ -218760,7 +218795,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218760
218795
|
version2 = maxVersion;
|
|
218761
218796
|
}
|
|
218762
218797
|
}
|
|
218763
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218798
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
218799
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218765
218800
|
logEvent("tengu_native_update_complete", {
|
|
218766
218801
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219510,8 +219545,8 @@ async function cleanupNpmInstallations() {
|
|
|
219510
219545
|
} else if (codePackageResult.error) {
|
|
219511
219546
|
errors4.push(codePackageResult.error);
|
|
219512
219547
|
}
|
|
219513
|
-
if ({ VERSION: "0.2.
|
|
219514
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219548
|
+
if ({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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") {
|
|
219549
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
219550
|
if (macroPackageResult.success) {
|
|
219516
219551
|
removed++;
|
|
219517
219552
|
if (macroPackageResult.warning) {
|
|
@@ -232144,6 +232179,14 @@ function AssistantTextMessage(t0) {
|
|
|
232144
232179
|
}
|
|
232145
232180
|
return t2;
|
|
232146
232181
|
}
|
|
232182
|
+
if (isGatewayQuotaExceededMessage(text)) {
|
|
232183
|
+
return /* @__PURE__ */ jsx_runtime81.jsx(MessageResponse, {
|
|
232184
|
+
children: /* @__PURE__ */ jsx_runtime81.jsx(ThemedText, {
|
|
232185
|
+
color: "error",
|
|
232186
|
+
children: text
|
|
232187
|
+
})
|
|
232188
|
+
});
|
|
232189
|
+
}
|
|
232147
232190
|
switch (text) {
|
|
232148
232191
|
case NO_RESPONSE_REQUESTED: {
|
|
232149
232192
|
return null;
|
|
@@ -304780,9 +304823,9 @@ function getTheusEnvMetadata() {
|
|
|
304780
304823
|
};
|
|
304781
304824
|
}
|
|
304782
304825
|
function getBuildAgeMinutes() {
|
|
304783
|
-
if (!{ VERSION: "0.2.
|
|
304826
|
+
if (!{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
304827
|
return;
|
|
304785
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
304828
|
+
const buildTime = new Date({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
304829
|
if (isNaN(buildTime))
|
|
304787
304830
|
return;
|
|
304788
304831
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -313606,6 +313649,31 @@ var init_officialMarketplaceGcs = __esm(() => {
|
|
|
313606
313649
|
});
|
|
313607
313650
|
|
|
313608
313651
|
// utils/plugins/marketplaceManager.ts
|
|
313652
|
+
var exports_marketplaceManager = {};
|
|
313653
|
+
__export(exports_marketplaceManager, {
|
|
313654
|
+
setMarketplaceAutoUpdate: () => setMarketplaceAutoUpdate,
|
|
313655
|
+
saveMarketplaceToSettings: () => saveMarketplaceToSettings,
|
|
313656
|
+
saveKnownMarketplacesConfig: () => saveKnownMarketplacesConfig,
|
|
313657
|
+
removeMarketplaceSource: () => removeMarketplaceSource,
|
|
313658
|
+
registerSeedMarketplaces: () => registerSeedMarketplaces,
|
|
313659
|
+
refreshMarketplace: () => refreshMarketplace,
|
|
313660
|
+
refreshAllMarketplaces: () => refreshAllMarketplaces,
|
|
313661
|
+
reconcileSparseCheckout: () => reconcileSparseCheckout,
|
|
313662
|
+
loadKnownMarketplacesConfigSafe: () => loadKnownMarketplacesConfigSafe,
|
|
313663
|
+
loadKnownMarketplacesConfig: () => loadKnownMarketplacesConfig,
|
|
313664
|
+
gitPull: () => gitPull,
|
|
313665
|
+
gitClone: () => gitClone,
|
|
313666
|
+
getPluginByIdCacheOnly: () => getPluginByIdCacheOnly,
|
|
313667
|
+
getPluginById: () => getPluginById,
|
|
313668
|
+
getMarketplacesCacheDir: () => getMarketplacesCacheDir,
|
|
313669
|
+
getMarketplaceDeclaringSource: () => getMarketplaceDeclaringSource,
|
|
313670
|
+
getMarketplaceCacheOnly: () => getMarketplaceCacheOnly,
|
|
313671
|
+
getMarketplace: () => getMarketplace,
|
|
313672
|
+
getDeclaredMarketplaces: () => getDeclaredMarketplaces,
|
|
313673
|
+
clearMarketplacesCache: () => clearMarketplacesCache,
|
|
313674
|
+
addMarketplaceSource: () => addMarketplaceSource,
|
|
313675
|
+
_test: () => _test
|
|
313676
|
+
});
|
|
313609
313677
|
import { writeFile as writeFile35 } from "fs/promises";
|
|
313610
313678
|
import { basename as basename34, dirname as dirname45, isAbsolute as isAbsolute25, join as join109, resolve as resolve38, sep as sep23 } from "path";
|
|
313611
313679
|
function getKnownMarketplacesFile() {
|
|
@@ -314737,7 +314805,7 @@ async function setMarketplaceAutoUpdate(name, autoUpdate) {
|
|
|
314737
314805
|
}
|
|
314738
314806
|
logForDebugging(`Set autoUpdate=${autoUpdate} for marketplace: ${name}`);
|
|
314739
314807
|
}
|
|
314740
|
-
var GIT_NO_PROMPT_ENV, DEFAULT_PLUGIN_GIT_TIMEOUT_MS, getMarketplace;
|
|
314808
|
+
var GIT_NO_PROMPT_ENV, DEFAULT_PLUGIN_GIT_TIMEOUT_MS, getMarketplace, _test;
|
|
314741
314809
|
var init_marketplaceManager = __esm(() => {
|
|
314742
314810
|
init_axios2();
|
|
314743
314811
|
init_isEqual();
|
|
@@ -314794,9 +314862,40 @@ var init_marketplaceManager = __esm(() => {
|
|
|
314794
314862
|
await saveKnownMarketplacesConfig(config2);
|
|
314795
314863
|
return marketplace;
|
|
314796
314864
|
});
|
|
314865
|
+
_test = {
|
|
314866
|
+
redactUrlCredentials
|
|
314867
|
+
};
|
|
314797
314868
|
});
|
|
314798
314869
|
|
|
314799
314870
|
// utils/plugins/installedPluginsManager.ts
|
|
314871
|
+
var exports_installedPluginsManager = {};
|
|
314872
|
+
__export(exports_installedPluginsManager, {
|
|
314873
|
+
updateInstallationPathOnDisk: () => updateInstallationPathOnDisk,
|
|
314874
|
+
resetMigrationState: () => resetMigrationState,
|
|
314875
|
+
resetInMemoryState: () => resetInMemoryState,
|
|
314876
|
+
removePluginInstallation: () => removePluginInstallation,
|
|
314877
|
+
removeInstalledPlugin: () => removeInstalledPlugin,
|
|
314878
|
+
removeAllPluginsForMarketplace: () => removeAllPluginsForMarketplace,
|
|
314879
|
+
migrateToSinglePluginFile: () => migrateToSinglePluginFile,
|
|
314880
|
+
migrateFromEnabledPlugins: () => migrateFromEnabledPlugins,
|
|
314881
|
+
loadInstalledPluginsV2: () => loadInstalledPluginsV2,
|
|
314882
|
+
loadInstalledPluginsFromDisk: () => loadInstalledPluginsFromDisk,
|
|
314883
|
+
isPluginInstalled: () => isPluginInstalled,
|
|
314884
|
+
isPluginGloballyInstalled: () => isPluginGloballyInstalled,
|
|
314885
|
+
isInstallationRelevantToCurrentProject: () => isInstallationRelevantToCurrentProject,
|
|
314886
|
+
initializeVersionedPlugins: () => initializeVersionedPlugins,
|
|
314887
|
+
hasPendingUpdates: () => hasPendingUpdates,
|
|
314888
|
+
getPendingUpdatesDetails: () => getPendingUpdatesDetails,
|
|
314889
|
+
getPendingUpdateCount: () => getPendingUpdateCount,
|
|
314890
|
+
getInstalledPluginsV2FilePath: () => getInstalledPluginsV2FilePath,
|
|
314891
|
+
getInstalledPluginsFilePath: () => getInstalledPluginsFilePath,
|
|
314892
|
+
getInMemoryInstalledPlugins: () => getInMemoryInstalledPlugins,
|
|
314893
|
+
getGitCommitSha: () => getGitCommitSha,
|
|
314894
|
+
deletePluginCache: () => deletePluginCache,
|
|
314895
|
+
clearInstalledPluginsCache: () => clearInstalledPluginsCache,
|
|
314896
|
+
addPluginInstallation: () => addPluginInstallation,
|
|
314897
|
+
addInstalledPlugin: () => addInstalledPlugin
|
|
314898
|
+
});
|
|
314800
314899
|
import { dirname as dirname46, join as join110 } from "path";
|
|
314801
314900
|
function getInstalledPluginsFilePath() {
|
|
314802
314901
|
return join110(getPluginsDirectory(), "installed_plugins.json");
|
|
@@ -314804,6 +314903,11 @@ function getInstalledPluginsFilePath() {
|
|
|
314804
314903
|
function getInstalledPluginsV2FilePath() {
|
|
314805
314904
|
return join110(getPluginsDirectory(), "installed_plugins_v2.json");
|
|
314806
314905
|
}
|
|
314906
|
+
function clearInstalledPluginsCache() {
|
|
314907
|
+
installedPluginsCacheV2 = null;
|
|
314908
|
+
inMemoryInstalledPlugins = null;
|
|
314909
|
+
logForDebugging("Cleared installed plugins cache");
|
|
314910
|
+
}
|
|
314807
314911
|
function migrateToSinglePluginFile() {
|
|
314808
314912
|
if (migrationCompleted) {
|
|
314809
314913
|
return;
|
|
@@ -314894,6 +314998,9 @@ function cleanupLegacyCache(v2Data) {
|
|
|
314894
314998
|
});
|
|
314895
314999
|
}
|
|
314896
315000
|
}
|
|
315001
|
+
function resetMigrationState() {
|
|
315002
|
+
migrationCompleted = false;
|
|
315003
|
+
}
|
|
314897
315004
|
function readInstalledPluginsFileRaw() {
|
|
314898
315005
|
const fs4 = getFsImplementation();
|
|
314899
315006
|
const filePath = getInstalledPluginsFilePath();
|
|
@@ -314976,6 +315083,29 @@ function saveInstalledPluginsV2(data) {
|
|
|
314976
315083
|
throw error40;
|
|
314977
315084
|
}
|
|
314978
315085
|
}
|
|
315086
|
+
function addPluginInstallation(pluginId, scope, installPath, metadata, projectPath) {
|
|
315087
|
+
const data = loadInstalledPluginsFromDisk();
|
|
315088
|
+
const installations = data.plugins[pluginId] || [];
|
|
315089
|
+
const existingIndex = installations.findIndex((entry) => entry.scope === scope && entry.projectPath === projectPath);
|
|
315090
|
+
const newEntry = {
|
|
315091
|
+
scope,
|
|
315092
|
+
installPath,
|
|
315093
|
+
version: metadata.version,
|
|
315094
|
+
installedAt: metadata.installedAt || new Date().toISOString(),
|
|
315095
|
+
lastUpdated: new Date().toISOString(),
|
|
315096
|
+
gitCommitSha: metadata.gitCommitSha,
|
|
315097
|
+
...projectPath && { projectPath }
|
|
315098
|
+
};
|
|
315099
|
+
if (existingIndex >= 0) {
|
|
315100
|
+
installations[existingIndex] = newEntry;
|
|
315101
|
+
logForDebugging(`Updated installation for ${pluginId} at scope ${scope}`);
|
|
315102
|
+
} else {
|
|
315103
|
+
installations.push(newEntry);
|
|
315104
|
+
logForDebugging(`Added installation for ${pluginId} at scope ${scope}`);
|
|
315105
|
+
}
|
|
315106
|
+
data.plugins[pluginId] = installations;
|
|
315107
|
+
saveInstalledPluginsV2(data);
|
|
315108
|
+
}
|
|
314979
315109
|
function removePluginInstallation(pluginId, scope, projectPath) {
|
|
314980
315110
|
const data = loadInstalledPluginsFromDisk();
|
|
314981
315111
|
const installations = data.plugins[pluginId];
|
|
@@ -315040,6 +315170,64 @@ function updateInstallationPathOnDisk(pluginId, scope, projectPath, newPath, new
|
|
|
315040
315170
|
logForDebugging(`Cannot update ${pluginId} on disk: no installation for scope ${scope}`);
|
|
315041
315171
|
}
|
|
315042
315172
|
}
|
|
315173
|
+
function hasPendingUpdates() {
|
|
315174
|
+
const memoryState = getInMemoryInstalledPlugins();
|
|
315175
|
+
const diskState = loadInstalledPluginsFromDisk();
|
|
315176
|
+
for (const [pluginId, diskInstallations] of Object.entries(diskState.plugins)) {
|
|
315177
|
+
const memoryInstallations = memoryState.plugins[pluginId];
|
|
315178
|
+
if (!memoryInstallations)
|
|
315179
|
+
continue;
|
|
315180
|
+
for (const diskEntry of diskInstallations) {
|
|
315181
|
+
const memoryEntry = memoryInstallations.find((m) => m.scope === diskEntry.scope && m.projectPath === diskEntry.projectPath);
|
|
315182
|
+
if (memoryEntry && memoryEntry.installPath !== diskEntry.installPath) {
|
|
315183
|
+
return true;
|
|
315184
|
+
}
|
|
315185
|
+
}
|
|
315186
|
+
}
|
|
315187
|
+
return false;
|
|
315188
|
+
}
|
|
315189
|
+
function getPendingUpdateCount() {
|
|
315190
|
+
let count4 = 0;
|
|
315191
|
+
const memoryState = getInMemoryInstalledPlugins();
|
|
315192
|
+
const diskState = loadInstalledPluginsFromDisk();
|
|
315193
|
+
for (const [pluginId, diskInstallations] of Object.entries(diskState.plugins)) {
|
|
315194
|
+
const memoryInstallations = memoryState.plugins[pluginId];
|
|
315195
|
+
if (!memoryInstallations)
|
|
315196
|
+
continue;
|
|
315197
|
+
for (const diskEntry of diskInstallations) {
|
|
315198
|
+
const memoryEntry = memoryInstallations.find((m) => m.scope === diskEntry.scope && m.projectPath === diskEntry.projectPath);
|
|
315199
|
+
if (memoryEntry && memoryEntry.installPath !== diskEntry.installPath) {
|
|
315200
|
+
count4++;
|
|
315201
|
+
}
|
|
315202
|
+
}
|
|
315203
|
+
}
|
|
315204
|
+
return count4;
|
|
315205
|
+
}
|
|
315206
|
+
function getPendingUpdatesDetails() {
|
|
315207
|
+
const updates = [];
|
|
315208
|
+
const memoryState = getInMemoryInstalledPlugins();
|
|
315209
|
+
const diskState = loadInstalledPluginsFromDisk();
|
|
315210
|
+
for (const [pluginId, diskInstallations] of Object.entries(diskState.plugins)) {
|
|
315211
|
+
const memoryInstallations = memoryState.plugins[pluginId];
|
|
315212
|
+
if (!memoryInstallations)
|
|
315213
|
+
continue;
|
|
315214
|
+
for (const diskEntry of diskInstallations) {
|
|
315215
|
+
const memoryEntry = memoryInstallations.find((m) => m.scope === diskEntry.scope && m.projectPath === diskEntry.projectPath);
|
|
315216
|
+
if (memoryEntry && memoryEntry.installPath !== diskEntry.installPath) {
|
|
315217
|
+
updates.push({
|
|
315218
|
+
pluginId,
|
|
315219
|
+
scope: diskEntry.scope,
|
|
315220
|
+
oldVersion: memoryEntry.version || "unknown",
|
|
315221
|
+
newVersion: diskEntry.version || "unknown"
|
|
315222
|
+
});
|
|
315223
|
+
}
|
|
315224
|
+
}
|
|
315225
|
+
}
|
|
315226
|
+
return updates;
|
|
315227
|
+
}
|
|
315228
|
+
function resetInMemoryState() {
|
|
315229
|
+
inMemoryInstalledPlugins = null;
|
|
315230
|
+
}
|
|
315043
315231
|
async function initializeVersionedPlugins() {
|
|
315044
315232
|
migrateToSinglePluginFile();
|
|
315045
315233
|
try {
|
|
@@ -315124,6 +315312,49 @@ function addInstalledPlugin(pluginId, metadata, scope = "user", projectPath) {
|
|
|
315124
315312
|
saveInstalledPluginsV2(v2Data);
|
|
315125
315313
|
logForDebugging(`${isUpdate ? "Updated" : "Added"} installed plugin: ${pluginId} (scope: ${scope})`);
|
|
315126
315314
|
}
|
|
315315
|
+
function removeInstalledPlugin(pluginId) {
|
|
315316
|
+
const v2Data = loadInstalledPluginsFromDisk();
|
|
315317
|
+
const installations = v2Data.plugins[pluginId];
|
|
315318
|
+
if (!installations || installations.length === 0) {
|
|
315319
|
+
return;
|
|
315320
|
+
}
|
|
315321
|
+
const firstInstall = installations[0];
|
|
315322
|
+
const metadata = firstInstall ? {
|
|
315323
|
+
version: firstInstall.version || "unknown",
|
|
315324
|
+
installedAt: firstInstall.installedAt || new Date().toISOString(),
|
|
315325
|
+
lastUpdated: firstInstall.lastUpdated,
|
|
315326
|
+
installPath: firstInstall.installPath,
|
|
315327
|
+
gitCommitSha: firstInstall.gitCommitSha
|
|
315328
|
+
} : undefined;
|
|
315329
|
+
delete v2Data.plugins[pluginId];
|
|
315330
|
+
saveInstalledPluginsV2(v2Data);
|
|
315331
|
+
logForDebugging(`Removed installed plugin: ${pluginId}`);
|
|
315332
|
+
return metadata;
|
|
315333
|
+
}
|
|
315334
|
+
function deletePluginCache(installPath) {
|
|
315335
|
+
const fs4 = getFsImplementation();
|
|
315336
|
+
try {
|
|
315337
|
+
fs4.rmSync(installPath, { recursive: true, force: true });
|
|
315338
|
+
logForDebugging(`Deleted plugin cache at ${installPath}`);
|
|
315339
|
+
const cachePath2 = getPluginCachePath();
|
|
315340
|
+
if (installPath.includes("/cache/") && installPath.startsWith(cachePath2)) {
|
|
315341
|
+
const pluginDir = dirname46(installPath);
|
|
315342
|
+
if (pluginDir !== cachePath2 && pluginDir.startsWith(cachePath2)) {
|
|
315343
|
+
try {
|
|
315344
|
+
const contents = fs4.readdirSync(pluginDir);
|
|
315345
|
+
if (contents.length === 0) {
|
|
315346
|
+
fs4.rmdirSync(pluginDir);
|
|
315347
|
+
logForDebugging(`Deleted empty plugin directory at ${pluginDir}`);
|
|
315348
|
+
}
|
|
315349
|
+
} catch {}
|
|
315350
|
+
}
|
|
315351
|
+
}
|
|
315352
|
+
} catch (error40) {
|
|
315353
|
+
const errorMsg = errorMessage(error40);
|
|
315354
|
+
logError2(toError(error40));
|
|
315355
|
+
throw new Error(`Failed to delete plugin cache at ${installPath}: ${errorMsg}`);
|
|
315356
|
+
}
|
|
315357
|
+
}
|
|
315127
315358
|
async function getGitCommitSha(dirPath) {
|
|
315128
315359
|
const sha = await getHeadForDir(dirPath);
|
|
315129
315360
|
return sha ?? undefined;
|
|
@@ -321120,6 +321351,12 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
321120
321351
|
error: "rate_limit"
|
|
321121
321352
|
});
|
|
321122
321353
|
}
|
|
321354
|
+
if (error40 instanceof import_sdk10.APIError && error40.status === 429 && isGatewayQuotaExceededBody(error40.error)) {
|
|
321355
|
+
return createAssistantAPIErrorMessage({
|
|
321356
|
+
content: getGatewayQuotaExceededMessage(error40.error),
|
|
321357
|
+
error: "rate_limit"
|
|
321358
|
+
});
|
|
321359
|
+
}
|
|
321123
321360
|
if (error40 instanceof import_sdk10.APIError && error40.status === 429 && shouldProcessRateLimits(isTheusAISubscriber())) {
|
|
321124
321361
|
const rateLimitType = error40.headers?.get?.("theus-ratelimit-unified-representative-claim");
|
|
321125
321362
|
const overageStatus = error40.headers?.get?.("theus-ratelimit-unified-overage-status");
|
|
@@ -321236,7 +321473,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
321236
321473
|
if (process.env.USER_TYPE === "ant") {
|
|
321237
321474
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
321238
321475
|
|
|
321239
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
321476
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
321477
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
321241
321478
|
return createAssistantAPIErrorMessage({
|
|
321242
321479
|
content: baseMessage + rewindInstruction,
|
|
@@ -321272,7 +321509,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.36", BUILD_TIME: "1970-01
|
|
|
321272
321509
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
321273
321510
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
321274
321511
|
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.
|
|
321512
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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
321513
|
return createAssistantAPIErrorMessage({
|
|
321277
321514
|
content: msg,
|
|
321278
321515
|
error: "invalid_request"
|
|
@@ -321505,6 +321742,7 @@ var init_errors6 = __esm(() => {
|
|
|
321505
321742
|
init_analytics();
|
|
321506
321743
|
init_theusAiLimits();
|
|
321507
321744
|
init_rateLimitMocking();
|
|
321745
|
+
init_rateLimitMessages();
|
|
321508
321746
|
init_errorUtils();
|
|
321509
321747
|
import_sdk10 = __toESM(require_sdk(), 1);
|
|
321510
321748
|
});
|
|
@@ -331376,7 +331614,7 @@ function buildPrimarySection() {
|
|
|
331376
331614
|
});
|
|
331377
331615
|
return [{
|
|
331378
331616
|
label: "Version",
|
|
331379
|
-
value: { VERSION: "0.2.
|
|
331617
|
+
value: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
331618
|
}, {
|
|
331381
331619
|
label: "Session name",
|
|
331382
331620
|
value: nameValue
|
|
@@ -335192,7 +335430,7 @@ function Config({
|
|
|
335192
335430
|
}
|
|
335193
335431
|
})
|
|
335194
335432
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
335195
|
-
currentVersion: { VERSION: "0.2.
|
|
335433
|
+
currentVersion: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
335434
|
onChoice: (choice) => {
|
|
335197
335435
|
setShowSubmenu(null);
|
|
335198
335436
|
setTabsHidden(false);
|
|
@@ -335204,7 +335442,7 @@ function Config({
|
|
|
335204
335442
|
autoUpdatesChannel: "stable"
|
|
335205
335443
|
};
|
|
335206
335444
|
if (choice === "stay") {
|
|
335207
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
335445
|
+
newSettings.minimumVersion = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
335446
|
}
|
|
335209
335447
|
updateSettingsForSource("userSettings", newSettings);
|
|
335210
335448
|
setSettingsData((prev_27) => ({
|
|
@@ -343238,7 +343476,7 @@ function HelpV2(t0) {
|
|
|
343238
343476
|
let t6;
|
|
343239
343477
|
if ($2[31] !== tabs) {
|
|
343240
343478
|
t6 = /* @__PURE__ */ jsx_runtime216.jsx(Tabs, {
|
|
343241
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343479
|
+
title: `Theus v${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
343480
|
color: "professionalBlue",
|
|
343243
343481
|
defaultTab: "general",
|
|
343244
343482
|
children: tabs
|
|
@@ -352834,6 +353072,23 @@ var init_DiscoverPlugins = __esm(() => {
|
|
|
352834
353072
|
});
|
|
352835
353073
|
|
|
352836
353074
|
// services/plugins/pluginOperations.ts
|
|
353075
|
+
var exports_pluginOperations = {};
|
|
353076
|
+
__export(exports_pluginOperations, {
|
|
353077
|
+
updatePluginOp: () => updatePluginOp,
|
|
353078
|
+
uninstallPluginOp: () => uninstallPluginOp,
|
|
353079
|
+
setPluginEnabledOp: () => setPluginEnabledOp,
|
|
353080
|
+
isPluginEnabledAtProjectScope: () => isPluginEnabledAtProjectScope,
|
|
353081
|
+
isInstallableScope: () => isInstallableScope,
|
|
353082
|
+
installPluginOp: () => installPluginOp,
|
|
353083
|
+
getProjectPathForScope: () => getProjectPathForScope,
|
|
353084
|
+
getPluginInstallationFromV2: () => getPluginInstallationFromV2,
|
|
353085
|
+
enablePluginOp: () => enablePluginOp,
|
|
353086
|
+
disablePluginOp: () => disablePluginOp,
|
|
353087
|
+
disableAllPluginsOp: () => disableAllPluginsOp,
|
|
353088
|
+
assertInstallableScope: () => assertInstallableScope,
|
|
353089
|
+
VALID_UPDATE_SCOPES: () => VALID_UPDATE_SCOPES,
|
|
353090
|
+
VALID_INSTALLABLE_SCOPES: () => VALID_INSTALLABLE_SCOPES
|
|
353091
|
+
});
|
|
352837
353092
|
import { dirname as dirname55, join as join130 } from "path";
|
|
352838
353093
|
function assertInstallableScope(scope) {
|
|
352839
353094
|
if (!VALID_INSTALLABLE_SCOPES.includes(scope)) {
|
|
@@ -360389,6 +360644,11 @@ var init_ApproveApiKey = __esm(() => {
|
|
|
360389
360644
|
});
|
|
360390
360645
|
|
|
360391
360646
|
// components/Theus/TheusBanner.tsx
|
|
360647
|
+
function hasActiveSession() {
|
|
360648
|
+
if (!isTheusAuthEnabled())
|
|
360649
|
+
return true;
|
|
360650
|
+
return getOauthAccountInfo() !== undefined;
|
|
360651
|
+
}
|
|
360392
360652
|
function TheusBanner({ minimal, version: version2 }) {
|
|
360393
360653
|
const [themeName] = useTheme();
|
|
360394
360654
|
const theme = getTheme(themeName);
|
|
@@ -360405,16 +360665,30 @@ function TheusBanner({ minimal, version: version2 }) {
|
|
|
360405
360665
|
showFrame: !isCompact
|
|
360406
360666
|
}),
|
|
360407
360667
|
/* @__PURE__ */ jsx_runtime245.jsxs(ThemedBox_default, {
|
|
360668
|
+
flexDirection: "column",
|
|
360408
360669
|
marginTop: isCompact ? 1 : 0,
|
|
360409
360670
|
paddingLeft: isCompact ? 0 : 1,
|
|
360410
360671
|
children: [
|
|
360411
|
-
/* @__PURE__ */ jsx_runtime245.
|
|
360412
|
-
|
|
360413
|
-
|
|
360414
|
-
|
|
360672
|
+
/* @__PURE__ */ jsx_runtime245.jsxs(ThemedBox_default, {
|
|
360673
|
+
flexWrap: "wrap",
|
|
360674
|
+
children: [
|
|
360675
|
+
/* @__PURE__ */ jsx_runtime245.jsx(ThemedText, {
|
|
360676
|
+
bold: true,
|
|
360677
|
+
color: theme.peru,
|
|
360678
|
+
children: "THEUS CLI"
|
|
360679
|
+
}),
|
|
360680
|
+
version2 && /* @__PURE__ */ jsx_runtime245.jsx(Text, {
|
|
360681
|
+
children: ` \xB7 v${version2}`
|
|
360682
|
+
})
|
|
360683
|
+
]
|
|
360415
360684
|
}),
|
|
360416
360685
|
/* @__PURE__ */ jsx_runtime245.jsx(Text, {
|
|
360417
|
-
|
|
360686
|
+
wrap: "wrap",
|
|
360687
|
+
children: "Tu plan incluye el cat\xE1logo frontier. TITAN elige el modelo; t\xFA diriges."
|
|
360688
|
+
}),
|
|
360689
|
+
!hasActiveSession() && /* @__PURE__ */ jsx_runtime245.jsx(ThemedText, {
|
|
360690
|
+
dimColor: true,
|
|
360691
|
+
children: "\xBFPrimera vez? Escribe theus login"
|
|
360418
360692
|
})
|
|
360419
360693
|
]
|
|
360420
360694
|
})
|
|
@@ -360425,6 +360699,7 @@ var import_react143, jsx_runtime245, FULL_MIN_COLUMNS = 96, FULL_MIN_ROWS = 32;
|
|
|
360425
360699
|
var init_TheusBanner = __esm(() => {
|
|
360426
360700
|
init_ink2();
|
|
360427
360701
|
init_TerminalSizeContext();
|
|
360702
|
+
init_auth();
|
|
360428
360703
|
init_theme();
|
|
360429
360704
|
init_TheusLoginHero();
|
|
360430
360705
|
import_react143 = __toESM(require_react(), 1);
|
|
@@ -361312,7 +361587,7 @@ function Onboarding({
|
|
|
361312
361587
|
flexDirection: "column",
|
|
361313
361588
|
children: [
|
|
361314
361589
|
/* @__PURE__ */ jsx_runtime249.jsx(TheusBanner, {
|
|
361315
|
-
version: { VERSION: "0.2.
|
|
361590
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
361591
|
}),
|
|
361317
361592
|
/* @__PURE__ */ jsx_runtime249.jsxs(ThemedBox_default, {
|
|
361318
361593
|
flexDirection: "column",
|
|
@@ -361657,9 +361932,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
361657
361932
|
return [];
|
|
361658
361933
|
}
|
|
361659
361934
|
}
|
|
361660
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
361935
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
361936
|
if (process.env.USER_TYPE === "ant") {
|
|
361662
|
-
const changelog = { VERSION: "0.2.
|
|
361937
|
+
const changelog = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
361938
|
if (changelog) {
|
|
361664
361939
|
const commits = changelog.trim().split(`
|
|
361665
361940
|
`).filter(Boolean);
|
|
@@ -365861,7 +366136,7 @@ var init_Messages = __esm(() => {
|
|
|
365861
366136
|
let t1;
|
|
365862
366137
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365863
366138
|
t1 = /* @__PURE__ */ jsx_runtime261.jsx(TheusSessionHeader, {
|
|
365864
|
-
version: { VERSION: "0.2.
|
|
366139
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
366140
|
});
|
|
365866
366141
|
$2[0] = t1;
|
|
365867
366142
|
} else {
|
|
@@ -394327,7 +394602,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
394327
394602
|
smapsRollup,
|
|
394328
394603
|
platform: process.platform,
|
|
394329
394604
|
nodeVersion: process.version,
|
|
394330
|
-
ccVersion: { VERSION: "0.2.
|
|
394605
|
+
ccVersion: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
394606
|
};
|
|
394332
394607
|
}
|
|
394333
394608
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -394913,7 +395188,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
394913
395188
|
var call57 = async () => {
|
|
394914
395189
|
return {
|
|
394915
395190
|
type: "text",
|
|
394916
|
-
value: { VERSION: "0.2.
|
|
395191
|
+
value: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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
395192
|
};
|
|
394918
395193
|
}, version2, version_default;
|
|
394919
395194
|
var init_version = __esm(() => {
|
|
@@ -399355,13 +399630,13 @@ async function updateReleaseBundle() {
|
|
|
399355
399630
|
await gracefulShutdown(1);
|
|
399356
399631
|
return;
|
|
399357
399632
|
}
|
|
399358
|
-
if (gte({ VERSION: "0.2.
|
|
399359
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399633
|
+
if (gte({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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)) {
|
|
399634
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399635
|
`);
|
|
399361
399636
|
await gracefulShutdown(0);
|
|
399362
399637
|
return;
|
|
399363
399638
|
}
|
|
399364
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
399639
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399640
|
`);
|
|
399366
399641
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
399367
399642
|
`);
|
|
@@ -399395,7 +399670,7 @@ async function updateReleaseBundle() {
|
|
|
399395
399670
|
return;
|
|
399396
399671
|
}
|
|
399397
399672
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
399398
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399673
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399674
|
`);
|
|
399400
399675
|
await regenerateCompletionCache();
|
|
399401
399676
|
} finally {
|
|
@@ -399408,7 +399683,7 @@ async function updateReleaseBundle() {
|
|
|
399408
399683
|
async function update() {
|
|
399409
399684
|
logEvent("tengu_update_check", {});
|
|
399410
399685
|
await updateNaupa();
|
|
399411
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
399686
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399687
|
`);
|
|
399413
399688
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
399414
399689
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -399487,8 +399762,8 @@ async function update() {
|
|
|
399487
399762
|
writeToStdout(`Theus is managed by Homebrew.
|
|
399488
399763
|
`);
|
|
399489
399764
|
const latest = await getLatestVersion(channel2);
|
|
399490
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399491
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399765
|
+
if (latest && !gte({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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)) {
|
|
399766
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399767
|
`);
|
|
399493
399768
|
writeToStdout(`
|
|
399494
399769
|
`);
|
|
@@ -399504,8 +399779,8 @@ async function update() {
|
|
|
399504
399779
|
writeToStdout(`Theus is managed by winget.
|
|
399505
399780
|
`);
|
|
399506
399781
|
const latest = await getLatestVersion(channel2);
|
|
399507
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399508
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399782
|
+
if (latest && !gte({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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)) {
|
|
399783
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399784
|
`);
|
|
399510
399785
|
writeToStdout(`
|
|
399511
399786
|
`);
|
|
@@ -399521,8 +399796,8 @@ async function update() {
|
|
|
399521
399796
|
writeToStdout(`Theus is managed by apk.
|
|
399522
399797
|
`);
|
|
399523
399798
|
const latest = await getLatestVersion(channel2);
|
|
399524
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399525
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399799
|
+
if (latest && !gte({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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)) {
|
|
399800
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399801
|
`);
|
|
399527
399802
|
writeToStdout(`
|
|
399528
399803
|
`);
|
|
@@ -399587,11 +399862,11 @@ async function update() {
|
|
|
399587
399862
|
`);
|
|
399588
399863
|
await gracefulShutdown(1);
|
|
399589
399864
|
}
|
|
399590
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
399591
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399865
|
+
if (result.latestVersion === { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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) {
|
|
399866
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399867
|
`);
|
|
399593
399868
|
} else {
|
|
399594
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399869
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399870
|
`);
|
|
399596
399871
|
await regenerateCompletionCache();
|
|
399597
399872
|
}
|
|
@@ -399610,9 +399885,9 @@ async function update() {
|
|
|
399610
399885
|
await removeInstalledSymlink();
|
|
399611
399886
|
}
|
|
399612
399887
|
logForDebugging("update: Checking npm registry for latest version");
|
|
399613
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
399888
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399889
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
399615
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
399890
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399891
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
399617
399892
|
const latestVersion = await getLatestVersion(channel2);
|
|
399618
399893
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -399632,7 +399907,7 @@ async function update() {
|
|
|
399632
399907
|
`);
|
|
399633
399908
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
399634
399909
|
`);
|
|
399635
|
-
if ({ VERSION: "0.2.
|
|
399910
|
+
if ({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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
399911
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
399637
399912
|
`);
|
|
399638
399913
|
}
|
|
@@ -399644,19 +399919,19 @@ async function update() {
|
|
|
399644
399919
|
`);
|
|
399645
399920
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
399646
399921
|
`);
|
|
399647
|
-
const packageName = { VERSION: "0.2.
|
|
399922
|
+
const packageName = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399923
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
399649
399924
|
`);
|
|
399650
399925
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
399651
399926
|
`);
|
|
399652
399927
|
await gracefulShutdown(1);
|
|
399653
399928
|
}
|
|
399654
|
-
if (gte({ VERSION: "0.2.
|
|
399655
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399929
|
+
if (gte({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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)) {
|
|
399930
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399931
|
`);
|
|
399657
399932
|
await gracefulShutdown(0);
|
|
399658
399933
|
}
|
|
399659
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
399934
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399935
|
`);
|
|
399661
399936
|
writeToStdout(`Installing update...
|
|
399662
399937
|
`);
|
|
@@ -399701,7 +399976,7 @@ async function update() {
|
|
|
399701
399976
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
399702
399977
|
switch (status2) {
|
|
399703
399978
|
case "success":
|
|
399704
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399979
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399980
|
`);
|
|
399706
399981
|
await regenerateCompletionCache();
|
|
399707
399982
|
break;
|
|
@@ -399711,7 +399986,7 @@ async function update() {
|
|
|
399711
399986
|
if (useLocalUpdate) {
|
|
399712
399987
|
process.stderr.write(`Try manually updating with:
|
|
399713
399988
|
`);
|
|
399714
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399989
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
399990
|
`);
|
|
399716
399991
|
} else {
|
|
399717
399992
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -399727,7 +400002,7 @@ async function update() {
|
|
|
399727
400002
|
if (useLocalUpdate) {
|
|
399728
400003
|
process.stderr.write(`Try manually updating with:
|
|
399729
400004
|
`);
|
|
399730
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
400005
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
400006
|
`);
|
|
399732
400007
|
} else {
|
|
399733
400008
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -408804,7 +409079,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
408804
409079
|
init_settings2();
|
|
408805
409080
|
init_slowOperations();
|
|
408806
409081
|
init_uuid();
|
|
408807
|
-
VERSION4 = { VERSION: "0.2.
|
|
409082
|
+
VERSION4 = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
409083
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
408809
409084
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
408810
409085
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -410009,7 +410284,7 @@ var init_filesystem = __esm(() => {
|
|
|
410009
410284
|
});
|
|
410010
410285
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
410011
410286
|
const nonce = randomBytes21(16).toString("hex");
|
|
410012
|
-
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
410287
|
+
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
410288
|
});
|
|
410014
410289
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
410015
410290
|
});
|
|
@@ -415188,7 +415463,7 @@ function getSimpleDoingTasksSection() {
|
|
|
415188
415463
|
];
|
|
415189
415464
|
const userHelpSubitems = [
|
|
415190
415465
|
`/help: Get help with using Theus`,
|
|
415191
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
415466
|
+
`To give feedback, users should ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
415467
|
];
|
|
415193
415468
|
const items = [
|
|
415194
415469
|
`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 +416363,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
416088
416363
|
}
|
|
416089
416364
|
function computeFingerprintFromMessages(messages) {
|
|
416090
416365
|
const firstMessageText = extractFirstMessageText(messages);
|
|
416091
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
416366
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
416367
|
}
|
|
416093
416368
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
416094
416369
|
var init_fingerprint = () => {};
|
|
@@ -418648,7 +418923,7 @@ async function sideQuery(opts) {
|
|
|
418648
418923
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
418649
418924
|
}
|
|
418650
418925
|
const messageText = extractFirstUserMessageText(messages);
|
|
418651
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
418926
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
418927
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
418653
418928
|
const systemBlocks = [
|
|
418654
418929
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -419951,7 +420226,7 @@ async function handleMemories(state) {
|
|
|
419951
420226
|
async function runProjectContextMcpServer() {
|
|
419952
420227
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
419953
420228
|
const state = new ProjectContextState(projectRoot);
|
|
419954
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
420229
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
420230
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
419956
420231
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
419957
420232
|
name: t.name,
|
|
@@ -421931,7 +422206,7 @@ function createBridgeLogger(options2) {
|
|
|
421931
422206
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
421932
422207
|
regenerateQr(connectUrl);
|
|
421933
422208
|
if (verbose) {
|
|
421934
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
422209
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
422210
|
`);
|
|
421936
422211
|
}
|
|
421937
422212
|
if (verbose) {
|
|
@@ -422904,7 +423179,7 @@ function appendToLog(path19, message) {
|
|
|
422904
423179
|
cwd: getFsImplementation().cwd(),
|
|
422905
423180
|
userType: process.env.USER_TYPE,
|
|
422906
423181
|
sessionId: getSessionId(),
|
|
422907
|
-
version: { VERSION: "0.2.
|
|
423182
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
423183
|
};
|
|
422909
423184
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
422910
423185
|
}
|
|
@@ -424174,7 +424449,7 @@ Spawn mode for this project:
|
|
|
424174
424449
|
const api2 = createBridgeApiClient({
|
|
424175
424450
|
baseUrl,
|
|
424176
424451
|
getAccessToken: getBridgeAccessToken2,
|
|
424177
|
-
runnerVersion: { VERSION: "0.2.
|
|
424452
|
+
runnerVersion: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
424453
|
onDebug: logForDebugging,
|
|
424179
424454
|
onAuth401: handleOAuth401Error2,
|
|
424180
424455
|
getTrustedDeviceToken
|
|
@@ -424412,7 +424687,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
424412
424687
|
const api2 = createBridgeApiClient({
|
|
424413
424688
|
baseUrl,
|
|
424414
424689
|
getAccessToken: opts.getAccessToken,
|
|
424415
|
-
runnerVersion: { VERSION: "0.2.
|
|
424690
|
+
runnerVersion: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
424691
|
onDebug: log2,
|
|
424417
424692
|
onAuth401: opts.onAuth401,
|
|
424418
424693
|
getTrustedDeviceToken
|
|
@@ -428476,7 +428751,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
428476
428751
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
428477
428752
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
428478
428753
|
betas: getSdkBetas(),
|
|
428479
|
-
theus_code_version: { VERSION: "0.2.
|
|
428754
|
+
theus_code_version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
428755
|
output_style: outputStyle2,
|
|
428481
428756
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
428482
428757
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -428516,8 +428791,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
428516
428791
|
}
|
|
428517
428792
|
async function checkEnvLessBridgeMinVersion() {
|
|
428518
428793
|
const cfg = await getEnvLessBridgeConfig();
|
|
428519
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
428520
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
428794
|
+
if (cfg.min_version && lt({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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)) {
|
|
428795
|
+
return `Your version of Theus (${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
428796
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
428522
428797
|
}
|
|
428523
428798
|
return null;
|
|
@@ -430840,7 +431115,7 @@ async function initBridgeCore(params) {
|
|
|
430840
431115
|
const rawApi = createBridgeApiClient({
|
|
430841
431116
|
baseUrl,
|
|
430842
431117
|
getAccessToken,
|
|
430843
|
-
runnerVersion: { VERSION: "0.2.
|
|
431118
|
+
runnerVersion: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
431119
|
onDebug: logForDebugging,
|
|
430845
431120
|
onAuth401,
|
|
430846
431121
|
getTrustedDeviceToken
|
|
@@ -447581,7 +447856,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
447581
447856
|
function getSemverPart(version3) {
|
|
447582
447857
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
447583
447858
|
}
|
|
447584
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
447859
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
447860
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
|
|
447586
447861
|
if (!updatedVersion) {
|
|
447587
447862
|
return null;
|
|
@@ -447621,7 +447896,7 @@ function AutoUpdater({
|
|
|
447621
447896
|
return;
|
|
447622
447897
|
}
|
|
447623
447898
|
if (false) {}
|
|
447624
|
-
const currentVersion = { VERSION: "0.2.
|
|
447899
|
+
const currentVersion = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
447900
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
447626
447901
|
let latestVersion = await getLatestVersion(channel2);
|
|
447627
447902
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -447757,7 +448032,7 @@ function AutoUpdater({
|
|
|
447757
448032
|
" ",
|
|
447758
448033
|
/* @__PURE__ */ jsx_runtime406.jsx(ThemedText, {
|
|
447759
448034
|
bold: true,
|
|
447760
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
448035
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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.38", BUILD_TIME: "1970-01-01T00:00:00.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
448036
|
})
|
|
447762
448037
|
]
|
|
447763
448038
|
})
|
|
@@ -447834,12 +448109,12 @@ function NativeAutoUpdater({
|
|
|
447834
448109
|
logEvent("tengu_native_auto_updater_start", {});
|
|
447835
448110
|
try {
|
|
447836
448111
|
const maxVersion = await getMaxVersion();
|
|
447837
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
448112
|
+
if (maxVersion && gt({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
448113
|
const msg = await getMaxVersionMessage();
|
|
447839
448114
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
447840
448115
|
}
|
|
447841
448116
|
const result = await installLatest(channel2);
|
|
447842
|
-
const currentVersion = { VERSION: "0.2.
|
|
448117
|
+
const currentVersion = { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
448118
|
const latencyMs = Date.now() - startTime2;
|
|
447844
448119
|
if (result.lockFailed) {
|
|
447845
448120
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -447976,17 +448251,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
447976
448251
|
const maxVersion = await getMaxVersion();
|
|
447977
448252
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
447978
448253
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
447979
|
-
if (gte({ VERSION: "0.2.
|
|
447980
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
448254
|
+
if (gte({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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)) {
|
|
448255
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
448256
|
setUpdateAvailable(false);
|
|
447982
448257
|
return;
|
|
447983
448258
|
}
|
|
447984
448259
|
latest = maxVersion;
|
|
447985
448260
|
}
|
|
447986
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
448261
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
448262
|
setUpdateAvailable(!!hasUpdate);
|
|
447988
448263
|
if (hasUpdate) {
|
|
447989
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
448264
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
448265
|
}
|
|
447991
448266
|
};
|
|
447992
448267
|
$2[0] = t1;
|
|
@@ -448020,7 +448295,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448020
448295
|
wrap: "truncate",
|
|
448021
448296
|
children: [
|
|
448022
448297
|
"currentVersion: ",
|
|
448023
|
-
{ VERSION: "0.2.
|
|
448298
|
+
{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
448299
|
]
|
|
448025
448300
|
});
|
|
448026
448301
|
$2[3] = verbose;
|
|
@@ -455893,7 +456168,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
455893
456168
|
project_dir: getOriginalCwd(),
|
|
455894
456169
|
added_dirs: addedDirs
|
|
455895
456170
|
},
|
|
455896
|
-
version: { VERSION: "0.2.
|
|
456171
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
456172
|
output_style: {
|
|
455898
456173
|
name: outputStyleName
|
|
455899
456174
|
},
|
|
@@ -467313,7 +467588,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
467313
467588
|
} catch {}
|
|
467314
467589
|
const data = {
|
|
467315
467590
|
trigger,
|
|
467316
|
-
version: { VERSION: "0.2.
|
|
467591
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
467592
|
platform: process.platform,
|
|
467318
467593
|
transcript,
|
|
467319
467594
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -480320,7 +480595,7 @@ function completeOnboarding() {
|
|
|
480320
480595
|
saveGlobalConfig((current) => ({
|
|
480321
480596
|
...current,
|
|
480322
480597
|
hasCompletedOnboarding: true,
|
|
480323
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
480598
|
+
lastOnboardingVersion: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
480599
|
}));
|
|
480325
480600
|
}
|
|
480326
480601
|
function showDialog(root2, renderer) {
|
|
@@ -485737,6 +486012,79 @@ var init_setup4 = __esm(() => {
|
|
|
485737
486012
|
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
486013
|
});
|
|
485739
486014
|
|
|
486015
|
+
// services/arsenalBundled.ts
|
|
486016
|
+
var exports_arsenalBundled = {};
|
|
486017
|
+
__export(exports_arsenalBundled, {
|
|
486018
|
+
isArsenalAutoInstallEnabled: () => isArsenalAutoInstallEnabled,
|
|
486019
|
+
ensureBundledArsenalInstalled: () => ensureBundledArsenalInstalled
|
|
486020
|
+
});
|
|
486021
|
+
import { existsSync as existsSync26, readFileSync as readFileSync30 } from "fs";
|
|
486022
|
+
import { dirname as dirname75, join as join174 } from "path";
|
|
486023
|
+
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
486024
|
+
function isArsenalAutoInstallEnabled() {
|
|
486025
|
+
return process.env.THEUS_NO_ARSENAL !== "1";
|
|
486026
|
+
}
|
|
486027
|
+
function findBundledArsenalDir() {
|
|
486028
|
+
const here = dirname75(fileURLToPath9(import.meta.url));
|
|
486029
|
+
for (const candidate of [
|
|
486030
|
+
join174(here, "vendor", "theus-arsenal"),
|
|
486031
|
+
join174(here, "..", "vendor", "theus-arsenal")
|
|
486032
|
+
]) {
|
|
486033
|
+
if (existsSync26(join174(candidate, ".theus-plugin", "plugin.json"))) {
|
|
486034
|
+
return candidate;
|
|
486035
|
+
}
|
|
486036
|
+
}
|
|
486037
|
+
return null;
|
|
486038
|
+
}
|
|
486039
|
+
function readBundledVersion(bundledDir) {
|
|
486040
|
+
try {
|
|
486041
|
+
const manifest = JSON.parse(readFileSync30(join174(bundledDir, ".theus-plugin", "plugin.json"), "utf8"));
|
|
486042
|
+
return typeof manifest.version === "string" ? manifest.version : null;
|
|
486043
|
+
} catch {
|
|
486044
|
+
return null;
|
|
486045
|
+
}
|
|
486046
|
+
}
|
|
486047
|
+
function isNewerVersion(a2, b) {
|
|
486048
|
+
const pa = a2.split(".").map((n3) => Number.parseInt(n3, 10) || 0);
|
|
486049
|
+
const pb = b.split(".").map((n3) => Number.parseInt(n3, 10) || 0);
|
|
486050
|
+
for (let i3 = 0;i3 < 3; i3++) {
|
|
486051
|
+
if ((pa[i3] ?? 0) > (pb[i3] ?? 0))
|
|
486052
|
+
return true;
|
|
486053
|
+
if ((pa[i3] ?? 0) < (pb[i3] ?? 0))
|
|
486054
|
+
return false;
|
|
486055
|
+
}
|
|
486056
|
+
return false;
|
|
486057
|
+
}
|
|
486058
|
+
async function ensureBundledArsenalInstalled() {
|
|
486059
|
+
const bundledDir = findBundledArsenalDir();
|
|
486060
|
+
if (!bundledDir)
|
|
486061
|
+
return;
|
|
486062
|
+
const bundledVersion = readBundledVersion(bundledDir);
|
|
486063
|
+
if (!bundledVersion)
|
|
486064
|
+
return;
|
|
486065
|
+
const { loadInstalledPluginsV2: loadInstalledPluginsV22 } = await Promise.resolve().then(() => (init_installedPluginsManager(), exports_installedPluginsManager));
|
|
486066
|
+
const installed = loadInstalledPluginsV22().plugins?.[PLUGIN_ID];
|
|
486067
|
+
const current = Array.isArray(installed) ? installed.find((entry) => entry && typeof entry.version === "string") : undefined;
|
|
486068
|
+
if (current?.version && !isNewerVersion(bundledVersion, current.version)) {
|
|
486069
|
+
return;
|
|
486070
|
+
}
|
|
486071
|
+
const { loadKnownMarketplacesConfigSafe: loadKnownMarketplacesConfigSafe2, addMarketplaceSource: addMarketplaceSource2 } = await Promise.resolve().then(() => (init_marketplaceManager(), exports_marketplaceManager));
|
|
486072
|
+
const known = await loadKnownMarketplacesConfigSafe2();
|
|
486073
|
+
if (!known[MARKETPLACE_NAME]) {
|
|
486074
|
+
await addMarketplaceSource2({ source: "directory", path: bundledDir });
|
|
486075
|
+
}
|
|
486076
|
+
const { installPluginOp: installPluginOp2, updatePluginOp: updatePluginOp2 } = await Promise.resolve().then(() => (init_pluginOperations(), exports_pluginOperations));
|
|
486077
|
+
if (current?.version) {
|
|
486078
|
+
await updatePluginOp2(PLUGIN_ID, current.scope ?? "user");
|
|
486079
|
+
} else {
|
|
486080
|
+
await installPluginOp2(PLUGIN_ID, "user");
|
|
486081
|
+
}
|
|
486082
|
+
}
|
|
486083
|
+
var PLUGIN_NAME = "arsenal", MARKETPLACE_NAME = "theus", PLUGIN_ID;
|
|
486084
|
+
var init_arsenalBundled = __esm(() => {
|
|
486085
|
+
PLUGIN_ID = `${PLUGIN_NAME}@${MARKETPLACE_NAME}`;
|
|
486086
|
+
});
|
|
486087
|
+
|
|
485740
486088
|
// services/SessionMemory/sessionMemory.ts
|
|
485741
486089
|
import { writeFile as writeFile57 } from "fs/promises";
|
|
485742
486090
|
function isSessionMemoryGateEnabled() {
|
|
@@ -485937,7 +486285,7 @@ var init_sessionMemory = __esm(() => {
|
|
|
485937
486285
|
// utils/iTermBackup.ts
|
|
485938
486286
|
import { copyFile as copyFile10, stat as stat51 } from "fs/promises";
|
|
485939
486287
|
import { homedir as homedir50 } from "os";
|
|
485940
|
-
import { join as
|
|
486288
|
+
import { join as join175 } from "path";
|
|
485941
486289
|
function markITerm2SetupComplete() {
|
|
485942
486290
|
saveGlobalConfig((current) => ({
|
|
485943
486291
|
...current,
|
|
@@ -485952,7 +486300,7 @@ function getIterm2RecoveryInfo() {
|
|
|
485952
486300
|
};
|
|
485953
486301
|
}
|
|
485954
486302
|
function getITerm2PlistPath() {
|
|
485955
|
-
return
|
|
486303
|
+
return join175(homedir50(), "Library", "Preferences", "com.googlecode.iterm2.plist");
|
|
485956
486304
|
}
|
|
485957
486305
|
async function checkAndRestoreITerm2Backup() {
|
|
485958
486306
|
const { inProgress, backupPath } = getIterm2RecoveryInfo();
|
|
@@ -487532,7 +487880,7 @@ var init_sessionUrl = __esm(() => {
|
|
|
487532
487880
|
|
|
487533
487881
|
// utils/plugins/zipCacheAdapters.ts
|
|
487534
487882
|
import { readFile as readFile57 } from "fs/promises";
|
|
487535
|
-
import { join as
|
|
487883
|
+
import { join as join176 } from "path";
|
|
487536
487884
|
async function readZipCacheKnownMarketplaces() {
|
|
487537
487885
|
try {
|
|
487538
487886
|
const content = await readFile57(getZipCacheKnownMarketplacesPath(), "utf-8");
|
|
@@ -487557,13 +487905,13 @@ async function saveMarketplaceJsonToZipCache(marketplaceName, installLocation) {
|
|
|
487557
487905
|
const content = await readMarketplaceJsonContent(installLocation);
|
|
487558
487906
|
if (content !== null) {
|
|
487559
487907
|
const relPath = getMarketplaceJsonRelativePath(marketplaceName);
|
|
487560
|
-
await atomicWriteToZipCache(
|
|
487908
|
+
await atomicWriteToZipCache(join176(zipCachePath, relPath), content);
|
|
487561
487909
|
}
|
|
487562
487910
|
}
|
|
487563
487911
|
async function readMarketplaceJsonContent(dir) {
|
|
487564
487912
|
const candidates = [
|
|
487565
|
-
|
|
487566
|
-
|
|
487913
|
+
join176(dir, ".theus-plugin", "marketplace.json"),
|
|
487914
|
+
join176(dir, "marketplace.json"),
|
|
487567
487915
|
dir
|
|
487568
487916
|
];
|
|
487569
487917
|
for (const candidate of candidates) {
|
|
@@ -487699,7 +488047,7 @@ __export(exports_print, {
|
|
|
487699
488047
|
canBatchWith: () => canBatchWith
|
|
487700
488048
|
});
|
|
487701
488049
|
import { readFile as readFile58, stat as stat52 } from "fs/promises";
|
|
487702
|
-
import { dirname as
|
|
488050
|
+
import { dirname as dirname76 } from "path";
|
|
487703
488051
|
import { cwd as cwd2 } from "process";
|
|
487704
488052
|
import { randomUUID as randomUUID58 } from "crypto";
|
|
487705
488053
|
function trackReceivedMessageUuid(uuid3) {
|
|
@@ -490187,7 +490535,7 @@ async function loadInitialMessages(setAppState, options2) {
|
|
|
490187
490535
|
if (false) {}
|
|
490188
490536
|
if (!options2.forkSession) {
|
|
490189
490537
|
if (result.sessionId) {
|
|
490190
|
-
switchSession(asSessionId(result.sessionId), result.fullPath ?
|
|
490538
|
+
switchSession(asSessionId(result.sessionId), result.fullPath ? dirname76(result.fullPath) : null);
|
|
490191
490539
|
if (persistSession) {
|
|
490192
490540
|
await resetSessionFilePointer();
|
|
490193
490541
|
}
|
|
@@ -490285,7 +490633,7 @@ async function loadInitialMessages(setAppState, options2) {
|
|
|
490285
490633
|
}
|
|
490286
490634
|
if (false) {}
|
|
490287
490635
|
if (!options2.forkSession && result.sessionId) {
|
|
490288
|
-
switchSession(asSessionId(result.sessionId), result.fullPath ?
|
|
490636
|
+
switchSession(asSessionId(result.sessionId), result.fullPath ? dirname76(result.fullPath) : null);
|
|
490289
490637
|
if (persistSession) {
|
|
490290
490638
|
await resetSessionFilePointer();
|
|
490291
490639
|
}
|
|
@@ -491135,7 +491483,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
491135
491483
|
setCwd(cwd3);
|
|
491136
491484
|
const server2 = new Server({
|
|
491137
491485
|
name: "theus/tengu",
|
|
491138
|
-
version: { VERSION: "0.2.
|
|
491486
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
491487
|
}, {
|
|
491140
491488
|
capabilities: {
|
|
491141
491489
|
tools: {}
|
|
@@ -491267,14 +491615,14 @@ __export(exports_theusDesktop, {
|
|
|
491267
491615
|
});
|
|
491268
491616
|
import { readdir as readdir33, readFile as readFile59, stat as stat53 } from "fs/promises";
|
|
491269
491617
|
import { homedir as homedir51 } from "os";
|
|
491270
|
-
import { join as
|
|
491618
|
+
import { join as join177 } from "path";
|
|
491271
491619
|
async function getTheusDesktopConfigPath() {
|
|
491272
491620
|
const platform7 = getPlatform();
|
|
491273
491621
|
if (!SUPPORTED_PLATFORMS.includes(platform7)) {
|
|
491274
491622
|
throw new Error(`Unsupported platform: ${platform7} - Theus Desktop integration only works on macOS and WSL.`);
|
|
491275
491623
|
}
|
|
491276
491624
|
if (platform7 === "macos") {
|
|
491277
|
-
return
|
|
491625
|
+
return join177(homedir51(), "Library", "Application Support", "Theus", "theus_desktop_config.json");
|
|
491278
491626
|
}
|
|
491279
491627
|
const windowsHome = process.env.USERPROFILE ? process.env.USERPROFILE.replace(/\\/g, "/") : null;
|
|
491280
491628
|
if (windowsHome) {
|
|
@@ -491293,7 +491641,7 @@ async function getTheusDesktopConfigPath() {
|
|
|
491293
491641
|
if (user.name === "Public" || user.name === "Default" || user.name === "Default User" || user.name === "All Users") {
|
|
491294
491642
|
continue;
|
|
491295
491643
|
}
|
|
491296
|
-
const potentialConfigPath =
|
|
491644
|
+
const potentialConfigPath = join177(usersDir, user.name, "AppData", "Roaming", "Theus", "theus_desktop_config.json");
|
|
491297
491645
|
try {
|
|
491298
491646
|
await stat53(potentialConfigPath);
|
|
491299
491647
|
return potentialConfigPath;
|
|
@@ -491689,7 +492037,7 @@ __export(exports_plugins, {
|
|
|
491689
492037
|
VALID_UPDATE_SCOPES: () => VALID_UPDATE_SCOPES,
|
|
491690
492038
|
VALID_INSTALLABLE_SCOPES: () => VALID_INSTALLABLE_SCOPES
|
|
491691
492039
|
});
|
|
491692
|
-
import { basename as basename68, dirname as
|
|
492040
|
+
import { basename as basename68, dirname as dirname77 } from "path";
|
|
491693
492041
|
function handleMarketplaceError(error40, action2) {
|
|
491694
492042
|
logError2(error40);
|
|
491695
492043
|
cliError(`${figures_default.cross} Failed to ${action2}: ${errorMessage(error40)}`);
|
|
@@ -491722,9 +492070,9 @@ async function pluginValidateHandler(manifestPath, options2) {
|
|
|
491722
492070
|
printValidationResult(result);
|
|
491723
492071
|
let contentResults = [];
|
|
491724
492072
|
if (result.fileType === "plugin") {
|
|
491725
|
-
const manifestDir =
|
|
492073
|
+
const manifestDir = dirname77(result.filePath);
|
|
491726
492074
|
if (basename68(manifestDir) === ".theus-plugin") {
|
|
491727
|
-
contentResults = await validatePluginContents(
|
|
492075
|
+
contentResults = await validatePluginContents(dirname77(manifestDir));
|
|
491728
492076
|
for (const r of contentResults) {
|
|
491729
492077
|
console.log(`Validating ${r.fileType}: ${r.filePath}
|
|
491730
492078
|
`);
|
|
@@ -492202,12 +492550,12 @@ __export(exports_install, {
|
|
|
492202
492550
|
install: () => install
|
|
492203
492551
|
});
|
|
492204
492552
|
import { homedir as homedir52 } from "os";
|
|
492205
|
-
import { join as
|
|
492553
|
+
import { join as join178 } from "path";
|
|
492206
492554
|
function getInstallationPath2() {
|
|
492207
492555
|
const isWindows2 = env3.platform === "win32";
|
|
492208
492556
|
const homeDir = homedir52();
|
|
492209
492557
|
if (isWindows2) {
|
|
492210
|
-
const windowsPath =
|
|
492558
|
+
const windowsPath = join178(homeDir, ".local", "bin", "theus.exe");
|
|
492211
492559
|
return windowsPath.replace(/\//g, "\\");
|
|
492212
492560
|
}
|
|
492213
492561
|
return "~/.local/bin/theus";
|
|
@@ -492577,7 +492925,7 @@ async function setupTokenHandler(root2) {
|
|
|
492577
492925
|
gap: 1,
|
|
492578
492926
|
children: [
|
|
492579
492927
|
/* @__PURE__ */ jsx_runtime493.jsx(TheusBanner, {
|
|
492580
|
-
version: { VERSION: "0.2.
|
|
492928
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
492929
|
}),
|
|
492582
492930
|
showAuthWarning && /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
|
|
492583
492931
|
flexDirection: "column",
|
|
@@ -492747,7 +493095,7 @@ __export(exports_main2, {
|
|
|
492747
493095
|
startDeferredPrefetches: () => startDeferredPrefetches,
|
|
492748
493096
|
main: () => main
|
|
492749
493097
|
});
|
|
492750
|
-
import { readFileSync as
|
|
493098
|
+
import { readFileSync as readFileSync31 } from "fs";
|
|
492751
493099
|
import { resolve as resolve52 } from "path";
|
|
492752
493100
|
function logManagedSettings() {
|
|
492753
493101
|
try {
|
|
@@ -492903,7 +493251,7 @@ function loadSettingsFromFlag(settingsFile) {
|
|
|
492903
493251
|
resolvedPath: resolvedSettingsPath
|
|
492904
493252
|
} = safeResolvePath(getFsImplementation(), settingsFile);
|
|
492905
493253
|
try {
|
|
492906
|
-
|
|
493254
|
+
readFileSync31(resolvedSettingsPath, "utf8");
|
|
492907
493255
|
} catch (e) {
|
|
492908
493256
|
if (isENOENT(e)) {
|
|
492909
493257
|
process.stderr.write(source_default.red(`Error: Settings file not found: ${resolvedSettingsPath}
|
|
@@ -493336,7 +493684,7 @@ ${getTmuxInstallInstructions2()}
|
|
|
493336
493684
|
}
|
|
493337
493685
|
try {
|
|
493338
493686
|
const filePath = resolve52(options2.systemPromptFile);
|
|
493339
|
-
systemPrompt =
|
|
493687
|
+
systemPrompt = readFileSync31(filePath, "utf8");
|
|
493340
493688
|
} catch (error40) {
|
|
493341
493689
|
const code = getErrnoCode(error40);
|
|
493342
493690
|
if (code === "ENOENT") {
|
|
@@ -493358,7 +493706,7 @@ ${getTmuxInstallInstructions2()}
|
|
|
493358
493706
|
}
|
|
493359
493707
|
try {
|
|
493360
493708
|
const filePath = resolve52(options2.appendSystemPromptFile);
|
|
493361
|
-
appendSystemPrompt =
|
|
493709
|
+
appendSystemPrompt = readFileSync31(filePath, "utf8");
|
|
493362
493710
|
} catch (error40) {
|
|
493363
493711
|
const code = getErrnoCode(error40);
|
|
493364
493712
|
if (code === "ENOENT") {
|
|
@@ -493595,6 +493943,19 @@ ${naupaHint}` : naupaHint;
|
|
|
493595
493943
|
logForDebugging(`[Theus \xD1aupa] Setup failed: ${errorMessage(error40)}`);
|
|
493596
493944
|
}
|
|
493597
493945
|
}
|
|
493946
|
+
if (!getIsNonInteractiveSession()) {
|
|
493947
|
+
try {
|
|
493948
|
+
const {
|
|
493949
|
+
isArsenalAutoInstallEnabled: isArsenalAutoInstallEnabled2,
|
|
493950
|
+
ensureBundledArsenalInstalled: ensureBundledArsenalInstalled2
|
|
493951
|
+
} = await Promise.resolve().then(() => (init_arsenalBundled(), exports_arsenalBundled));
|
|
493952
|
+
if (isArsenalAutoInstallEnabled2()) {
|
|
493953
|
+
await ensureBundledArsenalInstalled2();
|
|
493954
|
+
}
|
|
493955
|
+
} catch (error40) {
|
|
493956
|
+
logForDebugging(`[Theus Arsenal] Auto-instalaci\xF3n fall\xF3: ${errorMessage(error40)}`);
|
|
493957
|
+
}
|
|
493958
|
+
}
|
|
493598
493959
|
setAdditionalDirectoriesForTheusMd(addDir2);
|
|
493599
493960
|
let devChannels;
|
|
493600
493961
|
if (false) {}
|
|
@@ -494046,7 +494407,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
494046
494407
|
}
|
|
494047
494408
|
}
|
|
494048
494409
|
logForDiagnosticsNoPII("info", "started", {
|
|
494049
|
-
version: { VERSION: "0.2.
|
|
494410
|
+
version: { VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
494411
|
is_native_binary: isInBundledMode()
|
|
494051
494412
|
});
|
|
494052
494413
|
registerCleanup(async () => {
|
|
@@ -494914,7 +495275,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
494914
495275
|
pendingHookMessages
|
|
494915
495276
|
}, renderAndRun);
|
|
494916
495277
|
}
|
|
494917
|
-
}).version(`${{ VERSION: "0.2.
|
|
495278
|
+
}).version(`${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
495279
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
494919
495280
|
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
495281
|
if (canUserConfigureAdvisor()) {
|
|
@@ -495466,7 +495827,7 @@ if (false) {}
|
|
|
495466
495827
|
async function main2() {
|
|
495467
495828
|
const args = process.argv.slice(2);
|
|
495468
495829
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
495469
|
-
console.log(`${{ VERSION: "0.2.
|
|
495830
|
+
console.log(`${{ VERSION: "0.2.38", BUILD_TIME: "1970-01-01T00:00:00.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
495831
|
return;
|
|
495471
495832
|
}
|
|
495472
495833
|
const {
|