vibeman 0.0.3 → 0.0.6

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 (231) hide show
  1. package/dist/api.js +49 -0
  2. package/dist/cli.js +135 -0
  3. package/dist/ui/index-gnk6rhxs.js +9 -0
  4. package/dist/ui/index.html +10 -0
  5. package/dist/ui/index.js +2 -0
  6. package/package.json +10 -80
  7. package/README.md +0 -12
  8. package/dist/index.js +0 -114
  9. package/dist/runtime/api/.tsbuildinfo +0 -1
  10. package/dist/runtime/api/agent/agent-service.d.ts +0 -225
  11. package/dist/runtime/api/agent/agent-service.js +0 -904
  12. package/dist/runtime/api/agent/ai-providers/claude-code-adapter.d.ts +0 -61
  13. package/dist/runtime/api/agent/ai-providers/claude-code-adapter.js +0 -362
  14. package/dist/runtime/api/agent/ai-providers/codex-cli-provider.d.ts +0 -36
  15. package/dist/runtime/api/agent/ai-providers/codex-cli-provider.js +0 -347
  16. package/dist/runtime/api/agent/ai-providers/index.d.ts +0 -9
  17. package/dist/runtime/api/agent/ai-providers/index.js +0 -7
  18. package/dist/runtime/api/agent/ai-providers/types.d.ts +0 -182
  19. package/dist/runtime/api/agent/ai-providers/types.js +0 -5
  20. package/dist/runtime/api/agent/codex-cli-provider.test.d.ts +0 -1
  21. package/dist/runtime/api/agent/codex-cli-provider.test.js +0 -170
  22. package/dist/runtime/api/agent/core-agent-service.d.ts +0 -119
  23. package/dist/runtime/api/agent/core-agent-service.js +0 -267
  24. package/dist/runtime/api/agent/parsers.d.ts +0 -16
  25. package/dist/runtime/api/agent/parsers.js +0 -308
  26. package/dist/runtime/api/agent/prompt-service.d.ts +0 -30
  27. package/dist/runtime/api/agent/prompt-service.js +0 -449
  28. package/dist/runtime/api/agent/prompt-service.test.d.ts +0 -1
  29. package/dist/runtime/api/agent/prompt-service.test.js +0 -230
  30. package/dist/runtime/api/agent/routing-policy.d.ts +0 -171
  31. package/dist/runtime/api/agent/routing-policy.js +0 -196
  32. package/dist/runtime/api/agent/routing-policy.test.d.ts +0 -1
  33. package/dist/runtime/api/agent/routing-policy.test.js +0 -63
  34. package/dist/runtime/api/api/router-helpers.d.ts +0 -32
  35. package/dist/runtime/api/api/router-helpers.js +0 -31
  36. package/dist/runtime/api/api/routers/ai.d.ts +0 -200
  37. package/dist/runtime/api/api/routers/ai.js +0 -396
  38. package/dist/runtime/api/api/routers/executions.d.ts +0 -98
  39. package/dist/runtime/api/api/routers/executions.js +0 -94
  40. package/dist/runtime/api/api/routers/git.d.ts +0 -45
  41. package/dist/runtime/api/api/routers/git.js +0 -35
  42. package/dist/runtime/api/api/routers/provider-config.d.ts +0 -165
  43. package/dist/runtime/api/api/routers/provider-config.js +0 -252
  44. package/dist/runtime/api/api/routers/settings.d.ts +0 -139
  45. package/dist/runtime/api/api/routers/settings.js +0 -113
  46. package/dist/runtime/api/api/routers/tasks.d.ts +0 -141
  47. package/dist/runtime/api/api/routers/tasks.js +0 -238
  48. package/dist/runtime/api/api/routers/workflows.d.ts +0 -275
  49. package/dist/runtime/api/api/routers/workflows.js +0 -311
  50. package/dist/runtime/api/api/routers/worktrees.d.ts +0 -101
  51. package/dist/runtime/api/api/routers/worktrees.js +0 -80
  52. package/dist/runtime/api/api/trpc.d.ts +0 -118
  53. package/dist/runtime/api/api/trpc.js +0 -34
  54. package/dist/runtime/api/index.d.ts +0 -9
  55. package/dist/runtime/api/index.js +0 -117
  56. package/dist/runtime/api/lib/id-generator.d.ts +0 -70
  57. package/dist/runtime/api/lib/id-generator.js +0 -123
  58. package/dist/runtime/api/lib/local-config.d.ts +0 -245
  59. package/dist/runtime/api/lib/local-config.js +0 -288
  60. package/dist/runtime/api/lib/logger.d.ts +0 -11
  61. package/dist/runtime/api/lib/logger.js +0 -188
  62. package/dist/runtime/api/lib/provider-detection.d.ts +0 -59
  63. package/dist/runtime/api/lib/provider-detection.js +0 -244
  64. package/dist/runtime/api/lib/server/agent-service-singleton.d.ts +0 -6
  65. package/dist/runtime/api/lib/server/agent-service-singleton.js +0 -27
  66. package/dist/runtime/api/lib/server/bootstrap.d.ts +0 -38
  67. package/dist/runtime/api/lib/server/bootstrap.js +0 -197
  68. package/dist/runtime/api/lib/server/git-service-singleton.d.ts +0 -6
  69. package/dist/runtime/api/lib/server/git-service-singleton.js +0 -47
  70. package/dist/runtime/api/lib/server/project-root.d.ts +0 -2
  71. package/dist/runtime/api/lib/server/project-root.js +0 -61
  72. package/dist/runtime/api/lib/server/task-service-singleton.d.ts +0 -7
  73. package/dist/runtime/api/lib/server/task-service-singleton.js +0 -58
  74. package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.d.ts +0 -7
  75. package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.js +0 -57
  76. package/dist/runtime/api/lib/trpc/client.d.ts +0 -1
  77. package/dist/runtime/api/lib/trpc/client.js +0 -5
  78. package/dist/runtime/api/lib/trpc/server.d.ts +0 -935
  79. package/dist/runtime/api/lib/trpc/server.js +0 -11
  80. package/dist/runtime/api/lib/trpc/ws-server.d.ts +0 -8
  81. package/dist/runtime/api/lib/trpc/ws-server.js +0 -33
  82. package/dist/runtime/api/persistence/database-service.d.ts +0 -14
  83. package/dist/runtime/api/persistence/database-service.js +0 -74
  84. package/dist/runtime/api/persistence/execution-log-persistence.d.ts +0 -90
  85. package/dist/runtime/api/persistence/execution-log-persistence.js +0 -410
  86. package/dist/runtime/api/persistence/execution-log-persistence.test.d.ts +0 -1
  87. package/dist/runtime/api/persistence/execution-log-persistence.test.js +0 -170
  88. package/dist/runtime/api/router.d.ts +0 -938
  89. package/dist/runtime/api/router.js +0 -34
  90. package/dist/runtime/api/settings-service.d.ts +0 -110
  91. package/dist/runtime/api/settings-service.js +0 -661
  92. package/dist/runtime/api/tasks/file-watcher.d.ts +0 -23
  93. package/dist/runtime/api/tasks/file-watcher.js +0 -88
  94. package/dist/runtime/api/tasks/task-file-parser.d.ts +0 -13
  95. package/dist/runtime/api/tasks/task-file-parser.js +0 -161
  96. package/dist/runtime/api/tasks/task-service.d.ts +0 -36
  97. package/dist/runtime/api/tasks/task-service.js +0 -173
  98. package/dist/runtime/api/types/index.d.ts +0 -186
  99. package/dist/runtime/api/types/index.js +0 -1
  100. package/dist/runtime/api/types/settings.d.ts +0 -94
  101. package/dist/runtime/api/types/settings.js +0 -2
  102. package/dist/runtime/api/types.d.ts +0 -2
  103. package/dist/runtime/api/types.js +0 -1
  104. package/dist/runtime/api/utils/env.d.ts +0 -6
  105. package/dist/runtime/api/utils/env.js +0 -12
  106. package/dist/runtime/api/utils/stripNextEnv.d.ts +0 -7
  107. package/dist/runtime/api/utils/stripNextEnv.js +0 -22
  108. package/dist/runtime/api/utils/title-slug.d.ts +0 -6
  109. package/dist/runtime/api/utils/title-slug.js +0 -77
  110. package/dist/runtime/api/utils/url.d.ts +0 -2
  111. package/dist/runtime/api/utils/url.js +0 -19
  112. package/dist/runtime/api/vcs/git-history-service.d.ts +0 -57
  113. package/dist/runtime/api/vcs/git-history-service.js +0 -228
  114. package/dist/runtime/api/vcs/git-service.d.ts +0 -127
  115. package/dist/runtime/api/vcs/git-service.js +0 -284
  116. package/dist/runtime/api/vcs/worktree-service.d.ts +0 -93
  117. package/dist/runtime/api/vcs/worktree-service.js +0 -506
  118. package/dist/runtime/api/vcs/worktree-service.test.d.ts +0 -1
  119. package/dist/runtime/api/vcs/worktree-service.test.js +0 -20
  120. package/dist/runtime/api/workflows/quality-pipeline.d.ts +0 -58
  121. package/dist/runtime/api/workflows/quality-pipeline.js +0 -400
  122. package/dist/runtime/api/workflows/vibing-orchestrator.d.ts +0 -318
  123. package/dist/runtime/api/workflows/vibing-orchestrator.js +0 -1891
  124. package/dist/runtime/web/.next/BUILD_ID +0 -1
  125. package/dist/runtime/web/.next/app-build-manifest.json +0 -66
  126. package/dist/runtime/web/.next/app-path-routes-manifest.json +0 -8
  127. package/dist/runtime/web/.next/build-manifest.json +0 -33
  128. package/dist/runtime/web/.next/package.json +0 -1
  129. package/dist/runtime/web/.next/prerender-manifest.json +0 -61
  130. package/dist/runtime/web/.next/react-loadable-manifest.json +0 -39
  131. package/dist/runtime/web/.next/required-server-files.json +0 -334
  132. package/dist/runtime/web/.next/routes-manifest.json +0 -70
  133. package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js +0 -1
  134. package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js.nft.json +0 -1
  135. package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route_client-reference-manifest.js +0 -1
  136. package/dist/runtime/web/.next/server/app/_not-found/page.js +0 -2
  137. package/dist/runtime/web/.next/server/app/_not-found/page.js.nft.json +0 -1
  138. package/dist/runtime/web/.next/server/app/_not-found/page_client-reference-manifest.js +0 -1
  139. package/dist/runtime/web/.next/server/app/_not-found.html +0 -7
  140. package/dist/runtime/web/.next/server/app/_not-found.meta +0 -8
  141. package/dist/runtime/web/.next/server/app/_not-found.rsc +0 -22
  142. package/dist/runtime/web/.next/server/app/api/health/route.js +0 -1
  143. package/dist/runtime/web/.next/server/app/api/health/route.js.nft.json +0 -1
  144. package/dist/runtime/web/.next/server/app/api/health/route_client-reference-manifest.js +0 -1
  145. package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js +0 -1
  146. package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js.nft.json +0 -1
  147. package/dist/runtime/web/.next/server/app/api/images/[...path]/route_client-reference-manifest.js +0 -1
  148. package/dist/runtime/web/.next/server/app/api/upload/route.js +0 -1
  149. package/dist/runtime/web/.next/server/app/api/upload/route.js.nft.json +0 -1
  150. package/dist/runtime/web/.next/server/app/api/upload/route_client-reference-manifest.js +0 -1
  151. package/dist/runtime/web/.next/server/app/index.html +0 -7
  152. package/dist/runtime/web/.next/server/app/index.meta +0 -7
  153. package/dist/runtime/web/.next/server/app/index.rsc +0 -27
  154. package/dist/runtime/web/.next/server/app/page.js +0 -147
  155. package/dist/runtime/web/.next/server/app/page.js.nft.json +0 -1
  156. package/dist/runtime/web/.next/server/app/page_client-reference-manifest.js +0 -1
  157. package/dist/runtime/web/.next/server/app-paths-manifest.json +0 -8
  158. package/dist/runtime/web/.next/server/chunks/217.js +0 -1
  159. package/dist/runtime/web/.next/server/chunks/383.js +0 -6
  160. package/dist/runtime/web/.next/server/chunks/458.js +0 -1
  161. package/dist/runtime/web/.next/server/chunks/576.js +0 -18
  162. package/dist/runtime/web/.next/server/chunks/635.js +0 -22
  163. package/dist/runtime/web/.next/server/chunks/761.js +0 -1
  164. package/dist/runtime/web/.next/server/chunks/777.js +0 -3
  165. package/dist/runtime/web/.next/server/chunks/825.js +0 -1
  166. package/dist/runtime/web/.next/server/chunks/838.js +0 -1
  167. package/dist/runtime/web/.next/server/chunks/973.js +0 -15
  168. package/dist/runtime/web/.next/server/functions-config-manifest.json +0 -4
  169. package/dist/runtime/web/.next/server/middleware-build-manifest.js +0 -1
  170. package/dist/runtime/web/.next/server/middleware-manifest.json +0 -6
  171. package/dist/runtime/web/.next/server/middleware-react-loadable-manifest.js +0 -1
  172. package/dist/runtime/web/.next/server/next-font-manifest.js +0 -1
  173. package/dist/runtime/web/.next/server/next-font-manifest.json +0 -1
  174. package/dist/runtime/web/.next/server/pages/404.html +0 -7
  175. package/dist/runtime/web/.next/server/pages/500.html +0 -1
  176. package/dist/runtime/web/.next/server/pages/_app.js +0 -1
  177. package/dist/runtime/web/.next/server/pages/_app.js.nft.json +0 -1
  178. package/dist/runtime/web/.next/server/pages/_document.js +0 -1
  179. package/dist/runtime/web/.next/server/pages/_document.js.nft.json +0 -1
  180. package/dist/runtime/web/.next/server/pages/_error.js +0 -19
  181. package/dist/runtime/web/.next/server/pages/_error.js.nft.json +0 -1
  182. package/dist/runtime/web/.next/server/pages-manifest.json +0 -6
  183. package/dist/runtime/web/.next/server/server-reference-manifest.js +0 -1
  184. package/dist/runtime/web/.next/server/server-reference-manifest.json +0 -1
  185. package/dist/runtime/web/.next/server/webpack-runtime.js +0 -1
  186. package/dist/runtime/web/.next/static/5_15u1WQCxN1_eHZpldCv/_buildManifest.js +0 -1
  187. package/dist/runtime/web/.next/static/5_15u1WQCxN1_eHZpldCv/_ssgManifest.js +0 -1
  188. package/dist/runtime/web/.next/static/chunks/18-15c10d3288afef2e.js +0 -1
  189. package/dist/runtime/web/.next/static/chunks/1c0ca389.537bbe362e3ffbd9.js +0 -3
  190. package/dist/runtime/web/.next/static/chunks/22747d63-ad5da0c19f4cfe41.js +0 -71
  191. package/dist/runtime/web/.next/static/chunks/355.056c2645878a799a.js +0 -1
  192. package/dist/runtime/web/.next/static/chunks/420.a5ccf151c9e2b2f1.js +0 -1
  193. package/dist/runtime/web/.next/static/chunks/439.1be0c6242fd248d5.js +0 -15
  194. package/dist/runtime/web/.next/static/chunks/440.c52e7c0f797e22b2.js +0 -1
  195. package/dist/runtime/web/.next/static/chunks/575-e2478287c27da87b.js +0 -1
  196. package/dist/runtime/web/.next/static/chunks/691.920d88c115087314.js +0 -1
  197. package/dist/runtime/web/.next/static/chunks/765-e838910065b50c3d.js +0 -1
  198. package/dist/runtime/web/.next/static/chunks/823-6f371a6e829adbba.js +0 -63
  199. package/dist/runtime/web/.next/static/chunks/87c73c54-09e1ba5c70e60a51.js +0 -1
  200. package/dist/runtime/web/.next/static/chunks/891cff7f.0f71fc028f87e683.js +0 -1
  201. package/dist/runtime/web/.next/static/chunks/8bb4d8db-3e2aa02b0a2384b9.js +0 -1
  202. package/dist/runtime/web/.next/static/chunks/9af238c7-271a911d4e99ab18.js +0 -1
  203. package/dist/runtime/web/.next/static/chunks/app/.vibeman/assets/images/[...path]/route-751c9265a65409e5.js +0 -1
  204. package/dist/runtime/web/.next/static/chunks/app/_not-found/page-1cb74d1cba27d0ab.js +0 -1
  205. package/dist/runtime/web/.next/static/chunks/app/api/health/route-751c9265a65409e5.js +0 -1
  206. package/dist/runtime/web/.next/static/chunks/app/api/images/[...path]/route-751c9265a65409e5.js +0 -1
  207. package/dist/runtime/web/.next/static/chunks/app/api/upload/route-751c9265a65409e5.js +0 -1
  208. package/dist/runtime/web/.next/static/chunks/app/layout-8435322f09fd0975.js +0 -1
  209. package/dist/runtime/web/.next/static/chunks/app/page-9fe7d75095b4ccec.js +0 -1
  210. package/dist/runtime/web/.next/static/chunks/cac567b0-5b77dd12911823cd.js +0 -1
  211. package/dist/runtime/web/.next/static/chunks/framework-2518f1345b5b2806.js +0 -1
  212. package/dist/runtime/web/.next/static/chunks/main-17665e5e39de9a8a.js +0 -1
  213. package/dist/runtime/web/.next/static/chunks/main-app-c0b0f5ba4f7f9d75.js +0 -1
  214. package/dist/runtime/web/.next/static/chunks/pages/_app-d6f6b3bbc3d81ee1.js +0 -1
  215. package/dist/runtime/web/.next/static/chunks/pages/_error-75a96cf1997cc3b9.js +0 -1
  216. package/dist/runtime/web/.next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  217. package/dist/runtime/web/.next/static/chunks/webpack-c8de37305b4635cf.js +0 -1
  218. package/dist/runtime/web/.next/static/css/08c950681f1a9a92.css +0 -1
  219. package/dist/runtime/web/.next/static/css/2728291c68f99cb1.css +0 -3
  220. package/dist/runtime/web/.next/static/css/521bd69cc298cd1a.css +0 -1
  221. package/dist/runtime/web/.next/static/css/537e22821e101b87.css +0 -1
  222. package/dist/runtime/web/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  223. package/dist/runtime/web/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  224. package/dist/runtime/web/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  225. package/dist/runtime/web/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  226. package/dist/runtime/web/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  227. package/dist/runtime/web/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  228. package/dist/runtime/web/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  229. package/dist/runtime/web/package.json +0 -65
  230. package/dist/runtime/web/server.js +0 -44
  231. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,318 +0,0 @@
1
- import { EventEmitter } from 'events';
2
- import type { VibingExecution, VibingPhase, VibingConfig } from '../types/index.js';
3
- import { TaskService } from '../tasks/task-service.js';
4
- import { AgentService } from '../agent/agent-service.js';
5
- import { WorktreeService } from '../vcs/worktree-service.js';
6
- import { GitService } from '../vcs/git-service.js';
7
- import type { ResolvedProvider } from '../agent/routing-policy.js';
8
- export declare class VibingOrchestrator extends EventEmitter {
9
- private taskService;
10
- private agentService;
11
- private worktreeService;
12
- private config;
13
- private gitService?;
14
- private workflows;
15
- private qualityPipeline;
16
- private workflowDB;
17
- private initialized;
18
- private computeVisibleTimeline;
19
- private buildTimeline;
20
- constructor(taskService: TaskService, agentService: AgentService, worktreeService: WorktreeService, config: VibingConfig, gitService?: GitService | undefined, persistenceDataDir?: string);
21
- /**
22
- * Initialize workflow orchestrator by loading existing workflows
23
- * Call this after construction to load persisted workflows
24
- */
25
- initialize(): Promise<void>;
26
- private normalizeWorkflow;
27
- /**
28
- * Execute a task once (no phase management). Optionally associates with a workflow.
29
- */
30
- executeTask(taskId: string, workflowId?: string): Promise<{
31
- executionId: string;
32
- }>;
33
- stopExecution(executionId: string): Promise<void>;
34
- getExecutionStatus(executionId: string): import("../types/index.js").AgentExecution | null;
35
- getPersistedExecutionLogs(executionId: string): Promise<{
36
- metadata: any;
37
- logs: any[];
38
- }>;
39
- getExecutionLogs(executionId: string): string[];
40
- getTaskExecutions(taskId: string): import("../types/index.js").AgentExecution[];
41
- getExecutionStats(): {
42
- total: number;
43
- pending: number;
44
- running: number;
45
- completed: number;
46
- failed: number;
47
- cancelled: number;
48
- worktrees: {
49
- active: number;
50
- total: number;
51
- enabled: boolean;
52
- };
53
- };
54
- listAllExecutions(): Promise<any[]>;
55
- improveTaskContent(taskId: string, data: {
56
- title: string;
57
- type: string;
58
- priority: string;
59
- content: string;
60
- }, options?: {
61
- executionId?: string;
62
- workflowId?: string;
63
- }): Promise<{
64
- type: string;
65
- priority: string;
66
- content: string;
67
- title?: string;
68
- executionId: string;
69
- selectedModel?: string;
70
- }>;
71
- aiReviewCode(taskId: string, reviewContext?: string, options?: {
72
- workflowId?: string;
73
- overrides?: Partial<ResolvedProvider>;
74
- executionId?: string;
75
- }): Promise<{
76
- executionId: string;
77
- reviewSummary: string;
78
- recommendations: string[];
79
- qualityScore: number;
80
- }>;
81
- aiMerge(taskId: string, options?: {
82
- baseBranch?: string;
83
- workflowId?: string;
84
- provider?: string;
85
- model?: string;
86
- executionId?: string;
87
- }): Promise<{
88
- executionId: string;
89
- }>;
90
- listWorktrees(): Promise<(import("../types/index.js").WorktreeInfo & {
91
- isConnectedToTask: boolean;
92
- })[]>;
93
- syncWorktreeState(): Promise<void>;
94
- getWorktreeInfo(taskId: string): any;
95
- createWorktree(taskId: string): Promise<any>;
96
- deleteWorktree(taskId: string, force?: boolean): Promise<void>;
97
- cleanupWorktree(params: {
98
- taskId?: string;
99
- worktreePath?: string;
100
- branchName?: string;
101
- isConnectedToTask: boolean;
102
- force?: boolean;
103
- }): Promise<void>;
104
- createPullRequest(taskId: string, baseBranch?: string): Promise<{
105
- success: boolean;
106
- pullRequest?: any;
107
- error?: string;
108
- }>;
109
- openInEditor(worktreePath: string): Promise<{
110
- readonly success: true;
111
- }>;
112
- openInTerminal(worktreePath: string): Promise<{
113
- readonly success: true;
114
- }>;
115
- checkWorktreeStatus(workflowId: string): Promise<{
116
- clean: boolean;
117
- uncommittedFiles: string[];
118
- worktreePath?: string;
119
- }>;
120
- approveAndContinueReview(workflowId: string): Promise<void>;
121
- /**
122
- * Mark workflow as completed by human decision.
123
- * Does not perform merge/cleanup; simply finalizes the workflow and emits completion.
124
- */
125
- markWorkflowCompleted(workflowId: string): Promise<void>;
126
- ensureInitialized(): Promise<void>;
127
- /**
128
- * Start AI-assisted workflow for a task
129
- */
130
- startWorkflow(taskId: string, customConfig?: Partial<VibingConfig>): Promise<string>;
131
- /**
132
- * Pause a workflow execution
133
- */
134
- pauseWorkflow(workflowId: string): Promise<void>;
135
- /**
136
- * Reset a workflow by deleting its record and optionally its worktree.
137
- */
138
- resetWorkflow(workflowId: string, options?: {
139
- deleteWorktree?: boolean;
140
- force?: boolean;
141
- }): Promise<void>;
142
- /**
143
- * Approve workflow changes and proceed to merge
144
- */
145
- approveWorkflow(workflowId: string): Promise<void>;
146
- /**
147
- * Reject workflow and request changes
148
- */
149
- rejectWorkflow(workflowId: string, feedback: string): Promise<void>;
150
- /**
151
- * Get workflow status
152
- */
153
- getWorkflow(workflowId: string): VibingExecution | null;
154
- /**
155
- * Get all workflows for a task
156
- */
157
- getTaskWorkflows(taskId: string): VibingExecution[];
158
- /**
159
- * Get latest workflow for a task, preferring most recently updated.
160
- * Falls back to newest startTime when lastUpdatedAt is unavailable.
161
- */
162
- getLatestWorkflowByTask(taskId: string): VibingExecution | null;
163
- /**
164
- * Transition workflow to new phase
165
- */
166
- private transitionToPhase;
167
- /**
168
- * Save workflow to persistence layer
169
- */
170
- private saveWorkflow;
171
- /**
172
- * Execute implementation phase with AI coding
173
- */
174
- private executeImplementation;
175
- /**
176
- * Public: re-run implementation phase on demand
177
- * Forces phase to 'implementing' and executes implementation again.
178
- */
179
- rerunImplementation(workflowId: string, feedback?: string, providerOverride?: {
180
- provider?: string;
181
- model?: string;
182
- }): Promise<void>;
183
- /**
184
- * Get previous phase, preferring the phase where failure occurred
185
- */
186
- getPreviousPhase(workflowId: string): VibingPhase | null;
187
- /**
188
- * Rerun the phase that led to failure (or lastPhase if available)
189
- */
190
- rerunPreviousPhase(workflowId: string): Promise<void>;
191
- /**
192
- * Rerun a specific phase programmatically
193
- */
194
- rerunPhase(workflowId: string, phase: VibingPhase): Promise<void>;
195
- /**
196
- * Reset workflow state from a given phase onward (inclusive).
197
- * Clears timeline entries, execution IDs, attempts, and phase results for later phases
198
- * so that a rerun behaves like a fresh run from that step.
199
- */
200
- private resetFromPhase;
201
- /**
202
- * Perform AI code review of implemented changes
203
- */
204
- private performAICodeReview;
205
- /**
206
- * Execute AI review as a dedicated phase
207
- */
208
- private executeAiReviewPhase;
209
- private executeAwaitingReview;
210
- /**
211
- * Execute validation phase with quality checks
212
- */
213
- private executeValidation;
214
- /**
215
- * Public: run validation phase on demand
216
- */
217
- runValidation(workflowId: string): Promise<void>;
218
- /**
219
- * Execute merge phase
220
- */
221
- private executeMerge;
222
- private updateCleanupStatus;
223
- /**
224
- * Public: run merge phase on demand
225
- * This will attempt merge regardless of current phase.
226
- */
227
- runMerge(workflowId: string, options?: {
228
- provider?: string;
229
- model?: string;
230
- }): Promise<void>;
231
- /**
232
- * Execute cleanup phase: remove worktree/branch and finalize workflow
233
- */
234
- private executeCleanup;
235
- /**
236
- * Public: run cleanup phase on demand
237
- */
238
- runCleanup(workflowId: string): Promise<void>;
239
- /**
240
- * Public: manually skip to next phase
241
- */
242
- skipToNextPhase(workflowId: string): Promise<void>;
243
- /**
244
- * Wait for an execution to complete
245
- */
246
- private waitForExecution;
247
- /**
248
- * Wait for the AgentService to emit an executionCreated event for the given task/workflow
249
- */
250
- private waitForExecutionCreated;
251
- /**
252
- * Get workflow statistics
253
- */
254
- getWorkflowStats(): {
255
- total: number;
256
- byPhase: Record<VibingPhase, number>;
257
- active: number;
258
- completed: number;
259
- failed: number;
260
- };
261
- /**
262
- * Get workflow persistence information
263
- */
264
- getWorkflowPersistenceInfo(): {
265
- filePath: string;
266
- workflowCount: number;
267
- };
268
- /**
269
- * Force save all workflows to disk
270
- */
271
- saveAllWorkflows(): Promise<void>;
272
- /**
273
- * Reload workflows from disk
274
- */
275
- reloadWorkflows(): Promise<void>;
276
- /**
277
- * Remove workflows by task ID
278
- */
279
- removeWorkflowsByTask(taskId: string): Promise<number>;
280
- /**
281
- * Get comprehensive workflow statistics
282
- */
283
- getDetailedStats(): Promise<{
284
- memoryStats: {
285
- total: number;
286
- byPhase: Record<VibingPhase, number>;
287
- active: number;
288
- completed: number;
289
- failed: number;
290
- };
291
- persistenceStats: {
292
- total: number;
293
- byPhase: Record<string, number>;
294
- oldestWorkflow?: string;
295
- newestWorkflow?: string;
296
- };
297
- persistencePath: string;
298
- }>;
299
- /**
300
- * Update workflow options without changing phase
301
- */
302
- updateWorkflowOptions(workflowId: string, config: Partial<VibingConfig>): Promise<void>;
303
- /**
304
- * Continue workflow execution from current state
305
- */
306
- continueWorkflow(workflowId: string): Promise<void>;
307
- private computeNextActionPhase;
308
- private requireWorkflow;
309
- private getAIReviewThreshold;
310
- private assertPhase;
311
- private createNewWorkflow;
312
- private maybeRetryImplementation;
313
- private handlePhaseFailure;
314
- /**
315
- * Get the agent service instance
316
- */
317
- getAgentService(): AgentService;
318
- }