vibeman 0.0.2 → 0.0.5
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.
- package/dist/index.js +3 -3
- package/dist/runtime/api/.tsbuildinfo +1 -1
- package/dist/runtime/api/agent/agent-service.d.ts +11 -6
- package/dist/runtime/api/agent/agent-service.js +97 -29
- package/dist/runtime/api/agent/ai-providers/amp-cli-provider.d.ts +38 -0
- package/dist/runtime/api/agent/ai-providers/amp-cli-provider.js +268 -0
- package/dist/runtime/api/agent/ai-providers/codex-cli-provider.d.ts +2 -0
- package/dist/runtime/api/agent/ai-providers/codex-cli-provider.js +92 -32
- package/dist/runtime/api/agent/ai-providers/gemini-cli-provider.d.ts +24 -0
- package/dist/runtime/api/agent/ai-providers/gemini-cli-provider.js +291 -0
- package/dist/runtime/api/agent/ai-providers/index.d.ts +3 -3
- package/dist/runtime/api/agent/ai-providers/index.js +3 -1
- package/dist/runtime/api/agent/ai-providers/types.d.ts +5 -2
- package/dist/runtime/api/agent/amp-cli-provider.test.js +99 -0
- package/dist/runtime/api/agent/codex-cli-provider.test.js +54 -7
- package/dist/runtime/api/agent/prompt-service.js +108 -105
- package/dist/runtime/api/agent/prompt-service.test.js +35 -0
- package/dist/runtime/api/agent/routing-policy.d.ts +13 -30
- package/dist/runtime/api/agent/routing-policy.js +82 -132
- package/dist/runtime/api/agent/routing-policy.test.js +63 -0
- package/dist/runtime/api/api/routers/ai.d.ts +15 -3
- package/dist/runtime/api/api/routers/ai.js +7 -6
- package/dist/runtime/api/api/routers/executions.d.ts +3 -8
- package/dist/runtime/api/api/routers/executions.js +2 -2
- package/dist/runtime/api/api/routers/provider-config.d.ts +34 -0
- package/dist/runtime/api/api/routers/settings.d.ts +19 -0
- package/dist/runtime/api/api/routers/settings.js +16 -0
- package/dist/runtime/api/api/routers/tasks.d.ts +10 -10
- package/dist/runtime/api/api/routers/workflows.d.ts +20 -12
- package/dist/runtime/api/api/routers/workflows.js +2 -1
- package/dist/runtime/api/api/routers/worktrees.d.ts +2 -2
- package/dist/runtime/api/api/trpc.d.ts +18 -18
- package/dist/runtime/api/lib/local-config.d.ts +94 -4
- package/dist/runtime/api/lib/local-config.js +16 -0
- package/dist/runtime/api/lib/provider-detection.d.ts +2 -0
- package/dist/runtime/api/lib/provider-detection.js +83 -1
- package/dist/runtime/api/lib/server/vibeman-info.d.ts +5 -0
- package/dist/runtime/api/lib/server/vibeman-info.js +85 -0
- package/dist/runtime/api/lib/trpc/server.d.ts +85 -35
- package/dist/runtime/api/persistence/execution-log-persistence.d.ts +1 -1
- package/dist/runtime/api/persistence/execution-log-persistence.js +19 -3
- package/dist/runtime/api/router.d.ts +85 -35
- package/dist/runtime/api/settings-service.js +70 -5
- package/dist/runtime/api/tasks/task-file-parser.d.ts +1 -0
- package/dist/runtime/api/tasks/task-file-parser.js +20 -1
- package/dist/runtime/api/tasks/task-updater.d.ts +62 -0
- package/dist/runtime/api/tasks/task-updater.js +260 -0
- package/dist/runtime/api/tasks/task-updater.test.d.ts +1 -0
- package/dist/runtime/api/tasks/task-updater.test.js +303 -0
- package/dist/runtime/api/types/index.d.ts +9 -2
- package/dist/runtime/api/types/settings.d.ts +29 -5
- package/dist/runtime/api/vcs/git-service.d.ts +9 -0
- package/dist/runtime/api/vcs/git-service.js +23 -0
- package/dist/runtime/api/vcs/worktree-service.d.ts +1 -1
- package/dist/runtime/api/vcs/worktree-service.js +22 -10
- package/dist/runtime/api/workflows/quality-pipeline.js +2 -1
- package/dist/runtime/api/workflows/vibing-orchestrator.d.ts +93 -5
- package/dist/runtime/api/workflows/vibing-orchestrator.js +806 -204
- package/dist/runtime/api/workflows/workflow-effects.d.ts +45 -0
- package/dist/runtime/api/workflows/workflow-effects.js +49 -0
- package/dist/runtime/api/workflows/workflow-reconciler.d.ts +65 -0
- package/dist/runtime/api/workflows/workflow-reconciler.js +226 -0
- package/dist/runtime/api/workflows/workflow-reducer.d.ts +26 -0
- package/dist/runtime/api/workflows/workflow-reducer.js +288 -0
- package/dist/runtime/api/workflows/workflow-reducer.test.d.ts +1 -0
- package/dist/runtime/api/workflows/workflow-reducer.test.js +247 -0
- package/dist/runtime/api/workflows/workflow-schema.d.ts +546 -0
- package/dist/runtime/api/workflows/workflow-schema.js +256 -0
- package/dist/runtime/web/.next/BUILD_ID +1 -1
- package/dist/runtime/web/.next/app-build-manifest.json +51 -44
- package/dist/runtime/web/.next/app-path-routes-manifest.json +2 -1
- package/dist/runtime/web/.next/build-manifest.json +14 -14
- package/dist/runtime/web/.next/prerender-manifest.json +10 -10
- package/dist/runtime/web/.next/react-loadable-manifest.json +2 -33
- package/dist/runtime/web/.next/required-server-files.json +5 -5
- package/dist/runtime/web/.next/routes-manifest.json +8 -0
- package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js +1 -0
- package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js.nft.json +1 -0
- package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route_client-reference-manifest.js +1 -0
- package/dist/runtime/web/.next/server/app/_not-found/page.js +2 -2
- package/dist/runtime/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/runtime/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/runtime/web/.next/server/app/_not-found.html +2 -2
- package/dist/runtime/web/.next/server/app/_not-found.rsc +12 -12
- package/dist/runtime/web/.next/server/app/api/health/route.js +1 -1
- package/dist/runtime/web/.next/server/app/api/health/route.js.nft.json +1 -1
- package/dist/runtime/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js +1 -1
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js.nft.json +1 -1
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route_client-reference-manifest.js +1 -1
- package/dist/runtime/web/.next/server/app/api/upload/route.js +1 -1
- package/dist/runtime/web/.next/server/app/api/upload/route.js.nft.json +1 -1
- package/dist/runtime/web/.next/server/app/api/upload/route_client-reference-manifest.js +1 -1
- package/dist/runtime/web/.next/server/app/index.html +2 -2
- package/dist/runtime/web/.next/server/app/index.rsc +15 -15
- package/dist/runtime/web/.next/server/app/page.js +27 -62
- package/dist/runtime/web/.next/server/app/page.js.nft.json +1 -1
- package/dist/runtime/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/runtime/web/.next/server/app-paths-manifest.json +2 -1
- package/dist/runtime/web/.next/server/chunks/210.js +1 -0
- package/dist/runtime/web/.next/server/chunks/291.js +18 -0
- package/dist/runtime/web/.next/server/chunks/552.js +22 -0
- package/dist/runtime/web/.next/server/chunks/780.js +1 -0
- package/dist/runtime/web/.next/server/chunks/905.js +6 -0
- package/dist/runtime/web/.next/server/chunks/98.js +1 -0
- package/dist/runtime/web/.next/server/middleware-build-manifest.js +1 -1
- package/dist/runtime/web/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/dist/runtime/web/.next/server/pages/404.html +2 -2
- package/dist/runtime/web/.next/server/pages/500.html +1 -1
- package/dist/runtime/web/.next/server/pages/_app.js +1 -1
- package/dist/runtime/web/.next/server/pages/_app.js.nft.json +1 -1
- package/dist/runtime/web/.next/server/pages/_document.js +1 -1
- package/dist/runtime/web/.next/server/pages/_document.js.nft.json +1 -1
- package/dist/runtime/web/.next/server/pages/_error.js +9 -9
- package/dist/runtime/web/.next/server/pages/_error.js.nft.json +1 -1
- package/dist/runtime/web/.next/server/pages-manifest.json +1 -1
- package/dist/runtime/web/.next/server/server-reference-manifest.json +1 -1
- package/dist/runtime/web/.next/server/webpack-runtime.js +1 -1
- package/dist/runtime/web/.next/static/LJFZk_8tvKFN_Ee4HqUuM/_buildManifest.js +1 -0
- package/dist/runtime/web/.next/static/chunks/05c91ade-7d09b2b280adffd1.js +1 -0
- package/dist/runtime/web/.next/static/chunks/201-51bef3fa8c832e2e.js +1 -0
- package/dist/runtime/web/.next/static/chunks/524-89747ed9b0294f8a.js +1 -0
- package/dist/runtime/web/.next/static/chunks/554-8bec6e9cca6acc67.js +1 -0
- package/dist/runtime/web/.next/static/chunks/764.86e9503a69d45a85.js +1 -0
- package/dist/runtime/web/.next/static/chunks/{87c73c54-09e1ba5c70e60a51.js → 7ab4dc20-239138e0ae7af24a.js} +1 -1
- package/dist/runtime/web/.next/static/chunks/905-342391e3d3a3678f.js +20 -0
- package/dist/runtime/web/.next/static/chunks/a8a5ce16-4edea7df2d9b544a.js +79 -0
- package/dist/runtime/web/.next/static/chunks/{8bb4d8db-3e2aa02b0a2384b9.js → ad74d572-4c1b162e2c15acaa.js} +1 -1
- package/dist/runtime/web/.next/static/chunks/app/.vibeman/assets/images/[...path]/route-7b752a8641f96c1f.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/_not-found/page-34e66b251c2b5044.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/api/health/route-7b752a8641f96c1f.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/api/images/[...path]/route-7b752a8641f96c1f.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/api/upload/route-7b752a8641f96c1f.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/layout-df9ac93cb02b2385.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/page-6610743f7de5f92a.js +1 -0
- package/dist/runtime/web/.next/static/chunks/c25e0690-e9b798b8de667da1.js +1 -0
- package/dist/runtime/web/.next/static/chunks/framework-57157ec4d37f64aa.js +1 -0
- package/dist/runtime/web/.next/static/chunks/main-app-156cc0c60371bd78.js +1 -0
- package/dist/runtime/web/.next/static/chunks/main-df25d367c47b1fec.js +1 -0
- package/dist/runtime/web/.next/static/chunks/pages/_app-9f629a5e1131d19f.js +1 -0
- package/dist/runtime/web/.next/static/chunks/pages/_error-9238238274c7efcd.js +1 -0
- package/dist/runtime/web/.next/static/chunks/webpack-cd50e39b423d1808.js +1 -0
- package/dist/runtime/web/.next/static/css/4fbf378a264bd4ea.css +1 -0
- package/dist/runtime/web/package.json +8 -8
- package/dist/runtime/web/server.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -37
- package/dist/runtime/api/lib/image-paste-drop-extension.d.ts +0 -26
- package/dist/runtime/api/lib/image-paste-drop-extension.js +0 -125
- package/dist/runtime/api/lib/markdown-utils.d.ts +0 -8
- package/dist/runtime/api/lib/markdown-utils.js +0 -282
- package/dist/runtime/api/lib/markdown-utils.test.js +0 -348
- package/dist/runtime/api/lib/tiptap-utils.clamp-selection.test.js +0 -27
- package/dist/runtime/api/lib/tiptap-utils.d.ts +0 -130
- package/dist/runtime/api/lib/tiptap-utils.js +0 -327
- package/dist/runtime/api/lib/trpc/client.d.ts +0 -1
- package/dist/runtime/api/lib/trpc/client.js +0 -5
- package/dist/runtime/web/.next/server/chunks/217.js +0 -1
- package/dist/runtime/web/.next/server/chunks/383.js +0 -6
- package/dist/runtime/web/.next/server/chunks/458.js +0 -1
- package/dist/runtime/web/.next/server/chunks/576.js +0 -18
- package/dist/runtime/web/.next/server/chunks/635.js +0 -22
- package/dist/runtime/web/.next/server/chunks/761.js +0 -1
- package/dist/runtime/web/.next/server/chunks/777.js +0 -3
- package/dist/runtime/web/.next/server/chunks/825.js +0 -1
- package/dist/runtime/web/.next/server/chunks/838.js +0 -1
- package/dist/runtime/web/.next/server/chunks/973.js +0 -15
- package/dist/runtime/web/.next/static/chunks/18-15c10d3288afef2e.js +0 -1
- package/dist/runtime/web/.next/static/chunks/1c0ca389.537bbe362e3ffbd9.js +0 -3
- package/dist/runtime/web/.next/static/chunks/22747d63-ad5da0c19f4cfe41.js +0 -71
- package/dist/runtime/web/.next/static/chunks/277-0142a939f08738c3.js +0 -63
- package/dist/runtime/web/.next/static/chunks/355.056c2645878a799a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/420.a5ccf151c9e2b2f1.js +0 -1
- package/dist/runtime/web/.next/static/chunks/439.1be0c6242fd248d5.js +0 -15
- package/dist/runtime/web/.next/static/chunks/440.c52e7c0f797e22b2.js +0 -1
- package/dist/runtime/web/.next/static/chunks/575-e2478287c27da87b.js +0 -1
- package/dist/runtime/web/.next/static/chunks/691.920d88c115087314.js +0 -1
- package/dist/runtime/web/.next/static/chunks/765-e838910065b50c3d.js +0 -1
- package/dist/runtime/web/.next/static/chunks/891cff7f.0f71fc028f87e683.js +0 -1
- package/dist/runtime/web/.next/static/chunks/9af238c7-271a911d4e99ab18.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/_not-found/page-1cb74d1cba27d0ab.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/api/health/route-105a61ae865ba536.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/api/images/[...path]/route-105a61ae865ba536.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/api/upload/route-105a61ae865ba536.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/layout-8435322f09fd0975.js +0 -1
- package/dist/runtime/web/.next/static/chunks/app/page-8c3ba579efc6f918.js +0 -1
- package/dist/runtime/web/.next/static/chunks/cac567b0-5b77dd12911823cd.js +0 -1
- package/dist/runtime/web/.next/static/chunks/framework-2518f1345b5b2806.js +0 -1
- package/dist/runtime/web/.next/static/chunks/main-17665e5e39de9a8a.js +0 -1
- package/dist/runtime/web/.next/static/chunks/main-app-c0b0f5ba4f7f9d75.js +0 -1
- package/dist/runtime/web/.next/static/chunks/pages/_app-d6f6b3bbc3d81ee1.js +0 -1
- package/dist/runtime/web/.next/static/chunks/pages/_error-75a96cf1997cc3b9.js +0 -1
- package/dist/runtime/web/.next/static/chunks/webpack-c8de37305b4635cf.js +0 -1
- package/dist/runtime/web/.next/static/css/08c950681f1a9a92.css +0 -1
- package/dist/runtime/web/.next/static/mRpNgPfbYR_0wrODzlg_4/_buildManifest.js +0 -1
- /package/dist/runtime/api/{lib/markdown-utils.test.d.ts → agent/amp-cli-provider.test.d.ts} +0 -0
- /package/dist/runtime/api/{lib/tiptap-utils.clamp-selection.test.d.ts → agent/routing-policy.test.d.ts} +0 -0
- /package/dist/runtime/web/.next/static/{mRpNgPfbYR_0wrODzlg_4 → LJFZk_8tvKFN_Ee4HqUuM}/_ssgManifest.js +0 -0
|
@@ -5,6 +5,9 @@ import { AgentService } from '../agent/agent-service.js';
|
|
|
5
5
|
import { WorktreeService } from '../vcs/worktree-service.js';
|
|
6
6
|
import { GitService } from '../vcs/git-service.js';
|
|
7
7
|
import type { ResolvedProvider } from '../agent/routing-policy.js';
|
|
8
|
+
import type { WorkflowEvent } from './workflow-schema.js';
|
|
9
|
+
import { computeNextAction } from './workflow-reducer.js';
|
|
10
|
+
import { type ReconcileAction } from './workflow-reconciler.js';
|
|
8
11
|
export declare class VibingOrchestrator extends EventEmitter {
|
|
9
12
|
private taskService;
|
|
10
13
|
private agentService;
|
|
@@ -14,7 +17,13 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
14
17
|
private workflows;
|
|
15
18
|
private qualityPipeline;
|
|
16
19
|
private workflowDB;
|
|
20
|
+
private taskUpdater;
|
|
17
21
|
private initialized;
|
|
22
|
+
private activeImprovements;
|
|
23
|
+
private taskImprovementExecutions;
|
|
24
|
+
private reconciler;
|
|
25
|
+
private heartbeatTracker;
|
|
26
|
+
private idempotencyGuard;
|
|
18
27
|
private computeVisibleTimeline;
|
|
19
28
|
private buildTimeline;
|
|
20
29
|
constructor(taskService: TaskService, agentService: AgentService, worktreeService: WorktreeService, config: VibingConfig, gitService?: GitService | undefined, persistenceDataDir?: string);
|
|
@@ -23,7 +32,53 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
23
32
|
* Call this after construction to load persisted workflows
|
|
24
33
|
*/
|
|
25
34
|
initialize(): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Shutdown the orchestrator and cleanup resources
|
|
37
|
+
*/
|
|
38
|
+
shutdown(): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Get workflow snapshots for reconciler
|
|
41
|
+
*/
|
|
42
|
+
private getWorkflowSnapshots;
|
|
43
|
+
/**
|
|
44
|
+
* Handle stuck workflow detected by reconciler
|
|
45
|
+
*/
|
|
46
|
+
private handleStuckWorkflow;
|
|
47
|
+
/**
|
|
48
|
+
* Record heartbeat for active workflow execution
|
|
49
|
+
*/
|
|
50
|
+
recordHeartbeat(workflowId: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* Check if reconciler is running
|
|
53
|
+
*/
|
|
54
|
+
isReconcilerRunning(): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Get reconcile history for debugging
|
|
57
|
+
*/
|
|
58
|
+
getReconcileHistory(): ReconcileAction[];
|
|
26
59
|
private normalizeWorkflow;
|
|
60
|
+
/**
|
|
61
|
+
* Convert VibingExecution to WorkflowState for the reducer
|
|
62
|
+
*/
|
|
63
|
+
private toWorkflowState;
|
|
64
|
+
/**
|
|
65
|
+
* Apply WorkflowState changes back to VibingExecution (for backward compatibility)
|
|
66
|
+
*/
|
|
67
|
+
private applyStateToExecution;
|
|
68
|
+
/**
|
|
69
|
+
* Create an EffectContext that binds orchestrator methods
|
|
70
|
+
*/
|
|
71
|
+
private createEffectContext;
|
|
72
|
+
/**
|
|
73
|
+
* Dispatch an event to the workflow state machine (NEW API)
|
|
74
|
+
* This is the new way to trigger state transitions.
|
|
75
|
+
* Uses idempotency guard to prevent duplicate event processing.
|
|
76
|
+
*/
|
|
77
|
+
dispatch(workflowId: string, event: WorkflowEvent): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Get the next recommended action for a workflow (uses new state machine)
|
|
80
|
+
*/
|
|
81
|
+
getNextAction(workflowId: string): ReturnType<typeof computeNextAction> | null;
|
|
27
82
|
/**
|
|
28
83
|
* Execute a task once (no phase management). Optionally associates with a workflow.
|
|
29
84
|
*/
|
|
@@ -52,6 +107,16 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
52
107
|
};
|
|
53
108
|
};
|
|
54
109
|
listAllExecutions(): Promise<any[]>;
|
|
110
|
+
startTaskImprovement(taskId: string, data: {
|
|
111
|
+
title: string;
|
|
112
|
+
type: string;
|
|
113
|
+
priority: string;
|
|
114
|
+
content: string;
|
|
115
|
+
}, options?: {
|
|
116
|
+
executionId?: string;
|
|
117
|
+
}): Promise<{
|
|
118
|
+
readonly executionId: string;
|
|
119
|
+
}>;
|
|
55
120
|
improveTaskContent(taskId: string, data: {
|
|
56
121
|
title: string;
|
|
57
122
|
type: string;
|
|
@@ -68,6 +133,7 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
68
133
|
executionId: string;
|
|
69
134
|
selectedModel?: string;
|
|
70
135
|
}>;
|
|
136
|
+
private runTaskImprovementPipeline;
|
|
71
137
|
aiReviewCode(taskId: string, reviewContext?: string, options?: {
|
|
72
138
|
workflowId?: string;
|
|
73
139
|
overrides?: Partial<ResolvedProvider>;
|
|
@@ -147,6 +213,10 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
147
213
|
* Reject workflow and request changes
|
|
148
214
|
*/
|
|
149
215
|
rejectWorkflow(workflowId: string, feedback: string): Promise<void>;
|
|
216
|
+
/**
|
|
217
|
+
* Helper to close a timeline item by phase
|
|
218
|
+
*/
|
|
219
|
+
private closeTimelineItem;
|
|
150
220
|
/**
|
|
151
221
|
* Get workflow status
|
|
152
222
|
*/
|
|
@@ -161,9 +231,18 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
161
231
|
*/
|
|
162
232
|
getLatestWorkflowByTask(taskId: string): VibingExecution | null;
|
|
163
233
|
/**
|
|
164
|
-
*
|
|
234
|
+
* Update UI phase with proper tracking of lastPhase, phaseHistory, and metrics.
|
|
235
|
+
* This is for UI-only phases that don't correspond to FSM states.
|
|
236
|
+
*/
|
|
237
|
+
private updateUIPhase;
|
|
238
|
+
/**
|
|
239
|
+
* Update task file when workflow becomes ready for review
|
|
165
240
|
*/
|
|
166
|
-
private
|
|
241
|
+
private updateTaskForReviewReadiness;
|
|
242
|
+
/**
|
|
243
|
+
* Extract context information for task updates
|
|
244
|
+
*/
|
|
245
|
+
private extractTaskUpdateContext;
|
|
167
246
|
/**
|
|
168
247
|
* Save workflow to persistence layer
|
|
169
248
|
*/
|
|
@@ -174,7 +253,7 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
174
253
|
private executeImplementation;
|
|
175
254
|
/**
|
|
176
255
|
* Public: re-run implementation phase on demand
|
|
177
|
-
*
|
|
256
|
+
* Uses dispatch(RETRY) to transition FSM and trigger implementation via effect.
|
|
178
257
|
*/
|
|
179
258
|
rerunImplementation(workflowId: string, feedback?: string, providerOverride?: {
|
|
180
259
|
provider?: string;
|
|
@@ -204,11 +283,14 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
204
283
|
private performAICodeReview;
|
|
205
284
|
/**
|
|
206
285
|
* Execute AI review as a dedicated phase
|
|
286
|
+
* Note: 'ai-reviewing' is a UI-only phase for timeline display, not an FSM phase.
|
|
287
|
+
* FSM remains in 'approved' during AI review.
|
|
207
288
|
*/
|
|
208
289
|
private executeAiReviewPhase;
|
|
209
290
|
private executeAwaitingReview;
|
|
210
291
|
/**
|
|
211
292
|
* Execute validation phase with quality checks
|
|
293
|
+
* Note: FSM has already transitioned to 'validating' via IMPL_SUCCESS event
|
|
212
294
|
*/
|
|
213
295
|
private executeValidation;
|
|
214
296
|
/**
|
|
@@ -217,9 +299,13 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
217
299
|
runValidation(workflowId: string): Promise<void>;
|
|
218
300
|
/**
|
|
219
301
|
* Execute merge phase
|
|
302
|
+
* Note: FSM has already transitioned to 'merging' via APPROVE event
|
|
220
303
|
*/
|
|
221
304
|
private executeMerge;
|
|
222
|
-
|
|
305
|
+
/**
|
|
306
|
+
* Verify that a merge actually succeeded by checking git state
|
|
307
|
+
*/
|
|
308
|
+
private verifyMergeSuccess;
|
|
223
309
|
/**
|
|
224
310
|
* Public: run merge phase on demand
|
|
225
311
|
* This will attempt merge regardless of current phase.
|
|
@@ -230,6 +316,7 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
230
316
|
}): Promise<void>;
|
|
231
317
|
/**
|
|
232
318
|
* Execute cleanup phase: remove worktree/branch and finalize workflow
|
|
319
|
+
* Note: FSM has already transitioned to 'done' via MERGE_SUCCESS event
|
|
233
320
|
*/
|
|
234
321
|
private executeCleanup;
|
|
235
322
|
/**
|
|
@@ -302,15 +389,16 @@ export declare class VibingOrchestrator extends EventEmitter {
|
|
|
302
389
|
updateWorkflowOptions(workflowId: string, config: Partial<VibingConfig>): Promise<void>;
|
|
303
390
|
/**
|
|
304
391
|
* Continue workflow execution from current state
|
|
392
|
+
* Uses the new state machine to determine the next action
|
|
305
393
|
*/
|
|
306
394
|
continueWorkflow(workflowId: string): Promise<void>;
|
|
307
|
-
private computeNextActionPhase;
|
|
308
395
|
private requireWorkflow;
|
|
309
396
|
private getAIReviewThreshold;
|
|
310
397
|
private assertPhase;
|
|
311
398
|
private createNewWorkflow;
|
|
312
399
|
private maybeRetryImplementation;
|
|
313
400
|
private handlePhaseFailure;
|
|
401
|
+
private getFailEventForPhase;
|
|
314
402
|
/**
|
|
315
403
|
* Get the agent service instance
|
|
316
404
|
*/
|