@zaip-ai/cli 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/services/adapters.d.ts +1 -1
  2. package/dist/services/adapters.js +1 -1
  3. package/package.json +1 -1
  4. package/templates/.agents/README-ENG.md +9 -0
  5. package/templates/.agents/README.md +9 -0
  6. package/templates/.agents/config/agents/discovery.json +1 -1
  7. package/templates/.agents/dashboard/.zaip-managed.json +95 -55
  8. package/templates/.agents/dashboard/apps/frontend/dist/assets/{CostCalculationGuidePage-w6pjt4OM.js → CostCalculationGuidePage-uR-asJv_.js} +1 -1
  9. package/templates/.agents/dashboard/apps/frontend/dist/assets/{DashboardHelpDialog-DhlntQcR.js → DashboardHelpDialog-CngnpoLL.js} +12 -3
  10. package/templates/.agents/dashboard/apps/frontend/dist/assets/{PricingSettingsDialog-BHoZT2an.js → PricingSettingsDialog-Bszw3ekd.js} +1 -1
  11. package/templates/.agents/dashboard/apps/frontend/dist/assets/{ProjectSettingsPage-IcncIZ9Y.js → ProjectSettingsPage-IJ1znG4w.js} +1 -1
  12. package/templates/.agents/dashboard/apps/frontend/dist/assets/{TraceabilityWorkspace-C6rORjpr.js → TraceabilityWorkspace-CsBpHqq_.js} +1 -1
  13. package/templates/.agents/dashboard/apps/frontend/dist/assets/{cost-monitor-uPnOBShc.js → cost-monitor-B0Jwz_rk.js} +4 -4
  14. package/templates/.agents/dashboard/apps/frontend/dist/assets/{dashboard-localization-DWXjEIgc.js → dashboard-localization-D41g5rdo.js} +9 -0
  15. package/templates/.agents/dashboard/apps/frontend/dist/assets/{icons-vendor-Hc9fp_gs.js → icons-vendor-CjGGux6h.js} +1 -1
  16. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-Bedlm0f7.js +2 -0
  17. package/templates/.agents/dashboard/apps/frontend/dist/assets/{react-vendor-C9ta_O10.js → react-vendor-B9jZSAKf.js} +1 -1
  18. package/templates/.agents/dashboard/apps/frontend/dist/assets/{traceability-IcefoTOv.js → traceability-DFpwb0TN.js} +1 -1
  19. package/templates/.agents/dashboard/apps/frontend/dist/index.html +5 -5
  20. package/templates/.agents/dashboard/apps/frontend/package.json +2 -2
  21. package/templates/.agents/dashboard/apps/frontend/src/AppDashboardContent.tsx +3 -0
  22. package/templates/.agents/dashboard/apps/frontend/src/AppOverlays.tsx +16 -7
  23. package/templates/.agents/dashboard/apps/frontend/src/__tests__/app-composition-support.ts +1 -0
  24. package/templates/.agents/dashboard/apps/frontend/src/cost-period-refresh.test.ts +1 -1
  25. package/templates/.agents/dashboard/apps/frontend/src/operations-period-render.test.ts +2 -0
  26. package/templates/.agents/dashboard/apps/frontend/src/use-app-trace-documents.navigation.test.tsx +125 -0
  27. package/templates/.agents/dashboard/apps/frontend/src/use-app-trace-documents.ts +67 -9
  28. package/templates/.agents/dashboard/apps/frontend/src/use-dashboard-app-model.tsx +15 -15
  29. package/templates/.agents/dashboard/apps/frontend/src/use-dashboard-locale.ts +18 -0
  30. package/templates/.agents/dashboard/modules/cost-monitor/package.json +1 -1
  31. package/templates/.agents/dashboard/modules/operations/package.json +1 -1
  32. package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverview.tsx +4 -39
  33. package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverviewTopPanel.navigation.test.tsx +150 -0
  34. package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverviewTopPanel.tsx +7 -3
  35. package/templates/.agents/dashboard/modules/operations/src/react/OperationsPage.tsx +4 -7
  36. package/templates/.agents/dashboard/modules/operations/src/react/OperationsPageOverview.tsx +3 -0
  37. package/templates/.agents/dashboard/modules/operations/src/react/operations-overview-contract.ts +51 -0
  38. package/templates/.agents/dashboard/modules/operations/src/react/operations-overview-period-filter.test.ts +5 -1
  39. package/templates/.agents/dashboard/modules/operations/src/react/operations-page-contract.ts +1 -0
  40. package/templates/.agents/dashboard/modules/operations/src/react/use-operations-default-range.ts +16 -0
  41. package/templates/.agents/dashboard/modules/traceability/package.json +1 -1
  42. package/templates/.agents/dashboard/packages/branding/package.json +1 -1
  43. package/templates/.agents/dashboard/packages/contracts/package.json +1 -1
  44. package/templates/.agents/dashboard/packages/data-export/package.json +1 -1
  45. package/templates/.agents/dashboard/packages/local-runtime/dashboard-build-fingerprint.mjs +87 -0
  46. package/templates/.agents/dashboard/packages/local-runtime/dashboard-build-fingerprint.test.mjs +48 -0
  47. package/templates/.agents/dashboard/packages/local-runtime/package.json +1 -1
  48. package/templates/.agents/dashboard/packages/local-runtime/scripts/build-frontend.mjs +29 -0
  49. package/templates/.agents/dashboard/packages/local-runtime/scripts/build-sqlite-runtime.mjs +5 -0
  50. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard-build.mjs +12 -5
  51. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard-paths.mjs +8 -0
  52. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard.test.mjs +1 -0
  53. package/templates/.agents/dashboard/packages/ui/package.json +1 -1
  54. package/templates/.agents/dashboard/tests/e2e/package.json +1 -1
  55. package/templates/.agents/dashboard/tests/e2e/qualify-top-five-trace.mjs +53 -0
  56. package/templates/.agents/dashboard/tests/e2e/verify-top-five-served.mjs +78 -0
  57. package/templates/.agents/design/.zaip-managed.json +14 -6
  58. package/templates/.agents/design/apps/catalog/dist/assets/index-BGxXxXTo.js +72 -0
  59. package/templates/.agents/design/apps/catalog/dist/index.html +1 -1
  60. package/templates/.agents/design/apps/catalog/package.json +1 -1
  61. package/templates/.agents/design/apps/catalog/src/components/TopEntitiesSpecimen.tsx +45 -0
  62. package/templates/.agents/design/apps/catalog/src/pages/ComponentsPage.tsx +3 -1
  63. package/templates/.agents/design/apps/catalog/src/stories/Components.stories.tsx +2 -0
  64. package/templates/.agents/design/packages/local-runtime/package.json +1 -1
  65. package/templates/.agents/requirements/autonomous-assurance.md +1 -1
  66. package/templates/.agents/requirements/cloud-hostinger-autonomy.md +1 -1
  67. package/templates/.agents/requirements/comparative-audit.md +1 -1
  68. package/templates/.agents/requirements/context-engine.md +1 -1
  69. package/templates/.agents/requirements/cost-observability.md +1 -1
  70. package/templates/.agents/requirements/dashboard-launch.md +1 -1
  71. package/templates/.agents/requirements/data-export.md +1 -1
  72. package/templates/.agents/requirements/design-system.md +1 -1
  73. package/templates/.agents/requirements/execution-engine.md +1 -1
  74. package/templates/.agents/requirements/kanban-dashboard.md +1 -1
  75. package/templates/.agents/requirements/model-orchestration.md +1 -1
  76. package/templates/.agents/requirements/public-distribution.md +1 -1
  77. package/templates/.agents/requirements/software-architecture.md +1 -1
  78. package/templates/.agents/requirements/strategic-improvements.md +1 -1
  79. package/templates/.agents/requirements/work-lifecycle.md +1 -1
  80. package/templates/.agents/requirements/zaip-strategic-95.md +1 -1
  81. package/templates/.agents/runtime/VERSION +1 -1
  82. package/templates/.agents/runtime/bin/zaip.mjs +10 -10
  83. package/templates/.agents/runtime/checksums.sha256 +6 -6
  84. package/templates/.agents/runtime/manifest.json +1 -1
  85. package/templates/.agents/runtime/pnpm-lock.sha256 +1 -1
  86. package/templates/.agents/runtime/provenance.json +5 -5
  87. package/templates/.agents/runtime/sbom.cdx.json +1 -1
  88. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract-cli.test.mjs +53 -0
  89. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract.test.mjs +1 -32
  90. package/templates/.agents/zaip-aios/VERSION +1 -1
  91. package/templates/.agents/zaip-aios/guides/10-seguranca.md +2 -2
  92. package/templates/template-manifest.json +146 -94
  93. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-BqeOEZW5.js +0 -2
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <meta name="description" content="Design system e catálogo de componentes do repositório ZAIP." />
7
7
  <title>ZAIP Design System</title>
8
- <script type="module" crossorigin src="./assets/index-D3uhpycC.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-BGxXxXTo.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="./assets/index-D1JaPXfV.css">
10
10
  </head>
11
11
  <body>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaip-ai/design-catalog",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -0,0 +1,45 @@
1
+ import { useState } from "react";
2
+ import { Button, Card } from "./Primitives.js";
3
+
4
+ const fixtures = {
5
+ task: { label: "Tarefas", id: "TASK-EXEMPLO", title: "Implementar navegação" },
6
+ spec: { label: "SPECs", id: "SPEC-EXEMPLO", title: "Navegação do dashboard" },
7
+ prd: { label: "PRDs", id: "PRD-EXEMPLO", title: "Rastreabilidade do trabalho" },
8
+ } as const;
9
+
10
+ /** Native catalog adapter: production routing remains in OperationsOverviewTopPanel. */
11
+ export function TopEntitiesSpecimen() {
12
+ const [kind, setKind] = useState<keyof typeof fixtures>("task");
13
+ const [selected, setSelected] = useState<string | null>(null);
14
+ const item = fixtures[kind];
15
+ return (
16
+ <Card>
17
+ <section className="specimen-row" aria-label="Tipo de item do Top 5">
18
+ {Object.entries(fixtures).map(([value, fixture]) => (
19
+ <Button
20
+ key={value}
21
+ aria-pressed={kind === value}
22
+ onClick={() => {
23
+ setKind(value as keyof typeof fixtures);
24
+ setSelected(null);
25
+ }}
26
+ >
27
+ {fixture.label}
28
+ </Button>
29
+ ))}
30
+ </section>
31
+ <p>Top 5 {item.label}: mouse, Enter ou Espaço selecionam o item da barra.</p>
32
+ <Button
33
+ aria-label={`Abrir detalhes de ${item.title}: 2 h`}
34
+ onClick={() => setSelected(`${item.id} — ${item.title}`)}
35
+ >
36
+ 2 h · {item.title}
37
+ </Button>
38
+ <p role="status">
39
+ {selected
40
+ ? `Destino do popup de rastreabilidade: ${selected}`
41
+ : "Selecione uma barra para conferir o destino do popup."}
42
+ </p>
43
+ </Card>
44
+ );
45
+ }
@@ -34,6 +34,7 @@ import {
34
34
  StackVersionFieldSpecimen,
35
35
  stackVersionFieldFixtures,
36
36
  } from "../components/StackVersionFieldSpecimen.js";
37
+ import { TopEntitiesSpecimen } from "../components/TopEntitiesSpecimen.js";
37
38
  import {
38
39
  WorkspaceStatusSpecimen,
39
40
  workspaceStatusFixtures,
@@ -216,9 +217,10 @@ export function ComponentsPage() {
216
217
  </Section>
217
218
  <Section
218
219
  title="Gráficos"
219
- description="Visualizações possuem título descritivo, comparação consistente e alternativa textual."
220
+ description="Visualizações possuem título descritivo, comparação consistente e alternativa textual. No Top 5, todas as barras de Tarefas, SPECs e PRDs abrem o popup do item selecionado; a troca de modo preserva esse contrato."
220
221
  >
221
222
  <ChartPanel />
223
+ <TopEntitiesSpecimen />
222
224
  </Section>
223
225
  <Section
224
226
  title="Carregando, vazio e erro"
@@ -27,6 +27,7 @@ import {
27
27
  StackVersionFieldSpecimen,
28
28
  stackVersionFieldFixtures,
29
29
  } from "../components/StackVersionFieldSpecimen.js";
30
+ import { TopEntitiesSpecimen } from "../components/TopEntitiesSpecimen.js";
30
31
  import { ComponentsPage } from "../pages/ComponentsPage.js";
31
32
 
32
33
  const meta = {
@@ -38,6 +39,7 @@ const meta = {
38
39
  export default meta;
39
40
  type Story = StoryObj<typeof meta>;
40
41
  export const Catalog: Story = {};
42
+ export const TopEntitiesNavigation: Story = { render: () => <TopEntitiesSpecimen /> };
41
43
  export const EstimatedCosts: Story = {
42
44
  render: () => (
43
45
  <div className="metric-grid">
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaip-ai/design-local-runtime",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -6,7 +6,7 @@ title: Garantia adaptativa e execução autônoma
6
6
  status: active
7
7
  version: 6
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Garantia adaptativa e execução autônoma
@@ -6,7 +6,7 @@ title: Autonomia delimitada para Cloudflare e Hostinger
6
6
  status: proposed
7
7
  version: 1
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Cloudflare e Hostinger (proposta de requisito)
@@ -6,7 +6,7 @@ title: Auditoria comparativa e plano de evolução
6
6
  status: active
7
7
  version: 1
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Auditoria comparativa e plano de evolução
@@ -6,7 +6,7 @@ title: Contexto mínimo, seguro e navegável
6
6
  status: active
7
7
  version: 9
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Context engine
@@ -6,7 +6,7 @@ title: Tokens, custos e cobertura
6
6
  status: active
7
7
  version: 10
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Cost observability
@@ -6,7 +6,7 @@ title: Inicialização e hidratação confiável do dashboard
6
6
  status: active
7
7
  version: 1
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Inicialização e hidratação confiável do dashboard
@@ -6,7 +6,7 @@ title: Exportação contextual de dados para Excel
6
6
  status: proposed
7
7
  version: 2
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Exportação contextual de dados
@@ -6,7 +6,7 @@ title: Contrato visual e catálogo executável
6
6
  status: active
7
7
  version: 5
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Design system
@@ -6,7 +6,7 @@ title: Preparação, materialização e DAG
6
6
  status: active
7
7
  version: 13
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Execution engine
@@ -6,7 +6,7 @@ title: Projeções operacionais e analíticas
6
6
  status: active
7
7
  version: 14
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Kanban and dashboard
@@ -6,7 +6,7 @@ title: Seleção automática e observável de modelo e effort
6
6
  status: active
7
7
  version: 10
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Orquestração de modelos
@@ -6,7 +6,7 @@ title: Distribuição pública e ativação
6
6
  status: active
7
7
  version: 10
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Distribuição pública e ativação
@@ -6,7 +6,7 @@ title: Layout modular e limites de código-fonte
6
6
  status: active
7
7
  version: 5
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Software architecture
@@ -6,7 +6,7 @@ title: Melhorias estratégicas de custo, qualidade e resiliência
6
6
  status: active
7
7
  version: 1
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Melhorias estratégicas de custo, qualidade e resiliência
@@ -6,7 +6,7 @@ title: Ciclo de vida do trabalho
6
6
  status: active
7
7
  version: 26
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Work lifecycle
@@ -6,7 +6,7 @@ title: Evidências, custo por Task e autonomia por SPEC
6
6
  status: active
7
7
  version: 1
8
8
  source_change: null
9
- source_release: "5.0.0"
9
+ source_release: "5.1.0"
10
10
  ---
11
11
 
12
12
  # Evidências, custo por Task e autonomia por SPEC
@@ -1 +1 @@
1
- 5.0.0
1
+ 5.1.0