@wootsup/yt-builder-mcp 0.2.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +221 -0
  3. package/bin/yt-builder-mcp.js +59 -0
  4. package/dist/auth.d.ts +39 -0
  5. package/dist/auth.d.ts.map +1 -0
  6. package/dist/auth.js +93 -0
  7. package/dist/auth.js.map +1 -0
  8. package/dist/client.d.ts +84 -0
  9. package/dist/client.d.ts.map +1 -0
  10. package/dist/client.js +151 -0
  11. package/dist/client.js.map +1 -0
  12. package/dist/clients/claude-code.d.ts +18 -0
  13. package/dist/clients/claude-code.d.ts.map +1 -0
  14. package/dist/clients/claude-code.js +53 -0
  15. package/dist/clients/claude-code.js.map +1 -0
  16. package/dist/clients/claude-desktop.d.ts +19 -0
  17. package/dist/clients/claude-desktop.d.ts.map +1 -0
  18. package/dist/clients/claude-desktop.js +56 -0
  19. package/dist/clients/claude-desktop.js.map +1 -0
  20. package/dist/clients/cline.d.ts +26 -0
  21. package/dist/clients/cline.d.ts.map +1 -0
  22. package/dist/clients/cline.js +80 -0
  23. package/dist/clients/cline.js.map +1 -0
  24. package/dist/clients/codex-cli.d.ts +42 -0
  25. package/dist/clients/codex-cli.d.ts.map +1 -0
  26. package/dist/clients/codex-cli.js +194 -0
  27. package/dist/clients/codex-cli.js.map +1 -0
  28. package/dist/clients/continue.d.ts +13 -0
  29. package/dist/clients/continue.d.ts.map +1 -0
  30. package/dist/clients/continue.js +52 -0
  31. package/dist/clients/continue.js.map +1 -0
  32. package/dist/clients/cursor.d.ts +12 -0
  33. package/dist/clients/cursor.d.ts.map +1 -0
  34. package/dist/clients/cursor.js +38 -0
  35. package/dist/clients/cursor.js.map +1 -0
  36. package/dist/clients/gemini-cli.d.ts +18 -0
  37. package/dist/clients/gemini-cli.d.ts.map +1 -0
  38. package/dist/clients/gemini-cli.js +44 -0
  39. package/dist/clients/gemini-cli.js.map +1 -0
  40. package/dist/clients/home.d.ts +14 -0
  41. package/dist/clients/home.d.ts.map +1 -0
  42. package/dist/clients/home.js +20 -0
  43. package/dist/clients/home.js.map +1 -0
  44. package/dist/clients/index.d.ts +52 -0
  45. package/dist/clients/index.d.ts.map +1 -0
  46. package/dist/clients/index.js +72 -0
  47. package/dist/clients/index.js.map +1 -0
  48. package/dist/clients/roo-code.d.ts +23 -0
  49. package/dist/clients/roo-code.d.ts.map +1 -0
  50. package/dist/clients/roo-code.js +69 -0
  51. package/dist/clients/roo-code.js.map +1 -0
  52. package/dist/clients/zed.d.ts +12 -0
  53. package/dist/clients/zed.d.ts.map +1 -0
  54. package/dist/clients/zed.js +41 -0
  55. package/dist/clients/zed.js.map +1 -0
  56. package/dist/errors/hints.d.ts +51 -0
  57. package/dist/errors/hints.d.ts.map +1 -0
  58. package/dist/errors/hints.js +95 -0
  59. package/dist/errors/hints.js.map +1 -0
  60. package/dist/errors/mask.d.ts +35 -0
  61. package/dist/errors/mask.d.ts.map +1 -0
  62. package/dist/errors/mask.js +49 -0
  63. package/dist/errors/mask.js.map +1 -0
  64. package/dist/errors/sanitize.d.ts +31 -0
  65. package/dist/errors/sanitize.d.ts.map +1 -0
  66. package/dist/errors/sanitize.js +90 -0
  67. package/dist/errors/sanitize.js.map +1 -0
  68. package/dist/errors.d.ts +42 -0
  69. package/dist/errors.d.ts.map +1 -0
  70. package/dist/errors.js +61 -0
  71. package/dist/errors.js.map +1 -0
  72. package/dist/gateway/advanced-tool/discovery.d.ts +19 -0
  73. package/dist/gateway/advanced-tool/discovery.d.ts.map +1 -0
  74. package/dist/gateway/advanced-tool/discovery.js +53 -0
  75. package/dist/gateway/advanced-tool/discovery.js.map +1 -0
  76. package/dist/gateway/advanced-tool/domains.d.ts +42 -0
  77. package/dist/gateway/advanced-tool/domains.d.ts.map +1 -0
  78. package/dist/gateway/advanced-tool/domains.js +88 -0
  79. package/dist/gateway/advanced-tool/domains.js.map +1 -0
  80. package/dist/gateway/advanced-tool/execute.d.ts +29 -0
  81. package/dist/gateway/advanced-tool/execute.d.ts.map +1 -0
  82. package/dist/gateway/advanced-tool/execute.js +54 -0
  83. package/dist/gateway/advanced-tool/execute.js.map +1 -0
  84. package/dist/gateway/advanced-tool/index.d.ts +36 -0
  85. package/dist/gateway/advanced-tool/index.d.ts.map +1 -0
  86. package/dist/gateway/advanced-tool/index.js +39 -0
  87. package/dist/gateway/advanced-tool/index.js.map +1 -0
  88. package/dist/gateway/advanced-tool/register.d.ts +18 -0
  89. package/dist/gateway/advanced-tool/register.d.ts.map +1 -0
  90. package/dist/gateway/advanced-tool/register.js +62 -0
  91. package/dist/gateway/advanced-tool/register.js.map +1 -0
  92. package/dist/gateway/advanced-tool.d.ts +13 -0
  93. package/dist/gateway/advanced-tool.d.ts.map +1 -0
  94. package/dist/gateway/advanced-tool.js +13 -0
  95. package/dist/gateway/advanced-tool.js.map +1 -0
  96. package/dist/gateway/capturing-server.d.ts +117 -0
  97. package/dist/gateway/capturing-server.d.ts.map +1 -0
  98. package/dist/gateway/capturing-server.js +103 -0
  99. package/dist/gateway/capturing-server.js.map +1 -0
  100. package/dist/gateway/essentials.d.ts +49 -0
  101. package/dist/gateway/essentials.d.ts.map +1 -0
  102. package/dist/gateway/essentials.js +62 -0
  103. package/dist/gateway/essentials.js.map +1 -0
  104. package/dist/gateway/test-support.d.ts +41 -0
  105. package/dist/gateway/test-support.d.ts.map +1 -0
  106. package/dist/gateway/test-support.js +60 -0
  107. package/dist/gateway/test-support.js.map +1 -0
  108. package/dist/index.d.ts +25 -0
  109. package/dist/index.d.ts.map +1 -0
  110. package/dist/index.js +77 -0
  111. package/dist/index.js.map +1 -0
  112. package/dist/install-skill.d.ts +35 -0
  113. package/dist/install-skill.d.ts.map +1 -0
  114. package/dist/install-skill.js +107 -0
  115. package/dist/install-skill.js.map +1 -0
  116. package/dist/platform/index.d.ts +49 -0
  117. package/dist/platform/index.d.ts.map +1 -0
  118. package/dist/platform/index.js +38 -0
  119. package/dist/platform/index.js.map +1 -0
  120. package/dist/server.d.ts +50 -0
  121. package/dist/server.d.ts.map +1 -0
  122. package/dist/server.js +117 -0
  123. package/dist/server.js.map +1 -0
  124. package/dist/setup-cli.d.ts +100 -0
  125. package/dist/setup-cli.d.ts.map +1 -0
  126. package/dist/setup-cli.js +355 -0
  127. package/dist/setup-cli.js.map +1 -0
  128. package/dist/setup-prompts.d.ts +41 -0
  129. package/dist/setup-prompts.d.ts.map +1 -0
  130. package/dist/setup-prompts.js +142 -0
  131. package/dist/setup-prompts.js.map +1 -0
  132. package/dist/setup-token.d.ts +38 -0
  133. package/dist/setup-token.d.ts.map +1 -0
  134. package/dist/setup-token.js +106 -0
  135. package/dist/setup-token.js.map +1 -0
  136. package/dist/setup-wizard-defaults.d.ts +43 -0
  137. package/dist/setup-wizard-defaults.d.ts.map +1 -0
  138. package/dist/setup-wizard-defaults.js +160 -0
  139. package/dist/setup-wizard-defaults.js.map +1 -0
  140. package/dist/setup-wizard-handshake.d.ts +25 -0
  141. package/dist/setup-wizard-handshake.d.ts.map +1 -0
  142. package/dist/setup-wizard-handshake.js +103 -0
  143. package/dist/setup-wizard-handshake.js.map +1 -0
  144. package/dist/setup-wizard-types.d.ts +148 -0
  145. package/dist/setup-wizard-types.d.ts.map +1 -0
  146. package/dist/setup-wizard-types.js +11 -0
  147. package/dist/setup-wizard-types.js.map +1 -0
  148. package/dist/setup-wizard.d.ts +33 -0
  149. package/dist/setup-wizard.d.ts.map +1 -0
  150. package/dist/setup-wizard.js +166 -0
  151. package/dist/setup-wizard.js.map +1 -0
  152. package/dist/setup.d.ts +17 -0
  153. package/dist/setup.d.ts.map +1 -0
  154. package/dist/setup.js +33 -0
  155. package/dist/setup.js.map +1 -0
  156. package/dist/tools/elements/builders.d.ts +24 -0
  157. package/dist/tools/elements/builders.d.ts.map +1 -0
  158. package/dist/tools/elements/builders.js +150 -0
  159. package/dist/tools/elements/builders.js.map +1 -0
  160. package/dist/tools/elements/handlers-write.d.ts +48 -0
  161. package/dist/tools/elements/handlers-write.d.ts.map +1 -0
  162. package/dist/tools/elements/handlers-write.js +141 -0
  163. package/dist/tools/elements/handlers-write.js.map +1 -0
  164. package/dist/tools/elements/handlers.d.ts +56 -0
  165. package/dist/tools/elements/handlers.d.ts.map +1 -0
  166. package/dist/tools/elements/handlers.js +113 -0
  167. package/dist/tools/elements/handlers.js.map +1 -0
  168. package/dist/tools/elements/index.d.ts +28 -0
  169. package/dist/tools/elements/index.d.ts.map +1 -0
  170. package/dist/tools/elements/index.js +27 -0
  171. package/dist/tools/elements/index.js.map +1 -0
  172. package/dist/tools/elements.d.ts +13 -0
  173. package/dist/tools/elements.d.ts.map +1 -0
  174. package/dist/tools/elements.js +13 -0
  175. package/dist/tools/elements.js.map +1 -0
  176. package/dist/tools/elicitation.d.ts +87 -0
  177. package/dist/tools/elicitation.d.ts.map +1 -0
  178. package/dist/tools/elicitation.js +100 -0
  179. package/dist/tools/elicitation.js.map +1 -0
  180. package/dist/tools/format/elements-format.d.ts +34 -0
  181. package/dist/tools/format/elements-format.d.ts.map +1 -0
  182. package/dist/tools/format/elements-format.js +112 -0
  183. package/dist/tools/format/elements-format.js.map +1 -0
  184. package/dist/tools/format/health-format.d.ts +73 -0
  185. package/dist/tools/format/health-format.d.ts.map +1 -0
  186. package/dist/tools/format/health-format.js +178 -0
  187. package/dist/tools/format/health-format.js.map +1 -0
  188. package/dist/tools/format/inspection-format.d.ts +45 -0
  189. package/dist/tools/format/inspection-format.d.ts.map +1 -0
  190. package/dist/tools/format/inspection-format.js +125 -0
  191. package/dist/tools/format/inspection-format.js.map +1 -0
  192. package/dist/tools/format/pages-format.d.ts +39 -0
  193. package/dist/tools/format/pages-format.d.ts.map +1 -0
  194. package/dist/tools/format/pages-format.js +110 -0
  195. package/dist/tools/format/pages-format.js.map +1 -0
  196. package/dist/tools/format/sources-format.d.ts +25 -0
  197. package/dist/tools/format/sources-format.d.ts.map +1 -0
  198. package/dist/tools/format/sources-format.js +113 -0
  199. package/dist/tools/format/sources-format.js.map +1 -0
  200. package/dist/tools/health.d.ts +22 -0
  201. package/dist/tools/health.d.ts.map +1 -0
  202. package/dist/tools/health.js +147 -0
  203. package/dist/tools/health.js.map +1 -0
  204. package/dist/tools/index.d.ts +23 -0
  205. package/dist/tools/index.d.ts.map +1 -0
  206. package/dist/tools/index.js +23 -0
  207. package/dist/tools/index.js.map +1 -0
  208. package/dist/tools/inspection.d.ts +14 -0
  209. package/dist/tools/inspection.d.ts.map +1 -0
  210. package/dist/tools/inspection.js +115 -0
  211. package/dist/tools/inspection.js.map +1 -0
  212. package/dist/tools/layout-flatten.d.ts +63 -0
  213. package/dist/tools/layout-flatten.d.ts.map +1 -0
  214. package/dist/tools/layout-flatten.js +95 -0
  215. package/dist/tools/layout-flatten.js.map +1 -0
  216. package/dist/tools/pages/builders.d.ts +14 -0
  217. package/dist/tools/pages/builders.d.ts.map +1 -0
  218. package/dist/tools/pages/builders.js +97 -0
  219. package/dist/tools/pages/builders.js.map +1 -0
  220. package/dist/tools/pages/handlers-read.d.ts +24 -0
  221. package/dist/tools/pages/handlers-read.d.ts.map +1 -0
  222. package/dist/tools/pages/handlers-read.js +141 -0
  223. package/dist/tools/pages/handlers-read.js.map +1 -0
  224. package/dist/tools/pages/handlers-write.d.ts +21 -0
  225. package/dist/tools/pages/handlers-write.d.ts.map +1 -0
  226. package/dist/tools/pages/handlers-write.js +52 -0
  227. package/dist/tools/pages/handlers-write.js.map +1 -0
  228. package/dist/tools/pages/index.d.ts +17 -0
  229. package/dist/tools/pages/index.d.ts.map +1 -0
  230. package/dist/tools/pages/index.js +17 -0
  231. package/dist/tools/pages/index.js.map +1 -0
  232. package/dist/tools/pages/schemas.d.ts +30 -0
  233. package/dist/tools/pages/schemas.d.ts.map +1 -0
  234. package/dist/tools/pages/schemas.js +30 -0
  235. package/dist/tools/pages/schemas.js.map +1 -0
  236. package/dist/tools/pages.d.ts +13 -0
  237. package/dist/tools/pages.d.ts.map +1 -0
  238. package/dist/tools/pages.js +13 -0
  239. package/dist/tools/pages.js.map +1 -0
  240. package/dist/tools/progress-phases.d.ts +46 -0
  241. package/dist/tools/progress-phases.d.ts.map +1 -0
  242. package/dist/tools/progress-phases.js +48 -0
  243. package/dist/tools/progress-phases.js.map +1 -0
  244. package/dist/tools/shared-schemas.d.ts +15 -0
  245. package/dist/tools/shared-schemas.d.ts.map +1 -0
  246. package/dist/tools/shared-schemas.js +30 -0
  247. package/dist/tools/shared-schemas.js.map +1 -0
  248. package/dist/tools/sources/builders.d.ts +13 -0
  249. package/dist/tools/sources/builders.d.ts.map +1 -0
  250. package/dist/tools/sources/builders.js +88 -0
  251. package/dist/tools/sources/builders.js.map +1 -0
  252. package/dist/tools/sources/handlers-bind.d.ts +26 -0
  253. package/dist/tools/sources/handlers-bind.d.ts.map +1 -0
  254. package/dist/tools/sources/handlers-bind.js +123 -0
  255. package/dist/tools/sources/handlers-bind.js.map +1 -0
  256. package/dist/tools/sources/handlers.d.ts +45 -0
  257. package/dist/tools/sources/handlers.d.ts.map +1 -0
  258. package/dist/tools/sources/handlers.js +84 -0
  259. package/dist/tools/sources/handlers.js.map +1 -0
  260. package/dist/tools/sources/index.d.ts +19 -0
  261. package/dist/tools/sources/index.d.ts.map +1 -0
  262. package/dist/tools/sources/index.js +18 -0
  263. package/dist/tools/sources/index.js.map +1 -0
  264. package/dist/tools/sources.d.ts +14 -0
  265. package/dist/tools/sources.d.ts.map +1 -0
  266. package/dist/tools/sources.js +14 -0
  267. package/dist/tools/sources.js.map +1 -0
  268. package/dist/tools/sparse-fields.d.ts +80 -0
  269. package/dist/tools/sparse-fields.d.ts.map +1 -0
  270. package/dist/tools/sparse-fields.js +144 -0
  271. package/dist/tools/sparse-fields.js.map +1 -0
  272. package/dist/tools/tool-builder/annotations.d.ts +22 -0
  273. package/dist/tools/tool-builder/annotations.d.ts.map +1 -0
  274. package/dist/tools/tool-builder/annotations.js +35 -0
  275. package/dist/tools/tool-builder/annotations.js.map +1 -0
  276. package/dist/tools/tool-builder/define.d.ts +31 -0
  277. package/dist/tools/tool-builder/define.d.ts.map +1 -0
  278. package/dist/tools/tool-builder/define.js +31 -0
  279. package/dist/tools/tool-builder/define.js.map +1 -0
  280. package/dist/tools/tool-builder/index.d.ts +28 -0
  281. package/dist/tools/tool-builder/index.d.ts.map +1 -0
  282. package/dist/tools/tool-builder/index.js +27 -0
  283. package/dist/tools/tool-builder/index.js.map +1 -0
  284. package/dist/tools/tool-builder/results.d.ts +59 -0
  285. package/dist/tools/tool-builder/results.d.ts.map +1 -0
  286. package/dist/tools/tool-builder/results.js +125 -0
  287. package/dist/tools/tool-builder/results.js.map +1 -0
  288. package/dist/tools/tool-builder/types.d.ts +82 -0
  289. package/dist/tools/tool-builder/types.d.ts.map +1 -0
  290. package/dist/tools/tool-builder/types.js +9 -0
  291. package/dist/tools/tool-builder/types.js.map +1 -0
  292. package/dist/tools/tool-builder.d.ts +16 -0
  293. package/dist/tools/tool-builder.d.ts.map +1 -0
  294. package/dist/tools/tool-builder.js +16 -0
  295. package/dist/tools/tool-builder.js.map +1 -0
  296. package/icon.png +0 -0
  297. package/manifest.json +63 -0
  298. package/package.json +81 -0
  299. package/skills/yootheme-builder/SKILL.md +582 -0
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Platform abstraction — Wave G.0.
3
+ *
4
+ * A `Platform` is the seam between the MCP server and a host CMS. Today
5
+ * the only concrete impl is `WordPressPlatform`; `joomla` is reserved
6
+ * as a typed seam-marker so Wave G.4+ can land Joomla without rippling
7
+ * through every call site.
8
+ *
9
+ * Why an interface instead of a tagged union?
10
+ * - Each platform owns its REST-namespace path verbatim (WP uses
11
+ * `/wp-json/<ns>`, Joomla will use `/index.php?option=com_ajax&…`).
12
+ * - Adding a platform = implement the interface + add a `PlatformKind`
13
+ * member. No switch statements to update.
14
+ *
15
+ * The `RestClient` accepts EITHER a `Platform` OR the legacy
16
+ * `{baseUrl}` form (which internally builds a `WordPressPlatform`),
17
+ * so existing callers keep working unchanged.
18
+ *
19
+ * @license MIT
20
+ */
21
+ /** Tagged union of supported host platforms. */
22
+ export type PlatformKind = 'wordpress' | 'joomla';
23
+ /**
24
+ * A `Platform` describes WHERE and HOW the MCP server reaches the
25
+ * REST surface of the host CMS.
26
+ */
27
+ export interface Platform {
28
+ /** Discriminator for runtime checks. */
29
+ readonly kind: PlatformKind;
30
+ /** Origin (scheme + host + optional port). No trailing-slash normalisation here. */
31
+ readonly baseUrl: string;
32
+ /** Path prefix appended to baseUrl to form the REST root (must start with `/`). */
33
+ readonly restNamespacePath: string;
34
+ }
35
+ /** Canonical WordPress REST-namespace path for this plugin. */
36
+ export declare const WORDPRESS_REST_NAMESPACE_PATH = "/wp-json/yt-builder-mcp/v1";
37
+ /**
38
+ * WordPress platform implementation.
39
+ *
40
+ * `restNamespacePath` is fixed to the plugin's namespace; the caller
41
+ * supplies only the site origin.
42
+ */
43
+ export declare class WordPressPlatform implements Platform {
44
+ readonly kind: "wordpress";
45
+ readonly baseUrl: string;
46
+ readonly restNamespacePath: string;
47
+ constructor(baseUrl: string);
48
+ }
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,gDAAgD;AAChD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,wCAAwC;IACxC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,oFAAoF;IACpF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,mFAAmF;IACnF,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACtC;AAED,+DAA+D;AAC/D,eAAO,MAAM,6BAA6B,+BAA+B,CAAC;AAE1E;;;;;GAKG;AACH,qBAAa,iBAAkB,YAAW,QAAQ;IAC9C,SAAgB,IAAI,EAAG,WAAW,CAAU;IAC5C,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,SAAgB,iBAAiB,EAAE,MAAM,CAAC;gBAE9B,OAAO,EAAE,MAAM;CAI9B"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Platform abstraction — Wave G.0.
3
+ *
4
+ * A `Platform` is the seam between the MCP server and a host CMS. Today
5
+ * the only concrete impl is `WordPressPlatform`; `joomla` is reserved
6
+ * as a typed seam-marker so Wave G.4+ can land Joomla without rippling
7
+ * through every call site.
8
+ *
9
+ * Why an interface instead of a tagged union?
10
+ * - Each platform owns its REST-namespace path verbatim (WP uses
11
+ * `/wp-json/<ns>`, Joomla will use `/index.php?option=com_ajax&…`).
12
+ * - Adding a platform = implement the interface + add a `PlatformKind`
13
+ * member. No switch statements to update.
14
+ *
15
+ * The `RestClient` accepts EITHER a `Platform` OR the legacy
16
+ * `{baseUrl}` form (which internally builds a `WordPressPlatform`),
17
+ * so existing callers keep working unchanged.
18
+ *
19
+ * @license MIT
20
+ */
21
+ /** Canonical WordPress REST-namespace path for this plugin. */
22
+ export const WORDPRESS_REST_NAMESPACE_PATH = '/wp-json/yt-builder-mcp/v1';
23
+ /**
24
+ * WordPress platform implementation.
25
+ *
26
+ * `restNamespacePath` is fixed to the plugin's namespace; the caller
27
+ * supplies only the site origin.
28
+ */
29
+ export class WordPressPlatform {
30
+ kind = 'wordpress';
31
+ baseUrl;
32
+ restNamespacePath;
33
+ constructor(baseUrl) {
34
+ this.baseUrl = baseUrl;
35
+ this.restNamespacePath = WORDPRESS_REST_NAMESPACE_PATH;
36
+ }
37
+ }
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAkBH,+DAA+D;AAC/D,MAAM,CAAC,MAAM,6BAA6B,GAAG,4BAA4B,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,OAAO,iBAAiB;IACV,IAAI,GAAG,WAAoB,CAAC;IAC5B,OAAO,CAAS;IAChB,iBAAiB,CAAS;IAE1C,YAAY,OAAe;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,iBAAiB,GAAG,6BAA6B,CAAC;IAC3D,CAAC;CACJ"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * MCP server factory — Wave G.1 / Gateway-Hub edition.
3
+ *
4
+ * `createServer({client})` builds a configured `McpServer` with a 3-lane
5
+ * tool registration:
6
+ *
7
+ * L3 — direct top-level (yootheme_builder_health + yootheme_builder_diagnose)
8
+ * Registered FIRST, BEFORE the CapturingServer wraps the real server.
9
+ * These tools must reach the LLM even when the gateway itself
10
+ * misbehaves (chicken-and-egg: the LLM diagnoses gateway breakage
11
+ * via these two).
12
+ *
13
+ * L1 — essential forwarded (7 tools)
14
+ * Routed through the CapturingServer to the real server. Appear in
15
+ * `tools/list` as first-class entries (Cursor-cap-safe).
16
+ *
17
+ * L2 — advanced captured (12 tools)
18
+ * Routed through the CapturingServer into its in-process advanced
19
+ * registry; reachable via the single `yootheme_builder_advanced`
20
+ * gateway tool. Hidden from `tools/list`.
21
+ *
22
+ * Gateway — `yootheme_builder_advanced`
23
+ * Registered LAST on the real server, after every L1/L2 tool is
24
+ * placed and the advanced registry is final.
25
+ *
26
+ * Result: `tools/list.length === 10` (7 L1 + 2 L3 + 1 gateway), and the
27
+ * full tool surface is 22 (collectAllRegisteredTools).
28
+ *
29
+ * @license MIT
30
+ */
31
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
32
+ import type { RestClient } from './client.js';
33
+ import { CapturingServer } from './gateway/capturing-server.js';
34
+ import { type ToolDefinition } from './tools/index.js';
35
+ export declare const SERVER_NAME = "@wootsup/yt-builder-mcp";
36
+ export declare const SERVER_VERSION = "0.2.0-alpha.2";
37
+ export interface CreateServerOptions {
38
+ readonly client: RestClient;
39
+ /** Override the tool set (defaults to `buildAllTools`). */
40
+ readonly tools?: readonly ToolDefinition[];
41
+ }
42
+ export interface CreatedServer {
43
+ readonly mcp: McpServer;
44
+ /** The full set of tool definitions registered across all 3 lanes + gateway. */
45
+ readonly tools: readonly ToolDefinition[];
46
+ /** The CapturingServer wrapping `mcp` — exposed for test helpers. */
47
+ readonly capturing: CapturingServer;
48
+ }
49
+ export declare function createServer(options: CreateServerOptions): CreatedServer;
50
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAsB,MAAM,+BAA+B,CAAC;AAGpF,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAE9C,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;IACxB,gFAAgF;IAChF,QAAQ,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;IAC1C,qEAAqE;IACrE,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC;CACvC;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,aAAa,CA6CxE"}
package/dist/server.js ADDED
@@ -0,0 +1,117 @@
1
+ /**
2
+ * MCP server factory — Wave G.1 / Gateway-Hub edition.
3
+ *
4
+ * `createServer({client})` builds a configured `McpServer` with a 3-lane
5
+ * tool registration:
6
+ *
7
+ * L3 — direct top-level (yootheme_builder_health + yootheme_builder_diagnose)
8
+ * Registered FIRST, BEFORE the CapturingServer wraps the real server.
9
+ * These tools must reach the LLM even when the gateway itself
10
+ * misbehaves (chicken-and-egg: the LLM diagnoses gateway breakage
11
+ * via these two).
12
+ *
13
+ * L1 — essential forwarded (7 tools)
14
+ * Routed through the CapturingServer to the real server. Appear in
15
+ * `tools/list` as first-class entries (Cursor-cap-safe).
16
+ *
17
+ * L2 — advanced captured (12 tools)
18
+ * Routed through the CapturingServer into its in-process advanced
19
+ * registry; reachable via the single `yootheme_builder_advanced`
20
+ * gateway tool. Hidden from `tools/list`.
21
+ *
22
+ * Gateway — `yootheme_builder_advanced`
23
+ * Registered LAST on the real server, after every L1/L2 tool is
24
+ * placed and the advanced registry is final.
25
+ *
26
+ * Result: `tools/list.length === 10` (7 L1 + 2 L3 + 1 gateway), and the
27
+ * full tool surface is 22 (collectAllRegisteredTools).
28
+ *
29
+ * @license MIT
30
+ */
31
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
32
+ import { registerAdvancedTool } from './gateway/advanced-tool.js';
33
+ import { CapturingServer } from './gateway/capturing-server.js';
34
+ import { isDirectTopLevel } from './gateway/essentials.js';
35
+ import { toElicitationCapability } from './tools/elicitation.js';
36
+ import { buildAllTools } from './tools/index.js';
37
+ export const SERVER_NAME = '@wootsup/yt-builder-mcp';
38
+ export const SERVER_VERSION = '0.2.0-alpha.2';
39
+ export function createServer(options) {
40
+ const mcp = new McpServer({
41
+ name: SERVER_NAME,
42
+ version: SERVER_VERSION,
43
+ });
44
+ // Wave G.4.5 — MCP elicitation capability wiring.
45
+ //
46
+ // `toElicitationCapability(mcp)` bridges the SDK's stricter
47
+ // discriminated `ElicitRequestFormParams` to the toolkit's looser
48
+ // `ElicitInputParams`. The 3 elicitation-aware tools
49
+ // (`element_delete`, `element_unbind_source`, `element_bind_source`)
50
+ // consume this capability through their `*HandlerDeps`; the other 19
51
+ // tools never see it. When the host the SDK connects to does not
52
+ // advertise the elicitation capability, the toolkit's `elicitChoice` /
53
+ // `elicitConfirmation` return `null` / `false` and the tool falls
54
+ // back to the structured-error / preview path (no hang, no guess).
55
+ const elicitation = toElicitationCapability(mcp);
56
+ const tools = options.tools ?? buildAllTools(options.client, { elicitation });
57
+ // L3 — direct top-level: registered FIRST on the real McpServer, before
58
+ // the CapturingServer wraps it. These names get a no-op route inside
59
+ // the CapturingServer (see capturing-server.ts), so the SDK never sees
60
+ // a duplicate registration when the builder list is later replayed.
61
+ for (const tool of tools) {
62
+ if (isDirectTopLevel(tool.name)) {
63
+ registerToolOn(mcp, tool);
64
+ }
65
+ }
66
+ // L1 / L2 — every other tool is routed through the CapturingServer,
67
+ // which forwards essentials to the real server and captures the rest
68
+ // into its advanced registry.
69
+ const capturing = new CapturingServer(mcp);
70
+ for (const tool of tools) {
71
+ if (isDirectTopLevel(tool.name))
72
+ continue;
73
+ registerToolOn(capturing, tool);
74
+ }
75
+ // Gateway — registered LAST so the advanced registry is final.
76
+ registerAdvancedTool(mcp, capturing.getAdvancedRegistry());
77
+ return { mcp, tools, capturing };
78
+ }
79
+ /**
80
+ * Registers a `ToolDefinition` on a `ToolRegistrar`. A real `McpServer`
81
+ * satisfies `ToolRegistrar` structurally (its `registerTool` returns
82
+ * `RegisteredTool`, which is assignable to the `ToolRegistrar` declared
83
+ * `void` return type), so call-sites pass either a real server (for L3
84
+ * + the gateway, which need not be captured) or a `CapturingServer`
85
+ * (for L1 + L2 routing).
86
+ */
87
+ function registerToolOn(registrar, tool) {
88
+ // The SDK's `registerTool` accepts a raw Zod shape as inputSchema. We
89
+ // cast through `ZodRawShapeCompat` to keep our `ToolDefinition` generic
90
+ // (any ZodRawShape) compatible with the SDK's v3/v4 dual-zod surface.
91
+ const inputSchema = tool.inputSchema;
92
+ // outputSchema is optional — tools migrated to structured-content (Wave
93
+ // G.2) declare a Zod schema describing the `structuredContent` payload.
94
+ // The SDK accepts a `ZodTypeAny` (v3/v4) via `AnySchema`; we forward our
95
+ // schema verbatim. Hosts that support MCP structured output validate
96
+ // responses against this schema.
97
+ const outputSchema = tool.outputSchema !== undefined
98
+ ? tool.outputSchema
99
+ : undefined;
100
+ registrar.registerTool(tool.name, {
101
+ description: tool.description,
102
+ inputSchema,
103
+ ...(outputSchema !== undefined ? { outputSchema } : {}),
104
+ annotations: tool.annotations,
105
+ },
106
+ // Wave G.5 — forward the SDK-supplied `extra` (RequestHandlerExtra)
107
+ // as the 2nd argument to every handler. Write-handlers consume
108
+ // `extra._meta.progressToken` + `extra.sendNotification` via the
109
+ // local `createProgressReporter` helper; read-handlers ignore it
110
+ // (their handler signature still binds `extra` to `HandlerExtra |
111
+ // undefined`, so no runtime coupling for non-progress tools).
112
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK generic narrows to inferred shape; safe because zod validates upstream
113
+ (async (args, extra) => {
114
+ return tool.handler(args, extra);
115
+ }));
116
+ }
117
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAsB,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAuB,MAAM,kBAAkB,CAAC;AAEtE,MAAM,CAAC,MAAM,WAAW,GAAG,yBAAyB,CAAC;AACrD,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;AAgB9C,MAAM,UA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E,sEAAsE;IACtE,MAAM,WAAW,GAAG,IAAI,CAAC,WAAgC,CAAC;IAE1D,wEAAwE;IACxE,wEAAwE;IACxE,yEAAyE;IACzE,qEAAqE;IACrE,iCAAiC;IACjC,MAAM,YAAY,GACd,IAAI,CAAC,YAAY,KAAK,SAAS;QAC3B,CAAC,CAAE,IAAI,CAAC,YAA6C;QACrD,CAAC,CAAC,SAAS,CAAC;IAEpB,SAAS,CAAC,YAAY,CAClB,IAAI,CAAC,IAAI,EACT;QACI,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,WAAW;QACX,GAAG,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,WAAW,EAAE,IAAI,CAAC,WAAW;KAChC;IACD,oEAAoE;IACpE,+DAA+D;IAC/D,iEAAiE;IACjE,iEAAiE;IACjE,kEAAkE;IAClE,8DAA8D;IAC9D,4IAA4I;IAC5I,CAAC,KAAK,EAAE,IAAS,EAAE,KAAU,EAAE,EAAE;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACrC,CAAC,CAAU,CACd,CAAC;AACN,CAAC"}
@@ -0,0 +1,100 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Top-level CLI dispatcher for `@wootsup/yt-builder-mcp`.
4
+ *
5
+ * Round-1 audit I5 fix (2026-05-22): the wizard implementation lives in
6
+ * `setup-wizard.ts`; this file is the thin dispatcher (`runCli`) plus
7
+ * the ESM main-guard. Both have their own deps-bag (`WizardDeps` /
8
+ * `RunCliDeps`) so unit tests can drive them independently.
9
+ *
10
+ * Subcommands:
11
+ *
12
+ * setup (default) — runWizard (see `setup-wizard.ts`)
13
+ * install-skill — copy the bundled skill into ~/.claude/skills/
14
+ * and append a marker block to ~/AGENTS.md.
15
+ * --help / help — print usage.
16
+ * --version / -v — print the package version.
17
+ *
18
+ * Re-exports `runWizard`, `majorMinor` and the wizard public types so
19
+ * existing callers (and tests that already import from `./setup-cli`)
20
+ * keep working with a one-line import.
21
+ *
22
+ * @license MIT
23
+ */
24
+ import { installSkill as defaultInstallSkill } from './install-skill.js';
25
+ import type { WizardDeps } from './setup-wizard-types.js';
26
+ export { DEFAULT_WIZARD_DEPS, majorMinor, runWizard, type AuthProbeResult, type HandshakeResult, type HealthProbeResult, type WizardAnswers, type WizardDeps, type WriteResult, } from './setup-wizard.js';
27
+ export interface ParsedSetupArgs {
28
+ /** True when `--non-interactive` was passed. Always boolean. */
29
+ readonly nonInteractive: boolean;
30
+ /** WordPress base URL from `--url`, trailing slash stripped, trimmed. */
31
+ readonly url: string;
32
+ /** Bearer token from `--token`, trimmed. */
33
+ readonly token: string;
34
+ /** Client ids from repeated `--client`. */
35
+ readonly clients: readonly string[];
36
+ /**
37
+ * Pickup URL from `--pickup`, trimmed. When set together with
38
+ * `nonce`, the wizard fetches the Bearer + canonical URL from the
39
+ * plugin in a single POST instead of prompting.
40
+ */
41
+ readonly pickup?: string;
42
+ /** One-shot nonce from `--nonce`, trimmed. Pairs 1:1 with `pickup`. */
43
+ readonly nonce?: string;
44
+ /**
45
+ * Human-readable validation errors. Empty array means the parsed
46
+ * args are usable. The dispatcher prints these to stderr and exits
47
+ * non-zero when non-empty AND `--non-interactive` was requested.
48
+ */
49
+ readonly errors: readonly string[];
50
+ /**
51
+ * Non-fatal warnings to surface on stderr (e.g. "--url ignored in
52
+ * pickup mode"). These do NOT block the wizard from running.
53
+ */
54
+ readonly warnings: readonly string[];
55
+ }
56
+ /**
57
+ * Parse the `setup` subcommand argv tail. Pure function; does no I/O.
58
+ *
59
+ * Accepts both `--key value` and `--key=value` styles. Unknown flags
60
+ * are reported as errors so typos don't silently disable validation.
61
+ */
62
+ export declare function parseSetupArgs(argv: readonly string[]): ParsedSetupArgs;
63
+ /**
64
+ * Build a `WizardDeps` bag that answers prompts from CLI flags instead
65
+ * of asking a human. Reuses every other dependency (probes, writes,
66
+ * handshake) from `DEFAULT_WIZARD_DEPS` so the wizard's exit-code
67
+ * contract (0/2/3/4/5) stays identical.
68
+ *
69
+ * `confirmContinue` always returns `false` — there is no human to ask,
70
+ * so a probe failure cleanly aborts with the documented exit code.
71
+ */
72
+ export declare function buildNonInteractiveDeps(parsed: ParsedSetupArgs, base?: WizardDeps): WizardDeps;
73
+ /**
74
+ * Build a `WizardDeps` bag for the Wave-C pickup flow. The wizard's
75
+ * `prompt` step calls `base.fetchPickup(url, nonce)` once, then
76
+ * synthesises the `WizardAnswers` from the response — the actual answers
77
+ * (token + canonical WordPress URL) come straight from the plugin via
78
+ * a 256-bit one-shot nonce, never through chat history / provider logs.
79
+ *
80
+ * On `fetchPickup` failure the prompt resolves to `null` so the wizard
81
+ * exits cleanly with code 130 (user-cancel equivalent — we treat
82
+ * an unrecoverable pickup as "the conversation ends here"). The
83
+ * thrown error is logged via the `log` dep so the operator sees why.
84
+ *
85
+ * `confirmContinue` returns `false` (same rationale as non-interactive).
86
+ */
87
+ export declare function buildPickupDeps(parsed: ParsedSetupArgs, base?: WizardDeps): WizardDeps;
88
+ export interface RunCliDeps {
89
+ /**
90
+ * Wizard runner. The optional deps bag lets the non-interactive
91
+ * dispatcher inject prebuilt answers; interactive callers pass
92
+ * nothing and the wizard uses `DEFAULT_WIZARD_DEPS`.
93
+ */
94
+ runWizard: (deps?: WizardDeps) => Promise<number>;
95
+ installSkill: typeof defaultInstallSkill;
96
+ log?: (line: string) => void;
97
+ error?: (line: string) => void;
98
+ }
99
+ export declare function runCli(argv: readonly string[], deps?: Partial<RunCliDeps>): Promise<number>;
100
+ //# sourceMappingURL=setup-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-cli.d.ts","sourceRoot":"","sources":["../src/setup-cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGzE,OAAO,KA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