@structured-world/gitlab-mcp 10.1.0 → 12.0.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 (387) hide show
  1. package/README.md +8 -8
  2. package/README.md.in +2 -2
  3. package/dist/src/accounts/chat-accounts.d.ts +17 -0
  4. package/dist/src/accounts/chat-accounts.js +245 -0
  5. package/dist/src/accounts/chat-accounts.js.map +1 -0
  6. package/dist/src/accounts/instance-tokens.d.ts +2 -0
  7. package/dist/src/accounts/instance-tokens.js +43 -0
  8. package/dist/src/accounts/instance-tokens.js.map +1 -0
  9. package/dist/src/accounts/link.d.ts +16 -0
  10. package/dist/src/accounts/link.js +469 -0
  11. package/dist/src/accounts/link.js.map +1 -0
  12. package/dist/src/accounts/token-account.d.ts +6 -0
  13. package/dist/src/accounts/token-account.js +13 -0
  14. package/dist/src/accounts/token-account.js.map +1 -0
  15. package/dist/src/channel-gateway/format.js +7 -1
  16. package/dist/src/channel-gateway/format.js.map +1 -1
  17. package/dist/src/channel-gateway/forwarding.d.ts +3 -0
  18. package/dist/src/channel-gateway/forwarding.js +8 -1
  19. package/dist/src/channel-gateway/forwarding.js.map +1 -1
  20. package/dist/src/channel-gateway/gateway.d.ts +7 -0
  21. package/dist/src/channel-gateway/gateway.js +80 -16
  22. package/dist/src/channel-gateway/gateway.js.map +1 -1
  23. package/dist/src/cli/docker/container-runtime.d.ts +1 -0
  24. package/dist/src/cli/docker/container-runtime.js +37 -5
  25. package/dist/src/cli/docker/container-runtime.js.map +1 -1
  26. package/dist/src/cli/docker/docker-command.js +11 -2
  27. package/dist/src/cli/docker/docker-command.js.map +1 -1
  28. package/dist/src/cli/docker/docker-utils.d.ts +1 -0
  29. package/dist/src/cli/docker/docker-utils.js +137 -27
  30. package/dist/src/cli/docker/docker-utils.js.map +1 -1
  31. package/dist/src/cli/docker/oauth-issuer-prompt.d.ts +2 -0
  32. package/dist/src/cli/docker/oauth-issuer-prompt.js +47 -0
  33. package/dist/src/cli/docker/oauth-issuer-prompt.js.map +1 -0
  34. package/dist/src/cli/docker/types.d.ts +18 -4
  35. package/dist/src/cli/docker/types.js.map +1 -1
  36. package/dist/src/cli/init/config-generator.d.ts +3 -2
  37. package/dist/src/cli/init/config-generator.js +15 -0
  38. package/dist/src/cli/init/config-generator.js.map +1 -1
  39. package/dist/src/cli/init/types.d.ts +7 -2
  40. package/dist/src/cli/init/types.js +9 -0
  41. package/dist/src/cli/init/types.js.map +1 -1
  42. package/dist/src/cli/init/wizard.js +31 -1
  43. package/dist/src/cli/init/wizard.js.map +1 -1
  44. package/dist/src/cli/install/codex.d.ts +25 -0
  45. package/dist/src/cli/install/codex.js +261 -0
  46. package/dist/src/cli/install/codex.js.map +1 -0
  47. package/dist/src/cli/install/detector.js +22 -0
  48. package/dist/src/cli/install/detector.js.map +1 -1
  49. package/dist/src/cli/install/index.d.ts +2 -1
  50. package/dist/src/cli/install/index.js +3 -1
  51. package/dist/src/cli/install/index.js.map +1 -1
  52. package/dist/src/cli/install/install-command.d.ts +5 -2
  53. package/dist/src/cli/install/install-command.js +52 -8
  54. package/dist/src/cli/install/install-command.js.map +1 -1
  55. package/dist/src/cli/install/installers.d.ts +8 -8
  56. package/dist/src/cli/install/installers.js +18 -3
  57. package/dist/src/cli/install/installers.js.map +1 -1
  58. package/dist/src/cli/install/notes.d.ts +2 -0
  59. package/dist/src/cli/install/notes.js +8 -0
  60. package/dist/src/cli/install/notes.js.map +1 -0
  61. package/dist/src/cli/install/types.d.ts +1 -0
  62. package/dist/src/cli/install/types.js +12 -0
  63. package/dist/src/cli/install/types.js.map +1 -1
  64. package/dist/src/cli/list-tools.js +14 -35
  65. package/dist/src/cli/list-tools.js.map +1 -1
  66. package/dist/src/cli/plugin/build.d.ts +23 -0
  67. package/dist/src/cli/plugin/build.js +165 -0
  68. package/dist/src/cli/plugin/build.js.map +1 -0
  69. package/dist/src/cli/plugin/command.d.ts +4 -0
  70. package/dist/src/cli/plugin/command.js +89 -0
  71. package/dist/src/cli/plugin/command.js.map +1 -0
  72. package/dist/src/cli/plugin/index.d.ts +5 -0
  73. package/dist/src/cli/plugin/index.js +15 -0
  74. package/dist/src/cli/plugin/index.js.map +1 -0
  75. package/dist/src/cli/plugin/listing.d.ts +21 -0
  76. package/dist/src/cli/plugin/listing.js +44 -0
  77. package/dist/src/cli/plugin/listing.js.map +1 -0
  78. package/dist/src/cli/plugin/validate.d.ts +21 -0
  79. package/dist/src/cli/plugin/validate.js +496 -0
  80. package/dist/src/cli/plugin/validate.js.map +1 -0
  81. package/dist/src/cli/plugin/zip.d.ts +6 -0
  82. package/dist/src/cli/plugin/zip.js +83 -0
  83. package/dist/src/cli/plugin/zip.js.map +1 -0
  84. package/dist/src/cli/setup/flows/configure-existing.js +5 -0
  85. package/dist/src/cli/setup/flows/configure-existing.js.map +1 -1
  86. package/dist/src/cli/setup/flows/local-setup.js +3 -0
  87. package/dist/src/cli/setup/flows/local-setup.js.map +1 -1
  88. package/dist/src/cli/setup/flows/server-setup.js +15 -0
  89. package/dist/src/cli/setup/flows/server-setup.js.map +1 -1
  90. package/dist/src/cli-utils.d.ts +2 -0
  91. package/dist/src/cli-utils.js +6 -0
  92. package/dist/src/cli-utils.js.map +1 -1
  93. package/dist/src/config/instances-loader.js +17 -3
  94. package/dist/src/config/instances-loader.js.map +1 -1
  95. package/dist/src/config/instances-schema.d.ts +8 -3
  96. package/dist/src/config/instances-schema.js +12 -6
  97. package/dist/src/config/instances-schema.js.map +1 -1
  98. package/dist/src/config.js.map +1 -1
  99. package/dist/src/configuration/caller.d.ts +10 -0
  100. package/dist/src/configuration/caller.js +39 -0
  101. package/dist/src/configuration/caller.js.map +1 -0
  102. package/dist/src/configuration/composed-feeds.d.ts +31 -0
  103. package/dist/src/configuration/composed-feeds.js +698 -0
  104. package/dist/src/configuration/composed-feeds.js.map +1 -0
  105. package/dist/src/configuration/composed-listings.d.ts +14 -0
  106. package/dist/src/configuration/composed-listings.js +157 -0
  107. package/dist/src/configuration/composed-listings.js.map +1 -0
  108. package/dist/src/configuration/groups.d.ts +8 -0
  109. package/dist/src/configuration/groups.js +39 -0
  110. package/dist/src/configuration/groups.js.map +1 -0
  111. package/dist/src/configuration/index.d.ts +6 -0
  112. package/dist/src/configuration/index.js +87 -0
  113. package/dist/src/configuration/index.js.map +1 -0
  114. package/dist/src/configuration/policy.d.ts +34 -0
  115. package/dist/src/configuration/policy.js +122 -0
  116. package/dist/src/configuration/policy.js.map +1 -0
  117. package/dist/src/configuration/scope-ids.d.ts +7 -0
  118. package/dist/src/configuration/scope-ids.js +78 -0
  119. package/dist/src/configuration/scope-ids.js.map +1 -0
  120. package/dist/src/configuration/scope-projects.d.ts +5 -0
  121. package/dist/src/configuration/scope-projects.js +76 -0
  122. package/dist/src/configuration/scope-projects.js.map +1 -0
  123. package/dist/src/configuration/scope-targets.d.ts +26 -0
  124. package/dist/src/configuration/scope-targets.js +307 -0
  125. package/dist/src/configuration/scope-targets.js.map +1 -0
  126. package/dist/src/configuration/scoped-execution.d.ts +6 -0
  127. package/dist/src/configuration/scoped-execution.js +577 -0
  128. package/dist/src/configuration/scoped-execution.js.map +1 -0
  129. package/dist/src/configuration/scoped-feeds.d.ts +22 -0
  130. package/dist/src/configuration/scoped-feeds.js +136 -0
  131. package/dist/src/configuration/scoped-feeds.js.map +1 -0
  132. package/dist/src/configuration/service.d.ts +52 -0
  133. package/dist/src/configuration/service.js +169 -0
  134. package/dist/src/configuration/service.js.map +1 -0
  135. package/dist/src/configuration/settings-store.d.ts +20 -0
  136. package/dist/src/configuration/settings-store.js +228 -0
  137. package/dist/src/configuration/settings-store.js.map +1 -0
  138. package/dist/src/configuration/types.d.ts +30 -0
  139. package/dist/src/configuration/types.js +20 -0
  140. package/dist/src/configuration/types.js.map +1 -0
  141. package/dist/src/contracts/storage.d.ts +3 -2
  142. package/dist/src/dashboard/html-template.js +8 -15
  143. package/dist/src/dashboard/html-template.js.map +1 -1
  144. package/dist/src/dashboard/metrics.d.ts +1 -1
  145. package/dist/src/entities/context/accounts.d.ts +19 -0
  146. package/dist/src/entities/context/accounts.js +115 -0
  147. package/dist/src/entities/context/accounts.js.map +1 -0
  148. package/dist/src/entities/context/connection-check.d.ts +64 -0
  149. package/dist/src/entities/context/connection-check.js +117 -0
  150. package/dist/src/entities/context/connection-check.js.map +1 -0
  151. package/dist/src/entities/context/context-manager.d.ts +10 -23
  152. package/dist/src/entities/context/context-manager.js +101 -282
  153. package/dist/src/entities/context/context-manager.js.map +1 -1
  154. package/dist/src/entities/context/handlers.d.ts +5 -5
  155. package/dist/src/entities/context/handlers.js +11 -14
  156. package/dist/src/entities/context/handlers.js.map +1 -1
  157. package/dist/src/entities/context/output-schema.d.ts +320 -0
  158. package/dist/src/entities/context/output-schema.js +210 -0
  159. package/dist/src/entities/context/output-schema.js.map +1 -0
  160. package/dist/src/entities/context/profile.d.ts +29 -0
  161. package/dist/src/entities/context/profile.js +72 -0
  162. package/dist/src/entities/context/profile.js.map +1 -0
  163. package/dist/src/entities/context/registry.js +140 -3
  164. package/dist/src/entities/context/registry.js.map +1 -1
  165. package/dist/src/entities/context/schema.d.ts +32 -14
  166. package/dist/src/entities/context/schema.js +36 -13
  167. package/dist/src/entities/context/schema.js.map +1 -1
  168. package/dist/src/entities/context/scope-search.d.ts +49 -0
  169. package/dist/src/entities/context/scope-search.js +71 -0
  170. package/dist/src/entities/context/scope-search.js.map +1 -0
  171. package/dist/src/entities/context/settings-panel.d.ts +13 -0
  172. package/dist/src/entities/context/settings-panel.js +508 -0
  173. package/dist/src/entities/context/settings-panel.js.map +1 -0
  174. package/dist/src/entities/context/settings.d.ts +78 -0
  175. package/dist/src/entities/context/settings.js +239 -0
  176. package/dist/src/entities/context/settings.js.map +1 -0
  177. package/dist/src/entities/context/types.d.ts +3 -4
  178. package/dist/src/entities/context/whoami.js +39 -31
  179. package/dist/src/entities/context/whoami.js.map +1 -1
  180. package/dist/src/entities/core/registry.js +34 -33
  181. package/dist/src/entities/core/registry.js.map +1 -1
  182. package/dist/src/entities/core/schema-readonly.d.ts +4 -4
  183. package/dist/src/entities/environments/schema-readonly.d.ts +4 -4
  184. package/dist/src/entities/files/registry.js +3 -2
  185. package/dist/src/entities/files/registry.js.map +1 -1
  186. package/dist/src/entities/iterations/registry.js +3 -2
  187. package/dist/src/entities/iterations/registry.js.map +1 -1
  188. package/dist/src/entities/mrs/registry.js +6 -4
  189. package/dist/src/entities/mrs/registry.js.map +1 -1
  190. package/dist/src/entities/mrs/schema-readonly.d.ts +2 -2
  191. package/dist/src/entities/mrs/schema-readonly.js +19 -2
  192. package/dist/src/entities/mrs/schema-readonly.js.map +1 -1
  193. package/dist/src/entities/mrs/schema.d.ts +1 -1
  194. package/dist/src/entities/pipelines/registry.js +23 -31
  195. package/dist/src/entities/pipelines/registry.js.map +1 -1
  196. package/dist/src/entities/pipelines/schema-readonly.d.ts +11 -11
  197. package/dist/src/entities/pipelines/schema-readonly.js +5 -2
  198. package/dist/src/entities/pipelines/schema-readonly.js.map +1 -1
  199. package/dist/src/entities/pipelines/trace.d.ts +20 -0
  200. package/dist/src/entities/pipelines/trace.js +156 -0
  201. package/dist/src/entities/pipelines/trace.js.map +1 -0
  202. package/dist/src/entities/runners/project-access.d.ts +14 -0
  203. package/dist/src/entities/runners/project-access.js +64 -0
  204. package/dist/src/entities/runners/project-access.js.map +1 -0
  205. package/dist/src/entities/runners/registry.js +54 -26
  206. package/dist/src/entities/runners/registry.js.map +1 -1
  207. package/dist/src/entities/search/schema-readonly.d.ts +28 -28
  208. package/dist/src/graphql/runners.d.ts +26 -1
  209. package/dist/src/graphql/runners.js +43 -6
  210. package/dist/src/graphql/runners.js.map +1 -1
  211. package/dist/src/graphql/vulnerabilities.d.ts +3 -0
  212. package/dist/src/graphql/vulnerabilities.js +1 -0
  213. package/dist/src/graphql/vulnerabilities.js.map +1 -1
  214. package/dist/src/handlers.js +351 -190
  215. package/dist/src/handlers.js.map +1 -1
  216. package/dist/src/main.js +23 -5
  217. package/dist/src/main.js.map +1 -1
  218. package/dist/src/mcp-apps.d.ts +6 -0
  219. package/dist/src/mcp-apps.js +8 -0
  220. package/dist/src/mcp-apps.js.map +1 -0
  221. package/dist/src/mcp-server-context.d.ts +3 -0
  222. package/dist/src/mcp-server-context.js +13 -0
  223. package/dist/src/mcp-server-context.js.map +1 -0
  224. package/dist/src/middleware/mcp-auth-routes.d.ts +3 -0
  225. package/dist/src/middleware/mcp-auth-routes.js +9 -0
  226. package/dist/src/middleware/mcp-auth-routes.js.map +1 -0
  227. package/dist/src/middleware/oauth-auth.js +87 -24
  228. package/dist/src/middleware/oauth-auth.js.map +1 -1
  229. package/dist/src/middleware/rate-limiter.js +11 -10
  230. package/dist/src/middleware/rate-limiter.js.map +1 -1
  231. package/dist/src/oauth/authorization-response.d.ts +1 -0
  232. package/dist/src/oauth/authorization-response.js +14 -0
  233. package/dist/src/oauth/authorization-response.js.map +1 -0
  234. package/dist/src/oauth/client-auth.d.ts +16 -0
  235. package/dist/src/oauth/client-auth.js +73 -0
  236. package/dist/src/oauth/client-auth.js.map +1 -0
  237. package/dist/src/oauth/code-exchange.d.ts +7 -0
  238. package/dist/src/oauth/code-exchange.js +38 -0
  239. package/dist/src/oauth/code-exchange.js.map +1 -0
  240. package/dist/src/oauth/config.d.ts +2 -0
  241. package/dist/src/oauth/config.js +37 -0
  242. package/dist/src/oauth/config.js.map +1 -1
  243. package/dist/src/oauth/endpoints/authorize.d.ts +1 -0
  244. package/dist/src/oauth/endpoints/authorize.js +361 -102
  245. package/dist/src/oauth/endpoints/authorize.js.map +1 -1
  246. package/dist/src/oauth/endpoints/callback.js +76 -41
  247. package/dist/src/oauth/endpoints/callback.js.map +1 -1
  248. package/dist/src/oauth/endpoints/index.d.ts +1 -0
  249. package/dist/src/oauth/endpoints/index.js +3 -1
  250. package/dist/src/oauth/endpoints/index.js.map +1 -1
  251. package/dist/src/oauth/endpoints/metadata.d.ts +1 -1
  252. package/dist/src/oauth/endpoints/metadata.js +23 -8
  253. package/dist/src/oauth/endpoints/metadata.js.map +1 -1
  254. package/dist/src/oauth/endpoints/register.d.ts +3 -2
  255. package/dist/src/oauth/endpoints/register.js +70 -19
  256. package/dist/src/oauth/endpoints/register.js.map +1 -1
  257. package/dist/src/oauth/endpoints/revoke.d.ts +2 -0
  258. package/dist/src/oauth/endpoints/revoke.js +78 -0
  259. package/dist/src/oauth/endpoints/revoke.js.map +1 -0
  260. package/dist/src/oauth/endpoints/token.js +136 -62
  261. package/dist/src/oauth/endpoints/token.js.map +1 -1
  262. package/dist/src/oauth/gitlab-device-flow.d.ts +27 -8
  263. package/dist/src/oauth/gitlab-device-flow.js +119 -57
  264. package/dist/src/oauth/gitlab-device-flow.js.map +1 -1
  265. package/dist/src/oauth/gitlab-request-bound.d.ts +1 -0
  266. package/dist/src/oauth/gitlab-request-bound.js +6 -0
  267. package/dist/src/oauth/gitlab-request-bound.js.map +1 -0
  268. package/dist/src/oauth/gitlab-token-refresh.d.ts +7 -0
  269. package/dist/src/oauth/gitlab-token-refresh.js +147 -0
  270. package/dist/src/oauth/gitlab-token-refresh.js.map +1 -0
  271. package/dist/src/oauth/grant-revocation.d.ts +10 -0
  272. package/dist/src/oauth/grant-revocation.js +179 -0
  273. package/dist/src/oauth/grant-revocation.js.map +1 -0
  274. package/dist/src/oauth/granted-scopes.d.ts +1 -0
  275. package/dist/src/oauth/granted-scopes.js +7 -0
  276. package/dist/src/oauth/granted-scopes.js.map +1 -0
  277. package/dist/src/oauth/index.d.ts +2 -2
  278. package/dist/src/oauth/index.js +4 -2
  279. package/dist/src/oauth/index.js.map +1 -1
  280. package/dist/src/oauth/instance-app.d.ts +4 -0
  281. package/dist/src/oauth/instance-app.js +45 -0
  282. package/dist/src/oauth/instance-app.js.map +1 -0
  283. package/dist/src/oauth/issued-tokens.d.ts +1 -0
  284. package/dist/src/oauth/issued-tokens.js +24 -0
  285. package/dist/src/oauth/issued-tokens.js.map +1 -0
  286. package/dist/src/oauth/oauth-app.d.ts +9 -0
  287. package/dist/src/oauth/oauth-app.js +14 -0
  288. package/dist/src/oauth/oauth-app.js.map +1 -0
  289. package/dist/src/oauth/request-params.d.ts +1 -0
  290. package/dist/src/oauth/request-params.js +17 -0
  291. package/dist/src/oauth/request-params.js.map +1 -0
  292. package/dist/src/oauth/resource.d.ts +12 -0
  293. package/dist/src/oauth/resource.js +66 -0
  294. package/dist/src/oauth/resource.js.map +1 -0
  295. package/dist/src/oauth/routes.d.ts +2 -0
  296. package/dist/src/oauth/routes.js +31 -0
  297. package/dist/src/oauth/routes.js.map +1 -0
  298. package/dist/src/oauth/session-store.d.ts +51 -36
  299. package/dist/src/oauth/session-store.js +156 -251
  300. package/dist/src/oauth/session-store.js.map +1 -1
  301. package/dist/src/oauth/storage/factory.js +1 -1
  302. package/dist/src/oauth/storage/factory.js.map +1 -1
  303. package/dist/src/oauth/storage/file.d.ts +29 -2
  304. package/dist/src/oauth/storage/file.js +194 -42
  305. package/dist/src/oauth/storage/file.js.map +1 -1
  306. package/dist/src/oauth/storage/memory.d.ts +35 -2
  307. package/dist/src/oauth/storage/memory.js +327 -32
  308. package/dist/src/oauth/storage/memory.js.map +1 -1
  309. package/dist/src/oauth/storage/types.d.ts +37 -1
  310. package/dist/src/oauth/storage/types.js +6 -1
  311. package/dist/src/oauth/storage/types.js.map +1 -1
  312. package/dist/src/oauth/tool-auth.d.ts +12 -0
  313. package/dist/src/oauth/tool-auth.js +108 -0
  314. package/dist/src/oauth/tool-auth.js.map +1 -0
  315. package/dist/src/oauth/types.d.ts +41 -0
  316. package/dist/src/profiles/scope-enforcer.d.ts +8 -0
  317. package/dist/src/profiles/scope-enforcer.js +86 -24
  318. package/dist/src/profiles/scope-enforcer.js.map +1 -1
  319. package/dist/src/profiles/types.js +4 -1
  320. package/dist/src/profiles/types.js.map +1 -1
  321. package/dist/src/registry-manager.d.ts +16 -4
  322. package/dist/src/registry-manager.js +122 -33
  323. package/dist/src/registry-manager.js.map +1 -1
  324. package/dist/src/server.js +82 -50
  325. package/dist/src/server.js.map +1 -1
  326. package/dist/src/services/AdminDetector.d.ts +1 -1
  327. package/dist/src/services/AdminDetector.js +4 -4
  328. package/dist/src/services/AdminDetector.js.map +1 -1
  329. package/dist/src/services/ConnectionManager.d.ts +2 -2
  330. package/dist/src/services/ConnectionManager.js +43 -70
  331. package/dist/src/services/ConnectionManager.js.map +1 -1
  332. package/dist/src/services/HealthMonitor.js +4 -2
  333. package/dist/src/services/HealthMonitor.js.map +1 -1
  334. package/dist/src/services/NamespaceTierDetector.js +26 -27
  335. package/dist/src/services/NamespaceTierDetector.js.map +1 -1
  336. package/dist/src/services/TokenScopeDetector.d.ts +6 -2
  337. package/dist/src/services/TokenScopeDetector.js +22 -3
  338. package/dist/src/services/TokenScopeDetector.js.map +1 -1
  339. package/dist/src/session-manager.d.ts +3 -1
  340. package/dist/src/session-manager.js +43 -10
  341. package/dist/src/session-manager.js.map +1 -1
  342. package/dist/src/types.d.ts +3 -2
  343. package/dist/src/types.js.map +1 -1
  344. package/dist/src/utils/bounded-map.d.ts +1 -0
  345. package/dist/src/utils/bounded-map.js +23 -0
  346. package/dist/src/utils/bounded-map.js.map +1 -0
  347. package/dist/src/utils/fetch.d.ts +1 -2
  348. package/dist/src/utils/fetch.js +12 -17
  349. package/dist/src/utils/fetch.js.map +1 -1
  350. package/dist/src/utils/gitlab-api.js +2 -1
  351. package/dist/src/utils/gitlab-api.js.map +1 -1
  352. package/dist/src/utils/gitlab-base-url.d.ts +2 -0
  353. package/dist/src/utils/gitlab-base-url.js +34 -0
  354. package/dist/src/utils/gitlab-base-url.js.map +1 -0
  355. package/dist/src/utils/html.d.ts +1 -0
  356. package/dist/src/utils/html.js +12 -0
  357. package/dist/src/utils/html.js.map +1 -0
  358. package/dist/src/utils/namespace.d.ts +1 -0
  359. package/dist/src/utils/namespace.js +72 -24
  360. package/dist/src/utils/namespace.js.map +1 -1
  361. package/dist/src/utils/schema-utils.d.ts +5 -3
  362. package/dist/src/utils/schema-utils.js +50 -22
  363. package/dist/src/utils/schema-utils.js.map +1 -1
  364. package/dist/src/utils/smart-user-search.js +2 -1
  365. package/dist/src/utils/smart-user-search.js.map +1 -1
  366. package/dist/src/utils/sync-directory.d.ts +1 -0
  367. package/dist/src/utils/sync-directory.js +49 -0
  368. package/dist/src/utils/sync-directory.js.map +1 -0
  369. package/dist/src/utils/tool-result.d.ts +4 -0
  370. package/dist/src/utils/tool-result.js +41 -0
  371. package/dist/src/utils/tool-result.js.map +1 -0
  372. package/dist/tsconfig.build.tsbuildinfo +1 -1
  373. package/package.json +74 -21
  374. package/plugin/assets/composer-icon-dark.png +0 -0
  375. package/plugin/assets/composer-icon-dark.svg +17 -0
  376. package/plugin/assets/composer-icon.png +0 -0
  377. package/plugin/assets/composer-icon.svg +17 -0
  378. package/plugin/assets/logo.png +0 -0
  379. package/plugin/assets/screenshot-1.png +0 -0
  380. package/plugin/assets/screenshot-2.png +0 -0
  381. package/plugin/schemas/mcp.schema.json +120 -0
  382. package/plugin/schemas/plugin.schema.json +65 -0
  383. package/skills/gitlab-ci/SKILL.md +16 -0
  384. package/skills/gitlab-discovery/SKILL.md +15 -0
  385. package/skills/gitlab-review/SKILL.md +16 -0
  386. package/skills/gitlab-setup/SKILL.md +16 -0
  387. package/skills/gitlab-work-items/SKILL.md +16 -0
@@ -0,0 +1,508 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SETTINGS_PANEL_RESOURCE_META = exports.MCP_APPS_PROTOCOL_VERSION = exports.SETTINGS_PANEL_URI = void 0;
4
+ exports.settingsPanelHtml = settingsPanelHtml;
5
+ const config_1 = require("../../config");
6
+ exports.SETTINGS_PANEL_URI = 'ui://gitlab-mcp/settings-panel-v1.html';
7
+ exports.MCP_APPS_PROTOCOL_VERSION = '2026-01-26';
8
+ exports.SETTINGS_PANEL_RESOURCE_META = {
9
+ ui: { csp: { connectDomains: [], resourceDomains: [], frameDomains: [] }, prefersBorder: true },
10
+ };
11
+ const STYLE = `
12
+ :root {
13
+ color-scheme: light dark;
14
+ --bg: var(--color-background-primary, #ffffff);
15
+ --bg-muted: var(--color-background-secondary, #f4f5f7);
16
+ --text: var(--color-text-primary, #1f2328);
17
+ --text-muted: var(--color-text-secondary, #59636e);
18
+ --border: var(--color-border-primary, #d1d9e0);
19
+ --ring: var(--color-ring-primary, #2f6feb);
20
+ --danger: var(--color-text-danger, #c62828);
21
+ --success: var(--color-text-success, #1a7f37);
22
+ --warning: var(--color-text-warning, #9a6700);
23
+ --radius: var(--border-radius-md, 8px);
24
+ --font: var(--font-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
25
+ }
26
+ :root[data-theme="dark"] {
27
+ --bg: var(--color-background-primary, #0d1117);
28
+ --bg-muted: var(--color-background-secondary, #161b22);
29
+ --text: var(--color-text-primary, #e6edf3);
30
+ --text-muted: var(--color-text-secondary, #9198a1);
31
+ --border: var(--color-border-primary, #3d444d);
32
+ --danger: var(--color-text-danger, #f47067);
33
+ --success: var(--color-text-success, #57ab5a);
34
+ --warning: var(--color-text-warning, #c69026);
35
+ }
36
+ @media (prefers-color-scheme: dark) {
37
+ :root:not([data-theme="light"]) {
38
+ --bg: var(--color-background-primary, #0d1117);
39
+ --bg-muted: var(--color-background-secondary, #161b22);
40
+ --text: var(--color-text-primary, #e6edf3);
41
+ --text-muted: var(--color-text-secondary, #9198a1);
42
+ --border: var(--color-border-primary, #3d444d);
43
+ --danger: var(--color-text-danger, #f47067);
44
+ --success: var(--color-text-success, #57ab5a);
45
+ --warning: var(--color-text-warning, #c69026);
46
+ }
47
+ }
48
+ * { box-sizing: border-box; }
49
+ body { margin: 0; padding: 16px; background: var(--bg); color: var(--text);
50
+ font: 14px/1.45 var(--font); }
51
+ h1 { font-size: 16px; margin: 0 0 4px; }
52
+ h2 { font-size: 14px; margin: 0 0 8px; }
53
+ section { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px;
54
+ margin-top: 12px; }
55
+ .muted { color: var(--text-muted); }
56
+ .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
57
+ label { font-weight: 600; display: block; margin-bottom: 4px; }
58
+ input[type="search"] { width: 100%; padding: 8px; border: 1px solid var(--border);
59
+ border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
60
+ button { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius);
61
+ background: var(--bg-muted); color: var(--text); font: inherit; cursor: pointer; }
62
+ button:disabled { opacity: 0.5; cursor: not-allowed; }
63
+ button.primary { border-color: var(--ring); }
64
+ :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
65
+ ul.results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px;
66
+ overflow-y: auto; }
67
+ ul.results li { padding: 6px 8px; border-radius: var(--radius); cursor: pointer; }
68
+ ul.results li[aria-selected="true"] { background: var(--bg-muted); outline: 1px solid var(--ring); }
69
+ .kind { font-size: 12px; color: var(--text-muted); margin-left: 6px; }
70
+ dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
71
+ dt { color: var(--text-muted); }
72
+ dd { margin: 0; overflow-wrap: anywhere; }
73
+ .status-ok { color: var(--success); }
74
+ .status-error { color: var(--danger); }
75
+ .status-warning { color: var(--warning); }
76
+ #notice:empty { display: none; }
77
+ #notice { margin-top: 12px; padding: 8px; border-radius: var(--radius); background: var(--bg-muted); }
78
+ ul.plain { margin: 4px 0 0; padding-left: 18px; }
79
+ @media (max-width: 420px) { body { padding: 8px; } dl { grid-template-columns: 1fr; } }
80
+ `;
81
+ const SCRIPT = String.raw `
82
+ (function () {
83
+ 'use strict';
84
+ var PROTOCOL = '${exports.MCP_APPS_PROTOCOL_VERSION}';
85
+ var VERSION = '${config_1.packageVersion}';
86
+ var REQUEST_TIMEOUT_MS = 30000;
87
+ var nextId = 1;
88
+ var pending = {};
89
+ // busy: a save is in flight; searching: a search is. A search never ends a save.
90
+ var state = { settings: null, context: null, selected: null, query: '', results: [], busy: false, searching: false };
91
+
92
+ function el(id) { return document.getElementById(id); }
93
+ function text(node, value) { node.textContent = value == null ? '' : String(value); }
94
+ function clear(node) { while (node.firstChild) node.removeChild(node.firstChild); }
95
+ function announce(message, kind) {
96
+ var notice = el('notice');
97
+ notice.className = kind ? 'status-' + kind : '';
98
+ text(notice, message);
99
+ }
100
+
101
+ // ---- MCP Apps bridge (JSON-RPC over postMessage with the host) ----
102
+ function post(message) { window.parent.postMessage(message, '*'); }
103
+ function request(method, params) {
104
+ var id = nextId++;
105
+ post({ jsonrpc: '2.0', id: id, method: method, params: params });
106
+ return new Promise(function (resolve, reject) {
107
+ var timer = setTimeout(function () {
108
+ delete pending[id];
109
+ reject(new Error('The app host did not answer'));
110
+ }, REQUEST_TIMEOUT_MS);
111
+ pending[id] = { resolve: resolve, reject: reject, timer: timer };
112
+ });
113
+ }
114
+ function notify(method, params) { post({ jsonrpc: '2.0', method: method, params: params || {} }); }
115
+
116
+ window.addEventListener('message', function (event) {
117
+ if (event.source !== window.parent) return;
118
+ var message = event.data;
119
+ if (!message || message.jsonrpc !== '2.0') return;
120
+ if (message.method === undefined && message.id !== undefined && pending[message.id]) {
121
+ var entry = pending[message.id];
122
+ delete pending[message.id];
123
+ clearTimeout(entry.timer);
124
+ if (message.error) entry.reject(new Error(message.error.message || 'Request failed'));
125
+ else entry.resolve(message.result);
126
+ return;
127
+ }
128
+ if (message.method === 'ui/notifications/host-context-changed') applyHostContext(message.params);
129
+ if (message.method === 'ui/resource-teardown' && message.id !== undefined) {
130
+ post({ jsonrpc: '2.0', id: message.id, result: {} });
131
+ }
132
+ });
133
+
134
+ function applyHostContext(context) {
135
+ if (!context) return;
136
+ if (context.theme === 'light' || context.theme === 'dark') {
137
+ document.documentElement.setAttribute('data-theme', context.theme);
138
+ }
139
+ var variables = context.styles && context.styles.variables;
140
+ if (variables) {
141
+ Object.keys(variables).forEach(function (name) {
142
+ if (name.indexOf('--') === 0 && typeof variables[name] === 'string') {
143
+ document.documentElement.style.setProperty(name, variables[name]);
144
+ }
145
+ });
146
+ }
147
+ }
148
+
149
+ function toolText(result) {
150
+ var parts = (result && result.content) || [];
151
+ return parts.filter(function (p) { return p.type === 'text'; })
152
+ .map(function (p) { return p.text; }).join('\n');
153
+ }
154
+
155
+ function callTool(name, args) {
156
+ return request('tools/call', { name: name, arguments: args || {} }).then(function (result) {
157
+ if (result && result.isError) {
158
+ var error = new Error(toolText(result) || 'The tool failed');
159
+ error.toolError = true;
160
+ throw error;
161
+ }
162
+ return (result && result.structuredContent) || {};
163
+ });
164
+ }
165
+
166
+ // ---- Problems a user can act on ----
167
+ function explain(error) {
168
+ var message = (error && error.message) || String(error);
169
+ if (/invalid_token|re-authenticate|401|sign in again|no longer accepts/i.test(message)) {
170
+ return 'Your GitLab sign-in expired or was revoked. Reconnect GitLab from the app’s connection settings, then open this panel again.';
171
+ }
172
+ if (/CONNECTION_FAILED|unreachable|ECONNREFUSED|timed out|temporarily unavailable/i.test(message)) {
173
+ return 'GitLab is not reachable right now. Your saved settings still apply; try again in a moment.';
174
+ }
175
+ if (/did not answer/.test(message)) {
176
+ return 'The app host stopped answering. Close and reopen this panel.';
177
+ }
178
+ return message;
179
+ }
180
+
181
+ // ---- Rendering (GitLab strings only ever go through textContent) ----
182
+ function describeScope(scope) {
183
+ if (!scope || !scope.path) return 'Everywhere you have access';
184
+ if (scope.type === 'group') {
185
+ return 'Group ' + scope.path + (scope.includeSubgroups ? ' and its subgroups' : ' (not its subgroups)');
186
+ }
187
+ return 'Project ' + scope.path;
188
+ }
189
+
190
+ function renderContext() {
191
+ var context = state.context;
192
+ var settings = state.settings;
193
+ if (!context || !settings) return;
194
+ text(el('chat-scope'), describeScope(context.scope));
195
+ var values = settings.values || {};
196
+ text(el('default-scope'), values.scope
197
+ ? values.scope + (values.scopeIncludeSubgroups ? '' : ' (not its subgroups)')
198
+ : 'Everywhere you have access');
199
+ text(el('access-preset'), context.presetName || 'None');
200
+ text(el('access-readonly'), context.readOnly ? 'On: tools that change GitLab are off' : 'Off');
201
+ // What this chat has off: the account's choices and its preset's.
202
+ var off = (context.disabledToolGroups || []).map(function (group) {
203
+ return (settings.schema.properties['tools_' + group] || {}).title || group;
204
+ });
205
+ text(el('access-groups'), off.length ? off.join(', ') : 'All offered groups are on');
206
+ }
207
+
208
+ function renderHealth(check) {
209
+ var status = el('health-status');
210
+ if (!check) return;
211
+ if (check.authenticated) {
212
+ status.className = 'status-ok';
213
+ text(status, 'Connected');
214
+ } else if (check.reachable === false) {
215
+ // GitLab did not answer: an outage, so no reconnect is suggested.
216
+ status.className = 'status-error';
217
+ text(status, 'GitLab is not reachable right now. Your saved settings still apply; try again in a moment.');
218
+ } else {
219
+ status.className = 'status-error';
220
+ text(status, 'GitLab did not accept the current sign-in');
221
+ }
222
+ text(el('health-account'), check.account);
223
+ text(el('health-instance'), check.instance);
224
+ text(el('health-gitlab'), check.gitlabVersion + ' (' + check.tier + ')');
225
+ text(el('health-tools'), check.availableTools);
226
+ var advice = el('health-advice');
227
+ clear(advice);
228
+ (check.warnings || []).concat(check.recommendations || []).forEach(function (line) {
229
+ var item = document.createElement('li');
230
+ text(item, line);
231
+ advice.appendChild(item);
232
+ });
233
+ el('health-advice-block').hidden = advice.childNodes.length === 0;
234
+ }
235
+
236
+ function renderResults() {
237
+ var list = el('results');
238
+ clear(list);
239
+ if (state.query.length >= 2 && state.results.length === 0 && !state.searching) {
240
+ var empty = document.createElement('li');
241
+ empty.setAttribute('role', 'option');
242
+ empty.setAttribute('aria-disabled', 'true');
243
+ text(empty, 'No project or group matches “' + state.query + '”');
244
+ list.appendChild(empty);
245
+ return;
246
+ }
247
+ state.results.forEach(function (target, index) {
248
+ var item = document.createElement('li');
249
+ item.id = 'result-' + index;
250
+ item.setAttribute('role', 'option');
251
+ item.tabIndex = 0;
252
+ var selected = state.selected && state.selected.path === target.path && state.selected.type === target.type;
253
+ item.setAttribute('aria-selected', selected ? 'true' : 'false');
254
+ var name = document.createElement('span');
255
+ text(name, target.name);
256
+ var kind = document.createElement('span');
257
+ kind.className = 'kind';
258
+ text(kind, target.type + ' · ' + target.path);
259
+ item.appendChild(name);
260
+ item.appendChild(kind);
261
+ item.addEventListener('click', function () { select(target); });
262
+ item.addEventListener('keydown', function (event) {
263
+ if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); select(target); }
264
+ if (event.key === 'ArrowDown' && item.nextSibling) item.nextSibling.focus();
265
+ if (event.key === 'ArrowUp' && item.previousSibling) item.previousSibling.focus();
266
+ });
267
+ list.appendChild(item);
268
+ });
269
+ }
270
+
271
+ function renderSelection() {
272
+ var target = state.selected;
273
+ var subgroups = el('subgroups');
274
+ el('subgroups-row').hidden = !target || target.type !== 'group';
275
+ text(el('preview'), target
276
+ ? 'Selected: ' + describeScope({ type: target.type, path: target.path, includeSubgroups: subgroups.checked })
277
+ : 'Choose a project or group to work in.');
278
+ el('use-chat').disabled = !target || state.busy;
279
+ el('save-default').disabled = !target || state.busy;
280
+ el('cancel').disabled = !target || state.busy;
281
+ }
282
+
283
+ function select(target) {
284
+ state.selected = target;
285
+ renderResults();
286
+ renderSelection();
287
+ }
288
+
289
+ function setBusy(busy) {
290
+ state.busy = busy;
291
+ ['use-chat', 'save-default', 'work-everywhere', 'check-again'].forEach(function (id) {
292
+ el(id).disabled = busy;
293
+ });
294
+ renderSelection();
295
+ document.body.setAttribute('aria-busy', busy ? 'true' : 'false');
296
+ }
297
+
298
+ // ---- Data: always the server's authoritative state ----
299
+ function reload() {
300
+ return Promise.all([
301
+ callTool('get_settings', {}),
302
+ callTool('manage_context', { action: 'show' }),
303
+ ]).then(function (results) {
304
+ state.settings = results[0];
305
+ state.context = results[1].data || results[1];
306
+ renderContext();
307
+ });
308
+ }
309
+
310
+ function checkHealth() {
311
+ text(el('health-status'), 'Checking…');
312
+ el('health-status').className = 'muted';
313
+ return callTool('check_connection', {}).then(renderHealth).catch(function (error) {
314
+ el('health-status').className = 'status-error';
315
+ text(el('health-status'), explain(error));
316
+ });
317
+ }
318
+
319
+ var searchTimer = null;
320
+ // Only the newest search may change the panel; an older one finishing late is ignored.
321
+ var searchGeneration = 0;
322
+ function search(query) {
323
+ state.query = query.trim();
324
+ clearTimeout(searchTimer);
325
+ var generation = ++searchGeneration;
326
+ if (state.query.length < 2) { state.results = []; state.searching = false; renderResults(); return; }
327
+ searchTimer = setTimeout(function () {
328
+ var current = function () { return generation === searchGeneration; };
329
+ state.searching = true;
330
+ callTool('find_scope_targets', { query: state.query }).then(function (found) {
331
+ if (current()) state.results = found.targets || [];
332
+ }).catch(function (error) {
333
+ if (!current()) return;
334
+ state.results = [];
335
+ announce(explain(error), 'error');
336
+ }).then(function () {
337
+ if (!current()) return;
338
+ state.searching = false;
339
+ renderResults();
340
+ renderSelection();
341
+ });
342
+ }, 300);
343
+ }
344
+
345
+ function save(where) {
346
+ var target = state.selected;
347
+ if (!target) return;
348
+ var includeSubgroups = target.type === 'group' && el('subgroups').checked;
349
+ setBusy(true);
350
+ announce('Saving…');
351
+ var action = where === 'chat'
352
+ ? callTool('manage_context', { action: 'set_scope', namespace: target.path, includeSubgroups: includeSubgroups })
353
+ : callTool('update_settings', { set: { scope: target.path, scopeIncludeSubgroups: includeSubgroups } });
354
+ action.then(reload).then(function () {
355
+ // Success is reported from what the server now holds, not from the request.
356
+ var applied = where === 'chat'
357
+ ? state.context.scope && state.context.scope.path === target.path
358
+ : state.settings.values.scope === target.path;
359
+ if (applied) {
360
+ announce(where === 'chat'
361
+ ? 'This chat now works in ' + describeScope(state.context.scope) + '.'
362
+ : 'Your chats now work in ' + target.path + ', except chats that chose otherwise.', 'ok');
363
+ state.selected = null;
364
+ renderResults();
365
+ } else {
366
+ announce('The server did not keep this change. Check the settings and try again.', 'error');
367
+ }
368
+ }).catch(function (error) {
369
+ announce(explain(error), 'error');
370
+ }).then(function () { setBusy(false); });
371
+ }
372
+
373
+ function workEverywhere() {
374
+ setBusy(true);
375
+ announce('Saving…');
376
+ // Only this chat's scope changes; its preset, read-only mode and the account's default
377
+ // stay as they are.
378
+ callTool('manage_context', { action: 'clear_scope' })
379
+ .then(reload)
380
+ .then(function () {
381
+ announce(state.context.scope ? 'A preset still limits where this chat works.' : 'This chat works everywhere you have access.',
382
+ state.context.scope ? 'warning' : 'ok');
383
+ })
384
+ .catch(function (error) { announce(explain(error), 'error'); })
385
+ .then(function () { setBusy(false); });
386
+ }
387
+
388
+ function start() {
389
+ el('search').addEventListener('input', function (event) { search(event.target.value); });
390
+ el('subgroups').addEventListener('change', renderSelection);
391
+ el('use-chat').addEventListener('click', function () { save('chat'); });
392
+ el('save-default').addEventListener('click', function () { save('default'); });
393
+ el('cancel').addEventListener('click', function () { state.selected = null; renderResults(); renderSelection(); announce(''); });
394
+ el('work-everywhere').addEventListener('click', workEverywhere);
395
+ el('check-again').addEventListener('click', checkHealth);
396
+ document.addEventListener('visibilitychange', function () {
397
+ if (document.visibilityState === 'visible' && !state.busy) reload().catch(function () {});
398
+ });
399
+ if (typeof ResizeObserver === 'function') {
400
+ new ResizeObserver(function () {
401
+ notify('ui/notifications/size-changed', { height: document.documentElement.scrollHeight });
402
+ }).observe(document.body);
403
+ }
404
+ renderSelection();
405
+
406
+ request('ui/initialize', {
407
+ appInfo: { name: 'gitlab-mcp-settings', version: VERSION },
408
+ appCapabilities: {},
409
+ protocolVersion: PROTOCOL,
410
+ }).then(function (result) {
411
+ applyHostContext(result && result.hostContext);
412
+ notify('ui/notifications/initialized');
413
+ if (!result || !result.hostCapabilities || !result.hostCapabilities.serverTools) {
414
+ el('main').hidden = true;
415
+ announce('This app cannot reach the GitLab server from here. Use the GitLab settings page, or ask the assistant to change the settings.', 'error');
416
+ return;
417
+ }
418
+ el('loading').hidden = true;
419
+ el('main').hidden = false;
420
+ return Promise.all([reload(), checkHealth()]);
421
+ }).catch(function (error) {
422
+ el('loading').hidden = true;
423
+ announce(explain(error), 'error');
424
+ });
425
+ }
426
+
427
+ if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', start);
428
+ else start();
429
+ })();
430
+ `;
431
+ const BODY = `
432
+ <header>
433
+ <h1>GitLab connection</h1>
434
+ <p class="muted">Choose where this chat works and check what the connection can do.</p>
435
+ </header>
436
+ <p id="loading" class="muted" role="status">Loading…</p>
437
+ <div id="main" hidden>
438
+ <section aria-labelledby="where-title">
439
+ <h2 id="where-title">Where to work</h2>
440
+ <dl>
441
+ <dt>This chat</dt><dd id="chat-scope"></dd>
442
+ <dt>All chats</dt><dd id="default-scope"></dd>
443
+ </dl>
444
+ <div style="margin-top:12px">
445
+ <label for="search">Find a project or group</label>
446
+ <input id="search" type="search" autocomplete="off" spellcheck="false"
447
+ placeholder="At least 2 characters" aria-controls="results" />
448
+ <ul id="results" class="results" role="listbox" aria-label="Projects and groups"></ul>
449
+ </div>
450
+ <p id="preview" class="muted"></p>
451
+ <div id="subgroups-row" class="row" hidden>
452
+ <input id="subgroups" type="checkbox" checked />
453
+ <label for="subgroups" style="display:inline;font-weight:normal">Include projects in subgroups</label>
454
+ </div>
455
+ <div class="row" style="margin-top:8px">
456
+ <button id="use-chat" class="primary" type="button">Use in this chat</button>
457
+ <button id="save-default" type="button">Save for all chats</button>
458
+ <button id="cancel" type="button">Cancel</button>
459
+ <button id="work-everywhere" type="button">Work everywhere in this chat</button>
460
+ </div>
461
+ </section>
462
+ <section aria-labelledby="access-title">
463
+ <h2 id="access-title">What this chat can do</h2>
464
+ <dl>
465
+ <dt>Preset</dt><dd id="access-preset"></dd>
466
+ <dt>Read-only</dt><dd id="access-readonly"></dd>
467
+ <dt>Tool groups off</dt><dd id="access-groups"></dd>
468
+ </dl>
469
+ <p class="muted">Presets, read-only mode and tool groups are changed on the GitLab settings page.</p>
470
+ </section>
471
+ <section aria-labelledby="health-title">
472
+ <h2 id="health-title">Connection</h2>
473
+ <p id="health-status" class="muted" role="status"></p>
474
+ <dl>
475
+ <dt>Account</dt><dd id="health-account"></dd>
476
+ <dt>GitLab</dt><dd id="health-instance"></dd>
477
+ <dt>Version</dt><dd id="health-gitlab"></dd>
478
+ <dt>Tools available</dt><dd id="health-tools"></dd>
479
+ </dl>
480
+ <div id="health-advice-block" hidden>
481
+ <h2 style="margin-top:8px">What to check</h2>
482
+ <ul id="health-advice" class="plain"></ul>
483
+ </div>
484
+ <div class="row" style="margin-top:8px">
485
+ <button id="check-again" type="button">Check again</button>
486
+ </div>
487
+ </section>
488
+ </div>
489
+ <div id="notice" role="status" aria-live="polite"></div>
490
+ `;
491
+ function settingsPanelHtml() {
492
+ return [
493
+ '<!doctype html>',
494
+ '<html lang="en">',
495
+ '<head>',
496
+ '<meta charset="utf-8" />',
497
+ '<meta name="viewport" content="width=device-width, initial-scale=1" />',
498
+ '<title>GitLab connection</title>',
499
+ `<style>${STYLE}</style>`,
500
+ '</head>',
501
+ '<body>',
502
+ BODY,
503
+ `<script>${SCRIPT}</script>`,
504
+ '</body>',
505
+ '</html>',
506
+ ].join('\n');
507
+ }
508
+ //# sourceMappingURL=settings-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-panel.js","sourceRoot":"","sources":["../../../../src/entities/context/settings-panel.ts"],"names":[],"mappings":";;;AA0fA,8CAgBC;AAhgBD,yCAA8C;AAEjC,QAAA,kBAAkB,GAAG,wCAAwC,CAAC;AAE9D,QAAA,yBAAyB,GAAG,YAAY,CAAC;AAGzC,QAAA,4BAA4B,GAAG;IAC1C,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;CAChG,CAAC;AAEF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEb,CAAC;AAGF,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAA;;;oBAGL,iCAAyB;mBAC1B,uBAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyVhC,CAAC;AAEF,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DZ,CAAC;AAGF,SAAgB,iBAAiB;IAC/B,OAAO;QACL,iBAAiB;QACjB,kBAAkB;QAClB,QAAQ;QACR,0BAA0B;QAC1B,wEAAwE;QACxE,kCAAkC;QAClC,UAAU,KAAK,UAAU;QACzB,SAAS;QACT,QAAQ;QACR,IAAI;QACJ,WAAW,MAAM,WAAW;QAC5B,SAAS;QACT,SAAS;KACV,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -0,0 +1,78 @@
1
+ export declare const SETTINGS_READ_TOOL = "get_settings";
2
+ export declare const SETTINGS_UPDATE_TOOL = "update_settings";
3
+ export declare const CONNECTION_CHECK_TOOL = "check_connection";
4
+ export declare const SETTINGS_PANEL_TOOL = "open_settings_panel";
5
+ type SettingValue = string | number | boolean;
6
+ interface SettingProperty {
7
+ type: 'string' | 'boolean';
8
+ title: string;
9
+ description?: string;
10
+ enum?: string[];
11
+ maxLength?: number;
12
+ }
13
+ interface LayoutItem {
14
+ kind: 'property' | 'tool';
15
+ property?: string;
16
+ tool?: string;
17
+ description?: string;
18
+ }
19
+ export interface SettingsReadResult {
20
+ schema: {
21
+ type: 'object';
22
+ properties: Record<string, SettingProperty>;
23
+ required: string[];
24
+ };
25
+ values: Record<string, SettingValue>;
26
+ layout: Array<{
27
+ kind: 'group';
28
+ title: string;
29
+ items: LayoutItem[];
30
+ }>;
31
+ }
32
+ export declare const SETTINGS_READ_OUTPUT_SCHEMA: {
33
+ type: "object";
34
+ properties: {
35
+ schema: {
36
+ type: string;
37
+ };
38
+ values: {
39
+ type: string;
40
+ };
41
+ layout: {
42
+ type: string;
43
+ items: {
44
+ type: string;
45
+ };
46
+ };
47
+ };
48
+ required: string[];
49
+ };
50
+ export declare const SETTINGS_UPDATE_INPUT_SCHEMA: {
51
+ type: "object";
52
+ properties: {
53
+ set: {
54
+ type: string;
55
+ description: string;
56
+ minProperties: number;
57
+ additionalProperties: {
58
+ type: string[];
59
+ };
60
+ };
61
+ };
62
+ required: string[];
63
+ additionalProperties: boolean;
64
+ };
65
+ export declare const SETTINGS_UPDATE_OUTPUT_SCHEMA: {
66
+ type: "object";
67
+ properties: {
68
+ values: {
69
+ type: string;
70
+ };
71
+ };
72
+ required: string[];
73
+ };
74
+ export declare function readSettings(): Promise<SettingsReadResult>;
75
+ export declare function updateSettings(set: Record<string, SettingValue>): Promise<{
76
+ values: Record<string, SettingValue>;
77
+ }>;
78
+ export {};