nexakit 0.0.0-stage → 0.2.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/.claude-plugin/marketplace.json +28 -0
- package/LICENSE +26 -0
- package/README.md +79 -2
- package/agents/claude/docs-researcher.md +9 -0
- package/agents/claude/implementation-tutor.md +9 -0
- package/agents/claude/project-explorer.md +9 -0
- package/agents/claude/quality-reviewer.md +9 -0
- package/agents/claude/requirements-analyst.md +9 -0
- package/agents/claude/solution-architect.md +9 -0
- package/agents/codex/docs-researcher.toml +10 -0
- package/agents/codex/implementation-tutor.toml +10 -0
- package/agents/codex/project-explorer.toml +10 -0
- package/agents/codex/quality-reviewer.toml +10 -0
- package/agents/codex/requirements-analyst.toml +11 -0
- package/agents/codex/solution-architect.toml +10 -0
- package/assets/brand/README.md +38 -0
- package/assets/brand/agent-toolkit-mark.png +0 -0
- package/assets/brand/agent-toolkit-mark.svg +13 -0
- package/assets/brand/agent-toolkit-tui-hero.png +0 -0
- package/assets/brand/nexakit-readme-hero.png +0 -0
- package/assets/brand/nexakit-readme-hero.svg +21 -0
- package/assets/runtime/package-lock.json +1425 -0
- package/bin/agent-task.js +14 -0
- package/bin/agent-toolkit-gemini.js +13 -0
- package/bin/agent-toolkit-inbox.js +14 -0
- package/bin/agent-toolkit-mcp.js +17 -0
- package/bin/agent-toolkit.js +13 -0
- package/bin/nexakit.js +13 -0
- package/bin/project-memory-mcp.js +22 -0
- package/bin/project-memory.js +7 -0
- package/catalogs/skills/api-design-principles/LICENSE.txt +21 -0
- package/catalogs/skills/api-design-principles/SKILL.md +110 -0
- package/catalogs/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/catalogs/skills/api-design-principles/assets/rest-api-template.py +185 -0
- package/catalogs/skills/api-design-principles/references/details.md +413 -0
- package/catalogs/skills/api-design-principles/references/graphql-schema-design.md +589 -0
- package/catalogs/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/catalogs/skills/nodejs-backend-patterns/LICENSE.txt +21 -0
- package/catalogs/skills/nodejs-backend-patterns/SKILL.md +45 -0
- package/catalogs/skills/nodejs-backend-patterns/references/advanced-patterns.md +430 -0
- package/catalogs/skills/nodejs-backend-patterns/references/details.md +599 -0
- package/catalogs/skills/supabase-postgres-best-practices/CHANGELOG.md +73 -0
- package/catalogs/skills/supabase-postgres-best-practices/LICENSE.txt +21 -0
- package/catalogs/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/_contributing.md +170 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/_sections.md +39 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/_template.md +34 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/advanced-full-text-search.md +55 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md +49 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/conn-idle-timeout.md +46 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/conn-limits.md +44 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/conn-pooling.md +41 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/conn-prepared-statements.md +46 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/data-batch-inserts.md +54 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/data-n-plus-one.md +53 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/data-pagination.md +50 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/data-upsert.md +50 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/lock-advisory.md +56 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/lock-deadlock-prevention.md +68 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/lock-short-transactions.md +50 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/lock-skip-locked.md +54 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/monitor-explain-analyze.md +45 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md +55 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md +55 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/query-composite-indexes.md +44 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/query-covering-indexes.md +40 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/query-index-types.md +48 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/query-missing-indexes.md +43 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/query-partial-indexes.md +45 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/schema-constraints.md +80 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/schema-data-types.md +46 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md +59 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md +55 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/schema-partitioning.md +55 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/schema-primary-keys.md +61 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/security-privileges.md +54 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/security-rls-basics.md +50 -0
- package/catalogs/skills/supabase-postgres-best-practices/references/security-rls-performance.md +63 -0
- package/catalogs/skills/vercel-composition-patterns/AGENTS.md +946 -0
- package/catalogs/skills/vercel-composition-patterns/LICENSE.txt +27 -0
- package/catalogs/skills/vercel-composition-patterns/README.md +60 -0
- package/catalogs/skills/vercel-composition-patterns/SKILL.md +89 -0
- package/catalogs/skills/vercel-composition-patterns/metadata.json +11 -0
- package/catalogs/skills/vercel-composition-patterns/rules/_sections.md +29 -0
- package/catalogs/skills/vercel-composition-patterns/rules/_template.md +24 -0
- package/catalogs/skills/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
- package/catalogs/skills/vercel-composition-patterns/rules/architecture-compound-components.md +112 -0
- package/catalogs/skills/vercel-composition-patterns/rules/patterns-children-over-render-props.md +87 -0
- package/catalogs/skills/vercel-composition-patterns/rules/patterns-explicit-variants.md +100 -0
- package/catalogs/skills/vercel-composition-patterns/rules/react19-no-forwardref.md +42 -0
- package/catalogs/skills/vercel-composition-patterns/rules/state-context-interface.md +191 -0
- package/catalogs/skills/vercel-composition-patterns/rules/state-decouple-implementation.md +113 -0
- package/catalogs/skills/vercel-composition-patterns/rules/state-lift-state.md +125 -0
- package/catalogs/skills/vercel-react-best-practices/AGENTS.md +3810 -0
- package/catalogs/skills/vercel-react-best-practices/LICENSE.txt +27 -0
- package/catalogs/skills/vercel-react-best-practices/README.md +123 -0
- package/catalogs/skills/vercel-react-best-practices/SKILL.md +149 -0
- package/catalogs/skills/vercel-react-best-practices/metadata.json +15 -0
- package/catalogs/skills/vercel-react-best-practices/rules/_sections.md +46 -0
- package/catalogs/skills/vercel-react-best-practices/rules/_template.md +28 -0
- package/catalogs/skills/vercel-react-best-practices/rules/advanced-effect-event-deps.md +56 -0
- package/catalogs/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/catalogs/skills/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
- package/catalogs/skills/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
- package/catalogs/skills/vercel-react-best-practices/rules/async-api-routes.md +38 -0
- package/catalogs/skills/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +37 -0
- package/catalogs/skills/vercel-react-best-practices/rules/async-defer-await.md +82 -0
- package/catalogs/skills/vercel-react-best-practices/rules/async-dependencies.md +51 -0
- package/catalogs/skills/vercel-react-best-practices/rules/async-parallel.md +28 -0
- package/catalogs/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/catalogs/skills/vercel-react-best-practices/rules/bundle-analyzable-paths.md +63 -0
- package/catalogs/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +60 -0
- package/catalogs/skills/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
- package/catalogs/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/catalogs/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/catalogs/skills/vercel-react-best-practices/rules/bundle-preload.md +50 -0
- package/catalogs/skills/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
- package/catalogs/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/catalogs/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/catalogs/skills/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-early-exit.md +50 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-flatmap-filter.md +60 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-index-maps.md +37 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-request-idle-callback.md +105 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/catalogs/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-activity.md +26 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-resource-hints.md +85 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-script-defer-async.md +68 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-memo.md +44 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-no-inline-components.md +82 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +64 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-use-deferred-value.md +59 -0
- package/catalogs/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-cache-react.md +76 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-hoist-static-io.md +149 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-no-shared-module-state.md +50 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +34 -0
- package/catalogs/skills/vercel-react-best-practices/rules/server-serialization.md +38 -0
- package/catalogs/skills/webapp-testing/LICENSE.txt +202 -0
- package/catalogs/skills/webapp-testing/SKILL.md +96 -0
- package/catalogs/skills/webapp-testing/examples/console_logging.py +35 -0
- package/catalogs/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/catalogs/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/catalogs/skills/webapp-testing/scripts/with_server.py +106 -0
- package/catalogs/skills.json +1115 -0
- package/docs/skills/evidencias/2026-10-28-evaluacion-inicial-mcp-seguridad.md +118 -0
- package/docs/skills/evidencias/2026-10-28-incorporacion-mcp-seguridad.json +152 -0
- package/docs/skills/evidencias/2026-10-28-recomendador-preparacion.md +50 -0
- package/package.json +73 -4
- package/plugins/nexakit-modelo/.claude-plugin/plugin.json +1 -0
- package/plugins/nexakit-modelo/hooks/hooks.json +1 -0
- package/plugins/nexakit-modelo/hooks/register.js +48 -0
- package/plugins/nexakit-modelo/hooks/status.js +8 -0
- package/plugins/nexakit-modelo/tests/register.test.ts +21 -0
- package/plugins/nexakit-panel/.claude-plugin/plugin.json +1 -0
- package/plugins/nexakit-panel/README.md +20 -0
- package/plugins/nexakit-panel/hooks/hooks.json +1 -0
- package/plugins/nexakit-panel/hooks/lienzo.js +382 -0
- package/plugins/nexakit-panel/hooks/panel.js +279 -0
- package/plugins/nexakit-panel/hooks/register.tsx +248 -0
- package/plugins/nexakit-panel/tests/lienzo.test.ts +142 -0
- package/plugins/nexakit-panel/tests/panel.test.ts +240 -0
- package/plugins/nexakit-panel/tests/register.test.ts +167 -0
- package/plugins/nexakit-panel/types/index.d.ts +41 -0
- package/plugins/nexakit-sesion/.claude-plugin/plugin.json +1 -0
- package/plugins/nexakit-sesion/README.md +12 -0
- package/plugins/nexakit-sesion/hooks/aviso.js +38 -0
- package/plugins/nexakit-sesion/hooks/hooks.json +1 -0
- package/plugins/nexakit-sesion/hooks/register.js +28 -0
- package/plugins/nexakit-sesion/tests/register.test.ts +96 -0
- package/plugins/niveles/.claude-plugin/plugin.json +5 -0
- package/plugins/niveles/agents/nivel-alto.md +13 -0
- package/plugins/niveles/agents/nivel-exigente.md +13 -0
- package/plugins/niveles/agents/nivel-ligero.md +13 -0
- package/plugins/niveles/agents/nivel-normal.md +13 -0
- package/schemas/agent-client-adapter.schema.json +786 -0
- package/schemas/agent-client-auth-diagnostic.schema.json +801 -0
- package/schemas/agent-client-isolated-variant.schema.json +105 -0
- package/schemas/agent-client-isolated-verification.schema.json +99 -0
- package/schemas/agent-client-managed-preferences-invocation.schema.json +67 -0
- package/schemas/agent-client-managed-preferences.schema.json +63 -0
- package/schemas/agent-client-native-diagnostics.schema.json +85 -0
- package/schemas/agent-client-native-evaluation.schema.json +171 -0
- package/schemas/agent-client-native-preflight.schema.json +90 -0
- package/schemas/agent-client-output.schema.json +551 -0
- package/schemas/agent-client-runtime-fixture.schema.json +90 -0
- package/schemas/agent-client-runtime-local.schema.json +95 -0
- package/schemas/agent-client-runtime.schema.json +1288 -0
- package/schemas/agent-client-selective-config.schema.json +77 -0
- package/schemas/agent-client-supervised-local.schema.json +135 -0
- package/schemas/agent-client-supervised.schema.json +186 -0
- package/schemas/agent-model-preference.schema.json +573 -0
- package/schemas/agent-model-selection.schema.json +311 -0
- package/schemas/agent-task-approvals.schema.json +362 -0
- package/schemas/agent-task-prepare.schema.json +1324 -0
- package/schemas/agent-task-verify.schema.json +198 -0
- package/schemas/project-memory-update.schema.json +33 -0
- package/schemas/project-memory.schema.json +298 -0
- package/schemas/skill-catalog.schema.json +246 -0
- package/schemas/task-workflow-plan-output.schema.json +35 -0
- package/scripts/prepare-package.js +6 -0
- package/scripts/validate-skill-catalog.js +41 -0
- package/skills/cerrar-avisens/SKILL.md +12 -0
- package/skills/cerrar-memoria/SKILL.md +96 -0
- package/skills/cerrar-memoria/references/cierre.md +76 -0
- package/skills/decision-records/SKILL.md +27 -0
- package/skills/decision-records/agents/openai.yaml +7 -0
- package/skills/decision-records/references/adr-template.md +35 -0
- package/skills/differential-review/LICENSE.txt +427 -0
- package/skills/differential-review/SKILL.md +225 -0
- package/skills/differential-review/adversarial.md +203 -0
- package/skills/differential-review/agents/openai.yaml +6 -0
- package/skills/differential-review/assets/trail-of-bits-mark.svg +1 -0
- package/skills/differential-review/methodology.md +234 -0
- package/skills/differential-review/patterns.md +300 -0
- package/skills/differential-review/reporting.md +369 -0
- package/skills/elegir-modelo/SKILL.md +68 -0
- package/skills/elegir-modelo/modelos.mjs +108 -0
- package/skills/frontend-design/LICENSE.txt +177 -0
- package/skills/frontend-design/SKILL.md +71 -0
- package/skills/gemini/SKILL.md +52 -0
- package/skills/imagen/SKILL.md +12 -0
- package/skills/investigar/SKILL.md +11 -0
- package/skills/mcp-builder/LICENSE.txt +202 -0
- package/skills/mcp-builder/SKILL.md +236 -0
- package/skills/mcp-builder/reference/evaluation.md +602 -0
- package/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/skills/mcp-builder/scripts/connections.py +151 -0
- package/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/skills/ordenar-proyecto/SKILL.md +56 -0
- package/skills/project-handoff/SKILL.md +53 -0
- package/skills/project-handoff/agents/openai.yaml +7 -0
- package/skills/project-handoff/references/handoff-template.md +35 -0
- package/skills/quality-gate/LICENSE.txt +26 -0
- package/skills/quality-gate/SKILL.md +44 -0
- package/skills/quality-gate/agents/openai.yaml +7 -0
- package/skills/quality-gate/references/review-checklist.md +42 -0
- package/skills/revisar/SKILL.md +11 -0
- package/skills/revisar-skill/LICENSE-find-skills.txt +26 -0
- package/skills/revisar-skill/SKILL.md +94 -0
- package/skills/revision-cruzada/SKILL.md +59 -0
- package/skills/web-design-guidelines/AGENTS.md +156 -0
- package/skills/web-design-guidelines/LICENSE.txt +21 -0
- package/skills/web-design-guidelines/SKILL.md +29 -0
- package/src/agent-models.js +131 -0
- package/src/brand.js +117 -0
- package/src/claude-code-runner.js +642 -0
- package/src/cli-executable.js +88 -0
- package/src/cli.js +778 -0
- package/src/client-adapter-plan.js +271 -0
- package/src/client-auth-diagnostic-parser.js +211 -0
- package/src/client-auth-diagnostic.js +257 -0
- package/src/client-isolated-variant.js +106 -0
- package/src/client-isolated-verification.js +130 -0
- package/src/client-local-platform.js +14 -0
- package/src/client-managed-preferences-invocation.js +209 -0
- package/src/client-managed-preferences.js +78 -0
- package/src/client-native-access.js +134 -0
- package/src/client-native-diagnostics.js +253 -0
- package/src/client-native-evaluation.js +106 -0
- package/src/client-native-preflight-files.js +68 -0
- package/src/client-native-preflight.js +95 -0
- package/src/client-output-json.js +118 -0
- package/src/client-output-parser.js +278 -0
- package/src/client-runtime-admission.js +80 -0
- package/src/client-runtime-coordinator.js +70 -0
- package/src/client-runtime-core.js +92 -0
- package/src/client-runtime-fixture-permit.js +20 -0
- package/src/client-runtime-fixture-protocol.js +39 -0
- package/src/client-runtime-state.js +67 -0
- package/src/client-runtime-store-files.js +91 -0
- package/src/client-runtime-store.js +239 -0
- package/src/client-runtime-supervisor.js +146 -0
- package/src/client-selective-config.js +195 -0
- package/src/client-selective-files.js +126 -0
- package/src/client-supervised-codes.js +32 -0
- package/src/client-supervised-contract.js +52 -0
- package/src/client-supervised-coordinator.js +36 -0
- package/src/client-supervised-permit.js +20 -0
- package/src/client-supervised-protocol.js +37 -0
- package/src/client-supervised-store.js +167 -0
- package/src/client-supervised-supervisor.js +167 -0
- package/src/client-supervised.js +160 -0
- package/src/codex-cli-runner.js +358 -0
- package/src/codex-delivery.js +101 -0
- package/src/connect.js +703 -0
- package/src/doctor.js +795 -0
- package/src/gemini-cli.js +76 -0
- package/src/gemini-files.js +45 -0
- package/src/gemini-tools.js +249 -0
- package/src/init.js +473 -0
- package/src/install-lock.js +127 -0
- package/src/install-registry.js +61 -0
- package/src/legacy-repair.js +71 -0
- package/src/level-agents.js +111 -0
- package/src/link-states.js +172 -0
- package/src/memory-connection-artifacts.js +192 -0
- package/src/memory-connection-descriptor.js +158 -0
- package/src/memory-connection-diagnostic.js +177 -0
- package/src/memory-connection-files.js +191 -0
- package/src/memory-connection-manifest.js +118 -0
- package/src/memory-connection-package.js +176 -0
- package/src/memory-connection-plan.js +211 -0
- package/src/memory-connection-skill.js +211 -0
- package/src/memory-connection-toml.js +153 -0
- package/src/memory-locator.js +118 -0
- package/src/memory-mcp-policy.js +181 -0
- package/src/memory-mcp-server.js +166 -0
- package/src/memory-mcp-transport.js +59 -0
- package/src/missing-dependencies.js +21 -0
- package/src/model-command.js +147 -0
- package/src/model-preference.js +235 -0
- package/src/model-selection.js +368 -0
- package/src/native/managed-preferences.c +100 -0
- package/src/native/managed-preferences.h +17 -0
- package/src/package-lock-path.js +13 -0
- package/src/panel-cli.js +182 -0
- package/src/peer-handoff.js +27 -0
- package/src/peer-inbox-cli.js +211 -0
- package/src/peer-review-mcp.js +210 -0
- package/src/peer-review-store.js +532 -0
- package/src/platform.js +24 -0
- package/src/project-root.js +41 -0
- package/src/project-signals.js +339 -0
- package/src/recommend-report.js +77 -0
- package/src/review-instructions.js +211 -0
- package/src/review-policy.js +35 -0
- package/src/revision-adapters.js +157 -0
- package/src/revision-context.js +86 -0
- package/src/revision-isolation.js +222 -0
- package/src/revision-process.js +103 -0
- package/src/revision-provenance.js +89 -0
- package/src/revision-snapshot.js +120 -0
- package/src/revision.js +242 -0
- package/src/runtime-fixtures/runtime-supervisor/child.cjs +3 -0
- package/src/runtime-fixtures/runtime-supervisor/fixture.cjs +49 -0
- package/src/runtime-fixtures/supervised/child.cjs +3 -0
- package/src/runtime-fixtures/supervised/fixture.cjs +47 -0
- package/src/sensitive-data.js +21 -0
- package/src/setup-apply.js +231 -0
- package/src/setup-plan.js +231 -0
- package/src/setup-state.js +277 -0
- package/src/setup-tui.js +555 -0
- package/src/skill-catalog-add.js +91 -0
- package/src/skill-catalog-audit.js +68 -0
- package/src/skill-catalog.js +170 -0
- package/src/skill-files.js +39 -0
- package/src/skill-recommendations.js +1673 -0
- package/src/skill-scan-report.js +14 -0
- package/src/skill-scan.js +178 -0
- package/src/stable-command.js +53 -0
- package/src/stable-install.js +222 -0
- package/src/status.js +200 -0
- package/src/superpowers.js +133 -0
- package/src/sync-apply.js +227 -0
- package/src/sync-files.js +109 -0
- package/src/sync-inspect.js +394 -0
- package/src/sync-ledger.js +94 -0
- package/src/sync-markdown.js +151 -0
- package/src/sync-proposal.js +84 -0
- package/src/sync-record.js +459 -0
- package/src/sync.js +360 -0
- package/src/task-approvals.js +367 -0
- package/src/task-cli.js +79 -0
- package/src/task-external-verifier.js +584 -0
- package/src/task-prepare-files.js +115 -0
- package/src/task-prepare.js +180 -0
- package/src/task-verify-cli.js +67 -0
- package/src/task-verify-files.js +188 -0
- package/src/task-verify.js +118 -0
- package/src/task-workflow-mcp.js +544 -0
- package/src/task-workflow-store.js +254 -0
- package/src/terminal-text.js +68 -0
- package/src/toolkit-cli.js +543 -0
- package/src/toolkit-commands-guide.js +107 -0
- package/src/toolkit-setup.js +614 -0
- package/src/usage-metrics.js +43 -0
- package/templates/agent-team/01-encargo.md +158 -0
- package/templates/agent-team/02-propuesta.md +132 -0
- package/templates/agent-team/03-revision.md +150 -0
- package/templates/agent-team/README.md +213 -0
- package/templates/model-inventory/01-inventario.md +154 -0
- package/templates/model-inventory/README.md +115 -0
- package/templates/project-memory/README.md +67 -0
- package/templates/project-memory/project-memory.example.json +53 -0
- package/templates/project-memory/skill/project-id/SKILL.md +37 -0
- package/templates/project-memory/skill/project-id/references/project-profile.md +44 -0
- package/templates/project-memory/vault/00-INICIO/Estado actual.md +44 -0
- package/templates/project-memory/vault/00-INICIO/Fuentes de verdad.md +30 -0
- package/templates/project-memory/vault/00-INICIO/Inicio del proyecto.md +44 -0
- package/templates/project-memory/vault/00-INICIO/Mantenimiento de la memoria.md +26 -0
- package/templates/project-memory/vault/00-INICIO/Mapa de la memoria.md +33 -0
- package/templates/project-memory/vault/00-INICIO/Registro de sincronizaci/303/263n.md" +28 -0
- package/templates/project-memory/vault/01-PRODUCTO/Producto.md +16 -0
- package/templates/project-memory/vault/02-ARQUITECTURA/Arquitectura.md +16 -0
- package/templates/project-memory/vault/03-IMPLEMENTACION/Implementaci/303/263n.md +15 -0
- package/templates/project-memory/vault/04-DECISIONES/Decisiones.md +19 -0
- package/templates/project-memory/vault/05-ENTREGAS/Entregas.md +12 -0
- package/templates/project-memory/vault/06-OPERACION/Operaci/303/263n.md +15 -0
- package/templates/project-memory/vault/07-AGENTES/Protocolo de agentes.md +33 -0
- package/templates/project-memory/vault/08-RECURSOS/Recursos.md +12 -0
- package/templates/project-memory/vault/09-ARCHIVO/README.md +5 -0
|
@@ -0,0 +1,1288 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-toolkit.local/schemas/agent-client-runtime.schema.json",
|
|
4
|
+
"title": "Client Runtime C1 Offline",
|
|
5
|
+
"description": "Declaraciones y propuestas puras; no ejecuta, persiste o autentica clientes.",
|
|
6
|
+
"$ref": "#/$defs/admissionInput",
|
|
7
|
+
"$defs": {
|
|
8
|
+
"temporal": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": [
|
|
12
|
+
"checkedAt",
|
|
13
|
+
"expiresAt",
|
|
14
|
+
"evidenceRef"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"checkedAt": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "date-time"
|
|
20
|
+
},
|
|
21
|
+
"expiresAt": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "date-time"
|
|
24
|
+
},
|
|
25
|
+
"evidenceRef": {
|
|
26
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"assessment": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"required": [
|
|
34
|
+
"checkedAt",
|
|
35
|
+
"expiresAt",
|
|
36
|
+
"evidenceRef",
|
|
37
|
+
"status",
|
|
38
|
+
"source"
|
|
39
|
+
],
|
|
40
|
+
"properties": {
|
|
41
|
+
"checkedAt": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "date-time"
|
|
44
|
+
},
|
|
45
|
+
"expiresAt": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "date-time"
|
|
48
|
+
},
|
|
49
|
+
"evidenceRef": {
|
|
50
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
51
|
+
},
|
|
52
|
+
"status": {
|
|
53
|
+
"enum": [
|
|
54
|
+
"documented",
|
|
55
|
+
"locally-tested",
|
|
56
|
+
"pending",
|
|
57
|
+
"rejected"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"source": {
|
|
61
|
+
"enum": [
|
|
62
|
+
"operator-attestation",
|
|
63
|
+
"installation-test",
|
|
64
|
+
"provider-documentation"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"installation": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": [
|
|
73
|
+
"installationId",
|
|
74
|
+
"client",
|
|
75
|
+
"platform",
|
|
76
|
+
"artifactSha256",
|
|
77
|
+
"controlRevision"
|
|
78
|
+
],
|
|
79
|
+
"properties": {
|
|
80
|
+
"installationId": {
|
|
81
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
82
|
+
},
|
|
83
|
+
"client": {
|
|
84
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/client"
|
|
85
|
+
},
|
|
86
|
+
"platform": {
|
|
87
|
+
"enum": [
|
|
88
|
+
"darwin",
|
|
89
|
+
"linux",
|
|
90
|
+
"win32"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"artifactSha256": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
96
|
+
},
|
|
97
|
+
"controlRevision": {
|
|
98
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"binding": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"required": [
|
|
106
|
+
"installationId",
|
|
107
|
+
"client",
|
|
108
|
+
"platform",
|
|
109
|
+
"artifactSha256",
|
|
110
|
+
"controlRevision",
|
|
111
|
+
"identity",
|
|
112
|
+
"planSha256"
|
|
113
|
+
],
|
|
114
|
+
"properties": {
|
|
115
|
+
"installationId": {
|
|
116
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
117
|
+
},
|
|
118
|
+
"client": {
|
|
119
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/client"
|
|
120
|
+
},
|
|
121
|
+
"platform": {
|
|
122
|
+
"enum": [
|
|
123
|
+
"darwin",
|
|
124
|
+
"linux",
|
|
125
|
+
"win32"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"artifactSha256": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
131
|
+
},
|
|
132
|
+
"controlRevision": {
|
|
133
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
134
|
+
},
|
|
135
|
+
"identity": {
|
|
136
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/report/properties/identity",
|
|
137
|
+
"type": "object"
|
|
138
|
+
},
|
|
139
|
+
"planSha256": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"evidence": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"required": [
|
|
149
|
+
"binding",
|
|
150
|
+
"installation",
|
|
151
|
+
"authorization",
|
|
152
|
+
"access",
|
|
153
|
+
"context",
|
|
154
|
+
"controls",
|
|
155
|
+
"effects",
|
|
156
|
+
"accounting"
|
|
157
|
+
],
|
|
158
|
+
"properties": {
|
|
159
|
+
"binding": {
|
|
160
|
+
"$ref": "#/$defs/binding"
|
|
161
|
+
},
|
|
162
|
+
"installation": {
|
|
163
|
+
"$ref": "#/$defs/assessment"
|
|
164
|
+
},
|
|
165
|
+
"authorization": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"required": [
|
|
169
|
+
"checkedAt",
|
|
170
|
+
"expiresAt",
|
|
171
|
+
"evidenceRef",
|
|
172
|
+
"status",
|
|
173
|
+
"referenceId",
|
|
174
|
+
"revoked",
|
|
175
|
+
"effectsApproved",
|
|
176
|
+
"limits"
|
|
177
|
+
],
|
|
178
|
+
"properties": {
|
|
179
|
+
"checkedAt": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"format": "date-time"
|
|
182
|
+
},
|
|
183
|
+
"expiresAt": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"format": "date-time"
|
|
186
|
+
},
|
|
187
|
+
"evidenceRef": {
|
|
188
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
189
|
+
},
|
|
190
|
+
"status": {
|
|
191
|
+
"enum": [
|
|
192
|
+
"approved",
|
|
193
|
+
"pending",
|
|
194
|
+
"denied"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"referenceId": {
|
|
198
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
199
|
+
},
|
|
200
|
+
"revoked": {
|
|
201
|
+
"type": "boolean"
|
|
202
|
+
},
|
|
203
|
+
"effectsApproved": {
|
|
204
|
+
"type": "array",
|
|
205
|
+
"maxItems": 5,
|
|
206
|
+
"items": {
|
|
207
|
+
"enum": [
|
|
208
|
+
"native-auth",
|
|
209
|
+
"provider-inference",
|
|
210
|
+
"client-state",
|
|
211
|
+
"telemetry",
|
|
212
|
+
"descendants"
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"uniqueItems": true
|
|
216
|
+
},
|
|
217
|
+
"limits": {
|
|
218
|
+
"$ref": "#/$defs/limits"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"access": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"required": [
|
|
226
|
+
"assessment",
|
|
227
|
+
"access",
|
|
228
|
+
"externalBilling"
|
|
229
|
+
],
|
|
230
|
+
"properties": {
|
|
231
|
+
"assessment": {
|
|
232
|
+
"$ref": "#/$defs/assessment"
|
|
233
|
+
},
|
|
234
|
+
"access": {
|
|
235
|
+
"enum": [
|
|
236
|
+
"subscription-session",
|
|
237
|
+
"unknown",
|
|
238
|
+
"api-key"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"externalBilling": {
|
|
242
|
+
"enum": [
|
|
243
|
+
"disabled",
|
|
244
|
+
"enabled",
|
|
245
|
+
"unknown"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"context": {
|
|
251
|
+
"type": "object",
|
|
252
|
+
"additionalProperties": false,
|
|
253
|
+
"required": [
|
|
254
|
+
"assessment",
|
|
255
|
+
"promptRef",
|
|
256
|
+
"promptSha256",
|
|
257
|
+
"promptBytes"
|
|
258
|
+
],
|
|
259
|
+
"properties": {
|
|
260
|
+
"assessment": {
|
|
261
|
+
"$ref": "#/$defs/assessment"
|
|
262
|
+
},
|
|
263
|
+
"promptRef": {
|
|
264
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
265
|
+
},
|
|
266
|
+
"promptSha256": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
269
|
+
},
|
|
270
|
+
"promptBytes": {
|
|
271
|
+
"type": "integer",
|
|
272
|
+
"minimum": 1,
|
|
273
|
+
"maximum": 1048576
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"controls": {
|
|
278
|
+
"type": "array",
|
|
279
|
+
"maxItems": 11,
|
|
280
|
+
"items": {
|
|
281
|
+
"type": "object",
|
|
282
|
+
"additionalProperties": false,
|
|
283
|
+
"required": [
|
|
284
|
+
"controlId",
|
|
285
|
+
"assessment"
|
|
286
|
+
],
|
|
287
|
+
"properties": {
|
|
288
|
+
"controlId": {
|
|
289
|
+
"enum": [
|
|
290
|
+
"no-tools",
|
|
291
|
+
"no-subagents",
|
|
292
|
+
"no-mcp",
|
|
293
|
+
"no-hooks",
|
|
294
|
+
"no-personalizations",
|
|
295
|
+
"no-updates",
|
|
296
|
+
"stdin-text",
|
|
297
|
+
"no-fallback",
|
|
298
|
+
"no-resume",
|
|
299
|
+
"no-permission-bypass",
|
|
300
|
+
"internal-call-limit"
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"assessment": {
|
|
304
|
+
"$ref": "#/$defs/assessment"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"effects": {
|
|
310
|
+
"type": "array",
|
|
311
|
+
"maxItems": 5,
|
|
312
|
+
"items": {
|
|
313
|
+
"type": "object",
|
|
314
|
+
"additionalProperties": false,
|
|
315
|
+
"required": [
|
|
316
|
+
"effectId",
|
|
317
|
+
"disposition",
|
|
318
|
+
"assessment"
|
|
319
|
+
],
|
|
320
|
+
"properties": {
|
|
321
|
+
"effectId": {
|
|
322
|
+
"enum": [
|
|
323
|
+
"native-auth",
|
|
324
|
+
"provider-inference",
|
|
325
|
+
"client-state",
|
|
326
|
+
"telemetry",
|
|
327
|
+
"descendants"
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
"disposition": {
|
|
331
|
+
"enum": [
|
|
332
|
+
"allowed",
|
|
333
|
+
"rejected",
|
|
334
|
+
"unknown"
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
"assessment": {
|
|
338
|
+
"$ref": "#/$defs/assessment"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"accounting": {
|
|
344
|
+
"type": "object",
|
|
345
|
+
"additionalProperties": false,
|
|
346
|
+
"required": [
|
|
347
|
+
"assessment",
|
|
348
|
+
"maxCallsPerStart",
|
|
349
|
+
"limitEnforced"
|
|
350
|
+
],
|
|
351
|
+
"properties": {
|
|
352
|
+
"assessment": {
|
|
353
|
+
"$ref": "#/$defs/assessment"
|
|
354
|
+
},
|
|
355
|
+
"maxCallsPerStart": {
|
|
356
|
+
"anyOf": [
|
|
357
|
+
{
|
|
358
|
+
"type": "integer",
|
|
359
|
+
"minimum": 1,
|
|
360
|
+
"maximum": 1000
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"type": "null"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
"limitEnforced": {
|
|
368
|
+
"type": "boolean"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"limits": {
|
|
375
|
+
"type": "object",
|
|
376
|
+
"additionalProperties": false,
|
|
377
|
+
"required": [
|
|
378
|
+
"maxMainStarts",
|
|
379
|
+
"maxModelCalls",
|
|
380
|
+
"maxDurationSeconds"
|
|
381
|
+
],
|
|
382
|
+
"properties": {
|
|
383
|
+
"maxMainStarts": {
|
|
384
|
+
"type": "integer",
|
|
385
|
+
"minimum": 0,
|
|
386
|
+
"maximum": 1000000
|
|
387
|
+
},
|
|
388
|
+
"maxModelCalls": {
|
|
389
|
+
"type": "integer",
|
|
390
|
+
"minimum": 0,
|
|
391
|
+
"maximum": 1000000
|
|
392
|
+
},
|
|
393
|
+
"maxDurationSeconds": {
|
|
394
|
+
"type": "integer",
|
|
395
|
+
"minimum": 0,
|
|
396
|
+
"maximum": 1000000
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"attempt": {
|
|
401
|
+
"type": "object",
|
|
402
|
+
"additionalProperties": false,
|
|
403
|
+
"required": [
|
|
404
|
+
"attemptId",
|
|
405
|
+
"identity",
|
|
406
|
+
"planSha256",
|
|
407
|
+
"client",
|
|
408
|
+
"profileId",
|
|
409
|
+
"model",
|
|
410
|
+
"effort",
|
|
411
|
+
"state",
|
|
412
|
+
"startObservation",
|
|
413
|
+
"reservedCalls",
|
|
414
|
+
"reservedSeconds",
|
|
415
|
+
"reservedAt",
|
|
416
|
+
"updatedAt",
|
|
417
|
+
"actualCalls",
|
|
418
|
+
"actualSeconds",
|
|
419
|
+
"outcome",
|
|
420
|
+
"evidenceRef"
|
|
421
|
+
],
|
|
422
|
+
"properties": {
|
|
423
|
+
"attemptId": {
|
|
424
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
425
|
+
},
|
|
426
|
+
"identity": {
|
|
427
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/report/properties/identity",
|
|
428
|
+
"type": "object"
|
|
429
|
+
},
|
|
430
|
+
"planSha256": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
433
|
+
},
|
|
434
|
+
"client": {
|
|
435
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/client"
|
|
436
|
+
},
|
|
437
|
+
"profileId": {
|
|
438
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
439
|
+
},
|
|
440
|
+
"model": {
|
|
441
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
442
|
+
},
|
|
443
|
+
"effort": {
|
|
444
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
445
|
+
},
|
|
446
|
+
"state": {
|
|
447
|
+
"enum": [
|
|
448
|
+
"reserved",
|
|
449
|
+
"started",
|
|
450
|
+
"settled",
|
|
451
|
+
"reconciliation-required"
|
|
452
|
+
]
|
|
453
|
+
},
|
|
454
|
+
"startObservation": {
|
|
455
|
+
"enum": [
|
|
456
|
+
"not-reported",
|
|
457
|
+
"started",
|
|
458
|
+
"not-started",
|
|
459
|
+
"unknown"
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"reservedCalls": {
|
|
463
|
+
"type": "integer",
|
|
464
|
+
"minimum": 1,
|
|
465
|
+
"maximum": 1000
|
|
466
|
+
},
|
|
467
|
+
"reservedSeconds": {
|
|
468
|
+
"type": "integer",
|
|
469
|
+
"minimum": 1,
|
|
470
|
+
"maximum": 86400
|
|
471
|
+
},
|
|
472
|
+
"reservedAt": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"format": "date-time"
|
|
475
|
+
},
|
|
476
|
+
"updatedAt": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"format": "date-time"
|
|
479
|
+
},
|
|
480
|
+
"actualCalls": {
|
|
481
|
+
"anyOf": [
|
|
482
|
+
{
|
|
483
|
+
"type": "integer",
|
|
484
|
+
"minimum": 0,
|
|
485
|
+
"maximum": 1000000
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"type": "null"
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
"actualSeconds": {
|
|
493
|
+
"anyOf": [
|
|
494
|
+
{
|
|
495
|
+
"type": "integer",
|
|
496
|
+
"minimum": 0,
|
|
497
|
+
"maximum": 1000000
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"type": "null"
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
"outcome": {
|
|
505
|
+
"anyOf": [
|
|
506
|
+
{
|
|
507
|
+
"enum": [
|
|
508
|
+
"not-started",
|
|
509
|
+
"completed",
|
|
510
|
+
"failed",
|
|
511
|
+
"canceled",
|
|
512
|
+
"timed-out",
|
|
513
|
+
"indeterminate"
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"type": "null"
|
|
518
|
+
}
|
|
519
|
+
]
|
|
520
|
+
},
|
|
521
|
+
"evidenceRef": {
|
|
522
|
+
"anyOf": [
|
|
523
|
+
{
|
|
524
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"type": "null"
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"runtimeHistory": {
|
|
534
|
+
"type": "object",
|
|
535
|
+
"additionalProperties": false,
|
|
536
|
+
"required": ["correctionRound", "executionsUsed", "durationUsedSeconds"],
|
|
537
|
+
"properties": {
|
|
538
|
+
"correctionRound": {
|
|
539
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-model-preference.schema.json#/$defs/history/properties/correctionRound"
|
|
540
|
+
},
|
|
541
|
+
"executionsUsed": { "type": "integer", "minimum": 0, "maximum": 1000000 },
|
|
542
|
+
"durationUsedSeconds": { "type": "integer", "minimum": 0, "maximum": 1000000 },
|
|
543
|
+
"previousProfileId": {
|
|
544
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-model-preference.schema.json#/$defs/history/properties/previousProfileId"
|
|
545
|
+
},
|
|
546
|
+
"previousEffort": {
|
|
547
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-model-preference.schema.json#/$defs/history/properties/previousEffort"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
"description": "Contabilidad declarada, ampliada para registrar excesos sin recortarlos. No amplía los límites de selección o autorización."
|
|
551
|
+
},
|
|
552
|
+
"ledger": {
|
|
553
|
+
"type": "object",
|
|
554
|
+
"additionalProperties": false,
|
|
555
|
+
"required": [
|
|
556
|
+
"schemaVersion",
|
|
557
|
+
"projectId",
|
|
558
|
+
"taskId",
|
|
559
|
+
"revision",
|
|
560
|
+
"status",
|
|
561
|
+
"importEvidenceRef",
|
|
562
|
+
"importedHistory",
|
|
563
|
+
"importedMainStartsUsed",
|
|
564
|
+
"history",
|
|
565
|
+
"mainStartsUsed",
|
|
566
|
+
"limits",
|
|
567
|
+
"attempts"
|
|
568
|
+
],
|
|
569
|
+
"properties": {
|
|
570
|
+
"schemaVersion": {
|
|
571
|
+
"const": "1.0.0"
|
|
572
|
+
},
|
|
573
|
+
"projectId": {
|
|
574
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
575
|
+
},
|
|
576
|
+
"taskId": {
|
|
577
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
578
|
+
},
|
|
579
|
+
"revision": {
|
|
580
|
+
"type": "integer",
|
|
581
|
+
"minimum": 0,
|
|
582
|
+
"maximum": 1000000
|
|
583
|
+
},
|
|
584
|
+
"status": {
|
|
585
|
+
"enum": [
|
|
586
|
+
"reconciled",
|
|
587
|
+
"reconciliation-required"
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
"importEvidenceRef": {
|
|
591
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
592
|
+
},
|
|
593
|
+
"importedHistory": {
|
|
594
|
+
"$ref": "#/$defs/runtimeHistory"
|
|
595
|
+
},
|
|
596
|
+
"importedMainStartsUsed": {
|
|
597
|
+
"type": "integer",
|
|
598
|
+
"minimum": 0,
|
|
599
|
+
"maximum": 1000000
|
|
600
|
+
},
|
|
601
|
+
"history": {
|
|
602
|
+
"$ref": "#/$defs/runtimeHistory"
|
|
603
|
+
},
|
|
604
|
+
"mainStartsUsed": {
|
|
605
|
+
"type": "integer",
|
|
606
|
+
"minimum": 0,
|
|
607
|
+
"maximum": 1000000
|
|
608
|
+
},
|
|
609
|
+
"limits": {
|
|
610
|
+
"$ref": "#/$defs/limits"
|
|
611
|
+
},
|
|
612
|
+
"attempts": {
|
|
613
|
+
"type": "array",
|
|
614
|
+
"maxItems": 128,
|
|
615
|
+
"items": {
|
|
616
|
+
"$ref": "#/$defs/attempt"
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
"admissionInput": {
|
|
622
|
+
"type": "object",
|
|
623
|
+
"additionalProperties": false,
|
|
624
|
+
"required": [
|
|
625
|
+
"schemaVersion",
|
|
626
|
+
"now",
|
|
627
|
+
"planningInput",
|
|
628
|
+
"plan"
|
|
629
|
+
],
|
|
630
|
+
"properties": {
|
|
631
|
+
"schemaVersion": {
|
|
632
|
+
"const": "1.0.0"
|
|
633
|
+
},
|
|
634
|
+
"now": {
|
|
635
|
+
"type": "string",
|
|
636
|
+
"format": "date-time"
|
|
637
|
+
},
|
|
638
|
+
"planningInput": {
|
|
639
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/input"
|
|
640
|
+
},
|
|
641
|
+
"plan": {
|
|
642
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/report"
|
|
643
|
+
},
|
|
644
|
+
"expectedInstallation": {
|
|
645
|
+
"$ref": "#/$defs/installation"
|
|
646
|
+
},
|
|
647
|
+
"evidence": {
|
|
648
|
+
"$ref": "#/$defs/evidence"
|
|
649
|
+
},
|
|
650
|
+
"ledger": {
|
|
651
|
+
"$ref": "#/$defs/ledger"
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
"reservation": {
|
|
656
|
+
"type": "object",
|
|
657
|
+
"additionalProperties": false,
|
|
658
|
+
"required": [
|
|
659
|
+
"identity",
|
|
660
|
+
"planSha256",
|
|
661
|
+
"client",
|
|
662
|
+
"profileId",
|
|
663
|
+
"model",
|
|
664
|
+
"effort",
|
|
665
|
+
"calls",
|
|
666
|
+
"seconds"
|
|
667
|
+
],
|
|
668
|
+
"properties": {
|
|
669
|
+
"identity": {
|
|
670
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/report/properties/identity",
|
|
671
|
+
"type": "object"
|
|
672
|
+
},
|
|
673
|
+
"planSha256": {
|
|
674
|
+
"type": "string",
|
|
675
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
676
|
+
},
|
|
677
|
+
"client": {
|
|
678
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/client"
|
|
679
|
+
},
|
|
680
|
+
"profileId": {
|
|
681
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
682
|
+
},
|
|
683
|
+
"model": {
|
|
684
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
685
|
+
},
|
|
686
|
+
"effort": {
|
|
687
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
688
|
+
},
|
|
689
|
+
"calls": {
|
|
690
|
+
"type": "integer",
|
|
691
|
+
"minimum": 1,
|
|
692
|
+
"maximum": 1000
|
|
693
|
+
},
|
|
694
|
+
"seconds": {
|
|
695
|
+
"type": "integer",
|
|
696
|
+
"minimum": 1,
|
|
697
|
+
"maximum": 86400
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"admissionReport": {
|
|
702
|
+
"type": "object",
|
|
703
|
+
"additionalProperties": false,
|
|
704
|
+
"required": [
|
|
705
|
+
"schemaVersion",
|
|
706
|
+
"engineVersion",
|
|
707
|
+
"state",
|
|
708
|
+
"executed",
|
|
709
|
+
"runtimeReady",
|
|
710
|
+
"verifiedAdmission",
|
|
711
|
+
"identity",
|
|
712
|
+
"reservation",
|
|
713
|
+
"missing",
|
|
714
|
+
"reasons",
|
|
715
|
+
"externalGates",
|
|
716
|
+
"audit"
|
|
717
|
+
],
|
|
718
|
+
"properties": {
|
|
719
|
+
"schemaVersion": {
|
|
720
|
+
"const": "1.0.0"
|
|
721
|
+
},
|
|
722
|
+
"engineVersion": {
|
|
723
|
+
"const": "1.0.0"
|
|
724
|
+
},
|
|
725
|
+
"state": {
|
|
726
|
+
"enum": [
|
|
727
|
+
"invalid",
|
|
728
|
+
"needs-info",
|
|
729
|
+
"blocked",
|
|
730
|
+
"eligible-for-reservation"
|
|
731
|
+
]
|
|
732
|
+
},
|
|
733
|
+
"executed": {
|
|
734
|
+
"const": false
|
|
735
|
+
},
|
|
736
|
+
"runtimeReady": {
|
|
737
|
+
"const": false
|
|
738
|
+
},
|
|
739
|
+
"verifiedAdmission": {
|
|
740
|
+
"const": false
|
|
741
|
+
},
|
|
742
|
+
"identity": {
|
|
743
|
+
"anyOf": [
|
|
744
|
+
{
|
|
745
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/report/properties/identity",
|
|
746
|
+
"type": "object"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"type": "null"
|
|
750
|
+
}
|
|
751
|
+
]
|
|
752
|
+
},
|
|
753
|
+
"reservation": {
|
|
754
|
+
"anyOf": [
|
|
755
|
+
{
|
|
756
|
+
"$ref": "#/$defs/reservation"
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"type": "null"
|
|
760
|
+
}
|
|
761
|
+
]
|
|
762
|
+
},
|
|
763
|
+
"missing": {
|
|
764
|
+
"type": "array",
|
|
765
|
+
"maxItems": 32,
|
|
766
|
+
"items": {
|
|
767
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"reasons": {
|
|
771
|
+
"type": "array",
|
|
772
|
+
"maxItems": 128,
|
|
773
|
+
"items": {
|
|
774
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
"externalGates": {
|
|
778
|
+
"type": "array",
|
|
779
|
+
"maxItems": 32,
|
|
780
|
+
"items": {
|
|
781
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
"audit": {
|
|
785
|
+
"type": "object",
|
|
786
|
+
"additionalProperties": false,
|
|
787
|
+
"required": [
|
|
788
|
+
"inputSha256",
|
|
789
|
+
"planSha256",
|
|
790
|
+
"ledgerSha256"
|
|
791
|
+
],
|
|
792
|
+
"properties": {
|
|
793
|
+
"inputSha256": {
|
|
794
|
+
"anyOf": [
|
|
795
|
+
{
|
|
796
|
+
"type": "string",
|
|
797
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"type": "null"
|
|
801
|
+
}
|
|
802
|
+
]
|
|
803
|
+
},
|
|
804
|
+
"planSha256": {
|
|
805
|
+
"anyOf": [
|
|
806
|
+
{
|
|
807
|
+
"type": "string",
|
|
808
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"type": "null"
|
|
812
|
+
}
|
|
813
|
+
]
|
|
814
|
+
},
|
|
815
|
+
"ledgerSha256": {
|
|
816
|
+
"anyOf": [
|
|
817
|
+
{
|
|
818
|
+
"type": "string",
|
|
819
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"type": "null"
|
|
823
|
+
}
|
|
824
|
+
]
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
"allOf": [
|
|
830
|
+
{
|
|
831
|
+
"if": {
|
|
832
|
+
"properties": {
|
|
833
|
+
"state": {
|
|
834
|
+
"const": "eligible-for-reservation"
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"required": [
|
|
838
|
+
"state"
|
|
839
|
+
]
|
|
840
|
+
},
|
|
841
|
+
"then": {
|
|
842
|
+
"properties": {
|
|
843
|
+
"reservation": {
|
|
844
|
+
"type": "object"
|
|
845
|
+
},
|
|
846
|
+
"identity": {
|
|
847
|
+
"type": "object"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
"else": {
|
|
852
|
+
"properties": {
|
|
853
|
+
"reservation": {
|
|
854
|
+
"type": "null"
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
]
|
|
860
|
+
},
|
|
861
|
+
"reconciliation": {
|
|
862
|
+
"type": "object",
|
|
863
|
+
"additionalProperties": false,
|
|
864
|
+
"required": [
|
|
865
|
+
"checkedAt",
|
|
866
|
+
"expiresAt",
|
|
867
|
+
"evidenceRef",
|
|
868
|
+
"status",
|
|
869
|
+
"referenceId",
|
|
870
|
+
"source",
|
|
871
|
+
"projectId",
|
|
872
|
+
"taskId",
|
|
873
|
+
"attemptId",
|
|
874
|
+
"ledgerSha256",
|
|
875
|
+
"revoked"
|
|
876
|
+
],
|
|
877
|
+
"properties": {
|
|
878
|
+
"checkedAt": {
|
|
879
|
+
"type": "string",
|
|
880
|
+
"format": "date-time"
|
|
881
|
+
},
|
|
882
|
+
"expiresAt": {
|
|
883
|
+
"type": "string",
|
|
884
|
+
"format": "date-time"
|
|
885
|
+
},
|
|
886
|
+
"evidenceRef": {
|
|
887
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
888
|
+
},
|
|
889
|
+
"status": {
|
|
890
|
+
"enum": [
|
|
891
|
+
"approved",
|
|
892
|
+
"pending",
|
|
893
|
+
"denied"
|
|
894
|
+
]
|
|
895
|
+
},
|
|
896
|
+
"referenceId": {
|
|
897
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
898
|
+
},
|
|
899
|
+
"source": {
|
|
900
|
+
"const": "operator-attestation"
|
|
901
|
+
},
|
|
902
|
+
"projectId": {
|
|
903
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
904
|
+
},
|
|
905
|
+
"taskId": {
|
|
906
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
907
|
+
},
|
|
908
|
+
"attemptId": {
|
|
909
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
910
|
+
},
|
|
911
|
+
"ledgerSha256": {
|
|
912
|
+
"type": "string",
|
|
913
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
914
|
+
},
|
|
915
|
+
"revoked": {
|
|
916
|
+
"type": "boolean"
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
"cas": {
|
|
921
|
+
"type": "object",
|
|
922
|
+
"additionalProperties": false,
|
|
923
|
+
"required": [
|
|
924
|
+
"expectedRevision",
|
|
925
|
+
"nextRevision",
|
|
926
|
+
"expectedSha256",
|
|
927
|
+
"nextSha256"
|
|
928
|
+
],
|
|
929
|
+
"properties": {
|
|
930
|
+
"expectedRevision": {
|
|
931
|
+
"type": "integer",
|
|
932
|
+
"minimum": 0,
|
|
933
|
+
"maximum": 1000000
|
|
934
|
+
},
|
|
935
|
+
"nextRevision": {
|
|
936
|
+
"type": "integer",
|
|
937
|
+
"minimum": 0,
|
|
938
|
+
"maximum": 1000000
|
|
939
|
+
},
|
|
940
|
+
"expectedSha256": {
|
|
941
|
+
"type": "string",
|
|
942
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
943
|
+
},
|
|
944
|
+
"nextSha256": {
|
|
945
|
+
"type": "string",
|
|
946
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
"stateReport": {
|
|
951
|
+
"type": "object",
|
|
952
|
+
"additionalProperties": false,
|
|
953
|
+
"required": [
|
|
954
|
+
"schemaVersion",
|
|
955
|
+
"engineVersion",
|
|
956
|
+
"state",
|
|
957
|
+
"executed",
|
|
958
|
+
"runtimeReady",
|
|
959
|
+
"verifiedAdmission",
|
|
960
|
+
"persisted",
|
|
961
|
+
"operation",
|
|
962
|
+
"nextLedger",
|
|
963
|
+
"compareAndSwap",
|
|
964
|
+
"reasons"
|
|
965
|
+
],
|
|
966
|
+
"properties": {
|
|
967
|
+
"schemaVersion": {
|
|
968
|
+
"const": "1.0.0"
|
|
969
|
+
},
|
|
970
|
+
"engineVersion": {
|
|
971
|
+
"const": "1.0.0"
|
|
972
|
+
},
|
|
973
|
+
"state": {
|
|
974
|
+
"enum": [
|
|
975
|
+
"invalid",
|
|
976
|
+
"blocked",
|
|
977
|
+
"proposed"
|
|
978
|
+
]
|
|
979
|
+
},
|
|
980
|
+
"executed": {
|
|
981
|
+
"const": false
|
|
982
|
+
},
|
|
983
|
+
"runtimeReady": {
|
|
984
|
+
"const": false
|
|
985
|
+
},
|
|
986
|
+
"verifiedAdmission": {
|
|
987
|
+
"const": false
|
|
988
|
+
},
|
|
989
|
+
"persisted": {
|
|
990
|
+
"const": false
|
|
991
|
+
},
|
|
992
|
+
"operation": {
|
|
993
|
+
"anyOf": [
|
|
994
|
+
{
|
|
995
|
+
"enum": [
|
|
996
|
+
"reserve",
|
|
997
|
+
"mark-started",
|
|
998
|
+
"interrupt",
|
|
999
|
+
"settle"
|
|
1000
|
+
]
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"type": "null"
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
1006
|
+
},
|
|
1007
|
+
"nextLedger": {
|
|
1008
|
+
"anyOf": [
|
|
1009
|
+
{
|
|
1010
|
+
"$ref": "#/$defs/ledger"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"type": "null"
|
|
1014
|
+
}
|
|
1015
|
+
]
|
|
1016
|
+
},
|
|
1017
|
+
"compareAndSwap": {
|
|
1018
|
+
"anyOf": [
|
|
1019
|
+
{
|
|
1020
|
+
"$ref": "#/$defs/cas"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"type": "null"
|
|
1024
|
+
}
|
|
1025
|
+
]
|
|
1026
|
+
},
|
|
1027
|
+
"reasons": {
|
|
1028
|
+
"type": "array",
|
|
1029
|
+
"maxItems": 128,
|
|
1030
|
+
"items": {
|
|
1031
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
"allOf": [
|
|
1036
|
+
{
|
|
1037
|
+
"if": {
|
|
1038
|
+
"properties": {
|
|
1039
|
+
"state": {
|
|
1040
|
+
"const": "proposed"
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
"required": [
|
|
1044
|
+
"state"
|
|
1045
|
+
]
|
|
1046
|
+
},
|
|
1047
|
+
"then": {
|
|
1048
|
+
"properties": {
|
|
1049
|
+
"nextLedger": {
|
|
1050
|
+
"type": "object"
|
|
1051
|
+
},
|
|
1052
|
+
"compareAndSwap": {
|
|
1053
|
+
"type": "object"
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
"else": {
|
|
1058
|
+
"properties": {
|
|
1059
|
+
"nextLedger": {
|
|
1060
|
+
"type": "null"
|
|
1061
|
+
},
|
|
1062
|
+
"compareAndSwap": {
|
|
1063
|
+
"type": "null"
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
1070
|
+
"reserve": {
|
|
1071
|
+
"type": "object",
|
|
1072
|
+
"additionalProperties": false,
|
|
1073
|
+
"required": [
|
|
1074
|
+
"schemaVersion",
|
|
1075
|
+
"operation",
|
|
1076
|
+
"now",
|
|
1077
|
+
"ledger",
|
|
1078
|
+
"expectedRevision",
|
|
1079
|
+
"expectedLedgerSha256",
|
|
1080
|
+
"attemptId",
|
|
1081
|
+
"admissionInput"
|
|
1082
|
+
],
|
|
1083
|
+
"properties": {
|
|
1084
|
+
"schemaVersion": {
|
|
1085
|
+
"const": "1.0.0"
|
|
1086
|
+
},
|
|
1087
|
+
"operation": {
|
|
1088
|
+
"const": "reserve"
|
|
1089
|
+
},
|
|
1090
|
+
"now": {
|
|
1091
|
+
"type": "string",
|
|
1092
|
+
"format": "date-time"
|
|
1093
|
+
},
|
|
1094
|
+
"ledger": {
|
|
1095
|
+
"$ref": "#/$defs/ledger"
|
|
1096
|
+
},
|
|
1097
|
+
"expectedRevision": {
|
|
1098
|
+
"type": "integer",
|
|
1099
|
+
"minimum": 0,
|
|
1100
|
+
"maximum": 1000000
|
|
1101
|
+
},
|
|
1102
|
+
"expectedLedgerSha256": {
|
|
1103
|
+
"type": "string",
|
|
1104
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
1105
|
+
},
|
|
1106
|
+
"attemptId": {
|
|
1107
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
1108
|
+
},
|
|
1109
|
+
"admissionInput": {
|
|
1110
|
+
"$ref": "#/$defs/admissionInput"
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
"markStarted": {
|
|
1115
|
+
"type": "object",
|
|
1116
|
+
"additionalProperties": false,
|
|
1117
|
+
"required": [
|
|
1118
|
+
"schemaVersion",
|
|
1119
|
+
"operation",
|
|
1120
|
+
"now",
|
|
1121
|
+
"ledger",
|
|
1122
|
+
"expectedRevision",
|
|
1123
|
+
"expectedLedgerSha256",
|
|
1124
|
+
"attemptId"
|
|
1125
|
+
],
|
|
1126
|
+
"properties": {
|
|
1127
|
+
"schemaVersion": {
|
|
1128
|
+
"const": "1.0.0"
|
|
1129
|
+
},
|
|
1130
|
+
"operation": {
|
|
1131
|
+
"const": "mark-started"
|
|
1132
|
+
},
|
|
1133
|
+
"now": {
|
|
1134
|
+
"type": "string",
|
|
1135
|
+
"format": "date-time"
|
|
1136
|
+
},
|
|
1137
|
+
"ledger": {
|
|
1138
|
+
"$ref": "#/$defs/ledger"
|
|
1139
|
+
},
|
|
1140
|
+
"expectedRevision": {
|
|
1141
|
+
"type": "integer",
|
|
1142
|
+
"minimum": 0,
|
|
1143
|
+
"maximum": 1000000
|
|
1144
|
+
},
|
|
1145
|
+
"expectedLedgerSha256": {
|
|
1146
|
+
"type": "string",
|
|
1147
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
1148
|
+
},
|
|
1149
|
+
"attemptId": {
|
|
1150
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
},
|
|
1154
|
+
"interrupt": {
|
|
1155
|
+
"type": "object",
|
|
1156
|
+
"additionalProperties": false,
|
|
1157
|
+
"required": [
|
|
1158
|
+
"schemaVersion",
|
|
1159
|
+
"operation",
|
|
1160
|
+
"now",
|
|
1161
|
+
"ledger",
|
|
1162
|
+
"expectedRevision",
|
|
1163
|
+
"expectedLedgerSha256",
|
|
1164
|
+
"attemptId"
|
|
1165
|
+
],
|
|
1166
|
+
"properties": {
|
|
1167
|
+
"schemaVersion": {
|
|
1168
|
+
"const": "1.0.0"
|
|
1169
|
+
},
|
|
1170
|
+
"operation": {
|
|
1171
|
+
"const": "interrupt"
|
|
1172
|
+
},
|
|
1173
|
+
"now": {
|
|
1174
|
+
"type": "string",
|
|
1175
|
+
"format": "date-time"
|
|
1176
|
+
},
|
|
1177
|
+
"ledger": {
|
|
1178
|
+
"$ref": "#/$defs/ledger"
|
|
1179
|
+
},
|
|
1180
|
+
"expectedRevision": {
|
|
1181
|
+
"type": "integer",
|
|
1182
|
+
"minimum": 0,
|
|
1183
|
+
"maximum": 1000000
|
|
1184
|
+
},
|
|
1185
|
+
"expectedLedgerSha256": {
|
|
1186
|
+
"type": "string",
|
|
1187
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
1188
|
+
},
|
|
1189
|
+
"attemptId": {
|
|
1190
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
"settle": {
|
|
1195
|
+
"type": "object",
|
|
1196
|
+
"additionalProperties": false,
|
|
1197
|
+
"required": [
|
|
1198
|
+
"schemaVersion",
|
|
1199
|
+
"operation",
|
|
1200
|
+
"now",
|
|
1201
|
+
"ledger",
|
|
1202
|
+
"expectedRevision",
|
|
1203
|
+
"expectedLedgerSha256",
|
|
1204
|
+
"attemptId",
|
|
1205
|
+
"reconciliation",
|
|
1206
|
+
"terminationConfirmed",
|
|
1207
|
+
"startObservation",
|
|
1208
|
+
"actualCalls",
|
|
1209
|
+
"actualSeconds",
|
|
1210
|
+
"outcome"
|
|
1211
|
+
],
|
|
1212
|
+
"properties": {
|
|
1213
|
+
"schemaVersion": {
|
|
1214
|
+
"const": "1.0.0"
|
|
1215
|
+
},
|
|
1216
|
+
"operation": {
|
|
1217
|
+
"const": "settle"
|
|
1218
|
+
},
|
|
1219
|
+
"now": {
|
|
1220
|
+
"type": "string",
|
|
1221
|
+
"format": "date-time"
|
|
1222
|
+
},
|
|
1223
|
+
"ledger": {
|
|
1224
|
+
"$ref": "#/$defs/ledger"
|
|
1225
|
+
},
|
|
1226
|
+
"expectedRevision": {
|
|
1227
|
+
"type": "integer",
|
|
1228
|
+
"minimum": 0,
|
|
1229
|
+
"maximum": 1000000
|
|
1230
|
+
},
|
|
1231
|
+
"expectedLedgerSha256": {
|
|
1232
|
+
"type": "string",
|
|
1233
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
1234
|
+
},
|
|
1235
|
+
"attemptId": {
|
|
1236
|
+
"$ref": "https://agent-toolkit.local/schemas/agent-client-adapter.schema.json#/$defs/id"
|
|
1237
|
+
},
|
|
1238
|
+
"reconciliation": {
|
|
1239
|
+
"$ref": "#/$defs/reconciliation"
|
|
1240
|
+
},
|
|
1241
|
+
"terminationConfirmed": {
|
|
1242
|
+
"type": "boolean"
|
|
1243
|
+
},
|
|
1244
|
+
"startObservation": {
|
|
1245
|
+
"enum": [
|
|
1246
|
+
"started",
|
|
1247
|
+
"not-started"
|
|
1248
|
+
]
|
|
1249
|
+
},
|
|
1250
|
+
"actualCalls": {
|
|
1251
|
+
"type": "integer",
|
|
1252
|
+
"minimum": 0,
|
|
1253
|
+
"maximum": 1000000
|
|
1254
|
+
},
|
|
1255
|
+
"actualSeconds": {
|
|
1256
|
+
"type": "integer",
|
|
1257
|
+
"minimum": 0,
|
|
1258
|
+
"maximum": 1000000
|
|
1259
|
+
},
|
|
1260
|
+
"outcome": {
|
|
1261
|
+
"enum": [
|
|
1262
|
+
"not-started",
|
|
1263
|
+
"completed",
|
|
1264
|
+
"failed",
|
|
1265
|
+
"canceled",
|
|
1266
|
+
"timed-out"
|
|
1267
|
+
]
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
"stateInput": {
|
|
1272
|
+
"oneOf": [
|
|
1273
|
+
{
|
|
1274
|
+
"$ref": "#/$defs/reserve"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"$ref": "#/$defs/markStarted"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"$ref": "#/$defs/interrupt"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"$ref": "#/$defs/settle"
|
|
1284
|
+
}
|
|
1285
|
+
]
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
}
|