@zaip-ai/cli 6.2.0 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1259) hide show
  1. package/README.md +10 -0
  2. package/dist/commands/init.d.ts +1 -0
  3. package/dist/commands/init.d.ts.map +1 -1
  4. package/dist/commands/init.js +16 -3
  5. package/dist/commands/init.js.map +1 -1
  6. package/dist/index.js +1 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/services/adapter-codex-config.d.ts +3 -0
  9. package/dist/services/adapter-codex-config.d.ts.map +1 -0
  10. package/dist/services/adapter-codex-config.js +119 -0
  11. package/dist/services/adapter-codex-config.js.map +1 -0
  12. package/dist/services/adapter-config-overlay.d.ts +8 -0
  13. package/dist/services/adapter-config-overlay.d.ts.map +1 -0
  14. package/dist/services/adapter-config-overlay.js +17 -0
  15. package/dist/services/adapter-config-overlay.js.map +1 -0
  16. package/dist/services/adapter-hook-sources.d.ts +4 -4
  17. package/dist/services/adapter-hook-sources.d.ts.map +1 -1
  18. package/dist/services/adapter-hook-sources.js +4 -4
  19. package/dist/services/adapter-hook-sources.js.map +1 -1
  20. package/dist/services/adapters.d.ts +3 -2
  21. package/dist/services/adapters.d.ts.map +1 -1
  22. package/dist/services/adapters.js +35 -144
  23. package/dist/services/adapters.js.map +1 -1
  24. package/dist/services/adapters.test.js +12 -0
  25. package/dist/services/adapters.test.js.map +1 -1
  26. package/dist/services/agent-adapters.d.ts +2 -98
  27. package/dist/services/agent-adapters.d.ts.map +1 -1
  28. package/dist/services/agent-adapters.js +30 -29
  29. package/dist/services/agent-adapters.js.map +1 -1
  30. package/dist/services/agent-adapters.test.js +4 -2
  31. package/dist/services/agent-adapters.test.js.map +1 -1
  32. package/dist/services/agent-guidance-types.d.ts +98 -0
  33. package/dist/services/agent-guidance-types.d.ts.map +1 -0
  34. package/dist/services/agent-guidance-types.js +4 -0
  35. package/dist/services/agent-guidance-types.js.map +1 -0
  36. package/dist/services/catalog-toml.d.ts +4 -0
  37. package/dist/services/catalog-toml.d.ts.map +1 -0
  38. package/dist/services/catalog-toml.js +10 -0
  39. package/dist/services/catalog-toml.js.map +1 -0
  40. package/dist/services/catalog-write-scope.d.ts +4 -0
  41. package/dist/services/catalog-write-scope.d.ts.map +1 -0
  42. package/dist/services/catalog-write-scope.js +18 -0
  43. package/dist/services/catalog-write-scope.js.map +1 -0
  44. package/dist/services/claude-settings-overlay.d.ts +4 -0
  45. package/dist/services/claude-settings-overlay.d.ts.map +1 -0
  46. package/dist/services/claude-settings-overlay.js +58 -0
  47. package/dist/services/claude-settings-overlay.js.map +1 -0
  48. package/dist/services/client-selection.d.ts +17 -0
  49. package/dist/services/client-selection.d.ts.map +1 -0
  50. package/dist/services/client-selection.js +67 -0
  51. package/dist/services/client-selection.js.map +1 -0
  52. package/dist/services/codex-conversation-lifecycle-hook.d.ts.map +1 -1
  53. package/dist/services/codex-conversation-lifecycle-hook.js +20 -9
  54. package/dist/services/codex-conversation-lifecycle-hook.js.map +1 -1
  55. package/dist/services/codex-git-publication-template.d.ts +2 -0
  56. package/dist/services/codex-git-publication-template.d.ts.map +1 -0
  57. package/dist/services/codex-git-publication-template.js +120 -0
  58. package/dist/services/codex-git-publication-template.js.map +1 -0
  59. package/dist/services/codex-github-setup-template.d.ts +3 -0
  60. package/dist/services/codex-github-setup-template.d.ts.map +1 -0
  61. package/dist/services/codex-github-setup-template.js +176 -0
  62. package/dist/services/codex-github-setup-template.js.map +1 -0
  63. package/dist/services/codex-hook-activation.d.ts +1 -1
  64. package/dist/services/codex-hook-activation.d.ts.map +1 -1
  65. package/dist/services/codex-hook-activation.js +55 -10
  66. package/dist/services/codex-hook-activation.js.map +1 -1
  67. package/dist/services/codex-host-diagnostic.d.ts +10 -0
  68. package/dist/services/codex-host-diagnostic.d.ts.map +1 -0
  69. package/dist/services/codex-host-diagnostic.js +5 -0
  70. package/dist/services/codex-host-diagnostic.js.map +1 -0
  71. package/dist/services/codex-host-diagnostic.test.d.ts +2 -0
  72. package/dist/services/codex-host-diagnostic.test.d.ts.map +1 -0
  73. package/dist/services/codex-host-diagnostic.test.js +24 -0
  74. package/dist/services/codex-host-diagnostic.test.js.map +1 -0
  75. package/dist/services/codex-literal-read-sequence-template.d.ts.map +1 -1
  76. package/dist/services/codex-literal-read-sequence-template.js +97 -6
  77. package/dist/services/codex-literal-read-sequence-template.js.map +1 -1
  78. package/dist/services/codex-native-authority-policy-template.d.ts +2 -0
  79. package/dist/services/codex-native-authority-policy-template.d.ts.map +1 -0
  80. package/dist/services/codex-native-authority-policy-template.js +132 -0
  81. package/dist/services/codex-native-authority-policy-template.js.map +1 -0
  82. package/dist/services/codex-native-tool-authority-template.d.ts.map +1 -1
  83. package/dist/services/codex-native-tool-authority-template.js +147 -145
  84. package/dist/services/codex-native-tool-authority-template.js.map +1 -1
  85. package/dist/services/codex-node-options-template.d.ts +3 -0
  86. package/dist/services/codex-node-options-template.d.ts.map +1 -0
  87. package/dist/services/codex-node-options-template.js +30 -0
  88. package/dist/services/codex-node-options-template.js.map +1 -0
  89. package/dist/services/codex-pre-tool-cli-capture-template.d.ts.map +1 -1
  90. package/dist/services/codex-pre-tool-cli-capture-template.js +214 -10
  91. package/dist/services/codex-pre-tool-cli-capture-template.js.map +1 -1
  92. package/dist/services/codex-pre-tool-cloud-template.d.ts.map +1 -1
  93. package/dist/services/codex-pre-tool-cloud-template.js +149 -12
  94. package/dist/services/codex-pre-tool-cloud-template.js.map +1 -1
  95. package/dist/services/codex-pre-tool-dependencies.test-support.d.ts.map +1 -1
  96. package/dist/services/codex-pre-tool-dependencies.test-support.js +13 -1
  97. package/dist/services/codex-pre-tool-dependencies.test-support.js.map +1 -1
  98. package/dist/services/codex-pre-tool-hook-template-bootstrap.test.js +2 -2
  99. package/dist/services/codex-pre-tool-hook-template-bootstrap.test.js.map +1 -1
  100. package/dist/services/codex-pre-tool-hook-template.d.ts.map +1 -1
  101. package/dist/services/codex-pre-tool-hook-template.js +53 -138
  102. package/dist/services/codex-pre-tool-hook-template.js.map +1 -1
  103. package/dist/services/codex-pre-tool-hook-template.test.js +13 -7
  104. package/dist/services/codex-pre-tool-hook-template.test.js.map +1 -1
  105. package/dist/services/codex-pre-tool-host-context-template.d.ts.map +1 -1
  106. package/dist/services/codex-pre-tool-host-context-template.js +23 -0
  107. package/dist/services/codex-pre-tool-host-context-template.js.map +1 -1
  108. package/dist/services/codex-pre-tool-policy-template.d.ts.map +1 -1
  109. package/dist/services/codex-pre-tool-policy-template.js +5 -3
  110. package/dist/services/codex-pre-tool-policy-template.js.map +1 -1
  111. package/dist/services/codex-pre-tool-release-review-template.d.ts.map +1 -1
  112. package/dist/services/codex-pre-tool-release-review-template.js +161 -2
  113. package/dist/services/codex-pre-tool-release-review-template.js.map +1 -1
  114. package/dist/services/codex-pre-tool-support-template.d.ts.map +1 -1
  115. package/dist/services/codex-pre-tool-support-template.js +88 -129
  116. package/dist/services/codex-pre-tool-support-template.js.map +1 -1
  117. package/dist/services/codex-release-publication-template.d.ts +2 -0
  118. package/dist/services/codex-release-publication-template.d.ts.map +1 -0
  119. package/dist/services/codex-release-publication-template.js +127 -0
  120. package/dist/services/codex-release-publication-template.js.map +1 -0
  121. package/dist/services/codex-repository-profile-template.d.ts +2 -0
  122. package/dist/services/codex-repository-profile-template.d.ts.map +1 -0
  123. package/dist/services/codex-repository-profile-template.js +84 -0
  124. package/dist/services/codex-repository-profile-template.js.map +1 -0
  125. package/dist/services/codex-rules.d.ts +1 -1
  126. package/dist/services/codex-rules.d.ts.map +1 -1
  127. package/dist/services/codex-rules.js +2 -2
  128. package/dist/services/codex-storage-handoff-template.d.ts +2 -0
  129. package/dist/services/codex-storage-handoff-template.d.ts.map +1 -0
  130. package/dist/services/codex-storage-handoff-template.js +18 -0
  131. package/dist/services/codex-storage-handoff-template.js.map +1 -0
  132. package/dist/services/codex-subagent-hook-template.d.ts +1 -1
  133. package/dist/services/codex-subagent-hook-template.d.ts.map +1 -1
  134. package/dist/services/codex-subagent-hook-template.js +7 -6
  135. package/dist/services/codex-subagent-hook-template.js.map +1 -1
  136. package/dist/services/codex-task-delivery-authority-template.d.ts +3 -0
  137. package/dist/services/codex-task-delivery-authority-template.d.ts.map +1 -0
  138. package/dist/services/codex-task-delivery-authority-template.js +206 -0
  139. package/dist/services/codex-task-delivery-authority-template.js.map +1 -0
  140. package/dist/services/codex-validation-runtime-template.js +1 -1
  141. package/dist/services/codex-windows-hook-command.js +2 -2
  142. package/dist/services/codex-windows-hook-command.js.map +1 -1
  143. package/dist/services/developer-identity-fixture.d.ts.map +1 -1
  144. package/dist/services/developer-identity-fixture.js +3 -2
  145. package/dist/services/developer-identity-fixture.js.map +1 -1
  146. package/dist/services/doctor.d.ts.map +1 -1
  147. package/dist/services/doctor.js +5 -1
  148. package/dist/services/doctor.js.map +1 -1
  149. package/dist/services/github-setup-status.d.ts +6 -3
  150. package/dist/services/github-setup-status.d.ts.map +1 -1
  151. package/dist/services/github-setup-status.js +9 -5
  152. package/dist/services/github-setup-status.js.map +1 -1
  153. package/dist/services/github-setup-status.test.js +69 -3
  154. package/dist/services/github-setup-status.test.js.map +1 -1
  155. package/dist/services/global-codex-config.d.ts.map +1 -1
  156. package/dist/services/global-codex-config.js +3 -0
  157. package/dist/services/global-codex-config.js.map +1 -1
  158. package/dist/services/global-codex-project-trust.d.ts +17 -0
  159. package/dist/services/global-codex-project-trust.d.ts.map +1 -0
  160. package/dist/services/global-codex-project-trust.js +186 -0
  161. package/dist/services/global-codex-project-trust.js.map +1 -0
  162. package/dist/services/global-codex-project-trust.test.d.ts +2 -0
  163. package/dist/services/global-codex-project-trust.test.d.ts.map +1 -0
  164. package/dist/services/global-codex-project-trust.test.js +188 -0
  165. package/dist/services/global-codex-project-trust.test.js.map +1 -0
  166. package/dist/services/install-agents-template.d.ts.map +1 -1
  167. package/dist/services/install-agents-template.js +95 -190
  168. package/dist/services/install-agents-template.js.map +1 -1
  169. package/dist/services/install-client-selection.d.ts +6 -0
  170. package/dist/services/install-client-selection.d.ts.map +1 -0
  171. package/dist/services/install-client-selection.js +24 -0
  172. package/dist/services/install-client-selection.js.map +1 -0
  173. package/dist/services/install-result.d.ts +6 -0
  174. package/dist/services/install-result.d.ts.map +1 -0
  175. package/dist/services/install-result.js +14 -0
  176. package/dist/services/install-result.js.map +1 -0
  177. package/dist/services/install-storage-boundary.d.ts +6 -0
  178. package/dist/services/install-storage-boundary.d.ts.map +1 -0
  179. package/dist/services/install-storage-boundary.js +173 -0
  180. package/dist/services/install-storage-boundary.js.map +1 -0
  181. package/dist/services/install-storage-boundary.test.d.ts +2 -0
  182. package/dist/services/install-storage-boundary.test.d.ts.map +1 -0
  183. package/dist/services/install-storage-boundary.test.js +110 -0
  184. package/dist/services/install-storage-boundary.test.js.map +1 -0
  185. package/dist/services/install-template-backup.d.ts +3 -0
  186. package/dist/services/install-template-backup.d.ts.map +1 -0
  187. package/dist/services/install-template-backup.js +46 -0
  188. package/dist/services/install-template-backup.js.map +1 -0
  189. package/dist/services/install-template-lock.d.ts +2 -0
  190. package/dist/services/install-template-lock.d.ts.map +1 -0
  191. package/dist/services/install-template-lock.js +32 -0
  192. package/dist/services/install-template-lock.js.map +1 -0
  193. package/dist/services/install-template-policy.d.ts +16 -0
  194. package/dist/services/install-template-policy.d.ts.map +1 -1
  195. package/dist/services/install-template-policy.js +73 -1
  196. package/dist/services/install-template-policy.js.map +1 -1
  197. package/dist/services/install-template-render.d.ts +11 -0
  198. package/dist/services/install-template-render.d.ts.map +1 -0
  199. package/dist/services/install-template-render.js +53 -0
  200. package/dist/services/install-template-render.js.map +1 -0
  201. package/dist/services/install-template-rule-files.d.ts +3 -0
  202. package/dist/services/install-template-rule-files.d.ts.map +1 -0
  203. package/dist/services/install-template-rule-files.js +24 -0
  204. package/dist/services/install-template-rule-files.js.map +1 -0
  205. package/dist/services/logger.d.ts.map +1 -1
  206. package/dist/services/logger.js +35 -10
  207. package/dist/services/logger.js.map +1 -1
  208. package/dist/services/logger.test.js +65 -16
  209. package/dist/services/logger.test.js.map +1 -1
  210. package/dist/services/project-config-upgrade.d.ts +3 -0
  211. package/dist/services/project-config-upgrade.d.ts.map +1 -0
  212. package/dist/services/project-config-upgrade.js +58 -0
  213. package/dist/services/project-config-upgrade.js.map +1 -0
  214. package/dist/services/runtime-template-deploy-policy.test.d.ts +2 -0
  215. package/dist/services/runtime-template-deploy-policy.test.d.ts.map +1 -0
  216. package/dist/services/runtime-template-deploy-policy.test.js +26 -0
  217. package/dist/services/runtime-template-deploy-policy.test.js.map +1 -0
  218. package/dist/services/runtime-template-test-support.d.ts +14 -0
  219. package/dist/services/runtime-template-test-support.d.ts.map +1 -1
  220. package/dist/services/runtime-template-test-support.js +18 -0
  221. package/dist/services/runtime-template-test-support.js.map +1 -1
  222. package/dist/services/runtime-template.test.js +14 -63
  223. package/dist/services/runtime-template.test.js.map +1 -1
  224. package/dist/services/sqlite-bootstrap.js +2 -2
  225. package/dist/services/sqlite-bootstrap.js.map +1 -1
  226. package/dist/services/stack-node.js +2 -2
  227. package/dist/services/stack-node.js.map +1 -1
  228. package/dist/services/stack-terraform.d.ts.map +1 -1
  229. package/dist/services/stack-terraform.js +5 -5
  230. package/dist/services/stack-terraform.js.map +1 -1
  231. package/dist/services/template-packed-path.test.d.ts +2 -0
  232. package/dist/services/template-packed-path.test.d.ts.map +1 -0
  233. package/dist/services/template-packed-path.test.js +30 -0
  234. package/dist/services/template-packed-path.test.js.map +1 -0
  235. package/dist/types.d.ts +8 -0
  236. package/dist/types.d.ts.map +1 -1
  237. package/package.json +2 -1
  238. package/templates/.agents/README-ENG.md +5 -1
  239. package/templates/.agents/README.md +5 -1
  240. package/templates/.agents/architecture/software-architecture.md +7 -1
  241. package/templates/.agents/config/agents/catalog.yaml +25 -12
  242. package/templates/.agents/config/agents/discovery.json +2 -2
  243. package/templates/.agents/config/autonomous-cloud-inputs.json +3 -3
  244. package/templates/.agents/config/clients/codex/agents/zaip-agent-analyst.toml +4 -2
  245. package/templates/.agents/config/clients/codex/agents/zaip-agent-auditor.toml +1 -1
  246. package/templates/.agents/config/clients/codex/agents/zaip-agent-backend.toml +6 -4
  247. package/templates/.agents/config/clients/codex/agents/zaip-agent-brand-strategist.toml +3 -1
  248. package/templates/.agents/config/clients/codex/agents/zaip-agent-builder.toml +6 -4
  249. package/templates/.agents/config/clients/codex/agents/zaip-agent-cloud-engineer.toml +5 -3
  250. package/templates/.agents/config/clients/codex/agents/zaip-agent-data-analyst.toml +3 -1
  251. package/templates/.agents/config/clients/codex/agents/zaip-agent-designer.toml +7 -4
  252. package/templates/.agents/config/clients/codex/agents/zaip-agent-finalizer.toml +1 -1
  253. package/templates/.agents/config/clients/codex/agents/zaip-agent-frontend.toml +9 -6
  254. package/templates/.agents/config/clients/codex/agents/zaip-agent-general-operations.toml +3 -1
  255. package/templates/.agents/config/clients/codex/agents/zaip-agent-governance-compliance.toml +3 -1
  256. package/templates/.agents/config/clients/codex/agents/zaip-agent-growth-strategist.toml +3 -1
  257. package/templates/.agents/config/clients/codex/agents/zaip-agent-integrator.toml +1 -1
  258. package/templates/.agents/config/clients/codex/agents/zaip-agent-marketing-analyst.toml +5 -3
  259. package/templates/.agents/config/clients/codex/agents/zaip-agent-orchestrator.toml +4 -4
  260. package/templates/.agents/config/clients/codex/agents/zaip-agent-refactoring-specialist.toml +3 -1
  261. package/templates/.agents/config/clients/codex/agents/zaip-agent-reviewer.toml +3 -3
  262. package/templates/.agents/config/clients/codex/agents/zaip-agent-sales-specialist.toml +3 -1
  263. package/templates/.agents/config/clients/codex/agents/zaip-agent-security-auditor.toml +1 -1
  264. package/templates/.agents/config/clients/codex/agents/zaip-agent-task-executor.toml +6 -3
  265. package/templates/.agents/config/clients/codex/agents/zaip-agent-website-developer.toml +7 -4
  266. package/templates/.agents/config/clients/codex/agents/zaip-agent-writer.toml +3 -1
  267. package/templates/.agents/config/project.yaml +7 -2
  268. package/templates/.agents/dashboard/.zaip-managed.json +282 -142
  269. package/templates/.agents/dashboard/apps/frontend/dist/assets/CostCalculationGuidePage-DZ2mnR6k.js +1 -0
  270. package/templates/.agents/dashboard/apps/frontend/dist/assets/{DashboardHelpDialog-tg6j_0De.js → DashboardHelpDialog-DnxpHJSo.js} +45 -10
  271. package/templates/.agents/dashboard/apps/frontend/dist/assets/{PricingSettingsDialog-DlkxF4w_.js → PricingSettingsDialog-DsFTUwhL.js} +1 -1
  272. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-BCsdQtWG.js +3 -0
  273. package/templates/.agents/dashboard/apps/frontend/dist/assets/{TraceabilityWorkspace-B-5yP5Jx.js → TraceabilityWorkspace-BN8FwP5S.js} +1 -1
  274. package/templates/.agents/dashboard/apps/frontend/dist/assets/{cost-monitor-C2AFYBu_.css → cost-monitor-BESDS3aE.css} +1 -1
  275. package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-YfoKMzCQ.js +59 -0
  276. package/templates/.agents/dashboard/apps/frontend/dist/assets/{dashboard-localization-CqicG5jJ.js → dashboard-localization-BVBhiAAS.js} +5 -1
  277. package/templates/.agents/dashboard/apps/frontend/dist/assets/{icons-vendor-CjGGux6h.js → icons-vendor-DSdQAua1.js} +1 -1
  278. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-4cl5FQBn.css +1 -0
  279. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-uIVtG2ZR.js +2 -0
  280. package/templates/.agents/dashboard/apps/frontend/dist/assets/{react-vendor-B9jZSAKf.js → react-vendor-rGvJzdn5.js} +1 -1
  281. package/templates/.agents/dashboard/apps/frontend/dist/assets/{traceability-DFpwb0TN.js → traceability-Boz50W9b.js} +1 -1
  282. package/templates/.agents/dashboard/apps/frontend/dist/index.html +8 -7
  283. package/templates/.agents/dashboard/apps/frontend/index.html +1 -0
  284. package/templates/.agents/dashboard/apps/frontend/package.json +1 -1
  285. package/templates/.agents/dashboard/apps/frontend/playwright.dom.config.ts +2 -2
  286. package/templates/.agents/dashboard/apps/frontend/src/AppLoadingPanels.tsx +10 -7
  287. package/templates/.agents/dashboard/apps/frontend/src/AppOverlays.tsx +22 -19
  288. package/templates/.agents/dashboard/apps/frontend/src/CostCalculationGuidePage.tsx +16 -117
  289. package/templates/.agents/dashboard/apps/frontend/src/CostCharts.percentages.test.tsx +75 -0
  290. package/templates/.agents/dashboard/apps/frontend/src/CostTelemetryGuide.tsx +36 -0
  291. package/templates/.agents/dashboard/apps/frontend/src/DashboardToast.tsx +9 -0
  292. package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsPage.dom.test.ts +1 -1
  293. package/templates/.agents/dashboard/apps/frontend/src/ProjectStackEditor.tsx +1 -0
  294. package/templates/.agents/dashboard/apps/frontend/src/ReconciliationFeedback.dom.test.ts +1 -1
  295. package/templates/.agents/dashboard/apps/frontend/src/ReconciliationFeedback.tsx +22 -19
  296. package/templates/.agents/dashboard/apps/frontend/src/TraceabilityWorkspace.dom.e2e.ts +5 -2
  297. package/templates/.agents/dashboard/apps/frontend/src/WorkspaceStatus.dom.test.ts +86 -0
  298. package/templates/.agents/dashboard/apps/frontend/src/WorkspaceStatus.test.tsx +44 -0
  299. package/templates/.agents/dashboard/apps/frontend/src/WorkspaceStatus.tsx +37 -12
  300. package/templates/.agents/dashboard/apps/frontend/src/cost-guide-calculations.ts +118 -0
  301. package/templates/.agents/dashboard/apps/frontend/src/dashboard-api-sqlite-view.ts +3 -0
  302. package/templates/.agents/dashboard/apps/frontend/src/dashboard-api.ts +15 -31
  303. package/templates/.agents/dashboard/apps/frontend/src/dashboard-http-transport.ts +30 -0
  304. package/templates/.agents/dashboard/apps/frontend/src/dashboard-runtime-status.ts +4 -1
  305. package/templates/.agents/dashboard/apps/frontend/src/main.tsx +1 -0
  306. package/templates/.agents/dashboard/apps/frontend/src/project-settings-model.ts +2 -0
  307. package/templates/.agents/dashboard/apps/frontend/src/project-settings.test.ts +17 -0
  308. package/templates/.agents/dashboard/apps/frontend/src/snapshot-coherence.test.ts +0 -20
  309. package/templates/.agents/dashboard/apps/frontend/src/snapshot-observer.test.ts +112 -0
  310. package/templates/.agents/dashboard/apps/frontend/src/snapshot-observer.ts +147 -0
  311. package/templates/.agents/dashboard/apps/frontend/src/sqlite-compact-cost-adapter.ts +100 -0
  312. package/templates/.agents/dashboard/apps/frontend/src/sqlite-page-export.test.ts +20 -0
  313. package/templates/.agents/dashboard/apps/frontend/src/sqlite-page-export.ts +15 -0
  314. package/templates/.agents/dashboard/apps/frontend/src/styles-pricing.css +265 -0
  315. package/templates/.agents/dashboard/apps/frontend/src/styles.css +21 -265
  316. package/templates/.agents/dashboard/apps/frontend/src/use-app-cost-loaders.test.ts +35 -0
  317. package/templates/.agents/dashboard/apps/frontend/src/use-app-cost-loaders.ts +11 -87
  318. package/templates/.agents/dashboard/apps/frontend/src/use-app-effects.ts +26 -199
  319. package/templates/.agents/dashboard/apps/frontend/src/use-app-trace-documents.navigation.test.tsx +1 -1
  320. package/templates/.agents/dashboard/apps/frontend/src/use-app-work-board.test.ts +65 -0
  321. package/templates/.agents/dashboard/apps/frontend/src/use-app-work-board.ts +17 -1
  322. package/templates/.agents/dashboard/apps/frontend/src/use-dashboard-app-model.tsx +2 -2
  323. package/templates/.agents/dashboard/apps/frontend/src/use-operations-detail-export.ts +10 -0
  324. package/templates/.agents/dashboard/apps/frontend/src/use-runtime-status.dom.test.ts +86 -0
  325. package/templates/.agents/dashboard/apps/frontend/src/use-runtime-status.ts +4 -5
  326. package/templates/.agents/dashboard/apps/frontend/src/workspace-status.css +42 -0
  327. package/templates/.agents/dashboard/apps/frontend/vite.config.ts +1 -1
  328. package/templates/.agents/dashboard/modules/cost-monitor/package.json +1 -1
  329. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CompactLifecycleCostTable.test.ts +11 -10
  330. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CompactLifecycleCostTable.tsx +39 -15
  331. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostCharts.test.ts +27 -0
  332. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostCharts.tsx +89 -83
  333. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostGroupsTable.tsx +14 -24
  334. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorPage.test.ts +1 -27
  335. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorPage.tsx +12 -63
  336. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTables.availability.test.ts +60 -0
  337. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTables.test.ts +1 -15
  338. package/templates/.agents/dashboard/modules/cost-monitor/src/react/compact-cost-export-source.ts +85 -0
  339. package/templates/.agents/dashboard/modules/cost-monitor/src/react/compact-cost-page-range.test.ts +34 -0
  340. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-chart-presentation.ts +74 -0
  341. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-charts.css +117 -0
  342. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-group-table-totals.ts +29 -0
  343. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-export-sources.ts +19 -0
  344. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-page-state.ts +27 -0
  345. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor.css +6 -117
  346. package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-cost-group-page.ts +3 -1
  347. package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-summary-projection.ts +9 -32
  348. package/templates/.agents/dashboard/modules/cost-monitor/src/server/cost-summary-metrics.ts +33 -0
  349. package/templates/.agents/dashboard/modules/operations/package.json +1 -1
  350. package/templates/.agents/dashboard/modules/operations/src/react/OperationsLocaleMenu.tsx +58 -0
  351. package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverviewTopPanel.navigation.test.tsx +1 -1
  352. package/templates/.agents/dashboard/modules/operations/src/react/OperationsPage.tsx +16 -47
  353. package/templates/.agents/dashboard/modules/operations/src/react/UnifiedWorkBoard.navigation.test.ts +1 -1
  354. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportAction.test.ts +4 -100
  355. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportAction.tsx +25 -89
  356. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportColumns.ts +1 -0
  357. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportDuration.test.ts +105 -0
  358. package/templates/.agents/dashboard/modules/operations/src/react/export/export-duration-rows.ts +91 -0
  359. package/templates/.agents/dashboard/modules/operations/src/react/operations-page-contract.ts +4 -0
  360. package/templates/.agents/dashboard/modules/traceability/package.json +1 -1
  361. package/templates/.agents/dashboard/packages/branding/package.json +1 -1
  362. package/templates/.agents/dashboard/packages/contracts/package.json +2 -2
  363. package/templates/.agents/dashboard/packages/contracts/src/export.ts +2 -0
  364. package/templates/.agents/dashboard/packages/data-export/package.json +1 -1
  365. package/templates/.agents/dashboard/packages/data-export/src/index.test.ts +30 -0
  366. package/templates/.agents/dashboard/packages/data-export/src/index.ts +10 -0
  367. package/templates/.agents/dashboard/packages/data-export/src/ooxml-stream.ts +50 -3
  368. package/templates/.agents/dashboard/packages/local-runtime/DIAGNOSTICS.md +2 -1
  369. package/templates/.agents/dashboard/packages/local-runtime/dashboard-build-fingerprint.mjs +1 -1
  370. package/templates/.agents/dashboard/packages/local-runtime/dashboard-diagnostics.mjs +4 -2
  371. package/templates/.agents/dashboard/packages/local-runtime/dashboard-diagnostics.test.mjs +1 -1
  372. package/templates/.agents/dashboard/packages/local-runtime/dist/server.cjs +314 -269
  373. package/templates/.agents/dashboard/packages/local-runtime/dist/sqlite-read-model.cjs +266 -222
  374. package/templates/.agents/dashboard/packages/local-runtime/package.json +3 -3
  375. package/templates/.agents/dashboard/packages/local-runtime/scripts/verify-dashboard-executable-startup.mjs +4 -1
  376. package/templates/.agents/dashboard/packages/local-runtime/scripts/verify-dashboard-reconciliation-executable.mjs +4 -4
  377. package/templates/.agents/dashboard/packages/local-runtime/server.mjs +314 -269
  378. package/templates/.agents/dashboard/packages/local-runtime/src/active-codex-telemetry.test.ts +51 -0
  379. package/templates/.agents/dashboard/packages/local-runtime/src/active-codex-telemetry.ts +15 -1
  380. package/templates/.agents/dashboard/packages/local-runtime/src/dashboard-diagnostics.test.ts +1 -1
  381. package/templates/.agents/dashboard/packages/local-runtime/src/project-settings.ts +3 -40
  382. package/templates/.agents/dashboard/packages/local-runtime/src/project-stack-labels.ts +40 -0
  383. package/templates/.agents/dashboard/packages/local-runtime/src/retained-worktree-capture.ts +81 -0
  384. package/templates/.agents/dashboard/packages/local-runtime/src/server-board.ts +11 -2
  385. package/templates/.agents/dashboard/packages/local-runtime/src/server-hono-security.test.ts +40 -0
  386. package/templates/.agents/dashboard/packages/local-runtime/src/server-operations-routes.ts +33 -14
  387. package/templates/.agents/dashboard/packages/local-runtime/src/server-project-settings-routes.test.ts +83 -0
  388. package/templates/.agents/dashboard/packages/local-runtime/src/server-project-settings-routes.ts +41 -0
  389. package/templates/.agents/dashboard/packages/local-runtime/src/server-projections.ts +3 -19
  390. package/templates/.agents/dashboard/packages/local-runtime/src/server-reconciliation-diagnostics.test.ts +2 -2
  391. package/templates/.agents/dashboard/packages/local-runtime/src/server-reconciliation-refresh.test.ts +61 -0
  392. package/templates/.agents/dashboard/packages/local-runtime/src/server-reconciliation-route.ts +2 -2
  393. package/templates/.agents/dashboard/packages/local-runtime/src/server-run-range.ts +18 -0
  394. package/templates/.agents/dashboard/packages/local-runtime/src/server-snapshot-refresh.ts +3 -36
  395. package/templates/.agents/dashboard/packages/local-runtime/src/server-snapshot-worker-receipt.ts +38 -0
  396. package/templates/.agents/dashboard/packages/local-runtime/src/server-work-priority-route.ts +18 -0
  397. package/templates/.agents/dashboard/packages/local-runtime/src/server-workspace.ts +1 -0
  398. package/templates/.agents/dashboard/packages/local-runtime/src/server.ts +6 -32
  399. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-summary-rollup.ts +47 -0
  400. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-financial-consistency.test.ts +133 -0
  401. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-financial-entity-page.ts +159 -0
  402. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-incremental-refresh.test.ts +12 -2
  403. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-operations-work-list.ts +17 -0
  404. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-operation-pages.ts +71 -0
  405. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-summary.ts +5 -40
  406. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-temporal-dimension.ts +29 -7
  407. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-view-page.ts +7 -55
  408. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-counts-every-root-execution-day-returns.test.ts +16 -24
  409. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-counts-fixture.test-support.ts +27 -5
  410. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-filesystem.ts +20 -37
  411. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-keeps-orphan-telemetry-out-kanban-without.test.ts +9 -9
  412. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-marks-token-cost-telemetry-unavailable-when.test.ts +3 -3
  413. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-multi-provider.test.ts +14 -20
  414. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-rebuilds-disposable-snapshot-serves-zaip-records.test.ts +11 -1
  415. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-schema.ts +1 -1
  416. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-work-financial-summary.ts +38 -0
  417. package/templates/.agents/dashboard/packages/local-runtime/src/telemetry-reconciliation.integration.test.ts +223 -0
  418. package/templates/.agents/dashboard/packages/local-runtime/src/work-priority-contract.test.ts +5 -5
  419. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard-launch-page.test.mjs +59 -3
  420. package/templates/.agents/dashboard/packages/ui/package.json +1 -1
  421. package/templates/.agents/dashboard/packages/windows-launcher/Program.cs +1 -1
  422. package/templates/.agents/dashboard/packages/windows-launcher/build-dashboard-launcher.ps1 +1 -1
  423. package/templates/.agents/dashboard/tests/e2e/package.json +1 -1
  424. package/templates/.agents/dashboard/tests/e2e/playwright.config.ts +1 -0
  425. package/templates/.agents/dashboard/tests/e2e/specs/dashboard.spec.ts +11 -15
  426. package/templates/.agents/dashboard/tests/e2e/specs/work-board-hydration.ts +40 -11
  427. package/templates/.agents/dashboard/zaip-dashboard-windows.exe +0 -0
  428. package/templates/.agents/design/.zaip-managed.json +498 -54
  429. package/templates/.agents/design/apps/catalog/dist/assets/index-BH6Fxbj0.css +1 -0
  430. package/templates/.agents/design/apps/catalog/dist/assets/index-BK0aBll9.css +1 -0
  431. package/templates/.agents/design/apps/catalog/dist/assets/index-Bzhb1wb_.js +76 -0
  432. package/templates/.agents/design/apps/catalog/dist/assets/index-CB-MTaWq.js +76 -0
  433. package/templates/.agents/design/apps/catalog/dist/assets/index-CIqfUcy8.js +76 -0
  434. package/templates/.agents/design/apps/catalog/dist/assets/index-Ccq-NOLA.js +76 -0
  435. package/templates/.agents/design/apps/catalog/dist/assets/index-Ch2eyD9C.js +76 -0
  436. package/templates/.agents/design/apps/catalog/dist/assets/index-Cy64ytQr.js +67 -0
  437. package/templates/.agents/design/apps/catalog/dist/assets/index-DfxEbFlq.js +76 -0
  438. package/templates/.agents/design/apps/catalog/dist/assets/index-Dqt6mTvD.js +76 -0
  439. package/templates/.agents/design/apps/catalog/dist/assets/index-rz8gOc0a.js +76 -0
  440. package/templates/.agents/design/apps/catalog/dist/index.html +2 -2
  441. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{CatalogShell-BJ8b4xZr.js → CatalogShell-D2YyQQrT.js} +1 -1
  442. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{Color-6AOWCN3U-CQLHzznn.js → Color-6AOWCN3U-BmCuNXMg.js} +1 -1
  443. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Components.stories-DF9KC_gA.js +158 -0
  444. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFilters.stories-D17Q1egS.js +5 -0
  445. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFiltersSpecimen-CEBrLT2k.js +1 -0
  446. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{DesignSystem.stories-ED52wFjY.js → DesignSystem.stories-BibuRt_c.js} +1 -1
  447. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{DocsRenderer-JROSPFPF-BcLgM80v.js → DocsRenderer-JROSPFPF-GkfL8_gG.js} +4 -4
  448. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Maker.stories-Dv9Keun_.js +13 -0
  449. package/templates/.agents/design/apps/catalog/dist/storybook/assets/MakerSpecimen-DGwAKRi9.css +1 -0
  450. package/templates/.agents/design/apps/catalog/dist/storybook/assets/MakerSpecimen-mkkuFOp_.js +5 -0
  451. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{Primitives-DV6Bpudf.js → Primitives-n1UqmNvo.js} +1 -1
  452. package/templates/.agents/design/apps/catalog/dist/storybook/assets/ReconciliationSpecimen-BJnfyyG3.js +1 -0
  453. package/templates/.agents/design/apps/catalog/dist/storybook/assets/ReconciliationSpecimen.stories-CH-GF9Rk.js +13 -0
  454. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{WithTooltip-7X4HQR7L-BKNiAz_E.js → WithTooltip-7X4HQR7L-BPXo6OoG.js} +1 -1
  455. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{WorkspaceStatus.stories-BL19HGOo.js → WorkspaceStatus.stories-Cie1f_yU.js} +1 -1
  456. package/templates/.agents/design/apps/catalog/dist/storybook/assets/WorkspaceStatusSpecimen-GcYWBBSp.js +1 -0
  457. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{chunk-DRQKCCAG-DZBcXL-p.js → chunk-DRQKCCAG-Cn4_bvJJ.js} +1 -1
  458. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{chunk-W22LQPXL-CF3y2mfo.js → chunk-W22LQPXL-CQrULeB4.js} +1 -1
  459. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{components-BVjxMRGq.js → components-uiaDZHE7.js} +5 -5
  460. package/templates/.agents/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-DfjRffT7.js +1 -0
  461. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{iframe-CTWGZcEe.js → iframe-BgEb-d5o.js} +4 -4
  462. package/templates/.agents/design/apps/catalog/dist/storybook/assets/iframe-D1JaPXfV.css +1 -0
  463. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{react-18-B9_a4mHb.js → react-18-BZ-Ne01c.js} +1 -1
  464. package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-CwpjKEyW.js +1 -0
  465. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{syntaxhighlighter-YFXUGROL-F_p8E2xc.js → syntaxhighlighter-YFXUGROL-BvuP8St2.js} +1 -1
  466. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{theming-fbSD9ZLF.js → theming-BGScn6Yf.js} +1 -1
  467. package/templates/.agents/design/apps/catalog/dist/storybook/iframe.html +2 -2
  468. package/templates/.agents/design/apps/catalog/dist/storybook/index.json +1 -1
  469. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/a11y-2/manager-bundle.js +3 -3
  470. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/docs-1/manager-bundle.js +4 -4
  471. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +3 -3
  472. package/templates/.agents/design/apps/catalog/package.json +2 -2
  473. package/templates/.agents/design/apps/catalog/src/components/WorkspaceStatusSpecimen.tsx +32 -1
  474. package/templates/.agents/design/apps/catalog/src/pages/ComponentsPage.tsx +14 -3
  475. package/templates/.agents/design/apps/catalog/src/specimens/MAKER-HANDOFF.md +134 -0
  476. package/templates/.agents/design/apps/catalog/src/specimens/MakerSpecimen.test.tsx +143 -0
  477. package/templates/.agents/design/apps/catalog/src/specimens/MakerSpecimen.tsx +132 -0
  478. package/templates/.agents/design/apps/catalog/src/specimens/maker-fixtures.d.ts +15 -0
  479. package/templates/.agents/design/apps/catalog/src/specimens/maker-fixtures.js +86 -0
  480. package/templates/.agents/design/apps/catalog/src/specimens/maker-native.d.ts +1 -0
  481. package/templates/.agents/design/apps/catalog/src/specimens/maker-native.js +332 -0
  482. package/templates/.agents/design/apps/catalog/src/stories/Maker.stories.tsx +24 -0
  483. package/templates/.agents/design/apps/catalog/src/stories/WorkspaceStatus.stories.tsx +1 -0
  484. package/templates/.agents/design/apps/catalog/src/styles/maker-specimen.css +285 -0
  485. package/templates/.agents/design/design-system-maker/API.md +468 -0
  486. package/templates/.agents/design/design-system-maker/NOTICE.md +13 -0
  487. package/templates/.agents/design/design-system-maker/README.md +138 -0
  488. package/templates/.agents/design/design-system-maker/SOURCE-PROVENANCE.json +62 -0
  489. package/templates/.agents/design/design-system-maker/build.json +524 -0
  490. package/templates/.agents/design/design-system-maker/frontend/ADAPTATION.md +351 -0
  491. package/templates/.agents/design/design-system-maker/frontend/MAKER-REPAIR-HANDOFF.md +134 -0
  492. package/templates/.agents/design/design-system-maker/frontend/advanced/examples.js +30 -0
  493. package/templates/.agents/design/design-system-maker/frontend/advanced/index.html +75 -0
  494. package/templates/.agents/design/design-system-maker/frontend/advanced/index.js +30 -0
  495. package/templates/.agents/design/design-system-maker/frontend/catalog/filters.js +132 -0
  496. package/templates/.agents/design/design-system-maker/frontend/catalog/index.html +17 -0
  497. package/templates/.agents/design/design-system-maker/frontend/catalog/index.js +82 -0
  498. package/templates/.agents/design/design-system-maker/frontend/generate.html +74 -0
  499. package/templates/.agents/design/design-system-maker/frontend/generate.js +226 -0
  500. package/templates/.agents/design/design-system-maker/frontend/shared/api.js +112 -0
  501. package/templates/.agents/design/design-system-maker/frontend/shared/components.js +200 -0
  502. package/templates/.agents/design/design-system-maker/frontend/shared/diagnostic-view.js +218 -0
  503. package/templates/.agents/design/design-system-maker/frontend/shared/extraction-state.js +38 -0
  504. package/templates/.agents/design/design-system-maker/frontend/shared/failure-view.js +54 -0
  505. package/templates/.agents/design/design-system-maker/frontend/shared/frontend-scenarios-2.test.mjs +138 -0
  506. package/templates/.agents/design/design-system-maker/frontend/shared/frontend.test.mjs +357 -0
  507. package/templates/.agents/design/design-system-maker/frontend/shared/job-view.js +81 -0
  508. package/templates/.agents/design/design-system-maker/frontend/shared/model-hydration.js +26 -0
  509. package/templates/.agents/design/design-system-maker/frontend/shared/model.js +103 -0
  510. package/templates/.agents/design/design-system-maker/frontend/shared/palette-evidence.js +106 -0
  511. package/templates/.agents/design/design-system-maker/frontend/shared/palette-evidence.test.mjs +210 -0
  512. package/templates/.agents/design/design-system-maker/frontend/shared/palette-view.js +149 -0
  513. package/templates/.agents/design/design-system-maker/frontend/shared/preview.test.mjs +263 -0
  514. package/templates/.agents/design/design-system-maker/frontend/shared/report-view.js +267 -0
  515. package/templates/.agents/design/design-system-maker/frontend/shared/reprocess-dialog.js +192 -0
  516. package/templates/.agents/design/design-system-maker/frontend/shared/specimens.js +231 -0
  517. package/templates/.agents/design/design-system-maker/frontend/shared/viewer-actions.js +78 -0
  518. package/templates/.agents/design/design-system-maker/frontend/shared/viewer-detail.js +121 -0
  519. package/templates/.agents/design/design-system-maker/frontend/shared/viewer-summary.js +91 -0
  520. package/templates/.agents/design/design-system-maker/frontend/shared/visual-model.js +255 -0
  521. package/templates/.agents/design/design-system-maker/frontend/styles/advanced.css +128 -0
  522. package/templates/.agents/design/design-system-maker/frontend/styles/base.css +318 -0
  523. package/templates/.agents/design/design-system-maker/frontend/styles/catalog-filters.css +114 -0
  524. package/templates/.agents/design/design-system-maker/frontend/styles/diagnostic.css +298 -0
  525. package/templates/.agents/design/design-system-maker/frontend/styles/layout.css +320 -0
  526. package/templates/.agents/design/design-system-maker/frontend/styles/maker.css +7 -0
  527. package/templates/.agents/design/design-system-maker/frontend/styles/report.css +173 -0
  528. package/templates/.agents/design/design-system-maker/frontend/styles/reprocess-dialog.css +34 -0
  529. package/templates/.agents/design/design-system-maker/frontend/styles/specimen-foundations.css +363 -0
  530. package/templates/.agents/design/design-system-maker/frontend/styles/specimens.css +59 -0
  531. package/templates/.agents/design/design-system-maker/frontend/styles/viewer-summary.css +308 -0
  532. package/templates/.agents/design/design-system-maker/frontend/viewer/diagnostic.html +3 -0
  533. package/templates/.agents/design/design-system-maker/frontend/viewer/index.html +8 -0
  534. package/templates/.agents/design/design-system-maker/frontend/viewer/index.js +233 -0
  535. package/templates/.agents/design/design-system-maker/frontend/viewer/preview.html +3 -0
  536. package/templates/.agents/design/design-system-maker/frontend/viewer/specimen.js +88 -0
  537. package/templates/.agents/design/design-system-maker/launcher/Program.cs +117 -0
  538. package/templates/.agents/design/design-system-maker/runtime/chat-cli.mjs +27 -0
  539. package/templates/.agents/design/design-system-maker/runtime/chat-client.mjs +170 -0
  540. package/templates/.agents/design/design-system-maker/runtime/chat-contract.mjs +13 -0
  541. package/templates/.agents/design/design-system-maker/runtime/collection.mjs +269 -0
  542. package/templates/.agents/design/design-system-maker/runtime/contracts.mjs +383 -0
  543. package/templates/.agents/design/design-system-maker/runtime/design-codes.mjs +46 -0
  544. package/templates/.agents/design/design-system-maker/runtime/design-compose.mjs +118 -0
  545. package/templates/.agents/design/design-system-maker/runtime/design-markdown.mjs +154 -0
  546. package/templates/.agents/design/design-system-maker/runtime/import.mjs +137 -0
  547. package/templates/.agents/design/design-system-maker/runtime/io.mjs +121 -0
  548. package/templates/.agents/design/design-system-maker/runtime/job-progress.mjs +50 -0
  549. package/templates/.agents/design/design-system-maker/runtime/json-tokens.mjs +88 -0
  550. package/templates/.agents/design/design-system-maker/runtime/launch-identity.mjs +100 -0
  551. package/templates/.agents/design/design-system-maker/runtime/launch-protocol.mjs +88 -0
  552. package/templates/.agents/design/design-system-maker/runtime/launch-server.mjs +51 -0
  553. package/templates/.agents/design/design-system-maker/runtime/launch.mjs +107 -0
  554. package/templates/.agents/design/design-system-maker/runtime/local-actions.mjs +184 -0
  555. package/templates/.agents/design/design-system-maker/runtime/local-artifacts.mjs +228 -0
  556. package/templates/.agents/design/design-system-maker/runtime/local-request.mjs +100 -0
  557. package/templates/.agents/design/design-system-maker/runtime/lock.mjs +23 -0
  558. package/templates/.agents/design/design-system-maker/runtime/presentation.mjs +107 -0
  559. package/templates/.agents/design/design-system-maker/runtime/repository-source.mjs +200 -0
  560. package/templates/.agents/design/design-system-maker/runtime/reprocess-mode.mjs +17 -0
  561. package/templates/.agents/design/design-system-maker/runtime/request-contracts.mjs +121 -0
  562. package/templates/.agents/design/design-system-maker/runtime/serve.mjs +53 -0
  563. package/templates/.agents/design/design-system-maker/runtime/server.mjs +363 -0
  564. package/templates/.agents/design/design-system-maker/runtime/service-actions.mjs +59 -0
  565. package/templates/.agents/design/design-system-maker/runtime/service-host.mjs +32 -0
  566. package/templates/.agents/design/design-system-maker/runtime/service-projections.mjs +87 -0
  567. package/templates/.agents/design/design-system-maker/runtime/service.mjs +393 -0
  568. package/templates/.agents/design/design-system-maker/runtime/stop.mjs +38 -0
  569. package/templates/.agents/design/design-system-maker/runtime/trash.mjs +95 -0
  570. package/templates/.agents/design/design-system-maker/zaip-design-system-maker.exe +0 -0
  571. package/templates/.agents/design/packages/local-runtime/package.json +1 -1
  572. package/templates/.agents/requirements/autonomous-assurance.md +1 -1
  573. package/templates/.agents/requirements/cloud-hostinger-autonomy.md +9 -7
  574. package/templates/.agents/requirements/comparative-audit.md +1 -1
  575. package/templates/.agents/requirements/context-engine.md +1 -1
  576. package/templates/.agents/requirements/cost-observability.md +3 -3
  577. package/templates/.agents/requirements/dashboard-launch.md +1 -1
  578. package/templates/.agents/requirements/data-export.md +1 -1
  579. package/templates/.agents/requirements/design-system.md +1 -1
  580. package/templates/.agents/requirements/execution-engine.md +1 -1
  581. package/templates/.agents/requirements/kanban-dashboard.md +3 -3
  582. package/templates/.agents/requirements/landing-page-forms.md +39 -0
  583. package/templates/.agents/requirements/model-orchestration.md +1 -1
  584. package/templates/.agents/requirements/public-distribution.md +4 -4
  585. package/templates/.agents/requirements/site-performance.md +41 -0
  586. package/templates/.agents/requirements/software-architecture.md +1 -1
  587. package/templates/.agents/requirements/strategic-improvements.md +1 -1
  588. package/templates/.agents/requirements/work-lifecycle.md +1 -1
  589. package/templates/.agents/requirements/zaip-strategic-95.md +1 -1
  590. package/templates/.agents/rules/autonomy-decision.md +4 -1
  591. package/templates/.agents/rules/cloud-hostinger-autonomy.md +4 -1
  592. package/templates/.agents/rules/core.md +5 -2
  593. package/templates/.agents/rules/framework-maintenance.md +34 -0
  594. package/templates/.agents/rules/frontend-lite.md +2 -1
  595. package/templates/.agents/rules/github-deploy-auth.md +18 -0
  596. package/templates/.agents/rules/infisical-secrets.md +20 -0
  597. package/templates/.agents/rules/landing-page-forms.md +28 -0
  598. package/templates/.agents/rules/lead-measurement.md +20 -0
  599. package/templates/.agents/rules/local-sqlite-storage.md +2 -2
  600. package/templates/.agents/rules/local-state-storage.md +15 -0
  601. package/templates/.agents/rules/production-readiness.md +1 -1
  602. package/templates/.agents/rules/quality-assurance.md +36 -0
  603. package/templates/.agents/rules/repository-responsibility.md +38 -0
  604. package/templates/.agents/rules/security.md +1 -1
  605. package/templates/.agents/rules/site-performance.md +29 -0
  606. package/templates/.agents/rules/website-quality.md +31 -0
  607. package/templates/.agents/rules/workflow.md +1 -1
  608. package/templates/.agents/runtime/VERSION +1 -1
  609. package/templates/.agents/runtime/bin/zaip.mjs +2256 -802
  610. package/templates/.agents/runtime/checksums.sha256 +6 -6
  611. package/templates/.agents/runtime/manifest.json +1 -1
  612. package/templates/.agents/runtime/pnpm-lock.sha256 +1 -1
  613. package/templates/.agents/runtime/provenance.json +5 -5
  614. package/templates/.agents/runtime/sbom.cdx.json +7 -7
  615. package/templates/.agents/skills/criar-pasta-obsidian/SKILL.md +2 -2
  616. package/templates/.agents/skills/criar-pasta-obsidian/scripts/generate-obsidian-vault.mjs +7 -24
  617. package/templates/.agents/skills/criar-pasta-obsidian/scripts/generate-obsidian-vault.test.mjs +4 -2
  618. package/templates/.agents/skills/criar-pasta-obsidian/scripts/obsidian-format.mjs +20 -0
  619. package/templates/.agents/skills/zaip-skill-adapters/SKILL.md +6 -0
  620. package/templates/.agents/skills/zaip-skill-application-observability/references/lead-measurement.md +52 -0
  621. package/templates/.agents/skills/zaip-skill-architecture-design/SKILL.md +3 -1
  622. package/templates/.agents/skills/zaip-skill-auth-tenancy/references/lead-measurement.md +42 -0
  623. package/templates/.agents/skills/zaip-skill-author-skills/SKILL.md +1 -1
  624. package/templates/.agents/skills/zaip-skill-author-skills/references/engineering-skill-index.md +4 -0
  625. package/templates/.agents/skills/zaip-skill-author-skills/scripts/audit-skill-catalog.mjs +3 -0
  626. package/templates/.agents/skills/zaip-skill-author-skills/scripts/run-skill-tests.mjs +37 -7
  627. package/templates/.agents/skills/zaip-skill-author-skills/scripts/skill-test-plan.mjs +79 -0
  628. package/templates/.agents/skills/zaip-skill-author-skills/scripts/skill-test-plan.test.mjs +47 -0
  629. package/templates/.agents/skills/zaip-skill-backend/SKILL.md +2 -0
  630. package/templates/.agents/skills/zaip-skill-backend/references/deployment-environments.md +2 -2
  631. package/templates/.agents/skills/zaip-skill-change/references/observable-evidence.md +3 -3
  632. package/templates/.agents/skills/zaip-skill-cloud-engineering/SKILL.md +2 -0
  633. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/SKILL.md +16 -0
  634. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/agents/openai.yaml +4 -0
  635. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/references/account-token.md +90 -0
  636. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/scripts/preview-access.mjs +91 -0
  637. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/scripts/preview-access.test.mjs +44 -0
  638. package/templates/.agents/skills/zaip-skill-cloudflare-github-deploy/SKILL.md +4 -2
  639. package/templates/.agents/skills/zaip-skill-cloudflare-github-deploy/references/workers-static-assets.md +1 -1
  640. package/templates/.agents/skills/zaip-skill-cloudflare-github-deploy/references/workflow-templates.md +5 -5
  641. package/templates/.agents/skills/zaip-skill-cloudflare-github-deploy/scripts/cloudflare-github-deploy-contract.test.mjs +24 -5
  642. package/templates/.agents/skills/zaip-skill-config/SKILL.md +33 -8
  643. package/templates/.agents/skills/zaip-skill-config/agents/openai.yaml +2 -2
  644. package/templates/.agents/skills/zaip-skill-config/references/repository-profiles.md +83 -0
  645. package/templates/.agents/skills/zaip-skill-dashboard-sqlite/SKILL.md +2 -2
  646. package/templates/.agents/skills/zaip-skill-data-modeling/references/lead-measurement.md +37 -0
  647. package/templates/.agents/skills/zaip-skill-database-migrations/references/lead-measurement.md +35 -0
  648. package/templates/.agents/skills/zaip-skill-decisions/SKILL.md +1 -0
  649. package/templates/.agents/skills/zaip-skill-deployment-pipeline/SKILL.md +11 -0
  650. package/templates/.agents/skills/zaip-skill-design-maker/SKILL.md +28 -0
  651. package/templates/.agents/skills/zaip-skill-design-maker/agents/openai.yaml +4 -0
  652. package/templates/.agents/skills/zaip-skill-design-maker/references/chat-contract.md +46 -0
  653. package/templates/.agents/skills/zaip-skill-design-maker/references/compose.md +20 -0
  654. package/templates/.agents/skills/zaip-skill-design-maker/references/markdown.md +26 -0
  655. package/templates/.agents/skills/zaip-skill-design-maker/references/repository.md +24 -0
  656. package/templates/.agents/skills/zaip-skill-design-maker/references/url.md +24 -0
  657. package/templates/.agents/skills/zaip-skill-design-redesign/SKILL.md +41 -0
  658. package/templates/.agents/skills/zaip-skill-design-redesign/agents/openai.yaml +6 -0
  659. package/templates/.agents/skills/zaip-skill-design-reproduction/SKILL.md +47 -0
  660. package/templates/.agents/skills/zaip-skill-design-reproduction/agents/openai.yaml +6 -0
  661. package/templates/.agents/skills/zaip-skill-design-system/SKILL.md +6 -0
  662. package/templates/.agents/skills/zaip-skill-design-url-extraction/SKILL.md +50 -0
  663. package/templates/.agents/skills/zaip-skill-design-url-extraction/agents/openai.yaml +6 -0
  664. package/templates/.agents/skills/zaip-skill-design-url-extraction/references/capture-example.json +11 -0
  665. package/templates/.agents/skills/zaip-skill-design-url-extraction/references/runtime-workflow.md +127 -0
  666. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/SKILL.md +3 -1
  667. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-fence.mjs +2 -1
  668. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-lease.mjs +3 -1
  669. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-storage.mjs +40 -0
  670. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-storage.test.mjs +87 -0
  671. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/scheduled-ready-queue-contract.test.mjs +1 -1
  672. package/templates/.agents/skills/zaip-skill-execution/SKILL.md +11 -3
  673. package/templates/.agents/skills/zaip-skill-execution/references/autonomous-continuation.md +2 -0
  674. package/templates/.agents/skills/zaip-skill-execution/references/controlled-release-recovery.md +10 -4
  675. package/templates/.agents/skills/zaip-skill-execution/references/conversation-promotion.md +38 -0
  676. package/templates/.agents/skills/zaip-skill-execution/references/runtime-governance.md +3 -1
  677. package/templates/.agents/skills/zaip-skill-external-integrations/SKILL.md +2 -0
  678. package/templates/.agents/skills/zaip-skill-external-integrations/references/kommo.md +71 -0
  679. package/templates/.agents/skills/zaip-skill-figma-setup/SKILL.md +42 -0
  680. package/templates/.agents/skills/zaip-skill-figma-setup/agents/openai.yaml +6 -0
  681. package/templates/.agents/skills/zaip-skill-figma-setup/references/capability-contract.json +40 -0
  682. package/templates/.agents/skills/zaip-skill-figma-setup/references/figma-connection.md +60 -0
  683. package/templates/.agents/skills/zaip-skill-figma-setup/references/figma-handoff.md +71 -0
  684. package/templates/.agents/skills/zaip-skill-frontend/SKILL.md +30 -1
  685. package/templates/.agents/skills/zaip-skill-frontend-data-flows/SKILL.md +3 -0
  686. package/templates/.agents/skills/zaip-skill-github-deploy/SKILL.md +38 -5
  687. package/templates/.agents/skills/zaip-skill-github-deploy/references/authentication.md +15 -0
  688. package/templates/.agents/skills/zaip-skill-github-deploy/references/authorization.md +35 -0
  689. package/templates/.agents/skills/zaip-skill-github-deploy/references/deployment-workflow.md +21 -3
  690. package/templates/.agents/skills/zaip-skill-github-deploy/references/literal-read-sequence.md +28 -0
  691. package/templates/.agents/skills/zaip-skill-github-deploy/references/release-identity.md +4 -2
  692. package/templates/.agents/skills/zaip-skill-github-deploy/references/release-notes.md +4 -4
  693. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/application-content.mjs +82 -0
  694. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/application-content.test.mjs +184 -0
  695. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/consumer-publication-authority.mjs +63 -0
  696. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/consumer-release-preparation.mjs +42 -36
  697. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/consumer-release-preparation.test.mjs +4 -5
  698. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-auth.mjs +400 -0
  699. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-auth.test.mjs +192 -0
  700. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-constraints.test.mjs +159 -0
  701. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract-cli.test.mjs +32 -24
  702. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract-range.test-support.mjs +51 -0
  703. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract.mjs +213 -225
  704. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract.test.mjs +63 -56
  705. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-idempotent-intent.test.mjs +130 -0
  706. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-publication-intent.test.mjs +112 -5
  707. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deployment-request-conditions.test.mjs +117 -0
  708. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deployment-request-continuation.test.mjs +44 -0
  709. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deployment-request-preservation.test.mjs +58 -0
  710. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deployment-request.mjs +291 -0
  711. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-command.mjs +11 -0
  712. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-config-paths.mjs +10 -0
  713. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-destination.mjs +21 -0
  714. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-push-target.mjs +62 -0
  715. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-push-target.test.mjs +78 -0
  716. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/github-deploy-contract.test.mjs +4 -2
  717. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/guarded-commits.mjs +132 -42
  718. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight-options.mjs +50 -0
  719. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight-worktree.test.mjs +52 -0
  720. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.mjs +70 -119
  721. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.test.mjs +11 -1
  722. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/project-restrictions.mjs +201 -0
  723. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/project-restrictions.test.mjs +154 -0
  724. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-authority-callbacks.test.mjs +46 -0
  725. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-conditions.mjs +193 -0
  726. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-intent.mjs +76 -0
  727. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-plan-binding.mjs +78 -0
  728. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-plan-refusal.mjs +30 -0
  729. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-project-policy.mjs +39 -0
  730. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-2457VC25.mjs +2 -0
  731. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-25VZXDBX.mjs +2 -0
  732. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-2JXOAZ2R.mjs +2 -0
  733. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-2OZK443Y.mjs +2 -0
  734. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-3BDTL55L.mjs +2 -0
  735. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-3MG57Y6I.mjs +2 -0
  736. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-3MQAJ6XX.mjs +2 -0
  737. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-3TUUBJPP.mjs +2 -0
  738. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-45Z34LBQ.mjs +140 -0
  739. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-4GJE2IXL.mjs +2 -0
  740. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-4HLOIRQU.mjs +2 -0
  741. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-55PSJJ75.mjs +2 -0
  742. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-5OTFTK2Y.mjs +2 -0
  743. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-7OFWNBZN.mjs +2 -0
  744. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-7R2IP55E.mjs +2 -0
  745. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-7SBOEN6U.mjs +24 -0
  746. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-A35CQWF4.mjs +2 -0
  747. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-A3ZCURGS.mjs +11 -0
  748. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-BC2LX3QU.mjs +2 -0
  749. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-C2Z26E6U.mjs +2 -0
  750. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-CHJGU2RU.mjs +2 -0
  751. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-D4LGE7UI.mjs +2 -0
  752. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-D5OUJS46.mjs +2 -0
  753. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-D6RZM5OT.mjs +2 -0
  754. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-DOK2R3GV.mjs +2 -0
  755. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-EAHVOUKK.mjs +2 -0
  756. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-FZUNFGZV.mjs +2 -0
  757. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-GGBPBQ6D.mjs +2 -0
  758. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-HFDX2GP6.mjs +2 -0
  759. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-HZ2NRMAG.mjs +2 -0
  760. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-IJKPDKXC.mjs +2 -0
  761. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-JEOOTEUX.mjs +2 -0
  762. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-JF3E72HZ.mjs +2 -0
  763. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-KRHOCS3C.mjs +2 -0
  764. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-LG5MJS2A.mjs +2 -0
  765. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-ML4PMB7C.mjs +2 -0
  766. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-MSCWMPU5.mjs +63 -0
  767. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-NJOFXS7P.mjs +137 -0
  768. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-NORNV3B2.mjs +2 -0
  769. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-PBU2HSKP.mjs +2 -0
  770. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-PG6LGVVW.mjs +2 -0
  771. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-PGYGDY3J.mjs +2 -0
  772. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-QFUQW6LE.mjs +2 -0
  773. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-QI32NI7M.mjs +2 -0
  774. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-R4HD7XOO.mjs +2 -0
  775. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-REHSM3G2.mjs +2 -0
  776. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-S22YDVTM.mjs +2 -0
  777. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-S5P4ZNUQ.mjs +2 -0
  778. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-SCK2RF6V.mjs +2 -0
  779. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-SWFLYM3O.mjs +2 -0
  780. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-TA7RY5MY.mjs +2 -0
  781. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-TM5WG7GR.mjs +2 -0
  782. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-TMVJHK37.mjs +2 -0
  783. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-TPDQAH7C.mjs +2 -0
  784. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-U2KO7ULM.mjs +2 -0
  785. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-U3ISMYJU.mjs +2 -0
  786. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-UKSDAS73.mjs +2 -0
  787. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-UNTPHSZO.mjs +2 -0
  788. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-V4MIRRUB.mjs +2 -0
  789. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-WNXOXX3Z.mjs +2 -0
  790. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-WQGTDRK7.mjs +2 -0
  791. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-WZJIRYT6.mjs +2 -0
  792. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-XED4KYQL.mjs +2 -0
  793. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-XEXCFKHI.mjs +2 -0
  794. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-XJJFARY4.mjs +2 -0
  795. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-XQOFL3K3.mjs +2 -0
  796. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-YAWUSDPM.mjs +2 -0
  797. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-YEUY7TMM.mjs +2 -0
  798. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-Z5X23XXT.mjs +2 -0
  799. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-Z7H2BHYQ.mjs +2 -0
  800. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-ZOGCYGYB.mjs +2 -0
  801. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/lifecycle-records.mjs +2 -0
  802. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ar.mjs +2 -0
  803. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-az.mjs +2 -0
  804. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-be.mjs +2 -0
  805. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-bg.mjs +2 -0
  806. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-bn.mjs +2 -0
  807. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ca.mjs +2 -0
  808. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ckb.mjs +2 -0
  809. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-cs.mjs +2 -0
  810. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-da.mjs +2 -0
  811. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-de.mjs +2 -0
  812. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-el.mjs +2 -0
  813. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-en.mjs +2 -0
  814. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-eo.mjs +2 -0
  815. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-es.mjs +2 -0
  816. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-fa.mjs +2 -0
  817. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-fi.mjs +2 -0
  818. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-fr-CA.mjs +2 -0
  819. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-fr.mjs +2 -0
  820. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-gu.mjs +2 -0
  821. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-he.mjs +2 -0
  822. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-hi.mjs +2 -0
  823. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-hr.mjs +2 -0
  824. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-hu.mjs +2 -0
  825. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-hy.mjs +2 -0
  826. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-id.mjs +2 -0
  827. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-is.mjs +2 -0
  828. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-it.mjs +2 -0
  829. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ja.mjs +2 -0
  830. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ka.mjs +2 -0
  831. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-kh.mjs +2 -0
  832. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-km.mjs +2 -0
  833. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-kn.mjs +2 -0
  834. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ko.mjs +2 -0
  835. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-lt.mjs +2 -0
  836. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-mk.mjs +2 -0
  837. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ms.mjs +2 -0
  838. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ne.mjs +2 -0
  839. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-nl.mjs +2 -0
  840. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-nn.mjs +2 -0
  841. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-no.mjs +2 -0
  842. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ota.mjs +2 -0
  843. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-pl.mjs +2 -0
  844. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ps.mjs +2 -0
  845. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-pt-BR.mjs +2 -0
  846. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-pt.mjs +2 -0
  847. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ro.mjs +2 -0
  848. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ru.mjs +2 -0
  849. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-sk.mjs +2 -0
  850. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-sl.mjs +2 -0
  851. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-sv.mjs +2 -0
  852. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ta.mjs +2 -0
  853. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-tg.mjs +2 -0
  854. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-th.mjs +2 -0
  855. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-tk.mjs +2 -0
  856. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-tr.mjs +2 -0
  857. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ua.mjs +2 -0
  858. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-uk.mjs +2 -0
  859. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ur.mjs +2 -0
  860. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-uz.mjs +2 -0
  861. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-vi.mjs +2 -0
  862. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-yo.mjs +2 -0
  863. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-zh-CN.mjs +2 -0
  864. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-zh-TW.mjs +2 -0
  865. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/manifest.json +565 -0
  866. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/native-authority.mjs +2 -0
  867. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/proof.mjs +2 -0
  868. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/run-records.mjs +2 -0
  869. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/yaml-runtime.mjs +2 -0
  870. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/zod-runtime.mjs +2 -0
  871. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-schema.mjs +2 -0
  872. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof.test.mjs +79 -0
  873. package/templates/.agents/skills/zaip-skill-github-setup/SKILL.md +14 -11
  874. package/templates/.agents/skills/zaip-skill-github-setup/references/bounded-setup.md +42 -0
  875. package/templates/.agents/skills/zaip-skill-github-setup/scripts/setup.mjs +365 -0
  876. package/templates/.agents/skills/zaip-skill-github-setup-ssh-folder/SKILL.md +13 -3
  877. package/templates/.agents/skills/zaip-skill-github-setup-ssh-folder/references/operational-procedure.md +4 -4
  878. package/templates/.agents/skills/zaip-skill-google-ads-conversions/SKILL.md +18 -0
  879. package/templates/.agents/skills/zaip-skill-google-ads-conversions/agents/openai.yaml +4 -0
  880. package/templates/.agents/skills/zaip-skill-google-ads-conversions/references/implementation.md +61 -0
  881. package/templates/.agents/skills/zaip-skill-google-analytics/SKILL.md +24 -0
  882. package/templates/.agents/skills/zaip-skill-google-analytics/agents/openai.yaml +4 -0
  883. package/templates/.agents/skills/zaip-skill-google-analytics/references/implementation.md +64 -0
  884. package/templates/.agents/skills/zaip-skill-google-tag-manager/SKILL.md +24 -0
  885. package/templates/.agents/skills/zaip-skill-google-tag-manager/agents/openai.yaml +4 -0
  886. package/templates/.agents/skills/zaip-skill-google-tag-manager/references/implementation.md +71 -0
  887. package/templates/.agents/skills/zaip-skill-google-tag-manager/references/operator-checklist.md +51 -0
  888. package/templates/.agents/skills/zaip-skill-google-tag-manager/references/operator-fixtures.json +93 -0
  889. package/templates/.agents/skills/zaip-skill-google-tag-manager/scripts/check-runbook-links.mjs +103 -0
  890. package/templates/.agents/skills/zaip-skill-google-tag-manager/scripts/google-runbooks.test.mjs +247 -0
  891. package/templates/.agents/skills/zaip-skill-google-tag-manager/scripts/operator-model.mjs +221 -0
  892. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/SKILL.md +8 -2
  893. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/autonomous-cloud-inputs.example.json +3 -3
  894. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/autonomous-runner.md +4 -2
  895. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/cloudflare-agent-setup.md +23 -0
  896. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/cloudflare-dns.md +36 -0
  897. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/guia-iniciante-hostinger-vps.md +4 -4
  898. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/operational-contract.md +3 -3
  899. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/vps-onboarding.md +97 -0
  900. package/templates/.agents/skills/zaip-skill-image-optimization/SKILL.md +31 -0
  901. package/templates/.agents/skills/zaip-skill-image-optimization/agents/openai.yaml +4 -0
  902. package/templates/.agents/skills/zaip-skill-image-optimization/references/adapters.md +36 -0
  903. package/templates/.agents/skills/zaip-skill-image-optimization/references/pipeline.md +35 -0
  904. package/templates/.agents/skills/zaip-skill-image-optimization/scripts/images.mjs +370 -0
  905. package/templates/.agents/skills/zaip-skill-image-optimization/scripts/images.test.mjs +385 -0
  906. package/templates/.agents/skills/zaip-skill-infisical/SKILL.md +20 -0
  907. package/templates/.agents/skills/zaip-skill-infisical/agents/openai.yaml +4 -0
  908. package/templates/.agents/skills/zaip-skill-infisical/assets/compose.yaml +62 -0
  909. package/templates/.agents/skills/zaip-skill-infisical/assets/terraform/infisical.tf +57 -0
  910. package/templates/.agents/skills/zaip-skill-infisical/references/credential-workflow.md +88 -0
  911. package/templates/.agents/skills/zaip-skill-infisical/references/first-initialization.md +51 -0
  912. package/templates/.agents/skills/zaip-skill-infisical/references/security-and-edition.md +19 -0
  913. package/templates/.agents/skills/zaip-skill-infisical/references/self-hosting.md +71 -0
  914. package/templates/.agents/skills/zaip-skill-infisical/references/terraform.md +54 -0
  915. package/templates/.agents/skills/zaip-skill-infisical/scripts/prepare-self-host.mjs +92 -0
  916. package/templates/.agents/skills/zaip-skill-infisical/scripts/prepare-self-host.test.mjs +69 -0
  917. package/templates/.agents/skills/zaip-skill-infisical/scripts/preview-terraform.mjs +70 -0
  918. package/templates/.agents/skills/zaip-skill-infisical/scripts/preview-terraform.test.mjs +51 -0
  919. package/templates/.agents/skills/zaip-skill-infisical/scripts/terraform-plan-integration.test.mjs +83 -0
  920. package/templates/.agents/skills/zaip-skill-landing-page-forms/SKILL.md +37 -0
  921. package/templates/.agents/skills/zaip-skill-landing-page-forms/agents/openai.yaml +4 -0
  922. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/accessibility.md +29 -0
  923. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/contact-then-qualification.example.json +83 -0
  924. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/contracts.md +70 -0
  925. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/examples.md +21 -0
  926. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/journey.md +30 -0
  927. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/multistep.example.json +84 -0
  928. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/single-screen.example.json +76 -0
  929. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/verification.md +24 -0
  930. package/templates/.agents/skills/zaip-skill-landing-page-forms/scripts/validate-plan.mjs +306 -0
  931. package/templates/.agents/skills/zaip-skill-landing-page-forms/scripts/validate-plan.test.mjs +183 -0
  932. package/templates/.agents/skills/zaip-skill-lead-measurement/SKILL.md +32 -0
  933. package/templates/.agents/skills/zaip-skill-lead-measurement/agents/openai.yaml +4 -0
  934. package/templates/.agents/skills/zaip-skill-lead-measurement/references/architecture.md +51 -0
  935. package/templates/.agents/skills/zaip-skill-lead-measurement/references/authority.md +49 -0
  936. package/templates/.agents/skills/zaip-skill-lead-measurement/references/bant-contract.md +36 -0
  937. package/templates/.agents/skills/zaip-skill-lead-measurement/references/consent-contract.md +48 -0
  938. package/templates/.agents/skills/zaip-skill-lead-measurement/references/delivery-contract.md +65 -0
  939. package/templates/.agents/skills/zaip-skill-lead-measurement/references/event-contract.md +47 -0
  940. package/templates/.agents/skills/zaip-skill-lead-measurement/references/examples/escola.json +180 -0
  941. package/templates/.agents/skills/zaip-skill-lead-measurement/references/examples/moradigna-regression.json +158 -0
  942. package/templates/.agents/skills/zaip-skill-lead-measurement/references/examples/solar.json +165 -0
  943. package/templates/.agents/skills/zaip-skill-lead-measurement/references/identity-contract.md +53 -0
  944. package/templates/.agents/skills/zaip-skill-lead-measurement/references/implementation-plan.md +60 -0
  945. package/templates/.agents/skills/zaip-skill-lead-measurement/references/kommo-contract.md +83 -0
  946. package/templates/.agents/skills/zaip-skill-lead-measurement/references/meta-mapping.md +28 -0
  947. package/templates/.agents/skills/zaip-skill-lead-measurement/references/migration.md +65 -0
  948. package/templates/.agents/skills/zaip-skill-lead-measurement/references/operations.md +125 -0
  949. package/templates/.agents/skills/zaip-skill-lead-measurement/references/persistence-reference.md +65 -0
  950. package/templates/.agents/skills/zaip-skill-lead-measurement/references/questionnaire-v2.schema.json +136 -0
  951. package/templates/.agents/skills/zaip-skill-lead-measurement/references/synthetic-config.json +24 -0
  952. package/templates/.agents/skills/zaip-skill-lead-measurement/references/synthetic-event.json +19 -0
  953. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/check-questionnaire.mjs +314 -0
  954. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/check-questionnaire.test.mjs +338 -0
  955. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent-cases-core.mjs +144 -0
  956. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent-cases-privacy.mjs +183 -0
  957. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent-fixtures.mjs +60 -0
  958. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent-rollback-support.mjs +114 -0
  959. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent.mjs +222 -0
  960. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent.test.mjs +294 -0
  961. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-ledger.mjs +179 -0
  962. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-case-fixtures.mjs +118 -0
  963. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-cases.mjs +6 -0
  964. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-contract-cases.mjs +218 -0
  965. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-contract.mjs +182 -0
  966. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-proof-support.mjs +104 -0
  967. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-proof.mjs +272 -0
  968. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-state-cases.mjs +248 -0
  969. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2.mjs +234 -0
  970. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/lead-measurement.mjs +277 -0
  971. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/lead-measurement.test.mjs +288 -0
  972. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/questionnaire-ast-cases.mjs +127 -0
  973. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/questionnaire-test-support.mjs +25 -0
  974. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/questionnaire-validation.mjs +155 -0
  975. package/templates/.agents/skills/zaip-skill-lifecycle-closure/SKILL.md +30 -2
  976. package/templates/.agents/skills/zaip-skill-lifecycle-closure/references/empty-usage-lock.md +56 -0
  977. package/templates/.agents/skills/zaip-skill-lifecycle-closure/references/late-finalization.md +158 -0
  978. package/templates/.agents/skills/zaip-skill-lifecycle-closure/references/local-catalog-closure.md +37 -0
  979. package/templates/.agents/skills/zaip-skill-lifecycle-closure/references/post-publication-task-first.md +1 -1
  980. package/templates/.agents/skills/zaip-skill-lifecycle-closure/scripts/empty-lock-native.cs +113 -0
  981. package/templates/.agents/skills/zaip-skill-lifecycle-closure/scripts/empty-lock-native.ps1 +9 -0
  982. package/templates/.agents/skills/zaip-skill-lifecycle-closure/scripts/recover-empty-usage-lock.mjs +194 -0
  983. package/templates/.agents/skills/zaip-skill-local-credentials/SKILL.md +27 -0
  984. package/templates/.agents/skills/zaip-skill-maintenance-enter/SKILL.md +8 -6
  985. package/templates/.agents/skills/zaip-skill-maintenance-enter/scripts/maintenance.mjs +4 -4
  986. package/templates/.agents/skills/zaip-skill-maintenance-enter/scripts/maintenance.test.mjs +2 -2
  987. package/templates/.agents/skills/zaip-skill-maintenance-exit/SKILL.md +3 -3
  988. package/templates/.agents/skills/zaip-skill-marketing/SKILL.md +11 -0
  989. package/templates/.agents/skills/zaip-skill-marketing/references/search-content.md +17 -0
  990. package/templates/.agents/skills/zaip-skill-meta-conversions/SKILL.md +23 -0
  991. package/templates/.agents/skills/zaip-skill-meta-conversions/agents/openai.yaml +4 -0
  992. package/templates/.agents/skills/zaip-skill-meta-conversions/references/implementation.md +88 -0
  993. package/templates/.agents/skills/zaip-skill-meta-conversions/references/synthetic-meta.json +27 -0
  994. package/templates/.agents/skills/zaip-skill-meta-conversions/scripts/check-meta-links.mjs +88 -0
  995. package/templates/.agents/skills/zaip-skill-meta-conversions/scripts/meta-model.mjs +369 -0
  996. package/templates/.agents/skills/zaip-skill-meta-conversions/scripts/meta-model.test.mjs +394 -0
  997. package/templates/.agents/skills/zaip-skill-performance-engineering/SKILL.md +26 -1
  998. package/templates/.agents/skills/zaip-skill-performance-engineering/references/astro-islands.md +41 -0
  999. package/templates/.agents/skills/zaip-skill-performance-engineering/references/controlled-runner.md +38 -0
  1000. package/templates/.agents/skills/zaip-skill-performance-engineering/references/google-diagnostics.md +46 -0
  1001. package/templates/.agents/skills/zaip-skill-performance-engineering/references/report-contract.md +99 -0
  1002. package/templates/.agents/skills/zaip-skill-performance-engineering/references/site-budgets.json +25 -0
  1003. package/templates/.agents/skills/zaip-skill-performance-engineering/references/site-performance.md +83 -0
  1004. package/templates/.agents/skills/zaip-skill-performance-engineering/references/third-party-performance.md +57 -0
  1005. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/assess-reports.mjs +42 -0
  1006. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/capture-site.mjs +155 -0
  1007. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/local-preview.mjs +84 -0
  1008. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/performance-report.mjs +142 -0
  1009. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/performance-report.test.mjs +122 -0
  1010. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/report-fixtures.test-support.mjs +51 -0
  1011. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/report-import.mjs +209 -0
  1012. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/report-import.test.mjs +164 -0
  1013. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/run-lighthouse.mjs +151 -0
  1014. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/series-gate.mjs +225 -0
  1015. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/series-gate.test.mjs +143 -0
  1016. package/templates/.agents/skills/zaip-skill-qa/SKILL.md +54 -0
  1017. package/templates/.agents/skills/zaip-skill-qa/agents/openai.yaml +4 -0
  1018. package/templates/.agents/skills/zaip-skill-qa/references/host-protocol.md +125 -0
  1019. package/templates/.agents/skills/zaip-skill-qa/references/landing-page-forms.md +23 -0
  1020. package/templates/.agents/skills/zaip-skill-qa/references/proof-adapters.md +92 -0
  1021. package/templates/.agents/skills/zaip-skill-qa/references/scenarios.md +73 -0
  1022. package/templates/.agents/skills/zaip-skill-qa/references/seo-geo.md +33 -0
  1023. package/templates/.agents/skills/zaip-skill-qa/references/site-performance.md +20 -0
  1024. package/templates/.agents/skills/zaip-skill-qa/scripts/observe-dashboard-ui.mjs +152 -0
  1025. package/templates/.agents/skills/zaip-skill-qa/scripts/observe-dashboard-ui.test.mjs +65 -0
  1026. package/templates/.agents/skills/zaip-skill-qa/scripts/qa-contract.test.mjs +203 -0
  1027. package/templates/.agents/skills/zaip-skill-qa/scripts/run-behavior-tests.mjs +369 -0
  1028. package/templates/.agents/skills/zaip-skill-qa/scripts/run-behavior-tests.test.mjs +168 -0
  1029. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/SKILL.md +33 -0
  1030. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-local-telemetry.mjs +42 -62
  1031. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-native-window.mjs +115 -0
  1032. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-native-window.test.mjs +123 -0
  1033. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-optional-timing.test.mjs +34 -0
  1034. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-reviewed-pairs-fixture.mjs +130 -0
  1035. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-deduplicate-apply.mjs +106 -0
  1036. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.mjs +22 -45
  1037. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.test.mjs +0 -24
  1038. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-remeasurement.mjs +73 -9
  1039. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-reviewed-order.mjs +48 -0
  1040. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-reviewed-pairs.mjs +255 -0
  1041. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-reviewed-pairs.test.mjs +329 -0
  1042. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-token-snapshots.mjs +49 -0
  1043. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-token-snapshots.test.mjs +33 -0
  1044. package/templates/.agents/skills/zaip-skill-refactor-landing-page/SKILL.md +6 -0
  1045. package/templates/.agents/skills/zaip-skill-release-qualification/SKILL.md +26 -1
  1046. package/templates/.agents/skills/zaip-skill-release-qualification/references/frozen-task-recovery.md +47 -0
  1047. package/templates/.agents/skills/zaip-skill-release-qualification/references/local-catalog.md +136 -0
  1048. package/templates/.agents/skills/zaip-skill-release-qualification/references/local-preparation.md +7 -5
  1049. package/templates/.agents/skills/zaip-skill-release-qualification/references/remote-validation.md +147 -0
  1050. package/templates/.agents/skills/zaip-skill-sales-methodology/SKILL.md +1 -0
  1051. package/templates/.agents/skills/zaip-skill-sales-methodology/references/bant-discovery.md +28 -0
  1052. package/templates/.agents/skills/zaip-skill-screenshot-intake/SKILL.md +40 -0
  1053. package/templates/.agents/skills/zaip-skill-screenshot-intake/agents/openai.yaml +6 -0
  1054. package/templates/.agents/skills/zaip-skill-screenshot-intake/references/request-example.json +36 -0
  1055. package/templates/.agents/skills/zaip-skill-screenshot-intake/references/runtime-workflow.md +110 -0
  1056. package/templates/.agents/skills/zaip-skill-search-observability/SKILL.md +27 -0
  1057. package/templates/.agents/skills/zaip-skill-search-observability/agents/openai.yaml +4 -0
  1058. package/templates/.agents/skills/zaip-skill-search-observability/references/report-template.md +32 -0
  1059. package/templates/.agents/skills/zaip-skill-search-observability/references/workflow.md +56 -0
  1060. package/templates/.agents/skills/zaip-skill-search-observability/scripts/search-report.mjs +139 -0
  1061. package/templates/.agents/skills/zaip-skill-search-observability/scripts/search-report.test.mjs +72 -0
  1062. package/templates/.agents/skills/zaip-skill-setup/SKILL.md +51 -44
  1063. package/templates/.agents/skills/zaip-skill-setup/agents/openai.yaml +1 -1
  1064. package/templates/.agents/skills/zaip-skill-setup/references/basic-onboarding.md +41 -0
  1065. package/templates/.agents/skills/zaip-skill-setup/references/codex-activation.md +40 -0
  1066. package/templates/.agents/skills/zaip-skill-setup/scripts/onboarding-contract.test.mjs +41 -0
  1067. package/templates/.agents/skills/zaip-skill-spec/SKILL.md +1 -0
  1068. package/templates/.agents/skills/zaip-skill-sqlite-read-model/SKILL.md +4 -3
  1069. package/templates/.agents/skills/zaip-skill-task/SKILL.md +1 -0
  1070. package/templates/.agents/skills/zaip-skill-task/references/commit-policy.md +1 -1
  1071. package/templates/.agents/skills/zaip-skill-testing-strategy/SKILL.md +18 -0
  1072. package/templates/.agents/skills/zaip-skill-testing-strategy/references/frontend-impact.md +81 -0
  1073. package/templates/.agents/skills/zaip-skill-testing-strategy/references/verification-adoption.md +31 -0
  1074. package/templates/.agents/skills/zaip-skill-testing-strategy/scripts/validation-plan.mjs +168 -0
  1075. package/templates/.agents/skills/zaip-skill-testing-strategy/scripts/validation-plan.test.mjs +146 -0
  1076. package/templates/.agents/skills/zaip-skill-tool-setup/scripts/tool-state.mjs +1 -1
  1077. package/templates/.agents/skills/zaip-skill-use-connectors/SKILL.md +8 -0
  1078. package/templates/.agents/skills/zaip-skill-use-connectors/scripts/select-connector.mjs +73 -0
  1079. package/templates/.agents/skills/zaip-skill-use-connectors/scripts/select-connector.test.mjs +85 -0
  1080. package/templates/.agents/skills/zaip-skill-visual-report/SKILL.md +41 -0
  1081. package/templates/.agents/skills/zaip-skill-visual-report/agents/openai.yaml +6 -0
  1082. package/templates/.agents/skills/zaip-skill-visual-report/references/fidelity-proof.md +56 -0
  1083. package/templates/.agents/skills/zaip-skill-visual-report/references/intake-state.md +64 -0
  1084. package/templates/.agents/skills/zaip-skill-visual-report/references/source-contract.md +79 -0
  1085. package/templates/.agents/skills/zaip-skill-visual-report/references/synthesis-template.md +67 -0
  1086. package/templates/.agents/skills/zaip-skill-visual-report/references/visual-contract.json +40 -0
  1087. package/templates/.agents/skills/zaip-skill-website-readiness/SKILL.md +73 -17
  1088. package/templates/.agents/skills/zaip-skill-website-readiness/agents/openai.yaml +2 -2
  1089. package/templates/.agents/skills/zaip-skill-website-readiness/references/capability-checklist.md +8 -4
  1090. package/templates/.agents/skills/zaip-skill-website-readiness/references/change-discovery.md +22 -0
  1091. package/templates/.agents/skills/zaip-skill-website-readiness/references/content-and-agents.md +25 -0
  1092. package/templates/.agents/skills/zaip-skill-website-readiness/references/crawler-policy.md +35 -0
  1093. package/templates/.agents/skills/zaip-skill-website-readiness/references/schema-matrix.md +23 -0
  1094. package/templates/.agents/skills/zaip-skill-website-readiness/references/search-evidence.md +36 -0
  1095. package/templates/.agents/skills/zaip-skill-website-readiness/references/site-quality.example.json +14 -0
  1096. package/templates/.agents/skills/zaip-skill-website-readiness/references/site-quality.md +109 -0
  1097. package/templates/.agents/skills/zaip-skill-website-readiness/references/site-validation.md +60 -0
  1098. package/templates/.agents/skills/zaip-skill-website-readiness/references/sources.md +37 -0
  1099. package/templates/.agents/skills/zaip-skill-website-readiness/references/visual-preservation.md +84 -0
  1100. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/agent-content.mjs +116 -0
  1101. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/agent-content.test.mjs +83 -0
  1102. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/audit-site.mjs +136 -0
  1103. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/html-facts.mjs +56 -0
  1104. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/index-directives.mjs +29 -0
  1105. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/quality-plan.mjs +62 -0
  1106. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/robots-policy.mjs +63 -0
  1107. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/search-policy.test.mjs +183 -0
  1108. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/site-audit.mjs +243 -0
  1109. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/site-audit.test.mjs +287 -0
  1110. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/sitemap-policy.mjs +111 -0
  1111. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/verify-site-design.mjs +130 -0
  1112. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/visual-preservation.mjs +160 -0
  1113. package/templates/.agents/skills/zaip-skill-worktree-recovery/SKILL.md +70 -0
  1114. package/templates/.agents/skills/zaip-skill-worktree-recovery/agents/openai.yaml +4 -0
  1115. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/complete-preservation.md +70 -0
  1116. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/default-policy.md +53 -0
  1117. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/lifecycle-roots.md +106 -0
  1118. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/metadata-overlay.md +45 -0
  1119. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/procedure.md +49 -0
  1120. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/complete-preservation.mjs +252 -0
  1121. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-local-archive.mjs +162 -0
  1122. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-local-git.mjs +111 -0
  1123. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-acl.ps1 +37 -0
  1124. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-activate.ps1 +66 -0
  1125. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-alias.mjs +202 -0
  1126. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-batches.mjs +88 -0
  1127. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-copy-session.mjs +84 -0
  1128. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-cutover.mjs +350 -0
  1129. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-files.mjs +109 -0
  1130. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-generation-posix.mjs +194 -0
  1131. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-generation.mjs +173 -0
  1132. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-journal.mjs +88 -0
  1133. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-layout.mjs +102 -0
  1134. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-lock.mjs +106 -0
  1135. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-migration.mjs +234 -0
  1136. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-observation-tail.mjs +148 -0
  1137. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-permissions.mjs +52 -0
  1138. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-plan.mjs +143 -0
  1139. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-preparation.mjs +110 -0
  1140. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-process-start.ps1 +7 -0
  1141. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-quiescence.ps1 +11 -0
  1142. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-receipt-lease.mjs +67 -0
  1143. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-reuse.mjs +68 -0
  1144. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-telemetry-version.mjs +187 -0
  1145. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/git-process.mjs +85 -0
  1146. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/metadata-overlay.mjs +302 -0
  1147. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/metadata-secrets.mjs +44 -0
  1148. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/migrate-durable-state.mjs +49 -0
  1149. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/recovery.mjs +247 -0
  1150. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/retention-marker.mjs +44 -0
  1151. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/worktree-proof.mjs +148 -0
  1152. package/templates/.agents/tools/api/kommo-crm/README.md +13 -9
  1153. package/templates/.agents/tools/cloud-onboarding-architecture.mjs +273 -0
  1154. package/templates/.agents/tools/cloud-onboarding-bootstrap.test.mjs +176 -0
  1155. package/templates/.agents/tools/cloud-onboarding-configure.mjs +146 -0
  1156. package/templates/.agents/tools/cloud-onboarding-credentials.mjs +279 -0
  1157. package/templates/.agents/tools/cloud-onboarding-files.mjs +190 -0
  1158. package/templates/.agents/tools/cloud-onboarding-files.test.mjs +72 -0
  1159. package/templates/.agents/tools/cloud-onboarding-generation.mjs +161 -0
  1160. package/templates/.agents/tools/cloud-onboarding-generation.test.mjs +129 -0
  1161. package/templates/.agents/tools/cloud-onboarding-policy.mjs +196 -0
  1162. package/templates/.agents/tools/cloud-onboarding-provider.mjs +228 -0
  1163. package/templates/.agents/tools/cloud-onboarding-provider.test.mjs +144 -0
  1164. package/templates/.agents/tools/cloud-onboarding-recovery.test.mjs +306 -0
  1165. package/templates/.agents/tools/cloud-onboarding-ssh.mjs +223 -0
  1166. package/templates/.agents/tools/cloud-onboarding-terraform.mjs +80 -0
  1167. package/templates/.agents/tools/cloud-onboarding-test-fixture.mjs +184 -0
  1168. package/templates/.agents/tools/cloud-onboarding-test-fixtures.mjs +117 -0
  1169. package/templates/.agents/tools/cloud-onboarding.mjs +196 -0
  1170. package/templates/.agents/tools/cloud-onboarding.ssh.integration.test.mjs +391 -0
  1171. package/templates/.agents/tools/cloud-onboarding.test.mjs +237 -0
  1172. package/templates/.agents/tools/cloud-runner-arguments.mjs +37 -0
  1173. package/templates/.agents/tools/cloud-runner-dns.mjs +234 -11
  1174. package/templates/.agents/tools/cloud-runner-dns.test.mjs +256 -0
  1175. package/templates/.agents/tools/cloud-runner-process.mjs +61 -0
  1176. package/templates/.agents/tools/cloud-runner-process.test.mjs +43 -0
  1177. package/templates/.agents/tools/cloud-runner.integration.test.mjs +19 -3
  1178. package/templates/.agents/tools/cloud-runner.mjs +49 -169
  1179. package/templates/.agents/tools/cloud-runner.test.mjs +7 -42
  1180. package/templates/.agents/tools/historical-local-archive.mjs +89 -0
  1181. package/templates/.agents/tools/infisical-bootstrap-windows.test.mjs +12 -0
  1182. package/templates/.agents/tools/infisical-bootstrap.mjs +240 -0
  1183. package/templates/.agents/tools/infisical-bootstrap.test-support.mjs +39 -0
  1184. package/templates/.agents/tools/infisical-bootstrap.test.mjs +193 -0
  1185. package/templates/.agents/tools/infisical-policy.mjs +134 -0
  1186. package/templates/.agents/tools/infisical-runner.mjs +349 -0
  1187. package/templates/.agents/tools/infisical-runner.test.mjs +266 -0
  1188. package/templates/.agents/tools/mcp/infra/cloudflare/README.md +3 -17
  1189. package/templates/.agents/tools/mcp/infra/cloudflare/manifest.yaml +6 -10
  1190. package/templates/.agents/tools/repository-cloud-boundary.test.mjs +41 -0
  1191. package/templates/.agents/tools/repository-policy.mjs +257 -0
  1192. package/templates/.agents/tools/repository-profile.mjs +116 -0
  1193. package/templates/.agents/tools/repository-profile.test.mjs +67 -0
  1194. package/templates/.agents/tools/secret-inventory.mjs +150 -0
  1195. package/templates/.agents/tools/secret-inventory.test.mjs +60 -0
  1196. package/templates/.agents/tools/visual-intake/cli.mjs +72 -0
  1197. package/templates/.agents/tools/visual-intake/fs.mjs +137 -0
  1198. package/templates/.agents/tools/visual-intake/lock.mjs +98 -0
  1199. package/templates/.agents/tools/visual-intake/report.mjs +69 -0
  1200. package/templates/.agents/tools/visual-intake/runtime.mjs +330 -0
  1201. package/templates/.agents/tools/visual-intake/schema.mjs +235 -0
  1202. package/templates/.agents/tools/visual-intake/transaction.mjs +206 -0
  1203. package/templates/.agents/tools/visual-url/browser-cdp.mjs +167 -0
  1204. package/templates/.agents/tools/visual-url/browser-page-evidence.mjs +111 -0
  1205. package/templates/.agents/tools/visual-url/browser-proxy.mjs +194 -0
  1206. package/templates/.agents/tools/visual-url/browser-rendered-sample.mjs +312 -0
  1207. package/templates/.agents/tools/visual-url/browser-source.mjs +398 -0
  1208. package/templates/.agents/tools/visual-url/capture.mjs +119 -0
  1209. package/templates/.agents/tools/visual-url/captured-visual.mjs +301 -0
  1210. package/templates/.agents/tools/visual-url/cli.mjs +29 -0
  1211. package/templates/.agents/tools/visual-url/color-candidates.mjs +161 -0
  1212. package/templates/.agents/tools/visual-url/colors.mjs +98 -0
  1213. package/templates/.agents/tools/visual-url/contrast.mjs +40 -0
  1214. package/templates/.agents/tools/visual-url/css-sample.mjs +109 -0
  1215. package/templates/.agents/tools/visual-url/design-lint.mjs +83 -0
  1216. package/templates/.agents/tools/visual-url/design-score.mjs +217 -0
  1217. package/templates/.agents/tools/visual-url/failure.mjs +56 -0
  1218. package/templates/.agents/tools/visual-url/files.mjs +176 -0
  1219. package/templates/.agents/tools/visual-url/generated-tokens.mjs +369 -0
  1220. package/templates/.agents/tools/visual-url/handoff.mjs +85 -0
  1221. package/templates/.agents/tools/visual-url/icon.mjs +110 -0
  1222. package/templates/.agents/tools/visual-url/local-source.mjs +63 -0
  1223. package/templates/.agents/tools/visual-url/parser.mjs +288 -0
  1224. package/templates/.agents/tools/visual-url/policy.mjs +201 -0
  1225. package/templates/.agents/tools/visual-url/proposal-markdown.mjs +39 -0
  1226. package/templates/.agents/tools/visual-url/proposal.mjs +388 -0
  1227. package/templates/.agents/tools/visual-url/report.mjs +305 -0
  1228. package/templates/.agents/tools/visual-url/runtime.mjs +218 -0
  1229. package/templates/.agents/tools/visual-url/safe-visual-value.mjs +49 -0
  1230. package/templates/.agents/tools/visual-url/transport.mjs +187 -0
  1231. package/templates/.agents/tools/visual-url/visual-model.mjs +393 -0
  1232. package/templates/.agents/zaip-aios/README.md +6 -0
  1233. package/templates/.agents/zaip-aios/VERSION +1 -1
  1234. package/templates/.agents/zaip-aios/guides/06-execucao.md +1 -1
  1235. package/templates/.agents/zaip-aios/guides/16-lifecycle-e-reconciliacao.md +1 -1
  1236. package/templates/.agents/zaip-aios/guides/19-assurance-e-autonomia.md +2 -2
  1237. package/templates/.agents/zaip-aios/guides/20-instalacao-detalhada.md +60 -18
  1238. package/templates/.agents/zaip-aios/guides/26-qualidade-e-release.md +31 -0
  1239. package/templates/.agents/zaip-aios/guides/27-telemetria-git-native.md +2 -2
  1240. package/templates/.agents/zaip-aios/guides/28-lifecycle-completo.md +2 -2
  1241. package/templates/infra/terraform/README.md +2 -0
  1242. package/templates/infra/terraform/infisical.tf +57 -0
  1243. package/templates/infra/terraform/terraform.tfvars.example +5 -0
  1244. package/templates/infra/terraform/variables.tf +1 -1
  1245. package/templates/scripts/validate-cloud-hostinger-contract.mjs +4 -1
  1246. package/templates/template-manifest.json +3856 -1127
  1247. package/templates/.agents/architecture/hostinger-cloudflare-terraform.md +0 -90
  1248. package/templates/.agents/dashboard/apps/frontend/dist/assets/CostCalculationGuidePage-uR-asJv_.js +0 -1
  1249. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-Dr5Cw6py.js +0 -3
  1250. package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-B0Jwz_rk.js +0 -68
  1251. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-CPcBwWeO.js +0 -2
  1252. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-DZhppOIk.css +0 -1
  1253. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Components.stories-kxWwSKin.js +0 -146
  1254. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFilters.stories-Chm_dXV7.js +0 -9
  1255. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFiltersSpecimen-9CaCbGIZ.js +0 -1
  1256. package/templates/.agents/design/apps/catalog/dist/storybook/assets/WorkspaceStatusSpecimen-DQnSS6s9.js +0 -1
  1257. package/templates/.agents/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-Do9sjqiW.js +0 -1
  1258. package/templates/.agents/design/apps/catalog/dist/storybook/assets/iframe-0W0Gj_Gs.css +0 -1
  1259. package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-NrUxok8K.js +0 -1
@@ -0,0 +1,388 @@
1
+ import {
2
+ localLocator,
3
+ localMethods,
4
+ localSourceTypes,
5
+ validateLocalSource,
6
+ } from "./local-source.mjs";
7
+ import {
8
+ defaults,
9
+ displayUrl,
10
+ evidenceLimits,
11
+ replayableUrl,
12
+ safeText,
13
+ timestamp,
14
+ } from "./policy.mjs";
15
+ import { renderDesign } from "./proposal-markdown.mjs";
16
+ import { validateVisualModel } from "./visual-model.mjs";
17
+
18
+ export function provenance(source, selector, method = source.method, viewport = null) {
19
+ return {
20
+ url: source.url === null ? null : displayUrl(source.url),
21
+ ...(source.locator ? { locator: source.locator } : {}),
22
+ selector: safeText(selector, 512),
23
+ viewport,
24
+ observed_at: source.observed_at,
25
+ method,
26
+ source_hash: source.hash,
27
+ };
28
+ }
29
+ export function validate(value) {
30
+ if (
31
+ value?.schema_version !== 1 ||
32
+ !["url", ...localSourceTypes].includes(value.source?.type) ||
33
+ !["partial", "ready"].includes(value.status)
34
+ )
35
+ throw new Error("Invalid proposal schema/status");
36
+ const required = [
37
+ "schema_version",
38
+ "extraction_id",
39
+ "revision",
40
+ "status",
41
+ "central_promotion",
42
+ "source",
43
+ "capabilities",
44
+ "resources",
45
+ "dom",
46
+ "observations",
47
+ "token_candidates",
48
+ "assets",
49
+ "screenshot",
50
+ "limitations",
51
+ ];
52
+ if (
53
+ required.some((key) => !Object.hasOwn(value, key)) ||
54
+ Object.keys(value).some(
55
+ (key) =>
56
+ ![
57
+ ...required,
58
+ "fixture_authorization",
59
+ "host_capture",
60
+ "css_sampling",
61
+ "favicon",
62
+ "local_visual_model",
63
+ "composition",
64
+ ].includes(key),
65
+ ) ||
66
+ !/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$/.test(value.extraction_id) ||
67
+ value.revision !== 1
68
+ )
69
+ throw new Error("Invalid proposal fields/identity/revision");
70
+ const capabilityKeys = [
71
+ "static_reader",
72
+ "adapter_configured",
73
+ "host_capture_supplied",
74
+ "browser_resolved",
75
+ "screenshot_verified",
76
+ "runtime_rendered",
77
+ ];
78
+ if (
79
+ !value.capabilities ||
80
+ Object.keys(value.capabilities).sort().join() !== capabilityKeys.sort().join() ||
81
+ capabilityKeys.some((key) => typeof value.capabilities[key] !== "boolean") ||
82
+ value.capabilities.static_reader !== true
83
+ )
84
+ throw new Error("Invalid proposal capabilities");
85
+ if (
86
+ value.central_promotion !== false ||
87
+ (value.capabilities.runtime_rendered &&
88
+ (!value.capabilities.browser_resolved ||
89
+ value.screenshot?.method !== "local-isolated-cdp" ||
90
+ value.screenshot?.rendering_verified_by_runtime !== true))
91
+ )
92
+ throw new Error(
93
+ "Proposal render requires actual isolated browser evidence; no central promotion",
94
+ );
95
+ if (!/^[a-f0-9]{64}$/.test(value.source.source_hash) || value.source.source_preserved !== false)
96
+ throw new Error("Measured source hash/non-preservation required");
97
+ if (
98
+ value.source.type === "url" &&
99
+ (typeof value.source.url !== "string" || value.source.url !== displayUrl(value.source.url))
100
+ )
101
+ throw new Error("URL source requires an actual safe HTTP/HTTPS URL");
102
+ if (localSourceTypes.includes(value.source.type)) {
103
+ validateLocalSource(value.source);
104
+ if (
105
+ Object.entries(value.capabilities).some(([key, flag]) => key !== "static_reader" && flag) ||
106
+ value.screenshot !== null
107
+ )
108
+ throw new Error("Local source cannot claim rendered/browser capture");
109
+ if (value.local_visual_model !== undefined) validateVisualModel(value.local_visual_model);
110
+ } else if (value.local_visual_model !== undefined || value.composition !== undefined)
111
+ throw new Error("Local model requires a local source");
112
+ for (const key of ["request_url", "final_url"])
113
+ if (value.source[key] !== undefined && replayableUrl(value.source[key]) !== value.source[key])
114
+ throw new Error("Exact safe source URL invalid");
115
+ if (value.css_sampling !== undefined) {
116
+ if (!Array.isArray(value.css_sampling) || value.css_sampling.length > 1024)
117
+ throw new Error("CSS sampling inventory invalid");
118
+ for (const item of value.css_sampling)
119
+ if (
120
+ !item ||
121
+ item.url !== displayUrl(item.url) ||
122
+ !/^[a-f0-9]{64}$/.test(item.source_hash) ||
123
+ ![item.total, item.sampled, item.truncated, item.oversized].every(
124
+ (count) => Number.isSafeInteger(count) && count >= 0,
125
+ ) ||
126
+ item.sampled > defaults.declarations ||
127
+ item.sampled + item.truncated !== item.total ||
128
+ item.oversized > item.total
129
+ )
130
+ throw new Error("CSS sampling counts/provenance invalid");
131
+ }
132
+ if (
133
+ !Array.isArray(value.observations) ||
134
+ !Array.isArray(value.token_candidates) ||
135
+ !Array.isArray(value.limitations)
136
+ )
137
+ throw new Error("Proposal evidence inventory missing");
138
+ if (
139
+ (value.source.url !== null && value.source.url !== displayUrl(value.source.url)) ||
140
+ !Number.isFinite(Date.parse(value.source.observed_at)) ||
141
+ value.observations.length > evidenceLimits.observations ||
142
+ value.token_candidates.length > defaults.declarations
143
+ )
144
+ throw new Error("Proposal source/evidence bounds invalid");
145
+ if (
146
+ !Array.isArray(value.resources) ||
147
+ value.resources.length > defaults.resources ||
148
+ !Array.isArray(value.dom) ||
149
+ value.dom.length > defaults.nodes ||
150
+ !Array.isArray(value.assets) ||
151
+ value.assets.length > defaults.assets
152
+ )
153
+ throw new Error("Proposal resource/DOM/asset bounds invalid");
154
+ for (const item of value.resources)
155
+ if (
156
+ !item ||
157
+ !["html", "css"].includes(item.kind) ||
158
+ item.url !== displayUrl(item.url) ||
159
+ !["static-http-pinned", "browser-DOM", "browser-CSS"].includes(item.method) ||
160
+ (item.method.startsWith("browser-") && !value.capabilities.runtime_rendered) ||
161
+ !/^[a-f0-9]{64}$/.test(item.hash) ||
162
+ !Number.isInteger(item.bytes) ||
163
+ item.bytes < 0 ||
164
+ item.bytes > defaults.bytes ||
165
+ item.source_preserved !== false ||
166
+ !Number.isFinite(Date.parse(item.observed_at))
167
+ )
168
+ throw new Error("Invalid resource provenance");
169
+ for (const item of value.dom) {
170
+ if (!item || !/^dom-\d+$/.test(item.id)) throw new Error("Invalid DOM evidence");
171
+ safeText(item.selector, 512);
172
+ safeText(item.text);
173
+ safeText(item.tag, 128);
174
+ }
175
+ for (const item of value.assets)
176
+ if (item?.fetched !== false || (item.url !== null && item.url !== displayUrl(item.url)))
177
+ throw new Error("Invalid unfetched asset reference");
178
+ for (const item of value.limitations) safeText(item);
179
+ const ids = new Set();
180
+ for (const item of value.observations) {
181
+ if (
182
+ !item ||
183
+ typeof item.id !== "string" ||
184
+ !/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,95}$/.test(item.id) ||
185
+ ids.has(item.id) ||
186
+ !["observed", "inferred", "unknown"].includes(item.kind)
187
+ )
188
+ throw new Error("Invalid observation identity/classification");
189
+ ids.add(item.id);
190
+ safeText(item.subject);
191
+ if (item.value !== null) safeText(item.value);
192
+ if (
193
+ (item.kind === "unknown" && (item.value !== null || !item.reason)) ||
194
+ (item.kind !== "unknown" && !item.value) ||
195
+ (item.kind === "inferred" && !item.reason)
196
+ )
197
+ throw new Error("Observation evidence/reason invalid");
198
+ const p = item.provenance;
199
+ if (p) timestamp(p.observed_at);
200
+ if (
201
+ !p ||
202
+ (p.url === null
203
+ ? !localSourceTypes.includes(value.source.type) || !localLocator(p.locator)
204
+ : p.url !== displayUrl(p.url)) ||
205
+ typeof p.selector !== "string" ||
206
+ !Number.isFinite(Date.parse(p.observed_at)) ||
207
+ !/^[a-f0-9]{64}$/.test(p.source_hash)
208
+ )
209
+ throw new Error("Invalid observation provenance");
210
+ if (p.method === "static-css-declaration" && p.viewport !== null)
211
+ throw new Error("Static declaration cannot claim rendered viewport");
212
+ if (
213
+ ![
214
+ "static-html-tokenization",
215
+ "static-css-declaration",
216
+ "static-reader-capability",
217
+ "host-browser-computed-style",
218
+ "browser-DOM",
219
+ "browser-CSS",
220
+ "browser-computed-style",
221
+ ...localMethods,
222
+ ].includes(p.method) ||
223
+ (p.viewport !== null &&
224
+ (!p.viewport ||
225
+ ![p.viewport.width, p.viewport.height].every(
226
+ (size) => Number.isInteger(size) && size > 0 && size <= 10000,
227
+ )))
228
+ )
229
+ throw new Error("Invalid observation method/viewport");
230
+ if (p.method.startsWith("browser-") && !value.capabilities.runtime_rendered)
231
+ throw new Error("Browser observation requires actual runtime capture");
232
+ if (
233
+ localMethods.includes(p.method) &&
234
+ (!localSourceTypes.includes(value.source.type) || p.url !== null || p.viewport !== null)
235
+ )
236
+ throw new Error("Local observation method requires local source and no rendered viewport");
237
+ if (
238
+ p.method === "host-browser-computed-style" &&
239
+ (!value.capabilities.host_capture_supplied ||
240
+ !value.capabilities.browser_resolved ||
241
+ !p.viewport)
242
+ )
243
+ throw new Error("Host computed style capability/provenance missing");
244
+ }
245
+ for (const item of value.token_candidates)
246
+ if (
247
+ item.kind !== "inferred" ||
248
+ !item.reason ||
249
+ !Array.isArray(item.evidence) ||
250
+ !item.evidence.length ||
251
+ item.evidence.some((id) => !ids.has(id))
252
+ )
253
+ throw new Error("Global token candidate lacks inferred rationale/evidence");
254
+ if (
255
+ value.capabilities.screenshot_verified &&
256
+ (!value.screenshot || !/^[a-f0-9]{64}$/.test(value.screenshot.hash))
257
+ )
258
+ throw new Error("Verified screenshot metadata missing");
259
+ if (
260
+ (value.capabilities.browser_resolved &&
261
+ !value.capabilities.host_capture_supplied &&
262
+ !value.capabilities.runtime_rendered) ||
263
+ (value.capabilities.screenshot_verified &&
264
+ !value.capabilities.host_capture_supplied &&
265
+ !value.capabilities.runtime_rendered) ||
266
+ (value.status === "ready" &&
267
+ (!value.capabilities.browser_resolved || !value.capabilities.screenshot_verified))
268
+ )
269
+ throw new Error("Unsupported ready/capture capability claim");
270
+ if (value.favicon !== undefined) {
271
+ const icon = value.favicon;
272
+ if (
273
+ !icon ||
274
+ icon.status !== "verified" ||
275
+ !["favicon.png", "favicon.jpg", "favicon.ico"].includes(icon.path) ||
276
+ !["image/png", "image/jpeg", "image/x-icon"].includes(icon.mime) ||
277
+ !Number.isInteger(icon.bytes) ||
278
+ icon.bytes < 24 ||
279
+ icon.bytes > 262144 ||
280
+ !/^[a-f0-9]{64}$/.test(icon.hash) ||
281
+ icon.url !== displayUrl(icon.url) ||
282
+ !["declared", "same-origin-fallback"].includes(icon.discovery) ||
283
+ (icon.discovery === "same-origin-fallback" &&
284
+ new URL(icon.url).origin !== new URL(value.source.url).origin) ||
285
+ icon.method !== "static-http-pinned"
286
+ )
287
+ throw new Error("Invalid same-origin verified favicon provenance");
288
+ timestamp(icon.observed_at);
289
+ }
290
+ return value;
291
+ }
292
+ export function build(extractionId, source, parsed, resources, declarations, gaps) {
293
+ const observations = parsed.nodes.map((node, index) => ({
294
+ id: `dom-${index}`,
295
+ kind: "observed",
296
+ subject: "Static markup component",
297
+ value: safeText(
298
+ `${node.tag}${node.role ? ` role=${node.role}` : ""}${node.text ? `: ${node.text}` : ""}`.slice(
299
+ 0,
300
+ 4096,
301
+ ),
302
+ ),
303
+ reason: null,
304
+ provenance: provenance(source, node.selector, "static-html-tokenization"),
305
+ }));
306
+ const token_candidates = [];
307
+ for (const declaration of declarations) {
308
+ const id = `css-${observations.length}`;
309
+ observations.push({
310
+ id,
311
+ kind: "observed",
312
+ subject: "Declared CSS value; not computed style",
313
+ value: safeText(`${declaration.property}: ${declaration.value}`),
314
+ reason: declaration.redacted
315
+ ? "Sensitive substrings or URL query redacted; stored declaration is incomplete"
316
+ : null,
317
+ provenance: {
318
+ url: declaration.source_url,
319
+ selector: declaration.selector,
320
+ viewport: null,
321
+ observed_at: declaration.observed_at,
322
+ method: declaration.method,
323
+ source_hash: declaration.source_hash,
324
+ },
325
+ });
326
+ if (
327
+ /^(?:--|color|background|font|border|padding|margin|gap|width|height)/.test(
328
+ declaration.property,
329
+ )
330
+ )
331
+ token_candidates.push({
332
+ property: declaration.property,
333
+ value: declaration.value,
334
+ kind: "inferred",
335
+ reason:
336
+ "Declared property is a candidate only; it does not establish effective rendered style or a global design token",
337
+ evidence: [id],
338
+ });
339
+ }
340
+ observations.push({
341
+ id: "unknown-render",
342
+ kind: "unknown",
343
+ subject: "Rendered styles, viewport, interactions and exact fonts",
344
+ value: null,
345
+ reason: "Static reader does not execute browser scripts or compute CSS cascade/layout",
346
+ provenance: provenance(source, "document", "static-reader-capability"),
347
+ });
348
+ return {
349
+ schema_version: 1,
350
+ extraction_id: extractionId,
351
+ revision: 1,
352
+ status: "partial",
353
+ central_promotion: false,
354
+ source: {
355
+ type: "url",
356
+ url: displayUrl(source.url),
357
+ observed_at: source.observed_at,
358
+ source_hash: source.hash,
359
+ source_preserved: false,
360
+ },
361
+ capabilities: {
362
+ static_reader: true,
363
+ adapter_configured: false,
364
+ host_capture_supplied: false,
365
+ browser_resolved: false,
366
+ screenshot_verified: false,
367
+ runtime_rendered: false,
368
+ },
369
+ resources,
370
+ dom: parsed.nodes,
371
+ observations,
372
+ token_candidates,
373
+ assets: parsed.assets,
374
+ screenshot: null,
375
+ limitations: [
376
+ ...parsed.limitations,
377
+ ...gaps,
378
+ "Assets referenced only; no image/font copies fetched",
379
+ "Sensitive text, local paths, credentials and URL queries are redacted; stored values may be incomplete",
380
+ "Raw HTML/CSS not saved; hashes identify received bytes, sanitized normalized evidence is retained",
381
+ "Global tokens and faithful fidelity require separately authorized verification; no central promotion",
382
+ ],
383
+ };
384
+ }
385
+ export function design(value) {
386
+ validate(value);
387
+ return renderDesign(value);
388
+ }
@@ -0,0 +1,305 @@
1
+ import { normalizeColor, resolveVariables } from "./colors.mjs";
2
+ import { localDeclarationMethods } from "./local-source.mjs";
3
+ import { safeText } from "./policy.mjs";
4
+ import { visualModel } from "./visual-model.mjs";
5
+
6
+ export const reportMethod = "css-evidence-v1";
7
+ const rounded = (value) => Math.round(value * 10000) / 10000;
8
+ export function buildReport(proposal) {
9
+ const declarations = proposal.observations
10
+ .filter((item) =>
11
+ ["static-css-declaration", "browser-CSS", ...localDeclarationMethods].includes(
12
+ item.provenance.method,
13
+ ),
14
+ )
15
+ .map((item) => {
16
+ const split = item.value.indexOf(":");
17
+ return {
18
+ property: item.value.slice(0, split).trim(),
19
+ value: item.value.slice(split + 1).trim(),
20
+ id: item.id,
21
+ selector: item.provenance.selector,
22
+ provenance: item.provenance,
23
+ redacted: item.reason !== null,
24
+ };
25
+ });
26
+ const defaults = new Map(),
27
+ contexts = new Map();
28
+ for (const item of declarations) {
29
+ if (!item.property.startsWith("--") || item.redacted) continue;
30
+ if (!contexts.has(item.selector)) contexts.set(item.selector, new Map());
31
+ contexts.get(item.selector).set(item.property, item.value);
32
+ if (/^(?::root|html)$/.test(item.selector)) defaults.set(item.property, item.value);
33
+ }
34
+ const colors = [],
35
+ typography = [],
36
+ spacing = [],
37
+ radii = [];
38
+ let colorTotal = 0,
39
+ colorResolved = 0;
40
+ const values = [];
41
+ function add(list, item, normalized, category) {
42
+ values.push(`${category}:${normalized}`);
43
+ const existing = list.find(
44
+ (row) => row.value === normalized && (category === "color" || row.property === item.property),
45
+ );
46
+ if (existing) {
47
+ existing.occurrences++;
48
+ if (existing.evidence.length < 16) existing.evidence.push(item.id);
49
+ } else if (list.length < 64)
50
+ list.push({
51
+ value: normalized,
52
+ declared_value: safeText(item.value.slice(0, 512)),
53
+ property: item.property,
54
+ kind: "inferred",
55
+ method: "bounded-static-declaration-resolution",
56
+ occurrences: 1,
57
+ evidence: [item.id],
58
+ provenance: item.provenance,
59
+ });
60
+ }
61
+ for (const item of declarations) {
62
+ const lookup = (key) => contexts.get(item.selector)?.get(key) ?? defaults.get(key);
63
+ const resolved = item.redacted ? null : resolveVariables(item.value, lookup);
64
+ if (
65
+ /color|background|fill|stroke|(?:^|-)primary|accent|foreground|muted/.test(item.property) ||
66
+ /^(?:#|rgba?\(|hsla?\()/i.test(item.value)
67
+ ) {
68
+ colorTotal++;
69
+ const normalized = resolved === null ? null : normalizeColor(resolved);
70
+ if (normalized) {
71
+ colorResolved++;
72
+ add(colors, item, normalized, "color");
73
+ }
74
+ }
75
+ if (resolved === null) continue;
76
+ if (/(?:^|-)font(?:-|$)|typography|line-height|letter-spacing/.test(item.property))
77
+ add(typography, item, safeText(resolved.slice(0, 512)), "type");
78
+ if (/padding|margin|gap|spacing/.test(item.property))
79
+ add(spacing, item, safeText(resolved.slice(0, 512)), "spacing");
80
+ if (/radius/.test(item.property)) add(radii, item, safeText(resolved.slice(0, 512)), "radius");
81
+ }
82
+ const samplingRows = proposal.css_sampling ?? [];
83
+ const total =
84
+ samplingRows.length || proposal.source.type === "url"
85
+ ? samplingRows.reduce((sum, row) => sum + row.total, 0)
86
+ : declarations.length;
87
+ const sampling = {
88
+ total,
89
+ sampled: declarations.length,
90
+ truncated: Math.max(0, total - declarations.length),
91
+ method: "root-theme-font-component-priority-v1",
92
+ sources: samplingRows,
93
+ };
94
+ const components = [];
95
+ const componentTags =
96
+ /^(?:button|input|select|textarea|form|nav|dialog|header|footer|main|section|article|aside|h[1-6]|table|label|a)$/;
97
+ for (const [index, item] of proposal.dom.entries()) {
98
+ if (
99
+ !componentTags.test(item.tag) &&
100
+ !item.role &&
101
+ !/card|badge|modal|menu|button|hero|accordion|tab/i.test(item.selector)
102
+ )
103
+ continue;
104
+ const existing = components.find(
105
+ (row) => row.selector === item.selector && row.tag === item.tag && row.role === item.role,
106
+ );
107
+ if (existing) {
108
+ existing.occurrences++;
109
+ if (existing.evidence.length < 16) existing.evidence.push(`dom-${index}`);
110
+ } else if (components.length < 200)
111
+ components.push({
112
+ ...item,
113
+ occurrences: 1,
114
+ kind: "static-interface-candidate",
115
+ evidence: [`dom-${index}`],
116
+ provenance: proposal.observations[index].provenance,
117
+ });
118
+ }
119
+ const groups = [colors, typography, spacing, radii, components, proposal.resources];
120
+ const frequencies = new Map();
121
+ for (const value of values) frequencies.set(value, (frequencies.get(value) ?? 0) + 1);
122
+ const reused = values.filter((value) => frequencies.get(value) > 1).length;
123
+ const metric = (id, numerator, denominator, weight, explanation) => ({
124
+ id,
125
+ numerator,
126
+ denominator,
127
+ ratio: denominator ? rounded(numerator / denominator) : 0,
128
+ weight,
129
+ explanation,
130
+ });
131
+ const metrics = [
132
+ metric(
133
+ "category-coverage",
134
+ groups.filter((group) => group.length).length,
135
+ groups.length,
136
+ 35,
137
+ "Presence of declared colors/type/spacing/radii, static components and received resources; not visual quality",
138
+ ),
139
+ metric(
140
+ "declaration-sampling",
141
+ declarations.length,
142
+ total,
143
+ 25,
144
+ "Retained declaration fraction of the bounded scanned resources; not stylesheet/browser completeness",
145
+ ),
146
+ metric(
147
+ "color-resolution",
148
+ colorResolved,
149
+ colorTotal,
150
+ 20,
151
+ "Single color declarations resolvable within the retained selector/root sample; cascade/active theme not computed",
152
+ ),
153
+ metric(
154
+ "declared-token-reuse",
155
+ reused,
156
+ values.length,
157
+ 20,
158
+ "Occurrences sharing a normalized category/value in the retained sample; not rendered consistency",
159
+ ),
160
+ ];
161
+ const gaps = [...proposal.limitations];
162
+ if (sampling.truncated)
163
+ gaps.push(
164
+ `${sampling.truncated} scanned declarations omitted from the bounded prioritized sample`,
165
+ );
166
+ if (colorResolved < colorTotal)
167
+ gaps.push(
168
+ `${colorTotal - colorResolved} color-like declarations unresolved or not a single supported color`,
169
+ );
170
+ for (const item of metrics)
171
+ if (!item.denominator)
172
+ gaps.push(`${item.id}: zero denominator; metric ratio0, evidence unavailable`);
173
+ const report = {
174
+ schema_version: 1,
175
+ method_version: reportMethod,
176
+ status: "measured-evidence",
177
+ extraction_id: proposal.extraction_id,
178
+ source: proposal.source,
179
+ score: Math.round(metrics.reduce((sum, item) => sum + item.weight * item.ratio, 0)),
180
+ score_kind: "extraction-evidence-coverage",
181
+ metrics,
182
+ sampling,
183
+ colors,
184
+ typography,
185
+ spacing,
186
+ radii,
187
+ element_count: proposal.dom.length,
188
+ components,
189
+ resources: proposal.resources,
190
+ gaps: gaps.slice(0, 128),
191
+ themes: [
192
+ ...new Set(
193
+ declarations
194
+ .map(
195
+ (item) =>
196
+ /(?:data-theme\s*=\s*["']?|\.)(dark|light|[\w-]*theme[\w-]*)/i.exec(
197
+ item.selector,
198
+ )?.[1],
199
+ )
200
+ .filter(Boolean),
201
+ ),
202
+ ].slice(0, 32),
203
+ limitations: [
204
+ proposal.capabilities.runtime_rendered
205
+ ? "Inventário declarado/inferido e amostra de estilos computados no viewport observado; tema ativo global, qualidade visual, LLM, acessibilidade e promoção central não avaliados"
206
+ : "Declared/inferred static design inventory; no browser cascade, active theme, visual-quality/LLM/accessibility score or global token promotion",
207
+ ...(proposal.capabilities.runtime_rendered
208
+ ? [
209
+ "Navegador local executou esta captura; screenshot e estilos computados do viewport observado foram preservados; outras interações e qualidade visual permanecem não avaliadas",
210
+ ]
211
+ : [
212
+ "Raw remote assets remain unpreserved unless an existing verified host screenshot is supplied",
213
+ ]),
214
+ ],
215
+ };
216
+ report.visual_model = visualModel(proposal, report);
217
+ if (report.visual_model.coverage?.status !== "sampled" && proposal.capabilities.runtime_rendered)
218
+ report.gaps.push(
219
+ "Cobertura renderizada incompleta ou legada; consultar prontidão e candidatos no modelo visual",
220
+ );
221
+ return report;
222
+ }
223
+ export function reportMarkdown(report) {
224
+ const text = (value) =>
225
+ String(value)
226
+ .replaceAll("|", "\\|")
227
+ .replaceAll("<", "&lt;")
228
+ .replaceAll(">", "&gt;")
229
+ .replaceAll("\n", " ");
230
+ const lines = [
231
+ "# Relatório de evidências da extração",
232
+ "",
233
+ `Método: ${report.method_version}. Cobertura da extração: ${report.score}/100 (${report.score_kind}).`,
234
+ "",
235
+ "Esta nota descreve evidências extraídas; não representa qualidade visual, fidelidade renderizada, avaliação LLM ou certificação de acessibilidade.",
236
+ "",
237
+ `Declarações CSS: ${report.sampling.sampled} retidas / ${report.sampling.total} lidas; ${report.sampling.truncated} omitidas.`,
238
+ "",
239
+ "## Métricas explicáveis",
240
+ "",
241
+ "Métrica | Numerador / denominador | Peso | Razão",
242
+ "--- | --- | --- | ---",
243
+ ];
244
+ for (const item of report.metrics)
245
+ lines.push(
246
+ `${item.id} | ${item.numerator}/${item.denominator} | ${item.weight} | ${item.ratio}`,
247
+ );
248
+ const visual = report.visual_model;
249
+ if (visual?.color_candidates) {
250
+ lines.push(
251
+ "",
252
+ "## Candidatos de cor e cobertura renderizada",
253
+ "",
254
+ `Cobertura: ${text(visual.coverage?.status ?? "legacy-unknown")}; ${visual.coverage?.sampled ?? "?"} amostras. Papéis primário/destaque são inferidos separadamente.`,
255
+ "",
256
+ "Cor | Origem | Contexto | Evidências",
257
+ "--- | --- | --- | ---",
258
+ );
259
+ for (const row of visual.color_candidates)
260
+ lines.push(
261
+ `${row.value} | ${row.source} | ${text(row.provenance.selector)} (${text(row.role_hint ?? "papel desconhecido")}) | ${row.evidence.join(", ")}`,
262
+ );
263
+ for (const gap of visual.coverage?.limitations ?? []) lines.push(`- ${text(gap)}`);
264
+ if (visual.coverage?.readiness)
265
+ lines.push(`- Prontidão: ${text(JSON.stringify(visual.coverage.readiness))}`);
266
+ }
267
+ for (const [name, items] of [
268
+ ["Cores", report.colors],
269
+ ["Tipografia declarada", report.typography],
270
+ ["Espaçamentos", report.spacing],
271
+ ["Raios", report.radii],
272
+ ]) {
273
+ lines.push(
274
+ "",
275
+ `## ${name}`,
276
+ "",
277
+ "Propriedade / valor | Ocorrências | Evidências | Fonte/seletor",
278
+ "--- | --- | --- | ---",
279
+ );
280
+ for (const item of items)
281
+ lines.push(
282
+ `${text(item.property)}: ${text(item.value)} | ${item.occurrences} | ${item.evidence.join(", ")} | ${text(item.provenance.url ?? item.provenance.locator)} — ${text(item.provenance.selector)}`,
283
+ );
284
+ if (!items.length) lines.push("Indisponível nas declarações retidas.");
285
+ }
286
+ lines.push(
287
+ "",
288
+ "## Candidatos de interface estática",
289
+ "",
290
+ `${report.element_count} elementos HTML lidos; ${report.components.length} grupos candidatos de interface. Não são componentes prontos ou reusáveis comprovados.`,
291
+ "",
292
+ );
293
+ for (const item of report.components)
294
+ lines.push(
295
+ `- ${text(item.tag)} ${text(item.selector)}: ${text(item.text)} [${item.evidence.join(", ")}]`,
296
+ );
297
+ lines.push("", "## Recursos", "");
298
+ for (const item of report.resources)
299
+ lines.push(
300
+ `- ${item.kind}: ${text(item.url)}; ${item.bytes} bytes; SHA256 ${item.hash}; raw source preserved:false`,
301
+ );
302
+ lines.push("", "## Lacunas e limites", "");
303
+ for (const gap of [...report.gaps, ...report.limitations]) lines.push(`- ${text(gap)}`);
304
+ return `${lines.join("\n")}\n`;
305
+ }