@zaip-ai/cli 1.0.8 → 1.3.1
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 +1 -1
- package/dist/services/adapters.d.ts +1 -1
- package/dist/services/adapters.js +1 -1
- package/dist/services/agent-adapters.js +3 -3
- package/dist/services/agent-adapters.js.map +1 -1
- package/dist/services/agent-adapters.test.js +7 -1
- package/dist/services/agent-adapters.test.js.map +1 -1
- package/dist/services/codex-pre-tool-hook-template.d.ts.map +1 -1
- package/dist/services/codex-pre-tool-hook-template.js +89 -7
- package/dist/services/codex-pre-tool-hook-template.js.map +1 -1
- package/dist/services/codex-rules.d.ts +1 -1
- package/dist/services/codex-rules.d.ts.map +1 -1
- package/dist/services/codex-rules.js +7 -0
- package/dist/services/codex-rules.js.map +1 -1
- package/dist/services/install-agents-template.d.ts.map +1 -1
- package/dist/services/install-agents-template.js +1 -0
- package/dist/services/install-agents-template.js.map +1 -1
- package/dist/services/logger.test.js +2 -2
- package/dist/services/runtime-template.test.js +31 -7
- package/dist/services/runtime-template.test.js.map +1 -1
- package/dist/services/template-manifest.d.ts.map +1 -1
- package/dist/services/template-manifest.js +12 -3
- package/dist/services/template-manifest.js.map +1 -1
- package/package.json +1 -1
- package/templates/.agents/architecture/software-architecture.md +131 -0
- package/templates/.agents/branding/brandbook.docx +0 -0
- package/templates/.agents/branding/brandbook.md +60 -0
- package/templates/.agents/config/agents/catalog.yaml +7 -7
- package/templates/.agents/config/clients/codex/agents/zaip-agent-backend.toml +2 -2
- package/templates/.agents/config/clients/codex/agents/zaip-agent-designer.toml +2 -2
- package/templates/.agents/config/clients/codex/agents/zaip-agent-finalizer.toml +1 -1
- package/templates/.agents/config/clients/codex/agents/zaip-agent-frontend.toml +8 -8
- package/templates/.agents/config/clients/codex/agents/zaip-agent-orchestrator.toml +1 -1
- package/templates/.agents/dashboard/.tmp-run-list.json +254 -0
- package/templates/.agents/dashboard/.zaip-managed.json +457 -173
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{CostCalculationGuidePage-Z60df2r-.js → CostCalculationGuidePage-ovxurkIk.js} +1 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/DashboardHelpDialog-BgVgrfhQ.js +2310 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{PricingSettingsDialog-Coc6pA-1.js → PricingSettingsDialog-vSvvOHQp.js} +1 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-BomxqCBU.css +1 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-zH758vfs.js +3 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/TraceabilityWorkspace-DLn-Mz2M.js +1 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{TraceabilityWorkspace-CaKwQP43.css → TraceabilityWorkspace-DvvavDLY.css} +1 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-DKwP1stV.js +68 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-PoJA2PI1.css +1 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{icons-vendor-DFBuc_qp.js → icons-vendor-B_lDDHn1.js} +1 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/index-B31GMG5O.css +1 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/index-CZQlsLV9.js +2 -0
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{react-vendor-CCQOHdVI.js → react-vendor-B3TJrD4O.js} +1 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/{traceability-pC2_0J8x.js → traceability-7f1j5wx3.js} +1 -1
- package/templates/.agents/dashboard/apps/frontend/dist/index.html +7 -7
- package/templates/.agents/dashboard/apps/frontend/package.json +1 -1
- package/templates/.agents/dashboard/apps/frontend/playwright.dom.config.ts +32 -0
- package/templates/.agents/dashboard/apps/frontend/src/App.tsx +199 -140
- package/templates/.agents/dashboard/apps/frontend/src/AppOverlays.tsx +0 -21
- package/templates/.agents/dashboard/apps/frontend/src/DashboardAlternateContent.tsx +20 -11
- package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsPage.tsx +14 -7
- package/templates/.agents/dashboard/apps/frontend/src/ProjectStackEditor.tsx +4 -2
- package/templates/.agents/dashboard/apps/frontend/src/TraceabilityWorkspace.dom.e2e.ts +56 -0
- package/templates/.agents/dashboard/apps/frontend/src/TraceabilityWorkspace.test.ts +21 -2
- package/templates/.agents/dashboard/apps/frontend/src/TraceabilityWorkspace.tsx +89 -19
- package/templates/.agents/dashboard/apps/frontend/src/cost-period-refresh.test.ts +19 -4
- package/templates/.agents/dashboard/apps/frontend/src/dashboard-api.test.ts +49 -3
- package/templates/.agents/dashboard/apps/frontend/src/dashboard-api.ts +29 -10
- package/templates/.agents/dashboard/apps/frontend/src/operations-period-render.test.ts +4 -4
- package/templates/.agents/dashboard/apps/frontend/src/overview-status-page.test.ts +4 -2
- package/templates/.agents/dashboard/apps/frontend/src/project-settings-page.css +36 -26
- package/templates/.agents/dashboard/apps/frontend/src/project-settings.test.ts +2 -2
- package/templates/.agents/dashboard/apps/frontend/src/snapshot-banner-semantics.test.ts +47 -6
- package/templates/.agents/dashboard/apps/frontend/src/snapshot-coherence.test.ts +59 -9
- package/templates/.agents/dashboard/apps/frontend/src/sqlite-page-export.test.ts +32 -0
- package/templates/.agents/dashboard/apps/frontend/src/sqlite-page-export.ts +21 -0
- package/templates/.agents/dashboard/apps/frontend/src/styles.css +19 -0
- package/templates/.agents/dashboard/apps/frontend/src/traceability-task-pagination.test.ts +32 -0
- package/templates/.agents/dashboard/apps/frontend/src/traceability-task-pagination.ts +36 -0
- package/templates/.agents/dashboard/apps/frontend/src/traceability-workspace.css +6 -2
- package/templates/.agents/dashboard/apps/frontend/src/use-app-cost-loaders.test.ts +137 -23
- package/templates/.agents/dashboard/apps/frontend/src/use-app-cost-loaders.ts +229 -35
- package/templates/.agents/dashboard/apps/frontend/src/use-app-effects.ts +61 -7
- package/templates/.agents/dashboard/apps/frontend/src/use-app-operations-pages.ts +3 -6
- package/templates/.agents/dashboard/apps/frontend/src/use-app-trace-documents.ts +7 -1
- package/templates/.agents/dashboard/apps/frontend/src/use-app-work-list-page.test.ts +163 -0
- package/templates/.agents/dashboard/apps/frontend/src/use-app-work-list-page.ts +136 -0
- package/templates/.agents/dashboard/apps/frontend/src/use-operations-detail-export.ts +76 -0
- package/templates/.agents/dashboard/apps/frontend/src/work-list-load-dedup.test.ts +23 -0
- package/templates/.agents/dashboard/apps/frontend/src/work-list-load-dedup.ts +27 -0
- package/templates/.agents/dashboard/apps/frontend/src/work-list-pagination.test.ts +39 -15
- package/templates/.agents/dashboard/apps/frontend/src/work-list-pagination.ts +3 -4
- package/templates/.agents/dashboard/apps/frontend/vite.config.ts +4 -1
- package/templates/.agents/dashboard/modules/cost-monitor/package.json +1 -1
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CompactLifecycleCostTable.test.ts +89 -19
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CompactLifecycleCostTable.tsx +31 -16
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostCharts.test.ts +43 -14
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostCharts.tsx +5 -5
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostDeveloperAttributionPanel.tsx +60 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostDeveloperAttributionTable.tsx +191 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostFilters.loading.test.ts +14 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostFilters.run-page.test.ts +18 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostFilters.tsx +18 -3
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostModelsAuditTable.tsx +1 -1
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorContent.tsx +75 -44
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorLoadErrors.tsx +35 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorPage.test.ts +162 -40
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorPage.tsx +221 -79
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTableLoading.test.ts +132 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTableLoading.tsx +70 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTables.test.ts +203 -155
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTables.tsx +164 -125
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-copy.ts +2 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-views.ts +3 -1
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor.css +5 -2
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-page-range.ts +35 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/index.ts +2 -2
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/period-cost-groups.ts +2 -1
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-compact-cost-page.ts +32 -9
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-cost-group-page.test.ts +37 -2
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-cost-group-page.ts +131 -9
- package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-cost-run-page.ts +34 -17
- package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-monitor-projection.test.ts +0 -24
- package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-summary-projection.test.ts +225 -424
- package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-summary-projection.ts +24 -15
- package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-summary-terminal-day.test.ts +6 -1
- package/templates/.agents/dashboard/modules/cost-monitor/src/server/source-size-cost-server/build-cost-monitor-projection-agents.test.ts +31 -0
- package/templates/.agents/dashboard/modules/cost-monitor/src/server/source-size-cost-server/build-cost-summary-projection-duration.test.ts +414 -0
- package/templates/.agents/dashboard/modules/operations/package.json +1 -1
- package/templates/.agents/dashboard/modules/operations/src/contracts.ts +46 -26
- package/templates/.agents/dashboard/modules/operations/src/react/DeveloperAttributionPanel.test.ts +54 -0
- package/templates/.agents/dashboard/modules/operations/src/react/DeveloperAttributionPanel.tsx +247 -0
- package/templates/.agents/dashboard/modules/operations/src/react/EntityTables.tsx +31 -11
- package/templates/.agents/dashboard/modules/operations/src/react/OperationsMainContent.tsx +39 -13
- package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverview.helpers.tsx +107 -2
- package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverview.macro-metrics.test.ts +55 -0
- package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverview.test.ts +23 -29
- package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverview.tsx +211 -184
- package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverviewTopPanel.tsx +127 -0
- package/templates/.agents/dashboard/modules/operations/src/react/OperationsPage.tsx +60 -51
- package/templates/.agents/dashboard/modules/operations/src/react/OperationsPageNavigation.tsx +1 -4
- package/templates/.agents/dashboard/modules/operations/src/react/OperationsPageOverview.tsx +3 -0
- package/templates/.agents/dashboard/modules/operations/src/react/PagedWorkList.test.tsx +43 -0
- package/templates/.agents/dashboard/modules/operations/src/react/PagedWorkList.tsx +181 -0
- package/templates/.agents/dashboard/modules/operations/src/react/PeriodSummaryTable.tsx +32 -10
- package/templates/.agents/dashboard/modules/operations/src/react/TaskDetailsDialog.tsx +9 -3
- package/templates/.agents/dashboard/modules/operations/src/react/UnifiedWorkBoard.tsx +13 -5
- package/templates/.agents/dashboard/modules/operations/src/react/UnifiedWorkList.test.ts +16 -6
- package/templates/.agents/dashboard/modules/operations/src/react/UnifiedWorkList.tsx +14 -4
- package/templates/.agents/dashboard/modules/operations/src/react/conversation-rows.ts +1 -2
- package/templates/.agents/dashboard/modules/operations/src/react/developer-identities.test.ts +18 -0
- package/templates/.agents/dashboard/modules/operations/src/react/developer-identities.ts +30 -0
- package/templates/.agents/dashboard/modules/operations/src/react/execution-metrics.ts +1 -0
- package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportAction.test.ts +393 -4
- package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportAction.tsx +484 -61
- package/templates/.agents/dashboard/modules/operations/src/react/export/export-layout.test.ts +23 -1
- package/templates/.agents/dashboard/modules/operations/src/react/export/xlsx-runtime-e2e.test.ts +248 -0
- package/templates/.agents/dashboard/modules/operations/src/react/index.ts +1 -0
- package/templates/.agents/dashboard/modules/operations/src/react/operation-duration.test.ts +4 -4
- package/templates/.agents/dashboard/modules/operations/src/react/operation-duration.ts +6 -4
- package/templates/.agents/dashboard/modules/operations/src/react/operations-coverage-toast.test.ts +4 -3
- package/templates/.agents/dashboard/modules/operations/src/react/operations-date-filters.css +1 -1
- package/templates/.agents/dashboard/modules/operations/src/react/operations-global-filters.test.ts +4 -1
- package/templates/.agents/dashboard/modules/operations/src/react/operations-overview-period-filter.test.ts +22 -12
- package/templates/.agents/dashboard/modules/operations/src/react/operations-overview.css +4 -0
- package/templates/.agents/dashboard/modules/operations/src/react/operations-overview.status-cards.test.ts +1 -1
- package/templates/.agents/dashboard/modules/operations/src/react/operations-page-contract.ts +53 -6
- package/templates/.agents/dashboard/modules/operations/src/react/operations-view-order.test.ts +2 -4
- package/templates/.agents/dashboard/modules/operations/src/react/period-summary.test.ts +82 -6
- package/templates/.agents/dashboard/modules/operations/src/react/period-summary.ts +1 -0
- package/templates/.agents/dashboard/modules/operations/src/react/work-board-model.test.ts +2 -1
- package/templates/.agents/dashboard/modules/operations/src/react/work-board-model.ts +1 -1
- package/templates/.agents/dashboard/modules/operations/src/server/execution-relationship-counts.test.ts +19 -7
- package/templates/.agents/dashboard/modules/operations/src/server/execution-relationship-counts.ts +4 -1
- package/templates/.agents/dashboard/modules/operations/src/server/metric-coverage.ts +1 -0
- package/templates/.agents/dashboard/modules/operations/src/server/quick-daily-operations-projection.ts +11 -5
- package/templates/.agents/dashboard/modules/traceability/package.json +1 -1
- package/templates/.agents/dashboard/packages/branding/package.json +1 -1
- package/templates/.agents/dashboard/packages/branding/src/index.ts +1 -1
- package/templates/.agents/dashboard/packages/contracts/package.json +1 -1
- package/templates/.agents/dashboard/packages/contracts/src/index.ts +1 -0
- package/templates/.agents/dashboard/packages/data-export/package.json +1 -1
- package/templates/.agents/dashboard/packages/local-runtime/dist/server.cjs +533 -338
- package/templates/.agents/dashboard/packages/local-runtime/dist/sqlite-read-model.cjs +506 -311
- package/templates/.agents/dashboard/packages/local-runtime/gitignore.template +2 -0
- package/templates/.agents/dashboard/packages/local-runtime/package.json +1 -1
- package/templates/.agents/dashboard/packages/local-runtime/scripts/build-sqlite-dashboard.mjs +15 -7
- package/templates/.agents/dashboard/packages/local-runtime/scripts/build-sqlite-runtime.mjs +44 -13
- package/templates/.agents/dashboard/packages/local-runtime/scripts/rebuild-sqlite-read-model.mjs +8 -3
- package/templates/.agents/dashboard/packages/local-runtime/scripts/source-size-runtime-scripts/sqlite-read-model-fixture.mjs +397 -0
- package/templates/.agents/dashboard/packages/local-runtime/scripts/test-sqlite-read-model.mjs +472 -145
- package/templates/.agents/dashboard/packages/local-runtime/scripts/test-unix-launchers.mjs +15 -3
- package/templates/.agents/dashboard/packages/local-runtime/scripts/validate-sqlite-read-model.mjs +141 -33
- package/templates/.agents/dashboard/packages/local-runtime/server.mjs +533 -338
- package/templates/.agents/dashboard/packages/local-runtime/src/project-settings.test.ts +6 -2
- package/templates/.agents/dashboard/packages/local-runtime/src/project-settings.ts +3 -3
- package/templates/.agents/dashboard/packages/local-runtime/src/server-board.test.ts +89 -16
- package/templates/.agents/dashboard/packages/local-runtime/src/server-board.ts +33 -16
- package/templates/.agents/dashboard/packages/local-runtime/src/server-classification-page.test.ts +87 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server-period-macro-metric.test.ts +44 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server-period-macro-metric.ts +125 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server-reconciliation-refresh.test.ts +66 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server-request-authority.test.ts +61 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server-request-authority.ts +18 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server-run-projections.test.ts +42 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server-snapshot-refresh.ts +97 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server-snapshot.test.ts +22 -5
- package/templates/.agents/dashboard/packages/local-runtime/src/server-sqlite-task-trace.ts +91 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server-workspace.ts +7 -3
- package/templates/.agents/dashboard/packages/local-runtime/src/server.test-fixtures.ts +36 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/server.test.ts +230 -132
- package/templates/.agents/dashboard/packages/local-runtime/src/server.ts +224 -182
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-artifact-counts.ts +28 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-agent-page.test.ts +63 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-agent-page.ts +109 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-aggregates.ts +497 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-fast-page-parity.test-support.ts +65 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-group-page.test.ts +176 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-group-page.ts +119 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-group-projection.ts +41 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-invocation-page.test.ts +16 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-invocation-page.ts +29 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-first-fold-cache.ts +355 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-first-fold-persistence.ts +121 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-first-fold-timing.ts +27 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-metric-contract.ts +16 -2
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-operations-projection.ts +15 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-operations-work-list.test.ts +223 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-operations-work-list.ts +304 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-cache.test-support.ts +23 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-first-fold-types.ts +89 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-multi-provider-fixture.ts +227 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-multi-provider.test.ts +691 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-source-fingerprint.ts +81 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model.test.ts +1655 -567
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model.ts +2168 -1268
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-snapshot-cache.ts +129 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-snapshot-install.test.ts +26 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-snapshot-install.ts +28 -0
- package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-snapshot-seed.test.ts +116 -0
- package/templates/.agents/dashboard/packages/local-runtime/start-dashboard-launch-page.mjs +146 -0
- package/templates/.agents/dashboard/packages/local-runtime/start-dashboard-launch-page.test.mjs +165 -0
- package/templates/.agents/dashboard/packages/local-runtime/start-dashboard-refresh.mjs +140 -0
- package/templates/.agents/dashboard/packages/local-runtime/start-dashboard.mjs +255 -289
- package/templates/.agents/dashboard/packages/local-runtime/start-dashboard.test.mjs +94 -88
- package/templates/.agents/dashboard/packages/ui/package.json +1 -1
- package/templates/.agents/dashboard/packages/windows-launcher/Program.cs +5 -2
- package/templates/.agents/dashboard/tests/e2e/package.json +1 -1
- package/templates/.agents/dashboard/tests/e2e/playwright.config.ts +4 -1
- package/templates/.agents/dashboard/tests/e2e/specs/cost-monitor-loading.spec.ts +142 -0
- package/templates/.agents/dashboard/tests/e2e/specs/cost-monitor-pagination.spec.ts +232 -0
- package/templates/.agents/dashboard/tests/e2e/specs/dashboard-performance-matrix.spec.ts +743 -0
- package/templates/.agents/dashboard/tests/e2e/specs/dashboard.spec.ts +189 -214
- package/templates/.agents/dashboard/zaip-dashboard-windows.exe +0 -0
- package/templates/.agents/design/.zaip-managed.json +3 -3
- package/templates/.agents/design/apps/catalog/package.json +1 -1
- package/templates/.agents/design/packages/local-runtime/package.json +1 -1
- package/templates/.agents/growth/estrategia-bootstrap-90-dias.md +169 -0
- package/templates/.agents/growth/strategy.md +27 -0
- package/templates/.agents/marketing/estrategia-marketing-zaip-90-dias.md +197 -0
- package/templates/.agents/marketing/strategy.md +29 -0
- package/templates/.agents/requirements/autonomous-assurance.md +6 -6
- package/templates/.agents/requirements/comparative-audit.md +1 -1
- package/templates/.agents/requirements/context-engine.md +1 -1
- package/templates/.agents/requirements/cost-observability.md +1 -1
- package/templates/.agents/requirements/dashboard-launch.md +1 -1
- package/templates/.agents/requirements/data-export.md +1 -1
- package/templates/.agents/requirements/design-system.md +1 -1
- package/templates/.agents/requirements/execution-engine.md +3 -3
- package/templates/.agents/requirements/kanban-dashboard.md +10 -2
- package/templates/.agents/requirements/model-orchestration.md +1 -1
- package/templates/.agents/requirements/public-distribution.md +1 -1
- package/templates/.agents/requirements/software-architecture.md +1 -1
- package/templates/.agents/requirements/strategic-improvements.md +1 -1
- package/templates/.agents/requirements/work-lifecycle.md +4 -4
- package/templates/.agents/requirements/zaip-strategic-95.md +1 -1
- package/templates/.agents/rules/dashboard-ui-consistency.md +14 -0
- package/templates/.agents/rules/frontend-lite.md +4 -4
- package/templates/.agents/rules/run-lifecycle-closure.md +4 -4
- package/templates/.agents/runtime/VERSION +1 -1
- package/templates/.agents/runtime/bin/zaip.mjs +1142 -1041
- package/templates/.agents/runtime/checksums.sha256 +6 -6
- package/templates/.agents/runtime/manifest.json +1 -1
- package/templates/.agents/runtime/pnpm-lock.sha256 +1 -1
- package/templates/.agents/runtime/provenance.json +5 -5
- package/templates/.agents/runtime/sbom.cdx.json +3 -3
- package/templates/.agents/sales/playbook.md +32 -0
- package/templates/.agents/sales/roteiro-comercial-zaip.md +252 -0
- package/templates/.agents/skills/criar-pasta-obsidian/scripts/generate-obsidian-vault.test.mjs +20 -16
- package/templates/.agents/skills/zaip-aios/SKILL.md +1 -1
- package/templates/.agents/skills/zaip-skill-agent-catalog/SKILL.md +22 -0
- package/templates/.agents/skills/zaip-skill-agent-catalog/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-author-skills/SKILL.md +3 -2
- package/templates/.agents/skills/zaip-skill-author-skills/scripts/audit-skill-catalog.mjs +49 -0
- package/templates/.agents/skills/zaip-skill-author-skills/scripts/author-skill-scripts.test.mjs +27 -0
- package/templates/.agents/skills/zaip-skill-author-skills/scripts/run-skill-tests.mjs +37 -0
- package/templates/.agents/skills/zaip-skill-backend/SKILL.md +1 -0
- package/templates/.agents/skills/zaip-skill-brand-governance/SKILL.md +9 -2
- package/templates/.agents/skills/zaip-skill-brand-governance/references/brandbook-framework.md +39 -0
- package/templates/.agents/skills/zaip-skill-brand-governance/references/brandbook-standards.md +1 -1
- package/templates/.agents/skills/zaip-skill-change/SKILL.md +1 -1
- package/templates/.agents/skills/zaip-skill-change/references/observable-evidence.md +83 -0
- package/templates/.agents/skills/zaip-skill-dashboard-diagnostics/SKILL.md +22 -0
- package/templates/.agents/skills/zaip-skill-dashboard-diagnostics/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-enforce-architecture/SKILL.md +2 -0
- package/templates/.agents/skills/zaip-skill-execution/SKILL.md +1 -1
- package/templates/.agents/skills/zaip-skill-frontend/SKILL.md +4 -3
- package/templates/.agents/skills/zaip-skill-frontend/agents/openai.yaml +2 -2
- package/templates/.agents/skills/zaip-skill-github-deploy/SKILL.md +10 -10
- package/templates/.agents/skills/zaip-skill-growth-strategy-revops/SKILL.md +6 -0
- package/templates/.agents/skills/zaip-skill-lifecycle-closure/SKILL.md +27 -0
- package/templates/.agents/skills/zaip-skill-lifecycle-closure/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-marketing/SKILL.md +6 -0
- package/templates/.agents/skills/zaip-skill-prd/SKILL.md +4 -0
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-local-telemetry.mjs +111 -104
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-explicit-recovery.mjs +223 -0
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.mjs +55 -9
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.test.mjs +145 -14
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-remeasurement.mjs +19 -9
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-remeasurement.test.mjs +82 -5
- package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/source-size-telemetry/model-identity-reconciliation.mjs +77 -0
- package/templates/.agents/skills/zaip-skill-release-qualification/SKILL.md +20 -0
- package/templates/.agents/skills/zaip-skill-release-qualification/agents/openai.yaml +4 -0
- package/templates/.agents/skills/zaip-skill-review/SKILL.md +5 -0
- package/templates/.agents/skills/zaip-skill-rules/SKILL.md +1 -1
- package/templates/.agents/skills/zaip-skill-sales-methodology/SKILL.md +6 -0
- package/templates/.agents/skills/zaip-skill-spec/SKILL.md +4 -0
- package/templates/.agents/skills/zaip-skill-sqlite-read-model/SKILL.md +22 -90
- package/templates/.agents/skills/zaip-skill-sqlite-read-model/scripts/ensure-node.mjs +28 -5
- package/templates/.agents/zaip-aios/INDEX.md +57 -22
- package/templates/.agents/zaip-aios/README.md +24 -13
- package/templates/.agents/zaip-aios/VERSION +1 -1
- package/templates/.agents/zaip-aios/guides/02-requirements.md +5 -0
- package/templates/.agents/zaip-aios/guides/06-execucao.md +13 -4
- package/templates/.agents/zaip-aios/guides/07-revisao-e-validacao.md +7 -0
- package/templates/.agents/zaip-aios/guides/10-seguranca.md +23 -0
- package/templates/.agents/zaip-aios/guides/11-observabilidade-e-custos.md +6 -6
- package/templates/.agents/zaip-aios/guides/13-boas-praticas.md +3 -0
- package/templates/.agents/zaip-aios/guides/16-lifecycle-e-reconciliacao.md +12 -3
- package/templates/.agents/zaip-aios/guides/17-como-o-custo-e-calculado.md +5 -5
- package/templates/.agents/zaip-aios/guides/18-catalogo-de-agentes.md +76 -0
- package/templates/.agents/zaip-aios/guides/19-assurance-e-autonomia.md +95 -0
- package/templates/.agents/zaip-aios/guides/20-instalacao-detalhada.md +366 -0
- package/templates/.agents/zaip-aios/guides/21-telemetria-monitor-custos.md +46 -0
- package/templates/.agents/zaip-aios/guides/22-fluxos-e-roteamento.md +74 -0
- package/templates/.agents/zaip-aios/guides/23-orquestracao-de-modelos.md +483 -0
- package/templates/.agents/zaip-aios/guides/24-calculo-de-custos-openai.md +85 -0
- package/templates/.agents/zaip-aios/guides/25-fontes-de-precos-openai.md +19 -0
- package/templates/.agents/zaip-aios/guides/26-qualidade-e-release.md +111 -0
- package/templates/.agents/zaip-aios/guides/27-telemetria-git-native.md +172 -0
- package/templates/.agents/zaip-aios/guides/28-lifecycle-completo.md +149 -0
- package/templates/.agents/zaip-aios/guides/assets/diagrams/lifecycles-task-spec-prd.png +0 -0
- package/templates/.agents/zaip-aios/guides/assets/diagrams/prd-lifecycle.png +0 -0
- package/templates/.agents/zaip-aios/guides/assets/diagrams/spec-lifecycle.png +0 -0
- package/templates/.agents/zaip-aios/guides/assets/diagrams/task-lifecycle.png +0 -0
- package/templates/template-manifest.json +756 -235
- package/templates/.agents/dashboard/apps/frontend/dist/assets/DashboardHelpDialog-Cs6dzDmW.js +0 -1505
- package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-QE1k9yZB.css +0 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-_Pf5DA_A.js +0 -3
- package/templates/.agents/dashboard/apps/frontend/dist/assets/TraceabilityWorkspace-BVlz3DLZ.js +0 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-BZ5WdaMN.css +0 -1
- package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-Cf9ctPVt.js +0 -68
- package/templates/.agents/dashboard/apps/frontend/dist/assets/index-8A4DcNXM.js +0 -2
- package/templates/.agents/dashboard/apps/frontend/dist/assets/index-DK_enB5Z.css +0 -1
- package/templates/.agents/dashboard/apps/frontend/src/use-idle-cost-prefetch.ts +0 -45
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-manifest.d.ts","sourceRoot":"","sources":["../../src/services/template-manifest.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,CAAC,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,oBAAoB;IAC9D,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,WAA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MAAM,CAEvD;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,GAC7D,MAAM,CAQR"}
|
|
@@ -14,8 +14,7 @@ export async function loadTemplate(directory = defaultTemplateDirectory(), curre
|
|
|
14
14
|
throw new Error(`Template ${manifest.templateVersion} requires CLI ${manifest.minimumCliVersion} or newer; current CLI is ${currentCliVersion}`);
|
|
15
15
|
}
|
|
16
16
|
const files = await mapWithConcurrency(manifest.files, 32, async (record) => {
|
|
17
|
-
const
|
|
18
|
-
const bytes = await readFile(absolute);
|
|
17
|
+
const bytes = await readFile(resolve(directory, record.sourcePath ?? record.path));
|
|
19
18
|
const content = record.binary ? bytes : bytes.toString("utf8");
|
|
20
19
|
const actual = sha256(content);
|
|
21
20
|
if (actual !== record.sha256) {
|
|
@@ -53,6 +52,11 @@ export function validateTemplatePath(path) {
|
|
|
53
52
|
"data",
|
|
54
53
|
"dashboard",
|
|
55
54
|
"design",
|
|
55
|
+
"architecture",
|
|
56
|
+
"branding",
|
|
57
|
+
"growth",
|
|
58
|
+
"marketing",
|
|
59
|
+
"sales",
|
|
56
60
|
]).has(root)) {
|
|
57
61
|
throw new Error(`Template path is outside the public V2 roots: ${path}`);
|
|
58
62
|
}
|
|
@@ -127,7 +131,7 @@ function validateManifest(value) {
|
|
|
127
131
|
throw new Error("Invalid manifest file fields");
|
|
128
132
|
}
|
|
129
133
|
validateTemplatePath(file.path);
|
|
130
|
-
if (file.sourcePath !== undefined && file.sourcePath !==
|
|
134
|
+
if (file.sourcePath !== undefined && file.sourcePath !== templateStoragePath(file.path)) {
|
|
131
135
|
throw new Error(`Invalid template source path: ${file.sourcePath}`);
|
|
132
136
|
}
|
|
133
137
|
if (seen.has(file.path))
|
|
@@ -150,6 +154,11 @@ function validateManifest(value) {
|
|
|
150
154
|
files,
|
|
151
155
|
};
|
|
152
156
|
}
|
|
157
|
+
function templateStoragePath(path) {
|
|
158
|
+
return path.endsWith("/.gitignore")
|
|
159
|
+
? `${path.slice(0, -".gitignore".length)}gitignore.template`
|
|
160
|
+
: path;
|
|
161
|
+
}
|
|
153
162
|
function compareVersions(left, right) {
|
|
154
163
|
const parse = (value) => {
|
|
155
164
|
const match = /^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-manifest.js","sourceRoot":"","sources":["../../src/services/template-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA4BzC,MAAM,UAAU,wBAAwB;IACtC,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,SAAS,GAAG,wBAAwB,EAAE,EACtC,iBAA0B;IAE1B,MAAM,YAAY,GAAG,OAAO,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC;IAClE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,CAAY,CAAC;IAC3E,MAAM,QAAQ,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC1C,IACE,iBAAiB,KAAK,SAAS;QAC/B,eAAe,CAAC,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAClE,CAAC;QACD,MAAM,IAAI,KAAK,CACb,YAAY,QAAQ,CAAC,eAAe,iBAAiB,QAAQ,CAAC,iBAAiB,6BAA6B,iBAAiB,EAAE,CAChI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AAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAC7D,KAAK,IAAI,EAAE;QACT,OAAO,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;YAC5B,MAAM,KAAK,GAAG,IAAI,CAAC;YACnB,IAAI,IAAI,CAAC,CAAC;YACV,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAM,EAAE,KAAK,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC,CACF,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
schema_version: 1
|
|
3
|
+
kind: software-architecture
|
|
4
|
+
generated_from: .agents/config/project.yaml
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Arquitetura de Software
|
|
8
|
+
|
|
9
|
+
> Projeção gerada automaticamente pela página de configurações a partir de `.agents/config/project.yaml`. Não edite este arquivo manualmente.
|
|
10
|
+
|
|
11
|
+
## Projeto
|
|
12
|
+
|
|
13
|
+
- **Nome:** zaip-aios
|
|
14
|
+
- **ID:** zaip-aios
|
|
15
|
+
- **Timezone:** America/Sao_Paulo
|
|
16
|
+
|
|
17
|
+
## Perfil técnico
|
|
18
|
+
|
|
19
|
+
- **Stack profile:** zaip-aios-stack
|
|
20
|
+
- **Linguagem:** typescript
|
|
21
|
+
- **API:** hono
|
|
22
|
+
- **Query builder:** kysely
|
|
23
|
+
|
|
24
|
+
## Execução
|
|
25
|
+
|
|
26
|
+
- **Runtime:** autonomous
|
|
27
|
+
- **Provider:** codex
|
|
28
|
+
- **Modelo-base:** gpt-5.6-terra
|
|
29
|
+
- **Paralelismo máximo:** 3
|
|
30
|
+
- **Lease configurado:** 60000 ms
|
|
31
|
+
- **Limite total de invocações:** 24
|
|
32
|
+
|
|
33
|
+
## Assurance
|
|
34
|
+
|
|
35
|
+
- **Versão:** 1
|
|
36
|
+
- **Profundidade padrão:** auto
|
|
37
|
+
- **Exigir commit final:** Sim
|
|
38
|
+
|
|
39
|
+
## Componentes e versões
|
|
40
|
+
|
|
41
|
+
| Responsabilidade | Tecnologia | Versão exata | Pacote / imagem / serviço |
|
|
42
|
+
| --- | --- | --- | --- |
|
|
43
|
+
| Linguagem principal | TypeScript | 7.0.2 | npm:typescript |
|
|
44
|
+
| Runtime backend | Node.js | 22.16.0 | runtime:node |
|
|
45
|
+
| Framework backend / API | Hono | 4.12.34 | npm:hono |
|
|
46
|
+
| Query builder | Kysely | Não fixada | npm:kysely |
|
|
47
|
+
| Banco de dados | PostgreSQL via Supabase | Não fixada | service:supabase-postgresql |
|
|
48
|
+
| Autenticação e Storage | Supabase Auth + Storage | Não fixada | service:supabase |
|
|
49
|
+
| Cache e mensageria | Redis | 6.2.1 | npm:redis |
|
|
50
|
+
| Filas e processamento assíncrono | BullMQ | 6.2.0 | npm:bullmq |
|
|
51
|
+
| Infraestrutura backend | Hostinger VPS | Não fixada | provider:hostinger-vps |
|
|
52
|
+
| Framework do Web App | React | 19.2.7 | npm:react |
|
|
53
|
+
| Linguagem do Web App | TypeScript | 7.0.2 | npm:typescript |
|
|
54
|
+
| Build do Web App | Vite | 8.1.4 | npm:vite |
|
|
55
|
+
| Hospedagem do frontend | Cloudflare Pages | Não fixada | provider:cloudflare-pages |
|
|
56
|
+
| Framework do site | Astro | 7.2.4 | npm:astro |
|
|
57
|
+
| Linguagem do site | TypeScript | 7.0.2 | npm:typescript |
|
|
58
|
+
| Componentes interativos | React Islands | 19.2.7 | npm:react |
|
|
59
|
+
| Build do site | Vite | 8.1.4 | npm:vite |
|
|
60
|
+
| Hospedagem do site | Cloudflare Pages | Não fixada | provider:cloudflare-pages |
|
|
61
|
+
|
|
62
|
+
## Superfícies
|
|
63
|
+
|
|
64
|
+
### Web App — Frontend
|
|
65
|
+
|
|
66
|
+
- React
|
|
67
|
+
- TypeScript
|
|
68
|
+
- Vite
|
|
69
|
+
- Cloudflare Pages
|
|
70
|
+
|
|
71
|
+
### Backend
|
|
72
|
+
|
|
73
|
+
- Node.js
|
|
74
|
+
- TypeScript
|
|
75
|
+
- Hono
|
|
76
|
+
- Kysely
|
|
77
|
+
- PostgreSQL
|
|
78
|
+
- Supabase
|
|
79
|
+
- Redis
|
|
80
|
+
- BullMQ
|
|
81
|
+
- Hostinger VPS
|
|
82
|
+
|
|
83
|
+
### Site e Landing Pages
|
|
84
|
+
|
|
85
|
+
- Astro
|
|
86
|
+
- TypeScript
|
|
87
|
+
- React Islands
|
|
88
|
+
- Vite
|
|
89
|
+
- Cloudflare Pages
|
|
90
|
+
|
|
91
|
+
## Decisões de arquitetura
|
|
92
|
+
|
|
93
|
+
### Dados e serviços gerenciados
|
|
94
|
+
|
|
95
|
+
- Supabase: PostgreSQL, Auth, Storage and RPC/PostgreSQL Functions
|
|
96
|
+
|
|
97
|
+
### APIs e regras de negócio
|
|
98
|
+
|
|
99
|
+
- Node.js runtime with TypeScript, Hono APIs/routes/middleware and Kysely typed PostgreSQL access
|
|
100
|
+
|
|
101
|
+
### Filas e processamento assíncrono
|
|
102
|
+
|
|
103
|
+
- Redis for cache, locks and temporary state; BullMQ for queues, jobs, workers and retries
|
|
104
|
+
|
|
105
|
+
### Infraestrutura backend
|
|
106
|
+
|
|
107
|
+
- Hostinger VPS runs APIs, workers and persistent backend services
|
|
108
|
+
|
|
109
|
+
## Layout do código
|
|
110
|
+
|
|
111
|
+
| Papel | Caminho |
|
|
112
|
+
| --- | --- |
|
|
113
|
+
| frontend | apps/frontend |
|
|
114
|
+
| backend | apps/backend |
|
|
115
|
+
| site | apps/site |
|
|
116
|
+
| modules | modules |
|
|
117
|
+
| packages | packages |
|
|
118
|
+
| e2e | tests/e2e |
|
|
119
|
+
|
|
120
|
+
## Invariantes
|
|
121
|
+
|
|
122
|
+
- clean-architecture
|
|
123
|
+
- cqrs
|
|
124
|
+
- module-storage-private
|
|
125
|
+
|
|
126
|
+
## Comandos de validação
|
|
127
|
+
|
|
128
|
+
| Comando | Execução |
|
|
129
|
+
| --- | --- |
|
|
130
|
+
| test | `corepack pnpm test` |
|
|
131
|
+
| typecheck | `corepack pnpm typecheck` |
|
|
Binary file
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Brandbook Zaip v1.0
|
|
2
|
+
|
|
3
|
+
**Classificação:** uso interno e confidencial
|
|
4
|
+
**Marca:** Zaip
|
|
5
|
+
**Assinatura descritiva:** Zaip AI
|
|
6
|
+
**Razão social:** Zaip Tecnologia Estratégica
|
|
7
|
+
|
|
8
|
+
## Plataforma
|
|
9
|
+
|
|
10
|
+
**Propósito:** transformar o WhatsApp em uma operação comercial previsível para PMEs.
|
|
11
|
+
**Posicionamento:** IA comercial para WhatsApp com processo, CRM e fechamento inteligente.
|
|
12
|
+
**Promessa:** toda conversa recebe contexto, processo e o próximo passo comercial certo.
|
|
13
|
+
**Lema:** transforme conversas em receita previsível.
|
|
14
|
+
|
|
15
|
+
## Quem somos
|
|
16
|
+
|
|
17
|
+
Somos a Zaip Tecnologia Estratégica, criadora da marca Zaip e da tecnologia ZAIP-AIOS. Desenvolvemos IA comercial que conecta processo de vendas, CRM, recuperação de conversas e handoff humano.
|
|
18
|
+
|
|
19
|
+
## Nossa história
|
|
20
|
+
|
|
21
|
+
A Zaip surgiu de um problema vivido pelo fundador ao operar uma loja virtual: atender manualmente o volume de leads com velocidade e consistência era inviável. A tese inicial era e-commerce; com o aprendizado, a marca pivotou para agências de marketing e PMEs prestadoras de serviço, onde o WhatsApp é central à receita.
|
|
22
|
+
|
|
23
|
+
## Visão futura
|
|
24
|
+
|
|
25
|
+
Tornar-se uma das maiores empresas de IA comercial do Brasil, com R$100 milhões de faturamento. Um possível exit estratégico é cenário de negócio, não a promessa central de marca.
|
|
26
|
+
|
|
27
|
+
## DNA e crenças
|
|
28
|
+
|
|
29
|
+
- Processo, inteligência aplicada, resultado verificável, continuidade humana e clareza.
|
|
30
|
+
- Venda é processo, não improviso.
|
|
31
|
+
- IA só vale quando melhora uma operação real.
|
|
32
|
+
- Handoff humano é continuidade de experiência, não falha da automação.
|
|
33
|
+
|
|
34
|
+
## Personalidade e voz
|
|
35
|
+
|
|
36
|
+
Confiável, sólida, comercial, inteligente, objetiva e humana. A voz é profissional, direta e segura; explica mecanismo e prova, sem hype, promessas universais ou jargão vazio.
|
|
37
|
+
|
|
38
|
+
## Arquitetura
|
|
39
|
+
|
|
40
|
+
**Casa com marca (branded house):** Zaip é a marca central; Zaip AI é assinatura de categoria; ZAIP-AIOS é tecnologia proprietária da Zaip.
|
|
41
|
+
|
|
42
|
+
## Arquétipos — hipótese de trabalho
|
|
43
|
+
|
|
44
|
+
- Governante: 45% — ordem e previsibilidade.
|
|
45
|
+
- Sábio: 35% — contexto, evidência e clareza.
|
|
46
|
+
- Mago: 20% — transformação por IA aplicada.
|
|
47
|
+
|
|
48
|
+
Os pesos são perfil desejado e não pesquisa de percepção.
|
|
49
|
+
|
|
50
|
+
## Prova prioritária
|
|
51
|
+
|
|
52
|
+
Até 11x de ROI no primeiro mês em operação real com a Moradigna. A comunicação deve contextualizar o case e nunca prometer resultado universal.
|
|
53
|
+
|
|
54
|
+
## Identidade visual
|
|
55
|
+
|
|
56
|
+
Zaip Cyan `#00B0F0`; Zaip Deep Navy `#010610`; preto `#000000`; branco `#FFFFFF`. Use os ativos aprovados nesta pasta e aplique contraste forte, espaço negativo e acento ciano com contenção.
|
|
57
|
+
|
|
58
|
+
## Governança
|
|
59
|
+
|
|
60
|
+
O Brandbook completo de leitura está em `Brandbook Mestre Zaip v1.0.docx`. Atualize este Markdown e o DOCX na mesma mudança; arquive versões substituídas em `archive/`.
|
|
@@ -851,9 +851,9 @@ agents:
|
|
|
851
851
|
- agent-orchestrator
|
|
852
852
|
- id: agent-frontend
|
|
853
853
|
version: 1
|
|
854
|
-
purpose: Implement
|
|
855
|
-
use_when: ["apps/frontend
|
|
856
|
-
do_not_use: ["Dashboard/
|
|
854
|
+
purpose: Implement frontend experiences, accessibility, and component integration using the central visual contract.
|
|
855
|
+
use_when: ["apps/frontend/**, dashboard React surfaces, or explicit frontend capability."]
|
|
856
|
+
do_not_use: ["Dashboard runtime/SQLite/server, institutional website, backend, or central design rules."]
|
|
857
857
|
codex_name: zaip-agent-frontend
|
|
858
858
|
codex_task_name: doug_frontend_specialist_zaip_agent
|
|
859
859
|
persona: { nome: doug, cargo: frontend_specialist }
|
|
@@ -864,8 +864,8 @@ agents:
|
|
|
864
864
|
capabilities: [frontend-delivery, accessibility, component-integration]
|
|
865
865
|
execution_eligibility: [delivery]
|
|
866
866
|
tools: [apply-patch, shell-read, test-runner]
|
|
867
|
-
skills: [zaip-skill-change]
|
|
868
|
-
write_scopes: [apps/frontend/*]
|
|
867
|
+
skills: [zaip-skill-change, zaip-skill-frontend]
|
|
868
|
+
write_scopes: [apps/frontend/*, .agents/dashboard/apps/frontend/*, .agents/dashboard/modules/*/src/react/*]
|
|
869
869
|
permissions:
|
|
870
870
|
filesystem: { allow: [declared-write-scope], deny: [outside-workspace] }
|
|
871
871
|
network: { allow: [], deny: [external] }
|
|
@@ -897,7 +897,7 @@ agents:
|
|
|
897
897
|
capabilities: [backend-delivery, api-delivery, persistence-integration]
|
|
898
898
|
execution_eligibility: [delivery]
|
|
899
899
|
tools: [apply-patch, shell-read, test-runner]
|
|
900
|
-
skills: [zaip-skill-change]
|
|
900
|
+
skills: [zaip-skill-change, zaip-skill-backend]
|
|
901
901
|
write_scopes: [apps/backend/*, modules/*]
|
|
902
902
|
permissions:
|
|
903
903
|
filesystem: { allow: [declared-write-scope], deny: [outside-workspace] }
|
|
@@ -963,7 +963,7 @@ agents:
|
|
|
963
963
|
capabilities: [design-system, design-tokens, central-components, page-design]
|
|
964
964
|
execution_eligibility: [delivery]
|
|
965
965
|
tools: [apply-patch, shell-read, test-runner]
|
|
966
|
-
skills: [zaip-skill-change, zaip-skill-design-system
|
|
966
|
+
skills: [zaip-skill-change, zaip-skill-design-system]
|
|
967
967
|
write_scopes: [.agents/design/*, .agents/design/**]
|
|
968
968
|
permissions:
|
|
969
969
|
filesystem: { allow: [declared-write-scope], deny: [outside-workspace] }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# zaip-managed generated-do-not-edit source=agent-catalog schema=1 sha256=
|
|
1
|
+
# zaip-managed generated-do-not-edit source=agent-catalog schema=1 sha256=980448dfc5cf3de27223d68215fa93b40f1cdf1b7358c003ab4cb013fcdb1962
|
|
2
2
|
name = "zaip-agent-backend"
|
|
3
3
|
description = "Implement and verify backend, API, persistence, and integration boundaries inside declared scopes."
|
|
4
4
|
nickname_candidates = ["will_backend_specialist_zaip_agent"]
|
|
@@ -10,7 +10,7 @@ Operate as Codex agent zaip-agent-backend (ZAIP catalog id agent-backend) with r
|
|
|
10
10
|
Implement and verify backend, API, persistence, and integration boundaries inside declared scopes.
|
|
11
11
|
Capabilities: backend-delivery, api-delivery, persistence-integration.
|
|
12
12
|
Allowed tools: apply-patch, shell-read, test-runner.
|
|
13
|
-
Required skills: zaip-skill-change.
|
|
13
|
+
Required skills: zaip-skill-change, zaip-skill-backend.
|
|
14
14
|
Model policy: gpt-5.6-terra; select model and reasoning effort once when this Agent Run starts and keep both immutable until it finishes.
|
|
15
15
|
Write scopes: apps/backend/*, modules/*.
|
|
16
16
|
The Codex host grants workspace-write at the workspace boundary, not per-path. Treat the declared write scopes as mandatory: do not modify files outside them; report any required expansion to the parent before writing.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# zaip-managed generated-do-not-edit source=agent-catalog schema=1 sha256=
|
|
1
|
+
# zaip-managed generated-do-not-edit source=agent-catalog schema=1 sha256=415598a2e01cfb4499768238bef9c353cc52edcd8453c91807a644ad06a5e353
|
|
2
2
|
name = "zaip-agent-designer"
|
|
3
3
|
description = "Govern the design system for digital products: the central visual rule in DESIGN.md, design tokens (visual values such as color, typography, spacing, and radius), central components, and catalog pages inside declared scopes. Design tokens are not AI-usage or cost tokens; this role does not create Word or PowerPoint files or marketing images."
|
|
4
4
|
nickname_candidates = ["manu_product_designer_zaip_agent"]
|
|
@@ -10,7 +10,7 @@ Operate as Codex agent zaip-agent-designer (ZAIP catalog id agent-designer) with
|
|
|
10
10
|
Govern the design system for digital products: the central visual rule in DESIGN.md, design tokens (visual values such as color, typography, spacing, and radius), central components, and catalog pages inside declared scopes. Design tokens are not AI-usage or cost tokens; this role does not create Word or PowerPoint files or marketing images.
|
|
11
11
|
Capabilities: design-system, design-tokens, central-components, page-design.
|
|
12
12
|
Allowed tools: apply-patch, shell-read, test-runner.
|
|
13
|
-
Required skills: zaip-skill-change, zaip-skill-design-system
|
|
13
|
+
Required skills: zaip-skill-change, zaip-skill-design-system.
|
|
14
14
|
Model policy: gpt-5.6-terra; select model and reasoning effort once when this Agent Run starts and keep both immutable until it finishes.
|
|
15
15
|
Write scopes: .agents/design/*, .agents/design/**.
|
|
16
16
|
The Codex host grants workspace-write at the workspace boundary, not per-path. Treat the declared write scopes as mandatory: do not modify files outside them; report any required expansion to the parent before writing.
|
|
@@ -19,7 +19,7 @@ Outputs: terminal-outcome, status-reason, evidence-refs.
|
|
|
19
19
|
Evidence: finalization-decision.
|
|
20
20
|
Use when: Mandatorily as the final Sub-Run of interaction or delivery..
|
|
21
21
|
Do not use when: Before executor or reviewer finishes, or to correct code..
|
|
22
|
-
Do not approve product work.
|
|
22
|
+
Do not approve product work. Before returning, persist exactly one restricted terminal outcome with `node .agents/runtime/bin/zaip.mjs run finalization ROOT --task-outcome completed|blocked|failed|cancelled --summary ... --evidence ...`, using the real root Run ID supplied by the orchestrator. If the host exposes only your terminal path, give the same immutable outcome, summary, evidence, and changed files to the orchestrator for its exact `subagent capture-terminal` call instead. Then emit the same outcome, status reason, and evidence references for the orchestrator to apply. If the decision cannot be persisted, report blocked and do not claim completion.
|
|
23
23
|
You are a worker selected by zaip-agent-orchestrator. Do not dispatch peer catalog roles; return your bounded result to the orchestrator, which exclusively controls further delegation.
|
|
24
24
|
Escalate only to catalog identities: zaip-agent-auditor.
|
|
25
25
|
When delegating to a Codex subagent, select only a registered zaip-agent-NOME identity from the ZAIP catalog; never select default, worker, explorer, or an ad-hoc type.
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# zaip-managed generated-do-not-edit source=agent-catalog schema=1 sha256=
|
|
1
|
+
# zaip-managed generated-do-not-edit source=agent-catalog schema=1 sha256=dfacee5217cf8e4c826089e83d662b601b88c45670cb3664319eab4a4d93a2f1
|
|
2
2
|
name = "zaip-agent-frontend"
|
|
3
|
-
description = "Implement
|
|
3
|
+
description = "Implement frontend experiences, accessibility, and component integration using the central visual contract."
|
|
4
4
|
nickname_candidates = ["doug_frontend_specialist_zaip_agent"]
|
|
5
5
|
model = "gpt-5.6-terra"
|
|
6
6
|
model_reasoning_effort = "medium"
|
|
7
7
|
sandbox_mode = "workspace-write"
|
|
8
8
|
developer_instructions = """
|
|
9
9
|
Operate as Codex agent zaip-agent-frontend (ZAIP catalog id agent-frontend) with role builder.
|
|
10
|
-
Implement
|
|
10
|
+
Implement frontend experiences, accessibility, and component integration using the central visual contract.
|
|
11
11
|
Capabilities: frontend-delivery, accessibility, component-integration.
|
|
12
12
|
Allowed tools: apply-patch, shell-read, test-runner.
|
|
13
|
-
Required skills: zaip-skill-change.
|
|
13
|
+
Required skills: zaip-skill-change, zaip-skill-frontend.
|
|
14
14
|
Model policy: gpt-5.6-terra; select model and reasoning effort once when this Agent Run starts and keep both immutable until it finishes.
|
|
15
|
-
Write scopes: apps/frontend/*.
|
|
15
|
+
Write scopes: apps/frontend/*, .agents/dashboard/apps/frontend/*, .agents/dashboard/modules/*/src/react/*.
|
|
16
16
|
The Codex host grants workspace-write at the workspace boundary, not per-path. Treat the declared write scopes as mandatory: do not modify files outside them; report any required expansion to the parent before writing.
|
|
17
17
|
Inputs: task, requirements, .agents/design/DESIGN.md.
|
|
18
18
|
Outputs: frontend-diff, visual-verification, structured-outcome.
|
|
19
19
|
Evidence: acceptance-evidence, visual-contract-check.
|
|
20
|
-
Use when: apps/frontend
|
|
21
|
-
Do not use when: Dashboard/
|
|
22
|
-
Work
|
|
20
|
+
Use when: apps/frontend/**, dashboard React surfaces, or explicit frontend capability..
|
|
21
|
+
Do not use when: Dashboard runtime/SQLite/server, institutional website, backend, or central design rules..
|
|
22
|
+
Work in apps/frontend/** and dashboard React surfaces only; never dashboard runtime, SQLite, or server. Read .agents/design/DESIGN.md as the visual contract; escalate central design changes to zaip-agent-designer.
|
|
23
23
|
You are a worker selected by zaip-agent-orchestrator. Do not dispatch peer catalog roles; return your bounded result to the orchestrator, which exclusively controls further delegation.
|
|
24
24
|
Escalate only to catalog identities: zaip-agent-orchestrator.
|
|
25
25
|
When delegating to a Codex subagent, select only a registered zaip-agent-NOME identity from the ZAIP catalog; never select default, worker, explorer, or an ad-hoc type.
|
|
@@ -28,7 +28,7 @@ Default to one domain executor per bounded result. Bring a secondary specialist
|
|
|
28
28
|
Subagent lifecycle hooks are best-effort. Immediately after every observed spawn and terminal of every Sub-Run, also run idempotent `zaip subagent capture` for start and stop with the real host metadata. Explicit capture uses the child session and turn, `agent-id=agent_path`, `parent-agent-id` equal to the root Run `client_thread_id`, and `parent-run-id` when roots in that thread can be concurrent; successive calls on the same `agent_path` use distinct child turn IDs. If the host exposes only a terminal agent_path, terminal status, exact parent, and catalog identity, use `zaip subagent capture-terminal` only for zaip-agent-finalizer or a delivery-eligible executor with `task-delivery`; pass the exact active root as `parent-run-id` and ensure the path ends in its canonical `codex_task_name`. It records unavailable session, turn, model, provider, and usage and never replaces rich hook capture. Do not skip explicit capture because a hook is configured, and never invent missing model, effort, token, or cost fields.
|
|
29
29
|
Reviewer, auditor, and integrator Sub-Runs are permitted when their capabilities match the work.
|
|
30
30
|
After all other descendants finish, delegate one real final Sub-Run to zaip-agent-finalizer with agent_type zaip-agent-finalizer and task_name gui_quality_assurance_lead_zaip_agent. Do not finish the root Run or report a terminal Execution outcome before that Sub-Run has completed.
|
|
31
|
-
|
|
31
|
+
Give Gui the real root Run ID. After Gui persists its decision and stops, immediately apply that same immutable result with `node .agents/runtime/bin/zaip.mjs run finish ROOT --task-outcome completed|blocked|failed|cancelled`, using the same evidence plus summary and changed files. This applies to a cancelled Run too; Task/SPEC/PRD commands cannot bypass Gui. Never use a global `zaip` binary for this closure.
|
|
32
32
|
Escalate only to catalog identities: zaip-agent-auditor.
|
|
33
33
|
When delegating to a Codex subagent, select only a registered zaip-agent-NOME identity from the ZAIP catalog; never select default, worker, explorer, or an ad-hoc type.
|
|
34
34
|
When this agent is delegated, agent_type must be exactly zaip-agent-orchestrator and task_name must be exactly dave_product_owner_zaip_agent.
|