@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
|
@@ -1,81 +1,159 @@
|
|
|
1
1
|
import { constants } from "node:fs";
|
|
2
|
-
import { access, cp, lstat, mkdir,
|
|
3
|
-
import { basename, dirname, join,
|
|
2
|
+
import { access, cp, lstat, mkdir, readdir, readFile, writeFile } from "node:fs/promises";
|
|
3
|
+
import { basename, dirname, join, resolve } from "node:path";
|
|
4
|
+
import { adapterFiles, GLOBAL_CODEX_CONFIG, isManagedAdapter } from "./adapters.js";
|
|
5
|
+
import { parsePublicAgentCatalog, publicAgentAdapterFiles, } from "./agent-adapters.js";
|
|
4
6
|
import { findProjectRoot } from "./find-project-root.js";
|
|
7
|
+
import { installGlobalCodexConfig } from "./global-codex-config.js";
|
|
5
8
|
import { loadTemplate, sha256, validateTemplatePath, } from "./template-manifest.js";
|
|
9
|
+
import { applyTransactionalChanges, assertSafeDestination } from "./transactional-files.js";
|
|
10
|
+
const FLAT_FRAMEWORK_RULES = new Set([
|
|
11
|
+
".agents/rules/core.md",
|
|
12
|
+
".agents/rules/workflow.md",
|
|
13
|
+
".agents/rules/architecture.md",
|
|
14
|
+
".agents/rules/security.md",
|
|
15
|
+
".agents/rules/context.md",
|
|
16
|
+
".agents/rules/.gitkeep",
|
|
17
|
+
]);
|
|
6
18
|
export async function installAgentsTemplate(options = {}) {
|
|
7
19
|
const cwd = resolve(options.cwd ?? process.cwd());
|
|
8
20
|
const requested = resolve(cwd, options.directory ?? ".");
|
|
9
21
|
const project = await findProjectRoot(requested);
|
|
10
22
|
await access(project.root, constants.W_OK);
|
|
11
|
-
const template = await loadTemplate(options.templateDirectory);
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
const template = await loadTemplate(options.templateDirectory, options.cliVersion);
|
|
24
|
+
const currentLock = await readFile(resolve(project.root, ".agents/config/framework.lock.yaml"), "utf8").catch((error) => {
|
|
25
|
+
if (isNotFound(error))
|
|
26
|
+
return null;
|
|
27
|
+
throw error;
|
|
28
|
+
});
|
|
29
|
+
const currentManaged = currentLock === null ? new Map() : lockEntries(currentLock);
|
|
30
|
+
const agentCatalog = templateAgentCatalog(template.files);
|
|
31
|
+
const rendered = [
|
|
32
|
+
...renderTemplate(template.files, basename(project.root), template.manifest.templateVersion),
|
|
33
|
+
...adapterFiles(project.root, agentCatalog).map((file) => ({
|
|
34
|
+
...file,
|
|
35
|
+
kind: "adapter",
|
|
36
|
+
})),
|
|
37
|
+
...(agentCatalog === undefined
|
|
38
|
+
? []
|
|
39
|
+
: publicAgentAdapterFiles(agentCatalog).map((file) => ({
|
|
40
|
+
...file,
|
|
41
|
+
kind: "adapter",
|
|
42
|
+
}))),
|
|
43
|
+
].sort((left, right) => left.path.localeCompare(right.path));
|
|
17
44
|
const created = [];
|
|
18
45
|
const existing = [];
|
|
19
46
|
const conflicts = [];
|
|
47
|
+
const ownershipConflicts = [];
|
|
20
48
|
const overwritten = [];
|
|
49
|
+
const writes = [];
|
|
50
|
+
const deletes = [];
|
|
51
|
+
const currentFiles = new Map();
|
|
21
52
|
for (const file of rendered) {
|
|
22
|
-
|
|
53
|
+
if (file.kind === "template")
|
|
54
|
+
validateTemplatePath(file.path);
|
|
23
55
|
await assertSafeDestination(project.root, file.path);
|
|
24
56
|
const destination = resolve(project.root, file.path);
|
|
25
|
-
const current = await readFile(destination
|
|
57
|
+
const current = await readFile(destination).catch((error) => {
|
|
26
58
|
if (isNotFound(error))
|
|
27
59
|
return null;
|
|
28
60
|
throw error;
|
|
29
61
|
});
|
|
30
|
-
if (current === null)
|
|
62
|
+
if (current === null) {
|
|
31
63
|
created.push(file.path);
|
|
32
|
-
|
|
64
|
+
writes.push(file);
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
currentFiles.set(file.path, current);
|
|
68
|
+
if (sameContent(current, file.content)) {
|
|
33
69
|
existing.push(file.path);
|
|
34
|
-
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const safelyManagedAdapter = file.kind === "adapter" && isManagedAdapter(file.path, current.toString("utf8"));
|
|
73
|
+
const safelyManagedTemplate = file.kind === "template" && currentManaged.get(file.path) === sha256(current);
|
|
74
|
+
const safelyManagedLock = file.path === ".agents/config/framework.lock.yaml" && currentManaged.size > 0;
|
|
75
|
+
if (options.force || safelyManagedAdapter || safelyManagedTemplate || safelyManagedLock) {
|
|
35
76
|
overwritten.push(file.path);
|
|
36
|
-
|
|
77
|
+
writes.push(file);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
37
80
|
conflicts.push(file.path);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
for (const path of await flatRuleFiles(project.root)) {
|
|
84
|
+
const current = await readFile(resolve(project.root, path), "utf8");
|
|
85
|
+
currentFiles.set(path, Buffer.from(current, "utf8"));
|
|
86
|
+
const expected = currentManaged.get(path);
|
|
87
|
+
if (!FLAT_FRAMEWORK_RULES.has(path)) {
|
|
88
|
+
conflicts.push(path);
|
|
89
|
+
ownershipConflicts.push(path);
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
if (options.force || (expected !== undefined && sha256(current) === expected)) {
|
|
93
|
+
overwritten.push(path);
|
|
94
|
+
deletes.push({ path });
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
conflicts.push(path);
|
|
98
|
+
}
|
|
99
|
+
const backupPath = options.force && currentFiles.size > 0
|
|
100
|
+
? await availableBackupPath(project.root, options.now)
|
|
101
|
+
: null;
|
|
102
|
+
if (options.dryRun || ownershipConflicts.length > 0 || (conflicts.length > 0 && !options.force)) {
|
|
103
|
+
return result(project, created, existing, conflicts, overwritten, backupPath, options.dryRun ?? false, false);
|
|
38
104
|
}
|
|
39
|
-
|
|
40
|
-
if (options.force && agentsExists && !options.dryRun && options.yes !== true) {
|
|
105
|
+
if (options.force && backupPath !== null && options.yes !== true) {
|
|
41
106
|
if (options.confirmForce === undefined) {
|
|
42
107
|
throw new Error("--force requires --yes in a non-interactive terminal");
|
|
43
108
|
}
|
|
44
|
-
const confirmed = await options.confirmForce(`Create backup ${basename(backupPath)} and
|
|
109
|
+
const confirmed = await options.confirmForce(`Create backup ${basename(backupPath)} and overwrite managed template files?`);
|
|
45
110
|
if (!confirmed)
|
|
46
111
|
throw new Error("Installation cancelled by user");
|
|
47
112
|
}
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return
|
|
113
|
+
if (backupPath !== null)
|
|
114
|
+
await createBackup(project.root, backupPath, currentFiles);
|
|
115
|
+
await applyTransactionalChanges(project.root, writes, deletes, options.failAfterWrites);
|
|
116
|
+
const localCodexConfig = rendered.find((file) => file.path === ".codex/config.toml");
|
|
117
|
+
const globalCodexConfig = !(options.installGlobalCodexConfig ?? options.templateDirectory === undefined) ||
|
|
118
|
+
localCodexConfig === undefined ||
|
|
119
|
+
typeof localCodexConfig.content !== "string"
|
|
120
|
+
? undefined
|
|
121
|
+
: await installGlobalCodexConfig(GLOBAL_CODEX_CONFIG, options.codexHome, join(project.root, ".codex", "config.toml"));
|
|
122
|
+
return {
|
|
123
|
+
...result(project, created, existing, conflicts, overwritten, backupPath, false, true),
|
|
124
|
+
...(globalCodexConfig === undefined ? {} : { globalCodexConfig }),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function templateAgentCatalog(files) {
|
|
128
|
+
const source = files.find((file) => file.path === ".agents/config/agents/catalog.yaml")?.content;
|
|
129
|
+
return typeof source === "string" ? parsePublicAgentCatalog(source) : undefined;
|
|
58
130
|
}
|
|
59
|
-
function renderTemplate(files, projectName) {
|
|
131
|
+
function renderTemplate(files, projectName, frameworkVersion) {
|
|
60
132
|
const projectId = normalizeProjectId(projectName);
|
|
61
133
|
const rendered = files
|
|
62
134
|
.filter((file) => file.path !== ".agents/config/framework.lock.yaml")
|
|
63
135
|
.map((file) => ({
|
|
64
136
|
path: file.path,
|
|
65
|
-
content: file.content
|
|
66
|
-
.
|
|
67
|
-
|
|
137
|
+
content: typeof file.content === "string"
|
|
138
|
+
? file.content
|
|
139
|
+
.replaceAll("{{PROJECT_NAME}}", yamlString(projectName))
|
|
140
|
+
.replaceAll("{{PROJECT_ID}}", yamlString(projectId))
|
|
141
|
+
: file.content,
|
|
142
|
+
kind: "template",
|
|
68
143
|
}));
|
|
69
144
|
const managed = rendered.filter((file) => !file.path.startsWith(".agents/config/"));
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
145
|
+
rendered.push({
|
|
146
|
+
path: ".agents/config/framework.lock.yaml",
|
|
147
|
+
content: frameworkLock(managed, frameworkVersion),
|
|
148
|
+
kind: "template",
|
|
149
|
+
});
|
|
150
|
+
return rendered;
|
|
73
151
|
}
|
|
74
|
-
function frameworkLock(files) {
|
|
152
|
+
function frameworkLock(files, frameworkVersion) {
|
|
75
153
|
const lines = [
|
|
76
|
-
"lock_version:
|
|
154
|
+
"lock_version: 2",
|
|
77
155
|
"framework:",
|
|
78
|
-
|
|
156
|
+
` version: ${yamlString(frameworkVersion)}`,
|
|
79
157
|
" distribution_sha256: null",
|
|
80
158
|
"layout:",
|
|
81
159
|
" version: 2",
|
|
@@ -85,59 +163,76 @@ function frameworkLock(files) {
|
|
|
85
163
|
"managed_files:",
|
|
86
164
|
];
|
|
87
165
|
for (const file of files) {
|
|
88
|
-
lines.push(` ${yamlString(file.path)}
|
|
166
|
+
lines.push(` ${yamlString(file.path)}: ${sha256(file.content)}`);
|
|
89
167
|
}
|
|
90
168
|
return `${lines.join("\n")}\n`;
|
|
91
169
|
}
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
170
|
+
function lockEntries(lock) {
|
|
171
|
+
const result = new Map();
|
|
172
|
+
const lines = lock.split(/\r?\n/);
|
|
173
|
+
let inManaged = false;
|
|
174
|
+
let current = null;
|
|
175
|
+
for (const line of lines) {
|
|
176
|
+
if (line === "managed_files:") {
|
|
177
|
+
inManaged = true;
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
if (!inManaged)
|
|
181
|
+
continue;
|
|
182
|
+
const compactMatch = /^ {2}(?:"([^"]+)"|([^:]+)): ([a-f0-9]{64})$/.exec(line);
|
|
183
|
+
if (compactMatch !== null) {
|
|
184
|
+
result.set(compactMatch[1] ?? compactMatch[2], compactMatch[3]);
|
|
185
|
+
current = null;
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
const pathMatch = /^ {2}(?:"([^"]+)"|([^:]+)):$/.exec(line);
|
|
189
|
+
if (pathMatch !== null) {
|
|
190
|
+
current = pathMatch[1] ?? pathMatch[2] ?? null;
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
const hashMatch = /^ {4}sha256: ([a-f0-9]{64})$/.exec(line);
|
|
194
|
+
if (current !== null && hashMatch !== null) {
|
|
195
|
+
result.set(current, hashMatch[1]);
|
|
196
|
+
current = null;
|
|
100
197
|
}
|
|
101
198
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
199
|
+
return result;
|
|
200
|
+
}
|
|
201
|
+
async function flatRuleFiles(root) {
|
|
202
|
+
const directory = resolve(root, ".agents/rules");
|
|
203
|
+
const entries = await readdir(directory, { withFileTypes: true }).catch((error) => {
|
|
204
|
+
if (isNotFound(error))
|
|
205
|
+
return [];
|
|
105
206
|
throw error;
|
|
106
|
-
}
|
|
207
|
+
});
|
|
208
|
+
return entries
|
|
209
|
+
.filter((entry) => entry.isFile())
|
|
210
|
+
.map((entry) => `.agents/rules/${entry.name}`)
|
|
211
|
+
.sort();
|
|
107
212
|
}
|
|
108
|
-
async function
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
catch (error) {
|
|
115
|
-
await rm(agentsPath, { recursive: true, force: true });
|
|
116
|
-
await cp(backupPath, agentsPath, { recursive: true, errorOnExist: true, force: false });
|
|
213
|
+
async function createBackup(root, backupPath, currentFiles) {
|
|
214
|
+
const agentsPath = resolve(root, ".agents");
|
|
215
|
+
const agentsInfo = await lstat(agentsPath).catch((error) => {
|
|
216
|
+
if (isNotFound(error))
|
|
217
|
+
return null;
|
|
117
218
|
throw error;
|
|
219
|
+
});
|
|
220
|
+
if (agentsInfo?.isDirectory()) {
|
|
221
|
+
await cp(agentsPath, backupPath, { recursive: true, errorOnExist: true, force: false });
|
|
118
222
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
current = join(current, part);
|
|
129
|
-
const info = await lstat(current).catch((error) => {
|
|
130
|
-
if (isNotFound(error))
|
|
131
|
-
return null;
|
|
132
|
-
throw error;
|
|
133
|
-
});
|
|
134
|
-
if (info?.isSymbolicLink())
|
|
135
|
-
throw new Error(`Refusing to write through symlink: ${relative(root, current)}`);
|
|
223
|
+
else {
|
|
224
|
+
await mkdir(backupPath, { recursive: false });
|
|
225
|
+
}
|
|
226
|
+
for (const [path, content] of currentFiles) {
|
|
227
|
+
if (path.startsWith(".agents/"))
|
|
228
|
+
continue;
|
|
229
|
+
const destination = resolve(backupPath, "_adapters", path);
|
|
230
|
+
await mkdir(dirname(destination), { recursive: true });
|
|
231
|
+
await writeFile(destination, content, { flag: "wx" });
|
|
136
232
|
}
|
|
137
233
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
throw new Error("Refusing to replace a symlinked .agents path");
|
|
234
|
+
function sameContent(current, expected) {
|
|
235
|
+
return current.equals(typeof expected === "string" ? Buffer.from(expected, "utf8") : expected);
|
|
141
236
|
}
|
|
142
237
|
async function availableBackupPath(root, now = new Date()) {
|
|
143
238
|
const stamp = now.toISOString().slice(0, 19).replaceAll(":", "");
|
|
@@ -1 +1 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AC/B,CAAC;AAED,KAAK,UAAU,UAAU,CAAC,IAAY;IACpC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CACrB,GAAG,EAAE,CAAC,IAAI,EACV,CAAC,KAAc,EAAE,EAAE;QACjB,IAAI,UAAU,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QACpC,MAAM,KAAK,CAAC;IACd,CAAC,CACF,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,KAAK,YAAY,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC;AAC9E,CAAC;AAED,SAAS,MAAM,CACb,OAAgD,EAChD,OAA0B,EAC1B,QAA2B,EAC3B,SAA4B,EAC5B,WAA8B,EAC9B,UAAyB,EACzB,MAAe,EACf,OAAgB;IAEhB,OAAO;QACL,GAAG,OAAO;QACV,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,EAAE;QAC5B,QAAQ,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,IAAI,EAAE;QAC9B,SAAS,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,IAAI,EAAE;QAChC,WAAW,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,IAAI,EAAE;QACpC,UAAU;QACV,MAAM;QACN,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"install-agents-template.js","sourceRoot":"","sources":["../../src/services/install-agents-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE7D,OAAO,EAAE,Y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CAAC,IAAI,EAAE;QACpC,UAAU;QACV,MAAM;QACN,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/services/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,WAAW,CACzB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,UAAQ,GACd,IAAI,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/services/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,WAAW,CACzB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,UAAQ,GACd,IAAI,CA4DN"}
|
package/dist/services/logger.js
CHANGED
|
@@ -17,15 +17,25 @@ export function printResult(stream, result, version, verbose = false) {
|
|
|
17
17
|
if (result.overwritten.length > 0) {
|
|
18
18
|
write(stream, `✓ ${result.overwritten.length} arquivos ${result.dryRun ? "seriam substituídos" : "foram substituídos"} com backup disponível\n`);
|
|
19
19
|
}
|
|
20
|
+
if (result.globalCodexConfig !== undefined) {
|
|
21
|
+
if (result.globalCodexConfig.installed) {
|
|
22
|
+
write(stream, `✓ Configuração global do Codex instalada: ${result.globalCodexConfig.path}\n`);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
write(stream, `âš Não foi possÃvel instalar a configuração global do Codex em ${result.globalCodexConfig.path}. Copie manualmente ${result.globalCodexConfig.sourcePath} para esse caminho e tente novamente. Detalhe: ${result.globalCodexConfig.error}\n`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
20
28
|
if (verbose) {
|
|
21
29
|
printPaths(stream, "Adicionados", result.created);
|
|
22
30
|
printPaths(stream, "Preservados", result.existing);
|
|
23
31
|
printPaths(stream, "Divergentes", result.conflicts);
|
|
24
32
|
printPaths(stream, "Substituídos", result.overwritten);
|
|
25
33
|
}
|
|
26
|
-
write(stream, result.dryRun
|
|
27
|
-
? "\
|
|
28
|
-
:
|
|
34
|
+
write(stream, !result.applied && result.conflicts.length > 0 && !result.dryRun
|
|
35
|
+
? "\nInstalação bloqueada antes de qualquer alteração. Resolva os conflitos ou use --force --yes após revisar o backup planejado.\n"
|
|
36
|
+
: result.dryRun
|
|
37
|
+
? "\nPlano concluído. Remova --dry-run para aplicar.\n"
|
|
38
|
+
: "\nZaip-AIOS foi configurado com sucesso.\n\nPróximos passos:\n 1. Revise .agents/config/project.yaml\n 2. Ajuste Rules e Requirements do projeto\n 3. Execute o agente desejado\n");
|
|
29
39
|
}
|
|
30
40
|
function printPaths(stream, label, paths) {
|
|
31
41
|
if (paths.length === 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/services/logger.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,WAAW,CACzB,MAAgB,EAChB,MAAkB,EAClB,OAAe,EACf,OAAO,GAAG,KAAK;IAEf,KAAK,CAAC,MAAM,EAAE,kBAAkB,OAAO,MAAM,CAAC,CAAC;IAC/C,KAAK,CACH,MAAM,EACN,MAAM,CAAC,YAAY;QACjB,CAAC,CAAC,6BAA6B,MAAM,CAAC,IAAI,IAAI;QAC9C,CAAC,CAAC,6CAA6C,MAAM,CAAC,IAAI,IAAI,CACjE,CAAC;IACF,KAAK,CAAC,MAAM,EAAE,+CAA+C,CAAC,CAAC;IAC/D,IAAI,MAAM,CAAC,MAAM;QAAE,KAAK,CAAC,MAAM,EAAE,8CAA8C,CAAC,CAAC;IACjF,IA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AK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAC/B,KAAK,CAAC,MAAM,EAAE,KAAK,KAAK,KAAK,CAAC,CAAC;IAC/B,KAAK,MAAM,IAAI,IAAI,KAAK;QAAE,KAAK,CAAC,MAAM,EAAE,OAAO,IAAI,IAAI,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,KAAK,CAAC,MAAgB,EAAE,KAAa;IAC5C,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.test.d.ts","sourceRoot":"","sources":["../../src/services/logger.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PassThrough } from "node:stream";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
import { printResult } from "./logger.js";
|
|
4
|
+
describe("printResult", () => {
|
|
5
|
+
it("reports the absolute portable config source when global installation fails", () => {
|
|
6
|
+
const output = new PassThrough();
|
|
7
|
+
let text = "";
|
|
8
|
+
output.on("data", (chunk) => {
|
|
9
|
+
text += chunk.toString("utf8");
|
|
10
|
+
});
|
|
11
|
+
printResult(output, {
|
|
12
|
+
root: "C:/work/project",
|
|
13
|
+
gitRootFound: true,
|
|
14
|
+
created: [],
|
|
15
|
+
existing: [],
|
|
16
|
+
conflicts: [],
|
|
17
|
+
overwritten: [],
|
|
18
|
+
backupPath: null,
|
|
19
|
+
dryRun: false,
|
|
20
|
+
applied: true,
|
|
21
|
+
globalCodexConfig: {
|
|
22
|
+
path: "C:/users/example/.codex/config.toml",
|
|
23
|
+
sourcePath: "C:/work/project/.codex/config.toml",
|
|
24
|
+
installed: false,
|
|
25
|
+
error: "access denied",
|
|
26
|
+
},
|
|
27
|
+
}, "1.0.0");
|
|
28
|
+
expect(text).toContain("C:/work/project/.codex/config.toml");
|
|
29
|
+
expect(text).toContain("C:/users/example/.codex/config.toml");
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=logger.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.test.js","sourceRoot":"","sources":["../../src/services/logger.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,4EAA4E,EAAE,GAAG,EAAE;QACpF,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,IAAI,IAAI,GAAG,EAAE,CAAC;QACd,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE;YAClC,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,WAAW,CACT,MAAM,EACN;YACE,IAAI,EAAE,iBAAiB;YACvB,YAAY,EAAE,IAAI;YAClB,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,EAAE;YACZ,SAAS,EAAE,EAAE;YACb,WAAW,EAAE,EAAE;YACf,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,IAAI;YACb,iBAAiB,EAAE;gBACjB,IAAI,EAAE,qCAAqC;gBAC3C,UAAU,EAAE,oCAAoC;gBAChD,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,eAAe;aACvB;SACF,EACD,OAAO,CACR,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,oCAAoC,CAAC,CAAC;QAC7D,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,qCAAqC,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-template.test.d.ts","sourceRoot":"","sources":["../../src/services/runtime-template.test.ts"],"names":[],"mappings":""}
|