theus-cli-linux-x64 1.2.2 → 1.4.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/README.md +50 -11
- 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,212 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Optional CtrlRegen pixel-watermark remover backed by an external noai-watermark checkout.
|
|
3
|
+
|
|
4
|
+
This script does NOT vendor upstream code. It imports ``CtrlRegenEngine`` from
|
|
5
|
+
a user-provided checkout of ``mertizci/noai-watermark`` at runtime, using that
|
|
6
|
+
environment's optional dependencies (torch, diffusers, transformers, etc.).
|
|
7
|
+
|
|
8
|
+
Exit codes:
|
|
9
|
+
0 removed successfully
|
|
10
|
+
1 remover runtime error
|
|
11
|
+
2 bad input (missing/unreadable image, bad args)
|
|
12
|
+
3 remover unavailable (not configured / missing checkout / missing deps)
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
import argparse
|
|
18
|
+
import io
|
|
19
|
+
import json
|
|
20
|
+
import os
|
|
21
|
+
import sys
|
|
22
|
+
from pathlib import Path
|
|
23
|
+
|
|
24
|
+
SCRIPTS_DIR = Path(__file__).resolve().parent
|
|
25
|
+
sys.path.insert(0, str(SCRIPTS_DIR))
|
|
26
|
+
|
|
27
|
+
from common import cleaned_path, safe_write_bytes # noqa: E402
|
|
28
|
+
|
|
29
|
+
# Backend default guidance scale (CtrlRegenEngine.run() default). Kept
|
|
30
|
+
# internal: strength is the user-facing knob, not the CFG scale.
|
|
31
|
+
DEFAULT_GUIDANCE_SCALE = 2.0
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def resolve_upstream(raw: str | None) -> Path | None:
|
|
35
|
+
if not raw:
|
|
36
|
+
return None
|
|
37
|
+
upstream = Path(raw).expanduser().resolve()
|
|
38
|
+
if not upstream.is_dir():
|
|
39
|
+
return None
|
|
40
|
+
return upstream
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def resolve_device(raw: str | None) -> str:
|
|
44
|
+
"""Resolve the ``auto`` device hint to a concrete torch device."""
|
|
45
|
+
if raw and raw != "auto":
|
|
46
|
+
return raw
|
|
47
|
+
try:
|
|
48
|
+
import torch
|
|
49
|
+
|
|
50
|
+
if torch.cuda.is_available():
|
|
51
|
+
return "cuda"
|
|
52
|
+
mps = getattr(torch.backends, "mps", None)
|
|
53
|
+
if mps is not None and mps.is_available():
|
|
54
|
+
return "mps"
|
|
55
|
+
except Exception: # noqa: S110 - optional torch device detection
|
|
56
|
+
pass
|
|
57
|
+
return "cpu"
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def save_image_bytes(image, output: Path) -> bytes:
|
|
61
|
+
"""Encode the regenerated image, honoring a JPEG output suffix."""
|
|
62
|
+
ext = output.suffix.lower()
|
|
63
|
+
buf = io.BytesIO()
|
|
64
|
+
if ext in (".jpg", ".jpeg", ".jpe", ".jfif"):
|
|
65
|
+
image = image.convert("RGB")
|
|
66
|
+
image.save(buf, format="JPEG", quality=95)
|
|
67
|
+
else:
|
|
68
|
+
image.save(buf, format="PNG")
|
|
69
|
+
return buf.getvalue()
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def _progress(message: str) -> None:
|
|
73
|
+
print(f"[ctrlregen] {message}", file=sys.stderr)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def main() -> int:
|
|
77
|
+
p = argparse.ArgumentParser(description=__doc__)
|
|
78
|
+
p.add_argument("path", type=Path, help="Input image (PNG/JPEG/etc.)")
|
|
79
|
+
p.add_argument("-o", "--output", type=Path, help="Output path (default: *.ctrlregen.*)")
|
|
80
|
+
p.add_argument(
|
|
81
|
+
"--upstream-dir",
|
|
82
|
+
type=Path,
|
|
83
|
+
default=None,
|
|
84
|
+
help="noai-watermark checkout root (default: $NOAI_WATERMARK_DIR)",
|
|
85
|
+
)
|
|
86
|
+
p.add_argument(
|
|
87
|
+
"--strength",
|
|
88
|
+
type=float,
|
|
89
|
+
default=0.25,
|
|
90
|
+
help="Regeneration strength in (0, 1]; lower preserves more detail (default: 0.25)",
|
|
91
|
+
)
|
|
92
|
+
p.add_argument(
|
|
93
|
+
"--steps",
|
|
94
|
+
type=int,
|
|
95
|
+
default=50,
|
|
96
|
+
help="Diffusion inference steps (default: 50; effective steps ~= steps * strength)",
|
|
97
|
+
)
|
|
98
|
+
p.add_argument(
|
|
99
|
+
"--device",
|
|
100
|
+
type=str,
|
|
101
|
+
default="auto",
|
|
102
|
+
help="auto|cpu|cuda|mps (default: auto)",
|
|
103
|
+
)
|
|
104
|
+
p.add_argument("--seed", type=int, default=None, help="Optional RNG seed")
|
|
105
|
+
p.add_argument("--json", action="store_true", help="Emit JSON on stdout")
|
|
106
|
+
args = p.parse_args()
|
|
107
|
+
|
|
108
|
+
if not args.path.is_file():
|
|
109
|
+
print(f"not a file: {args.path}", file=sys.stderr)
|
|
110
|
+
return 2
|
|
111
|
+
if not 0 < args.strength <= 1:
|
|
112
|
+
print(f"strength must be in (0, 1]: {args.strength}", file=sys.stderr)
|
|
113
|
+
return 2
|
|
114
|
+
if args.steps < 1:
|
|
115
|
+
print(f"steps must be >= 1: {args.steps}", file=sys.stderr)
|
|
116
|
+
return 2
|
|
117
|
+
|
|
118
|
+
raw_upstream = args.upstream_dir or os.environ.get("NOAI_WATERMARK_DIR")
|
|
119
|
+
upstream = resolve_upstream(str(raw_upstream) if raw_upstream else None)
|
|
120
|
+
if upstream is None:
|
|
121
|
+
print(
|
|
122
|
+
"CtrlRegen not configured: set NOAI_WATERMARK_DIR or pass --upstream-dir",
|
|
123
|
+
file=sys.stderr,
|
|
124
|
+
)
|
|
125
|
+
return 3
|
|
126
|
+
|
|
127
|
+
src_dir = upstream / "src"
|
|
128
|
+
if not src_dir.is_dir():
|
|
129
|
+
print(f"upstream src dir not found: {src_dir}", file=sys.stderr)
|
|
130
|
+
return 3
|
|
131
|
+
|
|
132
|
+
sys.path.insert(0, str(src_dir))
|
|
133
|
+
try:
|
|
134
|
+
from ctrlregen.engine import CtrlRegenEngine, is_ctrlregen_available
|
|
135
|
+
from PIL import Image
|
|
136
|
+
except ImportError as e:
|
|
137
|
+
print(f"CtrlRegen dependencies missing: {e}", file=sys.stderr)
|
|
138
|
+
print("run setup_ctrlregen.sh first", file=sys.stderr)
|
|
139
|
+
return 3
|
|
140
|
+
|
|
141
|
+
if not is_ctrlregen_available():
|
|
142
|
+
print(
|
|
143
|
+
"CtrlRegen dependencies not installed; run setup_ctrlregen.sh first",
|
|
144
|
+
file=sys.stderr,
|
|
145
|
+
)
|
|
146
|
+
return 3
|
|
147
|
+
|
|
148
|
+
try:
|
|
149
|
+
image = Image.open(args.path).convert("RGB")
|
|
150
|
+
image.load()
|
|
151
|
+
except Exception as e:
|
|
152
|
+
print(f"could not load image: {e}", file=sys.stderr)
|
|
153
|
+
return 2
|
|
154
|
+
|
|
155
|
+
device = resolve_device(args.device)
|
|
156
|
+
output = args.output or cleaned_path(args.path, ".ctrlregen")
|
|
157
|
+
|
|
158
|
+
engine = CtrlRegenEngine(
|
|
159
|
+
base_model_id=None,
|
|
160
|
+
device=device,
|
|
161
|
+
torch_dtype=None,
|
|
162
|
+
hf_token=os.environ.get("HF_TOKEN"),
|
|
163
|
+
progress_callback=_progress,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
try:
|
|
167
|
+
result = engine.run(
|
|
168
|
+
image,
|
|
169
|
+
strength=args.strength,
|
|
170
|
+
num_inference_steps=args.steps,
|
|
171
|
+
guidance_scale=DEFAULT_GUIDANCE_SCALE,
|
|
172
|
+
seed=args.seed,
|
|
173
|
+
)
|
|
174
|
+
except Exception as e:
|
|
175
|
+
print(f"CtrlRegen error: {e}", file=sys.stderr)
|
|
176
|
+
return 1
|
|
177
|
+
|
|
178
|
+
try:
|
|
179
|
+
data = save_image_bytes(result, output)
|
|
180
|
+
safe_write_bytes(output, data)
|
|
181
|
+
except (OSError, ValueError) as e:
|
|
182
|
+
print(f"cannot write output: {e}", file=sys.stderr)
|
|
183
|
+
return 1
|
|
184
|
+
|
|
185
|
+
payload = {
|
|
186
|
+
"available": True,
|
|
187
|
+
"upstream_dir": str(upstream),
|
|
188
|
+
"output": str(output),
|
|
189
|
+
"strength": args.strength,
|
|
190
|
+
"steps": args.steps,
|
|
191
|
+
"device": device,
|
|
192
|
+
"seed": args.seed,
|
|
193
|
+
"input_size": list(image.size),
|
|
194
|
+
"output_size": list(result.size),
|
|
195
|
+
"bytes_out": len(data),
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if args.json:
|
|
199
|
+
json.dump(payload, sys.stdout, indent=2)
|
|
200
|
+
sys.stdout.write("\n")
|
|
201
|
+
else:
|
|
202
|
+
print(
|
|
203
|
+
f"CtrlRegen removed: {args.path} -> {output} "
|
|
204
|
+
f"({payload['input_size']} -> {payload['output_size']}, "
|
|
205
|
+
f"strength {args.strength}, device {device})"
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
return 0
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
if __name__ == "__main__":
|
|
212
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Unified clean: text Layer A, raster metadata, and document containers."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import argparse
|
|
7
|
+
import json
|
|
8
|
+
import sys
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
12
|
+
|
|
13
|
+
from av_meta import clean_av
|
|
14
|
+
from common import (
|
|
15
|
+
MAX_INPUT_BYTES,
|
|
16
|
+
ROUTER_ADVICE,
|
|
17
|
+
backup_path,
|
|
18
|
+
cleaned_path,
|
|
19
|
+
eprint,
|
|
20
|
+
guard_binary,
|
|
21
|
+
safe_write_text,
|
|
22
|
+
)
|
|
23
|
+
from container_meta import clean_container, detect_container_format
|
|
24
|
+
from format_dispatch import classify
|
|
25
|
+
from image_meta import clean_image
|
|
26
|
+
from text_unicode import clean_text
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def main() -> int:
|
|
30
|
+
p = argparse.ArgumentParser(description=__doc__)
|
|
31
|
+
p.add_argument("path", type=Path)
|
|
32
|
+
p.add_argument("-o", "--output", type=Path)
|
|
33
|
+
p.add_argument("--in-place", action="store_true")
|
|
34
|
+
p.add_argument("--json", action="store_true")
|
|
35
|
+
p.add_argument("--nfkc", action="store_true", help="Text: NFKC normalize")
|
|
36
|
+
p.add_argument(
|
|
37
|
+
"--deep-images",
|
|
38
|
+
choices=("auto", "always", "lossless", "never"),
|
|
39
|
+
default="auto",
|
|
40
|
+
help=(
|
|
41
|
+
"PDF: Ghostscript re-distill that reaches metadata inside embedded "
|
|
42
|
+
"images. auto (default) only when AI/C2PA markers survive the "
|
|
43
|
+
"document strip; always also clears non-AI EXIF; lossless never "
|
|
44
|
+
"recompresses images; never skips the pass entirely"
|
|
45
|
+
),
|
|
46
|
+
)
|
|
47
|
+
p.add_argument("--aggressive-homoglyphs", action="store_true")
|
|
48
|
+
p.add_argument(
|
|
49
|
+
"--keep-non-ai-metadata",
|
|
50
|
+
action="store_true",
|
|
51
|
+
help="Images/audio/video: only drop C2PA/AI-looking segments",
|
|
52
|
+
)
|
|
53
|
+
p.add_argument(
|
|
54
|
+
"--as",
|
|
55
|
+
dest="force_type",
|
|
56
|
+
choices=("auto", "text", "image", "container", "av"),
|
|
57
|
+
default="auto",
|
|
58
|
+
)
|
|
59
|
+
p.add_argument(
|
|
60
|
+
"--force-text",
|
|
61
|
+
action="store_true",
|
|
62
|
+
help="Clean as text even when the bytes look like a binary container",
|
|
63
|
+
)
|
|
64
|
+
args = p.parse_args()
|
|
65
|
+
|
|
66
|
+
if not args.path.is_file():
|
|
67
|
+
eprint(f"not a file: {args.path}")
|
|
68
|
+
return 2
|
|
69
|
+
|
|
70
|
+
if args.path.stat().st_size > MAX_INPUT_BYTES:
|
|
71
|
+
eprint(f"refusing input larger than {MAX_INPUT_BYTES} bytes: {args.path}")
|
|
72
|
+
return 2
|
|
73
|
+
|
|
74
|
+
kind = args.force_type if args.force_type != "auto" else classify(args.path)
|
|
75
|
+
|
|
76
|
+
# classify() reports "unknown" for bytes that match no supported format.
|
|
77
|
+
# Never mutate those in auto mode: a binary with valid UTF-8 runs would
|
|
78
|
+
# be decoded and written back mangled. --as text / --force-text are the
|
|
79
|
+
# explicit opt-ins and both route through the text pipeline below.
|
|
80
|
+
if kind == "unknown":
|
|
81
|
+
if args.force_type == "text" or args.force_text:
|
|
82
|
+
kind = "text"
|
|
83
|
+
else:
|
|
84
|
+
eprint(f"refusing to classify {args.path}: unrecognized format")
|
|
85
|
+
for line in ROUTER_ADVICE:
|
|
86
|
+
eprint(line)
|
|
87
|
+
return 2
|
|
88
|
+
|
|
89
|
+
# In-place cleaning reads from a .bak copy whose suffix would make
|
|
90
|
+
# markdown/HTML (detected by extension, not magic bytes) classify as
|
|
91
|
+
# "unknown". Pin the format from the original path so --in-place and -o
|
|
92
|
+
# route identically.
|
|
93
|
+
container_fmt = None
|
|
94
|
+
if kind == "container":
|
|
95
|
+
container_fmt = detect_container_format(args.path, args.path.read_bytes())
|
|
96
|
+
|
|
97
|
+
# classify() falls back to "text" for unrecognised bytes, so an unknown
|
|
98
|
+
# binary would otherwise be decoded, scrubbed and written back mangled.
|
|
99
|
+
# Sniff before --in-place takes a backup: refusing afterwards would leave a
|
|
100
|
+
# .bak sidecar behind for a file this run never touches.
|
|
101
|
+
raw = args.path.read_bytes() if kind == "text" else None
|
|
102
|
+
if raw is not None:
|
|
103
|
+
guard_binary(
|
|
104
|
+
raw,
|
|
105
|
+
str(args.path),
|
|
106
|
+
allow_binary=args.force_text,
|
|
107
|
+
advice=ROUTER_ADVICE,
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
bak = None
|
|
111
|
+
if args.in_place:
|
|
112
|
+
bak, created = backup_path(args.path)
|
|
113
|
+
if not created:
|
|
114
|
+
# PARCHE Theus (ver PARCHES.md, parche 4).
|
|
115
|
+
# Keeping the pristine .bak is right (#172), but stopping there is
|
|
116
|
+
# not: `src = bak` below would clean THAT file and rename it over
|
|
117
|
+
# the original, silently substituting its contents — and the
|
|
118
|
+
# bytes we are about to lose would be backed up nowhere. Take a
|
|
119
|
+
# free name instead: the pristine .bak survives untouched and the
|
|
120
|
+
# current contents get their own copy (.bak.2, .bak.3…).
|
|
121
|
+
eprint(f"backup {bak} already exists from an earlier run; keeping it")
|
|
122
|
+
bak, created = backup_path(args.path, unique=True)
|
|
123
|
+
if not created:
|
|
124
|
+
eprint(f"cannot back up {args.path}: too many backups beside it")
|
|
125
|
+
return 2
|
|
126
|
+
eprint(f"backed up the current contents to {bak} instead")
|
|
127
|
+
dest = args.path
|
|
128
|
+
src = bak
|
|
129
|
+
else:
|
|
130
|
+
src = args.path
|
|
131
|
+
dest = args.output or cleaned_path(args.path)
|
|
132
|
+
|
|
133
|
+
def finalize(result: dict) -> dict:
|
|
134
|
+
"""Stamp the in-place truth onto a result dict before it is printed.
|
|
135
|
+
|
|
136
|
+
Two corrections. ``input``: in-place cleans FROM the backup copy, so
|
|
137
|
+
the sub-cleaners echo the sidecar's path; the caller asked about the
|
|
138
|
+
original. ``backup``: consumers cannot guess it — with a pre-existing
|
|
139
|
+
``.bak`` the real one is ``.bak.2`` — so state it rather than let them
|
|
140
|
+
assume ``<path>.bak`` and promise a backup that isn't there.
|
|
141
|
+
"""
|
|
142
|
+
if bak is not None:
|
|
143
|
+
result["input"] = str(args.path)
|
|
144
|
+
result["backup"] = str(bak)
|
|
145
|
+
return result
|
|
146
|
+
|
|
147
|
+
if kind == "text":
|
|
148
|
+
text = raw.decode("utf-8", errors="surrogateescape")
|
|
149
|
+
cleaned, stats = clean_text(
|
|
150
|
+
text,
|
|
151
|
+
nfkc=args.nfkc,
|
|
152
|
+
aggressive_homoglyphs=args.aggressive_homoglyphs,
|
|
153
|
+
)
|
|
154
|
+
dest.parent.mkdir(parents=True, exist_ok=True)
|
|
155
|
+
safe_write_text(dest, cleaned)
|
|
156
|
+
result = finalize({
|
|
157
|
+
"kind": "text",
|
|
158
|
+
"input": str(args.path),
|
|
159
|
+
"output": str(dest),
|
|
160
|
+
"stats": stats,
|
|
161
|
+
})
|
|
162
|
+
if args.json:
|
|
163
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
164
|
+
else:
|
|
165
|
+
eprint(
|
|
166
|
+
f"wrote {dest} removed={stats['removed_count']} replaced={stats['replaced_count']}"
|
|
167
|
+
)
|
|
168
|
+
return 0
|
|
169
|
+
|
|
170
|
+
if kind == "image":
|
|
171
|
+
try:
|
|
172
|
+
result = clean_image(
|
|
173
|
+
src,
|
|
174
|
+
dest,
|
|
175
|
+
strip_all_metadata=not args.keep_non_ai_metadata,
|
|
176
|
+
)
|
|
177
|
+
except Exception as e:
|
|
178
|
+
eprint(f"error: {e}")
|
|
179
|
+
return 1
|
|
180
|
+
result = finalize({"kind": "image", **result})
|
|
181
|
+
residual = result["still_has_c2pa"] or result["still_has_ai_metadata"]
|
|
182
|
+
if args.json:
|
|
183
|
+
print(json.dumps(result, indent=2))
|
|
184
|
+
else:
|
|
185
|
+
eprint(f"wrote {result['output']} ({result['bytes_in']} -> {result['bytes_out']})")
|
|
186
|
+
for a in result["actions"]:
|
|
187
|
+
eprint(f" - {a}")
|
|
188
|
+
if residual:
|
|
189
|
+
eprint("warning: residual C2PA/AI signals may remain")
|
|
190
|
+
return 1 if residual else 0
|
|
191
|
+
|
|
192
|
+
if kind == "av":
|
|
193
|
+
try:
|
|
194
|
+
result = clean_av(
|
|
195
|
+
src,
|
|
196
|
+
dest,
|
|
197
|
+
strip_all_metadata=not args.keep_non_ai_metadata,
|
|
198
|
+
)
|
|
199
|
+
except Exception as e:
|
|
200
|
+
eprint(f"error: {e}")
|
|
201
|
+
return 1
|
|
202
|
+
result = finalize({"kind": "av", **result})
|
|
203
|
+
residual = result["still_has_c2pa"] or result["still_has_ai_metadata"]
|
|
204
|
+
if args.json:
|
|
205
|
+
print(json.dumps(result, indent=2))
|
|
206
|
+
else:
|
|
207
|
+
eprint(f"wrote {result['output']} ({result['bytes_in']} -> {result['bytes_out']})")
|
|
208
|
+
for a in result["actions"]:
|
|
209
|
+
eprint(f" - {a}")
|
|
210
|
+
if residual:
|
|
211
|
+
eprint("warning: residual C2PA/AI signals may remain")
|
|
212
|
+
return 1 if residual else 0
|
|
213
|
+
|
|
214
|
+
try:
|
|
215
|
+
result = clean_container(src, dest, fmt=container_fmt, deep_images=args.deep_images)
|
|
216
|
+
except Exception as e:
|
|
217
|
+
eprint(f"error: {e}")
|
|
218
|
+
return 1
|
|
219
|
+
result = finalize({"kind": "container", **result})
|
|
220
|
+
residual = result["still_has_c2pa"] or result["still_has_ai_metadata"]
|
|
221
|
+
degraded = bool(result.get("meta", {}).get("degraded"))
|
|
222
|
+
if args.json:
|
|
223
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
224
|
+
else:
|
|
225
|
+
eprint(f"wrote {result['output']} format={result['format']}")
|
|
226
|
+
for a in result["actions"]:
|
|
227
|
+
eprint(f" - {a}")
|
|
228
|
+
if residual:
|
|
229
|
+
eprint("warning: residual C2PA/AI signals may remain")
|
|
230
|
+
for f in result.get("post_findings") or []:
|
|
231
|
+
eprint(f" ! {f}")
|
|
232
|
+
# A degraded (best-effort) PDF copy warns but is not a hard failure.
|
|
233
|
+
return 1 if (residual and not degraded) else 0
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
if __name__ == "__main__":
|
|
237
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Strip C2PA and AI-related metadata from raster images (PNG/JPEG/WebP/AVIF/HEIC/BMP/GIF/TIFF)."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import argparse
|
|
7
|
+
import json
|
|
8
|
+
import sys
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
12
|
+
|
|
13
|
+
from common import backup_path, cleaned_path, eprint
|
|
14
|
+
from image_meta import clean_image
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def main() -> int:
|
|
18
|
+
p = argparse.ArgumentParser(description=__doc__)
|
|
19
|
+
p.add_argument("path", type=Path, help="Input image (PNG/JPEG/WebP/AVIF/HEIC/BMP/GIF/TIFF)")
|
|
20
|
+
p.add_argument("-o", "--output", type=Path, help="Output path (default: *.cleaned.*)")
|
|
21
|
+
p.add_argument(
|
|
22
|
+
"--in-place",
|
|
23
|
+
action="store_true",
|
|
24
|
+
help="Overwrite input (writes .bak backup first)",
|
|
25
|
+
)
|
|
26
|
+
p.add_argument(
|
|
27
|
+
"--keep-non-ai-metadata",
|
|
28
|
+
action="store_true",
|
|
29
|
+
help="Only drop segments/chunks that look like C2PA/AI (less aggressive)",
|
|
30
|
+
)
|
|
31
|
+
p.add_argument("--json", action="store_true", help="JSON result on stdout")
|
|
32
|
+
p.add_argument(
|
|
33
|
+
"--synthid-dir",
|
|
34
|
+
type=str,
|
|
35
|
+
default=None,
|
|
36
|
+
help="reverse-SynthID checkout root for optional pixel SynthID scoring",
|
|
37
|
+
)
|
|
38
|
+
p.add_argument(
|
|
39
|
+
"--remove-pixel",
|
|
40
|
+
choices=["ctrlregen", "diffusion"],
|
|
41
|
+
default=None,
|
|
42
|
+
help="Run optional pixel-watermark removal after metadata cleaning "
|
|
43
|
+
"(ctrlregen = CtrlRegen regeneration; diffusion = MarkDiffusion "
|
|
44
|
+
"DiffusionPurification regeneration)",
|
|
45
|
+
)
|
|
46
|
+
p.add_argument(
|
|
47
|
+
"--ctrlregen-dir",
|
|
48
|
+
type=str,
|
|
49
|
+
default=None,
|
|
50
|
+
help="noai-watermark checkout root (default: $NOAI_WATERMARK_DIR)",
|
|
51
|
+
)
|
|
52
|
+
p.add_argument(
|
|
53
|
+
"--ctrlregen-strength",
|
|
54
|
+
type=float,
|
|
55
|
+
default=0.25,
|
|
56
|
+
help="CtrlRegen strength in (0, 1] (default: 0.25, conservative)",
|
|
57
|
+
)
|
|
58
|
+
p.add_argument(
|
|
59
|
+
"--ctrlregen-steps",
|
|
60
|
+
type=int,
|
|
61
|
+
default=50,
|
|
62
|
+
help="CtrlRegen diffusion steps (default: 50)",
|
|
63
|
+
)
|
|
64
|
+
p.add_argument(
|
|
65
|
+
"--ctrlregen-device",
|
|
66
|
+
type=str,
|
|
67
|
+
default=None,
|
|
68
|
+
help="CtrlRegen device: auto|cpu|cuda|mps (default: auto)",
|
|
69
|
+
)
|
|
70
|
+
p.add_argument(
|
|
71
|
+
"--ctrlregen-seed",
|
|
72
|
+
type=int,
|
|
73
|
+
default=None,
|
|
74
|
+
help="Optional CtrlRegen RNG seed",
|
|
75
|
+
)
|
|
76
|
+
p.add_argument(
|
|
77
|
+
"--ctrlregen-timeout",
|
|
78
|
+
type=int,
|
|
79
|
+
default=3600,
|
|
80
|
+
help="CtrlRegen subprocess timeout in seconds (default: 3600)",
|
|
81
|
+
)
|
|
82
|
+
p.add_argument(
|
|
83
|
+
"--markdiffusion-dir",
|
|
84
|
+
type=str,
|
|
85
|
+
default=None,
|
|
86
|
+
help="MarkDiffusion bootstrap dir (default: $MARKDIFFUSION_DIR)",
|
|
87
|
+
)
|
|
88
|
+
p.add_argument(
|
|
89
|
+
"--markdiffusion-strength",
|
|
90
|
+
type=float,
|
|
91
|
+
default=0.3,
|
|
92
|
+
help="DiffusionPurification strength in (0, 1] (default: 0.3)",
|
|
93
|
+
)
|
|
94
|
+
p.add_argument(
|
|
95
|
+
"--markdiffusion-model",
|
|
96
|
+
type=str,
|
|
97
|
+
default=None,
|
|
98
|
+
help="Stable Diffusion model for purification (default: SD 2.1 base)",
|
|
99
|
+
)
|
|
100
|
+
p.add_argument(
|
|
101
|
+
"--markdiffusion-size",
|
|
102
|
+
type=int,
|
|
103
|
+
default=512,
|
|
104
|
+
help="Purification working size in px (default: 512)",
|
|
105
|
+
)
|
|
106
|
+
p.add_argument(
|
|
107
|
+
"--markdiffusion-steps",
|
|
108
|
+
type=int,
|
|
109
|
+
default=50,
|
|
110
|
+
help="Purification diffusion steps (default: 50)",
|
|
111
|
+
)
|
|
112
|
+
p.add_argument(
|
|
113
|
+
"--markdiffusion-device",
|
|
114
|
+
type=str,
|
|
115
|
+
default=None,
|
|
116
|
+
help="Purification device: auto|cpu|cuda|mps (default: auto)",
|
|
117
|
+
)
|
|
118
|
+
p.add_argument(
|
|
119
|
+
"--markdiffusion-timeout",
|
|
120
|
+
type=int,
|
|
121
|
+
default=3600,
|
|
122
|
+
help="Purification subprocess timeout in seconds (default: 3600)",
|
|
123
|
+
)
|
|
124
|
+
args = p.parse_args()
|
|
125
|
+
|
|
126
|
+
if not args.path.is_file():
|
|
127
|
+
eprint(f"not a file: {args.path}")
|
|
128
|
+
return 2
|
|
129
|
+
|
|
130
|
+
src = args.path
|
|
131
|
+
if args.in_place:
|
|
132
|
+
# PARCHE Theus (ver PARCHES.md, parche 4).
|
|
133
|
+
# backup_path() returns (path, created). Unpacking it as a bare name
|
|
134
|
+
# bound the TUPLE to src. Same fallback as clean_file.py: a kept .bak
|
|
135
|
+
# is not a backup of what we are about to overwrite, and cleaning it
|
|
136
|
+
# into place would substitute the file's contents outright.
|
|
137
|
+
bak, created = backup_path(args.path)
|
|
138
|
+
if not created:
|
|
139
|
+
eprint(f"backup {bak} already exists from an earlier run; keeping it")
|
|
140
|
+
bak, created = backup_path(args.path, unique=True)
|
|
141
|
+
if not created:
|
|
142
|
+
eprint(f"cannot back up {args.path}: too many backups beside it")
|
|
143
|
+
return 2
|
|
144
|
+
eprint(f"backed up the current contents to {bak} instead")
|
|
145
|
+
src = bak
|
|
146
|
+
dest = args.path
|
|
147
|
+
else:
|
|
148
|
+
dest = args.output or cleaned_path(args.path)
|
|
149
|
+
|
|
150
|
+
try:
|
|
151
|
+
result = clean_image(
|
|
152
|
+
src,
|
|
153
|
+
dest,
|
|
154
|
+
strip_all_metadata=not args.keep_non_ai_metadata,
|
|
155
|
+
synthid_dir=args.synthid_dir,
|
|
156
|
+
remove_pixel=args.remove_pixel,
|
|
157
|
+
ctrlregen_dir=args.ctrlregen_dir,
|
|
158
|
+
ctrlregen_strength=args.ctrlregen_strength,
|
|
159
|
+
ctrlregen_steps=args.ctrlregen_steps,
|
|
160
|
+
ctrlregen_device=args.ctrlregen_device,
|
|
161
|
+
ctrlregen_seed=args.ctrlregen_seed,
|
|
162
|
+
ctrlregen_timeout=args.ctrlregen_timeout,
|
|
163
|
+
markdiffusion_dir=args.markdiffusion_dir,
|
|
164
|
+
markdiffusion_strength=args.markdiffusion_strength,
|
|
165
|
+
markdiffusion_model=args.markdiffusion_model,
|
|
166
|
+
markdiffusion_size=args.markdiffusion_size,
|
|
167
|
+
markdiffusion_steps=args.markdiffusion_steps,
|
|
168
|
+
markdiffusion_device=args.markdiffusion_device,
|
|
169
|
+
markdiffusion_timeout=args.markdiffusion_timeout,
|
|
170
|
+
)
|
|
171
|
+
except Exception as e:
|
|
172
|
+
eprint(f"error: {e}")
|
|
173
|
+
return 1
|
|
174
|
+
|
|
175
|
+
pr = result.get("pixel_removal")
|
|
176
|
+
residual = result["still_has_c2pa"] or result["still_has_ai_metadata"]
|
|
177
|
+
failed = residual or (pr is not None and not pr.get("available"))
|
|
178
|
+
|
|
179
|
+
if args.json:
|
|
180
|
+
print(json.dumps(result, indent=2))
|
|
181
|
+
else:
|
|
182
|
+
eprint(f"wrote {result['output']} ({result['bytes_in']} -> {result['bytes_out']})")
|
|
183
|
+
for a in result["actions"]:
|
|
184
|
+
eprint(f" - {a}")
|
|
185
|
+
if result.get("synthid_before") and result["synthid_before"].get("available"):
|
|
186
|
+
label = "yes" if result["synthid_before"].get("is_watermarked") else "no"
|
|
187
|
+
eprint(
|
|
188
|
+
"SynthID before: "
|
|
189
|
+
f"confidence {result['synthid_before'].get('confidence', 0.0):.3f} "
|
|
190
|
+
f"(watermarked: {label})"
|
|
191
|
+
)
|
|
192
|
+
if result.get("synthid_after") and result["synthid_after"].get("available"):
|
|
193
|
+
label = "yes" if result["synthid_after"].get("is_watermarked") else "no"
|
|
194
|
+
eprint(
|
|
195
|
+
"SynthID after: "
|
|
196
|
+
f"confidence {result['synthid_after'].get('confidence', 0.0):.3f} "
|
|
197
|
+
f"(watermarked: {label})"
|
|
198
|
+
)
|
|
199
|
+
if pr is not None:
|
|
200
|
+
if pr.get("available"):
|
|
201
|
+
engine = (
|
|
202
|
+
"CtrlRegen" if args.remove_pixel == "ctrlregen" else "DiffusionPurification"
|
|
203
|
+
)
|
|
204
|
+
eprint(f"{engine}: removed on {pr.get('device', 'unknown device')}")
|
|
205
|
+
else:
|
|
206
|
+
engine = (
|
|
207
|
+
"CtrlRegen" if args.remove_pixel == "ctrlregen" else "DiffusionPurification"
|
|
208
|
+
)
|
|
209
|
+
eprint(f"{engine}: unavailable: {pr.get('error', 'unknown error')}")
|
|
210
|
+
if residual:
|
|
211
|
+
eprint("warning: residual C2PA/AI signals may remain")
|
|
212
|
+
for f in result.get("post_findings") or []:
|
|
213
|
+
eprint(f" ! {f}")
|
|
214
|
+
return 1 if failed else 0
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
if __name__ == "__main__":
|
|
218
|
+
raise SystemExit(main())
|