vibeman 0.0.1 → 0.0.2

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 (71) hide show
  1. package/dist/index.js +5 -7
  2. package/dist/runtime/api/.tsbuildinfo +1 -1
  3. package/dist/runtime/api/agent/agent-service.d.ts +11 -13
  4. package/dist/runtime/api/agent/agent-service.js +25 -31
  5. package/dist/runtime/api/agent/ai-providers/claude-code-adapter.d.ts +2 -2
  6. package/dist/runtime/api/agent/ai-providers/claude-code-adapter.js +25 -36
  7. package/dist/runtime/api/agent/ai-providers/codex-cli-provider.js +48 -14
  8. package/dist/runtime/api/agent/ai-providers/types.d.ts +2 -0
  9. package/dist/runtime/api/agent/codex-cli-provider.test.js +37 -0
  10. package/dist/runtime/api/agent/parsers.d.ts +1 -0
  11. package/dist/runtime/api/agent/parsers.js +75 -8
  12. package/dist/runtime/api/agent/prompt-service.d.ts +14 -1
  13. package/dist/runtime/api/agent/prompt-service.js +123 -14
  14. package/dist/runtime/api/agent/prompt-service.test.d.ts +1 -0
  15. package/dist/runtime/api/agent/prompt-service.test.js +230 -0
  16. package/dist/runtime/api/agent/routing-policy.d.ts +14 -14
  17. package/dist/runtime/api/api/routers/ai.d.ts +6 -6
  18. package/dist/runtime/api/api/routers/ai.js +2 -17
  19. package/dist/runtime/api/api/routers/executions.d.ts +5 -5
  20. package/dist/runtime/api/api/routers/executions.js +12 -21
  21. package/dist/runtime/api/api/routers/provider-config.d.ts +165 -0
  22. package/dist/runtime/api/api/routers/provider-config.js +252 -0
  23. package/dist/runtime/api/api/routers/tasks.d.ts +10 -10
  24. package/dist/runtime/api/api/routers/workflows.d.ts +15 -16
  25. package/dist/runtime/api/api/routers/workflows.js +28 -26
  26. package/dist/runtime/api/api/routers/worktrees.d.ts +4 -5
  27. package/dist/runtime/api/api/routers/worktrees.js +11 -11
  28. package/dist/runtime/api/api/trpc.d.ts +18 -18
  29. package/dist/runtime/api/index.js +2 -10
  30. package/dist/runtime/api/lib/local-config.d.ts +245 -0
  31. package/dist/runtime/api/lib/local-config.js +288 -0
  32. package/dist/runtime/api/lib/provider-detection.d.ts +59 -0
  33. package/dist/runtime/api/lib/provider-detection.js +244 -0
  34. package/dist/runtime/api/lib/server/bootstrap.d.ts +38 -0
  35. package/dist/runtime/api/lib/server/bootstrap.js +197 -0
  36. package/dist/runtime/api/lib/server/project-root.js +24 -1
  37. package/dist/runtime/api/lib/trpc/server.d.ts +124 -31
  38. package/dist/runtime/api/lib/trpc/server.js +8 -8
  39. package/dist/runtime/api/lib/trpc/ws-server.js +2 -2
  40. package/dist/runtime/api/router.d.ts +125 -32
  41. package/dist/runtime/api/router.js +9 -31
  42. package/dist/runtime/api/settings-service.js +2 -0
  43. package/dist/runtime/api/workflows/vibing-orchestrator.d.ts +8 -3
  44. package/dist/runtime/api/workflows/vibing-orchestrator.js +182 -183
  45. package/dist/runtime/web/.next/BUILD_ID +1 -1
  46. package/dist/runtime/web/.next/app-build-manifest.json +2 -2
  47. package/dist/runtime/web/.next/build-manifest.json +2 -2
  48. package/dist/runtime/web/.next/prerender-manifest.json +3 -3
  49. package/dist/runtime/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  50. package/dist/runtime/web/.next/server/app/_not-found.html +2 -2
  51. package/dist/runtime/web/.next/server/app/_not-found.rsc +5 -5
  52. package/dist/runtime/web/.next/server/app/api/health/route.js +1 -1
  53. package/dist/runtime/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  54. package/dist/runtime/web/.next/server/app/api/images/[...path]/route_client-reference-manifest.js +1 -1
  55. package/dist/runtime/web/.next/server/app/api/upload/route_client-reference-manifest.js +1 -1
  56. package/dist/runtime/web/.next/server/app/index.html +2 -2
  57. package/dist/runtime/web/.next/server/app/index.rsc +6 -6
  58. package/dist/runtime/web/.next/server/app/page.js +3 -3
  59. package/dist/runtime/web/.next/server/app/page_client-reference-manifest.js +1 -1
  60. package/dist/runtime/web/.next/server/chunks/458.js +1 -1
  61. package/dist/runtime/web/.next/server/pages/404.html +2 -2
  62. package/dist/runtime/web/.next/server/pages/500.html +1 -1
  63. package/dist/runtime/web/.next/server/pages-manifest.json +1 -1
  64. package/dist/runtime/web/.next/server/server-reference-manifest.json +1 -1
  65. package/dist/runtime/web/.next/static/chunks/app/{layout-dc0cfd29075b2160.js → layout-8435322f09fd0975.js} +1 -1
  66. package/dist/runtime/web/.next/static/chunks/app/page-8c3ba579efc6f918.js +1 -0
  67. package/dist/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +5 -1
  69. package/dist/runtime/web/.next/static/chunks/app/page-f34a8b196b18850b.js +0 -1
  70. /package/dist/runtime/web/.next/static/{1HR8N0rJkCvFRtbTPJMyH → mRpNgPfbYR_0wrODzlg_4}/_buildManifest.js +0 -0
  71. /package/dist/runtime/web/.next/static/{1HR8N0rJkCvFRtbTPJMyH → mRpNgPfbYR_0wrODzlg_4}/_ssgManifest.js +0 -0
@@ -4,6 +4,98 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4
4
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
5
5
  transformer: true;
6
6
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7
+ detectAllProviders: import("@trpc/server").TRPCQueryProcedure<{
8
+ input: void;
9
+ output: Record<string, import("../provider-detection.js").DetectionResult>;
10
+ meta: object;
11
+ }>;
12
+ detectProvider: import("@trpc/server").TRPCQueryProcedure<{
13
+ input: {
14
+ provider: string;
15
+ };
16
+ output: import("../provider-detection.js").DetectionResult;
17
+ meta: object;
18
+ }>;
19
+ setProviderPath: import("@trpc/server").TRPCMutationProcedure<{
20
+ input: {
21
+ path: string;
22
+ provider: string;
23
+ };
24
+ output: {
25
+ success: boolean;
26
+ result: import("../provider-detection.js").DetectionResult;
27
+ };
28
+ meta: object;
29
+ }>;
30
+ clearProviderPath: import("@trpc/server").TRPCMutationProcedure<{
31
+ input: {
32
+ provider: string;
33
+ };
34
+ output: {
35
+ success: boolean;
36
+ };
37
+ meta: object;
38
+ }>;
39
+ getLocalConfigInfo: import("@trpc/server").TRPCQueryProcedure<{
40
+ input: void;
41
+ output: {
42
+ providers: {
43
+ 'claude-code'?: {
44
+ binPath?: string | undefined;
45
+ detectedPath?: string | undefined;
46
+ lastDetected?: string | undefined;
47
+ detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
48
+ } | undefined;
49
+ codex?: {
50
+ binPath?: string | undefined;
51
+ detectedPath?: string | undefined;
52
+ lastDetected?: string | undefined;
53
+ detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
54
+ } | undefined;
55
+ };
56
+ path: string;
57
+ exists: boolean;
58
+ size?: number;
59
+ };
60
+ meta: object;
61
+ }>;
62
+ clearValidationCache: import("@trpc/server").TRPCMutationProcedure<{
63
+ input: void;
64
+ output: {
65
+ success: boolean;
66
+ };
67
+ meta: object;
68
+ }>;
69
+ getProviderDiagnostics: import("@trpc/server").TRPCQueryProcedure<{
70
+ input: void;
71
+ output: {
72
+ localConfigPath: string;
73
+ localConfigExists: boolean;
74
+ providers: {
75
+ provider: string;
76
+ detection: import("../provider-detection.js").DetectionResult;
77
+ localConfig: {
78
+ binPath?: string | undefined;
79
+ detectedPath?: string | undefined;
80
+ lastDetected?: string | undefined;
81
+ detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
82
+ } | {
83
+ binPath?: string | undefined;
84
+ detectedPath?: string | undefined;
85
+ lastDetected?: string | undefined;
86
+ detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
87
+ } | undefined;
88
+ cached: {
89
+ available: boolean;
90
+ error: string | undefined;
91
+ version: string | undefined;
92
+ checkedAt: string;
93
+ isFresh: boolean;
94
+ } | null;
95
+ }[];
96
+ };
97
+ meta: object;
98
+ }>;
7
99
  listProviders: import("@trpc/server").TRPCQueryProcedure<{
8
100
  input: void;
9
101
  output: {
@@ -32,12 +124,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
32
124
  input: {
33
125
  policy: {
34
126
  defaultProvider?: string | undefined;
35
- operations?: Partial<Record<"execute_task" | "improve_task" | "ai_codereview" | "ai_merge", {
127
+ operations?: Partial<Record<"execute_task" | "improve_task" | "ai_merge" | "ai_codereview", {
36
128
  provider: string;
37
129
  options?: {
130
+ temperature?: number | undefined;
38
131
  maxTokens?: number | undefined;
39
132
  tools?: string[] | undefined;
40
- temperature?: number | undefined;
41
133
  } | undefined;
42
134
  model?: string | undefined;
43
135
  fallback?: string[] | undefined;
@@ -62,17 +154,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
62
154
  }>;
63
155
  setOperationConfig: import("@trpc/server").TRPCMutationProcedure<{
64
156
  input: {
157
+ operation: "execute_task" | "improve_task" | "ai_merge" | "ai_codereview";
65
158
  config: {
66
159
  provider: string;
67
160
  options?: {
161
+ temperature?: number | undefined;
68
162
  maxTokens?: number | undefined;
69
163
  tools?: string[] | undefined;
70
- temperature?: number | undefined;
71
164
  } | undefined;
72
165
  model?: string | undefined;
73
166
  fallback?: string[] | undefined;
74
167
  };
75
- operation: "execute_task" | "improve_task" | "ai_codereview" | "ai_merge";
76
168
  };
77
169
  output: {
78
170
  success: boolean;
@@ -241,14 +333,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
241
333
  }>;
242
334
  updateWorkflowOptions: import("@trpc/server").TRPCMutationProcedure<{
243
335
  input: {
336
+ workflowId: string;
244
337
  config: {
338
+ autoCommit?: boolean | undefined;
339
+ createPR?: boolean | undefined;
245
340
  autoQualityChecks?: boolean | undefined;
246
341
  requireHumanApproval?: boolean | undefined;
247
- aiCodeReview?: boolean | undefined;
248
- autoCommit?: boolean | undefined;
249
342
  stepByStepMode?: boolean | undefined;
250
- createPR?: boolean | undefined;
251
343
  autoMerge?: boolean | undefined;
344
+ aiCodeReview?: boolean | undefined;
252
345
  aiRoutingOverrides?: {
253
346
  execute_task?: {
254
347
  provider?: string | undefined;
@@ -258,17 +351,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
258
351
  provider?: string | undefined;
259
352
  model?: string | undefined;
260
353
  } | undefined;
261
- ai_codereview?: {
354
+ ai_merge?: {
262
355
  provider?: string | undefined;
263
356
  model?: string | undefined;
264
357
  } | undefined;
265
- ai_merge?: {
358
+ ai_codereview?: {
266
359
  provider?: string | undefined;
267
360
  model?: string | undefined;
268
361
  } | undefined;
269
362
  } | undefined;
270
363
  };
271
- workflowId: string;
272
364
  };
273
365
  output: {
274
366
  readonly success: true;
@@ -279,13 +371,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
279
371
  input: {
280
372
  taskId: string;
281
373
  config?: {
374
+ autoCommit?: boolean | undefined;
375
+ createPR?: boolean | undefined;
282
376
  autoQualityChecks?: boolean | undefined;
283
377
  requireHumanApproval?: boolean | undefined;
284
- aiCodeReview?: boolean | undefined;
285
- autoCommit?: boolean | undefined;
286
378
  stepByStepMode?: boolean | undefined;
287
- createPR?: boolean | undefined;
288
379
  autoMerge?: boolean | undefined;
380
+ aiCodeReview?: boolean | undefined;
289
381
  aiRoutingOverrides?: {
290
382
  execute_task?: {
291
383
  provider?: string | undefined;
@@ -295,11 +387,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
295
387
  provider?: string | undefined;
296
388
  model?: string | undefined;
297
389
  } | undefined;
298
- ai_codereview?: {
390
+ ai_merge?: {
299
391
  provider?: string | undefined;
300
392
  model?: string | undefined;
301
393
  } | undefined;
302
- ai_merge?: {
394
+ ai_codereview?: {
303
395
  provider?: string | undefined;
304
396
  model?: string | undefined;
305
397
  } | undefined;
@@ -423,12 +515,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
423
515
  output: import("../../types/index.js").VibingExecution | null;
424
516
  meta: object;
425
517
  }>;
426
- reviewCode: import("@trpc/server").TRPCMutationProcedure<{
518
+ aiReviewCode: import("@trpc/server").TRPCMutationProcedure<{
427
519
  input: {
428
520
  taskId: string;
429
521
  provider?: string | undefined;
430
- model?: string | undefined;
431
522
  workflowId?: string | undefined;
523
+ model?: string | undefined;
432
524
  reviewContext?: string | undefined;
433
525
  };
434
526
  output: {
@@ -583,9 +675,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
583
675
  cleanupWorktree: import("@trpc/server").TRPCMutationProcedure<{
584
676
  input: {
585
677
  isConnectedToTask: boolean;
586
- worktreePath?: string | undefined;
587
- force?: boolean | undefined;
588
678
  taskId?: string | undefined;
679
+ force?: boolean | undefined;
680
+ worktreePath?: string | undefined;
589
681
  branchName?: string | undefined;
590
682
  };
591
683
  output: {
@@ -653,9 +745,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
653
745
  }>;
654
746
  improveTask: import("@trpc/server").TRPCMutationProcedure<{
655
747
  input: {
656
- type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
657
- priority: "low" | "medium" | "high";
658
748
  title: string;
749
+ type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
750
+ priority: "high" | "medium" | "low";
659
751
  content: string;
660
752
  taskId: string;
661
753
  executionId?: string | undefined;
@@ -664,6 +756,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
664
756
  type: string;
665
757
  priority: string;
666
758
  content: string;
759
+ title?: string;
667
760
  executionId: string;
668
761
  selectedModel?: string;
669
762
  };
@@ -683,11 +776,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
683
776
  }>;
684
777
  listTasks: import("@trpc/server").TRPCQueryProcedure<{
685
778
  input: {
779
+ status?: "review" | "in-progress" | "backlog" | "done" | undefined;
686
780
  type?: "feature" | "bug" | "chore" | "refactor" | "test" | "doc" | undefined;
687
- status?: "backlog" | "in-progress" | "review" | "done" | undefined;
688
- priority?: "low" | "medium" | "high" | undefined;
689
- search?: string | undefined;
690
781
  tags?: string[] | undefined;
782
+ priority?: "high" | "medium" | "low" | undefined;
783
+ search?: string | undefined;
691
784
  includeDeleted?: boolean | undefined;
692
785
  onlyDeleted?: boolean | undefined;
693
786
  } | undefined;
@@ -703,15 +796,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
703
796
  }>;
704
797
  createTask: import("@trpc/server").TRPCMutationProcedure<{
705
798
  input: {
706
- type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
707
799
  title: string;
800
+ type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
708
801
  content: string;
709
- status?: "backlog" | "in-progress" | "review" | "done" | undefined;
710
- priority?: "low" | "medium" | "high" | undefined;
802
+ status?: "review" | "in-progress" | "backlog" | "done" | undefined;
711
803
  id?: string | undefined;
712
804
  tags?: string[] | undefined;
713
805
  due_date?: string | undefined;
714
806
  assignee?: string[] | undefined;
807
+ priority?: "high" | "medium" | "low" | undefined;
715
808
  comments?: string[] | undefined;
716
809
  };
717
810
  output: import("../../types/index.js").Task;
@@ -720,13 +813,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
720
813
  updateTask: import("@trpc/server").TRPCMutationProcedure<{
721
814
  input: {
722
815
  id: string;
723
- type?: "feature" | "bug" | "chore" | "refactor" | "test" | "doc" | undefined;
724
- status?: "backlog" | "in-progress" | "review" | "done" | undefined;
725
- priority?: "low" | "medium" | "high" | undefined;
816
+ status?: "review" | "in-progress" | "backlog" | "done" | undefined;
726
817
  title?: string | undefined;
818
+ type?: "feature" | "bug" | "chore" | "refactor" | "test" | "doc" | undefined;
727
819
  tags?: string[] | undefined;
728
820
  due_date?: string | undefined;
729
821
  assignee?: string[] | undefined;
822
+ priority?: "high" | "medium" | "low" | undefined;
730
823
  comments?: string[] | undefined;
731
824
  content?: string | undefined;
732
825
  deleted_at?: string | undefined;
@@ -745,7 +838,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
745
838
  }>;
746
839
  moveTask: import("@trpc/server").TRPCMutationProcedure<{
747
840
  input: {
748
- status: "backlog" | "in-progress" | "review" | "done";
841
+ status: "review" | "in-progress" | "backlog" | "done";
749
842
  id: string;
750
843
  };
751
844
  output: import("../../types/index.js").Task;
@@ -1,11 +1,11 @@
1
1
  import { createRouter } from '../../router.js';
2
- import { getTaskService } from '../server/task-service-singleton.js';
3
- import { getGitService } from '../server/git-service-singleton.js';
4
- import { getVibingOrchestrator, getVibingOrchestratorAsync, } from '../server/vibing-orchestrator-singleton.js';
2
+ import { bootstrap, getBootstrappedTaskService, getBootstrappedGitService, getBootstrappedVibingOrchestrator, } from '../server/bootstrap.js';
5
3
  // Build the application router for use by the standalone API server.
6
4
  // Note: This module no longer starts any WebSocket servers automatically.
7
- // Runtime bootstrapping happens in the API server entrypoint.
8
- const taskService = getTaskService();
9
- const gitService = getGitService();
10
- const workflowOrchestrator = getVibingOrchestrator();
11
- export const appRouter = createRouter(taskService, gitService, workflowOrchestrator, getVibingOrchestratorAsync);
5
+ // Services must be bootstrapped before calling this.
6
+ // Ensure bootstrap is complete before creating router
7
+ await bootstrap();
8
+ const taskService = getBootstrappedTaskService();
9
+ const gitService = getBootstrappedGitService();
10
+ const workflowOrchestrator = getBootstrappedVibingOrchestrator();
11
+ export const appRouter = createRouter(taskService, gitService, workflowOrchestrator);
@@ -5,9 +5,9 @@ export function startTRPCWebSocketServer(router) {
5
5
  if (typeof global.__VIBEMAN_WSS__ === 'object' && global.__VIBEMAN_WSS__?.started) {
6
6
  return; // already started
7
7
  }
8
- // Decide WS port: prefer explicit env; else (+1) from HTTP port
8
+ // Decide WS port: (+1) from HTTP port
9
9
  const httpPort = Number(process.env.PORT || 3000);
10
- const wsPort = Number(process.env.NEXT_PUBLIC_VIBEMAN_WS_PORT || process.env.VIBEMAN_WS_PORT || httpPort + 1);
10
+ const wsPort = httpPort + 1;
11
11
  try {
12
12
  const wss = new WebSocketServer({ port: wsPort, path: '/api/trpc' });
13
13
  // Handle binding errors gracefully (e.g., EADDRINUSE across HMR workers)
@@ -1,12 +1,104 @@
1
1
  import type { TaskService } from './tasks/task-service.js';
2
2
  import type { GitService } from './vcs/git-service.js';
3
3
  import type { VibingOrchestrator } from './workflows/vibing-orchestrator.js';
4
- export declare function createRouter(taskService: TaskService, gitService?: GitService, vibingOrchestrator?: VibingOrchestrator, getVibingOrchestratorAsync?: () => Promise<VibingOrchestrator>): import("@trpc/server").TRPCBuiltRouter<{
4
+ export declare function createRouter(taskService: TaskService, gitService: GitService, vibingOrchestrator: VibingOrchestrator): import("@trpc/server").TRPCBuiltRouter<{
5
5
  ctx: import("./api/trpc.js").Context;
6
6
  meta: object;
7
7
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8
8
  transformer: true;
9
9
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
10
+ detectAllProviders: import("@trpc/server").TRPCQueryProcedure<{
11
+ input: void;
12
+ output: Record<string, import("./lib/provider-detection.js").DetectionResult>;
13
+ meta: object;
14
+ }>;
15
+ detectProvider: import("@trpc/server").TRPCQueryProcedure<{
16
+ input: {
17
+ provider: string;
18
+ };
19
+ output: import("./lib/provider-detection.js").DetectionResult;
20
+ meta: object;
21
+ }>;
22
+ setProviderPath: import("@trpc/server").TRPCMutationProcedure<{
23
+ input: {
24
+ path: string;
25
+ provider: string;
26
+ };
27
+ output: {
28
+ success: boolean;
29
+ result: import("./lib/provider-detection.js").DetectionResult;
30
+ };
31
+ meta: object;
32
+ }>;
33
+ clearProviderPath: import("@trpc/server").TRPCMutationProcedure<{
34
+ input: {
35
+ provider: string;
36
+ };
37
+ output: {
38
+ success: boolean;
39
+ };
40
+ meta: object;
41
+ }>;
42
+ getLocalConfigInfo: import("@trpc/server").TRPCQueryProcedure<{
43
+ input: void;
44
+ output: {
45
+ providers: {
46
+ 'claude-code'?: {
47
+ binPath?: string | undefined;
48
+ detectedPath?: string | undefined;
49
+ lastDetected?: string | undefined;
50
+ detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
51
+ } | undefined;
52
+ codex?: {
53
+ binPath?: string | undefined;
54
+ detectedPath?: string | undefined;
55
+ lastDetected?: string | undefined;
56
+ detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
57
+ } | undefined;
58
+ };
59
+ path: string;
60
+ exists: boolean;
61
+ size?: number;
62
+ };
63
+ meta: object;
64
+ }>;
65
+ clearValidationCache: import("@trpc/server").TRPCMutationProcedure<{
66
+ input: void;
67
+ output: {
68
+ success: boolean;
69
+ };
70
+ meta: object;
71
+ }>;
72
+ getProviderDiagnostics: import("@trpc/server").TRPCQueryProcedure<{
73
+ input: void;
74
+ output: {
75
+ localConfigPath: string;
76
+ localConfigExists: boolean;
77
+ providers: {
78
+ provider: string;
79
+ detection: import("./lib/provider-detection.js").DetectionResult;
80
+ localConfig: {
81
+ binPath?: string | undefined;
82
+ detectedPath?: string | undefined;
83
+ lastDetected?: string | undefined;
84
+ detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
85
+ } | {
86
+ binPath?: string | undefined;
87
+ detectedPath?: string | undefined;
88
+ lastDetected?: string | undefined;
89
+ detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
90
+ } | undefined;
91
+ cached: {
92
+ available: boolean;
93
+ error: string | undefined;
94
+ version: string | undefined;
95
+ checkedAt: string;
96
+ isFresh: boolean;
97
+ } | null;
98
+ }[];
99
+ };
100
+ meta: object;
101
+ }>;
10
102
  listProviders: import("@trpc/server").TRPCQueryProcedure<{
11
103
  input: void;
12
104
  output: {
@@ -35,12 +127,12 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
35
127
  input: {
36
128
  policy: {
37
129
  defaultProvider?: string | undefined;
38
- operations?: Partial<Record<"execute_task" | "improve_task" | "ai_codereview" | "ai_merge", {
130
+ operations?: Partial<Record<"execute_task" | "improve_task" | "ai_merge" | "ai_codereview", {
39
131
  provider: string;
40
132
  options?: {
133
+ temperature?: number | undefined;
41
134
  maxTokens?: number | undefined;
42
135
  tools?: string[] | undefined;
43
- temperature?: number | undefined;
44
136
  } | undefined;
45
137
  model?: string | undefined;
46
138
  fallback?: string[] | undefined;
@@ -65,17 +157,17 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
65
157
  }>;
66
158
  setOperationConfig: import("@trpc/server").TRPCMutationProcedure<{
67
159
  input: {
160
+ operation: "execute_task" | "improve_task" | "ai_merge" | "ai_codereview";
68
161
  config: {
69
162
  provider: string;
70
163
  options?: {
164
+ temperature?: number | undefined;
71
165
  maxTokens?: number | undefined;
72
166
  tools?: string[] | undefined;
73
- temperature?: number | undefined;
74
167
  } | undefined;
75
168
  model?: string | undefined;
76
169
  fallback?: string[] | undefined;
77
170
  };
78
- operation: "execute_task" | "improve_task" | "ai_codereview" | "ai_merge";
79
171
  };
80
172
  output: {
81
173
  success: boolean;
@@ -244,14 +336,15 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
244
336
  }>;
245
337
  updateWorkflowOptions: import("@trpc/server").TRPCMutationProcedure<{
246
338
  input: {
339
+ workflowId: string;
247
340
  config: {
341
+ autoCommit?: boolean | undefined;
342
+ createPR?: boolean | undefined;
248
343
  autoQualityChecks?: boolean | undefined;
249
344
  requireHumanApproval?: boolean | undefined;
250
- aiCodeReview?: boolean | undefined;
251
- autoCommit?: boolean | undefined;
252
345
  stepByStepMode?: boolean | undefined;
253
- createPR?: boolean | undefined;
254
346
  autoMerge?: boolean | undefined;
347
+ aiCodeReview?: boolean | undefined;
255
348
  aiRoutingOverrides?: {
256
349
  execute_task?: {
257
350
  provider?: string | undefined;
@@ -261,17 +354,16 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
261
354
  provider?: string | undefined;
262
355
  model?: string | undefined;
263
356
  } | undefined;
264
- ai_codereview?: {
357
+ ai_merge?: {
265
358
  provider?: string | undefined;
266
359
  model?: string | undefined;
267
360
  } | undefined;
268
- ai_merge?: {
361
+ ai_codereview?: {
269
362
  provider?: string | undefined;
270
363
  model?: string | undefined;
271
364
  } | undefined;
272
365
  } | undefined;
273
366
  };
274
- workflowId: string;
275
367
  };
276
368
  output: {
277
369
  readonly success: true;
@@ -282,13 +374,13 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
282
374
  input: {
283
375
  taskId: string;
284
376
  config?: {
377
+ autoCommit?: boolean | undefined;
378
+ createPR?: boolean | undefined;
285
379
  autoQualityChecks?: boolean | undefined;
286
380
  requireHumanApproval?: boolean | undefined;
287
- aiCodeReview?: boolean | undefined;
288
- autoCommit?: boolean | undefined;
289
381
  stepByStepMode?: boolean | undefined;
290
- createPR?: boolean | undefined;
291
382
  autoMerge?: boolean | undefined;
383
+ aiCodeReview?: boolean | undefined;
292
384
  aiRoutingOverrides?: {
293
385
  execute_task?: {
294
386
  provider?: string | undefined;
@@ -298,11 +390,11 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
298
390
  provider?: string | undefined;
299
391
  model?: string | undefined;
300
392
  } | undefined;
301
- ai_codereview?: {
393
+ ai_merge?: {
302
394
  provider?: string | undefined;
303
395
  model?: string | undefined;
304
396
  } | undefined;
305
- ai_merge?: {
397
+ ai_codereview?: {
306
398
  provider?: string | undefined;
307
399
  model?: string | undefined;
308
400
  } | undefined;
@@ -426,12 +518,12 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
426
518
  output: import("./types/index.js").VibingExecution | null;
427
519
  meta: object;
428
520
  }>;
429
- reviewCode: import("@trpc/server").TRPCMutationProcedure<{
521
+ aiReviewCode: import("@trpc/server").TRPCMutationProcedure<{
430
522
  input: {
431
523
  taskId: string;
432
524
  provider?: string | undefined;
433
- model?: string | undefined;
434
525
  workflowId?: string | undefined;
526
+ model?: string | undefined;
435
527
  reviewContext?: string | undefined;
436
528
  };
437
529
  output: {
@@ -586,9 +678,9 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
586
678
  cleanupWorktree: import("@trpc/server").TRPCMutationProcedure<{
587
679
  input: {
588
680
  isConnectedToTask: boolean;
589
- worktreePath?: string | undefined;
590
- force?: boolean | undefined;
591
681
  taskId?: string | undefined;
682
+ force?: boolean | undefined;
683
+ worktreePath?: string | undefined;
592
684
  branchName?: string | undefined;
593
685
  };
594
686
  output: {
@@ -656,9 +748,9 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
656
748
  }>;
657
749
  improveTask: import("@trpc/server").TRPCMutationProcedure<{
658
750
  input: {
659
- type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
660
- priority: "low" | "medium" | "high";
661
751
  title: string;
752
+ type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
753
+ priority: "high" | "medium" | "low";
662
754
  content: string;
663
755
  taskId: string;
664
756
  executionId?: string | undefined;
@@ -667,6 +759,7 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
667
759
  type: string;
668
760
  priority: string;
669
761
  content: string;
762
+ title?: string;
670
763
  executionId: string;
671
764
  selectedModel?: string;
672
765
  };
@@ -686,11 +779,11 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
686
779
  }>;
687
780
  listTasks: import("@trpc/server").TRPCQueryProcedure<{
688
781
  input: {
782
+ status?: "review" | "in-progress" | "backlog" | "done" | undefined;
689
783
  type?: "feature" | "bug" | "chore" | "refactor" | "test" | "doc" | undefined;
690
- status?: "backlog" | "in-progress" | "review" | "done" | undefined;
691
- priority?: "low" | "medium" | "high" | undefined;
692
- search?: string | undefined;
693
784
  tags?: string[] | undefined;
785
+ priority?: "high" | "medium" | "low" | undefined;
786
+ search?: string | undefined;
694
787
  includeDeleted?: boolean | undefined;
695
788
  onlyDeleted?: boolean | undefined;
696
789
  } | undefined;
@@ -706,15 +799,15 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
706
799
  }>;
707
800
  createTask: import("@trpc/server").TRPCMutationProcedure<{
708
801
  input: {
709
- type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
710
802
  title: string;
803
+ type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
711
804
  content: string;
712
- status?: "backlog" | "in-progress" | "review" | "done" | undefined;
713
- priority?: "low" | "medium" | "high" | undefined;
805
+ status?: "review" | "in-progress" | "backlog" | "done" | undefined;
714
806
  id?: string | undefined;
715
807
  tags?: string[] | undefined;
716
808
  due_date?: string | undefined;
717
809
  assignee?: string[] | undefined;
810
+ priority?: "high" | "medium" | "low" | undefined;
718
811
  comments?: string[] | undefined;
719
812
  };
720
813
  output: import("./types/index.js").Task;
@@ -723,13 +816,13 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
723
816
  updateTask: import("@trpc/server").TRPCMutationProcedure<{
724
817
  input: {
725
818
  id: string;
726
- type?: "feature" | "bug" | "chore" | "refactor" | "test" | "doc" | undefined;
727
- status?: "backlog" | "in-progress" | "review" | "done" | undefined;
728
- priority?: "low" | "medium" | "high" | undefined;
819
+ status?: "review" | "in-progress" | "backlog" | "done" | undefined;
729
820
  title?: string | undefined;
821
+ type?: "feature" | "bug" | "chore" | "refactor" | "test" | "doc" | undefined;
730
822
  tags?: string[] | undefined;
731
823
  due_date?: string | undefined;
732
824
  assignee?: string[] | undefined;
825
+ priority?: "high" | "medium" | "low" | undefined;
733
826
  comments?: string[] | undefined;
734
827
  content?: string | undefined;
735
828
  deleted_at?: string | undefined;
@@ -748,7 +841,7 @@ export declare function createRouter(taskService: TaskService, gitService?: GitS
748
841
  }>;
749
842
  moveTask: import("@trpc/server").TRPCMutationProcedure<{
750
843
  input: {
751
- status: "backlog" | "in-progress" | "review" | "done";
844
+ status: "review" | "in-progress" | "backlog" | "done";
752
845
  id: string;
753
846
  };
754
847
  output: import("./types/index.js").Task;