@a1st/aix-core 0.6.0 → 0.8.0

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 (306) hide show
  1. package/README.md +1 -1
  2. package/dist/agents/parser.d.ts.map +1 -1
  3. package/dist/agents/parser.js +3 -2
  4. package/dist/agents/parser.js.map +1 -1
  5. package/dist/direct-install.d.ts +8 -1
  6. package/dist/direct-install.d.ts.map +1 -1
  7. package/dist/direct-install.js +48 -6
  8. package/dist/direct-install.js.map +1 -1
  9. package/dist/editors/adapters/antigravity.d.ts +33 -0
  10. package/dist/editors/adapters/antigravity.d.ts.map +1 -0
  11. package/dist/editors/adapters/antigravity.js +107 -0
  12. package/dist/editors/adapters/antigravity.js.map +1 -0
  13. package/dist/editors/adapters/base.d.ts +34 -3
  14. package/dist/editors/adapters/base.d.ts.map +1 -1
  15. package/dist/editors/adapters/base.js +231 -46
  16. package/dist/editors/adapters/base.js.map +1 -1
  17. package/dist/editors/adapters/claude-code.d.ts +6 -2
  18. package/dist/editors/adapters/claude-code.d.ts.map +1 -1
  19. package/dist/editors/adapters/claude-code.js +30 -3
  20. package/dist/editors/adapters/claude-code.js.map +1 -1
  21. package/dist/editors/adapters/codex.d.ts +3 -1
  22. package/dist/editors/adapters/codex.d.ts.map +1 -1
  23. package/dist/editors/adapters/codex.js +7 -5
  24. package/dist/editors/adapters/codex.js.map +1 -1
  25. package/dist/editors/adapters/copilot.d.ts +3 -1
  26. package/dist/editors/adapters/copilot.d.ts.map +1 -1
  27. package/dist/editors/adapters/copilot.js +13 -3
  28. package/dist/editors/adapters/copilot.js.map +1 -1
  29. package/dist/editors/adapters/cursor.d.ts +3 -1
  30. package/dist/editors/adapters/cursor.d.ts.map +1 -1
  31. package/dist/editors/adapters/cursor.js +5 -3
  32. package/dist/editors/adapters/cursor.js.map +1 -1
  33. package/dist/editors/adapters/grok.d.ts +33 -0
  34. package/dist/editors/adapters/grok.d.ts.map +1 -0
  35. package/dist/editors/adapters/grok.js +121 -0
  36. package/dist/editors/adapters/grok.js.map +1 -0
  37. package/dist/editors/adapters/index.d.ts +2 -1
  38. package/dist/editors/adapters/index.d.ts.map +1 -1
  39. package/dist/editors/adapters/index.js +2 -1
  40. package/dist/editors/adapters/index.js.map +1 -1
  41. package/dist/editors/adapters/opencode.d.ts +3 -1
  42. package/dist/editors/adapters/opencode.d.ts.map +1 -1
  43. package/dist/editors/adapters/opencode.js +5 -3
  44. package/dist/editors/adapters/opencode.js.map +1 -1
  45. package/dist/editors/adapters/windsurf.d.ts +3 -1
  46. package/dist/editors/adapters/windsurf.d.ts.map +1 -1
  47. package/dist/editors/adapters/windsurf.js +6 -4
  48. package/dist/editors/adapters/windsurf.js.map +1 -1
  49. package/dist/editors/adapters/zed.d.ts +3 -1
  50. package/dist/editors/adapters/zed.d.ts.map +1 -1
  51. package/dist/editors/adapters/zed.js +6 -4
  52. package/dist/editors/adapters/zed.js.map +1 -1
  53. package/dist/editors/import.d.ts +7 -1
  54. package/dist/editors/import.d.ts.map +1 -1
  55. package/dist/editors/import.js +89 -2
  56. package/dist/editors/import.js.map +1 -1
  57. package/dist/editors/index.d.ts +3 -3
  58. package/dist/editors/index.d.ts.map +1 -1
  59. package/dist/editors/index.js +2 -2
  60. package/dist/editors/index.js.map +1 -1
  61. package/dist/editors/install.d.ts.map +1 -1
  62. package/dist/editors/install.js +16 -6
  63. package/dist/editors/install.js.map +1 -1
  64. package/dist/editors/remove.d.ts +49 -1
  65. package/dist/editors/remove.d.ts.map +1 -1
  66. package/dist/editors/remove.js +229 -5
  67. package/dist/editors/remove.js.map +1 -1
  68. package/dist/editors/section-managed-markdown.d.ts +1 -1
  69. package/dist/editors/section-managed-markdown.js +1 -1
  70. package/dist/editors/strategies/{gemini → antigravity}/hooks.d.ts +3 -3
  71. package/dist/editors/strategies/antigravity/hooks.d.ts.map +1 -0
  72. package/dist/editors/strategies/{gemini → antigravity}/hooks.js +25 -38
  73. package/dist/editors/strategies/antigravity/hooks.js.map +1 -0
  74. package/dist/editors/strategies/antigravity/index.d.ts +5 -0
  75. package/dist/editors/strategies/antigravity/index.d.ts.map +1 -0
  76. package/dist/editors/strategies/antigravity/index.js +5 -0
  77. package/dist/editors/strategies/antigravity/index.js.map +1 -0
  78. package/dist/editors/strategies/antigravity/mcp.d.ts +19 -0
  79. package/dist/editors/strategies/antigravity/mcp.d.ts.map +1 -0
  80. package/dist/editors/strategies/antigravity/mcp.js +57 -0
  81. package/dist/editors/strategies/antigravity/mcp.js.map +1 -0
  82. package/dist/editors/strategies/antigravity/prompts.d.ts +22 -0
  83. package/dist/editors/strategies/antigravity/prompts.d.ts.map +1 -0
  84. package/dist/editors/strategies/antigravity/prompts.js +44 -0
  85. package/dist/editors/strategies/antigravity/prompts.js.map +1 -0
  86. package/dist/editors/strategies/antigravity/rules.d.ts +19 -0
  87. package/dist/editors/strategies/antigravity/rules.d.ts.map +1 -0
  88. package/dist/editors/strategies/antigravity/rules.js +90 -0
  89. package/dist/editors/strategies/antigravity/rules.js.map +1 -0
  90. package/dist/editors/strategies/claude-code/fallback.d.ts +10 -0
  91. package/dist/editors/strategies/claude-code/fallback.d.ts.map +1 -0
  92. package/dist/editors/strategies/claude-code/fallback.js +67 -0
  93. package/dist/editors/strategies/claude-code/fallback.js.map +1 -0
  94. package/dist/editors/strategies/claude-code/hooks.d.ts.map +1 -1
  95. package/dist/editors/strategies/claude-code/hooks.js +9 -5
  96. package/dist/editors/strategies/claude-code/hooks.js.map +1 -1
  97. package/dist/editors/strategies/claude-code/index.d.ts +3 -0
  98. package/dist/editors/strategies/claude-code/index.d.ts.map +1 -1
  99. package/dist/editors/strategies/claude-code/index.js +3 -0
  100. package/dist/editors/strategies/claude-code/index.js.map +1 -1
  101. package/dist/editors/strategies/claude-code/marketplaces.d.ts +18 -0
  102. package/dist/editors/strategies/claude-code/marketplaces.d.ts.map +1 -0
  103. package/dist/editors/strategies/claude-code/marketplaces.js +91 -0
  104. package/dist/editors/strategies/claude-code/marketplaces.js.map +1 -0
  105. package/dist/editors/strategies/claude-code/mcp.d.ts.map +1 -1
  106. package/dist/editors/strategies/claude-code/mcp.js +3 -24
  107. package/dist/editors/strategies/claude-code/mcp.js.map +1 -1
  108. package/dist/editors/strategies/claude-code/plugins.d.ts +18 -0
  109. package/dist/editors/strategies/claude-code/plugins.d.ts.map +1 -0
  110. package/dist/editors/strategies/claude-code/plugins.js +42 -0
  111. package/dist/editors/strategies/claude-code/plugins.js.map +1 -0
  112. package/dist/editors/strategies/claude-code/rules.d.ts +2 -1
  113. package/dist/editors/strategies/claude-code/rules.d.ts.map +1 -1
  114. package/dist/editors/strategies/claude-code/rules.js +71 -0
  115. package/dist/editors/strategies/claude-code/rules.js.map +1 -1
  116. package/dist/editors/strategies/codex/hooks.d.ts.map +1 -1
  117. package/dist/editors/strategies/codex/hooks.js +44 -10
  118. package/dist/editors/strategies/codex/hooks.js.map +1 -1
  119. package/dist/editors/strategies/codex/mcp.d.ts.map +1 -1
  120. package/dist/editors/strategies/codex/mcp.js +123 -34
  121. package/dist/editors/strategies/codex/mcp.js.map +1 -1
  122. package/dist/editors/strategies/copilot/index.d.ts +2 -0
  123. package/dist/editors/strategies/copilot/index.d.ts.map +1 -1
  124. package/dist/editors/strategies/copilot/index.js +2 -0
  125. package/dist/editors/strategies/copilot/index.js.map +1 -1
  126. package/dist/editors/strategies/copilot/marketplaces.d.ts +19 -0
  127. package/dist/editors/strategies/copilot/marketplaces.d.ts.map +1 -0
  128. package/dist/editors/strategies/copilot/marketplaces.js +49 -0
  129. package/dist/editors/strategies/copilot/marketplaces.js.map +1 -0
  130. package/dist/editors/strategies/copilot/mcp.d.ts +1 -1
  131. package/dist/editors/strategies/copilot/mcp.d.ts.map +1 -1
  132. package/dist/editors/strategies/copilot/mcp.js +11 -63
  133. package/dist/editors/strategies/copilot/mcp.js.map +1 -1
  134. package/dist/editors/strategies/copilot/plugins.d.ts +19 -0
  135. package/dist/editors/strategies/copilot/plugins.d.ts.map +1 -0
  136. package/dist/editors/strategies/copilot/plugins.js +46 -0
  137. package/dist/editors/strategies/copilot/plugins.js.map +1 -0
  138. package/dist/editors/strategies/cursor/index.d.ts +2 -0
  139. package/dist/editors/strategies/cursor/index.d.ts.map +1 -1
  140. package/dist/editors/strategies/cursor/index.js +2 -0
  141. package/dist/editors/strategies/cursor/index.js.map +1 -1
  142. package/dist/editors/strategies/cursor/marketplaces.d.ts +17 -0
  143. package/dist/editors/strategies/cursor/marketplaces.d.ts.map +1 -0
  144. package/dist/editors/strategies/cursor/marketplaces.js +44 -0
  145. package/dist/editors/strategies/cursor/marketplaces.js.map +1 -0
  146. package/dist/editors/strategies/cursor/plugins.d.ts +17 -0
  147. package/dist/editors/strategies/cursor/plugins.d.ts.map +1 -0
  148. package/dist/editors/strategies/cursor/plugins.js +41 -0
  149. package/dist/editors/strategies/cursor/plugins.js.map +1 -0
  150. package/dist/editors/strategies/grok/hooks.d.ts +14 -0
  151. package/dist/editors/strategies/grok/hooks.d.ts.map +1 -0
  152. package/dist/editors/strategies/grok/hooks.js +190 -0
  153. package/dist/editors/strategies/grok/hooks.js.map +1 -0
  154. package/dist/editors/strategies/grok/index.d.ts +5 -0
  155. package/dist/editors/strategies/grok/index.d.ts.map +1 -0
  156. package/dist/editors/strategies/grok/index.js +5 -0
  157. package/dist/editors/strategies/grok/index.js.map +1 -0
  158. package/dist/editors/strategies/{gemini → grok}/mcp.d.ts +5 -5
  159. package/dist/editors/strategies/grok/mcp.d.ts.map +1 -0
  160. package/dist/editors/strategies/grok/mcp.js +60 -0
  161. package/dist/editors/strategies/grok/mcp.js.map +1 -0
  162. package/dist/editors/strategies/grok/prompts.d.ts +24 -0
  163. package/dist/editors/strategies/grok/prompts.d.ts.map +1 -0
  164. package/dist/editors/strategies/grok/prompts.js +46 -0
  165. package/dist/editors/strategies/grok/prompts.js.map +1 -0
  166. package/dist/editors/strategies/grok/rules.d.ts +20 -0
  167. package/dist/editors/strategies/grok/rules.d.ts.map +1 -0
  168. package/dist/editors/strategies/grok/rules.js +41 -0
  169. package/dist/editors/strategies/grok/rules.js.map +1 -0
  170. package/dist/editors/strategies/index.d.ts +8 -7
  171. package/dist/editors/strategies/index.d.ts.map +1 -1
  172. package/dist/editors/strategies/index.js +7 -6
  173. package/dist/editors/strategies/index.js.map +1 -1
  174. package/dist/editors/strategies/opencode/index.d.ts +1 -0
  175. package/dist/editors/strategies/opencode/index.d.ts.map +1 -1
  176. package/dist/editors/strategies/opencode/index.js +1 -0
  177. package/dist/editors/strategies/opencode/index.js.map +1 -1
  178. package/dist/editors/strategies/opencode/mcp.d.ts.map +1 -1
  179. package/dist/editors/strategies/opencode/mcp.js +7 -12
  180. package/dist/editors/strategies/opencode/mcp.js.map +1 -1
  181. package/dist/editors/strategies/opencode/plugins.d.ts +19 -0
  182. package/dist/editors/strategies/opencode/plugins.d.ts.map +1 -0
  183. package/dist/editors/strategies/opencode/plugins.js +57 -0
  184. package/dist/editors/strategies/opencode/plugins.js.map +1 -0
  185. package/dist/editors/strategies/shared/agents.d.ts +1 -0
  186. package/dist/editors/strategies/shared/agents.d.ts.map +1 -1
  187. package/dist/editors/strategies/shared/agents.js +2 -2
  188. package/dist/editors/strategies/shared/agents.js.map +1 -1
  189. package/dist/editors/strategies/shared/global-mcp.d.ts +10 -0
  190. package/dist/editors/strategies/shared/global-mcp.d.ts.map +1 -1
  191. package/dist/editors/strategies/shared/global-mcp.js +6 -0
  192. package/dist/editors/strategies/shared/global-mcp.js.map +1 -1
  193. package/dist/editors/strategies/shared/hook-paths.d.ts +16 -0
  194. package/dist/editors/strategies/shared/hook-paths.d.ts.map +1 -0
  195. package/dist/editors/strategies/shared/hook-paths.js +30 -0
  196. package/dist/editors/strategies/shared/hook-paths.js.map +1 -0
  197. package/dist/editors/strategies/shared/index.d.ts +5 -0
  198. package/dist/editors/strategies/shared/index.d.ts.map +1 -1
  199. package/dist/editors/strategies/shared/index.js +5 -0
  200. package/dist/editors/strategies/shared/index.js.map +1 -1
  201. package/dist/editors/strategies/shared/mcp-import-utils.d.ts +7 -0
  202. package/dist/editors/strategies/shared/mcp-import-utils.d.ts.map +1 -0
  203. package/dist/editors/strategies/shared/mcp-import-utils.js +16 -0
  204. package/dist/editors/strategies/shared/mcp-import-utils.js.map +1 -0
  205. package/dist/editors/strategies/shared/no-marketplaces.d.ts +17 -0
  206. package/dist/editors/strategies/shared/no-marketplaces.d.ts.map +1 -0
  207. package/dist/editors/strategies/shared/no-marketplaces.js +22 -0
  208. package/dist/editors/strategies/shared/no-marketplaces.js.map +1 -0
  209. package/dist/editors/strategies/shared/no-plugins.d.ts +17 -0
  210. package/dist/editors/strategies/shared/no-plugins.d.ts.map +1 -0
  211. package/dist/editors/strategies/shared/no-plugins.js +22 -0
  212. package/dist/editors/strategies/shared/no-plugins.js.map +1 -0
  213. package/dist/editors/strategies/shared/plugin-compatibility.d.ts +37 -0
  214. package/dist/editors/strategies/shared/plugin-compatibility.d.ts.map +1 -0
  215. package/dist/editors/strategies/shared/plugin-compatibility.js +137 -0
  216. package/dist/editors/strategies/shared/plugin-compatibility.js.map +1 -0
  217. package/dist/editors/strategies/shared/plugin-paths.d.ts +20 -0
  218. package/dist/editors/strategies/shared/plugin-paths.d.ts.map +1 -0
  219. package/dist/editors/strategies/shared/plugin-paths.js +62 -0
  220. package/dist/editors/strategies/shared/plugin-paths.js.map +1 -0
  221. package/dist/editors/strategies/shared/standard-mcp.d.ts +35 -1
  222. package/dist/editors/strategies/shared/standard-mcp.d.ts.map +1 -1
  223. package/dist/editors/strategies/shared/standard-mcp.js +84 -31
  224. package/dist/editors/strategies/shared/standard-mcp.js.map +1 -1
  225. package/dist/editors/strategies/types.d.ts +55 -1
  226. package/dist/editors/strategies/types.d.ts.map +1 -1
  227. package/dist/editors/strategies/windsurf/mcp.d.ts.map +1 -1
  228. package/dist/editors/strategies/windsurf/mcp.js +48 -56
  229. package/dist/editors/strategies/windsurf/mcp.js.map +1 -1
  230. package/dist/editors/strategies/zed/mcp.d.ts +1 -1
  231. package/dist/editors/strategies/zed/mcp.d.ts.map +1 -1
  232. package/dist/editors/strategies/zed/mcp.js +28 -30
  233. package/dist/editors/strategies/zed/mcp.js.map +1 -1
  234. package/dist/editors/types.d.ts +31 -6
  235. package/dist/editors/types.d.ts.map +1 -1
  236. package/dist/editors/types.js +10 -3
  237. package/dist/editors/types.js.map +1 -1
  238. package/dist/format-error.d.ts.map +1 -1
  239. package/dist/format-error.js +1 -3
  240. package/dist/format-error.js.map +1 -1
  241. package/dist/fs/safe-rm.d.ts.map +1 -1
  242. package/dist/fs/safe-rm.js +2 -0
  243. package/dist/fs/safe-rm.js.map +1 -1
  244. package/dist/global/processor.d.ts.map +1 -1
  245. package/dist/global/processor.js +58 -28
  246. package/dist/global/processor.js.map +1 -1
  247. package/dist/global/types.d.ts +5 -0
  248. package/dist/global/types.d.ts.map +1 -1
  249. package/dist/index.d.ts +1 -0
  250. package/dist/index.d.ts.map +1 -1
  251. package/dist/index.js +1 -0
  252. package/dist/index.js.map +1 -1
  253. package/dist/inheritance.d.ts.map +1 -1
  254. package/dist/inheritance.js +42 -7
  255. package/dist/inheritance.js.map +1 -1
  256. package/dist/mcp/env.d.ts +7 -0
  257. package/dist/mcp/env.d.ts.map +1 -1
  258. package/dist/mcp/env.js +10 -1
  259. package/dist/mcp/env.js.map +1 -1
  260. package/dist/mcp/index.d.ts +1 -1
  261. package/dist/mcp/index.d.ts.map +1 -1
  262. package/dist/mcp/index.js +1 -1
  263. package/dist/mcp/index.js.map +1 -1
  264. package/dist/merge.d.ts +11 -2
  265. package/dist/merge.d.ts.map +1 -1
  266. package/dist/merge.js +41 -0
  267. package/dist/merge.js.map +1 -1
  268. package/dist/reference-resolver.d.ts +1 -1
  269. package/dist/reference-resolver.d.ts.map +1 -1
  270. package/dist/reference-resolver.js +1 -0
  271. package/dist/reference-resolver.js.map +1 -1
  272. package/dist/state/tracker.d.ts +18 -0
  273. package/dist/state/tracker.d.ts.map +1 -1
  274. package/dist/state/tracker.js +44 -0
  275. package/dist/state/tracker.js.map +1 -1
  276. package/dist/state/types.d.ts +6 -2
  277. package/dist/state/types.d.ts.map +1 -1
  278. package/dist/type-guards.d.ts +7 -0
  279. package/dist/type-guards.d.ts.map +1 -0
  280. package/dist/type-guards.js +11 -0
  281. package/dist/type-guards.js.map +1 -0
  282. package/dist/updater.d.ts.map +1 -1
  283. package/dist/updater.js +11 -9
  284. package/dist/updater.js.map +1 -1
  285. package/package.json +3 -3
  286. package/dist/editors/adapters/gemini.d.ts +0 -45
  287. package/dist/editors/adapters/gemini.d.ts.map +0 -1
  288. package/dist/editors/adapters/gemini.js +0 -144
  289. package/dist/editors/adapters/gemini.js.map +0 -1
  290. package/dist/editors/strategies/gemini/hooks.d.ts.map +0 -1
  291. package/dist/editors/strategies/gemini/hooks.js.map +0 -1
  292. package/dist/editors/strategies/gemini/index.d.ts +0 -5
  293. package/dist/editors/strategies/gemini/index.d.ts.map +0 -1
  294. package/dist/editors/strategies/gemini/index.js +0 -5
  295. package/dist/editors/strategies/gemini/index.js.map +0 -1
  296. package/dist/editors/strategies/gemini/mcp.d.ts.map +0 -1
  297. package/dist/editors/strategies/gemini/mcp.js +0 -73
  298. package/dist/editors/strategies/gemini/mcp.js.map +0 -1
  299. package/dist/editors/strategies/gemini/prompts.d.ts +0 -34
  300. package/dist/editors/strategies/gemini/prompts.d.ts.map +0 -1
  301. package/dist/editors/strategies/gemini/prompts.js +0 -92
  302. package/dist/editors/strategies/gemini/prompts.js.map +0 -1
  303. package/dist/editors/strategies/gemini/rules.d.ts +0 -19
  304. package/dist/editors/strategies/gemini/rules.d.ts.map +0 -1
  305. package/dist/editors/strategies/gemini/rules.js +0 -51
  306. package/dist/editors/strategies/gemini/rules.js.map +0 -1
@@ -0,0 +1,19 @@
1
+ import { type MarketplacesConfig } from '@a1st/aix-schema';
2
+ import type { MarketplacesStrategy } from '../types.js';
3
+ /**
4
+ * GitHub Copilot marketplaces strategy. Formats marketplace catalogs into `.github/copilot-marketplaces.json`
5
+ * (or `~/.config/github-copilot/marketplaces.json`).
6
+ */
7
+ export declare class CopilotMarketplacesStrategy implements MarketplacesStrategy {
8
+ isSupported(): boolean;
9
+ getConfigPath(): string;
10
+ isProjectRootConfig(): boolean;
11
+ getGlobalConfigPath(): string;
12
+ formatConfig(marketplaces: MarketplacesConfig): string;
13
+ getUnsupportedMarketplaces(_marketplaces: MarketplacesConfig): string[];
14
+ parseImportedConfig(content: string): {
15
+ marketplaces: MarketplacesConfig;
16
+ warnings: string[];
17
+ };
18
+ }
19
+ //# sourceMappingURL=marketplaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplaces.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/marketplaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGxD;;;GAGG;AACH,qBAAa,2BAA4B,YAAW,oBAAoB;IACrE,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAIvB,mBAAmB,IAAI,OAAO;IAI9B,mBAAmB,IAAI,MAAM;IAI7B,YAAY,CAAC,YAAY,EAAE,kBAAkB,GAAG,MAAM;IAyBtD,0BAA0B,CAAC,aAAa,EAAE,kBAAkB,GAAG,MAAM,EAAE;IAIvE,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,YAAY,EAAE,kBAAkB,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE;CAKhG"}
@@ -0,0 +1,49 @@
1
+ import { parseJsonc } from '@a1st/aix-schema';
2
+ import { getGlobalCopilotDir } from './paths.js';
3
+ /**
4
+ * GitHub Copilot marketplaces strategy. Formats marketplace catalogs into `.github/copilot-marketplaces.json`
5
+ * (or `~/.config/github-copilot/marketplaces.json`).
6
+ */
7
+ export class CopilotMarketplacesStrategy {
8
+ isSupported() {
9
+ return true;
10
+ }
11
+ getConfigPath() {
12
+ return '.github/copilot-marketplaces.json';
13
+ }
14
+ isProjectRootConfig() {
15
+ return true;
16
+ }
17
+ getGlobalConfigPath() {
18
+ return `${getGlobalCopilotDir()}/marketplaces.json`;
19
+ }
20
+ formatConfig(marketplaces) {
21
+ const activeMarketplaces = {};
22
+ for (const [name, value] of Object.entries(marketplaces)) {
23
+ if (!value) {
24
+ continue;
25
+ }
26
+ if (typeof value === 'string') {
27
+ activeMarketplaces[name] = { source: value };
28
+ }
29
+ else if (typeof value === 'object' && value !== null) {
30
+ if (value.enabled === false) {
31
+ continue;
32
+ }
33
+ activeMarketplaces[name] = {
34
+ source: value.source,
35
+ ...(value.description ? { description: value.description } : {}),
36
+ };
37
+ }
38
+ }
39
+ return JSON.stringify({ marketplaces: activeMarketplaces }, null, 2) + '\n';
40
+ }
41
+ getUnsupportedMarketplaces(_marketplaces) {
42
+ return [];
43
+ }
44
+ parseImportedConfig(content) {
45
+ const parsed = parseJsonc(content);
46
+ return { marketplaces: parsed.data?.marketplaces ?? {}, warnings: parsed.errors.map((error) => error.message) };
47
+ }
48
+ }
49
+ //# sourceMappingURL=marketplaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplaces.js","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/marketplaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA2B,MAAM,kBAAkB,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD;;;GAGG;AACH,MAAM,OAAO,2BAA2B;IACrC,WAAW;QACR,OAAO,IAAI,CAAC;IACf,CAAC;IAED,aAAa;QACV,OAAO,mCAAmC,CAAC;IAC9C,CAAC;IAED,mBAAmB;QAChB,OAAO,IAAI,CAAC;IACf,CAAC;IAED,mBAAmB;QAChB,OAAO,GAAG,mBAAmB,EAAE,oBAAoB,CAAC;IACvD,CAAC;IAED,YAAY,CAAC,YAAgC;QAC1C,MAAM,kBAAkB,GAA4B,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from '@a1st/aix-schema';
1
+ import { type McpServerConfig } from '@a1st/aix-schema';
2
2
  import type { McpStrategy } from '../types.js';
3
3
  /**
4
4
  * GitHub Copilot MCP strategy. Copilot CLI uses `.mcp.json` at the project root and
@@ -1 +1 @@
1
- {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,WAAW;IACnD,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAIvB,mBAAmB,IAAI,OAAO;IAI9B,sBAAsB,IAAI,MAAM,GAAG,IAAI;IAIvC,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE;IAO7D,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,MAAM;IAyC1D,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG;QACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QACrC,QAAQ,EAAE,MAAM,EAAE,CAAC;KACrB;CA4BH"}
1
+ {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO/C;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,WAAW;IACnD,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAIvB,mBAAmB,IAAI,OAAO;IAI9B,sBAAsB,IAAI,MAAM,GAAG,IAAI;IAIvC,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE;IAO7D,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,MAAM;IAc1D,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG;QACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QACrC,QAAQ,EAAE,MAAM,EAAE,CAAC;KACrB;CAwBH"}
@@ -1,6 +1,9 @@
1
+ import { parseJsonc } from '@a1st/aix-schema';
1
2
  import { join } from 'pathe';
2
- import { getTransport } from '../../../mcp/normalize.js';
3
+ import { isRecord } from '../../../type-guards.js';
4
+ import { buildStandardServerEntry, parseStandardServerEntry } from '../shared/standard-mcp.js';
3
5
  import { getGlobalCopilotDir } from './paths.js';
6
+ const ENTRY_OPTIONS = { transportTypes: { stdio: 'local', http: 'http' } };
4
7
  /**
5
8
  * GitHub Copilot MCP strategy. Copilot CLI uses `.mcp.json` at the project root and
6
9
  * `.config/github-copilot/mcp-config.json` for user-scoped config.
@@ -30,30 +33,7 @@ export class CopilotMcpStrategy {
30
33
  if (serverConfig.enabled === false) {
31
34
  continue;
32
35
  }
33
- const transport = getTransport(serverConfig);
34
- if (transport.type === 'stdio') {
35
- const server = {
36
- type: 'local',
37
- command: transport.command,
38
- };
39
- if (transport.args && transport.args.length > 0) {
40
- server.args = transport.args;
41
- }
42
- if (transport.env && Object.keys(transport.env).length > 0) {
43
- server.env = transport.env;
44
- }
45
- mcpServers[name] = server;
46
- }
47
- else if (transport.type === 'http') {
48
- const server = {
49
- type: 'http',
50
- url: transport.url,
51
- };
52
- if (transport.headers && Object.keys(transport.headers).length > 0) {
53
- server.headers = transport.headers;
54
- }
55
- mcpServers[name] = server;
56
- }
36
+ mcpServers[name] = buildStandardServerEntry(serverConfig, ENTRY_OPTIONS);
57
37
  }
58
38
  return JSON.stringify({ mcpServers }, null, 2) + '\n';
59
39
  }
@@ -62,10 +42,7 @@ export class CopilotMcpStrategy {
62
42
  try {
63
43
  const config = parseJsonObject(content), servers = getServerEntries(config);
64
44
  for (const [name, server] of Object.entries(servers)) {
65
- if (!isRecord(server)) {
66
- continue;
67
- }
68
- const parsed = parseServer(server);
45
+ const parsed = parseStandardServerEntry(server);
69
46
  if (!parsed) {
70
47
  warnings.push(`Skipping GitHub Copilot MCP server "${name}": unknown format`);
71
48
  continue;
@@ -80,11 +57,12 @@ export class CopilotMcpStrategy {
80
57
  }
81
58
  }
82
59
  function parseJsonObject(content) {
83
- const parsed = JSON.parse(content);
84
- if (!isRecord(parsed)) {
85
- throw new Error('Config root must be an object');
60
+ const parsed = parseJsonc(content);
61
+ if (parsed.errors.length > 0 || !isRecord(parsed.data)) {
62
+ const detail = parsed.errors[0]?.message ?? 'Config root must be an object';
63
+ throw new Error(detail);
86
64
  }
87
- return parsed;
65
+ return parsed.data;
88
66
  }
89
67
  function getServerEntries(config) {
90
68
  if (isRecord(config.mcpServers)) {
@@ -95,34 +73,4 @@ function getServerEntries(config) {
95
73
  }
96
74
  return config;
97
75
  }
98
- function parseServer(server) {
99
- if (typeof server.command === 'string') {
100
- const parsed = {
101
- command: server.command,
102
- };
103
- if (Array.isArray(server.args) && server.args.length > 0) {
104
- parsed.args = server.args.map(String);
105
- }
106
- if (isRecord(server.env) && Object.keys(server.env).length > 0) {
107
- parsed.env = stringifyRecord(server.env);
108
- }
109
- return parsed;
110
- }
111
- if (typeof server.url === 'string') {
112
- const parsed = {
113
- url: server.url,
114
- };
115
- if (isRecord(server.headers) && Object.keys(server.headers).length > 0) {
116
- parsed.headers = stringifyRecord(server.headers);
117
- }
118
- return parsed;
119
- }
120
- return null;
121
- }
122
- function stringifyRecord(value) {
123
- return Object.fromEntries(Object.entries(value).map(([key, entry]) => [key, String(entry)]));
124
- }
125
- function isRecord(value) {
126
- return typeof value === 'object' && value !== null && !Array.isArray(value);
127
- }
128
76
  //# sourceMappingURL=mcp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../../src/editors/strategies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gB,CAAC,MAA+B;IACtD,IAAI,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC,UAAU,CAAC;IAC5B,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,MAAM,CAAC,OAAO,CAAC;IACzB,CAAC;IACD,OAAO,MAAM,CAAC;AACjB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type PluginsConfig } from '@a1st/aix-schema';
2
+ import type { PluginsStrategy } from '../types.js';
3
+ /**
4
+ * GitHub Copilot plugins strategy. Formats agent plugins into `.github/copilot-plugins.json`
5
+ * (or `~/.config/github-copilot/plugins.json`).
6
+ */
7
+ export declare class CopilotPluginsStrategy implements PluginsStrategy {
8
+ isSupported(): boolean;
9
+ getConfigPath(): string;
10
+ isProjectRootConfig(): boolean;
11
+ getGlobalConfigPath(): string;
12
+ formatConfig(plugins: PluginsConfig): string;
13
+ getUnsupportedPlugins(_plugins: PluginsConfig): string[];
14
+ parseImportedConfig(content: string): {
15
+ plugins: PluginsConfig;
16
+ warnings: string[];
17
+ };
18
+ }
19
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;;GAGG;AACH,qBAAa,sBAAuB,YAAW,eAAe;IAC3D,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAIvB,mBAAmB,IAAI,OAAO;IAI9B,mBAAmB,IAAI,MAAM;IAI7B,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM;IAmB5C,qBAAqB,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,EAAE;IAIxD,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,aAAa,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE;CAKtF"}
@@ -0,0 +1,46 @@
1
+ import { parseJsonc } from '@a1st/aix-schema';
2
+ import { getGlobalCopilotDir } from './paths.js';
3
+ /**
4
+ * GitHub Copilot plugins strategy. Formats agent plugins into `.github/copilot-plugins.json`
5
+ * (or `~/.config/github-copilot/plugins.json`).
6
+ */
7
+ export class CopilotPluginsStrategy {
8
+ isSupported() {
9
+ return true;
10
+ }
11
+ getConfigPath() {
12
+ return '.github/copilot-plugins.json';
13
+ }
14
+ isProjectRootConfig() {
15
+ return true;
16
+ }
17
+ getGlobalConfigPath() {
18
+ return `${getGlobalCopilotDir()}/plugins.json`;
19
+ }
20
+ formatConfig(plugins) {
21
+ const activePlugins = {};
22
+ for (const [key, value] of Object.entries(plugins)) {
23
+ if (value === false) {
24
+ activePlugins[key] = false;
25
+ }
26
+ else if (value === true || typeof value === 'string') {
27
+ activePlugins[key] = true;
28
+ }
29
+ else if (typeof value === 'object' && value !== null) {
30
+ activePlugins[key] = {
31
+ enabled: value.enabled !== false,
32
+ ...(value.options ? { options: value.options } : {}),
33
+ };
34
+ }
35
+ }
36
+ return JSON.stringify({ plugins: activePlugins }, null, 2) + '\n';
37
+ }
38
+ getUnsupportedPlugins(_plugins) {
39
+ return [];
40
+ }
41
+ parseImportedConfig(content) {
42
+ const parsed = parseJsonc(content);
43
+ return { plugins: parsed.data?.plugins ?? {}, warnings: parsed.errors.map((error) => error.message) };
44
+ }
45
+ }
46
+ //# sourceMappingURL=plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;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B,OAAO,CAAC,CAAC;QAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;IACzG,CAAC;CACH"}
@@ -1,4 +1,6 @@
1
1
  export { CursorRulesStrategy } from './rules.js';
2
2
  export { CursorPromptsStrategy } from './prompts.js';
3
3
  export { CursorHooksStrategy } from './hooks.js';
4
+ export { CursorPluginsStrategy } from './plugins.js';
5
+ export { CursorMarketplacesStrategy } from './marketplaces.js';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export { CursorRulesStrategy } from './rules.js';
2
2
  export { CursorPromptsStrategy } from './prompts.js';
3
3
  export { CursorHooksStrategy } from './hooks.js';
4
+ export { CursorPluginsStrategy } from './plugins.js';
5
+ export { CursorMarketplacesStrategy } from './marketplaces.js';
4
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type MarketplacesConfig } from '@a1st/aix-schema';
2
+ import type { MarketplacesStrategy } from '../types.js';
3
+ /**
4
+ * Cursor marketplaces strategy. Formats marketplace catalogs into `.cursor-plugin/marketplace.json`.
5
+ */
6
+ export declare class CursorMarketplacesStrategy implements MarketplacesStrategy {
7
+ isSupported(): boolean;
8
+ getConfigPath(): string;
9
+ isProjectRootConfig(): boolean;
10
+ formatConfig(marketplaces: MarketplacesConfig): string;
11
+ getUnsupportedMarketplaces(_marketplaces: MarketplacesConfig): string[];
12
+ parseImportedConfig(content: string): {
13
+ marketplaces: MarketplacesConfig;
14
+ warnings: string[];
15
+ };
16
+ }
17
+ //# sourceMappingURL=marketplaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplaces.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/marketplaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD;;GAEG;AACH,qBAAa,0BAA2B,YAAW,oBAAoB;IACpE,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAIvB,mBAAmB,IAAI,OAAO;IAI9B,YAAY,CAAC,YAAY,EAAE,kBAAkB,GAAG,MAAM;IAyBtD,0BAA0B,CAAC,aAAa,EAAE,kBAAkB,GAAG,MAAM,EAAE;IAIvE,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,YAAY,EAAE,kBAAkB,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE;CAKhG"}
@@ -0,0 +1,44 @@
1
+ import { parseJsonc } from '@a1st/aix-schema';
2
+ /**
3
+ * Cursor marketplaces strategy. Formats marketplace catalogs into `.cursor-plugin/marketplace.json`.
4
+ */
5
+ export class CursorMarketplacesStrategy {
6
+ isSupported() {
7
+ return true;
8
+ }
9
+ getConfigPath() {
10
+ return '.cursor-plugin/marketplace.json';
11
+ }
12
+ isProjectRootConfig() {
13
+ return true;
14
+ }
15
+ formatConfig(marketplaces) {
16
+ const activeMarketplaces = {};
17
+ for (const [name, value] of Object.entries(marketplaces)) {
18
+ if (!value) {
19
+ continue;
20
+ }
21
+ if (typeof value === 'string') {
22
+ activeMarketplaces[name] = { source: value };
23
+ }
24
+ else if (typeof value === 'object' && value !== null) {
25
+ if (value.enabled === false) {
26
+ continue;
27
+ }
28
+ activeMarketplaces[name] = {
29
+ source: value.source,
30
+ ...(value.description ? { description: value.description } : {}),
31
+ };
32
+ }
33
+ }
34
+ return JSON.stringify({ marketplaces: activeMarketplaces }, null, 2) + '\n';
35
+ }
36
+ getUnsupportedMarketplaces(_marketplaces) {
37
+ return [];
38
+ }
39
+ parseImportedConfig(content) {
40
+ const parsed = parseJsonc(content);
41
+ return { marketplaces: parsed.data?.marketplaces ?? {}, warnings: parsed.errors.map((error) => error.message) };
42
+ }
43
+ }
44
+ //# sourceMappingURL=marketplaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplaces.js","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/marketplaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA2B,MAAM,kBAAkB,CAAC;AAGvE;;GAEG;AACH,MAAM,OAAO,0BAA0B;IACpC,WAAW;QACR,OAAO,IAAI,CAAC;IACf,CAAC;IAED,aAAa;QACV,OAAO,iCAAiC,CAAC;IAC5C,CAAC;IAED,mBAAmB;QAChB,OAAO,IAAI,CAAC;IACf,CAAC;IAED,YAAY,CAAC,YAAgC;QAC1C,MAAM,kBAAkB,GAA4B,EAAE,CAAC;QAEvD,KAAK,MAAM,CAAE,IAAI,EAAE,KAAK,CAAE,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;YAC1D,IAAI,CAAC,KAAK,EAAE,CAAC;gBACV,SAAS;YACZ,CAAC;YAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC7B,kBAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;YAChD,CAAC;iBAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACtD,IAAI,KAAK,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;oBAC3B,SAAS;gBACZ,CAAC;gBAED,kBAAkB,CAAC,IAAI,CAAC,GAAG;oBACxB,MAAM,EAAE,KAAK,CAAC,MAAM;oBACpB,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAClE,CAAC;YACL,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IAC/E,CAAC;IAED,0BAA0B,CAAC,aAAiC;QACzD,OAAO,EAAE,CAAC;IACb,CAAC;IAED,mBAAmB,CAAC,OAAe;QAChC,MAAM,MAAM,GAAG,UAAU,CAAwC,OAAO,CAAC,CAAC;QAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,IAAI,EAAE,YAAY,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;IACnH,CAAC;CACH"}
@@ -0,0 +1,17 @@
1
+ import { type PluginsConfig } from '@a1st/aix-schema';
2
+ import type { PluginsStrategy } from '../types.js';
3
+ /**
4
+ * Cursor plugins strategy. Formats plugins into `.cursor-plugin/plugin.json`.
5
+ */
6
+ export declare class CursorPluginsStrategy implements PluginsStrategy {
7
+ isSupported(): boolean;
8
+ getConfigPath(): string;
9
+ isProjectRootConfig(): boolean;
10
+ formatConfig(plugins: PluginsConfig): string;
11
+ getUnsupportedPlugins(_plugins: PluginsConfig): string[];
12
+ parseImportedConfig(content: string): {
13
+ plugins: PluginsConfig;
14
+ warnings: string[];
15
+ };
16
+ }
17
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;GAEG;AACH,qBAAa,qBAAsB,YAAW,eAAe;IAC1D,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAIvB,mBAAmB,IAAI,OAAO;IAI9B,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM;IAmB5C,qBAAqB,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,EAAE;IAIxD,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,aAAa,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE;CAKtF"}
@@ -0,0 +1,41 @@
1
+ import { parseJsonc } from '@a1st/aix-schema';
2
+ /**
3
+ * Cursor plugins strategy. Formats plugins into `.cursor-plugin/plugin.json`.
4
+ */
5
+ export class CursorPluginsStrategy {
6
+ isSupported() {
7
+ return true;
8
+ }
9
+ getConfigPath() {
10
+ return '.cursor-plugin/plugin.json';
11
+ }
12
+ isProjectRootConfig() {
13
+ return true;
14
+ }
15
+ formatConfig(plugins) {
16
+ const activePlugins = {};
17
+ for (const [key, value] of Object.entries(plugins)) {
18
+ if (value === false) {
19
+ activePlugins[key] = false;
20
+ }
21
+ else if (value === true || typeof value === 'string') {
22
+ activePlugins[key] = true;
23
+ }
24
+ else if (typeof value === 'object' && value !== null) {
25
+ activePlugins[key] = {
26
+ enabled: value.enabled !== false,
27
+ ...(value.options ? { options: value.options } : {}),
28
+ };
29
+ }
30
+ }
31
+ return JSON.stringify({ plugins: activePlugins }, null, 2) + '\n';
32
+ }
33
+ getUnsupportedPlugins(_plugins) {
34
+ return [];
35
+ }
36
+ parseImportedConfig(content) {
37
+ const parsed = parseJsonc(content);
38
+ return { plugins: parsed.data?.plugins ?? {}, warnings: parsed.errors.map((error) => error.message) };
39
+ }
40
+ }
41
+ //# sourceMappingURL=plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,kBAAkB,CAAC;AAGlE;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAC/B,WAAW;QACR,OAAO,IAAI,CAAC;IACf,CAAC;IAED,aAAa;QACV,OAAO,4BAA4B,CAAC;IACvC,CAAC;IAED,mBAAmB;QAChB,OAAO,IAAI,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@ -0,0 +1,14 @@
1
+ import type { HooksConfig } from '@a1st/aix-schema';
2
+ import type { HooksStrategy, ParsedHooksImportResult, UnsupportedHookField } from '../types.js';
3
+ export declare class GrokHooksStrategy implements HooksStrategy {
4
+ isSupported(): boolean;
5
+ getConfigPath(): string;
6
+ getGlobalConfigPath(): string;
7
+ getUnsupportedEvents(hooks: HooksConfig): string[];
8
+ getUnsupportedFields(hooks: HooksConfig): UnsupportedHookField[];
9
+ getSupportedEvents(): readonly string[];
10
+ getNativeEventNames(): readonly string[];
11
+ parseImportedConfig(content: string): ParsedHooksImportResult;
12
+ formatConfig(hooks: HooksConfig): string;
13
+ }
14
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/grok/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AA6JhG,qBAAa,iBAAkB,YAAW,aAAa;IACpD,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAIvB,mBAAmB,IAAI,MAAM;IAI7B,oBAAoB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,EAAE;IAIlD,oBAAoB,CAAC,KAAK,EAAE,WAAW,GAAG,oBAAoB,EAAE;IAsBhE,kBAAkB,IAAI,SAAS,MAAM,EAAE;IAIvC,mBAAmB,IAAI,SAAS,MAAM,EAAE;IAIxC,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB;IAiB7D,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM;CAgC1C"}