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.
- package/README.md +13 -6
- package/assets/runtime/package-lock.json +415 -6
- package/bench/casos/arquitectura/alta-usuarios/base/controladores/usuarios.js +16 -0
- package/bench/casos/arquitectura/alta-usuarios/base/db.js +14 -0
- package/bench/casos/arquitectura/alta-usuarios/base/docs/adr/0003-capas.md +15 -0
- package/bench/casos/arquitectura/alta-usuarios/base/errores.js +3 -0
- package/bench/casos/arquitectura/alta-usuarios/base/repositorios/usuarios.js +14 -0
- package/bench/casos/arquitectura/alta-usuarios/base/servicios/usuarios.js +20 -0
- package/bench/casos/arquitectura/alta-usuarios/cambio/controladores/usuarios.js +47 -0
- package/bench/casos/arquitectura/alta-usuarios/cambio/repositorios/usuarios.js +21 -0
- package/bench/casos/arquitectura/alta-usuarios/cambio/servicios/perfil.js +14 -0
- package/bench/casos/arquitectura/alta-usuarios/esperado.json +53 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/docs/adr/0001-capas.md +18 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/aplicacion/confirmar.ts +8 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/dominio/pedido.ts +15 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/dominio/puertos.ts +6 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/infra/db.ts +14 -0
- package/bench/casos/arquitectura/pedidos-facturacion/base/src/main.ts +9 -0
- package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/aplicacion/facturar.ts +19 -0
- package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/dominio/informe.ts +7 -0
- package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/dominio/pedido.ts +21 -0
- package/bench/casos/arquitectura/pedidos-facturacion/cambio/src/infra/db.ts +22 -0
- package/bench/casos/arquitectura/pedidos-facturacion/esperado.json +53 -0
- package/bench/casos/arquitectura/resumen-cliente/base/docs/adr/0001-capas.md +18 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/aplicacion/confirmar.ts +8 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/dominio/pedido.ts +15 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/dominio/puertos.ts +6 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/infra/db.ts +14 -0
- package/bench/casos/arquitectura/resumen-cliente/base/src/main.ts +9 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/aplicacion/resumen.ts +6 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/dominio/pedido.ts +33 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/dominio/puertos.ts +7 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/infra/db.ts +18 -0
- package/bench/casos/arquitectura/resumen-cliente/cambio/src/main.ts +14 -0
- package/bench/casos/arquitectura/resumen-cliente/esperado.json +23 -0
- package/bench/casos/documentacion/comentario-obsoleto/base/README.md +18 -0
- package/bench/casos/documentacion/comentario-obsoleto/base/src/usuarios.ts +35 -0
- package/bench/casos/documentacion/comentario-obsoleto/cambio/src/copia.ts +8 -0
- package/bench/casos/documentacion/comentario-obsoleto/cambio/src/usuarios.ts +43 -0
- package/bench/casos/documentacion/comentario-obsoleto/esperado.json +42 -0
- package/bench/casos/documentacion/reportes-config/base/README.md +23 -0
- package/bench/casos/documentacion/reportes-config/base/src/cli.js +33 -0
- package/bench/casos/documentacion/reportes-config/base/src/config.js +15 -0
- package/bench/casos/documentacion/reportes-config/base/src/envio.js +23 -0
- package/bench/casos/documentacion/reportes-config/cambio/src/cli.js +35 -0
- package/bench/casos/documentacion/reportes-config/cambio/src/config.js +15 -0
- package/bench/casos/documentacion/reportes-config/esperado.json +42 -0
- package/bench/casos/documentacion/tiempo-espera/base/README.md +10 -0
- package/bench/casos/documentacion/tiempo-espera/base/src/config.js +8 -0
- package/bench/casos/documentacion/tiempo-espera/cambio/README.md +10 -0
- package/bench/casos/documentacion/tiempo-espera/cambio/src/config.js +8 -0
- package/bench/casos/documentacion/tiempo-espera/esperado.json +16 -0
- package/bench/casos/pruebas/calendario-laboral/base/src/fechas.js +3 -0
- package/bench/casos/pruebas/calendario-laboral/base/test/fechas.test.js +7 -0
- package/bench/casos/pruebas/calendario-laboral/cambio/src/fechas.js +37 -0
- package/bench/casos/pruebas/calendario-laboral/cambio/test/calendario.test.js +31 -0
- package/bench/casos/pruebas/calendario-laboral/esperado.json +49 -0
- package/bench/casos/pruebas/fin-de-semana/base/src/fechas.js +3 -0
- package/bench/casos/pruebas/fin-de-semana/base/test/fechas.test.js +7 -0
- package/bench/casos/pruebas/fin-de-semana/cambio/src/fechas.js +8 -0
- package/bench/casos/pruebas/fin-de-semana/cambio/test/fines-de-semana.test.js +13 -0
- package/bench/casos/pruebas/fin-de-semana/esperado.json +16 -0
- package/bench/casos/pruebas/precios-carrito/base/src/precio.ts +3 -0
- package/bench/casos/pruebas/precios-carrito/base/test/precio.test.js +11 -0
- package/bench/casos/pruebas/precios-carrito/cambio/src/precio.ts +34 -0
- package/bench/casos/pruebas/precios-carrito/cambio/test/precio.test.js +42 -0
- package/bench/casos/pruebas/precios-carrito/esperado.json +42 -0
- package/bench/casos/rendimiento/boletin-correo/base/src/correo.html +1 -0
- package/bench/casos/rendimiento/boletin-correo/base/src/plantilla.ts +11 -0
- package/bench/casos/rendimiento/boletin-correo/cambio/src/envios.ts +44 -0
- package/bench/casos/rendimiento/boletin-correo/cambio/src/plantilla.ts +10 -0
- package/bench/casos/rendimiento/boletin-correo/esperado.json +42 -0
- package/bench/casos/rendimiento/clientes-por-lote/base/src/informe.js +8 -0
- package/bench/casos/rendimiento/clientes-por-lote/cambio/src/informe.js +6 -0
- package/bench/casos/rendimiento/clientes-por-lote/esperado.json +14 -0
- package/bench/casos/rendimiento/informe-ventas/base/src/informe.js +6 -0
- package/bench/casos/rendimiento/informe-ventas/base/src/tasas.json +1 -0
- package/bench/casos/rendimiento/informe-ventas/cambio/src/informe.js +33 -0
- package/bench/casos/rendimiento/informe-ventas/cambio/src/tasas.js +7 -0
- package/bench/casos/rendimiento/informe-ventas/esperado.json +42 -0
- package/bench/casos/seguridad/inyeccion-orden/base/src/respaldo.ts +13 -0
- package/bench/casos/seguridad/inyeccion-orden/cambio/src/respaldo.ts +69 -0
- package/bench/casos/seguridad/inyeccion-orden/esperado.json +42 -0
- package/bench/casos/seguridad/limpio-validacion/base/servidor.js +11 -0
- package/bench/casos/seguridad/limpio-validacion/cambio/servidor.js +39 -0
- package/bench/casos/seguridad/limpio-validacion/esperado.json +14 -0
- package/bench/casos/seguridad/servidor-archivos/base/servidor.js +21 -0
- package/bench/casos/seguridad/servidor-archivos/cambio/servidor.js +79 -0
- package/bench/casos/seguridad/servidor-archivos/esperado.json +42 -0
- package/bin/nexakit-fabrica-mcp.js +12 -0
- package/dist/fabrica/banco/casos.js +304 -0
- package/dist/fabrica/banco/ejecutar.js +483 -0
- package/dist/fabrica/banco/medir.js +120 -0
- package/dist/fabrica/cli.js +737 -0
- package/dist/fabrica/conectores/antigravity.js +1040 -0
- package/dist/fabrica/conectores/codex.js +967 -0
- package/dist/fabrica/conectores/tipos.js +8 -0
- package/dist/fabrica/config.js +44 -0
- package/dist/fabrica/consolidar.js +218 -0
- package/dist/fabrica/decision.js +210 -0
- package/dist/fabrica/diff.js +247 -0
- package/dist/fabrica/disco.js +356 -0
- package/dist/fabrica/ejecutor.js +597 -0
- package/dist/fabrica/encargo/candado.js +274 -0
- package/dist/fabrica/encargo/ejecutar.js +827 -0
- package/dist/fabrica/encargo/evidencia.js +308 -0
- package/dist/fabrica/encargo/parche.js +146 -0
- package/dist/fabrica/encargo/worktree.js +394 -0
- package/dist/fabrica/enrutador.js +425 -0
- package/dist/fabrica/errores.js +14 -0
- package/dist/fabrica/esquemas.js +57 -0
- package/dist/fabrica/estaciones.js +75 -0
- package/dist/fabrica/evidencia.js +406 -0
- package/dist/fabrica/indice.js +1 -0
- package/dist/fabrica/jsonrpc.js +274 -0
- package/dist/fabrica/lecciones.js +363 -0
- package/dist/fabrica/mcp.js +376 -0
- package/dist/fabrica/preferencias.js +56 -0
- package/dist/fabrica/protocolos/codex/AbsolutePathBuf.js +2 -0
- package/dist/fabrica/protocolos/codex/ApplyPatchApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/ClientInfo.js +2 -0
- package/dist/fabrica/protocolos/codex/ExecCommandApprovalParams.js +2 -0
- package/dist/fabrica/protocolos/codex/ExecCommandApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/ExecPolicyAmendment.js +2 -0
- package/dist/fabrica/protocolos/codex/FunctionCallOutputBody.js +2 -0
- package/dist/fabrica/protocolos/codex/FunctionCallOutputContentItem.js +2 -0
- package/dist/fabrica/protocolos/codex/ImageDetail.js +2 -0
- package/dist/fabrica/protocolos/codex/InitializeCapabilities.js +2 -0
- package/dist/fabrica/protocolos/codex/InitializeParams.js +2 -0
- package/dist/fabrica/protocolos/codex/InitializeResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/InputModality.js +2 -0
- package/dist/fabrica/protocolos/codex/LegacyAppPathString.js +2 -0
- package/dist/fabrica/protocolos/codex/NetworkPolicyAmendment.js +2 -0
- package/dist/fabrica/protocolos/codex/NetworkPolicyRuleAction.js +2 -0
- package/dist/fabrica/protocolos/codex/ParsedCommand.js +2 -0
- package/dist/fabrica/protocolos/codex/Personality.js +2 -0
- package/dist/fabrica/protocolos/codex/ReasoningEffort.js +2 -0
- package/dist/fabrica/protocolos/codex/ReasoningSummary.js +2 -0
- package/dist/fabrica/protocolos/codex/ReviewDecision.js +2 -0
- package/dist/fabrica/protocolos/codex/ThreadId.js +2 -0
- package/dist/fabrica/protocolos/codex/serde_json/JsonValue.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/AdditionalFileSystemPermissions.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/AdditionalNetworkPermissions.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ApprovalsReviewer.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/AskForApproval.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ByteRange.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandAction.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandExecutionApprovalDecision.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandExecutionApprovalKind.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ConfigReadParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/CyberAccessProgram.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ExecPolicyAmendment.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileChangeApprovalDecision.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileChangeRequestApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileSystemAccessMode.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileSystemPath.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileSystemSandboxEntry.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/FileSystemSpecialPath.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/GrantedPermissionProfile.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ListMcpServerStatusParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/McpServerElicitationAction.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/McpServerElicitationRequestResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/McpServerStatusDetail.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/Model.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelAccessPrograms.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelAvailabilityNux.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelListParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelListResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelServiceTier.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ModelUpgradeInfo.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/MultiAgentVersion.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkAccess.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkApprovalContext.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkApprovalProtocol.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkPolicyAmendment.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/NetworkPolicyRuleAction.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/PermissionGrantScope.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/PermissionsRequestApprovalResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ReasoningEffortOption.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/SandboxMode.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/SandboxPolicy.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TextElement.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadSource.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadStartParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadStartSource.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadTokenUsage.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ThreadTokenUsageUpdatedNotification.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TokenUsageBreakdown.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ToolRequestUserInputAnswer.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/ToolRequestUserInputResponse.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TurnInterruptParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TurnStartParams.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/TurnToolOutput.js +2 -0
- package/dist/fabrica/protocolos/codex/v2/UserInput.js +2 -0
- package/dist/fabrica/rastro.js +487 -0
- package/dist/fabrica/sesion.js +230 -0
- package/dist/fabrica/tabla-modelos.json +29 -0
- package/dist/fabrica/veredictos.js +327 -0
- package/package.json +16 -8
- package/plugins/huellas.json +6 -6
- package/plugins/nexakit-lecciones/.claude-plugin/plugin.json +1 -1
- package/plugins/nexakit-lecciones/README.md +6 -5
- package/plugins/nexakit-lecciones/hooks/lecciones.js +29 -5
- package/plugins/nexakit-lecciones/hooks/register.js +7 -3
- package/plugins/nexakit-modelo/.claude-plugin/plugin.json +1 -1
- package/plugins/nexakit-modelo/hooks/barra.js +100 -4
- package/plugins/nexakit-modelo/hooks/decidir.js +2 -2
- package/plugins/nexakit-modelo/hooks/recomendar.js +1 -1
- package/plugins/nexakit-modelo/hooks/register.js +122 -7
- package/plugins/nexakit-modelo/tests/register.test.ts +301 -0
- package/plugins/niveles/.claude-plugin/plugin.json +1 -1
- package/plugins/niveles/agents/cazador-de-flakes.md +1 -0
- package/plugins/niveles/agents/cierre-de-memoria.md +1 -0
- package/plugins/niveles/agents/investigador.md +1 -0
- package/plugins/niveles/agents/nivel-alto.md +1 -0
- package/plugins/niveles/agents/nivel-exigente.md +1 -0
- package/plugins/niveles/agents/nivel-ligero.md +1 -0
- package/plugins/niveles/agents/nivel-normal.md +1 -0
- package/plugins/niveles/agents/revisor-de-calidad.md +1 -0
- package/plugins/niveles/agents/sincronizador-docs.md +1 -0
- package/plugins/niveles/agents/subir-al-repo.md +1 -0
- package/skills/elegir-modelo/SKILL.md +4 -3
- package/skills/elegir-modelo/modelos.mjs +100 -1
- package/skills/fabrica/SKILL.md +55 -0
- package/skills/gemini/SKILL.md +2 -3
- package/skills/quality-gate/SKILL.md +2 -2
- package/src/agent-models.js +6 -4
- package/src/antigravity-barra.js +64 -12
- package/src/antigravity-command.js +4 -2
- package/src/antigravity-models.js +61 -0
- package/src/antigravity-pre-tool.js +11 -3
- package/src/antigravity-recommendation.js +15 -9
- package/src/antigravity-setup.js +4 -31
- package/src/cli-executable.d.ts +11 -0
- package/src/codex-pre-tool.js +3 -3
- package/src/codex-recommendation.js +1 -2
- package/src/codex-setup.js +3 -20
- package/src/codex-team.js +31 -4
- package/src/fabrica/banco/casos.ts +315 -0
- package/src/fabrica/banco/ejecutar.ts +587 -0
- package/src/fabrica/banco/medir.ts +160 -0
- package/src/fabrica/cli.ts +781 -0
- package/src/fabrica/conectores/antigravity.ts +1090 -0
- package/src/fabrica/conectores/codex.ts +1013 -0
- package/src/fabrica/conectores/tipos.ts +54 -0
- package/src/fabrica/config.ts +43 -0
- package/src/fabrica/consolidar.ts +277 -0
- package/src/fabrica/decision.ts +285 -0
- package/src/fabrica/diff.ts +294 -0
- package/src/fabrica/disco.ts +380 -0
- package/src/fabrica/ejecutor.ts +716 -0
- package/src/fabrica/encargo/candado.ts +287 -0
- package/src/fabrica/encargo/ejecutar.ts +953 -0
- package/src/fabrica/encargo/evidencia.ts +301 -0
- package/src/fabrica/encargo/parche.ts +151 -0
- package/src/fabrica/encargo/worktree.ts +427 -0
- package/src/fabrica/enrutador.ts +494 -0
- package/src/fabrica/errores.ts +15 -0
- package/src/fabrica/esquemas.ts +92 -0
- package/src/fabrica/estaciones.ts +83 -0
- package/src/fabrica/evidencia.ts +445 -0
- package/src/fabrica/indice.ts +1 -0
- package/src/fabrica/jsonrpc.ts +314 -0
- package/src/fabrica/lecciones.ts +411 -0
- package/src/fabrica/mcp.ts +450 -0
- package/src/fabrica/preferencias.ts +66 -0
- package/src/fabrica/protocolos/codex/AbsolutePathBuf.ts +14 -0
- package/src/fabrica/protocolos/codex/ApplyPatchApprovalResponse.ts +6 -0
- package/src/fabrica/protocolos/codex/ClientInfo.ts +5 -0
- package/src/fabrica/protocolos/codex/ExecCommandApprovalParams.ts +16 -0
- package/src/fabrica/protocolos/codex/ExecCommandApprovalResponse.ts +6 -0
- package/src/fabrica/protocolos/codex/ExecPolicyAmendment.ts +12 -0
- package/src/fabrica/protocolos/codex/FunctionCallOutputBody.ts +6 -0
- package/src/fabrica/protocolos/codex/FunctionCallOutputContentItem.ts +10 -0
- package/src/fabrica/protocolos/codex/ImageDetail.ts +5 -0
- package/src/fabrica/protocolos/codex/InitializeCapabilities.ts +42 -0
- package/src/fabrica/protocolos/codex/InitializeParams.ts +7 -0
- package/src/fabrica/protocolos/codex/InitializeResponse.ts +20 -0
- package/src/fabrica/protocolos/codex/InputModality.ts +8 -0
- package/src/fabrica/protocolos/codex/LegacyAppPathString.ts +27 -0
- package/src/fabrica/protocolos/codex/NetworkPolicyAmendment.ts +6 -0
- package/src/fabrica/protocolos/codex/NetworkPolicyRuleAction.ts +5 -0
- package/src/fabrica/protocolos/codex/ParsedCommand.ts +12 -0
- package/src/fabrica/protocolos/codex/Personality.ts +8 -0
- package/src/fabrica/protocolos/codex/ReasoningEffort.ts +8 -0
- package/src/fabrica/protocolos/codex/ReasoningSummary.ts +10 -0
- package/src/fabrica/protocolos/codex/ReviewDecision.ts +10 -0
- package/src/fabrica/protocolos/codex/ThreadId.ts +10 -0
- package/src/fabrica/protocolos/codex/VERSION +1 -0
- package/src/fabrica/protocolos/codex/serde_json/JsonValue.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/AdditionalFileSystemPermissions.ts +15 -0
- package/src/fabrica/protocolos/codex/v2/AdditionalNetworkPermissions.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ApprovalsReviewer.ts +12 -0
- package/src/fabrica/protocolos/codex/v2/AskForApproval.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ByteRange.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/CommandAction.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/CommandExecutionApprovalDecision.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/CommandExecutionApprovalKind.ts +8 -0
- package/src/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalParams.ts +51 -0
- package/src/fabrica/protocolos/codex/v2/CommandExecutionRequestApprovalResponse.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/ConfigReadParams.ts +11 -0
- package/src/fabrica/protocolos/codex/v2/CyberAccessProgram.ts +9 -0
- package/src/fabrica/protocolos/codex/v2/ExecPolicyAmendment.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/FileChangeApprovalDecision.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/FileChangeRequestApprovalResponse.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/FileSystemAccessMode.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/FileSystemPath.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/FileSystemSandboxEntry.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/FileSystemSpecialPath.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/GrantedPermissionProfile.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/ListMcpServerStatusParams.ts +23 -0
- package/src/fabrica/protocolos/codex/v2/McpServerElicitationAction.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/McpServerElicitationRequestResponse.ts +17 -0
- package/src/fabrica/protocolos/codex/v2/McpServerStatusDetail.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/Model.ts +33 -0
- package/src/fabrica/protocolos/codex/v2/ModelAccessPrograms.ts +13 -0
- package/src/fabrica/protocolos/codex/v2/ModelAvailabilityNux.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ModelListParams.ts +17 -0
- package/src/fabrica/protocolos/codex/v2/ModelListResponse.ts +11 -0
- package/src/fabrica/protocolos/codex/v2/ModelServiceTier.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ModelUpgradeInfo.ts +9 -0
- package/src/fabrica/protocolos/codex/v2/MultiAgentVersion.ts +8 -0
- package/src/fabrica/protocolos/codex/v2/NetworkAccess.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/NetworkApprovalContext.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/NetworkApprovalProtocol.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/NetworkPolicyAmendment.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/NetworkPolicyRuleAction.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/PermissionGrantScope.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/PermissionsRequestApprovalResponse.ts +11 -0
- package/src/fabrica/protocolos/codex/v2/ReasoningEffortOption.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/SandboxMode.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/SandboxPolicy.ts +7 -0
- package/src/fabrica/protocolos/codex/v2/TextElement.ts +14 -0
- package/src/fabrica/protocolos/codex/v2/ThreadSource.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ThreadStartParams.ts +22 -0
- package/src/fabrica/protocolos/codex/v2/ThreadStartSource.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ThreadTokenUsage.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/ThreadTokenUsageUpdatedNotification.ts +6 -0
- package/src/fabrica/protocolos/codex/v2/TokenUsageBreakdown.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/ToolRequestUserInputAnswer.ts +8 -0
- package/src/fabrica/protocolos/codex/v2/ToolRequestUserInputResponse.ts +9 -0
- package/src/fabrica/protocolos/codex/v2/TurnInterruptParams.ts +5 -0
- package/src/fabrica/protocolos/codex/v2/TurnStartParams.ts +75 -0
- package/src/fabrica/protocolos/codex/v2/TurnToolOutput.ts +10 -0
- package/src/fabrica/protocolos/codex/v2/UserInput.ts +11 -0
- package/src/fabrica/rastro.ts +508 -0
- package/src/fabrica/sesion.ts +280 -0
- package/src/fabrica/tabla-modelos.json +29 -0
- package/src/fabrica/veredictos.ts +365 -0
- package/src/gemini-cli.js +15 -12
- package/src/gemini-tools.js +1 -1
- package/src/gemini-usage-store.js +32 -0
- package/src/instructions-block.js +69 -0
- package/src/lecciones-command.js +105 -4
- package/src/lecciones-instructions.js +178 -0
- package/src/legacy-repair.js +1 -1
- package/src/level-agents.js +5 -3
- package/src/memory-mcp-policy.js +1 -1
- package/src/missing-dependencies.js +5 -0
- package/src/model-command.d.ts +29 -0
- package/src/model-command.js +4 -27
- package/src/regla-ordenes-simples.d.ts +2 -0
- package/src/regla-ordenes-simples.js +4 -0
- package/src/review-instructions.js +69 -81
- package/src/safe-paths.js +38 -0
- package/src/setup-apply.js +24 -2
- package/src/setup-plan.js +57 -1
- package/src/setup-state.js +14 -0
- package/src/shell-quote.js +2 -0
- package/src/skill-recommendations.js +101 -28
- package/src/stable-command.js +2 -2
- package/src/stable-install.js +4 -2
- package/src/superpowers.js +0 -7
- package/src/task-document.js +59 -0
- package/src/terminal-text.js +2 -19
- package/src/toolkit-cli.js +63 -8
- package/src/toolkit-setup.js +192 -37
- package/templates/agent-team/README.md +7 -19
- package/bin/agent-task.js +0 -14
- package/bin/agent-toolkit-inbox.js +0 -14
- package/bin/agent-toolkit-mcp.js +0 -17
- package/schemas/agent-client-adapter.schema.json +0 -786
- package/schemas/agent-client-auth-diagnostic.schema.json +0 -801
- package/schemas/agent-client-isolated-variant.schema.json +0 -105
- package/schemas/agent-client-isolated-verification.schema.json +0 -99
- package/schemas/agent-client-managed-preferences-invocation.schema.json +0 -67
- package/schemas/agent-client-managed-preferences.schema.json +0 -63
- package/schemas/agent-client-native-diagnostics.schema.json +0 -85
- package/schemas/agent-client-native-evaluation.schema.json +0 -171
- package/schemas/agent-client-native-preflight.schema.json +0 -90
- package/schemas/agent-client-output.schema.json +0 -551
- package/schemas/agent-client-runtime-fixture.schema.json +0 -90
- package/schemas/agent-client-runtime-local.schema.json +0 -95
- package/schemas/agent-client-runtime.schema.json +0 -1288
- package/schemas/agent-client-selective-config.schema.json +0 -77
- package/schemas/agent-client-supervised-local.schema.json +0 -135
- package/schemas/agent-client-supervised.schema.json +0 -186
- package/schemas/agent-task-approvals.schema.json +0 -362
- package/schemas/agent-task-prepare.schema.json +0 -1324
- package/schemas/agent-task-verify.schema.json +0 -198
- package/schemas/task-workflow-plan-output.schema.json +0 -35
- package/skills/revisar/SKILL.md +0 -51
- package/src/claude-code-runner.js +0 -642
- package/src/client-adapter-plan.js +0 -271
- package/src/client-auth-diagnostic-parser.js +0 -211
- package/src/client-auth-diagnostic.js +0 -257
- package/src/client-isolated-variant.js +0 -106
- package/src/client-isolated-verification.js +0 -130
- package/src/client-local-platform.js +0 -14
- package/src/client-managed-preferences-invocation.js +0 -209
- package/src/client-managed-preferences.js +0 -78
- package/src/client-native-access.js +0 -134
- package/src/client-native-diagnostics.js +0 -253
- package/src/client-native-evaluation.js +0 -106
- package/src/client-native-preflight-files.js +0 -68
- package/src/client-native-preflight.js +0 -95
- package/src/client-output-parser.js +0 -278
- package/src/client-runtime-admission.js +0 -80
- package/src/client-runtime-coordinator.js +0 -70
- package/src/client-runtime-core.js +0 -92
- package/src/client-runtime-fixture-permit.js +0 -20
- package/src/client-runtime-fixture-protocol.js +0 -39
- package/src/client-runtime-state.js +0 -67
- package/src/client-runtime-store-files.js +0 -91
- package/src/client-runtime-store.js +0 -239
- package/src/client-runtime-supervisor.js +0 -146
- package/src/client-selective-config.js +0 -195
- package/src/client-selective-files.js +0 -126
- package/src/client-supervised-codes.js +0 -32
- package/src/client-supervised-contract.js +0 -52
- package/src/client-supervised-coordinator.js +0 -36
- package/src/client-supervised-permit.js +0 -20
- package/src/client-supervised-protocol.js +0 -37
- package/src/client-supervised-store.js +0 -167
- package/src/client-supervised-supervisor.js +0 -167
- package/src/client-supervised.js +0 -160
- package/src/codex-cli-runner.js +0 -358
- package/src/codex-delivery.js +0 -101
- package/src/memory-connection-artifacts.js +0 -192
- package/src/memory-connection-descriptor.js +0 -158
- package/src/memory-connection-diagnostic.js +0 -177
- package/src/memory-connection-files.js +0 -191
- package/src/memory-connection-manifest.js +0 -118
- package/src/memory-connection-package.js +0 -176
- package/src/memory-connection-plan.js +0 -217
- package/src/memory-connection-skill.js +0 -211
- package/src/memory-connection-toml.js +0 -153
- package/src/native/managed-preferences.c +0 -100
- package/src/native/managed-preferences.h +0 -17
- package/src/package-lock-path.js +0 -13
- package/src/peer-handoff.js +0 -27
- package/src/peer-inbox-cli.js +0 -211
- package/src/peer-review-mcp.js +0 -210
- package/src/peer-review-store.js +0 -532
- package/src/review-policy.js +0 -35
- package/src/revision-adapters.js +0 -158
- package/src/revision-context.js +0 -86
- package/src/revision-isolation.js +0 -222
- package/src/revision-process.js +0 -103
- package/src/revision-provenance.js +0 -89
- package/src/revision-snapshot.js +0 -120
- package/src/revision.js +0 -242
- package/src/runtime-fixtures/runtime-supervisor/child.cjs +0 -3
- package/src/runtime-fixtures/runtime-supervisor/fixture.cjs +0 -49
- package/src/runtime-fixtures/supervised/child.cjs +0 -3
- package/src/runtime-fixtures/supervised/fixture.cjs +0 -47
- package/src/task-approvals.js +0 -367
- package/src/task-cli.js +0 -79
- package/src/task-external-verifier.js +0 -584
- package/src/task-prepare-files.js +0 -115
- package/src/task-prepare.js +0 -180
- package/src/task-verify-cli.js +0 -67
- package/src/task-verify-files.js +0 -188
- package/src/task-verify.js +0 -118
- package/src/task-workflow-mcp.js +0 -544
- package/src/task-workflow-store.js +0 -254
- package/src/toolkit-commands-guide.js +0 -115
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-toolkit.local/schemas/agent-task-approvals.schema.json",
|
|
4
|
-
"title": "RA-A declared task approvals, not execution permission",
|
|
5
|
-
"$ref": "#/$defs/replayInput",
|
|
6
|
-
"$defs": {
|
|
7
|
-
"id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$", "maxLength": 128 },
|
|
8
|
-
"nullableId": { "anyOf": [{ "$ref": "#/$defs/id" }, { "type": "null" }] },
|
|
9
|
-
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
10
|
-
"nullableSha256": { "anyOf": [{ "$ref": "#/$defs/sha256" }, { "type": "null" }] },
|
|
11
|
-
"timestamp": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$", "maxLength": 20 },
|
|
12
|
-
"action": { "type": "string", "enum": ["read", "modify", "create"] },
|
|
13
|
-
"effect": { "type": "string", "enum": ["workspace-write", "test-execution", "client-start", "inference"] },
|
|
14
|
-
"pathAction": {
|
|
15
|
-
"type": "object", "additionalProperties": false, "required": ["path", "action"],
|
|
16
|
-
"properties": { "path": { "type": "string", "minLength": 1, "maxLength": 256 }, "action": { "$ref": "#/$defs/action" } }
|
|
17
|
-
},
|
|
18
|
-
"items": { "type": "array", "minItems": 1, "maxItems": 64, "items": { "$ref": "#/$defs/pathAction" } },
|
|
19
|
-
"checks": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
|
|
20
|
-
"effects": { "type": "array", "maxItems": 4, "uniqueItems": true, "items": { "$ref": "#/$defs/effect" } },
|
|
21
|
-
"recipient": {
|
|
22
|
-
"type": "object", "additionalProperties": false, "required": ["client", "role", "mode"],
|
|
23
|
-
"properties": {
|
|
24
|
-
"client": { "$ref": "#/$defs/id" }, "role": { "$ref": "#/$defs/id" },
|
|
25
|
-
"mode": { "$ref": "#/$defs/id" }
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"limits": {
|
|
29
|
-
"type": "object", "additionalProperties": false, "required": ["maxOperations", "maxRetries", "maxCorrections"],
|
|
30
|
-
"properties": {
|
|
31
|
-
"maxOperations": { "type": "integer", "minimum": 1, "maximum": 100 },
|
|
32
|
-
"maxRetries": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
33
|
-
"maxCorrections": { "type": "integer", "minimum": 0, "maximum": 100 }
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"scope": {
|
|
37
|
-
"type": "object", "additionalProperties": false,
|
|
38
|
-
"required": ["projectId", "taskId", "recipient", "paths", "checks", "effects", "limits", "validFrom", "expiresAt"],
|
|
39
|
-
"properties": {
|
|
40
|
-
"projectId": { "$ref": "#/$defs/id" }, "taskId": { "$ref": "#/$defs/id" },
|
|
41
|
-
"recipient": { "$ref": "#/$defs/recipient" }, "paths": { "$ref": "#/$defs/items" },
|
|
42
|
-
"checks": { "$ref": "#/$defs/checks" }, "effects": { "$ref": "#/$defs/effects" },
|
|
43
|
-
"limits": { "$ref": "#/$defs/limits" },
|
|
44
|
-
"validFrom": { "$ref": "#/$defs/timestamp" }, "expiresAt": { "$ref": "#/$defs/timestamp" }
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"artifact": {
|
|
48
|
-
"type": "object", "additionalProperties": false, "required": ["revision", "sha256", "qualityReviewRef"],
|
|
49
|
-
"properties": {
|
|
50
|
-
"revision": { "$ref": "#/$defs/id" }, "sha256": { "$ref": "#/$defs/sha256" },
|
|
51
|
-
"qualityReviewRef": { "$ref": "#/$defs/id" }
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"artifactRef": {
|
|
55
|
-
"type": "object", "additionalProperties": false, "required": ["revision", "sha256"],
|
|
56
|
-
"properties": { "revision": { "$ref": "#/$defs/id" }, "sha256": { "$ref": "#/$defs/sha256" } }
|
|
57
|
-
},
|
|
58
|
-
"baseBinding": {
|
|
59
|
-
"type": "object", "additionalProperties": false, "required": ["initialSha256", "transitions"],
|
|
60
|
-
"properties": {
|
|
61
|
-
"initialSha256": { "$ref": "#/$defs/sha256" },
|
|
62
|
-
"transitions": {
|
|
63
|
-
"type": "array", "maxItems": 64,
|
|
64
|
-
"items": {
|
|
65
|
-
"type": "object", "additionalProperties": false, "required": ["fromSha256", "toSha256"],
|
|
66
|
-
"properties": { "fromSha256": { "$ref": "#/$defs/sha256" }, "toSha256": { "$ref": "#/$defs/sha256" } }
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"nonStartEvidence": {
|
|
72
|
-
"type": "object", "additionalProperties": false,
|
|
73
|
-
"required": ["reservationEventId", "priorEventId", "previousState", "decisionRef", "observation", "inspectedBaseSha256", "evidenceRef"],
|
|
74
|
-
"properties": {
|
|
75
|
-
"reservationEventId": { "$ref": "#/$defs/id" }, "priorEventId": { "$ref": "#/$defs/id" },
|
|
76
|
-
"previousState": { "type": "string", "enum": ["reserved", "indeterminate"] },
|
|
77
|
-
"decisionRef": { "$ref": "#/$defs/id" },
|
|
78
|
-
"observation": { "const": "non-start-confirmed" },
|
|
79
|
-
"inspectedBaseSha256": { "$ref": "#/$defs/sha256" }, "evidenceRef": { "$ref": "#/$defs/id" }
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"terminationEvidence": {
|
|
83
|
-
"type": "object", "additionalProperties": false,
|
|
84
|
-
"required": ["reservationEventId", "priorEventId", "previousState", "decisionRef", "observation", "evidenceRef"],
|
|
85
|
-
"properties": {
|
|
86
|
-
"reservationEventId": { "$ref": "#/$defs/id" }, "priorEventId": { "$ref": "#/$defs/id" },
|
|
87
|
-
"previousState": { "type": "string", "enum": ["reserved", "started", "indeterminate"] },
|
|
88
|
-
"decisionRef": { "$ref": "#/$defs/id" },
|
|
89
|
-
"observation": { "const": "termination-observed" }, "evidenceRef": { "$ref": "#/$defs/id" }
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"event": {
|
|
93
|
-
"oneOf": [
|
|
94
|
-
{
|
|
95
|
-
"type": "object", "additionalProperties": false,
|
|
96
|
-
"required": ["eventId", "type", "requestId", "at", "scopeSha256", "scope", "artifact", "baseBinding"],
|
|
97
|
-
"properties": {
|
|
98
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "request" }, "requestId": { "$ref": "#/$defs/id" },
|
|
99
|
-
"at": { "$ref": "#/$defs/timestamp" }, "scopeSha256": { "$ref": "#/$defs/sha256" },
|
|
100
|
-
"scope": { "$ref": "#/$defs/scope" }, "artifact": { "$ref": "#/$defs/artifact" },
|
|
101
|
-
"baseBinding": { "$ref": "#/$defs/baseBinding" }
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"type": "object", "additionalProperties": false,
|
|
106
|
-
"required": ["eventId", "type", "requestId", "at", "decision", "requestSha256", "responseRef"],
|
|
107
|
-
"properties": {
|
|
108
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "decision" }, "requestId": { "$ref": "#/$defs/id" },
|
|
109
|
-
"at": { "$ref": "#/$defs/timestamp" }, "decision": { "type": "string", "enum": ["approve", "deny"] },
|
|
110
|
-
"requestSha256": { "$ref": "#/$defs/sha256" }, "responseRef": { "$ref": "#/$defs/id" }
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"type": "object", "additionalProperties": false,
|
|
115
|
-
"required": ["eventId", "type", "requestId", "at", "scopeSha256", "previousRevision", "artifact"],
|
|
116
|
-
"properties": {
|
|
117
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "correction" }, "requestId": { "$ref": "#/$defs/id" },
|
|
118
|
-
"at": { "$ref": "#/$defs/timestamp" }, "scopeSha256": { "$ref": "#/$defs/sha256" },
|
|
119
|
-
"previousRevision": { "$ref": "#/$defs/id" }, "artifact": { "$ref": "#/$defs/artifact" }
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "object", "additionalProperties": false,
|
|
124
|
-
"required": ["eventId", "type", "requestId", "at", "operationId", "retryOf", "artifactRevision", "expectedBaseSha256", "items", "checks", "effects"],
|
|
125
|
-
"properties": {
|
|
126
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "reserve" }, "requestId": { "$ref": "#/$defs/id" },
|
|
127
|
-
"at": { "$ref": "#/$defs/timestamp" }, "operationId": { "$ref": "#/$defs/id" },
|
|
128
|
-
"retryOf": { "$ref": "#/$defs/nullableId" }, "artifactRevision": { "$ref": "#/$defs/id" },
|
|
129
|
-
"expectedBaseSha256": { "$ref": "#/$defs/sha256" }, "items": { "$ref": "#/$defs/items" },
|
|
130
|
-
"checks": { "$ref": "#/$defs/checks" }, "effects": { "$ref": "#/$defs/effects" }
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"type": "object", "additionalProperties": false,
|
|
135
|
-
"required": ["eventId", "type", "requestId", "at", "operationId"],
|
|
136
|
-
"properties": {
|
|
137
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "start" }, "requestId": { "$ref": "#/$defs/id" },
|
|
138
|
-
"at": { "$ref": "#/$defs/timestamp" }, "operationId": { "$ref": "#/$defs/id" }
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"type": "object", "additionalProperties": false,
|
|
143
|
-
"required": ["eventId", "type", "requestId", "at", "operationId", "evidenceRef"],
|
|
144
|
-
"properties": {
|
|
145
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "interrupt" }, "requestId": { "$ref": "#/$defs/id" },
|
|
146
|
-
"at": { "$ref": "#/$defs/timestamp" }, "operationId": { "$ref": "#/$defs/id" },
|
|
147
|
-
"evidenceRef": { "$ref": "#/$defs/id" }
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"type": "object", "additionalProperties": false,
|
|
152
|
-
"required": ["eventId", "type", "requestId", "at", "operationId", "outcome", "resultingBaseSha256", "evidenceRef"],
|
|
153
|
-
"properties": {
|
|
154
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "result" }, "requestId": { "$ref": "#/$defs/id" },
|
|
155
|
-
"at": { "$ref": "#/$defs/timestamp" }, "operationId": { "$ref": "#/$defs/id" },
|
|
156
|
-
"outcome": { "type": "string", "enum": ["succeeded", "failed"] },
|
|
157
|
-
"resultingBaseSha256": { "$ref": "#/$defs/nullableSha256" }, "evidenceRef": { "$ref": "#/$defs/id" }
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"type": "object", "additionalProperties": false,
|
|
162
|
-
"required": ["eventId", "type", "requestId", "at", "operationId", "resolution", "resultingBaseSha256", "evidence"],
|
|
163
|
-
"properties": {
|
|
164
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "reconcile" }, "requestId": { "$ref": "#/$defs/id" },
|
|
165
|
-
"at": { "$ref": "#/$defs/timestamp" }, "operationId": { "$ref": "#/$defs/id" },
|
|
166
|
-
"resolution": { "type": "string", "enum": ["not-started-confirmed", "finished-succeeded", "finished-failed"] },
|
|
167
|
-
"resultingBaseSha256": { "$ref": "#/$defs/nullableSha256" },
|
|
168
|
-
"evidence": { "oneOf": [{ "$ref": "#/$defs/nonStartEvidence" }, { "$ref": "#/$defs/terminationEvidence" }] }
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"type": "object", "additionalProperties": false,
|
|
173
|
-
"required": ["eventId", "type", "requestId", "at", "responseRef"],
|
|
174
|
-
"properties": {
|
|
175
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "revoke" }, "requestId": { "$ref": "#/$defs/id" },
|
|
176
|
-
"at": { "$ref": "#/$defs/timestamp" }, "responseRef": { "$ref": "#/$defs/id" }
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"type": "object", "additionalProperties": false,
|
|
181
|
-
"required": ["eventId", "type", "requestId", "at", "reason"],
|
|
182
|
-
"properties": {
|
|
183
|
-
"eventId": { "$ref": "#/$defs/id" }, "type": { "const": "close" }, "requestId": { "$ref": "#/$defs/id" },
|
|
184
|
-
"at": { "$ref": "#/$defs/timestamp" },
|
|
185
|
-
"reason": { "type": "string", "enum": ["completed", "superseded", "cancelled"] }
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
]
|
|
189
|
-
},
|
|
190
|
-
"history": {
|
|
191
|
-
"type": "object", "additionalProperties": false, "required": ["projectId", "taskId", "events"],
|
|
192
|
-
"properties": {
|
|
193
|
-
"projectId": { "$ref": "#/$defs/id" }, "taskId": { "$ref": "#/$defs/id" },
|
|
194
|
-
"events": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/event" } }
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
"checkpoint": {
|
|
198
|
-
"type": "object", "additionalProperties": false, "required": ["revision", "historySha256"],
|
|
199
|
-
"properties": {
|
|
200
|
-
"revision": { "type": "integer", "minimum": 0, "maximum": 256 },
|
|
201
|
-
"historySha256": { "$ref": "#/$defs/sha256" }
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
"query": {
|
|
205
|
-
"type": "object", "additionalProperties": false,
|
|
206
|
-
"required": ["requestId", "operationId", "recipient", "items", "checks", "effects", "observedBaseSha256", "artifact", "retryOf"],
|
|
207
|
-
"properties": {
|
|
208
|
-
"requestId": { "$ref": "#/$defs/id" }, "operationId": { "$ref": "#/$defs/nullableId" },
|
|
209
|
-
"recipient": { "$ref": "#/$defs/recipient" }, "items": { "$ref": "#/$defs/items" },
|
|
210
|
-
"checks": { "$ref": "#/$defs/checks" }, "effects": { "$ref": "#/$defs/effects" },
|
|
211
|
-
"observedBaseSha256": { "$ref": "#/$defs/sha256" }, "artifact": { "$ref": "#/$defs/artifactRef" },
|
|
212
|
-
"retryOf": { "$ref": "#/$defs/nullableId" }
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
"replayInput": {
|
|
216
|
-
"type": "object", "additionalProperties": false, "required": ["schemaVersion", "history", "checkpoint"],
|
|
217
|
-
"properties": {
|
|
218
|
-
"schemaVersion": { "const": "1.0.0" }, "history": { "$ref": "#/$defs/history" },
|
|
219
|
-
"checkpoint": { "$ref": "#/$defs/checkpoint" }
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
"proposeInput": {
|
|
223
|
-
"type": "object", "additionalProperties": false, "required": ["schemaVersion", "history", "checkpoint", "event"],
|
|
224
|
-
"properties": {
|
|
225
|
-
"schemaVersion": { "const": "1.0.0" }, "history": { "$ref": "#/$defs/history" },
|
|
226
|
-
"checkpoint": { "$ref": "#/$defs/checkpoint" }, "event": { "$ref": "#/$defs/event" }
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
"coverInput": {
|
|
230
|
-
"type": "object", "additionalProperties": false, "required": ["schemaVersion", "history", "checkpoint", "now", "query"],
|
|
231
|
-
"properties": {
|
|
232
|
-
"schemaVersion": { "const": "1.0.0" }, "history": { "$ref": "#/$defs/history" },
|
|
233
|
-
"checkpoint": { "$ref": "#/$defs/checkpoint" }, "now": { "$ref": "#/$defs/timestamp" },
|
|
234
|
-
"query": { "$ref": "#/$defs/query" }
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
"remaining": {
|
|
238
|
-
"type": "object", "additionalProperties": false, "required": ["operations", "corrections", "retries"],
|
|
239
|
-
"properties": {
|
|
240
|
-
"operations": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
241
|
-
"corrections": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
242
|
-
"retries": { "type": "integer", "minimum": 0, "maximum": 100 }
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
"operationSummary": {
|
|
246
|
-
"type": "object", "additionalProperties": false, "required": ["operationId", "state", "reserveEventId", "retryOf"],
|
|
247
|
-
"properties": {
|
|
248
|
-
"operationId": { "$ref": "#/$defs/id" },
|
|
249
|
-
"state": { "type": "string", "enum": ["reserved", "started", "indeterminate", "succeeded", "failed", "released-declared"] },
|
|
250
|
-
"reserveEventId": { "$ref": "#/$defs/id" }, "retryOf": { "$ref": "#/$defs/nullableId" }
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
"requestSummary": {
|
|
254
|
-
"type": "object", "additionalProperties": false,
|
|
255
|
-
"required": ["requestId", "status", "scopeSha256", "requestSha256", "artifact", "baseSha256", "divergedBaseSha256", "corrections", "retries", "usedOperations", "remaining", "operations"],
|
|
256
|
-
"properties": {
|
|
257
|
-
"requestId": { "$ref": "#/$defs/id" },
|
|
258
|
-
"status": { "type": "string", "enum": ["pending", "approved", "denied", "revoked", "closed"] },
|
|
259
|
-
"scopeSha256": { "$ref": "#/$defs/sha256" }, "requestSha256": { "$ref": "#/$defs/sha256" },
|
|
260
|
-
"artifact": { "$ref": "#/$defs/artifact" }, "baseSha256": { "$ref": "#/$defs/sha256" },
|
|
261
|
-
"divergedBaseSha256": { "$ref": "#/$defs/nullableSha256" },
|
|
262
|
-
"corrections": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
263
|
-
"retries": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
264
|
-
"usedOperations": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
265
|
-
"remaining": { "$ref": "#/$defs/remaining" },
|
|
266
|
-
"operations": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/operationSummary" } }
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
"view": {
|
|
270
|
-
"type": "object", "additionalProperties": false,
|
|
271
|
-
"required": ["revision", "historySha256", "duplicatesIgnored", "lastEventAt", "requests"],
|
|
272
|
-
"properties": {
|
|
273
|
-
"revision": { "type": "integer", "minimum": 0, "maximum": 256 },
|
|
274
|
-
"historySha256": { "$ref": "#/$defs/sha256" },
|
|
275
|
-
"duplicatesIgnored": { "type": "integer", "minimum": 0, "maximum": 256 },
|
|
276
|
-
"lastEventAt": { "anyOf": [{ "$ref": "#/$defs/timestamp" }, { "type": "null" }] },
|
|
277
|
-
"requests": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/requestSummary" } }
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
"proposal": {
|
|
281
|
-
"type": "object", "additionalProperties": false, "required": ["event", "nextRevision", "nextHistorySha256"],
|
|
282
|
-
"properties": {
|
|
283
|
-
"event": { "$ref": "#/$defs/event" }, "nextRevision": { "type": "integer", "minimum": 1, "maximum": 256 },
|
|
284
|
-
"nextHistorySha256": { "$ref": "#/$defs/sha256" }
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
"report": {
|
|
288
|
-
"type": "object", "additionalProperties": false,
|
|
289
|
-
"required": ["schemaVersion", "engineVersion", "operation", "state", "reasons", "authorityVerified", "executionAuthorized", "persisted", "nativeExecuted", "requestId", "revision", "historySha256", "view", "remaining", "proposal"],
|
|
290
|
-
"properties": {
|
|
291
|
-
"schemaVersion": { "const": "1.0.0" }, "engineVersion": { "const": "1.0.0" },
|
|
292
|
-
"operation": { "type": "string", "enum": ["replay", "propose", "cover"] },
|
|
293
|
-
"state": {
|
|
294
|
-
"type": "string",
|
|
295
|
-
"enum": ["reduced", "proposed", "noop", "declared-covered", "approval-needed", "blocked", "reconciliation-required", "invalid"]
|
|
296
|
-
},
|
|
297
|
-
"reasons": {
|
|
298
|
-
"type": "array", "minItems": 1, "maxItems": 1,
|
|
299
|
-
"items": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,63}$" }
|
|
300
|
-
},
|
|
301
|
-
"authorityVerified": { "type": "boolean", "const": false },
|
|
302
|
-
"executionAuthorized": { "type": "boolean", "const": false },
|
|
303
|
-
"persisted": { "type": "boolean", "const": false },
|
|
304
|
-
"nativeExecuted": { "type": "boolean", "const": false },
|
|
305
|
-
"requestId": { "$ref": "#/$defs/nullableId" },
|
|
306
|
-
"revision": { "anyOf": [{ "type": "integer", "minimum": 0, "maximum": 256 }, { "type": "null" }] },
|
|
307
|
-
"historySha256": { "$ref": "#/$defs/nullableSha256" },
|
|
308
|
-
"view": { "anyOf": [{ "$ref": "#/$defs/view" }, { "type": "null" }] },
|
|
309
|
-
"remaining": { "anyOf": [{ "$ref": "#/$defs/remaining" }, { "type": "null" }] },
|
|
310
|
-
"proposal": { "anyOf": [{ "$ref": "#/$defs/proposal" }, { "type": "null" }] }
|
|
311
|
-
},
|
|
312
|
-
"allOf": [
|
|
313
|
-
{
|
|
314
|
-
"if": { "type": "object", "properties": { "state": { "const": "reduced" } }, "required": ["state"] },
|
|
315
|
-
"then": {
|
|
316
|
-
"type": "object",
|
|
317
|
-
"properties": {
|
|
318
|
-
"operation": { "const": "replay" }, "view": { "$ref": "#/$defs/view" },
|
|
319
|
-
"proposal": { "type": "null" }, "remaining": { "type": "null" }
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"if": { "type": "object", "properties": { "state": { "const": "proposed" } }, "required": ["state"] },
|
|
325
|
-
"then": {
|
|
326
|
-
"type": "object",
|
|
327
|
-
"properties": {
|
|
328
|
-
"operation": { "const": "propose" }, "proposal": { "$ref": "#/$defs/proposal" },
|
|
329
|
-
"view": { "type": "null" }, "remaining": { "type": "null" }
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"if": { "type": "object", "properties": { "state": { "const": "noop" } }, "required": ["state"] },
|
|
335
|
-
"then": { "type": "object", "properties": { "operation": { "const": "propose" } } }
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"if": {
|
|
339
|
-
"type": "object", "required": ["state"],
|
|
340
|
-
"properties": { "state": { "enum": ["declared-covered", "approval-needed", "reconciliation-required"] } }
|
|
341
|
-
},
|
|
342
|
-
"then": { "type": "object", "properties": { "operation": { "const": "cover" } } }
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"if": { "type": "object", "properties": { "state": { "const": "declared-covered" } }, "required": ["state"] },
|
|
346
|
-
"then": { "type": "object", "properties": { "remaining": { "$ref": "#/$defs/remaining" } } }
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
"if": {
|
|
350
|
-
"type": "object", "required": ["state"],
|
|
351
|
-
"properties": { "state": { "enum": ["noop", "declared-covered", "approval-needed", "reconciliation-required", "blocked", "invalid"] } }
|
|
352
|
-
},
|
|
353
|
-
"then": { "type": "object", "properties": { "view": { "type": "null" }, "proposal": { "type": "null" } } }
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"if": { "type": "object", "properties": { "operation": { "enum": ["replay", "propose"] } }, "required": ["operation"] },
|
|
357
|
-
"then": { "type": "object", "properties": { "remaining": { "type": "null" } } }
|
|
358
|
-
}
|
|
359
|
-
]
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|