theus-cli-linux-arm64 1.2.2 → 1.3.0
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/RELEASE.json +6 -6
- package/bin/theus +0 -0
- package/package.json +1 -1
- package/vendor/higiene-motor/PARCHES.md +244 -0
- package/vendor/higiene-motor/audit_dir.py +166 -0
- package/vendor/higiene-motor/audit_lib.py +333 -0
- package/vendor/higiene-motor/audit_website.py +635 -0
- package/vendor/higiene-motor/av_meta.py +498 -0
- package/vendor/higiene-motor/check_staged.py +71 -0
- package/vendor/higiene-motor/clean_ctrlregen.py +212 -0
- package/vendor/higiene-motor/clean_file.py +237 -0
- package/vendor/higiene-motor/clean_image.py +218 -0
- package/vendor/higiene-motor/clean_staged.py +143 -0
- package/vendor/higiene-motor/clean_text.py +108 -0
- package/vendor/higiene-motor/common.py +486 -0
- package/vendor/higiene-motor/container_meta.py +2522 -0
- package/vendor/higiene-motor/detect_gumbel.py +308 -0
- package/vendor/higiene-motor/detect_text_watermark.py +613 -0
- package/vendor/higiene-motor/format_dispatch.py +157 -0
- package/vendor/higiene-motor/hook_written_file.py +253 -0
- package/vendor/higiene-motor/image_meta.py +2171 -0
- package/vendor/higiene-motor/inspect_file.py +138 -0
- package/vendor/higiene-motor/inspect_image.py +72 -0
- package/vendor/higiene-motor/inspect_text.py +86 -0
- package/vendor/higiene-motor/markdiffusion_harness.py +533 -0
- package/vendor/higiene-motor/rewrite_text.py +737 -0
- package/vendor/higiene-motor/score_stylometry.py +460 -0
- package/vendor/higiene-motor/score_synthid.py +165 -0
- package/vendor/higiene-motor/server.py +1059 -0
- package/vendor/higiene-motor/synthid_score_server.py +176 -0
- package/vendor/higiene-motor/text_detectors.py +433 -0
- package/vendor/higiene-motor/text_unicode.py +730 -0
- package/vendor/theus-arsenal/.arsenal-nombres-ola2.json +0 -6
- package/vendor/theus-arsenal/.arsenal-nombres-ola3.json +0 -72
- package/vendor/theus-arsenal/.mailmap +0 -2
- package/vendor/theus-arsenal/.theus-plugin/marketplace.json +0 -25
- package/vendor/theus-arsenal/.theus-plugin/plugin.json +0 -20
- package/vendor/theus-arsenal/AUTHORS.md +0 -8
- package/vendor/theus-arsenal/CLEANROOM_REPLACEMENT_PLAN.md +0 -11
- package/vendor/theus-arsenal/LICENSE +0 -26
- package/vendor/theus-arsenal/PROVENANCE.md +0 -9
- package/vendor/theus-arsenal/README.md +0 -41
- package/vendor/theus-arsenal/THIRD_PARTY.md +0 -80
- package/vendor/theus-arsenal/agents/actualizador-docs.md +0 -123
- package/vendor/theus-arsenal/agents/analista-comentarios.md +0 -53
- package/vendor/theus-arsenal/agents/analista-conversaciones.md +0 -60
- package/vendor/theus-arsenal/agents/analista-tests-pr.md +0 -53
- package/vendor/theus-arsenal/agents/analista-tipos.md +0 -49
- package/vendor/theus-arsenal/agents/arquitecto-accesibilidad.md +0 -148
- package/vendor/theus-arsenal/agents/arquitecto-codigo.md +0 -79
- package/vendor/theus-arsenal/agents/arquitecto-homelab.md +0 -90
- package/vendor/theus-arsenal/agents/arquitecto-redes.md +0 -116
- package/vendor/theus-arsenal/agents/arquitecto-sistemas.md +0 -219
- package/vendor/theus-arsenal/agents/bifurcador-opensource.md +0 -206
- package/vendor/theus-arsenal/agents/cazador-fallos-silenciosos.md +0 -58
- package/vendor/theus-arsenal/agents/consultor-documentacion.md +0 -76
- package/vendor/theus-arsenal/agents/diagnosticador-redes.md +0 -135
- package/vendor/theus-arsenal/agents/ejecutor-e2e.md +0 -96
- package/vendor/theus-arsenal/agents/empaquetador-opensource.md +0 -257
- package/vendor/theus-arsenal/agents/escaner-secretos.md +0 -196
- package/vendor/theus-arsenal/agents/especialista-seo.md +0 -70
- package/vendor/theus-arsenal/agents/estratega-marketing.md +0 -158
- package/vendor/theus-arsenal/agents/evaluador-agentes.md +0 -214
- package/vendor/theus-arsenal/agents/evaluador-harness.md +0 -217
- package/vendor/theus-arsenal/agents/explorador-codigo.md +0 -79
- package/vendor/theus-arsenal/agents/extractor-specs.md +0 -214
- package/vendor/theus-arsenal/agents/generador-harness.md +0 -139
- package/vendor/theus-arsenal/agents/guia-tdd.md +0 -99
- package/vendor/theus-arsenal/agents/jefe-de-gabinete.md +0 -162
- package/vendor/theus-arsenal/agents/limpiador-refactors.md +0 -93
- package/vendor/theus-arsenal/agents/optimizador-rendimiento.md +0 -454
- package/vendor/theus-arsenal/agents/planificador-harness.md +0 -107
- package/vendor/theus-arsenal/agents/planificador.md +0 -221
- package/vendor/theus-arsenal/agents/resolutor-apps-harmonyos.md +0 -181
- package/vendor/theus-arsenal/agents/resolutor-builds-cpp.md +0 -98
- package/vendor/theus-arsenal/agents/resolutor-builds-dart.md +0 -209
- package/vendor/theus-arsenal/agents/resolutor-builds-django.md +0 -253
- package/vendor/theus-arsenal/agents/resolutor-builds-go.md +0 -102
- package/vendor/theus-arsenal/agents/resolutor-builds-java.md +0 -274
- package/vendor/theus-arsenal/agents/resolutor-builds-kotlin.md +0 -128
- package/vendor/theus-arsenal/agents/resolutor-builds-pytorch.md +0 -128
- package/vendor/theus-arsenal/agents/resolutor-builds-react.md +0 -214
- package/vendor/theus-arsenal/agents/resolutor-builds-rust.md +0 -156
- package/vendor/theus-arsenal/agents/resolutor-builds-swift.md +0 -169
- package/vendor/theus-arsenal/agents/resolutor-builds.md +0 -122
- package/vendor/theus-arsenal/agents/revisor-bd.md +0 -97
- package/vendor/theus-arsenal/agents/revisor-codigo.md +0 -291
- package/vendor/theus-arsenal/agents/revisor-config-red.md +0 -116
- package/vendor/theus-arsenal/agents/revisor-cpp.md +0 -80
- package/vendor/theus-arsenal/agents/revisor-csharp.md +0 -109
- package/vendor/theus-arsenal/agents/revisor-django.md +0 -168
- package/vendor/theus-arsenal/agents/revisor-fastapi.md +0 -82
- package/vendor/theus-arsenal/agents/revisor-flutter.md +0 -251
- package/vendor/theus-arsenal/agents/revisor-go.md +0 -84
- package/vendor/theus-arsenal/agents/revisor-java.md +0 -192
- package/vendor/theus-arsenal/agents/revisor-kotlin.md +0 -171
- package/vendor/theus-arsenal/agents/revisor-ml.md +0 -159
- package/vendor/theus-arsenal/agents/revisor-php.md +0 -108
- package/vendor/theus-arsenal/agents/revisor-python.md +0 -106
- package/vendor/theus-arsenal/agents/revisor-react.md +0 -166
- package/vendor/theus-arsenal/agents/revisor-rust.md +0 -102
- package/vendor/theus-arsenal/agents/revisor-seguridad.md +0 -116
- package/vendor/theus-arsenal/agents/revisor-software-clinico.md +0 -95
- package/vendor/theus-arsenal/agents/revisor-swift.md +0 -115
- package/vendor/theus-arsenal/agents/revisor-typescript.md +0 -123
- package/vendor/theus-arsenal/agents/revisor-vue.md +0 -205
- package/vendor/theus-arsenal/agents/simplificador-codigo.md +0 -55
- package/vendor/theus-arsenal/commands/actualizar-docs.md +0 -88
- package/vendor/theus-arsenal/commands/actualizar-mapas-codigo.md +0 -78
- package/vendor/theus-arsenal/commands/aprender-evaluar.md +0 -109
- package/vendor/theus-arsenal/commands/aprender.md +0 -74
- package/vendor/theus-arsenal/commands/arreglar-build.md +0 -66
- package/vendor/theus-arsenal/commands/bucle-multiperspectiva.md +0 -153
- package/vendor/theus-arsenal/commands/build-cpp.md +0 -173
- package/vendor/theus-arsenal/commands/build-flutter.md +0 -164
- package/vendor/theus-arsenal/commands/build-go.md +0 -183
- package/vendor/theus-arsenal/commands/build-gradle.md +0 -75
- package/vendor/theus-arsenal/commands/build-kotlin.md +0 -176
- package/vendor/theus-arsenal/commands/build-react.md +0 -187
- package/vendor/theus-arsenal/commands/build-rust.md +0 -187
- package/vendor/theus-arsenal/commands/campana-marketing.md +0 -125
- package/vendor/theus-arsenal/commands/checkpoint.md +0 -78
- package/vendor/theus-arsenal/commands/cobertura-tests.md +0 -73
- package/vendor/theus-arsenal/commands/configurar-gestor-paquetes.md +0 -86
- package/vendor/theus-arsenal/commands/consulta.md +0 -164
- package/vendor/theus-arsenal/commands/control-calidad.md +0 -50
- package/vendor/theus-arsenal/commands/crear-skill.md +0 -77
- package/vendor/theus-arsenal/commands/enrutar-modelo.md +0 -30
- package/vendor/theus-arsenal/commands/epica-desbloquear.md +0 -17
- package/vendor/theus-arsenal/commands/epica-descomponer.md +0 -22
- package/vendor/theus-arsenal/commands/epica-publicar.md +0 -21
- package/vendor/theus-arsenal/commands/epica-reclamar.md +0 -25
- package/vendor/theus-arsenal/commands/epica-revisar.md +0 -22
- package/vendor/theus-arsenal/commands/epica-sincronizar.md +0 -21
- package/vendor/theus-arsenal/commands/epica-validar.md +0 -21
- package/vendor/theus-arsenal/commands/evolucionar.md +0 -176
- package/vendor/theus-arsenal/commands/funcionalidad.md +0 -49
- package/vendor/theus-arsenal/commands/guardar-sesion.md +0 -278
- package/vendor/theus-arsenal/commands/harness-build.md +0 -111
- package/vendor/theus-arsenal/commands/harness-diseno.md +0 -46
- package/vendor/theus-arsenal/commands/informe-costos.md +0 -90
- package/vendor/theus-arsenal/commands/iniciar-bucle.md +0 -36
- package/vendor/theus-arsenal/commands/instintos-estado.md +0 -53
- package/vendor/theus-arsenal/commands/instintos-exportar.md +0 -69
- package/vendor/theus-arsenal/commands/instintos-importar.md +0 -120
- package/vendor/theus-arsenal/commands/lienzo-planes.md +0 -48
- package/vendor/theus-arsenal/commands/limpiar-refactor.md +0 -84
- package/vendor/theus-arsenal/commands/modo-seguro.md +0 -96
- package/vendor/theus-arsenal/commands/orq-agregar-funcionalidad.md +0 -36
- package/vendor/theus-arsenal/commands/orq-cambiar-funcionalidad.md +0 -38
- package/vendor/theus-arsenal/commands/orq-construir-mvp.md +0 -36
- package/vendor/theus-arsenal/commands/orq-corregir-defecto.md +0 -40
- package/vendor/theus-arsenal/commands/orq-refinar-codigo.md +0 -44
- package/vendor/theus-arsenal/commands/orq-revisar.md +0 -135
- package/vendor/theus-arsenal/commands/plan-prd.md +0 -160
- package/vendor/theus-arsenal/commands/plan.md +0 -198
- package/vendor/theus-arsenal/commands/podar.md +0 -31
- package/vendor/theus-arsenal/commands/pr.md +0 -181
- package/vendor/theus-arsenal/commands/promover.md +0 -41
- package/vendor/theus-arsenal/commands/proyectos.md +0 -33
- package/vendor/theus-arsenal/commands/prp-commit.md +0 -112
- package/vendor/theus-arsenal/commands/prp-implementar.md +0 -385
- package/vendor/theus-arsenal/commands/prp-planificar.md +0 -501
- package/vendor/theus-arsenal/commands/reanudar-sesion.md +0 -160
- package/vendor/theus-arsenal/commands/revisar-codigo.md +0 -289
- package/vendor/theus-arsenal/commands/revisar-cpp.md +0 -132
- package/vendor/theus-arsenal/commands/revisar-fastapi.md +0 -39
- package/vendor/theus-arsenal/commands/revisar-flutter.md +0 -115
- package/vendor/theus-arsenal/commands/revisar-go.md +0 -148
- package/vendor/theus-arsenal/commands/revisar-kotlin.md +0 -140
- package/vendor/theus-arsenal/commands/revisar-pr.md +0 -37
- package/vendor/theus-arsenal/commands/revisar-python.md +0 -297
- package/vendor/theus-arsenal/commands/revisar-react.md +0 -170
- package/vendor/theus-arsenal/commands/revisar-rust.md +0 -142
- package/vendor/theus-arsenal/commands/revisar-vue.md +0 -174
- package/vendor/theus-arsenal/commands/salud-skills.md +0 -52
- package/vendor/theus-arsenal/commands/sesiones.md +0 -345
- package/vendor/theus-arsenal/commands/test-cpp.md +0 -252
- package/vendor/theus-arsenal/commands/test-flutter.md +0 -143
- package/vendor/theus-arsenal/commands/test-go.md +0 -268
- package/vendor/theus-arsenal/commands/test-kotlin.md +0 -312
- package/vendor/theus-arsenal/commands/test-react.md +0 -265
- package/vendor/theus-arsenal/commands/test-rust.md +0 -309
- package/vendor/theus-arsenal/commands/vigilancia-canary.md +0 -43
- package/vendor/theus-arsenal/hooks/hooks.json +0 -274
- package/vendor/theus-arsenal/package.json +0 -6
- package/vendor/theus-arsenal/rules/angular/coding-style.md +0 -182
- package/vendor/theus-arsenal/rules/angular/hooks.md +0 -25
- package/vendor/theus-arsenal/rules/angular/patterns.md +0 -249
- package/vendor/theus-arsenal/rules/angular/security.md +0 -87
- package/vendor/theus-arsenal/rules/angular/testing.md +0 -164
- package/vendor/theus-arsenal/rules/arkts/coding-style.md +0 -153
- package/vendor/theus-arsenal/rules/arkts/hooks.md +0 -80
- package/vendor/theus-arsenal/rules/arkts/patterns.md +0 -236
- package/vendor/theus-arsenal/rules/arkts/security.md +0 -141
- package/vendor/theus-arsenal/rules/arkts/testing.md +0 -126
- package/vendor/theus-arsenal/rules/common/agents.md +0 -49
- package/vendor/theus-arsenal/rules/common/code-review.md +0 -123
- package/vendor/theus-arsenal/rules/common/coding-style.md +0 -90
- package/vendor/theus-arsenal/rules/common/development-workflow.md +0 -44
- package/vendor/theus-arsenal/rules/common/git-workflow.md +0 -24
- package/vendor/theus-arsenal/rules/common/hooks.md +0 -32
- package/vendor/theus-arsenal/rules/common/patterns.md +0 -31
- package/vendor/theus-arsenal/rules/common/performance.md +0 -53
- package/vendor/theus-arsenal/rules/common/security.md +0 -29
- package/vendor/theus-arsenal/rules/common/testing.md +0 -57
- package/vendor/theus-arsenal/rules/cpp/coding-style.md +0 -44
- package/vendor/theus-arsenal/rules/cpp/hooks.md +0 -39
- package/vendor/theus-arsenal/rules/cpp/patterns.md +0 -51
- package/vendor/theus-arsenal/rules/cpp/security.md +0 -51
- package/vendor/theus-arsenal/rules/cpp/testing.md +0 -44
- package/vendor/theus-arsenal/rules/csharp/coding-style.md +0 -72
- package/vendor/theus-arsenal/rules/csharp/hooks.md +0 -25
- package/vendor/theus-arsenal/rules/csharp/patterns.md +0 -50
- package/vendor/theus-arsenal/rules/csharp/security.md +0 -58
- package/vendor/theus-arsenal/rules/csharp/testing.md +0 -50
- package/vendor/theus-arsenal/rules/dart/coding-style.md +0 -159
- package/vendor/theus-arsenal/rules/dart/hooks.md +0 -68
- package/vendor/theus-arsenal/rules/dart/patterns.md +0 -261
- package/vendor/theus-arsenal/rules/dart/security.md +0 -135
- package/vendor/theus-arsenal/rules/dart/testing.md +0 -215
- package/vendor/theus-arsenal/rules/fsharp/coding-style.md +0 -112
- package/vendor/theus-arsenal/rules/fsharp/hooks.md +0 -26
- package/vendor/theus-arsenal/rules/fsharp/patterns.md +0 -111
- package/vendor/theus-arsenal/rules/fsharp/security.md +0 -76
- package/vendor/theus-arsenal/rules/fsharp/testing.md +0 -62
- package/vendor/theus-arsenal/rules/golang/coding-style.md +0 -32
- package/vendor/theus-arsenal/rules/golang/hooks.md +0 -17
- package/vendor/theus-arsenal/rules/golang/patterns.md +0 -45
- package/vendor/theus-arsenal/rules/golang/security.md +0 -34
- package/vendor/theus-arsenal/rules/golang/testing.md +0 -31
- package/vendor/theus-arsenal/rules/java/coding-style.md +0 -114
- package/vendor/theus-arsenal/rules/java/hooks.md +0 -18
- package/vendor/theus-arsenal/rules/java/patterns.md +0 -147
- package/vendor/theus-arsenal/rules/java/security.md +0 -101
- package/vendor/theus-arsenal/rules/java/testing.md +0 -133
- package/vendor/theus-arsenal/rules/kotlin/coding-style.md +0 -86
- package/vendor/theus-arsenal/rules/kotlin/hooks.md +0 -17
- package/vendor/theus-arsenal/rules/kotlin/patterns.md +0 -146
- package/vendor/theus-arsenal/rules/kotlin/security.md +0 -82
- package/vendor/theus-arsenal/rules/kotlin/testing.md +0 -128
- package/vendor/theus-arsenal/rules/nuxt/coding-style.md +0 -47
- package/vendor/theus-arsenal/rules/nuxt/hooks.md +0 -39
- package/vendor/theus-arsenal/rules/nuxt/patterns.md +0 -54
- package/vendor/theus-arsenal/rules/nuxt/security.md +0 -48
- package/vendor/theus-arsenal/rules/nuxt/testing.md +0 -49
- package/vendor/theus-arsenal/rules/php/coding-style.md +0 -40
- package/vendor/theus-arsenal/rules/php/hooks.md +0 -24
- package/vendor/theus-arsenal/rules/php/patterns.md +0 -33
- package/vendor/theus-arsenal/rules/php/security.md +0 -37
- package/vendor/theus-arsenal/rules/php/testing.md +0 -38
- package/vendor/theus-arsenal/rules/python/coding-style.md +0 -42
- package/vendor/theus-arsenal/rules/python/fastapi.md +0 -58
- package/vendor/theus-arsenal/rules/python/hooks.md +0 -19
- package/vendor/theus-arsenal/rules/python/patterns.md +0 -39
- package/vendor/theus-arsenal/rules/python/security.md +0 -30
- package/vendor/theus-arsenal/rules/python/testing.md +0 -38
- package/vendor/theus-arsenal/rules/react/coding-style.md +0 -109
- package/vendor/theus-arsenal/rules/react/hooks.md +0 -187
- package/vendor/theus-arsenal/rules/react/patterns.md +0 -194
- package/vendor/theus-arsenal/rules/react/security.md +0 -180
- package/vendor/theus-arsenal/rules/react/testing.md +0 -208
- package/vendor/theus-arsenal/rules/react-native/accessibility.md +0 -55
- package/vendor/theus-arsenal/rules/react-native/coding-style.md +0 -71
- package/vendor/theus-arsenal/rules/react-native/hooks.md +0 -28
- package/vendor/theus-arsenal/rules/react-native/patterns.md +0 -88
- package/vendor/theus-arsenal/rules/react-native/performance.md +0 -45
- package/vendor/theus-arsenal/rules/react-native/production-readiness.md +0 -51
- package/vendor/theus-arsenal/rules/react-native/security.md +0 -43
- package/vendor/theus-arsenal/rules/react-native/testing.md +0 -52
- package/vendor/theus-arsenal/rules/ruby/coding-style.md +0 -46
- package/vendor/theus-arsenal/rules/ruby/hooks.md +0 -37
- package/vendor/theus-arsenal/rules/ruby/patterns.md +0 -44
- package/vendor/theus-arsenal/rules/ruby/security.md +0 -51
- package/vendor/theus-arsenal/rules/ruby/testing.md +0 -51
- package/vendor/theus-arsenal/rules/rust/coding-style.md +0 -151
- package/vendor/theus-arsenal/rules/rust/hooks.md +0 -16
- package/vendor/theus-arsenal/rules/rust/patterns.md +0 -168
- package/vendor/theus-arsenal/rules/rust/security.md +0 -141
- package/vendor/theus-arsenal/rules/rust/testing.md +0 -154
- package/vendor/theus-arsenal/rules/swift/coding-style.md +0 -47
- package/vendor/theus-arsenal/rules/swift/hooks.md +0 -20
- package/vendor/theus-arsenal/rules/swift/patterns.md +0 -66
- package/vendor/theus-arsenal/rules/swift/security.md +0 -33
- package/vendor/theus-arsenal/rules/swift/testing.md +0 -45
- package/vendor/theus-arsenal/rules/typescript/coding-style.md +0 -199
- package/vendor/theus-arsenal/rules/typescript/hooks.md +0 -22
- package/vendor/theus-arsenal/rules/typescript/patterns.md +0 -52
- package/vendor/theus-arsenal/rules/typescript/security.md +0 -28
- package/vendor/theus-arsenal/rules/typescript/testing.md +0 -18
- package/vendor/theus-arsenal/rules/vue/coding-style.md +0 -54
- package/vendor/theus-arsenal/rules/vue/hooks.md +0 -45
- package/vendor/theus-arsenal/rules/vue/patterns.md +0 -56
- package/vendor/theus-arsenal/rules/vue/security.md +0 -46
- package/vendor/theus-arsenal/rules/vue/testing.md +0 -53
- package/vendor/theus-arsenal/rules/web/coding-style.md +0 -108
- package/vendor/theus-arsenal/rules/web/design-quality.md +0 -75
- package/vendor/theus-arsenal/rules/web/hooks.md +0 -141
- package/vendor/theus-arsenal/rules/web/patterns.md +0 -91
- package/vendor/theus-arsenal/rules/web/performance.md +0 -76
- package/vendor/theus-arsenal/rules/web/security.md +0 -69
- package/vendor/theus-arsenal/rules/web/testing.md +0 -67
- package/vendor/theus-arsenal/scripts/hooks/bash-hook-dispatcher.js +0 -192
- package/vendor/theus-arsenal/scripts/hooks/block-no-verify.js +0 -556
- package/vendor/theus-arsenal/scripts/hooks/check-console-log.js +0 -92
- package/vendor/theus-arsenal/scripts/hooks/check-hook-enabled.js +0 -16
- package/vendor/theus-arsenal/scripts/hooks/config-protection.js +0 -171
- package/vendor/theus-arsenal/scripts/hooks/design-quality-check.js +0 -132
- package/vendor/theus-arsenal/scripts/hooks/doc-file-warning.js +0 -110
- package/vendor/theus-arsenal/scripts/hooks/modo-seguro.js +0 -158
- package/vendor/theus-arsenal/scripts/hooks/notificacion-escritorio.js +0 -208
- package/vendor/theus-arsenal/scripts/hooks/plugin-hook-bootstrap.js +0 -280
- package/vendor/theus-arsenal/scripts/hooks/post-bash-command-log.js +0 -87
- package/vendor/theus-arsenal/scripts/hooks/post-bash-dispatcher.js +0 -24
- package/vendor/theus-arsenal/scripts/hooks/post-bash-pr-created.js +0 -60
- package/vendor/theus-arsenal/scripts/hooks/post-edit-accumulator.js +0 -94
- package/vendor/theus-arsenal/scripts/hooks/post-edit-console-warn.js +0 -54
- package/vendor/theus-arsenal/scripts/hooks/post-edit-format.js +0 -110
- package/vendor/theus-arsenal/scripts/hooks/post-edit-typecheck.js +0 -98
- package/vendor/theus-arsenal/scripts/hooks/pre-bash-commit-quality.js +0 -447
- package/vendor/theus-arsenal/scripts/hooks/pre-bash-dev-server-block.js +0 -232
- package/vendor/theus-arsenal/scripts/hooks/pre-bash-dispatcher.js +0 -27
- package/vendor/theus-arsenal/scripts/hooks/pre-compact.js +0 -101
- package/vendor/theus-arsenal/scripts/hooks/pretooluse-visible-output.js +0 -49
- package/vendor/theus-arsenal/scripts/hooks/quality-gate.js +0 -168
- package/vendor/theus-arsenal/scripts/hooks/run-with-flags.js +0 -271
- package/vendor/theus-arsenal/scripts/hooks/salud-mcp.js +0 -749
- package/vendor/theus-arsenal/scripts/hooks/seguimiento-costos.js +0 -161
- package/vendor/theus-arsenal/scripts/hooks/session-end.js +0 -340
- package/vendor/theus-arsenal/scripts/hooks/session-start.js +0 -906
- package/vendor/theus-arsenal/scripts/hooks/stop-format-typecheck.js +0 -263
- package/vendor/theus-arsenal/scripts/hooks/suggest-compact.js +0 -286
- package/vendor/theus-arsenal/scripts/hooks/theus-context-monitor.js +0 -289
- package/vendor/theus-arsenal/scripts/hooks/verificacion-factual.js +0 -1278
- package/vendor/theus-arsenal/scripts/lib/agent-data-home.js +0 -96
- package/vendor/theus-arsenal/scripts/lib/cost-estimate.js +0 -66
- package/vendor/theus-arsenal/scripts/lib/hook-flags.js +0 -79
- package/vendor/theus-arsenal/scripts/lib/llm-summary.js +0 -185
- package/vendor/theus-arsenal/scripts/lib/loopback-guard.js +0 -54
- package/vendor/theus-arsenal/scripts/lib/observer-sessions.js +0 -237
- package/vendor/theus-arsenal/scripts/lib/package-manager.d.ts +0 -120
- package/vendor/theus-arsenal/scripts/lib/package-manager.js +0 -434
- package/vendor/theus-arsenal/scripts/lib/path-safety.js +0 -86
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/markdown.js +0 -285
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/sdk.js +0 -238
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/server.js +0 -534
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/sessions.js +0 -274
- package/vendor/theus-arsenal/scripts/lib/plan-canvas/ui.js +0 -546
- package/vendor/theus-arsenal/scripts/lib/project-detect.js +0 -451
- package/vendor/theus-arsenal/scripts/lib/resolve-formatter.js +0 -193
- package/vendor/theus-arsenal/scripts/lib/resolve-theus-root.js +0 -101
- package/vendor/theus-arsenal/scripts/lib/session-aliases.d.ts +0 -138
- package/vendor/theus-arsenal/scripts/lib/session-aliases.js +0 -483
- package/vendor/theus-arsenal/scripts/lib/session-bridge.js +0 -155
- package/vendor/theus-arsenal/scripts/lib/session-manager.d.ts +0 -137
- package/vendor/theus-arsenal/scripts/lib/session-manager.js +0 -555
- package/vendor/theus-arsenal/scripts/lib/shell-split.js +0 -86
- package/vendor/theus-arsenal/scripts/lib/shell-substitution.js +0 -501
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/dashboard.js +0 -414
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/health.js +0 -285
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/index.js +0 -22
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/provenance.js +0 -200
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/tracker.js +0 -157
- package/vendor/theus-arsenal/scripts/lib/skill-evolution/versioning.js +0 -246
- package/vendor/theus-arsenal/scripts/lib/transcript-context.js +0 -232
- package/vendor/theus-arsenal/scripts/lib/utils.d.ts +0 -205
- package/vendor/theus-arsenal/scripts/lib/utils.js +0 -658
- package/vendor/theus-arsenal/scripts/plan-canvas.js +0 -341
- package/vendor/theus-arsenal/scripts/setup-package-manager.js +0 -46
- package/vendor/theus-arsenal/scripts/skills-health.js +0 -143
- package/vendor/theus-arsenal/skills/a11y-frontend/SKILL.md +0 -444
- package/vendor/theus-arsenal/skills/accesibilidad/SKILL.md +0 -144
- package/vendor/theus-arsenal/skills/acelerador-throughput-datos/SKILL.md +0 -72
- package/vendor/theus-arsenal/skills/agente-scraper-datos/SKILL.md +0 -771
- package/vendor/theus-arsenal/skills/analisis-plataformas-competencia/SKILL.md +0 -137
- package/vendor/theus-arsenal/skills/api-x/SKILL.md +0 -233
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/SKILL.md +0 -335
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/observer-loop.sh +0 -374
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/observer.md +0 -188
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/session-guardian.sh +0 -153
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/start-observer.sh +0 -253
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/config.json +0 -8
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/hooks/observe.sh +0 -594
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/detect-project.sh +0 -325
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/instinct-cli.py +0 -1918
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/lib/arsenal-dir.sh +0 -23
- package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/test_parse_instinct.py +0 -1420
- package/vendor/theus-arsenal/skills/arquitectura-hexagonal/SKILL.md +0 -275
- package/vendor/theus-arsenal/skills/arquitectura-limpia-android/SKILL.md +0 -340
- package/vendor/theus-arsenal/skills/arquitectura-pipelines-recomendacion/SKILL.md +0 -112
- package/vendor/theus-arsenal/skills/atlas-datos-prediccion/SKILL.md +0 -53
- package/vendor/theus-arsenal/skills/auditoria-arquitectura-agentes/SKILL.md +0 -257
- package/vendor/theus-arsenal/skills/auditoria-produccion/SKILL.md +0 -180
- package/vendor/theus-arsenal/skills/auditoria-rutas-clic/SKILL.md +0 -243
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/SKILL.md +0 -180
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/examples/high-score-example.md +0 -89
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/examples/low-score-example.md +0 -87
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/references/evaluation-criteria.md +0 -71
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/references/hook-integration.md +0 -90
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/scripts/evaluate.py +0 -409
- package/vendor/theus-arsenal/skills/autoevaluacion-agente/templates/evaluation-report.md +0 -86
- package/vendor/theus-arsenal/skills/automatizacion-ssh-netmiko/SKILL.md +0 -176
- package/vendor/theus-arsenal/skills/base-datos-pubmed/SKILL.md +0 -174
- package/vendor/theus-arsenal/skills/base-datos-uspto/SKILL.md +0 -173
- package/vendor/theus-arsenal/skills/benchmark/SKILL.md +0 -92
- package/vendor/theus-arsenal/skills/bitacora-crecimiento/SKILL.md +0 -120
- package/vendor/theus-arsenal/skills/bucle-verificacion/SKILL.md +0 -125
- package/vendor/theus-arsenal/skills/buscar-primero/SKILL.md +0 -184
- package/vendor/theus-arsenal/skills/busqueda-exa/SKILL.md +0 -111
- package/vendor/theus-arsenal/skills/cache-por-hash/SKILL.md +0 -160
- package/vendor/theus-arsenal/skills/campana-marketing/SKILL.md +0 -118
- package/vendor/theus-arsenal/skills/capacidad-producto/SKILL.md +0 -138
- package/vendor/theus-arsenal/skills/cazador-vulnerabilidades/SKILL.md +0 -104
- package/vendor/theus-arsenal/skills/compactacion-estrategica/SKILL.md +0 -115
- package/vendor/theus-arsenal/skills/comparador-baskets-prediccion/SKILL.md +0 -69
- package/vendor/theus-arsenal/skills/compras-energia/SKILL.md +0 -206
- package/vendor/theus-arsenal/skills/concurrencia-swift-6-2/SKILL.md +0 -224
- package/vendor/theus-arsenal/skills/consejo/SKILL.md +0 -201
- package/vendor/theus-arsenal/skills/construccion-harness-agentes/SKILL.md +0 -78
- package/vendor/theus-arsenal/skills/constructor-conectores/SKILL.md +0 -119
- package/vendor/theus-arsenal/skills/constructor-equipos/SKILL.md +0 -169
- package/vendor/theus-arsenal/skills/consulta-documentacion/SKILL.md +0 -92
- package/vendor/theus-arsenal/skills/consultas-genomicas-gget/SKILL.md +0 -170
- package/vendor/theus-arsenal/skills/contacto-inversores/SKILL.md +0 -95
- package/vendor/theus-arsenal/skills/corrutinas-flows-kotlin/SKILL.md +0 -284
- package/vendor/theus-arsenal/skills/creacion-video-remotion/SKILL.md +0 -46
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/3d.md +0 -86
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/animations.md +0 -29
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/charts-bar-chart.tsx +0 -173
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/text-animations-typewriter.tsx +0 -100
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/text-animations-word-highlight.tsx +0 -108
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets.md +0 -78
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/audio.md +0 -172
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/calculate-metadata.md +0 -104
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/can-decode.md +0 -75
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/charts.md +0 -58
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/compositions.md +0 -146
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/display-captions.md +0 -126
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/extract-frames.md +0 -229
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/fonts.md +0 -152
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-audio-duration.md +0 -58
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-video-dimensions.md +0 -68
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-video-duration.md +0 -58
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/gifs.md +0 -138
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/images.md +0 -130
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/import-srt-captions.md +0 -67
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/lottie.md +0 -67
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/measuring-dom-nodes.md +0 -34
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/measuring-text.md +0 -143
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/sequencing.md +0 -106
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/tailwind.md +0 -11
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/text-animations.md +0 -20
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/timing.md +0 -179
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/transcribe-captions.md +0 -19
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/transitions.md +0 -122
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/trimming.md +0 -52
- package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/videos.md +0 -171
- package/vendor/theus-arsenal/skills/cumplimiento-aduanero/SKILL.md +0 -270
- package/vendor/theus-arsenal/skills/cumplimiento-hipaa/SKILL.md +0 -78
- package/vendor/theus-arsenal/skills/datos-sensibles-salud/SKILL.md +0 -149
- package/vendor/theus-arsenal/skills/decimales-tokens-evm/SKILL.md +0 -128
- package/vendor/theus-arsenal/skills/decisiones-arquitectura/SKILL.md +0 -206
- package/vendor/theus-arsenal/skills/demos-ui/SKILL.md +0 -469
- package/vendor/theus-arsenal/skills/desarrollo-por-intencion/SKILL.md +0 -369
- package/vendor/theus-arsenal/skills/descubrimiento-marca/SKILL.md +0 -149
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/10_proposito-porque.md +0 -42
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/20_posicionamiento.md +0 -47
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/30_audiencia-nicho.md +0 -53
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/40_personalidad-arquetipo.md +0 -61
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/50_voz-tono.md +0 -62
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/60_narrativa-historia.md +0 -54
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/70_tension-fundador.md +0 -50
- package/vendor/theus-arsenal/skills/descubrimiento-marca/references/90_SINTESIS.md +0 -133
- package/vendor/theus-arsenal/skills/descubrimiento-plugins-laravel/SKILL.md +0 -230
- package/vendor/theus-arsenal/skills/destilado-reglas/SKILL.md +0 -263
- package/vendor/theus-arsenal/skills/destilado-reglas/scripts/scan-rules.sh +0 -58
- package/vendor/theus-arsenal/skills/destilado-reglas/scripts/scan-skills.sh +0 -129
- package/vendor/theus-arsenal/skills/diagnostico-bgp/SKILL.md +0 -170
- package/vendor/theus-arsenal/skills/direccion-estetica/SKILL.md +0 -220
- package/vendor/theus-arsenal/skills/direccion-estetica/references/taxonomia-generos.md +0 -89
- package/vendor/theus-arsenal/skills/diseno-api/SKILL.md +0 -522
- package/vendor/theus-arsenal/skills/diseno-liquid-glass/SKILL.md +0 -282
- package/vendor/theus-arsenal/skills/e2e-escritorio-windows/SKILL.md +0 -879
- package/vendor/theus-arsenal/skills/edicion-video/SKILL.md +0 -289
- package/vendor/theus-arsenal/skills/enfoque-producto/SKILL.md +0 -91
- package/vendor/theus-arsenal/skills/entornos-flox/SKILL.md +0 -493
- package/vendor/theus-arsenal/skills/estandares-codigo/SKILL.md +0 -548
- package/vendor/theus-arsenal/skills/estandares-cpp/SKILL.md +0 -727
- package/vendor/theus-arsenal/skills/estandares-java/SKILL.md +0 -389
- package/vendor/theus-arsenal/skills/estilo-legado/SKILL.md +0 -149
- package/vendor/theus-arsenal/skills/estructura-informes-competencia/SKILL.md +0 -95
- package/vendor/theus-arsenal/skills/evaluacion-academica/SKILL.md +0 -165
- package/vendor/theus-arsenal/skills/explorador-skills/SKILL.md +0 -129
- package/vendor/theus-arsenal/skills/flujo-git/SKILL.md +0 -714
- package/vendor/theus-arsenal/skills/flujo-ingenieria-ml/SKILL.md +0 -343
- package/vendor/theus-arsenal/skills/flujo-tdd/SKILL.md +0 -584
- package/vendor/theus-arsenal/skills/forja-personas/SKILL.md +0 -298
- package/vendor/theus-arsenal/skills/forja-personas/gacha.py +0 -224
- package/vendor/theus-arsenal/skills/forja-personas/gacha.sh +0 -5
- package/vendor/theus-arsenal/skills/forja-personas/references/avatar-style.md +0 -123
- package/vendor/theus-arsenal/skills/forja-personas/references/boundary-rules.md +0 -53
- package/vendor/theus-arsenal/skills/forja-personas/references/error-handling.md +0 -53
- package/vendor/theus-arsenal/skills/forja-personas/references/identity-tension.md +0 -48
- package/vendor/theus-arsenal/skills/forja-personas/references/naming-system.md +0 -39
- package/vendor/theus-arsenal/skills/forja-personas/references/output-template.md +0 -166
- package/vendor/theus-arsenal/skills/fundamentos-animacion/SKILL.md +0 -296
- package/vendor/theus-arsenal/skills/generacion-iconos-ios/SKILL.md +0 -156
- package/vendor/theus-arsenal/skills/generacion-iconos-ios/scripts/generate_icons.swift +0 -258
- package/vendor/theus-arsenal/skills/generacion-iconos-ios/scripts/iconify_gen.sh +0 -235
- package/vendor/theus-arsenal/skills/gestion-excepciones-logisticas/SKILL.md +0 -208
- package/vendor/theus-arsenal/skills/gestion-transportistas/SKILL.md +0 -204
- package/vendor/theus-arsenal/skills/guia-adopcion-ml/SKILL.md +0 -64
- package/vendor/theus-arsenal/skills/harness-agente-autonomo/SKILL.md +0 -252
- package/vendor/theus-arsenal/skills/harness-eval-clinico/SKILL.md +0 -212
- package/vendor/theus-arsenal/skills/harness-evaluacion/SKILL.md +0 -296
- package/vendor/theus-arsenal/skills/harness-generador-evaluador/SKILL.md +0 -254
- package/vendor/theus-arsenal/skills/homelab-diseno-red/SKILL.md +0 -120
- package/vendor/theus-arsenal/skills/homelab-dns-pihole/SKILL.md +0 -264
- package/vendor/theus-arsenal/skills/homelab-preparacion-red/SKILL.md +0 -144
- package/vendor/theus-arsenal/skills/homelab-segmentacion-vlan/SKILL.md +0 -307
- package/vendor/theus-arsenal/skills/homelab-vpn-wireguard/SKILL.md +0 -299
- package/vendor/theus-arsenal/skills/ingenieria-agentica/SKILL.md +0 -96
- package/vendor/theus-arsenal/skills/inspeccion-animaciones-blender/SKILL.md +0 -164
- package/vendor/theus-arsenal/skills/instaladores-python/SKILL.md +0 -820
- package/vendor/theus-arsenal/skills/integracion-jira/SKILL.md +0 -307
- package/vendor/theus-arsenal/skills/inteligencia-leads/SKILL.md +0 -312
- package/vendor/theus-arsenal/skills/inteligencia-leads/agents/agente-enriquecimiento.md +0 -87
- package/vendor/theus-arsenal/skills/inteligencia-leads/agents/mapeador-mutuos.md +0 -76
- package/vendor/theus-arsenal/skills/inteligencia-leads/agents/puntuador-senales.md +0 -60
- package/vendor/theus-arsenal/skills/inteligencia-leads/agents/redactor-outreach.md +0 -102
- package/vendor/theus-arsenal/skills/inteligencia-mercados-prediccion/SKILL.md +0 -53
- package/vendor/theus-arsenal/skills/introspeccion-agente/SKILL.md +0 -150
- package/vendor/theus-arsenal/skills/inventario-skills/SKILL.md +0 -194
- package/vendor/theus-arsenal/skills/inventario-skills/scripts/quick-diff.sh +0 -87
- package/vendor/theus-arsenal/skills/inventario-skills/scripts/save-results.sh +0 -57
- package/vendor/theus-arsenal/skills/inventario-skills/scripts/scan.sh +0 -170
- package/vendor/theus-arsenal/skills/investigacion-mercado/SKILL.md +0 -87
- package/vendor/theus-arsenal/skills/investigacion-oraculos-prediccion/SKILL.md +0 -59
- package/vendor/theus-arsenal/skills/investigacion-profunda/SKILL.md +0 -161
- package/vendor/theus-arsenal/skills/keccak256-nodejs/SKILL.md +0 -100
- package/vendor/theus-arsenal/skills/libro-decisiones-recursivo/SKILL.md +0 -82
- package/vendor/theus-arsenal/skills/lienzo-planes/SKILL.md +0 -111
- package/vendor/theus-arsenal/skills/limpieza-configuracion/SKILL.md +0 -116
- package/vendor/theus-arsenal/skills/logistica-inversa-devoluciones/SKILL.md +0 -241
- package/vendor/theus-arsenal/skills/manejo-errores/SKILL.md +0 -375
- package/vendor/theus-arsenal/skills/materiales-inversores/SKILL.md +0 -101
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/SKILL.md +0 -170
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/forget.mjs +0 -44
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/info.mjs +0 -24
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/init.mjs +0 -152
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/list.mjs +0 -40
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/migrate.mjs +0 -214
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/resume.mjs +0 -36
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/save.mjs +0 -210
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/shared.mjs +0 -402
- package/vendor/theus-arsenal/skills/memoria-por-proyecto/hooks/session-start.mjs +0 -238
- package/vendor/theus-arsenal/skills/metodologia-benchmarks/SKILL.md +0 -131
- package/vendor/theus-arsenal/skills/migraciones-bd/SKILL.md +0 -430
- package/vendor/theus-arsenal/skills/modelos-fundacionales-en-dispositivo/SKILL.md +0 -244
- package/vendor/theus-arsenal/skills/modo-seguro/SKILL.md +0 -86
- package/vendor/theus-arsenal/skills/motion-avanzado/SKILL.md +0 -592
- package/vendor/theus-arsenal/skills/motor-de-contenido/SKILL.md +0 -136
- package/vendor/theus-arsenal/skills/no-conformidades-calidad/SKILL.md +0 -249
- package/vendor/theus-arsenal/skills/onboarding-codigo/SKILL.md +0 -244
- package/vendor/theus-arsenal/skills/operaciones-agentes-empresariales/SKILL.md +0 -51
- package/vendor/theus-arsenal/skills/operaciones-conocimiento/SKILL.md +0 -159
- package/vendor/theus-arsenal/skills/operaciones-correo/SKILL.md +0 -123
- package/vendor/theus-arsenal/skills/operaciones-facturacion/SKILL.md +0 -142
- package/vendor/theus-arsenal/skills/operaciones-flujo-proyectos/SKILL.md +0 -110
- package/vendor/theus-arsenal/skills/operaciones-github/SKILL.md +0 -143
- package/vendor/theus-arsenal/skills/operaciones-google-workspace/SKILL.md +0 -100
- package/vendor/theus-arsenal/skills/operaciones-investigacion/SKILL.md +0 -124
- package/vendor/theus-arsenal/skills/operaciones-mensajes/SKILL.md +0 -103
- package/vendor/theus-arsenal/skills/operaciones-terminal/SKILL.md +0 -110
- package/vendor/theus-arsenal/skills/optimizacion-benchmark/SKILL.md +0 -70
- package/vendor/theus-arsenal/skills/optimizacion-costos-llm/SKILL.md +0 -182
- package/vendor/theus-arsenal/skills/optimizador-conexiones/SKILL.md +0 -191
- package/vendor/theus-arsenal/skills/optimizador-paralelismo/SKILL.md +0 -75
- package/vendor/theus-arsenal/skills/optimizador-prompts/SKILL.md +0 -374
- package/vendor/theus-arsenal/skills/orq-agregar-funcionalidad/SKILL.md +0 -37
- package/vendor/theus-arsenal/skills/orq-cambiar-funcionalidad/SKILL.md +0 -36
- package/vendor/theus-arsenal/skills/orq-construir-mvp/SKILL.md +0 -38
- package/vendor/theus-arsenal/skills/orq-corregir-defecto/SKILL.md +0 -36
- package/vendor/theus-arsenal/skills/orq-pipeline/SKILL.md +0 -134
- package/vendor/theus-arsenal/skills/orq-refinar-codigo/SKILL.md +0 -49
- package/vendor/theus-arsenal/skills/orquestacion-equipos-agentes/SKILL.md +0 -117
- package/vendor/theus-arsenal/skills/pagos-agentes-x402/SKILL.md +0 -237
- package/vendor/theus-arsenal/skills/patrones-angular/SKILL.md +0 -153
- package/vendor/theus-arsenal/skills/patrones-angular/references/angular-animations.md +0 -160
- package/vendor/theus-arsenal/skills/patrones-angular/references/angular-aria.md +0 -410
- package/vendor/theus-arsenal/skills/patrones-angular/references/cli.md +0 -86
- package/vendor/theus-arsenal/skills/patrones-angular/references/component-harnesses.md +0 -59
- package/vendor/theus-arsenal/skills/patrones-angular/references/component-styling.md +0 -91
- package/vendor/theus-arsenal/skills/patrones-angular/references/components.md +0 -117
- package/vendor/theus-arsenal/skills/patrones-angular/references/creating-services.md +0 -97
- package/vendor/theus-arsenal/skills/patrones-angular/references/data-resolvers.md +0 -69
- package/vendor/theus-arsenal/skills/patrones-angular/references/define-routes.md +0 -67
- package/vendor/theus-arsenal/skills/patrones-angular/references/defining-providers.md +0 -72
- package/vendor/theus-arsenal/skills/patrones-angular/references/di-fundamentals.md +0 -120
- package/vendor/theus-arsenal/skills/patrones-angular/references/e2e-testing.md +0 -56
- package/vendor/theus-arsenal/skills/patrones-angular/references/effects.md +0 -83
- package/vendor/theus-arsenal/skills/patrones-angular/references/hierarchical-injectors.md +0 -43
- package/vendor/theus-arsenal/skills/patrones-angular/references/host-elements.md +0 -80
- package/vendor/theus-arsenal/skills/patrones-angular/references/injection-context.md +0 -63
- package/vendor/theus-arsenal/skills/patrones-angular/references/inputs.md +0 -101
- package/vendor/theus-arsenal/skills/patrones-angular/references/linked-signal.md +0 -59
- package/vendor/theus-arsenal/skills/patrones-angular/references/loading-strategies.md +0 -61
- package/vendor/theus-arsenal/skills/patrones-angular/references/mcp.md +0 -67
- package/vendor/theus-arsenal/skills/patrones-angular/references/navigate-to-routes.md +0 -69
- package/vendor/theus-arsenal/skills/patrones-angular/references/outputs.md +0 -86
- package/vendor/theus-arsenal/skills/patrones-angular/references/reactive-forms.md +0 -122
- package/vendor/theus-arsenal/skills/patrones-angular/references/rendering-strategies.md +0 -44
- package/vendor/theus-arsenal/skills/patrones-angular/references/resource.md +0 -77
- package/vendor/theus-arsenal/skills/patrones-angular/references/route-animations.md +0 -56
- package/vendor/theus-arsenal/skills/patrones-angular/references/route-guards.md +0 -52
- package/vendor/theus-arsenal/skills/patrones-angular/references/router-lifecycle.md +0 -45
- package/vendor/theus-arsenal/skills/patrones-angular/references/router-testing.md +0 -87
- package/vendor/theus-arsenal/skills/patrones-angular/references/show-routes-with-outlets.md +0 -68
- package/vendor/theus-arsenal/skills/patrones-angular/references/signal-forms.md +0 -795
- package/vendor/theus-arsenal/skills/patrones-angular/references/signals-overview.md +0 -94
- package/vendor/theus-arsenal/skills/patrones-angular/references/tailwind-css.md +0 -69
- package/vendor/theus-arsenal/skills/patrones-angular/references/template-driven-forms.md +0 -114
- package/vendor/theus-arsenal/skills/patrones-angular/references/testing-fundamentals.md +0 -65
- package/vendor/theus-arsenal/skills/patrones-animacion/SKILL.md +0 -432
- package/vendor/theus-arsenal/skills/patrones-backend/SKILL.md +0 -560
- package/vendor/theus-arsenal/skills/patrones-cdss-clinico/SKILL.md +0 -249
- package/vendor/theus-arsenal/skills/patrones-cisco-ios/SKILL.md +0 -148
- package/vendor/theus-arsenal/skills/patrones-clickhouse/SKILL.md +0 -443
- package/vendor/theus-arsenal/skills/patrones-compose-multiplatform/SKILL.md +0 -298
- package/vendor/theus-arsenal/skills/patrones-dart-flutter/SKILL.md +0 -566
- package/vendor/theus-arsenal/skills/patrones-despliegue/SKILL.md +0 -426
- package/vendor/theus-arsenal/skills/patrones-django/SKILL.md +0 -739
- package/vendor/theus-arsenal/skills/patrones-django-celery/SKILL.md +0 -456
- package/vendor/theus-arsenal/skills/patrones-docker/SKILL.md +0 -363
- package/vendor/theus-arsenal/skills/patrones-dotnet/SKILL.md +0 -321
- package/vendor/theus-arsenal/skills/patrones-emr-clinico/SKILL.md +0 -168
- package/vendor/theus-arsenal/skills/patrones-fastapi/SKILL.md +0 -513
- package/vendor/theus-arsenal/skills/patrones-frontend/SKILL.md +0 -655
- package/vendor/theus-arsenal/skills/patrones-go/SKILL.md +0 -674
- package/vendor/theus-arsenal/skills/patrones-jpa/SKILL.md +0 -156
- package/vendor/theus-arsenal/skills/patrones-kotlin/SKILL.md +0 -717
- package/vendor/theus-arsenal/skills/patrones-kotlin-exposed/SKILL.md +0 -724
- package/vendor/theus-arsenal/skills/patrones-kotlin-ktor/SKILL.md +0 -694
- package/vendor/theus-arsenal/skills/patrones-kubernetes/SKILL.md +0 -754
- package/vendor/theus-arsenal/skills/patrones-laravel/SKILL.md +0 -414
- package/vendor/theus-arsenal/skills/patrones-mcp/SKILL.md +0 -66
- package/vendor/theus-arsenal/skills/patrones-mysql/SKILL.md +0 -420
- package/vendor/theus-arsenal/skills/patrones-nestjs/SKILL.md +0 -229
- package/vendor/theus-arsenal/skills/patrones-nextjs/SKILL.md +0 -56
- package/vendor/theus-arsenal/skills/patrones-nuxt4/SKILL.md +0 -99
- package/vendor/theus-arsenal/skills/patrones-perl/SKILL.md +0 -508
- package/vendor/theus-arsenal/skills/patrones-postgres/SKILL.md +0 -141
- package/vendor/theus-arsenal/skills/patrones-prisma/SKILL.md +0 -399
- package/vendor/theus-arsenal/skills/patrones-python/SKILL.md +0 -750
- package/vendor/theus-arsenal/skills/patrones-pytorch/SKILL.md +0 -400
- package/vendor/theus-arsenal/skills/patrones-quarkus/SKILL.md +0 -729
- package/vendor/theus-arsenal/skills/patrones-react/SKILL.md +0 -339
- package/vendor/theus-arsenal/skills/patrones-react-native/SKILL.md +0 -325
- package/vendor/theus-arsenal/skills/patrones-redis/SKILL.md +0 -401
- package/vendor/theus-arsenal/skills/patrones-rust/SKILL.md +0 -504
- package/vendor/theus-arsenal/skills/patrones-springboot/SKILL.md +0 -314
- package/vendor/theus-arsenal/skills/patrones-swiftui/SKILL.md +0 -261
- package/vendor/theus-arsenal/skills/patrones-tinystruct/SKILL.md +0 -281
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/architecture.md +0 -90
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/data-handling.md +0 -60
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/database.md +0 -99
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/routing.md +0 -64
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/system-usage.md +0 -97
- package/vendor/theus-arsenal/skills/patrones-tinystruct/references/testing.md +0 -72
- package/vendor/theus-arsenal/skills/patrones-vite/SKILL.md +0 -449
- package/vendor/theus-arsenal/skills/patrones-vue/SKILL.md +0 -469
- package/vendor/theus-arsenal/skills/persistencia-actores-swift/SKILL.md +0 -148
- package/vendor/theus-arsenal/skills/pipeline-opensource/SKILL.md +0 -254
- package/vendor/theus-arsenal/skills/planificacion-demanda-inventario/SKILL.md +0 -236
- package/vendor/theus-arsenal/skills/planificador-trades-prediccion/SKILL.md +0 -60
- package/vendor/theus-arsenal/skills/plano-tecnico/SKILL.md +0 -102
- package/vendor/theus-arsenal/skills/presentaciones-html/SKILL.md +0 -189
- package/vendor/theus-arsenal/skills/presentaciones-html/STYLE_PRESETS.md +0 -330
- package/vendor/theus-arsenal/skills/presentaciones-html/animation-patterns.md +0 -122
- package/vendor/theus-arsenal/skills/presentaciones-html/html-template.md +0 -419
- package/vendor/theus-arsenal/skills/presentaciones-html/scripts/export-pdf.sh +0 -418
- package/vendor/theus-arsenal/skills/presentaciones-html/scripts/extract-pptx.py +0 -96
- package/vendor/theus-arsenal/skills/presentaciones-html/viewport-base.css +0 -153
- package/vendor/theus-arsenal/skills/presupuesto-contexto/SKILL.md +0 -263
- package/vendor/theus-arsenal/skills/procesamiento-documentos-nutrient/SKILL.md +0 -168
- package/vendor/theus-arsenal/skills/programacion-produccion/SKILL.md +0 -220
- package/vendor/theus-arsenal/skills/publicacion-cruzada/SKILL.md +0 -117
- package/vendor/theus-arsenal/skills/publicador-social/SKILL.md +0 -121
- package/vendor/theus-arsenal/skills/puerta-de-entrega/SKILL.md +0 -164
- package/vendor/theus-arsenal/skills/puerta-de-entrega/hooks/puerta-entrega.py +0 -242
- package/vendor/theus-arsenal/skills/pulir-interfaces/SKILL.md +0 -126
- package/vendor/theus-arsenal/skills/qa-navegador/SKILL.md +0 -103
- package/vendor/theus-arsenal/skills/ranking-grafo-social/SKILL.md +0 -153
- package/vendor/theus-arsenal/skills/recuperacion-iterativa/SKILL.md +0 -236
- package/vendor/theus-arsenal/skills/redaccion-articulos/SKILL.md +0 -81
- package/vendor/theus-arsenal/skills/regex-vs-llm/SKILL.md +0 -221
- package/vendor/theus-arsenal/skills/regresion-codigo-ia/SKILL.md +0 -388
- package/vendor/theus-arsenal/skills/rendimiento-react/SKILL.md +0 -567
- package/vendor/theus-arsenal/skills/revision-codigo-flutter-dart/SKILL.md +0 -442
- package/vendor/theus-arsenal/skills/revision-literatura-cientifica/SKILL.md +0 -191
- package/vendor/theus-arsenal/skills/revision-multiperspectiva/SKILL.md +0 -302
- package/vendor/theus-arsenal/skills/revision-riesgo-prediccion/SKILL.md +0 -56
- package/vendor/theus-arsenal/skills/revision-seguridad/SKILL.md +0 -505
- package/vendor/theus-arsenal/skills/revision-seguridad/cloud-infrastructure-security.md +0 -361
- package/vendor/theus-arsenal/skills/runtime-bun/SKILL.md +0 -83
- package/vendor/theus-arsenal/skills/salud-codigo-codescene/SKILL.md +0 -163
- package/vendor/theus-arsenal/skills/salud-interfaces-red/SKILL.md +0 -143
- package/vendor/theus-arsenal/skills/seguimiento-costos/SKILL.md +0 -122
- package/vendor/theus-arsenal/skills/seguridad-agentes-trading/SKILL.md +0 -145
- package/vendor/theus-arsenal/skills/seguridad-amm-defi/SKILL.md +0 -166
- package/vendor/theus-arsenal/skills/seguridad-django/SKILL.md +0 -648
- package/vendor/theus-arsenal/skills/seguridad-laravel/SKILL.md +0 -945
- package/vendor/theus-arsenal/skills/seguridad-perl/SKILL.md +0 -507
- package/vendor/theus-arsenal/skills/seguridad-quarkus/SKILL.md +0 -474
- package/vendor/theus-arsenal/skills/seguridad-springboot/SKILL.md +0 -279
- package/vendor/theus-arsenal/skills/seo/SKILL.md +0 -166
- package/vendor/theus-arsenal/skills/sistema-diseno/SKILL.md +0 -81
- package/vendor/theus-arsenal/skills/sistema-operativo-agentico/SKILL.md +0 -375
- package/vendor/theus-arsenal/skills/sistemas-latencia-critica/SKILL.md +0 -65
- package/vendor/theus-arsenal/skills/tdd-django/SKILL.md +0 -735
- package/vendor/theus-arsenal/skills/tdd-laravel/SKILL.md +0 -673
- package/vendor/theus-arsenal/skills/tdd-quarkus/SKILL.md +0 -817
- package/vendor/theus-arsenal/skills/tdd-springboot/SKILL.md +0 -165
- package/vendor/theus-arsenal/skills/testing-cpp/SKILL.md +0 -328
- package/vendor/theus-arsenal/skills/testing-csharp/SKILL.md +0 -321
- package/vendor/theus-arsenal/skills/testing-e2e/SKILL.md +0 -325
- package/vendor/theus-arsenal/skills/testing-go/SKILL.md +0 -719
- package/vendor/theus-arsenal/skills/testing-kotlin/SKILL.md +0 -829
- package/vendor/theus-arsenal/skills/testing-perl/SKILL.md +0 -479
- package/vendor/theus-arsenal/skills/testing-protocolos-di-swift/SKILL.md +0 -196
- package/vendor/theus-arsenal/skills/testing-python/SKILL.md +0 -815
- package/vendor/theus-arsenal/skills/testing-react/SKILL.md +0 -421
- package/vendor/theus-arsenal/skills/testing-rust/SKILL.md +0 -506
- package/vendor/theus-arsenal/skills/tours-de-codigo/SKILL.md +0 -252
- package/vendor/theus-arsenal/skills/traduccion-documentos-visado/SKILL.md +0 -121
- package/vendor/theus-arsenal/skills/ui-a-vue/SKILL.md +0 -141
- package/vendor/theus-arsenal/skills/validacion-config-red/SKILL.md +0 -211
- package/vendor/theus-arsenal/skills/verificacion-django/SKILL.md +0 -470
- package/vendor/theus-arsenal/skills/verificacion-factual/SKILL.md +0 -142
- package/vendor/theus-arsenal/skills/verificacion-laravel/SKILL.md +0 -184
- package/vendor/theus-arsenal/skills/verificacion-quarkus/SKILL.md +0 -485
- package/vendor/theus-arsenal/skills/verificacion-springboot/SKILL.md +0 -237
- package/vendor/theus-arsenal/skills/videodb/SKILL.md +0 -374
- package/vendor/theus-arsenal/skills/videodb/reference/api-reference.md +0 -550
- package/vendor/theus-arsenal/skills/videodb/reference/capture-reference.md +0 -407
- package/vendor/theus-arsenal/skills/videodb/reference/capture.md +0 -101
- package/vendor/theus-arsenal/skills/videodb/reference/editor.md +0 -443
- package/vendor/theus-arsenal/skills/videodb/reference/generative.md +0 -331
- package/vendor/theus-arsenal/skills/videodb/reference/rtstream-reference.md +0 -564
- package/vendor/theus-arsenal/skills/videodb/reference/rtstream.md +0 -65
- package/vendor/theus-arsenal/skills/videodb/reference/search.md +0 -230
- package/vendor/theus-arsenal/skills/videodb/reference/streaming.md +0 -406
- package/vendor/theus-arsenal/skills/videodb/reference/use-cases.md +0 -118
- package/vendor/theus-arsenal/skills/videodb/scripts/ws_listener.py +0 -279
- package/vendor/theus-arsenal/skills/videos-manim/SKILL.md +0 -91
- package/vendor/theus-arsenal/skills/videos-manim/assets/network_graph_scene.py +0 -52
- package/vendor/theus-arsenal/skills/vigilancia-canary/SKILL.md +0 -108
- package/vendor/theus-arsenal/skills/voz-de-marca/SKILL.md +0 -106
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Aggregate AI-provenance audit over the URLs listed in a sitemap.
|
|
3
|
+
|
|
4
|
+
Stdlib-only: downloads each URL, classifies it by content type/suffix/magic,
|
|
5
|
+
and runs the same deterministic text/image/container inspections used by the
|
|
6
|
+
local audit. Optional external tools (c2patool/exiftool) are not invoked for
|
|
7
|
+
remote URLs; download the assets and run audit_dir.py locally for those.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import argparse
|
|
13
|
+
import gzip
|
|
14
|
+
import http.client
|
|
15
|
+
import io
|
|
16
|
+
import ipaddress
|
|
17
|
+
import socket
|
|
18
|
+
import ssl
|
|
19
|
+
import sys
|
|
20
|
+
import tempfile
|
|
21
|
+
import urllib.error
|
|
22
|
+
import urllib.parse
|
|
23
|
+
import urllib.request
|
|
24
|
+
import xml.etree.ElementTree as ET
|
|
25
|
+
from pathlib import Path
|
|
26
|
+
|
|
27
|
+
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
28
|
+
|
|
29
|
+
import contextlib
|
|
30
|
+
|
|
31
|
+
from audit_lib import aggregate, print_human_report, scan_file
|
|
32
|
+
from common import EXIT_PARTIAL, emit_json, eprint
|
|
33
|
+
|
|
34
|
+
DEFAULT_MAX_BYTES = 4 << 20
|
|
35
|
+
DEFAULT_TIMEOUT = 15
|
|
36
|
+
DEFAULT_MAX_PAGES = 200
|
|
37
|
+
MAX_SITEMAP_DECOMPRESSED_BYTES = 64 << 20
|
|
38
|
+
MAX_REDIRECTS = 5
|
|
39
|
+
USER_AGENT = "remove-ai-marks-audit/1.0"
|
|
40
|
+
|
|
41
|
+
_EXT_FOR_KIND = {
|
|
42
|
+
"webp": ".webp",
|
|
43
|
+
"avif": ".avif",
|
|
44
|
+
"heic": ".heic",
|
|
45
|
+
"gif": ".gif",
|
|
46
|
+
"bmp": ".bmp",
|
|
47
|
+
"tiff": ".tiff",
|
|
48
|
+
"xlsx": ".xlsx",
|
|
49
|
+
"pptx": ".pptx",
|
|
50
|
+
"epub": ".epub",
|
|
51
|
+
"mp4": ".mp4",
|
|
52
|
+
"wav": ".wav",
|
|
53
|
+
"mp3": ".mp3",
|
|
54
|
+
"png": ".png",
|
|
55
|
+
"jpeg": ".jpg",
|
|
56
|
+
"svg": ".svg",
|
|
57
|
+
"pdf": ".pdf",
|
|
58
|
+
"docx": ".docx",
|
|
59
|
+
"odt": ".odt",
|
|
60
|
+
"html": ".html",
|
|
61
|
+
"markdown": ".md",
|
|
62
|
+
"text": ".txt",
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def _local(tag: str) -> str:
|
|
67
|
+
return tag.rsplit("}", 1)[-1]
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def parse_sitemap(data: bytes) -> tuple[str, list[str]]:
|
|
71
|
+
"""Parse a (possibly gzip-compressed) sitemap into (kind, urls)."""
|
|
72
|
+
if data[:2] == b"\x1f\x8b":
|
|
73
|
+
with gzip.GzipFile(fileobj=io.BytesIO(data)) as stream:
|
|
74
|
+
data = stream.read(MAX_SITEMAP_DECOMPRESSED_BYTES + 1)
|
|
75
|
+
if len(data) > MAX_SITEMAP_DECOMPRESSED_BYTES:
|
|
76
|
+
raise ValueError(
|
|
77
|
+
f"sitemap decompressed size exceeds cap ({MAX_SITEMAP_DECOMPRESSED_BYTES} bytes)"
|
|
78
|
+
)
|
|
79
|
+
elif len(data) > MAX_SITEMAP_DECOMPRESSED_BYTES:
|
|
80
|
+
raise ValueError(f"sitemap size exceeds cap ({MAX_SITEMAP_DECOMPRESSED_BYTES} bytes)")
|
|
81
|
+
|
|
82
|
+
# This repo is stdlib-only by policy, so sitemaps use ElementTree. stdlib
|
|
83
|
+
# ET does not expand external entities (no XXE), but internal entity
|
|
84
|
+
# expansion (billion-laughs) is still possible, so DTDs/entities are
|
|
85
|
+
# rejected outright before parsing. If the policy ever changes, swap in
|
|
86
|
+
# defusedxml.ElementTree with the same DTD rejection as defense in depth.
|
|
87
|
+
if b"<!DOCTYPE" in data or b"<!ENTITY" in data:
|
|
88
|
+
raise ValueError("sitemap declares a DTD / entities; refusing to parse")
|
|
89
|
+
|
|
90
|
+
root = ET.fromstring(data) # noqa: S314 - DTD/entity declarations rejected above
|
|
91
|
+
kind = _local(root.tag)
|
|
92
|
+
urls = []
|
|
93
|
+
for el in root.iter():
|
|
94
|
+
if _local(el.tag) == "loc" and el.text:
|
|
95
|
+
urls.append(el.text.strip())
|
|
96
|
+
return kind, urls
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def guess_kind(url: str, data: bytes, content_type: str | None = None) -> str:
|
|
100
|
+
"""Classify a downloaded URL from headers, suffix, then magic bytes."""
|
|
101
|
+
ct = (content_type or "").lower().split(";")[0].strip()
|
|
102
|
+
if "html" in ct:
|
|
103
|
+
return "html"
|
|
104
|
+
if ct == "image/png":
|
|
105
|
+
return "png"
|
|
106
|
+
if ct == "image/jpeg":
|
|
107
|
+
return "jpeg"
|
|
108
|
+
if "svg" in ct:
|
|
109
|
+
return "svg"
|
|
110
|
+
if ct == "application/pdf":
|
|
111
|
+
return "pdf"
|
|
112
|
+
if "wordprocessingml" in ct:
|
|
113
|
+
return "docx"
|
|
114
|
+
if "opendocument.text" in ct:
|
|
115
|
+
return "odt"
|
|
116
|
+
if "markdown" in ct:
|
|
117
|
+
return "markdown"
|
|
118
|
+
if ct == "text/plain":
|
|
119
|
+
return "text"
|
|
120
|
+
# The formats the local audit (format_dispatch) handles arrived over HTTP
|
|
121
|
+
# as "text" before this table knew them: the bytes fell to the Unicode
|
|
122
|
+
# scanner and binary assets reported clean (#166).
|
|
123
|
+
if ct in (
|
|
124
|
+
"image/webp",
|
|
125
|
+
"image/avif",
|
|
126
|
+
"image/heic",
|
|
127
|
+
"image/heif",
|
|
128
|
+
"image/gif",
|
|
129
|
+
"image/bmp",
|
|
130
|
+
"image/tiff",
|
|
131
|
+
):
|
|
132
|
+
return {
|
|
133
|
+
"image/webp": "webp",
|
|
134
|
+
"image/avif": "avif",
|
|
135
|
+
"image/heic": "heic",
|
|
136
|
+
"image/heif": "heic",
|
|
137
|
+
"image/gif": "gif",
|
|
138
|
+
"image/bmp": "bmp",
|
|
139
|
+
"image/tiff": "tiff",
|
|
140
|
+
}[ct]
|
|
141
|
+
if ct == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
|
|
142
|
+
return "xlsx"
|
|
143
|
+
if ct == "application/vnd.openxmlformats-officedocument.presentationml.presentation":
|
|
144
|
+
return "pptx"
|
|
145
|
+
if ct == "application/epub+zip":
|
|
146
|
+
return "epub"
|
|
147
|
+
if ct in ("video/mp4", "video/quicktime", "audio/x-m4a", "audio/mp4"):
|
|
148
|
+
return "mp4"
|
|
149
|
+
if ct in ("audio/wav", "audio/x-wav", "audio/mpeg", "audio/mp3"):
|
|
150
|
+
return {"audio/wav": "wav", "audio/x-wav": "wav", "audio/mpeg": "mp3", "audio/mp3": "mp3"}[
|
|
151
|
+
ct
|
|
152
|
+
]
|
|
153
|
+
|
|
154
|
+
path = urllib.parse.urlparse(url).path.lower()
|
|
155
|
+
for ext, kind in (
|
|
156
|
+
(".png", "png"),
|
|
157
|
+
(".jpg", "jpeg"),
|
|
158
|
+
(".jpeg", "jpeg"),
|
|
159
|
+
(".webp", "webp"),
|
|
160
|
+
(".avif", "avif"),
|
|
161
|
+
(".heic", "heic"),
|
|
162
|
+
(".heif", "heic"),
|
|
163
|
+
(".gif", "gif"),
|
|
164
|
+
(".bmp", "bmp"),
|
|
165
|
+
(".tiff", "tiff"),
|
|
166
|
+
(".tif", "tiff"),
|
|
167
|
+
(".svg", "svg"),
|
|
168
|
+
(".pdf", "pdf"),
|
|
169
|
+
(".docx", "docx"),
|
|
170
|
+
(".xlsx", "xlsx"),
|
|
171
|
+
(".pptx", "pptx"),
|
|
172
|
+
(".odt", "odt"),
|
|
173
|
+
(".epub", "epub"),
|
|
174
|
+
(".mp4", "mp4"),
|
|
175
|
+
(".mov", "mp4"),
|
|
176
|
+
(".m4a", "mp4"),
|
|
177
|
+
(".wav", "wav"),
|
|
178
|
+
(".mp3", "mp3"),
|
|
179
|
+
(".html", "html"),
|
|
180
|
+
(".htm", "html"),
|
|
181
|
+
(".md", "markdown"),
|
|
182
|
+
(".markdown", "markdown"),
|
|
183
|
+
(".txt", "text"),
|
|
184
|
+
):
|
|
185
|
+
if path.endswith(ext):
|
|
186
|
+
return kind
|
|
187
|
+
|
|
188
|
+
if data.startswith(b"\x89PNG"):
|
|
189
|
+
return "png"
|
|
190
|
+
if data.startswith(b"\xff\xd8"):
|
|
191
|
+
return "jpeg"
|
|
192
|
+
if data.startswith(b"%PDF"):
|
|
193
|
+
return "pdf"
|
|
194
|
+
if data.startswith(b"RIFF") and data[8:12] == b"WEBP":
|
|
195
|
+
return "webp"
|
|
196
|
+
if data.startswith(b"GIF8"):
|
|
197
|
+
return "gif"
|
|
198
|
+
if data.startswith(b"BM"):
|
|
199
|
+
return "bmp"
|
|
200
|
+
if data.startswith(b"II*\x00") or data.startswith(b"MM\x00*"):
|
|
201
|
+
return "tiff"
|
|
202
|
+
if data[4:8] == b"ftyp":
|
|
203
|
+
brand = data[8:12]
|
|
204
|
+
if brand in (b"avif", b"avis"):
|
|
205
|
+
return "avif"
|
|
206
|
+
if brand in (b"heic", b"heix", b"hevc", b"hevx", b"mif1", b"msf1"):
|
|
207
|
+
return "heic"
|
|
208
|
+
return "mp4"
|
|
209
|
+
if data[:100].lstrip().startswith(b"<") and b"svg" in data[:500].lower():
|
|
210
|
+
return "svg"
|
|
211
|
+
if b"<html" in data[:2000].lower() or data[:100].lstrip().lower().startswith(b"<"):
|
|
212
|
+
return "html"
|
|
213
|
+
return "text"
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
UrlOrigin = tuple[str, str, int]
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def _url_origin(url: str) -> UrlOrigin:
|
|
220
|
+
"""Return a normalized HTTP(S) origin or reject unsafe URL forms."""
|
|
221
|
+
parsed = urllib.parse.urlsplit(url)
|
|
222
|
+
scheme = parsed.scheme.lower()
|
|
223
|
+
|
|
224
|
+
if scheme not in ("http", "https"):
|
|
225
|
+
raise ValueError(f"unsupported URL scheme: {scheme or '(missing)'}")
|
|
226
|
+
|
|
227
|
+
if parsed.username is not None or parsed.password is not None:
|
|
228
|
+
raise ValueError("credentials in URLs are not allowed")
|
|
229
|
+
|
|
230
|
+
host = parsed.hostname
|
|
231
|
+
if not host:
|
|
232
|
+
raise ValueError("URL has no hostname")
|
|
233
|
+
|
|
234
|
+
try:
|
|
235
|
+
port = parsed.port
|
|
236
|
+
except ValueError as exc:
|
|
237
|
+
raise ValueError(f"invalid URL port: {exc}") from exc
|
|
238
|
+
|
|
239
|
+
if port is None:
|
|
240
|
+
port = 443 if scheme == "https" else 80
|
|
241
|
+
|
|
242
|
+
return scheme, host.rstrip(".").lower(), port
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def _origin_allowed(candidate: UrlOrigin, expected: UrlOrigin) -> bool:
|
|
246
|
+
"""Allow same-origin URLs plus a normal HTTP-to-HTTPS upgrade."""
|
|
247
|
+
if candidate == expected:
|
|
248
|
+
return True
|
|
249
|
+
return (
|
|
250
|
+
expected[0] == "http"
|
|
251
|
+
and expected[2] == 80
|
|
252
|
+
and candidate[0] == "https"
|
|
253
|
+
and candidate[2] == 443
|
|
254
|
+
and candidate[1] == expected[1]
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
def _resolve_public_addresses(origin: UrlOrigin) -> tuple[str, ...]:
|
|
259
|
+
"""Resolve an origin to validated public numeric addresses."""
|
|
260
|
+
_scheme, host, port = origin
|
|
261
|
+
host_for_ip = host.split("%", 1)[0]
|
|
262
|
+
raw_addresses: list[str] = []
|
|
263
|
+
|
|
264
|
+
try:
|
|
265
|
+
raw_addresses.append(str(ipaddress.ip_address(host_for_ip)))
|
|
266
|
+
except ValueError:
|
|
267
|
+
try:
|
|
268
|
+
infos = socket.getaddrinfo(host, port, type=socket.SOCK_STREAM)
|
|
269
|
+
except socket.gaierror as exc:
|
|
270
|
+
raise ValueError(f"cannot resolve hostname {host}: {exc}") from exc
|
|
271
|
+
|
|
272
|
+
for info in infos:
|
|
273
|
+
raw_addresses.append(str(info[4][0]).split("%", 1)[0])
|
|
274
|
+
|
|
275
|
+
addresses: list[str] = []
|
|
276
|
+
for raw in raw_addresses:
|
|
277
|
+
try:
|
|
278
|
+
address = ipaddress.ip_address(raw)
|
|
279
|
+
except ValueError:
|
|
280
|
+
continue
|
|
281
|
+
|
|
282
|
+
mapped = getattr(address, "ipv4_mapped", None)
|
|
283
|
+
if mapped is not None:
|
|
284
|
+
address = mapped
|
|
285
|
+
|
|
286
|
+
if not address.is_global:
|
|
287
|
+
raise ValueError(f"refusing non-public address for {host}: {address}")
|
|
288
|
+
|
|
289
|
+
canonical = str(address)
|
|
290
|
+
if canonical not in addresses:
|
|
291
|
+
addresses.append(canonical)
|
|
292
|
+
|
|
293
|
+
if not addresses:
|
|
294
|
+
raise ValueError(f"hostname resolved to no IP addresses: {host}")
|
|
295
|
+
|
|
296
|
+
return tuple(addresses)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
def _validated_target(
|
|
300
|
+
url: str,
|
|
301
|
+
*,
|
|
302
|
+
expected_origin: UrlOrigin | None = None,
|
|
303
|
+
) -> tuple[UrlOrigin, tuple[str, ...]]:
|
|
304
|
+
"""Validate URL policy and bind it to numeric public IPs."""
|
|
305
|
+
origin = _url_origin(url)
|
|
306
|
+
|
|
307
|
+
if expected_origin is not None and not _origin_allowed(origin, expected_origin):
|
|
308
|
+
raise ValueError(f"cross-origin URL is not allowed: {origin[0]}://{origin[1]}:{origin[2]}")
|
|
309
|
+
|
|
310
|
+
return origin, _resolve_public_addresses(origin)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
def _validate_public_http_url(
|
|
314
|
+
url: str,
|
|
315
|
+
*,
|
|
316
|
+
expected_origin: UrlOrigin | None = None,
|
|
317
|
+
) -> UrlOrigin:
|
|
318
|
+
"""Validate a public HTTP(S) URL and return its origin."""
|
|
319
|
+
origin, _addresses = _validated_target(url, expected_origin=expected_origin)
|
|
320
|
+
return origin
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
def _open_pinned_connection(
|
|
324
|
+
origin: UrlOrigin,
|
|
325
|
+
addresses: tuple[str, ...],
|
|
326
|
+
timeout: int,
|
|
327
|
+
) -> http.client.HTTPConnection:
|
|
328
|
+
"""Connect to a validated IP while preserving Host and TLS SNI."""
|
|
329
|
+
scheme, host, port = origin
|
|
330
|
+
last_error: OSError | None = None
|
|
331
|
+
|
|
332
|
+
for address in addresses:
|
|
333
|
+
raw = None
|
|
334
|
+
try:
|
|
335
|
+
raw = socket.create_connection((address, port), timeout=timeout)
|
|
336
|
+
|
|
337
|
+
if scheme == "https":
|
|
338
|
+
context = ssl.create_default_context()
|
|
339
|
+
context.minimum_version = ssl.TLSVersion.TLSv1_2
|
|
340
|
+
with contextlib.suppress(NotImplementedError):
|
|
341
|
+
context.set_alpn_protocols(["http/1.1"])
|
|
342
|
+
|
|
343
|
+
wrapped = context.wrap_socket(raw, server_hostname=host)
|
|
344
|
+
raw = None
|
|
345
|
+
|
|
346
|
+
conn = http.client.HTTPSConnection(
|
|
347
|
+
host,
|
|
348
|
+
port,
|
|
349
|
+
timeout=timeout,
|
|
350
|
+
context=context,
|
|
351
|
+
)
|
|
352
|
+
conn.sock = wrapped
|
|
353
|
+
return conn
|
|
354
|
+
|
|
355
|
+
conn = http.client.HTTPConnection(host, port, timeout=timeout)
|
|
356
|
+
conn.sock = raw
|
|
357
|
+
raw = None
|
|
358
|
+
return conn
|
|
359
|
+
|
|
360
|
+
except OSError as exc:
|
|
361
|
+
last_error = exc
|
|
362
|
+
if raw is not None:
|
|
363
|
+
with contextlib.suppress(OSError):
|
|
364
|
+
raw.close()
|
|
365
|
+
|
|
366
|
+
if last_error is not None:
|
|
367
|
+
raise last_error
|
|
368
|
+
raise OSError(f"no validated address available for {host}")
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
def _request_target(url: str) -> str:
|
|
372
|
+
parsed = urllib.parse.urlsplit(url)
|
|
373
|
+
target = parsed.path or "/"
|
|
374
|
+
if parsed.query:
|
|
375
|
+
target += "?" + parsed.query
|
|
376
|
+
return target
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
def fetch(
|
|
380
|
+
url: str,
|
|
381
|
+
timeout: int,
|
|
382
|
+
max_bytes: int,
|
|
383
|
+
*,
|
|
384
|
+
allowed_origin: UrlOrigin | None = None,
|
|
385
|
+
) -> tuple[bytes, str | None]:
|
|
386
|
+
"""Fetch with IP pinning, redirect validation and a byte cap."""
|
|
387
|
+
current_url = url
|
|
388
|
+
expected_origin = allowed_origin
|
|
389
|
+
|
|
390
|
+
for redirect_count in range(MAX_REDIRECTS + 1):
|
|
391
|
+
origin, addresses = _validated_target(
|
|
392
|
+
current_url,
|
|
393
|
+
expected_origin=expected_origin,
|
|
394
|
+
)
|
|
395
|
+
|
|
396
|
+
if expected_origin is None:
|
|
397
|
+
expected_origin = origin
|
|
398
|
+
|
|
399
|
+
conn = _open_pinned_connection(origin, addresses, timeout)
|
|
400
|
+
response = None
|
|
401
|
+
|
|
402
|
+
try:
|
|
403
|
+
conn.request(
|
|
404
|
+
"GET",
|
|
405
|
+
_request_target(current_url),
|
|
406
|
+
headers={
|
|
407
|
+
"User-Agent": USER_AGENT,
|
|
408
|
+
"Connection": "close",
|
|
409
|
+
},
|
|
410
|
+
)
|
|
411
|
+
response = conn.getresponse()
|
|
412
|
+
|
|
413
|
+
if response.status in (301, 302, 303, 307, 308):
|
|
414
|
+
location = response.getheader("Location")
|
|
415
|
+
if location:
|
|
416
|
+
if redirect_count >= MAX_REDIRECTS:
|
|
417
|
+
raise ValueError(f"too many redirects (>{MAX_REDIRECTS})")
|
|
418
|
+
current_url = urllib.parse.urljoin(current_url, location)
|
|
419
|
+
continue
|
|
420
|
+
|
|
421
|
+
content_type = response.getheader("Content-Type")
|
|
422
|
+
chunks = []
|
|
423
|
+
total = 0
|
|
424
|
+
|
|
425
|
+
while True:
|
|
426
|
+
chunk = response.read(1 << 16)
|
|
427
|
+
if not chunk:
|
|
428
|
+
break
|
|
429
|
+
total += len(chunk)
|
|
430
|
+
if total > max_bytes:
|
|
431
|
+
raise ValueError(f"exceeds {max_bytes} bytes")
|
|
432
|
+
chunks.append(chunk)
|
|
433
|
+
|
|
434
|
+
return b"".join(chunks), content_type
|
|
435
|
+
|
|
436
|
+
finally:
|
|
437
|
+
if response is not None:
|
|
438
|
+
response.close()
|
|
439
|
+
conn.close()
|
|
440
|
+
|
|
441
|
+
raise ValueError(f"too many redirects (>{MAX_REDIRECTS})")
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
def inspect_remote(url: str, data: bytes, content_type: str | None = None) -> dict:
|
|
445
|
+
"""Inspect downloaded bytes using the local scan_file pipeline."""
|
|
446
|
+
kind = guess_kind(url, data, content_type)
|
|
447
|
+
ext = _EXT_FOR_KIND.get(kind, ".bin")
|
|
448
|
+
with tempfile.TemporaryDirectory() as td:
|
|
449
|
+
tmp = Path(td) / f"asset{ext}"
|
|
450
|
+
tmp.write_bytes(data)
|
|
451
|
+
result = scan_file(tmp, display_name=url)
|
|
452
|
+
result["kind"] = kind
|
|
453
|
+
return result
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
def discover_sitemap(base_url: str, timeout: int) -> str | None:
|
|
457
|
+
"""Find a same-site sitemap via standard paths then robots.txt."""
|
|
458
|
+
origin = _validate_public_http_url(base_url)
|
|
459
|
+
base = base_url.rstrip("/")
|
|
460
|
+
|
|
461
|
+
for candidate in (
|
|
462
|
+
f"{base}/sitemap.xml",
|
|
463
|
+
f"{base}/sitemap_index.xml",
|
|
464
|
+
):
|
|
465
|
+
try:
|
|
466
|
+
data, _ = fetch(
|
|
467
|
+
candidate,
|
|
468
|
+
timeout,
|
|
469
|
+
DEFAULT_MAX_BYTES,
|
|
470
|
+
allowed_origin=origin,
|
|
471
|
+
)
|
|
472
|
+
parse_sitemap(data)
|
|
473
|
+
return candidate
|
|
474
|
+
except Exception: # noqa: S112 - try next candidate sitemap on any failure
|
|
475
|
+
continue
|
|
476
|
+
|
|
477
|
+
try:
|
|
478
|
+
data, _ = fetch(
|
|
479
|
+
f"{base}/robots.txt",
|
|
480
|
+
timeout,
|
|
481
|
+
1 << 20,
|
|
482
|
+
allowed_origin=origin,
|
|
483
|
+
)
|
|
484
|
+
|
|
485
|
+
text = data.decode("utf-8", errors="replace")
|
|
486
|
+
|
|
487
|
+
for line in text.splitlines():
|
|
488
|
+
if line.lower().startswith("sitemap:"):
|
|
489
|
+
candidate = line.split(":", 1)[1].strip()
|
|
490
|
+
candidate_origin = _url_origin(candidate)
|
|
491
|
+
|
|
492
|
+
if not _origin_allowed(candidate_origin, origin):
|
|
493
|
+
raise ValueError(f"cross-origin sitemap is not allowed: {candidate}")
|
|
494
|
+
|
|
495
|
+
return candidate
|
|
496
|
+
|
|
497
|
+
except Exception: # noqa: S110 - robots.txt is optional; fall through to None
|
|
498
|
+
pass
|
|
499
|
+
|
|
500
|
+
return None
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
def collect_urls(
|
|
504
|
+
sitemap_url: str,
|
|
505
|
+
timeout: int,
|
|
506
|
+
max_pages: int,
|
|
507
|
+
) -> list[str]:
|
|
508
|
+
"""Collect same-site URLs while following nested sitemap indexes."""
|
|
509
|
+
urls: list[str] = []
|
|
510
|
+
seen: set[str] = set()
|
|
511
|
+
origin = _validate_public_http_url(sitemap_url)
|
|
512
|
+
|
|
513
|
+
def _check_loc(loc: str) -> None:
|
|
514
|
+
candidate_origin = _url_origin(loc)
|
|
515
|
+
|
|
516
|
+
if not _origin_allowed(candidate_origin, origin):
|
|
517
|
+
raise ValueError(f"cross-origin sitemap URL is not allowed: {loc}")
|
|
518
|
+
|
|
519
|
+
def _recurse(url: str, depth: int = 0) -> None:
|
|
520
|
+
if len(urls) >= max_pages or depth > 3:
|
|
521
|
+
return
|
|
522
|
+
|
|
523
|
+
data, _ = fetch(
|
|
524
|
+
url,
|
|
525
|
+
timeout,
|
|
526
|
+
DEFAULT_MAX_BYTES,
|
|
527
|
+
allowed_origin=origin,
|
|
528
|
+
)
|
|
529
|
+
|
|
530
|
+
kind, locs = parse_sitemap(data)
|
|
531
|
+
|
|
532
|
+
if kind == "sitemapindex":
|
|
533
|
+
for loc in locs:
|
|
534
|
+
_check_loc(loc)
|
|
535
|
+
|
|
536
|
+
if loc not in seen:
|
|
537
|
+
seen.add(loc)
|
|
538
|
+
_recurse(loc, depth + 1)
|
|
539
|
+
|
|
540
|
+
else:
|
|
541
|
+
for loc in locs:
|
|
542
|
+
_check_loc(loc)
|
|
543
|
+
|
|
544
|
+
if loc not in seen:
|
|
545
|
+
seen.add(loc)
|
|
546
|
+
urls.append(loc)
|
|
547
|
+
|
|
548
|
+
if len(urls) >= max_pages:
|
|
549
|
+
break
|
|
550
|
+
|
|
551
|
+
_recurse(sitemap_url)
|
|
552
|
+
return urls
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
def main() -> int:
|
|
556
|
+
p = argparse.ArgumentParser(description=__doc__)
|
|
557
|
+
p.add_argument("--sitemap", help="Sitemap URL to audit")
|
|
558
|
+
p.add_argument("--base", help="Base URL; discover the sitemap automatically")
|
|
559
|
+
p.add_argument("--max-pages", type=int, default=DEFAULT_MAX_PAGES)
|
|
560
|
+
p.add_argument("--timeout", type=int, default=DEFAULT_TIMEOUT)
|
|
561
|
+
p.add_argument("--max-bytes", type=int, default=DEFAULT_MAX_BYTES)
|
|
562
|
+
p.add_argument("--json", action="store_true")
|
|
563
|
+
args = p.parse_args()
|
|
564
|
+
|
|
565
|
+
if not args.sitemap and not args.base:
|
|
566
|
+
eprint("provide --sitemap URL or --base URL")
|
|
567
|
+
return 2
|
|
568
|
+
|
|
569
|
+
sitemap_url = args.sitemap
|
|
570
|
+
if not sitemap_url:
|
|
571
|
+
try:
|
|
572
|
+
sitemap_url = discover_sitemap(args.base, args.timeout)
|
|
573
|
+
except ValueError as e:
|
|
574
|
+
eprint(f"invalid base URL: {e}")
|
|
575
|
+
return 2
|
|
576
|
+
if not sitemap_url:
|
|
577
|
+
eprint(f"no sitemap found for {args.base}")
|
|
578
|
+
return 2
|
|
579
|
+
|
|
580
|
+
try:
|
|
581
|
+
urls = collect_urls(sitemap_url, args.timeout, args.max_pages)
|
|
582
|
+
except Exception as e:
|
|
583
|
+
eprint(f"could not collect URLs from {sitemap_url}: {e}")
|
|
584
|
+
return 2
|
|
585
|
+
if not urls:
|
|
586
|
+
eprint("no URLs collected from sitemap")
|
|
587
|
+
return 2
|
|
588
|
+
|
|
589
|
+
files = []
|
|
590
|
+
failures = []
|
|
591
|
+
for url in urls[: args.max_pages]:
|
|
592
|
+
try:
|
|
593
|
+
data, content_type = fetch(url, args.timeout, args.max_bytes)
|
|
594
|
+
except Exception as e:
|
|
595
|
+
failures.append({"url": url, "error": str(e)})
|
|
596
|
+
continue
|
|
597
|
+
try:
|
|
598
|
+
files.append(inspect_remote(url, data, content_type))
|
|
599
|
+
except Exception as e:
|
|
600
|
+
failures.append({"url": url, "error": f"inspect failed: {e}"})
|
|
601
|
+
|
|
602
|
+
summary = aggregate(files)
|
|
603
|
+
report = {
|
|
604
|
+
"sitemap": sitemap_url,
|
|
605
|
+
"base": args.base,
|
|
606
|
+
"urls_collected": len(urls),
|
|
607
|
+
"urls_scanned": len(files),
|
|
608
|
+
"urls_failed": failures,
|
|
609
|
+
"summary": summary,
|
|
610
|
+
"files": files,
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if args.json:
|
|
614
|
+
emit_json(report)
|
|
615
|
+
else:
|
|
616
|
+
print_human_report(
|
|
617
|
+
files,
|
|
618
|
+
summary,
|
|
619
|
+
extra_header={
|
|
620
|
+
"Sitemap": sitemap_url,
|
|
621
|
+
"URLs collected": str(len(urls)),
|
|
622
|
+
"URLs scanned": str(len(files)),
|
|
623
|
+
"URLs failed": str(len(failures)),
|
|
624
|
+
},
|
|
625
|
+
)
|
|
626
|
+
for failure in failures:
|
|
627
|
+
print(f" [error] {failure['url']}: {failure['error']}")
|
|
628
|
+
|
|
629
|
+
# A partial scan (one or more URLs failed to fetch/inspect) gets a
|
|
630
|
+
# distinct code: an incomplete audit outranks actionable findings.
|
|
631
|
+
return EXIT_PARTIAL if failures else (1 if summary["actionable_files"] else 0)
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
if __name__ == "__main__":
|
|
635
|
+
raise SystemExit(main())
|