theus-cli-linux-arm64 1.2.1 → 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.
Files changed (772) hide show
  1. package/README.md +15 -0
  2. package/RELEASE.json +6 -6
  3. package/bin/theus +0 -0
  4. package/package.json +1 -1
  5. package/vendor/chrome-extension/README.md +142 -0
  6. package/vendor/chrome-extension/background.js +540 -0
  7. package/vendor/chrome-extension/cdp-core.js +400 -0
  8. package/vendor/chrome-extension/cdp-core.test.ts +321 -0
  9. package/vendor/chrome-extension/cdp.js +672 -0
  10. package/vendor/chrome-extension/icons/icon128.png +0 -0
  11. package/vendor/chrome-extension/icons/icon16.png +0 -0
  12. package/vendor/chrome-extension/icons/icon32.png +0 -0
  13. package/vendor/chrome-extension/icons/icon48.png +0 -0
  14. package/vendor/chrome-extension/manifest.json +36 -0
  15. package/vendor/chrome-extension/popup.html +78 -0
  16. package/vendor/chrome-extension/popup.js +47 -0
  17. package/vendor/chrome-extension/recorder.js +316 -0
  18. package/vendor/higiene-motor/PARCHES.md +244 -0
  19. package/vendor/higiene-motor/audit_dir.py +166 -0
  20. package/vendor/higiene-motor/audit_lib.py +333 -0
  21. package/vendor/higiene-motor/audit_website.py +635 -0
  22. package/vendor/higiene-motor/av_meta.py +498 -0
  23. package/vendor/higiene-motor/check_staged.py +71 -0
  24. package/vendor/higiene-motor/clean_ctrlregen.py +212 -0
  25. package/vendor/higiene-motor/clean_file.py +237 -0
  26. package/vendor/higiene-motor/clean_image.py +218 -0
  27. package/vendor/higiene-motor/clean_staged.py +143 -0
  28. package/vendor/higiene-motor/clean_text.py +108 -0
  29. package/vendor/higiene-motor/common.py +486 -0
  30. package/vendor/higiene-motor/container_meta.py +2522 -0
  31. package/vendor/higiene-motor/detect_gumbel.py +308 -0
  32. package/vendor/higiene-motor/detect_text_watermark.py +613 -0
  33. package/vendor/higiene-motor/format_dispatch.py +157 -0
  34. package/vendor/higiene-motor/hook_written_file.py +253 -0
  35. package/vendor/higiene-motor/image_meta.py +2171 -0
  36. package/vendor/higiene-motor/inspect_file.py +138 -0
  37. package/vendor/higiene-motor/inspect_image.py +72 -0
  38. package/vendor/higiene-motor/inspect_text.py +86 -0
  39. package/vendor/higiene-motor/markdiffusion_harness.py +533 -0
  40. package/vendor/higiene-motor/rewrite_text.py +737 -0
  41. package/vendor/higiene-motor/score_stylometry.py +460 -0
  42. package/vendor/higiene-motor/score_synthid.py +165 -0
  43. package/vendor/higiene-motor/server.py +1059 -0
  44. package/vendor/higiene-motor/synthid_score_server.py +176 -0
  45. package/vendor/higiene-motor/text_detectors.py +433 -0
  46. package/vendor/higiene-motor/text_unicode.py +730 -0
  47. package/vendor/theus-arsenal/.arsenal-nombres-ola2.json +0 -6
  48. package/vendor/theus-arsenal/.arsenal-nombres-ola3.json +0 -72
  49. package/vendor/theus-arsenal/.mailmap +0 -2
  50. package/vendor/theus-arsenal/.theus-plugin/marketplace.json +0 -25
  51. package/vendor/theus-arsenal/.theus-plugin/plugin.json +0 -20
  52. package/vendor/theus-arsenal/AUTHORS.md +0 -8
  53. package/vendor/theus-arsenal/CLEANROOM_REPLACEMENT_PLAN.md +0 -11
  54. package/vendor/theus-arsenal/LICENSE +0 -26
  55. package/vendor/theus-arsenal/PROVENANCE.md +0 -9
  56. package/vendor/theus-arsenal/README.md +0 -41
  57. package/vendor/theus-arsenal/THIRD_PARTY.md +0 -80
  58. package/vendor/theus-arsenal/agents/actualizador-docs.md +0 -123
  59. package/vendor/theus-arsenal/agents/analista-comentarios.md +0 -53
  60. package/vendor/theus-arsenal/agents/analista-conversaciones.md +0 -60
  61. package/vendor/theus-arsenal/agents/analista-tests-pr.md +0 -53
  62. package/vendor/theus-arsenal/agents/analista-tipos.md +0 -49
  63. package/vendor/theus-arsenal/agents/arquitecto-accesibilidad.md +0 -148
  64. package/vendor/theus-arsenal/agents/arquitecto-codigo.md +0 -79
  65. package/vendor/theus-arsenal/agents/arquitecto-homelab.md +0 -90
  66. package/vendor/theus-arsenal/agents/arquitecto-redes.md +0 -116
  67. package/vendor/theus-arsenal/agents/arquitecto-sistemas.md +0 -219
  68. package/vendor/theus-arsenal/agents/bifurcador-opensource.md +0 -206
  69. package/vendor/theus-arsenal/agents/cazador-fallos-silenciosos.md +0 -58
  70. package/vendor/theus-arsenal/agents/consultor-documentacion.md +0 -76
  71. package/vendor/theus-arsenal/agents/diagnosticador-redes.md +0 -135
  72. package/vendor/theus-arsenal/agents/ejecutor-e2e.md +0 -96
  73. package/vendor/theus-arsenal/agents/empaquetador-opensource.md +0 -257
  74. package/vendor/theus-arsenal/agents/escaner-secretos.md +0 -196
  75. package/vendor/theus-arsenal/agents/especialista-seo.md +0 -70
  76. package/vendor/theus-arsenal/agents/estratega-marketing.md +0 -158
  77. package/vendor/theus-arsenal/agents/evaluador-agentes.md +0 -214
  78. package/vendor/theus-arsenal/agents/evaluador-harness.md +0 -217
  79. package/vendor/theus-arsenal/agents/explorador-codigo.md +0 -79
  80. package/vendor/theus-arsenal/agents/extractor-specs.md +0 -214
  81. package/vendor/theus-arsenal/agents/generador-harness.md +0 -139
  82. package/vendor/theus-arsenal/agents/guia-tdd.md +0 -99
  83. package/vendor/theus-arsenal/agents/jefe-de-gabinete.md +0 -162
  84. package/vendor/theus-arsenal/agents/limpiador-refactors.md +0 -93
  85. package/vendor/theus-arsenal/agents/optimizador-rendimiento.md +0 -454
  86. package/vendor/theus-arsenal/agents/planificador-harness.md +0 -107
  87. package/vendor/theus-arsenal/agents/planificador.md +0 -221
  88. package/vendor/theus-arsenal/agents/resolutor-apps-harmonyos.md +0 -181
  89. package/vendor/theus-arsenal/agents/resolutor-builds-cpp.md +0 -98
  90. package/vendor/theus-arsenal/agents/resolutor-builds-dart.md +0 -209
  91. package/vendor/theus-arsenal/agents/resolutor-builds-django.md +0 -253
  92. package/vendor/theus-arsenal/agents/resolutor-builds-go.md +0 -102
  93. package/vendor/theus-arsenal/agents/resolutor-builds-java.md +0 -274
  94. package/vendor/theus-arsenal/agents/resolutor-builds-kotlin.md +0 -128
  95. package/vendor/theus-arsenal/agents/resolutor-builds-pytorch.md +0 -128
  96. package/vendor/theus-arsenal/agents/resolutor-builds-react.md +0 -214
  97. package/vendor/theus-arsenal/agents/resolutor-builds-rust.md +0 -156
  98. package/vendor/theus-arsenal/agents/resolutor-builds-swift.md +0 -169
  99. package/vendor/theus-arsenal/agents/resolutor-builds.md +0 -122
  100. package/vendor/theus-arsenal/agents/revisor-bd.md +0 -97
  101. package/vendor/theus-arsenal/agents/revisor-codigo.md +0 -291
  102. package/vendor/theus-arsenal/agents/revisor-config-red.md +0 -116
  103. package/vendor/theus-arsenal/agents/revisor-cpp.md +0 -80
  104. package/vendor/theus-arsenal/agents/revisor-csharp.md +0 -109
  105. package/vendor/theus-arsenal/agents/revisor-django.md +0 -168
  106. package/vendor/theus-arsenal/agents/revisor-fastapi.md +0 -82
  107. package/vendor/theus-arsenal/agents/revisor-flutter.md +0 -251
  108. package/vendor/theus-arsenal/agents/revisor-go.md +0 -84
  109. package/vendor/theus-arsenal/agents/revisor-java.md +0 -192
  110. package/vendor/theus-arsenal/agents/revisor-kotlin.md +0 -171
  111. package/vendor/theus-arsenal/agents/revisor-ml.md +0 -159
  112. package/vendor/theus-arsenal/agents/revisor-php.md +0 -108
  113. package/vendor/theus-arsenal/agents/revisor-python.md +0 -106
  114. package/vendor/theus-arsenal/agents/revisor-react.md +0 -166
  115. package/vendor/theus-arsenal/agents/revisor-rust.md +0 -102
  116. package/vendor/theus-arsenal/agents/revisor-seguridad.md +0 -116
  117. package/vendor/theus-arsenal/agents/revisor-software-clinico.md +0 -95
  118. package/vendor/theus-arsenal/agents/revisor-swift.md +0 -115
  119. package/vendor/theus-arsenal/agents/revisor-typescript.md +0 -123
  120. package/vendor/theus-arsenal/agents/revisor-vue.md +0 -205
  121. package/vendor/theus-arsenal/agents/simplificador-codigo.md +0 -55
  122. package/vendor/theus-arsenal/commands/actualizar-docs.md +0 -88
  123. package/vendor/theus-arsenal/commands/actualizar-mapas-codigo.md +0 -78
  124. package/vendor/theus-arsenal/commands/aprender-evaluar.md +0 -109
  125. package/vendor/theus-arsenal/commands/aprender.md +0 -74
  126. package/vendor/theus-arsenal/commands/arreglar-build.md +0 -66
  127. package/vendor/theus-arsenal/commands/bucle-multiperspectiva.md +0 -153
  128. package/vendor/theus-arsenal/commands/build-cpp.md +0 -173
  129. package/vendor/theus-arsenal/commands/build-flutter.md +0 -164
  130. package/vendor/theus-arsenal/commands/build-go.md +0 -183
  131. package/vendor/theus-arsenal/commands/build-gradle.md +0 -75
  132. package/vendor/theus-arsenal/commands/build-kotlin.md +0 -176
  133. package/vendor/theus-arsenal/commands/build-react.md +0 -187
  134. package/vendor/theus-arsenal/commands/build-rust.md +0 -187
  135. package/vendor/theus-arsenal/commands/campana-marketing.md +0 -125
  136. package/vendor/theus-arsenal/commands/checkpoint.md +0 -78
  137. package/vendor/theus-arsenal/commands/cobertura-tests.md +0 -73
  138. package/vendor/theus-arsenal/commands/configurar-gestor-paquetes.md +0 -86
  139. package/vendor/theus-arsenal/commands/consulta.md +0 -164
  140. package/vendor/theus-arsenal/commands/control-calidad.md +0 -50
  141. package/vendor/theus-arsenal/commands/crear-skill.md +0 -77
  142. package/vendor/theus-arsenal/commands/enrutar-modelo.md +0 -30
  143. package/vendor/theus-arsenal/commands/epica-desbloquear.md +0 -17
  144. package/vendor/theus-arsenal/commands/epica-descomponer.md +0 -22
  145. package/vendor/theus-arsenal/commands/epica-publicar.md +0 -21
  146. package/vendor/theus-arsenal/commands/epica-reclamar.md +0 -25
  147. package/vendor/theus-arsenal/commands/epica-revisar.md +0 -22
  148. package/vendor/theus-arsenal/commands/epica-sincronizar.md +0 -21
  149. package/vendor/theus-arsenal/commands/epica-validar.md +0 -21
  150. package/vendor/theus-arsenal/commands/evolucionar.md +0 -176
  151. package/vendor/theus-arsenal/commands/funcionalidad.md +0 -49
  152. package/vendor/theus-arsenal/commands/guardar-sesion.md +0 -278
  153. package/vendor/theus-arsenal/commands/harness-build.md +0 -111
  154. package/vendor/theus-arsenal/commands/harness-diseno.md +0 -46
  155. package/vendor/theus-arsenal/commands/informe-costos.md +0 -90
  156. package/vendor/theus-arsenal/commands/iniciar-bucle.md +0 -36
  157. package/vendor/theus-arsenal/commands/instintos-estado.md +0 -53
  158. package/vendor/theus-arsenal/commands/instintos-exportar.md +0 -69
  159. package/vendor/theus-arsenal/commands/instintos-importar.md +0 -120
  160. package/vendor/theus-arsenal/commands/lienzo-planes.md +0 -48
  161. package/vendor/theus-arsenal/commands/limpiar-refactor.md +0 -84
  162. package/vendor/theus-arsenal/commands/modo-seguro.md +0 -96
  163. package/vendor/theus-arsenal/commands/orq-agregar-funcionalidad.md +0 -36
  164. package/vendor/theus-arsenal/commands/orq-cambiar-funcionalidad.md +0 -38
  165. package/vendor/theus-arsenal/commands/orq-construir-mvp.md +0 -36
  166. package/vendor/theus-arsenal/commands/orq-corregir-defecto.md +0 -40
  167. package/vendor/theus-arsenal/commands/orq-refinar-codigo.md +0 -44
  168. package/vendor/theus-arsenal/commands/orq-revisar.md +0 -135
  169. package/vendor/theus-arsenal/commands/plan-prd.md +0 -160
  170. package/vendor/theus-arsenal/commands/plan.md +0 -198
  171. package/vendor/theus-arsenal/commands/podar.md +0 -31
  172. package/vendor/theus-arsenal/commands/pr.md +0 -181
  173. package/vendor/theus-arsenal/commands/promover.md +0 -41
  174. package/vendor/theus-arsenal/commands/proyectos.md +0 -33
  175. package/vendor/theus-arsenal/commands/prp-commit.md +0 -112
  176. package/vendor/theus-arsenal/commands/prp-implementar.md +0 -385
  177. package/vendor/theus-arsenal/commands/prp-planificar.md +0 -501
  178. package/vendor/theus-arsenal/commands/reanudar-sesion.md +0 -160
  179. package/vendor/theus-arsenal/commands/revisar-codigo.md +0 -289
  180. package/vendor/theus-arsenal/commands/revisar-cpp.md +0 -132
  181. package/vendor/theus-arsenal/commands/revisar-fastapi.md +0 -39
  182. package/vendor/theus-arsenal/commands/revisar-flutter.md +0 -115
  183. package/vendor/theus-arsenal/commands/revisar-go.md +0 -148
  184. package/vendor/theus-arsenal/commands/revisar-kotlin.md +0 -140
  185. package/vendor/theus-arsenal/commands/revisar-pr.md +0 -37
  186. package/vendor/theus-arsenal/commands/revisar-python.md +0 -297
  187. package/vendor/theus-arsenal/commands/revisar-react.md +0 -170
  188. package/vendor/theus-arsenal/commands/revisar-rust.md +0 -142
  189. package/vendor/theus-arsenal/commands/revisar-vue.md +0 -174
  190. package/vendor/theus-arsenal/commands/salud-skills.md +0 -52
  191. package/vendor/theus-arsenal/commands/sesiones.md +0 -345
  192. package/vendor/theus-arsenal/commands/test-cpp.md +0 -252
  193. package/vendor/theus-arsenal/commands/test-flutter.md +0 -143
  194. package/vendor/theus-arsenal/commands/test-go.md +0 -268
  195. package/vendor/theus-arsenal/commands/test-kotlin.md +0 -312
  196. package/vendor/theus-arsenal/commands/test-react.md +0 -265
  197. package/vendor/theus-arsenal/commands/test-rust.md +0 -309
  198. package/vendor/theus-arsenal/commands/vigilancia-canary.md +0 -43
  199. package/vendor/theus-arsenal/hooks/hooks.json +0 -274
  200. package/vendor/theus-arsenal/package.json +0 -6
  201. package/vendor/theus-arsenal/rules/angular/coding-style.md +0 -182
  202. package/vendor/theus-arsenal/rules/angular/hooks.md +0 -25
  203. package/vendor/theus-arsenal/rules/angular/patterns.md +0 -249
  204. package/vendor/theus-arsenal/rules/angular/security.md +0 -87
  205. package/vendor/theus-arsenal/rules/angular/testing.md +0 -164
  206. package/vendor/theus-arsenal/rules/arkts/coding-style.md +0 -153
  207. package/vendor/theus-arsenal/rules/arkts/hooks.md +0 -80
  208. package/vendor/theus-arsenal/rules/arkts/patterns.md +0 -236
  209. package/vendor/theus-arsenal/rules/arkts/security.md +0 -141
  210. package/vendor/theus-arsenal/rules/arkts/testing.md +0 -126
  211. package/vendor/theus-arsenal/rules/common/agents.md +0 -49
  212. package/vendor/theus-arsenal/rules/common/code-review.md +0 -123
  213. package/vendor/theus-arsenal/rules/common/coding-style.md +0 -90
  214. package/vendor/theus-arsenal/rules/common/development-workflow.md +0 -44
  215. package/vendor/theus-arsenal/rules/common/git-workflow.md +0 -24
  216. package/vendor/theus-arsenal/rules/common/hooks.md +0 -32
  217. package/vendor/theus-arsenal/rules/common/patterns.md +0 -31
  218. package/vendor/theus-arsenal/rules/common/performance.md +0 -53
  219. package/vendor/theus-arsenal/rules/common/security.md +0 -29
  220. package/vendor/theus-arsenal/rules/common/testing.md +0 -57
  221. package/vendor/theus-arsenal/rules/cpp/coding-style.md +0 -44
  222. package/vendor/theus-arsenal/rules/cpp/hooks.md +0 -39
  223. package/vendor/theus-arsenal/rules/cpp/patterns.md +0 -51
  224. package/vendor/theus-arsenal/rules/cpp/security.md +0 -51
  225. package/vendor/theus-arsenal/rules/cpp/testing.md +0 -44
  226. package/vendor/theus-arsenal/rules/csharp/coding-style.md +0 -72
  227. package/vendor/theus-arsenal/rules/csharp/hooks.md +0 -25
  228. package/vendor/theus-arsenal/rules/csharp/patterns.md +0 -50
  229. package/vendor/theus-arsenal/rules/csharp/security.md +0 -58
  230. package/vendor/theus-arsenal/rules/csharp/testing.md +0 -50
  231. package/vendor/theus-arsenal/rules/dart/coding-style.md +0 -159
  232. package/vendor/theus-arsenal/rules/dart/hooks.md +0 -68
  233. package/vendor/theus-arsenal/rules/dart/patterns.md +0 -261
  234. package/vendor/theus-arsenal/rules/dart/security.md +0 -135
  235. package/vendor/theus-arsenal/rules/dart/testing.md +0 -215
  236. package/vendor/theus-arsenal/rules/fsharp/coding-style.md +0 -112
  237. package/vendor/theus-arsenal/rules/fsharp/hooks.md +0 -26
  238. package/vendor/theus-arsenal/rules/fsharp/patterns.md +0 -111
  239. package/vendor/theus-arsenal/rules/fsharp/security.md +0 -76
  240. package/vendor/theus-arsenal/rules/fsharp/testing.md +0 -62
  241. package/vendor/theus-arsenal/rules/golang/coding-style.md +0 -32
  242. package/vendor/theus-arsenal/rules/golang/hooks.md +0 -17
  243. package/vendor/theus-arsenal/rules/golang/patterns.md +0 -45
  244. package/vendor/theus-arsenal/rules/golang/security.md +0 -34
  245. package/vendor/theus-arsenal/rules/golang/testing.md +0 -31
  246. package/vendor/theus-arsenal/rules/java/coding-style.md +0 -114
  247. package/vendor/theus-arsenal/rules/java/hooks.md +0 -18
  248. package/vendor/theus-arsenal/rules/java/patterns.md +0 -147
  249. package/vendor/theus-arsenal/rules/java/security.md +0 -101
  250. package/vendor/theus-arsenal/rules/java/testing.md +0 -133
  251. package/vendor/theus-arsenal/rules/kotlin/coding-style.md +0 -86
  252. package/vendor/theus-arsenal/rules/kotlin/hooks.md +0 -17
  253. package/vendor/theus-arsenal/rules/kotlin/patterns.md +0 -146
  254. package/vendor/theus-arsenal/rules/kotlin/security.md +0 -82
  255. package/vendor/theus-arsenal/rules/kotlin/testing.md +0 -128
  256. package/vendor/theus-arsenal/rules/nuxt/coding-style.md +0 -47
  257. package/vendor/theus-arsenal/rules/nuxt/hooks.md +0 -39
  258. package/vendor/theus-arsenal/rules/nuxt/patterns.md +0 -54
  259. package/vendor/theus-arsenal/rules/nuxt/security.md +0 -48
  260. package/vendor/theus-arsenal/rules/nuxt/testing.md +0 -49
  261. package/vendor/theus-arsenal/rules/php/coding-style.md +0 -40
  262. package/vendor/theus-arsenal/rules/php/hooks.md +0 -24
  263. package/vendor/theus-arsenal/rules/php/patterns.md +0 -33
  264. package/vendor/theus-arsenal/rules/php/security.md +0 -37
  265. package/vendor/theus-arsenal/rules/php/testing.md +0 -38
  266. package/vendor/theus-arsenal/rules/python/coding-style.md +0 -42
  267. package/vendor/theus-arsenal/rules/python/fastapi.md +0 -58
  268. package/vendor/theus-arsenal/rules/python/hooks.md +0 -19
  269. package/vendor/theus-arsenal/rules/python/patterns.md +0 -39
  270. package/vendor/theus-arsenal/rules/python/security.md +0 -30
  271. package/vendor/theus-arsenal/rules/python/testing.md +0 -38
  272. package/vendor/theus-arsenal/rules/react/coding-style.md +0 -109
  273. package/vendor/theus-arsenal/rules/react/hooks.md +0 -187
  274. package/vendor/theus-arsenal/rules/react/patterns.md +0 -194
  275. package/vendor/theus-arsenal/rules/react/security.md +0 -180
  276. package/vendor/theus-arsenal/rules/react/testing.md +0 -208
  277. package/vendor/theus-arsenal/rules/react-native/accessibility.md +0 -55
  278. package/vendor/theus-arsenal/rules/react-native/coding-style.md +0 -71
  279. package/vendor/theus-arsenal/rules/react-native/hooks.md +0 -28
  280. package/vendor/theus-arsenal/rules/react-native/patterns.md +0 -88
  281. package/vendor/theus-arsenal/rules/react-native/performance.md +0 -45
  282. package/vendor/theus-arsenal/rules/react-native/production-readiness.md +0 -51
  283. package/vendor/theus-arsenal/rules/react-native/security.md +0 -43
  284. package/vendor/theus-arsenal/rules/react-native/testing.md +0 -52
  285. package/vendor/theus-arsenal/rules/ruby/coding-style.md +0 -46
  286. package/vendor/theus-arsenal/rules/ruby/hooks.md +0 -37
  287. package/vendor/theus-arsenal/rules/ruby/patterns.md +0 -44
  288. package/vendor/theus-arsenal/rules/ruby/security.md +0 -51
  289. package/vendor/theus-arsenal/rules/ruby/testing.md +0 -51
  290. package/vendor/theus-arsenal/rules/rust/coding-style.md +0 -151
  291. package/vendor/theus-arsenal/rules/rust/hooks.md +0 -16
  292. package/vendor/theus-arsenal/rules/rust/patterns.md +0 -168
  293. package/vendor/theus-arsenal/rules/rust/security.md +0 -141
  294. package/vendor/theus-arsenal/rules/rust/testing.md +0 -154
  295. package/vendor/theus-arsenal/rules/swift/coding-style.md +0 -47
  296. package/vendor/theus-arsenal/rules/swift/hooks.md +0 -20
  297. package/vendor/theus-arsenal/rules/swift/patterns.md +0 -66
  298. package/vendor/theus-arsenal/rules/swift/security.md +0 -33
  299. package/vendor/theus-arsenal/rules/swift/testing.md +0 -45
  300. package/vendor/theus-arsenal/rules/typescript/coding-style.md +0 -199
  301. package/vendor/theus-arsenal/rules/typescript/hooks.md +0 -22
  302. package/vendor/theus-arsenal/rules/typescript/patterns.md +0 -52
  303. package/vendor/theus-arsenal/rules/typescript/security.md +0 -28
  304. package/vendor/theus-arsenal/rules/typescript/testing.md +0 -18
  305. package/vendor/theus-arsenal/rules/vue/coding-style.md +0 -54
  306. package/vendor/theus-arsenal/rules/vue/hooks.md +0 -45
  307. package/vendor/theus-arsenal/rules/vue/patterns.md +0 -56
  308. package/vendor/theus-arsenal/rules/vue/security.md +0 -46
  309. package/vendor/theus-arsenal/rules/vue/testing.md +0 -53
  310. package/vendor/theus-arsenal/rules/web/coding-style.md +0 -108
  311. package/vendor/theus-arsenal/rules/web/design-quality.md +0 -75
  312. package/vendor/theus-arsenal/rules/web/hooks.md +0 -141
  313. package/vendor/theus-arsenal/rules/web/patterns.md +0 -91
  314. package/vendor/theus-arsenal/rules/web/performance.md +0 -76
  315. package/vendor/theus-arsenal/rules/web/security.md +0 -69
  316. package/vendor/theus-arsenal/rules/web/testing.md +0 -67
  317. package/vendor/theus-arsenal/scripts/hooks/bash-hook-dispatcher.js +0 -192
  318. package/vendor/theus-arsenal/scripts/hooks/block-no-verify.js +0 -556
  319. package/vendor/theus-arsenal/scripts/hooks/check-console-log.js +0 -92
  320. package/vendor/theus-arsenal/scripts/hooks/check-hook-enabled.js +0 -16
  321. package/vendor/theus-arsenal/scripts/hooks/config-protection.js +0 -171
  322. package/vendor/theus-arsenal/scripts/hooks/design-quality-check.js +0 -132
  323. package/vendor/theus-arsenal/scripts/hooks/doc-file-warning.js +0 -110
  324. package/vendor/theus-arsenal/scripts/hooks/modo-seguro.js +0 -158
  325. package/vendor/theus-arsenal/scripts/hooks/notificacion-escritorio.js +0 -208
  326. package/vendor/theus-arsenal/scripts/hooks/plugin-hook-bootstrap.js +0 -280
  327. package/vendor/theus-arsenal/scripts/hooks/post-bash-command-log.js +0 -87
  328. package/vendor/theus-arsenal/scripts/hooks/post-bash-dispatcher.js +0 -24
  329. package/vendor/theus-arsenal/scripts/hooks/post-bash-pr-created.js +0 -60
  330. package/vendor/theus-arsenal/scripts/hooks/post-edit-accumulator.js +0 -94
  331. package/vendor/theus-arsenal/scripts/hooks/post-edit-console-warn.js +0 -54
  332. package/vendor/theus-arsenal/scripts/hooks/post-edit-format.js +0 -110
  333. package/vendor/theus-arsenal/scripts/hooks/post-edit-typecheck.js +0 -98
  334. package/vendor/theus-arsenal/scripts/hooks/pre-bash-commit-quality.js +0 -447
  335. package/vendor/theus-arsenal/scripts/hooks/pre-bash-dev-server-block.js +0 -232
  336. package/vendor/theus-arsenal/scripts/hooks/pre-bash-dispatcher.js +0 -27
  337. package/vendor/theus-arsenal/scripts/hooks/pre-compact.js +0 -101
  338. package/vendor/theus-arsenal/scripts/hooks/pretooluse-visible-output.js +0 -49
  339. package/vendor/theus-arsenal/scripts/hooks/quality-gate.js +0 -168
  340. package/vendor/theus-arsenal/scripts/hooks/run-with-flags.js +0 -271
  341. package/vendor/theus-arsenal/scripts/hooks/salud-mcp.js +0 -749
  342. package/vendor/theus-arsenal/scripts/hooks/seguimiento-costos.js +0 -161
  343. package/vendor/theus-arsenal/scripts/hooks/session-end.js +0 -340
  344. package/vendor/theus-arsenal/scripts/hooks/session-start.js +0 -906
  345. package/vendor/theus-arsenal/scripts/hooks/stop-format-typecheck.js +0 -263
  346. package/vendor/theus-arsenal/scripts/hooks/suggest-compact.js +0 -286
  347. package/vendor/theus-arsenal/scripts/hooks/theus-context-monitor.js +0 -289
  348. package/vendor/theus-arsenal/scripts/hooks/verificacion-factual.js +0 -1278
  349. package/vendor/theus-arsenal/scripts/lib/agent-data-home.js +0 -96
  350. package/vendor/theus-arsenal/scripts/lib/cost-estimate.js +0 -66
  351. package/vendor/theus-arsenal/scripts/lib/hook-flags.js +0 -79
  352. package/vendor/theus-arsenal/scripts/lib/llm-summary.js +0 -185
  353. package/vendor/theus-arsenal/scripts/lib/loopback-guard.js +0 -54
  354. package/vendor/theus-arsenal/scripts/lib/observer-sessions.js +0 -237
  355. package/vendor/theus-arsenal/scripts/lib/package-manager.d.ts +0 -120
  356. package/vendor/theus-arsenal/scripts/lib/package-manager.js +0 -434
  357. package/vendor/theus-arsenal/scripts/lib/path-safety.js +0 -86
  358. package/vendor/theus-arsenal/scripts/lib/plan-canvas/markdown.js +0 -285
  359. package/vendor/theus-arsenal/scripts/lib/plan-canvas/sdk.js +0 -238
  360. package/vendor/theus-arsenal/scripts/lib/plan-canvas/server.js +0 -534
  361. package/vendor/theus-arsenal/scripts/lib/plan-canvas/sessions.js +0 -274
  362. package/vendor/theus-arsenal/scripts/lib/plan-canvas/ui.js +0 -546
  363. package/vendor/theus-arsenal/scripts/lib/project-detect.js +0 -451
  364. package/vendor/theus-arsenal/scripts/lib/resolve-formatter.js +0 -193
  365. package/vendor/theus-arsenal/scripts/lib/resolve-theus-root.js +0 -101
  366. package/vendor/theus-arsenal/scripts/lib/session-aliases.d.ts +0 -138
  367. package/vendor/theus-arsenal/scripts/lib/session-aliases.js +0 -483
  368. package/vendor/theus-arsenal/scripts/lib/session-bridge.js +0 -155
  369. package/vendor/theus-arsenal/scripts/lib/session-manager.d.ts +0 -137
  370. package/vendor/theus-arsenal/scripts/lib/session-manager.js +0 -555
  371. package/vendor/theus-arsenal/scripts/lib/shell-split.js +0 -86
  372. package/vendor/theus-arsenal/scripts/lib/shell-substitution.js +0 -501
  373. package/vendor/theus-arsenal/scripts/lib/skill-evolution/dashboard.js +0 -414
  374. package/vendor/theus-arsenal/scripts/lib/skill-evolution/health.js +0 -285
  375. package/vendor/theus-arsenal/scripts/lib/skill-evolution/index.js +0 -22
  376. package/vendor/theus-arsenal/scripts/lib/skill-evolution/provenance.js +0 -200
  377. package/vendor/theus-arsenal/scripts/lib/skill-evolution/tracker.js +0 -157
  378. package/vendor/theus-arsenal/scripts/lib/skill-evolution/versioning.js +0 -246
  379. package/vendor/theus-arsenal/scripts/lib/transcript-context.js +0 -232
  380. package/vendor/theus-arsenal/scripts/lib/utils.d.ts +0 -205
  381. package/vendor/theus-arsenal/scripts/lib/utils.js +0 -658
  382. package/vendor/theus-arsenal/scripts/plan-canvas.js +0 -341
  383. package/vendor/theus-arsenal/scripts/setup-package-manager.js +0 -46
  384. package/vendor/theus-arsenal/scripts/skills-health.js +0 -143
  385. package/vendor/theus-arsenal/skills/a11y-frontend/SKILL.md +0 -444
  386. package/vendor/theus-arsenal/skills/accesibilidad/SKILL.md +0 -144
  387. package/vendor/theus-arsenal/skills/acelerador-throughput-datos/SKILL.md +0 -72
  388. package/vendor/theus-arsenal/skills/agente-scraper-datos/SKILL.md +0 -771
  389. package/vendor/theus-arsenal/skills/analisis-plataformas-competencia/SKILL.md +0 -137
  390. package/vendor/theus-arsenal/skills/api-x/SKILL.md +0 -233
  391. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/SKILL.md +0 -335
  392. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/observer-loop.sh +0 -374
  393. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/observer.md +0 -188
  394. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/session-guardian.sh +0 -153
  395. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/agents/start-observer.sh +0 -253
  396. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/config.json +0 -8
  397. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/hooks/observe.sh +0 -594
  398. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/detect-project.sh +0 -325
  399. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/instinct-cli.py +0 -1918
  400. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/lib/arsenal-dir.sh +0 -23
  401. package/vendor/theus-arsenal/skills/aprendizaje-continuo-v2/scripts/test_parse_instinct.py +0 -1420
  402. package/vendor/theus-arsenal/skills/arquitectura-hexagonal/SKILL.md +0 -275
  403. package/vendor/theus-arsenal/skills/arquitectura-limpia-android/SKILL.md +0 -340
  404. package/vendor/theus-arsenal/skills/arquitectura-pipelines-recomendacion/SKILL.md +0 -112
  405. package/vendor/theus-arsenal/skills/atlas-datos-prediccion/SKILL.md +0 -53
  406. package/vendor/theus-arsenal/skills/auditoria-arquitectura-agentes/SKILL.md +0 -257
  407. package/vendor/theus-arsenal/skills/auditoria-produccion/SKILL.md +0 -180
  408. package/vendor/theus-arsenal/skills/auditoria-rutas-clic/SKILL.md +0 -243
  409. package/vendor/theus-arsenal/skills/autoevaluacion-agente/SKILL.md +0 -180
  410. package/vendor/theus-arsenal/skills/autoevaluacion-agente/examples/high-score-example.md +0 -89
  411. package/vendor/theus-arsenal/skills/autoevaluacion-agente/examples/low-score-example.md +0 -87
  412. package/vendor/theus-arsenal/skills/autoevaluacion-agente/references/evaluation-criteria.md +0 -71
  413. package/vendor/theus-arsenal/skills/autoevaluacion-agente/references/hook-integration.md +0 -90
  414. package/vendor/theus-arsenal/skills/autoevaluacion-agente/scripts/evaluate.py +0 -409
  415. package/vendor/theus-arsenal/skills/autoevaluacion-agente/templates/evaluation-report.md +0 -86
  416. package/vendor/theus-arsenal/skills/automatizacion-ssh-netmiko/SKILL.md +0 -176
  417. package/vendor/theus-arsenal/skills/base-datos-pubmed/SKILL.md +0 -174
  418. package/vendor/theus-arsenal/skills/base-datos-uspto/SKILL.md +0 -173
  419. package/vendor/theus-arsenal/skills/benchmark/SKILL.md +0 -92
  420. package/vendor/theus-arsenal/skills/bitacora-crecimiento/SKILL.md +0 -120
  421. package/vendor/theus-arsenal/skills/bucle-verificacion/SKILL.md +0 -125
  422. package/vendor/theus-arsenal/skills/buscar-primero/SKILL.md +0 -184
  423. package/vendor/theus-arsenal/skills/busqueda-exa/SKILL.md +0 -111
  424. package/vendor/theus-arsenal/skills/cache-por-hash/SKILL.md +0 -160
  425. package/vendor/theus-arsenal/skills/campana-marketing/SKILL.md +0 -118
  426. package/vendor/theus-arsenal/skills/capacidad-producto/SKILL.md +0 -138
  427. package/vendor/theus-arsenal/skills/cazador-vulnerabilidades/SKILL.md +0 -104
  428. package/vendor/theus-arsenal/skills/compactacion-estrategica/SKILL.md +0 -115
  429. package/vendor/theus-arsenal/skills/comparador-baskets-prediccion/SKILL.md +0 -69
  430. package/vendor/theus-arsenal/skills/compras-energia/SKILL.md +0 -206
  431. package/vendor/theus-arsenal/skills/concurrencia-swift-6-2/SKILL.md +0 -224
  432. package/vendor/theus-arsenal/skills/consejo/SKILL.md +0 -201
  433. package/vendor/theus-arsenal/skills/construccion-harness-agentes/SKILL.md +0 -78
  434. package/vendor/theus-arsenal/skills/constructor-conectores/SKILL.md +0 -119
  435. package/vendor/theus-arsenal/skills/constructor-equipos/SKILL.md +0 -169
  436. package/vendor/theus-arsenal/skills/consulta-documentacion/SKILL.md +0 -92
  437. package/vendor/theus-arsenal/skills/consultas-genomicas-gget/SKILL.md +0 -170
  438. package/vendor/theus-arsenal/skills/contacto-inversores/SKILL.md +0 -95
  439. package/vendor/theus-arsenal/skills/corrutinas-flows-kotlin/SKILL.md +0 -284
  440. package/vendor/theus-arsenal/skills/creacion-video-remotion/SKILL.md +0 -46
  441. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/3d.md +0 -86
  442. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/animations.md +0 -29
  443. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/charts-bar-chart.tsx +0 -173
  444. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/text-animations-typewriter.tsx +0 -100
  445. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets/text-animations-word-highlight.tsx +0 -108
  446. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/assets.md +0 -78
  447. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/audio.md +0 -172
  448. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/calculate-metadata.md +0 -104
  449. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/can-decode.md +0 -75
  450. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/charts.md +0 -58
  451. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/compositions.md +0 -146
  452. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/display-captions.md +0 -126
  453. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/extract-frames.md +0 -229
  454. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/fonts.md +0 -152
  455. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-audio-duration.md +0 -58
  456. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-video-dimensions.md +0 -68
  457. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/get-video-duration.md +0 -58
  458. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/gifs.md +0 -138
  459. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/images.md +0 -130
  460. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/import-srt-captions.md +0 -67
  461. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/lottie.md +0 -67
  462. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/measuring-dom-nodes.md +0 -34
  463. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/measuring-text.md +0 -143
  464. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/sequencing.md +0 -106
  465. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/tailwind.md +0 -11
  466. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/text-animations.md +0 -20
  467. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/timing.md +0 -179
  468. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/transcribe-captions.md +0 -19
  469. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/transitions.md +0 -122
  470. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/trimming.md +0 -52
  471. package/vendor/theus-arsenal/skills/creacion-video-remotion/rules/videos.md +0 -171
  472. package/vendor/theus-arsenal/skills/cumplimiento-aduanero/SKILL.md +0 -270
  473. package/vendor/theus-arsenal/skills/cumplimiento-hipaa/SKILL.md +0 -78
  474. package/vendor/theus-arsenal/skills/datos-sensibles-salud/SKILL.md +0 -149
  475. package/vendor/theus-arsenal/skills/decimales-tokens-evm/SKILL.md +0 -128
  476. package/vendor/theus-arsenal/skills/decisiones-arquitectura/SKILL.md +0 -206
  477. package/vendor/theus-arsenal/skills/demos-ui/SKILL.md +0 -469
  478. package/vendor/theus-arsenal/skills/desarrollo-por-intencion/SKILL.md +0 -369
  479. package/vendor/theus-arsenal/skills/descubrimiento-marca/SKILL.md +0 -149
  480. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/10_proposito-porque.md +0 -42
  481. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/20_posicionamiento.md +0 -47
  482. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/30_audiencia-nicho.md +0 -53
  483. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/40_personalidad-arquetipo.md +0 -61
  484. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/50_voz-tono.md +0 -62
  485. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/60_narrativa-historia.md +0 -54
  486. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/70_tension-fundador.md +0 -50
  487. package/vendor/theus-arsenal/skills/descubrimiento-marca/references/90_SINTESIS.md +0 -133
  488. package/vendor/theus-arsenal/skills/descubrimiento-plugins-laravel/SKILL.md +0 -230
  489. package/vendor/theus-arsenal/skills/destilado-reglas/SKILL.md +0 -263
  490. package/vendor/theus-arsenal/skills/destilado-reglas/scripts/scan-rules.sh +0 -58
  491. package/vendor/theus-arsenal/skills/destilado-reglas/scripts/scan-skills.sh +0 -129
  492. package/vendor/theus-arsenal/skills/diagnostico-bgp/SKILL.md +0 -170
  493. package/vendor/theus-arsenal/skills/direccion-estetica/SKILL.md +0 -220
  494. package/vendor/theus-arsenal/skills/direccion-estetica/references/taxonomia-generos.md +0 -89
  495. package/vendor/theus-arsenal/skills/diseno-api/SKILL.md +0 -522
  496. package/vendor/theus-arsenal/skills/diseno-liquid-glass/SKILL.md +0 -282
  497. package/vendor/theus-arsenal/skills/e2e-escritorio-windows/SKILL.md +0 -879
  498. package/vendor/theus-arsenal/skills/edicion-video/SKILL.md +0 -289
  499. package/vendor/theus-arsenal/skills/enfoque-producto/SKILL.md +0 -91
  500. package/vendor/theus-arsenal/skills/entornos-flox/SKILL.md +0 -493
  501. package/vendor/theus-arsenal/skills/estandares-codigo/SKILL.md +0 -548
  502. package/vendor/theus-arsenal/skills/estandares-cpp/SKILL.md +0 -727
  503. package/vendor/theus-arsenal/skills/estandares-java/SKILL.md +0 -389
  504. package/vendor/theus-arsenal/skills/estilo-legado/SKILL.md +0 -149
  505. package/vendor/theus-arsenal/skills/estructura-informes-competencia/SKILL.md +0 -95
  506. package/vendor/theus-arsenal/skills/evaluacion-academica/SKILL.md +0 -165
  507. package/vendor/theus-arsenal/skills/explorador-skills/SKILL.md +0 -129
  508. package/vendor/theus-arsenal/skills/flujo-git/SKILL.md +0 -714
  509. package/vendor/theus-arsenal/skills/flujo-ingenieria-ml/SKILL.md +0 -343
  510. package/vendor/theus-arsenal/skills/flujo-tdd/SKILL.md +0 -584
  511. package/vendor/theus-arsenal/skills/forja-personas/SKILL.md +0 -298
  512. package/vendor/theus-arsenal/skills/forja-personas/gacha.py +0 -224
  513. package/vendor/theus-arsenal/skills/forja-personas/gacha.sh +0 -5
  514. package/vendor/theus-arsenal/skills/forja-personas/references/avatar-style.md +0 -123
  515. package/vendor/theus-arsenal/skills/forja-personas/references/boundary-rules.md +0 -53
  516. package/vendor/theus-arsenal/skills/forja-personas/references/error-handling.md +0 -53
  517. package/vendor/theus-arsenal/skills/forja-personas/references/identity-tension.md +0 -48
  518. package/vendor/theus-arsenal/skills/forja-personas/references/naming-system.md +0 -39
  519. package/vendor/theus-arsenal/skills/forja-personas/references/output-template.md +0 -166
  520. package/vendor/theus-arsenal/skills/fundamentos-animacion/SKILL.md +0 -296
  521. package/vendor/theus-arsenal/skills/generacion-iconos-ios/SKILL.md +0 -156
  522. package/vendor/theus-arsenal/skills/generacion-iconos-ios/scripts/generate_icons.swift +0 -258
  523. package/vendor/theus-arsenal/skills/generacion-iconos-ios/scripts/iconify_gen.sh +0 -235
  524. package/vendor/theus-arsenal/skills/gestion-excepciones-logisticas/SKILL.md +0 -208
  525. package/vendor/theus-arsenal/skills/gestion-transportistas/SKILL.md +0 -204
  526. package/vendor/theus-arsenal/skills/guia-adopcion-ml/SKILL.md +0 -64
  527. package/vendor/theus-arsenal/skills/harness-agente-autonomo/SKILL.md +0 -252
  528. package/vendor/theus-arsenal/skills/harness-eval-clinico/SKILL.md +0 -212
  529. package/vendor/theus-arsenal/skills/harness-evaluacion/SKILL.md +0 -296
  530. package/vendor/theus-arsenal/skills/harness-generador-evaluador/SKILL.md +0 -254
  531. package/vendor/theus-arsenal/skills/homelab-diseno-red/SKILL.md +0 -120
  532. package/vendor/theus-arsenal/skills/homelab-dns-pihole/SKILL.md +0 -264
  533. package/vendor/theus-arsenal/skills/homelab-preparacion-red/SKILL.md +0 -144
  534. package/vendor/theus-arsenal/skills/homelab-segmentacion-vlan/SKILL.md +0 -307
  535. package/vendor/theus-arsenal/skills/homelab-vpn-wireguard/SKILL.md +0 -299
  536. package/vendor/theus-arsenal/skills/ingenieria-agentica/SKILL.md +0 -96
  537. package/vendor/theus-arsenal/skills/inspeccion-animaciones-blender/SKILL.md +0 -164
  538. package/vendor/theus-arsenal/skills/instaladores-python/SKILL.md +0 -820
  539. package/vendor/theus-arsenal/skills/integracion-jira/SKILL.md +0 -307
  540. package/vendor/theus-arsenal/skills/inteligencia-leads/SKILL.md +0 -312
  541. package/vendor/theus-arsenal/skills/inteligencia-leads/agents/agente-enriquecimiento.md +0 -87
  542. package/vendor/theus-arsenal/skills/inteligencia-leads/agents/mapeador-mutuos.md +0 -76
  543. package/vendor/theus-arsenal/skills/inteligencia-leads/agents/puntuador-senales.md +0 -60
  544. package/vendor/theus-arsenal/skills/inteligencia-leads/agents/redactor-outreach.md +0 -102
  545. package/vendor/theus-arsenal/skills/inteligencia-mercados-prediccion/SKILL.md +0 -53
  546. package/vendor/theus-arsenal/skills/introspeccion-agente/SKILL.md +0 -150
  547. package/vendor/theus-arsenal/skills/inventario-skills/SKILL.md +0 -194
  548. package/vendor/theus-arsenal/skills/inventario-skills/scripts/quick-diff.sh +0 -87
  549. package/vendor/theus-arsenal/skills/inventario-skills/scripts/save-results.sh +0 -57
  550. package/vendor/theus-arsenal/skills/inventario-skills/scripts/scan.sh +0 -170
  551. package/vendor/theus-arsenal/skills/investigacion-mercado/SKILL.md +0 -87
  552. package/vendor/theus-arsenal/skills/investigacion-oraculos-prediccion/SKILL.md +0 -59
  553. package/vendor/theus-arsenal/skills/investigacion-profunda/SKILL.md +0 -161
  554. package/vendor/theus-arsenal/skills/keccak256-nodejs/SKILL.md +0 -100
  555. package/vendor/theus-arsenal/skills/libro-decisiones-recursivo/SKILL.md +0 -82
  556. package/vendor/theus-arsenal/skills/lienzo-planes/SKILL.md +0 -111
  557. package/vendor/theus-arsenal/skills/limpieza-configuracion/SKILL.md +0 -116
  558. package/vendor/theus-arsenal/skills/logistica-inversa-devoluciones/SKILL.md +0 -241
  559. package/vendor/theus-arsenal/skills/manejo-errores/SKILL.md +0 -375
  560. package/vendor/theus-arsenal/skills/materiales-inversores/SKILL.md +0 -101
  561. package/vendor/theus-arsenal/skills/memoria-por-proyecto/SKILL.md +0 -170
  562. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/forget.mjs +0 -44
  563. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/info.mjs +0 -24
  564. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/init.mjs +0 -152
  565. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/list.mjs +0 -40
  566. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/migrate.mjs +0 -214
  567. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/resume.mjs +0 -36
  568. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/save.mjs +0 -210
  569. package/vendor/theus-arsenal/skills/memoria-por-proyecto/commands/shared.mjs +0 -402
  570. package/vendor/theus-arsenal/skills/memoria-por-proyecto/hooks/session-start.mjs +0 -238
  571. package/vendor/theus-arsenal/skills/metodologia-benchmarks/SKILL.md +0 -131
  572. package/vendor/theus-arsenal/skills/migraciones-bd/SKILL.md +0 -430
  573. package/vendor/theus-arsenal/skills/modelos-fundacionales-en-dispositivo/SKILL.md +0 -244
  574. package/vendor/theus-arsenal/skills/modo-seguro/SKILL.md +0 -86
  575. package/vendor/theus-arsenal/skills/motion-avanzado/SKILL.md +0 -592
  576. package/vendor/theus-arsenal/skills/motor-de-contenido/SKILL.md +0 -136
  577. package/vendor/theus-arsenal/skills/no-conformidades-calidad/SKILL.md +0 -249
  578. package/vendor/theus-arsenal/skills/onboarding-codigo/SKILL.md +0 -244
  579. package/vendor/theus-arsenal/skills/operaciones-agentes-empresariales/SKILL.md +0 -51
  580. package/vendor/theus-arsenal/skills/operaciones-conocimiento/SKILL.md +0 -159
  581. package/vendor/theus-arsenal/skills/operaciones-correo/SKILL.md +0 -123
  582. package/vendor/theus-arsenal/skills/operaciones-facturacion/SKILL.md +0 -142
  583. package/vendor/theus-arsenal/skills/operaciones-flujo-proyectos/SKILL.md +0 -110
  584. package/vendor/theus-arsenal/skills/operaciones-github/SKILL.md +0 -143
  585. package/vendor/theus-arsenal/skills/operaciones-google-workspace/SKILL.md +0 -100
  586. package/vendor/theus-arsenal/skills/operaciones-investigacion/SKILL.md +0 -124
  587. package/vendor/theus-arsenal/skills/operaciones-mensajes/SKILL.md +0 -103
  588. package/vendor/theus-arsenal/skills/operaciones-terminal/SKILL.md +0 -110
  589. package/vendor/theus-arsenal/skills/optimizacion-benchmark/SKILL.md +0 -70
  590. package/vendor/theus-arsenal/skills/optimizacion-costos-llm/SKILL.md +0 -182
  591. package/vendor/theus-arsenal/skills/optimizador-conexiones/SKILL.md +0 -191
  592. package/vendor/theus-arsenal/skills/optimizador-paralelismo/SKILL.md +0 -75
  593. package/vendor/theus-arsenal/skills/optimizador-prompts/SKILL.md +0 -374
  594. package/vendor/theus-arsenal/skills/orq-agregar-funcionalidad/SKILL.md +0 -37
  595. package/vendor/theus-arsenal/skills/orq-cambiar-funcionalidad/SKILL.md +0 -36
  596. package/vendor/theus-arsenal/skills/orq-construir-mvp/SKILL.md +0 -38
  597. package/vendor/theus-arsenal/skills/orq-corregir-defecto/SKILL.md +0 -36
  598. package/vendor/theus-arsenal/skills/orq-pipeline/SKILL.md +0 -134
  599. package/vendor/theus-arsenal/skills/orq-refinar-codigo/SKILL.md +0 -49
  600. package/vendor/theus-arsenal/skills/orquestacion-equipos-agentes/SKILL.md +0 -117
  601. package/vendor/theus-arsenal/skills/pagos-agentes-x402/SKILL.md +0 -237
  602. package/vendor/theus-arsenal/skills/patrones-angular/SKILL.md +0 -153
  603. package/vendor/theus-arsenal/skills/patrones-angular/references/angular-animations.md +0 -160
  604. package/vendor/theus-arsenal/skills/patrones-angular/references/angular-aria.md +0 -410
  605. package/vendor/theus-arsenal/skills/patrones-angular/references/cli.md +0 -86
  606. package/vendor/theus-arsenal/skills/patrones-angular/references/component-harnesses.md +0 -59
  607. package/vendor/theus-arsenal/skills/patrones-angular/references/component-styling.md +0 -91
  608. package/vendor/theus-arsenal/skills/patrones-angular/references/components.md +0 -117
  609. package/vendor/theus-arsenal/skills/patrones-angular/references/creating-services.md +0 -97
  610. package/vendor/theus-arsenal/skills/patrones-angular/references/data-resolvers.md +0 -69
  611. package/vendor/theus-arsenal/skills/patrones-angular/references/define-routes.md +0 -67
  612. package/vendor/theus-arsenal/skills/patrones-angular/references/defining-providers.md +0 -72
  613. package/vendor/theus-arsenal/skills/patrones-angular/references/di-fundamentals.md +0 -120
  614. package/vendor/theus-arsenal/skills/patrones-angular/references/e2e-testing.md +0 -56
  615. package/vendor/theus-arsenal/skills/patrones-angular/references/effects.md +0 -83
  616. package/vendor/theus-arsenal/skills/patrones-angular/references/hierarchical-injectors.md +0 -43
  617. package/vendor/theus-arsenal/skills/patrones-angular/references/host-elements.md +0 -80
  618. package/vendor/theus-arsenal/skills/patrones-angular/references/injection-context.md +0 -63
  619. package/vendor/theus-arsenal/skills/patrones-angular/references/inputs.md +0 -101
  620. package/vendor/theus-arsenal/skills/patrones-angular/references/linked-signal.md +0 -59
  621. package/vendor/theus-arsenal/skills/patrones-angular/references/loading-strategies.md +0 -61
  622. package/vendor/theus-arsenal/skills/patrones-angular/references/mcp.md +0 -67
  623. package/vendor/theus-arsenal/skills/patrones-angular/references/navigate-to-routes.md +0 -69
  624. package/vendor/theus-arsenal/skills/patrones-angular/references/outputs.md +0 -86
  625. package/vendor/theus-arsenal/skills/patrones-angular/references/reactive-forms.md +0 -122
  626. package/vendor/theus-arsenal/skills/patrones-angular/references/rendering-strategies.md +0 -44
  627. package/vendor/theus-arsenal/skills/patrones-angular/references/resource.md +0 -77
  628. package/vendor/theus-arsenal/skills/patrones-angular/references/route-animations.md +0 -56
  629. package/vendor/theus-arsenal/skills/patrones-angular/references/route-guards.md +0 -52
  630. package/vendor/theus-arsenal/skills/patrones-angular/references/router-lifecycle.md +0 -45
  631. package/vendor/theus-arsenal/skills/patrones-angular/references/router-testing.md +0 -87
  632. package/vendor/theus-arsenal/skills/patrones-angular/references/show-routes-with-outlets.md +0 -68
  633. package/vendor/theus-arsenal/skills/patrones-angular/references/signal-forms.md +0 -795
  634. package/vendor/theus-arsenal/skills/patrones-angular/references/signals-overview.md +0 -94
  635. package/vendor/theus-arsenal/skills/patrones-angular/references/tailwind-css.md +0 -69
  636. package/vendor/theus-arsenal/skills/patrones-angular/references/template-driven-forms.md +0 -114
  637. package/vendor/theus-arsenal/skills/patrones-angular/references/testing-fundamentals.md +0 -65
  638. package/vendor/theus-arsenal/skills/patrones-animacion/SKILL.md +0 -432
  639. package/vendor/theus-arsenal/skills/patrones-backend/SKILL.md +0 -560
  640. package/vendor/theus-arsenal/skills/patrones-cdss-clinico/SKILL.md +0 -249
  641. package/vendor/theus-arsenal/skills/patrones-cisco-ios/SKILL.md +0 -148
  642. package/vendor/theus-arsenal/skills/patrones-clickhouse/SKILL.md +0 -443
  643. package/vendor/theus-arsenal/skills/patrones-compose-multiplatform/SKILL.md +0 -298
  644. package/vendor/theus-arsenal/skills/patrones-dart-flutter/SKILL.md +0 -566
  645. package/vendor/theus-arsenal/skills/patrones-despliegue/SKILL.md +0 -426
  646. package/vendor/theus-arsenal/skills/patrones-django/SKILL.md +0 -739
  647. package/vendor/theus-arsenal/skills/patrones-django-celery/SKILL.md +0 -456
  648. package/vendor/theus-arsenal/skills/patrones-docker/SKILL.md +0 -363
  649. package/vendor/theus-arsenal/skills/patrones-dotnet/SKILL.md +0 -321
  650. package/vendor/theus-arsenal/skills/patrones-emr-clinico/SKILL.md +0 -168
  651. package/vendor/theus-arsenal/skills/patrones-fastapi/SKILL.md +0 -513
  652. package/vendor/theus-arsenal/skills/patrones-frontend/SKILL.md +0 -655
  653. package/vendor/theus-arsenal/skills/patrones-go/SKILL.md +0 -674
  654. package/vendor/theus-arsenal/skills/patrones-jpa/SKILL.md +0 -156
  655. package/vendor/theus-arsenal/skills/patrones-kotlin/SKILL.md +0 -717
  656. package/vendor/theus-arsenal/skills/patrones-kotlin-exposed/SKILL.md +0 -724
  657. package/vendor/theus-arsenal/skills/patrones-kotlin-ktor/SKILL.md +0 -694
  658. package/vendor/theus-arsenal/skills/patrones-kubernetes/SKILL.md +0 -754
  659. package/vendor/theus-arsenal/skills/patrones-laravel/SKILL.md +0 -414
  660. package/vendor/theus-arsenal/skills/patrones-mcp/SKILL.md +0 -66
  661. package/vendor/theus-arsenal/skills/patrones-mysql/SKILL.md +0 -420
  662. package/vendor/theus-arsenal/skills/patrones-nestjs/SKILL.md +0 -229
  663. package/vendor/theus-arsenal/skills/patrones-nextjs/SKILL.md +0 -56
  664. package/vendor/theus-arsenal/skills/patrones-nuxt4/SKILL.md +0 -99
  665. package/vendor/theus-arsenal/skills/patrones-perl/SKILL.md +0 -508
  666. package/vendor/theus-arsenal/skills/patrones-postgres/SKILL.md +0 -141
  667. package/vendor/theus-arsenal/skills/patrones-prisma/SKILL.md +0 -399
  668. package/vendor/theus-arsenal/skills/patrones-python/SKILL.md +0 -750
  669. package/vendor/theus-arsenal/skills/patrones-pytorch/SKILL.md +0 -400
  670. package/vendor/theus-arsenal/skills/patrones-quarkus/SKILL.md +0 -729
  671. package/vendor/theus-arsenal/skills/patrones-react/SKILL.md +0 -339
  672. package/vendor/theus-arsenal/skills/patrones-react-native/SKILL.md +0 -325
  673. package/vendor/theus-arsenal/skills/patrones-redis/SKILL.md +0 -401
  674. package/vendor/theus-arsenal/skills/patrones-rust/SKILL.md +0 -504
  675. package/vendor/theus-arsenal/skills/patrones-springboot/SKILL.md +0 -314
  676. package/vendor/theus-arsenal/skills/patrones-swiftui/SKILL.md +0 -261
  677. package/vendor/theus-arsenal/skills/patrones-tinystruct/SKILL.md +0 -281
  678. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/architecture.md +0 -90
  679. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/data-handling.md +0 -60
  680. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/database.md +0 -99
  681. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/routing.md +0 -64
  682. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/system-usage.md +0 -97
  683. package/vendor/theus-arsenal/skills/patrones-tinystruct/references/testing.md +0 -72
  684. package/vendor/theus-arsenal/skills/patrones-vite/SKILL.md +0 -449
  685. package/vendor/theus-arsenal/skills/patrones-vue/SKILL.md +0 -469
  686. package/vendor/theus-arsenal/skills/persistencia-actores-swift/SKILL.md +0 -148
  687. package/vendor/theus-arsenal/skills/pipeline-opensource/SKILL.md +0 -254
  688. package/vendor/theus-arsenal/skills/planificacion-demanda-inventario/SKILL.md +0 -236
  689. package/vendor/theus-arsenal/skills/planificador-trades-prediccion/SKILL.md +0 -60
  690. package/vendor/theus-arsenal/skills/plano-tecnico/SKILL.md +0 -102
  691. package/vendor/theus-arsenal/skills/presentaciones-html/SKILL.md +0 -189
  692. package/vendor/theus-arsenal/skills/presentaciones-html/STYLE_PRESETS.md +0 -330
  693. package/vendor/theus-arsenal/skills/presentaciones-html/animation-patterns.md +0 -122
  694. package/vendor/theus-arsenal/skills/presentaciones-html/html-template.md +0 -419
  695. package/vendor/theus-arsenal/skills/presentaciones-html/scripts/export-pdf.sh +0 -418
  696. package/vendor/theus-arsenal/skills/presentaciones-html/scripts/extract-pptx.py +0 -96
  697. package/vendor/theus-arsenal/skills/presentaciones-html/viewport-base.css +0 -153
  698. package/vendor/theus-arsenal/skills/presupuesto-contexto/SKILL.md +0 -263
  699. package/vendor/theus-arsenal/skills/procesamiento-documentos-nutrient/SKILL.md +0 -168
  700. package/vendor/theus-arsenal/skills/programacion-produccion/SKILL.md +0 -220
  701. package/vendor/theus-arsenal/skills/publicacion-cruzada/SKILL.md +0 -117
  702. package/vendor/theus-arsenal/skills/publicador-social/SKILL.md +0 -121
  703. package/vendor/theus-arsenal/skills/puerta-de-entrega/SKILL.md +0 -164
  704. package/vendor/theus-arsenal/skills/puerta-de-entrega/hooks/puerta-entrega.py +0 -242
  705. package/vendor/theus-arsenal/skills/pulir-interfaces/SKILL.md +0 -126
  706. package/vendor/theus-arsenal/skills/qa-navegador/SKILL.md +0 -103
  707. package/vendor/theus-arsenal/skills/ranking-grafo-social/SKILL.md +0 -153
  708. package/vendor/theus-arsenal/skills/recuperacion-iterativa/SKILL.md +0 -236
  709. package/vendor/theus-arsenal/skills/redaccion-articulos/SKILL.md +0 -81
  710. package/vendor/theus-arsenal/skills/regex-vs-llm/SKILL.md +0 -221
  711. package/vendor/theus-arsenal/skills/regresion-codigo-ia/SKILL.md +0 -388
  712. package/vendor/theus-arsenal/skills/rendimiento-react/SKILL.md +0 -567
  713. package/vendor/theus-arsenal/skills/revision-codigo-flutter-dart/SKILL.md +0 -442
  714. package/vendor/theus-arsenal/skills/revision-literatura-cientifica/SKILL.md +0 -191
  715. package/vendor/theus-arsenal/skills/revision-multiperspectiva/SKILL.md +0 -302
  716. package/vendor/theus-arsenal/skills/revision-riesgo-prediccion/SKILL.md +0 -56
  717. package/vendor/theus-arsenal/skills/revision-seguridad/SKILL.md +0 -505
  718. package/vendor/theus-arsenal/skills/revision-seguridad/cloud-infrastructure-security.md +0 -361
  719. package/vendor/theus-arsenal/skills/runtime-bun/SKILL.md +0 -83
  720. package/vendor/theus-arsenal/skills/salud-codigo-codescene/SKILL.md +0 -163
  721. package/vendor/theus-arsenal/skills/salud-interfaces-red/SKILL.md +0 -143
  722. package/vendor/theus-arsenal/skills/seguimiento-costos/SKILL.md +0 -122
  723. package/vendor/theus-arsenal/skills/seguridad-agentes-trading/SKILL.md +0 -145
  724. package/vendor/theus-arsenal/skills/seguridad-amm-defi/SKILL.md +0 -166
  725. package/vendor/theus-arsenal/skills/seguridad-django/SKILL.md +0 -648
  726. package/vendor/theus-arsenal/skills/seguridad-laravel/SKILL.md +0 -945
  727. package/vendor/theus-arsenal/skills/seguridad-perl/SKILL.md +0 -507
  728. package/vendor/theus-arsenal/skills/seguridad-quarkus/SKILL.md +0 -474
  729. package/vendor/theus-arsenal/skills/seguridad-springboot/SKILL.md +0 -279
  730. package/vendor/theus-arsenal/skills/seo/SKILL.md +0 -166
  731. package/vendor/theus-arsenal/skills/sistema-diseno/SKILL.md +0 -81
  732. package/vendor/theus-arsenal/skills/sistema-operativo-agentico/SKILL.md +0 -375
  733. package/vendor/theus-arsenal/skills/sistemas-latencia-critica/SKILL.md +0 -65
  734. package/vendor/theus-arsenal/skills/tdd-django/SKILL.md +0 -735
  735. package/vendor/theus-arsenal/skills/tdd-laravel/SKILL.md +0 -673
  736. package/vendor/theus-arsenal/skills/tdd-quarkus/SKILL.md +0 -817
  737. package/vendor/theus-arsenal/skills/tdd-springboot/SKILL.md +0 -165
  738. package/vendor/theus-arsenal/skills/testing-cpp/SKILL.md +0 -328
  739. package/vendor/theus-arsenal/skills/testing-csharp/SKILL.md +0 -321
  740. package/vendor/theus-arsenal/skills/testing-e2e/SKILL.md +0 -325
  741. package/vendor/theus-arsenal/skills/testing-go/SKILL.md +0 -719
  742. package/vendor/theus-arsenal/skills/testing-kotlin/SKILL.md +0 -829
  743. package/vendor/theus-arsenal/skills/testing-perl/SKILL.md +0 -479
  744. package/vendor/theus-arsenal/skills/testing-protocolos-di-swift/SKILL.md +0 -196
  745. package/vendor/theus-arsenal/skills/testing-python/SKILL.md +0 -815
  746. package/vendor/theus-arsenal/skills/testing-react/SKILL.md +0 -421
  747. package/vendor/theus-arsenal/skills/testing-rust/SKILL.md +0 -506
  748. package/vendor/theus-arsenal/skills/tours-de-codigo/SKILL.md +0 -252
  749. package/vendor/theus-arsenal/skills/traduccion-documentos-visado/SKILL.md +0 -121
  750. package/vendor/theus-arsenal/skills/ui-a-vue/SKILL.md +0 -141
  751. package/vendor/theus-arsenal/skills/validacion-config-red/SKILL.md +0 -211
  752. package/vendor/theus-arsenal/skills/verificacion-django/SKILL.md +0 -470
  753. package/vendor/theus-arsenal/skills/verificacion-factual/SKILL.md +0 -142
  754. package/vendor/theus-arsenal/skills/verificacion-laravel/SKILL.md +0 -184
  755. package/vendor/theus-arsenal/skills/verificacion-quarkus/SKILL.md +0 -485
  756. package/vendor/theus-arsenal/skills/verificacion-springboot/SKILL.md +0 -237
  757. package/vendor/theus-arsenal/skills/videodb/SKILL.md +0 -374
  758. package/vendor/theus-arsenal/skills/videodb/reference/api-reference.md +0 -550
  759. package/vendor/theus-arsenal/skills/videodb/reference/capture-reference.md +0 -407
  760. package/vendor/theus-arsenal/skills/videodb/reference/capture.md +0 -101
  761. package/vendor/theus-arsenal/skills/videodb/reference/editor.md +0 -443
  762. package/vendor/theus-arsenal/skills/videodb/reference/generative.md +0 -331
  763. package/vendor/theus-arsenal/skills/videodb/reference/rtstream-reference.md +0 -564
  764. package/vendor/theus-arsenal/skills/videodb/reference/rtstream.md +0 -65
  765. package/vendor/theus-arsenal/skills/videodb/reference/search.md +0 -230
  766. package/vendor/theus-arsenal/skills/videodb/reference/streaming.md +0 -406
  767. package/vendor/theus-arsenal/skills/videodb/reference/use-cases.md +0 -118
  768. package/vendor/theus-arsenal/skills/videodb/scripts/ws_listener.py +0 -279
  769. package/vendor/theus-arsenal/skills/videos-manim/SKILL.md +0 -91
  770. package/vendor/theus-arsenal/skills/videos-manim/assets/network_graph_scene.py +0 -52
  771. package/vendor/theus-arsenal/skills/vigilancia-canary/SKILL.md +0 -108
  772. package/vendor/theus-arsenal/skills/voz-de-marca/SKILL.md +0 -106
@@ -1,402 +0,0 @@
1
- /**
2
- * memoria-por-proyecto (ck) v2
3
- * shared.mjs — utilidades comunes para todos los scripts de comandos
4
- *
5
- * Sin dependencias externas. Solo stdlib de Node.js.
6
- */
7
-
8
- import { readFileSync, writeFileSync, existsSync, mkdirSync } from 'fs';
9
- import { resolve, dirname } from 'path';
10
- import { fileURLToPath } from 'url';
11
- import { homedir } from 'os';
12
- import { spawnSync } from 'child_process';
13
- import { randomBytes } from 'crypto';
14
- import { createRequire } from 'module';
15
-
16
- // ─── Rutas ────────────────────────────────────────────────────────────────────
17
- // El estado persistente vive SIEMPRE bajo la raíz de datos del agente
18
- // (~/.theus/arsenal por defecto; configurable con THEUS_AGENT_DATA_HOME).
19
-
20
- const require = createRequire(import.meta.url);
21
- let resolveAgentDataHome;
22
- try {
23
- ({ resolveAgentDataHome } = require('../../../scripts/lib/agent-data-home.js'));
24
- } catch {
25
- // Respaldo si el script se ejecuta fuera del árbol del plugin
26
- resolveAgentDataHome = () => resolve(homedir(), '.theus', 'arsenal');
27
- }
28
-
29
- const MODULE_DIR = dirname(fileURLToPath(import.meta.url));
30
-
31
- export const CK_HOME = resolve(resolveAgentDataHome(), 'ck');
32
- export const CONTEXTS_DIR = resolve(CK_HOME, 'contexts');
33
- export const PROJECTS_FILE = resolve(CK_HOME, 'projects.json');
34
- export const CURRENT_SESSION = resolve(CK_HOME, 'current-session.json');
35
- export const SKILL_FILE = resolve(MODULE_DIR, '..', 'SKILL.md');
36
-
37
- // ─── E/S de JSON ──────────────────────────────────────────────────────────────
38
-
39
- export function readJson(filePath) {
40
- try {
41
- if (!existsSync(filePath)) return null;
42
- return JSON.parse(readFileSync(filePath, 'utf8'));
43
- } catch {
44
- return null;
45
- }
46
- }
47
-
48
- export function writeJson(filePath, data) {
49
- const dir = resolve(filePath, '..');
50
- mkdirSync(dir, { recursive: true });
51
- writeFileSync(filePath, JSON.stringify(data, null, 2) + '\n', 'utf8');
52
- }
53
-
54
- export function readProjects() {
55
- return readJson(PROJECTS_FILE) || {};
56
- }
57
-
58
- export function writeProjects(projects) {
59
- writeJson(PROJECTS_FILE, projects);
60
- }
61
-
62
- // ─── E/S de contexto ──────────────────────────────────────────────────────────
63
-
64
- export function contextPath(contextDir) {
65
- return resolve(CONTEXTS_DIR, contextDir, 'context.json');
66
- }
67
-
68
- export function contextMdPath(contextDir) {
69
- return resolve(CONTEXTS_DIR, contextDir, 'CONTEXT.md');
70
- }
71
-
72
- export function loadContext(contextDir) {
73
- return readJson(contextPath(contextDir));
74
- }
75
-
76
- export function saveContext(contextDir, data) {
77
- const dir = resolve(CONTEXTS_DIR, contextDir);
78
- mkdirSync(dir, { recursive: true });
79
- writeJson(contextPath(contextDir), data);
80
- writeFileSync(contextMdPath(contextDir), renderContextMd(data), 'utf8');
81
- }
82
-
83
- /**
84
- * Resuelve sobre qué proyecto operar.
85
- * @param {string|undefined} arg — undefined = coincidencia por cwd, cadena numérica = índice alfabético, si no búsqueda por nombre
86
- * @param {string} cwd
87
- * @returns {{ name, contextDir, projectPath, context } | null}
88
- */
89
- export function resolveContext(arg, cwd) {
90
- const projects = readProjects();
91
- const entries = Object.entries(projects); // [ruta, {name, contextDir, lastUpdated}]
92
-
93
- if (!arg) {
94
- // Coincidencia por cwd
95
- const entry = projects[cwd];
96
- if (!entry) return null;
97
- const context = loadContext(entry.contextDir);
98
- if (!context) return null;
99
- return { name: entry.name, contextDir: entry.contextDir, projectPath: cwd, context };
100
- }
101
-
102
- // Recopila todos los contextos ordenados alfabéticamente por contextDir
103
- const sorted = entries
104
- .map(([path, info]) => ({ path, ...info }))
105
- .sort((a, b) => a.contextDir.localeCompare(b.contextDir));
106
-
107
- const asNumber = parseInt(arg, 10);
108
- if (!isNaN(asNumber) && String(asNumber) === arg) {
109
- // Búsqueda por número (índice desde 1)
110
- const item = sorted[asNumber - 1];
111
- if (!item) return null;
112
- const context = loadContext(item.contextDir);
113
- if (!context) return null;
114
- return { name: item.name, contextDir: item.contextDir, projectPath: item.path, context };
115
- }
116
-
117
- // Búsqueda por nombre: exacta > prefijo > subcadena (sin distinguir mayúsculas)
118
- const lower = arg.toLowerCase();
119
- let match =
120
- sorted.find(e => e.name.toLowerCase() === lower) ||
121
- sorted.find(e => e.name.toLowerCase().startsWith(lower)) ||
122
- sorted.find(e => e.name.toLowerCase().includes(lower));
123
-
124
- if (!match) return null;
125
- const context = loadContext(match.contextDir);
126
- if (!context) return null;
127
- return { name: match.name, contextDir: match.contextDir, projectPath: match.path, context };
128
- }
129
-
130
- // ─── Helpers de fechas ────────────────────────────────────────────────────────
131
-
132
- export function today() {
133
- return new Date().toISOString().slice(0, 10);
134
- }
135
-
136
- export function daysAgoLabel(dateStr) {
137
- if (!dateStr) return 'desconocido';
138
- const diff = Math.floor((Date.now() - new Date(dateStr)) / 86_400_000);
139
- if (diff === 0) return 'Hoy';
140
- if (diff === 1) return 'hace 1 día';
141
- return `hace ${diff} días`;
142
- }
143
-
144
- export function stalenessIcon(dateStr) {
145
- if (!dateStr) return '○';
146
- const diff = Math.floor((Date.now() - new Date(dateStr)) / 86_400_000);
147
- if (diff < 1) return '●';
148
- if (diff <= 5) return '◐';
149
- return '○';
150
- }
151
-
152
- // ─── Generación de IDs ────────────────────────────────────────────────────────
153
-
154
- export function shortId() {
155
- return randomBytes(4).toString('hex');
156
- }
157
-
158
- // ─── Helpers de git ───────────────────────────────────────────────────────────
159
-
160
- function runGit(args, cwd) {
161
- try {
162
- const result = spawnSync('git', ['-C', cwd, ...args], {
163
- timeout: 3000,
164
- stdio: 'pipe',
165
- encoding: 'utf8',
166
- });
167
- if (result.status !== 0) return null;
168
- return result.stdout.trim();
169
- } catch {
170
- return null;
171
- }
172
- }
173
-
174
- export function gitLogSince(projectPath, sinceDate) {
175
- if (!sinceDate) return null;
176
- return runGit(['log', '--oneline', `--since=${sinceDate}`], projectPath);
177
- }
178
-
179
- export function gitSummary(projectPath, sinceDate) {
180
- const log = gitLogSince(projectPath, sinceDate);
181
- if (!log) return null;
182
- const commits = log.split('\n').filter(Boolean).length;
183
- if (commits === 0) return null;
184
-
185
- // Cuenta de archivos únicos cambiados: llamada a runGit separada para evitar sustituciones anidadas de shell
186
- const countStr = runGit(['rev-list', '--count', 'HEAD', `--since=${sinceDate}`], projectPath);
187
- const revCount = countStr ? parseInt(countStr, 10) : commits;
188
- const diff = runGit(['diff', '--shortstat', `HEAD~${Math.min(revCount, 50)}..HEAD`], projectPath);
189
-
190
- if (diff) {
191
- const filesMatch = diff.match(/(\d+) file/);
192
- const files = filesMatch ? parseInt(filesMatch[1]) : '?';
193
- return `${commits} commit${commits !== 1 ? 's' : ''}, ${files} archivo${files !== 1 ? 's' : ''} cambiados`;
194
- }
195
- return `${commits} commit${commits !== 1 ? 's' : ''}`;
196
- }
197
-
198
- // ─── Codificación de rutas para entradas de memoria ───────────────────────────
199
-
200
- export function encodeProjectPath(absolutePath) {
201
- // "/Users/ana/dev/app" -> "-Users-ana-dev-app"
202
- return absolutePath.replace(/\//g, '-');
203
- }
204
-
205
- export function sessionMemoryDir(absolutePath) {
206
- const encoded = encodeProjectPath(absolutePath);
207
- return resolve(CK_HOME, 'memoria', encoded);
208
- }
209
-
210
- // ─── Renderizado ──────────────────────────────────────────────────────────────
211
-
212
- /** Renderiza el CONTEXT.md legible por humanos a partir de context.json */
213
- export function renderContextMd(ctx) {
214
- const latest = ctx.sessions?.[ctx.sessions.length - 1] || null;
215
- const lines = [
216
- `<!-- Generado por memoria-por-proyecto v2 — edita context.json, no este archivo -->`,
217
- `# Proyecto: ${ctx.displayName ?? ctx.name}`,
218
- `> Ruta: ${ctx.path}`,
219
- ];
220
- if (ctx.repo) lines.push(`> Repo: ${ctx.repo}`);
221
- const sessionCount = ctx.sessions?.length || 0;
222
- lines.push(`> Última sesión: ${ctx.sessions?.[sessionCount - 1]?.date || 'nunca'} | Sesiones: ${sessionCount}`);
223
- lines.push(``);
224
- lines.push(`## Qué es`);
225
- lines.push(ctx.description || '_Sin definir._');
226
- lines.push(``);
227
- lines.push(`## Stack tecnológico`);
228
- lines.push(Array.isArray(ctx.stack) ? ctx.stack.join(', ') : (ctx.stack || '_Sin definir._'));
229
- lines.push(``);
230
- lines.push(`## Objetivo actual`);
231
- lines.push(ctx.goal || '_Sin definir._');
232
- lines.push(``);
233
- lines.push(`## Dónde quedé`);
234
- lines.push(latest?.leftOff || '_Aún sin registrar. Ejecuta /memoria:guardar tras tu primera sesión._');
235
- lines.push(``);
236
- lines.push(`## Próximos pasos`);
237
- if (latest?.nextSteps?.length) {
238
- latest.nextSteps.forEach((s, i) => lines.push(`${i + 1}. ${s}`));
239
- } else {
240
- lines.push(`_Aún sin registrar._`);
241
- }
242
- lines.push(``);
243
- lines.push(`## Bloqueos`);
244
- if (latest?.blockers?.length) {
245
- latest.blockers.forEach(b => lines.push(`- ${b}`));
246
- } else {
247
- lines.push(`- Ninguno`);
248
- }
249
- lines.push(``);
250
- lines.push(`## No hacer`);
251
- if (ctx.constraints?.length) {
252
- ctx.constraints.forEach(c => lines.push(`- ${c}`));
253
- } else {
254
- lines.push(`- Nada especificado`);
255
- }
256
- lines.push(``);
257
-
258
- // Todas las decisiones de todas las sesiones
259
- const allDecisions = (ctx.sessions || []).flatMap(s =>
260
- (s.decisions || []).map(d => ({ ...d, date: s.date }))
261
- );
262
- lines.push(`## Decisiones tomadas`);
263
- lines.push(`| Decisión | Por qué | Fecha |`);
264
- lines.push(`|----------|---------|-------|`);
265
- if (allDecisions.length) {
266
- allDecisions.forEach(d => lines.push(`| ${d.what} | ${d.why || ''} | ${d.date || ''} |`));
267
- } else {
268
- lines.push(`| _(ninguna aún)_ | | |`);
269
- }
270
- lines.push(``);
271
-
272
- // Historial de sesiones (la más reciente primero)
273
- if (ctx.sessions?.length > 1) {
274
- lines.push(`## Historial de sesiones`);
275
- const reversed = [...ctx.sessions].reverse();
276
- reversed.forEach(s => {
277
- lines.push(`### ${s.date} — ${s.summary || 'Sesión'}`);
278
- if (s.gitActivity) lines.push(`_${s.gitActivity}_`);
279
- if (s.leftOff) lines.push(`**Quedé en:** ${s.leftOff}`);
280
- });
281
- lines.push(``);
282
- }
283
-
284
- return lines.join('\n');
285
- }
286
-
287
- /** Renderiza la caja de briefing con bordes que usa /memoria:reanudar */
288
- export function renderBriefingBox(ctx, _meta = {}) {
289
- const latest = ctx.sessions?.[ctx.sessions.length - 1] || {};
290
- const W = 57;
291
- const pad = (str, w) => {
292
- const s = String(str || '');
293
- return s.length > w ? s.slice(0, w - 1) + '…' : s.padEnd(w);
294
- };
295
- const row = (label, value) => `│ ${label} → ${pad(value, W - label.length - 7)}│`;
296
-
297
- const when = daysAgoLabel(ctx.sessions?.[ctx.sessions.length - 1]?.date);
298
- const sessions = ctx.sessions?.length || 0;
299
- const shortSessId = latest.id?.slice(0, 8) || null;
300
-
301
- const lines = [
302
- `┌${'─'.repeat(W)}┐`,
303
- `│ RETOMANDO: ${pad(ctx.displayName ?? ctx.name, W - 13)}│`,
304
- `│ Última sesión: ${pad(`${when} | Sesiones: ${sessions}`, W - 17)}│`,
305
- ];
306
- if (shortSessId) lines.push(`│ ID de sesión: ${pad(shortSessId, W - 16)}│`);
307
- lines.push(`├${'─'.repeat(W)}┤`);
308
- lines.push(row('QUÉ ES ', ctx.description || '—'));
309
- lines.push(row('STACK ', Array.isArray(ctx.stack) ? ctx.stack.join(', ') : (ctx.stack || '—')));
310
- lines.push(row('RUTA ', ctx.path));
311
- if (ctx.repo) lines.push(row('REPO ', ctx.repo));
312
- lines.push(row('OBJETIVO ', ctx.goal || '—'));
313
- lines.push(`├${'─'.repeat(W)}┤`);
314
- lines.push(`│ DÓNDE QUEDÉ${' '.repeat(W - 13)}│`);
315
- const leftOffLines = (latest.leftOff || '—').split('\n').filter(Boolean);
316
- leftOffLines.forEach(l => lines.push(`│ • ${pad(l, W - 7)}│`));
317
- lines.push(`├${'─'.repeat(W)}┤`);
318
- lines.push(`│ PRÓXIMOS PASOS${' '.repeat(W - 16)}│`);
319
- const steps = latest.nextSteps || [];
320
- if (steps.length) {
321
- steps.forEach((s, i) => lines.push(`│ ${i + 1}. ${pad(s, W - 8)}│`));
322
- } else {
323
- lines.push(`│ —${' '.repeat(W - 5)}│`);
324
- }
325
- const blockers = latest.blockers?.length ? latest.blockers.join(', ') : 'Ninguno';
326
- lines.push(`│ BLOQUEOS → ${pad(blockers, W - 13)}│`);
327
- if (latest.gitActivity) {
328
- lines.push(`│ GIT → ${pad(latest.gitActivity, W - 13)}│`);
329
- }
330
- lines.push(`└${'─'.repeat(W)}┘`);
331
- return lines.join('\n');
332
- }
333
-
334
- /** Renderiza el bloque compacto de info que usa /memoria:info */
335
- export function renderInfoBlock(ctx) {
336
- const latest = ctx.sessions?.[ctx.sessions.length - 1] || {};
337
- const sep = '─'.repeat(44);
338
- const lines = [
339
- `memoria: ${ctx.displayName ?? ctx.name}`,
340
- sep,
341
- ];
342
- lines.push(`RUTA ${ctx.path}`);
343
- if (ctx.repo) lines.push(`REPO ${ctx.repo}`);
344
- if (latest.id) lines.push(`SESIÓN ${latest.id.slice(0, 8)}`);
345
- lines.push(`OBJETIVO ${ctx.goal || '—'}`);
346
- lines.push(sep);
347
- lines.push(`DÓNDE QUEDÉ`);
348
- (latest.leftOff || '—').split('\n').filter(Boolean).forEach(l => lines.push(` • ${l}`));
349
- lines.push(`PRÓXIMOS PASOS`);
350
- (latest.nextSteps || []).forEach((s, i) => lines.push(` ${i + 1}. ${s}`));
351
- if (!latest.nextSteps?.length) lines.push(` —`);
352
- lines.push(`BLOQUEOS`);
353
- if (latest.blockers?.length) {
354
- latest.blockers.forEach(b => lines.push(` • ${b}`));
355
- } else {
356
- lines.push(` • Ninguno`);
357
- }
358
- return lines.join('\n');
359
- }
360
-
361
- /** Renderiza la tabla ASCII que usa /memoria:lista */
362
- export function renderListTable(entries, cwd, _todayStr) {
363
- // entries: [{name, contextDir, path, context, lastUpdated}]
364
- // Ordenadas alfabéticamente por contextDir antes de llamar
365
- const rows = entries.map((e, i) => {
366
- const isHere = e.path === cwd;
367
- const latest = e.context?.sessions?.[e.context.sessions.length - 1] || {};
368
- const when = daysAgoLabel(latest.date);
369
- const icon = stalenessIcon(latest.date);
370
- const statusLabel = icon === '●' ? '● Activo' : icon === '◐' ? '◐ Tibio' : '○ Frío';
371
- const sessId = latest.id ? latest.id.slice(0, 8) : '—';
372
- const summary = (latest.summary || '—').slice(0, 34);
373
- const displayName = ((e.context?.displayName ?? e.name) + (isHere ? ' <-' : '')).slice(0, 18);
374
- return {
375
- num: String(i + 1),
376
- name: displayName,
377
- status: statusLabel,
378
- when: when.slice(0, 12),
379
- sessId,
380
- summary,
381
- };
382
- });
383
-
384
- const cols = {
385
- num: Math.max(1, ...rows.map(r => r.num.length)),
386
- name: Math.max(8, ...rows.map(r => r.name.length)),
387
- status: Math.max(6, ...rows.map(r => r.status.length)),
388
- when: Math.max(10, ...rows.map(r => r.when.length)),
389
- sessId: Math.max(6, ...rows.map(r => r.sessId.length)),
390
- summary: Math.max(14, ...rows.map(r => r.summary.length)),
391
- };
392
-
393
- const hr = `+${'-'.repeat(cols.num + 2)}+${'-'.repeat(cols.name + 2)}+${'-'.repeat(cols.status + 2)}+${'-'.repeat(cols.when + 2)}+${'-'.repeat(cols.sessId + 2)}+${'-'.repeat(cols.summary + 2)}+`;
394
- const cell = (val, width) => ` ${val.padEnd(width)} `;
395
- const headerRow = `|${cell('#', cols.num)}|${cell('Proyecto', cols.name)}|${cell('Estado', cols.status)}|${cell('Visto hace', cols.when)}|${cell('Sesión', cols.sessId)}|${cell('Último resumen', cols.summary)}|`;
396
-
397
- const dataRows = rows.map(r =>
398
- `|${cell(r.num, cols.num)}|${cell(r.name, cols.name)}|${cell(r.status, cols.status)}|${cell(r.when, cols.when)}|${cell(r.sessId, cols.sessId)}|${cell(r.summary, cols.summary)}|`
399
- );
400
-
401
- return [hr, headerRow, hr, ...dataRows, hr].join('\n');
402
- }
@@ -1,238 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * memoria-por-proyecto (ck) v2
4
- * session-start.mjs — inyecta un contexto compacto del proyecto al iniciar la sesión.
5
- *
6
- * Inyecta ~100 tokens (no ~2.500 como la v1).
7
- * El SKILL.md se inyecta por separado (sigue siendo pequeño, ~50 líneas).
8
- *
9
- * Funciones:
10
- * - Resumen compacto de 5 líneas para proyectos registrados
11
- * - Detección de sesión sin guardar → "La última sesión no se guardó. Ejecuta /memoria:guardar."
12
- * - Actividad de git desde la última sesión
13
- * - Detección de desajuste de objetivo frente a AGENTS.md
14
- * - Mini portafolio para directorios no registrados
15
- */
16
-
17
- import { readFileSync, writeFileSync, existsSync } from 'fs';
18
- import { resolve, dirname } from 'path';
19
- import { fileURLToPath } from 'url';
20
- import { homedir } from 'os';
21
- import { spawnSync } from 'child_process';
22
- import { createRequire } from 'module';
23
-
24
- // El estado persistente vive SIEMPRE bajo la raíz de datos del agente
25
- // (~/.theus/arsenal por defecto; configurable con THEUS_AGENT_DATA_HOME).
26
- const require = createRequire(import.meta.url);
27
- let resolveAgentDataHome;
28
- try {
29
- ({ resolveAgentDataHome } = require('../../../scripts/lib/agent-data-home.js'));
30
- } catch {
31
- // Respaldo si el script se ejecuta fuera del árbol del plugin
32
- resolveAgentDataHome = () => resolve(homedir(), '.theus', 'arsenal');
33
- }
34
-
35
- const MODULE_DIR = dirname(fileURLToPath(import.meta.url));
36
- const CK_HOME = resolve(resolveAgentDataHome(), 'ck');
37
- const PROJECTS_FILE = resolve(CK_HOME, 'projects.json');
38
- const CURRENT_SESSION = resolve(CK_HOME, 'current-session.json');
39
- const SKILL_FILE = resolve(MODULE_DIR, '..', 'SKILL.md');
40
-
41
- // ─── Helpers ──────────────────────────────────────────────────────────────────
42
-
43
- function readJson(p) {
44
- try { return JSON.parse(readFileSync(p, 'utf8')); } catch { return null; }
45
- }
46
-
47
- function daysAgo(dateStr) {
48
- if (!dateStr) return 'desconocido';
49
- const diff = Math.floor((Date.now() - new Date(dateStr)) / 86_400_000);
50
- if (diff === 0) return 'hoy';
51
- if (diff === 1) return 'hace 1 día';
52
- return `hace ${diff} días`;
53
- }
54
-
55
- function stalenessIcon(dateStr) {
56
- if (!dateStr) return '○';
57
- const diff = Math.floor((Date.now() - new Date(dateStr)) / 86_400_000);
58
- return diff < 1 ? '●' : diff <= 5 ? '◐' : '○';
59
- }
60
-
61
- function gitLogSince(projectPath, sinceDate) {
62
- if (!sinceDate || !existsSync(resolve(projectPath, '.git'))) return null;
63
- try {
64
- const result = spawnSync(
65
- 'git',
66
- ['-C', projectPath, 'log', '--oneline', `--since=${sinceDate}`],
67
- { timeout: 3000, stdio: 'pipe', encoding: 'utf8' },
68
- );
69
- if (result.status !== 0) return null;
70
- const output = result.stdout.trim();
71
- const commits = output.split('\n').filter(Boolean).length;
72
- return commits > 0 ? `${commits} commit${commits !== 1 ? 's' : ''} desde la última sesión` : null;
73
- } catch { return null; }
74
- }
75
-
76
- function extractAgentsMdGoal(projectPath) {
77
- const p = resolve(projectPath, 'AGENTS.md');
78
- if (!existsSync(p)) return null;
79
- try {
80
- const md = readFileSync(p, 'utf8');
81
- const m = md.match(/## (?:Objetivo actual|Current Goal)\n([\s\S]*?)(?=\n## |$)/);
82
- return m ? m[1].trim().split('\n')[0].trim() : null;
83
- } catch { return null; }
84
- }
85
-
86
- // ─── ID de sesión desde stdin ─────────────────────────────────────────────────
87
-
88
- function readSessionId() {
89
- try {
90
- const raw = readFileSync(0, 'utf8');
91
- return JSON.parse(raw).session_id || null;
92
- } catch { return null; }
93
- }
94
-
95
- // ─── Principal ────────────────────────────────────────────────────────────────
96
-
97
- function main() {
98
- const cwd = process.env.PWD || process.cwd();
99
- const sessionId = readSessionId();
100
-
101
- // Carga el skill (se inyecta siempre — ahora solo ~50 líneas)
102
- const skill = existsSync(SKILL_FILE) ? readFileSync(SKILL_FILE, 'utf8') : '';
103
-
104
- const projects = readJson(PROJECTS_FILE) || {};
105
- const entry = projects[cwd];
106
-
107
- // Lee la sesión anterior ANTES de sobrescribir current-session.json
108
- const prevSession = readJson(CURRENT_SESSION);
109
-
110
- // Escribe current-session.json
111
- try {
112
- writeFileSync(CURRENT_SESSION, JSON.stringify({
113
- sessionId,
114
- projectPath: cwd,
115
- projectName: entry?.name || null,
116
- startedAt: new Date().toISOString(),
117
- }, null, 2), 'utf8');
118
- } catch { /* no fatal */ }
119
-
120
- const parts = [];
121
- if (skill) parts.push(skill);
122
-
123
- // ── PROYECTO REGISTRADO ─────────────────────────────────────────────────────
124
- if (entry?.contextDir) {
125
- const contextFile = resolve(CK_HOME, 'contexts', entry.contextDir, 'context.json');
126
- const context = readJson(contextFile);
127
-
128
- if (context) {
129
- const latest = context.sessions?.[context.sessions.length - 1] || {};
130
- const sessionDate = latest.date || context.createdAt;
131
- const sessionCount = context.sessions?.length || 0;
132
- const displayName = context.displayName ?? context.name;
133
-
134
- // ── Bloque de resumen compacto (~100 tokens) ─────────────────────────
135
- const summaryLines = [
136
- `memoria: ${displayName} | ${daysAgo(sessionDate)} | ${sessionCount} sesión${sessionCount !== 1 ? 'es' : ''}`,
137
- `Objetivo: ${context.goal || '—'}`,
138
- latest.leftOff ? `Quedé en: ${latest.leftOff.split('\n')[0]}` : null,
139
- latest.nextSteps?.length ? `Siguiente: ${latest.nextSteps.slice(0, 2).join(' · ')}` : null,
140
- ].filter(Boolean);
141
-
142
- // ── Detección de sesión sin guardar ───────────────────────────────────
143
- if (prevSession?.sessionId && prevSession.sessionId !== sessionId) {
144
- // Comprueba si el ID de la sesión anterior existe en el array de sesiones
145
- const alreadySaved = context.sessions?.some(s => s.id === prevSession.sessionId);
146
- if (!alreadySaved) {
147
- summaryLines.push(`AVISO: la última sesión no se guardó — ejecuta /memoria:guardar para capturarla`);
148
- }
149
- }
150
-
151
- // ── Actividad de git ──────────────────────────────────────────────────
152
- const gitLine = gitLogSince(cwd, sessionDate);
153
- if (gitLine) summaryLines.push(`Git: ${gitLine}`);
154
-
155
- // ── Detección de desajuste de objetivo ────────────────────────────────
156
- const agentsMdGoal = extractAgentsMdGoal(cwd);
157
- if (agentsMdGoal && context.goal &&
158
- agentsMdGoal.toLowerCase().trim() !== context.goal.toLowerCase().trim()) {
159
- summaryLines.push(`AVISO: objetivos distintos — memoria: "${context.goal.slice(0, 40)}" · AGENTS.md: "${agentsMdGoal.slice(0, 40)}"`);
160
- summaryLines.push(` Ejecuta /memoria:guardar con el objetivo actualizado para sincronizarlos`);
161
- }
162
-
163
- parts.push([
164
- `---`,
165
- `## memoria: ${displayName}`,
166
- ``,
167
- summaryLines.join('\n'),
168
- ].join('\n'));
169
-
170
- // Indica al agente que muestre el briefing compacto al iniciar la sesión
171
- parts.push([
172
- `---`,
173
- `## memoria: INICIO DE SESIÓN`,
174
- ``,
175
- `IMPORTANTE: muestra lo siguiente como tu PRIMER mensaje, literal:`,
176
- ``,
177
- '```',
178
- summaryLines.join('\n'),
179
- '```',
180
- ``,
181
- `Tras el bloque, añade una línea: "Listo — ¿en qué trabajamos?"`,
182
- `Si ves líneas de AVISO arriba, menciónalas brevemente después del bloque.`,
183
- ].join('\n'));
184
-
185
- return parts;
186
- }
187
- }
188
-
189
- // ── FUERA DE UN PROYECTO REGISTRADO ────────────────────────────────────────
190
- const entries = Object.entries(projects);
191
- if (entries.length === 0) return parts;
192
-
193
- // Carga y ordena por más reciente
194
- const recent = entries
195
- .map(([path, info]) => {
196
- const ctx = readJson(resolve(CK_HOME, 'contexts', info.contextDir, 'context.json'));
197
- const latest = ctx?.sessions?.[ctx.sessions.length - 1] || {};
198
- return { name: info.name, path, lastDate: latest.date || '', summary: latest.summary || '—', ctx };
199
- })
200
- .sort((a, b) => (b.lastDate > a.lastDate ? 1 : -1))
201
- .slice(0, 3);
202
-
203
- const miniRows = recent.map(p => {
204
- const icon = stalenessIcon(p.lastDate);
205
- const when = daysAgo(p.lastDate);
206
- const name = p.name.padEnd(16).slice(0, 16);
207
- const whenStr = when.padEnd(12).slice(0, 12);
208
- const summary = p.summary.slice(0, 32);
209
- return ` ${name} ${icon} ${whenStr} ${summary}`;
210
- });
211
-
212
- const miniStatus = [
213
- `memoria — proyectos recientes:`,
214
- ` ${'PROYECTO'.padEnd(16)} E ${'VISTO HACE'.padEnd(12)} ÚLTIMA SESIÓN`,
215
- ` ${'─'.repeat(68)}`,
216
- ...miniRows,
217
- ``,
218
- `Ejecuta /memoria:lista · /memoria:reanudar <nombre> · /memoria:iniciar para registrar esta carpeta`,
219
- ].join('\n');
220
-
221
- parts.push([
222
- `---`,
223
- `## memoria: INICIO DE SESIÓN`,
224
- ``,
225
- `IMPORTANTE: muestra lo siguiente como tu PRIMER mensaje, literal:`,
226
- ``,
227
- '```',
228
- miniStatus,
229
- '```',
230
- ].join('\n'));
231
-
232
- return parts;
233
- }
234
-
235
- const parts = main();
236
- if (parts.length > 0) {
237
- console.log(JSON.stringify({ additionalContext: parts.join('\n\n---\n\n') }));
238
- }