takt 0.3.9 → 0.4.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 (309) hide show
  1. package/README.md +364 -325
  2. package/dist/agents/index.d.ts +1 -1
  3. package/dist/agents/index.d.ts.map +1 -1
  4. package/dist/agents/index.js +1 -1
  5. package/dist/agents/index.js.map +1 -1
  6. package/dist/agents/runner.d.ts +0 -1
  7. package/dist/agents/runner.d.ts.map +1 -1
  8. package/dist/agents/runner.js +6 -5
  9. package/dist/agents/runner.js.map +1 -1
  10. package/dist/agents/types.d.ts +3 -1
  11. package/dist/agents/types.d.ts.map +1 -1
  12. package/dist/app/cli/commands.d.ts +1 -1
  13. package/dist/app/cli/commands.js +9 -1
  14. package/dist/app/cli/commands.js.map +1 -1
  15. package/dist/app/cli/routing.js +1 -0
  16. package/dist/app/cli/routing.js.map +1 -1
  17. package/dist/core/models/index.d.ts +1 -1
  18. package/dist/core/models/index.d.ts.map +1 -1
  19. package/dist/core/models/schemas.d.ts +8 -6
  20. package/dist/core/models/schemas.d.ts.map +1 -1
  21. package/dist/core/models/schemas.js +16 -15
  22. package/dist/core/models/schemas.js.map +1 -1
  23. package/dist/core/models/types.d.ts +1 -1
  24. package/dist/core/models/types.d.ts.map +1 -1
  25. package/dist/core/models/workflow-types.d.ts +26 -24
  26. package/dist/core/models/workflow-types.d.ts.map +1 -1
  27. package/dist/core/workflow/constants.d.ts +7 -7
  28. package/dist/core/workflow/constants.d.ts.map +1 -1
  29. package/dist/core/workflow/constants.js +7 -7
  30. package/dist/core/workflow/constants.js.map +1 -1
  31. package/dist/core/workflow/engine/MovementExecutor.d.ts +59 -0
  32. package/dist/core/workflow/engine/MovementExecutor.d.ts.map +1 -0
  33. package/dist/core/workflow/engine/{StepExecutor.js → MovementExecutor.js} +30 -25
  34. package/dist/core/workflow/engine/MovementExecutor.js.map +1 -0
  35. package/dist/core/workflow/engine/OptionsBuilder.d.ts +6 -6
  36. package/dist/core/workflow/engine/OptionsBuilder.d.ts.map +1 -1
  37. package/dist/core/workflow/engine/OptionsBuilder.js +8 -3
  38. package/dist/core/workflow/engine/OptionsBuilder.js.map +1 -1
  39. package/dist/core/workflow/engine/ParallelRunner.d.ts +12 -10
  40. package/dist/core/workflow/engine/ParallelRunner.d.ts.map +1 -1
  41. package/dist/core/workflow/engine/ParallelRunner.js +46 -41
  42. package/dist/core/workflow/engine/ParallelRunner.js.map +1 -1
  43. package/dist/core/workflow/engine/WorkflowEngine.d.ts +16 -16
  44. package/dist/core/workflow/engine/WorkflowEngine.d.ts.map +1 -1
  45. package/dist/core/workflow/engine/WorkflowEngine.js +105 -92
  46. package/dist/core/workflow/engine/WorkflowEngine.js.map +1 -1
  47. package/dist/core/workflow/engine/blocked-handler.d.ts +3 -3
  48. package/dist/core/workflow/engine/blocked-handler.d.ts.map +1 -1
  49. package/dist/core/workflow/engine/blocked-handler.js +2 -2
  50. package/dist/core/workflow/engine/blocked-handler.js.map +1 -1
  51. package/dist/core/workflow/engine/index.d.ts +2 -1
  52. package/dist/core/workflow/engine/index.d.ts.map +1 -1
  53. package/dist/core/workflow/engine/index.js +1 -1
  54. package/dist/core/workflow/engine/index.js.map +1 -1
  55. package/dist/core/workflow/engine/loop-detector.d.ts +5 -5
  56. package/dist/core/workflow/engine/loop-detector.d.ts.map +1 -1
  57. package/dist/core/workflow/engine/loop-detector.js +8 -8
  58. package/dist/core/workflow/engine/loop-detector.js.map +1 -1
  59. package/dist/core/workflow/engine/parallel-logger.d.ts +15 -15
  60. package/dist/core/workflow/engine/parallel-logger.d.ts.map +1 -1
  61. package/dist/core/workflow/engine/parallel-logger.js +22 -21
  62. package/dist/core/workflow/engine/parallel-logger.js.map +1 -1
  63. package/dist/core/workflow/engine/state-manager.d.ts +6 -6
  64. package/dist/core/workflow/engine/state-manager.d.ts.map +1 -1
  65. package/dist/core/workflow/engine/state-manager.js +15 -16
  66. package/dist/core/workflow/engine/state-manager.js.map +1 -1
  67. package/dist/core/workflow/engine/transitions.d.ts +5 -5
  68. package/dist/core/workflow/engine/transitions.d.ts.map +1 -1
  69. package/dist/core/workflow/engine/transitions.js +4 -4
  70. package/dist/core/workflow/engine/transitions.js.map +1 -1
  71. package/dist/core/workflow/evaluation/AggregateEvaluator.d.ts +15 -15
  72. package/dist/core/workflow/evaluation/AggregateEvaluator.d.ts.map +1 -1
  73. package/dist/core/workflow/evaluation/AggregateEvaluator.js +35 -33
  74. package/dist/core/workflow/evaluation/AggregateEvaluator.js.map +1 -1
  75. package/dist/core/workflow/evaluation/RuleEvaluator.d.ts +8 -8
  76. package/dist/core/workflow/evaluation/RuleEvaluator.d.ts.map +1 -1
  77. package/dist/core/workflow/evaluation/RuleEvaluator.js +18 -14
  78. package/dist/core/workflow/evaluation/RuleEvaluator.js.map +1 -1
  79. package/dist/core/workflow/evaluation/index.d.ts +4 -4
  80. package/dist/core/workflow/evaluation/index.d.ts.map +1 -1
  81. package/dist/core/workflow/evaluation/index.js +1 -1
  82. package/dist/core/workflow/evaluation/index.js.map +1 -1
  83. package/dist/core/workflow/evaluation/rule-utils.d.ts +4 -4
  84. package/dist/core/workflow/evaluation/rule-utils.d.ts.map +1 -1
  85. package/dist/core/workflow/evaluation/rule-utils.js +2 -2
  86. package/dist/core/workflow/evaluation/rule-utils.js.map +1 -1
  87. package/dist/core/workflow/index.d.ts +6 -6
  88. package/dist/core/workflow/index.d.ts.map +1 -1
  89. package/dist/core/workflow/index.js +5 -5
  90. package/dist/core/workflow/index.js.map +1 -1
  91. package/dist/core/workflow/instruction/InstructionBuilder.d.ts +17 -15
  92. package/dist/core/workflow/instruction/InstructionBuilder.d.ts.map +1 -1
  93. package/dist/core/workflow/instruction/InstructionBuilder.js +105 -120
  94. package/dist/core/workflow/instruction/InstructionBuilder.js.map +1 -1
  95. package/dist/core/workflow/instruction/ReportInstructionBuilder.d.ts +10 -11
  96. package/dist/core/workflow/instruction/ReportInstructionBuilder.d.ts.map +1 -1
  97. package/dist/core/workflow/instruction/ReportInstructionBuilder.js +38 -84
  98. package/dist/core/workflow/instruction/ReportInstructionBuilder.js.map +1 -1
  99. package/dist/core/workflow/instruction/StatusJudgmentBuilder.d.ts +6 -5
  100. package/dist/core/workflow/instruction/StatusJudgmentBuilder.d.ts.map +1 -1
  101. package/dist/core/workflow/instruction/StatusJudgmentBuilder.js +14 -22
  102. package/dist/core/workflow/instruction/StatusJudgmentBuilder.js.map +1 -1
  103. package/dist/core/workflow/instruction/escape.d.ts +3 -3
  104. package/dist/core/workflow/instruction/escape.d.ts.map +1 -1
  105. package/dist/core/workflow/instruction/escape.js +3 -3
  106. package/dist/core/workflow/instruction/escape.js.map +1 -1
  107. package/dist/core/workflow/instruction/instruction-context.d.ts +16 -49
  108. package/dist/core/workflow/instruction/instruction-context.d.ts.map +1 -1
  109. package/dist/core/workflow/instruction/instruction-context.js +17 -62
  110. package/dist/core/workflow/instruction/instruction-context.js.map +1 -1
  111. package/dist/core/workflow/instruction/status-rules.d.ts +19 -14
  112. package/dist/core/workflow/instruction/status-rules.d.ts.map +1 -1
  113. package/dist/core/workflow/instruction/status-rules.js +47 -66
  114. package/dist/core/workflow/instruction/status-rules.js.map +1 -1
  115. package/dist/core/workflow/phase-runner.d.ts +14 -8
  116. package/dist/core/workflow/phase-runner.d.ts.map +1 -1
  117. package/dist/core/workflow/phase-runner.js +75 -78
  118. package/dist/core/workflow/phase-runner.js.map +1 -1
  119. package/dist/core/workflow/types.d.ts +15 -12
  120. package/dist/core/workflow/types.d.ts.map +1 -1
  121. package/dist/features/config/ejectBuiltin.js +3 -3
  122. package/dist/features/config/ejectBuiltin.js.map +1 -1
  123. package/dist/features/interactive/interactive.d.ts.map +1 -1
  124. package/dist/features/interactive/interactive.js +38 -169
  125. package/dist/features/interactive/interactive.js.map +1 -1
  126. package/dist/features/prompt/index.d.ts +5 -0
  127. package/dist/features/prompt/index.d.ts.map +1 -0
  128. package/dist/features/prompt/index.js +5 -0
  129. package/dist/features/prompt/index.js.map +1 -0
  130. package/dist/features/prompt/preview.d.ts +14 -0
  131. package/dist/features/prompt/preview.d.ts.map +1 -0
  132. package/dist/features/prompt/preview.js +74 -0
  133. package/dist/features/prompt/preview.js.map +1 -0
  134. package/dist/features/tasks/add/index.d.ts +6 -9
  135. package/dist/features/tasks/add/index.d.ts.map +1 -1
  136. package/dist/features/tasks/add/index.js +23 -55
  137. package/dist/features/tasks/add/index.js.map +1 -1
  138. package/dist/features/tasks/execute/selectAndExecute.d.ts.map +1 -1
  139. package/dist/features/tasks/execute/selectAndExecute.js +1 -0
  140. package/dist/features/tasks/execute/selectAndExecute.js.map +1 -1
  141. package/dist/features/tasks/execute/taskExecution.d.ts.map +1 -1
  142. package/dist/features/tasks/execute/taskExecution.js +4 -3
  143. package/dist/features/tasks/execute/taskExecution.js.map +1 -1
  144. package/dist/features/tasks/execute/types.d.ts +13 -0
  145. package/dist/features/tasks/execute/types.d.ts.map +1 -1
  146. package/dist/features/tasks/execute/workflowExecution.d.ts.map +1 -1
  147. package/dist/features/tasks/execute/workflowExecution.js +63 -18
  148. package/dist/features/tasks/execute/workflowExecution.js.map +1 -1
  149. package/dist/features/tasks/index.d.ts +1 -1
  150. package/dist/features/tasks/index.d.ts.map +1 -1
  151. package/dist/features/tasks/index.js +1 -1
  152. package/dist/features/tasks/index.js.map +1 -1
  153. package/dist/features/tasks/list/index.d.ts.map +1 -1
  154. package/dist/features/tasks/list/index.js +0 -1
  155. package/dist/features/tasks/list/index.js.map +1 -1
  156. package/dist/features/tasks/list/taskActions.d.ts +1 -0
  157. package/dist/features/tasks/list/taskActions.d.ts.map +1 -1
  158. package/dist/features/tasks/list/taskActions.js +24 -1
  159. package/dist/features/tasks/list/taskActions.js.map +1 -1
  160. package/dist/features/workflowSelection/index.js +1 -1
  161. package/dist/features/workflowSelection/index.js.map +1 -1
  162. package/dist/index.d.ts +3 -3
  163. package/dist/index.d.ts.map +1 -1
  164. package/dist/index.js +1 -1
  165. package/dist/index.js.map +1 -1
  166. package/dist/infra/claude/client.d.ts +1 -1
  167. package/dist/infra/claude/client.d.ts.map +1 -1
  168. package/dist/infra/claude/client.js +6 -24
  169. package/dist/infra/claude/client.js.map +1 -1
  170. package/dist/infra/claude/executor.d.ts +0 -1
  171. package/dist/infra/claude/executor.d.ts.map +1 -1
  172. package/dist/infra/claude/executor.js +0 -2
  173. package/dist/infra/claude/executor.js.map +1 -1
  174. package/dist/infra/claude/index.js +2 -2
  175. package/dist/infra/claude/index.js.map +1 -1
  176. package/dist/infra/claude/options-builder.js +4 -4
  177. package/dist/infra/claude/options-builder.js.map +1 -1
  178. package/dist/infra/claude/process.d.ts +1 -1
  179. package/dist/infra/claude/process.d.ts.map +1 -1
  180. package/dist/infra/claude/process.js +1 -1
  181. package/dist/infra/claude/process.js.map +1 -1
  182. package/dist/infra/claude/query-manager.d.ts +1 -1
  183. package/dist/infra/claude/query-manager.d.ts.map +1 -1
  184. package/dist/infra/claude/query-manager.js +1 -2
  185. package/dist/infra/claude/query-manager.js.map +1 -1
  186. package/dist/infra/claude/stream-converter.d.ts +2 -2
  187. package/dist/infra/claude/stream-converter.js +2 -2
  188. package/dist/infra/claude/types.d.ts +1 -1
  189. package/dist/infra/claude/types.d.ts.map +1 -1
  190. package/dist/infra/codex/client.d.ts.map +1 -1
  191. package/dist/infra/codex/client.js +0 -1
  192. package/dist/infra/codex/client.js.map +1 -1
  193. package/dist/infra/config/global/globalConfig.d.ts.map +1 -1
  194. package/dist/infra/config/global/globalConfig.js +0 -1
  195. package/dist/infra/config/global/globalConfig.js.map +1 -1
  196. package/dist/infra/config/loaders/agentLoader.d.ts +1 -1
  197. package/dist/infra/config/loaders/agentLoader.d.ts.map +1 -1
  198. package/dist/infra/config/loaders/agentLoader.js +6 -5
  199. package/dist/infra/config/loaders/agentLoader.js.map +1 -1
  200. package/dist/infra/config/loaders/loader.d.ts +1 -1
  201. package/dist/infra/config/loaders/loader.js +1 -1
  202. package/dist/infra/config/loaders/workflowParser.d.ts.map +1 -1
  203. package/dist/infra/config/loaders/workflowParser.js +9 -5
  204. package/dist/infra/config/loaders/workflowParser.js.map +1 -1
  205. package/dist/infra/config/loaders/workflowResolver.d.ts +4 -4
  206. package/dist/infra/config/loaders/workflowResolver.js +11 -11
  207. package/dist/infra/config/loaders/workflowResolver.js.map +1 -1
  208. package/dist/infra/config/paths.d.ts +4 -4
  209. package/dist/infra/config/paths.d.ts.map +1 -1
  210. package/dist/infra/config/paths.js +7 -7
  211. package/dist/infra/config/paths.js.map +1 -1
  212. package/dist/infra/config/project/index.d.ts +1 -1
  213. package/dist/infra/config/project/index.d.ts.map +1 -1
  214. package/dist/infra/config/project/index.js.map +1 -1
  215. package/dist/infra/config/project/projectConfig.d.ts +2 -2
  216. package/dist/infra/config/project/projectConfig.d.ts.map +1 -1
  217. package/dist/infra/config/types.d.ts +0 -2
  218. package/dist/infra/config/types.d.ts.map +1 -1
  219. package/dist/infra/fs/index.d.ts +1 -1
  220. package/dist/infra/fs/index.d.ts.map +1 -1
  221. package/dist/infra/fs/index.js.map +1 -1
  222. package/dist/infra/fs/session.d.ts +1 -1
  223. package/dist/infra/fs/session.d.ts.map +1 -1
  224. package/dist/infra/fs/session.js +0 -1
  225. package/dist/infra/fs/session.js.map +1 -1
  226. package/dist/infra/providers/index.d.ts.map +1 -1
  227. package/dist/infra/providers/index.js +0 -1
  228. package/dist/infra/providers/index.js.map +1 -1
  229. package/dist/infra/task/autoCommit.js +1 -1
  230. package/dist/infra/task/autoCommit.js.map +1 -1
  231. package/dist/infra/task/branchList.d.ts +4 -2
  232. package/dist/infra/task/branchList.d.ts.map +1 -1
  233. package/dist/infra/task/branchList.js +87 -9
  234. package/dist/infra/task/branchList.js.map +1 -1
  235. package/dist/infra/task/clone.js +1 -1
  236. package/dist/infra/task/clone.js.map +1 -1
  237. package/dist/infra/task/parser.d.ts +1 -1
  238. package/dist/infra/task/parser.js +1 -1
  239. package/dist/infra/task/summarize.d.ts.map +1 -1
  240. package/dist/infra/task/summarize.js +3 -15
  241. package/dist/infra/task/summarize.js.map +1 -1
  242. package/dist/infra/task/types.d.ts +1 -0
  243. package/dist/infra/task/types.d.ts.map +1 -1
  244. package/dist/shared/context.d.ts.map +1 -1
  245. package/dist/shared/context.js +0 -1
  246. package/dist/shared/context.js.map +1 -1
  247. package/dist/shared/i18n/index.d.ts +31 -0
  248. package/dist/shared/i18n/index.d.ts.map +1 -0
  249. package/dist/shared/i18n/index.js +97 -0
  250. package/dist/shared/i18n/index.js.map +1 -0
  251. package/dist/shared/i18n/labels_en.yaml +37 -0
  252. package/dist/shared/i18n/labels_ja.yaml +37 -0
  253. package/dist/shared/prompt/select.d.ts +0 -3
  254. package/dist/shared/prompt/select.d.ts.map +1 -1
  255. package/dist/shared/prompt/select.js +5 -20
  256. package/dist/shared/prompt/select.js.map +1 -1
  257. package/dist/shared/prompts/en/perform_agent_system_prompt.md +7 -0
  258. package/dist/shared/prompts/en/perform_builtin_agent_system_prompt.md +7 -0
  259. package/dist/shared/prompts/en/perform_judge_message.md +24 -0
  260. package/dist/shared/prompts/en/perform_phase1_message.md +45 -0
  261. package/dist/shared/prompts/en/perform_phase2_message.md +31 -0
  262. package/dist/shared/prompts/en/perform_phase3_message.md +19 -0
  263. package/dist/shared/prompts/en/score_interactive_system_prompt.md +53 -0
  264. package/dist/shared/prompts/en/score_slug_system_prompt.md +19 -0
  265. package/dist/shared/prompts/en/score_summary_system_prompt.md +25 -0
  266. package/dist/shared/prompts/index.d.ts +27 -0
  267. package/dist/shared/prompts/index.d.ts.map +1 -0
  268. package/dist/shared/prompts/index.js +111 -0
  269. package/dist/shared/prompts/index.js.map +1 -0
  270. package/dist/shared/prompts/ja/perform_agent_system_prompt.md +7 -0
  271. package/dist/shared/prompts/ja/perform_builtin_agent_system_prompt.md +7 -0
  272. package/dist/shared/prompts/ja/perform_judge_message.md +24 -0
  273. package/dist/shared/prompts/ja/perform_phase1_message.md +44 -0
  274. package/dist/shared/prompts/ja/perform_phase2_message.md +30 -0
  275. package/dist/shared/prompts/ja/perform_phase3_message.md +19 -0
  276. package/dist/shared/prompts/ja/score_interactive_system_prompt.md +59 -0
  277. package/dist/shared/prompts/ja/score_slug_system_prompt.md +19 -0
  278. package/dist/shared/prompts/ja/score_summary_system_prompt.md +32 -0
  279. package/dist/shared/ui/LogManager.d.ts +1 -1
  280. package/dist/shared/ui/LogManager.d.ts.map +1 -1
  281. package/dist/shared/ui/LogManager.js +1 -2
  282. package/dist/shared/ui/LogManager.js.map +1 -1
  283. package/dist/shared/utils/debug.js +1 -1
  284. package/dist/shared/utils/debug.js.map +1 -1
  285. package/dist/shared/utils/types.d.ts +29 -1
  286. package/dist/shared/utils/types.d.ts.map +1 -1
  287. package/package.json +2 -2
  288. package/resources/global/en/{workflows → pieces}/default.yaml +16 -16
  289. package/resources/global/en/{workflows → pieces}/expert-cqrs.yaml +17 -17
  290. package/resources/global/en/{workflows → pieces}/expert.yaml +20 -20
  291. package/resources/global/en/{workflows → pieces}/magi.yaml +4 -4
  292. package/resources/global/en/{workflows → pieces}/minimal.yaml +7 -7
  293. package/resources/global/en/{workflows → pieces}/research.yaml +11 -11
  294. package/resources/global/en/{workflows → pieces}/review-fix-minimal.yaml +8 -8
  295. package/resources/global/en/{workflows → pieces}/review-only.yaml +7 -7
  296. package/resources/global/ja/agents/default/architecture-reviewer.md +3 -3
  297. package/resources/global/ja/agents/default/supervisor.md +1 -1
  298. package/resources/global/ja/agents/templates/planner.md +1 -1
  299. package/resources/global/ja/{workflows → pieces}/default.yaml +12 -12
  300. package/resources/global/ja/{workflows → pieces}/expert-cqrs.yaml +18 -18
  301. package/resources/global/ja/{workflows → pieces}/expert.yaml +15 -15
  302. package/resources/global/ja/{workflows → pieces}/magi.yaml +4 -4
  303. package/resources/global/ja/{workflows → pieces}/minimal.yaml +8 -8
  304. package/resources/global/ja/{workflows → pieces}/research.yaml +11 -11
  305. package/resources/global/ja/{workflows → pieces}/review-fix-minimal.yaml +8 -8
  306. package/resources/global/ja/{workflows → pieces}/review-only.yaml +7 -7
  307. package/dist/core/workflow/engine/StepExecutor.d.ts +0 -52
  308. package/dist/core/workflow/engine/StepExecutor.d.ts.map +0 -1
  309. package/dist/core/workflow/engine/StepExecutor.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Loop detection for workflow execution
3
3
  *
4
- * Detects when a workflow step is executed repeatedly without progress,
4
+ * Detects when a workflow movement is executed repeatedly without progress,
5
5
  * which may indicate an infinite loop.
6
6
  */
7
7
  /** Default loop detection settings */
@@ -10,10 +10,10 @@ const DEFAULT_LOOP_DETECTION = {
10
10
  action: 'warn',
11
11
  };
12
12
  /**
13
- * Loop detector for tracking consecutive same-step executions.
13
+ * Loop detector for tracking consecutive same-movement executions.
14
14
  */
15
15
  export class LoopDetector {
16
- lastStepName = null;
16
+ lastMovementName = null;
17
17
  consecutiveCount = 0;
18
18
  config;
19
19
  constructor(config) {
@@ -23,16 +23,16 @@ export class LoopDetector {
23
23
  };
24
24
  }
25
25
  /**
26
- * Check if the given step execution would be a loop.
26
+ * Check if the given movement execution would be a loop.
27
27
  * Updates internal tracking state.
28
28
  */
29
- check(stepName) {
30
- if (this.lastStepName === stepName) {
29
+ check(movementName) {
30
+ if (this.lastMovementName === movementName) {
31
31
  this.consecutiveCount++;
32
32
  }
33
33
  else {
34
34
  this.consecutiveCount = 1;
35
- this.lastStepName = stepName;
35
+ this.lastMovementName = movementName;
36
36
  }
37
37
  const isLoop = this.consecutiveCount > this.config.maxConsecutiveSameStep;
38
38
  const shouldAbort = isLoop && this.config.action === 'abort';
@@ -48,7 +48,7 @@ export class LoopDetector {
48
48
  * Reset the detector state.
49
49
  */
50
50
  reset() {
51
- this.lastStepName = null;
51
+ this.lastMovementName = null;
52
52
  this.consecutiveCount = 0;
53
53
  }
54
54
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"loop-detector.js","sourceRoot":"","sources":["../../../../src/core/workflow/engine/loop-detector.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,sCAAsC;AACtC,MA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
2
+ * Parallel movement log display
3
3
  *
4
- * Provides prefixed, color-coded interleaved output for parallel sub-steps.
5
- * Each sub-step's stream output gets a `[name]` prefix with right-padding
6
- * aligned to the longest sub-step name.
4
+ * Provides prefixed, color-coded interleaved output for parallel sub-movements.
5
+ * Each sub-movement's stream output gets a `[name]` prefix with right-padding
6
+ * aligned to the longest sub-movement name.
7
7
  */
8
8
  import type { StreamCallback } from '../types.js';
9
9
  export interface ParallelLoggerOptions {
10
- /** Sub-step names (used to calculate prefix width) */
11
- subStepNames: string[];
10
+ /** Sub-movement names (used to calculate prefix width) */
11
+ subMovementNames: string[];
12
12
  /** Parent onStream callback to delegate non-prefixed events */
13
13
  parentOnStream?: StreamCallback;
14
14
  /** Override process.stdout.write for testing */
15
15
  writeFn?: (text: string) => void;
16
16
  }
17
17
  /**
18
- * Logger for parallel step execution.
18
+ * Logger for parallel movement execution.
19
19
  *
20
- * Creates per-sub-step StreamCallback wrappers that:
20
+ * Creates per-sub-movement StreamCallback wrappers that:
21
21
  * - Buffer partial lines until newline
22
22
  * - Prepend colored `[name]` prefix to each complete line
23
23
  * - Delegate init/result/error events to the parent callback
@@ -29,18 +29,18 @@ export declare class ParallelLogger {
29
29
  private readonly writeFn;
30
30
  constructor(options: ParallelLoggerOptions);
31
31
  /**
32
- * Build the colored prefix string for a sub-step.
32
+ * Build the colored prefix string for a sub-movement.
33
33
  * Format: `\x1b[COLORm[name]\x1b[0m` + padding spaces
34
34
  */
35
35
  buildPrefix(name: string, index: number): string;
36
36
  /**
37
- * Create a StreamCallback wrapper for a specific sub-step.
37
+ * Create a StreamCallback wrapper for a specific sub-movement.
38
38
  *
39
39
  * - `text`: buffered line-by-line with prefix
40
40
  * - `tool_use`, `tool_result`, `tool_output`, `thinking`: prefixed per-line, no buffering
41
41
  * - `init`, `result`, `error`: delegated to parent callback (no prefix)
42
42
  */
43
- createStreamHandler(subStepName: string, index: number): StreamCallback;
43
+ createStreamHandler(subMovementName: string, index: number): StreamCallback;
44
44
  /**
45
45
  * Handle text event with line buffering.
46
46
  * Buffer until newline, then output prefixed complete lines.
@@ -53,12 +53,12 @@ export declare class ParallelLogger {
53
53
  */
54
54
  private handleBlockEvent;
55
55
  /**
56
- * Flush remaining line buffers for all sub-steps.
57
- * Call after all sub-steps complete to output any trailing partial lines.
56
+ * Flush remaining line buffers for all sub-movements.
57
+ * Call after all sub-movements complete to output any trailing partial lines.
58
58
  */
59
59
  flush(): void;
60
60
  /**
61
- * Print completion summary after all sub-steps finish.
61
+ * Print completion summary after all sub-movements finish.
62
62
  *
63
63
  * Format:
64
64
  * ```
@@ -68,7 +68,7 @@ export declare class ParallelLogger {
68
68
  * ──────────────────────────────
69
69
  * ```
70
70
  */
71
- printSummary(parentStepName: string, results: Array<{
71
+ printSummary(parentMovementName: string, results: Array<{
72
72
  name: string;
73
73
  condition: string | undefined;
74
74
  }>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"parallel-logger.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/engine/parallel-logger.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,aAAa,CAAC;AAM/D,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gDAAgD;IAChD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkC;IAC9D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAiB;IACjD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;gBAErC,OAAO,EAAE,qBAAqB;IAU1C;;;OAGG;IACH,WAAW,CAAC,IAAI,EAAE,MAA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AK,EAAE,MAAM,GAAG,cAAc;IA0B3E;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAmBvB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA4BxB;;;OAGG;IACH,KAAK,IAAI,IAAI;IAeb;;;;;;;;;;OAUG;IACH,YAAY,CACV,kBAAkB,EAAE,MAAM,EAC1B,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC,GAC9D,IAAI;CA2BR"}
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Parallel step log display
2
+ * Parallel movement log display
3
3
  *
4
- * Provides prefixed, color-coded interleaved output for parallel sub-steps.
5
- * Each sub-step's stream output gets a `[name]` prefix with right-padding
6
- * aligned to the longest sub-step name.
4
+ * Provides prefixed, color-coded interleaved output for parallel sub-movements.
5
+ * Each sub-movement's stream output gets a `[name]` prefix with right-padding
6
+ * aligned to the longest sub-movement name.
7
7
  */
8
- /** ANSI color codes for sub-step prefixes (cycled in order) */
8
+ /** ANSI color codes for sub-movement prefixes (cycled in order) */
9
9
  const COLORS = ['\x1b[36m', '\x1b[33m', '\x1b[35m', '\x1b[32m']; // cyan, yellow, magenta, green
10
10
  const RESET = '\x1b[0m';
11
11
  /**
12
- * Logger for parallel step execution.
12
+ * Logger for parallel movement execution.
13
13
  *
14
- * Creates per-sub-step StreamCallback wrappers that:
14
+ * Creates per-sub-movement StreamCallback wrappers that:
15
15
  * - Buffer partial lines until newline
16
16
  * - Prepend colored `[name]` prefix to each complete line
17
17
  * - Delegate init/result/error events to the parent callback
@@ -22,15 +22,15 @@ export class ParallelLogger {
22
22
  parentOnStream;
23
23
  writeFn;
24
24
  constructor(options) {
25
- this.maxNameLength = Math.max(...options.subStepNames.map((n) => n.length));
25
+ this.maxNameLength = Math.max(...options.subMovementNames.map((n) => n.length));
26
26
  this.parentOnStream = options.parentOnStream;
27
27
  this.writeFn = options.writeFn ?? ((text) => process.stdout.write(text));
28
- for (const name of options.subStepNames) {
28
+ for (const name of options.subMovementNames) {
29
29
  this.lineBuffers.set(name, '');
30
30
  }
31
31
  }
32
32
  /**
33
- * Build the colored prefix string for a sub-step.
33
+ * Build the colored prefix string for a sub-movement.
34
34
  * Format: `\x1b[COLORm[name]\x1b[0m` + padding spaces
35
35
  */
36
36
  buildPrefix(name, index) {
@@ -39,18 +39,18 @@ export class ParallelLogger {
39
39
  return `${color}[${name}]${RESET}${padding} `;
40
40
  }
41
41
  /**
42
- * Create a StreamCallback wrapper for a specific sub-step.
42
+ * Create a StreamCallback wrapper for a specific sub-movement.
43
43
  *
44
44
  * - `text`: buffered line-by-line with prefix
45
45
  * - `tool_use`, `tool_result`, `tool_output`, `thinking`: prefixed per-line, no buffering
46
46
  * - `init`, `result`, `error`: delegated to parent callback (no prefix)
47
47
  */
48
- createStreamHandler(subStepName, index) {
49
- const prefix = this.buildPrefix(subStepName, index);
48
+ createStreamHandler(subMovementName, index) {
49
+ const prefix = this.buildPrefix(subMovementName, index);
50
50
  return (event) => {
51
51
  switch (event.type) {
52
52
  case 'text':
53
- this.handleTextEvent(subStepName, prefix, event.data.text);
53
+ this.handleTextEvent(subMovementName, prefix, event.data.text);
54
54
  break;
55
55
  case 'tool_use':
56
56
  case 'tool_result':
@@ -77,7 +77,8 @@ export class ParallelLogger {
77
77
  const combined = buffer + text;
78
78
  const parts = combined.split('\n');
79
79
  // Last part is incomplete (no trailing newline) — keep in buffer
80
- this.lineBuffers.set(name, parts.pop());
80
+ const remainder = parts.pop() ?? '';
81
+ this.lineBuffers.set(name, remainder);
81
82
  // Output all complete lines
82
83
  for (const line of parts) {
83
84
  if (line === '') {
@@ -120,13 +121,13 @@ export class ParallelLogger {
120
121
  }
121
122
  }
122
123
  /**
123
- * Flush remaining line buffers for all sub-steps.
124
- * Call after all sub-steps complete to output any trailing partial lines.
124
+ * Flush remaining line buffers for all sub-movements.
125
+ * Call after all sub-movements complete to output any trailing partial lines.
125
126
  */
126
127
  flush() {
127
128
  // Build prefixes for flush — need index mapping
128
129
  // Since we don't store index, iterate lineBuffers in insertion order
129
- // (Map preserves insertion order, matching subStepNames order)
130
+ // (Map preserves insertion order, matching subMovementNames order)
130
131
  let index = 0;
131
132
  for (const [name, buffer] of this.lineBuffers) {
132
133
  if (buffer !== '') {
@@ -138,7 +139,7 @@ export class ParallelLogger {
138
139
  }
139
140
  }
140
141
  /**
141
- * Print completion summary after all sub-steps finish.
142
+ * Print completion summary after all sub-movements finish.
142
143
  *
143
144
  * Format:
144
145
  * ```
@@ -148,7 +149,7 @@ export class ParallelLogger {
148
149
  * ──────────────────────────────
149
150
  * ```
150
151
  */
151
- printSummary(parentStepName, results) {
152
+ printSummary(parentMovementName, results) {
152
153
  this.flush();
153
154
  const maxResultNameLength = Math.max(...results.map((r) => r.name.length));
154
155
  const resultLines = results.map((r) => {
@@ -157,7 +158,7 @@ export class ParallelLogger {
157
158
  return ` ${r.name}:${padding} ${condition}`;
158
159
  });
159
160
  // Header line: ── name results ──
160
- const headerText = ` ${parentStepName} results `;
161
+ const headerText = ` ${parentMovementName} results `;
161
162
  const maxLineLength = Math.max(headerText.length + 4, // 4 for "── " + " ──"
162
163
  ...resultLines.map((l) => l.length));
163
164
  const sideWidth = Math.max(1, Math.floor((maxLineLength - headerText.length) / 2));
@@ -1 +1 @@
1
- {"version":3,"file":"parallel-logger.js","sourceRoot":"","sources":["../../../../src/core/workflow/engine/parallel-logger.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,+DAA+D;AAC/D,MAAM,MAAM,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAU,CAAC,CAAC,+BAA+B;AACzG,MAAM,KAAK,GAAG,SAAS,CAAC;AAWxB;;;;;;;GAOG;AACH,MAAM,OAAO,cAAc;IACR,aAAa,CAAS;IACtB,WAAW,GAAwB,IAAI,GAAG,EAAE,CAAC;IAC7C,cAAc,CAAkB;IAChC,OAAO,CAA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AAC,MAAM,CAAC,CACpC,CAAC;QACF,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,aAAa,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACnF,MAAM,UAAU,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;QACnF,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAEjD,IAAI,CAAC,OAAO,CAAC,GAAG,UAAU,IAAI,CAAC,CAAC;QAChC,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,CAAC;YAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC;QAC5B,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,GAAG,UAAU,IAAI,CAAC,CAAC;IAClC,CAAC;CACF"}
@@ -15,15 +15,15 @@ export declare class StateManager {
15
15
  readonly state: WorkflowState;
16
16
  constructor(config: WorkflowConfig, options: WorkflowEngineOptions);
17
17
  /**
18
- * Increment the iteration counter for a step and return the new value.
18
+ * Increment the iteration counter for a movement and return the new value.
19
19
  */
20
- incrementStepIteration(stepName: string): number;
20
+ incrementMovementIteration(movementName: string): number;
21
21
  /**
22
22
  * Add user input to state with truncation and limit handling.
23
23
  */
24
24
  addUserInput(input: string): void;
25
25
  /**
26
- * Get the most recent step output.
26
+ * Get the most recent movement output.
27
27
  */
28
28
  getPreviousOutput(): AgentResponse | undefined;
29
29
  }
@@ -32,15 +32,15 @@ export declare class StateManager {
32
32
  */
33
33
  export declare function createInitialState(config: WorkflowConfig, options: WorkflowEngineOptions): WorkflowState;
34
34
  /**
35
- * Increment the iteration counter for a step and return the new value.
35
+ * Increment the iteration counter for a movement and return the new value.
36
36
  */
37
- export declare function incrementStepIteration(state: WorkflowState, stepName: string): number;
37
+ export declare function incrementMovementIteration(state: WorkflowState, movementName: string): number;
38
38
  /**
39
39
  * Add user input to state with truncation and limit handling.
40
40
  */
41
41
  export declare function addUserInput(state: WorkflowState, input: string): void;
42
42
  /**
43
- * Get the most recent step output.
43
+ * Get the most recent movement output.
44
44
  */
45
45
  export declare function getPreviousOutput(state: WorkflowState): AgentResponse | undefined;
46
46
  //# sourceMappingURL=state-manager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"state-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/engine/state-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD;;;;GAIG;AACH,qBAAa,YAAY;IACvB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;gBAElB,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,qBAAqB;IA0BlE;;OAEG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAOhD;;OAEG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQjC;;OAEG;IACH,iBAAiB,IAAI,aAAa,GAAG,SAAS;CAI/C;AAID;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,qBAAqB,GAC7B,aAAa,CAEf;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKrF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMtE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,GAAG,SAAS,CAGjF"}
1
+ {"version":3,"file":"state-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/engine/state-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD;;;;GAIG;AACH,qBAAa,YAAY;IACvB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;gBAElB,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,qBAAqB;IA0BlE;;OAEG;IACH,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAOxD;;OAEG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQjC;;OAEG;IACH,iBAAiB,IAAI,aAAa,GAAG,SAAS;CAI/C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,qBAAqB,GAC7B,aAAa,CAEf;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAK7F;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMtE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,GAAG,SAAS,CAGjF"}
@@ -26,22 +26,22 @@ export class StateManager {
26
26
  : [];
27
27
  this.state = {
28
28
  workflowName: config.name,
29
- currentStep: config.initialStep,
29
+ currentMovement: config.initialMovement,
30
30
  iteration: 0,
31
- stepOutputs: new Map(),
31
+ movementOutputs: new Map(),
32
32
  userInputs,
33
33
  agentSessions,
34
- stepIterations: new Map(),
34
+ movementIterations: new Map(),
35
35
  status: 'running',
36
36
  };
37
37
  }
38
38
  /**
39
- * Increment the iteration counter for a step and return the new value.
39
+ * Increment the iteration counter for a movement and return the new value.
40
40
  */
41
- incrementStepIteration(stepName) {
42
- const current = this.state.stepIterations.get(stepName) ?? 0;
41
+ incrementMovementIteration(movementName) {
42
+ const current = this.state.movementIterations.get(movementName) ?? 0;
43
43
  const next = current + 1;
44
- this.state.stepIterations.set(stepName, next);
44
+ this.state.movementIterations.set(movementName, next);
45
45
  return next;
46
46
  }
47
47
  /**
@@ -55,14 +55,13 @@ export class StateManager {
55
55
  this.state.userInputs.push(truncated);
56
56
  }
57
57
  /**
58
- * Get the most recent step output.
58
+ * Get the most recent movement output.
59
59
  */
60
60
  getPreviousOutput() {
61
- const outputs = Array.from(this.state.stepOutputs.values());
61
+ const outputs = Array.from(this.state.movementOutputs.values());
62
62
  return outputs[outputs.length - 1];
63
63
  }
64
64
  }
65
- // --- Backward-compatible function facades ---
66
65
  /**
67
66
  * Create initial workflow state from config and options.
68
67
  */
@@ -70,12 +69,12 @@ export function createInitialState(config, options) {
70
69
  return new StateManager(config, options).state;
71
70
  }
72
71
  /**
73
- * Increment the iteration counter for a step and return the new value.
72
+ * Increment the iteration counter for a movement and return the new value.
74
73
  */
75
- export function incrementStepIteration(state, stepName) {
76
- const current = state.stepIterations.get(stepName) ?? 0;
74
+ export function incrementMovementIteration(state, movementName) {
75
+ const current = state.movementIterations.get(movementName) ?? 0;
77
76
  const next = current + 1;
78
- state.stepIterations.set(stepName, next);
77
+ state.movementIterations.set(movementName, next);
79
78
  return next;
80
79
  }
81
80
  /**
@@ -89,10 +88,10 @@ export function addUserInput(state, input) {
89
88
  state.userInputs.push(truncated);
90
89
  }
91
90
  /**
92
- * Get the most recent step output.
91
+ * Get the most recent movement output.
93
92
  */
94
93
  export function getPreviousOutput(state) {
95
- const outputs = Array.from(state.stepOutputs.values());
94
+ const outputs = Array.from(state.movementOutputs.values());
96
95
  return outputs[outputs.length - 1];
97
96
  }
98
97
  //# sourceMappingURL=state-manager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"state-manager.js","sourceRoot":"","sources":["../../../../src/core/workflow/engine/state-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,eAAe,EACf,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAGzB;;;;GAIG;AACH,MAAM,OAAO,YAAY;IACd,KAAK,CAAgB;IAE9B,YAAY,MAAsB,EAAE,OAA8B;QAChE,kDAAkD;QAClD,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkB,CAAC;QAChD,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;YAC5B,KAAK,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;gBACzE,aAAa,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;QAED,kDAAkD;QAClD,MAAM,UAAU,GAAG,OAAO,CAAC,iBAAiB;YAC1C,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;YAChC,CAAC,CAAC,EAAE,CAAC;QAEP,IAAI,CAAC,KAAK,GAAG;YACX,YAAY,EAAE,MAAM,CAAC,IAAI;YACzB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,IAAI,GAAG,EAAE;YACtB,UAAU;YACV,aAAa;YACb,cAAc,EAAE,IAAI,GAAG,EAAE;YACzB,MAAM,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,sBAAsB,CAAC,QAAgB;QACrC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC7D,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CA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AE,CAAC;QAC/C,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;IACD,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;IACnD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAoB;IACpD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;IACvD,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"state-manager.js","sourceRoot":"","sources":["../../../../src/core/workflow/engine/state-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,eAAe,EACf,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAGzB;;;;GAIG;AACH,MAAM,OAAO,YAAY;IACd,KAAK,CAAgB;IAE9B,YAAY,MAAsB,EAAE,OAA8B;QAChE,kDAAkD;QAClD,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkB,CAAC;QAChD,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;YAC5B,KAAK,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;gBACzE,aAAa,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;YACtC,CAAC;QACH,CAAC;QAED,kDAAkD;QAClD,MAAM,UAAU,GAAG,OAAO,CAAC,iBAAiB;YAC1C,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;YAChC,CAAC,CAAC,EAAE,CAAC;QAEP,IAAI,CAAC,KAAK,GAAG;YACX,YAAY,EAAE,MAAM,CAAC,IAAI;YACzB,eAAe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EG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAoB,EAAE,YAAoB;IACnF,MAAM,OAAO,GAAG,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAChE,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,CAAC;IACzB,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IACjD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAAoB,EAAE,KAAa;IAC9D,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,IAAI,eAAe,EAAE,CAAC;QAC/C,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;IACD,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;IACnD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAoB;IACpD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3D,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACrC,CAAC"}
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * Workflow state transition logic
3
3
  *
4
- * Handles determining the next step based on rules-based routing.
4
+ * Handles determining the next movement based on rules-based routing.
5
5
  */
6
- import type { WorkflowStep } from '../../models/types.js';
6
+ import type { WorkflowMovement } from '../../models/types.js';
7
7
  /**
8
- * Determine next step using rules-based detection.
9
- * Returns the next step name from the matched rule, or null if no rule matched.
8
+ * Determine next movement using rules-based detection.
9
+ * Returns the next movement name from the matched rule, or null if no rule matched.
10
10
  */
11
- export declare function determineNextStepByRules(step: WorkflowStep, ruleIndex: number): string | null;
11
+ export declare function determineNextMovementByRules(step: WorkflowMovement, ruleIndex: number): string | null;
12
12
  /**
13
13
  * Extract user-facing prompt from blocked response.
14
14
  * Looks for common patterns like "必要な情報:", "質問:", etc.
@@ -1 +1 @@
1
- {"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/engine/transitions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,YAAY,EACb,MAAM,uBAAuB,CAAC;AAE/B;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,YAAY,EAClB,SAAS,EAAE,MAAM,GAChB,MAAM,GAAG,IAAI,CAMf;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAkB5D"}
1
+ {"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/engine/transitions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAE/B;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,gBAAgB,EACtB,SAAS,EAAE,MAAM,GAChB,MAAM,GAAG,IAAI,CAMf;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAkB5D"}
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Workflow state transition logic
3
3
  *
4
- * Handles determining the next step based on rules-based routing.
4
+ * Handles determining the next movement based on rules-based routing.
5
5
  */
6
6
  /**
7
- * Determine next step using rules-based detection.
8
- * Returns the next step name from the matched rule, or null if no rule matched.
7
+ * Determine next movement using rules-based detection.
8
+ * Returns the next movement name from the matched rule, or null if no rule matched.
9
9
  */
10
- export function determineNextStepByRules(step, ruleIndex) {
10
+ export function determineNextMovementByRules(step, ruleIndex) {
11
11
  const rule = step.rules?.[ruleIndex];
12
12
  if (!rule) {
13
13
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"transitions.js","sourceRoot":"","sources":["../../../../src/core/workflow/engine/transitions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CACtC,IAAkB,EAClB,SAAiB;IAEjB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC;AAC3B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe;IAClD,+CAA+C;IAC/C,MAAM,QAAQ,GAAG;QACf,4BAA4B;QAC5B,yBAAyB;QACzB,yBAAyB;QACzB,yBAAyB;KAC1B,CAAC;IAEF,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACf,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;IAED,uDAAuD;IACvD,OAAO,OAAO,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"transitions.js","sourceRoot":"","sources":["../../../../src/core/workflow/engine/transitions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAC1C,IAAsB,EACtB,SAAiB;IAEjB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC;AAC3B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe;IAClD,+CAA+C;IAC/C,MAAM,QAAQ,GAAG;QACf,4BAA4B;QAC5B,yBAAyB;QACzB,yBAAyB;QACzB,yBAAyB;KAC1B,CAAC;IAEF,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACf,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;IAED,uDAAuD;IACvD,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,31 +1,31 @@
1
1
  /**
2
- * Aggregate condition evaluator for parallel workflow steps
2
+ * Aggregate condition evaluator for parallel workflow movements
3
3
  *
4
- * Evaluates all()/any() aggregate conditions against sub-step results.
4
+ * Evaluates all()/any() aggregate conditions against sub-movement results.
5
5
  */
6
- import type { WorkflowStep, WorkflowState } from '../../models/types.js';
6
+ import type { WorkflowMovement, WorkflowState } from '../../models/types.js';
7
7
  /**
8
- * Evaluates aggregate conditions (all()/any()) for parallel parent steps.
8
+ * Evaluates aggregate conditions (all()/any()) for parallel parent movements.
9
9
  *
10
- * For each aggregate rule, checks the matched condition text of sub-steps:
11
- * - all("X"): true when ALL sub-steps have matched condition === X
12
- * - all("A", "B"): true when 1st sub-step matches "A" AND 2nd sub-step matches "B" (order-based)
13
- * - any("X"): true when at least ONE sub-step has matched condition === X
14
- * - any("A", "B"): true when at least ONE sub-step matches "A" OR "B"
10
+ * For each aggregate rule, checks the matched condition text of sub-movements:
11
+ * - all("X"): true when ALL sub-movements have matched condition === X
12
+ * - all("A", "B"): true when 1st sub-movement matches "A" AND 2nd sub-movement matches "B" (order-based)
13
+ * - any("X"): true when at least ONE sub-movement has matched condition === X
14
+ * - any("A", "B"): true when at least ONE sub-movement matches "A" OR "B"
15
15
  *
16
16
  * Edge cases per spec:
17
- * - Sub-step with no matched rule: all() → false, any() → skip that sub-step
18
- * - No sub-steps (0 件): both → false
19
- * - Non-parallel step: both → false
20
- * - all("A", "B") with wrong number of sub-steps: false (logged as error)
17
+ * - Sub-movement with no matched rule: all() → false, any() → skip that sub-movement
18
+ * - No sub-movements (0 件): both → false
19
+ * - Non-parallel movement: both → false
20
+ * - all("A", "B") with wrong number of sub-movements: false (logged as error)
21
21
  */
22
22
  export declare class AggregateEvaluator {
23
23
  private readonly step;
24
24
  private readonly state;
25
- constructor(step: WorkflowStep, state: WorkflowState);
25
+ constructor(step: WorkflowMovement, state: WorkflowState);
26
26
  /**
27
27
  * Evaluate aggregate conditions.
28
- * Returns the 0-based rule index in the step's rules array, or -1 if no match.
28
+ * Returns the 0-based rule index in the movement's rules array, or -1 if no match.
29
29
  */
30
30
  evaluate(): number;
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AggregateEvaluator.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/evaluation/AggregateEvaluator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAKzE;;;;;;;;;;;;;;GAcG;AACH,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK;gBADL,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,aAAa;IAGvC;;;OAGG;IACH,QAAQ,IAAI,MAAM;CAgFnB"}
1
+ {"version":3,"file":"AggregateEvaluator.d.ts","sourceRoot":"","sources":["../../../../src/core/workflow/evaluation/AggregateEvaluator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK7E;;;;;;;;;;;;;;GAcG;AACH,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK;gBADL,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,aAAa;IAGvC;;;OAGG;IACH,QAAQ,IAAI,MAAM;CAiFnB"}