@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.
- package/README.md +17 -9
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +5 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +57 -2
- package/dist/index.js.map +1 -1
- package/dist/services/adapters.d.ts +23 -0
- package/dist/services/adapters.d.ts.map +1 -0
- package/dist/services/adapters.js +796 -0
- package/dist/services/adapters.js.map +1 -0
- package/dist/services/adapters.test.d.ts +2 -0
- package/dist/services/adapters.test.d.ts.map +1 -0
- package/dist/services/adapters.test.js +25 -0
- package/dist/services/adapters.test.js.map +1 -0
- package/dist/services/agent-adapters.d.ts +41 -0
- package/dist/services/agent-adapters.d.ts.map +1 -0
- package/dist/services/agent-adapters.js +122 -0
- package/dist/services/agent-adapters.js.map +1 -0
- package/dist/services/agent-adapters.test.d.ts +2 -0
- package/dist/services/agent-adapters.test.d.ts.map +1 -0
- package/dist/services/agent-adapters.test.js +40 -0
- package/dist/services/agent-adapters.test.js.map +1 -0
- package/dist/services/codex-rules.d.ts +3 -0
- package/dist/services/codex-rules.d.ts.map +1 -0
- package/dist/services/codex-rules.js +114 -0
- package/dist/services/codex-rules.js.map +1 -0
- package/dist/services/doctor.d.ts +12 -0
- package/dist/services/doctor.d.ts.map +1 -0
- package/dist/services/doctor.js +207 -0
- package/dist/services/doctor.js.map +1 -0
- package/dist/services/global-codex-config.d.ts +15 -0
- package/dist/services/global-codex-config.d.ts.map +1 -0
- package/dist/services/global-codex-config.js +48 -0
- package/dist/services/global-codex-config.js.map +1 -0
- package/dist/services/global-codex-config.test.d.ts +2 -0
- package/dist/services/global-codex-config.test.d.ts.map +1 -0
- package/dist/services/global-codex-config.test.js +102 -0
- package/dist/services/global-codex-config.test.js.map +1 -0
- package/dist/services/install-agents-template.d.ts.map +1 -1
- package/dist/services/install-agents-template.js +174 -79
- package/dist/services/install-agents-template.js.map +1 -1
- package/dist/services/logger.d.ts.map +1 -1
- package/dist/services/logger.js +13 -3
- package/dist/services/logger.js.map +1 -1
- package/dist/services/logger.test.d.ts +2 -0
- package/dist/services/logger.test.d.ts.map +1 -0
- package/dist/services/logger.test.js +32 -0
- package/dist/services/logger.test.js.map +1 -0
- package/dist/services/runtime-template.test.d.ts +2 -0
- package/dist/services/runtime-template.test.d.ts.map +1 -0
- package/dist/services/runtime-template.test.js +199 -0
- package/dist/services/runtime-template.test.js.map +1 -0
- package/dist/services/template-manifest.d.ts +6 -2
- package/dist/services/template-manifest.d.ts.map +1 -1
- package/dist/services/template-manifest.js +93 -10
- package/dist/services/template-manifest.js.map +1 -1
- package/dist/services/transactional-files.d.ts +11 -0
- package/dist/services/transactional-files.d.ts.map +1 -0
- package/dist/services/transactional-files.js +114 -0
- package/dist/services/transactional-files.js.map +1 -0
- package/dist/types.d.ts +13 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/package.json +4 -2
- package/templates/.agents/config/agents/catalog.yaml +246 -0
- package/templates/.agents/config/framework.lock.yaml +1 -1
- package/templates/.agents/config/project.yaml +8 -0
- package/templates/.agents/config/src/icon_zaip.png +0 -0
- package/templates/.agents/dashboard/.zaip-managed.json +46 -0
- package/templates/.agents/dashboard/README.md +91 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/index-BOLwg8VW.js +1009 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/index-_yxs47Hd.css +1 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/logo_novo_azul-BBx5pA2B.png +0 -0
- package/templates/.agents/dashboard/apps/frontend/dist/icon_zaip.png +0 -0
- package/templates/.agents/dashboard/apps/frontend/dist/index.html +15 -0
- package/templates/.agents/dashboard/apps/frontend/dist/logo_novo_azul.png +0 -0
- package/templates/.agents/dashboard/packages/local-runtime/server.mjs +179 -0
- package/templates/.agents/dashboard/packages/local-runtime/start-dashboard.mjs +726 -0
- package/templates/.agents/dashboard/zaip-dashboard.exe +0 -0
- package/templates/.agents/design/DESIGN.md +180 -0
- package/templates/.agents/design/README.md +47 -0
- package/templates/.agents/design/apps/catalog/.storybook/main.ts +15 -0
- package/templates/.agents/design/apps/catalog/.storybook/preview.ts +21 -0
- package/templates/.agents/design/apps/catalog/dist/assets/index-B4pfFtvJ.css +1 -0
- package/templates/.agents/design/apps/catalog/dist/assets/index-Bvwc3Bgw.js +9 -0
- package/templates/.agents/design/apps/catalog/dist/index.html +14 -0
- package/templates/.agents/design/apps/catalog/dist/logo_novo_azul.png +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/Color-6AOWCN3U-D8qyAXo4.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/Components.stories-DkBtOSHX.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/DesignSystem.stories-BttERyCr.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/DocsRenderer-JROSPFPF-LmiVo77Q.js +46 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/Primitives-HZpQ6PjX.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/WithTooltip-7X4HQR7L-CTMWAwDe.js +9 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/axe-Bk3eEgJf.js +20 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/chunk-242VQQM5-DB2JSNUA.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/chunk-DRQKCCAG-DUhJxxRU.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/chunk-QQBDHPVZ-nYh9QWsm.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/chunk-W22LQPXL-9RCn9-l7.js +18 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/components-BX1OfYUi.js +243 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-Bu6KfEwW.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/iframe-B4pfFtvJ.css +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/iframe-LMhZM1ce.js +1154 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/jsx-runtime-f3rHp9ZU.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/matchers-JIUQ3HVY-9iRExWZO.js +28 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/preload-helper-BdFrVu1K.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-18-jAz3avmR.js +9 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-DvDPBd6Q.js +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/syntaxhighlighter-YFXUGROL-DV8X2acD.js +6 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/assets/theming-CHbHkcNi.js +39 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/favicon-wrapper.svg +46 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/favicon.svg +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/iframe.html +710 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/index.html +152 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/index.json +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/logo_novo_azul.png +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/nunito-sans-bold-italic.woff2 +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/nunito-sans-bold.woff2 +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/nunito-sans-italic.woff2 +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/nunito-sans-regular.woff2 +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/a11y-2/manager-bundle.js +57 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/docs-1/manager-bundle.js +18 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +632 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/favicon.svg +1 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-manager/globals-runtime.js +78957 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-manager/globals.js +24 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-manager/manager-stores.js +23 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/sb-manager/runtime.js +28253 -0
- package/templates/.agents/design/apps/catalog/dist/storybook/vite-inject-mocker-entry.js +2 -0
- package/templates/.agents/design/apps/catalog/index.html +13 -0
- package/templates/.agents/design/apps/catalog/package.json +32 -0
- package/templates/.agents/design/apps/catalog/public/logo_novo_azul.png +0 -0
- package/templates/.agents/design/apps/catalog/src/App.tsx +29 -0
- package/templates/.agents/design/apps/catalog/src/components/CatalogShell.tsx +78 -0
- package/templates/.agents/design/apps/catalog/src/components/Primitives.tsx +137 -0
- package/templates/.agents/design/apps/catalog/src/design-contract.test.ts +33 -0
- package/templates/.agents/design/apps/catalog/src/main.tsx +13 -0
- package/templates/.agents/design/apps/catalog/src/pages/ComponentsPage.tsx +83 -0
- package/templates/.agents/design/apps/catalog/src/pages/DesignSystemPage.tsx +185 -0
- package/templates/.agents/design/apps/catalog/src/stories/Components.stories.tsx +12 -0
- package/templates/.agents/design/apps/catalog/src/stories/DesignSystem.stories.tsx +12 -0
- package/templates/.agents/design/apps/catalog/src/styles/catalog.css +315 -0
- package/templates/.agents/design/apps/catalog/src/styles/components.css +228 -0
- package/templates/.agents/design/apps/catalog/src/styles/design-system.css +137 -0
- package/templates/.agents/design/apps/catalog/src/styles.css +85 -0
- package/templates/.agents/design/apps/catalog/tsconfig.json +16 -0
- package/templates/.agents/design/apps/catalog/vite.config.ts +10 -0
- package/templates/.agents/design/apps/catalog/vitest.config.ts +5 -0
- package/templates/.agents/design/packages/local-runtime/package.json +9 -0
- package/templates/.agents/design/packages/local-runtime/runtime.mjs +238 -0
- package/templates/.agents/design/packages/local-runtime/runtime.test.mjs +66 -0
- package/templates/.agents/design/packages/local-runtime/start-design.mjs +46 -0
- package/templates/.agents/design/packages/windows-launcher/Program.cs +110 -0
- package/templates/.agents/design/packages/windows-launcher/build-design-launcher.ps1 +107 -0
- package/templates/.agents/design/tokens.json +52 -0
- package/templates/.agents/design/zaip-design.exe +0 -0
- package/templates/.agents/requirements/autonomous-assurance.md +63 -0
- package/templates/.agents/requirements/context-engine.md +27 -3
- package/templates/.agents/requirements/cost-observability.md +22 -3
- package/templates/.agents/requirements/design-system.md +48 -0
- package/templates/.agents/requirements/execution-engine.md +33 -8
- package/templates/.agents/requirements/kanban-dashboard.md +13 -4
- package/templates/.agents/requirements/model-orchestration.md +58 -0
- package/templates/.agents/requirements/public-distribution.md +40 -0
- package/templates/.agents/requirements/software-architecture.md +57 -0
- package/templates/.agents/requirements/work-lifecycle.md +61 -6
- package/templates/.agents/rules/project/.gitkeep +0 -0
- package/templates/.agents/rules/zaip/architecture.md +28 -0
- package/templates/.agents/rules/zaip/context.md +22 -0
- package/templates/.agents/rules/zaip/core.md +24 -0
- package/templates/.agents/rules/zaip/evolution.md +22 -0
- package/templates/.agents/rules/zaip/model-orchestration.md +48 -0
- package/templates/.agents/rules/zaip/workflow.md +35 -0
- package/templates/.agents/skills/zaip-skill-adapt-stack/SKILL.md +1 -1
- package/templates/.agents/skills/zaip-skill-adapt-stack/agents/openai.yaml +3 -3
- package/templates/.agents/skills/zaip-skill-adapters/SKILL.md +9 -6
- package/templates/.agents/skills/zaip-skill-adapters/agents/openai.yaml +2 -2
- package/templates/.agents/skills/zaip-skill-api-to-mcp/SKILL.md +19 -0
- package/templates/.agents/skills/zaip-skill-api-to-mcp/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-api-to-mcp/assets/adapter.example.yaml +26 -0
- package/templates/.agents/skills/zaip-skill-api-to-mcp/references/security-contract.md +10 -0
- package/templates/.agents/skills/zaip-skill-api-to-mcp/references/server-layout.md +19 -0
- package/templates/.agents/skills/zaip-skill-api-to-mcp/scripts/inspect-openapi.mjs +60 -0
- package/templates/.agents/skills/zaip-skill-api-to-mcp/scripts/scaffold-local-mcp.mjs +47 -0
- package/templates/.agents/skills/zaip-skill-author-skills/SKILL.md +21 -0
- package/templates/.agents/skills/zaip-skill-author-skills/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-change/SKILL.md +20 -0
- package/templates/.agents/skills/zaip-skill-change/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-config/SKILL.md +22 -0
- package/templates/.agents/skills/zaip-skill-config/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-context/SKILL.md +10 -6
- package/templates/.agents/skills/zaip-skill-context/agents/openai.yaml +2 -2
- package/templates/.agents/skills/zaip-skill-cqrs/SKILL.md +2 -2
- package/templates/.agents/skills/zaip-skill-cqrs/agents/openai.yaml +3 -3
- package/templates/.agents/skills/zaip-skill-decisions/SKILL.md +7 -5
- package/templates/.agents/skills/zaip-skill-decisions/agents/openai.yaml +2 -2
- package/templates/.agents/skills/zaip-skill-enforce-architecture/SKILL.md +8 -5
- package/templates/.agents/skills/zaip-skill-enforce-architecture/agents/openai.yaml +3 -3
- package/templates/.agents/skills/zaip-skill-eval/SKILL.md +7 -5
- package/templates/.agents/skills/zaip-skill-eval/agents/openai.yaml +3 -3
- package/templates/.agents/skills/zaip-skill-execution/SKILL.md +36 -0
- package/templates/.agents/skills/zaip-skill-execution/agents/openai.yaml +6 -0
- package/templates/.agents/skills/zaip-skill-execution/references/prepared-plan.md +31 -0
- package/templates/.agents/skills/zaip-skill-frontend-launcher/SKILL.md +29 -0
- package/templates/.agents/skills/zaip-skill-frontend-launcher/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-frontend-launcher/references/launcher-contract.md +36 -0
- package/templates/.agents/skills/zaip-skill-github-deploy/SKILL.md +49 -58
- package/templates/.agents/skills/zaip-skill-github-deploy/agents/openai.yaml +3 -3
- package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.mjs +256 -0
- package/templates/.agents/skills/zaip-skill-github-setup/SKILL.md +1 -1
- package/templates/.agents/skills/zaip-skill-move-prd/SKILL.md +37 -0
- package/templates/.agents/skills/zaip-skill-move-prd/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-move-spec/SKILL.md +38 -0
- package/templates/.agents/skills/zaip-skill-move-spec/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-navigate-work/SKILL.md +9 -6
- package/templates/.agents/skills/zaip-skill-navigate-work/agents/openai.yaml +3 -3
- package/templates/.agents/skills/zaip-skill-observability/SKILL.md +24 -0
- package/templates/.agents/skills/zaip-skill-observability/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-openai-docs/SKILL.md +17 -0
- package/templates/.agents/skills/zaip-skill-openai-docs/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-openai-docs/references/routing.md +11 -0
- package/templates/.agents/skills/zaip-skill-prd/SKILL.md +37 -6
- package/templates/.agents/skills/zaip-skill-prd/agents/openai.yaml +2 -2
- package/templates/.agents/skills/zaip-skill-preview/SKILL.md +16 -0
- package/templates/.agents/skills/zaip-skill-preview/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/SKILL.md +39 -0
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/inspect-local-sqlite.py +52 -0
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/normalize-run-agents.mjs +63 -0
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-local-telemetry.mjs +698 -0
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.mjs +361 -0
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.test.mjs +187 -0
- package/templates/.agents/skills/zaip-skill-requirements/SKILL.md +10 -6
- package/templates/.agents/skills/zaip-skill-requirements/agents/openai.yaml +2 -2
- package/templates/.agents/skills/zaip-skill-review/SKILL.md +18 -0
- package/templates/.agents/skills/zaip-skill-review/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-rules/SKILL.md +19 -0
- package/templates/.agents/skills/zaip-skill-rules/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-security/SKILL.md +30 -0
- package/templates/.agents/skills/zaip-skill-security/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-setup/SKILL.md +19 -6
- package/templates/.agents/skills/zaip-skill-setup/agents/openai.yaml +2 -2
- package/templates/.agents/skills/zaip-skill-spec/SKILL.md +39 -6
- package/templates/.agents/skills/zaip-skill-spec/agents/openai.yaml +2 -2
- package/templates/.agents/skills/zaip-skill-task/SKILL.md +36 -8
- package/templates/.agents/skills/zaip-skill-task/agents/openai.yaml +2 -2
- package/templates/.agents/skills/zaip-skill-text-encoding/SKILL.md +3 -3
- package/templates/.agents/skills/zaip-skill-tool-setup/SKILL.md +22 -0
- package/templates/.agents/skills/zaip-skill-tool-setup/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-tool-setup/references/codex-config.md +24 -0
- package/templates/.agents/skills/zaip-skill-tool-setup/references/secrets.md +8 -0
- package/templates/.agents/skills/zaip-skill-tool-setup/scripts/configure-local-mcp.mjs +52 -0
- package/templates/.agents/skills/zaip-skill-tool-setup/scripts/inspect-tool.mjs +35 -0
- package/templates/.agents/skills/zaip-skill-tool-setup/scripts/tool-state.mjs +26 -0
- package/templates/.agents/tools/README.md +9 -0
- package/templates/.agents/tools/api/asaas/README.md +22 -0
- package/templates/.agents/tools/api/asaas/manifest.yaml +20 -0
- package/templates/.agents/tools/api/github/README.md +22 -0
- package/templates/.agents/tools/api/github/manifest.yaml +20 -0
- package/templates/.agents/tools/api/google-ads/README.md +23 -0
- package/templates/.agents/tools/api/google-ads/manifest.yaml +21 -0
- package/templates/.agents/tools/api/google-analytics/README.md +22 -0
- package/templates/.agents/tools/api/google-analytics/manifest.yaml +20 -0
- package/templates/.agents/tools/api/google-search-console/README.md +21 -0
- package/templates/.agents/tools/api/google-search-console/manifest.yaml +19 -0
- package/templates/.agents/tools/api/google-tag-manager/README.md +22 -0
- package/templates/.agents/tools/api/google-tag-manager/manifest.yaml +20 -0
- package/templates/.agents/tools/api/hubspot/README.md +22 -0
- package/templates/.agents/tools/api/hubspot/manifest.yaml +20 -0
- package/templates/.agents/tools/api/instagram-graph/README.md +23 -0
- package/templates/.agents/tools/api/instagram-graph/manifest.yaml +21 -0
- package/templates/.agents/tools/api/kommo-crm/README.md +23 -0
- package/templates/.agents/tools/api/kommo-crm/manifest.yaml +21 -0
- package/templates/.agents/tools/api/linkedin-ads/README.md +23 -0
- package/templates/.agents/tools/api/linkedin-ads/manifest.yaml +21 -0
- package/templates/.agents/tools/api/meta-ads/README.md +23 -0
- package/templates/.agents/tools/api/meta-ads/manifest.yaml +21 -0
- package/templates/.agents/tools/api/openai/README.md +22 -0
- package/templates/.agents/tools/api/openai/manifest.yaml +20 -0
- package/templates/.agents/tools/api/shopify/README.md +23 -0
- package/templates/.agents/tools/api/shopify/manifest.yaml +21 -0
- package/templates/.agents/tools/api/slack/README.md +22 -0
- package/templates/.agents/tools/api/slack/manifest.yaml +20 -0
- package/templates/.agents/tools/api/stripe/README.md +22 -0
- package/templates/.agents/tools/api/stripe/manifest.yaml +20 -0
- package/templates/.agents/tools/api/tiktok-ads/README.md +23 -0
- package/templates/.agents/tools/api/tiktok-ads/manifest.yaml +21 -0
- package/templates/.agents/tools/api/youtube-analytics/README.md +22 -0
- package/templates/.agents/tools/api/youtube-analytics/manifest.yaml +20 -0
- package/templates/.agents/tools/catalog.yaml +358 -0
- package/templates/.agents/tools/mcp/development/browser/README.md +20 -0
- package/templates/.agents/tools/mcp/development/browser/manifest.yaml +24 -0
- package/templates/.agents/tools/mcp/development/filesystem/README.md +20 -0
- package/templates/.agents/tools/mcp/development/filesystem/manifest.yaml +24 -0
- package/templates/.agents/tools/mcp/development/git/README.md +20 -0
- package/templates/.agents/tools/mcp/development/git/manifest.yaml +24 -0
- package/templates/.agents/tools/mcp/development/github/README.md +20 -0
- package/templates/.agents/tools/mcp/development/github/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/development/gitlab/README.md +20 -0
- package/templates/.agents/tools/mcp/development/gitlab/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/development/jira/README.md +21 -0
- package/templates/.agents/tools/mcp/development/jira/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/development/linear/README.md +20 -0
- package/templates/.agents/tools/mcp/development/linear/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/development/notion/README.md +20 -0
- package/templates/.agents/tools/mcp/development/notion/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/development/openai-docs/README.md +15 -0
- package/templates/.agents/tools/mcp/development/openai-docs/manifest.yaml +21 -0
- package/templates/.agents/tools/mcp/development/postgresql/README.md +20 -0
- package/templates/.agents/tools/mcp/development/postgresql/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/development/slack/README.md +20 -0
- package/templates/.agents/tools/mcp/development/slack/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/development/sqlite/README.md +20 -0
- package/templates/.agents/tools/mcp/development/sqlite/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/infra/aws/README.md +21 -0
- package/templates/.agents/tools/mcp/infra/aws/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/infra/azure/README.md +20 -0
- package/templates/.agents/tools/mcp/infra/azure/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/infra/cloudflare/README.md +21 -0
- package/templates/.agents/tools/mcp/infra/cloudflare/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/infra/docker/README.md +20 -0
- package/templates/.agents/tools/mcp/infra/docker/manifest.yaml +24 -0
- package/templates/.agents/tools/mcp/infra/gcp/README.md +21 -0
- package/templates/.agents/tools/mcp/infra/gcp/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/infra/hostinger/README.md +20 -0
- package/templates/.agents/tools/mcp/infra/hostinger/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/infra/kubernetes/README.md +20 -0
- package/templates/.agents/tools/mcp/infra/kubernetes/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/infra/terraform/README.md +20 -0
- package/templates/.agents/tools/mcp/infra/terraform/manifest.yaml +24 -0
- package/templates/.agents/tools/mcp/marketing/google-ads/README.md +21 -0
- package/templates/.agents/tools/mcp/marketing/google-ads/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/marketing/google-analytics/README.md +20 -0
- package/templates/.agents/tools/mcp/marketing/google-analytics/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/marketing/google-search-console/README.md +19 -0
- package/templates/.agents/tools/mcp/marketing/google-search-console/manifest.yaml +24 -0
- package/templates/.agents/tools/mcp/marketing/google-tag-manager/README.md +21 -0
- package/templates/.agents/tools/mcp/marketing/google-tag-manager/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/marketing/hubspot/README.md +20 -0
- package/templates/.agents/tools/mcp/marketing/hubspot/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/marketing/instagram-insights/README.md +21 -0
- package/templates/.agents/tools/mcp/marketing/instagram-insights/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/marketing/linkedin-ads/README.md +21 -0
- package/templates/.agents/tools/mcp/marketing/linkedin-ads/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/marketing/mailchimp/README.md +21 -0
- package/templates/.agents/tools/mcp/marketing/mailchimp/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/marketing/meta-ads/README.md +21 -0
- package/templates/.agents/tools/mcp/marketing/meta-ads/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/marketing/semrush/README.md +20 -0
- package/templates/.agents/tools/mcp/marketing/semrush/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/marketing/tiktok-ads/README.md +21 -0
- package/templates/.agents/tools/mcp/marketing/tiktok-ads/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/marketing/youtube-analytics/README.md +21 -0
- package/templates/.agents/tools/mcp/marketing/youtube-analytics/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/observability/cloudwatch/README.md +21 -0
- package/templates/.agents/tools/mcp/observability/cloudwatch/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/observability/datadog/README.md +21 -0
- package/templates/.agents/tools/mcp/observability/datadog/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/observability/elasticsearch/README.md +21 -0
- package/templates/.agents/tools/mcp/observability/elasticsearch/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/observability/grafana/README.md +21 -0
- package/templates/.agents/tools/mcp/observability/grafana/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/observability/kibana/README.md +21 -0
- package/templates/.agents/tools/mcp/observability/kibana/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/observability/loki/README.md +19 -0
- package/templates/.agents/tools/mcp/observability/loki/manifest.yaml +24 -0
- package/templates/.agents/tools/mcp/observability/new-relic/README.md +21 -0
- package/templates/.agents/tools/mcp/observability/new-relic/manifest.yaml +26 -0
- package/templates/.agents/tools/mcp/observability/opentelemetry/README.md +20 -0
- package/templates/.agents/tools/mcp/observability/opentelemetry/manifest.yaml +25 -0
- package/templates/.agents/tools/mcp/observability/prometheus/README.md +19 -0
- package/templates/.agents/tools/mcp/observability/prometheus/manifest.yaml +24 -0
- package/templates/.agents/tools/mcp/observability/sentry/README.md +21 -0
- package/templates/.agents/tools/mcp/observability/sentry/manifest.yaml +26 -0
- package/templates/.agents/tools/policies/approval-rules.yaml +8 -0
- package/templates/.agents/tools/policies/financial-limits.yaml +6 -0
- package/templates/.agents/tools/policies/permissions.yaml +8 -0
- package/templates/.agents/tools/policies/secret-handling.md +7 -0
- package/templates/.agents/tools/profiles/business.yaml +8 -0
- package/templates/.agents/tools/profiles/default.yaml +8 -0
- package/templates/.agents/tools/profiles/development.yaml +13 -0
- package/templates/.agents/tools/profiles/infrastructure.yaml +8 -0
- package/templates/.agents/tools/profiles/marketing.yaml +9 -0
- package/templates/.agents/tools/profiles/observability.yaml +8 -0
- package/templates/.agents/tools/runtime/README.md +3 -0
- package/templates/.agents/tools/runtime/api-mcp-runtime.mjs +217 -0
- package/templates/.agents/tools/runtime/api-mcp-runtime.test.mjs +56 -0
- package/templates/.agents/tools/runtime/fixtures/definition.json +17 -0
- package/templates/.agents/tools/runtime/runner.mjs +16 -0
- package/templates/.agents/tools/runtime/stdio.test.mjs +32 -0
- package/templates/.agents/tools/state.example.yaml +8 -0
- package/templates/.agents/zaip-aios/INDEX.md +26 -0
- package/templates/.agents/zaip-aios/README.md +13 -0
- package/templates/.agents/zaip-aios/VERSION +1 -0
- package/templates/.agents/zaip-aios/guides/01-primeiros-passos.md +10 -0
- package/templates/.agents/zaip-aios/guides/02-requirements.md +12 -0
- package/templates/.agents/zaip-aios/guides/03-tasks.md +12 -0
- package/templates/.agents/zaip-aios/guides/04-specs.md +16 -0
- package/templates/.agents/zaip-aios/guides/05-prds.md +13 -0
- package/templates/.agents/zaip-aios/guides/06-execucao.md +13 -0
- package/templates/.agents/zaip-aios/guides/07-revisao-e-validacao.md +8 -0
- package/templates/.agents/zaip-aios/guides/08-contexto-e-tokens.md +10 -0
- package/templates/.agents/zaip-aios/guides/09-agentes-e-squads.md +8 -0
- package/templates/.agents/zaip-aios/guides/10-seguranca.md +206 -0
- package/templates/.agents/zaip-aios/guides/11-observabilidade-e-custos.md +10 -0
- package/templates/.agents/zaip-aios/guides/12-instalacao-e-upgrade.md +10 -0
- package/templates/.agents/zaip-aios/guides/13-boas-praticas.md +12 -0
- package/templates/.agents/zaip-aios/guides/14-troubleshooting.md +12 -0
- package/templates/.agents/zaip-aios/guides/15-tools-e-codex.md +25 -0
- package/templates/.agents/zaip-aios/guides/16-lifecycle-e-reconciliacao.md +47 -0
- package/templates/.zaip-aios/LICENSE +1 -0
- package/templates/.zaip-aios/THIRD_PARTY_NOTICES.md +10 -0
- package/templates/.zaip-aios/VERSION +1 -0
- package/templates/.zaip-aios/bin/zaip.mjs +1285 -0
- package/templates/.zaip-aios/checksums.sha256 +369 -0
- package/templates/.zaip-aios/dashboard/.zaip-managed.json +46 -0
- package/templates/.zaip-aios/dashboard/README.md +91 -0
- package/templates/.zaip-aios/dashboard/apps/frontend/dist/assets/index-BOLwg8VW.js +1009 -0
- package/templates/.zaip-aios/dashboard/apps/frontend/dist/assets/index-_yxs47Hd.css +1 -0
- package/templates/.zaip-aios/dashboard/apps/frontend/dist/assets/logo_novo_azul-BBx5pA2B.png +0 -0
- package/templates/.zaip-aios/dashboard/apps/frontend/dist/icon_zaip.png +0 -0
- package/templates/.zaip-aios/dashboard/apps/frontend/dist/index.html +15 -0
- package/templates/.zaip-aios/dashboard/apps/frontend/dist/logo_novo_azul.png +0 -0
- package/templates/.zaip-aios/dashboard/packages/local-runtime/server.mjs +179 -0
- package/templates/.zaip-aios/dashboard/packages/local-runtime/start-dashboard.mjs +726 -0
- package/templates/.zaip-aios/dashboard/zaip-dashboard.exe +0 -0
- package/templates/.zaip-aios/design/.zaip-managed.json +330 -0
- package/templates/.zaip-aios/design/DESIGN.md +180 -0
- package/templates/.zaip-aios/design/README.md +47 -0
- package/templates/.zaip-aios/design/apps/catalog/.storybook/main.ts +15 -0
- package/templates/.zaip-aios/design/apps/catalog/.storybook/preview.ts +21 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/assets/index-B4pfFtvJ.css +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/assets/index-Bvwc3Bgw.js +9 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/index.html +14 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/logo_novo_azul.png +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/Color-6AOWCN3U-D8qyAXo4.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/Components.stories-DkBtOSHX.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/DesignSystem.stories-BttERyCr.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/DocsRenderer-JROSPFPF-LmiVo77Q.js +46 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/Primitives-HZpQ6PjX.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/WithTooltip-7X4HQR7L-CTMWAwDe.js +9 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/axe-Bk3eEgJf.js +20 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/chunk-242VQQM5-DB2JSNUA.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/chunk-DRQKCCAG-DUhJxxRU.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/chunk-QQBDHPVZ-nYh9QWsm.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/chunk-W22LQPXL-9RCn9-l7.js +18 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/components-BX1OfYUi.js +243 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-Bu6KfEwW.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/iframe-B4pfFtvJ.css +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/iframe-LMhZM1ce.js +1154 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/jsx-runtime-f3rHp9ZU.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/matchers-JIUQ3HVY-9iRExWZO.js +28 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/preload-helper-BdFrVu1K.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/react-18-jAz3avmR.js +9 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/react-DvDPBd6Q.js +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/syntaxhighlighter-YFXUGROL-DV8X2acD.js +6 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/assets/theming-CHbHkcNi.js +39 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/favicon-wrapper.svg +46 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/favicon.svg +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/iframe.html +710 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/index.html +152 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/index.json +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/logo_novo_azul.png +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/nunito-sans-bold-italic.woff2 +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/nunito-sans-bold.woff2 +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/nunito-sans-italic.woff2 +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/nunito-sans-regular.woff2 +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-addons/a11y-2/manager-bundle.js +57 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-addons/docs-1/manager-bundle.js +18 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +632 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/favicon.svg +1 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-manager/globals-runtime.js +78957 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-manager/globals.js +24 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-manager/manager-stores.js +23 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/sb-manager/runtime.js +28253 -0
- package/templates/.zaip-aios/design/apps/catalog/dist/storybook/vite-inject-mocker-entry.js +2 -0
- package/templates/.zaip-aios/design/apps/catalog/index.html +13 -0
- package/templates/.zaip-aios/design/apps/catalog/package.json +32 -0
- package/templates/.zaip-aios/design/apps/catalog/public/logo_novo_azul.png +0 -0
- package/templates/.zaip-aios/design/apps/catalog/src/App.tsx +29 -0
- package/templates/.zaip-aios/design/apps/catalog/src/components/CatalogShell.tsx +78 -0
- package/templates/.zaip-aios/design/apps/catalog/src/components/Primitives.tsx +137 -0
- package/templates/.zaip-aios/design/apps/catalog/src/design-contract.test.ts +33 -0
- package/templates/.zaip-aios/design/apps/catalog/src/main.tsx +13 -0
- package/templates/.zaip-aios/design/apps/catalog/src/pages/ComponentsPage.tsx +83 -0
- package/templates/.zaip-aios/design/apps/catalog/src/pages/DesignSystemPage.tsx +185 -0
- package/templates/.zaip-aios/design/apps/catalog/src/stories/Components.stories.tsx +12 -0
- package/templates/.zaip-aios/design/apps/catalog/src/stories/DesignSystem.stories.tsx +12 -0
- package/templates/.zaip-aios/design/apps/catalog/src/styles/catalog.css +315 -0
- package/templates/.zaip-aios/design/apps/catalog/src/styles/components.css +228 -0
- package/templates/.zaip-aios/design/apps/catalog/src/styles/design-system.css +137 -0
- package/templates/.zaip-aios/design/apps/catalog/src/styles.css +85 -0
- package/templates/.zaip-aios/design/apps/catalog/tsconfig.json +16 -0
- package/templates/.zaip-aios/design/apps/catalog/vite.config.ts +10 -0
- package/templates/.zaip-aios/design/apps/catalog/vitest.config.ts +5 -0
- package/templates/.zaip-aios/design/packages/local-runtime/package.json +9 -0
- package/templates/.zaip-aios/design/packages/local-runtime/runtime.mjs +238 -0
- package/templates/.zaip-aios/design/packages/local-runtime/runtime.test.mjs +66 -0
- package/templates/.zaip-aios/design/packages/local-runtime/start-design.mjs +46 -0
- package/templates/.zaip-aios/design/packages/windows-launcher/Program.cs +110 -0
- package/templates/.zaip-aios/design/packages/windows-launcher/build-design-launcher.ps1 +107 -0
- package/templates/.zaip-aios/design/tokens.json +52 -0
- package/templates/.zaip-aios/design/zaip-design.exe +0 -0
- package/templates/.zaip-aios/manifest.json +376 -0
- package/templates/.zaip-aios/migrations/001-layout-v1.json +5 -0
- package/templates/.zaip-aios/migrations/002-layout-v2.json +6 -0
- package/templates/.zaip-aios/pricing/fx/2026/07/12/usd-brl.json +9 -0
- package/templates/.zaip-aios/pricing/models.json +172 -0
- package/templates/.zaip-aios/profiles/clients.json +506 -0
- package/templates/.zaip-aios/profiles/fixtures/architecture/negative/modules/orders/application/queries/list.query.ts +5 -0
- package/templates/.zaip-aios/profiles/fixtures/architecture/negative/modules/orders/domain/order.ts +3 -0
- package/templates/.zaip-aios/profiles/fixtures/architecture/positive/modules/orders/application/queries/list.query.ts +5 -0
- package/templates/.zaip-aios/profiles/typescript-hono-kysely.json +41 -0
- package/templates/.zaip-aios/sbom.cdx.json +3440 -0
- package/templates/.zaip-aios/schemas/contracts.schema.json +243 -0
- package/templates/.zaip-aios/templates/config/agents/catalog.yaml +246 -0
- package/templates/.zaip-aios/templates/requirements/.gitkeep +0 -0
- package/templates/.zaip-aios/templates/requirements/autonomous-assurance.md +63 -0
- package/templates/.zaip-aios/templates/requirements/context-engine.md +44 -0
- package/templates/.zaip-aios/templates/requirements/cost-observability.md +39 -0
- package/templates/.zaip-aios/templates/requirements/design-system.md +48 -0
- package/templates/.zaip-aios/templates/requirements/execution-engine.md +60 -0
- package/templates/.zaip-aios/templates/requirements/kanban-dashboard.md +30 -0
- package/templates/.zaip-aios/templates/requirements/model-orchestration.md +58 -0
- package/templates/.zaip-aios/templates/requirements/public-distribution.md +40 -0
- package/templates/.zaip-aios/templates/requirements/software-architecture.md +57 -0
- package/templates/.zaip-aios/templates/requirements/work-lifecycle.md +82 -0
- package/templates/.zaip-aios/templates/rules/project/.gitkeep +0 -0
- package/templates/.zaip-aios/templates/rules/zaip/architecture.md +28 -0
- package/templates/.zaip-aios/templates/rules/zaip/context.md +22 -0
- package/templates/.zaip-aios/templates/rules/zaip/core.md +24 -0
- package/templates/.zaip-aios/templates/rules/zaip/evolution.md +22 -0
- package/templates/.zaip-aios/templates/rules/zaip/model-orchestration.md +48 -0
- package/templates/.zaip-aios/templates/rules/zaip/security.md +20 -0
- package/templates/.zaip-aios/templates/rules/zaip/workflow.md +35 -0
- package/templates/.zaip-aios/templates/skills/.gitkeep +0 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-adapt-stack/SKILL.md +11 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-adapt-stack/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-adapters/SKILL.md +15 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-adapters/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/SKILL.md +19 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/assets/adapter.example.yaml +26 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/references/security-contract.md +10 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/references/server-layout.md +19 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/scripts/inspect-openapi.mjs +60 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-api-to-mcp/scripts/scaffold-local-mcp.mjs +47 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-author-skills/SKILL.md +21 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-author-skills/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-change/SKILL.md +20 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-change/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-config/SKILL.md +22 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-config/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-context/SKILL.md +16 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-context/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-cqrs/SKILL.md +11 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-cqrs/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-decisions/SKILL.md +14 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-decisions/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-enforce-architecture/SKILL.md +14 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-enforce-architecture/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-eval/SKILL.md +14 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-eval/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-execution/SKILL.md +36 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-execution/agents/openai.yaml +6 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-execution/references/prepared-plan.md +31 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-frontend-launcher/SKILL.md +29 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-frontend-launcher/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-frontend-launcher/references/launcher-contract.md +36 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-github-deploy/SKILL.md +75 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-github-deploy/agents/openai.yaml +6 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-github-deploy/scripts/preflight.mjs +256 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-github-setup/SKILL.md +80 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-github-setup/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-move-prd/SKILL.md +37 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-move-prd/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-move-spec/SKILL.md +38 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-move-spec/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-navigate-work/SKILL.md +16 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-navigate-work/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-observability/SKILL.md +24 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-observability/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-openai-docs/SKILL.md +17 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-openai-docs/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-openai-docs/references/routing.md +11 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-prd/SKILL.md +44 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-prd/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-preview/SKILL.md +16 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-preview/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/SKILL.md +39 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/inspect-local-sqlite.py +52 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/normalize-run-agents.mjs +63 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-local-telemetry.mjs +698 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.mjs +361 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.test.mjs +187 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-requirements/SKILL.md +16 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-requirements/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-review/SKILL.md +18 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-review/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-rules/SKILL.md +19 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-rules/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-security/SKILL.md +30 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-security/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-setup/SKILL.md +25 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-setup/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-spec/SKILL.md +45 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-spec/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-task/SKILL.md +41 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-task/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-text-encoding/SKILL.md +27 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-text-encoding/agents/openai.yaml +6 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/SKILL.md +22 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/agents/openai.yaml +4 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/references/codex-config.md +24 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/references/secrets.md +8 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/scripts/configure-local-mcp.mjs +52 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/scripts/inspect-tool.mjs +35 -0
- package/templates/.zaip-aios/templates/skills/zaip-skill-tool-setup/scripts/tool-state.mjs +26 -0
- package/templates/.zaip-aios/templates/tools/README.md +9 -0
- package/templates/.zaip-aios/templates/tools/api/asaas/README.md +22 -0
- package/templates/.zaip-aios/templates/tools/api/asaas/manifest.yaml +20 -0
- package/templates/.zaip-aios/templates/tools/api/github/README.md +22 -0
- package/templates/.zaip-aios/templates/tools/api/github/manifest.yaml +20 -0
- package/templates/.zaip-aios/templates/tools/api/google-ads/README.md +23 -0
- package/templates/.zaip-aios/templates/tools/api/google-ads/manifest.yaml +21 -0
- package/templates/.zaip-aios/templates/tools/api/google-analytics/README.md +22 -0
- package/templates/.zaip-aios/templates/tools/api/google-analytics/manifest.yaml +20 -0
- package/templates/.zaip-aios/templates/tools/api/google-search-console/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/api/google-search-console/manifest.yaml +19 -0
- package/templates/.zaip-aios/templates/tools/api/google-tag-manager/README.md +22 -0
- package/templates/.zaip-aios/templates/tools/api/google-tag-manager/manifest.yaml +20 -0
- package/templates/.zaip-aios/templates/tools/api/hubspot/README.md +22 -0
- package/templates/.zaip-aios/templates/tools/api/hubspot/manifest.yaml +20 -0
- package/templates/.zaip-aios/templates/tools/api/instagram-graph/README.md +23 -0
- package/templates/.zaip-aios/templates/tools/api/instagram-graph/manifest.yaml +21 -0
- package/templates/.zaip-aios/templates/tools/api/kommo-crm/README.md +23 -0
- package/templates/.zaip-aios/templates/tools/api/kommo-crm/manifest.yaml +21 -0
- package/templates/.zaip-aios/templates/tools/api/linkedin-ads/README.md +23 -0
- package/templates/.zaip-aios/templates/tools/api/linkedin-ads/manifest.yaml +21 -0
- package/templates/.zaip-aios/templates/tools/api/meta-ads/README.md +23 -0
- package/templates/.zaip-aios/templates/tools/api/meta-ads/manifest.yaml +21 -0
- package/templates/.zaip-aios/templates/tools/api/openai/README.md +22 -0
- package/templates/.zaip-aios/templates/tools/api/openai/manifest.yaml +20 -0
- package/templates/.zaip-aios/templates/tools/api/shopify/README.md +23 -0
- package/templates/.zaip-aios/templates/tools/api/shopify/manifest.yaml +21 -0
- package/templates/.zaip-aios/templates/tools/api/slack/README.md +22 -0
- package/templates/.zaip-aios/templates/tools/api/slack/manifest.yaml +20 -0
- package/templates/.zaip-aios/templates/tools/api/stripe/README.md +22 -0
- package/templates/.zaip-aios/templates/tools/api/stripe/manifest.yaml +20 -0
- package/templates/.zaip-aios/templates/tools/api/tiktok-ads/README.md +23 -0
- package/templates/.zaip-aios/templates/tools/api/tiktok-ads/manifest.yaml +21 -0
- package/templates/.zaip-aios/templates/tools/api/youtube-analytics/README.md +22 -0
- package/templates/.zaip-aios/templates/tools/api/youtube-analytics/manifest.yaml +20 -0
- package/templates/.zaip-aios/templates/tools/catalog.yaml +358 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/browser/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/browser/manifest.yaml +24 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/filesystem/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/filesystem/manifest.yaml +24 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/git/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/git/manifest.yaml +24 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/github/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/github/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/gitlab/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/gitlab/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/jira/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/jira/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/linear/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/linear/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/notion/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/notion/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/openai-docs/README.md +15 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/openai-docs/manifest.yaml +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/postgresql/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/postgresql/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/slack/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/slack/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/sqlite/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/development/sqlite/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/aws/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/aws/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/azure/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/azure/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/cloudflare/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/cloudflare/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/docker/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/docker/manifest.yaml +24 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/gcp/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/gcp/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/hostinger/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/hostinger/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/kubernetes/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/kubernetes/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/terraform/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/infra/terraform/manifest.yaml +24 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/google-ads/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/google-ads/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/google-analytics/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/google-analytics/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/google-search-console/README.md +19 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/google-search-console/manifest.yaml +24 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/google-tag-manager/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/google-tag-manager/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/hubspot/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/hubspot/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/instagram-insights/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/instagram-insights/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/linkedin-ads/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/linkedin-ads/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/mailchimp/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/mailchimp/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/meta-ads/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/meta-ads/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/semrush/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/semrush/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/tiktok-ads/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/tiktok-ads/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/youtube-analytics/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/marketing/youtube-analytics/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/cloudwatch/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/cloudwatch/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/datadog/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/datadog/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/elasticsearch/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/elasticsearch/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/grafana/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/grafana/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/kibana/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/kibana/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/loki/README.md +19 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/loki/manifest.yaml +24 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/new-relic/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/new-relic/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/opentelemetry/README.md +20 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/opentelemetry/manifest.yaml +25 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/prometheus/README.md +19 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/prometheus/manifest.yaml +24 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/sentry/README.md +21 -0
- package/templates/.zaip-aios/templates/tools/mcp/observability/sentry/manifest.yaml +26 -0
- package/templates/.zaip-aios/templates/tools/policies/approval-rules.yaml +8 -0
- package/templates/.zaip-aios/templates/tools/policies/financial-limits.yaml +6 -0
- package/templates/.zaip-aios/templates/tools/policies/permissions.yaml +8 -0
- package/templates/.zaip-aios/templates/tools/policies/secret-handling.md +7 -0
- package/templates/.zaip-aios/templates/tools/profiles/business.yaml +8 -0
- package/templates/.zaip-aios/templates/tools/profiles/default.yaml +8 -0
- package/templates/.zaip-aios/templates/tools/profiles/development.yaml +13 -0
- package/templates/.zaip-aios/templates/tools/profiles/infrastructure.yaml +8 -0
- package/templates/.zaip-aios/templates/tools/profiles/marketing.yaml +9 -0
- package/templates/.zaip-aios/templates/tools/profiles/observability.yaml +8 -0
- package/templates/.zaip-aios/templates/tools/runtime/README.md +3 -0
- package/templates/.zaip-aios/templates/tools/runtime/api-mcp-runtime.mjs +217 -0
- package/templates/.zaip-aios/templates/tools/runtime/api-mcp-runtime.test.mjs +56 -0
- package/templates/.zaip-aios/templates/tools/runtime/fixtures/definition.json +17 -0
- package/templates/.zaip-aios/templates/tools/runtime/runner.mjs +16 -0
- package/templates/.zaip-aios/templates/tools/runtime/stdio.test.mjs +32 -0
- package/templates/.zaip-aios/templates/tools/state.example.yaml +8 -0
- package/templates/.zaip-aios/templates/zaip-aios/INDEX.md +26 -0
- package/templates/.zaip-aios/templates/zaip-aios/README.md +13 -0
- package/templates/.zaip-aios/templates/zaip-aios/VERSION +1 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/01-primeiros-passos.md +10 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/02-requirements.md +12 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/03-tasks.md +12 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/04-specs.md +16 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/05-prds.md +13 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/06-execucao.md +13 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/07-revisao-e-validacao.md +8 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/08-contexto-e-tokens.md +10 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/09-agentes-e-squads.md +8 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/10-seguranca.md +206 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/11-observabilidade-e-custos.md +10 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/12-instalacao-e-upgrade.md +10 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/13-boas-praticas.md +12 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/14-troubleshooting.md +12 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/15-tools-e-codex.md +25 -0
- package/templates/.zaip-aios/templates/zaip-aios/guides/16-lifecycle-e-reconciliacao.md +47 -0
- package/templates/template-manifest.json +3210 -69
- package/templates/.agents/rules/architecture.md +0 -21
- package/templates/.agents/rules/context.md +0 -18
- package/templates/.agents/rules/core.md +0 -16
- package/templates/.agents/rules/workflow.md +0 -21
- /package/templates/.agents/rules/{security.md → zaip/security.md} +0 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { readdir, readFile } from "node:fs/promises";
|
|
2
|
+
import { relative, resolve } from "node:path";
|
|
3
|
+
import { checkAdapters } from "./adapters.js";
|
|
4
|
+
import { findProjectRoot } from "./find-project-root.js";
|
|
5
|
+
import { sha256 } from "./template-manifest.js";
|
|
6
|
+
const REQUIRED = [
|
|
7
|
+
".agents/config/project.yaml",
|
|
8
|
+
".agents/config/framework.lock.yaml",
|
|
9
|
+
...["core", "workflow", "architecture", "security", "context"].map((name) => `.agents/rules/zaip/${name}.md`),
|
|
10
|
+
...[
|
|
11
|
+
"work-lifecycle",
|
|
12
|
+
"execution-engine",
|
|
13
|
+
"cost-observability",
|
|
14
|
+
"kanban-dashboard",
|
|
15
|
+
"context-engine",
|
|
16
|
+
"design-system",
|
|
17
|
+
].map((name) => `.agents/requirements/${name}.md`),
|
|
18
|
+
];
|
|
19
|
+
const REQUIRED_DASHBOARD = [
|
|
20
|
+
".agents/dashboard/.zaip-managed.json",
|
|
21
|
+
".agents/dashboard/zaip-dashboard.exe",
|
|
22
|
+
".agents/dashboard/apps/frontend/dist/index.html",
|
|
23
|
+
".agents/dashboard/packages/local-runtime/server.mjs",
|
|
24
|
+
".agents/dashboard/packages/local-runtime/start-dashboard.mjs",
|
|
25
|
+
];
|
|
26
|
+
const REQUIRED_DESIGN = [
|
|
27
|
+
".agents/design/DESIGN.md",
|
|
28
|
+
".agents/design/tokens.json",
|
|
29
|
+
".agents/design/apps/catalog/dist/index.html",
|
|
30
|
+
".agents/design/apps/catalog/dist/storybook/index.html",
|
|
31
|
+
];
|
|
32
|
+
const REQUIRED_RUNTIME = [
|
|
33
|
+
".zaip-aios/bin/zaip.mjs",
|
|
34
|
+
".zaip-aios/checksums.sha256",
|
|
35
|
+
".zaip-aios/manifest.json",
|
|
36
|
+
".zaip-aios/sbom.cdx.json",
|
|
37
|
+
".zaip-aios/VERSION",
|
|
38
|
+
];
|
|
39
|
+
export async function doctorProject(directory) {
|
|
40
|
+
const project = await findProjectRoot(directory);
|
|
41
|
+
const findings = [];
|
|
42
|
+
for (const path of REQUIRED) {
|
|
43
|
+
if ((await textOrNull(project.root, path)) === null) {
|
|
44
|
+
findings.push({ severity: "error", path, message: "Required ZAIP-AIOS V2 file is missing" });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
for (const path of REQUIRED_DASHBOARD) {
|
|
48
|
+
if ((await bytesOrNull(project.root, path)) === null) {
|
|
49
|
+
findings.push({
|
|
50
|
+
severity: "error",
|
|
51
|
+
path,
|
|
52
|
+
message: "Required ZAIP dashboard file is missing",
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
for (const path of REQUIRED_DESIGN) {
|
|
57
|
+
if ((await bytesOrNull(project.root, path)) === null) {
|
|
58
|
+
findings.push({ severity: "error", path, message: "Required ZAIP design file is missing" });
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
for (const path of REQUIRED_RUNTIME) {
|
|
62
|
+
if ((await bytesOrNull(project.root, path)) === null) {
|
|
63
|
+
findings.push({
|
|
64
|
+
severity: "error",
|
|
65
|
+
path,
|
|
66
|
+
message: "Required ZAIP lifecycle runtime file is missing",
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const lockPath = ".agents/config/framework.lock.yaml";
|
|
71
|
+
const lock = await textOrNull(project.root, lockPath);
|
|
72
|
+
let managed = new Map();
|
|
73
|
+
if (lock !== null) {
|
|
74
|
+
if (!/^\s*version:\s*["']?2["']?\s*$/mu.test(section(lock, "layout"))) {
|
|
75
|
+
findings.push({ severity: "error", path: lockPath, message: "Layout version must be 2" });
|
|
76
|
+
}
|
|
77
|
+
managed = new Map(lockEntries(lock));
|
|
78
|
+
for (const [path, expected] of managed) {
|
|
79
|
+
const content = await bytesOrNull(project.root, path);
|
|
80
|
+
if (content === null) {
|
|
81
|
+
findings.push({ severity: "error", path, message: "Managed file is missing" });
|
|
82
|
+
}
|
|
83
|
+
else if (sha256(content) !== expected) {
|
|
84
|
+
findings.push({ severity: "error", path, message: "Managed file checksum drift" });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const ids = new Map();
|
|
89
|
+
for (const path of await filesUnder(project.root, ".agents/rules")) {
|
|
90
|
+
const isZaip = path.startsWith(".agents/rules/zaip/");
|
|
91
|
+
const isProject = path.startsWith(".agents/rules/project/");
|
|
92
|
+
if (/^\.agents\/rules\/[^/]+$/.test(path) || (!isZaip && !isProject)) {
|
|
93
|
+
findings.push({
|
|
94
|
+
severity: "error",
|
|
95
|
+
path,
|
|
96
|
+
message: "Rules must live under .agents/rules/zaip or .agents/rules/project",
|
|
97
|
+
});
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if ((isZaip && !path.endsWith(".md")) ||
|
|
101
|
+
(isProject && !path.endsWith(".md") && path !== ".agents/rules/project/.gitkeep")) {
|
|
102
|
+
findings.push({
|
|
103
|
+
severity: "error",
|
|
104
|
+
path,
|
|
105
|
+
message: "Rule namespaces accept Markdown Rules and the project .gitkeep marker only",
|
|
106
|
+
});
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (isZaip && !managed.has(path)) {
|
|
110
|
+
findings.push({
|
|
111
|
+
severity: "error",
|
|
112
|
+
path,
|
|
113
|
+
message: "ZAIP Rule must be managed by framework.lock.yaml",
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
if (isProject && path.endsWith(".md") && managed.has(path)) {
|
|
117
|
+
findings.push({
|
|
118
|
+
severity: "error",
|
|
119
|
+
path,
|
|
120
|
+
message: "Project Rule must not be managed by framework.lock.yaml",
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
if (!path.endsWith(".md"))
|
|
124
|
+
continue;
|
|
125
|
+
const content = await textOrNull(project.root, path);
|
|
126
|
+
const id = /^id:\s*(RULE-[A-Z0-9-]+)\s*$/m.exec(content ?? "")?.[1];
|
|
127
|
+
if (id === undefined) {
|
|
128
|
+
findings.push({ severity: "error", path, message: "Rule id is missing or invalid" });
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
const previous = ids.get(id);
|
|
132
|
+
if (previous !== undefined) {
|
|
133
|
+
findings.push({
|
|
134
|
+
severity: "error",
|
|
135
|
+
path,
|
|
136
|
+
message: `Rule id ${id} is already declared by ${previous}`,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
ids.set(id, path);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const adapters = await checkAdapters(project.root);
|
|
144
|
+
for (const path of adapters.drifted) {
|
|
145
|
+
findings.push({
|
|
146
|
+
severity: "error",
|
|
147
|
+
path,
|
|
148
|
+
message: "Required agent adapter is missing or drifted",
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
return { root: project.root, valid: findings.length === 0, findings };
|
|
152
|
+
}
|
|
153
|
+
function lockEntries(lock) {
|
|
154
|
+
const result = new Map();
|
|
155
|
+
const lines = lock.split(/\r?\n/);
|
|
156
|
+
let inManaged = false;
|
|
157
|
+
let current = null;
|
|
158
|
+
for (const line of lines) {
|
|
159
|
+
if (line === "managed_files:") {
|
|
160
|
+
inManaged = true;
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
if (!inManaged)
|
|
164
|
+
continue;
|
|
165
|
+
const compactMatch = /^ {2}(?:"([^"]+)"|([^:]+)): ([a-f0-9]{64})$/.exec(line);
|
|
166
|
+
if (compactMatch !== null) {
|
|
167
|
+
result.set(compactMatch[1] ?? compactMatch[2], compactMatch[3]);
|
|
168
|
+
current = null;
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
const pathMatch = /^ {2}(?:"([^"]+)"|([^:]+)):$/.exec(line);
|
|
172
|
+
if (pathMatch !== null) {
|
|
173
|
+
current = pathMatch[1] ?? pathMatch[2] ?? null;
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
const hashMatch = /^ {4}sha256: ([a-f0-9]{64})$/.exec(line);
|
|
177
|
+
if (current !== null && hashMatch !== null) {
|
|
178
|
+
result.set(current, hashMatch[1]);
|
|
179
|
+
current = null;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return result;
|
|
183
|
+
}
|
|
184
|
+
function section(content, name) {
|
|
185
|
+
const match = new RegExp(`^${name}:\\n((?: .*(?:\\n|$))*)`, "m").exec(content);
|
|
186
|
+
return match?.[1] ?? "";
|
|
187
|
+
}
|
|
188
|
+
async function textOrNull(root, path) {
|
|
189
|
+
return readFile(resolve(root, path), "utf8").catch(() => null);
|
|
190
|
+
}
|
|
191
|
+
async function bytesOrNull(root, path) {
|
|
192
|
+
return readFile(resolve(root, path)).catch(() => null);
|
|
193
|
+
}
|
|
194
|
+
async function filesUnder(root, path) {
|
|
195
|
+
const directory = resolve(root, path);
|
|
196
|
+
const entries = await readdir(directory, { recursive: true, withFileTypes: true }).catch((error) => {
|
|
197
|
+
if (error instanceof Error && "code" in error && error.code === "ENOENT")
|
|
198
|
+
return [];
|
|
199
|
+
throw error;
|
|
200
|
+
});
|
|
201
|
+
return entries
|
|
202
|
+
.filter((entry) => entry.isFile())
|
|
203
|
+
.map((entry) => relative(root, resolve(entry.parentPath, entry.name)).replaceAll("\\", "/"))
|
|
204
|
+
.sort((left, right) => Number(left.startsWith(".agents/rules/project/")) -
|
|
205
|
+
Number(right.startsWith(".agents/rules/project/")) || left.localeCompare(right));
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=doctor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/services/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,W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{
|
|
3
|
+
path: string;
|
|
4
|
+
sourcePath: string;
|
|
5
|
+
installed: boolean;
|
|
6
|
+
error: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface GlobalCodexConfigFileSystem {
|
|
9
|
+
mkdir: typeof mkdir;
|
|
10
|
+
rename: typeof rename;
|
|
11
|
+
rm: typeof rm;
|
|
12
|
+
writeFile: typeof writeFile;
|
|
13
|
+
}
|
|
14
|
+
export declare function installGlobalCodexConfig(content: string, codexHome?: string, sourcePath?: string, filesystem?: GlobalCodexConfigFileSystem): Promise<GlobalCodexConfigResult>;
|
|
15
|
+
//# sourceMappingURL=global-codex-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-codex-config.d.ts","sourceRoot":"","sources":["../../src/services/global-codex-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIhE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,EAAE,EAAE,OAAO,EAAE,CAAC;IACd,SAAS,EAAE,OAAO,SAAS,CAAC;CAC7B;AAID,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,MAAM,EACf,SAAS,SAAsD,EAC/D,UAAU,SAAiC,EAC3C,UAAU,GAAE,2BAA4C,GACvD,OAAO,CAAC,uBAAuB,CAAC,CAiClC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { mkdir, rename, rm, writeFile } from "node:fs/promises";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
const nodeFileSystem = { mkdir, rename, rm, writeFile };
|
|
5
|
+
export async function installGlobalCodexConfig(content, codexHome = process.env.CODEX_HOME ?? join(homedir(), ".codex"), sourcePath = "<project>/.codex/config.toml", filesystem = nodeFileSystem) {
|
|
6
|
+
const path = join(codexHome, "config.toml");
|
|
7
|
+
const temporary = `${path}.zaip-tmp-${process.pid}`;
|
|
8
|
+
const backup = `${path}.zaip-backup-${process.pid}`;
|
|
9
|
+
let previousConfigMoved = false;
|
|
10
|
+
try {
|
|
11
|
+
await filesystem.mkdir(dirname(path), { recursive: true });
|
|
12
|
+
await filesystem.rm(temporary, { force: true });
|
|
13
|
+
await filesystem.rm(backup, { force: true });
|
|
14
|
+
await filesystem.writeFile(temporary, content, { encoding: "utf8", flag: "wx" });
|
|
15
|
+
try {
|
|
16
|
+
await filesystem.rename(path, backup);
|
|
17
|
+
previousConfigMoved = true;
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
if (!isMissingFile(error))
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
await filesystem.rename(temporary, path);
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
if (previousConfigMoved)
|
|
28
|
+
await filesystem.rename(backup, path);
|
|
29
|
+
throw error;
|
|
30
|
+
}
|
|
31
|
+
if (previousConfigMoved)
|
|
32
|
+
await filesystem.rm(backup, { force: true });
|
|
33
|
+
return { path, sourcePath, installed: true, error: null };
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
await filesystem.rm(temporary, { force: true }).catch(() => undefined);
|
|
37
|
+
return {
|
|
38
|
+
path,
|
|
39
|
+
sourcePath,
|
|
40
|
+
installed: false,
|
|
41
|
+
error: error instanceof Error ? error.message : String(error),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function isMissingFile(error) {
|
|
46
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=global-codex-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-codex-config.js","sourceRoot":"","sources":["../../src/services/global-codex-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAgB1C,MAAM,cAAc,GAAgC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;AAErF,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,OAAe,EACf,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,CAAC,EAC/D,UAAU,GAAG,8BAA8B,EAC3C,UAAU,GAAgC,cAAc;IAExD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAC5C,MAAM,SAAS,GAAG,GAAG,IAAI,aAAa,OAAO,CAAC,GAAG,EAAE,CAAC;IACpD,MAAM,MAAM,GAAG,GAAG,IAAI,gBAAgB,OAAO,CAAC,GAAG,EAAE,CAAC;IACpD,IAAI,mBAAmB,GAAG,KAAK,CAAC;IAChC,IAAI,CAAC;QACH,MAAM,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC3D,MAAM,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAC7C,MAAM,UAAU,CAAC,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AK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC;AACnG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-codex-config.test.d.ts","sourceRoot":"","sources":["../../src/services/global-codex-config.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { mkdir, mkdtemp, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
2
|
+
import { tmpdir } from "node:os";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
5
|
+
import { installGlobalCodexConfig } from "./global-codex-config.js";
|
|
6
|
+
const temporaryRoots = [];
|
|
7
|
+
afterEach(async () => {
|
|
8
|
+
await Promise.all(temporaryRoots.splice(0).map((path) => rm(path, { recursive: true, force: true })));
|
|
9
|
+
});
|
|
10
|
+
describe("installGlobalCodexConfig", () => {
|
|
11
|
+
it("keeps the existing config and cleans the temporary file when backup move fails", async () => {
|
|
12
|
+
const root = await mkdtemp(join(tmpdir(), "zaip-global-codex-config-"));
|
|
13
|
+
temporaryRoots.push(root);
|
|
14
|
+
const codexHome = join(root, ".codex");
|
|
15
|
+
const configPath = join(codexHome, "config.toml");
|
|
16
|
+
const temporary = `${configPath}.zaip-tmp-${process.pid}`;
|
|
17
|
+
await mkdir(codexHome, { recursive: true });
|
|
18
|
+
await writeFile(configPath, "original bytes\\r\\n", "utf8");
|
|
19
|
+
const result = await installGlobalCodexConfig("new bytes\\n", codexHome, undefined, {
|
|
20
|
+
mkdir,
|
|
21
|
+
rm,
|
|
22
|
+
writeFile,
|
|
23
|
+
rename: async (from, to) => {
|
|
24
|
+
if (from === configPath && String(to).includes(".zaip-backup-")) {
|
|
25
|
+
throw new Error("injected backup move failure");
|
|
26
|
+
}
|
|
27
|
+
await rename(from, to);
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
expect(result).toMatchObject({ installed: false, error: "injected backup move failure" });
|
|
31
|
+
await expect(readFile(configPath, "utf8")).resolves.toBe("original bytes\\r\\n");
|
|
32
|
+
await expect(readFile(temporary, "utf8")).rejects.toMatchObject({ code: "ENOENT" });
|
|
33
|
+
});
|
|
34
|
+
it("restores the prior config when the final replacement rename fails", async () => {
|
|
35
|
+
const root = await mkdtemp(join(tmpdir(), "zaip-global-codex-config-"));
|
|
36
|
+
temporaryRoots.push(root);
|
|
37
|
+
const codexHome = join(root, ".codex");
|
|
38
|
+
const configPath = join(codexHome, "config.toml");
|
|
39
|
+
await mkdir(codexHome, { recursive: true });
|
|
40
|
+
const original = Buffer.from([0x00, 0x0d, 0x0a, 0xff, 0x61]);
|
|
41
|
+
await writeFile(configPath, original);
|
|
42
|
+
const result = await installGlobalCodexConfig('model = "new"\n', codexHome, join(root, "project", ".codex", "config.toml"), {
|
|
43
|
+
mkdir,
|
|
44
|
+
rm,
|
|
45
|
+
writeFile,
|
|
46
|
+
rename: async (from, to) => {
|
|
47
|
+
if (String(from).includes(".zaip-tmp-") && to === configPath) {
|
|
48
|
+
throw new Error("injected final rename failure");
|
|
49
|
+
}
|
|
50
|
+
await rename(from, to);
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
expect(result).toMatchObject({
|
|
54
|
+
installed: false,
|
|
55
|
+
sourcePath: join(root, "project", ".codex", "config.toml"),
|
|
56
|
+
});
|
|
57
|
+
await expect(readFile(configPath)).resolves.toEqual(original);
|
|
58
|
+
});
|
|
59
|
+
it("reports a restore failure and cleans the temporary replacement", async () => {
|
|
60
|
+
const root = await mkdtemp(join(tmpdir(), "zaip-global-codex-config-"));
|
|
61
|
+
temporaryRoots.push(root);
|
|
62
|
+
const codexHome = join(root, ".codex");
|
|
63
|
+
const configPath = join(codexHome, "config.toml");
|
|
64
|
+
const temporary = `${configPath}.zaip-tmp-${process.pid}`;
|
|
65
|
+
const backup = `${configPath}.zaip-backup-${process.pid}`;
|
|
66
|
+
await mkdir(codexHome, { recursive: true });
|
|
67
|
+
await writeFile(configPath, 'model = "old"\n', "utf8");
|
|
68
|
+
const result = await installGlobalCodexConfig("new bytes\\n", codexHome, undefined, {
|
|
69
|
+
mkdir,
|
|
70
|
+
rm,
|
|
71
|
+
writeFile,
|
|
72
|
+
rename: async (from, to) => {
|
|
73
|
+
if (from === temporary && to === configPath) {
|
|
74
|
+
throw new Error("injected final rename failure");
|
|
75
|
+
}
|
|
76
|
+
if (from === backup && to === configPath) {
|
|
77
|
+
throw new Error("injected restore failure");
|
|
78
|
+
}
|
|
79
|
+
await rename(from, to);
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
expect(result).toMatchObject({ installed: false, error: "injected restore failure" });
|
|
83
|
+
await expect(readFile(temporary, "utf8")).rejects.toMatchObject({ code: "ENOENT" });
|
|
84
|
+
await expect(readFile(backup, "utf8")).resolves.toBe('model = "old"\n');
|
|
85
|
+
});
|
|
86
|
+
it("removes a completed backup after a successful replacement", async () => {
|
|
87
|
+
const root = await mkdtemp(join(tmpdir(), "zaip-global-codex-config-"));
|
|
88
|
+
temporaryRoots.push(root);
|
|
89
|
+
const codexHome = join(root, ".codex");
|
|
90
|
+
const configPath = join(codexHome, "config.toml");
|
|
91
|
+
const backup = `${configPath}.zaip-backup-${process.pid}`;
|
|
92
|
+
await mkdir(codexHome, { recursive: true });
|
|
93
|
+
await writeFile(configPath, 'model = "old"\n', "utf8");
|
|
94
|
+
await expect(installGlobalCodexConfig("new bytes\\n", codexHome)).resolves.toMatchObject({
|
|
95
|
+
installed: true,
|
|
96
|
+
error: null,
|
|
97
|
+
});
|
|
98
|
+
await expect(readFile(configPath, "utf8")).resolves.toBe("new bytes\\n");
|
|
99
|
+
await expect(readFile(backup, "utf8")).rejects.toMatchObject({ code: "ENOENT" });
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
//# sourceMappingURL=global-codex-config.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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|
|
|
1
|
-
{"version":3,"file":"install-agents-template.d.ts","sourceRoot":"","sources":["../../src/services/install-agents-template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"install-agents-template.d.ts","sourceRoot":"","sources":["../../src/services/install-agents-template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAgC3D,wBAAsB,qBAAqB,CAAC,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,CAqI1F"}
|