takt 0.49.0 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (990) hide show
  1. package/README.md +31 -0
  2. package/builtins/en/config.yaml +6 -0
  3. package/builtins/en/facets/instructions/ai-antipattern-review.md +5 -0
  4. package/builtins/en/facets/instructions/findings-manager.md +6 -2
  5. package/builtins/en/facets/instructions/fix.md +9 -3
  6. package/builtins/en/facets/instructions/loop-monitor-fix-replan.md +21 -0
  7. package/builtins/en/facets/instructions/loop-monitor-replan.md +10 -0
  8. package/builtins/en/facets/instructions/loop-monitor-reviewers-fix.md +6 -0
  9. package/builtins/en/facets/instructions/plan-maintenance.md +10 -7
  10. package/builtins/en/facets/instructions/plan.md +17 -8
  11. package/builtins/en/facets/instructions/review-arch.md +5 -0
  12. package/builtins/en/facets/instructions/review-coding.md +15 -6
  13. package/builtins/en/facets/instructions/review-cqrs-es.md +9 -0
  14. package/builtins/en/facets/instructions/review-implementation-semantics.md +18 -0
  15. package/builtins/en/facets/instructions/review-merge-readiness.md +14 -0
  16. package/builtins/en/facets/instructions/supervise-maintenance.md +2 -2
  17. package/builtins/en/facets/instructions/supervise.md +8 -3
  18. package/builtins/en/facets/instructions/write-tests-first.md +23 -3
  19. package/builtins/en/facets/knowledge/architecture.md +36 -0
  20. package/builtins/en/facets/knowledge/backend.md +74 -0
  21. package/builtins/en/facets/knowledge/cqrs-es.md +767 -235
  22. package/builtins/en/facets/knowledge/frontend.md +5 -1
  23. package/builtins/en/facets/knowledge/implementation-semantics.md +104 -0
  24. package/builtins/en/facets/knowledge/security.md +3 -0
  25. package/builtins/en/facets/knowledge/takt.md +10 -2
  26. package/builtins/en/facets/knowledge/unit-testing.md +14 -0
  27. package/builtins/en/facets/output-contracts/ai-antipattern-review.md +11 -1
  28. package/builtins/en/facets/output-contracts/architecture-review.md +6 -1
  29. package/builtins/en/facets/output-contracts/coding-review.md +11 -1
  30. package/builtins/en/facets/output-contracts/findings-manager.md +14 -0
  31. package/builtins/en/facets/output-contracts/implementation-semantics-review-finding-contract.md +28 -0
  32. package/builtins/en/facets/output-contracts/implementation-semantics-review.md +50 -0
  33. package/builtins/en/facets/output-contracts/{pure-review-finding-contract.md → merge-readiness-review-finding-contract.md} +14 -8
  34. package/builtins/en/facets/output-contracts/{pure-review.md → merge-readiness-review.md} +17 -11
  35. package/builtins/en/facets/output-contracts/supervisor-validation.md +6 -2
  36. package/builtins/en/facets/output-contracts/test-report.md +25 -0
  37. package/builtins/en/facets/personas/coder.md +3 -3
  38. package/builtins/en/facets/personas/implementation-semantics-reviewer.md +27 -0
  39. package/builtins/en/facets/personas/merge-readiness-reviewer.md +28 -0
  40. package/builtins/en/facets/personas/supervisor.md +1 -1
  41. package/builtins/en/facets/policies/ai-antipattern.md +19 -0
  42. package/builtins/en/facets/policies/coding.md +31 -4
  43. package/builtins/en/facets/policies/review.md +17 -1
  44. package/builtins/en/facets/policies/testing.md +6 -2
  45. package/builtins/en/workflow-categories.yaml +13 -1
  46. package/builtins/en/workflows/audit-architecture-backend.yaml +1 -0
  47. package/builtins/en/workflows/audit-architecture-dual.yaml +1 -0
  48. package/builtins/en/workflows/audit-architecture-frontend.yaml +1 -0
  49. package/builtins/en/workflows/audit-architecture.yaml +1 -0
  50. package/builtins/en/workflows/audit-e2e.yaml +1 -0
  51. package/builtins/en/workflows/audit-security.yaml +1 -0
  52. package/builtins/en/workflows/audit-unit.yaml +1 -0
  53. package/builtins/en/workflows/backend-cqrs-for-local-llm.yaml +288 -0
  54. package/builtins/en/workflows/backend-cqrs-mini.yaml +1 -0
  55. package/builtins/en/workflows/backend-cqrs.yaml +28 -84
  56. package/builtins/en/workflows/backend-for-local-llm.yaml +284 -0
  57. package/builtins/en/workflows/backend-maintenance.yaml +32 -89
  58. package/builtins/en/workflows/backend-mini.yaml +1 -0
  59. package/builtins/en/workflows/backend.yaml +25 -83
  60. package/builtins/en/workflows/{takt-default-with-fc.yaml → cli.yaml} +16 -4
  61. package/builtins/en/workflows/deep-research.yaml +1 -0
  62. package/builtins/en/workflows/default-high.yaml +3 -32
  63. package/builtins/en/workflows/default-peer-review.yaml +16 -52
  64. package/builtins/en/workflows/default.yaml +2 -1
  65. package/builtins/en/workflows/draft.yaml +0 -1
  66. package/builtins/en/workflows/dual-cqrs-mini.yaml +1 -0
  67. package/builtins/en/workflows/dual-cqrs.yaml +28 -87
  68. package/builtins/en/workflows/dual-for-local-llm.yaml +312 -0
  69. package/builtins/en/workflows/dual-mini.yaml +1 -0
  70. package/builtins/en/workflows/dual.yaml +29 -58
  71. package/builtins/en/workflows/frontend-for-local-llm.yaml +289 -0
  72. package/builtins/en/workflows/frontend-maintenance.yaml +34 -91
  73. package/builtins/en/workflows/frontend-mini.yaml +1 -0
  74. package/builtins/en/workflows/frontend.yaml +27 -85
  75. package/builtins/en/workflows/merge-readiness-dual-final-gate.yaml +92 -0
  76. package/builtins/en/workflows/merge-readiness-final-gate.yaml +79 -0
  77. package/builtins/en/workflows/{peer-review-with-fc.yaml → peer-review-for-local-llm.yaml} +48 -37
  78. package/builtins/en/workflows/peer-review.yaml +25 -20
  79. package/builtins/en/workflows/research.yaml +1 -0
  80. package/builtins/en/workflows/review-backend-cqrs.yaml +63 -35
  81. package/builtins/en/workflows/review-backend.yaml +63 -35
  82. package/builtins/en/workflows/review-default.yaml +138 -107
  83. package/builtins/en/workflows/review-dual-cqrs.yaml +63 -35
  84. package/builtins/en/workflows/review-dual.yaml +63 -35
  85. package/builtins/en/workflows/review-fix-backend-cqrs.yaml +27 -87
  86. package/builtins/en/workflows/review-fix-backend.yaml +25 -86
  87. package/builtins/en/workflows/review-fix-default.yaml +17 -87
  88. package/builtins/en/workflows/review-fix-dual-cqrs.yaml +29 -90
  89. package/builtins/en/workflows/review-fix-dual.yaml +27 -89
  90. package/builtins/en/workflows/review-fix-frontend.yaml +25 -87
  91. package/builtins/en/workflows/review-fix-takt-default.yaml +67 -362
  92. package/builtins/en/workflows/review-frontend.yaml +63 -35
  93. package/builtins/en/workflows/review-takt-default.yaml +140 -109
  94. package/builtins/en/workflows/takt-default-for-local-llm.yaml +283 -0
  95. package/builtins/en/workflows/takt-default-refresh-all.yaml +20 -59
  96. package/builtins/en/workflows/takt-default-refresh-fast.yaml +19 -57
  97. package/builtins/en/workflows/takt-default.yaml +3 -25
  98. package/builtins/en/workflows/terraform.yaml +81 -44
  99. package/builtins/ja/config.yaml +6 -0
  100. package/builtins/ja/facets/instructions/ai-antipattern-review.md +5 -0
  101. package/builtins/ja/facets/instructions/findings-manager.md +6 -2
  102. package/builtins/ja/facets/instructions/fix.md +9 -3
  103. package/builtins/ja/facets/instructions/implement-maintenance.md +4 -15
  104. package/builtins/ja/facets/instructions/implement.md +2 -14
  105. package/builtins/ja/facets/instructions/loop-monitor-fix-replan.md +21 -0
  106. package/builtins/ja/facets/instructions/loop-monitor-replan.md +10 -0
  107. package/builtins/ja/facets/instructions/loop-monitor-reviewers-fix.md +7 -0
  108. package/builtins/ja/facets/instructions/plan-maintenance.md +10 -7
  109. package/builtins/ja/facets/instructions/plan.md +9 -6
  110. package/builtins/ja/facets/instructions/review-arch.md +5 -0
  111. package/builtins/ja/facets/instructions/review-coding.md +15 -6
  112. package/builtins/ja/facets/instructions/review-cqrs-es.md +9 -0
  113. package/builtins/ja/facets/instructions/review-implementation-semantics.md +17 -0
  114. package/builtins/ja/facets/instructions/review-merge-readiness.md +14 -0
  115. package/builtins/ja/facets/instructions/supervise-maintenance.md +2 -2
  116. package/builtins/ja/facets/instructions/supervise.md +8 -3
  117. package/builtins/ja/facets/instructions/write-tests-first.md +23 -3
  118. package/builtins/ja/facets/knowledge/architecture.md +36 -0
  119. package/builtins/ja/facets/knowledge/backend.md +74 -0
  120. package/builtins/ja/facets/knowledge/cqrs-es.md +260 -16
  121. package/builtins/ja/facets/knowledge/frontend.md +5 -1
  122. package/builtins/ja/facets/knowledge/implementation-semantics.md +104 -0
  123. package/builtins/ja/facets/knowledge/security.md +3 -0
  124. package/builtins/ja/facets/knowledge/takt.md +10 -2
  125. package/builtins/ja/facets/knowledge/unit-testing.md +14 -0
  126. package/builtins/ja/facets/output-contracts/ai-antipattern-review.md +11 -1
  127. package/builtins/ja/facets/output-contracts/architecture-review.md +6 -1
  128. package/builtins/ja/facets/output-contracts/coding-review.md +11 -1
  129. package/builtins/ja/facets/output-contracts/findings-manager.md +14 -0
  130. package/builtins/ja/facets/output-contracts/implementation-semantics-review-finding-contract.md +24 -0
  131. package/builtins/ja/facets/output-contracts/implementation-semantics-review.md +50 -0
  132. package/builtins/ja/facets/output-contracts/{pure-review-finding-contract.md → merge-readiness-review-finding-contract.md} +14 -8
  133. package/builtins/ja/facets/output-contracts/{pure-review.md → merge-readiness-review.md} +17 -11
  134. package/builtins/ja/facets/output-contracts/supervisor-validation.md +6 -2
  135. package/builtins/ja/facets/output-contracts/test-report.md +25 -0
  136. package/builtins/ja/facets/partials/instructions/implement-common.md +13 -0
  137. package/builtins/ja/facets/personas/coder.md +3 -3
  138. package/builtins/ja/facets/personas/implementation-semantics-reviewer.md +27 -0
  139. package/builtins/ja/facets/personas/merge-readiness-reviewer.md +28 -0
  140. package/builtins/ja/facets/personas/supervisor.md +1 -1
  141. package/builtins/ja/facets/policies/ai-antipattern.md +19 -0
  142. package/builtins/ja/facets/policies/coding.md +32 -4
  143. package/builtins/ja/facets/policies/review.md +17 -1
  144. package/builtins/ja/facets/policies/testing.md +11 -4
  145. package/builtins/ja/workflow-categories.yaml +13 -1
  146. package/builtins/ja/workflows/audit-architecture-backend.yaml +1 -0
  147. package/builtins/ja/workflows/audit-architecture-dual.yaml +1 -0
  148. package/builtins/ja/workflows/audit-architecture-frontend.yaml +1 -0
  149. package/builtins/ja/workflows/audit-architecture.yaml +1 -0
  150. package/builtins/ja/workflows/audit-e2e.yaml +1 -0
  151. package/builtins/ja/workflows/audit-security.yaml +1 -0
  152. package/builtins/ja/workflows/audit-unit.yaml +1 -0
  153. package/builtins/ja/workflows/backend-cqrs-for-local-llm.yaml +287 -0
  154. package/builtins/ja/workflows/backend-cqrs-mini.yaml +1 -0
  155. package/builtins/ja/workflows/backend-cqrs.yaml +28 -84
  156. package/builtins/ja/workflows/backend-for-local-llm.yaml +283 -0
  157. package/builtins/ja/workflows/backend-maintenance.yaml +32 -89
  158. package/builtins/ja/workflows/backend-mini.yaml +1 -0
  159. package/builtins/ja/workflows/backend.yaml +25 -83
  160. package/builtins/ja/workflows/{takt-default-with-fc.yaml → cli.yaml} +16 -4
  161. package/builtins/ja/workflows/deep-research.yaml +1 -0
  162. package/builtins/ja/workflows/default-high.yaml +3 -32
  163. package/builtins/ja/workflows/default-peer-review.yaml +16 -52
  164. package/builtins/ja/workflows/default.yaml +2 -1
  165. package/builtins/ja/workflows/draft.yaml +0 -1
  166. package/builtins/ja/workflows/dual-cqrs-mini.yaml +1 -0
  167. package/builtins/ja/workflows/dual-cqrs.yaml +28 -87
  168. package/builtins/ja/workflows/dual-for-local-llm.yaml +311 -0
  169. package/builtins/ja/workflows/dual-mini.yaml +1 -0
  170. package/builtins/ja/workflows/dual.yaml +29 -58
  171. package/builtins/ja/workflows/frontend-for-local-llm.yaml +288 -0
  172. package/builtins/ja/workflows/frontend-maintenance.yaml +34 -91
  173. package/builtins/ja/workflows/frontend-mini.yaml +1 -0
  174. package/builtins/ja/workflows/frontend.yaml +27 -85
  175. package/builtins/ja/workflows/merge-readiness-dual-final-gate.yaml +92 -0
  176. package/builtins/ja/workflows/merge-readiness-final-gate.yaml +79 -0
  177. package/builtins/ja/workflows/{peer-review-with-fc.yaml → peer-review-for-local-llm.yaml} +48 -37
  178. package/builtins/ja/workflows/peer-review.yaml +25 -20
  179. package/builtins/ja/workflows/research.yaml +1 -0
  180. package/builtins/ja/workflows/review-backend-cqrs.yaml +63 -35
  181. package/builtins/ja/workflows/review-backend.yaml +63 -35
  182. package/builtins/ja/workflows/review-default.yaml +111 -79
  183. package/builtins/ja/workflows/review-dual-cqrs.yaml +63 -35
  184. package/builtins/ja/workflows/review-dual.yaml +63 -35
  185. package/builtins/ja/workflows/review-fix-backend-cqrs.yaml +27 -87
  186. package/builtins/ja/workflows/review-fix-backend.yaml +25 -86
  187. package/builtins/ja/workflows/review-fix-default.yaml +17 -87
  188. package/builtins/ja/workflows/review-fix-dual-cqrs.yaml +29 -90
  189. package/builtins/ja/workflows/review-fix-dual.yaml +27 -89
  190. package/builtins/ja/workflows/review-fix-frontend.yaml +25 -87
  191. package/builtins/ja/workflows/review-fix-takt-default.yaml +67 -362
  192. package/builtins/ja/workflows/review-frontend.yaml +63 -35
  193. package/builtins/ja/workflows/review-takt-default.yaml +112 -80
  194. package/builtins/ja/workflows/takt-default-for-local-llm.yaml +282 -0
  195. package/builtins/ja/workflows/takt-default-refresh-all.yaml +20 -59
  196. package/builtins/ja/workflows/takt-default-refresh-fast.yaml +19 -57
  197. package/builtins/ja/workflows/takt-default.yaml +3 -25
  198. package/builtins/ja/workflows/terraform.yaml +81 -44
  199. package/builtins/skill/references/yaml-schema.md +21 -1
  200. package/builtins/skill-codex/references/yaml-schema.md +21 -1
  201. package/dist/agents/agent-usecases.d.ts +1 -0
  202. package/dist/agents/agent-usecases.d.ts.map +1 -1
  203. package/dist/agents/agent-usecases.js +1 -0
  204. package/dist/agents/agent-usecases.js.map +1 -1
  205. package/dist/agents/auto-routing-usecase.d.ts +23 -0
  206. package/dist/agents/auto-routing-usecase.d.ts.map +1 -0
  207. package/dist/agents/auto-routing-usecase.js +216 -0
  208. package/dist/agents/auto-routing-usecase.js.map +1 -0
  209. package/dist/agents/decompose-task-usecase.d.ts +1 -0
  210. package/dist/agents/decompose-task-usecase.d.ts.map +1 -1
  211. package/dist/agents/decompose-task-usecase.js +2 -0
  212. package/dist/agents/decompose-task-usecase.js.map +1 -1
  213. package/dist/agents/judge-utils.d.ts.map +1 -1
  214. package/dist/agents/judge-utils.js +4 -3
  215. package/dist/agents/judge-utils.js.map +1 -1
  216. package/dist/agents/runner.d.ts.map +1 -1
  217. package/dist/agents/runner.js +2 -3
  218. package/dist/agents/runner.js.map +1 -1
  219. package/dist/agents/structured-caller/prompt-based-structured-caller.d.ts.map +1 -1
  220. package/dist/agents/structured-caller/prompt-based-structured-caller.js +2 -0
  221. package/dist/agents/structured-caller/prompt-based-structured-caller.js.map +1 -1
  222. package/dist/agents/structured-caller/shared.js +1 -1
  223. package/dist/agents/structured-caller/shared.js.map +1 -1
  224. package/dist/app/acp/agent.d.ts +28 -0
  225. package/dist/app/acp/agent.d.ts.map +1 -0
  226. package/dist/app/acp/agent.js +279 -0
  227. package/dist/app/acp/agent.js.map +1 -0
  228. package/dist/app/acp/confirmationBridge.d.ts +5 -0
  229. package/dist/app/acp/confirmationBridge.d.ts.map +1 -0
  230. package/dist/app/acp/confirmationBridge.js +194 -0
  231. package/dist/app/acp/confirmationBridge.js.map +1 -0
  232. package/dist/app/acp/conversationFactory.d.ts +4 -0
  233. package/dist/app/acp/conversationFactory.d.ts.map +1 -0
  234. package/dist/app/acp/conversationFactory.js +33 -0
  235. package/dist/app/acp/conversationFactory.js.map +1 -0
  236. package/dist/app/acp/enqueue.d.ts +33 -0
  237. package/dist/app/acp/enqueue.d.ts.map +1 -0
  238. package/dist/app/acp/enqueue.js +45 -0
  239. package/dist/app/acp/enqueue.js.map +1 -0
  240. package/dist/app/acp/index.d.ts +7 -0
  241. package/dist/app/acp/index.d.ts.map +1 -0
  242. package/dist/app/acp/index.js +125 -0
  243. package/dist/app/acp/index.js.map +1 -0
  244. package/dist/app/acp/intent.d.ts +10 -0
  245. package/dist/app/acp/intent.d.ts.map +1 -0
  246. package/dist/app/acp/intent.js +210 -0
  247. package/dist/app/acp/intent.js.map +1 -0
  248. package/dist/app/acp/mcpServers.d.ts +4 -0
  249. package/dist/app/acp/mcpServers.d.ts.map +1 -0
  250. package/dist/app/acp/mcpServers.js +51 -0
  251. package/dist/app/acp/mcpServers.js.map +1 -0
  252. package/dist/app/acp/promptContent.d.ts +3 -0
  253. package/dist/app/acp/promptContent.d.ts.map +1 -0
  254. package/dist/app/acp/promptContent.js +23 -0
  255. package/dist/app/acp/promptContent.js.map +1 -0
  256. package/dist/app/acp/sessionStore.d.ts +19 -0
  257. package/dist/app/acp/sessionStore.d.ts.map +1 -0
  258. package/dist/app/acp/sessionStore.js +50 -0
  259. package/dist/app/acp/sessionStore.js.map +1 -0
  260. package/dist/app/acp/sessionUpdates.d.ts +8 -0
  261. package/dist/app/acp/sessionUpdates.d.ts.map +1 -0
  262. package/dist/app/acp/sessionUpdates.js +108 -0
  263. package/dist/app/acp/sessionUpdates.js.map +1 -0
  264. package/dist/app/acp/taskContext.d.ts +17 -0
  265. package/dist/app/acp/taskContext.d.ts.map +1 -0
  266. package/dist/app/acp/taskContext.js +81 -0
  267. package/dist/app/acp/taskContext.js.map +1 -0
  268. package/dist/app/acp/types.d.ts +33 -0
  269. package/dist/app/acp/types.d.ts.map +1 -0
  270. package/dist/app/acp/types.js +2 -0
  271. package/dist/app/acp/types.js.map +1 -0
  272. package/dist/app/cli/commands.js +28 -1
  273. package/dist/app/cli/commands.js.map +1 -1
  274. package/dist/app/cli/helpers.d.ts.map +1 -1
  275. package/dist/app/cli/helpers.js +13 -1
  276. package/dist/app/cli/helpers.js.map +1 -1
  277. package/dist/app/cli/program.d.ts.map +1 -1
  278. package/dist/app/cli/program.js +6 -5
  279. package/dist/app/cli/program.js.map +1 -1
  280. package/dist/app/cli/routing.d.ts.map +1 -1
  281. package/dist/app/cli/routing.js +56 -47
  282. package/dist/app/cli/routing.js.map +1 -1
  283. package/dist/app/mcp/index.d.ts +3 -0
  284. package/dist/app/mcp/index.d.ts.map +1 -0
  285. package/dist/app/mcp/index.js +16 -0
  286. package/dist/app/mcp/index.js.map +1 -0
  287. package/dist/app/mcp/server.d.ts +2 -0
  288. package/dist/app/mcp/server.d.ts.map +1 -0
  289. package/dist/app/mcp/server.js +2 -0
  290. package/dist/app/mcp/server.js.map +1 -0
  291. package/dist/core/config/provider-resolution.d.ts +1 -0
  292. package/dist/core/config/provider-resolution.d.ts.map +1 -1
  293. package/dist/core/config/provider-resolution.js +19 -0
  294. package/dist/core/config/provider-resolution.js.map +1 -1
  295. package/dist/core/logging/providerEvent.d.ts +3 -2
  296. package/dist/core/logging/providerEvent.d.ts.map +1 -1
  297. package/dist/core/logging/providerEvent.js.map +1 -1
  298. package/dist/core/logging/providerEventLogger.d.ts +2 -1
  299. package/dist/core/logging/providerEventLogger.d.ts.map +1 -1
  300. package/dist/core/logging/providerEventLogger.js.map +1 -1
  301. package/dist/core/logging/usageEventLogger.d.ts +2 -1
  302. package/dist/core/logging/usageEventLogger.d.ts.map +1 -1
  303. package/dist/core/logging/usageEventLogger.js +3 -0
  304. package/dist/core/logging/usageEventLogger.js.map +1 -1
  305. package/dist/core/models/config-schemas.d.ts +301 -97
  306. package/dist/core/models/config-schemas.d.ts.map +1 -1
  307. package/dist/core/models/config-schemas.js +8 -5
  308. package/dist/core/models/config-schemas.js.map +1 -1
  309. package/dist/core/models/config-types.d.ts +34 -2
  310. package/dist/core/models/config-types.d.ts.map +1 -1
  311. package/dist/core/models/finding-schemas.d.ts +167 -24
  312. package/dist/core/models/finding-schemas.d.ts.map +1 -1
  313. package/dist/core/models/finding-schemas.js +82 -9
  314. package/dist/core/models/finding-schemas.js.map +1 -1
  315. package/dist/core/models/finding-types.d.ts +43 -2
  316. package/dist/core/models/finding-types.d.ts.map +1 -1
  317. package/dist/core/models/finding-types.js +3 -2
  318. package/dist/core/models/finding-types.js.map +1 -1
  319. package/dist/core/models/index.d.ts +2 -1
  320. package/dist/core/models/index.d.ts.map +1 -1
  321. package/dist/core/models/index.js +1 -0
  322. package/dist/core/models/index.js.map +1 -1
  323. package/dist/core/models/part.d.ts +1 -0
  324. package/dist/core/models/part.d.ts.map +1 -1
  325. package/dist/core/models/schema-base.d.ts +189 -36
  326. package/dist/core/models/schema-base.d.ts.map +1 -1
  327. package/dist/core/models/schema-base.js +68 -0
  328. package/dist/core/models/schema-base.js.map +1 -1
  329. package/dist/core/models/types.d.ts +3 -2
  330. package/dist/core/models/types.d.ts.map +1 -1
  331. package/dist/core/models/types.js +1 -1
  332. package/dist/core/models/types.js.map +1 -1
  333. package/dist/core/models/workflow-condition-expression.d.ts +17 -0
  334. package/dist/core/models/workflow-condition-expression.d.ts.map +1 -1
  335. package/dist/core/models/workflow-condition-expression.js +85 -2
  336. package/dist/core/models/workflow-condition-expression.js.map +1 -1
  337. package/dist/core/models/workflow-provider-options.d.ts +1 -1
  338. package/dist/core/models/workflow-provider-options.d.ts.map +1 -1
  339. package/dist/core/models/workflow-schemas.d.ts +1134 -250
  340. package/dist/core/models/workflow-schemas.d.ts.map +1 -1
  341. package/dist/core/models/workflow-schemas.js +124 -60
  342. package/dist/core/models/workflow-schemas.js.map +1 -1
  343. package/dist/core/models/workflow-session-constraints.d.ts +3 -0
  344. package/dist/core/models/workflow-session-constraints.d.ts.map +1 -0
  345. package/dist/core/models/workflow-session-constraints.js +3 -0
  346. package/dist/core/models/workflow-session-constraints.js.map +1 -0
  347. package/dist/core/models/workflow-types.d.ts +44 -6
  348. package/dist/core/models/workflow-types.d.ts.map +1 -1
  349. package/dist/core/models/workflow-types.js +1 -0
  350. package/dist/core/models/workflow-types.js.map +1 -1
  351. package/dist/core/runtime/runtime-environment.d.ts.map +1 -1
  352. package/dist/core/runtime/runtime-environment.js +19 -0
  353. package/dist/core/runtime/runtime-environment.js.map +1 -1
  354. package/dist/core/workflow/auto-routing/resolver.d.ts +43 -0
  355. package/dist/core/workflow/auto-routing/resolver.d.ts.map +1 -0
  356. package/dist/core/workflow/auto-routing/resolver.js +218 -0
  357. package/dist/core/workflow/auto-routing/resolver.js.map +1 -0
  358. package/dist/core/workflow/auto-routing/workflow-auto-provider.d.ts +16 -0
  359. package/dist/core/workflow/auto-routing/workflow-auto-provider.d.ts.map +1 -0
  360. package/dist/core/workflow/auto-routing/workflow-auto-provider.js +64 -0
  361. package/dist/core/workflow/auto-routing/workflow-auto-provider.js.map +1 -0
  362. package/dist/core/workflow/engine/LoopMonitorJudgeRunner.d.ts +1 -1
  363. package/dist/core/workflow/engine/LoopMonitorJudgeRunner.d.ts.map +1 -1
  364. package/dist/core/workflow/engine/LoopMonitorJudgeRunner.js +15 -1
  365. package/dist/core/workflow/engine/LoopMonitorJudgeRunner.js.map +1 -1
  366. package/dist/core/workflow/engine/OptionsBuilder.d.ts +15 -5
  367. package/dist/core/workflow/engine/OptionsBuilder.d.ts.map +1 -1
  368. package/dist/core/workflow/engine/OptionsBuilder.js +122 -13
  369. package/dist/core/workflow/engine/OptionsBuilder.js.map +1 -1
  370. package/dist/core/workflow/engine/ParallelRunner.d.ts +12 -1
  371. package/dist/core/workflow/engine/ParallelRunner.d.ts.map +1 -1
  372. package/dist/core/workflow/engine/ParallelRunner.js +356 -33
  373. package/dist/core/workflow/engine/ParallelRunner.js.map +1 -1
  374. package/dist/core/workflow/engine/StepExecutor.d.ts +10 -0
  375. package/dist/core/workflow/engine/StepExecutor.d.ts.map +1 -1
  376. package/dist/core/workflow/engine/StepExecutor.js +89 -31
  377. package/dist/core/workflow/engine/StepExecutor.js.map +1 -1
  378. package/dist/core/workflow/engine/TeamLeaderRunner.d.ts +10 -2
  379. package/dist/core/workflow/engine/TeamLeaderRunner.d.ts.map +1 -1
  380. package/dist/core/workflow/engine/TeamLeaderRunner.js +111 -9
  381. package/dist/core/workflow/engine/TeamLeaderRunner.js.map +1 -1
  382. package/dist/core/workflow/engine/WorkflowCallExecutor.d.ts +11 -1
  383. package/dist/core/workflow/engine/WorkflowCallExecutor.d.ts.map +1 -1
  384. package/dist/core/workflow/engine/WorkflowCallExecutor.js +43 -7
  385. package/dist/core/workflow/engine/WorkflowCallExecutor.js.map +1 -1
  386. package/dist/core/workflow/engine/WorkflowCallRunner.d.ts +9 -0
  387. package/dist/core/workflow/engine/WorkflowCallRunner.d.ts.map +1 -1
  388. package/dist/core/workflow/engine/WorkflowCallRunner.js +65 -14
  389. package/dist/core/workflow/engine/WorkflowCallRunner.js.map +1 -1
  390. package/dist/core/workflow/engine/WorkflowEngine.d.ts.map +1 -1
  391. package/dist/core/workflow/engine/WorkflowEngine.js +27 -9
  392. package/dist/core/workflow/engine/WorkflowEngine.js.map +1 -1
  393. package/dist/core/workflow/engine/WorkflowEngineSetup.d.ts.map +1 -1
  394. package/dist/core/workflow/engine/WorkflowEngineSetup.js +29 -20
  395. package/dist/core/workflow/engine/WorkflowEngineSetup.js.map +1 -1
  396. package/dist/core/workflow/engine/WorkflowEngineStepCoordinator.d.ts +2 -2
  397. package/dist/core/workflow/engine/WorkflowEngineStepCoordinator.d.ts.map +1 -1
  398. package/dist/core/workflow/engine/WorkflowEngineStepCoordinator.js +2 -2
  399. package/dist/core/workflow/engine/WorkflowEngineStepCoordinator.js.map +1 -1
  400. package/dist/core/workflow/engine/WorkflowRunLoop.d.ts +1 -1
  401. package/dist/core/workflow/engine/WorkflowRunLoop.d.ts.map +1 -1
  402. package/dist/core/workflow/engine/WorkflowRunLoop.js +51 -7
  403. package/dist/core/workflow/engine/WorkflowRunLoop.js.map +1 -1
  404. package/dist/core/workflow/engine/WorkflowValidator.d.ts.map +1 -1
  405. package/dist/core/workflow/engine/WorkflowValidator.js +79 -7
  406. package/dist/core/workflow/engine/WorkflowValidator.js.map +1 -1
  407. package/dist/core/workflow/engine/engine-provider-options.d.ts +1 -0
  408. package/dist/core/workflow/engine/engine-provider-options.d.ts.map +1 -1
  409. package/dist/core/workflow/engine/engine-provider-options.js +12 -0
  410. package/dist/core/workflow/engine/engine-provider-options.js.map +1 -1
  411. package/dist/core/workflow/engine/session-compaction.d.ts +10 -0
  412. package/dist/core/workflow/engine/session-compaction.d.ts.map +1 -0
  413. package/dist/core/workflow/engine/session-compaction.js +42 -0
  414. package/dist/core/workflow/engine/session-compaction.js.map +1 -0
  415. package/dist/core/workflow/engine/team-leader-part-runner.d.ts.map +1 -1
  416. package/dist/core/workflow/engine/team-leader-part-runner.js +3 -1
  417. package/dist/core/workflow/engine/team-leader-part-runner.js.map +1 -1
  418. package/dist/core/workflow/evaluation/RuleEvaluator.d.ts +0 -1
  419. package/dist/core/workflow/evaluation/RuleEvaluator.d.ts.map +1 -1
  420. package/dist/core/workflow/evaluation/RuleEvaluator.js +22 -34
  421. package/dist/core/workflow/evaluation/RuleEvaluator.js.map +1 -1
  422. package/dist/core/workflow/evaluation/rule-utils.d.ts +33 -1
  423. package/dist/core/workflow/evaluation/rule-utils.d.ts.map +1 -1
  424. package/dist/core/workflow/evaluation/rule-utils.js +77 -5
  425. package/dist/core/workflow/evaluation/rule-utils.js.map +1 -1
  426. package/dist/core/workflow/evaluation/when-evaluator.d.ts +1 -0
  427. package/dist/core/workflow/evaluation/when-evaluator.d.ts.map +1 -1
  428. package/dist/core/workflow/evaluation/when-evaluator.js +18 -40
  429. package/dist/core/workflow/evaluation/when-evaluator.js.map +1 -1
  430. package/dist/core/workflow/findings/context.d.ts +4 -0
  431. package/dist/core/workflow/findings/context.d.ts.map +1 -1
  432. package/dist/core/workflow/findings/context.js +27 -0
  433. package/dist/core/workflow/findings/context.js.map +1 -1
  434. package/dist/core/workflow/findings/manager-output-validation.d.ts +14 -0
  435. package/dist/core/workflow/findings/manager-output-validation.d.ts.map +1 -1
  436. package/dist/core/workflow/findings/manager-output-validation.js +158 -8
  437. package/dist/core/workflow/findings/manager-output-validation.js.map +1 -1
  438. package/dist/core/workflow/findings/manager-runner.d.ts +17 -6
  439. package/dist/core/workflow/findings/manager-runner.d.ts.map +1 -1
  440. package/dist/core/workflow/findings/manager-runner.js +157 -59
  441. package/dist/core/workflow/findings/manager-runner.js.map +1 -1
  442. package/dist/core/workflow/findings/manager-step.d.ts +8 -0
  443. package/dist/core/workflow/findings/manager-step.d.ts.map +1 -0
  444. package/dist/core/workflow/findings/manager-step.js +27 -0
  445. package/dist/core/workflow/findings/manager-step.js.map +1 -0
  446. package/dist/core/workflow/findings/mechanical-classification.d.ts +24 -0
  447. package/dist/core/workflow/findings/mechanical-classification.d.ts.map +1 -0
  448. package/dist/core/workflow/findings/mechanical-classification.js +115 -0
  449. package/dist/core/workflow/findings/mechanical-classification.js.map +1 -0
  450. package/dist/core/workflow/findings/reconciler.d.ts +1 -0
  451. package/dist/core/workflow/findings/reconciler.d.ts.map +1 -1
  452. package/dist/core/workflow/findings/reconciler.js +90 -4
  453. package/dist/core/workflow/findings/reconciler.js.map +1 -1
  454. package/dist/core/workflow/instruction/InstructionBuilder.d.ts.map +1 -1
  455. package/dist/core/workflow/instruction/InstructionBuilder.js +7 -15
  456. package/dist/core/workflow/instruction/InstructionBuilder.js.map +1 -1
  457. package/dist/core/workflow/instruction/ReportInstructionBuilder.d.ts.map +1 -1
  458. package/dist/core/workflow/instruction/ReportInstructionBuilder.js +9 -11
  459. package/dist/core/workflow/instruction/ReportInstructionBuilder.js.map +1 -1
  460. package/dist/core/workflow/instruction/finding-contract-instruction.d.ts +36 -0
  461. package/dist/core/workflow/instruction/finding-contract-instruction.d.ts.map +1 -0
  462. package/dist/core/workflow/instruction/finding-contract-instruction.js +39 -0
  463. package/dist/core/workflow/instruction/finding-contract-instruction.js.map +1 -0
  464. package/dist/core/workflow/instruction/instruction-context.d.ts +16 -0
  465. package/dist/core/workflow/instruction/instruction-context.d.ts.map +1 -1
  466. package/dist/core/workflow/instruction/instruction-context.js +14 -18
  467. package/dist/core/workflow/instruction/instruction-context.js.map +1 -1
  468. package/dist/core/workflow/instruction/status-rules.d.ts.map +1 -1
  469. package/dist/core/workflow/instruction/status-rules.js +7 -2
  470. package/dist/core/workflow/instruction/status-rules.js.map +1 -1
  471. package/dist/core/workflow/permission-profile-resolution.d.ts +6 -0
  472. package/dist/core/workflow/permission-profile-resolution.d.ts.map +1 -1
  473. package/dist/core/workflow/permission-profile-resolution.js +11 -0
  474. package/dist/core/workflow/permission-profile-resolution.js.map +1 -1
  475. package/dist/core/workflow/phase-runner.d.ts +17 -10
  476. package/dist/core/workflow/phase-runner.d.ts.map +1 -1
  477. package/dist/core/workflow/phase-runner.js +1 -1
  478. package/dist/core/workflow/phase-runner.js.map +1 -1
  479. package/dist/core/workflow/provider-model-requirements.d.ts +6 -0
  480. package/dist/core/workflow/provider-model-requirements.d.ts.map +1 -0
  481. package/dist/core/workflow/provider-model-requirements.js +15 -0
  482. package/dist/core/workflow/provider-model-requirements.js.map +1 -0
  483. package/dist/core/workflow/provider-options-trace.d.ts +1 -1
  484. package/dist/core/workflow/provider-options-trace.d.ts.map +1 -1
  485. package/dist/core/workflow/provider-resolution.d.ts +14 -11
  486. package/dist/core/workflow/provider-resolution.d.ts.map +1 -1
  487. package/dist/core/workflow/provider-resolution.js +38 -26
  488. package/dist/core/workflow/provider-resolution.js.map +1 -1
  489. package/dist/core/workflow/report-phase-runner.d.ts +5 -2
  490. package/dist/core/workflow/report-phase-runner.d.ts.map +1 -1
  491. package/dist/core/workflow/report-phase-runner.js +135 -43
  492. package/dist/core/workflow/report-phase-runner.js.map +1 -1
  493. package/dist/core/workflow/status-judgment-phase.d.ts +2 -2
  494. package/dist/core/workflow/status-judgment-phase.d.ts.map +1 -1
  495. package/dist/core/workflow/status-judgment-phase.js +1 -7
  496. package/dist/core/workflow/status-judgment-phase.js.map +1 -1
  497. package/dist/core/workflow/system/system-step-effect-runner.js +2 -2
  498. package/dist/core/workflow/system/system-step-effect-runner.js.map +1 -1
  499. package/dist/core/workflow/system/system-step-services.d.ts +101 -0
  500. package/dist/core/workflow/system/system-step-services.d.ts.map +1 -1
  501. package/dist/core/workflow/types.d.ts +25 -8
  502. package/dist/core/workflow/types.d.ts.map +1 -1
  503. package/dist/features/analytics/events.d.ts +30 -3
  504. package/dist/features/analytics/events.d.ts.map +1 -1
  505. package/dist/features/analytics/events.js +1 -1
  506. package/dist/features/analytics/index.d.ts +2 -2
  507. package/dist/features/analytics/index.d.ts.map +1 -1
  508. package/dist/features/analytics/index.js.map +1 -1
  509. package/dist/features/analytics/writer.d.ts +8 -14
  510. package/dist/features/analytics/writer.d.ts.map +1 -1
  511. package/dist/features/analytics/writer.js +27 -17
  512. package/dist/features/analytics/writer.js.map +1 -1
  513. package/dist/features/exec/assistantSession.d.ts +2 -0
  514. package/dist/features/exec/assistantSession.d.ts.map +1 -1
  515. package/dist/features/exec/assistantSession.js +1 -1
  516. package/dist/features/exec/assistantSession.js.map +1 -1
  517. package/dist/features/exec/command.d.ts.map +1 -1
  518. package/dist/features/exec/command.js +98 -54
  519. package/dist/features/exec/command.js.map +1 -1
  520. package/dist/features/exec/commandAvailability.js +1 -1
  521. package/dist/features/exec/commandAvailability.js.map +1 -1
  522. package/dist/features/exec/configOps.d.ts.map +1 -1
  523. package/dist/features/exec/configOps.js +6 -5
  524. package/dist/features/exec/configOps.js.map +1 -1
  525. package/dist/features/exec/configValidation.d.ts +1 -1
  526. package/dist/features/exec/configValidation.d.ts.map +1 -1
  527. package/dist/features/exec/configValidation.js +9 -13
  528. package/dist/features/exec/configValidation.js.map +1 -1
  529. package/dist/features/exec/runtimeConfig.d.ts.map +1 -1
  530. package/dist/features/exec/runtimeConfig.js +4 -2
  531. package/dist/features/exec/runtimeConfig.js.map +1 -1
  532. package/dist/features/exec/setupMenu.js +2 -2
  533. package/dist/features/exec/setupMenu.js.map +1 -1
  534. package/dist/features/exec/workflowRunner.d.ts +2 -1
  535. package/dist/features/exec/workflowRunner.d.ts.map +1 -1
  536. package/dist/features/exec/workflowRunner.js +2 -1
  537. package/dist/features/exec/workflowRunner.js.map +1 -1
  538. package/dist/features/exec/workflowTemplate.d.ts.map +1 -1
  539. package/dist/features/exec/workflowTemplate.js +4 -4
  540. package/dist/features/exec/workflowTemplate.js.map +1 -1
  541. package/dist/features/interactive/aiCaller.d.ts +4 -2
  542. package/dist/features/interactive/aiCaller.d.ts.map +1 -1
  543. package/dist/features/interactive/aiCaller.js +38 -11
  544. package/dist/features/interactive/aiCaller.js.map +1 -1
  545. package/dist/features/interactive/assistantConfig.d.ts.map +1 -1
  546. package/dist/features/interactive/assistantConfig.js +3 -2
  547. package/dist/features/interactive/assistantConfig.js.map +1 -1
  548. package/dist/features/interactive/conversationLoop.d.ts.map +1 -1
  549. package/dist/features/interactive/conversationLoop.js +164 -141
  550. package/dist/features/interactive/conversationLoop.js.map +1 -1
  551. package/dist/features/interactive/conversationSession.d.ts +44 -0
  552. package/dist/features/interactive/conversationSession.d.ts.map +1 -0
  553. package/dist/features/interactive/conversationSession.js +133 -0
  554. package/dist/features/interactive/conversationSession.js.map +1 -0
  555. package/dist/features/interactive/imageAttachments.d.ts +12 -8
  556. package/dist/features/interactive/imageAttachments.d.ts.map +1 -1
  557. package/dist/features/interactive/imageAttachments.js +67 -14
  558. package/dist/features/interactive/imageAttachments.js.map +1 -1
  559. package/dist/features/interactive/index.d.ts +1 -0
  560. package/dist/features/interactive/index.d.ts.map +1 -1
  561. package/dist/features/interactive/index.js +1 -0
  562. package/dist/features/interactive/index.js.map +1 -1
  563. package/dist/features/interactive/instructModeTypes.d.ts +2 -2
  564. package/dist/features/interactive/instructModeTypes.d.ts.map +1 -1
  565. package/dist/features/interactive/interactive-summary.d.ts.map +1 -1
  566. package/dist/features/interactive/interactive-summary.js +8 -0
  567. package/dist/features/interactive/interactive-summary.js.map +1 -1
  568. package/dist/features/interactive/interactive.d.ts +9 -6
  569. package/dist/features/interactive/interactive.d.ts.map +1 -1
  570. package/dist/features/interactive/interactive.js +10 -4
  571. package/dist/features/interactive/interactive.js.map +1 -1
  572. package/dist/features/interactive/interactiveApplication.d.ts +5 -0
  573. package/dist/features/interactive/interactiveApplication.d.ts.map +1 -0
  574. package/dist/features/interactive/interactiveApplication.js +10 -0
  575. package/dist/features/interactive/interactiveApplication.js.map +1 -0
  576. package/dist/features/interactive/passthroughMode.d.ts.map +1 -1
  577. package/dist/features/interactive/passthroughMode.js +22 -16
  578. package/dist/features/interactive/passthroughMode.js.map +1 -1
  579. package/dist/features/interactive/promptSections.js +2 -2
  580. package/dist/features/interactive/promptSections.js.map +1 -1
  581. package/dist/features/interactive/quietMode.d.ts.map +1 -1
  582. package/dist/features/interactive/quietMode.js +55 -40
  583. package/dist/features/interactive/quietMode.js.map +1 -1
  584. package/dist/features/interactive/retryMode.d.ts.map +1 -1
  585. package/dist/features/interactive/retryMode.js +5 -4
  586. package/dist/features/interactive/retryMode.js.map +1 -1
  587. package/dist/features/mcp/operations.d.ts +25 -0
  588. package/dist/features/mcp/operations.d.ts.map +1 -0
  589. package/dist/features/mcp/operations.js +150 -0
  590. package/dist/features/mcp/operations.js.map +1 -0
  591. package/dist/features/mcp/schemas.d.ts +50 -0
  592. package/dist/features/mcp/schemas.d.ts.map +1 -0
  593. package/dist/features/mcp/schemas.js +59 -0
  594. package/dist/features/mcp/schemas.js.map +1 -0
  595. package/dist/features/mcp/server.d.ts +7 -0
  596. package/dist/features/mcp/server.d.ts.map +1 -0
  597. package/dist/features/mcp/server.js +36 -0
  598. package/dist/features/mcp/server.js.map +1 -0
  599. package/dist/features/pipeline/steps.d.ts +1 -1
  600. package/dist/features/pipeline/steps.d.ts.map +1 -1
  601. package/dist/features/pipeline/steps.js +6 -2
  602. package/dist/features/pipeline/steps.js.map +1 -1
  603. package/dist/features/prompt/preview.d.ts.map +1 -1
  604. package/dist/features/prompt/preview.js +37 -1
  605. package/dist/features/prompt/preview.js.map +1 -1
  606. package/dist/features/tasks/add/index.d.ts +8 -20
  607. package/dist/features/tasks/add/index.d.ts.map +1 -1
  608. package/dist/features/tasks/add/index.js +42 -61
  609. package/dist/features/tasks/add/index.js.map +1 -1
  610. package/dist/features/tasks/attachments.d.ts +4 -10
  611. package/dist/features/tasks/attachments.d.ts.map +1 -1
  612. package/dist/features/tasks/attachments.js +14 -42
  613. package/dist/features/tasks/attachments.js.map +1 -1
  614. package/dist/features/tasks/execute/analyticsEmitter.d.ts +7 -2
  615. package/dist/features/tasks/execute/analyticsEmitter.d.ts.map +1 -1
  616. package/dist/features/tasks/execute/analyticsEmitter.js +76 -2
  617. package/dist/features/tasks/execute/analyticsEmitter.js.map +1 -1
  618. package/dist/features/tasks/execute/outputFns.d.ts +1 -1
  619. package/dist/features/tasks/execute/outputFns.d.ts.map +1 -1
  620. package/dist/features/tasks/execute/outputFns.js +17 -1
  621. package/dist/features/tasks/execute/outputFns.js.map +1 -1
  622. package/dist/features/tasks/execute/postExecution.d.ts +4 -1
  623. package/dist/features/tasks/execute/postExecution.d.ts.map +1 -1
  624. package/dist/features/tasks/execute/postExecution.js +33 -14
  625. package/dist/features/tasks/execute/postExecution.js.map +1 -1
  626. package/dist/features/tasks/execute/resolveTask.d.ts +9 -3
  627. package/dist/features/tasks/execute/resolveTask.d.ts.map +1 -1
  628. package/dist/features/tasks/execute/resolveTask.js +46 -14
  629. package/dist/features/tasks/execute/resolveTask.js.map +1 -1
  630. package/dist/features/tasks/execute/runAllTasks.d.ts.map +1 -1
  631. package/dist/features/tasks/execute/runAllTasks.js +3 -0
  632. package/dist/features/tasks/execute/runAllTasks.js.map +1 -1
  633. package/dist/features/tasks/execute/runTaskExecution.d.ts +7 -1
  634. package/dist/features/tasks/execute/runTaskExecution.d.ts.map +1 -1
  635. package/dist/features/tasks/execute/runTaskExecution.js +11 -8
  636. package/dist/features/tasks/execute/runTaskExecution.js.map +1 -1
  637. package/dist/features/tasks/execute/taskExecution.d.ts +12 -3
  638. package/dist/features/tasks/execute/taskExecution.d.ts.map +1 -1
  639. package/dist/features/tasks/execute/taskExecution.js +63 -16
  640. package/dist/features/tasks/execute/taskExecution.js.map +1 -1
  641. package/dist/features/tasks/execute/taskResultHandler.d.ts +2 -2
  642. package/dist/features/tasks/execute/taskResultHandler.d.ts.map +1 -1
  643. package/dist/features/tasks/execute/taskResultHandler.js +8 -4
  644. package/dist/features/tasks/execute/taskResultHandler.js.map +1 -1
  645. package/dist/features/tasks/execute/taskWorkflowExecution.d.ts.map +1 -1
  646. package/dist/features/tasks/execute/taskWorkflowExecution.js +62 -9
  647. package/dist/features/tasks/execute/taskWorkflowExecution.js.map +1 -1
  648. package/dist/features/tasks/execute/traceTaskMetadata.js +3 -6
  649. package/dist/features/tasks/execute/traceTaskMetadata.js.map +1 -1
  650. package/dist/features/tasks/execute/types.d.ts +109 -7
  651. package/dist/features/tasks/execute/types.d.ts.map +1 -1
  652. package/dist/features/tasks/execute/workflowExecution.d.ts +3 -1
  653. package/dist/features/tasks/execute/workflowExecution.d.ts.map +1 -1
  654. package/dist/features/tasks/execute/workflowExecution.js +49 -5
  655. package/dist/features/tasks/execute/workflowExecution.js.map +1 -1
  656. package/dist/features/tasks/execute/workflowExecutionApi.d.ts +6 -0
  657. package/dist/features/tasks/execute/workflowExecutionApi.d.ts.map +1 -0
  658. package/dist/features/tasks/execute/workflowExecutionApi.js +25 -0
  659. package/dist/features/tasks/execute/workflowExecutionApi.js.map +1 -0
  660. package/dist/features/tasks/execute/workflowExecutionBootstrap.d.ts +3 -1
  661. package/dist/features/tasks/execute/workflowExecutionBootstrap.d.ts.map +1 -1
  662. package/dist/features/tasks/execute/workflowExecutionBootstrap.js +51 -20
  663. package/dist/features/tasks/execute/workflowExecutionBootstrap.js.map +1 -1
  664. package/dist/features/tasks/execute/workflowExecutionContext.d.ts.map +1 -1
  665. package/dist/features/tasks/execute/workflowExecutionContext.js +1 -1
  666. package/dist/features/tasks/execute/workflowExecutionContext.js.map +1 -1
  667. package/dist/features/tasks/execute/workflowExecutionEvents.d.ts +14 -1
  668. package/dist/features/tasks/execute/workflowExecutionEvents.d.ts.map +1 -1
  669. package/dist/features/tasks/execute/workflowExecutionEvents.js +246 -4
  670. package/dist/features/tasks/execute/workflowExecutionEvents.js.map +1 -1
  671. package/dist/features/tasks/list/instructMode.d.ts.map +1 -1
  672. package/dist/features/tasks/list/instructMode.js +5 -4
  673. package/dist/features/tasks/list/instructMode.js.map +1 -1
  674. package/dist/features/tasks/list/requeueHelpers.d.ts +1 -0
  675. package/dist/features/tasks/list/requeueHelpers.d.ts.map +1 -1
  676. package/dist/features/tasks/list/requeueHelpers.js +3 -0
  677. package/dist/features/tasks/list/requeueHelpers.js.map +1 -1
  678. package/dist/features/tasks/list/taskInstructionActions.d.ts.map +1 -1
  679. package/dist/features/tasks/list/taskInstructionActions.js +33 -25
  680. package/dist/features/tasks/list/taskInstructionActions.js.map +1 -1
  681. package/dist/features/tasks/list/taskRetryActions.d.ts.map +1 -1
  682. package/dist/features/tasks/list/taskRetryActions.js +34 -30
  683. package/dist/features/tasks/list/taskRetryActions.js.map +1 -1
  684. package/dist/features/tasks/resume/directInstructMode.d.ts.map +1 -1
  685. package/dist/features/tasks/resume/directInstructMode.js +11 -2
  686. package/dist/features/tasks/resume/directInstructMode.js.map +1 -1
  687. package/dist/features/tasks/resume/index.d.ts.map +1 -1
  688. package/dist/features/tasks/resume/index.js +73 -24
  689. package/dist/features/tasks/resume/index.js.map +1 -1
  690. package/dist/features/tasks/{list/retryTaskSpecAttachments.d.ts → retryTaskSpecAttachments.d.ts} +3 -1
  691. package/dist/features/tasks/retryTaskSpecAttachments.d.ts.map +1 -0
  692. package/dist/features/tasks/{list/retryTaskSpecAttachments.js → retryTaskSpecAttachments.js} +4 -3
  693. package/dist/features/tasks/retryTaskSpecAttachments.js.map +1 -0
  694. package/dist/features/tasks/taskContextValidation.d.ts +10 -0
  695. package/dist/features/tasks/taskContextValidation.d.ts.map +1 -0
  696. package/dist/features/tasks/taskContextValidation.js +73 -0
  697. package/dist/features/tasks/taskContextValidation.js.map +1 -0
  698. package/dist/features/tasks/watch/index.d.ts.map +1 -1
  699. package/dist/features/tasks/watch/index.js +1 -0
  700. package/dist/features/tasks/watch/index.js.map +1 -1
  701. package/dist/features/workflowAuthoring/doctor.d.ts.map +1 -1
  702. package/dist/features/workflowAuthoring/doctor.js +56 -1
  703. package/dist/features/workflowAuthoring/doctor.js.map +1 -1
  704. package/dist/infra/claude/image-input.d.ts.map +1 -1
  705. package/dist/infra/claude/image-input.js +3 -2
  706. package/dist/infra/claude/image-input.js.map +1 -1
  707. package/dist/infra/codex/client.d.ts.map +1 -1
  708. package/dist/infra/codex/client.js +29 -10
  709. package/dist/infra/codex/client.js.map +1 -1
  710. package/dist/infra/config/configNormalizers.d.ts +24 -2
  711. package/dist/infra/config/configNormalizers.d.ts.map +1 -1
  712. package/dist/infra/config/configNormalizers.js +77 -4
  713. package/dist/infra/config/configNormalizers.js.map +1 -1
  714. package/dist/infra/config/env/global-current-env-specs.d.ts.map +1 -1
  715. package/dist/infra/config/env/global-current-env-specs.js +2 -0
  716. package/dist/infra/config/env/global-current-env-specs.js.map +1 -1
  717. package/dist/infra/config/env/project-current-env-specs.d.ts.map +1 -1
  718. package/dist/infra/config/env/project-current-env-specs.js +2 -0
  719. package/dist/infra/config/env/project-current-env-specs.js.map +1 -1
  720. package/dist/infra/config/global/globalConfig.d.ts +1 -1
  721. package/dist/infra/config/global/globalConfig.d.ts.map +1 -1
  722. package/dist/infra/config/global/globalConfig.js +1 -1
  723. package/dist/infra/config/global/globalConfig.js.map +1 -1
  724. package/dist/infra/config/global/globalConfigAccessors.d.ts +6 -0
  725. package/dist/infra/config/global/globalConfigAccessors.d.ts.map +1 -1
  726. package/dist/infra/config/global/globalConfigAccessors.js +80 -1
  727. package/dist/infra/config/global/globalConfigAccessors.js.map +1 -1
  728. package/dist/infra/config/global/globalConfigCore.d.ts.map +1 -1
  729. package/dist/infra/config/global/globalConfigCore.js +5 -3
  730. package/dist/infra/config/global/globalConfigCore.js.map +1 -1
  731. package/dist/infra/config/global/globalConfigSerializer.d.ts.map +1 -1
  732. package/dist/infra/config/global/globalConfigSerializer.js +9 -1
  733. package/dist/infra/config/global/globalConfigSerializer.js.map +1 -1
  734. package/dist/infra/config/global/index.d.ts +1 -1
  735. package/dist/infra/config/global/index.d.ts.map +1 -1
  736. package/dist/infra/config/global/index.js +1 -1
  737. package/dist/infra/config/global/index.js.map +1 -1
  738. package/dist/infra/config/loaders/resource-resolver.d.ts.map +1 -1
  739. package/dist/infra/config/loaders/resource-resolver.js +22 -7
  740. package/dist/infra/config/loaders/resource-resolver.js.map +1 -1
  741. package/dist/infra/config/loaders/workflowCallContractValidator.d.ts.map +1 -1
  742. package/dist/infra/config/loaders/workflowCallContractValidator.js +11 -4
  743. package/dist/infra/config/loaders/workflowCallContractValidator.js.map +1 -1
  744. package/dist/infra/config/loaders/workflowCallContracts.d.ts.map +1 -1
  745. package/dist/infra/config/loaders/workflowCallContracts.js +5 -0
  746. package/dist/infra/config/loaders/workflowCallContracts.js.map +1 -1
  747. package/dist/infra/config/loaders/workflowCallResolver.d.ts +2 -2
  748. package/dist/infra/config/loaders/workflowCallResolver.d.ts.map +1 -1
  749. package/dist/infra/config/loaders/workflowCallResolver.js +3 -10
  750. package/dist/infra/config/loaders/workflowCallResolver.js.map +1 -1
  751. package/dist/infra/config/loaders/workflowCallableArgResolver.d.ts.map +1 -1
  752. package/dist/infra/config/loaders/workflowCallableArgResolver.js +27 -0
  753. package/dist/infra/config/loaders/workflowCallableArgResolver.js.map +1 -1
  754. package/dist/infra/config/loaders/workflowCallableRuleValidation.d.ts.map +1 -1
  755. package/dist/infra/config/loaders/workflowCallableRuleValidation.js +5 -0
  756. package/dist/infra/config/loaders/workflowCallableRuleValidation.js.map +1 -1
  757. package/dist/infra/config/loaders/workflowLoopMonitorNormalizer.d.ts.map +1 -1
  758. package/dist/infra/config/loaders/workflowLoopMonitorNormalizer.js +12 -1
  759. package/dist/infra/config/loaders/workflowLoopMonitorNormalizer.js.map +1 -1
  760. package/dist/infra/config/loaders/workflowPackageScope.d.ts +1 -0
  761. package/dist/infra/config/loaders/workflowPackageScope.d.ts.map +1 -1
  762. package/dist/infra/config/loaders/workflowPackageScope.js +20 -2
  763. package/dist/infra/config/loaders/workflowPackageScope.js.map +1 -1
  764. package/dist/infra/config/loaders/workflowParser.d.ts.map +1 -1
  765. package/dist/infra/config/loaders/workflowParser.js +17 -7
  766. package/dist/infra/config/loaders/workflowParser.js.map +1 -1
  767. package/dist/infra/config/loaders/workflowPreview.d.ts +3 -0
  768. package/dist/infra/config/loaders/workflowPreview.d.ts.map +1 -1
  769. package/dist/infra/config/loaders/workflowPreview.js +43 -5
  770. package/dist/infra/config/loaders/workflowPreview.js.map +1 -1
  771. package/dist/infra/config/loaders/workflowRuleNormalizer.d.ts +10 -0
  772. package/dist/infra/config/loaders/workflowRuleNormalizer.d.ts.map +1 -1
  773. package/dist/infra/config/loaders/workflowRuleNormalizer.js +70 -1
  774. package/dist/infra/config/loaders/workflowRuleNormalizer.js.map +1 -1
  775. package/dist/infra/config/loaders/workflowStepNormalizer.d.ts.map +1 -1
  776. package/dist/infra/config/loaders/workflowStepNormalizer.js +41 -13
  777. package/dist/infra/config/loaders/workflowStepNormalizer.js.map +1 -1
  778. package/dist/infra/config/project/projectConfig.d.ts.map +1 -1
  779. package/dist/infra/config/project/projectConfig.js +19 -3
  780. package/dist/infra/config/project/projectConfig.js.map +1 -1
  781. package/dist/infra/config/project/sessionStore.d.ts +2 -2
  782. package/dist/infra/config/project/sessionStore.d.ts.map +1 -1
  783. package/dist/infra/config/project/sessionStore.js +12 -4
  784. package/dist/infra/config/project/sessionStore.js.map +1 -1
  785. package/dist/infra/config/providerModelRequirements.d.ts +2 -0
  786. package/dist/infra/config/providerModelRequirements.d.ts.map +1 -0
  787. package/dist/infra/config/providerModelRequirements.js +2 -0
  788. package/dist/infra/config/providerModelRequirements.js.map +1 -0
  789. package/dist/infra/config/resolveConfigValue.d.ts.map +1 -1
  790. package/dist/infra/config/resolveConfigValue.js +1 -0
  791. package/dist/infra/config/resolveConfigValue.js.map +1 -1
  792. package/dist/infra/config/traced/tracedConfigSchema.d.ts.map +1 -1
  793. package/dist/infra/config/traced/tracedConfigSchema.js +6 -0
  794. package/dist/infra/config/traced/tracedConfigSchema.js.map +1 -1
  795. package/dist/infra/git/format.d.ts +1 -0
  796. package/dist/infra/git/format.d.ts.map +1 -1
  797. package/dist/infra/git/format.js +21 -0
  798. package/dist/infra/git/format.js.map +1 -1
  799. package/dist/infra/git/index.d.ts +1 -1
  800. package/dist/infra/git/index.d.ts.map +1 -1
  801. package/dist/infra/git/types.d.ts +16 -4
  802. package/dist/infra/git/types.d.ts.map +1 -1
  803. package/dist/infra/github/GitHubProvider.d.ts +2 -1
  804. package/dist/infra/github/GitHubProvider.d.ts.map +1 -1
  805. package/dist/infra/github/GitHubProvider.js +4 -1
  806. package/dist/infra/github/GitHubProvider.js.map +1 -1
  807. package/dist/infra/github/issue.d.ts +2 -1
  808. package/dist/infra/github/issue.d.ts.map +1 -1
  809. package/dist/infra/github/issue.js +23 -2
  810. package/dist/infra/github/issue.js.map +1 -1
  811. package/dist/infra/gitlab/GitLabProvider.d.ts +2 -1
  812. package/dist/infra/gitlab/GitLabProvider.d.ts.map +1 -1
  813. package/dist/infra/gitlab/GitLabProvider.js +4 -1
  814. package/dist/infra/gitlab/GitLabProvider.js.map +1 -1
  815. package/dist/infra/gitlab/issue.d.ts +2 -1
  816. package/dist/infra/gitlab/issue.d.ts.map +1 -1
  817. package/dist/infra/gitlab/issue.js +30 -2
  818. package/dist/infra/gitlab/issue.js.map +1 -1
  819. package/dist/infra/opencode/OpenCodeStreamHandler.d.ts +4 -0
  820. package/dist/infra/opencode/OpenCodeStreamHandler.d.ts.map +1 -1
  821. package/dist/infra/opencode/OpenCodeStreamHandler.js.map +1 -1
  822. package/dist/infra/opencode/allowedTools.d.ts.map +1 -1
  823. package/dist/infra/opencode/allowedTools.js +0 -1
  824. package/dist/infra/opencode/allowedTools.js.map +1 -1
  825. package/dist/infra/opencode/client.d.ts +5 -1
  826. package/dist/infra/opencode/client.d.ts.map +1 -1
  827. package/dist/infra/opencode/client.js +519 -174
  828. package/dist/infra/opencode/client.js.map +1 -1
  829. package/dist/infra/opencode/index.d.ts +2 -2
  830. package/dist/infra/opencode/index.d.ts.map +1 -1
  831. package/dist/infra/opencode/index.js +1 -1
  832. package/dist/infra/opencode/index.js.map +1 -1
  833. package/dist/infra/opencode/types.d.ts +42 -0
  834. package/dist/infra/opencode/types.d.ts.map +1 -1
  835. package/dist/infra/opencode/types.js +88 -1
  836. package/dist/infra/opencode/types.js.map +1 -1
  837. package/dist/infra/opencode/unavailable-tool-loop.d.ts +25 -0
  838. package/dist/infra/opencode/unavailable-tool-loop.d.ts.map +1 -1
  839. package/dist/infra/opencode/unavailable-tool-loop.js +74 -0
  840. package/dist/infra/opencode/unavailable-tool-loop.js.map +1 -1
  841. package/dist/infra/providers/claude-headless.d.ts.map +1 -1
  842. package/dist/infra/providers/claude-headless.js +0 -2
  843. package/dist/infra/providers/claude-headless.js.map +1 -1
  844. package/dist/infra/providers/claude-terminal.d.ts.map +1 -1
  845. package/dist/infra/providers/claude-terminal.js +0 -2
  846. package/dist/infra/providers/claude-terminal.js.map +1 -1
  847. package/dist/infra/providers/claude.d.ts.map +1 -1
  848. package/dist/infra/providers/claude.js +0 -2
  849. package/dist/infra/providers/claude.js.map +1 -1
  850. package/dist/infra/providers/copilot.d.ts.map +1 -1
  851. package/dist/infra/providers/copilot.js +3 -0
  852. package/dist/infra/providers/copilot.js.map +1 -1
  853. package/dist/infra/providers/cursor.d.ts.map +1 -1
  854. package/dist/infra/providers/cursor.js +3 -0
  855. package/dist/infra/providers/cursor.js.map +1 -1
  856. package/dist/infra/providers/imageAttachmentPrompt.d.ts +0 -1
  857. package/dist/infra/providers/imageAttachmentPrompt.d.ts.map +1 -1
  858. package/dist/infra/providers/imageAttachmentPrompt.js +19 -2
  859. package/dist/infra/providers/imageAttachmentPrompt.js.map +1 -1
  860. package/dist/infra/providers/imageAttachments.d.ts +3 -0
  861. package/dist/infra/providers/imageAttachments.d.ts.map +1 -0
  862. package/dist/infra/providers/imageAttachments.js +47 -0
  863. package/dist/infra/providers/imageAttachments.js.map +1 -0
  864. package/dist/infra/providers/index.d.ts +1 -1
  865. package/dist/infra/providers/index.d.ts.map +1 -1
  866. package/dist/infra/providers/index.js.map +1 -1
  867. package/dist/infra/providers/mock.d.ts.map +1 -1
  868. package/dist/infra/providers/mock.js +5 -0
  869. package/dist/infra/providers/mock.js.map +1 -1
  870. package/dist/infra/providers/opencode.d.ts +3 -2
  871. package/dist/infra/providers/opencode.d.ts.map +1 -1
  872. package/dist/infra/providers/opencode.js +31 -6
  873. package/dist/infra/providers/opencode.js.map +1 -1
  874. package/dist/infra/providers/types.d.ts +8 -0
  875. package/dist/infra/providers/types.d.ts.map +1 -1
  876. package/dist/infra/task/clone-exec.d.ts.map +1 -1
  877. package/dist/infra/task/clone-exec.js +31 -0
  878. package/dist/infra/task/clone-exec.js.map +1 -1
  879. package/dist/infra/task/enqueueService.d.ts +115 -0
  880. package/dist/infra/task/enqueueService.d.ts.map +1 -0
  881. package/dist/infra/task/enqueueService.js +191 -0
  882. package/dist/infra/task/enqueueService.js.map +1 -0
  883. package/dist/infra/task/enqueuedTaskFile.d.ts +6 -0
  884. package/dist/infra/task/enqueuedTaskFile.d.ts.map +1 -0
  885. package/dist/infra/task/enqueuedTaskFile.js +55 -0
  886. package/dist/infra/task/enqueuedTaskFile.js.map +1 -0
  887. package/dist/infra/task/issueTask.d.ts +20 -0
  888. package/dist/infra/task/issueTask.d.ts.map +1 -0
  889. package/dist/{features/tasks/add → infra/task}/issueTask.js +61 -43
  890. package/dist/infra/task/issueTask.js.map +1 -0
  891. package/dist/infra/task/listSerializer.d.ts +1 -0
  892. package/dist/infra/task/listSerializer.d.ts.map +1 -1
  893. package/dist/infra/task/listSerializer.js +1 -0
  894. package/dist/infra/task/listSerializer.js.map +1 -1
  895. package/dist/infra/task/mapper.d.ts.map +1 -1
  896. package/dist/infra/task/mapper.js +1 -0
  897. package/dist/infra/task/mapper.js.map +1 -1
  898. package/dist/infra/task/taskExecutionSchemas.d.ts +3 -0
  899. package/dist/infra/task/taskExecutionSchemas.d.ts.map +1 -1
  900. package/dist/infra/task/taskExecutionSchemas.js +4 -2
  901. package/dist/infra/task/taskExecutionSchemas.js.map +1 -1
  902. package/dist/infra/task/taskRecordSchemas.d.ts +2 -0
  903. package/dist/infra/task/taskRecordSchemas.d.ts.map +1 -1
  904. package/dist/infra/workflow/system/DefaultSystemStepServices.d.ts.map +1 -1
  905. package/dist/infra/workflow/system/DefaultSystemStepServices.js +7 -7
  906. package/dist/infra/workflow/system/DefaultSystemStepServices.js.map +1 -1
  907. package/dist/infra/workflow/system/system-enqueue-effect.d.ts.map +1 -1
  908. package/dist/infra/workflow/system/system-enqueue-effect.js +78 -20
  909. package/dist/infra/workflow/system/system-enqueue-effect.js.map +1 -1
  910. package/dist/infra/workflow/system/system-git-context.d.ts +6 -6
  911. package/dist/infra/workflow/system/system-git-context.d.ts.map +1 -1
  912. package/dist/infra/workflow/system/system-git-context.js +13 -13
  913. package/dist/infra/workflow/system/system-git-context.js.map +1 -1
  914. package/dist/infra/workflow/system/system-issue-input-resolver.d.ts +3 -3
  915. package/dist/infra/workflow/system/system-issue-input-resolver.d.ts.map +1 -1
  916. package/dist/infra/workflow/system/system-issue-input-resolver.js +8 -8
  917. package/dist/infra/workflow/system/system-issue-input-resolver.js.map +1 -1
  918. package/dist/infra/workflow/system/system-pr-effects.d.ts.map +1 -1
  919. package/dist/infra/workflow/system/system-pr-effects.js +6 -3
  920. package/dist/infra/workflow/system/system-pr-effects.js.map +1 -1
  921. package/dist/infra/workflow/system/system-pr-input-resolver.d.ts +3 -3
  922. package/dist/infra/workflow/system/system-pr-input-resolver.d.ts.map +1 -1
  923. package/dist/infra/workflow/system/system-pr-input-resolver.js +8 -8
  924. package/dist/infra/workflow/system/system-pr-input-resolver.js.map +1 -1
  925. package/dist/infra/workflow/system/system-sync-effects.js +2 -2
  926. package/dist/infra/workflow/system/system-sync-effects.js.map +1 -1
  927. package/dist/shared/package-info.d.ts +2 -0
  928. package/dist/shared/package-info.d.ts.map +1 -0
  929. package/dist/shared/package-info.js +5 -0
  930. package/dist/shared/package-info.js.map +1 -0
  931. package/dist/shared/prompts/en/exec_assistant_instruct.md +2 -0
  932. package/dist/shared/prompts/en/finding_manager_instruction.md +9 -2
  933. package/dist/shared/prompts/en/opencode_review_agent_prompt.md +20 -23
  934. package/dist/shared/prompts/en/parts/finding_contract_instruction.md +25 -0
  935. package/dist/shared/prompts/en/parts/git_rules.md +5 -0
  936. package/dist/shared/prompts/{ja → en/parts}/structured_json_schema_instruction.md +2 -0
  937. package/dist/shared/prompts/en/{structured_json_step_instruction.md → parts/structured_json_step_instruction.md} +2 -0
  938. package/dist/shared/prompts/ja/exec_assistant_instruct.md +2 -0
  939. package/dist/shared/prompts/ja/finding_manager_instruction.md +9 -2
  940. package/dist/shared/prompts/ja/opencode_review_agent_prompt.md +20 -23
  941. package/dist/shared/prompts/ja/parts/finding_contract_instruction.md +25 -0
  942. package/dist/shared/prompts/ja/parts/git_rules.md +5 -0
  943. package/dist/shared/prompts/{en → ja/parts}/structured_json_schema_instruction.md +4 -2
  944. package/dist/shared/prompts/ja/{structured_json_step_instruction.md → parts/structured_json_step_instruction.md} +4 -2
  945. package/dist/shared/types/image-attachments.d.ts +10 -0
  946. package/dist/shared/types/image-attachments.d.ts.map +1 -0
  947. package/dist/shared/types/image-attachments.js +2 -0
  948. package/dist/shared/types/image-attachments.js.map +1 -0
  949. package/dist/shared/utils/entrypoint.d.ts +2 -0
  950. package/dist/shared/utils/entrypoint.d.ts.map +1 -0
  951. package/dist/shared/utils/entrypoint.js +15 -0
  952. package/dist/shared/utils/entrypoint.js.map +1 -0
  953. package/dist/shared/utils/imageAttachmentReferences.d.ts +7 -0
  954. package/dist/shared/utils/imageAttachmentReferences.d.ts.map +1 -0
  955. package/dist/shared/utils/imageAttachmentReferences.js +64 -0
  956. package/dist/shared/utils/imageAttachmentReferences.js.map +1 -0
  957. package/dist/shared/utils/index.d.ts +1 -0
  958. package/dist/shared/utils/index.d.ts.map +1 -1
  959. package/dist/shared/utils/index.js +1 -0
  960. package/dist/shared/utils/index.js.map +1 -1
  961. package/dist/shared/utils/safeExternalErrorMessage.d.ts +2 -0
  962. package/dist/shared/utils/safeExternalErrorMessage.d.ts.map +1 -0
  963. package/dist/shared/utils/safeExternalErrorMessage.js +22 -0
  964. package/dist/shared/utils/safeExternalErrorMessage.js.map +1 -0
  965. package/package.json +32 -13
  966. package/builtins/en/facets/instructions/review-pure.md +0 -9
  967. package/builtins/en/facets/personas/pure-reviewer.md +0 -22
  968. package/builtins/ja/facets/instructions/review-pure.md +0 -9
  969. package/builtins/ja/facets/personas/pure-reviewer.md +0 -22
  970. package/dist/core/workflow/claude-effort-compatibility.d.ts +0 -3
  971. package/dist/core/workflow/claude-effort-compatibility.d.ts.map +0 -1
  972. package/dist/core/workflow/claude-effort-compatibility.js +0 -28
  973. package/dist/core/workflow/claude-effort-compatibility.js.map +0 -1
  974. package/dist/core/workflow/provider-model-compatibility.d.ts +0 -6
  975. package/dist/core/workflow/provider-model-compatibility.d.ts.map +0 -1
  976. package/dist/core/workflow/provider-model-compatibility.js +0 -20
  977. package/dist/core/workflow/provider-model-compatibility.js.map +0 -1
  978. package/dist/features/tasks/add/issueTask.d.ts +0 -7
  979. package/dist/features/tasks/add/issueTask.d.ts.map +0 -1
  980. package/dist/features/tasks/add/issueTask.js.map +0 -1
  981. package/dist/features/tasks/list/retryTaskSpecAttachments.d.ts.map +0 -1
  982. package/dist/features/tasks/list/retryTaskSpecAttachments.js.map +0 -1
  983. package/dist/infra/config/providerModelCompatibility.d.ts +0 -2
  984. package/dist/infra/config/providerModelCompatibility.d.ts.map +0 -1
  985. package/dist/infra/config/providerModelCompatibility.js +0 -2
  986. package/dist/infra/config/providerModelCompatibility.js.map +0 -1
  987. /package/dist/shared/prompts/en/{source_context_section_guidance.md → parts/source_context_section_guidance.md} +0 -0
  988. /package/dist/shared/prompts/en/{source_context_system_guard.md → parts/source_context_system_guard.md} +0 -0
  989. /package/dist/shared/prompts/ja/{source_context_section_guidance.md → parts/source_context_section_guidance.md} +0 -0
  990. /package/dist/shared/prompts/ja/{source_context_system_guard.md → parts/source_context_system_guard.md} +0 -0
@@ -0,0 +1,284 @@
1
+ name: backend-for-local-llm
2
+ description: Backend development workflow for local LLMs. Four parallel specialist reviewers plus the Finding Contract build discipline for weak models structurally
3
+ finding_contract:
4
+ ledger_path: .takt/findings/backend-for-local-llm.json
5
+ raw_findings_path: .takt/findings/backend-for-local-llm/raw
6
+ manager:
7
+ persona: findings-manager
8
+ instruction: findings-manager
9
+ output_contract: findings-manager
10
+ max_steps: 50
11
+ initial_step: plan
12
+ workflow_config:
13
+ provider_options:
14
+ codex:
15
+ network_access: true
16
+ opencode:
17
+ network_access: true
18
+
19
+ loop_monitors:
20
+ - cycle:
21
+ - plan
22
+ - write_tests
23
+ - implement
24
+ - reviewers
25
+ - fix
26
+ threshold: 2
27
+ judge:
28
+ persona: supervisor
29
+ instruction: loop-monitor-fix-replan
30
+ rules:
31
+ - condition: The latest fix ended with fixes complete (not a dead end)
32
+ next: reviewers
33
+ - condition: Healthy (each replan moves the blocker toward resolution)
34
+ next: plan
35
+ - condition: Unproductive (the same dead end repeats)
36
+ next: ABORT
37
+ - cycle:
38
+ - reviewers
39
+ - fix
40
+ threshold: 3
41
+ judge:
42
+ persona: supervisor
43
+ instruction: loop-monitor-reviewers-fix
44
+ rules:
45
+ - condition: converging (findings decreasing, fixes applied)
46
+ next: reviewers
47
+ - condition: unproductive (the same findings repeat), but replanning could break the deadlock
48
+ next: plan
49
+ - condition: unproductive (the same findings repeat), and replanning is unlikely to help
50
+ next: ABORT
51
+ - cycle:
52
+ - reviewers
53
+ - final-gate
54
+ - fix
55
+ threshold: 3
56
+ judge:
57
+ persona: supervisor
58
+ instruction: loop-monitor-reviewers-fix
59
+ rules:
60
+ - condition: converging (findings decreasing, fixes applied)
61
+ next: reviewers
62
+ - condition: unproductive (the same findings repeat), but replanning could break the deadlock
63
+ next: plan
64
+ - condition: unproductive (the same findings repeat), and replanning is unlikely to help
65
+ next: ABORT
66
+
67
+ steps:
68
+ - name: plan
69
+ tags:
70
+ - plan
71
+ edit: false
72
+ persona: planner
73
+ knowledge:
74
+ - backend
75
+ - architecture
76
+ provider_options:
77
+ extends: review-readonly
78
+ instruction: plan
79
+ rules:
80
+ - condition: Task analysis and planning is complete
81
+ next: write_tests
82
+ - condition: The user is asking a question (not an implementation task)
83
+ next: COMPLETE
84
+ - condition: Requirements are unclear and planning cannot proceed
85
+ next: ABORT
86
+ output_contracts:
87
+ report:
88
+ - name: plan.md
89
+ format: plan
90
+
91
+ - name: write_tests
92
+ tags:
93
+ - coding
94
+ - test-planning
95
+ edit: true
96
+ persona: coder
97
+ policy:
98
+ - coding
99
+ - testing
100
+ knowledge:
101
+ - backend
102
+ - architecture
103
+ - unit-testing
104
+ - e2e-testing
105
+ - implementation-semantics
106
+ provider_options:
107
+ extends: edit
108
+ required_permission_mode: edit
109
+ instruction: write-tests-first
110
+ rules:
111
+ - condition: Test creation is complete
112
+ next: implement
113
+ - condition: Skipping test creation as target is not yet implemented
114
+ next: implement
115
+ - condition: Cannot proceed with test creation
116
+ next: plan
117
+ - condition: User input required for clarification
118
+ next: write_tests
119
+ requires_user_input: true
120
+ interactive_only: true
121
+ output_contracts:
122
+ report:
123
+ - name: test-report.md
124
+ format: test-report
125
+
126
+ - name: implement
127
+ tags:
128
+ - coding
129
+ edit: true
130
+ persona: coder
131
+ policy:
132
+ - coding
133
+ knowledge:
134
+ - backend
135
+ - architecture
136
+ - implementation-semantics
137
+ provider_options:
138
+ extends: edit
139
+ required_permission_mode: edit
140
+ instruction: implement
141
+ rules:
142
+ - condition: Implementation is complete
143
+ next: reviewers
144
+ - condition: Cannot proceed with implementation (environment issue or missing information)
145
+ next: plan
146
+
147
+ - name: reviewers
148
+ tags:
149
+ - review
150
+ parallel:
151
+ - name: arch-review
152
+ tags:
153
+ - review
154
+ edit: false
155
+ persona: architecture-reviewer
156
+ policy:
157
+ - review
158
+ knowledge:
159
+ - architecture
160
+ instruction: review-arch
161
+ rules:
162
+ - condition: approved
163
+ - condition: needs_fix
164
+ output_contracts:
165
+ report:
166
+ - name: architect-review.md
167
+ format: architecture-review-finding-contract
168
+
169
+ - name: ai-antipattern-review
170
+ tags:
171
+ - review
172
+ edit: false
173
+ persona: ai-antipattern-reviewer
174
+ policy:
175
+ - review
176
+ - ai-antipattern
177
+ pass_previous_response: false
178
+ instruction: ai-antipattern-review
179
+ rules:
180
+ - condition: No AI-specific issues
181
+ - condition: AI-specific issues found
182
+ output_contracts:
183
+ report:
184
+ - name: ai-antipattern-review.md
185
+ format: ai-antipattern-review-finding-contract
186
+
187
+ - name: coding-review
188
+ tags:
189
+ - review
190
+ edit: false
191
+ persona: coding-reviewer
192
+ policy:
193
+ - review
194
+ - coding
195
+ pass_previous_response: false
196
+ instruction: review-coding
197
+ rules:
198
+ - condition: approved
199
+ - condition: needs_fix
200
+ output_contracts:
201
+ report:
202
+ - name: coding-review.md
203
+ format: coding-review-finding-contract
204
+
205
+ - name: implementation-semantics-review
206
+ tags:
207
+ - review
208
+ edit: false
209
+ persona: implementation-semantics-reviewer
210
+ policy:
211
+ - review
212
+ knowledge:
213
+ - implementation-semantics
214
+ pass_previous_response: false
215
+ instruction: review-implementation-semantics
216
+ rules:
217
+ - condition: approved
218
+ - condition: needs_fix
219
+ output_contracts:
220
+ report:
221
+ - name: implementation-semantics-review.md
222
+ format: implementation-semantics-review-finding-contract
223
+ rules:
224
+ - condition: all("approved", "No AI-specific issues", "approved", "approved") && when(findings.open.count == 0 && findings.conflicts.count == 0)
225
+ next: final-gate
226
+ - condition: any("needs_fix", "AI-specific issues found", "needs_fix", "needs_fix") && when(findings.conflicts.count == 0)
227
+ next: fix
228
+ - condition: when(findings.conflicts.count == 0 && findings.open.count > 0)
229
+ next: fix
230
+ - condition: ai("There are unadjudicated findings.conflicts. Choose fix only when a concrete code change by the coder can resolve them. Do not choose it for reviewer disagreements or anything requiring human judgment.")
231
+ next: fix
232
+ - condition: when(findings.conflicts.count > 0)
233
+ next: ABORT
234
+
235
+ - name: final-gate
236
+ tags:
237
+ - review
238
+ - final-gate
239
+ edit: false
240
+ persona: merge-readiness-reviewer
241
+ policy: review
242
+ pass_previous_response: false
243
+ instruction: review-merge-readiness
244
+ output_contracts:
245
+ report:
246
+ - name: merge-readiness-review.md
247
+ format: merge-readiness-review-finding-contract
248
+ rules:
249
+ - condition: approved && when(findings.open.count == 0 && findings.conflicts.count == 0)
250
+ next: COMPLETE
251
+ - condition: needs_fix && when(findings.conflicts.count == 0)
252
+ next: fix
253
+ - condition: when(findings.conflicts.count == 0 && findings.open.count > 0)
254
+ next: fix
255
+ - condition: ai("There are unadjudicated findings.conflicts. Choose fix only when a concrete code change by the coder can resolve them. Do not choose it for reviewer disagreements or anything requiring human judgment.")
256
+ next: fix
257
+ - condition: when(findings.conflicts.count > 0)
258
+ next: ABORT
259
+
260
+ - name: fix
261
+ tags:
262
+ - coding
263
+ edit: true
264
+ persona: coder
265
+ policy:
266
+ - coding
267
+ knowledge:
268
+ - backend
269
+ - architecture
270
+ - implementation-semantics
271
+ provider_options:
272
+ extends: edit
273
+ required_permission_mode: edit
274
+ instruction: fix
275
+ rules:
276
+ - condition: Fixes are complete
277
+ next: reviewers
278
+ - condition: Cannot proceed with fixes, or human judgment is required
279
+ next: plan
280
+ appendix: |
281
+ The fix attempt is stuck. Read the rejection details and the stated
282
+ blocker, decompose the work again, and replan. Declare planning
283
+ impossible only if human judgment is genuinely required, with the
284
+ reasons stated explicitly.
@@ -23,6 +23,7 @@ loop_monitors:
23
23
  next: reviewers_1
24
24
  - cycle:
25
25
  - reviewers_1
26
+ - final-gate
26
27
  - fix
27
28
  threshold: 3
28
29
  judge:
@@ -32,7 +33,7 @@ loop_monitors:
32
33
  - condition: converging (findings decreasing, fixes applied)
33
34
  next: reviewers_1
34
35
  - condition: unproductive (same findings repeating)
35
- next: supervise
36
+ next: final-gate
36
37
  steps:
37
38
  - name: plan
38
39
  tags:
@@ -388,29 +389,6 @@ steps:
388
389
  report:
389
390
  - name: qa-review.md
390
391
  format: qa-review
391
- - name: pure-review
392
- tags:
393
- - review
394
- edit: false
395
- persona: pure-reviewer
396
- policy: review
397
- provider_options:
398
- claude:
399
- allowed_tools:
400
- - Read
401
- - Glob
402
- - Grep
403
- - Bash
404
- - WebSearch
405
- - WebFetch
406
- rules:
407
- - condition: approved
408
- - condition: needs_fix
409
- instruction: review-pure
410
- output_contracts:
411
- report:
412
- - name: pure-review.md
413
- format: pure-review
414
392
  - name: coding-review
415
393
  tags:
416
394
  - review
@@ -419,6 +397,9 @@ steps:
419
397
  policy:
420
398
  - review
421
399
  - coding
400
+ - existing-system-respect
401
+ knowledge:
402
+ - existing-system
422
403
  provider_options:
423
404
  claude:
424
405
  allowed_tools:
@@ -438,9 +419,35 @@ steps:
438
419
  - condition: needs_fix
439
420
  rules:
440
421
  - condition: all("approved")
441
- next: supervise
422
+ next: final-gate
442
423
  - condition: any("needs_fix")
443
424
  next: fix
425
+ - name: final-gate
426
+ kind: workflow_call
427
+ call: merge-readiness-dual-final-gate
428
+ args:
429
+ merge_readiness_policy:
430
+ - review
431
+ - existing-system-respect
432
+ merge_readiness_knowledge:
433
+ - backend
434
+ - security
435
+ - architecture
436
+ - existing-system
437
+ supervise_knowledge:
438
+ - backend
439
+ - security
440
+ - architecture
441
+ - existing-system
442
+ rules:
443
+ - condition: COMPLETE
444
+ next: COMPLETE
445
+ - condition: needs_fix
446
+ next: fix
447
+ - condition: need_replan
448
+ next: plan
449
+ - condition: ABORT
450
+ next: ABORT
444
451
  - name: fix
445
452
  tags:
446
453
  - coding
@@ -474,67 +481,3 @@ steps:
474
481
  - condition: Cannot proceed, insufficient info
475
482
  next: plan
476
483
  instruction: fix-maintenance
477
- - name: supervise
478
- tags:
479
- - review
480
- edit: false
481
- persona: dual-supervisor
482
- policy:
483
- - review
484
- - existing-system-respect
485
- knowledge:
486
- - existing-system
487
- provider_options:
488
- claude:
489
- allowed_tools:
490
- - Read
491
- - Glob
492
- - Grep
493
- - WebSearch
494
- - WebFetch
495
- instruction: supervise-maintenance
496
- pass_previous_response: false
497
- rules:
498
- - condition: All validations pass and ready to merge
499
- next: COMPLETE
500
- - condition: Issues detected during final review
501
- next: fix_supervisor
502
- output_contracts:
503
- report:
504
- - name: supervisor-validation.md
505
- format: supervisor-validation
506
- - name: summary.md
507
- format: summary
508
- use_judge: false
509
- - name: fix_supervisor
510
- tags:
511
- - coding
512
- edit: true
513
- persona: coder
514
- policy:
515
- - coding
516
- - testing
517
- - existing-system-respect
518
- knowledge:
519
- - backend
520
- - security
521
- - architecture
522
- - existing-system
523
- provider_options:
524
- claude:
525
- allowed_tools:
526
- - Read
527
- - Glob
528
- - Grep
529
- - Edit
530
- - Write
531
- - Bash
532
- - WebSearch
533
- - WebFetch
534
- instruction: fix-maintenance
535
- pass_previous_response: false
536
- rules:
537
- - condition: Supervisor's issues have been fixed
538
- next: supervise
539
- - condition: Unable to proceed with fixes
540
- next: plan
@@ -123,6 +123,7 @@ steps:
123
123
  - name: supervise
124
124
  tags:
125
125
  - review
126
+ - supervise
126
127
  edit: false
127
128
  persona: supervisor
128
129
  policy: review
@@ -23,6 +23,7 @@ loop_monitors:
23
23
  next: reviewers_1
24
24
  - cycle:
25
25
  - reviewers_1
26
+ - final-gate
26
27
  - fix
27
28
  threshold: 3
28
29
  judge:
@@ -32,7 +33,7 @@ loop_monitors:
32
33
  - condition: converging (findings decreasing, fixes applied)
33
34
  next: reviewers_1
34
35
  - condition: unproductive (same findings repeating)
35
- next: supervise
36
+ next: final-gate
36
37
  steps:
37
38
  - name: plan
38
39
  tags:
@@ -64,6 +65,7 @@ steps:
64
65
  - name: write_tests
65
66
  tags:
66
67
  - coding
68
+ - test-planning
67
69
  edit: true
68
70
  persona: coder
69
71
  policy:
@@ -357,29 +359,6 @@ steps:
357
359
  report:
358
360
  - name: qa-review.md
359
361
  format: qa-review
360
- - name: pure-review
361
- tags:
362
- - review
363
- edit: false
364
- persona: pure-reviewer
365
- policy: review
366
- provider_options:
367
- claude:
368
- allowed_tools:
369
- - Read
370
- - Glob
371
- - Grep
372
- - Bash
373
- - WebSearch
374
- - WebFetch
375
- rules:
376
- - condition: approved
377
- - condition: needs_fix
378
- instruction: review-pure
379
- output_contracts:
380
- report:
381
- - name: pure-review.md
382
- format: pure-review
383
362
  - name: coding-review
384
363
  tags:
385
364
  - review
@@ -407,9 +386,30 @@ steps:
407
386
  - condition: needs_fix
408
387
  rules:
409
388
  - condition: all("approved")
410
- next: supervise
389
+ next: final-gate
411
390
  - condition: any("needs_fix")
412
391
  next: fix
392
+ - name: final-gate
393
+ kind: workflow_call
394
+ call: merge-readiness-dual-final-gate
395
+ args:
396
+ merge_readiness_knowledge:
397
+ - backend
398
+ - security
399
+ - architecture
400
+ supervise_knowledge:
401
+ - backend
402
+ - security
403
+ - architecture
404
+ rules:
405
+ - condition: COMPLETE
406
+ next: COMPLETE
407
+ - condition: needs_fix
408
+ next: fix
409
+ - condition: need_replan
410
+ next: plan
411
+ - condition: ABORT
412
+ next: ABORT
413
413
  - name: fix
414
414
  tags:
415
415
  - coding
@@ -441,61 +441,3 @@ steps:
441
441
  - condition: Cannot proceed, insufficient info
442
442
  next: plan
443
443
  instruction: fix
444
- - name: supervise
445
- tags:
446
- - review
447
- edit: false
448
- persona: dual-supervisor
449
- policy: review
450
- provider_options:
451
- claude:
452
- allowed_tools:
453
- - Read
454
- - Glob
455
- - Grep
456
- - WebSearch
457
- - WebFetch
458
- instruction: supervise
459
- pass_previous_response: false
460
- rules:
461
- - condition: All validations pass and ready to merge
462
- next: COMPLETE
463
- - condition: Issues detected during final review
464
- next: fix_supervisor
465
- output_contracts:
466
- report:
467
- - name: supervisor-validation.md
468
- format: supervisor-validation
469
- - name: summary.md
470
- format: summary
471
- use_judge: false
472
- - name: fix_supervisor
473
- tags:
474
- - coding
475
- edit: true
476
- persona: coder
477
- policy:
478
- - coding
479
- - testing
480
- knowledge:
481
- - backend
482
- - security
483
- - architecture
484
- provider_options:
485
- claude:
486
- allowed_tools:
487
- - Read
488
- - Glob
489
- - Grep
490
- - Edit
491
- - Write
492
- - Bash
493
- - WebSearch
494
- - WebFetch
495
- instruction: fix-supervisor
496
- pass_previous_response: false
497
- rules:
498
- - condition: Supervisor's issues have been fixed
499
- next: supervise
500
- - condition: Unable to proceed with fixes
501
- next: plan
@@ -1,5 +1,5 @@
1
- name: takt-default-with-fc
2
- description: Finding Contract-enabled TAKT development workflow (plan -> write_tests -> draft (implement + AI self-review) -> peer-review (parallel reviewers + fix) -> supervise -> COMPLETE).
1
+ name: cli
2
+ description: CLI development workflow (plan -> write_tests -> draft (implement + AI self-review) -> peer-review (parallel reviewers + fix) -> supervise -> COMPLETE).
3
3
  workflow_config:
4
4
  provider_options:
5
5
  codex:
@@ -36,13 +36,13 @@ steps:
36
36
  - name: write_tests
37
37
  tags:
38
38
  - coding
39
+ - test-planning
39
40
  edit: true
40
41
  persona: coder
41
42
  policy:
42
43
  - coding
43
44
  - testing
44
45
  knowledge:
45
- - takt
46
46
  - architecture
47
47
  - unit-testing
48
48
  - e2e-testing
@@ -68,6 +68,12 @@ steps:
68
68
  - name: draft
69
69
  kind: workflow_call
70
70
  call: draft
71
+ args:
72
+ impl_knowledge:
73
+ - architecture
74
+ - task-decomposition
75
+ fix_knowledge:
76
+ - architecture
71
77
  rules:
72
78
  - condition: COMPLETE
73
79
  next: peer-review
@@ -77,7 +83,12 @@ steps:
77
83
  next: ABORT
78
84
  - name: peer-review
79
85
  kind: workflow_call
80
- call: peer-review-with-fc
86
+ call: peer-review
87
+ args:
88
+ arch_knowledge:
89
+ - architecture
90
+ fix_knowledge:
91
+ - architecture
81
92
  rules:
82
93
  - condition: COMPLETE
83
94
  next: supervise
@@ -88,6 +99,7 @@ steps:
88
99
  - name: supervise
89
100
  tags:
90
101
  - review
102
+ - supervise
91
103
  edit: false
92
104
  persona: supervisor
93
105
  policy: review
@@ -89,6 +89,7 @@ steps:
89
89
  - name: supervise
90
90
  tags:
91
91
  - review
92
+ - supervise
92
93
  persona: research-supervisor
93
94
  policy: research
94
95
  knowledge: research
@@ -1,5 +1,5 @@
1
1
  name: default-high
2
- description: Full-spec development workflow (plan -> write tests -> draft (team-leader implement + AI self-review) -> peer-review (parallel review + AP-2nd) -> supervise -> COMPLETE).
2
+ description: Full-spec development workflow (plan -> write tests -> draft (team-leader implement + AI self-review) -> peer-review (parallel review + AP-2nd + parallel final gate) -> COMPLETE).
3
3
  workflow_config:
4
4
  provider_options:
5
5
  codex:
@@ -43,6 +43,7 @@ steps:
43
43
  - name: write_tests
44
44
  tags:
45
45
  - coding
46
+ - test-planning
46
47
  edit: true
47
48
  persona: coder
48
49
  policy:
@@ -103,38 +104,8 @@ steps:
103
104
  - architecture
104
105
  rules:
105
106
  - condition: COMPLETE
106
- next: supervise
107
+ next: COMPLETE
107
108
  - condition: need_replan
108
109
  next: plan
109
110
  - condition: ABORT
110
111
  next: ABORT
111
- - name: supervise
112
- tags:
113
- - review
114
- edit: false
115
- persona: supervisor
116
- policy: review
117
- knowledge: architecture
118
- provider_options:
119
- claude:
120
- allowed_tools:
121
- - Read
122
- - Glob
123
- - Grep
124
- - Bash
125
- - WebSearch
126
- - WebFetch
127
- pass_previous_response: false
128
- rules:
129
- - condition: All checks passed
130
- next: COMPLETE
131
- - condition: Requirements unmet, tests failing, build errors
132
- next: plan
133
- instruction: supervise
134
- output_contracts:
135
- report:
136
- - name: supervisor-validation.md
137
- format: supervisor-validation
138
- - name: summary.md
139
- format: summary
140
- use_judge: false