theus-cli 0.2.35 → 0.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +448 -145
- 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.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58328
58328
|
logAntError("apiKeyHelper invoked before trust check", error40);
|
|
58329
58329
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
58330
58330
|
return null;
|
|
@@ -58368,7 +58368,7 @@ async function runAwsAuthRefresh() {
|
|
|
58368
58368
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
58369
58369
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58370
58370
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58371
|
-
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58371
|
+
const error40 = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58372
58372
|
logAntError("awsAuthRefresh invoked before trust check", error40);
|
|
58373
58373
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
58374
58374
|
return false;
|
|
@@ -58428,7 +58428,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
58428
58428
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
58429
58429
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58430
58430
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58431
|
-
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58431
|
+
const error40 = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58432
58432
|
logAntError("awsCredentialExport invoked before trust check", error40);
|
|
58433
58433
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
58434
58434
|
return null;
|
|
@@ -58513,7 +58513,7 @@ async function runGcpAuthRefresh() {
|
|
|
58513
58513
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
58514
58514
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
58515
58515
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
58516
|
-
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
58516
|
+
const error40 = new Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
58517
58517
|
logAntError("gcpAuthRefresh invoked before trust check", error40);
|
|
58518
58518
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
58519
58519
|
return false;
|
|
@@ -59208,7 +59208,7 @@ var init_auth = __esm(() => {
|
|
|
59208
59208
|
|
|
59209
59209
|
// utils/userAgent.ts
|
|
59210
59210
|
function getTheusCodeUserAgent() {
|
|
59211
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59211
|
+
return `theus-code/${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`;
|
|
59212
59212
|
}
|
|
59213
59213
|
|
|
59214
59214
|
// utils/workloadContext.ts
|
|
@@ -59230,7 +59230,7 @@ function getUserAgent() {
|
|
|
59230
59230
|
const clientApp = process.env.THEUS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}` : "";
|
|
59231
59231
|
const workload = getWorkload();
|
|
59232
59232
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
59233
|
-
return `theus-cli/${{ VERSION: "0.2.
|
|
59233
|
+
return `theus-cli/${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (${process.env.USER_TYPE}, ${process.env.THEUS_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
59234
59234
|
}
|
|
59235
59235
|
function getMCPUserAgent() {
|
|
59236
59236
|
const parts = [];
|
|
@@ -59244,7 +59244,7 @@ function getMCPUserAgent() {
|
|
|
59244
59244
|
parts.push(`client-app/${process.env.THEUS_AGENT_SDK_CLIENT_APP}`);
|
|
59245
59245
|
}
|
|
59246
59246
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
59247
|
-
return `theus-code/${{ VERSION: "0.2.
|
|
59247
|
+
return `theus-code/${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}${suffix}`;
|
|
59248
59248
|
}
|
|
59249
59249
|
function getWebFetchUserAgent() {
|
|
59250
59250
|
return `Theus-User (${getTheusCodeUserAgent()}; +https://support.theus.pe/)`;
|
|
@@ -59382,7 +59382,7 @@ var init_user = __esm(() => {
|
|
|
59382
59382
|
deviceId,
|
|
59383
59383
|
sessionId: getSessionId(),
|
|
59384
59384
|
email: getEmail(),
|
|
59385
|
-
appVersion: { VERSION: "0.2.
|
|
59385
|
+
appVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
59386
59386
|
platform: getHostPlatformForAnalytics(),
|
|
59387
59387
|
organizationUuid,
|
|
59388
59388
|
accountUuid,
|
|
@@ -61097,7 +61097,7 @@ var init_metadata = __esm(() => {
|
|
|
61097
61097
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
61098
61098
|
WHITESPACE_REGEX = /\s+/;
|
|
61099
61099
|
getVersionBase = memoize_default(() => {
|
|
61100
|
-
const match = { VERSION: "0.2.
|
|
61100
|
+
const match = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION.match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
61101
61101
|
return match ? match[0] : undefined;
|
|
61102
61102
|
});
|
|
61103
61103
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -61137,9 +61137,9 @@ var init_metadata = __esm(() => {
|
|
|
61137
61137
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
61138
61138
|
isTheusCodeAction: isEnvTruthy(process.env.THEUS_CODE_ACTION),
|
|
61139
61139
|
isTheusAiAuth: isTheusAISubscriber(),
|
|
61140
|
-
version: { VERSION: "0.2.
|
|
61140
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
61141
61141
|
versionBase: getVersionBase(),
|
|
61142
|
-
buildTime: { VERSION: "0.2.
|
|
61142
|
+
buildTime: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME,
|
|
61143
61143
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
61144
61144
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
61145
61145
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -61805,7 +61805,7 @@ function initialize1PEventLogging() {
|
|
|
61805
61805
|
const platform2 = getPlatform();
|
|
61806
61806
|
const attributes = {
|
|
61807
61807
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
61808
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
61808
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
61809
61809
|
};
|
|
61810
61810
|
if (platform2 === "wsl") {
|
|
61811
61811
|
const wslVersion = getWslVersion();
|
|
@@ -61832,7 +61832,7 @@ function initialize1PEventLogging() {
|
|
|
61832
61832
|
})
|
|
61833
61833
|
]
|
|
61834
61834
|
});
|
|
61835
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
61835
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.theus.theus_code.events", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
61836
61836
|
}
|
|
61837
61837
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
61838
61838
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -63703,7 +63703,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
63703
63703
|
if (!isAttributionHeaderEnabled()) {
|
|
63704
63704
|
return "";
|
|
63705
63705
|
}
|
|
63706
|
-
const version2 = `${{ VERSION: "0.2.
|
|
63706
|
+
const version2 = `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}.${fingerprint}`;
|
|
63707
63707
|
const entrypoint = process.env.THEUS_CODE_ENTRYPOINT ?? "unknown";
|
|
63708
63708
|
const cch = "";
|
|
63709
63709
|
const workload = getWorkload();
|
|
@@ -107814,7 +107814,7 @@ Complete the user's request by providing accurate, documentation-based guidance.
|
|
|
107814
107814
|
}
|
|
107815
107815
|
function getFeedbackGuideline() {
|
|
107816
107816
|
if (isUsing3PServices()) {
|
|
107817
|
-
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.
|
|
107817
|
+
return `- When you cannot find an answer or the feature doesn't exist, direct the user to ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`;
|
|
107818
107818
|
}
|
|
107819
107819
|
return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
|
|
107820
107820
|
}
|
|
@@ -166523,7 +166523,7 @@ function getTelemetryAttributes() {
|
|
|
166523
166523
|
attributes["session.id"] = sessionId;
|
|
166524
166524
|
}
|
|
166525
166525
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
166526
|
-
attributes["app.version"] = { VERSION: "0.2.
|
|
166526
|
+
attributes["app.version"] = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
166527
166527
|
}
|
|
166528
166528
|
const oauthAccount = getOauthAccountInfo();
|
|
166529
166529
|
if (oauthAccount) {
|
|
@@ -202536,7 +202536,7 @@ function getInstallationEnv() {
|
|
|
202536
202536
|
return;
|
|
202537
202537
|
}
|
|
202538
202538
|
function getTheusCodeVersion() {
|
|
202539
|
-
return { VERSION: "0.2.
|
|
202539
|
+
return { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
202540
202540
|
}
|
|
202541
202541
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
202542
202542
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -204054,7 +204054,7 @@ async function getMcpHeadersFromHelper(serverName, config2) {
|
|
|
204054
204054
|
if ("scope" in config2 && isMcpServerFromProjectOrLocalSettings(config2) && !getIsNonInteractiveSession()) {
|
|
204055
204055
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
204056
204056
|
if (!hasTrust) {
|
|
204057
|
-
const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.
|
|
204057
|
+
const error40 = new Error(`Security: headersHelper for MCP server '${serverName}' executed before workspace trust is confirmed. If you see this message, post in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`);
|
|
204058
204058
|
logAntError("MCP headersHelper invoked before trust check", error40);
|
|
204059
204059
|
logEvent("tengu_mcp_headersHelper_missing_trust", {});
|
|
204060
204060
|
return null;
|
|
@@ -205264,7 +205264,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
205264
205264
|
const client2 = new Client({
|
|
205265
205265
|
name: "theus-code",
|
|
205266
205266
|
title: "Theus",
|
|
205267
|
-
version: { VERSION: "0.2.
|
|
205267
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
|
|
205268
205268
|
description: "Theus's agentic coding tool",
|
|
205269
205269
|
websiteUrl: PRODUCT_URL
|
|
205270
205270
|
}, {
|
|
@@ -205618,7 +205618,7 @@ var init_client5 = __esm(() => {
|
|
|
205618
205618
|
const client2 = new Client({
|
|
205619
205619
|
name: "theus-code",
|
|
205620
205620
|
title: "Theus",
|
|
205621
|
-
version: { VERSION: "0.2.
|
|
205621
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ?? "unknown",
|
|
205622
205622
|
description: "Theus's agentic coding tool",
|
|
205623
205623
|
websiteUrl: PRODUCT_URL
|
|
205624
205624
|
}, {
|
|
@@ -216196,7 +216196,7 @@ async function initializeBetaTracing(resource) {
|
|
|
216196
216196
|
});
|
|
216197
216197
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216198
216198
|
setLoggerProvider(loggerProvider);
|
|
216199
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216199
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216200
216200
|
setEventLogger(eventLogger);
|
|
216201
216201
|
process.on("beforeExit", async () => {
|
|
216202
216202
|
await loggerProvider?.forceFlush();
|
|
@@ -216236,7 +216236,7 @@ async function initializeTelemetry() {
|
|
|
216236
216236
|
const platform4 = getPlatform();
|
|
216237
216237
|
const baseAttributes = {
|
|
216238
216238
|
[ATTR_SERVICE_NAME]: "theus-code",
|
|
216239
|
-
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.
|
|
216239
|
+
[ATTR_SERVICE_VERSION]: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
216240
216240
|
};
|
|
216241
216241
|
if (platform4 === "wsl") {
|
|
216242
216242
|
const wslVersion = getWslVersion();
|
|
@@ -216281,7 +216281,7 @@ async function initializeTelemetry() {
|
|
|
216281
216281
|
} catch {}
|
|
216282
216282
|
};
|
|
216283
216283
|
registerCleanup(shutdownTelemetry2);
|
|
216284
|
-
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216284
|
+
return meterProvider2.getMeter("com.theus.theus_code", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216285
216285
|
}
|
|
216286
216286
|
const meterProvider = new MeterProvider({
|
|
216287
216287
|
resource,
|
|
@@ -216301,7 +216301,7 @@ async function initializeTelemetry() {
|
|
|
216301
216301
|
});
|
|
216302
216302
|
logs.setGlobalLoggerProvider(loggerProvider);
|
|
216303
216303
|
setLoggerProvider(loggerProvider);
|
|
216304
|
-
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.
|
|
216304
|
+
const eventLogger = logs.getLogger("com.theus.theus_code.events", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216305
216305
|
setEventLogger(eventLogger);
|
|
216306
216306
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
216307
216307
|
process.on("beforeExit", async () => {
|
|
@@ -216363,7 +216363,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
216363
216363
|
}
|
|
216364
216364
|
};
|
|
216365
216365
|
registerCleanup(shutdownTelemetry);
|
|
216366
|
-
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.
|
|
216366
|
+
return meterProvider.getMeter("com.theus.theus_code", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
216367
216367
|
}
|
|
216368
216368
|
async function flushTelemetry() {
|
|
216369
216369
|
const meterProvider = getMeterProvider();
|
|
@@ -216903,7 +216903,7 @@ async function installOrUpdateTheusPackage(channel2, specificVersion) {
|
|
|
216903
216903
|
return "install_failed";
|
|
216904
216904
|
}
|
|
216905
216905
|
const versionSpec = specificVersion ? specificVersion : channel2 === "stable" ? "stable" : "latest";
|
|
216906
|
-
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.
|
|
216906
|
+
const result = await execFileNoThrowWithCwd("npm", ["install", `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${versionSpec}`], { cwd: getLocalInstallDir(), maxBuffer: 1e6 });
|
|
216907
216907
|
if (result.code !== 0) {
|
|
216908
216908
|
const error40 = new Error(`Failed to install Theus CLI package: ${result.stderr}`);
|
|
216909
216909
|
logError2(error40);
|
|
@@ -217049,9 +217049,9 @@ async function assertMinVersion() {
|
|
|
217049
217049
|
if (false) {}
|
|
217050
217050
|
try {
|
|
217051
217051
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
217052
|
-
if (versionConfig.minVersion && lt({ VERSION: "0.2.
|
|
217052
|
+
if (versionConfig.minVersion && lt({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, versionConfig.minVersion)) {
|
|
217053
217053
|
console.error(`
|
|
217054
|
-
It looks like your version of Theus (${{ VERSION: "0.2.
|
|
217054
|
+
It looks like your version of Theus (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) needs an update.
|
|
217055
217055
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
217056
217056
|
|
|
217057
217057
|
To update, please run:
|
|
@@ -217192,7 +217192,7 @@ async function getInstallationPrefix() {
|
|
|
217192
217192
|
return prefixResult.stdout.trim();
|
|
217193
217193
|
}
|
|
217194
217194
|
function getGlobalInstallPackageManager() {
|
|
217195
|
-
if ({ VERSION: "0.2.
|
|
217195
|
+
if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL === "theus-cli") {
|
|
217196
217196
|
return "npm";
|
|
217197
217197
|
}
|
|
217198
217198
|
return env3.isRunningWithBun() ? "bun" : "npm";
|
|
@@ -217217,7 +217217,7 @@ async function checkGlobalInstallPermissions() {
|
|
|
217217
217217
|
}
|
|
217218
217218
|
async function getLatestVersion(channel2) {
|
|
217219
217219
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
217220
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.
|
|
217220
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag}`, "version", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
|
|
217221
217221
|
if (result.code !== 0) {
|
|
217222
217222
|
logForDebugging(`npm view failed with code ${result.code}`);
|
|
217223
217223
|
if (result.stderr) {
|
|
@@ -217233,7 +217233,7 @@ async function getLatestVersion(channel2) {
|
|
|
217233
217233
|
return result.stdout.trim();
|
|
217234
217234
|
}
|
|
217235
217235
|
async function getNpmDistTags() {
|
|
217236
|
-
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.
|
|
217236
|
+
const result = await execFileNoThrowWithCwd("npm", ["view", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL, "dist-tags", "--json", "--prefer-online"], { abortSignal: AbortSignal.timeout(5000), cwd: homedir18() });
|
|
217237
217237
|
if (result.code !== 0) {
|
|
217238
217238
|
logForDebugging(`npm view dist-tags failed with code ${result.code}`);
|
|
217239
217239
|
return { latest: null, stable: null };
|
|
@@ -217273,7 +217273,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217273
217273
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
217274
217274
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
217275
217275
|
pid: process.pid,
|
|
217276
|
-
currentVersion: { VERSION: "0.2.
|
|
217276
|
+
currentVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217277
217277
|
});
|
|
217278
217278
|
return "in_progress";
|
|
217279
217279
|
}
|
|
@@ -217282,7 +217282,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
217282
217282
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
217283
217283
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
217284
217284
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
217285
|
-
currentVersion: { VERSION: "0.2.
|
|
217285
|
+
currentVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
217286
217286
|
});
|
|
217287
217287
|
console.error(`
|
|
217288
217288
|
Error: Windows NPM detected in WSL
|
|
@@ -217301,7 +217301,7 @@ To fix this issue:
|
|
|
217301
217301
|
if (!hasPermissions) {
|
|
217302
217302
|
return "no_permissions";
|
|
217303
217303
|
}
|
|
217304
|
-
const packageSpec = specificVersion ? `${{ VERSION: "0.2.
|
|
217304
|
+
const packageSpec = specificVersion ? `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${specificVersion}` : { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL;
|
|
217305
217305
|
const packageManager = getGlobalInstallPackageManager();
|
|
217306
217306
|
const installResult = await execFileNoThrowWithCwd(packageManager, ["install", "-g", packageSpec], { cwd: homedir18() });
|
|
217307
217307
|
if (installResult.code !== 0) {
|
|
@@ -217629,8 +217629,8 @@ async function detectMultipleInstallations() {
|
|
|
217629
217629
|
installations.push({ type: "npm-local", path: localPath });
|
|
217630
217630
|
}
|
|
217631
217631
|
const packagesToCheck = ["@theus-ai/theus-code"];
|
|
217632
|
-
if ({ VERSION: "0.2.
|
|
217633
|
-
packagesToCheck.push({ VERSION: "0.2.
|
|
217632
|
+
if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
|
|
217633
|
+
packagesToCheck.push({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
|
|
217634
217634
|
}
|
|
217635
217635
|
const npmResult = await execFileNoThrow("npm", [
|
|
217636
217636
|
"-g",
|
|
@@ -217813,7 +217813,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
217813
217813
|
}
|
|
217814
217814
|
async function getDoctorDiagnostic() {
|
|
217815
217815
|
const installationType = await getCurrentInstallationType();
|
|
217816
|
-
const version2 = { VERSION: "0.2.
|
|
217816
|
+
const version2 = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION ? { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION : "unknown";
|
|
217817
217817
|
const installationPath = await getInstallationPath();
|
|
217818
217818
|
const invokedBinary = getInvokedBinary();
|
|
217819
217819
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -217825,8 +217825,8 @@ async function getDoctorDiagnostic() {
|
|
|
217825
217825
|
for (const install of npmInstalls) {
|
|
217826
217826
|
if (install.type === "npm-global") {
|
|
217827
217827
|
let uninstallCmd = "npm -g uninstall @theus-ai/theus-code";
|
|
217828
|
-
if ({ VERSION: "0.2.
|
|
217829
|
-
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.
|
|
217828
|
+
if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
|
|
217829
|
+
uninstallCmd += ` && npm -g uninstall ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`;
|
|
217830
217830
|
}
|
|
217831
217831
|
warnings.push({
|
|
217832
217832
|
issue: `Leftover npm global installation at ${install.path}`,
|
|
@@ -217938,7 +217938,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217938
217938
|
const startTime2 = Date.now();
|
|
217939
217939
|
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
217940
217940
|
"view",
|
|
217941
|
-
`${{ VERSION: "0.2.
|
|
217941
|
+
`${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2}`,
|
|
217942
217942
|
"version",
|
|
217943
217943
|
"--prefer-online",
|
|
217944
217944
|
"--registry",
|
|
@@ -217962,7 +217962,7 @@ async function getLatestVersionFromArtifactory(tag2 = "latest") {
|
|
|
217962
217962
|
latency_ms: latencyMs,
|
|
217963
217963
|
source_npm: true
|
|
217964
217964
|
});
|
|
217965
|
-
logForDebugging(`npm view ${{ VERSION: "0.2.
|
|
217965
|
+
logForDebugging(`npm view ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${tag2} version: ${stdout}`);
|
|
217966
217966
|
const latestVersion = stdout.trim();
|
|
217967
217967
|
return latestVersion;
|
|
217968
217968
|
}
|
|
@@ -218018,7 +218018,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218018
218018
|
const fs3 = getFsImplementation();
|
|
218019
218019
|
await fs3.rm(stagingPath, { recursive: true, force: true });
|
|
218020
218020
|
const platform4 = getPlatform2();
|
|
218021
|
-
const platformPackageName = `${{ VERSION: "0.2.
|
|
218021
|
+
const platformPackageName = `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}-${platform4}`;
|
|
218022
218022
|
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version2}`);
|
|
218023
218023
|
const {
|
|
218024
218024
|
stdout: integrityOutput,
|
|
@@ -218047,7 +218047,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218047
218047
|
name: "theus-native-installer",
|
|
218048
218048
|
version: "0.0.1",
|
|
218049
218049
|
dependencies: {
|
|
218050
|
-
[{ VERSION: "0.2.
|
|
218050
|
+
[{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
|
|
218051
218051
|
}
|
|
218052
218052
|
};
|
|
218053
218053
|
const packageLock = {
|
|
@@ -218060,10 +218060,10 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218060
218060
|
name: "theus-native-installer",
|
|
218061
218061
|
version: "0.0.1",
|
|
218062
218062
|
dependencies: {
|
|
218063
|
-
[{ VERSION: "0.2.
|
|
218063
|
+
[{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL]: version2
|
|
218064
218064
|
}
|
|
218065
218065
|
},
|
|
218066
|
-
[`node_modules/${{ VERSION: "0.2.
|
|
218066
|
+
[`node_modules/${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}`]: {
|
|
218067
218067
|
version: version2,
|
|
218068
218068
|
optionalDependencies: {
|
|
218069
218069
|
[platformPackageName]: version2
|
|
@@ -218085,7 +218085,7 @@ async function downloadVersionFromArtifactory(version2, stagingPath) {
|
|
|
218085
218085
|
if (result.code !== 0) {
|
|
218086
218086
|
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
218087
218087
|
}
|
|
218088
|
-
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.
|
|
218088
|
+
logForDebugging(`Successfully downloaded and verified ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.NATIVE_PACKAGE_URL}@${version2}`);
|
|
218089
218089
|
}
|
|
218090
218090
|
function getStallTimeoutMs() {
|
|
218091
218091
|
return Number(process.env.THEUS_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
@@ -218748,8 +218748,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218748
218748
|
const maxVersion = await getMaxVersion();
|
|
218749
218749
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
218750
218750
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
218751
|
-
if (gte({ VERSION: "0.2.
|
|
218752
|
-
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.
|
|
218751
|
+
if (gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
|
|
218752
|
+
logForDebugging(`Native installer: current version ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
218753
218753
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
218754
218754
|
latency_ms: Date.now() - startTime2,
|
|
218755
218755
|
max_version: maxVersion,
|
|
@@ -218760,7 +218760,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
218760
218760
|
version2 = maxVersion;
|
|
218761
218761
|
}
|
|
218762
218762
|
}
|
|
218763
|
-
if (!forceReinstall && version2 === { VERSION: "0.2.
|
|
218763
|
+
if (!forceReinstall && version2 === { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION && await versionIsAvailable(version2) && await isPossibleTheusBinary(executablePath)) {
|
|
218764
218764
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
218765
218765
|
logEvent("tengu_native_update_complete", {
|
|
218766
218766
|
latency_ms: Date.now() - startTime2,
|
|
@@ -219510,8 +219510,8 @@ async function cleanupNpmInstallations() {
|
|
|
219510
219510
|
} else if (codePackageResult.error) {
|
|
219511
219511
|
errors4.push(codePackageResult.error);
|
|
219512
219512
|
}
|
|
219513
|
-
if ({ VERSION: "0.2.
|
|
219514
|
-
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.
|
|
219513
|
+
if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL !== "@theus-ai/theus-code") {
|
|
219514
|
+
const macroPackageResult = await attemptNpmUninstall({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL);
|
|
219515
219515
|
if (macroPackageResult.success) {
|
|
219516
219516
|
removed++;
|
|
219517
219517
|
if (macroPackageResult.warning) {
|
|
@@ -304780,9 +304780,9 @@ function getTheusEnvMetadata() {
|
|
|
304780
304780
|
};
|
|
304781
304781
|
}
|
|
304782
304782
|
function getBuildAgeMinutes() {
|
|
304783
|
-
if (!{ VERSION: "0.2.
|
|
304783
|
+
if (!{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME)
|
|
304784
304784
|
return;
|
|
304785
|
-
const buildTime = new Date({ VERSION: "0.2.
|
|
304785
|
+
const buildTime = new Date({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME).getTime();
|
|
304786
304786
|
if (isNaN(buildTime))
|
|
304787
304787
|
return;
|
|
304788
304788
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -313606,6 +313606,31 @@ var init_officialMarketplaceGcs = __esm(() => {
|
|
|
313606
313606
|
});
|
|
313607
313607
|
|
|
313608
313608
|
// utils/plugins/marketplaceManager.ts
|
|
313609
|
+
var exports_marketplaceManager = {};
|
|
313610
|
+
__export(exports_marketplaceManager, {
|
|
313611
|
+
setMarketplaceAutoUpdate: () => setMarketplaceAutoUpdate,
|
|
313612
|
+
saveMarketplaceToSettings: () => saveMarketplaceToSettings,
|
|
313613
|
+
saveKnownMarketplacesConfig: () => saveKnownMarketplacesConfig,
|
|
313614
|
+
removeMarketplaceSource: () => removeMarketplaceSource,
|
|
313615
|
+
registerSeedMarketplaces: () => registerSeedMarketplaces,
|
|
313616
|
+
refreshMarketplace: () => refreshMarketplace,
|
|
313617
|
+
refreshAllMarketplaces: () => refreshAllMarketplaces,
|
|
313618
|
+
reconcileSparseCheckout: () => reconcileSparseCheckout,
|
|
313619
|
+
loadKnownMarketplacesConfigSafe: () => loadKnownMarketplacesConfigSafe,
|
|
313620
|
+
loadKnownMarketplacesConfig: () => loadKnownMarketplacesConfig,
|
|
313621
|
+
gitPull: () => gitPull,
|
|
313622
|
+
gitClone: () => gitClone,
|
|
313623
|
+
getPluginByIdCacheOnly: () => getPluginByIdCacheOnly,
|
|
313624
|
+
getPluginById: () => getPluginById,
|
|
313625
|
+
getMarketplacesCacheDir: () => getMarketplacesCacheDir,
|
|
313626
|
+
getMarketplaceDeclaringSource: () => getMarketplaceDeclaringSource,
|
|
313627
|
+
getMarketplaceCacheOnly: () => getMarketplaceCacheOnly,
|
|
313628
|
+
getMarketplace: () => getMarketplace,
|
|
313629
|
+
getDeclaredMarketplaces: () => getDeclaredMarketplaces,
|
|
313630
|
+
clearMarketplacesCache: () => clearMarketplacesCache,
|
|
313631
|
+
addMarketplaceSource: () => addMarketplaceSource,
|
|
313632
|
+
_test: () => _test
|
|
313633
|
+
});
|
|
313609
313634
|
import { writeFile as writeFile35 } from "fs/promises";
|
|
313610
313635
|
import { basename as basename34, dirname as dirname45, isAbsolute as isAbsolute25, join as join109, resolve as resolve38, sep as sep23 } from "path";
|
|
313611
313636
|
function getKnownMarketplacesFile() {
|
|
@@ -314737,7 +314762,7 @@ async function setMarketplaceAutoUpdate(name, autoUpdate) {
|
|
|
314737
314762
|
}
|
|
314738
314763
|
logForDebugging(`Set autoUpdate=${autoUpdate} for marketplace: ${name}`);
|
|
314739
314764
|
}
|
|
314740
|
-
var GIT_NO_PROMPT_ENV, DEFAULT_PLUGIN_GIT_TIMEOUT_MS, getMarketplace;
|
|
314765
|
+
var GIT_NO_PROMPT_ENV, DEFAULT_PLUGIN_GIT_TIMEOUT_MS, getMarketplace, _test;
|
|
314741
314766
|
var init_marketplaceManager = __esm(() => {
|
|
314742
314767
|
init_axios2();
|
|
314743
314768
|
init_isEqual();
|
|
@@ -314794,9 +314819,40 @@ var init_marketplaceManager = __esm(() => {
|
|
|
314794
314819
|
await saveKnownMarketplacesConfig(config2);
|
|
314795
314820
|
return marketplace;
|
|
314796
314821
|
});
|
|
314822
|
+
_test = {
|
|
314823
|
+
redactUrlCredentials
|
|
314824
|
+
};
|
|
314797
314825
|
});
|
|
314798
314826
|
|
|
314799
314827
|
// utils/plugins/installedPluginsManager.ts
|
|
314828
|
+
var exports_installedPluginsManager = {};
|
|
314829
|
+
__export(exports_installedPluginsManager, {
|
|
314830
|
+
updateInstallationPathOnDisk: () => updateInstallationPathOnDisk,
|
|
314831
|
+
resetMigrationState: () => resetMigrationState,
|
|
314832
|
+
resetInMemoryState: () => resetInMemoryState,
|
|
314833
|
+
removePluginInstallation: () => removePluginInstallation,
|
|
314834
|
+
removeInstalledPlugin: () => removeInstalledPlugin,
|
|
314835
|
+
removeAllPluginsForMarketplace: () => removeAllPluginsForMarketplace,
|
|
314836
|
+
migrateToSinglePluginFile: () => migrateToSinglePluginFile,
|
|
314837
|
+
migrateFromEnabledPlugins: () => migrateFromEnabledPlugins,
|
|
314838
|
+
loadInstalledPluginsV2: () => loadInstalledPluginsV2,
|
|
314839
|
+
loadInstalledPluginsFromDisk: () => loadInstalledPluginsFromDisk,
|
|
314840
|
+
isPluginInstalled: () => isPluginInstalled,
|
|
314841
|
+
isPluginGloballyInstalled: () => isPluginGloballyInstalled,
|
|
314842
|
+
isInstallationRelevantToCurrentProject: () => isInstallationRelevantToCurrentProject,
|
|
314843
|
+
initializeVersionedPlugins: () => initializeVersionedPlugins,
|
|
314844
|
+
hasPendingUpdates: () => hasPendingUpdates,
|
|
314845
|
+
getPendingUpdatesDetails: () => getPendingUpdatesDetails,
|
|
314846
|
+
getPendingUpdateCount: () => getPendingUpdateCount,
|
|
314847
|
+
getInstalledPluginsV2FilePath: () => getInstalledPluginsV2FilePath,
|
|
314848
|
+
getInstalledPluginsFilePath: () => getInstalledPluginsFilePath,
|
|
314849
|
+
getInMemoryInstalledPlugins: () => getInMemoryInstalledPlugins,
|
|
314850
|
+
getGitCommitSha: () => getGitCommitSha,
|
|
314851
|
+
deletePluginCache: () => deletePluginCache,
|
|
314852
|
+
clearInstalledPluginsCache: () => clearInstalledPluginsCache,
|
|
314853
|
+
addPluginInstallation: () => addPluginInstallation,
|
|
314854
|
+
addInstalledPlugin: () => addInstalledPlugin
|
|
314855
|
+
});
|
|
314800
314856
|
import { dirname as dirname46, join as join110 } from "path";
|
|
314801
314857
|
function getInstalledPluginsFilePath() {
|
|
314802
314858
|
return join110(getPluginsDirectory(), "installed_plugins.json");
|
|
@@ -314804,6 +314860,11 @@ function getInstalledPluginsFilePath() {
|
|
|
314804
314860
|
function getInstalledPluginsV2FilePath() {
|
|
314805
314861
|
return join110(getPluginsDirectory(), "installed_plugins_v2.json");
|
|
314806
314862
|
}
|
|
314863
|
+
function clearInstalledPluginsCache() {
|
|
314864
|
+
installedPluginsCacheV2 = null;
|
|
314865
|
+
inMemoryInstalledPlugins = null;
|
|
314866
|
+
logForDebugging("Cleared installed plugins cache");
|
|
314867
|
+
}
|
|
314807
314868
|
function migrateToSinglePluginFile() {
|
|
314808
314869
|
if (migrationCompleted) {
|
|
314809
314870
|
return;
|
|
@@ -314894,6 +314955,9 @@ function cleanupLegacyCache(v2Data) {
|
|
|
314894
314955
|
});
|
|
314895
314956
|
}
|
|
314896
314957
|
}
|
|
314958
|
+
function resetMigrationState() {
|
|
314959
|
+
migrationCompleted = false;
|
|
314960
|
+
}
|
|
314897
314961
|
function readInstalledPluginsFileRaw() {
|
|
314898
314962
|
const fs4 = getFsImplementation();
|
|
314899
314963
|
const filePath = getInstalledPluginsFilePath();
|
|
@@ -314976,6 +315040,29 @@ function saveInstalledPluginsV2(data) {
|
|
|
314976
315040
|
throw error40;
|
|
314977
315041
|
}
|
|
314978
315042
|
}
|
|
315043
|
+
function addPluginInstallation(pluginId, scope, installPath, metadata, projectPath) {
|
|
315044
|
+
const data = loadInstalledPluginsFromDisk();
|
|
315045
|
+
const installations = data.plugins[pluginId] || [];
|
|
315046
|
+
const existingIndex = installations.findIndex((entry) => entry.scope === scope && entry.projectPath === projectPath);
|
|
315047
|
+
const newEntry = {
|
|
315048
|
+
scope,
|
|
315049
|
+
installPath,
|
|
315050
|
+
version: metadata.version,
|
|
315051
|
+
installedAt: metadata.installedAt || new Date().toISOString(),
|
|
315052
|
+
lastUpdated: new Date().toISOString(),
|
|
315053
|
+
gitCommitSha: metadata.gitCommitSha,
|
|
315054
|
+
...projectPath && { projectPath }
|
|
315055
|
+
};
|
|
315056
|
+
if (existingIndex >= 0) {
|
|
315057
|
+
installations[existingIndex] = newEntry;
|
|
315058
|
+
logForDebugging(`Updated installation for ${pluginId} at scope ${scope}`);
|
|
315059
|
+
} else {
|
|
315060
|
+
installations.push(newEntry);
|
|
315061
|
+
logForDebugging(`Added installation for ${pluginId} at scope ${scope}`);
|
|
315062
|
+
}
|
|
315063
|
+
data.plugins[pluginId] = installations;
|
|
315064
|
+
saveInstalledPluginsV2(data);
|
|
315065
|
+
}
|
|
314979
315066
|
function removePluginInstallation(pluginId, scope, projectPath) {
|
|
314980
315067
|
const data = loadInstalledPluginsFromDisk();
|
|
314981
315068
|
const installations = data.plugins[pluginId];
|
|
@@ -315040,6 +315127,64 @@ function updateInstallationPathOnDisk(pluginId, scope, projectPath, newPath, new
|
|
|
315040
315127
|
logForDebugging(`Cannot update ${pluginId} on disk: no installation for scope ${scope}`);
|
|
315041
315128
|
}
|
|
315042
315129
|
}
|
|
315130
|
+
function hasPendingUpdates() {
|
|
315131
|
+
const memoryState = getInMemoryInstalledPlugins();
|
|
315132
|
+
const diskState = loadInstalledPluginsFromDisk();
|
|
315133
|
+
for (const [pluginId, diskInstallations] of Object.entries(diskState.plugins)) {
|
|
315134
|
+
const memoryInstallations = memoryState.plugins[pluginId];
|
|
315135
|
+
if (!memoryInstallations)
|
|
315136
|
+
continue;
|
|
315137
|
+
for (const diskEntry of diskInstallations) {
|
|
315138
|
+
const memoryEntry = memoryInstallations.find((m) => m.scope === diskEntry.scope && m.projectPath === diskEntry.projectPath);
|
|
315139
|
+
if (memoryEntry && memoryEntry.installPath !== diskEntry.installPath) {
|
|
315140
|
+
return true;
|
|
315141
|
+
}
|
|
315142
|
+
}
|
|
315143
|
+
}
|
|
315144
|
+
return false;
|
|
315145
|
+
}
|
|
315146
|
+
function getPendingUpdateCount() {
|
|
315147
|
+
let count4 = 0;
|
|
315148
|
+
const memoryState = getInMemoryInstalledPlugins();
|
|
315149
|
+
const diskState = loadInstalledPluginsFromDisk();
|
|
315150
|
+
for (const [pluginId, diskInstallations] of Object.entries(diskState.plugins)) {
|
|
315151
|
+
const memoryInstallations = memoryState.plugins[pluginId];
|
|
315152
|
+
if (!memoryInstallations)
|
|
315153
|
+
continue;
|
|
315154
|
+
for (const diskEntry of diskInstallations) {
|
|
315155
|
+
const memoryEntry = memoryInstallations.find((m) => m.scope === diskEntry.scope && m.projectPath === diskEntry.projectPath);
|
|
315156
|
+
if (memoryEntry && memoryEntry.installPath !== diskEntry.installPath) {
|
|
315157
|
+
count4++;
|
|
315158
|
+
}
|
|
315159
|
+
}
|
|
315160
|
+
}
|
|
315161
|
+
return count4;
|
|
315162
|
+
}
|
|
315163
|
+
function getPendingUpdatesDetails() {
|
|
315164
|
+
const updates = [];
|
|
315165
|
+
const memoryState = getInMemoryInstalledPlugins();
|
|
315166
|
+
const diskState = loadInstalledPluginsFromDisk();
|
|
315167
|
+
for (const [pluginId, diskInstallations] of Object.entries(diskState.plugins)) {
|
|
315168
|
+
const memoryInstallations = memoryState.plugins[pluginId];
|
|
315169
|
+
if (!memoryInstallations)
|
|
315170
|
+
continue;
|
|
315171
|
+
for (const diskEntry of diskInstallations) {
|
|
315172
|
+
const memoryEntry = memoryInstallations.find((m) => m.scope === diskEntry.scope && m.projectPath === diskEntry.projectPath);
|
|
315173
|
+
if (memoryEntry && memoryEntry.installPath !== diskEntry.installPath) {
|
|
315174
|
+
updates.push({
|
|
315175
|
+
pluginId,
|
|
315176
|
+
scope: diskEntry.scope,
|
|
315177
|
+
oldVersion: memoryEntry.version || "unknown",
|
|
315178
|
+
newVersion: diskEntry.version || "unknown"
|
|
315179
|
+
});
|
|
315180
|
+
}
|
|
315181
|
+
}
|
|
315182
|
+
}
|
|
315183
|
+
return updates;
|
|
315184
|
+
}
|
|
315185
|
+
function resetInMemoryState() {
|
|
315186
|
+
inMemoryInstalledPlugins = null;
|
|
315187
|
+
}
|
|
315043
315188
|
async function initializeVersionedPlugins() {
|
|
315044
315189
|
migrateToSinglePluginFile();
|
|
315045
315190
|
try {
|
|
@@ -315124,6 +315269,49 @@ function addInstalledPlugin(pluginId, metadata, scope = "user", projectPath) {
|
|
|
315124
315269
|
saveInstalledPluginsV2(v2Data);
|
|
315125
315270
|
logForDebugging(`${isUpdate ? "Updated" : "Added"} installed plugin: ${pluginId} (scope: ${scope})`);
|
|
315126
315271
|
}
|
|
315272
|
+
function removeInstalledPlugin(pluginId) {
|
|
315273
|
+
const v2Data = loadInstalledPluginsFromDisk();
|
|
315274
|
+
const installations = v2Data.plugins[pluginId];
|
|
315275
|
+
if (!installations || installations.length === 0) {
|
|
315276
|
+
return;
|
|
315277
|
+
}
|
|
315278
|
+
const firstInstall = installations[0];
|
|
315279
|
+
const metadata = firstInstall ? {
|
|
315280
|
+
version: firstInstall.version || "unknown",
|
|
315281
|
+
installedAt: firstInstall.installedAt || new Date().toISOString(),
|
|
315282
|
+
lastUpdated: firstInstall.lastUpdated,
|
|
315283
|
+
installPath: firstInstall.installPath,
|
|
315284
|
+
gitCommitSha: firstInstall.gitCommitSha
|
|
315285
|
+
} : undefined;
|
|
315286
|
+
delete v2Data.plugins[pluginId];
|
|
315287
|
+
saveInstalledPluginsV2(v2Data);
|
|
315288
|
+
logForDebugging(`Removed installed plugin: ${pluginId}`);
|
|
315289
|
+
return metadata;
|
|
315290
|
+
}
|
|
315291
|
+
function deletePluginCache(installPath) {
|
|
315292
|
+
const fs4 = getFsImplementation();
|
|
315293
|
+
try {
|
|
315294
|
+
fs4.rmSync(installPath, { recursive: true, force: true });
|
|
315295
|
+
logForDebugging(`Deleted plugin cache at ${installPath}`);
|
|
315296
|
+
const cachePath2 = getPluginCachePath();
|
|
315297
|
+
if (installPath.includes("/cache/") && installPath.startsWith(cachePath2)) {
|
|
315298
|
+
const pluginDir = dirname46(installPath);
|
|
315299
|
+
if (pluginDir !== cachePath2 && pluginDir.startsWith(cachePath2)) {
|
|
315300
|
+
try {
|
|
315301
|
+
const contents = fs4.readdirSync(pluginDir);
|
|
315302
|
+
if (contents.length === 0) {
|
|
315303
|
+
fs4.rmdirSync(pluginDir);
|
|
315304
|
+
logForDebugging(`Deleted empty plugin directory at ${pluginDir}`);
|
|
315305
|
+
}
|
|
315306
|
+
} catch {}
|
|
315307
|
+
}
|
|
315308
|
+
}
|
|
315309
|
+
} catch (error40) {
|
|
315310
|
+
const errorMsg = errorMessage(error40);
|
|
315311
|
+
logError2(toError(error40));
|
|
315312
|
+
throw new Error(`Failed to delete plugin cache at ${installPath}: ${errorMsg}`);
|
|
315313
|
+
}
|
|
315314
|
+
}
|
|
315127
315315
|
async function getGitCommitSha(dirPath) {
|
|
315128
315316
|
const sha = await getHeadForDir(dirPath);
|
|
315129
315317
|
return sha ?? undefined;
|
|
@@ -321236,7 +321424,7 @@ function getAssistantMessageFromError(error40, model, options2) {
|
|
|
321236
321424
|
if (process.env.USER_TYPE === "ant") {
|
|
321237
321425
|
const baseMessage = `API Error: 400 ${error40.message}
|
|
321238
321426
|
|
|
321239
|
-
Run /share and post the JSON file to ${{ VERSION: "0.2.
|
|
321427
|
+
Run /share and post the JSON file to ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL}.`;
|
|
321240
321428
|
const rewindInstruction = getIsNonInteractiveSession() ? "" : " Then, use /rewind to recover the conversation.";
|
|
321241
321429
|
return createAssistantAPIErrorMessage({
|
|
321242
321430
|
content: baseMessage + rewindInstruction,
|
|
@@ -321272,7 +321460,7 @@ Run /share and post the JSON file to ${{ VERSION: "0.2.35", BUILD_TIME: "1970-01
|
|
|
321272
321460
|
if (process.env.USER_TYPE === "ant" && !process.env.THEUS_MODEL && error40 instanceof Error && error40.message.toLowerCase().includes("invalid model name")) {
|
|
321273
321461
|
const orgId = getOauthAccountInfo()?.organizationUuid;
|
|
321274
321462
|
const baseMsg = `[THEUS-INTERNAL] Your org isn't gated into the \`${model}\` model. Either run \`theus\` with \`THEUS_MODEL=${getDefaultMainLoopModelSetting()}\``;
|
|
321275
|
-
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.
|
|
321463
|
+
const msg = orgId ? `${baseMsg} or share your orgId (${orgId}) in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.` : `${baseMsg} or reach out in ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.FEEDBACK_CHANNEL} for help getting access.`;
|
|
321276
321464
|
return createAssistantAPIErrorMessage({
|
|
321277
321465
|
content: msg,
|
|
321278
321466
|
error: "invalid_request"
|
|
@@ -331376,7 +331564,7 @@ function buildPrimarySection() {
|
|
|
331376
331564
|
});
|
|
331377
331565
|
return [{
|
|
331378
331566
|
label: "Version",
|
|
331379
|
-
value: { VERSION: "0.2.
|
|
331567
|
+
value: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
331380
331568
|
}, {
|
|
331381
331569
|
label: "Session name",
|
|
331382
331570
|
value: nameValue
|
|
@@ -335192,7 +335380,7 @@ function Config({
|
|
|
335192
335380
|
}
|
|
335193
335381
|
})
|
|
335194
335382
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime189.jsx(ChannelDowngradeDialog, {
|
|
335195
|
-
currentVersion: { VERSION: "0.2.
|
|
335383
|
+
currentVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
335196
335384
|
onChoice: (choice) => {
|
|
335197
335385
|
setShowSubmenu(null);
|
|
335198
335386
|
setTabsHidden(false);
|
|
@@ -335204,7 +335392,7 @@ function Config({
|
|
|
335204
335392
|
autoUpdatesChannel: "stable"
|
|
335205
335393
|
};
|
|
335206
335394
|
if (choice === "stay") {
|
|
335207
|
-
newSettings.minimumVersion = { VERSION: "0.2.
|
|
335395
|
+
newSettings.minimumVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
335208
335396
|
}
|
|
335209
335397
|
updateSettingsForSource("userSettings", newSettings);
|
|
335210
335398
|
setSettingsData((prev_27) => ({
|
|
@@ -343238,7 +343426,7 @@ function HelpV2(t0) {
|
|
|
343238
343426
|
let t6;
|
|
343239
343427
|
if ($2[31] !== tabs) {
|
|
343240
343428
|
t6 = /* @__PURE__ */ jsx_runtime216.jsx(Tabs, {
|
|
343241
|
-
title: `Theus v${{ VERSION: "0.2.
|
|
343429
|
+
title: `Theus v${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}`,
|
|
343242
343430
|
color: "professionalBlue",
|
|
343243
343431
|
defaultTab: "general",
|
|
343244
343432
|
children: tabs
|
|
@@ -352834,6 +353022,23 @@ var init_DiscoverPlugins = __esm(() => {
|
|
|
352834
353022
|
});
|
|
352835
353023
|
|
|
352836
353024
|
// services/plugins/pluginOperations.ts
|
|
353025
|
+
var exports_pluginOperations = {};
|
|
353026
|
+
__export(exports_pluginOperations, {
|
|
353027
|
+
updatePluginOp: () => updatePluginOp,
|
|
353028
|
+
uninstallPluginOp: () => uninstallPluginOp,
|
|
353029
|
+
setPluginEnabledOp: () => setPluginEnabledOp,
|
|
353030
|
+
isPluginEnabledAtProjectScope: () => isPluginEnabledAtProjectScope,
|
|
353031
|
+
isInstallableScope: () => isInstallableScope,
|
|
353032
|
+
installPluginOp: () => installPluginOp,
|
|
353033
|
+
getProjectPathForScope: () => getProjectPathForScope,
|
|
353034
|
+
getPluginInstallationFromV2: () => getPluginInstallationFromV2,
|
|
353035
|
+
enablePluginOp: () => enablePluginOp,
|
|
353036
|
+
disablePluginOp: () => disablePluginOp,
|
|
353037
|
+
disableAllPluginsOp: () => disableAllPluginsOp,
|
|
353038
|
+
assertInstallableScope: () => assertInstallableScope,
|
|
353039
|
+
VALID_UPDATE_SCOPES: () => VALID_UPDATE_SCOPES,
|
|
353040
|
+
VALID_INSTALLABLE_SCOPES: () => VALID_INSTALLABLE_SCOPES
|
|
353041
|
+
});
|
|
352837
353042
|
import { dirname as dirname55, join as join130 } from "path";
|
|
352838
353043
|
function assertInstallableScope(scope) {
|
|
352839
353044
|
if (!VALID_INSTALLABLE_SCOPES.includes(scope)) {
|
|
@@ -361312,7 +361517,7 @@ function Onboarding({
|
|
|
361312
361517
|
flexDirection: "column",
|
|
361313
361518
|
children: [
|
|
361314
361519
|
/* @__PURE__ */ jsx_runtime249.jsx(TheusBanner, {
|
|
361315
|
-
version: { VERSION: "0.2.
|
|
361520
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
361316
361521
|
}),
|
|
361317
361522
|
/* @__PURE__ */ jsx_runtime249.jsxs(ThemedBox_default, {
|
|
361318
361523
|
flexDirection: "column",
|
|
@@ -361657,9 +361862,9 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
361657
361862
|
return [];
|
|
361658
361863
|
}
|
|
361659
361864
|
}
|
|
361660
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.
|
|
361865
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
361661
361866
|
if (process.env.USER_TYPE === "ant") {
|
|
361662
|
-
const changelog = { VERSION: "0.2.
|
|
361867
|
+
const changelog = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION_CHANGELOG;
|
|
361663
361868
|
if (changelog) {
|
|
361664
361869
|
const commits = changelog.trim().split(`
|
|
361665
361870
|
`).filter(Boolean);
|
|
@@ -365861,7 +366066,7 @@ var init_Messages = __esm(() => {
|
|
|
365861
366066
|
let t1;
|
|
365862
366067
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365863
366068
|
t1 = /* @__PURE__ */ jsx_runtime261.jsx(TheusSessionHeader, {
|
|
365864
|
-
version: { VERSION: "0.2.
|
|
366069
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
365865
366070
|
});
|
|
365866
366071
|
$2[0] = t1;
|
|
365867
366072
|
} else {
|
|
@@ -394327,7 +394532,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
394327
394532
|
smapsRollup,
|
|
394328
394533
|
platform: process.platform,
|
|
394329
394534
|
nodeVersion: process.version,
|
|
394330
|
-
ccVersion: { VERSION: "0.2.
|
|
394535
|
+
ccVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394331
394536
|
};
|
|
394332
394537
|
}
|
|
394333
394538
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -394913,7 +395118,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
394913
395118
|
var call57 = async () => {
|
|
394914
395119
|
return {
|
|
394915
395120
|
type: "text",
|
|
394916
|
-
value: { VERSION: "0.2.
|
|
395121
|
+
value: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME ? `${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (built ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.BUILD_TIME})` : { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
394917
395122
|
};
|
|
394918
395123
|
}, version2, version_default;
|
|
394919
395124
|
var init_version = __esm(() => {
|
|
@@ -399355,13 +399560,13 @@ async function updateReleaseBundle() {
|
|
|
399355
399560
|
await gracefulShutdown(1);
|
|
399356
399561
|
return;
|
|
399357
399562
|
}
|
|
399358
|
-
if (gte({ VERSION: "0.2.
|
|
399359
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399563
|
+
if (gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
|
|
399564
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399360
399565
|
`);
|
|
399361
399566
|
await gracefulShutdown(0);
|
|
399362
399567
|
return;
|
|
399363
399568
|
}
|
|
399364
|
-
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.
|
|
399569
|
+
writeToStdout(`New version available: ${latest} (current: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399365
399570
|
`);
|
|
399366
399571
|
writeToStdout(`Installing update from theus.pe/dl...
|
|
399367
399572
|
`);
|
|
@@ -399395,7 +399600,7 @@ async function updateReleaseBundle() {
|
|
|
399395
399600
|
return;
|
|
399396
399601
|
}
|
|
399397
399602
|
cpSync(staged, bundleDir, { recursive: true, force: true });
|
|
399398
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399603
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latest}`) + `
|
|
399399
399604
|
`);
|
|
399400
399605
|
await regenerateCompletionCache();
|
|
399401
399606
|
} finally {
|
|
@@ -399408,7 +399613,7 @@ async function updateReleaseBundle() {
|
|
|
399408
399613
|
async function update() {
|
|
399409
399614
|
logEvent("tengu_update_check", {});
|
|
399410
399615
|
await updateNaupa();
|
|
399411
|
-
writeToStdout(`Current version: ${{ VERSION: "0.2.
|
|
399616
|
+
writeToStdout(`Current version: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
399412
399617
|
`);
|
|
399413
399618
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
399414
399619
|
writeToStdout(`Checking for updates to ${channel2} version...
|
|
@@ -399487,8 +399692,8 @@ async function update() {
|
|
|
399487
399692
|
writeToStdout(`Theus is managed by Homebrew.
|
|
399488
399693
|
`);
|
|
399489
399694
|
const latest = await getLatestVersion(channel2);
|
|
399490
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399491
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399695
|
+
if (latest && !gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
|
|
399696
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
|
|
399492
399697
|
`);
|
|
399493
399698
|
writeToStdout(`
|
|
399494
399699
|
`);
|
|
@@ -399504,8 +399709,8 @@ async function update() {
|
|
|
399504
399709
|
writeToStdout(`Theus is managed by winget.
|
|
399505
399710
|
`);
|
|
399506
399711
|
const latest = await getLatestVersion(channel2);
|
|
399507
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399508
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399712
|
+
if (latest && !gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
|
|
399713
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
|
|
399509
399714
|
`);
|
|
399510
399715
|
writeToStdout(`
|
|
399511
399716
|
`);
|
|
@@ -399521,8 +399726,8 @@ async function update() {
|
|
|
399521
399726
|
writeToStdout(`Theus is managed by apk.
|
|
399522
399727
|
`);
|
|
399523
399728
|
const latest = await getLatestVersion(channel2);
|
|
399524
|
-
if (latest && !gte({ VERSION: "0.2.
|
|
399525
|
-
writeToStdout(`Update available: ${{ VERSION: "0.2.
|
|
399729
|
+
if (latest && !gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest)) {
|
|
399730
|
+
writeToStdout(`Update available: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} \u2192 ${latest}
|
|
399526
399731
|
`);
|
|
399527
399732
|
writeToStdout(`
|
|
399528
399733
|
`);
|
|
@@ -399587,11 +399792,11 @@ async function update() {
|
|
|
399587
399792
|
`);
|
|
399588
399793
|
await gracefulShutdown(1);
|
|
399589
399794
|
}
|
|
399590
|
-
if (result.latestVersion === { VERSION: "0.2.
|
|
399591
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399795
|
+
if (result.latestVersion === { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
399796
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399592
399797
|
`);
|
|
399593
399798
|
} else {
|
|
399594
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399799
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${result.latestVersion}`) + `
|
|
399595
399800
|
`);
|
|
399596
399801
|
await regenerateCompletionCache();
|
|
399597
399802
|
}
|
|
@@ -399610,9 +399815,9 @@ async function update() {
|
|
|
399610
399815
|
await removeInstalledSymlink();
|
|
399611
399816
|
}
|
|
399612
399817
|
logForDebugging("update: Checking npm registry for latest version");
|
|
399613
|
-
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.
|
|
399818
|
+
logForDebugging(`update: Package URL: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`);
|
|
399614
399819
|
const npmTag = channel2 === "stable" ? "stable" : "latest";
|
|
399615
|
-
const npmCommand = `npm view ${{ VERSION: "0.2.
|
|
399820
|
+
const npmCommand = `npm view ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}@${npmTag} version`;
|
|
399616
399821
|
logForDebugging(`update: Running: ${npmCommand}`);
|
|
399617
399822
|
const latestVersion = await getLatestVersion(channel2);
|
|
399618
399823
|
logForDebugging(`update: Latest version from npm: ${latestVersion || "FAILED"}`);
|
|
@@ -399632,7 +399837,7 @@ async function update() {
|
|
|
399632
399837
|
`);
|
|
399633
399838
|
process.stderr.write(` \u2022 Corporate proxy/firewall blocking npm
|
|
399634
399839
|
`);
|
|
399635
|
-
if ({ VERSION: "0.2.
|
|
399840
|
+
if ({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL && !{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL.startsWith("@theus")) {
|
|
399636
399841
|
process.stderr.write(` \u2022 Internal/development build not published to npm
|
|
399637
399842
|
`);
|
|
399638
399843
|
}
|
|
@@ -399644,19 +399849,19 @@ async function update() {
|
|
|
399644
399849
|
`);
|
|
399645
399850
|
process.stderr.write(` \u2022 Run with --debug flag for more details
|
|
399646
399851
|
`);
|
|
399647
|
-
const packageName = { VERSION: "0.2.
|
|
399852
|
+
const packageName = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL || (process.env.USER_TYPE === "ant" ? "@theus-ai/theus-cli" : "@theus-ai/theus-code");
|
|
399648
399853
|
process.stderr.write(` \u2022 Manually check: npm view ${packageName} version
|
|
399649
399854
|
`);
|
|
399650
399855
|
process.stderr.write(` \u2022 Check if you need to login: npm whoami
|
|
399651
399856
|
`);
|
|
399652
399857
|
await gracefulShutdown(1);
|
|
399653
399858
|
}
|
|
399654
|
-
if (gte({ VERSION: "0.2.
|
|
399655
|
-
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.
|
|
399859
|
+
if (gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latestVersion)) {
|
|
399860
|
+
writeToStdout(source_default.green(`Theus is up to date (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})`) + `
|
|
399656
399861
|
`);
|
|
399657
399862
|
await gracefulShutdown(0);
|
|
399658
399863
|
}
|
|
399659
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.
|
|
399864
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION})
|
|
399660
399865
|
`);
|
|
399661
399866
|
writeToStdout(`Installing update...
|
|
399662
399867
|
`);
|
|
@@ -399701,7 +399906,7 @@ async function update() {
|
|
|
399701
399906
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
399702
399907
|
switch (status2) {
|
|
399703
399908
|
case "success":
|
|
399704
|
-
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.
|
|
399909
|
+
writeToStdout(source_default.green(`Successfully updated from ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} to version ${latestVersion}`) + `
|
|
399705
399910
|
`);
|
|
399706
399911
|
await regenerateCompletionCache();
|
|
399707
399912
|
break;
|
|
@@ -399711,7 +399916,7 @@ async function update() {
|
|
|
399711
399916
|
if (useLocalUpdate) {
|
|
399712
399917
|
process.stderr.write(`Try manually updating with:
|
|
399713
399918
|
`);
|
|
399714
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399919
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
|
|
399715
399920
|
`);
|
|
399716
399921
|
} else {
|
|
399717
399922
|
process.stderr.write(`Try running with sudo or fix npm permissions
|
|
@@ -399727,7 +399932,7 @@ async function update() {
|
|
|
399727
399932
|
if (useLocalUpdate) {
|
|
399728
399933
|
process.stderr.write(`Try manually updating with:
|
|
399729
399934
|
`);
|
|
399730
|
-
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
399935
|
+
process.stderr.write(` cd ~/.theus/local && npm update ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}
|
|
399731
399936
|
`);
|
|
399732
399937
|
} else {
|
|
399733
399938
|
process.stderr.write(`Or consider using native installation with: theus install
|
|
@@ -408804,7 +409009,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
408804
409009
|
init_settings2();
|
|
408805
409010
|
init_slowOperations();
|
|
408806
409011
|
init_uuid();
|
|
408807
|
-
VERSION4 = { VERSION: "0.2.
|
|
409012
|
+
VERSION4 = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
408808
409013
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
408809
409014
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
408810
409015
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -410009,7 +410214,7 @@ var init_filesystem = __esm(() => {
|
|
|
410009
410214
|
});
|
|
410010
410215
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
410011
410216
|
const nonce = randomBytes21(16).toString("hex");
|
|
410012
|
-
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.
|
|
410217
|
+
return join149(getTheusTempDir(), "bundled-skills", { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, nonce);
|
|
410013
410218
|
});
|
|
410014
410219
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
410015
410220
|
});
|
|
@@ -415188,7 +415393,7 @@ function getSimpleDoingTasksSection() {
|
|
|
415188
415393
|
];
|
|
415189
415394
|
const userHelpSubitems = [
|
|
415190
415395
|
`/help: Get help with using Theus`,
|
|
415191
|
-
`To give feedback, users should ${{ VERSION: "0.2.
|
|
415396
|
+
`To give feedback, users should ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.ISSUES_EXPLAINER}`
|
|
415192
415397
|
];
|
|
415193
415398
|
const items = [
|
|
415194
415399
|
`The user will primarily request you to perform software engineering tasks. These may include solving bugs, adding new functionality, refactoring code, explaining code, and more. When given an unclear or generic instruction, consider it in the context of these software engineering tasks and the current working directory. For example, if the user asks you to change "methodName" to snake case, do not reply with just "method_name", instead find the method in the code and modify the code.`,
|
|
@@ -416088,7 +416293,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
416088
416293
|
}
|
|
416089
416294
|
function computeFingerprintFromMessages(messages) {
|
|
416090
416295
|
const firstMessageText = extractFirstMessageText(messages);
|
|
416091
|
-
return computeFingerprint(firstMessageText, { VERSION: "0.2.
|
|
416296
|
+
return computeFingerprint(firstMessageText, { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
416092
416297
|
}
|
|
416093
416298
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
416094
416299
|
var init_fingerprint = () => {};
|
|
@@ -417956,12 +418161,23 @@ function getTheusChatProvider() {
|
|
|
417956
418161
|
}
|
|
417957
418162
|
return getManagedGatewayProvider();
|
|
417958
418163
|
}
|
|
417959
|
-
function
|
|
418164
|
+
function getManagedGatewayBases() {
|
|
418165
|
+
const override = env5("THEUS_GATEWAY_BASE_URL");
|
|
418166
|
+
if (override)
|
|
418167
|
+
return [override.replace(/\/+$/, "")];
|
|
418168
|
+
const configured = getOauthConfig().BASE_API_URL.replace(/\/+$/, "");
|
|
418169
|
+
if (configured === "https://theus.pe")
|
|
418170
|
+
return ["https://api.theus.pe", configured];
|
|
418171
|
+
return [configured];
|
|
418172
|
+
}
|
|
418173
|
+
function getManagedGatewayProvider(baseIndex = 0) {
|
|
417960
418174
|
try {
|
|
417961
418175
|
const accessToken = getTheusAIOAuthTokens()?.accessToken;
|
|
417962
418176
|
if (!accessToken || !isTheusAISubscriber())
|
|
417963
418177
|
return null;
|
|
417964
|
-
const base2 =
|
|
418178
|
+
const base2 = getManagedGatewayBases()[baseIndex];
|
|
418179
|
+
if (!base2)
|
|
418180
|
+
return null;
|
|
417965
418181
|
return {
|
|
417966
418182
|
id: "theus",
|
|
417967
418183
|
baseURL: `${base2}/v1`,
|
|
@@ -417986,6 +418202,7 @@ function buildFallbackChain(primary) {
|
|
|
417986
418202
|
};
|
|
417987
418203
|
push2(primary);
|
|
417988
418204
|
push2(getTheusChatProvider());
|
|
418205
|
+
push2(getManagedGatewayProvider(1));
|
|
417989
418206
|
if (!isEnvTruthy(process.env.THEUS_DISABLE_MAIN_PROVIDER)) {
|
|
417990
418207
|
const config3 = loadProvidersConfig4();
|
|
417991
418208
|
if (config3) {
|
|
@@ -418636,7 +418853,7 @@ async function sideQuery(opts) {
|
|
|
418636
418853
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
418637
418854
|
}
|
|
418638
418855
|
const messageText = extractFirstUserMessageText(messages);
|
|
418639
|
-
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.
|
|
418856
|
+
const fingerprint = computeFingerprint(messageText, { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION);
|
|
418640
418857
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
418641
418858
|
const systemBlocks = [
|
|
418642
418859
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -419939,7 +420156,7 @@ async function handleMemories(state) {
|
|
|
419939
420156
|
async function runProjectContextMcpServer() {
|
|
419940
420157
|
const projectRoot = process.env.THEUS_PROJECT_ROOT || process.cwd();
|
|
419941
420158
|
const state = new ProjectContextState(projectRoot);
|
|
419942
|
-
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.
|
|
420159
|
+
const server2 = new Server({ name: SERVER_NAME, version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION }, { capabilities: { tools: {} } });
|
|
419943
420160
|
server2.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
419944
420161
|
tools: TOOL_DEFINITIONS.map((t) => ({
|
|
419945
420162
|
name: t.name,
|
|
@@ -421919,7 +422136,7 @@ function createBridgeLogger(options2) {
|
|
|
421919
422136
|
connectUrl = buildBridgeConnectUrl(environmentId, cachedIngressUrl);
|
|
421920
422137
|
regenerateQr(connectUrl);
|
|
421921
422138
|
if (verbose) {
|
|
421922
|
-
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.
|
|
422139
|
+
write(source_default.dim(`Remote Control`) + ` v${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}
|
|
421923
422140
|
`);
|
|
421924
422141
|
}
|
|
421925
422142
|
if (verbose) {
|
|
@@ -422892,7 +423109,7 @@ function appendToLog(path19, message) {
|
|
|
422892
423109
|
cwd: getFsImplementation().cwd(),
|
|
422893
423110
|
userType: process.env.USER_TYPE,
|
|
422894
423111
|
sessionId: getSessionId(),
|
|
422895
|
-
version: { VERSION: "0.2.
|
|
423112
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
422896
423113
|
};
|
|
422897
423114
|
getLogWriter(path19).write(messageWithTimestamp);
|
|
422898
423115
|
}
|
|
@@ -424162,7 +424379,7 @@ Spawn mode for this project:
|
|
|
424162
424379
|
const api2 = createBridgeApiClient({
|
|
424163
424380
|
baseUrl,
|
|
424164
424381
|
getAccessToken: getBridgeAccessToken2,
|
|
424165
|
-
runnerVersion: { VERSION: "0.2.
|
|
424382
|
+
runnerVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424166
424383
|
onDebug: logForDebugging,
|
|
424167
424384
|
onAuth401: handleOAuth401Error2,
|
|
424168
424385
|
getTrustedDeviceToken
|
|
@@ -424400,7 +424617,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
424400
424617
|
const api2 = createBridgeApiClient({
|
|
424401
424618
|
baseUrl,
|
|
424402
424619
|
getAccessToken: opts.getAccessToken,
|
|
424403
|
-
runnerVersion: { VERSION: "0.2.
|
|
424620
|
+
runnerVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
424404
424621
|
onDebug: log2,
|
|
424405
424622
|
onAuth401: opts.onAuth401,
|
|
424406
424623
|
getTrustedDeviceToken
|
|
@@ -428464,7 +428681,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
428464
428681
|
slash_commands: inputs.commands.filter((c5) => c5.userInvocable !== false).map((c5) => c5.name),
|
|
428465
428682
|
apiKeySource: getTheusApiKeyWithSource().source,
|
|
428466
428683
|
betas: getSdkBetas(),
|
|
428467
|
-
theus_code_version: { VERSION: "0.2.
|
|
428684
|
+
theus_code_version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
428468
428685
|
output_style: outputStyle2,
|
|
428469
428686
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
428470
428687
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -428504,8 +428721,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
428504
428721
|
}
|
|
428505
428722
|
async function checkEnvLessBridgeMinVersion() {
|
|
428506
428723
|
const cfg = await getEnvLessBridgeConfig();
|
|
428507
|
-
if (cfg.min_version && lt({ VERSION: "0.2.
|
|
428508
|
-
return `Your version of Theus (${{ VERSION: "0.2.
|
|
428724
|
+
if (cfg.min_version && lt({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, cfg.min_version)) {
|
|
428725
|
+
return `Your version of Theus (${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION}) is too old for Remote Control.
|
|
428509
428726
|
Version ${cfg.min_version} or higher is required. Run \`theus update\` to update.`;
|
|
428510
428727
|
}
|
|
428511
428728
|
return null;
|
|
@@ -430828,7 +431045,7 @@ async function initBridgeCore(params) {
|
|
|
430828
431045
|
const rawApi = createBridgeApiClient({
|
|
430829
431046
|
baseUrl,
|
|
430830
431047
|
getAccessToken,
|
|
430831
|
-
runnerVersion: { VERSION: "0.2.
|
|
431048
|
+
runnerVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
430832
431049
|
onDebug: logForDebugging,
|
|
430833
431050
|
onAuth401,
|
|
430834
431051
|
getTrustedDeviceToken
|
|
@@ -447569,7 +447786,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
447569
447786
|
function getSemverPart(version3) {
|
|
447570
447787
|
return `${import_semver14.major(version3, { loose: true })}.${import_semver14.minor(version3, { loose: true })}.${import_semver14.patch(version3, { loose: true })}`;
|
|
447571
447788
|
}
|
|
447572
|
-
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.
|
|
447789
|
+
function useUpdateNotification(updatedVersion, initialVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION) {
|
|
447573
447790
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react231.useState(() => getSemverPart(initialVersion));
|
|
447574
447791
|
if (!updatedVersion) {
|
|
447575
447792
|
return null;
|
|
@@ -447609,7 +447826,7 @@ function AutoUpdater({
|
|
|
447609
447826
|
return;
|
|
447610
447827
|
}
|
|
447611
447828
|
if (false) {}
|
|
447612
|
-
const currentVersion = { VERSION: "0.2.
|
|
447829
|
+
const currentVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447613
447830
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
447614
447831
|
let latestVersion = await getLatestVersion(channel2);
|
|
447615
447832
|
const isDisabled2 = isAutoUpdaterDisabled();
|
|
@@ -447745,7 +447962,7 @@ function AutoUpdater({
|
|
|
447745
447962
|
" ",
|
|
447746
447963
|
/* @__PURE__ */ jsx_runtime406.jsx(ThemedText, {
|
|
447747
447964
|
bold: true,
|
|
447748
|
-
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.
|
|
447965
|
+
children: hasLocalInstall ? `cd ~/.theus/local && npm update ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}` : `npm i -g ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.PACKAGE_URL}`
|
|
447749
447966
|
})
|
|
447750
447967
|
]
|
|
447751
447968
|
})
|
|
@@ -447822,12 +448039,12 @@ function NativeAutoUpdater({
|
|
|
447822
448039
|
logEvent("tengu_native_auto_updater_start", {});
|
|
447823
448040
|
try {
|
|
447824
448041
|
const maxVersion = await getMaxVersion();
|
|
447825
|
-
if (maxVersion && gt({ VERSION: "0.2.
|
|
448042
|
+
if (maxVersion && gt({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
|
|
447826
448043
|
const msg = await getMaxVersionMessage();
|
|
447827
448044
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
447828
448045
|
}
|
|
447829
448046
|
const result = await installLatest(channel2);
|
|
447830
|
-
const currentVersion = { VERSION: "0.2.
|
|
448047
|
+
const currentVersion = { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION;
|
|
447831
448048
|
const latencyMs = Date.now() - startTime2;
|
|
447832
448049
|
if (result.lockFailed) {
|
|
447833
448050
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -447964,17 +448181,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
447964
448181
|
const maxVersion = await getMaxVersion();
|
|
447965
448182
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
447966
448183
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
447967
|
-
if (gte({ VERSION: "0.2.
|
|
447968
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.
|
|
448184
|
+
if (gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, maxVersion)) {
|
|
448185
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
447969
448186
|
setUpdateAvailable(false);
|
|
447970
448187
|
return;
|
|
447971
448188
|
}
|
|
447972
448189
|
latest = maxVersion;
|
|
447973
448190
|
}
|
|
447974
|
-
const hasUpdate = latest && !gte({ VERSION: "0.2.
|
|
448191
|
+
const hasUpdate = latest && !gte({ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION, latest) && !shouldSkipVersion(latest);
|
|
447975
448192
|
setUpdateAvailable(!!hasUpdate);
|
|
447976
448193
|
if (hasUpdate) {
|
|
447977
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.
|
|
448194
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} -> ${latest}`);
|
|
447978
448195
|
}
|
|
447979
448196
|
};
|
|
447980
448197
|
$2[0] = t1;
|
|
@@ -448008,7 +448225,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
448008
448225
|
wrap: "truncate",
|
|
448009
448226
|
children: [
|
|
448010
448227
|
"currentVersion: ",
|
|
448011
|
-
{ VERSION: "0.2.
|
|
448228
|
+
{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
448012
448229
|
]
|
|
448013
448230
|
});
|
|
448014
448231
|
$2[3] = verbose;
|
|
@@ -455881,7 +456098,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
455881
456098
|
project_dir: getOriginalCwd(),
|
|
455882
456099
|
added_dirs: addedDirs
|
|
455883
456100
|
},
|
|
455884
|
-
version: { VERSION: "0.2.
|
|
456101
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
455885
456102
|
output_style: {
|
|
455886
456103
|
name: outputStyleName
|
|
455887
456104
|
},
|
|
@@ -467301,7 +467518,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
467301
467518
|
} catch {}
|
|
467302
467519
|
const data = {
|
|
467303
467520
|
trigger,
|
|
467304
|
-
version: { VERSION: "0.2.
|
|
467521
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
467305
467522
|
platform: process.platform,
|
|
467306
467523
|
transcript,
|
|
467307
467524
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -480308,7 +480525,7 @@ function completeOnboarding() {
|
|
|
480308
480525
|
saveGlobalConfig((current) => ({
|
|
480309
480526
|
...current,
|
|
480310
480527
|
hasCompletedOnboarding: true,
|
|
480311
|
-
lastOnboardingVersion: { VERSION: "0.2.
|
|
480528
|
+
lastOnboardingVersion: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
480312
480529
|
}));
|
|
480313
480530
|
}
|
|
480314
480531
|
function showDialog(root2, renderer) {
|
|
@@ -485725,6 +485942,79 @@ var init_setup4 = __esm(() => {
|
|
|
485725
485942
|
COMPUTER_USE_SYSTEM_HINT = "Tienes control del escritorio (computer-use) v\xEDa las tools " + "`mcp__theus-computer-use__*`. Para operar la pantalla: toma primero un " + "`screenshot`, razona sobre lo que ves, y da las coordenadas de click/movimiento " + "en P\xCDXELES dentro de esa imagen. Tras cada acci\xF3n, vuelve a capturar para " + "verificar. Si una tool reporta falta de permisos macOS, dile al usuario que " + "otorgue Grabaci\xF3n de pantalla y Accesibilidad a su terminal.";
|
|
485726
485943
|
});
|
|
485727
485944
|
|
|
485945
|
+
// services/arsenalBundled.ts
|
|
485946
|
+
var exports_arsenalBundled = {};
|
|
485947
|
+
__export(exports_arsenalBundled, {
|
|
485948
|
+
isArsenalAutoInstallEnabled: () => isArsenalAutoInstallEnabled,
|
|
485949
|
+
ensureBundledArsenalInstalled: () => ensureBundledArsenalInstalled
|
|
485950
|
+
});
|
|
485951
|
+
import { existsSync as existsSync26, readFileSync as readFileSync30 } from "fs";
|
|
485952
|
+
import { dirname as dirname75, join as join174 } from "path";
|
|
485953
|
+
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
485954
|
+
function isArsenalAutoInstallEnabled() {
|
|
485955
|
+
return process.env.THEUS_NO_ARSENAL !== "1";
|
|
485956
|
+
}
|
|
485957
|
+
function findBundledArsenalDir() {
|
|
485958
|
+
const here = dirname75(fileURLToPath9(import.meta.url));
|
|
485959
|
+
for (const candidate of [
|
|
485960
|
+
join174(here, "vendor", "theus-arsenal"),
|
|
485961
|
+
join174(here, "..", "vendor", "theus-arsenal")
|
|
485962
|
+
]) {
|
|
485963
|
+
if (existsSync26(join174(candidate, ".theus-plugin", "plugin.json"))) {
|
|
485964
|
+
return candidate;
|
|
485965
|
+
}
|
|
485966
|
+
}
|
|
485967
|
+
return null;
|
|
485968
|
+
}
|
|
485969
|
+
function readBundledVersion(bundledDir) {
|
|
485970
|
+
try {
|
|
485971
|
+
const manifest = JSON.parse(readFileSync30(join174(bundledDir, ".theus-plugin", "plugin.json"), "utf8"));
|
|
485972
|
+
return typeof manifest.version === "string" ? manifest.version : null;
|
|
485973
|
+
} catch {
|
|
485974
|
+
return null;
|
|
485975
|
+
}
|
|
485976
|
+
}
|
|
485977
|
+
function isNewerVersion(a2, b) {
|
|
485978
|
+
const pa = a2.split(".").map((n3) => Number.parseInt(n3, 10) || 0);
|
|
485979
|
+
const pb = b.split(".").map((n3) => Number.parseInt(n3, 10) || 0);
|
|
485980
|
+
for (let i3 = 0;i3 < 3; i3++) {
|
|
485981
|
+
if ((pa[i3] ?? 0) > (pb[i3] ?? 0))
|
|
485982
|
+
return true;
|
|
485983
|
+
if ((pa[i3] ?? 0) < (pb[i3] ?? 0))
|
|
485984
|
+
return false;
|
|
485985
|
+
}
|
|
485986
|
+
return false;
|
|
485987
|
+
}
|
|
485988
|
+
async function ensureBundledArsenalInstalled() {
|
|
485989
|
+
const bundledDir = findBundledArsenalDir();
|
|
485990
|
+
if (!bundledDir)
|
|
485991
|
+
return;
|
|
485992
|
+
const bundledVersion = readBundledVersion(bundledDir);
|
|
485993
|
+
if (!bundledVersion)
|
|
485994
|
+
return;
|
|
485995
|
+
const { loadInstalledPluginsV2: loadInstalledPluginsV22 } = await Promise.resolve().then(() => (init_installedPluginsManager(), exports_installedPluginsManager));
|
|
485996
|
+
const installed = loadInstalledPluginsV22().plugins?.[PLUGIN_ID];
|
|
485997
|
+
const current = Array.isArray(installed) ? installed.find((entry) => entry && typeof entry.version === "string") : undefined;
|
|
485998
|
+
if (current?.version && !isNewerVersion(bundledVersion, current.version)) {
|
|
485999
|
+
return;
|
|
486000
|
+
}
|
|
486001
|
+
const { loadKnownMarketplacesConfigSafe: loadKnownMarketplacesConfigSafe2, addMarketplaceSource: addMarketplaceSource2 } = await Promise.resolve().then(() => (init_marketplaceManager(), exports_marketplaceManager));
|
|
486002
|
+
const known = await loadKnownMarketplacesConfigSafe2();
|
|
486003
|
+
if (!known[MARKETPLACE_NAME]) {
|
|
486004
|
+
await addMarketplaceSource2({ source: "directory", path: bundledDir });
|
|
486005
|
+
}
|
|
486006
|
+
const { installPluginOp: installPluginOp2, updatePluginOp: updatePluginOp2 } = await Promise.resolve().then(() => (init_pluginOperations(), exports_pluginOperations));
|
|
486007
|
+
if (current?.version) {
|
|
486008
|
+
await updatePluginOp2(PLUGIN_ID, current.scope ?? "user");
|
|
486009
|
+
} else {
|
|
486010
|
+
await installPluginOp2(PLUGIN_ID, "user");
|
|
486011
|
+
}
|
|
486012
|
+
}
|
|
486013
|
+
var PLUGIN_NAME = "arsenal", MARKETPLACE_NAME = "theus", PLUGIN_ID;
|
|
486014
|
+
var init_arsenalBundled = __esm(() => {
|
|
486015
|
+
PLUGIN_ID = `${PLUGIN_NAME}@${MARKETPLACE_NAME}`;
|
|
486016
|
+
});
|
|
486017
|
+
|
|
485728
486018
|
// services/SessionMemory/sessionMemory.ts
|
|
485729
486019
|
import { writeFile as writeFile57 } from "fs/promises";
|
|
485730
486020
|
function isSessionMemoryGateEnabled() {
|
|
@@ -485925,7 +486215,7 @@ var init_sessionMemory = __esm(() => {
|
|
|
485925
486215
|
// utils/iTermBackup.ts
|
|
485926
486216
|
import { copyFile as copyFile10, stat as stat51 } from "fs/promises";
|
|
485927
486217
|
import { homedir as homedir50 } from "os";
|
|
485928
|
-
import { join as
|
|
486218
|
+
import { join as join175 } from "path";
|
|
485929
486219
|
function markITerm2SetupComplete() {
|
|
485930
486220
|
saveGlobalConfig((current) => ({
|
|
485931
486221
|
...current,
|
|
@@ -485940,7 +486230,7 @@ function getIterm2RecoveryInfo() {
|
|
|
485940
486230
|
};
|
|
485941
486231
|
}
|
|
485942
486232
|
function getITerm2PlistPath() {
|
|
485943
|
-
return
|
|
486233
|
+
return join175(homedir50(), "Library", "Preferences", "com.googlecode.iterm2.plist");
|
|
485944
486234
|
}
|
|
485945
486235
|
async function checkAndRestoreITerm2Backup() {
|
|
485946
486236
|
const { inProgress, backupPath } = getIterm2RecoveryInfo();
|
|
@@ -487520,7 +487810,7 @@ var init_sessionUrl = __esm(() => {
|
|
|
487520
487810
|
|
|
487521
487811
|
// utils/plugins/zipCacheAdapters.ts
|
|
487522
487812
|
import { readFile as readFile57 } from "fs/promises";
|
|
487523
|
-
import { join as
|
|
487813
|
+
import { join as join176 } from "path";
|
|
487524
487814
|
async function readZipCacheKnownMarketplaces() {
|
|
487525
487815
|
try {
|
|
487526
487816
|
const content = await readFile57(getZipCacheKnownMarketplacesPath(), "utf-8");
|
|
@@ -487545,13 +487835,13 @@ async function saveMarketplaceJsonToZipCache(marketplaceName, installLocation) {
|
|
|
487545
487835
|
const content = await readMarketplaceJsonContent(installLocation);
|
|
487546
487836
|
if (content !== null) {
|
|
487547
487837
|
const relPath = getMarketplaceJsonRelativePath(marketplaceName);
|
|
487548
|
-
await atomicWriteToZipCache(
|
|
487838
|
+
await atomicWriteToZipCache(join176(zipCachePath, relPath), content);
|
|
487549
487839
|
}
|
|
487550
487840
|
}
|
|
487551
487841
|
async function readMarketplaceJsonContent(dir) {
|
|
487552
487842
|
const candidates = [
|
|
487553
|
-
|
|
487554
|
-
|
|
487843
|
+
join176(dir, ".theus-plugin", "marketplace.json"),
|
|
487844
|
+
join176(dir, "marketplace.json"),
|
|
487555
487845
|
dir
|
|
487556
487846
|
];
|
|
487557
487847
|
for (const candidate of candidates) {
|
|
@@ -487687,7 +487977,7 @@ __export(exports_print, {
|
|
|
487687
487977
|
canBatchWith: () => canBatchWith
|
|
487688
487978
|
});
|
|
487689
487979
|
import { readFile as readFile58, stat as stat52 } from "fs/promises";
|
|
487690
|
-
import { dirname as
|
|
487980
|
+
import { dirname as dirname76 } from "path";
|
|
487691
487981
|
import { cwd as cwd2 } from "process";
|
|
487692
487982
|
import { randomUUID as randomUUID58 } from "crypto";
|
|
487693
487983
|
function trackReceivedMessageUuid(uuid3) {
|
|
@@ -490175,7 +490465,7 @@ async function loadInitialMessages(setAppState, options2) {
|
|
|
490175
490465
|
if (false) {}
|
|
490176
490466
|
if (!options2.forkSession) {
|
|
490177
490467
|
if (result.sessionId) {
|
|
490178
|
-
switchSession(asSessionId(result.sessionId), result.fullPath ?
|
|
490468
|
+
switchSession(asSessionId(result.sessionId), result.fullPath ? dirname76(result.fullPath) : null);
|
|
490179
490469
|
if (persistSession) {
|
|
490180
490470
|
await resetSessionFilePointer();
|
|
490181
490471
|
}
|
|
@@ -490273,7 +490563,7 @@ async function loadInitialMessages(setAppState, options2) {
|
|
|
490273
490563
|
}
|
|
490274
490564
|
if (false) {}
|
|
490275
490565
|
if (!options2.forkSession && result.sessionId) {
|
|
490276
|
-
switchSession(asSessionId(result.sessionId), result.fullPath ?
|
|
490566
|
+
switchSession(asSessionId(result.sessionId), result.fullPath ? dirname76(result.fullPath) : null);
|
|
490277
490567
|
if (persistSession) {
|
|
490278
490568
|
await resetSessionFilePointer();
|
|
490279
490569
|
}
|
|
@@ -491123,7 +491413,7 @@ async function startMCPServer(cwd3, debug3, verbose) {
|
|
|
491123
491413
|
setCwd(cwd3);
|
|
491124
491414
|
const server2 = new Server({
|
|
491125
491415
|
name: "theus/tengu",
|
|
491126
|
-
version: { VERSION: "0.2.
|
|
491416
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
491127
491417
|
}, {
|
|
491128
491418
|
capabilities: {
|
|
491129
491419
|
tools: {}
|
|
@@ -491255,14 +491545,14 @@ __export(exports_theusDesktop, {
|
|
|
491255
491545
|
});
|
|
491256
491546
|
import { readdir as readdir33, readFile as readFile59, stat as stat53 } from "fs/promises";
|
|
491257
491547
|
import { homedir as homedir51 } from "os";
|
|
491258
|
-
import { join as
|
|
491548
|
+
import { join as join177 } from "path";
|
|
491259
491549
|
async function getTheusDesktopConfigPath() {
|
|
491260
491550
|
const platform7 = getPlatform();
|
|
491261
491551
|
if (!SUPPORTED_PLATFORMS.includes(platform7)) {
|
|
491262
491552
|
throw new Error(`Unsupported platform: ${platform7} - Theus Desktop integration only works on macOS and WSL.`);
|
|
491263
491553
|
}
|
|
491264
491554
|
if (platform7 === "macos") {
|
|
491265
|
-
return
|
|
491555
|
+
return join177(homedir51(), "Library", "Application Support", "Theus", "theus_desktop_config.json");
|
|
491266
491556
|
}
|
|
491267
491557
|
const windowsHome = process.env.USERPROFILE ? process.env.USERPROFILE.replace(/\\/g, "/") : null;
|
|
491268
491558
|
if (windowsHome) {
|
|
@@ -491281,7 +491571,7 @@ async function getTheusDesktopConfigPath() {
|
|
|
491281
491571
|
if (user.name === "Public" || user.name === "Default" || user.name === "Default User" || user.name === "All Users") {
|
|
491282
491572
|
continue;
|
|
491283
491573
|
}
|
|
491284
|
-
const potentialConfigPath =
|
|
491574
|
+
const potentialConfigPath = join177(usersDir, user.name, "AppData", "Roaming", "Theus", "theus_desktop_config.json");
|
|
491285
491575
|
try {
|
|
491286
491576
|
await stat53(potentialConfigPath);
|
|
491287
491577
|
return potentialConfigPath;
|
|
@@ -491677,7 +491967,7 @@ __export(exports_plugins, {
|
|
|
491677
491967
|
VALID_UPDATE_SCOPES: () => VALID_UPDATE_SCOPES,
|
|
491678
491968
|
VALID_INSTALLABLE_SCOPES: () => VALID_INSTALLABLE_SCOPES
|
|
491679
491969
|
});
|
|
491680
|
-
import { basename as basename68, dirname as
|
|
491970
|
+
import { basename as basename68, dirname as dirname77 } from "path";
|
|
491681
491971
|
function handleMarketplaceError(error40, action2) {
|
|
491682
491972
|
logError2(error40);
|
|
491683
491973
|
cliError(`${figures_default.cross} Failed to ${action2}: ${errorMessage(error40)}`);
|
|
@@ -491710,9 +492000,9 @@ async function pluginValidateHandler(manifestPath, options2) {
|
|
|
491710
492000
|
printValidationResult(result);
|
|
491711
492001
|
let contentResults = [];
|
|
491712
492002
|
if (result.fileType === "plugin") {
|
|
491713
|
-
const manifestDir =
|
|
492003
|
+
const manifestDir = dirname77(result.filePath);
|
|
491714
492004
|
if (basename68(manifestDir) === ".theus-plugin") {
|
|
491715
|
-
contentResults = await validatePluginContents(
|
|
492005
|
+
contentResults = await validatePluginContents(dirname77(manifestDir));
|
|
491716
492006
|
for (const r of contentResults) {
|
|
491717
492007
|
console.log(`Validating ${r.fileType}: ${r.filePath}
|
|
491718
492008
|
`);
|
|
@@ -492190,12 +492480,12 @@ __export(exports_install, {
|
|
|
492190
492480
|
install: () => install
|
|
492191
492481
|
});
|
|
492192
492482
|
import { homedir as homedir52 } from "os";
|
|
492193
|
-
import { join as
|
|
492483
|
+
import { join as join178 } from "path";
|
|
492194
492484
|
function getInstallationPath2() {
|
|
492195
492485
|
const isWindows2 = env3.platform === "win32";
|
|
492196
492486
|
const homeDir = homedir52();
|
|
492197
492487
|
if (isWindows2) {
|
|
492198
|
-
const windowsPath =
|
|
492488
|
+
const windowsPath = join178(homeDir, ".local", "bin", "theus.exe");
|
|
492199
492489
|
return windowsPath.replace(/\//g, "\\");
|
|
492200
492490
|
}
|
|
492201
492491
|
return "~/.local/bin/theus";
|
|
@@ -492565,7 +492855,7 @@ async function setupTokenHandler(root2) {
|
|
|
492565
492855
|
gap: 1,
|
|
492566
492856
|
children: [
|
|
492567
492857
|
/* @__PURE__ */ jsx_runtime493.jsx(TheusBanner, {
|
|
492568
|
-
version: { VERSION: "0.2.
|
|
492858
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION
|
|
492569
492859
|
}),
|
|
492570
492860
|
showAuthWarning && /* @__PURE__ */ jsx_runtime493.jsxs(ThemedBox_default, {
|
|
492571
492861
|
flexDirection: "column",
|
|
@@ -492735,7 +493025,7 @@ __export(exports_main2, {
|
|
|
492735
493025
|
startDeferredPrefetches: () => startDeferredPrefetches,
|
|
492736
493026
|
main: () => main
|
|
492737
493027
|
});
|
|
492738
|
-
import { readFileSync as
|
|
493028
|
+
import { readFileSync as readFileSync31 } from "fs";
|
|
492739
493029
|
import { resolve as resolve52 } from "path";
|
|
492740
493030
|
function logManagedSettings() {
|
|
492741
493031
|
try {
|
|
@@ -492891,7 +493181,7 @@ function loadSettingsFromFlag(settingsFile) {
|
|
|
492891
493181
|
resolvedPath: resolvedSettingsPath
|
|
492892
493182
|
} = safeResolvePath(getFsImplementation(), settingsFile);
|
|
492893
493183
|
try {
|
|
492894
|
-
|
|
493184
|
+
readFileSync31(resolvedSettingsPath, "utf8");
|
|
492895
493185
|
} catch (e) {
|
|
492896
493186
|
if (isENOENT(e)) {
|
|
492897
493187
|
process.stderr.write(source_default.red(`Error: Settings file not found: ${resolvedSettingsPath}
|
|
@@ -493324,7 +493614,7 @@ ${getTmuxInstallInstructions2()}
|
|
|
493324
493614
|
}
|
|
493325
493615
|
try {
|
|
493326
493616
|
const filePath = resolve52(options2.systemPromptFile);
|
|
493327
|
-
systemPrompt =
|
|
493617
|
+
systemPrompt = readFileSync31(filePath, "utf8");
|
|
493328
493618
|
} catch (error40) {
|
|
493329
493619
|
const code = getErrnoCode(error40);
|
|
493330
493620
|
if (code === "ENOENT") {
|
|
@@ -493346,7 +493636,7 @@ ${getTmuxInstallInstructions2()}
|
|
|
493346
493636
|
}
|
|
493347
493637
|
try {
|
|
493348
493638
|
const filePath = resolve52(options2.appendSystemPromptFile);
|
|
493349
|
-
appendSystemPrompt =
|
|
493639
|
+
appendSystemPrompt = readFileSync31(filePath, "utf8");
|
|
493350
493640
|
} catch (error40) {
|
|
493351
493641
|
const code = getErrnoCode(error40);
|
|
493352
493642
|
if (code === "ENOENT") {
|
|
@@ -493583,6 +493873,19 @@ ${naupaHint}` : naupaHint;
|
|
|
493583
493873
|
logForDebugging(`[Theus \xD1aupa] Setup failed: ${errorMessage(error40)}`);
|
|
493584
493874
|
}
|
|
493585
493875
|
}
|
|
493876
|
+
if (!getIsNonInteractiveSession()) {
|
|
493877
|
+
try {
|
|
493878
|
+
const {
|
|
493879
|
+
isArsenalAutoInstallEnabled: isArsenalAutoInstallEnabled2,
|
|
493880
|
+
ensureBundledArsenalInstalled: ensureBundledArsenalInstalled2
|
|
493881
|
+
} = await Promise.resolve().then(() => (init_arsenalBundled(), exports_arsenalBundled));
|
|
493882
|
+
if (isArsenalAutoInstallEnabled2()) {
|
|
493883
|
+
await ensureBundledArsenalInstalled2();
|
|
493884
|
+
}
|
|
493885
|
+
} catch (error40) {
|
|
493886
|
+
logForDebugging(`[Theus Arsenal] Auto-instalaci\xF3n fall\xF3: ${errorMessage(error40)}`);
|
|
493887
|
+
}
|
|
493888
|
+
}
|
|
493586
493889
|
setAdditionalDirectoriesForTheusMd(addDir2);
|
|
493587
493890
|
let devChannels;
|
|
493588
493891
|
if (false) {}
|
|
@@ -494034,7 +494337,7 @@ ${assistantAddendum}` : assistantAddendum;
|
|
|
494034
494337
|
}
|
|
494035
494338
|
}
|
|
494036
494339
|
logForDiagnosticsNoPII("info", "started", {
|
|
494037
|
-
version: { VERSION: "0.2.
|
|
494340
|
+
version: { VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION,
|
|
494038
494341
|
is_native_binary: isInBundledMode()
|
|
494039
494342
|
});
|
|
494040
494343
|
registerCleanup(async () => {
|
|
@@ -494902,7 +495205,7 @@ Usage: theus --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
494902
495205
|
pendingHookMessages
|
|
494903
495206
|
}, renderAndRun);
|
|
494904
495207
|
}
|
|
494905
|
-
}).version(`${{ VERSION: "0.2.
|
|
495208
|
+
}).version(`${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`, "-v, --version", "Muestra el n\xFAmero de versi\xF3n");
|
|
494906
495209
|
program2.option("-w, --worktree [name]", "Crea un nuevo worktree de git para esta sesi\xF3n (opcionalmente indica un nombre)");
|
|
494907
495210
|
program2.option("--tmux", "Crea una sesi\xF3n de tmux para el worktree (requiere --worktree). Usa paneles nativos de iTerm2 cuando est\xE1n disponibles; usa --tmux=classic para tmux tradicional.");
|
|
494908
495211
|
if (canUserConfigureAdvisor()) {
|
|
@@ -495454,7 +495757,7 @@ if (false) {}
|
|
|
495454
495757
|
async function main2() {
|
|
495455
495758
|
const args = process.argv.slice(2);
|
|
495456
495759
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
495457
|
-
console.log(`${{ VERSION: "0.2.
|
|
495760
|
+
console.log(`${{ VERSION: "0.2.37", BUILD_TIME: "1970-01-01T00:00:00.000Z", PACKAGE_URL: "theus-cli", NATIVE_PACKAGE_URL: "theus-cli-native", FEEDBACK_CHANNEL: "theus", VERSION_CHANGELOG: "", ISSUES_EXPLAINER: "report issues to the Theus maintainers" }.VERSION} (Theus)`);
|
|
495458
495761
|
return;
|
|
495459
495762
|
}
|
|
495460
495763
|
const {
|