@zaip-ai/cli 0.1.0 → 1.0.2

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 (795) hide show
  1. package/README.md +17 -9
  2. package/dist/commands/init.d.ts.map +1 -1
  3. package/dist/commands/init.js +5 -0
  4. package/dist/commands/init.js.map +1 -1
  5. package/dist/index.d.ts +2 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +57 -2
  8. package/dist/index.js.map +1 -1
  9. package/dist/services/adapters.d.ts +23 -0
  10. package/dist/services/adapters.d.ts.map +1 -0
  11. package/dist/services/adapters.js +796 -0
  12. package/dist/services/adapters.js.map +1 -0
  13. package/dist/services/adapters.test.d.ts +2 -0
  14. package/dist/services/adapters.test.d.ts.map +1 -0
  15. package/dist/services/adapters.test.js +25 -0
  16. package/dist/services/adapters.test.js.map +1 -0
  17. package/dist/services/agent-adapters.d.ts +41 -0
  18. package/dist/services/agent-adapters.d.ts.map +1 -0
  19. package/dist/services/agent-adapters.js +122 -0
  20. package/dist/services/agent-adapters.js.map +1 -0
  21. package/dist/services/agent-adapters.test.d.ts +2 -0
  22. package/dist/services/agent-adapters.test.d.ts.map +1 -0
  23. package/dist/services/agent-adapters.test.js +40 -0
  24. package/dist/services/agent-adapters.test.js.map +1 -0
  25. package/dist/services/codex-rules.d.ts +3 -0
  26. package/dist/services/codex-rules.d.ts.map +1 -0
  27. package/dist/services/codex-rules.js +114 -0
  28. package/dist/services/codex-rules.js.map +1 -0
  29. package/dist/services/doctor.d.ts +12 -0
  30. package/dist/services/doctor.d.ts.map +1 -0
  31. package/dist/services/doctor.js +207 -0
  32. package/dist/services/doctor.js.map +1 -0
  33. package/dist/services/global-codex-config.d.ts +15 -0
  34. package/dist/services/global-codex-config.d.ts.map +1 -0
  35. package/dist/services/global-codex-config.js +48 -0
  36. package/dist/services/global-codex-config.js.map +1 -0
  37. package/dist/services/global-codex-config.test.d.ts +2 -0
  38. package/dist/services/global-codex-config.test.d.ts.map +1 -0
  39. package/dist/services/global-codex-config.test.js +102 -0
  40. package/dist/services/global-codex-config.test.js.map +1 -0
  41. package/dist/services/install-agents-template.d.ts.map +1 -1
  42. package/dist/services/install-agents-template.js +174 -79
  43. package/dist/services/install-agents-template.js.map +1 -1
  44. package/dist/services/logger.d.ts.map +1 -1
  45. package/dist/services/logger.js +13 -3
  46. package/dist/services/logger.js.map +1 -1
  47. package/dist/services/logger.test.d.ts +2 -0
  48. package/dist/services/logger.test.d.ts.map +1 -0
  49. package/dist/services/logger.test.js +32 -0
  50. package/dist/services/logger.test.js.map +1 -0
  51. package/dist/services/runtime-template.test.d.ts +2 -0
  52. package/dist/services/runtime-template.test.d.ts.map +1 -0
  53. package/dist/services/runtime-template.test.js +199 -0
  54. package/dist/services/runtime-template.test.js.map +1 -0
  55. package/dist/services/template-manifest.d.ts +6 -2
  56. package/dist/services/template-manifest.d.ts.map +1 -1
  57. package/dist/services/template-manifest.js +93 -10
  58. package/dist/services/template-manifest.js.map +1 -1
  59. package/dist/services/transactional-files.d.ts +11 -0
  60. package/dist/services/transactional-files.d.ts.map +1 -0
  61. package/dist/services/transactional-files.js +114 -0
  62. package/dist/services/transactional-files.js.map +1 -0
  63. package/dist/types.d.ts +13 -0
  64. package/dist/types.d.ts.map +1 -1
  65. package/dist/version.d.ts +2 -0
  66. package/dist/version.d.ts.map +1 -0
  67. package/dist/version.js +6 -0
  68. package/dist/version.js.map +1 -0
  69. package/package.json +4 -2
  70. package/templates/.agents/config/agents/catalog.yaml +246 -0
  71. package/templates/.agents/config/framework.lock.yaml +1 -1
  72. package/templates/.agents/config/project.yaml +8 -0
  73. package/templates/.agents/config/src/icon_zaip.png +0 -0
  74. package/templates/.agents/dashboard/.zaip-managed.json +46 -0
  75. package/templates/.agents/dashboard/README.md +91 -0
  76. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-BOLwg8VW.js +1009 -0
  77. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-_yxs47Hd.css +1 -0
  78. package/templates/.agents/dashboard/apps/frontend/dist/assets/logo_novo_azul-BBx5pA2B.png +0 -0
  79. package/templates/.agents/dashboard/apps/frontend/dist/icon_zaip.png +0 -0
  80. package/templates/.agents/dashboard/apps/frontend/dist/index.html +15 -0
  81. package/templates/.agents/dashboard/apps/frontend/dist/logo_novo_azul.png +0 -0
  82. package/templates/.agents/dashboard/packages/local-runtime/server.mjs +179 -0
  83. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard.mjs +726 -0
  84. package/templates/.agents/dashboard/zaip-dashboard.exe +0 -0
  85. package/templates/.agents/design/DESIGN.md +180 -0
  86. package/templates/.agents/design/README.md +47 -0
  87. package/templates/.agents/design/apps/catalog/.storybook/main.ts +15 -0
  88. package/templates/.agents/design/apps/catalog/.storybook/preview.ts +21 -0
  89. package/templates/.agents/design/apps/catalog/dist/assets/index-B4pfFtvJ.css +1 -0
  90. package/templates/.agents/design/apps/catalog/dist/assets/index-Bvwc3Bgw.js +9 -0
  91. package/templates/.agents/design/apps/catalog/dist/index.html +14 -0
  92. package/templates/.agents/design/apps/catalog/dist/logo_novo_azul.png +0 -0
  93. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Color-6AOWCN3U-D8qyAXo4.js +1 -0
  94. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Components.stories-DkBtOSHX.js +1 -0
  95. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DesignSystem.stories-BttERyCr.js +1 -0
  96. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DocsRenderer-JROSPFPF-LmiVo77Q.js +46 -0
  97. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Primitives-HZpQ6PjX.js +1 -0
  98. package/templates/.agents/design/apps/catalog/dist/storybook/assets/WithTooltip-7X4HQR7L-CTMWAwDe.js +9 -0
  99. package/templates/.agents/design/apps/catalog/dist/storybook/assets/axe-Bk3eEgJf.js +20 -0
  100. package/templates/.agents/design/apps/catalog/dist/storybook/assets/chunk-242VQQM5-DB2JSNUA.js +1 -0
  101. package/templates/.agents/design/apps/catalog/dist/storybook/assets/chunk-DRQKCCAG-DUhJxxRU.js +1 -0
  102. package/templates/.agents/design/apps/catalog/dist/storybook/assets/chunk-QQBDHPVZ-nYh9QWsm.js +1 -0
  103. package/templates/.agents/design/apps/catalog/dist/storybook/assets/chunk-W22LQPXL-9RCn9-l7.js +18 -0
  104. package/templates/.agents/design/apps/catalog/dist/storybook/assets/components-BX1OfYUi.js +243 -0
  105. package/templates/.agents/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-Bu6KfEwW.js +1 -0
  106. package/templates/.agents/design/apps/catalog/dist/storybook/assets/iframe-B4pfFtvJ.css +1 -0
  107. package/templates/.agents/design/apps/catalog/dist/storybook/assets/iframe-LMhZM1ce.js +1154 -0
  108. package/templates/.agents/design/apps/catalog/dist/storybook/assets/jsx-runtime-f3rHp9ZU.js +1 -0
  109. package/templates/.agents/design/apps/catalog/dist/storybook/assets/matchers-JIUQ3HVY-9iRExWZO.js +28 -0
  110. package/templates/.agents/design/apps/catalog/dist/storybook/assets/preload-helper-BdFrVu1K.js +1 -0
  111. package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-18-jAz3avmR.js +9 -0
  112. package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-DvDPBd6Q.js +1 -0
  113. package/templates/.agents/design/apps/catalog/dist/storybook/assets/syntaxhighlighter-YFXUGROL-DV8X2acD.js +6 -0
  114. package/templates/.agents/design/apps/catalog/dist/storybook/assets/theming-CHbHkcNi.js +39 -0
  115. package/templates/.agents/design/apps/catalog/dist/storybook/favicon-wrapper.svg +46 -0
  116. package/templates/.agents/design/apps/catalog/dist/storybook/favicon.svg +1 -0
  117. package/templates/.agents/design/apps/catalog/dist/storybook/iframe.html +710 -0
  118. package/templates/.agents/design/apps/catalog/dist/storybook/index.html +152 -0
  119. package/templates/.agents/design/apps/catalog/dist/storybook/index.json +1 -0
  120. package/templates/.agents/design/apps/catalog/dist/storybook/logo_novo_azul.png +0 -0
  121. package/templates/.agents/design/apps/catalog/dist/storybook/nunito-sans-bold-italic.woff2 +0 -0
  122. package/templates/.agents/design/apps/catalog/dist/storybook/nunito-sans-bold.woff2 +0 -0
  123. package/templates/.agents/design/apps/catalog/dist/storybook/nunito-sans-italic.woff2 +0 -0
  124. package/templates/.agents/design/apps/catalog/dist/storybook/nunito-sans-regular.woff2 +0 -0
  125. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/a11y-2/manager-bundle.js +57 -0
  126. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/docs-1/manager-bundle.js +18 -0
  127. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +632 -0
  128. package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
  129. package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/favicon.svg +1 -0
  130. package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  131. package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  132. package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  133. package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  134. package/templates/.agents/design/apps/catalog/dist/storybook/sb-manager/globals-runtime.js +78957 -0
  135. package/templates/.agents/design/apps/catalog/dist/storybook/sb-manager/globals.js +24 -0
  136. package/templates/.agents/design/apps/catalog/dist/storybook/sb-manager/manager-stores.js +23 -0
  137. package/templates/.agents/design/apps/catalog/dist/storybook/sb-manager/runtime.js +28253 -0
  138. package/templates/.agents/design/apps/catalog/dist/storybook/vite-inject-mocker-entry.js +2 -0
  139. package/templates/.agents/design/apps/catalog/index.html +13 -0
  140. package/templates/.agents/design/apps/catalog/package.json +32 -0
  141. package/templates/.agents/design/apps/catalog/public/logo_novo_azul.png +0 -0
  142. package/templates/.agents/design/apps/catalog/src/App.tsx +29 -0
  143. package/templates/.agents/design/apps/catalog/src/components/CatalogShell.tsx +78 -0
  144. package/templates/.agents/design/apps/catalog/src/components/Primitives.tsx +137 -0
  145. package/templates/.agents/design/apps/catalog/src/design-contract.test.ts +33 -0
  146. package/templates/.agents/design/apps/catalog/src/main.tsx +13 -0
  147. package/templates/.agents/design/apps/catalog/src/pages/ComponentsPage.tsx +83 -0
  148. package/templates/.agents/design/apps/catalog/src/pages/DesignSystemPage.tsx +185 -0
  149. package/templates/.agents/design/apps/catalog/src/stories/Components.stories.tsx +12 -0
  150. package/templates/.agents/design/apps/catalog/src/stories/DesignSystem.stories.tsx +12 -0
  151. package/templates/.agents/design/apps/catalog/src/styles/catalog.css +315 -0
  152. package/templates/.agents/design/apps/catalog/src/styles/components.css +228 -0
  153. package/templates/.agents/design/apps/catalog/src/styles/design-system.css +137 -0
  154. package/templates/.agents/design/apps/catalog/src/styles.css +85 -0
  155. package/templates/.agents/design/apps/catalog/tsconfig.json +16 -0
  156. package/templates/.agents/design/apps/catalog/vite.config.ts +10 -0
  157. package/templates/.agents/design/apps/catalog/vitest.config.ts +5 -0
  158. package/templates/.agents/design/packages/local-runtime/package.json +9 -0
  159. package/templates/.agents/design/packages/local-runtime/runtime.mjs +238 -0
  160. package/templates/.agents/design/packages/local-runtime/runtime.test.mjs +66 -0
  161. package/templates/.agents/design/packages/local-runtime/start-design.mjs +46 -0
  162. package/templates/.agents/design/packages/windows-launcher/Program.cs +110 -0
  163. package/templates/.agents/design/packages/windows-launcher/build-design-launcher.ps1 +107 -0
  164. package/templates/.agents/design/tokens.json +52 -0
  165. package/templates/.agents/design/zaip-design.exe +0 -0
  166. package/templates/.agents/requirements/autonomous-assurance.md +63 -0
  167. package/templates/.agents/requirements/context-engine.md +27 -3
  168. package/templates/.agents/requirements/cost-observability.md +22 -3
  169. package/templates/.agents/requirements/design-system.md +48 -0
  170. package/templates/.agents/requirements/execution-engine.md +33 -8
  171. package/templates/.agents/requirements/kanban-dashboard.md +13 -4
  172. package/templates/.agents/requirements/model-orchestration.md +58 -0
  173. package/templates/.agents/requirements/public-distribution.md +40 -0
  174. package/templates/.agents/requirements/software-architecture.md +57 -0
  175. package/templates/.agents/requirements/work-lifecycle.md +61 -6
  176. package/templates/.agents/rules/project/.gitkeep +0 -0
  177. package/templates/.agents/rules/zaip/architecture.md +28 -0
  178. package/templates/.agents/rules/zaip/context.md +22 -0
  179. package/templates/.agents/rules/zaip/core.md +24 -0
  180. package/templates/.agents/rules/zaip/evolution.md +22 -0
  181. package/templates/.agents/rules/zaip/model-orchestration.md +48 -0
  182. package/templates/.agents/rules/zaip/workflow.md +35 -0
  183. package/templates/.agents/skills/zaip-skill-adapt-stack/SKILL.md +1 -1
  184. package/templates/.agents/skills/zaip-skill-adapt-stack/agents/openai.yaml +3 -3
  185. package/templates/.agents/skills/zaip-skill-adapters/SKILL.md +9 -6
  186. package/templates/.agents/skills/zaip-skill-adapters/agents/openai.yaml +2 -2
  187. package/templates/.agents/skills/zaip-skill-api-to-mcp/SKILL.md +19 -0
  188. package/templates/.agents/skills/zaip-skill-api-to-mcp/agents/openai.yaml +4 -0
  189. package/templates/.agents/skills/zaip-skill-api-to-mcp/assets/adapter.example.yaml +26 -0
  190. package/templates/.agents/skills/zaip-skill-api-to-mcp/references/security-contract.md +10 -0
  191. package/templates/.agents/skills/zaip-skill-api-to-mcp/references/server-layout.md +19 -0
  192. package/templates/.agents/skills/zaip-skill-api-to-mcp/scripts/inspect-openapi.mjs +60 -0
  193. package/templates/.agents/skills/zaip-skill-api-to-mcp/scripts/scaffold-local-mcp.mjs +47 -0
  194. package/templates/.agents/skills/zaip-skill-author-skills/SKILL.md +21 -0
  195. package/templates/.agents/skills/zaip-skill-author-skills/agents/openai.yaml +4 -0
  196. package/templates/.agents/skills/zaip-skill-change/SKILL.md +20 -0
  197. package/templates/.agents/skills/zaip-skill-change/agents/openai.yaml +4 -0
  198. package/templates/.agents/skills/zaip-skill-config/SKILL.md +22 -0
  199. package/templates/.agents/skills/zaip-skill-config/agents/openai.yaml +4 -0
  200. package/templates/.agents/skills/zaip-skill-context/SKILL.md +10 -6
  201. package/templates/.agents/skills/zaip-skill-context/agents/openai.yaml +2 -2
  202. package/templates/.agents/skills/zaip-skill-cqrs/SKILL.md +2 -2
  203. package/templates/.agents/skills/zaip-skill-cqrs/agents/openai.yaml +3 -3
  204. package/templates/.agents/skills/zaip-skill-decisions/SKILL.md +7 -5
  205. package/templates/.agents/skills/zaip-skill-decisions/agents/openai.yaml +2 -2
  206. package/templates/.agents/skills/zaip-skill-enforce-architecture/SKILL.md +8 -5
  207. package/templates/.agents/skills/zaip-skill-enforce-architecture/agents/openai.yaml +3 -3
  208. package/templates/.agents/skills/zaip-skill-eval/SKILL.md +7 -5
  209. package/templates/.agents/skills/zaip-skill-eval/agents/openai.yaml +3 -3
  210. package/templates/.agents/skills/zaip-skill-execution/SKILL.md +36 -0
  211. package/templates/.agents/skills/zaip-skill-execution/agents/openai.yaml +6 -0
  212. package/templates/.agents/skills/zaip-skill-execution/references/prepared-plan.md +31 -0
  213. package/templates/.agents/skills/zaip-skill-frontend-launcher/SKILL.md +29 -0
  214. package/templates/.agents/skills/zaip-skill-frontend-launcher/agents/openai.yaml +4 -0
  215. package/templates/.agents/skills/zaip-skill-frontend-launcher/references/launcher-contract.md +36 -0
  216. package/templates/.agents/skills/zaip-skill-github-deploy/SKILL.md +49 -58
  217. package/templates/.agents/skills/zaip-skill-github-deploy/agents/openai.yaml +3 -3
  218. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.mjs +256 -0
  219. package/templates/.agents/skills/zaip-skill-github-setup/SKILL.md +1 -1
  220. package/templates/.agents/skills/zaip-skill-move-prd/SKILL.md +37 -0
  221. package/templates/.agents/skills/zaip-skill-move-prd/agents/openai.yaml +4 -0
  222. package/templates/.agents/skills/zaip-skill-move-spec/SKILL.md +38 -0
  223. package/templates/.agents/skills/zaip-skill-move-spec/agents/openai.yaml +4 -0
  224. package/templates/.agents/skills/zaip-skill-navigate-work/SKILL.md +9 -6
  225. package/templates/.agents/skills/zaip-skill-navigate-work/agents/openai.yaml +3 -3
  226. package/templates/.agents/skills/zaip-skill-observability/SKILL.md +24 -0
  227. package/templates/.agents/skills/zaip-skill-observability/agents/openai.yaml +4 -0
  228. package/templates/.agents/skills/zaip-skill-openai-docs/SKILL.md +17 -0
  229. package/templates/.agents/skills/zaip-skill-openai-docs/agents/openai.yaml +4 -0
  230. package/templates/.agents/skills/zaip-skill-openai-docs/references/routing.md +11 -0
  231. package/templates/.agents/skills/zaip-skill-prd/SKILL.md +37 -6
  232. package/templates/.agents/skills/zaip-skill-prd/agents/openai.yaml +2 -2
  233. package/templates/.agents/skills/zaip-skill-preview/SKILL.md +16 -0
  234. package/templates/.agents/skills/zaip-skill-preview/agents/openai.yaml +4 -0
  235. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/SKILL.md +39 -0
  236. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/agents/openai.yaml +4 -0
  237. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/inspect-local-sqlite.py +52 -0
  238. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/normalize-run-agents.mjs +63 -0
  239. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-local-telemetry.mjs +698 -0
  240. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.mjs +361 -0
  241. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.test.mjs +187 -0
  242. package/templates/.agents/skills/zaip-skill-requirements/SKILL.md +10 -6
  243. package/templates/.agents/skills/zaip-skill-requirements/agents/openai.yaml +2 -2
  244. package/templates/.agents/skills/zaip-skill-review/SKILL.md +18 -0
  245. package/templates/.agents/skills/zaip-skill-review/agents/openai.yaml +4 -0
  246. package/templates/.agents/skills/zaip-skill-rules/SKILL.md +19 -0
  247. package/templates/.agents/skills/zaip-skill-rules/agents/openai.yaml +4 -0
  248. package/templates/.agents/skills/zaip-skill-security/SKILL.md +30 -0
  249. package/templates/.agents/skills/zaip-skill-security/agents/openai.yaml +4 -0
  250. package/templates/.agents/skills/zaip-skill-setup/SKILL.md +19 -6
  251. package/templates/.agents/skills/zaip-skill-setup/agents/openai.yaml +2 -2
  252. package/templates/.agents/skills/zaip-skill-spec/SKILL.md +39 -6
  253. package/templates/.agents/skills/zaip-skill-spec/agents/openai.yaml +2 -2
  254. package/templates/.agents/skills/zaip-skill-task/SKILL.md +36 -8
  255. package/templates/.agents/skills/zaip-skill-task/agents/openai.yaml +2 -2
  256. package/templates/.agents/skills/zaip-skill-text-encoding/SKILL.md +3 -3
  257. package/templates/.agents/skills/zaip-skill-tool-setup/SKILL.md +22 -0
  258. package/templates/.agents/skills/zaip-skill-tool-setup/agents/openai.yaml +4 -0
  259. package/templates/.agents/skills/zaip-skill-tool-setup/references/codex-config.md +24 -0
  260. package/templates/.agents/skills/zaip-skill-tool-setup/references/secrets.md +8 -0
  261. package/templates/.agents/skills/zaip-skill-tool-setup/scripts/configure-local-mcp.mjs +52 -0
  262. package/templates/.agents/skills/zaip-skill-tool-setup/scripts/inspect-tool.mjs +35 -0
  263. package/templates/.agents/skills/zaip-skill-tool-setup/scripts/tool-state.mjs +26 -0
  264. package/templates/.agents/tools/README.md +9 -0
  265. package/templates/.agents/tools/api/asaas/README.md +22 -0
  266. package/templates/.agents/tools/api/asaas/manifest.yaml +20 -0
  267. package/templates/.agents/tools/api/github/README.md +22 -0
  268. package/templates/.agents/tools/api/github/manifest.yaml +20 -0
  269. package/templates/.agents/tools/api/google-ads/README.md +23 -0
  270. package/templates/.agents/tools/api/google-ads/manifest.yaml +21 -0
  271. package/templates/.agents/tools/api/google-analytics/README.md +22 -0
  272. package/templates/.agents/tools/api/google-analytics/manifest.yaml +20 -0
  273. package/templates/.agents/tools/api/google-search-console/README.md +21 -0
  274. package/templates/.agents/tools/api/google-search-console/manifest.yaml +19 -0
  275. package/templates/.agents/tools/api/google-tag-manager/README.md +22 -0
  276. package/templates/.agents/tools/api/google-tag-manager/manifest.yaml +20 -0
  277. package/templates/.agents/tools/api/hubspot/README.md +22 -0
  278. package/templates/.agents/tools/api/hubspot/manifest.yaml +20 -0
  279. package/templates/.agents/tools/api/instagram-graph/README.md +23 -0
  280. package/templates/.agents/tools/api/instagram-graph/manifest.yaml +21 -0
  281. package/templates/.agents/tools/api/kommo-crm/README.md +23 -0
  282. package/templates/.agents/tools/api/kommo-crm/manifest.yaml +21 -0
  283. package/templates/.agents/tools/api/linkedin-ads/README.md +23 -0
  284. package/templates/.agents/tools/api/linkedin-ads/manifest.yaml +21 -0
  285. package/templates/.agents/tools/api/meta-ads/README.md +23 -0
  286. package/templates/.agents/tools/api/meta-ads/manifest.yaml +21 -0
  287. package/templates/.agents/tools/api/openai/README.md +22 -0
  288. package/templates/.agents/tools/api/openai/manifest.yaml +20 -0
  289. package/templates/.agents/tools/api/shopify/README.md +23 -0
  290. package/templates/.agents/tools/api/shopify/manifest.yaml +21 -0
  291. package/templates/.agents/tools/api/slack/README.md +22 -0
  292. package/templates/.agents/tools/api/slack/manifest.yaml +20 -0
  293. package/templates/.agents/tools/api/stripe/README.md +22 -0
  294. package/templates/.agents/tools/api/stripe/manifest.yaml +20 -0
  295. package/templates/.agents/tools/api/tiktok-ads/README.md +23 -0
  296. package/templates/.agents/tools/api/tiktok-ads/manifest.yaml +21 -0
  297. package/templates/.agents/tools/api/youtube-analytics/README.md +22 -0
  298. package/templates/.agents/tools/api/youtube-analytics/manifest.yaml +20 -0
  299. package/templates/.agents/tools/catalog.yaml +358 -0
  300. package/templates/.agents/tools/mcp/development/browser/README.md +20 -0
  301. package/templates/.agents/tools/mcp/development/browser/manifest.yaml +24 -0
  302. package/templates/.agents/tools/mcp/development/filesystem/README.md +20 -0
  303. package/templates/.agents/tools/mcp/development/filesystem/manifest.yaml +24 -0
  304. package/templates/.agents/tools/mcp/development/git/README.md +20 -0
  305. package/templates/.agents/tools/mcp/development/git/manifest.yaml +24 -0
  306. package/templates/.agents/tools/mcp/development/github/README.md +20 -0
  307. package/templates/.agents/tools/mcp/development/github/manifest.yaml +25 -0
  308. package/templates/.agents/tools/mcp/development/gitlab/README.md +20 -0
  309. package/templates/.agents/tools/mcp/development/gitlab/manifest.yaml +25 -0
  310. package/templates/.agents/tools/mcp/development/jira/README.md +21 -0
  311. package/templates/.agents/tools/mcp/development/jira/manifest.yaml +26 -0
  312. package/templates/.agents/tools/mcp/development/linear/README.md +20 -0
  313. package/templates/.agents/tools/mcp/development/linear/manifest.yaml +25 -0
  314. package/templates/.agents/tools/mcp/development/notion/README.md +20 -0
  315. package/templates/.agents/tools/mcp/development/notion/manifest.yaml +25 -0
  316. package/templates/.agents/tools/mcp/development/openai-docs/README.md +15 -0
  317. package/templates/.agents/tools/mcp/development/openai-docs/manifest.yaml +21 -0
  318. package/templates/.agents/tools/mcp/development/postgresql/README.md +20 -0
  319. package/templates/.agents/tools/mcp/development/postgresql/manifest.yaml +25 -0
  320. package/templates/.agents/tools/mcp/development/slack/README.md +20 -0
  321. package/templates/.agents/tools/mcp/development/slack/manifest.yaml +25 -0
  322. package/templates/.agents/tools/mcp/development/sqlite/README.md +20 -0
  323. package/templates/.agents/tools/mcp/development/sqlite/manifest.yaml +25 -0
  324. package/templates/.agents/tools/mcp/infra/aws/README.md +21 -0
  325. package/templates/.agents/tools/mcp/infra/aws/manifest.yaml +26 -0
  326. package/templates/.agents/tools/mcp/infra/azure/README.md +20 -0
  327. package/templates/.agents/tools/mcp/infra/azure/manifest.yaml +25 -0
  328. package/templates/.agents/tools/mcp/infra/cloudflare/README.md +21 -0
  329. package/templates/.agents/tools/mcp/infra/cloudflare/manifest.yaml +26 -0
  330. package/templates/.agents/tools/mcp/infra/docker/README.md +20 -0
  331. package/templates/.agents/tools/mcp/infra/docker/manifest.yaml +24 -0
  332. package/templates/.agents/tools/mcp/infra/gcp/README.md +21 -0
  333. package/templates/.agents/tools/mcp/infra/gcp/manifest.yaml +26 -0
  334. package/templates/.agents/tools/mcp/infra/hostinger/README.md +20 -0
  335. package/templates/.agents/tools/mcp/infra/hostinger/manifest.yaml +25 -0
  336. package/templates/.agents/tools/mcp/infra/kubernetes/README.md +20 -0
  337. package/templates/.agents/tools/mcp/infra/kubernetes/manifest.yaml +25 -0
  338. package/templates/.agents/tools/mcp/infra/terraform/README.md +20 -0
  339. package/templates/.agents/tools/mcp/infra/terraform/manifest.yaml +24 -0
  340. package/templates/.agents/tools/mcp/marketing/google-ads/README.md +21 -0
  341. package/templates/.agents/tools/mcp/marketing/google-ads/manifest.yaml +26 -0
  342. package/templates/.agents/tools/mcp/marketing/google-analytics/README.md +20 -0
  343. package/templates/.agents/tools/mcp/marketing/google-analytics/manifest.yaml +25 -0
  344. package/templates/.agents/tools/mcp/marketing/google-search-console/README.md +19 -0
  345. package/templates/.agents/tools/mcp/marketing/google-search-console/manifest.yaml +24 -0
  346. package/templates/.agents/tools/mcp/marketing/google-tag-manager/README.md +21 -0
  347. package/templates/.agents/tools/mcp/marketing/google-tag-manager/manifest.yaml +26 -0
  348. package/templates/.agents/tools/mcp/marketing/hubspot/README.md +20 -0
  349. package/templates/.agents/tools/mcp/marketing/hubspot/manifest.yaml +25 -0
  350. package/templates/.agents/tools/mcp/marketing/instagram-insights/README.md +21 -0
  351. package/templates/.agents/tools/mcp/marketing/instagram-insights/manifest.yaml +26 -0
  352. package/templates/.agents/tools/mcp/marketing/linkedin-ads/README.md +21 -0
  353. package/templates/.agents/tools/mcp/marketing/linkedin-ads/manifest.yaml +26 -0
  354. package/templates/.agents/tools/mcp/marketing/mailchimp/README.md +21 -0
  355. package/templates/.agents/tools/mcp/marketing/mailchimp/manifest.yaml +26 -0
  356. package/templates/.agents/tools/mcp/marketing/meta-ads/README.md +21 -0
  357. package/templates/.agents/tools/mcp/marketing/meta-ads/manifest.yaml +26 -0
  358. package/templates/.agents/tools/mcp/marketing/semrush/README.md +20 -0
  359. package/templates/.agents/tools/mcp/marketing/semrush/manifest.yaml +25 -0
  360. package/templates/.agents/tools/mcp/marketing/tiktok-ads/README.md +21 -0
  361. package/templates/.agents/tools/mcp/marketing/tiktok-ads/manifest.yaml +26 -0
  362. package/templates/.agents/tools/mcp/marketing/youtube-analytics/README.md +21 -0
  363. package/templates/.agents/tools/mcp/marketing/youtube-analytics/manifest.yaml +26 -0
  364. package/templates/.agents/tools/mcp/observability/cloudwatch/README.md +21 -0
  365. package/templates/.agents/tools/mcp/observability/cloudwatch/manifest.yaml +26 -0
  366. package/templates/.agents/tools/mcp/observability/datadog/README.md +21 -0
  367. package/templates/.agents/tools/mcp/observability/datadog/manifest.yaml +26 -0
  368. package/templates/.agents/tools/mcp/observability/elasticsearch/README.md +21 -0
  369. package/templates/.agents/tools/mcp/observability/elasticsearch/manifest.yaml +26 -0
  370. package/templates/.agents/tools/mcp/observability/grafana/README.md +21 -0
  371. package/templates/.agents/tools/mcp/observability/grafana/manifest.yaml +26 -0
  372. package/templates/.agents/tools/mcp/observability/kibana/README.md +21 -0
  373. package/templates/.agents/tools/mcp/observability/kibana/manifest.yaml +26 -0
  374. package/templates/.agents/tools/mcp/observability/loki/README.md +19 -0
  375. package/templates/.agents/tools/mcp/observability/loki/manifest.yaml +24 -0
  376. package/templates/.agents/tools/mcp/observability/new-relic/README.md +21 -0
  377. package/templates/.agents/tools/mcp/observability/new-relic/manifest.yaml +26 -0
  378. package/templates/.agents/tools/mcp/observability/opentelemetry/README.md +20 -0
  379. package/templates/.agents/tools/mcp/observability/opentelemetry/manifest.yaml +25 -0
  380. package/templates/.agents/tools/mcp/observability/prometheus/README.md +19 -0
  381. package/templates/.agents/tools/mcp/observability/prometheus/manifest.yaml +24 -0
  382. package/templates/.agents/tools/mcp/observability/sentry/README.md +21 -0
  383. package/templates/.agents/tools/mcp/observability/sentry/manifest.yaml +26 -0
  384. package/templates/.agents/tools/policies/approval-rules.yaml +8 -0
  385. package/templates/.agents/tools/policies/financial-limits.yaml +6 -0
  386. package/templates/.agents/tools/policies/permissions.yaml +8 -0
  387. package/templates/.agents/tools/policies/secret-handling.md +7 -0
  388. package/templates/.agents/tools/profiles/business.yaml +8 -0
  389. package/templates/.agents/tools/profiles/default.yaml +8 -0
  390. package/templates/.agents/tools/profiles/development.yaml +13 -0
  391. package/templates/.agents/tools/profiles/infrastructure.yaml +8 -0
  392. package/templates/.agents/tools/profiles/marketing.yaml +9 -0
  393. package/templates/.agents/tools/profiles/observability.yaml +8 -0
  394. package/templates/.agents/tools/runtime/README.md +3 -0
  395. package/templates/.agents/tools/runtime/api-mcp-runtime.mjs +217 -0
  396. package/templates/.agents/tools/runtime/api-mcp-runtime.test.mjs +56 -0
  397. package/templates/.agents/tools/runtime/fixtures/definition.json +17 -0
  398. package/templates/.agents/tools/runtime/runner.mjs +16 -0
  399. package/templates/.agents/tools/runtime/stdio.test.mjs +32 -0
  400. package/templates/.agents/tools/state.example.yaml +8 -0
  401. package/templates/.agents/zaip-aios/INDEX.md +26 -0
  402. package/templates/.agents/zaip-aios/README.md +13 -0
  403. package/templates/.agents/zaip-aios/VERSION +1 -0
  404. package/templates/.agents/zaip-aios/guides/01-primeiros-passos.md +10 -0
  405. package/templates/.agents/zaip-aios/guides/02-requirements.md +12 -0
  406. package/templates/.agents/zaip-aios/guides/03-tasks.md +12 -0
  407. package/templates/.agents/zaip-aios/guides/04-specs.md +16 -0
  408. package/templates/.agents/zaip-aios/guides/05-prds.md +13 -0
  409. package/templates/.agents/zaip-aios/guides/06-execucao.md +13 -0
  410. package/templates/.agents/zaip-aios/guides/07-revisao-e-validacao.md +8 -0
  411. package/templates/.agents/zaip-aios/guides/08-contexto-e-tokens.md +10 -0
  412. package/templates/.agents/zaip-aios/guides/09-agentes-e-squads.md +8 -0
  413. package/templates/.agents/zaip-aios/guides/10-seguranca.md +206 -0
  414. package/templates/.agents/zaip-aios/guides/11-observabilidade-e-custos.md +10 -0
  415. package/templates/.agents/zaip-aios/guides/12-instalacao-e-upgrade.md +10 -0
  416. package/templates/.agents/zaip-aios/guides/13-boas-praticas.md +12 -0
  417. package/templates/.agents/zaip-aios/guides/14-troubleshooting.md +12 -0
  418. package/templates/.agents/zaip-aios/guides/15-tools-e-codex.md +25 -0
  419. package/templates/.agents/zaip-aios/guides/16-lifecycle-e-reconciliacao.md +47 -0
  420. package/templates/.zaip-aios/LICENSE +1 -0
  421. package/templates/.zaip-aios/THIRD_PARTY_NOTICES.md +10 -0
  422. package/templates/.zaip-aios/VERSION +1 -0
  423. package/templates/.zaip-aios/bin/zaip.mjs +1285 -0
  424. package/templates/.zaip-aios/checksums.sha256 +369 -0
  425. package/templates/.zaip-aios/dashboard/.zaip-managed.json +46 -0
  426. package/templates/.zaip-aios/dashboard/README.md +91 -0
  427. package/templates/.zaip-aios/dashboard/apps/frontend/dist/assets/index-BOLwg8VW.js +1009 -0
  428. package/templates/.zaip-aios/dashboard/apps/frontend/dist/assets/index-_yxs47Hd.css +1 -0
  429. package/templates/.zaip-aios/dashboard/apps/frontend/dist/assets/logo_novo_azul-BBx5pA2B.png +0 -0
  430. package/templates/.zaip-aios/dashboard/apps/frontend/dist/icon_zaip.png +0 -0
  431. package/templates/.zaip-aios/dashboard/apps/frontend/dist/index.html +15 -0
  432. package/templates/.zaip-aios/dashboard/apps/frontend/dist/logo_novo_azul.png +0 -0
  433. package/templates/.zaip-aios/dashboard/packages/local-runtime/server.mjs +179 -0
  434. package/templates/.zaip-aios/dashboard/packages/local-runtime/start-dashboard.mjs +726 -0
  435. package/templates/.zaip-aios/dashboard/zaip-dashboard.exe +0 -0
  436. package/templates/.zaip-aios/design/.zaip-managed.json +330 -0
  437. package/templates/.zaip-aios/design/DESIGN.md +180 -0
  438. package/templates/.zaip-aios/design/README.md +47 -0
  439. package/templates/.zaip-aios/design/apps/catalog/.storybook/main.ts +15 -0
  440. package/templates/.zaip-aios/design/apps/catalog/.storybook/preview.ts +21 -0
  441. package/templates/.zaip-aios/design/apps/catalog/dist/assets/index-B4pfFtvJ.css +1 -0
  442. package/templates/.zaip-aios/design/apps/catalog/dist/assets/index-Bvwc3Bgw.js +9 -0
  443. package/templates/.zaip-aios/design/apps/catalog/dist/index.html +14 -0
  444. package/templates/.zaip-aios/design/apps/catalog/dist/logo_novo_azul.png +0 -0
  445. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/Color-6AOWCN3U-D8qyAXo4.js +1 -0
  446. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/Components.stories-DkBtOSHX.js +1 -0
  447. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/DesignSystem.stories-BttERyCr.js +1 -0
  448. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/DocsRenderer-JROSPFPF-LmiVo77Q.js +46 -0
  449. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/Primitives-HZpQ6PjX.js +1 -0
  450. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/WithTooltip-7X4HQR7L-CTMWAwDe.js +9 -0
  451. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/axe-Bk3eEgJf.js +20 -0
  452. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/chunk-242VQQM5-DB2JSNUA.js +1 -0
  453. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/chunk-DRQKCCAG-DUhJxxRU.js +1 -0
  454. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/chunk-QQBDHPVZ-nYh9QWsm.js +1 -0
  455. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/chunk-W22LQPXL-9RCn9-l7.js +18 -0
  456. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/components-BX1OfYUi.js +243 -0
  457. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-Bu6KfEwW.js +1 -0
  458. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/iframe-B4pfFtvJ.css +1 -0
  459. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/iframe-LMhZM1ce.js +1154 -0
  460. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/jsx-runtime-f3rHp9ZU.js +1 -0
  461. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/matchers-JIUQ3HVY-9iRExWZO.js +28 -0
  462. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/preload-helper-BdFrVu1K.js +1 -0
  463. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/react-18-jAz3avmR.js +9 -0
  464. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/react-DvDPBd6Q.js +1 -0
  465. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/syntaxhighlighter-YFXUGROL-DV8X2acD.js +6 -0
  466. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/theming-CHbHkcNi.js +39 -0
  467. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/favicon-wrapper.svg +46 -0
  468. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/favicon.svg +1 -0
  469. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/iframe.html +710 -0
  470. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/index.html +152 -0
  471. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/index.json +1 -0
  472. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/logo_novo_azul.png +0 -0
  473. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/nunito-sans-bold-italic.woff2 +0 -0
  474. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/nunito-sans-bold.woff2 +0 -0
  475. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/nunito-sans-italic.woff2 +0 -0
  476. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/nunito-sans-regular.woff2 +0 -0
  477. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-addons/a11y-2/manager-bundle.js +57 -0
  478. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-addons/docs-1/manager-bundle.js +18 -0
  479. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +632 -0
  480. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
  481. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/favicon.svg +1 -0
  482. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  483. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  484. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  485. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  486. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-manager/globals-runtime.js +78957 -0
  487. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-manager/globals.js +24 -0
  488. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-manager/manager-stores.js +23 -0
  489. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-manager/runtime.js +28253 -0
  490. package/templates/.zaip-aios/design/apps/catalog/dist/storybook/vite-inject-mocker-entry.js +2 -0
  491. package/templates/.zaip-aios/design/apps/catalog/index.html +13 -0
  492. package/templates/.zaip-aios/design/apps/catalog/package.json +32 -0
  493. package/templates/.zaip-aios/design/apps/catalog/public/logo_novo_azul.png +0 -0
  494. package/templates/.zaip-aios/design/apps/catalog/src/App.tsx +29 -0
  495. package/templates/.zaip-aios/design/apps/catalog/src/components/CatalogShell.tsx +78 -0
  496. package/templates/.zaip-aios/design/apps/catalog/src/components/Primitives.tsx +137 -0
  497. package/templates/.zaip-aios/design/apps/catalog/src/design-contract.test.ts +33 -0
  498. package/templates/.zaip-aios/design/apps/catalog/src/main.tsx +13 -0
  499. package/templates/.zaip-aios/design/apps/catalog/src/pages/ComponentsPage.tsx +83 -0
  500. package/templates/.zaip-aios/design/apps/catalog/src/pages/DesignSystemPage.tsx +185 -0
  501. package/templates/.zaip-aios/design/apps/catalog/src/stories/Components.stories.tsx +12 -0
  502. package/templates/.zaip-aios/design/apps/catalog/src/stories/DesignSystem.stories.tsx +12 -0
  503. package/templates/.zaip-aios/design/apps/catalog/src/styles/catalog.css +315 -0
  504. package/templates/.zaip-aios/design/apps/catalog/src/styles/components.css +228 -0
  505. package/templates/.zaip-aios/design/apps/catalog/src/styles/design-system.css +137 -0
  506. package/templates/.zaip-aios/design/apps/catalog/src/styles.css +85 -0
  507. package/templates/.zaip-aios/design/apps/catalog/tsconfig.json +16 -0
  508. package/templates/.zaip-aios/design/apps/catalog/vite.config.ts +10 -0
  509. package/templates/.zaip-aios/design/apps/catalog/vitest.config.ts +5 -0
  510. package/templates/.zaip-aios/design/packages/local-runtime/package.json +9 -0
  511. package/templates/.zaip-aios/design/packages/local-runtime/runtime.mjs +238 -0
  512. package/templates/.zaip-aios/design/packages/local-runtime/runtime.test.mjs +66 -0
  513. package/templates/.zaip-aios/design/packages/local-runtime/start-design.mjs +46 -0
  514. package/templates/.zaip-aios/design/packages/windows-launcher/Program.cs +110 -0
  515. package/templates/.zaip-aios/design/packages/windows-launcher/build-design-launcher.ps1 +107 -0
  516. package/templates/.zaip-aios/design/tokens.json +52 -0
  517. package/templates/.zaip-aios/design/zaip-design.exe +0 -0
  518. package/templates/.zaip-aios/manifest.json +376 -0
  519. package/templates/.zaip-aios/migrations/001-layout-v1.json +5 -0
  520. package/templates/.zaip-aios/migrations/002-layout-v2.json +6 -0
  521. package/templates/.zaip-aios/pricing/fx/2026/07/12/usd-brl.json +9 -0
  522. package/templates/.zaip-aios/pricing/models.json +172 -0
  523. package/templates/.zaip-aios/profiles/clients.json +506 -0
  524. package/templates/.zaip-aios/profiles/fixtures/architecture/negative/modules/orders/application/queries/list.query.ts +5 -0
  525. package/templates/.zaip-aios/profiles/fixtures/architecture/negative/modules/orders/domain/order.ts +3 -0
  526. package/templates/.zaip-aios/profiles/fixtures/architecture/positive/modules/orders/application/queries/list.query.ts +5 -0
  527. package/templates/.zaip-aios/profiles/typescript-hono-kysely.json +41 -0
  528. package/templates/.zaip-aios/sbom.cdx.json +3440 -0
  529. package/templates/.zaip-aios/schemas/contracts.schema.json +243 -0
  530. package/templates/.zaip-aios/templates/config/agents/catalog.yaml +246 -0
  531. package/templates/.zaip-aios/templates/requirements/.gitkeep +0 -0
  532. package/templates/.zaip-aios/templates/requirements/autonomous-assurance.md +63 -0
  533. package/templates/.zaip-aios/templates/requirements/context-engine.md +44 -0
  534. package/templates/.zaip-aios/templates/requirements/cost-observability.md +39 -0
  535. package/templates/.zaip-aios/templates/requirements/design-system.md +48 -0
  536. package/templates/.zaip-aios/templates/requirements/execution-engine.md +60 -0
  537. package/templates/.zaip-aios/templates/requirements/kanban-dashboard.md +30 -0
  538. package/templates/.zaip-aios/templates/requirements/model-orchestration.md +58 -0
  539. package/templates/.zaip-aios/templates/requirements/public-distribution.md +40 -0
  540. package/templates/.zaip-aios/templates/requirements/software-architecture.md +57 -0
  541. package/templates/.zaip-aios/templates/requirements/work-lifecycle.md +82 -0
  542. package/templates/.zaip-aios/templates/rules/project/.gitkeep +0 -0
  543. package/templates/.zaip-aios/templates/rules/zaip/architecture.md +28 -0
  544. package/templates/.zaip-aios/templates/rules/zaip/context.md +22 -0
  545. package/templates/.zaip-aios/templates/rules/zaip/core.md +24 -0
  546. package/templates/.zaip-aios/templates/rules/zaip/evolution.md +22 -0
  547. package/templates/.zaip-aios/templates/rules/zaip/model-orchestration.md +48 -0
  548. package/templates/.zaip-aios/templates/rules/zaip/security.md +20 -0
  549. package/templates/.zaip-aios/templates/rules/zaip/workflow.md +35 -0
  550. package/templates/.zaip-aios/templates/skills/.gitkeep +0 -0
  551. package/templates/.zaip-aios/templates/skills/zaip-skill-adapt-stack/SKILL.md +11 -0
  552. package/templates/.zaip-aios/templates/skills/zaip-skill-adapt-stack/agents/openai.yaml +4 -0
  553. package/templates/.zaip-aios/templates/skills/zaip-skill-adapters/SKILL.md +15 -0
  554. package/templates/.zaip-aios/templates/skills/zaip-skill-adapters/agents/openai.yaml +4 -0
  555. package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/SKILL.md +19 -0
  556. package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/agents/openai.yaml +4 -0
  557. package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/assets/adapter.example.yaml +26 -0
  558. package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/references/security-contract.md +10 -0
  559. package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/references/server-layout.md +19 -0
  560. package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/scripts/inspect-openapi.mjs +60 -0
  561. package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/scripts/scaffold-local-mcp.mjs +47 -0
  562. package/templates/.zaip-aios/templates/skills/zaip-skill-author-skills/SKILL.md +21 -0
  563. package/templates/.zaip-aios/templates/skills/zaip-skill-author-skills/agents/openai.yaml +4 -0
  564. package/templates/.zaip-aios/templates/skills/zaip-skill-change/SKILL.md +20 -0
  565. package/templates/.zaip-aios/templates/skills/zaip-skill-change/agents/openai.yaml +4 -0
  566. package/templates/.zaip-aios/templates/skills/zaip-skill-config/SKILL.md +22 -0
  567. package/templates/.zaip-aios/templates/skills/zaip-skill-config/agents/openai.yaml +4 -0
  568. package/templates/.zaip-aios/templates/skills/zaip-skill-context/SKILL.md +16 -0
  569. package/templates/.zaip-aios/templates/skills/zaip-skill-context/agents/openai.yaml +4 -0
  570. package/templates/.zaip-aios/templates/skills/zaip-skill-cqrs/SKILL.md +11 -0
  571. package/templates/.zaip-aios/templates/skills/zaip-skill-cqrs/agents/openai.yaml +4 -0
  572. package/templates/.zaip-aios/templates/skills/zaip-skill-decisions/SKILL.md +14 -0
  573. package/templates/.zaip-aios/templates/skills/zaip-skill-decisions/agents/openai.yaml +4 -0
  574. package/templates/.zaip-aios/templates/skills/zaip-skill-enforce-architecture/SKILL.md +14 -0
  575. package/templates/.zaip-aios/templates/skills/zaip-skill-enforce-architecture/agents/openai.yaml +4 -0
  576. package/templates/.zaip-aios/templates/skills/zaip-skill-eval/SKILL.md +14 -0
  577. package/templates/.zaip-aios/templates/skills/zaip-skill-eval/agents/openai.yaml +4 -0
  578. package/templates/.zaip-aios/templates/skills/zaip-skill-execution/SKILL.md +36 -0
  579. package/templates/.zaip-aios/templates/skills/zaip-skill-execution/agents/openai.yaml +6 -0
  580. package/templates/.zaip-aios/templates/skills/zaip-skill-execution/references/prepared-plan.md +31 -0
  581. package/templates/.zaip-aios/templates/skills/zaip-skill-frontend-launcher/SKILL.md +29 -0
  582. package/templates/.zaip-aios/templates/skills/zaip-skill-frontend-launcher/agents/openai.yaml +4 -0
  583. package/templates/.zaip-aios/templates/skills/zaip-skill-frontend-launcher/references/launcher-contract.md +36 -0
  584. package/templates/.zaip-aios/templates/skills/zaip-skill-github-deploy/SKILL.md +75 -0
  585. package/templates/.zaip-aios/templates/skills/zaip-skill-github-deploy/agents/openai.yaml +6 -0
  586. package/templates/.zaip-aios/templates/skills/zaip-skill-github-deploy/scripts/preflight.mjs +256 -0
  587. package/templates/.zaip-aios/templates/skills/zaip-skill-github-setup/SKILL.md +80 -0
  588. package/templates/.zaip-aios/templates/skills/zaip-skill-github-setup/agents/openai.yaml +4 -0
  589. package/templates/.zaip-aios/templates/skills/zaip-skill-move-prd/SKILL.md +37 -0
  590. package/templates/.zaip-aios/templates/skills/zaip-skill-move-prd/agents/openai.yaml +4 -0
  591. package/templates/.zaip-aios/templates/skills/zaip-skill-move-spec/SKILL.md +38 -0
  592. package/templates/.zaip-aios/templates/skills/zaip-skill-move-spec/agents/openai.yaml +4 -0
  593. package/templates/.zaip-aios/templates/skills/zaip-skill-navigate-work/SKILL.md +16 -0
  594. package/templates/.zaip-aios/templates/skills/zaip-skill-navigate-work/agents/openai.yaml +4 -0
  595. package/templates/.zaip-aios/templates/skills/zaip-skill-observability/SKILL.md +24 -0
  596. package/templates/.zaip-aios/templates/skills/zaip-skill-observability/agents/openai.yaml +4 -0
  597. package/templates/.zaip-aios/templates/skills/zaip-skill-openai-docs/SKILL.md +17 -0
  598. package/templates/.zaip-aios/templates/skills/zaip-skill-openai-docs/agents/openai.yaml +4 -0
  599. package/templates/.zaip-aios/templates/skills/zaip-skill-openai-docs/references/routing.md +11 -0
  600. package/templates/.zaip-aios/templates/skills/zaip-skill-prd/SKILL.md +44 -0
  601. package/templates/.zaip-aios/templates/skills/zaip-skill-prd/agents/openai.yaml +4 -0
  602. package/templates/.zaip-aios/templates/skills/zaip-skill-preview/SKILL.md +16 -0
  603. package/templates/.zaip-aios/templates/skills/zaip-skill-preview/agents/openai.yaml +4 -0
  604. package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/SKILL.md +39 -0
  605. package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/agents/openai.yaml +4 -0
  606. package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/inspect-local-sqlite.py +52 -0
  607. package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/normalize-run-agents.mjs +63 -0
  608. package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-local-telemetry.mjs +698 -0
  609. package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.mjs +361 -0
  610. package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.test.mjs +187 -0
  611. package/templates/.zaip-aios/templates/skills/zaip-skill-requirements/SKILL.md +16 -0
  612. package/templates/.zaip-aios/templates/skills/zaip-skill-requirements/agents/openai.yaml +4 -0
  613. package/templates/.zaip-aios/templates/skills/zaip-skill-review/SKILL.md +18 -0
  614. package/templates/.zaip-aios/templates/skills/zaip-skill-review/agents/openai.yaml +4 -0
  615. package/templates/.zaip-aios/templates/skills/zaip-skill-rules/SKILL.md +19 -0
  616. package/templates/.zaip-aios/templates/skills/zaip-skill-rules/agents/openai.yaml +4 -0
  617. package/templates/.zaip-aios/templates/skills/zaip-skill-security/SKILL.md +30 -0
  618. package/templates/.zaip-aios/templates/skills/zaip-skill-security/agents/openai.yaml +4 -0
  619. package/templates/.zaip-aios/templates/skills/zaip-skill-setup/SKILL.md +25 -0
  620. package/templates/.zaip-aios/templates/skills/zaip-skill-setup/agents/openai.yaml +4 -0
  621. package/templates/.zaip-aios/templates/skills/zaip-skill-spec/SKILL.md +45 -0
  622. package/templates/.zaip-aios/templates/skills/zaip-skill-spec/agents/openai.yaml +4 -0
  623. package/templates/.zaip-aios/templates/skills/zaip-skill-task/SKILL.md +41 -0
  624. package/templates/.zaip-aios/templates/skills/zaip-skill-task/agents/openai.yaml +4 -0
  625. package/templates/.zaip-aios/templates/skills/zaip-skill-text-encoding/SKILL.md +27 -0
  626. package/templates/.zaip-aios/templates/skills/zaip-skill-text-encoding/agents/openai.yaml +6 -0
  627. package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/SKILL.md +22 -0
  628. package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/agents/openai.yaml +4 -0
  629. package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/references/codex-config.md +24 -0
  630. package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/references/secrets.md +8 -0
  631. package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/scripts/configure-local-mcp.mjs +52 -0
  632. package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/scripts/inspect-tool.mjs +35 -0
  633. package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/scripts/tool-state.mjs +26 -0
  634. package/templates/.zaip-aios/templates/tools/README.md +9 -0
  635. package/templates/.zaip-aios/templates/tools/api/asaas/README.md +22 -0
  636. package/templates/.zaip-aios/templates/tools/api/asaas/manifest.yaml +20 -0
  637. package/templates/.zaip-aios/templates/tools/api/github/README.md +22 -0
  638. package/templates/.zaip-aios/templates/tools/api/github/manifest.yaml +20 -0
  639. package/templates/.zaip-aios/templates/tools/api/google-ads/README.md +23 -0
  640. package/templates/.zaip-aios/templates/tools/api/google-ads/manifest.yaml +21 -0
  641. package/templates/.zaip-aios/templates/tools/api/google-analytics/README.md +22 -0
  642. package/templates/.zaip-aios/templates/tools/api/google-analytics/manifest.yaml +20 -0
  643. package/templates/.zaip-aios/templates/tools/api/google-search-console/README.md +21 -0
  644. package/templates/.zaip-aios/templates/tools/api/google-search-console/manifest.yaml +19 -0
  645. package/templates/.zaip-aios/templates/tools/api/google-tag-manager/README.md +22 -0
  646. package/templates/.zaip-aios/templates/tools/api/google-tag-manager/manifest.yaml +20 -0
  647. package/templates/.zaip-aios/templates/tools/api/hubspot/README.md +22 -0
  648. package/templates/.zaip-aios/templates/tools/api/hubspot/manifest.yaml +20 -0
  649. package/templates/.zaip-aios/templates/tools/api/instagram-graph/README.md +23 -0
  650. package/templates/.zaip-aios/templates/tools/api/instagram-graph/manifest.yaml +21 -0
  651. package/templates/.zaip-aios/templates/tools/api/kommo-crm/README.md +23 -0
  652. package/templates/.zaip-aios/templates/tools/api/kommo-crm/manifest.yaml +21 -0
  653. package/templates/.zaip-aios/templates/tools/api/linkedin-ads/README.md +23 -0
  654. package/templates/.zaip-aios/templates/tools/api/linkedin-ads/manifest.yaml +21 -0
  655. package/templates/.zaip-aios/templates/tools/api/meta-ads/README.md +23 -0
  656. package/templates/.zaip-aios/templates/tools/api/meta-ads/manifest.yaml +21 -0
  657. package/templates/.zaip-aios/templates/tools/api/openai/README.md +22 -0
  658. package/templates/.zaip-aios/templates/tools/api/openai/manifest.yaml +20 -0
  659. package/templates/.zaip-aios/templates/tools/api/shopify/README.md +23 -0
  660. package/templates/.zaip-aios/templates/tools/api/shopify/manifest.yaml +21 -0
  661. package/templates/.zaip-aios/templates/tools/api/slack/README.md +22 -0
  662. package/templates/.zaip-aios/templates/tools/api/slack/manifest.yaml +20 -0
  663. package/templates/.zaip-aios/templates/tools/api/stripe/README.md +22 -0
  664. package/templates/.zaip-aios/templates/tools/api/stripe/manifest.yaml +20 -0
  665. package/templates/.zaip-aios/templates/tools/api/tiktok-ads/README.md +23 -0
  666. package/templates/.zaip-aios/templates/tools/api/tiktok-ads/manifest.yaml +21 -0
  667. package/templates/.zaip-aios/templates/tools/api/youtube-analytics/README.md +22 -0
  668. package/templates/.zaip-aios/templates/tools/api/youtube-analytics/manifest.yaml +20 -0
  669. package/templates/.zaip-aios/templates/tools/catalog.yaml +358 -0
  670. package/templates/.zaip-aios/templates/tools/mcp/development/browser/README.md +20 -0
  671. package/templates/.zaip-aios/templates/tools/mcp/development/browser/manifest.yaml +24 -0
  672. package/templates/.zaip-aios/templates/tools/mcp/development/filesystem/README.md +20 -0
  673. package/templates/.zaip-aios/templates/tools/mcp/development/filesystem/manifest.yaml +24 -0
  674. package/templates/.zaip-aios/templates/tools/mcp/development/git/README.md +20 -0
  675. package/templates/.zaip-aios/templates/tools/mcp/development/git/manifest.yaml +24 -0
  676. package/templates/.zaip-aios/templates/tools/mcp/development/github/README.md +20 -0
  677. package/templates/.zaip-aios/templates/tools/mcp/development/github/manifest.yaml +25 -0
  678. package/templates/.zaip-aios/templates/tools/mcp/development/gitlab/README.md +20 -0
  679. package/templates/.zaip-aios/templates/tools/mcp/development/gitlab/manifest.yaml +25 -0
  680. package/templates/.zaip-aios/templates/tools/mcp/development/jira/README.md +21 -0
  681. package/templates/.zaip-aios/templates/tools/mcp/development/jira/manifest.yaml +26 -0
  682. package/templates/.zaip-aios/templates/tools/mcp/development/linear/README.md +20 -0
  683. package/templates/.zaip-aios/templates/tools/mcp/development/linear/manifest.yaml +25 -0
  684. package/templates/.zaip-aios/templates/tools/mcp/development/notion/README.md +20 -0
  685. package/templates/.zaip-aios/templates/tools/mcp/development/notion/manifest.yaml +25 -0
  686. package/templates/.zaip-aios/templates/tools/mcp/development/openai-docs/README.md +15 -0
  687. package/templates/.zaip-aios/templates/tools/mcp/development/openai-docs/manifest.yaml +21 -0
  688. package/templates/.zaip-aios/templates/tools/mcp/development/postgresql/README.md +20 -0
  689. package/templates/.zaip-aios/templates/tools/mcp/development/postgresql/manifest.yaml +25 -0
  690. package/templates/.zaip-aios/templates/tools/mcp/development/slack/README.md +20 -0
  691. package/templates/.zaip-aios/templates/tools/mcp/development/slack/manifest.yaml +25 -0
  692. package/templates/.zaip-aios/templates/tools/mcp/development/sqlite/README.md +20 -0
  693. package/templates/.zaip-aios/templates/tools/mcp/development/sqlite/manifest.yaml +25 -0
  694. package/templates/.zaip-aios/templates/tools/mcp/infra/aws/README.md +21 -0
  695. package/templates/.zaip-aios/templates/tools/mcp/infra/aws/manifest.yaml +26 -0
  696. package/templates/.zaip-aios/templates/tools/mcp/infra/azure/README.md +20 -0
  697. package/templates/.zaip-aios/templates/tools/mcp/infra/azure/manifest.yaml +25 -0
  698. package/templates/.zaip-aios/templates/tools/mcp/infra/cloudflare/README.md +21 -0
  699. package/templates/.zaip-aios/templates/tools/mcp/infra/cloudflare/manifest.yaml +26 -0
  700. package/templates/.zaip-aios/templates/tools/mcp/infra/docker/README.md +20 -0
  701. package/templates/.zaip-aios/templates/tools/mcp/infra/docker/manifest.yaml +24 -0
  702. package/templates/.zaip-aios/templates/tools/mcp/infra/gcp/README.md +21 -0
  703. package/templates/.zaip-aios/templates/tools/mcp/infra/gcp/manifest.yaml +26 -0
  704. package/templates/.zaip-aios/templates/tools/mcp/infra/hostinger/README.md +20 -0
  705. package/templates/.zaip-aios/templates/tools/mcp/infra/hostinger/manifest.yaml +25 -0
  706. package/templates/.zaip-aios/templates/tools/mcp/infra/kubernetes/README.md +20 -0
  707. package/templates/.zaip-aios/templates/tools/mcp/infra/kubernetes/manifest.yaml +25 -0
  708. package/templates/.zaip-aios/templates/tools/mcp/infra/terraform/README.md +20 -0
  709. package/templates/.zaip-aios/templates/tools/mcp/infra/terraform/manifest.yaml +24 -0
  710. package/templates/.zaip-aios/templates/tools/mcp/marketing/google-ads/README.md +21 -0
  711. package/templates/.zaip-aios/templates/tools/mcp/marketing/google-ads/manifest.yaml +26 -0
  712. package/templates/.zaip-aios/templates/tools/mcp/marketing/google-analytics/README.md +20 -0
  713. package/templates/.zaip-aios/templates/tools/mcp/marketing/google-analytics/manifest.yaml +25 -0
  714. package/templates/.zaip-aios/templates/tools/mcp/marketing/google-search-console/README.md +19 -0
  715. package/templates/.zaip-aios/templates/tools/mcp/marketing/google-search-console/manifest.yaml +24 -0
  716. package/templates/.zaip-aios/templates/tools/mcp/marketing/google-tag-manager/README.md +21 -0
  717. package/templates/.zaip-aios/templates/tools/mcp/marketing/google-tag-manager/manifest.yaml +26 -0
  718. package/templates/.zaip-aios/templates/tools/mcp/marketing/hubspot/README.md +20 -0
  719. package/templates/.zaip-aios/templates/tools/mcp/marketing/hubspot/manifest.yaml +25 -0
  720. package/templates/.zaip-aios/templates/tools/mcp/marketing/instagram-insights/README.md +21 -0
  721. package/templates/.zaip-aios/templates/tools/mcp/marketing/instagram-insights/manifest.yaml +26 -0
  722. package/templates/.zaip-aios/templates/tools/mcp/marketing/linkedin-ads/README.md +21 -0
  723. package/templates/.zaip-aios/templates/tools/mcp/marketing/linkedin-ads/manifest.yaml +26 -0
  724. package/templates/.zaip-aios/templates/tools/mcp/marketing/mailchimp/README.md +21 -0
  725. package/templates/.zaip-aios/templates/tools/mcp/marketing/mailchimp/manifest.yaml +26 -0
  726. package/templates/.zaip-aios/templates/tools/mcp/marketing/meta-ads/README.md +21 -0
  727. package/templates/.zaip-aios/templates/tools/mcp/marketing/meta-ads/manifest.yaml +26 -0
  728. package/templates/.zaip-aios/templates/tools/mcp/marketing/semrush/README.md +20 -0
  729. package/templates/.zaip-aios/templates/tools/mcp/marketing/semrush/manifest.yaml +25 -0
  730. package/templates/.zaip-aios/templates/tools/mcp/marketing/tiktok-ads/README.md +21 -0
  731. package/templates/.zaip-aios/templates/tools/mcp/marketing/tiktok-ads/manifest.yaml +26 -0
  732. package/templates/.zaip-aios/templates/tools/mcp/marketing/youtube-analytics/README.md +21 -0
  733. package/templates/.zaip-aios/templates/tools/mcp/marketing/youtube-analytics/manifest.yaml +26 -0
  734. package/templates/.zaip-aios/templates/tools/mcp/observability/cloudwatch/README.md +21 -0
  735. package/templates/.zaip-aios/templates/tools/mcp/observability/cloudwatch/manifest.yaml +26 -0
  736. package/templates/.zaip-aios/templates/tools/mcp/observability/datadog/README.md +21 -0
  737. package/templates/.zaip-aios/templates/tools/mcp/observability/datadog/manifest.yaml +26 -0
  738. package/templates/.zaip-aios/templates/tools/mcp/observability/elasticsearch/README.md +21 -0
  739. package/templates/.zaip-aios/templates/tools/mcp/observability/elasticsearch/manifest.yaml +26 -0
  740. package/templates/.zaip-aios/templates/tools/mcp/observability/grafana/README.md +21 -0
  741. package/templates/.zaip-aios/templates/tools/mcp/observability/grafana/manifest.yaml +26 -0
  742. package/templates/.zaip-aios/templates/tools/mcp/observability/kibana/README.md +21 -0
  743. package/templates/.zaip-aios/templates/tools/mcp/observability/kibana/manifest.yaml +26 -0
  744. package/templates/.zaip-aios/templates/tools/mcp/observability/loki/README.md +19 -0
  745. package/templates/.zaip-aios/templates/tools/mcp/observability/loki/manifest.yaml +24 -0
  746. package/templates/.zaip-aios/templates/tools/mcp/observability/new-relic/README.md +21 -0
  747. package/templates/.zaip-aios/templates/tools/mcp/observability/new-relic/manifest.yaml +26 -0
  748. package/templates/.zaip-aios/templates/tools/mcp/observability/opentelemetry/README.md +20 -0
  749. package/templates/.zaip-aios/templates/tools/mcp/observability/opentelemetry/manifest.yaml +25 -0
  750. package/templates/.zaip-aios/templates/tools/mcp/observability/prometheus/README.md +19 -0
  751. package/templates/.zaip-aios/templates/tools/mcp/observability/prometheus/manifest.yaml +24 -0
  752. package/templates/.zaip-aios/templates/tools/mcp/observability/sentry/README.md +21 -0
  753. package/templates/.zaip-aios/templates/tools/mcp/observability/sentry/manifest.yaml +26 -0
  754. package/templates/.zaip-aios/templates/tools/policies/approval-rules.yaml +8 -0
  755. package/templates/.zaip-aios/templates/tools/policies/financial-limits.yaml +6 -0
  756. package/templates/.zaip-aios/templates/tools/policies/permissions.yaml +8 -0
  757. package/templates/.zaip-aios/templates/tools/policies/secret-handling.md +7 -0
  758. package/templates/.zaip-aios/templates/tools/profiles/business.yaml +8 -0
  759. package/templates/.zaip-aios/templates/tools/profiles/default.yaml +8 -0
  760. package/templates/.zaip-aios/templates/tools/profiles/development.yaml +13 -0
  761. package/templates/.zaip-aios/templates/tools/profiles/infrastructure.yaml +8 -0
  762. package/templates/.zaip-aios/templates/tools/profiles/marketing.yaml +9 -0
  763. package/templates/.zaip-aios/templates/tools/profiles/observability.yaml +8 -0
  764. package/templates/.zaip-aios/templates/tools/runtime/README.md +3 -0
  765. package/templates/.zaip-aios/templates/tools/runtime/api-mcp-runtime.mjs +217 -0
  766. package/templates/.zaip-aios/templates/tools/runtime/api-mcp-runtime.test.mjs +56 -0
  767. package/templates/.zaip-aios/templates/tools/runtime/fixtures/definition.json +17 -0
  768. package/templates/.zaip-aios/templates/tools/runtime/runner.mjs +16 -0
  769. package/templates/.zaip-aios/templates/tools/runtime/stdio.test.mjs +32 -0
  770. package/templates/.zaip-aios/templates/tools/state.example.yaml +8 -0
  771. package/templates/.zaip-aios/templates/zaip-aios/INDEX.md +26 -0
  772. package/templates/.zaip-aios/templates/zaip-aios/README.md +13 -0
  773. package/templates/.zaip-aios/templates/zaip-aios/VERSION +1 -0
  774. package/templates/.zaip-aios/templates/zaip-aios/guides/01-primeiros-passos.md +10 -0
  775. package/templates/.zaip-aios/templates/zaip-aios/guides/02-requirements.md +12 -0
  776. package/templates/.zaip-aios/templates/zaip-aios/guides/03-tasks.md +12 -0
  777. package/templates/.zaip-aios/templates/zaip-aios/guides/04-specs.md +16 -0
  778. package/templates/.zaip-aios/templates/zaip-aios/guides/05-prds.md +13 -0
  779. package/templates/.zaip-aios/templates/zaip-aios/guides/06-execucao.md +13 -0
  780. package/templates/.zaip-aios/templates/zaip-aios/guides/07-revisao-e-validacao.md +8 -0
  781. package/templates/.zaip-aios/templates/zaip-aios/guides/08-contexto-e-tokens.md +10 -0
  782. package/templates/.zaip-aios/templates/zaip-aios/guides/09-agentes-e-squads.md +8 -0
  783. package/templates/.zaip-aios/templates/zaip-aios/guides/10-seguranca.md +206 -0
  784. package/templates/.zaip-aios/templates/zaip-aios/guides/11-observabilidade-e-custos.md +10 -0
  785. package/templates/.zaip-aios/templates/zaip-aios/guides/12-instalacao-e-upgrade.md +10 -0
  786. package/templates/.zaip-aios/templates/zaip-aios/guides/13-boas-praticas.md +12 -0
  787. package/templates/.zaip-aios/templates/zaip-aios/guides/14-troubleshooting.md +12 -0
  788. package/templates/.zaip-aios/templates/zaip-aios/guides/15-tools-e-codex.md +25 -0
  789. package/templates/.zaip-aios/templates/zaip-aios/guides/16-lifecycle-e-reconciliacao.md +47 -0
  790. package/templates/template-manifest.json +3210 -69
  791. package/templates/.agents/rules/architecture.md +0 -21
  792. package/templates/.agents/rules/context.md +0 -18
  793. package/templates/.agents/rules/core.md +0 -16
  794. package/templates/.agents/rules/workflow.md +0 -21
  795. /package/templates/.agents/rules/{security.md → zaip/security.md} +0 -0
package/README.md CHANGED
@@ -25,6 +25,9 @@ Git worktrees, and paths containing spaces are supported using Node.js filesyste
25
25
 
26
26
  ```text
27
27
  zaip init [directory] [--yes] [--force] [--dry-run] [--verbose]
28
+ zaip doctor [directory] [--json]
29
+ zaip adapters build [directory] [--force]
30
+ zaip adapters check [directory] [--json]
28
31
  zaip --version
29
32
  zaip --help
30
33
  ```
@@ -34,8 +37,9 @@ zaip --help
34
37
  - `--dry-run` prints the complete plan without writing files or backups.
35
38
  - `--verbose` lists technical paths and detected conflicts.
36
39
 
37
- By default, rerunning the command adds missing files, preserves every existing file, and reports
38
- files whose content differs from the current official template. No existing file is overwritten.
40
+ By default, rerunning the command is transactional: any user-owned conflict blocks all writes.
41
+ Missing files are installed only when the complete plan is conflict-free. Managed agent adapters
42
+ may be refreshed safely; user-owned adapters are never overwritten without explicit `--force`.
39
43
 
40
44
  ## Updating
41
45
 
@@ -45,12 +49,15 @@ Run the latest version again. New files are added while local changes remain unt
45
49
  npx @zaip-ai/cli@latest init
46
50
  ```
47
51
 
48
- Use `--force --yes` only when you want a clean reinstall. A timestamped backup such as
49
- `.agents.backup-2026-07-12T153000` is created first.
52
+ Use `--force --yes` only after reviewing the dry-run. A timestamped backup such as
53
+ `.agents.backup-2026-07-12T153000` is created first. Lifecycle data and unrecognized files are
54
+ preserved; the operation replaces only files in the signed template plan and can roll back a
55
+ partial process failure.
50
56
 
51
57
  ## Security
52
58
 
53
- The npm artifact contains only the installer, the public template, documentation, and license.
59
+ The npm artifact contains only the installer, doctor and adapter checks, the public template,
60
+ documentation, and license.
54
61
  Template hashes are checked before installation. Unsafe paths and symlink traversal are rejected.
55
62
  The template excludes project history, telemetry, customer data, credentials, environment files,
56
63
  and the internal ZAIP-AIOS runtime.
@@ -64,11 +71,12 @@ and the internal ZAIP-AIOS runtime.
64
71
 
65
72
  ## ZAIP-AIOS versus the ZAIP CLI
66
73
 
67
- ZAIP-AIOS is the repository-resident agent workflow and configuration installed under `.agents`.
68
- The ZAIP CLI is the small delivery tool that installs that public template; it does not contain the
69
- private ZAIP core or send repository data to a service.
74
+ ZAIP-AIOS is the repository-resident agent workflow and configuration installed under `.agents`,
75
+ with minimal Codex and Claude discovery adapters. The ZAIP CLI installs and diagnoses that public
76
+ template; it does not contain the private runtime or send repository data to a service. Public
77
+ skills never claim runtime validators that are not distributed.
70
78
 
71
79
  ## Contributing and license
72
80
 
73
- Run `corepack pnpm verify` from `public-cli` before submitting a change. Version `0.1.0` is
81
+ Run `corepack pnpm verify` from `public-cli` before submitting a change. Version `1.0.1` is
74
82
  `UNLICENSED`; publication does not grant an open-source license.
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAe,UAAU,EAAE,MAAM,aAAa,CAAC;AAEvE,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,WAAW,CAC/B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,UAAU,CAAC,CAuBrB"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAe,UAAU,EAAE,MAAM,aAAa,CAAC;AAEvE,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,WAAW,CAC/B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,UAAU,CAAC,CA8BrB"}
@@ -10,6 +10,8 @@ export async function executeInit(directory, command, version, runtime = {}) {
10
10
  force: command.force ?? false,
11
11
  dryRun: command.dryRun ?? false,
12
12
  verbose: command.verbose ?? false,
13
+ cliVersion: version,
14
+ installGlobalCodexConfig: runtime.templateDirectory === undefined,
13
15
  ...(directory === undefined ? {} : { directory }),
14
16
  ...(runtime.templateDirectory === undefined
15
17
  ? {}
@@ -21,6 +23,9 @@ export async function executeInit(directory, command, version, runtime = {}) {
21
23
  }
22
24
  const result = await installAgentsTemplate(options);
23
25
  printResult(stdout, result, version, command.verbose);
26
+ if (!result.dryRun && !result.applied && result.conflicts.length > 0) {
27
+ throw new Error(`Installation blocked by ${result.conflicts.length} conflicting file(s); rerun with --dry-run --verbose or explicitly use --force --yes`);
28
+ }
24
29
  return result;
25
30
  }
26
31
  function confirmation(stdin, stdout) {
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAUpD,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,SAA6B,EAC7B,OAA2B,EAC3B,OAAe,EACf,OAAO,GAAe,EAAE;IAExB,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC;IAC7C,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;IAChD,MAAM,OAAO,GAAgB;QAC3B,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE;QACjC,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,KAAK;QACzB,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,KAAK;QAC7B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,KAAK;QAC/B,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,KAAK;QACjC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC;QACjD,GAAG,CAAC,OAAO,CAAC,iBAAiB,KAAK,SAAS;YACzC,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,EAAE,CAAC;QACrD,GAAG,CAAC,OAAO,CAAC,GA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AM,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACpD,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACtD,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrE,MAAM,IAAI,KAAK,CACb,2BAA2B,MAAM,CAAC,SAAS,CAAC,MAAM,sFAAsF,CACzI,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,YAAY,CAAC,KAAe,EAAE,MAAgB;IACrD,OAAO,KAAK,EAAE,OAAO,EAAE,EAAE;QACvB,IAAI,CAAE,KAA2B,CAAC,KAAK,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;QAC1E,CAAC;QACD,MAAM,MAAM,GAAG,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QACjE,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,SAAS,CAAC,CAAC;YAC1D,OAAO,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAC5C,CAAC;gBAAS,CAAC;YACT,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import type { CliRuntime, InitOptions, InitResult } from "./types.js";
2
- export declare const CLI_VERSION = "0.1.0";
2
+ export { doctorProject } from "./services/doctor.js";
3
3
  export { findProjectRoot } from "./services/find-project-root.js";
4
4
  export { installAgentsTemplate } from "./services/install-agents-template.js";
5
5
  export { loadTemplate } from "./services/template-manifest.js";
6
6
  export type { CliRuntime, InitOptions, InitResult } from "./types.js";
7
+ export { CLI_VERSION } from "./version.js";
7
8
  export declare function initializeZaip(options?: InitOptions): Promise<InitResult>;
8
9
  export declare function runInitCli(arguments_: readonly string[], runtime?: CliRuntime): Promise<number>;
9
10
  export declare function runCli(arguments_: readonly string[], runtime?: CliRuntime): Promise<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEtE,eAAO,MAAM,WAAW,UAAU,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEtE,wBAAsB,cAAc,CAAC,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,CAEnF;AAED,wBAAsB,UAAU,CAC9B,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED,wBAAsB,MAAM,CAC1B,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,MAAM,CAAC,CA2BjB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGtE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,wBAAsB,cAAc,CAAC,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,CAEnF;AAED,wBAAsB,UAAU,CAC9B,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED,wBAAsB,MAAM,CAC1B,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,MAAM,CAAC,CA2BjB"}
package/dist/index.js CHANGED
@@ -1,12 +1,18 @@
1
+ import { resolve } from "node:path";
1
2
  import { Command, CommanderError } from "commander";
2
3
  import { executeInit } from "./commands/init.js";
4
+ import { buildAdapters, checkAdapters } from "./services/adapters.js";
5
+ import { doctorProject } from "./services/doctor.js";
6
+ import { findProjectRoot } from "./services/find-project-root.js";
3
7
  import { installAgentsTemplate } from "./services/install-agents-template.js";
4
- export const CLI_VERSION = "0.1.0";
8
+ import { CLI_VERSION } from "./version.js";
9
+ export { doctorProject } from "./services/doctor.js";
5
10
  export { findProjectRoot } from "./services/find-project-root.js";
6
11
  export { installAgentsTemplate } from "./services/install-agents-template.js";
7
12
  export { loadTemplate } from "./services/template-manifest.js";
13
+ export { CLI_VERSION } from "./version.js";
8
14
  export async function initializeZaip(options = {}) {
9
- return installAgentsTemplate(options);
15
+ return installAgentsTemplate({ ...options, cliVersion: options.cliVersion ?? CLI_VERSION });
10
16
  }
11
17
  export async function runInitCli(arguments_, runtime = {}) {
12
18
  return runCli(["init", ...arguments_], runtime);
@@ -56,6 +62,55 @@ function createProgram(runtime) {
56
62
  .action(async (directory, options) => {
57
63
  await executeInit(directory, options, CLI_VERSION, runtime);
58
64
  });
65
+ program
66
+ .command("doctor")
67
+ .description("Valida layout, checksums e adapters do ZAIP-AIOS V2")
68
+ .argument("[directory]", "diretório inicial", ".")
69
+ .option("--json", "emite resultado estruturado")
70
+ .action(async (directory, options) => {
71
+ const result = await doctorProject(resolveRuntimePath(runtime, directory));
72
+ const stdout = runtime.stdout ?? process.stdout;
73
+ if (options.json)
74
+ stdout.write(`${JSON.stringify(result, null, 2)}\n`);
75
+ else {
76
+ stdout.write(result.valid
77
+ ? `Doctor passou sem findings: ${result.root}\n`
78
+ : `Doctor encontrou ${result.findings.length} problema(s):\n${result.findings.map((finding) => `- ${finding.path}: ${finding.message}`).join("\n")}\n`);
79
+ }
80
+ if (!result.valid)
81
+ throw new Error("ZAIP-AIOS doctor failed");
82
+ });
83
+ const adapters = program.command("adapters").description("Gera ou verifica adapters de agente");
84
+ adapters
85
+ .command("build")
86
+ .argument("[directory]", "diretório inicial", ".")
87
+ .option("--force", "substitui adapters não gerenciados após autorização explícita")
88
+ .action(async (directory, options) => {
89
+ const root = (await findProjectRoot(resolveRuntimePath(runtime, directory))).root;
90
+ const result = await buildAdapters(root, options.force ?? false);
91
+ if (!result.applied)
92
+ throw new Error(`Adapter conflicts: ${result.conflicts.join(", ")}`);
93
+ (runtime.stdout ?? process.stdout).write("Adapters ZAIP-AIOS gerados.\n");
94
+ });
95
+ adapters
96
+ .command("check")
97
+ .argument("[directory]", "diretório inicial", ".")
98
+ .option("--json", "emite resultado estruturado")
99
+ .action(async (directory, options) => {
100
+ const root = (await findProjectRoot(resolveRuntimePath(runtime, directory))).root;
101
+ const result = await checkAdapters(root);
102
+ const stdout = runtime.stdout ?? process.stdout;
103
+ stdout.write(options.json
104
+ ? `${JSON.stringify(result, null, 2)}\n`
105
+ : result.valid
106
+ ? "Adapters ZAIP-AIOS válidos.\n"
107
+ : `Adapters ausentes ou divergentes: ${result.drifted.join(", ")}\n`);
108
+ if (!result.valid)
109
+ throw new Error("ZAIP-AIOS adapter check failed");
110
+ });
59
111
  return program;
60
112
  }
113
+ function resolveRuntimePath(runtime, directory) {
114
+ return resolve(runtime.cwd ?? process.cwd(), directory);
115
+ }
61
116
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAG9E,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAG/D,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAAO,GAAgB,EAAE;IAC5D,OAAO,qBAAqB,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,UAA6B,EAC7B,OAAO,GAAe,EAAE;IAExB,OAAO,MAAM,CAAC,CAAC,MAAM,EAAE,GAAG,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,UAA6B,EAC7B,OAAO,GAAe,EAAE;IAExB,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;IAChD,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;IAChD,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO,CAAC,e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MAAM,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAmB,EAAE,SAAiB;IAChE,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,CAAC,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { type PublicAgentCatalog } from "./agent-adapters.js";
2
+ export declare const ADAPTERS_VERSION = "1.0.2";
3
+ export interface AdapterFile {
4
+ path: string;
5
+ content: string;
6
+ }
7
+ /**
8
+ * Global Codex settings must remain portable. Project adapters deliberately
9
+ * contain workspace paths, hooks and agent definitions, which only work from
10
+ * the repository where they were generated.
11
+ */
12
+ export declare const GLOBAL_CODEX_CONFIG = "# zaip-managed global Codex defaults\n# Keep model unset so Codex selects a model available to the signed-in account.\nproject_doc_fallback_filenames = [\"AGENTS.md\"]\n";
13
+ export declare function adapterFiles(workspaceRoot: string, catalog?: PublicAgentCatalog): readonly AdapterFile[];
14
+ export declare function checkAdapters(root: string): Promise<{
15
+ valid: boolean;
16
+ drifted: readonly string[];
17
+ }>;
18
+ export declare function buildAdapters(root: string, force?: boolean): Promise<{
19
+ applied: boolean;
20
+ conflicts: readonly string[];
21
+ }>;
22
+ export declare function isManagedAdapter(path: string, content: string): boolean;
23
+ //# sourceMappingURL=adapters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/services/adapters.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,kBAAkB,EAGxB,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA6BD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,8KAA4K,CAAC;AAwqB7M,wBAAgB,YAAY,CAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,SAAS,WAAW,EAAE,CA6BxB;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACzD,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B,CAAC,CAYD;AAED,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,KAAK,UAAQ,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAiB7D;AASD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAavE"}