agent-devkit 0.3.1 → 0.3.3

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 (5351) hide show
  1. package/README.md +248 -362
  2. package/dist/main.js +10347 -0
  3. package/dist/main.js.map +1 -0
  4. package/package.json +63 -23
  5. package/src/assets/characters/drift/character.json +19 -0
  6. package/src/assets/characters/drift/sprite.js +357 -0
  7. package/src/assets/characters/joy/character.json +19 -0
  8. package/src/assets/characters/joy/sprite.js +415 -0
  9. package/src/assets/characters/kit/character.json +19 -0
  10. package/src/assets/characters/kit/sprite.js +183 -0
  11. package/src/assets/characters/robot/character.json +19 -0
  12. package/src/assets/characters/robot/sprite.js +514 -0
  13. package/src/assets/characters/volt/character.json +19 -0
  14. package/src/assets/characters/volt/sprite.js +524 -0
  15. package/src/assets/characters/yuki/character.json +19 -0
  16. package/src/assets/characters/yuki/sprite.js +499 -0
  17. package/src/assets/characters/zumi/character.json +19 -0
  18. package/src/assets/characters/zumi/sprite.js +460 -0
  19. package/src/assets/design/kit.json +78 -0
  20. package/src/assets/design/semantics.json +25 -0
  21. package/src/assets/i18n/en-US.json +281 -0
  22. package/src/assets/i18n/fr-FR.json +281 -0
  23. package/src/assets/i18n/ja-JP.json +281 -0
  24. package/src/assets/i18n/pt-BR.json +281 -0
  25. package/src/assets/i18n/zh-CN.json +281 -0
  26. package/src/assets/models/catalog.json +61 -0
  27. package/src/assets/themes/default-purple.json +28 -0
  28. package/src/assets/themes/ember-amber.json +28 -0
  29. package/src/assets/themes/forest-teal.json +28 -0
  30. package/src/assets/themes/high-contrast.json +28 -0
  31. package/src/assets/themes/ocean-blue.json +28 -0
  32. package/src/assets/themes/rose-pink.json +28 -0
  33. package/src/assets/themes/slate-neutral.json +28 -0
  34. package/src/modules/context/surface/knowledge.json +11 -0
  35. package/src/modules/context/surface/loop.json +15 -0
  36. package/src/modules/context/surface/prompt.json +15 -0
  37. package/src/modules/context/surface/skill.json +13 -0
  38. package/src/modules/conversation/surface/knowledge.json +10 -0
  39. package/src/modules/conversation/surface/loop.json +15 -0
  40. package/src/modules/conversation/surface/prompt.json +10 -0
  41. package/src/modules/conversation/surface/skill.json +13 -0
  42. package/src/modules/environment/surface/knowledge.json +9 -0
  43. package/src/modules/environment/surface/loop.json +15 -0
  44. package/src/modules/environment/surface/prompt.json +10 -0
  45. package/src/modules/environment/surface/skill.json +13 -0
  46. package/src/modules/logs/surface/knowledge.json +9 -0
  47. package/src/modules/logs/surface/loop.json +14 -0
  48. package/src/modules/logs/surface/prompt.json +10 -0
  49. package/src/modules/logs/surface/skill.json +13 -0
  50. package/src/modules/models/surface/knowledge.json +9 -0
  51. package/src/modules/models/surface/loop.json +13 -0
  52. package/src/modules/models/surface/prompt.json +10 -0
  53. package/src/modules/models/surface/skill.json +12 -0
  54. package/src/modules/project/surface/knowledge.json +11 -0
  55. package/src/modules/project/surface/loop.json +15 -0
  56. package/src/modules/project/surface/prompt.json +20 -0
  57. package/src/modules/project/surface/skill.json +13 -0
  58. package/src/modules/secrets/surface/knowledge.json +10 -0
  59. package/src/modules/secrets/surface/loop.json +15 -0
  60. package/src/modules/secrets/surface/prompt.json +10 -0
  61. package/src/modules/secrets/surface/skill.json +13 -0
  62. package/src/modules/self/surface/knowledge.json +10 -0
  63. package/src/modules/self/surface/loop.json +7 -0
  64. package/src/modules/self/surface/prompt.json +10 -0
  65. package/src/modules/self/surface/skill.json +12 -0
  66. package/src/modules/user/surface/knowledge.json +8 -0
  67. package/src/modules/user/surface/loop.json +7 -0
  68. package/src/modules/user/surface/prompt.json +10 -0
  69. package/src/modules/user/surface/skill.json +9 -0
  70. package/bin/agent.mjs +0 -189
  71. package/runtime/.env.example +0 -79
  72. package/runtime/AGENTS.md +0 -119
  73. package/runtime/LICENSE +0 -21
  74. package/runtime/README.md +0 -1035
  75. package/runtime/agent +0 -79
  76. package/runtime/agents/README.md +0 -133
  77. package/runtime/agents/agent-devkit-agent-builder/AGENTS.md +0 -24
  78. package/runtime/agents/agent-devkit-agent-builder/README.md +0 -37
  79. package/runtime/agents/agent-devkit-agent-builder/agent.yaml +0 -46
  80. package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/capability.yaml +0 -29
  81. package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/decision-rules.md +0 -7
  82. package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/runner.py +0 -33
  83. package/runtime/agents/agent-devkit-agent-builder/capabilities/plan-agent/workflow.md +0 -8
  84. package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/capability.yaml +0 -31
  85. package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/decision-rules.md +0 -9
  86. package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/runner.py +0 -39
  87. package/runtime/agents/agent-devkit-agent-builder/capabilities/scaffold-agent/workflow.md +0 -8
  88. package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/capability.yaml +0 -28
  89. package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/decision-rules.md +0 -6
  90. package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/runner.py +0 -33
  91. package/runtime/agents/agent-devkit-agent-builder/capabilities/validate-agent-contract/workflow.md +0 -7
  92. package/runtime/agents/agent-devkit-agent-builder/infra/integrations/agent-devkit/agent_builder_repository.py +0 -527
  93. package/runtime/agents/agent-devkit-agent-builder/knowledge/context.md +0 -15
  94. package/runtime/agents/agent-devkit-agent-builder/knowledge/policies.yaml +0 -11
  95. package/runtime/agents/agent-devkit-agent-builder/knowledge/system.md +0 -11
  96. package/runtime/agents/agent-devkit-agent-builder/templates/agent-plan-output.md +0 -20
  97. package/runtime/agents/agent-devkit-agent-builder/templates/scaffold-plan-output.md +0 -13
  98. package/runtime/agents/agent-devkit-agent-builder/templates/validation-report-output.md +0 -13
  99. package/runtime/agents/agent-devkit-agent-builder/tests/test_runners.py +0 -188
  100. package/runtime/agents/automation-architect/AGENTS.md +0 -11
  101. package/runtime/agents/automation-architect/README.md +0 -27
  102. package/runtime/agents/automation-architect/agent.yaml +0 -57
  103. package/runtime/agents/automation-architect/capabilities/classify-automation-request/capability.yaml +0 -35
  104. package/runtime/agents/automation-architect/capabilities/classify-automation-request/decision-rules.md +0 -10
  105. package/runtime/agents/automation-architect/capabilities/classify-automation-request/runner.py +0 -37
  106. package/runtime/agents/automation-architect/capabilities/classify-automation-request/workflow.md +0 -7
  107. package/runtime/agents/automation-architect/capabilities/delegate-automation-build/capability.yaml +0 -34
  108. package/runtime/agents/automation-architect/capabilities/delegate-automation-build/decision-rules.md +0 -7
  109. package/runtime/agents/automation-architect/capabilities/delegate-automation-build/runner.py +0 -37
  110. package/runtime/agents/automation-architect/capabilities/delegate-automation-build/workflow.md +0 -6
  111. package/runtime/agents/automation-architect/capabilities/plan-automation-solution/capability.yaml +0 -35
  112. package/runtime/agents/automation-architect/capabilities/plan-automation-solution/decision-rules.md +0 -7
  113. package/runtime/agents/automation-architect/capabilities/plan-automation-solution/runner.py +0 -37
  114. package/runtime/agents/automation-architect/capabilities/plan-automation-solution/workflow.md +0 -7
  115. package/runtime/agents/automation-architect/capabilities/review-automation-solution/capability.yaml +0 -36
  116. package/runtime/agents/automation-architect/capabilities/review-automation-solution/decision-rules.md +0 -7
  117. package/runtime/agents/automation-architect/capabilities/review-automation-solution/runner.py +0 -39
  118. package/runtime/agents/automation-architect/capabilities/review-automation-solution/workflow.md +0 -7
  119. package/runtime/agents/automation-architect/infra/integrations/automation-architecture/automation_architecture_repository.py +0 -481
  120. package/runtime/agents/automation-architect/knowledge/context.md +0 -22
  121. package/runtime/agents/automation-architect/knowledge/policies.yaml +0 -20
  122. package/runtime/agents/automation-architect/knowledge/system.md +0 -8
  123. package/runtime/agents/automation-architect/templates/automation-classification.md +0 -6
  124. package/runtime/agents/automation-architect/templates/automation-plan.md +0 -5
  125. package/runtime/agents/automation-architect/tests/test_runners.py +0 -135
  126. package/runtime/agents/aws-architecture-analyst/AGENTS.md +0 -30
  127. package/runtime/agents/aws-architecture-analyst/README.md +0 -19
  128. package/runtime/agents/aws-architecture-analyst/agent.yaml +0 -71
  129. package/runtime/agents/aws-architecture-analyst/capabilities/_shared/runner_support.py +0 -320
  130. package/runtime/agents/aws-architecture-analyst/capabilities/analyze-workload-architecture/capability.yaml +0 -22
  131. package/runtime/agents/aws-architecture-analyst/capabilities/analyze-workload-architecture/decision-rules.md +0 -57
  132. package/runtime/agents/aws-architecture-analyst/capabilities/analyze-workload-architecture/runner.py +0 -9
  133. package/runtime/agents/aws-architecture-analyst/capabilities/analyze-workload-architecture/workflow.md +0 -6
  134. package/runtime/agents/aws-architecture-analyst/capabilities/discover-account-inventory/capability.yaml +0 -23
  135. package/runtime/agents/aws-architecture-analyst/capabilities/discover-account-inventory/decision-rules.md +0 -62
  136. package/runtime/agents/aws-architecture-analyst/capabilities/discover-account-inventory/runner.py +0 -9
  137. package/runtime/agents/aws-architecture-analyst/capabilities/discover-account-inventory/workflow.md +0 -7
  138. package/runtime/agents/aws-architecture-analyst/capabilities/estimate-blast-radius/capability.yaml +0 -22
  139. package/runtime/agents/aws-architecture-analyst/capabilities/estimate-blast-radius/decision-rules.md +0 -56
  140. package/runtime/agents/aws-architecture-analyst/capabilities/estimate-blast-radius/runner.py +0 -9
  141. package/runtime/agents/aws-architecture-analyst/capabilities/estimate-blast-radius/workflow.md +0 -6
  142. package/runtime/agents/aws-architecture-analyst/capabilities/generate-architecture-report/capability.yaml +0 -22
  143. package/runtime/agents/aws-architecture-analyst/capabilities/generate-architecture-report/decision-rules.md +0 -58
  144. package/runtime/agents/aws-architecture-analyst/capabilities/generate-architecture-report/runner.py +0 -9
  145. package/runtime/agents/aws-architecture-analyst/capabilities/generate-architecture-report/workflow.md +0 -5
  146. package/runtime/agents/aws-architecture-analyst/capabilities/map-service-dependencies/capability.yaml +0 -23
  147. package/runtime/agents/aws-architecture-analyst/capabilities/map-service-dependencies/decision-rules.md +0 -58
  148. package/runtime/agents/aws-architecture-analyst/capabilities/map-service-dependencies/runner.py +0 -9
  149. package/runtime/agents/aws-architecture-analyst/capabilities/map-service-dependencies/workflow.md +0 -6
  150. package/runtime/agents/aws-architecture-analyst/capabilities/review-networking/capability.yaml +0 -23
  151. package/runtime/agents/aws-architecture-analyst/capabilities/review-networking/decision-rules.md +0 -55
  152. package/runtime/agents/aws-architecture-analyst/capabilities/review-networking/runner.py +0 -9
  153. package/runtime/agents/aws-architecture-analyst/capabilities/review-networking/workflow.md +0 -5
  154. package/runtime/agents/aws-architecture-analyst/capabilities/review-observability/capability.yaml +0 -22
  155. package/runtime/agents/aws-architecture-analyst/capabilities/review-observability/decision-rules.md +0 -55
  156. package/runtime/agents/aws-architecture-analyst/capabilities/review-observability/runner.py +0 -9
  157. package/runtime/agents/aws-architecture-analyst/capabilities/review-observability/workflow.md +0 -5
  158. package/runtime/agents/aws-architecture-analyst/capabilities/review-resilience/capability.yaml +0 -22
  159. package/runtime/agents/aws-architecture-analyst/capabilities/review-resilience/decision-rules.md +0 -55
  160. package/runtime/agents/aws-architecture-analyst/capabilities/review-resilience/runner.py +0 -9
  161. package/runtime/agents/aws-architecture-analyst/capabilities/review-resilience/workflow.md +0 -5
  162. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/aws_repository.py +0 -300
  163. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/dependency_mapper.py +0 -73
  164. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/env.example +0 -6
  165. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/integration.yaml +0 -13
  166. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/methods/analyze-workload-architecture.yaml +0 -12
  167. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/methods/discover-account-inventory.yaml +0 -10
  168. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/methods/estimate-blast-radius.yaml +0 -12
  169. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/methods/generate-architecture-report.yaml +0 -13
  170. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/methods/map-service-dependencies.yaml +0 -12
  171. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/methods/review-networking.yaml +0 -12
  172. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/methods/review-observability.yaml +0 -12
  173. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/methods/review-resilience.yaml +0 -12
  174. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/normalizers.py +0 -119
  175. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/report_renderer.py +0 -140
  176. package/runtime/agents/aws-architecture-analyst/infra/integrations/aws/tests/test_repository.py +0 -72
  177. package/runtime/agents/aws-architecture-analyst/knowledge/context.md +0 -18
  178. package/runtime/agents/aws-architecture-analyst/knowledge/policies.yaml +0 -32
  179. package/runtime/agents/aws-architecture-analyst/knowledge/prompts/analyze-workload-architecture.md +0 -28
  180. package/runtime/agents/aws-architecture-analyst/knowledge/prompts/discover-account-inventory.md +0 -34
  181. package/runtime/agents/aws-architecture-analyst/knowledge/prompts/estimate-blast-radius.md +0 -30
  182. package/runtime/agents/aws-architecture-analyst/knowledge/prompts/generate-architecture-report.md +0 -27
  183. package/runtime/agents/aws-architecture-analyst/knowledge/prompts/map-service-dependencies.md +0 -28
  184. package/runtime/agents/aws-architecture-analyst/knowledge/prompts/review-networking.md +0 -25
  185. package/runtime/agents/aws-architecture-analyst/knowledge/prompts/review-observability.md +0 -24
  186. package/runtime/agents/aws-architecture-analyst/knowledge/prompts/review-resilience.md +0 -29
  187. package/runtime/agents/aws-architecture-analyst/knowledge/rubrics.md +0 -70
  188. package/runtime/agents/aws-architecture-analyst/knowledge/system.md +0 -51
  189. package/runtime/agents/aws-architecture-analyst/templates/architecture-report-output.md +0 -48
  190. package/runtime/agents/aws-architecture-analyst/templates/blast-radius-output.md +0 -37
  191. package/runtime/agents/aws-architecture-analyst/templates/dependency-map-output.md +0 -28
  192. package/runtime/agents/aws-architecture-analyst/templates/inventory-summary-output.md +0 -33
  193. package/runtime/agents/aws-architecture-analyst/templates/networking-review-output.md +0 -28
  194. package/runtime/agents/aws-architecture-analyst/templates/observability-review-output.md +0 -26
  195. package/runtime/agents/aws-architecture-analyst/templates/resilience-review-output.md +0 -30
  196. package/runtime/agents/aws-architecture-analyst/templates/workload-architecture-output.md +0 -46
  197. package/runtime/agents/aws-architecture-analyst/tests/test_runners.py +0 -384
  198. package/runtime/agents/aws-cloudwatch-log-analyzer/AGENTS.md +0 -31
  199. package/runtime/agents/aws-cloudwatch-log-analyzer/README.md +0 -47
  200. package/runtime/agents/aws-cloudwatch-log-analyzer/agent.yaml +0 -63
  201. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/_shared/runner_support.py +0 -158
  202. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/analyze-service-error/capability.yaml +0 -58
  203. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/analyze-service-error/decision-rules.md +0 -8
  204. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/analyze-service-error/runner.py +0 -116
  205. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/analyze-service-error/tests/test_runner.py +0 -47
  206. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/analyze-service-error/workflow.md +0 -19
  207. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/correlate-azure-card-logs/capability.yaml +0 -39
  208. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/correlate-azure-card-logs/decision-rules.md +0 -8
  209. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/correlate-azure-card-logs/runner.py +0 -127
  210. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/correlate-azure-card-logs/tests/test_runner.py +0 -48
  211. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/correlate-azure-card-logs/workflow.md +0 -19
  212. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/detect-error-patterns/capability.yaml +0 -39
  213. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/detect-error-patterns/decision-rules.md +0 -8
  214. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/detect-error-patterns/runner.py +0 -101
  215. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/detect-error-patterns/tests/test_runner.py +0 -45
  216. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/detect-error-patterns/workflow.md +0 -19
  217. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/extract-log-samples/capability.yaml +0 -38
  218. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/extract-log-samples/decision-rules.md +0 -8
  219. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/extract-log-samples/runner.py +0 -91
  220. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/extract-log-samples/tests/test_runner.py +0 -46
  221. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/extract-log-samples/workflow.md +0 -18
  222. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/generate-incident-report/capability.yaml +0 -40
  223. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/generate-incident-report/decision-rules.md +0 -8
  224. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/generate-incident-report/runner.py +0 -112
  225. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/generate-incident-report/tests/test_runner.py +0 -46
  226. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/generate-incident-report/workflow.md +0 -20
  227. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-groups/capability.yaml +0 -37
  228. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-groups/decision-rules.md +0 -8
  229. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-groups/runner.py +0 -87
  230. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-groups/tests/test_runner.py +0 -45
  231. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-groups/workflow.md +0 -18
  232. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-streams/capability.yaml +0 -36
  233. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-streams/decision-rules.md +0 -8
  234. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-streams/runner.py +0 -88
  235. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-streams/tests/test_runner.py +0 -53
  236. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/list-log-streams/workflow.md +0 -19
  237. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/run-insights-query/capability.yaml +0 -53
  238. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/run-insights-query/decision-rules.md +0 -8
  239. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/run-insights-query/runner.py +0 -134
  240. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/run-insights-query/tests/test_runner.py +0 -68
  241. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/run-insights-query/workflow.md +0 -19
  242. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/search-log-events/capability.yaml +0 -38
  243. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/search-log-events/decision-rules.md +0 -8
  244. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/search-log-events/runner.py +0 -68
  245. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/search-log-events/tests/test_runner.py +0 -44
  246. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/search-log-events/workflow.md +0 -18
  247. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/trace-request/capability.yaml +0 -39
  248. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/trace-request/decision-rules.md +0 -8
  249. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/trace-request/runner.py +0 -126
  250. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/trace-request/tests/test_runner.py +0 -68
  251. package/runtime/agents/aws-cloudwatch-log-analyzer/capabilities/trace-request/workflow.md +0 -18
  252. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/README.md +0 -15
  253. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/README.md +0 -7
  254. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/README.md +0 -20
  255. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/cli.py +0 -104
  256. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/cloudwatch_repository.py +0 -289
  257. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/env.example +0 -5
  258. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/integration.yaml +0 -28
  259. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/mcp/README.md +0 -3
  260. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/methods/describe-log-streams.yaml +0 -20
  261. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/methods/filter-log-events.yaml +0 -23
  262. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/methods/get-logs-insights-query-results.yaml +0 -17
  263. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/methods/list-log-groups.yaml +0 -19
  264. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/methods/start-logs-insights-query.yaml +0 -22
  265. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/models/README.md +0 -3
  266. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/models/log-event.schema.json +0 -13
  267. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/models/log-group.schema.json +0 -14
  268. package/runtime/agents/aws-cloudwatch-log-analyzer/infra/integrations/aws-cloudwatch/tests/test_repository.py +0 -43
  269. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/README.md +0 -9
  270. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/context.md +0 -25
  271. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/policies.yaml +0 -49
  272. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/README.md +0 -3
  273. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/analyze-service-error.md +0 -34
  274. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/correlate-azure-card-logs.md +0 -34
  275. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/detect-error-patterns.md +0 -32
  276. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/extract-log-samples.md +0 -34
  277. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/generate-incident-report.md +0 -34
  278. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/list-log-groups.md +0 -34
  279. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/list-log-streams.md +0 -34
  280. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/run-insights-query.md +0 -36
  281. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/search-log-events.md +0 -35
  282. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/prompts/trace-request.md +0 -34
  283. package/runtime/agents/aws-cloudwatch-log-analyzer/knowledge/system.md +0 -37
  284. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/README.md +0 -3
  285. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/analyze-service-error-output.md +0 -22
  286. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/correlate-azure-card-logs-output.md +0 -20
  287. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/detect-error-patterns-output.md +0 -16
  288. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/extract-log-samples-output.md +0 -17
  289. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/generate-incident-report-output.md +0 -24
  290. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/list-log-groups-output.md +0 -19
  291. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/list-log-streams-output.md +0 -18
  292. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/run-insights-query-output.md +0 -30
  293. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/search-log-events-output.md +0 -16
  294. package/runtime/agents/aws-cloudwatch-log-analyzer/templates/trace-request-output.md +0 -17
  295. package/runtime/agents/aws-cloudwatch-log-analyzer/tests/test_agentic_contracts.py +0 -125
  296. package/runtime/agents/aws-lambda-builder/AGENTS.md +0 -27
  297. package/runtime/agents/aws-lambda-builder/README.md +0 -21
  298. package/runtime/agents/aws-lambda-builder/agent.yaml +0 -46
  299. package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/capability.yaml +0 -18
  300. package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/decision-rules.md +0 -6
  301. package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/runner.py +0 -33
  302. package/runtime/agents/aws-lambda-builder/capabilities/deploy-lambda-plan/workflow.md +0 -6
  303. package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/capability.yaml +0 -20
  304. package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/decision-rules.md +0 -6
  305. package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/runner.py +0 -39
  306. package/runtime/agents/aws-lambda-builder/capabilities/generate-lambda-project/workflow.md +0 -7
  307. package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/capability.yaml +0 -22
  308. package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/decision-rules.md +0 -6
  309. package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/runner.py +0 -41
  310. package/runtime/agents/aws-lambda-builder/capabilities/package-lambda/workflow.md +0 -6
  311. package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/capability.yaml +0 -18
  312. package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/decision-rules.md +0 -7
  313. package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/runner.py +0 -33
  314. package/runtime/agents/aws-lambda-builder/capabilities/plan-lambda/workflow.md +0 -6
  315. package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/capability.yaml +0 -18
  316. package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/decision-rules.md +0 -7
  317. package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/runner.py +0 -33
  318. package/runtime/agents/aws-lambda-builder/capabilities/review-lambda-security/workflow.md +0 -5
  319. package/runtime/agents/aws-lambda-builder/infra/integrations/aws-lambda/aws_lambda_repository.py +0 -688
  320. package/runtime/agents/aws-lambda-builder/knowledge/context.md +0 -12
  321. package/runtime/agents/aws-lambda-builder/knowledge/policies.yaml +0 -23
  322. package/runtime/agents/aws-lambda-builder/knowledge/system.md +0 -10
  323. package/runtime/agents/aws-lambda-builder/templates/lambda-deploy-plan.md +0 -3
  324. package/runtime/agents/aws-lambda-builder/templates/lambda-package.md +0 -3
  325. package/runtime/agents/aws-lambda-builder/templates/lambda-plan.md +0 -3
  326. package/runtime/agents/aws-lambda-builder/templates/lambda-readme.md +0 -3
  327. package/runtime/agents/aws-lambda-builder/templates/lambda-security-review.md +0 -3
  328. package/runtime/agents/aws-lambda-builder/tests/test_runners.py +0 -355
  329. package/runtime/agents/aws-operations-operator/AGENTS.md +0 -29
  330. package/runtime/agents/aws-operations-operator/README.md +0 -45
  331. package/runtime/agents/aws-operations-operator/agent.yaml +0 -85
  332. package/runtime/agents/aws-operations-operator/capabilities/_shared/runner_support.py +0 -260
  333. package/runtime/agents/aws-operations-operator/capabilities/force-ecs-deployment/capability.yaml +0 -21
  334. package/runtime/agents/aws-operations-operator/capabilities/force-ecs-deployment/decision-rules.md +0 -60
  335. package/runtime/agents/aws-operations-operator/capabilities/force-ecs-deployment/runner.py +0 -7
  336. package/runtime/agents/aws-operations-operator/capabilities/force-ecs-deployment/workflow.md +0 -24
  337. package/runtime/agents/aws-operations-operator/capabilities/generate-operation-report/capability.yaml +0 -21
  338. package/runtime/agents/aws-operations-operator/capabilities/generate-operation-report/decision-rules.md +0 -50
  339. package/runtime/agents/aws-operations-operator/capabilities/generate-operation-report/runner.py +0 -7
  340. package/runtime/agents/aws-operations-operator/capabilities/generate-operation-report/workflow.md +0 -19
  341. package/runtime/agents/aws-operations-operator/capabilities/invalidate-cloudfront-cache/capability.yaml +0 -21
  342. package/runtime/agents/aws-operations-operator/capabilities/invalidate-cloudfront-cache/decision-rules.md +0 -53
  343. package/runtime/agents/aws-operations-operator/capabilities/invalidate-cloudfront-cache/runner.py +0 -7
  344. package/runtime/agents/aws-operations-operator/capabilities/invalidate-cloudfront-cache/workflow.md +0 -20
  345. package/runtime/agents/aws-operations-operator/capabilities/invoke-lambda/capability.yaml +0 -21
  346. package/runtime/agents/aws-operations-operator/capabilities/invoke-lambda/decision-rules.md +0 -56
  347. package/runtime/agents/aws-operations-operator/capabilities/invoke-lambda/runner.py +0 -7
  348. package/runtime/agents/aws-operations-operator/capabilities/invoke-lambda/workflow.md +0 -22
  349. package/runtime/agents/aws-operations-operator/capabilities/plan-operational-action/capability.yaml +0 -21
  350. package/runtime/agents/aws-operations-operator/capabilities/plan-operational-action/decision-rules.md +0 -55
  351. package/runtime/agents/aws-operations-operator/capabilities/plan-operational-action/runner.py +0 -7
  352. package/runtime/agents/aws-operations-operator/capabilities/plan-operational-action/workflow.md +0 -22
  353. package/runtime/agents/aws-operations-operator/capabilities/purge-sqs-queue-plan/capability.yaml +0 -21
  354. package/runtime/agents/aws-operations-operator/capabilities/purge-sqs-queue-plan/decision-rules.md +0 -46
  355. package/runtime/agents/aws-operations-operator/capabilities/purge-sqs-queue-plan/runner.py +0 -7
  356. package/runtime/agents/aws-operations-operator/capabilities/purge-sqs-queue-plan/workflow.md +0 -17
  357. package/runtime/agents/aws-operations-operator/capabilities/redrive-sqs-dlq/capability.yaml +0 -21
  358. package/runtime/agents/aws-operations-operator/capabilities/redrive-sqs-dlq/decision-rules.md +0 -46
  359. package/runtime/agents/aws-operations-operator/capabilities/redrive-sqs-dlq/runner.py +0 -7
  360. package/runtime/agents/aws-operations-operator/capabilities/redrive-sqs-dlq/workflow.md +0 -18
  361. package/runtime/agents/aws-operations-operator/capabilities/restart-ecs-service/capability.yaml +0 -21
  362. package/runtime/agents/aws-operations-operator/capabilities/restart-ecs-service/decision-rules.md +0 -54
  363. package/runtime/agents/aws-operations-operator/capabilities/restart-ecs-service/runner.py +0 -7
  364. package/runtime/agents/aws-operations-operator/capabilities/restart-ecs-service/workflow.md +0 -18
  365. package/runtime/agents/aws-operations-operator/capabilities/scale-autoscaling-group/capability.yaml +0 -21
  366. package/runtime/agents/aws-operations-operator/capabilities/scale-autoscaling-group/decision-rules.md +0 -56
  367. package/runtime/agents/aws-operations-operator/capabilities/scale-autoscaling-group/runner.py +0 -7
  368. package/runtime/agents/aws-operations-operator/capabilities/scale-autoscaling-group/workflow.md +0 -22
  369. package/runtime/agents/aws-operations-operator/capabilities/toggle-eventbridge-rule/capability.yaml +0 -21
  370. package/runtime/agents/aws-operations-operator/capabilities/toggle-eventbridge-rule/decision-rules.md +0 -54
  371. package/runtime/agents/aws-operations-operator/capabilities/toggle-eventbridge-rule/runner.py +0 -7
  372. package/runtime/agents/aws-operations-operator/capabilities/toggle-eventbridge-rule/workflow.md +0 -20
  373. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/aws_operations_repository.py +0 -500
  374. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/env.example +0 -16
  375. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/integration.yaml +0 -17
  376. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/force-ecs-deployment.yaml +0 -10
  377. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/generate-operation-report.yaml +0 -10
  378. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/invalidate-cloudfront-cache.yaml +0 -10
  379. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/invoke-lambda.yaml +0 -10
  380. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/plan-operational-action.yaml +0 -10
  381. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/purge-sqs-queue-plan.yaml +0 -14
  382. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/redrive-sqs-dlq.yaml +0 -14
  383. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/restart-ecs-service.yaml +0 -10
  384. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/scale-autoscaling-group.yaml +0 -10
  385. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/methods/toggle-eventbridge-rule.yaml +0 -10
  386. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/report_renderer.py +0 -83
  387. package/runtime/agents/aws-operations-operator/infra/integrations/aws-operations/tests/test_repository.py +0 -176
  388. package/runtime/agents/aws-operations-operator/knowledge/context.md +0 -25
  389. package/runtime/agents/aws-operations-operator/knowledge/policies.yaml +0 -87
  390. package/runtime/agents/aws-operations-operator/knowledge/prompts/force-ecs-deployment.md +0 -31
  391. package/runtime/agents/aws-operations-operator/knowledge/prompts/generate-operation-report.md +0 -24
  392. package/runtime/agents/aws-operations-operator/knowledge/prompts/invalidate-cloudfront-cache.md +0 -27
  393. package/runtime/agents/aws-operations-operator/knowledge/prompts/invoke-lambda.md +0 -30
  394. package/runtime/agents/aws-operations-operator/knowledge/prompts/plan-operational-action.md +0 -33
  395. package/runtime/agents/aws-operations-operator/knowledge/prompts/purge-sqs-queue-plan.md +0 -25
  396. package/runtime/agents/aws-operations-operator/knowledge/prompts/redrive-sqs-dlq.md +0 -26
  397. package/runtime/agents/aws-operations-operator/knowledge/prompts/restart-ecs-service.md +0 -26
  398. package/runtime/agents/aws-operations-operator/knowledge/prompts/scale-autoscaling-group.md +0 -30
  399. package/runtime/agents/aws-operations-operator/knowledge/prompts/toggle-eventbridge-rule.md +0 -28
  400. package/runtime/agents/aws-operations-operator/knowledge/system.md +0 -67
  401. package/runtime/agents/aws-operations-operator/templates/operation-plan-output.md +0 -31
  402. package/runtime/agents/aws-operations-operator/templates/operation-report-output.md +0 -38
  403. package/runtime/agents/aws-operations-operator/templates/rollback-notes-output.md +0 -25
  404. package/runtime/agents/aws-operations-operator/tests/test_runners.py +0 -555
  405. package/runtime/agents/aws-security-governance-auditor/AGENTS.md +0 -30
  406. package/runtime/agents/aws-security-governance-auditor/README.md +0 -18
  407. package/runtime/agents/aws-security-governance-auditor/agent.yaml +0 -76
  408. package/runtime/agents/aws-security-governance-auditor/capabilities/_shared/runner_support.py +0 -221
  409. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-cloudtrail-config/capability.yaml +0 -21
  410. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-cloudtrail-config/decision-rules.md +0 -50
  411. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-cloudtrail-config/runner.py +0 -7
  412. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-cloudtrail-config/workflow.md +0 -4
  413. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-config-guardrails/capability.yaml +0 -21
  414. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-config-guardrails/decision-rules.md +0 -47
  415. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-config-guardrails/runner.py +0 -7
  416. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-config-guardrails/workflow.md +0 -4
  417. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-encryption/capability.yaml +0 -21
  418. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-encryption/decision-rules.md +0 -47
  419. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-encryption/runner.py +0 -7
  420. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-encryption/workflow.md +0 -4
  421. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-iam-principals/capability.yaml +0 -21
  422. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-iam-principals/decision-rules.md +0 -49
  423. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-iam-principals/runner.py +0 -7
  424. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-iam-principals/workflow.md +0 -5
  425. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-public-exposure/capability.yaml +0 -21
  426. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-public-exposure/decision-rules.md +0 -47
  427. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-public-exposure/runner.py +0 -7
  428. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-public-exposure/workflow.md +0 -5
  429. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-s3-buckets/capability.yaml +0 -21
  430. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-s3-buckets/decision-rules.md +0 -47
  431. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-s3-buckets/runner.py +0 -7
  432. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-s3-buckets/workflow.md +0 -5
  433. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-secrets-usage/capability.yaml +0 -21
  434. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-secrets-usage/decision-rules.md +0 -47
  435. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-secrets-usage/runner.py +0 -7
  436. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-secrets-usage/workflow.md +0 -5
  437. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-security-groups/capability.yaml +0 -21
  438. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-security-groups/decision-rules.md +0 -48
  439. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-security-groups/runner.py +0 -7
  440. package/runtime/agents/aws-security-governance-auditor/capabilities/audit-security-groups/workflow.md +0 -5
  441. package/runtime/agents/aws-security-governance-auditor/capabilities/generate-remediation-plan/capability.yaml +0 -21
  442. package/runtime/agents/aws-security-governance-auditor/capabilities/generate-remediation-plan/decision-rules.md +0 -47
  443. package/runtime/agents/aws-security-governance-auditor/capabilities/generate-remediation-plan/runner.py +0 -7
  444. package/runtime/agents/aws-security-governance-auditor/capabilities/generate-remediation-plan/workflow.md +0 -5
  445. package/runtime/agents/aws-security-governance-auditor/capabilities/generate-security-report/capability.yaml +0 -21
  446. package/runtime/agents/aws-security-governance-auditor/capabilities/generate-security-report/decision-rules.md +0 -49
  447. package/runtime/agents/aws-security-governance-auditor/capabilities/generate-security-report/runner.py +0 -7
  448. package/runtime/agents/aws-security-governance-auditor/capabilities/generate-security-report/workflow.md +0 -5
  449. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/auditors.py +0 -216
  450. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/aws_security_repository.py +0 -193
  451. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/env.example +0 -6
  452. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/integration.yaml +0 -14
  453. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/audit-cloudtrail-config.yaml +0 -11
  454. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/audit-config-guardrails.yaml +0 -11
  455. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/audit-encryption.yaml +0 -11
  456. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/audit-iam-principals.yaml +0 -11
  457. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/audit-public-exposure.yaml +0 -11
  458. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/audit-s3-buckets.yaml +0 -11
  459. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/audit-secrets-usage.yaml +0 -11
  460. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/audit-security-groups.yaml +0 -11
  461. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/generate-remediation-plan.yaml +0 -11
  462. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/methods/generate-security-report.yaml +0 -11
  463. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/report_renderer.py +0 -64
  464. package/runtime/agents/aws-security-governance-auditor/infra/integrations/aws-security/tests/test_repository.py +0 -153
  465. package/runtime/agents/aws-security-governance-auditor/knowledge/context.md +0 -21
  466. package/runtime/agents/aws-security-governance-auditor/knowledge/policies.yaml +0 -42
  467. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/audit-cloudtrail-config.md +0 -17
  468. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/audit-config-guardrails.md +0 -15
  469. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/audit-encryption.md +0 -15
  470. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/audit-iam-principals.md +0 -29
  471. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/audit-public-exposure.md +0 -21
  472. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/audit-s3-buckets.md +0 -21
  473. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/audit-secrets-usage.md +0 -15
  474. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/audit-security-groups.md +0 -21
  475. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/generate-remediation-plan.md +0 -20
  476. package/runtime/agents/aws-security-governance-auditor/knowledge/prompts/generate-security-report.md +0 -20
  477. package/runtime/agents/aws-security-governance-auditor/knowledge/severity-rubric.md +0 -38
  478. package/runtime/agents/aws-security-governance-auditor/knowledge/system.md +0 -42
  479. package/runtime/agents/aws-security-governance-auditor/templates/cloudtrail-audit-output.md +0 -24
  480. package/runtime/agents/aws-security-governance-auditor/templates/config-guardrails-output.md +0 -24
  481. package/runtime/agents/aws-security-governance-auditor/templates/encryption-audit-output.md +0 -24
  482. package/runtime/agents/aws-security-governance-auditor/templates/iam-audit-output.md +0 -24
  483. package/runtime/agents/aws-security-governance-auditor/templates/public-exposure-output.md +0 -28
  484. package/runtime/agents/aws-security-governance-auditor/templates/remediation-plan-output.md +0 -31
  485. package/runtime/agents/aws-security-governance-auditor/templates/s3-buckets-output.md +0 -28
  486. package/runtime/agents/aws-security-governance-auditor/templates/secrets-usage-output.md +0 -24
  487. package/runtime/agents/aws-security-governance-auditor/templates/security-groups-output.md +0 -28
  488. package/runtime/agents/aws-security-governance-auditor/templates/security-report-output.md +0 -41
  489. package/runtime/agents/aws-security-governance-auditor/tests/test_runners.py +0 -336
  490. package/runtime/agents/azure-devops-orchestrator/AGENTS.md +0 -36
  491. package/runtime/agents/azure-devops-orchestrator/README.md +0 -87
  492. package/runtime/agents/azure-devops-orchestrator/agent.yaml +0 -69
  493. package/runtime/agents/azure-devops-orchestrator/capabilities/_shared/runner_support.py +0 -146
  494. package/runtime/agents/azure-devops-orchestrator/capabilities/assign-card/capability.yaml +0 -38
  495. package/runtime/agents/azure-devops-orchestrator/capabilities/assign-card/decision-rules.md +0 -8
  496. package/runtime/agents/azure-devops-orchestrator/capabilities/assign-card/runner.py +0 -175
  497. package/runtime/agents/azure-devops-orchestrator/capabilities/assign-card/tests/test_runner.py +0 -56
  498. package/runtime/agents/azure-devops-orchestrator/capabilities/assign-card/workflow.md +0 -33
  499. package/runtime/agents/azure-devops-orchestrator/capabilities/attach-file/capability.yaml +0 -39
  500. package/runtime/agents/azure-devops-orchestrator/capabilities/attach-file/decision-rules.md +0 -10
  501. package/runtime/agents/azure-devops-orchestrator/capabilities/attach-file/runner.py +0 -112
  502. package/runtime/agents/azure-devops-orchestrator/capabilities/attach-file/tests/test_runner.py +0 -80
  503. package/runtime/agents/azure-devops-orchestrator/capabilities/attach-file/workflow.md +0 -7
  504. package/runtime/agents/azure-devops-orchestrator/capabilities/comment-card/capability.yaml +0 -37
  505. package/runtime/agents/azure-devops-orchestrator/capabilities/comment-card/decision-rules.md +0 -9
  506. package/runtime/agents/azure-devops-orchestrator/capabilities/comment-card/runner.py +0 -142
  507. package/runtime/agents/azure-devops-orchestrator/capabilities/comment-card/tests/test_runner.py +0 -49
  508. package/runtime/agents/azure-devops-orchestrator/capabilities/comment-card/workflow.md +0 -34
  509. package/runtime/agents/azure-devops-orchestrator/capabilities/generate-cards-report/capability.yaml +0 -42
  510. package/runtime/agents/azure-devops-orchestrator/capabilities/generate-cards-report/decision-rules.md +0 -9
  511. package/runtime/agents/azure-devops-orchestrator/capabilities/generate-cards-report/runner.py +0 -294
  512. package/runtime/agents/azure-devops-orchestrator/capabilities/generate-cards-report/tests/test_runner.py +0 -131
  513. package/runtime/agents/azure-devops-orchestrator/capabilities/generate-cards-report/workflow.md +0 -37
  514. package/runtime/agents/azure-devops-orchestrator/capabilities/list-cards/capability.yaml +0 -37
  515. package/runtime/agents/azure-devops-orchestrator/capabilities/list-cards/decision-rules.md +0 -7
  516. package/runtime/agents/azure-devops-orchestrator/capabilities/list-cards/runner.py +0 -122
  517. package/runtime/agents/azure-devops-orchestrator/capabilities/list-cards/tests/test_runner.py +0 -56
  518. package/runtime/agents/azure-devops-orchestrator/capabilities/list-cards/workflow.md +0 -23
  519. package/runtime/agents/azure-devops-orchestrator/capabilities/move-card/capability.yaml +0 -37
  520. package/runtime/agents/azure-devops-orchestrator/capabilities/move-card/decision-rules.md +0 -9
  521. package/runtime/agents/azure-devops-orchestrator/capabilities/move-card/runner.py +0 -150
  522. package/runtime/agents/azure-devops-orchestrator/capabilities/move-card/tests/test_runner.py +0 -50
  523. package/runtime/agents/azure-devops-orchestrator/capabilities/move-card/workflow.md +0 -32
  524. package/runtime/agents/azure-devops-orchestrator/capabilities/prepare-card-analysis/capability.yaml +0 -36
  525. package/runtime/agents/azure-devops-orchestrator/capabilities/prepare-card-analysis/decision-rules.md +0 -7
  526. package/runtime/agents/azure-devops-orchestrator/capabilities/prepare-card-analysis/runner.py +0 -184
  527. package/runtime/agents/azure-devops-orchestrator/capabilities/prepare-card-analysis/tests/test_runner.py +0 -53
  528. package/runtime/agents/azure-devops-orchestrator/capabilities/prepare-card-analysis/workflow.md +0 -27
  529. package/runtime/agents/azure-devops-orchestrator/capabilities/read-card/capability.yaml +0 -64
  530. package/runtime/agents/azure-devops-orchestrator/capabilities/read-card/decision-rules.md +0 -7
  531. package/runtime/agents/azure-devops-orchestrator/capabilities/read-card/runner.py +0 -186
  532. package/runtime/agents/azure-devops-orchestrator/capabilities/read-card/tests/test_runner.py +0 -90
  533. package/runtime/agents/azure-devops-orchestrator/capabilities/read-card/workflow.md +0 -37
  534. package/runtime/agents/azure-devops-orchestrator/capabilities/update-card-tags/capability.yaml +0 -37
  535. package/runtime/agents/azure-devops-orchestrator/capabilities/update-card-tags/decision-rules.md +0 -8
  536. package/runtime/agents/azure-devops-orchestrator/capabilities/update-card-tags/runner.py +0 -143
  537. package/runtime/agents/azure-devops-orchestrator/capabilities/update-card-tags/tests/test_runner.py +0 -49
  538. package/runtime/agents/azure-devops-orchestrator/capabilities/update-card-tags/workflow.md +0 -33
  539. package/runtime/agents/azure-devops-orchestrator/infra/README.md +0 -22
  540. package/runtime/agents/azure-devops-orchestrator/infra/integrations/README.md +0 -13
  541. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/README.md +0 -63
  542. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/azure_repository.py +0 -539
  543. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/cli.py +0 -116
  544. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/env.example +0 -6
  545. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/integration.yaml +0 -39
  546. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/mcp/README.md +0 -7
  547. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/methods/add-comment.yaml +0 -34
  548. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/methods/attach-file.yaml +0 -38
  549. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/methods/find-users.yaml +0 -31
  550. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/methods/get-work-item-comments.yaml +0 -33
  551. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/methods/get-work-item.yaml +0 -43
  552. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/methods/list-work-items.yaml +0 -39
  553. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/methods/update-work-item.yaml +0 -38
  554. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/models/README.md +0 -6
  555. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/models/comment-list.schema.json +0 -15
  556. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/models/comment.schema.json +0 -14
  557. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/models/identity.schema.json +0 -12
  558. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/models/work-item-list.schema.json +0 -15
  559. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/models/work-item.schema.json +0 -30
  560. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/models/write-result.schema.json +0 -26
  561. package/runtime/agents/azure-devops-orchestrator/infra/integrations/azure/tests/test_repository.py +0 -120
  562. package/runtime/agents/azure-devops-orchestrator/knowledge/README.md +0 -22
  563. package/runtime/agents/azure-devops-orchestrator/knowledge/context.md +0 -28
  564. package/runtime/agents/azure-devops-orchestrator/knowledge/policies.yaml +0 -57
  565. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/README.md +0 -7
  566. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/assign-card.md +0 -34
  567. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/attach-file.md +0 -28
  568. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/comment-card.md +0 -35
  569. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/generate-cards-report.md +0 -32
  570. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/list-cards.md +0 -31
  571. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/move-card.md +0 -35
  572. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/prepare-card-analysis.md +0 -31
  573. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/read-card.md +0 -32
  574. package/runtime/agents/azure-devops-orchestrator/knowledge/prompts/update-card-tags.md +0 -30
  575. package/runtime/agents/azure-devops-orchestrator/knowledge/system.md +0 -66
  576. package/runtime/agents/azure-devops-orchestrator/templates/README.md +0 -8
  577. package/runtime/agents/azure-devops-orchestrator/templates/assign-card-output.md +0 -21
  578. package/runtime/agents/azure-devops-orchestrator/templates/attach-file-output.md +0 -24
  579. package/runtime/agents/azure-devops-orchestrator/templates/comment-card-output.md +0 -21
  580. package/runtime/agents/azure-devops-orchestrator/templates/generate-cards-report-output.md +0 -38
  581. package/runtime/agents/azure-devops-orchestrator/templates/list-cards-output.md +0 -23
  582. package/runtime/agents/azure-devops-orchestrator/templates/move-card-output.md +0 -23
  583. package/runtime/agents/azure-devops-orchestrator/templates/prepare-card-analysis-output.md +0 -27
  584. package/runtime/agents/azure-devops-orchestrator/templates/read-card-output.md +0 -34
  585. package/runtime/agents/azure-devops-orchestrator/templates/update-card-tags-output.md +0 -22
  586. package/runtime/agents/azure-devops-orchestrator/tests/test_agentic_contracts.py +0 -176
  587. package/runtime/agents/bpo-analyser/AGENTS.md +0 -28
  588. package/runtime/agents/bpo-analyser/README.md +0 -63
  589. package/runtime/agents/bpo-analyser/agent.yaml +0 -74
  590. package/runtime/agents/bpo-analyser/capabilities/_shared/runner_support.py +0 -195
  591. package/runtime/agents/bpo-analyser/capabilities/analyze-cpf-proposals/capability.yaml +0 -23
  592. package/runtime/agents/bpo-analyser/capabilities/analyze-cpf-proposals/decision-rules.md +0 -10
  593. package/runtime/agents/bpo-analyser/capabilities/analyze-cpf-proposals/runner.py +0 -81
  594. package/runtime/agents/bpo-analyser/capabilities/analyze-cpf-proposals/workflow.md +0 -6
  595. package/runtime/agents/bpo-analyser/capabilities/analyze-proposal/capability.yaml +0 -23
  596. package/runtime/agents/bpo-analyser/capabilities/analyze-proposal/decision-rules.md +0 -7
  597. package/runtime/agents/bpo-analyser/capabilities/analyze-proposal/runner.py +0 -91
  598. package/runtime/agents/bpo-analyser/capabilities/analyze-proposal/workflow.md +0 -7
  599. package/runtime/agents/bpo-analyser/capabilities/consult-attached-documents/capability.yaml +0 -22
  600. package/runtime/agents/bpo-analyser/capabilities/consult-attached-documents/decision-rules.md +0 -7
  601. package/runtime/agents/bpo-analyser/capabilities/consult-attached-documents/runner.py +0 -69
  602. package/runtime/agents/bpo-analyser/capabilities/consult-attached-documents/workflow.md +0 -6
  603. package/runtime/agents/bpo-analyser/capabilities/consult-proposal/capability.yaml +0 -22
  604. package/runtime/agents/bpo-analyser/capabilities/consult-proposal/decision-rules.md +0 -6
  605. package/runtime/agents/bpo-analyser/capabilities/consult-proposal/runner.py +0 -53
  606. package/runtime/agents/bpo-analyser/capabilities/consult-proposal/workflow.md +0 -6
  607. package/runtime/agents/bpo-analyser/capabilities/find-latest-proposal-by-cpf/capability.yaml +0 -23
  608. package/runtime/agents/bpo-analyser/capabilities/find-latest-proposal-by-cpf/decision-rules.md +0 -8
  609. package/runtime/agents/bpo-analyser/capabilities/find-latest-proposal-by-cpf/runner.py +0 -64
  610. package/runtime/agents/bpo-analyser/capabilities/find-latest-proposal-by-cpf/workflow.md +0 -6
  611. package/runtime/agents/bpo-analyser/capabilities/list-proposals-by-cpf/capability.yaml +0 -22
  612. package/runtime/agents/bpo-analyser/capabilities/list-proposals-by-cpf/decision-rules.md +0 -5
  613. package/runtime/agents/bpo-analyser/capabilities/list-proposals-by-cpf/runner.py +0 -62
  614. package/runtime/agents/bpo-analyser/capabilities/list-proposals-by-cpf/workflow.md +0 -6
  615. package/runtime/agents/bpo-analyser/capabilities/test-connection/capability.yaml +0 -22
  616. package/runtime/agents/bpo-analyser/capabilities/test-connection/decision-rules.md +0 -5
  617. package/runtime/agents/bpo-analyser/capabilities/test-connection/runner.py +0 -62
  618. package/runtime/agents/bpo-analyser/capabilities/test-connection/workflow.md +0 -6
  619. package/runtime/agents/bpo-analyser/infra/integrations/bpo/README.md +0 -29
  620. package/runtime/agents/bpo-analyser/infra/integrations/bpo/bpo_repository.py +0 -858
  621. package/runtime/agents/bpo-analyser/infra/integrations/bpo/env.example +0 -16
  622. package/runtime/agents/bpo-analyser/infra/integrations/bpo/methods/analyze-cpf-proposals.yaml +0 -5
  623. package/runtime/agents/bpo-analyser/infra/integrations/bpo/methods/analyze-proposal.yaml +0 -6
  624. package/runtime/agents/bpo-analyser/infra/integrations/bpo/methods/consult-attached-documents.yaml +0 -5
  625. package/runtime/agents/bpo-analyser/infra/integrations/bpo/methods/consult-proposal.yaml +0 -5
  626. package/runtime/agents/bpo-analyser/infra/integrations/bpo/methods/find-latest-proposal-by-cpf.yaml +0 -5
  627. package/runtime/agents/bpo-analyser/infra/integrations/bpo/methods/list-proposals-by-cpf.yaml +0 -5
  628. package/runtime/agents/bpo-analyser/infra/integrations/bpo/methods/test-connection.yaml +0 -4
  629. package/runtime/agents/bpo-analyser/infra/integrations/bpo/tests/test_repository.py +0 -345
  630. package/runtime/agents/bpo-analyser/knowledge/README.md +0 -14
  631. package/runtime/agents/bpo-analyser/knowledge/context.md +0 -15
  632. package/runtime/agents/bpo-analyser/knowledge/domain-glossary.md +0 -53
  633. package/runtime/agents/bpo-analyser/knowledge/policies.yaml +0 -44
  634. package/runtime/agents/bpo-analyser/knowledge/prompts/analyze-cpf-proposals.md +0 -40
  635. package/runtime/agents/bpo-analyser/knowledge/prompts/analyze-proposal.md +0 -38
  636. package/runtime/agents/bpo-analyser/knowledge/prompts/consult-attached-documents.md +0 -39
  637. package/runtime/agents/bpo-analyser/knowledge/prompts/consult-proposal.md +0 -37
  638. package/runtime/agents/bpo-analyser/knowledge/prompts/find-latest-proposal-by-cpf.md +0 -37
  639. package/runtime/agents/bpo-analyser/knowledge/prompts/list-proposals-by-cpf.md +0 -37
  640. package/runtime/agents/bpo-analyser/knowledge/prompts/test-connection.md +0 -35
  641. package/runtime/agents/bpo-analyser/knowledge/system.md +0 -58
  642. package/runtime/agents/bpo-analyser/templates/README.md +0 -4
  643. package/runtime/agents/bpo-analyser/templates/analyze-cpf-proposals-output.md +0 -36
  644. package/runtime/agents/bpo-analyser/templates/analyze-proposal-output.md +0 -35
  645. package/runtime/agents/bpo-analyser/templates/consult-attached-documents-output.md +0 -27
  646. package/runtime/agents/bpo-analyser/templates/consult-proposal-output.md +0 -33
  647. package/runtime/agents/bpo-analyser/templates/find-latest-proposal-by-cpf-output.md +0 -31
  648. package/runtime/agents/bpo-analyser/templates/list-proposals-by-cpf-output.md +0 -21
  649. package/runtime/agents/bpo-analyser/templates/test-connection-output.md +0 -29
  650. package/runtime/agents/bpo-analyser/tests/test_agentic_contracts.py +0 -176
  651. package/runtime/agents/bpo-analyser/tests/test_runners.py +0 -257
  652. package/runtime/agents/contribution-reviewer/AGENTS.md +0 -8
  653. package/runtime/agents/contribution-reviewer/README.md +0 -8
  654. package/runtime/agents/contribution-reviewer/agent.yaml +0 -40
  655. package/runtime/agents/contribution-reviewer/capabilities/plan-contribution-pr/capability.yaml +0 -27
  656. package/runtime/agents/contribution-reviewer/capabilities/plan-contribution-pr/decision-rules.md +0 -5
  657. package/runtime/agents/contribution-reviewer/capabilities/plan-contribution-pr/workflow.md +0 -6
  658. package/runtime/agents/contribution-reviewer/capabilities/review-contribution/capability.yaml +0 -25
  659. package/runtime/agents/contribution-reviewer/capabilities/review-contribution/decision-rules.md +0 -5
  660. package/runtime/agents/contribution-reviewer/capabilities/review-contribution/workflow.md +0 -5
  661. package/runtime/agents/contribution-reviewer/capabilities/validate-local-contribution/capability.yaml +0 -26
  662. package/runtime/agents/contribution-reviewer/capabilities/validate-local-contribution/decision-rules.md +0 -5
  663. package/runtime/agents/contribution-reviewer/capabilities/validate-local-contribution/workflow.md +0 -6
  664. package/runtime/agents/contribution-reviewer/infra/README.md +0 -6
  665. package/runtime/agents/contribution-reviewer/knowledge/context.md +0 -8
  666. package/runtime/agents/contribution-reviewer/knowledge/system.md +0 -8
  667. package/runtime/agents/contribution-reviewer/templates/README.md +0 -3
  668. package/runtime/agents/data-scientist-analyst/AGENTS.md +0 -10
  669. package/runtime/agents/data-scientist-analyst/README.md +0 -137
  670. package/runtime/agents/data-scientist-analyst/agent.yaml +0 -116
  671. package/runtime/agents/data-scientist-analyst/capabilities/_shared/runner_support.py +0 -439
  672. package/runtime/agents/data-scientist-analyst/capabilities/analyze-cohorts/capability.yaml +0 -23
  673. package/runtime/agents/data-scientist-analyst/capabilities/analyze-cohorts/decision-rules.md +0 -8
  674. package/runtime/agents/data-scientist-analyst/capabilities/analyze-cohorts/runner.py +0 -13
  675. package/runtime/agents/data-scientist-analyst/capabilities/analyze-cohorts/workflow.md +0 -6
  676. package/runtime/agents/data-scientist-analyst/capabilities/analyze-correlation/capability.yaml +0 -23
  677. package/runtime/agents/data-scientist-analyst/capabilities/analyze-correlation/decision-rules.md +0 -8
  678. package/runtime/agents/data-scientist-analyst/capabilities/analyze-correlation/runner.py +0 -13
  679. package/runtime/agents/data-scientist-analyst/capabilities/analyze-correlation/workflow.md +0 -6
  680. package/runtime/agents/data-scientist-analyst/capabilities/analyze-sql-source/capability.yaml +0 -23
  681. package/runtime/agents/data-scientist-analyst/capabilities/analyze-sql-source/decision-rules.md +0 -8
  682. package/runtime/agents/data-scientist-analyst/capabilities/analyze-sql-source/runner.py +0 -13
  683. package/runtime/agents/data-scientist-analyst/capabilities/analyze-sql-source/workflow.md +0 -5
  684. package/runtime/agents/data-scientist-analyst/capabilities/analyze-time-series/capability.yaml +0 -23
  685. package/runtime/agents/data-scientist-analyst/capabilities/analyze-time-series/decision-rules.md +0 -8
  686. package/runtime/agents/data-scientist-analyst/capabilities/analyze-time-series/runner.py +0 -13
  687. package/runtime/agents/data-scientist-analyst/capabilities/analyze-time-series/workflow.md +0 -6
  688. package/runtime/agents/data-scientist-analyst/capabilities/baseline-predictive-model/capability.yaml +0 -23
  689. package/runtime/agents/data-scientist-analyst/capabilities/baseline-predictive-model/decision-rules.md +0 -8
  690. package/runtime/agents/data-scientist-analyst/capabilities/baseline-predictive-model/runner.py +0 -13
  691. package/runtime/agents/data-scientist-analyst/capabilities/baseline-predictive-model/workflow.md +0 -6
  692. package/runtime/agents/data-scientist-analyst/capabilities/calculate-confidence-intervals/capability.yaml +0 -23
  693. package/runtime/agents/data-scientist-analyst/capabilities/calculate-confidence-intervals/decision-rules.md +0 -8
  694. package/runtime/agents/data-scientist-analyst/capabilities/calculate-confidence-intervals/runner.py +0 -13
  695. package/runtime/agents/data-scientist-analyst/capabilities/calculate-confidence-intervals/workflow.md +0 -6
  696. package/runtime/agents/data-scientist-analyst/capabilities/calculate-sample-size/capability.yaml +0 -22
  697. package/runtime/agents/data-scientist-analyst/capabilities/calculate-sample-size/decision-rules.md +0 -8
  698. package/runtime/agents/data-scientist-analyst/capabilities/calculate-sample-size/runner.py +0 -13
  699. package/runtime/agents/data-scientist-analyst/capabilities/calculate-sample-size/workflow.md +0 -6
  700. package/runtime/agents/data-scientist-analyst/capabilities/compare-periods/capability.yaml +0 -23
  701. package/runtime/agents/data-scientist-analyst/capabilities/compare-periods/decision-rules.md +0 -8
  702. package/runtime/agents/data-scientist-analyst/capabilities/compare-periods/runner.py +0 -13
  703. package/runtime/agents/data-scientist-analyst/capabilities/compare-periods/workflow.md +0 -6
  704. package/runtime/agents/data-scientist-analyst/capabilities/detect-anomalies/capability.yaml +0 -22
  705. package/runtime/agents/data-scientist-analyst/capabilities/detect-anomalies/decision-rules.md +0 -8
  706. package/runtime/agents/data-scientist-analyst/capabilities/detect-anomalies/runner.py +0 -13
  707. package/runtime/agents/data-scientist-analyst/capabilities/detect-anomalies/workflow.md +0 -6
  708. package/runtime/agents/data-scientist-analyst/capabilities/detect-data-leakage/capability.yaml +0 -23
  709. package/runtime/agents/data-scientist-analyst/capabilities/detect-data-leakage/decision-rules.md +0 -8
  710. package/runtime/agents/data-scientist-analyst/capabilities/detect-data-leakage/runner.py +0 -13
  711. package/runtime/agents/data-scientist-analyst/capabilities/detect-data-leakage/workflow.md +0 -6
  712. package/runtime/agents/data-scientist-analyst/capabilities/detect-outliers/capability.yaml +0 -23
  713. package/runtime/agents/data-scientist-analyst/capabilities/detect-outliers/decision-rules.md +0 -8
  714. package/runtime/agents/data-scientist-analyst/capabilities/detect-outliers/runner.py +0 -13
  715. package/runtime/agents/data-scientist-analyst/capabilities/detect-outliers/workflow.md +0 -6
  716. package/runtime/agents/data-scientist-analyst/capabilities/detect-sensitive-data/capability.yaml +0 -23
  717. package/runtime/agents/data-scientist-analyst/capabilities/detect-sensitive-data/decision-rules.md +0 -8
  718. package/runtime/agents/data-scientist-analyst/capabilities/detect-sensitive-data/runner.py +0 -13
  719. package/runtime/agents/data-scientist-analyst/capabilities/detect-sensitive-data/workflow.md +0 -5
  720. package/runtime/agents/data-scientist-analyst/capabilities/evaluate-model/capability.yaml +0 -23
  721. package/runtime/agents/data-scientist-analyst/capabilities/evaluate-model/decision-rules.md +0 -8
  722. package/runtime/agents/data-scientist-analyst/capabilities/evaluate-model/runner.py +0 -13
  723. package/runtime/agents/data-scientist-analyst/capabilities/evaluate-model/workflow.md +0 -6
  724. package/runtime/agents/data-scientist-analyst/capabilities/explain-model-results/capability.yaml +0 -23
  725. package/runtime/agents/data-scientist-analyst/capabilities/explain-model-results/decision-rules.md +0 -8
  726. package/runtime/agents/data-scientist-analyst/capabilities/explain-model-results/runner.py +0 -13
  727. package/runtime/agents/data-scientist-analyst/capabilities/explain-model-results/workflow.md +0 -6
  728. package/runtime/agents/data-scientist-analyst/capabilities/explain-statistical-result/capability.yaml +0 -23
  729. package/runtime/agents/data-scientist-analyst/capabilities/explain-statistical-result/decision-rules.md +0 -8
  730. package/runtime/agents/data-scientist-analyst/capabilities/explain-statistical-result/runner.py +0 -13
  731. package/runtime/agents/data-scientist-analyst/capabilities/explain-statistical-result/workflow.md +0 -6
  732. package/runtime/agents/data-scientist-analyst/capabilities/forecast-series/capability.yaml +0 -23
  733. package/runtime/agents/data-scientist-analyst/capabilities/forecast-series/decision-rules.md +0 -8
  734. package/runtime/agents/data-scientist-analyst/capabilities/forecast-series/runner.py +0 -13
  735. package/runtime/agents/data-scientist-analyst/capabilities/forecast-series/workflow.md +0 -6
  736. package/runtime/agents/data-scientist-analyst/capabilities/generate-data-report/capability.yaml +0 -23
  737. package/runtime/agents/data-scientist-analyst/capabilities/generate-data-report/decision-rules.md +0 -8
  738. package/runtime/agents/data-scientist-analyst/capabilities/generate-data-report/runner.py +0 -13
  739. package/runtime/agents/data-scientist-analyst/capabilities/generate-data-report/workflow.md +0 -5
  740. package/runtime/agents/data-scientist-analyst/capabilities/generate-reconciliation-report/capability.yaml +0 -23
  741. package/runtime/agents/data-scientist-analyst/capabilities/generate-reconciliation-report/decision-rules.md +0 -8
  742. package/runtime/agents/data-scientist-analyst/capabilities/generate-reconciliation-report/runner.py +0 -13
  743. package/runtime/agents/data-scientist-analyst/capabilities/generate-reconciliation-report/workflow.md +0 -5
  744. package/runtime/agents/data-scientist-analyst/capabilities/ingest-dataset/capability.yaml +0 -23
  745. package/runtime/agents/data-scientist-analyst/capabilities/ingest-dataset/decision-rules.md +0 -8
  746. package/runtime/agents/data-scientist-analyst/capabilities/ingest-dataset/runner.py +0 -13
  747. package/runtime/agents/data-scientist-analyst/capabilities/ingest-dataset/workflow.md +0 -5
  748. package/runtime/agents/data-scientist-analyst/capabilities/inspect-dataset-schema/capability.yaml +0 -23
  749. package/runtime/agents/data-scientist-analyst/capabilities/inspect-dataset-schema/decision-rules.md +0 -8
  750. package/runtime/agents/data-scientist-analyst/capabilities/inspect-dataset-schema/runner.py +0 -13
  751. package/runtime/agents/data-scientist-analyst/capabilities/inspect-dataset-schema/workflow.md +0 -5
  752. package/runtime/agents/data-scientist-analyst/capabilities/measure-effect-size/capability.yaml +0 -23
  753. package/runtime/agents/data-scientist-analyst/capabilities/measure-effect-size/decision-rules.md +0 -8
  754. package/runtime/agents/data-scientist-analyst/capabilities/measure-effect-size/runner.py +0 -13
  755. package/runtime/agents/data-scientist-analyst/capabilities/measure-effect-size/workflow.md +0 -6
  756. package/runtime/agents/data-scientist-analyst/capabilities/monitor-model-drift/capability.yaml +0 -23
  757. package/runtime/agents/data-scientist-analyst/capabilities/monitor-model-drift/decision-rules.md +0 -8
  758. package/runtime/agents/data-scientist-analyst/capabilities/monitor-model-drift/runner.py +0 -13
  759. package/runtime/agents/data-scientist-analyst/capabilities/monitor-model-drift/workflow.md +0 -6
  760. package/runtime/agents/data-scientist-analyst/capabilities/prepare-modeling-dataset/capability.yaml +0 -23
  761. package/runtime/agents/data-scientist-analyst/capabilities/prepare-modeling-dataset/decision-rules.md +0 -8
  762. package/runtime/agents/data-scientist-analyst/capabilities/prepare-modeling-dataset/runner.py +0 -13
  763. package/runtime/agents/data-scientist-analyst/capabilities/prepare-modeling-dataset/workflow.md +0 -6
  764. package/runtime/agents/data-scientist-analyst/capabilities/profile-dataset/capability.yaml +0 -23
  765. package/runtime/agents/data-scientist-analyst/capabilities/profile-dataset/decision-rules.md +0 -8
  766. package/runtime/agents/data-scientist-analyst/capabilities/profile-dataset/runner.py +0 -13
  767. package/runtime/agents/data-scientist-analyst/capabilities/profile-dataset/workflow.md +0 -5
  768. package/runtime/agents/data-scientist-analyst/capabilities/reconcile-spreadsheets/capability.yaml +0 -23
  769. package/runtime/agents/data-scientist-analyst/capabilities/reconcile-spreadsheets/decision-rules.md +0 -8
  770. package/runtime/agents/data-scientist-analyst/capabilities/reconcile-spreadsheets/runner.py +0 -13
  771. package/runtime/agents/data-scientist-analyst/capabilities/reconcile-spreadsheets/workflow.md +0 -6
  772. package/runtime/agents/data-scientist-analyst/capabilities/run-data-pipeline/capability.yaml +0 -23
  773. package/runtime/agents/data-scientist-analyst/capabilities/run-data-pipeline/decision-rules.md +0 -8
  774. package/runtime/agents/data-scientist-analyst/capabilities/run-data-pipeline/runner.py +0 -13
  775. package/runtime/agents/data-scientist-analyst/capabilities/run-data-pipeline/workflow.md +0 -6
  776. package/runtime/agents/data-scientist-analyst/capabilities/run-exploratory-analysis/capability.yaml +0 -23
  777. package/runtime/agents/data-scientist-analyst/capabilities/run-exploratory-analysis/decision-rules.md +0 -8
  778. package/runtime/agents/data-scientist-analyst/capabilities/run-exploratory-analysis/runner.py +0 -13
  779. package/runtime/agents/data-scientist-analyst/capabilities/run-exploratory-analysis/workflow.md +0 -6
  780. package/runtime/agents/data-scientist-analyst/capabilities/segment-data/capability.yaml +0 -23
  781. package/runtime/agents/data-scientist-analyst/capabilities/segment-data/decision-rules.md +0 -8
  782. package/runtime/agents/data-scientist-analyst/capabilities/segment-data/runner.py +0 -13
  783. package/runtime/agents/data-scientist-analyst/capabilities/segment-data/workflow.md +0 -6
  784. package/runtime/agents/data-scientist-analyst/capabilities/test-hypothesis/capability.yaml +0 -23
  785. package/runtime/agents/data-scientist-analyst/capabilities/test-hypothesis/decision-rules.md +0 -8
  786. package/runtime/agents/data-scientist-analyst/capabilities/test-hypothesis/runner.py +0 -13
  787. package/runtime/agents/data-scientist-analyst/capabilities/test-hypothesis/workflow.md +0 -6
  788. package/runtime/agents/data-scientist-analyst/infra/integrations/agent-bridge/methods/analyze-sql-source.yaml +0 -4
  789. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/artifacts.py +0 -15
  790. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/data_repository.py +0 -1226
  791. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/dataset_controls.py +0 -46
  792. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/dataset_io.py +0 -150
  793. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/dataset_models.py +0 -22
  794. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/analyze-cohorts.yaml +0 -4
  795. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/analyze-correlation.yaml +0 -4
  796. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/analyze-time-series.yaml +0 -4
  797. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/baseline-predictive-model.yaml +0 -4
  798. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/calculate-confidence-intervals.yaml +0 -4
  799. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/calculate-sample-size.yaml +0 -4
  800. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/compare-periods.yaml +0 -4
  801. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/detect-anomalies.yaml +0 -4
  802. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/detect-data-leakage.yaml +0 -4
  803. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/detect-outliers.yaml +0 -4
  804. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/detect-sensitive-data.yaml +0 -4
  805. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/evaluate-model.yaml +0 -4
  806. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/explain-model-results.yaml +0 -4
  807. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/explain-statistical-result.yaml +0 -4
  808. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/forecast-series.yaml +0 -4
  809. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/generate-data-report.yaml +0 -4
  810. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/generate-reconciliation-report.yaml +0 -4
  811. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/ingest-dataset.yaml +0 -4
  812. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/inspect-dataset-schema.yaml +0 -4
  813. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/measure-effect-size.yaml +0 -4
  814. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/monitor-model-drift.yaml +0 -4
  815. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/prepare-modeling-dataset.yaml +0 -4
  816. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/profile-dataset.yaml +0 -4
  817. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/reconcile-spreadsheets.yaml +0 -4
  818. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/run-data-pipeline.yaml +0 -27
  819. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/run-exploratory-analysis.yaml +0 -4
  820. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/segment-data.yaml +0 -4
  821. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/methods/test-hypothesis.yaml +0 -4
  822. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/modeling_tools.py +0 -219
  823. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/privacy.py +0 -124
  824. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/profiling.py +0 -267
  825. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/reconciliation_tools.py +0 -68
  826. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/reporting.py +0 -94
  827. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/sql_result.py +0 -100
  828. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/statistics_tools.py +0 -247
  829. package/runtime/agents/data-scientist-analyst/infra/integrations/file-dataset/time_series_tools.py +0 -195
  830. package/runtime/agents/data-scientist-analyst/knowledge/analysis-methods.md +0 -30
  831. package/runtime/agents/data-scientist-analyst/knowledge/context.md +0 -16
  832. package/runtime/agents/data-scientist-analyst/knowledge/contracts/analyze-sql-source.schema.json +0 -14
  833. package/runtime/agents/data-scientist-analyst/knowledge/contracts/evaluate-model.schema.json +0 -15
  834. package/runtime/agents/data-scientist-analyst/knowledge/contracts/profile-dataset.schema.json +0 -13
  835. package/runtime/agents/data-scientist-analyst/knowledge/contracts/run-data-pipeline.schema.json +0 -14
  836. package/runtime/agents/data-scientist-analyst/knowledge/data-policies.md +0 -8
  837. package/runtime/agents/data-scientist-analyst/knowledge/health-checklist.md +0 -34
  838. package/runtime/agents/data-scientist-analyst/knowledge/operational-runbook.md +0 -47
  839. package/runtime/agents/data-scientist-analyst/knowledge/policies.yaml +0 -77
  840. package/runtime/agents/data-scientist-analyst/knowledge/prompts/analyze-cohorts.md +0 -33
  841. package/runtime/agents/data-scientist-analyst/knowledge/prompts/analyze-correlation.md +0 -33
  842. package/runtime/agents/data-scientist-analyst/knowledge/prompts/analyze-sql-source.md +0 -44
  843. package/runtime/agents/data-scientist-analyst/knowledge/prompts/analyze-time-series.md +0 -36
  844. package/runtime/agents/data-scientist-analyst/knowledge/prompts/baseline-predictive-model.md +0 -34
  845. package/runtime/agents/data-scientist-analyst/knowledge/prompts/calculate-confidence-intervals.md +0 -34
  846. package/runtime/agents/data-scientist-analyst/knowledge/prompts/calculate-sample-size.md +0 -33
  847. package/runtime/agents/data-scientist-analyst/knowledge/prompts/compare-periods.md +0 -34
  848. package/runtime/agents/data-scientist-analyst/knowledge/prompts/detect-anomalies.md +0 -33
  849. package/runtime/agents/data-scientist-analyst/knowledge/prompts/detect-data-leakage.md +0 -33
  850. package/runtime/agents/data-scientist-analyst/knowledge/prompts/detect-outliers.md +0 -37
  851. package/runtime/agents/data-scientist-analyst/knowledge/prompts/detect-sensitive-data.md +0 -38
  852. package/runtime/agents/data-scientist-analyst/knowledge/prompts/evaluate-model.md +0 -34
  853. package/runtime/agents/data-scientist-analyst/knowledge/prompts/explain-model-results.md +0 -33
  854. package/runtime/agents/data-scientist-analyst/knowledge/prompts/explain-statistical-result.md +0 -36
  855. package/runtime/agents/data-scientist-analyst/knowledge/prompts/forecast-series.md +0 -34
  856. package/runtime/agents/data-scientist-analyst/knowledge/prompts/generate-data-report.md +0 -36
  857. package/runtime/agents/data-scientist-analyst/knowledge/prompts/generate-reconciliation-report.md +0 -35
  858. package/runtime/agents/data-scientist-analyst/knowledge/prompts/ingest-dataset.md +0 -35
  859. package/runtime/agents/data-scientist-analyst/knowledge/prompts/inspect-dataset-schema.md +0 -36
  860. package/runtime/agents/data-scientist-analyst/knowledge/prompts/measure-effect-size.md +0 -34
  861. package/runtime/agents/data-scientist-analyst/knowledge/prompts/monitor-model-drift.md +0 -33
  862. package/runtime/agents/data-scientist-analyst/knowledge/prompts/prepare-modeling-dataset.md +0 -35
  863. package/runtime/agents/data-scientist-analyst/knowledge/prompts/profile-dataset.md +0 -40
  864. package/runtime/agents/data-scientist-analyst/knowledge/prompts/reconcile-spreadsheets.md +0 -40
  865. package/runtime/agents/data-scientist-analyst/knowledge/prompts/run-data-pipeline.md +0 -34
  866. package/runtime/agents/data-scientist-analyst/knowledge/prompts/run-exploratory-analysis.md +0 -34
  867. package/runtime/agents/data-scientist-analyst/knowledge/prompts/segment-data.md +0 -33
  868. package/runtime/agents/data-scientist-analyst/knowledge/prompts/test-hypothesis.md +0 -36
  869. package/runtime/agents/data-scientist-analyst/knowledge/system.md +0 -54
  870. package/runtime/agents/data-scientist-analyst/templates/data-report.md +0 -53
  871. package/runtime/agents/data-scientist-analyst/templates/reconciliation-report.md +0 -41
  872. package/runtime/agents/data-scientist-analyst/tests/test_runners.py +0 -1480
  873. package/runtime/agents/database-change-operator/AGENTS.md +0 -29
  874. package/runtime/agents/database-change-operator/README.md +0 -36
  875. package/runtime/agents/database-change-operator/agent.yaml +0 -68
  876. package/runtime/agents/database-change-operator/capabilities/_shared/runner_support.py +0 -115
  877. package/runtime/agents/database-change-operator/capabilities/apply-migration/capability.yaml +0 -23
  878. package/runtime/agents/database-change-operator/capabilities/apply-migration/decision-rules.md +0 -8
  879. package/runtime/agents/database-change-operator/capabilities/apply-migration/runner.py +0 -52
  880. package/runtime/agents/database-change-operator/capabilities/apply-migration/workflow.md +0 -8
  881. package/runtime/agents/database-change-operator/capabilities/migration-report/capability.yaml +0 -22
  882. package/runtime/agents/database-change-operator/capabilities/migration-report/decision-rules.md +0 -5
  883. package/runtime/agents/database-change-operator/capabilities/migration-report/runner.py +0 -41
  884. package/runtime/agents/database-change-operator/capabilities/migration-report/workflow.md +0 -5
  885. package/runtime/agents/database-change-operator/capabilities/plan-migration/capability.yaml +0 -23
  886. package/runtime/agents/database-change-operator/capabilities/plan-migration/decision-rules.md +0 -6
  887. package/runtime/agents/database-change-operator/capabilities/plan-migration/runner.py +0 -36
  888. package/runtime/agents/database-change-operator/capabilities/plan-migration/workflow.md +0 -8
  889. package/runtime/agents/database-change-operator/capabilities/rollback-migration/capability.yaml +0 -23
  890. package/runtime/agents/database-change-operator/capabilities/rollback-migration/decision-rules.md +0 -9
  891. package/runtime/agents/database-change-operator/capabilities/rollback-migration/runner.py +0 -50
  892. package/runtime/agents/database-change-operator/capabilities/rollback-migration/workflow.md +0 -7
  893. package/runtime/agents/database-change-operator/capabilities/run-write-script/capability.yaml +0 -23
  894. package/runtime/agents/database-change-operator/capabilities/run-write-script/decision-rules.md +0 -9
  895. package/runtime/agents/database-change-operator/capabilities/run-write-script/runner.py +0 -54
  896. package/runtime/agents/database-change-operator/capabilities/run-write-script/workflow.md +0 -7
  897. package/runtime/agents/database-change-operator/capabilities/test-write-permissions/capability.yaml +0 -22
  898. package/runtime/agents/database-change-operator/capabilities/test-write-permissions/decision-rules.md +0 -8
  899. package/runtime/agents/database-change-operator/capabilities/test-write-permissions/runner.py +0 -51
  900. package/runtime/agents/database-change-operator/capabilities/test-write-permissions/workflow.md +0 -6
  901. package/runtime/agents/database-change-operator/capabilities/update-records/capability.yaml +0 -23
  902. package/runtime/agents/database-change-operator/capabilities/update-records/decision-rules.md +0 -9
  903. package/runtime/agents/database-change-operator/capabilities/update-records/runner.py +0 -68
  904. package/runtime/agents/database-change-operator/capabilities/update-records/workflow.md +0 -7
  905. package/runtime/agents/database-change-operator/capabilities/upsert-records/capability.yaml +0 -23
  906. package/runtime/agents/database-change-operator/capabilities/upsert-records/decision-rules.md +0 -9
  907. package/runtime/agents/database-change-operator/capabilities/upsert-records/runner.py +0 -63
  908. package/runtime/agents/database-change-operator/capabilities/upsert-records/workflow.md +0 -7
  909. package/runtime/agents/database-change-operator/infra/README.md +0 -3
  910. package/runtime/agents/database-change-operator/infra/integrations/postgres/README.md +0 -6
  911. package/runtime/agents/database-change-operator/infra/integrations/postgres/cli.py +0 -97
  912. package/runtime/agents/database-change-operator/infra/integrations/postgres/database_change_repository.py +0 -581
  913. package/runtime/agents/database-change-operator/infra/integrations/postgres/env.example +0 -3
  914. package/runtime/agents/database-change-operator/infra/integrations/postgres/integration.yaml +0 -30
  915. package/runtime/agents/database-change-operator/infra/integrations/postgres/mcp/README.md +0 -3
  916. package/runtime/agents/database-change-operator/infra/integrations/postgres/methods/apply-migration.yaml +0 -8
  917. package/runtime/agents/database-change-operator/infra/integrations/postgres/methods/migration-report.yaml +0 -7
  918. package/runtime/agents/database-change-operator/infra/integrations/postgres/methods/plan-migration.yaml +0 -8
  919. package/runtime/agents/database-change-operator/infra/integrations/postgres/methods/rollback-migration.yaml +0 -8
  920. package/runtime/agents/database-change-operator/infra/integrations/postgres/methods/run-write-script.yaml +0 -8
  921. package/runtime/agents/database-change-operator/infra/integrations/postgres/methods/test-write-permissions.yaml +0 -7
  922. package/runtime/agents/database-change-operator/infra/integrations/postgres/methods/update-records.yaml +0 -8
  923. package/runtime/agents/database-change-operator/infra/integrations/postgres/methods/upsert-records.yaml +0 -8
  924. package/runtime/agents/database-change-operator/infra/integrations/postgres/models/README.md +0 -3
  925. package/runtime/agents/database-change-operator/infra/integrations/postgres/tests/test_repository.py +0 -116
  926. package/runtime/agents/database-change-operator/knowledge/README.md +0 -13
  927. package/runtime/agents/database-change-operator/knowledge/context.md +0 -9
  928. package/runtime/agents/database-change-operator/knowledge/policies.yaml +0 -44
  929. package/runtime/agents/database-change-operator/knowledge/prompts/README.md +0 -7
  930. package/runtime/agents/database-change-operator/knowledge/prompts/apply-migration.md +0 -24
  931. package/runtime/agents/database-change-operator/knowledge/prompts/migration-report.md +0 -13
  932. package/runtime/agents/database-change-operator/knowledge/prompts/plan-migration.md +0 -22
  933. package/runtime/agents/database-change-operator/knowledge/prompts/rollback-migration.md +0 -21
  934. package/runtime/agents/database-change-operator/knowledge/prompts/run-write-script.md +0 -23
  935. package/runtime/agents/database-change-operator/knowledge/prompts/test-write-permissions.md +0 -20
  936. package/runtime/agents/database-change-operator/knowledge/prompts/update-records.md +0 -24
  937. package/runtime/agents/database-change-operator/knowledge/prompts/upsert-records.md +0 -23
  938. package/runtime/agents/database-change-operator/knowledge/system.md +0 -47
  939. package/runtime/agents/database-change-operator/templates/README.md +0 -8
  940. package/runtime/agents/database-change-operator/templates/apply-migration-output.md +0 -31
  941. package/runtime/agents/database-change-operator/templates/migration-report-output.md +0 -14
  942. package/runtime/agents/database-change-operator/templates/plan-migration-output.md +0 -21
  943. package/runtime/agents/database-change-operator/templates/rollback-migration-output.md +0 -30
  944. package/runtime/agents/database-change-operator/templates/run-write-script-output.md +0 -29
  945. package/runtime/agents/database-change-operator/templates/test-write-permissions-output.md +0 -18
  946. package/runtime/agents/database-change-operator/templates/update-records-output.md +0 -31
  947. package/runtime/agents/database-change-operator/templates/upsert-records-output.md +0 -31
  948. package/runtime/agents/database-change-operator/tests/test_agentic_contracts.py +0 -48
  949. package/runtime/agents/database-change-operator/tests/test_runners.py +0 -161
  950. package/runtime/agents/docker-container-builder/AGENTS.md +0 -27
  951. package/runtime/agents/docker-container-builder/README.md +0 -21
  952. package/runtime/agents/docker-container-builder/agent.yaml +0 -52
  953. package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/capability.yaml +0 -18
  954. package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/decision-rules.md +0 -6
  955. package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/runner.py +0 -32
  956. package/runtime/agents/docker-container-builder/capabilities/analyze-containerization-target/workflow.md +0 -6
  957. package/runtime/agents/docker-container-builder/capabilities/generate-compose/capability.yaml +0 -18
  958. package/runtime/agents/docker-container-builder/capabilities/generate-compose/decision-rules.md +0 -7
  959. package/runtime/agents/docker-container-builder/capabilities/generate-compose/runner.py +0 -32
  960. package/runtime/agents/docker-container-builder/capabilities/generate-compose/workflow.md +0 -6
  961. package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/capability.yaml +0 -20
  962. package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/decision-rules.md +0 -7
  963. package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/runner.py +0 -38
  964. package/runtime/agents/docker-container-builder/capabilities/generate-container-project-files/workflow.md +0 -7
  965. package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/capability.yaml +0 -18
  966. package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/decision-rules.md +0 -6
  967. package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/runner.py +0 -32
  968. package/runtime/agents/docker-container-builder/capabilities/generate-dockerfile/workflow.md +0 -7
  969. package/runtime/agents/docker-container-builder/capabilities/plan-image-build/capability.yaml +0 -18
  970. package/runtime/agents/docker-container-builder/capabilities/plan-image-build/decision-rules.md +0 -6
  971. package/runtime/agents/docker-container-builder/capabilities/plan-image-build/runner.py +0 -32
  972. package/runtime/agents/docker-container-builder/capabilities/plan-image-build/workflow.md +0 -6
  973. package/runtime/agents/docker-container-builder/capabilities/review-docker-security/capability.yaml +0 -21
  974. package/runtime/agents/docker-container-builder/capabilities/review-docker-security/decision-rules.md +0 -6
  975. package/runtime/agents/docker-container-builder/capabilities/review-docker-security/runner.py +0 -43
  976. package/runtime/agents/docker-container-builder/capabilities/review-docker-security/workflow.md +0 -5
  977. package/runtime/agents/docker-container-builder/infra/integrations/docker-container/docker_container_repository.py +0 -837
  978. package/runtime/agents/docker-container-builder/knowledge/context.md +0 -21
  979. package/runtime/agents/docker-container-builder/knowledge/policies.yaml +0 -13
  980. package/runtime/agents/docker-container-builder/knowledge/system.md +0 -21
  981. package/runtime/agents/docker-container-builder/templates/container-plan.md +0 -4
  982. package/runtime/agents/docker-container-builder/templates/container-review.md +0 -4
  983. package/runtime/agents/docker-container-builder/templates/docker-compose.md +0 -5
  984. package/runtime/agents/docker-container-builder/templates/docker-readme.md +0 -3
  985. package/runtime/agents/docker-container-builder/templates/dockerfile.md +0 -5
  986. package/runtime/agents/docker-container-builder/tests/test_runners.py +0 -255
  987. package/runtime/agents/drawio-diagram-builder/AGENTS.md +0 -35
  988. package/runtime/agents/drawio-diagram-builder/README.md +0 -53
  989. package/runtime/agents/drawio-diagram-builder/agent.yaml +0 -69
  990. package/runtime/agents/drawio-diagram-builder/capabilities/_shared/runner_support.py +0 -496
  991. package/runtime/agents/drawio-diagram-builder/capabilities/analyze-diagram-context/capability.yaml +0 -20
  992. package/runtime/agents/drawio-diagram-builder/capabilities/analyze-diagram-context/decision-rules.md +0 -8
  993. package/runtime/agents/drawio-diagram-builder/capabilities/analyze-diagram-context/runner.py +0 -9
  994. package/runtime/agents/drawio-diagram-builder/capabilities/analyze-diagram-context/workflow.md +0 -28
  995. package/runtime/agents/drawio-diagram-builder/capabilities/conduct-diagram-interview/capability.yaml +0 -21
  996. package/runtime/agents/drawio-diagram-builder/capabilities/conduct-diagram-interview/decision-rules.md +0 -8
  997. package/runtime/agents/drawio-diagram-builder/capabilities/conduct-diagram-interview/runner.py +0 -9
  998. package/runtime/agents/drawio-diagram-builder/capabilities/conduct-diagram-interview/workflow.md +0 -21
  999. package/runtime/agents/drawio-diagram-builder/capabilities/execute-diagram-delivery/capability.yaml +0 -20
  1000. package/runtime/agents/drawio-diagram-builder/capabilities/execute-diagram-delivery/decision-rules.md +0 -8
  1001. package/runtime/agents/drawio-diagram-builder/capabilities/execute-diagram-delivery/runner.py +0 -9
  1002. package/runtime/agents/drawio-diagram-builder/capabilities/execute-diagram-delivery/workflow.md +0 -27
  1003. package/runtime/agents/drawio-diagram-builder/capabilities/generate-architecture-diagram/capability.yaml +0 -20
  1004. package/runtime/agents/drawio-diagram-builder/capabilities/generate-architecture-diagram/decision-rules.md +0 -8
  1005. package/runtime/agents/drawio-diagram-builder/capabilities/generate-architecture-diagram/runner.py +0 -9
  1006. package/runtime/agents/drawio-diagram-builder/capabilities/generate-architecture-diagram/workflow.md +0 -24
  1007. package/runtime/agents/drawio-diagram-builder/capabilities/generate-drawio-diagram/capability.yaml +0 -19
  1008. package/runtime/agents/drawio-diagram-builder/capabilities/generate-drawio-diagram/decision-rules.md +0 -8
  1009. package/runtime/agents/drawio-diagram-builder/capabilities/generate-drawio-diagram/runner.py +0 -9
  1010. package/runtime/agents/drawio-diagram-builder/capabilities/generate-drawio-diagram/workflow.md +0 -22
  1011. package/runtime/agents/drawio-diagram-builder/capabilities/generate-erd-diagram/capability.yaml +0 -20
  1012. package/runtime/agents/drawio-diagram-builder/capabilities/generate-erd-diagram/decision-rules.md +0 -8
  1013. package/runtime/agents/drawio-diagram-builder/capabilities/generate-erd-diagram/runner.py +0 -9
  1014. package/runtime/agents/drawio-diagram-builder/capabilities/generate-erd-diagram/workflow.md +0 -20
  1015. package/runtime/agents/drawio-diagram-builder/capabilities/generate-flow-diagram/capability.yaml +0 -20
  1016. package/runtime/agents/drawio-diagram-builder/capabilities/generate-flow-diagram/decision-rules.md +0 -8
  1017. package/runtime/agents/drawio-diagram-builder/capabilities/generate-flow-diagram/runner.py +0 -9
  1018. package/runtime/agents/drawio-diagram-builder/capabilities/generate-flow-diagram/workflow.md +0 -21
  1019. package/runtime/agents/drawio-diagram-builder/capabilities/ingest-diagram-sources/capability.yaml +0 -20
  1020. package/runtime/agents/drawio-diagram-builder/capabilities/ingest-diagram-sources/decision-rules.md +0 -8
  1021. package/runtime/agents/drawio-diagram-builder/capabilities/ingest-diagram-sources/runner.py +0 -9
  1022. package/runtime/agents/drawio-diagram-builder/capabilities/ingest-diagram-sources/workflow.md +0 -23
  1023. package/runtime/agents/drawio-diagram-builder/capabilities/plan-diagram/capability.yaml +0 -20
  1024. package/runtime/agents/drawio-diagram-builder/capabilities/plan-diagram/decision-rules.md +0 -8
  1025. package/runtime/agents/drawio-diagram-builder/capabilities/plan-diagram/runner.py +0 -9
  1026. package/runtime/agents/drawio-diagram-builder/capabilities/plan-diagram/workflow.md +0 -20
  1027. package/runtime/agents/drawio-diagram-builder/capabilities/read-azure-card-context/capability.yaml +0 -20
  1028. package/runtime/agents/drawio-diagram-builder/capabilities/read-azure-card-context/decision-rules.md +0 -8
  1029. package/runtime/agents/drawio-diagram-builder/capabilities/read-azure-card-context/runner.py +0 -9
  1030. package/runtime/agents/drawio-diagram-builder/capabilities/read-azure-card-context/workflow.md +0 -21
  1031. package/runtime/agents/drawio-diagram-builder/capabilities/refine-drawio-diagram/capability.yaml +0 -20
  1032. package/runtime/agents/drawio-diagram-builder/capabilities/refine-drawio-diagram/decision-rules.md +0 -8
  1033. package/runtime/agents/drawio-diagram-builder/capabilities/refine-drawio-diagram/runner.py +0 -9
  1034. package/runtime/agents/drawio-diagram-builder/capabilities/refine-drawio-diagram/workflow.md +0 -22
  1035. package/runtime/agents/drawio-diagram-builder/capabilities/review-drawio-diagram/capability.yaml +0 -20
  1036. package/runtime/agents/drawio-diagram-builder/capabilities/review-drawio-diagram/decision-rules.md +0 -8
  1037. package/runtime/agents/drawio-diagram-builder/capabilities/review-drawio-diagram/runner.py +0 -9
  1038. package/runtime/agents/drawio-diagram-builder/capabilities/review-drawio-diagram/workflow.md +0 -28
  1039. package/runtime/agents/drawio-diagram-builder/infra/integrations/drawio/drawio_renderer.py +0 -498
  1040. package/runtime/agents/drawio-diagram-builder/infra/integrations/drawio/layout_engine.py +0 -17
  1041. package/runtime/agents/drawio-diagram-builder/infra/integrations/drawio/source_reader.py +0 -212
  1042. package/runtime/agents/drawio-diagram-builder/infra/integrations/drawio/spec_builder.py +0 -282
  1043. package/runtime/agents/drawio-diagram-builder/infra/integrations/drawio/validators.py +0 -203
  1044. package/runtime/agents/drawio-diagram-builder/knowledge/context.md +0 -32
  1045. package/runtime/agents/drawio-diagram-builder/knowledge/diagram-taxonomy.yaml +0 -57
  1046. package/runtime/agents/drawio-diagram-builder/knowledge/policies.yaml +0 -68
  1047. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/analyze-diagram-context.md +0 -32
  1048. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/conduct-diagram-interview.md +0 -23
  1049. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/execute-diagram-delivery.md +0 -27
  1050. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/generate-architecture-diagram.md +0 -23
  1051. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/generate-drawio-diagram.md +0 -23
  1052. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/generate-erd-diagram.md +0 -22
  1053. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/generate-flow-diagram.md +0 -23
  1054. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/ingest-diagram-sources.md +0 -24
  1055. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/plan-diagram.md +0 -22
  1056. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/read-azure-card-context.md +0 -21
  1057. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/refine-drawio-diagram.md +0 -25
  1058. package/runtime/agents/drawio-diagram-builder/knowledge/prompts/review-drawio-diagram.md +0 -30
  1059. package/runtime/agents/drawio-diagram-builder/knowledge/system.md +0 -52
  1060. package/runtime/agents/drawio-diagram-builder/knowledge/visual-rules.md +0 -12
  1061. package/runtime/agents/drawio-diagram-builder/templates/diagram-spec.schema.json +0 -42
  1062. package/runtime/agents/drawio-diagram-builder/templates/shape-library.yaml +0 -10
  1063. package/runtime/agents/drawio-diagram-builder/templates/style-presets.yaml +0 -28
  1064. package/runtime/agents/drawio-diagram-builder/tests/__init__.py +0 -0
  1065. package/runtime/agents/drawio-diagram-builder/tests/test_refine.py +0 -144
  1066. package/runtime/agents/drawio-diagram-builder/tests/test_renderer.py +0 -208
  1067. package/runtime/agents/drawio-diagram-builder/tests/test_source_reader.py +0 -62
  1068. package/runtime/agents/drawio-diagram-builder/tests/test_specs.py +0 -189
  1069. package/runtime/agents/drawio-diagram-builder/tests/test_validators.py +0 -198
  1070. package/runtime/agents/elasticsearch-log-analyzer/AGENTS.md +0 -28
  1071. package/runtime/agents/elasticsearch-log-analyzer/README.md +0 -53
  1072. package/runtime/agents/elasticsearch-log-analyzer/agent.yaml +0 -66
  1073. package/runtime/agents/elasticsearch-log-analyzer/capabilities/_shared/runner_support.py +0 -123
  1074. package/runtime/agents/elasticsearch-log-analyzer/capabilities/analyze-service-errors/capability.yaml +0 -39
  1075. package/runtime/agents/elasticsearch-log-analyzer/capabilities/analyze-service-errors/decision-rules.md +0 -6
  1076. package/runtime/agents/elasticsearch-log-analyzer/capabilities/analyze-service-errors/runner.py +0 -118
  1077. package/runtime/agents/elasticsearch-log-analyzer/capabilities/analyze-service-errors/workflow.md +0 -6
  1078. package/runtime/agents/elasticsearch-log-analyzer/capabilities/correlate-azure-card-logs/capability.yaml +0 -22
  1079. package/runtime/agents/elasticsearch-log-analyzer/capabilities/correlate-azure-card-logs/decision-rules.md +0 -6
  1080. package/runtime/agents/elasticsearch-log-analyzer/capabilities/correlate-azure-card-logs/runner.py +0 -82
  1081. package/runtime/agents/elasticsearch-log-analyzer/capabilities/correlate-azure-card-logs/workflow.md +0 -5
  1082. package/runtime/agents/elasticsearch-log-analyzer/capabilities/detect-error-patterns/capability.yaml +0 -24
  1083. package/runtime/agents/elasticsearch-log-analyzer/capabilities/detect-error-patterns/decision-rules.md +0 -6
  1084. package/runtime/agents/elasticsearch-log-analyzer/capabilities/detect-error-patterns/runner.py +0 -93
  1085. package/runtime/agents/elasticsearch-log-analyzer/capabilities/detect-error-patterns/workflow.md +0 -6
  1086. package/runtime/agents/elasticsearch-log-analyzer/capabilities/extract-log-samples/capability.yaml +0 -23
  1087. package/runtime/agents/elasticsearch-log-analyzer/capabilities/extract-log-samples/decision-rules.md +0 -7
  1088. package/runtime/agents/elasticsearch-log-analyzer/capabilities/extract-log-samples/runner.py +0 -66
  1089. package/runtime/agents/elasticsearch-log-analyzer/capabilities/extract-log-samples/workflow.md +0 -5
  1090. package/runtime/agents/elasticsearch-log-analyzer/capabilities/generate-log-report/capability.yaml +0 -26
  1091. package/runtime/agents/elasticsearch-log-analyzer/capabilities/generate-log-report/decision-rules.md +0 -6
  1092. package/runtime/agents/elasticsearch-log-analyzer/capabilities/generate-log-report/runner.py +0 -129
  1093. package/runtime/agents/elasticsearch-log-analyzer/capabilities/generate-log-report/workflow.md +0 -6
  1094. package/runtime/agents/elasticsearch-log-analyzer/capabilities/list-log-sources/capability.yaml +0 -22
  1095. package/runtime/agents/elasticsearch-log-analyzer/capabilities/list-log-sources/decision-rules.md +0 -6
  1096. package/runtime/agents/elasticsearch-log-analyzer/capabilities/list-log-sources/runner.py +0 -50
  1097. package/runtime/agents/elasticsearch-log-analyzer/capabilities/list-log-sources/workflow.md +0 -6
  1098. package/runtime/agents/elasticsearch-log-analyzer/capabilities/search-log-events/capability.yaml +0 -35
  1099. package/runtime/agents/elasticsearch-log-analyzer/capabilities/search-log-events/decision-rules.md +0 -6
  1100. package/runtime/agents/elasticsearch-log-analyzer/capabilities/search-log-events/runner.py +0 -78
  1101. package/runtime/agents/elasticsearch-log-analyzer/capabilities/search-log-events/workflow.md +0 -7
  1102. package/runtime/agents/elasticsearch-log-analyzer/capabilities/trace-request/capability.yaml +0 -23
  1103. package/runtime/agents/elasticsearch-log-analyzer/capabilities/trace-request/decision-rules.md +0 -7
  1104. package/runtime/agents/elasticsearch-log-analyzer/capabilities/trace-request/runner.py +0 -70
  1105. package/runtime/agents/elasticsearch-log-analyzer/capabilities/trace-request/workflow.md +0 -6
  1106. package/runtime/agents/elasticsearch-log-analyzer/infra/README.md +0 -7
  1107. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/README.md +0 -37
  1108. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/cli.py +0 -96
  1109. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/elasticsearch_repository.py +0 -458
  1110. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/env.example +0 -5
  1111. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/integration.yaml +0 -30
  1112. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/mcp/README.md +0 -3
  1113. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/methods/aggregate-terms.yaml +0 -8
  1114. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/methods/aggregate-timeline.yaml +0 -8
  1115. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/methods/count-events.yaml +0 -8
  1116. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/methods/describe-source.yaml +0 -7
  1117. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/methods/get-event.yaml +0 -7
  1118. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/methods/list-sources.yaml +0 -7
  1119. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/methods/render-query.yaml +0 -8
  1120. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/methods/search-events.yaml +0 -8
  1121. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/models/README.md +0 -3
  1122. package/runtime/agents/elasticsearch-log-analyzer/infra/integrations/elasticsearch/tests/test_repository.py +0 -159
  1123. package/runtime/agents/elasticsearch-log-analyzer/knowledge/README.md +0 -4
  1124. package/runtime/agents/elasticsearch-log-analyzer/knowledge/context.md +0 -10
  1125. package/runtime/agents/elasticsearch-log-analyzer/knowledge/policies.yaml +0 -33
  1126. package/runtime/agents/elasticsearch-log-analyzer/knowledge/prompts/README.md +0 -3
  1127. package/runtime/agents/elasticsearch-log-analyzer/knowledge/prompts/analyze-service-errors.md +0 -27
  1128. package/runtime/agents/elasticsearch-log-analyzer/knowledge/prompts/correlate-azure-card-logs.md +0 -30
  1129. package/runtime/agents/elasticsearch-log-analyzer/knowledge/prompts/detect-error-patterns.md +0 -26
  1130. package/runtime/agents/elasticsearch-log-analyzer/knowledge/prompts/extract-log-samples.md +0 -27
  1131. package/runtime/agents/elasticsearch-log-analyzer/knowledge/prompts/generate-log-report.md +0 -29
  1132. package/runtime/agents/elasticsearch-log-analyzer/knowledge/prompts/list-log-sources.md +0 -27
  1133. package/runtime/agents/elasticsearch-log-analyzer/knowledge/prompts/search-log-events.md +0 -28
  1134. package/runtime/agents/elasticsearch-log-analyzer/knowledge/prompts/trace-request.md +0 -27
  1135. package/runtime/agents/elasticsearch-log-analyzer/knowledge/system.md +0 -42
  1136. package/runtime/agents/elasticsearch-log-analyzer/templates/README.md +0 -3
  1137. package/runtime/agents/elasticsearch-log-analyzer/templates/analyze-service-errors-output.md +0 -21
  1138. package/runtime/agents/elasticsearch-log-analyzer/templates/correlate-azure-card-logs-output.md +0 -24
  1139. package/runtime/agents/elasticsearch-log-analyzer/templates/detect-error-patterns-output.md +0 -17
  1140. package/runtime/agents/elasticsearch-log-analyzer/templates/extract-log-samples-output.md +0 -10
  1141. package/runtime/agents/elasticsearch-log-analyzer/templates/generate-log-report-output.md +0 -35
  1142. package/runtime/agents/elasticsearch-log-analyzer/templates/list-log-sources-output.md +0 -21
  1143. package/runtime/agents/elasticsearch-log-analyzer/templates/search-log-events-output.md +0 -20
  1144. package/runtime/agents/elasticsearch-log-analyzer/templates/trace-request-output.md +0 -18
  1145. package/runtime/agents/elasticsearch-log-analyzer/tests/test_agentic_contracts.py +0 -45
  1146. package/runtime/agents/elasticsearch-log-analyzer/tests/test_guardrails.py +0 -217
  1147. package/runtime/agents/elasticsearch-log-analyzer/tests/test_runners.py +0 -127
  1148. package/runtime/agents/excel-workbook-builder/AGENTS.md +0 -21
  1149. package/runtime/agents/excel-workbook-builder/README.md +0 -51
  1150. package/runtime/agents/excel-workbook-builder/agent.yaml +0 -78
  1151. package/runtime/agents/excel-workbook-builder/capabilities/_shared/advanced_ops.py +0 -351
  1152. package/runtime/agents/excel-workbook-builder/capabilities/_shared/template_binding.py +0 -40
  1153. package/runtime/agents/excel-workbook-builder/capabilities/_shared/template_ops.py +0 -251
  1154. package/runtime/agents/excel-workbook-builder/capabilities/_shared/workbook_support.py +0 -963
  1155. package/runtime/agents/excel-workbook-builder/capabilities/add-formulas-and-validations/capability.yaml +0 -15
  1156. package/runtime/agents/excel-workbook-builder/capabilities/add-formulas-and-validations/decision-rules.md +0 -8
  1157. package/runtime/agents/excel-workbook-builder/capabilities/add-formulas-and-validations/runner.py +0 -9
  1158. package/runtime/agents/excel-workbook-builder/capabilities/add-formulas-and-validations/workflow.md +0 -26
  1159. package/runtime/agents/excel-workbook-builder/capabilities/compare-template-versions/capability.yaml +0 -14
  1160. package/runtime/agents/excel-workbook-builder/capabilities/compare-template-versions/decision-rules.md +0 -8
  1161. package/runtime/agents/excel-workbook-builder/capabilities/compare-template-versions/runner.py +0 -9
  1162. package/runtime/agents/excel-workbook-builder/capabilities/compare-template-versions/workflow.md +0 -23
  1163. package/runtime/agents/excel-workbook-builder/capabilities/create-adjustment-suggestions/capability.yaml +0 -14
  1164. package/runtime/agents/excel-workbook-builder/capabilities/create-adjustment-suggestions/decision-rules.md +0 -8
  1165. package/runtime/agents/excel-workbook-builder/capabilities/create-adjustment-suggestions/runner.py +0 -9
  1166. package/runtime/agents/excel-workbook-builder/capabilities/create-adjustment-suggestions/workflow.md +0 -24
  1167. package/runtime/agents/excel-workbook-builder/capabilities/create-pivot-summary/capability.yaml +0 -15
  1168. package/runtime/agents/excel-workbook-builder/capabilities/create-pivot-summary/decision-rules.md +0 -8
  1169. package/runtime/agents/excel-workbook-builder/capabilities/create-pivot-summary/runner.py +0 -9
  1170. package/runtime/agents/excel-workbook-builder/capabilities/create-pivot-summary/workflow.md +0 -23
  1171. package/runtime/agents/excel-workbook-builder/capabilities/create-summary-dashboard/capability.yaml +0 -14
  1172. package/runtime/agents/excel-workbook-builder/capabilities/create-summary-dashboard/decision-rules.md +0 -8
  1173. package/runtime/agents/excel-workbook-builder/capabilities/create-summary-dashboard/runner.py +0 -9
  1174. package/runtime/agents/excel-workbook-builder/capabilities/create-summary-dashboard/workflow.md +0 -25
  1175. package/runtime/agents/excel-workbook-builder/capabilities/create-template/capability.yaml +0 -15
  1176. package/runtime/agents/excel-workbook-builder/capabilities/create-template/decision-rules.md +0 -8
  1177. package/runtime/agents/excel-workbook-builder/capabilities/create-template/runner.py +0 -9
  1178. package/runtime/agents/excel-workbook-builder/capabilities/create-template/workflow.md +0 -26
  1179. package/runtime/agents/excel-workbook-builder/capabilities/create-template-version/capability.yaml +0 -15
  1180. package/runtime/agents/excel-workbook-builder/capabilities/create-template-version/decision-rules.md +0 -8
  1181. package/runtime/agents/excel-workbook-builder/capabilities/create-template-version/runner.py +0 -9
  1182. package/runtime/agents/excel-workbook-builder/capabilities/create-template-version/workflow.md +0 -27
  1183. package/runtime/agents/excel-workbook-builder/capabilities/deprecate-template-version/capability.yaml +0 -14
  1184. package/runtime/agents/excel-workbook-builder/capabilities/deprecate-template-version/decision-rules.md +0 -8
  1185. package/runtime/agents/excel-workbook-builder/capabilities/deprecate-template-version/runner.py +0 -9
  1186. package/runtime/agents/excel-workbook-builder/capabilities/deprecate-template-version/workflow.md +0 -21
  1187. package/runtime/agents/excel-workbook-builder/capabilities/explain-reconciliation-differences/capability.yaml +0 -14
  1188. package/runtime/agents/excel-workbook-builder/capabilities/explain-reconciliation-differences/decision-rules.md +0 -8
  1189. package/runtime/agents/excel-workbook-builder/capabilities/explain-reconciliation-differences/runner.py +0 -9
  1190. package/runtime/agents/excel-workbook-builder/capabilities/explain-reconciliation-differences/workflow.md +0 -23
  1191. package/runtime/agents/excel-workbook-builder/capabilities/export-workbook-artifacts/capability.yaml +0 -15
  1192. package/runtime/agents/excel-workbook-builder/capabilities/export-workbook-artifacts/decision-rules.md +0 -8
  1193. package/runtime/agents/excel-workbook-builder/capabilities/export-workbook-artifacts/runner.py +0 -9
  1194. package/runtime/agents/excel-workbook-builder/capabilities/export-workbook-artifacts/workflow.md +0 -26
  1195. package/runtime/agents/excel-workbook-builder/capabilities/generate-reconciliation-report/capability.yaml +0 -14
  1196. package/runtime/agents/excel-workbook-builder/capabilities/generate-reconciliation-report/decision-rules.md +0 -8
  1197. package/runtime/agents/excel-workbook-builder/capabilities/generate-reconciliation-report/runner.py +0 -9
  1198. package/runtime/agents/excel-workbook-builder/capabilities/generate-reconciliation-report/workflow.md +0 -23
  1199. package/runtime/agents/excel-workbook-builder/capabilities/generate-template-input-file/capability.yaml +0 -14
  1200. package/runtime/agents/excel-workbook-builder/capabilities/generate-template-input-file/decision-rules.md +0 -8
  1201. package/runtime/agents/excel-workbook-builder/capabilities/generate-template-input-file/runner.py +0 -60
  1202. package/runtime/agents/excel-workbook-builder/capabilities/generate-template-input-file/workflow.md +0 -22
  1203. package/runtime/agents/excel-workbook-builder/capabilities/generate-workbook-from-data/capability.yaml +0 -15
  1204. package/runtime/agents/excel-workbook-builder/capabilities/generate-workbook-from-data/decision-rules.md +0 -8
  1205. package/runtime/agents/excel-workbook-builder/capabilities/generate-workbook-from-data/runner.py +0 -46
  1206. package/runtime/agents/excel-workbook-builder/capabilities/generate-workbook-from-data/workflow.md +0 -27
  1207. package/runtime/agents/excel-workbook-builder/capabilities/generate-workbook-from-template/capability.yaml +0 -14
  1208. package/runtime/agents/excel-workbook-builder/capabilities/generate-workbook-from-template/decision-rules.md +0 -8
  1209. package/runtime/agents/excel-workbook-builder/capabilities/generate-workbook-from-template/runner.py +0 -62
  1210. package/runtime/agents/excel-workbook-builder/capabilities/generate-workbook-from-template/workflow.md +0 -25
  1211. package/runtime/agents/excel-workbook-builder/capabilities/ingest-source-document/capability.yaml +0 -15
  1212. package/runtime/agents/excel-workbook-builder/capabilities/ingest-source-document/decision-rules.md +0 -8
  1213. package/runtime/agents/excel-workbook-builder/capabilities/ingest-source-document/runner.py +0 -47
  1214. package/runtime/agents/excel-workbook-builder/capabilities/ingest-source-document/workflow.md +0 -25
  1215. package/runtime/agents/excel-workbook-builder/capabilities/ingest-workbook-data/capability.yaml +0 -15
  1216. package/runtime/agents/excel-workbook-builder/capabilities/ingest-workbook-data/decision-rules.md +0 -8
  1217. package/runtime/agents/excel-workbook-builder/capabilities/ingest-workbook-data/runner.py +0 -47
  1218. package/runtime/agents/excel-workbook-builder/capabilities/ingest-workbook-data/workflow.md +0 -22
  1219. package/runtime/agents/excel-workbook-builder/capabilities/inspect-template/capability.yaml +0 -15
  1220. package/runtime/agents/excel-workbook-builder/capabilities/inspect-template/decision-rules.md +0 -8
  1221. package/runtime/agents/excel-workbook-builder/capabilities/inspect-template/runner.py +0 -70
  1222. package/runtime/agents/excel-workbook-builder/capabilities/inspect-template/workflow.md +0 -22
  1223. package/runtime/agents/excel-workbook-builder/capabilities/list-template-versions/capability.yaml +0 -15
  1224. package/runtime/agents/excel-workbook-builder/capabilities/list-template-versions/decision-rules.md +0 -8
  1225. package/runtime/agents/excel-workbook-builder/capabilities/list-template-versions/runner.py +0 -57
  1226. package/runtime/agents/excel-workbook-builder/capabilities/list-template-versions/workflow.md +0 -19
  1227. package/runtime/agents/excel-workbook-builder/capabilities/list-templates/capability.yaml +0 -14
  1228. package/runtime/agents/excel-workbook-builder/capabilities/list-templates/decision-rules.md +0 -8
  1229. package/runtime/agents/excel-workbook-builder/capabilities/list-templates/runner.py +0 -44
  1230. package/runtime/agents/excel-workbook-builder/capabilities/list-templates/workflow.md +0 -21
  1231. package/runtime/agents/excel-workbook-builder/capabilities/map-source-to-template/capability.yaml +0 -14
  1232. package/runtime/agents/excel-workbook-builder/capabilities/map-source-to-template/decision-rules.md +0 -8
  1233. package/runtime/agents/excel-workbook-builder/capabilities/map-source-to-template/runner.py +0 -56
  1234. package/runtime/agents/excel-workbook-builder/capabilities/map-source-to-template/workflow.md +0 -27
  1235. package/runtime/agents/excel-workbook-builder/capabilities/normalize-tabular-data/capability.yaml +0 -14
  1236. package/runtime/agents/excel-workbook-builder/capabilities/normalize-tabular-data/decision-rules.md +0 -8
  1237. package/runtime/agents/excel-workbook-builder/capabilities/normalize-tabular-data/runner.py +0 -47
  1238. package/runtime/agents/excel-workbook-builder/capabilities/normalize-tabular-data/workflow.md +0 -25
  1239. package/runtime/agents/excel-workbook-builder/capabilities/plan-workbook/capability.yaml +0 -15
  1240. package/runtime/agents/excel-workbook-builder/capabilities/plan-workbook/decision-rules.md +0 -8
  1241. package/runtime/agents/excel-workbook-builder/capabilities/plan-workbook/runner.py +0 -9
  1242. package/runtime/agents/excel-workbook-builder/capabilities/plan-workbook/workflow.md +0 -26
  1243. package/runtime/agents/excel-workbook-builder/capabilities/promote-template-version/capability.yaml +0 -14
  1244. package/runtime/agents/excel-workbook-builder/capabilities/promote-template-version/decision-rules.md +0 -8
  1245. package/runtime/agents/excel-workbook-builder/capabilities/promote-template-version/runner.py +0 -9
  1246. package/runtime/agents/excel-workbook-builder/capabilities/promote-template-version/workflow.md +0 -23
  1247. package/runtime/agents/excel-workbook-builder/capabilities/reconcile-datasets/capability.yaml +0 -15
  1248. package/runtime/agents/excel-workbook-builder/capabilities/reconcile-datasets/decision-rules.md +0 -8
  1249. package/runtime/agents/excel-workbook-builder/capabilities/reconcile-datasets/runner.py +0 -164
  1250. package/runtime/agents/excel-workbook-builder/capabilities/reconcile-datasets/workflow.md +0 -27
  1251. package/runtime/agents/excel-workbook-builder/capabilities/refine-generated-workbook/capability.yaml +0 -14
  1252. package/runtime/agents/excel-workbook-builder/capabilities/refine-generated-workbook/decision-rules.md +0 -8
  1253. package/runtime/agents/excel-workbook-builder/capabilities/refine-generated-workbook/runner.py +0 -9
  1254. package/runtime/agents/excel-workbook-builder/capabilities/refine-generated-workbook/workflow.md +0 -25
  1255. package/runtime/agents/excel-workbook-builder/capabilities/refine-template/capability.yaml +0 -15
  1256. package/runtime/agents/excel-workbook-builder/capabilities/refine-template/decision-rules.md +0 -8
  1257. package/runtime/agents/excel-workbook-builder/capabilities/refine-template/runner.py +0 -9
  1258. package/runtime/agents/excel-workbook-builder/capabilities/refine-template/workflow.md +0 -23
  1259. package/runtime/agents/excel-workbook-builder/capabilities/refresh-workbook-data/capability.yaml +0 -15
  1260. package/runtime/agents/excel-workbook-builder/capabilities/refresh-workbook-data/decision-rules.md +0 -8
  1261. package/runtime/agents/excel-workbook-builder/capabilities/refresh-workbook-data/runner.py +0 -9
  1262. package/runtime/agents/excel-workbook-builder/capabilities/refresh-workbook-data/workflow.md +0 -23
  1263. package/runtime/agents/excel-workbook-builder/capabilities/register-template/capability.yaml +0 -14
  1264. package/runtime/agents/excel-workbook-builder/capabilities/register-template/decision-rules.md +0 -8
  1265. package/runtime/agents/excel-workbook-builder/capabilities/register-template/runner.py +0 -80
  1266. package/runtime/agents/excel-workbook-builder/capabilities/register-template/workflow.md +0 -24
  1267. package/runtime/agents/excel-workbook-builder/capabilities/render-workbook-preview/capability.yaml +0 -15
  1268. package/runtime/agents/excel-workbook-builder/capabilities/render-workbook-preview/decision-rules.md +0 -8
  1269. package/runtime/agents/excel-workbook-builder/capabilities/render-workbook-preview/runner.py +0 -44
  1270. package/runtime/agents/excel-workbook-builder/capabilities/render-workbook-preview/workflow.md +0 -23
  1271. package/runtime/agents/excel-workbook-builder/capabilities/request-database-data/capability.yaml +0 -15
  1272. package/runtime/agents/excel-workbook-builder/capabilities/request-database-data/decision-rules.md +0 -8
  1273. package/runtime/agents/excel-workbook-builder/capabilities/request-database-data/runner.py +0 -92
  1274. package/runtime/agents/excel-workbook-builder/capabilities/request-database-data/workflow.md +0 -29
  1275. package/runtime/agents/excel-workbook-builder/capabilities/review-generated-workbook/capability.yaml +0 -14
  1276. package/runtime/agents/excel-workbook-builder/capabilities/review-generated-workbook/decision-rules.md +0 -8
  1277. package/runtime/agents/excel-workbook-builder/capabilities/review-generated-workbook/runner.py +0 -72
  1278. package/runtime/agents/excel-workbook-builder/capabilities/review-generated-workbook/workflow.md +0 -25
  1279. package/runtime/agents/excel-workbook-builder/capabilities/run-workbook-operation/capability.yaml +0 -14
  1280. package/runtime/agents/excel-workbook-builder/capabilities/run-workbook-operation/decision-rules.md +0 -8
  1281. package/runtime/agents/excel-workbook-builder/capabilities/run-workbook-operation/runner.py +0 -9
  1282. package/runtime/agents/excel-workbook-builder/capabilities/run-workbook-operation/workflow.md +0 -23
  1283. package/runtime/agents/excel-workbook-builder/capabilities/scan-formula-errors/capability.yaml +0 -15
  1284. package/runtime/agents/excel-workbook-builder/capabilities/scan-formula-errors/decision-rules.md +0 -8
  1285. package/runtime/agents/excel-workbook-builder/capabilities/scan-formula-errors/workflow.md +0 -23
  1286. package/runtime/agents/excel-workbook-builder/capabilities/update-existing-workbook/capability.yaml +0 -15
  1287. package/runtime/agents/excel-workbook-builder/capabilities/update-existing-workbook/decision-rules.md +0 -8
  1288. package/runtime/agents/excel-workbook-builder/capabilities/update-existing-workbook/runner.py +0 -9
  1289. package/runtime/agents/excel-workbook-builder/capabilities/update-existing-workbook/workflow.md +0 -23
  1290. package/runtime/agents/excel-workbook-builder/capabilities/validate-reconciliation-rules/capability.yaml +0 -14
  1291. package/runtime/agents/excel-workbook-builder/capabilities/validate-reconciliation-rules/decision-rules.md +0 -8
  1292. package/runtime/agents/excel-workbook-builder/capabilities/validate-reconciliation-rules/runner.py +0 -9
  1293. package/runtime/agents/excel-workbook-builder/capabilities/validate-reconciliation-rules/workflow.md +0 -25
  1294. package/runtime/agents/excel-workbook-builder/capabilities/validate-source-data/capability.yaml +0 -14
  1295. package/runtime/agents/excel-workbook-builder/capabilities/validate-source-data/decision-rules.md +0 -8
  1296. package/runtime/agents/excel-workbook-builder/capabilities/validate-source-data/runner.py +0 -98
  1297. package/runtime/agents/excel-workbook-builder/capabilities/validate-source-data/workflow.md +0 -24
  1298. package/runtime/agents/excel-workbook-builder/infra/README.md +0 -4
  1299. package/runtime/agents/excel-workbook-builder/infra/integrations/database-delegator/README.md +0 -5
  1300. package/runtime/agents/excel-workbook-builder/infra/integrations/document-reader/README.md +0 -5
  1301. package/runtime/agents/excel-workbook-builder/infra/integrations/file-normalizer/README.md +0 -5
  1302. package/runtime/agents/excel-workbook-builder/infra/integrations/workbook-renderer/README.md +0 -5
  1303. package/runtime/agents/excel-workbook-builder/knowledge/context.md +0 -27
  1304. package/runtime/agents/excel-workbook-builder/knowledge/formula-rules.md +0 -9
  1305. package/runtime/agents/excel-workbook-builder/knowledge/policies.yaml +0 -30
  1306. package/runtime/agents/excel-workbook-builder/knowledge/reconciliation-rules.md +0 -9
  1307. package/runtime/agents/excel-workbook-builder/knowledge/runtime.md +0 -67
  1308. package/runtime/agents/excel-workbook-builder/knowledge/source-routing.md +0 -9
  1309. package/runtime/agents/excel-workbook-builder/knowledge/system.md +0 -47
  1310. package/runtime/agents/excel-workbook-builder/knowledge/template-catalog.yaml +0 -3
  1311. package/runtime/agents/excel-workbook-builder/templates/README.md +0 -16
  1312. package/runtime/agents/excel-workbook-builder/tests/fixtures/plan-workbook-brief.json +0 -12
  1313. package/runtime/agents/excel-workbook-builder/tests/test_template_lifecycle.py +0 -258
  1314. package/runtime/agents/execution-loop-builder/AGENTS.md +0 -24
  1315. package/runtime/agents/execution-loop-builder/README.md +0 -19
  1316. package/runtime/agents/execution-loop-builder/agent.yaml +0 -49
  1317. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/capability.yaml +0 -20
  1318. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/decision-rules.md +0 -6
  1319. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/runner.py +0 -38
  1320. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-project-files/workflow.md +0 -7
  1321. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/capability.yaml +0 -18
  1322. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/decision-rules.md +0 -5
  1323. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/runner.py +0 -32
  1324. package/runtime/agents/execution-loop-builder/capabilities/generate-loop-runner/workflow.md +0 -6
  1325. package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/capability.yaml +0 -18
  1326. package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/decision-rules.md +0 -6
  1327. package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/runner.py +0 -32
  1328. package/runtime/agents/execution-loop-builder/capabilities/plan-execution-loop/workflow.md +0 -6
  1329. package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/capability.yaml +0 -19
  1330. package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/decision-rules.md +0 -6
  1331. package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/runner.py +0 -36
  1332. package/runtime/agents/execution-loop-builder/capabilities/register-loop-task/workflow.md +0 -6
  1333. package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/capability.yaml +0 -19
  1334. package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/decision-rules.md +0 -6
  1335. package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/runner.py +0 -39
  1336. package/runtime/agents/execution-loop-builder/capabilities/review-loop-safety/workflow.md +0 -5
  1337. package/runtime/agents/execution-loop-builder/infra/integrations/execution-loop/execution_loop_repository.py +0 -608
  1338. package/runtime/agents/execution-loop-builder/knowledge/context.md +0 -26
  1339. package/runtime/agents/execution-loop-builder/knowledge/policies.yaml +0 -13
  1340. package/runtime/agents/execution-loop-builder/knowledge/system.md +0 -19
  1341. package/runtime/agents/execution-loop-builder/templates/loop-plan.md +0 -3
  1342. package/runtime/agents/execution-loop-builder/templates/loop-readme.md +0 -3
  1343. package/runtime/agents/execution-loop-builder/templates/loop-review.md +0 -3
  1344. package/runtime/agents/execution-loop-builder/templates/loop-runner.py +0 -2
  1345. package/runtime/agents/execution-loop-builder/tests/test_runners.py +0 -274
  1346. package/runtime/agents/execution-reviewer/AGENTS.md +0 -8
  1347. package/runtime/agents/execution-reviewer/README.md +0 -13
  1348. package/runtime/agents/execution-reviewer/agent.yaml +0 -27
  1349. package/runtime/agents/execution-reviewer/capabilities/review-agent-result/capability.yaml +0 -14
  1350. package/runtime/agents/execution-reviewer/capabilities/review-agent-result/decision-rules.md +0 -6
  1351. package/runtime/agents/execution-reviewer/capabilities/review-agent-result/workflow.md +0 -7
  1352. package/runtime/agents/execution-reviewer/capabilities/review-final-output/capability.yaml +0 -14
  1353. package/runtime/agents/execution-reviewer/capabilities/review-final-output/decision-rules.md +0 -6
  1354. package/runtime/agents/execution-reviewer/capabilities/review-final-output/workflow.md +0 -7
  1355. package/runtime/agents/execution-reviewer/capabilities/review-plan/capability.yaml +0 -14
  1356. package/runtime/agents/execution-reviewer/capabilities/review-plan/decision-rules.md +0 -6
  1357. package/runtime/agents/execution-reviewer/capabilities/review-plan/workflow.md +0 -7
  1358. package/runtime/agents/execution-reviewer/infra/README.md +0 -4
  1359. package/runtime/agents/execution-reviewer/knowledge/context.md +0 -6
  1360. package/runtime/agents/execution-reviewer/knowledge/system.md +0 -18
  1361. package/runtime/agents/execution-reviewer/templates/README.md +0 -4
  1362. package/runtime/agents/figma-ui-ux-product-designer/AGENTS.md +0 -23
  1363. package/runtime/agents/figma-ui-ux-product-designer/README.md +0 -80
  1364. package/runtime/agents/figma-ui-ux-product-designer/agent.yaml +0 -118
  1365. package/runtime/agents/figma-ui-ux-product-designer/capabilities/_shared/design_support.py +0 -913
  1366. package/runtime/agents/figma-ui-ux-product-designer/capabilities/_shared/figma_setup.py +0 -264
  1367. package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-existing-figma-project/capability.yaml +0 -17
  1368. package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-existing-figma-project/decision-rules.md +0 -8
  1369. package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-existing-figma-project/runner.py +0 -8
  1370. package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-existing-figma-project/workflow.md +0 -34
  1371. package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-product-context/capability.yaml +0 -14
  1372. package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-product-context/decision-rules.md +0 -8
  1373. package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-product-context/runner.py +0 -8
  1374. package/runtime/agents/figma-ui-ux-product-designer/capabilities/analyze-product-context/workflow.md +0 -31
  1375. package/runtime/agents/figma-ui-ux-product-designer/capabilities/apply-design-feedback/capability.yaml +0 -15
  1376. package/runtime/agents/figma-ui-ux-product-designer/capabilities/apply-design-feedback/decision-rules.md +0 -8
  1377. package/runtime/agents/figma-ui-ux-product-designer/capabilities/apply-design-feedback/runner.py +0 -8
  1378. package/runtime/agents/figma-ui-ux-product-designer/capabilities/apply-design-feedback/workflow.md +0 -33
  1379. package/runtime/agents/figma-ui-ux-product-designer/capabilities/capture-url-to-figma/capability.yaml +0 -18
  1380. package/runtime/agents/figma-ui-ux-product-designer/capabilities/capture-url-to-figma/decision-rules.md +0 -8
  1381. package/runtime/agents/figma-ui-ux-product-designer/capabilities/capture-url-to-figma/runner.py +0 -8
  1382. package/runtime/agents/figma-ui-ux-product-designer/capabilities/capture-url-to-figma/workflow.md +0 -33
  1383. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-interview/capability.yaml +0 -14
  1384. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-interview/decision-rules.md +0 -8
  1385. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-interview/runner.py +0 -8
  1386. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-interview/workflow.md +0 -38
  1387. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-review-session/capability.yaml +0 -14
  1388. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-review-session/decision-rules.md +0 -8
  1389. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-review-session/runner.py +0 -8
  1390. package/runtime/agents/figma-ui-ux-product-designer/capabilities/conduct-design-review-session/workflow.md +0 -29
  1391. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-design-system-foundation/capability.yaml +0 -17
  1392. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-design-system-foundation/decision-rules.md +0 -8
  1393. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-design-system-foundation/runner.py +0 -8
  1394. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-design-system-foundation/workflow.md +0 -33
  1395. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-figma-project/capability.yaml +0 -17
  1396. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-figma-project/decision-rules.md +0 -8
  1397. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-figma-project/runner.py +0 -8
  1398. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-figma-project/workflow.md +0 -34
  1399. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-mobile-app-design/capability.yaml +0 -17
  1400. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-mobile-app-design/decision-rules.md +0 -8
  1401. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-mobile-app-design/runner.py +0 -8
  1402. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-mobile-app-design/workflow.md +0 -40
  1403. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-web-app-design/capability.yaml +0 -17
  1404. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-web-app-design/decision-rules.md +0 -8
  1405. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-web-app-design/runner.py +0 -8
  1406. package/runtime/agents/figma-ui-ux-product-designer/capabilities/create-web-app-design/workflow.md +0 -38
  1407. package/runtime/agents/figma-ui-ux-product-designer/capabilities/facelift-existing-product/capability.yaml +0 -14
  1408. package/runtime/agents/figma-ui-ux-product-designer/capabilities/facelift-existing-product/decision-rules.md +0 -8
  1409. package/runtime/agents/figma-ui-ux-product-designer/capabilities/facelift-existing-product/runner.py +0 -8
  1410. package/runtime/agents/figma-ui-ux-product-designer/capabilities/facelift-existing-product/workflow.md +0 -32
  1411. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-dev-handoff/capability.yaml +0 -14
  1412. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-dev-handoff/decision-rules.md +0 -8
  1413. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-dev-handoff/runner.py +0 -8
  1414. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-dev-handoff/workflow.md +0 -27
  1415. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-user-journey-diagram/capability.yaml +0 -17
  1416. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-user-journey-diagram/decision-rules.md +0 -8
  1417. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-user-journey-diagram/runner.py +0 -8
  1418. package/runtime/agents/figma-ui-ux-product-designer/capabilities/generate-user-journey-diagram/workflow.md +0 -31
  1419. package/runtime/agents/figma-ui-ux-product-designer/capabilities/ingest-design-source/capability.yaml +0 -15
  1420. package/runtime/agents/figma-ui-ux-product-designer/capabilities/ingest-design-source/decision-rules.md +0 -8
  1421. package/runtime/agents/figma-ui-ux-product-designer/capabilities/ingest-design-source/runner.py +0 -8
  1422. package/runtime/agents/figma-ui-ux-product-designer/capabilities/ingest-design-source/workflow.md +0 -30
  1423. package/runtime/agents/figma-ui-ux-product-designer/capabilities/read-azure-card-for-design/capability.yaml +0 -18
  1424. package/runtime/agents/figma-ui-ux-product-designer/capabilities/read-azure-card-for-design/decision-rules.md +0 -8
  1425. package/runtime/agents/figma-ui-ux-product-designer/capabilities/read-azure-card-for-design/runner.py +0 -8
  1426. package/runtime/agents/figma-ui-ux-product-designer/capabilities/read-azure-card-for-design/workflow.md +0 -34
  1427. package/runtime/agents/figma-ui-ux-product-designer/capabilities/recreate-legacy-design/capability.yaml +0 -14
  1428. package/runtime/agents/figma-ui-ux-product-designer/capabilities/recreate-legacy-design/decision-rules.md +0 -8
  1429. package/runtime/agents/figma-ui-ux-product-designer/capabilities/recreate-legacy-design/runner.py +0 -8
  1430. package/runtime/agents/figma-ui-ux-product-designer/capabilities/recreate-legacy-design/workflow.md +0 -32
  1431. package/runtime/agents/figma-ui-ux-product-designer/capabilities/review-design-quality/capability.yaml +0 -14
  1432. package/runtime/agents/figma-ui-ux-product-designer/capabilities/review-design-quality/decision-rules.md +0 -8
  1433. package/runtime/agents/figma-ui-ux-product-designer/capabilities/review-design-quality/runner.py +0 -8
  1434. package/runtime/agents/figma-ui-ux-product-designer/capabilities/review-design-quality/workflow.md +0 -35
  1435. package/runtime/agents/figma-ui-ux-product-designer/capabilities/setup-figma-mcp-bridge/capability.yaml +0 -25
  1436. package/runtime/agents/figma-ui-ux-product-designer/capabilities/setup-figma-mcp-bridge/decision-rules.md +0 -8
  1437. package/runtime/agents/figma-ui-ux-product-designer/capabilities/setup-figma-mcp-bridge/runner.py +0 -9
  1438. package/runtime/agents/figma-ui-ux-product-designer/capabilities/setup-figma-mcp-bridge/workflow.md +0 -33
  1439. package/runtime/agents/figma-ui-ux-product-designer/capabilities/triage-design-feedback/capability.yaml +0 -15
  1440. package/runtime/agents/figma-ui-ux-product-designer/capabilities/triage-design-feedback/decision-rules.md +0 -8
  1441. package/runtime/agents/figma-ui-ux-product-designer/capabilities/triage-design-feedback/runner.py +0 -8
  1442. package/runtime/agents/figma-ui-ux-product-designer/capabilities/triage-design-feedback/workflow.md +0 -34
  1443. package/runtime/agents/figma-ui-ux-product-designer/capabilities/update-existing-figma-design/capability.yaml +0 -18
  1444. package/runtime/agents/figma-ui-ux-product-designer/capabilities/update-existing-figma-design/decision-rules.md +0 -8
  1445. package/runtime/agents/figma-ui-ux-product-designer/capabilities/update-existing-figma-design/runner.py +0 -8
  1446. package/runtime/agents/figma-ui-ux-product-designer/capabilities/update-existing-figma-design/workflow.md +0 -34
  1447. package/runtime/agents/figma-ui-ux-product-designer/infra/README.md +0 -11
  1448. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/bin/figma-codex-bridge +0 -3
  1449. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/bin/figma-codex-bridge.cmd +0 -3
  1450. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/bin/figma-codex-bridge.py +0 -262
  1451. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/figma_mcp_adapter.py +0 -95
  1452. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/figma_mode.py +0 -72
  1453. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/figma_models.py +0 -71
  1454. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/figma_operation_log.py +0 -43
  1455. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/figma_repository.py +0 -29
  1456. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/integration.yaml +0 -39
  1457. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/methods/capture-url-to-figma.yaml +0 -5
  1458. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/methods/create-new-file.yaml +0 -5
  1459. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/methods/create-screen.yaml +0 -5
  1460. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/methods/export-review-context.yaml +0 -4
  1461. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/methods/generate-diagram.yaml +0 -12
  1462. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/methods/inspect-file.yaml +0 -4
  1463. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/methods/search-design-system.yaml +0 -4
  1464. package/runtime/agents/figma-ui-ux-product-designer/infra/integrations/figma/methods/update-screen.yaml +0 -5
  1465. package/runtime/agents/figma-ui-ux-product-designer/knowledge/accessibility-rules.md +0 -47
  1466. package/runtime/agents/figma-ui-ux-product-designer/knowledge/context.md +0 -27
  1467. package/runtime/agents/figma-ui-ux-product-designer/knowledge/depth-scope-rules.md +0 -49
  1468. package/runtime/agents/figma-ui-ux-product-designer/knowledge/design-quality-checklist.md +0 -13
  1469. package/runtime/agents/figma-ui-ux-product-designer/knowledge/direct-mode-requirements.md +0 -29
  1470. package/runtime/agents/figma-ui-ux-product-designer/knowledge/feedback-rubric.md +0 -57
  1471. package/runtime/agents/figma-ui-ux-product-designer/knowledge/figma-mcp-setup.md +0 -79
  1472. package/runtime/agents/figma-ui-ux-product-designer/knowledge/figma-workflow.md +0 -40
  1473. package/runtime/agents/figma-ui-ux-product-designer/knowledge/policies.yaml +0 -61
  1474. package/runtime/agents/figma-ui-ux-product-designer/knowledge/system.md +0 -48
  1475. package/runtime/agents/figma-ui-ux-product-designer/knowledge/ux-patterns.md +0 -62
  1476. package/runtime/agents/figma-ui-ux-product-designer/templates/design-brief.md +0 -33
  1477. package/runtime/agents/figma-ui-ux-product-designer/templates/design-quality-report.md +0 -25
  1478. package/runtime/agents/figma-ui-ux-product-designer/templates/design-system-spec.md +0 -51
  1479. package/runtime/agents/figma-ui-ux-product-designer/templates/dev-handoff.md +0 -38
  1480. package/runtime/agents/figma-ui-ux-product-designer/templates/figma-action-plan.md +0 -32
  1481. package/runtime/agents/figma-ui-ux-product-designer/templates/screen-inventory.md +0 -24
  1482. package/runtime/agents/figma-ui-ux-product-designer/tests/test_figma_designer.py +0 -324
  1483. package/runtime/agents/generic-agent-builder/AGENTS.md +0 -20
  1484. package/runtime/agents/generic-agent-builder/README.md +0 -40
  1485. package/runtime/agents/generic-agent-builder/agent.yaml +0 -43
  1486. package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/capability.yaml +0 -18
  1487. package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/decision-rules.md +0 -5
  1488. package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/runner.py +0 -33
  1489. package/runtime/agents/generic-agent-builder/capabilities/generate-agent-instructions/workflow.md +0 -6
  1490. package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/capability.yaml +0 -20
  1491. package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/decision-rules.md +0 -6
  1492. package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/runner.py +0 -39
  1493. package/runtime/agents/generic-agent-builder/capabilities/generate-project-agent-files/workflow.md +0 -7
  1494. package/runtime/agents/generic-agent-builder/capabilities/generate-skill/capability.yaml +0 -18
  1495. package/runtime/agents/generic-agent-builder/capabilities/generate-skill/decision-rules.md +0 -5
  1496. package/runtime/agents/generic-agent-builder/capabilities/generate-skill/runner.py +0 -33
  1497. package/runtime/agents/generic-agent-builder/capabilities/generate-skill/workflow.md +0 -5
  1498. package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/capability.yaml +0 -18
  1499. package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/decision-rules.md +0 -6
  1500. package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/runner.py +0 -33
  1501. package/runtime/agents/generic-agent-builder/capabilities/plan-generic-agent/workflow.md +0 -6
  1502. package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/capability.yaml +0 -20
  1503. package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/decision-rules.md +0 -6
  1504. package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/runner.py +0 -40
  1505. package/runtime/agents/generic-agent-builder/capabilities/review-generic-agent/workflow.md +0 -7
  1506. package/runtime/agents/generic-agent-builder/infra/integrations/generic-agent/generic_agent_repository.py +0 -445
  1507. package/runtime/agents/generic-agent-builder/knowledge/context.md +0 -11
  1508. package/runtime/agents/generic-agent-builder/knowledge/policies.yaml +0 -12
  1509. package/runtime/agents/generic-agent-builder/knowledge/system.md +0 -17
  1510. package/runtime/agents/generic-agent-builder/templates/generic-agent-instructions.md +0 -17
  1511. package/runtime/agents/generic-agent-builder/templates/generic-review-report.md +0 -13
  1512. package/runtime/agents/generic-agent-builder/templates/generic-skill.md +0 -14
  1513. package/runtime/agents/generic-agent-builder/tests/test_runners.py +0 -220
  1514. package/runtime/agents/github-pr-reviewer/AGENTS.md +0 -10
  1515. package/runtime/agents/github-pr-reviewer/README.md +0 -7
  1516. package/runtime/agents/github-pr-reviewer/agent.yaml +0 -45
  1517. package/runtime/agents/github-pr-reviewer/capabilities/create-review-automation/capability.yaml +0 -20
  1518. package/runtime/agents/github-pr-reviewer/capabilities/create-review-automation/decision-rules.md +0 -8
  1519. package/runtime/agents/github-pr-reviewer/capabilities/create-review-automation/workflow.md +0 -9
  1520. package/runtime/agents/github-pr-reviewer/capabilities/inspect-pr/capability.yaml +0 -20
  1521. package/runtime/agents/github-pr-reviewer/capabilities/inspect-pr/decision-rules.md +0 -7
  1522. package/runtime/agents/github-pr-reviewer/capabilities/inspect-pr/workflow.md +0 -8
  1523. package/runtime/agents/github-pr-reviewer/capabilities/list-review-requests/capability.yaml +0 -20
  1524. package/runtime/agents/github-pr-reviewer/capabilities/list-review-requests/decision-rules.md +0 -7
  1525. package/runtime/agents/github-pr-reviewer/capabilities/list-review-requests/workflow.md +0 -8
  1526. package/runtime/agents/github-pr-reviewer/capabilities/review-pr-diff/capability.yaml +0 -20
  1527. package/runtime/agents/github-pr-reviewer/capabilities/review-pr-diff/decision-rules.md +0 -9
  1528. package/runtime/agents/github-pr-reviewer/capabilities/review-pr-diff/workflow.md +0 -10
  1529. package/runtime/agents/github-pr-reviewer/infra/README.md +0 -7
  1530. package/runtime/agents/github-pr-reviewer/knowledge/context.md +0 -7
  1531. package/runtime/agents/github-pr-reviewer/knowledge/system.md +0 -17
  1532. package/runtime/agents/github-pr-reviewer/templates/pr-automation-output.md +0 -10
  1533. package/runtime/agents/github-pr-reviewer/templates/pr-inspection-output.md +0 -9
  1534. package/runtime/agents/github-pr-reviewer/templates/pr-list-output.md +0 -9
  1535. package/runtime/agents/github-pr-reviewer/templates/pr-review-output.md +0 -17
  1536. package/runtime/agents/knowledge-author/AGENTS.md +0 -7
  1537. package/runtime/agents/knowledge-author/README.md +0 -7
  1538. package/runtime/agents/knowledge-author/agent.yaml +0 -37
  1539. package/runtime/agents/knowledge-author/capabilities/create-knowledge-snapshot/capability.yaml +0 -30
  1540. package/runtime/agents/knowledge-author/capabilities/create-knowledge-snapshot/decision-rules.md +0 -6
  1541. package/runtime/agents/knowledge-author/capabilities/create-knowledge-snapshot/workflow.md +0 -7
  1542. package/runtime/agents/knowledge-author/knowledge/context.md +0 -4
  1543. package/runtime/agents/knowledge-author/knowledge/system.md +0 -4
  1544. package/runtime/agents/knowledge-curator/AGENTS.md +0 -7
  1545. package/runtime/agents/knowledge-curator/README.md +0 -6
  1546. package/runtime/agents/knowledge-curator/agent.yaml +0 -37
  1547. package/runtime/agents/knowledge-curator/capabilities/curate-knowledge-base/capability.yaml +0 -29
  1548. package/runtime/agents/knowledge-curator/capabilities/curate-knowledge-base/decision-rules.md +0 -6
  1549. package/runtime/agents/knowledge-curator/capabilities/curate-knowledge-base/workflow.md +0 -7
  1550. package/runtime/agents/knowledge-curator/knowledge/context.md +0 -4
  1551. package/runtime/agents/knowledge-curator/knowledge/system.md +0 -4
  1552. package/runtime/agents/knowledge-generator/AGENTS.md +0 -34
  1553. package/runtime/agents/knowledge-generator/README.md +0 -35
  1554. package/runtime/agents/knowledge-generator/agent.yaml +0 -55
  1555. package/runtime/agents/knowledge-generator/capabilities/generate-knowledge/capability.yaml +0 -32
  1556. package/runtime/agents/knowledge-generator/capabilities/generate-knowledge/decision-rules.md +0 -8
  1557. package/runtime/agents/knowledge-generator/capabilities/generate-knowledge/runner.py +0 -44
  1558. package/runtime/agents/knowledge-generator/capabilities/generate-knowledge/workflow.md +0 -8
  1559. package/runtime/agents/knowledge-generator/capabilities/inspect-source/capability.yaml +0 -23
  1560. package/runtime/agents/knowledge-generator/capabilities/inspect-source/decision-rules.md +0 -8
  1561. package/runtime/agents/knowledge-generator/capabilities/inspect-source/runner.py +0 -38
  1562. package/runtime/agents/knowledge-generator/capabilities/inspect-source/workflow.md +0 -8
  1563. package/runtime/agents/knowledge-generator/capabilities/list-knowledge-profiles/capability.yaml +0 -23
  1564. package/runtime/agents/knowledge-generator/capabilities/list-knowledge-profiles/decision-rules.md +0 -8
  1565. package/runtime/agents/knowledge-generator/capabilities/list-knowledge-profiles/runner.py +0 -22
  1566. package/runtime/agents/knowledge-generator/capabilities/list-knowledge-profiles/workflow.md +0 -5
  1567. package/runtime/agents/knowledge-generator/capabilities/validate-knowledge/capability.yaml +0 -23
  1568. package/runtime/agents/knowledge-generator/capabilities/validate-knowledge/decision-rules.md +0 -8
  1569. package/runtime/agents/knowledge-generator/capabilities/validate-knowledge/runner.py +0 -28
  1570. package/runtime/agents/knowledge-generator/capabilities/validate-knowledge/workflow.md +0 -7
  1571. package/runtime/agents/knowledge-generator/infra/integrations/local-source/knowledge_repository.py +0 -1147
  1572. package/runtime/agents/knowledge-generator/infra/integrations/local-source/methods/generate-knowledge.yaml +0 -5
  1573. package/runtime/agents/knowledge-generator/infra/integrations/local-source/methods/inspect-source.yaml +0 -5
  1574. package/runtime/agents/knowledge-generator/infra/integrations/local-source/methods/list-profiles.yaml +0 -5
  1575. package/runtime/agents/knowledge-generator/infra/integrations/local-source/methods/validate-knowledge.yaml +0 -5
  1576. package/runtime/agents/knowledge-generator/knowledge/context.md +0 -27
  1577. package/runtime/agents/knowledge-generator/knowledge/policies.yaml +0 -65
  1578. package/runtime/agents/knowledge-generator/knowledge/prompts/generate-knowledge.md +0 -46
  1579. package/runtime/agents/knowledge-generator/knowledge/prompts/inspect-source.md +0 -40
  1580. package/runtime/agents/knowledge-generator/knowledge/prompts/list-knowledge-profiles.md +0 -28
  1581. package/runtime/agents/knowledge-generator/knowledge/prompts/validate-knowledge.md +0 -27
  1582. package/runtime/agents/knowledge-generator/knowledge/system.md +0 -44
  1583. package/runtime/agents/knowledge-generator/templates/coverage-assessment.md.tmpl +0 -14
  1584. package/runtime/agents/knowledge-generator/templates/domain.schema.json +0 -28
  1585. package/runtime/agents/knowledge-generator/templates/integration.schema.json +0 -33
  1586. package/runtime/agents/knowledge-generator/templates/operations.schema.json +0 -30
  1587. package/runtime/agents/knowledge-generator/tests/test_runners.py +0 -460
  1588. package/runtime/agents/knowledge-infra-builder/AGENTS.md +0 -8
  1589. package/runtime/agents/knowledge-infra-builder/README.md +0 -8
  1590. package/runtime/agents/knowledge-infra-builder/agent.yaml +0 -38
  1591. package/runtime/agents/knowledge-infra-builder/capabilities/create-knowledge-base/capability.yaml +0 -30
  1592. package/runtime/agents/knowledge-infra-builder/capabilities/create-knowledge-base/decision-rules.md +0 -6
  1593. package/runtime/agents/knowledge-infra-builder/capabilities/create-knowledge-base/workflow.md +0 -7
  1594. package/runtime/agents/knowledge-infra-builder/infra/.gitkeep +0 -1
  1595. package/runtime/agents/knowledge-infra-builder/knowledge/context.md +0 -4
  1596. package/runtime/agents/knowledge-infra-builder/knowledge/system.md +0 -4
  1597. package/runtime/agents/knowledge-infra-builder/templates/.gitkeep +0 -1
  1598. package/runtime/agents/knowledge-owner/AGENTS.md +0 -7
  1599. package/runtime/agents/knowledge-owner/README.md +0 -6
  1600. package/runtime/agents/knowledge-owner/agent.yaml +0 -37
  1601. package/runtime/agents/knowledge-owner/capabilities/publish-knowledge-snapshot/capability.yaml +0 -28
  1602. package/runtime/agents/knowledge-owner/capabilities/publish-knowledge-snapshot/decision-rules.md +0 -6
  1603. package/runtime/agents/knowledge-owner/capabilities/publish-knowledge-snapshot/workflow.md +0 -7
  1604. package/runtime/agents/knowledge-owner/infra/.gitkeep +0 -1
  1605. package/runtime/agents/knowledge-owner/knowledge/context.md +0 -4
  1606. package/runtime/agents/knowledge-owner/knowledge/system.md +0 -4
  1607. package/runtime/agents/knowledge-owner/templates/.gitkeep +0 -1
  1608. package/runtime/agents/knowledge-reviewer/AGENTS.md +0 -7
  1609. package/runtime/agents/knowledge-reviewer/README.md +0 -7
  1610. package/runtime/agents/knowledge-reviewer/agent.yaml +0 -36
  1611. package/runtime/agents/knowledge-reviewer/capabilities/review-knowledge-snapshot/capability.yaml +0 -26
  1612. package/runtime/agents/knowledge-reviewer/capabilities/review-knowledge-snapshot/decision-rules.md +0 -6
  1613. package/runtime/agents/knowledge-reviewer/capabilities/review-knowledge-snapshot/workflow.md +0 -7
  1614. package/runtime/agents/knowledge-reviewer/infra/.gitkeep +0 -1
  1615. package/runtime/agents/knowledge-reviewer/knowledge/context.md +0 -4
  1616. package/runtime/agents/knowledge-reviewer/knowledge/system.md +0 -4
  1617. package/runtime/agents/knowledge-reviewer/templates/.gitkeep +0 -1
  1618. package/runtime/agents/local-llm-operator/AGENTS.md +0 -8
  1619. package/runtime/agents/local-llm-operator/README.md +0 -12
  1620. package/runtime/agents/local-llm-operator/agent.yaml +0 -28
  1621. package/runtime/agents/local-llm-operator/capabilities/delegate-operational-task/capability.yaml +0 -14
  1622. package/runtime/agents/local-llm-operator/capabilities/delegate-operational-task/decision-rules.md +0 -6
  1623. package/runtime/agents/local-llm-operator/capabilities/delegate-operational-task/workflow.md +0 -7
  1624. package/runtime/agents/local-llm-operator/capabilities/inspect-local-models/capability.yaml +0 -14
  1625. package/runtime/agents/local-llm-operator/capabilities/inspect-local-models/decision-rules.md +0 -5
  1626. package/runtime/agents/local-llm-operator/capabilities/inspect-local-models/workflow.md +0 -6
  1627. package/runtime/agents/local-llm-operator/capabilities/select-local-worker/capability.yaml +0 -14
  1628. package/runtime/agents/local-llm-operator/capabilities/select-local-worker/decision-rules.md +0 -6
  1629. package/runtime/agents/local-llm-operator/capabilities/select-local-worker/workflow.md +0 -7
  1630. package/runtime/agents/local-llm-operator/infra/README.md +0 -4
  1631. package/runtime/agents/local-llm-operator/knowledge/context.md +0 -6
  1632. package/runtime/agents/local-llm-operator/knowledge/system.md +0 -18
  1633. package/runtime/agents/local-llm-operator/templates/README.md +0 -4
  1634. package/runtime/agents/local-memory-manager/AGENTS.md +0 -5
  1635. package/runtime/agents/local-memory-manager/README.md +0 -7
  1636. package/runtime/agents/local-memory-manager/agent.yaml +0 -38
  1637. package/runtime/agents/local-memory-manager/capabilities/curate-local-memory/capability.yaml +0 -19
  1638. package/runtime/agents/local-memory-manager/capabilities/curate-local-memory/decision-rules.md +0 -5
  1639. package/runtime/agents/local-memory-manager/capabilities/curate-local-memory/workflow.md +0 -6
  1640. package/runtime/agents/local-memory-manager/capabilities/inspect-local-memory/capability.yaml +0 -19
  1641. package/runtime/agents/local-memory-manager/capabilities/inspect-local-memory/decision-rules.md +0 -5
  1642. package/runtime/agents/local-memory-manager/capabilities/inspect-local-memory/workflow.md +0 -5
  1643. package/runtime/agents/local-memory-manager/infra/.gitkeep +0 -1
  1644. package/runtime/agents/local-memory-manager/knowledge/context.md +0 -4
  1645. package/runtime/agents/local-memory-manager/knowledge/system.md +0 -4
  1646. package/runtime/agents/local-memory-manager/templates/.gitkeep +0 -1
  1647. package/runtime/agents/memory-sync-manager/AGENTS.md +0 -7
  1648. package/runtime/agents/memory-sync-manager/README.md +0 -7
  1649. package/runtime/agents/memory-sync-manager/agent.yaml +0 -37
  1650. package/runtime/agents/memory-sync-manager/capabilities/plan-memory-backup/capability.yaml +0 -29
  1651. package/runtime/agents/memory-sync-manager/capabilities/plan-memory-backup/decision-rules.md +0 -6
  1652. package/runtime/agents/memory-sync-manager/capabilities/plan-memory-backup/workflow.md +0 -7
  1653. package/runtime/agents/memory-sync-manager/infra/.gitkeep +0 -1
  1654. package/runtime/agents/memory-sync-manager/knowledge/context.md +0 -4
  1655. package/runtime/agents/memory-sync-manager/knowledge/system.md +0 -4
  1656. package/runtime/agents/memory-sync-manager/templates/.gitkeep +0 -1
  1657. package/runtime/agents/n1-support-agent/AGENTS.md +0 -10
  1658. package/runtime/agents/n1-support-agent/README.md +0 -65
  1659. package/runtime/agents/n1-support-agent/agent.yaml +0 -110
  1660. package/runtime/agents/n1-support-agent/capabilities/_shared/domain_knowledge.py +0 -262
  1661. package/runtime/agents/n1-support-agent/capabilities/_shared/runner_support.py +0 -730
  1662. package/runtime/agents/n1-support-agent/capabilities/analyze-bpo-proposal/capability.yaml +0 -23
  1663. package/runtime/agents/n1-support-agent/capabilities/analyze-bpo-proposal/decision-rules.md +0 -12
  1664. package/runtime/agents/n1-support-agent/capabilities/analyze-bpo-proposal/runner.py +0 -325
  1665. package/runtime/agents/n1-support-agent/capabilities/analyze-bpo-proposal/workflow.md +0 -21
  1666. package/runtime/agents/n1-support-agent/capabilities/analyze-cognito-user/capability.yaml +0 -15
  1667. package/runtime/agents/n1-support-agent/capabilities/analyze-cognito-user/decision-rules.md +0 -11
  1668. package/runtime/agents/n1-support-agent/capabilities/analyze-cognito-user/runner.py +0 -64
  1669. package/runtime/agents/n1-support-agent/capabilities/analyze-cognito-user/workflow.md +0 -4
  1670. package/runtime/agents/n1-support-agent/capabilities/analyze-onboarding-status/capability.yaml +0 -15
  1671. package/runtime/agents/n1-support-agent/capabilities/analyze-onboarding-status/decision-rules.md +0 -12
  1672. package/runtime/agents/n1-support-agent/capabilities/analyze-onboarding-status/runner.py +0 -65
  1673. package/runtime/agents/n1-support-agent/capabilities/analyze-onboarding-status/workflow.md +0 -4
  1674. package/runtime/agents/n1-support-agent/capabilities/analyze-proposal-status/capability.yaml +0 -15
  1675. package/runtime/agents/n1-support-agent/capabilities/analyze-proposal-status/decision-rules.md +0 -12
  1676. package/runtime/agents/n1-support-agent/capabilities/analyze-proposal-status/runner.py +0 -65
  1677. package/runtime/agents/n1-support-agent/capabilities/analyze-proposal-status/workflow.md +0 -4
  1678. package/runtime/agents/n1-support-agent/capabilities/analyze-restrictive-base/capability.yaml +0 -19
  1679. package/runtime/agents/n1-support-agent/capabilities/analyze-restrictive-base/decision-rules.md +0 -12
  1680. package/runtime/agents/n1-support-agent/capabilities/analyze-restrictive-base/runner.py +0 -351
  1681. package/runtime/agents/n1-support-agent/capabilities/analyze-restrictive-base/workflow.md +0 -28
  1682. package/runtime/agents/n1-support-agent/capabilities/collect-customer-logs/capability.yaml +0 -19
  1683. package/runtime/agents/n1-support-agent/capabilities/collect-customer-logs/decision-rules.md +0 -12
  1684. package/runtime/agents/n1-support-agent/capabilities/collect-customer-logs/runner.py +0 -70
  1685. package/runtime/agents/n1-support-agent/capabilities/collect-customer-logs/workflow.md +0 -4
  1686. package/runtime/agents/n1-support-agent/capabilities/decide-n1-outcome/capability.yaml +0 -15
  1687. package/runtime/agents/n1-support-agent/capabilities/decide-n1-outcome/decision-rules.md +0 -12
  1688. package/runtime/agents/n1-support-agent/capabilities/decide-n1-outcome/runner.py +0 -72
  1689. package/runtime/agents/n1-support-agent/capabilities/decide-n1-outcome/workflow.md +0 -4
  1690. package/runtime/agents/n1-support-agent/capabilities/execute-n1-card-runbook/capability.yaml +0 -25
  1691. package/runtime/agents/n1-support-agent/capabilities/execute-n1-card-runbook/decision-rules.md +0 -7
  1692. package/runtime/agents/n1-support-agent/capabilities/execute-n1-card-runbook/runner.py +0 -121
  1693. package/runtime/agents/n1-support-agent/capabilities/execute-n1-card-runbook/workflow.md +0 -15
  1694. package/runtime/agents/n1-support-agent/capabilities/extract-card-entities/capability.yaml +0 -15
  1695. package/runtime/agents/n1-support-agent/capabilities/extract-card-entities/decision-rules.md +0 -12
  1696. package/runtime/agents/n1-support-agent/capabilities/extract-card-entities/runner.py +0 -73
  1697. package/runtime/agents/n1-support-agent/capabilities/extract-card-entities/workflow.md +0 -4
  1698. package/runtime/agents/n1-support-agent/capabilities/generate-n1-artifacts/capability.yaml +0 -15
  1699. package/runtime/agents/n1-support-agent/capabilities/generate-n1-artifacts/decision-rules.md +0 -12
  1700. package/runtime/agents/n1-support-agent/capabilities/generate-n1-artifacts/runner.py +0 -74
  1701. package/runtime/agents/n1-support-agent/capabilities/generate-n1-artifacts/workflow.md +0 -4
  1702. package/runtime/agents/n1-support-agent/capabilities/route-customer-symptom/capability.yaml +0 -19
  1703. package/runtime/agents/n1-support-agent/capabilities/route-customer-symptom/decision-rules.md +0 -12
  1704. package/runtime/agents/n1-support-agent/capabilities/route-customer-symptom/runner.py +0 -71
  1705. package/runtime/agents/n1-support-agent/capabilities/route-customer-symptom/workflow.md +0 -23
  1706. package/runtime/agents/n1-support-agent/capabilities/update-azure-card/capability.yaml +0 -20
  1707. package/runtime/agents/n1-support-agent/capabilities/update-azure-card/decision-rules.md +0 -12
  1708. package/runtime/agents/n1-support-agent/capabilities/update-azure-card/runner.py +0 -71
  1709. package/runtime/agents/n1-support-agent/capabilities/update-azure-card/workflow.md +0 -4
  1710. package/runtime/agents/n1-support-agent/infra/README.md +0 -7
  1711. package/runtime/agents/n1-support-agent/knowledge/README.md +0 -14
  1712. package/runtime/agents/n1-support-agent/knowledge/context.md +0 -19
  1713. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/README.md +0 -23
  1714. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/contracts/n1-support-triage-contract.json +0 -40
  1715. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/index.json +0 -42
  1716. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/playbooks/global-support-diagnostics.json +0 -28
  1717. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/rules/card-rules.json +0 -43
  1718. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/rules/invoice-transaction-rules.json +0 -43
  1719. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/rules/login-account-rules.json +0 -37
  1720. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/rules/onboarding-rules.json +0 -70
  1721. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/rules/public-agency-margin-rules.json +0 -43
  1722. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/rules/restrictive-base-rules.json +0 -43
  1723. package/runtime/agents/n1-support-agent/knowledge/domains/customer-support/symptom-routing.json +0 -107
  1724. package/runtime/agents/n1-support-agent/knowledge/policies.yaml +0 -56
  1725. package/runtime/agents/n1-support-agent/knowledge/prompts/README.md +0 -4
  1726. package/runtime/agents/n1-support-agent/knowledge/prompts/analyze-bpo-proposal.md +0 -29
  1727. package/runtime/agents/n1-support-agent/knowledge/prompts/analyze-cognito-user.md +0 -41
  1728. package/runtime/agents/n1-support-agent/knowledge/prompts/analyze-onboarding-status.md +0 -42
  1729. package/runtime/agents/n1-support-agent/knowledge/prompts/analyze-proposal-status.md +0 -41
  1730. package/runtime/agents/n1-support-agent/knowledge/prompts/analyze-restrictive-base.md +0 -15
  1731. package/runtime/agents/n1-support-agent/knowledge/prompts/collect-customer-logs.md +0 -43
  1732. package/runtime/agents/n1-support-agent/knowledge/prompts/decide-n1-outcome.md +0 -41
  1733. package/runtime/agents/n1-support-agent/knowledge/prompts/execute-n1-card-runbook.md +0 -6
  1734. package/runtime/agents/n1-support-agent/knowledge/prompts/extract-card-entities.md +0 -43
  1735. package/runtime/agents/n1-support-agent/knowledge/prompts/generate-n1-artifacts.md +0 -39
  1736. package/runtime/agents/n1-support-agent/knowledge/prompts/route-customer-symptom.md +0 -10
  1737. package/runtime/agents/n1-support-agent/knowledge/prompts/update-azure-card.md +0 -40
  1738. package/runtime/agents/n1-support-agent/knowledge/runbooks/customer-onboarding-triage.md +0 -38
  1739. package/runtime/agents/n1-support-agent/knowledge/system.md +0 -50
  1740. package/runtime/agents/n1-support-agent/templates/README.md +0 -3
  1741. package/runtime/agents/n1-support-agent/templates/n1-card-runbook-output.md +0 -13
  1742. package/runtime/agents/n1-support-agent/tests/test_agentic_contracts.py +0 -92
  1743. package/runtime/agents/n1-support-agent/tests/test_runners.py +0 -564
  1744. package/runtime/agents/n2-support-agent/AGENTS.md +0 -14
  1745. package/runtime/agents/n2-support-agent/README.md +0 -60
  1746. package/runtime/agents/n2-support-agent/agent.yaml +0 -114
  1747. package/runtime/agents/n2-support-agent/capabilities/_shared/auxiliary_runner.py +0 -116
  1748. package/runtime/agents/n2-support-agent/capabilities/_shared/azure_workflow.py +0 -132
  1749. package/runtime/agents/n2-support-agent/capabilities/_shared/runner_support.py +0 -1030
  1750. package/runtime/agents/n2-support-agent/capabilities/_shared/specialist_orchestration.py +0 -172
  1751. package/runtime/agents/n2-support-agent/capabilities/analyze-code-root-cause/capability.yaml +0 -15
  1752. package/runtime/agents/n2-support-agent/capabilities/analyze-code-root-cause/decision-rules.md +0 -12
  1753. package/runtime/agents/n2-support-agent/capabilities/analyze-code-root-cause/runner.py +0 -12
  1754. package/runtime/agents/n2-support-agent/capabilities/analyze-code-root-cause/workflow.md +0 -16
  1755. package/runtime/agents/n2-support-agent/capabilities/build-reproduction-strategy/capability.yaml +0 -15
  1756. package/runtime/agents/n2-support-agent/capabilities/build-reproduction-strategy/decision-rules.md +0 -12
  1757. package/runtime/agents/n2-support-agent/capabilities/build-reproduction-strategy/runner.py +0 -12
  1758. package/runtime/agents/n2-support-agent/capabilities/build-reproduction-strategy/workflow.md +0 -16
  1759. package/runtime/agents/n2-support-agent/capabilities/classify-root-cause/capability.yaml +0 -15
  1760. package/runtime/agents/n2-support-agent/capabilities/classify-root-cause/decision-rules.md +0 -12
  1761. package/runtime/agents/n2-support-agent/capabilities/classify-root-cause/runner.py +0 -12
  1762. package/runtime/agents/n2-support-agent/capabilities/classify-root-cause/workflow.md +0 -15
  1763. package/runtime/agents/n2-support-agent/capabilities/correlate-runtime-evidence/capability.yaml +0 -15
  1764. package/runtime/agents/n2-support-agent/capabilities/correlate-runtime-evidence/decision-rules.md +0 -12
  1765. package/runtime/agents/n2-support-agent/capabilities/correlate-runtime-evidence/runner.py +0 -12
  1766. package/runtime/agents/n2-support-agent/capabilities/correlate-runtime-evidence/workflow.md +0 -15
  1767. package/runtime/agents/n2-support-agent/capabilities/execute-n2-investigation/capability.yaml +0 -17
  1768. package/runtime/agents/n2-support-agent/capabilities/execute-n2-investigation/decision-rules.md +0 -12
  1769. package/runtime/agents/n2-support-agent/capabilities/execute-n2-investigation/runner.py +0 -39
  1770. package/runtime/agents/n2-support-agent/capabilities/execute-n2-investigation/workflow.md +0 -11
  1771. package/runtime/agents/n2-support-agent/capabilities/execute-specialist-validation/capability.yaml +0 -15
  1772. package/runtime/agents/n2-support-agent/capabilities/execute-specialist-validation/decision-rules.md +0 -12
  1773. package/runtime/agents/n2-support-agent/capabilities/execute-specialist-validation/runner.py +0 -12
  1774. package/runtime/agents/n2-support-agent/capabilities/execute-specialist-validation/workflow.md +0 -31
  1775. package/runtime/agents/n2-support-agent/capabilities/generate-card-comment/capability.yaml +0 -15
  1776. package/runtime/agents/n2-support-agent/capabilities/generate-card-comment/decision-rules.md +0 -12
  1777. package/runtime/agents/n2-support-agent/capabilities/generate-card-comment/runner.py +0 -12
  1778. package/runtime/agents/n2-support-agent/capabilities/generate-card-comment/workflow.md +0 -15
  1779. package/runtime/agents/n2-support-agent/capabilities/generate-patch-plan/capability.yaml +0 -17
  1780. package/runtime/agents/n2-support-agent/capabilities/generate-patch-plan/decision-rules.md +0 -12
  1781. package/runtime/agents/n2-support-agent/capabilities/generate-patch-plan/runner.py +0 -44
  1782. package/runtime/agents/n2-support-agent/capabilities/generate-patch-plan/workflow.md +0 -9
  1783. package/runtime/agents/n2-support-agent/capabilities/load-support-context/capability.yaml +0 -15
  1784. package/runtime/agents/n2-support-agent/capabilities/load-support-context/decision-rules.md +0 -12
  1785. package/runtime/agents/n2-support-agent/capabilities/load-support-context/runner.py +0 -12
  1786. package/runtime/agents/n2-support-agent/capabilities/load-support-context/workflow.md +0 -16
  1787. package/runtime/agents/n2-support-agent/capabilities/rank-code-findings/capability.yaml +0 -15
  1788. package/runtime/agents/n2-support-agent/capabilities/rank-code-findings/decision-rules.md +0 -12
  1789. package/runtime/agents/n2-support-agent/capabilities/rank-code-findings/runner.py +0 -12
  1790. package/runtime/agents/n2-support-agent/capabilities/rank-code-findings/workflow.md +0 -16
  1791. package/runtime/agents/n2-support-agent/capabilities/review-patch-plan-readiness/capability.yaml +0 -15
  1792. package/runtime/agents/n2-support-agent/capabilities/review-patch-plan-readiness/decision-rules.md +0 -12
  1793. package/runtime/agents/n2-support-agent/capabilities/review-patch-plan-readiness/runner.py +0 -12
  1794. package/runtime/agents/n2-support-agent/capabilities/review-patch-plan-readiness/workflow.md +0 -16
  1795. package/runtime/agents/n2-support-agent/capabilities/select-specialist-checks/capability.yaml +0 -15
  1796. package/runtime/agents/n2-support-agent/capabilities/select-specialist-checks/decision-rules.md +0 -12
  1797. package/runtime/agents/n2-support-agent/capabilities/select-specialist-checks/runner.py +0 -12
  1798. package/runtime/agents/n2-support-agent/capabilities/select-specialist-checks/workflow.md +0 -15
  1799. package/runtime/agents/n2-support-agent/capabilities/update-azure-workflow/capability.yaml +0 -15
  1800. package/runtime/agents/n2-support-agent/capabilities/update-azure-workflow/decision-rules.md +0 -12
  1801. package/runtime/agents/n2-support-agent/capabilities/update-azure-workflow/runner.py +0 -12
  1802. package/runtime/agents/n2-support-agent/capabilities/update-azure-workflow/workflow.md +0 -15
  1803. package/runtime/agents/n2-support-agent/capabilities/update-n2-card-workflow/capability.yaml +0 -15
  1804. package/runtime/agents/n2-support-agent/capabilities/update-n2-card-workflow/decision-rules.md +0 -12
  1805. package/runtime/agents/n2-support-agent/capabilities/update-n2-card-workflow/runner.py +0 -12
  1806. package/runtime/agents/n2-support-agent/capabilities/update-n2-card-workflow/workflow.md +0 -32
  1807. package/runtime/agents/n2-support-agent/capabilities/validate-n1-handoff/capability.yaml +0 -15
  1808. package/runtime/agents/n2-support-agent/capabilities/validate-n1-handoff/decision-rules.md +0 -12
  1809. package/runtime/agents/n2-support-agent/capabilities/validate-n1-handoff/runner.py +0 -12
  1810. package/runtime/agents/n2-support-agent/capabilities/validate-n1-handoff/workflow.md +0 -14
  1811. package/runtime/agents/n2-support-agent/infra/README.md +0 -7
  1812. package/runtime/agents/n2-support-agent/knowledge/context.md +0 -15
  1813. package/runtime/agents/n2-support-agent/knowledge/policies.yaml +0 -43
  1814. package/runtime/agents/n2-support-agent/knowledge/prompts/README.md +0 -3
  1815. package/runtime/agents/n2-support-agent/knowledge/prompts/analyze-code-root-cause.md +0 -38
  1816. package/runtime/agents/n2-support-agent/knowledge/prompts/build-reproduction-strategy.md +0 -36
  1817. package/runtime/agents/n2-support-agent/knowledge/prompts/classify-root-cause.md +0 -38
  1818. package/runtime/agents/n2-support-agent/knowledge/prompts/correlate-runtime-evidence.md +0 -35
  1819. package/runtime/agents/n2-support-agent/knowledge/prompts/execute-n2-investigation.md +0 -40
  1820. package/runtime/agents/n2-support-agent/knowledge/prompts/execute-specialist-validation.md +0 -41
  1821. package/runtime/agents/n2-support-agent/knowledge/prompts/generate-card-comment.md +0 -35
  1822. package/runtime/agents/n2-support-agent/knowledge/prompts/generate-patch-plan.md +0 -40
  1823. package/runtime/agents/n2-support-agent/knowledge/prompts/load-support-context.md +0 -38
  1824. package/runtime/agents/n2-support-agent/knowledge/prompts/rank-code-findings.md +0 -34
  1825. package/runtime/agents/n2-support-agent/knowledge/prompts/review-patch-plan-readiness.md +0 -36
  1826. package/runtime/agents/n2-support-agent/knowledge/prompts/select-specialist-checks.md +0 -36
  1827. package/runtime/agents/n2-support-agent/knowledge/prompts/update-azure-workflow.md +0 -37
  1828. package/runtime/agents/n2-support-agent/knowledge/prompts/update-n2-card-workflow.md +0 -37
  1829. package/runtime/agents/n2-support-agent/knowledge/prompts/validate-n1-handoff.md +0 -37
  1830. package/runtime/agents/n2-support-agent/knowledge/runbooks/n2-root-cause-analysis.md +0 -20
  1831. package/runtime/agents/n2-support-agent/knowledge/runbooks/root-cause-taxonomy.md +0 -32
  1832. package/runtime/agents/n2-support-agent/knowledge/runbooks/specialist-validation-catalog.md +0 -44
  1833. package/runtime/agents/n2-support-agent/knowledge/system.md +0 -46
  1834. package/runtime/agents/n2-support-agent/templates/README.md +0 -6
  1835. package/runtime/agents/n2-support-agent/tests/test_agentic_contracts.py +0 -68
  1836. package/runtime/agents/n2-support-agent/tests/test_runners.py +0 -569
  1837. package/runtime/agents/notification-operator/AGENTS.md +0 -11
  1838. package/runtime/agents/notification-operator/README.md +0 -15
  1839. package/runtime/agents/notification-operator/agent.yaml +0 -43
  1840. package/runtime/agents/notification-operator/capabilities/configure-notification-channel/capability.yaml +0 -19
  1841. package/runtime/agents/notification-operator/capabilities/configure-notification-channel/decision-rules.md +0 -6
  1842. package/runtime/agents/notification-operator/capabilities/configure-notification-channel/runner.py +0 -33
  1843. package/runtime/agents/notification-operator/capabilities/configure-notification-channel/workflow.md +0 -6
  1844. package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/capability.yaml +0 -25
  1845. package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/decision-rules.md +0 -7
  1846. package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/runner.py +0 -49
  1847. package/runtime/agents/notification-operator/capabilities/format-task-completion-notification/workflow.md +0 -6
  1848. package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/capability.yaml +0 -27
  1849. package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/decision-rules.md +0 -6
  1850. package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/runner.py +0 -68
  1851. package/runtime/agents/notification-operator/capabilities/send-task-completion-notification/workflow.md +0 -7
  1852. package/runtime/agents/notification-operator/infra/README.md +0 -6
  1853. package/runtime/agents/notification-operator/knowledge/context.md +0 -10
  1854. package/runtime/agents/notification-operator/knowledge/policies.yaml +0 -9
  1855. package/runtime/agents/notification-operator/knowledge/system.md +0 -7
  1856. package/runtime/agents/notification-operator/templates/README.md +0 -6
  1857. package/runtime/agents/notification-operator/tests/test_runners.py +0 -108
  1858. package/runtime/agents/playwright-automation-builder/AGENTS.md +0 -23
  1859. package/runtime/agents/playwright-automation-builder/README.md +0 -43
  1860. package/runtime/agents/playwright-automation-builder/agent.yaml +0 -48
  1861. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/capability.yaml +0 -20
  1862. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/decision-rules.md +0 -6
  1863. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/runner.py +0 -38
  1864. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-project-files/workflow.md +0 -6
  1865. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/capability.yaml +0 -18
  1866. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/decision-rules.md +0 -6
  1867. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/runner.py +0 -32
  1868. package/runtime/agents/playwright-automation-builder/capabilities/generate-playwright-script/workflow.md +0 -6
  1869. package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/capability.yaml +0 -18
  1870. package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/decision-rules.md +0 -6
  1871. package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/runner.py +0 -32
  1872. package/runtime/agents/playwright-automation-builder/capabilities/plan-playwright-automation/workflow.md +0 -6
  1873. package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/capability.yaml +0 -19
  1874. package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/decision-rules.md +0 -6
  1875. package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/runner.py +0 -33
  1876. package/runtime/agents/playwright-automation-builder/capabilities/review-playwright-artifacts/workflow.md +0 -6
  1877. package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/capability.yaml +0 -22
  1878. package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/decision-rules.md +0 -6
  1879. package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/runner.py +0 -40
  1880. package/runtime/agents/playwright-automation-builder/capabilities/run-playwright-check/workflow.md +0 -6
  1881. package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/capability.yaml +0 -22
  1882. package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/decision-rules.md +0 -6
  1883. package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/runner.py +0 -42
  1884. package/runtime/agents/playwright-automation-builder/capabilities/wrap-playwright-as-capability/workflow.md +0 -6
  1885. package/runtime/agents/playwright-automation-builder/infra/integrations/playwright-automation/playwright_automation_repository.py +0 -865
  1886. package/runtime/agents/playwright-automation-builder/knowledge/context.md +0 -19
  1887. package/runtime/agents/playwright-automation-builder/knowledge/policies.yaml +0 -25
  1888. package/runtime/agents/playwright-automation-builder/knowledge/system.md +0 -19
  1889. package/runtime/agents/playwright-automation-builder/templates/capability-wrapper.md +0 -4
  1890. package/runtime/agents/playwright-automation-builder/templates/playwright-automation.py +0 -12
  1891. package/runtime/agents/playwright-automation-builder/templates/playwright-readme.md +0 -13
  1892. package/runtime/agents/playwright-automation-builder/templates/playwright-review-report.md +0 -9
  1893. package/runtime/agents/playwright-automation-builder/templates/playwright-test.py +0 -2
  1894. package/runtime/agents/playwright-automation-builder/tests/test_runners.py +0 -261
  1895. package/runtime/agents/postgres-data-analyzer/AGENTS.md +0 -28
  1896. package/runtime/agents/postgres-data-analyzer/README.md +0 -58
  1897. package/runtime/agents/postgres-data-analyzer/agent.yaml +0 -103
  1898. package/runtime/agents/postgres-data-analyzer/capabilities/_shared/runner_support.py +0 -189
  1899. package/runtime/agents/postgres-data-analyzer/capabilities/_shared/strong_runner.py +0 -172
  1900. package/runtime/agents/postgres-data-analyzer/capabilities/analyze-cpf-column/capability.yaml +0 -23
  1901. package/runtime/agents/postgres-data-analyzer/capabilities/analyze-cpf-column/decision-rules.md +0 -10
  1902. package/runtime/agents/postgres-data-analyzer/capabilities/analyze-cpf-column/runner.py +0 -41
  1903. package/runtime/agents/postgres-data-analyzer/capabilities/analyze-cpf-column/workflow.md +0 -6
  1904. package/runtime/agents/postgres-data-analyzer/capabilities/analyze-query-result/capability.yaml +0 -22
  1905. package/runtime/agents/postgres-data-analyzer/capabilities/analyze-query-result/decision-rules.md +0 -10
  1906. package/runtime/agents/postgres-data-analyzer/capabilities/analyze-query-result/runner.py +0 -15
  1907. package/runtime/agents/postgres-data-analyzer/capabilities/analyze-query-result/workflow.md +0 -6
  1908. package/runtime/agents/postgres-data-analyzer/capabilities/build-analysis-query/capability.yaml +0 -22
  1909. package/runtime/agents/postgres-data-analyzer/capabilities/build-analysis-query/decision-rules.md +0 -10
  1910. package/runtime/agents/postgres-data-analyzer/capabilities/build-analysis-query/runner.py +0 -15
  1911. package/runtime/agents/postgres-data-analyzer/capabilities/build-analysis-query/workflow.md +0 -6
  1912. package/runtime/agents/postgres-data-analyzer/capabilities/compare-tables/capability.yaml +0 -22
  1913. package/runtime/agents/postgres-data-analyzer/capabilities/compare-tables/decision-rules.md +0 -10
  1914. package/runtime/agents/postgres-data-analyzer/capabilities/compare-tables/runner.py +0 -15
  1915. package/runtime/agents/postgres-data-analyzer/capabilities/compare-tables/workflow.md +0 -6
  1916. package/runtime/agents/postgres-data-analyzer/capabilities/describe-table/capability.yaml +0 -22
  1917. package/runtime/agents/postgres-data-analyzer/capabilities/describe-table/decision-rules.md +0 -10
  1918. package/runtime/agents/postgres-data-analyzer/capabilities/describe-table/runner.py +0 -56
  1919. package/runtime/agents/postgres-data-analyzer/capabilities/describe-table/workflow.md +0 -5
  1920. package/runtime/agents/postgres-data-analyzer/capabilities/detect-data-quality-issues/capability.yaml +0 -22
  1921. package/runtime/agents/postgres-data-analyzer/capabilities/detect-data-quality-issues/decision-rules.md +0 -10
  1922. package/runtime/agents/postgres-data-analyzer/capabilities/detect-data-quality-issues/runner.py +0 -15
  1923. package/runtime/agents/postgres-data-analyzer/capabilities/detect-data-quality-issues/workflow.md +0 -6
  1924. package/runtime/agents/postgres-data-analyzer/capabilities/detect-sensitive-columns/capability.yaml +0 -22
  1925. package/runtime/agents/postgres-data-analyzer/capabilities/detect-sensitive-columns/decision-rules.md +0 -10
  1926. package/runtime/agents/postgres-data-analyzer/capabilities/detect-sensitive-columns/runner.py +0 -34
  1927. package/runtime/agents/postgres-data-analyzer/capabilities/detect-sensitive-columns/workflow.md +0 -5
  1928. package/runtime/agents/postgres-data-analyzer/capabilities/estimate-table-size/capability.yaml +0 -22
  1929. package/runtime/agents/postgres-data-analyzer/capabilities/estimate-table-size/decision-rules.md +0 -10
  1930. package/runtime/agents/postgres-data-analyzer/capabilities/estimate-table-size/runner.py +0 -15
  1931. package/runtime/agents/postgres-data-analyzer/capabilities/estimate-table-size/workflow.md +0 -6
  1932. package/runtime/agents/postgres-data-analyzer/capabilities/explain-query-plan/capability.yaml +0 -22
  1933. package/runtime/agents/postgres-data-analyzer/capabilities/explain-query-plan/decision-rules.md +0 -10
  1934. package/runtime/agents/postgres-data-analyzer/capabilities/explain-query-plan/runner.py +0 -15
  1935. package/runtime/agents/postgres-data-analyzer/capabilities/explain-query-plan/workflow.md +0 -6
  1936. package/runtime/agents/postgres-data-analyzer/capabilities/explore-database-domain/capability.yaml +0 -22
  1937. package/runtime/agents/postgres-data-analyzer/capabilities/explore-database-domain/decision-rules.md +0 -10
  1938. package/runtime/agents/postgres-data-analyzer/capabilities/explore-database-domain/runner.py +0 -15
  1939. package/runtime/agents/postgres-data-analyzer/capabilities/explore-database-domain/workflow.md +0 -6
  1940. package/runtime/agents/postgres-data-analyzer/capabilities/generate-data-report/capability.yaml +0 -24
  1941. package/runtime/agents/postgres-data-analyzer/capabilities/generate-data-report/decision-rules.md +0 -10
  1942. package/runtime/agents/postgres-data-analyzer/capabilities/generate-data-report/runner.py +0 -86
  1943. package/runtime/agents/postgres-data-analyzer/capabilities/generate-data-report/workflow.md +0 -5
  1944. package/runtime/agents/postgres-data-analyzer/capabilities/generate-erd-report/capability.yaml +0 -22
  1945. package/runtime/agents/postgres-data-analyzer/capabilities/generate-erd-report/decision-rules.md +0 -10
  1946. package/runtime/agents/postgres-data-analyzer/capabilities/generate-erd-report/runner.py +0 -15
  1947. package/runtime/agents/postgres-data-analyzer/capabilities/generate-erd-report/workflow.md +0 -6
  1948. package/runtime/agents/postgres-data-analyzer/capabilities/list-databases/capability.yaml +0 -22
  1949. package/runtime/agents/postgres-data-analyzer/capabilities/list-databases/decision-rules.md +0 -10
  1950. package/runtime/agents/postgres-data-analyzer/capabilities/list-databases/runner.py +0 -15
  1951. package/runtime/agents/postgres-data-analyzer/capabilities/list-databases/workflow.md +0 -6
  1952. package/runtime/agents/postgres-data-analyzer/capabilities/list-relationships/capability.yaml +0 -22
  1953. package/runtime/agents/postgres-data-analyzer/capabilities/list-relationships/decision-rules.md +0 -10
  1954. package/runtime/agents/postgres-data-analyzer/capabilities/list-relationships/runner.py +0 -15
  1955. package/runtime/agents/postgres-data-analyzer/capabilities/list-relationships/workflow.md +0 -6
  1956. package/runtime/agents/postgres-data-analyzer/capabilities/list-schemas/capability.yaml +0 -21
  1957. package/runtime/agents/postgres-data-analyzer/capabilities/list-schemas/decision-rules.md +0 -10
  1958. package/runtime/agents/postgres-data-analyzer/capabilities/list-schemas/runner.py +0 -36
  1959. package/runtime/agents/postgres-data-analyzer/capabilities/list-schemas/workflow.md +0 -4
  1960. package/runtime/agents/postgres-data-analyzer/capabilities/list-tables/capability.yaml +0 -21
  1961. package/runtime/agents/postgres-data-analyzer/capabilities/list-tables/decision-rules.md +0 -10
  1962. package/runtime/agents/postgres-data-analyzer/capabilities/list-tables/runner.py +0 -35
  1963. package/runtime/agents/postgres-data-analyzer/capabilities/list-tables/workflow.md +0 -4
  1964. package/runtime/agents/postgres-data-analyzer/capabilities/profile-table/capability.yaml +0 -22
  1965. package/runtime/agents/postgres-data-analyzer/capabilities/profile-table/decision-rules.md +0 -10
  1966. package/runtime/agents/postgres-data-analyzer/capabilities/profile-table/runner.py +0 -41
  1967. package/runtime/agents/postgres-data-analyzer/capabilities/profile-table/workflow.md +0 -5
  1968. package/runtime/agents/postgres-data-analyzer/capabilities/run-readonly-query/capability.yaml +0 -22
  1969. package/runtime/agents/postgres-data-analyzer/capabilities/run-readonly-query/decision-rules.md +0 -10
  1970. package/runtime/agents/postgres-data-analyzer/capabilities/run-readonly-query/runner.py +0 -40
  1971. package/runtime/agents/postgres-data-analyzer/capabilities/run-readonly-query/workflow.md +0 -6
  1972. package/runtime/agents/postgres-data-analyzer/capabilities/sample-table/capability.yaml +0 -22
  1973. package/runtime/agents/postgres-data-analyzer/capabilities/sample-table/decision-rules.md +0 -10
  1974. package/runtime/agents/postgres-data-analyzer/capabilities/sample-table/runner.py +0 -15
  1975. package/runtime/agents/postgres-data-analyzer/capabilities/sample-table/workflow.md +0 -6
  1976. package/runtime/agents/postgres-data-analyzer/capabilities/search-columns/capability.yaml +0 -22
  1977. package/runtime/agents/postgres-data-analyzer/capabilities/search-columns/decision-rules.md +0 -10
  1978. package/runtime/agents/postgres-data-analyzer/capabilities/search-columns/runner.py +0 -15
  1979. package/runtime/agents/postgres-data-analyzer/capabilities/search-columns/workflow.md +0 -6
  1980. package/runtime/agents/postgres-data-analyzer/capabilities/search-tables/capability.yaml +0 -22
  1981. package/runtime/agents/postgres-data-analyzer/capabilities/search-tables/decision-rules.md +0 -10
  1982. package/runtime/agents/postgres-data-analyzer/capabilities/search-tables/runner.py +0 -15
  1983. package/runtime/agents/postgres-data-analyzer/capabilities/search-tables/workflow.md +0 -6
  1984. package/runtime/agents/postgres-data-analyzer/capabilities/suggest-joins/capability.yaml +0 -22
  1985. package/runtime/agents/postgres-data-analyzer/capabilities/suggest-joins/decision-rules.md +0 -10
  1986. package/runtime/agents/postgres-data-analyzer/capabilities/suggest-joins/runner.py +0 -15
  1987. package/runtime/agents/postgres-data-analyzer/capabilities/suggest-joins/workflow.md +0 -6
  1988. package/runtime/agents/postgres-data-analyzer/capabilities/test-connection/capability.yaml +0 -21
  1989. package/runtime/agents/postgres-data-analyzer/capabilities/test-connection/decision-rules.md +0 -10
  1990. package/runtime/agents/postgres-data-analyzer/capabilities/test-connection/runner.py +0 -34
  1991. package/runtime/agents/postgres-data-analyzer/capabilities/test-connection/workflow.md +0 -5
  1992. package/runtime/agents/postgres-data-analyzer/capabilities/trace-record/capability.yaml +0 -22
  1993. package/runtime/agents/postgres-data-analyzer/capabilities/trace-record/decision-rules.md +0 -10
  1994. package/runtime/agents/postgres-data-analyzer/capabilities/trace-record/runner.py +0 -15
  1995. package/runtime/agents/postgres-data-analyzer/capabilities/trace-record/workflow.md +0 -6
  1996. package/runtime/agents/postgres-data-analyzer/capabilities/validate-readonly-query/capability.yaml +0 -22
  1997. package/runtime/agents/postgres-data-analyzer/capabilities/validate-readonly-query/decision-rules.md +0 -10
  1998. package/runtime/agents/postgres-data-analyzer/capabilities/validate-readonly-query/runner.py +0 -15
  1999. package/runtime/agents/postgres-data-analyzer/capabilities/validate-readonly-query/workflow.md +0 -6
  2000. package/runtime/agents/postgres-data-analyzer/infra/README.md +0 -3
  2001. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/README.md +0 -14
  2002. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/cli.py +0 -80
  2003. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/env.example +0 -2
  2004. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/integration.yaml +0 -29
  2005. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/mcp/README.md +0 -3
  2006. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/analyze-cpf-column.yaml +0 -16
  2007. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/analyze-query-result.yaml +0 -8
  2008. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/build-analysis-query.yaml +0 -8
  2009. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/compare-tables.yaml +0 -8
  2010. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/describe-table.yaml +0 -8
  2011. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/detect-data-quality-issues.yaml +0 -8
  2012. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/detect-sensitive-columns.yaml +0 -7
  2013. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/estimate-table-size.yaml +0 -8
  2014. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/explain-query-plan.yaml +0 -8
  2015. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/explore-database-domain.yaml +0 -8
  2016. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/generate-data-report.yaml +0 -19
  2017. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/generate-erd-report.yaml +0 -8
  2018. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/list-databases.yaml +0 -8
  2019. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/list-relationships.yaml +0 -8
  2020. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/list-schemas.yaml +0 -7
  2021. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/list-tables.yaml +0 -7
  2022. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/profile-table.yaml +0 -8
  2023. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/run-readonly-query.yaml +0 -8
  2024. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/sample-table.yaml +0 -8
  2025. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/search-columns.yaml +0 -8
  2026. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/search-tables.yaml +0 -8
  2027. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/suggest-joins.yaml +0 -8
  2028. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/test-connection.yaml +0 -7
  2029. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/trace-record.yaml +0 -8
  2030. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/methods/validate-readonly-query.yaml +0 -8
  2031. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/models/README.md +0 -3
  2032. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/postgres_repository.py +0 -619
  2033. package/runtime/agents/postgres-data-analyzer/infra/integrations/postgres/tests/test_repository.py +0 -88
  2034. package/runtime/agents/postgres-data-analyzer/knowledge/README.md +0 -3
  2035. package/runtime/agents/postgres-data-analyzer/knowledge/context.md +0 -9
  2036. package/runtime/agents/postgres-data-analyzer/knowledge/policies.yaml +0 -82
  2037. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/README.md +0 -3
  2038. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/analyze-cpf-column.md +0 -45
  2039. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/analyze-query-result.md +0 -35
  2040. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/build-analysis-query.md +0 -39
  2041. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/compare-tables.md +0 -37
  2042. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/describe-table.md +0 -35
  2043. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/detect-data-quality-issues.md +0 -33
  2044. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/detect-sensitive-columns.md +0 -32
  2045. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/estimate-table-size.md +0 -33
  2046. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/explain-query-plan.md +0 -37
  2047. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/explore-database-domain.md +0 -35
  2048. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/generate-data-report.md +0 -54
  2049. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/generate-erd-report.md +0 -34
  2050. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/list-databases.md +0 -28
  2051. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/list-relationships.md +0 -31
  2052. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/list-schemas.md +0 -29
  2053. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/list-tables.md +0 -32
  2054. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/profile-table.md +0 -36
  2055. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/run-readonly-query.md +0 -44
  2056. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/sample-table.md +0 -44
  2057. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/search-columns.md +0 -32
  2058. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/search-tables.md +0 -29
  2059. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/suggest-joins.md +0 -32
  2060. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/test-connection.md +0 -34
  2061. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/trace-record.md +0 -43
  2062. package/runtime/agents/postgres-data-analyzer/knowledge/prompts/validate-readonly-query.md +0 -47
  2063. package/runtime/agents/postgres-data-analyzer/knowledge/system.md +0 -48
  2064. package/runtime/agents/postgres-data-analyzer/templates/README.md +0 -3
  2065. package/runtime/agents/postgres-data-analyzer/templates/analyze-cpf-column-output.md +0 -21
  2066. package/runtime/agents/postgres-data-analyzer/templates/analyze-query-result-output.md +0 -14
  2067. package/runtime/agents/postgres-data-analyzer/templates/build-analysis-query-output.md +0 -12
  2068. package/runtime/agents/postgres-data-analyzer/templates/compare-tables-output.md +0 -25
  2069. package/runtime/agents/postgres-data-analyzer/templates/describe-table-output.md +0 -25
  2070. package/runtime/agents/postgres-data-analyzer/templates/detect-data-quality-issues-output.md +0 -11
  2071. package/runtime/agents/postgres-data-analyzer/templates/detect-sensitive-columns-output.md +0 -13
  2072. package/runtime/agents/postgres-data-analyzer/templates/estimate-table-size-output.md +0 -12
  2073. package/runtime/agents/postgres-data-analyzer/templates/explain-query-plan-output.md +0 -15
  2074. package/runtime/agents/postgres-data-analyzer/templates/explore-database-domain-output.md +0 -19
  2075. package/runtime/agents/postgres-data-analyzer/templates/generate-data-report-output.md +0 -34
  2076. package/runtime/agents/postgres-data-analyzer/templates/generate-erd-report-output.md +0 -10
  2077. package/runtime/agents/postgres-data-analyzer/templates/list-databases-output.md +0 -10
  2078. package/runtime/agents/postgres-data-analyzer/templates/list-relationships-output.md +0 -10
  2079. package/runtime/agents/postgres-data-analyzer/templates/list-schemas-output.md +0 -10
  2080. package/runtime/agents/postgres-data-analyzer/templates/list-tables-output.md +0 -11
  2081. package/runtime/agents/postgres-data-analyzer/templates/profile-table-output.md +0 -18
  2082. package/runtime/agents/postgres-data-analyzer/templates/run-readonly-query-output.md +0 -11
  2083. package/runtime/agents/postgres-data-analyzer/templates/sample-table-output.md +0 -12
  2084. package/runtime/agents/postgres-data-analyzer/templates/search-columns-output.md +0 -11
  2085. package/runtime/agents/postgres-data-analyzer/templates/search-tables-output.md +0 -11
  2086. package/runtime/agents/postgres-data-analyzer/templates/suggest-joins-output.md +0 -11
  2087. package/runtime/agents/postgres-data-analyzer/templates/test-connection-output.md +0 -8
  2088. package/runtime/agents/postgres-data-analyzer/templates/trace-record-output.md +0 -17
  2089. package/runtime/agents/postgres-data-analyzer/templates/validate-readonly-query-output.md +0 -11
  2090. package/runtime/agents/postgres-data-analyzer/tests/test_runners.py +0 -435
  2091. package/runtime/agents/presentation-deck-builder/AGENTS.md +0 -31
  2092. package/runtime/agents/presentation-deck-builder/README.md +0 -42
  2093. package/runtime/agents/presentation-deck-builder/agent.yaml +0 -66
  2094. package/runtime/agents/presentation-deck-builder/capabilities/_shared/template_support.py +0 -372
  2095. package/runtime/agents/presentation-deck-builder/capabilities/compare-template-versions/capability.yaml +0 -18
  2096. package/runtime/agents/presentation-deck-builder/capabilities/compare-template-versions/decision-rules.md +0 -12
  2097. package/runtime/agents/presentation-deck-builder/capabilities/compare-template-versions/workflow.md +0 -5
  2098. package/runtime/agents/presentation-deck-builder/capabilities/create-template/capability.yaml +0 -18
  2099. package/runtime/agents/presentation-deck-builder/capabilities/create-template/decision-rules.md +0 -12
  2100. package/runtime/agents/presentation-deck-builder/capabilities/create-template/workflow.md +0 -6
  2101. package/runtime/agents/presentation-deck-builder/capabilities/create-template-version/capability.yaml +0 -19
  2102. package/runtime/agents/presentation-deck-builder/capabilities/create-template-version/decision-rules.md +0 -12
  2103. package/runtime/agents/presentation-deck-builder/capabilities/create-template-version/runner.py +0 -101
  2104. package/runtime/agents/presentation-deck-builder/capabilities/create-template-version/workflow.md +0 -5
  2105. package/runtime/agents/presentation-deck-builder/capabilities/deprecate-template-version/capability.yaml +0 -19
  2106. package/runtime/agents/presentation-deck-builder/capabilities/deprecate-template-version/decision-rules.md +0 -12
  2107. package/runtime/agents/presentation-deck-builder/capabilities/deprecate-template-version/runner.py +0 -102
  2108. package/runtime/agents/presentation-deck-builder/capabilities/deprecate-template-version/workflow.md +0 -5
  2109. package/runtime/agents/presentation-deck-builder/capabilities/generate-deck-from-template/capability.yaml +0 -19
  2110. package/runtime/agents/presentation-deck-builder/capabilities/generate-deck-from-template/decision-rules.md +0 -12
  2111. package/runtime/agents/presentation-deck-builder/capabilities/generate-deck-from-template/runner.py +0 -483
  2112. package/runtime/agents/presentation-deck-builder/capabilities/generate-deck-from-template/workflow.md +0 -6
  2113. package/runtime/agents/presentation-deck-builder/capabilities/generate-template-input-file/capability.yaml +0 -23
  2114. package/runtime/agents/presentation-deck-builder/capabilities/generate-template-input-file/decision-rules.md +0 -12
  2115. package/runtime/agents/presentation-deck-builder/capabilities/generate-template-input-file/runner.py +0 -57
  2116. package/runtime/agents/presentation-deck-builder/capabilities/generate-template-input-file/workflow.md +0 -5
  2117. package/runtime/agents/presentation-deck-builder/capabilities/ingest-source-document/capability.yaml +0 -21
  2118. package/runtime/agents/presentation-deck-builder/capabilities/ingest-source-document/decision-rules.md +0 -12
  2119. package/runtime/agents/presentation-deck-builder/capabilities/ingest-source-document/workflow.md +0 -5
  2120. package/runtime/agents/presentation-deck-builder/capabilities/inspect-template/capability.yaml +0 -18
  2121. package/runtime/agents/presentation-deck-builder/capabilities/inspect-template/decision-rules.md +0 -12
  2122. package/runtime/agents/presentation-deck-builder/capabilities/inspect-template/workflow.md +0 -5
  2123. package/runtime/agents/presentation-deck-builder/capabilities/list-template-versions/capability.yaml +0 -21
  2124. package/runtime/agents/presentation-deck-builder/capabilities/list-template-versions/decision-rules.md +0 -12
  2125. package/runtime/agents/presentation-deck-builder/capabilities/list-template-versions/runner.py +0 -42
  2126. package/runtime/agents/presentation-deck-builder/capabilities/list-template-versions/workflow.md +0 -5
  2127. package/runtime/agents/presentation-deck-builder/capabilities/list-templates/capability.yaml +0 -20
  2128. package/runtime/agents/presentation-deck-builder/capabilities/list-templates/decision-rules.md +0 -12
  2129. package/runtime/agents/presentation-deck-builder/capabilities/list-templates/runner.py +0 -37
  2130. package/runtime/agents/presentation-deck-builder/capabilities/list-templates/workflow.md +0 -5
  2131. package/runtime/agents/presentation-deck-builder/capabilities/plan-deck/capability.yaml +0 -18
  2132. package/runtime/agents/presentation-deck-builder/capabilities/plan-deck/decision-rules.md +0 -12
  2133. package/runtime/agents/presentation-deck-builder/capabilities/plan-deck/workflow.md +0 -5
  2134. package/runtime/agents/presentation-deck-builder/capabilities/promote-template-version/capability.yaml +0 -19
  2135. package/runtime/agents/presentation-deck-builder/capabilities/promote-template-version/decision-rules.md +0 -12
  2136. package/runtime/agents/presentation-deck-builder/capabilities/promote-template-version/runner.py +0 -89
  2137. package/runtime/agents/presentation-deck-builder/capabilities/promote-template-version/workflow.md +0 -5
  2138. package/runtime/agents/presentation-deck-builder/capabilities/refine-generated-deck/capability.yaml +0 -21
  2139. package/runtime/agents/presentation-deck-builder/capabilities/refine-generated-deck/decision-rules.md +0 -12
  2140. package/runtime/agents/presentation-deck-builder/capabilities/refine-generated-deck/workflow.md +0 -5
  2141. package/runtime/agents/presentation-deck-builder/capabilities/refine-template/capability.yaml +0 -19
  2142. package/runtime/agents/presentation-deck-builder/capabilities/refine-template/decision-rules.md +0 -12
  2143. package/runtime/agents/presentation-deck-builder/capabilities/refine-template/runner.py +0 -136
  2144. package/runtime/agents/presentation-deck-builder/capabilities/refine-template/workflow.md +0 -5
  2145. package/runtime/agents/presentation-deck-builder/capabilities/register-template/capability.yaml +0 -28
  2146. package/runtime/agents/presentation-deck-builder/capabilities/register-template/decision-rules.md +0 -12
  2147. package/runtime/agents/presentation-deck-builder/capabilities/register-template/runner.py +0 -80
  2148. package/runtime/agents/presentation-deck-builder/capabilities/register-template/workflow.md +0 -8
  2149. package/runtime/agents/presentation-deck-builder/capabilities/review-generated-deck/capability.yaml +0 -18
  2150. package/runtime/agents/presentation-deck-builder/capabilities/review-generated-deck/decision-rules.md +0 -12
  2151. package/runtime/agents/presentation-deck-builder/capabilities/review-generated-deck/workflow.md +0 -5
  2152. package/runtime/agents/presentation-deck-builder/infra/README.md +0 -4
  2153. package/runtime/agents/presentation-deck-builder/infra/integrations/document-reader/README.md +0 -3
  2154. package/runtime/agents/presentation-deck-builder/infra/integrations/presentation-renderer/README.md +0 -3
  2155. package/runtime/agents/presentation-deck-builder/knowledge/context.md +0 -37
  2156. package/runtime/agents/presentation-deck-builder/knowledge/output-templates/deck-plan.md +0 -47
  2157. package/runtime/agents/presentation-deck-builder/knowledge/output-templates/deck-review.md +0 -40
  2158. package/runtime/agents/presentation-deck-builder/knowledge/output-templates/extracted-content.md +0 -38
  2159. package/runtime/agents/presentation-deck-builder/knowledge/output-templates/template-inspection.md +0 -33
  2160. package/runtime/agents/presentation-deck-builder/knowledge/output-templates/template-version-comparison.md +0 -38
  2161. package/runtime/agents/presentation-deck-builder/knowledge/policies.yaml +0 -47
  2162. package/runtime/agents/presentation-deck-builder/knowledge/prompts/compare-template-versions.md +0 -39
  2163. package/runtime/agents/presentation-deck-builder/knowledge/prompts/create-template-version.md +0 -37
  2164. package/runtime/agents/presentation-deck-builder/knowledge/prompts/create-template.md +0 -35
  2165. package/runtime/agents/presentation-deck-builder/knowledge/prompts/deprecate-template-version.md +0 -36
  2166. package/runtime/agents/presentation-deck-builder/knowledge/prompts/generate-deck-from-template.md +0 -48
  2167. package/runtime/agents/presentation-deck-builder/knowledge/prompts/generate-template-input-file.md +0 -30
  2168. package/runtime/agents/presentation-deck-builder/knowledge/prompts/ingest-source-document.md +0 -42
  2169. package/runtime/agents/presentation-deck-builder/knowledge/prompts/inspect-template.md +0 -34
  2170. package/runtime/agents/presentation-deck-builder/knowledge/prompts/list-template-versions.md +0 -33
  2171. package/runtime/agents/presentation-deck-builder/knowledge/prompts/list-templates.md +0 -29
  2172. package/runtime/agents/presentation-deck-builder/knowledge/prompts/plan-deck.md +0 -45
  2173. package/runtime/agents/presentation-deck-builder/knowledge/prompts/promote-template-version.md +0 -36
  2174. package/runtime/agents/presentation-deck-builder/knowledge/prompts/refine-generated-deck.md +0 -34
  2175. package/runtime/agents/presentation-deck-builder/knowledge/prompts/refine-template.md +0 -39
  2176. package/runtime/agents/presentation-deck-builder/knowledge/prompts/register-template.md +0 -43
  2177. package/runtime/agents/presentation-deck-builder/knowledge/prompts/review-generated-deck.md +0 -43
  2178. package/runtime/agents/presentation-deck-builder/knowledge/runtime.md +0 -39
  2179. package/runtime/agents/presentation-deck-builder/knowledge/system.md +0 -47
  2180. package/runtime/agents/presentation-deck-builder/knowledge/template-catalog.yaml +0 -3
  2181. package/runtime/agents/presentation-deck-builder/knowledge/template-routing.md +0 -6
  2182. package/runtime/agents/presentation-deck-builder/templates/README.md +0 -6
  2183. package/runtime/agents/presentation-deck-builder/tests/test_runners.py +0 -258
  2184. package/runtime/agents/provider-configurator/AGENTS.md +0 -8
  2185. package/runtime/agents/provider-configurator/README.md +0 -5
  2186. package/runtime/agents/provider-configurator/agent.yaml +0 -27
  2187. package/runtime/agents/provider-configurator/capabilities/collect-provider-credentials/capability.yaml +0 -14
  2188. package/runtime/agents/provider-configurator/capabilities/collect-provider-credentials/decision-rules.md +0 -6
  2189. package/runtime/agents/provider-configurator/capabilities/collect-provider-credentials/workflow.md +0 -7
  2190. package/runtime/agents/provider-configurator/capabilities/configure-provider-source/capability.yaml +0 -14
  2191. package/runtime/agents/provider-configurator/capabilities/configure-provider-source/decision-rules.md +0 -6
  2192. package/runtime/agents/provider-configurator/capabilities/configure-provider-source/workflow.md +0 -8
  2193. package/runtime/agents/provider-configurator/capabilities/validate-provider-readiness/capability.yaml +0 -14
  2194. package/runtime/agents/provider-configurator/capabilities/validate-provider-readiness/decision-rules.md +0 -6
  2195. package/runtime/agents/provider-configurator/capabilities/validate-provider-readiness/workflow.md +0 -7
  2196. package/runtime/agents/provider-configurator/infra/README.md +0 -5
  2197. package/runtime/agents/provider-configurator/knowledge/context.md +0 -8
  2198. package/runtime/agents/provider-configurator/knowledge/system.md +0 -19
  2199. package/runtime/agents/provider-configurator/templates/README.md +0 -4
  2200. package/runtime/agents/pyautogui-automation-builder/AGENTS.md +0 -32
  2201. package/runtime/agents/pyautogui-automation-builder/README.md +0 -44
  2202. package/runtime/agents/pyautogui-automation-builder/agent.yaml +0 -45
  2203. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/capability.yaml +0 -20
  2204. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/decision-rules.md +0 -6
  2205. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/runner.py +0 -39
  2206. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-project-files/workflow.md +0 -7
  2207. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/capability.yaml +0 -18
  2208. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/decision-rules.md +0 -7
  2209. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/runner.py +0 -33
  2210. package/runtime/agents/pyautogui-automation-builder/capabilities/generate-pyautogui-script/workflow.md +0 -7
  2211. package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/capability.yaml +0 -18
  2212. package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/decision-rules.md +0 -8
  2213. package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/runner.py +0 -33
  2214. package/runtime/agents/pyautogui-automation-builder/capabilities/plan-desktop-automation/workflow.md +0 -9
  2215. package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/capability.yaml +0 -20
  2216. package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/decision-rules.md +0 -8
  2217. package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/runner.py +0 -43
  2218. package/runtime/agents/pyautogui-automation-builder/capabilities/review-pyautogui-script/workflow.md +0 -7
  2219. package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/capability.yaml +0 -22
  2220. package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/decision-rules.md +0 -6
  2221. package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/runner.py +0 -43
  2222. package/runtime/agents/pyautogui-automation-builder/capabilities/wrap-pyautogui-as-capability/workflow.md +0 -7
  2223. package/runtime/agents/pyautogui-automation-builder/infra/integrations/pyautogui-automation/pyautogui_automation_repository.py +0 -856
  2224. package/runtime/agents/pyautogui-automation-builder/knowledge/context.md +0 -17
  2225. package/runtime/agents/pyautogui-automation-builder/knowledge/policies.yaml +0 -24
  2226. package/runtime/agents/pyautogui-automation-builder/knowledge/system.md +0 -13
  2227. package/runtime/agents/pyautogui-automation-builder/templates/capability-wrapper.md +0 -3
  2228. package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-automation.py +0 -12
  2229. package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-readme.md +0 -3
  2230. package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-review-report.md +0 -3
  2231. package/runtime/agents/pyautogui-automation-builder/templates/pyautogui-test.py +0 -2
  2232. package/runtime/agents/pyautogui-automation-builder/tests/test_runners.py +0 -376
  2233. package/runtime/agents/python-automation-builder/AGENTS.md +0 -25
  2234. package/runtime/agents/python-automation-builder/README.md +0 -43
  2235. package/runtime/agents/python-automation-builder/agent.yaml +0 -45
  2236. package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/capability.yaml +0 -20
  2237. package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/decision-rules.md +0 -6
  2238. package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/runner.py +0 -39
  2239. package/runtime/agents/python-automation-builder/capabilities/generate-automation-project-files/workflow.md +0 -7
  2240. package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/capability.yaml +0 -18
  2241. package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/decision-rules.md +0 -5
  2242. package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/runner.py +0 -33
  2243. package/runtime/agents/python-automation-builder/capabilities/generate-python-automation/workflow.md +0 -5
  2244. package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/capability.yaml +0 -18
  2245. package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/decision-rules.md +0 -6
  2246. package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/runner.py +0 -33
  2247. package/runtime/agents/python-automation-builder/capabilities/plan-python-automation/workflow.md +0 -6
  2248. package/runtime/agents/python-automation-builder/capabilities/review-python-automation/capability.yaml +0 -20
  2249. package/runtime/agents/python-automation-builder/capabilities/review-python-automation/decision-rules.md +0 -6
  2250. package/runtime/agents/python-automation-builder/capabilities/review-python-automation/runner.py +0 -43
  2251. package/runtime/agents/python-automation-builder/capabilities/review-python-automation/workflow.md +0 -5
  2252. package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/capability.yaml +0 -22
  2253. package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/decision-rules.md +0 -6
  2254. package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/runner.py +0 -43
  2255. package/runtime/agents/python-automation-builder/capabilities/wrap-automation-as-capability/workflow.md +0 -6
  2256. package/runtime/agents/python-automation-builder/infra/integrations/python-automation/python_automation_repository.py +0 -717
  2257. package/runtime/agents/python-automation-builder/knowledge/context.md +0 -15
  2258. package/runtime/agents/python-automation-builder/knowledge/policies.yaml +0 -12
  2259. package/runtime/agents/python-automation-builder/knowledge/system.md +0 -19
  2260. package/runtime/agents/python-automation-builder/templates/automation-readme.md +0 -13
  2261. package/runtime/agents/python-automation-builder/templates/automation-review-report.md +0 -13
  2262. package/runtime/agents/python-automation-builder/templates/automation-test.py +0 -9
  2263. package/runtime/agents/python-automation-builder/templates/automation.py +0 -19
  2264. package/runtime/agents/python-automation-builder/templates/capability-wrapper.md +0 -4
  2265. package/runtime/agents/python-automation-builder/tests/test_runners.py +0 -292
  2266. package/runtime/agents/selenium-automation-builder/AGENTS.md +0 -27
  2267. package/runtime/agents/selenium-automation-builder/README.md +0 -40
  2268. package/runtime/agents/selenium-automation-builder/agent.yaml +0 -45
  2269. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/capability.yaml +0 -20
  2270. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/decision-rules.md +0 -6
  2271. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/runner.py +0 -39
  2272. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-project-files/workflow.md +0 -7
  2273. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/capability.yaml +0 -18
  2274. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/decision-rules.md +0 -6
  2275. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/runner.py +0 -33
  2276. package/runtime/agents/selenium-automation-builder/capabilities/generate-selenium-script/workflow.md +0 -6
  2277. package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/capability.yaml +0 -18
  2278. package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/decision-rules.md +0 -6
  2279. package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/runner.py +0 -33
  2280. package/runtime/agents/selenium-automation-builder/capabilities/plan-selenium-automation/workflow.md +0 -6
  2281. package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/capability.yaml +0 -20
  2282. package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/decision-rules.md +0 -6
  2283. package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/runner.py +0 -40
  2284. package/runtime/agents/selenium-automation-builder/capabilities/review-selenium-script/workflow.md +0 -6
  2285. package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/capability.yaml +0 -22
  2286. package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/decision-rules.md +0 -6
  2287. package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/runner.py +0 -43
  2288. package/runtime/agents/selenium-automation-builder/capabilities/wrap-selenium-as-capability/workflow.md +0 -6
  2289. package/runtime/agents/selenium-automation-builder/infra/integrations/selenium-automation/selenium_automation_repository.py +0 -793
  2290. package/runtime/agents/selenium-automation-builder/knowledge/context.md +0 -15
  2291. package/runtime/agents/selenium-automation-builder/knowledge/policies.yaml +0 -17
  2292. package/runtime/agents/selenium-automation-builder/knowledge/system.md +0 -18
  2293. package/runtime/agents/selenium-automation-builder/templates/capability-wrapper.md +0 -4
  2294. package/runtime/agents/selenium-automation-builder/templates/selenium-automation.py +0 -20
  2295. package/runtime/agents/selenium-automation-builder/templates/selenium-readme.md +0 -13
  2296. package/runtime/agents/selenium-automation-builder/templates/selenium-review-report.md +0 -13
  2297. package/runtime/agents/selenium-automation-builder/templates/selenium-test.py +0 -9
  2298. package/runtime/agents/selenium-automation-builder/tests/test_runners.py +0 -282
  2299. package/runtime/agents/shared-memory-curator/AGENTS.md +0 -5
  2300. package/runtime/agents/shared-memory-curator/README.md +0 -6
  2301. package/runtime/agents/shared-memory-curator/agent.yaml +0 -38
  2302. package/runtime/agents/shared-memory-curator/capabilities/create-shared-memory/capability.yaml +0 -19
  2303. package/runtime/agents/shared-memory-curator/capabilities/create-shared-memory/decision-rules.md +0 -5
  2304. package/runtime/agents/shared-memory-curator/capabilities/create-shared-memory/workflow.md +0 -5
  2305. package/runtime/agents/shared-memory-curator/capabilities/publish-shared-submission/capability.yaml +0 -19
  2306. package/runtime/agents/shared-memory-curator/capabilities/publish-shared-submission/decision-rules.md +0 -5
  2307. package/runtime/agents/shared-memory-curator/capabilities/publish-shared-submission/workflow.md +0 -5
  2308. package/runtime/agents/shared-memory-curator/capabilities/review-shared-submission/capability.yaml +0 -19
  2309. package/runtime/agents/shared-memory-curator/capabilities/review-shared-submission/decision-rules.md +0 -5
  2310. package/runtime/agents/shared-memory-curator/capabilities/review-shared-submission/workflow.md +0 -5
  2311. package/runtime/agents/shared-memory-curator/infra/.gitkeep +0 -1
  2312. package/runtime/agents/shared-memory-curator/knowledge/context.md +0 -5
  2313. package/runtime/agents/shared-memory-curator/knowledge/system.md +0 -4
  2314. package/runtime/agents/shared-memory-curator/templates/.gitkeep +0 -1
  2315. package/runtime/agents/software-specification-analyst/AGENTS.md +0 -49
  2316. package/runtime/agents/software-specification-analyst/README.md +0 -92
  2317. package/runtime/agents/software-specification-analyst/agent.yaml +0 -68
  2318. package/runtime/agents/software-specification-analyst/capabilities/analyze-multiple-projects/capability.yaml +0 -21
  2319. package/runtime/agents/software-specification-analyst/capabilities/analyze-multiple-projects/decision-rules.md +0 -12
  2320. package/runtime/agents/software-specification-analyst/capabilities/analyze-multiple-projects/workflow.md +0 -7
  2321. package/runtime/agents/software-specification-analyst/capabilities/analyze-project-context/capability.yaml +0 -32
  2322. package/runtime/agents/software-specification-analyst/capabilities/analyze-project-context/decision-rules.md +0 -12
  2323. package/runtime/agents/software-specification-analyst/capabilities/analyze-project-context/runner.py +0 -659
  2324. package/runtime/agents/software-specification-analyst/capabilities/analyze-project-context/workflow.md +0 -11
  2325. package/runtime/agents/software-specification-analyst/capabilities/build-requirements-traceability/capability.yaml +0 -21
  2326. package/runtime/agents/software-specification-analyst/capabilities/build-requirements-traceability/decision-rules.md +0 -12
  2327. package/runtime/agents/software-specification-analyst/capabilities/build-requirements-traceability/workflow.md +0 -7
  2328. package/runtime/agents/software-specification-analyst/capabilities/conduct-requirements-interview/capability.yaml +0 -26
  2329. package/runtime/agents/software-specification-analyst/capabilities/conduct-requirements-interview/decision-rules.md +0 -12
  2330. package/runtime/agents/software-specification-analyst/capabilities/conduct-requirements-interview/runner.py +0 -253
  2331. package/runtime/agents/software-specification-analyst/capabilities/conduct-requirements-interview/workflow.md +0 -8
  2332. package/runtime/agents/software-specification-analyst/capabilities/create-analysis-dossier/capability.yaml +0 -21
  2333. package/runtime/agents/software-specification-analyst/capabilities/create-analysis-dossier/decision-rules.md +0 -12
  2334. package/runtime/agents/software-specification-analyst/capabilities/create-analysis-dossier/workflow.md +0 -6
  2335. package/runtime/agents/software-specification-analyst/capabilities/create-complete-spec/capability.yaml +0 -42
  2336. package/runtime/agents/software-specification-analyst/capabilities/create-complete-spec/decision-rules.md +0 -12
  2337. package/runtime/agents/software-specification-analyst/capabilities/create-complete-spec/runner.py +0 -559
  2338. package/runtime/agents/software-specification-analyst/capabilities/create-complete-spec/workflow.md +0 -13
  2339. package/runtime/agents/software-specification-analyst/capabilities/create-discovery-notes/capability.yaml +0 -21
  2340. package/runtime/agents/software-specification-analyst/capabilities/create-discovery-notes/decision-rules.md +0 -12
  2341. package/runtime/agents/software-specification-analyst/capabilities/create-discovery-notes/workflow.md +0 -6
  2342. package/runtime/agents/software-specification-analyst/capabilities/create-final-spec-from-analysis/capability.yaml +0 -28
  2343. package/runtime/agents/software-specification-analyst/capabilities/create-final-spec-from-analysis/decision-rules.md +0 -12
  2344. package/runtime/agents/software-specification-analyst/capabilities/create-final-spec-from-analysis/runner.py +0 -370
  2345. package/runtime/agents/software-specification-analyst/capabilities/create-final-spec-from-analysis/workflow.md +0 -6
  2346. package/runtime/agents/software-specification-analyst/capabilities/create-functional-spec/capability.yaml +0 -32
  2347. package/runtime/agents/software-specification-analyst/capabilities/create-functional-spec/decision-rules.md +0 -12
  2348. package/runtime/agents/software-specification-analyst/capabilities/create-functional-spec/workflow.md +0 -8
  2349. package/runtime/agents/software-specification-analyst/capabilities/create-technical-spec/capability.yaml +0 -33
  2350. package/runtime/agents/software-specification-analyst/capabilities/create-technical-spec/decision-rules.md +0 -12
  2351. package/runtime/agents/software-specification-analyst/capabilities/create-technical-spec/workflow.md +0 -8
  2352. package/runtime/agents/software-specification-analyst/capabilities/identify-business-questions/capability.yaml +0 -21
  2353. package/runtime/agents/software-specification-analyst/capabilities/identify-business-questions/decision-rules.md +0 -12
  2354. package/runtime/agents/software-specification-analyst/capabilities/identify-business-questions/workflow.md +0 -6
  2355. package/runtime/agents/software-specification-analyst/capabilities/identify-critical-points/capability.yaml +0 -22
  2356. package/runtime/agents/software-specification-analyst/capabilities/identify-critical-points/decision-rules.md +0 -12
  2357. package/runtime/agents/software-specification-analyst/capabilities/identify-critical-points/workflow.md +0 -6
  2358. package/runtime/agents/software-specification-analyst/capabilities/map-user-journeys/capability.yaml +0 -21
  2359. package/runtime/agents/software-specification-analyst/capabilities/map-user-journeys/decision-rules.md +0 -12
  2360. package/runtime/agents/software-specification-analyst/capabilities/map-user-journeys/workflow.md +0 -7
  2361. package/runtime/agents/software-specification-analyst/capabilities/refine-analysis-with-feedback/capability.yaml +0 -26
  2362. package/runtime/agents/software-specification-analyst/capabilities/refine-analysis-with-feedback/decision-rules.md +0 -12
  2363. package/runtime/agents/software-specification-analyst/capabilities/refine-analysis-with-feedback/runner.py +0 -216
  2364. package/runtime/agents/software-specification-analyst/capabilities/refine-analysis-with-feedback/workflow.md +0 -6
  2365. package/runtime/agents/software-specification-analyst/capabilities/review-spec-completeness/capability.yaml +0 -21
  2366. package/runtime/agents/software-specification-analyst/capabilities/review-spec-completeness/decision-rules.md +0 -12
  2367. package/runtime/agents/software-specification-analyst/capabilities/review-spec-completeness/workflow.md +0 -7
  2368. package/runtime/agents/software-specification-analyst/capabilities/write-user-stories/capability.yaml +0 -33
  2369. package/runtime/agents/software-specification-analyst/capabilities/write-user-stories/decision-rules.md +0 -12
  2370. package/runtime/agents/software-specification-analyst/capabilities/write-user-stories/workflow.md +0 -7
  2371. package/runtime/agents/software-specification-analyst/infra/README.md +0 -7
  2372. package/runtime/agents/software-specification-analyst/knowledge/context.md +0 -122
  2373. package/runtime/agents/software-specification-analyst/knowledge/policies.yaml +0 -136
  2374. package/runtime/agents/software-specification-analyst/knowledge/prompts/analyze-multiple-projects.md +0 -40
  2375. package/runtime/agents/software-specification-analyst/knowledge/prompts/analyze-project-context.md +0 -69
  2376. package/runtime/agents/software-specification-analyst/knowledge/prompts/build-requirements-traceability.md +0 -33
  2377. package/runtime/agents/software-specification-analyst/knowledge/prompts/conduct-requirements-interview.md +0 -76
  2378. package/runtime/agents/software-specification-analyst/knowledge/prompts/create-analysis-dossier.md +0 -38
  2379. package/runtime/agents/software-specification-analyst/knowledge/prompts/create-complete-spec.md +0 -46
  2380. package/runtime/agents/software-specification-analyst/knowledge/prompts/create-discovery-notes.md +0 -34
  2381. package/runtime/agents/software-specification-analyst/knowledge/prompts/create-final-spec-from-analysis.md +0 -51
  2382. package/runtime/agents/software-specification-analyst/knowledge/prompts/create-functional-spec.md +0 -35
  2383. package/runtime/agents/software-specification-analyst/knowledge/prompts/create-technical-spec.md +0 -39
  2384. package/runtime/agents/software-specification-analyst/knowledge/prompts/identify-business-questions.md +0 -36
  2385. package/runtime/agents/software-specification-analyst/knowledge/prompts/identify-critical-points.md +0 -37
  2386. package/runtime/agents/software-specification-analyst/knowledge/prompts/map-user-journeys.md +0 -34
  2387. package/runtime/agents/software-specification-analyst/knowledge/prompts/refine-analysis-with-feedback.md +0 -41
  2388. package/runtime/agents/software-specification-analyst/knowledge/prompts/review-spec-completeness.md +0 -44
  2389. package/runtime/agents/software-specification-analyst/knowledge/prompts/write-user-stories.md +0 -39
  2390. package/runtime/agents/software-specification-analyst/knowledge/system.md +0 -65
  2391. package/runtime/agents/software-specification-analyst/templates/analysis-context-output.md +0 -11
  2392. package/runtime/agents/software-specification-analyst/templates/analysis-dossier-output.md +0 -13
  2393. package/runtime/agents/software-specification-analyst/templates/business-questions-output.md +0 -11
  2394. package/runtime/agents/software-specification-analyst/templates/complete-spec-output.md +0 -56
  2395. package/runtime/agents/software-specification-analyst/templates/critical-points-output.md +0 -4
  2396. package/runtime/agents/software-specification-analyst/templates/discovery-notes-output.md +0 -11
  2397. package/runtime/agents/software-specification-analyst/templates/functional-spec-output.md +0 -23
  2398. package/runtime/agents/software-specification-analyst/templates/interview-guide-output.md +0 -15
  2399. package/runtime/agents/software-specification-analyst/templates/journey-flow-output.md +0 -16
  2400. package/runtime/agents/software-specification-analyst/templates/multi-project-analysis-output.md +0 -11
  2401. package/runtime/agents/software-specification-analyst/templates/refined-analysis-output.md +0 -11
  2402. package/runtime/agents/software-specification-analyst/templates/spec-review-output.md +0 -17
  2403. package/runtime/agents/software-specification-analyst/templates/technical-spec-output.md +0 -25
  2404. package/runtime/agents/software-specification-analyst/templates/traceability-matrix-output.md +0 -5
  2405. package/runtime/agents/software-specification-analyst/templates/user-stories-output.md +0 -21
  2406. package/runtime/agents/software-specification-analyst/tests/__init__.py +0 -0
  2407. package/runtime/agents/software-specification-analyst/tests/test_analyze_project_context.py +0 -132
  2408. package/runtime/agents/software-specification-analyst/tests/test_create_complete_spec.py +0 -199
  2409. package/runtime/agents/software-specification-analyst/tests/test_create_final_spec.py +0 -108
  2410. package/runtime/agents/sqlserver-change-operator/AGENTS.md +0 -33
  2411. package/runtime/agents/sqlserver-change-operator/README.md +0 -40
  2412. package/runtime/agents/sqlserver-change-operator/agent.yaml +0 -77
  2413. package/runtime/agents/sqlserver-change-operator/capabilities/_shared/runner_support.py +0 -253
  2414. package/runtime/agents/sqlserver-change-operator/capabilities/apply-migration/capability.yaml +0 -23
  2415. package/runtime/agents/sqlserver-change-operator/capabilities/apply-migration/decision-rules.md +0 -12
  2416. package/runtime/agents/sqlserver-change-operator/capabilities/apply-migration/runner.py +0 -15
  2417. package/runtime/agents/sqlserver-change-operator/capabilities/apply-migration/workflow.md +0 -7
  2418. package/runtime/agents/sqlserver-change-operator/capabilities/backup-records/capability.yaml +0 -23
  2419. package/runtime/agents/sqlserver-change-operator/capabilities/backup-records/decision-rules.md +0 -12
  2420. package/runtime/agents/sqlserver-change-operator/capabilities/backup-records/runner.py +0 -15
  2421. package/runtime/agents/sqlserver-change-operator/capabilities/backup-records/workflow.md +0 -7
  2422. package/runtime/agents/sqlserver-change-operator/capabilities/change-report/capability.yaml +0 -23
  2423. package/runtime/agents/sqlserver-change-operator/capabilities/change-report/decision-rules.md +0 -12
  2424. package/runtime/agents/sqlserver-change-operator/capabilities/change-report/runner.py +0 -15
  2425. package/runtime/agents/sqlserver-change-operator/capabilities/change-report/workflow.md +0 -7
  2426. package/runtime/agents/sqlserver-change-operator/capabilities/create-object/capability.yaml +0 -23
  2427. package/runtime/agents/sqlserver-change-operator/capabilities/create-object/decision-rules.md +0 -12
  2428. package/runtime/agents/sqlserver-change-operator/capabilities/create-object/runner.py +0 -15
  2429. package/runtime/agents/sqlserver-change-operator/capabilities/create-object/workflow.md +0 -7
  2430. package/runtime/agents/sqlserver-change-operator/capabilities/delete-records/capability.yaml +0 -23
  2431. package/runtime/agents/sqlserver-change-operator/capabilities/delete-records/decision-rules.md +0 -12
  2432. package/runtime/agents/sqlserver-change-operator/capabilities/delete-records/runner.py +0 -15
  2433. package/runtime/agents/sqlserver-change-operator/capabilities/delete-records/workflow.md +0 -7
  2434. package/runtime/agents/sqlserver-change-operator/capabilities/plan-migration/capability.yaml +0 -23
  2435. package/runtime/agents/sqlserver-change-operator/capabilities/plan-migration/decision-rules.md +0 -12
  2436. package/runtime/agents/sqlserver-change-operator/capabilities/plan-migration/runner.py +0 -15
  2437. package/runtime/agents/sqlserver-change-operator/capabilities/plan-migration/workflow.md +0 -7
  2438. package/runtime/agents/sqlserver-change-operator/capabilities/rollback-migration/capability.yaml +0 -23
  2439. package/runtime/agents/sqlserver-change-operator/capabilities/rollback-migration/decision-rules.md +0 -12
  2440. package/runtime/agents/sqlserver-change-operator/capabilities/rollback-migration/runner.py +0 -15
  2441. package/runtime/agents/sqlserver-change-operator/capabilities/rollback-migration/workflow.md +0 -7
  2442. package/runtime/agents/sqlserver-change-operator/capabilities/run-write-script/capability.yaml +0 -23
  2443. package/runtime/agents/sqlserver-change-operator/capabilities/run-write-script/decision-rules.md +0 -12
  2444. package/runtime/agents/sqlserver-change-operator/capabilities/run-write-script/runner.py +0 -15
  2445. package/runtime/agents/sqlserver-change-operator/capabilities/run-write-script/workflow.md +0 -7
  2446. package/runtime/agents/sqlserver-change-operator/capabilities/test-write-permissions/capability.yaml +0 -23
  2447. package/runtime/agents/sqlserver-change-operator/capabilities/test-write-permissions/decision-rules.md +0 -12
  2448. package/runtime/agents/sqlserver-change-operator/capabilities/test-write-permissions/runner.py +0 -15
  2449. package/runtime/agents/sqlserver-change-operator/capabilities/test-write-permissions/workflow.md +0 -7
  2450. package/runtime/agents/sqlserver-change-operator/capabilities/update-records/capability.yaml +0 -23
  2451. package/runtime/agents/sqlserver-change-operator/capabilities/update-records/decision-rules.md +0 -12
  2452. package/runtime/agents/sqlserver-change-operator/capabilities/update-records/runner.py +0 -15
  2453. package/runtime/agents/sqlserver-change-operator/capabilities/update-records/workflow.md +0 -7
  2454. package/runtime/agents/sqlserver-change-operator/capabilities/upsert-records/capability.yaml +0 -23
  2455. package/runtime/agents/sqlserver-change-operator/capabilities/upsert-records/decision-rules.md +0 -12
  2456. package/runtime/agents/sqlserver-change-operator/capabilities/upsert-records/runner.py +0 -15
  2457. package/runtime/agents/sqlserver-change-operator/capabilities/upsert-records/workflow.md +0 -7
  2458. package/runtime/agents/sqlserver-change-operator/infra/README.md +0 -3
  2459. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/README.md +0 -3
  2460. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/mcp/README.md +0 -3
  2461. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/apply-migration.yaml +0 -8
  2462. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/backup-records.yaml +0 -8
  2463. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/change-report.yaml +0 -8
  2464. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/create-object.yaml +0 -8
  2465. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/delete-records.yaml +0 -8
  2466. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/plan-migration.yaml +0 -8
  2467. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/rollback-migration.yaml +0 -8
  2468. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/run-write-script.yaml +0 -8
  2469. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/test-write-permissions.yaml +0 -8
  2470. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/update-records.yaml +0 -8
  2471. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/methods/upsert-records.yaml +0 -8
  2472. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/models/README.md +0 -3
  2473. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/sqlserver_change_repository.py +0 -598
  2474. package/runtime/agents/sqlserver-change-operator/infra/integrations/sqlserver/tests/test_repository.py +0 -152
  2475. package/runtime/agents/sqlserver-change-operator/knowledge/README.md +0 -3
  2476. package/runtime/agents/sqlserver-change-operator/knowledge/context.md +0 -9
  2477. package/runtime/agents/sqlserver-change-operator/knowledge/policies.yaml +0 -33
  2478. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/README.md +0 -3
  2479. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/apply-migration.md +0 -24
  2480. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/backup-records.md +0 -16
  2481. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/change-report.md +0 -14
  2482. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/create-object.md +0 -15
  2483. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/delete-records.md +0 -17
  2484. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/plan-migration.md +0 -23
  2485. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/rollback-migration.md +0 -15
  2486. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/run-write-script.md +0 -16
  2487. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/test-write-permissions.md +0 -15
  2488. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/update-records.md +0 -21
  2489. package/runtime/agents/sqlserver-change-operator/knowledge/prompts/upsert-records.md +0 -17
  2490. package/runtime/agents/sqlserver-change-operator/knowledge/system.md +0 -58
  2491. package/runtime/agents/sqlserver-change-operator/templates/README.md +0 -3
  2492. package/runtime/agents/sqlserver-change-operator/templates/apply-migration-output.md +0 -20
  2493. package/runtime/agents/sqlserver-change-operator/templates/backup-records-output.md +0 -8
  2494. package/runtime/agents/sqlserver-change-operator/templates/change-report-output.md +0 -9
  2495. package/runtime/agents/sqlserver-change-operator/templates/create-object-output.md +0 -20
  2496. package/runtime/agents/sqlserver-change-operator/templates/delete-records-output.md +0 -23
  2497. package/runtime/agents/sqlserver-change-operator/templates/plan-migration-output.md +0 -20
  2498. package/runtime/agents/sqlserver-change-operator/templates/rollback-migration-output.md +0 -20
  2499. package/runtime/agents/sqlserver-change-operator/templates/run-write-script-output.md +0 -20
  2500. package/runtime/agents/sqlserver-change-operator/templates/test-write-permissions-output.md +0 -8
  2501. package/runtime/agents/sqlserver-change-operator/templates/update-records-output.md +0 -23
  2502. package/runtime/agents/sqlserver-change-operator/templates/upsert-records-output.md +0 -20
  2503. package/runtime/agents/sqlserver-data-analyzer/AGENTS.md +0 -32
  2504. package/runtime/agents/sqlserver-data-analyzer/README.md +0 -48
  2505. package/runtime/agents/sqlserver-data-analyzer/agent.yaml +0 -100
  2506. package/runtime/agents/sqlserver-data-analyzer/capabilities/_shared/runner_support.py +0 -444
  2507. package/runtime/agents/sqlserver-data-analyzer/capabilities/analyze-cpf-column/capability.yaml +0 -22
  2508. package/runtime/agents/sqlserver-data-analyzer/capabilities/analyze-cpf-column/decision-rules.md +0 -26
  2509. package/runtime/agents/sqlserver-data-analyzer/capabilities/analyze-cpf-column/runner.py +0 -15
  2510. package/runtime/agents/sqlserver-data-analyzer/capabilities/analyze-cpf-column/workflow.md +0 -6
  2511. package/runtime/agents/sqlserver-data-analyzer/capabilities/analyze-query-result/capability.yaml +0 -22
  2512. package/runtime/agents/sqlserver-data-analyzer/capabilities/analyze-query-result/decision-rules.md +0 -12
  2513. package/runtime/agents/sqlserver-data-analyzer/capabilities/analyze-query-result/runner.py +0 -15
  2514. package/runtime/agents/sqlserver-data-analyzer/capabilities/analyze-query-result/workflow.md +0 -6
  2515. package/runtime/agents/sqlserver-data-analyzer/capabilities/build-analysis-query/capability.yaml +0 -22
  2516. package/runtime/agents/sqlserver-data-analyzer/capabilities/build-analysis-query/decision-rules.md +0 -12
  2517. package/runtime/agents/sqlserver-data-analyzer/capabilities/build-analysis-query/runner.py +0 -15
  2518. package/runtime/agents/sqlserver-data-analyzer/capabilities/build-analysis-query/workflow.md +0 -6
  2519. package/runtime/agents/sqlserver-data-analyzer/capabilities/compare-tables/capability.yaml +0 -22
  2520. package/runtime/agents/sqlserver-data-analyzer/capabilities/compare-tables/decision-rules.md +0 -12
  2521. package/runtime/agents/sqlserver-data-analyzer/capabilities/compare-tables/runner.py +0 -15
  2522. package/runtime/agents/sqlserver-data-analyzer/capabilities/compare-tables/workflow.md +0 -6
  2523. package/runtime/agents/sqlserver-data-analyzer/capabilities/describe-table/capability.yaml +0 -22
  2524. package/runtime/agents/sqlserver-data-analyzer/capabilities/describe-table/decision-rules.md +0 -12
  2525. package/runtime/agents/sqlserver-data-analyzer/capabilities/describe-table/runner.py +0 -15
  2526. package/runtime/agents/sqlserver-data-analyzer/capabilities/describe-table/workflow.md +0 -6
  2527. package/runtime/agents/sqlserver-data-analyzer/capabilities/detect-data-quality-issues/capability.yaml +0 -22
  2528. package/runtime/agents/sqlserver-data-analyzer/capabilities/detect-data-quality-issues/decision-rules.md +0 -23
  2529. package/runtime/agents/sqlserver-data-analyzer/capabilities/detect-data-quality-issues/runner.py +0 -15
  2530. package/runtime/agents/sqlserver-data-analyzer/capabilities/detect-data-quality-issues/workflow.md +0 -6
  2531. package/runtime/agents/sqlserver-data-analyzer/capabilities/detect-sensitive-columns/capability.yaml +0 -22
  2532. package/runtime/agents/sqlserver-data-analyzer/capabilities/detect-sensitive-columns/decision-rules.md +0 -12
  2533. package/runtime/agents/sqlserver-data-analyzer/capabilities/detect-sensitive-columns/runner.py +0 -15
  2534. package/runtime/agents/sqlserver-data-analyzer/capabilities/detect-sensitive-columns/workflow.md +0 -6
  2535. package/runtime/agents/sqlserver-data-analyzer/capabilities/estimate-table-size/capability.yaml +0 -22
  2536. package/runtime/agents/sqlserver-data-analyzer/capabilities/estimate-table-size/decision-rules.md +0 -12
  2537. package/runtime/agents/sqlserver-data-analyzer/capabilities/estimate-table-size/runner.py +0 -15
  2538. package/runtime/agents/sqlserver-data-analyzer/capabilities/estimate-table-size/workflow.md +0 -6
  2539. package/runtime/agents/sqlserver-data-analyzer/capabilities/explain-query-plan/capability.yaml +0 -22
  2540. package/runtime/agents/sqlserver-data-analyzer/capabilities/explain-query-plan/decision-rules.md +0 -12
  2541. package/runtime/agents/sqlserver-data-analyzer/capabilities/explain-query-plan/runner.py +0 -15
  2542. package/runtime/agents/sqlserver-data-analyzer/capabilities/explain-query-plan/workflow.md +0 -6
  2543. package/runtime/agents/sqlserver-data-analyzer/capabilities/explore-database-domain/capability.yaml +0 -22
  2544. package/runtime/agents/sqlserver-data-analyzer/capabilities/explore-database-domain/decision-rules.md +0 -12
  2545. package/runtime/agents/sqlserver-data-analyzer/capabilities/explore-database-domain/runner.py +0 -15
  2546. package/runtime/agents/sqlserver-data-analyzer/capabilities/explore-database-domain/workflow.md +0 -6
  2547. package/runtime/agents/sqlserver-data-analyzer/capabilities/generate-data-report/capability.yaml +0 -22
  2548. package/runtime/agents/sqlserver-data-analyzer/capabilities/generate-data-report/decision-rules.md +0 -12
  2549. package/runtime/agents/sqlserver-data-analyzer/capabilities/generate-data-report/runner.py +0 -15
  2550. package/runtime/agents/sqlserver-data-analyzer/capabilities/generate-data-report/workflow.md +0 -6
  2551. package/runtime/agents/sqlserver-data-analyzer/capabilities/generate-erd-report/capability.yaml +0 -22
  2552. package/runtime/agents/sqlserver-data-analyzer/capabilities/generate-erd-report/decision-rules.md +0 -12
  2553. package/runtime/agents/sqlserver-data-analyzer/capabilities/generate-erd-report/runner.py +0 -15
  2554. package/runtime/agents/sqlserver-data-analyzer/capabilities/generate-erd-report/workflow.md +0 -6
  2555. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-databases/capability.yaml +0 -22
  2556. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-databases/decision-rules.md +0 -12
  2557. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-databases/runner.py +0 -15
  2558. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-databases/workflow.md +0 -6
  2559. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-relationships/capability.yaml +0 -22
  2560. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-relationships/decision-rules.md +0 -12
  2561. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-relationships/runner.py +0 -15
  2562. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-relationships/workflow.md +0 -6
  2563. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-schemas/capability.yaml +0 -22
  2564. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-schemas/decision-rules.md +0 -12
  2565. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-schemas/runner.py +0 -15
  2566. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-schemas/workflow.md +0 -6
  2567. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-tables/capability.yaml +0 -22
  2568. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-tables/decision-rules.md +0 -12
  2569. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-tables/runner.py +0 -15
  2570. package/runtime/agents/sqlserver-data-analyzer/capabilities/list-tables/workflow.md +0 -6
  2571. package/runtime/agents/sqlserver-data-analyzer/capabilities/profile-table/capability.yaml +0 -22
  2572. package/runtime/agents/sqlserver-data-analyzer/capabilities/profile-table/decision-rules.md +0 -24
  2573. package/runtime/agents/sqlserver-data-analyzer/capabilities/profile-table/runner.py +0 -15
  2574. package/runtime/agents/sqlserver-data-analyzer/capabilities/profile-table/workflow.md +0 -6
  2575. package/runtime/agents/sqlserver-data-analyzer/capabilities/run-readonly-query/capability.yaml +0 -22
  2576. package/runtime/agents/sqlserver-data-analyzer/capabilities/run-readonly-query/decision-rules.md +0 -29
  2577. package/runtime/agents/sqlserver-data-analyzer/capabilities/run-readonly-query/runner.py +0 -15
  2578. package/runtime/agents/sqlserver-data-analyzer/capabilities/run-readonly-query/workflow.md +0 -6
  2579. package/runtime/agents/sqlserver-data-analyzer/capabilities/sample-table/capability.yaml +0 -22
  2580. package/runtime/agents/sqlserver-data-analyzer/capabilities/sample-table/decision-rules.md +0 -12
  2581. package/runtime/agents/sqlserver-data-analyzer/capabilities/sample-table/runner.py +0 -15
  2582. package/runtime/agents/sqlserver-data-analyzer/capabilities/sample-table/workflow.md +0 -6
  2583. package/runtime/agents/sqlserver-data-analyzer/capabilities/search-columns/capability.yaml +0 -22
  2584. package/runtime/agents/sqlserver-data-analyzer/capabilities/search-columns/decision-rules.md +0 -12
  2585. package/runtime/agents/sqlserver-data-analyzer/capabilities/search-columns/runner.py +0 -15
  2586. package/runtime/agents/sqlserver-data-analyzer/capabilities/search-columns/workflow.md +0 -6
  2587. package/runtime/agents/sqlserver-data-analyzer/capabilities/search-tables/capability.yaml +0 -22
  2588. package/runtime/agents/sqlserver-data-analyzer/capabilities/search-tables/decision-rules.md +0 -12
  2589. package/runtime/agents/sqlserver-data-analyzer/capabilities/search-tables/runner.py +0 -15
  2590. package/runtime/agents/sqlserver-data-analyzer/capabilities/search-tables/workflow.md +0 -6
  2591. package/runtime/agents/sqlserver-data-analyzer/capabilities/suggest-joins/capability.yaml +0 -22
  2592. package/runtime/agents/sqlserver-data-analyzer/capabilities/suggest-joins/decision-rules.md +0 -24
  2593. package/runtime/agents/sqlserver-data-analyzer/capabilities/suggest-joins/runner.py +0 -15
  2594. package/runtime/agents/sqlserver-data-analyzer/capabilities/suggest-joins/workflow.md +0 -6
  2595. package/runtime/agents/sqlserver-data-analyzer/capabilities/test-connection/capability.yaml +0 -22
  2596. package/runtime/agents/sqlserver-data-analyzer/capabilities/test-connection/decision-rules.md +0 -12
  2597. package/runtime/agents/sqlserver-data-analyzer/capabilities/test-connection/runner.py +0 -15
  2598. package/runtime/agents/sqlserver-data-analyzer/capabilities/test-connection/workflow.md +0 -6
  2599. package/runtime/agents/sqlserver-data-analyzer/capabilities/trace-record/capability.yaml +0 -22
  2600. package/runtime/agents/sqlserver-data-analyzer/capabilities/trace-record/decision-rules.md +0 -12
  2601. package/runtime/agents/sqlserver-data-analyzer/capabilities/trace-record/runner.py +0 -15
  2602. package/runtime/agents/sqlserver-data-analyzer/capabilities/trace-record/workflow.md +0 -6
  2603. package/runtime/agents/sqlserver-data-analyzer/capabilities/validate-readonly-query/capability.yaml +0 -22
  2604. package/runtime/agents/sqlserver-data-analyzer/capabilities/validate-readonly-query/decision-rules.md +0 -12
  2605. package/runtime/agents/sqlserver-data-analyzer/capabilities/validate-readonly-query/runner.py +0 -15
  2606. package/runtime/agents/sqlserver-data-analyzer/capabilities/validate-readonly-query/workflow.md +0 -6
  2607. package/runtime/agents/sqlserver-data-analyzer/infra/README.md +0 -3
  2608. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/README.md +0 -3
  2609. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/mcp/README.md +0 -3
  2610. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/analyze-cpf-column.yaml +0 -8
  2611. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/analyze-query-result.yaml +0 -8
  2612. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/build-analysis-query.yaml +0 -8
  2613. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/compare-tables.yaml +0 -8
  2614. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/describe-table.yaml +0 -8
  2615. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/detect-data-quality-issues.yaml +0 -8
  2616. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/detect-sensitive-columns.yaml +0 -8
  2617. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/estimate-table-size.yaml +0 -8
  2618. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/explain-query-plan.yaml +0 -8
  2619. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/explore-database-domain.yaml +0 -8
  2620. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/generate-data-report.yaml +0 -8
  2621. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/generate-erd-report.yaml +0 -8
  2622. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/list-databases.yaml +0 -8
  2623. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/list-relationships.yaml +0 -8
  2624. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/list-schemas.yaml +0 -8
  2625. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/list-tables.yaml +0 -8
  2626. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/profile-table.yaml +0 -8
  2627. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/run-readonly-query.yaml +0 -8
  2628. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/sample-table.yaml +0 -8
  2629. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/search-columns.yaml +0 -8
  2630. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/search-tables.yaml +0 -8
  2631. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/suggest-joins.yaml +0 -8
  2632. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/test-connection.yaml +0 -8
  2633. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/trace-record.yaml +0 -8
  2634. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/methods/validate-readonly-query.yaml +0 -8
  2635. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/models/README.md +0 -3
  2636. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/sqlserver_repository.py +0 -576
  2637. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/tests/test_privacy.py +0 -236
  2638. package/runtime/agents/sqlserver-data-analyzer/infra/integrations/sqlserver/tests/test_repository.py +0 -50
  2639. package/runtime/agents/sqlserver-data-analyzer/knowledge/README.md +0 -3
  2640. package/runtime/agents/sqlserver-data-analyzer/knowledge/context.md +0 -11
  2641. package/runtime/agents/sqlserver-data-analyzer/knowledge/policies.yaml +0 -66
  2642. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/README.md +0 -3
  2643. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/analyze-cpf-column.md +0 -37
  2644. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/analyze-query-result.md +0 -32
  2645. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/build-analysis-query.md +0 -40
  2646. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/compare-tables.md +0 -36
  2647. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/describe-table.md +0 -35
  2648. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/detect-data-quality-issues.md +0 -31
  2649. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/detect-sensitive-columns.md +0 -29
  2650. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/estimate-table-size.md +0 -28
  2651. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/explain-query-plan.md +0 -33
  2652. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/explore-database-domain.md +0 -30
  2653. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/generate-data-report.md +0 -37
  2654. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/generate-erd-report.md +0 -28
  2655. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/list-databases.md +0 -26
  2656. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/list-relationships.md +0 -33
  2657. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/list-schemas.md +0 -26
  2658. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/list-tables.md +0 -27
  2659. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/profile-table.md +0 -29
  2660. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/run-readonly-query.md +0 -33
  2661. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/sample-table.md +0 -31
  2662. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/search-columns.md +0 -29
  2663. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/search-tables.md +0 -26
  2664. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/suggest-joins.md +0 -34
  2665. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/test-connection.md +0 -28
  2666. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/trace-record.md +0 -33
  2667. package/runtime/agents/sqlserver-data-analyzer/knowledge/prompts/validate-readonly-query.md +0 -29
  2668. package/runtime/agents/sqlserver-data-analyzer/knowledge/system.md +0 -65
  2669. package/runtime/agents/sqlserver-data-analyzer/templates/README.md +0 -3
  2670. package/runtime/agents/sqlserver-data-analyzer/templates/analyze-cpf-column-output.md +0 -36
  2671. package/runtime/agents/sqlserver-data-analyzer/templates/analyze-query-result-output.md +0 -1
  2672. package/runtime/agents/sqlserver-data-analyzer/templates/build-analysis-query-output.md +0 -1
  2673. package/runtime/agents/sqlserver-data-analyzer/templates/compare-tables-output.md +0 -1
  2674. package/runtime/agents/sqlserver-data-analyzer/templates/describe-table-output.md +0 -1
  2675. package/runtime/agents/sqlserver-data-analyzer/templates/detect-data-quality-issues-output.md +0 -1
  2676. package/runtime/agents/sqlserver-data-analyzer/templates/detect-sensitive-columns-output.md +0 -1
  2677. package/runtime/agents/sqlserver-data-analyzer/templates/estimate-table-size-output.md +0 -1
  2678. package/runtime/agents/sqlserver-data-analyzer/templates/explain-query-plan-output.md +0 -1
  2679. package/runtime/agents/sqlserver-data-analyzer/templates/explore-database-domain-output.md +0 -1
  2680. package/runtime/agents/sqlserver-data-analyzer/templates/generate-data-report-output.md +0 -36
  2681. package/runtime/agents/sqlserver-data-analyzer/templates/generate-erd-report-output.md +0 -32
  2682. package/runtime/agents/sqlserver-data-analyzer/templates/list-databases-output.md +0 -1
  2683. package/runtime/agents/sqlserver-data-analyzer/templates/list-relationships-output.md +0 -1
  2684. package/runtime/agents/sqlserver-data-analyzer/templates/list-schemas-output.md +0 -1
  2685. package/runtime/agents/sqlserver-data-analyzer/templates/list-tables-output.md +0 -1
  2686. package/runtime/agents/sqlserver-data-analyzer/templates/profile-table-output.md +0 -33
  2687. package/runtime/agents/sqlserver-data-analyzer/templates/run-readonly-query-output.md +0 -27
  2688. package/runtime/agents/sqlserver-data-analyzer/templates/sample-table-output.md +0 -1
  2689. package/runtime/agents/sqlserver-data-analyzer/templates/search-columns-output.md +0 -1
  2690. package/runtime/agents/sqlserver-data-analyzer/templates/search-tables-output.md +0 -1
  2691. package/runtime/agents/sqlserver-data-analyzer/templates/suggest-joins-output.md +0 -1
  2692. package/runtime/agents/sqlserver-data-analyzer/templates/test-connection-output.md +0 -1
  2693. package/runtime/agents/sqlserver-data-analyzer/templates/trace-record-output.md +0 -1
  2694. package/runtime/agents/sqlserver-data-analyzer/templates/validate-readonly-query-output.md +0 -1
  2695. package/runtime/agents/supabase-project-analyst/AGENTS.md +0 -29
  2696. package/runtime/agents/supabase-project-analyst/README.md +0 -23
  2697. package/runtime/agents/supabase-project-analyst/agent.yaml +0 -53
  2698. package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/capability.yaml +0 -18
  2699. package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/decision-rules.md +0 -5
  2700. package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/runner.py +0 -32
  2701. package/runtime/agents/supabase-project-analyst/capabilities/audit-auth-security/workflow.md +0 -6
  2702. package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/capability.yaml +0 -18
  2703. package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/decision-rules.md +0 -6
  2704. package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/runner.py +0 -32
  2705. package/runtime/agents/supabase-project-analyst/capabilities/audit-rls-policies/workflow.md +0 -7
  2706. package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/capability.yaml +0 -18
  2707. package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/decision-rules.md +0 -5
  2708. package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/runner.py +0 -32
  2709. package/runtime/agents/supabase-project-analyst/capabilities/audit-storage-policies/workflow.md +0 -6
  2710. package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/capability.yaml +0 -18
  2711. package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/decision-rules.md +0 -6
  2712. package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/runner.py +0 -32
  2713. package/runtime/agents/supabase-project-analyst/capabilities/generate-supabase-report/workflow.md +0 -6
  2714. package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/capability.yaml +0 -19
  2715. package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/decision-rules.md +0 -6
  2716. package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/runner.py +0 -36
  2717. package/runtime/agents/supabase-project-analyst/capabilities/inspect-supabase-project/workflow.md +0 -7
  2718. package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/capability.yaml +0 -18
  2719. package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/decision-rules.md +0 -6
  2720. package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/runner.py +0 -32
  2721. package/runtime/agents/supabase-project-analyst/capabilities/plan-supabase-fix/workflow.md +0 -6
  2722. package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/capability.yaml +0 -18
  2723. package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/decision-rules.md +0 -6
  2724. package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/runner.py +0 -32
  2725. package/runtime/agents/supabase-project-analyst/capabilities/review-migrations/workflow.md +0 -5
  2726. package/runtime/agents/supabase-project-analyst/infra/integrations/supabase-project/supabase_project_repository.py +0 -589
  2727. package/runtime/agents/supabase-project-analyst/knowledge/context.md +0 -11
  2728. package/runtime/agents/supabase-project-analyst/knowledge/policies.yaml +0 -24
  2729. package/runtime/agents/supabase-project-analyst/knowledge/system.md +0 -10
  2730. package/runtime/agents/supabase-project-analyst/templates/supabase-audit.md +0 -3
  2731. package/runtime/agents/supabase-project-analyst/templates/supabase-fix-plan.md +0 -3
  2732. package/runtime/agents/supabase-project-analyst/templates/supabase-inspection.md +0 -3
  2733. package/runtime/agents/supabase-project-analyst/templates/supabase-report.md +0 -3
  2734. package/runtime/agents/supabase-project-analyst/tests/test_runners.py +0 -239
  2735. package/runtime/agents/task-orchestrator/AGENTS.md +0 -8
  2736. package/runtime/agents/task-orchestrator/README.md +0 -7
  2737. package/runtime/agents/task-orchestrator/agent.yaml +0 -53
  2738. package/runtime/agents/task-orchestrator/capabilities/coordinate-execution/capability.yaml +0 -15
  2739. package/runtime/agents/task-orchestrator/capabilities/coordinate-execution/decision-rules.md +0 -6
  2740. package/runtime/agents/task-orchestrator/capabilities/coordinate-execution/workflow.md +0 -7
  2741. package/runtime/agents/task-orchestrator/capabilities/plan-task/capability.yaml +0 -14
  2742. package/runtime/agents/task-orchestrator/capabilities/plan-task/decision-rules.md +0 -6
  2743. package/runtime/agents/task-orchestrator/capabilities/plan-task/workflow.md +0 -8
  2744. package/runtime/agents/task-orchestrator/capabilities/select-specialists/capability.yaml +0 -14
  2745. package/runtime/agents/task-orchestrator/capabilities/select-specialists/decision-rules.md +0 -6
  2746. package/runtime/agents/task-orchestrator/capabilities/select-specialists/workflow.md +0 -7
  2747. package/runtime/agents/task-orchestrator/infra/README.md +0 -5
  2748. package/runtime/agents/task-orchestrator/knowledge/context.md +0 -9
  2749. package/runtime/agents/task-orchestrator/knowledge/system.md +0 -20
  2750. package/runtime/agents/task-orchestrator/templates/README.md +0 -4
  2751. package/runtime/agents/technical-integration-analyst/AGENTS.md +0 -35
  2752. package/runtime/agents/technical-integration-analyst/README.md +0 -41
  2753. package/runtime/agents/technical-integration-analyst/agent.yaml +0 -72
  2754. package/runtime/agents/technical-integration-analyst/capabilities/_shared/runner_support.py +0 -241
  2755. package/runtime/agents/technical-integration-analyst/capabilities/analyze-integration-flow/capability.yaml +0 -23
  2756. package/runtime/agents/technical-integration-analyst/capabilities/analyze-integration-flow/decision-rules.md +0 -13
  2757. package/runtime/agents/technical-integration-analyst/capabilities/analyze-integration-flow/runner.py +0 -15
  2758. package/runtime/agents/technical-integration-analyst/capabilities/analyze-integration-flow/workflow.md +0 -6
  2759. package/runtime/agents/technical-integration-analyst/capabilities/extract-integration-contract/capability.yaml +0 -23
  2760. package/runtime/agents/technical-integration-analyst/capabilities/extract-integration-contract/decision-rules.md +0 -13
  2761. package/runtime/agents/technical-integration-analyst/capabilities/extract-integration-contract/runner.py +0 -15
  2762. package/runtime/agents/technical-integration-analyst/capabilities/extract-integration-contract/workflow.md +0 -7
  2763. package/runtime/agents/technical-integration-analyst/capabilities/generate-http-artifacts/capability.yaml +0 -23
  2764. package/runtime/agents/technical-integration-analyst/capabilities/generate-http-artifacts/decision-rules.md +0 -13
  2765. package/runtime/agents/technical-integration-analyst/capabilities/generate-http-artifacts/runner.py +0 -15
  2766. package/runtime/agents/technical-integration-analyst/capabilities/generate-http-artifacts/workflow.md +0 -6
  2767. package/runtime/agents/technical-integration-analyst/capabilities/generate-protocol-artifacts/capability.yaml +0 -23
  2768. package/runtime/agents/technical-integration-analyst/capabilities/generate-protocol-artifacts/decision-rules.md +0 -13
  2769. package/runtime/agents/technical-integration-analyst/capabilities/generate-protocol-artifacts/runner.py +0 -15
  2770. package/runtime/agents/technical-integration-analyst/capabilities/generate-protocol-artifacts/workflow.md +0 -6
  2771. package/runtime/agents/technical-integration-analyst/capabilities/generate-technical-docs/capability.yaml +0 -23
  2772. package/runtime/agents/technical-integration-analyst/capabilities/generate-technical-docs/decision-rules.md +0 -13
  2773. package/runtime/agents/technical-integration-analyst/capabilities/generate-technical-docs/runner.py +0 -15
  2774. package/runtime/agents/technical-integration-analyst/capabilities/generate-technical-docs/workflow.md +0 -6
  2775. package/runtime/agents/technical-integration-analyst/capabilities/generate-test-data/capability.yaml +0 -23
  2776. package/runtime/agents/technical-integration-analyst/capabilities/generate-test-data/decision-rules.md +0 -13
  2777. package/runtime/agents/technical-integration-analyst/capabilities/generate-test-data/runner.py +0 -15
  2778. package/runtime/agents/technical-integration-analyst/capabilities/generate-test-data/workflow.md +0 -6
  2779. package/runtime/agents/technical-integration-analyst/capabilities/identify-missing-information/capability.yaml +0 -23
  2780. package/runtime/agents/technical-integration-analyst/capabilities/identify-missing-information/decision-rules.md +0 -13
  2781. package/runtime/agents/technical-integration-analyst/capabilities/identify-missing-information/runner.py +0 -15
  2782. package/runtime/agents/technical-integration-analyst/capabilities/identify-missing-information/workflow.md +0 -6
  2783. package/runtime/agents/technical-integration-analyst/capabilities/ingest-technical-docs/capability.yaml +0 -23
  2784. package/runtime/agents/technical-integration-analyst/capabilities/ingest-technical-docs/decision-rules.md +0 -13
  2785. package/runtime/agents/technical-integration-analyst/capabilities/ingest-technical-docs/runner.py +0 -15
  2786. package/runtime/agents/technical-integration-analyst/capabilities/ingest-technical-docs/workflow.md +0 -6
  2787. package/runtime/agents/technical-integration-analyst/capabilities/run-integration-tests/capability.yaml +0 -23
  2788. package/runtime/agents/technical-integration-analyst/capabilities/run-integration-tests/decision-rules.md +0 -14
  2789. package/runtime/agents/technical-integration-analyst/capabilities/run-integration-tests/runner.py +0 -15
  2790. package/runtime/agents/technical-integration-analyst/capabilities/run-integration-tests/workflow.md +0 -8
  2791. package/runtime/agents/technical-integration-analyst/infra/README.md +0 -7
  2792. package/runtime/agents/technical-integration-analyst/infra/integrations/document-source/document_source_repository.py +0 -214
  2793. package/runtime/agents/technical-integration-analyst/infra/integrations/document-source/methods/load-sources.yaml +0 -8
  2794. package/runtime/agents/technical-integration-analyst/infra/integrations/http-api/http_api_repository.py +0 -164
  2795. package/runtime/agents/technical-integration-analyst/infra/integrations/http-api/methods/run-integration-tests.yaml +0 -8
  2796. package/runtime/agents/technical-integration-analyst/infra/integrations/technical-integration/methods/analyze-flow.yaml +0 -11
  2797. package/runtime/agents/technical-integration-analyst/infra/integrations/technical-integration/methods/extract-contract.yaml +0 -8
  2798. package/runtime/agents/technical-integration-analyst/infra/integrations/technical-integration/methods/generate-http-artifacts.yaml +0 -12
  2799. package/runtime/agents/technical-integration-analyst/infra/integrations/technical-integration/methods/generate-protocol-artifacts.yaml +0 -11
  2800. package/runtime/agents/technical-integration-analyst/infra/integrations/technical-integration/methods/generate-technical-docs.yaml +0 -13
  2801. package/runtime/agents/technical-integration-analyst/infra/integrations/technical-integration/methods/generate-test-data.yaml +0 -12
  2802. package/runtime/agents/technical-integration-analyst/infra/integrations/technical-integration/methods/identify-missing-information.yaml +0 -8
  2803. package/runtime/agents/technical-integration-analyst/infra/integrations/technical-integration/technical_integration_repository.py +0 -621
  2804. package/runtime/agents/technical-integration-analyst/knowledge/context.md +0 -14
  2805. package/runtime/agents/technical-integration-analyst/knowledge/policies.yaml +0 -46
  2806. package/runtime/agents/technical-integration-analyst/knowledge/prompts/README.md +0 -5
  2807. package/runtime/agents/technical-integration-analyst/knowledge/prompts/analyze-integration-flow.md +0 -30
  2808. package/runtime/agents/technical-integration-analyst/knowledge/prompts/extract-integration-contract.md +0 -33
  2809. package/runtime/agents/technical-integration-analyst/knowledge/prompts/generate-http-artifacts.md +0 -31
  2810. package/runtime/agents/technical-integration-analyst/knowledge/prompts/generate-protocol-artifacts.md +0 -29
  2811. package/runtime/agents/technical-integration-analyst/knowledge/prompts/generate-technical-docs.md +0 -32
  2812. package/runtime/agents/technical-integration-analyst/knowledge/prompts/generate-test-data.md +0 -31
  2813. package/runtime/agents/technical-integration-analyst/knowledge/prompts/identify-missing-information.md +0 -27
  2814. package/runtime/agents/technical-integration-analyst/knowledge/prompts/ingest-technical-docs.md +0 -30
  2815. package/runtime/agents/technical-integration-analyst/knowledge/prompts/run-integration-tests.md +0 -33
  2816. package/runtime/agents/technical-integration-analyst/knowledge/system.md +0 -47
  2817. package/runtime/agents/technical-integration-analyst/templates/README.md +0 -3
  2818. package/runtime/agents/technical-integration-analyst/templates/analyze-integration-flow-output.md +0 -13
  2819. package/runtime/agents/technical-integration-analyst/templates/extract-integration-contract-output.md +0 -27
  2820. package/runtime/agents/technical-integration-analyst/templates/generate-http-artifacts-output.md +0 -31
  2821. package/runtime/agents/technical-integration-analyst/templates/generate-protocol-artifacts-output.md +0 -31
  2822. package/runtime/agents/technical-integration-analyst/templates/generate-technical-docs-output.md +0 -46
  2823. package/runtime/agents/technical-integration-analyst/templates/generate-test-data-output.md +0 -31
  2824. package/runtime/agents/technical-integration-analyst/templates/identify-missing-information-output.md +0 -21
  2825. package/runtime/agents/technical-integration-analyst/templates/ingest-technical-docs-output.md +0 -24
  2826. package/runtime/agents/technical-integration-analyst/templates/run-integration-tests-output.md +0 -14
  2827. package/runtime/agents/technical-integration-analyst/tests/fixtures/dry_run_result.json +0 -8
  2828. package/runtime/agents/technical-integration-analyst/tests/fixtures/openapi_simple.json +0 -23
  2829. package/runtime/agents/technical-integration-analyst/tests/fixtures/postman_simple.json +0 -20
  2830. package/runtime/agents/technical-integration-analyst/tests/fixtures/wsdl_simple.xml +0 -9
  2831. package/runtime/agents/technical-integration-analyst/tests/test_technical_integration.py +0 -524
  2832. package/runtime/agents/topdesk-orchestrator/AGENTS.md +0 -29
  2833. package/runtime/agents/topdesk-orchestrator/README.md +0 -45
  2834. package/runtime/agents/topdesk-orchestrator/agent.yaml +0 -62
  2835. package/runtime/agents/topdesk-orchestrator/capabilities/_shared/runner_support.py +0 -186
  2836. package/runtime/agents/topdesk-orchestrator/capabilities/analyze-incident-insufficiency/capability.yaml +0 -21
  2837. package/runtime/agents/topdesk-orchestrator/capabilities/analyze-incident-insufficiency/decision-rules.md +0 -16
  2838. package/runtime/agents/topdesk-orchestrator/capabilities/analyze-incident-insufficiency/runner.py +0 -56
  2839. package/runtime/agents/topdesk-orchestrator/capabilities/analyze-incident-insufficiency/workflow.md +0 -15
  2840. package/runtime/agents/topdesk-orchestrator/capabilities/create-incident/capability.yaml +0 -22
  2841. package/runtime/agents/topdesk-orchestrator/capabilities/create-incident/decision-rules.md +0 -16
  2842. package/runtime/agents/topdesk-orchestrator/capabilities/create-incident/runner.py +0 -75
  2843. package/runtime/agents/topdesk-orchestrator/capabilities/create-incident/workflow.md +0 -20
  2844. package/runtime/agents/topdesk-orchestrator/capabilities/incident-report/capability.yaml +0 -21
  2845. package/runtime/agents/topdesk-orchestrator/capabilities/incident-report/decision-rules.md +0 -16
  2846. package/runtime/agents/topdesk-orchestrator/capabilities/incident-report/runner.py +0 -44
  2847. package/runtime/agents/topdesk-orchestrator/capabilities/incident-report/workflow.md +0 -15
  2848. package/runtime/agents/topdesk-orchestrator/capabilities/list-incidents/capability.yaml +0 -21
  2849. package/runtime/agents/topdesk-orchestrator/capabilities/list-incidents/decision-rules.md +0 -16
  2850. package/runtime/agents/topdesk-orchestrator/capabilities/list-incidents/runner.py +0 -74
  2851. package/runtime/agents/topdesk-orchestrator/capabilities/list-incidents/workflow.md +0 -15
  2852. package/runtime/agents/topdesk-orchestrator/capabilities/read-incident/capability.yaml +0 -22
  2853. package/runtime/agents/topdesk-orchestrator/capabilities/read-incident/decision-rules.md +0 -16
  2854. package/runtime/agents/topdesk-orchestrator/capabilities/read-incident/runner.py +0 -57
  2855. package/runtime/agents/topdesk-orchestrator/capabilities/read-incident/workflow.md +0 -15
  2856. package/runtime/agents/topdesk-orchestrator/capabilities/request-more-info/capability.yaml +0 -22
  2857. package/runtime/agents/topdesk-orchestrator/capabilities/request-more-info/decision-rules.md +0 -16
  2858. package/runtime/agents/topdesk-orchestrator/capabilities/request-more-info/runner.py +0 -72
  2859. package/runtime/agents/topdesk-orchestrator/capabilities/request-more-info/workflow.md +0 -16
  2860. package/runtime/agents/topdesk-orchestrator/capabilities/triage-incident/capability.yaml +0 -25
  2861. package/runtime/agents/topdesk-orchestrator/capabilities/triage-incident/decision-rules.md +0 -16
  2862. package/runtime/agents/topdesk-orchestrator/capabilities/triage-incident/runner.py +0 -198
  2863. package/runtime/agents/topdesk-orchestrator/capabilities/triage-incident/workflow.md +0 -18
  2864. package/runtime/agents/topdesk-orchestrator/capabilities/update-incident/capability.yaml +0 -22
  2865. package/runtime/agents/topdesk-orchestrator/capabilities/update-incident/decision-rules.md +0 -16
  2866. package/runtime/agents/topdesk-orchestrator/capabilities/update-incident/runner.py +0 -51
  2867. package/runtime/agents/topdesk-orchestrator/capabilities/update-incident/workflow.md +0 -15
  2868. package/runtime/agents/topdesk-orchestrator/infra/README.md +0 -3
  2869. package/runtime/agents/topdesk-orchestrator/infra/integrations/README.md +0 -5
  2870. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/README.md +0 -18
  2871. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/cli.py +0 -88
  2872. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/env.example +0 -3
  2873. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/integration.yaml +0 -27
  2874. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/mcp/README.md +0 -3
  2875. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/methods/create-incident.yaml +0 -15
  2876. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/methods/get-catalog.yaml +0 -13
  2877. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/methods/get-incident.yaml +0 -14
  2878. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/methods/get-progress-trail.yaml +0 -14
  2879. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/methods/list-incidents.yaml +0 -16
  2880. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/methods/search-persons.yaml +0 -14
  2881. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/methods/update-incident.yaml +0 -17
  2882. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/models/README.md +0 -3
  2883. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/models/incident.schema.json +0 -21
  2884. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/tests/test_repository.py +0 -124
  2885. package/runtime/agents/topdesk-orchestrator/infra/integrations/topdesk/topdesk_repository.py +0 -278
  2886. package/runtime/agents/topdesk-orchestrator/knowledge/README.md +0 -3
  2887. package/runtime/agents/topdesk-orchestrator/knowledge/context.md +0 -24
  2888. package/runtime/agents/topdesk-orchestrator/knowledge/policies.yaml +0 -35
  2889. package/runtime/agents/topdesk-orchestrator/knowledge/prompts/README.md +0 -3
  2890. package/runtime/agents/topdesk-orchestrator/knowledge/prompts/analyze-incident-insufficiency.md +0 -34
  2891. package/runtime/agents/topdesk-orchestrator/knowledge/prompts/create-incident.md +0 -34
  2892. package/runtime/agents/topdesk-orchestrator/knowledge/prompts/incident-report.md +0 -33
  2893. package/runtime/agents/topdesk-orchestrator/knowledge/prompts/list-incidents.md +0 -34
  2894. package/runtime/agents/topdesk-orchestrator/knowledge/prompts/read-incident.md +0 -35
  2895. package/runtime/agents/topdesk-orchestrator/knowledge/prompts/request-more-info.md +0 -34
  2896. package/runtime/agents/topdesk-orchestrator/knowledge/prompts/triage-incident.md +0 -35
  2897. package/runtime/agents/topdesk-orchestrator/knowledge/prompts/update-incident.md +0 -34
  2898. package/runtime/agents/topdesk-orchestrator/knowledge/system.md +0 -40
  2899. package/runtime/agents/topdesk-orchestrator/knowledge/triage-rules.md +0 -43
  2900. package/runtime/agents/topdesk-orchestrator/templates/README.md +0 -3
  2901. package/runtime/agents/topdesk-orchestrator/templates/analyze-incident-insufficiency-output.md +0 -18
  2902. package/runtime/agents/topdesk-orchestrator/templates/create-incident-output.md +0 -17
  2903. package/runtime/agents/topdesk-orchestrator/templates/incident-report-output.md +0 -18
  2904. package/runtime/agents/topdesk-orchestrator/templates/list-incidents-output.md +0 -17
  2905. package/runtime/agents/topdesk-orchestrator/templates/read-incident-output.md +0 -17
  2906. package/runtime/agents/topdesk-orchestrator/templates/request-more-info-output.md +0 -17
  2907. package/runtime/agents/topdesk-orchestrator/templates/triage-incident-output.md +0 -19
  2908. package/runtime/agents/topdesk-orchestrator/templates/update-incident-output.md +0 -17
  2909. package/runtime/agents/topdesk-orchestrator/tests/test_agentic_contracts.py +0 -65
  2910. package/runtime/agents/topdesk-orchestrator/tests/test_contract_cleanup.py +0 -21
  2911. package/runtime/agents/topdesk-orchestrator/tests/test_runners.py +0 -251
  2912. package/runtime/ai-devkit +0 -10
  2913. package/runtime/aikit +0 -10
  2914. package/runtime/cli/README.md +0 -875
  2915. package/runtime/cli/__init__.py +0 -1
  2916. package/runtime/cli/aikit/__init__.py +0 -3
  2917. package/runtime/cli/aikit/acceptance.py +0 -166
  2918. package/runtime/cli/aikit/agent_executor.py +0 -89
  2919. package/runtime/cli/aikit/agent_registry.py +0 -321
  2920. package/runtime/cli/aikit/agentic_commands.py +0 -158
  2921. package/runtime/cli/aikit/aliases.py +0 -196
  2922. package/runtime/cli/aikit/app_home.py +0 -165
  2923. package/runtime/cli/aikit/architecture.py +0 -84
  2924. package/runtime/cli/aikit/audit.py +0 -567
  2925. package/runtime/cli/aikit/autonomy.py +0 -237
  2926. package/runtime/cli/aikit/calendar.py +0 -163
  2927. package/runtime/cli/aikit/capability_runtime.py +0 -522
  2928. package/runtime/cli/aikit/catalog.py +0 -516
  2929. package/runtime/cli/aikit/cli_dispatch.py +0 -1554
  2930. package/runtime/cli/aikit/cli_parser.py +0 -547
  2931. package/runtime/cli/aikit/collaboration.py +0 -359
  2932. package/runtime/cli/aikit/configuration_orchestrator.py +0 -317
  2933. package/runtime/cli/aikit/contribution.py +0 -235
  2934. package/runtime/cli/aikit/control_router.py +0 -298
  2935. package/runtime/cli/aikit/core/__init__.py +0 -1
  2936. package/runtime/cli/aikit/core/capability_contract.py +0 -112
  2937. package/runtime/cli/aikit/core/requests.py +0 -69
  2938. package/runtime/cli/aikit/core/runtime.py +0 -64
  2939. package/runtime/cli/aikit/credentials.py +0 -337
  2940. package/runtime/cli/aikit/decision_store.py +0 -175
  2941. package/runtime/cli/aikit/diagnostics.py +0 -286
  2942. package/runtime/cli/aikit/doctor_runtime.py +0 -164
  2943. package/runtime/cli/aikit/embedded_mini_brain.py +0 -351
  2944. package/runtime/cli/aikit/errors.py +0 -7
  2945. package/runtime/cli/aikit/eval.py +0 -504
  2946. package/runtime/cli/aikit/execution_reviewer.py +0 -195
  2947. package/runtime/cli/aikit/extensions.py +0 -140
  2948. package/runtime/cli/aikit/fallback.py +0 -203
  2949. package/runtime/cli/aikit/github_pr.py +0 -277
  2950. package/runtime/cli/aikit/guardrails.py +0 -91
  2951. package/runtime/cli/aikit/human_output.py +0 -1332
  2952. package/runtime/cli/aikit/identity.py +0 -75
  2953. package/runtime/cli/aikit/impact_map.py +0 -294
  2954. package/runtime/cli/aikit/install.py +0 -270
  2955. package/runtime/cli/aikit/interactive_wizard.py +0 -225
  2956. package/runtime/cli/aikit/knowledge_base.py +0 -1067
  2957. package/runtime/cli/aikit/llm.py +0 -826
  2958. package/runtime/cli/aikit/local_artifacts.py +0 -444
  2959. package/runtime/cli/aikit/local_llm.py +0 -176
  2960. package/runtime/cli/aikit/local_llm_operator.py +0 -156
  2961. package/runtime/cli/aikit/lock.py +0 -241
  2962. package/runtime/cli/aikit/main.py +0 -63
  2963. package/runtime/cli/aikit/mcp_manifest.py +0 -1027
  2964. package/runtime/cli/aikit/mcp_server.py +0 -132
  2965. package/runtime/cli/aikit/mcp_tools.py +0 -900
  2966. package/runtime/cli/aikit/memory.py +0 -680
  2967. package/runtime/cli/aikit/mini_brain.py +0 -258
  2968. package/runtime/cli/aikit/model_router.py +0 -276
  2969. package/runtime/cli/aikit/module_controller.py +0 -335
  2970. package/runtime/cli/aikit/natural_prompt_runtime.py +0 -730
  2971. package/runtime/cli/aikit/notifications.py +0 -723
  2972. package/runtime/cli/aikit/ollama.py +0 -287
  2973. package/runtime/cli/aikit/onboarding.py +0 -551
  2974. package/runtime/cli/aikit/orchestrator.py +0 -1225
  2975. package/runtime/cli/aikit/output.py +0 -198
  2976. package/runtime/cli/aikit/permissions.py +0 -355
  2977. package/runtime/cli/aikit/personality.py +0 -123
  2978. package/runtime/cli/aikit/prompt_injection.py +0 -68
  2979. package/runtime/cli/aikit/provider_wizard.py +0 -19
  2980. package/runtime/cli/aikit/providers.py +0 -512
  2981. package/runtime/cli/aikit/review_gate.py +0 -84
  2982. package/runtime/cli/aikit/roadmap.py +0 -195
  2983. package/runtime/cli/aikit/roadmap_cli.py +0 -70
  2984. package/runtime/cli/aikit/router.py +0 -56
  2985. package/runtime/cli/aikit/router_explain.py +0 -152
  2986. package/runtime/cli/aikit/runtime_paths.py +0 -11
  2987. package/runtime/cli/aikit/scheduler.py +0 -18
  2988. package/runtime/cli/aikit/secrets.py +0 -114
  2989. package/runtime/cli/aikit/sessions.py +0 -519
  2990. package/runtime/cli/aikit/setup_wizard.py +0 -12
  2991. package/runtime/cli/aikit/setup_wizard_payload.py +0 -35
  2992. package/runtime/cli/aikit/shared_memory.py +0 -415
  2993. package/runtime/cli/aikit/sources.py +0 -586
  2994. package/runtime/cli/aikit/specialist_readiness.py +0 -152
  2995. package/runtime/cli/aikit/tasks.py +0 -882
  2996. package/runtime/cli/aikit/team.py +0 -380
  2997. package/runtime/cli/aikit/toolchain.py +0 -279
  2998. package/runtime/cli/aikit/wizard_state.py +0 -517
  2999. package/runtime/cli/aikit/workflows.py +0 -216
  3000. package/runtime/cli/aikit/write_policy.py +0 -108
  3001. package/runtime/models/qwen2.5-0.5b-instruct/manifest.json +0 -30
  3002. package/runtime/plugins/claude-code-ai-devkit/README.md +0 -42
  3003. package/runtime/plugins/claude-code-ai-devkit/agents/README.md +0 -32
  3004. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-db-analyst.md +0 -44
  3005. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-execution-reviewer.md +0 -38
  3006. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-pr-reviewer.md +0 -42
  3007. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-repo-explorer.md +0 -40
  3008. package/runtime/plugins/claude-code-ai-devkit/agents/agent-devkit-support-triage.md +0 -43
  3009. package/runtime/plugins/claude-code-ai-devkit/commands/devkit-doctor.md +0 -10
  3010. package/runtime/plugins/claude-code-ai-devkit/commands/devkit-provider.md +0 -12
  3011. package/runtime/plugins/claude-code-ai-devkit/commands/devkit-run.md +0 -10
  3012. package/runtime/plugins/claude-code-ai-devkit/commands/devkit-setup.md +0 -10
  3013. package/runtime/plugins/claude-code-ai-devkit/plugin.json +0 -40
  3014. package/runtime/plugins/claude-code-ai-devkit/scripts/bootstrap.py +0 -33
  3015. package/runtime/plugins/claude-code-ai-devkit/scripts/doctor.py +0 -16
  3016. package/runtime/plugins/claude-code-ai-devkit/scripts/run-capability.py +0 -21
  3017. package/runtime/plugins/claude-code-ai-devkit/scripts/runtime.py +0 -63
  3018. package/runtime/plugins/claude-code-ai-devkit/skills/ai-devkit-router/SKILL.md +0 -36
  3019. package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/SKILL.md +0 -29
  3020. package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/references/desenvolvimento.md +0 -11
  3021. package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/references/infra.md +0 -12
  3022. package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/references/providers.md +0 -22
  3023. package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/references/routing.md +0 -30
  3024. package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/references/subagents.md +0 -21
  3025. package/runtime/plugins/claude-skill-ai-devkit/ai-devkit/references/sustentacao.md +0 -12
  3026. package/runtime/plugins/claude-skill-ai-devkit/plugin.json +0 -18
  3027. package/runtime/plugins/codex-ai-devkit/.codex-plugin/plugin.json +0 -24
  3028. package/runtime/plugins/codex-ai-devkit/README.md +0 -26
  3029. package/runtime/plugins/codex-ai-devkit/scripts/bootstrap.py +0 -33
  3030. package/runtime/plugins/codex-ai-devkit/scripts/doctor.py +0 -16
  3031. package/runtime/plugins/codex-ai-devkit/scripts/install-runtime.py +0 -17
  3032. package/runtime/plugins/codex-ai-devkit/scripts/resolve-capability.py +0 -16
  3033. package/runtime/plugins/codex-ai-devkit/scripts/run-capability.py +0 -21
  3034. package/runtime/plugins/codex-ai-devkit/scripts/runtime.py +0 -63
  3035. package/runtime/plugins/codex-ai-devkit/skills/ai-devkit-router/SKILL.md +0 -45
  3036. package/runtime/providers/agent-bridge.yaml +0 -24
  3037. package/runtime/providers/aws.yaml +0 -57
  3038. package/runtime/providers/azure-devops.yaml +0 -52
  3039. package/runtime/providers/bpo.yaml +0 -82
  3040. package/runtime/providers/calendar.yaml +0 -28
  3041. package/runtime/providers/document-source.yaml +0 -23
  3042. package/runtime/providers/drawio.yaml +0 -22
  3043. package/runtime/providers/elasticsearch.yaml +0 -52
  3044. package/runtime/providers/figma.yaml +0 -48
  3045. package/runtime/providers/file-dataset.yaml +0 -22
  3046. package/runtime/providers/github.yaml +0 -46
  3047. package/runtime/providers/knowledge-github.yaml +0 -40
  3048. package/runtime/providers/knowledge-google-drive.yaml +0 -32
  3049. package/runtime/providers/knowledge-local.yaml +0 -26
  3050. package/runtime/providers/knowledge-notion.yaml +0 -32
  3051. package/runtime/providers/knowledge-obsidian.yaml +0 -24
  3052. package/runtime/providers/knowledge-onedrive.yaml +0 -36
  3053. package/runtime/providers/knowledge-s3.yaml +0 -45
  3054. package/runtime/providers/knowledge-sharepoint.yaml +0 -39
  3055. package/runtime/providers/knowledge-supabase.yaml +0 -43
  3056. package/runtime/providers/knowledge-vector.yaml +0 -39
  3057. package/runtime/providers/local-files.yaml +0 -26
  3058. package/runtime/providers/local-notification.yaml +0 -22
  3059. package/runtime/providers/local-scheduler.yaml +0 -24
  3060. package/runtime/providers/postgres.yaml +0 -39
  3061. package/runtime/providers/presentation-renderer.yaml +0 -22
  3062. package/runtime/providers/restrictive-db.yaml +0 -27
  3063. package/runtime/providers/sqlserver.yaml +0 -43
  3064. package/runtime/providers/supabase.yaml +0 -46
  3065. package/runtime/providers/technical-http.yaml +0 -45
  3066. package/runtime/providers/topdesk.yaml +0 -44
  3067. package/runtime/providers/workbook-renderer.yaml +0 -22
  3068. package/runtime/requirements.txt +0 -6
  3069. package/runtime/scripts/README.md +0 -48
  3070. package/runtime/scripts/docker-cli-qa.sh +0 -453
  3071. package/runtime/scripts/mvp-readiness.py +0 -360
  3072. package/runtime/scripts/release-catalog-snapshot.json +0 -594
  3073. package/runtime/scripts/release-gate.py +0 -400
  3074. package/runtime/scripts/validate-repo.py +0 -967
  3075. package/runtime/scripts/verify-release-alignment.mjs +0 -100
  3076. package/runtime/tooling/toolchain.yaml +0 -92
  3077. package/runtime/vendor/README.md +0 -26
  3078. package/runtime/vendor/plugins/CATALOG.md +0 -53
  3079. package/runtime/vendor/plugins/open-design/AGENTS.md +0 -35
  3080. package/runtime/vendor/plugins/open-design/README.md +0 -22
  3081. package/runtime/vendor/plugins/open-design/README.zh-CN.md +0 -22
  3082. package/runtime/vendor/plugins/open-design/_official/atoms/build-test/SKILL.md +0 -76
  3083. package/runtime/vendor/plugins/open-design/_official/atoms/build-test/open-design.json +0 -38
  3084. package/runtime/vendor/plugins/open-design/_official/atoms/code-import/SKILL.md +0 -60
  3085. package/runtime/vendor/plugins/open-design/_official/atoms/code-import/open-design.json +0 -36
  3086. package/runtime/vendor/plugins/open-design/_official/atoms/critique-theater/SKILL.md +0 -51
  3087. package/runtime/vendor/plugins/open-design/_official/atoms/critique-theater/open-design.json +0 -34
  3088. package/runtime/vendor/plugins/open-design/_official/atoms/design-extract/SKILL.md +0 -64
  3089. package/runtime/vendor/plugins/open-design/_official/atoms/design-extract/open-design.json +0 -37
  3090. package/runtime/vendor/plugins/open-design/_official/atoms/diff-review/SKILL.md +0 -54
  3091. package/runtime/vendor/plugins/open-design/_official/atoms/diff-review/open-design.json +0 -38
  3092. package/runtime/vendor/plugins/open-design/_official/atoms/direction-picker/SKILL.md +0 -28
  3093. package/runtime/vendor/plugins/open-design/_official/atoms/direction-picker/open-design.json +0 -34
  3094. package/runtime/vendor/plugins/open-design/_official/atoms/discovery-question-form/SKILL.md +0 -66
  3095. package/runtime/vendor/plugins/open-design/_official/atoms/discovery-question-form/open-design.json +0 -34
  3096. package/runtime/vendor/plugins/open-design/_official/atoms/figma-extract/SKILL.md +0 -64
  3097. package/runtime/vendor/plugins/open-design/_official/atoms/figma-extract/open-design.json +0 -36
  3098. package/runtime/vendor/plugins/open-design/_official/atoms/handoff/SKILL.md +0 -59
  3099. package/runtime/vendor/plugins/open-design/_official/atoms/handoff/open-design.json +0 -36
  3100. package/runtime/vendor/plugins/open-design/_official/atoms/patch-edit/SKILL.md +0 -60
  3101. package/runtime/vendor/plugins/open-design/_official/atoms/patch-edit/open-design.json +0 -38
  3102. package/runtime/vendor/plugins/open-design/_official/atoms/rewrite-plan/SKILL.md +0 -57
  3103. package/runtime/vendor/plugins/open-design/_official/atoms/rewrite-plan/open-design.json +0 -36
  3104. package/runtime/vendor/plugins/open-design/_official/atoms/todo-write/SKILL.md +0 -24
  3105. package/runtime/vendor/plugins/open-design/_official/atoms/todo-write/open-design.json +0 -34
  3106. package/runtime/vendor/plugins/open-design/_official/atoms/token-map/SKILL.md +0 -147
  3107. package/runtime/vendor/plugins/open-design/_official/atoms/token-map/examples/semantic-inference-before-after.json +0 -164
  3108. package/runtime/vendor/plugins/open-design/_official/atoms/token-map/open-design.json +0 -36
  3109. package/runtime/vendor/plugins/open-design/_official/design-systems/agentic/DESIGN.md +0 -71
  3110. package/runtime/vendor/plugins/open-design/_official/design-systems/agentic/open-design.json +0 -112
  3111. package/runtime/vendor/plugins/open-design/_official/design-systems/airbnb/DESIGN.md +0 -393
  3112. package/runtime/vendor/plugins/open-design/_official/design-systems/airbnb/open-design.json +0 -112
  3113. package/runtime/vendor/plugins/open-design/_official/design-systems/airtable/DESIGN.md +0 -92
  3114. package/runtime/vendor/plugins/open-design/_official/design-systems/airtable/open-design.json +0 -112
  3115. package/runtime/vendor/plugins/open-design/_official/design-systems/ant/DESIGN.md +0 -71
  3116. package/runtime/vendor/plugins/open-design/_official/design-systems/ant/open-design.json +0 -112
  3117. package/runtime/vendor/plugins/open-design/_official/design-systems/apple/DESIGN.md +0 -250
  3118. package/runtime/vendor/plugins/open-design/_official/design-systems/apple/open-design.json +0 -112
  3119. package/runtime/vendor/plugins/open-design/_official/design-systems/application/DESIGN.md +0 -71
  3120. package/runtime/vendor/plugins/open-design/_official/design-systems/application/open-design.json +0 -112
  3121. package/runtime/vendor/plugins/open-design/_official/design-systems/arc/DESIGN.md +0 -152
  3122. package/runtime/vendor/plugins/open-design/_official/design-systems/arc/open-design.json +0 -112
  3123. package/runtime/vendor/plugins/open-design/_official/design-systems/artistic/DESIGN.md +0 -71
  3124. package/runtime/vendor/plugins/open-design/_official/design-systems/artistic/open-design.json +0 -112
  3125. package/runtime/vendor/plugins/open-design/_official/design-systems/atelier-zero/DESIGN.md +0 -316
  3126. package/runtime/vendor/plugins/open-design/_official/design-systems/atelier-zero/open-design.json +0 -112
  3127. package/runtime/vendor/plugins/open-design/_official/design-systems/bento/DESIGN.md +0 -71
  3128. package/runtime/vendor/plugins/open-design/_official/design-systems/bento/open-design.json +0 -112
  3129. package/runtime/vendor/plugins/open-design/_official/design-systems/binance/DESIGN.md +0 -348
  3130. package/runtime/vendor/plugins/open-design/_official/design-systems/binance/open-design.json +0 -112
  3131. package/runtime/vendor/plugins/open-design/_official/design-systems/bmw/DESIGN.md +0 -183
  3132. package/runtime/vendor/plugins/open-design/_official/design-systems/bmw/open-design.json +0 -112
  3133. package/runtime/vendor/plugins/open-design/_official/design-systems/bmw-m/DESIGN.md +0 -246
  3134. package/runtime/vendor/plugins/open-design/_official/design-systems/bmw-m/open-design.json +0 -112
  3135. package/runtime/vendor/plugins/open-design/_official/design-systems/bold/DESIGN.md +0 -71
  3136. package/runtime/vendor/plugins/open-design/_official/design-systems/bold/open-design.json +0 -112
  3137. package/runtime/vendor/plugins/open-design/_official/design-systems/brutalism/DESIGN.md +0 -71
  3138. package/runtime/vendor/plugins/open-design/_official/design-systems/brutalism/open-design.json +0 -112
  3139. package/runtime/vendor/plugins/open-design/_official/design-systems/bugatti/DESIGN.md +0 -271
  3140. package/runtime/vendor/plugins/open-design/_official/design-systems/bugatti/open-design.json +0 -112
  3141. package/runtime/vendor/plugins/open-design/_official/design-systems/cafe/DESIGN.md +0 -71
  3142. package/runtime/vendor/plugins/open-design/_official/design-systems/cafe/open-design.json +0 -112
  3143. package/runtime/vendor/plugins/open-design/_official/design-systems/cal/DESIGN.md +0 -262
  3144. package/runtime/vendor/plugins/open-design/_official/design-systems/cal/open-design.json +0 -112
  3145. package/runtime/vendor/plugins/open-design/_official/design-systems/canva/DESIGN.md +0 -157
  3146. package/runtime/vendor/plugins/open-design/_official/design-systems/canva/open-design.json +0 -112
  3147. package/runtime/vendor/plugins/open-design/_official/design-systems/claude/DESIGN.md +0 -315
  3148. package/runtime/vendor/plugins/open-design/_official/design-systems/claude/open-design.json +0 -112
  3149. package/runtime/vendor/plugins/open-design/_official/design-systems/clay/DESIGN.md +0 -307
  3150. package/runtime/vendor/plugins/open-design/_official/design-systems/clay/open-design.json +0 -112
  3151. package/runtime/vendor/plugins/open-design/_official/design-systems/claymorphism/DESIGN.md +0 -71
  3152. package/runtime/vendor/plugins/open-design/_official/design-systems/claymorphism/open-design.json +0 -112
  3153. package/runtime/vendor/plugins/open-design/_official/design-systems/clean/DESIGN.md +0 -71
  3154. package/runtime/vendor/plugins/open-design/_official/design-systems/clean/open-design.json +0 -112
  3155. package/runtime/vendor/plugins/open-design/_official/design-systems/clickhouse/DESIGN.md +0 -284
  3156. package/runtime/vendor/plugins/open-design/_official/design-systems/clickhouse/open-design.json +0 -112
  3157. package/runtime/vendor/plugins/open-design/_official/design-systems/cohere/DESIGN.md +0 -269
  3158. package/runtime/vendor/plugins/open-design/_official/design-systems/cohere/open-design.json +0 -112
  3159. package/runtime/vendor/plugins/open-design/_official/design-systems/coinbase/DESIGN.md +0 -132
  3160. package/runtime/vendor/plugins/open-design/_official/design-systems/coinbase/open-design.json +0 -112
  3161. package/runtime/vendor/plugins/open-design/_official/design-systems/colorful/DESIGN.md +0 -71
  3162. package/runtime/vendor/plugins/open-design/_official/design-systems/colorful/open-design.json +0 -112
  3163. package/runtime/vendor/plugins/open-design/_official/design-systems/composio/DESIGN.md +0 -310
  3164. package/runtime/vendor/plugins/open-design/_official/design-systems/composio/open-design.json +0 -112
  3165. package/runtime/vendor/plugins/open-design/_official/design-systems/contemporary/DESIGN.md +0 -71
  3166. package/runtime/vendor/plugins/open-design/_official/design-systems/contemporary/open-design.json +0 -112
  3167. package/runtime/vendor/plugins/open-design/_official/design-systems/corporate/DESIGN.md +0 -71
  3168. package/runtime/vendor/plugins/open-design/_official/design-systems/corporate/open-design.json +0 -112
  3169. package/runtime/vendor/plugins/open-design/_official/design-systems/cosmic/DESIGN.md +0 -71
  3170. package/runtime/vendor/plugins/open-design/_official/design-systems/cosmic/open-design.json +0 -112
  3171. package/runtime/vendor/plugins/open-design/_official/design-systems/creative/DESIGN.md +0 -71
  3172. package/runtime/vendor/plugins/open-design/_official/design-systems/creative/open-design.json +0 -112
  3173. package/runtime/vendor/plugins/open-design/_official/design-systems/cursor/DESIGN.md +0 -312
  3174. package/runtime/vendor/plugins/open-design/_official/design-systems/cursor/open-design.json +0 -112
  3175. package/runtime/vendor/plugins/open-design/_official/design-systems/dashboard/DESIGN.md +0 -71
  3176. package/runtime/vendor/plugins/open-design/_official/design-systems/dashboard/open-design.json +0 -112
  3177. package/runtime/vendor/plugins/open-design/_official/design-systems/default/DESIGN.md +0 -62
  3178. package/runtime/vendor/plugins/open-design/_official/design-systems/default/open-design.json +0 -112
  3179. package/runtime/vendor/plugins/open-design/_official/design-systems/discord/DESIGN.md +0 -162
  3180. package/runtime/vendor/plugins/open-design/_official/design-systems/discord/open-design.json +0 -112
  3181. package/runtime/vendor/plugins/open-design/_official/design-systems/dithered/DESIGN.md +0 -71
  3182. package/runtime/vendor/plugins/open-design/_official/design-systems/dithered/open-design.json +0 -112
  3183. package/runtime/vendor/plugins/open-design/_official/design-systems/doodle/DESIGN.md +0 -71
  3184. package/runtime/vendor/plugins/open-design/_official/design-systems/doodle/open-design.json +0 -112
  3185. package/runtime/vendor/plugins/open-design/_official/design-systems/dramatic/DESIGN.md +0 -71
  3186. package/runtime/vendor/plugins/open-design/_official/design-systems/dramatic/open-design.json +0 -112
  3187. package/runtime/vendor/plugins/open-design/_official/design-systems/duolingo/DESIGN.md +0 -154
  3188. package/runtime/vendor/plugins/open-design/_official/design-systems/duolingo/open-design.json +0 -112
  3189. package/runtime/vendor/plugins/open-design/_official/design-systems/editorial/DESIGN.md +0 -71
  3190. package/runtime/vendor/plugins/open-design/_official/design-systems/editorial/open-design.json +0 -112
  3191. package/runtime/vendor/plugins/open-design/_official/design-systems/elegant/DESIGN.md +0 -71
  3192. package/runtime/vendor/plugins/open-design/_official/design-systems/elegant/open-design.json +0 -112
  3193. package/runtime/vendor/plugins/open-design/_official/design-systems/elevenlabs/DESIGN.md +0 -268
  3194. package/runtime/vendor/plugins/open-design/_official/design-systems/elevenlabs/open-design.json +0 -112
  3195. package/runtime/vendor/plugins/open-design/_official/design-systems/energetic/DESIGN.md +0 -72
  3196. package/runtime/vendor/plugins/open-design/_official/design-systems/energetic/open-design.json +0 -112
  3197. package/runtime/vendor/plugins/open-design/_official/design-systems/enterprise/DESIGN.md +0 -71
  3198. package/runtime/vendor/plugins/open-design/_official/design-systems/enterprise/open-design.json +0 -112
  3199. package/runtime/vendor/plugins/open-design/_official/design-systems/expo/DESIGN.md +0 -284
  3200. package/runtime/vendor/plugins/open-design/_official/design-systems/expo/open-design.json +0 -112
  3201. package/runtime/vendor/plugins/open-design/_official/design-systems/expressive/DESIGN.md +0 -71
  3202. package/runtime/vendor/plugins/open-design/_official/design-systems/expressive/open-design.json +0 -112
  3203. package/runtime/vendor/plugins/open-design/_official/design-systems/fantasy/DESIGN.md +0 -71
  3204. package/runtime/vendor/plugins/open-design/_official/design-systems/fantasy/open-design.json +0 -112
  3205. package/runtime/vendor/plugins/open-design/_official/design-systems/ferrari/DESIGN.md +0 -317
  3206. package/runtime/vendor/plugins/open-design/_official/design-systems/ferrari/open-design.json +0 -112
  3207. package/runtime/vendor/plugins/open-design/_official/design-systems/figma/DESIGN.md +0 -223
  3208. package/runtime/vendor/plugins/open-design/_official/design-systems/figma/open-design.json +0 -112
  3209. package/runtime/vendor/plugins/open-design/_official/design-systems/flat/DESIGN.md +0 -71
  3210. package/runtime/vendor/plugins/open-design/_official/design-systems/flat/open-design.json +0 -112
  3211. package/runtime/vendor/plugins/open-design/_official/design-systems/framer/DESIGN.md +0 -249
  3212. package/runtime/vendor/plugins/open-design/_official/design-systems/framer/open-design.json +0 -112
  3213. package/runtime/vendor/plugins/open-design/_official/design-systems/friendly/DESIGN.md +0 -71
  3214. package/runtime/vendor/plugins/open-design/_official/design-systems/friendly/open-design.json +0 -112
  3215. package/runtime/vendor/plugins/open-design/_official/design-systems/futuristic/DESIGN.md +0 -71
  3216. package/runtime/vendor/plugins/open-design/_official/design-systems/futuristic/open-design.json +0 -112
  3217. package/runtime/vendor/plugins/open-design/_official/design-systems/github/DESIGN.md +0 -155
  3218. package/runtime/vendor/plugins/open-design/_official/design-systems/github/open-design.json +0 -112
  3219. package/runtime/vendor/plugins/open-design/_official/design-systems/glassmorphism/DESIGN.md +0 -71
  3220. package/runtime/vendor/plugins/open-design/_official/design-systems/glassmorphism/open-design.json +0 -112
  3221. package/runtime/vendor/plugins/open-design/_official/design-systems/gradient/DESIGN.md +0 -71
  3222. package/runtime/vendor/plugins/open-design/_official/design-systems/gradient/open-design.json +0 -112
  3223. package/runtime/vendor/plugins/open-design/_official/design-systems/hashicorp/DESIGN.md +0 -281
  3224. package/runtime/vendor/plugins/open-design/_official/design-systems/hashicorp/open-design.json +0 -112
  3225. package/runtime/vendor/plugins/open-design/_official/design-systems/huggingface/DESIGN.md +0 -149
  3226. package/runtime/vendor/plugins/open-design/_official/design-systems/huggingface/open-design.json +0 -112
  3227. package/runtime/vendor/plugins/open-design/_official/design-systems/ibm/DESIGN.md +0 -335
  3228. package/runtime/vendor/plugins/open-design/_official/design-systems/ibm/open-design.json +0 -112
  3229. package/runtime/vendor/plugins/open-design/_official/design-systems/intercom/DESIGN.md +0 -149
  3230. package/runtime/vendor/plugins/open-design/_official/design-systems/intercom/open-design.json +0 -112
  3231. package/runtime/vendor/plugins/open-design/_official/design-systems/kami/DESIGN.md +0 -410
  3232. package/runtime/vendor/plugins/open-design/_official/design-systems/kami/open-design.json +0 -112
  3233. package/runtime/vendor/plugins/open-design/_official/design-systems/kraken/DESIGN.md +0 -128
  3234. package/runtime/vendor/plugins/open-design/_official/design-systems/kraken/open-design.json +0 -112
  3235. package/runtime/vendor/plugins/open-design/_official/design-systems/lamborghini/DESIGN.md +0 -291
  3236. package/runtime/vendor/plugins/open-design/_official/design-systems/lamborghini/open-design.json +0 -112
  3237. package/runtime/vendor/plugins/open-design/_official/design-systems/levels/DESIGN.md +0 -71
  3238. package/runtime/vendor/plugins/open-design/_official/design-systems/levels/open-design.json +0 -112
  3239. package/runtime/vendor/plugins/open-design/_official/design-systems/linear-app/DESIGN.md +0 -370
  3240. package/runtime/vendor/plugins/open-design/_official/design-systems/linear-app/open-design.json +0 -112
  3241. package/runtime/vendor/plugins/open-design/_official/design-systems/lingo/DESIGN.md +0 -71
  3242. package/runtime/vendor/plugins/open-design/_official/design-systems/lingo/open-design.json +0 -112
  3243. package/runtime/vendor/plugins/open-design/_official/design-systems/lovable/DESIGN.md +0 -301
  3244. package/runtime/vendor/plugins/open-design/_official/design-systems/lovable/open-design.json +0 -112
  3245. package/runtime/vendor/plugins/open-design/_official/design-systems/luxury/DESIGN.md +0 -71
  3246. package/runtime/vendor/plugins/open-design/_official/design-systems/luxury/open-design.json +0 -112
  3247. package/runtime/vendor/plugins/open-design/_official/design-systems/mastercard/DESIGN.md +0 -368
  3248. package/runtime/vendor/plugins/open-design/_official/design-systems/mastercard/open-design.json +0 -112
  3249. package/runtime/vendor/plugins/open-design/_official/design-systems/material/DESIGN.md +0 -71
  3250. package/runtime/vendor/plugins/open-design/_official/design-systems/material/open-design.json +0 -112
  3251. package/runtime/vendor/plugins/open-design/_official/design-systems/meta/DESIGN.md +0 -369
  3252. package/runtime/vendor/plugins/open-design/_official/design-systems/meta/open-design.json +0 -112
  3253. package/runtime/vendor/plugins/open-design/_official/design-systems/minimal/DESIGN.md +0 -71
  3254. package/runtime/vendor/plugins/open-design/_official/design-systems/minimal/open-design.json +0 -112
  3255. package/runtime/vendor/plugins/open-design/_official/design-systems/minimax/DESIGN.md +0 -260
  3256. package/runtime/vendor/plugins/open-design/_official/design-systems/minimax/open-design.json +0 -112
  3257. package/runtime/vendor/plugins/open-design/_official/design-systems/mintlify/DESIGN.md +0 -329
  3258. package/runtime/vendor/plugins/open-design/_official/design-systems/mintlify/open-design.json +0 -112
  3259. package/runtime/vendor/plugins/open-design/_official/design-systems/miro/DESIGN.md +0 -111
  3260. package/runtime/vendor/plugins/open-design/_official/design-systems/miro/open-design.json +0 -112
  3261. package/runtime/vendor/plugins/open-design/_official/design-systems/mission-control/DESIGN.md +0 -476
  3262. package/runtime/vendor/plugins/open-design/_official/design-systems/mission-control/open-design.json +0 -112
  3263. package/runtime/vendor/plugins/open-design/_official/design-systems/mistral-ai/DESIGN.md +0 -264
  3264. package/runtime/vendor/plugins/open-design/_official/design-systems/mistral-ai/open-design.json +0 -112
  3265. package/runtime/vendor/plugins/open-design/_official/design-systems/modern/DESIGN.md +0 -71
  3266. package/runtime/vendor/plugins/open-design/_official/design-systems/modern/open-design.json +0 -112
  3267. package/runtime/vendor/plugins/open-design/_official/design-systems/mongodb/DESIGN.md +0 -269
  3268. package/runtime/vendor/plugins/open-design/_official/design-systems/mongodb/open-design.json +0 -112
  3269. package/runtime/vendor/plugins/open-design/_official/design-systems/mono/DESIGN.md +0 -71
  3270. package/runtime/vendor/plugins/open-design/_official/design-systems/mono/open-design.json +0 -112
  3271. package/runtime/vendor/plugins/open-design/_official/design-systems/neobrutalism/DESIGN.md +0 -71
  3272. package/runtime/vendor/plugins/open-design/_official/design-systems/neobrutalism/open-design.json +0 -112
  3273. package/runtime/vendor/plugins/open-design/_official/design-systems/neon/DESIGN.md +0 -71
  3274. package/runtime/vendor/plugins/open-design/_official/design-systems/neon/open-design.json +0 -112
  3275. package/runtime/vendor/plugins/open-design/_official/design-systems/neumorphism/DESIGN.md +0 -71
  3276. package/runtime/vendor/plugins/open-design/_official/design-systems/neumorphism/open-design.json +0 -112
  3277. package/runtime/vendor/plugins/open-design/_official/design-systems/nike/DESIGN.md +0 -366
  3278. package/runtime/vendor/plugins/open-design/_official/design-systems/nike/open-design.json +0 -112
  3279. package/runtime/vendor/plugins/open-design/_official/design-systems/notion/DESIGN.md +0 -312
  3280. package/runtime/vendor/plugins/open-design/_official/design-systems/notion/open-design.json +0 -112
  3281. package/runtime/vendor/plugins/open-design/_official/design-systems/nvidia/DESIGN.md +0 -296
  3282. package/runtime/vendor/plugins/open-design/_official/design-systems/nvidia/open-design.json +0 -112
  3283. package/runtime/vendor/plugins/open-design/_official/design-systems/ollama/DESIGN.md +0 -270
  3284. package/runtime/vendor/plugins/open-design/_official/design-systems/ollama/open-design.json +0 -112
  3285. package/runtime/vendor/plugins/open-design/_official/design-systems/openai/DESIGN.md +0 -140
  3286. package/runtime/vendor/plugins/open-design/_official/design-systems/openai/open-design.json +0 -112
  3287. package/runtime/vendor/plugins/open-design/_official/design-systems/opencode-ai/DESIGN.md +0 -284
  3288. package/runtime/vendor/plugins/open-design/_official/design-systems/opencode-ai/open-design.json +0 -112
  3289. package/runtime/vendor/plugins/open-design/_official/design-systems/pacman/DESIGN.md +0 -71
  3290. package/runtime/vendor/plugins/open-design/_official/design-systems/pacman/open-design.json +0 -112
  3291. package/runtime/vendor/plugins/open-design/_official/design-systems/paper/DESIGN.md +0 -71
  3292. package/runtime/vendor/plugins/open-design/_official/design-systems/paper/open-design.json +0 -112
  3293. package/runtime/vendor/plugins/open-design/_official/design-systems/perspective/DESIGN.md +0 -71
  3294. package/runtime/vendor/plugins/open-design/_official/design-systems/perspective/open-design.json +0 -112
  3295. package/runtime/vendor/plugins/open-design/_official/design-systems/pinterest/DESIGN.md +0 -233
  3296. package/runtime/vendor/plugins/open-design/_official/design-systems/pinterest/open-design.json +0 -112
  3297. package/runtime/vendor/plugins/open-design/_official/design-systems/playstation/DESIGN.md +0 -367
  3298. package/runtime/vendor/plugins/open-design/_official/design-systems/playstation/open-design.json +0 -112
  3299. package/runtime/vendor/plugins/open-design/_official/design-systems/posthog/DESIGN.md +0 -259
  3300. package/runtime/vendor/plugins/open-design/_official/design-systems/posthog/open-design.json +0 -112
  3301. package/runtime/vendor/plugins/open-design/_official/design-systems/premium/DESIGN.md +0 -71
  3302. package/runtime/vendor/plugins/open-design/_official/design-systems/premium/open-design.json +0 -112
  3303. package/runtime/vendor/plugins/open-design/_official/design-systems/professional/DESIGN.md +0 -71
  3304. package/runtime/vendor/plugins/open-design/_official/design-systems/professional/open-design.json +0 -112
  3305. package/runtime/vendor/plugins/open-design/_official/design-systems/publication/DESIGN.md +0 -71
  3306. package/runtime/vendor/plugins/open-design/_official/design-systems/publication/open-design.json +0 -112
  3307. package/runtime/vendor/plugins/open-design/_official/design-systems/raycast/DESIGN.md +0 -271
  3308. package/runtime/vendor/plugins/open-design/_official/design-systems/raycast/open-design.json +0 -112
  3309. package/runtime/vendor/plugins/open-design/_official/design-systems/refined/DESIGN.md +0 -71
  3310. package/runtime/vendor/plugins/open-design/_official/design-systems/refined/open-design.json +0 -112
  3311. package/runtime/vendor/plugins/open-design/_official/design-systems/renault/DESIGN.md +0 -314
  3312. package/runtime/vendor/plugins/open-design/_official/design-systems/renault/open-design.json +0 -112
  3313. package/runtime/vendor/plugins/open-design/_official/design-systems/replicate/DESIGN.md +0 -264
  3314. package/runtime/vendor/plugins/open-design/_official/design-systems/replicate/open-design.json +0 -112
  3315. package/runtime/vendor/plugins/open-design/_official/design-systems/resend/DESIGN.md +0 -306
  3316. package/runtime/vendor/plugins/open-design/_official/design-systems/resend/open-design.json +0 -112
  3317. package/runtime/vendor/plugins/open-design/_official/design-systems/retro/DESIGN.md +0 -71
  3318. package/runtime/vendor/plugins/open-design/_official/design-systems/retro/open-design.json +0 -112
  3319. package/runtime/vendor/plugins/open-design/_official/design-systems/revolut/DESIGN.md +0 -188
  3320. package/runtime/vendor/plugins/open-design/_official/design-systems/revolut/open-design.json +0 -112
  3321. package/runtime/vendor/plugins/open-design/_official/design-systems/runwayml/DESIGN.md +0 -247
  3322. package/runtime/vendor/plugins/open-design/_official/design-systems/runwayml/open-design.json +0 -112
  3323. package/runtime/vendor/plugins/open-design/_official/design-systems/sanity/DESIGN.md +0 -360
  3324. package/runtime/vendor/plugins/open-design/_official/design-systems/sanity/open-design.json +0 -112
  3325. package/runtime/vendor/plugins/open-design/_official/design-systems/sentry/DESIGN.md +0 -265
  3326. package/runtime/vendor/plugins/open-design/_official/design-systems/sentry/open-design.json +0 -112
  3327. package/runtime/vendor/plugins/open-design/_official/design-systems/shadcn/DESIGN.md +0 -71
  3328. package/runtime/vendor/plugins/open-design/_official/design-systems/shadcn/open-design.json +0 -112
  3329. package/runtime/vendor/plugins/open-design/_official/design-systems/shopify/DESIGN.md +0 -353
  3330. package/runtime/vendor/plugins/open-design/_official/design-systems/shopify/open-design.json +0 -112
  3331. package/runtime/vendor/plugins/open-design/_official/design-systems/simple/DESIGN.md +0 -71
  3332. package/runtime/vendor/plugins/open-design/_official/design-systems/simple/open-design.json +0 -112
  3333. package/runtime/vendor/plugins/open-design/_official/design-systems/skeumorphism/DESIGN.md +0 -71
  3334. package/runtime/vendor/plugins/open-design/_official/design-systems/skeumorphism/open-design.json +0 -112
  3335. package/runtime/vendor/plugins/open-design/_official/design-systems/sleek/DESIGN.md +0 -71
  3336. package/runtime/vendor/plugins/open-design/_official/design-systems/sleek/open-design.json +0 -112
  3337. package/runtime/vendor/plugins/open-design/_official/design-systems/spacex/DESIGN.md +0 -197
  3338. package/runtime/vendor/plugins/open-design/_official/design-systems/spacex/open-design.json +0 -112
  3339. package/runtime/vendor/plugins/open-design/_official/design-systems/spacious/DESIGN.md +0 -71
  3340. package/runtime/vendor/plugins/open-design/_official/design-systems/spacious/open-design.json +0 -112
  3341. package/runtime/vendor/plugins/open-design/_official/design-systems/spotify/DESIGN.md +0 -249
  3342. package/runtime/vendor/plugins/open-design/_official/design-systems/spotify/open-design.json +0 -112
  3343. package/runtime/vendor/plugins/open-design/_official/design-systems/starbucks/DESIGN.md +0 -583
  3344. package/runtime/vendor/plugins/open-design/_official/design-systems/starbucks/open-design.json +0 -112
  3345. package/runtime/vendor/plugins/open-design/_official/design-systems/storytelling/DESIGN.md +0 -71
  3346. package/runtime/vendor/plugins/open-design/_official/design-systems/storytelling/open-design.json +0 -112
  3347. package/runtime/vendor/plugins/open-design/_official/design-systems/stripe/DESIGN.md +0 -325
  3348. package/runtime/vendor/plugins/open-design/_official/design-systems/stripe/open-design.json +0 -112
  3349. package/runtime/vendor/plugins/open-design/_official/design-systems/supabase/DESIGN.md +0 -258
  3350. package/runtime/vendor/plugins/open-design/_official/design-systems/supabase/open-design.json +0 -112
  3351. package/runtime/vendor/plugins/open-design/_official/design-systems/superhuman/DESIGN.md +0 -255
  3352. package/runtime/vendor/plugins/open-design/_official/design-systems/superhuman/open-design.json +0 -112
  3353. package/runtime/vendor/plugins/open-design/_official/design-systems/tesla/DESIGN.md +0 -289
  3354. package/runtime/vendor/plugins/open-design/_official/design-systems/tesla/open-design.json +0 -112
  3355. package/runtime/vendor/plugins/open-design/_official/design-systems/tetris/DESIGN.md +0 -71
  3356. package/runtime/vendor/plugins/open-design/_official/design-systems/tetris/open-design.json +0 -112
  3357. package/runtime/vendor/plugins/open-design/_official/design-systems/theverge/DESIGN.md +0 -342
  3358. package/runtime/vendor/plugins/open-design/_official/design-systems/theverge/open-design.json +0 -112
  3359. package/runtime/vendor/plugins/open-design/_official/design-systems/together-ai/DESIGN.md +0 -266
  3360. package/runtime/vendor/plugins/open-design/_official/design-systems/together-ai/open-design.json +0 -112
  3361. package/runtime/vendor/plugins/open-design/_official/design-systems/totality-festival/DESIGN.md +0 -206
  3362. package/runtime/vendor/plugins/open-design/_official/design-systems/totality-festival/open-design.json +0 -112
  3363. package/runtime/vendor/plugins/open-design/_official/design-systems/uber/DESIGN.md +0 -298
  3364. package/runtime/vendor/plugins/open-design/_official/design-systems/uber/open-design.json +0 -112
  3365. package/runtime/vendor/plugins/open-design/_official/design-systems/urdu/DESIGN.md +0 -1002
  3366. package/runtime/vendor/plugins/open-design/_official/design-systems/urdu/open-design.json +0 -112
  3367. package/runtime/vendor/plugins/open-design/_official/design-systems/vercel/DESIGN.md +0 -313
  3368. package/runtime/vendor/plugins/open-design/_official/design-systems/vercel/open-design.json +0 -112
  3369. package/runtime/vendor/plugins/open-design/_official/design-systems/vibrant/DESIGN.md +0 -71
  3370. package/runtime/vendor/plugins/open-design/_official/design-systems/vibrant/open-design.json +0 -112
  3371. package/runtime/vendor/plugins/open-design/_official/design-systems/vintage/DESIGN.md +0 -71
  3372. package/runtime/vendor/plugins/open-design/_official/design-systems/vintage/open-design.json +0 -112
  3373. package/runtime/vendor/plugins/open-design/_official/design-systems/vodafone/DESIGN.md +0 -426
  3374. package/runtime/vendor/plugins/open-design/_official/design-systems/vodafone/open-design.json +0 -112
  3375. package/runtime/vendor/plugins/open-design/_official/design-systems/voltagent/DESIGN.md +0 -326
  3376. package/runtime/vendor/plugins/open-design/_official/design-systems/voltagent/open-design.json +0 -112
  3377. package/runtime/vendor/plugins/open-design/_official/design-systems/warm-editorial/DESIGN.md +0 -65
  3378. package/runtime/vendor/plugins/open-design/_official/design-systems/warm-editorial/open-design.json +0 -112
  3379. package/runtime/vendor/plugins/open-design/_official/design-systems/warp/DESIGN.md +0 -256
  3380. package/runtime/vendor/plugins/open-design/_official/design-systems/warp/open-design.json +0 -112
  3381. package/runtime/vendor/plugins/open-design/_official/design-systems/webflow/DESIGN.md +0 -95
  3382. package/runtime/vendor/plugins/open-design/_official/design-systems/webflow/open-design.json +0 -112
  3383. package/runtime/vendor/plugins/open-design/_official/design-systems/wired/DESIGN.md +0 -281
  3384. package/runtime/vendor/plugins/open-design/_official/design-systems/wired/open-design.json +0 -112
  3385. package/runtime/vendor/plugins/open-design/_official/design-systems/wise/DESIGN.md +0 -176
  3386. package/runtime/vendor/plugins/open-design/_official/design-systems/wise/open-design.json +0 -112
  3387. package/runtime/vendor/plugins/open-design/_official/design-systems/x-ai/DESIGN.md +0 -260
  3388. package/runtime/vendor/plugins/open-design/_official/design-systems/x-ai/open-design.json +0 -112
  3389. package/runtime/vendor/plugins/open-design/_official/design-systems/xiaohongshu/DESIGN.md +0 -402
  3390. package/runtime/vendor/plugins/open-design/_official/design-systems/xiaohongshu/open-design.json +0 -112
  3391. package/runtime/vendor/plugins/open-design/_official/design-systems/zapier/DESIGN.md +0 -331
  3392. package/runtime/vendor/plugins/open-design/_official/design-systems/zapier/open-design.json +0 -112
  3393. package/runtime/vendor/plugins/open-design/_official/examples/3d-creator-portfolio/SKILL.md +0 -120
  3394. package/runtime/vendor/plugins/open-design/_official/examples/3d-creator-portfolio/example.html +0 -436
  3395. package/runtime/vendor/plugins/open-design/_official/examples/3d-creator-portfolio/open-design.json +0 -125
  3396. package/runtime/vendor/plugins/open-design/_official/examples/acreage-farming/SKILL.md +0 -93
  3397. package/runtime/vendor/plugins/open-design/_official/examples/acreage-farming/example.html +0 -428
  3398. package/runtime/vendor/plugins/open-design/_official/examples/acreage-farming/open-design.json +0 -122
  3399. package/runtime/vendor/plugins/open-design/_official/examples/aerocore/SKILL.md +0 -127
  3400. package/runtime/vendor/plugins/open-design/_official/examples/aerocore/example.html +0 -2136
  3401. package/runtime/vendor/plugins/open-design/_official/examples/aerocore/open-design.json +0 -122
  3402. package/runtime/vendor/plugins/open-design/_official/examples/ai-designer-portfolio/SKILL.md +0 -163
  3403. package/runtime/vendor/plugins/open-design/_official/examples/ai-designer-portfolio/example.html +0 -484
  3404. package/runtime/vendor/plugins/open-design/_official/examples/ai-designer-portfolio/open-design.json +0 -122
  3405. package/runtime/vendor/plugins/open-design/_official/examples/article-magazine/SKILL.md +0 -46
  3406. package/runtime/vendor/plugins/open-design/_official/examples/article-magazine/example.html +0 -81
  3407. package/runtime/vendor/plugins/open-design/_official/examples/article-magazine/open-design.json +0 -126
  3408. package/runtime/vendor/plugins/open-design/_official/examples/audio-jingle/SKILL.md +0 -132
  3409. package/runtime/vendor/plugins/open-design/_official/examples/audio-jingle/example.html +0 -128
  3410. package/runtime/vendor/plugins/open-design/_official/examples/audio-jingle/open-design.json +0 -122
  3411. package/runtime/vendor/plugins/open-design/_official/examples/blog-post/SKILL.md +0 -81
  3412. package/runtime/vendor/plugins/open-design/_official/examples/blog-post/example.html +0 -80
  3413. package/runtime/vendor/plugins/open-design/_official/examples/blog-post/open-design.json +0 -134
  3414. package/runtime/vendor/plugins/open-design/_official/examples/card-twitter/SKILL.md +0 -42
  3415. package/runtime/vendor/plugins/open-design/_official/examples/card-twitter/example.html +0 -58
  3416. package/runtime/vendor/plugins/open-design/_official/examples/card-twitter/open-design.json +0 -126
  3417. package/runtime/vendor/plugins/open-design/_official/examples/card-xiaohongshu/SKILL.md +0 -43
  3418. package/runtime/vendor/plugins/open-design/_official/examples/card-xiaohongshu/example.html +0 -98
  3419. package/runtime/vendor/plugins/open-design/_official/examples/card-xiaohongshu/open-design.json +0 -125
  3420. package/runtime/vendor/plugins/open-design/_official/examples/cinematic-landing-page/SKILL.md +0 -128
  3421. package/runtime/vendor/plugins/open-design/_official/examples/cinematic-landing-page/example.html +0 -723
  3422. package/runtime/vendor/plugins/open-design/_official/examples/cinematic-landing-page/open-design.json +0 -122
  3423. package/runtime/vendor/plugins/open-design/_official/examples/clinical-case-report/SKILL.md +0 -209
  3424. package/runtime/vendor/plugins/open-design/_official/examples/clinical-case-report/example.html +0 -698
  3425. package/runtime/vendor/plugins/open-design/_official/examples/clinical-case-report/open-design.json +0 -131
  3426. package/runtime/vendor/plugins/open-design/_official/examples/clinical-case-report/references/case-formats.md +0 -94
  3427. package/runtime/vendor/plugins/open-design/_official/examples/clinical-case-report/references/checklist.md +0 -41
  3428. package/runtime/vendor/plugins/open-design/_official/examples/codenest-coding-platform/SKILL.md +0 -84
  3429. package/runtime/vendor/plugins/open-design/_official/examples/codenest-coding-platform/example.html +0 -233
  3430. package/runtime/vendor/plugins/open-design/_official/examples/codenest-coding-platform/open-design.json +0 -122
  3431. package/runtime/vendor/plugins/open-design/_official/examples/codex-interactive-capability-map/SKILL.md +0 -80
  3432. package/runtime/vendor/plugins/open-design/_official/examples/codex-interactive-capability-map/example.html +0 -672
  3433. package/runtime/vendor/plugins/open-design/_official/examples/codex-interactive-capability-map/open-design.json +0 -125
  3434. package/runtime/vendor/plugins/open-design/_official/examples/critique/SKILL.md +0 -258
  3435. package/runtime/vendor/plugins/open-design/_official/examples/critique/example.html +0 -671
  3436. package/runtime/vendor/plugins/open-design/_official/examples/critique/open-design.json +0 -127
  3437. package/runtime/vendor/plugins/open-design/_official/examples/dashboard/SKILL.md +0 -76
  3438. package/runtime/vendor/plugins/open-design/_official/examples/dashboard/example.html +0 -118
  3439. package/runtime/vendor/plugins/open-design/_official/examples/dashboard/open-design.json +0 -131
  3440. package/runtime/vendor/plugins/open-design/_official/examples/dashboard-ui-glass/SKILL.md +0 -175
  3441. package/runtime/vendor/plugins/open-design/_official/examples/dashboard-ui-glass/example.html +0 -509
  3442. package/runtime/vendor/plugins/open-design/_official/examples/dashboard-ui-glass/open-design.json +0 -122
  3443. package/runtime/vendor/plugins/open-design/_official/examples/data-report/SKILL.md +0 -45
  3444. package/runtime/vendor/plugins/open-design/_official/examples/data-report/example.html +0 -175
  3445. package/runtime/vendor/plugins/open-design/_official/examples/data-report/open-design.json +0 -126
  3446. package/runtime/vendor/plugins/open-design/_official/examples/dating-web/SKILL.md +0 -93
  3447. package/runtime/vendor/plugins/open-design/_official/examples/dating-web/example.html +0 -265
  3448. package/runtime/vendor/plugins/open-design/_official/examples/dating-web/open-design.json +0 -128
  3449. package/runtime/vendor/plugins/open-design/_official/examples/dcf-valuation/SKILL.md +0 -140
  3450. package/runtime/vendor/plugins/open-design/_official/examples/dcf-valuation/open-design.json +0 -121
  3451. package/runtime/vendor/plugins/open-design/_official/examples/dcf-valuation/references/sector-wacc.md +0 -42
  3452. package/runtime/vendor/plugins/open-design/_official/examples/deck-guizang-editorial/SKILL.md +0 -66
  3453. package/runtime/vendor/plugins/open-design/_official/examples/deck-guizang-editorial/example.html +0 -631
  3454. package/runtime/vendor/plugins/open-design/_official/examples/deck-guizang-editorial/open-design.json +0 -126
  3455. package/runtime/vendor/plugins/open-design/_official/examples/deck-open-slide-canvas/SKILL.md +0 -70
  3456. package/runtime/vendor/plugins/open-design/_official/examples/deck-open-slide-canvas/example.html +0 -602
  3457. package/runtime/vendor/plugins/open-design/_official/examples/deck-open-slide-canvas/open-design.json +0 -126
  3458. package/runtime/vendor/plugins/open-design/_official/examples/deck-swiss-international/SKILL.md +0 -80
  3459. package/runtime/vendor/plugins/open-design/_official/examples/deck-swiss-international/example.html +0 -746
  3460. package/runtime/vendor/plugins/open-design/_official/examples/deck-swiss-international/open-design.json +0 -127
  3461. package/runtime/vendor/plugins/open-design/_official/examples/design-brief/SKILL.md +0 -252
  3462. package/runtime/vendor/plugins/open-design/_official/examples/design-brief/open-design.json +0 -122
  3463. package/runtime/vendor/plugins/open-design/_official/examples/digital-eguide/SKILL.md +0 -93
  3464. package/runtime/vendor/plugins/open-design/_official/examples/digital-eguide/example.html +0 -204
  3465. package/runtime/vendor/plugins/open-design/_official/examples/digital-eguide/open-design.json +0 -136
  3466. package/runtime/vendor/plugins/open-design/_official/examples/doc-kami-parchment/SKILL.md +0 -70
  3467. package/runtime/vendor/plugins/open-design/_official/examples/doc-kami-parchment/example.html +0 -84
  3468. package/runtime/vendor/plugins/open-design/_official/examples/doc-kami-parchment/open-design.json +0 -130
  3469. package/runtime/vendor/plugins/open-design/_official/examples/docs-page/SKILL.md +0 -80
  3470. package/runtime/vendor/plugins/open-design/_official/examples/docs-page/example.html +0 -122
  3471. package/runtime/vendor/plugins/open-design/_official/examples/docs-page/open-design.json +0 -133
  3472. package/runtime/vendor/plugins/open-design/_official/examples/dreamcore-landing/SKILL.md +0 -134
  3473. package/runtime/vendor/plugins/open-design/_official/examples/dreamcore-landing/example.html +0 -615
  3474. package/runtime/vendor/plugins/open-design/_official/examples/dreamcore-landing/open-design.json +0 -122
  3475. package/runtime/vendor/plugins/open-design/_official/examples/email-marketing/SKILL.md +0 -85
  3476. package/runtime/vendor/plugins/open-design/_official/examples/email-marketing/example.html +0 -159
  3477. package/runtime/vendor/plugins/open-design/_official/examples/email-marketing/open-design.json +0 -128
  3478. package/runtime/vendor/plugins/open-design/_official/examples/eng-runbook/SKILL.md +0 -51
  3479. package/runtime/vendor/plugins/open-design/_official/examples/eng-runbook/example.html +0 -250
  3480. package/runtime/vendor/plugins/open-design/_official/examples/eng-runbook/open-design.json +0 -127
  3481. package/runtime/vendor/plugins/open-design/_official/examples/evergreen-finance/SKILL.md +0 -157
  3482. package/runtime/vendor/plugins/open-design/_official/examples/evergreen-finance/example.html +0 -627
  3483. package/runtime/vendor/plugins/open-design/_official/examples/evergreen-finance/open-design.json +0 -122
  3484. package/runtime/vendor/plugins/open-design/_official/examples/finance-report/SKILL.md +0 -62
  3485. package/runtime/vendor/plugins/open-design/_official/examples/finance-report/example.html +0 -242
  3486. package/runtime/vendor/plugins/open-design/_official/examples/finance-report/open-design.json +0 -130
  3487. package/runtime/vendor/plugins/open-design/_official/examples/flowai-live-dashboard-template/SKILL.md +0 -87
  3488. package/runtime/vendor/plugins/open-design/_official/examples/flowai-live-dashboard-template/assets/template.html +0 -387
  3489. package/runtime/vendor/plugins/open-design/_official/examples/flowai-live-dashboard-template/example.html +0 -13
  3490. package/runtime/vendor/plugins/open-design/_official/examples/flowai-live-dashboard-template/open-design.json +0 -133
  3491. package/runtime/vendor/plugins/open-design/_official/examples/flowai-live-dashboard-template/references/checklist.md +0 -35
  3492. package/runtime/vendor/plugins/open-design/_official/examples/frame-data-chart-nyt/SKILL.md +0 -59
  3493. package/runtime/vendor/plugins/open-design/_official/examples/frame-data-chart-nyt/example.html +0 -101
  3494. package/runtime/vendor/plugins/open-design/_official/examples/frame-data-chart-nyt/open-design.json +0 -123
  3495. package/runtime/vendor/plugins/open-design/_official/examples/frame-flowchart-sticky/SKILL.md +0 -64
  3496. package/runtime/vendor/plugins/open-design/_official/examples/frame-flowchart-sticky/example.html +0 -137
  3497. package/runtime/vendor/plugins/open-design/_official/examples/frame-flowchart-sticky/open-design.json +0 -124
  3498. package/runtime/vendor/plugins/open-design/_official/examples/frame-glitch-title/SKILL.md +0 -67
  3499. package/runtime/vendor/plugins/open-design/_official/examples/frame-glitch-title/example.html +0 -99
  3500. package/runtime/vendor/plugins/open-design/_official/examples/frame-glitch-title/open-design.json +0 -125
  3501. package/runtime/vendor/plugins/open-design/_official/examples/frame-light-leak-cinema/SKILL.md +0 -66
  3502. package/runtime/vendor/plugins/open-design/_official/examples/frame-light-leak-cinema/example.html +0 -81
  3503. package/runtime/vendor/plugins/open-design/_official/examples/frame-light-leak-cinema/open-design.json +0 -124
  3504. package/runtime/vendor/plugins/open-design/_official/examples/frame-liquid-bg-hero/SKILL.md +0 -71
  3505. package/runtime/vendor/plugins/open-design/_official/examples/frame-liquid-bg-hero/example.html +0 -64
  3506. package/runtime/vendor/plugins/open-design/_official/examples/frame-liquid-bg-hero/open-design.json +0 -124
  3507. package/runtime/vendor/plugins/open-design/_official/examples/frame-logo-outro/SKILL.md +0 -64
  3508. package/runtime/vendor/plugins/open-design/_official/examples/frame-logo-outro/example.html +0 -80
  3509. package/runtime/vendor/plugins/open-design/_official/examples/frame-logo-outro/open-design.json +0 -124
  3510. package/runtime/vendor/plugins/open-design/_official/examples/frame-macos-notification/SKILL.md +0 -70
  3511. package/runtime/vendor/plugins/open-design/_official/examples/frame-macos-notification/example.html +0 -60
  3512. package/runtime/vendor/plugins/open-design/_official/examples/frame-macos-notification/open-design.json +0 -123
  3513. package/runtime/vendor/plugins/open-design/_official/examples/frontend-slides/LICENSE +0 -21
  3514. package/runtime/vendor/plugins/open-design/_official/examples/frontend-slides/SKILL.md +0 -94
  3515. package/runtime/vendor/plugins/open-design/_official/examples/frontend-slides/example.html +0 -763
  3516. package/runtime/vendor/plugins/open-design/_official/examples/frontend-slides/open-design.json +0 -180
  3517. package/runtime/vendor/plugins/open-design/_official/examples/frontend-slides/references/STYLE_PRESETS.md +0 -346
  3518. package/runtime/vendor/plugins/open-design/_official/examples/frontend-slides/references/animation-patterns.md +0 -110
  3519. package/runtime/vendor/plugins/open-design/_official/examples/frontend-slides/references/html-template.md +0 -350
  3520. package/runtime/vendor/plugins/open-design/_official/examples/frontend-slides/references/viewport-base.css +0 -133
  3521. package/runtime/vendor/plugins/open-design/_official/examples/fs-creative-voltage/LICENSE +0 -21
  3522. package/runtime/vendor/plugins/open-design/_official/examples/fs-creative-voltage/SKILL.md +0 -132
  3523. package/runtime/vendor/plugins/open-design/_official/examples/fs-creative-voltage/example.html +0 -1059
  3524. package/runtime/vendor/plugins/open-design/_official/examples/fs-creative-voltage/open-design.json +0 -157
  3525. package/runtime/vendor/plugins/open-design/_official/examples/fs-editorial-forest/LICENSE +0 -21
  3526. package/runtime/vendor/plugins/open-design/_official/examples/fs-editorial-forest/SKILL.md +0 -90
  3527. package/runtime/vendor/plugins/open-design/_official/examples/fs-editorial-forest/example.html +0 -2621
  3528. package/runtime/vendor/plugins/open-design/_official/examples/fs-editorial-forest/open-design.json +0 -139
  3529. package/runtime/vendor/plugins/open-design/_official/examples/fs-electric-studio/LICENSE +0 -21
  3530. package/runtime/vendor/plugins/open-design/_official/examples/fs-electric-studio/SKILL.md +0 -135
  3531. package/runtime/vendor/plugins/open-design/_official/examples/fs-electric-studio/example.html +0 -842
  3532. package/runtime/vendor/plugins/open-design/_official/examples/fs-electric-studio/open-design.json +0 -158
  3533. package/runtime/vendor/plugins/open-design/_official/examples/fs-emerald-editorial/LICENSE +0 -21
  3534. package/runtime/vendor/plugins/open-design/_official/examples/fs-emerald-editorial/SKILL.md +0 -95
  3535. package/runtime/vendor/plugins/open-design/_official/examples/fs-emerald-editorial/example.html +0 -2842
  3536. package/runtime/vendor/plugins/open-design/_official/examples/fs-emerald-editorial/open-design.json +0 -146
  3537. package/runtime/vendor/plugins/open-design/_official/examples/fs-notebook-tabs/LICENSE +0 -21
  3538. package/runtime/vendor/plugins/open-design/_official/examples/fs-notebook-tabs/SKILL.md +0 -102
  3539. package/runtime/vendor/plugins/open-design/_official/examples/fs-notebook-tabs/example.html +0 -967
  3540. package/runtime/vendor/plugins/open-design/_official/examples/fs-notebook-tabs/open-design.json +0 -158
  3541. package/runtime/vendor/plugins/open-design/_official/examples/gamified-app/SKILL.md +0 -109
  3542. package/runtime/vendor/plugins/open-design/_official/examples/gamified-app/example.html +0 -292
  3543. package/runtime/vendor/plugins/open-design/_official/examples/gamified-app/open-design.json +0 -134
  3544. package/runtime/vendor/plugins/open-design/_official/examples/github-dashboard/SKILL.md +0 -130
  3545. package/runtime/vendor/plugins/open-design/_official/examples/github-dashboard/example.html +0 -473
  3546. package/runtime/vendor/plugins/open-design/_official/examples/github-dashboard/open-design.json +0 -134
  3547. package/runtime/vendor/plugins/open-design/_official/examples/github-dashboard/references/README.md +0 -10
  3548. package/runtime/vendor/plugins/open-design/_official/examples/github-dashboard/references/artifact-example.json +0 -15
  3549. package/runtime/vendor/plugins/open-design/_official/examples/github-dashboard/references/example-data.json +0 -138
  3550. package/runtime/vendor/plugins/open-design/_official/examples/github-dashboard/references/provenance-example.json +0 -92
  3551. package/runtime/vendor/plugins/open-design/_official/examples/github-dashboard/references/template.html +0 -473
  3552. package/runtime/vendor/plugins/open-design/_official/examples/guizang-ppt/SKILL.md +0 -314
  3553. package/runtime/vendor/plugins/open-design/_official/examples/guizang-ppt/assets/example-slides.html +0 -318
  3554. package/runtime/vendor/plugins/open-design/_official/examples/guizang-ppt/assets/template.html +0 -647
  3555. package/runtime/vendor/plugins/open-design/_official/examples/guizang-ppt/open-design.json +0 -125
  3556. package/runtime/vendor/plugins/open-design/_official/examples/guizang-ppt/references/checklist.md +0 -265
  3557. package/runtime/vendor/plugins/open-design/_official/examples/guizang-ppt/references/components.md +0 -363
  3558. package/runtime/vendor/plugins/open-design/_official/examples/guizang-ppt/references/layouts.md +0 -630
  3559. package/runtime/vendor/plugins/open-design/_official/examples/guizang-ppt/references/styles.md +0 -195
  3560. package/runtime/vendor/plugins/open-design/_official/examples/guizang-ppt/references/themes.md +0 -122
  3561. package/runtime/vendor/plugins/open-design/_official/examples/hatch-pet/SKILL.md +0 -355
  3562. package/runtime/vendor/plugins/open-design/_official/examples/hatch-pet/open-design.json +0 -117
  3563. package/runtime/vendor/plugins/open-design/_official/examples/hatch-pet/references/animation-rows.md +0 -29
  3564. package/runtime/vendor/plugins/open-design/_official/examples/hatch-pet/references/codex-pet-contract.md +0 -35
  3565. package/runtime/vendor/plugins/open-design/_official/examples/hatch-pet/references/qa-rubric.md +0 -60
  3566. package/runtime/vendor/plugins/open-design/_official/examples/hps-academic-paper/LICENSE +0 -21
  3567. package/runtime/vendor/plugins/open-design/_official/examples/hps-academic-paper/SKILL.md +0 -167
  3568. package/runtime/vendor/plugins/open-design/_official/examples/hps-academic-paper/example.html +0 -455
  3569. package/runtime/vendor/plugins/open-design/_official/examples/hps-academic-paper/open-design.json +0 -143
  3570. package/runtime/vendor/plugins/open-design/_official/examples/hps-bauhaus/LICENSE +0 -21
  3571. package/runtime/vendor/plugins/open-design/_official/examples/hps-bauhaus/SKILL.md +0 -172
  3572. package/runtime/vendor/plugins/open-design/_official/examples/hps-bauhaus/example.html +0 -418
  3573. package/runtime/vendor/plugins/open-design/_official/examples/hps-bauhaus/open-design.json +0 -142
  3574. package/runtime/vendor/plugins/open-design/_official/examples/hps-memphis-pop/LICENSE +0 -21
  3575. package/runtime/vendor/plugins/open-design/_official/examples/hps-memphis-pop/SKILL.md +0 -162
  3576. package/runtime/vendor/plugins/open-design/_official/examples/hps-memphis-pop/example.html +0 -415
  3577. package/runtime/vendor/plugins/open-design/_official/examples/hps-memphis-pop/open-design.json +0 -145
  3578. package/runtime/vendor/plugins/open-design/_official/examples/hps-retro-tv/LICENSE +0 -21
  3579. package/runtime/vendor/plugins/open-design/_official/examples/hps-retro-tv/SKILL.md +0 -180
  3580. package/runtime/vendor/plugins/open-design/_official/examples/hps-retro-tv/example.html +0 -429
  3581. package/runtime/vendor/plugins/open-design/_official/examples/hps-retro-tv/open-design.json +0 -145
  3582. package/runtime/vendor/plugins/open-design/_official/examples/hps-true-blueprint/LICENSE +0 -21
  3583. package/runtime/vendor/plugins/open-design/_official/examples/hps-true-blueprint/SKILL.md +0 -175
  3584. package/runtime/vendor/plugins/open-design/_official/examples/hps-true-blueprint/example.html +0 -450
  3585. package/runtime/vendor/plugins/open-design/_official/examples/hps-true-blueprint/open-design.json +0 -143
  3586. package/runtime/vendor/plugins/open-design/_official/examples/hps-y2k-chrome/LICENSE +0 -21
  3587. package/runtime/vendor/plugins/open-design/_official/examples/hps-y2k-chrome/SKILL.md +0 -162
  3588. package/runtime/vendor/plugins/open-design/_official/examples/hps-y2k-chrome/example.html +0 -437
  3589. package/runtime/vendor/plugins/open-design/_official/examples/hps-y2k-chrome/open-design.json +0 -145
  3590. package/runtime/vendor/plugins/open-design/_official/examples/hr-onboarding/SKILL.md +0 -52
  3591. package/runtime/vendor/plugins/open-design/_official/examples/hr-onboarding/example.html +0 -219
  3592. package/runtime/vendor/plugins/open-design/_official/examples/hr-onboarding/open-design.json +0 -128
  3593. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/SKILL.md +0 -251
  3594. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/assets/base.css +0 -150
  3595. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/assets/fonts.css +0 -9
  3596. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/assets/runtime.js +0 -960
  3597. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/open-design.json +0 -129
  3598. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/references/animations.md +0 -147
  3599. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/references/authoring-guide.md +0 -141
  3600. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/references/full-decks.md +0 -98
  3601. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/references/layouts.md +0 -103
  3602. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/references/presenter-mode.md +0 -240
  3603. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt/references/themes.md +0 -107
  3604. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-course-module/SKILL.md +0 -79
  3605. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-course-module/example.html +0 -308
  3606. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-course-module/open-design.json +0 -122
  3607. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-graphify-dark-graph/SKILL.md +0 -78
  3608. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-graphify-dark-graph/example.html +0 -361
  3609. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-graphify-dark-graph/open-design.json +0 -122
  3610. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-hermes-cyber-terminal/SKILL.md +0 -78
  3611. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-hermes-cyber-terminal/example.html +0 -414
  3612. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-hermes-cyber-terminal/open-design.json +0 -122
  3613. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-knowledge-arch-blueprint/SKILL.md +0 -78
  3614. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-knowledge-arch-blueprint/example.html +0 -409
  3615. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-knowledge-arch-blueprint/open-design.json +0 -122
  3616. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-obsidian-claude-gradient/SKILL.md +0 -78
  3617. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-obsidian-claude-gradient/example.html +0 -379
  3618. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-obsidian-claude-gradient/open-design.json +0 -122
  3619. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-pitch-deck/SKILL.md +0 -79
  3620. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-pitch-deck/example.html +0 -296
  3621. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-pitch-deck/open-design.json +0 -146
  3622. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-presenter-mode-reveal/SKILL.md +0 -79
  3623. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-presenter-mode-reveal/example.html +0 -756
  3624. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-presenter-mode-reveal/open-design.json +0 -120
  3625. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-product-launch/SKILL.md +0 -78
  3626. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-product-launch/example.html +0 -263
  3627. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-product-launch/open-design.json +0 -122
  3628. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-taste-brutalist/SKILL.md +0 -70
  3629. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-taste-brutalist/example.html +0 -774
  3630. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-taste-brutalist/open-design.json +0 -119
  3631. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-taste-editorial/SKILL.md +0 -60
  3632. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-taste-editorial/example.html +0 -490
  3633. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-taste-editorial/open-design.json +0 -119
  3634. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-tech-sharing/SKILL.md +0 -78
  3635. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-tech-sharing/example.html +0 -298
  3636. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-tech-sharing/open-design.json +0 -122
  3637. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-testing-safety-alert/SKILL.md +0 -79
  3638. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-testing-safety-alert/example.html +0 -408
  3639. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-testing-safety-alert/open-design.json +0 -122
  3640. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-weekly-report/SKILL.md +0 -78
  3641. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-weekly-report/example.html +0 -272
  3642. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-weekly-report/open-design.json +0 -122
  3643. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-xhs-pastel-card/SKILL.md +0 -79
  3644. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-xhs-pastel-card/example.html +0 -409
  3645. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-xhs-pastel-card/open-design.json +0 -121
  3646. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-xhs-white-editorial/SKILL.md +0 -78
  3647. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-xhs-white-editorial/example.html +0 -427
  3648. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-xhs-white-editorial/open-design.json +0 -120
  3649. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-8-bit-orbit/SKILL.md +0 -93
  3650. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-8-bit-orbit/example.html +0 -1657
  3651. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-8-bit-orbit/open-design.json +0 -127
  3652. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-biennale-yellow/SKILL.md +0 -93
  3653. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-biennale-yellow/example.html +0 -855
  3654. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-biennale-yellow/open-design.json +0 -127
  3655. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-block-frame/SKILL.md +0 -93
  3656. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-block-frame/example.html +0 -1460
  3657. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-block-frame/open-design.json +0 -128
  3658. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-blue-professional/SKILL.md +0 -93
  3659. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-blue-professional/example.html +0 -1410
  3660. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-blue-professional/open-design.json +0 -127
  3661. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-bold-poster/SKILL.md +0 -93
  3662. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-bold-poster/example.html +0 -884
  3663. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-bold-poster/open-design.json +0 -127
  3664. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-broadside/SKILL.md +0 -92
  3665. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-broadside/example.html +0 -2189
  3666. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-broadside/open-design.json +0 -127
  3667. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-capsule/SKILL.md +0 -92
  3668. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-capsule/example.html +0 -1417
  3669. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-capsule/open-design.json +0 -127
  3670. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-cartesian/SKILL.md +0 -92
  3671. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-cartesian/example.html +0 -1157
  3672. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-cartesian/open-design.json +0 -127
  3673. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-cobalt-grid/SKILL.md +0 -93
  3674. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-cobalt-grid/example.html +0 -1207
  3675. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-cobalt-grid/open-design.json +0 -127
  3676. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-coral/SKILL.md +0 -92
  3677. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-coral/example.html +0 -1628
  3678. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-coral/open-design.json +0 -127
  3679. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-creative-mode/SKILL.md +0 -99
  3680. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-creative-mode/assets/deck-stage.js +0 -619
  3681. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-creative-mode/example.html +0 -640
  3682. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-creative-mode/open-design.json +0 -128
  3683. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-daisy-days/SKILL.md +0 -93
  3684. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-daisy-days/example.html +0 -497
  3685. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-daisy-days/open-design.json +0 -127
  3686. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-editorial-tri-tone/SKILL.md +0 -98
  3687. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-editorial-tri-tone/assets/deck-stage.js +0 -619
  3688. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-editorial-tri-tone/example.html +0 -753
  3689. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-editorial-tri-tone/open-design.json +0 -127
  3690. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-grove/SKILL.md +0 -92
  3691. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-grove/example.html +0 -1738
  3692. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-grove/open-design.json +0 -127
  3693. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-long-table/SKILL.md +0 -92
  3694. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-long-table/example.html +0 -1207
  3695. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-long-table/open-design.json +0 -126
  3696. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-mat/SKILL.md +0 -92
  3697. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-mat/example.html +0 -1404
  3698. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-mat/open-design.json +0 -127
  3699. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-monochrome/SKILL.md +0 -91
  3700. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-monochrome/example.html +0 -2429
  3701. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-monochrome/open-design.json +0 -126
  3702. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-neo-grid-bold/SKILL.md +0 -99
  3703. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-neo-grid-bold/assets/deck-stage.js +0 -619
  3704. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-neo-grid-bold/example.html +0 -827
  3705. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-neo-grid-bold/open-design.json +0 -128
  3706. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-peoples-platform/SKILL.md +0 -99
  3707. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-peoples-platform/assets/deck-stage.js +0 -619
  3708. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-peoples-platform/example.html +0 -827
  3709. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-peoples-platform/open-design.json +0 -129
  3710. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-pin-and-paper/SKILL.md +0 -100
  3711. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-pin-and-paper/assets/deck-stage.js +0 -619
  3712. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-pin-and-paper/assets/styles.css +0 -668
  3713. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-pin-and-paper/example.html +0 -443
  3714. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-pin-and-paper/open-design.json +0 -130
  3715. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-pink-script/SKILL.md +0 -99
  3716. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-pink-script/assets/deck-stage.js +0 -619
  3717. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-pink-script/example.html +0 -607
  3718. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-pink-script/open-design.json +0 -129
  3719. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-playful/SKILL.md +0 -92
  3720. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-playful/example.html +0 -1442
  3721. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-playful/open-design.json +0 -127
  3722. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-raw-grid/SKILL.md +0 -93
  3723. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-raw-grid/example.html +0 -1174
  3724. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-raw-grid/open-design.json +0 -127
  3725. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-retro-windows/SKILL.md +0 -92
  3726. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-retro-windows/example.html +0 -1342
  3727. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-retro-windows/open-design.json +0 -126
  3728. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-retro-zine/SKILL.md +0 -93
  3729. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-retro-zine/example.html +0 -1101
  3730. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-retro-zine/open-design.json +0 -127
  3731. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-sakura-chroma/SKILL.md +0 -92
  3732. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-sakura-chroma/example.html +0 -1378
  3733. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-sakura-chroma/open-design.json +0 -126
  3734. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-scatterbrain/SKILL.md +0 -92
  3735. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-scatterbrain/example.html +0 -1339
  3736. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-scatterbrain/open-design.json +0 -127
  3737. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-signal/SKILL.md +0 -92
  3738. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-signal/example.html +0 -2635
  3739. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-signal/open-design.json +0 -127
  3740. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-soft-editorial/SKILL.md +0 -98
  3741. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-soft-editorial/assets/deck-stage.js +0 -619
  3742. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-soft-editorial/example.html +0 -1155
  3743. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-soft-editorial/open-design.json +0 -127
  3744. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-stencil-tablet/SKILL.md +0 -99
  3745. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-stencil-tablet/assets/deck-stage.js +0 -619
  3746. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-stencil-tablet/example.html +0 -901
  3747. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-stencil-tablet/open-design.json +0 -128
  3748. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-studio/SKILL.md +0 -92
  3749. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-studio/example.html +0 -1687
  3750. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-studio/open-design.json +0 -127
  3751. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-vellum/SKILL.md +0 -91
  3752. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-vellum/example.html +0 -1167
  3753. package/runtime/vendor/plugins/open-design/_official/examples/html-ppt-zhangzara-vellum/open-design.json +0 -126
  3754. package/runtime/vendor/plugins/open-design/_official/examples/huashu-annual-letter/LICENSE +0 -21
  3755. package/runtime/vendor/plugins/open-design/_official/examples/huashu-annual-letter/SKILL.md +0 -165
  3756. package/runtime/vendor/plugins/open-design/_official/examples/huashu-annual-letter/example.html +0 -533
  3757. package/runtime/vendor/plugins/open-design/_official/examples/huashu-annual-letter/open-design.json +0 -146
  3758. package/runtime/vendor/plugins/open-design/_official/examples/huashu-bento-insight/LICENSE +0 -21
  3759. package/runtime/vendor/plugins/open-design/_official/examples/huashu-bento-insight/SKILL.md +0 -187
  3760. package/runtime/vendor/plugins/open-design/_official/examples/huashu-bento-insight/example.html +0 -856
  3761. package/runtime/vendor/plugins/open-design/_official/examples/huashu-bento-insight/open-design.json +0 -148
  3762. package/runtime/vendor/plugins/open-design/_official/examples/huashu-golden-circle/LICENSE +0 -21
  3763. package/runtime/vendor/plugins/open-design/_official/examples/huashu-golden-circle/SKILL.md +0 -185
  3764. package/runtime/vendor/plugins/open-design/_official/examples/huashu-golden-circle/example.html +0 -983
  3765. package/runtime/vendor/plugins/open-design/_official/examples/huashu-golden-circle/open-design.json +0 -147
  3766. package/runtime/vendor/plugins/open-design/_official/examples/huashu-keynote-black/LICENSE +0 -21
  3767. package/runtime/vendor/plugins/open-design/_official/examples/huashu-keynote-black/SKILL.md +0 -180
  3768. package/runtime/vendor/plugins/open-design/_official/examples/huashu-keynote-black/example.html +0 -498
  3769. package/runtime/vendor/plugins/open-design/_official/examples/huashu-keynote-black/open-design.json +0 -158
  3770. package/runtime/vendor/plugins/open-design/_official/examples/huashu-luxe-whitespace/LICENSE +0 -21
  3771. package/runtime/vendor/plugins/open-design/_official/examples/huashu-luxe-whitespace/SKILL.md +0 -179
  3772. package/runtime/vendor/plugins/open-design/_official/examples/huashu-luxe-whitespace/example.html +0 -848
  3773. package/runtime/vendor/plugins/open-design/_official/examples/huashu-luxe-whitespace/open-design.json +0 -146
  3774. package/runtime/vendor/plugins/open-design/_official/examples/huashu-pentagram-grid/LICENSE +0 -21
  3775. package/runtime/vendor/plugins/open-design/_official/examples/huashu-pentagram-grid/SKILL.md +0 -171
  3776. package/runtime/vendor/plugins/open-design/_official/examples/huashu-pentagram-grid/example.html +0 -871
  3777. package/runtime/vendor/plugins/open-design/_official/examples/huashu-pentagram-grid/open-design.json +0 -146
  3778. package/runtime/vendor/plugins/open-design/_official/examples/huashu-slides/LICENSE +0 -21
  3779. package/runtime/vendor/plugins/open-design/_official/examples/huashu-slides/SKILL.md +0 -170
  3780. package/runtime/vendor/plugins/open-design/_official/examples/huashu-slides/example.html +0 -451
  3781. package/runtime/vendor/plugins/open-design/_official/examples/huashu-slides/open-design.json +0 -156
  3782. package/runtime/vendor/plugins/open-design/_official/examples/huashu-sparkline-arc/LICENSE +0 -21
  3783. package/runtime/vendor/plugins/open-design/_official/examples/huashu-sparkline-arc/SKILL.md +0 -179
  3784. package/runtime/vendor/plugins/open-design/_official/examples/huashu-sparkline-arc/example.html +0 -668
  3785. package/runtime/vendor/plugins/open-design/_official/examples/huashu-sparkline-arc/open-design.json +0 -147
  3786. package/runtime/vendor/plugins/open-design/_official/examples/huashu-takram-soft-tech/LICENSE +0 -21
  3787. package/runtime/vendor/plugins/open-design/_official/examples/huashu-takram-soft-tech/SKILL.md +0 -190
  3788. package/runtime/vendor/plugins/open-design/_official/examples/huashu-takram-soft-tech/example.html +0 -1001
  3789. package/runtime/vendor/plugins/open-design/_official/examples/huashu-takram-soft-tech/open-design.json +0 -147
  3790. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/SKILL.md +0 -500
  3791. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/open-design.json +0 -183
  3792. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/audio-reactive.md +0 -76
  3793. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/captions.md +0 -132
  3794. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/css-patterns.md +0 -373
  3795. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/dynamic-techniques.md +0 -90
  3796. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/html-in-canvas.md +0 -146
  3797. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/motion-principles.md +0 -69
  3798. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/transcript-guide.md +0 -151
  3799. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/transitions.md +0 -112
  3800. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/tts.md +0 -75
  3801. package/runtime/vendor/plugins/open-design/_official/examples/hyperframes/references/typography.md +0 -175
  3802. package/runtime/vendor/plugins/open-design/_official/examples/ib-pitch-book/SKILL.md +0 -161
  3803. package/runtime/vendor/plugins/open-design/_official/examples/ib-pitch-book/assets/template.html +0 -436
  3804. package/runtime/vendor/plugins/open-design/_official/examples/ib-pitch-book/example.html +0 -1184
  3805. package/runtime/vendor/plugins/open-design/_official/examples/ib-pitch-book/open-design.json +0 -134
  3806. package/runtime/vendor/plugins/open-design/_official/examples/ib-pitch-book/references/attribution.md +0 -35
  3807. package/runtime/vendor/plugins/open-design/_official/examples/ib-pitch-book/references/checklist.md +0 -39
  3808. package/runtime/vendor/plugins/open-design/_official/examples/ib-pitch-book/references/compliance.md +0 -60
  3809. package/runtime/vendor/plugins/open-design/_official/examples/ib-pitch-book/references/conventions.md +0 -36
  3810. package/runtime/vendor/plugins/open-design/_official/examples/image-poster/SKILL.md +0 -104
  3811. package/runtime/vendor/plugins/open-design/_official/examples/image-poster/example.html +0 -113
  3812. package/runtime/vendor/plugins/open-design/_official/examples/image-poster/open-design.json +0 -120
  3813. package/runtime/vendor/plugins/open-design/_official/examples/innovation/SKILL.md +0 -159
  3814. package/runtime/vendor/plugins/open-design/_official/examples/innovation/example.html +0 -415
  3815. package/runtime/vendor/plugins/open-design/_official/examples/innovation/open-design.json +0 -122
  3816. package/runtime/vendor/plugins/open-design/_official/examples/invoice/SKILL.md +0 -48
  3817. package/runtime/vendor/plugins/open-design/_official/examples/invoice/example.html +0 -214
  3818. package/runtime/vendor/plugins/open-design/_official/examples/invoice/open-design.json +0 -125
  3819. package/runtime/vendor/plugins/open-design/_official/examples/kami-deck/SKILL.md +0 -196
  3820. package/runtime/vendor/plugins/open-design/_official/examples/kami-deck/example.html +0 -1140
  3821. package/runtime/vendor/plugins/open-design/_official/examples/kami-deck/open-design.json +0 -126
  3822. package/runtime/vendor/plugins/open-design/_official/examples/kami-landing/SKILL.md +0 -234
  3823. package/runtime/vendor/plugins/open-design/_official/examples/kami-landing/example.html +0 -673
  3824. package/runtime/vendor/plugins/open-design/_official/examples/kami-landing/open-design.json +0 -130
  3825. package/runtime/vendor/plugins/open-design/_official/examples/kanban-board/SKILL.md +0 -50
  3826. package/runtime/vendor/plugins/open-design/_official/examples/kanban-board/example.html +0 -270
  3827. package/runtime/vendor/plugins/open-design/_official/examples/kanban-board/open-design.json +0 -131
  3828. package/runtime/vendor/plugins/open-design/_official/examples/last30days/SKILL.md +0 -142
  3829. package/runtime/vendor/plugins/open-design/_official/examples/last30days/open-design.json +0 -122
  3830. package/runtime/vendor/plugins/open-design/_official/examples/last30days/references/save-html-brief.md +0 -50
  3831. package/runtime/vendor/plugins/open-design/_official/examples/layered-depth/SKILL.md +0 -121
  3832. package/runtime/vendor/plugins/open-design/_official/examples/layered-depth/example.html +0 -511
  3833. package/runtime/vendor/plugins/open-design/_official/examples/layered-depth/open-design.json +0 -122
  3834. package/runtime/vendor/plugins/open-design/_official/examples/liquid-glass-agency/SKILL.md +0 -165
  3835. package/runtime/vendor/plugins/open-design/_official/examples/liquid-glass-agency/example.html +0 -548
  3836. package/runtime/vendor/plugins/open-design/_official/examples/liquid-glass-agency/open-design.json +0 -122
  3837. package/runtime/vendor/plugins/open-design/_official/examples/live-artifact/SKILL.md +0 -136
  3838. package/runtime/vendor/plugins/open-design/_official/examples/live-artifact/open-design.json +0 -122
  3839. package/runtime/vendor/plugins/open-design/_official/examples/live-artifact/references/artifact-schema.md +0 -99
  3840. package/runtime/vendor/plugins/open-design/_official/examples/live-artifact/references/connector-policy.md +0 -119
  3841. package/runtime/vendor/plugins/open-design/_official/examples/live-artifact/references/refresh-contract.md +0 -78
  3842. package/runtime/vendor/plugins/open-design/_official/examples/live-dashboard/SKILL.md +0 -203
  3843. package/runtime/vendor/plugins/open-design/_official/examples/live-dashboard/assets/template.html +0 -643
  3844. package/runtime/vendor/plugins/open-design/_official/examples/live-dashboard/example.html +0 -946
  3845. package/runtime/vendor/plugins/open-design/_official/examples/live-dashboard/open-design.json +0 -199
  3846. package/runtime/vendor/plugins/open-design/_official/examples/live-dashboard/references/checklist.md +0 -83
  3847. package/runtime/vendor/plugins/open-design/_official/examples/live-dashboard/references/components.md +0 -212
  3848. package/runtime/vendor/plugins/open-design/_official/examples/live-dashboard/references/connectors.md +0 -173
  3849. package/runtime/vendor/plugins/open-design/_official/examples/live-dashboard/references/layouts.md +0 -92
  3850. package/runtime/vendor/plugins/open-design/_official/examples/luxury-botanical/SKILL.md +0 -123
  3851. package/runtime/vendor/plugins/open-design/_official/examples/luxury-botanical/example.html +0 -695
  3852. package/runtime/vendor/plugins/open-design/_official/examples/luxury-botanical/open-design.json +0 -122
  3853. package/runtime/vendor/plugins/open-design/_official/examples/magazine-poster/SKILL.md +0 -88
  3854. package/runtime/vendor/plugins/open-design/_official/examples/magazine-poster/example.html +0 -207
  3855. package/runtime/vendor/plugins/open-design/_official/examples/magazine-poster/open-design.json +0 -130
  3856. package/runtime/vendor/plugins/open-design/_official/examples/meeting-notes/SKILL.md +0 -47
  3857. package/runtime/vendor/plugins/open-design/_official/examples/meeting-notes/example.html +0 -234
  3858. package/runtime/vendor/plugins/open-design/_official/examples/meeting-notes/open-design.json +0 -126
  3859. package/runtime/vendor/plugins/open-design/_official/examples/mindloop-landing/SKILL.md +0 -161
  3860. package/runtime/vendor/plugins/open-design/_official/examples/mindloop-landing/example.html +0 -396
  3861. package/runtime/vendor/plugins/open-design/_official/examples/mindloop-landing/open-design.json +0 -122
  3862. package/runtime/vendor/plugins/open-design/_official/examples/mobile-app/SKILL.md +0 -102
  3863. package/runtime/vendor/plugins/open-design/_official/examples/mobile-app/assets/template.html +0 -442
  3864. package/runtime/vendor/plugins/open-design/_official/examples/mobile-app/example.html +0 -92
  3865. package/runtime/vendor/plugins/open-design/_official/examples/mobile-app/open-design.json +0 -136
  3866. package/runtime/vendor/plugins/open-design/_official/examples/mobile-app/references/checklist.md +0 -46
  3867. package/runtime/vendor/plugins/open-design/_official/examples/mobile-app/references/layouts.md +0 -312
  3868. package/runtime/vendor/plugins/open-design/_official/examples/mobile-onboarding/SKILL.md +0 -54
  3869. package/runtime/vendor/plugins/open-design/_official/examples/mobile-onboarding/example.html +0 -206
  3870. package/runtime/vendor/plugins/open-design/_official/examples/mobile-onboarding/open-design.json +0 -134
  3871. package/runtime/vendor/plugins/open-design/_official/examples/mockup-device-3d/SKILL.md +0 -63
  3872. package/runtime/vendor/plugins/open-design/_official/examples/mockup-device-3d/example.html +0 -193
  3873. package/runtime/vendor/plugins/open-design/_official/examples/mockup-device-3d/open-design.json +0 -127
  3874. package/runtime/vendor/plugins/open-design/_official/examples/motion-frames/SKILL.md +0 -90
  3875. package/runtime/vendor/plugins/open-design/_official/examples/motion-frames/example.html +0 -221
  3876. package/runtime/vendor/plugins/open-design/_official/examples/motion-frames/open-design.json +0 -130
  3877. package/runtime/vendor/plugins/open-design/_official/examples/mythic-naturecore/SKILL.md +0 -117
  3878. package/runtime/vendor/plugins/open-design/_official/examples/mythic-naturecore/example.html +0 -387
  3879. package/runtime/vendor/plugins/open-design/_official/examples/mythic-naturecore/open-design.json +0 -122
  3880. package/runtime/vendor/plugins/open-design/_official/examples/nimbus-grid/SKILL.md +0 -147
  3881. package/runtime/vendor/plugins/open-design/_official/examples/nimbus-grid/example.html +0 -1096
  3882. package/runtime/vendor/plugins/open-design/_official/examples/nimbus-grid/open-design.json +0 -122
  3883. package/runtime/vendor/plugins/open-design/_official/examples/od-plugin-contribute-open-design/SKILL.md +0 -27
  3884. package/runtime/vendor/plugins/open-design/_official/examples/od-plugin-contribute-open-design/open-design.json +0 -129
  3885. package/runtime/vendor/plugins/open-design/_official/examples/od-plugin-publish-github/SKILL.md +0 -27
  3886. package/runtime/vendor/plugins/open-design/_official/examples/od-plugin-publish-github/open-design.json +0 -129
  3887. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/SKILL.md +0 -321
  3888. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/about.png +0 -0
  3889. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/capabilities.png +0 -0
  3890. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/cta.png +0 -0
  3891. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/hero.png +0 -0
  3892. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/image-manifest.json +0 -168
  3893. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/imagegen-prompts.md +0 -246
  3894. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/lab-1.png +0 -0
  3895. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/lab-2.png +0 -0
  3896. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/lab-3.png +0 -0
  3897. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/lab-4.png +0 -0
  3898. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/lab-5.png +0 -0
  3899. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/method-1.png +0 -0
  3900. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/method-2.png +0 -0
  3901. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/method-3.png +0 -0
  3902. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/method-4.png +0 -0
  3903. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/testimonial.png +0 -0
  3904. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/work-1.png +0 -0
  3905. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/assets/work-2.png +0 -0
  3906. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/example.html +0 -2645
  3907. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing/open-design.json +0 -148
  3908. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing-deck/SKILL.md +0 -222
  3909. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing-deck/example.html +0 -1171
  3910. package/runtime/vendor/plugins/open-design/_official/examples/open-design-landing-deck/open-design.json +0 -131
  3911. package/runtime/vendor/plugins/open-design/_official/examples/orbis-nft/SKILL.md +0 -140
  3912. package/runtime/vendor/plugins/open-design/_official/examples/orbis-nft/example.html +0 -473
  3913. package/runtime/vendor/plugins/open-design/_official/examples/orbis-nft/open-design.json +0 -122
  3914. package/runtime/vendor/plugins/open-design/_official/examples/orbit-general/SKILL.md +0 -196
  3915. package/runtime/vendor/plugins/open-design/_official/examples/orbit-general/example.html +0 -1302
  3916. package/runtime/vendor/plugins/open-design/_official/examples/orbit-general/open-design.json +0 -121
  3917. package/runtime/vendor/plugins/open-design/_official/examples/orbit-github/SKILL.md +0 -160
  3918. package/runtime/vendor/plugins/open-design/_official/examples/orbit-github/example.html +0 -770
  3919. package/runtime/vendor/plugins/open-design/_official/examples/orbit-github/open-design.json +0 -123
  3920. package/runtime/vendor/plugins/open-design/_official/examples/orbit-gmail/SKILL.md +0 -163
  3921. package/runtime/vendor/plugins/open-design/_official/examples/orbit-gmail/example.html +0 -643
  3922. package/runtime/vendor/plugins/open-design/_official/examples/orbit-gmail/open-design.json +0 -123
  3923. package/runtime/vendor/plugins/open-design/_official/examples/orbit-linear/SKILL.md +0 -170
  3924. package/runtime/vendor/plugins/open-design/_official/examples/orbit-linear/example.html +0 -571
  3925. package/runtime/vendor/plugins/open-design/_official/examples/orbit-linear/open-design.json +0 -123
  3926. package/runtime/vendor/plugins/open-design/_official/examples/orbit-notion/SKILL.md +0 -179
  3927. package/runtime/vendor/plugins/open-design/_official/examples/orbit-notion/example.html +0 -529
  3928. package/runtime/vendor/plugins/open-design/_official/examples/orbit-notion/open-design.json +0 -123
  3929. package/runtime/vendor/plugins/open-design/_official/examples/pm-spec/SKILL.md +0 -52
  3930. package/runtime/vendor/plugins/open-design/_official/examples/pm-spec/example.html +0 -248
  3931. package/runtime/vendor/plugins/open-design/_official/examples/pm-spec/open-design.json +0 -127
  3932. package/runtime/vendor/plugins/open-design/_official/examples/portfolio-cosmic/SKILL.md +0 -124
  3933. package/runtime/vendor/plugins/open-design/_official/examples/portfolio-cosmic/example.html +0 -587
  3934. package/runtime/vendor/plugins/open-design/_official/examples/portfolio-cosmic/open-design.json +0 -122
  3935. package/runtime/vendor/plugins/open-design/_official/examples/poster-hero/SKILL.md +0 -42
  3936. package/runtime/vendor/plugins/open-design/_official/examples/poster-hero/example.html +0 -88
  3937. package/runtime/vendor/plugins/open-design/_official/examples/poster-hero/open-design.json +0 -124
  3938. package/runtime/vendor/plugins/open-design/_official/examples/ppt-keynote/SKILL.md +0 -43
  3939. package/runtime/vendor/plugins/open-design/_official/examples/ppt-keynote/example.html +0 -198
  3940. package/runtime/vendor/plugins/open-design/_official/examples/ppt-keynote/open-design.json +0 -123
  3941. package/runtime/vendor/plugins/open-design/_official/examples/pptx-html-fidelity-audit/SKILL.md +0 -254
  3942. package/runtime/vendor/plugins/open-design/_official/examples/pptx-html-fidelity-audit/open-design.json +0 -122
  3943. package/runtime/vendor/plugins/open-design/_official/examples/pptx-html-fidelity-audit/references/audit-table-template.md +0 -58
  3944. package/runtime/vendor/plugins/open-design/_official/examples/pptx-html-fidelity-audit/references/font-discipline.md +0 -363
  3945. package/runtime/vendor/plugins/open-design/_official/examples/pptx-html-fidelity-audit/references/layout-discipline.md +0 -371
  3946. package/runtime/vendor/plugins/open-design/_official/examples/pricing-page/SKILL.md +0 -79
  3947. package/runtime/vendor/plugins/open-design/_official/examples/pricing-page/example.html +0 -127
  3948. package/runtime/vendor/plugins/open-design/_official/examples/pricing-page/open-design.json +0 -130
  3949. package/runtime/vendor/plugins/open-design/_official/examples/replit-deck/SKILL.md +0 -233
  3950. package/runtime/vendor/plugins/open-design/_official/examples/replit-deck/assets/template.html +0 -488
  3951. package/runtime/vendor/plugins/open-design/_official/examples/replit-deck/open-design.json +0 -148
  3952. package/runtime/vendor/plugins/open-design/_official/examples/replit-deck/references/checklist.md +0 -112
  3953. package/runtime/vendor/plugins/open-design/_official/examples/replit-deck/references/components.md +0 -143
  3954. package/runtime/vendor/plugins/open-design/_official/examples/replit-deck/references/layouts.md +0 -457
  3955. package/runtime/vendor/plugins/open-design/_official/examples/replit-deck/references/themes.md +0 -326
  3956. package/runtime/vendor/plugins/open-design/_official/examples/resume-modern/SKILL.md +0 -43
  3957. package/runtime/vendor/plugins/open-design/_official/examples/resume-modern/example.html +0 -122
  3958. package/runtime/vendor/plugins/open-design/_official/examples/resume-modern/open-design.json +0 -125
  3959. package/runtime/vendor/plugins/open-design/_official/examples/saas-landing/SKILL.md +0 -124
  3960. package/runtime/vendor/plugins/open-design/_official/examples/saas-landing/example.html +0 -153
  3961. package/runtime/vendor/plugins/open-design/_official/examples/saas-landing/open-design.json +0 -154
  3962. package/runtime/vendor/plugins/open-design/_official/examples/simple-deck/SKILL.md +0 -120
  3963. package/runtime/vendor/plugins/open-design/_official/examples/simple-deck/assets/template.html +0 -393
  3964. package/runtime/vendor/plugins/open-design/_official/examples/simple-deck/example.html +0 -269
  3965. package/runtime/vendor/plugins/open-design/_official/examples/simple-deck/open-design.json +0 -195
  3966. package/runtime/vendor/plugins/open-design/_official/examples/simple-deck/references/checklist.md +0 -55
  3967. package/runtime/vendor/plugins/open-design/_official/examples/simple-deck/references/layouts.md +0 -201
  3968. package/runtime/vendor/plugins/open-design/_official/examples/skyelite-private-jets/SKILL.md +0 -95
  3969. package/runtime/vendor/plugins/open-design/_official/examples/skyelite-private-jets/example.html +0 -284
  3970. package/runtime/vendor/plugins/open-design/_official/examples/skyelite-private-jets/open-design.json +0 -122
  3971. package/runtime/vendor/plugins/open-design/_official/examples/social-carousel/SKILL.md +0 -92
  3972. package/runtime/vendor/plugins/open-design/_official/examples/social-carousel/example.html +0 -219
  3973. package/runtime/vendor/plugins/open-design/_official/examples/social-carousel/open-design.json +0 -128
  3974. package/runtime/vendor/plugins/open-design/_official/examples/social-media-dashboard/SKILL.md +0 -118
  3975. package/runtime/vendor/plugins/open-design/_official/examples/social-media-dashboard/example.html +0 -1534
  3976. package/runtime/vendor/plugins/open-design/_official/examples/social-media-dashboard/open-design.json +0 -127
  3977. package/runtime/vendor/plugins/open-design/_official/examples/social-media-matrix-tracker-template/SKILL.md +0 -107
  3978. package/runtime/vendor/plugins/open-design/_official/examples/social-media-matrix-tracker-template/assets/template.html +0 -1258
  3979. package/runtime/vendor/plugins/open-design/_official/examples/social-media-matrix-tracker-template/example.html +0 -1258
  3980. package/runtime/vendor/plugins/open-design/_official/examples/social-media-matrix-tracker-template/open-design.json +0 -134
  3981. package/runtime/vendor/plugins/open-design/_official/examples/social-media-matrix-tracker-template/references/checklist.md +0 -25
  3982. package/runtime/vendor/plugins/open-design/_official/examples/social-reddit-card/SKILL.md +0 -68
  3983. package/runtime/vendor/plugins/open-design/_official/examples/social-reddit-card/example.html +0 -56
  3984. package/runtime/vendor/plugins/open-design/_official/examples/social-reddit-card/open-design.json +0 -127
  3985. package/runtime/vendor/plugins/open-design/_official/examples/social-spotify-card/SKILL.md +0 -67
  3986. package/runtime/vendor/plugins/open-design/_official/examples/social-spotify-card/example.html +0 -70
  3987. package/runtime/vendor/plugins/open-design/_official/examples/social-spotify-card/open-design.json +0 -127
  3988. package/runtime/vendor/plugins/open-design/_official/examples/social-x-post-card/SKILL.md +0 -65
  3989. package/runtime/vendor/plugins/open-design/_official/examples/social-x-post-card/example.html +0 -53
  3990. package/runtime/vendor/plugins/open-design/_official/examples/social-x-post-card/open-design.json +0 -127
  3991. package/runtime/vendor/plugins/open-design/_official/examples/sprite-animation/SKILL.md +0 -95
  3992. package/runtime/vendor/plugins/open-design/_official/examples/sprite-animation/example.html +0 -271
  3993. package/runtime/vendor/plugins/open-design/_official/examples/sprite-animation/open-design.json +0 -129
  3994. package/runtime/vendor/plugins/open-design/_official/examples/stellar-launch/SKILL.md +0 -129
  3995. package/runtime/vendor/plugins/open-design/_official/examples/stellar-launch/example.html +0 -498
  3996. package/runtime/vendor/plugins/open-design/_official/examples/stellar-launch/open-design.json +0 -122
  3997. package/runtime/vendor/plugins/open-design/_official/examples/team-okrs/SKILL.md +0 -47
  3998. package/runtime/vendor/plugins/open-design/_official/examples/team-okrs/example.html +0 -207
  3999. package/runtime/vendor/plugins/open-design/_official/examples/team-okrs/open-design.json +0 -126
  4000. package/runtime/vendor/plugins/open-design/_official/examples/trading-analysis-dashboard-template/SKILL.md +0 -78
  4001. package/runtime/vendor/plugins/open-design/_official/examples/trading-analysis-dashboard-template/assets/template.html +0 -284
  4002. package/runtime/vendor/plugins/open-design/_official/examples/trading-analysis-dashboard-template/example.html +0 -22
  4003. package/runtime/vendor/plugins/open-design/_official/examples/trading-analysis-dashboard-template/open-design.json +0 -129
  4004. package/runtime/vendor/plugins/open-design/_official/examples/trading-analysis-dashboard-template/references/checklist.md +0 -32
  4005. package/runtime/vendor/plugins/open-design/_official/examples/tweaks/SKILL.md +0 -240
  4006. package/runtime/vendor/plugins/open-design/_official/examples/tweaks/assets/wrap.html +0 -437
  4007. package/runtime/vendor/plugins/open-design/_official/examples/tweaks/example.html +0 -750
  4008. package/runtime/vendor/plugins/open-design/_official/examples/tweaks/open-design.json +0 -127
  4009. package/runtime/vendor/plugins/open-design/_official/examples/ve-midnight-editorial/LICENSE +0 -21
  4010. package/runtime/vendor/plugins/open-design/_official/examples/ve-midnight-editorial/SKILL.md +0 -199
  4011. package/runtime/vendor/plugins/open-design/_official/examples/ve-midnight-editorial/example.html +0 -1150
  4012. package/runtime/vendor/plugins/open-design/_official/examples/ve-midnight-editorial/open-design.json +0 -148
  4013. package/runtime/vendor/plugins/open-design/_official/examples/ve-terminal-mono/LICENSE +0 -21
  4014. package/runtime/vendor/plugins/open-design/_official/examples/ve-terminal-mono/SKILL.md +0 -172
  4015. package/runtime/vendor/plugins/open-design/_official/examples/ve-terminal-mono/example.html +0 -948
  4016. package/runtime/vendor/plugins/open-design/_official/examples/ve-terminal-mono/open-design.json +0 -144
  4017. package/runtime/vendor/plugins/open-design/_official/examples/velar-luxury-real-estate/SKILL.md +0 -99
  4018. package/runtime/vendor/plugins/open-design/_official/examples/velar-luxury-real-estate/example.html +0 -377
  4019. package/runtime/vendor/plugins/open-design/_official/examples/velar-luxury-real-estate/open-design.json +0 -124
  4020. package/runtime/vendor/plugins/open-design/_official/examples/vfx-text-cursor/SKILL.md +0 -64
  4021. package/runtime/vendor/plugins/open-design/_official/examples/vfx-text-cursor/example.html +0 -65
  4022. package/runtime/vendor/plugins/open-design/_official/examples/vfx-text-cursor/open-design.json +0 -125
  4023. package/runtime/vendor/plugins/open-design/_official/examples/video-hyperframes/SKILL.md +0 -46
  4024. package/runtime/vendor/plugins/open-design/_official/examples/video-hyperframes/example.html +0 -140
  4025. package/runtime/vendor/plugins/open-design/_official/examples/video-hyperframes/open-design.json +0 -122
  4026. package/runtime/vendor/plugins/open-design/_official/examples/video-shortform/SKILL.md +0 -128
  4027. package/runtime/vendor/plugins/open-design/_official/examples/video-shortform/example.html +0 -90
  4028. package/runtime/vendor/plugins/open-design/_official/examples/video-shortform/open-design.json +0 -119
  4029. package/runtime/vendor/plugins/open-design/_official/examples/waitlist-page/SKILL.md +0 -229
  4030. package/runtime/vendor/plugins/open-design/_official/examples/waitlist-page/assets/template.html +0 -457
  4031. package/runtime/vendor/plugins/open-design/_official/examples/waitlist-page/example.html +0 -400
  4032. package/runtime/vendor/plugins/open-design/_official/examples/waitlist-page/open-design.json +0 -248
  4033. package/runtime/vendor/plugins/open-design/_official/examples/waitlist-page/references/checklist.md +0 -42
  4034. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype/SKILL.md +0 -103
  4035. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype/assets/template.html +0 -338
  4036. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype/example.html +0 -81
  4037. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype/open-design.json +0 -172
  4038. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype/references/checklist.md +0 -44
  4039. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype/references/layouts.md +0 -247
  4040. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype-taste-brutalist/SKILL.md +0 -61
  4041. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype-taste-brutalist/example.html +0 -449
  4042. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype-taste-brutalist/open-design.json +0 -120
  4043. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype-taste-editorial/SKILL.md +0 -60
  4044. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype-taste-editorial/example.html +0 -392
  4045. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype-taste-editorial/open-design.json +0 -119
  4046. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype-taste-soft/SKILL.md +0 -63
  4047. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype-taste-soft/example.html +0 -542
  4048. package/runtime/vendor/plugins/open-design/_official/examples/web-prototype-taste-soft/open-design.json +0 -119
  4049. package/runtime/vendor/plugins/open-design/_official/examples/weekly-update/SKILL.md +0 -50
  4050. package/runtime/vendor/plugins/open-design/_official/examples/weekly-update/example.html +0 -337
  4051. package/runtime/vendor/plugins/open-design/_official/examples/weekly-update/open-design.json +0 -124
  4052. package/runtime/vendor/plugins/open-design/_official/examples/wireframe-sketch/SKILL.md +0 -97
  4053. package/runtime/vendor/plugins/open-design/_official/examples/wireframe-sketch/example.html +0 -256
  4054. package/runtime/vendor/plugins/open-design/_official/examples/wireframe-sketch/open-design.json +0 -125
  4055. package/runtime/vendor/plugins/open-design/_official/examples/x-research/SKILL.md +0 -116
  4056. package/runtime/vendor/plugins/open-design/_official/examples/x-research/open-design.json +0 -121
  4057. package/runtime/vendor/plugins/open-design/_official/image-templates/3d-stone-staircase-evolution-infographic/open-design.json +0 -121
  4058. package/runtime/vendor/plugins/open-design/_official/image-templates/3d-stone-staircase-evolution-infographic/template.json +0 -20
  4059. package/runtime/vendor/plugins/open-design/_official/image-templates/anime-martial-arts-battle-illustration/open-design.json +0 -122
  4060. package/runtime/vendor/plugins/open-design/_official/image-templates/anime-martial-arts-battle-illustration/template.json +0 -21
  4061. package/runtime/vendor/plugins/open-design/_official/image-templates/e-commerce-live-stream-ui-mockup/open-design.json +0 -123
  4062. package/runtime/vendor/plugins/open-design/_official/image-templates/e-commerce-live-stream-ui-mockup/template.json +0 -22
  4063. package/runtime/vendor/plugins/open-design/_official/image-templates/game-screenshot-anime-fighting-game-captain-ryuuga-vs-kaze-renshin/open-design.json +0 -128
  4064. package/runtime/vendor/plugins/open-design/_official/image-templates/game-screenshot-anime-fighting-game-captain-ryuuga-vs-kaze-renshin/template.json +0 -28
  4065. package/runtime/vendor/plugins/open-design/_official/image-templates/game-screenshot-three-kingdoms-guanyu-slaying-yanliang/open-design.json +0 -128
  4066. package/runtime/vendor/plugins/open-design/_official/image-templates/game-screenshot-three-kingdoms-guanyu-slaying-yanliang/template.json +0 -28
  4067. package/runtime/vendor/plugins/open-design/_official/image-templates/game-screenshot-three-kingdoms-lyubu-yuanmen-archery/open-design.json +0 -127
  4068. package/runtime/vendor/plugins/open-design/_official/image-templates/game-screenshot-three-kingdoms-lyubu-yuanmen-archery/template.json +0 -27
  4069. package/runtime/vendor/plugins/open-design/_official/image-templates/game-screenshot-three-kingdoms-zhaoyun-cradle-escape/open-design.json +0 -129
  4070. package/runtime/vendor/plugins/open-design/_official/image-templates/game-screenshot-three-kingdoms-zhaoyun-cradle-escape/template.json +0 -29
  4071. package/runtime/vendor/plugins/open-design/_official/image-templates/game-ui-ancient-china-open-world-mmo-hud/open-design.json +0 -126
  4072. package/runtime/vendor/plugins/open-design/_official/image-templates/game-ui-ancient-china-open-world-mmo-hud/template.json +0 -26
  4073. package/runtime/vendor/plugins/open-design/_official/image-templates/illustrated-city-food-map/open-design.json +0 -122
  4074. package/runtime/vendor/plugins/open-design/_official/image-templates/illustrated-city-food-map/template.json +0 -21
  4075. package/runtime/vendor/plugins/open-design/_official/image-templates/illustration-crayon-kid-drawing-rework/open-design.json +0 -127
  4076. package/runtime/vendor/plugins/open-design/_official/image-templates/illustration-crayon-kid-drawing-rework/template.json +0 -27
  4077. package/runtime/vendor/plugins/open-design/_official/image-templates/infographic-otaku-dance-choreography-breakdown-gokurakujodo-16-panels/open-design.json +0 -129
  4078. package/runtime/vendor/plugins/open-design/_official/image-templates/infographic-otaku-dance-choreography-breakdown-gokurakujodo-16-panels/template.json +0 -29
  4079. package/runtime/vendor/plugins/open-design/_official/image-templates/momotaro-explainer-slide-in-hybrid-style/open-design.json +0 -120
  4080. package/runtime/vendor/plugins/open-design/_official/image-templates/momotaro-explainer-slide-in-hybrid-style/template.json +0 -18
  4081. package/runtime/vendor/plugins/open-design/_official/image-templates/notion-team-dashboard-live-artifact/open-design.json +0 -122
  4082. package/runtime/vendor/plugins/open-design/_official/image-templates/notion-team-dashboard-live-artifact/template.json +0 -22
  4083. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-anime-girl-to-cinematic-photo/open-design.json +0 -123
  4084. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-anime-girl-to-cinematic-photo/template.json +0 -22
  4085. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-casual-fashion-grid-photoshoot/open-design.json +0 -123
  4086. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-casual-fashion-grid-photoshoot/template.json +0 -22
  4087. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-cinematic-south-asian-male-portrait-with-vultures/open-design.json +0 -123
  4088. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-cinematic-south-asian-male-portrait-with-vultures/template.json +0 -22
  4089. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-cyberpunk-anime-portrait-with-neon-face-text/open-design.json +0 -124
  4090. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-cyberpunk-anime-portrait-with-neon-face-text/template.json +0 -23
  4091. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-elegant-fantasy-girl-in-violet-garden/open-design.json +0 -124
  4092. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-elegant-fantasy-girl-in-violet-garden/template.json +0 -23
  4093. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-ethereal-blue-haired-fantasy-portrait/open-design.json +0 -124
  4094. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-ethereal-blue-haired-fantasy-portrait/template.json +0 -23
  4095. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-glamorous-woman-in-black-portrait/open-design.json +0 -122
  4096. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-glamorous-woman-in-black-portrait/template.json +0 -21
  4097. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-hyper-realistic-selfie-texture-prompts/open-design.json +0 -122
  4098. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-hyper-realistic-selfie-texture-prompts/template.json +0 -21
  4099. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-lavender-fantasy-mage-portrait/open-design.json +0 -124
  4100. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-lavender-fantasy-mage-portrait/template.json +0 -23
  4101. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-monochrome-studio-portrait/open-design.json +0 -122
  4102. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-monochrome-studio-portrait/template.json +0 -21
  4103. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-old-photo-restoration-to-dslr-portrait/open-design.json +0 -122
  4104. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-old-photo-restoration-to-dslr-portrait/template.json +0 -21
  4105. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-poetic-woman-in-garden-portrait/open-design.json +0 -122
  4106. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-poetic-woman-in-garden-portrait/template.json +0 -21
  4107. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-professional-identity-portrait-wallpaper/open-design.json +0 -124
  4108. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-professional-identity-portrait-wallpaper/template.json +0 -23
  4109. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-realistically-imperfect-ai-selfie/open-design.json +0 -122
  4110. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-realistically-imperfect-ai-selfie/template.json +0 -21
  4111. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-signed-marker-portrait-on-shikishi/open-design.json +0 -123
  4112. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-signed-marker-portrait-on-shikishi/template.json +0 -22
  4113. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-snow-rabbit-empress-portrait/open-design.json +0 -124
  4114. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-snow-rabbit-empress-portrait/template.json +0 -23
  4115. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-snow-rabbit-mask-hanfu-portrait/open-design.json +0 -124
  4116. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-snow-rabbit-mask-hanfu-portrait/template.json +0 -23
  4117. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-snowy-rabbit-hanfu-portrait/open-design.json +0 -123
  4118. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-snowy-rabbit-hanfu-portrait/template.json +0 -22
  4119. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-snowy-rabbit-spirit-portrait/open-design.json +0 -123
  4120. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-snowy-rabbit-spirit-portrait/template.json +0 -22
  4121. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-song-dynasty-hanfu-portrait/open-design.json +0 -121
  4122. package/runtime/vendor/plugins/open-design/_official/image-templates/profile-avatar-song-dynasty-hanfu-portrait/template.json +0 -20
  4123. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-anime-pokemon-shop-outfit-teaser-poster/open-design.json +0 -124
  4124. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-anime-pokemon-shop-outfit-teaser-poster/template.json +0 -23
  4125. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-cinematic-elevator-scene/open-design.json +0 -121
  4126. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-cinematic-elevator-scene/template.json +0 -20
  4127. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-confused-elf-girl-at-pastel-desk/open-design.json +0 -122
  4128. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-confused-elf-girl-at-pastel-desk/template.json +0 -21
  4129. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-editorial-fashion-photography/open-design.json +0 -120
  4130. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-editorial-fashion-photography/template.json +0 -18
  4131. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-fashion-editorial-collage/open-design.json +0 -123
  4132. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-fashion-editorial-collage/template.json +0 -22
  4133. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-psg-transfer-announcement-poster/open-design.json +0 -122
  4134. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-psg-transfer-announcement-poster/template.json +0 -21
  4135. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-sensational-girl-dance-storyboard-8-shots/open-design.json +0 -126
  4136. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-sensational-girl-dance-storyboard-8-shots/template.json +0 -25
  4137. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-showa-day-retro-culture-magazine-cover/open-design.json +0 -123
  4138. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-showa-day-retro-culture-magazine-cover/template.json +0 -22
  4139. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-social-media-fashion-outfit-generation/open-design.json +0 -121
  4140. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-social-media-fashion-outfit-generation/template.json +0 -20
  4141. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-travel-snapshot-collage-prompt/open-design.json +0 -122
  4142. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-travel-snapshot-collage-prompt/template.json +0 -21
  4143. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-vintage-sign-painter-sketch/open-design.json +0 -121
  4144. package/runtime/vendor/plugins/open-design/_official/image-templates/social-media-post-vintage-sign-painter-sketch/template.json +0 -20
  4145. package/runtime/vendor/plugins/open-design/_official/image-templates/vr-headset-exploded-view-poster/open-design.json +0 -123
  4146. package/runtime/vendor/plugins/open-design/_official/image-templates/vr-headset-exploded-view-poster/template.json +0 -22
  4147. package/runtime/vendor/plugins/open-design/_official/scenarios/od-code-migration/SKILL.md +0 -47
  4148. package/runtime/vendor/plugins/open-design/_official/scenarios/od-code-migration/examples/jquery-to-react.html +0 -152
  4149. package/runtime/vendor/plugins/open-design/_official/scenarios/od-code-migration/open-design.json +0 -165
  4150. package/runtime/vendor/plugins/open-design/_official/scenarios/od-default/SKILL.md +0 -75
  4151. package/runtime/vendor/plugins/open-design/_official/scenarios/od-default/open-design.json +0 -184
  4152. package/runtime/vendor/plugins/open-design/_official/scenarios/od-design-refine/SKILL.md +0 -18
  4153. package/runtime/vendor/plugins/open-design/_official/scenarios/od-design-refine/open-design.json +0 -141
  4154. package/runtime/vendor/plugins/open-design/_official/scenarios/od-figma-migration/SKILL.md +0 -47
  4155. package/runtime/vendor/plugins/open-design/_official/scenarios/od-figma-migration/examples/dashboard-card.html +0 -153
  4156. package/runtime/vendor/plugins/open-design/_official/scenarios/od-figma-migration/open-design.json +0 -155
  4157. package/runtime/vendor/plugins/open-design/_official/scenarios/od-media-generation/SKILL.md +0 -75
  4158. package/runtime/vendor/plugins/open-design/_official/scenarios/od-media-generation/open-design.json +0 -166
  4159. package/runtime/vendor/plugins/open-design/_official/scenarios/od-new-generation/SKILL.md +0 -41
  4160. package/runtime/vendor/plugins/open-design/_official/scenarios/od-new-generation/examples/saas-landing.html +0 -130
  4161. package/runtime/vendor/plugins/open-design/_official/scenarios/od-new-generation/open-design.json +0 -156
  4162. package/runtime/vendor/plugins/open-design/_official/scenarios/od-nextjs-export/SKILL.md +0 -17
  4163. package/runtime/vendor/plugins/open-design/_official/scenarios/od-nextjs-export/open-design.json +0 -120
  4164. package/runtime/vendor/plugins/open-design/_official/scenarios/od-plugin-authoring/SKILL.md +0 -45
  4165. package/runtime/vendor/plugins/open-design/_official/scenarios/od-plugin-authoring/open-design.json +0 -137
  4166. package/runtime/vendor/plugins/open-design/_official/scenarios/od-react-export/SKILL.md +0 -17
  4167. package/runtime/vendor/plugins/open-design/_official/scenarios/od-react-export/open-design.json +0 -119
  4168. package/runtime/vendor/plugins/open-design/_official/scenarios/od-share-to-community/SKILL.md +0 -79
  4169. package/runtime/vendor/plugins/open-design/_official/scenarios/od-share-to-community/open-design.json +0 -85
  4170. package/runtime/vendor/plugins/open-design/_official/scenarios/od-tune-collab/SKILL.md +0 -38
  4171. package/runtime/vendor/plugins/open-design/_official/scenarios/od-tune-collab/examples/hero-tune.html +0 -155
  4172. package/runtime/vendor/plugins/open-design/_official/scenarios/od-tune-collab/open-design.json +0 -135
  4173. package/runtime/vendor/plugins/open-design/_official/scenarios/od-vue-export/SKILL.md +0 -17
  4174. package/runtime/vendor/plugins/open-design/_official/scenarios/od-vue-export/open-design.json +0 -119
  4175. package/runtime/vendor/plugins/open-design/_official/video-templates/3d-animated-boy-building-lego/open-design.json +0 -120
  4176. package/runtime/vendor/plugins/open-design/_official/video-templates/3d-animated-boy-building-lego/template.json +0 -19
  4177. package/runtime/vendor/plugins/open-design/_official/video-templates/HYPERFRAMES-ATTRIBUTIONS.md +0 -58
  4178. package/runtime/vendor/plugins/open-design/_official/video-templates/a-decade-of-refinement-glow-up/open-design.json +0 -123
  4179. package/runtime/vendor/plugins/open-design/_official/video-templates/a-decade-of-refinement-glow-up/template.json +0 -23
  4180. package/runtime/vendor/plugins/open-design/_official/video-templates/ancient-guardian-dragon-rescue/open-design.json +0 -122
  4181. package/runtime/vendor/plugins/open-design/_official/video-templates/ancient-guardian-dragon-rescue/template.json +0 -22
  4182. package/runtime/vendor/plugins/open-design/_official/video-templates/ancient-indian-kingdom-fpv-video/open-design.json +0 -122
  4183. package/runtime/vendor/plugins/open-design/_official/video-templates/ancient-indian-kingdom-fpv-video/template.json +0 -22
  4184. package/runtime/vendor/plugins/open-design/_official/video-templates/animation-transfer-and-camera-tracking-prompt/open-design.json +0 -120
  4185. package/runtime/vendor/plugins/open-design/_official/video-templates/animation-transfer-and-camera-tracking-prompt/template.json +0 -19
  4186. package/runtime/vendor/plugins/open-design/_official/video-templates/beat-synced-outfit-transformation-dance/open-design.json +0 -120
  4187. package/runtime/vendor/plugins/open-design/_official/video-templates/beat-synced-outfit-transformation-dance/template.json +0 -20
  4188. package/runtime/vendor/plugins/open-design/_official/video-templates/character-intro-motion-graphics-sequence/open-design.json +0 -123
  4189. package/runtime/vendor/plugins/open-design/_official/video-templates/character-intro-motion-graphics-sequence/template.json +0 -23
  4190. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-birthday-celebration-sequence/open-design.json +0 -122
  4191. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-birthday-celebration-sequence/template.json +0 -23
  4192. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-dragon-interaction-flight/open-design.json +0 -122
  4193. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-dragon-interaction-flight/template.json +0 -23
  4194. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-east-asian-woman-hand-dance/open-design.json +0 -121
  4195. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-east-asian-woman-hand-dance/template.json +0 -22
  4196. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-emotional-face-close-up/open-design.json +0 -122
  4197. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-emotional-face-close-up/template.json +0 -23
  4198. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-marine-biologist-exploration/open-design.json +0 -120
  4199. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-marine-biologist-exploration/template.json +0 -21
  4200. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-music-podcast-and-guitar-technique/open-design.json +0 -122
  4201. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-music-podcast-and-guitar-technique/template.json +0 -23
  4202. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-route-navigation-guide/open-design.json +0 -122
  4203. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-route-navigation-guide/template.json +0 -23
  4204. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-street-racing-sequence-for-seedance-2/open-design.json +0 -122
  4205. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-street-racing-sequence-for-seedance-2/template.json +0 -23
  4206. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-vampire-alley-fight-sequence/open-design.json +0 -121
  4207. package/runtime/vendor/plugins/open-design/_official/video-templates/cinematic-vampire-alley-fight-sequence/template.json +0 -22
  4208. package/runtime/vendor/plugins/open-design/_official/video-templates/crimson-horizon-sci-fi-cinematic-sequence/open-design.json +0 -120
  4209. package/runtime/vendor/plugins/open-design/_official/video-templates/crimson-horizon-sci-fi-cinematic-sequence/template.json +0 -21
  4210. package/runtime/vendor/plugins/open-design/_official/video-templates/cyberpunk-game-trailer-script/open-design.json +0 -123
  4211. package/runtime/vendor/plugins/open-design/_official/video-templates/cyberpunk-game-trailer-script/template.json +0 -23
  4212. package/runtime/vendor/plugins/open-design/_official/video-templates/forbidden-city-cat-satire/open-design.json +0 -121
  4213. package/runtime/vendor/plugins/open-design/_official/video-templates/forbidden-city-cat-satire/template.json +0 -21
  4214. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/SKILL.md +0 -33
  4215. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/open-design.json +0 -141
  4216. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/preview.mp4 +0 -0
  4217. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/preview.png +0 -0
  4218. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/source/fonts/f31712e776f666632.woff2 +0 -0
  4219. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/source/fonts/f41652e776f666632.woff2 +0 -0
  4220. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/source/fonts/f45772e776f666632.woff2 +0 -0
  4221. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/source/fonts/f49632e776f666632.woff2 +0 -0
  4222. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/source/fonts/f54672e776f666632.woff2 +0 -0
  4223. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/source/fonts/f71552e776f666632.woff2 +0 -0
  4224. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/source/fonts/f74512e776f666632.woff2 +0 -0
  4225. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/source/fonts.css +0 -146
  4226. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/source/index.html +0 -127
  4227. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-poster/template.json +0 -55
  4228. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/SKILL.md +0 -33
  4229. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/open-design.json +0 -139
  4230. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/preview.mp4 +0 -0
  4231. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/preview.png +0 -0
  4232. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/source/fonts/f33452e776f666632.woff2 +0 -0
  4233. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/source/fonts/f45772e776f666632.woff2 +0 -0
  4234. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/source/fonts/f71552e776f666632.woff2 +0 -0
  4235. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/source/fonts/f76512e776f666632.woff2 +0 -0
  4236. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/source/fonts.css +0 -101
  4237. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/source/index.html +0 -85
  4238. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-bold-signal/template.json +0 -53
  4239. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-build-minimal/SKILL.md +0 -33
  4240. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-build-minimal/open-design.json +0 -139
  4241. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-build-minimal/preview.mp4 +0 -0
  4242. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-build-minimal/preview.png +0 -0
  4243. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-build-minimal/source/fonts/f6e772e776f666632.woff2 +0 -0
  4244. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-build-minimal/source/fonts/f77552e776f666632.woff2 +0 -0
  4245. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-build-minimal/source/fonts.css +0 -254
  4246. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-build-minimal/source/index.html +0 -113
  4247. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-build-minimal/template.json +0 -53
  4248. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/SKILL.md +0 -33
  4249. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/open-design.json +0 -138
  4250. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/preview.mp4 +0 -0
  4251. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/preview.png +0 -0
  4252. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/fonts/f33512e776f666632.woff2 +0 -0
  4253. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/fonts/f34742e776f666632.woff2 +0 -0
  4254. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/fonts/f45592e776f666632.woff2 +0 -0
  4255. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/fonts/f4d672e776f666632.woff2 +0 -0
  4256. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/fonts/f59672e776f666632.woff2 +0 -0
  4257. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/fonts/f62672e776f666632.woff2 +0 -0
  4258. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/fonts/f73772e776f666632.woff2 +0 -0
  4259. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/fonts/f77512e776f666632.woff2 +0 -0
  4260. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/fonts.css +0 -146
  4261. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/source/index.html +0 -94
  4262. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-creative-voltage/template.json +0 -52
  4263. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/SKILL.md +0 -33
  4264. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/open-design.json +0 -123
  4265. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/preview.mp4 +0 -0
  4266. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/preview.png +0 -0
  4267. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f2d6f2e776f666632.woff2 +0 -0
  4268. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f46512e776f666632.woff2 +0 -0
  4269. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f4e552e776f666632.woff2 +0 -0
  4270. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f4e6b2e776f666632.woff2 +0 -0
  4271. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f59302e776f666632.woff2 +0 -0
  4272. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f5a682e776f666632.woff2 +0 -0
  4273. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f62512e776f666632.woff2 +0 -0
  4274. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f66672e776f666632.woff2 +0 -0
  4275. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f66772e776f666632.woff2 +0 -0
  4276. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f724d2e776f666632.woff2 +0 -0
  4277. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f75322e776f666632.woff2 +0 -0
  4278. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts/f7a672e776f666632.woff2 +0 -0
  4279. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/fonts.css +0 -433
  4280. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/index.html +0 -102
  4281. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/source/tailwind.css +0 -1
  4282. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-chart-nyt/template.json +0 -37
  4283. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-rollup/SKILL.md +0 -33
  4284. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-rollup/open-design.json +0 -141
  4285. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-rollup/preview.png +0 -0
  4286. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-rollup/source/DataRollup.tsx +0 -208
  4287. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-rollup/source/Root.tsx +0 -40
  4288. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-rollup/source/entry.ts +0 -7
  4289. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-data-rollup/template.json +0 -55
  4290. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/SKILL.md +0 -33
  4291. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/open-design.json +0 -128
  4292. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/preview.mp4 +0 -0
  4293. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/preview.png +0 -0
  4294. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/source/compositions/decision_tree.html +0 -434
  4295. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/source/fonts/f6e772e776f666632.woff2 +0 -0
  4296. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/source/fonts/f77552e776f666632.woff2 +0 -0
  4297. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/source/fonts.css +0 -191
  4298. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/source/index.html +0 -67
  4299. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-decision-tree/template.json +0 -37
  4300. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-electric-studio/SKILL.md +0 -33
  4301. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-electric-studio/open-design.json +0 -138
  4302. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-electric-studio/preview.mp4 +0 -0
  4303. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-electric-studio/preview.png +0 -0
  4304. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-electric-studio/source/fonts/f4e342e776f666632.woff2 +0 -0
  4305. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-electric-studio/source/fonts/f5a772e776f666632.woff2 +0 -0
  4306. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-electric-studio/source/fonts.css +0 -218
  4307. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-electric-studio/source/index.html +0 -86
  4308. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-electric-studio/template.json +0 -52
  4309. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/SKILL.md +0 -33
  4310. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/open-design.json +0 -123
  4311. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/preview.mp4 +0 -0
  4312. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/preview.png +0 -0
  4313. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/source/fonts/f2d342e776f666632.woff2 +0 -0
  4314. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/source/fonts/f45772e776f666632.woff2 +0 -0
  4315. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/source/fonts/f46672e776f666632.woff2 +0 -0
  4316. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/source/fonts/f71552e776f666632.woff2 +0 -0
  4317. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/source/fonts.css +0 -164
  4318. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/source/index.html +0 -100
  4319. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/source/tailwind.css +0 -1
  4320. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-glitch-title/template.json +0 -37
  4321. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/SKILL.md +0 -33
  4322. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/open-design.json +0 -129
  4323. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/preview.mp4 +0 -0
  4324. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/preview.png +0 -0
  4325. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/compositions/main-graphics.html +0 -589
  4326. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/fonts/f32552e776f666632.woff2 +0 -0
  4327. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/fonts/f474d2e776f666632.woff2 +0 -0
  4328. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/fonts/f49632e776f666632.woff2 +0 -0
  4329. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/fonts/f54672e776f666632.woff2 +0 -0
  4330. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/fonts/f59592e776f666632.woff2 +0 -0
  4331. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/fonts/f6e772e776f666632.woff2 +0 -0
  4332. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/fonts/f726f2e776f666632.woff2 +0 -0
  4333. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/fonts/f77552e776f666632.woff2 +0 -0
  4334. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/fonts.css +0 -308
  4335. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/source/index.html +0 -72
  4336. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-kinetic-type/template.json +0 -37
  4337. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/SKILL.md +0 -33
  4338. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/open-design.json +0 -123
  4339. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/preview.mp4 +0 -0
  4340. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/preview.png +0 -0
  4341. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f2d6f2e776f666632.woff2 +0 -0
  4342. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f46512e776f666632.woff2 +0 -0
  4343. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f49672e776f666632.woff2 +0 -0
  4344. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f4e6b2e776f666632.woff2 +0 -0
  4345. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f50492e776f666632.woff2 +0 -0
  4346. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f57672e776f666632.woff2 +0 -0
  4347. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f576b2e776f666632.woff2 +0 -0
  4348. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f59302e776f666632.woff2 +0 -0
  4349. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f66672e776f666632.woff2 +0 -0
  4350. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f66772e776f666632.woff2 +0 -0
  4351. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f75322e776f666632.woff2 +0 -0
  4352. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts/f7a672e776f666632.woff2 +0 -0
  4353. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/fonts.css +0 -451
  4354. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/index.html +0 -82
  4355. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/source/tailwind.css +0 -1
  4356. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-light-leak-cinema/template.json +0 -37
  4357. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/SKILL.md +0 -33
  4358. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/open-design.json +0 -123
  4359. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/preview.mp4 +0 -0
  4360. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/preview.png +0 -0
  4361. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/source/fonts/f48712e776f666632.woff2 +0 -0
  4362. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/source/fonts/f62412e776f666632.woff2 +0 -0
  4363. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/source/fonts/f65382e776f666632.woff2 +0 -0
  4364. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/source/fonts/f66672e776f666632.woff2 +0 -0
  4365. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/source/fonts/f6d672e776f666632.woff2 +0 -0
  4366. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/source/fonts/f75322e776f666632.woff2 +0 -0
  4367. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/source/fonts.css +0 -361
  4368. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/source/index.html +0 -65
  4369. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/source/tailwind.css +0 -1
  4370. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-liquid-bg-hero/template.json +0 -37
  4371. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/SKILL.md +0 -33
  4372. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/open-design.json +0 -123
  4373. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/preview.mp4 +0 -0
  4374. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/preview.png +0 -0
  4375. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/source/fonts/f65382e776f666632.woff2 +0 -0
  4376. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/source/fonts/f6d672e776f666632.woff2 +0 -0
  4377. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/source/fonts/f6e772e776f666632.woff2 +0 -0
  4378. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/source/fonts/f77552e776f666632.woff2 +0 -0
  4379. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/source/fonts.css +0 -442
  4380. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/source/index.html +0 -81
  4381. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/source/tailwind.css +0 -1
  4382. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-logo-outro/template.json +0 -37
  4383. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/SKILL.md +0 -33
  4384. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/open-design.json +0 -129
  4385. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/preview.mp4 +0 -0
  4386. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/preview.png +0 -0
  4387. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/source/compositions/nyt-chart.html +0 -448
  4388. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/source/fonts/f32552e776f666632.woff2 +0 -0
  4389. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/source/fonts/f4e6f2e776f666632.woff2 +0 -0
  4390. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/source/fonts/f624a2e776f666632.woff2 +0 -0
  4391. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/source/fonts/f726f2e776f666632.woff2 +0 -0
  4392. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/source/fonts.css +0 -173
  4393. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/source/index.html +0 -65
  4394. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-nyt-graph/template.json +0 -37
  4395. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-pentagram-stat/SKILL.md +0 -33
  4396. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-pentagram-stat/open-design.json +0 -139
  4397. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-pentagram-stat/preview.mp4 +0 -0
  4398. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-pentagram-stat/preview.png +0 -0
  4399. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-pentagram-stat/source/fonts/f50552e776f666632.woff2 +0 -0
  4400. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-pentagram-stat/source/fonts/f526e2e776f666632.woff2 +0 -0
  4401. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-pentagram-stat/source/fonts.css +0 -92
  4402. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-pentagram-stat/source/index.html +0 -136
  4403. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-pentagram-stat/template.json +0 -53
  4404. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/SKILL.md +0 -33
  4405. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/open-design.json +0 -129
  4406. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/preview.mp4 +0 -0
  4407. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/preview.png +0 -0
  4408. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/source/compositions/captions.html +0 -164
  4409. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/source/compositions/intro.html +0 -108
  4410. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/source/compositions/stats.html +0 -388
  4411. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/source/fonts/f54352e776f666632.woff2 +0 -0
  4412. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/source/fonts/f65672e776f666632.woff2 +0 -0
  4413. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/source/fonts.css +0 -47
  4414. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/source/index.html +0 -240
  4415. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-play-mode/template.json +0 -37
  4416. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/SKILL.md +0 -33
  4417. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/open-design.json +0 -129
  4418. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/preview.mp4 +0 -0
  4419. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/preview.png +0 -0
  4420. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/assets/figma-cursors.svg +0 -30
  4421. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/assets/figma-logo-pieces.svg +0 -15
  4422. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/assets/figma-logo-pills.svg +0 -6
  4423. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/compositions/scene1-logo-intro.html +0 -190
  4424. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/compositions/scene2-4-canvas.html +0 -574
  4425. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/compositions/scene5-logo-outro.html +0 -227
  4426. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/fonts/f6e772e776f666632.woff2 +0 -0
  4427. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/fonts/f77552e776f666632.woff2 +0 -0
  4428. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/fonts.css +0 -254
  4429. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/source/index.html +0 -169
  4430. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo/template.json +0 -37
  4431. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/SKILL.md +0 -33
  4432. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/open-design.json +0 -131
  4433. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/preview.mp4 +0 -0
  4434. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/preview.png +0 -0
  4435. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/assets/brand-logo.svg +0 -4
  4436. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/assets/brand-symbol.svg +0 -5
  4437. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/assets/screenshot-1.png +0 -0
  4438. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/assets/screenshot-2.png +0 -0
  4439. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/assets/screenshot-3.png +0 -0
  4440. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/assets/sfx-twinkle.mp3 +0 -0
  4441. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/assets/sfx-whoosh-1.mp3 +0 -0
  4442. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/assets/sfx-whoosh-2.mp3 +0 -0
  4443. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/assets/warm-pad.mp3 +0 -0
  4444. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/compositions/01-problem-type.html +0 -185
  4445. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/compositions/02-card-to-logo.html +0 -164
  4446. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/compositions/03-brand-reveal.html +0 -128
  4447. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/compositions/04-benefits-flowchart.html +0 -165
  4448. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/compositions/05-product-surfaces.html +0 -168
  4449. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/compositions/06-wheel-pillars.html +0 -182
  4450. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/compositions/07-foundation.html +0 -205
  4451. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/compositions/08-cta-outro.html +0 -174
  4452. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f2d342e776f666632.woff2 +0 -0
  4453. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f30552e776f666632.woff2 +0 -0
  4454. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f35672e776f666632.woff2 +0 -0
  4455. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f35772e776f666632.woff2 +0 -0
  4456. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f36312e776f666632.woff2 +0 -0
  4457. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f36442e776f666632.woff2 +0 -0
  4458. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f45772e776f666632.woff2 +0 -0
  4459. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f46672e776f666632.woff2 +0 -0
  4460. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f4e732e776f666632.woff2 +0 -0
  4461. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f524b2e776f666632.woff2 +0 -0
  4462. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f54642e776f666632.woff2 +0 -0
  4463. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f59342e776f666632.woff2 +0 -0
  4464. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f6a592e776f666632.woff2 +0 -0
  4465. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f6e772e776f666632.woff2 +0 -0
  4466. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f71552e776f666632.woff2 +0 -0
  4467. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts/f77552e776f666632.woff2 +0 -0
  4468. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/fonts.css +0 -1094
  4469. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/source/index.html +0 -147
  4470. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-product-promo-30s/template.json +0 -39
  4471. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/SKILL.md +0 -33
  4472. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/open-design.json +0 -129
  4473. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/preview.mp4 +0 -0
  4474. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/preview.png +0 -0
  4475. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/source/assets/swiss-grid.svg +0 -116
  4476. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/source/compositions/captions.html +0 -151
  4477. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/source/compositions/graphics.html +0 -207
  4478. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/source/compositions/intro.html +0 -132
  4479. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/source/index.html +0 -233
  4480. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-swiss-grid/template.json +0 -37
  4481. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-takram-organic/SKILL.md +0 -33
  4482. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-takram-organic/open-design.json +0 -139
  4483. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-takram-organic/preview.mp4 +0 -0
  4484. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-takram-organic/preview.png +0 -0
  4485. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-takram-organic/source/fonts/f4e342e776f666632.woff2 +0 -0
  4486. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-takram-organic/source/fonts/f5a772e776f666632.woff2 +0 -0
  4487. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-takram-organic/source/fonts.css +0 -272
  4488. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-takram-organic/source/index.html +0 -97
  4489. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-takram-organic/template.json +0 -53
  4490. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-vignelli/SKILL.md +0 -33
  4491. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-vignelli/open-design.json +0 -129
  4492. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-vignelli/preview.mp4 +0 -0
  4493. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-vignelli/preview.png +0 -0
  4494. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-vignelli/source/compositions/captions.html +0 -187
  4495. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-vignelli/source/compositions/overlays.html +0 -324
  4496. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-vignelli/source/index.html +0 -203
  4497. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-vignelli/template.json +0 -37
  4498. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/SKILL.md +0 -33
  4499. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/open-design.json +0 -129
  4500. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/preview.mp4 +0 -0
  4501. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/preview.png +0 -0
  4502. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/source/compositions/captions.html +0 -154
  4503. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/source/compositions/graphics.html +0 -165
  4504. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/source/compositions/intro.html +0 -87
  4505. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/source/fonts/f424a2e776f666632.woff2 +0 -0
  4506. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/source/fonts/f6e772e776f666632.woff2 +0 -0
  4507. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/source/fonts.css +0 -38
  4508. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/source/index.html +0 -285
  4509. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/source/textures/natural-paper.png +0 -0
  4510. package/runtime/vendor/plugins/open-design/_official/video-templates/frame-warm-grain/template.json +0 -37
  4511. package/runtime/vendor/plugins/open-design/_official/video-templates/hollywood-haute-couture-fantasy-video-prompt/open-design.json +0 -123
  4512. package/runtime/vendor/plugins/open-design/_official/video-templates/hollywood-haute-couture-fantasy-video-prompt/template.json +0 -23
  4513. package/runtime/vendor/plugins/open-design/_official/video-templates/hunched-character-animation/open-design.json +0 -120
  4514. package/runtime/vendor/plugins/open-design/_official/video-templates/hunched-character-animation/template.json +0 -19
  4515. package/runtime/vendor/plugins/open-design/_official/video-templates/live-action-anime-adaptation-water-vs-thunder-breathing-duel/open-design.json +0 -122
  4516. package/runtime/vendor/plugins/open-design/_official/video-templates/live-action-anime-adaptation-water-vs-thunder-breathing-duel/template.json +0 -23
  4517. package/runtime/vendor/plugins/open-design/_official/video-templates/luxury-supercar-cinematic-narrative/open-design.json +0 -122
  4518. package/runtime/vendor/plugins/open-design/_official/video-templates/luxury-supercar-cinematic-narrative/template.json +0 -23
  4519. package/runtime/vendor/plugins/open-design/_official/video-templates/magical-academy-storyboard-sequence/open-design.json +0 -121
  4520. package/runtime/vendor/plugins/open-design/_official/video-templates/magical-academy-storyboard-sequence/template.json +0 -21
  4521. package/runtime/vendor/plugins/open-design/_official/video-templates/modern-rural-aesthetics-healing-short-film-video-prompt/open-design.json +0 -122
  4522. package/runtime/vendor/plugins/open-design/_official/video-templates/modern-rural-aesthetics-healing-short-film-video-prompt/template.json +0 -23
  4523. package/runtime/vendor/plugins/open-design/_official/video-templates/nightclub-flyer-atmospheric-animation/open-design.json +0 -122
  4524. package/runtime/vendor/plugins/open-design/_official/video-templates/nightclub-flyer-atmospheric-animation/template.json +0 -22
  4525. package/runtime/vendor/plugins/open-design/_official/video-templates/retro-hk-wuxia-film-aesthetic/open-design.json +0 -121
  4526. package/runtime/vendor/plugins/open-design/_official/video-templates/retro-hk-wuxia-film-aesthetic/template.json +0 -22
  4527. package/runtime/vendor/plugins/open-design/_official/video-templates/seedance-2-0-15-second-cinematic-japanese-romance-short-film/open-design.json +0 -121
  4528. package/runtime/vendor/plugins/open-design/_official/video-templates/seedance-2-0-15-second-cinematic-japanese-romance-short-film/template.json +0 -22
  4529. package/runtime/vendor/plugins/open-design/_official/video-templates/seedance-2-0-80-year-old-rapper-mv/open-design.json +0 -122
  4530. package/runtime/vendor/plugins/open-design/_official/video-templates/seedance-2-0-80-year-old-rapper-mv/template.json +0 -22
  4531. package/runtime/vendor/plugins/open-design/_official/video-templates/sequence-and-movement-instruction-for-martial-arts-video/open-design.json +0 -121
  4532. package/runtime/vendor/plugins/open-design/_official/video-templates/sequence-and-movement-instruction-for-martial-arts-video/template.json +0 -21
  4533. package/runtime/vendor/plugins/open-design/_official/video-templates/soul-switching-mirror-magic-sequence/open-design.json +0 -121
  4534. package/runtime/vendor/plugins/open-design/_official/video-templates/soul-switching-mirror-magic-sequence/template.json +0 -21
  4535. package/runtime/vendor/plugins/open-design/_official/video-templates/toaster-rocket-jumpscare/open-design.json +0 -121
  4536. package/runtime/vendor/plugins/open-design/_official/video-templates/toaster-rocket-jumpscare/template.json +0 -21
  4537. package/runtime/vendor/plugins/open-design/_official/video-templates/traditional-dance-performance/open-design.json +0 -122
  4538. package/runtime/vendor/plugins/open-design/_official/video-templates/traditional-dance-performance/template.json +0 -22
  4539. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/SKILL.md +0 -33
  4540. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/open-design.json +0 -123
  4541. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/preview.mp4 +0 -0
  4542. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/preview.png +0 -0
  4543. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/source/fonts/f56382e776f666632.woff2 +0 -0
  4544. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/source/fonts/f65382e776f666632.woff2 +0 -0
  4545. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/source/fonts/f6d672e776f666632.woff2 +0 -0
  4546. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/source/fonts/f76412e776f666632.woff2 +0 -0
  4547. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/source/fonts.css +0 -307
  4548. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/source/index.html +0 -66
  4549. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/source/tailwind.css +0 -1
  4550. package/runtime/vendor/plugins/open-design/_official/video-templates/vfx-text-cursor/template.json +0 -37
  4551. package/runtime/vendor/plugins/open-design/_official/video-templates/video-seedance-desk-hologram-ar-realdesk/open-design.json +0 -87
  4552. package/runtime/vendor/plugins/open-design/_official/video-templates/video-seedance-desk-hologram-ar-realdesk/template.json +0 -30
  4553. package/runtime/vendor/plugins/open-design/_official/video-templates/video-seedance-three-kingdoms-guanyu-slaying-yanliang/open-design.json +0 -130
  4554. package/runtime/vendor/plugins/open-design/_official/video-templates/video-seedance-three-kingdoms-guanyu-slaying-yanliang/template.json +0 -30
  4555. package/runtime/vendor/plugins/open-design/_official/video-templates/video-seedance-three-kingdoms-lyubu-yuanmen-archery/open-design.json +0 -130
  4556. package/runtime/vendor/plugins/open-design/_official/video-templates/video-seedance-three-kingdoms-lyubu-yuanmen-archery/template.json +0 -30
  4557. package/runtime/vendor/plugins/open-design/_official/video-templates/video-seedance-three-kingdoms-zhaoyun-cradle-escape/open-design.json +0 -131
  4558. package/runtime/vendor/plugins/open-design/_official/video-templates/video-seedance-three-kingdoms-zhaoyun-cradle-escape/template.json +0 -31
  4559. package/runtime/vendor/plugins/open-design/_official/video-templates/vintage-disney-style-pirate-crocodile-animation/open-design.json +0 -120
  4560. package/runtime/vendor/plugins/open-design/_official/video-templates/vintage-disney-style-pirate-crocodile-animation/template.json +0 -19
  4561. package/runtime/vendor/plugins/open-design/_official/video-templates/viral-k-pop-dance-choreography/open-design.json +0 -121
  4562. package/runtime/vendor/plugins/open-design/_official/video-templates/viral-k-pop-dance-choreography/template.json +0 -21
  4563. package/runtime/vendor/plugins/open-design/_official/video-templates/wasteland-factory-chase/open-design.json +0 -121
  4564. package/runtime/vendor/plugins/open-design/_official/video-templates/wasteland-factory-chase/template.json +0 -21
  4565. package/runtime/vendor/plugins/open-design/community/deep-think-maximum-cognitive-effort-protocol-mq8kvw92/SKILL.md +0 -149
  4566. package/runtime/vendor/plugins/open-design/community/deep-think-maximum-cognitive-effort-protocol-mq8kvw92/open-design.json +0 -29
  4567. package/runtime/vendor/plugins/open-design/community/deep-think-maximum-cognitive-effort-protocol-mq8kvw92/references/source-1-mpj79mp4-deep-think.md +0 -4
  4568. package/runtime/vendor/plugins/open-design/community/hallmark/LICENSE +0 -21
  4569. package/runtime/vendor/plugins/open-design/community/hallmark/SKILL.md +0 -552
  4570. package/runtime/vendor/plugins/open-design/community/hallmark/open-design.json +0 -58
  4571. package/runtime/vendor/plugins/open-design/community/hallmark/references/anti-patterns.md +0 -412
  4572. package/runtime/vendor/plugins/open-design/community/hallmark/references/assets.md +0 -406
  4573. package/runtime/vendor/plugins/open-design/community/hallmark/references/color.md +0 -95
  4574. package/runtime/vendor/plugins/open-design/community/hallmark/references/component-cookbook.md +0 -254
  4575. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/c1-outlined-chip.md +0 -12
  4576. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/c2-inline-form-as-cta.md +0 -16
  4577. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/c3-typographic-link.md +0 -8
  4578. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/c4-sticky-bottom-bar.md +0 -16
  4579. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/f1-bento-grid.md +0 -20
  4580. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/f2-sticky-scroll-stack.md +0 -20
  4581. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/f3-tabular-spec-sheet.md +0 -11
  4582. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/f4-step-sequence.md +0 -11
  4583. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/f5-annotated-screenshot.md +0 -11
  4584. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/f6-product-card-grid.md +0 -41
  4585. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/ft1-mast-headed.md +0 -13
  4586. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/ft2-inline-rule-single-line.md +0 -10
  4587. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/ft3-index-style-category-list.md +0 -12
  4588. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/ft4-dense-typographic.md +0 -10
  4589. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/ft5-statement.md +0 -21
  4590. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/ft6-letter-close.md +0 -19
  4591. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/ft7-newsletter-first.md +0 -27
  4592. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/ft8-marquee-scroll.md +0 -25
  4593. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/h1-marquee.md +0 -15
  4594. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/h2-split-diptych.md +0 -15
  4595. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/h3-quote-led.md +0 -11
  4596. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/h4-stat-led.md +0 -14
  4597. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/h5-letter-hero.md +0 -11
  4598. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/h6-photographic-fold.md +0 -16
  4599. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/h7-demo-video-clipped-by-viewport-edge.md +0 -27
  4600. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/h8-mockup-split-browser-framed.md +0 -23
  4601. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/h9-custom-illustration-centerpiece.md +0 -27
  4602. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n1-wordmark-2-links.md +0 -12
  4603. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n10-floating-on-scroll-morph.md +0 -19
  4604. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n2-floating-chip.md +0 -14
  4605. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n3-side-rail.md +0 -14
  4606. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n4-hidden-behind-k.md +0 -9
  4607. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n5-floating-pill.md +0 -28
  4608. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n6-newspaper-masthead.md +0 -24
  4609. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n7-brutal-slab.md +0 -22
  4610. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n8-terminal-command.md +0 -21
  4611. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/n9-edge-aligned-minimal.md +0 -17
  4612. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/s1-left-margin-numbered.md +0 -15
  4613. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/s2-hanging.md +0 -13
  4614. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/s3-sticky-pinned.md +0 -19
  4615. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/s4-inline-no-break.md +0 -11
  4616. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/s5-bottom-anchored.md +0 -13
  4617. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/t1-pull-quote-with-marginalia.md +0 -12
  4618. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/t2-logo-wall-hairline.md +0 -19
  4619. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/t3-single-huge-quote.md +0 -11
  4620. package/runtime/vendor/plugins/open-design/community/hallmark/references/components/t4-numbered-stat-strip.md +0 -14
  4621. package/runtime/vendor/plugins/open-design/community/hallmark/references/contract.md +0 -24
  4622. package/runtime/vendor/plugins/open-design/community/hallmark/references/copy.md +0 -182
  4623. package/runtime/vendor/plugins/open-design/community/hallmark/references/custom-craft.md +0 -626
  4624. package/runtime/vendor/plugins/open-design/community/hallmark/references/custom-theme.md +0 -329
  4625. package/runtime/vendor/plugins/open-design/community/hallmark/references/design-md.md +0 -116
  4626. package/runtime/vendor/plugins/open-design/community/hallmark/references/export-formats.md +0 -328
  4627. package/runtime/vendor/plugins/open-design/community/hallmark/references/floating-nav.md +0 -89
  4628. package/runtime/vendor/plugins/open-design/community/hallmark/references/genres/atmospheric.md +0 -65
  4629. package/runtime/vendor/plugins/open-design/community/hallmark/references/genres/editorial.md +0 -70
  4630. package/runtime/vendor/plugins/open-design/community/hallmark/references/genres/modern-minimal.md +0 -67
  4631. package/runtime/vendor/plugins/open-design/community/hallmark/references/genres/playful.md +0 -65
  4632. package/runtime/vendor/plugins/open-design/community/hallmark/references/hero-enrichment.md +0 -474
  4633. package/runtime/vendor/plugins/open-design/community/hallmark/references/imagery-kit.md +0 -170
  4634. package/runtime/vendor/plugins/open-design/community/hallmark/references/interaction-and-states.md +0 -207
  4635. package/runtime/vendor/plugins/open-design/community/hallmark/references/layout-and-space.md +0 -111
  4636. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/01-bento-grid.md +0 -35
  4637. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/02-long-document.md +0 -34
  4638. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/03-marquee-hero.md +0 -31
  4639. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/04-stat-led.md +0 -32
  4640. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/05-workbench.md +0 -32
  4641. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/06-conversational-faq.md +0 -33
  4642. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/07-manifesto.md +0 -32
  4643. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/08-photographic.md +0 -34
  4644. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/09-quote-led.md +0 -32
  4645. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/10-specimen.md +0 -32
  4646. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/11-catalogue.md +0 -23
  4647. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/12-letter.md +0 -23
  4648. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/13-index-first.md +0 -23
  4649. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/14-narrative-workflow.md +0 -23
  4650. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/15-split-studio.md +0 -23
  4651. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/16-feature-stack.md +0 -23
  4652. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/17-type-specimen.md +0 -23
  4653. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/18-portfolio-grid.md +0 -23
  4654. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/19-map-diagram.md +0 -23
  4655. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/20-ecosystem-index.md +0 -23
  4656. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures/21-component-playground.md +0 -23
  4657. package/runtime/vendor/plugins/open-design/community/hallmark/references/macrostructures.md +0 -89
  4658. package/runtime/vendor/plugins/open-design/community/hallmark/references/microinteractions.md +0 -260
  4659. package/runtime/vendor/plugins/open-design/community/hallmark/references/motion.md +0 -109
  4660. package/runtime/vendor/plugins/open-design/community/hallmark/references/preview-examples.md +0 -49
  4661. package/runtime/vendor/plugins/open-design/community/hallmark/references/responsive.md +0 -138
  4662. package/runtime/vendor/plugins/open-design/community/hallmark/references/slop-test.md +0 -205
  4663. package/runtime/vendor/plugins/open-design/community/hallmark/references/structure.md +0 -164
  4664. package/runtime/vendor/plugins/open-design/community/hallmark/references/study.md +0 -511
  4665. package/runtime/vendor/plugins/open-design/community/hallmark/references/typography.md +0 -243
  4666. package/runtime/vendor/plugins/open-design/community/hallmark/references/verbs/audit.md +0 -25
  4667. package/runtime/vendor/plugins/open-design/community/hallmark/references/verbs/redesign.md +0 -269
  4668. package/runtime/vendor/plugins/open-design/community/import-smoke-test/.claude-plugin/plugin.json +0 -5
  4669. package/runtime/vendor/plugins/open-design/community/import-smoke-test/README.md +0 -19
  4670. package/runtime/vendor/plugins/open-design/community/import-smoke-test/SKILL.md +0 -21
  4671. package/runtime/vendor/plugins/open-design/community/import-smoke-test/assets/import-checklist.md +0 -7
  4672. package/runtime/vendor/plugins/open-design/community/import-smoke-test/open-design.json +0 -124
  4673. package/runtime/vendor/plugins/open-design/community/import-smoke-test/preview/index.html +0 -128
  4674. package/runtime/vendor/plugins/open-design/community/registry-starter/SKILL.md +0 -10
  4675. package/runtime/vendor/plugins/open-design/community/registry-starter/open-design.json +0 -37
  4676. package/runtime/vendor/plugins/open-design/marketplace.json +0 -16
  4677. package/runtime/vendor/plugins/open-design/open-design/.claude-plugin/plugin.json +0 -7
  4678. package/runtime/vendor/plugins/open-design/open-design/.mcp.json +0 -9
  4679. package/runtime/vendor/plugins/open-design/registry/community/open-design-marketplace.json +0 -86
  4680. package/runtime/vendor/plugins/open-design/registry/official/open-design-marketplace.json +0 -11999
  4681. package/runtime/vendor/plugins/open-design/spec/AGENT-DEVELOPMENT.md +0 -83
  4682. package/runtime/vendor/plugins/open-design/spec/AGENT-DEVELOPMENT.zh-CN.md +0 -83
  4683. package/runtime/vendor/plugins/open-design/spec/CONTRIBUTING.md +0 -59
  4684. package/runtime/vendor/plugins/open-design/spec/CONTRIBUTING.zh-CN.md +0 -59
  4685. package/runtime/vendor/plugins/open-design/spec/PUBLISHING-REGISTRIES.md +0 -138
  4686. package/runtime/vendor/plugins/open-design/spec/PUBLISHING-REGISTRIES.zh-CN.md +0 -138
  4687. package/runtime/vendor/plugins/open-design/spec/README.md +0 -68
  4688. package/runtime/vendor/plugins/open-design/spec/README.zh-CN.md +0 -68
  4689. package/runtime/vendor/plugins/open-design/spec/SPEC.md +0 -218
  4690. package/runtime/vendor/plugins/open-design/spec/SPEC.zh-CN.md +0 -218
  4691. package/runtime/vendor/plugins/open-design/spec/examples/README.md +0 -23
  4692. package/runtime/vendor/plugins/open-design/spec/examples/README.zh-CN.md +0 -23
  4693. package/runtime/vendor/plugins/open-design/spec/examples/create-hyperframes-launch/SKILL.md +0 -26
  4694. package/runtime/vendor/plugins/open-design/spec/examples/create-hyperframes-launch/open-design.json +0 -48
  4695. package/runtime/vendor/plugins/open-design/spec/examples/create-image-campaign/SKILL.md +0 -26
  4696. package/runtime/vendor/plugins/open-design/spec/examples/create-image-campaign/open-design.json +0 -47
  4697. package/runtime/vendor/plugins/open-design/spec/examples/create-live-artifact-ops/SKILL.md +0 -27
  4698. package/runtime/vendor/plugins/open-design/spec/examples/create-live-artifact-ops/example.html +0 -173
  4699. package/runtime/vendor/plugins/open-design/spec/examples/create-live-artifact-ops/open-design.json +0 -60
  4700. package/runtime/vendor/plugins/open-design/spec/examples/create-prototype-dashboard/README.md +0 -10
  4701. package/runtime/vendor/plugins/open-design/spec/examples/create-prototype-dashboard/SKILL.md +0 -27
  4702. package/runtime/vendor/plugins/open-design/spec/examples/create-prototype-dashboard/assets/seed-brief.md +0 -10
  4703. package/runtime/vendor/plugins/open-design/spec/examples/create-prototype-dashboard/evals/evals.json +0 -18
  4704. package/runtime/vendor/plugins/open-design/spec/examples/create-prototype-dashboard/example.html +0 -262
  4705. package/runtime/vendor/plugins/open-design/spec/examples/create-prototype-dashboard/open-design.json +0 -61
  4706. package/runtime/vendor/plugins/open-design/spec/examples/create-prototype-dashboard/preview/index.html +0 -89
  4707. package/runtime/vendor/plugins/open-design/spec/examples/create-slides-pitch/SKILL.md +0 -27
  4708. package/runtime/vendor/plugins/open-design/spec/examples/create-slides-pitch/example.html +0 -178
  4709. package/runtime/vendor/plugins/open-design/spec/examples/create-slides-pitch/open-design.json +0 -60
  4710. package/runtime/vendor/plugins/open-design/spec/examples/create-video-storyboard/SKILL.md +0 -26
  4711. package/runtime/vendor/plugins/open-design/spec/examples/create-video-storyboard/open-design.json +0 -47
  4712. package/runtime/vendor/plugins/open-design/spec/examples/deploy-vercel-static/SKILL.md +0 -23
  4713. package/runtime/vendor/plugins/open-design/spec/examples/deploy-vercel-static/open-design.json +0 -55
  4714. package/runtime/vendor/plugins/open-design/spec/examples/export-nextjs-handoff/SKILL.md +0 -23
  4715. package/runtime/vendor/plugins/open-design/spec/examples/export-nextjs-handoff/open-design.json +0 -39
  4716. package/runtime/vendor/plugins/open-design/spec/examples/extend-plugin-author/SKILL.md +0 -23
  4717. package/runtime/vendor/plugins/open-design/spec/examples/extend-plugin-author/open-design.json +0 -46
  4718. package/runtime/vendor/plugins/open-design/spec/examples/import-screenshot-to-prototype/SKILL.md +0 -24
  4719. package/runtime/vendor/plugins/open-design/spec/examples/import-screenshot-to-prototype/open-design.json +0 -44
  4720. package/runtime/vendor/plugins/open-design/spec/examples/open-design-marketplace.json +0 -88
  4721. package/runtime/vendor/plugins/open-design/spec/examples/refine-critique-loop/SKILL.md +0 -23
  4722. package/runtime/vendor/plugins/open-design/spec/examples/refine-critique-loop/open-design.json +0 -43
  4723. package/runtime/vendor/plugins/open-design/spec/examples/share-github-pr/SKILL.md +0 -23
  4724. package/runtime/vendor/plugins/open-design/spec/examples/share-github-pr/open-design.json +0 -54
  4725. package/runtime/vendor/plugins/open-design/spec/templates/README.template.md +0 -30
  4726. package/runtime/vendor/plugins/open-design/spec/templates/README.template.zh-CN.md +0 -30
  4727. package/runtime/vendor/plugins/open-design/spec/templates/SKILL.template.md +0 -40
  4728. package/runtime/vendor/plugins/open-design/spec/templates/evals.template.json +0 -26
  4729. package/runtime/vendor/plugins/open-design/spec/templates/open-design.template.json +0 -45
  4730. package/runtime/vendor/plugins/ruflo/README.md +0 -155
  4731. package/runtime/vendor/plugins/ruflo/ruflo-adr/.claude-plugin/plugin.json +0 -22
  4732. package/runtime/vendor/plugins/ruflo/ruflo-adr/README.md +0 -86
  4733. package/runtime/vendor/plugins/ruflo/ruflo-adr/REFERENCE.md +0 -112
  4734. package/runtime/vendor/plugins/ruflo/ruflo-adr/agents/adr-architect.md +0 -45
  4735. package/runtime/vendor/plugins/ruflo/ruflo-adr/commands/adr.md +0 -46
  4736. package/runtime/vendor/plugins/ruflo/ruflo-adr/scripts/import.mjs +0 -283
  4737. package/runtime/vendor/plugins/ruflo/ruflo-adr/scripts/smoke.sh +0 -130
  4738. package/runtime/vendor/plugins/ruflo/ruflo-adr/scripts/verify.mjs +0 -121
  4739. package/runtime/vendor/plugins/ruflo/ruflo-adr/skills/adr-create/SKILL.md +0 -61
  4740. package/runtime/vendor/plugins/ruflo/ruflo-adr/skills/adr-index/SKILL.md +0 -73
  4741. package/runtime/vendor/plugins/ruflo/ruflo-adr/skills/adr-review/SKILL.md +0 -55
  4742. package/runtime/vendor/plugins/ruflo/ruflo-adr/skills/adr-verify/SKILL.md +0 -42
  4743. package/runtime/vendor/plugins/ruflo/ruflo-agent/.claude-plugin/plugin.json +0 -25
  4744. package/runtime/vendor/plugins/ruflo/ruflo-agent/README.md +0 -99
  4745. package/runtime/vendor/plugins/ruflo/ruflo-agent/agents/nested-coordinator.md +0 -71
  4746. package/runtime/vendor/plugins/ruflo/ruflo-agent/agents/nested-leaf.md +0 -56
  4747. package/runtime/vendor/plugins/ruflo/ruflo-agent/agents/nested-queen-leaf.md +0 -116
  4748. package/runtime/vendor/plugins/ruflo/ruflo-agent/agents/nested-queen-researcher.md +0 -165
  4749. package/runtime/vendor/plugins/ruflo/ruflo-agent/agents/nested-queen-reviewer.md +0 -155
  4750. package/runtime/vendor/plugins/ruflo/ruflo-agent/agents/nested-queen.md +0 -180
  4751. package/runtime/vendor/plugins/ruflo/ruflo-agent/agents/nested-researcher.md +0 -62
  4752. package/runtime/vendor/plugins/ruflo/ruflo-agent/agents/nested-reviewer.md +0 -75
  4753. package/runtime/vendor/plugins/ruflo/ruflo-agent/agents/wasm-specialist.md +0 -38
  4754. package/runtime/vendor/plugins/ruflo/ruflo-agent/commands/managed-agent.md +0 -13
  4755. package/runtime/vendor/plugins/ruflo/ruflo-agent/commands/wasm.md +0 -10
  4756. package/runtime/vendor/plugins/ruflo/ruflo-agent/scripts/smoke.sh +0 -104
  4757. package/runtime/vendor/plugins/ruflo/ruflo-agent/skills/managed-agent/SKILL.md +0 -56
  4758. package/runtime/vendor/plugins/ruflo/ruflo-agent/skills/nested-subagents/SKILL.md +0 -69
  4759. package/runtime/vendor/plugins/ruflo/ruflo-agent/skills/wasm-agent/SKILL.md +0 -31
  4760. package/runtime/vendor/plugins/ruflo/ruflo-agent/skills/wasm-gallery/SKILL.md +0 -22
  4761. package/runtime/vendor/plugins/ruflo/ruflo-agentdb/.claude-plugin/plugin.json +0 -24
  4762. package/runtime/vendor/plugins/ruflo/ruflo-agentdb/README.md +0 -221
  4763. package/runtime/vendor/plugins/ruflo/ruflo-agentdb/agents/agentdb-specialist.md +0 -84
  4764. package/runtime/vendor/plugins/ruflo/ruflo-agentdb/commands/agentdb.md +0 -12
  4765. package/runtime/vendor/plugins/ruflo/ruflo-agentdb/commands/embeddings.md +0 -17
  4766. package/runtime/vendor/plugins/ruflo/ruflo-agentdb/scripts/smoke.sh +0 -204
  4767. package/runtime/vendor/plugins/ruflo/ruflo-agentdb/skills/agentdb-query/SKILL.md +0 -54
  4768. package/runtime/vendor/plugins/ruflo/ruflo-agentdb/skills/vector-search/SKILL.md +0 -94
  4769. package/runtime/vendor/plugins/ruflo/ruflo-aidefence/.claude-plugin/plugin.json +0 -22
  4770. package/runtime/vendor/plugins/ruflo/ruflo-aidefence/README.md +0 -79
  4771. package/runtime/vendor/plugins/ruflo/ruflo-aidefence/agents/safety-specialist.md +0 -43
  4772. package/runtime/vendor/plugins/ruflo/ruflo-aidefence/commands/aidefence.md +0 -10
  4773. package/runtime/vendor/plugins/ruflo/ruflo-aidefence/scripts/smoke.sh +0 -84
  4774. package/runtime/vendor/plugins/ruflo/ruflo-aidefence/skills/pii-detect/SKILL.md +0 -30
  4775. package/runtime/vendor/plugins/ruflo/ruflo-aidefence/skills/safety-scan/SKILL.md +0 -30
  4776. package/runtime/vendor/plugins/ruflo/ruflo-arena/.claude-plugin/plugin.json +0 -24
  4777. package/runtime/vendor/plugins/ruflo/ruflo-arena/README.md +0 -78
  4778. package/runtime/vendor/plugins/ruflo/ruflo-arena/commands/arena.md +0 -59
  4779. package/runtime/vendor/plugins/ruflo/ruflo-arena/eslint.config.js +0 -19
  4780. package/runtime/vendor/plugins/ruflo/ruflo-arena/package.json +0 -47
  4781. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/cli.ts +0 -116
  4782. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/domain/games.ts +0 -61
  4783. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/domain/strategies.ts +0 -191
  4784. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/domain/types.ts +0 -146
  4785. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/engine/arena.ts +0 -54
  4786. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/engine/evolution.ts +0 -91
  4787. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/engine/index.ts +0 -11
  4788. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/engine/rng.ts +0 -27
  4789. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/engine/tournament.ts +0 -46
  4790. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/index.ts +0 -55
  4791. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/mcp-tools/index.ts +0 -269
  4792. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/persistence/run-store.ts +0 -127
  4793. package/runtime/vendor/plugins/ruflo/ruflo-arena/src/report/render.ts +0 -80
  4794. package/runtime/vendor/plugins/ruflo/ruflo-arena/tests/evolution.test.ts +0 -31
  4795. package/runtime/vendor/plugins/ruflo/ruflo-arena/tests/games-arena.test.ts +0 -54
  4796. package/runtime/vendor/plugins/ruflo/ruflo-arena/tests/mcp-tools.test.ts +0 -92
  4797. package/runtime/vendor/plugins/ruflo/ruflo-arena/tests/tournament.test.ts +0 -37
  4798. package/runtime/vendor/plugins/ruflo/ruflo-arena/tsconfig.json +0 -21
  4799. package/runtime/vendor/plugins/ruflo/ruflo-arena/vitest.config.ts +0 -9
  4800. package/runtime/vendor/plugins/ruflo/ruflo-autopilot/.claude-plugin/plugin.json +0 -22
  4801. package/runtime/vendor/plugins/ruflo/ruflo-autopilot/README.md +0 -76
  4802. package/runtime/vendor/plugins/ruflo/ruflo-autopilot/agents/autopilot-coordinator.md +0 -42
  4803. package/runtime/vendor/plugins/ruflo/ruflo-autopilot/commands/autopilot-status.md +0 -15
  4804. package/runtime/vendor/plugins/ruflo/ruflo-autopilot/commands/autopilot.md +0 -18
  4805. package/runtime/vendor/plugins/ruflo/ruflo-autopilot/scripts/smoke.sh +0 -76
  4806. package/runtime/vendor/plugins/ruflo/ruflo-autopilot/skills/autopilot-loop/SKILL.md +0 -27
  4807. package/runtime/vendor/plugins/ruflo/ruflo-autopilot/skills/autopilot-predict/SKILL.md +0 -26
  4808. package/runtime/vendor/plugins/ruflo/ruflo-browser/.claude-plugin/plugin.json +0 -24
  4809. package/runtime/vendor/plugins/ruflo/ruflo-browser/README.md +0 -131
  4810. package/runtime/vendor/plugins/ruflo/ruflo-browser/agents/browser-agent.md +0 -107
  4811. package/runtime/vendor/plugins/ruflo/ruflo-browser/commands/ruflo-browser.md +0 -63
  4812. package/runtime/vendor/plugins/ruflo/ruflo-browser/scripts/SITES.txt +0 -18
  4813. package/runtime/vendor/plugins/ruflo/ruflo-browser/scripts/replay-spike.sh +0 -157
  4814. package/runtime/vendor/plugins/ruflo/ruflo-browser/scripts/smoke.sh +0 -143
  4815. package/runtime/vendor/plugins/ruflo/ruflo-browser/skills/browser-auth-flow/SKILL.md +0 -38
  4816. package/runtime/vendor/plugins/ruflo/ruflo-browser/skills/browser-extract/SKILL.md +0 -55
  4817. package/runtime/vendor/plugins/ruflo/ruflo-browser/skills/browser-form-fill/SKILL.md +0 -40
  4818. package/runtime/vendor/plugins/ruflo/ruflo-browser/skills/browser-login/SKILL.md +0 -46
  4819. package/runtime/vendor/plugins/ruflo/ruflo-browser/skills/browser-record/SKILL.md +0 -49
  4820. package/runtime/vendor/plugins/ruflo/ruflo-browser/skills/browser-replay/SKILL.md +0 -47
  4821. package/runtime/vendor/plugins/ruflo/ruflo-browser/skills/browser-scrape/SKILL.md +0 -36
  4822. package/runtime/vendor/plugins/ruflo/ruflo-browser/skills/browser-screenshot-diff/SKILL.md +0 -37
  4823. package/runtime/vendor/plugins/ruflo/ruflo-browser/skills/browser-test/SKILL.md +0 -48
  4824. package/runtime/vendor/plugins/ruflo/ruflo-core/.claude-plugin/plugin.json +0 -21
  4825. package/runtime/vendor/plugins/ruflo/ruflo-core/.mcp.json +0 -11
  4826. package/runtime/vendor/plugins/ruflo/ruflo-core/README.md +0 -72
  4827. package/runtime/vendor/plugins/ruflo/ruflo-core/agents/coder.md +0 -31
  4828. package/runtime/vendor/plugins/ruflo/ruflo-core/agents/researcher.md +0 -80
  4829. package/runtime/vendor/plugins/ruflo/ruflo-core/agents/reviewer.md +0 -19
  4830. package/runtime/vendor/plugins/ruflo/ruflo-core/agents/witness-curator.md +0 -79
  4831. package/runtime/vendor/plugins/ruflo/ruflo-core/commands/ruflo-status.md +0 -11
  4832. package/runtime/vendor/plugins/ruflo/ruflo-core/commands/witness.md +0 -30
  4833. package/runtime/vendor/plugins/ruflo/ruflo-core/hooks/hooks.json +0 -77
  4834. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/ruflo-hook.cjs +0 -166
  4835. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/ruflo-hook.sh +0 -33
  4836. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/smoke.sh +0 -95
  4837. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/test-cli-no-crash.mjs +0 -103
  4838. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/test-consensus-transport.mjs +0 -108
  4839. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/test-hooks.mjs +0 -129
  4840. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/test-mcp-protocol.mjs +0 -66
  4841. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/test-mcp-roundtrips.mjs +0 -141
  4842. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/test-memory-import.mjs +0 -174
  4843. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/witness/history.mjs +0 -105
  4844. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/witness/init.mjs +0 -83
  4845. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/witness/lib.mjs +0 -300
  4846. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/witness/perf.mjs +0 -204
  4847. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/witness/regen.mjs +0 -94
  4848. package/runtime/vendor/plugins/ruflo/ruflo-core/scripts/witness/verify.mjs +0 -213
  4849. package/runtime/vendor/plugins/ruflo/ruflo-core/skills/discover-plugins/SKILL.md +0 -119
  4850. package/runtime/vendor/plugins/ruflo/ruflo-core/skills/init-project/SKILL.md +0 -9
  4851. package/runtime/vendor/plugins/ruflo/ruflo-core/skills/ruflo-doctor/SKILL.md +0 -14
  4852. package/runtime/vendor/plugins/ruflo/ruflo-core/skills/witness/SKILL.md +0 -102
  4853. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/.claude-plugin/plugin.json +0 -54
  4854. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/README.md +0 -180
  4855. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/REFERENCE.md +0 -92
  4856. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/agents/cost-analyst.md +0 -98
  4857. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/bench/booster-corpus.json +0 -244
  4858. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/commands/ruflo-cost.md +0 -162
  4859. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/hooks/hooks.json +0 -17
  4860. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/_prices.mjs +0 -58
  4861. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/_sessions.mjs +0 -74
  4862. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/anomaly.mjs +0 -224
  4863. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/bench.mjs +0 -422
  4864. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/budget.mjs +0 -218
  4865. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/burn.mjs +0 -200
  4866. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/compact.mjs +0 -153
  4867. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/conversation.mjs +0 -76
  4868. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/counterfactual.mjs +0 -188
  4869. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/diff.mjs +0 -280
  4870. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/export.mjs +0 -154
  4871. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/federation.mjs +0 -134
  4872. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/health.mjs +0 -229
  4873. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/outcome.mjs +0 -43
  4874. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/projection.mjs +0 -205
  4875. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/ruflo-hook.cjs +0 -56
  4876. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/session.mjs +0 -225
  4877. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/smoke.sh +0 -650
  4878. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/summary.mjs +0 -221
  4879. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/test-health-integration.mjs +0 -176
  4880. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/track.mjs +0 -175
  4881. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/scripts/trend.mjs +0 -141
  4882. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-anomaly/SKILL.md +0 -92
  4883. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-benchmark/SKILL.md +0 -59
  4884. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-booster-edit/SKILL.md +0 -85
  4885. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-booster-route/SKILL.md +0 -42
  4886. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-budget-check/SKILL.md +0 -65
  4887. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-burn/SKILL.md +0 -76
  4888. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-compact-context/SKILL.md +0 -37
  4889. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-conversation/SKILL.md +0 -38
  4890. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-counterfactual/SKILL.md +0 -54
  4891. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-diff/SKILL.md +0 -131
  4892. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-export/SKILL.md +0 -59
  4893. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-federation/SKILL.md +0 -55
  4894. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-health/SKILL.md +0 -92
  4895. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-optimize/SKILL.md +0 -47
  4896. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-projection/SKILL.md +0 -61
  4897. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-report/SKILL.md +0 -36
  4898. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-session/SKILL.md +0 -87
  4899. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-summary/SKILL.md +0 -74
  4900. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-track/SKILL.md +0 -79
  4901. package/runtime/vendor/plugins/ruflo/ruflo-cost-tracker/skills/cost-trend/SKILL.md +0 -44
  4902. package/runtime/vendor/plugins/ruflo/ruflo-daa/.claude-plugin/plugin.json +0 -21
  4903. package/runtime/vendor/plugins/ruflo/ruflo-daa/README.md +0 -69
  4904. package/runtime/vendor/plugins/ruflo/ruflo-daa/agents/daa-specialist.md +0 -42
  4905. package/runtime/vendor/plugins/ruflo/ruflo-daa/commands/daa.md +0 -10
  4906. package/runtime/vendor/plugins/ruflo/ruflo-daa/scripts/smoke.sh +0 -77
  4907. package/runtime/vendor/plugins/ruflo/ruflo-daa/skills/cognitive-pattern/SKILL.md +0 -29
  4908. package/runtime/vendor/plugins/ruflo/ruflo-daa/skills/daa-agent/SKILL.md +0 -31
  4909. package/runtime/vendor/plugins/ruflo/ruflo-ddd/.claude-plugin/plugin.json +0 -23
  4910. package/runtime/vendor/plugins/ruflo/ruflo-ddd/README.md +0 -95
  4911. package/runtime/vendor/plugins/ruflo/ruflo-ddd/REFERENCE.md +0 -73
  4912. package/runtime/vendor/plugins/ruflo/ruflo-ddd/agents/domain-modeler.md +0 -54
  4913. package/runtime/vendor/plugins/ruflo/ruflo-ddd/commands/ddd.md +0 -43
  4914. package/runtime/vendor/plugins/ruflo/ruflo-ddd/scripts/smoke.sh +0 -72
  4915. package/runtime/vendor/plugins/ruflo/ruflo-ddd/skills/ddd-aggregate/SKILL.md +0 -51
  4916. package/runtime/vendor/plugins/ruflo/ruflo-ddd/skills/ddd-context/SKILL.md +0 -45
  4917. package/runtime/vendor/plugins/ruflo/ruflo-ddd/skills/ddd-validate/SKILL.md +0 -50
  4918. package/runtime/vendor/plugins/ruflo/ruflo-docs/.claude-plugin/plugin.json +0 -20
  4919. package/runtime/vendor/plugins/ruflo/ruflo-docs/README.md +0 -72
  4920. package/runtime/vendor/plugins/ruflo/ruflo-docs/agents/docs-writer.md +0 -49
  4921. package/runtime/vendor/plugins/ruflo/ruflo-docs/commands/ruflo-docs.md +0 -21
  4922. package/runtime/vendor/plugins/ruflo/ruflo-docs/scripts/smoke.sh +0 -71
  4923. package/runtime/vendor/plugins/ruflo/ruflo-docs/skills/api-docs/SKILL.md +0 -21
  4924. package/runtime/vendor/plugins/ruflo/ruflo-docs/skills/doc-gen/SKILL.md +0 -19
  4925. package/runtime/vendor/plugins/ruflo/ruflo-federation/.claude-plugin/plugin.json +0 -26
  4926. package/runtime/vendor/plugins/ruflo/ruflo-federation/README.md +0 -99
  4927. package/runtime/vendor/plugins/ruflo/ruflo-federation/agents/federation-coordinator.md +0 -56
  4928. package/runtime/vendor/plugins/ruflo/ruflo-federation/commands/federation.md +0 -40
  4929. package/runtime/vendor/plugins/ruflo/ruflo-federation/scripts/smoke.sh +0 -86
  4930. package/runtime/vendor/plugins/ruflo/ruflo-federation/skills/federation-audit/SKILL.md +0 -19
  4931. package/runtime/vendor/plugins/ruflo/ruflo-federation/skills/federation-init/SKILL.md +0 -15
  4932. package/runtime/vendor/plugins/ruflo/ruflo-federation/skills/federation-status/SKILL.md +0 -15
  4933. package/runtime/vendor/plugins/ruflo/ruflo-goals/.claude-plugin/plugin.json +0 -26
  4934. package/runtime/vendor/plugins/ruflo/ruflo-goals/README.md +0 -89
  4935. package/runtime/vendor/plugins/ruflo/ruflo-goals/agents/deep-researcher.md +0 -61
  4936. package/runtime/vendor/plugins/ruflo/ruflo-goals/agents/dossier-investigator.md +0 -68
  4937. package/runtime/vendor/plugins/ruflo/ruflo-goals/agents/goal-planner.md +0 -89
  4938. package/runtime/vendor/plugins/ruflo/ruflo-goals/agents/horizon-tracker.md +0 -67
  4939. package/runtime/vendor/plugins/ruflo/ruflo-goals/commands/goals.md +0 -12
  4940. package/runtime/vendor/plugins/ruflo/ruflo-goals/scripts/smoke.sh +0 -87
  4941. package/runtime/vendor/plugins/ruflo/ruflo-goals/skills/deep-research/SKILL.md +0 -43
  4942. package/runtime/vendor/plugins/ruflo/ruflo-goals/skills/dossier-collect/SKILL.md +0 -70
  4943. package/runtime/vendor/plugins/ruflo/ruflo-goals/skills/goal-plan/SKILL.md +0 -59
  4944. package/runtime/vendor/plugins/ruflo/ruflo-goals/skills/horizon-track/SKILL.md +0 -61
  4945. package/runtime/vendor/plugins/ruflo/ruflo-goals/skills/research-synthesize/SKILL.md +0 -62
  4946. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/.claude-plugin/plugin.json +0 -27
  4947. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/package-lock.json +0 -15432
  4948. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/package.json +0 -55
  4949. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/aidefence-suspicion-adapter.ts +0 -102
  4950. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/browser-causal-adapter.ts +0 -193
  4951. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/cost-attribution-adapter.ts +0 -123
  4952. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/federation-trust-adapter.ts +0 -116
  4953. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/index.ts +0 -87
  4954. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/jujutsu-blast-radius-adapter.ts +0 -107
  4955. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/knowledge-graph-adapter.ts +0 -183
  4956. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/observability-span-adapter.ts +0 -123
  4957. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/portfolio-cg-adapter.ts +0 -140
  4958. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/adapters/rag-memory-adapter.ts +0 -117
  4959. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/application/federation-client.ts +0 -147
  4960. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/application/federation-server.ts +0 -158
  4961. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/application/streaming-bridge.ts +0 -137
  4962. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/domain/adapter.ts +0 -92
  4963. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/domain/federation-protocol.ts +0 -95
  4964. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/domain/signed-artifact.ts +0 -80
  4965. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/domain/types.ts +0 -215
  4966. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/index.ts +0 -105
  4967. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/infrastructure/jl-embed.ts +0 -98
  4968. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/infrastructure/solver-bridge.ts +0 -389
  4969. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/infrastructure/witness-signer.ts +0 -209
  4970. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/src/mcp-tools/index.ts +0 -316
  4971. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/adapter-registry.test.ts +0 -69
  4972. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/browser-causal-adapter.test.ts +0 -174
  4973. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/mcp-tools.test.ts +0 -169
  4974. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/phase3-adapters.test.ts +0 -206
  4975. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/phase4-adapters.test.ts +0 -158
  4976. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/phase5-portfolio.test.ts +0 -122
  4977. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/phase6-adapters.test.ts +0 -224
  4978. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/phase6_5-streaming.test.ts +0 -135
  4979. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/phase7-signed-artifact.test.ts +0 -238
  4980. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/phase8-federation.test.ts +0 -194
  4981. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tests/solver-bridge.test.ts +0 -255
  4982. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/tsconfig.json +0 -21
  4983. package/runtime/vendor/plugins/ruflo/ruflo-graph-intelligence/vitest.config.ts +0 -9
  4984. package/runtime/vendor/plugins/ruflo/ruflo-intelligence/.claude-plugin/plugin.json +0 -26
  4985. package/runtime/vendor/plugins/ruflo/ruflo-intelligence/README.md +0 -143
  4986. package/runtime/vendor/plugins/ruflo/ruflo-intelligence/agents/intelligence-specialist.md +0 -106
  4987. package/runtime/vendor/plugins/ruflo/ruflo-intelligence/commands/intelligence.md +0 -25
  4988. package/runtime/vendor/plugins/ruflo/ruflo-intelligence/commands/neural.md +0 -15
  4989. package/runtime/vendor/plugins/ruflo/ruflo-intelligence/scripts/smoke.sh +0 -152
  4990. package/runtime/vendor/plugins/ruflo/ruflo-intelligence/skills/intelligence-route/SKILL.md +0 -56
  4991. package/runtime/vendor/plugins/ruflo/ruflo-intelligence/skills/intelligence-transfer/SKILL.md +0 -80
  4992. package/runtime/vendor/plugins/ruflo/ruflo-intelligence/skills/neural-train/SKILL.md +0 -94
  4993. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/.claude-plugin/plugin.json +0 -26
  4994. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/README.md +0 -181
  4995. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/REFERENCE.md +0 -63
  4996. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/agents/device-coordinator.md +0 -30
  4997. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/agents/fleet-manager.md +0 -67
  4998. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/agents/telemetry-analyzer.md +0 -53
  4999. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/agents/witness-auditor.md +0 -38
  5000. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/commands/iot.md +0 -59
  5001. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/scripts/smoke.sh +0 -95
  5002. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/skills/iot-anomalies/SKILL.md +0 -14
  5003. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/skills/iot-firmware/SKILL.md +0 -15
  5004. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/skills/iot-fleet/SKILL.md +0 -13
  5005. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/skills/iot-register/SKILL.md +0 -18
  5006. package/runtime/vendor/plugins/ruflo/ruflo-iot-cognitum/skills/iot-witness-verify/SKILL.md +0 -14
  5007. package/runtime/vendor/plugins/ruflo/ruflo-jujutsu/.claude-plugin/plugin.json +0 -22
  5008. package/runtime/vendor/plugins/ruflo/ruflo-jujutsu/README.md +0 -75
  5009. package/runtime/vendor/plugins/ruflo/ruflo-jujutsu/agents/git-specialist.md +0 -38
  5010. package/runtime/vendor/plugins/ruflo/ruflo-jujutsu/commands/jujutsu.md +0 -12
  5011. package/runtime/vendor/plugins/ruflo/ruflo-jujutsu/scripts/smoke.sh +0 -75
  5012. package/runtime/vendor/plugins/ruflo/ruflo-jujutsu/skills/diff-analyze/SKILL.md +0 -31
  5013. package/runtime/vendor/plugins/ruflo/ruflo-jujutsu/skills/git-workflow/SKILL.md +0 -45
  5014. package/runtime/vendor/plugins/ruflo/ruflo-knowledge-graph/.claude-plugin/plugin.json +0 -21
  5015. package/runtime/vendor/plugins/ruflo/ruflo-knowledge-graph/README.md +0 -99
  5016. package/runtime/vendor/plugins/ruflo/ruflo-knowledge-graph/agents/graph-navigator.md +0 -80
  5017. package/runtime/vendor/plugins/ruflo/ruflo-knowledge-graph/commands/kg.md +0 -38
  5018. package/runtime/vendor/plugins/ruflo/ruflo-knowledge-graph/scripts/smoke.sh +0 -87
  5019. package/runtime/vendor/plugins/ruflo/ruflo-knowledge-graph/skills/kg-extract/SKILL.md +0 -44
  5020. package/runtime/vendor/plugins/ruflo/ruflo-knowledge-graph/skills/kg-traverse/SKILL.md +0 -30
  5021. package/runtime/vendor/plugins/ruflo/ruflo-loop-workers/.claude-plugin/plugin.json +0 -22
  5022. package/runtime/vendor/plugins/ruflo/ruflo-loop-workers/README.md +0 -95
  5023. package/runtime/vendor/plugins/ruflo/ruflo-loop-workers/agents/loop-worker-coordinator.md +0 -53
  5024. package/runtime/vendor/plugins/ruflo/ruflo-loop-workers/commands/ruflo-loop.md +0 -17
  5025. package/runtime/vendor/plugins/ruflo/ruflo-loop-workers/commands/ruflo-schedule.md +0 -18
  5026. package/runtime/vendor/plugins/ruflo/ruflo-loop-workers/scripts/smoke.sh +0 -95
  5027. package/runtime/vendor/plugins/ruflo/ruflo-loop-workers/skills/cron-schedule/SKILL.md +0 -25
  5028. package/runtime/vendor/plugins/ruflo/ruflo-loop-workers/skills/loop-worker/SKILL.md +0 -27
  5029. package/runtime/vendor/plugins/ruflo/ruflo-market-data/.claude-plugin/plugin.json +0 -21
  5030. package/runtime/vendor/plugins/ruflo/ruflo-market-data/README.md +0 -98
  5031. package/runtime/vendor/plugins/ruflo/ruflo-market-data/agents/data-engineer.md +0 -85
  5032. package/runtime/vendor/plugins/ruflo/ruflo-market-data/commands/market.md +0 -39
  5033. package/runtime/vendor/plugins/ruflo/ruflo-market-data/scripts/smoke.sh +0 -88
  5034. package/runtime/vendor/plugins/ruflo/ruflo-market-data/skills/market-ingest/SKILL.md +0 -34
  5035. package/runtime/vendor/plugins/ruflo/ruflo-market-data/skills/market-pattern/SKILL.md +0 -36
  5036. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/.claude-plugin/plugin.json +0 -32
  5037. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/README.md +0 -64
  5038. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/agents/metaharness-architect.md +0 -58
  5039. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/commands/ruflo-metaharness.md +0 -46
  5040. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/_harness.mjs +0 -261
  5041. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/_similarity.mjs +0 -161
  5042. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/_spike-similarity.mjs +0 -223
  5043. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/audit-list.mjs +0 -158
  5044. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/audit-trend.mjs +0 -272
  5045. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/bench-parse-mcp-scan.mjs +0 -146
  5046. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/bench-recordpair-overhead.mjs +0 -186
  5047. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/bench-similarity.mjs +0 -177
  5048. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/drift-from-history.mjs +0 -363
  5049. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/genome.mjs +0 -80
  5050. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/mcp-scan.mjs +0 -111
  5051. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/mint.mjs +0 -119
  5052. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/oia-audit.mjs +0 -228
  5053. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/router-parallel-analyze.mjs +0 -250
  5054. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/score.mjs +0 -92
  5055. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/similarity.mjs +0 -158
  5056. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/smoke.sh +0 -2268
  5057. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/test-graceful-degradation.mjs +0 -141
  5058. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/test-mcp-tools.mjs +0 -437
  5059. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/test-parallel-pipeline.mjs +0 -204
  5060. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/test-pipeline-roundtrip.mjs +0 -586
  5061. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/test-similarity.mjs +0 -334
  5062. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/test-with-openrouter.mjs +0 -229
  5063. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/scripts/threat-model.mjs +0 -59
  5064. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/skills/harness-drift-from-history/SKILL.md +0 -65
  5065. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/skills/harness-genome/SKILL.md +0 -54
  5066. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/skills/harness-mcp-scan/SKILL.md +0 -47
  5067. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/skills/harness-mint/SKILL.md +0 -72
  5068. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/skills/harness-oia-audit/SKILL.md +0 -79
  5069. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/skills/harness-score/SKILL.md +0 -66
  5070. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/skills/harness-similarity/SKILL.md +0 -67
  5071. package/runtime/vendor/plugins/ruflo/ruflo-metaharness/skills/harness-threat-model/SKILL.md +0 -39
  5072. package/runtime/vendor/plugins/ruflo/ruflo-migrations/.claude-plugin/plugin.json +0 -21
  5073. package/runtime/vendor/plugins/ruflo/ruflo-migrations/README.md +0 -95
  5074. package/runtime/vendor/plugins/ruflo/ruflo-migrations/agents/migration-engineer.md +0 -98
  5075. package/runtime/vendor/plugins/ruflo/ruflo-migrations/commands/migrate.md +0 -47
  5076. package/runtime/vendor/plugins/ruflo/ruflo-migrations/scripts/smoke.sh +0 -86
  5077. package/runtime/vendor/plugins/ruflo/ruflo-migrations/skills/migrate-create/SKILL.md +0 -35
  5078. package/runtime/vendor/plugins/ruflo/ruflo-migrations/skills/migrate-validate/SKILL.md +0 -35
  5079. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/.claude-plugin/plugin.json +0 -26
  5080. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/README.md +0 -326
  5081. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/agents/backtest-engineer.md +0 -74
  5082. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/agents/market-analyst.md +0 -92
  5083. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/agents/risk-analyst.md +0 -127
  5084. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/agents/trading-strategist.md +0 -170
  5085. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/benchmarks/backtest-throughput.bench.mjs +0 -247
  5086. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/benchmarks/memory-recall.bench.mjs +0 -198
  5087. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/benchmarks/portfolio-cg.bench.mjs +0 -256
  5088. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/benchmarks/results/backtest-throughput-baseline-20260520T203616Z.md +0 -48
  5089. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/benchmarks/results/cg-baseline-20260520T022220Z.md +0 -25
  5090. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/benchmarks/results/cg-native-baseline-20260520T202735Z.md +0 -104
  5091. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/benchmarks/results/memory-recall-baseline-20260520T203616Z.md +0 -45
  5092. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/benchmarks/results/signal-generation-baseline-20260520T203616Z.md +0 -43
  5093. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/benchmarks/signal-generation.bench.mjs +0 -233
  5094. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/commands/trader.md +0 -67
  5095. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/scripts/runtime-smoke.sh +0 -118
  5096. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/scripts/smoke.sh +0 -86
  5097. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/skills/trader-backtest/SKILL.md +0 -47
  5098. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/skills/trader-cloud-backtest/SKILL.md +0 -85
  5099. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/skills/trader-explain/SKILL.md +0 -137
  5100. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/skills/trader-portfolio/SKILL.md +0 -38
  5101. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/skills/trader-portfolio-cg/SKILL.md +0 -117
  5102. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/skills/trader-regime/SKILL.md +0 -30
  5103. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/skills/trader-risk/SKILL.md +0 -33
  5104. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/skills/trader-signal/SKILL.md +0 -35
  5105. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/skills/trader-train/SKILL.md +0 -30
  5106. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/src/pipeline-messages.ts +0 -147
  5107. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/src/signed-artifact.mjs +0 -98
  5108. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/src/signed-artifact.ts +0 -186
  5109. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/src/signed-attribution.mjs +0 -227
  5110. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/src/signed-attribution.ts +0 -416
  5111. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/src/sublinear-adapter.mjs +0 -245
  5112. package/runtime/vendor/plugins/ruflo/ruflo-neural-trader/src/sublinear-adapter.ts +0 -383
  5113. package/runtime/vendor/plugins/ruflo/ruflo-observability/.claude-plugin/plugin.json +0 -22
  5114. package/runtime/vendor/plugins/ruflo/ruflo-observability/README.md +0 -98
  5115. package/runtime/vendor/plugins/ruflo/ruflo-observability/agents/observability-engineer.md +0 -117
  5116. package/runtime/vendor/plugins/ruflo/ruflo-observability/commands/observe.md +0 -39
  5117. package/runtime/vendor/plugins/ruflo/ruflo-observability/scripts/smoke.sh +0 -86
  5118. package/runtime/vendor/plugins/ruflo/ruflo-observability/skills/observe-metrics/SKILL.md +0 -34
  5119. package/runtime/vendor/plugins/ruflo/ruflo-observability/skills/observe-trace/SKILL.md +0 -29
  5120. package/runtime/vendor/plugins/ruflo/ruflo-plugin-creator/.claude-plugin/plugin.json +0 -21
  5121. package/runtime/vendor/plugins/ruflo/ruflo-plugin-creator/README.md +0 -75
  5122. package/runtime/vendor/plugins/ruflo/ruflo-plugin-creator/agents/plugin-developer.md +0 -40
  5123. package/runtime/vendor/plugins/ruflo/ruflo-plugin-creator/commands/create-plugin.md +0 -11
  5124. package/runtime/vendor/plugins/ruflo/ruflo-plugin-creator/scripts/smoke.sh +0 -83
  5125. package/runtime/vendor/plugins/ruflo/ruflo-plugin-creator/skills/create-plugin/SKILL.md +0 -105
  5126. package/runtime/vendor/plugins/ruflo/ruflo-plugin-creator/skills/validate-plugin/SKILL.md +0 -34
  5127. package/runtime/vendor/plugins/ruflo/ruflo-rag-memory/.claude-plugin/plugin.json +0 -22
  5128. package/runtime/vendor/plugins/ruflo/ruflo-rag-memory/README.md +0 -202
  5129. package/runtime/vendor/plugins/ruflo/ruflo-rag-memory/agents/memory-specialist.md +0 -120
  5130. package/runtime/vendor/plugins/ruflo/ruflo-rag-memory/commands/recall.md +0 -23
  5131. package/runtime/vendor/plugins/ruflo/ruflo-rag-memory/commands/ruflo-memory.md +0 -38
  5132. package/runtime/vendor/plugins/ruflo/ruflo-rag-memory/scripts/smoke.sh +0 -84
  5133. package/runtime/vendor/plugins/ruflo/ruflo-rag-memory/skills/memory-bridge/SKILL.md +0 -59
  5134. package/runtime/vendor/plugins/ruflo/ruflo-rag-memory/skills/memory-search/SKILL.md +0 -67
  5135. package/runtime/vendor/plugins/ruflo/ruflo-ruvector/.claude-plugin/plugin.json +0 -23
  5136. package/runtime/vendor/plugins/ruflo/ruflo-ruvector/README.md +0 -262
  5137. package/runtime/vendor/plugins/ruflo/ruflo-ruvector/agents/vector-engineer.md +0 -194
  5138. package/runtime/vendor/plugins/ruflo/ruflo-ruvector/commands/vector.md +0 -155
  5139. package/runtime/vendor/plugins/ruflo/ruflo-ruvector/scripts/smoke.sh +0 -76
  5140. package/runtime/vendor/plugins/ruflo/ruflo-ruvector/skills/vector-cluster/SKILL.md +0 -41
  5141. package/runtime/vendor/plugins/ruflo/ruflo-ruvector/skills/vector-embed/SKILL.md +0 -47
  5142. package/runtime/vendor/plugins/ruflo/ruflo-ruvector/skills/vector-hyperbolic/SKILL.md +0 -55
  5143. package/runtime/vendor/plugins/ruflo/ruflo-ruvector/skills/vector-setup/SKILL.md +0 -82
  5144. package/runtime/vendor/plugins/ruflo/ruflo-ruvllm/.claude-plugin/plugin.json +0 -22
  5145. package/runtime/vendor/plugins/ruflo/ruflo-ruvllm/README.md +0 -68
  5146. package/runtime/vendor/plugins/ruflo/ruflo-ruvllm/agents/llm-specialist.md +0 -37
  5147. package/runtime/vendor/plugins/ruflo/ruflo-ruvllm/commands/ruvllm.md +0 -9
  5148. package/runtime/vendor/plugins/ruflo/ruflo-ruvllm/scripts/smoke.sh +0 -77
  5149. package/runtime/vendor/plugins/ruflo/ruflo-ruvllm/skills/chat-format/SKILL.md +0 -30
  5150. package/runtime/vendor/plugins/ruflo/ruflo-ruvllm/skills/llm-config/SKILL.md +0 -32
  5151. package/runtime/vendor/plugins/ruflo/ruflo-rvf/.claude-plugin/plugin.json +0 -22
  5152. package/runtime/vendor/plugins/ruflo/ruflo-rvf/README.md +0 -78
  5153. package/runtime/vendor/plugins/ruflo/ruflo-rvf/agents/session-specialist.md +0 -30
  5154. package/runtime/vendor/plugins/ruflo/ruflo-rvf/commands/rvf.md +0 -10
  5155. package/runtime/vendor/plugins/ruflo/ruflo-rvf/scripts/smoke.sh +0 -79
  5156. package/runtime/vendor/plugins/ruflo/ruflo-rvf/skills/rvf-manage/SKILL.md +0 -37
  5157. package/runtime/vendor/plugins/ruflo/ruflo-rvf/skills/session-persist/SKILL.md +0 -35
  5158. package/runtime/vendor/plugins/ruflo/ruflo-security-audit/.claude-plugin/plugin.json +0 -22
  5159. package/runtime/vendor/plugins/ruflo/ruflo-security-audit/README.md +0 -69
  5160. package/runtime/vendor/plugins/ruflo/ruflo-security-audit/agents/security-auditor.md +0 -50
  5161. package/runtime/vendor/plugins/ruflo/ruflo-security-audit/commands/audit.md +0 -18
  5162. package/runtime/vendor/plugins/ruflo/ruflo-security-audit/scripts/smoke.sh +0 -79
  5163. package/runtime/vendor/plugins/ruflo/ruflo-security-audit/skills/dependency-check/SKILL.md +0 -25
  5164. package/runtime/vendor/plugins/ruflo/ruflo-security-audit/skills/security-scan/SKILL.md +0 -24
  5165. package/runtime/vendor/plugins/ruflo/ruflo-sparc/.claude-plugin/plugin.json +0 -22
  5166. package/runtime/vendor/plugins/ruflo/ruflo-sparc/README.md +0 -111
  5167. package/runtime/vendor/plugins/ruflo/ruflo-sparc/agents/sparc-orchestrator.md +0 -145
  5168. package/runtime/vendor/plugins/ruflo/ruflo-sparc/commands/ruflo-sparc.md +0 -95
  5169. package/runtime/vendor/plugins/ruflo/ruflo-sparc/scripts/smoke.sh +0 -91
  5170. package/runtime/vendor/plugins/ruflo/ruflo-sparc/skills/sparc-implement/SKILL.md +0 -122
  5171. package/runtime/vendor/plugins/ruflo/ruflo-sparc/skills/sparc-refine/SKILL.md +0 -130
  5172. package/runtime/vendor/plugins/ruflo/ruflo-sparc/skills/sparc-spec/SKILL.md +0 -95
  5173. package/runtime/vendor/plugins/ruflo/ruflo-swarm/.claude-plugin/plugin.json +0 -22
  5174. package/runtime/vendor/plugins/ruflo/ruflo-swarm/README.md +0 -86
  5175. package/runtime/vendor/plugins/ruflo/ruflo-swarm/agents/architect.md +0 -39
  5176. package/runtime/vendor/plugins/ruflo/ruflo-swarm/agents/coordinator.md +0 -31
  5177. package/runtime/vendor/plugins/ruflo/ruflo-swarm/commands/swarm.md +0 -16
  5178. package/runtime/vendor/plugins/ruflo/ruflo-swarm/commands/watch.md +0 -13
  5179. package/runtime/vendor/plugins/ruflo/ruflo-swarm/scripts/smoke.sh +0 -93
  5180. package/runtime/vendor/plugins/ruflo/ruflo-swarm/skills/monitor-stream/SKILL.md +0 -15
  5181. package/runtime/vendor/plugins/ruflo/ruflo-swarm/skills/swarm-init/SKILL.md +0 -21
  5182. package/runtime/vendor/plugins/ruflo/ruflo-testgen/.claude-plugin/plugin.json +0 -21
  5183. package/runtime/vendor/plugins/ruflo/ruflo-testgen/README.md +0 -74
  5184. package/runtime/vendor/plugins/ruflo/ruflo-testgen/agents/tester.md +0 -39
  5185. package/runtime/vendor/plugins/ruflo/ruflo-testgen/commands/testgen.md +0 -19
  5186. package/runtime/vendor/plugins/ruflo/ruflo-testgen/scripts/smoke.sh +0 -79
  5187. package/runtime/vendor/plugins/ruflo/ruflo-testgen/skills/tdd-workflow/SKILL.md +0 -22
  5188. package/runtime/vendor/plugins/ruflo/ruflo-testgen/skills/test-gaps/SKILL.md +0 -17
  5189. package/runtime/vendor/plugins/ruflo/ruflo-workflows/.claude-plugin/plugin.json +0 -70
  5190. package/runtime/vendor/plugins/ruflo/ruflo-workflows/README.md +0 -148
  5191. package/runtime/vendor/plugins/ruflo/ruflo-workflows/agents/gaia-benchmark-runner.md +0 -78
  5192. package/runtime/vendor/plugins/ruflo/ruflo-workflows/agents/gaia-submission-coordinator.md +0 -95
  5193. package/runtime/vendor/plugins/ruflo/ruflo-workflows/agents/workflow-specialist.md +0 -55
  5194. package/runtime/vendor/plugins/ruflo/ruflo-workflows/commands/gaia-cost.md +0 -78
  5195. package/runtime/vendor/plugins/ruflo/ruflo-workflows/commands/gaia-history.md +0 -73
  5196. package/runtime/vendor/plugins/ruflo/ruflo-workflows/commands/gaia-leaderboard.md +0 -62
  5197. package/runtime/vendor/plugins/ruflo/ruflo-workflows/commands/gaia-run.md +0 -98
  5198. package/runtime/vendor/plugins/ruflo/ruflo-workflows/commands/gaia-submit.md +0 -86
  5199. package/runtime/vendor/plugins/ruflo/ruflo-workflows/commands/gaia-validate.md +0 -94
  5200. package/runtime/vendor/plugins/ruflo/ruflo-workflows/commands/gaia.md +0 -48
  5201. package/runtime/vendor/plugins/ruflo/ruflo-workflows/commands/workflow.md +0 -20
  5202. package/runtime/vendor/plugins/ruflo/ruflo-workflows/scripts/smoke-gaia.sh +0 -140
  5203. package/runtime/vendor/plugins/ruflo/ruflo-workflows/scripts/smoke.sh +0 -115
  5204. package/runtime/vendor/plugins/ruflo/ruflo-workflows/skills/gaia-architecture-comparison/SKILL.md +0 -127
  5205. package/runtime/vendor/plugins/ruflo/ruflo-workflows/skills/gaia-debugging/SKILL.md +0 -116
  5206. package/runtime/vendor/plugins/ruflo/ruflo-workflows/skills/gaia-submission/SKILL.md +0 -123
  5207. package/runtime/vendor/plugins/ruflo/ruflo-workflows/skills/workflow-create/SKILL.md +0 -60
  5208. package/runtime/vendor/plugins/ruflo/ruflo-workflows/skills/workflow-run/SKILL.md +0 -40
  5209. package/runtime/vendor/skills/CATALOG.md +0 -78
  5210. package/runtime/vendor/skills/andrej-karpathy-skills/karpathy-guidelines/SKILL.md +0 -67
  5211. package/runtime/vendor/skills/app/SKILL.md +0 -1456
  5212. package/runtime/vendor/skills/app/agents/openai.yaml +0 -4
  5213. package/runtime/vendor/skills/app/skill.json +0 -36
  5214. package/runtime/vendor/skills/app/spec.md +0 -1454
  5215. package/runtime/vendor/skills/book-to-skill/BACKERS.md +0 -27
  5216. package/runtime/vendor/skills/book-to-skill/CHANGELOG.md +0 -154
  5217. package/runtime/vendor/skills/book-to-skill/CONTRIBUTING.md +0 -55
  5218. package/runtime/vendor/skills/book-to-skill/LICENSE.md +0 -21
  5219. package/runtime/vendor/skills/book-to-skill/README.md +0 -438
  5220. package/runtime/vendor/skills/book-to-skill/SECURITY.md +0 -33
  5221. package/runtime/vendor/skills/book-to-skill/SKILL.md +0 -634
  5222. package/runtime/vendor/skills/book-to-skill/book_to_skill/__init__.py +0 -4
  5223. package/runtime/vendor/skills/book-to-skill/book_to_skill/__main__.py +0 -4
  5224. package/runtime/vendor/skills/book-to-skill/book_to_skill/cli.py +0 -16
  5225. package/runtime/vendor/skills/book-to-skill/book_to_skill/config.py +0 -38
  5226. package/runtime/vendor/skills/book-to-skill/book_to_skill/dependencies.py +0 -289
  5227. package/runtime/vendor/skills/book-to-skill/book_to_skill/exceptions.py +0 -2
  5228. package/runtime/vendor/skills/book-to-skill/book_to_skill/parsers/__init__.py +0 -1
  5229. package/runtime/vendor/skills/book-to-skill/book_to_skill/parsers/calibre.py +0 -26
  5230. package/runtime/vendor/skills/book-to-skill/book_to_skill/parsers/docx.py +0 -89
  5231. package/runtime/vendor/skills/book-to-skill/book_to_skill/parsers/epub.py +0 -101
  5232. package/runtime/vendor/skills/book-to-skill/book_to_skill/parsers/html.py +0 -54
  5233. package/runtime/vendor/skills/book-to-skill/book_to_skill/parsers/pdf.py +0 -100
  5234. package/runtime/vendor/skills/book-to-skill/book_to_skill/parsers/rtf.py +0 -47
  5235. package/runtime/vendor/skills/book-to-skill/book_to_skill/parsers/text.py +0 -15
  5236. package/runtime/vendor/skills/book-to-skill/book_to_skill/utils.py +0 -678
  5237. package/runtime/vendor/skills/book-to-skill/mkdocs.yml +0 -69
  5238. package/runtime/vendor/skills/book-to-skill/pyproject.toml +0 -42
  5239. package/runtime/vendor/skills/book-to-skill/scripts/banner.txt +0 -26
  5240. package/runtime/vendor/skills/book-to-skill/scripts/extract.py +0 -26
  5241. package/runtime/vendor/skills/book-to-skill/tests/test_book_to_skill.py +0 -1035
  5242. package/runtime/vendor/skills/book-to-skill/tests/test_discovery_tax.py +0 -122
  5243. package/runtime/vendor/skills/book-to-skill/tools/discovery_tax.py +0 -192
  5244. package/runtime/vendor/skills/book-to-skill/tools/validate_skill.py +0 -220
  5245. package/runtime/vendor/skills/drawio-diagramming/SKILL.md +0 -35
  5246. package/runtime/vendor/skills/drawio-diagramming/agents/openai.yaml +0 -4
  5247. package/runtime/vendor/skills/drawio-diagramming/references/diagram-types.md +0 -20
  5248. package/runtime/vendor/skills/drawio-diagramming/references/layout-patterns.md +0 -21
  5249. package/runtime/vendor/skills/drawio-diagramming/references/mxfile-format.md +0 -28
  5250. package/runtime/vendor/skills/drawio-diagramming/references/visual-quality-gates.md +0 -15
  5251. package/runtime/vendor/skills/drawio-diagramming/scripts/inspect_drawio.py +0 -36
  5252. package/runtime/vendor/skills/drawio-diagramming/scripts/validate_drawio.py +0 -86
  5253. package/runtime/vendor/skills/ecc/agent-introspection-debugging/SKILL.md +0 -152
  5254. package/runtime/vendor/skills/ecc/agent-introspection-debugging/agents/openai.yaml +0 -7
  5255. package/runtime/vendor/skills/ecc/agent-sort/SKILL.md +0 -214
  5256. package/runtime/vendor/skills/ecc/agent-sort/agents/openai.yaml +0 -7
  5257. package/runtime/vendor/skills/ecc/api-design/SKILL.md +0 -522
  5258. package/runtime/vendor/skills/ecc/api-design/agents/openai.yaml +0 -7
  5259. package/runtime/vendor/skills/ecc/article-writing/SKILL.md +0 -78
  5260. package/runtime/vendor/skills/ecc/article-writing/agents/openai.yaml +0 -7
  5261. package/runtime/vendor/skills/ecc/backend-patterns/SKILL.md +0 -597
  5262. package/runtime/vendor/skills/ecc/backend-patterns/agents/openai.yaml +0 -7
  5263. package/runtime/vendor/skills/ecc/benchmark-methodology/SKILL.md +0 -190
  5264. package/runtime/vendor/skills/ecc/benchmark-methodology/agents/openai.yaml +0 -7
  5265. package/runtime/vendor/skills/ecc/brand-discovery/SKILL.md +0 -145
  5266. package/runtime/vendor/skills/ecc/brand-discovery/agents/openai.yaml +0 -7
  5267. package/runtime/vendor/skills/ecc/brand-discovery/references/10_purpose-why.md +0 -40
  5268. package/runtime/vendor/skills/ecc/brand-discovery/references/20_positioning.md +0 -44
  5269. package/runtime/vendor/skills/ecc/brand-discovery/references/30_audience-niche.md +0 -52
  5270. package/runtime/vendor/skills/ecc/brand-discovery/references/40_personality-archetype.md +0 -57
  5271. package/runtime/vendor/skills/ecc/brand-discovery/references/50_voice-tone.md +0 -59
  5272. package/runtime/vendor/skills/ecc/brand-discovery/references/60_narrative-story.md +0 -50
  5273. package/runtime/vendor/skills/ecc/brand-discovery/references/70_founder-tension.md +0 -49
  5274. package/runtime/vendor/skills/ecc/brand-discovery/references/90_SYNTHESIS.md +0 -133
  5275. package/runtime/vendor/skills/ecc/brand-voice/SKILL.md +0 -96
  5276. package/runtime/vendor/skills/ecc/brand-voice/agents/openai.yaml +0 -7
  5277. package/runtime/vendor/skills/ecc/brand-voice/references/voice-profile-schema.md +0 -55
  5278. package/runtime/vendor/skills/ecc/bun-runtime/SKILL.md +0 -83
  5279. package/runtime/vendor/skills/ecc/bun-runtime/agents/openai.yaml +0 -7
  5280. package/runtime/vendor/skills/ecc/coding-standards/SKILL.md +0 -549
  5281. package/runtime/vendor/skills/ecc/coding-standards/agents/openai.yaml +0 -7
  5282. package/runtime/vendor/skills/ecc/competitive-platform-analysis/SKILL.md +0 -214
  5283. package/runtime/vendor/skills/ecc/competitive-platform-analysis/agents/openai.yaml +0 -7
  5284. package/runtime/vendor/skills/ecc/competitive-report-structure/SKILL.md +0 -162
  5285. package/runtime/vendor/skills/ecc/competitive-report-structure/agents/openai.yaml +0 -7
  5286. package/runtime/vendor/skills/ecc/content-engine/SKILL.md +0 -130
  5287. package/runtime/vendor/skills/ecc/content-engine/agents/openai.yaml +0 -7
  5288. package/runtime/vendor/skills/ecc/crosspost/SKILL.md +0 -110
  5289. package/runtime/vendor/skills/ecc/crosspost/agents/openai.yaml +0 -7
  5290. package/runtime/vendor/skills/ecc/deep-research/SKILL.md +0 -154
  5291. package/runtime/vendor/skills/ecc/deep-research/agents/openai.yaml +0 -7
  5292. package/runtime/vendor/skills/ecc/dmux-workflows/SKILL.md +0 -143
  5293. package/runtime/vendor/skills/ecc/dmux-workflows/agents/openai.yaml +0 -7
  5294. package/runtime/vendor/skills/ecc/documentation-lookup/SKILL.md +0 -89
  5295. package/runtime/vendor/skills/ecc/documentation-lookup/agents/openai.yaml +0 -7
  5296. package/runtime/vendor/skills/ecc/e2e-testing/SKILL.md +0 -325
  5297. package/runtime/vendor/skills/ecc/e2e-testing/agents/openai.yaml +0 -7
  5298. package/runtime/vendor/skills/ecc/eval-harness/SKILL.md +0 -235
  5299. package/runtime/vendor/skills/ecc/eval-harness/agents/openai.yaml +0 -7
  5300. package/runtime/vendor/skills/ecc/everything-claude-code/SKILL.md +0 -442
  5301. package/runtime/vendor/skills/ecc/everything-claude-code/agents/openai.yaml +0 -7
  5302. package/runtime/vendor/skills/ecc/exa-search/SKILL.md +0 -169
  5303. package/runtime/vendor/skills/ecc/exa-search/agents/openai.yaml +0 -7
  5304. package/runtime/vendor/skills/ecc/fal-ai-media/SKILL.md +0 -276
  5305. package/runtime/vendor/skills/ecc/fal-ai-media/agents/openai.yaml +0 -7
  5306. package/runtime/vendor/skills/ecc/frontend-patterns/SKILL.md +0 -661
  5307. package/runtime/vendor/skills/ecc/frontend-patterns/agents/openai.yaml +0 -7
  5308. package/runtime/vendor/skills/ecc/frontend-slides/SKILL.md +0 -183
  5309. package/runtime/vendor/skills/ecc/frontend-slides/STYLE_PRESETS.md +0 -330
  5310. package/runtime/vendor/skills/ecc/frontend-slides/agents/openai.yaml +0 -7
  5311. package/runtime/vendor/skills/ecc/investor-materials/SKILL.md +0 -95
  5312. package/runtime/vendor/skills/ecc/investor-materials/agents/openai.yaml +0 -7
  5313. package/runtime/vendor/skills/ecc/investor-outreach/SKILL.md +0 -90
  5314. package/runtime/vendor/skills/ecc/investor-outreach/agents/openai.yaml +0 -7
  5315. package/runtime/vendor/skills/ecc/market-research/SKILL.md +0 -74
  5316. package/runtime/vendor/skills/ecc/market-research/agents/openai.yaml +0 -7
  5317. package/runtime/vendor/skills/ecc/mcp-server-patterns/SKILL.md +0 -66
  5318. package/runtime/vendor/skills/ecc/mcp-server-patterns/agents/openai.yaml +0 -7
  5319. package/runtime/vendor/skills/ecc/mle-workflow/SKILL.md +0 -346
  5320. package/runtime/vendor/skills/ecc/mle-workflow/agents/openai.yaml +0 -7
  5321. package/runtime/vendor/skills/ecc/nextjs-turbopack/SKILL.md +0 -43
  5322. package/runtime/vendor/skills/ecc/nextjs-turbopack/agents/openai.yaml +0 -7
  5323. package/runtime/vendor/skills/ecc/product-capability/SKILL.md +0 -140
  5324. package/runtime/vendor/skills/ecc/product-capability/agents/openai.yaml +0 -7
  5325. package/runtime/vendor/skills/ecc/security-review/SKILL.md +0 -494
  5326. package/runtime/vendor/skills/ecc/security-review/agents/openai.yaml +0 -7
  5327. package/runtime/vendor/skills/ecc/strategic-compact/SKILL.md +0 -103
  5328. package/runtime/vendor/skills/ecc/strategic-compact/agents/openai.yaml +0 -7
  5329. package/runtime/vendor/skills/ecc/tdd-workflow/SKILL.md +0 -409
  5330. package/runtime/vendor/skills/ecc/tdd-workflow/agents/openai.yaml +0 -7
  5331. package/runtime/vendor/skills/ecc/verification-loop/SKILL.md +0 -125
  5332. package/runtime/vendor/skills/ecc/verification-loop/agents/openai.yaml +0 -7
  5333. package/runtime/vendor/skills/ecc/video-editing/SKILL.md +0 -307
  5334. package/runtime/vendor/skills/ecc/video-editing/agents/openai.yaml +0 -7
  5335. package/runtime/vendor/skills/ecc/x-api/SKILL.md +0 -229
  5336. package/runtime/vendor/skills/ecc/x-api/agents/openai.yaml +0 -7
  5337. package/runtime/vendor/skills/napkin/README.md +0 -40
  5338. package/runtime/vendor/skills/napkin/SKILL.md +0 -109
  5339. package/runtime/vendor/skills/napkin/napkin.md +0 -67
  5340. package/runtime/workflows/azure-card-analysis/README.md +0 -3
  5341. package/runtime/workflows/azure-card-analysis/workflow.yaml +0 -30
  5342. package/runtime/workflows/daily-pr-review/README.md +0 -3
  5343. package/runtime/workflows/daily-pr-review/workflow.yaml +0 -31
  5344. package/runtime/workflows/incident-analysis/README.md +0 -3
  5345. package/runtime/workflows/incident-analysis/workflow.yaml +0 -33
  5346. package/runtime/workflows/release-prep/README.md +0 -3
  5347. package/runtime/workflows/release-prep/workflow.yaml +0 -30
  5348. /package/{runtime/agents/knowledge-author/infra → src/assets/fonts}/.gitkeep +0 -0
  5349. /package/{runtime/agents/knowledge-author/templates → src/assets/i18n}/.gitkeep +0 -0
  5350. /package/{runtime/agents/knowledge-curator/infra → src/assets/images}/.gitkeep +0 -0
  5351. /package/{runtime/agents/knowledge-curator/templates → src/assets/themes}/.gitkeep +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/main.tsx","../package.json","../src/app/cli/commands/aliasCommand.ts","../src/infra/bases/capability.ts","../src/infra/bases/errors.ts","../src/infra/bases/result.ts","../src/modules/user/capabilities/cliAlias/cliAlias.entities.ts","../src/modules/user/capabilities/cliAlias/cliAlias.service.ts","../src/infra/assets/i18n_catalog.ts","../src/infra/bases/i18n.ts","../src/modules/user/capabilities/cliAlias/cliAlias.viewmodel.ts","../src/modules/user/capabilities/personalization/personalization.entities.ts","../src/infra/bases/character.ts","../src/modules/user/capabilities/personalization/personalization.service.ts","../src/modules/user/capabilities/personalization/personalization.viewmodel.ts","../src/modules/user/capabilities/preferences/preferences.entities.ts","../src/infra/bases/theme.ts","../src/modules/user/capabilities/preferences/preferences.service.ts","../src/modules/user/capabilities/preferences/preferences.viewmodel.ts","../src/infra/bases/bind.ts","../src/modules/user/capabilities/cliAlias/cliAlias.repository.ts","../src/modules/user/capabilities/personalization/personalization.repository.ts","../src/infra/data/local_agent_data_store.ts","../src/modules/user/capabilities/preferences/preferences.repository.ts","../src/infra/bases/module.ts","../src/modules/user/user.config.ts","../src/modules/user/user.bind.ts","../src/app/cli/command_options.ts","../src/modules/project/capabilities/doctor/doctor.service.ts","../src/modules/project/capabilities/doctor/doctor.entities.ts","../src/modules/project/capabilities/doctor/doctor.viewmodel.ts","../src/modules/project/capabilities/init/init.entities.ts","../src/modules/project/capabilities/init/init.service.ts","../src/modules/project/capabilities/init/init.viewmodel.ts","../src/modules/project/capabilities/reset/reset.service.ts","../src/modules/project/capabilities/reset/reset.entities.ts","../src/modules/project/capabilities/reset/reset.viewmodel.ts","../src/modules/project/capabilities/doctor/doctor.repository.ts","../src/modules/project/capabilities/init/init.repository.ts","../src/modules/project/capabilities/reset/reset.repository.ts","../src/modules/project/project.config.ts","../src/modules/project/project.bind.ts","../src/modules/project/project.surface.ts","../src/infra/helpers/surface_capabilities.ts","../src/infra/helpers/surface_loader.ts","../src/infra/bases/surface.ts","../src/app/cli/commands/doctorCommand.ts","../src/app/cli/commands/initCommand.ts","../src/modules/environment/capabilities/dependencies/providers/node.provider.ts","../src/modules/environment/capabilities/dependencies/dependencies.repository.ts","../src/modules/environment/capabilities/dependencies/dependencies.entities.ts","../src/modules/environment/capabilities/dependencies/dependencies.service.ts","../src/modules/environment/capabilities/dependencies/dependencies.viewmodel.ts","../src/modules/environment/environment.config.ts","../src/modules/environment/environment.bind.ts","../src/modules/environment/environment.surface.ts","../src/app/cli/toolRuntime.ts","../src/infra/models/model_store.ts","../src/infra/bases/model.ts","../src/infra/brain/local_llama_provider.ts","../src/infra/brain/mock_provider.ts","../src/infra/brain/brain_dock.ts","../src/infra/capabilities/capability_registry.ts","../src/modules/context/capabilities/projects/projects.entities.ts","../src/modules/context/capabilities/projects/projects.repository.ts","../src/modules/context/capabilities/projects/projects.service.ts","../src/modules/context/capabilities/sessions/sessions.entities.ts","../src/modules/context/capabilities/sessions/sessions.repository.ts","../src/modules/context/capabilities/sessions/sessions.service.ts","../src/modules/context/context.config.ts","../src/modules/context/context.bind.ts","../src/modules/context/context.surface.ts","../src/infra/bases/prompt.ts","../src/modules/conversation/capabilities/chat/chat.repository.ts","../src/modules/conversation/capabilities/chat/chat.entities.ts","../src/infra/bases/brain.ts","../src/modules/conversation/capabilities/chat/chat.service.ts","../src/modules/conversation/conversation.config.ts","../src/modules/conversation/conversation.bind.ts","../src/modules/conversation/conversation.surface.ts","../src/modules/logs/capabilities/analysis/analysis.repository.ts","../src/modules/logs/capabilities/analysis/analysis.entities.ts","../src/modules/logs/capabilities/analysis/analysis.service.ts","../src/modules/logs/logs.config.ts","../src/modules/logs/logs.bind.ts","../src/modules/logs/logs.surface.ts","../src/infra/models/model_catalog.ts","../src/infra/assets/asset_loader.ts","../src/modules/models/capabilities/registry/registry.repository.ts","../src/modules/models/capabilities/registry/registry.entities.ts","../src/modules/models/capabilities/registry/registry.service.ts","../src/modules/models/models.config.ts","../src/modules/models/models.bind.ts","../src/modules/models/models.surface.ts","../src/infra/crypto/encrypted_secret_store.ts","../src/infra/bases/logger.ts","../src/infra/helpers/error_cause.ts","../src/infra/crypto/local_master_key_provider.ts","../src/infra/crypto/local_secret_crypto.ts","../src/modules/secrets/capabilities/vault/vault.repository.ts","../src/modules/secrets/capabilities/vault/vault.entities.ts","../src/modules/secrets/capabilities/vault/vault.service.ts","../src/modules/secrets/secrets.config.ts","../src/modules/secrets/secrets.bind.ts","../src/modules/secrets/secrets.surface.ts","../src/modules/self/capabilities/update/update.repository.ts","../src/modules/self/capabilities/update/update.entities.ts","../src/modules/self/capabilities/update/update.service.ts","../src/modules/self/self.config.ts","../src/modules/self/self.bind.ts","../src/modules/self/self.surface.ts","../src/modules/user/user.surface.ts","../src/modules/modules.registry.ts","../src/modules/capability_registry.ts","../src/modules/capability_tool_runtime.ts","../src/app/cli/commands/installCommand.ts","../src/app/cli/commands/logsCommand.ts","../src/modules/logs/capabilities/analysis/analysis.viewmodel.ts","../src/app/mcp/mcp_http_transport.ts","../src/app/mcp/mcp_server.ts","../src/infra/agent/agent_runtime.ts","../src/app/mcp/mcp_result_mapper.ts","../src/app/mcp/mcp_stdio_transport.ts","../src/app/cli/commands/mcpCommand.ts","../src/app/cli/commands/modelsCommand.ts","../src/modules/models/capabilities/registry/registry.viewmodel.ts","../src/app/cli/commands/personalizationCommand.ts","../src/app/cli/commands/preferencesCommand.ts","../src/app/cli/commands/projectsCommand.ts","../src/modules/context/capabilities/projects/projects.viewmodel.ts","../src/modules/context/capabilities/sessions/sessions.viewmodel.ts","../src/app/cli/commands/resetCommand.ts","../src/app/cli/commands/runCommand.ts","../src/app/cli/commands/secretsCommand.ts","../src/modules/secrets/capabilities/vault/vault.viewmodel.ts","../src/app/cli/commands/sessionsCommand.ts","../src/app/cli/commands/toolsCommand.ts","../src/modules/self/capabilities/update/update.viewmodel.ts","../src/app/cli/commands/updateCommand.ts","../src/app/cli/firstRun.ts","../src/app/cli/i18n.ts","../src/app/cli/rootConversation.ts","../src/modules/conversation/capabilities/chat/chat.viewmodel.ts","../src/infra/helpers/redaction.ts","../src/app/cli/usageLogging.ts","../src/app/tui/App.tsx","../src/infra/logging/json_technical_logger.ts","../src/infra/logging/json_usage_logger.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { Command } from \"commander\";\nimport { render } from \"ink\";\nimport React from \"react\";\nimport packageJson from \"../package.json\";\nimport { registerAliasCommand } from \"./app/cli/commands/aliasCommand\";\nimport { registerDoctorCommand } from \"./app/cli/commands/doctorCommand\";\nimport { registerInitCommand } from \"./app/cli/commands/initCommand\";\nimport { registerInstallCommand } from \"./app/cli/commands/installCommand\";\nimport { registerLogsCommand } from \"./app/cli/commands/logsCommand\";\nimport { registerMcpCommand } from \"./app/cli/commands/mcpCommand\";\nimport { registerModelsCommand } from \"./app/cli/commands/modelsCommand\";\nimport { registerPersonalizationCommand } from \"./app/cli/commands/personalizationCommand\";\nimport { registerPreferencesCommand } from \"./app/cli/commands/preferencesCommand\";\nimport { registerProjectsCommand } from \"./app/cli/commands/projectsCommand\";\nimport { registerResetCommand } from \"./app/cli/commands/resetCommand\";\nimport { registerRunCommand } from \"./app/cli/commands/runCommand\";\nimport { registerSecretsCommand } from \"./app/cli/commands/secretsCommand\";\nimport { registerSessionsCommand } from \"./app/cli/commands/sessionsCommand\";\nimport { registerToolsCommand } from \"./app/cli/commands/toolsCommand\";\nimport { registerUpdateCommand } from \"./app/cli/commands/updateCommand\";\nimport { ensureFirstRunModel } from \"./app/cli/firstRun\";\nimport {\n configureLocalizedHelp,\n createCliTranslator,\n loadCliUserPreferences,\n} from \"./app/cli/i18n\";\nimport { runRootConversation } from \"./app/cli/rootConversation\";\nimport { CliUsageLoggingMiddleware } from \"./app/cli/usageLogging\";\nimport { App } from \"./app/tui/App\";\nimport { JsonTechnicalLogger } from \"./infra/logging/json_technical_logger\";\nimport { JsonUsageLogger } from \"./infra/logging/json_usage_logger\";\n\nconst program = new Command();\nconst userPreferences = loadCliUserPreferences();\nconst translator = createCliTranslator();\nconst usageLogging = new CliUsageLoggingMiddleware({\n logger: new JsonUsageLogger({ retentionDays: userPreferences.logRetentionDays }),\n technicalLogger: new JsonTechnicalLogger({ retentionDays: userPreferences.logRetentionDays }),\n});\nconfigureLocalizedHelp(program, translator);\n\nconst removedRootCommandAliases = new Set([\"ask\", \"chat\"]);\n\nprogram\n .name(\"agent\")\n .description(translator.t(\"cli.root.description\"))\n .version(packageJson.version, \"-v, --version\", translator.t(\"cli.version.option\"))\n .argument(\"[prompt...]\", translator.t(\"cli.root.promptArgument\"))\n .action(\n usageLogging.track({ area: \"user\", command: \"tui\" }, async (promptParts: string[]) => {\n const initialPrompt = promptParts.join(\" \").trim();\n const firstPromptPart = promptParts[0]?.toLowerCase();\n\n if (typeof firstPromptPart === \"string\" && removedRootCommandAliases.has(firstPromptPart)) {\n program.error(translator.t(\"cli.root.removedChatCommand\"));\n }\n\n if (initialPrompt.length > 0) {\n await runRootConversation(initialPrompt);\n return;\n }\n\n await ensureFirstRunModel(translator);\n render(React.createElement(App, { translator }));\n }),\n );\n\nregisterDoctorCommand(program, { appVersion: packageJson.version, translator, usageLogging });\nregisterAliasCommand(program, { translator, usageLogging });\nregisterInitCommand(program, { appVersion: packageJson.version, translator, usageLogging });\nregisterInstallCommand(program, {\n currentVersion: packageJson.version,\n packageName: packageJson.name,\n translator,\n usageLogging,\n});\nregisterLogsCommand(program, { translator, usageLogging });\nregisterMcpCommand(program, {\n currentVersion: packageJson.version,\n packageName: packageJson.name,\n translator,\n usageLogging,\n});\nregisterModelsCommand(program, { translator, usageLogging });\nregisterPersonalizationCommand(program, { translator, usageLogging });\nregisterPreferencesCommand(program, { translator, usageLogging });\nregisterProjectsCommand(program, { translator, usageLogging });\nregisterResetCommand(program, { appVersion: packageJson.version, translator, usageLogging });\nregisterRunCommand(program, {\n currentVersion: packageJson.version,\n packageName: packageJson.name,\n translator,\n usageLogging,\n});\nregisterSecretsCommand(program, { translator, usageLogging });\nregisterSessionsCommand(program, { translator, usageLogging });\nregisterToolsCommand(program, {\n currentVersion: packageJson.version,\n packageName: packageJson.name,\n translator,\n usageLogging,\n});\nregisterUpdateCommand(program, { translator, usageLogging });\n\nawait program.parseAsync(process.argv);\n","{\n \"name\": \"agent-devkit\",\n \"version\": \"0.3.3\",\n \"description\": \"Agent DevKit CLI and TUI runtime for specialist AI agents, capabilities and provider-aware workflows.\",\n \"license\": \"MIT\",\n \"type\": \"module\",\n \"bin\": {\n \"agent\": \"./dist/main.js\"\n },\n \"files\": [\n \"dist\",\n \"src/assets\",\n \"src/modules/*/surface/*.json\",\n \"README.md\",\n \"LICENSE\"\n ],\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/jhenriquedev/agent-devkit.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/jhenriquedev/agent-devkit/issues\"\n },\n \"homepage\": \"https://github.com/jhenriquedev/agent-devkit#readme\",\n \"engines\": {\n \"node\": \">=20\"\n },\n \"scripts\": {\n \"build\": \"tsup\",\n \"check:fast\": \"npm run typecheck && npm run lint && npm run test:modules:changed\",\n \"check\": \"npm run typecheck && npm run lint && npm run test && npm run build && npm run package:verify\",\n \"clean\": \"node scripts/clean.mjs\",\n \"dev\": \"tsx src/main.tsx\",\n \"docker:agent\": \"docker compose run --rm agent ./node_modules/.bin/tsx src/main.tsx\",\n \"docker:build\": \"docker compose build agent\",\n \"docker:check\": \"docker compose run --rm agent npm run check\",\n \"docker:shell\": \"docker compose run --rm agent bash\",\n \"format\": \"biome format --write .\",\n \"lint\": \"biome check .\",\n \"package:pack\": \"npm pack\",\n \"package:verify\": \"node scripts/verify-package.mjs\",\n \"release:verify\": \"node scripts/verify-release-alignment.mjs\",\n \"test\": \"npm run test:architecture && npm run test:infra && npm run test:app && npm run test:modules\",\n \"test:app\": \"vitest run src/app/cli/commands src/app/mcp src/app/tui src/package.test.ts\",\n \"test:architecture\": \"vitest run src/architecture.test.ts src/modules/capability_registry.test.ts src/modules/capability_tool_runtime.test.ts src/modules/modules.registry.test.ts\",\n \"test:infra\": \"vitest run src/infra\",\n \"test:module\": \"tsx scripts/test-modules.ts\",\n \"test:modules\": \"tsx scripts/test-modules.ts\",\n \"test:modules:changed\": \"tsx scripts/test-modules.ts --changed\",\n \"test:watch\": \"vitest\",\n \"typecheck\": \"tsc --noEmit\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"overrides\": {\n \"esbuild\": \"0.28.1\"\n },\n \"dependencies\": {\n \"@modelcontextprotocol/sdk\": \"^1.29.0\",\n \"commander\": \"^15.0.0\",\n \"ink\": \"^7.1.0\",\n \"react\": \"^19.2.7\",\n \"zod\": \"^4.4.3\"\n },\n \"optionalDependencies\": {\n \"node-llama-cpp\": \"^3.0.0\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.5.1\",\n \"@types/node\": \"^26.0.1\",\n \"@types/react\": \"^19.2.17\",\n \"tsup\": \"^8.5.1\",\n \"tsx\": \"^4.22.4\",\n \"typescript\": \"^6.0.3\",\n \"vitest\": \"^4.1.9\"\n }\n}\n","import { homedir } from \"node:os\";\nimport type { Command } from \"commander\";\nimport type { AgentDevKitErrorCode } from \"../../../infra/bases/errors\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport type { Result } from \"../../../infra/bases/result\";\nimport {\n type CliAliasResult,\n createUserModuleBindings,\n formatCliAliasText,\n} from \"../../../modules/user/user.index\";\nimport { wantsJson } from \"../command_options\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterAliasCommandOptions = {\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nfunction cliAliasCapability() {\n const bindings = createUserModuleBindings({ homeDirectory: homedir() });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n return bindings.unwrap().capabilities.cliAlias;\n}\n\nfunction printResult(\n result: Result<AgentDevKitErrorCode, CliAliasResult>,\n translator: Translator,\n json?: boolean,\n): void {\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const payload = result.unwrap();\n\n if (json === true) {\n console.log(JSON.stringify(payload, null, 2));\n return;\n }\n\n console.log(formatCliAliasText(payload, translator));\n}\n\nexport function registerAliasCommand(program: Command, options: RegisterAliasCommandOptions): void {\n const aliasCommand = program\n .command(\"alias\")\n .description(options.translator.t(\"cli.alias.description\"))\n .option(\"--json\", options.translator.t(\"cli.alias.option.json\"))\n .action(\n options.usageLogging.track(\n { area: \"user\", command: \"alias\", options: () => aliasCommand.opts() },\n async (commandOptions: { json?: boolean }) => {\n printResult(\n await cliAliasCapability().execute({ action: \"status\" }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const setCommand = aliasCommand\n .command(\"set\")\n .argument(\"<name>\", options.translator.t(\"cli.alias.argument.name\"))\n .description(options.translator.t(\"cli.alias.set.description\"))\n .option(\"--force\", options.translator.t(\"cli.alias.option.force\"))\n .option(\"--json\", options.translator.t(\"cli.alias.option.json\"));\n\n setCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"alias.set\", options: () => setCommand.opts() },\n async (name: string, commandOptions: { force?: boolean; json?: boolean }) => {\n printResult(\n await cliAliasCapability().execute({\n action: \"set\",\n force: commandOptions.force,\n name,\n }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const removeCommand = aliasCommand\n .command(\"remove\")\n .description(options.translator.t(\"cli.alias.remove.description\"))\n .option(\"--json\", options.translator.t(\"cli.alias.option.json\"));\n\n removeCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"alias.remove\", options: () => removeCommand.opts() },\n async (commandOptions: { json?: boolean }) => {\n printResult(\n await cliAliasCapability().execute({ action: \"remove\" }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const syncCommand = aliasCommand\n .command(\"sync\")\n .description(options.translator.t(\"cli.alias.sync.description\"))\n .option(\"--json\", options.translator.t(\"cli.alias.option.json\"));\n\n syncCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"alias.sync\", options: () => syncCommand.opts() },\n async (commandOptions: { json?: boolean }) => {\n printResult(\n await cliAliasCapability().execute({ action: \"sync\" }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const shellCommand = aliasCommand\n .command(\"shell\")\n .description(options.translator.t(\"cli.alias.shell.description\"))\n .option(\"--json\", options.translator.t(\"cli.alias.option.json\"));\n\n shellCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"alias.shell\", options: () => shellCommand.opts() },\n async (commandOptions: { json?: boolean }) => {\n const result = await cliAliasCapability().execute({ action: \"shell\" });\n\n if (wantsJson(commandOptions)) {\n printResult(result, options.translator, true);\n return;\n }\n\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n console.log(result.unwrap().shellCommand);\n },\n ),\n );\n}\n","import type { z } from \"zod\";\nimport type { AgentDevKitConfig } from \"./config\";\nimport type { AgentDevKitErrorCode } from \"./errors\";\nimport type { Result } from \"./result\";\n\nexport type CapabilityKind = \"brain-assisted\" | \"composite\" | \"deterministic\" | \"external\";\n\nexport type CapabilityRisk =\n | \"destructive\"\n | \"external-write\"\n | \"read-only\"\n | \"writes-global-state\"\n | \"writes-project-state\";\n\nexport type CapabilityConfig = AgentDevKitConfig & {\n readonly kind: CapabilityKind;\n readonly moduleId: string;\n readonly risk: CapabilityRisk;\n};\n\nexport type CapabilityRepositoryPort = {\n readonly repositoryId: string;\n};\n\nexport type CapabilityInvocationInterface = \"agent\" | \"cli\" | \"mcp\" | \"tui\";\n\nexport type CapabilityInvocationContext = {\n approved?: boolean;\n correlationId?: string;\n interface: CapabilityInvocationInterface;\n requestedBy?: string;\n};\n\nexport type CapabilityEffectOperation = \"delete\" | \"external-write\" | \"read\" | \"write\";\n\nexport type CapabilityEffectScope =\n | \"external\"\n | \"global\"\n | \"none\"\n | \"project\"\n | \"project-or-global\";\n\nexport type CapabilityEffect = {\n operation: CapabilityEffectOperation;\n scope: CapabilityEffectScope;\n};\n\nexport type CapabilityApproval = {\n reason: string;\n required: boolean;\n};\n\nexport type CapabilityInvocationAudit = {\n durationMs: number;\n endedAt: string;\n startedAt: string;\n};\n\nexport type CapabilityInvocationFailure = {\n capabilityId: string;\n audit: CapabilityInvocationAudit;\n error: {\n code: AgentDevKitErrorCode;\n hint?: string;\n message: string;\n recoverable: boolean;\n };\n ok: false;\n};\n\nexport type CapabilityInvocationSuccess<TOutput = unknown> = {\n capabilityId: string;\n audit: CapabilityInvocationAudit;\n data: TOutput;\n effects: CapabilityEffect[];\n ok: true;\n};\n\nexport type CapabilityInvocationResult<TOutput = unknown> =\n | CapabilityInvocationFailure\n | CapabilityInvocationSuccess<TOutput>;\n\nexport type InvokableCapabilityDescriptor = CapabilityConfig & {\n approval: CapabilityApproval;\n inputSchema: Record<string, unknown>;\n outputSchema: Record<string, unknown>;\n};\n\nexport type InvokableCapabilityService<TInput = unknown, TOutput = unknown> = BaseCapabilityService<\n CapabilityConfig,\n unknown,\n TInput,\n TOutput\n>;\n\nexport type CapabilityExecution<\n TInput,\n TOutput,\n TError extends string = AgentDevKitErrorCode,\n> = TInput extends void\n ? {\n execute(): Promise<Result<TError, TOutput>>;\n }\n : {\n execute(input: TInput): Promise<Result<TError, TOutput>>;\n };\n\nexport abstract class BaseCapabilityService<\n TConfig extends CapabilityConfig,\n TDependencies,\n TInput = unknown,\n TOutput = unknown,\n> {\n readonly capability: TConfig;\n abstract readonly inputSchema: z.ZodType<TInput>;\n abstract readonly outputSchema: z.ZodType<TOutput>;\n protected readonly dependencies: TDependencies;\n\n protected constructor(capability: TConfig, dependencies: TDependencies) {\n this.capability = capability;\n this.dependencies = dependencies;\n }\n\n abstract invoke(\n input: TInput,\n context: CapabilityInvocationContext,\n ): Promise<Result<AgentDevKitErrorCode, TOutput>>;\n\n approvalForInput?(input: TInput, context: CapabilityInvocationContext): CapabilityApproval;\n\n effectsForInput?(input: TInput, context: CapabilityInvocationContext): CapabilityEffect[];\n}\n\nexport function defineCapabilityConfig<TConfig extends CapabilityConfig>(config: TConfig): TConfig {\n return config;\n}\n","export const ErrorCodes = {\n AssetReadFailed: \"ASSET_READ_FAILED\",\n ApprovalRequired: \"APPROVAL_REQUIRED\",\n BrainProviderUnavailable: \"BRAIN_PROVIDER_UNAVAILABLE\",\n CacheReadFailed: \"CACHE_READ_FAILED\",\n CapabilityNotFound: \"CAPABILITY_NOT_FOUND\",\n CapabilityExecutionFailed: \"CAPABILITY_EXECUTION_FAILED\",\n DatabaseReadFailed: \"DATABASE_READ_FAILED\",\n DecryptionFailed: \"DECRYPTION_FAILED\",\n EncryptionFailed: \"ENCRYPTION_FAILED\",\n FileReadFailed: \"FILE_READ_FAILED\",\n FileWriteFailed: \"FILE_WRITE_FAILED\",\n InvalidInput: \"INVALID_INPUT\",\n ModelNotFound: \"MODEL_NOT_FOUND\",\n ModelVerificationFailed: \"MODEL_VERIFICATION_FAILED\",\n NetworkRequestFailed: \"NETWORK_REQUEST_FAILED\",\n PackageInstallFailed: \"PACKAGE_INSTALL_FAILED\",\n PackageRegistryFailed: \"PACKAGE_REGISTRY_FAILED\",\n StateResetFailed: \"STATE_RESET_FAILED\",\n} as const;\n\nexport type AgentDevKitErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];\n","export class Result<Left, Right> {\n readonly #left?: Left;\n readonly #right?: Right;\n readonly #ok: boolean;\n\n private constructor(ok: boolean, left?: Left, right?: Right) {\n this.#ok = ok;\n this.#left = left;\n this.#right = right;\n }\n\n static ok<Left, Right>(right: Right): Result<Left, Right> {\n return new Result<Left, Right>(true, undefined, right);\n }\n\n static fail<Left, Right>(left: Left): Result<Left, Right> {\n return new Result<Left, Right>(false, left);\n }\n\n isOk(): boolean {\n return this.#ok;\n }\n\n isErr(): boolean {\n return !this.#ok;\n }\n\n flatMap<NextRight>(mapper: (right: Right) => Result<Left, NextRight>): Result<Left, NextRight> {\n return this.#ok ? mapper(this.#right as Right) : Result.fail(this.#left as Left);\n }\n\n map<NextRight>(mapper: (right: Right) => NextRight): Result<Left, NextRight> {\n return this.#ok ? Result.ok(mapper(this.#right as Right)) : Result.fail(this.#left as Left);\n }\n\n mapError<NextLeft>(mapper: (left: Left) => NextLeft): Result<NextLeft, Right> {\n return this.#ok ? Result.ok(this.#right as Right) : Result.fail(mapper(this.#left as Left));\n }\n\n match<TOutput>(handlers: {\n error: (left: Left) => TOutput;\n ok: (right: Right) => TOutput;\n }): TOutput {\n return this.#ok ? handlers.ok(this.#right as Right) : handlers.error(this.#left as Left);\n }\n\n unwrap(): Right {\n if (!this.#ok) {\n throw new Error(\"Cannot unwrap a failed Result\");\n }\n\n return this.#right as Right;\n }\n\n unwrapError(): Left {\n if (this.#ok) {\n throw new Error(\"Cannot unwrapError an ok Result\");\n }\n\n return this.#left as Left;\n }\n}\n","import { z } from \"zod\";\n\nexport const CliAliasNameSchema = z\n .string()\n .min(2)\n .max(40)\n .regex(/^[a-z][a-z0-9-]*$/);\n\nexport const CliAliasStateSchema = z\n .object({\n binDirectory: z.string().min(1),\n enabled: z.boolean(),\n name: CliAliasNameSchema,\n shimPath: z.string().min(1),\n updatedAt: z.string().datetime(),\n })\n .strict();\n\nexport type CliAliasState = z.infer<typeof CliAliasStateSchema>;\n\nexport const CliAliasOptionsSchema = z.discriminatedUnion(\"action\", [\n z.object({ action: z.literal(\"status\") }).strict(),\n z\n .object({\n action: z.literal(\"set\"),\n force: z.boolean().optional(),\n name: CliAliasNameSchema,\n })\n .strict(),\n z.object({ action: z.literal(\"remove\") }).strict(),\n z.object({ action: z.literal(\"sync\") }).strict(),\n z.object({ action: z.literal(\"shell\") }).strict(),\n]);\n\nexport type CliAliasOptions = z.infer<typeof CliAliasOptionsSchema>;\n\nexport const CliAliasResultSchema = z\n .object({\n activationCommand: z.string().min(1),\n alias: CliAliasStateSchema.optional(),\n binDirectory: z.string().min(1),\n binDirectoryInPath: z.boolean(),\n shellCommand: z.string().min(1),\n status: z.enum([\"configured\", \"removed\", \"shell\", \"view\"]),\n })\n .strict();\n\nexport type CliAliasResult = z.infer<typeof CliAliasResultSchema>;\n","import {\n BaseCapabilityService,\n type CapabilityApproval,\n type CapabilityEffect,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type CliAliasOptions,\n CliAliasOptionsSchema,\n type CliAliasResult,\n CliAliasResultSchema,\n} from \"./cliAlias.entities\";\nimport type { CliAliasRepositoryPort } from \"./cliAlias.repository\";\n\ntype CliAliasServiceDependencies = {\n repository: CliAliasRepositoryPort;\n};\n\nexport const cliAliasCapabilityConfig = defineCapabilityConfig({\n id: \"user.cliAlias\",\n moduleId: \"user\",\n name: \"CLI alias\",\n description: \"Create and manage a local command alias for the Agent DevKit CLI.\",\n kind: \"deterministic\",\n risk: \"writes-global-state\",\n} as const);\n\nexport class CliAliasService extends BaseCapabilityService<\n typeof cliAliasCapabilityConfig,\n CliAliasServiceDependencies,\n CliAliasOptions,\n CliAliasResult\n> {\n readonly inputSchema = CliAliasOptionsSchema;\n readonly outputSchema = CliAliasResultSchema;\n readonly #repository: CliAliasRepositoryPort;\n\n constructor(dependencies: CliAliasServiceDependencies) {\n super(cliAliasCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(options: CliAliasOptions): Promise<Result<AgentDevKitErrorCode, CliAliasResult>> {\n const parsed = this.inputSchema.safeParse(options);\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const input = parsed.data;\n const result =\n input.action === \"set\"\n ? await this.#set(input.name, input.force)\n : input.action === \"remove\"\n ? await this.#remove()\n : input.action === \"sync\"\n ? await this.#sync()\n : await this.#view(input.action === \"shell\" ? \"shell\" : \"view\");\n\n if (result.isErr()) {\n return Result.fail(result.unwrapError());\n }\n\n const output = this.outputSchema.safeParse(result.unwrap());\n return output.success ? Result.ok(output.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n\n invoke(options: CliAliasOptions): Promise<Result<AgentDevKitErrorCode, CliAliasResult>> {\n return this.execute(options);\n }\n\n override approvalForInput(input: CliAliasOptions): CapabilityApproval {\n if (input.action === \"status\" || input.action === \"shell\") {\n return { reason: \"CLI alias read action.\", required: false };\n }\n\n return {\n reason: \"CLI alias action writes user shell state.\",\n required: true,\n };\n }\n\n override effectsForInput(input: CliAliasOptions): CapabilityEffect[] {\n if (input.action === \"status\" || input.action === \"shell\") {\n return [{ operation: \"read\", scope: \"none\" }];\n }\n\n return [{ operation: \"write\", scope: \"global\" }];\n }\n\n async #remove(): Promise<Result<AgentDevKitErrorCode, CliAliasResult>> {\n const remove = await this.#repository.removeAlias();\n\n if (remove.isErr()) {\n return Result.fail(remove.unwrapError());\n }\n\n return this.#view(\"removed\");\n }\n\n async #set(name: string, force?: boolean): Promise<Result<AgentDevKitErrorCode, CliAliasResult>> {\n const alias = await this.#repository.saveAlias(name, force);\n\n if (alias.isErr()) {\n return Result.fail(alias.unwrapError());\n }\n\n return Result.ok(this.#result(\"configured\", alias.unwrap()));\n }\n\n async #sync(): Promise<Result<AgentDevKitErrorCode, CliAliasResult>> {\n const alias = await this.#repository.syncAlias();\n\n if (alias.isErr()) {\n return Result.fail(alias.unwrapError());\n }\n\n return Result.ok(this.#result(\"configured\", alias.unwrap()));\n }\n\n async #view(\n status: CliAliasResult[\"status\"],\n ): Promise<Result<AgentDevKitErrorCode, CliAliasResult>> {\n const alias = await this.#repository.loadAlias();\n\n return alias.isOk()\n ? Result.ok(this.#result(status, alias.unwrap()))\n : Result.fail(alias.unwrapError());\n }\n\n #result(status: CliAliasResult[\"status\"], alias?: CliAliasResult[\"alias\"]): CliAliasResult {\n return {\n activationCommand: this.#repository.activationCommand(),\n alias,\n binDirectory: this.#repository.binDirectory(),\n binDirectoryInPath: this.#repository.binDirectoryInPath(),\n shellCommand: this.#repository.shellCommand(),\n status,\n };\n }\n}\n","import { existsSync, readdirSync, readFileSync } from \"node:fs\";\nimport { readdir, readFile } from \"node:fs/promises\";\nimport { dirname, join, resolve } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport {\n type LanguageDefinition,\n LanguageDefinitionSchema,\n type LanguageId,\n type Translator,\n} from \"../bases/i18n\";\nimport { Result } from \"../bases/result\";\n\nexport type I18nCatalogOptions = {\n directory?: string;\n fallbackLanguage?: LanguageId;\n};\n\nconst languageOrder: LanguageId[] = [\"pt-BR\", \"en-US\", \"fr-FR\", \"zh-CN\", \"ja-JP\"];\n\nfunction defaultI18nDirectory(): string {\n const moduleDirectory = dirname(fileURLToPath(import.meta.url));\n const candidates = [\n resolve(moduleDirectory, \"../../assets/i18n\"),\n resolve(moduleDirectory, \"../src/assets/i18n\"),\n resolve(process.cwd(), \"src/assets/i18n\"),\n ];\n\n return (\n candidates.find((candidate) => existsSync(candidate)) ??\n resolve(process.cwd(), \"src/assets/i18n\")\n );\n}\n\nfunction sortLanguages(languages: LanguageDefinition[]): LanguageDefinition[] {\n return languages.sort(\n (left, right) => languageOrder.indexOf(left.id) - languageOrder.indexOf(right.id),\n );\n}\n\nfunction interpolate(value: string, variables: Record<string, string | number | boolean>): string {\n return value.replaceAll(/\\{\\{([a-zA-Z0-9_.-]+)\\}\\}/g, (_, key: string) =>\n variables[key] === undefined ? `{{${key}}}` : String(variables[key]),\n );\n}\n\nexport class I18nCatalog {\n readonly #directory: string;\n readonly #fallbackLanguage: LanguageId;\n #languages?: LanguageDefinition[];\n\n constructor(options: I18nCatalogOptions = {}) {\n this.#directory = options.directory ?? defaultI18nDirectory();\n this.#fallbackLanguage = options.fallbackLanguage ?? \"pt-BR\";\n }\n\n async loadLanguages(): Promise<Result<AgentDevKitErrorCode, LanguageDefinition[]>> {\n if (this.#languages !== undefined) {\n return Result.ok(this.#languages);\n }\n\n try {\n const files = (await readdir(this.#directory)).filter((file) => file.endsWith(\".json\"));\n const languages: LanguageDefinition[] = [];\n\n for (const file of files) {\n const parsed = LanguageDefinitionSchema.safeParse(\n JSON.parse(await readFile(join(this.#directory, file), \"utf8\")),\n );\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n languages.push(parsed.data);\n }\n\n this.#languages = sortLanguages(languages);\n return Result.ok(this.#languages);\n } catch {\n return Result.fail(ErrorCodes.AssetReadFailed);\n }\n }\n\n loadLanguagesSync(): Result<AgentDevKitErrorCode, LanguageDefinition[]> {\n if (this.#languages !== undefined) {\n return Result.ok(this.#languages);\n }\n\n try {\n const files = readdirSync(this.#directory).filter((file) => file.endsWith(\".json\"));\n const languages: LanguageDefinition[] = [];\n\n for (const file of files) {\n const parsed = LanguageDefinitionSchema.safeParse(\n JSON.parse(readFileSync(join(this.#directory, file), \"utf8\")),\n );\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n languages.push(parsed.data);\n }\n\n this.#languages = sortLanguages(languages);\n return Result.ok(this.#languages);\n } catch {\n return Result.fail(ErrorCodes.AssetReadFailed);\n }\n }\n\n async translate(\n language: LanguageId,\n key: string,\n values: Record<string, string | number | boolean> = {},\n ): Promise<Result<AgentDevKitErrorCode, string>> {\n const languages = await this.loadLanguages();\n\n if (languages.isErr()) {\n return Result.fail(languages.unwrapError());\n }\n\n return Result.ok(this.#translateFromLanguages(languages.unwrap(), language, key, values));\n }\n\n translator(language: LanguageId): Translator {\n const languages = this.loadLanguagesSync();\n\n return {\n language,\n t: (key, values = {}) => {\n if (languages.isErr()) {\n return key;\n }\n\n return this.#translateFromLanguages(languages.unwrap(), language, key, values);\n },\n };\n }\n\n #translateFromLanguages(\n languages: LanguageDefinition[],\n language: LanguageId,\n key: string,\n values: Record<string, string | number | boolean>,\n ): string {\n const selected =\n languages.find((candidate) => candidate.id === language) ??\n languages.find((candidate) => candidate.id === this.#fallbackLanguage);\n const fallback = languages.find((candidate) => candidate.id === this.#fallbackLanguage);\n const value = selected?.messages[key] ?? fallback?.messages[key] ?? key;\n\n return interpolate(value, values);\n }\n}\n","import { z } from \"zod\";\n\nexport const LanguageDefinitionSchema = z.object({\n schema: z.literal(\"agent-devkit.i18n/v1\"),\n id: z.enum([\"pt-BR\", \"en-US\", \"fr-FR\", \"zh-CN\", \"ja-JP\"]),\n name: z.string().min(1),\n nativeName: z.string().min(1),\n messages: z.record(z.string().min(1), z.string()),\n});\n\nexport type LanguageDefinition = z.infer<typeof LanguageDefinitionSchema>;\nexport type LanguageId = LanguageDefinition[\"id\"];\n\nexport type LanguageSummary = {\n id: LanguageId;\n name: string;\n nativeName: string;\n selected: boolean;\n};\n\nexport interface Translator {\n language: LanguageId;\n t(key: string, values?: Record<string, string | number | boolean>): string;\n}\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { CliAliasResult } from \"./cliAlias.entities\";\n\nconst defaultTranslator = new I18nCatalog().translator(\"en-US\");\n\nexport function formatCliAliasText(\n result: CliAliasResult,\n translator: Translator = defaultTranslator,\n): string {\n const t = (key: string, values?: Record<string, string | number | boolean>) =>\n translator.t(key, values);\n const lines = [t(\"alias.title\")];\n\n if (result.alias === undefined) {\n lines.push(t(\"alias.status.notConfigured\"));\n } else {\n lines.push(t(\"alias.line.name\", { name: result.alias.name }));\n lines.push(t(\"alias.line.shim\", { path: result.alias.shimPath }));\n }\n\n lines.push(t(\"alias.line.bin\", { path: result.binDirectory }));\n\n if (!result.binDirectoryInPath) {\n lines.push(t(\"alias.line.activate\", { command: result.activationCommand }));\n }\n\n return lines.join(\"\\n\");\n}\n","import { z } from \"zod\";\nimport {\n CharacterDefinitionSchema,\n CharacterIdSchema,\n CharacterProfileSchema,\n} from \"../../../../infra/bases/character\";\n\nexport const UserPersonalizationStateSchema = z\n .object({\n currentCharacter: CharacterDefinitionSchema,\n schema: z.literal(\"agent-devkit.agent-personalization/v2\"),\n selectedPresetId: CharacterIdSchema,\n updatedAt: z.string().min(1),\n })\n .strict();\n\nconst CharacterUpdateSchema = CharacterProfileSchema.partial()\n .extend({\n active: z.boolean().optional(),\n name: z.string().min(1).max(80).optional(),\n traits: z.array(z.string().min(1).max(120)).max(20).optional(),\n })\n .strict();\n\nconst CreateCharacterSchema = z\n .object({\n active: z.boolean().optional(),\n fromCharacterId: CharacterIdSchema.optional(),\n id: CharacterIdSchema,\n name: z.string().min(1).max(80),\n })\n .merge(CharacterProfileSchema.partial())\n .strict();\n\nexport const PersonalizationServiceOptionsSchema = z.discriminatedUnion(\"action\", [\n z.object({ action: z.literal(\"view\") }).strict(),\n z.object({ action: z.literal(\"list-characters\") }).strict(),\n z\n .object({\n action: z.literal(\"select-preset\"),\n characterId: CharacterIdSchema,\n })\n .strict(),\n z\n .object({\n action: z.literal(\"update-current\"),\n profile: CharacterUpdateSchema,\n })\n .strict(),\n z\n .object({\n action: z.literal(\"create-character\"),\n character: CreateCharacterSchema,\n })\n .strict(),\n z\n .object({\n action: z.literal(\"import-sprite\"),\n characterId: CharacterIdSchema,\n sourcePath: z.string().min(1),\n })\n .strict(),\n z.object({ action: z.literal(\"reset-current\") }).strict(),\n z.object({ action: z.literal(\"reset-defaults\") }).strict(),\n z\n .object({\n action: z.literal(\"update\"),\n profile: CharacterUpdateSchema.extend({\n characterId: CharacterIdSchema.optional(),\n }),\n })\n .strict(),\n]);\n\nexport type UserPersonalizationState = z.infer<typeof UserPersonalizationStateSchema>;\nexport type PersonalizationServiceOptions = z.infer<typeof PersonalizationServiceOptionsSchema>;\nexport type PersonalizationStatus =\n | \"character-created\"\n | \"character-updated\"\n | \"preset-selected\"\n | \"reset\"\n | \"sprite-imported\"\n | \"updated\"\n | \"view\";\n\nexport type CharacterListItem = z.infer<typeof CharacterDefinitionSchema> & {\n readonly custom: boolean;\n readonly selected: boolean;\n readonly spritePath?: string;\n};\n\nexport type PersonalizationResult = {\n characters: CharacterListItem[];\n path: string;\n profile: UserPersonalizationState;\n status: PersonalizationStatus;\n};\n\nconst CharacterListItemSchema = CharacterDefinitionSchema.extend({\n custom: z.boolean(),\n selected: z.boolean(),\n spritePath: z.string().min(1).optional(),\n});\n\nexport const PersonalizationResultSchema = z.object({\n characters: z.array(CharacterListItemSchema),\n path: z.string().min(1),\n profile: UserPersonalizationStateSchema,\n status: z.enum([\n \"character-created\",\n \"character-updated\",\n \"preset-selected\",\n \"reset\",\n \"sprite-imported\",\n \"updated\",\n \"view\",\n ]),\n});\n","import { z } from \"zod\";\n\nexport const CharacterIdSchema = z\n .string()\n .min(1)\n .max(80)\n .regex(/^[a-z0-9][a-z0-9-]*$/);\n\nexport const CharacterGenderSchema = z.enum([\"female\", \"male\", \"neutral\", \"unspecified\"]);\n\nexport const CharacterBehaviorSchema = z.enum([\n \"balanced\",\n \"proactive\",\n \"analytical\",\n \"creative\",\n \"pragmatic\",\n \"minimalist\",\n]);\n\nexport const CharacterToneSchema = z.enum([\n \"direct\",\n \"friendly\",\n \"formal\",\n \"animated\",\n \"neutral\",\n \"succinct\",\n]);\n\nexport const CharacterDetailLevelSchema = z.enum([\n \"minimal\",\n \"concise\",\n \"balanced\",\n \"detailed\",\n \"technical\",\n]);\n\nexport const CharacterI18nSchema = z\n .object({\n descriptionKey: z.string().min(1),\n nameKey: z.string().min(1),\n taglineKey: z.string().min(1),\n })\n .strict();\n\nexport const CharacterProfileSchema = z\n .object({\n archetype: z.string().min(1).max(120),\n behavior: CharacterBehaviorSchema,\n detailLevel: CharacterDetailLevelSchema,\n gender: CharacterGenderSchema,\n tone: CharacterToneSchema,\n traits: z.array(z.string().min(1).max(120)).max(20),\n })\n .strict();\n\nexport const CharacterDefinitionSchema = z\n .object({\n active: z.boolean(),\n default: z.boolean(),\n i18n: CharacterI18nSchema,\n id: CharacterIdSchema,\n name: z.string().min(1).max(80).optional(),\n profile: CharacterProfileSchema,\n schema: z.literal(\"agent-devkit.character/v1\"),\n })\n .strict();\n\nexport type CharacterId = z.infer<typeof CharacterIdSchema>;\nexport type CharacterGender = z.infer<typeof CharacterGenderSchema>;\nexport type CharacterBehavior = z.infer<typeof CharacterBehaviorSchema>;\nexport type CharacterTone = z.infer<typeof CharacterToneSchema>;\nexport type CharacterDetailLevel = z.infer<typeof CharacterDetailLevelSchema>;\nexport type CharacterDefinition = z.infer<typeof CharacterDefinitionSchema>;\n","import { BaseCapabilityService, defineCapabilityConfig } from \"../../../../infra/bases/capability\";\nimport type { CharacterDefinition, CharacterId } from \"../../../../infra/bases/character\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport type {\n PersonalizationResult,\n PersonalizationServiceOptions,\n UserPersonalizationState,\n} from \"./personalization.entities\";\nimport {\n PersonalizationResultSchema,\n PersonalizationServiceOptionsSchema,\n} from \"./personalization.entities\";\nimport type { PersonalizationRepositoryPort } from \"./personalization.repository\";\n\ntype PersonalizationServiceDependencies = {\n repository: PersonalizationRepositoryPort;\n};\n\nexport const personalizationCapabilityConfig = defineCapabilityConfig({\n id: \"user.personalization\",\n moduleId: \"user\",\n name: \"Agent personalization\",\n description: \"Read and update the local agent identity, behavior, tone and detail level.\",\n kind: \"deterministic\",\n risk: \"writes-global-state\",\n} as const);\n\nexport class PersonalizationService extends BaseCapabilityService<\n typeof personalizationCapabilityConfig,\n PersonalizationServiceDependencies,\n PersonalizationServiceOptions,\n PersonalizationResult\n> {\n readonly inputSchema = PersonalizationServiceOptionsSchema;\n readonly outputSchema = PersonalizationResultSchema;\n readonly #repository: PersonalizationRepositoryPort;\n\n constructor(dependencies: PersonalizationServiceDependencies) {\n super(personalizationCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: PersonalizationServiceOptions,\n ): Promise<Result<AgentDevKitErrorCode, PersonalizationResult>> {\n const parsedOptions = PersonalizationServiceOptionsSchema.safeParse(options);\n\n if (!parsedOptions.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const input = parsedOptions.data;\n const existing = await this.#repository.loadProfile();\n\n if (existing.isErr()) {\n return Result.fail(existing.unwrapError());\n }\n\n let profile = existing.unwrap();\n let status: PersonalizationResult[\"status\"] = \"view\";\n\n if (input.action === \"select-preset\") {\n const preset = await this.#repository.loadPresetCharacter(input.characterId);\n\n if (preset.isErr()) {\n return Result.fail(preset.unwrapError());\n }\n\n profile = this.#stateFromCharacter(preset.unwrap(), preset.unwrap().id);\n status = \"preset-selected\";\n }\n\n if (input.action === \"update\" && input.profile.characterId !== undefined) {\n const preset = await this.#repository.loadPresetCharacter(input.profile.characterId);\n\n if (preset.isErr()) {\n return Result.fail(preset.unwrapError());\n }\n\n profile = this.#stateFromCharacter(\n this.#mergeCharacter(preset.unwrap(), input.profile),\n preset.unwrap().id,\n );\n status = \"updated\";\n } else if (input.action === \"update-current\" || input.action === \"update\") {\n profile = {\n ...profile,\n currentCharacter: this.#mergeCharacter(profile.currentCharacter, input.profile),\n updatedAt: new Date().toISOString(),\n };\n status = \"character-updated\";\n }\n\n if (input.action === \"create-character\") {\n const character = await this.#createCharacter(input.character);\n\n if (character.isErr()) {\n return Result.fail(character.unwrapError());\n }\n\n const save = await this.#repository.saveCustomCharacter(character.unwrap());\n\n if (save.isErr()) {\n return Result.fail(save.unwrapError());\n }\n\n profile = this.#stateFromCharacter(\n character.unwrap(),\n input.character.fromCharacterId ?? profile.selectedPresetId,\n );\n status = \"character-created\";\n }\n\n if (input.action === \"import-sprite\") {\n const characters = await this.#repository.loadCharacters(profile.currentCharacter.id);\n\n if (characters.isErr()) {\n return Result.fail(characters.unwrapError());\n }\n\n const character = characters.unwrap().find((candidate) => candidate.id === input.characterId);\n\n if (character === undefined) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const imported = await this.#repository.importSprite(input.characterId, input.sourcePath);\n\n if (imported.isErr()) {\n return Result.fail(imported.unwrapError());\n }\n\n const { custom, selected, spritePath, ...characterDefinition } = character;\n void custom;\n void selected;\n void spritePath;\n\n const saveCharacter = await this.#repository.saveCustomCharacter(characterDefinition);\n\n if (saveCharacter.isErr()) {\n return Result.fail(saveCharacter.unwrapError());\n }\n\n profile = {\n ...profile,\n currentCharacter:\n profile.currentCharacter.id === character.id\n ? characterDefinition\n : profile.currentCharacter,\n updatedAt: new Date().toISOString(),\n };\n status = \"sprite-imported\";\n }\n\n if (input.action === \"reset-current\") {\n const preset = await this.#repository.loadPresetCharacter(profile.selectedPresetId);\n\n if (preset.isErr()) {\n return Result.fail(preset.unwrapError());\n }\n\n profile = this.#stateFromCharacter(preset.unwrap(), preset.unwrap().id);\n status = \"reset\";\n }\n\n if (input.action === \"reset-defaults\") {\n const defaults = await this.#repository.defaultState();\n\n if (defaults.isErr()) {\n return Result.fail(defaults.unwrapError());\n }\n\n profile = {\n ...defaults.unwrap(),\n updatedAt: new Date().toISOString(),\n };\n status = \"reset\";\n }\n\n if (status !== \"view\") {\n const save = await this.#repository.saveProfile(profile);\n\n if (save.isErr()) {\n return Result.fail(save.unwrapError());\n }\n }\n\n const characters = await this.#repository.loadCharacters(profile.currentCharacter.id);\n\n if (characters.isErr()) {\n return Result.fail(characters.unwrapError());\n }\n\n return Result.ok({\n characters: characters.unwrap().filter((character) => character.active),\n path: this.#repository.profilePath(),\n profile,\n status,\n });\n }\n\n invoke(\n options: PersonalizationServiceOptions,\n ): Promise<Result<AgentDevKitErrorCode, PersonalizationResult>> {\n return this.execute(options);\n }\n\n async #createCharacter(\n input: Extract<PersonalizationServiceOptions, { action: \"create-character\" }>[\"character\"],\n ): Promise<Result<AgentDevKitErrorCode, CharacterDefinition>> {\n let base: CharacterDefinition | undefined;\n\n if (input.fromCharacterId !== undefined) {\n const preset = await this.#repository.loadPresetCharacter(input.fromCharacterId);\n\n if (preset.isErr()) {\n return Result.fail(preset.unwrapError());\n }\n\n base = preset.unwrap();\n }\n\n const defaults = base === undefined ? await this.#repository.defaultState() : undefined;\n\n if (defaults?.isErr()) {\n return Result.fail(defaults.unwrapError());\n }\n\n const fallback = base ?? defaults?.unwrap().currentCharacter;\n\n if (fallback === undefined) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok(\n this.#mergeCharacter(\n {\n ...fallback,\n active: input.active ?? true,\n default: false,\n id: input.id,\n i18n: { ...fallback.i18n },\n },\n input,\n input.name,\n ),\n );\n }\n\n #mergeCharacter(\n character: CharacterDefinition,\n update: Partial<CharacterDefinition[\"profile\"]> & {\n active?: boolean;\n name?: string;\n },\n name?: string,\n ): CharacterDefinition {\n const nextName = name ?? update.name;\n\n return {\n ...character,\n active: update.active ?? character.active,\n name: nextName ?? character.name,\n profile: {\n ...character.profile,\n archetype: update.archetype ?? character.profile.archetype,\n behavior: update.behavior ?? character.profile.behavior,\n detailLevel: update.detailLevel ?? character.profile.detailLevel,\n gender: update.gender ?? character.profile.gender,\n tone: update.tone ?? character.profile.tone,\n traits: update.traits === undefined ? character.profile.traits : [...update.traits],\n },\n };\n }\n\n #stateFromCharacter(\n character: CharacterDefinition,\n selectedPresetId: CharacterId,\n ): UserPersonalizationState {\n return {\n schema: \"agent-devkit.agent-personalization/v2\",\n currentCharacter: {\n ...character,\n i18n: { ...character.i18n },\n profile: { ...character.profile, traits: [...character.profile.traits] },\n },\n selectedPresetId,\n updatedAt: new Date().toISOString(),\n };\n }\n}\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { CharacterDefinition } from \"../../../../infra/bases/character\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { CharacterListItem, PersonalizationResult } from \"./personalization.entities\";\n\nconst fallbackTranslator = new I18nCatalog().translator(\"pt-BR\");\n\nfunction characterName(character: CharacterDefinition, translator: Translator): string {\n return character.name ?? translator.t(character.i18n.nameKey);\n}\n\nexport function formatPersonalizationText(\n result: PersonalizationResult,\n translator: Translator = fallbackTranslator,\n): string {\n const current = result.profile.currentCharacter;\n\n return [\n translator.t(\"personalization.title\"),\n translator.t(\"personalization.command\"),\n \"\",\n `[${translator.t(\"personalization.status\", { status: result.status })}]`,\n ` ${translator.t(\"personalization.field.file\").padEnd(12)} ${result.path}`,\n ` ${translator.t(\"personalization.field.name\").padEnd(12)} ${characterName(current, translator)}`,\n ` ${translator.t(\"personalization.field.character\").padEnd(12)} ${current.id}`,\n ` ${translator.t(\"personalization.field.behavior\").padEnd(12)} ${current.profile.behavior}`,\n ` ${translator.t(\"personalization.field.tone\").padEnd(12)} ${current.profile.tone}`,\n ` ${translator.t(\"personalization.field.detail\").padEnd(12)} ${current.profile.detailLevel}`,\n ` ${translator.t(\"personalization.field.traits\").padEnd(12)} ${current.profile.traits.join(\", \")}`,\n ` ${translator.t(\"personalization.field.sprite\").padEnd(12)} ${current.id}/sprite`,\n \"\",\n ` ${translator.t(\"personalization.section.characters\")}`,\n ...result.characters.map((character) => formatCharacterLine(character, translator)),\n ].join(\"\\n\");\n}\n\nfunction formatCharacterLine(character: CharacterListItem, translator: Translator): string {\n const source = character.custom\n ? translator.t(\"personalization.label.custom\")\n : translator.t(\"personalization.label.preset\");\n\n return ` ${character.selected ? \"*\" : \" \"} ${character.id.padEnd(8)} ${characterName(character, translator).padEnd(10)} ${source} ${character.profile.behavior} / ${character.profile.tone} / ${character.profile.detailLevel}`;\n}\n","import { z } from \"zod\";\nimport {\n type LanguageDefinition,\n LanguageDefinitionSchema,\n type LanguageId,\n type LanguageSummary,\n} from \"../../../../infra/bases/i18n\";\nimport { type ThemeDefinition, ThemeDefinitionSchema } from \"../../../../infra/bases/theme\";\nimport { type CliAliasState, CliAliasStateSchema } from \"../cliAlias/cliAlias.entities\";\n\nexport const PreferencesServiceOptionsSchema = z\n .object({\n action: z.enum([\n \"reset-defaults\",\n \"set-language\",\n \"set-log-retention\",\n \"set-theme\",\n \"update\",\n \"view\",\n ]),\n language: z.enum([\"pt-BR\", \"en-US\", \"fr-FR\", \"zh-CN\", \"ja-JP\"]).optional(),\n logRetentionDays: z.number().int().min(1).max(3650).optional(),\n theme: z.string().min(1).optional(),\n })\n .strict();\n\nexport type UserPreferences = {\n schema: \"agent-devkit.user-preferences/v1\";\n cliAlias?: CliAliasState;\n language: LanguageId;\n logRetentionDays: number;\n theme: string;\n updatedAt: string;\n};\n\nexport type ThemeSummary = {\n id: string;\n name: string;\n primary: string;\n selected: boolean;\n};\n\nexport type PreferencesStatus = \"reset\" | \"updated\" | \"view\";\n\nexport type PreferencesResult = {\n activeLanguage: LanguageDefinition;\n activeTheme: ThemeDefinition;\n languages: LanguageSummary[];\n path: string;\n preferences: UserPreferences;\n status: PreferencesStatus;\n themes: ThemeSummary[];\n};\n\nexport type PreferencesServiceOptions = {\n action: \"reset-defaults\" | \"set-language\" | \"set-log-retention\" | \"set-theme\" | \"update\" | \"view\";\n language?: LanguageId;\n logRetentionDays?: number;\n theme?: string;\n};\n\nexport const PreferencesResultSchema = z.object({\n activeLanguage: LanguageDefinitionSchema.omit({ messages: true }),\n activeTheme: ThemeDefinitionSchema,\n languages: z.array(\n z.object({\n id: z.enum([\"pt-BR\", \"en-US\", \"fr-FR\", \"zh-CN\", \"ja-JP\"]),\n name: z.string().min(1),\n nativeName: z.string().min(1),\n selected: z.boolean(),\n }),\n ),\n path: z.string().min(1),\n preferences: z.object({\n schema: z.literal(\"agent-devkit.user-preferences/v1\"),\n cliAlias: CliAliasStateSchema.optional(),\n language: z.enum([\"pt-BR\", \"en-US\", \"fr-FR\", \"zh-CN\", \"ja-JP\"]),\n logRetentionDays: z.number().int().min(1).max(3650),\n theme: z.string().min(1),\n updatedAt: z.string().min(1),\n }),\n status: z.enum([\"reset\", \"updated\", \"view\"]),\n themes: z.array(\n z.object({\n id: z.string().min(1),\n name: z.string().min(1),\n primary: z.string().min(1),\n selected: z.boolean(),\n }),\n ),\n});\n","import { z } from \"zod\";\n\nexport const ThemeDefinitionSchema = z.object({\n schema: z.literal(\"agent-devkit.theme/v1\"),\n id: z.string().min(1),\n name: z.string().min(1),\n description: z.string().min(1),\n appearance: z.enum([\"dark\", \"light\"]),\n colors: z.object({\n background: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n panel: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n elevated: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n border: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n borderStrong: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n text: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n textMuted: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n textDim: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n primary: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n primaryStrong: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n success: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n warning: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n danger: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n accent: z.string().regex(/^#[0-9A-Fa-f]{6}$/),\n }),\n fonts: z.object({\n heading: z.string().min(1),\n mono: z.string().min(1),\n body: z.string().min(1),\n }),\n});\n\nexport type ThemeDefinition = z.infer<typeof ThemeDefinitionSchema>;\n","import {\n BaseCapabilityService,\n type CapabilityExecution,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport type {\n PreferencesResult,\n PreferencesServiceOptions,\n UserPreferences,\n} from \"./preferences.entities\";\nimport { PreferencesResultSchema, PreferencesServiceOptionsSchema } from \"./preferences.entities\";\nimport type { PreferencesRepositoryPort } from \"./preferences.repository\";\n\ntype PreferencesServiceDependencies = {\n repository: PreferencesRepositoryPort;\n};\n\nfunction isValidRetentionDays(value: number | undefined): value is number {\n return typeof value === \"number\" && Number.isInteger(value) && value >= 1 && value <= 3650;\n}\n\nexport const preferencesCapabilityConfig = defineCapabilityConfig({\n id: \"user.preferences\",\n moduleId: \"user\",\n name: \"Preferences\",\n description: \"Read and update user Agent DevKit preferences.\",\n kind: \"deterministic\",\n risk: \"writes-global-state\",\n} as const);\n\nexport class PreferencesService\n extends BaseCapabilityService<typeof preferencesCapabilityConfig, PreferencesServiceDependencies>\n implements CapabilityExecution<PreferencesServiceOptions, PreferencesResult>\n{\n readonly inputSchema = PreferencesServiceOptionsSchema;\n readonly outputSchema = PreferencesResultSchema;\n readonly #repository: PreferencesRepositoryPort;\n\n constructor(dependencies: PreferencesServiceDependencies) {\n super(preferencesCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: PreferencesServiceOptions,\n ): Promise<Result<AgentDevKitErrorCode, PreferencesResult>> {\n const themes = await this.#repository.loadThemes();\n const languages = await this.#repository.loadLanguages();\n\n if (themes.isErr()) {\n return Result.fail(themes.unwrapError());\n }\n\n if (languages.isErr()) {\n return Result.fail(languages.unwrapError());\n }\n\n const availableThemes = themes.unwrap();\n const availableLanguages = languages.unwrap();\n const existing = await this.#repository.loadPreferences();\n\n if (existing.isErr()) {\n return Result.fail(existing.unwrapError());\n }\n\n let preferences = existing.unwrap();\n let status: PreferencesResult[\"status\"] = \"view\";\n\n if (options.action === \"reset-defaults\") {\n preferences = {\n ...this.#repository.defaultPreferences(),\n updatedAt: new Date().toISOString(),\n };\n status = \"reset\";\n }\n\n if (options.action === \"set-theme\" || options.action === \"update\") {\n if (options.theme === undefined) {\n if (options.action === \"set-theme\") {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n } else {\n if (!availableThemes.some((theme) => theme.id === options.theme)) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n preferences = {\n ...preferences,\n theme: options.theme,\n updatedAt: new Date().toISOString(),\n };\n status = \"updated\";\n }\n }\n\n if (options.action === \"set-language\" || options.action === \"update\") {\n if (options.language === undefined) {\n if (options.action === \"set-language\") {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n } else {\n if (!availableLanguages.some((language) => language.id === options.language)) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n preferences = {\n ...preferences,\n language: options.language,\n updatedAt: new Date().toISOString(),\n };\n status = \"updated\";\n }\n }\n\n if (options.action === \"set-log-retention\" || options.action === \"update\") {\n if (options.logRetentionDays === undefined) {\n if (options.action === \"set-log-retention\") {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n } else {\n if (!isValidRetentionDays(options.logRetentionDays)) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n preferences = {\n ...preferences,\n logRetentionDays: options.logRetentionDays,\n updatedAt: new Date().toISOString(),\n };\n status = \"updated\";\n }\n }\n\n if (status === \"updated\" || status === \"reset\") {\n const save = await this.#repository.savePreferences(preferences);\n\n if (save.isErr()) {\n return Result.fail(save.unwrapError());\n }\n }\n\n const activeTheme =\n availableThemes.find((theme) => theme.id === preferences.theme) ?? availableThemes[0];\n const activeLanguage =\n availableLanguages.find((language) => language.id === preferences.language) ??\n availableLanguages[0];\n\n if (activeTheme === undefined || activeLanguage === undefined) {\n return Result.fail(ErrorCodes.AssetReadFailed);\n }\n\n return Result.ok({\n activeLanguage,\n activeTheme,\n languages: availableLanguages.map((language) => ({\n id: language.id,\n name: language.name,\n nativeName: language.nativeName,\n selected: language.id === activeLanguage.id,\n })),\n path: this.#repository.preferencesPath(),\n preferences: this.#normalizePreferences(preferences, activeTheme.id, activeLanguage.id),\n status,\n themes: availableThemes.map((theme) => ({\n id: theme.id,\n name: theme.name,\n primary: theme.colors.primary,\n selected: theme.id === activeTheme.id,\n })),\n });\n }\n\n #normalizePreferences(\n preferences: UserPreferences,\n theme: string,\n language: UserPreferences[\"language\"],\n ): UserPreferences {\n return {\n schema: \"agent-devkit.user-preferences/v1\",\n cliAlias: preferences.cliAlias,\n language,\n logRetentionDays: preferences.logRetentionDays,\n theme,\n updatedAt: preferences.updatedAt,\n };\n }\n\n invoke(\n options: PreferencesServiceOptions,\n ): Promise<Result<AgentDevKitErrorCode, PreferencesResult>> {\n return this.execute(options);\n }\n}\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { PreferencesResult } from \"./preferences.entities\";\n\nconst fallbackTranslator = new I18nCatalog().translator(\"pt-BR\");\n\nexport function formatPreferencesText(\n result: PreferencesResult,\n translator: Translator = fallbackTranslator,\n): string {\n return [\n translator.t(\"preferences.title\"),\n translator.t(\"preferences.command\"),\n \"\",\n `[${translator.t(\"preferences.status\", { status: result.status })}]`,\n ` ${translator.t(\"preferences.field.file\").padEnd(8)} ${result.path}`,\n ` ${translator.t(\"preferences.field.theme\").padEnd(8)} ${result.preferences.theme}`,\n ` ${translator.t(\"preferences.field.language\").padEnd(8)} ${result.preferences.language}`,\n ` ${translator.t(\"preferences.field.logRetentionDays\").padEnd(8)} ${result.preferences.logRetentionDays}d`,\n \"\",\n ` ${translator.t(\"preferences.section.themes\")}`,\n ...result.themes.map(\n (theme) =>\n ` ${theme.selected ? \"*\" : \" \"} ${theme.id.padEnd(16)} ${theme.primary} ${theme.name}`,\n ),\n \"\",\n ` ${translator.t(\"preferences.section.languages\")}`,\n ...result.languages.map(\n (language) =>\n ` ${language.selected ? \"*\" : \" \"} ${language.id.padEnd(8)} ${language.nativeName} ${language.name}`,\n ),\n ].join(\"\\n\");\n}\n","import type { BaseCapabilityService, CapabilityConfig } from \"./capability\";\nimport type { AgentDevKitErrorCode } from \"./errors\";\nimport type { AgentDevKitModuleConfig } from \"./module\";\nimport { Result } from \"./result\";\n\nexport type ModuleCapabilityMap = Record<string, BaseCapabilityService<CapabilityConfig, unknown>>;\n\nexport type ModuleBinding<\n TConfig extends AgentDevKitModuleConfig,\n TCapabilities extends ModuleCapabilityMap,\n> = {\n readonly capabilities: TCapabilities;\n readonly config: TConfig;\n};\n\nexport abstract class ModuleBinder<\n TOptions,\n TConfig extends AgentDevKitModuleConfig,\n TCapabilities extends ModuleCapabilityMap,\n> {\n abstract bind(\n options: TOptions,\n ): Result<AgentDevKitErrorCode, ModuleBinding<TConfig, TCapabilities>>;\n}\n\nexport function defineModuleBinding<\n TConfig extends AgentDevKitModuleConfig,\n TCapabilities extends ModuleCapabilityMap,\n>(\n binding: ModuleBinding<TConfig, TCapabilities>,\n): Result<AgentDevKitErrorCode, ModuleBinding<TConfig, TCapabilities>> {\n return Result.ok(binding);\n}\n","import { access, chmod, mkdir, readFile, rm, writeFile } from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { basename, delimiter, dirname, join } from \"node:path\";\nimport type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport type { PreferencesRepositoryPort } from \"../preferences/preferences.repository\";\nimport type { CliAliasState } from \"./cliAlias.entities\";\nimport { CliAliasNameSchema } from \"./cliAlias.entities\";\n\nexport type CliAliasRepositoryOptions = {\n agentCommand?: string;\n envPath?: string;\n homeDirectory?: string;\n shell?: string;\n preferencesRepository: PreferencesRepositoryPort;\n};\n\nexport interface CliAliasRepositoryPort extends CapabilityRepositoryPort {\n activationCommand(): string;\n binDirectory(): string;\n binDirectoryInPath(): boolean;\n loadAlias(): Promise<Result<AgentDevKitErrorCode, CliAliasState | undefined>>;\n removeAlias(): Promise<Result<AgentDevKitErrorCode, void>>;\n saveAlias(name: string, force?: boolean): Promise<Result<AgentDevKitErrorCode, CliAliasState>>;\n shellCommand(): string;\n syncAlias(): Promise<Result<AgentDevKitErrorCode, CliAliasState>>;\n}\n\nconst reservedAliases = new Set([\n \"agent\",\n \"bash\",\n \"cat\",\n \"cd\",\n \"chmod\",\n \"curl\",\n \"git\",\n \"node\",\n \"npm\",\n \"npx\",\n \"rm\",\n \"sh\",\n \"sudo\",\n \"tsx\",\n \"yarn\",\n \"zsh\",\n]);\n\nfunction now(): string {\n return new Date().toISOString();\n}\n\nexport class CliAliasRepository implements CliAliasRepositoryPort {\n readonly repositoryId = \"user.cli_alias.repository\";\n readonly #agentCommand: string;\n readonly #envPath: string;\n readonly #homeDirectory: string;\n readonly #preferencesRepository: PreferencesRepositoryPort;\n readonly #shell: string;\n\n constructor(options: CliAliasRepositoryOptions) {\n this.#agentCommand = options.agentCommand ?? \"agent\";\n this.#envPath = options.envPath ?? process.env.PATH ?? \"\";\n this.#homeDirectory = options.homeDirectory ?? homedir();\n this.#preferencesRepository = options.preferencesRepository;\n this.#shell = options.shell ?? process.env.SHELL ?? \"\";\n }\n\n activationCommand(): string {\n return `export PATH=\"${this.binDirectory()}:$PATH\"`;\n }\n\n binDirectory(): string {\n return join(this.#homeDirectory, \".agent-devkit\", \"bin\");\n }\n\n binDirectoryInPath(): boolean {\n return this.#envPath.split(delimiter).filter(Boolean).includes(this.binDirectory());\n }\n\n async loadAlias(): Promise<Result<AgentDevKitErrorCode, CliAliasState | undefined>> {\n const preferences = await this.#preferencesRepository.loadPreferences();\n\n if (preferences.isErr()) {\n return Result.fail(preferences.unwrapError());\n }\n\n return Result.ok(preferences.unwrap().cliAlias);\n }\n\n async removeAlias(): Promise<Result<AgentDevKitErrorCode, void>> {\n const preferences = await this.#preferencesRepository.loadPreferences();\n\n if (preferences.isErr()) {\n return Result.fail(preferences.unwrapError());\n }\n\n const alias = preferences.unwrap().cliAlias;\n\n if (alias !== undefined) {\n await this.#removeManagedShim(alias.shimPath);\n }\n\n const { cliAlias, ...next } = preferences.unwrap();\n void cliAlias;\n\n return this.#preferencesRepository.savePreferences({\n ...next,\n updatedAt: now(),\n });\n }\n\n async saveAlias(\n name: string,\n force = false,\n ): Promise<Result<AgentDevKitErrorCode, CliAliasState>> {\n const validName = this.#validateName(name);\n\n if (validName.isErr()) {\n return Result.fail(validName.unwrapError());\n }\n\n const preferences = await this.#preferencesRepository.loadPreferences();\n\n if (preferences.isErr()) {\n return Result.fail(preferences.unwrapError());\n }\n\n const alias: CliAliasState = {\n binDirectory: this.binDirectory(),\n enabled: true,\n name: validName.unwrap(),\n shimPath: this.#shimPath(validName.unwrap()),\n updatedAt: now(),\n };\n const collision = await this.#hasUnsafeCollision(alias, force);\n\n if (collision.isErr()) {\n return Result.fail(collision.unwrapError());\n }\n\n if (preferences.unwrap().cliAlias?.name !== alias.name) {\n await this.#removeManagedShim(preferences.unwrap().cliAlias?.shimPath);\n }\n\n const write = await this.#writeShim(alias);\n\n if (write.isErr()) {\n return Result.fail(write.unwrapError());\n }\n\n const profile = await this.#ensureShellProfilePath();\n\n if (profile.isErr()) {\n return Result.fail(profile.unwrapError());\n }\n\n const save = await this.#preferencesRepository.savePreferences({\n ...preferences.unwrap(),\n cliAlias: alias,\n updatedAt: now(),\n });\n\n return save.isOk() ? Result.ok(alias) : Result.fail(save.unwrapError());\n }\n\n shellCommand(): string {\n return this.activationCommand();\n }\n\n async syncAlias(): Promise<Result<AgentDevKitErrorCode, CliAliasState>> {\n const alias = await this.loadAlias();\n\n if (alias.isErr()) {\n return Result.fail(alias.unwrapError());\n }\n\n const current = alias.unwrap();\n\n if (current === undefined) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return this.saveAlias(current.name, true);\n }\n\n async #hasUnsafeCollision(\n alias: CliAliasState,\n force: boolean,\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n if (force) {\n return Result.ok(undefined);\n }\n\n for (const directory of this.#envPath.split(delimiter).filter(Boolean)) {\n const candidate = join(directory, alias.name);\n\n try {\n await access(candidate);\n } catch {\n continue;\n }\n\n if (candidate === alias.shimPath && (await this.#isManagedShim(candidate))) {\n return Result.ok(undefined);\n }\n\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok(undefined);\n }\n\n async #isManagedShim(path: string): Promise<boolean> {\n try {\n return (await readFile(path, \"utf8\")).includes(\"agent-devkit managed alias shim\");\n } catch {\n return false;\n }\n }\n\n async #removeManagedShim(path: string | undefined): Promise<void> {\n if (path === undefined || !(await this.#isManagedShim(path))) {\n return;\n }\n\n await rm(path, { force: true });\n }\n\n #shimPath(name: string): string {\n return join(this.binDirectory(), name);\n }\n\n #shellProfilePath(): string {\n const shellName = basename(this.#shell);\n\n if (shellName === \"zsh\") {\n return join(this.#homeDirectory, \".zshrc\");\n }\n\n if (shellName === \"bash\") {\n return join(this.#homeDirectory, \".bashrc\");\n }\n\n return join(this.#homeDirectory, \".profile\");\n }\n\n #validateName(name: string): Result<AgentDevKitErrorCode, string> {\n const parsed = CliAliasNameSchema.safeParse(name);\n\n if (!parsed.success || reservedAliases.has(parsed.data)) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok(parsed.data);\n }\n\n async #writeShim(alias: CliAliasState): Promise<Result<AgentDevKitErrorCode, void>> {\n const script = [\n \"#!/usr/bin/env sh\",\n \"# agent-devkit managed alias shim\",\n `exec ${this.#agentCommand} \"$@\"`,\n \"\",\n ].join(\"\\n\");\n\n try {\n await mkdir(dirname(alias.shimPath), { recursive: true, mode: 0o700 });\n await writeFile(alias.shimPath, script, \"utf8\");\n await chmod(alias.shimPath, 0o755);\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n async #ensureShellProfilePath(): Promise<Result<AgentDevKitErrorCode, void>> {\n const profilePath = this.#shellProfilePath();\n const block = [\n \"\",\n \"# agent-devkit managed PATH\",\n `case \":$PATH:\" in *\":${this.binDirectory()}:\"*) ;; *) export PATH=\"${this.binDirectory()}:$PATH\" ;; esac`,\n \"# /agent-devkit managed PATH\",\n \"\",\n ].join(\"\\n\");\n\n try {\n await mkdir(dirname(profilePath), { recursive: true, mode: 0o700 });\n\n let current = \"\";\n\n try {\n current = await readFile(profilePath, \"utf8\");\n } catch {\n current = \"\";\n }\n\n if (!current.includes(\"# agent-devkit managed PATH\")) {\n await writeFile(profilePath, `${current.trimEnd()}${block}`, {\n encoding: \"utf8\",\n mode: 0o600,\n });\n }\n\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n}\n","import { existsSync } from \"node:fs\";\nimport { access, copyFile, mkdir, readdir, readFile } from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { basename, dirname, join, resolve } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport {\n type CharacterDefinition,\n CharacterDefinitionSchema,\n type CharacterId,\n} from \"../../../../infra/bases/character\";\nimport type { AgentDataStore } from \"../../../../infra/bases/data_store\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport { LocalAgentDataStore } from \"../../../../infra/data/local_agent_data_store\";\nimport {\n type CharacterListItem,\n type UserPersonalizationState,\n UserPersonalizationStateSchema,\n} from \"./personalization.entities\";\n\nexport type PersonalizationRepositoryOptions = {\n assetsDirectory?: string;\n dataStore?: AgentDataStore;\n homeDirectory?: string;\n};\n\nexport interface PersonalizationRepositoryPort extends CapabilityRepositoryPort {\n charactersDirectory(): string;\n customCharactersDirectory(): string;\n defaultState(): Promise<Result<AgentDevKitErrorCode, UserPersonalizationState>>;\n importSprite(\n characterId: CharacterId,\n sourcePath: string,\n ): Promise<Result<AgentDevKitErrorCode, string>>;\n loadCharacters(\n selectedCharacterId?: CharacterId,\n ): Promise<Result<AgentDevKitErrorCode, CharacterListItem[]>>;\n loadPresetCharacter(\n characterId: CharacterId,\n ): Promise<Result<AgentDevKitErrorCode, CharacterDefinition>>;\n loadProfile(): Promise<Result<AgentDevKitErrorCode, UserPersonalizationState>>;\n profilePath(): string;\n saveCustomCharacter(character: CharacterDefinition): Promise<Result<AgentDevKitErrorCode, void>>;\n saveProfile(profile: UserPersonalizationState): Promise<Result<AgentDevKitErrorCode, void>>;\n}\n\nfunction defaultAssetsDirectory(): string {\n const moduleDirectory = dirname(fileURLToPath(import.meta.url));\n const candidates = [\n resolve(moduleDirectory, \"../../../../assets\"),\n resolve(moduleDirectory, \"../src/assets\"),\n resolve(process.cwd(), \"src/assets\"),\n ];\n\n return (\n candidates.find((candidate) => existsSync(candidate)) ?? resolve(process.cwd(), \"src/assets\")\n );\n}\n\nfunction cloneCharacter(character: CharacterDefinition): CharacterDefinition {\n return {\n ...character,\n i18n: { ...character.i18n },\n profile: {\n ...character.profile,\n traits: [...character.profile.traits],\n },\n };\n}\n\nexport class PersonalizationRepository implements PersonalizationRepositoryPort {\n readonly repositoryId = \"user.personalization.repository\";\n readonly #assetsDirectory: string;\n readonly #dataStore: AgentDataStore;\n readonly #homeDirectory: string;\n\n constructor(options: PersonalizationRepositoryOptions = {}) {\n this.#assetsDirectory = options.assetsDirectory ?? defaultAssetsDirectory();\n this.#homeDirectory = options.homeDirectory ?? homedir();\n this.#dataStore =\n options.dataStore ??\n new LocalAgentDataStore({\n rootDirectory: join(this.#homeDirectory, \".agent-devkit\", \"data\"),\n });\n }\n\n charactersDirectory(): string {\n return join(this.#assetsDirectory, \"characters\");\n }\n\n customCharactersDirectory(): string {\n const resolved = this.#dataStore.resolve({\n namespace: \"personalization\",\n segments: [\"characters\"],\n });\n\n return resolved.isOk()\n ? resolved.unwrap()\n : join(this.#homeDirectory, \".agent-devkit\", \"data\", \"personalization\", \"characters\");\n }\n\n async defaultState(): Promise<Result<AgentDevKitErrorCode, UserPersonalizationState>> {\n const characters = await this.#loadPresetCharacters();\n\n if (characters.isErr()) {\n return Result.fail(characters.unwrapError());\n }\n\n const defaultCharacter =\n characters.unwrap().find((character) => character.default && character.active) ??\n characters.unwrap().find((character) => character.id === \"kit\" && character.active);\n\n if (defaultCharacter === undefined) {\n return Result.fail(ErrorCodes.AssetReadFailed);\n }\n\n return Result.ok({\n schema: \"agent-devkit.agent-personalization/v2\",\n currentCharacter: cloneCharacter(defaultCharacter),\n selectedPresetId: defaultCharacter.id,\n updatedAt: new Date(0).toISOString(),\n });\n }\n\n async importSprite(\n characterId: CharacterId,\n sourcePath: string,\n ): Promise<Result<AgentDevKitErrorCode, string>> {\n try {\n await access(sourcePath);\n const extension = basename(sourcePath).includes(\".\")\n ? `.${basename(sourcePath).split(\".\").pop() ?? \"sprite\"}`\n : \"\";\n const targetDirectory = join(this.customCharactersDirectory(), characterId);\n const targetPath = join(targetDirectory, `sprite${extension}`);\n\n await mkdir(targetDirectory, { recursive: true });\n await copyFile(sourcePath, targetPath);\n\n return Result.ok(targetPath);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n async loadCharacters(\n selectedCharacterId?: CharacterId,\n ): Promise<Result<AgentDevKitErrorCode, CharacterListItem[]>> {\n const presets = await this.#loadPresetCharacters();\n const custom = await this.#loadCustomCharacters();\n\n if (presets.isErr()) {\n return Result.fail(presets.unwrapError());\n }\n\n if (custom.isErr()) {\n return Result.fail(custom.unwrapError());\n }\n\n const charactersById = new Map<string, CharacterListItem>();\n\n for (const character of presets.unwrap()) {\n charactersById.set(character.id, this.#listItem(character, false, selectedCharacterId));\n }\n\n for (const character of custom.unwrap()) {\n charactersById.set(character.id, this.#listItem(character, true, selectedCharacterId));\n }\n\n return Result.ok([...charactersById.values()]);\n }\n\n async loadPresetCharacter(\n characterId: CharacterId,\n ): Promise<Result<AgentDevKitErrorCode, CharacterDefinition>> {\n const characters = await this.#loadPresetCharacters();\n\n if (characters.isErr()) {\n return Result.fail(characters.unwrapError());\n }\n\n const character = characters\n .unwrap()\n .find((candidate) => candidate.id === characterId && candidate.active);\n\n return character === undefined\n ? Result.fail(ErrorCodes.InvalidInput)\n : Result.ok(cloneCharacter(character));\n }\n\n async loadProfile(): Promise<Result<AgentDevKitErrorCode, UserPersonalizationState>> {\n const path = { namespace: \"personalization\" as const, segments: [\"profile.json\"] };\n const exists = await this.#dataStore.exists(path);\n\n if (exists.isErr()) {\n return Result.fail(exists.unwrapError());\n }\n\n if (exists.unwrap()) {\n const payload = await this.#dataStore.readJson<unknown>(path);\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n const parsed = UserPersonalizationStateSchema.safeParse(payload.unwrap());\n\n return parsed.success ? Result.ok(parsed.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n\n const legacy = await this.#loadLegacyProfile();\n\n if (legacy.isOk()) {\n await this.saveProfile(legacy.unwrap());\n return legacy;\n }\n\n if (legacy.unwrapError() !== ErrorCodes.FileReadFailed) {\n return Result.fail(legacy.unwrapError());\n }\n\n return this.defaultState();\n }\n\n async #loadLegacyProfile(): Promise<Result<AgentDevKitErrorCode, UserPersonalizationState>> {\n try {\n await access(this.#legacyProfilePath());\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n\n try {\n const payload = JSON.parse(await readFile(this.#legacyProfilePath(), \"utf8\"));\n const parsed = UserPersonalizationStateSchema.safeParse(payload);\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok(parsed.data);\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n profilePath(): string {\n const resolved = this.#dataStore.resolve({\n namespace: \"personalization\",\n segments: [\"profile.json\"],\n });\n\n return resolved.isOk()\n ? resolved.unwrap()\n : join(this.#homeDirectory, \".agent-devkit\", \"data\", \"personalization\", \"profile.json\");\n }\n\n async saveCustomCharacter(\n character: CharacterDefinition,\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n try {\n return await this.#dataStore.writeJson(\n { namespace: \"personalization\", segments: [\"characters\", character.id, \"character.json\"] },\n character,\n );\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n async saveProfile(\n profile: UserPersonalizationState,\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n try {\n return await this.#dataStore.writeJson(\n { namespace: \"personalization\", segments: [\"profile.json\"] },\n profile,\n );\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n async #loadCustomCharacters(): Promise<Result<AgentDevKitErrorCode, CharacterDefinition[]>> {\n const legacy = await this.#loadLegacyCustomCharacters();\n\n if (legacy.isOk()) {\n for (const character of legacy.unwrap()) {\n await this.saveCustomCharacter(character);\n await this.#migrateLegacySprite(character.id);\n }\n } else if (legacy.unwrapError() !== ErrorCodes.FileReadFailed) {\n return Result.fail(legacy.unwrapError());\n }\n\n try {\n await access(this.customCharactersDirectory());\n } catch {\n return Result.ok([]);\n }\n\n return this.#loadCharactersFromDirectory(this.customCharactersDirectory());\n }\n\n async #loadPresetCharacters(): Promise<Result<AgentDevKitErrorCode, CharacterDefinition[]>> {\n return this.#loadCharactersFromDirectory(this.charactersDirectory());\n }\n\n async #loadCharactersFromDirectory(\n directory: string,\n ): Promise<Result<AgentDevKitErrorCode, CharacterDefinition[]>> {\n try {\n const entries = (await readdir(directory, { withFileTypes: true }))\n .filter((entry) => entry.isDirectory())\n .map((entry) => entry.name)\n .sort((left, right) => left.localeCompare(right));\n const characters: CharacterDefinition[] = [];\n\n for (const entry of entries) {\n const payload = JSON.parse(\n await readFile(join(directory, entry, \"character.json\"), \"utf8\"),\n );\n const parsed = CharacterDefinitionSchema.safeParse(payload);\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n characters.push(parsed.data);\n }\n\n return Result.ok(characters);\n } catch {\n return Result.fail(ErrorCodes.AssetReadFailed);\n }\n }\n\n #listItem(\n character: CharacterDefinition,\n custom: boolean,\n selectedCharacterId?: CharacterId,\n ): CharacterListItem {\n const packageSpritePath = this.#findPackageCharacterSprite(character.id);\n const userSpritePath = this.#findUserCharacterSprite(character.id);\n\n return {\n ...cloneCharacter(character),\n custom,\n selected: character.id === selectedCharacterId,\n spritePath:\n userSpritePath !== undefined\n ? userSpritePath\n : packageSpritePath !== undefined\n ? packageSpritePath\n : undefined,\n };\n }\n\n #findPackageCharacterSprite(characterId: CharacterId): string | undefined {\n const directory = join(this.charactersDirectory(), characterId);\n const candidates = [\"sprite.js\", \"sprite.svg\", \"sprite.png\", \"sprite.jpg\", \"sprite.jpeg\"];\n\n return candidates\n .map((candidate) => join(directory, candidate))\n .find((candidate) => existsSync(candidate));\n }\n\n #findUserCharacterSprite(characterId: CharacterId): string | undefined {\n const directory = join(this.customCharactersDirectory(), characterId);\n\n if (!existsSync(directory)) {\n return undefined;\n }\n\n const candidates = [\"sprite.js\", \"sprite.svg\", \"sprite.png\", \"sprite.jpg\", \"sprite.jpeg\"];\n\n return candidates\n .map((candidate) => join(directory, candidate))\n .find((candidate) => existsSync(candidate));\n }\n\n async #loadLegacyCustomCharacters(): Promise<\n Result<AgentDevKitErrorCode, CharacterDefinition[]>\n > {\n try {\n await access(this.#legacyCustomCharactersDirectory());\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n\n return this.#loadCharactersFromDirectory(this.#legacyCustomCharactersDirectory());\n }\n\n async #migrateLegacySprite(characterId: CharacterId): Promise<void> {\n const source = [\"sprite.js\", \"sprite.svg\", \"sprite.png\", \"sprite.jpg\", \"sprite.jpeg\"]\n .map((candidate) => join(this.#legacyCustomCharactersDirectory(), characterId, candidate))\n .find((candidate) => existsSync(candidate));\n\n if (source === undefined) {\n return;\n }\n\n const extension = basename(source).includes(\".\")\n ? `.${basename(source).split(\".\").pop() ?? \"sprite\"}`\n : \"\";\n const target = this.#dataStore.resolve({\n namespace: \"personalization\",\n segments: [\"characters\", characterId, `sprite${extension}`],\n });\n\n if (target.isErr()) {\n return;\n }\n\n await mkdir(dirname(target.unwrap()), { recursive: true });\n await copyFile(source, target.unwrap()).catch(() => undefined);\n }\n\n #legacyCustomCharactersDirectory(): string {\n return join(this.#homeDirectory, \".agent-devkit\", \"characters\");\n }\n\n #legacyProfilePath(): string {\n return join(this.#homeDirectory, \".agent-devkit\", \"personalization.json\");\n }\n}\n","import { randomBytes } from \"node:crypto\";\nimport {\n access,\n appendFile,\n mkdir,\n readdir,\n readFile,\n rename,\n rm,\n writeFile,\n} from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { dirname, isAbsolute, join, resolve, sep } from \"node:path\";\nimport type {\n AgentDataEntry,\n AgentDataPath,\n AgentDataStore,\n AgentDataWriteOptions,\n} from \"../bases/data_store\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport { Result } from \"../bases/result\";\n\nexport type LocalAgentDataStoreOptions = {\n rootDirectory?: string;\n};\n\nfunction defaultRootDirectory(): string {\n return join(homedir(), \".agent-devkit\", \"data\");\n}\n\nfunction hasPathSeparator(segment: string): boolean {\n return segment.includes(\"/\") || segment.includes(\"\\\\\");\n}\n\nfunction isNotFoundError(error: unknown): boolean {\n return (\n typeof error === \"object\" &&\n error !== null &&\n \"code\" in error &&\n (error as { code?: unknown }).code === \"ENOENT\"\n );\n}\n\nexport class LocalAgentDataStore implements AgentDataStore {\n readonly #rootDirectory: string;\n\n constructor(options: LocalAgentDataStoreOptions = {}) {\n this.#rootDirectory = resolve(options.rootDirectory ?? defaultRootDirectory());\n }\n\n rootDirectory(): string {\n return this.#rootDirectory;\n }\n\n resolve(path: AgentDataPath): Result<AgentDevKitErrorCode, string> {\n if (\n path.segments.some(\n (segment) =>\n segment.length === 0 ||\n segment === \".\" ||\n segment === \"..\" ||\n isAbsolute(segment) ||\n hasPathSeparator(segment),\n )\n ) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const target = resolve(this.#rootDirectory, path.namespace, ...path.segments);\n const allowedRoot = `${this.#rootDirectory}${sep}`;\n\n if (target !== this.#rootDirectory && !target.startsWith(allowedRoot)) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok(target);\n }\n\n async readJson<T>(path: AgentDataPath): Promise<Result<AgentDevKitErrorCode, T>> {\n const content = await this.readText(path);\n\n if (content.isErr()) {\n return Result.fail(content.unwrapError());\n }\n\n try {\n return Result.ok(JSON.parse(content.unwrap()) as T);\n } catch {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n }\n\n async writeJson<T>(\n path: AgentDataPath,\n value: T,\n options: AgentDataWriteOptions = {},\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n return this.writeText(path, `${JSON.stringify(value, null, 2)}\\n`, options);\n }\n\n async appendJsonl<T>(\n path: AgentDataPath,\n value: T,\n _options: AgentDataWriteOptions = {},\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n const target = this.resolve(path);\n\n if (target.isErr()) {\n return Result.fail(target.unwrapError());\n }\n\n try {\n await mkdir(dirname(target.unwrap()), { recursive: true });\n await appendFile(target.unwrap(), `${JSON.stringify(value)}\\n`, \"utf8\");\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n async readJsonl<T>(path: AgentDataPath): Promise<Result<AgentDevKitErrorCode, T[]>> {\n const content = await this.readText(path);\n\n if (content.isErr()) {\n return Result.fail(content.unwrapError());\n }\n\n try {\n return Result.ok(\n content\n .unwrap()\n .split(\"\\n\")\n .map((line) => line.trim())\n .filter((line) => line.length > 0)\n .map((line) => JSON.parse(line) as T),\n );\n } catch {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n }\n\n async readText(path: AgentDataPath): Promise<Result<AgentDevKitErrorCode, string>> {\n const target = this.resolve(path);\n\n if (target.isErr()) {\n return Result.fail(target.unwrapError());\n }\n\n try {\n return Result.ok(await readFile(target.unwrap(), \"utf8\"));\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n async writeText(\n path: AgentDataPath,\n value: string,\n options: AgentDataWriteOptions = {},\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n return this.#write(path, value, options);\n }\n\n async readBinary(path: AgentDataPath): Promise<Result<AgentDevKitErrorCode, Uint8Array>> {\n const target = this.resolve(path);\n\n if (target.isErr()) {\n return Result.fail(target.unwrapError());\n }\n\n try {\n return Result.ok(await readFile(target.unwrap()));\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n async writeBinary(\n path: AgentDataPath,\n value: Uint8Array,\n options: AgentDataWriteOptions = {},\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n return this.#write(path, value, options);\n }\n\n async list(path: AgentDataPath): Promise<Result<AgentDevKitErrorCode, AgentDataEntry[]>> {\n const target = this.resolve(path);\n\n if (target.isErr()) {\n return Result.fail(target.unwrapError());\n }\n\n try {\n const entries = await readdir(target.unwrap(), { withFileTypes: true });\n return Result.ok(\n entries\n .map((entry) => ({\n kind: entry.isDirectory() ? (\"directory\" as const) : (\"file\" as const),\n name: entry.name,\n path: { namespace: path.namespace, segments: [...path.segments, entry.name] },\n }))\n .sort((left, right) => left.name.localeCompare(right.name)),\n );\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n async remove(path: AgentDataPath): Promise<Result<AgentDevKitErrorCode, void>> {\n const target = this.resolve(path);\n\n if (target.isErr()) {\n return Result.fail(target.unwrapError());\n }\n\n try {\n await rm(target.unwrap(), { force: true, recursive: true });\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n async exists(path: AgentDataPath): Promise<Result<AgentDevKitErrorCode, boolean>> {\n const target = this.resolve(path);\n\n if (target.isErr()) {\n return Result.fail(target.unwrapError());\n }\n\n try {\n await access(target.unwrap());\n return Result.ok(true);\n } catch (error) {\n return isNotFoundError(error) ? Result.ok(false) : Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n async #write(\n path: AgentDataPath,\n value: string | Uint8Array,\n options: AgentDataWriteOptions,\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n const target = this.resolve(path);\n\n if (target.isErr()) {\n return Result.fail(target.unwrapError());\n }\n\n const atomic = options.atomic ?? true;\n\n try {\n await mkdir(dirname(target.unwrap()), { recursive: true });\n\n if (!atomic) {\n await writeFile(target.unwrap(), value);\n return Result.ok(undefined);\n }\n\n const tempPath = join(\n dirname(target.unwrap()),\n `.agent-data-${process.pid}-${randomBytes(6).toString(\"hex\")}.tmp`,\n );\n\n try {\n await writeFile(tempPath, value, { flag: \"wx\" });\n await rename(tempPath, target.unwrap());\n } catch (error) {\n await rm(tempPath, { force: true }).catch(() => undefined);\n throw error;\n }\n\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n}\n","import { existsSync } from \"node:fs\";\nimport { access, readdir, readFile } from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { dirname, join, resolve } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport type { AgentDataStore } from \"../../../../infra/bases/data_store\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport type { LanguageDefinition } from \"../../../../infra/bases/i18n\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport { type ThemeDefinition, ThemeDefinitionSchema } from \"../../../../infra/bases/theme\";\nimport { LocalAgentDataStore } from \"../../../../infra/data/local_agent_data_store\";\nimport { CliAliasStateSchema } from \"../cliAlias/cliAlias.entities\";\nimport type { UserPreferences } from \"./preferences.entities\";\n\nexport type PreferencesRepositoryOptions = {\n dataStore?: AgentDataStore;\n homeDirectory?: string;\n i18nDirectory?: string;\n themesDirectory?: string;\n};\n\nexport interface PreferencesRepositoryPort extends CapabilityRepositoryPort {\n defaultPreferences(): UserPreferences;\n loadLanguages(): Promise<Result<AgentDevKitErrorCode, LanguageDefinition[]>>;\n loadPreferences(): Promise<Result<AgentDevKitErrorCode, UserPreferences>>;\n loadThemes(): Promise<Result<AgentDevKitErrorCode, ThemeDefinition[]>>;\n preferencesPath(): string;\n savePreferences(preferences: UserPreferences): Promise<Result<AgentDevKitErrorCode, void>>;\n}\n\nconst defaultLanguage = \"pt-BR\";\nconst defaultLogRetentionDays = 30;\nconst defaultTheme = \"default-purple\";\n\nfunction defaultThemesDirectory(): string {\n const moduleDirectory = dirname(fileURLToPath(import.meta.url));\n const candidates = [\n resolve(moduleDirectory, \"../../../../assets/themes\"),\n resolve(moduleDirectory, \"../src/assets/themes\"),\n resolve(process.cwd(), \"src/assets/themes\"),\n ];\n\n return (\n candidates.find((candidate) => existsSync(candidate)) ??\n resolve(process.cwd(), \"src/assets/themes\")\n );\n}\n\nfunction createDefaultPreferences(): UserPreferences {\n return {\n schema: \"agent-devkit.user-preferences/v1\",\n language: defaultLanguage,\n logRetentionDays: defaultLogRetentionDays,\n theme: defaultTheme,\n updatedAt: new Date(0).toISOString(),\n };\n}\n\nexport class PreferencesRepository implements PreferencesRepositoryPort {\n readonly repositoryId = \"user.preferences.repository\";\n readonly #dataStore: AgentDataStore;\n readonly #homeDirectory: string;\n readonly #i18nCatalog: I18nCatalog;\n readonly #themesDirectory: string;\n\n constructor(options: PreferencesRepositoryOptions = {}) {\n this.#homeDirectory = options.homeDirectory ?? homedir();\n this.#dataStore =\n options.dataStore ??\n new LocalAgentDataStore({\n rootDirectory: join(this.#homeDirectory, \".agent-devkit\", \"data\"),\n });\n this.#i18nCatalog = new I18nCatalog({ directory: options.i18nDirectory });\n this.#themesDirectory = options.themesDirectory ?? defaultThemesDirectory();\n }\n\n defaultPreferences(): UserPreferences {\n return createDefaultPreferences();\n }\n\n async loadLanguages(): Promise<Result<AgentDevKitErrorCode, LanguageDefinition[]>> {\n return this.#i18nCatalog.loadLanguages();\n }\n\n async loadPreferences(): Promise<Result<AgentDevKitErrorCode, UserPreferences>> {\n const path = { namespace: \"preferences\" as const, segments: [\"preferences.json\"] };\n const exists = await this.#dataStore.exists(path);\n\n if (exists.isErr()) {\n return Result.fail(exists.unwrapError());\n }\n\n if (exists.unwrap()) {\n const payload = await this.#dataStore.readJson<Partial<UserPreferences>>(path);\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n return this.#normalizePayload(payload.unwrap());\n }\n\n const legacy = await this.#loadLegacyPreferences();\n\n if (legacy.isOk()) {\n await this.savePreferences(legacy.unwrap());\n return legacy;\n }\n\n if (legacy.unwrapError() !== ErrorCodes.FileReadFailed) {\n return Result.fail(legacy.unwrapError());\n }\n\n return Result.ok(this.defaultPreferences());\n }\n\n async #loadLegacyPreferences(): Promise<Result<AgentDevKitErrorCode, UserPreferences>> {\n try {\n await access(this.#legacyPreferencesPath());\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n\n try {\n const payload = JSON.parse(\n await readFile(this.#legacyPreferencesPath(), \"utf8\"),\n ) as Partial<UserPreferences>;\n return this.#normalizePayload(payload);\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n #normalizePayload(\n payload: Partial<UserPreferences>,\n ): Result<AgentDevKitErrorCode, UserPreferences> {\n if (payload.schema !== \"agent-devkit.user-preferences/v1\") {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok({\n schema: \"agent-devkit.user-preferences/v1\",\n cliAlias:\n payload.cliAlias === undefined\n ? undefined\n : CliAliasStateSchema.safeParse(payload.cliAlias).success\n ? CliAliasStateSchema.parse(payload.cliAlias)\n : undefined,\n language: payload.language ?? defaultLanguage,\n logRetentionDays: payload.logRetentionDays ?? defaultLogRetentionDays,\n theme: payload.theme ?? defaultTheme,\n updatedAt: payload.updatedAt ?? new Date(0).toISOString(),\n });\n }\n\n async loadThemes(): Promise<Result<AgentDevKitErrorCode, ThemeDefinition[]>> {\n try {\n const files = (await readdir(this.#themesDirectory))\n .filter((file) => file.endsWith(\".json\"))\n .sort((left, right) =>\n left === \"default-purple.json\"\n ? -1\n : right === \"default-purple.json\"\n ? 1\n : left.localeCompare(right),\n );\n const themes: ThemeDefinition[] = [];\n\n for (const file of files) {\n const payload = JSON.parse(await readFile(join(this.#themesDirectory, file), \"utf8\"));\n const parsed = ThemeDefinitionSchema.safeParse(payload);\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n themes.push(parsed.data);\n }\n\n return Result.ok(themes);\n } catch {\n return Result.fail(ErrorCodes.AssetReadFailed);\n }\n }\n\n preferencesPath(): string {\n const resolved = this.#dataStore.resolve({\n namespace: \"preferences\",\n segments: [\"preferences.json\"],\n });\n\n return resolved.isOk()\n ? resolved.unwrap()\n : join(this.#homeDirectory, \".agent-devkit\", \"data\", \"preferences\", \"preferences.json\");\n }\n\n async savePreferences(preferences: UserPreferences): Promise<Result<AgentDevKitErrorCode, void>> {\n return this.#dataStore.writeJson(\n { namespace: \"preferences\", segments: [\"preferences.json\"] },\n preferences,\n );\n }\n\n #legacyPreferencesPath(): string {\n return join(this.#homeDirectory, \".agent-devkit\", \"preferences.json\");\n }\n}\n","import type { AgentDevKitConfig } from \"./config\";\n\nexport type ModuleTestBinding = {\n include: readonly [string, ...string[]];\n};\n\nexport type AgentDevKitModuleConfig = AgentDevKitConfig & {\n capabilities: readonly string[];\n tests: ModuleTestBinding;\n};\n\nexport function defineModuleConfig<TConfig extends AgentDevKitModuleConfig>(\n config: TConfig,\n): TConfig {\n return config;\n}\n","import { defineModuleConfig } from \"../../infra/bases/module\";\nimport { cliAliasCapabilityConfig } from \"./capabilities/cliAlias/cliAlias.service\";\nimport { personalizationCapabilityConfig } from \"./capabilities/personalization/personalization.service\";\nimport { preferencesCapabilityConfig } from \"./capabilities/preferences/preferences.service\";\n\nexport const userModuleConfig = defineModuleConfig({\n id: \"user\",\n name: \"User\",\n description: \"User-level Agent DevKit preferences and personalization.\",\n capabilities: [\n cliAliasCapabilityConfig.id,\n personalizationCapabilityConfig.id,\n preferencesCapabilityConfig.id,\n ],\n tests: {\n include: [\n \"src/modules/user/user.surface.test.ts\",\n \"src/modules/user/capabilities/**/*.test.ts\",\n ],\n },\n} as const);\n","import { defineModuleBinding, ModuleBinder, type ModuleBinding } from \"../../infra/bases/bind\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport {\n CliAliasRepository,\n type CliAliasRepositoryPort,\n} from \"./capabilities/cliAlias/cliAlias.repository\";\nimport { CliAliasService } from \"./capabilities/cliAlias/cliAlias.service\";\nimport {\n PersonalizationRepository,\n type PersonalizationRepositoryPort,\n} from \"./capabilities/personalization/personalization.repository\";\nimport { PersonalizationService } from \"./capabilities/personalization/personalization.service\";\nimport {\n PreferencesRepository,\n type PreferencesRepositoryPort,\n} from \"./capabilities/preferences/preferences.repository\";\nimport { PreferencesService } from \"./capabilities/preferences/preferences.service\";\nimport { userModuleConfig } from \"./user.config\";\n\nexport type UserModuleBindOptions = {\n homeDirectory?: string;\n};\n\nexport type UserModuleCapabilities = {\n cliAlias: CliAliasService;\n personalization: PersonalizationService;\n preferences: PreferencesService;\n};\n\nexport type UserModuleBinding = ModuleBinding<typeof userModuleConfig, UserModuleCapabilities>;\n\ntype UserModuleBinderDependencies = {\n cliAliasRepository: (options: UserModuleBindOptions) => CliAliasRepositoryPort;\n personalizationRepository: (options: UserModuleBindOptions) => PersonalizationRepositoryPort;\n preferencesRepository: (options: UserModuleBindOptions) => PreferencesRepositoryPort;\n};\n\nconst defaultDependencies: UserModuleBinderDependencies = {\n cliAliasRepository: (options) =>\n new CliAliasRepository({\n homeDirectory: options.homeDirectory,\n preferencesRepository: new PreferencesRepository(options),\n }),\n personalizationRepository: (options) => new PersonalizationRepository(options),\n preferencesRepository: (options) => new PreferencesRepository(options),\n};\n\nexport class UserModuleBinder extends ModuleBinder<\n UserModuleBindOptions,\n typeof userModuleConfig,\n UserModuleCapabilities\n> {\n readonly #dependencies: UserModuleBinderDependencies;\n\n constructor(dependencies: UserModuleBinderDependencies = defaultDependencies) {\n super();\n this.#dependencies = dependencies;\n }\n\n override bind(options: UserModuleBindOptions): Result<AgentDevKitErrorCode, UserModuleBinding> {\n return defineModuleBinding({\n config: userModuleConfig,\n capabilities: {\n cliAlias: new CliAliasService({\n repository: this.#dependencies.cliAliasRepository(options),\n }),\n personalization: new PersonalizationService({\n repository: this.#dependencies.personalizationRepository(options),\n }),\n preferences: new PreferencesService({\n repository: this.#dependencies.preferencesRepository(options),\n }),\n },\n });\n }\n}\n\nexport function createUserModuleBindings(\n options: UserModuleBindOptions = {},\n): Result<AgentDevKitErrorCode, UserModuleBinding> {\n return new UserModuleBinder().bind(options);\n}\n","import type { LogCategorySelection } from \"../../modules/logs/logs.index\";\n\nexport type JsonCommandOptions = {\n json?: boolean;\n};\n\nexport type LogCategoryCommandOptions = {\n all?: boolean;\n technical?: boolean;\n};\n\nexport function wantsJson(options?: JsonCommandOptions, argv: string[] = process.argv): boolean {\n return options?.json === true || argv.includes(\"--json\");\n}\n\nexport function parseNonNegativeInteger(value: string | undefined): number | undefined {\n if (value === undefined) {\n return undefined;\n }\n\n const parsed = Number.parseInt(value, 10);\n return Number.isInteger(parsed) && parsed >= 0 && String(parsed) === value.trim()\n ? parsed\n : undefined;\n}\n\nexport function parsePositiveInteger(value: string): number {\n const parsed = Number.parseInt(value, 10);\n\n if (!Number.isInteger(parsed) || parsed < 1 || String(parsed) !== value.trim()) {\n throw new Error(`Expected a positive integer, received: ${value}`);\n }\n\n return parsed;\n}\n\nexport function logCategoryFromOptions(\n options: LogCategoryCommandOptions,\n argv: string[] = process.argv,\n): LogCategorySelection | undefined {\n if (options.all === true || argv.includes(\"--all\")) {\n return \"all\";\n }\n\n if (options.technical === true || argv.includes(\"--technical\")) {\n return \"technical\";\n }\n\n return undefined;\n}\n","import { join } from \"node:path\";\nimport {\n BaseCapabilityService,\n type CapabilityExecution,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport { DoctorInputSchema, type DoctorReport, DoctorReportSchema } from \"./doctor.entities\";\nimport type { DoctorRepositoryPort } from \"./doctor.repository\";\n\ntype DoctorServiceDependencies = {\n appVersion: string;\n repository: DoctorRepositoryPort;\n};\n\nexport const doctorCapabilityConfig = defineCapabilityConfig({\n id: \"project.doctor\",\n moduleId: \"project\",\n name: \"Doctor\",\n description: \"Inspect the local Agent DevKit environment without changing state.\",\n kind: \"deterministic\",\n risk: \"read-only\",\n} as const);\n\nexport class DoctorService\n extends BaseCapabilityService<typeof doctorCapabilityConfig, DoctorServiceDependencies>\n implements CapabilityExecution<void, DoctorReport>\n{\n readonly inputSchema = DoctorInputSchema;\n readonly outputSchema = DoctorReportSchema;\n readonly #appVersion: string;\n readonly #repository: DoctorRepositoryPort;\n\n constructor(dependencies: DoctorServiceDependencies) {\n super(doctorCapabilityConfig, dependencies);\n this.#appVersion = dependencies.appVersion;\n this.#repository = dependencies.repository;\n }\n\n async execute(): Promise<Result<AgentDevKitErrorCode, DoctorReport>> {\n const homeDirectory = this.#repository.homeDirectory();\n const cwd = this.#repository.cwd();\n const nodeVersion = this.#repository.nodeVersion();\n const platform = this.#repository.platform();\n const stdinIsTTY = this.#repository.stdinIsTTY();\n const stdoutIsTTY = this.#repository.stdoutIsTTY();\n\n for (const result of [homeDirectory, cwd, nodeVersion, platform, stdinIsTTY, stdoutIsTTY]) {\n if (result.isErr()) {\n return Result.fail(result.unwrapError());\n }\n }\n\n const globalStatePath = join(homeDirectory.unwrap(), \".agent-devkit\");\n const projectStatePath = join(cwd.unwrap(), \".agent-devkit\");\n const globalStateExists = await this.#repository.exists(globalStatePath);\n const projectStateExists = await this.#repository.exists(projectStatePath);\n\n if (globalStateExists.isErr()) {\n return Result.fail(globalStateExists.unwrapError());\n }\n\n if (projectStateExists.isErr()) {\n return Result.fail(projectStateExists.unwrapError());\n }\n\n let models: DoctorReport[\"models\"];\n\n if (this.#repository.installedModels !== undefined) {\n const installedModels = await this.#repository.installedModels(homeDirectory.unwrap());\n\n if (installedModels.isErr()) {\n return Result.fail(installedModels.unwrapError());\n }\n\n models = {\n directory: installedModels.unwrap().directory,\n installed: installedModels.unwrap().ids.length,\n ids: installedModels.unwrap().ids,\n };\n }\n\n return Result.ok({\n status: globalStateExists.unwrap() || projectStateExists.unwrap() ? \"ok\" : \"warning\",\n version: this.#appVersion,\n node: {\n version: nodeVersion.unwrap(),\n },\n system: {\n platform: platform.unwrap(),\n cwd: cwd.unwrap(),\n },\n terminal: {\n stdinIsTTY: stdinIsTTY.unwrap(),\n stdoutIsTTY: stdoutIsTTY.unwrap(),\n },\n runtime: {\n globalState: {\n path: globalStatePath,\n exists: globalStateExists.unwrap(),\n },\n projectState: {\n path: projectStatePath,\n exists: projectStateExists.unwrap(),\n },\n },\n models,\n });\n }\n\n invoke(): Promise<Result<AgentDevKitErrorCode, DoctorReport>> {\n return this.execute();\n }\n}\n","import { z } from \"zod\";\n\nexport const DoctorInputSchema = z.object({}).strict();\n\nexport type DoctorStatus = \"ok\" | \"warning\" | \"error\";\n\nexport const DoctorReportSchema = z.object({\n status: z.enum([\"ok\", \"warning\", \"error\"]),\n version: z.string().min(1),\n node: z.object({\n version: z.string().min(1),\n }),\n system: z.object({\n platform: z.string().min(1),\n cwd: z.string().min(1),\n }),\n terminal: z.object({\n stdinIsTTY: z.boolean(),\n stdoutIsTTY: z.boolean(),\n }),\n runtime: z.object({\n globalState: z.object({\n path: z.string().min(1),\n exists: z.boolean(),\n }),\n projectState: z.object({\n path: z.string().min(1),\n exists: z.boolean(),\n }),\n }),\n models: z\n .object({\n directory: z.string().min(1),\n installed: z.number().int().nonnegative(),\n ids: z.array(z.string().min(1)),\n })\n .optional(),\n});\n\nexport type DoctorStatePath = {\n path: string;\n exists: boolean;\n};\n\nexport type DoctorReport = {\n status: DoctorStatus;\n version: string;\n node: {\n version: string;\n };\n system: {\n platform: string;\n cwd: string;\n };\n terminal: {\n stdinIsTTY: boolean;\n stdoutIsTTY: boolean;\n };\n runtime: {\n globalState: DoctorStatePath;\n projectState: DoctorStatePath;\n };\n models?: {\n directory: string;\n installed: number;\n ids: string[];\n };\n};\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { DoctorReport, DoctorStatePath } from \"./doctor.entities\";\n\ntype FormatDoctorTextOptions = {\n color?: boolean;\n translator?: Translator;\n};\n\nconst colors = {\n dim: \"#9D98B8\",\n error: \"#E87A8E\",\n indigo: \"#8B7AE6\",\n ok: \"#5FD0C8\",\n text: \"#E8E6F2\",\n};\nconst defaultTranslator = new I18nCatalog().translator(\"en-US\");\n\nfunction colorize(value: string, hex: string, enabled: boolean): string {\n if (!enabled) {\n return value;\n }\n\n const [red, green, blue] = [hex.slice(1, 3), hex.slice(3, 5), hex.slice(5, 7)].map((part) =>\n Number.parseInt(part, 16),\n );\n\n return `\\u001b[38;2;${red};${green};${blue}m${value}\\u001b[0m`;\n}\n\nfunction stateStatus(state: DoctorStatePath): string {\n return state.exists ? \"found\" : \"missing\";\n}\n\nfunction statusColor(status: string): string {\n if (status === \"ok\" || status === \"found\") {\n return colors.ok;\n }\n\n if (status === \"missing\") {\n return colors.dim;\n }\n\n return colors.error;\n}\n\nfunction pill(label: string, enabled: boolean): string {\n const value = `[${label}]`;\n return colorize(value, statusColor(label), enabled);\n}\n\nfunction statusText(status: string, label: string, enabled: boolean): string {\n return colorize(label, statusColor(status), enabled);\n}\n\nfunction section(title: string, rows: Array<[string, string]>, enabled: boolean): string[] {\n return [\n colorize(` ${title}`, colors.indigo, enabled),\n ...rows.map(([label, value]) => ` ${label.padEnd(7)} ${value}`),\n ];\n}\n\nexport function formatDoctorText(\n report: DoctorReport,\n options: FormatDoctorTextOptions = {},\n): string {\n const color = options.color === true;\n const translator = options.translator ?? defaultTranslator;\n const t = (key: string, values?: Record<string, string>) => translator.t(key, values);\n const globalStatus = stateStatus(report.runtime.globalState);\n const projectStatus = stateStatus(report.runtime.projectState);\n const globalStatusLabel = t(`doctor.status.${globalStatus}`);\n const projectStatusLabel = t(`doctor.status.${projectStatus}`);\n\n return [\n `${colorize(t(\"doctor.title\"), colors.text, color)} ${colorize(t(\"doctor.subtitle\"), colors.dim, color)}`,\n colorize(t(\"doctor.command\"), colors.indigo, color),\n \"\",\n `${pill(report.status, color)} ${t(\"doctor.health\")}`,\n ...section(\n t(\"doctor.section.runtime\"),\n [\n [t(\"doctor.field.version\"), report.version],\n [t(\"doctor.field.node\"), report.node.version],\n ],\n color,\n ),\n ...section(\n t(\"doctor.section.environment\"),\n [\n [t(\"doctor.field.platform\"), report.system.platform],\n [t(\"doctor.field.cwd\"), report.system.cwd],\n [\n t(\"doctor.field.tty\"),\n `stdin=${String(report.terminal.stdinIsTTY)} stdout=${String(report.terminal.stdoutIsTTY)}`,\n ],\n ],\n color,\n ),\n ...section(\n t(\"doctor.section.state\"),\n [\n [\n t(\"doctor.field.global\"),\n `${statusText(globalStatus, globalStatusLabel, color).padEnd(8)} ${report.runtime.globalState.path}`,\n ],\n [\n t(\"doctor.field.project\"),\n `${statusText(projectStatus, projectStatusLabel, color).padEnd(8)} ${report.runtime.projectState.path}`,\n ],\n ],\n color,\n ),\n \"\",\n t(\"doctor.line.version\", { version: report.version }),\n t(\"doctor.line.globalState\", {\n path: report.runtime.globalState.path,\n status: globalStatusLabel,\n }),\n t(\"doctor.line.projectState\", {\n path: report.runtime.projectState.path,\n status: projectStatusLabel,\n }),\n ...(report.models === undefined\n ? []\n : [t(\"doctor.line.models\", { count: String(report.models.installed) })]),\n ].join(\"\\n\");\n}\n","import { z } from \"zod\";\n\nexport const InitServiceOptionsSchema = z\n .object({\n dryRun: z.boolean(),\n projectRoot: z.string().min(1),\n })\n .strict();\n\nexport type ProjectInitStatus = \"already-initialized\" | \"initialized\" | \"planned\";\n\nexport type ProjectInitFile = {\n content: unknown;\n path: string;\n};\n\nexport type ProjectInitResult = {\n status: ProjectInitStatus;\n version: string;\n project: {\n root: string;\n };\n planned: string[];\n created: string[];\n skipped: string[];\n};\n\nexport const ProjectInitResultSchema = z.object({\n status: z.enum([\"already-initialized\", \"initialized\", \"planned\"]),\n version: z.string().min(1),\n project: z.object({\n root: z.string().min(1),\n }),\n planned: z.array(z.string()),\n created: z.array(z.string()),\n skipped: z.array(z.string()),\n});\n\nexport type InitServiceOptions = z.infer<typeof InitServiceOptionsSchema>;\n","import {\n BaseCapabilityService,\n type CapabilityExecution,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type InitServiceOptions,\n InitServiceOptionsSchema,\n type ProjectInitFile,\n type ProjectInitResult,\n ProjectInitResultSchema,\n} from \"./init.entities\";\nimport type { InitRepositoryPort } from \"./init.repository\";\n\ntype InitServiceDependencies = {\n appVersion: string;\n repository: InitRepositoryPort;\n};\n\nconst projectFiles = [\".agent-devkit/config.json\", \".agent-devkit/agent-devkit.lock\"];\n\nexport const initCapabilityConfig = defineCapabilityConfig({\n id: \"project.init\",\n moduleId: \"project\",\n name: \"Init\",\n description: \"Initialize Agent DevKit project-local state files.\",\n kind: \"deterministic\",\n risk: \"writes-project-state\",\n} as const);\n\nexport class InitService\n extends BaseCapabilityService<typeof initCapabilityConfig, InitServiceDependencies>\n implements CapabilityExecution<InitServiceOptions, ProjectInitResult>\n{\n readonly inputSchema = InitServiceOptionsSchema;\n readonly outputSchema = ProjectInitResultSchema;\n readonly #appVersion: string;\n readonly #repository: InitRepositoryPort;\n\n constructor(dependencies: InitServiceDependencies) {\n super(initCapabilityConfig, dependencies);\n this.#appVersion = dependencies.appVersion;\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: InitServiceOptions,\n ): Promise<Result<AgentDevKitErrorCode, ProjectInitResult>> {\n if (options.dryRun) {\n return Result.ok({\n status: \"planned\",\n version: this.#appVersion,\n project: {\n root: options.projectRoot,\n },\n planned: projectFiles,\n created: [],\n skipped: [],\n });\n }\n\n const skipped = await this.#repository.existingFiles(options.projectRoot, projectFiles);\n\n if (skipped.isErr()) {\n return Result.fail(skipped.unwrapError());\n }\n\n const skippedFiles = skipped.unwrap();\n const filesToCreate = this.#files().filter((file) => !skippedFiles.includes(file.path));\n\n if (filesToCreate.length > 0) {\n const write = await this.#repository.writeFiles(options.projectRoot, filesToCreate);\n\n if (write.isErr()) {\n return Result.fail(write.unwrapError());\n }\n }\n\n return Result.ok({\n status: filesToCreate.length > 0 ? \"initialized\" : \"already-initialized\",\n version: this.#appVersion,\n project: {\n root: options.projectRoot,\n },\n planned: projectFiles,\n created: filesToCreate.map((file) => file.path),\n skipped: skippedFiles,\n });\n }\n\n #files(): ProjectInitFile[] {\n return [\n {\n path: \".agent-devkit/config.json\",\n content: {\n schema: \"agent-devkit.project-config/v1\",\n version: this.#appVersion,\n },\n },\n {\n path: \".agent-devkit/agent-devkit.lock\",\n content: {\n schema: \"agent-devkit.project-lock/v1\",\n version: this.#appVersion,\n },\n },\n ];\n }\n\n invoke(options: InitServiceOptions): Promise<Result<AgentDevKitErrorCode, ProjectInitResult>> {\n return this.execute(options);\n }\n}\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { ProjectInitResult } from \"./init.entities\";\n\nconst defaultTranslator = new I18nCatalog().translator(\"en-US\");\n\nexport function formatInitText(result: ProjectInitResult, translator?: Translator): string {\n const activeTranslator = translator ?? defaultTranslator;\n const t = (key: string) => activeTranslator.t(key);\n const rows = [\n t(\"init.title\"),\n t(\"init.command\"),\n \"\",\n `[${result.status}] ${t(\"init.projectState\")}`,\n ` ${t(\"init.field.root\").padEnd(7)} ${result.project.root}`,\n ];\n\n if (result.planned.length > 0) {\n rows.push(` ${t(\"init.section.planned\")}`);\n rows.push(...result.planned.map((file) => ` ${file}`));\n }\n\n if (result.created.length > 0) {\n rows.push(` ${t(\"init.section.created\")}`);\n rows.push(...result.created.map((file) => ` ${file}`));\n }\n\n if (result.skipped.length > 0) {\n rows.push(` ${t(\"init.section.skipped\")}`);\n rows.push(...result.skipped.map((file) => ` ${file}`));\n }\n\n return rows.join(\"\\n\");\n}\n","import { join } from \"node:path\";\nimport {\n BaseCapabilityService,\n type CapabilityExecution,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type ResetResult,\n ResetResultSchema,\n type ResetServiceOptions,\n ResetServiceOptionsSchema,\n} from \"./reset.entities\";\nimport type { ResetRepositoryPort } from \"./reset.repository\";\n\ntype ResetServiceDependencies = {\n repository: ResetRepositoryPort;\n};\n\nexport const resetCapabilityConfig = defineCapabilityConfig({\n id: \"project.reset\",\n moduleId: \"project\",\n name: \"Reset\",\n description: \"Remove Agent DevKit state from project or global scope after confirmation.\",\n kind: \"deterministic\",\n risk: \"destructive\",\n} as const);\n\nexport class ResetService\n extends BaseCapabilityService<typeof resetCapabilityConfig, ResetServiceDependencies>\n implements CapabilityExecution<ResetServiceOptions, ResetResult>\n{\n readonly inputSchema = ResetServiceOptionsSchema;\n readonly outputSchema = ResetResultSchema;\n readonly #repository: ResetRepositoryPort;\n\n constructor(dependencies: ResetServiceDependencies) {\n super(resetCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(options: ResetServiceOptions): Promise<Result<AgentDevKitErrorCode, ResetResult>> {\n const shouldPlan = options.dryRun || options.confirmed !== true;\n const path =\n options.scope === \"global\"\n ? join(options.homeDirectory, \".agent-devkit\")\n : join(options.projectRoot, \".agent-devkit\");\n\n const exists = await this.#repository.exists(path);\n\n if (exists.isErr()) {\n return Result.fail(exists.unwrapError());\n }\n\n if (!exists.unwrap()) {\n return Result.ok({\n scope: options.scope,\n status: \"missing\",\n path,\n removed: false,\n });\n }\n\n if (shouldPlan) {\n return Result.ok({\n scope: options.scope,\n status: \"planned\",\n path,\n removed: false,\n });\n }\n\n const remove = await this.#repository.remove(path);\n\n if (remove.isErr()) {\n return Result.fail(remove.unwrapError());\n }\n\n return Result.ok({\n scope: options.scope,\n status: \"reset\",\n path,\n removed: true,\n });\n }\n\n invoke(options: ResetServiceOptions): Promise<Result<AgentDevKitErrorCode, ResetResult>> {\n return this.execute(options);\n }\n}\n","import { z } from \"zod\";\n\nexport type ResetScope = \"global\" | \"project\";\nexport type ResetStatus = \"missing\" | \"planned\" | \"reset\";\n\nexport const ResetServiceOptionsSchema = z\n .object({\n confirmed: z.boolean().optional(),\n dryRun: z.boolean(),\n homeDirectory: z.string().min(1),\n projectRoot: z.string().min(1),\n scope: z.enum([\"global\", \"project\"]),\n })\n .strict();\n\nexport type ResetResult = {\n scope: ResetScope;\n status: ResetStatus;\n path: string;\n removed: boolean;\n};\n\nexport const ResetResultSchema = z.object({\n scope: z.enum([\"global\", \"project\"]),\n status: z.enum([\"missing\", \"planned\", \"reset\"]),\n path: z.string().min(1),\n removed: z.boolean(),\n});\n\nexport type ResetServiceOptions = z.infer<typeof ResetServiceOptionsSchema>;\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { ResetResult } from \"./reset.entities\";\n\nconst defaultTranslator = new I18nCatalog().translator(\"en-US\");\n\nexport function formatResetText(result: ResetResult, translator?: Translator): string {\n const activeTranslator = translator ?? defaultTranslator;\n const t = (key: string, values?: Record<string, string>) => activeTranslator.t(key, values);\n const scope = t(`reset.scope.${result.scope}`);\n\n return [\n t(\"reset.title\"),\n t(\"reset.command\"),\n \"\",\n `[${result.status}] ${t(\"reset.state\", { scope })}`,\n ` ${t(\"reset.field.path\").padEnd(7)} ${result.path}`,\n ` ${t(\"reset.field.removed\").padEnd(7)} ${String(result.removed)}`,\n ].join(\"\\n\");\n}\n","import { access, readdir } from \"node:fs/promises\";\nimport { homedir, platform } from \"node:os\";\nimport { basename, join } from \"node:path\";\nimport type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\n\nexport type DoctorInstalledModels = {\n directory: string;\n ids: string[];\n};\n\nexport interface DoctorRepositoryPort extends CapabilityRepositoryPort {\n cwd(): Result<AgentDevKitErrorCode, string>;\n exists(path: string): Promise<Result<AgentDevKitErrorCode, boolean>>;\n homeDirectory(): Result<AgentDevKitErrorCode, string>;\n installedModels?(\n homeDirectory: string,\n ): Promise<Result<AgentDevKitErrorCode, DoctorInstalledModels>>;\n nodeVersion(): Result<AgentDevKitErrorCode, string>;\n platform(): Result<AgentDevKitErrorCode, string>;\n stdinIsTTY(): Result<AgentDevKitErrorCode, boolean>;\n stdoutIsTTY(): Result<AgentDevKitErrorCode, boolean>;\n}\n\nexport class DoctorRepository implements DoctorRepositoryPort {\n readonly repositoryId = \"project.doctor.repository\";\n\n cwd(): Result<AgentDevKitErrorCode, string> {\n return Result.ok(process.cwd());\n }\n\n async exists(path: string): Promise<Result<AgentDevKitErrorCode, boolean>> {\n try {\n await access(path);\n return Result.ok(true);\n } catch {\n return Result.ok(false);\n }\n }\n\n homeDirectory(): Result<AgentDevKitErrorCode, string> {\n return Result.ok(homedir());\n }\n\n async installedModels(\n homeDirectory: string,\n ): Promise<Result<AgentDevKitErrorCode, DoctorInstalledModels>> {\n const directory = join(homeDirectory, \".agent-devkit\", \"models\");\n\n try {\n const files = await readdir(directory);\n return Result.ok({\n directory,\n ids: files\n .filter((file) => file.endsWith(\".gguf\"))\n .map((file) => basename(file, \".gguf\"))\n .sort(),\n });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === \"ENOENT\") {\n return Result.ok({ directory, ids: [] });\n }\n\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n nodeVersion(): Result<AgentDevKitErrorCode, string> {\n return Result.ok(process.version);\n }\n\n platform(): Result<AgentDevKitErrorCode, string> {\n return Result.ok(platform());\n }\n\n stdinIsTTY(): Result<AgentDevKitErrorCode, boolean> {\n return Result.ok(process.stdin.isTTY === true);\n }\n\n stdoutIsTTY(): Result<AgentDevKitErrorCode, boolean> {\n return Result.ok(process.stdout.isTTY === true);\n }\n}\n","import { access, mkdir, writeFile } from \"node:fs/promises\";\nimport { dirname, join } from \"node:path\";\nimport type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../../../../infra/bases/errors\";\nimport { ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport type { ProjectInitFile } from \"./init.entities\";\n\nexport interface InitRepositoryPort extends CapabilityRepositoryPort {\n existingFiles(\n projectRoot: string,\n files: string[],\n ): Promise<Result<AgentDevKitErrorCode, string[]>>;\n writeFiles(\n projectRoot: string,\n files: ProjectInitFile[],\n ): Promise<Result<AgentDevKitErrorCode, void>>;\n}\n\nexport class InitRepository implements InitRepositoryPort {\n readonly repositoryId = \"project.init.repository\";\n\n async existingFiles(\n projectRoot: string,\n files: string[],\n ): Promise<Result<AgentDevKitErrorCode, string[]>> {\n try {\n const checks = await Promise.all(\n files.map(async (file) => {\n try {\n await access(join(projectRoot, file));\n return file;\n } catch {\n return undefined;\n }\n }),\n );\n\n return Result.ok(checks.filter((file): file is string => file !== undefined));\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n async writeFiles(\n projectRoot: string,\n files: ProjectInitFile[],\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n try {\n for (const file of files) {\n const target = join(projectRoot, file.path);\n await mkdir(dirname(target), { recursive: true });\n await writeFile(target, `${JSON.stringify(file.content, null, 2)}\\n`, { flag: \"wx\" });\n }\n\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n}\n","import { access, rm } from \"node:fs/promises\";\nimport type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../../../../infra/bases/errors\";\nimport { ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\n\nexport interface ResetRepositoryPort extends CapabilityRepositoryPort {\n exists(path: string): Promise<Result<AgentDevKitErrorCode, boolean>>;\n remove(path: string): Promise<Result<AgentDevKitErrorCode, void>>;\n}\n\nexport class ResetRepository implements ResetRepositoryPort {\n readonly repositoryId = \"project.reset.repository\";\n\n async exists(path: string): Promise<Result<AgentDevKitErrorCode, boolean>> {\n try {\n await access(path);\n return Result.ok(true);\n } catch {\n return Result.ok(false);\n }\n }\n\n async remove(path: string): Promise<Result<AgentDevKitErrorCode, void>> {\n try {\n await rm(path, { force: true, recursive: true });\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.StateResetFailed);\n }\n }\n}\n","import { defineModuleConfig } from \"../../infra/bases/module\";\nimport { doctorCapabilityConfig } from \"./capabilities/doctor/doctor.service\";\nimport { initCapabilityConfig } from \"./capabilities/init/init.service\";\nimport { resetCapabilityConfig } from \"./capabilities/reset/reset.service\";\n\nexport const projectModuleConfig = defineModuleConfig({\n id: \"project\",\n name: \"Project\",\n description: \"Project-local Agent DevKit state, diagnostics and maintenance.\",\n capabilities: [doctorCapabilityConfig.id, initCapabilityConfig.id, resetCapabilityConfig.id],\n tests: {\n include: [\n \"src/modules/project/project.surface.test.ts\",\n \"src/modules/project/capabilities/**/*.test.ts\",\n ],\n },\n} as const);\n","import { defineModuleBinding, ModuleBinder, type ModuleBinding } from \"../../infra/bases/bind\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport {\n DoctorRepository,\n type DoctorRepositoryPort,\n} from \"./capabilities/doctor/doctor.repository\";\nimport { DoctorService } from \"./capabilities/doctor/doctor.service\";\nimport { InitRepository, type InitRepositoryPort } from \"./capabilities/init/init.repository\";\nimport { InitService } from \"./capabilities/init/init.service\";\nimport { ResetRepository, type ResetRepositoryPort } from \"./capabilities/reset/reset.repository\";\nimport { ResetService } from \"./capabilities/reset/reset.service\";\nimport { projectModuleConfig } from \"./project.config\";\n\nexport type ProjectModuleBindOptions = {\n appVersion: string;\n};\n\nexport type ProjectModuleCapabilities = {\n doctor: DoctorService;\n init: InitService;\n reset: ResetService;\n};\n\nexport type ProjectModuleBinding = ModuleBinding<\n typeof projectModuleConfig,\n ProjectModuleCapabilities\n>;\n\ntype ProjectModuleBinderDependencies = {\n doctorRepository: () => DoctorRepositoryPort;\n initRepository: () => InitRepositoryPort;\n resetRepository: () => ResetRepositoryPort;\n};\n\nconst defaultDependencies: ProjectModuleBinderDependencies = {\n doctorRepository: () => new DoctorRepository(),\n initRepository: () => new InitRepository(),\n resetRepository: () => new ResetRepository(),\n};\n\nexport class ProjectModuleBinder extends ModuleBinder<\n ProjectModuleBindOptions,\n typeof projectModuleConfig,\n ProjectModuleCapabilities\n> {\n readonly #dependencies: ProjectModuleBinderDependencies;\n\n constructor(dependencies: ProjectModuleBinderDependencies = defaultDependencies) {\n super();\n this.#dependencies = dependencies;\n }\n\n override bind(\n options: ProjectModuleBindOptions,\n ): Result<AgentDevKitErrorCode, ProjectModuleBinding> {\n return defineModuleBinding({\n config: projectModuleConfig,\n capabilities: {\n doctor: new DoctorService({\n appVersion: options.appVersion,\n repository: this.#dependencies.doctorRepository(),\n }),\n init: new InitService({\n appVersion: options.appVersion,\n repository: this.#dependencies.initRepository(),\n }),\n reset: new ResetService({\n repository: this.#dependencies.resetRepository(),\n }),\n },\n });\n }\n}\n\nexport function createProjectModuleBindings(\n options: ProjectModuleBindOptions,\n): Result<AgentDevKitErrorCode, ProjectModuleBinding> {\n return new ProjectModuleBinder().bind(options);\n}\n","import { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport { Result as ResultValue } from \"../../infra/bases/result\";\nimport type { IModuleSurface, SurfacePromptInput } from \"../../infra/bases/surface\";\nimport { surfaceCapabilitiesFromConfigs } from \"../../infra/helpers/surface_capabilities\";\nimport { resolveModuleSurfaceDirectory, SurfaceLoader } from \"../../infra/helpers/surface_loader\";\nimport { doctorCapabilityConfig } from \"./capabilities/doctor/doctor.service\";\nimport { initCapabilityConfig } from \"./capabilities/init/init.service\";\nimport { resetCapabilityConfig } from \"./capabilities/reset/reset.service\";\n\nconst moduleDirectory = dirname(fileURLToPath(import.meta.url));\n\nexport function createProjectSurface(): IModuleSurface {\n const loader = new SurfaceLoader(resolveModuleSurfaceDirectory(\"project\", moduleDirectory));\n\n return {\n moduleId: \"project\",\n capabilities: async () =>\n ResultValue.ok(\n surfaceCapabilitiesFromConfigs([\n doctorCapabilityConfig,\n initCapabilityConfig,\n resetCapabilityConfig,\n ]),\n ),\n knowledge: () => loader.knowledge(),\n loop: () => loader.loop(),\n prompt: (input?: SurfacePromptInput) => loader.prompt(input),\n skill: () => loader.skill(),\n };\n}\n\nexport type ProjectSurfaceResult<T> = Result<AgentDevKitErrorCode, T>;\n","import type { CapabilityConfig } from \"../bases/capability\";\nimport type { SurfaceCapability } from \"../bases/surface\";\n\nexport function surfaceCapabilitiesFromConfigs(\n configs: readonly CapabilityConfig[],\n): SurfaceCapability[] {\n return configs.map((config) => ({\n id: config.id,\n kind: config.kind,\n risk: config.risk,\n summary: config.description,\n title: config.name,\n }));\n}\n","import { existsSync } from \"node:fs\";\nimport { readFile } from \"node:fs/promises\";\nimport { join, resolve } from \"node:path\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport { Result } from \"../bases/result\";\nimport {\n type SurfaceKnowledge,\n SurfaceKnowledgeSchema,\n type SurfaceLoop,\n SurfaceLoopSchema,\n type SurfacePrompt,\n type SurfacePromptInput,\n SurfacePromptSchema,\n type SurfaceSkill,\n SurfaceSkillSchema,\n} from \"../bases/surface\";\n\nexport class SurfaceLoader {\n readonly #surfaceDirectory: string;\n\n constructor(surfaceDirectory: string) {\n this.#surfaceDirectory = surfaceDirectory;\n }\n\n async knowledge(): Promise<Result<AgentDevKitErrorCode, SurfaceKnowledge>> {\n const payload = await this.#readJson(\"knowledge.json\");\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n const parsed = SurfaceKnowledgeSchema.safeParse(payload.unwrap());\n return parsed.success ? Result.ok(parsed.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n\n async loop(): Promise<Result<AgentDevKitErrorCode, SurfaceLoop>> {\n const payload = await this.#readJson(\"loop.json\");\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n const parsed = SurfaceLoopSchema.safeParse(payload.unwrap());\n return parsed.success ? Result.ok(parsed.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n\n async prompt(\n input: SurfacePromptInput = {},\n ): Promise<Result<AgentDevKitErrorCode, SurfacePrompt>> {\n const payload = await this.#readJson(\"prompt.json\");\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n const parsed = SurfacePromptSchema.safeParse(payload.unwrap());\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok({\n ...parsed.data,\n templates: parsed.data.templates\n .filter(\n (template) => input.capabilityId === undefined || template.id === input.capabilityId,\n )\n .map((template) => ({\n ...template,\n template: this.#renderTemplate(template.template, input.variables ?? {}),\n })),\n });\n }\n\n async skill(): Promise<Result<AgentDevKitErrorCode, SurfaceSkill>> {\n const payload = await this.#readJson(\"skill.json\");\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n const parsed = SurfaceSkillSchema.safeParse(payload.unwrap());\n return parsed.success ? Result.ok(parsed.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n\n async #readJson(fileName: string): Promise<Result<AgentDevKitErrorCode, unknown>> {\n try {\n return Result.ok(JSON.parse(await readFile(join(this.#surfaceDirectory, fileName), \"utf8\")));\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n #renderTemplate(template: string, variables: Record<string, string>): string {\n return Object.entries(variables).reduce(\n (current, [key, value]) => current.replaceAll(`{{${key}}}`, value),\n template,\n );\n }\n}\n\nexport function resolveModuleSurfaceDirectory(moduleId: string, moduleDirectory: string): string {\n const localSurfaceDirectory = join(moduleDirectory, \"surface\");\n const candidates = [\n localSurfaceDirectory,\n resolve(moduleDirectory, \"../src/modules\", moduleId, \"surface\"),\n resolve(process.cwd(), \"src/modules\", moduleId, \"surface\"),\n ];\n\n return candidates.find((candidate) => existsSync(candidate)) ?? localSurfaceDirectory;\n}\n","import { z } from \"zod\";\nimport type { AgentDevKitErrorCode } from \"./errors\";\nimport type { Result } from \"./result\";\n\nexport const SurfaceCapabilitySchema = z.object({\n id: z.string().min(1),\n kind: z.enum([\"brain-assisted\", \"composite\", \"deterministic\", \"external\"]),\n risk: z.enum([\n \"destructive\",\n \"external-write\",\n \"read-only\",\n \"writes-global-state\",\n \"writes-project-state\",\n ]),\n summary: z.string().min(1),\n title: z.string().min(1),\n});\n\nexport const SurfaceSkillSchema = z.object({\n moduleId: z.string().min(1),\n purpose: z.string().min(1),\n whenNotToUse: z.array(z.string().min(1)).default([]),\n whenToUse: z.array(z.string().min(1)).min(1),\n});\n\nexport const SurfaceKnowledgeSchema = z.object({\n facts: z.array(z.string().min(1)).default([]),\n moduleId: z.string().min(1),\n summary: z.string().min(1),\n});\n\nexport const SurfacePromptSchema = z.object({\n moduleId: z.string().min(1),\n templates: z\n .array(\n z.object({\n id: z.string().min(1),\n template: z.string().min(1),\n variables: z.array(z.string().min(1)).default([]),\n }),\n )\n .min(1),\n});\n\nexport const SurfaceLoopSchema = z.object({\n allowedActions: z.array(z.string().min(1)).default([]),\n approvalRequired: z.boolean(),\n forbiddenActions: z.array(z.string().min(1)).default([]),\n mode: z.string().min(1),\n moduleId: z.string().min(1),\n});\n\nexport const SurfaceCapabilitiesSchema = z.object({\n capabilities: z.array(SurfaceCapabilitySchema).min(1),\n moduleId: z.string().min(1),\n});\n\nexport type SurfaceCapability = z.infer<typeof SurfaceCapabilitySchema>;\nexport type SurfaceSkill = z.infer<typeof SurfaceSkillSchema>;\nexport type SurfaceKnowledge = z.infer<typeof SurfaceKnowledgeSchema>;\nexport type SurfacePrompt = z.infer<typeof SurfacePromptSchema>;\nexport type SurfaceLoop = z.infer<typeof SurfaceLoopSchema>;\n\nexport type SurfacePromptInput = {\n capabilityId?: string;\n variables?: Record<string, string>;\n};\n\nexport interface IModuleSurface {\n moduleId: string;\n capabilities(): Promise<Result<AgentDevKitErrorCode, SurfaceCapability[]>>;\n knowledge(): Promise<Result<AgentDevKitErrorCode, SurfaceKnowledge>>;\n loop(): Promise<Result<AgentDevKitErrorCode, SurfaceLoop>>;\n prompt(input?: SurfacePromptInput): Promise<Result<AgentDevKitErrorCode, SurfacePrompt>>;\n skill(): Promise<Result<AgentDevKitErrorCode, SurfaceSkill>>;\n}\n","import type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport {\n createProjectModuleBindings,\n formatDoctorText,\n} from \"../../../modules/project/project.index\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterDoctorCommandOptions = {\n appVersion: string;\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nexport function registerDoctorCommand(\n program: Command,\n options: RegisterDoctorCommandOptions,\n): void {\n const doctorCommand = program\n .command(\"doctor\")\n .description(options.translator.t(\"cli.doctor.description\"))\n .option(\"--json\", options.translator.t(\"cli.doctor.option.json\"));\n\n doctorCommand.action(\n options.usageLogging.track(\n {\n area: \"project\",\n command: \"doctor\",\n createStateIfMissing: false,\n options: () => doctorCommand.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n const bindings = createProjectModuleBindings({\n appVersion: options.appVersion,\n });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n const result = await bindings.unwrap().capabilities.doctor.execute();\n\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const report = result.unwrap();\n\n if (commandOptions.json === true) {\n console.log(JSON.stringify(report, null, 2));\n return;\n }\n\n console.log(\n formatDoctorText(report, {\n color: report.terminal.stdoutIsTTY && !process.env.NO_COLOR,\n translator: options.translator,\n }),\n );\n },\n ),\n );\n}\n","import type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport {\n createProjectModuleBindings,\n formatInitText,\n} from \"../../../modules/project/project.index\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterInitCommandOptions = {\n appVersion: string;\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nexport function registerInitCommand(program: Command, options: RegisterInitCommandOptions): void {\n const initCommand = program\n .command(\"init\")\n .description(options.translator.t(\"cli.init.description\"))\n .option(\"--dry-run\", options.translator.t(\"cli.init.option.dryRun\"))\n .option(\"--json\", options.translator.t(\"cli.init.option.json\"));\n\n initCommand.action(\n options.usageLogging.track(\n {\n area: \"project\",\n command: \"init\",\n options: () => initCommand.opts(),\n },\n async (commandOptions: { dryRun?: boolean; json?: boolean }) => {\n const bindings = createProjectModuleBindings({\n appVersion: options.appVersion,\n });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n const result = await bindings.unwrap().capabilities.init.execute({\n dryRun: commandOptions.dryRun === true,\n projectRoot: process.cwd(),\n });\n\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const initResult = result.unwrap();\n\n if (commandOptions.json === true) {\n console.log(JSON.stringify(initResult, null, 2));\n return;\n }\n\n console.log(formatInitText(initResult, options.translator));\n },\n ),\n );\n}\n","import type {\n DependencyCheck,\n DependencyMetadata,\n DependencyOperationResult,\n DependencyPlan,\n DependencyProvider,\n} from \"../../../../../infra/bases/dependency\";\nimport type { AgentDevKitErrorCode } from \"../../../../../infra/bases/errors\";\nimport { Result } from \"../../../../../infra/bases/result\";\n\nconst minimumMajorVersion = 20;\n\nfunction nodeMajorVersion(): number {\n return Number.parseInt(process.versions.node.split(\".\")[0] ?? \"0\", 10);\n}\n\nfunction unsupportedPlan(id: string, action: string): DependencyPlan {\n return {\n commands: [],\n id,\n message: `${action} is not supported for Node.js by Agent DevKit yet.`,\n requiresApproval: false,\n status: \"unsupported\",\n };\n}\n\nfunction unsupportedResult(id: string, action: string): DependencyOperationResult {\n return {\n id,\n message: `${action} is not supported for Node.js by Agent DevKit yet.`,\n status: \"unsupported\",\n };\n}\n\nexport class NodeDependencyProvider implements DependencyProvider {\n readonly #id = \"node\";\n\n metadata(): DependencyMetadata {\n return {\n category: \"runtime\",\n description: \"Node.js runtime used by Agent DevKit.\",\n id: this.#id,\n name: \"Node.js\",\n risk: \"read-only\",\n };\n }\n\n async checkEnvironment(): Promise<Result<AgentDevKitErrorCode, DependencyCheck>> {\n return Result.ok({\n details: {\n arch: process.arch,\n platform: process.platform,\n },\n id: this.#id,\n message: `Running on ${process.platform}/${process.arch}.`,\n status: \"ok\",\n });\n }\n\n async checkInstalled(): Promise<Result<AgentDevKitErrorCode, DependencyCheck>> {\n return Result.ok({\n details: {\n execPath: process.execPath,\n version: process.version,\n },\n id: this.#id,\n message: `Node.js ${process.version} is available.`,\n status: \"installed\",\n });\n }\n\n async checkCompatibility(): Promise<Result<AgentDevKitErrorCode, DependencyCheck>> {\n const compatible = nodeMajorVersion() >= minimumMajorVersion;\n\n return Result.ok({\n details: {\n current: process.version,\n required: `>=${minimumMajorVersion}`,\n },\n id: this.#id,\n message: compatible\n ? `Node.js ${process.version} is compatible.`\n : `Node.js ${process.version} is below the required major version ${minimumMajorVersion}.`,\n status: compatible ? \"compatible\" : \"incompatible\",\n });\n }\n\n async verify(): Promise<Result<AgentDevKitErrorCode, DependencyCheck>> {\n const compatibility = await this.checkCompatibility();\n\n if (compatibility.isErr()) {\n return compatibility;\n }\n\n const compatible = compatibility.unwrap();\n\n return Result.ok({\n details: {\n execPath: process.execPath,\n platform: process.platform,\n required: `>=${minimumMajorVersion}`,\n version: process.version,\n },\n id: this.#id,\n message:\n compatible.status === \"compatible\" ? \"Node.js runtime is ready.\" : compatible.message,\n status: compatible.status === \"compatible\" ? \"ok\" : \"incompatible\",\n });\n }\n\n async planInstall(): Promise<Result<AgentDevKitErrorCode, DependencyPlan>> {\n return Result.ok(unsupportedPlan(this.#id, \"Install\"));\n }\n\n async install(): Promise<Result<AgentDevKitErrorCode, DependencyOperationResult>> {\n return Result.ok(unsupportedResult(this.#id, \"Install\"));\n }\n\n async planConfigure(): Promise<Result<AgentDevKitErrorCode, DependencyPlan>> {\n return Result.ok({\n commands: [],\n id: this.#id,\n message: \"Node.js does not require Agent DevKit credential configuration.\",\n requiresApproval: false,\n status: \"planned\",\n });\n }\n\n async configure(): Promise<Result<AgentDevKitErrorCode, DependencyOperationResult>> {\n return Result.ok({\n id: this.#id,\n message: \"Node.js does not require Agent DevKit credential configuration.\",\n status: \"configured\",\n });\n }\n\n async planUpgrade(): Promise<Result<AgentDevKitErrorCode, DependencyPlan>> {\n return Result.ok(unsupportedPlan(this.#id, \"Upgrade\"));\n }\n\n async upgrade(): Promise<Result<AgentDevKitErrorCode, DependencyOperationResult>> {\n return Result.ok(unsupportedResult(this.#id, \"Upgrade\"));\n }\n\n async planDowngrade(): Promise<Result<AgentDevKitErrorCode, DependencyPlan>> {\n return Result.ok(unsupportedPlan(this.#id, \"Downgrade\"));\n }\n\n async downgrade(): Promise<Result<AgentDevKitErrorCode, DependencyOperationResult>> {\n return Result.ok(unsupportedResult(this.#id, \"Downgrade\"));\n }\n\n async planUninstall(): Promise<Result<AgentDevKitErrorCode, DependencyPlan>> {\n return Result.ok(unsupportedPlan(this.#id, \"Uninstall\"));\n }\n\n async uninstall(): Promise<Result<AgentDevKitErrorCode, DependencyOperationResult>> {\n return Result.ok(unsupportedResult(this.#id, \"Uninstall\"));\n }\n}\n","import type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport type {\n DependencyCheck,\n DependencyMetadata,\n DependencyOperationResult,\n DependencyPlan,\n DependencyProvider,\n DependencyProviderOptions,\n} from \"../../../../infra/bases/dependency\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport { NodeDependencyProvider } from \"./providers/node.provider\";\n\nexport interface DependenciesRepositoryPort extends CapabilityRepositoryPort {\n check(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>>;\n checkCompatibility(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>>;\n checkEnvironment(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>>;\n checkInstalled(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>>;\n listProviders(): DependencyMetadata[];\n operation(\n dependency: string,\n action: \"configure\" | \"downgrade\" | \"install\" | \"uninstall\" | \"upgrade\",\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyOperationResult>>;\n plan(\n dependency: string,\n action:\n | \"plan-configure\"\n | \"plan-downgrade\"\n | \"plan-install\"\n | \"plan-uninstall\"\n | \"plan-upgrade\",\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyPlan>>;\n verify(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>>;\n}\n\nexport type DependenciesRepositoryOptions = {\n providers?: DependencyProvider[];\n};\n\nconst defaultProviders = [new NodeDependencyProvider()];\n\nasync function collectChecks(\n providers: DependencyProvider[],\n mapper: (provider: DependencyProvider) => Promise<Result<AgentDevKitErrorCode, DependencyCheck>>,\n): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>> {\n const checks: DependencyCheck[] = [];\n\n for (const provider of providers) {\n const result = await mapper(provider);\n\n if (result.isErr()) {\n return Result.fail(result.unwrapError());\n }\n\n checks.push(result.unwrap());\n }\n\n return Result.ok(checks);\n}\n\nexport class DependenciesRepository implements DependenciesRepositoryPort {\n readonly repositoryId = \"environment.dependencies.repository\";\n readonly #providers: Map<string, DependencyProvider>;\n\n constructor(options: DependenciesRepositoryOptions = {}) {\n this.#providers = new Map(\n (options.providers ?? defaultProviders).map((provider) => [provider.metadata().id, provider]),\n );\n }\n\n listProviders(): DependencyMetadata[] {\n return [...this.#providers.values()]\n .map((provider) => provider.metadata())\n .sort((left, right) => left.id.localeCompare(right.id));\n }\n\n check(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>> {\n return this.#runChecks(dependency, (provider) => provider.verify(options));\n }\n\n checkCompatibility(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>> {\n return this.#runChecks(dependency, (provider) => provider.checkCompatibility(options));\n }\n\n checkEnvironment(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>> {\n return this.#runChecks(dependency, (provider) => provider.checkEnvironment(options));\n }\n\n checkInstalled(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>> {\n return this.#runChecks(dependency, (provider) => provider.checkInstalled(options));\n }\n\n operation(\n dependency: string,\n action: \"configure\" | \"downgrade\" | \"install\" | \"uninstall\" | \"upgrade\",\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyOperationResult>> {\n const provider = this.#provider(dependency);\n\n if (provider.isErr()) {\n return Promise.resolve(Result.fail(provider.unwrapError()));\n }\n\n switch (action) {\n case \"configure\":\n return provider.unwrap().configure(options);\n case \"downgrade\":\n return provider.unwrap().downgrade(options);\n case \"install\":\n return provider.unwrap().install(options);\n case \"uninstall\":\n return provider.unwrap().uninstall(options);\n case \"upgrade\":\n return provider.unwrap().upgrade(options);\n }\n }\n\n plan(\n dependency: string,\n action:\n | \"plan-configure\"\n | \"plan-downgrade\"\n | \"plan-install\"\n | \"plan-uninstall\"\n | \"plan-upgrade\",\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyPlan>> {\n const provider = this.#provider(dependency);\n\n if (provider.isErr()) {\n return Promise.resolve(Result.fail(provider.unwrapError()));\n }\n\n switch (action) {\n case \"plan-configure\":\n return provider.unwrap().planConfigure(options);\n case \"plan-downgrade\":\n return provider.unwrap().planDowngrade(options);\n case \"plan-install\":\n return provider.unwrap().planInstall(options);\n case \"plan-uninstall\":\n return provider.unwrap().planUninstall(options);\n case \"plan-upgrade\":\n return provider.unwrap().planUpgrade(options);\n }\n }\n\n verify(\n dependency: string | undefined,\n options?: DependencyProviderOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>> {\n return this.#runChecks(dependency, (provider) => provider.verify(options));\n }\n\n #provider(id: string): Result<AgentDevKitErrorCode, DependencyProvider> {\n const provider = this.#providers.get(id);\n return provider === undefined ? Result.fail(ErrorCodes.InvalidInput) : Result.ok(provider);\n }\n\n #selectedProviders(\n dependency: string | undefined,\n ): Result<AgentDevKitErrorCode, DependencyProvider[]> {\n if (dependency === undefined) {\n return Result.ok([...this.#providers.values()]);\n }\n\n return this.#provider(dependency).map((provider) => [provider]);\n }\n\n async #runChecks(\n dependency: string | undefined,\n mapper: (\n provider: DependencyProvider,\n ) => Promise<Result<AgentDevKitErrorCode, DependencyCheck>>,\n ): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>> {\n const providers = this.#selectedProviders(dependency);\n\n if (providers.isErr()) {\n return Result.fail(providers.unwrapError());\n }\n\n return collectChecks(providers.unwrap(), mapper);\n }\n}\n","import { z } from \"zod\";\n\nexport const DependencyActionSchema = z.enum([\n \"check\",\n \"check-compatibility\",\n \"check-environment\",\n \"check-installed\",\n \"configure\",\n \"downgrade\",\n \"install\",\n \"list\",\n \"plan-configure\",\n \"plan-downgrade\",\n \"plan-install\",\n \"plan-uninstall\",\n \"plan-upgrade\",\n \"uninstall\",\n \"upgrade\",\n \"verify\",\n]);\n\nexport const DependencyStatusSchema = z.enum([\n \"compatible\",\n \"configured\",\n \"incompatible\",\n \"installed\",\n \"missing\",\n \"ok\",\n \"planned\",\n \"unsupported\",\n \"warning\",\n]);\n\nexport const DependencyRiskSchema = z.enum([\"read-only\", \"writes-external\", \"writes-global-state\"]);\n\nexport const DependenciesOptionsSchema = z\n .object({\n action: DependencyActionSchema,\n confirmed: z.boolean().optional(),\n dependency: z.string().min(1).optional(),\n options: z.record(z.string(), z.unknown()).optional(),\n version: z.string().min(1).optional(),\n })\n .strict();\n\nexport type DependenciesOptions = z.infer<typeof DependenciesOptionsSchema>;\n\nexport const DependencyMetadataSchema = z.object({\n category: z.string().min(1),\n description: z.string().min(1),\n id: z.string().min(1),\n name: z.string().min(1),\n risk: DependencyRiskSchema,\n});\n\nexport type DependencyMetadataView = z.infer<typeof DependencyMetadataSchema>;\n\nexport const DependencyCheckSchema = z.object({\n details: z.record(z.string(), z.unknown()).optional(),\n id: z.string().min(1),\n message: z.string().min(1),\n status: DependencyStatusSchema,\n});\n\nexport const DependencyCommandPlanSchema = z.object({\n command: z.string().min(1),\n description: z.string().min(1),\n risk: DependencyRiskSchema,\n});\n\nexport const DependencyPlanSchema = z.object({\n commands: z.array(DependencyCommandPlanSchema),\n id: z.string().min(1),\n message: z.string().min(1),\n requiresApproval: z.boolean(),\n status: DependencyStatusSchema,\n});\n\nexport const DependencyOperationResultSchema = z.object({\n id: z.string().min(1),\n message: z.string().min(1),\n status: DependencyStatusSchema,\n});\n\nexport const DependenciesResultSchema = z.discriminatedUnion(\"action\", [\n z.object({\n action: z.literal(\"list\"),\n dependencies: z.array(DependencyMetadataSchema),\n status: DependencyStatusSchema,\n }),\n z.object({\n action: z.enum([\n \"check\",\n \"check-compatibility\",\n \"check-environment\",\n \"check-installed\",\n \"verify\",\n ]),\n checks: z.array(DependencyCheckSchema),\n dependency: z.string().min(1).optional(),\n status: DependencyStatusSchema,\n }),\n z.object({\n action: z.enum([\n \"plan-configure\",\n \"plan-downgrade\",\n \"plan-install\",\n \"plan-uninstall\",\n \"plan-upgrade\",\n ]),\n dependency: z.string().min(1),\n plan: DependencyPlanSchema,\n status: DependencyStatusSchema,\n }),\n z.object({\n action: z.enum([\"configure\", \"downgrade\", \"install\", \"uninstall\", \"upgrade\"]),\n dependency: z.string().min(1),\n result: DependencyOperationResultSchema,\n status: DependencyStatusSchema,\n }),\n]);\n\nexport type DependenciesResult = z.infer<typeof DependenciesResultSchema>;\n","import { BaseCapabilityService, defineCapabilityConfig } from \"../../../../infra/bases/capability\";\nimport type { DependencyCheck } from \"../../../../infra/bases/dependency\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type DependenciesOptions,\n DependenciesOptionsSchema,\n type DependenciesResult,\n DependenciesResultSchema,\n} from \"./dependencies.entities\";\nimport type { DependenciesRepositoryPort } from \"./dependencies.repository\";\n\ntype DependenciesServiceDependencies = {\n repository: DependenciesRepositoryPort;\n};\n\nexport const dependenciesCapabilityConfig = defineCapabilityConfig({\n id: \"environment.dependencies\",\n moduleId: \"environment\",\n name: \"Environment Dependencies\",\n description: \"Inspect and plan lifecycle operations for external Agent DevKit dependencies.\",\n kind: \"deterministic\",\n risk: \"read-only\",\n} as const);\n\nfunction aggregateStatus(statuses: string[]): DependenciesResult[\"status\"] {\n if (statuses.includes(\"incompatible\")) {\n return \"incompatible\";\n }\n\n if (statuses.includes(\"missing\")) {\n return \"missing\";\n }\n\n if (statuses.includes(\"unsupported\")) {\n return \"unsupported\";\n }\n\n if (statuses.includes(\"warning\")) {\n return \"warning\";\n }\n\n return \"ok\";\n}\n\nfunction providerOptions(options: DependenciesOptions) {\n return {\n options: options.options,\n version: options.version,\n };\n}\n\nexport class DependenciesService extends BaseCapabilityService<\n typeof dependenciesCapabilityConfig,\n DependenciesServiceDependencies\n> {\n readonly inputSchema = DependenciesOptionsSchema;\n readonly outputSchema = DependenciesResultSchema;\n readonly #repository: DependenciesRepositoryPort;\n\n constructor(dependencies: DependenciesServiceDependencies) {\n super(dependenciesCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: DependenciesOptions,\n ): Promise<Result<AgentDevKitErrorCode, DependenciesResult>> {\n if (options.action === \"list\") {\n return Result.ok({\n action: \"list\",\n dependencies: this.#repository.listProviders(),\n status: \"ok\",\n });\n }\n\n if (\n options.action === \"plan-configure\" ||\n options.action === \"plan-downgrade\" ||\n options.action === \"plan-install\" ||\n options.action === \"plan-uninstall\" ||\n options.action === \"plan-upgrade\"\n ) {\n if (options.dependency === undefined) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const plan = await this.#repository.plan(\n options.dependency,\n options.action,\n providerOptions(options),\n );\n\n return plan.isOk()\n ? Result.ok({\n action: options.action,\n dependency: options.dependency,\n plan: plan.unwrap(),\n status: plan.unwrap().status,\n })\n : Result.fail(plan.unwrapError());\n }\n\n if (\n options.action === \"configure\" ||\n options.action === \"downgrade\" ||\n options.action === \"install\" ||\n options.action === \"uninstall\" ||\n options.action === \"upgrade\"\n ) {\n if (options.dependency === undefined) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n if (options.confirmed !== true) {\n const planAction = `plan-${options.action}` as\n | \"plan-configure\"\n | \"plan-downgrade\"\n | \"plan-install\"\n | \"plan-uninstall\"\n | \"plan-upgrade\";\n const plan = await this.#repository.plan(\n options.dependency,\n planAction,\n providerOptions(options),\n );\n\n return plan.isOk()\n ? Result.ok({\n action: planAction,\n dependency: options.dependency,\n plan: plan.unwrap(),\n status: plan.unwrap().status,\n })\n : Result.fail(plan.unwrapError());\n }\n\n const operation = await this.#repository.operation(\n options.dependency,\n options.action,\n providerOptions(options),\n );\n\n return operation.isOk()\n ? Result.ok({\n action: options.action,\n dependency: options.dependency,\n result: operation.unwrap(),\n status: operation.unwrap().status,\n })\n : Result.fail(operation.unwrapError());\n }\n\n const checks = await this.#checks(options);\n\n return checks.isOk()\n ? Result.ok({\n action: options.action,\n checks: checks.unwrap(),\n dependency: options.dependency,\n status: aggregateStatus(checks.unwrap().map((check) => check.status)),\n })\n : Result.fail(checks.unwrapError());\n }\n\n invoke(options: DependenciesOptions): Promise<Result<AgentDevKitErrorCode, DependenciesResult>> {\n return this.execute(options);\n }\n\n #checks(options: DependenciesOptions): Promise<Result<AgentDevKitErrorCode, DependencyCheck[]>> {\n switch (options.action) {\n case \"check\":\n return this.#repository.check(options.dependency, providerOptions(options));\n case \"check-compatibility\":\n return this.#repository.checkCompatibility(options.dependency, providerOptions(options));\n case \"check-environment\":\n return this.#repository.checkEnvironment(options.dependency, providerOptions(options));\n case \"check-installed\":\n return this.#repository.checkInstalled(options.dependency, providerOptions(options));\n case \"verify\":\n return this.#repository.verify(options.dependency, providerOptions(options));\n default:\n return Promise.resolve(Result.fail(ErrorCodes.InvalidInput));\n }\n }\n}\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { DependenciesResult } from \"./dependencies.entities\";\n\nconst defaultTranslator = new I18nCatalog().translator(\"en-US\");\n\nexport function formatDependenciesText(\n result: DependenciesResult,\n translator: Translator = defaultTranslator,\n): string {\n const rows = [\n translator.t(\"dependencies.title\"),\n translator.t(\"dependencies.command\"),\n \"\",\n `[${result.action}] ${result.status}`,\n ];\n\n if (result.action === \"list\") {\n rows.push(\"\", ` ${translator.t(\"dependencies.section.known\")}`);\n rows.push(\n ...result.dependencies.map(\n (dependency) => ` ${dependency.id.padEnd(12)} ${dependency.name}`,\n ),\n );\n return rows.join(\"\\n\");\n }\n\n if (\"checks\" in result) {\n rows.push(\"\", ` ${translator.t(\"dependencies.section.checks\")}`);\n rows.push(\n ...result.checks.map(\n (check) => ` ${check.id.padEnd(12)} ${check.status.padEnd(14)} ${check.message}`,\n ),\n );\n return rows.join(\"\\n\");\n }\n\n if (\"plan\" in result) {\n rows.push(\"\", ` ${translator.t(\"dependencies.section.plan\")}`, ` ${result.plan.message}`);\n rows.push(\n ...result.plan.commands.map((command) => ` ${command.risk.padEnd(18)} ${command.command}`),\n );\n return rows.join(\"\\n\");\n }\n\n rows.push(\"\", ` ${translator.t(\"dependencies.section.result\")}`, ` ${result.result.message}`);\n return rows.join(\"\\n\");\n}\n","import { defineModuleConfig } from \"../../infra/bases/module\";\nimport { dependenciesCapabilityConfig } from \"./capabilities/dependencies/dependencies.service\";\n\nexport const environmentModuleConfig = defineModuleConfig({\n id: \"environment\",\n name: \"Environment\",\n description: \"External dependency discovery, planning and runtime environment checks.\",\n capabilities: [dependenciesCapabilityConfig.id],\n tests: {\n include: [\n \"src/modules/environment/environment.surface.test.ts\",\n \"src/modules/environment/capabilities/**/*.test.ts\",\n ],\n },\n} as const);\n","import { defineModuleBinding, ModuleBinder, type ModuleBinding } from \"../../infra/bases/bind\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport {\n DependenciesRepository,\n type DependenciesRepositoryPort,\n} from \"./capabilities/dependencies/dependencies.repository\";\nimport { DependenciesService } from \"./capabilities/dependencies/dependencies.service\";\nimport { environmentModuleConfig } from \"./environment.config\";\n\nexport type EnvironmentModuleBindOptions = Record<string, never>;\n\nexport type EnvironmentModuleCapabilities = {\n dependencies: DependenciesService;\n};\n\nexport type EnvironmentModuleBinding = ModuleBinding<\n typeof environmentModuleConfig,\n EnvironmentModuleCapabilities\n>;\n\ntype EnvironmentModuleBinderDependencies = {\n dependenciesRepository: () => DependenciesRepositoryPort;\n};\n\nconst defaultDependencies: EnvironmentModuleBinderDependencies = {\n dependenciesRepository: () => new DependenciesRepository(),\n};\n\nexport class EnvironmentModuleBinder extends ModuleBinder<\n EnvironmentModuleBindOptions,\n typeof environmentModuleConfig,\n EnvironmentModuleCapabilities\n> {\n readonly #dependencies: EnvironmentModuleBinderDependencies;\n\n constructor(dependencies: EnvironmentModuleBinderDependencies = defaultDependencies) {\n super();\n this.#dependencies = dependencies;\n }\n\n override bind(\n _options: EnvironmentModuleBindOptions = {},\n ): Result<AgentDevKitErrorCode, EnvironmentModuleBinding> {\n return defineModuleBinding({\n config: environmentModuleConfig,\n capabilities: {\n dependencies: new DependenciesService({\n repository: this.#dependencies.dependenciesRepository(),\n }),\n },\n });\n }\n}\n\nexport function createEnvironmentModuleBindings(\n options: EnvironmentModuleBindOptions = {},\n): Result<AgentDevKitErrorCode, EnvironmentModuleBinding> {\n return new EnvironmentModuleBinder().bind(options);\n}\n","import { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { Result } from \"../../infra/bases/result\";\nimport type { IModuleSurface, SurfacePromptInput } from \"../../infra/bases/surface\";\nimport { surfaceCapabilitiesFromConfigs } from \"../../infra/helpers/surface_capabilities\";\nimport { resolveModuleSurfaceDirectory, SurfaceLoader } from \"../../infra/helpers/surface_loader\";\nimport { dependenciesCapabilityConfig } from \"./capabilities/dependencies/dependencies.service\";\n\nconst moduleDirectory = dirname(fileURLToPath(import.meta.url));\n\nexport function createEnvironmentSurface(): IModuleSurface {\n const loader = new SurfaceLoader(resolveModuleSurfaceDirectory(\"environment\", moduleDirectory));\n\n return {\n moduleId: \"environment\",\n capabilities: async () =>\n Result.ok(surfaceCapabilitiesFromConfigs([dependenciesCapabilityConfig])),\n knowledge: () => loader.knowledge(),\n loop: () => loader.loop(),\n prompt: (input?: SurfacePromptInput) => loader.prompt(input),\n skill: () => loader.skill(),\n };\n}\n","import { homedir } from \"node:os\";\nimport type { ToolRuntime } from \"../../infra/bases/tool_runtime\";\nimport { createBrainDockProvider } from \"../../infra/brain/brain_dock\";\nimport { createCapabilityToolRuntime } from \"../../modules/capability_tool_runtime\";\n\nexport type CliToolRuntimeOptions = {\n currentVersion: string;\n packageName: string;\n};\n\nexport function createCliToolRuntime(options: CliToolRuntimeOptions): ToolRuntime {\n const homeDirectory = homedir();\n const runtime = createCapabilityToolRuntime({\n appVersion: options.currentVersion,\n context: { homeDirectory },\n conversation: {\n brainProvider: createBrainDockProvider({ stateDirectory: `${homeDirectory}/.agent-devkit` }),\n homeDirectory,\n },\n currentVersion: options.currentVersion,\n logs: { homeDirectory },\n packageName: options.packageName,\n secrets: { homeDirectory },\n user: { homeDirectory },\n });\n\n if (runtime.isErr()) {\n throw new Error(runtime.unwrapError());\n }\n\n return runtime.unwrap();\n}\n","import { createHash } from \"node:crypto\";\nimport { once } from \"node:events\";\nimport { createReadStream, createWriteStream } from \"node:fs\";\nimport { access, mkdir, readdir, readFile, rename, rm, writeFile } from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { basename, join } from \"node:path\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport { type InstalledModel, InstalledModelSchema, type ModelCatalogEntry } from \"../bases/model\";\nimport { Result } from \"../bases/result\";\n\nexport type ModelDownloadProgress = {\n downloadedBytes: number;\n totalBytes: number;\n};\n\nexport type ModelStoreOptions = {\n clock?: () => Date;\n downloadTimeoutMs?: number;\n stateDirectory?: string;\n};\n\nfunction defaultStateDirectory(): string {\n return join(homedir(), \".agent-devkit\");\n}\n\nfunction errno(error: unknown): string | undefined {\n return typeof (error as NodeJS.ErrnoException).code === \"string\"\n ? (error as NodeJS.ErrnoException).code\n : undefined;\n}\n\nexport class ModelStore {\n readonly #clock: () => Date;\n readonly #directory: string;\n readonly #downloadTimeoutMs: number;\n\n constructor(options: ModelStoreOptions = {}) {\n this.#clock = options.clock ?? (() => new Date());\n this.#directory = join(options.stateDirectory ?? defaultStateDirectory(), \"models\");\n this.#downloadTimeoutMs = options.downloadTimeoutMs ?? 10 * 60 * 1000;\n }\n\n directory(): string {\n return this.#directory;\n }\n\n async status(id: string): Promise<Result<AgentDevKitErrorCode, InstalledModel | undefined>> {\n let raw: string;\n\n try {\n raw = await readFile(this.#metadataPath(id), \"utf8\");\n } catch (error) {\n return errno(error) === \"ENOENT\"\n ? Result.ok(undefined)\n : Result.fail(ErrorCodes.FileReadFailed);\n }\n\n let parsed: unknown;\n try {\n parsed = JSON.parse(raw);\n } catch {\n return Result.ok(undefined);\n }\n\n const model = InstalledModelSchema.safeParse(parsed);\n\n if (!model.success) {\n return Result.ok(undefined);\n }\n\n try {\n await access(this.#modelPath(id));\n } catch {\n return Result.ok(undefined);\n }\n\n return Result.ok(model.data);\n }\n\n async list(): Promise<Result<AgentDevKitErrorCode, InstalledModel[]>> {\n const ids = await this.installedIds();\n\n if (ids.isErr()) {\n return Result.fail(ids.unwrapError());\n }\n\n const installed: InstalledModel[] = [];\n\n for (const id of ids.unwrap()) {\n const status = await this.status(id);\n const model = status.isOk() ? status.unwrap() : undefined;\n\n if (model !== undefined) {\n installed.push(model);\n }\n }\n\n return Result.ok(installed);\n }\n\n async installedIds(): Promise<Result<AgentDevKitErrorCode, string[]>> {\n let files: string[];\n\n try {\n files = await readdir(this.#directory);\n } catch (error) {\n return errno(error) === \"ENOENT\" ? Result.ok([]) : Result.fail(ErrorCodes.FileReadFailed);\n }\n\n return Result.ok(\n files\n .filter((file) => file.endsWith(\".gguf\"))\n .map((file) => basename(file, \".gguf\"))\n .sort(),\n );\n }\n\n async install(\n entry: ModelCatalogEntry,\n options: { onProgress?: (progress: ModelDownloadProgress) => void } = {},\n ): Promise<Result<AgentDevKitErrorCode, InstalledModel>> {\n const target = this.#modelPath(entry.id);\n const temp = `${target}.part`;\n const hash = createHash(\"sha256\");\n const abortController = new AbortController();\n const timeout = setTimeout(() => abortController.abort(), this.#downloadTimeoutMs);\n\n try {\n await mkdir(this.#directory, { recursive: true, mode: 0o700 });\n\n const response = await fetch(entry.url, { signal: abortController.signal });\n\n if (!response.ok || response.body === null) {\n return Result.fail(ErrorCodes.NetworkRequestFailed);\n }\n\n const writeStream = createWriteStream(temp, { mode: 0o600 });\n const reader = response.body.getReader();\n let downloadedBytes = 0;\n\n try {\n for (;;) {\n const { done, value } = await reader.read();\n\n if (done) {\n break;\n }\n\n if (value === undefined) {\n continue;\n }\n\n hash.update(value);\n downloadedBytes += value.byteLength;\n options.onProgress?.({ downloadedBytes, totalBytes: entry.sizeBytes });\n\n if (!writeStream.write(value)) {\n await once(writeStream, \"drain\");\n }\n }\n\n await new Promise<void>((resolve, reject) => {\n writeStream.on(\"error\", reject);\n writeStream.end(() => resolve());\n });\n } finally {\n reader.releaseLock();\n }\n\n const digest = hash.digest(\"hex\");\n\n if (entry.sha256 !== undefined && digest.toLowerCase() !== entry.sha256.toLowerCase()) {\n await rm(temp, { force: true }).catch(() => undefined);\n return Result.fail(ErrorCodes.ModelVerificationFailed);\n }\n\n await rename(temp, target);\n\n const installed: InstalledModel = {\n id: entry.id,\n path: target,\n sizeBytes: downloadedBytes,\n sha256: digest,\n installedAt: this.#clock().toISOString(),\n };\n\n await writeFile(this.#metadataPath(entry.id), `${JSON.stringify(installed, null, 2)}\\n`, {\n mode: 0o600,\n });\n\n return Result.ok(installed);\n } catch (error) {\n await rm(temp, { force: true }).catch(() => undefined);\n return Result.fail(\n errno(error) === undefined ? ErrorCodes.NetworkRequestFailed : ErrorCodes.FileWriteFailed,\n );\n } finally {\n clearTimeout(timeout);\n }\n }\n\n async uninstall(id: string): Promise<Result<AgentDevKitErrorCode, { removed: boolean }>> {\n try {\n let removed = false;\n\n for (const path of [this.#modelPath(id), this.#metadataPath(id)]) {\n try {\n await rm(path);\n removed = true;\n } catch (error) {\n if (errno(error) !== \"ENOENT\") {\n throw error;\n }\n }\n }\n\n for (const role of [undefined, \"agent\", \"chat\"]) {\n const current = await this.#readDefaultFile(this.#defaultPath(role));\n\n if (current.isOk() && current.unwrap() === id) {\n await rm(this.#defaultPath(role), { force: true }).catch(() => undefined);\n }\n }\n\n return Result.ok({ removed });\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n async verify(\n id: string,\n expectedSha256?: string,\n ): Promise<Result<AgentDevKitErrorCode, boolean>> {\n const status = await this.status(id);\n\n if (status.isErr()) {\n return Result.fail(status.unwrapError());\n }\n\n const installed = status.unwrap();\n\n if (installed === undefined) {\n return Result.fail(ErrorCodes.ModelNotFound);\n }\n\n const expected = (expectedSha256 ?? installed.sha256)?.toLowerCase();\n\n if (expected === undefined) {\n return Result.ok(true);\n }\n\n try {\n const hash = createHash(\"sha256\");\n\n for await (const chunk of createReadStream(this.#modelPath(id))) {\n hash.update(chunk as Buffer);\n }\n\n return Result.ok(hash.digest(\"hex\").toLowerCase() === expected);\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n async getDefault(role?: string): Promise<Result<AgentDevKitErrorCode, string | undefined>> {\n const primary = await this.#readDefaultFile(this.#defaultPath(role));\n\n if (primary.isErr() || primary.unwrap() !== undefined || role === undefined) {\n return primary;\n }\n\n return this.#readDefaultFile(this.#defaultPath());\n }\n\n async setDefault(id: string, role?: string): Promise<Result<AgentDevKitErrorCode, void>> {\n const status = await this.status(id);\n\n if (status.isErr()) {\n return Result.fail(status.unwrapError());\n }\n\n if (status.unwrap() === undefined) {\n return Result.fail(ErrorCodes.ModelNotFound);\n }\n\n try {\n await mkdir(this.#directory, { recursive: true, mode: 0o700 });\n await writeFile(this.#defaultPath(role), `${id}\\n`, { mode: 0o600 });\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n #modelPath(id: string): string {\n return join(this.#directory, `${id}.gguf`);\n }\n\n #metadataPath(id: string): string {\n return join(this.#directory, `${id}.json`);\n }\n\n #defaultPath(role?: string): string {\n return join(this.#directory, role === undefined ? \"default\" : `default-${role}`);\n }\n\n async #readDefaultFile(path: string): Promise<Result<AgentDevKitErrorCode, string | undefined>> {\n try {\n const id = (await readFile(path, \"utf8\")).trim();\n return Result.ok(id.length > 0 ? id : undefined);\n } catch (error) {\n return errno(error) === \"ENOENT\"\n ? Result.ok(undefined)\n : Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n}\n","import { z } from \"zod\";\n\nconst sha256Pattern = /^[a-f0-9]{64}$/i;\n\nexport const ModelCatalogEntrySchema = z\n .object({\n id: z.string().min(1),\n name: z.string().min(1),\n family: z.string().min(1),\n parameters: z.string().min(1),\n quantization: z.string().min(1),\n format: z.literal(\"gguf\"),\n contextLength: z.number().int().positive(),\n sizeBytes: z.number().int().positive(),\n url: z.string().regex(/^https:\\/\\//),\n sha256: z.string().regex(sha256Pattern),\n license: z.string().min(1),\n recommended: z.boolean().default(false),\n })\n .strict();\n\nexport type ModelCatalogEntry = z.infer<typeof ModelCatalogEntrySchema>;\n\nexport const ModelCatalogSchema = z\n .object({\n schema: z.literal(\"agent-devkit.model-catalog/v1\"),\n models: z.array(ModelCatalogEntrySchema).min(1),\n })\n .strict();\n\nexport type ModelCatalog = z.infer<typeof ModelCatalogSchema>;\n\nexport const InstalledModelSchema = z\n .object({\n id: z.string().min(1),\n path: z.string().min(1),\n sizeBytes: z.number().int().nonnegative(),\n sha256: z.string().min(1).optional(),\n installedAt: z.string().min(1),\n })\n .strict();\n\nexport type InstalledModel = z.infer<typeof InstalledModelSchema>;\n","import type {\n BrainProviderPort,\n BrainRequest,\n BrainResponse,\n BrainStreamHandler,\n BrainStructuredResponse,\n} from \"../bases/brain\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport type { AgentPrompt } from \"../bases/prompt\";\nimport { Result } from \"../bases/result\";\nimport { ModelStore } from \"../models/model_store\";\n\n// Minimal structural view of the parts of `node-llama-cpp` we depend on. The\n// package is an optional native dependency resolved at runtime, so we describe\n// only the surface we use instead of importing its types.\ntype LlamaContextSequence = unknown;\n\ntype LlamaChatSession = {\n prompt(\n text: string,\n options?: {\n grammar?: unknown;\n maxTokens?: number;\n onTextChunk?: (chunk: string) => void;\n seed?: number;\n temperature?: number;\n topK?: number;\n topP?: number;\n },\n ): Promise<string>;\n};\n\ntype LlamaContext = { getSequence(): LlamaContextSequence };\ntype LlamaModel = { createContext(): Promise<LlamaContext> };\ntype Llama = {\n createGrammarForJsonSchema?(schema: Record<string, unknown>): Promise<unknown>;\n loadModel(options: { modelPath: string }): Promise<LlamaModel>;\n};\n\ntype NodeLlamaCpp = {\n getLlama(): Promise<Llama>;\n LlamaChatSession: new (options: {\n contextSequence: LlamaContextSequence;\n systemPrompt?: string;\n }) => LlamaChatSession;\n};\n\n// Widened to `string` so TypeScript does not try to resolve the optional\n// dependency at build time; it is loaded lazily at runtime.\nconst nodeLlamaModuleName: string = \"node-llama-cpp\";\n\nasync function loadNodeLlama(): Promise<Result<AgentDevKitErrorCode, NodeLlamaCpp>> {\n try {\n return Result.ok((await import(nodeLlamaModuleName)) as NodeLlamaCpp);\n } catch {\n return Result.fail(ErrorCodes.BrainProviderUnavailable);\n }\n}\n\nfunction systemPromptFrom(prompt: AgentPrompt): string {\n const { agent } = prompt;\n const lines = [\n `You are ${agent.name}.`,\n `Behavior: ${agent.behavior}. Tone: ${agent.tone}. Detail level: ${agent.detailLevel}.`,\n ];\n\n if (agent.traits.length > 0) {\n lines.push(`Traits: ${agent.traits.join(\", \")}.`);\n }\n\n const { project } = prompt.context;\n\n if (project !== undefined) {\n lines.push(\n `Project: ${project.name}${project.description === undefined ? \"\" : ` — ${project.description}`}.`,\n );\n }\n\n lines.push(`Reply in ${prompt.output.language}.`);\n\n const history = prompt.messages\n .filter((message) => message.role === \"user\" || message.role === \"assistant\")\n .slice(0, -1)\n .map((message) => `${message.role === \"user\" ? \"User\" : agent.name}: ${message.content}`);\n\n if (history.length > 0) {\n lines.push(\"\", \"Conversation so far:\", ...history);\n }\n\n return lines.join(\"\\n\");\n}\n\nfunction extractJson(text: string): unknown {\n const start = text.indexOf(\"{\");\n const end = text.lastIndexOf(\"}\");\n\n if (start === -1 || end === -1 || end <= start) {\n return undefined;\n }\n\n try {\n return JSON.parse(text.slice(start, end + 1));\n } catch {\n return undefined;\n }\n}\n\nexport type LocalLlamaBrainProviderOptions = {\n store?: ModelStore;\n stateDirectory?: string;\n};\n\nexport class LocalLlamaBrainProvider implements BrainProviderPort {\n readonly #store: ModelStore;\n readonly #models = new Map<string, LlamaModel>();\n #llama?: Llama;\n #nodeLlama?: NodeLlamaCpp;\n\n constructor(options: LocalLlamaBrainProviderOptions = {}) {\n this.#store = options.store ?? new ModelStore({ stateDirectory: options.stateDirectory });\n }\n\n generate(request: BrainRequest): Promise<Result<AgentDevKitErrorCode, BrainResponse>> {\n return this.#run(request);\n }\n\n generateStream(\n request: BrainRequest,\n onToken: BrainStreamHandler,\n ): Promise<Result<AgentDevKitErrorCode, BrainResponse>> {\n return this.#run(request, { onToken });\n }\n\n async generateStructured(\n request: BrainRequest,\n jsonSchema: Record<string, unknown>,\n ): Promise<Result<AgentDevKitErrorCode, BrainStructuredResponse>> {\n const generated = await this.#run(request, { jsonSchema });\n\n if (generated.isErr()) {\n return Result.fail(generated.unwrapError());\n }\n\n const raw = generated.unwrap().text;\n let json: unknown;\n\n try {\n json = JSON.parse(raw);\n } catch {\n json = extractJson(raw);\n }\n\n return Result.ok({ json, raw });\n }\n\n async #run(\n request: BrainRequest,\n options: { jsonSchema?: Record<string, unknown>; onToken?: BrainStreamHandler } = {},\n ): Promise<Result<AgentDevKitErrorCode, BrainResponse>> {\n const model = await this.#resolveModelPath(request.options.model, request.options.role);\n\n if (model.isErr()) {\n return Result.fail(model.unwrapError());\n }\n\n const nodeLlama = await this.#ensureNodeLlama();\n\n if (nodeLlama.isErr()) {\n return Result.fail(nodeLlama.unwrapError());\n }\n\n try {\n const llama = nodeLlama.unwrap();\n const loadedModel = await this.#loadModel(llama, model.unwrap().path);\n const context = await loadedModel.createContext();\n const session = new llama.LlamaChatSession({\n contextSequence: context.getSequence(),\n systemPrompt: systemPromptFrom(request.prompt),\n });\n\n const text = await session.prompt(request.prompt.task.userMessage, {\n grammar: await this.#grammarFor(options.jsonSchema),\n maxTokens: request.options.maxOutputTokens,\n onTextChunk: options.onToken,\n seed: request.options.seed,\n temperature: request.options.temperature,\n topK: request.options.topK,\n topP: request.options.topP,\n });\n\n const outputTokens = text.split(/\\s+/g).filter(Boolean).length;\n\n return Result.ok({\n finishReason: \"stop\",\n model: model.unwrap().id,\n provider: \"local\",\n schema: \"agent-devkit.brain-response/v1\",\n text,\n usage: { outputTokens },\n });\n } catch {\n return Result.fail(ErrorCodes.BrainProviderUnavailable);\n }\n }\n\n // Best-effort JSON-schema grammar for constrained decoding. Falls back to\n // free-form output (and prompt-based JSON extraction) if the installed\n // node-llama-cpp version does not expose grammar creation.\n async #grammarFor(jsonSchema?: Record<string, unknown>): Promise<unknown> {\n if (jsonSchema === undefined || this.#llama?.createGrammarForJsonSchema === undefined) {\n return undefined;\n }\n\n try {\n return await this.#llama.createGrammarForJsonSchema(jsonSchema);\n } catch {\n return undefined;\n }\n }\n\n async #resolveModelPath(\n requestedModel: string | undefined,\n role: string | undefined,\n ): Promise<Result<AgentDevKitErrorCode, { id: string; path: string }>> {\n let modelId = requestedModel;\n\n if (modelId === undefined) {\n const defaultId = await this.#store.getDefault(role);\n modelId = defaultId.isOk() ? defaultId.unwrap() : undefined;\n }\n\n if (modelId === undefined) {\n return Result.fail(ErrorCodes.ModelNotFound);\n }\n\n const status = await this.#store.status(modelId);\n\n if (status.isErr()) {\n return Result.fail(status.unwrapError());\n }\n\n const installed = status.unwrap();\n\n if (installed === undefined) {\n return Result.fail(ErrorCodes.ModelNotFound);\n }\n\n return Result.ok({ id: modelId, path: installed.path });\n }\n\n async #ensureNodeLlama(): Promise<Result<AgentDevKitErrorCode, NodeLlamaCpp>> {\n if (this.#nodeLlama !== undefined) {\n return Result.ok(this.#nodeLlama);\n }\n\n const loaded = await loadNodeLlama();\n\n if (loaded.isOk()) {\n this.#nodeLlama = loaded.unwrap();\n }\n\n return loaded;\n }\n\n async #loadModel(llama: NodeLlamaCpp, modelPath: string): Promise<LlamaModel> {\n const cached = this.#models.get(modelPath);\n\n if (cached !== undefined) {\n return cached;\n }\n\n if (this.#llama === undefined) {\n this.#llama = await llama.getLlama();\n }\n\n const model = await this.#llama.loadModel({ modelPath });\n this.#models.set(modelPath, model);\n return model;\n }\n}\n","import type {\n BrainProviderPort,\n BrainRequest,\n BrainResponse,\n BrainStreamHandler,\n BrainStructuredResponse,\n} from \"../bases/brain\";\nimport type { AgentDevKitErrorCode } from \"../bases/errors\";\nimport { Result } from \"../bases/result\";\n\nfunction reply(request: BrainRequest): BrainResponse {\n const text = `${request.prompt.agent.name}: Entendi. Vou responder no contexto da sessão atual: \"${request.prompt.task.userMessage}\".`;\n const inputTokens = request.prompt.messages\n .map((message) => message.content.split(/\\s+/g).filter(Boolean).length)\n .reduce((total, count) => total + count, 0);\n const outputTokens = text.split(/\\s+/g).filter(Boolean).length;\n\n return {\n finishReason: \"stop\",\n model: request.options.model ?? \"mock-chat\",\n provider: \"mock\",\n schema: \"agent-devkit.brain-response/v1\",\n text,\n usage: {\n inputTokens,\n outputTokens,\n totalTokens: inputTokens + outputTokens,\n },\n };\n}\n\nexport class MockBrainProvider implements BrainProviderPort {\n async generate(request: BrainRequest): Promise<Result<AgentDevKitErrorCode, BrainResponse>> {\n return Result.ok(reply(request));\n }\n\n async generateStream(\n request: BrainRequest,\n onToken: BrainStreamHandler,\n ): Promise<Result<AgentDevKitErrorCode, BrainResponse>> {\n const response = reply(request);\n onToken(response.text);\n return Result.ok(response);\n }\n\n async generateStructured(\n request: BrainRequest,\n _jsonSchema: Record<string, unknown>,\n ): Promise<Result<AgentDevKitErrorCode, BrainStructuredResponse>> {\n const raw = JSON.stringify({ action: \"final\", reply: reply(request).text });\n return Result.ok({ json: JSON.parse(raw), raw });\n }\n}\n","import type {\n BrainProviderPort,\n BrainRequest,\n BrainResponse,\n BrainStreamHandler,\n BrainStructuredResponse,\n} from \"../bases/brain\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport { Result } from \"../bases/result\";\nimport { LocalLlamaBrainProvider } from \"./local_llama_provider\";\nimport { MockBrainProvider } from \"./mock_provider\";\n\nexport type BrainDockOptions = {\n stateDirectory?: string;\n};\n\ntype ProviderFactory = () => BrainProviderPort;\n\nconst defaultProvider = \"local\";\nconst fallbackProvider = \"mock\";\n\nfunction shouldFallback(error: AgentDevKitErrorCode): boolean {\n return error === ErrorCodes.BrainProviderUnavailable || error === ErrorCodes.ModelNotFound;\n}\n\n/**\n * The \"dock\": a `BrainProviderPort` that routes each request to a concrete\n * provider by `request.options.provider` (local, mock, and hosted providers\n * later). Streaming is forwarded when the resolved provider supports it, and\n * degrades to a single chunk otherwise.\n */\nexport class BrainDockProvider implements BrainProviderPort {\n readonly #factories: Map<string, ProviderFactory>;\n readonly #instances = new Map<string, BrainProviderPort>();\n\n constructor(options: BrainDockOptions = {}) {\n this.#factories = new Map<string, ProviderFactory>([\n [\"local\", () => new LocalLlamaBrainProvider({ stateDirectory: options.stateDirectory })],\n [\"mock\", () => new MockBrainProvider()],\n ]);\n }\n\n async generate(request: BrainRequest): Promise<Result<AgentDevKitErrorCode, BrainResponse>> {\n const provider = this.#resolve(request);\n const response = await provider.generate(request);\n\n if (\n response.isOk() ||\n request.options.provider === fallbackProvider ||\n !shouldFallback(response.unwrapError())\n ) {\n return response;\n }\n\n return this.#resolveById(fallbackProvider).generate({\n ...request,\n options: { ...request.options, provider: fallbackProvider },\n });\n }\n\n async generateStream(\n request: BrainRequest,\n onToken: BrainStreamHandler,\n ): Promise<Result<AgentDevKitErrorCode, BrainResponse>> {\n const provider = this.#resolve(request);\n\n if (provider.generateStream !== undefined) {\n const response = await provider.generateStream(request, onToken);\n\n if (\n response.isOk() ||\n request.options.provider === fallbackProvider ||\n !shouldFallback(response.unwrapError())\n ) {\n return response;\n }\n\n return (\n this.#resolveById(fallbackProvider).generateStream?.(\n {\n ...request,\n options: { ...request.options, provider: fallbackProvider },\n },\n onToken,\n ) ??\n this.#resolveById(fallbackProvider).generate({\n ...request,\n options: { ...request.options, provider: fallbackProvider },\n })\n );\n }\n\n const response = await provider.generate(request);\n\n if (response.isOk()) {\n onToken(response.unwrap().text);\n }\n\n return response;\n }\n\n async generateStructured(\n request: BrainRequest,\n jsonSchema: Record<string, unknown>,\n ): Promise<Result<AgentDevKitErrorCode, BrainStructuredResponse>> {\n const provider = this.#resolve(request);\n\n if (provider.generateStructured !== undefined) {\n const response = await provider.generateStructured(request, jsonSchema);\n\n if (\n response.isOk() ||\n request.options.provider === fallbackProvider ||\n !shouldFallback(response.unwrapError())\n ) {\n return response;\n }\n\n return (\n this.#resolveById(fallbackProvider).generateStructured?.(\n {\n ...request,\n options: { ...request.options, provider: fallbackProvider },\n },\n jsonSchema,\n ) ?? Result.fail(ErrorCodes.BrainProviderUnavailable)\n );\n }\n\n return Result.fail(ErrorCodes.BrainProviderUnavailable);\n }\n\n #resolve(request: BrainRequest): BrainProviderPort {\n const id = request.options.provider ?? defaultProvider;\n return this.#resolveById(id);\n }\n\n #resolveById(id: string): BrainProviderPort {\n const cached = this.#instances.get(id);\n\n if (cached !== undefined) {\n return cached;\n }\n\n const factory = this.#factories.get(id) ?? this.#factories.get(defaultProvider);\n const provider = factory === undefined ? new MockBrainProvider() : factory();\n this.#instances.set(id, provider);\n return provider;\n }\n}\n\nexport function createBrainDockProvider(options: BrainDockOptions = {}): BrainProviderPort {\n return new BrainDockProvider(options);\n}\n","import { z } from \"zod\";\nimport type {\n CapabilityApproval,\n CapabilityEffect,\n CapabilityInvocationAudit,\n CapabilityInvocationContext,\n CapabilityInvocationFailure,\n CapabilityInvocationResult,\n InvokableCapabilityDescriptor,\n InvokableCapabilityService,\n} from \"../bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport { Result } from \"../bases/result\";\n\nexport type CapabilityRegistryOptions = {\n capabilities: InvokableCapabilityService[];\n clock?: () => Date;\n};\n\nfunction effectsFor(capability: InvokableCapabilityService): CapabilityEffect[] {\n switch (capability.capability.risk) {\n case \"destructive\":\n return [{ operation: \"delete\", scope: \"project-or-global\" }];\n case \"external-write\":\n return [{ operation: \"external-write\", scope: \"external\" }];\n case \"read-only\":\n return [{ operation: \"read\", scope: \"none\" }];\n case \"writes-global-state\":\n return [{ operation: \"write\", scope: \"global\" }];\n case \"writes-project-state\":\n return [{ operation: \"write\", scope: \"project\" }];\n }\n}\n\nfunction approvalFor(capability: InvokableCapabilityService): CapabilityApproval {\n switch (capability.capability.risk) {\n case \"destructive\":\n return {\n reason: \"Capability can remove state and requires explicit approval.\",\n required: true,\n };\n case \"external-write\":\n return {\n reason: \"Capability writes to an external system.\",\n required: true,\n };\n case \"read-only\":\n return {\n reason: \"Capability is read-only.\",\n required: false,\n };\n case \"writes-global-state\":\n return {\n reason: \"Capability writes global state.\",\n required: true,\n };\n case \"writes-project-state\":\n return {\n reason: \"Capability writes project state.\",\n required: true,\n };\n }\n}\n\nfunction audit(startedAt: Date, endedAt: Date): CapabilityInvocationAudit {\n return {\n durationMs: Math.max(0, endedAt.getTime() - startedAt.getTime()),\n endedAt: endedAt.toISOString(),\n startedAt: startedAt.toISOString(),\n };\n}\n\nfunction failure(\n capabilityId: string,\n auditPayload: CapabilityInvocationAudit,\n code: CapabilityInvocationFailure[\"error\"][\"code\"],\n message: string,\n hint?: string,\n): CapabilityInvocationFailure {\n return {\n audit: auditPayload,\n capabilityId,\n error: {\n code,\n hint,\n message,\n recoverable:\n code === ErrorCodes.InvalidInput ||\n code === ErrorCodes.CapabilityNotFound ||\n code === ErrorCodes.ApprovalRequired,\n },\n ok: false,\n };\n}\n\nexport class CapabilityRegistry {\n readonly #capabilities: Map<string, InvokableCapabilityService>;\n readonly #clock: () => Date;\n\n constructor(options: CapabilityRegistryOptions) {\n this.#clock = options.clock ?? (() => new Date());\n this.#capabilities = new Map(\n options.capabilities.map((capability) => [capability.capability.id, capability]),\n );\n }\n\n describe(id: string): Result<AgentDevKitErrorCode, InvokableCapabilityDescriptor> {\n const capability = this.#capabilities.get(id);\n\n if (capability === undefined) {\n return Result.fail(ErrorCodes.CapabilityNotFound);\n }\n\n return Result.ok(this.#descriptor(capability));\n }\n\n list(): InvokableCapabilityDescriptor[] {\n return [...this.#capabilities.values()]\n .map((capability) => this.#descriptor(capability))\n .sort((left, right) => left.id.localeCompare(right.id));\n }\n\n async invoke(\n capabilityId: string,\n input: unknown,\n context: CapabilityInvocationContext,\n ): Promise<CapabilityInvocationResult> {\n const startedAt = this.#clock();\n const capability = this.#capabilities.get(capabilityId);\n\n if (capability === undefined) {\n const endedAt = this.#clock();\n return failure(\n capabilityId,\n audit(startedAt, endedAt),\n ErrorCodes.CapabilityNotFound,\n `Capability ${capabilityId} was not found.`,\n );\n }\n\n const parsed = capability.inputSchema.safeParse(input);\n\n if (!parsed.success) {\n const endedAt = this.#clock();\n return failure(\n capabilityId,\n audit(startedAt, endedAt),\n ErrorCodes.InvalidInput,\n \"Capability input did not match the declared schema.\",\n z.prettifyError(parsed.error),\n );\n }\n\n const approval = capability.approvalForInput?.(parsed.data, context) ?? approvalFor(capability);\n\n if (approval.required && context.approved !== true) {\n const endedAt = this.#clock();\n return failure(\n capabilityId,\n audit(startedAt, endedAt),\n ErrorCodes.ApprovalRequired,\n `Capability ${capabilityId} requires explicit approval.`,\n approval.reason,\n );\n }\n\n const result = await capability.invoke(parsed.data, context);\n const endedAt = this.#clock();\n const auditPayload = audit(startedAt, endedAt);\n\n if (result.isErr()) {\n return failure(\n capabilityId,\n auditPayload,\n result.unwrapError(),\n `Capability ${capabilityId} failed.`,\n );\n }\n\n const output = capability.outputSchema.safeParse(result.unwrap());\n\n if (!output.success) {\n return failure(\n capabilityId,\n auditPayload,\n ErrorCodes.CapabilityExecutionFailed,\n \"Capability output did not match the declared schema.\",\n z.prettifyError(output.error),\n );\n }\n\n return {\n audit: auditPayload,\n capabilityId,\n data: output.data,\n effects: capability.effectsForInput?.(parsed.data, context) ?? effectsFor(capability),\n ok: true,\n };\n }\n\n #descriptor(capability: InvokableCapabilityService): InvokableCapabilityDescriptor {\n return {\n ...capability.capability,\n approval: approvalFor(capability),\n inputSchema: z.toJSONSchema(capability.inputSchema) as Record<string, unknown>,\n outputSchema: z.toJSONSchema(capability.outputSchema) as Record<string, unknown>,\n };\n }\n}\n\nexport function createCapabilityRegistry(\n options: CapabilityRegistryOptions,\n): Result<AgentDevKitErrorCode, CapabilityRegistry> {\n const seen = new Set<string>();\n\n for (const capability of options.capabilities) {\n if (seen.has(capability.capability.id)) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n seen.add(capability.capability.id);\n }\n\n return Result.ok(new CapabilityRegistry(options));\n}\n","import { z } from \"zod\";\n\nexport const ContextProjectStatusSchema = z.enum([\"active\", \"archived\", \"deleted\"]);\nexport type ContextProjectStatus = z.infer<typeof ContextProjectStatusSchema>;\n\nexport const ContextProjectSchema = z.object({\n schema: z.literal(\"agent-devkit.context-project/v1\"),\n createdAt: z.string().datetime(),\n description: z.string().max(2000).optional(),\n id: z.string().min(1),\n metadata: z.record(z.string(), z.unknown()).default({}),\n name: z.string().min(1).max(160),\n path: z.string().min(1).optional(),\n status: ContextProjectStatusSchema,\n tags: z.array(z.string().min(1).max(80)).default([]),\n updatedAt: z.string().datetime(),\n});\n\nexport type ContextProject = z.infer<typeof ContextProjectSchema>;\n\nexport const ContextProjectIndexSchema = z.object({\n schema: z.literal(\"agent-devkit.context-project-index/v1\"),\n description: z.string().optional(),\n id: z.string().min(1),\n name: z.string().min(1),\n path: z.string().optional(),\n status: ContextProjectStatusSchema,\n tags: z.array(z.string()).default([]),\n updatedAt: z.string().datetime(),\n});\n\nexport type ContextProjectIndex = z.infer<typeof ContextProjectIndexSchema>;\n\nexport const ContextProjectsOptionsSchema = z.discriminatedUnion(\"action\", [\n z\n .object({\n action: z.literal(\"list\"),\n query: z.string().min(1).optional(),\n status: z.enum([\"active\", \"archived\", \"deleted\", \"all\"]).optional(),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"create\"),\n description: z.string().max(2000).optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n name: z.string().min(1).max(160),\n path: z.string().min(1).optional(),\n tags: z.array(z.string().min(1).max(80)).optional(),\n })\n .strict(),\n z.object({ action: z.literal(\"show\"), projectId: z.string().min(1) }).strict(),\n z\n .object({\n action: z.literal(\"update\"),\n description: z.string().max(2000).optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n name: z.string().min(1).max(160).optional(),\n path: z.string().min(1).optional(),\n projectId: z.string().min(1),\n tags: z.array(z.string().min(1).max(80)).optional(),\n })\n .strict(),\n z.object({ action: z.literal(\"archive\"), projectId: z.string().min(1) }).strict(),\n z\n .object({\n action: z.literal(\"delete\"),\n hard: z.boolean().optional(),\n projectId: z.string().min(1),\n })\n .strict(),\n]);\n\nexport type ContextProjectsOptions = z.infer<typeof ContextProjectsOptionsSchema>;\n\nexport type ContextProjectsListResult = {\n action: \"list\";\n projects: ContextProject[];\n};\n\nexport type ContextProjectResult = {\n action: \"archive\" | \"create\" | \"show\" | \"update\";\n project: ContextProject;\n};\n\nexport type ContextProjectDeleteResult = {\n action: \"delete\";\n hard: boolean;\n projectId: string;\n removed: boolean;\n};\n\nexport type ContextProjectsResult =\n | ContextProjectDeleteResult\n | ContextProjectResult\n | ContextProjectsListResult;\n\nexport const ContextProjectsResultSchema = z.discriminatedUnion(\"action\", [\n z.object({\n action: z.literal(\"list\"),\n projects: z.array(ContextProjectSchema),\n }),\n z.object({\n action: z.literal(\"create\"),\n project: ContextProjectSchema,\n }),\n z.object({\n action: z.literal(\"show\"),\n project: ContextProjectSchema,\n }),\n z.object({\n action: z.literal(\"update\"),\n project: ContextProjectSchema,\n }),\n z.object({\n action: z.literal(\"archive\"),\n project: ContextProjectSchema,\n }),\n z.object({\n action: z.literal(\"delete\"),\n hard: z.boolean(),\n projectId: z.string().min(1),\n removed: z.boolean(),\n }),\n]);\n","import type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport type { AgentDataPath, AgentDataStore } from \"../../../../infra/bases/data_store\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport { LocalAgentDataStore } from \"../../../../infra/data\";\nimport {\n type ContextProject,\n ContextProjectIndexSchema,\n ContextProjectSchema,\n type ContextProjectStatus,\n} from \"./projects.entities\";\n\nexport type ContextProjectsRepositoryOptions = {\n clock?: () => Date;\n dataStore?: AgentDataStore;\n};\n\nexport type CreateContextProjectInput = {\n description?: string;\n metadata?: Record<string, unknown>;\n name: string;\n path?: string;\n tags?: string[];\n};\n\nexport type ListContextProjectsInput = {\n query?: string;\n status?: ContextProjectStatus | \"all\";\n};\n\nexport type UpdateContextProjectInput = {\n description?: string;\n metadata?: Record<string, unknown>;\n name?: string;\n path?: string;\n projectId: string;\n tags?: string[];\n};\n\nexport interface ContextProjectsRepositoryPort extends CapabilityRepositoryPort {\n archive(projectId: string): Promise<Result<AgentDevKitErrorCode, ContextProject>>;\n create(input: CreateContextProjectInput): Promise<Result<AgentDevKitErrorCode, ContextProject>>;\n delete(projectId: string, hard?: boolean): Promise<Result<AgentDevKitErrorCode, boolean>>;\n list(input?: ListContextProjectsInput): Promise<Result<AgentDevKitErrorCode, ContextProject[]>>;\n show(projectId: string): Promise<Result<AgentDevKitErrorCode, ContextProject>>;\n update(input: UpdateContextProjectInput): Promise<Result<AgentDevKitErrorCode, ContextProject>>;\n}\n\nconst knowledgeBase = `# Project Knowledge Base\n\nThis file stores durable project knowledge promoted from sessions or written manually.\n`;\n\nfunction slugify(value: string): string {\n const slug = value\n .trim()\n .toLowerCase()\n .normalize(\"NFD\")\n .replaceAll(/[\\u0300-\\u036f]/g, \"\")\n .replaceAll(/[^a-z0-9]+/g, \"_\")\n .replaceAll(/^_+|_+$/g, \"\");\n\n return slug.length > 0 ? slug : \"project\";\n}\n\nfunction includesQuery(project: ContextProject, query: string): boolean {\n const normalized = query.trim().toLowerCase();\n const haystack = [\n project.name,\n project.path,\n project.description,\n project.status,\n ...project.tags,\n ]\n .filter(Boolean)\n .join(\" \")\n .toLowerCase();\n\n return haystack.includes(normalized);\n}\n\nexport class ContextProjectsRepository implements ContextProjectsRepositoryPort {\n readonly repositoryId = \"context.projects.repository\";\n readonly #clock: () => Date;\n readonly #dataStore: AgentDataStore;\n\n constructor(options: ContextProjectsRepositoryOptions = {}) {\n this.#clock = options.clock ?? (() => new Date());\n this.#dataStore = options.dataStore ?? new LocalAgentDataStore();\n }\n\n async archive(projectId: string): Promise<Result<AgentDevKitErrorCode, ContextProject>> {\n return this.#setStatus(projectId, \"archived\");\n }\n\n async create(\n input: CreateContextProjectInput,\n ): Promise<Result<AgentDevKitErrorCode, ContextProject>> {\n const id = await this.#uniqueProjectId(input.name);\n const now = this.#now();\n const project: ContextProject = {\n schema: \"agent-devkit.context-project/v1\",\n createdAt: now,\n description: input.description,\n id,\n metadata: input.metadata ?? {},\n name: input.name,\n path: input.path,\n status: \"active\",\n tags: input.tags ?? [],\n updatedAt: now,\n };\n\n const save = await this.#saveProject(project);\n\n if (save.isErr()) {\n return Result.fail(save.unwrapError());\n }\n\n const bootstrap = await this.#bootstrapProject(project.id);\n\n if (bootstrap.isErr()) {\n return Result.fail(bootstrap.unwrapError());\n }\n\n return Result.ok(project);\n }\n\n async delete(projectId: string, hard = false): Promise<Result<AgentDevKitErrorCode, boolean>> {\n if (hard) {\n const remove = await this.#dataStore.remove(this.#projectDirectory(projectId));\n return remove.isOk() ? Result.ok(true) : Result.fail(remove.unwrapError());\n }\n\n const project = await this.#setStatus(projectId, \"deleted\");\n return project.isOk() ? Result.ok(true) : Result.fail(project.unwrapError());\n }\n\n async list(\n input: ListContextProjectsInput = {},\n ): Promise<Result<AgentDevKitErrorCode, ContextProject[]>> {\n const projectsDirectory = { namespace: \"context\" as const, segments: [\"projects\"] };\n const exists = await this.#dataStore.exists(projectsDirectory);\n\n if (exists.isErr()) {\n return Result.fail(exists.unwrapError());\n }\n\n if (!exists.unwrap()) {\n return Result.ok([]);\n }\n\n const entries = await this.#dataStore.list(projectsDirectory);\n\n if (entries.isErr()) {\n return Result.fail(entries.unwrapError());\n }\n\n const projects: ContextProject[] = [];\n\n for (const entry of entries.unwrap().filter((candidate) => candidate.kind === \"directory\")) {\n const project = await this.#readProject(entry.name);\n\n if (project.isErr()) {\n return Result.fail(project.unwrapError());\n }\n\n projects.push(project.unwrap());\n }\n\n const status = input.status ?? \"active\";\n const query = input.query?.trim();\n\n return Result.ok(\n projects\n .filter((project) => status === \"all\" || project.status === status)\n .filter(\n (project) => query === undefined || query.length === 0 || includesQuery(project, query),\n )\n .sort((left, right) => right.updatedAt.localeCompare(left.updatedAt)),\n );\n }\n\n async show(projectId: string): Promise<Result<AgentDevKitErrorCode, ContextProject>> {\n return this.#readProject(projectId);\n }\n\n async update(\n input: UpdateContextProjectInput,\n ): Promise<Result<AgentDevKitErrorCode, ContextProject>> {\n const current = await this.#readProject(input.projectId);\n\n if (current.isErr()) {\n return Result.fail(current.unwrapError());\n }\n\n const updated: ContextProject = {\n ...current.unwrap(),\n description: input.description ?? current.unwrap().description,\n metadata: input.metadata ?? current.unwrap().metadata,\n name: input.name ?? current.unwrap().name,\n path: input.path ?? current.unwrap().path,\n tags: input.tags ?? current.unwrap().tags,\n updatedAt: this.#now(),\n };\n const save = await this.#saveProject(updated);\n\n return save.isOk() ? Result.ok(updated) : Result.fail(save.unwrapError());\n }\n\n async #bootstrapProject(projectId: string): Promise<Result<AgentDevKitErrorCode, void>> {\n const writes = [\n this.#dataStore.writeText(\n { namespace: \"context\", segments: [\"projects\", projectId, \"knowledge\", \"base.md\"] },\n knowledgeBase,\n ),\n this.#dataStore.writeJson(\n { namespace: \"context\", segments: [\"projects\", projectId, \"knowledge\", \"index.json\"] },\n { schema: \"agent-devkit.context-knowledge-index/v1\", projectId, entries: [] },\n ),\n this.#dataStore.writeText(\n { namespace: \"context\", segments: [\"projects\", projectId, \"knowledge\", \"facts.jsonl\"] },\n \"\",\n ),\n this.#dataStore.writeText(\n {\n namespace: \"context\",\n segments: [\"projects\", projectId, \"knowledge\", \"decisions.jsonl\"],\n },\n \"\",\n ),\n this.#dataStore.writeText(\n {\n namespace: \"context\",\n segments: [\"projects\", projectId, \"knowledge\", \"preferences.jsonl\"],\n },\n \"\",\n ),\n this.#dataStore.writeText(\n {\n namespace: \"context\",\n segments: [\"projects\", projectId, \"knowledge\", \"references.jsonl\"],\n },\n \"\",\n ),\n this.#dataStore.writeText(\n { namespace: \"context\", segments: [\"projects\", projectId, \"sessions\", \".keep\"] },\n \"\",\n ),\n ];\n\n for (const write of await Promise.all(writes)) {\n if (write.isErr()) {\n return Result.fail(write.unwrapError());\n }\n }\n\n return Result.ok(undefined);\n }\n\n #index(project: ContextProject) {\n return ContextProjectIndexSchema.parse({\n schema: \"agent-devkit.context-project-index/v1\",\n description: project.description,\n id: project.id,\n name: project.name,\n path: project.path,\n status: project.status,\n tags: project.tags,\n updatedAt: project.updatedAt,\n });\n }\n\n async #readProject(projectId: string): Promise<Result<AgentDevKitErrorCode, ContextProject>> {\n const payload = await this.#dataStore.readJson<unknown>({\n namespace: \"context\",\n segments: [\"projects\", projectId, \"project.json\"],\n });\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n const parsed = ContextProjectSchema.safeParse(payload.unwrap());\n return parsed.success ? Result.ok(parsed.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n\n async #saveProject(project: ContextProject): Promise<Result<AgentDevKitErrorCode, void>> {\n const projectWrite = await this.#dataStore.writeJson(\n { namespace: \"context\", segments: [\"projects\", project.id, \"project.json\"] },\n project,\n );\n\n if (projectWrite.isErr()) {\n return Result.fail(projectWrite.unwrapError());\n }\n\n return this.#dataStore.writeJson(\n { namespace: \"context\", segments: [\"projects\", project.id, \"index.json\"] },\n this.#index(project),\n );\n }\n\n async #setStatus(\n projectId: string,\n status: ContextProjectStatus,\n ): Promise<Result<AgentDevKitErrorCode, ContextProject>> {\n const current = await this.#readProject(projectId);\n\n if (current.isErr()) {\n return Result.fail(current.unwrapError());\n }\n\n const updated: ContextProject = { ...current.unwrap(), status, updatedAt: this.#now() };\n const save = await this.#saveProject(updated);\n\n return save.isOk() ? Result.ok(updated) : Result.fail(save.unwrapError());\n }\n\n async #uniqueProjectId(name: string): Promise<string> {\n const base = `proj_${slugify(name)}`;\n let candidate = base;\n let index = 2;\n\n while ((await this.#dataStore.exists(this.#projectDirectory(candidate))).unwrap()) {\n candidate = `${base}_${index}`;\n index += 1;\n }\n\n return candidate;\n }\n\n #now(): string {\n return this.#clock().toISOString();\n }\n\n #projectDirectory(projectId: string): AgentDataPath {\n return { namespace: \"context\", segments: [\"projects\", projectId] };\n }\n}\n","import {\n BaseCapabilityService,\n type CapabilityApproval,\n type CapabilityEffect,\n type CapabilityInvocationContext,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type ContextProjectsOptions,\n ContextProjectsOptionsSchema,\n type ContextProjectsResult,\n ContextProjectsResultSchema,\n} from \"./projects.entities\";\nimport type { ContextProjectsRepositoryPort } from \"./projects.repository\";\n\ntype ContextProjectsServiceDependencies = {\n repository: ContextProjectsRepositoryPort;\n};\n\nexport const contextProjectsCapabilityConfig = defineCapabilityConfig({\n id: \"context.projects\",\n moduleId: \"context\",\n name: \"Context Projects\",\n description: \"Create, list and manage Agent DevKit context projects.\",\n kind: \"deterministic\",\n risk: \"writes-global-state\",\n} as const);\n\nexport class ContextProjectsService extends BaseCapabilityService<\n typeof contextProjectsCapabilityConfig,\n ContextProjectsServiceDependencies,\n ContextProjectsOptions,\n ContextProjectsResult\n> {\n readonly inputSchema = ContextProjectsOptionsSchema;\n readonly outputSchema = ContextProjectsResultSchema;\n readonly #repository: ContextProjectsRepositoryPort;\n\n constructor(dependencies: ContextProjectsServiceDependencies) {\n super(contextProjectsCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: ContextProjectsOptions,\n ): Promise<Result<AgentDevKitErrorCode, ContextProjectsResult>> {\n const parsed = this.inputSchema.safeParse(options);\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const input = parsed.data;\n\n if (input.action === \"list\") {\n return (await this.#repository.list(input)).map((projects) => ({\n action: \"list\",\n projects,\n }));\n }\n\n if (input.action === \"create\") {\n return (await this.#repository.create(input)).map((project) => ({\n action: \"create\",\n project,\n }));\n }\n\n if (input.action === \"show\") {\n return (await this.#repository.show(input.projectId)).map((project) => ({\n action: \"show\",\n project,\n }));\n }\n\n if (input.action === \"update\") {\n return (await this.#repository.update(input)).map((project) => ({\n action: \"update\",\n project,\n }));\n }\n\n if (input.action === \"archive\") {\n return (await this.#repository.archive(input.projectId)).map((project) => ({\n action: \"archive\",\n project,\n }));\n }\n\n return (await this.#repository.delete(input.projectId, input.hard)).map((removed) => ({\n action: \"delete\",\n hard: input.hard === true,\n projectId: input.projectId,\n removed,\n }));\n }\n\n invoke(\n input: ContextProjectsOptions,\n _context: CapabilityInvocationContext,\n ): Promise<Result<AgentDevKitErrorCode, ContextProjectsResult>> {\n return this.execute(input);\n }\n\n override approvalForInput(input: ContextProjectsOptions): CapabilityApproval {\n if (input.action === \"list\" || input.action === \"show\") {\n return { reason: \"Context project read action.\", required: false };\n }\n\n if (input.action === \"delete\" && input.hard === true) {\n return {\n reason: \"Context project hard delete removes durable state.\",\n required: true,\n };\n }\n\n return {\n reason: \"Context project action writes global state.\",\n required: true,\n };\n }\n\n override effectsForInput(input: ContextProjectsOptions): CapabilityEffect[] {\n if (input.action === \"list\" || input.action === \"show\") {\n return [{ operation: \"read\", scope: \"none\" }];\n }\n\n if (input.action === \"delete\" && input.hard === true) {\n return [{ operation: \"delete\", scope: \"global\" }];\n }\n\n return [{ operation: \"write\", scope: \"global\" }];\n }\n}\n","import { z } from \"zod\";\n\nexport const ContextSessionStatusSchema = z.enum([\"active\", \"archived\", \"deleted\"]);\nexport type ContextSessionStatus = z.infer<typeof ContextSessionStatusSchema>;\n\nexport const ContextSessionOriginSchema = z.enum([\"cli\", \"tui\", \"mcp\", \"agent\"]);\nexport type ContextSessionOrigin = z.infer<typeof ContextSessionOriginSchema>;\n\nexport const ContextMessageRoleSchema = z.enum([\"user\", \"assistant\", \"system\", \"tool\"]);\nexport type ContextMessageRole = z.infer<typeof ContextMessageRoleSchema>;\n\nexport const ContextMessageKindSchema = z.enum([\n \"message\",\n \"event\",\n \"tool-call\",\n \"tool-result\",\n \"summary\",\n]);\nexport type ContextMessageKind = z.infer<typeof ContextMessageKindSchema>;\n\nexport const ContextSessionSchema = z.object({\n schema: z.literal(\"agent-devkit.context-session/v1\"),\n createdAt: z.string().datetime(),\n id: z.string().min(1),\n lastMessageAt: z.string().datetime().optional(),\n metadata: z.record(z.string(), z.unknown()).default({}),\n origin: ContextSessionOriginSchema,\n projectId: z.string().min(1).optional(),\n status: ContextSessionStatusSchema,\n tags: z.array(z.string().min(1).max(80)).default([]),\n title: z.string().min(1).max(160),\n updatedAt: z.string().datetime(),\n});\n\nexport type ContextSession = z.infer<typeof ContextSessionSchema>;\n\nexport const ContextMessageSchema = z.object({\n schema: z.literal(\"agent-devkit.context-message/v1\"),\n content: z.string(),\n createdAt: z.string().datetime(),\n id: z.string().min(1),\n kind: ContextMessageKindSchema,\n metadata: z.record(z.string(), z.unknown()).default({}),\n role: ContextMessageRoleSchema,\n sessionId: z.string().min(1),\n});\n\nexport type ContextMessage = z.infer<typeof ContextMessageSchema>;\n\nexport const ContextSessionIndexSchema = z.object({\n schema: z.literal(\"agent-devkit.context-session-index/v1\"),\n createdAt: z.string().datetime(),\n keywords: z.array(z.string()),\n lastMessageAt: z.string().datetime().optional(),\n messageCount: z.number().int().nonnegative(),\n preview: z.string(),\n projectId: z.string().min(1).optional(),\n sessionId: z.string().min(1),\n status: ContextSessionStatusSchema,\n title: z.string().min(1),\n updatedAt: z.string().datetime(),\n});\n\nexport type ContextSessionIndex = z.infer<typeof ContextSessionIndexSchema>;\n\nexport type ContextSessionSearchResult = ContextSessionIndex & {\n score: number;\n};\n\nexport const ContextSessionsOptionsSchema = z.discriminatedUnion(\"action\", [\n z\n .object({\n action: z.literal(\"list\"),\n limit: z.number().int().nonnegative().optional(),\n projectId: z.string().min(1).optional(),\n query: z.string().min(1).optional(),\n status: z.enum([\"active\", \"archived\", \"deleted\", \"all\"]).optional(),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"create\"),\n metadata: z.record(z.string(), z.unknown()).optional(),\n origin: ContextSessionOriginSchema,\n projectId: z.string().min(1).optional(),\n tags: z.array(z.string().min(1).max(80)).optional(),\n title: z.string().min(1).max(160).optional(),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"append-message\"),\n content: z.string(),\n kind: ContextMessageKindSchema.optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n role: ContextMessageRoleSchema,\n sessionId: z.string().min(1),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"show\"),\n includeMessages: z.boolean().optional(),\n limit: z.number().int().nonnegative().optional(),\n sessionId: z.string().min(1),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"search\"),\n limit: z.number().int().nonnegative().optional(),\n projectId: z.string().min(1).optional(),\n query: z.string().min(1),\n })\n .strict(),\n z.object({ action: z.literal(\"resume\"), sessionId: z.string().min(1) }).strict(),\n z.object({ action: z.literal(\"archive\"), sessionId: z.string().min(1) }).strict(),\n z\n .object({\n action: z.literal(\"delete\"),\n hard: z.boolean().optional(),\n sessionId: z.string().min(1),\n })\n .strict(),\n]);\n\nexport type ContextSessionsOptions = z.infer<typeof ContextSessionsOptionsSchema>;\n\nexport type ContextSessionsListResult = {\n action: \"list\";\n sessions: ContextSessionIndex[];\n};\n\nexport type ContextSessionsCreateResult = {\n action: \"create\";\n session: ContextSession;\n};\n\nexport type ContextSessionsAppendMessageResult = {\n action: \"append-message\";\n index: ContextSessionIndex;\n message: ContextMessage;\n session: ContextSession;\n};\n\nexport type ContextSessionsShowResult = {\n action: \"show\";\n index: ContextSessionIndex;\n messages?: ContextMessage[];\n session: ContextSession;\n};\n\nexport type ContextSessionsSearchResult = {\n action: \"search\";\n query: string;\n results: ContextSessionSearchResult[];\n};\n\nexport type ContextSessionsResumeResult = {\n action: \"resume\";\n index: ContextSessionIndex;\n messages: ContextMessage[];\n session: ContextSession;\n};\n\nexport type ContextSessionsArchiveResult = {\n action: \"archive\";\n index: ContextSessionIndex;\n session: ContextSession;\n};\n\nexport type ContextSessionsDeleteResult = {\n action: \"delete\";\n hard: boolean;\n removed: boolean;\n sessionId: string;\n};\n\nexport type ContextSessionsResult =\n | ContextSessionsAppendMessageResult\n | ContextSessionsArchiveResult\n | ContextSessionsCreateResult\n | ContextSessionsDeleteResult\n | ContextSessionsListResult\n | ContextSessionsResumeResult\n | ContextSessionsSearchResult\n | ContextSessionsShowResult;\n\nexport const ContextSessionIndexOutputSchema = ContextSessionIndexSchema;\nexport const ContextMessageOutputSchema = ContextMessageSchema;\nexport const ContextSessionSearchResultSchema = ContextSessionIndexSchema.extend({\n score: z.number().nonnegative(),\n});\n\nexport const ContextSessionsResultSchema = z.discriminatedUnion(\"action\", [\n z.object({\n action: z.literal(\"list\"),\n sessions: z.array(ContextSessionIndexOutputSchema),\n }),\n z.object({\n action: z.literal(\"create\"),\n session: ContextSessionSchema,\n }),\n z.object({\n action: z.literal(\"append-message\"),\n index: ContextSessionIndexOutputSchema,\n message: ContextMessageOutputSchema,\n session: ContextSessionSchema,\n }),\n z.object({\n action: z.literal(\"show\"),\n index: ContextSessionIndexOutputSchema,\n messages: z.array(ContextMessageOutputSchema).optional(),\n session: ContextSessionSchema,\n }),\n z.object({\n action: z.literal(\"search\"),\n query: z.string(),\n results: z.array(ContextSessionSearchResultSchema),\n }),\n z.object({\n action: z.literal(\"resume\"),\n index: ContextSessionIndexOutputSchema,\n messages: z.array(ContextMessageOutputSchema),\n session: ContextSessionSchema,\n }),\n z.object({\n action: z.literal(\"archive\"),\n index: ContextSessionIndexOutputSchema,\n session: ContextSessionSchema,\n }),\n z.object({\n action: z.literal(\"delete\"),\n hard: z.boolean(),\n removed: z.boolean(),\n sessionId: z.string().min(1),\n }),\n]);\n","import type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport type { AgentDataPath, AgentDataStore } from \"../../../../infra/bases/data_store\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport { LocalAgentDataStore } from \"../../../../infra/data\";\nimport { ContextProjectSchema } from \"../projects/projects.entities\";\nimport {\n type ContextMessage,\n type ContextMessageKind,\n type ContextMessageRole,\n ContextMessageSchema,\n type ContextSession,\n type ContextSessionIndex,\n ContextSessionIndexSchema,\n ContextSessionSchema,\n type ContextSessionSearchResult,\n type ContextSessionStatus,\n} from \"./sessions.entities\";\n\nexport type ContextSessionsRepositoryOptions = {\n clock?: () => Date;\n dataStore?: AgentDataStore;\n idFactory?: () => string;\n messageIdFactory?: () => string;\n};\n\nexport type CreateContextSessionInput = {\n metadata?: Record<string, unknown>;\n origin: ContextSession[\"origin\"];\n projectId?: string;\n tags?: string[];\n title?: string;\n};\n\nexport type AppendContextMessageInput = {\n content: string;\n kind?: ContextMessageKind;\n metadata?: Record<string, unknown>;\n role: ContextMessageRole;\n sessionId: string;\n};\n\nexport type ListContextSessionsInput = {\n limit?: number;\n projectId?: string;\n query?: string;\n status?: ContextSessionStatus | \"all\";\n};\n\nexport type ShowContextSessionInput = {\n includeMessages?: boolean;\n limit?: number;\n sessionId: string;\n};\n\nexport type SearchContextSessionsInput = {\n limit?: number;\n projectId?: string;\n query: string;\n};\n\nexport type ContextSessionDetails = {\n index: ContextSessionIndex;\n messages?: ContextMessage[];\n session: ContextSession;\n};\n\nexport interface ContextSessionsRepositoryPort extends CapabilityRepositoryPort {\n appendMessage(\n input: AppendContextMessageInput,\n ): Promise<\n Result<\n AgentDevKitErrorCode,\n { index: ContextSessionIndex; message: ContextMessage; session: ContextSession }\n >\n >;\n archive(sessionId: string): Promise<Result<AgentDevKitErrorCode, ContextSessionDetails>>;\n create(input: CreateContextSessionInput): Promise<Result<AgentDevKitErrorCode, ContextSession>>;\n delete(sessionId: string, hard?: boolean): Promise<Result<AgentDevKitErrorCode, boolean>>;\n list(\n input?: ListContextSessionsInput,\n ): Promise<Result<AgentDevKitErrorCode, ContextSessionIndex[]>>;\n resume(sessionId: string): Promise<Result<AgentDevKitErrorCode, ContextSessionDetails>>;\n search(\n input: SearchContextSessionsInput,\n ): Promise<Result<AgentDevKitErrorCode, ContextSessionSearchResult[]>>;\n show(\n input: ShowContextSessionInput,\n ): Promise<Result<AgentDevKitErrorCode, ContextSessionDetails>>;\n}\n\nconst stopwords = new Set([\n \"a\",\n \"as\",\n \"com\",\n \"da\",\n \"de\",\n \"do\",\n \"e\",\n \"for\",\n \"in\",\n \"of\",\n \"o\",\n \"os\",\n \"para\",\n \"the\",\n \"to\",\n \"um\",\n \"uma\",\n]);\n\nfunction compactWhitespace(value: string): string {\n return value.replaceAll(/\\s+/g, \" \").trim();\n}\n\nfunction generateId(prefix: string): string {\n return `${prefix}_${crypto.randomUUID().replaceAll(\"-\", \"\").slice(0, 26)}`;\n}\n\nfunction keywordsFor(values: string[], max = 12): string[] {\n const counts = new Map<string, number>();\n\n for (const token of values\n .join(\" \")\n .toLowerCase()\n .normalize(\"NFD\")\n .replaceAll(/[\\u0300-\\u036f]/g, \"\")\n .split(/[^a-z0-9]+/g)\n .filter((candidate) => candidate.length > 3 && !stopwords.has(candidate))) {\n counts.set(token, (counts.get(token) ?? 0) + 1);\n }\n\n return [...counts.entries()]\n .sort((left, right) => right[1] - left[1] || left[0].localeCompare(right[0]))\n .slice(0, max)\n .map(([token]) => token);\n}\n\nfunction scoreText(haystack: string, query: string): number {\n const normalizedHaystack = haystack.toLowerCase();\n const normalizedQuery = query.toLowerCase();\n let score = 0;\n let index = normalizedHaystack.indexOf(normalizedQuery);\n\n while (index >= 0) {\n score += 1;\n index = normalizedHaystack.indexOf(normalizedQuery, index + normalizedQuery.length);\n }\n\n return score;\n}\n\nexport class ContextSessionsRepository implements ContextSessionsRepositoryPort {\n readonly repositoryId = \"context.sessions.repository\";\n readonly #clock: () => Date;\n readonly #dataStore: AgentDataStore;\n readonly #idFactory: () => string;\n readonly #messageIdFactory: () => string;\n\n constructor(options: ContextSessionsRepositoryOptions = {}) {\n this.#clock = options.clock ?? (() => new Date());\n this.#dataStore = options.dataStore ?? new LocalAgentDataStore();\n this.#idFactory = options.idFactory ?? (() => generateId(\"ses\"));\n this.#messageIdFactory = options.messageIdFactory ?? (() => generateId(\"msg\"));\n }\n\n async appendMessage(\n input: AppendContextMessageInput,\n ): Promise<\n Result<\n AgentDevKitErrorCode,\n { index: ContextSessionIndex; message: ContextMessage; session: ContextSession }\n >\n > {\n const current = await this.#readSessionById(input.sessionId);\n\n if (current.isErr()) {\n return Result.fail(current.unwrapError());\n }\n\n const { session } = current.unwrap();\n const now = this.#now();\n const message: ContextMessage = {\n schema: \"agent-devkit.context-message/v1\",\n content: input.content,\n createdAt: now,\n id: this.#messageIdFactory(),\n kind: input.kind ?? \"message\",\n metadata: input.metadata ?? {},\n role: input.role,\n sessionId: input.sessionId,\n };\n const parsedMessage = ContextMessageSchema.safeParse(message);\n\n if (!parsedMessage.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const nextSession: ContextSession = {\n ...session,\n lastMessageAt: now,\n title:\n session.title === \"Untitled session\" && message.role === \"user\"\n ? compactWhitespace(message.content).slice(0, 80) || session.title\n : session.title,\n updatedAt: now,\n };\n const parsedSession = ContextSessionSchema.safeParse(nextSession);\n\n if (!parsedSession.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const writeMessage = await this.#dataStore.appendJsonl(\n this.#sessionPath(parsedSession.data, \"messages.jsonl\"),\n parsedMessage.data,\n );\n\n if (writeMessage.isErr()) {\n return Result.fail(writeMessage.unwrapError());\n }\n\n const messages = await this.#readMessages(parsedSession.data);\n\n if (messages.isErr()) {\n return Result.fail(messages.unwrapError());\n }\n\n const save = await this.#saveSession(parsedSession.data, messages.unwrap());\n\n if (save.isErr()) {\n return Result.fail(save.unwrapError());\n }\n\n return Result.ok({\n index: this.#index(nextSession, messages.unwrap()),\n message: parsedMessage.data,\n session: parsedSession.data,\n });\n }\n\n async archive(sessionId: string): Promise<Result<AgentDevKitErrorCode, ContextSessionDetails>> {\n const updated = await this.#setStatus(sessionId, \"archived\");\n\n if (updated.isErr()) {\n return Result.fail(updated.unwrapError());\n }\n\n return this.show({ includeMessages: false, sessionId });\n }\n\n async create(\n input: CreateContextSessionInput,\n ): Promise<Result<AgentDevKitErrorCode, ContextSession>> {\n if (input.projectId !== undefined) {\n const project = await this.#validateProjectExists(input.projectId);\n\n if (project.isErr()) {\n return Result.fail(project.unwrapError());\n }\n }\n\n const now = this.#now();\n const session: ContextSession = {\n schema: \"agent-devkit.context-session/v1\",\n createdAt: now,\n id: this.#idFactory(),\n metadata: input.metadata ?? {},\n origin: input.origin,\n projectId: input.projectId,\n status: \"active\",\n tags: input.tags ?? [],\n title: input.title ?? \"Untitled session\",\n updatedAt: now,\n };\n const parsedSession = ContextSessionSchema.safeParse(session);\n\n if (!parsedSession.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const save = await this.#saveSession(parsedSession.data, []);\n\n return save.isOk() ? Result.ok(parsedSession.data) : Result.fail(save.unwrapError());\n }\n\n async delete(sessionId: string, hard = false): Promise<Result<AgentDevKitErrorCode, boolean>> {\n const current = await this.#readSessionById(sessionId);\n\n if (current.isErr()) {\n return Result.fail(current.unwrapError());\n }\n\n if (hard) {\n const remove = await this.#dataStore.remove(this.#sessionDirectory(current.unwrap().session));\n return remove.isOk() ? Result.ok(true) : Result.fail(remove.unwrapError());\n }\n\n const updated = await this.#setStatus(sessionId, \"deleted\");\n return updated.isOk() ? Result.ok(true) : Result.fail(updated.unwrapError());\n }\n\n async list(\n input: ListContextSessionsInput = {},\n ): Promise<Result<AgentDevKitErrorCode, ContextSessionIndex[]>> {\n const entries = await this.#allSessionReferences(input.projectId);\n\n if (entries.isErr()) {\n return Result.fail(entries.unwrapError());\n }\n\n const status = input.status ?? \"active\";\n const query = input.query?.trim();\n const indexes: ContextSessionIndex[] = [];\n\n for (const session of entries.unwrap()) {\n const index = await this.#readIndex(session);\n\n if (index.isErr()) {\n return Result.fail(index.unwrapError());\n }\n\n indexes.push(index.unwrap());\n }\n\n return Result.ok(\n indexes\n .filter((index) => status === \"all\" || index.status === status)\n .filter((index) => query === undefined || this.#indexMatches(index, query))\n .sort((left, right) => right.updatedAt.localeCompare(left.updatedAt))\n .slice(0, input.limit ?? 20),\n );\n }\n\n async resume(sessionId: string): Promise<Result<AgentDevKitErrorCode, ContextSessionDetails>> {\n const current = await this.#readSessionById(sessionId);\n\n if (current.isErr()) {\n return Result.fail(current.unwrapError());\n }\n\n if (current.unwrap().session.status !== \"active\") {\n const updated = await this.#setStatus(sessionId, \"active\");\n\n if (updated.isErr()) {\n return Result.fail(updated.unwrapError());\n }\n }\n\n return this.show({ includeMessages: true, limit: 20, sessionId });\n }\n\n async search(\n input: SearchContextSessionsInput,\n ): Promise<Result<AgentDevKitErrorCode, ContextSessionSearchResult[]>> {\n const entries = await this.#allSessionReferences(input.projectId);\n\n if (entries.isErr()) {\n return Result.fail(entries.unwrapError());\n }\n\n const results: ContextSessionSearchResult[] = [];\n\n for (const reference of entries.unwrap()) {\n const index = await this.#readIndex(reference);\n const messages = await this.#readMessages(reference.session);\n\n if (index.isErr()) {\n return Result.fail(index.unwrapError());\n }\n\n if (messages.isErr()) {\n return Result.fail(messages.unwrapError());\n }\n\n const haystack = [\n index.unwrap().title,\n index.unwrap().preview,\n index.unwrap().keywords.join(\" \"),\n ...messages.unwrap().map((message) => message.content),\n ].join(\" \");\n const score = scoreText(haystack, input.query);\n\n if (score > 0 && index.unwrap().status !== \"deleted\") {\n results.push({ ...index.unwrap(), score });\n }\n }\n\n return Result.ok(\n results\n .sort(\n (left, right) =>\n right.score - left.score || right.updatedAt.localeCompare(left.updatedAt),\n )\n .slice(0, input.limit ?? 20),\n );\n }\n\n async show(\n input: ShowContextSessionInput,\n ): Promise<Result<AgentDevKitErrorCode, ContextSessionDetails>> {\n const current = await this.#readSessionById(input.sessionId);\n\n if (current.isErr()) {\n return Result.fail(current.unwrapError());\n }\n\n const index = await this.#readIndex(current.unwrap());\n\n if (index.isErr()) {\n return Result.fail(index.unwrapError());\n }\n\n if (input.includeMessages !== true) {\n return Result.ok({ index: index.unwrap(), session: current.unwrap().session });\n }\n\n const messages = await this.#readMessages(current.unwrap().session);\n\n if (messages.isErr()) {\n return Result.fail(messages.unwrapError());\n }\n\n return Result.ok({\n index: index.unwrap(),\n messages: messages.unwrap().slice(-(input.limit ?? messages.unwrap().length)),\n session: current.unwrap().session,\n });\n }\n\n async #allSessionReferences(\n projectId?: string,\n ): Promise<Result<AgentDevKitErrorCode, Array<{ session: ContextSession }>>> {\n const references: Array<{ session: ContextSession }> = [];\n const roots =\n projectId === undefined ? await this.#sessionRoots() : [this.#projectSessionsRoot(projectId)];\n\n for (const root of roots) {\n const exists = await this.#dataStore.exists(root);\n\n if (exists.isErr()) {\n return Result.fail(exists.unwrapError());\n }\n\n if (!exists.unwrap()) {\n continue;\n }\n\n const entries = await this.#dataStore.list(root);\n\n if (entries.isErr()) {\n return Result.fail(entries.unwrapError());\n }\n\n for (const entry of entries.unwrap().filter((candidate) => candidate.kind === \"directory\")) {\n const session = await this.#readSessionAt({\n namespace: \"context\",\n segments: [...entry.path.segments, \"session.json\"],\n });\n\n if (session.isOk()) {\n references.push({ session: session.unwrap() });\n }\n }\n }\n\n return Result.ok(references);\n }\n\n async #readSessionById(\n sessionId: string,\n ): Promise<Result<AgentDevKitErrorCode, { session: ContextSession }>> {\n const references = await this.#allSessionReferences();\n\n if (references.isErr()) {\n return Result.fail(references.unwrapError());\n }\n\n const found = references.unwrap().find((reference) => reference.session.id === sessionId);\n\n return found === undefined ? Result.fail(ErrorCodes.InvalidInput) : Result.ok(found);\n }\n\n async #readSessionAt(path: AgentDataPath): Promise<Result<AgentDevKitErrorCode, ContextSession>> {\n const payload = await this.#dataStore.readJson<unknown>(path);\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n const parsed = ContextSessionSchema.safeParse(payload.unwrap());\n return parsed.success ? Result.ok(parsed.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n\n async #saveSession(\n session: ContextSession,\n messages: ContextMessage[],\n ): Promise<Result<AgentDevKitErrorCode, void>> {\n const sessionWrite = await this.#dataStore.writeJson(\n this.#sessionPath(session, \"session.json\"),\n session,\n );\n\n if (sessionWrite.isErr()) {\n return Result.fail(sessionWrite.unwrapError());\n }\n\n const indexWrite = await this.#dataStore.writeJson(\n this.#sessionPath(session, \"index.json\"),\n this.#index(session, messages),\n );\n\n if (indexWrite.isErr()) {\n return Result.fail(indexWrite.unwrapError());\n }\n\n return this.#dataStore.writeText(\n this.#sessionPath(session, \"summary.md\"),\n this.#summary(session, messages),\n );\n }\n\n async #setStatus(\n sessionId: string,\n status: ContextSessionStatus,\n ): Promise<Result<AgentDevKitErrorCode, ContextSession>> {\n const current = await this.#readSessionById(sessionId);\n\n if (current.isErr()) {\n return Result.fail(current.unwrapError());\n }\n\n const messages = await this.#readMessages(current.unwrap().session);\n\n if (messages.isErr()) {\n return Result.fail(messages.unwrapError());\n }\n\n const session: ContextSession = {\n ...current.unwrap().session,\n status,\n updatedAt: this.#now(),\n };\n const save = await this.#saveSession(session, messages.unwrap());\n\n return save.isOk() ? Result.ok(session) : Result.fail(save.unwrapError());\n }\n\n async #validateProjectExists(projectId: string): Promise<Result<AgentDevKitErrorCode, void>> {\n const path: AgentDataPath = {\n namespace: \"context\",\n segments: [\"projects\", projectId, \"project.json\"],\n };\n const exists = await this.#dataStore.exists(path);\n\n if (exists.isErr()) {\n return Result.fail(exists.unwrapError());\n }\n\n if (!exists.unwrap()) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const project = await this.#dataStore.readJson<unknown>(path);\n\n if (project.isErr()) {\n return Result.fail(project.unwrapError());\n }\n\n return ContextProjectSchema.safeParse(project.unwrap()).success\n ? Result.ok(undefined)\n : Result.fail(ErrorCodes.InvalidInput);\n }\n\n async #sessionRoots(): Promise<AgentDataPath[]> {\n const roots: AgentDataPath[] = [{ namespace: \"context\", segments: [\"sessions\"] }];\n const projectsRoot: AgentDataPath = { namespace: \"context\", segments: [\"projects\"] };\n const exists = await this.#dataStore.exists(projectsRoot);\n\n if (exists.isErr() || !exists.unwrap()) {\n return roots;\n }\n\n const projects = await this.#dataStore.list(projectsRoot);\n\n if (projects.isErr()) {\n return roots;\n }\n\n return [\n ...roots,\n ...projects\n .unwrap()\n .filter((entry) => entry.kind === \"directory\")\n .map((entry) => this.#projectSessionsRoot(entry.name)),\n ];\n }\n\n async #readIndex(reference: {\n session: ContextSession;\n }): Promise<Result<AgentDevKitErrorCode, ContextSessionIndex>> {\n const payload = await this.#dataStore.readJson<unknown>(\n this.#sessionPath(reference.session, \"index.json\"),\n );\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n const parsed = ContextSessionIndexSchema.safeParse(payload.unwrap());\n return parsed.success ? Result.ok(parsed.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n\n async #readMessages(\n session: ContextSession,\n ): Promise<Result<AgentDevKitErrorCode, ContextMessage[]>> {\n const path = this.#sessionPath(session, \"messages.jsonl\");\n const exists = await this.#dataStore.exists(path);\n\n if (exists.isErr()) {\n return Result.fail(exists.unwrapError());\n }\n\n if (!exists.unwrap()) {\n return Result.ok([]);\n }\n\n const messages = await this.#dataStore.readJsonl<unknown>(path);\n\n if (messages.isErr()) {\n return Result.fail(messages.unwrapError());\n }\n\n const parsed: ContextMessage[] = [];\n\n for (const message of messages.unwrap()) {\n const result = ContextMessageSchema.safeParse(message);\n\n if (!result.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n parsed.push(result.data);\n }\n\n return Result.ok(parsed);\n }\n\n #index(session: ContextSession, messages: ContextMessage[]): ContextSessionIndex {\n const preview = compactWhitespace(\n [...messages].reverse().find((message) => message.content.trim().length > 0)?.content ?? \"\",\n ).slice(0, 240);\n\n return ContextSessionIndexSchema.parse({\n schema: \"agent-devkit.context-session-index/v1\",\n createdAt: session.createdAt,\n keywords: keywordsFor([session.title, preview, session.tags.join(\" \")]),\n lastMessageAt: session.lastMessageAt,\n messageCount: messages.length,\n preview,\n projectId: session.projectId,\n sessionId: session.id,\n status: session.status,\n title: session.title,\n updatedAt: session.updatedAt,\n });\n }\n\n #indexMatches(index: ContextSessionIndex, query: string): boolean {\n return [index.title, index.preview, index.keywords.join(\" \")]\n .join(\" \")\n .toLowerCase()\n .includes(query.toLowerCase());\n }\n\n #summary(session: ContextSession, messages: ContextMessage[]): string {\n return [`# ${session.title}`, \"\", `Messages: ${messages.length}`, \"\"].join(\"\\n\");\n }\n\n #sessionDirectory(session: ContextSession): AgentDataPath {\n return session.projectId === undefined\n ? { namespace: \"context\", segments: [\"sessions\", session.id] }\n : {\n namespace: \"context\",\n segments: [\"projects\", session.projectId, \"sessions\", session.id],\n };\n }\n\n #sessionPath(session: ContextSession, fileName: string): AgentDataPath {\n return {\n ...this.#sessionDirectory(session),\n segments: [...this.#sessionDirectory(session).segments, fileName],\n };\n }\n\n #projectSessionsRoot(projectId: string): AgentDataPath {\n return { namespace: \"context\", segments: [\"projects\", projectId, \"sessions\"] };\n }\n\n #now(): string {\n return this.#clock().toISOString();\n }\n}\n","import {\n BaseCapabilityService,\n type CapabilityApproval,\n type CapabilityEffect,\n type CapabilityInvocationContext,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type ContextSessionsOptions,\n ContextSessionsOptionsSchema,\n type ContextSessionsResult,\n ContextSessionsResultSchema,\n} from \"./sessions.entities\";\nimport type { ContextSessionsRepositoryPort } from \"./sessions.repository\";\n\ntype ContextSessionsServiceDependencies = {\n repository: ContextSessionsRepositoryPort;\n};\n\nexport const contextSessionsCapabilityConfig = defineCapabilityConfig({\n id: \"context.sessions\",\n moduleId: \"context\",\n name: \"Context Sessions\",\n description: \"Create, search, resume and manage Agent DevKit context sessions.\",\n kind: \"deterministic\",\n risk: \"writes-global-state\",\n} as const);\n\nexport class ContextSessionsService extends BaseCapabilityService<\n typeof contextSessionsCapabilityConfig,\n ContextSessionsServiceDependencies,\n ContextSessionsOptions,\n ContextSessionsResult\n> {\n readonly inputSchema = ContextSessionsOptionsSchema;\n readonly outputSchema = ContextSessionsResultSchema;\n readonly #repository: ContextSessionsRepositoryPort;\n\n constructor(dependencies: ContextSessionsServiceDependencies) {\n super(contextSessionsCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: ContextSessionsOptions,\n ): Promise<Result<AgentDevKitErrorCode, ContextSessionsResult>> {\n const parsed = this.inputSchema.safeParse(options);\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const input = parsed.data;\n\n if (input.action === \"list\") {\n return (await this.#repository.list(input)).map((sessions) => ({\n action: \"list\",\n sessions,\n }));\n }\n\n if (input.action === \"create\") {\n return (await this.#repository.create(input)).map((session) => ({\n action: \"create\",\n session,\n }));\n }\n\n if (input.action === \"append-message\") {\n return (await this.#repository.appendMessage(input)).map((result) => ({\n action: \"append-message\",\n ...result,\n }));\n }\n\n if (input.action === \"show\") {\n return (await this.#repository.show(input)).map((result) => ({\n action: \"show\",\n ...result,\n }));\n }\n\n if (input.action === \"search\") {\n return (await this.#repository.search(input)).map((results) => ({\n action: \"search\",\n query: input.query,\n results,\n }));\n }\n\n if (input.action === \"resume\") {\n return (await this.#repository.resume(input.sessionId)).map((result) => ({\n action: \"resume\",\n index: result.index,\n messages: result.messages ?? [],\n session: result.session,\n }));\n }\n\n if (input.action === \"archive\") {\n return (await this.#repository.archive(input.sessionId)).map((result) => ({\n action: \"archive\",\n index: result.index,\n session: result.session,\n }));\n }\n\n return (await this.#repository.delete(input.sessionId, input.hard)).map((removed) => ({\n action: \"delete\",\n hard: input.hard === true,\n removed,\n sessionId: input.sessionId,\n }));\n }\n\n invoke(\n input: ContextSessionsOptions,\n _context: CapabilityInvocationContext,\n ): Promise<Result<AgentDevKitErrorCode, ContextSessionsResult>> {\n return this.execute(input);\n }\n\n override approvalForInput(input: ContextSessionsOptions): CapabilityApproval {\n if (input.action === \"delete\" && input.hard === true) {\n return {\n reason: \"Context session hard delete removes durable memory.\",\n required: true,\n };\n }\n\n return { reason: \"Context session action is safe for local memory.\", required: false };\n }\n\n override effectsForInput(input: ContextSessionsOptions): CapabilityEffect[] {\n if (input.action === \"list\" || input.action === \"show\" || input.action === \"search\") {\n return [{ operation: \"read\", scope: \"none\" }];\n }\n\n if (input.action === \"delete\" && input.hard === true) {\n return [{ operation: \"delete\", scope: \"global\" }];\n }\n\n return [{ operation: \"write\", scope: \"global\" }];\n }\n}\n","import { defineModuleConfig } from \"../../infra/bases/module\";\nimport { contextProjectsCapabilityConfig } from \"./capabilities/projects/projects.service\";\nimport { contextSessionsCapabilityConfig } from \"./capabilities/sessions/sessions.service\";\n\nexport const contextModuleConfig = defineModuleConfig({\n id: \"context\",\n name: \"Context\",\n description: \"Agent DevKit projects, sessions and durable context foundations.\",\n capabilities: [contextProjectsCapabilityConfig.id, contextSessionsCapabilityConfig.id],\n tests: {\n include: [\n \"src/modules/context/context.surface.test.ts\",\n \"src/modules/context/capabilities/**/*.test.ts\",\n ],\n },\n} as const);\n","import { defineModuleBinding, ModuleBinder, type ModuleBinding } from \"../../infra/bases/bind\";\nimport type { AgentDataStore } from \"../../infra/bases/data_store\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport { LocalAgentDataStore } from \"../../infra/data\";\nimport {\n ContextProjectsRepository,\n type ContextProjectsRepositoryPort,\n} from \"./capabilities/projects/projects.repository\";\nimport { ContextProjectsService } from \"./capabilities/projects/projects.service\";\nimport {\n ContextSessionsRepository,\n type ContextSessionsRepositoryPort,\n} from \"./capabilities/sessions/sessions.repository\";\nimport { ContextSessionsService } from \"./capabilities/sessions/sessions.service\";\nimport { contextModuleConfig } from \"./context.config\";\n\nexport type ContextModuleBindOptions = {\n dataStore?: AgentDataStore;\n homeDirectory?: string;\n};\n\nexport type ContextModuleCapabilities = {\n projects: ContextProjectsService;\n sessions: ContextSessionsService;\n};\n\nexport type ContextModuleBinding = ModuleBinding<\n typeof contextModuleConfig,\n ContextModuleCapabilities\n>;\n\ntype ContextModuleBinderDependencies = {\n projectsRepository: (options: ContextModuleBindOptions) => ContextProjectsRepositoryPort;\n sessionsRepository: (options: ContextModuleBindOptions) => ContextSessionsRepositoryPort;\n};\n\nconst defaultDependencies: ContextModuleBinderDependencies = {\n projectsRepository: (options) => new ContextProjectsRepository(normalizeOptions(options)),\n sessionsRepository: (options) => new ContextSessionsRepository(normalizeOptions(options)),\n};\n\nfunction normalizeOptions(options: ContextModuleBindOptions): ContextModuleBindOptions {\n if (options.dataStore !== undefined || options.homeDirectory === undefined) {\n return options;\n }\n\n return {\n ...options,\n dataStore: new LocalAgentDataStore({\n rootDirectory: `${options.homeDirectory}/.agent-devkit/data`,\n }),\n };\n}\n\nexport class ContextModuleBinder extends ModuleBinder<\n ContextModuleBindOptions,\n typeof contextModuleConfig,\n ContextModuleCapabilities\n> {\n readonly #dependencies: ContextModuleBinderDependencies;\n\n constructor(dependencies: ContextModuleBinderDependencies = defaultDependencies) {\n super();\n this.#dependencies = dependencies;\n }\n\n override bind(\n options: ContextModuleBindOptions = {},\n ): Result<AgentDevKitErrorCode, ContextModuleBinding> {\n return defineModuleBinding({\n config: contextModuleConfig,\n capabilities: {\n projects: new ContextProjectsService({\n repository: this.#dependencies.projectsRepository(options),\n }),\n sessions: new ContextSessionsService({\n repository: this.#dependencies.sessionsRepository(options),\n }),\n },\n });\n }\n}\n\nexport function createContextModuleBindings(\n options: ContextModuleBindOptions = {},\n): Result<AgentDevKitErrorCode, ContextModuleBinding> {\n return new ContextModuleBinder().bind(options);\n}\n","import { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { Result } from \"../../infra/bases/result\";\nimport type { IModuleSurface, SurfacePromptInput } from \"../../infra/bases/surface\";\nimport { surfaceCapabilitiesFromConfigs } from \"../../infra/helpers/surface_capabilities\";\nimport { resolveModuleSurfaceDirectory, SurfaceLoader } from \"../../infra/helpers/surface_loader\";\nimport { contextProjectsCapabilityConfig } from \"./capabilities/projects/projects.service\";\nimport { contextSessionsCapabilityConfig } from \"./capabilities/sessions/sessions.service\";\n\nconst moduleDirectory = dirname(fileURLToPath(import.meta.url));\n\nexport function createContextSurface(): IModuleSurface {\n const loader = new SurfaceLoader(resolveModuleSurfaceDirectory(\"context\", moduleDirectory));\n\n return {\n moduleId: \"context\",\n capabilities: async () =>\n Result.ok(\n surfaceCapabilitiesFromConfigs([\n contextProjectsCapabilityConfig,\n contextSessionsCapabilityConfig,\n ]),\n ),\n knowledge: () => loader.knowledge(),\n loop: () => loader.loop(),\n prompt: (input?: SurfacePromptInput) => loader.prompt(input),\n skill: () => loader.skill(),\n };\n}\n","import { z } from \"zod\";\nimport {\n CharacterBehaviorSchema,\n CharacterDetailLevelSchema,\n CharacterIdSchema,\n CharacterToneSchema,\n} from \"./character\";\n\nexport const PromptMessageRoleSchema = z.enum([\"assistant\", \"system\", \"tool\", \"user\"]);\n\nexport const PromptMessageSchema = z\n .object({\n content: z.string(),\n createdAt: z.string().datetime().optional(),\n id: z.string().min(1).optional(),\n role: PromptMessageRoleSchema,\n })\n .strict();\n\nexport const PromptProjectContextSchema = z\n .object({\n description: z.string().optional(),\n id: z.string().min(1),\n name: z.string().min(1),\n path: z.string().optional(),\n tags: z.array(z.string()).default([]),\n })\n .strict();\n\nexport const PromptSessionContextSchema = z\n .object({\n id: z.string().min(1),\n messageCount: z.number().int().nonnegative(),\n title: z.string().min(1),\n })\n .strict();\n\nexport const PromptKnowledgeContextSchema = z\n .object({\n content: z.string().min(1),\n id: z.string().min(1),\n source: z.string().min(1).optional(),\n })\n .strict();\n\nexport const PromptToolDescriptorSchema = z\n .object({\n description: z.string().min(1),\n id: z.string().min(1),\n inputSchema: z.record(z.string(), z.unknown()).optional(),\n risk: z.string().min(1),\n })\n .strict();\n\nexport const PromptOutputContractSchema = z\n .object({\n format: z.enum([\"json\", \"text\"]).default(\"text\"),\n language: z.string().min(1).default(\"pt-BR\"),\n })\n .strict();\n\nexport const AgentPromptSchema = z\n .object({\n agent: z\n .object({\n behavior: CharacterBehaviorSchema,\n characterId: CharacterIdSchema,\n detailLevel: CharacterDetailLevelSchema,\n name: z.string().min(1),\n tone: CharacterToneSchema,\n traits: z.array(z.string().min(1)).default([]),\n })\n .strict(),\n context: z\n .object({\n knowledge: z.array(PromptKnowledgeContextSchema).default([]),\n project: PromptProjectContextSchema.optional(),\n session: PromptSessionContextSchema.optional(),\n })\n .strict(),\n locale: z.string().min(1).default(\"pt-BR\"),\n messages: z.array(PromptMessageSchema),\n output: PromptOutputContractSchema.default({ format: \"text\", language: \"pt-BR\" }),\n policies: z\n .object({\n allowToolCalls: z.boolean(),\n approvalRequired: z.boolean(),\n maxToolCalls: z.number().int().nonnegative(),\n })\n .strict(),\n schema: z.literal(\"agent-devkit.prompt/v1\"),\n task: z\n .object({\n intent: z.string().min(1).optional(),\n userMessage: z.string().min(1),\n })\n .strict(),\n tools: z.array(PromptToolDescriptorSchema).default([]),\n })\n .strict();\n\nexport type PromptMessage = z.infer<typeof PromptMessageSchema>;\nexport type AgentPrompt = z.infer<typeof AgentPromptSchema>;\nexport type PromptToolDescriptor = z.infer<typeof PromptToolDescriptorSchema>;\n","import type {\n CapabilityInvocationInterface,\n CapabilityRepositoryPort,\n} from \"../../../../infra/bases/capability\";\nimport type { CharacterDefinition, CharacterId } from \"../../../../infra/bases/character\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport type { AgentPrompt, PromptMessage } from \"../../../../infra/bases/prompt\";\nimport { AgentPromptSchema } from \"../../../../infra/bases/prompt\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport type { ContextProject } from \"../../../context/capabilities/projects/projects.entities\";\nimport type { ContextProjectsRepositoryPort } from \"../../../context/capabilities/projects/projects.repository\";\nimport type {\n ContextMessage,\n ContextSession,\n ContextSessionOrigin,\n} from \"../../../context/capabilities/sessions/sessions.entities\";\nimport type { ContextSessionsRepositoryPort } from \"../../../context/capabilities/sessions/sessions.repository\";\nimport type { PersonalizationRepositoryPort } from \"../../../user/capabilities/personalization/personalization.repository\";\nimport type { ConversationChatOptions } from \"./chat.entities\";\n\nexport type ConversationPromptPreparation = {\n messages: ContextMessage[];\n prompt: AgentPrompt;\n projectId?: string;\n sessionId: string;\n};\n\nexport type ConversationChatRepositoryOptions = {\n clock?: () => Date;\n personalizationRepository: PersonalizationRepositoryPort;\n projectsRepository: ContextProjectsRepositoryPort;\n sessionsRepository: ContextSessionsRepositoryPort;\n};\n\nexport interface ConversationChatRepositoryPort extends CapabilityRepositoryPort {\n appendAssistantMessage(\n sessionId: string,\n content: string,\n ): Promise<Result<AgentDevKitErrorCode, ContextMessage[]>>;\n preparePrompt(\n input: ConversationChatOptions,\n origin: CapabilityInvocationInterface,\n ): Promise<Result<AgentDevKitErrorCode, ConversationPromptPreparation>>;\n}\n\nfunction originFromInterface(origin: CapabilityInvocationInterface): ContextSessionOrigin {\n return origin;\n}\n\nfunction promptMessages(messages: ContextMessage[]): PromptMessage[] {\n return messages.map((message) => ({\n content: message.content,\n createdAt: message.createdAt,\n id: message.id,\n role: message.role === \"tool\" ? \"tool\" : message.role,\n }));\n}\n\nfunction characterName(character: CharacterDefinition): string {\n return character.name ?? character.id;\n}\n\nfunction compact(value: string): string {\n return value.replaceAll(/\\s+/g, \" \").trim();\n}\n\nexport class ConversationChatRepository implements ConversationChatRepositoryPort {\n readonly repositoryId = \"conversation.chat.repository\";\n readonly #clock: () => Date;\n readonly #personalizationRepository: PersonalizationRepositoryPort;\n readonly #projectsRepository: ContextProjectsRepositoryPort;\n readonly #sessionsRepository: ContextSessionsRepositoryPort;\n\n constructor(options: ConversationChatRepositoryOptions) {\n this.#clock = options.clock ?? (() => new Date());\n this.#personalizationRepository = options.personalizationRepository;\n this.#projectsRepository = options.projectsRepository;\n this.#sessionsRepository = options.sessionsRepository;\n }\n\n async appendAssistantMessage(\n sessionId: string,\n content: string,\n ): Promise<Result<AgentDevKitErrorCode, ContextMessage[]>> {\n const append = await this.#sessionsRepository.appendMessage({\n content,\n role: \"assistant\",\n sessionId,\n });\n\n if (append.isErr()) {\n return Result.fail(append.unwrapError());\n }\n\n const details = await this.#sessionsRepository.show({\n includeMessages: true,\n sessionId,\n });\n\n if (details.isErr()) {\n return Result.fail(details.unwrapError());\n }\n\n return Result.ok(details.unwrap().messages ?? []);\n }\n\n async preparePrompt(\n input: ConversationChatOptions,\n origin: CapabilityInvocationInterface,\n ): Promise<Result<AgentDevKitErrorCode, ConversationPromptPreparation>> {\n if (input.action !== \"send\") {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const character = await this.#loadCharacter(input.characterId);\n\n if (character.isErr()) {\n return Result.fail(character.unwrapError());\n }\n\n const project = await this.#loadProject(input.projectId);\n\n if (project.isErr()) {\n return Result.fail(project.unwrapError());\n }\n\n const session = await this.#ensureSession(input, originFromInterface(origin));\n\n if (session.isErr()) {\n return Result.fail(session.unwrapError());\n }\n\n const append = await this.#sessionsRepository.appendMessage({\n content: input.message,\n role: \"user\",\n sessionId: session.unwrap().id,\n });\n\n if (append.isErr()) {\n return Result.fail(append.unwrapError());\n }\n\n const details = await this.#sessionsRepository.show({\n includeMessages: true,\n sessionId: session.unwrap().id,\n });\n\n if (details.isErr()) {\n return Result.fail(details.unwrapError());\n }\n\n const loadedProject =\n project.unwrap() ??\n (details.unwrap().session.projectId === undefined\n ? undefined\n : await this.#loadProject(details.unwrap().session.projectId).then((result) =>\n result.isOk() ? result.unwrap() : undefined,\n ));\n const allMessages = details.unwrap().messages ?? [];\n const messagesForPrompt = input.includeHistory === false ? allMessages.slice(-1) : allMessages;\n const prompt = this.#prompt({\n character: character.unwrap(),\n messages: messagesForPrompt,\n project: loadedProject,\n session: details.unwrap().session,\n userMessage: input.message,\n });\n\n if (prompt.isErr()) {\n return Result.fail(prompt.unwrapError());\n }\n\n return Result.ok({\n messages: allMessages,\n projectId: loadedProject?.id,\n prompt: prompt.unwrap(),\n sessionId: details.unwrap().session.id,\n });\n }\n\n async #ensureSession(\n input: Extract<ConversationChatOptions, { action: \"send\" }>,\n origin: ContextSessionOrigin,\n ): Promise<Result<AgentDevKitErrorCode, ContextSession>> {\n if (input.sessionId !== undefined) {\n const details = await this.#sessionsRepository.show({\n includeMessages: false,\n sessionId: input.sessionId,\n });\n\n if (details.isErr()) {\n return Result.fail(details.unwrapError());\n }\n\n if (input.projectId !== undefined && details.unwrap().session.projectId !== input.projectId) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok(details.unwrap().session);\n }\n\n const created = await this.#sessionsRepository.create({\n origin,\n projectId: input.projectId,\n title: compact(input.message).slice(0, 80) || \"Untitled chat\",\n });\n\n return created.isOk() ? Result.ok(created.unwrap()) : Result.fail(created.unwrapError());\n }\n\n async #loadCharacter(\n characterId?: CharacterId,\n ): Promise<Result<AgentDevKitErrorCode, CharacterDefinition>> {\n const profile = await this.#personalizationRepository.loadProfile();\n\n if (profile.isErr()) {\n return Result.fail(profile.unwrapError());\n }\n\n if (characterId === undefined || characterId === profile.unwrap().currentCharacter.id) {\n return Result.ok(profile.unwrap().currentCharacter);\n }\n\n const characters = await this.#personalizationRepository.loadCharacters(characterId);\n\n if (characters.isErr()) {\n return Result.fail(characters.unwrapError());\n }\n\n const character = characters.unwrap().find((candidate) => candidate.id === characterId);\n\n if (character === undefined || !character.active) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const { custom, selected, spritePath, ...definition } = character;\n void custom;\n void selected;\n void spritePath;\n\n return Result.ok(definition);\n }\n\n async #loadProject(\n projectId?: string,\n ): Promise<Result<AgentDevKitErrorCode, ContextProject | undefined>> {\n if (projectId === undefined) {\n return Result.ok(undefined);\n }\n\n const project = await this.#projectsRepository.show(projectId);\n\n return project.isOk() ? Result.ok(project.unwrap()) : Result.fail(project.unwrapError());\n }\n\n #prompt(input: {\n character: CharacterDefinition;\n messages: ContextMessage[];\n project?: ContextProject;\n session: ContextSession;\n userMessage: string;\n }): Result<AgentDevKitErrorCode, AgentPrompt> {\n const prompt = AgentPromptSchema.safeParse({\n agent: {\n behavior: input.character.profile.behavior,\n characterId: input.character.id,\n detailLevel: input.character.profile.detailLevel,\n name: characterName(input.character),\n tone: input.character.profile.tone,\n traits: input.character.profile.traits,\n },\n context: {\n knowledge: [],\n project:\n input.project === undefined\n ? undefined\n : {\n description: input.project.description,\n id: input.project.id,\n name: input.project.name,\n path: input.project.path,\n tags: input.project.tags,\n },\n session: {\n id: input.session.id,\n messageCount: input.messages.length,\n title: input.session.title,\n },\n },\n locale: \"pt-BR\",\n messages: promptMessages(input.messages),\n output: { format: \"text\", language: \"pt-BR\" },\n policies: {\n allowToolCalls: false,\n approvalRequired: false,\n maxToolCalls: 0,\n },\n schema: \"agent-devkit.prompt/v1\",\n task: {\n userMessage: input.userMessage,\n },\n tools: [],\n });\n\n return prompt.success ? Result.ok(prompt.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n}\n","import { z } from \"zod\";\nimport { BrainGenerationOptionsSchema, BrainResponseSchema } from \"../../../../infra/bases/brain\";\nimport { CharacterIdSchema } from \"../../../../infra/bases/character\";\nimport { AgentPromptSchema } from \"../../../../infra/bases/prompt\";\nimport { ContextMessageSchema } from \"../../../context/capabilities/sessions/sessions.entities\";\n\nexport const ConversationChatOptionsSchema = z.discriminatedUnion(\"action\", [\n z\n .object({\n action: z.literal(\"send\"),\n brain: BrainGenerationOptionsSchema.optional(),\n characterId: CharacterIdSchema.optional(),\n includeHistory: z.boolean().optional(),\n message: z.string().min(1),\n projectId: z.string().min(1).optional(),\n sessionId: z.string().min(1).optional(),\n })\n .strict(),\n]);\n\nexport type ConversationChatOptions = z.infer<typeof ConversationChatOptionsSchema>;\n\nexport const ConversationChatResultSchema = z\n .object({\n action: z.literal(\"send\"),\n brain: BrainResponseSchema,\n messages: z.array(ContextMessageSchema),\n projectId: z.string().min(1).optional(),\n prompt: AgentPromptSchema,\n reply: z.string(),\n sessionId: z.string().min(1),\n })\n .strict();\n\nexport type ConversationChatResult = z.infer<typeof ConversationChatResultSchema>;\n","import { z } from \"zod\";\nimport type { AgentDevKitErrorCode } from \"./errors\";\nimport { AgentPromptSchema } from \"./prompt\";\nimport type { Result } from \"./result\";\n\nexport const BrainGenerationOptionsSchema = z\n .object({\n maxInputTokens: z.number().int().positive().optional(),\n maxOutputTokens: z.number().int().positive().optional(),\n model: z.string().min(1).optional(),\n provider: z.enum([\"local\", \"mock\"]).default(\"local\"),\n role: z.enum([\"agent\", \"chat\"]).optional(),\n seed: z.number().int().optional(),\n stop: z.array(z.string().min(1)).optional(),\n stream: z.boolean().optional(),\n temperature: z.number().min(0).max(2).optional(),\n topK: z.number().int().positive().optional(),\n topP: z.number().min(0).max(1).optional(),\n })\n .strict();\n\nexport const BrainRequestSchema = z\n .object({\n options: BrainGenerationOptionsSchema.default({ provider: \"local\" }),\n prompt: AgentPromptSchema,\n schema: z.literal(\"agent-devkit.brain-request/v1\"),\n })\n .strict();\n\nexport const BrainToolCallSchema = z\n .object({\n arguments: z.record(z.string(), z.unknown()).default({}),\n id: z.string().min(1).optional(),\n name: z.string().min(1),\n })\n .strict();\n\nexport const BrainResponseSchema = z\n .object({\n finishReason: z.enum([\"error\", \"length\", \"stop\", \"tool-call\"]).optional(),\n model: z.string().min(1).optional(),\n provider: z.string().min(1).optional(),\n schema: z.literal(\"agent-devkit.brain-response/v1\"),\n text: z.string(),\n toolCalls: z.array(BrainToolCallSchema).optional(),\n usage: z\n .object({\n inputTokens: z.number().int().nonnegative().optional(),\n outputTokens: z.number().int().nonnegative().optional(),\n totalTokens: z.number().int().nonnegative().optional(),\n })\n .strict()\n .optional(),\n })\n .strict();\n\nexport type BrainGenerationOptions = z.infer<typeof BrainGenerationOptionsSchema>;\nexport type BrainRequest = z.infer<typeof BrainRequestSchema>;\nexport type BrainResponse = z.infer<typeof BrainResponseSchema>;\nexport type BrainToolCall = z.infer<typeof BrainToolCallSchema>;\n\n/** Live token callback for streaming-capable providers. */\nexport type BrainStreamHandler = (delta: string) => void;\n\n/** Result of a JSON-schema-constrained generation used by the agent loop. */\nexport type BrainStructuredResponse = {\n json: unknown;\n raw: string;\n};\n\nexport interface BrainProviderPort {\n generate(request: BrainRequest): Promise<Result<AgentDevKitErrorCode, BrainResponse>>;\n /**\n * Optional streaming path. Emits text deltas via `onToken` while still\n * resolving to the complete `BrainResponse` for persistence. Providers that\n * cannot stream simply omit this method; callers fall back to `generate`.\n */\n generateStream?(\n request: BrainRequest,\n onToken: BrainStreamHandler,\n ): Promise<Result<AgentDevKitErrorCode, BrainResponse>>;\n /**\n * Optional structured path for the agent loop: generate output shaped by a\n * JSON schema and return the parsed value plus the raw text. Providers that\n * cannot constrain output omit this method; the agent falls back gracefully.\n */\n generateStructured?(\n request: BrainRequest,\n jsonSchema: Record<string, unknown>,\n ): Promise<Result<AgentDevKitErrorCode, BrainStructuredResponse>>;\n}\n","import type {\n BrainProviderPort,\n BrainRequest,\n BrainStreamHandler,\n} from \"../../../../infra/bases/brain\";\nimport {\n BaseCapabilityService,\n type CapabilityApproval,\n type CapabilityEffect,\n type CapabilityInvocationContext,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type ConversationChatOptions,\n ConversationChatOptionsSchema,\n type ConversationChatResult,\n ConversationChatResultSchema,\n} from \"./chat.entities\";\nimport type { ConversationChatRepositoryPort } from \"./chat.repository\";\n\ntype ConversationChatServiceDependencies = {\n brainProvider: BrainProviderPort;\n repository: ConversationChatRepositoryPort;\n};\n\nexport const conversationChatCapabilityConfig = defineCapabilityConfig({\n id: \"conversation.chat\",\n moduleId: \"conversation\",\n name: \"Conversation chat\",\n description: \"Send a chat message using local personalization, projects and session memory.\",\n kind: \"brain-assisted\",\n risk: \"writes-global-state\",\n} as const);\n\nexport { MockBrainProvider } from \"../../../../infra/brain/mock_provider\";\n\nexport class ConversationChatService extends BaseCapabilityService<\n typeof conversationChatCapabilityConfig,\n ConversationChatServiceDependencies,\n ConversationChatOptions,\n ConversationChatResult\n> {\n readonly inputSchema = ConversationChatOptionsSchema;\n readonly outputSchema = ConversationChatResultSchema;\n readonly #brainProvider: BrainProviderPort;\n readonly #repository: ConversationChatRepositoryPort;\n\n constructor(dependencies: ConversationChatServiceDependencies) {\n super(conversationChatCapabilityConfig, dependencies);\n this.#brainProvider = dependencies.brainProvider;\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: ConversationChatOptions,\n ): Promise<Result<AgentDevKitErrorCode, ConversationChatResult>> {\n return this.#run(options, { interface: \"cli\" });\n }\n\n invoke(\n input: ConversationChatOptions,\n context: CapabilityInvocationContext,\n ): Promise<Result<AgentDevKitErrorCode, ConversationChatResult>> {\n return this.#run(input, context);\n }\n\n /**\n * Interactive streaming variant used by the CLI/TUI. Emits reply tokens via\n * `onToken` while still resolving to the same `ConversationChatResult` and\n * persisting session memory. MCP and `agent run` use the buffered `execute`.\n */\n stream(\n input: ConversationChatOptions,\n onToken: BrainStreamHandler,\n ): Promise<Result<AgentDevKitErrorCode, ConversationChatResult>> {\n return this.#run(input, { interface: \"cli\" }, onToken);\n }\n\n override effectsForInput(): CapabilityEffect[] {\n return [{ operation: \"write\", scope: \"global\" }];\n }\n\n override approvalForInput(): CapabilityApproval {\n return {\n reason: \"Conversation chat writes local session memory without tool calls.\",\n required: false,\n };\n }\n\n async #run(\n options: ConversationChatOptions,\n context: Pick<CapabilityInvocationContext, \"interface\">,\n onToken?: BrainStreamHandler,\n ): Promise<Result<AgentDevKitErrorCode, ConversationChatResult>> {\n const parsed = this.inputSchema.safeParse(options);\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const prepared = await this.#repository.preparePrompt(parsed.data, context.interface);\n\n if (prepared.isErr()) {\n return Result.fail(prepared.unwrapError());\n }\n\n const request: BrainRequest = {\n options: parsed.data.brain ?? { provider: \"local\" },\n prompt: prepared.unwrap().prompt,\n schema: \"agent-devkit.brain-request/v1\",\n };\n const brain =\n onToken !== undefined && this.#brainProvider.generateStream !== undefined\n ? await this.#brainProvider.generateStream(request, onToken)\n : await this.#brainProvider.generate(request);\n\n if (brain.isErr()) {\n return Result.fail(brain.unwrapError());\n }\n\n const messages = await this.#repository.appendAssistantMessage(\n prepared.unwrap().sessionId,\n brain.unwrap().text,\n );\n\n if (messages.isErr()) {\n return Result.fail(messages.unwrapError());\n }\n\n const result = this.outputSchema.safeParse({\n action: \"send\",\n brain: brain.unwrap(),\n messages: messages.unwrap(),\n projectId: prepared.unwrap().projectId,\n prompt: prepared.unwrap().prompt,\n reply: brain.unwrap().text,\n sessionId: prepared.unwrap().sessionId,\n });\n\n return result.success ? Result.ok(result.data) : Result.fail(ErrorCodes.InvalidInput);\n }\n}\n","import { defineModuleConfig } from \"../../infra/bases/module\";\nimport { conversationChatCapabilityConfig } from \"./capabilities/chat/chat.service\";\n\nexport const conversationModuleConfig = defineModuleConfig({\n id: \"conversation\",\n name: \"Conversation\",\n description: \"Agent DevKit chat runtime backed by personalization, projects and sessions.\",\n capabilities: [conversationChatCapabilityConfig.id],\n tests: {\n include: [\n \"src/modules/conversation/conversation.surface.test.ts\",\n \"src/modules/conversation/capabilities/**/*.test.ts\",\n ],\n },\n} as const);\n","import { defineModuleBinding, ModuleBinder, type ModuleBinding } from \"../../infra/bases/bind\";\nimport type { BrainProviderPort } from \"../../infra/bases/brain\";\nimport type { AgentDataStore } from \"../../infra/bases/data_store\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport { LocalAgentDataStore } from \"../../infra/data\";\nimport { ContextProjectsRepository } from \"../context/capabilities/projects/projects.repository\";\nimport { ContextSessionsRepository } from \"../context/capabilities/sessions/sessions.repository\";\nimport { PersonalizationRepository } from \"../user/capabilities/personalization/personalization.repository\";\nimport {\n ConversationChatRepository,\n type ConversationChatRepositoryPort,\n} from \"./capabilities/chat/chat.repository\";\nimport { ConversationChatService, MockBrainProvider } from \"./capabilities/chat/chat.service\";\nimport { conversationModuleConfig } from \"./conversation.config\";\n\nexport type ConversationModuleBindOptions = {\n brainProvider?: BrainProviderPort;\n dataStore?: AgentDataStore;\n homeDirectory?: string;\n};\n\nexport type ConversationModuleCapabilities = {\n chat: ConversationChatService;\n};\n\nexport type ConversationModuleBinding = ModuleBinding<\n typeof conversationModuleConfig,\n ConversationModuleCapabilities\n>;\n\ntype ConversationModuleBinderDependencies = {\n chatRepository: (options: ConversationModuleBindOptions) => ConversationChatRepositoryPort;\n};\n\nfunction normalizeOptions(options: ConversationModuleBindOptions): ConversationModuleBindOptions {\n if (options.dataStore !== undefined || options.homeDirectory === undefined) {\n return options;\n }\n\n return {\n ...options,\n dataStore: new LocalAgentDataStore({\n rootDirectory: `${options.homeDirectory}/.agent-devkit/data`,\n }),\n };\n}\n\nconst defaultDependencies: ConversationModuleBinderDependencies = {\n chatRepository: (options) => {\n const normalized = normalizeOptions(options);\n const dataStore = normalized.dataStore;\n\n return new ConversationChatRepository({\n personalizationRepository: new PersonalizationRepository({\n dataStore,\n homeDirectory: normalized.homeDirectory,\n }),\n projectsRepository: new ContextProjectsRepository({ dataStore }),\n sessionsRepository: new ContextSessionsRepository({ dataStore }),\n });\n },\n};\n\nexport class ConversationModuleBinder extends ModuleBinder<\n ConversationModuleBindOptions,\n typeof conversationModuleConfig,\n ConversationModuleCapabilities\n> {\n readonly #dependencies: ConversationModuleBinderDependencies;\n\n constructor(dependencies: ConversationModuleBinderDependencies = defaultDependencies) {\n super();\n this.#dependencies = dependencies;\n }\n\n override bind(\n options: ConversationModuleBindOptions = {},\n ): Result<AgentDevKitErrorCode, ConversationModuleBinding> {\n return defineModuleBinding({\n config: conversationModuleConfig,\n capabilities: {\n chat: new ConversationChatService({\n brainProvider: options.brainProvider ?? new MockBrainProvider(),\n repository: this.#dependencies.chatRepository(options),\n }),\n },\n });\n }\n}\n\nexport function createConversationModuleBindings(\n options: ConversationModuleBindOptions = {},\n): Result<AgentDevKitErrorCode, ConversationModuleBinding> {\n return new ConversationModuleBinder().bind(options);\n}\n","import { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { Result } from \"../../infra/bases/result\";\nimport type { IModuleSurface, SurfacePromptInput } from \"../../infra/bases/surface\";\nimport { surfaceCapabilitiesFromConfigs } from \"../../infra/helpers/surface_capabilities\";\nimport { resolveModuleSurfaceDirectory, SurfaceLoader } from \"../../infra/helpers/surface_loader\";\nimport { conversationChatCapabilityConfig } from \"./capabilities/chat/chat.service\";\n\nconst moduleDirectory = dirname(fileURLToPath(import.meta.url));\n\nexport function createConversationSurface(): IModuleSurface {\n const loader = new SurfaceLoader(resolveModuleSurfaceDirectory(\"conversation\", moduleDirectory));\n\n return {\n moduleId: \"conversation\",\n capabilities: async () =>\n Result.ok(surfaceCapabilitiesFromConfigs([conversationChatCapabilityConfig])),\n knowledge: () => loader.knowledge(),\n loop: () => loader.loop(),\n prompt: (input?: SurfacePromptInput) => loader.prompt(input),\n skill: () => loader.skill(),\n };\n}\n","import { readdir, readFile, stat } from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport type { AgentDataStore } from \"../../../../infra/bases/data_store\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport { LocalAgentDataStore } from \"../../../../infra/data\";\nimport {\n type LogCategory,\n type LogCategorySelection,\n type LogEvent,\n type LogsFileSummary,\n type TechnicalLogRecord,\n TechnicalLogRecordSchema,\n type UsageLogRecord,\n UsageLogRecordSchema,\n} from \"./analysis.entities\";\n\nexport type LogsAnalysisRepositoryOptions = {\n dataStore?: AgentDataStore;\n homeDirectory?: string;\n stateDirectory?: string;\n};\n\nexport interface LogsAnalysisRepositoryPort extends CapabilityRepositoryPort {\n logsPath(): string;\n listFiles(\n category?: LogCategorySelection,\n ): Promise<Result<AgentDevKitErrorCode, LogsFileSummary[]>>;\n readEvents(\n date?: string,\n category?: LogCategorySelection,\n ): Promise<Result<AgentDevKitErrorCode, LogEvent[]>>;\n}\n\ntype LogFileReference = {\n file: string;\n path: string;\n};\n\nfunction stateDirectory(options: LogsAnalysisRepositoryOptions): string {\n return options.stateDirectory ?? join(options.homeDirectory ?? homedir(), \".agent-devkit\");\n}\n\nfunction fileInfo(file: string): { category: LogCategory; date: string } | undefined {\n const usage = /^usage-(\\d{4}-\\d{2}-\\d{2})\\.jsonl$/.exec(file);\n if (usage?.[1] !== undefined) {\n return { category: \"usage\", date: usage[1] };\n }\n\n const technical = /^technical-(\\d{4}-\\d{2}-\\d{2})\\.jsonl$/.exec(file);\n if (technical?.[1] !== undefined) {\n return { category: \"technical\", date: technical[1] };\n }\n\n return undefined;\n}\n\nfunction categoryMatches(\n category: LogCategory,\n selection: LogCategorySelection = \"usage\",\n): boolean {\n return selection === \"all\" || selection === category;\n}\n\nfunction toEvent(\n record: TechnicalLogRecord | UsageLogRecord,\n source: string,\n line: number,\n): LogEvent {\n return {\n ...record,\n date: record.timestamp.slice(0, 10),\n line,\n source,\n };\n}\n\nfunction parseEvents(content: string, source: string): LogEvent[] {\n return content\n .split(\"\\n\")\n .map((line, index) => ({ index, line: line.trim() }))\n .filter(({ line }) => line.length > 0)\n .flatMap(({ index, line }) => {\n try {\n const payload = JSON.parse(line);\n const parsed =\n payload.category === \"technical\"\n ? TechnicalLogRecordSchema.safeParse(payload)\n : UsageLogRecordSchema.safeParse(payload);\n return parsed.success ? [toEvent(parsed.data, source, index + 1)] : [];\n } catch {\n return [];\n }\n });\n}\n\nexport class LogsAnalysisRepository implements LogsAnalysisRepositoryPort {\n readonly repositoryId = \"logs.analysis.repository\";\n readonly #dataStore: AgentDataStore;\n readonly #legacyLogsDirectory: string;\n readonly #logsDirectory: string;\n\n constructor(options: LogsAnalysisRepositoryOptions = {}) {\n const state = stateDirectory(options);\n this.#dataStore =\n options.dataStore ?? new LocalAgentDataStore({ rootDirectory: join(state, \"data\") });\n const resolvedLogsDirectory = this.#dataStore.resolve({ namespace: \"logs\", segments: [] });\n this.#logsDirectory = resolvedLogsDirectory.isOk()\n ? resolvedLogsDirectory.unwrap()\n : join(state, \"data\", \"logs\");\n this.#legacyLogsDirectory = join(state, \"logs\");\n }\n\n logsPath(): string {\n return this.#logsDirectory;\n }\n\n async listFiles(\n category: LogCategorySelection = \"usage\",\n ): Promise<Result<AgentDevKitErrorCode, LogsFileSummary[]>> {\n const files = await this.#logFiles();\n\n if (files.isErr()) {\n return Result.fail(files.unwrapError());\n }\n\n const summaries: LogsFileSummary[] = [];\n\n try {\n for (const file of files.unwrap()) {\n const info = fileInfo(file.file);\n\n if (info === undefined || !categoryMatches(info.category, category)) {\n continue;\n }\n\n const [metadata, content] = await Promise.all([\n stat(file.path),\n readFile(file.path, \"utf8\"),\n ]);\n summaries.push({\n category: info.category,\n date: info.date,\n eventCount: parseEvents(content, file.file).length,\n file: file.file,\n path: file.path,\n sizeBytes: metadata.size,\n });\n }\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n\n return Result.ok(\n summaries.sort(\n (left, right) =>\n right.date.localeCompare(left.date) || left.category.localeCompare(right.category),\n ),\n );\n }\n\n async readEvents(\n date?: string,\n category: LogCategorySelection = \"usage\",\n ): Promise<Result<AgentDevKitErrorCode, LogEvent[]>> {\n const files = await this.#logFiles();\n\n if (files.isErr()) {\n return Result.fail(files.unwrapError());\n }\n\n const selectedFiles = files\n .unwrap()\n .filter((file) => {\n const info = fileInfo(file.file);\n return (\n info !== undefined &&\n categoryMatches(info.category, category) &&\n (date === undefined || info.date === date)\n );\n })\n .sort((left, right) => left.file.localeCompare(right.file));\n const events: LogEvent[] = [];\n\n try {\n for (const file of selectedFiles) {\n events.push(...parseEvents(await readFile(file.path, \"utf8\"), file.file));\n }\n } catch {\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n\n return Result.ok(events.sort((left, right) => left.timestamp.localeCompare(right.timestamp)));\n }\n\n async #logFiles(): Promise<Result<AgentDevKitErrorCode, LogFileReference[]>> {\n try {\n const files = new Map<string, LogFileReference>();\n\n for (const reference of [\n ...(await this.#readFilesFromDirectory(this.#logsDirectory)),\n ...(await this.#readFilesFromDirectory(this.#legacyLogsDirectory)),\n ]) {\n if (!files.has(reference.file)) {\n files.set(reference.file, reference);\n }\n }\n\n return Result.ok(\n [...files.values()].sort((left, right) => left.file.localeCompare(right.file)),\n );\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === \"ENOENT\") {\n return Result.ok([]);\n }\n\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n async #readFilesFromDirectory(directory: string): Promise<LogFileReference[]> {\n try {\n const files = await readdir(directory);\n return files\n .filter((file) => fileInfo(file) !== undefined)\n .map((file) => ({ file, path: join(directory, file) }));\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === \"ENOENT\") {\n return [];\n }\n\n throw error;\n }\n }\n}\n","import { z } from \"zod\";\n\nexport const UsageLogRecordSchema = z.object({\n area: z.string().min(1),\n argv: z.array(z.string()),\n category: z.literal(\"usage\"),\n command: z.string().min(1),\n durationMs: z.number().nonnegative(),\n error: z\n .object({\n message: z.string(),\n name: z.string(),\n })\n .optional(),\n interface: z.string().min(1),\n level: z.string().min(1),\n options: z.record(z.string(), z.unknown()),\n schema: z.literal(\"agent-devkit.usage-log/v1\"),\n status: z.string().min(1),\n timestamp: z.string().min(1),\n});\n\nexport type UsageLogRecord = z.infer<typeof UsageLogRecordSchema>;\n\nexport const TechnicalLogRecordSchema = z.object({\n area: z.string().min(1),\n category: z.literal(\"technical\"),\n command: z.string().min(1).optional(),\n durationMs: z.number().nonnegative().optional(),\n error: z\n .object({\n message: z.string(),\n name: z.string(),\n })\n .optional(),\n event: z.string().min(1),\n interface: z.string().min(1),\n level: z.string().min(1),\n message: z.string().min(1),\n metadata: z.record(z.string(), z.unknown()).optional(),\n schema: z.literal(\"agent-devkit.technical-log/v1\"),\n timestamp: z.string().min(1),\n});\n\nexport type TechnicalLogRecord = z.infer<typeof TechnicalLogRecordSchema>;\nexport type LogCategory = \"technical\" | \"usage\";\nexport type LogCategorySelection = LogCategory | \"all\";\n\nexport type LogEvent = (TechnicalLogRecord | UsageLogRecord) & {\n date: string;\n line: number;\n source: string;\n};\n\nexport type LogsFileSummary = {\n category: LogCategory;\n date: string;\n eventCount: number;\n file: string;\n path: string;\n sizeBytes: number;\n};\n\nexport type LogsAnalysisOptions =\n | { action: \"list\"; category?: LogCategorySelection }\n | {\n action: \"read\";\n category?: LogCategorySelection;\n date?: string;\n limit?: number;\n tail?: boolean;\n }\n | {\n action: \"search\";\n category?: LogCategorySelection;\n date?: string;\n limit?: number;\n query: string;\n }\n | { action: \"summary\"; category?: LogCategorySelection; date?: string };\n\nexport const LogsAnalysisOptionsSchema = z.discriminatedUnion(\"action\", [\n z\n .object({\n action: z.literal(\"list\"),\n category: z.enum([\"usage\", \"technical\", \"all\"]).optional(),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"read\"),\n category: z.enum([\"usage\", \"technical\", \"all\"]).optional(),\n date: z.string().min(1).optional(),\n limit: z.number().int().nonnegative().optional(),\n tail: z.boolean().optional(),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"search\"),\n category: z.enum([\"usage\", \"technical\", \"all\"]).optional(),\n date: z.string().min(1).optional(),\n limit: z.number().int().nonnegative().optional(),\n query: z.string().min(1),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"summary\"),\n category: z.enum([\"usage\", \"technical\", \"all\"]).optional(),\n date: z.string().min(1).optional(),\n })\n .strict(),\n]);\n\nexport type LogsListResult = {\n action: \"list\";\n files: LogsFileSummary[];\n path: string;\n};\n\nexport type LogsReadResult = {\n action: \"read\";\n events: LogEvent[];\n path: string;\n totalEvents: number;\n};\n\nexport type LogsSearchResult = {\n action: \"search\";\n events: LogEvent[];\n path: string;\n query: string;\n totalMatches: number;\n};\n\nexport type LogsSummaryResult = {\n action: \"summary\";\n averageDurationMs: number;\n byArea: Record<string, number>;\n byCategory: Record<string, number>;\n byCommand: Record<string, number>;\n byStatus: Record<string, number>;\n path: string;\n slowest: LogEvent[];\n totalEvents: number;\n};\n\nexport type LogsAnalysisResult =\n | LogsListResult\n | LogsReadResult\n | LogsSearchResult\n | LogsSummaryResult;\n\nexport const LogsFileSummarySchema = z.object({\n category: z.enum([\"usage\", \"technical\"]),\n date: z.string().min(1),\n eventCount: z.number().int().nonnegative(),\n file: z.string().min(1),\n path: z.string().min(1),\n sizeBytes: z.number().int().nonnegative(),\n});\n\nexport const UsageLogEventSchema = UsageLogRecordSchema.extend({\n date: z.string().min(1),\n line: z.number().int().positive(),\n source: z.string().min(1),\n});\n\nexport const TechnicalLogEventSchema = TechnicalLogRecordSchema.extend({\n date: z.string().min(1),\n line: z.number().int().positive(),\n source: z.string().min(1),\n});\n\nexport const LogEventSchema = z.union([UsageLogEventSchema, TechnicalLogEventSchema]);\n\nexport const LogsAnalysisResultSchema = z.discriminatedUnion(\"action\", [\n z.object({\n action: z.literal(\"list\"),\n files: z.array(LogsFileSummarySchema),\n path: z.string().min(1),\n }),\n z.object({\n action: z.literal(\"read\"),\n events: z.array(LogEventSchema),\n path: z.string().min(1),\n totalEvents: z.number().int().nonnegative(),\n }),\n z.object({\n action: z.literal(\"search\"),\n events: z.array(LogEventSchema),\n path: z.string().min(1),\n query: z.string(),\n totalMatches: z.number().int().nonnegative(),\n }),\n z.object({\n action: z.literal(\"summary\"),\n averageDurationMs: z.number().nonnegative(),\n byArea: z.record(z.string(), z.number().int().nonnegative()),\n byCategory: z.record(z.string(), z.number().int().nonnegative()),\n byCommand: z.record(z.string(), z.number().int().nonnegative()),\n byStatus: z.record(z.string(), z.number().int().nonnegative()),\n path: z.string().min(1),\n slowest: z.array(LogEventSchema),\n totalEvents: z.number().int().nonnegative(),\n }),\n]);\n","import { BaseCapabilityService, defineCapabilityConfig } from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type LogCategorySelection,\n type LogEvent,\n type LogsAnalysisOptions,\n LogsAnalysisOptionsSchema,\n type LogsAnalysisResult,\n LogsAnalysisResultSchema,\n} from \"./analysis.entities\";\nimport type { LogsAnalysisRepositoryPort } from \"./analysis.repository\";\n\ntype LogsAnalysisServiceDependencies = {\n repository: LogsAnalysisRepositoryPort;\n};\n\nexport const logsAnalysisCapabilityConfig = defineCapabilityConfig({\n id: \"logs.analysis\",\n moduleId: \"logs\",\n name: \"Logs Analysis\",\n description: \"Inspect, search and summarize Agent DevKit usage logs.\",\n kind: \"deterministic\",\n risk: \"read-only\",\n} as const);\n\nfunction countBy(\n events: LogEvent[],\n selector: (event: LogEvent) => string,\n): Record<string, number> {\n return events.reduce<Record<string, number>>((accumulator, event) => {\n const key = selector(event);\n accumulator[key] = (accumulator[key] ?? 0) + 1;\n return accumulator;\n }, {});\n}\n\nfunction limitEvents(events: LogEvent[], limit = 20): LogEvent[] {\n return events.slice(0, Math.max(0, limit));\n}\n\nfunction tailEvents(events: LogEvent[], limit = 20): LogEvent[] {\n const normalizedLimit = Math.max(0, limit);\n return normalizedLimit === 0 ? [] : events.slice(-normalizedLimit);\n}\n\nfunction commandName(event: LogEvent): string {\n return event.category === \"usage\" ? event.command : (event.command ?? event.event);\n}\n\nfunction durationMs(event: LogEvent): number {\n return event.durationMs ?? 0;\n}\n\nfunction statusName(event: LogEvent): string {\n return event.category === \"usage\" ? event.status : event.level;\n}\n\nfunction searchableText(event: LogEvent): string {\n return [\n event.area,\n commandName(event),\n statusName(event),\n event.timestamp,\n event.interface,\n event.category === \"usage\" ? event.argv.join(\" \") : undefined,\n event.category === \"usage\" ? JSON.stringify(event.options) : JSON.stringify(event.metadata),\n event.category === \"technical\" ? event.event : undefined,\n event.category === \"technical\" ? event.message : undefined,\n event.error?.message,\n event.error?.name,\n ]\n .filter(Boolean)\n .join(\" \")\n .toLowerCase();\n}\n\nexport class LogsAnalysisService extends BaseCapabilityService<\n typeof logsAnalysisCapabilityConfig,\n LogsAnalysisServiceDependencies\n> {\n readonly inputSchema = LogsAnalysisOptionsSchema;\n readonly outputSchema = LogsAnalysisResultSchema;\n readonly #repository: LogsAnalysisRepositoryPort;\n\n constructor(dependencies: LogsAnalysisServiceDependencies) {\n super(logsAnalysisCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: LogsAnalysisOptions,\n ): Promise<Result<AgentDevKitErrorCode, LogsAnalysisResult>> {\n if (options.action === \"list\") {\n const files = await this.#repository.listFiles(options.category);\n return files.isOk()\n ? Result.ok({ action: \"list\", files: files.unwrap(), path: this.#repository.logsPath() })\n : Result.fail(files.unwrapError());\n }\n\n const category: LogCategorySelection =\n \"category\" in options ? (options.category ?? \"usage\") : \"usage\";\n const events = await this.#repository.readEvents(\n \"date\" in options ? options.date : undefined,\n category,\n );\n\n if (events.isErr()) {\n return Result.fail(events.unwrapError());\n }\n\n const allEvents = events.unwrap();\n\n if (options.action === \"read\") {\n const selected =\n options.tail === true\n ? tailEvents(allEvents, options.limit)\n : limitEvents(allEvents, options.limit);\n return Result.ok({\n action: \"read\",\n events: selected,\n path: this.#repository.logsPath(),\n totalEvents: allEvents.length,\n });\n }\n\n if (options.action === \"search\") {\n const query = options.query.trim().toLowerCase();\n\n if (query.length === 0) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const matches = allEvents.filter((event) => searchableText(event).includes(query));\n return Result.ok({\n action: \"search\",\n events: limitEvents(matches, options.limit),\n path: this.#repository.logsPath(),\n query: options.query,\n totalMatches: matches.length,\n });\n }\n\n const totalDurationMs = allEvents.reduce((total, event) => total + durationMs(event), 0);\n\n return Result.ok({\n action: \"summary\",\n averageDurationMs:\n allEvents.length === 0 ? 0 : Math.round(totalDurationMs / allEvents.length),\n byArea: countBy(allEvents, (event) => event.area),\n byCategory: countBy(allEvents, (event) => event.category),\n byCommand: countBy(allEvents, commandName),\n byStatus: countBy(allEvents, statusName),\n path: this.#repository.logsPath(),\n slowest: [...allEvents]\n .sort((left, right) => durationMs(right) - durationMs(left))\n .slice(0, 5),\n totalEvents: allEvents.length,\n });\n }\n\n invoke(options: LogsAnalysisOptions): Promise<Result<AgentDevKitErrorCode, LogsAnalysisResult>> {\n return this.execute(options);\n }\n}\n","import { defineModuleConfig } from \"../../infra/bases/module\";\nimport { logsAnalysisCapabilityConfig } from \"./capabilities/analysis/analysis.service\";\n\nexport const logsModuleConfig = defineModuleConfig({\n id: \"logs\",\n name: \"Logs\",\n description: \"Agent DevKit usage log analysis and inspection.\",\n capabilities: [logsAnalysisCapabilityConfig.id],\n tests: {\n include: [\n \"src/modules/logs/logs.surface.test.ts\",\n \"src/modules/logs/capabilities/**/*.test.ts\",\n ],\n },\n} as const);\n","import { defineModuleBinding, ModuleBinder, type ModuleBinding } from \"../../infra/bases/bind\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport {\n LogsAnalysisRepository,\n type LogsAnalysisRepositoryPort,\n} from \"./capabilities/analysis/analysis.repository\";\nimport { LogsAnalysisService } from \"./capabilities/analysis/analysis.service\";\nimport { logsModuleConfig } from \"./logs.config\";\n\nexport type LogsModuleBindOptions = {\n homeDirectory?: string;\n stateDirectory?: string;\n};\n\nexport type LogsModuleCapabilities = {\n analysis: LogsAnalysisService;\n};\n\nexport type LogsModuleBinding = ModuleBinding<typeof logsModuleConfig, LogsModuleCapabilities>;\n\ntype LogsModuleBinderDependencies = {\n analysisRepository: (options: LogsModuleBindOptions) => LogsAnalysisRepositoryPort;\n};\n\nconst defaultDependencies: LogsModuleBinderDependencies = {\n analysisRepository: (options) => new LogsAnalysisRepository(options),\n};\n\nexport class LogsModuleBinder extends ModuleBinder<\n LogsModuleBindOptions,\n typeof logsModuleConfig,\n LogsModuleCapabilities\n> {\n readonly #dependencies: LogsModuleBinderDependencies;\n\n constructor(dependencies: LogsModuleBinderDependencies = defaultDependencies) {\n super();\n this.#dependencies = dependencies;\n }\n\n override bind(options: LogsModuleBindOptions): Result<AgentDevKitErrorCode, LogsModuleBinding> {\n return defineModuleBinding({\n config: logsModuleConfig,\n capabilities: {\n analysis: new LogsAnalysisService({\n repository: this.#dependencies.analysisRepository(options),\n }),\n },\n });\n }\n}\n\nexport function createLogsModuleBindings(\n options: LogsModuleBindOptions = {},\n): Result<AgentDevKitErrorCode, LogsModuleBinding> {\n return new LogsModuleBinder().bind(options);\n}\n","import { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { Result } from \"../../infra/bases/result\";\nimport type { IModuleSurface, SurfacePromptInput } from \"../../infra/bases/surface\";\nimport { surfaceCapabilitiesFromConfigs } from \"../../infra/helpers/surface_capabilities\";\nimport { resolveModuleSurfaceDirectory, SurfaceLoader } from \"../../infra/helpers/surface_loader\";\nimport { logsAnalysisCapabilityConfig } from \"./capabilities/analysis/analysis.service\";\n\nconst moduleDirectory = dirname(fileURLToPath(import.meta.url));\n\nexport function createLogsSurface(): IModuleSurface {\n const loader = new SurfaceLoader(resolveModuleSurfaceDirectory(\"logs\", moduleDirectory));\n\n return {\n moduleId: \"logs\",\n capabilities: async () =>\n Result.ok(surfaceCapabilitiesFromConfigs([logsAnalysisCapabilityConfig])),\n knowledge: () => loader.knowledge(),\n loop: () => loader.loop(),\n prompt: (input?: SurfacePromptInput) => loader.prompt(input),\n skill: () => loader.skill(),\n };\n}\n","import { existsSync } from \"node:fs\";\nimport { dirname, resolve } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { AssetLoader } from \"../assets/asset_loader\";\nimport type { AssetReader } from \"../bases/assets\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport { type ModelCatalog, type ModelCatalogEntry, ModelCatalogSchema } from \"../bases/model\";\nimport { Result } from \"../bases/result\";\n\nexport type ModelCatalogLoaderOptions = {\n loader?: AssetReader;\n};\n\nfunction defaultAssetsRoot(): string {\n const moduleDirectory = dirname(fileURLToPath(import.meta.url));\n const candidates = [\n resolve(moduleDirectory, \"../../assets\"),\n resolve(moduleDirectory, \"../src/assets\"),\n resolve(process.cwd(), \"src/assets\"),\n ];\n\n return (\n candidates.find((candidate) => existsSync(candidate)) ?? resolve(process.cwd(), \"src/assets\")\n );\n}\n\nexport class ModelCatalogLoader {\n readonly #loader: AssetReader;\n #catalog?: ModelCatalog;\n\n constructor(options: ModelCatalogLoaderOptions = {}) {\n this.#loader = options.loader ?? new AssetLoader({ rootDirectory: defaultAssetsRoot() });\n }\n\n async load(): Promise<Result<AgentDevKitErrorCode, ModelCatalog>> {\n if (this.#catalog !== undefined) {\n return Result.ok(this.#catalog);\n }\n\n const payload = await this.#loader.loadJson<unknown>(\"models\", \"catalog.json\");\n\n if (payload.isErr()) {\n return Result.fail(payload.unwrapError());\n }\n\n const parsed = ModelCatalogSchema.safeParse(payload.unwrap());\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n this.#catalog = parsed.data;\n return Result.ok(this.#catalog);\n }\n\n async list(): Promise<Result<AgentDevKitErrorCode, ModelCatalogEntry[]>> {\n return (await this.load()).map((catalog) => catalog.models);\n }\n\n async find(id: string): Promise<Result<AgentDevKitErrorCode, ModelCatalogEntry>> {\n const catalog = await this.load();\n\n if (catalog.isErr()) {\n return Result.fail(catalog.unwrapError());\n }\n\n const entry = catalog.unwrap().models.find((model) => model.id === id);\n return entry === undefined ? Result.fail(ErrorCodes.ModelNotFound) : Result.ok(entry);\n }\n\n async recommended(): Promise<Result<AgentDevKitErrorCode, ModelCatalogEntry | undefined>> {\n const catalog = await this.load();\n\n if (catalog.isErr()) {\n return Result.fail(catalog.unwrapError());\n }\n\n const models = catalog.unwrap().models;\n return Result.ok(models.find((model) => model.recommended) ?? models[0]);\n }\n}\n","import { readFile, realpath } from \"node:fs/promises\";\nimport { join, relative, resolve } from \"node:path\";\nimport type { AssetKind, AssetReader } from \"../bases/assets\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport { Result } from \"../bases/result\";\n\nexport type AssetLoaderOptions = {\n readonly rootDirectory: string;\n};\n\nconst textDecoder = new TextDecoder();\n\nexport class AssetLoader implements AssetReader {\n readonly #rootDirectory: string;\n\n constructor(options: AssetLoaderOptions) {\n this.#rootDirectory = resolve(options.rootDirectory);\n }\n\n async loadBinary(\n kind: AssetKind,\n name: string,\n ): Promise<Result<AgentDevKitErrorCode, Uint8Array>> {\n const target = await this.#resolve(kind, name);\n\n if (target.isErr()) {\n return Result.fail(target.unwrapError());\n }\n\n try {\n return Result.ok(await readFile(target.unwrap()));\n } catch {\n return Result.fail(ErrorCodes.AssetReadFailed);\n }\n }\n\n async loadJson<TValue>(\n kind: AssetKind,\n name: string,\n ): Promise<Result<AgentDevKitErrorCode, TValue>> {\n const content = await this.loadText(kind, name);\n\n if (content.isErr()) {\n return Result.fail(content.unwrapError());\n }\n\n try {\n return Result.ok(JSON.parse(content.unwrap()) as TValue);\n } catch {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n }\n\n async loadText(kind: AssetKind, name: string): Promise<Result<AgentDevKitErrorCode, string>> {\n const binary = await this.loadBinary(kind, name);\n\n if (binary.isErr()) {\n return Result.fail(binary.unwrapError());\n }\n\n return Result.ok(textDecoder.decode(binary.unwrap()));\n }\n\n async #resolve(kind: AssetKind, name: string): Promise<Result<AgentDevKitErrorCode, string>> {\n const target = resolve(join(this.#rootDirectory, kind, name));\n const pathFromRoot = relative(this.#rootDirectory, target);\n\n if (pathFromRoot.startsWith(\"..\") || pathFromRoot === \"\") {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n try {\n const [realRoot, realTarget] = await Promise.all([\n realpath(this.#rootDirectory),\n realpath(target),\n ]);\n const realPathFromRoot = relative(realRoot, realTarget);\n\n if (realPathFromRoot.startsWith(\"..\") || realPathFromRoot === \"\") {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok(realTarget);\n } catch {\n return Result.fail(ErrorCodes.AssetReadFailed);\n }\n }\n}\n","import type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport type { InstalledModel, ModelCatalogEntry } from \"../../../../infra/bases/model\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport { ModelCatalogLoader } from \"../../../../infra/models/model_catalog\";\nimport { type ModelDownloadProgress, ModelStore } from \"../../../../infra/models/model_store\";\nimport type { ModelView } from \"./registry.entities\";\n\nexport type ModelInstallProgress = (progress: ModelDownloadProgress) => void;\n\nexport interface ModelsRegistryRepositoryPort extends CapabilityRepositoryPort {\n directory(): string;\n defaultId(): Promise<Result<AgentDevKitErrorCode, string | undefined>>;\n install(\n id: string,\n onProgress?: ModelInstallProgress,\n ): Promise<Result<AgentDevKitErrorCode, ModelView>>;\n listModels(): Promise<Result<AgentDevKitErrorCode, ModelView[]>>;\n setDefault(id: string, role?: \"agent\" | \"chat\"): Promise<Result<AgentDevKitErrorCode, string>>;\n statusModels(id?: string): Promise<Result<AgentDevKitErrorCode, ModelView[]>>;\n uninstall(id: string): Promise<Result<AgentDevKitErrorCode, { id: string; removed: boolean }>>;\n update(id?: string): Promise<Result<AgentDevKitErrorCode, ModelView[]>>;\n}\n\nexport type ModelsRegistryRepositoryOptions = {\n catalog?: ModelCatalogLoader;\n store?: ModelStore;\n stateDirectory?: string;\n};\n\nexport class ModelsRegistryRepository implements ModelsRegistryRepositoryPort {\n readonly repositoryId = \"models.registry.repository\";\n readonly #catalog: ModelCatalogLoader;\n readonly #store: ModelStore;\n\n constructor(options: ModelsRegistryRepositoryOptions = {}) {\n this.#catalog = options.catalog ?? new ModelCatalogLoader();\n this.#store = options.store ?? new ModelStore({ stateDirectory: options.stateDirectory });\n }\n\n directory(): string {\n return this.#store.directory();\n }\n\n defaultId(): Promise<Result<AgentDevKitErrorCode, string | undefined>> {\n return this.#store.getDefault();\n }\n\n async listModels(): Promise<Result<AgentDevKitErrorCode, ModelView[]>> {\n const catalog = await this.#catalog.list();\n return catalog.isErr()\n ? Result.fail(catalog.unwrapError())\n : this.#buildViews(catalog.unwrap());\n }\n\n async statusModels(id?: string): Promise<Result<AgentDevKitErrorCode, ModelView[]>> {\n const catalog = await this.#catalog.list();\n\n if (catalog.isErr()) {\n return Result.fail(catalog.unwrapError());\n }\n\n const entries =\n id === undefined ? catalog.unwrap() : catalog.unwrap().filter((entry) => entry.id === id);\n\n if (id !== undefined && entries.length === 0) {\n return Result.fail(ErrorCodes.ModelNotFound);\n }\n\n return this.#buildViews(entries);\n }\n\n async install(\n id: string,\n onProgress?: ModelInstallProgress,\n ): Promise<Result<AgentDevKitErrorCode, ModelView>> {\n const entry = await this.#catalog.find(id);\n\n if (entry.isErr()) {\n return Result.fail(entry.unwrapError());\n }\n\n const installed = await this.#store.install(entry.unwrap(), { onProgress });\n\n if (installed.isErr()) {\n return Result.fail(installed.unwrapError());\n }\n\n const defaultId = await this.#store.getDefault();\n\n return Result.ok(\n this.#toView(\n entry.unwrap(),\n installed.unwrap(),\n defaultId.isOk() ? defaultId.unwrap() : undefined,\n ),\n );\n }\n\n async uninstall(\n id: string,\n ): Promise<Result<AgentDevKitErrorCode, { id: string; removed: boolean }>> {\n const removed = await this.#store.uninstall(id);\n\n return removed.isOk()\n ? Result.ok({ id, removed: removed.unwrap().removed })\n : Result.fail(removed.unwrapError());\n }\n\n async update(id?: string): Promise<Result<AgentDevKitErrorCode, ModelView[]>> {\n if (id !== undefined) {\n const view = await this.install(id);\n return view.isOk() ? Result.ok([view.unwrap()]) : Result.fail(view.unwrapError());\n }\n\n const installedIds = await this.#store.installedIds();\n\n if (installedIds.isErr()) {\n return Result.fail(installedIds.unwrapError());\n }\n\n const views: ModelView[] = [];\n\n for (const modelId of installedIds.unwrap()) {\n const entry = await this.#catalog.find(modelId);\n\n if (entry.isErr()) {\n continue;\n }\n\n const verified = await this.#store.verify(modelId, entry.unwrap().sha256);\n\n if (verified.isOk() && verified.unwrap() === false) {\n const repaired = await this.install(modelId);\n\n if (repaired.isOk()) {\n views.push(repaired.unwrap());\n continue;\n }\n }\n\n const status = await this.#store.status(modelId);\n const defaultId = await this.#store.getDefault();\n views.push(\n this.#toView(\n entry.unwrap(),\n status.isOk() ? status.unwrap() : undefined,\n defaultId.isOk() ? defaultId.unwrap() : undefined,\n ),\n );\n }\n\n return Result.ok(views);\n }\n\n async setDefault(\n id: string,\n role?: \"agent\" | \"chat\",\n ): Promise<Result<AgentDevKitErrorCode, string>> {\n const set = await this.#store.setDefault(id, role);\n return set.isOk() ? Result.ok(id) : Result.fail(set.unwrapError());\n }\n\n async #buildViews(\n entries: ModelCatalogEntry[],\n ): Promise<Result<AgentDevKitErrorCode, ModelView[]>> {\n const defaultId = await this.#store.getDefault();\n const resolvedDefault = defaultId.isOk() ? defaultId.unwrap() : undefined;\n const views: ModelView[] = [];\n\n for (const entry of entries) {\n const status = await this.#store.status(entry.id);\n views.push(this.#toView(entry, status.isOk() ? status.unwrap() : undefined, resolvedDefault));\n }\n\n return Result.ok(views);\n }\n\n #toView(\n entry: ModelCatalogEntry,\n installed: InstalledModel | undefined,\n defaultId: string | undefined,\n ): ModelView {\n return {\n id: entry.id,\n name: entry.name,\n family: entry.family,\n parameters: entry.parameters,\n quantization: entry.quantization,\n sizeBytes: installed?.sizeBytes ?? entry.sizeBytes,\n contextLength: entry.contextLength,\n license: entry.license,\n recommended: entry.recommended,\n installed: installed !== undefined,\n isDefault: defaultId === entry.id,\n path: installed?.path,\n };\n }\n}\n","import { z } from \"zod\";\n\nexport const ModelsRegistryOptionsSchema = z.discriminatedUnion(\"action\", [\n z.object({ action: z.literal(\"list\") }).strict(),\n z.object({ action: z.literal(\"status\"), id: z.string().min(1).optional() }).strict(),\n z.object({ action: z.literal(\"install\"), id: z.string().min(1) }).strict(),\n z.object({ action: z.literal(\"uninstall\"), id: z.string().min(1) }).strict(),\n z.object({ action: z.literal(\"update\"), id: z.string().min(1).optional() }).strict(),\n z\n .object({\n action: z.literal(\"use\"),\n id: z.string().min(1),\n role: z.enum([\"agent\", \"chat\"]).optional(),\n })\n .strict(),\n]);\n\nexport type ModelsRegistryOptions =\n | { action: \"list\" }\n | { action: \"status\"; id?: string }\n | { action: \"install\"; id: string }\n | { action: \"uninstall\"; id: string }\n | { action: \"update\"; id?: string }\n | { action: \"use\"; id: string; role?: \"agent\" | \"chat\" };\n\nexport const ModelViewSchema = z.object({\n id: z.string().min(1),\n name: z.string().min(1),\n family: z.string().min(1),\n parameters: z.string().min(1),\n quantization: z.string().min(1),\n sizeBytes: z.number().int().nonnegative(),\n contextLength: z.number().int().positive(),\n license: z.string().min(1),\n recommended: z.boolean(),\n installed: z.boolean(),\n isDefault: z.boolean(),\n path: z.string().min(1).optional(),\n});\n\nexport type ModelView = z.infer<typeof ModelViewSchema>;\n\nexport const ModelsRegistryResultSchema = z.discriminatedUnion(\"action\", [\n z.object({\n action: z.literal(\"list\"),\n directory: z.string().min(1),\n models: z.array(ModelViewSchema),\n defaultId: z.string().min(1).optional(),\n }),\n z.object({\n action: z.literal(\"status\"),\n directory: z.string().min(1),\n models: z.array(ModelViewSchema),\n }),\n z.object({\n action: z.literal(\"install\"),\n directory: z.string().min(1),\n model: ModelViewSchema,\n }),\n z.object({\n action: z.literal(\"uninstall\"),\n directory: z.string().min(1),\n id: z.string().min(1),\n removed: z.boolean(),\n }),\n z.object({\n action: z.literal(\"update\"),\n directory: z.string().min(1),\n models: z.array(ModelViewSchema),\n }),\n z.object({\n action: z.literal(\"use\"),\n directory: z.string().min(1),\n defaultId: z.string().min(1),\n role: z.enum([\"agent\", \"chat\"]).optional(),\n }),\n]);\n\nexport type ModelsRegistryResult =\n | { action: \"list\"; directory: string; models: ModelView[]; defaultId?: string }\n | { action: \"status\"; directory: string; models: ModelView[] }\n | { action: \"install\"; directory: string; model: ModelView }\n | { action: \"uninstall\"; directory: string; id: string; removed: boolean }\n | { action: \"update\"; directory: string; models: ModelView[] }\n | { action: \"use\"; directory: string; defaultId: string; role?: \"agent\" | \"chat\" };\n","import {\n BaseCapabilityService,\n type CapabilityApproval,\n type CapabilityEffect,\n type CapabilityInvocationContext,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type ModelsRegistryOptions,\n ModelsRegistryOptionsSchema,\n type ModelsRegistryResult,\n ModelsRegistryResultSchema,\n} from \"./registry.entities\";\nimport type { ModelsRegistryRepositoryPort } from \"./registry.repository\";\n\ntype ModelsRegistryServiceDependencies = {\n repository: ModelsRegistryRepositoryPort;\n};\n\nexport const modelsRegistryCapabilityConfig = defineCapabilityConfig({\n id: \"models.registry\",\n moduleId: \"models\",\n name: \"Models registry\",\n description: \"List, install, update, remove and select local LLM model artifacts.\",\n kind: \"deterministic\",\n risk: \"writes-global-state\",\n} as const);\n\nexport class ModelsRegistryService extends BaseCapabilityService<\n typeof modelsRegistryCapabilityConfig,\n ModelsRegistryServiceDependencies\n> {\n readonly inputSchema = ModelsRegistryOptionsSchema;\n readonly outputSchema = ModelsRegistryResultSchema;\n readonly #repository: ModelsRegistryRepositoryPort;\n\n constructor(dependencies: ModelsRegistryServiceDependencies) {\n super(modelsRegistryCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: ModelsRegistryOptions,\n ): Promise<Result<AgentDevKitErrorCode, ModelsRegistryResult>> {\n const parsed = this.inputSchema.safeParse(options);\n\n if (!parsed.success) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return this.#run(parsed.data);\n }\n\n invoke(\n options: ModelsRegistryOptions,\n _context: CapabilityInvocationContext,\n ): Promise<Result<AgentDevKitErrorCode, ModelsRegistryResult>> {\n return this.execute(options);\n }\n\n override approvalForInput(input: ModelsRegistryOptions): CapabilityApproval {\n if (input.action === \"list\" || input.action === \"status\") {\n return { reason: \"Models registry read action.\", required: false };\n }\n\n return {\n reason: \"Models registry action writes local model state.\",\n required: true,\n };\n }\n\n override effectsForInput(input: ModelsRegistryOptions): CapabilityEffect[] {\n if (input.action === \"list\" || input.action === \"status\") {\n return [{ operation: \"read\", scope: \"none\" }];\n }\n\n if (input.action === \"uninstall\") {\n return [{ operation: \"delete\", scope: \"global\" }];\n }\n\n return [{ operation: \"write\", scope: \"global\" }];\n }\n\n async #run(\n options: ModelsRegistryOptions,\n ): Promise<Result<AgentDevKitErrorCode, ModelsRegistryResult>> {\n const directory = this.#repository.directory();\n\n if (options.action === \"list\") {\n const models = await this.#repository.listModels();\n\n if (models.isErr()) {\n return Result.fail(models.unwrapError());\n }\n\n const defaultId = await this.#repository.defaultId();\n\n return Result.ok({\n action: \"list\",\n directory,\n models: models.unwrap(),\n defaultId: defaultId.isOk() ? defaultId.unwrap() : undefined,\n });\n }\n\n if (options.action === \"status\") {\n const models = await this.#repository.statusModels(options.id);\n\n return models.isOk()\n ? Result.ok({ action: \"status\", directory, models: models.unwrap() })\n : Result.fail(models.unwrapError());\n }\n\n if (options.action === \"install\") {\n const model = await this.#repository.install(options.id);\n\n return model.isOk()\n ? Result.ok({ action: \"install\", directory, model: model.unwrap() })\n : Result.fail(model.unwrapError());\n }\n\n if (options.action === \"uninstall\") {\n const removed = await this.#repository.uninstall(options.id);\n\n return removed.isOk()\n ? Result.ok({\n action: \"uninstall\",\n directory,\n id: removed.unwrap().id,\n removed: removed.unwrap().removed,\n })\n : Result.fail(removed.unwrapError());\n }\n\n if (options.action === \"update\") {\n const models = await this.#repository.update(options.id);\n\n return models.isOk()\n ? Result.ok({ action: \"update\", directory, models: models.unwrap() })\n : Result.fail(models.unwrapError());\n }\n\n const defaultId = await this.#repository.setDefault(options.id, options.role);\n\n return defaultId.isOk()\n ? Result.ok({ action: \"use\", directory, defaultId: defaultId.unwrap(), role: options.role })\n : Result.fail(defaultId.unwrapError());\n }\n}\n","import { defineModuleConfig } from \"../../infra/bases/module\";\nimport { modelsRegistryCapabilityConfig } from \"./capabilities/registry/registry.service\";\n\nexport const modelsModuleConfig = defineModuleConfig({\n id: \"models\",\n name: \"Models\",\n description: \"Local LLM model catalog and lifecycle: list, install, update, remove and select.\",\n capabilities: [modelsRegistryCapabilityConfig.id],\n tests: {\n include: [\n \"src/modules/models/models.surface.test.ts\",\n \"src/modules/models/capabilities/**/*.test.ts\",\n ],\n },\n} as const);\n","import { defineModuleBinding, ModuleBinder, type ModuleBinding } from \"../../infra/bases/bind\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport {\n ModelsRegistryRepository,\n type ModelsRegistryRepositoryPort,\n} from \"./capabilities/registry/registry.repository\";\nimport { ModelsRegistryService } from \"./capabilities/registry/registry.service\";\nimport { modelsModuleConfig } from \"./models.config\";\n\nexport type ModelsModuleBindOptions = {\n homeDirectory?: string;\n stateDirectory?: string;\n};\n\nexport type ModelsModuleCapabilities = {\n registry: ModelsRegistryService;\n};\n\nexport type ModelsModuleBinding = ModuleBinding<\n typeof modelsModuleConfig,\n ModelsModuleCapabilities\n>;\n\ntype ModelsModuleBinderDependencies = {\n registryRepository: (options: ModelsModuleBindOptions) => ModelsRegistryRepositoryPort;\n};\n\nfunction stateDirectory(options: ModelsModuleBindOptions): string | undefined {\n return (\n options.stateDirectory ??\n (options.homeDirectory ? `${options.homeDirectory}/.agent-devkit` : undefined)\n );\n}\n\nconst defaultDependencies: ModelsModuleBinderDependencies = {\n registryRepository: (options) =>\n new ModelsRegistryRepository({ stateDirectory: stateDirectory(options) }),\n};\n\nexport class ModelsModuleBinder extends ModuleBinder<\n ModelsModuleBindOptions,\n typeof modelsModuleConfig,\n ModelsModuleCapabilities\n> {\n readonly #dependencies: ModelsModuleBinderDependencies;\n\n constructor(dependencies: ModelsModuleBinderDependencies = defaultDependencies) {\n super();\n this.#dependencies = dependencies;\n }\n\n override bind(\n options: ModelsModuleBindOptions = {},\n ): Result<AgentDevKitErrorCode, ModelsModuleBinding> {\n return defineModuleBinding({\n config: modelsModuleConfig,\n capabilities: {\n registry: new ModelsRegistryService({\n repository: this.#dependencies.registryRepository(options),\n }),\n },\n });\n }\n}\n\nexport function createModelsModuleBindings(\n options: ModelsModuleBindOptions = {},\n): Result<AgentDevKitErrorCode, ModelsModuleBinding> {\n return new ModelsModuleBinder().bind(options);\n}\n","import { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { Result } from \"../../infra/bases/result\";\nimport type { IModuleSurface, SurfacePromptInput } from \"../../infra/bases/surface\";\nimport { surfaceCapabilitiesFromConfigs } from \"../../infra/helpers/surface_capabilities\";\nimport { resolveModuleSurfaceDirectory, SurfaceLoader } from \"../../infra/helpers/surface_loader\";\nimport { modelsRegistryCapabilityConfig } from \"./capabilities/registry/registry.service\";\n\nconst moduleDirectory = dirname(fileURLToPath(import.meta.url));\n\nexport function createModelsSurface(): IModuleSurface {\n const loader = new SurfaceLoader(resolveModuleSurfaceDirectory(\"models\", moduleDirectory));\n\n return {\n moduleId: \"models\",\n capabilities: async () =>\n Result.ok(surfaceCapabilitiesFromConfigs([modelsRegistryCapabilityConfig])),\n knowledge: () => loader.knowledge(),\n loop: () => loader.loop(),\n prompt: (input?: SurfacePromptInput) => loader.prompt(input),\n skill: () => loader.skill(),\n };\n}\n","import { randomBytes } from \"node:crypto\";\nimport { access, chmod, mkdir, readFile, rename, unlink, writeFile } from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { dirname, join } from \"node:path\";\nimport type { EncryptedPayload, SecretCrypto } from \"../bases/crypto\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport type { Logger } from \"../bases/logger\";\nimport { NullLogger } from \"../bases/logger\";\nimport { Result } from \"../bases/result\";\nimport { errorCause } from \"../helpers/error_cause\";\n\nexport type SecretMetadata = {\n createdAt: string;\n name: string;\n service?: string;\n updatedAt: string;\n};\n\nexport type SecretAuditAction = \"created\" | \"removed\" | \"revealed\" | \"rotated\" | \"updated\";\n\nexport type SecretAuditEntry = {\n action: SecretAuditAction;\n name: string;\n service?: string;\n timestamp: string;\n};\n\nexport type StoredSecret = SecretMetadata & {\n encrypted: EncryptedPayload;\n};\n\nexport type SecretSummary = SecretMetadata;\nexport type RevealedSecret = {\n secret: SecretSummary;\n value: string;\n};\n\ntype VaultFile = {\n audit: SecretAuditEntry[];\n schema: \"agent-devkit.secret-vault/v1\";\n secrets: StoredSecret[];\n};\n\nexport type EncryptedSecretStoreOptions = {\n clock?: () => Date;\n crypto: SecretCrypto;\n logger?: Logger;\n stateDirectory?: string;\n};\n\nfunction defaultStateDirectory(): string {\n return join(homedir(), \".agent-devkit\");\n}\n\nfunction defaultVault(): VaultFile {\n return {\n audit: [],\n schema: \"agent-devkit.secret-vault/v1\",\n secrets: [],\n };\n}\n\nfunction isNotFoundError(error: unknown): boolean {\n return (\n typeof error === \"object\" &&\n error !== null &&\n \"code\" in error &&\n (error as { code?: unknown }).code === \"ENOENT\"\n );\n}\n\nfunction sortSecrets(left: SecretSummary, right: SecretSummary): number {\n return left.name.localeCompare(right.name);\n}\n\nexport class EncryptedSecretStore {\n readonly #clock: () => Date;\n readonly #crypto: SecretCrypto;\n readonly #legacyVaultPath: string;\n readonly #logger: Logger;\n readonly #vaultPath: string;\n\n constructor(options: EncryptedSecretStoreOptions) {\n const stateDirectory = options.stateDirectory ?? defaultStateDirectory();\n this.#clock = options.clock ?? (() => new Date());\n this.#crypto = options.crypto;\n this.#logger = options.logger ?? new NullLogger();\n this.#vaultPath = join(stateDirectory, \"data\", \"secrets\", \"vault.json\");\n this.#legacyVaultPath = join(stateDirectory, \"secrets\", \"vault.json\");\n }\n\n path(): string {\n return this.#vaultPath;\n }\n\n async get(name: string): Promise<Result<AgentDevKitErrorCode, string>> {\n const vault = await this.#readVault();\n\n if (vault.isErr()) {\n return Result.fail(vault.unwrapError());\n }\n\n const secret = vault.unwrap().secrets.find((candidate) => candidate.name === name);\n\n if (secret === undefined) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return this.#crypto.decryptString(secret.encrypted);\n }\n\n async reveal(name: string): Promise<Result<AgentDevKitErrorCode, RevealedSecret>> {\n const vault = await this.#readVault();\n\n if (vault.isErr()) {\n return Result.fail(vault.unwrapError());\n }\n\n const existing = vault.unwrap();\n const secret = existing.secrets.find((candidate) => candidate.name === name);\n\n if (secret === undefined) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const value = await this.#crypto.decryptString(secret.encrypted);\n\n if (value.isErr()) {\n return Result.fail(value.unwrapError());\n }\n\n const save = await this.#writeVault({\n ...existing,\n audit: [...existing.audit, this.#auditEntry(\"revealed\", secret)],\n });\n\n return save.isOk()\n ? Result.ok({\n secret: this.#summary(secret),\n value: value.unwrap(),\n })\n : Result.fail(save.unwrapError());\n }\n\n async list(): Promise<Result<AgentDevKitErrorCode, SecretSummary[]>> {\n const vault = await this.#readVault();\n\n if (vault.isErr()) {\n return Result.fail(vault.unwrapError());\n }\n\n return Result.ok(\n vault\n .unwrap()\n .secrets.map((secret) => this.#summary(secret))\n .sort(sortSecrets),\n );\n }\n\n async audit(name?: string): Promise<Result<AgentDevKitErrorCode, SecretAuditEntry[]>> {\n const vault = await this.#readVault();\n\n if (vault.isErr()) {\n return Result.fail(vault.unwrapError());\n }\n\n const events = vault\n .unwrap()\n .audit.filter((entry) => name === undefined || entry.name === name)\n .sort((left, right) => left.timestamp.localeCompare(right.timestamp));\n\n return Result.ok(events);\n }\n\n async remove(name: string): Promise<Result<AgentDevKitErrorCode, { removed: boolean }>> {\n const vault = await this.#readVault();\n\n if (vault.isErr()) {\n return Result.fail(vault.unwrapError());\n }\n\n const existing = vault.unwrap();\n const removed = existing.secrets.find((secret) => secret.name === name);\n const next: VaultFile = {\n ...existing,\n audit:\n removed === undefined\n ? existing.audit\n : [...existing.audit, this.#auditEntry(\"removed\", removed)],\n secrets: existing.secrets.filter((secret) => secret.name !== name),\n };\n const save = await this.#writeVault(next);\n\n if (save.isErr()) {\n return Result.fail(save.unwrapError());\n }\n\n return Result.ok({ removed: next.secrets.length !== existing.secrets.length });\n }\n\n async rotate(\n name: string,\n value: string,\n metadata: { service?: string } = {},\n ): Promise<Result<AgentDevKitErrorCode, SecretSummary>> {\n if (name.trim().length === 0 || value.length === 0) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const vault = await this.#readVault();\n\n if (vault.isErr()) {\n return Result.fail(vault.unwrapError());\n }\n\n const existing = vault.unwrap().secrets.find((secret) => secret.name === name);\n\n if (existing === undefined) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const encrypted = await this.#crypto.encryptString(value);\n\n if (encrypted.isErr()) {\n return Result.fail(encrypted.unwrapError());\n }\n\n const now = this.#now();\n const secret: StoredSecret = {\n createdAt: existing.createdAt,\n encrypted: encrypted.unwrap(),\n name,\n service: metadata.service ?? existing.service,\n updatedAt: now,\n };\n const next: VaultFile = {\n schema: \"agent-devkit.secret-vault/v1\",\n audit: [...vault.unwrap().audit, this.#auditEntry(\"rotated\", secret, now)],\n secrets: [...vault.unwrap().secrets.filter((candidate) => candidate.name !== name), secret],\n };\n const save = await this.#writeVault(next);\n\n if (save.isErr()) {\n return Result.fail(save.unwrapError());\n }\n\n return Result.ok({\n createdAt: secret.createdAt,\n name: secret.name,\n service: secret.service,\n updatedAt: secret.updatedAt,\n });\n }\n\n async set(\n name: string,\n value: string,\n metadata: { service?: string } = {},\n ): Promise<Result<AgentDevKitErrorCode, SecretSummary>> {\n if (name.trim().length === 0 || value.length === 0) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n const vault = await this.#readVault();\n\n if (vault.isErr()) {\n return Result.fail(vault.unwrapError());\n }\n\n const encrypted = await this.#crypto.encryptString(value);\n\n if (encrypted.isErr()) {\n return Result.fail(encrypted.unwrapError());\n }\n\n const now = this.#now();\n const existing = vault.unwrap().secrets.find((secret) => secret.name === name);\n const secret: StoredSecret = {\n createdAt: existing?.createdAt ?? now,\n encrypted: encrypted.unwrap(),\n name,\n service: metadata.service ?? existing?.service,\n updatedAt: now,\n };\n const next: VaultFile = {\n schema: \"agent-devkit.secret-vault/v1\",\n audit: [\n ...vault.unwrap().audit,\n this.#auditEntry(existing === undefined ? \"created\" : \"updated\", secret, now),\n ],\n secrets: [...vault.unwrap().secrets.filter((candidate) => candidate.name !== name), secret],\n };\n const save = await this.#writeVault(next);\n\n if (save.isErr()) {\n return Result.fail(save.unwrapError());\n }\n\n return Result.ok({\n createdAt: secret.createdAt,\n name: secret.name,\n service: secret.service,\n updatedAt: secret.updatedAt,\n });\n }\n\n async #readVault(): Promise<Result<AgentDevKitErrorCode, VaultFile>> {\n try {\n await access(this.#vaultPath);\n } catch (error) {\n if (!isNotFoundError(error)) {\n this.#logger.write(\"error\", \"Secret vault access failed.\", {\n error: errorCause(error),\n path: this.#vaultPath,\n });\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n\n try {\n await access(this.#legacyVaultPath);\n } catch (legacyError) {\n if (!isNotFoundError(legacyError)) {\n this.#logger.write(\"error\", \"Legacy secret vault access failed.\", {\n error: errorCause(legacyError),\n path: this.#legacyVaultPath,\n });\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n\n return Result.ok(defaultVault());\n }\n\n const legacy = await this.#readVaultFile(this.#legacyVaultPath);\n\n if (legacy.isErr()) {\n return Result.fail(legacy.unwrapError());\n }\n\n const migrate = await this.#writeVault(legacy.unwrap());\n\n if (migrate.isErr()) {\n return Result.fail(migrate.unwrapError());\n }\n\n this.#logger.write(\"info\", \"Secret vault migrated to canonical data directory.\", {\n from: this.#legacyVaultPath,\n to: this.#vaultPath,\n });\n\n return legacy;\n }\n\n return this.#readVaultFile(this.#vaultPath);\n }\n\n async #readVaultFile(path: string): Promise<Result<AgentDevKitErrorCode, VaultFile>> {\n try {\n const payload = JSON.parse(await readFile(path, \"utf8\")) as Partial<VaultFile>;\n\n if (payload.schema !== \"agent-devkit.secret-vault/v1\" || !Array.isArray(payload.secrets)) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok({\n audit: Array.isArray(payload.audit) ? payload.audit : [],\n schema: payload.schema,\n secrets: payload.secrets,\n });\n } catch (error) {\n this.#logger.write(\"error\", \"Secret vault read failed.\", {\n error: errorCause(error),\n path,\n });\n return Result.fail(ErrorCodes.FileReadFailed);\n }\n }\n\n async #writeVault(vault: VaultFile): Promise<Result<AgentDevKitErrorCode, void>> {\n const directory = dirname(this.#vaultPath);\n const tempPath = join(directory, `.vault-${process.pid}-${randomBytes(6).toString(\"hex\")}.tmp`);\n\n try {\n await mkdir(directory, { recursive: true, mode: 0o700 });\n await writeFile(tempPath, `${JSON.stringify(vault, null, 2)}\\n`, {\n flag: \"wx\",\n mode: 0o600,\n });\n if (process.platform !== \"win32\") {\n await chmod(tempPath, 0o600);\n }\n await rename(tempPath, this.#vaultPath);\n return Result.ok(undefined);\n } catch (error) {\n await unlink(tempPath).catch(() => undefined);\n this.#logger.write(\"error\", \"Secret vault write failed.\", {\n error: errorCause(error),\n path: this.#vaultPath,\n });\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n #summary(secret: SecretMetadata): SecretSummary {\n return {\n createdAt: secret.createdAt,\n name: secret.name,\n service: secret.service,\n updatedAt: secret.updatedAt,\n };\n }\n\n #auditEntry(action: SecretAuditAction, secret: SecretMetadata, timestamp = this.#now()) {\n return {\n action,\n name: secret.name,\n service: secret.service,\n timestamp,\n };\n }\n\n #now(): string {\n return this.#clock().toISOString();\n }\n}\n","import type { AgentDevKitErrorCode } from \"./errors\";\nimport type { Result } from \"./result\";\n\nexport type LogLevel = \"debug\" | \"error\" | \"info\" | \"warn\";\nexport type UsageLogArea = \"project\" | \"self\" | \"system\" | \"user\";\nexport type UsageLogInterface = \"cli\" | \"mcp\" | \"tui\";\nexport type UsageLogStatus = \"failed\" | \"succeeded\";\n\nexport interface Logger {\n write(level: LogLevel, message: string, metadata?: Record<string, unknown>): void;\n}\n\nexport type UsageLogInput = {\n area: UsageLogArea;\n argv: string[];\n command: string;\n createStateIfMissing?: boolean;\n durationMs: number;\n error?: {\n message: string;\n name: string;\n };\n interface: UsageLogInterface;\n options: Record<string, unknown>;\n status: UsageLogStatus;\n};\n\nexport type UsageLogEvent = UsageLogInput & {\n category: \"usage\";\n level: \"error\" | \"info\";\n schema: \"agent-devkit.usage-log/v1\";\n timestamp: string;\n};\n\nexport interface UsageLogger {\n writeUsage(event: UsageLogInput): Promise<Result<AgentDevKitErrorCode, void>>;\n}\n\nexport type TechnicalLogInput = {\n area: UsageLogArea;\n command?: string;\n createStateIfMissing?: boolean;\n durationMs?: number;\n error?: {\n message: string;\n name: string;\n };\n event: string;\n interface: UsageLogInterface;\n level: LogLevel;\n message: string;\n metadata?: Record<string, unknown>;\n};\n\nexport type TechnicalLogEvent = TechnicalLogInput & {\n category: \"technical\";\n schema: \"agent-devkit.technical-log/v1\";\n timestamp: string;\n};\n\nexport interface TechnicalLogger {\n writeTechnical(event: TechnicalLogInput): Promise<Result<AgentDevKitErrorCode, void>>;\n}\n\nexport class ConsoleLogger implements Logger {\n write(level: LogLevel, message: string, metadata?: Record<string, unknown>): void {\n const payload = metadata ? ` ${JSON.stringify(metadata)}` : \"\";\n console.error(`[${level}] ${message}${payload}`);\n }\n}\n\nexport class NullLogger implements Logger {\n write(): void {\n // Intentionally empty.\n }\n}\n","export type ErrorCause = {\n code?: string;\n message: string;\n name: string;\n};\n\nexport function errorCause(error: unknown): ErrorCause {\n if (error instanceof Error) {\n const code =\n typeof (error as NodeJS.ErrnoException).code === \"string\"\n ? (error as NodeJS.ErrnoException).code\n : undefined;\n\n return {\n code,\n message: error.message,\n name: error.name,\n };\n }\n\n return {\n message: String(error),\n name: \"Error\",\n };\n}\n","import { randomBytes } from \"node:crypto\";\nimport { chmod, mkdir, readFile, writeFile } from \"node:fs/promises\";\nimport { homedir } from \"node:os\";\nimport { dirname, join } from \"node:path\";\nimport type { SecretKeyProvider } from \"../bases/crypto\";\nimport type { Logger } from \"../bases/logger\";\nimport { NullLogger } from \"../bases/logger\";\nimport { errorCause } from \"../helpers/error_cause\";\n\nexport type LocalMasterKeyProviderOptions = {\n logger?: Logger;\n stateDirectory?: string;\n};\n\nfunction defaultStateDirectory(): string {\n return join(homedir(), \".agent-devkit\");\n}\n\nexport class LocalMasterKeyProvider implements SecretKeyProvider {\n readonly #legacyKeyPaths: string[];\n readonly #keyPath: string;\n readonly #logger: Logger;\n\n constructor(options: LocalMasterKeyProviderOptions = {}) {\n const stateDirectory = options.stateDirectory ?? defaultStateDirectory();\n this.#keyPath = join(stateDirectory, \"keys\", \"master.key\");\n this.#legacyKeyPaths = [\n join(stateDirectory, \"keys\", \"local.key\"),\n join(stateDirectory, \"secrets\", \"master.key\"),\n join(stateDirectory, \"master.key\"),\n ];\n this.#logger = options.logger ?? new NullLogger();\n }\n\n keyId(): string {\n return \"local\";\n }\n\n async getKey(): Promise<Buffer> {\n try {\n return Buffer.from((await readFile(this.#keyPath, \"utf8\")).trim(), \"base64\");\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== \"ENOENT\") {\n this.#logger.write(\"error\", \"Local master key read failed.\", {\n error: errorCause(error),\n path: this.#keyPath,\n });\n throw error;\n }\n }\n\n const legacyKey = await this.#readLegacyKey();\n\n if (legacyKey !== undefined) {\n return this.#persistKey(legacyKey);\n }\n\n const key = randomBytes(32);\n return this.#persistKey(key);\n }\n\n async #persistKey(key: Buffer): Promise<Buffer> {\n await mkdir(dirname(this.#keyPath), { recursive: true, mode: 0o700 });\n\n try {\n await writeFile(this.#keyPath, `${key.toString(\"base64\")}\\n`, { flag: \"wx\", mode: 0o600 });\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === \"EEXIST\") {\n return Buffer.from((await readFile(this.#keyPath, \"utf8\")).trim(), \"base64\");\n }\n\n this.#logger.write(\"error\", \"Local master key creation failed.\", {\n error: errorCause(error),\n path: this.#keyPath,\n });\n throw error;\n }\n\n if (process.platform !== \"win32\") {\n await chmod(dirname(this.#keyPath), 0o700);\n await chmod(this.#keyPath, 0o600);\n }\n\n return key;\n }\n\n async #readLegacyKey(): Promise<Buffer | undefined> {\n for (const path of this.#legacyKeyPaths) {\n try {\n return Buffer.from((await readFile(path, \"utf8\")).trim(), \"base64\");\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code !== \"ENOENT\") {\n this.#logger.write(\"error\", \"Legacy local master key read failed.\", {\n error: errorCause(error),\n path,\n });\n throw error;\n }\n }\n }\n\n return undefined;\n }\n}\n","import { createCipheriv, createDecipheriv, randomBytes } from \"node:crypto\";\nimport type { EncryptedPayload, SecretCrypto, SecretKeyProvider } from \"../bases/crypto\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport type { Logger } from \"../bases/logger\";\nimport { NullLogger } from \"../bases/logger\";\nimport { Result } from \"../bases/result\";\nimport { errorCause } from \"../helpers/error_cause\";\n\nexport type LocalSecretCryptoOptions = {\n clock?: () => Date;\n keyProvider: SecretKeyProvider;\n logger?: Logger;\n};\n\nfunction keyId(provider: SecretKeyProvider): string {\n return provider.keyId?.() ?? \"local\";\n}\n\nasync function resolveKey(provider: SecretKeyProvider): Promise<Buffer> {\n const key = await provider.getKey();\n return Buffer.isBuffer(key) ? key : Buffer.from(key);\n}\n\nexport class LocalSecretCrypto implements SecretCrypto {\n readonly #clock: () => Date;\n readonly #keyProvider: SecretKeyProvider;\n readonly #logger: Logger;\n\n constructor(options: LocalSecretCryptoOptions) {\n this.#clock = options.clock ?? (() => new Date());\n this.#keyProvider = options.keyProvider;\n this.#logger = options.logger ?? new NullLogger();\n }\n\n async encryptString(value: string): Promise<Result<AgentDevKitErrorCode, EncryptedPayload>> {\n try {\n const key = await resolveKey(this.#keyProvider);\n\n if (key.length !== 32) {\n return Result.fail(ErrorCodes.EncryptionFailed);\n }\n\n const iv = randomBytes(12);\n const cipher = createCipheriv(\"aes-256-gcm\", key, iv);\n const ciphertext = Buffer.concat([cipher.update(value, \"utf8\"), cipher.final()]);\n const authTag = cipher.getAuthTag();\n\n return Result.ok({\n algorithm: \"aes-256-gcm\",\n authTag: authTag.toString(\"base64\"),\n ciphertext: ciphertext.toString(\"base64\"),\n createdAt: this.#clock().toISOString(),\n iv: iv.toString(\"base64\"),\n keyId: keyId(this.#keyProvider),\n schema: \"agent-devkit.encrypted-payload/v1\",\n });\n } catch (error) {\n this.#logger.write(\"error\", \"Secret encryption failed.\", { error: errorCause(error) });\n return Result.fail(ErrorCodes.EncryptionFailed);\n }\n }\n\n async decryptString(payload: EncryptedPayload): Promise<Result<AgentDevKitErrorCode, string>> {\n try {\n const key = await resolveKey(this.#keyProvider);\n\n if (\n key.length !== 32 ||\n payload.algorithm !== \"aes-256-gcm\" ||\n payload.keyId !== keyId(this.#keyProvider)\n ) {\n return Result.fail(ErrorCodes.DecryptionFailed);\n }\n\n const decipher = createDecipheriv(\"aes-256-gcm\", key, Buffer.from(payload.iv, \"base64\"));\n decipher.setAuthTag(Buffer.from(payload.authTag, \"base64\"));\n\n const decrypted = Buffer.concat([\n decipher.update(Buffer.from(payload.ciphertext, \"base64\")),\n decipher.final(),\n ]);\n\n return Result.ok(decrypted.toString(\"utf8\"));\n } catch (error) {\n this.#logger.write(\"error\", \"Secret decryption failed.\", { error: errorCause(error) });\n return Result.fail(ErrorCodes.DecryptionFailed);\n }\n }\n}\n","import type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../../../../infra/bases/errors\";\nimport type { Result } from \"../../../../infra/bases/result\";\nimport type {\n EncryptedSecretStore,\n RevealedSecret,\n SecretAuditEntry,\n SecretSummary,\n} from \"../../../../infra/crypto/encrypted_secret_store\";\n\nexport interface SecretsVaultRepositoryPort extends CapabilityRepositoryPort {\n audit(name?: string): Promise<Result<AgentDevKitErrorCode, SecretAuditEntry[]>>;\n get(name: string): Promise<Result<AgentDevKitErrorCode, string>>;\n list(): Promise<Result<AgentDevKitErrorCode, SecretSummary[]>>;\n path(): string;\n reveal(name: string): Promise<Result<AgentDevKitErrorCode, RevealedSecret>>;\n remove(name: string): Promise<Result<AgentDevKitErrorCode, { removed: boolean }>>;\n rotate(\n name: string,\n value: string,\n metadata?: { service?: string },\n ): Promise<Result<AgentDevKitErrorCode, SecretSummary>>;\n set(\n name: string,\n value: string,\n metadata?: { service?: string },\n ): Promise<Result<AgentDevKitErrorCode, SecretSummary>>;\n}\n\nexport type SecretsVaultRepositoryOptions = {\n store: EncryptedSecretStore;\n};\n\nexport class SecretsVaultRepository implements SecretsVaultRepositoryPort {\n readonly repositoryId = \"secrets.vault.repository\";\n readonly #store: EncryptedSecretStore;\n\n constructor(options: SecretsVaultRepositoryOptions) {\n this.#store = options.store;\n }\n\n audit(name?: string): Promise<Result<AgentDevKitErrorCode, SecretAuditEntry[]>> {\n return this.#store.audit(name);\n }\n\n get(name: string): Promise<Result<AgentDevKitErrorCode, string>> {\n return this.#store.get(name);\n }\n\n list(): Promise<Result<AgentDevKitErrorCode, SecretSummary[]>> {\n return this.#store.list();\n }\n\n path(): string {\n return this.#store.path();\n }\n\n remove(name: string): Promise<Result<AgentDevKitErrorCode, { removed: boolean }>> {\n return this.#store.remove(name);\n }\n\n reveal(name: string): Promise<Result<AgentDevKitErrorCode, RevealedSecret>> {\n return this.#store.reveal(name);\n }\n\n rotate(\n name: string,\n value: string,\n metadata: { service?: string } = {},\n ): Promise<Result<AgentDevKitErrorCode, SecretSummary>> {\n return this.#store.rotate(name, value, metadata);\n }\n\n set(\n name: string,\n value: string,\n metadata: { service?: string } = {},\n ): Promise<Result<AgentDevKitErrorCode, SecretSummary>> {\n return this.#store.set(name, value, metadata);\n }\n}\n","import { z } from \"zod\";\nimport type {\n SecretAuditEntry,\n SecretSummary,\n} from \"../../../../infra/crypto/encrypted_secret_store\";\n\nconst SecretViewSchema = z.object({\n createdAt: z.string().min(1),\n name: z.string().min(1),\n service: z.string().min(1).optional(),\n updatedAt: z.string().min(1),\n value: z.string().optional(),\n});\n\nconst SecretAuditEntrySchema = z.object({\n action: z.enum([\"created\", \"removed\", \"revealed\", \"rotated\", \"updated\"]),\n name: z.string().min(1),\n service: z.string().min(1).optional(),\n timestamp: z.string().min(1),\n});\n\nexport const SecretsVaultOptionsSchema = z.discriminatedUnion(\"action\", [\n z\n .object({\n action: z.literal(\"audit\"),\n name: z.string().min(1).optional(),\n })\n .strict(),\n z.object({ action: z.literal(\"list\") }).strict(),\n z\n .object({\n action: z.literal(\"remove\"),\n name: z.string().min(1),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"rotate\"),\n name: z.string().min(1),\n service: z.string().min(1).optional(),\n value: z.string().min(1),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"set\"),\n name: z.string().min(1),\n service: z.string().min(1).optional(),\n value: z.string().min(1),\n })\n .strict(),\n z\n .object({\n action: z.literal(\"show\"),\n name: z.string().min(1),\n reveal: z.boolean().optional(),\n })\n .strict(),\n]);\n\nexport type SecretView = SecretSummary & {\n value?: string;\n};\n\nexport type SecretsVaultOptions =\n | { action: \"audit\"; name?: string }\n | { action: \"list\" }\n | { action: \"remove\"; name: string }\n | { action: \"rotate\"; name: string; service?: string; value: string }\n | { action: \"set\"; name: string; service?: string; value: string }\n | { action: \"show\"; name: string; reveal?: boolean };\n\nexport type SecretsVaultResult =\n | {\n action: \"audit\";\n events: SecretAuditEntry[];\n path: string;\n }\n | {\n action: \"list\";\n path: string;\n secrets: SecretView[];\n }\n | {\n action: \"remove\";\n path: string;\n removed: boolean;\n secret: { name: string };\n }\n | {\n action: \"rotate\";\n path: string;\n secret: SecretView;\n }\n | {\n action: \"set\";\n path: string;\n secret: SecretView;\n }\n | {\n action: \"show\";\n path: string;\n secret: SecretView;\n };\n\nexport const SecretsVaultResultSchema = z.discriminatedUnion(\"action\", [\n z.object({\n action: z.literal(\"audit\"),\n events: z.array(SecretAuditEntrySchema),\n path: z.string().min(1),\n }),\n z.object({\n action: z.literal(\"list\"),\n path: z.string().min(1),\n secrets: z.array(SecretViewSchema),\n }),\n z.object({\n action: z.literal(\"remove\"),\n path: z.string().min(1),\n removed: z.boolean(),\n secret: z.object({ name: z.string().min(1) }),\n }),\n z.object({\n action: z.literal(\"rotate\"),\n path: z.string().min(1),\n secret: SecretViewSchema,\n }),\n z.object({\n action: z.literal(\"set\"),\n path: z.string().min(1),\n secret: SecretViewSchema,\n }),\n z.object({\n action: z.literal(\"show\"),\n path: z.string().min(1),\n secret: SecretViewSchema,\n }),\n]);\n","import { BaseCapabilityService, defineCapabilityConfig } from \"../../../../infra/bases/capability\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type SecretsVaultOptions,\n SecretsVaultOptionsSchema,\n type SecretsVaultResult,\n SecretsVaultResultSchema,\n type SecretView,\n} from \"./vault.entities\";\nimport type { SecretsVaultRepositoryPort } from \"./vault.repository\";\n\ntype SecretsVaultServiceDependencies = {\n repository: SecretsVaultRepositoryPort;\n};\n\nexport const secretsVaultCapabilityConfig = defineCapabilityConfig({\n id: \"secrets.vault\",\n moduleId: \"secrets\",\n name: \"Secrets Vault\",\n description: \"Store and retrieve encrypted local credentials.\",\n kind: \"deterministic\",\n risk: \"writes-global-state\",\n} as const);\n\nfunction masked(summary: Omit<SecretView, \"value\">): SecretView {\n return {\n ...summary,\n value: \"********\",\n };\n}\n\nexport class SecretsVaultService extends BaseCapabilityService<\n typeof secretsVaultCapabilityConfig,\n SecretsVaultServiceDependencies\n> {\n readonly inputSchema = SecretsVaultOptionsSchema;\n readonly outputSchema = SecretsVaultResultSchema;\n readonly #repository: SecretsVaultRepositoryPort;\n\n constructor(dependencies: SecretsVaultServiceDependencies) {\n super(secretsVaultCapabilityConfig, dependencies);\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: SecretsVaultOptions,\n ): Promise<Result<AgentDevKitErrorCode, SecretsVaultResult>> {\n if (options.action === \"audit\") {\n const events = await this.#repository.audit(options.name);\n\n return events.isOk()\n ? Result.ok({\n action: \"audit\",\n events: events.unwrap(),\n path: this.#repository.path(),\n })\n : Result.fail(events.unwrapError());\n }\n\n if (options.action === \"list\") {\n const secrets = await this.#repository.list();\n\n return secrets.isOk()\n ? Result.ok({\n action: \"list\",\n path: this.#repository.path(),\n secrets: secrets.unwrap().map((secret) => masked(secret)),\n })\n : Result.fail(secrets.unwrapError());\n }\n\n if (options.action === \"set\") {\n const secret = await this.#repository.set(options.name, options.value, {\n service: options.service,\n });\n\n return secret.isOk()\n ? Result.ok({\n action: \"set\",\n path: this.#repository.path(),\n secret: masked(secret.unwrap()),\n })\n : Result.fail(secret.unwrapError());\n }\n\n if (options.action === \"rotate\") {\n const secret = await this.#repository.rotate(options.name, options.value, {\n service: options.service,\n });\n\n return secret.isOk()\n ? Result.ok({\n action: \"rotate\",\n path: this.#repository.path(),\n secret: masked(secret.unwrap()),\n })\n : Result.fail(secret.unwrapError());\n }\n\n if (options.action === \"remove\") {\n const removed = await this.#repository.remove(options.name);\n\n return removed.isOk()\n ? Result.ok({\n action: \"remove\",\n path: this.#repository.path(),\n removed: removed.unwrap().removed,\n secret: { name: options.name },\n })\n : Result.fail(removed.unwrapError());\n }\n\n if (options.reveal === true) {\n const revealed = await this.#repository.reveal(options.name);\n\n return revealed.isOk()\n ? Result.ok({\n action: \"show\",\n path: this.#repository.path(),\n secret: { ...revealed.unwrap().secret, value: revealed.unwrap().value },\n })\n : Result.fail(revealed.unwrapError());\n }\n\n const summaries = await this.#repository.list();\n\n if (summaries.isErr()) {\n return Result.fail(summaries.unwrapError());\n }\n\n const summary = summaries.unwrap().find((secret) => secret.name === options.name);\n\n if (summary === undefined) {\n return Result.fail(ErrorCodes.InvalidInput);\n }\n\n return Result.ok({\n action: \"show\",\n path: this.#repository.path(),\n secret: masked(summary),\n });\n }\n\n invoke(options: SecretsVaultOptions): Promise<Result<AgentDevKitErrorCode, SecretsVaultResult>> {\n return this.execute(options);\n }\n}\n","import { defineModuleConfig } from \"../../infra/bases/module\";\nimport { secretsVaultCapabilityConfig } from \"./capabilities/vault/vault.service\";\n\nexport const secretsModuleConfig = defineModuleConfig({\n id: \"secrets\",\n name: \"Secrets\",\n description: \"Encrypted local credential storage for external service configuration.\",\n capabilities: [secretsVaultCapabilityConfig.id],\n tests: {\n include: [\n \"src/modules/secrets/secrets.surface.test.ts\",\n \"src/modules/secrets/capabilities/**/*.test.ts\",\n ],\n },\n} as const);\n","import { defineModuleBinding, ModuleBinder, type ModuleBinding } from \"../../infra/bases/bind\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport { EncryptedSecretStore } from \"../../infra/crypto/encrypted_secret_store\";\nimport { LocalMasterKeyProvider } from \"../../infra/crypto/local_master_key_provider\";\nimport { LocalSecretCrypto } from \"../../infra/crypto/local_secret_crypto\";\nimport {\n SecretsVaultRepository,\n type SecretsVaultRepositoryPort,\n} from \"./capabilities/vault/vault.repository\";\nimport { SecretsVaultService } from \"./capabilities/vault/vault.service\";\nimport { secretsModuleConfig } from \"./secrets.config\";\n\nexport type SecretsModuleBindOptions = {\n homeDirectory?: string;\n stateDirectory?: string;\n};\n\nexport type SecretsModuleCapabilities = {\n vault: SecretsVaultService;\n};\n\nexport type SecretsModuleBinding = ModuleBinding<\n typeof secretsModuleConfig,\n SecretsModuleCapabilities\n>;\n\ntype SecretsModuleBinderDependencies = {\n vaultRepository: (options: SecretsModuleBindOptions) => SecretsVaultRepositoryPort;\n};\n\nfunction stateDirectory(options: SecretsModuleBindOptions): string | undefined {\n return (\n options.stateDirectory ??\n (options.homeDirectory ? `${options.homeDirectory}/.agent-devkit` : undefined)\n );\n}\n\nconst defaultDependencies: SecretsModuleBinderDependencies = {\n vaultRepository: (options) => {\n const resolvedStateDirectory = stateDirectory(options);\n const keyProvider = new LocalMasterKeyProvider({ stateDirectory: resolvedStateDirectory });\n\n return new SecretsVaultRepository({\n store: new EncryptedSecretStore({\n crypto: new LocalSecretCrypto({ keyProvider }),\n stateDirectory: resolvedStateDirectory,\n }),\n });\n },\n};\n\nexport class SecretsModuleBinder extends ModuleBinder<\n SecretsModuleBindOptions,\n typeof secretsModuleConfig,\n SecretsModuleCapabilities\n> {\n readonly #dependencies: SecretsModuleBinderDependencies;\n\n constructor(dependencies: SecretsModuleBinderDependencies = defaultDependencies) {\n super();\n this.#dependencies = dependencies;\n }\n\n override bind(\n options: SecretsModuleBindOptions = {},\n ): Result<AgentDevKitErrorCode, SecretsModuleBinding> {\n return defineModuleBinding({\n config: secretsModuleConfig,\n capabilities: {\n vault: new SecretsVaultService({\n repository: this.#dependencies.vaultRepository(options),\n }),\n },\n });\n }\n}\n\nexport function createSecretsModuleBindings(\n options: SecretsModuleBindOptions = {},\n): Result<AgentDevKitErrorCode, SecretsModuleBinding> {\n return new SecretsModuleBinder().bind(options);\n}\n","import { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { Result } from \"../../infra/bases/result\";\nimport type { IModuleSurface, SurfacePromptInput } from \"../../infra/bases/surface\";\nimport { surfaceCapabilitiesFromConfigs } from \"../../infra/helpers/surface_capabilities\";\nimport { resolveModuleSurfaceDirectory, SurfaceLoader } from \"../../infra/helpers/surface_loader\";\nimport { secretsVaultCapabilityConfig } from \"./capabilities/vault/vault.service\";\n\nconst moduleDirectory = dirname(fileURLToPath(import.meta.url));\n\nexport function createSecretsSurface(): IModuleSurface {\n const loader = new SurfaceLoader(resolveModuleSurfaceDirectory(\"secrets\", moduleDirectory));\n\n return {\n moduleId: \"secrets\",\n capabilities: async () =>\n Result.ok(surfaceCapabilitiesFromConfigs([secretsVaultCapabilityConfig])),\n knowledge: () => loader.knowledge(),\n loop: () => loader.loop(),\n prompt: (input?: SurfacePromptInput) => loader.prompt(input),\n skill: () => loader.skill(),\n };\n}\n","import { execFile } from \"node:child_process\";\nimport { promisify } from \"node:util\";\nimport type { CapabilityRepositoryPort } from \"../../../../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../../../../infra/bases/errors\";\nimport { ErrorCodes } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport type { PackageInstallResult, PackageVersions } from \"./update.entities\";\n\nconst execFileAsync = promisify(execFile);\n\nexport interface UpdateRepositoryPort extends CapabilityRepositoryPort {\n getPackageVersions(packageName: string): Promise<Result<AgentDevKitErrorCode, PackageVersions>>;\n installGlobal(\n packageName: string,\n version: string,\n options: { dryRun: boolean },\n ): Promise<Result<AgentDevKitErrorCode, PackageInstallResult>>;\n}\n\nexport class UpdateRepository implements UpdateRepositoryPort {\n readonly repositoryId = \"self.update.repository\";\n\n async getPackageVersions(\n packageName: string,\n ): Promise<Result<AgentDevKitErrorCode, PackageVersions>> {\n try {\n const [{ stdout: versionsOutput }, { stdout: distTagsOutput }] = await Promise.all([\n execFileAsync(\"npm\", [\"view\", packageName, \"versions\", \"--json\"]),\n execFileAsync(\"npm\", [\"view\", packageName, \"dist-tags\", \"--json\"]),\n ]);\n\n return Result.ok({\n versions: JSON.parse(versionsOutput) as string[],\n distTags: JSON.parse(distTagsOutput) as Record<string, string | undefined>,\n });\n } catch {\n return Result.fail(ErrorCodes.PackageRegistryFailed);\n }\n }\n\n async installGlobal(\n packageName: string,\n version: string,\n options: { dryRun: boolean },\n ): Promise<Result<AgentDevKitErrorCode, PackageInstallResult>> {\n const command = `npm install -g ${packageName}@${version}`;\n\n try {\n if (!options.dryRun) {\n await execFileAsync(\"npm\", [\"install\", \"-g\", `${packageName}@${version}`]);\n }\n\n return Result.ok({\n command,\n executed: !options.dryRun,\n });\n } catch {\n return Result.fail(ErrorCodes.PackageInstallFailed);\n }\n }\n}\n","import { z } from \"zod\";\n\nexport const UpdateServiceOptionsSchema = z\n .object({\n dryRun: z.boolean(),\n latest: z.boolean(),\n version: z.string().min(1).optional(),\n yes: z.boolean(),\n })\n .strict();\n\nexport type SelfUpdateStatus = \"current\" | \"planned\" | \"updated\";\n\nexport type PackageVersionOption = {\n version: string;\n current: boolean;\n latest: boolean;\n selected: boolean;\n};\n\nexport type SelfUpdateResult = {\n status: SelfUpdateStatus;\n packageName: string;\n currentVersion: string;\n selectedVersion: string;\n command: string;\n executed: boolean;\n versions: PackageVersionOption[];\n};\n\nexport const SelfUpdateResultSchema = z.object({\n status: z.enum([\"current\", \"planned\", \"updated\"]),\n packageName: z.string().min(1),\n currentVersion: z.string().min(1),\n selectedVersion: z.string().min(1),\n command: z.string(),\n executed: z.boolean(),\n versions: z.array(\n z.object({\n version: z.string().min(1),\n current: z.boolean(),\n latest: z.boolean(),\n selected: z.boolean(),\n }),\n ),\n});\n\nexport type UpdateServiceOptions = z.infer<typeof UpdateServiceOptionsSchema>;\n\nexport type PackageVersions = {\n distTags: Record<string, string | undefined>;\n versions: string[];\n};\n\nexport type PackageInstallResult = {\n command: string;\n executed: boolean;\n};\n","import {\n BaseCapabilityService,\n type CapabilityExecution,\n defineCapabilityConfig,\n} from \"../../../../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../../../../infra/bases/errors\";\nimport { Result } from \"../../../../infra/bases/result\";\nimport {\n type SelfUpdateResult,\n SelfUpdateResultSchema,\n type UpdateServiceOptions,\n UpdateServiceOptionsSchema,\n} from \"./update.entities\";\nimport type { UpdateRepositoryPort } from \"./update.repository\";\n\ntype UpdateServiceDependencies = {\n currentVersion: string;\n packageName: string;\n repository: UpdateRepositoryPort;\n};\n\nfunction versionParts(version: string): number[] {\n return version.split(/[.-]/).map((part) => Number.parseInt(part, 10) || 0);\n}\n\nfunction compareVersions(left: string, right: string): number {\n const leftParts = versionParts(left);\n const rightParts = versionParts(right);\n const length = Math.max(leftParts.length, rightParts.length);\n\n for (let index = 0; index < length; index += 1) {\n const diff = (leftParts[index] ?? 0) - (rightParts[index] ?? 0);\n\n if (diff !== 0) {\n return diff;\n }\n }\n\n return left.localeCompare(right);\n}\n\nfunction compareVersionsDesc(left: string, right: string): number {\n return compareVersions(right, left);\n}\n\nexport const updateCapabilityConfig = defineCapabilityConfig({\n id: \"self.update\",\n moduleId: \"self\",\n name: \"Update\",\n description: \"Plan or execute Agent DevKit package updates through npm.\",\n kind: \"external\",\n risk: \"external-write\",\n} as const);\n\nexport class UpdateService\n extends BaseCapabilityService<typeof updateCapabilityConfig, UpdateServiceDependencies>\n implements CapabilityExecution<UpdateServiceOptions, SelfUpdateResult>\n{\n readonly inputSchema = UpdateServiceOptionsSchema;\n readonly outputSchema = SelfUpdateResultSchema;\n readonly #currentVersion: string;\n readonly #packageName: string;\n readonly #repository: UpdateRepositoryPort;\n\n constructor(dependencies: UpdateServiceDependencies) {\n super(updateCapabilityConfig, dependencies);\n this.#currentVersion = dependencies.currentVersion;\n this.#packageName = dependencies.packageName;\n this.#repository = dependencies.repository;\n }\n\n async execute(\n options: UpdateServiceOptions,\n ): Promise<Result<AgentDevKitErrorCode, SelfUpdateResult>> {\n const packageVersions = await this.#repository.getPackageVersions(this.#packageName);\n\n if (packageVersions.isErr()) {\n return Result.fail(packageVersions.unwrapError());\n }\n\n const versionsPayload = packageVersions.unwrap();\n const latestVersion =\n versionsPayload.distTags.latest ?? versionsPayload.versions.at(-1) ?? this.#currentVersion;\n const explicitVersion = options.version !== undefined;\n const selectedVersion =\n options.version ?? (options.latest === true ? latestVersion : this.#currentVersion);\n const listedVersions = Array.from(\n new Set([...versionsPayload.versions, this.#currentVersion, selectedVersion]),\n );\n\n if (\n selectedVersion === this.#currentVersion ||\n (!explicitVersion && compareVersions(latestVersion, this.#currentVersion) <= 0)\n ) {\n return Result.ok({\n status: \"current\",\n packageName: this.#packageName,\n currentVersion: this.#currentVersion,\n selectedVersion: this.#currentVersion,\n command: \"\",\n executed: false,\n versions: listedVersions.sort(compareVersionsDesc).map((version) => ({\n version,\n current: version === this.#currentVersion,\n latest: version === latestVersion,\n selected: version === this.#currentVersion,\n })),\n });\n }\n\n const dryRun = options.dryRun || !options.yes;\n const install = await this.#repository.installGlobal(this.#packageName, selectedVersion, {\n dryRun,\n });\n\n if (install.isErr()) {\n return Result.fail(install.unwrapError());\n }\n\n return Result.ok({\n status: install.unwrap().executed ? \"updated\" : \"planned\",\n packageName: this.#packageName,\n currentVersion: this.#currentVersion,\n selectedVersion,\n command: install.unwrap().command,\n executed: install.unwrap().executed,\n versions: listedVersions.sort(compareVersionsDesc).map((version) => ({\n version,\n current: version === this.#currentVersion,\n latest: version === latestVersion,\n selected: version === selectedVersion,\n })),\n });\n }\n\n invoke(options: UpdateServiceOptions): Promise<Result<AgentDevKitErrorCode, SelfUpdateResult>> {\n return this.execute(options);\n }\n}\n","import { defineModuleConfig } from \"../../infra/bases/module\";\nimport { updateCapabilityConfig } from \"./capabilities/update/update.service\";\n\nexport const selfModuleConfig = defineModuleConfig({\n id: \"self\",\n name: \"Self\",\n description: \"Agent DevKit package maintenance capabilities.\",\n capabilities: [updateCapabilityConfig.id],\n tests: {\n include: [\n \"src/modules/self/self.surface.test.ts\",\n \"src/modules/self/capabilities/**/*.test.ts\",\n ],\n },\n} as const);\n","import { defineModuleBinding, ModuleBinder, type ModuleBinding } from \"../../infra/bases/bind\";\nimport type { AgentDevKitErrorCode } from \"../../infra/bases/errors\";\nimport type { Result } from \"../../infra/bases/result\";\nimport {\n UpdateRepository,\n type UpdateRepositoryPort,\n} from \"./capabilities/update/update.repository\";\nimport { UpdateService } from \"./capabilities/update/update.service\";\nimport { selfModuleConfig } from \"./self.config\";\n\nexport type SelfModuleBindOptions = {\n currentVersion: string;\n packageName: string;\n};\n\nexport type SelfModuleCapabilities = {\n update: UpdateService;\n};\n\nexport type SelfModuleBinding = ModuleBinding<typeof selfModuleConfig, SelfModuleCapabilities>;\n\ntype SelfModuleBinderDependencies = {\n updateRepository: () => UpdateRepositoryPort;\n};\n\nconst defaultDependencies: SelfModuleBinderDependencies = {\n updateRepository: () => new UpdateRepository(),\n};\n\nexport class SelfModuleBinder extends ModuleBinder<\n SelfModuleBindOptions,\n typeof selfModuleConfig,\n SelfModuleCapabilities\n> {\n readonly #dependencies: SelfModuleBinderDependencies;\n\n constructor(dependencies: SelfModuleBinderDependencies = defaultDependencies) {\n super();\n this.#dependencies = dependencies;\n }\n\n override bind(options: SelfModuleBindOptions): Result<AgentDevKitErrorCode, SelfModuleBinding> {\n return defineModuleBinding({\n config: selfModuleConfig,\n capabilities: {\n update: new UpdateService({\n currentVersion: options.currentVersion,\n packageName: options.packageName,\n repository: this.#dependencies.updateRepository(),\n }),\n },\n });\n }\n}\n\nexport function createSelfModuleBindings(\n options: SelfModuleBindOptions,\n): Result<AgentDevKitErrorCode, SelfModuleBinding> {\n return new SelfModuleBinder().bind(options);\n}\n","import { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { Result } from \"../../infra/bases/result\";\nimport type { IModuleSurface, SurfacePromptInput } from \"../../infra/bases/surface\";\nimport { surfaceCapabilitiesFromConfigs } from \"../../infra/helpers/surface_capabilities\";\nimport { resolveModuleSurfaceDirectory, SurfaceLoader } from \"../../infra/helpers/surface_loader\";\nimport { updateCapabilityConfig } from \"./capabilities/update/update.service\";\n\nconst moduleDirectory = dirname(fileURLToPath(import.meta.url));\n\nexport function createSelfSurface(): IModuleSurface {\n const loader = new SurfaceLoader(resolveModuleSurfaceDirectory(\"self\", moduleDirectory));\n\n return {\n moduleId: \"self\",\n capabilities: async () => Result.ok(surfaceCapabilitiesFromConfigs([updateCapabilityConfig])),\n knowledge: () => loader.knowledge(),\n loop: () => loader.loop(),\n prompt: (input?: SurfacePromptInput) => loader.prompt(input),\n skill: () => loader.skill(),\n };\n}\n","import { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { Result } from \"../../infra/bases/result\";\nimport type { IModuleSurface, SurfacePromptInput } from \"../../infra/bases/surface\";\nimport { surfaceCapabilitiesFromConfigs } from \"../../infra/helpers/surface_capabilities\";\nimport { resolveModuleSurfaceDirectory, SurfaceLoader } from \"../../infra/helpers/surface_loader\";\nimport { cliAliasCapabilityConfig } from \"./capabilities/cliAlias/cliAlias.service\";\nimport { personalizationCapabilityConfig } from \"./capabilities/personalization/personalization.service\";\nimport { preferencesCapabilityConfig } from \"./capabilities/preferences/preferences.service\";\n\nconst moduleDirectory = dirname(fileURLToPath(import.meta.url));\n\nexport function createUserSurface(): IModuleSurface {\n const loader = new SurfaceLoader(resolveModuleSurfaceDirectory(\"user\", moduleDirectory));\n\n return {\n moduleId: \"user\",\n capabilities: async () =>\n Result.ok(\n surfaceCapabilitiesFromConfigs([\n cliAliasCapabilityConfig,\n personalizationCapabilityConfig,\n preferencesCapabilityConfig,\n ]),\n ),\n knowledge: () => loader.knowledge(),\n loop: () => loader.loop(),\n prompt: (input?: SurfacePromptInput) => loader.prompt(input),\n skill: () => loader.skill(),\n };\n}\n","import type { InvokableCapabilityService } from \"../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../infra/bases/errors\";\nimport type { AgentDevKitModuleConfig } from \"../infra/bases/module\";\nimport type { Result } from \"../infra/bases/result\";\nimport type { IModuleSurface } from \"../infra/bases/surface\";\nimport { type ContextModuleBindOptions, createContextModuleBindings } from \"./context/context.bind\";\nimport { contextModuleConfig } from \"./context/context.config\";\nimport { createContextSurface } from \"./context/context.surface\";\nimport {\n type ConversationModuleBindOptions,\n createConversationModuleBindings,\n} from \"./conversation/conversation.bind\";\nimport { conversationModuleConfig } from \"./conversation/conversation.config\";\nimport { createConversationSurface } from \"./conversation/conversation.surface\";\nimport {\n createEnvironmentModuleBindings,\n type EnvironmentModuleBindOptions,\n} from \"./environment/environment.bind\";\nimport { environmentModuleConfig } from \"./environment/environment.config\";\nimport { createEnvironmentSurface } from \"./environment/environment.surface\";\nimport { createLogsModuleBindings, type LogsModuleBindOptions } from \"./logs/logs.bind\";\nimport { logsModuleConfig } from \"./logs/logs.config\";\nimport { createLogsSurface } from \"./logs/logs.surface\";\nimport { createModelsModuleBindings, type ModelsModuleBindOptions } from \"./models/models.bind\";\nimport { modelsModuleConfig } from \"./models/models.config\";\nimport { createModelsSurface } from \"./models/models.surface\";\nimport { createProjectModuleBindings, type ProjectModuleBindOptions } from \"./project/project.bind\";\nimport { projectModuleConfig } from \"./project/project.config\";\nimport { createProjectSurface } from \"./project/project.surface\";\nimport { createSecretsModuleBindings, type SecretsModuleBindOptions } from \"./secrets/secrets.bind\";\nimport { secretsModuleConfig } from \"./secrets/secrets.config\";\nimport { createSecretsSurface } from \"./secrets/secrets.surface\";\nimport { createSelfModuleBindings, type SelfModuleBindOptions } from \"./self/self.bind\";\nimport { selfModuleConfig } from \"./self/self.config\";\nimport { createSelfSurface } from \"./self/self.surface\";\nimport { createUserModuleBindings, type UserModuleBindOptions } from \"./user/user.bind\";\nimport { userModuleConfig } from \"./user/user.config\";\nimport { createUserSurface } from \"./user/user.surface\";\n\nexport type AgentModuleRegistryOptions = ProjectModuleBindOptions &\n SelfModuleBindOptions & {\n conversation?: ConversationModuleBindOptions;\n context?: ContextModuleBindOptions;\n environment?: EnvironmentModuleBindOptions;\n logs?: LogsModuleBindOptions;\n models?: ModelsModuleBindOptions;\n secrets?: SecretsModuleBindOptions;\n user?: UserModuleBindOptions;\n };\n\nexport type AgentModuleBindingView = {\n capabilities: Record<string, InvokableCapabilityService>;\n};\n\nexport type AgentModuleDefinition = {\n bind: (\n options: AgentModuleRegistryOptions,\n ) => Result<AgentDevKitErrorCode, AgentModuleBindingView>;\n capabilities: (binding: AgentModuleBindingView) => InvokableCapabilityService[];\n config: AgentDevKitModuleConfig;\n id: string;\n surface: () => IModuleSurface;\n};\n\nfunction capabilities(binding: AgentModuleBindingView): InvokableCapabilityService[] {\n return Object.values(binding.capabilities);\n}\n\nfunction bindingView<TBinding extends { capabilities: Record<string, InvokableCapabilityService> }>(\n binding: TBinding,\n): AgentModuleBindingView {\n return binding;\n}\n\nexport const agentModuleDefinitions: AgentModuleDefinition[] = [\n {\n id: \"conversation\",\n config: conversationModuleConfig,\n surface: createConversationSurface,\n bind: (options) =>\n createConversationModuleBindings(options.conversation ?? {}).map((binding) =>\n bindingView(binding),\n ),\n capabilities,\n },\n {\n id: \"context\",\n config: contextModuleConfig,\n surface: createContextSurface,\n bind: (options) =>\n createContextModuleBindings(options.context ?? {}).map((binding) => bindingView(binding)),\n capabilities,\n },\n {\n id: \"environment\",\n config: environmentModuleConfig,\n surface: createEnvironmentSurface,\n bind: (options) =>\n createEnvironmentModuleBindings(options.environment ?? {}).map((binding) =>\n bindingView(binding),\n ),\n capabilities,\n },\n {\n id: \"logs\",\n config: logsModuleConfig,\n surface: createLogsSurface,\n bind: (options) =>\n createLogsModuleBindings(options.logs ?? {}).map((binding) => bindingView(binding)),\n capabilities,\n },\n {\n id: \"models\",\n config: modelsModuleConfig,\n surface: createModelsSurface,\n bind: (options) =>\n createModelsModuleBindings(options.models ?? {}).map((binding) => bindingView(binding)),\n capabilities,\n },\n {\n id: \"project\",\n config: projectModuleConfig,\n surface: createProjectSurface,\n bind: (options) =>\n createProjectModuleBindings({ appVersion: options.appVersion }).map((binding) =>\n bindingView(binding),\n ),\n capabilities,\n },\n {\n id: \"secrets\",\n config: secretsModuleConfig,\n surface: createSecretsSurface,\n bind: (options) =>\n createSecretsModuleBindings(options.secrets ?? {}).map((binding) => bindingView(binding)),\n capabilities,\n },\n {\n id: \"self\",\n config: selfModuleConfig,\n surface: createSelfSurface,\n bind: (options) =>\n createSelfModuleBindings({\n currentVersion: options.currentVersion,\n packageName: options.packageName,\n }).map((binding) => bindingView(binding)),\n capabilities,\n },\n {\n id: \"user\",\n config: userModuleConfig,\n surface: createUserSurface,\n bind: (options) =>\n createUserModuleBindings(options.user ?? {}).map((binding) => bindingView(binding)),\n capabilities,\n },\n];\n","import type { InvokableCapabilityService } from \"../infra/bases/capability\";\nimport type { AgentDevKitErrorCode } from \"../infra/bases/errors\";\nimport { Result } from \"../infra/bases/result\";\nimport {\n type CapabilityRegistry,\n createCapabilityRegistry,\n} from \"../infra/capabilities/capability_registry\";\nimport { type AgentModuleRegistryOptions, agentModuleDefinitions } from \"./modules.registry\";\n\nexport type AgentCapabilityRegistryOptions = AgentModuleRegistryOptions;\n\nexport function createAgentCapabilityRegistry(\n options: AgentCapabilityRegistryOptions,\n): Result<AgentDevKitErrorCode, CapabilityRegistry> {\n const capabilities: InvokableCapabilityService[] = [];\n\n for (const definition of agentModuleDefinitions) {\n const binding = definition.bind(options);\n if (binding.isErr()) {\n return Result.fail(binding.unwrapError());\n }\n\n capabilities.push(...definition.capabilities(binding.unwrap()));\n }\n\n return createCapabilityRegistry({\n capabilities,\n });\n}\n","import { type AgentDevKitErrorCode, ErrorCodes } from \"../infra/bases/errors\";\nimport type { Result } from \"../infra/bases/result\";\nimport type {\n ToolRuntime,\n ToolRuntimeExecuteInput,\n ToolRuntimeResult,\n ToolRuntimeTool,\n} from \"../infra/bases/tool_runtime\";\nimport type { CapabilityRegistry } from \"../infra/capabilities/capability_registry\";\nimport {\n type AgentCapabilityRegistryOptions,\n createAgentCapabilityRegistry,\n} from \"./capability_registry\";\n\nexport type CapabilityToolRuntimeOptions = {\n registry: CapabilityRegistry;\n};\n\nfunction toolFromDescriptor(\n descriptor: ReturnType<CapabilityRegistry[\"list\"]>[number],\n): ToolRuntimeTool {\n return {\n approval: descriptor.approval,\n description: descriptor.description,\n id: descriptor.id,\n inputSchema: descriptor.inputSchema,\n kind: descriptor.kind,\n moduleId: descriptor.moduleId,\n name: descriptor.name,\n outputSchema: descriptor.outputSchema,\n risk: descriptor.risk,\n };\n}\n\nexport class CapabilityToolRuntime implements ToolRuntime {\n readonly #registry: CapabilityRegistry;\n\n constructor(options: CapabilityToolRuntimeOptions) {\n this.#registry = options.registry;\n }\n\n listTools(): ToolRuntimeTool[] {\n return this.#registry.list().map(toolFromDescriptor);\n }\n\n getTool(capabilityId: string): Result<AgentDevKitErrorCode, ToolRuntimeTool> {\n return this.#registry.describe(capabilityId).map(toolFromDescriptor);\n }\n\n async execute(input: ToolRuntimeExecuteInput): Promise<ToolRuntimeResult> {\n const tool = this.getTool(input.capabilityId);\n const invocation = await this.#registry.invoke(input.capabilityId, input.input, {\n approved: input.approved,\n interface: input.interface,\n requestedBy: input.requestedBy,\n });\n\n if (tool.isErr()) {\n return {\n approval: { reason: \"Capability was not found.\", required: false },\n audit: invocation.audit,\n capabilityId: input.capabilityId,\n effects: [],\n error: invocation.ok\n ? {\n code: ErrorCodes.CapabilityNotFound,\n message: `Capability ${input.capabilityId} was not found.`,\n recoverable: true,\n }\n : invocation.error,\n input: input.input,\n interface: input.interface,\n risk: \"read-only\",\n status: \"failed\",\n };\n }\n\n const descriptor = tool.unwrap();\n\n if (!invocation.ok) {\n return {\n approval: descriptor.approval,\n audit: invocation.audit,\n capabilityId: input.capabilityId,\n effects: [],\n error: invocation.error,\n input: input.input,\n interface: input.interface,\n risk: descriptor.risk,\n status:\n invocation.error.code === ErrorCodes.ApprovalRequired ? \"approval_required\" : \"failed\",\n };\n }\n\n return {\n approval: descriptor.approval,\n audit: invocation.audit,\n capabilityId: input.capabilityId,\n effects: invocation.effects,\n input: input.input,\n interface: input.interface,\n output: invocation.data,\n risk: descriptor.risk,\n status: \"succeeded\",\n };\n }\n}\n\nexport function createCapabilityToolRuntime(\n options: AgentCapabilityRegistryOptions,\n): Result<AgentDevKitErrorCode, CapabilityToolRuntime> {\n return createAgentCapabilityRegistry(options).map(\n (registry) => new CapabilityToolRuntime({ registry }),\n );\n}\n","import type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport type { ToolRuntimeResult } from \"../../../infra/bases/tool_runtime\";\nimport { formatDependenciesText } from \"../../../modules/environment/environment.index\";\nimport { wantsJson } from \"../command_options\";\nimport { createCliToolRuntime } from \"../toolRuntime\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterInstallCommandOptions = {\n currentVersion: string;\n packageName: string;\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\ntype InstallCommandOptions = {\n dryRun?: boolean;\n json?: boolean;\n node?: boolean;\n verify?: boolean;\n yes?: boolean;\n};\n\nfunction selectedDependency(\n dependency: string | undefined,\n options: InstallCommandOptions,\n): string {\n if (options.node === true) {\n return \"node\";\n }\n\n if (dependency !== undefined && dependency.trim().length > 0) {\n return dependency.trim();\n }\n\n throw new Error(\"Expected a dependency id.\");\n}\n\nfunction runtime(options: RegisterInstallCommandOptions) {\n return createCliToolRuntime({\n currentVersion: options.currentVersion,\n packageName: options.packageName,\n });\n}\n\nfunction dependencyAction(options: InstallCommandOptions): \"install\" | \"plan-install\" | \"verify\" {\n if (options.verify === true) {\n return \"verify\";\n }\n\n return options.yes === true && options.dryRun !== true ? \"install\" : \"plan-install\";\n}\n\nfunction printResult(result: ToolRuntimeResult, translator: Translator, json: boolean): void {\n if (json) {\n console.log(JSON.stringify(result, null, 2));\n return;\n }\n\n if (result.status !== \"succeeded\") {\n console.error(JSON.stringify(result, null, 2));\n return;\n }\n\n console.log(formatDependenciesText(result.output as never, translator));\n}\n\nexport function registerInstallCommand(\n program: Command,\n options: RegisterInstallCommandOptions,\n): void {\n const installCommand = program\n .command(\"install\")\n .argument(\"[dependency]\", options.translator.t(\"cli.install.argument.dependency\"))\n .description(options.translator.t(\"cli.install.description\"))\n .option(\"--dry-run\", options.translator.t(\"cli.install.option.dryRun\"))\n .option(\"--json\", options.translator.t(\"cli.install.option.json\"))\n .option(\"--node\", options.translator.t(\"cli.install.option.node\"))\n .option(\"--verify\", options.translator.t(\"cli.install.option.verify\"))\n .option(\"--yes\", options.translator.t(\"cli.install.option.yes\"));\n\n installCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"install\",\n options: () => installCommand.opts(),\n },\n async (dependency: string | undefined, commandOptions: InstallCommandOptions) => {\n const id = selectedDependency(dependency, commandOptions);\n const action = dependencyAction(commandOptions);\n const result = await runtime(options).execute({\n approved: commandOptions.yes === true,\n capabilityId: \"environment.dependencies\",\n input: {\n action,\n confirmed: commandOptions.yes === true,\n dependency: id,\n },\n interface: \"cli\",\n requestedBy: \"agent.install\",\n });\n\n printResult(result, options.translator, wantsJson(commandOptions));\n\n if (result.status !== \"succeeded\") {\n process.exitCode = 1;\n }\n },\n ),\n );\n}\n","import { homedir } from \"node:os\";\nimport type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport type { LogsAnalysisOptions, LogsAnalysisResult } from \"../../../modules/logs/logs.index\";\nimport { createLogsModuleBindings, formatLogsAnalysisText } from \"../../../modules/logs/logs.index\";\nimport { logCategoryFromOptions, parseNonNegativeInteger, wantsJson } from \"../command_options\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterLogsCommandOptions = {\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nfunction logsCapability() {\n const bindings = createLogsModuleBindings({ homeDirectory: homedir() });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n return bindings.unwrap().capabilities.analysis;\n}\n\nasync function printLogsResult(\n commandOptions: { json?: boolean },\n translator: Translator,\n options: LogsAnalysisOptions,\n): Promise<void> {\n const result = await logsCapability().execute(options);\n\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const payload: LogsAnalysisResult = result.unwrap();\n\n if (wantsJson(commandOptions)) {\n console.log(JSON.stringify(payload, null, 2));\n return;\n }\n\n console.log(formatLogsAnalysisText(payload, translator));\n}\n\nexport function registerLogsCommand(program: Command, options: RegisterLogsCommandOptions): void {\n const logsCommand = program\n .command(\"logs\")\n .description(options.translator.t(\"cli.logs.description\"))\n .option(\"--all\", options.translator.t(\"cli.logs.option.all\"))\n .option(\"--technical\", options.translator.t(\"cli.logs.option.technical\"))\n .option(\"--json\", options.translator.t(\"cli.logs.option.json\"));\n\n logsCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"logs\",\n options: () => logsCommand.opts(),\n },\n async (commandOptions: { all?: boolean; json?: boolean; technical?: boolean }) => {\n await printLogsResult(commandOptions, options.translator, {\n action: \"list\",\n category: logCategoryFromOptions(commandOptions),\n });\n },\n ),\n );\n\n const showCommand = logsCommand\n .command(\"show\")\n .argument(\"[date]\", options.translator.t(\"cli.logs.show.argument.date\"))\n .description(options.translator.t(\"cli.logs.show.description\"))\n .option(\"--all\", options.translator.t(\"cli.logs.option.all\"))\n .option(\"--json\", options.translator.t(\"cli.logs.option.json\"))\n .option(\"--limit <limit>\", options.translator.t(\"cli.logs.option.limit\"))\n .option(\"--technical\", options.translator.t(\"cli.logs.option.technical\"));\n\n showCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"logs.show\",\n options: () => showCommand.opts(),\n },\n async (\n date: string | undefined,\n commandOptions: {\n all?: boolean;\n json?: boolean;\n limit?: string;\n technical?: boolean;\n },\n ) => {\n await printLogsResult(commandOptions, options.translator, {\n action: \"read\",\n category: logCategoryFromOptions(commandOptions),\n date,\n limit: parseNonNegativeInteger(commandOptions.limit),\n });\n },\n ),\n );\n\n const tailCommand = logsCommand\n .command(\"tail\")\n .description(options.translator.t(\"cli.logs.tail.description\"))\n .option(\"--all\", options.translator.t(\"cli.logs.option.all\"))\n .option(\"--date <date>\", options.translator.t(\"cli.logs.option.date\"))\n .option(\"--json\", options.translator.t(\"cli.logs.option.json\"))\n .option(\"--limit <limit>\", options.translator.t(\"cli.logs.option.limit\"))\n .option(\"--technical\", options.translator.t(\"cli.logs.option.technical\"));\n\n tailCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"logs.tail\",\n options: () => tailCommand.opts(),\n },\n async (commandOptions: {\n all?: boolean;\n date?: string;\n json?: boolean;\n limit?: string;\n technical?: boolean;\n }) => {\n await printLogsResult(commandOptions, options.translator, {\n action: \"read\",\n category: logCategoryFromOptions(commandOptions),\n date: commandOptions.date,\n limit: parseNonNegativeInteger(commandOptions.limit),\n tail: true,\n });\n },\n ),\n );\n\n const searchCommand = logsCommand\n .command(\"search\")\n .argument(\"<query>\", options.translator.t(\"cli.logs.search.argument.query\"))\n .description(options.translator.t(\"cli.logs.search.description\"))\n .option(\"--all\", options.translator.t(\"cli.logs.option.all\"))\n .option(\"--date <date>\", options.translator.t(\"cli.logs.option.date\"))\n .option(\"--json\", options.translator.t(\"cli.logs.option.json\"))\n .option(\"--limit <limit>\", options.translator.t(\"cli.logs.option.limit\"))\n .option(\"--technical\", options.translator.t(\"cli.logs.option.technical\"));\n\n searchCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"logs.search\",\n options: () => searchCommand.opts(),\n },\n async (\n query: string,\n commandOptions: {\n all?: boolean;\n date?: string;\n json?: boolean;\n limit?: string;\n technical?: boolean;\n },\n ) => {\n await printLogsResult(commandOptions, options.translator, {\n action: \"search\",\n category: logCategoryFromOptions(commandOptions),\n date: commandOptions.date,\n limit: parseNonNegativeInteger(commandOptions.limit),\n query,\n });\n },\n ),\n );\n\n const summaryCommand = logsCommand\n .command(\"summary\")\n .description(options.translator.t(\"cli.logs.summary.description\"))\n .option(\"--all\", options.translator.t(\"cli.logs.option.all\"))\n .option(\"--date <date>\", options.translator.t(\"cli.logs.option.date\"))\n .option(\"--json\", options.translator.t(\"cli.logs.option.json\"))\n .option(\"--technical\", options.translator.t(\"cli.logs.option.technical\"));\n\n summaryCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"logs.summary\",\n options: () => summaryCommand.opts(),\n },\n async (commandOptions: {\n all?: boolean;\n date?: string;\n json?: boolean;\n technical?: boolean;\n }) => {\n await printLogsResult(commandOptions, options.translator, {\n action: \"summary\",\n category: logCategoryFromOptions(commandOptions),\n date: commandOptions.date,\n });\n },\n ),\n );\n}\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { LogEvent, LogsAnalysisResult, LogsFileSummary } from \"./analysis.entities\";\n\nconst defaultTranslator = new I18nCatalog().translator(\"en-US\");\n\nfunction commandName(event: LogEvent): string {\n return event.category === \"usage\" ? event.command : (event.command ?? event.event);\n}\n\nfunction durationMs(event: LogEvent): number {\n return event.durationMs ?? 0;\n}\n\nfunction statusName(event: LogEvent): string {\n return event.category === \"usage\" ? event.status : event.level;\n}\n\nfunction formatEvent(event: LogEvent): string {\n return `${event.timestamp} ${event.category.padEnd(9)} ${statusName(event).padEnd(9)} ${event.area.padEnd(7)} ${commandName(event)} ${durationMs(event)}ms`;\n}\n\nfunction formatFiles(files: LogsFileSummary[]): string[] {\n return files.map(\n (file) =>\n ` ${file.date} ${file.category.padEnd(9)} ${String(file.eventCount).padStart(4)} events ${String(file.sizeBytes).padStart(6)} bytes`,\n );\n}\n\nfunction formatCounts(counts: Record<string, number>): string[] {\n return Object.entries(counts)\n .sort((left, right) => right[1] - left[1] || left[0].localeCompare(right[0]))\n .map(([key, count]) => ` ${key.padEnd(18)} ${count}`);\n}\n\nexport function formatLogsAnalysisText(\n result: LogsAnalysisResult,\n translator: Translator = defaultTranslator,\n): string {\n const t = (key: string, values?: Record<string, string | number>) => translator.t(key, values);\n const rows = [t(\"logs.title\"), t(\"logs.command\"), \"\", `[${result.action}] ${result.path}`];\n\n if (result.action === \"list\") {\n rows.push(\"\", ` ${t(\"logs.section.files\")}`);\n rows.push(...formatFiles(result.files));\n return rows.join(\"\\n\");\n }\n\n if (result.action === \"read\") {\n rows.push(\"\", ` ${t(\"logs.section.events\", { count: result.events.length })}`);\n rows.push(...result.events.map(formatEvent));\n rows.push(` ${t(\"logs.totalEvents\", { count: result.totalEvents })}`);\n return rows.join(\"\\n\");\n }\n\n if (result.action === \"search\") {\n rows.push(\n \"\",\n ` ${t(\"logs.section.matches\", { count: result.totalMatches, query: result.query })}`,\n );\n rows.push(...result.events.map(formatEvent));\n return rows.join(\"\\n\");\n }\n\n rows.push(\n \"\",\n ` ${t(\"logs.totalEvents\", { count: result.totalEvents })}`,\n ` ${t(\"logs.averageDuration\", { duration: result.averageDurationMs })}`,\n \"\",\n ` ${t(\"logs.section.byCommand\")}`,\n ...formatCounts(result.byCommand),\n \"\",\n ` ${t(\"logs.section.byCategory\")}`,\n ...formatCounts(result.byCategory),\n \"\",\n ` ${t(\"logs.section.byArea\")}`,\n ...formatCounts(result.byArea),\n \"\",\n ` ${t(\"logs.section.byStatus\")}`,\n ...formatCounts(result.byStatus),\n \"\",\n ` ${t(\"logs.section.slowest\")}`,\n ...result.slowest.map(formatEvent),\n );\n\n return rows.join(\"\\n\");\n}\n","import { createServer, type IncomingMessage, type Server, type ServerResponse } from \"node:http\";\nimport { StreamableHTTPServerTransport } from \"@modelcontextprotocol/sdk/server/streamableHttp.js\";\nimport type { ToolRuntime } from \"../../infra/bases/tool_runtime\";\nimport { createAgentMcpServer } from \"./mcp_server\";\n\nexport type StartMcpHttpServerOptions = {\n allowedOrigins?: string[];\n host: string;\n packageName: string;\n port: number;\n runtime: ToolRuntime;\n version: string;\n};\n\nconst endpointPath = \"/mcp\";\n\nfunction isOriginAllowed(origin: string | undefined, allowedOrigins: string[]): boolean {\n if (origin === undefined) {\n return true;\n }\n\n return allowedOrigins.includes(origin);\n}\n\nfunction writeText(res: ServerResponse, statusCode: number, text: string): void {\n res.writeHead(statusCode, { \"content-type\": \"text/plain; charset=utf-8\" });\n res.end(text);\n}\n\nexport async function startMcpHttpServer(options: StartMcpHttpServerOptions): Promise<Server> {\n const httpServer = createServer(async (req: IncomingMessage, res: ServerResponse) => {\n const pathname = req.url === undefined ? \"\" : new URL(req.url, \"http://127.0.0.1\").pathname;\n\n if (pathname === \"/health\" && req.method === \"GET\") {\n res.writeHead(200, { \"content-type\": \"application/json; charset=utf-8\" });\n res.end(\n JSON.stringify({ name: options.packageName, status: \"ok\", version: options.version }),\n );\n return;\n }\n\n if (pathname !== endpointPath) {\n writeText(res, 404, \"Not found\");\n return;\n }\n\n if (req.method !== \"POST\" && req.method !== \"GET\") {\n writeText(res, 405, \"Method not allowed\");\n return;\n }\n\n if (!isOriginAllowed(req.headers.origin, options.allowedOrigins ?? [])) {\n writeText(res, 403, \"Forbidden origin\");\n return;\n }\n\n try {\n const address = httpServer.address();\n const activePort =\n typeof address === \"object\" && address !== null ? address.port : options.port;\n const server = createAgentMcpServer(options);\n const transport = new StreamableHTTPServerTransport({\n allowedHosts: [\n `${options.host}:${activePort}`,\n `127.0.0.1:${activePort}`,\n `localhost:${activePort}`,\n ],\n enableDnsRebindingProtection: true,\n sessionIdGenerator: undefined,\n });\n\n await server.connect(transport);\n res.on(\"close\", () => {\n void transport.close();\n void server.close();\n });\n await transport.handleRequest(req, res);\n } catch (error) {\n if (!res.headersSent) {\n writeText(res, 500, error instanceof Error ? error.message : \"MCP request failed\");\n } else {\n res.end();\n }\n }\n });\n\n await new Promise<void>((resolve) => {\n httpServer.listen(options.port, options.host, resolve);\n });\n\n return httpServer;\n}\n","import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport { Server } from \"@modelcontextprotocol/sdk/server/index.js\";\nimport {\n CallToolRequestSchema,\n ListToolsRequestSchema,\n type Tool,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport { AgentRuntime } from \"../../infra/agent/agent_runtime\";\nimport type { ToolRuntime } from \"../../infra/bases/tool_runtime\";\nimport { createBrainDockProvider } from \"../../infra/brain/brain_dock\";\nimport {\n hasObjectOutputSchema,\n inputSchemaWithAgentControl,\n runtimeResultToMcpContent,\n splitMcpToolInput,\n} from \"./mcp_result_mapper\";\n\nconst AGENT_TASK_TOOL_NAME = \"agent.task\";\n\nconst agentTaskTool: Tool = {\n name: AGENT_TASK_TOOL_NAME,\n title: \"Delegate a task to the local agent\",\n description:\n \"Delegate a bounded, multi-step or routine local task to the Agent DevKit local agent: it plans and runs the necessary capabilities on your behalf and returns a concise result. Prefer this to offload orchestration and reduce token usage. Use the individual capability tools directly when you need step-by-step control, precise intermediate results, or to intervene mid-task.\",\n inputSchema: {\n type: \"object\",\n properties: {\n approvedTools: {\n type: \"array\",\n description:\n \"Capability ids that are explicitly approved for this run. Approval is scoped per tool call.\",\n items: { type: \"string\" },\n },\n task: {\n type: \"string\",\n description: \"The task to perform, described in natural language.\",\n },\n },\n required: [\"task\"],\n } as Tool[\"inputSchema\"],\n outputSchema: {\n type: \"object\",\n properties: {\n reply: { type: \"string\" },\n steps: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n ok: { type: \"boolean\" },\n summary: { type: \"string\" },\n tool: { type: \"string\" },\n },\n },\n },\n },\n required: [\"reply\", \"steps\"],\n } as Tool[\"outputSchema\"],\n annotations: { openWorldHint: true },\n _meta: { \"agent-devkit/kind\": \"agent-delegation\" },\n};\n\nexport type AgentMcpServerOptions = {\n packageName: string;\n runtime: ToolRuntime;\n version: string;\n};\n\nfunction mcpToolFromRuntimeTool(tool: ReturnType<ToolRuntime[\"listTools\"]>[number]): Tool {\n const mcpTool: Tool = {\n name: tool.id,\n title: tool.name,\n description: tool.description,\n inputSchema: inputSchemaWithAgentControl(tool) as Tool[\"inputSchema\"],\n annotations: {\n destructiveHint: tool.risk === \"destructive\",\n openWorldHint: tool.risk === \"external-write\",\n readOnlyHint: tool.risk === \"read-only\",\n },\n _meta: {\n \"agent-devkit/approvalRequired\": tool.approval.required,\n \"agent-devkit/moduleId\": tool.moduleId,\n \"agent-devkit/risk\": tool.risk,\n },\n };\n\n if (hasObjectOutputSchema(tool)) {\n return { ...mcpTool, outputSchema: tool.outputSchema as Tool[\"outputSchema\"] };\n }\n\n return mcpTool;\n}\n\nexport function createAgentMcpServer(options: AgentMcpServerOptions): Server {\n const server = new Server(\n {\n name: options.packageName,\n version: options.version,\n },\n {\n capabilities: {\n tools: {},\n },\n instructions:\n \"Agent DevKit exposes local capabilities as MCP tools, plus an `agent.task` delegation tool. Prefer `agent.task` for bounded, multi-step or routine local tasks to offload orchestration and reduce token usage; use the individual capability tools directly when you need step-by-step control or precise intermediate results. Risky tools require explicit approval through _agent.approved. For agent.task, approval must be scoped with approvedTools.\",\n },\n );\n\n const agent = new AgentRuntime({\n brainProvider: createBrainDockProvider({ stateDirectory: join(homedir(), \".agent-devkit\") }),\n toolRuntime: options.runtime,\n });\n\n server.setRequestHandler(ListToolsRequestSchema, async () => ({\n tools: [agentTaskTool, ...options.runtime.listTools().map(mcpToolFromRuntimeTool)],\n }));\n\n server.setRequestHandler(CallToolRequestSchema, async (request) => {\n if (request.params.name === AGENT_TASK_TOOL_NAME) {\n const args = (request.params.arguments ?? {}) as Record<string, unknown>;\n const task = typeof args.task === \"string\" ? args.task : \"\";\n const approvedTools = Array.isArray(args.approvedTools)\n ? args.approvedTools.filter((tool): tool is string => typeof tool === \"string\")\n : undefined;\n\n if (task.length === 0) {\n return { content: [{ type: \"text\" as const, text: \"Missing 'task'.\" }], isError: true };\n }\n\n const run = await agent.run({ approvedTools, task });\n\n if (run.isErr()) {\n return {\n content: [{ type: \"text\" as const, text: `Agent run failed: ${run.unwrapError()}` }],\n isError: true,\n };\n }\n\n const payload = run.unwrap();\n const stepsText = payload.steps.map((step) => `- ${step.tool}: ${step.summary}`).join(\"\\n\");\n\n return {\n content: [\n {\n type: \"text\" as const,\n text: stepsText.length > 0 ? `${payload.reply}\\n\\nSteps:\\n${stepsText}` : payload.reply,\n },\n ],\n isError: false,\n structuredContent: { reply: payload.reply, steps: payload.steps },\n };\n }\n\n const { approved, capabilityInput } = splitMcpToolInput(request.params.arguments ?? {});\n const result = await options.runtime.execute({\n approved,\n capabilityId: request.params.name,\n input: capabilityInput,\n interface: \"mcp\",\n requestedBy: \"mcp.tools.call\",\n });\n const tool = options.runtime.getTool(request.params.name);\n\n return runtimeResultToMcpContent(result, tool.isOk() && hasObjectOutputSchema(tool.unwrap()));\n });\n\n return server;\n}\n","import { z } from \"zod\";\nimport type { BrainProviderPort, BrainRequest } from \"../bases/brain\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport { type AgentPrompt, AgentPromptSchema, type PromptMessage } from \"../bases/prompt\";\nimport { Result } from \"../bases/result\";\nimport type { ToolRuntime, ToolRuntimeResult, ToolRuntimeTool } from \"../bases/tool_runtime\";\n\nexport const AgentDecisionSchema = z.discriminatedUnion(\"action\", [\n z.object({ action: z.literal(\"tool\"), input: z.unknown(), tool: z.string().min(1) }),\n z.object({ action: z.literal(\"final\"), reply: z.string() }),\n]);\n\nexport type AgentDecision = z.infer<typeof AgentDecisionSchema>;\n\nconst agentDecisionJsonSchema: Record<string, unknown> = {\n type: \"object\",\n properties: {\n action: { type: \"string\", enum: [\"tool\", \"final\"] },\n input: { type: \"object\" },\n reply: { type: \"string\" },\n tool: { type: \"string\" },\n },\n required: [\"action\"],\n};\n\nexport type AgentStep = {\n ok: boolean;\n summary: string;\n tool: string;\n};\n\nexport type AgentRunResult = {\n reply: string;\n steps: AgentStep[];\n};\n\nexport type AgentStreamEvent =\n | { type: \"tool\"; tool: string }\n | { type: \"observation\"; ok: boolean; summary: string; tool: string }\n | { type: \"final\"; reply: string };\n\nexport type AgentRunInput = {\n approved?: boolean;\n approvedTools?: string[];\n history?: { content: string; role: \"assistant\" | \"user\" }[];\n maxSteps?: number;\n onEvent?: (event: AgentStreamEvent) => void;\n task: string;\n};\n\nexport type AgentRuntimeOptions = {\n brainProvider: BrainProviderPort;\n toolRuntime: ToolRuntime;\n};\n\nfunction summarize(value: unknown): string {\n const text = typeof value === \"string\" ? value : JSON.stringify(value ?? \"\");\n const compact = text.replaceAll(/\\s+/g, \" \").trim();\n return compact.length > 240 ? `${compact.slice(0, 240)}…` : compact;\n}\n\nfunction observationSummary(result: ToolRuntimeResult): string {\n if (result.status === \"succeeded\") {\n return summarize(result.output);\n }\n\n return `${result.status}${result.error === undefined ? \"\" : `: ${result.error.message}`}`;\n}\n\n/**\n * Single-agent tool-use loop over the ToolRuntime. Lives outside the capability\n * registry on purpose (so the agent is not a tool that can call itself). Uses a\n * JSON-constrained decision each turn: run a tool, or answer.\n */\nexport class AgentRuntime {\n readonly #brain: BrainProviderPort;\n readonly #tools: ToolRuntime;\n\n constructor(options: AgentRuntimeOptions) {\n this.#brain = options.brainProvider;\n this.#tools = options.toolRuntime;\n }\n\n async run(input: AgentRunInput): Promise<Result<AgentDevKitErrorCode, AgentRunResult>> {\n const generateStructured = this.#brain.generateStructured?.bind(this.#brain);\n\n if (generateStructured === undefined) {\n return Result.fail(ErrorCodes.BrainProviderUnavailable);\n }\n\n const maxSteps = input.maxSteps ?? 6;\n const steps: AgentStep[] = [];\n const transcript: PromptMessage[] = (input.history ?? []).map((message) => ({\n content: message.content,\n role: message.role,\n }));\n const tools = this.#tools.listTools();\n\n for (let step = 0; step < maxSteps; step += 1) {\n const prompt = this.#buildPrompt(input.task, transcript, tools);\n const request: BrainRequest = {\n options: { provider: \"local\", role: \"agent\" },\n prompt,\n schema: \"agent-devkit.brain-request/v1\",\n };\n const structured = await generateStructured(request, agentDecisionJsonSchema);\n\n if (structured.isErr()) {\n return Result.fail(structured.unwrapError());\n }\n\n const decision = AgentDecisionSchema.safeParse(structured.unwrap().json);\n\n if (!decision.success) {\n return Result.ok({ reply: structured.unwrap().raw.trim(), steps });\n }\n\n if (decision.data.action === \"final\") {\n input.onEvent?.({ reply: decision.data.reply, type: \"final\" });\n return Result.ok({ reply: decision.data.reply, steps });\n }\n\n const tool = decision.data.tool;\n input.onEvent?.({ tool, type: \"tool\" });\n\n const execution = await this.#tools.execute({\n approved: this.#isApproved(tool, input),\n capabilityId: tool,\n input: decision.data.input,\n interface: \"agent\",\n requestedBy: \"agent.run\",\n });\n const ok = execution.status === \"succeeded\";\n const summary = observationSummary(execution);\n\n steps.push({ ok, summary, tool });\n input.onEvent?.({ ok, summary, tool, type: \"observation\" });\n transcript.push({ content: `Observation from ${tool}: ${summary}`, role: \"tool\" });\n\n if (execution.status === \"approval_required\") {\n return Result.ok({\n reply: `A ferramenta ${tool} requer aprovação explícita. Reexecute autorizando para continuar.`,\n steps,\n });\n }\n }\n\n return Result.ok({\n reply: \"Limite de passos do agente atingido sem uma resposta final.\",\n steps,\n });\n }\n\n #isApproved(tool: string, input: AgentRunInput): boolean {\n if (input.approvedTools !== undefined) {\n return input.approvedTools.includes(tool);\n }\n\n return input.approved === true;\n }\n\n #buildPrompt(task: string, transcript: PromptMessage[], tools: ToolRuntimeTool[]): AgentPrompt {\n const toolList = tools\n .map((tool) => `- ${tool.id} (${tool.risk}): ${tool.description}`)\n .join(\"\\n\");\n const instruction = [\n `Tarefa do usuário: ${task}`,\n \"\",\n \"Ferramentas disponíveis:\",\n toolList,\n \"\",\n 'Responda SOMENTE com JSON. Para usar uma ferramenta: {\"action\":\"tool\",\"tool\":\"<id>\",\"input\":{...}}. Para responder ao usuário: {\"action\":\"final\",\"reply\":\"<texto>\"}. Uma ação por vez.',\n ].join(\"\\n\");\n\n return AgentPromptSchema.parse({\n agent: {\n behavior: \"balanced\",\n characterId: \"agent\",\n detailLevel: \"concise\",\n name: \"Agent\",\n tone: \"direct\",\n traits: [],\n },\n context: { knowledge: [] },\n locale: \"pt-BR\",\n messages: transcript,\n output: { format: \"json\", language: \"pt-BR\" },\n policies: {\n allowToolCalls: true,\n approvalRequired: false,\n maxToolCalls: maxToolCallsFor(tools),\n },\n schema: \"agent-devkit.prompt/v1\",\n task: { userMessage: instruction },\n tools: tools.map((tool) => ({\n description: tool.description,\n id: tool.id,\n inputSchema: tool.inputSchema,\n risk: tool.risk,\n })),\n });\n }\n}\n\nfunction maxToolCallsFor(tools: ToolRuntimeTool[]): number {\n return Math.max(1, tools.length);\n}\n","import type { ToolRuntimeResult, ToolRuntimeTool } from \"../../infra/bases/tool_runtime\";\n\nexport type McpToolInput = Record<string, unknown> & {\n _agent?: {\n approved?: boolean;\n };\n};\n\nexport function inputSchemaWithAgentControl(tool: ToolRuntimeTool): Record<string, unknown> {\n const schema = structuredClone(tool.inputSchema);\n const properties =\n typeof schema.properties === \"object\" && schema.properties !== null\n ? (schema.properties as Record<string, unknown>)\n : {};\n\n const normalized = {\n ...schema,\n type: \"object\",\n properties: { ...properties },\n };\n\n if (!tool.approval.required) {\n return normalized;\n }\n\n return {\n ...normalized,\n properties: {\n ...properties,\n _agent: {\n additionalProperties: false,\n description: \"Agent DevKit MCP control metadata. Removed before capability execution.\",\n properties: {\n approved: {\n description: \"Explicitly approve a capability that requires approval.\",\n type: \"boolean\",\n },\n },\n type: \"object\",\n },\n },\n };\n}\n\nexport function splitMcpToolInput(input: unknown): {\n approved?: boolean;\n capabilityInput: unknown;\n} {\n if (input === null || typeof input !== \"object\" || Array.isArray(input)) {\n return { capabilityInput: input };\n }\n\n const { _agent, ...capabilityInput } = input as McpToolInput;\n const approved =\n _agent !== undefined && typeof _agent === \"object\" && _agent.approved === true\n ? true\n : undefined;\n\n return {\n approved,\n capabilityInput,\n };\n}\n\nfunction isStructuredObject(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nexport function hasObjectOutputSchema(tool: ToolRuntimeTool): boolean {\n return isStructuredObject(tool.outputSchema) && tool.outputSchema.type === \"object\";\n}\n\nexport function runtimeResultToMcpContent(\n result: ToolRuntimeResult,\n includeStructuredContent = false,\n) {\n const isError = result.status !== \"succeeded\";\n const content = [\n {\n type: \"text\" as const,\n text: JSON.stringify(result, null, 2),\n },\n ];\n\n if (!isError && includeStructuredContent && isStructuredObject(result.output)) {\n return { content, isError, structuredContent: result.output };\n }\n\n return { content, isError };\n}\n","import { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport type { ToolRuntime } from \"../../infra/bases/tool_runtime\";\nimport { createAgentMcpServer } from \"./mcp_server\";\n\nexport type StartMcpStdioServerOptions = {\n packageName: string;\n runtime: ToolRuntime;\n version: string;\n};\n\nexport async function startMcpStdioServer(options: StartMcpStdioServerOptions): Promise<void> {\n const server = createAgentMcpServer(options);\n const transport = new StdioServerTransport();\n\n const shutdown = async (): Promise<void> => {\n await server.close().catch(() => undefined);\n await transport.close().catch(() => undefined);\n };\n\n process.once(\"SIGINT\", () => {\n void shutdown().finally(() => process.exit(0));\n });\n process.once(\"SIGTERM\", () => {\n void shutdown().finally(() => process.exit(0));\n });\n\n await server.connect(transport);\n}\n","import type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport { startMcpHttpServer } from \"../../mcp/mcp_http_transport\";\nimport { startMcpStdioServer } from \"../../mcp/mcp_stdio_transport\";\nimport { parsePositiveInteger } from \"../command_options\";\nimport { createCliToolRuntime } from \"../toolRuntime\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterMcpCommandOptions = {\n currentVersion: string;\n packageName: string;\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nfunction runtime(options: RegisterMcpCommandOptions) {\n return createCliToolRuntime({\n currentVersion: options.currentVersion,\n packageName: options.packageName,\n });\n}\n\nasync function runStdio(options: RegisterMcpCommandOptions): Promise<void> {\n await startMcpStdioServer({\n packageName: options.packageName,\n runtime: runtime(options),\n version: options.currentVersion,\n });\n}\n\nexport function registerMcpCommand(program: Command, options: RegisterMcpCommandOptions): void {\n const mcpCommand = program\n .command(\"mcp\")\n .description(options.translator.t(\"cli.mcp.description\"));\n\n mcpCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"mcp.stdio\",\n createStateIfMissing: false,\n options: () => ({}),\n },\n async () => {\n await runStdio(options);\n },\n ),\n );\n\n const stdioCommand = mcpCommand\n .command(\"stdio\")\n .description(options.translator.t(\"cli.mcp.stdio.description\"));\n\n stdioCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"mcp.stdio\",\n createStateIfMissing: false,\n options: () => stdioCommand.opts(),\n },\n async () => {\n await runStdio(options);\n },\n ),\n );\n\n const httpCommand = mcpCommand\n .command(\"http\")\n .description(options.translator.t(\"cli.mcp.http.description\"))\n .option(\"--host <host>\", options.translator.t(\"cli.mcp.http.option.host\"), \"127.0.0.1\")\n .option(\"--port <port>\", options.translator.t(\"cli.mcp.http.option.port\"), \"3333\")\n .option(\n \"--origin <origin...>\",\n options.translator.t(\"cli.mcp.http.option.origin\"),\n [] as string[],\n );\n\n httpCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"mcp.http\",\n createStateIfMissing: false,\n options: () => httpCommand.opts(),\n },\n async (commandOptions: { host: string; origin: string[]; port: string }) => {\n if (commandOptions.host !== \"127.0.0.1\" && commandOptions.host !== \"localhost\") {\n throw new Error(\"MCP HTTP currently supports only localhost hosts.\");\n }\n\n const server = await startMcpHttpServer({\n allowedOrigins: commandOptions.origin,\n host: commandOptions.host,\n packageName: options.packageName,\n port: parsePositiveInteger(commandOptions.port),\n runtime: runtime(options),\n version: options.currentVersion,\n });\n\n const address = server.address();\n const port =\n typeof address === \"object\" && address !== null ? address.port : commandOptions.port;\n process.stderr.write(\n `Agent DevKit MCP HTTP listening on http://${commandOptions.host}:${port}/mcp\\n`,\n );\n },\n ),\n );\n}\n","import { homedir } from \"node:os\";\nimport type { Command } from \"commander\";\nimport type { AgentDevKitErrorCode } from \"../../../infra/bases/errors\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport type { Result } from \"../../../infra/bases/result\";\nimport type { ModelsRegistryResult } from \"../../../modules/models/models.index\";\nimport {\n createModelsModuleBindings,\n formatModelsRegistryText,\n} from \"../../../modules/models/models.index\";\nimport { wantsJson } from \"../command_options\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterModelsCommandOptions = {\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nfunction modelsCapability() {\n const bindings = createModelsModuleBindings({ homeDirectory: homedir() });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n return bindings.unwrap().capabilities.registry;\n}\n\nfunction printResult(\n result: Result<AgentDevKitErrorCode, ModelsRegistryResult>,\n translator: Translator,\n json?: boolean,\n): void {\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const payload = result.unwrap();\n\n if (json === true) {\n console.log(JSON.stringify(payload, null, 2));\n return;\n }\n\n console.log(formatModelsRegistryText(payload, translator));\n}\n\nexport function registerModelsCommand(\n program: Command,\n options: RegisterModelsCommandOptions,\n): void {\n const modelsCommand = program\n .command(\"models\")\n .description(options.translator.t(\"cli.models.description\"))\n .option(\"--json\", options.translator.t(\"cli.models.option.json\"));\n\n modelsCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"models\",\n createStateIfMissing: false,\n options: () => modelsCommand.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n printResult(\n await modelsCapability().execute({ action: \"list\" }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const listCommand = modelsCommand\n .command(\"list\")\n .description(options.translator.t(\"cli.models.list.description\"))\n .option(\"--json\", options.translator.t(\"cli.models.option.json\"));\n\n listCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"models.list\",\n createStateIfMissing: false,\n options: () => listCommand.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n printResult(\n await modelsCapability().execute({ action: \"list\" }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const statusCommand = modelsCommand\n .command(\"status\")\n .argument(\"[id]\", options.translator.t(\"cli.models.argument.id\"))\n .description(options.translator.t(\"cli.models.status.description\"))\n .option(\"--json\", options.translator.t(\"cli.models.option.json\"));\n\n statusCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"models.status\",\n createStateIfMissing: false,\n options: () => statusCommand.opts(),\n },\n async (id: string | undefined) => {\n const commandOptions = statusCommand.opts<{ json?: boolean }>();\n printResult(\n await modelsCapability().execute({ action: \"status\", id }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const installCommand = modelsCommand\n .command(\"install\")\n .argument(\"<id>\", options.translator.t(\"cli.models.argument.id\"))\n .description(options.translator.t(\"cli.models.install.description\"))\n .option(\"--json\", options.translator.t(\"cli.models.option.json\"));\n\n installCommand.action(\n options.usageLogging.track(\n { area: \"system\", command: \"models.install\", options: () => installCommand.opts() },\n async (id: string) => {\n const commandOptions = installCommand.opts<{ json?: boolean }>();\n\n if (wantsJson(commandOptions) !== true) {\n process.stderr.write(`${options.translator.t(\"cli.models.install.progress\", { id })}\\n`);\n }\n\n printResult(\n await modelsCapability().execute({ action: \"install\", id }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const uninstallCommand = modelsCommand\n .command(\"uninstall\")\n .alias(\"rm\")\n .argument(\"<id>\", options.translator.t(\"cli.models.argument.id\"))\n .description(options.translator.t(\"cli.models.uninstall.description\"))\n .option(\"--json\", options.translator.t(\"cli.models.option.json\"));\n\n uninstallCommand.action(\n options.usageLogging.track(\n { area: \"system\", command: \"models.uninstall\", options: () => uninstallCommand.opts() },\n async (id: string) => {\n const commandOptions = uninstallCommand.opts<{ json?: boolean }>();\n printResult(\n await modelsCapability().execute({ action: \"uninstall\", id }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const updateCommand = modelsCommand\n .command(\"update\")\n .argument(\"[id]\", options.translator.t(\"cli.models.argument.id\"))\n .description(options.translator.t(\"cli.models.update.description\"))\n .option(\"--json\", options.translator.t(\"cli.models.option.json\"));\n\n updateCommand.action(\n options.usageLogging.track(\n { area: \"system\", command: \"models.update\", options: () => updateCommand.opts() },\n async (id: string | undefined) => {\n const commandOptions = updateCommand.opts<{ json?: boolean }>();\n printResult(\n await modelsCapability().execute({ action: \"update\", id }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const useCommand = modelsCommand\n .command(\"use\")\n .argument(\"<id>\", options.translator.t(\"cli.models.argument.id\"))\n .description(options.translator.t(\"cli.models.use.description\"))\n .option(\"--agent\", options.translator.t(\"cli.models.use.option.agent\"))\n .option(\"--chat\", options.translator.t(\"cli.models.use.option.chat\"))\n .option(\"--json\", options.translator.t(\"cli.models.option.json\"));\n\n useCommand.action(\n options.usageLogging.track(\n { area: \"system\", command: \"models.use\", options: () => useCommand.opts() },\n async (id: string) => {\n const commandOptions = useCommand.opts<{\n agent?: boolean;\n chat?: boolean;\n json?: boolean;\n }>();\n\n if (commandOptions.agent === true && commandOptions.chat === true) {\n throw new Error(\"Use only one of --agent or --chat.\");\n }\n\n const role =\n commandOptions.agent === true\n ? \"agent\"\n : commandOptions.chat === true\n ? \"chat\"\n : undefined;\n printResult(\n await modelsCapability().execute({ action: \"use\", id, role }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n}\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { ModelsRegistryResult, ModelView } from \"./registry.entities\";\n\nconst defaultTranslator = new I18nCatalog().translator(\"en-US\");\n\nfunction formatSize(bytes: number): string {\n if (bytes <= 0) {\n return \"-\";\n }\n\n const megabytes = bytes / 1_000_000;\n return megabytes >= 1000 ? `${(megabytes / 1000).toFixed(1)}GB` : `${Math.round(megabytes)}MB`;\n}\n\nfunction formatModel(model: ModelView): string {\n const installedMark = model.installed ? \"*\" : \" \";\n const defaultMark = model.isDefault ? \"D\" : \" \";\n const state = model.installed ? \"installed\" : \"available\";\n\n return ` ${installedMark}${defaultMark} ${model.id.padEnd(32)} ${model.parameters.padEnd(6)} ${model.quantization.padEnd(8)} ${formatSize(model.sizeBytes).padEnd(7)} ${state}`;\n}\n\nexport function formatModelsRegistryText(\n result: ModelsRegistryResult,\n translator: Translator = defaultTranslator,\n): string {\n const t = (key: string, values?: Record<string, string | number | boolean>) =>\n translator.t(key, values);\n const rows = [\n t(\"models.title\"),\n t(\"models.command\"),\n \"\",\n `[${result.action}] ${result.directory}`,\n ];\n\n if (result.action === \"list\" || result.action === \"status\" || result.action === \"update\") {\n if (result.action === \"list\" && result.defaultId !== undefined) {\n rows.push(` ${t(\"models.field.default\")} ${result.defaultId}`);\n }\n\n rows.push(\"\", ...result.models.map(formatModel));\n return rows.join(\"\\n\");\n }\n\n if (result.action === \"install\") {\n rows.push(formatModel(result.model));\n return rows.join(\"\\n\");\n }\n\n if (result.action === \"uninstall\") {\n rows.push(` ${result.id} ${result.removed ? \"removed\" : \"not found\"}`);\n return rows.join(\"\\n\");\n }\n\n const roleSuffix = result.role === undefined ? \"\" : ` (${result.role})`;\n rows.push(` ${t(\"models.field.default\")} ${result.defaultId}${roleSuffix}`);\n return rows.join(\"\\n\");\n}\n","import { homedir } from \"node:os\";\nimport type { Command } from \"commander\";\nimport type { AgentDevKitErrorCode } from \"../../../infra/bases/errors\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport type { Result } from \"../../../infra/bases/result\";\nimport type { PersonalizationResult } from \"../../../modules/user/user.index\";\nimport {\n createUserModuleBindings,\n formatPersonalizationText,\n} from \"../../../modules/user/user.index\";\nimport { wantsJson } from \"../command_options\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\nfunction personalizationCapability() {\n const bindings = createUserModuleBindings({ homeDirectory: homedir() });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n return bindings.unwrap().capabilities.personalization;\n}\n\ntype RegisterPersonalizationCommandOptions = {\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\ntype UpdateCommandOptions = {\n behavior?: string;\n character?: string;\n detail?: string;\n gender?: string;\n json?: boolean;\n name?: string;\n tone?: string;\n traits?: string;\n};\n\nfunction parseTraits(value: string | undefined): string[] | undefined {\n if (value === undefined) {\n return undefined;\n }\n\n return value\n .split(\",\")\n .map((trait) => trait.trim())\n .filter((trait) => trait.length > 0);\n}\n\nfunction printResult(\n result: Result<AgentDevKitErrorCode, PersonalizationResult>,\n translator: Translator,\n json?: boolean,\n) {\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const payload = result.unwrap();\n\n if (json === true) {\n console.log(JSON.stringify(payload, null, 2));\n return;\n }\n\n console.log(formatPersonalizationText(payload, translator));\n}\n\nexport function registerPersonalizationCommand(\n program: Command,\n options: RegisterPersonalizationCommandOptions,\n): void {\n const registerOptions = options;\n const personalization = program\n .command(\"personalization\")\n .alias(\"personalize\")\n .description(registerOptions.translator.t(\"cli.personalization.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.personalization.option.json\"))\n .action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"personalization\",\n options: () => personalization.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n await printResult(\n await personalizationCapability().execute({ action: \"view\" }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const presetsCommand = personalization\n .command(\"characters\")\n .alias(\"presets\")\n .description(registerOptions.translator.t(\"cli.personalization.characters.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.personalization.characters.option.json\"));\n\n presetsCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"personalization.presets\",\n options: () => presetsCommand.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n await printResult(\n await personalizationCapability().execute({ action: \"list-characters\" }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const selectCommand = personalization\n .command(\"select\")\n .argument(\"<character>\", registerOptions.translator.t(\"cli.personalization.select.argument\"))\n .description(registerOptions.translator.t(\"cli.personalization.select.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.personalization.select.option.json\"));\n\n selectCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"personalization.select\",\n options: () => selectCommand.opts(),\n },\n async (character: string) => {\n const commandOptions = selectCommand.opts<{ json?: boolean }>();\n\n await printResult(\n await personalizationCapability().execute({\n action: \"select-preset\",\n characterId: character,\n }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const updateCommand = personalization\n .command(\"update\")\n .description(registerOptions.translator.t(\"cli.personalization.update.description\"))\n .option(\"--name <name>\", registerOptions.translator.t(\"cli.personalization.update.option.name\"))\n .option(\n \"--character <character>\",\n registerOptions.translator.t(\"cli.personalization.update.option.character\"),\n )\n .option(\n \"--behavior <behavior>\",\n registerOptions.translator.t(\"cli.personalization.update.option.behavior\"),\n )\n .option(\"--tone <tone>\", registerOptions.translator.t(\"cli.personalization.update.option.tone\"))\n .option(\n \"--detail <detail>\",\n registerOptions.translator.t(\"cli.personalization.update.option.detail\"),\n )\n .option(\n \"--gender <gender>\",\n registerOptions.translator.t(\"cli.personalization.update.option.gender\"),\n )\n .option(\n \"--traits <traits>\",\n registerOptions.translator.t(\"cli.personalization.update.option.traits\"),\n )\n .option(\"--json\", registerOptions.translator.t(\"cli.personalization.update.option.json\"));\n\n updateCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"personalization.update\",\n options: () => updateCommand.opts(),\n },\n async () => {\n const commandOptions = updateCommand.opts<UpdateCommandOptions>();\n\n await printResult(\n await personalizationCapability().execute({\n action: \"update\",\n profile: {\n name: commandOptions.name,\n behavior: commandOptions.behavior as never,\n characterId: commandOptions.character,\n detailLevel: commandOptions.detail as never,\n gender: commandOptions.gender as never,\n tone: commandOptions.tone as never,\n traits: parseTraits(commandOptions.traits),\n },\n }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const createCommand = personalization\n .command(\"create\")\n .requiredOption(\n \"--id <id>\",\n registerOptions.translator.t(\"cli.personalization.create.option.id\"),\n )\n .requiredOption(\n \"--name <name>\",\n registerOptions.translator.t(\"cli.personalization.create.option.name\"),\n )\n .option(\"--from <id>\", registerOptions.translator.t(\"cli.personalization.create.option.from\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.personalization.create.option.json\"));\n\n createCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"personalization.create\",\n options: () => createCommand.opts(),\n },\n async () => {\n const commandOptions = createCommand.opts<{\n from?: string;\n id: string;\n json?: boolean;\n name: string;\n }>();\n\n await printResult(\n await personalizationCapability().execute({\n action: \"create-character\",\n character: {\n fromCharacterId: commandOptions.from,\n id: commandOptions.id,\n name: commandOptions.name,\n },\n }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const importSpriteCommand = personalization\n .command(\"import-sprite\")\n .requiredOption(\n \"--character <character>\",\n registerOptions.translator.t(\"cli.personalization.importSprite.option.character\"),\n )\n .requiredOption(\n \"--path <path>\",\n registerOptions.translator.t(\"cli.personalization.importSprite.option.path\"),\n )\n .option(\"--json\", registerOptions.translator.t(\"cli.personalization.importSprite.option.json\"));\n\n importSpriteCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"personalization.import-sprite\",\n options: () => importSpriteCommand.opts(),\n },\n async () => {\n const commandOptions = importSpriteCommand.opts<{\n character: string;\n json?: boolean;\n path: string;\n }>();\n\n await printResult(\n await personalizationCapability().execute({\n action: \"import-sprite\",\n characterId: commandOptions.character,\n sourcePath: commandOptions.path,\n }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const resetCurrentCommand = personalization\n .command(\"reset-current\")\n .description(registerOptions.translator.t(\"cli.personalization.resetCurrent.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.personalization.resetCurrent.option.json\"));\n\n resetCurrentCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"personalization.reset-current\",\n options: () => resetCurrentCommand.opts(),\n },\n async () => {\n const commandOptions = resetCurrentCommand.opts<{ json?: boolean }>();\n\n await printResult(\n await personalizationCapability().execute({ action: \"reset-current\" }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const resetDefaultsCommand = personalization\n .command(\"reset-defaults\")\n .description(registerOptions.translator.t(\"cli.personalization.resetDefaults.description\"))\n .option(\n \"--json\",\n registerOptions.translator.t(\"cli.personalization.resetDefaults.option.json\"),\n );\n\n resetDefaultsCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"personalization.reset-defaults\",\n options: () => resetDefaultsCommand.opts(),\n },\n async () => {\n const commandOptions = resetDefaultsCommand.opts<{ json?: boolean }>();\n\n await printResult(\n await personalizationCapability().execute({ action: \"reset-defaults\" }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n}\n","import { homedir } from \"node:os\";\nimport type { Command } from \"commander\";\nimport type { AgentDevKitErrorCode } from \"../../../infra/bases/errors\";\nimport type { LanguageId, Translator } from \"../../../infra/bases/i18n\";\nimport type { Result } from \"../../../infra/bases/result\";\nimport type { PreferencesResult } from \"../../../modules/user/user.index\";\nimport { createUserModuleBindings, formatPreferencesText } from \"../../../modules/user/user.index\";\nimport { parsePositiveInteger, wantsJson } from \"../command_options\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\nfunction preferencesCapability() {\n const bindings = createUserModuleBindings({ homeDirectory: homedir() });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n return bindings.unwrap().capabilities.preferences;\n}\n\ntype RegisterPreferencesCommandOptions = {\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nfunction printResult(\n result: Result<AgentDevKitErrorCode, PreferencesResult>,\n translator: Translator,\n json?: boolean,\n) {\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const payload = result.unwrap();\n\n if (json === true) {\n console.log(JSON.stringify(payload, null, 2));\n return;\n }\n\n console.log(formatPreferencesText(payload, translator));\n}\n\nexport function registerPreferencesCommand(\n program: Command,\n options: RegisterPreferencesCommandOptions,\n): void {\n const registerOptions = options;\n const preferences = program\n .command(\"preferences\")\n .alias(\"prefs\")\n .description(registerOptions.translator.t(\"cli.preferences.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.preferences.option.json\"))\n .action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"preferences\",\n options: () => preferences.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n await printResult(\n await preferencesCapability().execute({ action: \"view\" }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const themesCommand = preferences\n .command(\"themes\")\n .description(registerOptions.translator.t(\"cli.preferences.themes.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.preferences.themes.option.json\"));\n\n themesCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"preferences.themes\",\n options: () => themesCommand.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n await printResult(\n await preferencesCapability().execute({ action: \"view\" }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const languagesCommand = preferences\n .command(\"languages\")\n .description(registerOptions.translator.t(\"cli.preferences.languages.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.preferences.languages.option.json\"));\n\n languagesCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"preferences.languages\",\n options: () => languagesCommand.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n await printResult(\n await preferencesCapability().execute({ action: \"view\" }),\n registerOptions.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const setThemeCommand = preferences\n .command(\"set-theme\")\n .argument(\"<theme>\", registerOptions.translator.t(\"cli.preferences.setTheme.argument\"))\n .description(registerOptions.translator.t(\"cli.preferences.setTheme.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.preferences.setTheme.option.json\"));\n\n setThemeCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"preferences.set-theme\",\n options: () => setThemeCommand.opts(),\n },\n async (theme: string) => {\n const options = setThemeCommand.opts<{ json?: boolean }>();\n await printResult(\n await preferencesCapability().execute({ action: \"set-theme\", theme }),\n registerOptions.translator,\n wantsJson(options),\n );\n },\n ),\n );\n\n const setLanguageCommand = preferences\n .command(\"set-language\")\n .argument(\"<language>\", registerOptions.translator.t(\"cli.preferences.setLanguage.argument\"))\n .description(registerOptions.translator.t(\"cli.preferences.setLanguage.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.preferences.setLanguage.option.json\"));\n\n setLanguageCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"preferences.set-language\",\n options: () => setLanguageCommand.opts(),\n },\n async (language: string) => {\n const options = setLanguageCommand.opts<{ json?: boolean }>();\n await printResult(\n await preferencesCapability().execute({\n action: \"set-language\",\n language: language as LanguageId,\n }),\n registerOptions.translator,\n wantsJson(options),\n );\n },\n ),\n );\n\n const setLogRetentionCommand = preferences\n .command(\"set-log-retention\")\n .argument(\"<days>\", registerOptions.translator.t(\"cli.preferences.setLogRetention.argument\"))\n .description(registerOptions.translator.t(\"cli.preferences.setLogRetention.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.preferences.setLogRetention.option.json\"));\n\n setLogRetentionCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"preferences.set-log-retention\",\n options: () => setLogRetentionCommand.opts(),\n },\n async (days: string) => {\n const options = setLogRetentionCommand.opts<{ json?: boolean }>();\n await printResult(\n await preferencesCapability().execute({\n action: \"set-log-retention\",\n logRetentionDays: parsePositiveInteger(days),\n }),\n registerOptions.translator,\n wantsJson(options),\n );\n },\n ),\n );\n\n const updateCommand = preferences\n .command(\"update\")\n .description(registerOptions.translator.t(\"cli.preferences.update.description\"))\n .option(\"--theme <theme>\", registerOptions.translator.t(\"cli.preferences.update.option.theme\"))\n .option(\n \"--language <language>\",\n registerOptions.translator.t(\"cli.preferences.update.option.language\"),\n )\n .option(\n \"--log-retention-days <days>\",\n registerOptions.translator.t(\"cli.preferences.update.option.logRetentionDays\"),\n )\n .option(\"--json\", registerOptions.translator.t(\"cli.preferences.update.option.json\"));\n\n updateCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"preferences.update\",\n options: () => updateCommand.opts(),\n },\n async () => {\n const options = updateCommand.opts<{\n json?: boolean;\n language?: string;\n logRetentionDays?: string;\n theme?: string;\n }>();\n\n await printResult(\n await preferencesCapability().execute({\n action: \"update\",\n language: options.language as LanguageId | undefined,\n logRetentionDays:\n options.logRetentionDays === undefined\n ? undefined\n : parsePositiveInteger(options.logRetentionDays),\n theme: options.theme,\n }),\n registerOptions.translator,\n wantsJson(options),\n );\n },\n ),\n );\n\n const resetDefaultsCommand = preferences\n .command(\"reset-defaults\")\n .description(registerOptions.translator.t(\"cli.preferences.resetDefaults.description\"))\n .option(\"--json\", registerOptions.translator.t(\"cli.preferences.resetDefaults.option.json\"));\n\n resetDefaultsCommand.action(\n registerOptions.usageLogging.track(\n {\n area: \"user\",\n command: \"preferences.reset-defaults\",\n options: () => resetDefaultsCommand.opts(),\n },\n async () => {\n const options = resetDefaultsCommand.opts<{ json?: boolean }>();\n await printResult(\n await preferencesCapability().execute({ action: \"reset-defaults\" }),\n registerOptions.translator,\n wantsJson(options),\n );\n },\n ),\n );\n}\n","import { homedir } from \"node:os\";\nimport type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport {\n type ContextProjectsOptions,\n type ContextProjectsResult,\n createContextModuleBindings,\n formatContextProjectsText,\n} from \"../../../modules/context/context.index\";\nimport { wantsJson } from \"../command_options\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterProjectsCommandOptions = {\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\ntype ProjectStatusSelection = \"active\" | \"archived\" | \"deleted\" | \"all\";\n\nfunction parseTags(value?: string): string[] | undefined {\n const tags = value\n ?.split(\",\")\n .map((tag) => tag.trim())\n .filter((tag) => tag.length > 0);\n\n return tags === undefined || tags.length === 0 ? undefined : tags;\n}\n\nfunction projectsCapability() {\n const bindings = createContextModuleBindings();\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n return bindings.unwrap().capabilities.projects;\n}\n\nasync function printProjectsResult(\n commandOptions: { json?: boolean },\n options: ContextProjectsOptions,\n): Promise<void> {\n const result = await projectsCapability().execute(options);\n\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const payload: ContextProjectsResult = result.unwrap();\n\n if (wantsJson(commandOptions)) {\n console.log(JSON.stringify(payload, null, 2));\n return;\n }\n\n console.log(formatContextProjectsText(payload));\n}\n\nexport function registerProjectsCommand(\n program: Command,\n options: RegisterProjectsCommandOptions,\n): void {\n const projectsCommand = program\n .command(\"projects\")\n .alias(\"project\")\n .description(\"list and manage Agent DevKit context projects\")\n .option(\"--json\", \"print project result as JSON\")\n .option(\"--query <query>\", \"filter projects by text\")\n .option(\"--status <status>\", \"active, archived, deleted or all\");\n\n projectsCommand.action(\n options.usageLogging.track(\n {\n area: \"user\",\n command: \"projects\",\n options: () => projectsCommand.opts(),\n },\n async (commandOptions: {\n json?: boolean;\n query?: string;\n status?: ProjectStatusSelection;\n }) => {\n await printProjectsResult(commandOptions, {\n action: \"list\",\n query: commandOptions.query,\n status: commandOptions.status,\n });\n },\n ),\n );\n\n const createCommand = projectsCommand\n .command(\"create\")\n .description(\"create a context project\")\n .requiredOption(\"--name <name>\", \"project name\")\n .option(\"--description <description>\", \"project description\")\n .option(\"--json\", \"print project result as JSON\")\n .option(\"--path <path>\", \"project path\")\n .option(\"--tags <tags>\", \"comma-separated tags\");\n\n createCommand.action(\n options.usageLogging.track(\n {\n area: \"user\",\n command: \"projects.create\",\n options: () => createCommand.opts(),\n },\n async (commandOptions: {\n description?: string;\n json?: boolean;\n name: string;\n path?: string;\n tags?: string;\n }) => {\n await printProjectsResult(commandOptions, {\n action: \"create\",\n description: commandOptions.description,\n metadata: { homeDirectory: homedir() },\n name: commandOptions.name,\n path: commandOptions.path,\n tags: parseTags(commandOptions.tags),\n });\n },\n ),\n );\n\n const showCommand = projectsCommand\n .command(\"show\")\n .argument(\"<projectId>\", \"project id\")\n .description(\"show a context project\")\n .option(\"--json\", \"print project result as JSON\");\n\n showCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"projects.show\", options: () => showCommand.opts() },\n async (projectId: string, commandOptions: { json?: boolean }) => {\n await printProjectsResult(commandOptions, { action: \"show\", projectId });\n },\n ),\n );\n\n const updateCommand = projectsCommand\n .command(\"update\")\n .argument(\"<projectId>\", \"project id\")\n .description(\"update a context project\")\n .option(\"--description <description>\", \"project description\")\n .option(\"--json\", \"print project result as JSON\")\n .option(\"--name <name>\", \"project name\")\n .option(\"--path <path>\", \"project path\")\n .option(\"--tags <tags>\", \"comma-separated tags\");\n\n updateCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"projects.update\", options: () => updateCommand.opts() },\n async (\n projectId: string,\n commandOptions: {\n description?: string;\n json?: boolean;\n name?: string;\n path?: string;\n tags?: string;\n },\n ) => {\n await printProjectsResult(commandOptions, {\n action: \"update\",\n description: commandOptions.description,\n name: commandOptions.name,\n path: commandOptions.path,\n projectId,\n tags: parseTags(commandOptions.tags),\n });\n },\n ),\n );\n\n const archiveCommand = projectsCommand\n .command(\"archive\")\n .argument(\"<projectId>\", \"project id\")\n .description(\"archive a context project\")\n .option(\"--json\", \"print project result as JSON\");\n\n archiveCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"projects.archive\", options: () => archiveCommand.opts() },\n async (projectId: string, commandOptions: { json?: boolean }) => {\n await printProjectsResult(commandOptions, { action: \"archive\", projectId });\n },\n ),\n );\n\n const deleteCommand = projectsCommand\n .command(\"delete\")\n .argument(\"<projectId>\", \"project id\")\n .description(\"delete a context project\")\n .option(\"--hard\", \"remove project files\")\n .option(\"--json\", \"print project result as JSON\")\n .option(\"--yes\", \"confirm hard delete\");\n\n deleteCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"projects.delete\", options: () => deleteCommand.opts() },\n async (\n projectId: string,\n commandOptions: { hard?: boolean; json?: boolean; yes?: boolean },\n ) => {\n if (commandOptions.hard === true && commandOptions.yes !== true) {\n throw new Error(\"Hard delete requires --yes.\");\n }\n\n await printProjectsResult(commandOptions, {\n action: \"delete\",\n hard: commandOptions.hard === true,\n projectId,\n });\n },\n ),\n );\n}\n","import type { ContextProject, ContextProjectsResult } from \"./projects.entities\";\n\nfunction projectLine(project: ContextProject): string {\n return `${project.id.padEnd(24)} ${project.status.padEnd(8)} ${project.name}`;\n}\n\nexport function formatContextProjectsText(result: ContextProjectsResult): string {\n if (result.action === \"list\") {\n return [\"Agent DevKit Projects\", \"\", ...result.projects.map(projectLine)].join(\"\\n\");\n }\n\n if (result.action === \"delete\") {\n return `Agent DevKit Projects\\n\\n[delete] ${result.projectId} removed=${result.removed} hard=${result.hard}`;\n }\n\n return [\n \"Agent DevKit Projects\",\n \"\",\n `[${result.action}] ${result.project.id}`,\n projectLine(result.project),\n ].join(\"\\n\");\n}\n","import type { ContextSessionIndex, ContextSessionsResult } from \"./sessions.entities\";\n\nfunction sessionLine(session: ContextSessionIndex): string {\n return `${session.sessionId.padEnd(32)} ${session.status.padEnd(8)} ${session.title}`;\n}\n\nexport function formatContextSessionsText(result: ContextSessionsResult): string {\n if (result.action === \"list\") {\n return [\"Agent DevKit Sessions\", \"\", ...result.sessions.map(sessionLine)].join(\"\\n\");\n }\n\n if (result.action === \"search\") {\n return [\n \"Agent DevKit Sessions\",\n \"\",\n `[search] ${result.query}`,\n ...result.results.map((session) => `${sessionLine(session)} score=${session.score}`),\n ].join(\"\\n\");\n }\n\n if (result.action === \"delete\") {\n return `Agent DevKit Sessions\\n\\n[delete] ${result.sessionId} removed=${result.removed} hard=${result.hard}`;\n }\n\n const session = \"index\" in result ? result.index : undefined;\n const id = \"session\" in result ? result.session.id : session?.sessionId;\n\n return [\"Agent DevKit Sessions\", \"\", `[${result.action}] ${id ?? \"\"}`].join(\"\\n\");\n}\n","import { homedir } from \"node:os\";\nimport type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport {\n createProjectModuleBindings,\n formatResetText,\n} from \"../../../modules/project/project.index\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterResetCommandOptions = {\n appVersion: string;\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nexport function registerResetCommand(program: Command, options: RegisterResetCommandOptions): void {\n const resetCommand = program\n .command(\"reset\")\n .description(options.translator.t(\"cli.reset.description\"))\n .option(\"-g, --global\", options.translator.t(\"cli.reset.option.global\"))\n .option(\"--dry-run\", options.translator.t(\"cli.reset.option.dryRun\"))\n .option(\"--json\", options.translator.t(\"cli.reset.option.json\"))\n .option(\"--yes\", options.translator.t(\"cli.reset.option.yes\"));\n\n resetCommand.action(\n options.usageLogging.track(\n {\n area: \"project\",\n command: \"reset\",\n options: () => resetCommand.opts(),\n },\n async (commandOptions: {\n dryRun?: boolean;\n global?: boolean;\n json?: boolean;\n yes?: boolean;\n }) => {\n const bindings = createProjectModuleBindings({\n appVersion: options.appVersion,\n });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n const result = await bindings.unwrap().capabilities.reset.execute({\n confirmed: commandOptions.yes === true,\n dryRun: commandOptions.dryRun === true,\n homeDirectory: homedir(),\n projectRoot: process.cwd(),\n scope: commandOptions.global === true ? \"global\" : \"project\",\n });\n\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const resetResult = result.unwrap();\n\n if (commandOptions.json === true) {\n console.log(JSON.stringify(resetResult, null, 2));\n return;\n }\n\n console.log(formatResetText(resetResult, options.translator));\n },\n ),\n );\n}\n","import type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport type { ToolRuntimeResult } from \"../../../infra/bases/tool_runtime\";\nimport { createCliToolRuntime } from \"../toolRuntime\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterRunCommandOptions = {\n currentVersion: string;\n packageName: string;\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nfunction parseJsonInput(input: string): unknown {\n try {\n return JSON.parse(input);\n } catch {\n throw new Error(\"Invalid JSON passed to --input.\");\n }\n}\n\nfunction formatRunText(result: ToolRuntimeResult): string {\n if (result.status === \"succeeded\") {\n return JSON.stringify(result.output, null, 2);\n }\n\n return [`${result.status}: ${result.capabilityId}`, result.error?.message, result.error?.hint]\n .filter((line) => line !== undefined && line.length > 0)\n .join(\"\\n\");\n}\n\nexport function registerRunCommand(program: Command, options: RegisterRunCommandOptions): void {\n const runCommand = program\n .command(\"run\")\n .argument(\"<capabilityId>\", options.translator.t(\"cli.run.argument.capabilityId\"))\n .description(options.translator.t(\"cli.run.description\"))\n .requiredOption(\"--input <json>\", options.translator.t(\"cli.run.option.input\"))\n .option(\"--approve\", options.translator.t(\"cli.run.option.approve\"))\n .option(\"--json\", options.translator.t(\"cli.run.option.json\"));\n\n runCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"run\",\n options: () => runCommand.opts(),\n redactOptions: [\"--input\"],\n },\n async (\n capabilityId: string,\n commandOptions: { approve?: boolean; input: string; json?: boolean },\n ) => {\n const runtime = createCliToolRuntime({\n currentVersion: options.currentVersion,\n packageName: options.packageName,\n });\n const result = await runtime.execute({\n approved: commandOptions.approve === true,\n capabilityId,\n input: parseJsonInput(commandOptions.input),\n interface: \"cli\",\n requestedBy: \"agent.run\",\n });\n\n if (commandOptions.json === true) {\n console.log(JSON.stringify(result, null, 2));\n } else if (result.status === \"succeeded\") {\n console.log(formatRunText(result));\n } else {\n console.error(formatRunText(result));\n }\n\n if (result.status !== \"succeeded\") {\n process.exitCode = 1;\n }\n },\n ),\n );\n}\n","import { homedir } from \"node:os\";\nimport { text } from \"node:stream/consumers\";\nimport type { Command } from \"commander\";\nimport type { AgentDevKitErrorCode } from \"../../../infra/bases/errors\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport type { Result } from \"../../../infra/bases/result\";\nimport type { SecretsVaultResult } from \"../../../modules/secrets/secrets.index\";\nimport {\n createSecretsModuleBindings,\n formatSecretsVaultText,\n} from \"../../../modules/secrets/secrets.index\";\nimport { wantsJson } from \"../command_options\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterSecretsCommandOptions = {\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nfunction secretsCapability() {\n const bindings = createSecretsModuleBindings({ homeDirectory: homedir() });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n return bindings.unwrap().capabilities.vault;\n}\n\nasync function resolveSecretValue(options: { stdin?: boolean; value?: string }): Promise<string> {\n if (options.stdin === true && options.value !== undefined) {\n throw new Error(\"Use --stdin or --value, not both.\");\n }\n\n if (options.stdin === true) {\n const value = (await text(process.stdin)).replace(/\\r?\\n$/, \"\");\n\n if (value.length === 0) {\n throw new Error(\"Secret value from stdin cannot be empty.\");\n }\n\n return value;\n }\n\n if (options.value === undefined || options.value.length === 0) {\n throw new Error(\"Secret value is required. Use --stdin or --value.\");\n }\n\n return options.value;\n}\n\nfunction printResult(\n result: Result<AgentDevKitErrorCode, SecretsVaultResult>,\n translator: Translator,\n json?: boolean,\n) {\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const payload = result.unwrap();\n\n if (json === true) {\n console.log(JSON.stringify(payload, null, 2));\n return;\n }\n\n console.log(formatSecretsVaultText(payload, translator));\n}\n\nexport function registerSecretsCommand(\n program: Command,\n options: RegisterSecretsCommandOptions,\n): void {\n const secretsCommand = program\n .command(\"secrets\")\n .description(options.translator.t(\"cli.secrets.description\"))\n .option(\"--json\", options.translator.t(\"cli.secrets.option.json\"));\n\n secretsCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"secrets\",\n options: () => secretsCommand.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n await printResult(\n await secretsCapability().execute({ action: \"list\" }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const listCommand = secretsCommand\n .command(\"list\")\n .description(options.translator.t(\"cli.secrets.list.description\"))\n .option(\"--json\", options.translator.t(\"cli.secrets.option.json\"));\n\n listCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"secrets.list\",\n options: () => listCommand.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n await printResult(\n await secretsCapability().execute({ action: \"list\" }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const setCommand = secretsCommand\n .command(\"set\")\n .argument(\"<name>\", options.translator.t(\"cli.secrets.argument.name\"))\n .description(options.translator.t(\"cli.secrets.set.description\"))\n .option(\"--json\", options.translator.t(\"cli.secrets.option.json\"))\n .option(\"--service <service>\", options.translator.t(\"cli.secrets.set.option.service\"))\n .option(\"--stdin\", options.translator.t(\"cli.secrets.set.option.stdin\"))\n .option(\"--value <value>\", options.translator.t(\"cli.secrets.set.option.value\"));\n\n setCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"secrets.set\",\n options: () => setCommand.opts(),\n redactOptions: [\"--value\"],\n },\n async (name: string) => {\n const commandOptions = setCommand.opts<{\n json?: boolean;\n service?: string;\n stdin?: boolean;\n value?: string;\n }>();\n const value = await resolveSecretValue(commandOptions);\n await printResult(\n await secretsCapability().execute({\n action: \"set\",\n name,\n service: commandOptions.service,\n value,\n }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const showCommand = secretsCommand\n .command(\"show\")\n .argument(\"<name>\", options.translator.t(\"cli.secrets.argument.name\"))\n .description(options.translator.t(\"cli.secrets.show.description\"))\n .option(\"--json\", options.translator.t(\"cli.secrets.option.json\"))\n .option(\"--reveal\", options.translator.t(\"cli.secrets.show.option.reveal\"));\n\n showCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"secrets.show\",\n options: () => showCommand.opts(),\n },\n async (name: string) => {\n const commandOptions = showCommand.opts<{ json?: boolean; reveal?: boolean }>();\n await printResult(\n await secretsCapability().execute({\n action: \"show\",\n name,\n reveal: commandOptions.reveal === true,\n }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const rotateCommand = secretsCommand\n .command(\"rotate\")\n .argument(\"<name>\", options.translator.t(\"cli.secrets.argument.name\"))\n .description(options.translator.t(\"cli.secrets.rotate.description\"))\n .option(\"--json\", options.translator.t(\"cli.secrets.option.json\"))\n .option(\"--service <service>\", options.translator.t(\"cli.secrets.set.option.service\"))\n .option(\"--stdin\", options.translator.t(\"cli.secrets.set.option.stdin\"))\n .option(\"--value <value>\", options.translator.t(\"cli.secrets.set.option.value\"));\n\n rotateCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"secrets.rotate\",\n options: () => rotateCommand.opts(),\n redactOptions: [\"--value\"],\n },\n async (name: string) => {\n const commandOptions = rotateCommand.opts<{\n json?: boolean;\n service?: string;\n stdin?: boolean;\n value?: string;\n }>();\n const value = await resolveSecretValue(commandOptions);\n await printResult(\n await secretsCapability().execute({\n action: \"rotate\",\n name,\n service: commandOptions.service,\n value,\n }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const auditCommand = secretsCommand\n .command(\"audit\")\n .argument(\"[name]\", options.translator.t(\"cli.secrets.audit.argument.name\"))\n .description(options.translator.t(\"cli.secrets.audit.description\"))\n .option(\"--json\", options.translator.t(\"cli.secrets.option.json\"));\n\n auditCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"secrets.audit\",\n options: () => auditCommand.opts(),\n },\n async (name: string | undefined) => {\n const commandOptions = auditCommand.opts<{ json?: boolean }>();\n await printResult(\n await secretsCapability().execute({ action: \"audit\", name }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n\n const removeCommand = secretsCommand\n .command(\"remove\")\n .alias(\"rm\")\n .argument(\"<name>\", options.translator.t(\"cli.secrets.argument.name\"))\n .description(options.translator.t(\"cli.secrets.remove.description\"))\n .option(\"--json\", options.translator.t(\"cli.secrets.option.json\"));\n\n removeCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"secrets.remove\",\n options: () => removeCommand.opts(),\n },\n async (name: string) => {\n const commandOptions = removeCommand.opts<{ json?: boolean }>();\n await printResult(\n await secretsCapability().execute({ action: \"remove\", name }),\n options.translator,\n wantsJson(commandOptions),\n );\n },\n ),\n );\n}\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { SecretsVaultResult, SecretView } from \"./vault.entities\";\n\nconst defaultTranslator = new I18nCatalog().translator(\"en-US\");\n\nfunction formatSecret(secret: SecretView): string {\n return ` ${secret.name.padEnd(28)} ${(secret.service ?? \"-\").padEnd(12)} ${secret.value ?? \"********\"}`;\n}\n\nfunction formatAuditEvent(event: SecretsVaultResult & { action: \"audit\" }): string[] {\n return event.events.map(\n (auditEvent) =>\n ` ${auditEvent.timestamp.padEnd(24)} ${auditEvent.action.padEnd(8)} ${auditEvent.name.padEnd(28)} ${auditEvent.service ?? \"-\"}`,\n );\n}\n\nexport function formatSecretsVaultText(\n result: SecretsVaultResult,\n translator: Translator = defaultTranslator,\n): string {\n const t = (key: string, values?: Record<string, string | number | boolean>) =>\n translator.t(key, values);\n const rows = [t(\"secrets.title\"), t(\"secrets.command\"), \"\", `[${result.action}] ${result.path}`];\n\n if (result.action === \"audit\") {\n rows.push(\"\", ` ${t(\"secrets.section.audit\")}`, ...formatAuditEvent(result));\n return rows.join(\"\\n\");\n }\n\n if (result.action === \"list\") {\n rows.push(\"\", ` ${t(\"secrets.section.items\")}`, ...result.secrets.map(formatSecret));\n return rows.join(\"\\n\");\n }\n\n if (result.action === \"remove\") {\n rows.push(` ${t(\"secrets.field.name\").padEnd(8)} ${result.secret.name}`);\n rows.push(` ${t(\"secrets.field.removed\").padEnd(8)} ${String(result.removed)}`);\n return rows.join(\"\\n\");\n }\n\n rows.push(formatSecret(result.secret));\n return rows.join(\"\\n\");\n}\n","import type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport {\n type ContextMessageKind,\n type ContextMessageRole,\n type ContextSessionOrigin,\n type ContextSessionsOptions,\n type ContextSessionsResult,\n createContextModuleBindings,\n formatContextSessionsText,\n} from \"../../../modules/context/context.index\";\nimport { parseNonNegativeInteger, wantsJson } from \"../command_options\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterSessionsCommandOptions = {\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\ntype SessionStatusSelection = \"active\" | \"archived\" | \"deleted\" | \"all\";\n\nfunction parseTags(value?: string): string[] | undefined {\n const tags = value\n ?.split(\",\")\n .map((tag) => tag.trim())\n .filter((tag) => tag.length > 0);\n\n return tags === undefined || tags.length === 0 ? undefined : tags;\n}\n\nfunction sessionsCapability() {\n const bindings = createContextModuleBindings();\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n return bindings.unwrap().capabilities.sessions;\n}\n\nasync function printSessionsResult(\n commandOptions: { json?: boolean },\n options: ContextSessionsOptions,\n): Promise<void> {\n const result = await sessionsCapability().execute(options);\n\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const payload: ContextSessionsResult = result.unwrap();\n\n if (wantsJson(commandOptions)) {\n console.log(JSON.stringify(payload, null, 2));\n return;\n }\n\n console.log(formatContextSessionsText(payload));\n}\n\nexport function registerSessionsCommand(\n program: Command,\n options: RegisterSessionsCommandOptions,\n): void {\n const sessionsCommand = program\n .command(\"sessions\")\n .alias(\"session\")\n .description(\"list and manage Agent DevKit context sessions\")\n .option(\"--json\", \"print session result as JSON\")\n .option(\"--limit <limit>\", \"maximum number of sessions\")\n .option(\"--project <projectId>\", \"project id\")\n .option(\"--query <query>\", \"filter sessions by text\")\n .option(\"--status <status>\", \"active, archived, deleted or all\");\n\n sessionsCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"sessions\", options: () => sessionsCommand.opts() },\n async (commandOptions: {\n json?: boolean;\n limit?: string;\n project?: string;\n query?: string;\n status?: SessionStatusSelection;\n }) => {\n await printSessionsResult(commandOptions, {\n action: \"list\",\n limit: parseNonNegativeInteger(commandOptions.limit),\n projectId: commandOptions.project,\n query: commandOptions.query,\n status: commandOptions.status,\n });\n },\n ),\n );\n\n const createCommand = sessionsCommand\n .command(\"create\")\n .description(\"create a context session\")\n .option(\"--json\", \"print session result as JSON\")\n .option(\"--origin <origin>\", \"cli, tui, mcp or agent\", \"cli\")\n .option(\"--project <projectId>\", \"project id\")\n .option(\"--tags <tags>\", \"comma-separated tags\")\n .option(\"--title <title>\", \"session title\");\n\n createCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"sessions.create\", options: () => createCommand.opts() },\n async (commandOptions: {\n json?: boolean;\n origin?: ContextSessionOrigin;\n project?: string;\n tags?: string;\n title?: string;\n }) => {\n await printSessionsResult(commandOptions, {\n action: \"create\",\n origin: commandOptions.origin ?? \"cli\",\n projectId: commandOptions.project,\n tags: parseTags(commandOptions.tags),\n title: commandOptions.title,\n });\n },\n ),\n );\n\n const appendCommand = sessionsCommand\n .command(\"append\")\n .argument(\"<sessionId>\", \"session id\")\n .description(\"append a message to a context session\")\n .requiredOption(\"--content <content>\", \"message content\")\n .option(\"--json\", \"print session result as JSON\")\n .option(\"--kind <kind>\", \"message, event, tool-call, tool-result or summary\", \"message\")\n .option(\"--role <role>\", \"user, assistant, system or tool\", \"user\");\n\n appendCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"sessions.append\", options: () => appendCommand.opts() },\n async (\n sessionId: string,\n commandOptions: {\n content: string;\n json?: boolean;\n kind?: ContextMessageKind;\n role?: ContextMessageRole;\n },\n ) => {\n await printSessionsResult(commandOptions, {\n action: \"append-message\",\n content: commandOptions.content,\n kind: commandOptions.kind ?? \"message\",\n role: commandOptions.role ?? \"user\",\n sessionId,\n });\n },\n ),\n );\n\n const showCommand = sessionsCommand\n .command(\"show\")\n .argument(\"<sessionId>\", \"session id\")\n .description(\"show a context session\")\n .option(\"--json\", \"print session result as JSON\")\n .option(\"--limit <limit>\", \"maximum number of messages\")\n .option(\"--messages\", \"include messages\");\n\n showCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"sessions.show\", options: () => showCommand.opts() },\n async (\n sessionId: string,\n commandOptions: { json?: boolean; limit?: string; messages?: boolean },\n ) => {\n await printSessionsResult(commandOptions, {\n action: \"show\",\n includeMessages: commandOptions.messages === true,\n limit: parseNonNegativeInteger(commandOptions.limit),\n sessionId,\n });\n },\n ),\n );\n\n const searchCommand = sessionsCommand\n .command(\"search\")\n .argument(\"<query>\", \"query\")\n .description(\"search context sessions\")\n .option(\"--json\", \"print session result as JSON\")\n .option(\"--limit <limit>\", \"maximum number of results\")\n .option(\"--project <projectId>\", \"project id\");\n\n searchCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"sessions.search\", options: () => searchCommand.opts() },\n async (\n query: string,\n commandOptions: { json?: boolean; limit?: string; project?: string },\n ) => {\n await printSessionsResult(commandOptions, {\n action: \"search\",\n limit: parseNonNegativeInteger(commandOptions.limit),\n projectId: commandOptions.project,\n query,\n });\n },\n ),\n );\n\n const resumeCommand = sessionsCommand\n .command(\"resume\")\n .argument(\"<sessionId>\", \"session id\")\n .description(\"resume a context session\")\n .option(\"--json\", \"print session result as JSON\");\n\n resumeCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"sessions.resume\", options: () => resumeCommand.opts() },\n async (sessionId: string, commandOptions: { json?: boolean }) => {\n await printSessionsResult(commandOptions, { action: \"resume\", sessionId });\n },\n ),\n );\n\n const archiveCommand = sessionsCommand\n .command(\"archive\")\n .argument(\"<sessionId>\", \"session id\")\n .description(\"archive a context session\")\n .option(\"--json\", \"print session result as JSON\");\n\n archiveCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"sessions.archive\", options: () => archiveCommand.opts() },\n async (sessionId: string, commandOptions: { json?: boolean }) => {\n await printSessionsResult(commandOptions, { action: \"archive\", sessionId });\n },\n ),\n );\n\n const deleteCommand = sessionsCommand\n .command(\"delete\")\n .argument(\"<sessionId>\", \"session id\")\n .description(\"delete a context session\")\n .option(\"--hard\", \"remove session files\")\n .option(\"--json\", \"print session result as JSON\")\n .option(\"--yes\", \"confirm hard delete\");\n\n deleteCommand.action(\n options.usageLogging.track(\n { area: \"user\", command: \"sessions.delete\", options: () => deleteCommand.opts() },\n async (\n sessionId: string,\n commandOptions: { hard?: boolean; json?: boolean; yes?: boolean },\n ) => {\n if (commandOptions.hard === true && commandOptions.yes !== true) {\n throw new Error(\"Hard delete requires --yes.\");\n }\n\n await printSessionsResult(commandOptions, {\n action: \"delete\",\n hard: commandOptions.hard === true,\n sessionId,\n });\n },\n ),\n );\n}\n","import type { Command } from \"commander\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport type { ToolRuntimeTool } from \"../../../infra/bases/tool_runtime\";\nimport { createCliToolRuntime } from \"../toolRuntime\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterToolsCommandOptions = {\n currentVersion: string;\n packageName: string;\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nfunction formatToolsText(tools: ToolRuntimeTool[]): string {\n const rows = tools.map((tool) => ({\n id: tool.id,\n kind: tool.kind,\n module: tool.moduleId,\n risk: tool.risk,\n }));\n const widths = {\n id: Math.max(\"id\".length, ...rows.map((row) => row.id.length)),\n kind: Math.max(\"kind\".length, ...rows.map((row) => row.kind.length)),\n module: Math.max(\"module\".length, ...rows.map((row) => row.module.length)),\n risk: Math.max(\"risk\".length, ...rows.map((row) => row.risk.length)),\n };\n const line = (row: { id: string; kind: string; module: string; risk: string }) =>\n `${row.id.padEnd(widths.id)} ${row.module.padEnd(widths.module)} ${row.risk.padEnd(\n widths.risk,\n )} ${row.kind.padEnd(widths.kind)}`;\n\n return [\n line({ id: \"id\", kind: \"kind\", module: \"module\", risk: \"risk\" }),\n line({\n id: \"-\".repeat(widths.id),\n kind: \"-\".repeat(widths.kind),\n module: \"-\".repeat(widths.module),\n risk: \"-\".repeat(widths.risk),\n }),\n ...rows.map(line),\n ].join(\"\\n\");\n}\n\nexport function registerToolsCommand(program: Command, options: RegisterToolsCommandOptions): void {\n const toolsCommand = program\n .command(\"tools\")\n .description(options.translator.t(\"cli.tools.description\"))\n .option(\"--json\", options.translator.t(\"cli.tools.option.json\"));\n\n toolsCommand.action(\n options.usageLogging.track(\n {\n area: \"system\",\n command: \"tools\",\n createStateIfMissing: false,\n options: () => toolsCommand.opts(),\n },\n async (commandOptions: { json?: boolean }) => {\n const runtime = createCliToolRuntime({\n currentVersion: options.currentVersion,\n packageName: options.packageName,\n });\n const tools = runtime.listTools();\n\n if (commandOptions.json === true) {\n console.log(JSON.stringify({ tools }, null, 2));\n return;\n }\n\n console.log(formatToolsText(tools));\n },\n ),\n );\n}\n","import { I18nCatalog } from \"../../../../infra/assets/i18n_catalog\";\nimport type { Translator } from \"../../../../infra/bases/i18n\";\nimport type { SelfUpdateResult } from \"./update.entities\";\n\nconst defaultTranslator = new I18nCatalog().translator(\"en-US\");\n\nexport function formatUpdateText(result: SelfUpdateResult, translator?: Translator): string {\n const activeTranslator = translator ?? defaultTranslator;\n const t = (key: string) => activeTranslator.t(key);\n\n return [\n t(\"update.title\"),\n t(\"update.command\"),\n \"\",\n `[${result.status}] ${result.packageName}`,\n ` ${t(\"update.field.current\").padEnd(8)} ${result.currentVersion}`,\n ` ${t(\"update.field.selected\").padEnd(8)} ${result.selectedVersion}`,\n result.command\n ? ` ${t(\"update.field.command\").padEnd(8)} ${result.command}`\n : ` ${t(\"update.field.command\").padEnd(8)} ${t(\"update.noUpdateRequired\")}`,\n \"\",\n ` ${t(\"update.section.versions\")}`,\n ...result.versions.slice(0, 8).map((version) => {\n const marker = version.selected ? \">\" : \" \";\n const labels = [\n version.current ? t(\"update.label.current\") : undefined,\n version.latest ? t(\"update.label.latest\") : undefined,\n ]\n .filter(Boolean)\n .join(\", \");\n return ` ${marker} ${version.version}${labels ? ` ${labels}` : \"\"}`;\n }),\n ].join(\"\\n\");\n}\n","import type { Command } from \"commander\";\nimport packageJson from \"../../../../package.json\";\nimport type { Translator } from \"../../../infra/bases/i18n\";\nimport { createSelfModuleBindings, formatUpdateText } from \"../../../modules/self/self.index\";\nimport type { CliUsageLoggingMiddleware } from \"../usageLogging\";\n\ntype RegisterUpdateCommandOptions = {\n translator: Translator;\n usageLogging: CliUsageLoggingMiddleware;\n};\n\nexport function registerUpdateCommand(\n program: Command,\n options: RegisterUpdateCommandOptions,\n): void {\n const updateCommand = program\n .command(\"update\")\n .argument(\"[version]\", options.translator.t(\"cli.update.argument.version\"))\n .description(options.translator.t(\"cli.update.description\"))\n .option(\"--dry-run\", options.translator.t(\"cli.update.option.dryRun\"))\n .option(\"--json\", options.translator.t(\"cli.update.option.json\"))\n .option(\"--latest\", options.translator.t(\"cli.update.option.latest\"))\n .option(\"--yes\", options.translator.t(\"cli.update.option.yes\"));\n\n updateCommand.action(\n options.usageLogging.track(\n {\n area: \"self\",\n command: \"update\",\n options: () => updateCommand.opts(),\n },\n async (\n targetVersion: string | undefined,\n commandOptions: {\n dryRun?: boolean;\n json?: boolean;\n latest?: boolean;\n yes?: boolean;\n },\n ) => {\n const bindings = createSelfModuleBindings({\n currentVersion: packageJson.version,\n packageName: packageJson.name,\n });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n const result = await bindings.unwrap().capabilities.update.execute({\n dryRun: commandOptions.dryRun === true,\n latest: commandOptions.latest === true,\n version: targetVersion,\n yes: commandOptions.yes === true,\n });\n\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n const updateResult = result.unwrap();\n\n if (commandOptions.json === true) {\n console.log(JSON.stringify(updateResult, null, 2));\n return;\n }\n\n console.log(formatUpdateText(updateResult, options.translator));\n },\n ),\n );\n}\n","import { homedir } from \"node:os\";\nimport { createInterface } from \"node:readline/promises\";\nimport type { Translator } from \"../../infra/bases/i18n\";\nimport { ModelCatalogLoader } from \"../../infra/models/model_catalog\";\nimport { createModelsModuleBindings } from \"../../modules/models/models.index\";\n\nfunction affirmative(answer: string): boolean {\n const normalized = answer.trim().toLowerCase();\n return normalized === \"y\" || normalized === \"yes\" || normalized === \"s\" || normalized === \"sim\";\n}\n\n/**\n * On the first interactive `agent` run, confirm a local model is available.\n * If none is installed, offer to download the recommended one. Never blocks the\n * tool: any failure or a non-interactive terminal falls through silently.\n */\nexport async function ensureFirstRunModel(translator: Translator): Promise<void> {\n const bindings = createModelsModuleBindings({ homeDirectory: homedir() });\n\n if (bindings.isErr()) {\n return;\n }\n\n const registry = bindings.unwrap().capabilities.registry;\n const models = await registry.execute({ action: \"list\" });\n\n if (models.isErr()) {\n return;\n }\n\n const modelsResult = models.unwrap();\n\n if (modelsResult.action !== \"list\" || modelsResult.models.some((model) => model.installed)) {\n return;\n }\n\n const recommended = await new ModelCatalogLoader().recommended();\n const entry = recommended.isOk() ? recommended.unwrap() : undefined;\n\n if (entry === undefined) {\n return;\n }\n\n const interactive = process.stdin.isTTY === true && process.stdout.isTTY === true;\n\n if (!interactive) {\n process.stderr.write(`${translator.t(\"cli.firstRun.hint\", { id: entry.id })}\\n`);\n return;\n }\n\n const readline = createInterface({ input: process.stdin, output: process.stdout });\n\n try {\n const answer = await readline.question(\n `${translator.t(\"cli.firstRun.prompt\", { id: entry.id })} `,\n );\n\n if (!affirmative(answer)) {\n return;\n }\n\n process.stdout.write(`${translator.t(\"cli.models.install.progress\", { id: entry.id })}\\n`);\n\n const result = await registry.execute({ action: \"install\", id: entry.id });\n\n if (result.isErr()) {\n process.stderr.write(`${translator.t(\"cli.firstRun.failed\", { id: entry.id })}\\n`);\n return;\n }\n\n await registry.execute({ action: \"use\", id: entry.id });\n process.stdout.write(`${translator.t(\"cli.firstRun.installed\", { id: entry.id })}\\n`);\n } finally {\n readline.close();\n }\n}\n","import { existsSync, readFileSync } from \"node:fs\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { Command } from \"commander\";\nimport { I18nCatalog } from \"../../infra/assets/i18n_catalog\";\nimport type { LanguageId, Translator } from \"../../infra/bases/i18n\";\n\nconst supportedLanguages: LanguageId[] = [\"pt-BR\", \"en-US\", \"fr-FR\", \"zh-CN\", \"ja-JP\"];\n\nexport type CliUserPreferences = {\n language: LanguageId;\n logRetentionDays: number;\n};\n\nfunction isLanguageId(value: unknown): value is LanguageId {\n return typeof value === \"string\" && supportedLanguages.includes(value as LanguageId);\n}\n\nfunction isLogRetentionDays(value: unknown): value is number {\n return typeof value === \"number\" && Number.isInteger(value) && value >= 1 && value <= 3650;\n}\n\nexport function loadCliUserPreferences(homeDirectory: string = homedir()): CliUserPreferences {\n const canonicalPreferencesPath = join(\n homeDirectory,\n \".agent-devkit\",\n \"data\",\n \"preferences\",\n \"preferences.json\",\n );\n const legacyPreferencesPath = join(homeDirectory, \".agent-devkit\", \"preferences.json\");\n const preferencesPath = existsSync(canonicalPreferencesPath)\n ? canonicalPreferencesPath\n : legacyPreferencesPath;\n\n if (!existsSync(preferencesPath)) {\n return { language: \"pt-BR\", logRetentionDays: 30 };\n }\n\n try {\n const payload = JSON.parse(readFileSync(preferencesPath, \"utf8\")) as {\n language?: unknown;\n logRetentionDays?: unknown;\n };\n\n return {\n language: isLanguageId(payload.language) ? payload.language : \"pt-BR\",\n logRetentionDays: isLogRetentionDays(payload.logRetentionDays)\n ? payload.logRetentionDays\n : 30,\n };\n } catch {\n return { language: \"pt-BR\", logRetentionDays: 30 };\n }\n}\n\nexport function createCliTranslator(homeDirectory = homedir()): Translator {\n return new I18nCatalog().translator(loadCliUserPreferences(homeDirectory).language);\n}\n\nexport function configureLocalizedHelp(program: Command, translator: Translator): void {\n const titleMap: Record<string, string> = {\n \"Arguments:\": \"cli.help.title.arguments\",\n \"Commands:\": \"cli.help.title.commands\",\n \"Global Options:\": \"cli.help.title.globalOptions\",\n \"Options:\": \"cli.help.title.options\",\n \"Usage:\": \"cli.help.title.usage\",\n };\n\n program.configureHelp({\n styleTitle: (title) => translator.t(titleMap[title] ?? title),\n });\n program.helpOption(\"-h, --help\", translator.t(\"cli.help.option\"));\n}\n","import { homedir } from \"node:os\";\nimport { createBrainDockProvider } from \"../../infra/brain/brain_dock\";\nimport {\n createConversationModuleBindings,\n formatConversationChatText,\n} from \"../../modules/conversation/conversation.index\";\n\nexport async function runRootConversation(message: string): Promise<void> {\n const bindings = createConversationModuleBindings({\n brainProvider: createBrainDockProvider({ stateDirectory: `${homedir()}/.agent-devkit` }),\n homeDirectory: homedir(),\n });\n\n if (bindings.isErr()) {\n throw new Error(bindings.unwrapError());\n }\n\n const result = await bindings.unwrap().capabilities.chat.execute({\n action: \"send\",\n message,\n });\n\n if (result.isErr()) {\n throw new Error(result.unwrapError());\n }\n\n console.log(formatConversationChatText(result.unwrap()));\n}\n","import type { ConversationChatResult } from \"./chat.entities\";\n\nexport function formatConversationChatText(result: ConversationChatResult): string {\n const lines = [\"Agent:\", result.reply, \"\", `Session: ${result.sessionId}`];\n\n if (result.projectId !== undefined) {\n lines.push(`Project: ${result.projectId}`);\n }\n\n return lines.join(\"\\n\");\n}\n","const redacted = \"[redacted]\";\nconst sensitiveKeyPattern = /(api[-_]?key|auth|credential|password|secret|token|value)/i;\n\nfunction normalizeOptionName(option: string): string {\n return option.replace(/^--?/, \"\").replace(/-([a-z])/g, (_, char: string) => char.toUpperCase());\n}\n\nfunction isSensitiveKey(key: string, sensitiveKeys: Set<string>): boolean {\n return sensitiveKeys.has(key) || sensitiveKeyPattern.test(key);\n}\n\nexport function redactArgv(argv: string[], sensitiveOptions: string[] = []): string[] {\n const sensitiveFlags = new Set(sensitiveOptions);\n const output: string[] = [];\n\n for (let index = 0; index < argv.length; index += 1) {\n const token = argv[index];\n\n if (token === undefined) {\n continue;\n }\n\n if (sensitiveFlags.has(token)) {\n output.push(token);\n if (index + 1 < argv.length) {\n output.push(redacted);\n index += 1;\n }\n continue;\n }\n\n const [flag] = token.split(\"=\");\n if (flag !== undefined && sensitiveFlags.has(flag) && token.includes(\"=\")) {\n output.push(`${flag}=${redacted}`);\n continue;\n }\n\n output.push(token);\n }\n\n return output;\n}\n\nexport function redactUnknown(value: unknown, sensitiveOptionNames: string[] = []): unknown {\n const sensitiveKeys = new Set(sensitiveOptionNames.map(normalizeOptionName));\n\n if (Array.isArray(value)) {\n return value.map((item) => redactUnknown(item, sensitiveOptionNames));\n }\n\n if (value === null || typeof value !== \"object\") {\n return value;\n }\n\n return Object.fromEntries(\n Object.entries(value as Record<string, unknown>)\n .filter(([, entryValue]) => entryValue !== undefined && typeof entryValue !== \"function\")\n .map(([key, entryValue]) => [\n key,\n isSensitiveKey(key, sensitiveKeys)\n ? redacted\n : redactUnknown(entryValue, sensitiveOptionNames),\n ]),\n );\n}\n\nexport function redactRecord(\n value: Record<string, unknown>,\n sensitiveOptionNames: string[] = [],\n): Record<string, unknown> {\n return redactUnknown(value, sensitiveOptionNames) as Record<string, unknown>;\n}\n","import type {\n LogLevel,\n TechnicalLogger,\n UsageLogArea,\n UsageLogger,\n} from \"../../infra/bases/logger\";\nimport { errorCause } from \"../../infra/helpers/error_cause\";\nimport { redactArgv, redactRecord } from \"../../infra/helpers/redaction\";\n\ntype CliUsageLoggingMiddlewareOptions = {\n argv?: string[];\n clock?: () => number;\n logger: UsageLogger;\n technicalLogger?: TechnicalLogger;\n};\n\ntype CliUsageMetadata = {\n area: UsageLogArea;\n command: string;\n createStateIfMissing?: boolean;\n options?: () => Record<string, unknown>;\n redactOptions?: string[];\n};\n\nexport class CliUsageLoggingMiddleware {\n readonly #argv: string[];\n readonly #clock: () => number;\n readonly #logger: UsageLogger;\n readonly #technicalLogger?: TechnicalLogger;\n\n constructor(options: CliUsageLoggingMiddlewareOptions) {\n this.#argv = options.argv ?? process.argv.slice(2);\n this.#clock = options.clock ?? (() => Date.now());\n this.#logger = options.logger;\n this.#technicalLogger = options.technicalLogger;\n }\n\n track<TArgs extends unknown[]>(\n metadata: CliUsageMetadata,\n handler: (...args: TArgs) => Promise<void> | void,\n ): (...args: TArgs) => Promise<void> {\n return async (...args: TArgs) => {\n const startedAt = this.#clock();\n\n try {\n await this.#writeTechnical(metadata, \"command.started\", \"info\", \"CLI command started\");\n await handler(...args);\n await this.#writeTechnical(\n metadata,\n \"command.succeeded\",\n \"info\",\n \"CLI command succeeded\",\n this.#clock() - startedAt,\n );\n await this.#write(metadata, \"succeeded\", this.#clock() - startedAt);\n } catch (error) {\n await this.#writeTechnical(\n metadata,\n \"command.failed\",\n \"error\",\n \"CLI command failed\",\n this.#clock() - startedAt,\n error,\n );\n await this.#write(metadata, \"failed\", this.#clock() - startedAt, error);\n throw error;\n }\n };\n }\n\n async #write(\n metadata: CliUsageMetadata,\n status: \"failed\" | \"succeeded\",\n durationMs: number,\n error?: unknown,\n ): Promise<void> {\n await this.#logger.writeUsage({\n area: metadata.area,\n argv: redactArgv(this.#argv, metadata.redactOptions),\n command: metadata.command,\n createStateIfMissing: metadata.createStateIfMissing,\n durationMs: Math.max(0, durationMs),\n error: error === undefined ? undefined : errorCause(error),\n interface: \"cli\",\n options: redactRecord(metadata.options?.() ?? {}, metadata.redactOptions),\n status,\n });\n }\n\n async #writeTechnical(\n metadata: CliUsageMetadata,\n event: string,\n level: LogLevel,\n message: string,\n durationMs?: number,\n error?: unknown,\n ): Promise<void> {\n if (this.#technicalLogger === undefined) {\n return;\n }\n\n await this.#technicalLogger.writeTechnical({\n area: metadata.area,\n command: metadata.command,\n createStateIfMissing: metadata.createStateIfMissing,\n durationMs: durationMs === undefined ? undefined : Math.max(0, durationMs),\n error: error === undefined ? undefined : errorCause(error),\n event,\n interface: \"cli\",\n level,\n message,\n metadata: {\n argv: redactArgv(this.#argv, metadata.redactOptions),\n options: redactRecord(metadata.options?.() ?? {}, metadata.redactOptions),\n },\n });\n }\n}\n","import { Box, Text } from \"ink\";\nimport type { Translator } from \"../../infra/bases/i18n\";\n\ntype AppProps = {\n initialPrompt?: string;\n translator: Translator;\n};\n\nexport function App({ initialPrompt, translator }: AppProps) {\n return (\n <Box flexDirection=\"column\">\n <Text bold>{translator.t(\"tui.title\")}</Text>\n <Text>{translator.t(\"tui.foundation\")}</Text>\n {initialPrompt ? (\n <Text>{translator.t(\"tui.prompt\", { prompt: initialPrompt })}</Text>\n ) : (\n <Text>{translator.t(\"tui.helpHint\")}</Text>\n )}\n </Box>\n );\n}\n","import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { AgentDataStore } from \"../bases/data_store\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport type { TechnicalLogEvent, TechnicalLogger, TechnicalLogInput } from \"../bases/logger\";\nimport { Result } from \"../bases/result\";\nimport { LocalAgentDataStore } from \"../data\";\nimport { redactRecord } from \"../helpers/redaction\";\n\nexport type JsonTechnicalLoggerOptions = {\n clock?: () => Date;\n dataStore?: AgentDataStore;\n retentionDays?: number;\n stateDirectory?: string;\n};\n\nfunction defaultStateDirectory(): string {\n return join(homedir(), \".agent-devkit\");\n}\n\nfunction logFileName(timestamp: Date): string {\n return `technical-${timestamp.toISOString().slice(0, 10)}.jsonl`;\n}\n\nfunction cutoffDate(timestamp: Date, retentionDays: number): string {\n const cutoff = new Date(\n Date.UTC(timestamp.getUTCFullYear(), timestamp.getUTCMonth(), timestamp.getUTCDate()),\n );\n cutoff.setUTCDate(cutoff.getUTCDate() - retentionDays);\n return cutoff.toISOString().slice(0, 10);\n}\n\nfunction dateFromLogFile(fileName: string): string | undefined {\n return /^technical-\\d{4}-\\d{2}-\\d{2}\\.jsonl$/.test(fileName)\n ? fileName.replace(/^technical-/, \"\").replace(/\\.jsonl$/, \"\")\n : undefined;\n}\n\nfunction normalizeMetadata(\n metadata?: Record<string, unknown>,\n): Record<string, unknown> | undefined {\n if (metadata === undefined) {\n return undefined;\n }\n\n const normalized = Object.fromEntries(\n Object.entries(metadata).filter(\n ([, value]) => value !== undefined && typeof value !== \"function\",\n ),\n );\n\n return Object.keys(normalized).length > 0 ? redactRecord(normalized) : undefined;\n}\n\nexport class JsonTechnicalLogger implements TechnicalLogger {\n readonly #clock: () => Date;\n readonly #dataStore: AgentDataStore;\n readonly #retentionDays: number;\n\n constructor(options: JsonTechnicalLoggerOptions = {}) {\n this.#clock = options.clock ?? (() => new Date());\n this.#dataStore =\n options.dataStore ??\n new LocalAgentDataStore({\n rootDirectory: join(options.stateDirectory ?? defaultStateDirectory(), \"data\"),\n });\n this.#retentionDays = options.retentionDays ?? 30;\n }\n\n async writeTechnical(input: TechnicalLogInput): Promise<Result<AgentDevKitErrorCode, void>> {\n const timestamp = this.#clock();\n const { createStateIfMissing, ...logInput } = input;\n const event: TechnicalLogEvent = {\n ...logInput,\n category: \"technical\",\n metadata: normalizeMetadata(input.metadata),\n schema: \"agent-devkit.technical-log/v1\",\n timestamp: timestamp.toISOString(),\n };\n\n try {\n if (createStateIfMissing === false) {\n const logsExist = await this.#dataStore.exists({ namespace: \"logs\", segments: [] });\n\n if (logsExist.isErr()) {\n return Result.fail(logsExist.unwrapError());\n }\n\n if (!logsExist.unwrap()) {\n return Result.ok(undefined);\n }\n }\n\n const write = await this.#dataStore.appendJsonl(\n { namespace: \"logs\", segments: [logFileName(timestamp)] },\n event,\n );\n\n if (write.isErr()) {\n return Result.fail(write.unwrapError());\n }\n\n await this.#cleanupOldLogs(timestamp);\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n async #cleanupOldLogs(timestamp: Date): Promise<void> {\n if (!Number.isInteger(this.#retentionDays) || this.#retentionDays < 1) {\n return;\n }\n\n const cutoff = cutoffDate(timestamp, this.#retentionDays);\n const entries = await this.#dataStore.list({ namespace: \"logs\", segments: [] });\n\n if (entries.isErr()) {\n return;\n }\n\n await Promise.all(\n entries.unwrap().flatMap((entry) => {\n const date = dateFromLogFile(entry.name);\n return date !== undefined && date < cutoff ? [this.#dataStore.remove(entry.path)] : [];\n }),\n );\n }\n}\n","import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { AgentDataStore } from \"../bases/data_store\";\nimport { type AgentDevKitErrorCode, ErrorCodes } from \"../bases/errors\";\nimport type { UsageLogEvent, UsageLogger, UsageLogInput } from \"../bases/logger\";\nimport { Result } from \"../bases/result\";\nimport { LocalAgentDataStore } from \"../data\";\nimport { redactRecord } from \"../helpers/redaction\";\n\nexport type JsonUsageLoggerOptions = {\n clock?: () => Date;\n dataStore?: AgentDataStore;\n retentionDays?: number;\n stateDirectory?: string;\n};\n\nfunction defaultStateDirectory(): string {\n return join(homedir(), \".agent-devkit\");\n}\n\nfunction logFileName(timestamp: Date): string {\n return `usage-${timestamp.toISOString().slice(0, 10)}.jsonl`;\n}\n\nfunction cutoffDate(timestamp: Date, retentionDays: number): string {\n const cutoff = new Date(\n Date.UTC(timestamp.getUTCFullYear(), timestamp.getUTCMonth(), timestamp.getUTCDate()),\n );\n cutoff.setUTCDate(cutoff.getUTCDate() - retentionDays);\n return cutoff.toISOString().slice(0, 10);\n}\n\nfunction dateFromLogFile(fileName: string): string | undefined {\n return /^usage-\\d{4}-\\d{2}-\\d{2}\\.jsonl$/.test(fileName)\n ? fileName.replace(/^usage-/, \"\").replace(/\\.jsonl$/, \"\")\n : undefined;\n}\n\nfunction normalizeOptions(options: Record<string, unknown>): Record<string, unknown> {\n return Object.fromEntries(\n Object.entries(options).filter(\n ([, value]) => value !== undefined && typeof value !== \"function\",\n ),\n );\n}\n\nexport class JsonUsageLogger implements UsageLogger {\n readonly #clock: () => Date;\n readonly #dataStore: AgentDataStore;\n readonly #retentionDays: number;\n\n constructor(options: JsonUsageLoggerOptions = {}) {\n this.#clock = options.clock ?? (() => new Date());\n this.#dataStore =\n options.dataStore ??\n new LocalAgentDataStore({\n rootDirectory: join(options.stateDirectory ?? defaultStateDirectory(), \"data\"),\n });\n this.#retentionDays = options.retentionDays ?? 30;\n }\n\n async writeUsage(input: UsageLogInput): Promise<Result<AgentDevKitErrorCode, void>> {\n const timestamp = this.#clock();\n const { createStateIfMissing, ...logInput } = input;\n const event: UsageLogEvent = {\n ...logInput,\n category: \"usage\",\n level: input.status === \"failed\" ? \"error\" : \"info\",\n options: redactRecord(normalizeOptions(input.options)),\n schema: \"agent-devkit.usage-log/v1\",\n timestamp: timestamp.toISOString(),\n };\n\n try {\n if (createStateIfMissing === false) {\n const logsExist = await this.#dataStore.exists({ namespace: \"logs\", segments: [] });\n\n if (logsExist.isErr()) {\n return Result.fail(logsExist.unwrapError());\n }\n\n if (!logsExist.unwrap()) {\n return Result.ok(undefined);\n }\n }\n\n const write = await this.#dataStore.appendJsonl(\n { namespace: \"logs\", segments: [logFileName(timestamp)] },\n event,\n );\n\n if (write.isErr()) {\n return Result.fail(write.unwrapError());\n }\n\n await this.#cleanupOldLogs(timestamp);\n return Result.ok(undefined);\n } catch {\n return Result.fail(ErrorCodes.FileWriteFailed);\n }\n }\n\n async #cleanupOldLogs(timestamp: Date): Promise<void> {\n if (!Number.isInteger(this.#retentionDays) || this.#retentionDays < 1) {\n return;\n }\n\n const cutoff = cutoffDate(timestamp, this.#retentionDays);\n const entries = await this.#dataStore.list({ namespace: \"logs\", segments: [] });\n\n if (entries.isErr()) {\n return;\n }\n\n await Promise.all(\n entries.unwrap().flatMap((entry) => {\n const date = dateFromLogFile(entry.name);\n return date !== undefined && date < cutoff ? [this.#dataStore.remove(entry.path)] : [];\n }),\n );\n }\n}\n"],"mappings":";;;AACA,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,OAAO,WAAW;;;ACHlB;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,SAAW;AAAA,EACX,MAAQ;AAAA,EACR,KAAO;AAAA,IACL,OAAS;AAAA,EACX;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,EACT;AAAA,EACA,MAAQ;AA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AoB,SAAS,EAAE,YAAY,gBAAY,SAAS,YAAY,aAAa,CAAC;AAC1F,uBAAuB,SAAS;AAAA,EAC9B,gBAAgB,gBAAY;AAAA,EAC5B,aAAa,gBAAY;AAAA,EACzB;AAAA,EACA;AACF,CAAC;AACD,oBAAoB,SAAS,EAAE,YAAY,aAAa,CAAC;AACzD,mBAAmB,SAAS;AAAA,EAC1B,gBAAgB,gBAAY;AAAA,EAC5B,aAAa,gBAAY;AAAA,EACzB;AAAA,EACA;AACF,CAAC;AACD,sBAAsB,SAAS,EAAE,YAAY,aAAa,CAAC;AAC3D,+BAA+B,SAAS,EAAE,YAAY,aAAa,CAAC;AACpE,2BAA2B,SAAS,EAAE,YAAY,aAAa,CAAC;AAChE,wBAAwB,SAAS,EAAE,YAAY,aAAa,CAAC;AAC7D,qBAAqB,SAAS,EAAE,YAAY,gBAAY,SAAS,YAAY,aAAa,CAAC;AAC3F,mBAAmB,SAAS;AAAA,EAC1B,gBAAgB,gBAAY;AAAA,EAC5B,aAAa,gBAAY;AAAA,EACzB;AAAA,EACA;AACF,CAAC;AACD,uBAAuB,SAAS,EAAE,YAAY,aAAa,CAAC;AAC5D,wBAAwB,SAAS,EAAE,YAAY,aAAa,CAAC;AAC7D,qBAAqB,SAAS;AAAA,EAC5B,gBAAgB,gBAAY;AAAA,EAC5B,aAAa,gBAAY;AAAA,EACzB;AAAA,EACA;AACF,CAAC;AACD,sBAAsB,SAAS,EAAE,YAAY,aAAa,CAAC;AAE3D,MAAM,QAAQ,WAAW,QAAQ,IAAI;","names":["homedir","z","moduleDirectory","translator","z","z","z","characters","translator","z","z","z","fallbackTranslator","translator","readFile","dirname","join","join","readFile","dirname","existsSync","access","mkdir","readdir","readFile","homedir","basename","dirname","join","resolve","fileURLToPath","access","mkdir","readdir","readFile","rm","writeFile","homedir","dirname","join","resolve","join","homedir","resolve","mkdir","dirname","readFile","readdir","rm","access","writeFile","moduleDirectory","dirname","fileURLToPath","resolve","existsSync","homedir","join","access","basename","mkdir","readFile","readdir","existsSync","access","readdir","readFile","homedir","dirname","join","resolve","fileURLToPath","moduleDirectory","dirname","fileURLToPath","resolve","existsSync","homedir","join","access","readFile","readdir","homedir","translator","program","join","z","platform","join","defaultTranslator","translator","z","defaultTranslator","translator","join","z","join","defaultTranslator","translator","access","readdir","homedir","basename","join","access","homedir","join","readdir","basename","access","mkdir","writeFile","dirname","join","access","join","mkdir","dirname","writeFile","access","rm","access","rm","defaultDependencies","dirname","fileURLToPath","existsSync","readFile","join","resolve","z","readFile","join","moduleDirectory","resolve","existsSync","dirname","fileURLToPath","program","program","z","defaultTranslator","translator","defaultDependencies","dirname","fileURLToPath","moduleDirectory","dirname","fileURLToPath","homedir","access","mkdir","readdir","readFile","rename","rm","writeFile","homedir","basename","join","z","join","homedir","readFile","access","readdir","basename","mkdir","resolve","rm","rename","writeFile","text","text","response","z","endedAt","z","z","now","z","now","defaultDependencies","dirname","fileURLToPath","moduleDirectory","dirname","fileURLToPath","z","z","characterName","z","z","z","z","normalizeOptions","defaultDependencies","dirname","fileURLToPath","moduleDirectory","dirname","fileURLToPath","readdir","readFile","homedir","join","z","join","homedir","readFile","readdir","defaultDependencies","dirname","fileURLToPath","moduleDirectory","dirname","fileURLToPath","existsSync","dirname","resolve","fileURLToPath","readFile","join","resolve","resolve","readFile","join","moduleDirectory","dirname","fileURLToPath","resolve","existsSync","z","defaultId","stateDirectory","defaultDependencies","dirname","fileURLToPath","moduleDirectory","dirname","fileURLToPath","randomBytes","access","chmod","mkdir","readFile","rename","writeFile","homedir","dirname","join","defaultStateDirectory","join","homedir","isNotFoundError","stateDirectory","secret","now","access","readFile","dirname","randomBytes","mkdir","writeFile","chmod","rename","randomBytes","chmod","mkdir","readFile","writeFile","homedir","dirname","join","defaultStateDirectory","join","homedir","stateDirectory","readFile","randomBytes","mkdir","dirname","writeFile","chmod","randomBytes","randomBytes","z","stateDirectory","defaultDependencies","dirname","fileURLToPath","moduleDirectory","dirname","fileURLToPath","z","defaultDependencies","dirname","fileURLToPath","moduleDirectory","dirname","fileURLToPath","dirname","fileURLToPath","moduleDirectory","dirname","fileURLToPath","capabilities","homedir","runtime","printResult","translator","program","homedir","defaultTranslator","commandName","durationMs","statusName","translator","homedir","translator","program","homedir","join","z","z","text","compact","join","homedir","tool","text","resolve","runtime","program","homedir","defaultTranslator","translator","homedir","printResult","translator","program","homedir","homedir","printResult","translator","program","homedir","homedir","printResult","translator","program","options","homedir","session","program","homedir","homedir","program","homedir","program","runtime","homedir","defaultTranslator","translator","homedir","printResult","translator","program","parseTags","program","program","runtime","defaultTranslator","translator","program","homedir","translator","homedir","existsSync","readFileSync","homedir","join","homedir","join","existsSync","readFileSync","program","translator","homedir","homedir","durationMs","translator","homedir","join","defaultStateDirectory","join","homedir","homedir","join","defaultStateDirectory","join","homedir","logFileName","cutoffDate","dateFromLogFile","normalizeOptions"]}