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,90 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-toolkit.local/schemas/agent-client-native-preflight.schema.json",
|
|
4
|
-
"$defs": {
|
|
5
|
-
"sha": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
6
|
-
"ref": {"type": ["string", "null"], "pattern": "^[a-z][a-z0-9-]{0,63}$"},
|
|
7
|
-
"time": {"type": ["string", "null"], "format": "date-time"},
|
|
8
|
-
"assessment": {
|
|
9
|
-
"type": "object", "additionalProperties": false,
|
|
10
|
-
"required": ["source", "referenceId", "checkedAt", "scopeSha256"],
|
|
11
|
-
"properties": {
|
|
12
|
-
"source": {"enum": ["documented", "operator-attested", "locally-observed", "pending"]},
|
|
13
|
-
"referenceId": {"$ref": "#/$defs/ref"}, "checkedAt": {"$ref": "#/$defs/time"},
|
|
14
|
-
"scopeSha256": {"anyOf": [{"$ref": "#/$defs/sha"}, {"type": "null"}]}
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"field": {
|
|
18
|
-
"type": "object", "additionalProperties": false,
|
|
19
|
-
"required": ["name", "state", "assessment"],
|
|
20
|
-
"properties": {
|
|
21
|
-
"name": {"enum": ["policy", "hooks", "commands", "mcp", "connectors", "api-helper", "third-party", "fallback", "delegation"]},
|
|
22
|
-
"state": {"enum": ["absent", "disabled", "present", "unknown"]}, "assessment": {"$ref": "#/$defs/assessment"}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"projection": {
|
|
26
|
-
"type": "object", "additionalProperties": false, "required": ["safeSource", "fields"],
|
|
27
|
-
"properties": {"safeSource": {"type": "boolean"}, "fields": {"type": "array", "maxItems": 9, "items": {"$ref": "#/$defs/field"}}}
|
|
28
|
-
},
|
|
29
|
-
"auth": {
|
|
30
|
-
"type": "object", "additionalProperties": false,
|
|
31
|
-
"required": ["loggedIn", "authMethod", "subscriptionType"],
|
|
32
|
-
"properties": {
|
|
33
|
-
"loggedIn": {"type": "boolean"},
|
|
34
|
-
"authMethod": {"enum": ["none", "claude.ai", "oauth_token", "api_key", "api_key_helper", "third_party"]},
|
|
35
|
-
"subscriptionType": {"enum": ["pro", "max", "team", "enterprise", "free", null]}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"access": {
|
|
39
|
-
"type": "object", "additionalProperties": false, "required": ["data", "assessment"],
|
|
40
|
-
"properties": {"data": {"$ref": "#/$defs/auth"}, "assessment": {"$ref": "#/$defs/assessment"}}
|
|
41
|
-
},
|
|
42
|
-
"economy": {
|
|
43
|
-
"type": "object", "additionalProperties": false,
|
|
44
|
-
"required": ["state", "source", "referenceId", "receivedAt", "scopeSha256", "sessionContinuity"],
|
|
45
|
-
"properties": {
|
|
46
|
-
"state": {"enum": ["disabled", "enabled", "unknown"]}, "source": {"enum": ["operator-attested", "pending"]},
|
|
47
|
-
"referenceId": {"$ref": "#/$defs/ref"}, "receivedAt": {"$ref": "#/$defs/time"},
|
|
48
|
-
"scopeSha256": {"anyOf": [{"$ref": "#/$defs/sha"}, {"type": "null"}]}, "sessionContinuity": {"type": ["boolean", "null"]}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"input": {
|
|
52
|
-
"type": "object", "additionalProperties": false,
|
|
53
|
-
"required": ["schemaVersion", "scope", "now", "candidateScopeSha256", "projection"],
|
|
54
|
-
"properties": {
|
|
55
|
-
"schemaVersion": {"const": "1.0.0"}, "scope": {"const": "native-preflight-only"},
|
|
56
|
-
"now": {"type": "string", "format": "date-time"}, "candidateScopeSha256": {"$ref": "#/$defs/sha"},
|
|
57
|
-
"projection": {"$ref": "#/$defs/projection"}, "access": {"$ref": "#/$defs/access"}, "economy": {"$ref": "#/$defs/economy"}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"accessReport": {
|
|
61
|
-
"type": "object", "additionalProperties": false,
|
|
62
|
-
"required": ["scope", "state", "nativeExecuted", "spawnAttempts", "inferenceRequested", "actualModelCalls", "runtimeReady", "verifiedAdmission", "externalBillingVerified", "remoteCancellationVerified", "terminationConfirmed", "stdoutBytes", "stderrBytes", "elapsedMs", "preflight", "reasons"],
|
|
63
|
-
"properties": {
|
|
64
|
-
"scope": {"const": "native-access-only"}, "state": {"enum": ["blocked", "completed", "failed", "canceled", "timed-out", "indeterminate"]},
|
|
65
|
-
"nativeExecuted": {"type": "boolean"}, "spawnAttempts": {"type": "integer", "minimum": 0, "maximum": 1},
|
|
66
|
-
"inferenceRequested": {"const": false}, "actualModelCalls": {"type": "null"}, "runtimeReady": {"const": false},
|
|
67
|
-
"verifiedAdmission": {"const": false}, "externalBillingVerified": {"const": false}, "remoteCancellationVerified": {"const": false},
|
|
68
|
-
"terminationConfirmed": {"type": "boolean"},
|
|
69
|
-
"stdoutBytes": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
70
|
-
"stderrBytes": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
71
|
-
"elapsedMs": {"type": "integer", "minimum": 0, "maximum": 9007199254740991},
|
|
72
|
-
"preflight": {"anyOf": [{"$ref": "#/$defs/report"}, {"type": "null"}]},
|
|
73
|
-
"reasons": {"type": "array", "uniqueItems": true, "maxItems": 24, "items": {"enum": ["access-controls-insufficient", "access-local-check-failed", "access-signal-unconfirmed", "access-group-unconfirmed", "access-termination-unconfirmed", "access-response-invalid", "access-deadline", "access-descendants-unconfirmed", "access-spawn-failed", "access-process-error", "access-output-limit", "access-stderr-limit", "access-utf8-invalid", "access-canceled", "access-completed", "access-preflight-incompatible", "access-workspace-cleanup-required"]}}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"report": {
|
|
77
|
-
"type": "object", "additionalProperties": false,
|
|
78
|
-
"required": ["scope", "state", "queryEligible", "nativeExecuted", "inferenceRequested", "actualModelCalls", "runtimeReady", "verifiedAdmission", "externalBillingVerified", "remoteCancellationVerified", "reasons", "unresolvedFields", "audit"],
|
|
79
|
-
"properties": {
|
|
80
|
-
"scope": {"const": "native-preflight-only"}, "state": {"enum": ["invalid", "incomplete", "blocked", "review-complete"]},
|
|
81
|
-
"queryEligible": {"type": "boolean"}, "nativeExecuted": {"const": false}, "inferenceRequested": {"const": false},
|
|
82
|
-
"actualModelCalls": {"type": "null"}, "runtimeReady": {"const": false}, "verifiedAdmission": {"const": false},
|
|
83
|
-
"externalBillingVerified": {"const": false}, "remoteCancellationVerified": {"const": false},
|
|
84
|
-
"reasons": {"type": "array", "uniqueItems": true, "maxItems": 32, "items": {"enum": ["preflight-invalid-input", "preflight-binding-mismatch", "preflight-duplicate-field", "safe-projection-unavailable", "preflight-critical-control-present", "preflight-controls-unresolved", "preflight-evidence-rejected", "preflight-access-unresolved", "preflight-access-incompatible", "preflight-subscription-unresolved", "preflight-economy-unresolved", "preflight-economy-enabled", "preflight-session-unresolved", "preflight-review-complete"]}},
|
|
85
|
-
"unresolvedFields": {"type": "array", "uniqueItems": true, "maxItems": 9, "items": {"$ref": "#/$defs/field/properties/name"}},
|
|
86
|
-
"audit": {"type": "object", "additionalProperties": false, "required": ["inputSha256"], "properties": {"inputSha256": {"anyOf": [{"$ref": "#/$defs/sha"}, {"type": "null"}]}}}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -1,551 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-toolkit.local/schemas/agent-client-output.schema.json",
|
|
4
|
-
"title": "Offline Client Output v1",
|
|
5
|
-
"description": "Parsing de capturas como datos no autenticados; no ejecuta ni certifica clientes.",
|
|
6
|
-
"$ref": "#/$defs/metadata",
|
|
7
|
-
"$defs": {
|
|
8
|
-
"config": {
|
|
9
|
-
"type": "object",
|
|
10
|
-
"additionalProperties": false,
|
|
11
|
-
"required": [
|
|
12
|
-
"schemaVersion",
|
|
13
|
-
"supportedClients"
|
|
14
|
-
],
|
|
15
|
-
"properties": {
|
|
16
|
-
"schemaVersion": {
|
|
17
|
-
"const": "1.0.0"
|
|
18
|
-
},
|
|
19
|
-
"supportedClients": {
|
|
20
|
-
"type": "array",
|
|
21
|
-
"maxItems": 64,
|
|
22
|
-
"items": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"additionalProperties": false,
|
|
25
|
-
"required": [
|
|
26
|
-
"descriptor",
|
|
27
|
-
"formatId"
|
|
28
|
-
],
|
|
29
|
-
"properties": {
|
|
30
|
-
"descriptor": {
|
|
31
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/client"
|
|
32
|
-
},
|
|
33
|
-
"formatId": {
|
|
34
|
-
"enum": [
|
|
35
|
-
"codex-jsonl-text-v1",
|
|
36
|
-
"claude-jsonl-text-v1"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"process": {
|
|
45
|
-
"type": "object",
|
|
46
|
-
"additionalProperties": false,
|
|
47
|
-
"required": [
|
|
48
|
-
"exitCode",
|
|
49
|
-
"signal",
|
|
50
|
-
"elapsedSeconds"
|
|
51
|
-
],
|
|
52
|
-
"properties": {
|
|
53
|
-
"exitCode": {
|
|
54
|
-
"anyOf": [
|
|
55
|
-
{
|
|
56
|
-
"type": "integer",
|
|
57
|
-
"minimum": 0,
|
|
58
|
-
"maximum": 255
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"type": "null"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"signal": {
|
|
66
|
-
"anyOf": [
|
|
67
|
-
{
|
|
68
|
-
"type": "string",
|
|
69
|
-
"pattern": "^SIG[A-Z0-9]{1,24}$"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"type": "null"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"elapsedSeconds": {
|
|
77
|
-
"anyOf": [
|
|
78
|
-
{
|
|
79
|
-
"type": "number",
|
|
80
|
-
"minimum": 0,
|
|
81
|
-
"maximum": 86400
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"type": "null"
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"metadata": {
|
|
91
|
-
"type": "object",
|
|
92
|
-
"additionalProperties": false,
|
|
93
|
-
"required": [
|
|
94
|
-
"schemaVersion",
|
|
95
|
-
"plan",
|
|
96
|
-
"captureRef"
|
|
97
|
-
],
|
|
98
|
-
"properties": {
|
|
99
|
-
"schemaVersion": {
|
|
100
|
-
"const": "1.0.0"
|
|
101
|
-
},
|
|
102
|
-
"plan": {
|
|
103
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/report"
|
|
104
|
-
},
|
|
105
|
-
"captureRef": {
|
|
106
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
107
|
-
},
|
|
108
|
-
"processObservation": {
|
|
109
|
-
"$ref": "#/$defs/process"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"observation": {
|
|
114
|
-
"type": "object",
|
|
115
|
-
"additionalProperties": false,
|
|
116
|
-
"required": [
|
|
117
|
-
"value",
|
|
118
|
-
"verification",
|
|
119
|
-
"match",
|
|
120
|
-
"source",
|
|
121
|
-
"scope"
|
|
122
|
-
],
|
|
123
|
-
"properties": {
|
|
124
|
-
"value": {
|
|
125
|
-
"anyOf": [
|
|
126
|
-
{
|
|
127
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"type": "null"
|
|
131
|
-
}
|
|
132
|
-
]
|
|
133
|
-
},
|
|
134
|
-
"verification": {
|
|
135
|
-
"enum": [
|
|
136
|
-
"reported",
|
|
137
|
-
"unknown"
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
"match": {
|
|
141
|
-
"enum": [
|
|
142
|
-
"matched",
|
|
143
|
-
"mismatched",
|
|
144
|
-
"unknown"
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
"source": {
|
|
148
|
-
"anyOf": [
|
|
149
|
-
{
|
|
150
|
-
"enum": [
|
|
151
|
-
"client-init",
|
|
152
|
-
"claude-assistant-message"
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"type": "null"
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
},
|
|
160
|
-
"scope": {
|
|
161
|
-
"anyOf": [
|
|
162
|
-
{
|
|
163
|
-
"enum": [
|
|
164
|
-
"configuration",
|
|
165
|
-
"response"
|
|
166
|
-
]
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"type": "null"
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"allOf": [
|
|
175
|
-
{
|
|
176
|
-
"if": {
|
|
177
|
-
"properties": { "verification": { "const": "unknown" } },
|
|
178
|
-
"required": ["verification"]
|
|
179
|
-
},
|
|
180
|
-
"then": {
|
|
181
|
-
"properties": {
|
|
182
|
-
"value": { "type": "null" },
|
|
183
|
-
"match": { "const": "unknown" },
|
|
184
|
-
"source": { "type": "null" },
|
|
185
|
-
"scope": { "type": "null" }
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"else": {
|
|
189
|
-
"properties": {
|
|
190
|
-
"value": { "type": "string" },
|
|
191
|
-
"match": { "enum": ["matched", "mismatched"] },
|
|
192
|
-
"source": { "type": "string" },
|
|
193
|
-
"scope": { "type": "string" }
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
"usage": {
|
|
200
|
-
"type": "object",
|
|
201
|
-
"additionalProperties": false,
|
|
202
|
-
"required": [
|
|
203
|
-
"inputTokens",
|
|
204
|
-
"outputTokens",
|
|
205
|
-
"cacheReadTokens",
|
|
206
|
-
"reasoningTokens",
|
|
207
|
-
"totalTokens"
|
|
208
|
-
],
|
|
209
|
-
"properties": {
|
|
210
|
-
"inputTokens": {
|
|
211
|
-
"anyOf": [
|
|
212
|
-
{
|
|
213
|
-
"type": "integer",
|
|
214
|
-
"minimum": 0,
|
|
215
|
-
"maximum": 9007199254740991
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"type": "null"
|
|
219
|
-
}
|
|
220
|
-
]
|
|
221
|
-
},
|
|
222
|
-
"outputTokens": {
|
|
223
|
-
"anyOf": [
|
|
224
|
-
{
|
|
225
|
-
"type": "integer",
|
|
226
|
-
"minimum": 0,
|
|
227
|
-
"maximum": 9007199254740991
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"type": "null"
|
|
231
|
-
}
|
|
232
|
-
]
|
|
233
|
-
},
|
|
234
|
-
"cacheReadTokens": {
|
|
235
|
-
"anyOf": [
|
|
236
|
-
{
|
|
237
|
-
"type": "integer",
|
|
238
|
-
"minimum": 0,
|
|
239
|
-
"maximum": 9007199254740991
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"type": "null"
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
"reasoningTokens": {
|
|
247
|
-
"anyOf": [
|
|
248
|
-
{
|
|
249
|
-
"type": "integer",
|
|
250
|
-
"minimum": 0,
|
|
251
|
-
"maximum": 9007199254740991
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"type": "null"
|
|
255
|
-
}
|
|
256
|
-
]
|
|
257
|
-
},
|
|
258
|
-
"totalTokens": {
|
|
259
|
-
"anyOf": [
|
|
260
|
-
{
|
|
261
|
-
"type": "integer",
|
|
262
|
-
"minimum": 0,
|
|
263
|
-
"maximum": 9007199254740991
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"type": "null"
|
|
267
|
-
}
|
|
268
|
-
]
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
"report": {
|
|
273
|
-
"type": "object",
|
|
274
|
-
"additionalProperties": false,
|
|
275
|
-
"required": [
|
|
276
|
-
"schemaVersion",
|
|
277
|
-
"parserVersion",
|
|
278
|
-
"state",
|
|
279
|
-
"nativeState",
|
|
280
|
-
"executed",
|
|
281
|
-
"verifiedExecution",
|
|
282
|
-
"reviewRequired",
|
|
283
|
-
"client",
|
|
284
|
-
"captureRef",
|
|
285
|
-
"identity",
|
|
286
|
-
"requested",
|
|
287
|
-
"response",
|
|
288
|
-
"model",
|
|
289
|
-
"configuredModel",
|
|
290
|
-
"configuredEffort",
|
|
291
|
-
"effort",
|
|
292
|
-
"usage",
|
|
293
|
-
"usageScope",
|
|
294
|
-
"durationSeconds",
|
|
295
|
-
"processObservation",
|
|
296
|
-
"eventCount",
|
|
297
|
-
"stderrBytes",
|
|
298
|
-
"reasons",
|
|
299
|
-
"audit"
|
|
300
|
-
],
|
|
301
|
-
"properties": {
|
|
302
|
-
"schemaVersion": {
|
|
303
|
-
"const": "1.0.0"
|
|
304
|
-
},
|
|
305
|
-
"parserVersion": {
|
|
306
|
-
"const": "1.0.0"
|
|
307
|
-
},
|
|
308
|
-
"state": {
|
|
309
|
-
"enum": [
|
|
310
|
-
"invalid",
|
|
311
|
-
"blocked",
|
|
312
|
-
"incomplete",
|
|
313
|
-
"accepted"
|
|
314
|
-
]
|
|
315
|
-
},
|
|
316
|
-
"nativeState": {
|
|
317
|
-
"enum": [
|
|
318
|
-
"unknown",
|
|
319
|
-
"completed",
|
|
320
|
-
"failed",
|
|
321
|
-
"canceled",
|
|
322
|
-
"interrupted",
|
|
323
|
-
"waiting",
|
|
324
|
-
"running"
|
|
325
|
-
]
|
|
326
|
-
},
|
|
327
|
-
"executed": {
|
|
328
|
-
"const": false
|
|
329
|
-
},
|
|
330
|
-
"verifiedExecution": {
|
|
331
|
-
"const": false
|
|
332
|
-
},
|
|
333
|
-
"reviewRequired": {
|
|
334
|
-
"const": true
|
|
335
|
-
},
|
|
336
|
-
"client": {
|
|
337
|
-
"anyOf": [
|
|
338
|
-
{
|
|
339
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/client"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"type": "null"
|
|
343
|
-
}
|
|
344
|
-
]
|
|
345
|
-
},
|
|
346
|
-
"captureRef": {
|
|
347
|
-
"anyOf": [
|
|
348
|
-
{
|
|
349
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"type": "null"
|
|
353
|
-
}
|
|
354
|
-
]
|
|
355
|
-
},
|
|
356
|
-
"identity": {
|
|
357
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/report/properties/identity"
|
|
358
|
-
},
|
|
359
|
-
"requested": {
|
|
360
|
-
"anyOf": [
|
|
361
|
-
{
|
|
362
|
-
"type": "object",
|
|
363
|
-
"additionalProperties": false,
|
|
364
|
-
"required": [
|
|
365
|
-
"model",
|
|
366
|
-
"effort"
|
|
367
|
-
],
|
|
368
|
-
"properties": {
|
|
369
|
-
"model": {
|
|
370
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
371
|
-
},
|
|
372
|
-
"effort": {
|
|
373
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"type": "null"
|
|
379
|
-
}
|
|
380
|
-
]
|
|
381
|
-
},
|
|
382
|
-
"response": {
|
|
383
|
-
"anyOf": [
|
|
384
|
-
{
|
|
385
|
-
"type": "string",
|
|
386
|
-
"maxLength": 1048576
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
"type": "null"
|
|
390
|
-
}
|
|
391
|
-
]
|
|
392
|
-
},
|
|
393
|
-
"model": {
|
|
394
|
-
"$ref": "#/$defs/observation"
|
|
395
|
-
},
|
|
396
|
-
"configuredModel": {
|
|
397
|
-
"$ref": "#/$defs/observation"
|
|
398
|
-
},
|
|
399
|
-
"configuredEffort": {
|
|
400
|
-
"$ref": "#/$defs/observation"
|
|
401
|
-
},
|
|
402
|
-
"effort": {
|
|
403
|
-
"$ref": "#/$defs/observation",
|
|
404
|
-
"const": { "value": null, "verification": "unknown", "match": "unknown", "source": null, "scope": null }
|
|
405
|
-
},
|
|
406
|
-
"usage": {
|
|
407
|
-
"$ref": "#/$defs/usage"
|
|
408
|
-
},
|
|
409
|
-
"usageScope": {
|
|
410
|
-
"anyOf": [
|
|
411
|
-
{
|
|
412
|
-
"enum": [
|
|
413
|
-
"terminal-native-report"
|
|
414
|
-
]
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"type": "null"
|
|
418
|
-
}
|
|
419
|
-
]
|
|
420
|
-
},
|
|
421
|
-
"durationSeconds": {
|
|
422
|
-
"anyOf": [
|
|
423
|
-
{
|
|
424
|
-
"type": "number",
|
|
425
|
-
"minimum": 0,
|
|
426
|
-
"maximum": 86400
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"type": "null"
|
|
430
|
-
}
|
|
431
|
-
]
|
|
432
|
-
},
|
|
433
|
-
"processObservation": {
|
|
434
|
-
"anyOf": [
|
|
435
|
-
{
|
|
436
|
-
"$ref": "#/$defs/process"
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"type": "null"
|
|
440
|
-
}
|
|
441
|
-
]
|
|
442
|
-
},
|
|
443
|
-
"eventCount": {
|
|
444
|
-
"type": "integer",
|
|
445
|
-
"minimum": 0,
|
|
446
|
-
"maximum": 10000
|
|
447
|
-
},
|
|
448
|
-
"stderrBytes": {
|
|
449
|
-
"type": "integer",
|
|
450
|
-
"minimum": 0,
|
|
451
|
-
"maximum": 65536
|
|
452
|
-
},
|
|
453
|
-
"reasons": {
|
|
454
|
-
"type": "array",
|
|
455
|
-
"uniqueItems": true,
|
|
456
|
-
"maxItems": 128,
|
|
457
|
-
"items": {
|
|
458
|
-
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
"audit": {
|
|
462
|
-
"type": "object",
|
|
463
|
-
"additionalProperties": false,
|
|
464
|
-
"required": [
|
|
465
|
-
"planSha256",
|
|
466
|
-
"stdoutSha256",
|
|
467
|
-
"stderrSha256"
|
|
468
|
-
],
|
|
469
|
-
"properties": {
|
|
470
|
-
"planSha256": {
|
|
471
|
-
"anyOf": [
|
|
472
|
-
{
|
|
473
|
-
"type": "string",
|
|
474
|
-
"pattern": "^[a-f0-9]{64}$"
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
"type": "null"
|
|
478
|
-
}
|
|
479
|
-
]
|
|
480
|
-
},
|
|
481
|
-
"stdoutSha256": {
|
|
482
|
-
"anyOf": [
|
|
483
|
-
{
|
|
484
|
-
"type": "string",
|
|
485
|
-
"pattern": "^[a-f0-9]{64}$"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"type": "null"
|
|
489
|
-
}
|
|
490
|
-
]
|
|
491
|
-
},
|
|
492
|
-
"stderrSha256": {
|
|
493
|
-
"anyOf": [
|
|
494
|
-
{
|
|
495
|
-
"type": "string",
|
|
496
|
-
"pattern": "^[a-f0-9]{64}$"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"type": "null"
|
|
500
|
-
}
|
|
501
|
-
]
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
},
|
|
506
|
-
"allOf": [
|
|
507
|
-
{
|
|
508
|
-
"if": {
|
|
509
|
-
"properties": {
|
|
510
|
-
"state": {
|
|
511
|
-
"const": "accepted"
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
"required": [
|
|
515
|
-
"state"
|
|
516
|
-
]
|
|
517
|
-
},
|
|
518
|
-
"then": {
|
|
519
|
-
"properties": {
|
|
520
|
-
"nativeState": {
|
|
521
|
-
"const": "completed"
|
|
522
|
-
},
|
|
523
|
-
"response": {
|
|
524
|
-
"type": "string",
|
|
525
|
-
"minLength": 1
|
|
526
|
-
},
|
|
527
|
-
"client": { "type": "object" },
|
|
528
|
-
"identity": { "type": "object" },
|
|
529
|
-
"captureRef": { "type": "string" },
|
|
530
|
-
"requested": { "type": "object" },
|
|
531
|
-
"processObservation": {
|
|
532
|
-
"type": "object",
|
|
533
|
-
"properties": {
|
|
534
|
-
"exitCode": { "const": 0 },
|
|
535
|
-
"signal": { "type": "null" }
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
},
|
|
540
|
-
"else": {
|
|
541
|
-
"properties": {
|
|
542
|
-
"response": {
|
|
543
|
-
"type": "null"
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
]
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|