vibeman 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/api.js +49 -0
  2. package/dist/cli.js +135 -0
  3. package/dist/ui/index-gnk6rhxs.js +9 -0
  4. package/dist/ui/index.html +10 -0
  5. package/dist/ui/index.js +2 -0
  6. package/package.json +10 -46
  7. package/README.md +0 -12
  8. package/dist/index.js +0 -114
  9. package/dist/runtime/api/.tsbuildinfo +0 -1
  10. package/dist/runtime/api/agent/agent-service.d.ts +0 -229
  11. package/dist/runtime/api/agent/agent-service.js +0 -963
  12. package/dist/runtime/api/agent/ai-providers/amp-cli-provider.d.ts +0 -38
  13. package/dist/runtime/api/agent/ai-providers/amp-cli-provider.js +0 -268
  14. package/dist/runtime/api/agent/ai-providers/claude-code-adapter.d.ts +0 -61
  15. package/dist/runtime/api/agent/ai-providers/claude-code-adapter.js +0 -362
  16. package/dist/runtime/api/agent/ai-providers/codex-cli-provider.d.ts +0 -36
  17. package/dist/runtime/api/agent/ai-providers/codex-cli-provider.js +0 -375
  18. package/dist/runtime/api/agent/ai-providers/gemini-cli-provider.d.ts +0 -24
  19. package/dist/runtime/api/agent/ai-providers/gemini-cli-provider.js +0 -291
  20. package/dist/runtime/api/agent/ai-providers/index.d.ts +0 -9
  21. package/dist/runtime/api/agent/ai-providers/index.js +0 -9
  22. package/dist/runtime/api/agent/ai-providers/types.d.ts +0 -185
  23. package/dist/runtime/api/agent/ai-providers/types.js +0 -5
  24. package/dist/runtime/api/agent/amp-cli-provider.test.d.ts +0 -1
  25. package/dist/runtime/api/agent/amp-cli-provider.test.js +0 -99
  26. package/dist/runtime/api/agent/codex-cli-provider.test.d.ts +0 -1
  27. package/dist/runtime/api/agent/codex-cli-provider.test.js +0 -172
  28. package/dist/runtime/api/agent/core-agent-service.d.ts +0 -119
  29. package/dist/runtime/api/agent/core-agent-service.js +0 -267
  30. package/dist/runtime/api/agent/parsers.d.ts +0 -16
  31. package/dist/runtime/api/agent/parsers.js +0 -308
  32. package/dist/runtime/api/agent/prompt-service.d.ts +0 -30
  33. package/dist/runtime/api/agent/prompt-service.js +0 -452
  34. package/dist/runtime/api/agent/prompt-service.test.d.ts +0 -1
  35. package/dist/runtime/api/agent/prompt-service.test.js +0 -265
  36. package/dist/runtime/api/agent/routing-policy.d.ts +0 -171
  37. package/dist/runtime/api/agent/routing-policy.js +0 -196
  38. package/dist/runtime/api/agent/routing-policy.test.d.ts +0 -1
  39. package/dist/runtime/api/agent/routing-policy.test.js +0 -63
  40. package/dist/runtime/api/api/router-helpers.d.ts +0 -32
  41. package/dist/runtime/api/api/router-helpers.js +0 -31
  42. package/dist/runtime/api/api/routers/ai.d.ts +0 -200
  43. package/dist/runtime/api/api/routers/ai.js +0 -396
  44. package/dist/runtime/api/api/routers/executions.d.ts +0 -93
  45. package/dist/runtime/api/api/routers/executions.js +0 -94
  46. package/dist/runtime/api/api/routers/git.d.ts +0 -45
  47. package/dist/runtime/api/api/routers/git.js +0 -35
  48. package/dist/runtime/api/api/routers/provider-config.d.ts +0 -199
  49. package/dist/runtime/api/api/routers/provider-config.js +0 -252
  50. package/dist/runtime/api/api/routers/settings.d.ts +0 -158
  51. package/dist/runtime/api/api/routers/settings.js +0 -129
  52. package/dist/runtime/api/api/routers/tasks.d.ts +0 -141
  53. package/dist/runtime/api/api/routers/tasks.js +0 -238
  54. package/dist/runtime/api/api/routers/workflows.d.ts +0 -275
  55. package/dist/runtime/api/api/routers/workflows.js +0 -311
  56. package/dist/runtime/api/api/routers/worktrees.d.ts +0 -101
  57. package/dist/runtime/api/api/routers/worktrees.js +0 -80
  58. package/dist/runtime/api/api/trpc.d.ts +0 -118
  59. package/dist/runtime/api/api/trpc.js +0 -34
  60. package/dist/runtime/api/index.d.ts +0 -9
  61. package/dist/runtime/api/index.js +0 -117
  62. package/dist/runtime/api/lib/id-generator.d.ts +0 -70
  63. package/dist/runtime/api/lib/id-generator.js +0 -123
  64. package/dist/runtime/api/lib/local-config.d.ts +0 -335
  65. package/dist/runtime/api/lib/local-config.js +0 -304
  66. package/dist/runtime/api/lib/logger.d.ts +0 -11
  67. package/dist/runtime/api/lib/logger.js +0 -188
  68. package/dist/runtime/api/lib/provider-detection.d.ts +0 -61
  69. package/dist/runtime/api/lib/provider-detection.js +0 -326
  70. package/dist/runtime/api/lib/server/agent-service-singleton.d.ts +0 -6
  71. package/dist/runtime/api/lib/server/agent-service-singleton.js +0 -27
  72. package/dist/runtime/api/lib/server/bootstrap.d.ts +0 -38
  73. package/dist/runtime/api/lib/server/bootstrap.js +0 -197
  74. package/dist/runtime/api/lib/server/git-service-singleton.d.ts +0 -6
  75. package/dist/runtime/api/lib/server/git-service-singleton.js +0 -47
  76. package/dist/runtime/api/lib/server/project-root.d.ts +0 -2
  77. package/dist/runtime/api/lib/server/project-root.js +0 -61
  78. package/dist/runtime/api/lib/server/task-service-singleton.d.ts +0 -7
  79. package/dist/runtime/api/lib/server/task-service-singleton.js +0 -58
  80. package/dist/runtime/api/lib/server/vibeman-info.d.ts +0 -5
  81. package/dist/runtime/api/lib/server/vibeman-info.js +0 -85
  82. package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.d.ts +0 -7
  83. package/dist/runtime/api/lib/server/vibing-orchestrator-singleton.js +0 -57
  84. package/dist/runtime/api/lib/trpc/server.d.ts +0 -965
  85. package/dist/runtime/api/lib/trpc/server.js +0 -11
  86. package/dist/runtime/api/lib/trpc/ws-server.d.ts +0 -8
  87. package/dist/runtime/api/lib/trpc/ws-server.js +0 -33
  88. package/dist/runtime/api/persistence/database-service.d.ts +0 -14
  89. package/dist/runtime/api/persistence/database-service.js +0 -74
  90. package/dist/runtime/api/persistence/execution-log-persistence.d.ts +0 -90
  91. package/dist/runtime/api/persistence/execution-log-persistence.js +0 -426
  92. package/dist/runtime/api/persistence/execution-log-persistence.test.d.ts +0 -1
  93. package/dist/runtime/api/persistence/execution-log-persistence.test.js +0 -170
  94. package/dist/runtime/api/router.d.ts +0 -968
  95. package/dist/runtime/api/router.js +0 -34
  96. package/dist/runtime/api/settings-service.d.ts +0 -110
  97. package/dist/runtime/api/settings-service.js +0 -678
  98. package/dist/runtime/api/tasks/file-watcher.d.ts +0 -23
  99. package/dist/runtime/api/tasks/file-watcher.js +0 -88
  100. package/dist/runtime/api/tasks/task-file-parser.d.ts +0 -14
  101. package/dist/runtime/api/tasks/task-file-parser.js +0 -180
  102. package/dist/runtime/api/tasks/task-service.d.ts +0 -36
  103. package/dist/runtime/api/tasks/task-service.js +0 -173
  104. package/dist/runtime/api/tasks/task-updater.d.ts +0 -62
  105. package/dist/runtime/api/tasks/task-updater.js +0 -260
  106. package/dist/runtime/api/tasks/task-updater.test.d.ts +0 -1
  107. package/dist/runtime/api/tasks/task-updater.test.js +0 -303
  108. package/dist/runtime/api/types/index.d.ts +0 -186
  109. package/dist/runtime/api/types/index.js +0 -1
  110. package/dist/runtime/api/types/settings.d.ts +0 -105
  111. package/dist/runtime/api/types/settings.js +0 -2
  112. package/dist/runtime/api/types.d.ts +0 -2
  113. package/dist/runtime/api/types.js +0 -1
  114. package/dist/runtime/api/utils/env.d.ts +0 -6
  115. package/dist/runtime/api/utils/env.js +0 -12
  116. package/dist/runtime/api/utils/stripNextEnv.d.ts +0 -7
  117. package/dist/runtime/api/utils/stripNextEnv.js +0 -22
  118. package/dist/runtime/api/utils/title-slug.d.ts +0 -6
  119. package/dist/runtime/api/utils/title-slug.js +0 -77
  120. package/dist/runtime/api/utils/url.d.ts +0 -2
  121. package/dist/runtime/api/utils/url.js +0 -19
  122. package/dist/runtime/api/vcs/git-history-service.d.ts +0 -57
  123. package/dist/runtime/api/vcs/git-history-service.js +0 -228
  124. package/dist/runtime/api/vcs/git-service.d.ts +0 -136
  125. package/dist/runtime/api/vcs/git-service.js +0 -307
  126. package/dist/runtime/api/vcs/worktree-service.d.ts +0 -93
  127. package/dist/runtime/api/vcs/worktree-service.js +0 -518
  128. package/dist/runtime/api/vcs/worktree-service.test.d.ts +0 -1
  129. package/dist/runtime/api/vcs/worktree-service.test.js +0 -20
  130. package/dist/runtime/api/workflows/quality-pipeline.d.ts +0 -58
  131. package/dist/runtime/api/workflows/quality-pipeline.js +0 -401
  132. package/dist/runtime/api/workflows/vibing-orchestrator.d.ts +0 -406
  133. package/dist/runtime/api/workflows/vibing-orchestrator.js +0 -2462
  134. package/dist/runtime/api/workflows/workflow-effects.d.ts +0 -45
  135. package/dist/runtime/api/workflows/workflow-effects.js +0 -49
  136. package/dist/runtime/api/workflows/workflow-reconciler.d.ts +0 -65
  137. package/dist/runtime/api/workflows/workflow-reconciler.js +0 -226
  138. package/dist/runtime/api/workflows/workflow-reducer.d.ts +0 -26
  139. package/dist/runtime/api/workflows/workflow-reducer.js +0 -288
  140. package/dist/runtime/api/workflows/workflow-reducer.test.d.ts +0 -1
  141. package/dist/runtime/api/workflows/workflow-reducer.test.js +0 -247
  142. package/dist/runtime/api/workflows/workflow-schema.d.ts +0 -546
  143. package/dist/runtime/api/workflows/workflow-schema.js +0 -256
  144. package/dist/runtime/web/.next/BUILD_ID +0 -1
  145. package/dist/runtime/web/.next/app-build-manifest.json +0 -66
  146. package/dist/runtime/web/.next/app-path-routes-manifest.json +0 -8
  147. package/dist/runtime/web/.next/build-manifest.json +0 -33
  148. package/dist/runtime/web/.next/package.json +0 -1
  149. package/dist/runtime/web/.next/prerender-manifest.json +0 -61
  150. package/dist/runtime/web/.next/react-loadable-manifest.json +0 -8
  151. package/dist/runtime/web/.next/required-server-files.json +0 -334
  152. package/dist/runtime/web/.next/routes-manifest.json +0 -70
  153. package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js +0 -1
  154. package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route.js.nft.json +0 -1
  155. package/dist/runtime/web/.next/server/app/.vibeman/assets/images/[...path]/route_client-reference-manifest.js +0 -1
  156. package/dist/runtime/web/.next/server/app/_not-found/page.js +0 -2
  157. package/dist/runtime/web/.next/server/app/_not-found/page.js.nft.json +0 -1
  158. package/dist/runtime/web/.next/server/app/_not-found/page_client-reference-manifest.js +0 -1
  159. package/dist/runtime/web/.next/server/app/_not-found.html +0 -7
  160. package/dist/runtime/web/.next/server/app/_not-found.meta +0 -8
  161. package/dist/runtime/web/.next/server/app/_not-found.rsc +0 -22
  162. package/dist/runtime/web/.next/server/app/api/health/route.js +0 -1
  163. package/dist/runtime/web/.next/server/app/api/health/route.js.nft.json +0 -1
  164. package/dist/runtime/web/.next/server/app/api/health/route_client-reference-manifest.js +0 -1
  165. package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js +0 -1
  166. package/dist/runtime/web/.next/server/app/api/images/[...path]/route.js.nft.json +0 -1
  167. package/dist/runtime/web/.next/server/app/api/images/[...path]/route_client-reference-manifest.js +0 -1
  168. package/dist/runtime/web/.next/server/app/api/upload/route.js +0 -1
  169. package/dist/runtime/web/.next/server/app/api/upload/route.js.nft.json +0 -1
  170. package/dist/runtime/web/.next/server/app/api/upload/route_client-reference-manifest.js +0 -1
  171. package/dist/runtime/web/.next/server/app/index.html +0 -7
  172. package/dist/runtime/web/.next/server/app/index.meta +0 -7
  173. package/dist/runtime/web/.next/server/app/index.rsc +0 -27
  174. package/dist/runtime/web/.next/server/app/page.js +0 -112
  175. package/dist/runtime/web/.next/server/app/page.js.nft.json +0 -1
  176. package/dist/runtime/web/.next/server/app/page_client-reference-manifest.js +0 -1
  177. package/dist/runtime/web/.next/server/app-paths-manifest.json +0 -8
  178. package/dist/runtime/web/.next/server/chunks/210.js +0 -1
  179. package/dist/runtime/web/.next/server/chunks/291.js +0 -18
  180. package/dist/runtime/web/.next/server/chunks/552.js +0 -22
  181. package/dist/runtime/web/.next/server/chunks/780.js +0 -1
  182. package/dist/runtime/web/.next/server/chunks/905.js +0 -6
  183. package/dist/runtime/web/.next/server/chunks/98.js +0 -1
  184. package/dist/runtime/web/.next/server/functions-config-manifest.json +0 -4
  185. package/dist/runtime/web/.next/server/middleware-build-manifest.js +0 -1
  186. package/dist/runtime/web/.next/server/middleware-manifest.json +0 -6
  187. package/dist/runtime/web/.next/server/middleware-react-loadable-manifest.js +0 -1
  188. package/dist/runtime/web/.next/server/next-font-manifest.js +0 -1
  189. package/dist/runtime/web/.next/server/next-font-manifest.json +0 -1
  190. package/dist/runtime/web/.next/server/pages/404.html +0 -7
  191. package/dist/runtime/web/.next/server/pages/500.html +0 -1
  192. package/dist/runtime/web/.next/server/pages/_app.js +0 -1
  193. package/dist/runtime/web/.next/server/pages/_app.js.nft.json +0 -1
  194. package/dist/runtime/web/.next/server/pages/_document.js +0 -1
  195. package/dist/runtime/web/.next/server/pages/_document.js.nft.json +0 -1
  196. package/dist/runtime/web/.next/server/pages/_error.js +0 -19
  197. package/dist/runtime/web/.next/server/pages/_error.js.nft.json +0 -1
  198. package/dist/runtime/web/.next/server/pages-manifest.json +0 -6
  199. package/dist/runtime/web/.next/server/server-reference-manifest.js +0 -1
  200. package/dist/runtime/web/.next/server/server-reference-manifest.json +0 -1
  201. package/dist/runtime/web/.next/server/webpack-runtime.js +0 -1
  202. package/dist/runtime/web/.next/static/LJFZk_8tvKFN_Ee4HqUuM/_buildManifest.js +0 -1
  203. package/dist/runtime/web/.next/static/LJFZk_8tvKFN_Ee4HqUuM/_ssgManifest.js +0 -1
  204. package/dist/runtime/web/.next/static/chunks/05c91ade-7d09b2b280adffd1.js +0 -1
  205. package/dist/runtime/web/.next/static/chunks/201-51bef3fa8c832e2e.js +0 -1
  206. package/dist/runtime/web/.next/static/chunks/524-89747ed9b0294f8a.js +0 -1
  207. package/dist/runtime/web/.next/static/chunks/554-8bec6e9cca6acc67.js +0 -1
  208. package/dist/runtime/web/.next/static/chunks/764.86e9503a69d45a85.js +0 -1
  209. package/dist/runtime/web/.next/static/chunks/7ab4dc20-239138e0ae7af24a.js +0 -1
  210. package/dist/runtime/web/.next/static/chunks/905-342391e3d3a3678f.js +0 -20
  211. package/dist/runtime/web/.next/static/chunks/a8a5ce16-4edea7df2d9b544a.js +0 -79
  212. package/dist/runtime/web/.next/static/chunks/ad74d572-4c1b162e2c15acaa.js +0 -1
  213. package/dist/runtime/web/.next/static/chunks/app/.vibeman/assets/images/[...path]/route-7b752a8641f96c1f.js +0 -1
  214. package/dist/runtime/web/.next/static/chunks/app/_not-found/page-34e66b251c2b5044.js +0 -1
  215. package/dist/runtime/web/.next/static/chunks/app/api/health/route-7b752a8641f96c1f.js +0 -1
  216. package/dist/runtime/web/.next/static/chunks/app/api/images/[...path]/route-7b752a8641f96c1f.js +0 -1
  217. package/dist/runtime/web/.next/static/chunks/app/api/upload/route-7b752a8641f96c1f.js +0 -1
  218. package/dist/runtime/web/.next/static/chunks/app/layout-df9ac93cb02b2385.js +0 -1
  219. package/dist/runtime/web/.next/static/chunks/app/page-6610743f7de5f92a.js +0 -1
  220. package/dist/runtime/web/.next/static/chunks/c25e0690-e9b798b8de667da1.js +0 -1
  221. package/dist/runtime/web/.next/static/chunks/framework-57157ec4d37f64aa.js +0 -1
  222. package/dist/runtime/web/.next/static/chunks/main-app-156cc0c60371bd78.js +0 -1
  223. package/dist/runtime/web/.next/static/chunks/main-df25d367c47b1fec.js +0 -1
  224. package/dist/runtime/web/.next/static/chunks/pages/_app-9f629a5e1131d19f.js +0 -1
  225. package/dist/runtime/web/.next/static/chunks/pages/_error-9238238274c7efcd.js +0 -1
  226. package/dist/runtime/web/.next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  227. package/dist/runtime/web/.next/static/chunks/webpack-cd50e39b423d1808.js +0 -1
  228. package/dist/runtime/web/.next/static/css/2728291c68f99cb1.css +0 -3
  229. package/dist/runtime/web/.next/static/css/4fbf378a264bd4ea.css +0 -1
  230. package/dist/runtime/web/.next/static/css/521bd69cc298cd1a.css +0 -1
  231. package/dist/runtime/web/.next/static/css/537e22821e101b87.css +0 -1
  232. package/dist/runtime/web/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  233. package/dist/runtime/web/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  234. package/dist/runtime/web/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  235. package/dist/runtime/web/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  236. package/dist/runtime/web/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  237. package/dist/runtime/web/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  238. package/dist/runtime/web/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  239. package/dist/runtime/web/package.json +0 -65
  240. package/dist/runtime/web/server.js +0 -44
  241. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,199 +0,0 @@
1
- /**
2
- * Provider Configuration Router
3
- * Handles provider detection and local configuration management
4
- */
5
- /**
6
- * Provider Configuration Router
7
- */
8
- export declare function buildProviderConfigRoutes(): {
9
- /**
10
- * Detect all providers with current status
11
- */
12
- detectAllProviders: import("@trpc/server").TRPCQueryProcedure<{
13
- input: void;
14
- output: Record<string, import("../../lib/provider-detection.js").DetectionResult>;
15
- meta: object;
16
- }>;
17
- /**
18
- * Detect specific provider
19
- */
20
- detectProvider: import("@trpc/server").TRPCQueryProcedure<{
21
- input: {
22
- provider: string;
23
- };
24
- output: import("../../lib/provider-detection.js").DetectionResult;
25
- meta: object;
26
- }>;
27
- /**
28
- * Set explicit provider path
29
- */
30
- setProviderPath: import("@trpc/server").TRPCMutationProcedure<{
31
- input: {
32
- path: string;
33
- provider: string;
34
- };
35
- output: {
36
- success: boolean;
37
- result: import("../../lib/provider-detection.js").DetectionResult;
38
- };
39
- meta: object;
40
- }>;
41
- /**
42
- * Clear provider path (reset to auto-detection)
43
- */
44
- clearProviderPath: import("@trpc/server").TRPCMutationProcedure<{
45
- input: {
46
- provider: string;
47
- };
48
- output: {
49
- success: boolean;
50
- };
51
- meta: object;
52
- }>;
53
- /**
54
- * Get local configuration info
55
- */
56
- getLocalConfigInfo: import("@trpc/server").TRPCQueryProcedure<{
57
- input: void;
58
- output: {
59
- providers: {
60
- 'claude-code'?: {
61
- binPath?: string | undefined;
62
- detectedPath?: string | undefined;
63
- lastDetected?: string | undefined;
64
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
65
- } | undefined;
66
- codex?: {
67
- binPath?: string | undefined;
68
- detectedPath?: string | undefined;
69
- lastDetected?: string | undefined;
70
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
71
- } | undefined;
72
- gemini?: {
73
- binPath?: string | undefined;
74
- detectedPath?: string | undefined;
75
- lastDetected?: string | undefined;
76
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
77
- } | undefined;
78
- amp?: {
79
- binPath?: string | undefined;
80
- detectedPath?: string | undefined;
81
- lastDetected?: string | undefined;
82
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
83
- } | undefined;
84
- };
85
- path: string;
86
- exists: boolean;
87
- size?: number;
88
- };
89
- meta: object;
90
- }>;
91
- /**
92
- * Clear validation cache (force re-detection)
93
- */
94
- clearValidationCache: import("@trpc/server").TRPCMutationProcedure<{
95
- input: void;
96
- output: {
97
- success: boolean;
98
- };
99
- meta: object;
100
- }>;
101
- /**
102
- * Get provider detection diagnostics
103
- */
104
- getProviderDiagnostics: import("@trpc/server").TRPCQueryProcedure<{
105
- input: void;
106
- output: {
107
- localConfigPath: string;
108
- localConfigExists: boolean;
109
- providers: {
110
- provider: string;
111
- detection: import("../../lib/provider-detection.js").DetectionResult;
112
- localConfig: {
113
- binPath?: string | undefined;
114
- detectedPath?: string | undefined;
115
- lastDetected?: string | undefined;
116
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
117
- } | {
118
- binPath?: string | undefined;
119
- detectedPath?: string | undefined;
120
- lastDetected?: string | undefined;
121
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
122
- } | {
123
- binPath?: string | undefined;
124
- detectedPath?: string | undefined;
125
- lastDetected?: string | undefined;
126
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
127
- } | {
128
- binPath?: string | undefined;
129
- detectedPath?: string | undefined;
130
- lastDetected?: string | undefined;
131
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
132
- } | undefined;
133
- cached: {
134
- available: boolean;
135
- error: string | undefined;
136
- version: string | undefined;
137
- checkedAt: string;
138
- isFresh: boolean;
139
- } | null;
140
- }[];
141
- };
142
- meta: object;
143
- }>;
144
- };
145
- /**
146
- * Test-friendly plain handlers
147
- */
148
- export declare function buildProviderConfigRouteHandlers(): {
149
- readonly detectAllProviders: () => Promise<Record<string, import("../../lib/provider-detection.js").DetectionResult>>;
150
- readonly detectProvider: (input: {
151
- provider: string;
152
- }) => Promise<import("../../lib/provider-detection.js").DetectionResult>;
153
- readonly setProviderPath: (input: {
154
- provider: string;
155
- path: string;
156
- }) => Promise<{
157
- success: true;
158
- result: import("../../lib/provider-detection.js").DetectionResult;
159
- }>;
160
- readonly clearProviderPath: (input: {
161
- provider: string;
162
- }) => Promise<{
163
- success: true;
164
- }>;
165
- readonly getLocalConfigInfo: () => Promise<{
166
- providers: {
167
- 'claude-code'?: {
168
- binPath?: string | undefined;
169
- detectedPath?: string | undefined;
170
- lastDetected?: string | undefined;
171
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
172
- } | undefined;
173
- codex?: {
174
- binPath?: string | undefined;
175
- detectedPath?: string | undefined;
176
- lastDetected?: string | undefined;
177
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
178
- } | undefined;
179
- gemini?: {
180
- binPath?: string | undefined;
181
- detectedPath?: string | undefined;
182
- lastDetected?: string | undefined;
183
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
184
- } | undefined;
185
- amp?: {
186
- binPath?: string | undefined;
187
- detectedPath?: string | undefined;
188
- lastDetected?: string | undefined;
189
- detectionMethod?: "explicit" | "PATH" | "common-location" | undefined;
190
- } | undefined;
191
- };
192
- path: string;
193
- exists: boolean;
194
- size?: number;
195
- }>;
196
- readonly clearValidationCache: () => Promise<{
197
- success: true;
198
- }>;
199
- };
@@ -1,252 +0,0 @@
1
- /**
2
- * Provider Configuration Router
3
- * Handles provider detection and local configuration management
4
- */
5
- import { z } from 'zod';
6
- import { publicProcedure } from '../trpc.js';
7
- import { getProviderDetectionService } from '../../lib/provider-detection.js';
8
- import { getLocalConfigService } from '../../lib/local-config.js';
9
- import { log } from '../../lib/logger.js';
10
- /**
11
- * Input schemas for API endpoints
12
- */
13
- const DetectProviderInputSchema = z.object({
14
- provider: z.string(),
15
- });
16
- const SetProviderPathInputSchema = z.object({
17
- provider: z.string(),
18
- path: z.string().trim().min(1, 'Path is required'),
19
- });
20
- const ClearProviderPathInputSchema = z.object({
21
- provider: z.string(),
22
- });
23
- /**
24
- * Provider Configuration Router
25
- */
26
- export function buildProviderConfigRoutes() {
27
- return {
28
- /**
29
- * Detect all providers with current status
30
- */
31
- detectAllProviders: publicProcedure.query(async () => {
32
- try {
33
- const detectionService = getProviderDetectionService();
34
- const results = await detectionService.detectAllProviders();
35
- log.debug('Detected all providers', { results }, 'provider-config');
36
- return results;
37
- }
38
- catch (error) {
39
- const msg = `Failed to detect providers: ${error instanceof Error ? error.message : String(error)}`;
40
- log.error(msg, error, 'provider-config');
41
- throw new Error(msg);
42
- }
43
- }),
44
- /**
45
- * Detect specific provider
46
- */
47
- detectProvider: publicProcedure.input(DetectProviderInputSchema).query(async ({ input }) => {
48
- try {
49
- const detectionService = getProviderDetectionService();
50
- const result = await detectionService.detectProvider(input.provider);
51
- log.debug('Detected provider', { provider: input.provider, result }, 'provider-config');
52
- return result;
53
- }
54
- catch (error) {
55
- const msg = `Failed to detect provider ${input.provider}: ${error instanceof Error ? error.message : String(error)}`;
56
- log.error(msg, error, 'provider-config');
57
- throw new Error(msg);
58
- }
59
- }),
60
- /**
61
- * Set explicit provider path
62
- */
63
- setProviderPath: publicProcedure
64
- .input(SetProviderPathInputSchema)
65
- .mutation(async ({ input }) => {
66
- try {
67
- const detectionService = getProviderDetectionService();
68
- const result = await detectionService.setProviderPath(input.provider, input.path);
69
- if (!result.found) {
70
- throw new Error(result.error || 'Invalid provider path');
71
- }
72
- log.info('Set provider path', { provider: input.provider, path: input.path }, 'provider-config');
73
- return { success: true, result };
74
- }
75
- catch (error) {
76
- const msg = `Failed to set provider path: ${error instanceof Error ? error.message : String(error)}`;
77
- log.error(msg, error, 'provider-config');
78
- throw new Error(msg);
79
- }
80
- }),
81
- /**
82
- * Clear provider path (reset to auto-detection)
83
- */
84
- clearProviderPath: publicProcedure
85
- .input(ClearProviderPathInputSchema)
86
- .mutation(async ({ input }) => {
87
- try {
88
- const detectionService = getProviderDetectionService();
89
- await detectionService.clearProviderPath(input.provider);
90
- log.info('Cleared provider path', { provider: input.provider }, 'provider-config');
91
- return { success: true };
92
- }
93
- catch (error) {
94
- const msg = `Failed to clear provider path: ${error instanceof Error ? error.message : String(error)}`;
95
- log.error(msg, error, 'provider-config');
96
- throw new Error(msg);
97
- }
98
- }),
99
- /**
100
- * Get local configuration info
101
- */
102
- getLocalConfigInfo: publicProcedure.query(async () => {
103
- try {
104
- const localConfig = getLocalConfigService();
105
- await localConfig.initialize();
106
- const info = await localConfig.getConfigInfo();
107
- const config = localConfig.getConfig();
108
- return {
109
- ...info,
110
- providers: config.providers || {},
111
- };
112
- }
113
- catch (error) {
114
- const msg = `Failed to get local config info: ${error instanceof Error ? error.message : String(error)}`;
115
- log.error(msg, error, 'provider-config');
116
- throw new Error(msg);
117
- }
118
- }),
119
- /**
120
- * Clear validation cache (force re-detection)
121
- */
122
- clearValidationCache: publicProcedure.mutation(async () => {
123
- try {
124
- const localConfig = getLocalConfigService();
125
- await localConfig.initialize();
126
- await localConfig.clearValidationCache();
127
- log.info('Cleared validation cache', undefined, 'provider-config');
128
- return { success: true };
129
- }
130
- catch (error) {
131
- const msg = `Failed to clear validation cache: ${error instanceof Error ? error.message : String(error)}`;
132
- log.error(msg, error, 'provider-config');
133
- throw new Error(msg);
134
- }
135
- }),
136
- /**
137
- * Get provider detection diagnostics
138
- */
139
- getProviderDiagnostics: publicProcedure.query(async () => {
140
- try {
141
- const detectionService = getProviderDetectionService();
142
- const localConfig = getLocalConfigService();
143
- await localConfig.initialize();
144
- const detectionResults = await detectionService.detectAllProviders();
145
- const localConfigInfo = await localConfig.getConfigInfo();
146
- const providerConfigs = localConfig.getConfig().providers || {};
147
- const diagnostics = Object.entries(detectionResults).map(([provider, result]) => {
148
- const config = providerConfigs[provider];
149
- const cached = localConfig.getCachedValidationResult(provider);
150
- return {
151
- provider,
152
- detection: result,
153
- localConfig: config,
154
- cached: cached
155
- ? {
156
- available: cached.available,
157
- error: cached.error,
158
- version: cached.version,
159
- checkedAt: cached.checkedAt,
160
- isFresh: localConfig.isCachedValidationFresh(provider),
161
- }
162
- : null,
163
- };
164
- });
165
- return {
166
- localConfigPath: localConfigInfo.path,
167
- localConfigExists: localConfigInfo.exists,
168
- providers: diagnostics,
169
- };
170
- }
171
- catch (error) {
172
- const msg = `Failed to get provider diagnostics: ${error instanceof Error ? error.message : String(error)}`;
173
- log.error(msg, error, 'provider-config');
174
- throw new Error(msg);
175
- }
176
- }),
177
- };
178
- }
179
- /**
180
- * Test-friendly plain handlers
181
- */
182
- export function buildProviderConfigRouteHandlers() {
183
- return {
184
- async detectAllProviders() {
185
- try {
186
- const detectionService = getProviderDetectionService();
187
- return await detectionService.detectAllProviders();
188
- }
189
- catch (error) {
190
- throw new Error(`Failed to detect providers: ${error instanceof Error ? error.message : String(error)}`);
191
- }
192
- },
193
- async detectProvider(input) {
194
- try {
195
- const detectionService = getProviderDetectionService();
196
- return await detectionService.detectProvider(input.provider);
197
- }
198
- catch (error) {
199
- throw new Error(`Failed to detect provider ${input.provider}: ${error instanceof Error ? error.message : String(error)}`);
200
- }
201
- },
202
- async setProviderPath(input) {
203
- try {
204
- const detectionService = getProviderDetectionService();
205
- const result = await detectionService.setProviderPath(input.provider, input.path);
206
- if (!result.found) {
207
- throw new Error(result.error || 'Invalid provider path');
208
- }
209
- return { success: true, result };
210
- }
211
- catch (error) {
212
- throw new Error(`Failed to set provider path: ${error instanceof Error ? error.message : String(error)}`);
213
- }
214
- },
215
- async clearProviderPath(input) {
216
- try {
217
- const detectionService = getProviderDetectionService();
218
- await detectionService.clearProviderPath(input.provider);
219
- return { success: true };
220
- }
221
- catch (error) {
222
- throw new Error(`Failed to clear provider path: ${error instanceof Error ? error.message : String(error)}`);
223
- }
224
- },
225
- async getLocalConfigInfo() {
226
- try {
227
- const localConfig = getLocalConfigService();
228
- await localConfig.initialize();
229
- const info = await localConfig.getConfigInfo();
230
- const config = localConfig.getConfig();
231
- return {
232
- ...info,
233
- providers: config.providers || {},
234
- };
235
- }
236
- catch (error) {
237
- throw new Error(`Failed to get local config info: ${error instanceof Error ? error.message : String(error)}`);
238
- }
239
- },
240
- async clearValidationCache() {
241
- try {
242
- const localConfig = getLocalConfigService();
243
- await localConfig.initialize();
244
- await localConfig.clearValidationCache();
245
- return { success: true };
246
- }
247
- catch (error) {
248
- throw new Error(`Failed to clear validation cache: ${error instanceof Error ? error.message : String(error)}`);
249
- }
250
- },
251
- };
252
- }
@@ -1,158 +0,0 @@
1
- /**
2
- * tRPC routes for settings management
3
- */
4
- export declare function buildSettingsRoutes(): {
5
- /**
6
- * Get current project information
7
- */
8
- getProjectInfo: import("@trpc/server").TRPCQueryProcedure<{
9
- input: void;
10
- output: {
11
- name: string;
12
- path: string;
13
- };
14
- meta: object;
15
- }>;
16
- /**
17
- * Get Vibeman application information
18
- */
19
- getVibemanInfo: import("@trpc/server").TRPCQueryProcedure<{
20
- input: void;
21
- output: import("../../lib/server/vibeman-info.js").VibemanInfo;
22
- meta: object;
23
- }>;
24
- /**
25
- * Get current settings
26
- */
27
- getSettings: import("@trpc/server").TRPCQueryProcedure<{
28
- input: void;
29
- output: import("../../types/settings.js").VibemanSettings;
30
- meta: object;
31
- }>;
32
- /**
33
- * Detect quality checks using AI and persist them into settings
34
- */
35
- detectQualityChecks: import("@trpc/server").TRPCMutationProcedure<{
36
- input: void;
37
- output: {
38
- checks: {
39
- name: string;
40
- command: string;
41
- args: string[];
42
- timeout: number;
43
- enabled: boolean;
44
- }[];
45
- workingDirectory: string;
46
- };
47
- meta: object;
48
- }>;
49
- /**
50
- * Get a specific setting by path
51
- */
52
- getSetting: import("@trpc/server").TRPCQueryProcedure<{
53
- input: {
54
- path: string[];
55
- };
56
- output: unknown;
57
- meta: object;
58
- }>;
59
- /**
60
- * Update multiple settings
61
- */
62
- updateSettings: import("@trpc/server").TRPCMutationProcedure<{
63
- input: {
64
- path: string[];
65
- value?: unknown;
66
- }[];
67
- output: {
68
- success: boolean;
69
- errors: import("../../types/settings.js").SettingsValidationError[];
70
- };
71
- meta: object;
72
- }>;
73
- /**
74
- * Reset settings to defaults
75
- */
76
- resetToDefaults: import("@trpc/server").TRPCMutationProcedure<{
77
- input: void;
78
- output: import("../../types/settings.js").VibemanSettings;
79
- meta: object;
80
- }>;
81
- /**
82
- * Validate settings schema
83
- */
84
- validateSettings: import("@trpc/server").TRPCQueryProcedure<{
85
- input: Record<string, unknown>;
86
- output: {
87
- valid: boolean;
88
- errors: import("../../types/settings.js").SettingsValidationError[];
89
- };
90
- meta: object;
91
- }>;
92
- /**
93
- * Get settings file information
94
- */
95
- getSettingsInfo: import("@trpc/server").TRPCQueryProcedure<{
96
- input: void;
97
- output: {
98
- path: string;
99
- exists: boolean;
100
- };
101
- meta: object;
102
- }>;
103
- /**
104
- * Get available editor presets
105
- */
106
- getEditorPresets: import("@trpc/server").TRPCQueryProcedure<{
107
- input: void;
108
- output: Record<string, Partial<{
109
- type?: "vscode" | "cursor" | "vim" | "custom";
110
- command?: string;
111
- args?: string[];
112
- name?: string;
113
- openFileCommand?: string[];
114
- openFolderCommand?: string[];
115
- } | undefined>>;
116
- meta: object;
117
- }>;
118
- /**
119
- * Get available terminal presets
120
- */
121
- getTerminalPresets: import("@trpc/server").TRPCQueryProcedure<{
122
- input: void;
123
- output: Record<string, Partial<{
124
- type?: "system" | "iterm2" | "warp" | "custom";
125
- command?: string;
126
- args?: string[];
127
- name?: string;
128
- openCommand?: string[];
129
- } | undefined>>;
130
- meta: object;
131
- }>;
132
- /**
133
- * Apply editor preset configuration
134
- */
135
- applyEditorPreset: import("@trpc/server").TRPCMutationProcedure<{
136
- input: {
137
- presetName: string;
138
- };
139
- output: {
140
- success: boolean;
141
- errors: import("../../types/settings.js").SettingsValidationError[];
142
- };
143
- meta: object;
144
- }>;
145
- /**
146
- * Apply terminal preset configuration
147
- */
148
- applyTerminalPreset: import("@trpc/server").TRPCMutationProcedure<{
149
- input: {
150
- presetName: string;
151
- };
152
- output: {
153
- success: boolean;
154
- errors: import("../../types/settings.js").SettingsValidationError[];
155
- };
156
- meta: object;
157
- }>;
158
- };