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