@zaip-ai/cli 3.5.0 → 3.7.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 (90) hide show
  1. package/dist/services/adapters.d.ts +1 -1
  2. package/dist/services/adapters.js +1 -1
  3. package/dist/services/codex-conversation-lifecycle-hook.d.ts.map +1 -1
  4. package/dist/services/codex-conversation-lifecycle-hook.js +37 -6
  5. package/dist/services/codex-conversation-lifecycle-hook.js.map +1 -1
  6. package/dist/services/stack-install.d.ts.map +1 -1
  7. package/dist/services/stack-install.js +19 -9
  8. package/dist/services/stack-install.js.map +1 -1
  9. package/dist/services/stack-node.d.ts.map +1 -1
  10. package/dist/services/stack-node.js +1 -1
  11. package/dist/services/stack-node.js.map +1 -1
  12. package/package.json +1 -1
  13. package/templates/.agents/config/agents/discovery.json +1 -1
  14. package/templates/.agents/dashboard/.zaip-managed.json +47 -43
  15. package/templates/.agents/dashboard/apps/frontend/dist/assets/DashboardHelpDialog-DRI_XwUf.css +1 -0
  16. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-OulA4CoX.js +3 -0
  17. package/templates/.agents/dashboard/apps/frontend/dist/assets/{TraceabilityWorkspace-BKBpJyLh.js → TraceabilityWorkspace-Ckxk_izu.js} +1 -1
  18. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-CqfSgtk9.js +2 -0
  19. package/templates/.agents/dashboard/apps/frontend/dist/assets/{index-CxrG_wRI.css → index-OBJXZOwe.css} +1 -1
  20. package/templates/.agents/dashboard/apps/frontend/dist/index.html +2 -2
  21. package/templates/.agents/dashboard/apps/frontend/package.json +1 -1
  22. package/templates/.agents/dashboard/apps/frontend/src/AppDashboardContent.tsx +0 -2
  23. package/templates/.agents/dashboard/apps/frontend/src/DashboardGlobalSettings.tsx +7 -0
  24. package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsCard.tsx +15 -2
  25. package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsPage.tsx +1 -1
  26. package/templates/.agents/dashboard/apps/frontend/src/cost-calculation-guide.css +1 -1
  27. package/templates/.agents/dashboard/apps/frontend/src/dashboard-help-dialog.css +2 -2
  28. package/templates/.agents/dashboard/apps/frontend/src/operations-entity-page-projection.ts +4 -1
  29. package/templates/.agents/dashboard/apps/frontend/src/operations-period-contract.test.ts +20 -9
  30. package/templates/.agents/dashboard/apps/frontend/src/pricing-settings-dialog.css +5 -5
  31. package/templates/.agents/dashboard/apps/frontend/src/use-app-work-board.test.ts +1 -1
  32. package/templates/.agents/dashboard/modules/cost-monitor/package.json +1 -1
  33. package/templates/.agents/dashboard/modules/operations/package.json +1 -1
  34. package/templates/.agents/dashboard/modules/operations/src/react/OperationsEntityFilters.tsx +1 -1
  35. package/templates/.agents/dashboard/modules/operations/src/react/PagedWorkList.tsx +2 -2
  36. package/templates/.agents/dashboard/modules/traceability/package.json +1 -1
  37. package/templates/.agents/dashboard/packages/branding/package.json +1 -1
  38. package/templates/.agents/dashboard/packages/contracts/package.json +1 -1
  39. package/templates/.agents/dashboard/packages/data-export/package.json +1 -1
  40. package/templates/.agents/dashboard/packages/local-runtime/dist/server.cjs +122 -122
  41. package/templates/.agents/dashboard/packages/local-runtime/dist/sqlite-read-model.cjs +2 -2
  42. package/templates/.agents/dashboard/packages/local-runtime/package.json +2 -2
  43. package/templates/.agents/dashboard/packages/local-runtime/server.mjs +124 -124
  44. package/templates/.agents/dashboard/packages/local-runtime/src/project-settings.test.ts +3 -3
  45. package/templates/.agents/dashboard/packages/local-runtime/src/server-snapshot-refresh.test.ts +2 -2
  46. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-filter-matrix.test.ts +1 -1
  47. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-pricing-provenance.test.ts +49 -13
  48. package/templates/.agents/dashboard/packages/ui/package.json +1 -1
  49. package/templates/.agents/dashboard/tests/e2e/package.json +1 -1
  50. package/templates/.agents/dashboard/tests/e2e/specs/dashboard.spec.ts +4 -6
  51. package/templates/.agents/dashboard/tests/e2e/specs/work-board-hydration.ts +38 -0
  52. package/templates/.agents/design/.zaip-managed.json +11 -7
  53. package/templates/.agents/design/apps/catalog/dist/assets/index-Cv4VfxTQ.js +72 -0
  54. package/templates/.agents/design/apps/catalog/dist/index.html +1 -1
  55. package/templates/.agents/design/apps/catalog/package.json +2 -2
  56. package/templates/.agents/design/apps/catalog/src/components/DashboardFiltersSpecimen.tsx +26 -21
  57. package/templates/.agents/design/apps/catalog/src/components/StackVersionFieldSpecimen.tsx +1 -5
  58. package/templates/.agents/design/apps/catalog/src/styles/stack-version-field.css +75 -13
  59. package/templates/.agents/design/packages/local-runtime/package.json +1 -1
  60. package/templates/.agents/requirements/autonomous-assurance.md +1 -1
  61. package/templates/.agents/requirements/cloud-hostinger-autonomy.md +1 -1
  62. package/templates/.agents/requirements/comparative-audit.md +1 -1
  63. package/templates/.agents/requirements/context-engine.md +1 -1
  64. package/templates/.agents/requirements/cost-observability.md +1 -1
  65. package/templates/.agents/requirements/dashboard-launch.md +1 -1
  66. package/templates/.agents/requirements/data-export.md +1 -1
  67. package/templates/.agents/requirements/design-system.md +1 -1
  68. package/templates/.agents/requirements/execution-engine.md +1 -1
  69. package/templates/.agents/requirements/kanban-dashboard.md +1 -1
  70. package/templates/.agents/requirements/model-orchestration.md +1 -1
  71. package/templates/.agents/requirements/public-distribution.md +1 -1
  72. package/templates/.agents/requirements/software-architecture.md +1 -1
  73. package/templates/.agents/requirements/strategic-improvements.md +1 -1
  74. package/templates/.agents/requirements/work-lifecycle.md +1 -1
  75. package/templates/.agents/requirements/zaip-strategic-95.md +1 -1
  76. package/templates/.agents/runtime/VERSION +1 -1
  77. package/templates/.agents/runtime/bin/zaip.mjs +58 -27
  78. package/templates/.agents/runtime/checksums.sha256 +6 -6
  79. package/templates/.agents/runtime/manifest.json +1 -1
  80. package/templates/.agents/runtime/pnpm-lock.sha256 +1 -1
  81. package/templates/.agents/runtime/provenance.json +5 -5
  82. package/templates/.agents/runtime/sbom.cdx.json +144 -162
  83. package/templates/.agents/skills/zaip-skill-execution/SKILL.md +1 -0
  84. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/github-deploy-contract.test.mjs +3 -1
  85. package/templates/.agents/zaip-aios/VERSION +1 -1
  86. package/templates/template-manifest.json +89 -81
  87. package/templates/.agents/dashboard/apps/frontend/dist/assets/DashboardHelpDialog-Je5nK-Et.css +0 -1
  88. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-D46WWIKr.js +0 -3
  89. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-Bas2TVju.js +0 -2
  90. /package/templates/.agents/dashboard/apps/frontend/dist/assets/{DashboardHelpDialog-CCMVnkkI.js → DashboardHelpDialog-BDQR0U4a.js} +0 -0
@@ -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-mvD5mwcC.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-Cv4VfxTQ.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": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "storybook": "10.5.0",
27
27
  "typescript": "7.0.2",
28
28
  "vite": "8.1.4",
29
- "vitest": "4.1.10",
29
+ "vitest": "4.1.11",
30
30
  "yaml": "2.9.0"
31
31
  }
32
32
  }
@@ -31,27 +31,32 @@ export function DashboardFiltersSpecimen({
31
31
  <h3>{fixture.name}</h3>
32
32
  <details open>
33
33
  <summary>Filtros de {fixture.name.toLowerCase()}</summary>
34
- {fixture.labels.map((label) => (
35
- <label key={label} style={{ display: "block", marginBlock: 8 }}>
36
- {label}
37
- {label.startsWith("Busca") ? (
38
- <input
39
- aria-label={label}
40
- value={values[label] ?? ""}
41
- onChange={(e) => setValues({ ...values, [label]: e.target.value })}
42
- />
43
- ) : (
44
- <select
45
- aria-label={label}
46
- value={values[label] ?? ""}
47
- onChange={(e) => setValues({ ...values, [label]: e.target.value })}
48
- >
49
- <option value="">Todos</option>
50
- <option value="example">{label === "Status" ? "Bloqueado" : "Exemplo"}</option>
51
- </select>
52
- )}
53
- </label>
54
- ))}
34
+ {fixture.labels.map((label) => {
35
+ const controlId = `dashboard-filter-${fixture.name}-${label}`;
36
+ return (
37
+ <label htmlFor={controlId} key={label} style={{ display: "block", marginBlock: 8 }}>
38
+ {label}
39
+ {label.startsWith("Busca") ? (
40
+ <input
41
+ aria-label={label}
42
+ id={controlId}
43
+ value={values[label] ?? ""}
44
+ onChange={(e) => setValues({ ...values, [label]: e.target.value })}
45
+ />
46
+ ) : (
47
+ <select
48
+ aria-label={label}
49
+ id={controlId}
50
+ value={values[label] ?? ""}
51
+ onChange={(e) => setValues({ ...values, [label]: e.target.value })}
52
+ >
53
+ <option value="">Todos</option>
54
+ <option value="example">{label === "Status" ? "Bloqueado" : "Exemplo"}</option>
55
+ </select>
56
+ )}
57
+ </label>
58
+ );
59
+ })}
55
60
  <button type="button" onClick={() => setValues({})}>
56
61
  Limpar filtros
57
62
  </button>
@@ -35,11 +35,7 @@ export const stackVersionFieldFixtures: readonly StackVersionFieldFixture[] = [
35
35
  },
36
36
  ] as const;
37
37
 
38
- export function StackVersionFieldSpecimen({
39
- fixture,
40
- }: {
41
- fixture: StackVersionFieldFixture;
42
- }) {
38
+ export function StackVersionFieldSpecimen({ fixture }: { fixture: StackVersionFieldFixture }) {
43
39
  const isReference = fixture.kind === "reference";
44
40
  const label = isReference ? "Referência descritiva" : "Versão exata";
45
41
 
@@ -1,17 +1,79 @@
1
- .stack-version-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
2
- .stack-version-field-grid > .card:last-child { grid-column: span 2; }
3
- .stack-version-field-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
4
- .stack-version-field-heading h3 { margin: 8px 0 0; font-size: 1.1rem; }
5
- .stack-version-kind { flex: 0 0 auto; border-radius: 999px; padding: 5px 8px; font-size: 0.72rem; font-weight: 700; }
6
- .stack-version-kind.is-exact { background: #f0fdf4; color: #166534; }
7
- .stack-version-kind.is-reference { background: var(--primary-soft); color: var(--primary-ink); }
8
- .stack-version-field { display: grid; gap: 8px; margin-top: 18px; color: var(--text); font-size: 0.82rem; font-weight: 700; }
9
- .stack-version-field input { width: 100%; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 10px; background: var(--surface-muted); color: var(--text); font: inherit; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; }
10
- .stack-version-field input.is-reference-value { border-color: #9edcf2; background: #effaff; color: #075985; font-weight: 650; }
11
- .stack-version-field input:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 38%, transparent); outline-offset: 2px; }
12
- .stack-version-source { margin: 10px 0 0; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; overflow-wrap: anywhere; }
1
+ .stack-version-field-grid {
2
+ display: grid;
3
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4
+ gap: 18px;
5
+ }
6
+ .stack-version-field-grid > .card:last-child {
7
+ grid-column: span 2;
8
+ }
9
+ .stack-version-field-heading {
10
+ display: flex;
11
+ align-items: flex-start;
12
+ justify-content: space-between;
13
+ gap: 12px;
14
+ }
15
+ .stack-version-field-heading h3 {
16
+ margin: 8px 0 0;
17
+ font-size: 1.1rem;
18
+ }
19
+ .stack-version-kind {
20
+ flex: 0 0 auto;
21
+ border-radius: 999px;
22
+ padding: 5px 8px;
23
+ font-size: 0.72rem;
24
+ font-weight: 700;
25
+ }
26
+ .stack-version-kind.is-exact {
27
+ background: #f0fdf4;
28
+ color: #166534;
29
+ }
30
+ .stack-version-kind.is-reference {
31
+ background: var(--primary-soft);
32
+ color: var(--primary-ink);
33
+ }
34
+ .stack-version-field {
35
+ display: grid;
36
+ gap: 8px;
37
+ margin-top: 18px;
38
+ color: var(--text);
39
+ font-size: 0.82rem;
40
+ font-weight: 700;
41
+ }
42
+ .stack-version-field input {
43
+ width: 100%;
44
+ min-height: 44px;
45
+ border: 1px solid #cbd5e1;
46
+ border-radius: 10px;
47
+ padding: 9px 10px;
48
+ background: var(--surface-muted);
49
+ color: var(--text);
50
+ font: inherit;
51
+ font-size: 0.88rem;
52
+ overflow: hidden;
53
+ text-overflow: ellipsis;
54
+ }
55
+ .stack-version-field input.is-reference-value {
56
+ border-color: #9edcf2;
57
+ background: #effaff;
58
+ color: #075985;
59
+ font-weight: 650;
60
+ }
61
+ .stack-version-field input:focus-visible {
62
+ outline: 3px solid color-mix(in srgb, var(--focus) 38%, transparent);
63
+ outline-offset: 2px;
64
+ }
65
+ .stack-version-source {
66
+ margin: 10px 0 0;
67
+ color: var(--text-muted);
68
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
69
+ font-size: 0.75rem;
70
+ overflow-wrap: anywhere;
71
+ }
13
72
 
14
73
  @media (max-width: 720px) {
15
74
  .stack-version-field-grid,
16
- .stack-version-field-grid > .card:last-child { grid-template-columns: 1fr; grid-column: auto; }
75
+ .stack-version-field-grid > .card:last-child {
76
+ grid-template-columns: 1fr;
77
+ grid-column: auto;
78
+ }
17
79
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaip-ai/design-local-runtime",
3
- "version": "3.5.0",
3
+ "version": "3.7.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: 3
8
8
  source_change: null
9
- source_release: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: 8
8
8
  source_change: null
9
- source_release: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: 11
8
8
  source_change: null
9
- source_release: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: 8
8
8
  source_change: null
9
- source_release: "3.5.0"
9
+ source_release: "3.7.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: 8
8
8
  source_change: null
9
- source_release: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.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: "3.5.0"
9
+ source_release: "3.7.0"
10
10
  ---
11
11
 
12
12
  # Evidências, custo por Task e autonomia por SPEC
@@ -1 +1 @@
1
- 3.5.0
1
+ 3.7.0