@deepseek-ai/dsh-experimental-client-ui-forge 0.2.2-rc.5 → 0.2.3-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/README.i18n.yaml +12 -12
  2. package/README.md +47 -30
  3. package/README.zh.md +47 -30
  4. package/lib/client.js +18 -8
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +2444 -406
  7. package/lib/typert.host.js +3433 -950
  8. package/lib/typert.remote-client.d.ts +89 -14
  9. package/lib/typert.remote-client.d.ts.map +1 -1
  10. package/lib/typert.remote-client.js +3155 -978
  11. package/lib/types/branch-name.d.ts +30 -0
  12. package/lib/types/branch-name.d.ts.map +1 -0
  13. package/lib/types/branch-name.js.map +1 -0
  14. package/lib/types/client/AttentionIndicator.d.ts +22 -0
  15. package/lib/types/client/AttentionIndicator.d.ts.map +1 -0
  16. package/lib/types/client/AttentionIndicator.js.map +1 -0
  17. package/lib/types/client/BaseMenu.d.ts.map +1 -1
  18. package/lib/types/client/BaseMenu.js.map +1 -1
  19. package/lib/types/client/ChangeRequestCard.d.ts +87 -9
  20. package/lib/types/client/ChangeRequestCard.d.ts.map +1 -1
  21. package/lib/types/client/ChangeRequestCard.js.map +1 -1
  22. package/lib/types/client/ChangeRequestOverview.d.ts +126 -10
  23. package/lib/types/client/ChangeRequestOverview.d.ts.map +1 -1
  24. package/lib/types/client/ChangeRequestOverview.js.map +1 -1
  25. package/lib/types/client/ChangeRequestsSection.d.ts +76 -0
  26. package/lib/types/client/ChangeRequestsSection.d.ts.map +1 -0
  27. package/lib/types/client/ChangeRequestsSection.js.map +1 -0
  28. package/lib/types/client/ChangedFiles.d.ts +6 -2
  29. package/lib/types/client/ChangedFiles.d.ts.map +1 -1
  30. package/lib/types/client/ChangedFiles.js.map +1 -1
  31. package/lib/types/client/ChangesLoading.d.ts +14 -0
  32. package/lib/types/client/ChangesLoading.d.ts.map +1 -0
  33. package/lib/types/client/ChangesLoading.js.map +1 -0
  34. package/lib/types/client/ChangesTab.d.ts +62 -14
  35. package/lib/types/client/ChangesTab.d.ts.map +1 -1
  36. package/lib/types/client/ChangesTab.js.map +1 -1
  37. package/lib/types/client/ChangesTabTitle.js.map +1 -1
  38. package/lib/types/client/DiffFile.d.ts +23 -4
  39. package/lib/types/client/DiffFile.d.ts.map +1 -1
  40. package/lib/types/client/DiffFile.js.map +1 -1
  41. package/lib/types/client/EnvironmentRows.d.ts +79 -0
  42. package/lib/types/client/EnvironmentRows.d.ts.map +1 -0
  43. package/lib/types/client/EnvironmentRows.js.map +1 -0
  44. package/lib/types/client/FileTreePane.d.ts +5 -2
  45. package/lib/types/client/FileTreePane.d.ts.map +1 -1
  46. package/lib/types/client/FileTreePane.js.map +1 -1
  47. package/lib/types/client/LensFilter.d.ts +50 -0
  48. package/lib/types/client/LensFilter.d.ts.map +1 -0
  49. package/lib/types/client/LensFilter.js.map +1 -0
  50. package/lib/types/client/ReasonButton.d.ts +15 -0
  51. package/lib/types/client/ReasonButton.d.ts.map +1 -0
  52. package/lib/types/client/ReasonButton.js.map +1 -0
  53. package/lib/types/client/ReviewComposer.d.ts +11 -4
  54. package/lib/types/client/ReviewComposer.d.ts.map +1 -1
  55. package/lib/types/client/ReviewComposer.js.map +1 -1
  56. package/lib/types/client/ReviewControls.d.ts +18 -7
  57. package/lib/types/client/ReviewControls.d.ts.map +1 -1
  58. package/lib/types/client/ReviewControls.js.map +1 -1
  59. package/lib/types/client/ReviewThread.d.ts +3 -1
  60. package/lib/types/client/ReviewThread.d.ts.map +1 -1
  61. package/lib/types/client/ReviewThread.js.map +1 -1
  62. package/lib/types/client/ReviewThreads.d.ts +32 -2
  63. package/lib/types/client/ReviewThreads.d.ts.map +1 -1
  64. package/lib/types/client/ReviewThreads.js.map +1 -1
  65. package/lib/types/client/SessionHoverForge.d.ts.map +1 -1
  66. package/lib/types/client/SessionHoverForge.js.map +1 -1
  67. package/lib/types/client/SubmitReview.d.ts +4 -4
  68. package/lib/types/client/SubmitReview.d.ts.map +1 -1
  69. package/lib/types/client/SubmitReview.js.map +1 -1
  70. package/lib/types/client/ThreadList.js.map +1 -1
  71. package/lib/types/client/ViewOptionsMenu.d.ts +7 -1
  72. package/lib/types/client/ViewOptionsMenu.d.ts.map +1 -1
  73. package/lib/types/client/ViewOptionsMenu.js.map +1 -1
  74. package/lib/types/client/WorktreeNameDialog.d.ts +38 -0
  75. package/lib/types/client/WorktreeNameDialog.d.ts.map +1 -0
  76. package/lib/types/client/WorktreeNameDialog.js.map +1 -0
  77. package/lib/types/client/WorktreeProgress.d.ts +14 -3
  78. package/lib/types/client/WorktreeProgress.d.ts.map +1 -1
  79. package/lib/types/client/WorktreeProgress.js.map +1 -1
  80. package/lib/types/client/WorktreeToggle.d.ts +22 -15
  81. package/lib/types/client/WorktreeToggle.d.ts.map +1 -1
  82. package/lib/types/client/WorktreeToggle.js.map +1 -1
  83. package/lib/types/client/action-notices.d.ts +25 -0
  84. package/lib/types/client/action-notices.d.ts.map +1 -0
  85. package/lib/types/client/action-notices.js.map +1 -0
  86. package/lib/types/client/annotations.d.ts +41 -0
  87. package/lib/types/client/annotations.d.ts.map +1 -0
  88. package/lib/types/client/annotations.js.map +1 -0
  89. package/lib/types/client/branch-search.d.ts +38 -0
  90. package/lib/types/client/branch-search.d.ts.map +1 -0
  91. package/lib/types/client/branch-search.js.map +1 -0
  92. package/lib/types/client/change-requests-store.d.ts +25 -0
  93. package/lib/types/client/change-requests-store.d.ts.map +1 -0
  94. package/lib/types/client/change-requests-store.js.map +1 -0
  95. package/lib/types/client/changes-address.d.ts +3 -1
  96. package/lib/types/client/changes-address.d.ts.map +1 -1
  97. package/lib/types/client/changes-address.js.map +1 -1
  98. package/lib/types/client/changes-service.d.ts +119 -0
  99. package/lib/types/client/changes-service.d.ts.map +1 -0
  100. package/lib/types/client/changes-service.js.map +1 -0
  101. package/lib/types/client/changes-store.d.ts +6 -2
  102. package/lib/types/client/changes-store.d.ts.map +1 -1
  103. package/lib/types/client/changes-store.js.map +1 -1
  104. package/lib/types/client/checkout.d.ts.map +1 -1
  105. package/lib/types/client/checkout.js.map +1 -1
  106. package/lib/types/client/diff-rows.d.ts +49 -7
  107. package/lib/types/client/diff-rows.d.ts.map +1 -1
  108. package/lib/types/client/diff-rows.js.map +1 -1
  109. package/lib/types/client/file-tree.d.ts +7 -0
  110. package/lib/types/client/file-tree.d.ts.map +1 -1
  111. package/lib/types/client/file-tree.js.map +1 -1
  112. package/lib/types/client/forge-copy.d.ts +29 -0
  113. package/lib/types/client/forge-copy.d.ts.map +1 -0
  114. package/lib/types/client/forge-copy.js.map +1 -0
  115. package/lib/types/client/format.d.ts +8 -0
  116. package/lib/types/client/format.d.ts.map +1 -1
  117. package/lib/types/client/format.js.map +1 -1
  118. package/lib/types/client/glyphs.d.ts +3 -3
  119. package/lib/types/client/glyphs.d.ts.map +1 -1
  120. package/lib/types/client/glyphs.js.map +1 -1
  121. package/lib/types/client/highlight-context.d.ts +73 -0
  122. package/lib/types/client/highlight-context.d.ts.map +1 -0
  123. package/lib/types/client/highlight-context.js.map +1 -0
  124. package/lib/types/client/index.d.ts +9 -5
  125. package/lib/types/client/index.d.ts.map +1 -1
  126. package/lib/types/client/index.js.map +1 -1
  127. package/lib/types/client/lens-filter.d.ts +69 -0
  128. package/lib/types/client/lens-filter.d.ts.map +1 -0
  129. package/lib/types/client/lens-filter.js.map +1 -0
  130. package/lib/types/client/locales.d.ts +188 -36
  131. package/lib/types/client/locales.d.ts.map +1 -1
  132. package/lib/types/client/locales.js.map +1 -1
  133. package/lib/types/client/mount.d.ts +0 -4
  134. package/lib/types/client/mount.d.ts.map +1 -1
  135. package/lib/types/client/mount.js.map +1 -1
  136. package/lib/types/client/review-page/ReviewChat.d.ts +112 -0
  137. package/lib/types/client/review-page/ReviewChat.d.ts.map +1 -0
  138. package/lib/types/client/review-page/ReviewChat.js.map +1 -0
  139. package/lib/types/client/review-page/ReviewDetail.d.ts +56 -0
  140. package/lib/types/client/review-page/ReviewDetail.d.ts.map +1 -0
  141. package/lib/types/client/review-page/ReviewDetail.js.map +1 -0
  142. package/lib/types/client/review-page/ReviewLabels.d.ts +32 -0
  143. package/lib/types/client/review-page/ReviewLabels.d.ts.map +1 -0
  144. package/lib/types/client/review-page/ReviewLabels.js.map +1 -0
  145. package/lib/types/client/review-page/ReviewList.d.ts +68 -0
  146. package/lib/types/client/review-page/ReviewList.d.ts.map +1 -0
  147. package/lib/types/client/review-page/ReviewList.js.map +1 -0
  148. package/lib/types/client/review-page/ReviewNav.d.ts +28 -0
  149. package/lib/types/client/review-page/ReviewNav.d.ts.map +1 -0
  150. package/lib/types/client/review-page/ReviewNav.js.map +1 -0
  151. package/lib/types/client/review-page/ReviewPage.d.ts +61 -0
  152. package/lib/types/client/review-page/ReviewPage.d.ts.map +1 -0
  153. package/lib/types/client/review-page/ReviewPage.js.map +1 -0
  154. package/lib/types/client/review-page/ReviewStatus.d.ts +37 -0
  155. package/lib/types/client/review-page/ReviewStatus.d.ts.map +1 -0
  156. package/lib/types/client/review-page/ReviewStatus.js.map +1 -0
  157. package/lib/types/client/review-page/host-stream.d.ts +24 -0
  158. package/lib/types/client/review-page/host-stream.d.ts.map +1 -0
  159. package/lib/types/client/review-page/host-stream.js.map +1 -0
  160. package/lib/types/client/review-page/review-lists.d.ts +116 -0
  161. package/lib/types/client/review-page/review-lists.d.ts.map +1 -0
  162. package/lib/types/client/review-page/review-lists.js.map +1 -0
  163. package/lib/types/client/review-page/review-mount.d.ts +50 -0
  164. package/lib/types/client/review-page/review-mount.d.ts.map +1 -0
  165. package/lib/types/client/review-page/review-mount.js.map +1 -0
  166. package/lib/types/client/review-page/review-store.d.ts +79 -0
  167. package/lib/types/client/review-page/review-store.d.ts.map +1 -0
  168. package/lib/types/client/review-page/review-store.js.map +1 -0
  169. package/lib/types/client/review-queue.d.ts +19 -0
  170. package/lib/types/client/review-queue.d.ts.map +1 -1
  171. package/lib/types/client/review-queue.js.map +1 -1
  172. package/lib/types/client/review-threads.d.ts +0 -8
  173. package/lib/types/client/review-threads.d.ts.map +1 -1
  174. package/lib/types/client/review-threads.js.map +1 -1
  175. package/lib/types/client/review.d.ts +18 -0
  176. package/lib/types/client/review.d.ts.map +1 -1
  177. package/lib/types/client/review.js.map +1 -1
  178. package/lib/types/client/slots.d.ts +114 -0
  179. package/lib/types/client/slots.d.ts.map +1 -0
  180. package/lib/types/client/slots.js.map +1 -0
  181. package/lib/types/client/source.d.ts +29 -23
  182. package/lib/types/client/source.d.ts.map +1 -1
  183. package/lib/types/client/source.js.map +1 -1
  184. package/lib/types/client/status.d.ts +13 -2
  185. package/lib/types/client/status.d.ts.map +1 -1
  186. package/lib/types/client/status.js.map +1 -1
  187. package/lib/types/git.d.ts +4 -15
  188. package/lib/types/git.d.ts.map +1 -1
  189. package/lib/types/git.js.map +1 -1
  190. package/lib/types/index.d.ts +346 -28
  191. package/lib/types/index.d.ts.map +1 -1
  192. package/lib/types/index.js.map +1 -1
  193. package/lib/types/lens-version.d.ts +14 -0
  194. package/lib/types/lens-version.d.ts.map +1 -0
  195. package/lib/types/lens-version.js.map +1 -0
  196. package/lib/types/lenses.d.ts +122 -0
  197. package/lib/types/lenses.d.ts.map +1 -0
  198. package/lib/types/lenses.js.map +1 -0
  199. package/lib/types/local-diff.d.ts +16 -0
  200. package/lib/types/local-diff.d.ts.map +1 -1
  201. package/lib/types/local-diff.js.map +1 -1
  202. package/lib/types/panel.d.ts +59 -8
  203. package/lib/types/panel.d.ts.map +1 -1
  204. package/lib/types/panel.js.map +1 -1
  205. package/lib/types/parse.d.ts +24 -8
  206. package/lib/types/parse.d.ts.map +1 -1
  207. package/lib/types/parse.js.map +1 -1
  208. package/lib/types/review-cache.d.ts +29 -19
  209. package/lib/types/review-cache.d.ts.map +1 -1
  210. package/lib/types/review-cache.js.map +1 -1
  211. package/lib/types/states.d.ts +11 -7
  212. package/lib/types/states.d.ts.map +1 -1
  213. package/lib/types/states.js.map +1 -1
  214. package/lib/types/types.d.ts +266 -20
  215. package/lib/types/types.d.ts.map +1 -1
  216. package/lib/types/viewer-lists.d.ts +113 -0
  217. package/lib/types/viewer-lists.d.ts.map +1 -0
  218. package/lib/types/viewer-lists.js.map +1 -0
  219. package/lib/types/worktree.d.ts +20 -11
  220. package/lib/types/worktree.d.ts.map +1 -1
  221. package/lib/types/worktree.js.map +1 -1
  222. package/locale/de.json +1 -1
  223. package/locale/en.json +1 -1
  224. package/locale/es.json +1 -1
  225. package/locale/fr.json +1 -1
  226. package/locale/ja.json +1 -1
  227. package/locale/pt.json +1 -1
  228. package/locale/ru.json +1 -1
  229. package/locale/zh.json +1 -1
  230. package/package.json +61 -52
  231. package/src/branch-name.ts +74 -0
  232. package/src/client/AttentionIndicator.tsx +37 -0
  233. package/src/client/BaseMenu.module.css +0 -20
  234. package/src/client/BaseMenu.tsx +9 -52
  235. package/src/client/ChangeRequestCard.tsx +276 -131
  236. package/src/client/ChangeRequestOverview.module.css +1 -1
  237. package/src/client/ChangeRequestOverview.tsx +183 -67
  238. package/src/client/ChangeRequestsSection.tsx +234 -0
  239. package/src/client/ChangedFiles.module.css +5 -1
  240. package/src/client/ChangedFiles.tsx +72 -36
  241. package/src/client/ChangesLoading.module.css +110 -0
  242. package/src/client/ChangesLoading.tsx +69 -0
  243. package/src/client/ChangesTab.module.css +83 -114
  244. package/src/client/ChangesTab.tsx +331 -100
  245. package/src/client/ChangesTabTitle.tsx +3 -3
  246. package/src/client/DiffFile.tsx +241 -45
  247. package/src/client/EnvironmentRows.tsx +263 -0
  248. package/src/client/FileLabel.tsx +1 -1
  249. package/src/client/FileTreePane.tsx +11 -6
  250. package/src/client/{ForgeTab.module.css → Forge.module.css} +130 -275
  251. package/src/client/LensFilter.module.css +87 -0
  252. package/src/client/LensFilter.tsx +105 -0
  253. package/src/client/ReasonButton.tsx +23 -0
  254. package/src/client/ReviewComposer.module.css +2 -8
  255. package/src/client/ReviewComposer.tsx +27 -8
  256. package/src/client/ReviewControls.module.css +39 -0
  257. package/src/client/ReviewControls.tsx +71 -15
  258. package/src/client/ReviewThread.tsx +55 -30
  259. package/src/client/ReviewThreads.module.css +24 -0
  260. package/src/client/ReviewThreads.tsx +56 -21
  261. package/src/client/SessionHoverForge.tsx +2 -1
  262. package/src/client/SubmitReview.tsx +11 -8
  263. package/src/client/ThreadList.tsx +1 -1
  264. package/src/client/ViewOptionsMenu.tsx +19 -4
  265. package/src/client/WorktreeNameDialog.module.css +53 -0
  266. package/src/client/WorktreeNameDialog.tsx +93 -0
  267. package/src/client/WorktreeProgress.tsx +100 -35
  268. package/src/client/WorktreeToggle.module.css +121 -5
  269. package/src/client/WorktreeToggle.tsx +178 -61
  270. package/src/client/action-notices.ts +38 -0
  271. package/src/client/annotations.ts +105 -0
  272. package/src/client/branch-search.tsx +77 -0
  273. package/src/client/change-requests-store.ts +50 -0
  274. package/src/client/changes-address.ts +3 -1
  275. package/src/client/changes-service.ts +173 -0
  276. package/src/client/changes-store.ts +103 -91
  277. package/src/client/checkout.ts +2 -1
  278. package/src/client/diff-rows.ts +100 -16
  279. package/src/client/file-tree.ts +29 -0
  280. package/src/client/forge-copy.ts +49 -0
  281. package/src/client/format.ts +14 -0
  282. package/src/client/glyphs.tsx +12 -13
  283. package/src/client/highlight-context.ts +213 -0
  284. package/src/client/index.ts +20 -5
  285. package/src/client/lens-filter.ts +136 -0
  286. package/src/client/locales.ts +1504 -288
  287. package/src/client/mount.ts +228 -109
  288. package/src/client/review-page/ReviewChat.tsx +311 -0
  289. package/src/client/review-page/ReviewDetail.tsx +331 -0
  290. package/src/client/review-page/ReviewLabels.tsx +94 -0
  291. package/src/client/review-page/ReviewList.tsx +461 -0
  292. package/src/client/review-page/ReviewNav.tsx +47 -0
  293. package/src/client/review-page/ReviewPage.module.css +946 -0
  294. package/src/client/review-page/ReviewPage.tsx +287 -0
  295. package/src/client/review-page/ReviewStatus.tsx +259 -0
  296. package/src/client/review-page/host-stream.ts +63 -0
  297. package/src/client/review-page/review-lists.ts +207 -0
  298. package/src/client/review-page/review-mount.ts +228 -0
  299. package/src/client/review-page/review-store.ts +94 -0
  300. package/src/client/review-queue.ts +30 -0
  301. package/src/client/review-threads.ts +0 -12
  302. package/src/client/review.ts +27 -0
  303. package/src/client/slots.ts +92 -0
  304. package/src/client/source.ts +67 -43
  305. package/src/client/status.ts +16 -4
  306. package/src/git.ts +16 -38
  307. package/src/index.ts +900 -152
  308. package/src/lens-version.ts +27 -0
  309. package/src/lenses.ts +284 -0
  310. package/src/local-diff.ts +48 -1
  311. package/src/panel.ts +123 -28
  312. package/src/parse.ts +86 -10
  313. package/src/review-cache.ts +57 -37
  314. package/src/states.ts +38 -18
  315. package/src/types.ts +267 -21
  316. package/src/viewer-lists.ts +375 -0
  317. package/src/worktree.ts +64 -34
  318. package/lib/types/client/ForgeTab.d.ts +0 -65
  319. package/lib/types/client/ForgeTab.d.ts.map +0 -1
  320. package/lib/types/client/ForgeTab.js.map +0 -1
  321. package/lib/types/client/ForgeTabTitle.d.ts +0 -11
  322. package/lib/types/client/ForgeTabTitle.d.ts.map +0 -1
  323. package/lib/types/client/ForgeTabTitle.js.map +0 -1
  324. package/lib/types/client/HeaderButton.d.ts +0 -27
  325. package/lib/types/client/HeaderButton.d.ts.map +0 -1
  326. package/lib/types/client/HeaderButton.js.map +0 -1
  327. package/lib/types/client/LocalChangesCard.d.ts +0 -29
  328. package/lib/types/client/LocalChangesCard.d.ts.map +0 -1
  329. package/lib/types/client/LocalChangesCard.js.map +0 -1
  330. package/src/client/ForgeTab.tsx +0 -263
  331. package/src/client/ForgeTabTitle.tsx +0 -21
  332. package/src/client/HeaderButton.module.css +0 -29
  333. package/src/client/HeaderButton.tsx +0 -68
  334. package/src/client/LocalChangesCard.tsx +0 -83
@@ -1,65 +0,0 @@
1
- /** Body of the forge sidebar tab: where the Session works, its local changes, and the change requests it created or pushed. */
2
- import { type ReactNode } from 'react';
3
- import type { HostObservable, InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
4
- import type { RemoteHostFacts } from '@deepseek-ai/dsh-api-remotes/client';
5
- import type { MergeRequest } from '@deepseek-ai/dsh-experimental-forge/types';
6
- import type { ForgePanelChangeRequest } from '../types.ts';
7
- import { type ChangeRequestActions } from './ChangeRequestCard.tsx';
8
- import type { NS } from './locales.ts';
9
- import type { PanelSnapshot } from './source.ts';
10
- /** Business face of the tab body. */
11
- export interface ForgeTabInjected {
12
- /** Panel snapshot of the Session and the Host facts; the renderer binds them as `usePanel` and `useHost`. */
13
- readonly hooks: {
14
- readonly panel: HostObservable<PanelSnapshot>;
15
- readonly host: HostObservable<RemoteHostFacts>;
16
- readonly locale: HostObservable<string>;
17
- };
18
- /** Open the stream again after it ended. */
19
- readonly reconnect: () => void;
20
- /**
21
- * Reinspect the checkout, probe sign-in, and poll the change requests;
22
- * settles once the Host has inspected and probed, after reporting a failure.
23
- */
24
- readonly refresh: () => Promise<void>;
25
- /** Remove a change request from the Session, offering to undo it. */
26
- readonly remove: (entry: ForgePanelChangeRequest) => void;
27
- /** Mark a draft ready for review; settles once the outcome is reported. */
28
- readonly markReady: (entry: ForgePanelChangeRequest) => Promise<void>;
29
- /** Merge a change request as `request` describes; settles once the outcome is reported. */
30
- readonly merge: (entry: ForgePanelChangeRequest, request: MergeRequest) => Promise<void>;
31
- /** Read the complete checks of an opened change request. */
32
- readonly readChecks: NonNullable<ChangeRequestActions['readChecks']>;
33
- /** Rerun the failed checks or one check; settles once the outcome is reported. */
34
- readonly rerunChecks: NonNullable<ChangeRequestActions['rerunChecks']>;
35
- /** Request reviews from more reviewers; settles once the outcome is reported. */
36
- readonly requestReviews: NonNullable<ChangeRequestActions['requestReviews']>;
37
- /** List accounts a review can be requested from. */
38
- readonly reviewerCandidates: NonNullable<ChangeRequestActions['reviewerCandidates']>;
39
- /** Bring the base branch's new commits into the head branch; settles once the outcome is reported. */
40
- readonly updateBranch: NonNullable<ChangeRequestActions['updateBranch']>;
41
- /** Check the removed worktree of the Session out again, reporting the outcome. */
42
- readonly restore: () => void;
43
- /** Open a URL outside the app. */
44
- readonly openLink: (url: string) => void;
45
- /** Copy text to the clipboard and report the outcome. */
46
- readonly copyText: (text: string) => void;
47
- /** Copy a path to the clipboard and report the outcome. */
48
- readonly copyPath: (path: string) => void;
49
- /** Record whether the tab is visible, for the header entry's pressed state. */
50
- readonly reportVisible: (visible: boolean) => void;
51
- /** Ask the Session's Agent to create a change request for its changes, reporting the outcome. */
52
- readonly createChangeRequest: () => void;
53
- }
54
- /** Full props of the tab body. */
55
- export type ForgeTabProps = Pick<PropsRuntime<'sidebar.right.pane.tab'>, 'useTabInfo' | 'sessionId'> & InjectFace<ForgeTabInjected> & PropsLocale<typeof NS>;
56
- /**
57
- * Render the forge tab of one Session. The local changes card shows whenever
58
- * the `branch` scope changes files, independently of bound change requests.
59
- * The only open change request starts expanded; once the
60
- * user expands or collapses a card, the panel keeps that choice across later updates.
61
- * @param props - tab information, panel snapshot and Host facts hooks, actions, and copy.
62
- * @returns the tab body.
63
- */
64
- export declare function ForgeTab({ useTabInfo, sessionId, usePanel, useHost, useLocale, reconnect, refresh, remove, markReady, merge, readChecks, restore, rerunChecks, requestReviews, reviewerCandidates, updateBranch, openLink, copyText, copyPath, reportVisible, createChangeRequest, t, }: ForgeTabProps): ReactNode;
65
- //# sourceMappingURL=ForgeTab.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ForgeTab.d.ts","sourceRoot":"","sources":["../../../src/client/ForgeTab.tsx"],"names":[],"mappings":"AAAA,+HAA+H;AAE/H,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAI3D,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAC7G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAA;AAG7E,OAAO,KAAK,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AAC,EAAE,IAAI,EAAC,KAAK,YACtC,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,GAAG,CAAC,UAAU,gBAAc,CAAC,CAAC,SAAS,CAAC,mBAAiB,UAAU,EAAE,OAAO,EAAE,YAAY,YACzH,KAAC,YAAY,IAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,GAAI,GACrC,GACD,IACN,EACN,KAAC,MAAM,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,GAAI,EACjD,KAAK,KAAK,CAAC;wBACV,CAAC,CAAC,CACA,eAAK,SAAS,EAAE,GAAG,CAAC,KAAK,aACvB,YAAG,SAAS,EAAE,GAAG,CAAC,UAAU,YAAG,CAAC,CAAC,eAAe,CAAC,GAAK,EACtD,YAAG,SAAS,EAAE,GAAG,CAAC,SAAS,YAAG,CAAC,CAAC,mBAAmB,CAAC,GAAK,IACrD,CACP;wBACD,CAAC,CAAC,CACA,aAAI,SAAS,EAAE,GAAG,CAAC,IAAI,YACpB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CACjC,KAAC,iBAAiB,IAEhB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EACjC,QAAQ,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA,CAAC,CAAC,EACrC,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,CAAC,IAPC,KAAK,CAAC,GAAG,CAQd,CACH,CAAC,GACC,CACN,IACK,IACN,CACP,CAAA;AACH,CAAC"}
@@ -1,11 +0,0 @@
1
- /** Chip title of the forge tab: the change request glyph and the localized tab name. */
2
- import type { ReactNode } from 'react';
3
- import type { PropsLocale } from '@deepseek-ai/dsh-client-ui-slots';
4
- import type { NS } from './locales.ts';
5
- /**
6
- * Render the tab chip title in the current UI language.
7
- * @param props - forge panel copy.
8
- * @returns the glyph followed by the tab name.
9
- */
10
- export declare function ForgeTabTitle({ t }: PropsLocale<typeof NS>): ReactNode;
11
- //# sourceMappingURL=ForgeTabTitle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ForgeTabTitle.d.ts","sourceRoot":"","sources":["../../../src/client/ForgeTabTitle.tsx"],"names":[],"mappings":"AAAA,wFAAwF;AAExF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAEnE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAGtC;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG,SAAS,CAOtE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ForgeTabTitle.js","sourceRoot":"","sources":["../../../src/client/ForgeTabTitle.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAc,CAAA;AAEjD,OAAO,GAAG,MAAM,uBAAuB,CAAA;AAEvC;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,CAAC,EAA0B;IACzD,OAAO,CACL,8BACE,eAAM,SAAS,EAAE,GAAG,CAAC,SAAS,YAAE,KAAC,kBAAkB,IAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,GAAI,GAAO,EAClG,eAAM,SAAS,EAAE,GAAG,CAAC,SAAS,YAAG,CAAC,CAAC,WAAW,CAAC,GAAQ,IACtD,CACJ,CAAA;AACH,CAAC"}
@@ -1,27 +0,0 @@
1
- /** Session header entry that shows or hides the forge tab and marks change requests that need attention. */
2
- import type { ReactNode } from 'react';
3
- import type { HostObservable, InjectFace, PropsLocale } from '@deepseek-ai/dsh-client-ui-slots';
4
- import type { NS } from './locales.ts';
5
- import type { PanelSnapshot } from './source.ts';
6
- /** Business face of the header entry. */
7
- export interface HeaderButtonInjected {
8
- /** Panel snapshot and tab visibility of the Session; the renderer binds them as `usePanel` and `useVisible`. */
9
- readonly hooks: {
10
- readonly panel: HostObservable<PanelSnapshot>;
11
- readonly visible: HostObservable<boolean>;
12
- };
13
- /**
14
- * Hide the forge tab when it is visible, otherwise open or reveal it.
15
- * @param visible - whether the tab is visible now.
16
- */
17
- readonly toggle: (visible: boolean) => void;
18
- }
19
- /** Full props of the header entry. */
20
- export type HeaderButtonProps = InjectFace<HeaderButtonInjected> & PropsLocale<typeof NS>;
21
- /**
22
- * Render the header entry.
23
- * @param props - panel snapshot and visibility hooks, the toggle, and copy.
24
- * @returns the entry, or nothing outside a Git checkout without bound change requests.
25
- */
26
- export declare function HeaderButton({ usePanel, useVisible, toggle, t }: HeaderButtonProps): ReactNode;
27
- //# sourceMappingURL=HeaderButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HeaderButton.d.ts","sourceRoot":"","sources":["../../../src/client/HeaderButton.tsx"],"names":[],"mappings":"AAAA,4GAA4G;AAE5G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAG/F,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAIhD,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC,gHAAgH;IAChH,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;KAAE,CAAA;IAC5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A;IAC/B,MAAM,SAAS,GAAG,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,CAAA;IACpG,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,CAAA;IAC9C,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAA;IACzB,MAAM,KAAK,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAA;IAChE,OAAO,CACL,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,QAAQ,YAClC,MAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,SAAS,EAAE,GAAG,CAAC,OAAO,gBACV,KAAK,kBACH,OAAO,uBACH,EAAE,EACpB,OAAO,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA,CAAC,CAAC,aAElC,KAAC,kBAAkB,IAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,GAAI,EAC1D,SAAS,IAAI,KAAC,QAAQ,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,GAAG,GAAI,IAC9D,GACD,CACX,CAAA;AACH,CAAC"}
@@ -1,29 +0,0 @@
1
- /**
2
- * The panel card of the checkout's `branch` scope changes, independent of
3
- * change request bindings: file counts and paths open the local changes view,
4
- * and an optional action asks the Agent for a change request.
5
- */
6
- import { type ReactNode } from 'react';
7
- import type { PropsLocale } from '@deepseek-ai/dsh-client-ui-slots';
8
- import type { ForgeLocalChanges } from '../types.ts';
9
- import type { NS } from './locales.ts';
10
- /** Props of the local changes card. */
11
- export interface LocalChangesCardProps {
12
- /** Files the `branch` scope changes and the ref it compares with. */
13
- readonly local: ForgeLocalChanges;
14
- /** Whether the card offers to create a change request. */
15
- readonly creatable: boolean;
16
- /** Open the changes view, scrolled to `path` when given. */
17
- readonly view: (path?: string) => void;
18
- /** Ask the Agent to create a change request for the changes. */
19
- readonly create: () => void;
20
- /** Forge panel copy. */
21
- readonly t: PropsLocale<typeof NS>['t'];
22
- }
23
- /**
24
- * Render the local changes card; the file list starts collapsed.
25
- * @param props - the changes, the view and create actions, and copy.
26
- * @returns the card.
27
- */
28
- export declare function LocalChangesCard({ local, creatable, view, create, t }: LocalChangesCardProps): ReactNode;
29
- //# sourceMappingURL=LocalChangesCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocalChangesCard.d.ts","sourceRoot":"","sources":["../../../src/client/LocalChangesCard.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAGpD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAGtC,uCAAuC;AACvC,MAAM,WAAW,qBAAqB;IACpC,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAA;IACjC,0DAA0D;IAC1D,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,gEAAgE;IAChE,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAA;IAC3B,wBAAwB;IACxB,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAA;CACxC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI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AAE,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAC,CAAC,aAChF,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,CAAC,QAAQ,GAAI,EACvD,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,GAAI,IACrB,IAJF,IAAI,CAAC,IAAI,CAKb,CACN,CAAC,GACC,CACN,IACO,CACX,CAAA;AACH,CAAC"}
@@ -1,263 +0,0 @@
1
- /** Body of the forge sidebar tab: where the Session works, its local changes, and the change requests it created or pushed. */
2
-
3
- import { useEffect, useState, type ReactNode } from 'react'
4
- import {
5
- Button, IconBranchOutlineRegular, IconCopyOutlineRegular, IconFolderCloseRegular, IconWarningTriangleOutlineRegular, StateDot, Tooltip,
6
- } from '@deepseek-ai/dsh-client-ui-primitives'
7
- import type { HostObservable, InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
8
- import type { RemoteHostFacts } from '@deepseek-ai/dsh-api-remotes/client'
9
- import type { MergeRequest } from '@deepseek-ai/dsh-experimental-forge/types'
10
- import type {} from '@deepseek-ai/dsh-client-ui-conversation/client'
11
- import type {} from '@deepseek-ai/dsh-client-ui-sidebar-right/client'
12
- import type { ForgePanelChangeRequest, ForgePanelState } from '../types.ts'
13
- import { changesAddress, type ChangesSource } from './changes-address.ts'
14
- import { ChangeRequestCard, type ChangeRequestActions } from './ChangeRequestCard.tsx'
15
- import { checkoutLabel } from './checkout.ts'
16
- import { LocalChangesCard } from './LocalChangesCard.tsx'
17
- import type { NS } from './locales.ts'
18
- import { RefreshGlyph } from './RefreshGlyph.tsx'
19
- import type { PanelSnapshot } from './source.ts'
20
- import { defaultExpanded, openChangeRequestOf } from './status.ts'
21
- import css from './ForgeTab.module.css'
22
-
23
- /** Business face of the tab body. */
24
- export interface ForgeTabInjected {
25
- /** Panel snapshot of the Session and the Host facts; the renderer binds them as `usePanel` and `useHost`. */
26
- readonly hooks: {
27
- readonly panel: HostObservable<PanelSnapshot>
28
- readonly host: HostObservable<RemoteHostFacts>
29
- readonly locale: HostObservable<string>
30
- }
31
- /** Open the stream again after it ended. */
32
- readonly reconnect: () => void
33
- /**
34
- * Reinspect the checkout, probe sign-in, and poll the change requests;
35
- * settles once the Host has inspected and probed, after reporting a failure.
36
- */
37
- readonly refresh: () => Promise<void>
38
- /** Remove a change request from the Session, offering to undo it. */
39
- readonly remove: (entry: ForgePanelChangeRequest) => void
40
- /** Mark a draft ready for review; settles once the outcome is reported. */
41
- readonly markReady: (entry: ForgePanelChangeRequest) => Promise<void>
42
- /** Merge a change request as `request` describes; settles once the outcome is reported. */
43
- readonly merge: (entry: ForgePanelChangeRequest, request: MergeRequest) => Promise<void>
44
- /** Read the complete checks of an opened change request. */
45
- readonly readChecks: NonNullable<ChangeRequestActions['readChecks']>
46
- /** Rerun the failed checks or one check; settles once the outcome is reported. */
47
- readonly rerunChecks: NonNullable<ChangeRequestActions['rerunChecks']>
48
- /** Request reviews from more reviewers; settles once the outcome is reported. */
49
- readonly requestReviews: NonNullable<ChangeRequestActions['requestReviews']>
50
- /** List accounts a review can be requested from. */
51
- readonly reviewerCandidates: NonNullable<ChangeRequestActions['reviewerCandidates']>
52
- /** Bring the base branch's new commits into the head branch; settles once the outcome is reported. */
53
- readonly updateBranch: NonNullable<ChangeRequestActions['updateBranch']>
54
- /** Check the removed worktree of the Session out again, reporting the outcome. */
55
- readonly restore: () => void
56
- /** Open a URL outside the app. */
57
- readonly openLink: (url: string) => void
58
- /** Copy text to the clipboard and report the outcome. */
59
- readonly copyText: (text: string) => void
60
- /** Copy a path to the clipboard and report the outcome. */
61
- readonly copyPath: (path: string) => void
62
- /** Record whether the tab is visible, for the header entry's pressed state. */
63
- readonly reportVisible: (visible: boolean) => void
64
- /** Ask the Session's Agent to create a change request for its changes, reporting the outcome. */
65
- readonly createChangeRequest: () => void
66
- }
67
-
68
- /** Full props of the tab body. */
69
- export type ForgeTabProps =
70
- Pick<PropsRuntime<'sidebar.right.pane.tab'>, 'useTabInfo' | 'sessionId'>
71
- & InjectFace<ForgeTabInjected>
72
- & PropsLocale<typeof NS>
73
-
74
- type Translate = ForgeTabProps['t']
75
-
76
- function Checkout({ state, home, restore, copyPath, t }: {
77
- readonly state: ForgePanelState
78
- readonly home: string | undefined
79
- readonly restore: () => void
80
- readonly copyPath: (path: string) => void
81
- readonly t: Translate
82
- }): ReactNode {
83
- const checkout = state.checkout
84
- const label = checkoutLabel(state, home, t)
85
- if (label === undefined) {
86
- if (checkout.state === 'none') return <div className={css.checkout}>{t('checkout.none')}</div>
87
- if (checkout.state !== 'failed') return null
88
- return (
89
- <Tooltip label={checkout.message} side="bottom">
90
- <div className={css.checkout} tabIndex={0}>{t('checkout.failed')}</div>
91
- </Tooltip>
92
- )
93
- }
94
- const copyLabel = t(label.worktree ? 'checkout.copyWorktreePath' : 'checkout.copyProjectPath')
95
- return (
96
- <div className={css.checkout} data-forge-checkout="" data-missing={label.missing ? '' : undefined}>
97
- <Tooltip label={label.tooltip} side="bottom">
98
- <span className={css.checkoutName} tabIndex={0}>
99
- {label.missing
100
- ? <IconWarningTriangleOutlineRegular size={14} className={css.checkoutIcon} />
101
- : label.worktree
102
- ? <IconBranchOutlineRegular size={14} className={css.checkoutIcon} />
103
- : <IconFolderCloseRegular size={14} className={css.checkoutIcon} />}
104
- {label.detached && <span>{t('checkout.detached')}</span>}
105
- {label.detached && label.name !== null && <span aria-hidden="true">·</span>}
106
- {label.name !== null && <span className={css.checkoutBranch}>{label.name}</span>}
107
- </span>
108
- </Tooltip>
109
- <span className={css.checkoutNote}>{label.kind}</span>
110
- <Tooltip label={copyLabel} side="bottom">
111
- <button type="button" className={`${css.iconButton} ${css.checkoutCopy}`} aria-label={copyLabel} onClick={() => { copyPath(label.path) }}>
112
- <IconCopyOutlineRegular size={14} />
113
- </button>
114
- </Tooltip>
115
- {label.missing && (
116
- <Button
117
- size="sm"
118
- variant="outline"
119
- disabled={state.worktree.restoration !== null}
120
- icon={state.worktree.restoration === null ? undefined : <StateDot state="ongoing" size={14} />}
121
- onClick={restore}
122
- >
123
- {t('checkout.restore')}
124
- </Button>
125
- )}
126
- </div>
127
- )
128
- }
129
-
130
- function SignIn({ state, copyText, t }: {
131
- readonly state: ForgePanelState
132
- readonly copyText: (text: string) => void
133
- readonly t: Translate
134
- }): ReactNode {
135
- const { repository, readiness } = state
136
- if (repository === null || readiness === null || readiness.state === 'ready') return null
137
- const host = repository.host
138
- if (readiness.state === 'unavailable') {
139
- return <div className={css.banner} role="status">{t('signin.unavailable', { host, message: readiness.message ?? '' })}</div>
140
- }
141
- const command = repository.forge === 'github' ? `gh auth login --hostname ${host}` : undefined
142
- return (
143
- <div className={css.banner} role="status">
144
- <span>{t('signin.title', { host })}</span>
145
- {command === undefined
146
- ? readiness.message !== null && <span className={css.bannerDetail}>{readiness.message}</span>
147
- : (
148
- <>
149
- <code className={css.bannerCommand}>{command}</code>
150
- <Button size="sm" variant="outline" className={css.bannerAction} onClick={() => { copyText(command) }}>
151
- {t('signin.copy')}
152
- </Button>
153
- </>
154
- )}
155
- </div>
156
- )
157
- }
158
-
159
- /**
160
- * Render the forge tab of one Session. The local changes card shows whenever
161
- * the `branch` scope changes files, independently of bound change requests.
162
- * The only open change request starts expanded; once the
163
- * user expands or collapses a card, the panel keeps that choice across later updates.
164
- * @param props - tab information, panel snapshot and Host facts hooks, actions, and copy.
165
- * @returns the tab body.
166
- */
167
- export function ForgeTab({
168
- useTabInfo, sessionId, usePanel, useHost, useLocale, reconnect, refresh, remove, markReady, merge, readChecks, restore,
169
- rerunChecks, requestReviews, reviewerCandidates, updateBranch, openLink, copyText, copyPath,
170
- reportVisible, createChangeRequest, t,
171
- }: ForgeTabProps): ReactNode {
172
- const snapshot = usePanel(current => current)
173
- const home = useHost(facts => facts.home)
174
- const locale = useLocale(value => value)
175
- const { tab } = useTabInfo()
176
- const visible = tab.visible
177
- const [chosen, setChosen] = useState<ReadonlySet<string> | null>(null)
178
- const [refreshing, setRefreshing] = useState(false)
179
- useEffect(() => {
180
- reportVisible(visible)
181
- }, [reportVisible, visible])
182
- useEffect(() => () => { reportVisible(false) }, [reportVisible])
183
- const state = snapshot.state
184
- const disconnected = snapshot.disconnected && (
185
- <div className={css.disconnected} role="status">
186
- <span>{t('stream.failed')}</span>
187
- <Button size="sm" variant="outline" onClick={reconnect}>{t('retry')}</Button>
188
- </div>
189
- )
190
- if (state === null) return <div className={css.centered}>{disconnected || <StateDot state="ongoing" />}</div>
191
- const viewChanges = (source: ChangesSource, path?: string): void => {
192
- tab.actions.openResource(changesAddress({ sessionId, source }), path === undefined ? undefined : { params: { path } })
193
- }
194
- const startRefresh = (): void => {
195
- if (refreshing) return
196
- setRefreshing(true)
197
- void refresh().finally(() => { setRefreshing(false) })
198
- }
199
- const actions: ChangeRequestActions = {
200
- openLink, copyLink: copyText, retry: startRefresh, remove, markReady, merge, readChecks,
201
- rerunChecks, requestReviews, reviewerCandidates, updateBranch,
202
- viewChanges: (entry) => { viewChanges({ kind: 'change', url: entry.url }) },
203
- }
204
- const local = state.local !== null && state.local.files.length > 0 ? state.local : null
205
- const expanded = chosen ?? defaultExpanded(state.changeRequests)
206
- const toggle = (url: string): void => {
207
- const next = new Set(expanded)
208
- if (next.has(url)) next.delete(url)
209
- else next.add(url)
210
- setChosen(next)
211
- }
212
- const now = Date.now()
213
- const count = state.changeRequests.length
214
- return (
215
- <div className={css.root} data-forge-panel="">
216
- {disconnected}
217
- <Checkout state={state} home={home} restore={restore} copyPath={copyPath} t={t} />
218
- {local !== null && (
219
- <LocalChangesCard
220
- local={local}
221
- creatable={state.repository !== null && openChangeRequestOf(state) === undefined}
222
- view={(path) => { viewChanges({ kind: 'local' }, path) }}
223
- create={createChangeRequest}
224
- t={t}
225
- />
226
- )}
227
- <section className={css.section}>
228
- <div className={css.sectionHeader}>
229
- <h3 className={css.sectionTitle}>{t('changes.title', { count })}</h3>
230
- <Tooltip label={t('refresh')} side="top">
231
- <button type="button" className={css.iconButton} aria-label={t('refresh')} aria-disabled={refreshing} onClick={startRefresh}>
232
- <RefreshGlyph busy={refreshing} size={14} />
233
- </button>
234
- </Tooltip>
235
- </div>
236
- <SignIn state={state} copyText={copyText} t={t} />
237
- {count === 0
238
- ? (
239
- <div className={css.empty}>
240
- <p className={css.emptyTitle}>{t('changes.empty')}</p>
241
- <p className={css.emptyHint}>{t('changes.emptyHint')}</p>
242
- </div>
243
- )
244
- : (
245
- <ul className={css.list}>
246
- {state.changeRequests.map(entry => (
247
- <ChangeRequestCard
248
- key={entry.url}
249
- entry={entry}
250
- expanded={expanded.has(entry.url)}
251
- onToggle={() => { toggle(entry.url) }}
252
- now={now}
253
- actions={actions}
254
- locale={locale}
255
- t={t}
256
- />
257
- ))}
258
- </ul>
259
- )}
260
- </section>
261
- </div>
262
- )
263
- }
@@ -1,21 +0,0 @@
1
- /** Chip title of the forge tab: the change request glyph and the localized tab name. */
2
-
3
- import type { ReactNode } from 'react'
4
- import type { PropsLocale } from '@deepseek-ai/dsh-client-ui-slots'
5
- import { ChangeRequestGlyph } from './glyphs.tsx'
6
- import type { NS } from './locales.ts'
7
- import css from './ForgeTab.module.css'
8
-
9
- /**
10
- * Render the tab chip title in the current UI language.
11
- * @param props - forge panel copy.
12
- * @returns the glyph followed by the tab name.
13
- */
14
- export function ForgeTabTitle({ t }: PropsLocale<typeof NS>): ReactNode {
15
- return (
16
- <>
17
- <span className={css.titleIcon}><ChangeRequestGlyph tone="open" tinted={false} size={16} /></span>
18
- <span className={css.titleText}>{t('tab.title')}</span>
19
- </>
20
- )
21
- }
@@ -1,29 +0,0 @@
1
- /* Icon-only header entry: the shared compact Button owns the radius, height,
2
- and interaction fills, as for the header's other actions; the status dot
3
- sits at the glyph's top-right corner. */
4
- .trigger {
5
- position: relative;
6
- flex: none;
7
- width: 28px;
8
- padding: 0;
9
- color: var(--dsw-alias-label-secondary);
10
- }
11
-
12
- /* The forge tab is visible; the pressed fill outranks the Button's hover fill. */
13
- .trigger[aria-pressed='true'] {
14
- color: var(--dsw-alias-label-primary);
15
- background: var(--dsw-alias-interactive-bg-active);
16
- }
17
-
18
- @media (hover: hover) {
19
- .trigger[aria-pressed='true']:hover:not(:disabled) {
20
- color: var(--dsw-alias-label-primary);
21
- background: var(--dsw-alias-interactive-bg-active);
22
- }
23
- }
24
-
25
- .dot {
26
- position: absolute;
27
- top: 6px;
28
- right: 6px;
29
- }
@@ -1,68 +0,0 @@
1
- /** Session header entry that shows or hides the forge tab and marks change requests that need attention. */
2
-
3
- import type { ReactNode } from 'react'
4
- import { Button, StateDot, Tooltip } from '@deepseek-ai/dsh-client-ui-primitives'
5
- import type { HostObservable, InjectFace, PropsLocale } from '@deepseek-ai/dsh-client-ui-slots'
6
- import type {} from '@deepseek-ai/dsh-client-ui-conversation/client'
7
- import { ChangeRequestGlyph } from './glyphs.tsx'
8
- import type { NS } from './locales.ts'
9
- import type { PanelSnapshot } from './source.ts'
10
- import { needsAttention } from './status.ts'
11
- import css from './HeaderButton.module.css'
12
-
13
- /** Business face of the header entry. */
14
- export interface HeaderButtonInjected {
15
- /** Panel snapshot and tab visibility of the Session; the renderer binds them as `usePanel` and `useVisible`. */
16
- readonly hooks: { readonly panel: HostObservable<PanelSnapshot>; readonly visible: HostObservable<boolean> }
17
- /**
18
- * Hide the forge tab when it is visible, otherwise open or reveal it.
19
- * @param visible - whether the tab is visible now.
20
- */
21
- readonly toggle: (visible: boolean) => void
22
- }
23
-
24
- /** Full props of the header entry. */
25
- export type HeaderButtonProps = InjectFace<HeaderButtonInjected> & PropsLocale<typeof NS>
26
-
27
- /**
28
- * Show the entry once the Session has bound change requests or its directory
29
- * is known to be inside a Git checkout: after an inspection found one or
30
- * failed, or while a later inspection runs for a directory whose repository
31
- * is already known.
32
- * @param snapshot - panel snapshot.
33
- * @returns whether the entry shows.
34
- */
35
- function shown(snapshot: PanelSnapshot): boolean {
36
- const state = snapshot.state
37
- if (state === null) return false
38
- return state.changeRequests.length > 0 || state.checkout.state === 'ready' || state.checkout.state === 'failed'
39
- || (state.checkout.state === 'pending' && state.repository !== null)
40
- }
41
-
42
- /**
43
- * Render the header entry.
44
- * @param props - panel snapshot and visibility hooks, the toggle, and copy.
45
- * @returns the entry, or nothing outside a Git checkout without bound change requests.
46
- */
47
- export function HeaderButton({ usePanel, useVisible, toggle, t }: HeaderButtonProps): ReactNode {
48
- const visible = usePanel(shown)
49
- const attention = usePanel(snapshot => snapshot.state?.changeRequests.some(needsAttention) === true)
50
- const pressed = useVisible(current => current)
51
- if (!visible) return null
52
- const label = t(attention ? 'header.attention' : 'header.label')
53
- return (
54
- <Tooltip label={label} side="bottom">
55
- <Button
56
- size="sm"
57
- className={css.trigger}
58
- aria-label={label}
59
- aria-pressed={pressed}
60
- data-forge-header=""
61
- onClick={() => { toggle(pressed) }}
62
- >
63
- <ChangeRequestGlyph tone="open" tinted={false} size={16} />
64
- {attention && <StateDot state="error" size={6} className={css.dot} />}
65
- </Button>
66
- </Tooltip>
67
- )
68
- }