@zaip-ai/cli 3.0.0 → 3.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 (72) 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 +5 -1
  5. package/templates/.agents/README.md +5 -1
  6. package/templates/.agents/config/agents/discovery.json +1 -1
  7. package/templates/.agents/dashboard/.zaip-managed.json +61 -37
  8. package/templates/.agents/dashboard/apps/frontend/dist/assets/{DashboardHelpDialog-TnrL1ZyZ.js → DashboardHelpDialog-DIWDmvAS.js} +26 -11
  9. package/templates/.agents/dashboard/apps/frontend/dist/assets/{PricingSettingsDialog-DjQpBqGU.js → PricingSettingsDialog-BBRBKaHa.js} +1 -1
  10. package/templates/.agents/dashboard/apps/frontend/dist/assets/{TraceabilityWorkspace-BQZXUnQu.js → TraceabilityWorkspace-C9dDhj34.js} +1 -1
  11. package/templates/.agents/dashboard/apps/frontend/dist/assets/{dashboard-localization-Basaw1NR.js → dashboard-localization-CoAVMZN6.js} +5 -1
  12. package/templates/.agents/dashboard/apps/frontend/dist/assets/{index-BQe3zTvL.js → index-BVzw_Wux.js} +2 -2
  13. package/templates/.agents/dashboard/apps/frontend/dist/index.html +1 -1
  14. package/templates/.agents/dashboard/apps/frontend/package.json +1 -1
  15. package/templates/.agents/dashboard/modules/cost-monitor/package.json +1 -1
  16. package/templates/.agents/dashboard/modules/operations/package.json +1 -1
  17. package/templates/.agents/dashboard/modules/traceability/package.json +1 -1
  18. package/templates/.agents/dashboard/packages/branding/package.json +1 -1
  19. package/templates/.agents/dashboard/packages/contracts/package.json +1 -1
  20. package/templates/.agents/dashboard/packages/data-export/package.json +1 -1
  21. package/templates/.agents/dashboard/packages/local-runtime/dist/server.cjs +182 -160
  22. package/templates/.agents/dashboard/packages/local-runtime/dist/sqlite-read-model.cjs +174 -152
  23. package/templates/.agents/dashboard/packages/local-runtime/package.json +1 -1
  24. package/templates/.agents/dashboard/packages/local-runtime/server.mjs +182 -160
  25. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-calendar.ts +17 -0
  26. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cold-parse.test.ts +78 -0
  27. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-group-projection.test.ts +94 -0
  28. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-group-projection.ts +5 -5
  29. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-duration-lookup.test.ts +59 -0
  30. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-entity-label-views.test.ts +72 -0
  31. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-materialize-runs.ts +3 -4
  32. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-entity-group.test.ts +171 -0
  33. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-entity-group.ts +36 -16
  34. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-canonical-parsing.ts +7 -0
  35. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-canonical.ts +5 -15
  36. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-keeps-orphan-telemetry-out-kanban-without.test.ts +1 -1
  37. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-rebuild.ts +2 -0
  38. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-schema.ts +3 -2
  39. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model.test.ts +1 -1
  40. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-schema-base-views.ts +22 -14
  41. package/templates/.agents/dashboard/packages/ui/package.json +1 -1
  42. package/templates/.agents/dashboard/tests/e2e/package.json +1 -1
  43. package/templates/.agents/design/.zaip-managed.json +3 -3
  44. package/templates/.agents/design/apps/catalog/package.json +1 -1
  45. package/templates/.agents/design/packages/local-runtime/package.json +1 -1
  46. package/templates/.agents/requirements/autonomous-assurance.md +1 -1
  47. package/templates/.agents/requirements/cloud-hostinger-autonomy.md +1 -1
  48. package/templates/.agents/requirements/comparative-audit.md +1 -1
  49. package/templates/.agents/requirements/context-engine.md +1 -1
  50. package/templates/.agents/requirements/cost-observability.md +1 -1
  51. package/templates/.agents/requirements/dashboard-launch.md +1 -1
  52. package/templates/.agents/requirements/data-export.md +1 -1
  53. package/templates/.agents/requirements/design-system.md +1 -1
  54. package/templates/.agents/requirements/execution-engine.md +1 -1
  55. package/templates/.agents/requirements/kanban-dashboard.md +1 -1
  56. package/templates/.agents/requirements/model-orchestration.md +1 -1
  57. package/templates/.agents/requirements/public-distribution.md +1 -1
  58. package/templates/.agents/requirements/software-architecture.md +1 -1
  59. package/templates/.agents/requirements/strategic-improvements.md +1 -1
  60. package/templates/.agents/requirements/work-lifecycle.md +1 -1
  61. package/templates/.agents/requirements/zaip-strategic-95.md +1 -1
  62. package/templates/.agents/runtime/VERSION +1 -1
  63. package/templates/.agents/runtime/bin/zaip.mjs +5 -5
  64. package/templates/.agents/runtime/checksums.sha256 +5 -5
  65. package/templates/.agents/runtime/manifest.json +1 -1
  66. package/templates/.agents/runtime/provenance.json +4 -4
  67. package/templates/.agents/runtime/sbom.cdx.json +1 -1
  68. package/templates/.agents/skills/zaip-skill-github-deploy/references/release-identity.md +17 -12
  69. package/templates/.agents/zaip-aios/README.md +4 -3
  70. package/templates/.agents/zaip-aios/VERSION +1 -1
  71. package/templates/.agents/zaip-aios/guides/26-qualidade-e-release.md +20 -9
  72. package/templates/template-manifest.json +97 -73
@@ -1,11 +1,11 @@
1
1
  b146bd0c7c60b1ab43c4f71e0b1d2262c6df6da6f7053a0425f834ccb77a6b48 LICENSE
2
2
  bc02cba77e8d51e5c580f43668863dc868eda66f1ff663bfaa49fcf3ca16320e THIRD_PARTY_NOTICES.md
3
- 2985be8b28d3ade858e8d8fb4bc22f565b1bf6020dff982dce141f7721b9999c VERSION
4
- ea4542bdeaee90694dd1402fa015026af0e8f7d11cce0d36bd6b7384971476a8 bin/zaip.mjs
5
- c22da8ce06147f89a055bad9bb7800085768c9fc263728db5fb54e069825e052 manifest.json
3
+ b2f44d3b6e29f8b1b73ea4735f006affc4d198e1fd9c7d50e736159b1ef636c6 VERSION
4
+ 07eff6c6d3ef380212d06003dd3e7b11b681d8100fd92846a6ed13742867219e bin/zaip.mjs
5
+ 309fea15107cf79a2ef729be126a4cb65572215b480dc5a8820fb3aad6f515ab manifest.json
6
6
  7f89219d7c567c82a51679ad136d84364bded7ac659492537e125d33b1d58a7a migrations/001-layout-v1.json
7
7
  5f8c48b286d0b44d8fbb57a9a5d009a8a500439aa3148d750b8f193f72995c9f migrations/002-layout-v2.json
8
8
  2d738247131a923ea6e3a32d0d1d6de763866fd96a8a8dc75d127a343809b0aa pnpm-lock.sha256
9
- d04ab7db3df0f713e1805e4bd0b735015c46e1108e2bb2fc1ef0ee4ac5790b7e provenance.json
10
- f6dc78ff791e700d82cc2dc76a76898849c1d6f4b9a7f283e5840e80e52479aa sbom.cdx.json
9
+ d2b2105141802e9e6bc46833181de0bb01532a7efaeda5e5b2db62ab02f89855 provenance.json
10
+ e3b827a4931e99acbe3ad9819648e651e672dc5b2cd1056a6d59ae4d56f4b2c6 sbom.cdx.json
11
11
  b3ffedf9e146be802a15b4009f33e031dec3071ca1525e12c67606fd964a3067 schemas/contracts.schema.json
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "name": "zaip-aios",
4
- "version": "3.0.0",
4
+ "version": "3.1.0",
5
5
  "node": ">=22",
6
6
  "files": [
7
7
  "LICENSE",
@@ -2,10 +2,10 @@
2
2
  "schema_version": 1,
3
3
  "statement_type": "self_reported_build_integrity",
4
4
  "authenticity": "unverified",
5
- "version": "3.0.0",
5
+ "version": "3.1.0",
6
6
  "source_origin": "zaip-aios:local-build",
7
7
  "lockfile_sha256": "f8557f3600849eb880b8f245b63b80fed9a3e9addf2c5f2c6d492547af900219",
8
- "sbom_sha256": "f6dc78ff791e700d82cc2dc76a76898849c1d6f4b9a7f283e5840e80e52479aa",
9
- "runtime_sha256": "f6b7e8a96164b8597d41077e8bd913beb40ae0407a88ec60b221ce08eee73bb5",
10
- "statement_sha256": "64b394412fc8d6a391a88a1175c5edb8c2042f71054972b4cd37e6b163380bd2"
8
+ "sbom_sha256": "e3b827a4931e99acbe3ad9819648e651e672dc5b2cd1056a6d59ae4d56f4b2c6",
9
+ "runtime_sha256": "78b53fdb2c310ef79d25cae1952b57810af6fa1e02bd2e62fefbc16cc3fa34a1",
10
+ "statement_sha256": "22b6a50ec6c2af719fd2795fa1010d42be59e5de432914943032bf305838973e"
11
11
  }
@@ -6,7 +6,7 @@
6
6
  "component": {
7
7
  "type": "application",
8
8
  "name": "zaip-aios",
9
- "version": "3.0.0"
9
+ "version": "3.1.0"
10
10
  }
11
11
  },
12
12
  "components": [
@@ -28,17 +28,22 @@ Consumer repositories remain GitHub-only and independent. Recognize the framewor
28
28
 
29
29
  Publishing a GitHub Release in this framework triggers its npm workflow. Report this consequence in the GitHub publication scope and follow the configured pipeline through terminal status; no second npm skill or local publication step is needed. A push-only request does not create a Release or publish npm. A successful GitHub Release with failed/unobserved npm checks is a partial result.
30
30
 
31
- `qualify-cli.yml` runs on pushes to the configured validation (`beta` npm channel) and human-promoted
32
- production (`latest` npm channel) branches. It qualifies the exact SHA and uploads one tested TGZ plus
33
- a receipt. Other branch pushes do not qualify a release. For an authorized manual qualification retry,
34
- dispatch that workflow on the candidate's configured branch with its exact current head `sha` and
35
- matching `npm_channel`. Qualification is read-only; it does not publish npm or create a Release.
36
-
37
- Before creating or resuming a draft Release, require the installed `github-readiness.mjs` command with `--repository zaip-ai/zaip-aios --sha <sha> --branch <configured-release-branch> --workflow-path .github/workflows/qualify-cli.yml --checks-json '["receipt"]'` to report ready.
38
- The publisher independently checks the latest qualifying run and attempt, workflow path, repository,
39
- SHA, channel, receipt lifetime and artifact digests. It waits for a pending qualification, refuses a
40
- failed or missing one, and consumes the approved TGZ without repeating source tests or builds.
41
- Receipts expire after seven days; a changed candidate requires new qualification. Preserve required
42
- GitHub checks and investigate their failures, rather than replacing passing evidence with another AI review.
31
+ `qualify-cli.yml` is manual-only. It does not run on every push. For an explicitly
32
+ requested extended qualification, dispatch it on the configured branch with the exact
33
+ current head `sha` and matching `npm_channel`. This extended path qualifies source
34
+ and the runtime matrix; it does not publish npm or create a Release.
35
+
36
+ With explicitly enabled `ZAIP_LOCAL_RELEASE_ENABLED=true`, guarded delivery uses
37
+ the signed local `full-v2` receipt and enrolled public trust. It does not require a
38
+ legacy `qualify-cli.yml` receipt or a private-draft pilot. GitHub verifies the
39
+ published assets and runs one read-only exact-TGZ installation/doctor smoke before
40
+ the separate npm publication job. Source tests and full qualification remain local.
41
+
42
+ Only when the reduced path is disabled does the legacy publisher require
43
+ `github-readiness.mjs` with `--workflow-path .github/workflows/qualify-cli.yml`
44
+ and `--checks-json '["receipt"]'` for the exact repository, SHA, branch and channel.
45
+ It verifies the qualifying run/attempt, receipt lifetime and artifact digests.
46
+ Missing or failed evidence never permits fallback publication. Receipts have a
47
+ maximum seven-day lifetime; a changed candidate requires new qualification.
43
48
 
44
49
  Only the qualified GitHub Actions workflow may publish `@zaip-ai/cli` to npm. Never run `npm publish`, `pnpm publish`, or an equivalent local publication command. The workflow must bind the publication to the exact qualified SHA, tag, package version, and artifact digest.
@@ -64,10 +64,11 @@ Consulte [qualidade e release](guides/26-qualidade-e-release.md) para distinguir
64
64
  checks locais, CI e aprovação de produção. Documentação não autoriza publicação
65
65
  nem reabertura de entregas históricas bloqueadas.
66
66
 
67
- ## Novidades em preparação para v3
67
+ ## Funcionamento da linha v3
68
68
 
69
- A documentação descreve `autonomy-v1` sem declarar release publicada.
70
- Os manifests deste checkout identificam o candidato `3.0.0`. Novos templates usam
69
+ A documentação descreve `autonomy-v1`; publicação e qualificação devem ser
70
+ confirmadas pelos artefatos da release, não apenas pela versão deste checkout.
71
+ Os manifests deste checkout identificam o candidato `3.1.0`. Novos templates usam
71
72
  Equilibrado e `execution.runtime: managed`: PRDs/SPECs gerenciados e tarefas
72
73
  avulsas preferencialmente diretas. Configurações legadas sem essa opção mantêm
73
74
  o default manual do schema; salvar configuração não inicia execução.
@@ -1 +1 @@
1
- 3.0
1
+ 3.1
@@ -191,13 +191,19 @@ Testes passando comprovam validação técnica. Maturidade formal máxima exige
191
191
 
192
192
  Ausência de uma dessas provas permanece explícita; não é convertida em sucesso.
193
193
 
194
- ## Novidades da v3 e qualificação pendente
194
+ ## Linha v3: implementação, qualificação e publicação
195
195
 
196
- As fontes em preparação incluem presets, diário durável por Task, replanejamento
197
- governado, relay de decisão Gui e configuração no Dashboard. Os manifests
198
- continuam em 2.6.0; este guia não promove versão nem certifica produção.
196
+ A v3.0 foi publicada como `@zaip-ai/cli@3.0.0`, no commit
197
+ `ffc6c13867ec703211b7bba90c26b10a105c19fb`. Presets, diário durável por Task,
198
+ replanejamento governado, relay da decisão Gui e configuração no Dashboard estão
199
+ implementados. A publicação possui qualificação local do candidato; não equivale
200
+ a certificar todo workload de produção nem a concluir o PRD histórico.
199
201
 
200
- Para qualificar essas novidades, preserve um candidato único e comprove:
202
+ Consulte a [matriz de implementação e prova](https://github.com/zaip-ai/zaip-aios/blob/main/docs/quality/v3-delivery-status.md).
203
+ A versão atual vem dos manifests e de `.agents/zaip-aios/VERSION`; cada manutenção
204
+ gera novo candidato e recibo, sem reutilizar aprovação ou mover a tag anterior.
205
+
206
+ Para qualificar uma nova candidata dessa linha, preserve um SHA único e comprove:
201
207
 
202
208
  - Essencial 4/1 sem Astra automático, Equilibrado 10/3 e Persistente sem teto;
203
209
  - reservas antes do provider, replay/restart sem reset e resultado desconhecido
@@ -218,7 +224,12 @@ altera silenciosamente matrizes de CI publicadas. Relatórios de candidatos
218
224
  anteriores, testes simulados de modelos e evidência local não certificam
219
225
  o candidato final nem seu uso em produção.
220
226
 
221
- O [guia 19](19-assurance-e-autonomia.md) registra duas fronteiras ainda
222
- importantes: controle preventivo só no despacho gerenciado e compatibilidade
223
- do trabalho avulso direto com a barreira de executor capturado. Uma revisão
224
- documental não resolve esses limites por declaração.
227
+ O [guia 19](19-assurance-e-autonomia.md) registra as fronteiras atuais: controle
228
+ preventivo de cotas/modelos somente no despacho gerenciado; avulsa direta exige
229
+ autorização explícita desde a captura e identidade observada, sem executor
230
+ cerimonial. Revisão aplicável, Evidence e Gui continuam obrigatórios.
231
+
232
+ O benchmark comparativo histórico T08 permanece sem aprovação. Otimizações
233
+ com testes de correção e uma release publicada não comprovam economia ou SLA.
234
+ Não repita automaticamente a matriz histórica falha: preserve o diagnóstico e
235
+ defina uma medição independente com artefatos identificados e falhas observadas.