nexakit 0.10.0 → 0.13.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 (479) hide show
  1. package/README.md +13 -6
  2. package/assets/runtime/package-lock.json +415 -6
  3. package/bench/casos/arquitectura/alta-usuarios/base/controladores/usuarios.js +16 -0
  4. package/bench/casos/arquitectura/alta-usuarios/base/db.js +14 -0
  5. package/bench/casos/arquitectura/alta-usuarios/base/docs/adr/0003-capas.md +15 -0
  6. package/bench/casos/arquitectura/alta-usuarios/base/errores.js +3 -0
  7. package/bench/casos/arquitectura/alta-usuarios/base/repositorios/usuarios.js +14 -0
  8. package/bench/casos/arquitectura/alta-usuarios/base/servicios/usuarios.js +20 -0
  9. package/bench/casos/arquitectura/alta-usuarios/cambio/controladores/usuarios.js +47 -0
  10. package/bench/casos/arquitectura/alta-usuarios/cambio/repositorios/usuarios.js +21 -0
  11. package/bench/casos/arquitectura/alta-usuarios/cambio/servicios/perfil.js +14 -0
  12. package/bench/casos/arquitectura/alta-usuarios/esperado.json +53 -0
  13. package/bench/casos/arquitectura/pedidos-facturacion/base/docs/adr/0001-capas.md +18 -0
  14. package/bench/casos/arquitectura/pedidos-facturacion/base/src/aplicacion/confirmar.ts +8 -0
  15. package/bench/casos/arquitectura/pedidos-facturacion/base/src/dominio/pedido.ts +15 -0
  16. package/bench/casos/arquitectura/pedidos-facturacion/base/src/dominio/puertos.ts +6 -0
  17. package/bench/casos/arquitectura/pedidos-facturacion/base/src/infra/db.ts +14 -0
  18. package/bench/casos/arquitectura/pedidos-facturacion/base/src/main.ts +9 -0
  19. package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/aplicacion/facturar.ts +19 -0
  20. package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/dominio/informe.ts +7 -0
  21. package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/dominio/pedido.ts +21 -0
  22. package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/infra/db.ts +22 -0
  23. package/bench/casos/arquitectura/pedidos-facturacion/esperado.json +53 -0
  24. package/bench/casos/arquitectura/resumen-cliente/base/docs/adr/0001-capas.md +18 -0
  25. package/bench/casos/arquitectura/resumen-cliente/base/src/aplicacion/confirmar.ts +8 -0
  26. package/bench/casos/arquitectura/resumen-cliente/base/src/dominio/pedido.ts +15 -0
  27. package/bench/casos/arquitectura/resumen-cliente/base/src/dominio/puertos.ts +6 -0
  28. package/bench/casos/arquitectura/resumen-cliente/base/src/infra/db.ts +14 -0
  29. package/bench/casos/arquitectura/resumen-cliente/base/src/main.ts +9 -0
  30. package/bench/casos/arquitectura/resumen-cliente/cambio/src/aplicacion/resumen.ts +6 -0
  31. package/bench/casos/arquitectura/resumen-cliente/cambio/src/dominio/pedido.ts +33 -0
  32. package/bench/casos/arquitectura/resumen-cliente/cambio/src/dominio/puertos.ts +7 -0
  33. package/bench/casos/arquitectura/resumen-cliente/cambio/src/infra/db.ts +18 -0
  34. package/bench/casos/arquitectura/resumen-cliente/cambio/src/main.ts +14 -0
  35. package/bench/casos/arquitectura/resumen-cliente/esperado.json +23 -0
  36. package/bench/casos/documentacion/comentario-obsoleto/base/README.md +18 -0
  37. package/bench/casos/documentacion/comentario-obsoleto/base/src/usuarios.ts +35 -0
  38. package/bench/casos/documentacion/comentario-obsoleto/cambio/src/copia.ts +8 -0
  39. package/bench/casos/documentacion/comentario-obsoleto/cambio/src/usuarios.ts +43 -0
  40. package/bench/casos/documentacion/comentario-obsoleto/esperado.json +42 -0
  41. package/bench/casos/documentacion/reportes-config/base/README.md +23 -0
  42. package/bench/casos/documentacion/reportes-config/base/src/cli.js +33 -0
  43. package/bench/casos/documentacion/reportes-config/base/src/config.js +15 -0
  44. package/bench/casos/documentacion/reportes-config/base/src/envio.js +23 -0
  45. package/bench/casos/documentacion/reportes-config/cambio/src/cli.js +35 -0
  46. package/bench/casos/documentacion/reportes-config/cambio/src/config.js +15 -0
  47. package/bench/casos/documentacion/reportes-config/esperado.json +42 -0
  48. package/bench/casos/documentacion/tiempo-espera/base/README.md +10 -0
  49. package/bench/casos/documentacion/tiempo-espera/base/src/config.js +8 -0
  50. package/bench/casos/documentacion/tiempo-espera/cambio/README.md +10 -0
  51. package/bench/casos/documentacion/tiempo-espera/cambio/src/config.js +8 -0
  52. package/bench/casos/documentacion/tiempo-espera/esperado.json +16 -0
  53. package/bench/casos/pruebas/calendario-laboral/base/src/fechas.js +3 -0
  54. package/bench/casos/pruebas/calendario-laboral/base/test/fechas.test.js +7 -0
  55. package/bench/casos/pruebas/calendario-laboral/cambio/src/fechas.js +37 -0
  56. package/bench/casos/pruebas/calendario-laboral/cambio/test/calendario.test.js +31 -0
  57. package/bench/casos/pruebas/calendario-laboral/esperado.json +49 -0
  58. package/bench/casos/pruebas/fin-de-semana/base/src/fechas.js +3 -0
  59. package/bench/casos/pruebas/fin-de-semana/base/test/fechas.test.js +7 -0
  60. package/bench/casos/pruebas/fin-de-semana/cambio/src/fechas.js +8 -0
  61. package/bench/casos/pruebas/fin-de-semana/cambio/test/fines-de-semana.test.js +13 -0
  62. package/bench/casos/pruebas/fin-de-semana/esperado.json +16 -0
  63. package/bench/casos/pruebas/precios-carrito/base/src/precio.ts +3 -0
  64. package/bench/casos/pruebas/precios-carrito/base/test/precio.test.js +11 -0
  65. package/bench/casos/pruebas/precios-carrito/cambio/src/precio.ts +34 -0
  66. package/bench/casos/pruebas/precios-carrito/cambio/test/precio.test.js +42 -0
  67. package/bench/casos/pruebas/precios-carrito/esperado.json +42 -0
  68. package/bench/casos/rendimiento/boletin-correo/base/src/correo.html +1 -0
  69. package/bench/casos/rendimiento/boletin-correo/base/src/plantilla.ts +11 -0
  70. package/bench/casos/rendimiento/boletin-correo/cambio/src/envios.ts +44 -0
  71. package/bench/casos/rendimiento/boletin-correo/cambio/src/plantilla.ts +10 -0
  72. package/bench/casos/rendimiento/boletin-correo/esperado.json +42 -0
  73. package/bench/casos/rendimiento/clientes-por-lote/base/src/informe.js +8 -0
  74. package/bench/casos/rendimiento/clientes-por-lote/cambio/src/informe.js +6 -0
  75. package/bench/casos/rendimiento/clientes-por-lote/esperado.json +14 -0
  76. package/bench/casos/rendimiento/informe-ventas/base/src/informe.js +6 -0
  77. package/bench/casos/rendimiento/informe-ventas/base/src/tasas.json +1 -0
  78. package/bench/casos/rendimiento/informe-ventas/cambio/src/informe.js +33 -0
  79. package/bench/casos/rendimiento/informe-ventas/cambio/src/tasas.js +7 -0
  80. package/bench/casos/rendimiento/informe-ventas/esperado.json +42 -0
  81. package/bench/casos/seguridad/inyeccion-orden/base/src/respaldo.ts +13 -0
  82. package/bench/casos/seguridad/inyeccion-orden/cambio/src/respaldo.ts +69 -0
  83. package/bench/casos/seguridad/inyeccion-orden/esperado.json +42 -0
  84. package/bench/casos/seguridad/limpio-validacion/base/servidor.js +11 -0
  85. package/bench/casos/seguridad/limpio-validacion/cambio/servidor.js +39 -0
  86. package/bench/casos/seguridad/limpio-validacion/esperado.json +14 -0
  87. package/bench/casos/seguridad/servidor-archivos/base/servidor.js +21 -0
  88. package/bench/casos/seguridad/servidor-archivos/cambio/servidor.js +79 -0
  89. package/bench/casos/seguridad/servidor-archivos/esperado.json +42 -0
  90. package/bin/nexakit-fabrica-mcp.js +12 -0
  91. package/dist/fabrica/banco/casos.js +304 -0
  92. package/dist/fabrica/banco/ejecutar.js +483 -0
  93. package/dist/fabrica/banco/medir.js +120 -0
  94. package/dist/fabrica/cli.js +737 -0
  95. package/dist/fabrica/conectores/antigravity.js +1040 -0
  96. package/dist/fabrica/conectores/codex.js +967 -0
  97. package/dist/fabrica/conectores/tipos.js +8 -0
  98. package/dist/fabrica/config.js +44 -0
  99. package/dist/fabrica/consolidar.js +218 -0
  100. package/dist/fabrica/decision.js +210 -0
  101. package/dist/fabrica/diff.js +247 -0
  102. package/dist/fabrica/disco.js +356 -0
  103. package/dist/fabrica/ejecutor.js +597 -0
  104. package/dist/fabrica/encargo/candado.js +274 -0
  105. package/dist/fabrica/encargo/ejecutar.js +827 -0
  106. package/dist/fabrica/encargo/evidencia.js +308 -0
  107. package/dist/fabrica/encargo/parche.js +146 -0
  108. package/dist/fabrica/encargo/worktree.js +394 -0
  109. package/dist/fabrica/enrutador.js +425 -0
  110. package/dist/fabrica/errores.js +14 -0
  111. package/dist/fabrica/esquemas.js +57 -0
  112. package/dist/fabrica/estaciones.js +75 -0
  113. package/dist/fabrica/evidencia.js +406 -0
  114. package/dist/fabrica/indice.js +1 -0
  115. package/dist/fabrica/jsonrpc.js +274 -0
  116. package/dist/fabrica/lecciones.js +363 -0
  117. package/dist/fabrica/mcp.js +376 -0
  118. package/dist/fabrica/preferencias.js +56 -0
  119. package/dist/fabrica/protocolos/codex/AbsolutePathBuf.js +2 -0
  120. package/dist/fabrica/protocolos/codex/ApplyPatchApprovalResponse.js +2 -0
  121. package/dist/fabrica/protocolos/codex/ClientInfo.js +2 -0
  122. package/dist/fabrica/protocolos/codex/ExecCommandApprovalParams.js +2 -0
  123. package/dist/fabrica/protocolos/codex/ExecCommandApprovalResponse.js +2 -0
  124. package/dist/fabrica/protocolos/codex/ExecPolicyAmendment.js +2 -0
  125. package/dist/fabrica/protocolos/codex/FunctionCallOutputBody.js +2 -0
  126. package/dist/fabrica/protocolos/codex/FunctionCallOutputContentItem.js +2 -0
  127. package/dist/fabrica/protocolos/codex/ImageDetail.js +2 -0
  128. package/dist/fabrica/protocolos/codex/InitializeCapabilities.js +2 -0
  129. package/dist/fabrica/protocolos/codex/InitializeParams.js +2 -0
  130. package/dist/fabrica/protocolos/codex/InitializeResponse.js +2 -0
  131. package/dist/fabrica/protocolos/codex/InputModality.js +2 -0
  132. package/dist/fabrica/protocolos/codex/LegacyAppPathString.js +2 -0
  133. package/dist/fabrica/protocolos/codex/NetworkPolicyAmendment.js +2 -0
  134. package/dist/fabrica/protocolos/codex/NetworkPolicyRuleAction.js +2 -0
  135. package/dist/fabrica/protocolos/codex/ParsedCommand.js +2 -0
  136. package/dist/fabrica/protocolos/codex/Personality.js +2 -0
  137. package/dist/fabrica/protocolos/codex/ReasoningEffort.js +2 -0
  138. package/dist/fabrica/protocolos/codex/ReasoningSummary.js +2 -0
  139. package/dist/fabrica/protocolos/codex/ReviewDecision.js +2 -0
  140. package/dist/fabrica/protocolos/codex/ThreadId.js +2 -0
  141. package/dist/fabrica/protocolos/codex/serde_json/JsonValue.js +2 -0
  142. package/dist/fabrica/protocolos/codex/v2/AdditionalFileSystemPermissions.js +2 -0
  143. package/dist/fabrica/protocolos/codex/v2/AdditionalNetworkPermissions.js +2 -0
  144. package/dist/fabrica/protocolos/codex/v2/ApprovalsReviewer.js +2 -0
  145. package/dist/fabrica/protocolos/codex/v2/AskForApproval.js +2 -0
  146. package/dist/fabrica/protocolos/codex/v2/ByteRange.js +2 -0
  147. package/dist/fabrica/protocolos/codex/v2/CommandAction.js +2 -0
  148. package/dist/fabrica/protocolos/codex/v2/CommandExecutionApprovalDecision.js +2 -0
  149. package/dist/fabrica/protocolos/codex/v2/CommandExecutionApprovalKind.js +2 -0
  150. package/dist/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalParams.js +2 -0
  151. package/dist/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalResponse.js +2 -0
  152. package/dist/fabrica/protocolos/codex/v2/ConfigReadParams.js +2 -0
  153. package/dist/fabrica/protocolos/codex/v2/CyberAccessProgram.js +2 -0
  154. package/dist/fabrica/protocolos/codex/v2/ExecPolicyAmendment.js +2 -0
  155. package/dist/fabrica/protocolos/codex/v2/FileChangeApprovalDecision.js +2 -0
  156. package/dist/fabrica/protocolos/codex/v2/FileChangeRequestApprovalResponse.js +2 -0
  157. package/dist/fabrica/protocolos/codex/v2/FileSystemAccessMode.js +2 -0
  158. package/dist/fabrica/protocolos/codex/v2/FileSystemPath.js +2 -0
  159. package/dist/fabrica/protocolos/codex/v2/FileSystemSandboxEntry.js +2 -0
  160. package/dist/fabrica/protocolos/codex/v2/FileSystemSpecialPath.js +2 -0
  161. package/dist/fabrica/protocolos/codex/v2/GrantedPermissionProfile.js +2 -0
  162. package/dist/fabrica/protocolos/codex/v2/ListMcpServerStatusParams.js +2 -0
  163. package/dist/fabrica/protocolos/codex/v2/McpServerElicitationAction.js +2 -0
  164. package/dist/fabrica/protocolos/codex/v2/McpServerElicitationRequestResponse.js +2 -0
  165. package/dist/fabrica/protocolos/codex/v2/McpServerStatusDetail.js +2 -0
  166. package/dist/fabrica/protocolos/codex/v2/Model.js +2 -0
  167. package/dist/fabrica/protocolos/codex/v2/ModelAccessPrograms.js +2 -0
  168. package/dist/fabrica/protocolos/codex/v2/ModelAvailabilityNux.js +2 -0
  169. package/dist/fabrica/protocolos/codex/v2/ModelListParams.js +2 -0
  170. package/dist/fabrica/protocolos/codex/v2/ModelListResponse.js +2 -0
  171. package/dist/fabrica/protocolos/codex/v2/ModelServiceTier.js +2 -0
  172. package/dist/fabrica/protocolos/codex/v2/ModelUpgradeInfo.js +2 -0
  173. package/dist/fabrica/protocolos/codex/v2/MultiAgentVersion.js +2 -0
  174. package/dist/fabrica/protocolos/codex/v2/NetworkAccess.js +2 -0
  175. package/dist/fabrica/protocolos/codex/v2/NetworkApprovalContext.js +2 -0
  176. package/dist/fabrica/protocolos/codex/v2/NetworkApprovalProtocol.js +2 -0
  177. package/dist/fabrica/protocolos/codex/v2/NetworkPolicyAmendment.js +2 -0
  178. package/dist/fabrica/protocolos/codex/v2/NetworkPolicyRuleAction.js +2 -0
  179. package/dist/fabrica/protocolos/codex/v2/PermissionGrantScope.js +2 -0
  180. package/dist/fabrica/protocolos/codex/v2/PermissionsRequestApprovalResponse.js +2 -0
  181. package/dist/fabrica/protocolos/codex/v2/ReasoningEffortOption.js +2 -0
  182. package/dist/fabrica/protocolos/codex/v2/SandboxMode.js +2 -0
  183. package/dist/fabrica/protocolos/codex/v2/SandboxPolicy.js +2 -0
  184. package/dist/fabrica/protocolos/codex/v2/TextElement.js +2 -0
  185. package/dist/fabrica/protocolos/codex/v2/ThreadSource.js +2 -0
  186. package/dist/fabrica/protocolos/codex/v2/ThreadStartParams.js +2 -0
  187. package/dist/fabrica/protocolos/codex/v2/ThreadStartSource.js +2 -0
  188. package/dist/fabrica/protocolos/codex/v2/ThreadTokenUsage.js +2 -0
  189. package/dist/fabrica/protocolos/codex/v2/ThreadTokenUsageUpdatedNotification.js +2 -0
  190. package/dist/fabrica/protocolos/codex/v2/TokenUsageBreakdown.js +2 -0
  191. package/dist/fabrica/protocolos/codex/v2/ToolRequestUserInputAnswer.js +2 -0
  192. package/dist/fabrica/protocolos/codex/v2/ToolRequestUserInputResponse.js +2 -0
  193. package/dist/fabrica/protocolos/codex/v2/TurnInterruptParams.js +2 -0
  194. package/dist/fabrica/protocolos/codex/v2/TurnStartParams.js +2 -0
  195. package/dist/fabrica/protocolos/codex/v2/TurnToolOutput.js +2 -0
  196. package/dist/fabrica/protocolos/codex/v2/UserInput.js +2 -0
  197. package/dist/fabrica/rastro.js +487 -0
  198. package/dist/fabrica/sesion.js +230 -0
  199. package/dist/fabrica/tabla-modelos.json +29 -0
  200. package/dist/fabrica/veredictos.js +327 -0
  201. package/package.json +16 -8
  202. package/plugins/huellas.json +6 -6
  203. package/plugins/nexakit-lecciones/.claude-plugin/plugin.json +1 -1
  204. package/plugins/nexakit-lecciones/README.md +6 -5
  205. package/plugins/nexakit-lecciones/hooks/lecciones.js +29 -5
  206. package/plugins/nexakit-lecciones/hooks/register.js +7 -3
  207. package/plugins/nexakit-modelo/.claude-plugin/plugin.json +1 -1
  208. package/plugins/nexakit-modelo/hooks/barra.js +100 -4
  209. package/plugins/nexakit-modelo/hooks/decidir.js +2 -2
  210. package/plugins/nexakit-modelo/hooks/recomendar.js +1 -1
  211. package/plugins/nexakit-modelo/hooks/register.js +122 -7
  212. package/plugins/nexakit-modelo/tests/register.test.ts +301 -0
  213. package/plugins/niveles/.claude-plugin/plugin.json +1 -1
  214. package/plugins/niveles/agents/cazador-de-flakes.md +1 -0
  215. package/plugins/niveles/agents/cierre-de-memoria.md +1 -0
  216. package/plugins/niveles/agents/investigador.md +1 -0
  217. package/plugins/niveles/agents/nivel-alto.md +1 -0
  218. package/plugins/niveles/agents/nivel-exigente.md +1 -0
  219. package/plugins/niveles/agents/nivel-ligero.md +1 -0
  220. package/plugins/niveles/agents/nivel-normal.md +1 -0
  221. package/plugins/niveles/agents/revisor-de-calidad.md +1 -0
  222. package/plugins/niveles/agents/sincronizador-docs.md +1 -0
  223. package/plugins/niveles/agents/subir-al-repo.md +1 -0
  224. package/skills/elegir-modelo/SKILL.md +4 -3
  225. package/skills/elegir-modelo/modelos.mjs +100 -1
  226. package/skills/fabrica/SKILL.md +55 -0
  227. package/skills/gemini/SKILL.md +2 -3
  228. package/skills/quality-gate/SKILL.md +2 -2
  229. package/src/agent-models.js +6 -4
  230. package/src/antigravity-barra.js +64 -12
  231. package/src/antigravity-command.js +4 -2
  232. package/src/antigravity-models.js +61 -0
  233. package/src/antigravity-pre-tool.js +11 -3
  234. package/src/antigravity-recommendation.js +15 -9
  235. package/src/antigravity-setup.js +4 -31
  236. package/src/cli-executable.d.ts +11 -0
  237. package/src/codex-pre-tool.js +3 -3
  238. package/src/codex-recommendation.js +1 -2
  239. package/src/codex-setup.js +3 -20
  240. package/src/codex-team.js +31 -4
  241. package/src/fabrica/banco/casos.ts +315 -0
  242. package/src/fabrica/banco/ejecutar.ts +587 -0
  243. package/src/fabrica/banco/medir.ts +160 -0
  244. package/src/fabrica/cli.ts +781 -0
  245. package/src/fabrica/conectores/antigravity.ts +1090 -0
  246. package/src/fabrica/conectores/codex.ts +1013 -0
  247. package/src/fabrica/conectores/tipos.ts +54 -0
  248. package/src/fabrica/config.ts +43 -0
  249. package/src/fabrica/consolidar.ts +277 -0
  250. package/src/fabrica/decision.ts +285 -0
  251. package/src/fabrica/diff.ts +294 -0
  252. package/src/fabrica/disco.ts +380 -0
  253. package/src/fabrica/ejecutor.ts +716 -0
  254. package/src/fabrica/encargo/candado.ts +287 -0
  255. package/src/fabrica/encargo/ejecutar.ts +953 -0
  256. package/src/fabrica/encargo/evidencia.ts +301 -0
  257. package/src/fabrica/encargo/parche.ts +151 -0
  258. package/src/fabrica/encargo/worktree.ts +427 -0
  259. package/src/fabrica/enrutador.ts +494 -0
  260. package/src/fabrica/errores.ts +15 -0
  261. package/src/fabrica/esquemas.ts +92 -0
  262. package/src/fabrica/estaciones.ts +83 -0
  263. package/src/fabrica/evidencia.ts +445 -0
  264. package/src/fabrica/indice.ts +1 -0
  265. package/src/fabrica/jsonrpc.ts +314 -0
  266. package/src/fabrica/lecciones.ts +411 -0
  267. package/src/fabrica/mcp.ts +450 -0
  268. package/src/fabrica/preferencias.ts +66 -0
  269. package/src/fabrica/protocolos/codex/AbsolutePathBuf.ts +14 -0
  270. package/src/fabrica/protocolos/codex/ApplyPatchApprovalResponse.ts +6 -0
  271. package/src/fabrica/protocolos/codex/ClientInfo.ts +5 -0
  272. package/src/fabrica/protocolos/codex/ExecCommandApprovalParams.ts +16 -0
  273. package/src/fabrica/protocolos/codex/ExecCommandApprovalResponse.ts +6 -0
  274. package/src/fabrica/protocolos/codex/ExecPolicyAmendment.ts +12 -0
  275. package/src/fabrica/protocolos/codex/FunctionCallOutputBody.ts +6 -0
  276. package/src/fabrica/protocolos/codex/FunctionCallOutputContentItem.ts +10 -0
  277. package/src/fabrica/protocolos/codex/ImageDetail.ts +5 -0
  278. package/src/fabrica/protocolos/codex/InitializeCapabilities.ts +42 -0
  279. package/src/fabrica/protocolos/codex/InitializeParams.ts +7 -0
  280. package/src/fabrica/protocolos/codex/InitializeResponse.ts +20 -0
  281. package/src/fabrica/protocolos/codex/InputModality.ts +8 -0
  282. package/src/fabrica/protocolos/codex/LegacyAppPathString.ts +27 -0
  283. package/src/fabrica/protocolos/codex/NetworkPolicyAmendment.ts +6 -0
  284. package/src/fabrica/protocolos/codex/NetworkPolicyRuleAction.ts +5 -0
  285. package/src/fabrica/protocolos/codex/ParsedCommand.ts +12 -0
  286. package/src/fabrica/protocolos/codex/Personality.ts +8 -0
  287. package/src/fabrica/protocolos/codex/ReasoningEffort.ts +8 -0
  288. package/src/fabrica/protocolos/codex/ReasoningSummary.ts +10 -0
  289. package/src/fabrica/protocolos/codex/ReviewDecision.ts +10 -0
  290. package/src/fabrica/protocolos/codex/ThreadId.ts +10 -0
  291. package/src/fabrica/protocolos/codex/VERSION +1 -0
  292. package/src/fabrica/protocolos/codex/serde_json/JsonValue.ts +5 -0
  293. package/src/fabrica/protocolos/codex/v2/AdditionalFileSystemPermissions.ts +15 -0
  294. package/src/fabrica/protocolos/codex/v2/AdditionalNetworkPermissions.ts +5 -0
  295. package/src/fabrica/protocolos/codex/v2/ApprovalsReviewer.ts +12 -0
  296. package/src/fabrica/protocolos/codex/v2/AskForApproval.ts +5 -0
  297. package/src/fabrica/protocolos/codex/v2/ByteRange.ts +5 -0
  298. package/src/fabrica/protocolos/codex/v2/CommandAction.ts +6 -0
  299. package/src/fabrica/protocolos/codex/v2/CommandExecutionApprovalDecision.ts +7 -0
  300. package/src/fabrica/protocolos/codex/v2/CommandExecutionApprovalKind.ts +8 -0
  301. package/src/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalParams.ts +51 -0
  302. package/src/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalResponse.ts +6 -0
  303. package/src/fabrica/protocolos/codex/v2/ConfigReadParams.ts +11 -0
  304. package/src/fabrica/protocolos/codex/v2/CyberAccessProgram.ts +9 -0
  305. package/src/fabrica/protocolos/codex/v2/ExecPolicyAmendment.ts +5 -0
  306. package/src/fabrica/protocolos/codex/v2/FileChangeApprovalDecision.ts +5 -0
  307. package/src/fabrica/protocolos/codex/v2/FileChangeRequestApprovalResponse.ts +6 -0
  308. package/src/fabrica/protocolos/codex/v2/FileSystemAccessMode.ts +5 -0
  309. package/src/fabrica/protocolos/codex/v2/FileSystemPath.ts +7 -0
  310. package/src/fabrica/protocolos/codex/v2/FileSystemSandboxEntry.ts +7 -0
  311. package/src/fabrica/protocolos/codex/v2/FileSystemSpecialPath.ts +6 -0
  312. package/src/fabrica/protocolos/codex/v2/GrantedPermissionProfile.ts +7 -0
  313. package/src/fabrica/protocolos/codex/v2/ListMcpServerStatusParams.ts +23 -0
  314. package/src/fabrica/protocolos/codex/v2/McpServerElicitationAction.ts +5 -0
  315. package/src/fabrica/protocolos/codex/v2/McpServerElicitationRequestResponse.ts +17 -0
  316. package/src/fabrica/protocolos/codex/v2/McpServerStatusDetail.ts +5 -0
  317. package/src/fabrica/protocolos/codex/v2/Model.ts +33 -0
  318. package/src/fabrica/protocolos/codex/v2/ModelAccessPrograms.ts +13 -0
  319. package/src/fabrica/protocolos/codex/v2/ModelAvailabilityNux.ts +5 -0
  320. package/src/fabrica/protocolos/codex/v2/ModelListParams.ts +17 -0
  321. package/src/fabrica/protocolos/codex/v2/ModelListResponse.ts +11 -0
  322. package/src/fabrica/protocolos/codex/v2/ModelServiceTier.ts +5 -0
  323. package/src/fabrica/protocolos/codex/v2/ModelUpgradeInfo.ts +9 -0
  324. package/src/fabrica/protocolos/codex/v2/MultiAgentVersion.ts +8 -0
  325. package/src/fabrica/protocolos/codex/v2/NetworkAccess.ts +5 -0
  326. package/src/fabrica/protocolos/codex/v2/NetworkApprovalContext.ts +6 -0
  327. package/src/fabrica/protocolos/codex/v2/NetworkApprovalProtocol.ts +5 -0
  328. package/src/fabrica/protocolos/codex/v2/NetworkPolicyAmendment.ts +6 -0
  329. package/src/fabrica/protocolos/codex/v2/NetworkPolicyRuleAction.ts +5 -0
  330. package/src/fabrica/protocolos/codex/v2/PermissionGrantScope.ts +5 -0
  331. package/src/fabrica/protocolos/codex/v2/PermissionsRequestApprovalResponse.ts +11 -0
  332. package/src/fabrica/protocolos/codex/v2/ReasoningEffortOption.ts +6 -0
  333. package/src/fabrica/protocolos/codex/v2/SandboxMode.ts +5 -0
  334. package/src/fabrica/protocolos/codex/v2/SandboxPolicy.ts +7 -0
  335. package/src/fabrica/protocolos/codex/v2/TextElement.ts +14 -0
  336. package/src/fabrica/protocolos/codex/v2/ThreadSource.ts +5 -0
  337. package/src/fabrica/protocolos/codex/v2/ThreadStartParams.ts +22 -0
  338. package/src/fabrica/protocolos/codex/v2/ThreadStartSource.ts +5 -0
  339. package/src/fabrica/protocolos/codex/v2/ThreadTokenUsage.ts +6 -0
  340. package/src/fabrica/protocolos/codex/v2/ThreadTokenUsageUpdatedNotification.ts +6 -0
  341. package/src/fabrica/protocolos/codex/v2/TokenUsageBreakdown.ts +5 -0
  342. package/src/fabrica/protocolos/codex/v2/ToolRequestUserInputAnswer.ts +8 -0
  343. package/src/fabrica/protocolos/codex/v2/ToolRequestUserInputResponse.ts +9 -0
  344. package/src/fabrica/protocolos/codex/v2/TurnInterruptParams.ts +5 -0
  345. package/src/fabrica/protocolos/codex/v2/TurnStartParams.ts +75 -0
  346. package/src/fabrica/protocolos/codex/v2/TurnToolOutput.ts +10 -0
  347. package/src/fabrica/protocolos/codex/v2/UserInput.ts +11 -0
  348. package/src/fabrica/rastro.ts +508 -0
  349. package/src/fabrica/sesion.ts +280 -0
  350. package/src/fabrica/tabla-modelos.json +29 -0
  351. package/src/fabrica/veredictos.ts +365 -0
  352. package/src/gemini-cli.js +15 -12
  353. package/src/gemini-tools.js +1 -1
  354. package/src/gemini-usage-store.js +32 -0
  355. package/src/instructions-block.js +69 -0
  356. package/src/lecciones-command.js +105 -4
  357. package/src/lecciones-instructions.js +178 -0
  358. package/src/legacy-repair.js +1 -1
  359. package/src/level-agents.js +5 -3
  360. package/src/memory-mcp-policy.js +1 -1
  361. package/src/missing-dependencies.js +5 -0
  362. package/src/model-command.d.ts +29 -0
  363. package/src/model-command.js +4 -27
  364. package/src/regla-ordenes-simples.d.ts +2 -0
  365. package/src/regla-ordenes-simples.js +4 -0
  366. package/src/review-instructions.js +69 -81
  367. package/src/safe-paths.js +38 -0
  368. package/src/setup-apply.js +24 -2
  369. package/src/setup-plan.js +57 -1
  370. package/src/setup-state.js +14 -0
  371. package/src/shell-quote.js +2 -0
  372. package/src/skill-recommendations.js +101 -28
  373. package/src/stable-command.js +2 -2
  374. package/src/stable-install.js +4 -2
  375. package/src/superpowers.js +0 -7
  376. package/src/task-document.js +59 -0
  377. package/src/terminal-text.js +2 -19
  378. package/src/toolkit-cli.js +63 -8
  379. package/src/toolkit-setup.js +192 -37
  380. package/templates/agent-team/README.md +7 -19
  381. package/bin/agent-task.js +0 -14
  382. package/bin/agent-toolkit-inbox.js +0 -14
  383. package/bin/agent-toolkit-mcp.js +0 -17
  384. package/schemas/agent-client-adapter.schema.json +0 -786
  385. package/schemas/agent-client-auth-diagnostic.schema.json +0 -801
  386. package/schemas/agent-client-isolated-variant.schema.json +0 -105
  387. package/schemas/agent-client-isolated-verification.schema.json +0 -99
  388. package/schemas/agent-client-managed-preferences-invocation.schema.json +0 -67
  389. package/schemas/agent-client-managed-preferences.schema.json +0 -63
  390. package/schemas/agent-client-native-diagnostics.schema.json +0 -85
  391. package/schemas/agent-client-native-evaluation.schema.json +0 -171
  392. package/schemas/agent-client-native-preflight.schema.json +0 -90
  393. package/schemas/agent-client-output.schema.json +0 -551
  394. package/schemas/agent-client-runtime-fixture.schema.json +0 -90
  395. package/schemas/agent-client-runtime-local.schema.json +0 -95
  396. package/schemas/agent-client-runtime.schema.json +0 -1288
  397. package/schemas/agent-client-selective-config.schema.json +0 -77
  398. package/schemas/agent-client-supervised-local.schema.json +0 -135
  399. package/schemas/agent-client-supervised.schema.json +0 -186
  400. package/schemas/agent-task-approvals.schema.json +0 -362
  401. package/schemas/agent-task-prepare.schema.json +0 -1324
  402. package/schemas/agent-task-verify.schema.json +0 -198
  403. package/schemas/task-workflow-plan-output.schema.json +0 -35
  404. package/skills/revisar/SKILL.md +0 -51
  405. package/src/claude-code-runner.js +0 -642
  406. package/src/client-adapter-plan.js +0 -271
  407. package/src/client-auth-diagnostic-parser.js +0 -211
  408. package/src/client-auth-diagnostic.js +0 -257
  409. package/src/client-isolated-variant.js +0 -106
  410. package/src/client-isolated-verification.js +0 -130
  411. package/src/client-local-platform.js +0 -14
  412. package/src/client-managed-preferences-invocation.js +0 -209
  413. package/src/client-managed-preferences.js +0 -78
  414. package/src/client-native-access.js +0 -134
  415. package/src/client-native-diagnostics.js +0 -253
  416. package/src/client-native-evaluation.js +0 -106
  417. package/src/client-native-preflight-files.js +0 -68
  418. package/src/client-native-preflight.js +0 -95
  419. package/src/client-output-parser.js +0 -278
  420. package/src/client-runtime-admission.js +0 -80
  421. package/src/client-runtime-coordinator.js +0 -70
  422. package/src/client-runtime-core.js +0 -92
  423. package/src/client-runtime-fixture-permit.js +0 -20
  424. package/src/client-runtime-fixture-protocol.js +0 -39
  425. package/src/client-runtime-state.js +0 -67
  426. package/src/client-runtime-store-files.js +0 -91
  427. package/src/client-runtime-store.js +0 -239
  428. package/src/client-runtime-supervisor.js +0 -146
  429. package/src/client-selective-config.js +0 -195
  430. package/src/client-selective-files.js +0 -126
  431. package/src/client-supervised-codes.js +0 -32
  432. package/src/client-supervised-contract.js +0 -52
  433. package/src/client-supervised-coordinator.js +0 -36
  434. package/src/client-supervised-permit.js +0 -20
  435. package/src/client-supervised-protocol.js +0 -37
  436. package/src/client-supervised-store.js +0 -167
  437. package/src/client-supervised-supervisor.js +0 -167
  438. package/src/client-supervised.js +0 -160
  439. package/src/codex-cli-runner.js +0 -358
  440. package/src/codex-delivery.js +0 -101
  441. package/src/memory-connection-artifacts.js +0 -192
  442. package/src/memory-connection-descriptor.js +0 -158
  443. package/src/memory-connection-diagnostic.js +0 -177
  444. package/src/memory-connection-files.js +0 -191
  445. package/src/memory-connection-manifest.js +0 -118
  446. package/src/memory-connection-package.js +0 -176
  447. package/src/memory-connection-plan.js +0 -217
  448. package/src/memory-connection-skill.js +0 -211
  449. package/src/memory-connection-toml.js +0 -153
  450. package/src/native/managed-preferences.c +0 -100
  451. package/src/native/managed-preferences.h +0 -17
  452. package/src/package-lock-path.js +0 -13
  453. package/src/peer-handoff.js +0 -27
  454. package/src/peer-inbox-cli.js +0 -211
  455. package/src/peer-review-mcp.js +0 -210
  456. package/src/peer-review-store.js +0 -532
  457. package/src/review-policy.js +0 -35
  458. package/src/revision-adapters.js +0 -158
  459. package/src/revision-context.js +0 -86
  460. package/src/revision-isolation.js +0 -222
  461. package/src/revision-process.js +0 -103
  462. package/src/revision-provenance.js +0 -89
  463. package/src/revision-snapshot.js +0 -120
  464. package/src/revision.js +0 -242
  465. package/src/runtime-fixtures/runtime-supervisor/child.cjs +0 -3
  466. package/src/runtime-fixtures/runtime-supervisor/fixture.cjs +0 -49
  467. package/src/runtime-fixtures/supervised/child.cjs +0 -3
  468. package/src/runtime-fixtures/supervised/fixture.cjs +0 -47
  469. package/src/task-approvals.js +0 -367
  470. package/src/task-cli.js +0 -79
  471. package/src/task-external-verifier.js +0 -584
  472. package/src/task-prepare-files.js +0 -115
  473. package/src/task-prepare.js +0 -180
  474. package/src/task-verify-cli.js +0 -67
  475. package/src/task-verify-files.js +0 -188
  476. package/src/task-verify.js +0 -118
  477. package/src/task-workflow-mcp.js +0 -544
  478. package/src/task-workflow-store.js +0 -254
  479. package/src/toolkit-commands-guide.js +0 -115
@@ -1,1324 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://agent-toolkit.local/schemas/agent-task-prepare.schema.json",
4
- "$defs": {
5
- "identity": {
6
- "type": "object",
7
- "additionalProperties": false,
8
- "required": [
9
- "projectId",
10
- "taskId",
11
- "revision",
12
- "role",
13
- "mode"
14
- ],
15
- "properties": {
16
- "projectId": {
17
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
18
- },
19
- "taskId": {
20
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
21
- },
22
- "revision": {
23
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/revision"
24
- },
25
- "role": {
26
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/role"
27
- },
28
- "mode": {
29
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/mode"
30
- },
31
- "purpose": {
32
- "enum": [
33
- "external-verifier"
34
- ]
35
- }
36
- }
37
- },
38
- "file": {
39
- "type": "object",
40
- "additionalProperties": false,
41
- "required": [
42
- "path",
43
- "operation",
44
- "expectedBase"
45
- ],
46
- "properties": {
47
- "path": {
48
- "type": "string",
49
- "minLength": 1,
50
- "maxLength": 512
51
- },
52
- "operation": {
53
- "enum": [
54
- "inspect",
55
- "modify",
56
- "create"
57
- ]
58
- },
59
- "expectedBase": {
60
- "anyOf": [
61
- {
62
- "type": "string",
63
- "pattern": "^[a-f0-9]{64}$"
64
- },
65
- {
66
- "const": "absent"
67
- }
68
- ]
69
- }
70
- }
71
- },
72
- "context": {
73
- "type": "object",
74
- "additionalProperties": false,
75
- "required": [
76
- "id",
77
- "kind",
78
- "locator",
79
- "sha256"
80
- ],
81
- "properties": {
82
- "id": {
83
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
84
- },
85
- "kind": {
86
- "enum": [
87
- "source",
88
- "memory",
89
- "decision",
90
- "instructions",
91
- "evidence"
92
- ]
93
- },
94
- "locator": {
95
- "type": "string",
96
- "minLength": 1,
97
- "maxLength": 4096
98
- },
99
- "sha256": {
100
- "anyOf": [
101
- {
102
- "type": "string",
103
- "pattern": "^[a-f0-9]{64}$"
104
- },
105
- {
106
- "type": "null"
107
- }
108
- ]
109
- }
110
- }
111
- },
112
- "delivery": {
113
- "type": "object",
114
- "additionalProperties": false,
115
- "required": [
116
- "revision",
117
- "locator",
118
- "sha256"
119
- ],
120
- "properties": {
121
- "revision": {
122
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/revision"
123
- },
124
- "locator": {
125
- "type": "string",
126
- "minLength": 1,
127
- "maxLength": 4096
128
- },
129
- "sha256": {
130
- "type": "string",
131
- "pattern": "^[a-f0-9]{64}$"
132
- }
133
- }
134
- },
135
- "task": {
136
- "type": "object",
137
- "additionalProperties": false,
138
- "required": [
139
- "kind",
140
- "schemaVersion",
141
- "identity",
142
- "title",
143
- "objective",
144
- "step",
145
- "base",
146
- "projectRules",
147
- "scope",
148
- "contextRefs",
149
- "previousDeliveries",
150
- "proposalRef",
151
- "criteria",
152
- "checks",
153
- "deliveryInstructions"
154
- ],
155
- "properties": {
156
- "kind": {
157
- "const": "agent-task-brief"
158
- },
159
- "schemaVersion": {
160
- "enum": [
161
- "1.0.0",
162
- "1.1.0"
163
- ]
164
- },
165
- "identity": {
166
- "$ref": "#/$defs/identity"
167
- },
168
- "title": {
169
- "type": "string",
170
- "minLength": 1,
171
- "maxLength": 160
172
- },
173
- "objective": {
174
- "type": "string",
175
- "minLength": 1,
176
- "maxLength": 2000
177
- },
178
- "step": {
179
- "anyOf": [
180
- {
181
- "type": "object",
182
- "additionalProperties": false,
183
- "required": [
184
- "number",
185
- "description"
186
- ],
187
- "properties": {
188
- "number": {
189
- "type": "integer",
190
- "minimum": 1,
191
- "maximum": 10000
192
- },
193
- "description": {
194
- "type": "string",
195
- "minLength": 1,
196
- "maxLength": 1000
197
- }
198
- }
199
- },
200
- {
201
- "type": "null"
202
- }
203
- ]
204
- },
205
- "base": {
206
- "type": "object",
207
- "additionalProperties": false,
208
- "required": [
209
- "repositoryRoot",
210
- "branch",
211
- "head",
212
- "initialGitState",
213
- "instructionRefs"
214
- ],
215
- "properties": {
216
- "repositoryRoot": {
217
- "type": "string",
218
- "minLength": 1,
219
- "maxLength": 4096
220
- },
221
- "branch": {
222
- "type": "string",
223
- "minLength": 1,
224
- "maxLength": 1000
225
- },
226
- "head": {
227
- "type": "string",
228
- "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
229
- },
230
- "initialGitState": {
231
- "type": "array",
232
- "minItems": 0,
233
- "maxItems": 32,
234
- "items": {
235
- "type": "object",
236
- "additionalProperties": false,
237
- "required": [
238
- "path",
239
- "operation",
240
- "owner"
241
- ],
242
- "properties": {
243
- "path": {
244
- "type": "string",
245
- "minLength": 1,
246
- "maxLength": 512
247
- },
248
- "operation": {
249
- "enum": [
250
- "modified",
251
- "added",
252
- "deleted",
253
- "untracked"
254
- ]
255
- },
256
- "owner": {
257
- "enum": [
258
- "task",
259
- "other",
260
- "unknown"
261
- ]
262
- }
263
- }
264
- }
265
- },
266
- "instructionRefs": {
267
- "type": "array",
268
- "minItems": 1,
269
- "maxItems": 32,
270
- "items": {
271
- "$ref": "#/$defs/context"
272
- }
273
- }
274
- }
275
- },
276
- "projectRules": {
277
- "type": "object",
278
- "additionalProperties": false,
279
- "required": [
280
- "allowedModes",
281
- "activeWriter",
282
- "forbiddenActions"
283
- ],
284
- "properties": {
285
- "allowedModes": {
286
- "type": "array",
287
- "minItems": 1,
288
- "maxItems": 2,
289
- "items": {
290
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/mode"
291
- },
292
- "uniqueItems": true
293
- },
294
- "activeWriter": {
295
- "enum": [
296
- "user",
297
- "authorized-executor"
298
- ]
299
- },
300
- "forbiddenActions": {
301
- "type": "array",
302
- "minItems": 0,
303
- "maxItems": 5,
304
- "items": {
305
- "enum": [
306
- "read",
307
- "explain",
308
- "propose",
309
- "apply",
310
- "verify"
311
- ]
312
- },
313
- "uniqueItems": true
314
- }
315
- }
316
- },
317
- "scope": {
318
- "type": "object",
319
- "additionalProperties": false,
320
- "required": [
321
- "included",
322
- "excluded",
323
- "files"
324
- ],
325
- "properties": {
326
- "included": {
327
- "type": "string",
328
- "minLength": 1,
329
- "maxLength": 1000
330
- },
331
- "excluded": {
332
- "type": "string",
333
- "minLength": 1,
334
- "maxLength": 1000
335
- },
336
- "files": {
337
- "type": "array",
338
- "minItems": 1,
339
- "maxItems": 64,
340
- "items": {
341
- "$ref": "#/$defs/file"
342
- }
343
- }
344
- }
345
- },
346
- "contextRefs": {
347
- "type": "array",
348
- "minItems": 0,
349
- "maxItems": 32,
350
- "items": {
351
- "$ref": "#/$defs/context"
352
- }
353
- },
354
- "previousDeliveries": {
355
- "type": "array",
356
- "minItems": 0,
357
- "maxItems": 32,
358
- "items": {
359
- "$ref": "#/$defs/delivery"
360
- }
361
- },
362
- "proposalRef": {
363
- "anyOf": [
364
- {
365
- "$ref": "#/$defs/delivery"
366
- },
367
- {
368
- "type": "null"
369
- }
370
- ]
371
- },
372
- "criteria": {
373
- "type": "array",
374
- "minItems": 1,
375
- "maxItems": 32,
376
- "items": {
377
- "type": "object",
378
- "additionalProperties": false,
379
- "required": [
380
- "id",
381
- "result",
382
- "verification"
383
- ],
384
- "properties": {
385
- "id": {
386
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
387
- },
388
- "result": {
389
- "type": "string",
390
- "minLength": 1,
391
- "maxLength": 1000
392
- },
393
- "verification": {
394
- "type": "string",
395
- "minLength": 1,
396
- "maxLength": 1000
397
- }
398
- }
399
- }
400
- },
401
- "checks": {
402
- "type": "array",
403
- "minItems": 0,
404
- "maxItems": 16,
405
- "items": {
406
- "type": "object",
407
- "additionalProperties": false,
408
- "required": [
409
- "command",
410
- "directory"
411
- ],
412
- "properties": {
413
- "command": {
414
- "type": "string",
415
- "minLength": 1,
416
- "maxLength": 1000
417
- },
418
- "directory": {
419
- "type": "string",
420
- "minLength": 1,
421
- "maxLength": 512
422
- }
423
- }
424
- }
425
- },
426
- "deliveryInstructions": {
427
- "type": "string",
428
- "minLength": 1,
429
- "maxLength": 1000
430
- }
431
- },
432
- "allOf": [
433
- {
434
- "if": {
435
- "type": "object",
436
- "properties": {
437
- "identity": {
438
- "type": "object",
439
- "properties": {
440
- "purpose": {
441
- "const": "external-verifier"
442
- }
443
- },
444
- "required": [
445
- "purpose"
446
- ]
447
- }
448
- },
449
- "required": [
450
- "identity"
451
- ]
452
- },
453
- "then": {
454
- "properties": {
455
- "schemaVersion": {
456
- "const": "1.1.0"
457
- }
458
- }
459
- }
460
- }
461
- ]
462
- },
463
- "input": {
464
- "type": "object",
465
- "additionalProperties": false,
466
- "required": [
467
- "task",
468
- "request",
469
- "catalog",
470
- "policy"
471
- ],
472
- "properties": {
473
- "task": {
474
- "$ref": "#/$defs/task"
475
- },
476
- "request": {
477
- "$ref": "https://agent-toolkit.local/schemas/agent-model-preference.schema.json#/$defs/request"
478
- },
479
- "catalog": {
480
- "$ref": "https://agent-toolkit.local/schemas/agent-model-preference.schema.json#/$defs/catalog"
481
- },
482
- "policy": {
483
- "$ref": "https://agent-toolkit.local/schemas/agent-model-preference.schema.json#/$defs/policy"
484
- }
485
- }
486
- },
487
- "recommendation": {
488
- "type": "object",
489
- "additionalProperties": false,
490
- "required": [
491
- "profileId",
492
- "provider",
493
- "client",
494
- "requestedModel",
495
- "versionPolicy",
496
- "familyId",
497
- "familyRank",
498
- "familyEvidenceRefs",
499
- "versionOrdinal",
500
- "versionEvidenceRefs",
501
- "effort",
502
- "effortRank",
503
- "effortRuleId",
504
- "effortEvidenceRefs",
505
- "progressionRank",
506
- "evaluationEvidenceRefs",
507
- "availabilityEvidence"
508
- ],
509
- "properties": {
510
- "profileId": {
511
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
512
- },
513
- "provider": {
514
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
515
- },
516
- "client": {
517
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
518
- },
519
- "requestedModel": {
520
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/profile/properties/requestedModel"
521
- },
522
- "versionPolicy": {
523
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/profile/properties/versionPolicy"
524
- },
525
- "familyId": {
526
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
527
- },
528
- "familyRank": {
529
- "type": "integer",
530
- "minimum": 0,
531
- "maximum": 9007199254740991
532
- },
533
- "familyEvidenceRefs": {
534
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/evidenceRefs"
535
- },
536
- "versionOrdinal": {
537
- "type": "integer",
538
- "minimum": 0,
539
- "maximum": 9007199254740991
540
- },
541
- "versionEvidenceRefs": {
542
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/evidenceRefs"
543
- },
544
- "effort": {
545
- "anyOf": [
546
- {
547
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
548
- },
549
- {
550
- "type": "null"
551
- }
552
- ]
553
- },
554
- "effortRank": {
555
- "type": "integer",
556
- "minimum": 0,
557
- "maximum": 9007199254740991
558
- },
559
- "effortRuleId": {
560
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
561
- },
562
- "effortEvidenceRefs": {
563
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/evidenceRefs"
564
- },
565
- "progressionRank": {
566
- "type": "integer",
567
- "minimum": 0,
568
- "maximum": 9007199254740991
569
- },
570
- "evaluationEvidenceRefs": {
571
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/evidenceRefs"
572
- },
573
- "availabilityEvidence": {
574
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/availability"
575
- }
576
- }
577
- },
578
- "constraints": {
579
- "type": "object",
580
- "additionalProperties": false,
581
- "required": [
582
- "provider",
583
- "client",
584
- "mode",
585
- "authorizationContext",
586
- "history",
587
- "maxCorrectionRounds",
588
- "maxFutureExecutions",
589
- "maxFutureDurationSeconds",
590
- "accessType",
591
- "execution"
592
- ],
593
- "properties": {
594
- "provider": {
595
- "anyOf": [
596
- {
597
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
598
- },
599
- {
600
- "type": "null"
601
- }
602
- ]
603
- },
604
- "client": {
605
- "anyOf": [
606
- {
607
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
608
- },
609
- {
610
- "type": "null"
611
- }
612
- ]
613
- },
614
- "mode": {
615
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/mode"
616
- },
617
- "authorizationContext": {
618
- "anyOf": [
619
- {
620
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/authorizationContext"
621
- },
622
- {
623
- "type": "null"
624
- }
625
- ]
626
- },
627
- "history": {
628
- "anyOf": [
629
- {
630
- "$ref": "https://agent-toolkit.local/schemas/agent-model-preference.schema.json#/$defs/history"
631
- },
632
- {
633
- "type": "null"
634
- }
635
- ]
636
- },
637
- "maxCorrectionRounds": {
638
- "const": 2
639
- },
640
- "maxFutureExecutions": {
641
- "type": "integer",
642
- "minimum": 0,
643
- "maximum": 9007199254740991
644
- },
645
- "maxFutureDurationSeconds": {
646
- "type": "integer",
647
- "minimum": 0,
648
- "maximum": 9007199254740991
649
- },
650
- "accessType": {
651
- "const": "session-account"
652
- },
653
- "execution": {
654
- "const": "recommend-only"
655
- }
656
- }
657
- },
658
- "selectorAudit": {
659
- "type": "object",
660
- "additionalProperties": false,
661
- "required": [
662
- "schemaSha256",
663
- "baseSchemaSha256",
664
- "requestSha256",
665
- "catalogSha256",
666
- "policySha256",
667
- "catalog",
668
- "policy"
669
- ],
670
- "properties": {
671
- "schemaSha256": {
672
- "type": "string",
673
- "pattern": "^[a-f0-9]{64}$"
674
- },
675
- "baseSchemaSha256": {
676
- "type": "string",
677
- "pattern": "^[a-f0-9]{64}$"
678
- },
679
- "requestSha256": {
680
- "anyOf": [
681
- {
682
- "type": "string",
683
- "pattern": "^[a-f0-9]{64}$"
684
- },
685
- {
686
- "type": "null"
687
- }
688
- ]
689
- },
690
- "catalogSha256": {
691
- "anyOf": [
692
- {
693
- "type": "string",
694
- "pattern": "^[a-f0-9]{64}$"
695
- },
696
- {
697
- "type": "null"
698
- }
699
- ]
700
- },
701
- "policySha256": {
702
- "anyOf": [
703
- {
704
- "type": "string",
705
- "pattern": "^[a-f0-9]{64}$"
706
- },
707
- {
708
- "type": "null"
709
- }
710
- ]
711
- },
712
- "catalog": {
713
- "anyOf": [
714
- {
715
- "type": "object",
716
- "additionalProperties": false,
717
- "required": [
718
- "id",
719
- "revision"
720
- ],
721
- "properties": {
722
- "id": {
723
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
724
- },
725
- "revision": {
726
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/revision"
727
- }
728
- }
729
- },
730
- {
731
- "type": "null"
732
- }
733
- ]
734
- },
735
- "policy": {
736
- "anyOf": [
737
- {
738
- "type": "object",
739
- "additionalProperties": false,
740
- "required": [
741
- "id",
742
- "revision"
743
- ],
744
- "properties": {
745
- "id": {
746
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
747
- },
748
- "revision": {
749
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/revision"
750
- }
751
- }
752
- },
753
- {
754
- "type": "null"
755
- }
756
- ]
757
- }
758
- }
759
- },
760
- "selection": {
761
- "type": "object",
762
- "additionalProperties": false,
763
- "required": [
764
- "state",
765
- "selectorVersion",
766
- "recommendation",
767
- "constraints",
768
- "audit",
769
- "reasons",
770
- "missing",
771
- "issues",
772
- "excluded",
773
- "effortExcluded"
774
- ],
775
- "properties": {
776
- "state": {
777
- "enum": [
778
- "recommended",
779
- "needs-info",
780
- "blocked",
781
- "invalid"
782
- ]
783
- },
784
- "selectorVersion": {
785
- "const": "2.0.0"
786
- },
787
- "recommendation": {
788
- "anyOf": [
789
- {
790
- "$ref": "#/$defs/recommendation"
791
- },
792
- {
793
- "type": "null"
794
- }
795
- ]
796
- },
797
- "constraints": {
798
- "anyOf": [
799
- {
800
- "$ref": "#/$defs/constraints"
801
- },
802
- {
803
- "type": "null"
804
- }
805
- ]
806
- },
807
- "audit": {
808
- "$ref": "#/$defs/selectorAudit"
809
- },
810
- "reasons": {
811
- "type": "array",
812
- "minItems": 0,
813
- "maxItems": 512,
814
- "items": {
815
- "type": "string",
816
- "pattern": "^[a-z][a-z0-9.-]{0,95}$"
817
- }
818
- },
819
- "missing": {
820
- "type": "array",
821
- "minItems": 0,
822
- "maxItems": 64,
823
- "items": {
824
- "type": "string",
825
- "pattern": "^[a-z][A-Za-z0-9.]{0,95}$"
826
- }
827
- },
828
- "issues": {
829
- "type": "array",
830
- "minItems": 0,
831
- "maxItems": 512,
832
- "items": {
833
- "type": "object",
834
- "additionalProperties": false,
835
- "required": [
836
- "code",
837
- "document"
838
- ],
839
- "properties": {
840
- "code": {
841
- "type": "string",
842
- "pattern": "^[a-z][a-z0-9.-]{0,95}$"
843
- },
844
- "document": {
845
- "enum": [
846
- "request",
847
- "catalog",
848
- "policy"
849
- ]
850
- }
851
- }
852
- }
853
- },
854
- "excluded": {
855
- "type": "array",
856
- "minItems": 0,
857
- "maxItems": 256,
858
- "items": {
859
- "type": "object",
860
- "additionalProperties": false,
861
- "required": [
862
- "profileId",
863
- "reasons"
864
- ],
865
- "properties": {
866
- "profileId": {
867
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
868
- },
869
- "reasons": {
870
- "type": "array",
871
- "minItems": 0,
872
- "maxItems": 32,
873
- "items": {
874
- "type": "string",
875
- "pattern": "^[a-z][a-z0-9.-]{0,95}$"
876
- }
877
- }
878
- }
879
- }
880
- },
881
- "effortExcluded": {
882
- "type": "array",
883
- "minItems": 0,
884
- "maxItems": 65536,
885
- "items": {
886
- "type": "object",
887
- "additionalProperties": false,
888
- "required": [
889
- "profileId",
890
- "effort",
891
- "reasons"
892
- ],
893
- "properties": {
894
- "profileId": {
895
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
896
- },
897
- "effort": {
898
- "anyOf": [
899
- {
900
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
901
- },
902
- {
903
- "type": "null"
904
- }
905
- ]
906
- },
907
- "reasons": {
908
- "type": "array",
909
- "minItems": 0,
910
- "maxItems": 32,
911
- "items": {
912
- "type": "string",
913
- "pattern": "^[a-z][a-z0-9.-]{0,95}$"
914
- }
915
- }
916
- }
917
- }
918
- }
919
- }
920
- },
921
- "audit": {
922
- "type": "object",
923
- "additionalProperties": false,
924
- "required": [
925
- "taskSha256",
926
- "taskSchemaSha256",
927
- "baseSchemaSha256",
928
- "preferenceSchemaSha256",
929
- "sourceByteHashes"
930
- ],
931
- "properties": {
932
- "taskSha256": {
933
- "anyOf": [
934
- {
935
- "type": "string",
936
- "pattern": "^[a-f0-9]{64}$"
937
- },
938
- {
939
- "type": "null"
940
- }
941
- ]
942
- },
943
- "taskSchemaSha256": {
944
- "type": "string",
945
- "pattern": "^[a-f0-9]{64}$"
946
- },
947
- "baseSchemaSha256": {
948
- "type": "string",
949
- "pattern": "^[a-f0-9]{64}$"
950
- },
951
- "preferenceSchemaSha256": {
952
- "type": "string",
953
- "pattern": "^[a-f0-9]{64}$"
954
- },
955
- "sourceByteHashes": {
956
- "anyOf": [
957
- {
958
- "type": "object",
959
- "additionalProperties": false,
960
- "required": [
961
- "task",
962
- "request",
963
- "catalog",
964
- "policy"
965
- ],
966
- "properties": {
967
- "task": {
968
- "type": "string",
969
- "pattern": "^[a-f0-9]{64}$"
970
- },
971
- "request": {
972
- "type": "string",
973
- "pattern": "^[a-f0-9]{64}$"
974
- },
975
- "catalog": {
976
- "type": "string",
977
- "pattern": "^[a-f0-9]{64}$"
978
- },
979
- "policy": {
980
- "type": "string",
981
- "pattern": "^[a-f0-9]{64}$"
982
- }
983
- }
984
- },
985
- {
986
- "type": "null"
987
- }
988
- ]
989
- }
990
- }
991
- },
992
- "report": {
993
- "type": "object",
994
- "additionalProperties": false,
995
- "required": [
996
- "command",
997
- "schemaVersion",
998
- "state",
999
- "selectionState",
1000
- "identity",
1001
- "selection",
1002
- "brief",
1003
- "reasons",
1004
- "missing",
1005
- "audit",
1006
- "executed",
1007
- "sent",
1008
- "wrote",
1009
- "permissionVerified",
1010
- "sourceBaseVerified",
1011
- "runtimeReady",
1012
- "verifiedAdmission",
1013
- "modelVerification",
1014
- "observedModels"
1015
- ],
1016
- "properties": {
1017
- "command": {
1018
- "const": "agent-task prepare"
1019
- },
1020
- "schemaVersion": {
1021
- "const": "1.0.0"
1022
- },
1023
- "state": {
1024
- "enum": [
1025
- "prepared-draft",
1026
- "needs-info",
1027
- "blocked",
1028
- "invalid"
1029
- ]
1030
- },
1031
- "selectionState": {
1032
- "anyOf": [
1033
- {
1034
- "enum": [
1035
- "recommended",
1036
- "needs-info",
1037
- "blocked",
1038
- "invalid"
1039
- ]
1040
- },
1041
- {
1042
- "type": "null"
1043
- }
1044
- ]
1045
- },
1046
- "identity": {
1047
- "anyOf": [
1048
- {
1049
- "$ref": "#/$defs/identity"
1050
- },
1051
- {
1052
- "type": "null"
1053
- }
1054
- ]
1055
- },
1056
- "selection": {
1057
- "anyOf": [
1058
- {
1059
- "$ref": "#/$defs/selection"
1060
- },
1061
- {
1062
- "type": "null"
1063
- }
1064
- ]
1065
- },
1066
- "brief": {
1067
- "anyOf": [
1068
- {
1069
- "type": "string",
1070
- "minLength": 1,
1071
- "maxLength": 131072
1072
- },
1073
- {
1074
- "type": "null"
1075
- }
1076
- ]
1077
- },
1078
- "reasons": {
1079
- "type": "array",
1080
- "minItems": 1,
1081
- "maxItems": 512,
1082
- "items": {
1083
- "type": "string",
1084
- "pattern": "^[a-z][a-z0-9.-]{0,95}$"
1085
- }
1086
- },
1087
- "missing": {
1088
- "type": "array",
1089
- "minItems": 0,
1090
- "maxItems": 64,
1091
- "items": {
1092
- "type": "string",
1093
- "pattern": "^[a-z][A-Za-z0-9.]{0,95}$"
1094
- }
1095
- },
1096
- "audit": {
1097
- "$ref": "#/$defs/audit"
1098
- },
1099
- "executed": {
1100
- "const": false
1101
- },
1102
- "sent": {
1103
- "const": false
1104
- },
1105
- "wrote": {
1106
- "const": false
1107
- },
1108
- "permissionVerified": {
1109
- "const": false
1110
- },
1111
- "sourceBaseVerified": {
1112
- "const": false
1113
- },
1114
- "runtimeReady": {
1115
- "const": false
1116
- },
1117
- "verifiedAdmission": {
1118
- "const": false
1119
- },
1120
- "modelVerification": {
1121
- "const": "unknown"
1122
- },
1123
- "observedModels": {
1124
- "type": "array",
1125
- "maxItems": 0
1126
- }
1127
- },
1128
- "allOf": [
1129
- {
1130
- "if": {
1131
- "properties": {
1132
- "state": {
1133
- "const": "prepared-draft"
1134
- }
1135
- }
1136
- },
1137
- "then": {
1138
- "properties": {
1139
- "brief": {
1140
- "type": "string",
1141
- "minLength": 1,
1142
- "maxLength": 131072
1143
- },
1144
- "selectionState": {
1145
- "const": "recommended"
1146
- },
1147
- "identity": {
1148
- "$ref": "#/$defs/identity"
1149
- },
1150
- "selection": {
1151
- "$ref": "#/$defs/selection"
1152
- }
1153
- }
1154
- },
1155
- "else": {
1156
- "properties": {
1157
- "brief": {
1158
- "type": "null"
1159
- }
1160
- }
1161
- }
1162
- }
1163
- ]
1164
- },
1165
- "summary": {
1166
- "type": "object",
1167
- "additionalProperties": false,
1168
- "required": [
1169
- "command",
1170
- "state",
1171
- "selectionState",
1172
- "identity",
1173
- "recommended",
1174
- "reasons",
1175
- "missing",
1176
- "availabilityCurrentVerified",
1177
- "executed",
1178
- "sent",
1179
- "wrote",
1180
- "permissionVerified",
1181
- "sourceBaseVerified",
1182
- "runtimeReady",
1183
- "verifiedAdmission",
1184
- "modelVerification",
1185
- "observedModels"
1186
- ],
1187
- "properties": {
1188
- "command": {
1189
- "const": "agent-task prepare"
1190
- },
1191
- "state": {
1192
- "enum": [
1193
- "prepared-draft",
1194
- "needs-info",
1195
- "blocked",
1196
- "invalid"
1197
- ]
1198
- },
1199
- "selectionState": {
1200
- "anyOf": [
1201
- {
1202
- "enum": [
1203
- "recommended",
1204
- "needs-info",
1205
- "blocked",
1206
- "invalid"
1207
- ]
1208
- },
1209
- {
1210
- "type": "null"
1211
- }
1212
- ]
1213
- },
1214
- "identity": {
1215
- "anyOf": [
1216
- {
1217
- "$ref": "#/$defs/identity"
1218
- },
1219
- {
1220
- "type": "null"
1221
- }
1222
- ]
1223
- },
1224
- "recommended": {
1225
- "anyOf": [
1226
- {
1227
- "type": "object",
1228
- "additionalProperties": false,
1229
- "required": [
1230
- "provider",
1231
- "client",
1232
- "requestedModel",
1233
- "familyId",
1234
- "versionOrdinal",
1235
- "effort"
1236
- ],
1237
- "properties": {
1238
- "provider": {
1239
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
1240
- },
1241
- "client": {
1242
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
1243
- },
1244
- "requestedModel": {
1245
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/profile/properties/requestedModel"
1246
- },
1247
- "familyId": {
1248
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
1249
- },
1250
- "versionOrdinal": {
1251
- "type": "integer",
1252
- "minimum": 0,
1253
- "maximum": 9007199254740991
1254
- },
1255
- "effort": {
1256
- "anyOf": [
1257
- {
1258
- "$ref": "https://agent-toolkit.local/schemas/agent-model-selection.schema.json#/$defs/id"
1259
- },
1260
- {
1261
- "type": "null"
1262
- }
1263
- ]
1264
- }
1265
- }
1266
- },
1267
- {
1268
- "type": "null"
1269
- }
1270
- ]
1271
- },
1272
- "reasons": {
1273
- "type": "array",
1274
- "minItems": 1,
1275
- "maxItems": 512,
1276
- "items": {
1277
- "type": "string",
1278
- "pattern": "^[a-z][a-z0-9.-]{0,95}$"
1279
- }
1280
- },
1281
- "missing": {
1282
- "type": "array",
1283
- "minItems": 0,
1284
- "maxItems": 64,
1285
- "items": {
1286
- "type": "string",
1287
- "pattern": "^[a-z][A-Za-z0-9.]{0,95}$"
1288
- }
1289
- },
1290
- "availabilityCurrentVerified": {
1291
- "const": false
1292
- },
1293
- "executed": {
1294
- "const": false
1295
- },
1296
- "sent": {
1297
- "const": false
1298
- },
1299
- "wrote": {
1300
- "const": false
1301
- },
1302
- "permissionVerified": {
1303
- "const": false
1304
- },
1305
- "sourceBaseVerified": {
1306
- "const": false
1307
- },
1308
- "runtimeReady": {
1309
- "const": false
1310
- },
1311
- "verifiedAdmission": {
1312
- "const": false
1313
- },
1314
- "modelVerification": {
1315
- "const": "unknown"
1316
- },
1317
- "observedModels": {
1318
- "type": "array",
1319
- "maxItems": 0
1320
- }
1321
- }
1322
- }
1323
- }
1324
- }