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,90 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,551 @@
|
|
|
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
|
+
}
|