vibeman 0.0.0 → 0.0.1
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/README.md +12 -0
- package/dist/index.js +116 -0
- package/dist/runtime/api/.tsbuildinfo +1 -0
- package/dist/runtime/api/agent/agent-service.d.ts +226 -0
- package/dist/runtime/api/agent/agent-service.js +901 -0
- package/dist/runtime/api/agent/ai-providers/claude-code-adapter.d.ts +61 -0
- package/dist/runtime/api/agent/ai-providers/claude-code-adapter.js +373 -0
- package/dist/runtime/api/agent/ai-providers/codex-cli-provider.d.ts +34 -0
- package/dist/runtime/api/agent/ai-providers/codex-cli-provider.js +281 -0
- package/dist/runtime/api/agent/ai-providers/index.d.ts +9 -0
- package/dist/runtime/api/agent/ai-providers/index.js +7 -0
- package/dist/runtime/api/agent/ai-providers/types.d.ts +180 -0
- package/dist/runtime/api/agent/ai-providers/types.js +5 -0
- package/dist/runtime/api/agent/codex-cli-provider.test.d.ts +1 -0
- package/dist/runtime/api/agent/codex-cli-provider.test.js +88 -0
- package/dist/runtime/api/agent/core-agent-service.d.ts +119 -0
- package/dist/runtime/api/agent/core-agent-service.js +267 -0
- package/dist/runtime/api/agent/parsers.d.ts +15 -0
- package/dist/runtime/api/agent/parsers.js +241 -0
- package/dist/runtime/api/agent/prompt-service.d.ts +17 -0
- package/dist/runtime/api/agent/prompt-service.js +340 -0
- package/dist/runtime/api/agent/routing-policy.d.ts +188 -0
- package/dist/runtime/api/agent/routing-policy.js +246 -0
- package/dist/runtime/api/api/router-helpers.d.ts +32 -0
- package/dist/runtime/api/api/router-helpers.js +31 -0
- package/dist/runtime/api/api/routers/ai.d.ts +188 -0
- package/dist/runtime/api/api/routers/ai.js +410 -0
- package/dist/runtime/api/api/routers/executions.d.ts +98 -0
- package/dist/runtime/api/api/routers/executions.js +103 -0
- package/dist/runtime/api/api/routers/git.d.ts +45 -0
- package/dist/runtime/api/api/routers/git.js +35 -0
- package/dist/runtime/api/api/routers/settings.d.ts +139 -0
- package/dist/runtime/api/api/routers/settings.js +113 -0
- package/dist/runtime/api/api/routers/tasks.d.ts +141 -0
- package/dist/runtime/api/api/routers/tasks.js +238 -0
- package/dist/runtime/api/api/routers/workflows.d.ts +268 -0
- package/dist/runtime/api/api/routers/workflows.js +308 -0
- package/dist/runtime/api/api/routers/worktrees.d.ts +102 -0
- package/dist/runtime/api/api/routers/worktrees.js +80 -0
- package/dist/runtime/api/api/trpc.d.ts +118 -0
- package/dist/runtime/api/api/trpc.js +34 -0
- package/dist/runtime/api/index.d.ts +9 -0
- package/dist/runtime/api/index.js +125 -0
- package/dist/runtime/api/lib/id-generator.d.ts +70 -0
- package/dist/runtime/api/lib/id-generator.js +123 -0
- package/dist/runtime/api/lib/image-paste-drop-extension.d.ts +26 -0
- package/dist/runtime/api/lib/image-paste-drop-extension.js +125 -0
- package/dist/runtime/api/lib/logger.d.ts +11 -0
- package/dist/runtime/api/lib/logger.js +188 -0
- package/dist/runtime/api/lib/markdown-utils.d.ts +8 -0
- package/dist/runtime/api/lib/markdown-utils.js +282 -0
- package/dist/runtime/api/lib/markdown-utils.test.d.ts +1 -0
- package/dist/runtime/api/lib/markdown-utils.test.js +348 -0
- package/dist/runtime/api/lib/server/agent-service-singleton.d.ts +6 -0
- package/dist/runtime/api/lib/server/agent-service-singleton.js +27 -0
- package/dist/runtime/api/lib/server/git-service-singleton.d.ts +6 -0
- package/dist/runtime/api/lib/server/git-service-singleton.js +47 -0
- package/dist/runtime/api/lib/server/project-root.d.ts +2 -0
- package/dist/runtime/api/lib/server/project-root.js +38 -0
- package/dist/runtime/api/lib/server/task-service-singleton.d.ts +7 -0
- package/dist/runtime/api/lib/server/task-service-singleton.js +58 -0
- package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.d.ts +7 -0
- package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.js +57 -0
- package/dist/runtime/api/lib/tiptap-utils.clamp-selection.test.d.ts +1 -0
- package/dist/runtime/api/lib/tiptap-utils.clamp-selection.test.js +27 -0
- package/dist/runtime/api/lib/tiptap-utils.d.ts +130 -0
- package/dist/runtime/api/lib/tiptap-utils.js +327 -0
- package/dist/runtime/api/lib/trpc/client.d.ts +1 -0
- package/dist/runtime/api/lib/trpc/client.js +5 -0
- package/dist/runtime/api/lib/trpc/server.d.ts +822 -0
- package/dist/runtime/api/lib/trpc/server.js +11 -0
- package/dist/runtime/api/lib/trpc/ws-server.d.ts +8 -0
- package/dist/runtime/api/lib/trpc/ws-server.js +33 -0
- package/dist/runtime/api/persistence/database-service.d.ts +14 -0
- package/dist/runtime/api/persistence/database-service.js +74 -0
- package/dist/runtime/api/persistence/execution-log-persistence.d.ts +90 -0
- package/dist/runtime/api/persistence/execution-log-persistence.js +410 -0
- package/dist/runtime/api/persistence/execution-log-persistence.test.d.ts +1 -0
- package/dist/runtime/api/persistence/execution-log-persistence.test.js +170 -0
- package/dist/runtime/api/router.d.ts +825 -0
- package/dist/runtime/api/router.js +56 -0
- package/dist/runtime/api/settings-service.d.ts +110 -0
- package/dist/runtime/api/settings-service.js +611 -0
- package/dist/runtime/api/tasks/file-watcher.d.ts +23 -0
- package/dist/runtime/api/tasks/file-watcher.js +88 -0
- package/dist/runtime/api/tasks/task-file-parser.d.ts +13 -0
- package/dist/runtime/api/tasks/task-file-parser.js +161 -0
- package/dist/runtime/api/tasks/task-service.d.ts +36 -0
- package/dist/runtime/api/tasks/task-service.js +173 -0
- package/dist/runtime/api/types/index.d.ts +179 -0
- package/dist/runtime/api/types/index.js +1 -0
- package/dist/runtime/api/types/settings.d.ts +81 -0
- package/dist/runtime/api/types/settings.js +2 -0
- package/dist/runtime/api/types.d.ts +2 -0
- package/dist/runtime/api/types.js +1 -0
- package/dist/runtime/api/utils/env.d.ts +6 -0
- package/dist/runtime/api/utils/env.js +12 -0
- package/dist/runtime/api/utils/stripNextEnv.d.ts +7 -0
- package/dist/runtime/api/utils/stripNextEnv.js +22 -0
- package/dist/runtime/api/utils/title-slug.d.ts +6 -0
- package/dist/runtime/api/utils/title-slug.js +77 -0
- package/dist/runtime/api/utils/url.d.ts +2 -0
- package/dist/runtime/api/utils/url.js +19 -0
- package/dist/runtime/api/vcs/git-history-service.d.ts +57 -0
- package/dist/runtime/api/vcs/git-history-service.js +228 -0
- package/dist/runtime/api/vcs/git-service.d.ts +127 -0
- package/dist/runtime/api/vcs/git-service.js +284 -0
- package/dist/runtime/api/vcs/worktree-service.d.ts +93 -0
- package/dist/runtime/api/vcs/worktree-service.js +506 -0
- package/dist/runtime/api/vcs/worktree-service.test.d.ts +1 -0
- package/dist/runtime/api/vcs/worktree-service.test.js +20 -0
- package/dist/runtime/api/workflows/quality-pipeline.d.ts +58 -0
- package/dist/runtime/api/workflows/quality-pipeline.js +400 -0
- package/dist/runtime/api/workflows/vibing-orchestrator.d.ts +313 -0
- package/dist/runtime/api/workflows/vibing-orchestrator.js +1861 -0
- package/dist/runtime/web/.next/BUILD_ID +1 -0
- package/dist/runtime/web/.next/app-build-manifest.json +59 -0
- package/dist/runtime/web/.next/app-path-routes-manifest.json +7 -0
- package/dist/runtime/web/.next/build-manifest.json +33 -0
- package/dist/runtime/web/.next/package.json +1 -0
- package/dist/runtime/web/.next/prerender-manifest.json +61 -0
- package/dist/runtime/web/.next/react-loadable-manifest.json +39 -0
- package/dist/runtime/web/.next/required-server-files.json +334 -0
- package/dist/runtime/web/.next/routes-manifest.json +62 -0
- package/dist/runtime/web/.next/server/app/_not-found/page.js +2 -0
- package/dist/runtime/web/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/dist/runtime/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/dist/runtime/web/.next/server/app/_not-found.html +7 -0
- package/dist/runtime/web/.next/server/app/_not-found.meta +8 -0
- package/dist/runtime/web/.next/server/app/_not-found.rsc +22 -0
- package/dist/runtime/web/.next/server/app/api/health/route.js +1 -0
- package/dist/runtime/web/.next/server/app/api/health/route.js.nft.json +1 -0
- package/dist/runtime/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -0
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js +1 -0
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js.nft.json +1 -0
- package/dist/runtime/web/.next/server/app/api/images/[...path]/route_client-reference-manifest.js +1 -0
- package/dist/runtime/web/.next/server/app/api/upload/route.js +1 -0
- package/dist/runtime/web/.next/server/app/api/upload/route.js.nft.json +1 -0
- package/dist/runtime/web/.next/server/app/api/upload/route_client-reference-manifest.js +1 -0
- package/dist/runtime/web/.next/server/app/index.html +7 -0
- package/dist/runtime/web/.next/server/app/index.meta +7 -0
- package/dist/runtime/web/.next/server/app/index.rsc +27 -0
- package/dist/runtime/web/.next/server/app/page.js +147 -0
- package/dist/runtime/web/.next/server/app/page.js.nft.json +1 -0
- package/dist/runtime/web/.next/server/app/page_client-reference-manifest.js +1 -0
- package/dist/runtime/web/.next/server/app-paths-manifest.json +7 -0
- package/dist/runtime/web/.next/server/chunks/217.js +1 -0
- package/dist/runtime/web/.next/server/chunks/383.js +6 -0
- package/dist/runtime/web/.next/server/chunks/458.js +1 -0
- package/dist/runtime/web/.next/server/chunks/576.js +18 -0
- package/dist/runtime/web/.next/server/chunks/635.js +22 -0
- package/dist/runtime/web/.next/server/chunks/761.js +1 -0
- package/dist/runtime/web/.next/server/chunks/777.js +3 -0
- package/dist/runtime/web/.next/server/chunks/825.js +1 -0
- package/dist/runtime/web/.next/server/chunks/838.js +1 -0
- package/dist/runtime/web/.next/server/chunks/973.js +15 -0
- package/dist/runtime/web/.next/server/functions-config-manifest.json +4 -0
- package/dist/runtime/web/.next/server/middleware-build-manifest.js +1 -0
- package/dist/runtime/web/.next/server/middleware-manifest.json +6 -0
- package/dist/runtime/web/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/dist/runtime/web/.next/server/next-font-manifest.js +1 -0
- package/dist/runtime/web/.next/server/next-font-manifest.json +1 -0
- package/dist/runtime/web/.next/server/pages/404.html +7 -0
- package/dist/runtime/web/.next/server/pages/500.html +1 -0
- package/dist/runtime/web/.next/server/pages/_app.js +1 -0
- package/dist/runtime/web/.next/server/pages/_app.js.nft.json +1 -0
- package/dist/runtime/web/.next/server/pages/_document.js +1 -0
- package/dist/runtime/web/.next/server/pages/_document.js.nft.json +1 -0
- package/dist/runtime/web/.next/server/pages/_error.js +19 -0
- package/dist/runtime/web/.next/server/pages/_error.js.nft.json +1 -0
- package/dist/runtime/web/.next/server/pages-manifest.json +6 -0
- package/dist/runtime/web/.next/server/server-reference-manifest.js +1 -0
- package/dist/runtime/web/.next/server/server-reference-manifest.json +1 -0
- package/dist/runtime/web/.next/server/webpack-runtime.js +1 -0
- package/dist/runtime/web/.next/static/1HR8N0rJkCvFRtbTPJMyH/_buildManifest.js +1 -0
- package/dist/runtime/web/.next/static/1HR8N0rJkCvFRtbTPJMyH/_ssgManifest.js +1 -0
- package/dist/runtime/web/.next/static/chunks/18-15c10d3288afef2e.js +1 -0
- package/dist/runtime/web/.next/static/chunks/1c0ca389.537bbe362e3ffbd9.js +3 -0
- package/dist/runtime/web/.next/static/chunks/22747d63-ad5da0c19f4cfe41.js +71 -0
- package/dist/runtime/web/.next/static/chunks/277-0142a939f08738c3.js +63 -0
- package/dist/runtime/web/.next/static/chunks/355.056c2645878a799a.js +1 -0
- package/dist/runtime/web/.next/static/chunks/420.a5ccf151c9e2b2f1.js +1 -0
- package/dist/runtime/web/.next/static/chunks/439.1be0c6242fd248d5.js +15 -0
- package/dist/runtime/web/.next/static/chunks/440.c52e7c0f797e22b2.js +1 -0
- package/dist/runtime/web/.next/static/chunks/575-e2478287c27da87b.js +1 -0
- package/dist/runtime/web/.next/static/chunks/691.920d88c115087314.js +1 -0
- package/dist/runtime/web/.next/static/chunks/765-e838910065b50c3d.js +1 -0
- package/dist/runtime/web/.next/static/chunks/87c73c54-09e1ba5c70e60a51.js +1 -0
- package/dist/runtime/web/.next/static/chunks/891cff7f.0f71fc028f87e683.js +1 -0
- package/dist/runtime/web/.next/static/chunks/8bb4d8db-3e2aa02b0a2384b9.js +1 -0
- package/dist/runtime/web/.next/static/chunks/9af238c7-271a911d4e99ab18.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/_not-found/page-1cb74d1cba27d0ab.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/api/health/route-105a61ae865ba536.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/api/images/[...path]/route-105a61ae865ba536.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/api/upload/route-105a61ae865ba536.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/layout-dc0cfd29075b2160.js +1 -0
- package/dist/runtime/web/.next/static/chunks/app/page-f34a8b196b18850b.js +1 -0
- package/dist/runtime/web/.next/static/chunks/cac567b0-5b77dd12911823cd.js +1 -0
- package/dist/runtime/web/.next/static/chunks/framework-2518f1345b5b2806.js +1 -0
- package/dist/runtime/web/.next/static/chunks/main-17665e5e39de9a8a.js +1 -0
- package/dist/runtime/web/.next/static/chunks/main-app-c0b0f5ba4f7f9d75.js +1 -0
- package/dist/runtime/web/.next/static/chunks/pages/_app-d6f6b3bbc3d81ee1.js +1 -0
- package/dist/runtime/web/.next/static/chunks/pages/_error-75a96cf1997cc3b9.js +1 -0
- package/dist/runtime/web/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/runtime/web/.next/static/chunks/webpack-c8de37305b4635cf.js +1 -0
- package/dist/runtime/web/.next/static/css/08c950681f1a9a92.css +1 -0
- package/dist/runtime/web/.next/static/css/2728291c68f99cb1.css +3 -0
- package/dist/runtime/web/.next/static/css/521bd69cc298cd1a.css +1 -0
- package/dist/runtime/web/.next/static/css/537e22821e101b87.css +1 -0
- package/dist/runtime/web/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/dist/runtime/web/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/dist/runtime/web/package.json +65 -0
- package/dist/runtime/web/server.js +44 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +80 -7
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { EventEmitter } from 'events';
|
|
2
|
+
import { Task, WorktreeInfo, AgentExecution, VibingPhase, QualityResults } from '../types/index.js';
|
|
3
|
+
import { TaskService } from '../tasks/task-service.js';
|
|
4
|
+
import { WorktreeService } from '../vcs/worktree-service.js';
|
|
5
|
+
import { RoutingPolicyManager, type ResolvedProvider } from './routing-policy.js';
|
|
6
|
+
export interface AgentExecutionUpdate {
|
|
7
|
+
executionId: string;
|
|
8
|
+
status: AgentExecution['status'];
|
|
9
|
+
logs: string[];
|
|
10
|
+
error?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class AgentService extends EventEmitter {
|
|
13
|
+
private taskService;
|
|
14
|
+
private projectRoot;
|
|
15
|
+
private executionRegistry;
|
|
16
|
+
private worktreeService;
|
|
17
|
+
private logPersistence;
|
|
18
|
+
private coreAgentService;
|
|
19
|
+
private promptService;
|
|
20
|
+
private initialized;
|
|
21
|
+
private routingPolicyManager;
|
|
22
|
+
private genericStates;
|
|
23
|
+
private readonly defaultTools;
|
|
24
|
+
private readonly systemPrompts;
|
|
25
|
+
constructor(taskService: TaskService, projectRoot?: string, worktreeService?: WorktreeService);
|
|
26
|
+
/**
|
|
27
|
+
* Start a generic execution that is not backed by an AI provider.
|
|
28
|
+
* This enables persistent logs and status queries via existing APIs.
|
|
29
|
+
*/
|
|
30
|
+
startGenericExecution(taskId: string, options?: {
|
|
31
|
+
workflowId?: string;
|
|
32
|
+
workingDirectory?: string;
|
|
33
|
+
}): Promise<string>;
|
|
34
|
+
/** Append a log line to a generic execution and notify listeners (best-effort). */
|
|
35
|
+
logGenericExecution(executionId: string, message: string, level?: 'info' | 'warn' | 'error', data?: Record<string, unknown>): Promise<void>;
|
|
36
|
+
/** Mark a generic execution as completed/failed/cancelled and notify listeners. */
|
|
37
|
+
completeGenericExecution(executionId: string, status: AgentExecution['status'], error?: string): Promise<void>;
|
|
38
|
+
private getAgentConfig;
|
|
39
|
+
private initialize;
|
|
40
|
+
private setupEventForwarding;
|
|
41
|
+
/**
|
|
42
|
+
* Map core agent update to legacy format
|
|
43
|
+
* TODO: remove this later in a separate task, need to migrate the UI to handle raw message streaming
|
|
44
|
+
*/
|
|
45
|
+
private mapToLegacyUpdate;
|
|
46
|
+
/**
|
|
47
|
+
* Create a concise, human-readable line from a structured execution message
|
|
48
|
+
*/
|
|
49
|
+
private summarizeMessage;
|
|
50
|
+
/**
|
|
51
|
+
* Initialize worktree manager
|
|
52
|
+
*/
|
|
53
|
+
private initializeWorktrees;
|
|
54
|
+
/**
|
|
55
|
+
* Execute a task using AI in an isolated worktree
|
|
56
|
+
*/
|
|
57
|
+
executeTask(taskId: string, workflowId?: string, options?: {
|
|
58
|
+
rerunContext?: {
|
|
59
|
+
reason: string;
|
|
60
|
+
previousExecutionId?: string;
|
|
61
|
+
failurePhase?: VibingPhase;
|
|
62
|
+
qualityResults?: QualityResults;
|
|
63
|
+
lastLogs?: string[];
|
|
64
|
+
attempt?: number;
|
|
65
|
+
};
|
|
66
|
+
providerOverride?: Partial<ResolvedProvider>;
|
|
67
|
+
}): Promise<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Build an appended system prompt with rerun context (reason, logs, failed checks)
|
|
70
|
+
*/
|
|
71
|
+
private buildRerunSystemPrompt;
|
|
72
|
+
/**
|
|
73
|
+
* Stop a running execution and cleanup worktree
|
|
74
|
+
*/
|
|
75
|
+
stopExecution(executionId: string): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Get execution status
|
|
78
|
+
*/
|
|
79
|
+
getExecutionStatus(executionId: string): AgentExecution | null;
|
|
80
|
+
/**
|
|
81
|
+
* Get execution logs
|
|
82
|
+
*/
|
|
83
|
+
getExecutionLogs(executionId: string): string[];
|
|
84
|
+
/**
|
|
85
|
+
* Get all executions for a task
|
|
86
|
+
*/
|
|
87
|
+
getTaskExecutions(taskId: string): AgentExecution[];
|
|
88
|
+
/**
|
|
89
|
+
* Improve task content using AI
|
|
90
|
+
*/
|
|
91
|
+
improveTaskContent(task: Task, taskData: {
|
|
92
|
+
title: string;
|
|
93
|
+
type: string;
|
|
94
|
+
priority: string;
|
|
95
|
+
content: string;
|
|
96
|
+
}, executionId?: string): Promise<{
|
|
97
|
+
type: string;
|
|
98
|
+
priority: string;
|
|
99
|
+
content: string;
|
|
100
|
+
executionId: string;
|
|
101
|
+
selectedModel?: string;
|
|
102
|
+
}>;
|
|
103
|
+
/**
|
|
104
|
+
* Perform AI code review of changes in a worktree
|
|
105
|
+
*/
|
|
106
|
+
aiReviewCode(taskId: string, reviewContext?: string, overrides?: Partial<ResolvedProvider>): Promise<{
|
|
107
|
+
executionId: string;
|
|
108
|
+
reviewSummary: string;
|
|
109
|
+
recommendations: string[];
|
|
110
|
+
qualityScore: number;
|
|
111
|
+
}>;
|
|
112
|
+
/**
|
|
113
|
+
* Perform AI-assisted merge of a task's worktree into the base project
|
|
114
|
+
*/
|
|
115
|
+
aiMerge(taskId: string, options?: {
|
|
116
|
+
baseBranch?: string;
|
|
117
|
+
}, overrides?: Partial<ResolvedProvider>): Promise<{
|
|
118
|
+
executionId: string;
|
|
119
|
+
}>;
|
|
120
|
+
/**
|
|
121
|
+
* Compatibility alias for aiReviewCode
|
|
122
|
+
* @deprecated Use aiReviewCode instead
|
|
123
|
+
* TODO: migrate UI to use aiReviewCode directly and remove this
|
|
124
|
+
*/
|
|
125
|
+
reviewCode(taskId: string, reviewContext?: string, overrides?: Partial<ResolvedProvider>): Promise<{
|
|
126
|
+
executionId: string;
|
|
127
|
+
reviewSummary: string;
|
|
128
|
+
recommendations: string[];
|
|
129
|
+
qualityScore: number;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* Get persistent execution logs
|
|
133
|
+
*/
|
|
134
|
+
getPersistedExecutionLogs(executionId: string): Promise<{
|
|
135
|
+
metadata: any;
|
|
136
|
+
logs: any[];
|
|
137
|
+
}>;
|
|
138
|
+
/**
|
|
139
|
+
* List all execution metadata from persistence
|
|
140
|
+
*/
|
|
141
|
+
listAllExecutions(): Promise<any[]>;
|
|
142
|
+
/**
|
|
143
|
+
* Clean up old execution logs
|
|
144
|
+
*/
|
|
145
|
+
cleanupOldExecutionLogs(maxAgeDays?: number): Promise<number>;
|
|
146
|
+
/**
|
|
147
|
+
* Remove execution logs for a specific task
|
|
148
|
+
*/
|
|
149
|
+
removeExecutionLogsByTask(taskId: string): Promise<number>;
|
|
150
|
+
/**
|
|
151
|
+
* Get execution log statistics
|
|
152
|
+
*/
|
|
153
|
+
getExecutionLogStats(): Promise<{
|
|
154
|
+
total: number;
|
|
155
|
+
byStatus: Record<string, number>;
|
|
156
|
+
totalLogFiles: number;
|
|
157
|
+
oldestExecution?: string;
|
|
158
|
+
newestExecution?: string;
|
|
159
|
+
}>;
|
|
160
|
+
/**
|
|
161
|
+
* Get statistics about executions
|
|
162
|
+
*/
|
|
163
|
+
getExecutionStats(): {
|
|
164
|
+
total: number;
|
|
165
|
+
pending: number;
|
|
166
|
+
running: number;
|
|
167
|
+
completed: number;
|
|
168
|
+
failed: number;
|
|
169
|
+
cancelled: number;
|
|
170
|
+
worktrees: {
|
|
171
|
+
active: number;
|
|
172
|
+
total: number;
|
|
173
|
+
enabled: boolean;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Get worktree service instance
|
|
178
|
+
*/
|
|
179
|
+
getWorktreeService(): WorktreeService;
|
|
180
|
+
/**
|
|
181
|
+
* Get worktree information for a task
|
|
182
|
+
*/
|
|
183
|
+
getWorktreeInfo(taskId: string): WorktreeInfo | null;
|
|
184
|
+
/**
|
|
185
|
+
* Get core agent service metrics
|
|
186
|
+
*/
|
|
187
|
+
getCoreMetrics(): {
|
|
188
|
+
totalExecutions: number;
|
|
189
|
+
activeExecutions: number;
|
|
190
|
+
completedExecutions: number;
|
|
191
|
+
failedExecutions: number;
|
|
192
|
+
cancelledExecutions: number;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Get available AI providers
|
|
196
|
+
*/
|
|
197
|
+
getAvailableProviders(): Map<string, import("./ai-providers/types.js").AIProvider>;
|
|
198
|
+
/**
|
|
199
|
+
* Validate provider setup
|
|
200
|
+
*/
|
|
201
|
+
validateProviders(): Promise<Map<string, import("./ai-providers/types.js").ProviderStatus>>;
|
|
202
|
+
/**
|
|
203
|
+
* Get available models from all providers
|
|
204
|
+
*/
|
|
205
|
+
getAvailableModels(): Promise<import("./ai-providers/types.js").ModelInfo[]>;
|
|
206
|
+
/**
|
|
207
|
+
* Parse improvement result from AI response
|
|
208
|
+
*/
|
|
209
|
+
private parseImprovementResult;
|
|
210
|
+
/**
|
|
211
|
+
* Parse review result from AI response
|
|
212
|
+
*/
|
|
213
|
+
private parseReviewResult;
|
|
214
|
+
/**
|
|
215
|
+
* Resolve provider for specific operation with failover support
|
|
216
|
+
*/
|
|
217
|
+
private resolveProviderForOperation;
|
|
218
|
+
/**
|
|
219
|
+
* Execute with provider resolution and failover
|
|
220
|
+
*/
|
|
221
|
+
private executeWithRouting;
|
|
222
|
+
/**
|
|
223
|
+
* Get routing policy manager (for tRPC router access)
|
|
224
|
+
*/
|
|
225
|
+
getRoutingPolicyManager(): RoutingPolicyManager;
|
|
226
|
+
}
|