@zaip-ai/cli 1.0.7 → 1.0.8

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 (410) hide show
  1. package/README.md +6 -4
  2. package/dist/services/adapters.d.ts +1 -1
  3. package/dist/services/adapters.d.ts.map +1 -1
  4. package/dist/services/adapters.js +15 -5
  5. package/dist/services/adapters.js.map +1 -1
  6. package/dist/services/adapters.test.js +1 -1
  7. package/dist/services/agent-adapters.d.ts +9 -0
  8. package/dist/services/agent-adapters.d.ts.map +1 -1
  9. package/dist/services/agent-adapters.js +38 -3
  10. package/dist/services/agent-adapters.js.map +1 -1
  11. package/dist/services/agent-adapters.test.js +8 -1
  12. package/dist/services/agent-adapters.test.js.map +1 -1
  13. package/dist/services/codex-config-template.d.ts +2 -1
  14. package/dist/services/codex-config-template.d.ts.map +1 -1
  15. package/dist/services/codex-config-template.js +13 -2
  16. package/dist/services/codex-config-template.js.map +1 -1
  17. package/dist/services/codex-rules.d.ts +1 -1
  18. package/dist/services/codex-rules.d.ts.map +1 -1
  19. package/dist/services/codex-rules.js +31 -7
  20. package/dist/services/codex-rules.js.map +1 -1
  21. package/dist/services/codex-subagent-hook-template.d.ts +1 -1
  22. package/dist/services/codex-subagent-hook-template.d.ts.map +1 -1
  23. package/dist/services/codex-subagent-hook-template.js +4 -1
  24. package/dist/services/codex-subagent-hook-template.js.map +1 -1
  25. package/dist/services/doctor.d.ts.map +1 -1
  26. package/dist/services/doctor.js +3 -1
  27. package/dist/services/doctor.js.map +1 -1
  28. package/dist/services/global-codex-config.d.ts +6 -3
  29. package/dist/services/global-codex-config.d.ts.map +1 -1
  30. package/dist/services/global-codex-config.js +82 -13
  31. package/dist/services/global-codex-config.js.map +1 -1
  32. package/dist/services/global-codex-config.test.js +57 -10
  33. package/dist/services/global-codex-config.test.js.map +1 -1
  34. package/dist/services/install-agents-template.d.ts.map +1 -1
  35. package/dist/services/install-agents-template.js +15 -2
  36. package/dist/services/install-agents-template.js.map +1 -1
  37. package/dist/services/logger.js +1 -1
  38. package/dist/services/logger.js.map +1 -1
  39. package/dist/services/logger.test.js +3 -3
  40. package/dist/services/logger.test.js.map +1 -1
  41. package/dist/services/runtime-template.test.js +21 -5
  42. package/dist/services/runtime-template.test.js.map +1 -1
  43. package/dist/services/template-manifest.d.ts.map +1 -1
  44. package/dist/services/template-manifest.js +2 -0
  45. package/dist/services/template-manifest.js.map +1 -1
  46. package/package.json +1 -1
  47. package/templates/.agents/config/agents/catalog.yaml +310 -10
  48. package/templates/.agents/config/clients/codex/agents/zaip-agent-brand-strategist.toml +30 -0
  49. package/templates/.agents/config/clients/codex/agents/zaip-agent-designer.toml +5 -5
  50. package/templates/.agents/config/clients/codex/agents/zaip-agent-finalizer.toml +1 -1
  51. package/templates/.agents/config/clients/codex/agents/zaip-agent-general-operations.toml +30 -0
  52. package/templates/.agents/config/clients/codex/agents/zaip-agent-governance-compliance.toml +30 -0
  53. package/templates/.agents/config/clients/codex/agents/zaip-agent-growth-strategist.toml +30 -0
  54. package/templates/.agents/config/clients/codex/agents/zaip-agent-marketing-analyst.toml +8 -8
  55. package/templates/.agents/config/clients/codex/agents/zaip-agent-orchestrator.toml +5 -3
  56. package/templates/.agents/config/clients/codex/agents/zaip-agent-sales-specialist.toml +30 -0
  57. package/templates/.agents/config/project.yaml +1 -1
  58. package/templates/.agents/dashboard/.zaip-managed.json +659 -163
  59. package/templates/.agents/dashboard/DATA-DICTIONARY.md +2227 -0
  60. package/templates/.agents/dashboard/README.md +48 -97
  61. package/templates/.agents/dashboard/apps/frontend/dist/assets/CostCalculationGuidePage-Z60df2r-.js +1 -0
  62. package/templates/.agents/dashboard/apps/frontend/dist/assets/{DashboardHelpDialog-Cv-JcoxP.js → DashboardHelpDialog-Cs6dzDmW.js} +294 -109
  63. package/templates/.agents/dashboard/apps/frontend/dist/assets/PricingSettingsDialog-Coc6pA-1.js +1 -0
  64. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-QE1k9yZB.css +1 -0
  65. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-_Pf5DA_A.js +3 -0
  66. package/templates/.agents/dashboard/apps/frontend/dist/assets/TraceabilityWorkspace-BVlz3DLZ.js +1 -0
  67. package/templates/.agents/dashboard/apps/frontend/dist/assets/TraceabilityWorkspace-CaKwQP43.css +1 -0
  68. package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-BZ5WdaMN.css +1 -0
  69. package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-Cf9ctPVt.js +68 -0
  70. package/templates/.agents/dashboard/apps/frontend/dist/assets/{dashboard-localization-C98LGC-Q.js → dashboard-localization-CLJ0lT9v.js} +1 -1
  71. package/templates/.agents/dashboard/apps/frontend/dist/assets/icons-vendor-DFBuc_qp.js +1 -0
  72. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-8A4DcNXM.js +2 -0
  73. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-DK_enB5Z.css +1 -0
  74. package/templates/.agents/dashboard/apps/frontend/dist/assets/react-vendor-CCQOHdVI.js +9 -0
  75. package/templates/.agents/dashboard/apps/frontend/dist/assets/rolldown-runtime-D9-fqq9M.js +1 -0
  76. package/templates/.agents/dashboard/apps/frontend/dist/assets/traceability-DFY7ZDlu.css +1 -0
  77. package/templates/.agents/dashboard/apps/frontend/dist/assets/traceability-pC2_0J8x.js +1 -0
  78. package/templates/.agents/dashboard/apps/frontend/dist/index.html +9 -2
  79. package/templates/.agents/dashboard/apps/frontend/package.json +1 -1
  80. package/templates/.agents/dashboard/apps/frontend/src/App.tsx +952 -595
  81. package/templates/.agents/dashboard/apps/frontend/src/AppLoadingBoundary.tsx +48 -0
  82. package/templates/.agents/dashboard/apps/frontend/src/AppLoadingPanels.tsx +2 -0
  83. package/templates/.agents/dashboard/apps/frontend/src/AppOverlays.tsx +247 -0
  84. package/templates/.agents/dashboard/apps/frontend/src/AppRequestGuards.tsx +95 -0
  85. package/templates/.agents/dashboard/apps/frontend/src/AppSetupRoutes.tsx +87 -0
  86. package/templates/.agents/dashboard/apps/frontend/src/CostCalculationGuidePage.tsx +641 -0
  87. package/templates/.agents/dashboard/apps/frontend/src/DashboardAlternateContent.tsx +159 -0
  88. package/templates/.agents/dashboard/apps/frontend/src/DashboardCapabilityNav.tsx +13 -13
  89. package/templates/.agents/dashboard/apps/frontend/src/DashboardGlobalSettings.tsx +56 -0
  90. package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsPage.tsx +257 -313
  91. package/templates/.agents/dashboard/apps/frontend/src/ProjectStackEditor.tsx +149 -0
  92. package/templates/.agents/dashboard/apps/frontend/src/TraceabilityWorkspace.test.ts +35 -0
  93. package/templates/.agents/dashboard/apps/frontend/src/TraceabilityWorkspace.tsx +111 -12
  94. package/templates/.agents/dashboard/apps/frontend/src/app-preferences.ts +15 -0
  95. package/templates/.agents/dashboard/apps/frontend/src/app-session-token.ts +20 -0
  96. package/templates/.agents/dashboard/apps/frontend/src/cost-calculation-guide.css +267 -0
  97. package/templates/.agents/dashboard/apps/frontend/src/cost-calculation-guide.test.ts +69 -0
  98. package/templates/.agents/dashboard/apps/frontend/src/cost-period-refresh.test.ts +70 -0
  99. package/templates/.agents/dashboard/apps/frontend/src/dashboard-api.test.ts +111 -0
  100. package/templates/.agents/dashboard/apps/frontend/src/dashboard-api.ts +432 -13
  101. package/templates/.agents/dashboard/apps/frontend/src/dashboard-localization.ts +1 -1
  102. package/templates/.agents/dashboard/apps/frontend/src/main.tsx +1 -0
  103. package/templates/.agents/dashboard/apps/frontend/src/operations-detail-hydration.test.ts +55 -0
  104. package/templates/.agents/dashboard/apps/frontend/src/operations-detail-hydration.ts +36 -0
  105. package/templates/.agents/dashboard/apps/frontend/src/operations-entity-page-projection.test.ts +126 -0
  106. package/templates/.agents/dashboard/apps/frontend/src/operations-entity-page-projection.ts +181 -0
  107. package/templates/.agents/dashboard/apps/frontend/src/operations-period-contract.test.ts +138 -0
  108. package/templates/.agents/dashboard/apps/frontend/src/operations-period-render.test.ts +105 -0
  109. package/templates/.agents/dashboard/apps/frontend/src/operations-period.test.ts +6 -3
  110. package/templates/.agents/dashboard/apps/frontend/src/operations-period.ts +9 -5
  111. package/templates/.agents/dashboard/apps/frontend/src/overview-status-page.test.ts +24 -0
  112. package/templates/.agents/dashboard/apps/frontend/src/period-transition-overlay.css +44 -0
  113. package/templates/.agents/dashboard/apps/frontend/src/project-settings-model.ts +121 -62
  114. package/templates/.agents/dashboard/apps/frontend/src/project-settings-page.css +471 -2
  115. package/templates/.agents/dashboard/apps/frontend/src/project-settings.test.ts +84 -17
  116. package/templates/.agents/dashboard/apps/frontend/src/snapshot-banner-semantics.test.ts +44 -0
  117. package/templates/.agents/dashboard/apps/frontend/src/snapshot-coherence.test.ts +196 -39
  118. package/templates/.agents/dashboard/apps/frontend/src/snapshot-notice.ts +15 -0
  119. package/templates/.agents/dashboard/apps/frontend/src/sqlite-cost-adapters.ts +26 -0
  120. package/templates/.agents/dashboard/apps/frontend/src/styles.css +14 -2
  121. package/templates/.agents/dashboard/apps/frontend/src/traceability-workspace.css +38 -2
  122. package/templates/.agents/dashboard/apps/frontend/src/use-app-cost-loaders.test.ts +187 -0
  123. package/templates/.agents/dashboard/apps/frontend/src/use-app-cost-loaders.ts +190 -0
  124. package/templates/.agents/dashboard/apps/frontend/src/use-app-effects.ts +121 -0
  125. package/templates/.agents/dashboard/apps/frontend/src/use-app-operations-pages.ts +398 -0
  126. package/templates/.agents/dashboard/apps/frontend/src/use-app-trace-documents.ts +141 -0
  127. package/templates/.agents/dashboard/apps/frontend/src/use-idle-cost-prefetch.ts +45 -0
  128. package/templates/.agents/dashboard/apps/frontend/src/work-list-pagination.test.ts +46 -0
  129. package/templates/.agents/dashboard/apps/frontend/src/work-list-pagination.ts +37 -0
  130. package/templates/.agents/dashboard/apps/frontend/vite.config.ts +55 -5
  131. package/templates/.agents/dashboard/modules/cost-monitor/package.json +1 -1
  132. package/templates/.agents/dashboard/modules/cost-monitor/src/contracts.ts +47 -6
  133. package/templates/.agents/dashboard/modules/cost-monitor/src/duration-estimate.ts +13 -0
  134. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CompactLifecycleCostTable.test.ts +64 -0
  135. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CompactLifecycleCostTable.tsx +275 -0
  136. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostCharts.test.ts +100 -15
  137. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostCharts.tsx +131 -40
  138. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostFilters.tsx +137 -19
  139. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostModelsAuditTable.test.ts +2 -0
  140. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostModelsAuditTable.tsx +13 -10
  141. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorContent.tsx +303 -0
  142. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorPage.test.ts +226 -6
  143. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorPage.tsx +479 -402
  144. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostSummary.tsx +5 -13
  145. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTables.test.ts +312 -72
  146. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTables.tsx +373 -321
  147. package/templates/.agents/dashboard/modules/cost-monitor/src/react/MacroCostTable.test.ts +17 -0
  148. package/templates/.agents/dashboard/modules/cost-monitor/src/react/MacroCostTable.tsx +25 -6
  149. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-copy.ts +0 -2
  150. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-page-helpers.ts +17 -0
  151. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-responsive.css +6 -3
  152. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-row-filters.ts +123 -0
  153. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-summary.ts +8 -3
  154. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-views.ts +32 -0
  155. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor.css +52 -14
  156. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-table-presentation.ts +121 -0
  157. package/templates/.agents/dashboard/modules/cost-monitor/src/react/index.ts +3 -0
  158. package/templates/.agents/dashboard/modules/cost-monitor/src/react/period-cost-groups.test.ts +68 -0
  159. package/templates/.agents/dashboard/modules/cost-monitor/src/react/period-cost-groups.ts +32 -5
  160. package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-compact-cost-page.ts +108 -0
  161. package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-cost-group-page.test.ts +12 -0
  162. package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-cost-group-page.ts +60 -0
  163. package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-cost-run-page.ts +106 -0
  164. package/templates/.agents/dashboard/modules/cost-monitor/src/server/aggregate.test.ts +2 -2
  165. package/templates/.agents/dashboard/modules/cost-monitor/src/server/aggregate.ts +5 -3
  166. package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-monitor-pricing-fallback.test.ts +53 -0
  167. package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-monitor-projection.basics.test.ts +34 -0
  168. package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-monitor-projection.test.ts +168 -137
  169. package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-monitor-projection.ts +188 -29
  170. package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-summary-projection.test.ts +956 -0
  171. package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-summary-projection.ts +775 -0
  172. package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-summary-terminal-day.test.ts +95 -0
  173. package/templates/.agents/dashboard/modules/cost-monitor/src/server/index.ts +1 -0
  174. package/templates/.agents/dashboard/modules/cost-monitor/src/server/refactor-map-xr9l.json +61 -0
  175. package/templates/.agents/dashboard/modules/cost-monitor/src/task-cost-groups.test.ts +41 -0
  176. package/templates/.agents/dashboard/modules/cost-monitor/src/task-cost-groups.ts +55 -11
  177. package/templates/.agents/dashboard/modules/operations/package.json +2 -1
  178. package/templates/.agents/dashboard/modules/operations/src/contracts.ts +182 -0
  179. package/templates/.agents/dashboard/modules/operations/src/duration-population.test.ts +63 -1
  180. package/templates/.agents/dashboard/modules/operations/src/duration-population.ts +60 -5
  181. package/templates/.agents/dashboard/modules/operations/src/react/EntityDetailsDialog.tsx +14 -3
  182. package/templates/.agents/dashboard/modules/operations/src/react/EntityTables.test.ts +44 -1
  183. package/templates/.agents/dashboard/modules/operations/src/react/EntityTables.tsx +325 -18
  184. package/templates/.agents/dashboard/modules/operations/src/react/MacroPlanningDialog.tsx +1 -0
  185. package/templates/.agents/dashboard/modules/operations/src/react/OperationDateFilters.test.ts +9 -5
  186. package/templates/.agents/dashboard/modules/operations/src/react/OperationDateFilters.tsx +2 -2
  187. package/templates/.agents/dashboard/modules/operations/src/react/OperationsMainContent.tsx +168 -0
  188. package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverview.helpers.tsx +95 -6
  189. package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverview.test.ts +365 -14
  190. package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverview.tsx +532 -131
  191. package/templates/.agents/dashboard/modules/operations/src/react/OperationsPage.tsx +314 -358
  192. package/templates/.agents/dashboard/modules/operations/src/react/OperationsPageNavigation.tsx +68 -0
  193. package/templates/.agents/dashboard/modules/operations/src/react/OperationsPageOverview.tsx +169 -0
  194. package/templates/.agents/dashboard/modules/operations/src/react/PeriodSummaryTable.tsx +51 -8
  195. package/templates/.agents/dashboard/modules/operations/src/react/PrdDocumentDialog.test.tsx +32 -0
  196. package/templates/.agents/dashboard/modules/operations/src/react/PrdDocumentDialog.tsx +62 -6
  197. package/templates/.agents/dashboard/modules/operations/src/react/TaskBoard.test.ts +55 -0
  198. package/templates/.agents/dashboard/modules/operations/src/react/TaskBoard.tsx +27 -19
  199. package/templates/.agents/dashboard/modules/operations/src/react/TaskDetailsDialog.tsx +99 -42
  200. package/templates/.agents/dashboard/modules/operations/src/react/UnifiedWorkBoard.priority.test.ts +19 -0
  201. package/templates/.agents/dashboard/modules/operations/src/react/UnifiedWorkBoard.tsx +255 -34
  202. package/templates/.agents/dashboard/modules/operations/src/react/UnifiedWorkList.test.ts +163 -8
  203. package/templates/.agents/dashboard/modules/operations/src/react/UnifiedWorkList.tsx +101 -68
  204. package/templates/.agents/dashboard/modules/operations/src/react/conversation-rows.test.ts +72 -1
  205. package/templates/.agents/dashboard/modules/operations/src/react/conversation-rows.ts +78 -16
  206. package/templates/.agents/dashboard/modules/operations/src/react/execution-metrics.ts +6 -4
  207. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportAction.test.ts +50 -1
  208. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportAction.tsx +143 -9
  209. package/templates/.agents/dashboard/modules/operations/src/react/export/export-layout.test.ts +29 -4
  210. package/templates/.agents/dashboard/modules/operations/src/react/macro-planning-dialog-content.css +49 -0
  211. package/templates/.agents/dashboard/modules/operations/src/react/macro-planning-dialog.css +93 -50
  212. package/templates/.agents/dashboard/modules/operations/src/react/manual-work-priority.test.ts +82 -0
  213. package/templates/.agents/dashboard/modules/operations/src/react/operation-date-range.test.ts +29 -2
  214. package/templates/.agents/dashboard/modules/operations/src/react/operation-date-range.ts +22 -1
  215. package/templates/.agents/dashboard/modules/operations/src/react/operation-duration.test.ts +77 -4
  216. package/templates/.agents/dashboard/modules/operations/src/react/operation-duration.ts +65 -5
  217. package/templates/.agents/dashboard/modules/operations/src/react/operations-coverage-toast.test.ts +54 -0
  218. package/templates/.agents/dashboard/modules/operations/src/react/operations-global-filters.test.ts +19 -0
  219. package/templates/.agents/dashboard/modules/operations/src/react/operations-overview-period-filter.test.ts +149 -12
  220. package/templates/.agents/dashboard/modules/operations/src/react/operations-overview.status-cards.test.ts +27 -0
  221. package/templates/.agents/dashboard/modules/operations/src/react/operations-page-contract.ts +136 -0
  222. package/templates/.agents/dashboard/modules/operations/src/react/operations-period-scope.test.ts +160 -0
  223. package/templates/.agents/dashboard/modules/operations/src/react/operations-period-scope.ts +47 -0
  224. package/templates/.agents/dashboard/modules/operations/src/react/operations-query.ts +10 -0
  225. package/templates/.agents/dashboard/modules/operations/src/react/operations-responsive.css +3 -0
  226. package/templates/.agents/dashboard/modules/operations/src/react/operations-view-labels.ts +28 -0
  227. package/templates/.agents/dashboard/modules/operations/src/react/operations-view-order.test.ts +24 -7
  228. package/templates/.agents/dashboard/modules/operations/src/react/operations.css +42 -0
  229. package/templates/.agents/dashboard/modules/operations/src/react/period-summary-population.test.ts +54 -0
  230. package/templates/.agents/dashboard/modules/operations/src/react/period-summary-population.ts +32 -0
  231. package/templates/.agents/dashboard/modules/operations/src/react/period-summary.test.ts +165 -6
  232. package/templates/.agents/dashboard/modules/operations/src/react/period-summary.ts +148 -6
  233. package/templates/.agents/dashboard/modules/operations/src/react/popup-localization.test.ts +1 -1
  234. package/templates/.agents/dashboard/modules/operations/src/react/unified-work-board.css +132 -0
  235. package/templates/.agents/dashboard/modules/operations/src/react/unified-work-board.css.test.ts +13 -0
  236. package/templates/.agents/dashboard/modules/operations/src/react/unified-work-board.header.test.ts +16 -0
  237. package/templates/.agents/dashboard/modules/operations/src/react/use-infinite-column.ts +11 -5
  238. package/templates/.agents/dashboard/modules/operations/src/react/work-board-model.test.ts +5 -3
  239. package/templates/.agents/dashboard/modules/operations/src/react/work-board-model.ts +4 -83
  240. package/templates/.agents/dashboard/modules/operations/src/server/build-operations-projection.test.ts +291 -15
  241. package/templates/.agents/dashboard/modules/operations/src/server/build-operations-projection.ts +182 -472
  242. package/templates/.agents/dashboard/modules/operations/src/server/canonical-compat.test.ts +40 -0
  243. package/templates/.agents/dashboard/modules/operations/src/server/canonical-compat.ts +19 -6
  244. package/templates/.agents/dashboard/modules/operations/src/server/canonical-run-projection.ts +31 -6
  245. package/templates/.agents/dashboard/modules/operations/src/server/daily-duration-projection.ts +220 -0
  246. package/templates/.agents/dashboard/modules/operations/src/server/execution-duration-projection.ts +28 -0
  247. package/templates/.agents/dashboard/modules/operations/src/server/execution-relationship-counts.test.ts +27 -2
  248. package/templates/.agents/dashboard/modules/operations/src/server/execution-relationship-counts.ts +22 -13
  249. package/templates/.agents/dashboard/modules/operations/src/server/filter.test.ts +3 -3
  250. package/templates/.agents/dashboard/modules/operations/src/server/filter.ts +7 -2
  251. package/templates/.agents/dashboard/modules/operations/src/server/index.ts +3 -0
  252. package/templates/.agents/dashboard/modules/operations/src/server/macro.ts +3 -12
  253. package/templates/.agents/dashboard/modules/operations/src/server/manifest-usage.ts +65 -0
  254. package/templates/.agents/dashboard/modules/operations/src/server/operations-projection-aggregates.ts +297 -0
  255. package/templates/.agents/dashboard/modules/operations/src/server/quick-daily-operations-projection.ts +324 -0
  256. package/templates/.agents/dashboard/modules/operations/src/server/quick-operations-projection.test.ts +505 -0
  257. package/templates/.agents/dashboard/modules/operations/src/server/quick-operations-projection.ts +609 -0
  258. package/templates/.agents/dashboard/modules/operations/src/server/runs.ts +18 -19
  259. package/templates/.agents/dashboard/modules/operations/src/work-board-model.ts +76 -0
  260. package/templates/.agents/dashboard/modules/traceability/package.json +1 -1
  261. package/templates/.agents/dashboard/modules/traceability/src/server/build-task-trace.ts +3 -1
  262. package/templates/.agents/dashboard/packages/branding/package.json +1 -1
  263. package/templates/.agents/dashboard/packages/branding/src/index.ts +1 -1
  264. package/templates/.agents/dashboard/packages/contracts/package.json +1 -1
  265. package/templates/.agents/dashboard/packages/contracts/src/index.ts +1 -0
  266. package/templates/.agents/dashboard/packages/data-export/package.json +1 -1
  267. package/templates/.agents/dashboard/packages/local-runtime/dist/server.cjs +1756 -0
  268. package/templates/.agents/dashboard/packages/local-runtime/dist/sqlite-read-model.cjs +1608 -0
  269. package/templates/.agents/dashboard/packages/local-runtime/package.json +8 -3
  270. package/templates/.agents/dashboard/packages/local-runtime/scripts/build-sqlite-dashboard.mjs +12 -0
  271. package/templates/.agents/dashboard/packages/local-runtime/scripts/build-sqlite-runtime.mjs +83 -0
  272. package/templates/.agents/dashboard/packages/local-runtime/scripts/rebuild-sqlite-read-model.mjs +28 -0
  273. package/templates/.agents/dashboard/packages/local-runtime/scripts/test-sqlite-read-model.mjs +262 -0
  274. package/templates/.agents/dashboard/packages/local-runtime/scripts/test-unix-launchers.mjs +41 -0
  275. package/templates/.agents/dashboard/packages/local-runtime/scripts/validate-sqlite-read-model.mjs +105 -0
  276. package/templates/.agents/dashboard/packages/local-runtime/server.mjs +1643 -107
  277. package/templates/.agents/dashboard/packages/local-runtime/src/agent-adapter-sync.ts +30 -0
  278. package/templates/.agents/dashboard/packages/local-runtime/src/agent-catalog-settings.test.ts +3 -2
  279. package/templates/.agents/dashboard/packages/local-runtime/src/agent-catalog-settings.ts +5 -0
  280. package/templates/.agents/dashboard/packages/local-runtime/src/manifest-runs.ts +72 -33
  281. package/templates/.agents/dashboard/packages/local-runtime/src/project-settings.test.ts +335 -4
  282. package/templates/.agents/dashboard/packages/local-runtime/src/project-settings.ts +392 -1
  283. package/templates/.agents/dashboard/packages/local-runtime/src/runtime.mjs +5 -5
  284. package/templates/.agents/dashboard/packages/local-runtime/src/server-board.test.ts +71 -0
  285. package/templates/.agents/dashboard/packages/local-runtime/src/server-board.ts +179 -0
  286. package/templates/.agents/dashboard/packages/local-runtime/src/server-cross-layer-parity.test.ts +245 -0
  287. package/templates/.agents/dashboard/packages/local-runtime/src/server-daily-read-models-route.ts +64 -0
  288. package/templates/.agents/dashboard/packages/local-runtime/src/server-daily-read-models.test.ts +204 -0
  289. package/templates/.agents/dashboard/packages/local-runtime/src/server-daily-read-models.ts +194 -0
  290. package/templates/.agents/dashboard/packages/local-runtime/src/server-operations-pages.test.ts +163 -0
  291. package/templates/.agents/dashboard/packages/local-runtime/src/server-operations-pages.ts +354 -0
  292. package/templates/.agents/dashboard/packages/local-runtime/src/server-operations-runs-route.test.ts +74 -0
  293. package/templates/.agents/dashboard/packages/local-runtime/src/server-operations-runs-route.ts +113 -0
  294. package/templates/.agents/dashboard/packages/local-runtime/src/server-overview.test.ts +68 -0
  295. package/templates/.agents/dashboard/packages/local-runtime/src/server-period.ts +47 -0
  296. package/templates/.agents/dashboard/packages/local-runtime/src/server-projections.ts +483 -0
  297. package/templates/.agents/dashboard/packages/local-runtime/src/server-settings.test.ts +5 -2
  298. package/templates/.agents/dashboard/packages/local-runtime/src/server-snapshot.test.ts +163 -84
  299. package/templates/.agents/dashboard/packages/local-runtime/src/server-workspace.ts +145 -0
  300. package/templates/.agents/dashboard/packages/local-runtime/src/server.test.ts +551 -266
  301. package/templates/.agents/dashboard/packages/local-runtime/src/server.ts +1145 -308
  302. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-metric-contract.test.ts +53 -0
  303. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-metric-contract.ts +708 -0
  304. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model.test.ts +2232 -0
  305. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model.ts +6151 -0
  306. package/templates/.agents/dashboard/packages/local-runtime/src/work-priority-contract.test.ts +33 -0
  307. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard-history.mjs +41 -0
  308. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard-processes.mjs +210 -0
  309. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard.mjs +437 -190
  310. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard.test.mjs +299 -24
  311. package/templates/.agents/dashboard/packages/ui/package.json +1 -1
  312. package/templates/.agents/dashboard/packages/windows-launcher/LauncherVerificationBehaviorTests.cs +206 -0
  313. package/templates/.agents/dashboard/packages/windows-launcher/Program.cs +95 -8
  314. package/templates/.agents/dashboard/packages/windows-launcher/build-dashboard-launcher.ps1 +2 -2
  315. package/templates/.agents/dashboard/packages/windows-launcher/run-launcher-verification-tests.ps1 +22 -0
  316. package/templates/.agents/dashboard/read-model.dbml +2201 -0
  317. package/templates/.agents/dashboard/tests/e2e/package.json +1 -1
  318. package/templates/.agents/dashboard/tests/e2e/playwright.config.ts +1 -1
  319. package/templates/.agents/dashboard/tests/e2e/specs/dashboard.spec.ts +214 -41
  320. package/templates/.agents/dashboard/work-priority.json +34 -0
  321. package/templates/.agents/dashboard/zaip-dashboard-linux.sh +45 -0
  322. package/templates/.agents/dashboard/zaip-dashboard-mac.command +3 -0
  323. package/templates/.agents/dashboard/zaip-dashboard-windows.exe +0 -0
  324. package/templates/.agents/design/.zaip-managed.json +3 -3
  325. package/templates/.agents/design/apps/catalog/package.json +1 -1
  326. package/templates/.agents/design/packages/local-runtime/package.json +1 -1
  327. package/templates/.agents/requirements/autonomous-assurance.md +1 -1
  328. package/templates/.agents/requirements/comparative-audit.md +1 -1
  329. package/templates/.agents/requirements/context-engine.md +1 -1
  330. package/templates/.agents/requirements/cost-observability.md +1 -1
  331. package/templates/.agents/requirements/dashboard-launch.md +24 -0
  332. package/templates/.agents/requirements/data-export.md +1 -1
  333. package/templates/.agents/requirements/design-system.md +1 -1
  334. package/templates/.agents/requirements/execution-engine.md +1 -1
  335. package/templates/.agents/requirements/kanban-dashboard.md +4 -3
  336. package/templates/.agents/requirements/model-orchestration.md +1 -1
  337. package/templates/.agents/requirements/public-distribution.md +9 -6
  338. package/templates/.agents/requirements/software-architecture.md +1 -1
  339. package/templates/.agents/requirements/strategic-improvements.md +1 -1
  340. package/templates/.agents/requirements/work-lifecycle.md +9 -3
  341. package/templates/.agents/requirements/zaip-strategic-95.md +4 -4
  342. package/templates/.agents/rules/autonomy-decision.md +15 -0
  343. package/templates/.agents/rules/core.md +1 -1
  344. package/templates/.agents/rules/run-lifecycle-closure.md +1 -1
  345. package/templates/.agents/rules/specialist-routing.md +19 -0
  346. package/templates/.agents/rules/workflow.md +1 -1
  347. package/templates/.agents/runtime/VERSION +1 -1
  348. package/templates/.agents/runtime/bin/zaip.mjs +114 -64
  349. package/templates/.agents/runtime/checksums.sha256 +6 -4
  350. package/templates/.agents/runtime/manifest.json +3 -1
  351. package/templates/.agents/runtime/pnpm-lock.sha256 +1 -0
  352. package/templates/.agents/runtime/provenance.json +11 -0
  353. package/templates/.agents/runtime/sbom.cdx.json +1929 -39
  354. package/templates/.agents/skills/zaip-aios/SKILL.md +1 -1
  355. package/templates/.agents/skills/zaip-skill-brand-governance/SKILL.md +15 -0
  356. package/templates/.agents/skills/zaip-skill-brand-governance/agents/openai.yaml +4 -0
  357. package/templates/.agents/skills/zaip-skill-brand-governance/references/brandbook-standards.md +30 -0
  358. package/templates/.agents/skills/zaip-skill-dashboard-sqlite/SKILL.md +25 -0
  359. package/templates/.agents/skills/zaip-skill-dashboard-sqlite/agents/openai.yaml +4 -0
  360. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/SKILL.md +18 -0
  361. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/agents/openai.yaml +6 -0
  362. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-fence.mjs +71 -0
  363. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-fence.test.mjs +60 -0
  364. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/scheduled-ready-queue-contract.test.mjs +111 -0
  365. package/templates/.agents/skills/zaip-skill-execution/SKILL.md +2 -2
  366. package/templates/.agents/skills/zaip-skill-frontend-launcher/references/launcher-contract.md +3 -1
  367. package/templates/.agents/skills/zaip-skill-general-operations/SKILL.md +12 -0
  368. package/templates/.agents/skills/zaip-skill-general-operations/agents/openai.yaml +4 -0
  369. package/templates/.agents/skills/zaip-skill-github-deploy/SKILL.md +9 -7
  370. package/templates/.agents/skills/zaip-skill-github-deploy/agents/openai.yaml +2 -2
  371. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/github-deploy-contract.test.mjs +11 -38
  372. package/templates/.agents/skills/zaip-skill-governance-compliance/SKILL.md +12 -0
  373. package/templates/.agents/skills/zaip-skill-governance-compliance/agents/openai.yaml +4 -0
  374. package/templates/.agents/skills/zaip-skill-growth-strategy-revops/SKILL.md +15 -0
  375. package/templates/.agents/skills/zaip-skill-growth-strategy-revops/agents/openai.yaml +4 -0
  376. package/templates/.agents/skills/zaip-skill-growth-strategy-revops/references/growth-revops-framework.md +25 -0
  377. package/templates/.agents/skills/zaip-skill-instalar-agendamento/SKILL.md +17 -0
  378. package/templates/.agents/skills/zaip-skill-instalar-agendamento/agents/openai.yaml +6 -0
  379. package/templates/.agents/skills/zaip-skill-marketing/SKILL.md +3 -3
  380. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-local-telemetry.mjs +76 -27
  381. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.mjs +128 -24
  382. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.test.mjs +122 -4
  383. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-remeasurement.mjs +66 -19
  384. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-remeasurement.test.mjs +193 -7
  385. package/templates/.agents/skills/zaip-skill-sales-methodology/SKILL.md +14 -0
  386. package/templates/.agents/skills/zaip-skill-sales-methodology/agents/openai.yaml +4 -0
  387. package/templates/.agents/skills/zaip-skill-sales-methodology/references/sales-process-framework.md +77 -0
  388. package/templates/.agents/skills/zaip-skill-setup/SKILL.md +5 -0
  389. package/templates/.agents/skills/zaip-skill-sqlite-read-model/SKILL.md +96 -0
  390. package/templates/.agents/skills/zaip-skill-sqlite-read-model/agents/openai.yaml +4 -0
  391. package/templates/.agents/skills/zaip-skill-sqlite-read-model/scripts/ensure-node.mjs +18 -0
  392. package/templates/.agents/zaip-aios/INDEX.md +1 -0
  393. package/templates/.agents/zaip-aios/README.md +37 -8
  394. package/templates/.agents/zaip-aios/VERSION +1 -1
  395. package/templates/.agents/zaip-aios/guides/09-agentes-e-squads.md +43 -6
  396. package/templates/.agents/zaip-aios/guides/10-seguranca.md +21 -7
  397. package/templates/.agents/zaip-aios/guides/17-como-o-custo-e-calculado.md +32 -0
  398. package/templates/template-manifest.json +945 -214
  399. package/templates/.agents/dashboard/apps/frontend/dist/assets/AgentCatalogSettingsPage-CLYIi7Vo.js +0 -1
  400. package/templates/.agents/dashboard/apps/frontend/dist/assets/AgentCatalogSettingsPage-DTDNVQGX.css +0 -1
  401. package/templates/.agents/dashboard/apps/frontend/dist/assets/PricingSettingsDialog-CzEggcRb.js +0 -1
  402. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-05YKn6Z4.js +0 -3
  403. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-YO3yqtgV.css +0 -1
  404. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-8AzCnl3a.js +0 -77
  405. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-DdBYQ_8D.css +0 -1
  406. package/templates/.agents/dashboard/apps/frontend/src/AgentCatalogSettingsPage.tsx +0 -617
  407. package/templates/.agents/dashboard/apps/frontend/src/agent-catalog-settings-page.css +0 -660
  408. package/templates/.agents/dashboard/apps/frontend/src/agent-catalog-settings.test.ts +0 -249
  409. package/templates/.agents/dashboard/dashboard.config.json +0 -4
  410. package/templates/.agents/dashboard/zaip-dashboard.exe +0 -0
@@ -0,0 +1,2201 @@
1
+ Project read_model {
2
+
3
+ database_type: 'SQLite'
4
+
5
+ Note: 'SQLite descartavel e reconstruivel a partir de registros ZAIP canonicos; nao e sistema de registro.'
6
+
7
+ }
8
+
9
+
10
+
11
+ Table zaip_aios_activities {
12
+ activity_row_id TEXT [pk]
13
+ activity_source_kind TEXT [not null]
14
+ activity_key TEXT [not null]
15
+ source_path TEXT [not null]
16
+ source_hash TEXT [not null]
17
+ source_occurred_at TEXT
18
+ recorded_at TEXT [not null]
19
+ version_activity_id TEXT
20
+ source_last_event_id TEXT
21
+ source_last_sequence INTEGER
22
+ work_item_kind TEXT
23
+ title TEXT
24
+ work_item_status TEXT
25
+ work_stage TEXT
26
+ risk TEXT
27
+ run_role TEXT [not null]
28
+ root_run_id TEXT [not null]
29
+ parent_run_id TEXT
30
+ agent_run_id TEXT
31
+ root_agent_run_id TEXT
32
+ parent_agent_run_id TEXT
33
+ agent_run_role TEXT
34
+ delegation_depth INTEGER
35
+ agent_invocation_id TEXT
36
+ root_agent_invocation_id TEXT
37
+ parent_agent_invocation_id TEXT
38
+ invocation_kind TEXT
39
+ execution_id TEXT
40
+ task_id TEXT
41
+ spec_id TEXT
42
+ prd_id TEXT
43
+ change_id TEXT
44
+ conversation_id TEXT
45
+ run_id TEXT
46
+ occurred_at TEXT
47
+ occurred_day_sp TEXT
48
+ execution_kind TEXT
49
+ entrypoint TEXT
50
+ work_type TEXT
51
+ phase TEXT
52
+ purpose TEXT
53
+ status TEXT
54
+ activity_kind TEXT
55
+ zaip_agent TEXT
56
+ zaip_agent_persona TEXT
57
+ zaip_agent_job TEXT
58
+ zaip_agent_role TEXT
59
+ agent_catalog_id TEXT
60
+ agent_catalog_hash TEXT
61
+ client TEXT
62
+ provider TEXT
63
+ model TEXT
64
+ service_tier TEXT
65
+ reasoning_effort TEXT
66
+ source_duration_ms REAL
67
+ source_started_at TEXT
68
+ source_finished_at TEXT
69
+ duration_ms REAL
70
+ duration_provenance TEXT
71
+ input_tokens REAL
72
+ cached_input_tokens REAL
73
+ output_tokens REAL
74
+ reasoning_tokens REAL
75
+ total_tokens REAL
76
+ token_source TEXT
77
+ usage_event_count INTEGER
78
+ llm_call_count INTEGER
79
+ cost_usd REAL
80
+ cost_brl REAL
81
+ cost_method TEXT
82
+ pricing_model TEXT
83
+ pricing_source TEXT
84
+ fx_rate REAL
85
+ source_event_count INTEGER
86
+ root_run_duration REAL
87
+ sub_run_duration REAL
88
+ payload_type TEXT
89
+ payload_json TEXT
90
+ }
91
+
92
+ Table zaip_dim_llm_model {
93
+ model TEXT [pk]
94
+ }
95
+
96
+ Table zaip_dim_provider {
97
+ provider TEXT [pk]
98
+ }
99
+
100
+ Table zaip_dim_zaip_agent {
101
+ zaip_agent TEXT [pk]
102
+ catalog_id TEXT
103
+ persona TEXT
104
+ job TEXT
105
+ role TEXT
106
+ catalog_hash TEXT
107
+ }
108
+
109
+ Table zaip_vw_activities {
110
+ activity_row_id TEXT
111
+ activity_source_kind TEXT
112
+ activity_key TEXT
113
+ source_path TEXT
114
+ source_hash TEXT
115
+ source_occurred_at TEXT
116
+ recorded_at TEXT
117
+ version_activity_id TEXT
118
+ source_last_event_id TEXT
119
+ source_last_sequence INTEGER
120
+ work_item_kind TEXT
121
+ title TEXT
122
+ work_item_status TEXT
123
+ work_stage TEXT
124
+ risk TEXT
125
+ run_role TEXT
126
+ root_run_id TEXT
127
+ parent_run_id TEXT
128
+ agent_run_id TEXT
129
+ root_agent_run_id TEXT
130
+ parent_agent_run_id TEXT
131
+ agent_run_role TEXT
132
+ delegation_depth INTEGER
133
+ agent_invocation_id TEXT
134
+ root_agent_invocation_id TEXT
135
+ parent_agent_invocation_id TEXT
136
+ invocation_kind TEXT
137
+ execution_id TEXT
138
+ task_id TEXT
139
+ spec_id TEXT
140
+ prd_id TEXT
141
+ change_id TEXT
142
+ conversation_id TEXT
143
+ run_id TEXT
144
+ occurred_at TEXT
145
+ occurred_day_sp TEXT
146
+ execution_kind TEXT
147
+ entrypoint TEXT
148
+ work_type TEXT
149
+ phase TEXT
150
+ purpose TEXT
151
+ status TEXT
152
+ activity_kind TEXT
153
+ zaip_agent TEXT
154
+ zaip_agent_persona TEXT
155
+ zaip_agent_job TEXT
156
+ zaip_agent_role TEXT
157
+ agent_catalog_id TEXT
158
+ agent_catalog_hash TEXT
159
+ client TEXT
160
+ provider TEXT
161
+ model TEXT
162
+ service_tier TEXT
163
+ reasoning_effort TEXT
164
+ source_duration_ms REAL
165
+ source_started_at TEXT
166
+ source_finished_at TEXT
167
+ duration_ms REAL
168
+ duration_provenance TEXT
169
+ input_tokens REAL
170
+ cached_input_tokens REAL
171
+ output_tokens REAL
172
+ reasoning_tokens REAL
173
+ total_tokens REAL
174
+ token_source TEXT
175
+ usage_event_count INTEGER
176
+ llm_call_count INTEGER
177
+ cost_usd REAL
178
+ cost_brl REAL
179
+ cost_method TEXT
180
+ pricing_model TEXT
181
+ pricing_source TEXT
182
+ fx_rate REAL
183
+ source_event_count INTEGER
184
+ root_run_duration REAL
185
+ sub_run_duration REAL
186
+ payload_type TEXT
187
+ payload_json TEXT
188
+ attributed_token_active_ms TEXT
189
+ Note: 'VIEW persistida no SQLite.'
190
+ }
191
+
192
+ Table zaip_vw_agent_runs {
193
+ activity_row_id TEXT
194
+ activity_source_kind TEXT
195
+ activity_key TEXT
196
+ source_path TEXT
197
+ source_hash TEXT
198
+ source_occurred_at TEXT
199
+ recorded_at TEXT
200
+ version_activity_id TEXT
201
+ source_last_event_id TEXT
202
+ source_last_sequence INTEGER
203
+ work_item_kind TEXT
204
+ title TEXT
205
+ work_item_status TEXT
206
+ work_stage TEXT
207
+ risk TEXT
208
+ run_role TEXT
209
+ root_run_id TEXT
210
+ parent_run_id TEXT
211
+ agent_run_id TEXT
212
+ root_agent_run_id TEXT
213
+ parent_agent_run_id TEXT
214
+ agent_run_role TEXT
215
+ delegation_depth INTEGER
216
+ agent_invocation_id TEXT
217
+ root_agent_invocation_id TEXT
218
+ parent_agent_invocation_id TEXT
219
+ invocation_kind TEXT
220
+ execution_id TEXT
221
+ task_id TEXT
222
+ spec_id TEXT
223
+ prd_id TEXT
224
+ change_id TEXT
225
+ conversation_id TEXT
226
+ run_id TEXT
227
+ occurred_at TEXT
228
+ occurred_day_sp TEXT
229
+ execution_kind TEXT
230
+ entrypoint TEXT
231
+ work_type TEXT
232
+ phase TEXT
233
+ purpose TEXT
234
+ status TEXT
235
+ activity_kind TEXT
236
+ zaip_agent TEXT
237
+ zaip_agent_persona TEXT
238
+ zaip_agent_job TEXT
239
+ zaip_agent_role TEXT
240
+ agent_catalog_id TEXT
241
+ agent_catalog_hash TEXT
242
+ client TEXT
243
+ provider TEXT
244
+ model TEXT
245
+ service_tier TEXT
246
+ reasoning_effort TEXT
247
+ source_duration_ms REAL
248
+ source_started_at TEXT
249
+ source_finished_at TEXT
250
+ duration_ms REAL
251
+ duration_provenance TEXT
252
+ input_tokens REAL
253
+ cached_input_tokens REAL
254
+ output_tokens REAL
255
+ reasoning_tokens REAL
256
+ total_tokens REAL
257
+ token_source TEXT
258
+ usage_event_count INTEGER
259
+ llm_call_count INTEGER
260
+ cost_usd REAL
261
+ cost_brl REAL
262
+ cost_method TEXT
263
+ pricing_model TEXT
264
+ pricing_source TEXT
265
+ fx_rate REAL
266
+ source_event_count INTEGER
267
+ root_run_duration REAL
268
+ sub_run_duration REAL
269
+ payload_type TEXT
270
+ payload_json TEXT
271
+ attributed_token_active_ms TEXT
272
+ Note: 'VIEW persistida no SQLite.'
273
+ }
274
+
275
+ Table zaip_vw_attributed_token_active {
276
+ activity_row_id TEXT
277
+ occurred_day_sp TEXT
278
+ attributed_token_active_ms TEXT
279
+ run_id TEXT
280
+ execution_id TEXT
281
+ task_id TEXT
282
+ spec_id TEXT
283
+ prd_id TEXT
284
+ conversation_id TEXT
285
+ zaip_agent TEXT
286
+ provider TEXT
287
+ model TEXT
288
+ phase TEXT
289
+ status TEXT
290
+ Note: 'VIEW persistida no SQLite.'
291
+ }
292
+
293
+ Table zaip_vw_attributed_token_active_facts {
294
+ activity_row_id TEXT
295
+ occurred_day_sp TEXT
296
+ attributed_token_active_ms TEXT
297
+ Note: 'VIEW persistida no SQLite.'
298
+ }
299
+
300
+ Table zaip_vw_canonical_artifacts {
301
+ artifact_kind TEXT
302
+ artifact_id TEXT
303
+ occurred_at TEXT
304
+ occurred_day_sp TEXT
305
+ source_path TEXT
306
+ Note: 'VIEW persistida no SQLite.'
307
+ }
308
+
309
+ Table zaip_vw_canonical_changes {
310
+ id TEXT
311
+ title TEXT
312
+ status TEXT
313
+ risk TEXT
314
+ source_type TEXT
315
+ source_id TEXT
316
+ source_spec_id TEXT
317
+ source_prd_id TEXT
318
+ requirement_ids_json TEXT
319
+ acceptance_ids_json TEXT
320
+ task_ids_json TEXT
321
+ result TEXT
322
+ created_at TEXT
323
+ occurred_day_sp TEXT
324
+ source_path TEXT
325
+ Note: 'VIEW persistida no SQLite.'
326
+ }
327
+
328
+ Table zaip_vw_canonical_decisions {
329
+ id TEXT
330
+ title TEXT
331
+ origin TEXT
332
+ scope_type TEXT
333
+ scope_id TEXT
334
+ created_at TEXT
335
+ occurred_day_sp TEXT
336
+ source_path TEXT
337
+ Note: 'VIEW persistida no SQLite.'
338
+ }
339
+
340
+ Table zaip_vw_canonical_executions {
341
+ id TEXT
342
+ status TEXT
343
+ kind TEXT
344
+ origin_type TEXT
345
+ origin_id TEXT
346
+ created_at TEXT
347
+ occurred_day_sp TEXT
348
+ finished_at TEXT
349
+ source_path TEXT
350
+ Note: 'VIEW persistida no SQLite.'
351
+ }
352
+
353
+ Table zaip_vw_canonical_run_index {
354
+ run_id TEXT
355
+ occurred_at TEXT
356
+ occurred_day_sp TEXT
357
+ task_id TEXT
358
+ phase TEXT
359
+ run_role TEXT
360
+ duration_ms TEXT
361
+ source_event_count TEXT
362
+ zaip_agent TEXT
363
+ provider TEXT
364
+ model TEXT
365
+ status TEXT
366
+ Note: 'VIEW persistida no SQLite.'
367
+ }
368
+
369
+ Table zaip_vw_canonical_work_items {
370
+ entity_kind TEXT
371
+ id TEXT
372
+ title TEXT
373
+ status TEXT
374
+ stage TEXT
375
+ risk TEXT
376
+ occurred_at TEXT
377
+ occurred_day_sp TEXT
378
+ Note: 'VIEW persistida no SQLite.'
379
+ }
380
+
381
+ Table zaip_vw_changes {
382
+ id TEXT
383
+ title TEXT
384
+ status TEXT
385
+ risk TEXT
386
+ source_type TEXT
387
+ source_id TEXT
388
+ requirement_ids_json TEXT
389
+ acceptance_ids_json TEXT
390
+ task_ids_json TEXT
391
+ result TEXT
392
+ occurred_at TEXT
393
+ occurred_day_sp TEXT
394
+ source_path TEXT
395
+ Note: 'VIEW persistida no SQLite.'
396
+ }
397
+
398
+ Table zaip_vw_conversations {
399
+ id BLOB
400
+ status TEXT
401
+ occurred_at TEXT
402
+ occurred_day_sp TEXT
403
+ Note: 'VIEW persistida no SQLite.'
404
+ }
405
+
406
+ Table zaip_vw_cost_agent_invocations {
407
+ activity_row_id TEXT
408
+ activity_key TEXT
409
+ version_activity_id TEXT
410
+ source_occurred_at TEXT
411
+ root_agent_invocation_id TEXT
412
+ parent_agent_invocation_id TEXT
413
+ execution_id TEXT
414
+ task_id TEXT
415
+ spec_id TEXT
416
+ prd_id TEXT
417
+ change_id TEXT
418
+ conversation_id TEXT
419
+ run_id TEXT
420
+ occurred_at TEXT
421
+ occurred_day_sp TEXT
422
+ invocation_kind TEXT
423
+ delegation_depth INTEGER
424
+ zaip_agent TEXT
425
+ zaip_agent_persona TEXT
426
+ zaip_agent_job TEXT
427
+ zaip_agent_role TEXT
428
+ client TEXT
429
+ provider TEXT
430
+ model TEXT
431
+ phase TEXT
432
+ purpose TEXT
433
+ status TEXT
434
+ source_started_at TEXT
435
+ source_finished_at TEXT
436
+ attributed_token_active_ms TEXT
437
+ duration_ms TEXT
438
+ input_tokens REAL
439
+ cached_input_tokens REAL
440
+ output_tokens REAL
441
+ reasoning_tokens REAL
442
+ total_tokens REAL
443
+ token_source TEXT
444
+ cost_usd REAL
445
+ cost_brl REAL
446
+ cost_method TEXT
447
+ pricing_model TEXT
448
+ pricing_source TEXT
449
+ fx_rate REAL
450
+ service_tier TEXT
451
+ reasoning_effort TEXT
452
+ source_event_count INTEGER
453
+ usage_event_count INTEGER
454
+ llm_call_count INTEGER
455
+ agent_invocation_id TEXT
456
+ pricing_segment_count TEXT
457
+ pricing_mixed TEXT
458
+ uncached_input_tokens TEXT
459
+ visible_output_tokens TEXT
460
+ input_rate_usd_per_million TEXT
461
+ cached_input_rate_usd_per_million TEXT
462
+ output_rate_usd_per_million TEXT
463
+ reasoning_rate_usd_per_million TEXT
464
+ context_input_multiplier TEXT
465
+ context_output_multiplier TEXT
466
+ speed_cost_multiplier TEXT
467
+ pricing_scenario TEXT
468
+ standard_cost_usd TEXT
469
+ speed_uplift_usd TEXT
470
+ input_cost_usd TEXT
471
+ cached_input_cost_usd TEXT
472
+ output_cost_usd TEXT
473
+ reasoning_cost_usd TEXT
474
+ calculated_cost_usd TEXT
475
+ recorded_cost_usd TEXT
476
+ cost_variance_usd TEXT
477
+ audit_pricing_model TEXT
478
+ audit_pricing_source TEXT
479
+ Note: 'VIEW persistida no SQLite.'
480
+ }
481
+
482
+ Table zaip_vw_cost_annual {
483
+ period_kind TEXT
484
+ period_key BLOB
485
+ total_run_count TEXT
486
+ invocation_count TEXT
487
+ llm_call_count TEXT
488
+ source_event_count TEXT
489
+ cost_monitor_total_duration TEXT
490
+ total_tokens TEXT
491
+ total_cost_usd TEXT
492
+ total_cost_brl TEXT
493
+ start_day BLOB
494
+ end_day BLOB
495
+ total_duration TEXT
496
+ Note: 'VIEW persistida no SQLite.'
497
+ }
498
+
499
+ Table zaip_vw_cost_conversations {
500
+ conversation_id TEXT
501
+ title TEXT
502
+ status TEXT
503
+ risk TEXT
504
+ occurred_at TEXT
505
+ occurred_day_sp TEXT
506
+ llm_call_count TEXT
507
+ total_duration TEXT
508
+ total_tokens TEXT
509
+ total_cost_usd TEXT
510
+ total_cost_brl TEXT
511
+ invocation_count TEXT
512
+ Note: 'VIEW persistida no SQLite.'
513
+ }
514
+
515
+ Table zaip_vw_cost_daily {
516
+ period_kind TEXT
517
+ period_key BLOB
518
+ total_run_count TEXT
519
+ invocation_count TEXT
520
+ llm_call_count TEXT
521
+ source_event_count TEXT
522
+ cost_monitor_total_duration TEXT
523
+ total_tokens TEXT
524
+ total_cost_usd TEXT
525
+ total_cost_brl TEXT
526
+ start_day BLOB
527
+ end_day BLOB
528
+ total_duration TEXT
529
+ Note: 'VIEW persistida no SQLite.'
530
+ }
531
+
532
+ Table zaip_vw_cost_executions {
533
+ execution_id TEXT
534
+ title TEXT
535
+ status TEXT
536
+ risk TEXT
537
+ occurred_at TEXT
538
+ occurred_day_sp TEXT
539
+ llm_call_count TEXT
540
+ total_duration TEXT
541
+ total_tokens TEXT
542
+ total_cost_usd TEXT
543
+ total_cost_brl TEXT
544
+ invocation_count TEXT
545
+ Note: 'VIEW persistida no SQLite.'
546
+ }
547
+
548
+ Table zaip_vw_cost_group_daily {
549
+ day TEXT
550
+ group_kind TEXT
551
+ group_value TEXT
552
+ invocation_count TEXT
553
+ llm_call_count TEXT
554
+ total_duration TEXT
555
+ total_input_tokens TEXT
556
+ total_cached_input_tokens TEXT
557
+ total_output_tokens TEXT
558
+ total_reasoning_tokens TEXT
559
+ total_tokens TEXT
560
+ total_cost_usd TEXT
561
+ total_cost_brl TEXT
562
+ Note: 'VIEW persistida no SQLite.'
563
+ }
564
+
565
+ Table zaip_vw_cost_models {
566
+ model TEXT
567
+ llm_call_count TEXT
568
+ total_tokens TEXT
569
+ cost_usd TEXT
570
+ cost_brl TEXT
571
+ invocation_count TEXT
572
+ Note: 'VIEW persistida no SQLite.'
573
+ }
574
+
575
+ Table zaip_vw_cost_monitor_agent_invocations {
576
+ activity_row_id TEXT
577
+ activity_key TEXT
578
+ version_activity_id TEXT
579
+ source_occurred_at TEXT
580
+ root_agent_invocation_id TEXT
581
+ parent_agent_invocation_id TEXT
582
+ execution_id TEXT
583
+ task_id TEXT
584
+ spec_id TEXT
585
+ prd_id TEXT
586
+ change_id TEXT
587
+ conversation_id TEXT
588
+ run_id TEXT
589
+ occurred_at TEXT
590
+ occurred_day_sp TEXT
591
+ invocation_kind TEXT
592
+ delegation_depth INTEGER
593
+ zaip_agent TEXT
594
+ zaip_agent_persona TEXT
595
+ zaip_agent_job TEXT
596
+ zaip_agent_role TEXT
597
+ client TEXT
598
+ provider TEXT
599
+ model TEXT
600
+ phase TEXT
601
+ purpose TEXT
602
+ status TEXT
603
+ source_started_at TEXT
604
+ source_finished_at TEXT
605
+ attributed_token_active_ms TEXT
606
+ duration_ms TEXT
607
+ input_tokens REAL
608
+ cached_input_tokens REAL
609
+ output_tokens REAL
610
+ reasoning_tokens REAL
611
+ total_tokens REAL
612
+ token_source TEXT
613
+ cost_usd REAL
614
+ cost_brl REAL
615
+ cost_method TEXT
616
+ pricing_model TEXT
617
+ pricing_source TEXT
618
+ fx_rate REAL
619
+ service_tier TEXT
620
+ reasoning_effort TEXT
621
+ source_event_count INTEGER
622
+ usage_event_count INTEGER
623
+ llm_call_count INTEGER
624
+ agent_invocation_id TEXT
625
+ pricing_segment_count TEXT
626
+ pricing_mixed TEXT
627
+ uncached_input_tokens TEXT
628
+ visible_output_tokens TEXT
629
+ input_rate_usd_per_million TEXT
630
+ cached_input_rate_usd_per_million TEXT
631
+ output_rate_usd_per_million TEXT
632
+ reasoning_rate_usd_per_million TEXT
633
+ context_input_multiplier TEXT
634
+ context_output_multiplier TEXT
635
+ speed_cost_multiplier TEXT
636
+ pricing_scenario TEXT
637
+ standard_cost_usd TEXT
638
+ speed_uplift_usd TEXT
639
+ input_cost_usd TEXT
640
+ cached_input_cost_usd TEXT
641
+ output_cost_usd TEXT
642
+ reasoning_cost_usd TEXT
643
+ calculated_cost_usd TEXT
644
+ recorded_cost_usd TEXT
645
+ cost_variance_usd TEXT
646
+ audit_pricing_model TEXT
647
+ audit_pricing_source TEXT
648
+ Note: 'VIEW persistida no SQLite.'
649
+ }
650
+
651
+ Table zaip_vw_cost_monitor_annual {
652
+ period_kind TEXT
653
+ period_key BLOB
654
+ total_run_count TEXT
655
+ invocation_count TEXT
656
+ llm_call_count TEXT
657
+ source_event_count TEXT
658
+ cost_monitor_total_duration TEXT
659
+ total_tokens TEXT
660
+ total_cost_usd TEXT
661
+ total_cost_brl TEXT
662
+ start_day BLOB
663
+ end_day BLOB
664
+ total_duration TEXT
665
+ Note: 'VIEW persistida no SQLite.'
666
+ }
667
+
668
+ Table zaip_vw_cost_monitor_conversations {
669
+ conversation_id TEXT
670
+ title TEXT
671
+ status TEXT
672
+ risk TEXT
673
+ occurred_at TEXT
674
+ occurred_day_sp TEXT
675
+ llm_call_count TEXT
676
+ total_duration TEXT
677
+ total_tokens TEXT
678
+ total_cost_usd TEXT
679
+ total_cost_brl TEXT
680
+ invocation_count TEXT
681
+ Note: 'VIEW persistida no SQLite.'
682
+ }
683
+
684
+ Table zaip_vw_cost_monitor_daily {
685
+ period_kind TEXT
686
+ period_key BLOB
687
+ total_run_count TEXT
688
+ invocation_count TEXT
689
+ llm_call_count TEXT
690
+ source_event_count TEXT
691
+ cost_monitor_total_duration TEXT
692
+ total_tokens TEXT
693
+ total_cost_usd TEXT
694
+ total_cost_brl TEXT
695
+ start_day BLOB
696
+ end_day BLOB
697
+ total_duration TEXT
698
+ Note: 'VIEW persistida no SQLite.'
699
+ }
700
+
701
+ Table zaip_vw_cost_monitor_executions {
702
+ execution_id TEXT
703
+ title TEXT
704
+ status TEXT
705
+ risk TEXT
706
+ occurred_at TEXT
707
+ occurred_day_sp TEXT
708
+ llm_call_count TEXT
709
+ total_duration TEXT
710
+ total_tokens TEXT
711
+ total_cost_usd TEXT
712
+ total_cost_brl TEXT
713
+ invocation_count TEXT
714
+ Note: 'VIEW persistida no SQLite.'
715
+ }
716
+
717
+ Table zaip_vw_cost_monitor_group_daily {
718
+ day TEXT
719
+ group_kind TEXT
720
+ group_value TEXT
721
+ invocation_count TEXT
722
+ llm_call_count TEXT
723
+ total_duration TEXT
724
+ total_input_tokens TEXT
725
+ total_cached_input_tokens TEXT
726
+ total_output_tokens TEXT
727
+ total_reasoning_tokens TEXT
728
+ total_tokens TEXT
729
+ total_cost_usd TEXT
730
+ total_cost_brl TEXT
731
+ Note: 'VIEW persistida no SQLite.'
732
+ }
733
+
734
+ Table zaip_vw_cost_monitor_group_daily_cache {
735
+ day TEXT
736
+ group_kind TEXT
737
+ group_value TEXT
738
+ invocation_count TEXT
739
+ llm_call_count TEXT
740
+ total_duration TEXT
741
+ total_input_tokens TEXT
742
+ total_cached_input_tokens TEXT
743
+ total_output_tokens TEXT
744
+ total_reasoning_tokens TEXT
745
+ total_tokens TEXT
746
+ total_cost_usd TEXT
747
+ total_cost_brl TEXT
748
+ Note: 'VIEW persistida no SQLite.'
749
+ }
750
+
751
+ Table zaip_vw_cost_monitor_models {
752
+ model TEXT
753
+ llm_call_count TEXT
754
+ total_tokens TEXT
755
+ cost_usd TEXT
756
+ cost_brl TEXT
757
+ invocation_count TEXT
758
+ Note: 'VIEW persistida no SQLite.'
759
+ }
760
+
761
+ Table zaip_vw_cost_monitor_monthly {
762
+ period_kind TEXT
763
+ period_key BLOB
764
+ total_run_count TEXT
765
+ invocation_count TEXT
766
+ llm_call_count TEXT
767
+ source_event_count TEXT
768
+ cost_monitor_total_duration TEXT
769
+ total_tokens TEXT
770
+ total_cost_usd TEXT
771
+ total_cost_brl TEXT
772
+ start_day BLOB
773
+ end_day BLOB
774
+ total_duration TEXT
775
+ Note: 'VIEW persistida no SQLite.'
776
+ }
777
+
778
+ Table zaip_vw_cost_monitor_overview {
779
+ period_kind TEXT
780
+ period_key BLOB
781
+ total_run_count TEXT
782
+ invocation_count TEXT
783
+ llm_call_count TEXT
784
+ source_event_count TEXT
785
+ cost_monitor_total_duration TEXT
786
+ total_tokens TEXT
787
+ total_cost_usd TEXT
788
+ total_cost_brl TEXT
789
+ Note: 'VIEW persistida no SQLite.'
790
+ }
791
+
792
+ Table zaip_vw_cost_monitor_overview_view {
793
+ period_kind TEXT
794
+ period_key BLOB
795
+ total_run_count TEXT
796
+ invocation_count TEXT
797
+ llm_call_count TEXT
798
+ source_event_count TEXT
799
+ cost_monitor_total_duration TEXT
800
+ total_tokens TEXT
801
+ total_cost_usd TEXT
802
+ total_cost_brl TEXT
803
+ start_day BLOB
804
+ end_day BLOB
805
+ total_duration TEXT
806
+ Note: 'VIEW persistida no SQLite.'
807
+ }
808
+
809
+ Table zaip_vw_cost_monitor_prds {
810
+ prd_id TEXT
811
+ title TEXT
812
+ status TEXT
813
+ risk TEXT
814
+ occurred_at TEXT
815
+ occurred_day_sp TEXT
816
+ llm_call_count TEXT
817
+ total_duration TEXT
818
+ total_tokens TEXT
819
+ total_cost_usd TEXT
820
+ total_cost_brl TEXT
821
+ invocation_count TEXT
822
+ Note: 'VIEW persistida no SQLite.'
823
+ }
824
+
825
+ Table zaip_vw_cost_monitor_providers {
826
+ provider TEXT
827
+ llm_call_count TEXT
828
+ total_tokens TEXT
829
+ cost_usd TEXT
830
+ cost_brl TEXT
831
+ invocation_count TEXT
832
+ Note: 'VIEW persistida no SQLite.'
833
+ }
834
+
835
+ Table zaip_vw_cost_monitor_specs {
836
+ spec_id TEXT
837
+ title TEXT
838
+ status TEXT
839
+ risk TEXT
840
+ occurred_at TEXT
841
+ occurred_day_sp TEXT
842
+ llm_call_count TEXT
843
+ total_duration TEXT
844
+ total_tokens TEXT
845
+ total_cost_usd TEXT
846
+ total_cost_brl TEXT
847
+ invocation_count TEXT
848
+ Note: 'VIEW persistida no SQLite.'
849
+ }
850
+
851
+ Table zaip_vw_cost_monitor_tasks {
852
+ task_id TEXT
853
+ title TEXT
854
+ status TEXT
855
+ risk TEXT
856
+ occurred_at TEXT
857
+ occurred_day_sp TEXT
858
+ llm_call_count TEXT
859
+ total_duration TEXT
860
+ total_tokens TEXT
861
+ total_cost_usd TEXT
862
+ total_cost_brl TEXT
863
+ invocation_count TEXT
864
+ Note: 'VIEW persistida no SQLite.'
865
+ }
866
+
867
+ Table zaip_vw_cost_monitor_zaip_agents {
868
+ zaip_agent TEXT
869
+ llm_call_count TEXT
870
+ total_tokens TEXT
871
+ cost_usd TEXT
872
+ cost_brl TEXT
873
+ invocation_count TEXT
874
+ Note: 'VIEW persistida no SQLite.'
875
+ }
876
+
877
+ Table zaip_vw_cost_monthly {
878
+ period_kind TEXT
879
+ period_key BLOB
880
+ total_run_count TEXT
881
+ invocation_count TEXT
882
+ llm_call_count TEXT
883
+ source_event_count TEXT
884
+ cost_monitor_total_duration TEXT
885
+ total_tokens TEXT
886
+ total_cost_usd TEXT
887
+ total_cost_brl TEXT
888
+ start_day BLOB
889
+ end_day BLOB
890
+ total_duration TEXT
891
+ Note: 'VIEW persistida no SQLite.'
892
+ }
893
+
894
+ Table zaip_vw_cost_overview {
895
+ period_kind TEXT
896
+ period_key BLOB
897
+ total_run_count TEXT
898
+ invocation_count TEXT
899
+ llm_call_count TEXT
900
+ source_event_count TEXT
901
+ cost_monitor_total_duration TEXT
902
+ total_tokens TEXT
903
+ total_cost_usd TEXT
904
+ total_cost_brl TEXT
905
+ start_day BLOB
906
+ end_day BLOB
907
+ total_duration TEXT
908
+ Note: 'VIEW persistida no SQLite.'
909
+ }
910
+
911
+ Table zaip_vw_cost_prds {
912
+ prd_id TEXT
913
+ title TEXT
914
+ status TEXT
915
+ risk TEXT
916
+ occurred_at TEXT
917
+ occurred_day_sp TEXT
918
+ llm_call_count TEXT
919
+ total_duration TEXT
920
+ total_tokens TEXT
921
+ total_cost_usd TEXT
922
+ total_cost_brl TEXT
923
+ invocation_count TEXT
924
+ Note: 'VIEW persistida no SQLite.'
925
+ }
926
+
927
+ Table zaip_vw_cost_providers {
928
+ provider TEXT
929
+ llm_call_count TEXT
930
+ total_tokens TEXT
931
+ cost_usd TEXT
932
+ cost_brl TEXT
933
+ invocation_count TEXT
934
+ Note: 'VIEW persistida no SQLite.'
935
+ }
936
+
937
+ Table zaip_vw_cost_specs {
938
+ spec_id TEXT
939
+ title TEXT
940
+ status TEXT
941
+ risk TEXT
942
+ occurred_at TEXT
943
+ occurred_day_sp TEXT
944
+ llm_call_count TEXT
945
+ total_duration TEXT
946
+ total_tokens TEXT
947
+ total_cost_usd TEXT
948
+ total_cost_brl TEXT
949
+ invocation_count TEXT
950
+ Note: 'VIEW persistida no SQLite.'
951
+ }
952
+
953
+ Table zaip_vw_cost_tasks {
954
+ task_id TEXT
955
+ title TEXT
956
+ status TEXT
957
+ risk TEXT
958
+ occurred_at TEXT
959
+ occurred_day_sp TEXT
960
+ llm_call_count TEXT
961
+ total_duration TEXT
962
+ total_tokens TEXT
963
+ total_cost_usd TEXT
964
+ total_cost_brl TEXT
965
+ invocation_count TEXT
966
+ Note: 'VIEW persistida no SQLite.'
967
+ }
968
+
969
+ Table zaip_vw_cost_zaip_agents {
970
+ zaip_agent TEXT
971
+ llm_call_count TEXT
972
+ total_tokens TEXT
973
+ cost_usd TEXT
974
+ cost_brl TEXT
975
+ invocation_count TEXT
976
+ Note: 'VIEW persistida no SQLite.'
977
+ }
978
+
979
+ Table zaip_vw_daily_aggregate_cache {
980
+ day BLOB
981
+ prd_count TEXT
982
+ spec_count TEXT
983
+ task_count TEXT
984
+ validation_count TEXT
985
+ evidence_count TEXT
986
+ activity_count TEXT
987
+ root_run_count TEXT
988
+ sub_run_count TEXT
989
+ total_run_count TEXT
990
+ invocation_count TEXT
991
+ cost_monitor_invocation_count TEXT
992
+ llm_call_count TEXT
993
+ source_event_count TEXT
994
+ total_root_run_duration TEXT
995
+ total_sub_run_duration TEXT
996
+ operations_total_duration TEXT
997
+ cost_monitor_total_duration TEXT
998
+ cost_monitor_duration_eligible_runs TEXT
999
+ cost_monitor_duration_known_runs TEXT
1000
+ total_duration TEXT
1001
+ total_tokens TEXT
1002
+ total_cost_usd TEXT
1003
+ total_cost_brl TEXT
1004
+ Note: 'VIEW persistida no SQLite.'
1005
+ }
1006
+
1007
+ Table zaip_vw_daily_aggregates {
1008
+ day BLOB
1009
+ prd_count TEXT
1010
+ spec_count TEXT
1011
+ task_count TEXT
1012
+ validation_count TEXT
1013
+ evidence_count TEXT
1014
+ activity_count TEXT
1015
+ root_run_count TEXT
1016
+ sub_run_count TEXT
1017
+ total_run_count TEXT
1018
+ invocation_count TEXT
1019
+ cost_monitor_invocation_count TEXT
1020
+ llm_call_count TEXT
1021
+ source_event_count TEXT
1022
+ total_root_run_duration TEXT
1023
+ total_sub_run_duration TEXT
1024
+ operations_total_duration TEXT
1025
+ cost_monitor_total_duration TEXT
1026
+ cost_monitor_duration_eligible_runs TEXT
1027
+ cost_monitor_duration_known_runs TEXT
1028
+ total_duration TEXT
1029
+ total_tokens TEXT
1030
+ total_cost_usd TEXT
1031
+ total_cost_brl TEXT
1032
+ Note: 'VIEW persistida no SQLite.'
1033
+ }
1034
+
1035
+ Table zaip_vw_decisions {
1036
+ id TEXT
1037
+ title TEXT
1038
+ origin TEXT
1039
+ scope_type TEXT
1040
+ scope_id TEXT
1041
+ status TEXT
1042
+ risk TEXT
1043
+ occurred_at TEXT
1044
+ occurred_day_sp TEXT
1045
+ source_path TEXT
1046
+ Note: 'VIEW persistida no SQLite.'
1047
+ }
1048
+
1049
+ Table zaip_vw_dimensions {
1050
+ dimension TEXT
1051
+ value TEXT
1052
+ Note: 'VIEW persistida no SQLite.'
1053
+ }
1054
+
1055
+ Table zaip_vw_entities {
1056
+ entity_kind TEXT
1057
+ id BLOB
1058
+ title TEXT
1059
+ status TEXT
1060
+ risk TEXT
1061
+ occurred_at TEXT
1062
+ occurred_day_sp TEXT
1063
+ Note: 'VIEW persistida no SQLite.'
1064
+ }
1065
+
1066
+ Table zaip_vw_executions {
1067
+ id BLOB
1068
+ status TEXT
1069
+ occurred_at TEXT
1070
+ occurred_day_sp TEXT
1071
+ Note: 'VIEW persistida no SQLite.'
1072
+ }
1073
+
1074
+ Table zaip_vw_files {
1075
+ path TEXT
1076
+ content TEXT
1077
+ mtime_ms TEXT
1078
+ size_bytes TEXT
1079
+ content_sha256 TEXT
1080
+ artifact_kind TEXT
1081
+ artifact_id TEXT
1082
+ artifact_occurred_at TEXT
1083
+ artifact_occurred_day_sp TEXT
1084
+ Note: 'VIEW persistida no SQLite.'
1085
+ }
1086
+
1087
+ Table zaip_vw_first_fold_overview {
1088
+ period_kind TEXT
1089
+ period_key BLOB
1090
+ start_day BLOB
1091
+ end_day BLOB
1092
+ prd_count TEXT
1093
+ spec_count TEXT
1094
+ task_count TEXT
1095
+ validation_count TEXT
1096
+ evidence_count TEXT
1097
+ activity_count TEXT
1098
+ root_run_count TEXT
1099
+ sub_run_count TEXT
1100
+ total_run_count TEXT
1101
+ invocation_count TEXT
1102
+ cost_monitor_invocation_count TEXT
1103
+ llm_call_count TEXT
1104
+ source_event_count TEXT
1105
+ total_root_run_duration TEXT
1106
+ total_sub_run_duration TEXT
1107
+ operations_total_duration TEXT
1108
+ cost_monitor_total_duration TEXT
1109
+ total_duration TEXT
1110
+ total_tokens TEXT
1111
+ total_cost_usd TEXT
1112
+ total_cost_brl TEXT
1113
+ Note: 'VIEW persistida no SQLite.'
1114
+ }
1115
+
1116
+ Table zaip_vw_first_fold_overview_all_time {
1117
+ period_key TEXT
1118
+ start_day TEXT
1119
+ end_day TEXT
1120
+ task_count TEXT
1121
+ completed_task_count TEXT
1122
+ spec_count TEXT
1123
+ completed_spec_count TEXT
1124
+ prd_count TEXT
1125
+ completed_prd_count TEXT
1126
+ total_run_count TEXT
1127
+ agent_invocation_count TEXT
1128
+ llm_call_count TEXT
1129
+ total_duration_ms TEXT
1130
+ total_tokens TEXT
1131
+ total_cost_usd TEXT
1132
+ total_cost_brl TEXT
1133
+ execution_day_count TEXT
1134
+ latest_task_created_at TEXT
1135
+ Note: 'VIEW persistida no SQLite.'
1136
+ }
1137
+
1138
+ Table zaip_vw_first_fold_prd {
1139
+ id BLOB
1140
+ title TEXT
1141
+ status TEXT
1142
+ risk TEXT
1143
+ occurred_at TEXT
1144
+ occurred_day_sp TEXT
1145
+ invocation_count TEXT
1146
+ llm_call_count TEXT
1147
+ total_duration TEXT
1148
+ total_tokens TEXT
1149
+ total_cost_usd TEXT
1150
+ total_cost_brl TEXT
1151
+ Note: 'VIEW persistida no SQLite.'
1152
+ }
1153
+
1154
+ Table zaip_vw_first_fold_prd_classification_all_time {
1155
+ classification TEXT
1156
+ entity_count TEXT
1157
+ entity_percentage TEXT
1158
+ Note: 'VIEW persistida no SQLite.'
1159
+ }
1160
+
1161
+ Table zaip_vw_first_fold_prd_metrics_all_time {
1162
+ entity_count TEXT
1163
+ total_run_count TEXT
1164
+ total_duration_ms TEXT
1165
+ total_tokens TEXT
1166
+ total_cost_usd TEXT
1167
+ total_cost_brl TEXT
1168
+ average_duration_ms TEXT
1169
+ average_tokens TEXT
1170
+ average_cost_usd TEXT
1171
+ average_cost_brl TEXT
1172
+ latest_created_at TEXT
1173
+ Note: 'VIEW persistida no SQLite.'
1174
+ }
1175
+
1176
+ Table zaip_vw_first_fold_prd_status_all_time {
1177
+ stage TEXT
1178
+ entity_count TEXT
1179
+ entity_percentage TEXT
1180
+ Note: 'VIEW persistida no SQLite.'
1181
+ }
1182
+
1183
+ Table zaip_vw_first_fold_prd_summary {
1184
+ id BLOB
1185
+ title TEXT
1186
+ status TEXT
1187
+ risk TEXT
1188
+ occurred_at TEXT
1189
+ occurred_day_sp TEXT
1190
+ invocation_count TEXT
1191
+ llm_call_count TEXT
1192
+ total_duration TEXT
1193
+ total_tokens TEXT
1194
+ total_cost_usd TEXT
1195
+ total_cost_brl TEXT
1196
+ Note: 'VIEW persistida no SQLite.'
1197
+ }
1198
+
1199
+ Table zaip_vw_first_fold_spec {
1200
+ id BLOB
1201
+ title TEXT
1202
+ status TEXT
1203
+ risk TEXT
1204
+ occurred_at TEXT
1205
+ occurred_day_sp TEXT
1206
+ invocation_count TEXT
1207
+ llm_call_count TEXT
1208
+ total_duration TEXT
1209
+ total_tokens TEXT
1210
+ total_cost_usd TEXT
1211
+ total_cost_brl TEXT
1212
+ Note: 'VIEW persistida no SQLite.'
1213
+ }
1214
+
1215
+ Table zaip_vw_first_fold_spec_classification_all_time {
1216
+ classification TEXT
1217
+ entity_count TEXT
1218
+ entity_percentage TEXT
1219
+ Note: 'VIEW persistida no SQLite.'
1220
+ }
1221
+
1222
+ Table zaip_vw_first_fold_spec_metrics_all_time {
1223
+ entity_count TEXT
1224
+ total_run_count TEXT
1225
+ total_duration_ms TEXT
1226
+ total_tokens TEXT
1227
+ total_cost_usd TEXT
1228
+ total_cost_brl TEXT
1229
+ average_duration_ms TEXT
1230
+ average_tokens TEXT
1231
+ average_cost_usd TEXT
1232
+ average_cost_brl TEXT
1233
+ latest_created_at TEXT
1234
+ Note: 'VIEW persistida no SQLite.'
1235
+ }
1236
+
1237
+ Table zaip_vw_first_fold_spec_status_all_time {
1238
+ stage TEXT
1239
+ entity_count TEXT
1240
+ entity_percentage TEXT
1241
+ Note: 'VIEW persistida no SQLite.'
1242
+ }
1243
+
1244
+ Table zaip_vw_first_fold_spec_summary {
1245
+ id BLOB
1246
+ title TEXT
1247
+ status TEXT
1248
+ risk TEXT
1249
+ occurred_at TEXT
1250
+ occurred_day_sp TEXT
1251
+ invocation_count TEXT
1252
+ llm_call_count TEXT
1253
+ total_duration TEXT
1254
+ total_tokens TEXT
1255
+ total_cost_usd TEXT
1256
+ total_cost_brl TEXT
1257
+ Note: 'VIEW persistida no SQLite.'
1258
+ }
1259
+
1260
+ Table zaip_vw_first_fold_task {
1261
+ id BLOB
1262
+ title TEXT
1263
+ status TEXT
1264
+ risk TEXT
1265
+ occurred_at TEXT
1266
+ occurred_day_sp TEXT
1267
+ invocation_count TEXT
1268
+ llm_call_count TEXT
1269
+ total_duration TEXT
1270
+ total_tokens TEXT
1271
+ total_cost_usd TEXT
1272
+ total_cost_brl TEXT
1273
+ Note: 'VIEW persistida no SQLite.'
1274
+ }
1275
+
1276
+ Table zaip_vw_first_fold_task_metrics_all_time {
1277
+ task_count TEXT
1278
+ average_duration_ms_per_task TEXT
1279
+ average_tokens_per_task TEXT
1280
+ average_cost_usd_per_task TEXT
1281
+ average_cost_brl_per_task TEXT
1282
+ latest_task_created_at TEXT
1283
+ Note: 'VIEW persistida no SQLite.'
1284
+ }
1285
+
1286
+ Table zaip_vw_first_fold_task_risk {
1287
+ day TEXT
1288
+ risk TEXT
1289
+ task_count TEXT
1290
+ Note: 'VIEW persistida no SQLite.'
1291
+ }
1292
+
1293
+ Table zaip_vw_first_fold_task_risk_all_time {
1294
+ risk TEXT
1295
+ task_count TEXT
1296
+ task_percentage TEXT
1297
+ Note: 'VIEW persistida no SQLite.'
1298
+ }
1299
+
1300
+ Table zaip_vw_first_fold_task_status {
1301
+ day TEXT
1302
+ status TEXT
1303
+ task_count TEXT
1304
+ Note: 'VIEW persistida no SQLite.'
1305
+ }
1306
+
1307
+ Table zaip_vw_first_fold_task_status_all_time {
1308
+ status TEXT
1309
+ task_count TEXT
1310
+ task_percentage TEXT
1311
+ Note: 'VIEW persistida no SQLite.'
1312
+ }
1313
+
1314
+ Table zaip_vw_first_fold_task_summary {
1315
+ id BLOB
1316
+ title TEXT
1317
+ status TEXT
1318
+ risk TEXT
1319
+ occurred_at TEXT
1320
+ occurred_day_sp TEXT
1321
+ invocation_count TEXT
1322
+ llm_call_count TEXT
1323
+ total_duration TEXT
1324
+ total_tokens TEXT
1325
+ total_cost_usd TEXT
1326
+ total_cost_brl TEXT
1327
+ Note: 'VIEW persistida no SQLite.'
1328
+ }
1329
+
1330
+ Table zaip_vw_first_fold_top_prds_all_time {
1331
+ rank TEXT
1332
+ entity_id BLOB
1333
+ title TEXT
1334
+ status TEXT
1335
+ total_run_count TEXT
1336
+ llm_call_count TEXT
1337
+ total_duration_ms TEXT
1338
+ total_tokens TEXT
1339
+ total_cost_usd TEXT
1340
+ total_cost_brl TEXT
1341
+ duration_share TEXT
1342
+ Note: 'VIEW persistida no SQLite.'
1343
+ }
1344
+
1345
+ Table zaip_vw_first_fold_top_specs_all_time {
1346
+ rank TEXT
1347
+ entity_id BLOB
1348
+ title TEXT
1349
+ status TEXT
1350
+ total_run_count TEXT
1351
+ llm_call_count TEXT
1352
+ total_duration_ms TEXT
1353
+ total_tokens TEXT
1354
+ total_cost_usd TEXT
1355
+ total_cost_brl TEXT
1356
+ duration_share TEXT
1357
+ Note: 'VIEW persistida no SQLite.'
1358
+ }
1359
+
1360
+ Table zaip_vw_first_fold_top_tasks {
1361
+ id BLOB
1362
+ title TEXT
1363
+ status TEXT
1364
+ risk TEXT
1365
+ occurred_at TEXT
1366
+ occurred_day_sp TEXT
1367
+ invocation_count TEXT
1368
+ llm_call_count TEXT
1369
+ total_duration TEXT
1370
+ total_tokens TEXT
1371
+ total_cost_usd TEXT
1372
+ total_cost_brl TEXT
1373
+ "total_duration:1" TEXT
1374
+ "total_tokens:1" TEXT
1375
+ "total_cost_usd:1" TEXT
1376
+ "total_cost_brl:1" TEXT
1377
+ Note: 'VIEW persistida no SQLite.'
1378
+ }
1379
+
1380
+ Table zaip_vw_first_fold_top_tasks_all_time {
1381
+ rank TEXT
1382
+ task_id BLOB
1383
+ title TEXT
1384
+ status TEXT
1385
+ risk TEXT
1386
+ total_run_count TEXT
1387
+ llm_call_count TEXT
1388
+ total_duration_ms TEXT
1389
+ total_tokens TEXT
1390
+ total_cost_usd TEXT
1391
+ total_cost_brl TEXT
1392
+ duration_share TEXT
1393
+ Note: 'VIEW persistida no SQLite.'
1394
+ }
1395
+
1396
+ Table zaip_vw_invocation_usage {
1397
+ agent_invocation_id TEXT
1398
+ usage_index TEXT
1399
+ provider TEXT
1400
+ model TEXT
1401
+ service_tier TEXT
1402
+ reasoning_effort TEXT
1403
+ input_tokens TEXT
1404
+ cached_input_tokens TEXT
1405
+ uncached_input_tokens TEXT
1406
+ output_tokens TEXT
1407
+ reasoning_tokens TEXT
1408
+ visible_output_tokens TEXT
1409
+ total_tokens TEXT
1410
+ input_rate_usd_per_million TEXT
1411
+ cached_input_rate_usd_per_million TEXT
1412
+ output_rate_usd_per_million TEXT
1413
+ reasoning_rate_usd_per_million TEXT
1414
+ context_input_multiplier TEXT
1415
+ context_output_multiplier TEXT
1416
+ speed_cost_multiplier TEXT
1417
+ pricing_scenario TEXT
1418
+ standard_cost_usd TEXT
1419
+ speed_uplift_usd TEXT
1420
+ input_cost_usd TEXT
1421
+ cached_input_cost_usd TEXT
1422
+ output_cost_usd TEXT
1423
+ reasoning_cost_usd TEXT
1424
+ calculated_cost_usd TEXT
1425
+ recorded_cost_usd TEXT
1426
+ cost_variance_usd TEXT
1427
+ cost_usd TEXT
1428
+ cost_brl TEXT
1429
+ cost_method TEXT
1430
+ pricing_model TEXT
1431
+ pricing_source TEXT
1432
+ fx_rate TEXT
1433
+ Note: 'VIEW persistida no SQLite.'
1434
+ }
1435
+
1436
+ Table zaip_vw_invocation_usage_segments {
1437
+ agent_invocation_id TEXT
1438
+ provider TEXT
1439
+ model TEXT
1440
+ service_tier TEXT
1441
+ reasoning_effort TEXT
1442
+ input_tokens TEXT
1443
+ cached_input_tokens TEXT
1444
+ uncached_input_tokens TEXT
1445
+ output_tokens TEXT
1446
+ reasoning_tokens TEXT
1447
+ visible_output_tokens TEXT
1448
+ total_tokens TEXT
1449
+ input_rate_usd_per_million TEXT
1450
+ cached_input_rate_usd_per_million TEXT
1451
+ output_rate_usd_per_million TEXT
1452
+ reasoning_rate_usd_per_million TEXT
1453
+ context_input_multiplier TEXT
1454
+ context_output_multiplier TEXT
1455
+ speed_cost_multiplier TEXT
1456
+ pricing_scenario TEXT
1457
+ standard_cost_usd TEXT
1458
+ speed_uplift_usd TEXT
1459
+ input_cost_usd TEXT
1460
+ cached_input_cost_usd TEXT
1461
+ output_cost_usd TEXT
1462
+ reasoning_cost_usd TEXT
1463
+ calculated_cost_usd TEXT
1464
+ recorded_cost_usd TEXT
1465
+ cost_variance_usd TEXT
1466
+ cost_usd TEXT
1467
+ cost_brl TEXT
1468
+ cost_method TEXT
1469
+ pricing_model TEXT
1470
+ pricing_source TEXT
1471
+ fx_rate TEXT
1472
+ Note: 'VIEW persistida no SQLite.'
1473
+ }
1474
+
1475
+ Table zaip_vw_invocations {
1476
+ activity_row_id TEXT
1477
+ activity_key TEXT
1478
+ version_activity_id TEXT
1479
+ source_occurred_at TEXT
1480
+ root_agent_invocation_id TEXT
1481
+ parent_agent_invocation_id TEXT
1482
+ execution_id TEXT
1483
+ task_id TEXT
1484
+ spec_id TEXT
1485
+ prd_id TEXT
1486
+ change_id TEXT
1487
+ conversation_id TEXT
1488
+ run_id TEXT
1489
+ occurred_at TEXT
1490
+ occurred_day_sp TEXT
1491
+ invocation_kind TEXT
1492
+ delegation_depth INTEGER
1493
+ zaip_agent TEXT
1494
+ zaip_agent_persona TEXT
1495
+ zaip_agent_job TEXT
1496
+ zaip_agent_role TEXT
1497
+ client TEXT
1498
+ provider TEXT
1499
+ model TEXT
1500
+ phase TEXT
1501
+ purpose TEXT
1502
+ status TEXT
1503
+ source_started_at TEXT
1504
+ source_finished_at TEXT
1505
+ attributed_token_active_ms TEXT
1506
+ duration_ms TEXT
1507
+ input_tokens REAL
1508
+ cached_input_tokens REAL
1509
+ output_tokens REAL
1510
+ reasoning_tokens REAL
1511
+ total_tokens REAL
1512
+ token_source TEXT
1513
+ cost_usd REAL
1514
+ cost_brl REAL
1515
+ cost_method TEXT
1516
+ pricing_model TEXT
1517
+ pricing_source TEXT
1518
+ fx_rate REAL
1519
+ service_tier TEXT
1520
+ reasoning_effort TEXT
1521
+ source_event_count INTEGER
1522
+ usage_event_count INTEGER
1523
+ llm_call_count INTEGER
1524
+ agent_invocation_id TEXT
1525
+ Note: 'VIEW persistida no SQLite.'
1526
+ }
1527
+
1528
+ Table zaip_vw_operations_agent_invocations {
1529
+ activity_row_id TEXT
1530
+ activity_key TEXT
1531
+ version_activity_id TEXT
1532
+ source_occurred_at TEXT
1533
+ root_agent_invocation_id TEXT
1534
+ parent_agent_invocation_id TEXT
1535
+ execution_id TEXT
1536
+ task_id TEXT
1537
+ spec_id TEXT
1538
+ prd_id TEXT
1539
+ change_id TEXT
1540
+ conversation_id TEXT
1541
+ run_id TEXT
1542
+ occurred_at TEXT
1543
+ occurred_day_sp TEXT
1544
+ invocation_kind TEXT
1545
+ delegation_depth INTEGER
1546
+ zaip_agent TEXT
1547
+ zaip_agent_persona TEXT
1548
+ zaip_agent_job TEXT
1549
+ zaip_agent_role TEXT
1550
+ client TEXT
1551
+ provider TEXT
1552
+ model TEXT
1553
+ phase TEXT
1554
+ purpose TEXT
1555
+ status TEXT
1556
+ source_started_at TEXT
1557
+ source_finished_at TEXT
1558
+ attributed_token_active_ms TEXT
1559
+ duration_ms TEXT
1560
+ input_tokens REAL
1561
+ cached_input_tokens REAL
1562
+ output_tokens REAL
1563
+ reasoning_tokens REAL
1564
+ total_tokens REAL
1565
+ token_source TEXT
1566
+ cost_usd REAL
1567
+ cost_brl REAL
1568
+ cost_method TEXT
1569
+ pricing_model TEXT
1570
+ pricing_source TEXT
1571
+ fx_rate REAL
1572
+ service_tier TEXT
1573
+ reasoning_effort TEXT
1574
+ source_event_count INTEGER
1575
+ usage_event_count INTEGER
1576
+ llm_call_count INTEGER
1577
+ agent_invocation_id TEXT
1578
+ pricing_segment_count TEXT
1579
+ pricing_mixed TEXT
1580
+ uncached_input_tokens TEXT
1581
+ visible_output_tokens TEXT
1582
+ input_rate_usd_per_million TEXT
1583
+ cached_input_rate_usd_per_million TEXT
1584
+ output_rate_usd_per_million TEXT
1585
+ reasoning_rate_usd_per_million TEXT
1586
+ context_input_multiplier TEXT
1587
+ context_output_multiplier TEXT
1588
+ speed_cost_multiplier TEXT
1589
+ pricing_scenario TEXT
1590
+ standard_cost_usd TEXT
1591
+ speed_uplift_usd TEXT
1592
+ input_cost_usd TEXT
1593
+ cached_input_cost_usd TEXT
1594
+ output_cost_usd TEXT
1595
+ reasoning_cost_usd TEXT
1596
+ calculated_cost_usd TEXT
1597
+ recorded_cost_usd TEXT
1598
+ cost_variance_usd TEXT
1599
+ audit_pricing_model TEXT
1600
+ audit_pricing_source TEXT
1601
+ risk TEXT
1602
+ Note: 'VIEW persistida no SQLite.'
1603
+ }
1604
+
1605
+ Table zaip_vw_operations_annual {
1606
+ period_kind TEXT
1607
+ period_key BLOB
1608
+ start_day BLOB
1609
+ end_day BLOB
1610
+ prd_count TEXT
1611
+ spec_count TEXT
1612
+ task_count TEXT
1613
+ validation_count TEXT
1614
+ evidence_count TEXT
1615
+ total_run_count TEXT
1616
+ invocation_count TEXT
1617
+ llm_call_count TEXT
1618
+ operations_total_duration TEXT
1619
+ total_tokens TEXT
1620
+ total_cost_usd TEXT
1621
+ total_cost_brl TEXT
1622
+ Note: 'VIEW persistida no SQLite.'
1623
+ }
1624
+
1625
+ Table zaip_vw_operations_changes {
1626
+ id TEXT
1627
+ title TEXT
1628
+ status TEXT
1629
+ risk TEXT
1630
+ source_type TEXT
1631
+ source_id TEXT
1632
+ requirement_ids_json TEXT
1633
+ acceptance_ids_json TEXT
1634
+ task_ids_json TEXT
1635
+ result TEXT
1636
+ occurred_at TEXT
1637
+ occurred_day_sp TEXT
1638
+ source_path TEXT
1639
+ Note: 'VIEW persistida no SQLite.'
1640
+ }
1641
+
1642
+ Table zaip_vw_operations_conversations {
1643
+ conversation_id BLOB
1644
+ status TEXT
1645
+ risk TEXT
1646
+ started_at TEXT
1647
+ finished_at TEXT
1648
+ llm_call_count TEXT
1649
+ total_duration TEXT
1650
+ total_tokens TEXT
1651
+ total_cost_brl TEXT
1652
+ model TEXT
1653
+ reasoning_effort TEXT
1654
+ invocation_count TEXT
1655
+ Note: 'VIEW persistida no SQLite.'
1656
+ }
1657
+
1658
+ Table zaip_vw_operations_daily {
1659
+ day BLOB
1660
+ period_kind TEXT
1661
+ period_key BLOB
1662
+ start_day BLOB
1663
+ end_day BLOB
1664
+ prd_count TEXT
1665
+ spec_count TEXT
1666
+ task_count TEXT
1667
+ validation_count TEXT
1668
+ evidence_count TEXT
1669
+ total_run_count TEXT
1670
+ invocation_count TEXT
1671
+ llm_call_count TEXT
1672
+ operations_total_duration TEXT
1673
+ total_tokens TEXT
1674
+ total_cost_usd TEXT
1675
+ total_cost_brl TEXT
1676
+ Note: 'VIEW persistida no SQLite.'
1677
+ }
1678
+
1679
+ Table zaip_vw_operations_decisions {
1680
+ id TEXT
1681
+ title TEXT
1682
+ origin TEXT
1683
+ scope_type TEXT
1684
+ scope_id TEXT
1685
+ status TEXT
1686
+ risk TEXT
1687
+ occurred_at TEXT
1688
+ occurred_day_sp TEXT
1689
+ source_path TEXT
1690
+ Note: 'VIEW persistida no SQLite.'
1691
+ }
1692
+
1693
+ Table zaip_vw_operations_executions {
1694
+ execution_id BLOB
1695
+ status TEXT
1696
+ risk TEXT
1697
+ started_at TEXT
1698
+ finished_at TEXT
1699
+ execution_kind TEXT
1700
+ origin_type TEXT
1701
+ task_id TEXT
1702
+ conversation_id TEXT
1703
+ llm_call_count TEXT
1704
+ duration_ms TEXT
1705
+ total_tokens TEXT
1706
+ total_cost_brl TEXT
1707
+ invocation_count TEXT
1708
+ source_path TEXT
1709
+ Note: 'VIEW persistida no SQLite.'
1710
+ }
1711
+
1712
+ Table zaip_vw_operations_monthly {
1713
+ period_kind TEXT
1714
+ period_key BLOB
1715
+ start_day BLOB
1716
+ end_day BLOB
1717
+ prd_count TEXT
1718
+ spec_count TEXT
1719
+ task_count TEXT
1720
+ validation_count TEXT
1721
+ evidence_count TEXT
1722
+ total_run_count TEXT
1723
+ invocation_count TEXT
1724
+ llm_call_count TEXT
1725
+ operations_total_duration TEXT
1726
+ total_tokens TEXT
1727
+ total_cost_usd TEXT
1728
+ total_cost_brl TEXT
1729
+ Note: 'VIEW persistida no SQLite.'
1730
+ }
1731
+
1732
+ Table zaip_vw_operations_overview {
1733
+ period_kind TEXT
1734
+ period_key BLOB
1735
+ start_day BLOB
1736
+ end_day BLOB
1737
+ prd_count TEXT
1738
+ spec_count TEXT
1739
+ task_count TEXT
1740
+ validation_count TEXT
1741
+ evidence_count TEXT
1742
+ total_run_count TEXT
1743
+ invocation_count TEXT
1744
+ llm_call_count TEXT
1745
+ operations_total_duration TEXT
1746
+ total_tokens TEXT
1747
+ total_cost_usd TEXT
1748
+ total_cost_brl TEXT
1749
+ Note: 'VIEW persistida no SQLite.'
1750
+ }
1751
+
1752
+ Table zaip_vw_operations_work_kanban {
1753
+ entity_kind TEXT
1754
+ id BLOB
1755
+ title TEXT
1756
+ status TEXT
1757
+ risk TEXT
1758
+ occurred_at TEXT
1759
+ occurred_day_sp TEXT
1760
+ invocation_count TEXT
1761
+ llm_call_count TEXT
1762
+ total_duration TEXT
1763
+ total_tokens TEXT
1764
+ total_cost_usd TEXT
1765
+ total_cost_brl TEXT
1766
+ Note: 'VIEW persistida no SQLite.'
1767
+ }
1768
+
1769
+ Table zaip_vw_operations_work_list {
1770
+ entity_kind TEXT
1771
+ id BLOB
1772
+ title TEXT
1773
+ status TEXT
1774
+ risk TEXT
1775
+ occurred_at TEXT
1776
+ occurred_day_sp TEXT
1777
+ Note: 'VIEW persistida no SQLite.'
1778
+ }
1779
+
1780
+ Table zaip_vw_overview {
1781
+ period_kind TEXT
1782
+ period_key BLOB
1783
+ start_day BLOB
1784
+ end_day BLOB
1785
+ prd_count TEXT
1786
+ spec_count TEXT
1787
+ task_count TEXT
1788
+ validation_count TEXT
1789
+ evidence_count TEXT
1790
+ activity_count TEXT
1791
+ root_run_count TEXT
1792
+ sub_run_count TEXT
1793
+ total_run_count TEXT
1794
+ invocation_count TEXT
1795
+ cost_monitor_invocation_count TEXT
1796
+ llm_call_count TEXT
1797
+ source_event_count TEXT
1798
+ total_root_run_duration TEXT
1799
+ total_sub_run_duration TEXT
1800
+ operations_total_duration TEXT
1801
+ cost_monitor_total_duration TEXT
1802
+ total_duration TEXT
1803
+ total_tokens TEXT
1804
+ total_cost_usd TEXT
1805
+ total_cost_brl TEXT
1806
+ Note: 'VIEW persistida no SQLite.'
1807
+ }
1808
+
1809
+ Table zaip_vw_overview_annual {
1810
+ period_kind TEXT
1811
+ period_key BLOB
1812
+ start_day BLOB
1813
+ end_day BLOB
1814
+ prd_count TEXT
1815
+ spec_count TEXT
1816
+ task_count TEXT
1817
+ validation_count TEXT
1818
+ evidence_count TEXT
1819
+ activity_count TEXT
1820
+ root_run_count TEXT
1821
+ sub_run_count TEXT
1822
+ total_run_count TEXT
1823
+ invocation_count TEXT
1824
+ cost_monitor_invocation_count TEXT
1825
+ llm_call_count TEXT
1826
+ source_event_count TEXT
1827
+ total_root_run_duration TEXT
1828
+ total_sub_run_duration TEXT
1829
+ operations_total_duration TEXT
1830
+ cost_monitor_total_duration TEXT
1831
+ total_duration TEXT
1832
+ total_tokens TEXT
1833
+ total_cost_usd TEXT
1834
+ total_cost_brl TEXT
1835
+ Note: 'VIEW persistida no SQLite.'
1836
+ }
1837
+
1838
+ Table zaip_vw_overview_daily {
1839
+ period_kind TEXT
1840
+ period_key BLOB
1841
+ start_day BLOB
1842
+ end_day BLOB
1843
+ prd_count TEXT
1844
+ spec_count TEXT
1845
+ task_count TEXT
1846
+ validation_count TEXT
1847
+ evidence_count TEXT
1848
+ activity_count TEXT
1849
+ root_run_count TEXT
1850
+ sub_run_count TEXT
1851
+ total_run_count TEXT
1852
+ invocation_count TEXT
1853
+ cost_monitor_invocation_count TEXT
1854
+ llm_call_count TEXT
1855
+ source_event_count TEXT
1856
+ total_root_run_duration TEXT
1857
+ total_sub_run_duration TEXT
1858
+ operations_total_duration TEXT
1859
+ cost_monitor_total_duration TEXT
1860
+ total_duration TEXT
1861
+ total_tokens TEXT
1862
+ total_cost_usd TEXT
1863
+ total_cost_brl TEXT
1864
+ Note: 'VIEW persistida no SQLite.'
1865
+ }
1866
+
1867
+ Table zaip_vw_overview_monthly {
1868
+ period_kind TEXT
1869
+ period_key BLOB
1870
+ start_day BLOB
1871
+ end_day BLOB
1872
+ prd_count TEXT
1873
+ spec_count TEXT
1874
+ task_count TEXT
1875
+ validation_count TEXT
1876
+ evidence_count TEXT
1877
+ activity_count TEXT
1878
+ root_run_count TEXT
1879
+ sub_run_count TEXT
1880
+ total_run_count TEXT
1881
+ invocation_count TEXT
1882
+ cost_monitor_invocation_count TEXT
1883
+ llm_call_count TEXT
1884
+ source_event_count TEXT
1885
+ total_root_run_duration TEXT
1886
+ total_sub_run_duration TEXT
1887
+ operations_total_duration TEXT
1888
+ cost_monitor_total_duration TEXT
1889
+ total_duration TEXT
1890
+ total_tokens TEXT
1891
+ total_cost_usd TEXT
1892
+ total_cost_brl TEXT
1893
+ Note: 'VIEW persistida no SQLite.'
1894
+ }
1895
+
1896
+ Table zaip_vw_prd_summary {
1897
+ id BLOB
1898
+ title TEXT
1899
+ status TEXT
1900
+ risk TEXT
1901
+ occurred_at TEXT
1902
+ occurred_day_sp TEXT
1903
+ invocation_count TEXT
1904
+ llm_call_count TEXT
1905
+ total_duration TEXT
1906
+ total_tokens TEXT
1907
+ total_cost_usd TEXT
1908
+ total_cost_brl TEXT
1909
+ Note: 'VIEW persistida no SQLite.'
1910
+ }
1911
+
1912
+ Table zaip_vw_prd_summary_daily {
1913
+ day TEXT
1914
+ prd_count TEXT
1915
+ llm_call_count TEXT
1916
+ Note: 'VIEW persistida no SQLite.'
1917
+ }
1918
+
1919
+ Table zaip_vw_prds {
1920
+ id BLOB
1921
+ title TEXT
1922
+ status TEXT
1923
+ risk TEXT
1924
+ occurred_at TEXT
1925
+ occurred_day_sp TEXT
1926
+ Note: 'VIEW persistida no SQLite.'
1927
+ }
1928
+
1929
+ Table zaip_vw_read_model_metadata {
1930
+ key TEXT
1931
+ value TEXT
1932
+ Note: 'VIEW persistida no SQLite.'
1933
+ }
1934
+
1935
+ Table zaip_vw_read_model_source_state {
1936
+ source_path TEXT
1937
+ source_hash TEXT
1938
+ mtime_ms TEXT
1939
+ size_bytes TEXT
1940
+ source_kind TEXT
1941
+ last_processed_at TEXT
1942
+ Note: 'VIEW persistida no SQLite.'
1943
+ }
1944
+
1945
+ Table zaip_vw_root_runs {
1946
+ activity_row_id TEXT
1947
+ activity_source_kind TEXT
1948
+ activity_key TEXT
1949
+ source_path TEXT
1950
+ source_hash TEXT
1951
+ source_occurred_at TEXT
1952
+ recorded_at TEXT
1953
+ version_activity_id TEXT
1954
+ source_last_event_id TEXT
1955
+ source_last_sequence INTEGER
1956
+ work_item_kind TEXT
1957
+ title TEXT
1958
+ work_item_status TEXT
1959
+ work_stage TEXT
1960
+ risk TEXT
1961
+ run_role TEXT
1962
+ root_run_id TEXT
1963
+ parent_run_id TEXT
1964
+ agent_run_id TEXT
1965
+ root_agent_run_id TEXT
1966
+ parent_agent_run_id TEXT
1967
+ agent_run_role TEXT
1968
+ delegation_depth INTEGER
1969
+ agent_invocation_id TEXT
1970
+ root_agent_invocation_id TEXT
1971
+ parent_agent_invocation_id TEXT
1972
+ invocation_kind TEXT
1973
+ execution_id TEXT
1974
+ task_id TEXT
1975
+ spec_id TEXT
1976
+ prd_id TEXT
1977
+ change_id TEXT
1978
+ conversation_id TEXT
1979
+ run_id TEXT
1980
+ occurred_at TEXT
1981
+ occurred_day_sp TEXT
1982
+ execution_kind TEXT
1983
+ entrypoint TEXT
1984
+ work_type TEXT
1985
+ phase TEXT
1986
+ purpose TEXT
1987
+ status TEXT
1988
+ activity_kind TEXT
1989
+ zaip_agent TEXT
1990
+ zaip_agent_persona TEXT
1991
+ zaip_agent_job TEXT
1992
+ zaip_agent_role TEXT
1993
+ agent_catalog_id TEXT
1994
+ agent_catalog_hash TEXT
1995
+ client TEXT
1996
+ provider TEXT
1997
+ model TEXT
1998
+ service_tier TEXT
1999
+ reasoning_effort TEXT
2000
+ source_duration_ms REAL
2001
+ source_started_at TEXT
2002
+ source_finished_at TEXT
2003
+ duration_ms REAL
2004
+ duration_provenance TEXT
2005
+ input_tokens REAL
2006
+ cached_input_tokens REAL
2007
+ output_tokens REAL
2008
+ reasoning_tokens REAL
2009
+ total_tokens REAL
2010
+ token_source TEXT
2011
+ usage_event_count INTEGER
2012
+ llm_call_count INTEGER
2013
+ cost_usd REAL
2014
+ cost_brl REAL
2015
+ cost_method TEXT
2016
+ pricing_model TEXT
2017
+ pricing_source TEXT
2018
+ fx_rate REAL
2019
+ source_event_count INTEGER
2020
+ root_run_duration REAL
2021
+ sub_run_duration REAL
2022
+ payload_type TEXT
2023
+ payload_json TEXT
2024
+ attributed_token_active_ms TEXT
2025
+ Note: 'VIEW persistida no SQLite.'
2026
+ }
2027
+
2028
+ Table zaip_vw_spec_summary {
2029
+ id BLOB
2030
+ title TEXT
2031
+ status TEXT
2032
+ risk TEXT
2033
+ occurred_at TEXT
2034
+ occurred_day_sp TEXT
2035
+ invocation_count TEXT
2036
+ llm_call_count TEXT
2037
+ total_duration TEXT
2038
+ total_tokens TEXT
2039
+ total_cost_usd TEXT
2040
+ total_cost_brl TEXT
2041
+ Note: 'VIEW persistida no SQLite.'
2042
+ }
2043
+
2044
+ Table zaip_vw_spec_summary_daily {
2045
+ day TEXT
2046
+ spec_count TEXT
2047
+ llm_call_count TEXT
2048
+ Note: 'VIEW persistida no SQLite.'
2049
+ }
2050
+
2051
+ Table zaip_vw_specs {
2052
+ id BLOB
2053
+ title TEXT
2054
+ status TEXT
2055
+ risk TEXT
2056
+ occurred_at TEXT
2057
+ occurred_day_sp TEXT
2058
+ Note: 'VIEW persistida no SQLite.'
2059
+ }
2060
+
2061
+ Table zaip_vw_sub_runs {
2062
+ activity_row_id TEXT
2063
+ activity_source_kind TEXT
2064
+ activity_key TEXT
2065
+ source_path TEXT
2066
+ source_hash TEXT
2067
+ source_occurred_at TEXT
2068
+ recorded_at TEXT
2069
+ version_activity_id TEXT
2070
+ source_last_event_id TEXT
2071
+ source_last_sequence INTEGER
2072
+ work_item_kind TEXT
2073
+ title TEXT
2074
+ work_item_status TEXT
2075
+ work_stage TEXT
2076
+ risk TEXT
2077
+ run_role TEXT
2078
+ root_run_id TEXT
2079
+ parent_run_id TEXT
2080
+ agent_run_id TEXT
2081
+ root_agent_run_id TEXT
2082
+ parent_agent_run_id TEXT
2083
+ agent_run_role TEXT
2084
+ delegation_depth INTEGER
2085
+ agent_invocation_id TEXT
2086
+ root_agent_invocation_id TEXT
2087
+ parent_agent_invocation_id TEXT
2088
+ invocation_kind TEXT
2089
+ execution_id TEXT
2090
+ task_id TEXT
2091
+ spec_id TEXT
2092
+ prd_id TEXT
2093
+ change_id TEXT
2094
+ conversation_id TEXT
2095
+ run_id TEXT
2096
+ occurred_at TEXT
2097
+ occurred_day_sp TEXT
2098
+ execution_kind TEXT
2099
+ entrypoint TEXT
2100
+ work_type TEXT
2101
+ phase TEXT
2102
+ purpose TEXT
2103
+ status TEXT
2104
+ activity_kind TEXT
2105
+ zaip_agent TEXT
2106
+ zaip_agent_persona TEXT
2107
+ zaip_agent_job TEXT
2108
+ zaip_agent_role TEXT
2109
+ agent_catalog_id TEXT
2110
+ agent_catalog_hash TEXT
2111
+ client TEXT
2112
+ provider TEXT
2113
+ model TEXT
2114
+ service_tier TEXT
2115
+ reasoning_effort TEXT
2116
+ source_duration_ms REAL
2117
+ source_started_at TEXT
2118
+ source_finished_at TEXT
2119
+ duration_ms REAL
2120
+ duration_provenance TEXT
2121
+ input_tokens REAL
2122
+ cached_input_tokens REAL
2123
+ output_tokens REAL
2124
+ reasoning_tokens REAL
2125
+ total_tokens REAL
2126
+ token_source TEXT
2127
+ usage_event_count INTEGER
2128
+ llm_call_count INTEGER
2129
+ cost_usd REAL
2130
+ cost_brl REAL
2131
+ cost_method TEXT
2132
+ pricing_model TEXT
2133
+ pricing_source TEXT
2134
+ fx_rate REAL
2135
+ source_event_count INTEGER
2136
+ root_run_duration REAL
2137
+ sub_run_duration REAL
2138
+ payload_type TEXT
2139
+ payload_json TEXT
2140
+ attributed_token_active_ms TEXT
2141
+ Note: 'VIEW persistida no SQLite.'
2142
+ }
2143
+
2144
+ Table zaip_vw_task_risk_daily {
2145
+ day TEXT
2146
+ risk TEXT
2147
+ task_count TEXT
2148
+ Note: 'VIEW persistida no SQLite.'
2149
+ }
2150
+
2151
+ Table zaip_vw_task_status_daily {
2152
+ day TEXT
2153
+ status TEXT
2154
+ task_count TEXT
2155
+ Note: 'VIEW persistida no SQLite.'
2156
+ }
2157
+
2158
+ Table zaip_vw_task_summary {
2159
+ id BLOB
2160
+ title TEXT
2161
+ status TEXT
2162
+ risk TEXT
2163
+ occurred_at TEXT
2164
+ occurred_day_sp TEXT
2165
+ invocation_count TEXT
2166
+ llm_call_count TEXT
2167
+ total_duration TEXT
2168
+ total_tokens TEXT
2169
+ total_cost_usd TEXT
2170
+ total_cost_brl TEXT
2171
+ Note: 'VIEW persistida no SQLite.'
2172
+ }
2173
+
2174
+ Table zaip_vw_task_summary_daily {
2175
+ day TEXT
2176
+ task_count TEXT
2177
+ llm_call_count TEXT
2178
+ Note: 'VIEW persistida no SQLite.'
2179
+ }
2180
+
2181
+ Table zaip_vw_tasks {
2182
+ id BLOB
2183
+ title TEXT
2184
+ status TEXT
2185
+ risk TEXT
2186
+ occurred_at TEXT
2187
+ occurred_day_sp TEXT
2188
+ Note: 'VIEW persistida no SQLite.'
2189
+ }
2190
+
2191
+ Table zaip_vw_work_items {
2192
+ entity_kind TEXT
2193
+ id BLOB
2194
+ title TEXT
2195
+ status TEXT
2196
+ risk TEXT
2197
+ occurred_at TEXT
2198
+ occurred_day_sp TEXT
2199
+ Note: 'VIEW persistida no SQLite.'
2200
+ }
2201
+