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.
Files changed (220) hide show
  1. package/README.md +12 -0
  2. package/dist/index.js +116 -0
  3. package/dist/runtime/api/.tsbuildinfo +1 -0
  4. package/dist/runtime/api/agent/agent-service.d.ts +226 -0
  5. package/dist/runtime/api/agent/agent-service.js +901 -0
  6. package/dist/runtime/api/agent/ai-providers/claude-code-adapter.d.ts +61 -0
  7. package/dist/runtime/api/agent/ai-providers/claude-code-adapter.js +373 -0
  8. package/dist/runtime/api/agent/ai-providers/codex-cli-provider.d.ts +34 -0
  9. package/dist/runtime/api/agent/ai-providers/codex-cli-provider.js +281 -0
  10. package/dist/runtime/api/agent/ai-providers/index.d.ts +9 -0
  11. package/dist/runtime/api/agent/ai-providers/index.js +7 -0
  12. package/dist/runtime/api/agent/ai-providers/types.d.ts +180 -0
  13. package/dist/runtime/api/agent/ai-providers/types.js +5 -0
  14. package/dist/runtime/api/agent/codex-cli-provider.test.d.ts +1 -0
  15. package/dist/runtime/api/agent/codex-cli-provider.test.js +88 -0
  16. package/dist/runtime/api/agent/core-agent-service.d.ts +119 -0
  17. package/dist/runtime/api/agent/core-agent-service.js +267 -0
  18. package/dist/runtime/api/agent/parsers.d.ts +15 -0
  19. package/dist/runtime/api/agent/parsers.js +241 -0
  20. package/dist/runtime/api/agent/prompt-service.d.ts +17 -0
  21. package/dist/runtime/api/agent/prompt-service.js +340 -0
  22. package/dist/runtime/api/agent/routing-policy.d.ts +188 -0
  23. package/dist/runtime/api/agent/routing-policy.js +246 -0
  24. package/dist/runtime/api/api/router-helpers.d.ts +32 -0
  25. package/dist/runtime/api/api/router-helpers.js +31 -0
  26. package/dist/runtime/api/api/routers/ai.d.ts +188 -0
  27. package/dist/runtime/api/api/routers/ai.js +410 -0
  28. package/dist/runtime/api/api/routers/executions.d.ts +98 -0
  29. package/dist/runtime/api/api/routers/executions.js +103 -0
  30. package/dist/runtime/api/api/routers/git.d.ts +45 -0
  31. package/dist/runtime/api/api/routers/git.js +35 -0
  32. package/dist/runtime/api/api/routers/settings.d.ts +139 -0
  33. package/dist/runtime/api/api/routers/settings.js +113 -0
  34. package/dist/runtime/api/api/routers/tasks.d.ts +141 -0
  35. package/dist/runtime/api/api/routers/tasks.js +238 -0
  36. package/dist/runtime/api/api/routers/workflows.d.ts +268 -0
  37. package/dist/runtime/api/api/routers/workflows.js +308 -0
  38. package/dist/runtime/api/api/routers/worktrees.d.ts +102 -0
  39. package/dist/runtime/api/api/routers/worktrees.js +80 -0
  40. package/dist/runtime/api/api/trpc.d.ts +118 -0
  41. package/dist/runtime/api/api/trpc.js +34 -0
  42. package/dist/runtime/api/index.d.ts +9 -0
  43. package/dist/runtime/api/index.js +125 -0
  44. package/dist/runtime/api/lib/id-generator.d.ts +70 -0
  45. package/dist/runtime/api/lib/id-generator.js +123 -0
  46. package/dist/runtime/api/lib/image-paste-drop-extension.d.ts +26 -0
  47. package/dist/runtime/api/lib/image-paste-drop-extension.js +125 -0
  48. package/dist/runtime/api/lib/logger.d.ts +11 -0
  49. package/dist/runtime/api/lib/logger.js +188 -0
  50. package/dist/runtime/api/lib/markdown-utils.d.ts +8 -0
  51. package/dist/runtime/api/lib/markdown-utils.js +282 -0
  52. package/dist/runtime/api/lib/markdown-utils.test.d.ts +1 -0
  53. package/dist/runtime/api/lib/markdown-utils.test.js +348 -0
  54. package/dist/runtime/api/lib/server/agent-service-singleton.d.ts +6 -0
  55. package/dist/runtime/api/lib/server/agent-service-singleton.js +27 -0
  56. package/dist/runtime/api/lib/server/git-service-singleton.d.ts +6 -0
  57. package/dist/runtime/api/lib/server/git-service-singleton.js +47 -0
  58. package/dist/runtime/api/lib/server/project-root.d.ts +2 -0
  59. package/dist/runtime/api/lib/server/project-root.js +38 -0
  60. package/dist/runtime/api/lib/server/task-service-singleton.d.ts +7 -0
  61. package/dist/runtime/api/lib/server/task-service-singleton.js +58 -0
  62. package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.d.ts +7 -0
  63. package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.js +57 -0
  64. package/dist/runtime/api/lib/tiptap-utils.clamp-selection.test.d.ts +1 -0
  65. package/dist/runtime/api/lib/tiptap-utils.clamp-selection.test.js +27 -0
  66. package/dist/runtime/api/lib/tiptap-utils.d.ts +130 -0
  67. package/dist/runtime/api/lib/tiptap-utils.js +327 -0
  68. package/dist/runtime/api/lib/trpc/client.d.ts +1 -0
  69. package/dist/runtime/api/lib/trpc/client.js +5 -0
  70. package/dist/runtime/api/lib/trpc/server.d.ts +822 -0
  71. package/dist/runtime/api/lib/trpc/server.js +11 -0
  72. package/dist/runtime/api/lib/trpc/ws-server.d.ts +8 -0
  73. package/dist/runtime/api/lib/trpc/ws-server.js +33 -0
  74. package/dist/runtime/api/persistence/database-service.d.ts +14 -0
  75. package/dist/runtime/api/persistence/database-service.js +74 -0
  76. package/dist/runtime/api/persistence/execution-log-persistence.d.ts +90 -0
  77. package/dist/runtime/api/persistence/execution-log-persistence.js +410 -0
  78. package/dist/runtime/api/persistence/execution-log-persistence.test.d.ts +1 -0
  79. package/dist/runtime/api/persistence/execution-log-persistence.test.js +170 -0
  80. package/dist/runtime/api/router.d.ts +825 -0
  81. package/dist/runtime/api/router.js +56 -0
  82. package/dist/runtime/api/settings-service.d.ts +110 -0
  83. package/dist/runtime/api/settings-service.js +611 -0
  84. package/dist/runtime/api/tasks/file-watcher.d.ts +23 -0
  85. package/dist/runtime/api/tasks/file-watcher.js +88 -0
  86. package/dist/runtime/api/tasks/task-file-parser.d.ts +13 -0
  87. package/dist/runtime/api/tasks/task-file-parser.js +161 -0
  88. package/dist/runtime/api/tasks/task-service.d.ts +36 -0
  89. package/dist/runtime/api/tasks/task-service.js +173 -0
  90. package/dist/runtime/api/types/index.d.ts +179 -0
  91. package/dist/runtime/api/types/index.js +1 -0
  92. package/dist/runtime/api/types/settings.d.ts +81 -0
  93. package/dist/runtime/api/types/settings.js +2 -0
  94. package/dist/runtime/api/types.d.ts +2 -0
  95. package/dist/runtime/api/types.js +1 -0
  96. package/dist/runtime/api/utils/env.d.ts +6 -0
  97. package/dist/runtime/api/utils/env.js +12 -0
  98. package/dist/runtime/api/utils/stripNextEnv.d.ts +7 -0
  99. package/dist/runtime/api/utils/stripNextEnv.js +22 -0
  100. package/dist/runtime/api/utils/title-slug.d.ts +6 -0
  101. package/dist/runtime/api/utils/title-slug.js +77 -0
  102. package/dist/runtime/api/utils/url.d.ts +2 -0
  103. package/dist/runtime/api/utils/url.js +19 -0
  104. package/dist/runtime/api/vcs/git-history-service.d.ts +57 -0
  105. package/dist/runtime/api/vcs/git-history-service.js +228 -0
  106. package/dist/runtime/api/vcs/git-service.d.ts +127 -0
  107. package/dist/runtime/api/vcs/git-service.js +284 -0
  108. package/dist/runtime/api/vcs/worktree-service.d.ts +93 -0
  109. package/dist/runtime/api/vcs/worktree-service.js +506 -0
  110. package/dist/runtime/api/vcs/worktree-service.test.d.ts +1 -0
  111. package/dist/runtime/api/vcs/worktree-service.test.js +20 -0
  112. package/dist/runtime/api/workflows/quality-pipeline.d.ts +58 -0
  113. package/dist/runtime/api/workflows/quality-pipeline.js +400 -0
  114. package/dist/runtime/api/workflows/vibing-orchestrator.d.ts +313 -0
  115. package/dist/runtime/api/workflows/vibing-orchestrator.js +1861 -0
  116. package/dist/runtime/web/.next/BUILD_ID +1 -0
  117. package/dist/runtime/web/.next/app-build-manifest.json +59 -0
  118. package/dist/runtime/web/.next/app-path-routes-manifest.json +7 -0
  119. package/dist/runtime/web/.next/build-manifest.json +33 -0
  120. package/dist/runtime/web/.next/package.json +1 -0
  121. package/dist/runtime/web/.next/prerender-manifest.json +61 -0
  122. package/dist/runtime/web/.next/react-loadable-manifest.json +39 -0
  123. package/dist/runtime/web/.next/required-server-files.json +334 -0
  124. package/dist/runtime/web/.next/routes-manifest.json +62 -0
  125. package/dist/runtime/web/.next/server/app/_not-found/page.js +2 -0
  126. package/dist/runtime/web/.next/server/app/_not-found/page.js.nft.json +1 -0
  127. package/dist/runtime/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  128. package/dist/runtime/web/.next/server/app/_not-found.html +7 -0
  129. package/dist/runtime/web/.next/server/app/_not-found.meta +8 -0
  130. package/dist/runtime/web/.next/server/app/_not-found.rsc +22 -0
  131. package/dist/runtime/web/.next/server/app/api/health/route.js +1 -0
  132. package/dist/runtime/web/.next/server/app/api/health/route.js.nft.json +1 -0
  133. package/dist/runtime/web/.next/server/app/api/health/route_client-reference-manifest.js +1 -0
  134. package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js +1 -0
  135. package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js.nft.json +1 -0
  136. package/dist/runtime/web/.next/server/app/api/images/[...path]/route_client-reference-manifest.js +1 -0
  137. package/dist/runtime/web/.next/server/app/api/upload/route.js +1 -0
  138. package/dist/runtime/web/.next/server/app/api/upload/route.js.nft.json +1 -0
  139. package/dist/runtime/web/.next/server/app/api/upload/route_client-reference-manifest.js +1 -0
  140. package/dist/runtime/web/.next/server/app/index.html +7 -0
  141. package/dist/runtime/web/.next/server/app/index.meta +7 -0
  142. package/dist/runtime/web/.next/server/app/index.rsc +27 -0
  143. package/dist/runtime/web/.next/server/app/page.js +147 -0
  144. package/dist/runtime/web/.next/server/app/page.js.nft.json +1 -0
  145. package/dist/runtime/web/.next/server/app/page_client-reference-manifest.js +1 -0
  146. package/dist/runtime/web/.next/server/app-paths-manifest.json +7 -0
  147. package/dist/runtime/web/.next/server/chunks/217.js +1 -0
  148. package/dist/runtime/web/.next/server/chunks/383.js +6 -0
  149. package/dist/runtime/web/.next/server/chunks/458.js +1 -0
  150. package/dist/runtime/web/.next/server/chunks/576.js +18 -0
  151. package/dist/runtime/web/.next/server/chunks/635.js +22 -0
  152. package/dist/runtime/web/.next/server/chunks/761.js +1 -0
  153. package/dist/runtime/web/.next/server/chunks/777.js +3 -0
  154. package/dist/runtime/web/.next/server/chunks/825.js +1 -0
  155. package/dist/runtime/web/.next/server/chunks/838.js +1 -0
  156. package/dist/runtime/web/.next/server/chunks/973.js +15 -0
  157. package/dist/runtime/web/.next/server/functions-config-manifest.json +4 -0
  158. package/dist/runtime/web/.next/server/middleware-build-manifest.js +1 -0
  159. package/dist/runtime/web/.next/server/middleware-manifest.json +6 -0
  160. package/dist/runtime/web/.next/server/middleware-react-loadable-manifest.js +1 -0
  161. package/dist/runtime/web/.next/server/next-font-manifest.js +1 -0
  162. package/dist/runtime/web/.next/server/next-font-manifest.json +1 -0
  163. package/dist/runtime/web/.next/server/pages/404.html +7 -0
  164. package/dist/runtime/web/.next/server/pages/500.html +1 -0
  165. package/dist/runtime/web/.next/server/pages/_app.js +1 -0
  166. package/dist/runtime/web/.next/server/pages/_app.js.nft.json +1 -0
  167. package/dist/runtime/web/.next/server/pages/_document.js +1 -0
  168. package/dist/runtime/web/.next/server/pages/_document.js.nft.json +1 -0
  169. package/dist/runtime/web/.next/server/pages/_error.js +19 -0
  170. package/dist/runtime/web/.next/server/pages/_error.js.nft.json +1 -0
  171. package/dist/runtime/web/.next/server/pages-manifest.json +6 -0
  172. package/dist/runtime/web/.next/server/server-reference-manifest.js +1 -0
  173. package/dist/runtime/web/.next/server/server-reference-manifest.json +1 -0
  174. package/dist/runtime/web/.next/server/webpack-runtime.js +1 -0
  175. package/dist/runtime/web/.next/static/1HR8N0rJkCvFRtbTPJMyH/_buildManifest.js +1 -0
  176. package/dist/runtime/web/.next/static/1HR8N0rJkCvFRtbTPJMyH/_ssgManifest.js +1 -0
  177. package/dist/runtime/web/.next/static/chunks/18-15c10d3288afef2e.js +1 -0
  178. package/dist/runtime/web/.next/static/chunks/1c0ca389.537bbe362e3ffbd9.js +3 -0
  179. package/dist/runtime/web/.next/static/chunks/22747d63-ad5da0c19f4cfe41.js +71 -0
  180. package/dist/runtime/web/.next/static/chunks/277-0142a939f08738c3.js +63 -0
  181. package/dist/runtime/web/.next/static/chunks/355.056c2645878a799a.js +1 -0
  182. package/dist/runtime/web/.next/static/chunks/420.a5ccf151c9e2b2f1.js +1 -0
  183. package/dist/runtime/web/.next/static/chunks/439.1be0c6242fd248d5.js +15 -0
  184. package/dist/runtime/web/.next/static/chunks/440.c52e7c0f797e22b2.js +1 -0
  185. package/dist/runtime/web/.next/static/chunks/575-e2478287c27da87b.js +1 -0
  186. package/dist/runtime/web/.next/static/chunks/691.920d88c115087314.js +1 -0
  187. package/dist/runtime/web/.next/static/chunks/765-e838910065b50c3d.js +1 -0
  188. package/dist/runtime/web/.next/static/chunks/87c73c54-09e1ba5c70e60a51.js +1 -0
  189. package/dist/runtime/web/.next/static/chunks/891cff7f.0f71fc028f87e683.js +1 -0
  190. package/dist/runtime/web/.next/static/chunks/8bb4d8db-3e2aa02b0a2384b9.js +1 -0
  191. package/dist/runtime/web/.next/static/chunks/9af238c7-271a911d4e99ab18.js +1 -0
  192. package/dist/runtime/web/.next/static/chunks/app/_not-found/page-1cb74d1cba27d0ab.js +1 -0
  193. package/dist/runtime/web/.next/static/chunks/app/api/health/route-105a61ae865ba536.js +1 -0
  194. package/dist/runtime/web/.next/static/chunks/app/api/images/[...path]/route-105a61ae865ba536.js +1 -0
  195. package/dist/runtime/web/.next/static/chunks/app/api/upload/route-105a61ae865ba536.js +1 -0
  196. package/dist/runtime/web/.next/static/chunks/app/layout-dc0cfd29075b2160.js +1 -0
  197. package/dist/runtime/web/.next/static/chunks/app/page-f34a8b196b18850b.js +1 -0
  198. package/dist/runtime/web/.next/static/chunks/cac567b0-5b77dd12911823cd.js +1 -0
  199. package/dist/runtime/web/.next/static/chunks/framework-2518f1345b5b2806.js +1 -0
  200. package/dist/runtime/web/.next/static/chunks/main-17665e5e39de9a8a.js +1 -0
  201. package/dist/runtime/web/.next/static/chunks/main-app-c0b0f5ba4f7f9d75.js +1 -0
  202. package/dist/runtime/web/.next/static/chunks/pages/_app-d6f6b3bbc3d81ee1.js +1 -0
  203. package/dist/runtime/web/.next/static/chunks/pages/_error-75a96cf1997cc3b9.js +1 -0
  204. package/dist/runtime/web/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  205. package/dist/runtime/web/.next/static/chunks/webpack-c8de37305b4635cf.js +1 -0
  206. package/dist/runtime/web/.next/static/css/08c950681f1a9a92.css +1 -0
  207. package/dist/runtime/web/.next/static/css/2728291c68f99cb1.css +3 -0
  208. package/dist/runtime/web/.next/static/css/521bd69cc298cd1a.css +1 -0
  209. package/dist/runtime/web/.next/static/css/537e22821e101b87.css +1 -0
  210. package/dist/runtime/web/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  211. package/dist/runtime/web/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  212. package/dist/runtime/web/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  213. package/dist/runtime/web/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  214. package/dist/runtime/web/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  215. package/dist/runtime/web/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  216. package/dist/runtime/web/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  217. package/dist/runtime/web/package.json +65 -0
  218. package/dist/runtime/web/server.js +44 -0
  219. package/dist/tsconfig.tsbuildinfo +1 -0
  220. package/package.json +80 -7
@@ -0,0 +1,825 @@
1
+ import type { TaskService } from './tasks/task-service.js';
2
+ import type { GitService } from './vcs/git-service.js';
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<{
5
+ ctx: import("./api/trpc.js").Context;
6
+ meta: object;
7
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
8
+ transformer: true;
9
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
10
+ listProviders: import("@trpc/server").TRPCQueryProcedure<{
11
+ input: void;
12
+ output: {
13
+ name: string;
14
+ displayName: string;
15
+ available: boolean;
16
+ error: string | undefined;
17
+ capabilities: import("./agent/ai-providers/types.js").ProviderCapabilities;
18
+ models: import("./agent/ai-providers/types.js").ModelInfo[];
19
+ }[];
20
+ meta: object;
21
+ }>;
22
+ listModels: import("@trpc/server").TRPCQueryProcedure<{
23
+ input: {
24
+ provider?: string | undefined;
25
+ } | undefined;
26
+ output: import("./agent/ai-providers/types.js").ModelInfo[];
27
+ meta: object;
28
+ }>;
29
+ getRoutingPolicy: import("@trpc/server").TRPCQueryProcedure<{
30
+ input: void;
31
+ output: any;
32
+ meta: object;
33
+ }>;
34
+ updateRoutingPolicy: import("@trpc/server").TRPCMutationProcedure<{
35
+ input: {
36
+ policy: {
37
+ defaultProvider?: string | undefined;
38
+ operations?: Partial<Record<"execute_task" | "improve_task" | "ai_codereview" | "ai_merge", {
39
+ provider: string;
40
+ options?: {
41
+ maxTokens?: number | undefined;
42
+ tools?: string[] | undefined;
43
+ temperature?: number | undefined;
44
+ } | undefined;
45
+ model?: string | undefined;
46
+ fallback?: string[] | undefined;
47
+ }>> | undefined;
48
+ };
49
+ };
50
+ output: {
51
+ success: boolean;
52
+ policy: any;
53
+ };
54
+ meta: object;
55
+ }>;
56
+ setDefaultProvider: import("@trpc/server").TRPCMutationProcedure<{
57
+ input: {
58
+ provider: string;
59
+ };
60
+ output: {
61
+ success: boolean;
62
+ provider: string;
63
+ };
64
+ meta: object;
65
+ }>;
66
+ setOperationConfig: import("@trpc/server").TRPCMutationProcedure<{
67
+ input: {
68
+ config: {
69
+ provider: string;
70
+ options?: {
71
+ maxTokens?: number | undefined;
72
+ tools?: string[] | undefined;
73
+ temperature?: number | undefined;
74
+ } | undefined;
75
+ model?: string | undefined;
76
+ fallback?: string[] | undefined;
77
+ };
78
+ operation: "execute_task" | "improve_task" | "ai_codereview" | "ai_merge";
79
+ };
80
+ output: {
81
+ success: boolean;
82
+ };
83
+ meta: object;
84
+ }>;
85
+ validateProviders: import("@trpc/server").TRPCMutationProcedure<{
86
+ input: {
87
+ force?: boolean | undefined;
88
+ } | undefined;
89
+ output: {
90
+ success: boolean;
91
+ results: {
92
+ provider: string;
93
+ available: boolean;
94
+ error: string | undefined;
95
+ modelCount: number;
96
+ capabilities: import("./agent/ai-providers/types.js").ProviderCapabilities;
97
+ }[];
98
+ totalProviders: number;
99
+ availableProviders: number;
100
+ };
101
+ meta: object;
102
+ }>;
103
+ getGitStatus: import("@trpc/server").TRPCQueryProcedure<{
104
+ input: void;
105
+ output: {
106
+ current: string;
107
+ staged: string[];
108
+ modified: string[];
109
+ untracked: string[];
110
+ ahead: number;
111
+ behind: number;
112
+ };
113
+ meta: object;
114
+ }>;
115
+ createBranch: import("@trpc/server").TRPCMutationProcedure<{
116
+ input: {
117
+ taskId: string;
118
+ baseBranch?: string | undefined;
119
+ };
120
+ output: import("./vcs/git-service.js").BranchInfo;
121
+ meta: object;
122
+ }>;
123
+ commitChanges: import("@trpc/server").TRPCMutationProcedure<{
124
+ input: {
125
+ taskId: string;
126
+ message?: string | undefined;
127
+ files?: string[] | undefined;
128
+ };
129
+ output: import("./vcs/git-service.js").CommitInfo;
130
+ meta: object;
131
+ }>;
132
+ getCommitHistory: import("@trpc/server").TRPCQueryProcedure<{
133
+ input: {
134
+ maxCount?: number | undefined;
135
+ };
136
+ output: import("./vcs/git-service.js").CommitInfo[];
137
+ meta: object;
138
+ }>;
139
+ hasUncommittedChanges: import("@trpc/server").TRPCQueryProcedure<{
140
+ input: void;
141
+ output: boolean;
142
+ meta: object;
143
+ }>;
144
+ getSettings: import("@trpc/server").TRPCQueryProcedure<{
145
+ input: void;
146
+ output: import("./types/settings.js").VibemanSettings;
147
+ meta: object;
148
+ }>;
149
+ detectQualityChecks: import("@trpc/server").TRPCMutationProcedure<{
150
+ input: void;
151
+ output: {
152
+ checks: {
153
+ name: string;
154
+ command: string;
155
+ args: string[];
156
+ timeout: number;
157
+ enabled: boolean;
158
+ }[];
159
+ workingDirectory: string;
160
+ };
161
+ meta: object;
162
+ }>;
163
+ getSetting: import("@trpc/server").TRPCQueryProcedure<{
164
+ input: {
165
+ path: string[];
166
+ };
167
+ output: unknown;
168
+ meta: object;
169
+ }>;
170
+ updateSettings: import("@trpc/server").TRPCMutationProcedure<{
171
+ input: {
172
+ path: string[];
173
+ value?: unknown;
174
+ }[];
175
+ output: {
176
+ success: boolean;
177
+ errors: import("./types/settings.js").SettingsValidationError[];
178
+ };
179
+ meta: object;
180
+ }>;
181
+ resetToDefaults: import("@trpc/server").TRPCMutationProcedure<{
182
+ input: void;
183
+ output: import("./types/settings.js").VibemanSettings;
184
+ meta: object;
185
+ }>;
186
+ validateSettings: import("@trpc/server").TRPCQueryProcedure<{
187
+ input: Record<string, unknown>;
188
+ output: {
189
+ valid: boolean;
190
+ errors: import("./types/settings.js").SettingsValidationError[];
191
+ };
192
+ meta: object;
193
+ }>;
194
+ getSettingsInfo: import("@trpc/server").TRPCQueryProcedure<{
195
+ input: void;
196
+ output: {
197
+ path: string;
198
+ exists: boolean;
199
+ };
200
+ meta: object;
201
+ }>;
202
+ getEditorPresets: import("@trpc/server").TRPCQueryProcedure<{
203
+ input: void;
204
+ output: Record<string, Partial<{
205
+ type?: "vscode" | "cursor" | "vim" | "custom";
206
+ command?: string;
207
+ args?: string[];
208
+ name?: string;
209
+ openFileCommand?: string[];
210
+ openFolderCommand?: string[];
211
+ } | undefined>>;
212
+ meta: object;
213
+ }>;
214
+ getTerminalPresets: import("@trpc/server").TRPCQueryProcedure<{
215
+ input: void;
216
+ output: Record<string, Partial<{
217
+ type?: "system" | "iterm2" | "warp" | "custom";
218
+ command?: string;
219
+ args?: string[];
220
+ name?: string;
221
+ openCommand?: string[];
222
+ } | undefined>>;
223
+ meta: object;
224
+ }>;
225
+ applyEditorPreset: import("@trpc/server").TRPCMutationProcedure<{
226
+ input: {
227
+ presetName: string;
228
+ };
229
+ output: {
230
+ success: boolean;
231
+ errors: import("./types/settings.js").SettingsValidationError[];
232
+ };
233
+ meta: object;
234
+ }>;
235
+ applyTerminalPreset: import("@trpc/server").TRPCMutationProcedure<{
236
+ input: {
237
+ presetName: string;
238
+ };
239
+ output: {
240
+ success: boolean;
241
+ errors: import("./types/settings.js").SettingsValidationError[];
242
+ };
243
+ meta: object;
244
+ }>;
245
+ updateWorkflowOptions: import("@trpc/server").TRPCMutationProcedure<{
246
+ input: {
247
+ config: {
248
+ autoQualityChecks?: boolean | undefined;
249
+ requireHumanApproval?: boolean | undefined;
250
+ aiCodeReview?: boolean | undefined;
251
+ autoCommit?: boolean | undefined;
252
+ stepByStepMode?: boolean | undefined;
253
+ createPR?: boolean | undefined;
254
+ autoMerge?: boolean | undefined;
255
+ aiRoutingOverrides?: {
256
+ execute_task?: {
257
+ provider?: string | undefined;
258
+ model?: string | undefined;
259
+ } | undefined;
260
+ improve_task?: {
261
+ provider?: string | undefined;
262
+ model?: string | undefined;
263
+ } | undefined;
264
+ ai_codereview?: {
265
+ provider?: string | undefined;
266
+ model?: string | undefined;
267
+ } | undefined;
268
+ ai_merge?: {
269
+ provider?: string | undefined;
270
+ model?: string | undefined;
271
+ } | undefined;
272
+ } | undefined;
273
+ };
274
+ workflowId: string;
275
+ };
276
+ output: {
277
+ readonly success: true;
278
+ };
279
+ meta: object;
280
+ }>;
281
+ startWorkflow: import("@trpc/server").TRPCMutationProcedure<{
282
+ input: {
283
+ taskId: string;
284
+ config?: {
285
+ autoQualityChecks?: boolean | undefined;
286
+ requireHumanApproval?: boolean | undefined;
287
+ aiCodeReview?: boolean | undefined;
288
+ autoCommit?: boolean | undefined;
289
+ stepByStepMode?: boolean | undefined;
290
+ createPR?: boolean | undefined;
291
+ autoMerge?: boolean | undefined;
292
+ aiRoutingOverrides?: {
293
+ execute_task?: {
294
+ provider?: string | undefined;
295
+ model?: string | undefined;
296
+ } | undefined;
297
+ improve_task?: {
298
+ provider?: string | undefined;
299
+ model?: string | undefined;
300
+ } | undefined;
301
+ ai_codereview?: {
302
+ provider?: string | undefined;
303
+ model?: string | undefined;
304
+ } | undefined;
305
+ ai_merge?: {
306
+ provider?: string | undefined;
307
+ model?: string | undefined;
308
+ } | undefined;
309
+ } | undefined;
310
+ } | undefined;
311
+ };
312
+ output: {
313
+ workflowId: string;
314
+ };
315
+ meta: object;
316
+ }>;
317
+ continueWorkflow: import("@trpc/server").TRPCMutationProcedure<{
318
+ input: {
319
+ workflowId: string;
320
+ };
321
+ output: {
322
+ readonly success: true;
323
+ };
324
+ meta: object;
325
+ }>;
326
+ runValidation: import("@trpc/server").TRPCMutationProcedure<{
327
+ input: {
328
+ workflowId: string;
329
+ };
330
+ output: {
331
+ readonly success: true;
332
+ };
333
+ meta: object;
334
+ }>;
335
+ runMerge: import("@trpc/server").TRPCMutationProcedure<{
336
+ input: {
337
+ workflowId: string;
338
+ provider?: string | undefined;
339
+ model?: string | undefined;
340
+ };
341
+ output: {
342
+ readonly success: true;
343
+ };
344
+ meta: object;
345
+ }>;
346
+ runCleanup: import("@trpc/server").TRPCMutationProcedure<{
347
+ input: {
348
+ workflowId: string;
349
+ };
350
+ output: {
351
+ readonly success: true;
352
+ };
353
+ meta: object;
354
+ }>;
355
+ pauseWorkflow: import("@trpc/server").TRPCMutationProcedure<{
356
+ input: {
357
+ workflowId: string;
358
+ };
359
+ output: {
360
+ readonly success: true;
361
+ };
362
+ meta: object;
363
+ }>;
364
+ resetWorkflow: import("@trpc/server").TRPCMutationProcedure<{
365
+ input: {
366
+ workflowId: string;
367
+ force?: boolean | undefined;
368
+ deleteWorktree?: boolean | undefined;
369
+ };
370
+ output: {
371
+ success: true;
372
+ };
373
+ meta: object;
374
+ }>;
375
+ approveWorkflow: import("@trpc/server").TRPCMutationProcedure<{
376
+ input: {
377
+ workflowId: string;
378
+ comments?: string | undefined;
379
+ };
380
+ output: {
381
+ readonly success: true;
382
+ };
383
+ meta: object;
384
+ }>;
385
+ rejectWorkflow: import("@trpc/server").TRPCMutationProcedure<{
386
+ input: {
387
+ workflowId: string;
388
+ feedback: string;
389
+ };
390
+ output: {
391
+ readonly success: true;
392
+ };
393
+ meta: object;
394
+ }>;
395
+ onTaskWorkflowEvents: import("@trpc/server").TRPCSubscriptionProcedure<{
396
+ input: {
397
+ taskId?: string | undefined;
398
+ } | undefined;
399
+ output: AsyncIterable<{
400
+ type: "started" | "phase" | "completed" | "failed" | "updated" | "deleted";
401
+ workflowId: string;
402
+ phase?: string;
403
+ workflow?: any;
404
+ executionId?: string;
405
+ }, void, any>;
406
+ meta: object;
407
+ }>;
408
+ getWorkflow: import("@trpc/server").TRPCQueryProcedure<{
409
+ input: {
410
+ workflowId: string;
411
+ };
412
+ output: import("./types/index.js").VibingExecution | null;
413
+ meta: object;
414
+ }>;
415
+ getWorkflowsByTaskId: import("@trpc/server").TRPCQueryProcedure<{
416
+ input: {
417
+ taskId: string;
418
+ };
419
+ output: import("./types/index.js").VibingExecution[];
420
+ meta: object;
421
+ }>;
422
+ getLatestWorkflowByTaskId: import("@trpc/server").TRPCQueryProcedure<{
423
+ input: {
424
+ taskId: string;
425
+ };
426
+ output: import("./types/index.js").VibingExecution | null;
427
+ meta: object;
428
+ }>;
429
+ reviewCode: import("@trpc/server").TRPCMutationProcedure<{
430
+ input: {
431
+ taskId: string;
432
+ provider?: string | undefined;
433
+ model?: string | undefined;
434
+ workflowId?: string | undefined;
435
+ reviewContext?: string | undefined;
436
+ };
437
+ output: {
438
+ executionId: string;
439
+ reviewSummary: string;
440
+ recommendations: string[];
441
+ qualityScore: number;
442
+ };
443
+ meta: object;
444
+ }>;
445
+ approveAndContinueReview: import("@trpc/server").TRPCMutationProcedure<{
446
+ input: {
447
+ workflowId: string;
448
+ };
449
+ output: {
450
+ success: true;
451
+ };
452
+ meta: object;
453
+ }>;
454
+ markCompleted: import("@trpc/server").TRPCMutationProcedure<{
455
+ input: {
456
+ workflowId: string;
457
+ };
458
+ output: {
459
+ success: true;
460
+ };
461
+ meta: object;
462
+ }>;
463
+ checkWorktreeStatus: import("@trpc/server").TRPCMutationProcedure<{
464
+ input: {
465
+ workflowId: string;
466
+ };
467
+ output: {
468
+ clean: boolean;
469
+ uncommittedFiles: string[];
470
+ worktreePath?: string;
471
+ };
472
+ meta: object;
473
+ }>;
474
+ rerunImplementation: import("@trpc/server").TRPCMutationProcedure<{
475
+ input: {
476
+ workflowId: string;
477
+ provider?: string | undefined;
478
+ model?: string | undefined;
479
+ feedback?: string | undefined;
480
+ };
481
+ output: {
482
+ success: true;
483
+ };
484
+ meta: object;
485
+ }>;
486
+ skipToNextPhase: import("@trpc/server").TRPCMutationProcedure<{
487
+ input: {
488
+ workflowId: string;
489
+ };
490
+ output: {
491
+ success: true;
492
+ };
493
+ meta: object;
494
+ }>;
495
+ rerunFromPhase: import("@trpc/server").TRPCMutationProcedure<{
496
+ input: {
497
+ workflowId: string;
498
+ phase: "completed" | "failed" | "draft" | "awaiting-review" | "approved" | "merged" | "paused" | "implementing" | "validating" | "ai-reviewing" | "merging" | "cleaning";
499
+ };
500
+ output: {
501
+ success: true;
502
+ };
503
+ meta: object;
504
+ }>;
505
+ listWorktrees: import("@trpc/server").TRPCQueryProcedure<{
506
+ input: void;
507
+ output: (import("./types/index.js").WorktreeInfo & {
508
+ isConnectedToTask: boolean;
509
+ })[];
510
+ meta: object;
511
+ }>;
512
+ syncWorktreeState: import("@trpc/server").TRPCMutationProcedure<{
513
+ input: void;
514
+ output: {
515
+ readonly success: true;
516
+ readonly message: "Worktree state synchronized";
517
+ };
518
+ meta: object;
519
+ }>;
520
+ getWorktreeInfo: import("@trpc/server").TRPCQueryProcedure<{
521
+ input: {
522
+ taskId: string;
523
+ };
524
+ output: any;
525
+ meta: object;
526
+ }>;
527
+ createWorktree: import("@trpc/server").TRPCMutationProcedure<{
528
+ input: {
529
+ taskId: string;
530
+ };
531
+ output: any;
532
+ meta: object;
533
+ }>;
534
+ deleteWorktree: import("@trpc/server").TRPCMutationProcedure<{
535
+ input: {
536
+ taskId: string;
537
+ force?: boolean | undefined;
538
+ };
539
+ output: {
540
+ readonly success: true;
541
+ };
542
+ meta: object;
543
+ }>;
544
+ openInEditor: import("@trpc/server").TRPCMutationProcedure<{
545
+ input: {
546
+ worktreePath: string;
547
+ };
548
+ output: {
549
+ readonly success: true;
550
+ };
551
+ meta: object;
552
+ }>;
553
+ openInTerminal: import("@trpc/server").TRPCMutationProcedure<{
554
+ input: {
555
+ worktreePath: string;
556
+ };
557
+ output: {
558
+ readonly success: true;
559
+ };
560
+ meta: object;
561
+ }>;
562
+ createWorktreePR: import("@trpc/server").TRPCMutationProcedure<{
563
+ input: {
564
+ taskId: string;
565
+ baseBranch?: string | undefined;
566
+ };
567
+ output: {
568
+ success: boolean;
569
+ pullRequest?: any;
570
+ error?: string;
571
+ };
572
+ meta: object;
573
+ }>;
574
+ createPullRequest: import("@trpc/server").TRPCMutationProcedure<{
575
+ input: {
576
+ taskId: string;
577
+ baseBranch?: string | undefined;
578
+ };
579
+ output: {
580
+ success: boolean;
581
+ pullRequest?: any;
582
+ error?: string;
583
+ };
584
+ meta: object;
585
+ }>;
586
+ cleanupWorktree: import("@trpc/server").TRPCMutationProcedure<{
587
+ input: {
588
+ isConnectedToTask: boolean;
589
+ worktreePath?: string | undefined;
590
+ force?: boolean | undefined;
591
+ taskId?: string | undefined;
592
+ branchName?: string | undefined;
593
+ };
594
+ output: {
595
+ readonly success: true;
596
+ };
597
+ meta: object;
598
+ }>;
599
+ executeTask: import("@trpc/server").TRPCMutationProcedure<{
600
+ input: {
601
+ taskId: string;
602
+ };
603
+ output: {
604
+ readonly executionId: string;
605
+ };
606
+ meta: object;
607
+ }>;
608
+ stopTaskExecution: import("@trpc/server").TRPCMutationProcedure<{
609
+ input: {
610
+ executionId: string;
611
+ };
612
+ output: {
613
+ readonly success: true;
614
+ };
615
+ meta: object;
616
+ }>;
617
+ getTaskExecutionStatus: import("@trpc/server").TRPCQueryProcedure<{
618
+ input: {
619
+ executionId: string;
620
+ };
621
+ output: import("./types/index.js").AgentExecution | null;
622
+ meta: object;
623
+ }>;
624
+ getTaskExecutionLogs: import("@trpc/server").TRPCQueryProcedure<{
625
+ input: {
626
+ executionId: string;
627
+ };
628
+ output: {
629
+ logs: any[];
630
+ };
631
+ meta: object;
632
+ }>;
633
+ getTaskExecutions: import("@trpc/server").TRPCQueryProcedure<{
634
+ input: {
635
+ taskId: string;
636
+ };
637
+ output: import("./types/index.js").AgentExecution[];
638
+ meta: object;
639
+ }>;
640
+ getTaskExecutionStats: import("@trpc/server").TRPCQueryProcedure<{
641
+ input: void;
642
+ output: {
643
+ total: number;
644
+ pending: number;
645
+ running: number;
646
+ completed: number;
647
+ failed: number;
648
+ cancelled: number;
649
+ worktrees: {
650
+ active: number;
651
+ total: number;
652
+ enabled: boolean;
653
+ };
654
+ };
655
+ meta: object;
656
+ }>;
657
+ improveTask: import("@trpc/server").TRPCMutationProcedure<{
658
+ input: {
659
+ type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
660
+ priority: "low" | "medium" | "high";
661
+ title: string;
662
+ content: string;
663
+ taskId: string;
664
+ executionId?: string | undefined;
665
+ };
666
+ output: {
667
+ type: string;
668
+ priority: string;
669
+ content: string;
670
+ executionId: string;
671
+ selectedModel?: string;
672
+ };
673
+ meta: object;
674
+ }>;
675
+ onExecutionUpdate: import("@trpc/server").TRPCSubscriptionProcedure<{
676
+ input: {
677
+ executionId: string;
678
+ };
679
+ output: AsyncIterable<{
680
+ executionId: string;
681
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
682
+ logs: string[];
683
+ error?: string;
684
+ }, void, any>;
685
+ meta: object;
686
+ }>;
687
+ listTasks: import("@trpc/server").TRPCQueryProcedure<{
688
+ input: {
689
+ 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
+ tags?: string[] | undefined;
694
+ includeDeleted?: boolean | undefined;
695
+ onlyDeleted?: boolean | undefined;
696
+ } | undefined;
697
+ output: import("./types/index.js").Task[];
698
+ meta: object;
699
+ }>;
700
+ getTask: import("@trpc/server").TRPCQueryProcedure<{
701
+ input: {
702
+ id: string;
703
+ };
704
+ output: import("./types/index.js").Task;
705
+ meta: object;
706
+ }>;
707
+ createTask: import("@trpc/server").TRPCMutationProcedure<{
708
+ input: {
709
+ type: "feature" | "bug" | "chore" | "refactor" | "test" | "doc";
710
+ title: string;
711
+ content: string;
712
+ status?: "backlog" | "in-progress" | "review" | "done" | undefined;
713
+ priority?: "low" | "medium" | "high" | undefined;
714
+ id?: string | undefined;
715
+ tags?: string[] | undefined;
716
+ due_date?: string | undefined;
717
+ assignee?: string[] | undefined;
718
+ comments?: string[] | undefined;
719
+ };
720
+ output: import("./types/index.js").Task;
721
+ meta: object;
722
+ }>;
723
+ updateTask: import("@trpc/server").TRPCMutationProcedure<{
724
+ input: {
725
+ 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;
729
+ title?: string | undefined;
730
+ tags?: string[] | undefined;
731
+ due_date?: string | undefined;
732
+ assignee?: string[] | undefined;
733
+ comments?: string[] | undefined;
734
+ content?: string | undefined;
735
+ deleted_at?: string | undefined;
736
+ };
737
+ output: import("./types/index.js").Task;
738
+ meta: object;
739
+ }>;
740
+ deleteTask: import("@trpc/server").TRPCMutationProcedure<{
741
+ input: {
742
+ id: string;
743
+ };
744
+ output: {
745
+ readonly success: true;
746
+ };
747
+ meta: object;
748
+ }>;
749
+ moveTask: import("@trpc/server").TRPCMutationProcedure<{
750
+ input: {
751
+ status: "backlog" | "in-progress" | "review" | "done";
752
+ id: string;
753
+ };
754
+ output: import("./types/index.js").Task;
755
+ meta: object;
756
+ }>;
757
+ getTaskStats: import("@trpc/server").TRPCQueryProcedure<{
758
+ input: void;
759
+ output: any;
760
+ meta: object;
761
+ }>;
762
+ searchTasks: import("@trpc/server").TRPCQueryProcedure<{
763
+ input: {
764
+ query: string;
765
+ includeDeleted?: boolean | undefined;
766
+ onlyDeleted?: boolean | undefined;
767
+ };
768
+ output: import("./types/index.js").Task[];
769
+ meta: object;
770
+ }>;
771
+ healthCheck: import("@trpc/server").TRPCQueryProcedure<{
772
+ input: void;
773
+ output: {
774
+ status: string;
775
+ timestamp: string;
776
+ tasksLoaded: number;
777
+ };
778
+ meta: object;
779
+ }>;
780
+ onTaskUpdate: import("@trpc/server").TRPCSubscriptionProcedure<{
781
+ input: {
782
+ taskId?: string | undefined;
783
+ } | undefined;
784
+ output: AsyncIterable<{
785
+ type: "update" | "delete";
786
+ taskId: string;
787
+ task?: any;
788
+ }, void, any>;
789
+ meta: object;
790
+ }>;
791
+ getTaskHistory: import("@trpc/server").TRPCQueryProcedure<{
792
+ input: {
793
+ taskId: string;
794
+ limit?: number | undefined;
795
+ };
796
+ output: {
797
+ available: boolean;
798
+ history: import("./vcs/git-history-service.js").TaskHistoryEntry[];
799
+ error?: undefined;
800
+ } | {
801
+ available: boolean;
802
+ history: never[];
803
+ error: string;
804
+ };
805
+ meta: object;
806
+ }>;
807
+ getTaskVersion: import("@trpc/server").TRPCQueryProcedure<{
808
+ input: {
809
+ taskId: string;
810
+ commitHash: string;
811
+ };
812
+ output: import("./vcs/git-history-service.js").TaskFileContent;
813
+ meta: object;
814
+ }>;
815
+ getTaskDiff: import("@trpc/server").TRPCQueryProcedure<{
816
+ input: {
817
+ taskId: string;
818
+ fromHash: string;
819
+ toHash: string;
820
+ };
821
+ output: import("./vcs/git-history-service.js").TaskDiffEntry;
822
+ meta: object;
823
+ }>;
824
+ }>>;
825
+ export type AppRouter = ReturnType<typeof createRouter>;