@kabmo-labs/kabmo 0.11.1 → 0.12.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 (324) hide show
  1. package/README.md +67 -421
  2. package/dist/client/index.html +1 -1
  3. package/dist/client/index.js +426 -413
  4. package/dist/client/static/js/{index-amss8pge.js → index-0smc9gm2.js} +1123 -747
  5. package/dist/client/static/js/index-shexbk5f.css +1 -0
  6. package/marketplace/marketplace.json +13 -3
  7. package/marketplace/plugins/command-runner/package.json +4 -2
  8. package/marketplace/plugins/git-forge/README.md +219 -0
  9. package/marketplace/plugins/git-forge/icon.svg +20 -0
  10. package/marketplace/plugins/git-forge/package.json +56 -0
  11. package/marketplace/plugins/git-forge/src/app.tsx +82 -0
  12. package/marketplace/plugins/git-forge/src/command.test.ts +181 -0
  13. package/marketplace/plugins/git-forge/src/command.ts +119 -0
  14. package/marketplace/plugins/git-forge/src/header.tsx +87 -0
  15. package/marketplace/plugins/git-forge/src/panel/Badge.tsx +76 -0
  16. package/marketplace/plugins/git-forge/src/panel/Change.tsx +150 -0
  17. package/marketplace/plugins/git-forge/src/panel/CiBadge.tsx +51 -0
  18. package/marketplace/plugins/git-forge/src/panel/Credential.tsx +107 -0
  19. package/marketplace/plugins/git-forge/src/panel/Glyph.tsx +70 -0
  20. package/marketplace/plugins/git-forge/src/panel/Header.tsx +255 -0
  21. package/marketplace/plugins/git-forge/src/panel/ItemView.tsx +198 -0
  22. package/marketplace/plugins/git-forge/src/panel/List.tsx +89 -0
  23. package/marketplace/plugins/git-forge/src/panel/Row.tsx +68 -0
  24. package/marketplace/plugins/git-forge/src/panel/Sidebar.tsx +94 -0
  25. package/marketplace/plugins/git-forge/src/panel/Write.tsx +236 -0
  26. package/marketplace/plugins/git-forge/src/panel/format.ts +78 -0
  27. package/marketplace/plugins/git-forge/src/panel/index.test.tsx +344 -0
  28. package/marketplace/plugins/git-forge/src/panel/index.tsx +193 -0
  29. package/marketplace/plugins/git-forge/src/panel/use-forge.ts +250 -0
  30. package/marketplace/plugins/git-forge/src/panel/write.test.tsx +269 -0
  31. package/marketplace/plugins/git-forge/src/protocol.ts +308 -0
  32. package/marketplace/plugins/git-forge/src/server/adapters.test.ts +274 -0
  33. package/marketplace/plugins/git-forge/src/server/bitbucket.ts +307 -0
  34. package/marketplace/plugins/git-forge/src/server/capabilities.test.ts +116 -0
  35. package/marketplace/plugins/git-forge/src/server/capabilities.ts +105 -0
  36. package/marketplace/plugins/git-forge/src/server/ci.test.ts +88 -0
  37. package/marketplace/plugins/git-forge/src/server/ci.ts +118 -0
  38. package/marketplace/plugins/git-forge/src/server/context.ts +76 -0
  39. package/marketplace/plugins/git-forge/src/server/diff.test.ts +127 -0
  40. package/marketplace/plugins/git-forge/src/server/diff.ts +120 -0
  41. package/marketplace/plugins/git-forge/src/server/filters.test.ts +138 -0
  42. package/marketplace/plugins/git-forge/src/server/filters.ts +138 -0
  43. package/marketplace/plugins/git-forge/src/server/forges.test.ts +235 -0
  44. package/marketplace/plugins/git-forge/src/server/gitea.ts +296 -0
  45. package/marketplace/plugins/git-forge/src/server/github-extras.ts +92 -0
  46. package/marketplace/plugins/git-forge/src/server/github.ts +320 -0
  47. package/marketplace/plugins/git-forge/src/server/gitlab-detail.ts +207 -0
  48. package/marketplace/plugins/git-forge/src/server/gitlab.test.ts +195 -0
  49. package/marketplace/plugins/git-forge/src/server/gitlab.ts +176 -0
  50. package/marketplace/plugins/git-forge/src/server/http.test.ts +270 -0
  51. package/marketplace/plugins/git-forge/src/server/http.ts +329 -0
  52. package/marketplace/plugins/git-forge/src/server/map.ts +120 -0
  53. package/marketplace/plugins/git-forge/src/server/registry.ts +47 -0
  54. package/marketplace/plugins/git-forge/src/server/remote.test.ts +146 -0
  55. package/marketplace/plugins/git-forge/src/server/remote.ts +188 -0
  56. package/marketplace/plugins/git-forge/src/server/scope-probe.test.ts +98 -0
  57. package/marketplace/plugins/git-forge/src/server/scope-probe.ts +128 -0
  58. package/marketplace/plugins/git-forge/src/server/scope.ts +66 -0
  59. package/marketplace/plugins/git-forge/src/server/test-context.ts +67 -0
  60. package/marketplace/plugins/git-forge/src/server/test-host.ts +51 -0
  61. package/marketplace/plugins/git-forge/src/server/token.test.ts +107 -0
  62. package/marketplace/plugins/git-forge/src/server/token.ts +139 -0
  63. package/marketplace/plugins/git-forge/src/server/write-http.test.ts +127 -0
  64. package/marketplace/plugins/git-forge/src/server/write-http.ts +110 -0
  65. package/marketplace/plugins/git-forge/src/server/writes.test.ts +218 -0
  66. package/marketplace/plugins/git-forge/src/server/writes.ts +313 -0
  67. package/marketplace/plugins/git-forge/src/server.ts +284 -0
  68. package/marketplace/plugins/git-forge/tsconfig.json +16 -0
  69. package/marketplace/plugins/session-info/package.json +4 -2
  70. package/marketplace/plugins/stats/package.json +4 -2
  71. package/package.json +6 -1
  72. package/src/client/components/common/code-surface/blame-hover.ts +188 -0
  73. package/src/client/components/common/code-surface/blame-panel.test.ts +304 -0
  74. package/src/client/components/common/code-surface/blame-panel.ts +306 -0
  75. package/src/client/components/common/code-surface/blame.test.ts +303 -0
  76. package/src/client/components/common/code-surface/blame.ts +227 -0
  77. package/src/client/components/common/code-surface/conflict-markers.test.ts +135 -0
  78. package/src/client/components/common/code-surface/conflict-markers.ts +144 -0
  79. package/src/client/components/common/code-surface/documents.ts +48 -1
  80. package/src/client/components/common/code-surface/extensions.test.ts +4 -0
  81. package/src/client/components/common/code-surface/extensions.ts +44 -0
  82. package/src/client/components/common/code-surface/fold-stack.test.ts +4 -0
  83. package/src/client/components/common/code-surface/indent.test.ts +5 -0
  84. package/src/client/components/common/code-surface/index.tsx +16 -2
  85. package/src/client/components/common/code-surface/lint-parsers.test.ts +109 -0
  86. package/src/client/components/common/code-surface/lint-parsers.ts +134 -0
  87. package/src/client/components/common/code-surface/lint.test.ts +101 -0
  88. package/src/client/components/common/code-surface/lint.ts +85 -0
  89. package/src/client/components/common/code-surface/props.ts +17 -0
  90. package/src/client/components/common/code-surface/surface-failures.test.ts +132 -0
  91. package/src/client/components/common/code-surface/theme.ts +71 -0
  92. package/src/client/components/common/header-controls/index.test.tsx +1 -1
  93. package/src/client/components/common/header-controls/plugin-entry.test.tsx +1 -1
  94. package/src/client/components/common/header-controls/shell-chrome.test.tsx +1 -1
  95. package/src/client/components/common/provider-icon/Plate.tsx +88 -0
  96. package/src/client/components/common/provider-icon/index.tsx +55 -11
  97. package/src/client/components/layout/session-sidebar/SessionsView.tsx +5 -2
  98. package/src/client/components/mobile/SessionSidebar.tsx +2 -10
  99. package/src/client/components/mobile/mobile-right-sidebar/FullEditor.tsx +6 -0
  100. package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +8 -0
  101. package/src/client/components/settings/categories/AppearanceSettings.tsx +3 -0
  102. package/src/client/components/settings/categories/ProviderSettings.tsx +43 -41
  103. package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +97 -0
  104. package/src/client/components/settings/categories/panel-plugins/AvailableList.tsx +106 -54
  105. package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +14 -1
  106. package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +39 -150
  107. package/src/client/components/settings/categories/panel-plugins/Meta.test.tsx +143 -0
  108. package/src/client/components/settings/categories/panel-plugins/Meta.tsx +157 -0
  109. package/src/client/components/settings/categories/panel-plugins/Placement.test.tsx +149 -0
  110. package/src/client/components/settings/categories/panel-plugins/Placement.tsx +99 -0
  111. package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +270 -0
  112. package/src/client/components/settings/categories/panel-plugins/Section.tsx +11 -3
  113. package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +25 -0
  114. package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +135 -80
  115. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +51 -21
  116. package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +175 -0
  117. package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +275 -0
  118. package/src/client/components/settings/categories/provider-settings/Header.tsx +40 -9
  119. package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +142 -160
  120. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +2 -2
  121. package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +84 -46
  122. package/src/client/components/settings/categories/provider-settings/ModelsList.tsx +217 -102
  123. package/src/client/components/settings/categories/provider-settings/PresetPicker.tsx +5 -2
  124. package/src/client/components/settings/categories/provider-settings/SidebarList.plugin.test.ts +3 -3
  125. package/src/client/components/settings/categories/provider-settings/SidebarList.tsx +158 -102
  126. package/src/client/components/settings/categories/provider-settings/auth-section.test.tsx +135 -0
  127. package/src/client/components/settings/categories/provider-settings/groups.test.ts +98 -0
  128. package/src/client/components/settings/categories/provider-settings/groups.ts +108 -0
  129. package/src/client/components/settings/categories/provider-settings/layout.test.tsx +325 -0
  130. package/src/client/components/settings/categories/provider-settings/model-dialogs.test.tsx +135 -0
  131. package/src/client/components/settings/categories/provider-settings/preset-picker.test.tsx +73 -0
  132. package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +22 -2
  133. package/src/client/components/settings/categories/usage-settings/ProviderDetail.tsx +2 -0
  134. package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +16 -6
  135. package/src/client/components/settings/categories/usage-settings/providers.ts +3 -0
  136. package/src/client/components/settings/categories/usage-settings/usage-and-picker.test.ts +19 -0
  137. package/src/client/components/settings/categories/usage-settings/usage-icons.test.tsx +143 -0
  138. package/src/client/components/workspace/chat-timeline/MinimapShortcuts.test.ts +2 -1
  139. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +23 -19
  140. package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +23 -19
  141. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +20 -18
  142. package/src/client/components/workspace/chat-timeline/chat-input/compact.test.tsx +19 -6
  143. package/src/client/components/workspace/chat-timeline/index.tsx +7 -16
  144. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.missing.test.ts +100 -0
  145. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.test.ts +3 -47
  146. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +8 -1
  147. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/wait-test-util.ts +62 -0
  148. package/src/client/components/workspace/diff-panel/HunkStepper.tsx +62 -0
  149. package/src/client/components/workspace/diff-panel/MergeDiffView.tsx +29 -0
  150. package/src/client/components/workspace/diff-panel/Toolbar.tsx +32 -1
  151. package/src/client/components/workspace/diff-panel/changes.ts +69 -0
  152. package/src/client/components/workspace/diff-panel/chunks.ts +85 -0
  153. package/src/client/components/workspace/diff-panel/index.tsx +21 -1
  154. package/src/client/components/workspace/diff-panel/merge.test.ts +145 -0
  155. package/src/client/components/workspace/diff-panel/merge.ts +63 -68
  156. package/src/client/components/workspace/editor/EditorDropOverlay.tsx +6 -1
  157. package/src/client/components/workspace/editor/FileDocument.tsx +51 -1
  158. package/src/client/components/workspace/editor/FilePane.tsx +25 -1
  159. package/src/client/components/workspace/editor/StatusBar.tsx +19 -0
  160. package/src/client/components/workspace/editor/Toolbar.tsx +29 -5
  161. package/src/client/components/workspace/editor/toolbar-clusters.test.ts +86 -0
  162. package/src/client/components/workspace/editor/toolbar-clusters.tsx +48 -16
  163. package/src/client/components/workspace/editor/viewers/bytes.ts +16 -0
  164. package/src/client/components/workspace/git-panel/index.test.ts +46 -1
  165. package/src/client/components/workspace/git-panel/index.tsx +11 -38
  166. package/src/client/components/workspace/model-dropdown/Item.plugin.test.ts +66 -0
  167. package/src/client/components/workspace/model-dropdown/Item.tsx +71 -62
  168. package/src/client/components/workspace/model-dropdown/Section.tsx +31 -14
  169. package/src/client/components/workspace/model-dropdown/collapsed.ts +72 -0
  170. package/src/client/components/workspace/model-dropdown/index.tsx +42 -19
  171. package/src/client/components/workspace/model-dropdown/refresh.test.tsx +260 -0
  172. package/src/client/components/workspace/model-dropdown/trigger.test.ts +34 -0
  173. package/src/client/components/workspace/model-dropdown/use-catalog.ts +13 -2
  174. package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +19 -3
  175. package/src/client/hooks/chat/omp/folder-auto-expand.ts +113 -0
  176. package/src/client/hooks/chat/omp/index.ts +20 -0
  177. package/src/client/hooks/chat/omp/pending-rows.ts +21 -0
  178. package/src/client/hooks/chat/omp/pending-sessions.test.ts +16 -1
  179. package/src/client/hooks/chat/omp/session-sidebar-controller.test.ts +102 -0
  180. package/src/client/hooks/chat/omp/session-sidebar-controller.ts +21 -1
  181. package/src/client/hooks/chat/omp/stream.ts +8 -1
  182. package/src/client/hooks/chat/timeline/index.ts +1 -1
  183. package/src/client/hooks/chat/timeline/new-chat-open.ts +60 -0
  184. package/src/client/hooks/editor/blame-settings.ts +67 -0
  185. package/src/client/hooks/editor/blame.test.ts +272 -0
  186. package/src/client/hooks/editor/blame.ts +232 -0
  187. package/src/client/hooks/editor/file-editor-types.ts +23 -0
  188. package/src/client/hooks/editor/save-file.test.ts +20 -0
  189. package/src/client/hooks/editor/use-editor-drop.test-util.ts +198 -0
  190. package/src/client/hooks/editor/use-editor-drop.test.ts +70 -175
  191. package/src/client/hooks/editor/use-editor-drop.ts +19 -36
  192. package/src/client/hooks/editor/use-file-editor.ts +7 -1
  193. package/src/client/hooks/settings/providers/actions.ts +90 -194
  194. package/src/client/hooks/settings/providers/api.ts +7 -1
  195. package/src/client/hooks/settings/providers/index.ts +171 -59
  196. package/src/client/hooks/settings/providers/login.test.ts +79 -0
  197. package/src/client/hooks/settings/providers/login.ts +276 -0
  198. package/src/client/hooks/settings/providers/messages.ts +28 -0
  199. package/src/client/hooks/settings/providers/model-actions.ts +178 -0
  200. package/src/client/hooks/ui/editor-error-toast.ts +47 -0
  201. package/src/client/hooks/ui/open-file.ts +7 -0
  202. package/src/client/hooks/ui/toasts.ts +7 -0
  203. package/src/client/hooks/workspace/file-tabs.ts +4 -1
  204. package/src/client/hooks/workspace/folder-expansion.test.ts +62 -0
  205. package/src/client/hooks/workspace/folder-expansion.ts +33 -0
  206. package/src/client/hooks/workspace/git-action-outcome.ts +86 -0
  207. package/src/client/hooks/workspace/git-actions.ts +29 -2
  208. package/src/client/hooks/workspace/plugin-contributions.test.ts +117 -0
  209. package/src/client/hooks/workspace/plugin-contributions.ts +146 -0
  210. package/src/client/lib/editor-errors.test.ts +85 -0
  211. package/src/client/lib/editor-errors.ts +71 -0
  212. package/src/client/lib/fs/resolve-open.test.ts +125 -0
  213. package/src/client/lib/fs/resolve-open.ts +90 -0
  214. package/src/client/lib/git/action-message.test.ts +82 -0
  215. package/src/client/lib/git/action-message.ts +160 -0
  216. package/src/client/lib/launch/device-files.test.ts +160 -0
  217. package/src/client/lib/launch/device-files.ts +197 -0
  218. package/src/client/lib/native/open-paths.test.ts +140 -0
  219. package/src/client/lib/native/open-paths.ts +157 -0
  220. package/src/client/lib/plugins/bootstrap.test.ts +1 -1
  221. package/src/client/main.tsx +20 -0
  222. package/src/server/db.server.test.ts +39 -0
  223. package/src/server/db.server.ts +21 -2
  224. package/src/server/lib/db/schema.ts +2 -0
  225. package/src/server/lib/fs/external-roots.test.ts +100 -0
  226. package/src/server/lib/fs/external-roots.ts +101 -0
  227. package/src/server/lib/fs/git-actions-branch.ts +15 -2
  228. package/src/server/lib/fs/git-actions-shared.ts +24 -0
  229. package/src/server/lib/fs/git-actions-sync.test.ts +18 -7
  230. package/src/server/lib/fs/git-actions-worktree.ts +5 -1
  231. package/src/server/lib/fs/git-blame.test.ts +206 -0
  232. package/src/server/lib/fs/git-blame.ts +189 -0
  233. package/src/server/lib/fs/root.ts +14 -0
  234. package/src/server/lib/http/same-origin.ts +28 -7
  235. package/src/server/lib/models/catalog.server.ts +230 -0
  236. package/src/server/lib/models/catalog.test.ts +83 -0
  237. package/src/server/lib/models/credential-origin.server.ts +108 -0
  238. package/src/server/lib/models/credential-origin.test.ts +132 -0
  239. package/src/server/lib/models/provider-icon-fetch.ts +115 -0
  240. package/src/server/lib/models/provider-icon-parse.test.ts +134 -0
  241. package/src/server/lib/models/provider-icon-parse.ts +139 -0
  242. package/src/server/lib/models/provider-icon-store.server.ts +118 -0
  243. package/src/server/lib/models/provider-icon-store.test.ts +107 -0
  244. package/src/server/lib/models/provider-icon.server.ts +209 -0
  245. package/src/server/lib/models/provider-items.server.ts +211 -37
  246. package/src/server/lib/models/provider-items.test.ts +201 -0
  247. package/src/server/lib/models/provider-registry.server.test.ts +27 -9
  248. package/src/server/lib/models/provider-registry.server.ts +160 -67
  249. package/src/server/lib/models/registry.server.test.ts +3 -3
  250. package/src/server/lib/models/registry.server.ts +8 -0
  251. package/src/server/lib/omp/config/definitions.test.ts +5 -4
  252. package/src/server/lib/omp/config/models-config.ts +42 -0
  253. package/src/server/lib/omp/config/provider-entry.test.ts +205 -0
  254. package/src/server/lib/omp/config/provider-entry.ts +197 -0
  255. package/src/server/lib/omp/config/provider-seeds.ts +10 -0
  256. package/src/server/lib/omp/core/models-json.ts +69 -0
  257. package/src/server/lib/omp/session/messages.ts +17 -3
  258. package/src/server/lib/omp/session/sidebar-data.canonical.test.ts +13 -3
  259. package/src/server/lib/panels/bundled-catalog.server.ts +7 -0
  260. package/src/server/lib/panels/catalog-offers.server.ts +68 -0
  261. package/src/server/lib/panels/git-update.server.test.ts +14 -0
  262. package/src/server/lib/panels/git-update.server.ts +63 -1
  263. package/src/server/lib/panels/manifest.test.ts +65 -0
  264. package/src/server/lib/panels/manifest.ts +55 -1
  265. package/src/server/lib/panels/offers.server.test.ts +191 -0
  266. package/src/server/lib/panels/offers.server.ts +108 -0
  267. package/src/server/lib/panels/registry.server.test.ts +35 -1
  268. package/src/server/lib/panels/registry.server.ts +51 -142
  269. package/src/server/lib/panels/scan.server.ts +162 -0
  270. package/src/server/lib/route-adapter.ts +13 -2
  271. package/src/server/lib/tray/tray.test.ts +2 -1
  272. package/src/server/lib/usage/providers.server.ts +4 -1
  273. package/src/server/routes/chat/session.ts +7 -1
  274. package/src/server/routes/fs/git-blame-loader.test.ts +146 -0
  275. package/src/server/routes/fs/git.ts +17 -0
  276. package/src/server/routes/fs/grant.test.ts +135 -0
  277. package/src/server/routes/fs/grant.ts +79 -0
  278. package/src/server/routes/fs/index.ts +2 -0
  279. package/src/server/routes/fs/scope.ts +34 -17
  280. package/src/server/routes/omp/login.ts +41 -14
  281. package/src/server/routes/omp/routes.test.ts +23 -10
  282. package/src/server/routes/settings/index.ts +8 -0
  283. package/src/server/routes/settings/provider-entry.ts +108 -0
  284. package/src/server/routes/settings/provider-icon.ts +99 -0
  285. package/src/server/routes/settings/provider-model.ts +4 -1
  286. package/src/server/routes/settings/provider-refresh.ts +87 -0
  287. package/src/server/routes/settings/providers.ts +31 -2
  288. package/src/shared/lib/chat/omp/fold.test.ts +34 -0
  289. package/src/shared/lib/chat/omp/tool-frames.test.ts +20 -0
  290. package/src/shared/lib/chat/omp/tool-frames.ts +5 -1
  291. package/src/shared/lib/chat/omp/tool-results.ts +29 -3
  292. package/src/shared/lib/chat/tool/wait-facts.ts +4 -0
  293. package/src/shared/lib/fs/git-blame.test.ts +266 -0
  294. package/src/shared/lib/fs/git-blame.ts +246 -0
  295. package/src/shared/lib/git/url.ts +18 -0
  296. package/src/shared/lib/markdown/sanitize.test.ts +57 -0
  297. package/src/shared/lib/markdown/sanitize.ts +30 -7
  298. package/src/shared/lib/models/provider/connection.ts +135 -0
  299. package/src/shared/lib/models/provider/dialect.test.ts +4 -2
  300. package/src/shared/lib/models/provider/dialect.ts +76 -6
  301. package/src/shared/lib/models/provider/models.ts +2 -0
  302. package/src/shared/lib/models/provider/origin.ts +94 -0
  303. package/src/shared/lib/models/provider/provider-ui.test.ts +7 -0
  304. package/src/shared/lib/models/server-cache.ts +8 -3
  305. package/src/shared/lib/omp/session/messages-map-pending.test.ts +110 -0
  306. package/src/shared/lib/omp/session/messages-map.ts +34 -2
  307. package/src/shared/lib/omp/session/prewarm-misc.test.ts +7 -90
  308. package/src/shared/lib/omp/session/prewarm.test.ts +133 -0
  309. package/src/shared/lib/omp/session/prewarm.ts +23 -1
  310. package/src/shared/lib/omp/session/wait.test.ts +28 -0
  311. package/src/shared/lib/omp/session/wait.ts +38 -3
  312. package/src/shared/lib/panels/slot-labels.test.ts +61 -0
  313. package/src/shared/lib/panels/slot-labels.ts +133 -0
  314. package/src/shared/lib/workspace/panel-ids.ts +11 -0
  315. package/src/shared/types/fs.ts +6 -0
  316. package/src/shared/types/index.ts +1 -0
  317. package/src/shared/types/models.ts +12 -0
  318. package/src/shared/types/panels-registry.ts +277 -0
  319. package/src/shared/types/panels.ts +46 -213
  320. package/src/shared/types/settings/provider.ts +58 -0
  321. package/src/shared/types/settings/usage.ts +10 -0
  322. package/src/test-support/pristine-globals.ts +7 -0
  323. package/dist/client/static/js/index-bq6qeayr.css +0 -1
  324. package/src/client/components/settings/categories/provider-settings/ReconnectModal.tsx +0 -184
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ /**
7
+ * The navbar readout: how much is waiting on the reader.
8
+ *
9
+ * Two numbers, and the whole design is in what it does NOT do:
10
+ *
11
+ * - **It reads slowly.** Five minutes, not on every render: the counts come from
12
+ * the host's search endpoint, whose budget is 30 requests a minute, and a
13
+ * readout nobody is looking at must not spend it.
14
+ * - **It reads nothing without a credential.** An anonymous read has no
15
+ * authenticated user, so "assigned to me" is not a question the host can
16
+ * answer — measured: GitHub answers `assignee:@me` with a total of 0, which
17
+ * would draw a confident zero over an unanswerable question.
18
+ * - **It says `—` when a count could not be read**, and never `0`.
19
+ *
20
+ * The trigger OPENS the panel (`opensPanel: 'rightPanel'`), so the readout is the
21
+ * way back to the list it counts.
22
+ */
23
+
24
+ import { useEffect, useState } from 'preact/hooks';
25
+ import { usePanelInfo, useRepoScope, useRpc } from '@kabmo-labs/kabmo-ui';
26
+
27
+ import { RPC, type ForgeCounts } from './protocol';
28
+
29
+ /** How often the counts are re-read while the page is open. */
30
+ const REFRESH_MS = 5 * 60 * 1000;
31
+
32
+ /** One count, or a dash when it could not be read. */
33
+ function Count({ value, label }: { value: number | null; label: string }) {
34
+ return (
35
+ <span className="flex items-baseline gap-0.5">
36
+ <span className="font-mono">{value === null ? '—' : value}</span>
37
+ <span className="text-ink/50">{label}</span>
38
+ </span>
39
+ );
40
+ }
41
+
42
+ export function ForgeReadout() {
43
+ const repo = useRepoScope();
44
+ const info = usePanelInfo();
45
+ const call = useRpc<{ root: string; repo: string }, ForgeCounts>(RPC.counts);
46
+ const [counts, setCounts] = useState<ForgeCounts | null>(null);
47
+
48
+ const root = repo.root;
49
+ const target = repo.repo;
50
+
51
+ useEffect(() => {
52
+ if (!root) {
53
+ setCounts(null);
54
+ return;
55
+ }
56
+ let cancelled = false;
57
+ const read = () => {
58
+ void call.call({ root, repo: target }).then((outcome) => {
59
+ if (cancelled || !outcome.ok) return;
60
+ setCounts(outcome.value as ForgeCounts);
61
+ });
62
+ };
63
+ read();
64
+ const timer = setInterval(read, REFRESH_MS);
65
+ return () => {
66
+ cancelled = true;
67
+ clearInterval(timer);
68
+ };
69
+ // `call.call` is a new function per render, so it is deliberately not a
70
+ // dependency: the pair below is the real trigger (the command-runner measured
71
+ // the loop this avoids).
72
+ // eslint-disable-next-line react-hooks/exhaustive-deps
73
+ }, [root, target, info.sessionId]);
74
+
75
+ if (!root) return <span className="text-ink/40">Forge</span>;
76
+ if (!counts) return <span className="text-ink/40">Forge</span>;
77
+
78
+ const title = counts.note ?? `${counts.host} · open items assigned to you`;
79
+
80
+ return (
81
+ <span className="flex items-center gap-1.5 text-[11px] text-ink/75" title={title}>
82
+ <Count value={counts.issues} label="issues" />
83
+ <span className="text-ink/25">·</span>
84
+ <Count value={counts.pulls} label="PRs" />
85
+ </span>
86
+ );
87
+ }
@@ -0,0 +1,76 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ /**
7
+ * A row's badges: the state, and the host's labels.
8
+ *
9
+ * Both are monochrome by default and coloured only where the host supplied a
10
+ * colour of its own. GitHub sends six hex digits per label and GitLab sends
11
+ * plain names; a label with no colour must still be legible, so it falls back to
12
+ * the theme's own ink rather than to a generated shade — a hash-derived colour
13
+ * is a colour the author never chose.
14
+ *
15
+ * The label's own colour is used for the TEXT and a 12% tint for its plate, the
16
+ * same treatment the theme applies to a semantic token, because a label's colour
17
+ * is authored against white and a solid fill would be unreadable in a dark
18
+ * palette.
19
+ */
20
+
21
+ import type { ForgeItemState, ForgeLabel } from '../protocol';
22
+ import { STATE_LABEL, STATE_TONE } from './format';
23
+
24
+ export function StateBadge({ state }: { state: ForgeItemState }) {
25
+ return (
26
+ <span
27
+ className={`flex-shrink-0 text-[10px] font-medium uppercase tracking-wide ${STATE_TONE[state]}`}
28
+ title={STATE_LABEL[state]}
29
+ >
30
+ {STATE_LABEL[state]}
31
+ </span>
32
+ );
33
+ }
34
+
35
+ /** One label chip. */
36
+ function LabelChip({ label }: { label: ForgeLabel }) {
37
+ if (!label.color) {
38
+ return (
39
+ <span className="rounded border border-ink/15 px-1 py-px text-[9.5px] leading-tight text-ink/60">
40
+ {label.name}
41
+ </span>
42
+ );
43
+ }
44
+ return (
45
+ <span
46
+ className="rounded px-1 py-px text-[9.5px] leading-tight"
47
+ style={{ color: `#${label.color}`, backgroundColor: `#${label.color}1f` }}
48
+ >
49
+ {label.name}
50
+ </span>
51
+ );
52
+ }
53
+
54
+ /**
55
+ * The labels a row shows, with a `+n` for the rest.
56
+ *
57
+ * Capped because a row is one line: a PR with nine labels would push the title
58
+ * out of the panel, and the full list is on the item's own page anyway.
59
+ */
60
+ export function LabelChips({ labels, max = 2 }: { labels: readonly ForgeLabel[]; max?: number }) {
61
+ if (labels.length === 0) return null;
62
+ const shown = labels.slice(0, max);
63
+ const rest = labels.length - shown.length;
64
+ return (
65
+ <span className="flex flex-shrink-0 items-center gap-1">
66
+ {shown.map((label) => (
67
+ <LabelChip key={label.name} label={label} />
68
+ ))}
69
+ {rest > 0 && (
70
+ <span className="text-[9.5px] text-ink/40" title={labels.map((label) => label.name).join(', ')}>
71
+ +{rest}
72
+ </span>
73
+ )}
74
+ </span>
75
+ );
76
+ }
@@ -0,0 +1,150 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ /**
7
+ * A change's files and commits, folded.
8
+ *
9
+ * Both are COLLAPSED by default and each carries its own count in the header,
10
+ * because the reason to open a change is usually its description and its
11
+ * conversation — the diff is what you scroll to when you are reviewing, not what
12
+ * you read first. A file row shows its path, its status and its counts; the hunk
13
+ * text is rendered as a `<pre>` only when the row is opened, because a
14
+ * twenty-file change would otherwise mount twenty code blocks nobody asked for.
15
+ *
16
+ * The disclosure is the panel's own (`▸`/`▾` in a fixed track, `aria-expanded`,
17
+ * body mounted and `inert` while closed) — the same control the git panel's
18
+ * sections and the command runner's rows use, so a reader learns it once.
19
+ *
20
+ * A file with no hunks is a BINARY change: it is listed with its name and status
21
+ * and nothing to expand, because a code block over `Binary files differ` reads as
22
+ * a broken diff.
23
+ */
24
+
25
+ import { useState } from 'preact/hooks';
26
+ import type { ForgeCommit, ForgeFile } from '../protocol';
27
+ import { Glyph, ICON } from './Glyph';
28
+ import { relativeTime } from './format';
29
+
30
+ /** A `+n −n` pair, with the sign that matters for an empty side dropped. */
31
+ function Counts({ additions, deletions }: { additions: number; deletions: number }) {
32
+ return (
33
+ <span className="flex flex-shrink-0 items-center gap-1 font-mono text-[10px]">
34
+ {additions > 0 && <span className="text-success">+{additions}</span>}
35
+ {deletions > 0 && <span className="text-error">−{deletions}</span>}
36
+ </span>
37
+ );
38
+ }
39
+
40
+ /** The status word, shortened to what fits a row. */
41
+ const STATUS: Record<string, string> = {
42
+ added: 'new',
43
+ removed: 'gone',
44
+ renamed: 'moved',
45
+ modified: 'changed',
46
+ };
47
+
48
+ function FileRow({ file }: { file: ForgeFile }) {
49
+ const [open, setOpen] = useState(false);
50
+ const bodyId = `forge-file-${file.path.replace(/[^a-z0-9]+/gi, '-')}`;
51
+ // A binary change has no hunk to show, so it has no disclosure either.
52
+ const expandable = file.patch.trim().length > 0;
53
+
54
+ return (
55
+ <div className="border-b border-ink/8 last:border-b-0">
56
+ <div className="flex items-center gap-1.5 px-2.5 py-1">
57
+ <button
58
+ type="button"
59
+ onClick={() => setOpen((value) => !value)}
60
+ disabled={!expandable}
61
+ aria-expanded={expandable ? open : undefined}
62
+ aria-controls={expandable ? bodyId : undefined}
63
+ aria-label={`${file.path}, ${STATUS[file.status] ?? file.status}`}
64
+ className="flex min-w-0 flex-1 items-center gap-1.5 text-left disabled:cursor-default"
65
+ >
66
+ <span aria-hidden="true" className="w-3 flex-shrink-0 font-mono text-ink/40">
67
+ {expandable ? (open ? '▾' : '▸') : ''}
68
+ </span>
69
+ <Glyph path={ICON.file} size={10} />
70
+ <span className="min-w-0 truncate font-mono text-[10.5px] text-ink/80">{file.path}</span>
71
+ </button>
72
+ <span className="flex-shrink-0 text-[9.5px] uppercase tracking-wider text-ink/40">
73
+ {STATUS[file.status] ?? file.status}
74
+ </span>
75
+ <Counts additions={file.additions} deletions={file.deletions} />
76
+ </div>
77
+ {expandable && (
78
+ <div id={bodyId} data-expanded={open} inert={!open} className="section-reveal">
79
+ <div className="min-h-0 overflow-hidden">
80
+ <pre className="max-h-64 overflow-auto whitespace-pre-wrap break-all bg-canvas/60 px-2.5 py-1.5 font-mono text-[10px] leading-[1.35] text-ink/75">
81
+ {file.patch}
82
+ </pre>
83
+ </div>
84
+ </div>
85
+ )}
86
+ </div>
87
+ );
88
+ }
89
+
90
+ function Section({
91
+ title,
92
+ count,
93
+ children,
94
+ }: {
95
+ title: string;
96
+ count: number;
97
+ children: preact.ComponentChildren;
98
+ }) {
99
+ const [open, setOpen] = useState(false);
100
+ const bodyId = `forge-section-${title.toLowerCase()}`;
101
+ return (
102
+ <div className="border-t border-ink/10">
103
+ <button
104
+ type="button"
105
+ onClick={() => setOpen((value) => !value)}
106
+ aria-expanded={open}
107
+ aria-controls={bodyId}
108
+ className="flex w-full items-center gap-1.5 px-2.5 py-1 text-left"
109
+ >
110
+ <span aria-hidden="true" className="w-3 flex-shrink-0 font-mono text-ink/40">
111
+ {open ? '▾' : '▸'}
112
+ </span>
113
+ <span className="text-[9.5px] font-semibold uppercase tracking-wider text-ink/40">{title}</span>
114
+ <span className="font-mono text-[10px] text-ink/40">{count}</span>
115
+ </button>
116
+ <div id={bodyId} data-expanded={open} inert={!open} className="section-reveal">
117
+ <div className="min-h-0 overflow-hidden">{children}</div>
118
+ </div>
119
+ </div>
120
+ );
121
+ }
122
+
123
+ export function ChangeFiles({ files }: { files: readonly ForgeFile[] }) {
124
+ if (files.length === 0) return null;
125
+ return (
126
+ <Section title="Files" count={files.length}>
127
+ {files.map((file) => (
128
+ <FileRow key={file.path} file={file} />
129
+ ))}
130
+ </Section>
131
+ );
132
+ }
133
+
134
+ export function ChangeCommits({ commits }: { commits: readonly ForgeCommit[] }) {
135
+ if (commits.length === 0) return null;
136
+ return (
137
+ <Section title="Commits" count={commits.length}>
138
+ {commits.map((commit) => (
139
+ <div key={commit.sha} className="flex items-baseline gap-1.5 border-b border-ink/8 px-2.5 py-1 last:border-b-0">
140
+ <Glyph path={ICON.commit} size={10} />
141
+ <span className="min-w-0 flex-1 truncate text-[11px] text-ink/80" title={commit.message}>
142
+ {commit.message}
143
+ </span>
144
+ <span className="flex-shrink-0 font-mono text-[9.5px] text-ink/40">{commit.sha.slice(0, 7)}</span>
145
+ <span className="flex-shrink-0 text-[9.5px] text-ink/40">{relativeTime(commit.at)}</span>
146
+ </div>
147
+ ))}
148
+ </Section>
149
+ );
150
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ /**
7
+ * The CI badge: one glyph, one tone, and the host's own word in the tooltip.
8
+ *
9
+ * Four states, and each is a shape as well as a colour — a red dot and a green
10
+ * dot are the same mark to a reader who cannot tell them apart, so a failure is
11
+ * a cross and a success a tick. `neutral` is a dash rather than a tick: a skipped
12
+ * job is not a pass, and painting it green is the one thing a CI badge must never
13
+ * do.
14
+ *
15
+ * The badge is detail-only (see `protocol.ts`): no host puts a pipeline on a list
16
+ * response, so a row badge would cost one request per row.
17
+ */
18
+
19
+ import type { ForgeCi } from '../protocol';
20
+ import { Glyph, ICON } from './Glyph';
21
+
22
+ const TONE: Record<ForgeCi['state'], { icon: string; className: string; label: string }> = {
23
+ success: { icon: ICON.check, className: 'text-success', label: 'Passing' },
24
+ failure: { icon: ICON.cross, className: 'text-error', label: 'Failing' },
25
+ pending: { icon: ICON.clock, className: 'text-warning', label: 'Running' },
26
+ neutral: { icon: ICON.dash, className: 'text-ink/45', label: 'Neutral' },
27
+ };
28
+
29
+ export function CiBadge({ ci }: { ci: ForgeCi }) {
30
+ const tone = TONE[ci.state];
31
+ const body = (
32
+ <>
33
+ <Glyph path={tone.icon} size={11} />
34
+ <span>{tone.label}</span>
35
+ <span className="font-mono text-ink/45">{ci.label}</span>
36
+ </>
37
+ );
38
+ const className = `flex flex-shrink-0 items-center gap-1 text-[10px] ${tone.className}`;
39
+
40
+ // A run's own page is the only place a reader can see WHY it failed, so the
41
+ // badge is a link whenever the host gave one.
42
+ return ci.url ? (
43
+ <a href={ci.url} target="_blank" rel="noopener noreferrer" title={`${tone.label}: ${ci.label}`} className={className}>
44
+ {body}
45
+ </a>
46
+ ) : (
47
+ <span title={`${tone.label}: ${ci.label}`} className={className}>
48
+ {body}
49
+ </span>
50
+ );
51
+ }
@@ -0,0 +1,107 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ /**
7
+ * The credential sheet: which token is in use, and whether it can write.
8
+ *
9
+ * There is no field to TYPE a token here, and that is deliberate rather than
10
+ * unfinished. This host has no editor for a panel plugin's declared settings —
11
+ * no route, no form — so a field would collect a value nothing stores. What the
12
+ * sheet does instead is name the sources that actually work (the server's
13
+ * environment, or a logged-in `gh`/`glab`) and PROBE the one in use, so a reader
14
+ * who sees no write buttons learns whether that is because their token is
15
+ * read-only.
16
+ *
17
+ * `writeScope` has three answers and they are drawn differently:
18
+ *
19
+ * - `true` — the token can write;
20
+ * - `false` — it cannot, and that is the actionable case;
21
+ * - `null` — the host does not say (a fine-grained GitHub token, Gitea,
22
+ * Bitbucket), so the panel does not claim either.
23
+ */
24
+
25
+ import { useState } from 'preact/hooks';
26
+ import { useRpc } from '@kabmo-labs/kabmo-ui';
27
+
28
+ import { RPC, type ForgeCredential } from '../protocol';
29
+ import type { Scope } from './use-forge';
30
+ import { Glyph, ICON } from './Glyph';
31
+
32
+ interface CredentialSheetProps {
33
+ scope: Scope | null;
34
+ credential: ForgeCredential | null;
35
+ onClose: () => void;
36
+ }
37
+
38
+ const SOURCE: Record<ForgeCredential['source'], string> = {
39
+ setting: 'the plugin’s own setting',
40
+ environment: 'a variable in the server’s environment',
41
+ cli: 'the logged-in `gh` / `glab` CLI',
42
+ none: 'nothing — reads are anonymous',
43
+ };
44
+
45
+ export function CredentialSheet({ scope, credential, onClose }: CredentialSheetProps) {
46
+ const probe = useRpc<{ root: string; repo: string; probe: boolean }, ForgeCredential>(RPC.credential);
47
+ const [probed, setProbed] = useState<ForgeCredential | null>(null);
48
+ const current = probed ?? credential;
49
+
50
+ const runProbe = async () => {
51
+ if (!scope) return;
52
+ const outcome = await probe.call({ ...scope, probe: true });
53
+ if (outcome.ok) setProbed(outcome.value as ForgeCredential);
54
+ };
55
+
56
+ const write =
57
+ current?.writeScope === true
58
+ ? { text: 'This credential can write.', tone: 'text-success' }
59
+ : current?.writeScope === false
60
+ ? { text: 'This credential is read-only: no write verb will be offered.', tone: 'text-warning' }
61
+ : current?.present
62
+ ? { text: 'This host does not report a scope, so write verbs are offered and a refusal is reported if one is refused.', tone: 'text-ink/60' }
63
+ : { text: 'No credential: public repositories only, and no write verbs.', tone: 'text-ink/60' };
64
+
65
+ return (
66
+ <div className="rounded border border-ink/20 bg-canvas p-2">
67
+ <div className="flex items-center gap-1.5">
68
+ <Glyph path={ICON.forge} size={11} />
69
+ <span className="text-[10px] font-semibold uppercase tracking-wider text-ink/60">Credential</span>
70
+ <button
71
+ type="button"
72
+ onClick={onClose}
73
+ title="Close"
74
+ aria-label="Close the credential sheet"
75
+ className="ml-auto rounded p-0.5 text-ink/50 hover:text-ink"
76
+ >
77
+ <Glyph path={ICON.cross} size={11} />
78
+ </button>
79
+ </div>
80
+
81
+ <p className="mt-1 text-[11px] text-ink/75">
82
+ Reading with <span className="font-medium text-ink">{SOURCE[current?.source ?? 'none']}</span>.
83
+ </p>
84
+ <p className={`mt-0.5 text-[10.5px] ${write.tone}`}>{write.text}</p>
85
+
86
+ <div className="mt-1.5 flex items-center gap-1">
87
+ <button
88
+ type="button"
89
+ onClick={() => void runProbe()}
90
+ disabled={probe.pending || !current?.present}
91
+ className="rounded border border-ink/15 px-2 py-1 text-[10px] text-ink transition-colors hover:bg-ink/5 disabled:opacity-40"
92
+ >
93
+ {probe.pending ? 'Checking…' : 'Check write scope'}
94
+ </button>
95
+ <span className="text-[9.5px] text-ink/45">one request; a read-only token is what hides the verbs</span>
96
+ </div>
97
+
98
+ {probe.error && <p className="mt-1 text-[10px] text-error">{probe.error.message}</p>}
99
+
100
+ <p className="mt-1.5 text-[9.5px] leading-snug text-ink/45">
101
+ Set a token with <span className="font-mono">GITHUB_TOKEN</span> / <span className="font-mono">GITLAB_TOKEN</span>{' '}
102
+ / <span className="font-mono">GITEA_TOKEN</span> / <span className="font-mono">BITBUCKET_TOKEN</span> in the
103
+ server’s environment and restart it, or run <span className="font-mono">gh auth login</span>.
104
+ </p>
105
+ </div>
106
+ );
107
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ /**
7
+ * The panel's glyphs, inline.
8
+ *
9
+ * The kit has no icon dependency and neither does this plugin: a `lucide-preact`
10
+ * import would bundle a whole icon set for a dozen shapes. Same convention as the
11
+ * Kabmo's own `RepoPicker` and the other bundled plugins' icons — geometry inset
12
+ * 2/24 of the box with a 2/24 stroke, so the marks carry the same ink weight as
13
+ * everything beside them. Paint is `currentColor`, so the surrounding text colour
14
+ * is the state.
15
+ */
16
+
17
+ export function Glyph({ path, size = 12 }: { path: string; size?: number }) {
18
+ return (
19
+ <svg
20
+ width={size}
21
+ height={size}
22
+ viewBox="0 0 24 24"
23
+ fill="none"
24
+ stroke="currentColor"
25
+ stroke-width="2"
26
+ stroke-linecap="round"
27
+ stroke-linejoin="round"
28
+ aria-hidden="true"
29
+ >
30
+ <path d={path} />
31
+ </svg>
32
+ );
33
+ }
34
+
35
+ export const ICON = {
36
+ /** The panel's own mark, matching `icon.svg`. */
37
+ forge: 'M18 18a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM6 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM13 6h3a2 2 0 0 1 2 2v7M6 9v12',
38
+ refresh: 'M3 12a9 9 0 0 1 15.5-6.2M21 12a9 9 0 0 1-15.5 6.2M3 4v5h5M21 20v-5h-5',
39
+ back: 'M19 12H5M12 19l-7-7 7-7',
40
+ external: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14 21 3',
41
+ comment: 'M21 11.5a8.4 8.4 0 0 1-9 8.4 8.5 8.5 0 0 1-3.9-.9L3 21l1.9-5a8.4 8.4 0 0 1-.9-3.9 8.5 8.5 0 0 1 8.5-8.5 8.4 8.4 0 0 1 8.5 8z',
42
+ /** An open circle — an issue that is open. */
43
+ issueOpen: 'M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zM12 8v8M8 12h8',
44
+ /** A ticked circle — an issue that is closed. */
45
+ issueClosed: 'M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zM8 12l3 3 5-5',
46
+ /** A merge request. */
47
+ pull: 'M6 9v12M6 6a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM18 18a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM13 6h3a2 2 0 0 1 2 2v7',
48
+ /** A tag — a release. */
49
+ release: 'M20.6 13.4 12 22l-9-9V4h9l8.6 8.6a1.4 1.4 0 0 1 0 1.8zM7.5 7.5h.01',
50
+ /** A funnel — "there are filters on". */
51
+ filter: 'M22 3H2l8 9.46V19l4 2v-8.54z',
52
+ /** A ticked circle — a passing pipeline. */
53
+ check: 'M22 11.08V12a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3',
54
+ /** A cross — a failing pipeline. */
55
+ cross: 'M18 6 6 18M6 6l12 12',
56
+ /** A clock — a pipeline still running. */
57
+ clock: 'M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20zM12 6v6l4 2',
58
+ /** A dash — a verdict with nothing to say. */
59
+ dash: 'M5 12h14',
60
+ /** A file — one entry of a change. */
61
+ file: 'M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6',
62
+ /** A commit — a dot on a line. */
63
+ commit: 'M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM2 12h7M15 12h7',
64
+ /** A speech bubble with a plus — "add a comment". */
65
+ commentAdd: 'M21 11.5a8.4 8.4 0 0 1-9 8.4 8.5 8.5 0 0 1-3.9-.9L3 21l1.9-5a8.4 8.4 0 0 1-.9-3.9 8.5 8.5 0 0 1 8.5-8.5 8.4 8.4 0 0 1 8.5 8zM12 8v6M9 11h6',
66
+ /** A key — "which credential is in use". */
67
+ key: 'M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3',
68
+ /** A merge arrow — "merge this". */
69
+ merge: 'M8 18a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM8 12V3M8 12c6 0 8-3 8-6',
70
+ } as const;