@_davideast/stitch-mcp 0.5.0 → 0.5.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 (258) hide show
  1. package/dist/{chunk-hb3c6f6a.js → chunk-001yk06v.js} +2 -2
  2. package/dist/chunk-0cd2xak4.js +31447 -0
  3. package/dist/chunk-0cd2xak4.js.map +245 -0
  4. package/dist/{chunk-9tvppjaf.js → chunk-13mqag7n.js} +8 -10
  5. package/dist/{chunk-9tvppjaf.js.map → chunk-13mqag7n.js.map} +2 -2
  6. package/dist/chunk-1dcffh2w.js +1481 -0
  7. package/dist/chunk-1dcffh2w.js.map +23 -0
  8. package/dist/{chunk-985f11w6.js → chunk-26cgk4dt.js} +6 -8
  9. package/dist/{chunk-8yrtq2qs.js.map → chunk-26cgk4dt.js.map} +1 -1
  10. package/dist/chunk-2kg77g4q.js +167 -0
  11. package/dist/chunk-2kg77g4q.js.map +10 -0
  12. package/dist/chunk-34w2wfyp.js +68 -0
  13. package/dist/chunk-34w2wfyp.js.map +10 -0
  14. package/dist/chunk-44tn9dxb.js +19 -0
  15. package/dist/{chunk-985f11w6.js.map → chunk-44tn9dxb.js.map} +1 -1
  16. package/dist/chunk-5204d23a.js +24 -0
  17. package/dist/{chunk-ezmw2j8c.js.map → chunk-5204d23a.js.map} +1 -1
  18. package/dist/{chunk-mv9ssgmx.js → chunk-54wv5ptt.js} +5 -5
  19. package/dist/{chunk-mv9ssgmx.js.map → chunk-54wv5ptt.js.map} +2 -2
  20. package/dist/chunk-5dghg77b.js +16970 -0
  21. package/dist/chunk-5dghg77b.js.map +26 -0
  22. package/dist/{chunk-r2sg2nxa.js → chunk-5f2htt6r.js} +6 -7
  23. package/dist/chunk-5f2htt6r.js.map +9 -0
  24. package/dist/chunk-6gw9apqb.js +20 -0
  25. package/dist/chunk-6gw9apqb.js.map +10 -0
  26. package/dist/chunk-7bt2055x.js +39 -0
  27. package/dist/chunk-7bt2055x.js.map +10 -0
  28. package/dist/chunk-7egq85x5.js +273 -0
  29. package/dist/chunk-7egq85x5.js.map +10 -0
  30. package/dist/chunk-7pf2vfq9.js +69 -0
  31. package/dist/chunk-7pf2vfq9.js.map +10 -0
  32. package/dist/{chunk-q1nd6g0y.js → chunk-7rrhk07q.js} +76 -53
  33. package/dist/chunk-7rrhk07q.js.map +20 -0
  34. package/dist/{chunk-7xh1y383.js → chunk-7xsar3mr.js} +2 -2
  35. package/dist/{chunk-7xh1y383.js.map → chunk-7xsar3mr.js.map} +1 -1
  36. package/dist/chunk-7y4xzvkz.js +19132 -0
  37. package/dist/chunk-7y4xzvkz.js.map +115 -0
  38. package/dist/chunk-7zy0vdv5.js +761 -0
  39. package/dist/chunk-7zy0vdv5.js.map +18 -0
  40. package/dist/chunk-8rt3pp6g.js +256 -0
  41. package/dist/{chunk-jy2d17pr.js.map → chunk-8rt3pp6g.js.map} +3 -3
  42. package/dist/chunk-98trrxk2.js +40 -0
  43. package/dist/chunk-98trrxk2.js.map +10 -0
  44. package/dist/chunk-a1mk24q9.js +31326 -0
  45. package/dist/chunk-a1mk24q9.js.map +245 -0
  46. package/dist/chunk-a5xra9jn.js +159 -0
  47. package/dist/chunk-a5xra9jn.js.map +11 -0
  48. package/dist/chunk-abf1r0jh.js +2118 -0
  49. package/dist/chunk-abf1r0jh.js.map +44 -0
  50. package/dist/{chunk-25wakzyb.js → chunk-ahw5kfbr.js} +5 -5
  51. package/dist/chunk-akd997ec.js +11061 -0
  52. package/dist/chunk-akd997ec.js.map +238 -0
  53. package/dist/chunk-by28t333.js +19 -0
  54. package/dist/chunk-by28t333.js.map +9 -0
  55. package/dist/{chunk-2k7n0w2x.js → chunk-c6ge431q.js} +2 -2
  56. package/dist/{chunk-2k7n0w2x.js.map → chunk-c6ge431q.js.map} +1 -1
  57. package/dist/{chunk-ycfxp056.js → chunk-cnmspfhx.js} +7 -11
  58. package/dist/chunk-cnmspfhx.js.map +17 -0
  59. package/dist/chunk-cwqdka8y.js +6382 -0
  60. package/dist/chunk-cwqdka8y.js.map +109 -0
  61. package/dist/chunk-dffwrtn3.js +673 -0
  62. package/dist/chunk-dffwrtn3.js.map +17 -0
  63. package/dist/chunk-dyp9t5wf.js +44109 -0
  64. package/dist/chunk-dyp9t5wf.js.map +237 -0
  65. package/dist/chunk-e9881zy4.js +39 -0
  66. package/dist/chunk-e9881zy4.js.map +10 -0
  67. package/dist/chunk-ezs0qz0b.js +24 -0
  68. package/dist/chunk-ezs0qz0b.js.map +9 -0
  69. package/dist/chunk-f6cq8r7x.js +736 -0
  70. package/dist/chunk-f6cq8r7x.js.map +16 -0
  71. package/dist/{chunk-45wx7tn7.js → chunk-gwnmywrp.js} +2 -2
  72. package/dist/chunk-gz78f003.js +94 -0
  73. package/dist/chunk-gz78f003.js.map +10 -0
  74. package/dist/chunk-j0y94q2c.js +10 -0
  75. package/dist/{chunk-nthabjd9.js → chunk-jyem6j6k.js} +1848 -3
  76. package/dist/chunk-jyem6j6k.js.map +65 -0
  77. package/dist/chunk-kad4d9sf.js +11 -0
  78. package/dist/chunk-kad4d9sf.js.map +9 -0
  79. package/dist/{chunk-wz8d5vzb.js → chunk-krfqppg2.js} +32 -2
  80. package/dist/{chunk-wz8d5vzb.js.map → chunk-krfqppg2.js.map} +5 -4
  81. package/dist/chunk-kw62yeqn.js +124 -0
  82. package/dist/chunk-kw62yeqn.js.map +12 -0
  83. package/dist/chunk-mbt1wx7n.js +43 -0
  84. package/dist/chunk-mbt1wx7n.js.map +10 -0
  85. package/dist/chunk-nzv6abbc.js +22 -0
  86. package/dist/chunk-nzv6abbc.js.map +9 -0
  87. package/dist/{chunk-cwkb2wbe.js → chunk-pjpdhh0f.js} +27 -24
  88. package/dist/chunk-pjpdhh0f.js.map +16 -0
  89. package/dist/chunk-py8fhw0k.js +941 -0
  90. package/dist/chunk-py8fhw0k.js.map +27 -0
  91. package/dist/chunk-q6sv0243.js +93 -0
  92. package/dist/chunk-q6sv0243.js.map +13 -0
  93. package/dist/chunk-r8n5m3xq.js +19 -0
  94. package/dist/chunk-r8n5m3xq.js.map +9 -0
  95. package/dist/{chunk-nxpzt33t.js → chunk-rcwtjara.js} +8 -13
  96. package/dist/chunk-rcwtjara.js.map +10 -0
  97. package/dist/{chunk-t85nbjjb.js → chunk-rfrcdsfc.js} +5 -9
  98. package/dist/chunk-rfrcdsfc.js.map +10 -0
  99. package/dist/chunk-rj2gqxxb.js +415 -0
  100. package/dist/chunk-rj2gqxxb.js.map +20 -0
  101. package/dist/{chunk-v7117ywx.js → chunk-rvq1vb70.js} +5 -7
  102. package/dist/{chunk-v7117ywx.js.map → chunk-rvq1vb70.js.map} +2 -2
  103. package/dist/chunk-smvqara3.js +370 -0
  104. package/dist/chunk-smvqara3.js.map +16 -0
  105. package/dist/{chunk-pfyjtfex.js → chunk-sp8zjpbf.js} +7 -12
  106. package/dist/chunk-sp8zjpbf.js.map +10 -0
  107. package/dist/{chunk-48d17n29.js → chunk-ssbg48ec.js} +1 -1
  108. package/dist/chunk-ssbg48ec.js.map +9 -0
  109. package/dist/chunk-st7q66e5.js +109 -0
  110. package/dist/chunk-st7q66e5.js.map +10 -0
  111. package/dist/{chunk-sdp429xd.js → chunk-sw7h7asn.js} +32 -8
  112. package/dist/chunk-sw7h7asn.js.map +27 -0
  113. package/dist/chunk-t092ehvp.js +50 -0
  114. package/dist/chunk-t092ehvp.js.map +9 -0
  115. package/dist/{chunk-2cetsfw4.js → chunk-t0xqfse1.js} +50 -9
  116. package/dist/{chunk-2cetsfw4.js.map → chunk-t0xqfse1.js.map} +8 -3
  117. package/dist/chunk-v1t5vys5.js +124 -0
  118. package/dist/chunk-v1t5vys5.js.map +12 -0
  119. package/dist/chunk-v78rg840.js +137 -0
  120. package/dist/chunk-v78rg840.js.map +10 -0
  121. package/dist/chunk-v7xskyzm.js +19 -0
  122. package/dist/chunk-v7xskyzm.js.map +9 -0
  123. package/dist/{chunk-jy2d17pr.js → chunk-vjshqjmh.js} +12 -8
  124. package/dist/chunk-vjshqjmh.js.map +11 -0
  125. package/dist/chunk-w8075wyx.js +40 -0
  126. package/dist/chunk-w8075wyx.js.map +10 -0
  127. package/dist/chunk-wn8mek6a.js +189 -0
  128. package/dist/chunk-wn8mek6a.js.map +11 -0
  129. package/dist/{chunk-2kyqsrg2.js → chunk-y447ymks.js} +364 -3
  130. package/dist/chunk-y447ymks.js.map +18 -0
  131. package/dist/chunk-yej34vkc.js +247 -0
  132. package/dist/chunk-yej34vkc.js.map +14 -0
  133. package/dist/commands/doctor/command.js +2 -2
  134. package/dist/commands/init/command.js +2 -2
  135. package/dist/commands/logout/command.js +2 -2
  136. package/dist/commands/proxy/command.js +4 -5
  137. package/dist/commands/proxy/command.js.map +3 -3
  138. package/dist/commands/proxy/handler.d.ts +27 -5
  139. package/dist/commands/registry.d.ts +2 -0
  140. package/dist/commands/screens/ScreensView.d.ts +1 -3
  141. package/dist/commands/screens/command.js +8 -10
  142. package/dist/commands/screens/command.js.map +3 -3
  143. package/dist/commands/screens/handler.d.ts +5 -6
  144. package/dist/commands/serve/command.js +60 -10
  145. package/dist/commands/serve/command.js.map +7 -5
  146. package/dist/commands/serve/handler.d.ts +6 -21
  147. package/dist/commands/serve/json-server/handler.d.ts +8 -0
  148. package/dist/commands/serve/json-server/spec.d.ts +32 -0
  149. package/dist/commands/serve/list-screens/handler.d.ts +7 -0
  150. package/dist/commands/serve/list-screens/spec.d.ts +33 -0
  151. package/dist/commands/serve/spec.d.ts +30 -0
  152. package/dist/commands/site/command.js +12 -6
  153. package/dist/commands/site/command.js.map +4 -4
  154. package/dist/commands/site/generate/handler.d.ts +8 -0
  155. package/dist/commands/site/generate/spec.d.ts +44 -0
  156. package/dist/commands/site/hooks/useProjectHydration.d.ts +2 -2
  157. package/dist/commands/site/index.d.ts +5 -3
  158. package/dist/commands/site/list-screens/handler.d.ts +7 -0
  159. package/dist/commands/site/list-screens/spec.d.ts +33 -0
  160. package/dist/commands/site/spec.d.ts +6 -0
  161. package/dist/commands/site/ui/SiteBuilder.d.ts +2 -2
  162. package/dist/commands/site/utils/fetchWithRetry.d.ts +10 -0
  163. package/dist/commands/site/utils/suggestRoute.d.ts +1 -0
  164. package/dist/commands/snapshot/command.js +2 -2
  165. package/dist/commands/tool/command.js +2 -2
  166. package/dist/commands/tool/command.js.map +2 -2
  167. package/dist/commands/tool/context.d.ts +3 -2
  168. package/dist/commands/tool/handler.d.ts +9 -10
  169. package/dist/commands/tool/spec.d.ts +3 -2
  170. package/dist/commands/view/command.js +2 -2
  171. package/dist/index.js +11 -13
  172. package/dist/index.js.map +1 -1
  173. package/dist/platform/browser.d.ts +8 -0
  174. package/dist/services/mcp-client/client.d.ts +5 -0
  175. package/dist/services/mcp-client/spec.d.ts +6 -6
  176. package/dist/services/proxy/spec.d.ts +3 -3
  177. package/dist/services/stitch-sdk/MockStitchSDK.d.ts +18 -0
  178. package/dist/services/view/handler.d.ts +3 -3
  179. package/dist/ui/copy-behaviors/index.d.ts +8 -0
  180. package/dist/ui/navigation-behaviors/index.d.ts +34 -0
  181. package/dist/ui/serve-behaviors/index.d.ts +7 -0
  182. package/package.json +2 -1
  183. package/dist/chunk-2fcdwvrm.js +0 -54
  184. package/dist/chunk-2fcdwvrm.js.map +0 -10
  185. package/dist/chunk-2kyqsrg2.js.map +0 -10
  186. package/dist/chunk-8yrtq2qs.js +0 -18
  187. package/dist/chunk-cwkb2wbe.js.map +0 -16
  188. package/dist/chunk-djhzzcgj.js +0 -362
  189. package/dist/chunk-djhzzcgj.js.map +0 -13
  190. package/dist/chunk-ezmw2j8c.js +0 -14
  191. package/dist/chunk-fwb4fnkp.js +0 -31
  192. package/dist/chunk-fwb4fnkp.js.map +0 -10
  193. package/dist/chunk-h18jrqed.js +0 -9517
  194. package/dist/chunk-h18jrqed.js.map +0 -99
  195. package/dist/chunk-knbnsf6s.js +0 -92
  196. package/dist/chunk-knbnsf6s.js.map +0 -10
  197. package/dist/chunk-nthabjd9.js.map +0 -34
  198. package/dist/chunk-nxpzt33t.js.map +0 -10
  199. package/dist/chunk-pfyjtfex.js.map +0 -10
  200. package/dist/chunk-q1nd6g0y.js.map +0 -20
  201. package/dist/chunk-q4js8r0z.js +0 -4708
  202. package/dist/chunk-q4js8r0z.js.map +0 -29
  203. package/dist/chunk-qv44tmn6.js +0 -289
  204. package/dist/chunk-qv44tmn6.js.map +0 -13
  205. package/dist/chunk-r2sg2nxa.js.map +0 -9
  206. package/dist/chunk-rpxnm86e.js +0 -372
  207. package/dist/chunk-rpxnm86e.js.map +0 -17
  208. package/dist/chunk-sdp429xd.js.map +0 -24
  209. package/dist/chunk-t85nbjjb.js.map +0 -10
  210. package/dist/chunk-wa64nz8b.js +0 -47
  211. package/dist/chunk-wa64nz8b.js.map +0 -10
  212. package/dist/chunk-ycfxp056.js.map +0 -17
  213. package/dist/chunk-z9d2xc83.js +0 -3256
  214. package/dist/chunk-z9d2xc83.js.map +0 -84
  215. package/dist/services/config/handler.d.ts +0 -12
  216. package/dist/services/config/spec.d.ts +0 -82
  217. package/dist/src/cli.d.ts +0 -1
  218. package/dist/src/commands/doctor/handler.d.ts +0 -9
  219. package/dist/src/commands/doctor/handler.test.d.ts +0 -1
  220. package/dist/src/commands/doctor/spec.d.ts +0 -130
  221. package/dist/src/commands/doctor/spec.test.d.ts +0 -1
  222. package/dist/src/commands/init/handler.d.ts +0 -17
  223. package/dist/src/commands/init/handler.test.d.ts +0 -1
  224. package/dist/src/commands/init/spec.d.ts +0 -88
  225. package/dist/src/commands/init/spec.test.d.ts +0 -1
  226. package/dist/src/commands/proxy/handler.d.ts +0 -7
  227. package/dist/src/commands/proxy/handler.test.d.ts +0 -1
  228. package/dist/src/index.d.ts +0 -13
  229. package/dist/src/platform/detector.d.ts +0 -29
  230. package/dist/src/platform/paths.d.ts +0 -20
  231. package/dist/src/platform/shell.d.ts +0 -26
  232. package/dist/src/services/gcloud/handler.d.ts +0 -48
  233. package/dist/src/services/gcloud/handler.test.d.ts +0 -1
  234. package/dist/src/services/gcloud/spec.d.ts +0 -405
  235. package/dist/src/services/mcp-config/handler.d.ts +0 -12
  236. package/dist/src/services/mcp-config/handler.test.d.ts +0 -1
  237. package/dist/src/services/mcp-config/spec.d.ts +0 -88
  238. package/dist/src/services/mcp-config/spec.test.d.ts +0 -1
  239. package/dist/src/services/project/handler.d.ts +0 -11
  240. package/dist/src/services/project/handler.test.d.ts +0 -1
  241. package/dist/src/services/project/spec.d.ts +0 -86
  242. package/dist/src/services/project/spec.test.d.ts +0 -1
  243. package/dist/src/services/proxy/handler.d.ts +0 -15
  244. package/dist/src/services/proxy/handler.test.d.ts +0 -1
  245. package/dist/src/services/proxy/spec.d.ts +0 -83
  246. package/dist/src/services/proxy/spec.test.d.ts +0 -1
  247. package/dist/src/services/stitch/handler.d.ts +0 -15
  248. package/dist/src/services/stitch/handler.test.d.ts +0 -1
  249. package/dist/src/services/stitch/spec.d.ts +0 -262
  250. package/dist/src/services/stitch/spec.test.d.ts +0 -1
  251. package/dist/src/ui/spinner.d.ts +0 -11
  252. package/dist/src/ui/theme.d.ts +0 -18
  253. package/dist/src/ui/wizard.d.ts +0 -24
  254. package/dist/tests/mocks/shell.d.ts +0 -2
  255. /package/dist/{chunk-hb3c6f6a.js.map → chunk-001yk06v.js.map} +0 -0
  256. /package/dist/{chunk-25wakzyb.js.map → chunk-ahw5kfbr.js.map} +0 -0
  257. /package/dist/{chunk-45wx7tn7.js.map → chunk-gwnmywrp.js.map} +0 -0
  258. /package/dist/{chunk-48d17n29.js.map → chunk-j0y94q2c.js.map} +0 -0
@@ -1,12 +0,0 @@
1
- import type { GcloudService } from '../gcloud/spec';
2
- import type { ResolveContextResult, ConfigService } from './spec';
3
- export interface FileSystem {
4
- existsSync(path: string): boolean;
5
- readFileSync(path: string, encoding: BufferEncoding): string;
6
- }
7
- export declare class ConfigHandler implements ConfigService {
8
- private gcloud;
9
- private fs;
10
- constructor(gcloud: GcloudService, fs?: FileSystem);
11
- resolveContext(): Promise<ResolveContextResult>;
12
- }
@@ -1,82 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const ConfigErrorCode: z.ZodEnum<["INVALID_CONFIG", "MISSING_PROJECT_ID", "UNKNOWN_ERROR"]>;
3
- export declare const ProjectContextSchema: z.ZodObject<{
4
- projectId: z.ZodString;
5
- source: z.ZodEnum<["env", "package.json", "gcloud"]>;
6
- gcloudMode: z.ZodOptional<z.ZodEnum<["bundled", "system"]>>;
7
- }, "strip", z.ZodTypeAny, {
8
- projectId: string;
9
- source: "gcloud" | "env" | "package.json";
10
- gcloudMode?: "system" | "bundled" | undefined;
11
- }, {
12
- projectId: string;
13
- source: "gcloud" | "env" | "package.json";
14
- gcloudMode?: "system" | "bundled" | undefined;
15
- }>;
16
- export declare const ResolveContextSuccess: z.ZodObject<{
17
- success: z.ZodLiteral<true>;
18
- data: z.ZodObject<{
19
- projectId: z.ZodString;
20
- source: z.ZodEnum<["env", "package.json", "gcloud"]>;
21
- gcloudMode: z.ZodOptional<z.ZodEnum<["bundled", "system"]>>;
22
- }, "strip", z.ZodTypeAny, {
23
- projectId: string;
24
- source: "gcloud" | "env" | "package.json";
25
- gcloudMode?: "system" | "bundled" | undefined;
26
- }, {
27
- projectId: string;
28
- source: "gcloud" | "env" | "package.json";
29
- gcloudMode?: "system" | "bundled" | undefined;
30
- }>;
31
- }, "strip", z.ZodTypeAny, {
32
- success: true;
33
- data: {
34
- projectId: string;
35
- source: "gcloud" | "env" | "package.json";
36
- gcloudMode?: "system" | "bundled" | undefined;
37
- };
38
- }, {
39
- success: true;
40
- data: {
41
- projectId: string;
42
- source: "gcloud" | "env" | "package.json";
43
- gcloudMode?: "system" | "bundled" | undefined;
44
- };
45
- }>;
46
- export declare const ResolveContextFailure: z.ZodObject<{
47
- success: z.ZodLiteral<false>;
48
- error: z.ZodObject<{
49
- code: z.ZodEnum<["INVALID_CONFIG", "MISSING_PROJECT_ID", "UNKNOWN_ERROR"]>;
50
- message: z.ZodString;
51
- recoverable: z.ZodBoolean;
52
- }, "strip", z.ZodTypeAny, {
53
- code: "UNKNOWN_ERROR" | "INVALID_CONFIG" | "MISSING_PROJECT_ID";
54
- message: string;
55
- recoverable: boolean;
56
- }, {
57
- code: "UNKNOWN_ERROR" | "INVALID_CONFIG" | "MISSING_PROJECT_ID";
58
- message: string;
59
- recoverable: boolean;
60
- }>;
61
- }, "strip", z.ZodTypeAny, {
62
- success: false;
63
- error: {
64
- code: "UNKNOWN_ERROR" | "INVALID_CONFIG" | "MISSING_PROJECT_ID";
65
- message: string;
66
- recoverable: boolean;
67
- };
68
- }, {
69
- success: false;
70
- error: {
71
- code: "UNKNOWN_ERROR" | "INVALID_CONFIG" | "MISSING_PROJECT_ID";
72
- message: string;
73
- recoverable: boolean;
74
- };
75
- }>;
76
- export type ResolveContextResult = z.infer<typeof ResolveContextSuccess> | z.infer<typeof ResolveContextFailure>;
77
- export interface ConfigService {
78
- /**
79
- * Resolves the project context based on the cascade: Env > Valid Package.json > Active Gcloud Project
80
- */
81
- resolveContext(): Promise<ResolveContextResult>;
82
- }
package/dist/src/cli.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import { type DoctorCommand, type DoctorInput, type DoctorResult } from './spec.js';
2
- import { type GcloudService } from '../../services/gcloud/spec.js';
3
- import { type StitchService } from '../../services/stitch/spec.js';
4
- export declare class DoctorHandler implements DoctorCommand {
5
- private readonly gcloudService;
6
- private readonly stitchService;
7
- constructor(gcloudService?: GcloudService, stitchService?: StitchService);
8
- execute(input: DoctorInput): Promise<DoctorResult>;
9
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,130 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const DoctorInputSchema: z.ZodObject<{
3
- verbose: z.ZodDefault<z.ZodBoolean>;
4
- }, "strip", z.ZodTypeAny, {
5
- verbose: boolean;
6
- }, {
7
- verbose?: boolean | undefined;
8
- }>;
9
- export type DoctorInput = z.infer<typeof DoctorInputSchema>;
10
- export declare const DoctorErrorCode: z.ZodEnum<["CHECKS_FAILED", "UNKNOWN_ERROR"]>;
11
- export declare const HealthCheckSchema: z.ZodObject<{
12
- name: z.ZodString;
13
- passed: z.ZodBoolean;
14
- message: z.ZodString;
15
- suggestion: z.ZodOptional<z.ZodString>;
16
- details: z.ZodOptional<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- message: string;
19
- name: string;
20
- passed: boolean;
21
- suggestion?: string | undefined;
22
- details?: string | undefined;
23
- }, {
24
- message: string;
25
- name: string;
26
- passed: boolean;
27
- suggestion?: string | undefined;
28
- details?: string | undefined;
29
- }>;
30
- export declare const DoctorSuccess: z.ZodObject<{
31
- success: z.ZodLiteral<true>;
32
- data: z.ZodObject<{
33
- checks: z.ZodArray<z.ZodObject<{
34
- name: z.ZodString;
35
- passed: z.ZodBoolean;
36
- message: z.ZodString;
37
- suggestion: z.ZodOptional<z.ZodString>;
38
- details: z.ZodOptional<z.ZodString>;
39
- }, "strip", z.ZodTypeAny, {
40
- message: string;
41
- name: string;
42
- passed: boolean;
43
- suggestion?: string | undefined;
44
- details?: string | undefined;
45
- }, {
46
- message: string;
47
- name: string;
48
- passed: boolean;
49
- suggestion?: string | undefined;
50
- details?: string | undefined;
51
- }>, "many">;
52
- allPassed: z.ZodBoolean;
53
- }, "strip", z.ZodTypeAny, {
54
- checks: {
55
- message: string;
56
- name: string;
57
- passed: boolean;
58
- suggestion?: string | undefined;
59
- details?: string | undefined;
60
- }[];
61
- allPassed: boolean;
62
- }, {
63
- checks: {
64
- message: string;
65
- name: string;
66
- passed: boolean;
67
- suggestion?: string | undefined;
68
- details?: string | undefined;
69
- }[];
70
- allPassed: boolean;
71
- }>;
72
- }, "strip", z.ZodTypeAny, {
73
- success: true;
74
- data: {
75
- checks: {
76
- message: string;
77
- name: string;
78
- passed: boolean;
79
- suggestion?: string | undefined;
80
- details?: string | undefined;
81
- }[];
82
- allPassed: boolean;
83
- };
84
- }, {
85
- success: true;
86
- data: {
87
- checks: {
88
- message: string;
89
- name: string;
90
- passed: boolean;
91
- suggestion?: string | undefined;
92
- details?: string | undefined;
93
- }[];
94
- allPassed: boolean;
95
- };
96
- }>;
97
- export declare const DoctorFailure: z.ZodObject<{
98
- success: z.ZodLiteral<false>;
99
- error: z.ZodObject<{
100
- code: z.ZodEnum<["CHECKS_FAILED", "UNKNOWN_ERROR"]>;
101
- message: z.ZodString;
102
- recoverable: z.ZodBoolean;
103
- }, "strip", z.ZodTypeAny, {
104
- code: "UNKNOWN_ERROR" | "CHECKS_FAILED";
105
- message: string;
106
- recoverable: boolean;
107
- }, {
108
- code: "UNKNOWN_ERROR" | "CHECKS_FAILED";
109
- message: string;
110
- recoverable: boolean;
111
- }>;
112
- }, "strip", z.ZodTypeAny, {
113
- success: false;
114
- error: {
115
- code: "UNKNOWN_ERROR" | "CHECKS_FAILED";
116
- message: string;
117
- recoverable: boolean;
118
- };
119
- }, {
120
- success: false;
121
- error: {
122
- code: "UNKNOWN_ERROR" | "CHECKS_FAILED";
123
- message: string;
124
- recoverable: boolean;
125
- };
126
- }>;
127
- export type DoctorResult = z.infer<typeof DoctorSuccess> | z.infer<typeof DoctorFailure>;
128
- export interface DoctorCommand {
129
- execute(input: DoctorInput): Promise<DoctorResult>;
130
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- import { type InitCommand, type InitInput, type InitResult } from './spec.js';
2
- import { type GcloudService } from '../../services/gcloud/spec.js';
3
- import { type ProjectService } from '../../services/project/spec.js';
4
- import { type StitchService } from '../../services/stitch/spec.js';
5
- import { type McpConfigService } from '../../services/mcp-config/spec.js';
6
- export declare class InitHandler implements InitCommand {
7
- private readonly gcloudService;
8
- private readonly mcpConfigService;
9
- private readonly projectService;
10
- private readonly stitchService;
11
- constructor(gcloudService?: GcloudService, mcpConfigService?: McpConfigService, projectService?: ProjectService, // ProjectHandler depends on GcloudHandler
12
- stitchService?: StitchService);
13
- execute(input: InitInput): Promise<InitResult>;
14
- private resolveMcpClient;
15
- private resolveTransport;
16
- private setupGeminiExtension;
17
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,88 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const InitInputSchema: z.ZodObject<{
3
- local: z.ZodDefault<z.ZodBoolean>;
4
- defaults: z.ZodDefault<z.ZodBoolean>;
5
- client: z.ZodOptional<z.ZodString>;
6
- transport: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- local: boolean;
9
- defaults: boolean;
10
- client?: string | undefined;
11
- transport?: string | undefined;
12
- }, {
13
- local?: boolean | undefined;
14
- defaults?: boolean | undefined;
15
- client?: string | undefined;
16
- transport?: string | undefined;
17
- }>;
18
- export type InitInput = z.infer<typeof InitInputSchema>;
19
- export declare const InitErrorCode: z.ZodEnum<["GCLOUD_SETUP_FAILED", "AUTH_FAILED", "PROJECT_SELECTION_FAILED", "API_CONFIG_FAILED", "CONFIG_GENERATION_FAILED", "USER_CANCELLED", "UNKNOWN_ERROR"]>;
20
- export declare const InitSuccess: z.ZodObject<{
21
- success: z.ZodLiteral<true>;
22
- data: z.ZodObject<{
23
- projectId: z.ZodString;
24
- mcpConfig: z.ZodString;
25
- instructions: z.ZodString;
26
- }, "strip", z.ZodTypeAny, {
27
- projectId: string;
28
- mcpConfig: string;
29
- instructions: string;
30
- }, {
31
- projectId: string;
32
- mcpConfig: string;
33
- instructions: string;
34
- }>;
35
- }, "strip", z.ZodTypeAny, {
36
- success: true;
37
- data: {
38
- projectId: string;
39
- mcpConfig: string;
40
- instructions: string;
41
- };
42
- }, {
43
- success: true;
44
- data: {
45
- projectId: string;
46
- mcpConfig: string;
47
- instructions: string;
48
- };
49
- }>;
50
- export declare const InitFailure: z.ZodObject<{
51
- success: z.ZodLiteral<false>;
52
- error: z.ZodObject<{
53
- code: z.ZodEnum<["GCLOUD_SETUP_FAILED", "AUTH_FAILED", "PROJECT_SELECTION_FAILED", "API_CONFIG_FAILED", "CONFIG_GENERATION_FAILED", "USER_CANCELLED", "UNKNOWN_ERROR"]>;
54
- message: z.ZodString;
55
- suggestion: z.ZodOptional<z.ZodString>;
56
- recoverable: z.ZodBoolean;
57
- }, "strip", z.ZodTypeAny, {
58
- code: "GCLOUD_SETUP_FAILED" | "AUTH_FAILED" | "PROJECT_SELECTION_FAILED" | "API_CONFIG_FAILED" | "CONFIG_GENERATION_FAILED" | "USER_CANCELLED" | "UNKNOWN_ERROR";
59
- message: string;
60
- recoverable: boolean;
61
- suggestion?: string | undefined;
62
- }, {
63
- code: "GCLOUD_SETUP_FAILED" | "AUTH_FAILED" | "PROJECT_SELECTION_FAILED" | "API_CONFIG_FAILED" | "CONFIG_GENERATION_FAILED" | "USER_CANCELLED" | "UNKNOWN_ERROR";
64
- message: string;
65
- recoverable: boolean;
66
- suggestion?: string | undefined;
67
- }>;
68
- }, "strip", z.ZodTypeAny, {
69
- success: false;
70
- error: {
71
- code: "GCLOUD_SETUP_FAILED" | "AUTH_FAILED" | "PROJECT_SELECTION_FAILED" | "API_CONFIG_FAILED" | "CONFIG_GENERATION_FAILED" | "USER_CANCELLED" | "UNKNOWN_ERROR";
72
- message: string;
73
- recoverable: boolean;
74
- suggestion?: string | undefined;
75
- };
76
- }, {
77
- success: false;
78
- error: {
79
- code: "GCLOUD_SETUP_FAILED" | "AUTH_FAILED" | "PROJECT_SELECTION_FAILED" | "API_CONFIG_FAILED" | "CONFIG_GENERATION_FAILED" | "USER_CANCELLED" | "UNKNOWN_ERROR";
80
- message: string;
81
- recoverable: boolean;
82
- suggestion?: string | undefined;
83
- };
84
- }>;
85
- export type InitResult = z.infer<typeof InitSuccess> | z.infer<typeof InitFailure>;
86
- export interface InitCommand {
87
- execute(input: InitInput): Promise<InitResult>;
88
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import { ProxyHandler } from '../../services/proxy/handler.js';
2
- import type { StartProxyInput, ProxyResult } from '../../services/proxy/spec.js';
3
- export declare class ProxyCommandHandler {
4
- private proxyService;
5
- constructor(proxyService?: ProxyHandler);
6
- execute(input: StartProxyInput): Promise<ProxyResult>;
7
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- export { GcloudHandler } from './services/gcloud/handler.js';
2
- export { ProjectHandler } from './services/project/handler.js';
3
- export { StitchHandler } from './services/stitch/handler.js';
4
- export { McpConfigHandler } from './services/mcp-config/handler.js';
5
- export { InitHandler } from './commands/init/handler.js';
6
- export { DoctorHandler } from './commands/doctor/handler.js';
7
- export type { GcloudService } from './services/gcloud/spec.js';
8
- export type { ProjectService } from './services/project/spec.js';
9
- export type { StitchService } from './services/stitch/spec.js';
10
- export type { McpConfigService } from './services/mcp-config/spec.js';
11
- export type { InitCommand } from './commands/init/spec.js';
12
- export type { DoctorCommand } from './commands/doctor/spec.js';
13
- export type { McpClient } from './ui/wizard.js';
@@ -1,29 +0,0 @@
1
- export type OS = 'macos' | 'linux' | 'windows';
2
- export type Arch = 'arm64' | 'x86_64';
3
- export interface Platform {
4
- os: OS;
5
- arch: Arch;
6
- gcloudDownloadUrl: string;
7
- gcloudBinaryName: string;
8
- isWindows: boolean;
9
- }
10
- /**
11
- * Detect the current platform and architecture
12
- */
13
- export declare function detectPlatform(): Platform;
14
- /**
15
- * Get the user's home directory
16
- */
17
- export declare function getHomeDir(): string;
18
- /**
19
- * Get the Stitch MCP directory path
20
- */
21
- export declare function getStitchDir(): string;
22
- /**
23
- * Get the gcloud SDK installation path
24
- */
25
- export declare function getGcloudSdkPath(): string;
26
- /**
27
- * Get the gcloud config directory path
28
- */
29
- export declare function getGcloudConfigPath(): string;
@@ -1,20 +0,0 @@
1
- /**
2
- * Get cross-platform path join
3
- */
4
- export declare function joinPath(...parts: string[]): string;
5
- /**
6
- * Get the directory name from a path
7
- */
8
- export declare function dirname(filepath: string): string;
9
- /**
10
- * Get the basename from a path
11
- */
12
- export declare function basename(filepath: string): string;
13
- /**
14
- * Normalize path separators for the current platform
15
- */
16
- export declare function normalizePath(filepath: string): string;
17
- /**
18
- * Convert a path to use forward slashes (for consistency)
19
- */
20
- export declare function toUnixPath(filepath: string): string;
@@ -1,26 +0,0 @@
1
- export interface ShellResult {
2
- success: boolean;
3
- stdout: string;
4
- stderr: string;
5
- exitCode: number;
6
- error?: string;
7
- }
8
- /**
9
- * Execute a shell command and return the result
10
- */
11
- export declare function execCommand(command: string[], options?: {
12
- cwd?: string;
13
- env?: Record<string, string>;
14
- timeout?: number;
15
- }): Promise<ShellResult>;
16
- /**
17
- * Execute a shell command and stream output
18
- */
19
- export declare function execCommandStreaming(command: string[], onStdout?: (data: string) => void, onStderr?: (data: string) => void, options?: {
20
- cwd?: string;
21
- env?: Record<string, string>;
22
- }): Promise<ShellResult>;
23
- /**
24
- * Check if a command exists in PATH
25
- */
26
- export declare function commandExists(command: string): Promise<boolean>;
@@ -1,48 +0,0 @@
1
- import { type GcloudService, type EnsureGcloudInput, type AuthenticateInput, type ListProjectsInput, type SetProjectInput, type GcloudResult, type AuthResult, type ProjectListResult, type ProjectSetResult } from './spec.js';
2
- export declare class GcloudHandler implements GcloudService {
3
- private platform;
4
- private gcloudPath;
5
- /**
6
- * Ensure gcloud is installed and available
7
- */
8
- ensureInstalled(input: EnsureGcloudInput): Promise<GcloudResult>;
9
- /**
10
- * Authenticate user
11
- */
12
- authenticate(input: AuthenticateInput): Promise<AuthResult>;
13
- /**
14
- * Authenticate application default credentials
15
- */
16
- authenticateADC(input: AuthenticateInput): Promise<AuthResult>;
17
- /**
18
- * List projects
19
- */
20
- listProjects(input: ListProjectsInput): Promise<ProjectListResult>;
21
- /**
22
- * Set active project
23
- */
24
- setProject(input: SetProjectInput): Promise<ProjectSetResult>;
25
- /**
26
- * Get access token
27
- */
28
- getAccessToken(): Promise<string | null>;
29
- getProjectId(): Promise<string | null>;
30
- /**
31
- * Install beta components
32
- */
33
- installBetaComponents(): Promise<{
34
- success: boolean;
35
- error?: {
36
- message: string;
37
- };
38
- }>;
39
- private findGlobalGcloud;
40
- private getVersionFromPath;
41
- private isVersionValid;
42
- private installLocal;
43
- private setupEnvironment;
44
- private getEnvironment;
45
- private getGcloudCommand;
46
- getActiveAccount(): Promise<string | null>;
47
- hasADC(): Promise<boolean>;
48
- }
@@ -1 +0,0 @@
1
- export {};